MobileCoinFlutterPluginChannelApi
.
+ *
+ * The dispatching of channel messages is handled by a dedicated object so that we can test this
+ * object without worrying about threading concerns. The channel's
+ * An account needs to be defragmented when an account balance consists
+ * of multiple coins and there are no big enough coins to successfully
+ * send the transaction.
+ * If the account is too fragmented, it might be necessary to defragment
+ * the account more than once. However, wallet fragmentation is a
+ * rare occurrence since there is an internal mechanism to defragment
+ * the account during other operations.
+ *
+ * `shouldWriteRTHMemos` writes sender and destination memos for a defrag
+ * transactions if true.
+ */
+ void defragmentAccount(
+ int mobileClientId,
+ @NonNull BigInteger amount,
+ @NonNull TokenId tokenId,
+ boolean shouldWriteRTHMemos,
+ @Nullable byte[] rngSeed
+ ) throws Exception;
+
+ /**
+ * Estimates the minimum fee required to send a transaction with the specified amount. The account
+ * balance consists of multiple coins, if there are no big enough coins to successfully send the
+ * transaction {@link FragmentedAccountException} will be thrown. The account needs to be
+ * defragmented in order to send the specified amount. See {MobileCoinAccountClient#defragmentAccount}.
+ *
+ * @param amount amount to send
+ */
+ String estimateTotalFee(
+ int mobileClientId,
+ @NonNull BigInteger amount,
+ @NonNull TokenId tokenId
+ ) throws Exception;
+
+ /**
+ * Calculate the total transferable amount excluding all the required fees for such transfer.
+ */
+ String getTransferableAmount(
+ int mobileClientId,
+ @NonNull TokenId tokenId
+ ) throws Exception;
+
+ /**
+ * Deserializes the given onMethodCall
+ * method includes a post()
to a background thread to do work, followed by another
+ * post()
to get back to Flutter's platform thread to send the response.
+ */
+ static class ChannelMessageDispatcher {
+ private final MobileCoinFlutterPluginChannelApi api;
+
+ ChannelMessageDispatcher(MobileCoinFlutterPluginChannelApi api) {
+ this.api = api;
+ }
+
+ @NonNull
+ private FftMobileCoinClient
and returns the hashCode of the new
+ * instance.
+ */
+ Integer createMobileCoinClient(Integer accountKey, String fogUrl, String consensusUrl,
+ @Nullable String mistySwapUrl, boolean useTestNet, Integer clientConfigId) throws InvalidUriException, AttestationException;
+
+ /**
+ * Retrieves and returns the current balance of all coins of the given
+ * FftMobileCoinClient
. The returned result is JSON encoded in format {tokenId:
+ * balance}
+ */
+ String getBalance(Integer mobileCoinClientId) throws InvalidFogResponse, NetworkException,
+ AttestationException, FogSyncException, JSONException;
+
+ String getAccountActivity(Integer mobileCoinClientId)
+ throws InvalidFogResponse, NetworkException, AttestationException, JSONException,
+ FogSyncException, TransactionBuilderException;
+
+ /**
+ * Set the basic HTTP authorization username and password for future requests
+ */
+ Void setAuthorization(int mobileClientId, @NonNull String username,
+ @NonNull String password);
+
+ /**
+ * Creates a PendingTransaction object from the given FftMobileCoinClient
to
+ * the given recipient
and then returns pending transaction ID, along with the
+ * payloadPublicKey, changePublicKey, payloadSharedSecret, and changeSharedSecret
+ */
+ HashMapFftMobileCoinClient
based on the
+ * pendingTransactionId
and then returns the receipt ID.
+ */
+ String sendFunds(int mobileClientId, byte[] serializedTransaction)
+ throws SerializationException, JSONException;
+
+ /**
+ * Checks to see if a transaction has gone through, given a transactionId returns an integer
+ * representing the results.
+ */
+ Integer checkTransactionStatus(int mobileClientId, int receiptId)
+ throws AttestationException, InvalidFogResponse, NetworkException, FogSyncException;
+
+ /**
+ *
+ */
+ int getAccountKeyFromBip39Entropy(byte[] bip39Entropy, String fogReportUri, String reportId,
+ byte[] fogAuthoritySpki) throws InvalidUriException, BadEntropyException;
+
+ /**
+ * Retrieves the public address for the given AccountKey
, stores the address is
+ * local object storage, and returns its hash code.
+ */
+ int getAccountKeyPublicAddress(int publicAddressId);
+
+ /**
+ * Creates a PrintableWrapper
from the given b58String
, stores it
+ * in local object storage, and returns its hash code.
+ */
+ int printableWrapperFromB58String(String b58String) throws Exception;
+
+ /**
+ * Converts the PrintableWrapper
associated with the given
+ * printableWrapperId
into a b58string and returns it.
+ */
+ String printableWrapperToB58String(int printableWrapperId) throws SerializationException;
+
+ /**
+ * Returns true if the given PrintableWrapper
has a public address.
+ */
+ boolean printableWrapperHasPublicAddress(int printableWrapperId);
+
+ /**
+ * Retrieves the PublicAddress
associated with the given
+ * PrintableWrapper
, stores the public address in local object storage, and
+ * returns its hash code.
+ */
+ int printableWrapperGetPublicAddress(int printableWrapperId);
+
+ /**
+ * Returns the PrintableWrapper
associated with the given
+ * publicAddressId
.
+ */
+ int printableWrapperFromPublicAddress(int publicAddressId) throws SerializationException;
+
+ /**
+ * Returns true if the given PrintableWrapper
has a transfer payload.
+ */
+ boolean printableWrapperHasTransferPayload(int printableWrapperId);
+
+ /**
+ * Retrieves the TransferPayload
associated with the given
+ * PrintableWrapper
, stores the transfer payload in local object storage, and
+ * returns its hash code.
+ */
+ int printableWrapperGetTransferPayload(int printableWrapperId);
+
+ /**
+ * Returns the PrintableWrapper
associated with the given
+ * paymentRequestId
.
+ */
+ int printableWrapperFromPaymentRequest(int paymentRequestId) throws SerializationException;
+
+ /**
+ * Returns true if the given PrintableWrapper
has a paymentRequest payload.
+ */
+ boolean printableWrapperHasPaymentRequest(int printableWrapperId);
+
+ /**
+ * Retrieves the PaymentRequest
associated with the given
+ * PrintableWrapper
, stores the payment request in local object storage, and
+ * returns its hash code.
+ */
+ int printableWrapperGetPaymentRequest(int printableWrapperId);
+
+ /**
+ * Returns the PrintableWrapper
associated with the given
+ * transferPayloadId
.
+ */
+ int printableWrapperFromTransferPayload(int transferPayloadId)
+ throws SerializationException;
+
+ /**
+ * Deserializes the given byte[]
into a PublicAddress
, stores the
+ * address in local object storage, and returns its hash code.
+ */
+ int publicAddressFromBytes(byte[] publicAddress) throws Exception;
+
+ /**
+ * Looks up the given PublicAddress
in local object storage, then returns a
+ * serialized version as a byte[]
.
+ */
+ byte[] publicAddressToByteArray(int publicAddressId);
+
+ /**
+ * Looks up the given PublicAddress
in local object storage, then returns an
+ * address hash.
+ */
+ byte[] publicAddressGetAddressHash(int publicAddressId);
+
+ /**
+ * Looks up the given TransferPayload
in local object storage, then returns its
+ * root entropy as a byte[]
.
+ */
+ byte[] transferPayloadGetBip39Entropy(int transferPayloadId);
+
+ /**
+ * Looks up the given TransferPayload
in local object storage, then returns its
+ * memo.
+ */
+ String transferPayloadGetMemo(int transferPayloadId);
+
+ /**
+ * Looks up the given TransferPayload
in local object storage, retrieves its
+ * public key, stores the public key in local object storage, and then returns the public
+ * key's hash code.
+ */
+ int transferPayloadGetPublicKey(int transferPayloadId);
+
+ /**
+ * Creates a new PaymentRequest
in local object storage, then returns its id.
+ */
+ int paymentRequestCreate(int publicAddressId, @Nullable String amount,
+ @Nullable String memo, @NonNull TokenId tokenId);
+
+ /**
+ * Looks up the given PaymentRequest
in local object storage, then returns its
+ * amount value as a String
.
+ */
+ String paymentRequestGetValue(int paymentRequestId);
+
+ /**
+ * Looks up the given PaymentRequest
in local object storage, then returns its
+ * memo.
+ */
+ String paymentRequestGetMemo(int paymentRequestId);
+
+ /**
+ * Looks up the given PaymentRequest
in local object storage, then returns its
+ * token id 64bit value represented as String
.
+ */
+ String paymentRequestGetTokenId(int paymentRequestId);
+
+ /**
+ * Looks up the given PaymentRequest
in local object storage, then retrieves
+ * its public address, stores that public address in local object storage, and then returns
+ * the public address' hash code.
+ */
+ int paymentRequestGetPublicAddress(int paymentRequestId);
+
+ /**
+ * Convert the given b39 entropy into the mnemonic phrase The mnemonic phrase is a string of
+ * 24 words delimited by a space
+ */
+ String mnemonicFromBip39Entropy(byte[] entropy) throws BadEntropyException;
+
+ /**
+ * Convert mnemonic phrase into the b39 entropy The mnemonic phrase is a string of 24 words
+ * delimited by a space
+ */
+ byte[] mnemonicToBip39Entropy(String mnemonicPhrase) throws BadMnemonicException;
+
+ /**
+ * Returns a list of all allowed words for mnemonic phrases as a String
+ */
+ String mnemonicAllWords() throws BadMnemonicException;
+
+ int clientConfigCreate();
+
+ void clientConfigAddServiceConfig(Integer clientConfigId, String fogViewMrEnclave,
+ String fogLedgerMrEnclave, String forReportMrEnclave, String consensusMrEnclave,
+ String[] hardeningAdvisories) throws AttestationException;
+
+ /**
+ * Encrypt data using recipient's public key
+ * Note: only recipient's account key can decrypt it
+ */
+ byte[] cryptoBoxEncrypt(byte[] data, int publicAddressId) throws Exception;
+
+ /**
+ * Decrypt data using recipient's account key
+ * Note: only recipient's account key can decrypt it
+ */
+ byte[] cryptoBoxDecrypt(byte[] data, int accountKeyId) throws Exception;
+ /**
+ * Returns whether or not MobileCoin client can send a specified amount
+ * without account defragmentation
+ */
+
+ boolean accountRequiresDefragmentation(
+ int mobileClientId,
+ @NonNull BigInteger amount,
+ @NonNull TokenId tokenId
+ ) throws Exception;
+
+ /** Defragments the user's account.
+ * byte[]
into a RistrettoPublic
, stores the
+ * address in local object storage, and returns its hash code.
+ */
+ int ristrettoPublicFromBytes(byte[] serializedBytes) throws Exception;
+
+ /**
+ * Looks up the given RistrettoPublic
in local object storage, then returns a
+ * serialized version as a byte[]
.
+ */
+ byte[] ristrettoPublicToByteArray(int ristrettoPublicId);
+
+ /**
+ * Deserializes the given byte[]
into a RistrettoPrivate
, stores the
+ * address in local object storage, and returns its hash code.
+ */
+ int ristrettoPrivateFromBytes(byte[] serializedBytes) throws Exception;
+
+ /**
+ * Looks up the given RistrettoPrivate
in local object storage, then returns a
+ * serialized version as a byte[]
.
+ */
+ byte[] ristrettoPrivateToByteArray(int ristrettoPrivateId);
+
+ /**
+ * Creates the TxOut public key from the TxOut private key and the recipient spend public key
+ */
+ int createTxOutPublicKey(int txOutPrivateKeyId , int recipientSpendPublicKeyId) throws Exception;
+
+ byte[] attestedMistySwapClientInitiateOfframp(int mobileCoinClientId, byte[] initiateOfframpRequestBytes) throws AttestationException, NetworkException;
+
+ byte[] attestedMistySwapClientForgetOfframp(int mobileCoinClientId, byte[] forgetOfframpRequestBytes) throws AttestationException, NetworkException;
+
+ byte[] attestedMistySwapClientGetOfframpStatus(int mobileCoinClientId, byte[] getOfframpStatusRequestBytes) throws AttestationException, NetworkException;
+
+ byte[] attestedMistySwapClientGetOfframpDebugInfo(int mobileCoinClientId, byte[] getOfframpDebugInfoRequestBytes) throws AttestationException, NetworkException;
+
+ byte[] attestedMistySwapClientSetupOnramp(int mobileCoinClientId, byte[] setupOnrampRequestBytes) throws AttestationException, NetworkException;
+
+ byte[] attestedMistySwapClientForgetOnramp(int mobileCoinClientId, byte[] forgetOnrampRequestBytes) throws AttestationException, NetworkException;
+
+ byte[] attestedMistySwapClientGetOnrampStatus(int mobileCoinClientId, byte[] getOnrampStatusRequestBytes) throws AttestationException, NetworkException;
+
+ byte[] attestedMistySwapClientGetOnrampDebugInfo(int mobileCoinClientId, byte[] getOnrampDebugInfoRequestBytes) throws AttestationException, NetworkException;
+
+ int attestedMistySwapClientGetInfo(int mobileCoinClientId) throws AttestationException, NetworkException;
+
+ }
+
+ static class DefaultMobileCoinFlutterPluginChannelApi
+ implements MobileCoinFlutterPluginChannelApi {
+
+ @Override
+ public Integer createMobileCoinClient(Integer accountKey, String fogUrl,
+ String consensusUrl, @Nullable String mistySwapUrl, boolean useTestNet, Integer clientConfigId)
+ throws InvalidUriException, AttestationException {
+ return FfiMobileCoinClient.create(accountKey, fogUrl, consensusUrl, mistySwapUrl, useTestNet,
+ clientConfigId);
+ }
+
+ @Override
+ public String getBalance(Integer mobileCoinClientId) throws InvalidFogResponse,
+ NetworkException, AttestationException, FogSyncException, JSONException {
+ return FfiMobileCoinClient.getBalance(mobileCoinClientId);
+ }
+
+ @Override
+ public String getAccountActivity(Integer mobileCoinClientId)
+ throws InvalidFogResponse, NetworkException, AttestationException, JSONException,
+ FogSyncException, TransactionBuilderException {
+ return FfiMobileCoinClient.getAccountActivity(mobileCoinClientId);
+ }
+
+ @Override
+ public Void setAuthorization(int mobileClientId, @NonNull String username,
+ @NonNull String password) {
+ FfiMobileCoinClient.setAuthorization(mobileClientId, username, password);
+ return null;
+ }
+
+ @Override
+ public HashMap
+ */ The Mixin trace ID of the swap.
+ *
+ *
+ * string trace_id = 1;
+ * @return The traceId.
+ */
+ java.lang.String getTraceId();
+ /**
+ *
+ */ The Mixin trace ID of the swap.
+ *
+ *
+ * string trace_id = 1;
+ * @return The bytes for traceId.
+ */
+ com.google.protobuf.ByteString
+ getTraceIdBytes();
+
+ /**
+ *
+ */ The Mixin user ID of the swap.
+ *
+ *
+ * string follow_id = 2;
+ * @return The followId.
+ */
+ java.lang.String getFollowId();
+ /**
+ *
+ */ The Mixin user ID of the swap.
+ *
+ *
+ * string follow_id = 2;
+ * @return The bytes for followId.
+ */
+ com.google.protobuf.ByteString
+ getFollowIdBytes();
+
+ /**
+ *
+ */ Asset UUID we are swapping from.
+ *
+ *
+ * string src_asset_id = 3;
+ * @return The srcAssetId.
+ */
+ java.lang.String getSrcAssetId();
+ /**
+ *
+ */ Asset UUID we are swapping from.
+ *
+ *
+ * string src_asset_id = 3;
+ * @return The bytes for srcAssetId.
+ */
+ com.google.protobuf.ByteString
+ getSrcAssetIdBytes();
+
+ /**
+ *
+ */ Amount we are swapping (string since it can be decimal).
+ *
+ *
+ * string src_amount = 4;
+ * @return The srcAmount.
+ */
+ java.lang.String getSrcAmount();
+ /**
+ *
+ */ Amount we are swapping (string since it can be decimal).
+ *
+ *
+ * string src_amount = 4;
+ * @return The bytes for srcAmount.
+ */
+ com.google.protobuf.ByteString
+ getSrcAmountBytes();
+
+ /**
+ *
+ */ Asset UUID we are swapping to.
+ *
+ *
+ * string dst_asset_id = 5;
+ * @return The dstAssetId.
+ */
+ java.lang.String getDstAssetId();
+ /**
+ *
+ */ Asset UUID we are swapping to.
+ *
+ *
+ * string dst_asset_id = 5;
+ * @return The bytes for dstAssetId.
+ */
+ com.google.protobuf.ByteString
+ getDstAssetIdBytes();
+
+ /**
+ *
+ */ Minimum amount we will accept, otherwise the swap gets rejected (string since it can be decimal).
+ *
+ *
+ * string dst_amount_min = 6;
+ * @return The dstAmountMin.
+ */
+ java.lang.String getDstAmountMin();
+ /**
+ *
+ */ Minimum amount we will accept, otherwise the swap gets rejected (string since it can be decimal).
+ *
+ *
+ * string dst_amount_min = 6;
+ * @return The bytes for dstAmountMin.
+ */
+ com.google.protobuf.ByteString
+ getDstAmountMinBytes();
+
+ /**
+ *
+ */ Mixin route hash ids.
+ *
+ *
+ * string route_hash_ids = 7;
+ * @return The routeHashIds.
+ */
+ java.lang.String getRouteHashIds();
+ /**
+ *
+ */ Mixin route hash ids.
+ *
+ *
+ * string route_hash_ids = 7;
+ * @return The bytes for routeHashIds.
+ */
+ com.google.protobuf.ByteString
+ getRouteHashIdsBytes();
+
+ /**
+ *
+ */ The Mixin snapshot JSON blob.
+ *
+ *
+ * string transfer_json = 8;
+ * @return The transferJson.
+ */
+ java.lang.String getTransferJson();
+ /**
+ *
+ */ The Mixin snapshot JSON blob.
+ *
+ *
+ * string transfer_json = 8;
+ * @return The bytes for transferJson.
+ */
+ com.google.protobuf.ByteString
+ getTransferJsonBytes();
+
+ /**
+ *
+ */ Our balance of the src asset before we sent the swap transaction.
+ *
+ *
+ * string pre_swap_src_balance = 9;
+ * @return The preSwapSrcBalance.
+ */
+ java.lang.String getPreSwapSrcBalance();
+ /**
+ *
+ */ Our balance of the src asset before we sent the swap transaction.
+ *
+ *
+ * string pre_swap_src_balance = 9;
+ * @return The bytes for preSwapSrcBalance.
+ */
+ com.google.protobuf.ByteString
+ getPreSwapSrcBalanceBytes();
+
+ /**
+ *
+ */ Our balance of the dst asset before we sent the swap transaction.
+ *
+ *
+ * string pre_swap_dst_balance = 10;
+ * @return The preSwapDstBalance.
+ */
+ java.lang.String getPreSwapDstBalance();
+ /**
+ *
+ */ Our balance of the dst asset before we sent the swap transaction.
+ *
+ *
+ * string pre_swap_dst_balance = 10;
+ * @return The bytes for preSwapDstBalance.
+ */
+ com.google.protobuf.ByteString
+ getPreSwapDstBalanceBytes();
+ }
+ /**
+ *
+ */ On-going swap info.
+ *
+ *
+ * Protobuf type {@code mistyswap_common.OngoingSwap}
+ */
+ public static final class OngoingSwap extends
+ com.google.protobuf.GeneratedMessageLite<
+ OngoingSwap, OngoingSwap.Builder> implements
+ // @@protoc_insertion_point(message_implements:mistyswap_common.OngoingSwap)
+ OngoingSwapOrBuilder {
+ private OngoingSwap() {
+ traceId_ = "";
+ followId_ = "";
+ srcAssetId_ = "";
+ srcAmount_ = "";
+ dstAssetId_ = "";
+ dstAmountMin_ = "";
+ routeHashIds_ = "";
+ transferJson_ = "";
+ preSwapSrcBalance_ = "";
+ preSwapDstBalance_ = "";
+ }
+ public static final int TRACE_ID_FIELD_NUMBER = 1;
+ private java.lang.String traceId_;
+ /**
+ *
+ */ The Mixin trace ID of the swap.
+ *
+ *
+ * string trace_id = 1;
+ * @return The traceId.
+ */
+ @java.lang.Override
+ public java.lang.String getTraceId() {
+ return traceId_;
+ }
+ /**
+ *
+ */ The Mixin trace ID of the swap.
+ *
+ *
+ * string trace_id = 1;
+ * @return The bytes for traceId.
+ */
+ @java.lang.Override
+ public com.google.protobuf.ByteString
+ getTraceIdBytes() {
+ return com.google.protobuf.ByteString.copyFromUtf8(traceId_);
+ }
+ /**
+ *
+ */ The Mixin trace ID of the swap.
+ *
+ *
+ * string trace_id = 1;
+ * @param value The traceId to set.
+ */
+ private void setTraceId(
+ java.lang.String value) {
+ java.lang.Class> valueClass = value.getClass();
+
+ traceId_ = value;
+ }
+ /**
+ *
+ */ The Mixin trace ID of the swap.
+ *
+ *
+ * string trace_id = 1;
+ */
+ private void clearTraceId() {
+
+ traceId_ = getDefaultInstance().getTraceId();
+ }
+ /**
+ *
+ */ The Mixin trace ID of the swap.
+ *
+ *
+ * string trace_id = 1;
+ * @param value The bytes for traceId to set.
+ */
+ private void setTraceIdBytes(
+ com.google.protobuf.ByteString value) {
+ checkByteStringIsUtf8(value);
+ traceId_ = value.toStringUtf8();
+
+ }
+
+ public static final int FOLLOW_ID_FIELD_NUMBER = 2;
+ private java.lang.String followId_;
+ /**
+ *
+ */ The Mixin user ID of the swap.
+ *
+ *
+ * string follow_id = 2;
+ * @return The followId.
+ */
+ @java.lang.Override
+ public java.lang.String getFollowId() {
+ return followId_;
+ }
+ /**
+ *
+ */ The Mixin user ID of the swap.
+ *
+ *
+ * string follow_id = 2;
+ * @return The bytes for followId.
+ */
+ @java.lang.Override
+ public com.google.protobuf.ByteString
+ getFollowIdBytes() {
+ return com.google.protobuf.ByteString.copyFromUtf8(followId_);
+ }
+ /**
+ *
+ */ The Mixin user ID of the swap.
+ *
+ *
+ * string follow_id = 2;
+ * @param value The followId to set.
+ */
+ private void setFollowId(
+ java.lang.String value) {
+ java.lang.Class> valueClass = value.getClass();
+
+ followId_ = value;
+ }
+ /**
+ *
+ */ The Mixin user ID of the swap.
+ *
+ *
+ * string follow_id = 2;
+ */
+ private void clearFollowId() {
+
+ followId_ = getDefaultInstance().getFollowId();
+ }
+ /**
+ *
+ */ The Mixin user ID of the swap.
+ *
+ *
+ * string follow_id = 2;
+ * @param value The bytes for followId to set.
+ */
+ private void setFollowIdBytes(
+ com.google.protobuf.ByteString value) {
+ checkByteStringIsUtf8(value);
+ followId_ = value.toStringUtf8();
+
+ }
+
+ public static final int SRC_ASSET_ID_FIELD_NUMBER = 3;
+ private java.lang.String srcAssetId_;
+ /**
+ *
+ */ Asset UUID we are swapping from.
+ *
+ *
+ * string src_asset_id = 3;
+ * @return The srcAssetId.
+ */
+ @java.lang.Override
+ public java.lang.String getSrcAssetId() {
+ return srcAssetId_;
+ }
+ /**
+ *
+ */ Asset UUID we are swapping from.
+ *
+ *
+ * string src_asset_id = 3;
+ * @return The bytes for srcAssetId.
+ */
+ @java.lang.Override
+ public com.google.protobuf.ByteString
+ getSrcAssetIdBytes() {
+ return com.google.protobuf.ByteString.copyFromUtf8(srcAssetId_);
+ }
+ /**
+ *
+ */ Asset UUID we are swapping from.
+ *
+ *
+ * string src_asset_id = 3;
+ * @param value The srcAssetId to set.
+ */
+ private void setSrcAssetId(
+ java.lang.String value) {
+ java.lang.Class> valueClass = value.getClass();
+
+ srcAssetId_ = value;
+ }
+ /**
+ *
+ */ Asset UUID we are swapping from.
+ *
+ *
+ * string src_asset_id = 3;
+ */
+ private void clearSrcAssetId() {
+
+ srcAssetId_ = getDefaultInstance().getSrcAssetId();
+ }
+ /**
+ *
+ */ Asset UUID we are swapping from.
+ *
+ *
+ * string src_asset_id = 3;
+ * @param value The bytes for srcAssetId to set.
+ */
+ private void setSrcAssetIdBytes(
+ com.google.protobuf.ByteString value) {
+ checkByteStringIsUtf8(value);
+ srcAssetId_ = value.toStringUtf8();
+
+ }
+
+ public static final int SRC_AMOUNT_FIELD_NUMBER = 4;
+ private java.lang.String srcAmount_;
+ /**
+ *
+ */ Amount we are swapping (string since it can be decimal).
+ *
+ *
+ * string src_amount = 4;
+ * @return The srcAmount.
+ */
+ @java.lang.Override
+ public java.lang.String getSrcAmount() {
+ return srcAmount_;
+ }
+ /**
+ *
+ */ Amount we are swapping (string since it can be decimal).
+ *
+ *
+ * string src_amount = 4;
+ * @return The bytes for srcAmount.
+ */
+ @java.lang.Override
+ public com.google.protobuf.ByteString
+ getSrcAmountBytes() {
+ return com.google.protobuf.ByteString.copyFromUtf8(srcAmount_);
+ }
+ /**
+ *
+ */ Amount we are swapping (string since it can be decimal).
+ *
+ *
+ * string src_amount = 4;
+ * @param value The srcAmount to set.
+ */
+ private void setSrcAmount(
+ java.lang.String value) {
+ java.lang.Class> valueClass = value.getClass();
+
+ srcAmount_ = value;
+ }
+ /**
+ *
+ */ Amount we are swapping (string since it can be decimal).
+ *
+ *
+ * string src_amount = 4;
+ */
+ private void clearSrcAmount() {
+
+ srcAmount_ = getDefaultInstance().getSrcAmount();
+ }
+ /**
+ *
+ */ Amount we are swapping (string since it can be decimal).
+ *
+ *
+ * string src_amount = 4;
+ * @param value The bytes for srcAmount to set.
+ */
+ private void setSrcAmountBytes(
+ com.google.protobuf.ByteString value) {
+ checkByteStringIsUtf8(value);
+ srcAmount_ = value.toStringUtf8();
+
+ }
+
+ public static final int DST_ASSET_ID_FIELD_NUMBER = 5;
+ private java.lang.String dstAssetId_;
+ /**
+ *
+ */ Asset UUID we are swapping to.
+ *
+ *
+ * string dst_asset_id = 5;
+ * @return The dstAssetId.
+ */
+ @java.lang.Override
+ public java.lang.String getDstAssetId() {
+ return dstAssetId_;
+ }
+ /**
+ *
+ */ Asset UUID we are swapping to.
+ *
+ *
+ * string dst_asset_id = 5;
+ * @return The bytes for dstAssetId.
+ */
+ @java.lang.Override
+ public com.google.protobuf.ByteString
+ getDstAssetIdBytes() {
+ return com.google.protobuf.ByteString.copyFromUtf8(dstAssetId_);
+ }
+ /**
+ *
+ */ Asset UUID we are swapping to.
+ *
+ *
+ * string dst_asset_id = 5;
+ * @param value The dstAssetId to set.
+ */
+ private void setDstAssetId(
+ java.lang.String value) {
+ java.lang.Class> valueClass = value.getClass();
+
+ dstAssetId_ = value;
+ }
+ /**
+ *
+ */ Asset UUID we are swapping to.
+ *
+ *
+ * string dst_asset_id = 5;
+ */
+ private void clearDstAssetId() {
+
+ dstAssetId_ = getDefaultInstance().getDstAssetId();
+ }
+ /**
+ *
+ */ Asset UUID we are swapping to.
+ *
+ *
+ * string dst_asset_id = 5;
+ * @param value The bytes for dstAssetId to set.
+ */
+ private void setDstAssetIdBytes(
+ com.google.protobuf.ByteString value) {
+ checkByteStringIsUtf8(value);
+ dstAssetId_ = value.toStringUtf8();
+
+ }
+
+ public static final int DST_AMOUNT_MIN_FIELD_NUMBER = 6;
+ private java.lang.String dstAmountMin_;
+ /**
+ *
+ */ Minimum amount we will accept, otherwise the swap gets rejected (string since it can be decimal).
+ *
+ *
+ * string dst_amount_min = 6;
+ * @return The dstAmountMin.
+ */
+ @java.lang.Override
+ public java.lang.String getDstAmountMin() {
+ return dstAmountMin_;
+ }
+ /**
+ *
+ */ Minimum amount we will accept, otherwise the swap gets rejected (string since it can be decimal).
+ *
+ *
+ * string dst_amount_min = 6;
+ * @return The bytes for dstAmountMin.
+ */
+ @java.lang.Override
+ public com.google.protobuf.ByteString
+ getDstAmountMinBytes() {
+ return com.google.protobuf.ByteString.copyFromUtf8(dstAmountMin_);
+ }
+ /**
+ *
+ */ Minimum amount we will accept, otherwise the swap gets rejected (string since it can be decimal).
+ *
+ *
+ * string dst_amount_min = 6;
+ * @param value The dstAmountMin to set.
+ */
+ private void setDstAmountMin(
+ java.lang.String value) {
+ java.lang.Class> valueClass = value.getClass();
+
+ dstAmountMin_ = value;
+ }
+ /**
+ *
+ */ Minimum amount we will accept, otherwise the swap gets rejected (string since it can be decimal).
+ *
+ *
+ * string dst_amount_min = 6;
+ */
+ private void clearDstAmountMin() {
+
+ dstAmountMin_ = getDefaultInstance().getDstAmountMin();
+ }
+ /**
+ *
+ */ Minimum amount we will accept, otherwise the swap gets rejected (string since it can be decimal).
+ *
+ *
+ * string dst_amount_min = 6;
+ * @param value The bytes for dstAmountMin to set.
+ */
+ private void setDstAmountMinBytes(
+ com.google.protobuf.ByteString value) {
+ checkByteStringIsUtf8(value);
+ dstAmountMin_ = value.toStringUtf8();
+
+ }
+
+ public static final int ROUTE_HASH_IDS_FIELD_NUMBER = 7;
+ private java.lang.String routeHashIds_;
+ /**
+ *
+ */ Mixin route hash ids.
+ *
+ *
+ * string route_hash_ids = 7;
+ * @return The routeHashIds.
+ */
+ @java.lang.Override
+ public java.lang.String getRouteHashIds() {
+ return routeHashIds_;
+ }
+ /**
+ *
+ */ Mixin route hash ids.
+ *
+ *
+ * string route_hash_ids = 7;
+ * @return The bytes for routeHashIds.
+ */
+ @java.lang.Override
+ public com.google.protobuf.ByteString
+ getRouteHashIdsBytes() {
+ return com.google.protobuf.ByteString.copyFromUtf8(routeHashIds_);
+ }
+ /**
+ *
+ */ Mixin route hash ids.
+ *
+ *
+ * string route_hash_ids = 7;
+ * @param value The routeHashIds to set.
+ */
+ private void setRouteHashIds(
+ java.lang.String value) {
+ java.lang.Class> valueClass = value.getClass();
+
+ routeHashIds_ = value;
+ }
+ /**
+ *
+ */ Mixin route hash ids.
+ *
+ *
+ * string route_hash_ids = 7;
+ */
+ private void clearRouteHashIds() {
+
+ routeHashIds_ = getDefaultInstance().getRouteHashIds();
+ }
+ /**
+ *
+ */ Mixin route hash ids.
+ *
+ *
+ * string route_hash_ids = 7;
+ * @param value The bytes for routeHashIds to set.
+ */
+ private void setRouteHashIdsBytes(
+ com.google.protobuf.ByteString value) {
+ checkByteStringIsUtf8(value);
+ routeHashIds_ = value.toStringUtf8();
+
+ }
+
+ public static final int TRANSFER_JSON_FIELD_NUMBER = 8;
+ private java.lang.String transferJson_;
+ /**
+ *
+ */ The Mixin snapshot JSON blob.
+ *
+ *
+ * string transfer_json = 8;
+ * @return The transferJson.
+ */
+ @java.lang.Override
+ public java.lang.String getTransferJson() {
+ return transferJson_;
+ }
+ /**
+ *
+ */ The Mixin snapshot JSON blob.
+ *
+ *
+ * string transfer_json = 8;
+ * @return The bytes for transferJson.
+ */
+ @java.lang.Override
+ public com.google.protobuf.ByteString
+ getTransferJsonBytes() {
+ return com.google.protobuf.ByteString.copyFromUtf8(transferJson_);
+ }
+ /**
+ *
+ */ The Mixin snapshot JSON blob.
+ *
+ *
+ * string transfer_json = 8;
+ * @param value The transferJson to set.
+ */
+ private void setTransferJson(
+ java.lang.String value) {
+ java.lang.Class> valueClass = value.getClass();
+
+ transferJson_ = value;
+ }
+ /**
+ *
+ */ The Mixin snapshot JSON blob.
+ *
+ *
+ * string transfer_json = 8;
+ */
+ private void clearTransferJson() {
+
+ transferJson_ = getDefaultInstance().getTransferJson();
+ }
+ /**
+ *
+ */ The Mixin snapshot JSON blob.
+ *
+ *
+ * string transfer_json = 8;
+ * @param value The bytes for transferJson to set.
+ */
+ private void setTransferJsonBytes(
+ com.google.protobuf.ByteString value) {
+ checkByteStringIsUtf8(value);
+ transferJson_ = value.toStringUtf8();
+
+ }
+
+ public static final int PRE_SWAP_SRC_BALANCE_FIELD_NUMBER = 9;
+ private java.lang.String preSwapSrcBalance_;
+ /**
+ *
+ */ Our balance of the src asset before we sent the swap transaction.
+ *
+ *
+ * string pre_swap_src_balance = 9;
+ * @return The preSwapSrcBalance.
+ */
+ @java.lang.Override
+ public java.lang.String getPreSwapSrcBalance() {
+ return preSwapSrcBalance_;
+ }
+ /**
+ *
+ */ Our balance of the src asset before we sent the swap transaction.
+ *
+ *
+ * string pre_swap_src_balance = 9;
+ * @return The bytes for preSwapSrcBalance.
+ */
+ @java.lang.Override
+ public com.google.protobuf.ByteString
+ getPreSwapSrcBalanceBytes() {
+ return com.google.protobuf.ByteString.copyFromUtf8(preSwapSrcBalance_);
+ }
+ /**
+ *
+ */ Our balance of the src asset before we sent the swap transaction.
+ *
+ *
+ * string pre_swap_src_balance = 9;
+ * @param value The preSwapSrcBalance to set.
+ */
+ private void setPreSwapSrcBalance(
+ java.lang.String value) {
+ java.lang.Class> valueClass = value.getClass();
+
+ preSwapSrcBalance_ = value;
+ }
+ /**
+ *
+ */ Our balance of the src asset before we sent the swap transaction.
+ *
+ *
+ * string pre_swap_src_balance = 9;
+ */
+ private void clearPreSwapSrcBalance() {
+
+ preSwapSrcBalance_ = getDefaultInstance().getPreSwapSrcBalance();
+ }
+ /**
+ *
+ */ Our balance of the src asset before we sent the swap transaction.
+ *
+ *
+ * string pre_swap_src_balance = 9;
+ * @param value The bytes for preSwapSrcBalance to set.
+ */
+ private void setPreSwapSrcBalanceBytes(
+ com.google.protobuf.ByteString value) {
+ checkByteStringIsUtf8(value);
+ preSwapSrcBalance_ = value.toStringUtf8();
+
+ }
+
+ public static final int PRE_SWAP_DST_BALANCE_FIELD_NUMBER = 10;
+ private java.lang.String preSwapDstBalance_;
+ /**
+ *
+ */ Our balance of the dst asset before we sent the swap transaction.
+ *
+ *
+ * string pre_swap_dst_balance = 10;
+ * @return The preSwapDstBalance.
+ */
+ @java.lang.Override
+ public java.lang.String getPreSwapDstBalance() {
+ return preSwapDstBalance_;
+ }
+ /**
+ *
+ */ Our balance of the dst asset before we sent the swap transaction.
+ *
+ *
+ * string pre_swap_dst_balance = 10;
+ * @return The bytes for preSwapDstBalance.
+ */
+ @java.lang.Override
+ public com.google.protobuf.ByteString
+ getPreSwapDstBalanceBytes() {
+ return com.google.protobuf.ByteString.copyFromUtf8(preSwapDstBalance_);
+ }
+ /**
+ *
+ */ Our balance of the dst asset before we sent the swap transaction.
+ *
+ *
+ * string pre_swap_dst_balance = 10;
+ * @param value The preSwapDstBalance to set.
+ */
+ private void setPreSwapDstBalance(
+ java.lang.String value) {
+ java.lang.Class> valueClass = value.getClass();
+
+ preSwapDstBalance_ = value;
+ }
+ /**
+ *
+ */ Our balance of the dst asset before we sent the swap transaction.
+ *
+ *
+ * string pre_swap_dst_balance = 10;
+ */
+ private void clearPreSwapDstBalance() {
+
+ preSwapDstBalance_ = getDefaultInstance().getPreSwapDstBalance();
+ }
+ /**
+ *
+ */ Our balance of the dst asset before we sent the swap transaction.
+ *
+ *
+ * string pre_swap_dst_balance = 10;
+ * @param value The bytes for preSwapDstBalance to set.
+ */
+ private void setPreSwapDstBalanceBytes(
+ com.google.protobuf.ByteString value) {
+ checkByteStringIsUtf8(value);
+ preSwapDstBalance_ = value.toStringUtf8();
+
+ }
+
+ public static mistyswap.MistyswapCommon.OngoingSwap parseFrom(
+ java.nio.ByteBuffer data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return com.google.protobuf.GeneratedMessageLite.parseFrom(
+ DEFAULT_INSTANCE, data);
+ }
+ public static mistyswap.MistyswapCommon.OngoingSwap parseFrom(
+ java.nio.ByteBuffer data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return com.google.protobuf.GeneratedMessageLite.parseFrom(
+ DEFAULT_INSTANCE, data, extensionRegistry);
+ }
+ public static mistyswap.MistyswapCommon.OngoingSwap parseFrom(
+ com.google.protobuf.ByteString data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return com.google.protobuf.GeneratedMessageLite.parseFrom(
+ DEFAULT_INSTANCE, data);
+ }
+ public static mistyswap.MistyswapCommon.OngoingSwap parseFrom(
+ com.google.protobuf.ByteString data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return com.google.protobuf.GeneratedMessageLite.parseFrom(
+ DEFAULT_INSTANCE, data, extensionRegistry);
+ }
+ public static mistyswap.MistyswapCommon.OngoingSwap parseFrom(byte[] data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return com.google.protobuf.GeneratedMessageLite.parseFrom(
+ DEFAULT_INSTANCE, data);
+ }
+ public static mistyswap.MistyswapCommon.OngoingSwap parseFrom(
+ byte[] data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return com.google.protobuf.GeneratedMessageLite.parseFrom(
+ DEFAULT_INSTANCE, data, extensionRegistry);
+ }
+ public static mistyswap.MistyswapCommon.OngoingSwap parseFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageLite.parseFrom(
+ DEFAULT_INSTANCE, input);
+ }
+ public static mistyswap.MistyswapCommon.OngoingSwap parseFrom(
+ java.io.InputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageLite.parseFrom(
+ DEFAULT_INSTANCE, input, extensionRegistry);
+ }
+ public static mistyswap.MistyswapCommon.OngoingSwap parseDelimitedFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return parseDelimitedFrom(DEFAULT_INSTANCE, input);
+ }
+ public static mistyswap.MistyswapCommon.OngoingSwap parseDelimitedFrom(
+ java.io.InputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return parseDelimitedFrom(DEFAULT_INSTANCE, input, extensionRegistry);
+ }
+ public static mistyswap.MistyswapCommon.OngoingSwap parseFrom(
+ com.google.protobuf.CodedInputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageLite.parseFrom(
+ DEFAULT_INSTANCE, input);
+ }
+ public static mistyswap.MistyswapCommon.OngoingSwap parseFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageLite.parseFrom(
+ DEFAULT_INSTANCE, input, extensionRegistry);
+ }
+
+ public static Builder newBuilder() {
+ return (Builder) DEFAULT_INSTANCE.createBuilder();
+ }
+ public static Builder newBuilder(mistyswap.MistyswapCommon.OngoingSwap prototype) {
+ return (Builder) DEFAULT_INSTANCE.createBuilder(prototype);
+ }
+
+ /**
+ *
+ */ On-going swap info.
+ *
+ *
+ * Protobuf type {@code mistyswap_common.OngoingSwap}
+ */
+ public static final class Builder extends
+ com.google.protobuf.GeneratedMessageLite.Builder<
+ mistyswap.MistyswapCommon.OngoingSwap, Builder> implements
+ // @@protoc_insertion_point(builder_implements:mistyswap_common.OngoingSwap)
+ mistyswap.MistyswapCommon.OngoingSwapOrBuilder {
+ // Construct using mistyswap.MistyswapCommon.OngoingSwap.newBuilder()
+ private Builder() {
+ super(DEFAULT_INSTANCE);
+ }
+
+
+ /**
+ *
+ */ The Mixin trace ID of the swap.
+ *
+ *
+ * string trace_id = 1;
+ * @return The traceId.
+ */
+ @java.lang.Override
+ public java.lang.String getTraceId() {
+ return instance.getTraceId();
+ }
+ /**
+ *
+ */ The Mixin trace ID of the swap.
+ *
+ *
+ * string trace_id = 1;
+ * @return The bytes for traceId.
+ */
+ @java.lang.Override
+ public com.google.protobuf.ByteString
+ getTraceIdBytes() {
+ return instance.getTraceIdBytes();
+ }
+ /**
+ *
+ */ The Mixin trace ID of the swap.
+ *
+ *
+ * string trace_id = 1;
+ * @param value The traceId to set.
+ * @return This builder for chaining.
+ */
+ public Builder setTraceId(
+ java.lang.String value) {
+ copyOnWrite();
+ instance.setTraceId(value);
+ return this;
+ }
+ /**
+ *
+ */ The Mixin trace ID of the swap.
+ *
+ *
+ * string trace_id = 1;
+ * @return This builder for chaining.
+ */
+ public Builder clearTraceId() {
+ copyOnWrite();
+ instance.clearTraceId();
+ return this;
+ }
+ /**
+ *
+ */ The Mixin trace ID of the swap.
+ *
+ *
+ * string trace_id = 1;
+ * @param value The bytes for traceId to set.
+ * @return This builder for chaining.
+ */
+ public Builder setTraceIdBytes(
+ com.google.protobuf.ByteString value) {
+ copyOnWrite();
+ instance.setTraceIdBytes(value);
+ return this;
+ }
+
+ /**
+ *
+ */ The Mixin user ID of the swap.
+ *
+ *
+ * string follow_id = 2;
+ * @return The followId.
+ */
+ @java.lang.Override
+ public java.lang.String getFollowId() {
+ return instance.getFollowId();
+ }
+ /**
+ *
+ */ The Mixin user ID of the swap.
+ *
+ *
+ * string follow_id = 2;
+ * @return The bytes for followId.
+ */
+ @java.lang.Override
+ public com.google.protobuf.ByteString
+ getFollowIdBytes() {
+ return instance.getFollowIdBytes();
+ }
+ /**
+ *
+ */ The Mixin user ID of the swap.
+ *
+ *
+ * string follow_id = 2;
+ * @param value The followId to set.
+ * @return This builder for chaining.
+ */
+ public Builder setFollowId(
+ java.lang.String value) {
+ copyOnWrite();
+ instance.setFollowId(value);
+ return this;
+ }
+ /**
+ *
+ */ The Mixin user ID of the swap.
+ *
+ *
+ * string follow_id = 2;
+ * @return This builder for chaining.
+ */
+ public Builder clearFollowId() {
+ copyOnWrite();
+ instance.clearFollowId();
+ return this;
+ }
+ /**
+ *
+ */ The Mixin user ID of the swap.
+ *
+ *
+ * string follow_id = 2;
+ * @param value The bytes for followId to set.
+ * @return This builder for chaining.
+ */
+ public Builder setFollowIdBytes(
+ com.google.protobuf.ByteString value) {
+ copyOnWrite();
+ instance.setFollowIdBytes(value);
+ return this;
+ }
+
+ /**
+ *
+ */ Asset UUID we are swapping from.
+ *
+ *
+ * string src_asset_id = 3;
+ * @return The srcAssetId.
+ */
+ @java.lang.Override
+ public java.lang.String getSrcAssetId() {
+ return instance.getSrcAssetId();
+ }
+ /**
+ *
+ */ Asset UUID we are swapping from.
+ *
+ *
+ * string src_asset_id = 3;
+ * @return The bytes for srcAssetId.
+ */
+ @java.lang.Override
+ public com.google.protobuf.ByteString
+ getSrcAssetIdBytes() {
+ return instance.getSrcAssetIdBytes();
+ }
+ /**
+ *
+ */ Asset UUID we are swapping from.
+ *
+ *
+ * string src_asset_id = 3;
+ * @param value The srcAssetId to set.
+ * @return This builder for chaining.
+ */
+ public Builder setSrcAssetId(
+ java.lang.String value) {
+ copyOnWrite();
+ instance.setSrcAssetId(value);
+ return this;
+ }
+ /**
+ *
+ */ Asset UUID we are swapping from.
+ *
+ *
+ * string src_asset_id = 3;
+ * @return This builder for chaining.
+ */
+ public Builder clearSrcAssetId() {
+ copyOnWrite();
+ instance.clearSrcAssetId();
+ return this;
+ }
+ /**
+ *
+ */ Asset UUID we are swapping from.
+ *
+ *
+ * string src_asset_id = 3;
+ * @param value The bytes for srcAssetId to set.
+ * @return This builder for chaining.
+ */
+ public Builder setSrcAssetIdBytes(
+ com.google.protobuf.ByteString value) {
+ copyOnWrite();
+ instance.setSrcAssetIdBytes(value);
+ return this;
+ }
+
+ /**
+ *
+ */ Amount we are swapping (string since it can be decimal).
+ *
+ *
+ * string src_amount = 4;
+ * @return The srcAmount.
+ */
+ @java.lang.Override
+ public java.lang.String getSrcAmount() {
+ return instance.getSrcAmount();
+ }
+ /**
+ *
+ */ Amount we are swapping (string since it can be decimal).
+ *
+ *
+ * string src_amount = 4;
+ * @return The bytes for srcAmount.
+ */
+ @java.lang.Override
+ public com.google.protobuf.ByteString
+ getSrcAmountBytes() {
+ return instance.getSrcAmountBytes();
+ }
+ /**
+ *
+ */ Amount we are swapping (string since it can be decimal).
+ *
+ *
+ * string src_amount = 4;
+ * @param value The srcAmount to set.
+ * @return This builder for chaining.
+ */
+ public Builder setSrcAmount(
+ java.lang.String value) {
+ copyOnWrite();
+ instance.setSrcAmount(value);
+ return this;
+ }
+ /**
+ *
+ */ Amount we are swapping (string since it can be decimal).
+ *
+ *
+ * string src_amount = 4;
+ * @return This builder for chaining.
+ */
+ public Builder clearSrcAmount() {
+ copyOnWrite();
+ instance.clearSrcAmount();
+ return this;
+ }
+ /**
+ *
+ */ Amount we are swapping (string since it can be decimal).
+ *
+ *
+ * string src_amount = 4;
+ * @param value The bytes for srcAmount to set.
+ * @return This builder for chaining.
+ */
+ public Builder setSrcAmountBytes(
+ com.google.protobuf.ByteString value) {
+ copyOnWrite();
+ instance.setSrcAmountBytes(value);
+ return this;
+ }
+
+ /**
+ *
+ */ Asset UUID we are swapping to.
+ *
+ *
+ * string dst_asset_id = 5;
+ * @return The dstAssetId.
+ */
+ @java.lang.Override
+ public java.lang.String getDstAssetId() {
+ return instance.getDstAssetId();
+ }
+ /**
+ *
+ */ Asset UUID we are swapping to.
+ *
+ *
+ * string dst_asset_id = 5;
+ * @return The bytes for dstAssetId.
+ */
+ @java.lang.Override
+ public com.google.protobuf.ByteString
+ getDstAssetIdBytes() {
+ return instance.getDstAssetIdBytes();
+ }
+ /**
+ *
+ */ Asset UUID we are swapping to.
+ *
+ *
+ * string dst_asset_id = 5;
+ * @param value The dstAssetId to set.
+ * @return This builder for chaining.
+ */
+ public Builder setDstAssetId(
+ java.lang.String value) {
+ copyOnWrite();
+ instance.setDstAssetId(value);
+ return this;
+ }
+ /**
+ *
+ */ Asset UUID we are swapping to.
+ *
+ *
+ * string dst_asset_id = 5;
+ * @return This builder for chaining.
+ */
+ public Builder clearDstAssetId() {
+ copyOnWrite();
+ instance.clearDstAssetId();
+ return this;
+ }
+ /**
+ *
+ */ Asset UUID we are swapping to.
+ *
+ *
+ * string dst_asset_id = 5;
+ * @param value The bytes for dstAssetId to set.
+ * @return This builder for chaining.
+ */
+ public Builder setDstAssetIdBytes(
+ com.google.protobuf.ByteString value) {
+ copyOnWrite();
+ instance.setDstAssetIdBytes(value);
+ return this;
+ }
+
+ /**
+ *
+ */ Minimum amount we will accept, otherwise the swap gets rejected (string since it can be decimal).
+ *
+ *
+ * string dst_amount_min = 6;
+ * @return The dstAmountMin.
+ */
+ @java.lang.Override
+ public java.lang.String getDstAmountMin() {
+ return instance.getDstAmountMin();
+ }
+ /**
+ *
+ */ Minimum amount we will accept, otherwise the swap gets rejected (string since it can be decimal).
+ *
+ *
+ * string dst_amount_min = 6;
+ * @return The bytes for dstAmountMin.
+ */
+ @java.lang.Override
+ public com.google.protobuf.ByteString
+ getDstAmountMinBytes() {
+ return instance.getDstAmountMinBytes();
+ }
+ /**
+ *
+ */ Minimum amount we will accept, otherwise the swap gets rejected (string since it can be decimal).
+ *
+ *
+ * string dst_amount_min = 6;
+ * @param value The dstAmountMin to set.
+ * @return This builder for chaining.
+ */
+ public Builder setDstAmountMin(
+ java.lang.String value) {
+ copyOnWrite();
+ instance.setDstAmountMin(value);
+ return this;
+ }
+ /**
+ *
+ */ Minimum amount we will accept, otherwise the swap gets rejected (string since it can be decimal).
+ *
+ *
+ * string dst_amount_min = 6;
+ * @return This builder for chaining.
+ */
+ public Builder clearDstAmountMin() {
+ copyOnWrite();
+ instance.clearDstAmountMin();
+ return this;
+ }
+ /**
+ *
+ */ Minimum amount we will accept, otherwise the swap gets rejected (string since it can be decimal).
+ *
+ *
+ * string dst_amount_min = 6;
+ * @param value The bytes for dstAmountMin to set.
+ * @return This builder for chaining.
+ */
+ public Builder setDstAmountMinBytes(
+ com.google.protobuf.ByteString value) {
+ copyOnWrite();
+ instance.setDstAmountMinBytes(value);
+ return this;
+ }
+
+ /**
+ *
+ */ Mixin route hash ids.
+ *
+ *
+ * string route_hash_ids = 7;
+ * @return The routeHashIds.
+ */
+ @java.lang.Override
+ public java.lang.String getRouteHashIds() {
+ return instance.getRouteHashIds();
+ }
+ /**
+ *
+ */ Mixin route hash ids.
+ *
+ *
+ * string route_hash_ids = 7;
+ * @return The bytes for routeHashIds.
+ */
+ @java.lang.Override
+ public com.google.protobuf.ByteString
+ getRouteHashIdsBytes() {
+ return instance.getRouteHashIdsBytes();
+ }
+ /**
+ *
+ */ Mixin route hash ids.
+ *
+ *
+ * string route_hash_ids = 7;
+ * @param value The routeHashIds to set.
+ * @return This builder for chaining.
+ */
+ public Builder setRouteHashIds(
+ java.lang.String value) {
+ copyOnWrite();
+ instance.setRouteHashIds(value);
+ return this;
+ }
+ /**
+ *
+ */ Mixin route hash ids.
+ *
+ *
+ * string route_hash_ids = 7;
+ * @return This builder for chaining.
+ */
+ public Builder clearRouteHashIds() {
+ copyOnWrite();
+ instance.clearRouteHashIds();
+ return this;
+ }
+ /**
+ *
+ */ Mixin route hash ids.
+ *
+ *
+ * string route_hash_ids = 7;
+ * @param value The bytes for routeHashIds to set.
+ * @return This builder for chaining.
+ */
+ public Builder setRouteHashIdsBytes(
+ com.google.protobuf.ByteString value) {
+ copyOnWrite();
+ instance.setRouteHashIdsBytes(value);
+ return this;
+ }
+
+ /**
+ *
+ */ The Mixin snapshot JSON blob.
+ *
+ *
+ * string transfer_json = 8;
+ * @return The transferJson.
+ */
+ @java.lang.Override
+ public java.lang.String getTransferJson() {
+ return instance.getTransferJson();
+ }
+ /**
+ *
+ */ The Mixin snapshot JSON blob.
+ *
+ *
+ * string transfer_json = 8;
+ * @return The bytes for transferJson.
+ */
+ @java.lang.Override
+ public com.google.protobuf.ByteString
+ getTransferJsonBytes() {
+ return instance.getTransferJsonBytes();
+ }
+ /**
+ *
+ */ The Mixin snapshot JSON blob.
+ *
+ *
+ * string transfer_json = 8;
+ * @param value The transferJson to set.
+ * @return This builder for chaining.
+ */
+ public Builder setTransferJson(
+ java.lang.String value) {
+ copyOnWrite();
+ instance.setTransferJson(value);
+ return this;
+ }
+ /**
+ *
+ */ The Mixin snapshot JSON blob.
+ *
+ *
+ * string transfer_json = 8;
+ * @return This builder for chaining.
+ */
+ public Builder clearTransferJson() {
+ copyOnWrite();
+ instance.clearTransferJson();
+ return this;
+ }
+ /**
+ *
+ */ The Mixin snapshot JSON blob.
+ *
+ *
+ * string transfer_json = 8;
+ * @param value The bytes for transferJson to set.
+ * @return This builder for chaining.
+ */
+ public Builder setTransferJsonBytes(
+ com.google.protobuf.ByteString value) {
+ copyOnWrite();
+ instance.setTransferJsonBytes(value);
+ return this;
+ }
+
+ /**
+ *
+ */ Our balance of the src asset before we sent the swap transaction.
+ *
+ *
+ * string pre_swap_src_balance = 9;
+ * @return The preSwapSrcBalance.
+ */
+ @java.lang.Override
+ public java.lang.String getPreSwapSrcBalance() {
+ return instance.getPreSwapSrcBalance();
+ }
+ /**
+ *
+ */ Our balance of the src asset before we sent the swap transaction.
+ *
+ *
+ * string pre_swap_src_balance = 9;
+ * @return The bytes for preSwapSrcBalance.
+ */
+ @java.lang.Override
+ public com.google.protobuf.ByteString
+ getPreSwapSrcBalanceBytes() {
+ return instance.getPreSwapSrcBalanceBytes();
+ }
+ /**
+ *
+ */ Our balance of the src asset before we sent the swap transaction.
+ *
+ *
+ * string pre_swap_src_balance = 9;
+ * @param value The preSwapSrcBalance to set.
+ * @return This builder for chaining.
+ */
+ public Builder setPreSwapSrcBalance(
+ java.lang.String value) {
+ copyOnWrite();
+ instance.setPreSwapSrcBalance(value);
+ return this;
+ }
+ /**
+ *
+ */ Our balance of the src asset before we sent the swap transaction.
+ *
+ *
+ * string pre_swap_src_balance = 9;
+ * @return This builder for chaining.
+ */
+ public Builder clearPreSwapSrcBalance() {
+ copyOnWrite();
+ instance.clearPreSwapSrcBalance();
+ return this;
+ }
+ /**
+ *
+ */ Our balance of the src asset before we sent the swap transaction.
+ *
+ *
+ * string pre_swap_src_balance = 9;
+ * @param value The bytes for preSwapSrcBalance to set.
+ * @return This builder for chaining.
+ */
+ public Builder setPreSwapSrcBalanceBytes(
+ com.google.protobuf.ByteString value) {
+ copyOnWrite();
+ instance.setPreSwapSrcBalanceBytes(value);
+ return this;
+ }
+
+ /**
+ *
+ */ Our balance of the dst asset before we sent the swap transaction.
+ *
+ *
+ * string pre_swap_dst_balance = 10;
+ * @return The preSwapDstBalance.
+ */
+ @java.lang.Override
+ public java.lang.String getPreSwapDstBalance() {
+ return instance.getPreSwapDstBalance();
+ }
+ /**
+ *
+ */ Our balance of the dst asset before we sent the swap transaction.
+ *
+ *
+ * string pre_swap_dst_balance = 10;
+ * @return The bytes for preSwapDstBalance.
+ */
+ @java.lang.Override
+ public com.google.protobuf.ByteString
+ getPreSwapDstBalanceBytes() {
+ return instance.getPreSwapDstBalanceBytes();
+ }
+ /**
+ *
+ */ Our balance of the dst asset before we sent the swap transaction.
+ *
+ *
+ * string pre_swap_dst_balance = 10;
+ * @param value The preSwapDstBalance to set.
+ * @return This builder for chaining.
+ */
+ public Builder setPreSwapDstBalance(
+ java.lang.String value) {
+ copyOnWrite();
+ instance.setPreSwapDstBalance(value);
+ return this;
+ }
+ /**
+ *
+ */ Our balance of the dst asset before we sent the swap transaction.
+ *
+ *
+ * string pre_swap_dst_balance = 10;
+ * @return This builder for chaining.
+ */
+ public Builder clearPreSwapDstBalance() {
+ copyOnWrite();
+ instance.clearPreSwapDstBalance();
+ return this;
+ }
+ /**
+ *
+ */ Our balance of the dst asset before we sent the swap transaction.
+ *
+ *
+ * string pre_swap_dst_balance = 10;
+ * @param value The bytes for preSwapDstBalance to set.
+ * @return This builder for chaining.
+ */
+ public Builder setPreSwapDstBalanceBytes(
+ com.google.protobuf.ByteString value) {
+ copyOnWrite();
+ instance.setPreSwapDstBalanceBytes(value);
+ return this;
+ }
+
+ // @@protoc_insertion_point(builder_scope:mistyswap_common.OngoingSwap)
+ }
+ @java.lang.Override
+ @java.lang.SuppressWarnings({"unchecked", "fallthrough"})
+ protected final java.lang.Object dynamicMethod(
+ com.google.protobuf.GeneratedMessageLite.MethodToInvoke method,
+ java.lang.Object arg0, java.lang.Object arg1) {
+ switch (method) {
+ case NEW_MUTABLE_INSTANCE: {
+ return new mistyswap.MistyswapCommon.OngoingSwap();
+ }
+ case NEW_BUILDER: {
+ return new Builder();
+ }
+ case BUILD_MESSAGE_INFO: {
+ java.lang.Object[] objects = new java.lang.Object[] {
+ "traceId_",
+ "followId_",
+ "srcAssetId_",
+ "srcAmount_",
+ "dstAssetId_",
+ "dstAmountMin_",
+ "routeHashIds_",
+ "transferJson_",
+ "preSwapSrcBalance_",
+ "preSwapDstBalance_",
+ };
+ java.lang.String info =
+ "\u0000\n\u0000\u0000\u0001\n\n\u0000\u0000\u0000\u0001\u0208\u0002\u0208\u0003\u0208" +
+ "\u0004\u0208\u0005\u0208\u0006\u0208\u0007\u0208\b\u0208\t\u0208\n\u0208";
+ return newMessageInfo(DEFAULT_INSTANCE, info, objects);
+ }
+ // fall through
+ case GET_DEFAULT_INSTANCE: {
+ return DEFAULT_INSTANCE;
+ }
+ case GET_PARSER: {
+ com.google.protobuf.Parser
+ */ Max concurrent offramps
+ *
+ *
+ * uint64 max_concurrent_offramps = 1;
+ * @return The maxConcurrentOfframps.
+ */
+ long getMaxConcurrentOfframps();
+
+ /**
+ *
+ */ Max concurrent onramps
+ *
+ *
+ * uint64 max_concurrent_onramps = 2;
+ * @return The maxConcurrentOnramps.
+ */
+ long getMaxConcurrentOnramps();
+
+ /**
+ *
+ */ Current number of offramps
+ *
+ *
+ * uint64 current_offramps = 3;
+ * @return The currentOfframps.
+ */
+ long getCurrentOfframps();
+
+ /**
+ *
+ */ Current number of onramps
+ *
+ *
+ * uint64 current_onramps = 4;
+ * @return The currentOnramps.
+ */
+ long getCurrentOnramps();
+
+ /**
+ *
+ */ List of supported offramp source asset ids.
+ *
+ *
+ * repeated string offramp_allowed_src_asset_ids = 5;
+ * @return A list containing the offrampAllowedSrcAssetIds.
+ */
+ java.util.List
+ */ List of supported offramp source asset ids.
+ *
+ *
+ * repeated string offramp_allowed_src_asset_ids = 5;
+ * @return The count of offrampAllowedSrcAssetIds.
+ */
+ int getOfframpAllowedSrcAssetIdsCount();
+ /**
+ *
+ */ List of supported offramp source asset ids.
+ *
+ *
+ * repeated string offramp_allowed_src_asset_ids = 5;
+ * @param index The index of the element to return.
+ * @return The offrampAllowedSrcAssetIds at the given index.
+ */
+ java.lang.String getOfframpAllowedSrcAssetIds(int index);
+ /**
+ *
+ */ List of supported offramp source asset ids.
+ *
+ *
+ * repeated string offramp_allowed_src_asset_ids = 5;
+ * @param index The index of the element to return.
+ * @return The offrampAllowedSrcAssetIds at the given index.
+ */
+ com.google.protobuf.ByteString
+ getOfframpAllowedSrcAssetIdsBytes(int index);
+
+ /**
+ *
+ */ List of supported offramp destination asset ids.
+ *
+ *
+ * repeated string offramp_allowed_dst_asset_ids = 6;
+ * @return A list containing the offrampAllowedDstAssetIds.
+ */
+ java.util.List
+ */ List of supported offramp destination asset ids.
+ *
+ *
+ * repeated string offramp_allowed_dst_asset_ids = 6;
+ * @return The count of offrampAllowedDstAssetIds.
+ */
+ int getOfframpAllowedDstAssetIdsCount();
+ /**
+ *
+ */ List of supported offramp destination asset ids.
+ *
+ *
+ * repeated string offramp_allowed_dst_asset_ids = 6;
+ * @param index The index of the element to return.
+ * @return The offrampAllowedDstAssetIds at the given index.
+ */
+ java.lang.String getOfframpAllowedDstAssetIds(int index);
+ /**
+ *
+ */ List of supported offramp destination asset ids.
+ *
+ *
+ * repeated string offramp_allowed_dst_asset_ids = 6;
+ * @param index The index of the element to return.
+ * @return The offrampAllowedDstAssetIds at the given index.
+ */
+ com.google.protobuf.ByteString
+ getOfframpAllowedDstAssetIdsBytes(int index);
+
+ /**
+ *
+ */ List of supported onramp source asset ids.
+ *
+ *
+ * repeated string onramp_allowed_src_asset_ids = 7;
+ * @return A list containing the onrampAllowedSrcAssetIds.
+ */
+ java.util.List
+ */ List of supported onramp source asset ids.
+ *
+ *
+ * repeated string onramp_allowed_src_asset_ids = 7;
+ * @return The count of onrampAllowedSrcAssetIds.
+ */
+ int getOnrampAllowedSrcAssetIdsCount();
+ /**
+ *
+ */ List of supported onramp source asset ids.
+ *
+ *
+ * repeated string onramp_allowed_src_asset_ids = 7;
+ * @param index The index of the element to return.
+ * @return The onrampAllowedSrcAssetIds at the given index.
+ */
+ java.lang.String getOnrampAllowedSrcAssetIds(int index);
+ /**
+ *
+ */ List of supported onramp source asset ids.
+ *
+ *
+ * repeated string onramp_allowed_src_asset_ids = 7;
+ * @param index The index of the element to return.
+ * @return The onrampAllowedSrcAssetIds at the given index.
+ */
+ com.google.protobuf.ByteString
+ getOnrampAllowedSrcAssetIdsBytes(int index);
+
+ /**
+ *
+ */ List of supported onramp destination asset ids.
+ *
+ *
+ * repeated string onramp_allowed_dst_asset_ids = 8;
+ * @return A list containing the onrampAllowedDstAssetIds.
+ */
+ java.util.List
+ */ List of supported onramp destination asset ids.
+ *
+ *
+ * repeated string onramp_allowed_dst_asset_ids = 8;
+ * @return The count of onrampAllowedDstAssetIds.
+ */
+ int getOnrampAllowedDstAssetIdsCount();
+ /**
+ *
+ */ List of supported onramp destination asset ids.
+ *
+ *
+ * repeated string onramp_allowed_dst_asset_ids = 8;
+ * @param index The index of the element to return.
+ * @return The onrampAllowedDstAssetIds at the given index.
+ */
+ java.lang.String getOnrampAllowedDstAssetIds(int index);
+ /**
+ *
+ */ List of supported onramp destination asset ids.
+ *
+ *
+ * repeated string onramp_allowed_dst_asset_ids = 8;
+ * @param index The index of the element to return.
+ * @return The onrampAllowedDstAssetIds at the given index.
+ */
+ com.google.protobuf.ByteString
+ getOnrampAllowedDstAssetIdsBytes(int index);
+ }
+ /**
+ *
+ */ Response to the `GetInfo` request
+ *
+ *
+ * Protobuf type {@code mistyswap_common.GetInfoResponse}
+ */
+ public static final class GetInfoResponse extends
+ com.google.protobuf.GeneratedMessageLite<
+ GetInfoResponse, GetInfoResponse.Builder> implements
+ // @@protoc_insertion_point(message_implements:mistyswap_common.GetInfoResponse)
+ GetInfoResponseOrBuilder {
+ private GetInfoResponse() {
+ offrampAllowedSrcAssetIds_ = com.google.protobuf.GeneratedMessageLite.emptyProtobufList();
+ offrampAllowedDstAssetIds_ = com.google.protobuf.GeneratedMessageLite.emptyProtobufList();
+ onrampAllowedSrcAssetIds_ = com.google.protobuf.GeneratedMessageLite.emptyProtobufList();
+ onrampAllowedDstAssetIds_ = com.google.protobuf.GeneratedMessageLite.emptyProtobufList();
+ }
+ public static final int MAX_CONCURRENT_OFFRAMPS_FIELD_NUMBER = 1;
+ private long maxConcurrentOfframps_;
+ /**
+ *
+ */ Max concurrent offramps
+ *
+ *
+ * uint64 max_concurrent_offramps = 1;
+ * @return The maxConcurrentOfframps.
+ */
+ @java.lang.Override
+ public long getMaxConcurrentOfframps() {
+ return maxConcurrentOfframps_;
+ }
+ /**
+ *
+ */ Max concurrent offramps
+ *
+ *
+ * uint64 max_concurrent_offramps = 1;
+ * @param value The maxConcurrentOfframps to set.
+ */
+ private void setMaxConcurrentOfframps(long value) {
+
+ maxConcurrentOfframps_ = value;
+ }
+ /**
+ *
+ */ Max concurrent offramps
+ *
+ *
+ * uint64 max_concurrent_offramps = 1;
+ */
+ private void clearMaxConcurrentOfframps() {
+
+ maxConcurrentOfframps_ = 0L;
+ }
+
+ public static final int MAX_CONCURRENT_ONRAMPS_FIELD_NUMBER = 2;
+ private long maxConcurrentOnramps_;
+ /**
+ *
+ */ Max concurrent onramps
+ *
+ *
+ * uint64 max_concurrent_onramps = 2;
+ * @return The maxConcurrentOnramps.
+ */
+ @java.lang.Override
+ public long getMaxConcurrentOnramps() {
+ return maxConcurrentOnramps_;
+ }
+ /**
+ *
+ */ Max concurrent onramps
+ *
+ *
+ * uint64 max_concurrent_onramps = 2;
+ * @param value The maxConcurrentOnramps to set.
+ */
+ private void setMaxConcurrentOnramps(long value) {
+
+ maxConcurrentOnramps_ = value;
+ }
+ /**
+ *
+ */ Max concurrent onramps
+ *
+ *
+ * uint64 max_concurrent_onramps = 2;
+ */
+ private void clearMaxConcurrentOnramps() {
+
+ maxConcurrentOnramps_ = 0L;
+ }
+
+ public static final int CURRENT_OFFRAMPS_FIELD_NUMBER = 3;
+ private long currentOfframps_;
+ /**
+ *
+ */ Current number of offramps
+ *
+ *
+ * uint64 current_offramps = 3;
+ * @return The currentOfframps.
+ */
+ @java.lang.Override
+ public long getCurrentOfframps() {
+ return currentOfframps_;
+ }
+ /**
+ *
+ */ Current number of offramps
+ *
+ *
+ * uint64 current_offramps = 3;
+ * @param value The currentOfframps to set.
+ */
+ private void setCurrentOfframps(long value) {
+
+ currentOfframps_ = value;
+ }
+ /**
+ *
+ */ Current number of offramps
+ *
+ *
+ * uint64 current_offramps = 3;
+ */
+ private void clearCurrentOfframps() {
+
+ currentOfframps_ = 0L;
+ }
+
+ public static final int CURRENT_ONRAMPS_FIELD_NUMBER = 4;
+ private long currentOnramps_;
+ /**
+ *
+ */ Current number of onramps
+ *
+ *
+ * uint64 current_onramps = 4;
+ * @return The currentOnramps.
+ */
+ @java.lang.Override
+ public long getCurrentOnramps() {
+ return currentOnramps_;
+ }
+ /**
+ *
+ */ Current number of onramps
+ *
+ *
+ * uint64 current_onramps = 4;
+ * @param value The currentOnramps to set.
+ */
+ private void setCurrentOnramps(long value) {
+
+ currentOnramps_ = value;
+ }
+ /**
+ *
+ */ Current number of onramps
+ *
+ *
+ * uint64 current_onramps = 4;
+ */
+ private void clearCurrentOnramps() {
+
+ currentOnramps_ = 0L;
+ }
+
+ public static final int OFFRAMP_ALLOWED_SRC_ASSET_IDS_FIELD_NUMBER = 5;
+ private com.google.protobuf.Internal.ProtobufList
+ */ List of supported offramp source asset ids.
+ *
+ *
+ * repeated string offramp_allowed_src_asset_ids = 5;
+ * @return A list containing the offrampAllowedSrcAssetIds.
+ */
+ @java.lang.Override
+ public java.util.List
+ */ List of supported offramp source asset ids.
+ *
+ *
+ * repeated string offramp_allowed_src_asset_ids = 5;
+ * @return The count of offrampAllowedSrcAssetIds.
+ */
+ @java.lang.Override
+ public int getOfframpAllowedSrcAssetIdsCount() {
+ return offrampAllowedSrcAssetIds_.size();
+ }
+ /**
+ *
+ */ List of supported offramp source asset ids.
+ *
+ *
+ * repeated string offramp_allowed_src_asset_ids = 5;
+ * @param index The index of the element to return.
+ * @return The offrampAllowedSrcAssetIds at the given index.
+ */
+ @java.lang.Override
+ public java.lang.String getOfframpAllowedSrcAssetIds(int index) {
+ return offrampAllowedSrcAssetIds_.get(index);
+ }
+ /**
+ *
+ */ List of supported offramp source asset ids.
+ *
+ *
+ * repeated string offramp_allowed_src_asset_ids = 5;
+ * @param index The index of the value to return.
+ * @return The bytes of the offrampAllowedSrcAssetIds at the given index.
+ */
+ @java.lang.Override
+ public com.google.protobuf.ByteString
+ getOfframpAllowedSrcAssetIdsBytes(int index) {
+ return com.google.protobuf.ByteString.copyFromUtf8(
+ offrampAllowedSrcAssetIds_.get(index));
+ }
+ private void ensureOfframpAllowedSrcAssetIdsIsMutable() {
+ com.google.protobuf.Internal.ProtobufList
+ */ List of supported offramp source asset ids.
+ *
+ *
+ * repeated string offramp_allowed_src_asset_ids = 5;
+ * @param index The index to set the value at.
+ * @param value The offrampAllowedSrcAssetIds to set.
+ */
+ private void setOfframpAllowedSrcAssetIds(
+ int index, java.lang.String value) {
+ java.lang.Class> valueClass = value.getClass();
+ ensureOfframpAllowedSrcAssetIdsIsMutable();
+ offrampAllowedSrcAssetIds_.set(index, value);
+ }
+ /**
+ *
+ */ List of supported offramp source asset ids.
+ *
+ *
+ * repeated string offramp_allowed_src_asset_ids = 5;
+ * @param value The offrampAllowedSrcAssetIds to add.
+ */
+ private void addOfframpAllowedSrcAssetIds(
+ java.lang.String value) {
+ java.lang.Class> valueClass = value.getClass();
+ ensureOfframpAllowedSrcAssetIdsIsMutable();
+ offrampAllowedSrcAssetIds_.add(value);
+ }
+ /**
+ *
+ */ List of supported offramp source asset ids.
+ *
+ *
+ * repeated string offramp_allowed_src_asset_ids = 5;
+ * @param values The offrampAllowedSrcAssetIds to add.
+ */
+ private void addAllOfframpAllowedSrcAssetIds(
+ java.lang.Iterable
+ */ List of supported offramp source asset ids.
+ *
+ *
+ * repeated string offramp_allowed_src_asset_ids = 5;
+ */
+ private void clearOfframpAllowedSrcAssetIds() {
+ offrampAllowedSrcAssetIds_ = com.google.protobuf.GeneratedMessageLite.emptyProtobufList();
+ }
+ /**
+ *
+ */ List of supported offramp source asset ids.
+ *
+ *
+ * repeated string offramp_allowed_src_asset_ids = 5;
+ * @param value The bytes of the offrampAllowedSrcAssetIds to add.
+ */
+ private void addOfframpAllowedSrcAssetIdsBytes(
+ com.google.protobuf.ByteString value) {
+ checkByteStringIsUtf8(value);
+ ensureOfframpAllowedSrcAssetIdsIsMutable();
+ offrampAllowedSrcAssetIds_.add(value.toStringUtf8());
+ }
+
+ public static final int OFFRAMP_ALLOWED_DST_ASSET_IDS_FIELD_NUMBER = 6;
+ private com.google.protobuf.Internal.ProtobufList
+ */ List of supported offramp destination asset ids.
+ *
+ *
+ * repeated string offramp_allowed_dst_asset_ids = 6;
+ * @return A list containing the offrampAllowedDstAssetIds.
+ */
+ @java.lang.Override
+ public java.util.List
+ */ List of supported offramp destination asset ids.
+ *
+ *
+ * repeated string offramp_allowed_dst_asset_ids = 6;
+ * @return The count of offrampAllowedDstAssetIds.
+ */
+ @java.lang.Override
+ public int getOfframpAllowedDstAssetIdsCount() {
+ return offrampAllowedDstAssetIds_.size();
+ }
+ /**
+ *
+ */ List of supported offramp destination asset ids.
+ *
+ *
+ * repeated string offramp_allowed_dst_asset_ids = 6;
+ * @param index The index of the element to return.
+ * @return The offrampAllowedDstAssetIds at the given index.
+ */
+ @java.lang.Override
+ public java.lang.String getOfframpAllowedDstAssetIds(int index) {
+ return offrampAllowedDstAssetIds_.get(index);
+ }
+ /**
+ *
+ */ List of supported offramp destination asset ids.
+ *
+ *
+ * repeated string offramp_allowed_dst_asset_ids = 6;
+ * @param index The index of the value to return.
+ * @return The bytes of the offrampAllowedDstAssetIds at the given index.
+ */
+ @java.lang.Override
+ public com.google.protobuf.ByteString
+ getOfframpAllowedDstAssetIdsBytes(int index) {
+ return com.google.protobuf.ByteString.copyFromUtf8(
+ offrampAllowedDstAssetIds_.get(index));
+ }
+ private void ensureOfframpAllowedDstAssetIdsIsMutable() {
+ com.google.protobuf.Internal.ProtobufList
+ */ List of supported offramp destination asset ids.
+ *
+ *
+ * repeated string offramp_allowed_dst_asset_ids = 6;
+ * @param index The index to set the value at.
+ * @param value The offrampAllowedDstAssetIds to set.
+ */
+ private void setOfframpAllowedDstAssetIds(
+ int index, java.lang.String value) {
+ java.lang.Class> valueClass = value.getClass();
+ ensureOfframpAllowedDstAssetIdsIsMutable();
+ offrampAllowedDstAssetIds_.set(index, value);
+ }
+ /**
+ *
+ */ List of supported offramp destination asset ids.
+ *
+ *
+ * repeated string offramp_allowed_dst_asset_ids = 6;
+ * @param value The offrampAllowedDstAssetIds to add.
+ */
+ private void addOfframpAllowedDstAssetIds(
+ java.lang.String value) {
+ java.lang.Class> valueClass = value.getClass();
+ ensureOfframpAllowedDstAssetIdsIsMutable();
+ offrampAllowedDstAssetIds_.add(value);
+ }
+ /**
+ *
+ */ List of supported offramp destination asset ids.
+ *
+ *
+ * repeated string offramp_allowed_dst_asset_ids = 6;
+ * @param values The offrampAllowedDstAssetIds to add.
+ */
+ private void addAllOfframpAllowedDstAssetIds(
+ java.lang.Iterable
+ */ List of supported offramp destination asset ids.
+ *
+ *
+ * repeated string offramp_allowed_dst_asset_ids = 6;
+ */
+ private void clearOfframpAllowedDstAssetIds() {
+ offrampAllowedDstAssetIds_ = com.google.protobuf.GeneratedMessageLite.emptyProtobufList();
+ }
+ /**
+ *
+ */ List of supported offramp destination asset ids.
+ *
+ *
+ * repeated string offramp_allowed_dst_asset_ids = 6;
+ * @param value The bytes of the offrampAllowedDstAssetIds to add.
+ */
+ private void addOfframpAllowedDstAssetIdsBytes(
+ com.google.protobuf.ByteString value) {
+ checkByteStringIsUtf8(value);
+ ensureOfframpAllowedDstAssetIdsIsMutable();
+ offrampAllowedDstAssetIds_.add(value.toStringUtf8());
+ }
+
+ public static final int ONRAMP_ALLOWED_SRC_ASSET_IDS_FIELD_NUMBER = 7;
+ private com.google.protobuf.Internal.ProtobufList
+ */ List of supported onramp source asset ids.
+ *
+ *
+ * repeated string onramp_allowed_src_asset_ids = 7;
+ * @return A list containing the onrampAllowedSrcAssetIds.
+ */
+ @java.lang.Override
+ public java.util.List
+ */ List of supported onramp source asset ids.
+ *
+ *
+ * repeated string onramp_allowed_src_asset_ids = 7;
+ * @return The count of onrampAllowedSrcAssetIds.
+ */
+ @java.lang.Override
+ public int getOnrampAllowedSrcAssetIdsCount() {
+ return onrampAllowedSrcAssetIds_.size();
+ }
+ /**
+ *
+ */ List of supported onramp source asset ids.
+ *
+ *
+ * repeated string onramp_allowed_src_asset_ids = 7;
+ * @param index The index of the element to return.
+ * @return The onrampAllowedSrcAssetIds at the given index.
+ */
+ @java.lang.Override
+ public java.lang.String getOnrampAllowedSrcAssetIds(int index) {
+ return onrampAllowedSrcAssetIds_.get(index);
+ }
+ /**
+ *
+ */ List of supported onramp source asset ids.
+ *
+ *
+ * repeated string onramp_allowed_src_asset_ids = 7;
+ * @param index The index of the value to return.
+ * @return The bytes of the onrampAllowedSrcAssetIds at the given index.
+ */
+ @java.lang.Override
+ public com.google.protobuf.ByteString
+ getOnrampAllowedSrcAssetIdsBytes(int index) {
+ return com.google.protobuf.ByteString.copyFromUtf8(
+ onrampAllowedSrcAssetIds_.get(index));
+ }
+ private void ensureOnrampAllowedSrcAssetIdsIsMutable() {
+ com.google.protobuf.Internal.ProtobufList
+ */ List of supported onramp source asset ids.
+ *
+ *
+ * repeated string onramp_allowed_src_asset_ids = 7;
+ * @param index The index to set the value at.
+ * @param value The onrampAllowedSrcAssetIds to set.
+ */
+ private void setOnrampAllowedSrcAssetIds(
+ int index, java.lang.String value) {
+ java.lang.Class> valueClass = value.getClass();
+ ensureOnrampAllowedSrcAssetIdsIsMutable();
+ onrampAllowedSrcAssetIds_.set(index, value);
+ }
+ /**
+ *
+ */ List of supported onramp source asset ids.
+ *
+ *
+ * repeated string onramp_allowed_src_asset_ids = 7;
+ * @param value The onrampAllowedSrcAssetIds to add.
+ */
+ private void addOnrampAllowedSrcAssetIds(
+ java.lang.String value) {
+ java.lang.Class> valueClass = value.getClass();
+ ensureOnrampAllowedSrcAssetIdsIsMutable();
+ onrampAllowedSrcAssetIds_.add(value);
+ }
+ /**
+ *
+ */ List of supported onramp source asset ids.
+ *
+ *
+ * repeated string onramp_allowed_src_asset_ids = 7;
+ * @param values The onrampAllowedSrcAssetIds to add.
+ */
+ private void addAllOnrampAllowedSrcAssetIds(
+ java.lang.Iterable
+ */ List of supported onramp source asset ids.
+ *
+ *
+ * repeated string onramp_allowed_src_asset_ids = 7;
+ */
+ private void clearOnrampAllowedSrcAssetIds() {
+ onrampAllowedSrcAssetIds_ = com.google.protobuf.GeneratedMessageLite.emptyProtobufList();
+ }
+ /**
+ *
+ */ List of supported onramp source asset ids.
+ *
+ *
+ * repeated string onramp_allowed_src_asset_ids = 7;
+ * @param value The bytes of the onrampAllowedSrcAssetIds to add.
+ */
+ private void addOnrampAllowedSrcAssetIdsBytes(
+ com.google.protobuf.ByteString value) {
+ checkByteStringIsUtf8(value);
+ ensureOnrampAllowedSrcAssetIdsIsMutable();
+ onrampAllowedSrcAssetIds_.add(value.toStringUtf8());
+ }
+
+ public static final int ONRAMP_ALLOWED_DST_ASSET_IDS_FIELD_NUMBER = 8;
+ private com.google.protobuf.Internal.ProtobufList
+ */ List of supported onramp destination asset ids.
+ *
+ *
+ * repeated string onramp_allowed_dst_asset_ids = 8;
+ * @return A list containing the onrampAllowedDstAssetIds.
+ */
+ @java.lang.Override
+ public java.util.List
+ */ List of supported onramp destination asset ids.
+ *
+ *
+ * repeated string onramp_allowed_dst_asset_ids = 8;
+ * @return The count of onrampAllowedDstAssetIds.
+ */
+ @java.lang.Override
+ public int getOnrampAllowedDstAssetIdsCount() {
+ return onrampAllowedDstAssetIds_.size();
+ }
+ /**
+ *
+ */ List of supported onramp destination asset ids.
+ *
+ *
+ * repeated string onramp_allowed_dst_asset_ids = 8;
+ * @param index The index of the element to return.
+ * @return The onrampAllowedDstAssetIds at the given index.
+ */
+ @java.lang.Override
+ public java.lang.String getOnrampAllowedDstAssetIds(int index) {
+ return onrampAllowedDstAssetIds_.get(index);
+ }
+ /**
+ *
+ */ List of supported onramp destination asset ids.
+ *
+ *
+ * repeated string onramp_allowed_dst_asset_ids = 8;
+ * @param index The index of the value to return.
+ * @return The bytes of the onrampAllowedDstAssetIds at the given index.
+ */
+ @java.lang.Override
+ public com.google.protobuf.ByteString
+ getOnrampAllowedDstAssetIdsBytes(int index) {
+ return com.google.protobuf.ByteString.copyFromUtf8(
+ onrampAllowedDstAssetIds_.get(index));
+ }
+ private void ensureOnrampAllowedDstAssetIdsIsMutable() {
+ com.google.protobuf.Internal.ProtobufList
+ */ List of supported onramp destination asset ids.
+ *
+ *
+ * repeated string onramp_allowed_dst_asset_ids = 8;
+ * @param index The index to set the value at.
+ * @param value The onrampAllowedDstAssetIds to set.
+ */
+ private void setOnrampAllowedDstAssetIds(
+ int index, java.lang.String value) {
+ java.lang.Class> valueClass = value.getClass();
+ ensureOnrampAllowedDstAssetIdsIsMutable();
+ onrampAllowedDstAssetIds_.set(index, value);
+ }
+ /**
+ *
+ */ List of supported onramp destination asset ids.
+ *
+ *
+ * repeated string onramp_allowed_dst_asset_ids = 8;
+ * @param value The onrampAllowedDstAssetIds to add.
+ */
+ private void addOnrampAllowedDstAssetIds(
+ java.lang.String value) {
+ java.lang.Class> valueClass = value.getClass();
+ ensureOnrampAllowedDstAssetIdsIsMutable();
+ onrampAllowedDstAssetIds_.add(value);
+ }
+ /**
+ *
+ */ List of supported onramp destination asset ids.
+ *
+ *
+ * repeated string onramp_allowed_dst_asset_ids = 8;
+ * @param values The onrampAllowedDstAssetIds to add.
+ */
+ private void addAllOnrampAllowedDstAssetIds(
+ java.lang.Iterable
+ */ List of supported onramp destination asset ids.
+ *
+ *
+ * repeated string onramp_allowed_dst_asset_ids = 8;
+ */
+ private void clearOnrampAllowedDstAssetIds() {
+ onrampAllowedDstAssetIds_ = com.google.protobuf.GeneratedMessageLite.emptyProtobufList();
+ }
+ /**
+ *
+ */ List of supported onramp destination asset ids.
+ *
+ *
+ * repeated string onramp_allowed_dst_asset_ids = 8;
+ * @param value The bytes of the onrampAllowedDstAssetIds to add.
+ */
+ private void addOnrampAllowedDstAssetIdsBytes(
+ com.google.protobuf.ByteString value) {
+ checkByteStringIsUtf8(value);
+ ensureOnrampAllowedDstAssetIdsIsMutable();
+ onrampAllowedDstAssetIds_.add(value.toStringUtf8());
+ }
+
+ public static mistyswap.MistyswapCommon.GetInfoResponse parseFrom(
+ java.nio.ByteBuffer data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return com.google.protobuf.GeneratedMessageLite.parseFrom(
+ DEFAULT_INSTANCE, data);
+ }
+ public static mistyswap.MistyswapCommon.GetInfoResponse parseFrom(
+ java.nio.ByteBuffer data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return com.google.protobuf.GeneratedMessageLite.parseFrom(
+ DEFAULT_INSTANCE, data, extensionRegistry);
+ }
+ public static mistyswap.MistyswapCommon.GetInfoResponse parseFrom(
+ com.google.protobuf.ByteString data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return com.google.protobuf.GeneratedMessageLite.parseFrom(
+ DEFAULT_INSTANCE, data);
+ }
+ public static mistyswap.MistyswapCommon.GetInfoResponse parseFrom(
+ com.google.protobuf.ByteString data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return com.google.protobuf.GeneratedMessageLite.parseFrom(
+ DEFAULT_INSTANCE, data, extensionRegistry);
+ }
+ public static mistyswap.MistyswapCommon.GetInfoResponse parseFrom(byte[] data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return com.google.protobuf.GeneratedMessageLite.parseFrom(
+ DEFAULT_INSTANCE, data);
+ }
+ public static mistyswap.MistyswapCommon.GetInfoResponse parseFrom(
+ byte[] data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return com.google.protobuf.GeneratedMessageLite.parseFrom(
+ DEFAULT_INSTANCE, data, extensionRegistry);
+ }
+ public static mistyswap.MistyswapCommon.GetInfoResponse parseFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageLite.parseFrom(
+ DEFAULT_INSTANCE, input);
+ }
+ public static mistyswap.MistyswapCommon.GetInfoResponse parseFrom(
+ java.io.InputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageLite.parseFrom(
+ DEFAULT_INSTANCE, input, extensionRegistry);
+ }
+ public static mistyswap.MistyswapCommon.GetInfoResponse parseDelimitedFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return parseDelimitedFrom(DEFAULT_INSTANCE, input);
+ }
+ public static mistyswap.MistyswapCommon.GetInfoResponse parseDelimitedFrom(
+ java.io.InputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return parseDelimitedFrom(DEFAULT_INSTANCE, input, extensionRegistry);
+ }
+ public static mistyswap.MistyswapCommon.GetInfoResponse parseFrom(
+ com.google.protobuf.CodedInputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageLite.parseFrom(
+ DEFAULT_INSTANCE, input);
+ }
+ public static mistyswap.MistyswapCommon.GetInfoResponse parseFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageLite.parseFrom(
+ DEFAULT_INSTANCE, input, extensionRegistry);
+ }
+
+ public static Builder newBuilder() {
+ return (Builder) DEFAULT_INSTANCE.createBuilder();
+ }
+ public static Builder newBuilder(mistyswap.MistyswapCommon.GetInfoResponse prototype) {
+ return (Builder) DEFAULT_INSTANCE.createBuilder(prototype);
+ }
+
+ /**
+ *
+ */ Response to the `GetInfo` request
+ *
+ *
+ * Protobuf type {@code mistyswap_common.GetInfoResponse}
+ */
+ public static final class Builder extends
+ com.google.protobuf.GeneratedMessageLite.Builder<
+ mistyswap.MistyswapCommon.GetInfoResponse, Builder> implements
+ // @@protoc_insertion_point(builder_implements:mistyswap_common.GetInfoResponse)
+ mistyswap.MistyswapCommon.GetInfoResponseOrBuilder {
+ // Construct using mistyswap.MistyswapCommon.GetInfoResponse.newBuilder()
+ private Builder() {
+ super(DEFAULT_INSTANCE);
+ }
+
+
+ /**
+ *
+ */ Max concurrent offramps
+ *
+ *
+ * uint64 max_concurrent_offramps = 1;
+ * @return The maxConcurrentOfframps.
+ */
+ @java.lang.Override
+ public long getMaxConcurrentOfframps() {
+ return instance.getMaxConcurrentOfframps();
+ }
+ /**
+ *
+ */ Max concurrent offramps
+ *
+ *
+ * uint64 max_concurrent_offramps = 1;
+ * @param value The maxConcurrentOfframps to set.
+ * @return This builder for chaining.
+ */
+ public Builder setMaxConcurrentOfframps(long value) {
+ copyOnWrite();
+ instance.setMaxConcurrentOfframps(value);
+ return this;
+ }
+ /**
+ *
+ */ Max concurrent offramps
+ *
+ *
+ * uint64 max_concurrent_offramps = 1;
+ * @return This builder for chaining.
+ */
+ public Builder clearMaxConcurrentOfframps() {
+ copyOnWrite();
+ instance.clearMaxConcurrentOfframps();
+ return this;
+ }
+
+ /**
+ *
+ */ Max concurrent onramps
+ *
+ *
+ * uint64 max_concurrent_onramps = 2;
+ * @return The maxConcurrentOnramps.
+ */
+ @java.lang.Override
+ public long getMaxConcurrentOnramps() {
+ return instance.getMaxConcurrentOnramps();
+ }
+ /**
+ *
+ */ Max concurrent onramps
+ *
+ *
+ * uint64 max_concurrent_onramps = 2;
+ * @param value The maxConcurrentOnramps to set.
+ * @return This builder for chaining.
+ */
+ public Builder setMaxConcurrentOnramps(long value) {
+ copyOnWrite();
+ instance.setMaxConcurrentOnramps(value);
+ return this;
+ }
+ /**
+ *
+ */ Max concurrent onramps
+ *
+ *
+ * uint64 max_concurrent_onramps = 2;
+ * @return This builder for chaining.
+ */
+ public Builder clearMaxConcurrentOnramps() {
+ copyOnWrite();
+ instance.clearMaxConcurrentOnramps();
+ return this;
+ }
+
+ /**
+ *
+ */ Current number of offramps
+ *
+ *
+ * uint64 current_offramps = 3;
+ * @return The currentOfframps.
+ */
+ @java.lang.Override
+ public long getCurrentOfframps() {
+ return instance.getCurrentOfframps();
+ }
+ /**
+ *
+ */ Current number of offramps
+ *
+ *
+ * uint64 current_offramps = 3;
+ * @param value The currentOfframps to set.
+ * @return This builder for chaining.
+ */
+ public Builder setCurrentOfframps(long value) {
+ copyOnWrite();
+ instance.setCurrentOfframps(value);
+ return this;
+ }
+ /**
+ *
+ */ Current number of offramps
+ *
+ *
+ * uint64 current_offramps = 3;
+ * @return This builder for chaining.
+ */
+ public Builder clearCurrentOfframps() {
+ copyOnWrite();
+ instance.clearCurrentOfframps();
+ return this;
+ }
+
+ /**
+ *
+ */ Current number of onramps
+ *
+ *
+ * uint64 current_onramps = 4;
+ * @return The currentOnramps.
+ */
+ @java.lang.Override
+ public long getCurrentOnramps() {
+ return instance.getCurrentOnramps();
+ }
+ /**
+ *
+ */ Current number of onramps
+ *
+ *
+ * uint64 current_onramps = 4;
+ * @param value The currentOnramps to set.
+ * @return This builder for chaining.
+ */
+ public Builder setCurrentOnramps(long value) {
+ copyOnWrite();
+ instance.setCurrentOnramps(value);
+ return this;
+ }
+ /**
+ *
+ */ Current number of onramps
+ *
+ *
+ * uint64 current_onramps = 4;
+ * @return This builder for chaining.
+ */
+ public Builder clearCurrentOnramps() {
+ copyOnWrite();
+ instance.clearCurrentOnramps();
+ return this;
+ }
+
+ /**
+ *
+ */ List of supported offramp source asset ids.
+ *
+ *
+ * repeated string offramp_allowed_src_asset_ids = 5;
+ * @return A list containing the offrampAllowedSrcAssetIds.
+ */
+ @java.lang.Override
+ public java.util.List
+ */ List of supported offramp source asset ids.
+ *
+ *
+ * repeated string offramp_allowed_src_asset_ids = 5;
+ * @return The count of offrampAllowedSrcAssetIds.
+ */
+ @java.lang.Override
+ public int getOfframpAllowedSrcAssetIdsCount() {
+ return instance.getOfframpAllowedSrcAssetIdsCount();
+ }
+ /**
+ *
+ */ List of supported offramp source asset ids.
+ *
+ *
+ * repeated string offramp_allowed_src_asset_ids = 5;
+ * @param index The index of the element to return.
+ * @return The offrampAllowedSrcAssetIds at the given index.
+ */
+ @java.lang.Override
+ public java.lang.String getOfframpAllowedSrcAssetIds(int index) {
+ return instance.getOfframpAllowedSrcAssetIds(index);
+ }
+ /**
+ *
+ */ List of supported offramp source asset ids.
+ *
+ *
+ * repeated string offramp_allowed_src_asset_ids = 5;
+ * @param index The index of the value to return.
+ * @return The bytes of the offrampAllowedSrcAssetIds at the given index.
+ */
+ @java.lang.Override
+ public com.google.protobuf.ByteString
+ getOfframpAllowedSrcAssetIdsBytes(int index) {
+ return instance.getOfframpAllowedSrcAssetIdsBytes(index);
+ }
+ /**
+ *
+ */ List of supported offramp source asset ids.
+ *
+ *
+ * repeated string offramp_allowed_src_asset_ids = 5;
+ * @param index The index to set the value at.
+ * @param value The offrampAllowedSrcAssetIds to set.
+ * @return This builder for chaining.
+ */
+ public Builder setOfframpAllowedSrcAssetIds(
+ int index, java.lang.String value) {
+ copyOnWrite();
+ instance.setOfframpAllowedSrcAssetIds(index, value);
+ return this;
+ }
+ /**
+ *
+ */ List of supported offramp source asset ids.
+ *
+ *
+ * repeated string offramp_allowed_src_asset_ids = 5;
+ * @param value The offrampAllowedSrcAssetIds to add.
+ * @return This builder for chaining.
+ */
+ public Builder addOfframpAllowedSrcAssetIds(
+ java.lang.String value) {
+ copyOnWrite();
+ instance.addOfframpAllowedSrcAssetIds(value);
+ return this;
+ }
+ /**
+ *
+ */ List of supported offramp source asset ids.
+ *
+ *
+ * repeated string offramp_allowed_src_asset_ids = 5;
+ * @param values The offrampAllowedSrcAssetIds to add.
+ * @return This builder for chaining.
+ */
+ public Builder addAllOfframpAllowedSrcAssetIds(
+ java.lang.Iterable
+ */ List of supported offramp source asset ids.
+ *
+ *
+ * repeated string offramp_allowed_src_asset_ids = 5;
+ * @return This builder for chaining.
+ */
+ public Builder clearOfframpAllowedSrcAssetIds() {
+ copyOnWrite();
+ instance.clearOfframpAllowedSrcAssetIds();
+ return this;
+ }
+ /**
+ *
+ */ List of supported offramp source asset ids.
+ *
+ *
+ * repeated string offramp_allowed_src_asset_ids = 5;
+ * @param value The bytes of the offrampAllowedSrcAssetIds to add.
+ * @return This builder for chaining.
+ */
+ public Builder addOfframpAllowedSrcAssetIdsBytes(
+ com.google.protobuf.ByteString value) {
+ copyOnWrite();
+ instance.addOfframpAllowedSrcAssetIdsBytes(value);
+ return this;
+ }
+
+ /**
+ *
+ */ List of supported offramp destination asset ids.
+ *
+ *
+ * repeated string offramp_allowed_dst_asset_ids = 6;
+ * @return A list containing the offrampAllowedDstAssetIds.
+ */
+ @java.lang.Override
+ public java.util.List
+ */ List of supported offramp destination asset ids.
+ *
+ *
+ * repeated string offramp_allowed_dst_asset_ids = 6;
+ * @return The count of offrampAllowedDstAssetIds.
+ */
+ @java.lang.Override
+ public int getOfframpAllowedDstAssetIdsCount() {
+ return instance.getOfframpAllowedDstAssetIdsCount();
+ }
+ /**
+ *
+ */ List of supported offramp destination asset ids.
+ *
+ *
+ * repeated string offramp_allowed_dst_asset_ids = 6;
+ * @param index The index of the element to return.
+ * @return The offrampAllowedDstAssetIds at the given index.
+ */
+ @java.lang.Override
+ public java.lang.String getOfframpAllowedDstAssetIds(int index) {
+ return instance.getOfframpAllowedDstAssetIds(index);
+ }
+ /**
+ *
+ */ List of supported offramp destination asset ids.
+ *
+ *
+ * repeated string offramp_allowed_dst_asset_ids = 6;
+ * @param index The index of the value to return.
+ * @return The bytes of the offrampAllowedDstAssetIds at the given index.
+ */
+ @java.lang.Override
+ public com.google.protobuf.ByteString
+ getOfframpAllowedDstAssetIdsBytes(int index) {
+ return instance.getOfframpAllowedDstAssetIdsBytes(index);
+ }
+ /**
+ *
+ */ List of supported offramp destination asset ids.
+ *
+ *
+ * repeated string offramp_allowed_dst_asset_ids = 6;
+ * @param index The index to set the value at.
+ * @param value The offrampAllowedDstAssetIds to set.
+ * @return This builder for chaining.
+ */
+ public Builder setOfframpAllowedDstAssetIds(
+ int index, java.lang.String value) {
+ copyOnWrite();
+ instance.setOfframpAllowedDstAssetIds(index, value);
+ return this;
+ }
+ /**
+ *
+ */ List of supported offramp destination asset ids.
+ *
+ *
+ * repeated string offramp_allowed_dst_asset_ids = 6;
+ * @param value The offrampAllowedDstAssetIds to add.
+ * @return This builder for chaining.
+ */
+ public Builder addOfframpAllowedDstAssetIds(
+ java.lang.String value) {
+ copyOnWrite();
+ instance.addOfframpAllowedDstAssetIds(value);
+ return this;
+ }
+ /**
+ *
+ */ List of supported offramp destination asset ids.
+ *
+ *
+ * repeated string offramp_allowed_dst_asset_ids = 6;
+ * @param values The offrampAllowedDstAssetIds to add.
+ * @return This builder for chaining.
+ */
+ public Builder addAllOfframpAllowedDstAssetIds(
+ java.lang.Iterable
+ */ List of supported offramp destination asset ids.
+ *
+ *
+ * repeated string offramp_allowed_dst_asset_ids = 6;
+ * @return This builder for chaining.
+ */
+ public Builder clearOfframpAllowedDstAssetIds() {
+ copyOnWrite();
+ instance.clearOfframpAllowedDstAssetIds();
+ return this;
+ }
+ /**
+ *
+ */ List of supported offramp destination asset ids.
+ *
+ *
+ * repeated string offramp_allowed_dst_asset_ids = 6;
+ * @param value The bytes of the offrampAllowedDstAssetIds to add.
+ * @return This builder for chaining.
+ */
+ public Builder addOfframpAllowedDstAssetIdsBytes(
+ com.google.protobuf.ByteString value) {
+ copyOnWrite();
+ instance.addOfframpAllowedDstAssetIdsBytes(value);
+ return this;
+ }
+
+ /**
+ *
+ */ List of supported onramp source asset ids.
+ *
+ *
+ * repeated string onramp_allowed_src_asset_ids = 7;
+ * @return A list containing the onrampAllowedSrcAssetIds.
+ */
+ @java.lang.Override
+ public java.util.List
+ */ List of supported onramp source asset ids.
+ *
+ *
+ * repeated string onramp_allowed_src_asset_ids = 7;
+ * @return The count of onrampAllowedSrcAssetIds.
+ */
+ @java.lang.Override
+ public int getOnrampAllowedSrcAssetIdsCount() {
+ return instance.getOnrampAllowedSrcAssetIdsCount();
+ }
+ /**
+ *
+ */ List of supported onramp source asset ids.
+ *
+ *
+ * repeated string onramp_allowed_src_asset_ids = 7;
+ * @param index The index of the element to return.
+ * @return The onrampAllowedSrcAssetIds at the given index.
+ */
+ @java.lang.Override
+ public java.lang.String getOnrampAllowedSrcAssetIds(int index) {
+ return instance.getOnrampAllowedSrcAssetIds(index);
+ }
+ /**
+ *
+ */ List of supported onramp source asset ids.
+ *
+ *
+ * repeated string onramp_allowed_src_asset_ids = 7;
+ * @param index The index of the value to return.
+ * @return The bytes of the onrampAllowedSrcAssetIds at the given index.
+ */
+ @java.lang.Override
+ public com.google.protobuf.ByteString
+ getOnrampAllowedSrcAssetIdsBytes(int index) {
+ return instance.getOnrampAllowedSrcAssetIdsBytes(index);
+ }
+ /**
+ *
+ */ List of supported onramp source asset ids.
+ *
+ *
+ * repeated string onramp_allowed_src_asset_ids = 7;
+ * @param index The index to set the value at.
+ * @param value The onrampAllowedSrcAssetIds to set.
+ * @return This builder for chaining.
+ */
+ public Builder setOnrampAllowedSrcAssetIds(
+ int index, java.lang.String value) {
+ copyOnWrite();
+ instance.setOnrampAllowedSrcAssetIds(index, value);
+ return this;
+ }
+ /**
+ *
+ */ List of supported onramp source asset ids.
+ *
+ *
+ * repeated string onramp_allowed_src_asset_ids = 7;
+ * @param value The onrampAllowedSrcAssetIds to add.
+ * @return This builder for chaining.
+ */
+ public Builder addOnrampAllowedSrcAssetIds(
+ java.lang.String value) {
+ copyOnWrite();
+ instance.addOnrampAllowedSrcAssetIds(value);
+ return this;
+ }
+ /**
+ *
+ */ List of supported onramp source asset ids.
+ *
+ *
+ * repeated string onramp_allowed_src_asset_ids = 7;
+ * @param values The onrampAllowedSrcAssetIds to add.
+ * @return This builder for chaining.
+ */
+ public Builder addAllOnrampAllowedSrcAssetIds(
+ java.lang.Iterable
+ */ List of supported onramp source asset ids.
+ *
+ *
+ * repeated string onramp_allowed_src_asset_ids = 7;
+ * @return This builder for chaining.
+ */
+ public Builder clearOnrampAllowedSrcAssetIds() {
+ copyOnWrite();
+ instance.clearOnrampAllowedSrcAssetIds();
+ return this;
+ }
+ /**
+ *
+ */ List of supported onramp source asset ids.
+ *
+ *
+ * repeated string onramp_allowed_src_asset_ids = 7;
+ * @param value The bytes of the onrampAllowedSrcAssetIds to add.
+ * @return This builder for chaining.
+ */
+ public Builder addOnrampAllowedSrcAssetIdsBytes(
+ com.google.protobuf.ByteString value) {
+ copyOnWrite();
+ instance.addOnrampAllowedSrcAssetIdsBytes(value);
+ return this;
+ }
+
+ /**
+ *
+ */ List of supported onramp destination asset ids.
+ *
+ *
+ * repeated string onramp_allowed_dst_asset_ids = 8;
+ * @return A list containing the onrampAllowedDstAssetIds.
+ */
+ @java.lang.Override
+ public java.util.List
+ */ List of supported onramp destination asset ids.
+ *
+ *
+ * repeated string onramp_allowed_dst_asset_ids = 8;
+ * @return The count of onrampAllowedDstAssetIds.
+ */
+ @java.lang.Override
+ public int getOnrampAllowedDstAssetIdsCount() {
+ return instance.getOnrampAllowedDstAssetIdsCount();
+ }
+ /**
+ *
+ */ List of supported onramp destination asset ids.
+ *
+ *
+ * repeated string onramp_allowed_dst_asset_ids = 8;
+ * @param index The index of the element to return.
+ * @return The onrampAllowedDstAssetIds at the given index.
+ */
+ @java.lang.Override
+ public java.lang.String getOnrampAllowedDstAssetIds(int index) {
+ return instance.getOnrampAllowedDstAssetIds(index);
+ }
+ /**
+ *
+ */ List of supported onramp destination asset ids.
+ *
+ *
+ * repeated string onramp_allowed_dst_asset_ids = 8;
+ * @param index The index of the value to return.
+ * @return The bytes of the onrampAllowedDstAssetIds at the given index.
+ */
+ @java.lang.Override
+ public com.google.protobuf.ByteString
+ getOnrampAllowedDstAssetIdsBytes(int index) {
+ return instance.getOnrampAllowedDstAssetIdsBytes(index);
+ }
+ /**
+ *
+ */ List of supported onramp destination asset ids.
+ *
+ *
+ * repeated string onramp_allowed_dst_asset_ids = 8;
+ * @param index The index to set the value at.
+ * @param value The onrampAllowedDstAssetIds to set.
+ * @return This builder for chaining.
+ */
+ public Builder setOnrampAllowedDstAssetIds(
+ int index, java.lang.String value) {
+ copyOnWrite();
+ instance.setOnrampAllowedDstAssetIds(index, value);
+ return this;
+ }
+ /**
+ *
+ */ List of supported onramp destination asset ids.
+ *
+ *
+ * repeated string onramp_allowed_dst_asset_ids = 8;
+ * @param value The onrampAllowedDstAssetIds to add.
+ * @return This builder for chaining.
+ */
+ public Builder addOnrampAllowedDstAssetIds(
+ java.lang.String value) {
+ copyOnWrite();
+ instance.addOnrampAllowedDstAssetIds(value);
+ return this;
+ }
+ /**
+ *
+ */ List of supported onramp destination asset ids.
+ *
+ *
+ * repeated string onramp_allowed_dst_asset_ids = 8;
+ * @param values The onrampAllowedDstAssetIds to add.
+ * @return This builder for chaining.
+ */
+ public Builder addAllOnrampAllowedDstAssetIds(
+ java.lang.Iterable
+ */ List of supported onramp destination asset ids.
+ *
+ *
+ * repeated string onramp_allowed_dst_asset_ids = 8;
+ * @return This builder for chaining.
+ */
+ public Builder clearOnrampAllowedDstAssetIds() {
+ copyOnWrite();
+ instance.clearOnrampAllowedDstAssetIds();
+ return this;
+ }
+ /**
+ *
+ */ List of supported onramp destination asset ids.
+ *
+ *
+ * repeated string onramp_allowed_dst_asset_ids = 8;
+ * @param value The bytes of the onrampAllowedDstAssetIds to add.
+ * @return This builder for chaining.
+ */
+ public Builder addOnrampAllowedDstAssetIdsBytes(
+ com.google.protobuf.ByteString value) {
+ copyOnWrite();
+ instance.addOnrampAllowedDstAssetIdsBytes(value);
+ return this;
+ }
+
+ // @@protoc_insertion_point(builder_scope:mistyswap_common.GetInfoResponse)
+ }
+ @java.lang.Override
+ @java.lang.SuppressWarnings({"unchecked", "fallthrough"})
+ protected final java.lang.Object dynamicMethod(
+ com.google.protobuf.GeneratedMessageLite.MethodToInvoke method,
+ java.lang.Object arg0, java.lang.Object arg1) {
+ switch (method) {
+ case NEW_MUTABLE_INSTANCE: {
+ return new mistyswap.MistyswapCommon.GetInfoResponse();
+ }
+ case NEW_BUILDER: {
+ return new Builder();
+ }
+ case BUILD_MESSAGE_INFO: {
+ java.lang.Object[] objects = new java.lang.Object[] {
+ "maxConcurrentOfframps_",
+ "maxConcurrentOnramps_",
+ "currentOfframps_",
+ "currentOnramps_",
+ "offrampAllowedSrcAssetIds_",
+ "offrampAllowedDstAssetIds_",
+ "onrampAllowedSrcAssetIds_",
+ "onrampAllowedDstAssetIds_",
+ };
+ java.lang.String info =
+ "\u0000\b\u0000\u0000\u0001\b\b\u0000\u0004\u0000\u0001\u0003\u0002\u0003\u0003\u0003" +
+ "\u0004\u0003\u0005\u021a\u0006\u021a\u0007\u021a\b\u021a";
+ return newMessageInfo(DEFAULT_INSTANCE, info, objects);
+ }
+ // fall through
+ case GET_DEFAULT_INSTANCE: {
+ return DEFAULT_INSTANCE;
+ }
+ case GET_PARSER: {
+ com.google.protobuf.Parser
+ */ Get information about this mistyswap instance.
+ *
+ */
+ default void getInfo(com.google.protobuf.Empty request,
+ io.grpc.stub.StreamObserver
+ */ Get information about this mistyswap instance.
+ *
+ */
+ public void getInfo(com.google.protobuf.Empty request,
+ io.grpc.stub.StreamObserver
+ */ Get information about this mistyswap instance.
+ *
+ */
+ public mistyswap.MistyswapCommon.GetInfoResponse getInfo(com.google.protobuf.Empty request) {
+ return io.grpc.stub.ClientCalls.blockingUnaryCall(
+ getChannel(), getGetInfoMethod(), getCallOptions(), request);
+ }
+ }
+
+ /**
+ * A stub to allow clients to do ListenableFuture-style rpc calls to service MistyswapCommonApi.
+ */
+ public static final class MistyswapCommonApiFutureStub
+ extends io.grpc.stub.AbstractFutureStub
+ */ Get information about this mistyswap instance.
+ *
+ */
+ public com.google.common.util.concurrent.ListenableFuture
+ */ Various possible offramp error codes.
+ * / This should be kept in sync with mistyswap_offramp_api::Error
+ * / The ORC prefix is needed since enum variants have to be unique across all enums in the file.
+ *
+ *
+ * Protobuf enum {@code mistyswap_offramp.OfframpResultCode}
+ */
+ public enum OfframpResultCode
+ implements com.google.protobuf.Internal.EnumLite {
+ /**
+ * ORC_INVALID = 0;
+ */
+ ORC_INVALID(0),
+ /**
+ * ORC_OK = 1;
+ */
+ ORC_OK(1),
+ /**
+ * ORC_TOO_MANY_OFFRAMPS = 2;
+ */
+ ORC_TOO_MANY_OFFRAMPS(2),
+ /**
+ * ORC_MIXIN_CREDENTIALS_JSON = 3;
+ */
+ ORC_MIXIN_CREDENTIALS_JSON(3),
+ /**
+ * ORC_OFFRAMP_ALREADY_IN_PROGRESS = 4;
+ */
+ ORC_OFFRAMP_ALREADY_IN_PROGRESS(4),
+ /**
+ * ORC_MIXIN = 5;
+ */
+ ORC_MIXIN(5),
+ /**
+ * ORC_INVALID_SRC_ASSET_ID = 6;
+ */
+ ORC_INVALID_SRC_ASSET_ID(6),
+ /**
+ * ORC_INVALID_DST_ASSET_ID = 7;
+ */
+ ORC_INVALID_DST_ASSET_ID(7),
+ /**
+ * ORC_OFFRAMP_ID_NOT_FOUND = 8;
+ */
+ ORC_OFFRAMP_ID_NOT_FOUND(8),
+ /**
+ * ORC_INVALID_SRC_EXPECTED_AMOUNT = 9;
+ */
+ ORC_INVALID_SRC_EXPECTED_AMOUNT(9),
+ /**
+ * ORC_INVALID_MIN_DST_RECEIVED_AMOUNT = 10;
+ */
+ ORC_INVALID_MIN_DST_RECEIVED_AMOUNT(10),
+ /**
+ * ORC_INVALID_MAX_FEE_AMOUNT_IN_DST_TOKENS = 11;
+ */
+ ORC_INVALID_MAX_FEE_AMOUNT_IN_DST_TOKENS(11),
+ /**
+ * ORC_INVALID_FEE_TOKEN_SWAP_MULTIPLIER = 12;
+ */
+ ORC_INVALID_FEE_TOKEN_SWAP_MULTIPLIER(12),
+ UNRECOGNIZED(-1),
+ ;
+
+ /**
+ * ORC_INVALID = 0;
+ */
+ public static final int ORC_INVALID_VALUE = 0;
+ /**
+ * ORC_OK = 1;
+ */
+ public static final int ORC_OK_VALUE = 1;
+ /**
+ * ORC_TOO_MANY_OFFRAMPS = 2;
+ */
+ public static final int ORC_TOO_MANY_OFFRAMPS_VALUE = 2;
+ /**
+ * ORC_MIXIN_CREDENTIALS_JSON = 3;
+ */
+ public static final int ORC_MIXIN_CREDENTIALS_JSON_VALUE = 3;
+ /**
+ * ORC_OFFRAMP_ALREADY_IN_PROGRESS = 4;
+ */
+ public static final int ORC_OFFRAMP_ALREADY_IN_PROGRESS_VALUE = 4;
+ /**
+ * ORC_MIXIN = 5;
+ */
+ public static final int ORC_MIXIN_VALUE = 5;
+ /**
+ * ORC_INVALID_SRC_ASSET_ID = 6;
+ */
+ public static final int ORC_INVALID_SRC_ASSET_ID_VALUE = 6;
+ /**
+ * ORC_INVALID_DST_ASSET_ID = 7;
+ */
+ public static final int ORC_INVALID_DST_ASSET_ID_VALUE = 7;
+ /**
+ * ORC_OFFRAMP_ID_NOT_FOUND = 8;
+ */
+ public static final int ORC_OFFRAMP_ID_NOT_FOUND_VALUE = 8;
+ /**
+ * ORC_INVALID_SRC_EXPECTED_AMOUNT = 9;
+ */
+ public static final int ORC_INVALID_SRC_EXPECTED_AMOUNT_VALUE = 9;
+ /**
+ * ORC_INVALID_MIN_DST_RECEIVED_AMOUNT = 10;
+ */
+ public static final int ORC_INVALID_MIN_DST_RECEIVED_AMOUNT_VALUE = 10;
+ /**
+ * ORC_INVALID_MAX_FEE_AMOUNT_IN_DST_TOKENS = 11;
+ */
+ public static final int ORC_INVALID_MAX_FEE_AMOUNT_IN_DST_TOKENS_VALUE = 11;
+ /**
+ * ORC_INVALID_FEE_TOKEN_SWAP_MULTIPLIER = 12;
+ */
+ public static final int ORC_INVALID_FEE_TOKEN_SWAP_MULTIPLIER_VALUE = 12;
+
+
+ @java.lang.Override
+ public final int getNumber() {
+ if (this == UNRECOGNIZED) {
+ throw new java.lang.IllegalArgumentException(
+ "Can't get the number of an unknown enum value.");
+ }
+ return value;
+ }
+
+ /**
+ * @param value The number of the enum to look for.
+ * @return The enum associated with the given number.
+ * @deprecated Use {@link #forNumber(int)} instead.
+ */
+ @java.lang.Deprecated
+ public static OfframpResultCode valueOf(int value) {
+ return forNumber(value);
+ }
+
+ public static OfframpResultCode forNumber(int value) {
+ switch (value) {
+ case 0: return ORC_INVALID;
+ case 1: return ORC_OK;
+ case 2: return ORC_TOO_MANY_OFFRAMPS;
+ case 3: return ORC_MIXIN_CREDENTIALS_JSON;
+ case 4: return ORC_OFFRAMP_ALREADY_IN_PROGRESS;
+ case 5: return ORC_MIXIN;
+ case 6: return ORC_INVALID_SRC_ASSET_ID;
+ case 7: return ORC_INVALID_DST_ASSET_ID;
+ case 8: return ORC_OFFRAMP_ID_NOT_FOUND;
+ case 9: return ORC_INVALID_SRC_EXPECTED_AMOUNT;
+ case 10: return ORC_INVALID_MIN_DST_RECEIVED_AMOUNT;
+ case 11: return ORC_INVALID_MAX_FEE_AMOUNT_IN_DST_TOKENS;
+ case 12: return ORC_INVALID_FEE_TOKEN_SWAP_MULTIPLIER;
+ default: return null;
+ }
+ }
+
+ public static com.google.protobuf.Internal.EnumLiteMap
+ */ Current offramp state.
+ * / This should be kept in sync with offramp_impl::OfframpState
+ * / The OS prefix is needed since enum variants have to be unique across all enums in the file.
+ *
+ *
+ * Protobuf enum {@code mistyswap_offramp.OfframpState}
+ */
+ public enum OfframpState
+ implements com.google.protobuf.Internal.EnumLite {
+ /**
+ * OS_INVALID = 0;
+ */
+ OS_INVALID(0),
+ /**
+ * OS_NOT_STARTED = 1;
+ */
+ OS_NOT_STARTED(1),
+ /**
+ * OS_POLLING = 2;
+ */
+ OS_POLLING(2),
+ /**
+ * OS_WAITING = 3;
+ */
+ OS_WAITING(3),
+ /**
+ * OS_INVALID_WITHDRAWAL_ADDRESS = 4;
+ */
+ OS_INVALID_WITHDRAWAL_ADDRESS(4),
+ /**
+ * OS_INTERMITTENT_ERROR = 5;
+ */
+ OS_INTERMITTENT_ERROR(5),
+ /**
+ * OS_BLOCKED_ON_SWAP = 6;
+ */
+ OS_BLOCKED_ON_SWAP(6),
+ /**
+ * OS_BLOCKED_ON_WITHDRAWAL = 7;
+ */
+ OS_BLOCKED_ON_WITHDRAWAL(7),
+ /**
+ * OS_WITHDRAWAL_COMPLETED = 8;
+ */
+ OS_WITHDRAWAL_COMPLETED(8),
+ /**
+ * OS_UNRECOVERABLE_ERROR = 9;
+ */
+ OS_UNRECOVERABLE_ERROR(9),
+ UNRECOGNIZED(-1),
+ ;
+
+ /**
+ * OS_INVALID = 0;
+ */
+ public static final int OS_INVALID_VALUE = 0;
+ /**
+ * OS_NOT_STARTED = 1;
+ */
+ public static final int OS_NOT_STARTED_VALUE = 1;
+ /**
+ * OS_POLLING = 2;
+ */
+ public static final int OS_POLLING_VALUE = 2;
+ /**
+ * OS_WAITING = 3;
+ */
+ public static final int OS_WAITING_VALUE = 3;
+ /**
+ * OS_INVALID_WITHDRAWAL_ADDRESS = 4;
+ */
+ public static final int OS_INVALID_WITHDRAWAL_ADDRESS_VALUE = 4;
+ /**
+ * OS_INTERMITTENT_ERROR = 5;
+ */
+ public static final int OS_INTERMITTENT_ERROR_VALUE = 5;
+ /**
+ * OS_BLOCKED_ON_SWAP = 6;
+ */
+ public static final int OS_BLOCKED_ON_SWAP_VALUE = 6;
+ /**
+ * OS_BLOCKED_ON_WITHDRAWAL = 7;
+ */
+ public static final int OS_BLOCKED_ON_WITHDRAWAL_VALUE = 7;
+ /**
+ * OS_WITHDRAWAL_COMPLETED = 8;
+ */
+ public static final int OS_WITHDRAWAL_COMPLETED_VALUE = 8;
+ /**
+ * OS_UNRECOVERABLE_ERROR = 9;
+ */
+ public static final int OS_UNRECOVERABLE_ERROR_VALUE = 9;
+
+
+ @java.lang.Override
+ public final int getNumber() {
+ if (this == UNRECOGNIZED) {
+ throw new java.lang.IllegalArgumentException(
+ "Can't get the number of an unknown enum value.");
+ }
+ return value;
+ }
+
+ /**
+ * @param value The number of the enum to look for.
+ * @return The enum associated with the given number.
+ * @deprecated Use {@link #forNumber(int)} instead.
+ */
+ @java.lang.Deprecated
+ public static OfframpState valueOf(int value) {
+ return forNumber(value);
+ }
+
+ public static OfframpState forNumber(int value) {
+ switch (value) {
+ case 0: return OS_INVALID;
+ case 1: return OS_NOT_STARTED;
+ case 2: return OS_POLLING;
+ case 3: return OS_WAITING;
+ case 4: return OS_INVALID_WITHDRAWAL_ADDRESS;
+ case 5: return OS_INTERMITTENT_ERROR;
+ case 6: return OS_BLOCKED_ON_SWAP;
+ case 7: return OS_BLOCKED_ON_WITHDRAWAL;
+ case 8: return OS_WITHDRAWAL_COMPLETED;
+ case 9: return OS_UNRECOVERABLE_ERROR;
+ default: return null;
+ }
+ }
+
+ public static com.google.protobuf.Internal.EnumLiteMap.mistyswap_offramp.OfframpResultCode code = 1;
+ * @return The enum numeric value on the wire for code.
+ */
+ int getCodeValue();
+ /**
+ * .mistyswap_offramp.OfframpResultCode code = 1;
+ * @return The code.
+ */
+ mistyswap.MistyswapOfframp.OfframpResultCode getCode();
+
+ /**
+ * string message = 2;
+ * @return The message.
+ */
+ java.lang.String getMessage();
+ /**
+ * string message = 2;
+ * @return The bytes for message.
+ */
+ com.google.protobuf.ByteString
+ getMessageBytes();
+
+ /**
+ *
+ * For OfframAlreadyInProgress, this is the offramp_id of the existing offramp.
+ *
+ *
+ * bytes offramp_id = 3;
+ * @return The offrampId.
+ */
+ com.google.protobuf.ByteString getOfframpId();
+ }
+ /**
+ *
+ */ A simplified GRPC-compatible wrapper for Result<_, mistyswap_offramp_api::Error>
+ *
+ *
+ * Protobuf type {@code mistyswap_offramp.OfframpResult}
+ */
+ public static final class OfframpResult extends
+ com.google.protobuf.GeneratedMessageLite<
+ OfframpResult, OfframpResult.Builder> implements
+ // @@protoc_insertion_point(message_implements:mistyswap_offramp.OfframpResult)
+ OfframpResultOrBuilder {
+ private OfframpResult() {
+ message_ = "";
+ offrampId_ = com.google.protobuf.ByteString.EMPTY;
+ }
+ public static final int CODE_FIELD_NUMBER = 1;
+ private int code_;
+ /**
+ * .mistyswap_offramp.OfframpResultCode code = 1;
+ * @return The enum numeric value on the wire for code.
+ */
+ @java.lang.Override
+ public int getCodeValue() {
+ return code_;
+ }
+ /**
+ * .mistyswap_offramp.OfframpResultCode code = 1;
+ * @return The code.
+ */
+ @java.lang.Override
+ public mistyswap.MistyswapOfframp.OfframpResultCode getCode() {
+ mistyswap.MistyswapOfframp.OfframpResultCode result = mistyswap.MistyswapOfframp.OfframpResultCode.forNumber(code_);
+ return result == null ? mistyswap.MistyswapOfframp.OfframpResultCode.UNRECOGNIZED : result;
+ }
+ /**
+ * .mistyswap_offramp.OfframpResultCode code = 1;
+ * @param value The enum numeric value on the wire for code to set.
+ */
+ private void setCodeValue(int value) {
+ code_ = value;
+ }
+ /**
+ * .mistyswap_offramp.OfframpResultCode code = 1;
+ * @param value The code to set.
+ */
+ private void setCode(mistyswap.MistyswapOfframp.OfframpResultCode value) {
+ code_ = value.getNumber();
+
+ }
+ /**
+ * .mistyswap_offramp.OfframpResultCode code = 1;
+ */
+ private void clearCode() {
+
+ code_ = 0;
+ }
+
+ public static final int MESSAGE_FIELD_NUMBER = 2;
+ private java.lang.String message_;
+ /**
+ * string message = 2;
+ * @return The message.
+ */
+ @java.lang.Override
+ public java.lang.String getMessage() {
+ return message_;
+ }
+ /**
+ * string message = 2;
+ * @return The bytes for message.
+ */
+ @java.lang.Override
+ public com.google.protobuf.ByteString
+ getMessageBytes() {
+ return com.google.protobuf.ByteString.copyFromUtf8(message_);
+ }
+ /**
+ * string message = 2;
+ * @param value The message to set.
+ */
+ private void setMessage(
+ java.lang.String value) {
+ java.lang.Class> valueClass = value.getClass();
+
+ message_ = value;
+ }
+ /**
+ * string message = 2;
+ */
+ private void clearMessage() {
+
+ message_ = getDefaultInstance().getMessage();
+ }
+ /**
+ * string message = 2;
+ * @param value The bytes for message to set.
+ */
+ private void setMessageBytes(
+ com.google.protobuf.ByteString value) {
+ checkByteStringIsUtf8(value);
+ message_ = value.toStringUtf8();
+
+ }
+
+ public static final int OFFRAMP_ID_FIELD_NUMBER = 3;
+ private com.google.protobuf.ByteString offrampId_;
+ /**
+ *
+ * For OfframAlreadyInProgress, this is the offramp_id of the existing offramp.
+ *
+ *
+ * bytes offramp_id = 3;
+ * @return The offrampId.
+ */
+ @java.lang.Override
+ public com.google.protobuf.ByteString getOfframpId() {
+ return offrampId_;
+ }
+ /**
+ *
+ * For OfframAlreadyInProgress, this is the offramp_id of the existing offramp.
+ *
+ *
+ * bytes offramp_id = 3;
+ * @param value The offrampId to set.
+ */
+ private void setOfframpId(com.google.protobuf.ByteString value) {
+ java.lang.Class> valueClass = value.getClass();
+
+ offrampId_ = value;
+ }
+ /**
+ *
+ * For OfframAlreadyInProgress, this is the offramp_id of the existing offramp.
+ *
+ *
+ * bytes offramp_id = 3;
+ */
+ private void clearOfframpId() {
+
+ offrampId_ = getDefaultInstance().getOfframpId();
+ }
+
+ public static mistyswap.MistyswapOfframp.OfframpResult parseFrom(
+ java.nio.ByteBuffer data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return com.google.protobuf.GeneratedMessageLite.parseFrom(
+ DEFAULT_INSTANCE, data);
+ }
+ public static mistyswap.MistyswapOfframp.OfframpResult parseFrom(
+ java.nio.ByteBuffer data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return com.google.protobuf.GeneratedMessageLite.parseFrom(
+ DEFAULT_INSTANCE, data, extensionRegistry);
+ }
+ public static mistyswap.MistyswapOfframp.OfframpResult parseFrom(
+ com.google.protobuf.ByteString data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return com.google.protobuf.GeneratedMessageLite.parseFrom(
+ DEFAULT_INSTANCE, data);
+ }
+ public static mistyswap.MistyswapOfframp.OfframpResult parseFrom(
+ com.google.protobuf.ByteString data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return com.google.protobuf.GeneratedMessageLite.parseFrom(
+ DEFAULT_INSTANCE, data, extensionRegistry);
+ }
+ public static mistyswap.MistyswapOfframp.OfframpResult parseFrom(byte[] data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return com.google.protobuf.GeneratedMessageLite.parseFrom(
+ DEFAULT_INSTANCE, data);
+ }
+ public static mistyswap.MistyswapOfframp.OfframpResult parseFrom(
+ byte[] data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return com.google.protobuf.GeneratedMessageLite.parseFrom(
+ DEFAULT_INSTANCE, data, extensionRegistry);
+ }
+ public static mistyswap.MistyswapOfframp.OfframpResult parseFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageLite.parseFrom(
+ DEFAULT_INSTANCE, input);
+ }
+ public static mistyswap.MistyswapOfframp.OfframpResult parseFrom(
+ java.io.InputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageLite.parseFrom(
+ DEFAULT_INSTANCE, input, extensionRegistry);
+ }
+ public static mistyswap.MistyswapOfframp.OfframpResult parseDelimitedFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return parseDelimitedFrom(DEFAULT_INSTANCE, input);
+ }
+ public static mistyswap.MistyswapOfframp.OfframpResult parseDelimitedFrom(
+ java.io.InputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return parseDelimitedFrom(DEFAULT_INSTANCE, input, extensionRegistry);
+ }
+ public static mistyswap.MistyswapOfframp.OfframpResult parseFrom(
+ com.google.protobuf.CodedInputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageLite.parseFrom(
+ DEFAULT_INSTANCE, input);
+ }
+ public static mistyswap.MistyswapOfframp.OfframpResult parseFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageLite.parseFrom(
+ DEFAULT_INSTANCE, input, extensionRegistry);
+ }
+
+ public static Builder newBuilder() {
+ return (Builder) DEFAULT_INSTANCE.createBuilder();
+ }
+ public static Builder newBuilder(mistyswap.MistyswapOfframp.OfframpResult prototype) {
+ return (Builder) DEFAULT_INSTANCE.createBuilder(prototype);
+ }
+
+ /**
+ *
+ */ A simplified GRPC-compatible wrapper for Result<_, mistyswap_offramp_api::Error>
+ *
+ *
+ * Protobuf type {@code mistyswap_offramp.OfframpResult}
+ */
+ public static final class Builder extends
+ com.google.protobuf.GeneratedMessageLite.Builder<
+ mistyswap.MistyswapOfframp.OfframpResult, Builder> implements
+ // @@protoc_insertion_point(builder_implements:mistyswap_offramp.OfframpResult)
+ mistyswap.MistyswapOfframp.OfframpResultOrBuilder {
+ // Construct using mistyswap.MistyswapOfframp.OfframpResult.newBuilder()
+ private Builder() {
+ super(DEFAULT_INSTANCE);
+ }
+
+
+ /**
+ * .mistyswap_offramp.OfframpResultCode code = 1;
+ * @return The enum numeric value on the wire for code.
+ */
+ @java.lang.Override
+ public int getCodeValue() {
+ return instance.getCodeValue();
+ }
+ /**
+ * .mistyswap_offramp.OfframpResultCode code = 1;
+ * @param value The code to set.
+ * @return This builder for chaining.
+ */
+ public Builder setCodeValue(int value) {
+ copyOnWrite();
+ instance.setCodeValue(value);
+ return this;
+ }
+ /**
+ * .mistyswap_offramp.OfframpResultCode code = 1;
+ * @return The code.
+ */
+ @java.lang.Override
+ public mistyswap.MistyswapOfframp.OfframpResultCode getCode() {
+ return instance.getCode();
+ }
+ /**
+ * .mistyswap_offramp.OfframpResultCode code = 1;
+ * @param value The enum numeric value on the wire for code to set.
+ * @return This builder for chaining.
+ */
+ public Builder setCode(mistyswap.MistyswapOfframp.OfframpResultCode value) {
+ copyOnWrite();
+ instance.setCode(value);
+ return this;
+ }
+ /**
+ * .mistyswap_offramp.OfframpResultCode code = 1;
+ * @return This builder for chaining.
+ */
+ public Builder clearCode() {
+ copyOnWrite();
+ instance.clearCode();
+ return this;
+ }
+
+ /**
+ * string message = 2;
+ * @return The message.
+ */
+ @java.lang.Override
+ public java.lang.String getMessage() {
+ return instance.getMessage();
+ }
+ /**
+ * string message = 2;
+ * @return The bytes for message.
+ */
+ @java.lang.Override
+ public com.google.protobuf.ByteString
+ getMessageBytes() {
+ return instance.getMessageBytes();
+ }
+ /**
+ * string message = 2;
+ * @param value The message to set.
+ * @return This builder for chaining.
+ */
+ public Builder setMessage(
+ java.lang.String value) {
+ copyOnWrite();
+ instance.setMessage(value);
+ return this;
+ }
+ /**
+ * string message = 2;
+ * @return This builder for chaining.
+ */
+ public Builder clearMessage() {
+ copyOnWrite();
+ instance.clearMessage();
+ return this;
+ }
+ /**
+ * string message = 2;
+ * @param value The bytes for message to set.
+ * @return This builder for chaining.
+ */
+ public Builder setMessageBytes(
+ com.google.protobuf.ByteString value) {
+ copyOnWrite();
+ instance.setMessageBytes(value);
+ return this;
+ }
+
+ /**
+ *
+ * For OfframAlreadyInProgress, this is the offramp_id of the existing offramp.
+ *
+ *
+ * bytes offramp_id = 3;
+ * @return The offrampId.
+ */
+ @java.lang.Override
+ public com.google.protobuf.ByteString getOfframpId() {
+ return instance.getOfframpId();
+ }
+ /**
+ *
+ * For OfframAlreadyInProgress, this is the offramp_id of the existing offramp.
+ *
+ *
+ * bytes offramp_id = 3;
+ * @param value The offrampId to set.
+ * @return This builder for chaining.
+ */
+ public Builder setOfframpId(com.google.protobuf.ByteString value) {
+ copyOnWrite();
+ instance.setOfframpId(value);
+ return this;
+ }
+ /**
+ *
+ * For OfframAlreadyInProgress, this is the offramp_id of the existing offramp.
+ *
+ *
+ * bytes offramp_id = 3;
+ * @return This builder for chaining.
+ */
+ public Builder clearOfframpId() {
+ copyOnWrite();
+ instance.clearOfframpId();
+ return this;
+ }
+
+ // @@protoc_insertion_point(builder_scope:mistyswap_offramp.OfframpResult)
+ }
+ @java.lang.Override
+ @java.lang.SuppressWarnings({"unchecked", "fallthrough"})
+ protected final java.lang.Object dynamicMethod(
+ com.google.protobuf.GeneratedMessageLite.MethodToInvoke method,
+ java.lang.Object arg0, java.lang.Object arg1) {
+ switch (method) {
+ case NEW_MUTABLE_INSTANCE: {
+ return new mistyswap.MistyswapOfframp.OfframpResult();
+ }
+ case NEW_BUILDER: {
+ return new Builder();
+ }
+ case BUILD_MESSAGE_INFO: {
+ java.lang.Object[] objects = new java.lang.Object[] {
+ "code_",
+ "message_",
+ "offrampId_",
+ };
+ java.lang.String info =
+ "\u0000\u0003\u0000\u0000\u0001\u0003\u0003\u0000\u0000\u0000\u0001\f\u0002\u0208" +
+ "\u0003\n";
+ return newMessageInfo(DEFAULT_INSTANCE, info, objects);
+ }
+ // fall through
+ case GET_DEFAULT_INSTANCE: {
+ return DEFAULT_INSTANCE;
+ }
+ case GET_PARSER: {
+ com.google.protobuf.Parser
+ */ The asset being offramped (the token id we will be swapping from). This
+ * / would be MOB or eUSD. This is the mixin asset uuid.
+ *
+ *
+ * string src_asset_id = 1;
+ * @return The srcAssetId.
+ */
+ java.lang.String getSrcAssetId();
+ /**
+ *
+ */ The asset being offramped (the token id we will be swapping from). This
+ * / would be MOB or eUSD. This is the mixin asset uuid.
+ *
+ *
+ * string src_asset_id = 1;
+ * @return The bytes for srcAssetId.
+ */
+ com.google.protobuf.ByteString
+ getSrcAssetIdBytes();
+
+ /**
+ *
+ */ The amount we are going to be swapping. We use strings to allow
+ * / decimals.
+ *
+ *
+ * string src_expected_amount = 2;
+ * @return The srcExpectedAmount.
+ */
+ java.lang.String getSrcExpectedAmount();
+ /**
+ *
+ */ The amount we are going to be swapping. We use strings to allow
+ * / decimals.
+ *
+ *
+ * string src_expected_amount = 2;
+ * @return The bytes for srcExpectedAmount.
+ */
+ com.google.protobuf.ByteString
+ getSrcExpectedAmountBytes();
+
+ /**
+ *
+ */ The Mixin destination asset id (the token id we will be swapping into).
+ * / This is the mixin asset uuid.
+ *
+ *
+ * string dst_asset_id = 3;
+ * @return The dstAssetId.
+ */
+ java.lang.String getDstAssetId();
+ /**
+ *
+ */ The Mixin destination asset id (the token id we will be swapping into).
+ * / This is the mixin asset uuid.
+ *
+ *
+ * string dst_asset_id = 3;
+ * @return The bytes for dstAssetId.
+ */
+ com.google.protobuf.ByteString
+ getDstAssetIdBytes();
+
+ /**
+ *
+ */ The token-specific address to withdraw into.
+ *
+ *
+ * string dst_address = 4;
+ * @return The dstAddress.
+ */
+ java.lang.String getDstAddress();
+ /**
+ *
+ */ The token-specific address to withdraw into.
+ *
+ *
+ * string dst_address = 4;
+ * @return The bytes for dstAddress.
+ */
+ com.google.protobuf.ByteString
+ getDstAddressBytes();
+
+ /**
+ *
+ */ The token-specific address tag, if any.
+ *
+ *
+ * string dst_address_tag = 5;
+ * @return The dstAddressTag.
+ */
+ java.lang.String getDstAddressTag();
+ /**
+ *
+ */ The token-specific address tag, if any.
+ *
+ *
+ * string dst_address_tag = 5;
+ * @return The bytes for dstAddressTag.
+ */
+ com.google.protobuf.ByteString
+ getDstAddressTagBytes();
+
+ /**
+ *
+ */ The minimum amount of destination tokens we expect to receive from
+ * / swapping the source tokens. Note that this includes tokens that will
+ * / later be swapped for fees if the fee token is not the destination token.
+ *
+ *
+ * string min_dst_received_amount = 6;
+ * @return The minDstReceivedAmount.
+ */
+ java.lang.String getMinDstReceivedAmount();
+ /**
+ *
+ */ The minimum amount of destination tokens we expect to receive from
+ * / swapping the source tokens. Note that this includes tokens that will
+ * / later be swapped for fees if the fee token is not the destination token.
+ *
+ *
+ * string min_dst_received_amount = 6;
+ * @return The bytes for minDstReceivedAmount.
+ */
+ com.google.protobuf.ByteString
+ getMinDstReceivedAmountBytes();
+
+ /**
+ *
+ */ The maximum amount of destination tokens we are willing to use for fees.
+ *
+ *
+ * string max_fee_amount_in_dst_tokens = 7;
+ * @return The maxFeeAmountInDstTokens.
+ */
+ java.lang.String getMaxFeeAmountInDstTokens();
+ /**
+ *
+ */ The maximum amount of destination tokens we are willing to use for fees.
+ *
+ *
+ * string max_fee_amount_in_dst_tokens = 7;
+ * @return The bytes for maxFeeAmountInDstTokens.
+ */
+ com.google.protobuf.ByteString
+ getMaxFeeAmountInDstTokensBytes();
+
+ /**
+ *
+ */ A multiplier to be applied to the amount of destination tokens swapped for fee tokens.
+ * / This allows controlling how many extra destination tokens are swapped for fee tokens.
+ * / Extra tokens are desierable to avoid running into insufficient withdrawal fee issues originating from swap rate fluctuations.
+ * / The default is used if this field is set to an empty string.
+ * / Setting it to a value lower than 1.0 will result in an error.
+ * / The default value is set by the `DEFAULT_FEE_TOKEN_SWAP_MULTIPLIER` constant in the `mistyswap_offramp_impl` crate.
+ *
+ *
+ * string fee_token_swap_multiplier = 8;
+ * @return The feeTokenSwapMultiplier.
+ */
+ java.lang.String getFeeTokenSwapMultiplier();
+ /**
+ *
+ */ A multiplier to be applied to the amount of destination tokens swapped for fee tokens.
+ * / This allows controlling how many extra destination tokens are swapped for fee tokens.
+ * / Extra tokens are desierable to avoid running into insufficient withdrawal fee issues originating from swap rate fluctuations.
+ * / The default is used if this field is set to an empty string.
+ * / Setting it to a value lower than 1.0 will result in an error.
+ * / The default value is set by the `DEFAULT_FEE_TOKEN_SWAP_MULTIPLIER` constant in the `mistyswap_offramp_impl` crate.
+ *
+ *
+ * string fee_token_swap_multiplier = 8;
+ * @return The bytes for feeTokenSwapMultiplier.
+ */
+ com.google.protobuf.ByteString
+ getFeeTokenSwapMultiplierBytes();
+ }
+ /**
+ *
+ */ Offramp parameters.
+ * / They are separated from the credentials since they are not as sensitive, and it makes it
+ * / easier to include them to the client in the response to GetOfframpStatus calls.
+ *
+ *
+ * Protobuf type {@code mistyswap_offramp.OfframpParams}
+ */
+ public static final class OfframpParams extends
+ com.google.protobuf.GeneratedMessageLite<
+ OfframpParams, OfframpParams.Builder> implements
+ // @@protoc_insertion_point(message_implements:mistyswap_offramp.OfframpParams)
+ OfframpParamsOrBuilder {
+ private OfframpParams() {
+ srcAssetId_ = "";
+ srcExpectedAmount_ = "";
+ dstAssetId_ = "";
+ dstAddress_ = "";
+ dstAddressTag_ = "";
+ minDstReceivedAmount_ = "";
+ maxFeeAmountInDstTokens_ = "";
+ feeTokenSwapMultiplier_ = "";
+ }
+ public static final int SRC_ASSET_ID_FIELD_NUMBER = 1;
+ private java.lang.String srcAssetId_;
+ /**
+ *
+ */ The asset being offramped (the token id we will be swapping from). This
+ * / would be MOB or eUSD. This is the mixin asset uuid.
+ *
+ *
+ * string src_asset_id = 1;
+ * @return The srcAssetId.
+ */
+ @java.lang.Override
+ public java.lang.String getSrcAssetId() {
+ return srcAssetId_;
+ }
+ /**
+ *
+ */ The asset being offramped (the token id we will be swapping from). This
+ * / would be MOB or eUSD. This is the mixin asset uuid.
+ *
+ *
+ * string src_asset_id = 1;
+ * @return The bytes for srcAssetId.
+ */
+ @java.lang.Override
+ public com.google.protobuf.ByteString
+ getSrcAssetIdBytes() {
+ return com.google.protobuf.ByteString.copyFromUtf8(srcAssetId_);
+ }
+ /**
+ *
+ */ The asset being offramped (the token id we will be swapping from). This
+ * / would be MOB or eUSD. This is the mixin asset uuid.
+ *
+ *
+ * string src_asset_id = 1;
+ * @param value The srcAssetId to set.
+ */
+ private void setSrcAssetId(
+ java.lang.String value) {
+ java.lang.Class> valueClass = value.getClass();
+
+ srcAssetId_ = value;
+ }
+ /**
+ *
+ */ The asset being offramped (the token id we will be swapping from). This
+ * / would be MOB or eUSD. This is the mixin asset uuid.
+ *
+ *
+ * string src_asset_id = 1;
+ */
+ private void clearSrcAssetId() {
+
+ srcAssetId_ = getDefaultInstance().getSrcAssetId();
+ }
+ /**
+ *
+ */ The asset being offramped (the token id we will be swapping from). This
+ * / would be MOB or eUSD. This is the mixin asset uuid.
+ *
+ *
+ * string src_asset_id = 1;
+ * @param value The bytes for srcAssetId to set.
+ */
+ private void setSrcAssetIdBytes(
+ com.google.protobuf.ByteString value) {
+ checkByteStringIsUtf8(value);
+ srcAssetId_ = value.toStringUtf8();
+
+ }
+
+ public static final int SRC_EXPECTED_AMOUNT_FIELD_NUMBER = 2;
+ private java.lang.String srcExpectedAmount_;
+ /**
+ *
+ */ The amount we are going to be swapping. We use strings to allow
+ * / decimals.
+ *
+ *
+ * string src_expected_amount = 2;
+ * @return The srcExpectedAmount.
+ */
+ @java.lang.Override
+ public java.lang.String getSrcExpectedAmount() {
+ return srcExpectedAmount_;
+ }
+ /**
+ *
+ */ The amount we are going to be swapping. We use strings to allow
+ * / decimals.
+ *
+ *
+ * string src_expected_amount = 2;
+ * @return The bytes for srcExpectedAmount.
+ */
+ @java.lang.Override
+ public com.google.protobuf.ByteString
+ getSrcExpectedAmountBytes() {
+ return com.google.protobuf.ByteString.copyFromUtf8(srcExpectedAmount_);
+ }
+ /**
+ *
+ */ The amount we are going to be swapping. We use strings to allow
+ * / decimals.
+ *
+ *
+ * string src_expected_amount = 2;
+ * @param value The srcExpectedAmount to set.
+ */
+ private void setSrcExpectedAmount(
+ java.lang.String value) {
+ java.lang.Class> valueClass = value.getClass();
+
+ srcExpectedAmount_ = value;
+ }
+ /**
+ *
+ */ The amount we are going to be swapping. We use strings to allow
+ * / decimals.
+ *
+ *
+ * string src_expected_amount = 2;
+ */
+ private void clearSrcExpectedAmount() {
+
+ srcExpectedAmount_ = getDefaultInstance().getSrcExpectedAmount();
+ }
+ /**
+ *
+ */ The amount we are going to be swapping. We use strings to allow
+ * / decimals.
+ *
+ *
+ * string src_expected_amount = 2;
+ * @param value The bytes for srcExpectedAmount to set.
+ */
+ private void setSrcExpectedAmountBytes(
+ com.google.protobuf.ByteString value) {
+ checkByteStringIsUtf8(value);
+ srcExpectedAmount_ = value.toStringUtf8();
+
+ }
+
+ public static final int DST_ASSET_ID_FIELD_NUMBER = 3;
+ private java.lang.String dstAssetId_;
+ /**
+ *
+ */ The Mixin destination asset id (the token id we will be swapping into).
+ * / This is the mixin asset uuid.
+ *
+ *
+ * string dst_asset_id = 3;
+ * @return The dstAssetId.
+ */
+ @java.lang.Override
+ public java.lang.String getDstAssetId() {
+ return dstAssetId_;
+ }
+ /**
+ *
+ */ The Mixin destination asset id (the token id we will be swapping into).
+ * / This is the mixin asset uuid.
+ *
+ *
+ * string dst_asset_id = 3;
+ * @return The bytes for dstAssetId.
+ */
+ @java.lang.Override
+ public com.google.protobuf.ByteString
+ getDstAssetIdBytes() {
+ return com.google.protobuf.ByteString.copyFromUtf8(dstAssetId_);
+ }
+ /**
+ *
+ */ The Mixin destination asset id (the token id we will be swapping into).
+ * / This is the mixin asset uuid.
+ *
+ *
+ * string dst_asset_id = 3;
+ * @param value The dstAssetId to set.
+ */
+ private void setDstAssetId(
+ java.lang.String value) {
+ java.lang.Class> valueClass = value.getClass();
+
+ dstAssetId_ = value;
+ }
+ /**
+ *
+ */ The Mixin destination asset id (the token id we will be swapping into).
+ * / This is the mixin asset uuid.
+ *
+ *
+ * string dst_asset_id = 3;
+ */
+ private void clearDstAssetId() {
+
+ dstAssetId_ = getDefaultInstance().getDstAssetId();
+ }
+ /**
+ *
+ */ The Mixin destination asset id (the token id we will be swapping into).
+ * / This is the mixin asset uuid.
+ *
+ *
+ * string dst_asset_id = 3;
+ * @param value The bytes for dstAssetId to set.
+ */
+ private void setDstAssetIdBytes(
+ com.google.protobuf.ByteString value) {
+ checkByteStringIsUtf8(value);
+ dstAssetId_ = value.toStringUtf8();
+
+ }
+
+ public static final int DST_ADDRESS_FIELD_NUMBER = 4;
+ private java.lang.String dstAddress_;
+ /**
+ *
+ */ The token-specific address to withdraw into.
+ *
+ *
+ * string dst_address = 4;
+ * @return The dstAddress.
+ */
+ @java.lang.Override
+ public java.lang.String getDstAddress() {
+ return dstAddress_;
+ }
+ /**
+ *
+ */ The token-specific address to withdraw into.
+ *
+ *
+ * string dst_address = 4;
+ * @return The bytes for dstAddress.
+ */
+ @java.lang.Override
+ public com.google.protobuf.ByteString
+ getDstAddressBytes() {
+ return com.google.protobuf.ByteString.copyFromUtf8(dstAddress_);
+ }
+ /**
+ *
+ */ The token-specific address to withdraw into.
+ *
+ *
+ * string dst_address = 4;
+ * @param value The dstAddress to set.
+ */
+ private void setDstAddress(
+ java.lang.String value) {
+ java.lang.Class> valueClass = value.getClass();
+
+ dstAddress_ = value;
+ }
+ /**
+ *
+ */ The token-specific address to withdraw into.
+ *
+ *
+ * string dst_address = 4;
+ */
+ private void clearDstAddress() {
+
+ dstAddress_ = getDefaultInstance().getDstAddress();
+ }
+ /**
+ *
+ */ The token-specific address to withdraw into.
+ *
+ *
+ * string dst_address = 4;
+ * @param value The bytes for dstAddress to set.
+ */
+ private void setDstAddressBytes(
+ com.google.protobuf.ByteString value) {
+ checkByteStringIsUtf8(value);
+ dstAddress_ = value.toStringUtf8();
+
+ }
+
+ public static final int DST_ADDRESS_TAG_FIELD_NUMBER = 5;
+ private java.lang.String dstAddressTag_;
+ /**
+ *
+ */ The token-specific address tag, if any.
+ *
+ *
+ * string dst_address_tag = 5;
+ * @return The dstAddressTag.
+ */
+ @java.lang.Override
+ public java.lang.String getDstAddressTag() {
+ return dstAddressTag_;
+ }
+ /**
+ *
+ */ The token-specific address tag, if any.
+ *
+ *
+ * string dst_address_tag = 5;
+ * @return The bytes for dstAddressTag.
+ */
+ @java.lang.Override
+ public com.google.protobuf.ByteString
+ getDstAddressTagBytes() {
+ return com.google.protobuf.ByteString.copyFromUtf8(dstAddressTag_);
+ }
+ /**
+ *
+ */ The token-specific address tag, if any.
+ *
+ *
+ * string dst_address_tag = 5;
+ * @param value The dstAddressTag to set.
+ */
+ private void setDstAddressTag(
+ java.lang.String value) {
+ java.lang.Class> valueClass = value.getClass();
+
+ dstAddressTag_ = value;
+ }
+ /**
+ *
+ */ The token-specific address tag, if any.
+ *
+ *
+ * string dst_address_tag = 5;
+ */
+ private void clearDstAddressTag() {
+
+ dstAddressTag_ = getDefaultInstance().getDstAddressTag();
+ }
+ /**
+ *
+ */ The token-specific address tag, if any.
+ *
+ *
+ * string dst_address_tag = 5;
+ * @param value The bytes for dstAddressTag to set.
+ */
+ private void setDstAddressTagBytes(
+ com.google.protobuf.ByteString value) {
+ checkByteStringIsUtf8(value);
+ dstAddressTag_ = value.toStringUtf8();
+
+ }
+
+ public static final int MIN_DST_RECEIVED_AMOUNT_FIELD_NUMBER = 6;
+ private java.lang.String minDstReceivedAmount_;
+ /**
+ *
+ */ The minimum amount of destination tokens we expect to receive from
+ * / swapping the source tokens. Note that this includes tokens that will
+ * / later be swapped for fees if the fee token is not the destination token.
+ *
+ *
+ * string min_dst_received_amount = 6;
+ * @return The minDstReceivedAmount.
+ */
+ @java.lang.Override
+ public java.lang.String getMinDstReceivedAmount() {
+ return minDstReceivedAmount_;
+ }
+ /**
+ *
+ */ The minimum amount of destination tokens we expect to receive from
+ * / swapping the source tokens. Note that this includes tokens that will
+ * / later be swapped for fees if the fee token is not the destination token.
+ *
+ *
+ * string min_dst_received_amount = 6;
+ * @return The bytes for minDstReceivedAmount.
+ */
+ @java.lang.Override
+ public com.google.protobuf.ByteString
+ getMinDstReceivedAmountBytes() {
+ return com.google.protobuf.ByteString.copyFromUtf8(minDstReceivedAmount_);
+ }
+ /**
+ *
+ */ The minimum amount of destination tokens we expect to receive from
+ * / swapping the source tokens. Note that this includes tokens that will
+ * / later be swapped for fees if the fee token is not the destination token.
+ *
+ *
+ * string min_dst_received_amount = 6;
+ * @param value The minDstReceivedAmount to set.
+ */
+ private void setMinDstReceivedAmount(
+ java.lang.String value) {
+ java.lang.Class> valueClass = value.getClass();
+
+ minDstReceivedAmount_ = value;
+ }
+ /**
+ *
+ */ The minimum amount of destination tokens we expect to receive from
+ * / swapping the source tokens. Note that this includes tokens that will
+ * / later be swapped for fees if the fee token is not the destination token.
+ *
+ *
+ * string min_dst_received_amount = 6;
+ */
+ private void clearMinDstReceivedAmount() {
+
+ minDstReceivedAmount_ = getDefaultInstance().getMinDstReceivedAmount();
+ }
+ /**
+ *
+ */ The minimum amount of destination tokens we expect to receive from
+ * / swapping the source tokens. Note that this includes tokens that will
+ * / later be swapped for fees if the fee token is not the destination token.
+ *
+ *
+ * string min_dst_received_amount = 6;
+ * @param value The bytes for minDstReceivedAmount to set.
+ */
+ private void setMinDstReceivedAmountBytes(
+ com.google.protobuf.ByteString value) {
+ checkByteStringIsUtf8(value);
+ minDstReceivedAmount_ = value.toStringUtf8();
+
+ }
+
+ public static final int MAX_FEE_AMOUNT_IN_DST_TOKENS_FIELD_NUMBER = 7;
+ private java.lang.String maxFeeAmountInDstTokens_;
+ /**
+ *
+ */ The maximum amount of destination tokens we are willing to use for fees.
+ *
+ *
+ * string max_fee_amount_in_dst_tokens = 7;
+ * @return The maxFeeAmountInDstTokens.
+ */
+ @java.lang.Override
+ public java.lang.String getMaxFeeAmountInDstTokens() {
+ return maxFeeAmountInDstTokens_;
+ }
+ /**
+ *
+ */ The maximum amount of destination tokens we are willing to use for fees.
+ *
+ *
+ * string max_fee_amount_in_dst_tokens = 7;
+ * @return The bytes for maxFeeAmountInDstTokens.
+ */
+ @java.lang.Override
+ public com.google.protobuf.ByteString
+ getMaxFeeAmountInDstTokensBytes() {
+ return com.google.protobuf.ByteString.copyFromUtf8(maxFeeAmountInDstTokens_);
+ }
+ /**
+ *
+ */ The maximum amount of destination tokens we are willing to use for fees.
+ *
+ *
+ * string max_fee_amount_in_dst_tokens = 7;
+ * @param value The maxFeeAmountInDstTokens to set.
+ */
+ private void setMaxFeeAmountInDstTokens(
+ java.lang.String value) {
+ java.lang.Class> valueClass = value.getClass();
+
+ maxFeeAmountInDstTokens_ = value;
+ }
+ /**
+ *
+ */ The maximum amount of destination tokens we are willing to use for fees.
+ *
+ *
+ * string max_fee_amount_in_dst_tokens = 7;
+ */
+ private void clearMaxFeeAmountInDstTokens() {
+
+ maxFeeAmountInDstTokens_ = getDefaultInstance().getMaxFeeAmountInDstTokens();
+ }
+ /**
+ *
+ */ The maximum amount of destination tokens we are willing to use for fees.
+ *
+ *
+ * string max_fee_amount_in_dst_tokens = 7;
+ * @param value The bytes for maxFeeAmountInDstTokens to set.
+ */
+ private void setMaxFeeAmountInDstTokensBytes(
+ com.google.protobuf.ByteString value) {
+ checkByteStringIsUtf8(value);
+ maxFeeAmountInDstTokens_ = value.toStringUtf8();
+
+ }
+
+ public static final int FEE_TOKEN_SWAP_MULTIPLIER_FIELD_NUMBER = 8;
+ private java.lang.String feeTokenSwapMultiplier_;
+ /**
+ *
+ */ A multiplier to be applied to the amount of destination tokens swapped for fee tokens.
+ * / This allows controlling how many extra destination tokens are swapped for fee tokens.
+ * / Extra tokens are desierable to avoid running into insufficient withdrawal fee issues originating from swap rate fluctuations.
+ * / The default is used if this field is set to an empty string.
+ * / Setting it to a value lower than 1.0 will result in an error.
+ * / The default value is set by the `DEFAULT_FEE_TOKEN_SWAP_MULTIPLIER` constant in the `mistyswap_offramp_impl` crate.
+ *
+ *
+ * string fee_token_swap_multiplier = 8;
+ * @return The feeTokenSwapMultiplier.
+ */
+ @java.lang.Override
+ public java.lang.String getFeeTokenSwapMultiplier() {
+ return feeTokenSwapMultiplier_;
+ }
+ /**
+ *
+ */ A multiplier to be applied to the amount of destination tokens swapped for fee tokens.
+ * / This allows controlling how many extra destination tokens are swapped for fee tokens.
+ * / Extra tokens are desierable to avoid running into insufficient withdrawal fee issues originating from swap rate fluctuations.
+ * / The default is used if this field is set to an empty string.
+ * / Setting it to a value lower than 1.0 will result in an error.
+ * / The default value is set by the `DEFAULT_FEE_TOKEN_SWAP_MULTIPLIER` constant in the `mistyswap_offramp_impl` crate.
+ *
+ *
+ * string fee_token_swap_multiplier = 8;
+ * @return The bytes for feeTokenSwapMultiplier.
+ */
+ @java.lang.Override
+ public com.google.protobuf.ByteString
+ getFeeTokenSwapMultiplierBytes() {
+ return com.google.protobuf.ByteString.copyFromUtf8(feeTokenSwapMultiplier_);
+ }
+ /**
+ *
+ */ A multiplier to be applied to the amount of destination tokens swapped for fee tokens.
+ * / This allows controlling how many extra destination tokens are swapped for fee tokens.
+ * / Extra tokens are desierable to avoid running into insufficient withdrawal fee issues originating from swap rate fluctuations.
+ * / The default is used if this field is set to an empty string.
+ * / Setting it to a value lower than 1.0 will result in an error.
+ * / The default value is set by the `DEFAULT_FEE_TOKEN_SWAP_MULTIPLIER` constant in the `mistyswap_offramp_impl` crate.
+ *
+ *
+ * string fee_token_swap_multiplier = 8;
+ * @param value The feeTokenSwapMultiplier to set.
+ */
+ private void setFeeTokenSwapMultiplier(
+ java.lang.String value) {
+ java.lang.Class> valueClass = value.getClass();
+
+ feeTokenSwapMultiplier_ = value;
+ }
+ /**
+ *
+ */ A multiplier to be applied to the amount of destination tokens swapped for fee tokens.
+ * / This allows controlling how many extra destination tokens are swapped for fee tokens.
+ * / Extra tokens are desierable to avoid running into insufficient withdrawal fee issues originating from swap rate fluctuations.
+ * / The default is used if this field is set to an empty string.
+ * / Setting it to a value lower than 1.0 will result in an error.
+ * / The default value is set by the `DEFAULT_FEE_TOKEN_SWAP_MULTIPLIER` constant in the `mistyswap_offramp_impl` crate.
+ *
+ *
+ * string fee_token_swap_multiplier = 8;
+ */
+ private void clearFeeTokenSwapMultiplier() {
+
+ feeTokenSwapMultiplier_ = getDefaultInstance().getFeeTokenSwapMultiplier();
+ }
+ /**
+ *
+ */ A multiplier to be applied to the amount of destination tokens swapped for fee tokens.
+ * / This allows controlling how many extra destination tokens are swapped for fee tokens.
+ * / Extra tokens are desierable to avoid running into insufficient withdrawal fee issues originating from swap rate fluctuations.
+ * / The default is used if this field is set to an empty string.
+ * / Setting it to a value lower than 1.0 will result in an error.
+ * / The default value is set by the `DEFAULT_FEE_TOKEN_SWAP_MULTIPLIER` constant in the `mistyswap_offramp_impl` crate.
+ *
+ *
+ * string fee_token_swap_multiplier = 8;
+ * @param value The bytes for feeTokenSwapMultiplier to set.
+ */
+ private void setFeeTokenSwapMultiplierBytes(
+ com.google.protobuf.ByteString value) {
+ checkByteStringIsUtf8(value);
+ feeTokenSwapMultiplier_ = value.toStringUtf8();
+
+ }
+
+ public static mistyswap.MistyswapOfframp.OfframpParams parseFrom(
+ java.nio.ByteBuffer data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return com.google.protobuf.GeneratedMessageLite.parseFrom(
+ DEFAULT_INSTANCE, data);
+ }
+ public static mistyswap.MistyswapOfframp.OfframpParams parseFrom(
+ java.nio.ByteBuffer data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return com.google.protobuf.GeneratedMessageLite.parseFrom(
+ DEFAULT_INSTANCE, data, extensionRegistry);
+ }
+ public static mistyswap.MistyswapOfframp.OfframpParams parseFrom(
+ com.google.protobuf.ByteString data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return com.google.protobuf.GeneratedMessageLite.parseFrom(
+ DEFAULT_INSTANCE, data);
+ }
+ public static mistyswap.MistyswapOfframp.OfframpParams parseFrom(
+ com.google.protobuf.ByteString data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return com.google.protobuf.GeneratedMessageLite.parseFrom(
+ DEFAULT_INSTANCE, data, extensionRegistry);
+ }
+ public static mistyswap.MistyswapOfframp.OfframpParams parseFrom(byte[] data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return com.google.protobuf.GeneratedMessageLite.parseFrom(
+ DEFAULT_INSTANCE, data);
+ }
+ public static mistyswap.MistyswapOfframp.OfframpParams parseFrom(
+ byte[] data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return com.google.protobuf.GeneratedMessageLite.parseFrom(
+ DEFAULT_INSTANCE, data, extensionRegistry);
+ }
+ public static mistyswap.MistyswapOfframp.OfframpParams parseFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageLite.parseFrom(
+ DEFAULT_INSTANCE, input);
+ }
+ public static mistyswap.MistyswapOfframp.OfframpParams parseFrom(
+ java.io.InputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageLite.parseFrom(
+ DEFAULT_INSTANCE, input, extensionRegistry);
+ }
+ public static mistyswap.MistyswapOfframp.OfframpParams parseDelimitedFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return parseDelimitedFrom(DEFAULT_INSTANCE, input);
+ }
+ public static mistyswap.MistyswapOfframp.OfframpParams parseDelimitedFrom(
+ java.io.InputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return parseDelimitedFrom(DEFAULT_INSTANCE, input, extensionRegistry);
+ }
+ public static mistyswap.MistyswapOfframp.OfframpParams parseFrom(
+ com.google.protobuf.CodedInputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageLite.parseFrom(
+ DEFAULT_INSTANCE, input);
+ }
+ public static mistyswap.MistyswapOfframp.OfframpParams parseFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageLite.parseFrom(
+ DEFAULT_INSTANCE, input, extensionRegistry);
+ }
+
+ public static Builder newBuilder() {
+ return (Builder) DEFAULT_INSTANCE.createBuilder();
+ }
+ public static Builder newBuilder(mistyswap.MistyswapOfframp.OfframpParams prototype) {
+ return (Builder) DEFAULT_INSTANCE.createBuilder(prototype);
+ }
+
+ /**
+ *
+ */ Offramp parameters.
+ * / They are separated from the credentials since they are not as sensitive, and it makes it
+ * / easier to include them to the client in the response to GetOfframpStatus calls.
+ *
+ *
+ * Protobuf type {@code mistyswap_offramp.OfframpParams}
+ */
+ public static final class Builder extends
+ com.google.protobuf.GeneratedMessageLite.Builder<
+ mistyswap.MistyswapOfframp.OfframpParams, Builder> implements
+ // @@protoc_insertion_point(builder_implements:mistyswap_offramp.OfframpParams)
+ mistyswap.MistyswapOfframp.OfframpParamsOrBuilder {
+ // Construct using mistyswap.MistyswapOfframp.OfframpParams.newBuilder()
+ private Builder() {
+ super(DEFAULT_INSTANCE);
+ }
+
+
+ /**
+ *
+ */ The asset being offramped (the token id we will be swapping from). This
+ * / would be MOB or eUSD. This is the mixin asset uuid.
+ *
+ *
+ * string src_asset_id = 1;
+ * @return The srcAssetId.
+ */
+ @java.lang.Override
+ public java.lang.String getSrcAssetId() {
+ return instance.getSrcAssetId();
+ }
+ /**
+ *
+ */ The asset being offramped (the token id we will be swapping from). This
+ * / would be MOB or eUSD. This is the mixin asset uuid.
+ *
+ *
+ * string src_asset_id = 1;
+ * @return The bytes for srcAssetId.
+ */
+ @java.lang.Override
+ public com.google.protobuf.ByteString
+ getSrcAssetIdBytes() {
+ return instance.getSrcAssetIdBytes();
+ }
+ /**
+ *
+ */ The asset being offramped (the token id we will be swapping from). This
+ * / would be MOB or eUSD. This is the mixin asset uuid.
+ *
+ *
+ * string src_asset_id = 1;
+ * @param value The srcAssetId to set.
+ * @return This builder for chaining.
+ */
+ public Builder setSrcAssetId(
+ java.lang.String value) {
+ copyOnWrite();
+ instance.setSrcAssetId(value);
+ return this;
+ }
+ /**
+ *
+ */ The asset being offramped (the token id we will be swapping from). This
+ * / would be MOB or eUSD. This is the mixin asset uuid.
+ *
+ *
+ * string src_asset_id = 1;
+ * @return This builder for chaining.
+ */
+ public Builder clearSrcAssetId() {
+ copyOnWrite();
+ instance.clearSrcAssetId();
+ return this;
+ }
+ /**
+ *
+ */ The asset being offramped (the token id we will be swapping from). This
+ * / would be MOB or eUSD. This is the mixin asset uuid.
+ *
+ *
+ * string src_asset_id = 1;
+ * @param value The bytes for srcAssetId to set.
+ * @return This builder for chaining.
+ */
+ public Builder setSrcAssetIdBytes(
+ com.google.protobuf.ByteString value) {
+ copyOnWrite();
+ instance.setSrcAssetIdBytes(value);
+ return this;
+ }
+
+ /**
+ *
+ */ The amount we are going to be swapping. We use strings to allow
+ * / decimals.
+ *
+ *
+ * string src_expected_amount = 2;
+ * @return The srcExpectedAmount.
+ */
+ @java.lang.Override
+ public java.lang.String getSrcExpectedAmount() {
+ return instance.getSrcExpectedAmount();
+ }
+ /**
+ *
+ */ The amount we are going to be swapping. We use strings to allow
+ * / decimals.
+ *
+ *
+ * string src_expected_amount = 2;
+ * @return The bytes for srcExpectedAmount.
+ */
+ @java.lang.Override
+ public com.google.protobuf.ByteString
+ getSrcExpectedAmountBytes() {
+ return instance.getSrcExpectedAmountBytes();
+ }
+ /**
+ *
+ */ The amount we are going to be swapping. We use strings to allow
+ * / decimals.
+ *
+ *
+ * string src_expected_amount = 2;
+ * @param value The srcExpectedAmount to set.
+ * @return This builder for chaining.
+ */
+ public Builder setSrcExpectedAmount(
+ java.lang.String value) {
+ copyOnWrite();
+ instance.setSrcExpectedAmount(value);
+ return this;
+ }
+ /**
+ *
+ */ The amount we are going to be swapping. We use strings to allow
+ * / decimals.
+ *
+ *
+ * string src_expected_amount = 2;
+ * @return This builder for chaining.
+ */
+ public Builder clearSrcExpectedAmount() {
+ copyOnWrite();
+ instance.clearSrcExpectedAmount();
+ return this;
+ }
+ /**
+ *
+ */ The amount we are going to be swapping. We use strings to allow
+ * / decimals.
+ *
+ *
+ * string src_expected_amount = 2;
+ * @param value The bytes for srcExpectedAmount to set.
+ * @return This builder for chaining.
+ */
+ public Builder setSrcExpectedAmountBytes(
+ com.google.protobuf.ByteString value) {
+ copyOnWrite();
+ instance.setSrcExpectedAmountBytes(value);
+ return this;
+ }
+
+ /**
+ *
+ */ The Mixin destination asset id (the token id we will be swapping into).
+ * / This is the mixin asset uuid.
+ *
+ *
+ * string dst_asset_id = 3;
+ * @return The dstAssetId.
+ */
+ @java.lang.Override
+ public java.lang.String getDstAssetId() {
+ return instance.getDstAssetId();
+ }
+ /**
+ *
+ */ The Mixin destination asset id (the token id we will be swapping into).
+ * / This is the mixin asset uuid.
+ *
+ *
+ * string dst_asset_id = 3;
+ * @return The bytes for dstAssetId.
+ */
+ @java.lang.Override
+ public com.google.protobuf.ByteString
+ getDstAssetIdBytes() {
+ return instance.getDstAssetIdBytes();
+ }
+ /**
+ *
+ */ The Mixin destination asset id (the token id we will be swapping into).
+ * / This is the mixin asset uuid.
+ *
+ *
+ * string dst_asset_id = 3;
+ * @param value The dstAssetId to set.
+ * @return This builder for chaining.
+ */
+ public Builder setDstAssetId(
+ java.lang.String value) {
+ copyOnWrite();
+ instance.setDstAssetId(value);
+ return this;
+ }
+ /**
+ *
+ */ The Mixin destination asset id (the token id we will be swapping into).
+ * / This is the mixin asset uuid.
+ *
+ *
+ * string dst_asset_id = 3;
+ * @return This builder for chaining.
+ */
+ public Builder clearDstAssetId() {
+ copyOnWrite();
+ instance.clearDstAssetId();
+ return this;
+ }
+ /**
+ *
+ */ The Mixin destination asset id (the token id we will be swapping into).
+ * / This is the mixin asset uuid.
+ *
+ *
+ * string dst_asset_id = 3;
+ * @param value The bytes for dstAssetId to set.
+ * @return This builder for chaining.
+ */
+ public Builder setDstAssetIdBytes(
+ com.google.protobuf.ByteString value) {
+ copyOnWrite();
+ instance.setDstAssetIdBytes(value);
+ return this;
+ }
+
+ /**
+ *
+ */ The token-specific address to withdraw into.
+ *
+ *
+ * string dst_address = 4;
+ * @return The dstAddress.
+ */
+ @java.lang.Override
+ public java.lang.String getDstAddress() {
+ return instance.getDstAddress();
+ }
+ /**
+ *
+ */ The token-specific address to withdraw into.
+ *
+ *
+ * string dst_address = 4;
+ * @return The bytes for dstAddress.
+ */
+ @java.lang.Override
+ public com.google.protobuf.ByteString
+ getDstAddressBytes() {
+ return instance.getDstAddressBytes();
+ }
+ /**
+ *
+ */ The token-specific address to withdraw into.
+ *
+ *
+ * string dst_address = 4;
+ * @param value The dstAddress to set.
+ * @return This builder for chaining.
+ */
+ public Builder setDstAddress(
+ java.lang.String value) {
+ copyOnWrite();
+ instance.setDstAddress(value);
+ return this;
+ }
+ /**
+ *
+ */ The token-specific address to withdraw into.
+ *
+ *
+ * string dst_address = 4;
+ * @return This builder for chaining.
+ */
+ public Builder clearDstAddress() {
+ copyOnWrite();
+ instance.clearDstAddress();
+ return this;
+ }
+ /**
+ *
+ */ The token-specific address to withdraw into.
+ *
+ *
+ * string dst_address = 4;
+ * @param value The bytes for dstAddress to set.
+ * @return This builder for chaining.
+ */
+ public Builder setDstAddressBytes(
+ com.google.protobuf.ByteString value) {
+ copyOnWrite();
+ instance.setDstAddressBytes(value);
+ return this;
+ }
+
+ /**
+ *
+ */ The token-specific address tag, if any.
+ *
+ *
+ * string dst_address_tag = 5;
+ * @return The dstAddressTag.
+ */
+ @java.lang.Override
+ public java.lang.String getDstAddressTag() {
+ return instance.getDstAddressTag();
+ }
+ /**
+ *
+ */ The token-specific address tag, if any.
+ *
+ *
+ * string dst_address_tag = 5;
+ * @return The bytes for dstAddressTag.
+ */
+ @java.lang.Override
+ public com.google.protobuf.ByteString
+ getDstAddressTagBytes() {
+ return instance.getDstAddressTagBytes();
+ }
+ /**
+ *
+ */ The token-specific address tag, if any.
+ *
+ *
+ * string dst_address_tag = 5;
+ * @param value The dstAddressTag to set.
+ * @return This builder for chaining.
+ */
+ public Builder setDstAddressTag(
+ java.lang.String value) {
+ copyOnWrite();
+ instance.setDstAddressTag(value);
+ return this;
+ }
+ /**
+ *
+ */ The token-specific address tag, if any.
+ *
+ *
+ * string dst_address_tag = 5;
+ * @return This builder for chaining.
+ */
+ public Builder clearDstAddressTag() {
+ copyOnWrite();
+ instance.clearDstAddressTag();
+ return this;
+ }
+ /**
+ *
+ */ The token-specific address tag, if any.
+ *
+ *
+ * string dst_address_tag = 5;
+ * @param value The bytes for dstAddressTag to set.
+ * @return This builder for chaining.
+ */
+ public Builder setDstAddressTagBytes(
+ com.google.protobuf.ByteString value) {
+ copyOnWrite();
+ instance.setDstAddressTagBytes(value);
+ return this;
+ }
+
+ /**
+ *
+ */ The minimum amount of destination tokens we expect to receive from
+ * / swapping the source tokens. Note that this includes tokens that will
+ * / later be swapped for fees if the fee token is not the destination token.
+ *
+ *
+ * string min_dst_received_amount = 6;
+ * @return The minDstReceivedAmount.
+ */
+ @java.lang.Override
+ public java.lang.String getMinDstReceivedAmount() {
+ return instance.getMinDstReceivedAmount();
+ }
+ /**
+ *
+ */ The minimum amount of destination tokens we expect to receive from
+ * / swapping the source tokens. Note that this includes tokens that will
+ * / later be swapped for fees if the fee token is not the destination token.
+ *
+ *
+ * string min_dst_received_amount = 6;
+ * @return The bytes for minDstReceivedAmount.
+ */
+ @java.lang.Override
+ public com.google.protobuf.ByteString
+ getMinDstReceivedAmountBytes() {
+ return instance.getMinDstReceivedAmountBytes();
+ }
+ /**
+ *
+ */ The minimum amount of destination tokens we expect to receive from
+ * / swapping the source tokens. Note that this includes tokens that will
+ * / later be swapped for fees if the fee token is not the destination token.
+ *
+ *
+ * string min_dst_received_amount = 6;
+ * @param value The minDstReceivedAmount to set.
+ * @return This builder for chaining.
+ */
+ public Builder setMinDstReceivedAmount(
+ java.lang.String value) {
+ copyOnWrite();
+ instance.setMinDstReceivedAmount(value);
+ return this;
+ }
+ /**
+ *
+ */ The minimum amount of destination tokens we expect to receive from
+ * / swapping the source tokens. Note that this includes tokens that will
+ * / later be swapped for fees if the fee token is not the destination token.
+ *
+ *
+ * string min_dst_received_amount = 6;
+ * @return This builder for chaining.
+ */
+ public Builder clearMinDstReceivedAmount() {
+ copyOnWrite();
+ instance.clearMinDstReceivedAmount();
+ return this;
+ }
+ /**
+ *
+ */ The minimum amount of destination tokens we expect to receive from
+ * / swapping the source tokens. Note that this includes tokens that will
+ * / later be swapped for fees if the fee token is not the destination token.
+ *
+ *
+ * string min_dst_received_amount = 6;
+ * @param value The bytes for minDstReceivedAmount to set.
+ * @return This builder for chaining.
+ */
+ public Builder setMinDstReceivedAmountBytes(
+ com.google.protobuf.ByteString value) {
+ copyOnWrite();
+ instance.setMinDstReceivedAmountBytes(value);
+ return this;
+ }
+
+ /**
+ *
+ */ The maximum amount of destination tokens we are willing to use for fees.
+ *
+ *
+ * string max_fee_amount_in_dst_tokens = 7;
+ * @return The maxFeeAmountInDstTokens.
+ */
+ @java.lang.Override
+ public java.lang.String getMaxFeeAmountInDstTokens() {
+ return instance.getMaxFeeAmountInDstTokens();
+ }
+ /**
+ *
+ */ The maximum amount of destination tokens we are willing to use for fees.
+ *
+ *
+ * string max_fee_amount_in_dst_tokens = 7;
+ * @return The bytes for maxFeeAmountInDstTokens.
+ */
+ @java.lang.Override
+ public com.google.protobuf.ByteString
+ getMaxFeeAmountInDstTokensBytes() {
+ return instance.getMaxFeeAmountInDstTokensBytes();
+ }
+ /**
+ *
+ */ The maximum amount of destination tokens we are willing to use for fees.
+ *
+ *
+ * string max_fee_amount_in_dst_tokens = 7;
+ * @param value The maxFeeAmountInDstTokens to set.
+ * @return This builder for chaining.
+ */
+ public Builder setMaxFeeAmountInDstTokens(
+ java.lang.String value) {
+ copyOnWrite();
+ instance.setMaxFeeAmountInDstTokens(value);
+ return this;
+ }
+ /**
+ *
+ */ The maximum amount of destination tokens we are willing to use for fees.
+ *
+ *
+ * string max_fee_amount_in_dst_tokens = 7;
+ * @return This builder for chaining.
+ */
+ public Builder clearMaxFeeAmountInDstTokens() {
+ copyOnWrite();
+ instance.clearMaxFeeAmountInDstTokens();
+ return this;
+ }
+ /**
+ *
+ */ The maximum amount of destination tokens we are willing to use for fees.
+ *
+ *
+ * string max_fee_amount_in_dst_tokens = 7;
+ * @param value The bytes for maxFeeAmountInDstTokens to set.
+ * @return This builder for chaining.
+ */
+ public Builder setMaxFeeAmountInDstTokensBytes(
+ com.google.protobuf.ByteString value) {
+ copyOnWrite();
+ instance.setMaxFeeAmountInDstTokensBytes(value);
+ return this;
+ }
+
+ /**
+ *
+ */ A multiplier to be applied to the amount of destination tokens swapped for fee tokens.
+ * / This allows controlling how many extra destination tokens are swapped for fee tokens.
+ * / Extra tokens are desierable to avoid running into insufficient withdrawal fee issues originating from swap rate fluctuations.
+ * / The default is used if this field is set to an empty string.
+ * / Setting it to a value lower than 1.0 will result in an error.
+ * / The default value is set by the `DEFAULT_FEE_TOKEN_SWAP_MULTIPLIER` constant in the `mistyswap_offramp_impl` crate.
+ *
+ *
+ * string fee_token_swap_multiplier = 8;
+ * @return The feeTokenSwapMultiplier.
+ */
+ @java.lang.Override
+ public java.lang.String getFeeTokenSwapMultiplier() {
+ return instance.getFeeTokenSwapMultiplier();
+ }
+ /**
+ *
+ */ A multiplier to be applied to the amount of destination tokens swapped for fee tokens.
+ * / This allows controlling how many extra destination tokens are swapped for fee tokens.
+ * / Extra tokens are desierable to avoid running into insufficient withdrawal fee issues originating from swap rate fluctuations.
+ * / The default is used if this field is set to an empty string.
+ * / Setting it to a value lower than 1.0 will result in an error.
+ * / The default value is set by the `DEFAULT_FEE_TOKEN_SWAP_MULTIPLIER` constant in the `mistyswap_offramp_impl` crate.
+ *
+ *
+ * string fee_token_swap_multiplier = 8;
+ * @return The bytes for feeTokenSwapMultiplier.
+ */
+ @java.lang.Override
+ public com.google.protobuf.ByteString
+ getFeeTokenSwapMultiplierBytes() {
+ return instance.getFeeTokenSwapMultiplierBytes();
+ }
+ /**
+ *
+ */ A multiplier to be applied to the amount of destination tokens swapped for fee tokens.
+ * / This allows controlling how many extra destination tokens are swapped for fee tokens.
+ * / Extra tokens are desierable to avoid running into insufficient withdrawal fee issues originating from swap rate fluctuations.
+ * / The default is used if this field is set to an empty string.
+ * / Setting it to a value lower than 1.0 will result in an error.
+ * / The default value is set by the `DEFAULT_FEE_TOKEN_SWAP_MULTIPLIER` constant in the `mistyswap_offramp_impl` crate.
+ *
+ *
+ * string fee_token_swap_multiplier = 8;
+ * @param value The feeTokenSwapMultiplier to set.
+ * @return This builder for chaining.
+ */
+ public Builder setFeeTokenSwapMultiplier(
+ java.lang.String value) {
+ copyOnWrite();
+ instance.setFeeTokenSwapMultiplier(value);
+ return this;
+ }
+ /**
+ *
+ */ A multiplier to be applied to the amount of destination tokens swapped for fee tokens.
+ * / This allows controlling how many extra destination tokens are swapped for fee tokens.
+ * / Extra tokens are desierable to avoid running into insufficient withdrawal fee issues originating from swap rate fluctuations.
+ * / The default is used if this field is set to an empty string.
+ * / Setting it to a value lower than 1.0 will result in an error.
+ * / The default value is set by the `DEFAULT_FEE_TOKEN_SWAP_MULTIPLIER` constant in the `mistyswap_offramp_impl` crate.
+ *
+ *
+ * string fee_token_swap_multiplier = 8;
+ * @return This builder for chaining.
+ */
+ public Builder clearFeeTokenSwapMultiplier() {
+ copyOnWrite();
+ instance.clearFeeTokenSwapMultiplier();
+ return this;
+ }
+ /**
+ *
+ */ A multiplier to be applied to the amount of destination tokens swapped for fee tokens.
+ * / This allows controlling how many extra destination tokens are swapped for fee tokens.
+ * / Extra tokens are desierable to avoid running into insufficient withdrawal fee issues originating from swap rate fluctuations.
+ * / The default is used if this field is set to an empty string.
+ * / Setting it to a value lower than 1.0 will result in an error.
+ * / The default value is set by the `DEFAULT_FEE_TOKEN_SWAP_MULTIPLIER` constant in the `mistyswap_offramp_impl` crate.
+ *
+ *
+ * string fee_token_swap_multiplier = 8;
+ * @param value The bytes for feeTokenSwapMultiplier to set.
+ * @return This builder for chaining.
+ */
+ public Builder setFeeTokenSwapMultiplierBytes(
+ com.google.protobuf.ByteString value) {
+ copyOnWrite();
+ instance.setFeeTokenSwapMultiplierBytes(value);
+ return this;
+ }
+
+ // @@protoc_insertion_point(builder_scope:mistyswap_offramp.OfframpParams)
+ }
+ @java.lang.Override
+ @java.lang.SuppressWarnings({"unchecked", "fallthrough"})
+ protected final java.lang.Object dynamicMethod(
+ com.google.protobuf.GeneratedMessageLite.MethodToInvoke method,
+ java.lang.Object arg0, java.lang.Object arg1) {
+ switch (method) {
+ case NEW_MUTABLE_INSTANCE: {
+ return new mistyswap.MistyswapOfframp.OfframpParams();
+ }
+ case NEW_BUILDER: {
+ return new Builder();
+ }
+ case BUILD_MESSAGE_INFO: {
+ java.lang.Object[] objects = new java.lang.Object[] {
+ "srcAssetId_",
+ "srcExpectedAmount_",
+ "dstAssetId_",
+ "dstAddress_",
+ "dstAddressTag_",
+ "minDstReceivedAmount_",
+ "maxFeeAmountInDstTokens_",
+ "feeTokenSwapMultiplier_",
+ };
+ java.lang.String info =
+ "\u0000\b\u0000\u0000\u0001\b\b\u0000\u0000\u0000\u0001\u0208\u0002\u0208\u0003\u0208" +
+ "\u0004\u0208\u0005\u0208\u0006\u0208\u0007\u0208\b\u0208";
+ return newMessageInfo(DEFAULT_INSTANCE, info, objects);
+ }
+ // fall through
+ case GET_DEFAULT_INSTANCE: {
+ return DEFAULT_INSTANCE;
+ }
+ case GET_PARSER: {
+ com.google.protobuf.Parser
+ */ Mixin credentials, as a JSON string.
+ *
+ *
+ * string mixin_credentials_json = 1;
+ * @return The mixinCredentialsJson.
+ */
+ java.lang.String getMixinCredentialsJson();
+ /**
+ *
+ */ Mixin credentials, as a JSON string.
+ *
+ *
+ * string mixin_credentials_json = 1;
+ * @return The bytes for mixinCredentialsJson.
+ */
+ com.google.protobuf.ByteString
+ getMixinCredentialsJsonBytes();
+
+ /**
+ *
+ */ Offramp parameters.
+ *
+ *
+ * .mistyswap_offramp.OfframpParams params = 2;
+ * @return Whether the params field is set.
+ */
+ boolean hasParams();
+ /**
+ *
+ */ Offramp parameters.
+ *
+ *
+ * .mistyswap_offramp.OfframpParams params = 2;
+ * @return The params.
+ */
+ mistyswap.MistyswapOfframp.OfframpParams getParams();
+ }
+ /**
+ *
+ */ A request to initiate an offramp.
+ *
+ *
+ * Protobuf type {@code mistyswap_offramp.InitiateOfframpRequest}
+ */
+ public static final class InitiateOfframpRequest extends
+ com.google.protobuf.GeneratedMessageLite<
+ InitiateOfframpRequest, InitiateOfframpRequest.Builder> implements
+ // @@protoc_insertion_point(message_implements:mistyswap_offramp.InitiateOfframpRequest)
+ InitiateOfframpRequestOrBuilder {
+ private InitiateOfframpRequest() {
+ mixinCredentialsJson_ = "";
+ }
+ public static final int MIXIN_CREDENTIALS_JSON_FIELD_NUMBER = 1;
+ private java.lang.String mixinCredentialsJson_;
+ /**
+ *
+ */ Mixin credentials, as a JSON string.
+ *
+ *
+ * string mixin_credentials_json = 1;
+ * @return The mixinCredentialsJson.
+ */
+ @java.lang.Override
+ public java.lang.String getMixinCredentialsJson() {
+ return mixinCredentialsJson_;
+ }
+ /**
+ *
+ */ Mixin credentials, as a JSON string.
+ *
+ *
+ * string mixin_credentials_json = 1;
+ * @return The bytes for mixinCredentialsJson.
+ */
+ @java.lang.Override
+ public com.google.protobuf.ByteString
+ getMixinCredentialsJsonBytes() {
+ return com.google.protobuf.ByteString.copyFromUtf8(mixinCredentialsJson_);
+ }
+ /**
+ *
+ */ Mixin credentials, as a JSON string.
+ *
+ *
+ * string mixin_credentials_json = 1;
+ * @param value The mixinCredentialsJson to set.
+ */
+ private void setMixinCredentialsJson(
+ java.lang.String value) {
+ java.lang.Class> valueClass = value.getClass();
+
+ mixinCredentialsJson_ = value;
+ }
+ /**
+ *
+ */ Mixin credentials, as a JSON string.
+ *
+ *
+ * string mixin_credentials_json = 1;
+ */
+ private void clearMixinCredentialsJson() {
+
+ mixinCredentialsJson_ = getDefaultInstance().getMixinCredentialsJson();
+ }
+ /**
+ *
+ */ Mixin credentials, as a JSON string.
+ *
+ *
+ * string mixin_credentials_json = 1;
+ * @param value The bytes for mixinCredentialsJson to set.
+ */
+ private void setMixinCredentialsJsonBytes(
+ com.google.protobuf.ByteString value) {
+ checkByteStringIsUtf8(value);
+ mixinCredentialsJson_ = value.toStringUtf8();
+
+ }
+
+ public static final int PARAMS_FIELD_NUMBER = 2;
+ private mistyswap.MistyswapOfframp.OfframpParams params_;
+ /**
+ *
+ */ Offramp parameters.
+ *
+ *
+ * .mistyswap_offramp.OfframpParams params = 2;
+ */
+ @java.lang.Override
+ public boolean hasParams() {
+ return params_ != null;
+ }
+ /**
+ *
+ */ Offramp parameters.
+ *
+ *
+ * .mistyswap_offramp.OfframpParams params = 2;
+ */
+ @java.lang.Override
+ public mistyswap.MistyswapOfframp.OfframpParams getParams() {
+ return params_ == null ? mistyswap.MistyswapOfframp.OfframpParams.getDefaultInstance() : params_;
+ }
+ /**
+ *
+ */ Offramp parameters.
+ *
+ *
+ * .mistyswap_offramp.OfframpParams params = 2;
+ */
+ private void setParams(mistyswap.MistyswapOfframp.OfframpParams value) {
+ value.getClass();
+ params_ = value;
+
+ }
+ /**
+ *
+ */ Offramp parameters.
+ *
+ *
+ * .mistyswap_offramp.OfframpParams params = 2;
+ */
+ @java.lang.SuppressWarnings({"ReferenceEquality"})
+ private void mergeParams(mistyswap.MistyswapOfframp.OfframpParams value) {
+ value.getClass();
+ if (params_ != null &&
+ params_ != mistyswap.MistyswapOfframp.OfframpParams.getDefaultInstance()) {
+ params_ =
+ mistyswap.MistyswapOfframp.OfframpParams.newBuilder(params_).mergeFrom(value).buildPartial();
+ } else {
+ params_ = value;
+ }
+
+ }
+ /**
+ *
+ */ Offramp parameters.
+ *
+ *
+ * .mistyswap_offramp.OfframpParams params = 2;
+ */
+ private void clearParams() { params_ = null;
+
+ }
+
+ public static mistyswap.MistyswapOfframp.InitiateOfframpRequest parseFrom(
+ java.nio.ByteBuffer data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return com.google.protobuf.GeneratedMessageLite.parseFrom(
+ DEFAULT_INSTANCE, data);
+ }
+ public static mistyswap.MistyswapOfframp.InitiateOfframpRequest parseFrom(
+ java.nio.ByteBuffer data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return com.google.protobuf.GeneratedMessageLite.parseFrom(
+ DEFAULT_INSTANCE, data, extensionRegistry);
+ }
+ public static mistyswap.MistyswapOfframp.InitiateOfframpRequest parseFrom(
+ com.google.protobuf.ByteString data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return com.google.protobuf.GeneratedMessageLite.parseFrom(
+ DEFAULT_INSTANCE, data);
+ }
+ public static mistyswap.MistyswapOfframp.InitiateOfframpRequest parseFrom(
+ com.google.protobuf.ByteString data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return com.google.protobuf.GeneratedMessageLite.parseFrom(
+ DEFAULT_INSTANCE, data, extensionRegistry);
+ }
+ public static mistyswap.MistyswapOfframp.InitiateOfframpRequest parseFrom(byte[] data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return com.google.protobuf.GeneratedMessageLite.parseFrom(
+ DEFAULT_INSTANCE, data);
+ }
+ public static mistyswap.MistyswapOfframp.InitiateOfframpRequest parseFrom(
+ byte[] data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return com.google.protobuf.GeneratedMessageLite.parseFrom(
+ DEFAULT_INSTANCE, data, extensionRegistry);
+ }
+ public static mistyswap.MistyswapOfframp.InitiateOfframpRequest parseFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageLite.parseFrom(
+ DEFAULT_INSTANCE, input);
+ }
+ public static mistyswap.MistyswapOfframp.InitiateOfframpRequest parseFrom(
+ java.io.InputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageLite.parseFrom(
+ DEFAULT_INSTANCE, input, extensionRegistry);
+ }
+ public static mistyswap.MistyswapOfframp.InitiateOfframpRequest parseDelimitedFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return parseDelimitedFrom(DEFAULT_INSTANCE, input);
+ }
+ public static mistyswap.MistyswapOfframp.InitiateOfframpRequest parseDelimitedFrom(
+ java.io.InputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return parseDelimitedFrom(DEFAULT_INSTANCE, input, extensionRegistry);
+ }
+ public static mistyswap.MistyswapOfframp.InitiateOfframpRequest parseFrom(
+ com.google.protobuf.CodedInputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageLite.parseFrom(
+ DEFAULT_INSTANCE, input);
+ }
+ public static mistyswap.MistyswapOfframp.InitiateOfframpRequest parseFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageLite.parseFrom(
+ DEFAULT_INSTANCE, input, extensionRegistry);
+ }
+
+ public static Builder newBuilder() {
+ return (Builder) DEFAULT_INSTANCE.createBuilder();
+ }
+ public static Builder newBuilder(mistyswap.MistyswapOfframp.InitiateOfframpRequest prototype) {
+ return (Builder) DEFAULT_INSTANCE.createBuilder(prototype);
+ }
+
+ /**
+ *
+ */ A request to initiate an offramp.
+ *
+ *
+ * Protobuf type {@code mistyswap_offramp.InitiateOfframpRequest}
+ */
+ public static final class Builder extends
+ com.google.protobuf.GeneratedMessageLite.Builder<
+ mistyswap.MistyswapOfframp.InitiateOfframpRequest, Builder> implements
+ // @@protoc_insertion_point(builder_implements:mistyswap_offramp.InitiateOfframpRequest)
+ mistyswap.MistyswapOfframp.InitiateOfframpRequestOrBuilder {
+ // Construct using mistyswap.MistyswapOfframp.InitiateOfframpRequest.newBuilder()
+ private Builder() {
+ super(DEFAULT_INSTANCE);
+ }
+
+
+ /**
+ *
+ */ Mixin credentials, as a JSON string.
+ *
+ *
+ * string mixin_credentials_json = 1;
+ * @return The mixinCredentialsJson.
+ */
+ @java.lang.Override
+ public java.lang.String getMixinCredentialsJson() {
+ return instance.getMixinCredentialsJson();
+ }
+ /**
+ *
+ */ Mixin credentials, as a JSON string.
+ *
+ *
+ * string mixin_credentials_json = 1;
+ * @return The bytes for mixinCredentialsJson.
+ */
+ @java.lang.Override
+ public com.google.protobuf.ByteString
+ getMixinCredentialsJsonBytes() {
+ return instance.getMixinCredentialsJsonBytes();
+ }
+ /**
+ *
+ */ Mixin credentials, as a JSON string.
+ *
+ *
+ * string mixin_credentials_json = 1;
+ * @param value The mixinCredentialsJson to set.
+ * @return This builder for chaining.
+ */
+ public Builder setMixinCredentialsJson(
+ java.lang.String value) {
+ copyOnWrite();
+ instance.setMixinCredentialsJson(value);
+ return this;
+ }
+ /**
+ *
+ */ Mixin credentials, as a JSON string.
+ *
+ *
+ * string mixin_credentials_json = 1;
+ * @return This builder for chaining.
+ */
+ public Builder clearMixinCredentialsJson() {
+ copyOnWrite();
+ instance.clearMixinCredentialsJson();
+ return this;
+ }
+ /**
+ *
+ */ Mixin credentials, as a JSON string.
+ *
+ *
+ * string mixin_credentials_json = 1;
+ * @param value The bytes for mixinCredentialsJson to set.
+ * @return This builder for chaining.
+ */
+ public Builder setMixinCredentialsJsonBytes(
+ com.google.protobuf.ByteString value) {
+ copyOnWrite();
+ instance.setMixinCredentialsJsonBytes(value);
+ return this;
+ }
+
+ /**
+ *
+ */ Offramp parameters.
+ *
+ *
+ * .mistyswap_offramp.OfframpParams params = 2;
+ */
+ @java.lang.Override
+ public boolean hasParams() {
+ return instance.hasParams();
+ }
+ /**
+ *
+ */ Offramp parameters.
+ *
+ *
+ * .mistyswap_offramp.OfframpParams params = 2;
+ */
+ @java.lang.Override
+ public mistyswap.MistyswapOfframp.OfframpParams getParams() {
+ return instance.getParams();
+ }
+ /**
+ *
+ */ Offramp parameters.
+ *
+ *
+ * .mistyswap_offramp.OfframpParams params = 2;
+ */
+ public Builder setParams(mistyswap.MistyswapOfframp.OfframpParams value) {
+ copyOnWrite();
+ instance.setParams(value);
+ return this;
+ }
+ /**
+ *
+ */ Offramp parameters.
+ *
+ *
+ * .mistyswap_offramp.OfframpParams params = 2;
+ */
+ public Builder setParams(
+ mistyswap.MistyswapOfframp.OfframpParams.Builder builderForValue) {
+ copyOnWrite();
+ instance.setParams(builderForValue.build());
+ return this;
+ }
+ /**
+ *
+ */ Offramp parameters.
+ *
+ *
+ * .mistyswap_offramp.OfframpParams params = 2;
+ */
+ public Builder mergeParams(mistyswap.MistyswapOfframp.OfframpParams value) {
+ copyOnWrite();
+ instance.mergeParams(value);
+ return this;
+ }
+ /**
+ *
+ */ Offramp parameters.
+ *
+ *
+ * .mistyswap_offramp.OfframpParams params = 2;
+ */
+ public Builder clearParams() { copyOnWrite();
+ instance.clearParams();
+ return this;
+ }
+
+ // @@protoc_insertion_point(builder_scope:mistyswap_offramp.InitiateOfframpRequest)
+ }
+ @java.lang.Override
+ @java.lang.SuppressWarnings({"unchecked", "fallthrough"})
+ protected final java.lang.Object dynamicMethod(
+ com.google.protobuf.GeneratedMessageLite.MethodToInvoke method,
+ java.lang.Object arg0, java.lang.Object arg1) {
+ switch (method) {
+ case NEW_MUTABLE_INSTANCE: {
+ return new mistyswap.MistyswapOfframp.InitiateOfframpRequest();
+ }
+ case NEW_BUILDER: {
+ return new Builder();
+ }
+ case BUILD_MESSAGE_INFO: {
+ java.lang.Object[] objects = new java.lang.Object[] {
+ "mixinCredentialsJson_",
+ "params_",
+ };
+ java.lang.String info =
+ "\u0000\u0002\u0000\u0000\u0001\u0002\u0002\u0000\u0000\u0000\u0001\u0208\u0002\t" +
+ "";
+ return newMessageInfo(DEFAULT_INSTANCE, info, objects);
+ }
+ // fall through
+ case GET_DEFAULT_INSTANCE: {
+ return DEFAULT_INSTANCE;
+ }
+ case GET_PARSER: {
+ com.google.protobuf.Parser
+ */ Result of the offramp request.
+ *
+ *
+ * .mistyswap_offramp.OfframpResult result = 1;
+ * @return Whether the result field is set.
+ */
+ boolean hasResult();
+ /**
+ *
+ */ Result of the offramp request.
+ *
+ *
+ * .mistyswap_offramp.OfframpResult result = 1;
+ * @return The result.
+ */
+ mistyswap.MistyswapOfframp.OfframpResult getResult();
+
+ /**
+ *
+ */ Unique ID derived from the offramp request (set if result code is Ok)
+ *
+ *
+ * bytes offramp_id = 2;
+ * @return The offrampId.
+ */
+ com.google.protobuf.ByteString getOfframpId();
+ }
+ /**
+ *
+ */ A successful response to an InitiateOfframpRequest.
+ *
+ *
+ * Protobuf type {@code mistyswap_offramp.InitiateOfframpResponse}
+ */
+ public static final class InitiateOfframpResponse extends
+ com.google.protobuf.GeneratedMessageLite<
+ InitiateOfframpResponse, InitiateOfframpResponse.Builder> implements
+ // @@protoc_insertion_point(message_implements:mistyswap_offramp.InitiateOfframpResponse)
+ InitiateOfframpResponseOrBuilder {
+ private InitiateOfframpResponse() {
+ offrampId_ = com.google.protobuf.ByteString.EMPTY;
+ }
+ public static final int RESULT_FIELD_NUMBER = 1;
+ private mistyswap.MistyswapOfframp.OfframpResult result_;
+ /**
+ *
+ */ Result of the offramp request.
+ *
+ *
+ * .mistyswap_offramp.OfframpResult result = 1;
+ */
+ @java.lang.Override
+ public boolean hasResult() {
+ return result_ != null;
+ }
+ /**
+ *
+ */ Result of the offramp request.
+ *
+ *
+ * .mistyswap_offramp.OfframpResult result = 1;
+ */
+ @java.lang.Override
+ public mistyswap.MistyswapOfframp.OfframpResult getResult() {
+ return result_ == null ? mistyswap.MistyswapOfframp.OfframpResult.getDefaultInstance() : result_;
+ }
+ /**
+ *
+ */ Result of the offramp request.
+ *
+ *
+ * .mistyswap_offramp.OfframpResult result = 1;
+ */
+ private void setResult(mistyswap.MistyswapOfframp.OfframpResult value) {
+ value.getClass();
+ result_ = value;
+
+ }
+ /**
+ *
+ */ Result of the offramp request.
+ *
+ *
+ * .mistyswap_offramp.OfframpResult result = 1;
+ */
+ @java.lang.SuppressWarnings({"ReferenceEquality"})
+ private void mergeResult(mistyswap.MistyswapOfframp.OfframpResult value) {
+ value.getClass();
+ if (result_ != null &&
+ result_ != mistyswap.MistyswapOfframp.OfframpResult.getDefaultInstance()) {
+ result_ =
+ mistyswap.MistyswapOfframp.OfframpResult.newBuilder(result_).mergeFrom(value).buildPartial();
+ } else {
+ result_ = value;
+ }
+
+ }
+ /**
+ *
+ */ Result of the offramp request.
+ *
+ *
+ * .mistyswap_offramp.OfframpResult result = 1;
+ */
+ private void clearResult() { result_ = null;
+
+ }
+
+ public static final int OFFRAMP_ID_FIELD_NUMBER = 2;
+ private com.google.protobuf.ByteString offrampId_;
+ /**
+ *
+ */ Unique ID derived from the offramp request (set if result code is Ok)
+ *
+ *
+ * bytes offramp_id = 2;
+ * @return The offrampId.
+ */
+ @java.lang.Override
+ public com.google.protobuf.ByteString getOfframpId() {
+ return offrampId_;
+ }
+ /**
+ *
+ */ Unique ID derived from the offramp request (set if result code is Ok)
+ *
+ *
+ * bytes offramp_id = 2;
+ * @param value The offrampId to set.
+ */
+ private void setOfframpId(com.google.protobuf.ByteString value) {
+ java.lang.Class> valueClass = value.getClass();
+
+ offrampId_ = value;
+ }
+ /**
+ *
+ */ Unique ID derived from the offramp request (set if result code is Ok)
+ *
+ *
+ * bytes offramp_id = 2;
+ */
+ private void clearOfframpId() {
+
+ offrampId_ = getDefaultInstance().getOfframpId();
+ }
+
+ public static mistyswap.MistyswapOfframp.InitiateOfframpResponse parseFrom(
+ java.nio.ByteBuffer data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return com.google.protobuf.GeneratedMessageLite.parseFrom(
+ DEFAULT_INSTANCE, data);
+ }
+ public static mistyswap.MistyswapOfframp.InitiateOfframpResponse parseFrom(
+ java.nio.ByteBuffer data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return com.google.protobuf.GeneratedMessageLite.parseFrom(
+ DEFAULT_INSTANCE, data, extensionRegistry);
+ }
+ public static mistyswap.MistyswapOfframp.InitiateOfframpResponse parseFrom(
+ com.google.protobuf.ByteString data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return com.google.protobuf.GeneratedMessageLite.parseFrom(
+ DEFAULT_INSTANCE, data);
+ }
+ public static mistyswap.MistyswapOfframp.InitiateOfframpResponse parseFrom(
+ com.google.protobuf.ByteString data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return com.google.protobuf.GeneratedMessageLite.parseFrom(
+ DEFAULT_INSTANCE, data, extensionRegistry);
+ }
+ public static mistyswap.MistyswapOfframp.InitiateOfframpResponse parseFrom(byte[] data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return com.google.protobuf.GeneratedMessageLite.parseFrom(
+ DEFAULT_INSTANCE, data);
+ }
+ public static mistyswap.MistyswapOfframp.InitiateOfframpResponse parseFrom(
+ byte[] data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return com.google.protobuf.GeneratedMessageLite.parseFrom(
+ DEFAULT_INSTANCE, data, extensionRegistry);
+ }
+ public static mistyswap.MistyswapOfframp.InitiateOfframpResponse parseFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageLite.parseFrom(
+ DEFAULT_INSTANCE, input);
+ }
+ public static mistyswap.MistyswapOfframp.InitiateOfframpResponse parseFrom(
+ java.io.InputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageLite.parseFrom(
+ DEFAULT_INSTANCE, input, extensionRegistry);
+ }
+ public static mistyswap.MistyswapOfframp.InitiateOfframpResponse parseDelimitedFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return parseDelimitedFrom(DEFAULT_INSTANCE, input);
+ }
+ public static mistyswap.MistyswapOfframp.InitiateOfframpResponse parseDelimitedFrom(
+ java.io.InputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return parseDelimitedFrom(DEFAULT_INSTANCE, input, extensionRegistry);
+ }
+ public static mistyswap.MistyswapOfframp.InitiateOfframpResponse parseFrom(
+ com.google.protobuf.CodedInputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageLite.parseFrom(
+ DEFAULT_INSTANCE, input);
+ }
+ public static mistyswap.MistyswapOfframp.InitiateOfframpResponse parseFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageLite.parseFrom(
+ DEFAULT_INSTANCE, input, extensionRegistry);
+ }
+
+ public static Builder newBuilder() {
+ return (Builder) DEFAULT_INSTANCE.createBuilder();
+ }
+ public static Builder newBuilder(mistyswap.MistyswapOfframp.InitiateOfframpResponse prototype) {
+ return (Builder) DEFAULT_INSTANCE.createBuilder(prototype);
+ }
+
+ /**
+ *
+ */ A successful response to an InitiateOfframpRequest.
+ *
+ *
+ * Protobuf type {@code mistyswap_offramp.InitiateOfframpResponse}
+ */
+ public static final class Builder extends
+ com.google.protobuf.GeneratedMessageLite.Builder<
+ mistyswap.MistyswapOfframp.InitiateOfframpResponse, Builder> implements
+ // @@protoc_insertion_point(builder_implements:mistyswap_offramp.InitiateOfframpResponse)
+ mistyswap.MistyswapOfframp.InitiateOfframpResponseOrBuilder {
+ // Construct using mistyswap.MistyswapOfframp.InitiateOfframpResponse.newBuilder()
+ private Builder() {
+ super(DEFAULT_INSTANCE);
+ }
+
+
+ /**
+ *
+ */ Result of the offramp request.
+ *
+ *
+ * .mistyswap_offramp.OfframpResult result = 1;
+ */
+ @java.lang.Override
+ public boolean hasResult() {
+ return instance.hasResult();
+ }
+ /**
+ *
+ */ Result of the offramp request.
+ *
+ *
+ * .mistyswap_offramp.OfframpResult result = 1;
+ */
+ @java.lang.Override
+ public mistyswap.MistyswapOfframp.OfframpResult getResult() {
+ return instance.getResult();
+ }
+ /**
+ *
+ */ Result of the offramp request.
+ *
+ *
+ * .mistyswap_offramp.OfframpResult result = 1;
+ */
+ public Builder setResult(mistyswap.MistyswapOfframp.OfframpResult value) {
+ copyOnWrite();
+ instance.setResult(value);
+ return this;
+ }
+ /**
+ *
+ */ Result of the offramp request.
+ *
+ *
+ * .mistyswap_offramp.OfframpResult result = 1;
+ */
+ public Builder setResult(
+ mistyswap.MistyswapOfframp.OfframpResult.Builder builderForValue) {
+ copyOnWrite();
+ instance.setResult(builderForValue.build());
+ return this;
+ }
+ /**
+ *
+ */ Result of the offramp request.
+ *
+ *
+ * .mistyswap_offramp.OfframpResult result = 1;
+ */
+ public Builder mergeResult(mistyswap.MistyswapOfframp.OfframpResult value) {
+ copyOnWrite();
+ instance.mergeResult(value);
+ return this;
+ }
+ /**
+ *
+ */ Result of the offramp request.
+ *
+ *
+ * .mistyswap_offramp.OfframpResult result = 1;
+ */
+ public Builder clearResult() { copyOnWrite();
+ instance.clearResult();
+ return this;
+ }
+
+ /**
+ *
+ */ Unique ID derived from the offramp request (set if result code is Ok)
+ *
+ *
+ * bytes offramp_id = 2;
+ * @return The offrampId.
+ */
+ @java.lang.Override
+ public com.google.protobuf.ByteString getOfframpId() {
+ return instance.getOfframpId();
+ }
+ /**
+ *
+ */ Unique ID derived from the offramp request (set if result code is Ok)
+ *
+ *
+ * bytes offramp_id = 2;
+ * @param value The offrampId to set.
+ * @return This builder for chaining.
+ */
+ public Builder setOfframpId(com.google.protobuf.ByteString value) {
+ copyOnWrite();
+ instance.setOfframpId(value);
+ return this;
+ }
+ /**
+ *
+ */ Unique ID derived from the offramp request (set if result code is Ok)
+ *
+ *
+ * bytes offramp_id = 2;
+ * @return This builder for chaining.
+ */
+ public Builder clearOfframpId() {
+ copyOnWrite();
+ instance.clearOfframpId();
+ return this;
+ }
+
+ // @@protoc_insertion_point(builder_scope:mistyswap_offramp.InitiateOfframpResponse)
+ }
+ @java.lang.Override
+ @java.lang.SuppressWarnings({"unchecked", "fallthrough"})
+ protected final java.lang.Object dynamicMethod(
+ com.google.protobuf.GeneratedMessageLite.MethodToInvoke method,
+ java.lang.Object arg0, java.lang.Object arg1) {
+ switch (method) {
+ case NEW_MUTABLE_INSTANCE: {
+ return new mistyswap.MistyswapOfframp.InitiateOfframpResponse();
+ }
+ case NEW_BUILDER: {
+ return new Builder();
+ }
+ case BUILD_MESSAGE_INFO: {
+ java.lang.Object[] objects = new java.lang.Object[] {
+ "result_",
+ "offrampId_",
+ };
+ java.lang.String info =
+ "\u0000\u0002\u0000\u0000\u0001\u0002\u0002\u0000\u0000\u0000\u0001\t\u0002\n";
+ return newMessageInfo(DEFAULT_INSTANCE, info, objects);
+ }
+ // fall through
+ case GET_DEFAULT_INSTANCE: {
+ return DEFAULT_INSTANCE;
+ }
+ case GET_PARSER: {
+ com.google.protobuf.Parser
+ */ Unique ID of the offramp to forget.
+ *
+ *
+ * bytes offramp_id = 1;
+ * @return The offrampId.
+ */
+ com.google.protobuf.ByteString getOfframpId();
+ }
+ /**
+ *
+ */ A request to forget an offramp.
+ *
+ *
+ * Protobuf type {@code mistyswap_offramp.ForgetOfframpRequest}
+ */
+ public static final class ForgetOfframpRequest extends
+ com.google.protobuf.GeneratedMessageLite<
+ ForgetOfframpRequest, ForgetOfframpRequest.Builder> implements
+ // @@protoc_insertion_point(message_implements:mistyswap_offramp.ForgetOfframpRequest)
+ ForgetOfframpRequestOrBuilder {
+ private ForgetOfframpRequest() {
+ offrampId_ = com.google.protobuf.ByteString.EMPTY;
+ }
+ public static final int OFFRAMP_ID_FIELD_NUMBER = 1;
+ private com.google.protobuf.ByteString offrampId_;
+ /**
+ *
+ */ Unique ID of the offramp to forget.
+ *
+ *
+ * bytes offramp_id = 1;
+ * @return The offrampId.
+ */
+ @java.lang.Override
+ public com.google.protobuf.ByteString getOfframpId() {
+ return offrampId_;
+ }
+ /**
+ *
+ */ Unique ID of the offramp to forget.
+ *
+ *
+ * bytes offramp_id = 1;
+ * @param value The offrampId to set.
+ */
+ private void setOfframpId(com.google.protobuf.ByteString value) {
+ java.lang.Class> valueClass = value.getClass();
+
+ offrampId_ = value;
+ }
+ /**
+ *
+ */ Unique ID of the offramp to forget.
+ *
+ *
+ * bytes offramp_id = 1;
+ */
+ private void clearOfframpId() {
+
+ offrampId_ = getDefaultInstance().getOfframpId();
+ }
+
+ public static mistyswap.MistyswapOfframp.ForgetOfframpRequest parseFrom(
+ java.nio.ByteBuffer data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return com.google.protobuf.GeneratedMessageLite.parseFrom(
+ DEFAULT_INSTANCE, data);
+ }
+ public static mistyswap.MistyswapOfframp.ForgetOfframpRequest parseFrom(
+ java.nio.ByteBuffer data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return com.google.protobuf.GeneratedMessageLite.parseFrom(
+ DEFAULT_INSTANCE, data, extensionRegistry);
+ }
+ public static mistyswap.MistyswapOfframp.ForgetOfframpRequest parseFrom(
+ com.google.protobuf.ByteString data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return com.google.protobuf.GeneratedMessageLite.parseFrom(
+ DEFAULT_INSTANCE, data);
+ }
+ public static mistyswap.MistyswapOfframp.ForgetOfframpRequest parseFrom(
+ com.google.protobuf.ByteString data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return com.google.protobuf.GeneratedMessageLite.parseFrom(
+ DEFAULT_INSTANCE, data, extensionRegistry);
+ }
+ public static mistyswap.MistyswapOfframp.ForgetOfframpRequest parseFrom(byte[] data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return com.google.protobuf.GeneratedMessageLite.parseFrom(
+ DEFAULT_INSTANCE, data);
+ }
+ public static mistyswap.MistyswapOfframp.ForgetOfframpRequest parseFrom(
+ byte[] data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return com.google.protobuf.GeneratedMessageLite.parseFrom(
+ DEFAULT_INSTANCE, data, extensionRegistry);
+ }
+ public static mistyswap.MistyswapOfframp.ForgetOfframpRequest parseFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageLite.parseFrom(
+ DEFAULT_INSTANCE, input);
+ }
+ public static mistyswap.MistyswapOfframp.ForgetOfframpRequest parseFrom(
+ java.io.InputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageLite.parseFrom(
+ DEFAULT_INSTANCE, input, extensionRegistry);
+ }
+ public static mistyswap.MistyswapOfframp.ForgetOfframpRequest parseDelimitedFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return parseDelimitedFrom(DEFAULT_INSTANCE, input);
+ }
+ public static mistyswap.MistyswapOfframp.ForgetOfframpRequest parseDelimitedFrom(
+ java.io.InputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return parseDelimitedFrom(DEFAULT_INSTANCE, input, extensionRegistry);
+ }
+ public static mistyswap.MistyswapOfframp.ForgetOfframpRequest parseFrom(
+ com.google.protobuf.CodedInputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageLite.parseFrom(
+ DEFAULT_INSTANCE, input);
+ }
+ public static mistyswap.MistyswapOfframp.ForgetOfframpRequest parseFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageLite.parseFrom(
+ DEFAULT_INSTANCE, input, extensionRegistry);
+ }
+
+ public static Builder newBuilder() {
+ return (Builder) DEFAULT_INSTANCE.createBuilder();
+ }
+ public static Builder newBuilder(mistyswap.MistyswapOfframp.ForgetOfframpRequest prototype) {
+ return (Builder) DEFAULT_INSTANCE.createBuilder(prototype);
+ }
+
+ /**
+ *
+ */ A request to forget an offramp.
+ *
+ *
+ * Protobuf type {@code mistyswap_offramp.ForgetOfframpRequest}
+ */
+ public static final class Builder extends
+ com.google.protobuf.GeneratedMessageLite.Builder<
+ mistyswap.MistyswapOfframp.ForgetOfframpRequest, Builder> implements
+ // @@protoc_insertion_point(builder_implements:mistyswap_offramp.ForgetOfframpRequest)
+ mistyswap.MistyswapOfframp.ForgetOfframpRequestOrBuilder {
+ // Construct using mistyswap.MistyswapOfframp.ForgetOfframpRequest.newBuilder()
+ private Builder() {
+ super(DEFAULT_INSTANCE);
+ }
+
+
+ /**
+ *
+ */ Unique ID of the offramp to forget.
+ *
+ *
+ * bytes offramp_id = 1;
+ * @return The offrampId.
+ */
+ @java.lang.Override
+ public com.google.protobuf.ByteString getOfframpId() {
+ return instance.getOfframpId();
+ }
+ /**
+ *
+ */ Unique ID of the offramp to forget.
+ *
+ *
+ * bytes offramp_id = 1;
+ * @param value The offrampId to set.
+ * @return This builder for chaining.
+ */
+ public Builder setOfframpId(com.google.protobuf.ByteString value) {
+ copyOnWrite();
+ instance.setOfframpId(value);
+ return this;
+ }
+ /**
+ *
+ */ Unique ID of the offramp to forget.
+ *
+ *
+ * bytes offramp_id = 1;
+ * @return This builder for chaining.
+ */
+ public Builder clearOfframpId() {
+ copyOnWrite();
+ instance.clearOfframpId();
+ return this;
+ }
+
+ // @@protoc_insertion_point(builder_scope:mistyswap_offramp.ForgetOfframpRequest)
+ }
+ @java.lang.Override
+ @java.lang.SuppressWarnings({"unchecked", "fallthrough"})
+ protected final java.lang.Object dynamicMethod(
+ com.google.protobuf.GeneratedMessageLite.MethodToInvoke method,
+ java.lang.Object arg0, java.lang.Object arg1) {
+ switch (method) {
+ case NEW_MUTABLE_INSTANCE: {
+ return new mistyswap.MistyswapOfframp.ForgetOfframpRequest();
+ }
+ case NEW_BUILDER: {
+ return new Builder();
+ }
+ case BUILD_MESSAGE_INFO: {
+ java.lang.Object[] objects = new java.lang.Object[] {
+ "offrampId_",
+ };
+ java.lang.String info =
+ "\u0000\u0001\u0000\u0000\u0001\u0001\u0001\u0000\u0000\u0000\u0001\n";
+ return newMessageInfo(DEFAULT_INSTANCE, info, objects);
+ }
+ // fall through
+ case GET_DEFAULT_INSTANCE: {
+ return DEFAULT_INSTANCE;
+ }
+ case GET_PARSER: {
+ com.google.protobuf.Parser
+ */ Result of the offramp request.
+ *
+ *
+ * .mistyswap_offramp.OfframpResult result = 1;
+ * @return Whether the result field is set.
+ */
+ boolean hasResult();
+ /**
+ *
+ */ Result of the offramp request.
+ *
+ *
+ * .mistyswap_offramp.OfframpResult result = 1;
+ * @return The result.
+ */
+ mistyswap.MistyswapOfframp.OfframpResult getResult();
+ }
+ /**
+ *
+ */ A response to a ForgetOfframpRequest.
+ *
+ *
+ * Protobuf type {@code mistyswap_offramp.ForgetOfframpResponse}
+ */
+ public static final class ForgetOfframpResponse extends
+ com.google.protobuf.GeneratedMessageLite<
+ ForgetOfframpResponse, ForgetOfframpResponse.Builder> implements
+ // @@protoc_insertion_point(message_implements:mistyswap_offramp.ForgetOfframpResponse)
+ ForgetOfframpResponseOrBuilder {
+ private ForgetOfframpResponse() {
+ }
+ public static final int RESULT_FIELD_NUMBER = 1;
+ private mistyswap.MistyswapOfframp.OfframpResult result_;
+ /**
+ *
+ */ Result of the offramp request.
+ *
+ *
+ * .mistyswap_offramp.OfframpResult result = 1;
+ */
+ @java.lang.Override
+ public boolean hasResult() {
+ return result_ != null;
+ }
+ /**
+ *
+ */ Result of the offramp request.
+ *
+ *
+ * .mistyswap_offramp.OfframpResult result = 1;
+ */
+ @java.lang.Override
+ public mistyswap.MistyswapOfframp.OfframpResult getResult() {
+ return result_ == null ? mistyswap.MistyswapOfframp.OfframpResult.getDefaultInstance() : result_;
+ }
+ /**
+ *
+ */ Result of the offramp request.
+ *
+ *
+ * .mistyswap_offramp.OfframpResult result = 1;
+ */
+ private void setResult(mistyswap.MistyswapOfframp.OfframpResult value) {
+ value.getClass();
+ result_ = value;
+
+ }
+ /**
+ *
+ */ Result of the offramp request.
+ *
+ *
+ * .mistyswap_offramp.OfframpResult result = 1;
+ */
+ @java.lang.SuppressWarnings({"ReferenceEquality"})
+ private void mergeResult(mistyswap.MistyswapOfframp.OfframpResult value) {
+ value.getClass();
+ if (result_ != null &&
+ result_ != mistyswap.MistyswapOfframp.OfframpResult.getDefaultInstance()) {
+ result_ =
+ mistyswap.MistyswapOfframp.OfframpResult.newBuilder(result_).mergeFrom(value).buildPartial();
+ } else {
+ result_ = value;
+ }
+
+ }
+ /**
+ *
+ */ Result of the offramp request.
+ *
+ *
+ * .mistyswap_offramp.OfframpResult result = 1;
+ */
+ private void clearResult() { result_ = null;
+
+ }
+
+ public static mistyswap.MistyswapOfframp.ForgetOfframpResponse parseFrom(
+ java.nio.ByteBuffer data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return com.google.protobuf.GeneratedMessageLite.parseFrom(
+ DEFAULT_INSTANCE, data);
+ }
+ public static mistyswap.MistyswapOfframp.ForgetOfframpResponse parseFrom(
+ java.nio.ByteBuffer data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return com.google.protobuf.GeneratedMessageLite.parseFrom(
+ DEFAULT_INSTANCE, data, extensionRegistry);
+ }
+ public static mistyswap.MistyswapOfframp.ForgetOfframpResponse parseFrom(
+ com.google.protobuf.ByteString data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return com.google.protobuf.GeneratedMessageLite.parseFrom(
+ DEFAULT_INSTANCE, data);
+ }
+ public static mistyswap.MistyswapOfframp.ForgetOfframpResponse parseFrom(
+ com.google.protobuf.ByteString data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return com.google.protobuf.GeneratedMessageLite.parseFrom(
+ DEFAULT_INSTANCE, data, extensionRegistry);
+ }
+ public static mistyswap.MistyswapOfframp.ForgetOfframpResponse parseFrom(byte[] data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return com.google.protobuf.GeneratedMessageLite.parseFrom(
+ DEFAULT_INSTANCE, data);
+ }
+ public static mistyswap.MistyswapOfframp.ForgetOfframpResponse parseFrom(
+ byte[] data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return com.google.protobuf.GeneratedMessageLite.parseFrom(
+ DEFAULT_INSTANCE, data, extensionRegistry);
+ }
+ public static mistyswap.MistyswapOfframp.ForgetOfframpResponse parseFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageLite.parseFrom(
+ DEFAULT_INSTANCE, input);
+ }
+ public static mistyswap.MistyswapOfframp.ForgetOfframpResponse parseFrom(
+ java.io.InputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageLite.parseFrom(
+ DEFAULT_INSTANCE, input, extensionRegistry);
+ }
+ public static mistyswap.MistyswapOfframp.ForgetOfframpResponse parseDelimitedFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return parseDelimitedFrom(DEFAULT_INSTANCE, input);
+ }
+ public static mistyswap.MistyswapOfframp.ForgetOfframpResponse parseDelimitedFrom(
+ java.io.InputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return parseDelimitedFrom(DEFAULT_INSTANCE, input, extensionRegistry);
+ }
+ public static mistyswap.MistyswapOfframp.ForgetOfframpResponse parseFrom(
+ com.google.protobuf.CodedInputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageLite.parseFrom(
+ DEFAULT_INSTANCE, input);
+ }
+ public static mistyswap.MistyswapOfframp.ForgetOfframpResponse parseFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageLite.parseFrom(
+ DEFAULT_INSTANCE, input, extensionRegistry);
+ }
+
+ public static Builder newBuilder() {
+ return (Builder) DEFAULT_INSTANCE.createBuilder();
+ }
+ public static Builder newBuilder(mistyswap.MistyswapOfframp.ForgetOfframpResponse prototype) {
+ return (Builder) DEFAULT_INSTANCE.createBuilder(prototype);
+ }
+
+ /**
+ *
+ */ A response to a ForgetOfframpRequest.
+ *
+ *
+ * Protobuf type {@code mistyswap_offramp.ForgetOfframpResponse}
+ */
+ public static final class Builder extends
+ com.google.protobuf.GeneratedMessageLite.Builder<
+ mistyswap.MistyswapOfframp.ForgetOfframpResponse, Builder> implements
+ // @@protoc_insertion_point(builder_implements:mistyswap_offramp.ForgetOfframpResponse)
+ mistyswap.MistyswapOfframp.ForgetOfframpResponseOrBuilder {
+ // Construct using mistyswap.MistyswapOfframp.ForgetOfframpResponse.newBuilder()
+ private Builder() {
+ super(DEFAULT_INSTANCE);
+ }
+
+
+ /**
+ *
+ */ Result of the offramp request.
+ *
+ *
+ * .mistyswap_offramp.OfframpResult result = 1;
+ */
+ @java.lang.Override
+ public boolean hasResult() {
+ return instance.hasResult();
+ }
+ /**
+ *
+ */ Result of the offramp request.
+ *
+ *
+ * .mistyswap_offramp.OfframpResult result = 1;
+ */
+ @java.lang.Override
+ public mistyswap.MistyswapOfframp.OfframpResult getResult() {
+ return instance.getResult();
+ }
+ /**
+ *
+ */ Result of the offramp request.
+ *
+ *
+ * .mistyswap_offramp.OfframpResult result = 1;
+ */
+ public Builder setResult(mistyswap.MistyswapOfframp.OfframpResult value) {
+ copyOnWrite();
+ instance.setResult(value);
+ return this;
+ }
+ /**
+ *
+ */ Result of the offramp request.
+ *
+ *
+ * .mistyswap_offramp.OfframpResult result = 1;
+ */
+ public Builder setResult(
+ mistyswap.MistyswapOfframp.OfframpResult.Builder builderForValue) {
+ copyOnWrite();
+ instance.setResult(builderForValue.build());
+ return this;
+ }
+ /**
+ *
+ */ Result of the offramp request.
+ *
+ *
+ * .mistyswap_offramp.OfframpResult result = 1;
+ */
+ public Builder mergeResult(mistyswap.MistyswapOfframp.OfframpResult value) {
+ copyOnWrite();
+ instance.mergeResult(value);
+ return this;
+ }
+ /**
+ *
+ */ Result of the offramp request.
+ *
+ *
+ * .mistyswap_offramp.OfframpResult result = 1;
+ */
+ public Builder clearResult() { copyOnWrite();
+ instance.clearResult();
+ return this;
+ }
+
+ // @@protoc_insertion_point(builder_scope:mistyswap_offramp.ForgetOfframpResponse)
+ }
+ @java.lang.Override
+ @java.lang.SuppressWarnings({"unchecked", "fallthrough"})
+ protected final java.lang.Object dynamicMethod(
+ com.google.protobuf.GeneratedMessageLite.MethodToInvoke method,
+ java.lang.Object arg0, java.lang.Object arg1) {
+ switch (method) {
+ case NEW_MUTABLE_INSTANCE: {
+ return new mistyswap.MistyswapOfframp.ForgetOfframpResponse();
+ }
+ case NEW_BUILDER: {
+ return new Builder();
+ }
+ case BUILD_MESSAGE_INFO: {
+ java.lang.Object[] objects = new java.lang.Object[] {
+ "result_",
+ };
+ java.lang.String info =
+ "\u0000\u0001\u0000\u0000\u0001\u0001\u0001\u0000\u0000\u0000\u0001\t";
+ return newMessageInfo(DEFAULT_INSTANCE, info, objects);
+ }
+ // fall through
+ case GET_DEFAULT_INSTANCE: {
+ return DEFAULT_INSTANCE;
+ }
+ case GET_PARSER: {
+ com.google.protobuf.Parser
+ */ The original offramp parameters.
+ *
+ *
+ * .mistyswap_offramp.OfframpParams params = 1;
+ * @return Whether the params field is set.
+ */
+ boolean hasParams();
+ /**
+ *
+ */ The original offramp parameters.
+ *
+ *
+ * .mistyswap_offramp.OfframpParams params = 1;
+ * @return The params.
+ */
+ mistyswap.MistyswapOfframp.OfframpParams getParams();
+
+ /**
+ *
+ */ Current state of the offramp.
+ *
+ *
+ * .mistyswap_offramp.OfframpState state = 2;
+ * @return The enum numeric value on the wire for state.
+ */
+ int getStateValue();
+ /**
+ *
+ */ Current state of the offramp.
+ *
+ *
+ * .mistyswap_offramp.OfframpState state = 2;
+ * @return The state.
+ */
+ mistyswap.MistyswapOfframp.OfframpState getState();
+
+ /**
+ *
+ */ String details, if any, about the current state.
+ *
+ *
+ * string state_details = 3;
+ * @return The stateDetails.
+ */
+ java.lang.String getStateDetails();
+ /**
+ *
+ */ String details, if any, about the current state.
+ *
+ *
+ * string state_details = 3;
+ * @return The bytes for stateDetails.
+ */
+ com.google.protobuf.ByteString
+ getStateDetailsBytes();
+
+ /**
+ *
+ */ The Mixin withdrawal address as a JSON blob (if available, empty string otherwise)
+ *
+ *
+ * string mixin_withdrawal_address_json = 4;
+ * @return The mixinWithdrawalAddressJson.
+ */
+ java.lang.String getMixinWithdrawalAddressJson();
+ /**
+ *
+ */ The Mixin withdrawal address as a JSON blob (if available, empty string otherwise)
+ *
+ *
+ * string mixin_withdrawal_address_json = 4;
+ * @return The bytes for mixinWithdrawalAddressJson.
+ */
+ com.google.protobuf.ByteString
+ getMixinWithdrawalAddressJsonBytes();
+
+ /**
+ *
+ */ Ongoing swap info, if any.
+ *
+ *
+ * .mistyswap_common.OngoingSwap ongoing_swap = 5;
+ * @return Whether the ongoingSwap field is set.
+ */
+ boolean hasOngoingSwap();
+ /**
+ *
+ */ Ongoing swap info, if any.
+ *
+ *
+ * .mistyswap_common.OngoingSwap ongoing_swap = 5;
+ * @return The ongoingSwap.
+ */
+ mistyswap.MistyswapCommon.OngoingSwap getOngoingSwap();
+
+ /**
+ *
+ */ Ongoing withdrawal info, if any. This is a Mixin snapshot JSON blob.
+ *
+ *
+ * string ongoing_withdrawal_json = 6;
+ * @return The ongoingWithdrawalJson.
+ */
+ java.lang.String getOngoingWithdrawalJson();
+ /**
+ *
+ */ Ongoing withdrawal info, if any. This is a Mixin snapshot JSON blob.
+ *
+ *
+ * string ongoing_withdrawal_json = 6;
+ * @return The bytes for ongoingWithdrawalJson.
+ */
+ com.google.protobuf.ByteString
+ getOngoingWithdrawalJsonBytes();
+
+ /**
+ *
+ */ Balances (map of Mixin asset UUID to balance as a decimal number).
+ *
+ *
+ * map<string, string> balances = 7;
+ */
+ int getBalancesCount();
+ /**
+ *
+ */ Balances (map of Mixin asset UUID to balance as a decimal number).
+ *
+ *
+ * map<string, string> balances = 7;
+ */
+ boolean containsBalances(
+ java.lang.String key);
+ /**
+ * Use {@link #getBalancesMap()} instead.
+ */
+ @java.lang.Deprecated
+ java.util.Map
+ */ Balances (map of Mixin asset UUID to balance as a decimal number).
+ *
+ *
+ * map<string, string> balances = 7;
+ */
+ java.util.Map
+ */ Balances (map of Mixin asset UUID to balance as a decimal number).
+ *
+ *
+ * map<string, string> balances = 7;
+ */
+
+ /* nullable */
+java.lang.String getBalancesOrDefault(
+ java.lang.String key,
+ /* nullable */
+java.lang.String defaultValue);
+ /**
+ *
+ */ Balances (map of Mixin asset UUID to balance as a decimal number).
+ *
+ *
+ * map<string, string> balances = 7;
+ */
+
+ java.lang.String getBalancesOrThrow(
+ java.lang.String key);
+ }
+ /**
+ *
+ */ Details about a previously-initiated offramp.
+ *
+ *
+ * Protobuf type {@code mistyswap_offramp.Offramp}
+ */
+ public static final class Offramp extends
+ com.google.protobuf.GeneratedMessageLite<
+ Offramp, Offramp.Builder> implements
+ // @@protoc_insertion_point(message_implements:mistyswap_offramp.Offramp)
+ OfframpOrBuilder {
+ private Offramp() {
+ stateDetails_ = "";
+ mixinWithdrawalAddressJson_ = "";
+ ongoingWithdrawalJson_ = "";
+ }
+ public static final int PARAMS_FIELD_NUMBER = 1;
+ private mistyswap.MistyswapOfframp.OfframpParams params_;
+ /**
+ *
+ */ The original offramp parameters.
+ *
+ *
+ * .mistyswap_offramp.OfframpParams params = 1;
+ */
+ @java.lang.Override
+ public boolean hasParams() {
+ return params_ != null;
+ }
+ /**
+ *
+ */ The original offramp parameters.
+ *
+ *
+ * .mistyswap_offramp.OfframpParams params = 1;
+ */
+ @java.lang.Override
+ public mistyswap.MistyswapOfframp.OfframpParams getParams() {
+ return params_ == null ? mistyswap.MistyswapOfframp.OfframpParams.getDefaultInstance() : params_;
+ }
+ /**
+ *
+ */ The original offramp parameters.
+ *
+ *
+ * .mistyswap_offramp.OfframpParams params = 1;
+ */
+ private void setParams(mistyswap.MistyswapOfframp.OfframpParams value) {
+ value.getClass();
+ params_ = value;
+
+ }
+ /**
+ *
+ */ The original offramp parameters.
+ *
+ *
+ * .mistyswap_offramp.OfframpParams params = 1;
+ */
+ @java.lang.SuppressWarnings({"ReferenceEquality"})
+ private void mergeParams(mistyswap.MistyswapOfframp.OfframpParams value) {
+ value.getClass();
+ if (params_ != null &&
+ params_ != mistyswap.MistyswapOfframp.OfframpParams.getDefaultInstance()) {
+ params_ =
+ mistyswap.MistyswapOfframp.OfframpParams.newBuilder(params_).mergeFrom(value).buildPartial();
+ } else {
+ params_ = value;
+ }
+
+ }
+ /**
+ *
+ */ The original offramp parameters.
+ *
+ *
+ * .mistyswap_offramp.OfframpParams params = 1;
+ */
+ private void clearParams() { params_ = null;
+
+ }
+
+ public static final int STATE_FIELD_NUMBER = 2;
+ private int state_;
+ /**
+ *
+ */ Current state of the offramp.
+ *
+ *
+ * .mistyswap_offramp.OfframpState state = 2;
+ * @return The enum numeric value on the wire for state.
+ */
+ @java.lang.Override
+ public int getStateValue() {
+ return state_;
+ }
+ /**
+ *
+ */ Current state of the offramp.
+ *
+ *
+ * .mistyswap_offramp.OfframpState state = 2;
+ * @return The state.
+ */
+ @java.lang.Override
+ public mistyswap.MistyswapOfframp.OfframpState getState() {
+ mistyswap.MistyswapOfframp.OfframpState result = mistyswap.MistyswapOfframp.OfframpState.forNumber(state_);
+ return result == null ? mistyswap.MistyswapOfframp.OfframpState.UNRECOGNIZED : result;
+ }
+ /**
+ *
+ */ Current state of the offramp.
+ *
+ *
+ * .mistyswap_offramp.OfframpState state = 2;
+ * @param value The enum numeric value on the wire for state to set.
+ */
+ private void setStateValue(int value) {
+ state_ = value;
+ }
+ /**
+ *
+ */ Current state of the offramp.
+ *
+ *
+ * .mistyswap_offramp.OfframpState state = 2;
+ * @param value The state to set.
+ */
+ private void setState(mistyswap.MistyswapOfframp.OfframpState value) {
+ state_ = value.getNumber();
+
+ }
+ /**
+ *
+ */ Current state of the offramp.
+ *
+ *
+ * .mistyswap_offramp.OfframpState state = 2;
+ */
+ private void clearState() {
+
+ state_ = 0;
+ }
+
+ public static final int STATE_DETAILS_FIELD_NUMBER = 3;
+ private java.lang.String stateDetails_;
+ /**
+ *
+ */ String details, if any, about the current state.
+ *
+ *
+ * string state_details = 3;
+ * @return The stateDetails.
+ */
+ @java.lang.Override
+ public java.lang.String getStateDetails() {
+ return stateDetails_;
+ }
+ /**
+ *
+ */ String details, if any, about the current state.
+ *
+ *
+ * string state_details = 3;
+ * @return The bytes for stateDetails.
+ */
+ @java.lang.Override
+ public com.google.protobuf.ByteString
+ getStateDetailsBytes() {
+ return com.google.protobuf.ByteString.copyFromUtf8(stateDetails_);
+ }
+ /**
+ *
+ */ String details, if any, about the current state.
+ *
+ *
+ * string state_details = 3;
+ * @param value The stateDetails to set.
+ */
+ private void setStateDetails(
+ java.lang.String value) {
+ java.lang.Class> valueClass = value.getClass();
+
+ stateDetails_ = value;
+ }
+ /**
+ *
+ */ String details, if any, about the current state.
+ *
+ *
+ * string state_details = 3;
+ */
+ private void clearStateDetails() {
+
+ stateDetails_ = getDefaultInstance().getStateDetails();
+ }
+ /**
+ *
+ */ String details, if any, about the current state.
+ *
+ *
+ * string state_details = 3;
+ * @param value The bytes for stateDetails to set.
+ */
+ private void setStateDetailsBytes(
+ com.google.protobuf.ByteString value) {
+ checkByteStringIsUtf8(value);
+ stateDetails_ = value.toStringUtf8();
+
+ }
+
+ public static final int MIXIN_WITHDRAWAL_ADDRESS_JSON_FIELD_NUMBER = 4;
+ private java.lang.String mixinWithdrawalAddressJson_;
+ /**
+ *
+ */ The Mixin withdrawal address as a JSON blob (if available, empty string otherwise)
+ *
+ *
+ * string mixin_withdrawal_address_json = 4;
+ * @return The mixinWithdrawalAddressJson.
+ */
+ @java.lang.Override
+ public java.lang.String getMixinWithdrawalAddressJson() {
+ return mixinWithdrawalAddressJson_;
+ }
+ /**
+ *
+ */ The Mixin withdrawal address as a JSON blob (if available, empty string otherwise)
+ *
+ *
+ * string mixin_withdrawal_address_json = 4;
+ * @return The bytes for mixinWithdrawalAddressJson.
+ */
+ @java.lang.Override
+ public com.google.protobuf.ByteString
+ getMixinWithdrawalAddressJsonBytes() {
+ return com.google.protobuf.ByteString.copyFromUtf8(mixinWithdrawalAddressJson_);
+ }
+ /**
+ *
+ */ The Mixin withdrawal address as a JSON blob (if available, empty string otherwise)
+ *
+ *
+ * string mixin_withdrawal_address_json = 4;
+ * @param value The mixinWithdrawalAddressJson to set.
+ */
+ private void setMixinWithdrawalAddressJson(
+ java.lang.String value) {
+ java.lang.Class> valueClass = value.getClass();
+
+ mixinWithdrawalAddressJson_ = value;
+ }
+ /**
+ *
+ */ The Mixin withdrawal address as a JSON blob (if available, empty string otherwise)
+ *
+ *
+ * string mixin_withdrawal_address_json = 4;
+ */
+ private void clearMixinWithdrawalAddressJson() {
+
+ mixinWithdrawalAddressJson_ = getDefaultInstance().getMixinWithdrawalAddressJson();
+ }
+ /**
+ *
+ */ The Mixin withdrawal address as a JSON blob (if available, empty string otherwise)
+ *
+ *
+ * string mixin_withdrawal_address_json = 4;
+ * @param value The bytes for mixinWithdrawalAddressJson to set.
+ */
+ private void setMixinWithdrawalAddressJsonBytes(
+ com.google.protobuf.ByteString value) {
+ checkByteStringIsUtf8(value);
+ mixinWithdrawalAddressJson_ = value.toStringUtf8();
+
+ }
+
+ public static final int ONGOING_SWAP_FIELD_NUMBER = 5;
+ private mistyswap.MistyswapCommon.OngoingSwap ongoingSwap_;
+ /**
+ *
+ */ Ongoing swap info, if any.
+ *
+ *
+ * .mistyswap_common.OngoingSwap ongoing_swap = 5;
+ */
+ @java.lang.Override
+ public boolean hasOngoingSwap() {
+ return ongoingSwap_ != null;
+ }
+ /**
+ *
+ */ Ongoing swap info, if any.
+ *
+ *
+ * .mistyswap_common.OngoingSwap ongoing_swap = 5;
+ */
+ @java.lang.Override
+ public mistyswap.MistyswapCommon.OngoingSwap getOngoingSwap() {
+ return ongoingSwap_ == null ? mistyswap.MistyswapCommon.OngoingSwap.getDefaultInstance() : ongoingSwap_;
+ }
+ /**
+ *
+ */ Ongoing swap info, if any.
+ *
+ *
+ * .mistyswap_common.OngoingSwap ongoing_swap = 5;
+ */
+ private void setOngoingSwap(mistyswap.MistyswapCommon.OngoingSwap value) {
+ value.getClass();
+ ongoingSwap_ = value;
+
+ }
+ /**
+ *
+ */ Ongoing swap info, if any.
+ *
+ *
+ * .mistyswap_common.OngoingSwap ongoing_swap = 5;
+ */
+ @java.lang.SuppressWarnings({"ReferenceEquality"})
+ private void mergeOngoingSwap(mistyswap.MistyswapCommon.OngoingSwap value) {
+ value.getClass();
+ if (ongoingSwap_ != null &&
+ ongoingSwap_ != mistyswap.MistyswapCommon.OngoingSwap.getDefaultInstance()) {
+ ongoingSwap_ =
+ mistyswap.MistyswapCommon.OngoingSwap.newBuilder(ongoingSwap_).mergeFrom(value).buildPartial();
+ } else {
+ ongoingSwap_ = value;
+ }
+
+ }
+ /**
+ *
+ */ Ongoing swap info, if any.
+ *
+ *
+ * .mistyswap_common.OngoingSwap ongoing_swap = 5;
+ */
+ private void clearOngoingSwap() { ongoingSwap_ = null;
+
+ }
+
+ public static final int ONGOING_WITHDRAWAL_JSON_FIELD_NUMBER = 6;
+ private java.lang.String ongoingWithdrawalJson_;
+ /**
+ *
+ */ Ongoing withdrawal info, if any. This is a Mixin snapshot JSON blob.
+ *
+ *
+ * string ongoing_withdrawal_json = 6;
+ * @return The ongoingWithdrawalJson.
+ */
+ @java.lang.Override
+ public java.lang.String getOngoingWithdrawalJson() {
+ return ongoingWithdrawalJson_;
+ }
+ /**
+ *
+ */ Ongoing withdrawal info, if any. This is a Mixin snapshot JSON blob.
+ *
+ *
+ * string ongoing_withdrawal_json = 6;
+ * @return The bytes for ongoingWithdrawalJson.
+ */
+ @java.lang.Override
+ public com.google.protobuf.ByteString
+ getOngoingWithdrawalJsonBytes() {
+ return com.google.protobuf.ByteString.copyFromUtf8(ongoingWithdrawalJson_);
+ }
+ /**
+ *
+ */ Ongoing withdrawal info, if any. This is a Mixin snapshot JSON blob.
+ *
+ *
+ * string ongoing_withdrawal_json = 6;
+ * @param value The ongoingWithdrawalJson to set.
+ */
+ private void setOngoingWithdrawalJson(
+ java.lang.String value) {
+ java.lang.Class> valueClass = value.getClass();
+
+ ongoingWithdrawalJson_ = value;
+ }
+ /**
+ *
+ */ Ongoing withdrawal info, if any. This is a Mixin snapshot JSON blob.
+ *
+ *
+ * string ongoing_withdrawal_json = 6;
+ */
+ private void clearOngoingWithdrawalJson() {
+
+ ongoingWithdrawalJson_ = getDefaultInstance().getOngoingWithdrawalJson();
+ }
+ /**
+ *
+ */ Ongoing withdrawal info, if any. This is a Mixin snapshot JSON blob.
+ *
+ *
+ * string ongoing_withdrawal_json = 6;
+ * @param value The bytes for ongoingWithdrawalJson to set.
+ */
+ private void setOngoingWithdrawalJsonBytes(
+ com.google.protobuf.ByteString value) {
+ checkByteStringIsUtf8(value);
+ ongoingWithdrawalJson_ = value.toStringUtf8();
+
+ }
+
+ public static final int BALANCES_FIELD_NUMBER = 7;
+ private static final class BalancesDefaultEntryHolder {
+ static final com.google.protobuf.MapEntryLite<
+ java.lang.String, java.lang.String> defaultEntry =
+ com.google.protobuf.MapEntryLite
+ .
+ */ Balances (map of Mixin asset UUID to balance as a decimal number).
+ *
+ *
+ * map<string, string> balances = 7;
+ */
+ @java.lang.Override
+
+ public boolean containsBalances(
+ java.lang.String key) {
+ java.lang.Class> keyClass = key.getClass();
+ return internalGetBalances().containsKey(key);
+ }
+ /**
+ * Use {@link #getBalancesMap()} instead.
+ */
+ @java.lang.Override
+ @java.lang.Deprecated
+ public java.util.Map
+ */ Balances (map of Mixin asset UUID to balance as a decimal number).
+ *
+ *
+ * map<string, string> balances = 7;
+ */
+ @java.lang.Override
+
+ public java.util.Map
+ */ Balances (map of Mixin asset UUID to balance as a decimal number).
+ *
+ *
+ * map<string, string> balances = 7;
+ */
+ @java.lang.Override
+
+ public /* nullable */
+java.lang.String getBalancesOrDefault(
+ java.lang.String key,
+ /* nullable */
+java.lang.String defaultValue) {
+ java.lang.Class> keyClass = key.getClass();
+ java.util.Map
+ */ Balances (map of Mixin asset UUID to balance as a decimal number).
+ *
+ *
+ * map<string, string> balances = 7;
+ */
+ @java.lang.Override
+
+ public java.lang.String getBalancesOrThrow(
+ java.lang.String key) {
+ java.lang.Class> keyClass = key.getClass();
+ java.util.Map
+ */ Balances (map of Mixin asset UUID to balance as a decimal number).
+ *
+ *
+ * map<string, string> balances = 7;
+ */
+ private java.util.Map
+ */ Details about a previously-initiated offramp.
+ *
+ *
+ * Protobuf type {@code mistyswap_offramp.Offramp}
+ */
+ public static final class Builder extends
+ com.google.protobuf.GeneratedMessageLite.Builder<
+ mistyswap.MistyswapOfframp.Offramp, Builder> implements
+ // @@protoc_insertion_point(builder_implements:mistyswap_offramp.Offramp)
+ mistyswap.MistyswapOfframp.OfframpOrBuilder {
+ // Construct using mistyswap.MistyswapOfframp.Offramp.newBuilder()
+ private Builder() {
+ super(DEFAULT_INSTANCE);
+ }
+
+
+ /**
+ *
+ */ The original offramp parameters.
+ *
+ *
+ * .mistyswap_offramp.OfframpParams params = 1;
+ */
+ @java.lang.Override
+ public boolean hasParams() {
+ return instance.hasParams();
+ }
+ /**
+ *
+ */ The original offramp parameters.
+ *
+ *
+ * .mistyswap_offramp.OfframpParams params = 1;
+ */
+ @java.lang.Override
+ public mistyswap.MistyswapOfframp.OfframpParams getParams() {
+ return instance.getParams();
+ }
+ /**
+ *
+ */ The original offramp parameters.
+ *
+ *
+ * .mistyswap_offramp.OfframpParams params = 1;
+ */
+ public Builder setParams(mistyswap.MistyswapOfframp.OfframpParams value) {
+ copyOnWrite();
+ instance.setParams(value);
+ return this;
+ }
+ /**
+ *
+ */ The original offramp parameters.
+ *
+ *
+ * .mistyswap_offramp.OfframpParams params = 1;
+ */
+ public Builder setParams(
+ mistyswap.MistyswapOfframp.OfframpParams.Builder builderForValue) {
+ copyOnWrite();
+ instance.setParams(builderForValue.build());
+ return this;
+ }
+ /**
+ *
+ */ The original offramp parameters.
+ *
+ *
+ * .mistyswap_offramp.OfframpParams params = 1;
+ */
+ public Builder mergeParams(mistyswap.MistyswapOfframp.OfframpParams value) {
+ copyOnWrite();
+ instance.mergeParams(value);
+ return this;
+ }
+ /**
+ *
+ */ The original offramp parameters.
+ *
+ *
+ * .mistyswap_offramp.OfframpParams params = 1;
+ */
+ public Builder clearParams() { copyOnWrite();
+ instance.clearParams();
+ return this;
+ }
+
+ /**
+ *
+ */ Current state of the offramp.
+ *
+ *
+ * .mistyswap_offramp.OfframpState state = 2;
+ * @return The enum numeric value on the wire for state.
+ */
+ @java.lang.Override
+ public int getStateValue() {
+ return instance.getStateValue();
+ }
+ /**
+ *
+ */ Current state of the offramp.
+ *
+ *
+ * .mistyswap_offramp.OfframpState state = 2;
+ * @param value The state to set.
+ * @return This builder for chaining.
+ */
+ public Builder setStateValue(int value) {
+ copyOnWrite();
+ instance.setStateValue(value);
+ return this;
+ }
+ /**
+ *
+ */ Current state of the offramp.
+ *
+ *
+ * .mistyswap_offramp.OfframpState state = 2;
+ * @return The state.
+ */
+ @java.lang.Override
+ public mistyswap.MistyswapOfframp.OfframpState getState() {
+ return instance.getState();
+ }
+ /**
+ *
+ */ Current state of the offramp.
+ *
+ *
+ * .mistyswap_offramp.OfframpState state = 2;
+ * @param value The enum numeric value on the wire for state to set.
+ * @return This builder for chaining.
+ */
+ public Builder setState(mistyswap.MistyswapOfframp.OfframpState value) {
+ copyOnWrite();
+ instance.setState(value);
+ return this;
+ }
+ /**
+ *
+ */ Current state of the offramp.
+ *
+ *
+ * .mistyswap_offramp.OfframpState state = 2;
+ * @return This builder for chaining.
+ */
+ public Builder clearState() {
+ copyOnWrite();
+ instance.clearState();
+ return this;
+ }
+
+ /**
+ *
+ */ String details, if any, about the current state.
+ *
+ *
+ * string state_details = 3;
+ * @return The stateDetails.
+ */
+ @java.lang.Override
+ public java.lang.String getStateDetails() {
+ return instance.getStateDetails();
+ }
+ /**
+ *
+ */ String details, if any, about the current state.
+ *
+ *
+ * string state_details = 3;
+ * @return The bytes for stateDetails.
+ */
+ @java.lang.Override
+ public com.google.protobuf.ByteString
+ getStateDetailsBytes() {
+ return instance.getStateDetailsBytes();
+ }
+ /**
+ *
+ */ String details, if any, about the current state.
+ *
+ *
+ * string state_details = 3;
+ * @param value The stateDetails to set.
+ * @return This builder for chaining.
+ */
+ public Builder setStateDetails(
+ java.lang.String value) {
+ copyOnWrite();
+ instance.setStateDetails(value);
+ return this;
+ }
+ /**
+ *
+ */ String details, if any, about the current state.
+ *
+ *
+ * string state_details = 3;
+ * @return This builder for chaining.
+ */
+ public Builder clearStateDetails() {
+ copyOnWrite();
+ instance.clearStateDetails();
+ return this;
+ }
+ /**
+ *
+ */ String details, if any, about the current state.
+ *
+ *
+ * string state_details = 3;
+ * @param value The bytes for stateDetails to set.
+ * @return This builder for chaining.
+ */
+ public Builder setStateDetailsBytes(
+ com.google.protobuf.ByteString value) {
+ copyOnWrite();
+ instance.setStateDetailsBytes(value);
+ return this;
+ }
+
+ /**
+ *
+ */ The Mixin withdrawal address as a JSON blob (if available, empty string otherwise)
+ *
+ *
+ * string mixin_withdrawal_address_json = 4;
+ * @return The mixinWithdrawalAddressJson.
+ */
+ @java.lang.Override
+ public java.lang.String getMixinWithdrawalAddressJson() {
+ return instance.getMixinWithdrawalAddressJson();
+ }
+ /**
+ *
+ */ The Mixin withdrawal address as a JSON blob (if available, empty string otherwise)
+ *
+ *
+ * string mixin_withdrawal_address_json = 4;
+ * @return The bytes for mixinWithdrawalAddressJson.
+ */
+ @java.lang.Override
+ public com.google.protobuf.ByteString
+ getMixinWithdrawalAddressJsonBytes() {
+ return instance.getMixinWithdrawalAddressJsonBytes();
+ }
+ /**
+ *
+ */ The Mixin withdrawal address as a JSON blob (if available, empty string otherwise)
+ *
+ *
+ * string mixin_withdrawal_address_json = 4;
+ * @param value The mixinWithdrawalAddressJson to set.
+ * @return This builder for chaining.
+ */
+ public Builder setMixinWithdrawalAddressJson(
+ java.lang.String value) {
+ copyOnWrite();
+ instance.setMixinWithdrawalAddressJson(value);
+ return this;
+ }
+ /**
+ *
+ */ The Mixin withdrawal address as a JSON blob (if available, empty string otherwise)
+ *
+ *
+ * string mixin_withdrawal_address_json = 4;
+ * @return This builder for chaining.
+ */
+ public Builder clearMixinWithdrawalAddressJson() {
+ copyOnWrite();
+ instance.clearMixinWithdrawalAddressJson();
+ return this;
+ }
+ /**
+ *
+ */ The Mixin withdrawal address as a JSON blob (if available, empty string otherwise)
+ *
+ *
+ * string mixin_withdrawal_address_json = 4;
+ * @param value The bytes for mixinWithdrawalAddressJson to set.
+ * @return This builder for chaining.
+ */
+ public Builder setMixinWithdrawalAddressJsonBytes(
+ com.google.protobuf.ByteString value) {
+ copyOnWrite();
+ instance.setMixinWithdrawalAddressJsonBytes(value);
+ return this;
+ }
+
+ /**
+ *
+ */ Ongoing swap info, if any.
+ *
+ *
+ * .mistyswap_common.OngoingSwap ongoing_swap = 5;
+ */
+ @java.lang.Override
+ public boolean hasOngoingSwap() {
+ return instance.hasOngoingSwap();
+ }
+ /**
+ *
+ */ Ongoing swap info, if any.
+ *
+ *
+ * .mistyswap_common.OngoingSwap ongoing_swap = 5;
+ */
+ @java.lang.Override
+ public mistyswap.MistyswapCommon.OngoingSwap getOngoingSwap() {
+ return instance.getOngoingSwap();
+ }
+ /**
+ *
+ */ Ongoing swap info, if any.
+ *
+ *
+ * .mistyswap_common.OngoingSwap ongoing_swap = 5;
+ */
+ public Builder setOngoingSwap(mistyswap.MistyswapCommon.OngoingSwap value) {
+ copyOnWrite();
+ instance.setOngoingSwap(value);
+ return this;
+ }
+ /**
+ *
+ */ Ongoing swap info, if any.
+ *
+ *
+ * .mistyswap_common.OngoingSwap ongoing_swap = 5;
+ */
+ public Builder setOngoingSwap(
+ mistyswap.MistyswapCommon.OngoingSwap.Builder builderForValue) {
+ copyOnWrite();
+ instance.setOngoingSwap(builderForValue.build());
+ return this;
+ }
+ /**
+ *
+ */ Ongoing swap info, if any.
+ *
+ *
+ * .mistyswap_common.OngoingSwap ongoing_swap = 5;
+ */
+ public Builder mergeOngoingSwap(mistyswap.MistyswapCommon.OngoingSwap value) {
+ copyOnWrite();
+ instance.mergeOngoingSwap(value);
+ return this;
+ }
+ /**
+ *
+ */ Ongoing swap info, if any.
+ *
+ *
+ * .mistyswap_common.OngoingSwap ongoing_swap = 5;
+ */
+ public Builder clearOngoingSwap() { copyOnWrite();
+ instance.clearOngoingSwap();
+ return this;
+ }
+
+ /**
+ *
+ */ Ongoing withdrawal info, if any. This is a Mixin snapshot JSON blob.
+ *
+ *
+ * string ongoing_withdrawal_json = 6;
+ * @return The ongoingWithdrawalJson.
+ */
+ @java.lang.Override
+ public java.lang.String getOngoingWithdrawalJson() {
+ return instance.getOngoingWithdrawalJson();
+ }
+ /**
+ *
+ */ Ongoing withdrawal info, if any. This is a Mixin snapshot JSON blob.
+ *
+ *
+ * string ongoing_withdrawal_json = 6;
+ * @return The bytes for ongoingWithdrawalJson.
+ */
+ @java.lang.Override
+ public com.google.protobuf.ByteString
+ getOngoingWithdrawalJsonBytes() {
+ return instance.getOngoingWithdrawalJsonBytes();
+ }
+ /**
+ *
+ */ Ongoing withdrawal info, if any. This is a Mixin snapshot JSON blob.
+ *
+ *
+ * string ongoing_withdrawal_json = 6;
+ * @param value The ongoingWithdrawalJson to set.
+ * @return This builder for chaining.
+ */
+ public Builder setOngoingWithdrawalJson(
+ java.lang.String value) {
+ copyOnWrite();
+ instance.setOngoingWithdrawalJson(value);
+ return this;
+ }
+ /**
+ *
+ */ Ongoing withdrawal info, if any. This is a Mixin snapshot JSON blob.
+ *
+ *
+ * string ongoing_withdrawal_json = 6;
+ * @return This builder for chaining.
+ */
+ public Builder clearOngoingWithdrawalJson() {
+ copyOnWrite();
+ instance.clearOngoingWithdrawalJson();
+ return this;
+ }
+ /**
+ *
+ */ Ongoing withdrawal info, if any. This is a Mixin snapshot JSON blob.
+ *
+ *
+ * string ongoing_withdrawal_json = 6;
+ * @param value The bytes for ongoingWithdrawalJson to set.
+ * @return This builder for chaining.
+ */
+ public Builder setOngoingWithdrawalJsonBytes(
+ com.google.protobuf.ByteString value) {
+ copyOnWrite();
+ instance.setOngoingWithdrawalJsonBytes(value);
+ return this;
+ }
+
+ @java.lang.Override
+
+ public int getBalancesCount() {
+ return instance.getBalancesMap().size();
+ }
+ /**
+ *
+ */ Balances (map of Mixin asset UUID to balance as a decimal number).
+ *
+ *
+ * map<string, string> balances = 7;
+ */
+ @java.lang.Override
+
+ public boolean containsBalances(
+ java.lang.String key) {
+ java.lang.Class> keyClass = key.getClass();
+ return instance.getBalancesMap().containsKey(key);
+ }
+
+ public Builder clearBalances() {
+ copyOnWrite();
+ instance.getMutableBalancesMap().clear();
+ return this;
+ }
+ /**
+ *
+ */ Balances (map of Mixin asset UUID to balance as a decimal number).
+ *
+ *
+ * map<string, string> balances = 7;
+ */
+
+ public Builder removeBalances(
+ java.lang.String key) {
+ java.lang.Class> keyClass = key.getClass();
+ copyOnWrite();
+ instance.getMutableBalancesMap().remove(key);
+ return this;
+ }
+ /**
+ * Use {@link #getBalancesMap()} instead.
+ */
+ @java.lang.Override
+ @java.lang.Deprecated
+ public java.util.Map
+ */ Balances (map of Mixin asset UUID to balance as a decimal number).
+ *
+ *
+ * map<string, string> balances = 7;
+ */
+ @java.lang.Override
+ public java.util.Map
+ */ Balances (map of Mixin asset UUID to balance as a decimal number).
+ *
+ *
+ * map<string, string> balances = 7;
+ */
+ @java.lang.Override
+
+ public /* nullable */
+java.lang.String getBalancesOrDefault(
+ java.lang.String key,
+ /* nullable */
+java.lang.String defaultValue) {
+ java.lang.Class> keyClass = key.getClass();
+ java.util.Map
+ */ Balances (map of Mixin asset UUID to balance as a decimal number).
+ *
+ *
+ * map<string, string> balances = 7;
+ */
+ @java.lang.Override
+
+ public java.lang.String getBalancesOrThrow(
+ java.lang.String key) {
+ java.lang.Class> keyClass = key.getClass();
+ java.util.Map
+ */ Balances (map of Mixin asset UUID to balance as a decimal number).
+ *
+ *
+ * map<string, string> balances = 7;
+ */
+ public Builder putBalances(
+ java.lang.String key,
+ java.lang.String value) {
+ java.lang.Class> keyClass = key.getClass();
+ java.lang.Class> valueClass = value.getClass();
+ copyOnWrite();
+ instance.getMutableBalancesMap().put(key, value);
+ return this;
+ }
+ /**
+ *
+ */ Balances (map of Mixin asset UUID to balance as a decimal number).
+ *
+ *
+ * map<string, string> balances = 7;
+ */
+ public Builder putAllBalances(
+ java.util.Map
+ */ Unique ID of the offramp to get the status of.
+ *
+ *
+ * bytes offramp_id = 1;
+ * @return The offrampId.
+ */
+ com.google.protobuf.ByteString getOfframpId();
+ }
+ /**
+ *
+ */ Get the status of an offramp.
+ *
+ *
+ * Protobuf type {@code mistyswap_offramp.GetOfframpStatusRequest}
+ */
+ public static final class GetOfframpStatusRequest extends
+ com.google.protobuf.GeneratedMessageLite<
+ GetOfframpStatusRequest, GetOfframpStatusRequest.Builder> implements
+ // @@protoc_insertion_point(message_implements:mistyswap_offramp.GetOfframpStatusRequest)
+ GetOfframpStatusRequestOrBuilder {
+ private GetOfframpStatusRequest() {
+ offrampId_ = com.google.protobuf.ByteString.EMPTY;
+ }
+ public static final int OFFRAMP_ID_FIELD_NUMBER = 1;
+ private com.google.protobuf.ByteString offrampId_;
+ /**
+ *
+ */ Unique ID of the offramp to get the status of.
+ *
+ *
+ * bytes offramp_id = 1;
+ * @return The offrampId.
+ */
+ @java.lang.Override
+ public com.google.protobuf.ByteString getOfframpId() {
+ return offrampId_;
+ }
+ /**
+ *
+ */ Unique ID of the offramp to get the status of.
+ *
+ *
+ * bytes offramp_id = 1;
+ * @param value The offrampId to set.
+ */
+ private void setOfframpId(com.google.protobuf.ByteString value) {
+ java.lang.Class> valueClass = value.getClass();
+
+ offrampId_ = value;
+ }
+ /**
+ *
+ */ Unique ID of the offramp to get the status of.
+ *
+ *
+ * bytes offramp_id = 1;
+ */
+ private void clearOfframpId() {
+
+ offrampId_ = getDefaultInstance().getOfframpId();
+ }
+
+ public static mistyswap.MistyswapOfframp.GetOfframpStatusRequest parseFrom(
+ java.nio.ByteBuffer data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return com.google.protobuf.GeneratedMessageLite.parseFrom(
+ DEFAULT_INSTANCE, data);
+ }
+ public static mistyswap.MistyswapOfframp.GetOfframpStatusRequest parseFrom(
+ java.nio.ByteBuffer data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return com.google.protobuf.GeneratedMessageLite.parseFrom(
+ DEFAULT_INSTANCE, data, extensionRegistry);
+ }
+ public static mistyswap.MistyswapOfframp.GetOfframpStatusRequest parseFrom(
+ com.google.protobuf.ByteString data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return com.google.protobuf.GeneratedMessageLite.parseFrom(
+ DEFAULT_INSTANCE, data);
+ }
+ public static mistyswap.MistyswapOfframp.GetOfframpStatusRequest parseFrom(
+ com.google.protobuf.ByteString data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return com.google.protobuf.GeneratedMessageLite.parseFrom(
+ DEFAULT_INSTANCE, data, extensionRegistry);
+ }
+ public static mistyswap.MistyswapOfframp.GetOfframpStatusRequest parseFrom(byte[] data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return com.google.protobuf.GeneratedMessageLite.parseFrom(
+ DEFAULT_INSTANCE, data);
+ }
+ public static mistyswap.MistyswapOfframp.GetOfframpStatusRequest parseFrom(
+ byte[] data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return com.google.protobuf.GeneratedMessageLite.parseFrom(
+ DEFAULT_INSTANCE, data, extensionRegistry);
+ }
+ public static mistyswap.MistyswapOfframp.GetOfframpStatusRequest parseFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageLite.parseFrom(
+ DEFAULT_INSTANCE, input);
+ }
+ public static mistyswap.MistyswapOfframp.GetOfframpStatusRequest parseFrom(
+ java.io.InputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageLite.parseFrom(
+ DEFAULT_INSTANCE, input, extensionRegistry);
+ }
+ public static mistyswap.MistyswapOfframp.GetOfframpStatusRequest parseDelimitedFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return parseDelimitedFrom(DEFAULT_INSTANCE, input);
+ }
+ public static mistyswap.MistyswapOfframp.GetOfframpStatusRequest parseDelimitedFrom(
+ java.io.InputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return parseDelimitedFrom(DEFAULT_INSTANCE, input, extensionRegistry);
+ }
+ public static mistyswap.MistyswapOfframp.GetOfframpStatusRequest parseFrom(
+ com.google.protobuf.CodedInputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageLite.parseFrom(
+ DEFAULT_INSTANCE, input);
+ }
+ public static mistyswap.MistyswapOfframp.GetOfframpStatusRequest parseFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageLite.parseFrom(
+ DEFAULT_INSTANCE, input, extensionRegistry);
+ }
+
+ public static Builder newBuilder() {
+ return (Builder) DEFAULT_INSTANCE.createBuilder();
+ }
+ public static Builder newBuilder(mistyswap.MistyswapOfframp.GetOfframpStatusRequest prototype) {
+ return (Builder) DEFAULT_INSTANCE.createBuilder(prototype);
+ }
+
+ /**
+ *
+ */ Get the status of an offramp.
+ *
+ *
+ * Protobuf type {@code mistyswap_offramp.GetOfframpStatusRequest}
+ */
+ public static final class Builder extends
+ com.google.protobuf.GeneratedMessageLite.Builder<
+ mistyswap.MistyswapOfframp.GetOfframpStatusRequest, Builder> implements
+ // @@protoc_insertion_point(builder_implements:mistyswap_offramp.GetOfframpStatusRequest)
+ mistyswap.MistyswapOfframp.GetOfframpStatusRequestOrBuilder {
+ // Construct using mistyswap.MistyswapOfframp.GetOfframpStatusRequest.newBuilder()
+ private Builder() {
+ super(DEFAULT_INSTANCE);
+ }
+
+
+ /**
+ *
+ */ Unique ID of the offramp to get the status of.
+ *
+ *
+ * bytes offramp_id = 1;
+ * @return The offrampId.
+ */
+ @java.lang.Override
+ public com.google.protobuf.ByteString getOfframpId() {
+ return instance.getOfframpId();
+ }
+ /**
+ *
+ */ Unique ID of the offramp to get the status of.
+ *
+ *
+ * bytes offramp_id = 1;
+ * @param value The offrampId to set.
+ * @return This builder for chaining.
+ */
+ public Builder setOfframpId(com.google.protobuf.ByteString value) {
+ copyOnWrite();
+ instance.setOfframpId(value);
+ return this;
+ }
+ /**
+ *
+ */ Unique ID of the offramp to get the status of.
+ *
+ *
+ * bytes offramp_id = 1;
+ * @return This builder for chaining.
+ */
+ public Builder clearOfframpId() {
+ copyOnWrite();
+ instance.clearOfframpId();
+ return this;
+ }
+
+ // @@protoc_insertion_point(builder_scope:mistyswap_offramp.GetOfframpStatusRequest)
+ }
+ @java.lang.Override
+ @java.lang.SuppressWarnings({"unchecked", "fallthrough"})
+ protected final java.lang.Object dynamicMethod(
+ com.google.protobuf.GeneratedMessageLite.MethodToInvoke method,
+ java.lang.Object arg0, java.lang.Object arg1) {
+ switch (method) {
+ case NEW_MUTABLE_INSTANCE: {
+ return new mistyswap.MistyswapOfframp.GetOfframpStatusRequest();
+ }
+ case NEW_BUILDER: {
+ return new Builder();
+ }
+ case BUILD_MESSAGE_INFO: {
+ java.lang.Object[] objects = new java.lang.Object[] {
+ "offrampId_",
+ };
+ java.lang.String info =
+ "\u0000\u0001\u0000\u0000\u0001\u0001\u0001\u0000\u0000\u0000\u0001\n";
+ return newMessageInfo(DEFAULT_INSTANCE, info, objects);
+ }
+ // fall through
+ case GET_DEFAULT_INSTANCE: {
+ return DEFAULT_INSTANCE;
+ }
+ case GET_PARSER: {
+ com.google.protobuf.Parser
+ */ Result of the offramp request.
+ *
+ *
+ * .mistyswap_offramp.OfframpResult result = 1;
+ * @return Whether the result field is set.
+ */
+ boolean hasResult();
+ /**
+ *
+ */ Result of the offramp request.
+ *
+ *
+ * .mistyswap_offramp.OfframpResult result = 1;
+ * @return The result.
+ */
+ mistyswap.MistyswapOfframp.OfframpResult getResult();
+
+ /**
+ *
+ */ The offramp status, if the result code is Ok.
+ *
+ *
+ * .mistyswap_offramp.Offramp offramp = 2;
+ * @return Whether the offramp field is set.
+ */
+ boolean hasOfframp();
+ /**
+ *
+ */ The offramp status, if the result code is Ok.
+ *
+ *
+ * .mistyswap_offramp.Offramp offramp = 2;
+ * @return The offramp.
+ */
+ mistyswap.MistyswapOfframp.Offramp getOfframp();
+ }
+ /**
+ *
+ */ A response to a GetOfframpStatusRequest.
+ *
+ *
+ * Protobuf type {@code mistyswap_offramp.GetOfframpStatusResponse}
+ */
+ public static final class GetOfframpStatusResponse extends
+ com.google.protobuf.GeneratedMessageLite<
+ GetOfframpStatusResponse, GetOfframpStatusResponse.Builder> implements
+ // @@protoc_insertion_point(message_implements:mistyswap_offramp.GetOfframpStatusResponse)
+ GetOfframpStatusResponseOrBuilder {
+ private GetOfframpStatusResponse() {
+ }
+ public static final int RESULT_FIELD_NUMBER = 1;
+ private mistyswap.MistyswapOfframp.OfframpResult result_;
+ /**
+ *
+ */ Result of the offramp request.
+ *
+ *
+ * .mistyswap_offramp.OfframpResult result = 1;
+ */
+ @java.lang.Override
+ public boolean hasResult() {
+ return result_ != null;
+ }
+ /**
+ *
+ */ Result of the offramp request.
+ *
+ *
+ * .mistyswap_offramp.OfframpResult result = 1;
+ */
+ @java.lang.Override
+ public mistyswap.MistyswapOfframp.OfframpResult getResult() {
+ return result_ == null ? mistyswap.MistyswapOfframp.OfframpResult.getDefaultInstance() : result_;
+ }
+ /**
+ *
+ */ Result of the offramp request.
+ *
+ *
+ * .mistyswap_offramp.OfframpResult result = 1;
+ */
+ private void setResult(mistyswap.MistyswapOfframp.OfframpResult value) {
+ value.getClass();
+ result_ = value;
+
+ }
+ /**
+ *
+ */ Result of the offramp request.
+ *
+ *
+ * .mistyswap_offramp.OfframpResult result = 1;
+ */
+ @java.lang.SuppressWarnings({"ReferenceEquality"})
+ private void mergeResult(mistyswap.MistyswapOfframp.OfframpResult value) {
+ value.getClass();
+ if (result_ != null &&
+ result_ != mistyswap.MistyswapOfframp.OfframpResult.getDefaultInstance()) {
+ result_ =
+ mistyswap.MistyswapOfframp.OfframpResult.newBuilder(result_).mergeFrom(value).buildPartial();
+ } else {
+ result_ = value;
+ }
+
+ }
+ /**
+ *
+ */ Result of the offramp request.
+ *
+ *
+ * .mistyswap_offramp.OfframpResult result = 1;
+ */
+ private void clearResult() { result_ = null;
+
+ }
+
+ public static final int OFFRAMP_FIELD_NUMBER = 2;
+ private mistyswap.MistyswapOfframp.Offramp offramp_;
+ /**
+ *
+ */ The offramp status, if the result code is Ok.
+ *
+ *
+ * .mistyswap_offramp.Offramp offramp = 2;
+ */
+ @java.lang.Override
+ public boolean hasOfframp() {
+ return offramp_ != null;
+ }
+ /**
+ *
+ */ The offramp status, if the result code is Ok.
+ *
+ *
+ * .mistyswap_offramp.Offramp offramp = 2;
+ */
+ @java.lang.Override
+ public mistyswap.MistyswapOfframp.Offramp getOfframp() {
+ return offramp_ == null ? mistyswap.MistyswapOfframp.Offramp.getDefaultInstance() : offramp_;
+ }
+ /**
+ *
+ */ The offramp status, if the result code is Ok.
+ *
+ *
+ * .mistyswap_offramp.Offramp offramp = 2;
+ */
+ private void setOfframp(mistyswap.MistyswapOfframp.Offramp value) {
+ value.getClass();
+ offramp_ = value;
+
+ }
+ /**
+ *
+ */ The offramp status, if the result code is Ok.
+ *
+ *
+ * .mistyswap_offramp.Offramp offramp = 2;
+ */
+ @java.lang.SuppressWarnings({"ReferenceEquality"})
+ private void mergeOfframp(mistyswap.MistyswapOfframp.Offramp value) {
+ value.getClass();
+ if (offramp_ != null &&
+ offramp_ != mistyswap.MistyswapOfframp.Offramp.getDefaultInstance()) {
+ offramp_ =
+ mistyswap.MistyswapOfframp.Offramp.newBuilder(offramp_).mergeFrom(value).buildPartial();
+ } else {
+ offramp_ = value;
+ }
+
+ }
+ /**
+ *
+ */ The offramp status, if the result code is Ok.
+ *
+ *
+ * .mistyswap_offramp.Offramp offramp = 2;
+ */
+ private void clearOfframp() { offramp_ = null;
+
+ }
+
+ public static mistyswap.MistyswapOfframp.GetOfframpStatusResponse parseFrom(
+ java.nio.ByteBuffer data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return com.google.protobuf.GeneratedMessageLite.parseFrom(
+ DEFAULT_INSTANCE, data);
+ }
+ public static mistyswap.MistyswapOfframp.GetOfframpStatusResponse parseFrom(
+ java.nio.ByteBuffer data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return com.google.protobuf.GeneratedMessageLite.parseFrom(
+ DEFAULT_INSTANCE, data, extensionRegistry);
+ }
+ public static mistyswap.MistyswapOfframp.GetOfframpStatusResponse parseFrom(
+ com.google.protobuf.ByteString data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return com.google.protobuf.GeneratedMessageLite.parseFrom(
+ DEFAULT_INSTANCE, data);
+ }
+ public static mistyswap.MistyswapOfframp.GetOfframpStatusResponse parseFrom(
+ com.google.protobuf.ByteString data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return com.google.protobuf.GeneratedMessageLite.parseFrom(
+ DEFAULT_INSTANCE, data, extensionRegistry);
+ }
+ public static mistyswap.MistyswapOfframp.GetOfframpStatusResponse parseFrom(byte[] data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return com.google.protobuf.GeneratedMessageLite.parseFrom(
+ DEFAULT_INSTANCE, data);
+ }
+ public static mistyswap.MistyswapOfframp.GetOfframpStatusResponse parseFrom(
+ byte[] data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return com.google.protobuf.GeneratedMessageLite.parseFrom(
+ DEFAULT_INSTANCE, data, extensionRegistry);
+ }
+ public static mistyswap.MistyswapOfframp.GetOfframpStatusResponse parseFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageLite.parseFrom(
+ DEFAULT_INSTANCE, input);
+ }
+ public static mistyswap.MistyswapOfframp.GetOfframpStatusResponse parseFrom(
+ java.io.InputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageLite.parseFrom(
+ DEFAULT_INSTANCE, input, extensionRegistry);
+ }
+ public static mistyswap.MistyswapOfframp.GetOfframpStatusResponse parseDelimitedFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return parseDelimitedFrom(DEFAULT_INSTANCE, input);
+ }
+ public static mistyswap.MistyswapOfframp.GetOfframpStatusResponse parseDelimitedFrom(
+ java.io.InputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return parseDelimitedFrom(DEFAULT_INSTANCE, input, extensionRegistry);
+ }
+ public static mistyswap.MistyswapOfframp.GetOfframpStatusResponse parseFrom(
+ com.google.protobuf.CodedInputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageLite.parseFrom(
+ DEFAULT_INSTANCE, input);
+ }
+ public static mistyswap.MistyswapOfframp.GetOfframpStatusResponse parseFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageLite.parseFrom(
+ DEFAULT_INSTANCE, input, extensionRegistry);
+ }
+
+ public static Builder newBuilder() {
+ return (Builder) DEFAULT_INSTANCE.createBuilder();
+ }
+ public static Builder newBuilder(mistyswap.MistyswapOfframp.GetOfframpStatusResponse prototype) {
+ return (Builder) DEFAULT_INSTANCE.createBuilder(prototype);
+ }
+
+ /**
+ *
+ */ A response to a GetOfframpStatusRequest.
+ *
+ *
+ * Protobuf type {@code mistyswap_offramp.GetOfframpStatusResponse}
+ */
+ public static final class Builder extends
+ com.google.protobuf.GeneratedMessageLite.Builder<
+ mistyswap.MistyswapOfframp.GetOfframpStatusResponse, Builder> implements
+ // @@protoc_insertion_point(builder_implements:mistyswap_offramp.GetOfframpStatusResponse)
+ mistyswap.MistyswapOfframp.GetOfframpStatusResponseOrBuilder {
+ // Construct using mistyswap.MistyswapOfframp.GetOfframpStatusResponse.newBuilder()
+ private Builder() {
+ super(DEFAULT_INSTANCE);
+ }
+
+
+ /**
+ *
+ */ Result of the offramp request.
+ *
+ *
+ * .mistyswap_offramp.OfframpResult result = 1;
+ */
+ @java.lang.Override
+ public boolean hasResult() {
+ return instance.hasResult();
+ }
+ /**
+ *
+ */ Result of the offramp request.
+ *
+ *
+ * .mistyswap_offramp.OfframpResult result = 1;
+ */
+ @java.lang.Override
+ public mistyswap.MistyswapOfframp.OfframpResult getResult() {
+ return instance.getResult();
+ }
+ /**
+ *
+ */ Result of the offramp request.
+ *
+ *
+ * .mistyswap_offramp.OfframpResult result = 1;
+ */
+ public Builder setResult(mistyswap.MistyswapOfframp.OfframpResult value) {
+ copyOnWrite();
+ instance.setResult(value);
+ return this;
+ }
+ /**
+ *
+ */ Result of the offramp request.
+ *
+ *
+ * .mistyswap_offramp.OfframpResult result = 1;
+ */
+ public Builder setResult(
+ mistyswap.MistyswapOfframp.OfframpResult.Builder builderForValue) {
+ copyOnWrite();
+ instance.setResult(builderForValue.build());
+ return this;
+ }
+ /**
+ *
+ */ Result of the offramp request.
+ *
+ *
+ * .mistyswap_offramp.OfframpResult result = 1;
+ */
+ public Builder mergeResult(mistyswap.MistyswapOfframp.OfframpResult value) {
+ copyOnWrite();
+ instance.mergeResult(value);
+ return this;
+ }
+ /**
+ *
+ */ Result of the offramp request.
+ *
+ *
+ * .mistyswap_offramp.OfframpResult result = 1;
+ */
+ public Builder clearResult() { copyOnWrite();
+ instance.clearResult();
+ return this;
+ }
+
+ /**
+ *
+ */ The offramp status, if the result code is Ok.
+ *
+ *
+ * .mistyswap_offramp.Offramp offramp = 2;
+ */
+ @java.lang.Override
+ public boolean hasOfframp() {
+ return instance.hasOfframp();
+ }
+ /**
+ *
+ */ The offramp status, if the result code is Ok.
+ *
+ *
+ * .mistyswap_offramp.Offramp offramp = 2;
+ */
+ @java.lang.Override
+ public mistyswap.MistyswapOfframp.Offramp getOfframp() {
+ return instance.getOfframp();
+ }
+ /**
+ *
+ */ The offramp status, if the result code is Ok.
+ *
+ *
+ * .mistyswap_offramp.Offramp offramp = 2;
+ */
+ public Builder setOfframp(mistyswap.MistyswapOfframp.Offramp value) {
+ copyOnWrite();
+ instance.setOfframp(value);
+ return this;
+ }
+ /**
+ *
+ */ The offramp status, if the result code is Ok.
+ *
+ *
+ * .mistyswap_offramp.Offramp offramp = 2;
+ */
+ public Builder setOfframp(
+ mistyswap.MistyswapOfframp.Offramp.Builder builderForValue) {
+ copyOnWrite();
+ instance.setOfframp(builderForValue.build());
+ return this;
+ }
+ /**
+ *
+ */ The offramp status, if the result code is Ok.
+ *
+ *
+ * .mistyswap_offramp.Offramp offramp = 2;
+ */
+ public Builder mergeOfframp(mistyswap.MistyswapOfframp.Offramp value) {
+ copyOnWrite();
+ instance.mergeOfframp(value);
+ return this;
+ }
+ /**
+ *
+ */ The offramp status, if the result code is Ok.
+ *
+ *
+ * .mistyswap_offramp.Offramp offramp = 2;
+ */
+ public Builder clearOfframp() { copyOnWrite();
+ instance.clearOfframp();
+ return this;
+ }
+
+ // @@protoc_insertion_point(builder_scope:mistyswap_offramp.GetOfframpStatusResponse)
+ }
+ @java.lang.Override
+ @java.lang.SuppressWarnings({"unchecked", "fallthrough"})
+ protected final java.lang.Object dynamicMethod(
+ com.google.protobuf.GeneratedMessageLite.MethodToInvoke method,
+ java.lang.Object arg0, java.lang.Object arg1) {
+ switch (method) {
+ case NEW_MUTABLE_INSTANCE: {
+ return new mistyswap.MistyswapOfframp.GetOfframpStatusResponse();
+ }
+ case NEW_BUILDER: {
+ return new Builder();
+ }
+ case BUILD_MESSAGE_INFO: {
+ java.lang.Object[] objects = new java.lang.Object[] {
+ "result_",
+ "offramp_",
+ };
+ java.lang.String info =
+ "\u0000\u0002\u0000\u0000\u0001\u0002\u0002\u0000\u0000\u0000\u0001\t\u0002\t";
+ return newMessageInfo(DEFAULT_INSTANCE, info, objects);
+ }
+ // fall through
+ case GET_DEFAULT_INSTANCE: {
+ return DEFAULT_INSTANCE;
+ }
+ case GET_PARSER: {
+ com.google.protobuf.Parser
+ */ Unique ID of the offramp to get the status of.
+ *
+ *
+ * bytes offramp_id = 1;
+ * @return The offrampId.
+ */
+ com.google.protobuf.ByteString getOfframpId();
+ }
+ /**
+ *
+ */ Get the state transitions of a given offramp (for debug purposes).
+ *
+ *
+ * Protobuf type {@code mistyswap_offramp.GetOfframpDebugInfoRequest}
+ */
+ public static final class GetOfframpDebugInfoRequest extends
+ com.google.protobuf.GeneratedMessageLite<
+ GetOfframpDebugInfoRequest, GetOfframpDebugInfoRequest.Builder> implements
+ // @@protoc_insertion_point(message_implements:mistyswap_offramp.GetOfframpDebugInfoRequest)
+ GetOfframpDebugInfoRequestOrBuilder {
+ private GetOfframpDebugInfoRequest() {
+ offrampId_ = com.google.protobuf.ByteString.EMPTY;
+ }
+ public static final int OFFRAMP_ID_FIELD_NUMBER = 1;
+ private com.google.protobuf.ByteString offrampId_;
+ /**
+ *
+ */ Unique ID of the offramp to get the status of.
+ *
+ *
+ * bytes offramp_id = 1;
+ * @return The offrampId.
+ */
+ @java.lang.Override
+ public com.google.protobuf.ByteString getOfframpId() {
+ return offrampId_;
+ }
+ /**
+ *
+ */ Unique ID of the offramp to get the status of.
+ *
+ *
+ * bytes offramp_id = 1;
+ * @param value The offrampId to set.
+ */
+ private void setOfframpId(com.google.protobuf.ByteString value) {
+ java.lang.Class> valueClass = value.getClass();
+
+ offrampId_ = value;
+ }
+ /**
+ *
+ */ Unique ID of the offramp to get the status of.
+ *
+ *
+ * bytes offramp_id = 1;
+ */
+ private void clearOfframpId() {
+
+ offrampId_ = getDefaultInstance().getOfframpId();
+ }
+
+ public static mistyswap.MistyswapOfframp.GetOfframpDebugInfoRequest parseFrom(
+ java.nio.ByteBuffer data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return com.google.protobuf.GeneratedMessageLite.parseFrom(
+ DEFAULT_INSTANCE, data);
+ }
+ public static mistyswap.MistyswapOfframp.GetOfframpDebugInfoRequest parseFrom(
+ java.nio.ByteBuffer data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return com.google.protobuf.GeneratedMessageLite.parseFrom(
+ DEFAULT_INSTANCE, data, extensionRegistry);
+ }
+ public static mistyswap.MistyswapOfframp.GetOfframpDebugInfoRequest parseFrom(
+ com.google.protobuf.ByteString data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return com.google.protobuf.GeneratedMessageLite.parseFrom(
+ DEFAULT_INSTANCE, data);
+ }
+ public static mistyswap.MistyswapOfframp.GetOfframpDebugInfoRequest parseFrom(
+ com.google.protobuf.ByteString data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return com.google.protobuf.GeneratedMessageLite.parseFrom(
+ DEFAULT_INSTANCE, data, extensionRegistry);
+ }
+ public static mistyswap.MistyswapOfframp.GetOfframpDebugInfoRequest parseFrom(byte[] data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return com.google.protobuf.GeneratedMessageLite.parseFrom(
+ DEFAULT_INSTANCE, data);
+ }
+ public static mistyswap.MistyswapOfframp.GetOfframpDebugInfoRequest parseFrom(
+ byte[] data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return com.google.protobuf.GeneratedMessageLite.parseFrom(
+ DEFAULT_INSTANCE, data, extensionRegistry);
+ }
+ public static mistyswap.MistyswapOfframp.GetOfframpDebugInfoRequest parseFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageLite.parseFrom(
+ DEFAULT_INSTANCE, input);
+ }
+ public static mistyswap.MistyswapOfframp.GetOfframpDebugInfoRequest parseFrom(
+ java.io.InputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageLite.parseFrom(
+ DEFAULT_INSTANCE, input, extensionRegistry);
+ }
+ public static mistyswap.MistyswapOfframp.GetOfframpDebugInfoRequest parseDelimitedFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return parseDelimitedFrom(DEFAULT_INSTANCE, input);
+ }
+ public static mistyswap.MistyswapOfframp.GetOfframpDebugInfoRequest parseDelimitedFrom(
+ java.io.InputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return parseDelimitedFrom(DEFAULT_INSTANCE, input, extensionRegistry);
+ }
+ public static mistyswap.MistyswapOfframp.GetOfframpDebugInfoRequest parseFrom(
+ com.google.protobuf.CodedInputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageLite.parseFrom(
+ DEFAULT_INSTANCE, input);
+ }
+ public static mistyswap.MistyswapOfframp.GetOfframpDebugInfoRequest parseFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageLite.parseFrom(
+ DEFAULT_INSTANCE, input, extensionRegistry);
+ }
+
+ public static Builder newBuilder() {
+ return (Builder) DEFAULT_INSTANCE.createBuilder();
+ }
+ public static Builder newBuilder(mistyswap.MistyswapOfframp.GetOfframpDebugInfoRequest prototype) {
+ return (Builder) DEFAULT_INSTANCE.createBuilder(prototype);
+ }
+
+ /**
+ *
+ */ Get the state transitions of a given offramp (for debug purposes).
+ *
+ *
+ * Protobuf type {@code mistyswap_offramp.GetOfframpDebugInfoRequest}
+ */
+ public static final class Builder extends
+ com.google.protobuf.GeneratedMessageLite.Builder<
+ mistyswap.MistyswapOfframp.GetOfframpDebugInfoRequest, Builder> implements
+ // @@protoc_insertion_point(builder_implements:mistyswap_offramp.GetOfframpDebugInfoRequest)
+ mistyswap.MistyswapOfframp.GetOfframpDebugInfoRequestOrBuilder {
+ // Construct using mistyswap.MistyswapOfframp.GetOfframpDebugInfoRequest.newBuilder()
+ private Builder() {
+ super(DEFAULT_INSTANCE);
+ }
+
+
+ /**
+ *
+ */ Unique ID of the offramp to get the status of.
+ *
+ *
+ * bytes offramp_id = 1;
+ * @return The offrampId.
+ */
+ @java.lang.Override
+ public com.google.protobuf.ByteString getOfframpId() {
+ return instance.getOfframpId();
+ }
+ /**
+ *
+ */ Unique ID of the offramp to get the status of.
+ *
+ *
+ * bytes offramp_id = 1;
+ * @param value The offrampId to set.
+ * @return This builder for chaining.
+ */
+ public Builder setOfframpId(com.google.protobuf.ByteString value) {
+ copyOnWrite();
+ instance.setOfframpId(value);
+ return this;
+ }
+ /**
+ *
+ */ Unique ID of the offramp to get the status of.
+ *
+ *
+ * bytes offramp_id = 1;
+ * @return This builder for chaining.
+ */
+ public Builder clearOfframpId() {
+ copyOnWrite();
+ instance.clearOfframpId();
+ return this;
+ }
+
+ // @@protoc_insertion_point(builder_scope:mistyswap_offramp.GetOfframpDebugInfoRequest)
+ }
+ @java.lang.Override
+ @java.lang.SuppressWarnings({"unchecked", "fallthrough"})
+ protected final java.lang.Object dynamicMethod(
+ com.google.protobuf.GeneratedMessageLite.MethodToInvoke method,
+ java.lang.Object arg0, java.lang.Object arg1) {
+ switch (method) {
+ case NEW_MUTABLE_INSTANCE: {
+ return new mistyswap.MistyswapOfframp.GetOfframpDebugInfoRequest();
+ }
+ case NEW_BUILDER: {
+ return new Builder();
+ }
+ case BUILD_MESSAGE_INFO: {
+ java.lang.Object[] objects = new java.lang.Object[] {
+ "offrampId_",
+ };
+ java.lang.String info =
+ "\u0000\u0001\u0000\u0000\u0001\u0001\u0001\u0000\u0000\u0000\u0001\n";
+ return newMessageInfo(DEFAULT_INSTANCE, info, objects);
+ }
+ // fall through
+ case GET_DEFAULT_INSTANCE: {
+ return DEFAULT_INSTANCE;
+ }
+ case GET_PARSER: {
+ com.google.protobuf.Parser
+ */ Result of the offramp request.
+ *
+ *
+ * .mistyswap_offramp.OfframpResult result = 1;
+ * @return Whether the result field is set.
+ */
+ boolean hasResult();
+ /**
+ *
+ */ Result of the offramp request.
+ *
+ *
+ * .mistyswap_offramp.OfframpResult result = 1;
+ * @return The result.
+ */
+ mistyswap.MistyswapOfframp.OfframpResult getResult();
+
+ /**
+ *
+ */ Debug info, encoded as a JSON blob.
+ * / The schema is defined by the OfframpDebugInfo Rust struct and serialized by serde.
+ *
+ *
+ * string debug_info_json = 2;
+ * @return The debugInfoJson.
+ */
+ java.lang.String getDebugInfoJson();
+ /**
+ *
+ */ Debug info, encoded as a JSON blob.
+ * / The schema is defined by the OfframpDebugInfo Rust struct and serialized by serde.
+ *
+ *
+ * string debug_info_json = 2;
+ * @return The bytes for debugInfoJson.
+ */
+ com.google.protobuf.ByteString
+ getDebugInfoJsonBytes();
+ }
+ /**
+ *
+ */ A response to a GetOfframpDebugInfoRequest.
+ *
+ *
+ * Protobuf type {@code mistyswap_offramp.GetOfframpDebugInfoResponse}
+ */
+ public static final class GetOfframpDebugInfoResponse extends
+ com.google.protobuf.GeneratedMessageLite<
+ GetOfframpDebugInfoResponse, GetOfframpDebugInfoResponse.Builder> implements
+ // @@protoc_insertion_point(message_implements:mistyswap_offramp.GetOfframpDebugInfoResponse)
+ GetOfframpDebugInfoResponseOrBuilder {
+ private GetOfframpDebugInfoResponse() {
+ debugInfoJson_ = "";
+ }
+ public static final int RESULT_FIELD_NUMBER = 1;
+ private mistyswap.MistyswapOfframp.OfframpResult result_;
+ /**
+ *
+ */ Result of the offramp request.
+ *
+ *
+ * .mistyswap_offramp.OfframpResult result = 1;
+ */
+ @java.lang.Override
+ public boolean hasResult() {
+ return result_ != null;
+ }
+ /**
+ *
+ */ Result of the offramp request.
+ *
+ *
+ * .mistyswap_offramp.OfframpResult result = 1;
+ */
+ @java.lang.Override
+ public mistyswap.MistyswapOfframp.OfframpResult getResult() {
+ return result_ == null ? mistyswap.MistyswapOfframp.OfframpResult.getDefaultInstance() : result_;
+ }
+ /**
+ *
+ */ Result of the offramp request.
+ *
+ *
+ * .mistyswap_offramp.OfframpResult result = 1;
+ */
+ private void setResult(mistyswap.MistyswapOfframp.OfframpResult value) {
+ value.getClass();
+ result_ = value;
+
+ }
+ /**
+ *
+ */ Result of the offramp request.
+ *
+ *
+ * .mistyswap_offramp.OfframpResult result = 1;
+ */
+ @java.lang.SuppressWarnings({"ReferenceEquality"})
+ private void mergeResult(mistyswap.MistyswapOfframp.OfframpResult value) {
+ value.getClass();
+ if (result_ != null &&
+ result_ != mistyswap.MistyswapOfframp.OfframpResult.getDefaultInstance()) {
+ result_ =
+ mistyswap.MistyswapOfframp.OfframpResult.newBuilder(result_).mergeFrom(value).buildPartial();
+ } else {
+ result_ = value;
+ }
+
+ }
+ /**
+ *
+ */ Result of the offramp request.
+ *
+ *
+ * .mistyswap_offramp.OfframpResult result = 1;
+ */
+ private void clearResult() { result_ = null;
+
+ }
+
+ public static final int DEBUG_INFO_JSON_FIELD_NUMBER = 2;
+ private java.lang.String debugInfoJson_;
+ /**
+ *
+ */ Debug info, encoded as a JSON blob.
+ * / The schema is defined by the OfframpDebugInfo Rust struct and serialized by serde.
+ *
+ *
+ * string debug_info_json = 2;
+ * @return The debugInfoJson.
+ */
+ @java.lang.Override
+ public java.lang.String getDebugInfoJson() {
+ return debugInfoJson_;
+ }
+ /**
+ *
+ */ Debug info, encoded as a JSON blob.
+ * / The schema is defined by the OfframpDebugInfo Rust struct and serialized by serde.
+ *
+ *
+ * string debug_info_json = 2;
+ * @return The bytes for debugInfoJson.
+ */
+ @java.lang.Override
+ public com.google.protobuf.ByteString
+ getDebugInfoJsonBytes() {
+ return com.google.protobuf.ByteString.copyFromUtf8(debugInfoJson_);
+ }
+ /**
+ *
+ */ Debug info, encoded as a JSON blob.
+ * / The schema is defined by the OfframpDebugInfo Rust struct and serialized by serde.
+ *
+ *
+ * string debug_info_json = 2;
+ * @param value The debugInfoJson to set.
+ */
+ private void setDebugInfoJson(
+ java.lang.String value) {
+ java.lang.Class> valueClass = value.getClass();
+
+ debugInfoJson_ = value;
+ }
+ /**
+ *
+ */ Debug info, encoded as a JSON blob.
+ * / The schema is defined by the OfframpDebugInfo Rust struct and serialized by serde.
+ *
+ *
+ * string debug_info_json = 2;
+ */
+ private void clearDebugInfoJson() {
+
+ debugInfoJson_ = getDefaultInstance().getDebugInfoJson();
+ }
+ /**
+ *
+ */ Debug info, encoded as a JSON blob.
+ * / The schema is defined by the OfframpDebugInfo Rust struct and serialized by serde.
+ *
+ *
+ * string debug_info_json = 2;
+ * @param value The bytes for debugInfoJson to set.
+ */
+ private void setDebugInfoJsonBytes(
+ com.google.protobuf.ByteString value) {
+ checkByteStringIsUtf8(value);
+ debugInfoJson_ = value.toStringUtf8();
+
+ }
+
+ public static mistyswap.MistyswapOfframp.GetOfframpDebugInfoResponse parseFrom(
+ java.nio.ByteBuffer data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return com.google.protobuf.GeneratedMessageLite.parseFrom(
+ DEFAULT_INSTANCE, data);
+ }
+ public static mistyswap.MistyswapOfframp.GetOfframpDebugInfoResponse parseFrom(
+ java.nio.ByteBuffer data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return com.google.protobuf.GeneratedMessageLite.parseFrom(
+ DEFAULT_INSTANCE, data, extensionRegistry);
+ }
+ public static mistyswap.MistyswapOfframp.GetOfframpDebugInfoResponse parseFrom(
+ com.google.protobuf.ByteString data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return com.google.protobuf.GeneratedMessageLite.parseFrom(
+ DEFAULT_INSTANCE, data);
+ }
+ public static mistyswap.MistyswapOfframp.GetOfframpDebugInfoResponse parseFrom(
+ com.google.protobuf.ByteString data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return com.google.protobuf.GeneratedMessageLite.parseFrom(
+ DEFAULT_INSTANCE, data, extensionRegistry);
+ }
+ public static mistyswap.MistyswapOfframp.GetOfframpDebugInfoResponse parseFrom(byte[] data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return com.google.protobuf.GeneratedMessageLite.parseFrom(
+ DEFAULT_INSTANCE, data);
+ }
+ public static mistyswap.MistyswapOfframp.GetOfframpDebugInfoResponse parseFrom(
+ byte[] data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return com.google.protobuf.GeneratedMessageLite.parseFrom(
+ DEFAULT_INSTANCE, data, extensionRegistry);
+ }
+ public static mistyswap.MistyswapOfframp.GetOfframpDebugInfoResponse parseFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageLite.parseFrom(
+ DEFAULT_INSTANCE, input);
+ }
+ public static mistyswap.MistyswapOfframp.GetOfframpDebugInfoResponse parseFrom(
+ java.io.InputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageLite.parseFrom(
+ DEFAULT_INSTANCE, input, extensionRegistry);
+ }
+ public static mistyswap.MistyswapOfframp.GetOfframpDebugInfoResponse parseDelimitedFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return parseDelimitedFrom(DEFAULT_INSTANCE, input);
+ }
+ public static mistyswap.MistyswapOfframp.GetOfframpDebugInfoResponse parseDelimitedFrom(
+ java.io.InputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return parseDelimitedFrom(DEFAULT_INSTANCE, input, extensionRegistry);
+ }
+ public static mistyswap.MistyswapOfframp.GetOfframpDebugInfoResponse parseFrom(
+ com.google.protobuf.CodedInputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageLite.parseFrom(
+ DEFAULT_INSTANCE, input);
+ }
+ public static mistyswap.MistyswapOfframp.GetOfframpDebugInfoResponse parseFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageLite.parseFrom(
+ DEFAULT_INSTANCE, input, extensionRegistry);
+ }
+
+ public static Builder newBuilder() {
+ return (Builder) DEFAULT_INSTANCE.createBuilder();
+ }
+ public static Builder newBuilder(mistyswap.MistyswapOfframp.GetOfframpDebugInfoResponse prototype) {
+ return (Builder) DEFAULT_INSTANCE.createBuilder(prototype);
+ }
+
+ /**
+ *
+ */ A response to a GetOfframpDebugInfoRequest.
+ *
+ *
+ * Protobuf type {@code mistyswap_offramp.GetOfframpDebugInfoResponse}
+ */
+ public static final class Builder extends
+ com.google.protobuf.GeneratedMessageLite.Builder<
+ mistyswap.MistyswapOfframp.GetOfframpDebugInfoResponse, Builder> implements
+ // @@protoc_insertion_point(builder_implements:mistyswap_offramp.GetOfframpDebugInfoResponse)
+ mistyswap.MistyswapOfframp.GetOfframpDebugInfoResponseOrBuilder {
+ // Construct using mistyswap.MistyswapOfframp.GetOfframpDebugInfoResponse.newBuilder()
+ private Builder() {
+ super(DEFAULT_INSTANCE);
+ }
+
+
+ /**
+ *
+ */ Result of the offramp request.
+ *
+ *
+ * .mistyswap_offramp.OfframpResult result = 1;
+ */
+ @java.lang.Override
+ public boolean hasResult() {
+ return instance.hasResult();
+ }
+ /**
+ *
+ */ Result of the offramp request.
+ *
+ *
+ * .mistyswap_offramp.OfframpResult result = 1;
+ */
+ @java.lang.Override
+ public mistyswap.MistyswapOfframp.OfframpResult getResult() {
+ return instance.getResult();
+ }
+ /**
+ *
+ */ Result of the offramp request.
+ *
+ *
+ * .mistyswap_offramp.OfframpResult result = 1;
+ */
+ public Builder setResult(mistyswap.MistyswapOfframp.OfframpResult value) {
+ copyOnWrite();
+ instance.setResult(value);
+ return this;
+ }
+ /**
+ *
+ */ Result of the offramp request.
+ *
+ *
+ * .mistyswap_offramp.OfframpResult result = 1;
+ */
+ public Builder setResult(
+ mistyswap.MistyswapOfframp.OfframpResult.Builder builderForValue) {
+ copyOnWrite();
+ instance.setResult(builderForValue.build());
+ return this;
+ }
+ /**
+ *
+ */ Result of the offramp request.
+ *
+ *
+ * .mistyswap_offramp.OfframpResult result = 1;
+ */
+ public Builder mergeResult(mistyswap.MistyswapOfframp.OfframpResult value) {
+ copyOnWrite();
+ instance.mergeResult(value);
+ return this;
+ }
+ /**
+ *
+ */ Result of the offramp request.
+ *
+ *
+ * .mistyswap_offramp.OfframpResult result = 1;
+ */
+ public Builder clearResult() { copyOnWrite();
+ instance.clearResult();
+ return this;
+ }
+
+ /**
+ *
+ */ Debug info, encoded as a JSON blob.
+ * / The schema is defined by the OfframpDebugInfo Rust struct and serialized by serde.
+ *
+ *
+ * string debug_info_json = 2;
+ * @return The debugInfoJson.
+ */
+ @java.lang.Override
+ public java.lang.String getDebugInfoJson() {
+ return instance.getDebugInfoJson();
+ }
+ /**
+ *
+ */ Debug info, encoded as a JSON blob.
+ * / The schema is defined by the OfframpDebugInfo Rust struct and serialized by serde.
+ *
+ *
+ * string debug_info_json = 2;
+ * @return The bytes for debugInfoJson.
+ */
+ @java.lang.Override
+ public com.google.protobuf.ByteString
+ getDebugInfoJsonBytes() {
+ return instance.getDebugInfoJsonBytes();
+ }
+ /**
+ *
+ */ Debug info, encoded as a JSON blob.
+ * / The schema is defined by the OfframpDebugInfo Rust struct and serialized by serde.
+ *
+ *
+ * string debug_info_json = 2;
+ * @param value The debugInfoJson to set.
+ * @return This builder for chaining.
+ */
+ public Builder setDebugInfoJson(
+ java.lang.String value) {
+ copyOnWrite();
+ instance.setDebugInfoJson(value);
+ return this;
+ }
+ /**
+ *
+ */ Debug info, encoded as a JSON blob.
+ * / The schema is defined by the OfframpDebugInfo Rust struct and serialized by serde.
+ *
+ *
+ * string debug_info_json = 2;
+ * @return This builder for chaining.
+ */
+ public Builder clearDebugInfoJson() {
+ copyOnWrite();
+ instance.clearDebugInfoJson();
+ return this;
+ }
+ /**
+ *
+ */ Debug info, encoded as a JSON blob.
+ * / The schema is defined by the OfframpDebugInfo Rust struct and serialized by serde.
+ *
+ *
+ * string debug_info_json = 2;
+ * @param value The bytes for debugInfoJson to set.
+ * @return This builder for chaining.
+ */
+ public Builder setDebugInfoJsonBytes(
+ com.google.protobuf.ByteString value) {
+ copyOnWrite();
+ instance.setDebugInfoJsonBytes(value);
+ return this;
+ }
+
+ // @@protoc_insertion_point(builder_scope:mistyswap_offramp.GetOfframpDebugInfoResponse)
+ }
+ @java.lang.Override
+ @java.lang.SuppressWarnings({"unchecked", "fallthrough"})
+ protected final java.lang.Object dynamicMethod(
+ com.google.protobuf.GeneratedMessageLite.MethodToInvoke method,
+ java.lang.Object arg0, java.lang.Object arg1) {
+ switch (method) {
+ case NEW_MUTABLE_INSTANCE: {
+ return new mistyswap.MistyswapOfframp.GetOfframpDebugInfoResponse();
+ }
+ case NEW_BUILDER: {
+ return new Builder();
+ }
+ case BUILD_MESSAGE_INFO: {
+ java.lang.Object[] objects = new java.lang.Object[] {
+ "result_",
+ "debugInfoJson_",
+ };
+ java.lang.String info =
+ "\u0000\u0002\u0000\u0000\u0001\u0002\u0002\u0000\u0000\u0000\u0001\t\u0002\u0208" +
+ "";
+ return newMessageInfo(DEFAULT_INSTANCE, info, objects);
+ }
+ // fall through
+ case GET_DEFAULT_INSTANCE: {
+ return DEFAULT_INSTANCE;
+ }
+ case GET_PARSER: {
+ com.google.protobuf.Parser
+ */ Initiate (or pick up a previously initiated) offramp.
+ * / Input should be an encrypted InitiateOfframpRequest, output is an encrypted InitiateOfframpResponse.
+ *
+ */
+ default void initiateOfframp(attest.Attest.Message request,
+ io.grpc.stub.StreamObserver
+ */ Forget an offramp.
+ * / Input should be an encrypted ForgetOfframpRequest, output is an encrypted ForgetOfframpResponse.
+ *
+ */
+ default void forgetOfframp(attest.Attest.Message request,
+ io.grpc.stub.StreamObserver
+ */ Get the status of an offramp.
+ * / Input should be an encrypted GetOfframpStatusRequest, output is an encrypted GetOfframpStatusResponse.
+ *
+ */
+ default void getOfframpStatus(attest.Attest.Message request,
+ io.grpc.stub.StreamObserver
+ */ Get debug info.
+ * / Input should be an encrypted GetOfframpDebugInfoRequest, output is an encrypted GetOfframpDebugInfoResponse.
+ *
+ */
+ default void getOfframpDebugInfo(attest.Attest.Message request,
+ io.grpc.stub.StreamObserver
+ */ Initiate (or pick up a previously initiated) offramp.
+ * / Input should be an encrypted InitiateOfframpRequest, output is an encrypted InitiateOfframpResponse.
+ *
+ */
+ public void initiateOfframp(attest.Attest.Message request,
+ io.grpc.stub.StreamObserver
+ */ Forget an offramp.
+ * / Input should be an encrypted ForgetOfframpRequest, output is an encrypted ForgetOfframpResponse.
+ *
+ */
+ public void forgetOfframp(attest.Attest.Message request,
+ io.grpc.stub.StreamObserver
+ */ Get the status of an offramp.
+ * / Input should be an encrypted GetOfframpStatusRequest, output is an encrypted GetOfframpStatusResponse.
+ *
+ */
+ public void getOfframpStatus(attest.Attest.Message request,
+ io.grpc.stub.StreamObserver
+ */ Get debug info.
+ * / Input should be an encrypted GetOfframpDebugInfoRequest, output is an encrypted GetOfframpDebugInfoResponse.
+ *
+ */
+ public void getOfframpDebugInfo(attest.Attest.Message request,
+ io.grpc.stub.StreamObserver
+ */ Initiate (or pick up a previously initiated) offramp.
+ * / Input should be an encrypted InitiateOfframpRequest, output is an encrypted InitiateOfframpResponse.
+ *
+ */
+ public attest.Attest.Message initiateOfframp(attest.Attest.Message request) {
+ return io.grpc.stub.ClientCalls.blockingUnaryCall(
+ getChannel(), getInitiateOfframpMethod(), getCallOptions(), request);
+ }
+
+ /**
+ *
+ */ Forget an offramp.
+ * / Input should be an encrypted ForgetOfframpRequest, output is an encrypted ForgetOfframpResponse.
+ *
+ */
+ public attest.Attest.Message forgetOfframp(attest.Attest.Message request) {
+ return io.grpc.stub.ClientCalls.blockingUnaryCall(
+ getChannel(), getForgetOfframpMethod(), getCallOptions(), request);
+ }
+
+ /**
+ *
+ */ Get the status of an offramp.
+ * / Input should be an encrypted GetOfframpStatusRequest, output is an encrypted GetOfframpStatusResponse.
+ *
+ */
+ public attest.Attest.Message getOfframpStatus(attest.Attest.Message request) {
+ return io.grpc.stub.ClientCalls.blockingUnaryCall(
+ getChannel(), getGetOfframpStatusMethod(), getCallOptions(), request);
+ }
+
+ /**
+ *
+ */ Get debug info.
+ * / Input should be an encrypted GetOfframpDebugInfoRequest, output is an encrypted GetOfframpDebugInfoResponse.
+ *
+ */
+ public attest.Attest.Message getOfframpDebugInfo(attest.Attest.Message request) {
+ return io.grpc.stub.ClientCalls.blockingUnaryCall(
+ getChannel(), getGetOfframpDebugInfoMethod(), getCallOptions(), request);
+ }
+ }
+
+ /**
+ * A stub to allow clients to do ListenableFuture-style rpc calls to service MistyswapOfframpApi.
+ */
+ public static final class MistyswapOfframpApiFutureStub
+ extends io.grpc.stub.AbstractFutureStub
+ */ Initiate (or pick up a previously initiated) offramp.
+ * / Input should be an encrypted InitiateOfframpRequest, output is an encrypted InitiateOfframpResponse.
+ *
+ */
+ public com.google.common.util.concurrent.ListenableFuture
+ */ Forget an offramp.
+ * / Input should be an encrypted ForgetOfframpRequest, output is an encrypted ForgetOfframpResponse.
+ *
+ */
+ public com.google.common.util.concurrent.ListenableFuture
+ */ Get the status of an offramp.
+ * / Input should be an encrypted GetOfframpStatusRequest, output is an encrypted GetOfframpStatusResponse.
+ *
+ */
+ public com.google.common.util.concurrent.ListenableFuture
+ */ Get debug info.
+ * / Input should be an encrypted GetOfframpDebugInfoRequest, output is an encrypted GetOfframpDebugInfoResponse.
+ *
+ */
+ public com.google.common.util.concurrent.ListenableFuture
+ */ Various possible onramp error codes.
+ * / This should be kept in sync with mistyswap_onramp_api::Error
+ * / The ORC prefix is needed since enum variants have to be unique across all enums in the file.
+ *
+ *
+ * Protobuf enum {@code mistyswap_onramp.OnrampResultCode}
+ */
+ public enum OnrampResultCode
+ implements com.google.protobuf.Internal.EnumLite {
+ /**
+ * ORC_INVALID = 0;
+ */
+ ORC_INVALID(0),
+ /**
+ * ORC_OK = 1;
+ */
+ ORC_OK(1),
+ /**
+ * ORC_TOO_MANY_ONRAMPS = 2;
+ */
+ ORC_TOO_MANY_ONRAMPS(2),
+ /**
+ * ORC_MIXIN_CREDENTIALS_JSON = 3;
+ */
+ ORC_MIXIN_CREDENTIALS_JSON(3),
+ /**
+ * ORC_CREDENTIALS_ALREADY_IN_USE = 4;
+ */
+ ORC_CREDENTIALS_ALREADY_IN_USE(4),
+ /**
+ * ORC_MIXIN = 5;
+ */
+ ORC_MIXIN(5),
+ /**
+ * ORC_ONRAMP_NOT_FOUND = 6;
+ */
+ ORC_ONRAMP_NOT_FOUND(6),
+ /**
+ * ORC_INVALID_SRC_ASSET_ID = 7;
+ */
+ ORC_INVALID_SRC_ASSET_ID(7),
+ /**
+ * ORC_INVALID_DST_ASSET_ID = 8;
+ */
+ ORC_INVALID_DST_ASSET_ID(8),
+ /**
+ * ORC_INVALID_WITHDRAWAL_ADDRESS = 9;
+ */
+ ORC_INVALID_WITHDRAWAL_ADDRESS(9),
+ /**
+ * ORC_INVALID_MIN_WITHDRAWAL_AMOUNT = 10;
+ */
+ ORC_INVALID_MIN_WITHDRAWAL_AMOUNT(10),
+ /**
+ * ORC_INVALID_MIN_SWAP_RATE = 11;
+ */
+ ORC_INVALID_MIN_SWAP_RATE(11),
+ UNRECOGNIZED(-1),
+ ;
+
+ /**
+ * ORC_INVALID = 0;
+ */
+ public static final int ORC_INVALID_VALUE = 0;
+ /**
+ * ORC_OK = 1;
+ */
+ public static final int ORC_OK_VALUE = 1;
+ /**
+ * ORC_TOO_MANY_ONRAMPS = 2;
+ */
+ public static final int ORC_TOO_MANY_ONRAMPS_VALUE = 2;
+ /**
+ * ORC_MIXIN_CREDENTIALS_JSON = 3;
+ */
+ public static final int ORC_MIXIN_CREDENTIALS_JSON_VALUE = 3;
+ /**
+ * ORC_CREDENTIALS_ALREADY_IN_USE = 4;
+ */
+ public static final int ORC_CREDENTIALS_ALREADY_IN_USE_VALUE = 4;
+ /**
+ * ORC_MIXIN = 5;
+ */
+ public static final int ORC_MIXIN_VALUE = 5;
+ /**
+ * ORC_ONRAMP_NOT_FOUND = 6;
+ */
+ public static final int ORC_ONRAMP_NOT_FOUND_VALUE = 6;
+ /**
+ * ORC_INVALID_SRC_ASSET_ID = 7;
+ */
+ public static final int ORC_INVALID_SRC_ASSET_ID_VALUE = 7;
+ /**
+ * ORC_INVALID_DST_ASSET_ID = 8;
+ */
+ public static final int ORC_INVALID_DST_ASSET_ID_VALUE = 8;
+ /**
+ * ORC_INVALID_WITHDRAWAL_ADDRESS = 9;
+ */
+ public static final int ORC_INVALID_WITHDRAWAL_ADDRESS_VALUE = 9;
+ /**
+ * ORC_INVALID_MIN_WITHDRAWAL_AMOUNT = 10;
+ */
+ public static final int ORC_INVALID_MIN_WITHDRAWAL_AMOUNT_VALUE = 10;
+ /**
+ * ORC_INVALID_MIN_SWAP_RATE = 11;
+ */
+ public static final int ORC_INVALID_MIN_SWAP_RATE_VALUE = 11;
+
+
+ @java.lang.Override
+ public final int getNumber() {
+ if (this == UNRECOGNIZED) {
+ throw new java.lang.IllegalArgumentException(
+ "Can't get the number of an unknown enum value.");
+ }
+ return value;
+ }
+
+ /**
+ * @param value The number of the enum to look for.
+ * @return The enum associated with the given number.
+ * @deprecated Use {@link #forNumber(int)} instead.
+ */
+ @java.lang.Deprecated
+ public static OnrampResultCode valueOf(int value) {
+ return forNumber(value);
+ }
+
+ public static OnrampResultCode forNumber(int value) {
+ switch (value) {
+ case 0: return ORC_INVALID;
+ case 1: return ORC_OK;
+ case 2: return ORC_TOO_MANY_ONRAMPS;
+ case 3: return ORC_MIXIN_CREDENTIALS_JSON;
+ case 4: return ORC_CREDENTIALS_ALREADY_IN_USE;
+ case 5: return ORC_MIXIN;
+ case 6: return ORC_ONRAMP_NOT_FOUND;
+ case 7: return ORC_INVALID_SRC_ASSET_ID;
+ case 8: return ORC_INVALID_DST_ASSET_ID;
+ case 9: return ORC_INVALID_WITHDRAWAL_ADDRESS;
+ case 10: return ORC_INVALID_MIN_WITHDRAWAL_AMOUNT;
+ case 11: return ORC_INVALID_MIN_SWAP_RATE;
+ default: return null;
+ }
+ }
+
+ public static com.google.protobuf.Internal.EnumLiteMap
+ */ Current onramp state.
+ * / This should be kept in sync with onramp_impl::OnrampState
+ * / The OS prefix is needed since enum variants have to be unique across all enums in the file.
+ *
+ *
+ * Protobuf enum {@code mistyswap_onramp.OnrampState}
+ */
+ public enum OnrampState
+ implements com.google.protobuf.Internal.EnumLite {
+ /**
+ * OS_INVALID = 0;
+ */
+ OS_INVALID(0),
+ /**
+ * OS_NOT_STARTED = 1;
+ */
+ OS_NOT_STARTED(1),
+ /**
+ * OS_POLLING = 2;
+ */
+ OS_POLLING(2),
+ /**
+ * OS_WAITING = 3;
+ */
+ OS_WAITING(3),
+ /**
+ * OS_INTERMITTENT_ERROR = 4;
+ */
+ OS_INTERMITTENT_ERROR(4),
+ /**
+ * OS_BLOCKED_ON_SWAP = 5;
+ */
+ OS_BLOCKED_ON_SWAP(5),
+ /**
+ * OS_BLOCKED_ON_WITHDRAWAL = 6;
+ */
+ OS_BLOCKED_ON_WITHDRAWAL(6),
+ UNRECOGNIZED(-1),
+ ;
+
+ /**
+ * OS_INVALID = 0;
+ */
+ public static final int OS_INVALID_VALUE = 0;
+ /**
+ * OS_NOT_STARTED = 1;
+ */
+ public static final int OS_NOT_STARTED_VALUE = 1;
+ /**
+ * OS_POLLING = 2;
+ */
+ public static final int OS_POLLING_VALUE = 2;
+ /**
+ * OS_WAITING = 3;
+ */
+ public static final int OS_WAITING_VALUE = 3;
+ /**
+ * OS_INTERMITTENT_ERROR = 4;
+ */
+ public static final int OS_INTERMITTENT_ERROR_VALUE = 4;
+ /**
+ * OS_BLOCKED_ON_SWAP = 5;
+ */
+ public static final int OS_BLOCKED_ON_SWAP_VALUE = 5;
+ /**
+ * OS_BLOCKED_ON_WITHDRAWAL = 6;
+ */
+ public static final int OS_BLOCKED_ON_WITHDRAWAL_VALUE = 6;
+
+
+ @java.lang.Override
+ public final int getNumber() {
+ if (this == UNRECOGNIZED) {
+ throw new java.lang.IllegalArgumentException(
+ "Can't get the number of an unknown enum value.");
+ }
+ return value;
+ }
+
+ /**
+ * @param value The number of the enum to look for.
+ * @return The enum associated with the given number.
+ * @deprecated Use {@link #forNumber(int)} instead.
+ */
+ @java.lang.Deprecated
+ public static OnrampState valueOf(int value) {
+ return forNumber(value);
+ }
+
+ public static OnrampState forNumber(int value) {
+ switch (value) {
+ case 0: return OS_INVALID;
+ case 1: return OS_NOT_STARTED;
+ case 2: return OS_POLLING;
+ case 3: return OS_WAITING;
+ case 4: return OS_INTERMITTENT_ERROR;
+ case 5: return OS_BLOCKED_ON_SWAP;
+ case 6: return OS_BLOCKED_ON_WITHDRAWAL;
+ default: return null;
+ }
+ }
+
+ public static com.google.protobuf.Internal.EnumLiteMap.mistyswap_onramp.OnrampResultCode code = 1;
+ * @return The enum numeric value on the wire for code.
+ */
+ int getCodeValue();
+ /**
+ * .mistyswap_onramp.OnrampResultCode code = 1;
+ * @return The code.
+ */
+ mistyswap.MistyswapOnramp.OnrampResultCode getCode();
+
+ /**
+ * string message = 2;
+ * @return The message.
+ */
+ java.lang.String getMessage();
+ /**
+ * string message = 2;
+ * @return The bytes for message.
+ */
+ com.google.protobuf.ByteString
+ getMessageBytes();
+
+ /**
+ *
+ * For Credentials Already In Use, this is the onramp_id of the existing onramp.
+ *
+ *
+ * bytes onramp_id = 3;
+ * @return The onrampId.
+ */
+ com.google.protobuf.ByteString getOnrampId();
+
+ /**
+ *
+ * For Invalid Src/Dst asset id, this is the asset id that was invalid.
+ *
+ *
+ * string asset_id = 4;
+ * @return The assetId.
+ */
+ java.lang.String getAssetId();
+ /**
+ *
+ * For Invalid Src/Dst asset id, this is the asset id that was invalid.
+ *
+ *
+ * string asset_id = 4;
+ * @return The bytes for assetId.
+ */
+ com.google.protobuf.ByteString
+ getAssetIdBytes();
+ }
+ /**
+ *
+ */ A simplified GRPC-compatible wrapper for Result<_, mistyswap_onramp_api::Error>
+ *
+ *
+ * Protobuf type {@code mistyswap_onramp.OnrampResult}
+ */
+ public static final class OnrampResult extends
+ com.google.protobuf.GeneratedMessageLite<
+ OnrampResult, OnrampResult.Builder> implements
+ // @@protoc_insertion_point(message_implements:mistyswap_onramp.OnrampResult)
+ OnrampResultOrBuilder {
+ private OnrampResult() {
+ message_ = "";
+ onrampId_ = com.google.protobuf.ByteString.EMPTY;
+ assetId_ = "";
+ }
+ public static final int CODE_FIELD_NUMBER = 1;
+ private int code_;
+ /**
+ * .mistyswap_onramp.OnrampResultCode code = 1;
+ * @return The enum numeric value on the wire for code.
+ */
+ @java.lang.Override
+ public int getCodeValue() {
+ return code_;
+ }
+ /**
+ * .mistyswap_onramp.OnrampResultCode code = 1;
+ * @return The code.
+ */
+ @java.lang.Override
+ public mistyswap.MistyswapOnramp.OnrampResultCode getCode() {
+ mistyswap.MistyswapOnramp.OnrampResultCode result = mistyswap.MistyswapOnramp.OnrampResultCode.forNumber(code_);
+ return result == null ? mistyswap.MistyswapOnramp.OnrampResultCode.UNRECOGNIZED : result;
+ }
+ /**
+ * .mistyswap_onramp.OnrampResultCode code = 1;
+ * @param value The enum numeric value on the wire for code to set.
+ */
+ private void setCodeValue(int value) {
+ code_ = value;
+ }
+ /**
+ * .mistyswap_onramp.OnrampResultCode code = 1;
+ * @param value The code to set.
+ */
+ private void setCode(mistyswap.MistyswapOnramp.OnrampResultCode value) {
+ code_ = value.getNumber();
+
+ }
+ /**
+ * .mistyswap_onramp.OnrampResultCode code = 1;
+ */
+ private void clearCode() {
+
+ code_ = 0;
+ }
+
+ public static final int MESSAGE_FIELD_NUMBER = 2;
+ private java.lang.String message_;
+ /**
+ * string message = 2;
+ * @return The message.
+ */
+ @java.lang.Override
+ public java.lang.String getMessage() {
+ return message_;
+ }
+ /**
+ * string message = 2;
+ * @return The bytes for message.
+ */
+ @java.lang.Override
+ public com.google.protobuf.ByteString
+ getMessageBytes() {
+ return com.google.protobuf.ByteString.copyFromUtf8(message_);
+ }
+ /**
+ * string message = 2;
+ * @param value The message to set.
+ */
+ private void setMessage(
+ java.lang.String value) {
+ java.lang.Class> valueClass = value.getClass();
+
+ message_ = value;
+ }
+ /**
+ * string message = 2;
+ */
+ private void clearMessage() {
+
+ message_ = getDefaultInstance().getMessage();
+ }
+ /**
+ * string message = 2;
+ * @param value The bytes for message to set.
+ */
+ private void setMessageBytes(
+ com.google.protobuf.ByteString value) {
+ checkByteStringIsUtf8(value);
+ message_ = value.toStringUtf8();
+
+ }
+
+ public static final int ONRAMP_ID_FIELD_NUMBER = 3;
+ private com.google.protobuf.ByteString onrampId_;
+ /**
+ *
+ * For Credentials Already In Use, this is the onramp_id of the existing onramp.
+ *
+ *
+ * bytes onramp_id = 3;
+ * @return The onrampId.
+ */
+ @java.lang.Override
+ public com.google.protobuf.ByteString getOnrampId() {
+ return onrampId_;
+ }
+ /**
+ *
+ * For Credentials Already In Use, this is the onramp_id of the existing onramp.
+ *
+ *
+ * bytes onramp_id = 3;
+ * @param value The onrampId to set.
+ */
+ private void setOnrampId(com.google.protobuf.ByteString value) {
+ java.lang.Class> valueClass = value.getClass();
+
+ onrampId_ = value;
+ }
+ /**
+ *
+ * For Credentials Already In Use, this is the onramp_id of the existing onramp.
+ *
+ *
+ * bytes onramp_id = 3;
+ */
+ private void clearOnrampId() {
+
+ onrampId_ = getDefaultInstance().getOnrampId();
+ }
+
+ public static final int ASSET_ID_FIELD_NUMBER = 4;
+ private java.lang.String assetId_;
+ /**
+ *
+ * For Invalid Src/Dst asset id, this is the asset id that was invalid.
+ *
+ *
+ * string asset_id = 4;
+ * @return The assetId.
+ */
+ @java.lang.Override
+ public java.lang.String getAssetId() {
+ return assetId_;
+ }
+ /**
+ *
+ * For Invalid Src/Dst asset id, this is the asset id that was invalid.
+ *
+ *
+ * string asset_id = 4;
+ * @return The bytes for assetId.
+ */
+ @java.lang.Override
+ public com.google.protobuf.ByteString
+ getAssetIdBytes() {
+ return com.google.protobuf.ByteString.copyFromUtf8(assetId_);
+ }
+ /**
+ *
+ * For Invalid Src/Dst asset id, this is the asset id that was invalid.
+ *
+ *
+ * string asset_id = 4;
+ * @param value The assetId to set.
+ */
+ private void setAssetId(
+ java.lang.String value) {
+ java.lang.Class> valueClass = value.getClass();
+
+ assetId_ = value;
+ }
+ /**
+ *
+ * For Invalid Src/Dst asset id, this is the asset id that was invalid.
+ *
+ *
+ * string asset_id = 4;
+ */
+ private void clearAssetId() {
+
+ assetId_ = getDefaultInstance().getAssetId();
+ }
+ /**
+ *
+ * For Invalid Src/Dst asset id, this is the asset id that was invalid.
+ *
+ *
+ * string asset_id = 4;
+ * @param value The bytes for assetId to set.
+ */
+ private void setAssetIdBytes(
+ com.google.protobuf.ByteString value) {
+ checkByteStringIsUtf8(value);
+ assetId_ = value.toStringUtf8();
+
+ }
+
+ public static mistyswap.MistyswapOnramp.OnrampResult parseFrom(
+ java.nio.ByteBuffer data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return com.google.protobuf.GeneratedMessageLite.parseFrom(
+ DEFAULT_INSTANCE, data);
+ }
+ public static mistyswap.MistyswapOnramp.OnrampResult parseFrom(
+ java.nio.ByteBuffer data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return com.google.protobuf.GeneratedMessageLite.parseFrom(
+ DEFAULT_INSTANCE, data, extensionRegistry);
+ }
+ public static mistyswap.MistyswapOnramp.OnrampResult parseFrom(
+ com.google.protobuf.ByteString data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return com.google.protobuf.GeneratedMessageLite.parseFrom(
+ DEFAULT_INSTANCE, data);
+ }
+ public static mistyswap.MistyswapOnramp.OnrampResult parseFrom(
+ com.google.protobuf.ByteString data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return com.google.protobuf.GeneratedMessageLite.parseFrom(
+ DEFAULT_INSTANCE, data, extensionRegistry);
+ }
+ public static mistyswap.MistyswapOnramp.OnrampResult parseFrom(byte[] data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return com.google.protobuf.GeneratedMessageLite.parseFrom(
+ DEFAULT_INSTANCE, data);
+ }
+ public static mistyswap.MistyswapOnramp.OnrampResult parseFrom(
+ byte[] data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return com.google.protobuf.GeneratedMessageLite.parseFrom(
+ DEFAULT_INSTANCE, data, extensionRegistry);
+ }
+ public static mistyswap.MistyswapOnramp.OnrampResult parseFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageLite.parseFrom(
+ DEFAULT_INSTANCE, input);
+ }
+ public static mistyswap.MistyswapOnramp.OnrampResult parseFrom(
+ java.io.InputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageLite.parseFrom(
+ DEFAULT_INSTANCE, input, extensionRegistry);
+ }
+ public static mistyswap.MistyswapOnramp.OnrampResult parseDelimitedFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return parseDelimitedFrom(DEFAULT_INSTANCE, input);
+ }
+ public static mistyswap.MistyswapOnramp.OnrampResult parseDelimitedFrom(
+ java.io.InputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return parseDelimitedFrom(DEFAULT_INSTANCE, input, extensionRegistry);
+ }
+ public static mistyswap.MistyswapOnramp.OnrampResult parseFrom(
+ com.google.protobuf.CodedInputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageLite.parseFrom(
+ DEFAULT_INSTANCE, input);
+ }
+ public static mistyswap.MistyswapOnramp.OnrampResult parseFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageLite.parseFrom(
+ DEFAULT_INSTANCE, input, extensionRegistry);
+ }
+
+ public static Builder newBuilder() {
+ return (Builder) DEFAULT_INSTANCE.createBuilder();
+ }
+ public static Builder newBuilder(mistyswap.MistyswapOnramp.OnrampResult prototype) {
+ return (Builder) DEFAULT_INSTANCE.createBuilder(prototype);
+ }
+
+ /**
+ *
+ */ A simplified GRPC-compatible wrapper for Result<_, mistyswap_onramp_api::Error>
+ *
+ *
+ * Protobuf type {@code mistyswap_onramp.OnrampResult}
+ */
+ public static final class Builder extends
+ com.google.protobuf.GeneratedMessageLite.Builder<
+ mistyswap.MistyswapOnramp.OnrampResult, Builder> implements
+ // @@protoc_insertion_point(builder_implements:mistyswap_onramp.OnrampResult)
+ mistyswap.MistyswapOnramp.OnrampResultOrBuilder {
+ // Construct using mistyswap.MistyswapOnramp.OnrampResult.newBuilder()
+ private Builder() {
+ super(DEFAULT_INSTANCE);
+ }
+
+
+ /**
+ * .mistyswap_onramp.OnrampResultCode code = 1;
+ * @return The enum numeric value on the wire for code.
+ */
+ @java.lang.Override
+ public int getCodeValue() {
+ return instance.getCodeValue();
+ }
+ /**
+ * .mistyswap_onramp.OnrampResultCode code = 1;
+ * @param value The code to set.
+ * @return This builder for chaining.
+ */
+ public Builder setCodeValue(int value) {
+ copyOnWrite();
+ instance.setCodeValue(value);
+ return this;
+ }
+ /**
+ * .mistyswap_onramp.OnrampResultCode code = 1;
+ * @return The code.
+ */
+ @java.lang.Override
+ public mistyswap.MistyswapOnramp.OnrampResultCode getCode() {
+ return instance.getCode();
+ }
+ /**
+ * .mistyswap_onramp.OnrampResultCode code = 1;
+ * @param value The enum numeric value on the wire for code to set.
+ * @return This builder for chaining.
+ */
+ public Builder setCode(mistyswap.MistyswapOnramp.OnrampResultCode value) {
+ copyOnWrite();
+ instance.setCode(value);
+ return this;
+ }
+ /**
+ * .mistyswap_onramp.OnrampResultCode code = 1;
+ * @return This builder for chaining.
+ */
+ public Builder clearCode() {
+ copyOnWrite();
+ instance.clearCode();
+ return this;
+ }
+
+ /**
+ * string message = 2;
+ * @return The message.
+ */
+ @java.lang.Override
+ public java.lang.String getMessage() {
+ return instance.getMessage();
+ }
+ /**
+ * string message = 2;
+ * @return The bytes for message.
+ */
+ @java.lang.Override
+ public com.google.protobuf.ByteString
+ getMessageBytes() {
+ return instance.getMessageBytes();
+ }
+ /**
+ * string message = 2;
+ * @param value The message to set.
+ * @return This builder for chaining.
+ */
+ public Builder setMessage(
+ java.lang.String value) {
+ copyOnWrite();
+ instance.setMessage(value);
+ return this;
+ }
+ /**
+ * string message = 2;
+ * @return This builder for chaining.
+ */
+ public Builder clearMessage() {
+ copyOnWrite();
+ instance.clearMessage();
+ return this;
+ }
+ /**
+ * string message = 2;
+ * @param value The bytes for message to set.
+ * @return This builder for chaining.
+ */
+ public Builder setMessageBytes(
+ com.google.protobuf.ByteString value) {
+ copyOnWrite();
+ instance.setMessageBytes(value);
+ return this;
+ }
+
+ /**
+ *
+ * For Credentials Already In Use, this is the onramp_id of the existing onramp.
+ *
+ *
+ * bytes onramp_id = 3;
+ * @return The onrampId.
+ */
+ @java.lang.Override
+ public com.google.protobuf.ByteString getOnrampId() {
+ return instance.getOnrampId();
+ }
+ /**
+ *
+ * For Credentials Already In Use, this is the onramp_id of the existing onramp.
+ *
+ *
+ * bytes onramp_id = 3;
+ * @param value The onrampId to set.
+ * @return This builder for chaining.
+ */
+ public Builder setOnrampId(com.google.protobuf.ByteString value) {
+ copyOnWrite();
+ instance.setOnrampId(value);
+ return this;
+ }
+ /**
+ *
+ * For Credentials Already In Use, this is the onramp_id of the existing onramp.
+ *
+ *
+ * bytes onramp_id = 3;
+ * @return This builder for chaining.
+ */
+ public Builder clearOnrampId() {
+ copyOnWrite();
+ instance.clearOnrampId();
+ return this;
+ }
+
+ /**
+ *
+ * For Invalid Src/Dst asset id, this is the asset id that was invalid.
+ *
+ *
+ * string asset_id = 4;
+ * @return The assetId.
+ */
+ @java.lang.Override
+ public java.lang.String getAssetId() {
+ return instance.getAssetId();
+ }
+ /**
+ *
+ * For Invalid Src/Dst asset id, this is the asset id that was invalid.
+ *
+ *
+ * string asset_id = 4;
+ * @return The bytes for assetId.
+ */
+ @java.lang.Override
+ public com.google.protobuf.ByteString
+ getAssetIdBytes() {
+ return instance.getAssetIdBytes();
+ }
+ /**
+ *
+ * For Invalid Src/Dst asset id, this is the asset id that was invalid.
+ *
+ *
+ * string asset_id = 4;
+ * @param value The assetId to set.
+ * @return This builder for chaining.
+ */
+ public Builder setAssetId(
+ java.lang.String value) {
+ copyOnWrite();
+ instance.setAssetId(value);
+ return this;
+ }
+ /**
+ *
+ * For Invalid Src/Dst asset id, this is the asset id that was invalid.
+ *
+ *
+ * string asset_id = 4;
+ * @return This builder for chaining.
+ */
+ public Builder clearAssetId() {
+ copyOnWrite();
+ instance.clearAssetId();
+ return this;
+ }
+ /**
+ *
+ * For Invalid Src/Dst asset id, this is the asset id that was invalid.
+ *
+ *
+ * string asset_id = 4;
+ * @param value The bytes for assetId to set.
+ * @return This builder for chaining.
+ */
+ public Builder setAssetIdBytes(
+ com.google.protobuf.ByteString value) {
+ copyOnWrite();
+ instance.setAssetIdBytes(value);
+ return this;
+ }
+
+ // @@protoc_insertion_point(builder_scope:mistyswap_onramp.OnrampResult)
+ }
+ @java.lang.Override
+ @java.lang.SuppressWarnings({"unchecked", "fallthrough"})
+ protected final java.lang.Object dynamicMethod(
+ com.google.protobuf.GeneratedMessageLite.MethodToInvoke method,
+ java.lang.Object arg0, java.lang.Object arg1) {
+ switch (method) {
+ case NEW_MUTABLE_INSTANCE: {
+ return new mistyswap.MistyswapOnramp.OnrampResult();
+ }
+ case NEW_BUILDER: {
+ return new Builder();
+ }
+ case BUILD_MESSAGE_INFO: {
+ java.lang.Object[] objects = new java.lang.Object[] {
+ "code_",
+ "message_",
+ "onrampId_",
+ "assetId_",
+ };
+ java.lang.String info =
+ "\u0000\u0004\u0000\u0000\u0001\u0004\u0004\u0000\u0000\u0000\u0001\f\u0002\u0208" +
+ "\u0003\n\u0004\u0208";
+ return newMessageInfo(DEFAULT_INSTANCE, info, objects);
+ }
+ // fall through
+ case GET_DEFAULT_INSTANCE: {
+ return DEFAULT_INSTANCE;
+ }
+ case GET_PARSER: {
+ com.google.protobuf.Parser
+ */ The asset id we will be swapping into. This will be a MobileCoin token such as MOB or EUSD.
+ *
+ *
+ * string dst_asset_id = 1;
+ * @return The dstAssetId.
+ */
+ java.lang.String getDstAssetId();
+ /**
+ *
+ */ The asset id we will be swapping into. This will be a MobileCoin token such as MOB or EUSD.
+ *
+ *
+ * string dst_asset_id = 1;
+ * @return The bytes for dstAssetId.
+ */
+ com.google.protobuf.ByteString
+ getDstAssetIdBytes();
+
+ /**
+ *
+ */ A map of Mixin asset UUID to minimum swap rate (as a decimal number). For example,
+ * / if dst_asset_id is EUSD, and this map contains an entry (USDC, 0.95), and we receive 10 USDC,
+ * / we will set the minimum amount received from the swap to 9.5 EUSD.
+ * / This allows the client to control how much slippage it is willing to tolerate when performing swaps.
+ *
+ *
+ * map<string, string> src_asset_id_to_min_swap_rate = 2;
+ */
+ int getSrcAssetIdToMinSwapRateCount();
+ /**
+ *
+ */ A map of Mixin asset UUID to minimum swap rate (as a decimal number). For example,
+ * / if dst_asset_id is EUSD, and this map contains an entry (USDC, 0.95), and we receive 10 USDC,
+ * / we will set the minimum amount received from the swap to 9.5 EUSD.
+ * / This allows the client to control how much slippage it is willing to tolerate when performing swaps.
+ *
+ *
+ * map<string, string> src_asset_id_to_min_swap_rate = 2;
+ */
+ boolean containsSrcAssetIdToMinSwapRate(
+ java.lang.String key);
+ /**
+ * Use {@link #getSrcAssetIdToMinSwapRateMap()} instead.
+ */
+ @java.lang.Deprecated
+ java.util.Map
+ */ A map of Mixin asset UUID to minimum swap rate (as a decimal number). For example,
+ * / if dst_asset_id is EUSD, and this map contains an entry (USDC, 0.95), and we receive 10 USDC,
+ * / we will set the minimum amount received from the swap to 9.5 EUSD.
+ * / This allows the client to control how much slippage it is willing to tolerate when performing swaps.
+ *
+ *
+ * map<string, string> src_asset_id_to_min_swap_rate = 2;
+ */
+ java.util.Map
+ */ A map of Mixin asset UUID to minimum swap rate (as a decimal number). For example,
+ * / if dst_asset_id is EUSD, and this map contains an entry (USDC, 0.95), and we receive 10 USDC,
+ * / we will set the minimum amount received from the swap to 9.5 EUSD.
+ * / This allows the client to control how much slippage it is willing to tolerate when performing swaps.
+ *
+ *
+ * map<string, string> src_asset_id_to_min_swap_rate = 2;
+ */
+
+ /* nullable */
+java.lang.String getSrcAssetIdToMinSwapRateOrDefault(
+ java.lang.String key,
+ /* nullable */
+java.lang.String defaultValue);
+ /**
+ *
+ */ A map of Mixin asset UUID to minimum swap rate (as a decimal number). For example,
+ * / if dst_asset_id is EUSD, and this map contains an entry (USDC, 0.95), and we receive 10 USDC,
+ * / we will set the minimum amount received from the swap to 9.5 EUSD.
+ * / This allows the client to control how much slippage it is willing to tolerate when performing swaps.
+ *
+ *
+ * map<string, string> src_asset_id_to_min_swap_rate = 2;
+ */
+
+ java.lang.String getSrcAssetIdToMinSwapRateOrThrow(
+ java.lang.String key);
+
+ /**
+ *
+ */ The destination address to withdraw to after a successful swap.
+ *
+ *
+ * string dst_address = 3;
+ * @return The dstAddress.
+ */
+ java.lang.String getDstAddress();
+ /**
+ *
+ */ The destination address to withdraw to after a successful swap.
+ *
+ *
+ * string dst_address = 3;
+ * @return The bytes for dstAddress.
+ */
+ com.google.protobuf.ByteString
+ getDstAddressBytes();
+
+ /**
+ *
+ */ The minimum withdrawal amount (as a decimal number). We will only withdraw if our balance exceeds this value.
+ * / This helps wasting fees on small withdrawals.
+ *
+ *
+ * string min_withdrawal_amount = 4;
+ * @return The minWithdrawalAmount.
+ */
+ java.lang.String getMinWithdrawalAmount();
+ /**
+ *
+ */ The minimum withdrawal amount (as a decimal number). We will only withdraw if our balance exceeds this value.
+ * / This helps wasting fees on small withdrawals.
+ *
+ *
+ * string min_withdrawal_amount = 4;
+ * @return The bytes for minWithdrawalAmount.
+ */
+ com.google.protobuf.ByteString
+ getMinWithdrawalAmountBytes();
+ }
+ /**
+ *
+ */ Onramp parameters.
+ * / They are separated from the credentials since they are not as sensitive, and it makes it
+ * / easier to include them to the client in the response to GetOnrampStatus calls.
+ *
+ *
+ * Protobuf type {@code mistyswap_onramp.OnrampParams}
+ */
+ public static final class OnrampParams extends
+ com.google.protobuf.GeneratedMessageLite<
+ OnrampParams, OnrampParams.Builder> implements
+ // @@protoc_insertion_point(message_implements:mistyswap_onramp.OnrampParams)
+ OnrampParamsOrBuilder {
+ private OnrampParams() {
+ dstAssetId_ = "";
+ dstAddress_ = "";
+ minWithdrawalAmount_ = "";
+ }
+ public static final int DST_ASSET_ID_FIELD_NUMBER = 1;
+ private java.lang.String dstAssetId_;
+ /**
+ *
+ */ The asset id we will be swapping into. This will be a MobileCoin token such as MOB or EUSD.
+ *
+ *
+ * string dst_asset_id = 1;
+ * @return The dstAssetId.
+ */
+ @java.lang.Override
+ public java.lang.String getDstAssetId() {
+ return dstAssetId_;
+ }
+ /**
+ *
+ */ The asset id we will be swapping into. This will be a MobileCoin token such as MOB or EUSD.
+ *
+ *
+ * string dst_asset_id = 1;
+ * @return The bytes for dstAssetId.
+ */
+ @java.lang.Override
+ public com.google.protobuf.ByteString
+ getDstAssetIdBytes() {
+ return com.google.protobuf.ByteString.copyFromUtf8(dstAssetId_);
+ }
+ /**
+ *
+ */ The asset id we will be swapping into. This will be a MobileCoin token such as MOB or EUSD.
+ *
+ *
+ * string dst_asset_id = 1;
+ * @param value The dstAssetId to set.
+ */
+ private void setDstAssetId(
+ java.lang.String value) {
+ java.lang.Class> valueClass = value.getClass();
+
+ dstAssetId_ = value;
+ }
+ /**
+ *
+ */ The asset id we will be swapping into. This will be a MobileCoin token such as MOB or EUSD.
+ *
+ *
+ * string dst_asset_id = 1;
+ */
+ private void clearDstAssetId() {
+
+ dstAssetId_ = getDefaultInstance().getDstAssetId();
+ }
+ /**
+ *
+ */ The asset id we will be swapping into. This will be a MobileCoin token such as MOB or EUSD.
+ *
+ *
+ * string dst_asset_id = 1;
+ * @param value The bytes for dstAssetId to set.
+ */
+ private void setDstAssetIdBytes(
+ com.google.protobuf.ByteString value) {
+ checkByteStringIsUtf8(value);
+ dstAssetId_ = value.toStringUtf8();
+
+ }
+
+ public static final int SRC_ASSET_ID_TO_MIN_SWAP_RATE_FIELD_NUMBER = 2;
+ private static final class SrcAssetIdToMinSwapRateDefaultEntryHolder {
+ static final com.google.protobuf.MapEntryLite<
+ java.lang.String, java.lang.String> defaultEntry =
+ com.google.protobuf.MapEntryLite
+ .
+ */ A map of Mixin asset UUID to minimum swap rate (as a decimal number). For example,
+ * / if dst_asset_id is EUSD, and this map contains an entry (USDC, 0.95), and we receive 10 USDC,
+ * / we will set the minimum amount received from the swap to 9.5 EUSD.
+ * / This allows the client to control how much slippage it is willing to tolerate when performing swaps.
+ *
+ *
+ * map<string, string> src_asset_id_to_min_swap_rate = 2;
+ */
+ @java.lang.Override
+
+ public boolean containsSrcAssetIdToMinSwapRate(
+ java.lang.String key) {
+ java.lang.Class> keyClass = key.getClass();
+ return internalGetSrcAssetIdToMinSwapRate().containsKey(key);
+ }
+ /**
+ * Use {@link #getSrcAssetIdToMinSwapRateMap()} instead.
+ */
+ @java.lang.Override
+ @java.lang.Deprecated
+ public java.util.Map
+ */ A map of Mixin asset UUID to minimum swap rate (as a decimal number). For example,
+ * / if dst_asset_id is EUSD, and this map contains an entry (USDC, 0.95), and we receive 10 USDC,
+ * / we will set the minimum amount received from the swap to 9.5 EUSD.
+ * / This allows the client to control how much slippage it is willing to tolerate when performing swaps.
+ *
+ *
+ * map<string, string> src_asset_id_to_min_swap_rate = 2;
+ */
+ @java.lang.Override
+
+ public java.util.Map
+ */ A map of Mixin asset UUID to minimum swap rate (as a decimal number). For example,
+ * / if dst_asset_id is EUSD, and this map contains an entry (USDC, 0.95), and we receive 10 USDC,
+ * / we will set the minimum amount received from the swap to 9.5 EUSD.
+ * / This allows the client to control how much slippage it is willing to tolerate when performing swaps.
+ *
+ *
+ * map<string, string> src_asset_id_to_min_swap_rate = 2;
+ */
+ @java.lang.Override
+
+ public /* nullable */
+java.lang.String getSrcAssetIdToMinSwapRateOrDefault(
+ java.lang.String key,
+ /* nullable */
+java.lang.String defaultValue) {
+ java.lang.Class> keyClass = key.getClass();
+ java.util.Map
+ */ A map of Mixin asset UUID to minimum swap rate (as a decimal number). For example,
+ * / if dst_asset_id is EUSD, and this map contains an entry (USDC, 0.95), and we receive 10 USDC,
+ * / we will set the minimum amount received from the swap to 9.5 EUSD.
+ * / This allows the client to control how much slippage it is willing to tolerate when performing swaps.
+ *
+ *
+ * map<string, string> src_asset_id_to_min_swap_rate = 2;
+ */
+ @java.lang.Override
+
+ public java.lang.String getSrcAssetIdToMinSwapRateOrThrow(
+ java.lang.String key) {
+ java.lang.Class> keyClass = key.getClass();
+ java.util.Map
+ */ A map of Mixin asset UUID to minimum swap rate (as a decimal number). For example,
+ * / if dst_asset_id is EUSD, and this map contains an entry (USDC, 0.95), and we receive 10 USDC,
+ * / we will set the minimum amount received from the swap to 9.5 EUSD.
+ * / This allows the client to control how much slippage it is willing to tolerate when performing swaps.
+ *
+ *
+ * map<string, string> src_asset_id_to_min_swap_rate = 2;
+ */
+ private java.util.Map
+ */ The destination address to withdraw to after a successful swap.
+ *
+ *
+ * string dst_address = 3;
+ * @return The dstAddress.
+ */
+ @java.lang.Override
+ public java.lang.String getDstAddress() {
+ return dstAddress_;
+ }
+ /**
+ *
+ */ The destination address to withdraw to after a successful swap.
+ *
+ *
+ * string dst_address = 3;
+ * @return The bytes for dstAddress.
+ */
+ @java.lang.Override
+ public com.google.protobuf.ByteString
+ getDstAddressBytes() {
+ return com.google.protobuf.ByteString.copyFromUtf8(dstAddress_);
+ }
+ /**
+ *
+ */ The destination address to withdraw to after a successful swap.
+ *
+ *
+ * string dst_address = 3;
+ * @param value The dstAddress to set.
+ */
+ private void setDstAddress(
+ java.lang.String value) {
+ java.lang.Class> valueClass = value.getClass();
+
+ dstAddress_ = value;
+ }
+ /**
+ *
+ */ The destination address to withdraw to after a successful swap.
+ *
+ *
+ * string dst_address = 3;
+ */
+ private void clearDstAddress() {
+
+ dstAddress_ = getDefaultInstance().getDstAddress();
+ }
+ /**
+ *
+ */ The destination address to withdraw to after a successful swap.
+ *
+ *
+ * string dst_address = 3;
+ * @param value The bytes for dstAddress to set.
+ */
+ private void setDstAddressBytes(
+ com.google.protobuf.ByteString value) {
+ checkByteStringIsUtf8(value);
+ dstAddress_ = value.toStringUtf8();
+
+ }
+
+ public static final int MIN_WITHDRAWAL_AMOUNT_FIELD_NUMBER = 4;
+ private java.lang.String minWithdrawalAmount_;
+ /**
+ *
+ */ The minimum withdrawal amount (as a decimal number). We will only withdraw if our balance exceeds this value.
+ * / This helps wasting fees on small withdrawals.
+ *
+ *
+ * string min_withdrawal_amount = 4;
+ * @return The minWithdrawalAmount.
+ */
+ @java.lang.Override
+ public java.lang.String getMinWithdrawalAmount() {
+ return minWithdrawalAmount_;
+ }
+ /**
+ *
+ */ The minimum withdrawal amount (as a decimal number). We will only withdraw if our balance exceeds this value.
+ * / This helps wasting fees on small withdrawals.
+ *
+ *
+ * string min_withdrawal_amount = 4;
+ * @return The bytes for minWithdrawalAmount.
+ */
+ @java.lang.Override
+ public com.google.protobuf.ByteString
+ getMinWithdrawalAmountBytes() {
+ return com.google.protobuf.ByteString.copyFromUtf8(minWithdrawalAmount_);
+ }
+ /**
+ *
+ */ The minimum withdrawal amount (as a decimal number). We will only withdraw if our balance exceeds this value.
+ * / This helps wasting fees on small withdrawals.
+ *
+ *
+ * string min_withdrawal_amount = 4;
+ * @param value The minWithdrawalAmount to set.
+ */
+ private void setMinWithdrawalAmount(
+ java.lang.String value) {
+ java.lang.Class> valueClass = value.getClass();
+
+ minWithdrawalAmount_ = value;
+ }
+ /**
+ *
+ */ The minimum withdrawal amount (as a decimal number). We will only withdraw if our balance exceeds this value.
+ * / This helps wasting fees on small withdrawals.
+ *
+ *
+ * string min_withdrawal_amount = 4;
+ */
+ private void clearMinWithdrawalAmount() {
+
+ minWithdrawalAmount_ = getDefaultInstance().getMinWithdrawalAmount();
+ }
+ /**
+ *
+ */ The minimum withdrawal amount (as a decimal number). We will only withdraw if our balance exceeds this value.
+ * / This helps wasting fees on small withdrawals.
+ *
+ *
+ * string min_withdrawal_amount = 4;
+ * @param value The bytes for minWithdrawalAmount to set.
+ */
+ private void setMinWithdrawalAmountBytes(
+ com.google.protobuf.ByteString value) {
+ checkByteStringIsUtf8(value);
+ minWithdrawalAmount_ = value.toStringUtf8();
+
+ }
+
+ public static mistyswap.MistyswapOnramp.OnrampParams parseFrom(
+ java.nio.ByteBuffer data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return com.google.protobuf.GeneratedMessageLite.parseFrom(
+ DEFAULT_INSTANCE, data);
+ }
+ public static mistyswap.MistyswapOnramp.OnrampParams parseFrom(
+ java.nio.ByteBuffer data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return com.google.protobuf.GeneratedMessageLite.parseFrom(
+ DEFAULT_INSTANCE, data, extensionRegistry);
+ }
+ public static mistyswap.MistyswapOnramp.OnrampParams parseFrom(
+ com.google.protobuf.ByteString data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return com.google.protobuf.GeneratedMessageLite.parseFrom(
+ DEFAULT_INSTANCE, data);
+ }
+ public static mistyswap.MistyswapOnramp.OnrampParams parseFrom(
+ com.google.protobuf.ByteString data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return com.google.protobuf.GeneratedMessageLite.parseFrom(
+ DEFAULT_INSTANCE, data, extensionRegistry);
+ }
+ public static mistyswap.MistyswapOnramp.OnrampParams parseFrom(byte[] data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return com.google.protobuf.GeneratedMessageLite.parseFrom(
+ DEFAULT_INSTANCE, data);
+ }
+ public static mistyswap.MistyswapOnramp.OnrampParams parseFrom(
+ byte[] data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return com.google.protobuf.GeneratedMessageLite.parseFrom(
+ DEFAULT_INSTANCE, data, extensionRegistry);
+ }
+ public static mistyswap.MistyswapOnramp.OnrampParams parseFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageLite.parseFrom(
+ DEFAULT_INSTANCE, input);
+ }
+ public static mistyswap.MistyswapOnramp.OnrampParams parseFrom(
+ java.io.InputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageLite.parseFrom(
+ DEFAULT_INSTANCE, input, extensionRegistry);
+ }
+ public static mistyswap.MistyswapOnramp.OnrampParams parseDelimitedFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return parseDelimitedFrom(DEFAULT_INSTANCE, input);
+ }
+ public static mistyswap.MistyswapOnramp.OnrampParams parseDelimitedFrom(
+ java.io.InputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return parseDelimitedFrom(DEFAULT_INSTANCE, input, extensionRegistry);
+ }
+ public static mistyswap.MistyswapOnramp.OnrampParams parseFrom(
+ com.google.protobuf.CodedInputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageLite.parseFrom(
+ DEFAULT_INSTANCE, input);
+ }
+ public static mistyswap.MistyswapOnramp.OnrampParams parseFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageLite.parseFrom(
+ DEFAULT_INSTANCE, input, extensionRegistry);
+ }
+
+ public static Builder newBuilder() {
+ return (Builder) DEFAULT_INSTANCE.createBuilder();
+ }
+ public static Builder newBuilder(mistyswap.MistyswapOnramp.OnrampParams prototype) {
+ return (Builder) DEFAULT_INSTANCE.createBuilder(prototype);
+ }
+
+ /**
+ *
+ */ Onramp parameters.
+ * / They are separated from the credentials since they are not as sensitive, and it makes it
+ * / easier to include them to the client in the response to GetOnrampStatus calls.
+ *
+ *
+ * Protobuf type {@code mistyswap_onramp.OnrampParams}
+ */
+ public static final class Builder extends
+ com.google.protobuf.GeneratedMessageLite.Builder<
+ mistyswap.MistyswapOnramp.OnrampParams, Builder> implements
+ // @@protoc_insertion_point(builder_implements:mistyswap_onramp.OnrampParams)
+ mistyswap.MistyswapOnramp.OnrampParamsOrBuilder {
+ // Construct using mistyswap.MistyswapOnramp.OnrampParams.newBuilder()
+ private Builder() {
+ super(DEFAULT_INSTANCE);
+ }
+
+
+ /**
+ *
+ */ The asset id we will be swapping into. This will be a MobileCoin token such as MOB or EUSD.
+ *
+ *
+ * string dst_asset_id = 1;
+ * @return The dstAssetId.
+ */
+ @java.lang.Override
+ public java.lang.String getDstAssetId() {
+ return instance.getDstAssetId();
+ }
+ /**
+ *
+ */ The asset id we will be swapping into. This will be a MobileCoin token such as MOB or EUSD.
+ *
+ *
+ * string dst_asset_id = 1;
+ * @return The bytes for dstAssetId.
+ */
+ @java.lang.Override
+ public com.google.protobuf.ByteString
+ getDstAssetIdBytes() {
+ return instance.getDstAssetIdBytes();
+ }
+ /**
+ *
+ */ The asset id we will be swapping into. This will be a MobileCoin token such as MOB or EUSD.
+ *
+ *
+ * string dst_asset_id = 1;
+ * @param value The dstAssetId to set.
+ * @return This builder for chaining.
+ */
+ public Builder setDstAssetId(
+ java.lang.String value) {
+ copyOnWrite();
+ instance.setDstAssetId(value);
+ return this;
+ }
+ /**
+ *
+ */ The asset id we will be swapping into. This will be a MobileCoin token such as MOB or EUSD.
+ *
+ *
+ * string dst_asset_id = 1;
+ * @return This builder for chaining.
+ */
+ public Builder clearDstAssetId() {
+ copyOnWrite();
+ instance.clearDstAssetId();
+ return this;
+ }
+ /**
+ *
+ */ The asset id we will be swapping into. This will be a MobileCoin token such as MOB or EUSD.
+ *
+ *
+ * string dst_asset_id = 1;
+ * @param value The bytes for dstAssetId to set.
+ * @return This builder for chaining.
+ */
+ public Builder setDstAssetIdBytes(
+ com.google.protobuf.ByteString value) {
+ copyOnWrite();
+ instance.setDstAssetIdBytes(value);
+ return this;
+ }
+
+ @java.lang.Override
+
+ public int getSrcAssetIdToMinSwapRateCount() {
+ return instance.getSrcAssetIdToMinSwapRateMap().size();
+ }
+ /**
+ *
+ */ A map of Mixin asset UUID to minimum swap rate (as a decimal number). For example,
+ * / if dst_asset_id is EUSD, and this map contains an entry (USDC, 0.95), and we receive 10 USDC,
+ * / we will set the minimum amount received from the swap to 9.5 EUSD.
+ * / This allows the client to control how much slippage it is willing to tolerate when performing swaps.
+ *
+ *
+ * map<string, string> src_asset_id_to_min_swap_rate = 2;
+ */
+ @java.lang.Override
+
+ public boolean containsSrcAssetIdToMinSwapRate(
+ java.lang.String key) {
+ java.lang.Class> keyClass = key.getClass();
+ return instance.getSrcAssetIdToMinSwapRateMap().containsKey(key);
+ }
+
+ public Builder clearSrcAssetIdToMinSwapRate() {
+ copyOnWrite();
+ instance.getMutableSrcAssetIdToMinSwapRateMap().clear();
+ return this;
+ }
+ /**
+ *
+ */ A map of Mixin asset UUID to minimum swap rate (as a decimal number). For example,
+ * / if dst_asset_id is EUSD, and this map contains an entry (USDC, 0.95), and we receive 10 USDC,
+ * / we will set the minimum amount received from the swap to 9.5 EUSD.
+ * / This allows the client to control how much slippage it is willing to tolerate when performing swaps.
+ *
+ *
+ * map<string, string> src_asset_id_to_min_swap_rate = 2;
+ */
+
+ public Builder removeSrcAssetIdToMinSwapRate(
+ java.lang.String key) {
+ java.lang.Class> keyClass = key.getClass();
+ copyOnWrite();
+ instance.getMutableSrcAssetIdToMinSwapRateMap().remove(key);
+ return this;
+ }
+ /**
+ * Use {@link #getSrcAssetIdToMinSwapRateMap()} instead.
+ */
+ @java.lang.Override
+ @java.lang.Deprecated
+ public java.util.Map
+ */ A map of Mixin asset UUID to minimum swap rate (as a decimal number). For example,
+ * / if dst_asset_id is EUSD, and this map contains an entry (USDC, 0.95), and we receive 10 USDC,
+ * / we will set the minimum amount received from the swap to 9.5 EUSD.
+ * / This allows the client to control how much slippage it is willing to tolerate when performing swaps.
+ *
+ *
+ * map<string, string> src_asset_id_to_min_swap_rate = 2;
+ */
+ @java.lang.Override
+ public java.util.Map
+ */ A map of Mixin asset UUID to minimum swap rate (as a decimal number). For example,
+ * / if dst_asset_id is EUSD, and this map contains an entry (USDC, 0.95), and we receive 10 USDC,
+ * / we will set the minimum amount received from the swap to 9.5 EUSD.
+ * / This allows the client to control how much slippage it is willing to tolerate when performing swaps.
+ *
+ *
+ * map<string, string> src_asset_id_to_min_swap_rate = 2;
+ */
+ @java.lang.Override
+
+ public /* nullable */
+java.lang.String getSrcAssetIdToMinSwapRateOrDefault(
+ java.lang.String key,
+ /* nullable */
+java.lang.String defaultValue) {
+ java.lang.Class> keyClass = key.getClass();
+ java.util.Map
+ */ A map of Mixin asset UUID to minimum swap rate (as a decimal number). For example,
+ * / if dst_asset_id is EUSD, and this map contains an entry (USDC, 0.95), and we receive 10 USDC,
+ * / we will set the minimum amount received from the swap to 9.5 EUSD.
+ * / This allows the client to control how much slippage it is willing to tolerate when performing swaps.
+ *
+ *
+ * map<string, string> src_asset_id_to_min_swap_rate = 2;
+ */
+ @java.lang.Override
+
+ public java.lang.String getSrcAssetIdToMinSwapRateOrThrow(
+ java.lang.String key) {
+ java.lang.Class> keyClass = key.getClass();
+ java.util.Map
+ */ A map of Mixin asset UUID to minimum swap rate (as a decimal number). For example,
+ * / if dst_asset_id is EUSD, and this map contains an entry (USDC, 0.95), and we receive 10 USDC,
+ * / we will set the minimum amount received from the swap to 9.5 EUSD.
+ * / This allows the client to control how much slippage it is willing to tolerate when performing swaps.
+ *
+ *
+ * map<string, string> src_asset_id_to_min_swap_rate = 2;
+ */
+ public Builder putSrcAssetIdToMinSwapRate(
+ java.lang.String key,
+ java.lang.String value) {
+ java.lang.Class> keyClass = key.getClass();
+ java.lang.Class> valueClass = value.getClass();
+ copyOnWrite();
+ instance.getMutableSrcAssetIdToMinSwapRateMap().put(key, value);
+ return this;
+ }
+ /**
+ *
+ */ A map of Mixin asset UUID to minimum swap rate (as a decimal number). For example,
+ * / if dst_asset_id is EUSD, and this map contains an entry (USDC, 0.95), and we receive 10 USDC,
+ * / we will set the minimum amount received from the swap to 9.5 EUSD.
+ * / This allows the client to control how much slippage it is willing to tolerate when performing swaps.
+ *
+ *
+ * map<string, string> src_asset_id_to_min_swap_rate = 2;
+ */
+ public Builder putAllSrcAssetIdToMinSwapRate(
+ java.util.Map
+ */ The destination address to withdraw to after a successful swap.
+ *
+ *
+ * string dst_address = 3;
+ * @return The dstAddress.
+ */
+ @java.lang.Override
+ public java.lang.String getDstAddress() {
+ return instance.getDstAddress();
+ }
+ /**
+ *
+ */ The destination address to withdraw to after a successful swap.
+ *
+ *
+ * string dst_address = 3;
+ * @return The bytes for dstAddress.
+ */
+ @java.lang.Override
+ public com.google.protobuf.ByteString
+ getDstAddressBytes() {
+ return instance.getDstAddressBytes();
+ }
+ /**
+ *
+ */ The destination address to withdraw to after a successful swap.
+ *
+ *
+ * string dst_address = 3;
+ * @param value The dstAddress to set.
+ * @return This builder for chaining.
+ */
+ public Builder setDstAddress(
+ java.lang.String value) {
+ copyOnWrite();
+ instance.setDstAddress(value);
+ return this;
+ }
+ /**
+ *
+ */ The destination address to withdraw to after a successful swap.
+ *
+ *
+ * string dst_address = 3;
+ * @return This builder for chaining.
+ */
+ public Builder clearDstAddress() {
+ copyOnWrite();
+ instance.clearDstAddress();
+ return this;
+ }
+ /**
+ *
+ */ The destination address to withdraw to after a successful swap.
+ *
+ *
+ * string dst_address = 3;
+ * @param value The bytes for dstAddress to set.
+ * @return This builder for chaining.
+ */
+ public Builder setDstAddressBytes(
+ com.google.protobuf.ByteString value) {
+ copyOnWrite();
+ instance.setDstAddressBytes(value);
+ return this;
+ }
+
+ /**
+ *
+ */ The minimum withdrawal amount (as a decimal number). We will only withdraw if our balance exceeds this value.
+ * / This helps wasting fees on small withdrawals.
+ *
+ *
+ * string min_withdrawal_amount = 4;
+ * @return The minWithdrawalAmount.
+ */
+ @java.lang.Override
+ public java.lang.String getMinWithdrawalAmount() {
+ return instance.getMinWithdrawalAmount();
+ }
+ /**
+ *
+ */ The minimum withdrawal amount (as a decimal number). We will only withdraw if our balance exceeds this value.
+ * / This helps wasting fees on small withdrawals.
+ *
+ *
+ * string min_withdrawal_amount = 4;
+ * @return The bytes for minWithdrawalAmount.
+ */
+ @java.lang.Override
+ public com.google.protobuf.ByteString
+ getMinWithdrawalAmountBytes() {
+ return instance.getMinWithdrawalAmountBytes();
+ }
+ /**
+ *
+ */ The minimum withdrawal amount (as a decimal number). We will only withdraw if our balance exceeds this value.
+ * / This helps wasting fees on small withdrawals.
+ *
+ *
+ * string min_withdrawal_amount = 4;
+ * @param value The minWithdrawalAmount to set.
+ * @return This builder for chaining.
+ */
+ public Builder setMinWithdrawalAmount(
+ java.lang.String value) {
+ copyOnWrite();
+ instance.setMinWithdrawalAmount(value);
+ return this;
+ }
+ /**
+ *
+ */ The minimum withdrawal amount (as a decimal number). We will only withdraw if our balance exceeds this value.
+ * / This helps wasting fees on small withdrawals.
+ *
+ *
+ * string min_withdrawal_amount = 4;
+ * @return This builder for chaining.
+ */
+ public Builder clearMinWithdrawalAmount() {
+ copyOnWrite();
+ instance.clearMinWithdrawalAmount();
+ return this;
+ }
+ /**
+ *
+ */ The minimum withdrawal amount (as a decimal number). We will only withdraw if our balance exceeds this value.
+ * / This helps wasting fees on small withdrawals.
+ *
+ *
+ * string min_withdrawal_amount = 4;
+ * @param value The bytes for minWithdrawalAmount to set.
+ * @return This builder for chaining.
+ */
+ public Builder setMinWithdrawalAmountBytes(
+ com.google.protobuf.ByteString value) {
+ copyOnWrite();
+ instance.setMinWithdrawalAmountBytes(value);
+ return this;
+ }
+
+ // @@protoc_insertion_point(builder_scope:mistyswap_onramp.OnrampParams)
+ }
+ @java.lang.Override
+ @java.lang.SuppressWarnings({"unchecked", "fallthrough"})
+ protected final java.lang.Object dynamicMethod(
+ com.google.protobuf.GeneratedMessageLite.MethodToInvoke method,
+ java.lang.Object arg0, java.lang.Object arg1) {
+ switch (method) {
+ case NEW_MUTABLE_INSTANCE: {
+ return new mistyswap.MistyswapOnramp.OnrampParams();
+ }
+ case NEW_BUILDER: {
+ return new Builder();
+ }
+ case BUILD_MESSAGE_INFO: {
+ java.lang.Object[] objects = new java.lang.Object[] {
+ "dstAssetId_",
+ "srcAssetIdToMinSwapRate_",
+ SrcAssetIdToMinSwapRateDefaultEntryHolder.defaultEntry,
+ "dstAddress_",
+ "minWithdrawalAmount_",
+ };
+ java.lang.String info =
+ "\u0000\u0004\u0000\u0000\u0001\u0004\u0004\u0001\u0000\u0000\u0001\u0208\u00022\u0003" +
+ "\u0208\u0004\u0208";
+ return newMessageInfo(DEFAULT_INSTANCE, info, objects);
+ }
+ // fall through
+ case GET_DEFAULT_INSTANCE: {
+ return DEFAULT_INSTANCE;
+ }
+ case GET_PARSER: {
+ com.google.protobuf.Parser
+ */ Mixin credentials, as a JSON string.
+ *
+ *
+ * string mixin_credentials_json = 1;
+ * @return The mixinCredentialsJson.
+ */
+ java.lang.String getMixinCredentialsJson();
+ /**
+ *
+ */ Mixin credentials, as a JSON string.
+ *
+ *
+ * string mixin_credentials_json = 1;
+ * @return The bytes for mixinCredentialsJson.
+ */
+ com.google.protobuf.ByteString
+ getMixinCredentialsJsonBytes();
+
+ /**
+ *
+ */ Onramp parameters.
+ *
+ *
+ * .mistyswap_onramp.OnrampParams params = 2;
+ * @return Whether the params field is set.
+ */
+ boolean hasParams();
+ /**
+ *
+ */ Onramp parameters.
+ *
+ *
+ * .mistyswap_onramp.OnrampParams params = 2;
+ * @return The params.
+ */
+ mistyswap.MistyswapOnramp.OnrampParams getParams();
+ }
+ /**
+ *
+ */ A request to setup an onramp.
+ *
+ *
+ * Protobuf type {@code mistyswap_onramp.SetupOnrampRequest}
+ */
+ public static final class SetupOnrampRequest extends
+ com.google.protobuf.GeneratedMessageLite<
+ SetupOnrampRequest, SetupOnrampRequest.Builder> implements
+ // @@protoc_insertion_point(message_implements:mistyswap_onramp.SetupOnrampRequest)
+ SetupOnrampRequestOrBuilder {
+ private SetupOnrampRequest() {
+ mixinCredentialsJson_ = "";
+ }
+ public static final int MIXIN_CREDENTIALS_JSON_FIELD_NUMBER = 1;
+ private java.lang.String mixinCredentialsJson_;
+ /**
+ *
+ */ Mixin credentials, as a JSON string.
+ *
+ *
+ * string mixin_credentials_json = 1;
+ * @return The mixinCredentialsJson.
+ */
+ @java.lang.Override
+ public java.lang.String getMixinCredentialsJson() {
+ return mixinCredentialsJson_;
+ }
+ /**
+ *
+ */ Mixin credentials, as a JSON string.
+ *
+ *
+ * string mixin_credentials_json = 1;
+ * @return The bytes for mixinCredentialsJson.
+ */
+ @java.lang.Override
+ public com.google.protobuf.ByteString
+ getMixinCredentialsJsonBytes() {
+ return com.google.protobuf.ByteString.copyFromUtf8(mixinCredentialsJson_);
+ }
+ /**
+ *
+ */ Mixin credentials, as a JSON string.
+ *
+ *
+ * string mixin_credentials_json = 1;
+ * @param value The mixinCredentialsJson to set.
+ */
+ private void setMixinCredentialsJson(
+ java.lang.String value) {
+ java.lang.Class> valueClass = value.getClass();
+
+ mixinCredentialsJson_ = value;
+ }
+ /**
+ *
+ */ Mixin credentials, as a JSON string.
+ *
+ *
+ * string mixin_credentials_json = 1;
+ */
+ private void clearMixinCredentialsJson() {
+
+ mixinCredentialsJson_ = getDefaultInstance().getMixinCredentialsJson();
+ }
+ /**
+ *
+ */ Mixin credentials, as a JSON string.
+ *
+ *
+ * string mixin_credentials_json = 1;
+ * @param value The bytes for mixinCredentialsJson to set.
+ */
+ private void setMixinCredentialsJsonBytes(
+ com.google.protobuf.ByteString value) {
+ checkByteStringIsUtf8(value);
+ mixinCredentialsJson_ = value.toStringUtf8();
+
+ }
+
+ public static final int PARAMS_FIELD_NUMBER = 2;
+ private mistyswap.MistyswapOnramp.OnrampParams params_;
+ /**
+ *
+ */ Onramp parameters.
+ *
+ *
+ * .mistyswap_onramp.OnrampParams params = 2;
+ */
+ @java.lang.Override
+ public boolean hasParams() {
+ return params_ != null;
+ }
+ /**
+ *
+ */ Onramp parameters.
+ *
+ *
+ * .mistyswap_onramp.OnrampParams params = 2;
+ */
+ @java.lang.Override
+ public mistyswap.MistyswapOnramp.OnrampParams getParams() {
+ return params_ == null ? mistyswap.MistyswapOnramp.OnrampParams.getDefaultInstance() : params_;
+ }
+ /**
+ *
+ */ Onramp parameters.
+ *
+ *
+ * .mistyswap_onramp.OnrampParams params = 2;
+ */
+ private void setParams(mistyswap.MistyswapOnramp.OnrampParams value) {
+ value.getClass();
+ params_ = value;
+
+ }
+ /**
+ *
+ */ Onramp parameters.
+ *
+ *
+ * .mistyswap_onramp.OnrampParams params = 2;
+ */
+ @java.lang.SuppressWarnings({"ReferenceEquality"})
+ private void mergeParams(mistyswap.MistyswapOnramp.OnrampParams value) {
+ value.getClass();
+ if (params_ != null &&
+ params_ != mistyswap.MistyswapOnramp.OnrampParams.getDefaultInstance()) {
+ params_ =
+ mistyswap.MistyswapOnramp.OnrampParams.newBuilder(params_).mergeFrom(value).buildPartial();
+ } else {
+ params_ = value;
+ }
+
+ }
+ /**
+ *
+ */ Onramp parameters.
+ *
+ *
+ * .mistyswap_onramp.OnrampParams params = 2;
+ */
+ private void clearParams() { params_ = null;
+
+ }
+
+ public static mistyswap.MistyswapOnramp.SetupOnrampRequest parseFrom(
+ java.nio.ByteBuffer data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return com.google.protobuf.GeneratedMessageLite.parseFrom(
+ DEFAULT_INSTANCE, data);
+ }
+ public static mistyswap.MistyswapOnramp.SetupOnrampRequest parseFrom(
+ java.nio.ByteBuffer data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return com.google.protobuf.GeneratedMessageLite.parseFrom(
+ DEFAULT_INSTANCE, data, extensionRegistry);
+ }
+ public static mistyswap.MistyswapOnramp.SetupOnrampRequest parseFrom(
+ com.google.protobuf.ByteString data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return com.google.protobuf.GeneratedMessageLite.parseFrom(
+ DEFAULT_INSTANCE, data);
+ }
+ public static mistyswap.MistyswapOnramp.SetupOnrampRequest parseFrom(
+ com.google.protobuf.ByteString data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return com.google.protobuf.GeneratedMessageLite.parseFrom(
+ DEFAULT_INSTANCE, data, extensionRegistry);
+ }
+ public static mistyswap.MistyswapOnramp.SetupOnrampRequest parseFrom(byte[] data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return com.google.protobuf.GeneratedMessageLite.parseFrom(
+ DEFAULT_INSTANCE, data);
+ }
+ public static mistyswap.MistyswapOnramp.SetupOnrampRequest parseFrom(
+ byte[] data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return com.google.protobuf.GeneratedMessageLite.parseFrom(
+ DEFAULT_INSTANCE, data, extensionRegistry);
+ }
+ public static mistyswap.MistyswapOnramp.SetupOnrampRequest parseFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageLite.parseFrom(
+ DEFAULT_INSTANCE, input);
+ }
+ public static mistyswap.MistyswapOnramp.SetupOnrampRequest parseFrom(
+ java.io.InputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageLite.parseFrom(
+ DEFAULT_INSTANCE, input, extensionRegistry);
+ }
+ public static mistyswap.MistyswapOnramp.SetupOnrampRequest parseDelimitedFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return parseDelimitedFrom(DEFAULT_INSTANCE, input);
+ }
+ public static mistyswap.MistyswapOnramp.SetupOnrampRequest parseDelimitedFrom(
+ java.io.InputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return parseDelimitedFrom(DEFAULT_INSTANCE, input, extensionRegistry);
+ }
+ public static mistyswap.MistyswapOnramp.SetupOnrampRequest parseFrom(
+ com.google.protobuf.CodedInputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageLite.parseFrom(
+ DEFAULT_INSTANCE, input);
+ }
+ public static mistyswap.MistyswapOnramp.SetupOnrampRequest parseFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageLite.parseFrom(
+ DEFAULT_INSTANCE, input, extensionRegistry);
+ }
+
+ public static Builder newBuilder() {
+ return (Builder) DEFAULT_INSTANCE.createBuilder();
+ }
+ public static Builder newBuilder(mistyswap.MistyswapOnramp.SetupOnrampRequest prototype) {
+ return (Builder) DEFAULT_INSTANCE.createBuilder(prototype);
+ }
+
+ /**
+ *
+ */ A request to setup an onramp.
+ *
+ *
+ * Protobuf type {@code mistyswap_onramp.SetupOnrampRequest}
+ */
+ public static final class Builder extends
+ com.google.protobuf.GeneratedMessageLite.Builder<
+ mistyswap.MistyswapOnramp.SetupOnrampRequest, Builder> implements
+ // @@protoc_insertion_point(builder_implements:mistyswap_onramp.SetupOnrampRequest)
+ mistyswap.MistyswapOnramp.SetupOnrampRequestOrBuilder {
+ // Construct using mistyswap.MistyswapOnramp.SetupOnrampRequest.newBuilder()
+ private Builder() {
+ super(DEFAULT_INSTANCE);
+ }
+
+
+ /**
+ *
+ */ Mixin credentials, as a JSON string.
+ *
+ *
+ * string mixin_credentials_json = 1;
+ * @return The mixinCredentialsJson.
+ */
+ @java.lang.Override
+ public java.lang.String getMixinCredentialsJson() {
+ return instance.getMixinCredentialsJson();
+ }
+ /**
+ *
+ */ Mixin credentials, as a JSON string.
+ *
+ *
+ * string mixin_credentials_json = 1;
+ * @return The bytes for mixinCredentialsJson.
+ */
+ @java.lang.Override
+ public com.google.protobuf.ByteString
+ getMixinCredentialsJsonBytes() {
+ return instance.getMixinCredentialsJsonBytes();
+ }
+ /**
+ *
+ */ Mixin credentials, as a JSON string.
+ *
+ *
+ * string mixin_credentials_json = 1;
+ * @param value The mixinCredentialsJson to set.
+ * @return This builder for chaining.
+ */
+ public Builder setMixinCredentialsJson(
+ java.lang.String value) {
+ copyOnWrite();
+ instance.setMixinCredentialsJson(value);
+ return this;
+ }
+ /**
+ *
+ */ Mixin credentials, as a JSON string.
+ *
+ *
+ * string mixin_credentials_json = 1;
+ * @return This builder for chaining.
+ */
+ public Builder clearMixinCredentialsJson() {
+ copyOnWrite();
+ instance.clearMixinCredentialsJson();
+ return this;
+ }
+ /**
+ *
+ */ Mixin credentials, as a JSON string.
+ *
+ *
+ * string mixin_credentials_json = 1;
+ * @param value The bytes for mixinCredentialsJson to set.
+ * @return This builder for chaining.
+ */
+ public Builder setMixinCredentialsJsonBytes(
+ com.google.protobuf.ByteString value) {
+ copyOnWrite();
+ instance.setMixinCredentialsJsonBytes(value);
+ return this;
+ }
+
+ /**
+ *
+ */ Onramp parameters.
+ *
+ *
+ * .mistyswap_onramp.OnrampParams params = 2;
+ */
+ @java.lang.Override
+ public boolean hasParams() {
+ return instance.hasParams();
+ }
+ /**
+ *
+ */ Onramp parameters.
+ *
+ *
+ * .mistyswap_onramp.OnrampParams params = 2;
+ */
+ @java.lang.Override
+ public mistyswap.MistyswapOnramp.OnrampParams getParams() {
+ return instance.getParams();
+ }
+ /**
+ *
+ */ Onramp parameters.
+ *
+ *
+ * .mistyswap_onramp.OnrampParams params = 2;
+ */
+ public Builder setParams(mistyswap.MistyswapOnramp.OnrampParams value) {
+ copyOnWrite();
+ instance.setParams(value);
+ return this;
+ }
+ /**
+ *
+ */ Onramp parameters.
+ *
+ *
+ * .mistyswap_onramp.OnrampParams params = 2;
+ */
+ public Builder setParams(
+ mistyswap.MistyswapOnramp.OnrampParams.Builder builderForValue) {
+ copyOnWrite();
+ instance.setParams(builderForValue.build());
+ return this;
+ }
+ /**
+ *
+ */ Onramp parameters.
+ *
+ *
+ * .mistyswap_onramp.OnrampParams params = 2;
+ */
+ public Builder mergeParams(mistyswap.MistyswapOnramp.OnrampParams value) {
+ copyOnWrite();
+ instance.mergeParams(value);
+ return this;
+ }
+ /**
+ *
+ */ Onramp parameters.
+ *
+ *
+ * .mistyswap_onramp.OnrampParams params = 2;
+ */
+ public Builder clearParams() { copyOnWrite();
+ instance.clearParams();
+ return this;
+ }
+
+ // @@protoc_insertion_point(builder_scope:mistyswap_onramp.SetupOnrampRequest)
+ }
+ @java.lang.Override
+ @java.lang.SuppressWarnings({"unchecked", "fallthrough"})
+ protected final java.lang.Object dynamicMethod(
+ com.google.protobuf.GeneratedMessageLite.MethodToInvoke method,
+ java.lang.Object arg0, java.lang.Object arg1) {
+ switch (method) {
+ case NEW_MUTABLE_INSTANCE: {
+ return new mistyswap.MistyswapOnramp.SetupOnrampRequest();
+ }
+ case NEW_BUILDER: {
+ return new Builder();
+ }
+ case BUILD_MESSAGE_INFO: {
+ java.lang.Object[] objects = new java.lang.Object[] {
+ "mixinCredentialsJson_",
+ "params_",
+ };
+ java.lang.String info =
+ "\u0000\u0002\u0000\u0000\u0001\u0002\u0002\u0000\u0000\u0000\u0001\u0208\u0002\t" +
+ "";
+ return newMessageInfo(DEFAULT_INSTANCE, info, objects);
+ }
+ // fall through
+ case GET_DEFAULT_INSTANCE: {
+ return DEFAULT_INSTANCE;
+ }
+ case GET_PARSER: {
+ com.google.protobuf.Parser
+ */ Result of the onramp request.
+ *
+ *
+ * .mistyswap_onramp.OnrampResult result = 1;
+ * @return Whether the result field is set.
+ */
+ boolean hasResult();
+ /**
+ *
+ */ Result of the onramp request.
+ *
+ *
+ * .mistyswap_onramp.OnrampResult result = 1;
+ * @return The result.
+ */
+ mistyswap.MistyswapOnramp.OnrampResult getResult();
+
+ /**
+ *
+ */ Unique ID derived from the onramp request (set if result code is Ok)
+ *
+ *
+ * bytes onramp_id = 2;
+ * @return The onrampId.
+ */
+ com.google.protobuf.ByteString getOnrampId();
+ }
+ /**
+ *
+ */ A successful response to an SetupOnrampRequest.
+ *
+ *
+ * Protobuf type {@code mistyswap_onramp.SetupOnrampResponse}
+ */
+ public static final class SetupOnrampResponse extends
+ com.google.protobuf.GeneratedMessageLite<
+ SetupOnrampResponse, SetupOnrampResponse.Builder> implements
+ // @@protoc_insertion_point(message_implements:mistyswap_onramp.SetupOnrampResponse)
+ SetupOnrampResponseOrBuilder {
+ private SetupOnrampResponse() {
+ onrampId_ = com.google.protobuf.ByteString.EMPTY;
+ }
+ public static final int RESULT_FIELD_NUMBER = 1;
+ private mistyswap.MistyswapOnramp.OnrampResult result_;
+ /**
+ *
+ */ Result of the onramp request.
+ *
+ *
+ * .mistyswap_onramp.OnrampResult result = 1;
+ */
+ @java.lang.Override
+ public boolean hasResult() {
+ return result_ != null;
+ }
+ /**
+ *
+ */ Result of the onramp request.
+ *
+ *
+ * .mistyswap_onramp.OnrampResult result = 1;
+ */
+ @java.lang.Override
+ public mistyswap.MistyswapOnramp.OnrampResult getResult() {
+ return result_ == null ? mistyswap.MistyswapOnramp.OnrampResult.getDefaultInstance() : result_;
+ }
+ /**
+ *
+ */ Result of the onramp request.
+ *
+ *
+ * .mistyswap_onramp.OnrampResult result = 1;
+ */
+ private void setResult(mistyswap.MistyswapOnramp.OnrampResult value) {
+ value.getClass();
+ result_ = value;
+
+ }
+ /**
+ *
+ */ Result of the onramp request.
+ *
+ *
+ * .mistyswap_onramp.OnrampResult result = 1;
+ */
+ @java.lang.SuppressWarnings({"ReferenceEquality"})
+ private void mergeResult(mistyswap.MistyswapOnramp.OnrampResult value) {
+ value.getClass();
+ if (result_ != null &&
+ result_ != mistyswap.MistyswapOnramp.OnrampResult.getDefaultInstance()) {
+ result_ =
+ mistyswap.MistyswapOnramp.OnrampResult.newBuilder(result_).mergeFrom(value).buildPartial();
+ } else {
+ result_ = value;
+ }
+
+ }
+ /**
+ *
+ */ Result of the onramp request.
+ *
+ *
+ * .mistyswap_onramp.OnrampResult result = 1;
+ */
+ private void clearResult() { result_ = null;
+
+ }
+
+ public static final int ONRAMP_ID_FIELD_NUMBER = 2;
+ private com.google.protobuf.ByteString onrampId_;
+ /**
+ *
+ */ Unique ID derived from the onramp request (set if result code is Ok)
+ *
+ *
+ * bytes onramp_id = 2;
+ * @return The onrampId.
+ */
+ @java.lang.Override
+ public com.google.protobuf.ByteString getOnrampId() {
+ return onrampId_;
+ }
+ /**
+ *
+ */ Unique ID derived from the onramp request (set if result code is Ok)
+ *
+ *
+ * bytes onramp_id = 2;
+ * @param value The onrampId to set.
+ */
+ private void setOnrampId(com.google.protobuf.ByteString value) {
+ java.lang.Class> valueClass = value.getClass();
+
+ onrampId_ = value;
+ }
+ /**
+ *
+ */ Unique ID derived from the onramp request (set if result code is Ok)
+ *
+ *
+ * bytes onramp_id = 2;
+ */
+ private void clearOnrampId() {
+
+ onrampId_ = getDefaultInstance().getOnrampId();
+ }
+
+ public static mistyswap.MistyswapOnramp.SetupOnrampResponse parseFrom(
+ java.nio.ByteBuffer data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return com.google.protobuf.GeneratedMessageLite.parseFrom(
+ DEFAULT_INSTANCE, data);
+ }
+ public static mistyswap.MistyswapOnramp.SetupOnrampResponse parseFrom(
+ java.nio.ByteBuffer data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return com.google.protobuf.GeneratedMessageLite.parseFrom(
+ DEFAULT_INSTANCE, data, extensionRegistry);
+ }
+ public static mistyswap.MistyswapOnramp.SetupOnrampResponse parseFrom(
+ com.google.protobuf.ByteString data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return com.google.protobuf.GeneratedMessageLite.parseFrom(
+ DEFAULT_INSTANCE, data);
+ }
+ public static mistyswap.MistyswapOnramp.SetupOnrampResponse parseFrom(
+ com.google.protobuf.ByteString data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return com.google.protobuf.GeneratedMessageLite.parseFrom(
+ DEFAULT_INSTANCE, data, extensionRegistry);
+ }
+ public static mistyswap.MistyswapOnramp.SetupOnrampResponse parseFrom(byte[] data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return com.google.protobuf.GeneratedMessageLite.parseFrom(
+ DEFAULT_INSTANCE, data);
+ }
+ public static mistyswap.MistyswapOnramp.SetupOnrampResponse parseFrom(
+ byte[] data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return com.google.protobuf.GeneratedMessageLite.parseFrom(
+ DEFAULT_INSTANCE, data, extensionRegistry);
+ }
+ public static mistyswap.MistyswapOnramp.SetupOnrampResponse parseFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageLite.parseFrom(
+ DEFAULT_INSTANCE, input);
+ }
+ public static mistyswap.MistyswapOnramp.SetupOnrampResponse parseFrom(
+ java.io.InputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageLite.parseFrom(
+ DEFAULT_INSTANCE, input, extensionRegistry);
+ }
+ public static mistyswap.MistyswapOnramp.SetupOnrampResponse parseDelimitedFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return parseDelimitedFrom(DEFAULT_INSTANCE, input);
+ }
+ public static mistyswap.MistyswapOnramp.SetupOnrampResponse parseDelimitedFrom(
+ java.io.InputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return parseDelimitedFrom(DEFAULT_INSTANCE, input, extensionRegistry);
+ }
+ public static mistyswap.MistyswapOnramp.SetupOnrampResponse parseFrom(
+ com.google.protobuf.CodedInputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageLite.parseFrom(
+ DEFAULT_INSTANCE, input);
+ }
+ public static mistyswap.MistyswapOnramp.SetupOnrampResponse parseFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageLite.parseFrom(
+ DEFAULT_INSTANCE, input, extensionRegistry);
+ }
+
+ public static Builder newBuilder() {
+ return (Builder) DEFAULT_INSTANCE.createBuilder();
+ }
+ public static Builder newBuilder(mistyswap.MistyswapOnramp.SetupOnrampResponse prototype) {
+ return (Builder) DEFAULT_INSTANCE.createBuilder(prototype);
+ }
+
+ /**
+ *
+ */ A successful response to an SetupOnrampRequest.
+ *
+ *
+ * Protobuf type {@code mistyswap_onramp.SetupOnrampResponse}
+ */
+ public static final class Builder extends
+ com.google.protobuf.GeneratedMessageLite.Builder<
+ mistyswap.MistyswapOnramp.SetupOnrampResponse, Builder> implements
+ // @@protoc_insertion_point(builder_implements:mistyswap_onramp.SetupOnrampResponse)
+ mistyswap.MistyswapOnramp.SetupOnrampResponseOrBuilder {
+ // Construct using mistyswap.MistyswapOnramp.SetupOnrampResponse.newBuilder()
+ private Builder() {
+ super(DEFAULT_INSTANCE);
+ }
+
+
+ /**
+ *
+ */ Result of the onramp request.
+ *
+ *
+ * .mistyswap_onramp.OnrampResult result = 1;
+ */
+ @java.lang.Override
+ public boolean hasResult() {
+ return instance.hasResult();
+ }
+ /**
+ *
+ */ Result of the onramp request.
+ *
+ *
+ * .mistyswap_onramp.OnrampResult result = 1;
+ */
+ @java.lang.Override
+ public mistyswap.MistyswapOnramp.OnrampResult getResult() {
+ return instance.getResult();
+ }
+ /**
+ *
+ */ Result of the onramp request.
+ *
+ *
+ * .mistyswap_onramp.OnrampResult result = 1;
+ */
+ public Builder setResult(mistyswap.MistyswapOnramp.OnrampResult value) {
+ copyOnWrite();
+ instance.setResult(value);
+ return this;
+ }
+ /**
+ *
+ */ Result of the onramp request.
+ *
+ *
+ * .mistyswap_onramp.OnrampResult result = 1;
+ */
+ public Builder setResult(
+ mistyswap.MistyswapOnramp.OnrampResult.Builder builderForValue) {
+ copyOnWrite();
+ instance.setResult(builderForValue.build());
+ return this;
+ }
+ /**
+ *
+ */ Result of the onramp request.
+ *
+ *
+ * .mistyswap_onramp.OnrampResult result = 1;
+ */
+ public Builder mergeResult(mistyswap.MistyswapOnramp.OnrampResult value) {
+ copyOnWrite();
+ instance.mergeResult(value);
+ return this;
+ }
+ /**
+ *
+ */ Result of the onramp request.
+ *
+ *
+ * .mistyswap_onramp.OnrampResult result = 1;
+ */
+ public Builder clearResult() { copyOnWrite();
+ instance.clearResult();
+ return this;
+ }
+
+ /**
+ *
+ */ Unique ID derived from the onramp request (set if result code is Ok)
+ *
+ *
+ * bytes onramp_id = 2;
+ * @return The onrampId.
+ */
+ @java.lang.Override
+ public com.google.protobuf.ByteString getOnrampId() {
+ return instance.getOnrampId();
+ }
+ /**
+ *
+ */ Unique ID derived from the onramp request (set if result code is Ok)
+ *
+ *
+ * bytes onramp_id = 2;
+ * @param value The onrampId to set.
+ * @return This builder for chaining.
+ */
+ public Builder setOnrampId(com.google.protobuf.ByteString value) {
+ copyOnWrite();
+ instance.setOnrampId(value);
+ return this;
+ }
+ /**
+ *
+ */ Unique ID derived from the onramp request (set if result code is Ok)
+ *
+ *
+ * bytes onramp_id = 2;
+ * @return This builder for chaining.
+ */
+ public Builder clearOnrampId() {
+ copyOnWrite();
+ instance.clearOnrampId();
+ return this;
+ }
+
+ // @@protoc_insertion_point(builder_scope:mistyswap_onramp.SetupOnrampResponse)
+ }
+ @java.lang.Override
+ @java.lang.SuppressWarnings({"unchecked", "fallthrough"})
+ protected final java.lang.Object dynamicMethod(
+ com.google.protobuf.GeneratedMessageLite.MethodToInvoke method,
+ java.lang.Object arg0, java.lang.Object arg1) {
+ switch (method) {
+ case NEW_MUTABLE_INSTANCE: {
+ return new mistyswap.MistyswapOnramp.SetupOnrampResponse();
+ }
+ case NEW_BUILDER: {
+ return new Builder();
+ }
+ case BUILD_MESSAGE_INFO: {
+ java.lang.Object[] objects = new java.lang.Object[] {
+ "result_",
+ "onrampId_",
+ };
+ java.lang.String info =
+ "\u0000\u0002\u0000\u0000\u0001\u0002\u0002\u0000\u0000\u0000\u0001\t\u0002\n";
+ return newMessageInfo(DEFAULT_INSTANCE, info, objects);
+ }
+ // fall through
+ case GET_DEFAULT_INSTANCE: {
+ return DEFAULT_INSTANCE;
+ }
+ case GET_PARSER: {
+ com.google.protobuf.Parser
+ */ Unique ID of the onramp to forget.
+ *
+ *
+ * bytes onramp_id = 1;
+ * @return The onrampId.
+ */
+ com.google.protobuf.ByteString getOnrampId();
+ }
+ /**
+ *
+ */ A request to forget an onramp.
+ *
+ *
+ * Protobuf type {@code mistyswap_onramp.ForgetOnrampRequest}
+ */
+ public static final class ForgetOnrampRequest extends
+ com.google.protobuf.GeneratedMessageLite<
+ ForgetOnrampRequest, ForgetOnrampRequest.Builder> implements
+ // @@protoc_insertion_point(message_implements:mistyswap_onramp.ForgetOnrampRequest)
+ ForgetOnrampRequestOrBuilder {
+ private ForgetOnrampRequest() {
+ onrampId_ = com.google.protobuf.ByteString.EMPTY;
+ }
+ public static final int ONRAMP_ID_FIELD_NUMBER = 1;
+ private com.google.protobuf.ByteString onrampId_;
+ /**
+ *
+ */ Unique ID of the onramp to forget.
+ *
+ *
+ * bytes onramp_id = 1;
+ * @return The onrampId.
+ */
+ @java.lang.Override
+ public com.google.protobuf.ByteString getOnrampId() {
+ return onrampId_;
+ }
+ /**
+ *
+ */ Unique ID of the onramp to forget.
+ *
+ *
+ * bytes onramp_id = 1;
+ * @param value The onrampId to set.
+ */
+ private void setOnrampId(com.google.protobuf.ByteString value) {
+ java.lang.Class> valueClass = value.getClass();
+
+ onrampId_ = value;
+ }
+ /**
+ *
+ */ Unique ID of the onramp to forget.
+ *
+ *
+ * bytes onramp_id = 1;
+ */
+ private void clearOnrampId() {
+
+ onrampId_ = getDefaultInstance().getOnrampId();
+ }
+
+ public static mistyswap.MistyswapOnramp.ForgetOnrampRequest parseFrom(
+ java.nio.ByteBuffer data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return com.google.protobuf.GeneratedMessageLite.parseFrom(
+ DEFAULT_INSTANCE, data);
+ }
+ public static mistyswap.MistyswapOnramp.ForgetOnrampRequest parseFrom(
+ java.nio.ByteBuffer data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return com.google.protobuf.GeneratedMessageLite.parseFrom(
+ DEFAULT_INSTANCE, data, extensionRegistry);
+ }
+ public static mistyswap.MistyswapOnramp.ForgetOnrampRequest parseFrom(
+ com.google.protobuf.ByteString data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return com.google.protobuf.GeneratedMessageLite.parseFrom(
+ DEFAULT_INSTANCE, data);
+ }
+ public static mistyswap.MistyswapOnramp.ForgetOnrampRequest parseFrom(
+ com.google.protobuf.ByteString data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return com.google.protobuf.GeneratedMessageLite.parseFrom(
+ DEFAULT_INSTANCE, data, extensionRegistry);
+ }
+ public static mistyswap.MistyswapOnramp.ForgetOnrampRequest parseFrom(byte[] data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return com.google.protobuf.GeneratedMessageLite.parseFrom(
+ DEFAULT_INSTANCE, data);
+ }
+ public static mistyswap.MistyswapOnramp.ForgetOnrampRequest parseFrom(
+ byte[] data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return com.google.protobuf.GeneratedMessageLite.parseFrom(
+ DEFAULT_INSTANCE, data, extensionRegistry);
+ }
+ public static mistyswap.MistyswapOnramp.ForgetOnrampRequest parseFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageLite.parseFrom(
+ DEFAULT_INSTANCE, input);
+ }
+ public static mistyswap.MistyswapOnramp.ForgetOnrampRequest parseFrom(
+ java.io.InputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageLite.parseFrom(
+ DEFAULT_INSTANCE, input, extensionRegistry);
+ }
+ public static mistyswap.MistyswapOnramp.ForgetOnrampRequest parseDelimitedFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return parseDelimitedFrom(DEFAULT_INSTANCE, input);
+ }
+ public static mistyswap.MistyswapOnramp.ForgetOnrampRequest parseDelimitedFrom(
+ java.io.InputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return parseDelimitedFrom(DEFAULT_INSTANCE, input, extensionRegistry);
+ }
+ public static mistyswap.MistyswapOnramp.ForgetOnrampRequest parseFrom(
+ com.google.protobuf.CodedInputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageLite.parseFrom(
+ DEFAULT_INSTANCE, input);
+ }
+ public static mistyswap.MistyswapOnramp.ForgetOnrampRequest parseFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageLite.parseFrom(
+ DEFAULT_INSTANCE, input, extensionRegistry);
+ }
+
+ public static Builder newBuilder() {
+ return (Builder) DEFAULT_INSTANCE.createBuilder();
+ }
+ public static Builder newBuilder(mistyswap.MistyswapOnramp.ForgetOnrampRequest prototype) {
+ return (Builder) DEFAULT_INSTANCE.createBuilder(prototype);
+ }
+
+ /**
+ *
+ */ A request to forget an onramp.
+ *
+ *
+ * Protobuf type {@code mistyswap_onramp.ForgetOnrampRequest}
+ */
+ public static final class Builder extends
+ com.google.protobuf.GeneratedMessageLite.Builder<
+ mistyswap.MistyswapOnramp.ForgetOnrampRequest, Builder> implements
+ // @@protoc_insertion_point(builder_implements:mistyswap_onramp.ForgetOnrampRequest)
+ mistyswap.MistyswapOnramp.ForgetOnrampRequestOrBuilder {
+ // Construct using mistyswap.MistyswapOnramp.ForgetOnrampRequest.newBuilder()
+ private Builder() {
+ super(DEFAULT_INSTANCE);
+ }
+
+
+ /**
+ *
+ */ Unique ID of the onramp to forget.
+ *
+ *
+ * bytes onramp_id = 1;
+ * @return The onrampId.
+ */
+ @java.lang.Override
+ public com.google.protobuf.ByteString getOnrampId() {
+ return instance.getOnrampId();
+ }
+ /**
+ *
+ */ Unique ID of the onramp to forget.
+ *
+ *
+ * bytes onramp_id = 1;
+ * @param value The onrampId to set.
+ * @return This builder for chaining.
+ */
+ public Builder setOnrampId(com.google.protobuf.ByteString value) {
+ copyOnWrite();
+ instance.setOnrampId(value);
+ return this;
+ }
+ /**
+ *
+ */ Unique ID of the onramp to forget.
+ *
+ *
+ * bytes onramp_id = 1;
+ * @return This builder for chaining.
+ */
+ public Builder clearOnrampId() {
+ copyOnWrite();
+ instance.clearOnrampId();
+ return this;
+ }
+
+ // @@protoc_insertion_point(builder_scope:mistyswap_onramp.ForgetOnrampRequest)
+ }
+ @java.lang.Override
+ @java.lang.SuppressWarnings({"unchecked", "fallthrough"})
+ protected final java.lang.Object dynamicMethod(
+ com.google.protobuf.GeneratedMessageLite.MethodToInvoke method,
+ java.lang.Object arg0, java.lang.Object arg1) {
+ switch (method) {
+ case NEW_MUTABLE_INSTANCE: {
+ return new mistyswap.MistyswapOnramp.ForgetOnrampRequest();
+ }
+ case NEW_BUILDER: {
+ return new Builder();
+ }
+ case BUILD_MESSAGE_INFO: {
+ java.lang.Object[] objects = new java.lang.Object[] {
+ "onrampId_",
+ };
+ java.lang.String info =
+ "\u0000\u0001\u0000\u0000\u0001\u0001\u0001\u0000\u0000\u0000\u0001\n";
+ return newMessageInfo(DEFAULT_INSTANCE, info, objects);
+ }
+ // fall through
+ case GET_DEFAULT_INSTANCE: {
+ return DEFAULT_INSTANCE;
+ }
+ case GET_PARSER: {
+ com.google.protobuf.Parser
+ */ Result of the onramp request.
+ *
+ *
+ * .mistyswap_onramp.OnrampResult result = 1;
+ * @return Whether the result field is set.
+ */
+ boolean hasResult();
+ /**
+ *
+ */ Result of the onramp request.
+ *
+ *
+ * .mistyswap_onramp.OnrampResult result = 1;
+ * @return The result.
+ */
+ mistyswap.MistyswapOnramp.OnrampResult getResult();
+ }
+ /**
+ *
+ */ A response to a ForgetOnrampRequest.
+ *
+ *
+ * Protobuf type {@code mistyswap_onramp.ForgetOnrampResponse}
+ */
+ public static final class ForgetOnrampResponse extends
+ com.google.protobuf.GeneratedMessageLite<
+ ForgetOnrampResponse, ForgetOnrampResponse.Builder> implements
+ // @@protoc_insertion_point(message_implements:mistyswap_onramp.ForgetOnrampResponse)
+ ForgetOnrampResponseOrBuilder {
+ private ForgetOnrampResponse() {
+ }
+ public static final int RESULT_FIELD_NUMBER = 1;
+ private mistyswap.MistyswapOnramp.OnrampResult result_;
+ /**
+ *
+ */ Result of the onramp request.
+ *
+ *
+ * .mistyswap_onramp.OnrampResult result = 1;
+ */
+ @java.lang.Override
+ public boolean hasResult() {
+ return result_ != null;
+ }
+ /**
+ *
+ */ Result of the onramp request.
+ *
+ *
+ * .mistyswap_onramp.OnrampResult result = 1;
+ */
+ @java.lang.Override
+ public mistyswap.MistyswapOnramp.OnrampResult getResult() {
+ return result_ == null ? mistyswap.MistyswapOnramp.OnrampResult.getDefaultInstance() : result_;
+ }
+ /**
+ *
+ */ Result of the onramp request.
+ *
+ *
+ * .mistyswap_onramp.OnrampResult result = 1;
+ */
+ private void setResult(mistyswap.MistyswapOnramp.OnrampResult value) {
+ value.getClass();
+ result_ = value;
+
+ }
+ /**
+ *
+ */ Result of the onramp request.
+ *
+ *
+ * .mistyswap_onramp.OnrampResult result = 1;
+ */
+ @java.lang.SuppressWarnings({"ReferenceEquality"})
+ private void mergeResult(mistyswap.MistyswapOnramp.OnrampResult value) {
+ value.getClass();
+ if (result_ != null &&
+ result_ != mistyswap.MistyswapOnramp.OnrampResult.getDefaultInstance()) {
+ result_ =
+ mistyswap.MistyswapOnramp.OnrampResult.newBuilder(result_).mergeFrom(value).buildPartial();
+ } else {
+ result_ = value;
+ }
+
+ }
+ /**
+ *
+ */ Result of the onramp request.
+ *
+ *
+ * .mistyswap_onramp.OnrampResult result = 1;
+ */
+ private void clearResult() { result_ = null;
+
+ }
+
+ public static mistyswap.MistyswapOnramp.ForgetOnrampResponse parseFrom(
+ java.nio.ByteBuffer data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return com.google.protobuf.GeneratedMessageLite.parseFrom(
+ DEFAULT_INSTANCE, data);
+ }
+ public static mistyswap.MistyswapOnramp.ForgetOnrampResponse parseFrom(
+ java.nio.ByteBuffer data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return com.google.protobuf.GeneratedMessageLite.parseFrom(
+ DEFAULT_INSTANCE, data, extensionRegistry);
+ }
+ public static mistyswap.MistyswapOnramp.ForgetOnrampResponse parseFrom(
+ com.google.protobuf.ByteString data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return com.google.protobuf.GeneratedMessageLite.parseFrom(
+ DEFAULT_INSTANCE, data);
+ }
+ public static mistyswap.MistyswapOnramp.ForgetOnrampResponse parseFrom(
+ com.google.protobuf.ByteString data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return com.google.protobuf.GeneratedMessageLite.parseFrom(
+ DEFAULT_INSTANCE, data, extensionRegistry);
+ }
+ public static mistyswap.MistyswapOnramp.ForgetOnrampResponse parseFrom(byte[] data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return com.google.protobuf.GeneratedMessageLite.parseFrom(
+ DEFAULT_INSTANCE, data);
+ }
+ public static mistyswap.MistyswapOnramp.ForgetOnrampResponse parseFrom(
+ byte[] data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return com.google.protobuf.GeneratedMessageLite.parseFrom(
+ DEFAULT_INSTANCE, data, extensionRegistry);
+ }
+ public static mistyswap.MistyswapOnramp.ForgetOnrampResponse parseFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageLite.parseFrom(
+ DEFAULT_INSTANCE, input);
+ }
+ public static mistyswap.MistyswapOnramp.ForgetOnrampResponse parseFrom(
+ java.io.InputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageLite.parseFrom(
+ DEFAULT_INSTANCE, input, extensionRegistry);
+ }
+ public static mistyswap.MistyswapOnramp.ForgetOnrampResponse parseDelimitedFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return parseDelimitedFrom(DEFAULT_INSTANCE, input);
+ }
+ public static mistyswap.MistyswapOnramp.ForgetOnrampResponse parseDelimitedFrom(
+ java.io.InputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return parseDelimitedFrom(DEFAULT_INSTANCE, input, extensionRegistry);
+ }
+ public static mistyswap.MistyswapOnramp.ForgetOnrampResponse parseFrom(
+ com.google.protobuf.CodedInputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageLite.parseFrom(
+ DEFAULT_INSTANCE, input);
+ }
+ public static mistyswap.MistyswapOnramp.ForgetOnrampResponse parseFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageLite.parseFrom(
+ DEFAULT_INSTANCE, input, extensionRegistry);
+ }
+
+ public static Builder newBuilder() {
+ return (Builder) DEFAULT_INSTANCE.createBuilder();
+ }
+ public static Builder newBuilder(mistyswap.MistyswapOnramp.ForgetOnrampResponse prototype) {
+ return (Builder) DEFAULT_INSTANCE.createBuilder(prototype);
+ }
+
+ /**
+ *
+ */ A response to a ForgetOnrampRequest.
+ *
+ *
+ * Protobuf type {@code mistyswap_onramp.ForgetOnrampResponse}
+ */
+ public static final class Builder extends
+ com.google.protobuf.GeneratedMessageLite.Builder<
+ mistyswap.MistyswapOnramp.ForgetOnrampResponse, Builder> implements
+ // @@protoc_insertion_point(builder_implements:mistyswap_onramp.ForgetOnrampResponse)
+ mistyswap.MistyswapOnramp.ForgetOnrampResponseOrBuilder {
+ // Construct using mistyswap.MistyswapOnramp.ForgetOnrampResponse.newBuilder()
+ private Builder() {
+ super(DEFAULT_INSTANCE);
+ }
+
+
+ /**
+ *
+ */ Result of the onramp request.
+ *
+ *
+ * .mistyswap_onramp.OnrampResult result = 1;
+ */
+ @java.lang.Override
+ public boolean hasResult() {
+ return instance.hasResult();
+ }
+ /**
+ *
+ */ Result of the onramp request.
+ *
+ *
+ * .mistyswap_onramp.OnrampResult result = 1;
+ */
+ @java.lang.Override
+ public mistyswap.MistyswapOnramp.OnrampResult getResult() {
+ return instance.getResult();
+ }
+ /**
+ *
+ */ Result of the onramp request.
+ *
+ *
+ * .mistyswap_onramp.OnrampResult result = 1;
+ */
+ public Builder setResult(mistyswap.MistyswapOnramp.OnrampResult value) {
+ copyOnWrite();
+ instance.setResult(value);
+ return this;
+ }
+ /**
+ *
+ */ Result of the onramp request.
+ *
+ *
+ * .mistyswap_onramp.OnrampResult result = 1;
+ */
+ public Builder setResult(
+ mistyswap.MistyswapOnramp.OnrampResult.Builder builderForValue) {
+ copyOnWrite();
+ instance.setResult(builderForValue.build());
+ return this;
+ }
+ /**
+ *
+ */ Result of the onramp request.
+ *
+ *
+ * .mistyswap_onramp.OnrampResult result = 1;
+ */
+ public Builder mergeResult(mistyswap.MistyswapOnramp.OnrampResult value) {
+ copyOnWrite();
+ instance.mergeResult(value);
+ return this;
+ }
+ /**
+ *
+ */ Result of the onramp request.
+ *
+ *
+ * .mistyswap_onramp.OnrampResult result = 1;
+ */
+ public Builder clearResult() { copyOnWrite();
+ instance.clearResult();
+ return this;
+ }
+
+ // @@protoc_insertion_point(builder_scope:mistyswap_onramp.ForgetOnrampResponse)
+ }
+ @java.lang.Override
+ @java.lang.SuppressWarnings({"unchecked", "fallthrough"})
+ protected final java.lang.Object dynamicMethod(
+ com.google.protobuf.GeneratedMessageLite.MethodToInvoke method,
+ java.lang.Object arg0, java.lang.Object arg1) {
+ switch (method) {
+ case NEW_MUTABLE_INSTANCE: {
+ return new mistyswap.MistyswapOnramp.ForgetOnrampResponse();
+ }
+ case NEW_BUILDER: {
+ return new Builder();
+ }
+ case BUILD_MESSAGE_INFO: {
+ java.lang.Object[] objects = new java.lang.Object[] {
+ "result_",
+ };
+ java.lang.String info =
+ "\u0000\u0001\u0000\u0000\u0001\u0001\u0001\u0000\u0000\u0000\u0001\t";
+ return newMessageInfo(DEFAULT_INSTANCE, info, objects);
+ }
+ // fall through
+ case GET_DEFAULT_INSTANCE: {
+ return DEFAULT_INSTANCE;
+ }
+ case GET_PARSER: {
+ com.google.protobuf.Parser
+ */ The original onramp parameters.
+ *
+ *
+ * .mistyswap_onramp.OnrampParams params = 1;
+ * @return Whether the params field is set.
+ */
+ boolean hasParams();
+ /**
+ *
+ */ The original onramp parameters.
+ *
+ *
+ * .mistyswap_onramp.OnrampParams params = 1;
+ * @return The params.
+ */
+ mistyswap.MistyswapOnramp.OnrampParams getParams();
+
+ /**
+ *
+ */ Current state of the onramp.
+ *
+ *
+ * .mistyswap_onramp.OnrampState state = 2;
+ * @return The enum numeric value on the wire for state.
+ */
+ int getStateValue();
+ /**
+ *
+ */ Current state of the onramp.
+ *
+ *
+ * .mistyswap_onramp.OnrampState state = 2;
+ * @return The state.
+ */
+ mistyswap.MistyswapOnramp.OnrampState getState();
+
+ /**
+ *
+ */ String details, if any, about the current state.
+ *
+ *
+ * string state_details = 3;
+ * @return The stateDetails.
+ */
+ java.lang.String getStateDetails();
+ /**
+ *
+ */ String details, if any, about the current state.
+ *
+ *
+ * string state_details = 3;
+ * @return The bytes for stateDetails.
+ */
+ com.google.protobuf.ByteString
+ getStateDetailsBytes();
+
+ /**
+ *
+ */ The Mixin withdrawal address as a JSON blob.
+ *
+ *
+ * string mixin_withdrawal_address_json = 4;
+ * @return The mixinWithdrawalAddressJson.
+ */
+ java.lang.String getMixinWithdrawalAddressJson();
+ /**
+ *
+ */ The Mixin withdrawal address as a JSON blob.
+ *
+ *
+ * string mixin_withdrawal_address_json = 4;
+ * @return The bytes for mixinWithdrawalAddressJson.
+ */
+ com.google.protobuf.ByteString
+ getMixinWithdrawalAddressJsonBytes();
+
+ /**
+ *
+ */ Ongoing swap info, if any.
+ *
+ *
+ * .mistyswap_common.OngoingSwap ongoing_swap = 5;
+ * @return Whether the ongoingSwap field is set.
+ */
+ boolean hasOngoingSwap();
+ /**
+ *
+ */ Ongoing swap info, if any.
+ *
+ *
+ * .mistyswap_common.OngoingSwap ongoing_swap = 5;
+ * @return The ongoingSwap.
+ */
+ mistyswap.MistyswapCommon.OngoingSwap getOngoingSwap();
+
+ /**
+ *
+ */ Ongoing withdrawal info, if any. This is a Mixin snapshot JSON blob.
+ *
+ *
+ * string ongoing_withdrawal_json = 6;
+ * @return The ongoingWithdrawalJson.
+ */
+ java.lang.String getOngoingWithdrawalJson();
+ /**
+ *
+ */ Ongoing withdrawal info, if any. This is a Mixin snapshot JSON blob.
+ *
+ *
+ * string ongoing_withdrawal_json = 6;
+ * @return The bytes for ongoingWithdrawalJson.
+ */
+ com.google.protobuf.ByteString
+ getOngoingWithdrawalJsonBytes();
+
+ /**
+ *
+ */ Balances (map of Mixin asset UUID to balance as a decimal number).
+ *
+ *
+ * map<string, string> balances = 7;
+ */
+ int getBalancesCount();
+ /**
+ *
+ */ Balances (map of Mixin asset UUID to balance as a decimal number).
+ *
+ *
+ * map<string, string> balances = 7;
+ */
+ boolean containsBalances(
+ java.lang.String key);
+ /**
+ * Use {@link #getBalancesMap()} instead.
+ */
+ @java.lang.Deprecated
+ java.util.Map
+ */ Balances (map of Mixin asset UUID to balance as a decimal number).
+ *
+ *
+ * map<string, string> balances = 7;
+ */
+ java.util.Map
+ */ Balances (map of Mixin asset UUID to balance as a decimal number).
+ *
+ *
+ * map<string, string> balances = 7;
+ */
+
+ /* nullable */
+java.lang.String getBalancesOrDefault(
+ java.lang.String key,
+ /* nullable */
+java.lang.String defaultValue);
+ /**
+ *
+ */ Balances (map of Mixin asset UUID to balance as a decimal number).
+ *
+ *
+ * map<string, string> balances = 7;
+ */
+
+ java.lang.String getBalancesOrThrow(
+ java.lang.String key);
+ }
+ /**
+ *
+ */ Details about a previously-initiated onramp.
+ *
+ *
+ * Protobuf type {@code mistyswap_onramp.Onramp}
+ */
+ public static final class Onramp extends
+ com.google.protobuf.GeneratedMessageLite<
+ Onramp, Onramp.Builder> implements
+ // @@protoc_insertion_point(message_implements:mistyswap_onramp.Onramp)
+ OnrampOrBuilder {
+ private Onramp() {
+ stateDetails_ = "";
+ mixinWithdrawalAddressJson_ = "";
+ ongoingWithdrawalJson_ = "";
+ }
+ public static final int PARAMS_FIELD_NUMBER = 1;
+ private mistyswap.MistyswapOnramp.OnrampParams params_;
+ /**
+ *
+ */ The original onramp parameters.
+ *
+ *
+ * .mistyswap_onramp.OnrampParams params = 1;
+ */
+ @java.lang.Override
+ public boolean hasParams() {
+ return params_ != null;
+ }
+ /**
+ *
+ */ The original onramp parameters.
+ *
+ *
+ * .mistyswap_onramp.OnrampParams params = 1;
+ */
+ @java.lang.Override
+ public mistyswap.MistyswapOnramp.OnrampParams getParams() {
+ return params_ == null ? mistyswap.MistyswapOnramp.OnrampParams.getDefaultInstance() : params_;
+ }
+ /**
+ *
+ */ The original onramp parameters.
+ *
+ *
+ * .mistyswap_onramp.OnrampParams params = 1;
+ */
+ private void setParams(mistyswap.MistyswapOnramp.OnrampParams value) {
+ value.getClass();
+ params_ = value;
+
+ }
+ /**
+ *
+ */ The original onramp parameters.
+ *
+ *
+ * .mistyswap_onramp.OnrampParams params = 1;
+ */
+ @java.lang.SuppressWarnings({"ReferenceEquality"})
+ private void mergeParams(mistyswap.MistyswapOnramp.OnrampParams value) {
+ value.getClass();
+ if (params_ != null &&
+ params_ != mistyswap.MistyswapOnramp.OnrampParams.getDefaultInstance()) {
+ params_ =
+ mistyswap.MistyswapOnramp.OnrampParams.newBuilder(params_).mergeFrom(value).buildPartial();
+ } else {
+ params_ = value;
+ }
+
+ }
+ /**
+ *
+ */ The original onramp parameters.
+ *
+ *
+ * .mistyswap_onramp.OnrampParams params = 1;
+ */
+ private void clearParams() { params_ = null;
+
+ }
+
+ public static final int STATE_FIELD_NUMBER = 2;
+ private int state_;
+ /**
+ *
+ */ Current state of the onramp.
+ *
+ *
+ * .mistyswap_onramp.OnrampState state = 2;
+ * @return The enum numeric value on the wire for state.
+ */
+ @java.lang.Override
+ public int getStateValue() {
+ return state_;
+ }
+ /**
+ *
+ */ Current state of the onramp.
+ *
+ *
+ * .mistyswap_onramp.OnrampState state = 2;
+ * @return The state.
+ */
+ @java.lang.Override
+ public mistyswap.MistyswapOnramp.OnrampState getState() {
+ mistyswap.MistyswapOnramp.OnrampState result = mistyswap.MistyswapOnramp.OnrampState.forNumber(state_);
+ return result == null ? mistyswap.MistyswapOnramp.OnrampState.UNRECOGNIZED : result;
+ }
+ /**
+ *
+ */ Current state of the onramp.
+ *
+ *
+ * .mistyswap_onramp.OnrampState state = 2;
+ * @param value The enum numeric value on the wire for state to set.
+ */
+ private void setStateValue(int value) {
+ state_ = value;
+ }
+ /**
+ *
+ */ Current state of the onramp.
+ *
+ *
+ * .mistyswap_onramp.OnrampState state = 2;
+ * @param value The state to set.
+ */
+ private void setState(mistyswap.MistyswapOnramp.OnrampState value) {
+ state_ = value.getNumber();
+
+ }
+ /**
+ *
+ */ Current state of the onramp.
+ *
+ *
+ * .mistyswap_onramp.OnrampState state = 2;
+ */
+ private void clearState() {
+
+ state_ = 0;
+ }
+
+ public static final int STATE_DETAILS_FIELD_NUMBER = 3;
+ private java.lang.String stateDetails_;
+ /**
+ *
+ */ String details, if any, about the current state.
+ *
+ *
+ * string state_details = 3;
+ * @return The stateDetails.
+ */
+ @java.lang.Override
+ public java.lang.String getStateDetails() {
+ return stateDetails_;
+ }
+ /**
+ *
+ */ String details, if any, about the current state.
+ *
+ *
+ * string state_details = 3;
+ * @return The bytes for stateDetails.
+ */
+ @java.lang.Override
+ public com.google.protobuf.ByteString
+ getStateDetailsBytes() {
+ return com.google.protobuf.ByteString.copyFromUtf8(stateDetails_);
+ }
+ /**
+ *
+ */ String details, if any, about the current state.
+ *
+ *
+ * string state_details = 3;
+ * @param value The stateDetails to set.
+ */
+ private void setStateDetails(
+ java.lang.String value) {
+ java.lang.Class> valueClass = value.getClass();
+
+ stateDetails_ = value;
+ }
+ /**
+ *
+ */ String details, if any, about the current state.
+ *
+ *
+ * string state_details = 3;
+ */
+ private void clearStateDetails() {
+
+ stateDetails_ = getDefaultInstance().getStateDetails();
+ }
+ /**
+ *
+ */ String details, if any, about the current state.
+ *
+ *
+ * string state_details = 3;
+ * @param value The bytes for stateDetails to set.
+ */
+ private void setStateDetailsBytes(
+ com.google.protobuf.ByteString value) {
+ checkByteStringIsUtf8(value);
+ stateDetails_ = value.toStringUtf8();
+
+ }
+
+ public static final int MIXIN_WITHDRAWAL_ADDRESS_JSON_FIELD_NUMBER = 4;
+ private java.lang.String mixinWithdrawalAddressJson_;
+ /**
+ *
+ */ The Mixin withdrawal address as a JSON blob.
+ *
+ *
+ * string mixin_withdrawal_address_json = 4;
+ * @return The mixinWithdrawalAddressJson.
+ */
+ @java.lang.Override
+ public java.lang.String getMixinWithdrawalAddressJson() {
+ return mixinWithdrawalAddressJson_;
+ }
+ /**
+ *
+ */ The Mixin withdrawal address as a JSON blob.
+ *
+ *
+ * string mixin_withdrawal_address_json = 4;
+ * @return The bytes for mixinWithdrawalAddressJson.
+ */
+ @java.lang.Override
+ public com.google.protobuf.ByteString
+ getMixinWithdrawalAddressJsonBytes() {
+ return com.google.protobuf.ByteString.copyFromUtf8(mixinWithdrawalAddressJson_);
+ }
+ /**
+ *
+ */ The Mixin withdrawal address as a JSON blob.
+ *
+ *
+ * string mixin_withdrawal_address_json = 4;
+ * @param value The mixinWithdrawalAddressJson to set.
+ */
+ private void setMixinWithdrawalAddressJson(
+ java.lang.String value) {
+ java.lang.Class> valueClass = value.getClass();
+
+ mixinWithdrawalAddressJson_ = value;
+ }
+ /**
+ *
+ */ The Mixin withdrawal address as a JSON blob.
+ *
+ *
+ * string mixin_withdrawal_address_json = 4;
+ */
+ private void clearMixinWithdrawalAddressJson() {
+
+ mixinWithdrawalAddressJson_ = getDefaultInstance().getMixinWithdrawalAddressJson();
+ }
+ /**
+ *
+ */ The Mixin withdrawal address as a JSON blob.
+ *
+ *
+ * string mixin_withdrawal_address_json = 4;
+ * @param value The bytes for mixinWithdrawalAddressJson to set.
+ */
+ private void setMixinWithdrawalAddressJsonBytes(
+ com.google.protobuf.ByteString value) {
+ checkByteStringIsUtf8(value);
+ mixinWithdrawalAddressJson_ = value.toStringUtf8();
+
+ }
+
+ public static final int ONGOING_SWAP_FIELD_NUMBER = 5;
+ private mistyswap.MistyswapCommon.OngoingSwap ongoingSwap_;
+ /**
+ *
+ */ Ongoing swap info, if any.
+ *
+ *
+ * .mistyswap_common.OngoingSwap ongoing_swap = 5;
+ */
+ @java.lang.Override
+ public boolean hasOngoingSwap() {
+ return ongoingSwap_ != null;
+ }
+ /**
+ *
+ */ Ongoing swap info, if any.
+ *
+ *
+ * .mistyswap_common.OngoingSwap ongoing_swap = 5;
+ */
+ @java.lang.Override
+ public mistyswap.MistyswapCommon.OngoingSwap getOngoingSwap() {
+ return ongoingSwap_ == null ? mistyswap.MistyswapCommon.OngoingSwap.getDefaultInstance() : ongoingSwap_;
+ }
+ /**
+ *
+ */ Ongoing swap info, if any.
+ *
+ *
+ * .mistyswap_common.OngoingSwap ongoing_swap = 5;
+ */
+ private void setOngoingSwap(mistyswap.MistyswapCommon.OngoingSwap value) {
+ value.getClass();
+ ongoingSwap_ = value;
+
+ }
+ /**
+ *
+ */ Ongoing swap info, if any.
+ *
+ *
+ * .mistyswap_common.OngoingSwap ongoing_swap = 5;
+ */
+ @java.lang.SuppressWarnings({"ReferenceEquality"})
+ private void mergeOngoingSwap(mistyswap.MistyswapCommon.OngoingSwap value) {
+ value.getClass();
+ if (ongoingSwap_ != null &&
+ ongoingSwap_ != mistyswap.MistyswapCommon.OngoingSwap.getDefaultInstance()) {
+ ongoingSwap_ =
+ mistyswap.MistyswapCommon.OngoingSwap.newBuilder(ongoingSwap_).mergeFrom(value).buildPartial();
+ } else {
+ ongoingSwap_ = value;
+ }
+
+ }
+ /**
+ *
+ */ Ongoing swap info, if any.
+ *
+ *
+ * .mistyswap_common.OngoingSwap ongoing_swap = 5;
+ */
+ private void clearOngoingSwap() { ongoingSwap_ = null;
+
+ }
+
+ public static final int ONGOING_WITHDRAWAL_JSON_FIELD_NUMBER = 6;
+ private java.lang.String ongoingWithdrawalJson_;
+ /**
+ *
+ */ Ongoing withdrawal info, if any. This is a Mixin snapshot JSON blob.
+ *
+ *
+ * string ongoing_withdrawal_json = 6;
+ * @return The ongoingWithdrawalJson.
+ */
+ @java.lang.Override
+ public java.lang.String getOngoingWithdrawalJson() {
+ return ongoingWithdrawalJson_;
+ }
+ /**
+ *
+ */ Ongoing withdrawal info, if any. This is a Mixin snapshot JSON blob.
+ *
+ *
+ * string ongoing_withdrawal_json = 6;
+ * @return The bytes for ongoingWithdrawalJson.
+ */
+ @java.lang.Override
+ public com.google.protobuf.ByteString
+ getOngoingWithdrawalJsonBytes() {
+ return com.google.protobuf.ByteString.copyFromUtf8(ongoingWithdrawalJson_);
+ }
+ /**
+ *
+ */ Ongoing withdrawal info, if any. This is a Mixin snapshot JSON blob.
+ *
+ *
+ * string ongoing_withdrawal_json = 6;
+ * @param value The ongoingWithdrawalJson to set.
+ */
+ private void setOngoingWithdrawalJson(
+ java.lang.String value) {
+ java.lang.Class> valueClass = value.getClass();
+
+ ongoingWithdrawalJson_ = value;
+ }
+ /**
+ *
+ */ Ongoing withdrawal info, if any. This is a Mixin snapshot JSON blob.
+ *
+ *
+ * string ongoing_withdrawal_json = 6;
+ */
+ private void clearOngoingWithdrawalJson() {
+
+ ongoingWithdrawalJson_ = getDefaultInstance().getOngoingWithdrawalJson();
+ }
+ /**
+ *
+ */ Ongoing withdrawal info, if any. This is a Mixin snapshot JSON blob.
+ *
+ *
+ * string ongoing_withdrawal_json = 6;
+ * @param value The bytes for ongoingWithdrawalJson to set.
+ */
+ private void setOngoingWithdrawalJsonBytes(
+ com.google.protobuf.ByteString value) {
+ checkByteStringIsUtf8(value);
+ ongoingWithdrawalJson_ = value.toStringUtf8();
+
+ }
+
+ public static final int BALANCES_FIELD_NUMBER = 7;
+ private static final class BalancesDefaultEntryHolder {
+ static final com.google.protobuf.MapEntryLite<
+ java.lang.String, java.lang.String> defaultEntry =
+ com.google.protobuf.MapEntryLite
+ .
+ */ Balances (map of Mixin asset UUID to balance as a decimal number).
+ *
+ *
+ * map<string, string> balances = 7;
+ */
+ @java.lang.Override
+
+ public boolean containsBalances(
+ java.lang.String key) {
+ java.lang.Class> keyClass = key.getClass();
+ return internalGetBalances().containsKey(key);
+ }
+ /**
+ * Use {@link #getBalancesMap()} instead.
+ */
+ @java.lang.Override
+ @java.lang.Deprecated
+ public java.util.Map
+ */ Balances (map of Mixin asset UUID to balance as a decimal number).
+ *
+ *
+ * map<string, string> balances = 7;
+ */
+ @java.lang.Override
+
+ public java.util.Map
+ */ Balances (map of Mixin asset UUID to balance as a decimal number).
+ *
+ *
+ * map<string, string> balances = 7;
+ */
+ @java.lang.Override
+
+ public /* nullable */
+java.lang.String getBalancesOrDefault(
+ java.lang.String key,
+ /* nullable */
+java.lang.String defaultValue) {
+ java.lang.Class> keyClass = key.getClass();
+ java.util.Map
+ */ Balances (map of Mixin asset UUID to balance as a decimal number).
+ *
+ *
+ * map<string, string> balances = 7;
+ */
+ @java.lang.Override
+
+ public java.lang.String getBalancesOrThrow(
+ java.lang.String key) {
+ java.lang.Class> keyClass = key.getClass();
+ java.util.Map
+ */ Balances (map of Mixin asset UUID to balance as a decimal number).
+ *
+ *
+ * map<string, string> balances = 7;
+ */
+ private java.util.Map
+ */ Details about a previously-initiated onramp.
+ *
+ *
+ * Protobuf type {@code mistyswap_onramp.Onramp}
+ */
+ public static final class Builder extends
+ com.google.protobuf.GeneratedMessageLite.Builder<
+ mistyswap.MistyswapOnramp.Onramp, Builder> implements
+ // @@protoc_insertion_point(builder_implements:mistyswap_onramp.Onramp)
+ mistyswap.MistyswapOnramp.OnrampOrBuilder {
+ // Construct using mistyswap.MistyswapOnramp.Onramp.newBuilder()
+ private Builder() {
+ super(DEFAULT_INSTANCE);
+ }
+
+
+ /**
+ *
+ */ The original onramp parameters.
+ *
+ *
+ * .mistyswap_onramp.OnrampParams params = 1;
+ */
+ @java.lang.Override
+ public boolean hasParams() {
+ return instance.hasParams();
+ }
+ /**
+ *
+ */ The original onramp parameters.
+ *
+ *
+ * .mistyswap_onramp.OnrampParams params = 1;
+ */
+ @java.lang.Override
+ public mistyswap.MistyswapOnramp.OnrampParams getParams() {
+ return instance.getParams();
+ }
+ /**
+ *
+ */ The original onramp parameters.
+ *
+ *
+ * .mistyswap_onramp.OnrampParams params = 1;
+ */
+ public Builder setParams(mistyswap.MistyswapOnramp.OnrampParams value) {
+ copyOnWrite();
+ instance.setParams(value);
+ return this;
+ }
+ /**
+ *
+ */ The original onramp parameters.
+ *
+ *
+ * .mistyswap_onramp.OnrampParams params = 1;
+ */
+ public Builder setParams(
+ mistyswap.MistyswapOnramp.OnrampParams.Builder builderForValue) {
+ copyOnWrite();
+ instance.setParams(builderForValue.build());
+ return this;
+ }
+ /**
+ *
+ */ The original onramp parameters.
+ *
+ *
+ * .mistyswap_onramp.OnrampParams params = 1;
+ */
+ public Builder mergeParams(mistyswap.MistyswapOnramp.OnrampParams value) {
+ copyOnWrite();
+ instance.mergeParams(value);
+ return this;
+ }
+ /**
+ *
+ */ The original onramp parameters.
+ *
+ *
+ * .mistyswap_onramp.OnrampParams params = 1;
+ */
+ public Builder clearParams() { copyOnWrite();
+ instance.clearParams();
+ return this;
+ }
+
+ /**
+ *
+ */ Current state of the onramp.
+ *
+ *
+ * .mistyswap_onramp.OnrampState state = 2;
+ * @return The enum numeric value on the wire for state.
+ */
+ @java.lang.Override
+ public int getStateValue() {
+ return instance.getStateValue();
+ }
+ /**
+ *
+ */ Current state of the onramp.
+ *
+ *
+ * .mistyswap_onramp.OnrampState state = 2;
+ * @param value The state to set.
+ * @return This builder for chaining.
+ */
+ public Builder setStateValue(int value) {
+ copyOnWrite();
+ instance.setStateValue(value);
+ return this;
+ }
+ /**
+ *
+ */ Current state of the onramp.
+ *
+ *
+ * .mistyswap_onramp.OnrampState state = 2;
+ * @return The state.
+ */
+ @java.lang.Override
+ public mistyswap.MistyswapOnramp.OnrampState getState() {
+ return instance.getState();
+ }
+ /**
+ *
+ */ Current state of the onramp.
+ *
+ *
+ * .mistyswap_onramp.OnrampState state = 2;
+ * @param value The enum numeric value on the wire for state to set.
+ * @return This builder for chaining.
+ */
+ public Builder setState(mistyswap.MistyswapOnramp.OnrampState value) {
+ copyOnWrite();
+ instance.setState(value);
+ return this;
+ }
+ /**
+ *
+ */ Current state of the onramp.
+ *
+ *
+ * .mistyswap_onramp.OnrampState state = 2;
+ * @return This builder for chaining.
+ */
+ public Builder clearState() {
+ copyOnWrite();
+ instance.clearState();
+ return this;
+ }
+
+ /**
+ *
+ */ String details, if any, about the current state.
+ *
+ *
+ * string state_details = 3;
+ * @return The stateDetails.
+ */
+ @java.lang.Override
+ public java.lang.String getStateDetails() {
+ return instance.getStateDetails();
+ }
+ /**
+ *
+ */ String details, if any, about the current state.
+ *
+ *
+ * string state_details = 3;
+ * @return The bytes for stateDetails.
+ */
+ @java.lang.Override
+ public com.google.protobuf.ByteString
+ getStateDetailsBytes() {
+ return instance.getStateDetailsBytes();
+ }
+ /**
+ *
+ */ String details, if any, about the current state.
+ *
+ *
+ * string state_details = 3;
+ * @param value The stateDetails to set.
+ * @return This builder for chaining.
+ */
+ public Builder setStateDetails(
+ java.lang.String value) {
+ copyOnWrite();
+ instance.setStateDetails(value);
+ return this;
+ }
+ /**
+ *
+ */ String details, if any, about the current state.
+ *
+ *
+ * string state_details = 3;
+ * @return This builder for chaining.
+ */
+ public Builder clearStateDetails() {
+ copyOnWrite();
+ instance.clearStateDetails();
+ return this;
+ }
+ /**
+ *
+ */ String details, if any, about the current state.
+ *
+ *
+ * string state_details = 3;
+ * @param value The bytes for stateDetails to set.
+ * @return This builder for chaining.
+ */
+ public Builder setStateDetailsBytes(
+ com.google.protobuf.ByteString value) {
+ copyOnWrite();
+ instance.setStateDetailsBytes(value);
+ return this;
+ }
+
+ /**
+ *
+ */ The Mixin withdrawal address as a JSON blob.
+ *
+ *
+ * string mixin_withdrawal_address_json = 4;
+ * @return The mixinWithdrawalAddressJson.
+ */
+ @java.lang.Override
+ public java.lang.String getMixinWithdrawalAddressJson() {
+ return instance.getMixinWithdrawalAddressJson();
+ }
+ /**
+ *
+ */ The Mixin withdrawal address as a JSON blob.
+ *
+ *
+ * string mixin_withdrawal_address_json = 4;
+ * @return The bytes for mixinWithdrawalAddressJson.
+ */
+ @java.lang.Override
+ public com.google.protobuf.ByteString
+ getMixinWithdrawalAddressJsonBytes() {
+ return instance.getMixinWithdrawalAddressJsonBytes();
+ }
+ /**
+ *
+ */ The Mixin withdrawal address as a JSON blob.
+ *
+ *
+ * string mixin_withdrawal_address_json = 4;
+ * @param value The mixinWithdrawalAddressJson to set.
+ * @return This builder for chaining.
+ */
+ public Builder setMixinWithdrawalAddressJson(
+ java.lang.String value) {
+ copyOnWrite();
+ instance.setMixinWithdrawalAddressJson(value);
+ return this;
+ }
+ /**
+ *
+ */ The Mixin withdrawal address as a JSON blob.
+ *
+ *
+ * string mixin_withdrawal_address_json = 4;
+ * @return This builder for chaining.
+ */
+ public Builder clearMixinWithdrawalAddressJson() {
+ copyOnWrite();
+ instance.clearMixinWithdrawalAddressJson();
+ return this;
+ }
+ /**
+ *
+ */ The Mixin withdrawal address as a JSON blob.
+ *
+ *
+ * string mixin_withdrawal_address_json = 4;
+ * @param value The bytes for mixinWithdrawalAddressJson to set.
+ * @return This builder for chaining.
+ */
+ public Builder setMixinWithdrawalAddressJsonBytes(
+ com.google.protobuf.ByteString value) {
+ copyOnWrite();
+ instance.setMixinWithdrawalAddressJsonBytes(value);
+ return this;
+ }
+
+ /**
+ *
+ */ Ongoing swap info, if any.
+ *
+ *
+ * .mistyswap_common.OngoingSwap ongoing_swap = 5;
+ */
+ @java.lang.Override
+ public boolean hasOngoingSwap() {
+ return instance.hasOngoingSwap();
+ }
+ /**
+ *
+ */ Ongoing swap info, if any.
+ *
+ *
+ * .mistyswap_common.OngoingSwap ongoing_swap = 5;
+ */
+ @java.lang.Override
+ public mistyswap.MistyswapCommon.OngoingSwap getOngoingSwap() {
+ return instance.getOngoingSwap();
+ }
+ /**
+ *
+ */ Ongoing swap info, if any.
+ *
+ *
+ * .mistyswap_common.OngoingSwap ongoing_swap = 5;
+ */
+ public Builder setOngoingSwap(mistyswap.MistyswapCommon.OngoingSwap value) {
+ copyOnWrite();
+ instance.setOngoingSwap(value);
+ return this;
+ }
+ /**
+ *
+ */ Ongoing swap info, if any.
+ *
+ *
+ * .mistyswap_common.OngoingSwap ongoing_swap = 5;
+ */
+ public Builder setOngoingSwap(
+ mistyswap.MistyswapCommon.OngoingSwap.Builder builderForValue) {
+ copyOnWrite();
+ instance.setOngoingSwap(builderForValue.build());
+ return this;
+ }
+ /**
+ *
+ */ Ongoing swap info, if any.
+ *
+ *
+ * .mistyswap_common.OngoingSwap ongoing_swap = 5;
+ */
+ public Builder mergeOngoingSwap(mistyswap.MistyswapCommon.OngoingSwap value) {
+ copyOnWrite();
+ instance.mergeOngoingSwap(value);
+ return this;
+ }
+ /**
+ *
+ */ Ongoing swap info, if any.
+ *
+ *
+ * .mistyswap_common.OngoingSwap ongoing_swap = 5;
+ */
+ public Builder clearOngoingSwap() { copyOnWrite();
+ instance.clearOngoingSwap();
+ return this;
+ }
+
+ /**
+ *
+ */ Ongoing withdrawal info, if any. This is a Mixin snapshot JSON blob.
+ *
+ *
+ * string ongoing_withdrawal_json = 6;
+ * @return The ongoingWithdrawalJson.
+ */
+ @java.lang.Override
+ public java.lang.String getOngoingWithdrawalJson() {
+ return instance.getOngoingWithdrawalJson();
+ }
+ /**
+ *
+ */ Ongoing withdrawal info, if any. This is a Mixin snapshot JSON blob.
+ *
+ *
+ * string ongoing_withdrawal_json = 6;
+ * @return The bytes for ongoingWithdrawalJson.
+ */
+ @java.lang.Override
+ public com.google.protobuf.ByteString
+ getOngoingWithdrawalJsonBytes() {
+ return instance.getOngoingWithdrawalJsonBytes();
+ }
+ /**
+ *
+ */ Ongoing withdrawal info, if any. This is a Mixin snapshot JSON blob.
+ *
+ *
+ * string ongoing_withdrawal_json = 6;
+ * @param value The ongoingWithdrawalJson to set.
+ * @return This builder for chaining.
+ */
+ public Builder setOngoingWithdrawalJson(
+ java.lang.String value) {
+ copyOnWrite();
+ instance.setOngoingWithdrawalJson(value);
+ return this;
+ }
+ /**
+ *
+ */ Ongoing withdrawal info, if any. This is a Mixin snapshot JSON blob.
+ *
+ *
+ * string ongoing_withdrawal_json = 6;
+ * @return This builder for chaining.
+ */
+ public Builder clearOngoingWithdrawalJson() {
+ copyOnWrite();
+ instance.clearOngoingWithdrawalJson();
+ return this;
+ }
+ /**
+ *
+ */ Ongoing withdrawal info, if any. This is a Mixin snapshot JSON blob.
+ *
+ *
+ * string ongoing_withdrawal_json = 6;
+ * @param value The bytes for ongoingWithdrawalJson to set.
+ * @return This builder for chaining.
+ */
+ public Builder setOngoingWithdrawalJsonBytes(
+ com.google.protobuf.ByteString value) {
+ copyOnWrite();
+ instance.setOngoingWithdrawalJsonBytes(value);
+ return this;
+ }
+
+ @java.lang.Override
+
+ public int getBalancesCount() {
+ return instance.getBalancesMap().size();
+ }
+ /**
+ *
+ */ Balances (map of Mixin asset UUID to balance as a decimal number).
+ *
+ *
+ * map<string, string> balances = 7;
+ */
+ @java.lang.Override
+
+ public boolean containsBalances(
+ java.lang.String key) {
+ java.lang.Class> keyClass = key.getClass();
+ return instance.getBalancesMap().containsKey(key);
+ }
+
+ public Builder clearBalances() {
+ copyOnWrite();
+ instance.getMutableBalancesMap().clear();
+ return this;
+ }
+ /**
+ *
+ */ Balances (map of Mixin asset UUID to balance as a decimal number).
+ *
+ *
+ * map<string, string> balances = 7;
+ */
+
+ public Builder removeBalances(
+ java.lang.String key) {
+ java.lang.Class> keyClass = key.getClass();
+ copyOnWrite();
+ instance.getMutableBalancesMap().remove(key);
+ return this;
+ }
+ /**
+ * Use {@link #getBalancesMap()} instead.
+ */
+ @java.lang.Override
+ @java.lang.Deprecated
+ public java.util.Map
+ */ Balances (map of Mixin asset UUID to balance as a decimal number).
+ *
+ *
+ * map<string, string> balances = 7;
+ */
+ @java.lang.Override
+ public java.util.Map
+ */ Balances (map of Mixin asset UUID to balance as a decimal number).
+ *
+ *
+ * map<string, string> balances = 7;
+ */
+ @java.lang.Override
+
+ public /* nullable */
+java.lang.String getBalancesOrDefault(
+ java.lang.String key,
+ /* nullable */
+java.lang.String defaultValue) {
+ java.lang.Class> keyClass = key.getClass();
+ java.util.Map
+ */ Balances (map of Mixin asset UUID to balance as a decimal number).
+ *
+ *
+ * map<string, string> balances = 7;
+ */
+ @java.lang.Override
+
+ public java.lang.String getBalancesOrThrow(
+ java.lang.String key) {
+ java.lang.Class> keyClass = key.getClass();
+ java.util.Map
+ */ Balances (map of Mixin asset UUID to balance as a decimal number).
+ *
+ *
+ * map<string, string> balances = 7;
+ */
+ public Builder putBalances(
+ java.lang.String key,
+ java.lang.String value) {
+ java.lang.Class> keyClass = key.getClass();
+ java.lang.Class> valueClass = value.getClass();
+ copyOnWrite();
+ instance.getMutableBalancesMap().put(key, value);
+ return this;
+ }
+ /**
+ *
+ */ Balances (map of Mixin asset UUID to balance as a decimal number).
+ *
+ *
+ * map<string, string> balances = 7;
+ */
+ public Builder putAllBalances(
+ java.util.Map