Class AggregatedNodeSignatures.Builder

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

public static final class AggregatedNodeSignatures.Builder extends com.google.protobuf.GeneratedMessageLite.Builder<AggregatedNodeSignatures,AggregatedNodeSignatures.Builder> implements AggregatedNodeSignaturesOrBuilder
 *
 An aggregation of node signatures on some data.
 <p>
 Can be used to prove the genesis hinTS verification key in a block proof; but
 not succinct and not recursive; hence in normal operations with TSS, used only
 until the first recursive proof is available.
 
Protobuf type com.hedera.hapi.node.state.history.AggregatedNodeSignatures
  • Method Details

    • getAggregatedSignature

      public com.google.protobuf.ByteString getAggregatedSignature()
       *
       The aggregated signature.
       
      bytes aggregated_signature = 1;
      Specified by:
      getAggregatedSignature in interface AggregatedNodeSignaturesOrBuilder
      Returns:
      The aggregatedSignature.
    • setAggregatedSignature

      public AggregatedNodeSignatures.Builder setAggregatedSignature(com.google.protobuf.ByteString value)
       *
       The aggregated signature.
       
      bytes aggregated_signature = 1;
      Parameters:
      value - The aggregatedSignature to set.
      Returns:
      This builder for chaining.
    • clearAggregatedSignature

      public AggregatedNodeSignatures.Builder clearAggregatedSignature()
       *
       The aggregated signature.
       
      bytes aggregated_signature = 1;
      Returns:
      This builder for chaining.
    • getSigningNodeIdsList

      public List<Long> getSigningNodeIdsList()
       *
       In ascending order, the ids of the nodes that contributed signatures.
       
      repeated uint64 signing_node_ids = 2;
      Specified by:
      getSigningNodeIdsList in interface AggregatedNodeSignaturesOrBuilder
      Returns:
      A list containing the signingNodeIds.
    • getSigningNodeIdsCount

      public int getSigningNodeIdsCount()
       *
       In ascending order, the ids of the nodes that contributed signatures.
       
      repeated uint64 signing_node_ids = 2;
      Specified by:
      getSigningNodeIdsCount in interface AggregatedNodeSignaturesOrBuilder
      Returns:
      The count of signingNodeIds.
    • getSigningNodeIds

      public long getSigningNodeIds(int index)
       *
       In ascending order, the ids of the nodes that contributed signatures.
       
      repeated uint64 signing_node_ids = 2;
      Specified by:
      getSigningNodeIds in interface AggregatedNodeSignaturesOrBuilder
      Parameters:
      index - The index of the element to return.
      Returns:
      The signingNodeIds at the given index.
    • setSigningNodeIds

      public AggregatedNodeSignatures.Builder setSigningNodeIds(int index, long value)
       *
       In ascending order, the ids of the nodes that contributed signatures.
       
      repeated uint64 signing_node_ids = 2;
      Parameters:
      value - The signingNodeIds to set.
      Returns:
      This builder for chaining.
    • addSigningNodeIds

      public AggregatedNodeSignatures.Builder addSigningNodeIds(long value)
       *
       In ascending order, the ids of the nodes that contributed signatures.
       
      repeated uint64 signing_node_ids = 2;
      Parameters:
      value - The signingNodeIds to add.
      Returns:
      This builder for chaining.
    • addAllSigningNodeIds

      public AggregatedNodeSignatures.Builder addAllSigningNodeIds(Iterable<? extends Long> values)
       *
       In ascending order, the ids of the nodes that contributed signatures.
       
      repeated uint64 signing_node_ids = 2;
      Parameters:
      values - The signingNodeIds to add.
      Returns:
      This builder for chaining.
    • clearSigningNodeIds

      public AggregatedNodeSignatures.Builder clearSigningNodeIds()
       *
       In ascending order, the ids of the nodes that contributed signatures.
       
      repeated uint64 signing_node_ids = 2;
      Returns:
      This builder for chaining.
    • getVerificationKey

      public com.google.protobuf.ByteString getVerificationKey()
       *
       The hinTS key that this signature witnesses.
       
      bytes verification_key = 3;
      Specified by:
      getVerificationKey in interface AggregatedNodeSignaturesOrBuilder
      Returns:
      The verificationKey.
    • setVerificationKey

      public AggregatedNodeSignatures.Builder setVerificationKey(com.google.protobuf.ByteString value)
       *
       The hinTS key that this signature witnesses.
       
      bytes verification_key = 3;
      Parameters:
      value - The verificationKey to set.
      Returns:
      This builder for chaining.
    • clearVerificationKey

      public AggregatedNodeSignatures.Builder clearVerificationKey()
       *
       The hinTS key that this signature witnesses.
       
      bytes verification_key = 3;
      Returns:
      This builder for chaining.