Class DetectorReference (2.103.0)

public final class DetectorReference extends GeneratedMessage implements DetectorReferenceOrBuilder

Represents a reference to a specific anomaly detector.

Protobuf type google.cloud.securitycenter.v2.DetectorReference

Static Fields

DETECTOR_ID_FIELD_NUMBER

public static final int DETECTOR_ID_FIELD_NUMBER
Field Value
Type Description
int

DISPLAY_NAME_FIELD_NUMBER

public static final int DISPLAY_NAME_FIELD_NUMBER
Field Value
Type Description
int

EXPLANATION_FIELD_NUMBER

public static final int EXPLANATION_FIELD_NUMBER
Field Value
Type Description
int

RECOMMENDATION_FIELD_NUMBER

public static final int RECOMMENDATION_FIELD_NUMBER
Field Value
Type Description
int

SEVERITY_FIELD_NUMBER

public static final int SEVERITY_FIELD_NUMBER
Field Value
Type Description
int

Static Methods

getDefaultInstance()

public static DetectorReference getDefaultInstance()
Returns
Type Description
DetectorReference

getDescriptor()

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

newBuilder()

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

newBuilder(DetectorReference prototype)

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

parseDelimitedFrom(InputStream input)

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

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(byte[] data)

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

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteString data)

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

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(CodedInputStream input)

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

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(InputStream input)

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

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteBuffer data)

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

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

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

parser()

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

Methods

equals(Object obj)

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

getDefaultInstanceForType()

public DetectorReference getDefaultInstanceForType()
Returns
Type Description
DetectorReference

getDetectorId()

public String getDetectorId()

The unique identifier of the detector.

string detector_id = 2;

Returns
Type Description
String

The detectorId.

getDetectorIdBytes()

public ByteString getDetectorIdBytes()

The unique identifier of the detector.

string detector_id = 2;

Returns
Type Description
ByteString

The bytes for detectorId.

getDisplayName()

public String getDisplayName()

A human readable name for the detector, providing context on its purpose. For example, "ASI02: Tool Misuse", or "Excessive API Calls".

string display_name = 3;

Returns
Type Description
String

The displayName.

getDisplayNameBytes()

public ByteString getDisplayNameBytes()

A human readable name for the detector, providing context on its purpose. For example, "ASI02: Tool Misuse", or "Excessive API Calls".

string display_name = 3;

Returns
Type Description
ByteString

The bytes for displayName.

getExplanation()

public String getExplanation()

A detailed explanation generated by an LLM or the detector itself, describing why this specific anomaly was flagged. This provides rationale and context for the detection.

string explanation = 4;

Returns
Type Description
String

The explanation.

getExplanationBytes()

public ByteString getExplanationBytes()

A detailed explanation generated by an LLM or the detector itself, describing why this specific anomaly was flagged. This provides rationale and context for the detection.

string explanation = 4;

Returns
Type Description
ByteString

The bytes for explanation.

getParserForType()

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

getRecommendation()

public String getRecommendation()

Recommended steps or actions to remediate or investigate the anomaly flagged by this detector. These could include configuration changes, code adjustments, or further diagnostic procedures.

string recommendation = 5;

Returns
Type Description
String

The recommendation.

getRecommendationBytes()

public ByteString getRecommendationBytes()

Recommended steps or actions to remediate or investigate the anomaly flagged by this detector. These could include configuration changes, code adjustments, or further diagnostic procedures.

string recommendation = 5;

Returns
Type Description
ByteString

The bytes for recommendation.

getSerializedSize()

public int getSerializedSize()
Returns
Type Description
int
Overrides

getSeverity()

public DetectorReference.Severity getSeverity()

The severity of the detector.

.google.cloud.securitycenter.v2.DetectorReference.Severity severity = 1;

Returns
Type Description
DetectorReference.Severity

The severity.

getSeverityValue()

public int getSeverityValue()

The severity of the detector.

.google.cloud.securitycenter.v2.DetectorReference.Severity severity = 1;

Returns
Type Description
int

The enum numeric value on the wire for severity.

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 DetectorReference.Builder newBuilderForType()
Returns
Type Description
DetectorReference.Builder

newBuilderForType(AbstractMessage.BuilderParent parent)

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

toBuilder()

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

writeTo(CodedOutputStream output)

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