Module com.hedera.hashgraph.sdk
Package com.hedera.hashgraph.sdk.proto
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-
Field Summary
Fields inherited from class com.google.protobuf.GeneratedMessageLite.Builder
instance -
Method Summary
Modifier and TypeMethodDescription* A byte array containing a serialized `TransactionBody`.* A set of cryptographic signatures.* 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.com.google.protobuf.ByteString* A byte array containing a serialized `TransactionBody`.* A set of cryptographic signatures.boolean* 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.boolean* A set of cryptographic signatures.mergeSigMap(SignatureMap value) * A set of cryptographic signatures.setBodyBytes(com.google.protobuf.ByteString value) * A byte array containing a serialized `TransactionBody`.setSigMap(SignatureMap value) * A set of cryptographic signatures.setSigMap(SignatureMap.Builder builderForValue) * A set of cryptographic signatures.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.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
-
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:
getBodyBytesin interfaceSignedTransactionOrBuilder- Returns:
- The bodyBytes.
-
setBodyBytes
* 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
* 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:
hasSigMapin interfaceSignedTransactionOrBuilder- Returns:
- Whether the sigMap field is set.
-
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:
getSigMapin interfaceSignedTransactionOrBuilder- Returns:
- The sigMap.
-
setSigMap
* 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
* 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
* 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
* 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:
getUseSerializedTxMessageHashAlgorithmin interfaceSignedTransactionOrBuilder- Returns:
- The useSerializedTxMessageHashAlgorithm.
-
setUseSerializedTxMessageHashAlgorithm
* 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
* 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.
-