Class SignedTransaction.Builder

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

public static final class SignedTransaction.Builder extends com.google.protobuf.GeneratedMessageLite.Builder<SignedTransaction,SignedTransaction.Builder> implements SignedTransactionOrBuilder
 *
 A combination transaction bytes and a map of signatures.<br/>
 This message contains a serialized `TransactionBody` in a byte array
 and a `SignatureMap` that contains all of the signatures offered to
 authenticate the transaction.

 ### Block Stream Effects
 This content is recorded in the record stream exactly as received.
 
Protobuf type proto.SignedTransaction
  • Method Details

    • getBodyBytes

      public com.google.protobuf.ByteString getBodyBytes()
       *
       A byte array containing a serialized `TransactionBody`.
       <p>
       This content is what the signatures in `sigMap` MUST sign.
       
      bytes bodyBytes = 1;
      Specified by:
      getBodyBytes in interface SignedTransactionOrBuilder
      Returns:
      The bodyBytes.
    • setBodyBytes

      public SignedTransaction.Builder setBodyBytes(com.google.protobuf.ByteString value)
       *
       A byte array containing a serialized `TransactionBody`.
       <p>
       This content is what the signatures in `sigMap` MUST sign.
       
      bytes bodyBytes = 1;
      Parameters:
      value - The bodyBytes to set.
      Returns:
      This builder for chaining.
    • clearBodyBytes

      public SignedTransaction.Builder clearBodyBytes()
       *
       A byte array containing a serialized `TransactionBody`.
       <p>
       This content is what the signatures in `sigMap` MUST sign.
       
      bytes bodyBytes = 1;
      Returns:
      This builder for chaining.
    • hasSigMap

      public boolean hasSigMap()
       *
       A set of cryptographic signatures.
       <p>
       This set MUST contain all signatures required to authenticate
       and authorize the transaction.<br/>
       This set MAY contain additional signatures.
       
      .proto.SignatureMap sigMap = 2;
      Specified by:
      hasSigMap in interface SignedTransactionOrBuilder
      Returns:
      Whether the sigMap field is set.
    • getSigMap

      public SignatureMap getSigMap()
       *
       A set of cryptographic signatures.
       <p>
       This set MUST contain all signatures required to authenticate
       and authorize the transaction.<br/>
       This set MAY contain additional signatures.
       
      .proto.SignatureMap sigMap = 2;
      Specified by:
      getSigMap in interface SignedTransactionOrBuilder
      Returns:
      The sigMap.
    • setSigMap

      public SignedTransaction.Builder setSigMap(SignatureMap value)
       *
       A set of cryptographic signatures.
       <p>
       This set MUST contain all signatures required to authenticate
       and authorize the transaction.<br/>
       This set MAY contain additional signatures.
       
      .proto.SignatureMap sigMap = 2;
    • setSigMap

      public SignedTransaction.Builder setSigMap(SignatureMap.Builder builderForValue)
       *
       A set of cryptographic signatures.
       <p>
       This set MUST contain all signatures required to authenticate
       and authorize the transaction.<br/>
       This set MAY contain additional signatures.
       
      .proto.SignatureMap sigMap = 2;
    • mergeSigMap

      public SignedTransaction.Builder mergeSigMap(SignatureMap value)
       *
       A set of cryptographic signatures.
       <p>
       This set MUST contain all signatures required to authenticate
       and authorize the transaction.<br/>
       This set MAY contain additional signatures.
       
      .proto.SignatureMap sigMap = 2;
    • clearSigMap

      public SignedTransaction.Builder clearSigMap()
       *
       A set of cryptographic signatures.
       <p>
       This set MUST contain all signatures required to authenticate
       and authorize the transaction.<br/>
       This set MAY contain additional signatures.
       
      .proto.SignatureMap sigMap = 2;
    • getUseSerializedTxMessageHashAlgorithm

      public boolean getUseSerializedTxMessageHashAlgorithm()
       *
       If false then the hash of this transaction is the SHA-384 hash of the
       serialization of this SignedTransaction message as it arrived on the wire.
       <p>
       If true then the hash of this transaction is the SHA-384 hash of the
       ascending field order serialization of the Transaction whose `bodyBytes`
       and sigMap fields are deserialized from the contents of this message.
       
      bool use_serialized_tx_message_hash_algorithm = 3;
      Specified by:
      getUseSerializedTxMessageHashAlgorithm in interface SignedTransactionOrBuilder
      Returns:
      The useSerializedTxMessageHashAlgorithm.
    • setUseSerializedTxMessageHashAlgorithm

      public SignedTransaction.Builder setUseSerializedTxMessageHashAlgorithm(boolean value)
       *
       If false then the hash of this transaction is the SHA-384 hash of the
       serialization of this SignedTransaction message as it arrived on the wire.
       <p>
       If true then the hash of this transaction is the SHA-384 hash of the
       ascending field order serialization of the Transaction whose `bodyBytes`
       and sigMap fields are deserialized from the contents of this message.
       
      bool use_serialized_tx_message_hash_algorithm = 3;
      Parameters:
      value - The useSerializedTxMessageHashAlgorithm to set.
      Returns:
      This builder for chaining.
    • clearUseSerializedTxMessageHashAlgorithm

      public SignedTransaction.Builder clearUseSerializedTxMessageHashAlgorithm()
       *
       If false then the hash of this transaction is the SHA-384 hash of the
       serialization of this SignedTransaction message as it arrived on the wire.
       <p>
       If true then the hash of this transaction is the SHA-384 hash of the
       ascending field order serialization of the Transaction whose `bodyBytes`
       and sigMap fields are deserialized from the contents of this message.
       
      bool use_serialized_tx_message_hash_algorithm = 3;
      Returns:
      This builder for chaining.