Class ProofKeySet.Builder

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 Type
    Method
    Description
    * The consensus time when the network adopted the active proof key in this set.
    * 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.ByteString
    * 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.
    * The consensus time when the network adopted the active proof key in this set.
    * The consensus time when the network adopted the active proof key in this set.
    * 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, 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

    • 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:
      hasAdoptionTime in interface ProofKeySetOrBuilder
      Returns:
      Whether the adoptionTime field is set.
    • getAdoptionTime

      public Timestamp 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:
      getAdoptionTime in interface ProofKeySetOrBuilder
      Returns:
      The adoptionTime.
    • setAdoptionTime

      public ProofKeySet.Builder setAdoptionTime(Timestamp value)
       *
       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

      public ProofKeySet.Builder setAdoptionTime(Timestamp.Builder builderForValue)
       *
       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

      public ProofKeySet.Builder mergeAdoptionTime(Timestamp value)
       *
       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

      public ProofKeySet.Builder 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:
      getKey in interface ProofKeySetOrBuilder
      Returns:
      The key.
    • setKey

      public ProofKeySet.Builder setKey(com.google.protobuf.ByteString value)
       *
       The proof key the node is using.
       
      bytes key = 3;
      Parameters:
      value - The key to set.
      Returns:
      This builder for chaining.
    • clearKey

      public ProofKeySet.Builder 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:
      getNextKey in interface ProofKeySetOrBuilder
      Returns:
      The nextKey.
    • setNextKey

      public ProofKeySet.Builder setNextKey(com.google.protobuf.ByteString value)
       *
       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

      public ProofKeySet.Builder 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.