Class Transaction.Builder

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

public static final class Transaction.Builder extends com.google.protobuf.GeneratedMessageLite.Builder<Transaction,Transaction.Builder> implements TransactionOrBuilder
 *
 A wrapper around signed transaction bytes.<br/>
 This was originally a transaction with body, signatures, and/or bytes,
 but is not only a wrapper around a byte array containing signed transction
 bytes.

 The `signedTransactionBytes` field is REQUIRED and MUST contain a valid,
 serialized, `SignedTransaction` message.<br/>
 All other fields are deprecated and MUST NOT be set.

 #### Additional Notes
 The four deprecated fields will be removed and reserved in a future release.
 
Protobuf type proto.Transaction
  • Method Details

    • hasBody

      @Deprecated public boolean hasBody()
      Deprecated.
       *
       Replaced with `signedTransactionBytes`.<br/>
       The body of the transaction.
       
      .proto.TransactionBody body = 1 [deprecated = true];
      Specified by:
      hasBody in interface TransactionOrBuilder
      Returns:
      Whether the body field is set.
    • getBody

      @Deprecated public TransactionBody getBody()
      Deprecated.
       *
       Replaced with `signedTransactionBytes`.<br/>
       The body of the transaction.
       
      .proto.TransactionBody body = 1 [deprecated = true];
      Specified by:
      getBody in interface TransactionOrBuilder
      Returns:
      The body.
    • setBody

      Deprecated.
       *
       Replaced with `signedTransactionBytes`.<br/>
       The body of the transaction.
       
      .proto.TransactionBody body = 1 [deprecated = true];
    • setBody

      @Deprecated public Transaction.Builder setBody(TransactionBody.Builder builderForValue)
      Deprecated.
       *
       Replaced with `signedTransactionBytes`.<br/>
       The body of the transaction.
       
      .proto.TransactionBody body = 1 [deprecated = true];
    • mergeBody

      Deprecated.
       *
       Replaced with `signedTransactionBytes`.<br/>
       The body of the transaction.
       
      .proto.TransactionBody body = 1 [deprecated = true];
    • clearBody

      @Deprecated public Transaction.Builder clearBody()
      Deprecated.
       *
       Replaced with `signedTransactionBytes`.<br/>
       The body of the transaction.
       
      .proto.TransactionBody body = 1 [deprecated = true];
    • hasSigs

      @Deprecated public boolean hasSigs()
      Deprecated.
       *
       Replaced with `signedTransactionBytes`.<br/>
       The signatures on the body.
       
      .proto.SignatureList sigs = 2 [deprecated = true];
      Specified by:
      hasSigs in interface TransactionOrBuilder
      Returns:
      Whether the sigs field is set.
    • getSigs

      @Deprecated public SignatureList getSigs()
      Deprecated.
       *
       Replaced with `signedTransactionBytes`.<br/>
       The signatures on the body.
       
      .proto.SignatureList sigs = 2 [deprecated = true];
      Specified by:
      getSigs in interface TransactionOrBuilder
      Returns:
      The sigs.
    • setSigs

      Deprecated.
       *
       Replaced with `signedTransactionBytes`.<br/>
       The signatures on the body.
       
      .proto.SignatureList sigs = 2 [deprecated = true];
    • setSigs

      @Deprecated public Transaction.Builder setSigs(SignatureList.Builder builderForValue)
      Deprecated.
       *
       Replaced with `signedTransactionBytes`.<br/>
       The signatures on the body.
       
      .proto.SignatureList sigs = 2 [deprecated = true];
    • mergeSigs

      @Deprecated public Transaction.Builder mergeSigs(SignatureList value)
      Deprecated.
       *
       Replaced with `signedTransactionBytes`.<br/>
       The signatures on the body.
       
      .proto.SignatureList sigs = 2 [deprecated = true];
    • clearSigs

      @Deprecated public Transaction.Builder clearSigs()
      Deprecated.
       *
       Replaced with `signedTransactionBytes`.<br/>
       The signatures on the body.
       
      .proto.SignatureList sigs = 2 [deprecated = true];
    • hasSigMap

      @Deprecated public boolean hasSigMap()
      Deprecated.
       *
       Replaced with `signedTransactionBytes`.<br/>
       The signatures on the body with a newer format.
       
      .proto.SignatureMap sigMap = 3 [deprecated = true];
      Specified by:
      hasSigMap in interface TransactionOrBuilder
      Returns:
      Whether the sigMap field is set.
    • getSigMap

      @Deprecated public SignatureMap getSigMap()
      Deprecated.
       *
       Replaced with `signedTransactionBytes`.<br/>
       The signatures on the body with a newer format.
       
      .proto.SignatureMap sigMap = 3 [deprecated = true];
      Specified by:
      getSigMap in interface TransactionOrBuilder
      Returns:
      The sigMap.
    • setSigMap

      @Deprecated public Transaction.Builder setSigMap(SignatureMap value)
      Deprecated.
       *
       Replaced with `signedTransactionBytes`.<br/>
       The signatures on the body with a newer format.
       
      .proto.SignatureMap sigMap = 3 [deprecated = true];
    • setSigMap

      @Deprecated public Transaction.Builder setSigMap(SignatureMap.Builder builderForValue)
      Deprecated.
       *
       Replaced with `signedTransactionBytes`.<br/>
       The signatures on the body with a newer format.
       
      .proto.SignatureMap sigMap = 3 [deprecated = true];
    • mergeSigMap

      @Deprecated public Transaction.Builder mergeSigMap(SignatureMap value)
      Deprecated.
       *
       Replaced with `signedTransactionBytes`.<br/>
       The signatures on the body with a newer format.
       
      .proto.SignatureMap sigMap = 3 [deprecated = true];
    • clearSigMap

      @Deprecated public Transaction.Builder clearSigMap()
      Deprecated.
       *
       Replaced with `signedTransactionBytes`.<br/>
       The signatures on the body with a newer format.
       
      .proto.SignatureMap sigMap = 3 [deprecated = true];
    • getBodyBytes

      @Deprecated public com.google.protobuf.ByteString getBodyBytes()
      Deprecated.
      proto.Transaction.bodyBytes is deprecated. See transaction.proto;l=147
       *
       Replaced with `signedTransactionBytes`.<br/>
       TransactionBody serialized into bytes.
       
      bytes bodyBytes = 4 [deprecated = true];
      Specified by:
      getBodyBytes in interface TransactionOrBuilder
      Returns:
      The bodyBytes.
    • setBodyBytes

      @Deprecated public Transaction.Builder setBodyBytes(com.google.protobuf.ByteString value)
      Deprecated.
      proto.Transaction.bodyBytes is deprecated. See transaction.proto;l=147
       *
       Replaced with `signedTransactionBytes`.<br/>
       TransactionBody serialized into bytes.
       
      bytes bodyBytes = 4 [deprecated = true];
      Parameters:
      value - The bodyBytes to set.
      Returns:
      This builder for chaining.
    • clearBodyBytes

      @Deprecated public Transaction.Builder clearBodyBytes()
      Deprecated.
      proto.Transaction.bodyBytes is deprecated. See transaction.proto;l=147
       *
       Replaced with `signedTransactionBytes`.<br/>
       TransactionBody serialized into bytes.
       
      bytes bodyBytes = 4 [deprecated = true];
      Returns:
      This builder for chaining.
    • getSignedTransactionBytes

      public com.google.protobuf.ByteString getSignedTransactionBytes()
       *
       A valid, serialized, `SignedTransaction` message.
       <p>
       This field MUST be present.
       This field MUST NOT exceed the current network transaction size limit
       (currently 6144 bytes).
       
      bytes signedTransactionBytes = 5;
      Specified by:
      getSignedTransactionBytes in interface TransactionOrBuilder
      Returns:
      The signedTransactionBytes.
    • setSignedTransactionBytes

      public Transaction.Builder setSignedTransactionBytes(com.google.protobuf.ByteString value)
       *
       A valid, serialized, `SignedTransaction` message.
       <p>
       This field MUST be present.
       This field MUST NOT exceed the current network transaction size limit
       (currently 6144 bytes).
       
      bytes signedTransactionBytes = 5;
      Parameters:
      value - The signedTransactionBytes to set.
      Returns:
      This builder for chaining.
    • clearSignedTransactionBytes

      public Transaction.Builder clearSignedTransactionBytes()
       *
       A valid, serialized, `SignedTransaction` message.
       <p>
       This field MUST be present.
       This field MUST NOT exceed the current network transaction size limit
       (currently 6144 bytes).
       
      bytes signedTransactionBytes = 5;
      Returns:
      This builder for chaining.