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
Inherited Members
com.google.protobuf.GeneratedMessage.<ContainingT,T>newFileScopedGeneratedExtension(java.lang.Class<?>,com.google.protobuf.Message)
com.google.protobuf.GeneratedMessage.<ContainingT,T>newMessageScopedGeneratedExtension(com.google.protobuf.Message,int,java.lang.Class<?>,com.google.protobuf.Message)
com.google.protobuf.GeneratedMessage.<ListT>makeMutableCopy(ListT)
com.google.protobuf.GeneratedMessage.<ListT>makeMutableCopy(ListT,int)
com.google.protobuf.GeneratedMessage.<T>emptyList(java.lang.Class<T>)
com.google.protobuf.GeneratedMessage.<V>serializeBooleanMapTo(com.google.protobuf.CodedOutputStream,com.google.protobuf.MapField<java.lang.Boolean,V>,com.google.protobuf.MapEntry<java.lang.Boolean,V>,int)
com.google.protobuf.GeneratedMessage.<V>serializeIntegerMapTo(com.google.protobuf.CodedOutputStream,com.google.protobuf.MapField<java.lang.Integer,V>,com.google.protobuf.MapEntry<java.lang.Integer,V>,int)
com.google.protobuf.GeneratedMessage.<V>serializeLongMapTo(com.google.protobuf.CodedOutputStream,com.google.protobuf.MapField<java.lang.Long,V>,com.google.protobuf.MapEntry<java.lang.Long,V>,int)
com.google.protobuf.GeneratedMessage.<V>serializeStringMapTo(com.google.protobuf.CodedOutputStream,com.google.protobuf.MapField<java.lang.String,V>,com.google.protobuf.MapEntry<java.lang.String,V>,int)
com.google.protobuf.GeneratedMessage.canUseUnsafe()
com.google.protobuf.GeneratedMessage.emptyBooleanList()
com.google.protobuf.GeneratedMessage.emptyDoubleList()
com.google.protobuf.GeneratedMessage.emptyFloatList()
com.google.protobuf.GeneratedMessage.emptyIntList()
com.google.protobuf.GeneratedMessage.emptyLongList()
com.google.protobuf.GeneratedMessage.internalGetMapFieldReflection(int)
com.google.protobuf.GeneratedMessage.isStringEmpty(java.lang.Object)
com.google.protobuf.GeneratedMessage.mergeFromAndMakeImmutableInternal(com.google.protobuf.CodedInputStream,com.google.protobuf.ExtensionRegistryLite)
com.google.protobuf.GeneratedMessage.newInstance(com.google.protobuf.GeneratedMessage.UnusedPrivateParameter)
com.google.protobuf.GeneratedMessage.parseUnknownFieldProto3(com.google.protobuf.CodedInputStream,com.google.protobuf.UnknownFieldSet.Builder,com.google.protobuf.ExtensionRegistryLite,int)
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()
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
newBuilder()
public static Reference.Builder newBuilder()
newBuilder(Reference prototype)
public static Reference.Builder newBuilder(Reference prototype)
| Parameter |
| Name |
Description |
prototype |
Reference
|
parseDelimitedFrom(InputStream input)
public static Reference parseDelimitedFrom(InputStream input)
parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
public static Reference parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
parseFrom(byte[] data)
public static Reference parseFrom(byte[] data)
| Parameter |
| Name |
Description |
data |
byte[]
|
parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
public static Reference parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
parseFrom(ByteString data)
public static Reference parseFrom(ByteString data)
parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
public static Reference parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
parseFrom(CodedInputStream input)
public static Reference parseFrom(CodedInputStream input)
parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public static Reference parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
parseFrom(InputStream input)
public static Reference parseFrom(InputStream input)
parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
public static Reference parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
parseFrom(ByteBuffer data)
public static Reference parseFrom(ByteBuffer data)
parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
public static Reference parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
parser()
public static Parser<Reference> parser()
Methods
equals(Object obj)
public boolean equals(Object obj)
| Parameter |
| Name |
Description |
obj |
Object
|
Overrides
getDefaultInstanceForType()
public Reference getDefaultInstanceForType()
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;
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;
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;
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;
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;
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
|
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;
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
|
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()
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()
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()
| Returns |
| Type |
Description |
int |
|
Overrides
internalGetFieldAccessorTable()
protected GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
Overrides
isInitialized()
public final boolean isInitialized()
Overrides
newBuilderForType()
public Reference.Builder newBuilderForType()
newBuilderForType(AbstractMessage.BuilderParent parent)
protected Reference.Builder newBuilderForType(AbstractMessage.BuilderParent parent)
Overrides
toBuilder()
public Reference.Builder toBuilder()
writeTo(CodedOutputStream output)
public void writeTo(CodedOutputStream output)
Overrides