Class EventRecord.Builder (0.41.0)

public static final class EventRecord.Builder extends GeneratedMessage.Builder<EventRecord.Builder> implements EventRecordOrBuilder

EventRecord stores information about a UDM event.

Protobuf type google.cloud.chronicle.v1.EventRecord

Static Methods

getDescriptor()

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

Methods

addAllAnnotations(Iterable<? extends EventRecord.Annotation> values)

public EventRecord.Builder addAllAnnotations(Iterable<? extends EventRecord.Annotation> values)

Annotations added to an event.

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

Parameter
Name Description
values Iterable<? extends com.google.cloud.chronicle.v1.EventRecord.Annotation>

The annotations to add.

Returns
Type Description
EventRecord.Builder

This builder for chaining.

addAllAnnotationsValue(Iterable<Integer> values)

public EventRecord.Builder addAllAnnotationsValue(Iterable<Integer> values)

Annotations added to an event.

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

Parameter
Name Description
values Iterable<Integer>

The enum numeric values on the wire for annotations to add.

Returns
Type Description
EventRecord.Builder

This builder for chaining.

addAllDetections(Iterable<? extends Collection> values)

public EventRecord.Builder addAllDetections(Iterable<? extends Collection> values)

Detections associated with an event.

repeated .google.backstory.Collection detections = 6;

Parameter
Name Description
values Iterable<? extends com.google.backstory.Collection>
Returns
Type Description
EventRecord.Builder

addAnnotations(EventRecord.Annotation value)

public EventRecord.Builder addAnnotations(EventRecord.Annotation value)

Annotations added to an event.

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

Parameter
Name Description
value EventRecord.Annotation

The annotations to add.

Returns
Type Description
EventRecord.Builder

This builder for chaining.

addAnnotationsValue(int value)

public EventRecord.Builder addAnnotationsValue(int value)

Annotations added to an event.

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

Parameter
Name Description
value int

The enum numeric value on the wire for annotations to add.

Returns
Type Description
EventRecord.Builder

This builder for chaining.

addDetections(Collection value)

public EventRecord.Builder addDetections(Collection value)

Detections associated with an event.

repeated .google.backstory.Collection detections = 6;

Parameter
Name Description
value Collection
Returns
Type Description
EventRecord.Builder

addDetections(Collection.Builder builderForValue)

public EventRecord.Builder addDetections(Collection.Builder builderForValue)

Detections associated with an event.

repeated .google.backstory.Collection detections = 6;

Parameter
Name Description
builderForValue Collection.Builder
Returns
Type Description
EventRecord.Builder

addDetections(int index, Collection value)

public EventRecord.Builder addDetections(int index, Collection value)

Detections associated with an event.

repeated .google.backstory.Collection detections = 6;

Parameters
Name Description
index int
value Collection
Returns
Type Description
EventRecord.Builder

addDetections(int index, Collection.Builder builderForValue)

public EventRecord.Builder addDetections(int index, Collection.Builder builderForValue)

Detections associated with an event.

repeated .google.backstory.Collection detections = 6;

Parameters
Name Description
index int
builderForValue Collection.Builder
Returns
Type Description
EventRecord.Builder

addDetectionsBuilder()

public Collection.Builder addDetectionsBuilder()

Detections associated with an event.

repeated .google.backstory.Collection detections = 6;

Returns
Type Description
Collection.Builder

addDetectionsBuilder(int index)

public Collection.Builder addDetectionsBuilder(int index)

Detections associated with an event.

repeated .google.backstory.Collection detections = 6;

Parameter
Name Description
index int
Returns
Type Description
Collection.Builder

build()

public EventRecord build()
Returns
Type Description
EventRecord

buildPartial()

public EventRecord buildPartial()
Returns
Type Description
EventRecord

clear()

public EventRecord.Builder clear()
Returns
Type Description
EventRecord.Builder
Overrides

clearAlertNumber()

public EventRecord.Builder clearAlertNumber()

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

int32 alert_number = 3;

Returns
Type Description
EventRecord.Builder

This builder for chaining.

clearAlertViewId()

public EventRecord.Builder clearAlertViewId()

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

bytes alert_view_id = 4;

Returns
Type Description
EventRecord.Builder

This builder for chaining.

clearAnnotations()

public EventRecord.Builder clearAnnotations()

Annotations added to an event.

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

Returns
Type Description
EventRecord.Builder

This builder for chaining.

clearDetections()

public EventRecord.Builder clearDetections()

Detections associated with an event.

repeated .google.backstory.Collection detections = 6;

Returns
Type Description
EventRecord.Builder

clearEvent()

public EventRecord.Builder clearEvent()

The UDM Event.

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

