io.axoniq.axondb.EventOrBuilder Maven / Gradle / Ivy
The newest version!
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: eventstore_messages.proto
package io.axoniq.axondb;
public interface EventOrBuilder extends
// @@protoc_insertion_point(interface_extends:io.axoniq.axondb.Event)
com.google.protobuf.MessageOrBuilder {
/**
*
* A message id
*
*
* optional string message_identifier = 1;
*/
java.lang.String getMessageIdentifier();
/**
*
* A message id
*
*
* optional string message_identifier = 1;
*/
com.google.protobuf.ByteString
getMessageIdentifierBytes();
/**
* optional string aggregate_identifier = 2;
*/
java.lang.String getAggregateIdentifier();
/**
* optional string aggregate_identifier = 2;
*/
com.google.protobuf.ByteString
getAggregateIdentifierBytes();
/**
* optional int64 aggregate_sequence_number = 3;
*/
long getAggregateSequenceNumber();
/**
* optional string aggregate_type = 4;
*/
java.lang.String getAggregateType();
/**
* optional string aggregate_type = 4;
*/
com.google.protobuf.ByteString
getAggregateTypeBytes();
/**
* optional int64 timestamp = 5;
*/
long getTimestamp();
/**
* optional .io.axoniq.platform.SerializedObject payload = 6;
*/
boolean hasPayload();
/**
* optional .io.axoniq.platform.SerializedObject payload = 6;
*/
io.axoniq.platform.SerializedObject getPayload();
/**
* optional .io.axoniq.platform.SerializedObject payload = 6;
*/
io.axoniq.platform.SerializedObjectOrBuilder getPayloadOrBuilder();
/**
* map<string, .io.axoniq.platform.MetaDataValue> meta_data = 7;
*/
int getMetaDataCount();
/**
* map<string, .io.axoniq.platform.MetaDataValue> meta_data = 7;
*/
boolean containsMetaData(
java.lang.String key);
/**
* Use {@link #getMetaDataMap()} instead.
*/
@java.lang.Deprecated
java.util.Map
getMetaData();
/**
* map<string, .io.axoniq.platform.MetaDataValue> meta_data = 7;
*/
java.util.Map
getMetaDataMap();
/**
* map<string, .io.axoniq.platform.MetaDataValue> meta_data = 7;
*/
io.axoniq.platform.MetaDataValue getMetaDataOrDefault(
java.lang.String key,
io.axoniq.platform.MetaDataValue defaultValue);
/**
* map<string, .io.axoniq.platform.MetaDataValue> meta_data = 7;
*/
io.axoniq.platform.MetaDataValue getMetaDataOrThrow(
java.lang.String key);
/**
* optional bool snapshot = 8;
*/
boolean getSnapshot();
}