java.lang.Object
com.google.protobuf.AbstractMessageLite<GossipEvent,GossipEvent.Builder>
com.google.protobuf.GeneratedMessageLite<GossipEvent,GossipEvent.Builder>
com.hedera.hapi.platform.event.legacy.GossipEvent
All Implemented Interfaces:
com.google.protobuf.MessageLite, com.google.protobuf.MessageLiteOrBuilder, GossipEventOrBuilder

@Generated public final class GossipEvent extends com.google.protobuf.GeneratedMessageLite<GossipEvent,GossipEvent.Builder> implements GossipEventOrBuilder
 *
 An event that is sent and received via gossip
 
Protobuf type com.hedera.hapi.platform.event.GossipEvent
  • Nested Class Summary

    Nested Classes
    Modifier and Type
    Class
    Description
    static final class 
    * An event that is sent and received via gossip

    Nested classes/interfaces inherited from class com.google.protobuf.GeneratedMessageLite

    com.google.protobuf.GeneratedMessageLite.DefaultInstanceBasedParser<T extends com.google.protobuf.GeneratedMessageLite<T,?>>, com.google.protobuf.GeneratedMessageLite.ExtendableBuilder<MessageType extends com.google.protobuf.GeneratedMessageLite.ExtendableMessage<MessageType,BuilderType>,BuilderType extends com.google.protobuf.GeneratedMessageLite.ExtendableBuilder<MessageType,BuilderType>>, com.google.protobuf.GeneratedMessageLite.ExtendableMessage<MessageType extends com.google.protobuf.GeneratedMessageLite.ExtendableMessage<MessageType,BuilderType>,BuilderType extends com.google.protobuf.GeneratedMessageLite.ExtendableBuilder<MessageType,BuilderType>>, com.google.protobuf.GeneratedMessageLite.ExtendableMessageOrBuilder<MessageType extends com.google.protobuf.GeneratedMessageLite.ExtendableMessage<MessageType,BuilderType>,BuilderType extends com.google.protobuf.GeneratedMessageLite.ExtendableBuilder<MessageType,BuilderType>>, com.google.protobuf.GeneratedMessageLite.GeneratedExtension<ContainingType extends com.google.protobuf.MessageLite,Type>, com.google.protobuf.GeneratedMessageLite.MethodToInvoke, com.google.protobuf.GeneratedMessageLite.SerializedForm

    Nested classes/interfaces inherited from class com.google.protobuf.AbstractMessageLite

    com.google.protobuf.AbstractMessageLite.InternalOneOfEnum
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final int
     
    static final int
     
    static final int
     
    static final int
     

    Fields inherited from class com.google.protobuf.GeneratedMessageLite

    unknownFields

    Fields inherited from class com.google.protobuf.AbstractMessageLite

    memoizedHashCode
  • Method Summary

    Modifier and Type
    Method
    Description
    protected final Object
    dynamicMethod(com.google.protobuf.GeneratedMessageLite.MethodToInvoke method, Object arg0, Object arg1)
     
     
    * The core event data
    Deprecated.
    int
    Deprecated.
    Deprecated.
    Deprecated.
    Deprecated.
    com.google.protobuf.ByteString
    * A node signature on the event hash.<br/> The signature SHALL be created with the SHA384withRSA algorithm.<br/> The signature MUST verify using the public key belonging to the `event_creator`.<br/> The `event_creator` public key SHALL be read from the address book that corresponds to the event's birth round.<br/> The signed event hash SHALL be a SHA-384 hash.<br/> The signed event hash SHALL have the following inputs, in the specified order:<br/> 1.
    com.google.protobuf.ByteString
    getTransactions(int index)
    * A list of serialized transactions.
    int
    * A list of serialized transactions.
    List<com.google.protobuf.ByteString>
    * A list of serialized transactions.
    boolean
    * The core event data
     
     
     
    parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
     
    parseFrom(byte[] data)
     
    parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
     
    parseFrom(com.google.protobuf.ByteString data)
     
    parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
     
    parseFrom(com.google.protobuf.CodedInputStream input)
     
    parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
     
     
    parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
     
     
    parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
     
    static com.google.protobuf.Parser<GossipEvent>
     

    Methods inherited from class com.google.protobuf.GeneratedMessageLite

    createBuilder, createBuilder, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyLongList, emptyProtobufList, equals, getDefaultInstanceForType, getParserForType, getSerializedSize, hashCode, isInitialized, makeImmutable, mergeLengthDelimitedField, mergeUnknownFields, mergeVarintField, mutableCopy, mutableCopy, mutableCopy, mutableCopy, mutableCopy, mutableCopy, newBuilderForType, newMessageInfo, newRepeatedGeneratedExtension, newSingularGeneratedExtension, parseDelimitedFrom, parseDelimitedFrom, parseFrom, parseFrom, parseFrom, parseFrom, parseFrom, parseFrom, parseFrom, parseFrom, parseFrom, parseFrom, parsePartialFrom, parseUnknownField, registerDefaultInstance, toBuilder, toString, writeTo

    Methods inherited from class com.google.protobuf.AbstractMessageLite

    addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeTo

    Methods inherited from class java.lang.Object

    clone, finalize, getClass, notify, notifyAll, wait, wait, wait

    Methods inherited from interface com.google.protobuf.MessageLiteOrBuilder

    getDefaultInstanceForType, isInitialized
  • Field Details

    • EVENT_CORE_FIELD_NUMBER

      public static final int EVENT_CORE_FIELD_NUMBER
      See Also:
    • SIGNATURE_FIELD_NUMBER

      public static final int SIGNATURE_FIELD_NUMBER
      See Also:
    • EVENT_TRANSACTION_FIELD_NUMBER

      public static final int EVENT_TRANSACTION_FIELD_NUMBER
      See Also:
    • TRANSACTIONS_FIELD_NUMBER

      public static final int TRANSACTIONS_FIELD_NUMBER
      See Also:
  • Method Details

    • hasEventCore

      public boolean hasEventCore()
       *
       The core event data
       
      .com.hedera.hapi.platform.event.EventCore event_core = 1;
      Specified by:
      hasEventCore in interface GossipEventOrBuilder
      Returns:
      Whether the eventCore field is set.
    • getEventCore

      public EventCore getEventCore()
       *
       The core event data
       
      .com.hedera.hapi.platform.event.EventCore event_core = 1;
      Specified by:
      getEventCore in interface GossipEventOrBuilder
      Returns:
      The eventCore.
    • getSignature

      public com.google.protobuf.ByteString getSignature()
       *
       A node signature on the event hash.<br/>
       The signature SHALL be created with the SHA384withRSA algorithm.<br/>
       The signature MUST verify using the public key belonging to the `event_creator`.<br/>
       The `event_creator` public key SHALL be read from the address book that corresponds to the event's birth round.<br/>
       The signed event hash SHALL be a SHA-384 hash.<br/>
       The signed event hash SHALL have the following inputs, in the specified order:<br/>
       1. The bytes of the `event_core` field<br/>
       2. The SHA-384 hash of each individual `EventTransaction`, in the order the transaction appear in the `event_transaction` field
       
      bytes signature = 2;
      Specified by:
      getSignature in interface GossipEventOrBuilder
      Returns:
      The signature.
    • getEventTransactionList

      @Deprecated public List<EventTransaction> getEventTransactionList()
      Deprecated.
       *
       The event transaction.
       <p>
       This field MAY contain zero transactions.<br/>
       This field MUST NOT exceed `maxTransactionCountPerEvent` entries, initially `245760`.<br/>
       This total size of this field MUST NOT exceed `maxTransactionBytesPerEvent`, initially `245760` bytes.<br/>
       Deprecated in favor of the `transaction` field. The idea is to clean the design of event transactions.<br/>
       This is transitional state until 'transaction' field is fully adopted.
       
      repeated .com.hedera.hapi.platform.event.EventTransaction event_transaction = 3 [deprecated = true];
      Specified by:
      getEventTransactionList in interface GossipEventOrBuilder
    • getEventTransactionOrBuilderList

      @Deprecated public List<? extends EventTransactionOrBuilder> getEventTransactionOrBuilderList()
      Deprecated.
       *
       The event transaction.
       <p>
       This field MAY contain zero transactions.<br/>
       This field MUST NOT exceed `maxTransactionCountPerEvent` entries, initially `245760`.<br/>
       This total size of this field MUST NOT exceed `maxTransactionBytesPerEvent`, initially `245760` bytes.<br/>
       Deprecated in favor of the `transaction` field. The idea is to clean the design of event transactions.<br/>
       This is transitional state until 'transaction' field is fully adopted.
       
      repeated .com.hedera.hapi.platform.event.EventTransaction event_transaction = 3 [deprecated = true];
    • getEventTransactionCount

      @Deprecated public int getEventTransactionCount()
      Deprecated.
       *
       The event transaction.
       <p>
       This field MAY contain zero transactions.<br/>
       This field MUST NOT exceed `maxTransactionCountPerEvent` entries, initially `245760`.<br/>
       This total size of this field MUST NOT exceed `maxTransactionBytesPerEvent`, initially `245760` bytes.<br/>
       Deprecated in favor of the `transaction` field. The idea is to clean the design of event transactions.<br/>
       This is transitional state until 'transaction' field is fully adopted.
       
      repeated .com.hedera.hapi.platform.event.EventTransaction event_transaction = 3 [deprecated = true];
      Specified by:
      getEventTransactionCount in interface GossipEventOrBuilder
    • getEventTransaction

      @Deprecated public EventTransaction getEventTransaction(int index)
      Deprecated.
       *
       The event transaction.
       <p>
       This field MAY contain zero transactions.<br/>
       This field MUST NOT exceed `maxTransactionCountPerEvent` entries, initially `245760`.<br/>
       This total size of this field MUST NOT exceed `maxTransactionBytesPerEvent`, initially `245760` bytes.<br/>
       Deprecated in favor of the `transaction` field. The idea is to clean the design of event transactions.<br/>
       This is transitional state until 'transaction' field is fully adopted.
       
      repeated .com.hedera.hapi.platform.event.EventTransaction event_transaction = 3 [deprecated = true];
      Specified by:
      getEventTransaction in interface GossipEventOrBuilder
    • getEventTransactionOrBuilder

      @Deprecated public EventTransactionOrBuilder getEventTransactionOrBuilder(int index)
      Deprecated.
       *
       The event transaction.
       <p>
       This field MAY contain zero transactions.<br/>
       This field MUST NOT exceed `maxTransactionCountPerEvent` entries, initially `245760`.<br/>
       This total size of this field MUST NOT exceed `maxTransactionBytesPerEvent`, initially `245760` bytes.<br/>
       Deprecated in favor of the `transaction` field. The idea is to clean the design of event transactions.<br/>
       This is transitional state until 'transaction' field is fully adopted.
       
      repeated .com.hedera.hapi.platform.event.EventTransaction event_transaction = 3 [deprecated = true];
    • getTransactionsList

      public List<com.google.protobuf.ByteString> getTransactionsList()
       *
       A list of serialized transactions.
       <p>
       This field MAY contain zero transactions.<br/>
       Each transaction in this list SHALL be presented exactly as
       it was supplied to the consensus algorithm.<br/>
       This field MUST contain one entry for each transaction
       included in this gossip event.
       
      repeated bytes transactions = 4;
      Specified by:
      getTransactionsList in interface GossipEventOrBuilder
      Returns:
      A list containing the transactions.
    • getTransactionsCount

      public int getTransactionsCount()
       *
       A list of serialized transactions.
       <p>
       This field MAY contain zero transactions.<br/>
       Each transaction in this list SHALL be presented exactly as
       it was supplied to the consensus algorithm.<br/>
       This field MUST contain one entry for each transaction
       included in this gossip event.
       
      repeated bytes transactions = 4;
      Specified by:
      getTransactionsCount in interface GossipEventOrBuilder
      Returns:
      The count of transactions.
    • getTransactions

      public com.google.protobuf.ByteString getTransactions(int index)
       *
       A list of serialized transactions.
       <p>
       This field MAY contain zero transactions.<br/>
       Each transaction in this list SHALL be presented exactly as
       it was supplied to the consensus algorithm.<br/>
       This field MUST contain one entry for each transaction
       included in this gossip event.
       
      repeated bytes transactions = 4;
      Specified by:
      getTransactions in interface GossipEventOrBuilder
      Parameters:
      index - The index of the element to return.
      Returns:
      The transactions at the given index.
    • parseFrom

      public static GossipEvent parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static GossipEvent parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static GossipEvent parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static GossipEvent parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static GossipEvent parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static GossipEvent parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static GossipEvent parseFrom(InputStream input) throws IOException
      Throws:
      IOException
    • parseFrom

      public static GossipEvent parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • parseDelimitedFrom

      public static GossipEvent parseDelimitedFrom(InputStream input) throws IOException
      Throws:
      IOException
    • parseDelimitedFrom

      public static GossipEvent parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • parseFrom

      public static GossipEvent parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
      Throws:
      IOException
    • parseFrom

      public static GossipEvent parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • newBuilder

      public static GossipEvent.Builder newBuilder()
    • newBuilder

      public static GossipEvent.Builder newBuilder(GossipEvent prototype)
    • dynamicMethod

      protected final Object dynamicMethod(com.google.protobuf.GeneratedMessageLite.MethodToInvoke method, Object arg0, Object arg1)
      Specified by:
      dynamicMethod in class com.google.protobuf.GeneratedMessageLite<GossipEvent,GossipEvent.Builder>
    • getDefaultInstance

      public static GossipEvent getDefaultInstance()
    • parser

      public static com.google.protobuf.Parser<GossipEvent> parser()