Returns
Type Description
EventRecord.Builder

clearEventLogToken()

public EventRecord.Builder clearEventLogToken()

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
EventRecord.Builder

This builder for chaining.

clearTable()

public EventRecord.Builder clearTable()

User defined table name for the event in joins query.

string table = 7;

Returns
Type Description
EventRecord.Builder

This builder for chaining.

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

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
Overrides

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

getDetectionsBuilder(int index)

public Collection.Builder getDetectionsBuilder(int index)

Detections associated with an event.

repeated .google.backstory.Collection detections = 6;

Parameter
Name Description
index int
Returns
Type Description
Collection.Builder

getDetectionsBuilderList()

public List<Collection.Builder> getDetectionsBuilderList()

Detections associated with an event.

repeated .google.backstory.Collection detections = 6;

Returns
Type Description
List<Builder>

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.

getEventBuilder()

public Event.Builder getEventBuilder()

The UDM Event.

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

Returns
Type Description
Event.Builder

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

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.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeEvent(Event value)

public EventRecord.Builder mergeEvent(Event value)

The UDM Event.

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

Parameter
Name Description
value Event
Returns
Type Description
EventRecord.Builder

mergeFrom(EventRecord other)

public EventRecord.Builder mergeFrom(EventRecord other)
Parameter
Name Description
other EventRecord
Returns
Type Description
EventRecord.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public EventRecord.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
EventRecord.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

public EventRecord.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
EventRecord.Builder
Overrides

removeDetections(int index)

public EventRecord.Builder removeDetections(int index)

Detections associated with an event.

repeated .google.backstory.Collection detections = 6;

Parameter
Name Description
index int
Returns
Type Description
EventRecord.Builder

setAlertNumber(int value)

public EventRecord.Builder setAlertNumber(int value)

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

int32 alert_number = 3;

Parameter
Name Description
value int

The alertNumber to set.

Returns
Type Description
EventRecord.Builder

This builder for chaining.

setAlertViewId(ByteString value)

public EventRecord.Builder setAlertViewId(ByteString value)

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

bytes alert_view_id = 4;

Parameter
Name Description
value ByteString

The alertViewId to set.

Returns
Type Description
EventRecord.Builder

This builder for chaining.

setAnnotations(int index, EventRecord.Annotation value)

public EventRecord.Builder setAnnotations(int index, EventRecord.Annotation value)

Annotations added to an event.

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

Parameters
Name Description
index int

The index to set the value at.

value EventRecord.Annotation

The annotations to set.

Returns
Type Description
EventRecord.Builder

This builder for chaining.

setAnnotationsValue(int index, int value)

public EventRecord.Builder setAnnotationsValue(int index, int value)

Annotations added to an event.

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

Parameters
Name Description
index int

The index to set the value at.

value int

The enum numeric value on the wire for annotations to set.

Returns
Type Description
EventRecord.Builder

This builder for chaining.

setDetections(int index, Collection value)

public EventRecord.Builder setDetections(int index, Collection value)

Detections associated with an event.

repeated .google.backstory.Collection detections = 6;

Parameters
Name Description
index int
value Collection
Returns
Type Description
EventRecord.Builder

setDetections(int index, Collection.Builder builderForValue)

public EventRecord.Builder setDetections(int index, Collection.Builder builderForValue)

Detections associated with an event.

repeated .google.backstory.Collection detections = 6;

Parameters
Name Description
index int
builderForValue Collection.Builder
Returns
Type Description
EventRecord.Builder

setEvent(Event value)

public EventRecord.Builder setEvent(Event value)

The UDM Event.

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

Parameter
Name Description
value Event
Returns
Type Description
EventRecord.Builder

setEvent(Event.Builder builderForValue)

public EventRecord.Builder setEvent(Event.Builder builderForValue)

The UDM Event.

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

Parameter
Name Description
builderForValue Event.Builder
Returns
Type Description
EventRecord.Builder

setEventLogToken(ByteString value)

public EventRecord.Builder setEventLogToken(ByteString value)

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;

Parameter
Name Description
value ByteString

The eventLogToken to set.

Returns
Type Description
EventRecord.Builder

This builder for chaining.

setTable(String value)

public EventRecord.Builder setTable(String value)

User defined table name for the event in joins query.

string table = 7;

Parameter
Name Description
value String

The table to set.

Returns
Type Description
EventRecord.Builder

This builder for chaining.

setTableBytes(ByteString value)

public EventRecord.Builder setTableBytes(ByteString value)

User defined table name for the event in joins query.

string table = 7;

Parameter
Name Description
value ByteString

The bytes for table to set.

Returns
Type Description
EventRecord.Builder

This builder for chaining.