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
  • Method Details

    • getTransactionCase

      public EventTransaction.TransactionCase getTransactionCase()
      Specified by:
      getTransactionCase in interface EventTransactionOrBuilder
    • clearTransaction

      public EventTransaction.Builder 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:
      hasApplicationTransaction in interface EventTransactionOrBuilder
      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:
      getApplicationTransaction in interface EventTransactionOrBuilder
      Returns:
      The applicationTransaction.
    • setApplicationTransaction

      public EventTransaction.Builder setApplicationTransaction(com.google.protobuf.ByteString value)
       *
       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

      public EventTransaction.Builder 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:
      hasStateSignatureTransaction in interface EventTransactionOrBuilder
      Returns:
      Whether the stateSignatureTransaction field is set.
    • getStateSignatureTransaction

      public StateSignatureTransaction 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:
      getStateSignatureTransaction in interface EventTransactionOrBuilder
      Returns:
      The stateSignatureTransaction.
    • setStateSignatureTransaction

      public EventTransaction.Builder setStateSignatureTransaction(StateSignatureTransaction value)
       *
       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

      public EventTransaction.Builder mergeStateSignatureTransaction(StateSignatureTransaction value)
       *
       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

      public EventTransaction.Builder 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;