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 gossipProtobuf type
com.hedera.hapi.platform.event.GossipEvent-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final class* An event that is sent and received via gossipNested 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
FieldsModifier and TypeFieldDescriptionstatic final intstatic final intstatic final intstatic final intFields inherited from class com.google.protobuf.GeneratedMessageLite
unknownFieldsFields inherited from class com.google.protobuf.AbstractMessageLite
memoizedHashCode -
Method Summary
Modifier and TypeMethodDescriptionprotected final ObjectdynamicMethod(com.google.protobuf.GeneratedMessageLite.MethodToInvoke method, Object arg0, Object arg1) static GossipEvent* The core event datagetEventTransaction(int index) Deprecated.intDeprecated.Deprecated.getEventTransactionOrBuilder(int index) Deprecated.List<? extends EventTransactionOrBuilder> 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.ByteStringgetTransactions(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 datastatic GossipEvent.Builderstatic GossipEvent.BuildernewBuilder(GossipEvent prototype) static GossipEventparseDelimitedFrom(InputStream input) static GossipEventparseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static GossipEventparseFrom(byte[] data) static GossipEventparseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static GossipEventparseFrom(com.google.protobuf.ByteString data) static GossipEventparseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static GossipEventparseFrom(com.google.protobuf.CodedInputStream input) static GossipEventparseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static GossipEventparseFrom(InputStream input) static GossipEventparseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static GossipEventparseFrom(ByteBuffer data) static GossipEventparseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static com.google.protobuf.Parser<GossipEvent> parser()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, writeToMethods inherited from class com.google.protobuf.AbstractMessageLite
addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeToMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods 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:
hasEventCorein interfaceGossipEventOrBuilder- Returns:
- Whether the eventCore field is set.
-
getEventCore
* The core event data
.com.hedera.hapi.platform.event.EventCore event_core = 1;- Specified by:
getEventCorein interfaceGossipEventOrBuilder- 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:
getSignaturein interfaceGossipEventOrBuilder- Returns:
- The signature.
-
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:
getEventTransactionListin interfaceGossipEventOrBuilder
-
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.* 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:
getEventTransactionCountin interfaceGossipEventOrBuilder
-
getEventTransaction
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:
getEventTransactionin interfaceGossipEventOrBuilder
-
getEventTransactionOrBuilder
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
* 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:
getTransactionsListin interfaceGossipEventOrBuilder- 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:
getTransactionsCountin interfaceGossipEventOrBuilder- 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:
getTransactionsin interfaceGossipEventOrBuilder- 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
- Throws:
IOException
-
parseFrom
public static GossipEvent parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
parseDelimitedFrom
- Throws:
IOException
-
parseDelimitedFrom
public static GossipEvent parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
parseFrom
- Throws:
IOException
-
parseFrom
public static GossipEvent parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
newBuilder
-
newBuilder
-
dynamicMethod
protected final Object dynamicMethod(com.google.protobuf.GeneratedMessageLite.MethodToInvoke method, Object arg0, Object arg1) - Specified by:
dynamicMethodin classcom.google.protobuf.GeneratedMessageLite<GossipEvent,GossipEvent.Builder>
-
getDefaultInstance
-
parser
-