Class ContractFunctionResult.Builder

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

public static final class ContractFunctionResult.Builder extends com.google.protobuf.GeneratedMessageLite.Builder<ContractFunctionResult,ContractFunctionResult.Builder> implements ContractFunctionResultOrBuilder
 *
 A contract function result.<br/>
 The result returned by a call to a smart contract function. This is part of
 the response to a ContractCallLocal query, and is in the record for a
 ContractCall. The ContractCreateInstance transaction record also carries a
 function result, which is the results of the call to the constructor.
 
Protobuf type proto.ContractFunctionResult
  • Method Details

    • hasContractID

      public boolean hasContractID()
       *
       A contract identifier.<br/>
       This identifies the smart contract that defines the function called.
       
      .proto.ContractID contractID = 1;
      Specified by:
      hasContractID in interface ContractFunctionResultOrBuilder
      Returns:
      Whether the contractID field is set.
    • getContractID

      public ContractID getContractID()
       *
       A contract identifier.<br/>
       This identifies the smart contract that defines the function called.
       
      .proto.ContractID contractID = 1;
      Specified by:
      getContractID in interface ContractFunctionResultOrBuilder
      Returns:
      The contractID.
    • setContractID

      public ContractFunctionResult.Builder setContractID(ContractID value)
       *
       A contract identifier.<br/>
       This identifies the smart contract that defines the function called.
       
      .proto.ContractID contractID = 1;
    • setContractID

      public ContractFunctionResult.Builder setContractID(ContractID.Builder builderForValue)
       *
       A contract identifier.<br/>
       This identifies the smart contract that defines the function called.
       
      .proto.ContractID contractID = 1;
    • mergeContractID

      public ContractFunctionResult.Builder mergeContractID(ContractID value)
       *
       A contract identifier.<br/>
       This identifies the smart contract that defines the function called.
       
      .proto.ContractID contractID = 1;
    • clearContractID

      public ContractFunctionResult.Builder clearContractID()
       *
       A contract identifier.<br/>
       This identifies the smart contract that defines the function called.
       
      .proto.ContractID contractID = 1;
    • getContractCallResult

      public com.google.protobuf.ByteString getContractCallResult()
       *
       Result data from the function call.
       <p>
       This SHALL be encoded in RLP bytecode format.
       
      bytes contractCallResult = 2;
      Specified by:
      getContractCallResult in interface ContractFunctionResultOrBuilder
      Returns:
      The contractCallResult.
    • setContractCallResult

      public ContractFunctionResult.Builder setContractCallResult(com.google.protobuf.ByteString value)
       *
       Result data from the function call.
       <p>
       This SHALL be encoded in RLP bytecode format.
       
      bytes contractCallResult = 2;
      Parameters:
      value - The contractCallResult to set.
      Returns:
      This builder for chaining.
    • clearContractCallResult

      public ContractFunctionResult.Builder clearContractCallResult()
       *
       Result data from the function call.
       <p>
       This SHALL be encoded in RLP bytecode format.
       
      bytes contractCallResult = 2;
      Returns:
      This builder for chaining.
    • getErrorMessage

      public String getErrorMessage()
       *
       Any error message produced by the contract call.
       <p>
       This SHALL be unset if the contract call succeeded.
       
      string errorMessage = 3;
      Specified by:
      getErrorMessage in interface ContractFunctionResultOrBuilder
      Returns:
      The errorMessage.
    • getErrorMessageBytes

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

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

      public ContractFunctionResult.Builder clearErrorMessage()
       *
       Any error message produced by the contract call.
       <p>
       This SHALL be unset if the contract call succeeded.
       
      string errorMessage = 3;
      Returns:
      This builder for chaining.
    • setErrorMessageBytes

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

      public com.google.protobuf.ByteString getBloom()
       *
       A bloom filter produced by this contract call.<br/>
       Ethereum uses this bloom filter to search for call results in the
       Ethereum block history. High false positive rates make the bloom
       filters quite limited value.
       
      bytes bloom = 4;
      Specified by:
      getBloom in interface ContractFunctionResultOrBuilder
      Returns:
      The bloom.
    • setBloom

      public ContractFunctionResult.Builder setBloom(com.google.protobuf.ByteString value)
       *
       A bloom filter produced by this contract call.<br/>
       Ethereum uses this bloom filter to search for call results in the
       Ethereum block history. High false positive rates make the bloom
       filters quite limited value.
       
      bytes bloom = 4;
      Parameters:
      value - The bloom to set.
      Returns:
      This builder for chaining.
    • clearBloom

      public ContractFunctionResult.Builder clearBloom()
       *
       A bloom filter produced by this contract call.<br/>
       Ethereum uses this bloom filter to search for call results in the
       Ethereum block history. High false positive rates make the bloom
       filters quite limited value.
       
      bytes bloom = 4;
      Returns:
      This builder for chaining.
    • getGasUsed

      public long getGasUsed()
       *
       A quantity of "gas" used.<br/>
       This represents the resource units expended to execute this
       contract call, and correlates to transaction costs.
       
      uint64 gasUsed = 5;
      Specified by:
      getGasUsed in interface ContractFunctionResultOrBuilder
      Returns:
      The gasUsed.
    • setGasUsed

      public ContractFunctionResult.Builder setGasUsed(long value)
       *
       A quantity of "gas" used.<br/>
       This represents the resource units expended to execute this
       contract call, and correlates to transaction costs.
       
      uint64 gasUsed = 5;
      Parameters:
      value - The gasUsed to set.
      Returns:
      This builder for chaining.
    • clearGasUsed

      public ContractFunctionResult.Builder clearGasUsed()
       *
       A quantity of "gas" used.<br/>
       This represents the resource units expended to execute this
       contract call, and correlates to transaction costs.
       
      uint64 gasUsed = 5;
      Returns:
      This builder for chaining.
    • getLogInfoList

      public List<ContractLoginfo> getLogInfoList()
       *
       Any Log events produced by this contract call.
       
      repeated .proto.ContractLoginfo logInfo = 6;
      Specified by:
      getLogInfoList in interface ContractFunctionResultOrBuilder
    • getLogInfoCount

      public int getLogInfoCount()
       *
       Any Log events produced by this contract call.
       
      repeated .proto.ContractLoginfo logInfo = 6;
      Specified by:
      getLogInfoCount in interface ContractFunctionResultOrBuilder
    • getLogInfo

      public ContractLoginfo getLogInfo(int index)
       *
       Any Log events produced by this contract call.
       
      repeated .proto.ContractLoginfo logInfo = 6;
      Specified by:
      getLogInfo in interface ContractFunctionResultOrBuilder
    • setLogInfo

      public ContractFunctionResult.Builder setLogInfo(int index, ContractLoginfo value)
       *
       Any Log events produced by this contract call.
       
      repeated .proto.ContractLoginfo logInfo = 6;
    • setLogInfo

      public ContractFunctionResult.Builder setLogInfo(int index, ContractLoginfo.Builder builderForValue)
       *
       Any Log events produced by this contract call.
       
      repeated .proto.ContractLoginfo logInfo = 6;
    • addLogInfo

       *
       Any Log events produced by this contract call.
       
      repeated .proto.ContractLoginfo logInfo = 6;
    • addLogInfo

      public ContractFunctionResult.Builder addLogInfo(int index, ContractLoginfo value)
       *
       Any Log events produced by this contract call.
       
      repeated .proto.ContractLoginfo logInfo = 6;
    • addLogInfo

      public ContractFunctionResult.Builder addLogInfo(ContractLoginfo.Builder builderForValue)
       *
       Any Log events produced by this contract call.
       
      repeated .proto.ContractLoginfo logInfo = 6;
    • addLogInfo

      public ContractFunctionResult.Builder addLogInfo(int index, ContractLoginfo.Builder builderForValue)
       *
       Any Log events produced by this contract call.
       
      repeated .proto.ContractLoginfo logInfo = 6;
    • addAllLogInfo

      public ContractFunctionResult.Builder addAllLogInfo(Iterable<? extends ContractLoginfo> values)
       *
       Any Log events produced by this contract call.
       
      repeated .proto.ContractLoginfo logInfo = 6;
    • clearLogInfo

      public ContractFunctionResult.Builder clearLogInfo()
       *
       Any Log events produced by this contract call.
       
      repeated .proto.ContractLoginfo logInfo = 6;
    • removeLogInfo

      public ContractFunctionResult.Builder removeLogInfo(int index)
       *
       Any Log events produced by this contract call.
       
      repeated .proto.ContractLoginfo logInfo = 6;
    • getCreatedContractIDsList

      @Deprecated public List<ContractID> getCreatedContractIDsList()
      Deprecated.
       *
       Replaced by values in transaction records to support
       `CREATE2` calls.<br/>
       <p>
       The list of smart contracts that were created by the function call.<br/>
       The created ids will now _also_ be externalized through internal
       transaction records, where each record has its alias field populated
       with the new contract's EVM address.<br/>
       This is needed for contracts created with CREATE2, which removes the
       trivial relationship between a new contract's Identifier and its
       Solidity address.
       
      repeated .proto.ContractID createdContractIDs = 7 [deprecated = true];
      Specified by:
      getCreatedContractIDsList in interface ContractFunctionResultOrBuilder
    • getCreatedContractIDsCount

      @Deprecated public int getCreatedContractIDsCount()
      Deprecated.
       *
       Replaced by values in transaction records to support
       `CREATE2` calls.<br/>
       <p>
       The list of smart contracts that were created by the function call.<br/>
       The created ids will now _also_ be externalized through internal
       transaction records, where each record has its alias field populated
       with the new contract's EVM address.<br/>
       This is needed for contracts created with CREATE2, which removes the
       trivial relationship between a new contract's Identifier and its
       Solidity address.
       
      repeated .proto.ContractID createdContractIDs = 7 [deprecated = true];
      Specified by:
      getCreatedContractIDsCount in interface ContractFunctionResultOrBuilder
    • getCreatedContractIDs

      @Deprecated public ContractID getCreatedContractIDs(int index)
      Deprecated.
       *
       Replaced by values in transaction records to support
       `CREATE2` calls.<br/>
       <p>
       The list of smart contracts that were created by the function call.<br/>
       The created ids will now _also_ be externalized through internal
       transaction records, where each record has its alias field populated
       with the new contract's EVM address.<br/>
       This is needed for contracts created with CREATE2, which removes the
       trivial relationship between a new contract's Identifier and its
       Solidity address.
       
      repeated .proto.ContractID createdContractIDs = 7 [deprecated = true];
      Specified by:
      getCreatedContractIDs in interface ContractFunctionResultOrBuilder
    • setCreatedContractIDs

      @Deprecated public ContractFunctionResult.Builder setCreatedContractIDs(int index, ContractID value)
      Deprecated.
       *
       Replaced by values in transaction records to support
       `CREATE2` calls.<br/>
       <p>
       The list of smart contracts that were created by the function call.<br/>
       The created ids will now _also_ be externalized through internal
       transaction records, where each record has its alias field populated
       with the new contract's EVM address.<br/>
       This is needed for contracts created with CREATE2, which removes the
       trivial relationship between a new contract's Identifier and its
       Solidity address.
       
      repeated .proto.ContractID createdContractIDs = 7 [deprecated = true];
    • setCreatedContractIDs

      @Deprecated public ContractFunctionResult.Builder setCreatedContractIDs(int index, ContractID.Builder builderForValue)
      Deprecated.
       *
       Replaced by values in transaction records to support
       `CREATE2` calls.<br/>
       <p>
       The list of smart contracts that were created by the function call.<br/>
       The created ids will now _also_ be externalized through internal
       transaction records, where each record has its alias field populated
       with the new contract's EVM address.<br/>
       This is needed for contracts created with CREATE2, which removes the
       trivial relationship between a new contract's Identifier and its
       Solidity address.
       
      repeated .proto.ContractID createdContractIDs = 7 [deprecated = true];
    • addCreatedContractIDs

      @Deprecated public ContractFunctionResult.Builder addCreatedContractIDs(ContractID value)
      Deprecated.
       *
       Replaced by values in transaction records to support
       `CREATE2` calls.<br/>
       <p>
       The list of smart contracts that were created by the function call.<br/>
       The created ids will now _also_ be externalized through internal
       transaction records, where each record has its alias field populated
       with the new contract's EVM address.<br/>
       This is needed for contracts created with CREATE2, which removes the
       trivial relationship between a new contract's Identifier and its
       Solidity address.
       
      repeated .proto.ContractID createdContractIDs = 7 [deprecated = true];
    • addCreatedContractIDs

      @Deprecated public ContractFunctionResult.Builder addCreatedContractIDs(int index, ContractID value)
      Deprecated.
       *
       Replaced by values in transaction records to support
       `CREATE2` calls.<br/>
       <p>
       The list of smart contracts that were created by the function call.<br/>
       The created ids will now _also_ be externalized through internal
       transaction records, where each record has its alias field populated
       with the new contract's EVM address.<br/>
       This is needed for contracts created with CREATE2, which removes the
       trivial relationship between a new contract's Identifier and its
       Solidity address.
       
      repeated .proto.ContractID createdContractIDs = 7 [deprecated = true];
    • addCreatedContractIDs

      @Deprecated public ContractFunctionResult.Builder addCreatedContractIDs(ContractID.Builder builderForValue)
      Deprecated.
       *
       Replaced by values in transaction records to support
       `CREATE2` calls.<br/>
       <p>
       The list of smart contracts that were created by the function call.<br/>
       The created ids will now _also_ be externalized through internal
       transaction records, where each record has its alias field populated
       with the new contract's EVM address.<br/>
       This is needed for contracts created with CREATE2, which removes the
       trivial relationship between a new contract's Identifier and its
       Solidity address.
       
      repeated .proto.ContractID createdContractIDs = 7 [deprecated = true];
    • addCreatedContractIDs

      @Deprecated public ContractFunctionResult.Builder addCreatedContractIDs(int index, ContractID.Builder builderForValue)
      Deprecated.
       *
       Replaced by values in transaction records to support
       `CREATE2` calls.<br/>
       <p>
       The list of smart contracts that were created by the function call.<br/>
       The created ids will now _also_ be externalized through internal
       transaction records, where each record has its alias field populated
       with the new contract's EVM address.<br/>
       This is needed for contracts created with CREATE2, which removes the
       trivial relationship between a new contract's Identifier and its
       Solidity address.
       
      repeated .proto.ContractID createdContractIDs = 7 [deprecated = true];
    • addAllCreatedContractIDs

      @Deprecated public ContractFunctionResult.Builder addAllCreatedContractIDs(Iterable<? extends ContractID> values)
      Deprecated.
       *
       Replaced by values in transaction records to support
       `CREATE2` calls.<br/>
       <p>
       The list of smart contracts that were created by the function call.<br/>
       The created ids will now _also_ be externalized through internal
       transaction records, where each record has its alias field populated
       with the new contract's EVM address.<br/>
       This is needed for contracts created with CREATE2, which removes the
       trivial relationship between a new contract's Identifier and its
       Solidity address.
       
      repeated .proto.ContractID createdContractIDs = 7 [deprecated = true];
    • clearCreatedContractIDs

      @Deprecated public ContractFunctionResult.Builder clearCreatedContractIDs()
      Deprecated.
       *
       Replaced by values in transaction records to support
       `CREATE2` calls.<br/>
       <p>
       The list of smart contracts that were created by the function call.<br/>
       The created ids will now _also_ be externalized through internal
       transaction records, where each record has its alias field populated
       with the new contract's EVM address.<br/>
       This is needed for contracts created with CREATE2, which removes the
       trivial relationship between a new contract's Identifier and its
       Solidity address.
       
      repeated .proto.ContractID createdContractIDs = 7 [deprecated = true];
    • removeCreatedContractIDs

      @Deprecated public ContractFunctionResult.Builder removeCreatedContractIDs(int index)
      Deprecated.
       *
       Replaced by values in transaction records to support
       `CREATE2` calls.<br/>
       <p>
       The list of smart contracts that were created by the function call.<br/>
       The created ids will now _also_ be externalized through internal
       transaction records, where each record has its alias field populated
       with the new contract's EVM address.<br/>
       This is needed for contracts created with CREATE2, which removes the
       trivial relationship between a new contract's Identifier and its
       Solidity address.
       
      repeated .proto.ContractID createdContractIDs = 7 [deprecated = true];
    • hasEvmAddress

      public boolean hasEvmAddress()
       *
       A created contract address.<br/>
       If the function created a new contract (e.g. `CREATE2`),
       this is the primary 20-byte EVM address for that contract.
       <p>
       Every contract SHALL have a "base" EVM address that is determined by its
       `shard.realm.num` contract ID.<br/>
       This address is constructed as follows
       <ol>
       <li>The first 4 bytes are the big-endian
       representation of the shard.</li>
       <li>The next 8 bytes are the big-endian
       representation of the realm.</li>
       <li>The final 8 bytes are the big-endian
       representation of the number.</li>
       </ol>
       <p>
       Contracts created via `CREATE2` SHALL have an _additional_, primary,
       address that is derived from the
       <a href="https://eips.ethereum.org/EIPS/eip-1014"><tt>EIP-1014</tt></a>
       specification. This additional address SHALL NOT be directly related to
       the `shard.realm.num` contract ID.<br/>
       It should be emphasized that Contracts created via a `CREATE2` call can
       also be referenced via the same "base" EVM address as described above.
       
      .google.protobuf.BytesValue evm_address = 9;
      Specified by:
      hasEvmAddress in interface ContractFunctionResultOrBuilder
      Returns:
      Whether the evmAddress field is set.
    • getEvmAddress

      public com.google.protobuf.BytesValue getEvmAddress()
       *
       A created contract address.<br/>
       If the function created a new contract (e.g. `CREATE2`),
       this is the primary 20-byte EVM address for that contract.
       <p>
       Every contract SHALL have a "base" EVM address that is determined by its
       `shard.realm.num` contract ID.<br/>
       This address is constructed as follows
       <ol>
       <li>The first 4 bytes are the big-endian
       representation of the shard.</li>
       <li>The next 8 bytes are the big-endian
       representation of the realm.</li>
       <li>The final 8 bytes are the big-endian
       representation of the number.</li>
       </ol>
       <p>
       Contracts created via `CREATE2` SHALL have an _additional_, primary,
       address that is derived from the
       <a href="https://eips.ethereum.org/EIPS/eip-1014"><tt>EIP-1014</tt></a>
       specification. This additional address SHALL NOT be directly related to
       the `shard.realm.num` contract ID.<br/>
       It should be emphasized that Contracts created via a `CREATE2` call can
       also be referenced via the same "base" EVM address as described above.
       
      .google.protobuf.BytesValue evm_address = 9;
      Specified by:
      getEvmAddress in interface ContractFunctionResultOrBuilder
      Returns:
      The evmAddress.
    • setEvmAddress

      public ContractFunctionResult.Builder setEvmAddress(com.google.protobuf.BytesValue value)
       *
       A created contract address.<br/>
       If the function created a new contract (e.g. `CREATE2`),
       this is the primary 20-byte EVM address for that contract.
       <p>
       Every contract SHALL have a "base" EVM address that is determined by its
       `shard.realm.num` contract ID.<br/>
       This address is constructed as follows
       <ol>
       <li>The first 4 bytes are the big-endian
       representation of the shard.</li>
       <li>The next 8 bytes are the big-endian
       representation of the realm.</li>
       <li>The final 8 bytes are the big-endian
       representation of the number.</li>
       </ol>
       <p>
       Contracts created via `CREATE2` SHALL have an _additional_, primary,
       address that is derived from the
       <a href="https://eips.ethereum.org/EIPS/eip-1014"><tt>EIP-1014</tt></a>
       specification. This additional address SHALL NOT be directly related to
       the `shard.realm.num` contract ID.<br/>
       It should be emphasized that Contracts created via a `CREATE2` call can
       also be referenced via the same "base" EVM address as described above.
       
      .google.protobuf.BytesValue evm_address = 9;
    • setEvmAddress

      public ContractFunctionResult.Builder setEvmAddress(com.google.protobuf.BytesValue.Builder builderForValue)
       *
       A created contract address.<br/>
       If the function created a new contract (e.g. `CREATE2`),
       this is the primary 20-byte EVM address for that contract.
       <p>
       Every contract SHALL have a "base" EVM address that is determined by its
       `shard.realm.num` contract ID.<br/>
       This address is constructed as follows
       <ol>
       <li>The first 4 bytes are the big-endian
       representation of the shard.</li>
       <li>The next 8 bytes are the big-endian
       representation of the realm.</li>
       <li>The final 8 bytes are the big-endian
       representation of the number.</li>
       </ol>
       <p>
       Contracts created via `CREATE2` SHALL have an _additional_, primary,
       address that is derived from the
       <a href="https://eips.ethereum.org/EIPS/eip-1014"><tt>EIP-1014</tt></a>
       specification. This additional address SHALL NOT be directly related to
       the `shard.realm.num` contract ID.<br/>
       It should be emphasized that Contracts created via a `CREATE2` call can
       also be referenced via the same "base" EVM address as described above.
       
      .google.protobuf.BytesValue evm_address = 9;
    • mergeEvmAddress

      public ContractFunctionResult.Builder mergeEvmAddress(com.google.protobuf.BytesValue value)
       *
       A created contract address.<br/>
       If the function created a new contract (e.g. `CREATE2`),
       this is the primary 20-byte EVM address for that contract.
       <p>
       Every contract SHALL have a "base" EVM address that is determined by its
       `shard.realm.num` contract ID.<br/>
       This address is constructed as follows
       <ol>
       <li>The first 4 bytes are the big-endian
       representation of the shard.</li>
       <li>The next 8 bytes are the big-endian
       representation of the realm.</li>
       <li>The final 8 bytes are the big-endian
       representation of the number.</li>
       </ol>
       <p>
       Contracts created via `CREATE2` SHALL have an _additional_, primary,
       address that is derived from the
       <a href="https://eips.ethereum.org/EIPS/eip-1014"><tt>EIP-1014</tt></a>
       specification. This additional address SHALL NOT be directly related to
       the `shard.realm.num` contract ID.<br/>
       It should be emphasized that Contracts created via a `CREATE2` call can
       also be referenced via the same "base" EVM address as described above.
       
      .google.protobuf.BytesValue evm_address = 9;
    • clearEvmAddress

      public ContractFunctionResult.Builder clearEvmAddress()
       *
       A created contract address.<br/>
       If the function created a new contract (e.g. `CREATE2`),
       this is the primary 20-byte EVM address for that contract.
       <p>
       Every contract SHALL have a "base" EVM address that is determined by its
       `shard.realm.num` contract ID.<br/>
       This address is constructed as follows
       <ol>
       <li>The first 4 bytes are the big-endian
       representation of the shard.</li>
       <li>The next 8 bytes are the big-endian
       representation of the realm.</li>
       <li>The final 8 bytes are the big-endian
       representation of the number.</li>
       </ol>
       <p>
       Contracts created via `CREATE2` SHALL have an _additional_, primary,
       address that is derived from the
       <a href="https://eips.ethereum.org/EIPS/eip-1014"><tt>EIP-1014</tt></a>
       specification. This additional address SHALL NOT be directly related to
       the `shard.realm.num` contract ID.<br/>
       It should be emphasized that Contracts created via a `CREATE2` call can
       also be referenced via the same "base" EVM address as described above.
       
      .google.protobuf.BytesValue evm_address = 9;
    • getGas

      public long getGas()
       *
       The amount of gas available for this call, sometimes referred to as the
       gasLimit.<br/>
       This field SHALL NOT be populated when the associated `TransactionBody`
       in the block stream is a `ContractCreateTransactionBody` or
       a `ContractCallTransactionBody`.
       
      int64 gas = 10;
      Specified by:
      getGas in interface ContractFunctionResultOrBuilder
      Returns:
      The gas.
    • setGas

      public ContractFunctionResult.Builder setGas(long value)
       *
       The amount of gas available for this call, sometimes referred to as the
       gasLimit.<br/>
       This field SHALL NOT be populated when the associated `TransactionBody`
       in the block stream is a `ContractCreateTransactionBody` or
       a `ContractCallTransactionBody`.
       
      int64 gas = 10;
      Parameters:
      value - The gas to set.
      Returns:
      This builder for chaining.
    • clearGas

      public ContractFunctionResult.Builder clearGas()
       *
       The amount of gas available for this call, sometimes referred to as the
       gasLimit.<br/>
       This field SHALL NOT be populated when the associated `TransactionBody`
       in the block stream is a `ContractCreateTransactionBody` or
       a `ContractCallTransactionBody`.
       
      int64 gas = 10;
      Returns:
      This builder for chaining.
    • getAmount

      public long getAmount()
       *
       An amount, in tinybar, sent by this function call.<br/>
       This SHALL be zero(0) if the function called is not `payable`.<br/>
       This field SHALL NOT be populated when the associated `TransactionBody`
       in the block stream is a `ContractCreateTransactionBody` or
       a `ContractCallTransactionBody`.
       
      int64 amount = 11;
      Specified by:
      getAmount in interface ContractFunctionResultOrBuilder
      Returns:
      The amount.
    • setAmount

      public ContractFunctionResult.Builder setAmount(long value)
       *
       An amount, in tinybar, sent by this function call.<br/>
       This SHALL be zero(0) if the function called is not `payable`.<br/>
       This field SHALL NOT be populated when the associated `TransactionBody`
       in the block stream is a `ContractCreateTransactionBody` or
       a `ContractCallTransactionBody`.
       
      int64 amount = 11;
      Parameters:
      value - The amount to set.
      Returns:
      This builder for chaining.
    • clearAmount

      public ContractFunctionResult.Builder clearAmount()
       *
       An amount, in tinybar, sent by this function call.<br/>
       This SHALL be zero(0) if the function called is not `payable`.<br/>
       This field SHALL NOT be populated when the associated `TransactionBody`
       in the block stream is a `ContractCreateTransactionBody` or
       a `ContractCallTransactionBody`.
       
      int64 amount = 11;
      Returns:
      This builder for chaining.
    • getFunctionParameters

      public com.google.protobuf.ByteString getFunctionParameters()
       *
       The smart contract function to call, and the parameters to pass to that
       function.<br/>
       These SHALL be presented in EVM bytecode function call format.<br/>
       This field SHALL NOT be populated when the associated `TransactionBody`
       in the block stream is a `ContractCreateTransactionBody` or
       a `ContractCallTransactionBody`.
       
      bytes functionParameters = 12;
      Specified by:
      getFunctionParameters in interface ContractFunctionResultOrBuilder
      Returns:
      The functionParameters.
    • setFunctionParameters

      public ContractFunctionResult.Builder setFunctionParameters(com.google.protobuf.ByteString value)
       *
       The smart contract function to call, and the parameters to pass to that
       function.<br/>
       These SHALL be presented in EVM bytecode function call format.<br/>
       This field SHALL NOT be populated when the associated `TransactionBody`
       in the block stream is a `ContractCreateTransactionBody` or
       a `ContractCallTransactionBody`.
       
      bytes functionParameters = 12;
      Parameters:
      value - The functionParameters to set.
      Returns:
      This builder for chaining.
    • clearFunctionParameters

      public ContractFunctionResult.Builder clearFunctionParameters()
       *
       The smart contract function to call, and the parameters to pass to that
       function.<br/>
       These SHALL be presented in EVM bytecode function call format.<br/>
       This field SHALL NOT be populated when the associated `TransactionBody`
       in the block stream is a `ContractCreateTransactionBody` or
       a `ContractCallTransactionBody`.
       
      bytes functionParameters = 12;
      Returns:
      This builder for chaining.
    • hasSenderId

      public boolean hasSenderId()
       *
       The account that was the "sender" for this contract call.<br/>
       If this is not set it SHALL be read from the accountId in the
       transactionId for the contract call.<br/>
       This field SHALL NOT be populated when the associated `TransactionBody`
       in the block stream is a `ContractCreateTransactionBody` or
       a `ContractCallTransactionBody`.
       
      .proto.AccountID sender_id = 13;
      Specified by:
      hasSenderId in interface ContractFunctionResultOrBuilder
      Returns:
      Whether the senderId field is set.
    • getSenderId

      public AccountID getSenderId()
       *
       The account that was the "sender" for this contract call.<br/>
       If this is not set it SHALL be read from the accountId in the
       transactionId for the contract call.<br/>
       This field SHALL NOT be populated when the associated `TransactionBody`
       in the block stream is a `ContractCreateTransactionBody` or
       a `ContractCallTransactionBody`.
       
      .proto.AccountID sender_id = 13;
      Specified by:
      getSenderId in interface ContractFunctionResultOrBuilder
      Returns:
      The senderId.
    • setSenderId

      public ContractFunctionResult.Builder setSenderId(AccountID value)
       *
       The account that was the "sender" for this contract call.<br/>
       If this is not set it SHALL be read from the accountId in the
       transactionId for the contract call.<br/>
       This field SHALL NOT be populated when the associated `TransactionBody`
       in the block stream is a `ContractCreateTransactionBody` or
       a `ContractCallTransactionBody`.
       
      .proto.AccountID sender_id = 13;
    • setSenderId

      public ContractFunctionResult.Builder setSenderId(AccountID.Builder builderForValue)
       *
       The account that was the "sender" for this contract call.<br/>
       If this is not set it SHALL be read from the accountId in the
       transactionId for the contract call.<br/>
       This field SHALL NOT be populated when the associated `TransactionBody`
       in the block stream is a `ContractCreateTransactionBody` or
       a `ContractCallTransactionBody`.
       
      .proto.AccountID sender_id = 13;
    • mergeSenderId

      public ContractFunctionResult.Builder mergeSenderId(AccountID value)
       *
       The account that was the "sender" for this contract call.<br/>
       If this is not set it SHALL be read from the accountId in the
       transactionId for the contract call.<br/>
       This field SHALL NOT be populated when the associated `TransactionBody`
       in the block stream is a `ContractCreateTransactionBody` or
       a `ContractCallTransactionBody`.
       
      .proto.AccountID sender_id = 13;
    • clearSenderId

      public ContractFunctionResult.Builder clearSenderId()
       *
       The account that was the "sender" for this contract call.<br/>
       If this is not set it SHALL be read from the accountId in the
       transactionId for the contract call.<br/>
       This field SHALL NOT be populated when the associated `TransactionBody`
       in the block stream is a `ContractCreateTransactionBody` or
       a `ContractCallTransactionBody`.
       
      .proto.AccountID sender_id = 13;
    • 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 = 14;
      Specified by:
      getContractNoncesList in interface ContractFunctionResultOrBuilder
    • 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 = 14;
      Specified by:
      getContractNoncesCount in interface ContractFunctionResultOrBuilder
    • 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 = 14;
      Specified by:
      getContractNonces in interface ContractFunctionResultOrBuilder
    • setContractNonces

      public ContractFunctionResult.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 = 14;
    • setContractNonces

      public ContractFunctionResult.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 = 14;
    • addContractNonces

      public ContractFunctionResult.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 = 14;
    • addContractNonces

      public ContractFunctionResult.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 = 14;
    • addContractNonces

      public ContractFunctionResult.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 = 14;
    • addContractNonces

      public ContractFunctionResult.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 = 14;
    • addAllContractNonces

      public ContractFunctionResult.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 = 14;
    • clearContractNonces

      public ContractFunctionResult.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 = 14;
    • removeContractNonces

      public ContractFunctionResult.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 = 14;
    • hasSignerNonce

      public boolean hasSignerNonce()
       *
       A nonce value for the "signer account".<br/>
       If the contract call updated the signer nonce for the signer account
       (i.e. by creating another contract), this field SHALL contain the
       updated value.<br/>
       If the signer account nonce was not updated, this field SHALL be `null`.
       
      .google.protobuf.Int64Value signer_nonce = 15;
      Specified by:
      hasSignerNonce in interface ContractFunctionResultOrBuilder
      Returns:
      Whether the signerNonce field is set.
    • getSignerNonce

      public com.google.protobuf.Int64Value getSignerNonce()
       *
       A nonce value for the "signer account".<br/>
       If the contract call updated the signer nonce for the signer account
       (i.e. by creating another contract), this field SHALL contain the
       updated value.<br/>
       If the signer account nonce was not updated, this field SHALL be `null`.
       
      .google.protobuf.Int64Value signer_nonce = 15;
      Specified by:
      getSignerNonce in interface ContractFunctionResultOrBuilder
      Returns:
      The signerNonce.
    • setSignerNonce

      public ContractFunctionResult.Builder setSignerNonce(com.google.protobuf.Int64Value value)
       *
       A nonce value for the "signer account".<br/>
       If the contract call updated the signer nonce for the signer account
       (i.e. by creating another contract), this field SHALL contain the
       updated value.<br/>
       If the signer account nonce was not updated, this field SHALL be `null`.
       
      .google.protobuf.Int64Value signer_nonce = 15;
    • setSignerNonce

      public ContractFunctionResult.Builder setSignerNonce(com.google.protobuf.Int64Value.Builder builderForValue)
       *
       A nonce value for the "signer account".<br/>
       If the contract call updated the signer nonce for the signer account
       (i.e. by creating another contract), this field SHALL contain the
       updated value.<br/>
       If the signer account nonce was not updated, this field SHALL be `null`.
       
      .google.protobuf.Int64Value signer_nonce = 15;
    • mergeSignerNonce

      public ContractFunctionResult.Builder mergeSignerNonce(com.google.protobuf.Int64Value value)
       *
       A nonce value for the "signer account".<br/>
       If the contract call updated the signer nonce for the signer account
       (i.e. by creating another contract), this field SHALL contain the
       updated value.<br/>
       If the signer account nonce was not updated, this field SHALL be `null`.
       
      .google.protobuf.Int64Value signer_nonce = 15;
    • clearSignerNonce

      public ContractFunctionResult.Builder clearSignerNonce()
       *
       A nonce value for the "signer account".<br/>
       If the contract call updated the signer nonce for the signer account
       (i.e. by creating another contract), this field SHALL contain the
       updated value.<br/>
       If the signer account nonce was not updated, this field SHALL be `null`.
       
      .google.protobuf.Int64Value signer_nonce = 15;