Class ContractNonceInfo.Builder

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

public static final class ContractNonceInfo.Builder extends com.google.protobuf.GeneratedMessageLite.Builder<ContractNonceInfo,ContractNonceInfo.Builder> implements ContractNonceInfoOrBuilder
 *
 A contract "nonce" reference.<br/>
 This connects a contract and its "nonce" value, and is primarily for use in
 query responses.  A "nonce" is short for "nonsense" and is usually a value
 with no particular meaning.

 The nonce of a contract SHALL be incremented when that contract creates
 another contract.
 
Protobuf type proto.ContractNonceInfo
  • Field Summary

    Fields inherited from class com.google.protobuf.GeneratedMessageLite.Builder

    instance
  • Method Summary

    Modifier and Type
    Method
    Description
    * A contract identifier.<br/> This refers to the contract that holds this nonce value.
    * A "nonce" value.
    * A contract identifier.<br/> This refers to the contract that holds this nonce value.
    long
    * A "nonce" value.
    boolean
    * A contract identifier.<br/> This refers to the contract that holds this nonce value.
    * A contract identifier.<br/> This refers to the contract that holds this nonce value.
    * A contract identifier.<br/> This refers to the contract that holds this nonce value.
    * A contract identifier.<br/> This refers to the contract that holds this nonce value.
    setNonce(long value)
    * A "nonce" value.

    Methods inherited from class com.google.protobuf.GeneratedMessageLite.Builder

    build, buildPartial, clear, clone, copyOnWrite, copyOnWriteInternal, getDefaultInstanceForType, internalMergeFrom, isInitialized, mergeFrom, mergeFrom, mergeFrom, mergeFrom

    Methods inherited from class com.google.protobuf.AbstractMessageLite.Builder

    addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException

    Methods inherited from class java.lang.Object

    equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    Methods inherited from interface com.google.protobuf.MessageLiteOrBuilder

    getDefaultInstanceForType, isInitialized
  • Method Details

    • hasContractId

      public boolean hasContractId()
       *
       A contract identifier.<br/>
       This refers to the contract that holds this nonce value.
       
      .proto.ContractID contract_id = 1;
      Specified by:
      hasContractId in interface ContractNonceInfoOrBuilder
      Returns:
      Whether the contractId field is set.
    • getContractId

      public ContractID getContractId()
       *
       A contract identifier.<br/>
       This refers to the contract that holds this nonce value.
       
      .proto.ContractID contract_id = 1;
      Specified by:
      getContractId in interface ContractNonceInfoOrBuilder
      Returns:
      The contractId.
    • setContractId

      public ContractNonceInfo.Builder setContractId(ContractID value)
       *
       A contract identifier.<br/>
       This refers to the contract that holds this nonce value.
       
      .proto.ContractID contract_id = 1;
    • setContractId

      public ContractNonceInfo.Builder setContractId(ContractID.Builder builderForValue)
       *
       A contract identifier.<br/>
       This refers to the contract that holds this nonce value.
       
      .proto.ContractID contract_id = 1;
    • mergeContractId

      public ContractNonceInfo.Builder mergeContractId(ContractID value)
       *
       A contract identifier.<br/>
       This refers to the contract that holds this nonce value.
       
      .proto.ContractID contract_id = 1;
    • clearContractId

      public ContractNonceInfo.Builder clearContractId()
       *
       A contract identifier.<br/>
       This refers to the contract that holds this nonce value.
       
      .proto.ContractID contract_id = 1;
    • getNonce

      public long getNonce()
       *
       A "nonce" value.
       The current value of the nonce associated with the identified contract.
       
      int64 nonce = 2;
      Specified by:
      getNonce in interface ContractNonceInfoOrBuilder
      Returns:
      The nonce.
    • setNonce

      public ContractNonceInfo.Builder setNonce(long value)
       *
       A "nonce" value.
       The current value of the nonce associated with the identified contract.
       
      int64 nonce = 2;
      Parameters:
      value - The nonce to set.
      Returns:
      This builder for chaining.
    • clearNonce

      public ContractNonceInfo.Builder clearNonce()
       *
       A "nonce" value.
       The current value of the nonce associated with the identified contract.
       
      int64 nonce = 2;
      Returns:
      This builder for chaining.