Module com.hedera.hashgraph.sdk
Class EventTransaction.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder<EventTransaction,EventTransaction.Builder>
com.google.protobuf.GeneratedMessageLite.Builder<EventTransaction,EventTransaction.Builder>
com.hedera.hapi.platform.event.legacy.EventTransaction.Builder
- All Implemented Interfaces:
com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,EventTransactionOrBuilder,Cloneable
- Enclosing class:
EventTransaction
public static final class EventTransaction.Builder
extends com.google.protobuf.GeneratedMessageLite.Builder<EventTransaction,EventTransaction.Builder>
implements EventTransactionOrBuilder
* An Event Transaction gossiped between nodes as part of events. Each node MUST extract this transaction and process according to the type of transaction encoded.<br/> Both the platform and the application built on that platform MAY define event transactions.<br/> The encoded data MUST be a serialized protobuf message.Protobuf type
com.hedera.hapi.platform.event.EventTransaction-
Field Summary
Fields inherited from class com.google.protobuf.GeneratedMessageLite.Builder
instance -
Method Summary
Modifier and TypeMethodDescription* An application transaction.* A state signature.com.google.protobuf.ByteString* An application transaction.* A state signature.boolean* An application transaction.boolean* A state signature.* A state signature.setApplicationTransaction(com.google.protobuf.ByteString value) * An application transaction.* A state signature.setStateSignatureTransaction(StateSignatureTransaction.Builder builderForValue) * A state signature.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
-
getTransactionCase
- Specified by:
getTransactionCasein interfaceEventTransactionOrBuilder
-
clearTransaction
-
hasApplicationTransaction
public boolean hasApplicationTransaction()* An application transaction. <p> The contents of this transaction SHALL be defined by the application subsystem that created the event.<br/> The contents MUST be a serialized protobuf message.
bytes application_transaction = 1;- Specified by:
hasApplicationTransactionin interfaceEventTransactionOrBuilder- Returns:
- Whether the applicationTransaction field is set.
-
getApplicationTransaction
public com.google.protobuf.ByteString getApplicationTransaction()* An application transaction. <p> The contents of this transaction SHALL be defined by the application subsystem that created the event.<br/> The contents MUST be a serialized protobuf message.
bytes application_transaction = 1;- Specified by:
getApplicationTransactionin interfaceEventTransactionOrBuilder- Returns:
- The applicationTransaction.
-
setApplicationTransaction
* An application transaction. <p> The contents of this transaction SHALL be defined by the application subsystem that created the event.<br/> The contents MUST be a serialized protobuf message.
bytes application_transaction = 1;- Parameters:
value- The applicationTransaction to set.- Returns:
- This builder for chaining.
-
clearApplicationTransaction
* An application transaction. <p> The contents of this transaction SHALL be defined by the application subsystem that created the event.<br/> The contents MUST be a serialized protobuf message.
bytes application_transaction = 1;- Returns:
- This builder for chaining.
-
hasStateSignatureTransaction
public boolean hasStateSignatureTransaction()* A state signature. <p> This transaction SHALL be a valid state signature for a state snapshot.
.com.hedera.hapi.platform.event.StateSignatureTransaction state_signature_transaction = 2;- Specified by:
hasStateSignatureTransactionin interfaceEventTransactionOrBuilder- Returns:
- Whether the stateSignatureTransaction field is set.
-
getStateSignatureTransaction
* A state signature. <p> This transaction SHALL be a valid state signature for a state snapshot.
.com.hedera.hapi.platform.event.StateSignatureTransaction state_signature_transaction = 2;- Specified by:
getStateSignatureTransactionin interfaceEventTransactionOrBuilder- Returns:
- The stateSignatureTransaction.
-
setStateSignatureTransaction
* A state signature. <p> This transaction SHALL be a valid state signature for a state snapshot.
.com.hedera.hapi.platform.event.StateSignatureTransaction state_signature_transaction = 2; -
setStateSignatureTransaction
public EventTransaction.Builder setStateSignatureTransaction(StateSignatureTransaction.Builder builderForValue) * A state signature. <p> This transaction SHALL be a valid state signature for a state snapshot.
.com.hedera.hapi.platform.event.StateSignatureTransaction state_signature_transaction = 2; -
mergeStateSignatureTransaction
* A state signature. <p> This transaction SHALL be a valid state signature for a state snapshot.
.com.hedera.hapi.platform.event.StateSignatureTransaction state_signature_transaction = 2; -
clearStateSignatureTransaction
* A state signature. <p> This transaction SHALL be a valid state signature for a state snapshot.
.com.hedera.hapi.platform.event.StateSignatureTransaction state_signature_transaction = 2;
-