java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder<ProofKeySet,ProofKeySet.Builder>
com.google.protobuf.GeneratedMessageLite.Builder<ProofKeySet,ProofKeySet.Builder>
com.hedera.hashgraph.sdk.proto.ProofKeySet.Builder
- All Implemented Interfaces:
com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,ProofKeySetOrBuilder,Cloneable
- Enclosing class:
ProofKeySet
public static final class ProofKeySet.Builder
extends com.google.protobuf.GeneratedMessageLite.Builder<ProofKeySet,ProofKeySet.Builder>
implements ProofKeySetOrBuilder
* A set of proof keys for a node; that is, the key the node is currently using and the key it wants to use in assembling the next address book in the ledger id's chain of trust.Protobuf type
com.hedera.hapi.node.state.history.ProofKeySet-
Field Summary
Fields inherited from class com.google.protobuf.GeneratedMessageLite.Builder
instance -
Method Summary
Modifier and TypeMethodDescription* The consensus time when the network adopted the active proof key in this set.clearKey()* The proof key the node is using.* If set, the proof key the node wants to start using in the address book.* The consensus time when the network adopted the active proof key in this set.com.google.protobuf.ByteStringgetKey()* The proof key the node is using.com.google.protobuf.ByteString* If set, the proof key the node wants to start using in the address book.boolean* The consensus time when the network adopted the active proof key in this set.mergeAdoptionTime(Timestamp value) * The consensus time when the network adopted the active proof key in this set.setAdoptionTime(Timestamp value) * The consensus time when the network adopted the active proof key in this set.setAdoptionTime(Timestamp.Builder builderForValue) * The consensus time when the network adopted the active proof key in this set.setKey(com.google.protobuf.ByteString value) * The proof key the node is using.setNextKey(com.google.protobuf.ByteString value) * If set, the proof key the node wants to start using in the address book.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
-
hasAdoptionTime
public boolean hasAdoptionTime()* The consensus time when the network adopted the active proof key in this set. An adoption time that is sufficiently tardy relative to the latest assembly start time may result in the node's key being omitted from the address book.
.proto.Timestamp adoption_time = 2;- Specified by:
hasAdoptionTimein interfaceProofKeySetOrBuilder- Returns:
- Whether the adoptionTime field is set.
-
getAdoptionTime
* The consensus time when the network adopted the active proof key in this set. An adoption time that is sufficiently tardy relative to the latest assembly start time may result in the node's key being omitted from the address book.
.proto.Timestamp adoption_time = 2;- Specified by:
getAdoptionTimein interfaceProofKeySetOrBuilder- Returns:
- The adoptionTime.
-
setAdoptionTime
* The consensus time when the network adopted the active proof key in this set. An adoption time that is sufficiently tardy relative to the latest assembly start time may result in the node's key being omitted from the address book.
.proto.Timestamp adoption_time = 2; -
setAdoptionTime
* The consensus time when the network adopted the active proof key in this set. An adoption time that is sufficiently tardy relative to the latest assembly start time may result in the node's key being omitted from the address book.
.proto.Timestamp adoption_time = 2; -
mergeAdoptionTime
* The consensus time when the network adopted the active proof key in this set. An adoption time that is sufficiently tardy relative to the latest assembly start time may result in the node's key being omitted from the address book.
.proto.Timestamp adoption_time = 2; -
clearAdoptionTime
* The consensus time when the network adopted the active proof key in this set. An adoption time that is sufficiently tardy relative to the latest assembly start time may result in the node's key being omitted from the address book.
.proto.Timestamp adoption_time = 2; -
getKey
public com.google.protobuf.ByteString getKey()* The proof key the node is using.
bytes key = 3;- Specified by:
getKeyin interfaceProofKeySetOrBuilder- Returns:
- The key.
-
setKey
* The proof key the node is using.
bytes key = 3;- Parameters:
value- The key to set.- Returns:
- This builder for chaining.
-
clearKey
* The proof key the node is using.
bytes key = 3;- Returns:
- This builder for chaining.
-
getNextKey
public com.google.protobuf.ByteString getNextKey()* If set, the proof key the node wants to start using in the address book.
bytes next_key = 4;- Specified by:
getNextKeyin interfaceProofKeySetOrBuilder- Returns:
- The nextKey.
-
setNextKey
* If set, the proof key the node wants to start using in the address book.
bytes next_key = 4;- Parameters:
value- The nextKey to set.- Returns:
- This builder for chaining.
-
clearNextKey
* If set, the proof key the node wants to start using in the address book.
bytes next_key = 4;- Returns:
- This builder for chaining.
-