Class OperationResult.OperationResultTr

java.lang.Object
org.stellar.sdk.xdr.OperationResult.OperationResultTr
All Implemented Interfaces:
XdrElement
Enclosing class:
OperationResult

public static class OperationResult.OperationResultTr extends Object implements XdrElement
OperationResultTr's original definition in the XDR file is:
 union switch (OperationType type)
     {
     case CREATE_ACCOUNT:
         CreateAccountResult createAccountResult;
     case PAYMENT:
         PaymentResult paymentResult;
     case PATH_PAYMENT_STRICT_RECEIVE:
         PathPaymentStrictReceiveResult pathPaymentStrictReceiveResult;
     case MANAGE_SELL_OFFER:
         ManageSellOfferResult manageSellOfferResult;
     case CREATE_PASSIVE_SELL_OFFER:
         ManageSellOfferResult createPassiveSellOfferResult;
     case SET_OPTIONS:
         SetOptionsResult setOptionsResult;
     case CHANGE_TRUST:
         ChangeTrustResult changeTrustResult;
     case ALLOW_TRUST:
         AllowTrustResult allowTrustResult;
     case ACCOUNT_MERGE:
         AccountMergeResult accountMergeResult;
     case INFLATION:
         InflationResult inflationResult;
     case MANAGE_DATA:
         ManageDataResult manageDataResult;
     case BUMP_SEQUENCE:
         BumpSequenceResult bumpSeqResult;
     case MANAGE_BUY_OFFER:
         ManageBuyOfferResult manageBuyOfferResult;
     case PATH_PAYMENT_STRICT_SEND:
         PathPaymentStrictSendResult pathPaymentStrictSendResult;
     case CREATE_CLAIMABLE_BALANCE:
         CreateClaimableBalanceResult createClaimableBalanceResult;
     case CLAIM_CLAIMABLE_BALANCE:
         ClaimClaimableBalanceResult claimClaimableBalanceResult;
     case BEGIN_SPONSORING_FUTURE_RESERVES:
         BeginSponsoringFutureReservesResult beginSponsoringFutureReservesResult;
     case END_SPONSORING_FUTURE_RESERVES:
         EndSponsoringFutureReservesResult endSponsoringFutureReservesResult;
     case REVOKE_SPONSORSHIP:
         RevokeSponsorshipResult revokeSponsorshipResult;
     case CLAWBACK:
         ClawbackResult clawbackResult;
     case CLAWBACK_CLAIMABLE_BALANCE:
         ClawbackClaimableBalanceResult clawbackClaimableBalanceResult;
     case SET_TRUST_LINE_FLAGS:
         SetTrustLineFlagsResult setTrustLineFlagsResult;
     case LIQUIDITY_POOL_DEPOSIT:
         LiquidityPoolDepositResult liquidityPoolDepositResult;
     case LIQUIDITY_POOL_WITHDRAW:
         LiquidityPoolWithdrawResult liquidityPoolWithdrawResult;
     case INVOKE_HOST_FUNCTION:
         InvokeHostFunctionResult invokeHostFunctionResult;
     case EXTEND_FOOTPRINT_TTL:
         ExtendFootprintTTLResult extendFootprintTTLResult;
     case RESTORE_FOOTPRINT:
         RestoreFootprintResult restoreFootprintResult;
     }
 
  • Constructor Details

    • OperationResultTr

      public OperationResultTr()
    • OperationResultTr

      public OperationResultTr(OperationType discriminant, CreateAccountResult createAccountResult, PaymentResult paymentResult, PathPaymentStrictReceiveResult pathPaymentStrictReceiveResult, ManageSellOfferResult manageSellOfferResult, ManageSellOfferResult createPassiveSellOfferResult, SetOptionsResult setOptionsResult, ChangeTrustResult changeTrustResult, AllowTrustResult allowTrustResult, AccountMergeResult accountMergeResult, InflationResult inflationResult, ManageDataResult manageDataResult, BumpSequenceResult bumpSeqResult, ManageBuyOfferResult manageBuyOfferResult, PathPaymentStrictSendResult pathPaymentStrictSendResult, CreateClaimableBalanceResult createClaimableBalanceResult, ClaimClaimableBalanceResult claimClaimableBalanceResult, BeginSponsoringFutureReservesResult beginSponsoringFutureReservesResult, EndSponsoringFutureReservesResult endSponsoringFutureReservesResult, RevokeSponsorshipResult revokeSponsorshipResult, ClawbackResult clawbackResult, ClawbackClaimableBalanceResult clawbackClaimableBalanceResult, SetTrustLineFlagsResult setTrustLineFlagsResult, LiquidityPoolDepositResult liquidityPoolDepositResult, LiquidityPoolWithdrawResult liquidityPoolWithdrawResult, InvokeHostFunctionResult invokeHostFunctionResult, ExtendFootprintTTLResult extendFootprintTTLResult, RestoreFootprintResult restoreFootprintResult)
      Creates a new OperationResultTr instance.
      Parameters:
      discriminant - the discriminant field value
      createAccountResult - the createAccountResult field value
      paymentResult - the paymentResult field value
      pathPaymentStrictReceiveResult - the pathPaymentStrictReceiveResult field value
      manageSellOfferResult - the manageSellOfferResult field value
      createPassiveSellOfferResult - the createPassiveSellOfferResult field value
      setOptionsResult - the setOptionsResult field value
      changeTrustResult - the changeTrustResult field value
      allowTrustResult - the allowTrustResult field value
      accountMergeResult - the accountMergeResult field value
      inflationResult - the inflationResult field value
      manageDataResult - the manageDataResult field value
      bumpSeqResult - the bumpSeqResult field value
      manageBuyOfferResult - the manageBuyOfferResult field value
      pathPaymentStrictSendResult - the pathPaymentStrictSendResult field value
      createClaimableBalanceResult - the createClaimableBalanceResult field value
      claimClaimableBalanceResult - the claimClaimableBalanceResult field value
      beginSponsoringFutureReservesResult - the beginSponsoringFutureReservesResult field value
      endSponsoringFutureReservesResult - the endSponsoringFutureReservesResult field value
      revokeSponsorshipResult - the revokeSponsorshipResult field value
      clawbackResult - the clawbackResult field value
      clawbackClaimableBalanceResult - the clawbackClaimableBalanceResult field value
      setTrustLineFlagsResult - the setTrustLineFlagsResult field value
      liquidityPoolDepositResult - the liquidityPoolDepositResult field value
      liquidityPoolWithdrawResult - the liquidityPoolWithdrawResult field value
      invokeHostFunctionResult - the invokeHostFunctionResult field value
      extendFootprintTTLResult - the extendFootprintTTLResult field value
      restoreFootprintResult - the restoreFootprintResult field value
  • Method Details

    • encode

      public void encode(XdrDataOutputStream stream) throws IOException
      Description copied from interface: XdrElement
      Encodes this value to XDR and writes it to the provided stream.
      Specified by:
      encode in interface XdrElement
      Parameters:
      stream - the destination XDR output stream
      Throws:
      IOException - if an I/O error occurs while writing the value
    • decode

      public static OperationResult.OperationResultTr decode(XdrDataInputStream stream, int maxDepth) throws IOException
      Throws:
      IOException
    • decode

      Throws:
      IOException
    • fromXdrBase64

      public static OperationResult.OperationResultTr fromXdrBase64(String xdr) throws IOException
      Throws:
      IOException
    • fromXdrByteArray

      public static OperationResult.OperationResultTr fromXdrByteArray(byte[] xdr) throws IOException
      Throws:
      IOException
    • toJson

      public String toJson()
      Description copied from interface: XdrElement
      Serializes this value to JSON.
      Specified by:
      toJson in interface XdrElement
      Returns:
      the JSON representation of this value
    • fromJson

      public static OperationResult.OperationResultTr fromJson(String json)
    • builder

    • toBuilder

    • getDiscriminant

      public OperationType getDiscriminant()
      Value of the discriminant field.
      Returns:
      the discriminant field value
    • getCreateAccountResult

      public CreateAccountResult getCreateAccountResult()
      Value of the createAccountResult field.
      Returns:
      the createAccountResult field value
    • getPaymentResult

      public PaymentResult getPaymentResult()
      Value of the paymentResult field.
      Returns:
      the paymentResult field value
    • getPathPaymentStrictReceiveResult

      public PathPaymentStrictReceiveResult getPathPaymentStrictReceiveResult()
      Value of the pathPaymentStrictReceiveResult field.
      Returns:
      the pathPaymentStrictReceiveResult field value
    • getManageSellOfferResult

      public ManageSellOfferResult getManageSellOfferResult()
      Value of the manageSellOfferResult field.
      Returns:
      the manageSellOfferResult field value
    • getCreatePassiveSellOfferResult

      public ManageSellOfferResult getCreatePassiveSellOfferResult()
      Value of the createPassiveSellOfferResult field.
      Returns:
      the createPassiveSellOfferResult field value
    • getSetOptionsResult

      public SetOptionsResult getSetOptionsResult()
      Value of the setOptionsResult field.
      Returns:
      the setOptionsResult field value
    • getChangeTrustResult

      public ChangeTrustResult getChangeTrustResult()
      Value of the changeTrustResult field.
      Returns:
      the changeTrustResult field value
    • getAllowTrustResult

      public AllowTrustResult getAllowTrustResult()
      Value of the allowTrustResult field.
      Returns:
      the allowTrustResult field value
    • getAccountMergeResult

      public AccountMergeResult getAccountMergeResult()
      Value of the accountMergeResult field.
      Returns:
      the accountMergeResult field value
    • getInflationResult

      public InflationResult getInflationResult()
      Value of the inflationResult field.
      Returns:
      the inflationResult field value
    • getManageDataResult

      public ManageDataResult getManageDataResult()
      Value of the manageDataResult field.
      Returns:
      the manageDataResult field value
    • getBumpSeqResult

      public BumpSequenceResult getBumpSeqResult()
      Value of the bumpSeqResult field.
      Returns:
      the bumpSeqResult field value
    • getManageBuyOfferResult

      public ManageBuyOfferResult getManageBuyOfferResult()
      Value of the manageBuyOfferResult field.
      Returns:
      the manageBuyOfferResult field value
    • getPathPaymentStrictSendResult

      public PathPaymentStrictSendResult getPathPaymentStrictSendResult()
      Value of the pathPaymentStrictSendResult field.
      Returns:
      the pathPaymentStrictSendResult field value
    • getCreateClaimableBalanceResult

      public CreateClaimableBalanceResult getCreateClaimableBalanceResult()
      Value of the createClaimableBalanceResult field.
      Returns:
      the createClaimableBalanceResult field value
    • getClaimClaimableBalanceResult

      public ClaimClaimableBalanceResult getClaimClaimableBalanceResult()
      Value of the claimClaimableBalanceResult field.
      Returns:
      the claimClaimableBalanceResult field value
    • getBeginSponsoringFutureReservesResult

      public BeginSponsoringFutureReservesResult getBeginSponsoringFutureReservesResult()
      Value of the beginSponsoringFutureReservesResult field.
      Returns:
      the beginSponsoringFutureReservesResult field value
    • getEndSponsoringFutureReservesResult

      public EndSponsoringFutureReservesResult getEndSponsoringFutureReservesResult()
      Value of the endSponsoringFutureReservesResult field.
      Returns:
      the endSponsoringFutureReservesResult field value
    • getRevokeSponsorshipResult

      public RevokeSponsorshipResult getRevokeSponsorshipResult()
      Value of the revokeSponsorshipResult field.
      Returns:
      the revokeSponsorshipResult field value
    • getClawbackResult

      public ClawbackResult getClawbackResult()
      Value of the clawbackResult field.
      Returns:
      the clawbackResult field value
    • getClawbackClaimableBalanceResult

      public ClawbackClaimableBalanceResult getClawbackClaimableBalanceResult()
      Value of the clawbackClaimableBalanceResult field.
      Returns:
      the clawbackClaimableBalanceResult field value
    • getSetTrustLineFlagsResult

      public SetTrustLineFlagsResult getSetTrustLineFlagsResult()
      Value of the setTrustLineFlagsResult field.
      Returns:
      the setTrustLineFlagsResult field value
    • getLiquidityPoolDepositResult

      public LiquidityPoolDepositResult getLiquidityPoolDepositResult()
      Value of the liquidityPoolDepositResult field.
      Returns:
      the liquidityPoolDepositResult field value
    • getLiquidityPoolWithdrawResult

      public LiquidityPoolWithdrawResult getLiquidityPoolWithdrawResult()
      Value of the liquidityPoolWithdrawResult field.
      Returns:
      the liquidityPoolWithdrawResult field value
    • getInvokeHostFunctionResult

      public InvokeHostFunctionResult getInvokeHostFunctionResult()
      Value of the invokeHostFunctionResult field.
      Returns:
      the invokeHostFunctionResult field value
    • getExtendFootprintTTLResult

      public ExtendFootprintTTLResult getExtendFootprintTTLResult()
      Value of the extendFootprintTTLResult field.
      Returns:
      the extendFootprintTTLResult field value
    • getRestoreFootprintResult

      public RestoreFootprintResult getRestoreFootprintResult()
      Value of the restoreFootprintResult field.
      Returns:
      the restoreFootprintResult field value
    • setDiscriminant

      public void setDiscriminant(OperationType discriminant)
      Value of the discriminant field.
      Parameters:
      discriminant - the discriminant field value
    • setCreateAccountResult

      public void setCreateAccountResult(CreateAccountResult createAccountResult)
      Value of the createAccountResult field.
      Parameters:
      createAccountResult - the createAccountResult field value
    • setPaymentResult

      public void setPaymentResult(PaymentResult paymentResult)
      Value of the paymentResult field.
      Parameters:
      paymentResult - the paymentResult field value
    • setPathPaymentStrictReceiveResult

      public void setPathPaymentStrictReceiveResult(PathPaymentStrictReceiveResult pathPaymentStrictReceiveResult)
      Value of the pathPaymentStrictReceiveResult field.
      Parameters:
      pathPaymentStrictReceiveResult - the pathPaymentStrictReceiveResult field value
    • setManageSellOfferResult

      public void setManageSellOfferResult(ManageSellOfferResult manageSellOfferResult)
      Value of the manageSellOfferResult field.
      Parameters:
      manageSellOfferResult - the manageSellOfferResult field value
    • setCreatePassiveSellOfferResult

      public void setCreatePassiveSellOfferResult(ManageSellOfferResult createPassiveSellOfferResult)
      Value of the createPassiveSellOfferResult field.
      Parameters:
      createPassiveSellOfferResult - the createPassiveSellOfferResult field value
    • setSetOptionsResult

      public void setSetOptionsResult(SetOptionsResult setOptionsResult)
      Value of the setOptionsResult field.
      Parameters:
      setOptionsResult - the setOptionsResult field value
    • setChangeTrustResult

      public void setChangeTrustResult(ChangeTrustResult changeTrustResult)
      Value of the changeTrustResult field.
      Parameters:
      changeTrustResult - the changeTrustResult field value
    • setAllowTrustResult

      public void setAllowTrustResult(AllowTrustResult allowTrustResult)
      Value of the allowTrustResult field.
      Parameters:
      allowTrustResult - the allowTrustResult field value
    • setAccountMergeResult

      public void setAccountMergeResult(AccountMergeResult accountMergeResult)
      Value of the accountMergeResult field.
      Parameters:
      accountMergeResult - the accountMergeResult field value
    • setInflationResult

      public void setInflationResult(InflationResult inflationResult)
      Value of the inflationResult field.
      Parameters:
      inflationResult - the inflationResult field value
    • setManageDataResult

      public void setManageDataResult(ManageDataResult manageDataResult)
      Value of the manageDataResult field.
      Parameters:
      manageDataResult - the manageDataResult field value
    • setBumpSeqResult

      public void setBumpSeqResult(BumpSequenceResult bumpSeqResult)
      Value of the bumpSeqResult field.
      Parameters:
      bumpSeqResult - the bumpSeqResult field value
    • setManageBuyOfferResult

      public void setManageBuyOfferResult(ManageBuyOfferResult manageBuyOfferResult)
      Value of the manageBuyOfferResult field.
      Parameters:
      manageBuyOfferResult - the manageBuyOfferResult field value
    • setPathPaymentStrictSendResult

      public void setPathPaymentStrictSendResult(PathPaymentStrictSendResult pathPaymentStrictSendResult)
      Value of the pathPaymentStrictSendResult field.
      Parameters:
      pathPaymentStrictSendResult - the pathPaymentStrictSendResult field value
    • setCreateClaimableBalanceResult

      public void setCreateClaimableBalanceResult(CreateClaimableBalanceResult createClaimableBalanceResult)
      Value of the createClaimableBalanceResult field.
      Parameters:
      createClaimableBalanceResult - the createClaimableBalanceResult field value
    • setClaimClaimableBalanceResult

      public void setClaimClaimableBalanceResult(ClaimClaimableBalanceResult claimClaimableBalanceResult)
      Value of the claimClaimableBalanceResult field.
      Parameters:
      claimClaimableBalanceResult - the claimClaimableBalanceResult field value
    • setBeginSponsoringFutureReservesResult

      public void setBeginSponsoringFutureReservesResult(BeginSponsoringFutureReservesResult beginSponsoringFutureReservesResult)
      Value of the beginSponsoringFutureReservesResult field.
      Parameters:
      beginSponsoringFutureReservesResult - the beginSponsoringFutureReservesResult field value
    • setEndSponsoringFutureReservesResult

      public void setEndSponsoringFutureReservesResult(EndSponsoringFutureReservesResult endSponsoringFutureReservesResult)
      Value of the endSponsoringFutureReservesResult field.
      Parameters:
      endSponsoringFutureReservesResult - the endSponsoringFutureReservesResult field value
    • setRevokeSponsorshipResult

      public void setRevokeSponsorshipResult(RevokeSponsorshipResult revokeSponsorshipResult)
      Value of the revokeSponsorshipResult field.
      Parameters:
      revokeSponsorshipResult - the revokeSponsorshipResult field value
    • setClawbackResult

      public void setClawbackResult(ClawbackResult clawbackResult)
      Value of the clawbackResult field.
      Parameters:
      clawbackResult - the clawbackResult field value
    • setClawbackClaimableBalanceResult

      public void setClawbackClaimableBalanceResult(ClawbackClaimableBalanceResult clawbackClaimableBalanceResult)
      Value of the clawbackClaimableBalanceResult field.
      Parameters:
      clawbackClaimableBalanceResult - the clawbackClaimableBalanceResult field value
    • setSetTrustLineFlagsResult

      public void setSetTrustLineFlagsResult(SetTrustLineFlagsResult setTrustLineFlagsResult)
      Value of the setTrustLineFlagsResult field.
      Parameters:
      setTrustLineFlagsResult - the setTrustLineFlagsResult field value
    • setLiquidityPoolDepositResult

      public void setLiquidityPoolDepositResult(LiquidityPoolDepositResult liquidityPoolDepositResult)
      Value of the liquidityPoolDepositResult field.
      Parameters:
      liquidityPoolDepositResult - the liquidityPoolDepositResult field value
    • setLiquidityPoolWithdrawResult

      public void setLiquidityPoolWithdrawResult(LiquidityPoolWithdrawResult liquidityPoolWithdrawResult)
      Value of the liquidityPoolWithdrawResult field.
      Parameters:
      liquidityPoolWithdrawResult - the liquidityPoolWithdrawResult field value
    • setInvokeHostFunctionResult

      public void setInvokeHostFunctionResult(InvokeHostFunctionResult invokeHostFunctionResult)
      Value of the invokeHostFunctionResult field.
      Parameters:
      invokeHostFunctionResult - the invokeHostFunctionResult field value
    • setExtendFootprintTTLResult

      public void setExtendFootprintTTLResult(ExtendFootprintTTLResult extendFootprintTTLResult)
      Value of the extendFootprintTTLResult field.
      Parameters:
      extendFootprintTTLResult - the extendFootprintTTLResult field value
    • setRestoreFootprintResult

      public void setRestoreFootprintResult(RestoreFootprintResult restoreFootprintResult)
      Value of the restoreFootprintResult field.
      Parameters:
      restoreFootprintResult - the restoreFootprintResult field value
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object