Class EvmTransactionResult.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder<EvmTransactionResult,EvmTransactionResult.Builder>
com.google.protobuf.GeneratedMessageLite.Builder<EvmTransactionResult,EvmTransactionResult.Builder>
com.hedera.hashgraph.sdk.proto.EvmTransactionResult.Builder
All Implemented Interfaces:
com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, EvmTransactionResultOrBuilder, Cloneable
Enclosing class:
EvmTransactionResult

public static final class EvmTransactionResult.Builder extends com.google.protobuf.GeneratedMessageLite.Builder<EvmTransactionResult,EvmTransactionResult.Builder> implements EvmTransactionResultOrBuilder
 *
 Results of executing a EVM transaction.<br/>
 
Protobuf type proto.EvmTransactionResult
  • Method Details

    • hasSenderId

      public boolean hasSenderId()
       *
       The Hedera id of the caller.<br/>
       
      .proto.AccountID sender_id = 1;
      Specified by:
      hasSenderId in interface EvmTransactionResultOrBuilder
      Returns:
      Whether the senderId field is set.
    • getSenderId

      public AccountID getSenderId()
       *
       The Hedera id of the caller.<br/>
       
      .proto.AccountID sender_id = 1;
      Specified by:
      getSenderId in interface EvmTransactionResultOrBuilder
      Returns:
      The senderId.
    • setSenderId

      public EvmTransactionResult.Builder setSenderId(AccountID value)
       *
       The Hedera id of the caller.<br/>
       
      .proto.AccountID sender_id = 1;
    • setSenderId

      public EvmTransactionResult.Builder setSenderId(AccountID.Builder builderForValue)
       *
       The Hedera id of the caller.<br/>
       
      .proto.AccountID sender_id = 1;
    • mergeSenderId

      public EvmTransactionResult.Builder mergeSenderId(AccountID value)
       *
       The Hedera id of the caller.<br/>
       
      .proto.AccountID sender_id = 1;
    • clearSenderId

      public EvmTransactionResult.Builder clearSenderId()
       *
       The Hedera id of the caller.<br/>
       
      .proto.AccountID sender_id = 1;
    • hasContractId

      public boolean hasContractId()
       *
       The Hedera id of the contract receiving the call.<br/>
       
      .proto.ContractID contract_id = 2;
      Specified by:
      hasContractId in interface EvmTransactionResultOrBuilder
      Returns:
      Whether the contractId field is set.
    • getContractId

      public ContractID getContractId()
       *
       The Hedera id of the contract receiving the call.<br/>
       
      .proto.ContractID contract_id = 2;
      Specified by:
      getContractId in interface EvmTransactionResultOrBuilder
      Returns:
      The contractId.
    • setContractId

      public EvmTransactionResult.Builder setContractId(ContractID value)
       *
       The Hedera id of the contract receiving the call.<br/>
       
      .proto.ContractID contract_id = 2;
    • setContractId

      public EvmTransactionResult.Builder setContractId(ContractID.Builder builderForValue)
       *
       The Hedera id of the contract receiving the call.<br/>
       
      .proto.ContractID contract_id = 2;
    • mergeContractId

      public EvmTransactionResult.Builder mergeContractId(ContractID value)
       *
       The Hedera id of the contract receiving the call.<br/>
       
      .proto.ContractID contract_id = 2;
    • clearContractId

      public EvmTransactionResult.Builder clearContractId()
       *
       The Hedera id of the contract receiving the call.<br/>
       
      .proto.ContractID contract_id = 2;
    • getResultData

      public com.google.protobuf.ByteString getResultData()
       *
       Result data from the function call.
       
      bytes result_data = 3;
      Specified by:
      getResultData in interface EvmTransactionResultOrBuilder
      Returns:
      The resultData.
    • setResultData

      public EvmTransactionResult.Builder setResultData(com.google.protobuf.ByteString value)
       *
       Result data from the function call.
       
      bytes result_data = 3;
      Parameters:
      value - The resultData to set.
      Returns:
      This builder for chaining.
    • clearResultData

      public EvmTransactionResult.Builder clearResultData()
       *
       Result data from the function call.
       
      bytes result_data = 3;
      Returns:
      This builder for chaining.
    • getErrorMessage

      public String getErrorMessage()
       *
       Any error message produced by the contract call. Max size of 100 bytes.
       <p>
       This SHALL be unset if the contract call succeeded.
       
      string error_message = 4;
      Specified by:
      getErrorMessage in interface EvmTransactionResultOrBuilder
      Returns:
      The errorMessage.
    • getErrorMessageBytes

      public com.google.protobuf.ByteString getErrorMessageBytes()
       *
       Any error message produced by the contract call. Max size of 100 bytes.
       <p>
       This SHALL be unset if the contract call succeeded.
       
      string error_message = 4;
      Specified by:
      getErrorMessageBytes in interface EvmTransactionResultOrBuilder
      Returns:
      The bytes for errorMessage.
    • setErrorMessage

      public EvmTransactionResult.Builder setErrorMessage(String value)
       *
       Any error message produced by the contract call. Max size of 100 bytes.
       <p>
       This SHALL be unset if the contract call succeeded.
       
      string error_message = 4;
      Parameters:
      value - The errorMessage to set.
      Returns:
      This builder for chaining.
    • clearErrorMessage

      public EvmTransactionResult.Builder clearErrorMessage()
       *
       Any error message produced by the contract call. Max size of 100 bytes.
       <p>
       This SHALL be unset if the contract call succeeded.
       
      string error_message = 4;
      Returns:
      This builder for chaining.
    • setErrorMessageBytes

      public EvmTransactionResult.Builder setErrorMessageBytes(com.google.protobuf.ByteString value)
       *
       Any error message produced by the contract call. Max size of 100 bytes.
       <p>
       This SHALL be unset if the contract call succeeded.
       
      string error_message = 4;
      Parameters:
      value - The bytes for errorMessage to set.
      Returns:
      This builder for chaining.
    • getGasUsed

      public long getGasUsed()
       *
       EVM gas used.
       
      uint64 gas_used = 5;
      Specified by:
      getGasUsed in interface EvmTransactionResultOrBuilder
      Returns:
      The gasUsed.
    • setGasUsed

      public EvmTransactionResult.Builder setGasUsed(long value)
       *
       EVM gas used.
       
      uint64 gas_used = 5;
      Parameters:
      value - The gasUsed to set.
      Returns:
      This builder for chaining.
    • clearGasUsed

      public EvmTransactionResult.Builder clearGasUsed()
       *
       EVM gas used.
       
      uint64 gas_used = 5;
      Returns:
      This builder for chaining.
    • hasInternalCallContext

      public boolean hasInternalCallContext()
       *
       If not already externalized in a transaction body, the context of the
       internal call producing this result.
       
      .proto.InternalCallContext internal_call_context = 6;
      Specified by:
      hasInternalCallContext in interface EvmTransactionResultOrBuilder
      Returns:
      Whether the internalCallContext field is set.
    • getInternalCallContext

      public InternalCallContext getInternalCallContext()
       *
       If not already externalized in a transaction body, the context of the
       internal call producing this result.
       
      .proto.InternalCallContext internal_call_context = 6;
      Specified by:
      getInternalCallContext in interface EvmTransactionResultOrBuilder
      Returns:
      The internalCallContext.
    • setInternalCallContext

      public EvmTransactionResult.Builder setInternalCallContext(InternalCallContext value)
       *
       If not already externalized in a transaction body, the context of the
       internal call producing this result.
       
      .proto.InternalCallContext internal_call_context = 6;
    • setInternalCallContext

      public EvmTransactionResult.Builder setInternalCallContext(InternalCallContext.Builder builderForValue)
       *
       If not already externalized in a transaction body, the context of the
       internal call producing this result.
       
      .proto.InternalCallContext internal_call_context = 6;
    • mergeInternalCallContext

      public EvmTransactionResult.Builder mergeInternalCallContext(InternalCallContext value)
       *
       If not already externalized in a transaction body, the context of the
       internal call producing this result.
       
      .proto.InternalCallContext internal_call_context = 6;
    • clearInternalCallContext

      public EvmTransactionResult.Builder clearInternalCallContext()
       *
       If not already externalized in a transaction body, the context of the
       internal call producing this result.
       
      .proto.InternalCallContext internal_call_context = 6;
    • hasExecutedHookId

      public boolean hasExecutedHookId()
       *
       If set, the id of the executed hook.
       
      .proto.HookId executed_hook_id = 7;
      Specified by:
      hasExecutedHookId in interface EvmTransactionResultOrBuilder
      Returns:
      Whether the executedHookId field is set.
    • getExecutedHookId

      public HookId getExecutedHookId()
       *
       If set, the id of the executed hook.
       
      .proto.HookId executed_hook_id = 7;
      Specified by:
      getExecutedHookId in interface EvmTransactionResultOrBuilder
      Returns:
      The executedHookId.
    • setExecutedHookId

      public EvmTransactionResult.Builder setExecutedHookId(HookId value)
       *
       If set, the id of the executed hook.
       
      .proto.HookId executed_hook_id = 7;
    • setExecutedHookId

      public EvmTransactionResult.Builder setExecutedHookId(HookId.Builder builderForValue)
       *
       If set, the id of the executed hook.
       
      .proto.HookId executed_hook_id = 7;
    • mergeExecutedHookId

      public EvmTransactionResult.Builder mergeExecutedHookId(HookId value)
       *
       If set, the id of the executed hook.
       
      .proto.HookId executed_hook_id = 7;
    • clearExecutedHookId

      public EvmTransactionResult.Builder clearExecutedHookId()
       *
       If set, the id of the executed hook.
       
      .proto.HookId executed_hook_id = 7;
    • getContractNoncesList

      public List<ContractNonceInfo> getContractNoncesList()
       *
       A list of contract account nonce values.<br/>
       This list SHALL contain a nonce value for each contract account modified
       as a result of this contract call. These nonce values SHALL be the value
       after the contract call is completed.
       
      repeated .proto.ContractNonceInfo contract_nonces = 8;
      Specified by:
      getContractNoncesList in interface EvmTransactionResultOrBuilder
    • getContractNoncesCount

      public int getContractNoncesCount()
       *
       A list of contract account nonce values.<br/>
       This list SHALL contain a nonce value for each contract account modified
       as a result of this contract call. These nonce values SHALL be the value
       after the contract call is completed.
       
      repeated .proto.ContractNonceInfo contract_nonces = 8;
      Specified by:
      getContractNoncesCount in interface EvmTransactionResultOrBuilder
    • getContractNonces

      public ContractNonceInfo getContractNonces(int index)
       *
       A list of contract account nonce values.<br/>
       This list SHALL contain a nonce value for each contract account modified
       as a result of this contract call. These nonce values SHALL be the value
       after the contract call is completed.
       
      repeated .proto.ContractNonceInfo contract_nonces = 8;
      Specified by:
      getContractNonces in interface EvmTransactionResultOrBuilder
    • setContractNonces

      public EvmTransactionResult.Builder setContractNonces(int index, ContractNonceInfo value)
       *
       A list of contract account nonce values.<br/>
       This list SHALL contain a nonce value for each contract account modified
       as a result of this contract call. These nonce values SHALL be the value
       after the contract call is completed.
       
      repeated .proto.ContractNonceInfo contract_nonces = 8;
    • setContractNonces

      public EvmTransactionResult.Builder setContractNonces(int index, ContractNonceInfo.Builder builderForValue)
       *
       A list of contract account nonce values.<br/>
       This list SHALL contain a nonce value for each contract account modified
       as a result of this contract call. These nonce values SHALL be the value
       after the contract call is completed.
       
      repeated .proto.ContractNonceInfo contract_nonces = 8;
    • addContractNonces

      public EvmTransactionResult.Builder addContractNonces(ContractNonceInfo value)
       *
       A list of contract account nonce values.<br/>
       This list SHALL contain a nonce value for each contract account modified
       as a result of this contract call. These nonce values SHALL be the value
       after the contract call is completed.
       
      repeated .proto.ContractNonceInfo contract_nonces = 8;
    • addContractNonces

      public EvmTransactionResult.Builder addContractNonces(int index, ContractNonceInfo value)
       *
       A list of contract account nonce values.<br/>
       This list SHALL contain a nonce value for each contract account modified
       as a result of this contract call. These nonce values SHALL be the value
       after the contract call is completed.
       
      repeated .proto.ContractNonceInfo contract_nonces = 8;
    • addContractNonces

      public EvmTransactionResult.Builder addContractNonces(ContractNonceInfo.Builder builderForValue)
       *
       A list of contract account nonce values.<br/>
       This list SHALL contain a nonce value for each contract account modified
       as a result of this contract call. These nonce values SHALL be the value
       after the contract call is completed.
       
      repeated .proto.ContractNonceInfo contract_nonces = 8;
    • addContractNonces

      public EvmTransactionResult.Builder addContractNonces(int index, ContractNonceInfo.Builder builderForValue)
       *
       A list of contract account nonce values.<br/>
       This list SHALL contain a nonce value for each contract account modified
       as a result of this contract call. These nonce values SHALL be the value
       after the contract call is completed.
       
      repeated .proto.ContractNonceInfo contract_nonces = 8;
    • addAllContractNonces

      public EvmTransactionResult.Builder addAllContractNonces(Iterable<? extends ContractNonceInfo> values)
       *
       A list of contract account nonce values.<br/>
       This list SHALL contain a nonce value for each contract account modified
       as a result of this contract call. These nonce values SHALL be the value
       after the contract call is completed.
       
      repeated .proto.ContractNonceInfo contract_nonces = 8;
    • clearContractNonces

      public EvmTransactionResult.Builder clearContractNonces()
       *
       A list of contract account nonce values.<br/>
       This list SHALL contain a nonce value for each contract account modified
       as a result of this contract call. These nonce values SHALL be the value
       after the contract call is completed.
       
      repeated .proto.ContractNonceInfo contract_nonces = 8;
    • removeContractNonces

      public EvmTransactionResult.Builder removeContractNonces(int index)
       *
       A list of contract account nonce values.<br/>
       This list SHALL contain a nonce value for each contract account modified
       as a result of this contract call. These nonce values SHALL be the value
       after the contract call is completed.
       
      repeated .proto.ContractNonceInfo contract_nonces = 8;
    • hasSignerNonce

      public boolean hasSignerNonce()
       *
       In an EthereumTransaction, the nonce of the signer account at the end of
       the transaction.<br/>
       
      .google.protobuf.Int64Value signer_nonce = 9;
      Specified by:
      hasSignerNonce in interface EvmTransactionResultOrBuilder
      Returns:
      Whether the signerNonce field is set.
    • getSignerNonce

      public com.google.protobuf.Int64Value getSignerNonce()
       *
       In an EthereumTransaction, the nonce of the signer account at the end of
       the transaction.<br/>
       
      .google.protobuf.Int64Value signer_nonce = 9;
      Specified by:
      getSignerNonce in interface EvmTransactionResultOrBuilder
      Returns:
      The signerNonce.
    • setSignerNonce

      public EvmTransactionResult.Builder setSignerNonce(com.google.protobuf.Int64Value value)
       *
       In an EthereumTransaction, the nonce of the signer account at the end of
       the transaction.<br/>
       
      .google.protobuf.Int64Value signer_nonce = 9;
    • setSignerNonce

      public EvmTransactionResult.Builder setSignerNonce(com.google.protobuf.Int64Value.Builder builderForValue)
       *
       In an EthereumTransaction, the nonce of the signer account at the end of
       the transaction.<br/>
       
      .google.protobuf.Int64Value signer_nonce = 9;
    • mergeSignerNonce

      public EvmTransactionResult.Builder mergeSignerNonce(com.google.protobuf.Int64Value value)
       *
       In an EthereumTransaction, the nonce of the signer account at the end of
       the transaction.<br/>
       
      .google.protobuf.Int64Value signer_nonce = 9;
    • clearSignerNonce

      public EvmTransactionResult.Builder clearSignerNonce()
       *
       In an EthereumTransaction, the nonce of the signer account at the end of
       the transaction.<br/>
       
      .google.protobuf.Int64Value signer_nonce = 9;