Class EventRecord (0.41.0)

public final class EventRecord extends GeneratedMessage implements EventRecordOrBuilder

EventRecord stores information about a UDM event.

Protobuf type google.cloud.chronicle.v1.EventRecord

Static Fields

ALERT_NUMBER_FIELD_NUMBER

public static final int ALERT_NUMBER_FIELD_NUMBER
Field Value
Type Description
int

ALERT_VIEW_ID_FIELD_NUMBER

public static final int ALERT_VIEW_ID_FIELD_NUMBER
Field Value
Type Description
int

ANNOTATIONS_FIELD_NUMBER

public static final int ANNOTATIONS_FIELD_NUMBER
Field Value
Type Description
int

DETECTIONS_FIELD_NUMBER

public static final int DETECTIONS_FIELD_NUMBER
Field Value
Type Description
int

EVENT_FIELD_NUMBER

public static final int EVENT_FIELD_NUMBER
Field Value
Type Description
int

EVENT_LOG_TOKEN_FIELD_NUMBER

public static final int EVENT_LOG_TOKEN_FIELD_NUMBER
Field Value
Type Description
int

TABLE_FIELD_NUMBER

public static final int TABLE_FIELD_NUMBER
Field Value
Type Description
int

Static Methods

getDefaultInstance()

public static EventRecord getDefaultInstance()
Returns
Type Description
EventRecord

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
Type Description
Descriptor

newBuilder()

public static EventRecord.Builder newBuilder()
Returns
Type Description
EventRecord.Builder

newBuilder(EventRecord prototype)

public static EventRecord.Builder newBuilder(EventRecord prototype)
Parameter
Name Description
prototype EventRecord
Returns
Type Description
EventRecord.Builder

parseDelimitedFrom(InputStream input)

public static EventRecord parseDelimitedFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
EventRecord
Exceptions
Type Description
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static EventRecord parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
EventRecord
Exceptions
Type Description
IOException

parseFrom(byte[] data)

public static EventRecord parseFrom(byte[] data)
Parameter
Name Description
data byte[]
Returns
Type Description
EventRecord
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static EventRecord parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data byte[]
extensionRegistry ExtensionRegistryLite
Returns
Type Description
EventRecord
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data)

public static EventRecord parseFrom(ByteString data)
Parameter
Name Description
data ByteString
Returns
Type Description
EventRecord
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static EventRecord parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteString
extensionRegistry ExtensionRegistryLite
Returns
Type Description
EventRecord
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static EventRecord parseFrom(CodedInputStream input)
Parameter
Name Description
input CodedInputStream
Returns
Type Description
EventRecord
Exceptions
Type Description
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static EventRecord parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
EventRecord
Exceptions
Type Description
IOException

parseFrom(InputStream input)

public static EventRecord parseFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
EventRecord
Exceptions
Type Description
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static EventRecord parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
EventRecord
Exceptions
Type Description
IOException

parseFrom(ByteBuffer data)

public static EventRecord parseFrom(ByteBuffer data)
Parameter
Name Description
data ByteBuffer
Returns
Type Description
EventRecord
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static EventRecord parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteBuffer
extensionRegistry ExtensionRegistryLite
Returns
Type Description
EventRecord
Exceptions
Type Description
InvalidProtocolBufferException

parser()

public static Parser<EventRecord> parser()
Returns
Type Description
Parser<EventRecord>

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
Name Description
obj Object
Returns
Type Description
boolean
Overrides

getAlertNumber()

public int getAlertNumber()

If the event should be treated as an alert, the unique identifier for the alert.

int32 alert_number = 3;

Returns
Type Description
int

The alertNumber.

getAlertViewId()

public ByteString getAlertViewId()

Alert View specific Id. Helps create a link to Alert View.

bytes alert_view_id = 4;

Returns
Type Description
ByteString

The alertViewId.

getAnnotations(int index)

public EventRecord.Annotation getAnnotations(int index)

Annotations added to an event.

repeated .google.cloud.chronicle.v1.EventRecord.Annotation annotations = 5;

Parameter
Name Description
index int

The index of the element to return.

Returns
Type Description
EventRecord.Annotation

The annotations at the given index.

getAnnotationsCount()

public int getAnnotationsCount()

