Class Reference (0.3.0)

public final class Reference extends GeneratedMessage implements ReferenceOrBuilder

Reference to model primatives including event and entity. As support is added for fast retrieval of objects by identifiers, this will be expanded to include ID references rather than full object copies.

Protobuf type google.backstory.Reference

Implements

ReferenceOrBuilder

Static Fields

ENTITY_FIELD_NUMBER

public static final int ENTITY_FIELD_NUMBER
Field Value
Type Description
int

EVENT_FIELD_NUMBER

public static final int EVENT_FIELD_NUMBER
Field Value
Type Description
int

GRAPH_ENRICHMENT_FIELD_NUMBER

public static final int GRAPH_ENRICHMENT_FIELD_NUMBER
Field Value
Type Description
int

ID_FIELD_NUMBER

public static final int ID_FIELD_NUMBER
Field Value
Type Description
int

JOINED_DATA_TABLE_ROWS_FIELD_NUMBER

public static final int JOINED_DATA_TABLE_ROWS_FIELD_NUMBER
Field Value
Type Description
int

LOG_BATCH_TOKEN_FIELD_NUMBER

public static final int LOG_BATCH_TOKEN_FIELD_NUMBER
Field Value
Type Description
int

Static Methods

getDefaultInstance()

public static Reference getDefaultInstance()
Returns
Type Description
Reference

getDescriptor()

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

newBuilder()

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

newBuilder(Reference prototype)

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

parseDelimitedFrom(InputStream input)

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

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(byte[] data)

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

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteString data)

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

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(CodedInputStream input)

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

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(InputStream input)

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

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteBuffer data)

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

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

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

parser()

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

Methods

equals(Object obj)

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

getDefaultInstanceForType()

public Reference getDefaultInstanceForType()
Returns
Type Description
Reference

getEntity()

public Entity getEntity()

Entity being referenced. In cases where the entity graph is overridden by data table, this will represent the original entity. End one-of

.google.backstory.Entity entity = 2;

Returns
Type Description
Entity

The entity.

getEntityOrBuilder()

public EntityOrBuilder getEntityOrBuilder()

Entity being referenced. In cases where the entity graph is overridden by data table, this will represent the original entity. End one-of

.google.backstory.Entity entity = 2;

Returns
Type Description
EntityOrBuilder

getEvent()

public UDM getEvent()

Only one of event or entity will be populated for a single reference. Start one-of Event being referenced.

.google.backstory.UDM event = 1;

Returns
Type Description
UDM

The event.

getEventOrBuilder()

public UDMOrBuilder getEventOrBuilder()

Only one of event or entity will be populated for a single reference. Start one-of Event being referenced.

.google.backstory.UDM event = 1;

Returns
Type Description
UDMOrBuilder

getGraphEnrichment()

public EntityGraphEnrichment getGraphEnrichment()

The entity graph enrichment details. Only set when the reference is an Entity which has been overridden by a data table or appended from a data table.

.google.backstory.EntityGraphEnrichment graph_enrichment = 5;

Returns
Type Description
EntityGraphEnrichment

The graphEnrichment.

getGraphEnrichmentOrBuilder()

public EntityGraphEnrichmentOrBuilder getGraphEnrichmentOrBuilder()

The entity graph enrichment details. Only set when the reference is an Entity which has been overridden by a data table or appended from a data table.

.google.backstory.EntityGraphEnrichment graph_enrichment = 5;

Returns
Type Description
EntityGraphEnrichmentOrBuilder

getId()

public Id getId()

Id being referenced. This field will also be populated for both event and entity with the event id. For detections, only this field will be populated.

.google.backstory.Id id = 3;

Returns
Type Description
Id

The id.

getIdOrBuilder()

public IdOrBuilder getIdOrBuilder()

Id being referenced. This field will also be populated for both event and entity with the event id. For detections, only this field will be populated.

.google.backstory.Id id = 3;

Returns
Type Description
IdOrBuilder

getJoinedDataTableRows(int index)

public DataTableRowInfo getJoinedDataTableRows(int index)

The data table rows joined with the event.

repeated .google.backstory.DataTableRowInfo joined_data_table_rows = 4;

Parameter
Name Description
index int
Returns
Type Description
DataTableRowInfo

getJoinedDataTableRowsCount()

public int getJoinedDataTableRowsCount()

The data table rows joined with the event.

repeated .google.backstory.DataTableRowInfo joined_data_table_rows = 4;

Returns
Type Description
int

getJoinedDataTableRowsList()

public List<DataTableRowInfo> getJoinedDataTableRowsList()

The data table rows joined with the event.

repeated .google.backstory.DataTableRowInfo joined_data_table_rows = 4;

Returns
Type Description
List<DataTableRowInfo>

getJoinedDataTableRowsOrBuilder(int index)

public DataTableRowInfoOrBuilder getJoinedDataTableRowsOrBuilder(int index)

The data table rows joined with the event.

repeated .google.backstory.DataTableRowInfo joined_data_table_rows = 4;

Parameter
Name Description
index int
Returns
Type Description
DataTableRowInfoOrBuilder

getJoinedDataTableRowsOrBuilderList()

public List<? extends DataTableRowInfoOrBuilder> getJoinedDataTableRowsOrBuilderList()

The data table rows joined with the event.

repeated .google.backstory.DataTableRowInfo joined_data_table_rows = 4;

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

getLogBatchToken()

public String getLogBatchToken()

The log batch token of the event being referenced. This field is used to fetch the raw log associated with the event in some legacy systems. This field is only populated for events/entities.

string log_batch_token = 6;

Returns
Type Description
String

The logBatchToken.

getLogBatchTokenBytes()

public ByteString getLogBatchTokenBytes()

The log batch token of the event being referenced. This field is used to fetch the raw log associated with the event in some legacy systems. This field is only populated for events/entities.

string log_batch_token = 6;

Returns
Type Description
ByteString

The bytes for logBatchToken.

getParserForType()

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

getSerializedSize()

public int getSerializedSize()
Returns
Type Description
int
Overrides

hasEntity()

public boolean hasEntity()

Entity being referenced. In cases where the entity graph is overridden by data table, this will represent the original entity. End one-of

.google.backstory.Entity entity = 2;

Returns
Type Description
boolean

Whether the entity field is set.

hasEvent()

public boolean hasEvent()

Only one of event or entity will be populated for a single reference. Start one-of Event being referenced.

.google.backstory.UDM event = 1;

Returns
Type Description
boolean

Whether the event field is set.

hasGraphEnrichment()

public boolean hasGraphEnrichment()

The entity graph enrichment details. Only set when the reference is an Entity which has been overridden by a data table or appended from a data table.

.google.backstory.EntityGraphEnrichment graph_enrichment = 5;

Returns
Type Description
boolean

Whether the graphEnrichment field is set.

hasId()

public boolean hasId()

Id being referenced. This field will also be populated for both event and entity with the event id. For detections, only this field will be populated.

.google.backstory.Id id = 3;

Returns
Type Description
boolean

Whether the id 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 Reference.Builder newBuilderForType()
Returns
Type Description
Reference.Builder

newBuilderForType(AbstractMessage.BuilderParent parent)

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

toBuilder()

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

writeTo(CodedOutputStream output)

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