Class TssMessageTransactionBody.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder<TssMessageTransactionBody,TssMessageTransactionBody.Builder>
com.google.protobuf.GeneratedMessageLite.Builder<TssMessageTransactionBody,TssMessageTransactionBody.Builder>
com.hedera.hapi.services.auxiliary.tss.legacy.TssMessageTransactionBody.Builder
All Implemented Interfaces:
com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, TssMessageTransactionBodyOrBuilder, Cloneable
Enclosing class:
TssMessageTransactionBody

public static final class TssMessageTransactionBody.Builder extends com.google.protobuf.GeneratedMessageLite.Builder<TssMessageTransactionBody,TssMessageTransactionBody.Builder> implements TssMessageTransactionBodyOrBuilder
 * A transaction body to to send a Threshold Signature Scheme (TSS)
 Message.<br/>
 This is a wrapper around several different TSS message types that a node
 might communicate with other nodes in the network.

 - A `TssMessageTransactionBody` MUST identify the hash of the roster
 containing the node generating this TssMessage
 - A `TssMessageTransactionBody` MUST identify the hash of the roster that
 the TSS messages is for
 - A `TssMessageTransactionBody` SHALL contain the specificc TssMessage data
 that has been generated by the node for the share_index.
 
Protobuf type com.hedera.hapi.services.auxiliary.tss.TssMessageTransactionBody
  • Method Details

    • getSourceRosterHash

      public com.google.protobuf.ByteString getSourceRosterHash()
       *
       A hash of the roster containing the node generating the TssMessage.<br/>
       This hash uniquely identifies the source roster, which will include
       an entry for the node generating this TssMessage.
       <p>
       This value MUST be set.<br/>
       This value MUST NOT be empty.<br/>
       This value MUST contain a valid hash.
       
      bytes source_roster_hash = 1;
      Specified by:
      getSourceRosterHash in interface TssMessageTransactionBodyOrBuilder
      Returns:
      The sourceRosterHash.
    • setSourceRosterHash

      public TssMessageTransactionBody.Builder setSourceRosterHash(com.google.protobuf.ByteString value)
       *
       A hash of the roster containing the node generating the TssMessage.<br/>
       This hash uniquely identifies the source roster, which will include
       an entry for the node generating this TssMessage.
       <p>
       This value MUST be set.<br/>
       This value MUST NOT be empty.<br/>
       This value MUST contain a valid hash.
       
      bytes source_roster_hash = 1;
      Parameters:
      value - The sourceRosterHash to set.
      Returns:
      This builder for chaining.
    • clearSourceRosterHash

      public TssMessageTransactionBody.Builder clearSourceRosterHash()
       *
       A hash of the roster containing the node generating the TssMessage.<br/>
       This hash uniquely identifies the source roster, which will include
       an entry for the node generating this TssMessage.
       <p>
       This value MUST be set.<br/>
       This value MUST NOT be empty.<br/>
       This value MUST contain a valid hash.
       
      bytes source_roster_hash = 1;
      Returns:
      This builder for chaining.
    • getTargetRosterHash

      public com.google.protobuf.ByteString getTargetRosterHash()
       *
       A hash of the roster that the TssMessage is for.
       <p>
       This value MUST be set.<br/>
       This value MUST NOT be empty.<br/>
       This value MUST contain a valid hash.
       
      bytes target_roster_hash = 2;
      Specified by:
      getTargetRosterHash in interface TssMessageTransactionBodyOrBuilder
      Returns:
      The targetRosterHash.
    • setTargetRosterHash

      public TssMessageTransactionBody.Builder setTargetRosterHash(com.google.protobuf.ByteString value)
       *
       A hash of the roster that the TssMessage is for.
       <p>
       This value MUST be set.<br/>
       This value MUST NOT be empty.<br/>
       This value MUST contain a valid hash.
       
      bytes target_roster_hash = 2;
      Parameters:
      value - The targetRosterHash to set.
      Returns:
      This builder for chaining.
    • clearTargetRosterHash

      public TssMessageTransactionBody.Builder clearTargetRosterHash()
       *
       A hash of the roster that the TssMessage is for.
       <p>
       This value MUST be set.<br/>
       This value MUST NOT be empty.<br/>
       This value MUST contain a valid hash.
       
      bytes target_roster_hash = 2;
      Returns:
      This builder for chaining.
    • getShareIndex

      public long getShareIndex()
       *
       An index to order shares.
       <p>
       A share index SHALL establish a global ordering of shares across all
       shares in the network.<br/>
       A share index MUST correspond to the index of the public share in the list
       returned from the TSS library when the share was created for the source
       roster.
       
      uint64 share_index = 3;
      Specified by:
      getShareIndex in interface TssMessageTransactionBodyOrBuilder
      Returns:
      The shareIndex.
    • setShareIndex

      public TssMessageTransactionBody.Builder setShareIndex(long value)
       *
       An index to order shares.
       <p>
       A share index SHALL establish a global ordering of shares across all
       shares in the network.<br/>
       A share index MUST correspond to the index of the public share in the list
       returned from the TSS library when the share was created for the source
       roster.
       
      uint64 share_index = 3;
      Parameters:
      value - The shareIndex to set.
      Returns:
      This builder for chaining.
    • clearShareIndex

      public TssMessageTransactionBody.Builder clearShareIndex()
       *
       An index to order shares.
       <p>
       A share index SHALL establish a global ordering of shares across all
       shares in the network.<br/>
       A share index MUST correspond to the index of the public share in the list
       returned from the TSS library when the share was created for the source
       roster.
       
      uint64 share_index = 3;
      Returns:
      This builder for chaining.
    • getTssMessage

      public com.google.protobuf.ByteString getTssMessage()
       *
       A byte array.
       <p>
       This field SHALL contain the TssMessage data generated by the node
       for the specified `share_index`.
       
      bytes tss_message = 4;
      Specified by:
      getTssMessage in interface TssMessageTransactionBodyOrBuilder
      Returns:
      The tssMessage.
    • setTssMessage

      public TssMessageTransactionBody.Builder setTssMessage(com.google.protobuf.ByteString value)
       *
       A byte array.
       <p>
       This field SHALL contain the TssMessage data generated by the node
       for the specified `share_index`.
       
      bytes tss_message = 4;
      Parameters:
      value - The tssMessage to set.
      Returns:
      This builder for chaining.
    • clearTssMessage

      public TssMessageTransactionBody.Builder clearTssMessage()
       *
       A byte array.
       <p>
       This field SHALL contain the TssMessage data generated by the node
       for the specified `share_index`.
       
      bytes tss_message = 4;
      Returns:
      This builder for chaining.