Module com.hedera.hashgraph.sdk
Package com.hedera.hashgraph.sdk.proto
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 TypeMethodDescription* 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.longgetNonce()* A "nonce" value.boolean* A contract identifier.<br/> This refers to the contract that holds this nonce value.mergeContractId(ContractID value) * A contract identifier.<br/> This refers to the contract that holds this nonce value.setContractId(ContractID value) * A contract identifier.<br/> This refers to the contract that holds this nonce value.setContractId(ContractID.Builder builderForValue) * 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, mergeFromMethods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageExceptionMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods 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:
hasContractIdin interfaceContractNonceInfoOrBuilder- Returns:
- Whether the contractId field is set.
-
getContractId
* A contract identifier.<br/> This refers to the contract that holds this nonce value.
.proto.ContractID contract_id = 1;- Specified by:
getContractIdin interfaceContractNonceInfoOrBuilder- Returns:
- The contractId.
-
setContractId
* A contract identifier.<br/> This refers to the contract that holds this nonce value.
.proto.ContractID contract_id = 1; -
setContractId
* A contract identifier.<br/> This refers to the contract that holds this nonce value.
.proto.ContractID contract_id = 1; -
mergeContractId
* A contract identifier.<br/> This refers to the contract that holds this nonce value.
.proto.ContractID contract_id = 1; -
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:
getNoncein interfaceContractNonceInfoOrBuilder- Returns:
- The nonce.
-
setNonce
* 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
* A "nonce" value. The current value of the nonce associated with the identified contract.
int64 nonce = 2;- Returns:
- This builder for chaining.
-