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-
Field Summary
Fields inherited from class com.google.protobuf.GeneratedMessageLite.Builder
instance -
Method Summary
Modifier and TypeMethodDescriptionDeprecated.Deprecated.proto.Transaction.bodyBytes is deprecated.Deprecated.* A valid, serialized, `SignedTransaction` message.Deprecated.getBody()Deprecated.com.google.protobuf.ByteStringDeprecated.proto.Transaction.bodyBytes is deprecated.Deprecated.com.google.protobuf.ByteString* A valid, serialized, `SignedTransaction` message.getSigs()Deprecated.booleanhasBody()Deprecated.booleanDeprecated.booleanhasSigs()Deprecated.mergeBody(TransactionBody value) Deprecated.mergeSigMap(SignatureMap value) Deprecated.mergeSigs(SignatureList value) Deprecated.setBody(TransactionBody value) Deprecated.setBody(TransactionBody.Builder builderForValue) Deprecated.setBodyBytes(com.google.protobuf.ByteString value) Deprecated.proto.Transaction.bodyBytes is deprecated.setSigMap(SignatureMap value) Deprecated.setSigMap(SignatureMap.Builder builderForValue) Deprecated.setSignedTransactionBytes(com.google.protobuf.ByteString value) * A valid, serialized, `SignedTransaction` message.setSigs(SignatureList value) Deprecated.setSigs(SignatureList.Builder builderForValue) Deprecated.Methods inherited from class com.google.protobuf.GeneratedMessageLite.Builder
build, buildPartial, clear, clone, copyOnWrite, copyOnWriteInternal, getDefaultInstanceForType, internalMergeFrom, isInitialized, mergeFrom, mergeFrom, mergeFrom, mergeFromMethods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageExceptionMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.google.protobuf.MessageLiteOrBuilder
getDefaultInstanceForType, isInitialized
-
Method Details
-
hasBody
Deprecated.* Replaced with `signedTransactionBytes`.<br/> The body of the transaction.
.proto.TransactionBody body = 1 [deprecated = true];- Specified by:
hasBodyin interfaceTransactionOrBuilder- Returns:
- Whether the body field is set.
-
getBody
Deprecated.* Replaced with `signedTransactionBytes`.<br/> The body of the transaction.
.proto.TransactionBody body = 1 [deprecated = true];- Specified by:
getBodyin interfaceTransactionOrBuilder- Returns:
- The body.
-
setBody
Deprecated.* Replaced with `signedTransactionBytes`.<br/> The body of the transaction.
.proto.TransactionBody body = 1 [deprecated = true]; -
setBody
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.* Replaced with `signedTransactionBytes`.<br/> The body of the transaction.
.proto.TransactionBody body = 1 [deprecated = true]; -
hasSigs
Deprecated.* Replaced with `signedTransactionBytes`.<br/> The signatures on the body.
.proto.SignatureList sigs = 2 [deprecated = true];- Specified by:
hasSigsin interfaceTransactionOrBuilder- Returns:
- Whether the sigs field is set.
-
getSigs
Deprecated.* Replaced with `signedTransactionBytes`.<br/> The signatures on the body.
.proto.SignatureList sigs = 2 [deprecated = true];- Specified by:
getSigsin interfaceTransactionOrBuilder- Returns:
- The sigs.
-
setSigs
Deprecated.* Replaced with `signedTransactionBytes`.<br/> The signatures on the body.
.proto.SignatureList sigs = 2 [deprecated = true]; -
setSigs
Deprecated.* Replaced with `signedTransactionBytes`.<br/> The signatures on the body.
.proto.SignatureList sigs = 2 [deprecated = true]; -
mergeSigs
Deprecated.* Replaced with `signedTransactionBytes`.<br/> The signatures on the body.
.proto.SignatureList sigs = 2 [deprecated = true]; -
clearSigs
Deprecated.* Replaced with `signedTransactionBytes`.<br/> The signatures on the body.
.proto.SignatureList sigs = 2 [deprecated = true]; -
hasSigMap
Deprecated.* Replaced with `signedTransactionBytes`.<br/> The signatures on the body with a newer format.
.proto.SignatureMap sigMap = 3 [deprecated = true];- Specified by:
hasSigMapin interfaceTransactionOrBuilder- Returns:
- Whether the sigMap field is set.
-
getSigMap
Deprecated.* Replaced with `signedTransactionBytes`.<br/> The signatures on the body with a newer format.
.proto.SignatureMap sigMap = 3 [deprecated = true];- Specified by:
getSigMapin interfaceTransactionOrBuilder- Returns:
- The sigMap.
-
setSigMap
Deprecated.* Replaced with `signedTransactionBytes`.<br/> The signatures on the body with a newer format.
.proto.SignatureMap sigMap = 3 [deprecated = true]; -
setSigMap
Deprecated.* Replaced with `signedTransactionBytes`.<br/> The signatures on the body with a newer format.
.proto.SignatureMap sigMap = 3 [deprecated = true]; -
mergeSigMap
Deprecated.* Replaced with `signedTransactionBytes`.<br/> The signatures on the body with a newer format.
.proto.SignatureMap sigMap = 3 [deprecated = true]; -
clearSigMap
Deprecated.* Replaced with `signedTransactionBytes`.<br/> The signatures on the body with a newer format.
.proto.SignatureMap sigMap = 3 [deprecated = true]; -
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:
getBodyBytesin interfaceTransactionOrBuilder- Returns:
- The bodyBytes.
-
setBodyBytes
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.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:
getSignedTransactionBytesin interfaceTransactionOrBuilder- Returns:
- The signedTransactionBytes.
-
setSignedTransactionBytes
* 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
* 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.
-