Package com.heroiclabs.satori.api
Interface EventOrBuilder
- All Superinterfaces:
com.google.protobuf.MessageLiteOrBuilder
,com.google.protobuf.MessageOrBuilder
- All Known Implementing Classes:
Event
,Event.Builder
public interface EventOrBuilder
extends com.google.protobuf.MessageOrBuilder
-
Method Summary
Modifier and TypeMethodDescriptionboolean
containsMetadata
(String key) Event metadata, if any.getId()
Optional event ID assigned by the client, used to de-duplicate in retransmission scenarios.com.google.protobuf.ByteString
Optional event ID assigned by the client, used to de-duplicate in retransmission scenarios.Deprecated.int
Event metadata, if any.Event metadata, if any.getMetadataOrDefault
(String key, String defaultValue) Event metadata, if any.getMetadataOrThrow
(String key) Event metadata, if any.getName()
Event name.com.google.protobuf.ByteString
Event name.The time when the event was triggered on the producer side.The time when the event was triggered on the producer side.getValue()
Optional value.com.google.protobuf.ByteString
Optional value.boolean
The time when the event was triggered on the producer side.Methods inherited from interface com.google.protobuf.MessageLiteOrBuilder
isInitialized
Methods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getDefaultInstanceForType, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
getName
String getName()Event name.
string name = 1;
- Returns:
- The name.
-
getNameBytes
com.google.protobuf.ByteString getNameBytes()Event name.
string name = 1;
- Returns:
- The bytes for name.
-
getId
String getId()Optional event ID assigned by the client, used to de-duplicate in retransmission scenarios. If not supplied the server will assign a randomly generated unique event identifier.
string id = 2;
- Returns:
- The id.
-
getIdBytes
com.google.protobuf.ByteString getIdBytes()Optional event ID assigned by the client, used to de-duplicate in retransmission scenarios. If not supplied the server will assign a randomly generated unique event identifier.
string id = 2;
- Returns:
- The bytes for id.
-
getMetadataCount
int getMetadataCount()Event metadata, if any.
map<string, string> metadata = 3;
-
containsMetadata
Event metadata, if any.
map<string, string> metadata = 3;
-
getMetadata
Deprecated.UsegetMetadataMap()
instead. -
getMetadataMap
Event metadata, if any.
map<string, string> metadata = 3;
-
getMetadataOrDefault
Event metadata, if any.
map<string, string> metadata = 3;
-
getMetadataOrThrow
Event metadata, if any.
map<string, string> metadata = 3;
-
getValue
String getValue()Optional value.
string value = 4;
- Returns:
- The value.
-
getValueBytes
com.google.protobuf.ByteString getValueBytes()Optional value.
string value = 4;
- Returns:
- The bytes for value.
-
hasTimestamp
boolean hasTimestamp()The time when the event was triggered on the producer side.
.google.protobuf.Timestamp timestamp = 5;
- Returns:
- Whether the timestamp field is set.
-
getTimestamp
Timestamp getTimestamp()The time when the event was triggered on the producer side.
.google.protobuf.Timestamp timestamp = 5;
- Returns:
- The timestamp.
-
getTimestampOrBuilder
TimestampOrBuilder getTimestampOrBuilder()The time when the event was triggered on the producer side.
.google.protobuf.Timestamp timestamp = 5;
-