- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite.Builder
-
- com.google.protobuf.AbstractMessage.Builder<BuilderT>
-
- com.google.protobuf.GeneratedMessage.Builder<Event.Builder>
-
- io.axoniq.axonserver.grpc.event.Event.Builder
-
- All Implemented Interfaces:
com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,EventOrBuilder,Cloneable
- Enclosing class:
- Event
public static final class Event.Builder extends com.google.protobuf.GeneratedMessage.Builder<Event.Builder> implements EventOrBuilder
Message containing the information of an Event
Protobuf typeio.axoniq.axonserver.grpc.event.Event
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description Eventbuild()EventbuildPartial()Event.Builderclear()Event.BuilderclearAggregateIdentifier()The identifier of the Aggregate instance that published this event, if anyEvent.BuilderclearAggregateSequenceNumber()The sequence number of the Event in the Aggregate instance that published it, if anyEvent.BuilderclearAggregateType()The Type of the Aggregate instance that published this Event, if anyEvent.BuilderclearMessageIdentifier()The unique identifier of this eventEvent.BuilderclearMetaData()Event.BuilderclearPayload()The Payload of the EventEvent.BuilderclearSnapshot()Flag indicating whether the Event is a snapshot EventEvent.BuilderclearTimestamp()The timestamp of the EventbooleancontainsMetaData(String key)The Meta Data of the EventStringgetAggregateIdentifier()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 anyEventgetDefaultInstanceForType()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 EventMap<String,MetaDataValue>getMutableMetaData()Deprecated.SerializedObjectgetPayload()The Payload of the EventSerializedObject.BuildergetPayloadBuilder()The Payload of the EventSerializedObjectOrBuildergetPayloadOrBuilder()The Payload of the EventbooleangetSnapshot()Flag indicating whether the Event is a snapshot EventlonggetTimestamp()The timestamp of the EventbooleanhasPayload()The Payload of the Eventprotected com.google.protobuf.GeneratedMessage.FieldAccessorTableinternalGetFieldAccessorTable()protected com.google.protobuf.MapFieldReflectionAccessorinternalGetMapFieldReflection(int number)protected com.google.protobuf.MapFieldReflectionAccessorinternalGetMutableMapFieldReflection(int number)booleanisInitialized()Event.BuildermergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)Event.BuildermergeFrom(com.google.protobuf.Message other)Event.BuildermergeFrom(Event other)Event.BuildermergePayload(SerializedObject value)The Payload of the EventEvent.BuilderputAllMetaData(Map<String,MetaDataValue> values)The Meta Data of the EventEvent.BuilderputMetaData(String key, MetaDataValue value)The Meta Data of the EventMetaDataValue.BuilderputMetaDataBuilderIfAbsent(String key)The Meta Data of the EventEvent.BuilderremoveMetaData(String key)The Meta Data of the EventEvent.BuildersetAggregateIdentifier(String value)The identifier of the Aggregate instance that published this event, if anyEvent.BuildersetAggregateIdentifierBytes(com.google.protobuf.ByteString value)The identifier of the Aggregate instance that published this event, if anyEvent.BuildersetAggregateSequenceNumber(long value)The sequence number of the Event in the Aggregate instance that published it, if anyEvent.BuildersetAggregateType(String value)The Type of the Aggregate instance that published this Event, if anyEvent.BuildersetAggregateTypeBytes(com.google.protobuf.ByteString value)The Type of the Aggregate instance that published this Event, if anyEvent.BuildersetMessageIdentifier(String value)The unique identifier of this eventEvent.BuildersetMessageIdentifierBytes(com.google.protobuf.ByteString value)The unique identifier of this eventEvent.BuildersetPayload(SerializedObject value)The Payload of the EventEvent.BuildersetPayload(SerializedObject.Builder builderForValue)The Payload of the EventEvent.BuildersetSnapshot(boolean value)Flag indicating whether the Event is a snapshot EventEvent.BuildersetTimestamp(long value)The timestamp of the Event-
Methods inherited from class com.google.protobuf.GeneratedMessage.Builder
addRepeatedField, clearField, clearOneof, clone, getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, mergeUnknownFields, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setField, setRepeatedField, setUnknownFields, setUnknownFieldSetBuilder, setUnknownFieldsProto3
-
Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString
-
Methods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageException
-
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
-
-
-
Method Detail
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
-
internalGetMapFieldReflection
protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection(int number)
- Overrides:
internalGetMapFieldReflectionin classcom.google.protobuf.GeneratedMessage.Builder<Event.Builder>
-
internalGetMutableMapFieldReflection
protected com.google.protobuf.MapFieldReflectionAccessor internalGetMutableMapFieldReflection(int number)
- Overrides:
internalGetMutableMapFieldReflectionin classcom.google.protobuf.GeneratedMessage.Builder<Event.Builder>
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessage.Builder<Event.Builder>
-
clear
public Event.Builder clear()
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessage.Builder<Event.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.Message.Builder- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getDescriptorForTypein classcom.google.protobuf.GeneratedMessage.Builder<Event.Builder>
-
getDefaultInstanceForType
public Event getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
public Event build()
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public Event buildPartial()
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
mergeFrom
public Event.Builder mergeFrom(com.google.protobuf.Message other)
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<Event.Builder>
-
mergeFrom
public Event.Builder mergeFrom(Event other)
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage.Builder<Event.Builder>
-
mergeFrom
public Event.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<Event.Builder>- Throws:
IOException
-
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.
-
setMessageIdentifier
public Event.Builder setMessageIdentifier(String value)
The unique identifier of this event
string message_identifier = 1;- Parameters:
value- The messageIdentifier to set.- Returns:
- This builder for chaining.
-
clearMessageIdentifier
public Event.Builder clearMessageIdentifier()
The unique identifier of this event
string message_identifier = 1;- Returns:
- This builder for chaining.
-
setMessageIdentifierBytes
public Event.Builder setMessageIdentifierBytes(com.google.protobuf.ByteString value)
The unique identifier of this event
string message_identifier = 1;- Parameters:
value- The bytes for messageIdentifier to set.- Returns:
- This builder for chaining.
-
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.
-
setAggregateIdentifier
public Event.Builder setAggregateIdentifier(String value)
The identifier of the Aggregate instance that published this event, if any
string aggregate_identifier = 2;- Parameters:
value- The aggregateIdentifier to set.- Returns:
- This builder for chaining.
-
clearAggregateIdentifier
public Event.Builder clearAggregateIdentifier()
The identifier of the Aggregate instance that published this event, if any
string aggregate_identifier = 2;- Returns:
- This builder for chaining.
-
setAggregateIdentifierBytes
public Event.Builder setAggregateIdentifierBytes(com.google.protobuf.ByteString value)
The identifier of the Aggregate instance that published this event, if any
string aggregate_identifier = 2;- Parameters:
value- The bytes for aggregateIdentifier to set.- Returns:
- This builder for chaining.
-
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.
-
setAggregateSequenceNumber
public Event.Builder setAggregateSequenceNumber(long value)
The sequence number of the Event in the Aggregate instance that published it, if any
int64 aggregate_sequence_number = 3;- Parameters:
value- The aggregateSequenceNumber to set.- Returns:
- This builder for chaining.
-
clearAggregateSequenceNumber
public Event.Builder clearAggregateSequenceNumber()
The sequence number of the Event in the Aggregate instance that published it, if any
int64 aggregate_sequence_number = 3;- Returns:
- This builder for chaining.
-
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.
-
setAggregateType
public Event.Builder setAggregateType(String value)
The Type of the Aggregate instance that published this Event, if any
string aggregate_type = 4;- Parameters:
value- The aggregateType to set.- Returns:
- This builder for chaining.
-
clearAggregateType
public Event.Builder clearAggregateType()
The Type of the Aggregate instance that published this Event, if any
string aggregate_type = 4;- Returns:
- This builder for chaining.
-
setAggregateTypeBytes
public Event.Builder setAggregateTypeBytes(com.google.protobuf.ByteString value)
The Type of the Aggregate instance that published this Event, if any
string aggregate_type = 4;- Parameters:
value- The bytes for aggregateType to set.- Returns:
- This builder for chaining.
-
getTimestamp
public long getTimestamp()
The timestamp of the Event
int64 timestamp = 5;- Specified by:
getTimestampin interfaceEventOrBuilder- Returns:
- The timestamp.
-
setTimestamp
public Event.Builder setTimestamp(long value)
The timestamp of the Event
int64 timestamp = 5;- Parameters:
value- The timestamp to set.- Returns:
- This builder for chaining.
-
clearTimestamp
public Event.Builder clearTimestamp()
The timestamp of the Event
int64 timestamp = 5;- Returns:
- This builder for chaining.
-
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.
-
setPayload
public Event.Builder setPayload(SerializedObject value)
The Payload of the Event
.io.axoniq.axonserver.grpc.SerializedObject payload = 6;
-
setPayload
public Event.Builder setPayload(SerializedObject.Builder builderForValue)
The Payload of the Event
.io.axoniq.axonserver.grpc.SerializedObject payload = 6;
-
mergePayload
public Event.Builder mergePayload(SerializedObject value)
The Payload of the Event
.io.axoniq.axonserver.grpc.SerializedObject payload = 6;
-
clearPayload
public Event.Builder clearPayload()
The Payload of the Event
.io.axoniq.axonserver.grpc.SerializedObject payload = 6;
-
getPayloadBuilder
public SerializedObject.Builder getPayloadBuilder()
The Payload of the Event
.io.axoniq.axonserver.grpc.SerializedObject payload = 6;
-
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
-
clearMetaData
public Event.Builder clearMetaData()
-
removeMetaData
public Event.Builder removeMetaData(String key)
The Meta Data of the Event
map<string, .io.axoniq.axonserver.grpc.MetaDataValue> meta_data = 7;
-
getMutableMetaData
@Deprecated public Map<String,MetaDataValue> getMutableMetaData()
Deprecated.Use alternate mutation accessors instead.
-
putMetaData
public Event.Builder putMetaData(String key, MetaDataValue value)
The Meta Data of the Event
map<string, .io.axoniq.axonserver.grpc.MetaDataValue> meta_data = 7;
-
putAllMetaData
public Event.Builder putAllMetaData(Map<String,MetaDataValue> values)
The Meta Data of the Event
map<string, .io.axoniq.axonserver.grpc.MetaDataValue> meta_data = 7;
-
putMetaDataBuilderIfAbsent
public MetaDataValue.Builder putMetaDataBuilderIfAbsent(String key)
The Meta Data of the Event
map<string, .io.axoniq.axonserver.grpc.MetaDataValue> meta_data = 7;
-
getSnapshot
public boolean getSnapshot()
Flag indicating whether the Event is a snapshot Event
bool snapshot = 8;- Specified by:
getSnapshotin interfaceEventOrBuilder- Returns:
- The snapshot.
-
setSnapshot
public Event.Builder setSnapshot(boolean value)
Flag indicating whether the Event is a snapshot Event
bool snapshot = 8;- Parameters:
value- The snapshot to set.- Returns:
- This builder for chaining.
-
clearSnapshot
public Event.Builder clearSnapshot()
Flag indicating whether the Event is a snapshot Event
bool snapshot = 8;- Returns:
- This builder for chaining.
-
-