Class Element (0.3.0)

public final class Element extends GeneratedMessage implements ElementOrBuilder

Protobuf type google.backstory.Element

Implements

ElementOrBuilder

Static Fields

ASSOCIATION_FIELD_NUMBER

public static final int ASSOCIATION_FIELD_NUMBER
Field Value
Type Description
int

LABEL_FIELD_NUMBER

public static final int LABEL_FIELD_NUMBER
Field Value
Type Description
int

LATENCY_METRICS_FIELD_NUMBER

public static final int LATENCY_METRICS_FIELD_NUMBER
Field Value
Type Description
int

REFERENCES_FIELD_NUMBER

public static final int REFERENCES_FIELD_NUMBER
Field Value
Type Description
int

REFERENCES_SAMPLED_FIELD_NUMBER

public static final int REFERENCES_SAMPLED_FIELD_NUMBER
Field Value
Type Description
int

Static Methods

getDefaultInstance()

public static Element getDefaultInstance()
Returns
Type Description
Element

getDescriptor()

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

newBuilder()

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

newBuilder(Element prototype)

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

parseDelimitedFrom(InputStream input)

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

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(byte[] data)

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

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteString data)

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

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(CodedInputStream input)

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

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(InputStream input)

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

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteBuffer data)

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

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

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

parser()

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

Methods

equals(Object obj)

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

getAssociation()

public SecurityResult getAssociation()

Metadata that provides the relevant association for the references in the element. For a detection, this can be the correlated aspect of the references that contributed to the overall detection. For example, may include sub-rule condition, machine learning model metadata, and/or indicators implicated in this component of the detection (using the .about field).

.google.backstory.SecurityResult association = 1;

Returns
Type Description
SecurityResult

The association.

getAssociationOrBuilder()

public SecurityResultOrBuilder getAssociationOrBuilder()

Metadata that provides the relevant association for the references in the element. For a detection, this can be the correlated aspect of the references that contributed to the overall detection. For example, may include sub-rule condition, machine learning model metadata, and/or indicators implicated in this component of the detection (using the .about field).

.google.backstory.SecurityResult association = 1;

Returns
Type Description
SecurityResultOrBuilder

getDefaultInstanceForType()

public Element getDefaultInstanceForType()
Returns
Type Description
Element

getLabel()

public String getLabel()

A name that labels the entire references group.

string label = 3;

Returns
Type Description
String

The label.

getLabelBytes()

public ByteString getLabelBytes()

A name that labels the entire references group.

string label = 3;

Returns
Type Description
ByteString

The bytes for label.

getLatencyMetrics()

public LatencyMetrics getLatencyMetrics()

Latency metrics for the specific element. These are calculated from all the contributing events or entities for a single event variable, not just the sampled ones included in references. This is currently only populated for UDM events.

.google.backstory.LatencyMetrics latency_metrics = 5;

Returns
Type Description
LatencyMetrics

The latencyMetrics.

getLatencyMetricsOrBuilder()

public LatencyMetricsOrBuilder getLatencyMetricsOrBuilder()

Latency metrics for the specific element. These are calculated from all the contributing events or entities for a single event variable, not just the sampled ones included in references. This is currently only populated for UDM events.

.google.backstory.LatencyMetrics latency_metrics = 5;

Returns
Type Description
LatencyMetricsOrBuilder

getParserForType()

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

getReferences(int index)

public Reference getReferences(int index)

References to model primatives including events and entities that share a common association. Even though a reference can have both UDM and entity, a collection of references (of a single element) will only have one type of message in it (either UDM / Entity).

repeated .google.backstory.Reference references = 2;

Parameter
Name Description
index int
Returns
Type Description
Reference

getReferencesCount()

public int getReferencesCount()

References to model primatives including events and entities that share a common association. Even though a reference can have both UDM and entity, a collection of references (of a single element) will only have one type of message in it (either UDM / Entity).

repeated .google.backstory.Reference references = 2;

Returns
Type Description
int

getReferencesList()

public List<Reference> getReferencesList()

References to model primatives including events and entities that share a common association. Even though a reference can have both UDM and entity, a collection of references (of a single element) will only have one type of message in it (either UDM / Entity).

repeated .google.backstory.Reference references = 2;

Returns
Type Description
List<Reference>

getReferencesOrBuilder(int index)

public ReferenceOrBuilder getReferencesOrBuilder(int index)

References to model primatives including events and entities that share a common association. Even though a reference can have both UDM and entity, a collection of references (of a single element) will only have one type of message in it (either UDM / Entity).

repeated .google.backstory.Reference references = 2;

Parameter
Name Description
index int
Returns
Type Description
ReferenceOrBuilder

getReferencesOrBuilderList()

public List<? extends ReferenceOrBuilder> getReferencesOrBuilderList()

References to model primatives including events and entities that share a common association. Even though a reference can have both UDM and entity, a collection of references (of a single element) will only have one type of message in it (either UDM / Entity).

repeated .google.backstory.Reference references = 2;

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

getReferencesSampled()

public boolean getReferencesSampled()

Copied from the detection event_sample.too_many_event_samples field. If true, the number of references will be capped at the sample limit (set at rule service). This is applicable to both UDM references and Entity references.

bool references_sampled = 4;

Returns
Type Description
boolean

The referencesSampled.

getSerializedSize()

public int getSerializedSize()
Returns
Type Description
int
Overrides

hasAssociation()

public boolean hasAssociation()

Metadata that provides the relevant association for the references in the element. For a detection, this can be the correlated aspect of the references that contributed to the overall detection. For example, may include sub-rule condition, machine learning model metadata, and/or indicators implicated in this component of the detection (using the .about field).

.google.backstory.SecurityResult association = 1;

Returns
Type Description
boolean

Whether the association field is set.

hasLatencyMetrics()

public boolean hasLatencyMetrics()

Latency metrics for the specific element. These are calculated from all the contributing events or entities for a single event variable, not just the sampled ones included in references. This is currently only populated for UDM events.

.google.backstory.LatencyMetrics latency_metrics = 5;

Returns
Type Description
boolean

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

newBuilderForType(AbstractMessage.BuilderParent parent)

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

toBuilder()

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

writeTo(CodedOutputStream output)

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