- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite
-
- com.google.protobuf.AbstractMessage
-
- com.google.protobuf.GeneratedMessage
-
- io.axoniq.axonserver.grpc.event.Event
-
- All Implemented Interfaces:
com.google.protobuf.Message,com.google.protobuf.MessageLite,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,EventOrBuilder,Serializable
@Generated public final class Event extends com.google.protobuf.GeneratedMessage implements EventOrBuilder
Message containing the information of an Event
Protobuf typeio.axoniq.axonserver.grpc.event.Event- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classEvent.BuilderMessage containing the information of an Event-
Nested classes/interfaces inherited from class com.google.protobuf.GeneratedMessage
com.google.protobuf.GeneratedMessage.ExtendableBuilder<MessageT extends com.google.protobuf.GeneratedMessage.ExtendableMessage<MessageT>,BuilderT extends com.google.protobuf.GeneratedMessage.ExtendableBuilder<MessageT,BuilderT>>, com.google.protobuf.GeneratedMessage.ExtendableMessage<MessageT extends com.google.protobuf.GeneratedMessage.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessage.ExtendableMessageOrBuilder<MessageT extends com.google.protobuf.GeneratedMessage.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessage.FieldAccessorTable, com.google.protobuf.GeneratedMessage.GeneratedExtension<ContainingT extends com.google.protobuf.Message,T extends Object>, com.google.protobuf.GeneratedMessage.UnusedPrivateParameter
-
-
Field Summary
Fields Modifier and Type Field Description static intAGGREGATE_IDENTIFIER_FIELD_NUMBERstatic intAGGREGATE_SEQUENCE_NUMBER_FIELD_NUMBERstatic intAGGREGATE_TYPE_FIELD_NUMBERstatic intMESSAGE_IDENTIFIER_FIELD_NUMBERstatic intMETA_DATA_FIELD_NUMBERstatic intPAYLOAD_FIELD_NUMBERstatic intSNAPSHOT_FIELD_NUMBERstatic intTIMESTAMP_FIELD_NUMBER
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description booleancontainsMetaData(String key)The Meta Data of the Eventbooleanequals(Object obj)StringgetAggregateIdentifier()The identifier of the Aggregate instance that published this event, if anycom.google.protobuf.ByteStringgetAggregateIdentifierBytes()The identifier of the Aggregate instance that published this event, if anylonggetAggregateSequenceNumber()The sequence number of the Event in the Aggregate instance that published it, if anyStringgetAggregateType()The Type of the Aggregate instance that published this Event, if anycom.google.protobuf.ByteStringgetAggregateTypeBytes()The Type of the Aggregate instance that published this Event, if anystatic EventgetDefaultInstance()EventgetDefaultInstanceForType()static com.google.protobuf.Descriptors.DescriptorgetDescriptor()com.google.protobuf.Descriptors.DescriptorgetDescriptorForType()StringgetMessageIdentifier()The unique identifier of this eventcom.google.protobuf.ByteStringgetMessageIdentifierBytes()The unique identifier of this eventMap<String,MetaDataValue>getMetaData()Deprecated.intgetMetaDataCount()The Meta Data of the EventMap<String,MetaDataValue>getMetaDataMap()The Meta Data of the EventMetaDataValuegetMetaDataOrDefault(String key, MetaDataValue defaultValue)The Meta Data of the EventMetaDataValuegetMetaDataOrThrow(String key)The Meta Data of the Eventcom.google.protobuf.Parser<Event>getParserForType()SerializedObjectgetPayload()The Payload of the EventSerializedObjectOrBuildergetPayloadOrBuilder()The Payload of the EventintgetSerializedSize()booleangetSnapshot()Flag indicating whether the Event is a snapshot EventlonggetTimestamp()The timestamp of the EventinthashCode()booleanhasPayload()The Payload of the Eventprotected com.google.protobuf.GeneratedMessage.FieldAccessorTableinternalGetFieldAccessorTable()protected com.google.protobuf.MapFieldReflectionAccessorinternalGetMapFieldReflection(int number)booleanisInitialized()static Event.BuildernewBuilder()static Event.BuildernewBuilder(Event prototype)Event.BuildernewBuilderForType()protected Event.BuildernewBuilderForType(com.google.protobuf.AbstractMessage.BuilderParent parent)static EventparseDelimitedFrom(InputStream input)static EventparseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static EventparseFrom(byte[] data)static EventparseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static EventparseFrom(com.google.protobuf.ByteString data)static EventparseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static EventparseFrom(com.google.protobuf.CodedInputStream input)static EventparseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static EventparseFrom(InputStream input)static EventparseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static EventparseFrom(ByteBuffer data)static EventparseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static com.google.protobuf.Parser<Event>parser()Event.BuildertoBuilder()voidwriteTo(com.google.protobuf.CodedOutputStream output)-
Methods inherited from class com.google.protobuf.GeneratedMessage
computeStringSize, computeStringSizeNoTag, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyList, emptyLongList, getAllFields, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, internalGetMapField, isStringEmpty, makeExtensionsImmutable, makeMutableCopy, makeMutableCopy, newFileScopedGeneratedExtension, newInstance, newMessageScopedGeneratedExtension, parseDelimitedWithIOException, parseDelimitedWithIOException, parseUnknownField, parseUnknownFieldProto3, parseWithIOException, parseWithIOException, parseWithIOException, parseWithIOException, serializeBooleanMapTo, serializeIntegerMapTo, serializeLongMapTo, serializeStringMapTo, writeReplace, writeString, writeStringNoTag
-
Methods inherited from class com.google.protobuf.AbstractMessage
findInitializationErrors, getInitializationErrorString, hashFields, toString
-
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
-
-
-
-
Field Detail
-
MESSAGE_IDENTIFIER_FIELD_NUMBER
public static final int MESSAGE_IDENTIFIER_FIELD_NUMBER
- See Also:
- Constant Field Values
-
AGGREGATE_IDENTIFIER_FIELD_NUMBER
public static final int AGGREGATE_IDENTIFIER_FIELD_NUMBER
- See Also:
- Constant Field Values
-
AGGREGATE_SEQUENCE_NUMBER_FIELD_NUMBER
public static final int AGGREGATE_SEQUENCE_NUMBER_FIELD_NUMBER
- See Also:
- Constant Field Values
-
AGGREGATE_TYPE_FIELD_NUMBER
public static final int AGGREGATE_TYPE_FIELD_NUMBER
- See Also:
- Constant Field Values
-
TIMESTAMP_FIELD_NUMBER
public static final int TIMESTAMP_FIELD_NUMBER
- See Also:
- Constant Field Values
-
PAYLOAD_FIELD_NUMBER
public static final int PAYLOAD_FIELD_NUMBER
- See Also:
- Constant Field Values
-
META_DATA_FIELD_NUMBER
public static final int META_DATA_FIELD_NUMBER
- See Also:
- Constant Field Values
-
SNAPSHOT_FIELD_NUMBER
public static final int SNAPSHOT_FIELD_NUMBER
- See Also:
- Constant Field Values
-
-
Method Detail
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getDescriptorForTypein classcom.google.protobuf.GeneratedMessage
-
internalGetMapFieldReflection
protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection(int number)
- Overrides:
internalGetMapFieldReflectionin classcom.google.protobuf.GeneratedMessage
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessage
-
getMessageIdentifier
public String getMessageIdentifier()
The unique identifier of this event
string message_identifier = 1;- Specified by:
getMessageIdentifierin interfaceEventOrBuilder- Returns:
- The messageIdentifier.
-
getMessageIdentifierBytes
public com.google.protobuf.ByteString getMessageIdentifierBytes()
The unique identifier of this event
string message_identifier = 1;- Specified by:
getMessageIdentifierBytesin interfaceEventOrBuilder- Returns:
- The bytes for messageIdentifier.
-
getAggregateIdentifier
public String getAggregateIdentifier()
The identifier of the Aggregate instance that published this event, if any
string aggregate_identifier = 2;- Specified by:
getAggregateIdentifierin interfaceEventOrBuilder- Returns:
- The aggregateIdentifier.
-
getAggregateIdentifierBytes
public com.google.protobuf.ByteString getAggregateIdentifierBytes()
The identifier of the Aggregate instance that published this event, if any
string aggregate_identifier = 2;- Specified by:
getAggregateIdentifierBytesin interfaceEventOrBuilder- Returns:
- The bytes for aggregateIdentifier.
-
getAggregateSequenceNumber
public long getAggregateSequenceNumber()
The sequence number of the Event in the Aggregate instance that published it, if any
int64 aggregate_sequence_number = 3;- Specified by:
getAggregateSequenceNumberin interfaceEventOrBuilder- Returns:
- The aggregateSequenceNumber.
-
getAggregateType
public String getAggregateType()
The Type of the Aggregate instance that published this Event, if any
string aggregate_type = 4;- Specified by:
getAggregateTypein interfaceEventOrBuilder- Returns:
- The aggregateType.
-
getAggregateTypeBytes
public com.google.protobuf.ByteString getAggregateTypeBytes()
The Type of the Aggregate instance that published this Event, if any
string aggregate_type = 4;- Specified by:
getAggregateTypeBytesin interfaceEventOrBuilder- Returns:
- The bytes for aggregateType.
-
getTimestamp
public long getTimestamp()
The timestamp of the Event
int64 timestamp = 5;- Specified by:
getTimestampin interfaceEventOrBuilder- Returns:
- The timestamp.
-
hasPayload
public boolean hasPayload()
The Payload of the Event
.io.axoniq.axonserver.grpc.SerializedObject payload = 6;- Specified by:
hasPayloadin interfaceEventOrBuilder- Returns:
- Whether the payload field is set.
-
getPayload
public SerializedObject getPayload()
The Payload of the Event
.io.axoniq.axonserver.grpc.SerializedObject payload = 6;- Specified by:
getPayloadin interfaceEventOrBuilder- Returns:
- The payload.
-
getPayloadOrBuilder
public SerializedObjectOrBuilder getPayloadOrBuilder()
The Payload of the Event
.io.axoniq.axonserver.grpc.SerializedObject payload = 6;- Specified by:
getPayloadOrBuilderin interfaceEventOrBuilder
-
getMetaDataCount
public int getMetaDataCount()
Description copied from interface:EventOrBuilderThe Meta Data of the Event
map<string, .io.axoniq.axonserver.grpc.MetaDataValue> meta_data = 7;- Specified by:
getMetaDataCountin interfaceEventOrBuilder
-
containsMetaData
public boolean containsMetaData(String key)
The Meta Data of the Event
map<string, .io.axoniq.axonserver.grpc.MetaDataValue> meta_data = 7;- Specified by:
containsMetaDatain interfaceEventOrBuilder
-
getMetaData
@Deprecated public Map<String,MetaDataValue> getMetaData()
Deprecated.UsegetMetaDataMap()instead.- Specified by:
getMetaDatain interfaceEventOrBuilder
-
getMetaDataMap
public Map<String,MetaDataValue> getMetaDataMap()
The Meta Data of the Event
map<string, .io.axoniq.axonserver.grpc.MetaDataValue> meta_data = 7;- Specified by:
getMetaDataMapin interfaceEventOrBuilder
-
getMetaDataOrDefault
public MetaDataValue getMetaDataOrDefault(String key, MetaDataValue defaultValue)
The Meta Data of the Event
map<string, .io.axoniq.axonserver.grpc.MetaDataValue> meta_data = 7;- Specified by:
getMetaDataOrDefaultin interfaceEventOrBuilder
-
getMetaDataOrThrow
public MetaDataValue getMetaDataOrThrow(String key)
The Meta Data of the Event
map<string, .io.axoniq.axonserver.grpc.MetaDataValue> meta_data = 7;- Specified by:
getMetaDataOrThrowin interfaceEventOrBuilder
-
getSnapshot
public boolean getSnapshot()
Flag indicating whether the Event is a snapshot Event
bool snapshot = 8;- Specified by:
getSnapshotin interfaceEventOrBuilder- Returns:
- The snapshot.
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage
-
writeTo
public void writeTo(com.google.protobuf.CodedOutputStream output) throws IOException- Specified by:
writeToin interfacecom.google.protobuf.MessageLite- Overrides:
writeToin classcom.google.protobuf.GeneratedMessage- Throws:
IOException
-
getSerializedSize
public int getSerializedSize()
- Specified by:
getSerializedSizein interfacecom.google.protobuf.MessageLite- Overrides:
getSerializedSizein classcom.google.protobuf.GeneratedMessage
-
equals
public boolean equals(Object obj)
- Specified by:
equalsin interfacecom.google.protobuf.Message- Overrides:
equalsin classcom.google.protobuf.AbstractMessage
-
hashCode
public int hashCode()
- Specified by:
hashCodein interfacecom.google.protobuf.Message- Overrides:
hashCodein classcom.google.protobuf.AbstractMessage
-
parseFrom
public static Event parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static Event parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static Event parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static Event parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static Event parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static Event parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static Event parseFrom(InputStream input) throws IOException
- Throws:
IOException
-
parseFrom
public static Event parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Throws:
IOException
-
parseDelimitedFrom
public static Event parseDelimitedFrom(InputStream input) throws IOException
- Throws:
IOException
-
parseDelimitedFrom
public static Event parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Throws:
IOException
-
parseFrom
public static Event parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
- Throws:
IOException
-
parseFrom
public static Event parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Throws:
IOException
-
newBuilderForType
public Event.Builder newBuilderForType()
- Specified by:
newBuilderForTypein interfacecom.google.protobuf.Message- Specified by:
newBuilderForTypein interfacecom.google.protobuf.MessageLite
-
newBuilder
public static Event.Builder newBuilder()
-
newBuilder
public static Event.Builder newBuilder(Event prototype)
-
toBuilder
public Event.Builder toBuilder()
- Specified by:
toBuilderin interfacecom.google.protobuf.Message- Specified by:
toBuilderin interfacecom.google.protobuf.MessageLite
-
newBuilderForType
protected Event.Builder newBuilderForType(com.google.protobuf.AbstractMessage.BuilderParent parent)
- Overrides:
newBuilderForTypein classcom.google.protobuf.AbstractMessage
-
getDefaultInstance
public static Event getDefaultInstance()
-
parser
public static com.google.protobuf.Parser<Event> parser()
-
getParserForType
public com.google.protobuf.Parser<Event> getParserForType()
- Specified by:
getParserForTypein interfacecom.google.protobuf.Message- Specified by:
getParserForTypein interfacecom.google.protobuf.MessageLite- Overrides:
getParserForTypein classcom.google.protobuf.GeneratedMessage
-
getDefaultInstanceForType
public Event getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
-