Annotations added to an event.

repeated .google.cloud.chronicle.v1.EventRecord.Annotation annotations = 5;

Returns
Type Description
int

The count of annotations.

getAnnotationsList()

public List<EventRecord.Annotation> getAnnotationsList()

Annotations added to an event.

repeated .google.cloud.chronicle.v1.EventRecord.Annotation annotations = 5;

Returns
Type Description
List<Annotation>

A list containing the annotations.

getAnnotationsValue(int index)

public int getAnnotationsValue(int index)

Annotations added to an event.

repeated .google.cloud.chronicle.v1.EventRecord.Annotation annotations = 5;

Parameter
Name Description
index int

The index of the value to return.

Returns
Type Description
int

The enum numeric value on the wire of annotations at the given index.

getAnnotationsValueList()

public List<Integer> getAnnotationsValueList()

Annotations added to an event.

repeated .google.cloud.chronicle.v1.EventRecord.Annotation annotations = 5;

Returns
Type Description
List<Integer>

A list containing the enum numeric values on the wire for annotations.

getDefaultInstanceForType()

public EventRecord getDefaultInstanceForType()
Returns
Type Description
EventRecord

getDetections(int index)

public Collection getDetections(int index)

Detections associated with an event.

repeated .google.backstory.Collection detections = 6;

Parameter
Name Description
index int
Returns
Type Description
Collection

getDetectionsCount()

public int getDetectionsCount()

Detections associated with an event.

repeated .google.backstory.Collection detections = 6;

Returns
Type Description
int

getDetectionsList()

public List<Collection> getDetectionsList()

Detections associated with an event.

repeated .google.backstory.Collection detections = 6;

Returns
Type Description
List<Collection>

getDetectionsOrBuilder(int index)

public CollectionOrBuilder getDetectionsOrBuilder(int index)

Detections associated with an event.

repeated .google.backstory.Collection detections = 6;

Parameter
Name Description
index int
Returns
Type Description
CollectionOrBuilder

getDetectionsOrBuilderList()

public List<? extends CollectionOrBuilder> getDetectionsOrBuilderList()

Detections associated with an event.

repeated .google.backstory.Collection detections = 6;

Returns
Type Description
List<? extends com.google.backstory.CollectionOrBuilder>

getEvent()

public Event getEvent()

The UDM Event.

.google.cloud.chronicle.v1.Event event = 1;

Returns
Type Description
Event

The event.

getEventLogToken()

public ByteString getEventLogToken()

Raw log tokens mapped to the event. Can be used to locate the raw log entry that generated the event.

bytes event_log_token = 2;

Returns
Type Description
ByteString

The eventLogToken.

getEventOrBuilder()

public EventOrBuilder getEventOrBuilder()

The UDM Event.

.google.cloud.chronicle.v1.Event event = 1;

Returns
Type Description
EventOrBuilder

getParserForType()

public Parser<EventRecord> getParserForType()
Returns
Type Description
Parser<EventRecord>
Overrides

getSerializedSize()

public int getSerializedSize()
Returns
Type Description
int
Overrides

getTable()

public String getTable()

User defined table name for the event in joins query.

string table = 7;

Returns
Type Description
String

The table.

getTableBytes()

public ByteString getTableBytes()

User defined table name for the event in joins query.

string table = 7;

Returns
Type Description
ByteString

The bytes for table.

hasEvent()

public boolean hasEvent()

The UDM Event.

.google.cloud.chronicle.v1.Event event = 1;

Returns
Type Description
boolean

Whether the event field is set.

hashCode()

public int hashCode()
Returns
Type Description
int
Overrides

internalGetFieldAccessorTable()

protected GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

newBuilderForType()

public EventRecord.Builder newBuilderForType()
Returns
Type Description
EventRecord.Builder

newBuilderForType(AbstractMessage.BuilderParent parent)

protected EventRecord.Builder newBuilderForType(AbstractMessage.BuilderParent parent)
Parameter
Name Description
parent BuilderParent
Returns
Type Description
EventRecord.Builder
Overrides

toBuilder()

public EventRecord.Builder toBuilder()
Returns
Type Description
EventRecord.Builder

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
Name Description
output CodedOutputStream
Overrides
Exceptions
Type Description
IOException