public static final class DetectorReference.Builder extends GeneratedMessage.Builder<DetectorReference.Builder> implements DetectorReferenceOrBuilderRepresents a reference to a specific anomaly detector.
Protobuf type google.cloud.securitycenter.v2.DetectorReference
Inheritance
java.lang.Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessage.Builder > DetectorReference.BuilderImplements
DetectorReferenceOrBuilderStatic Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
Methods
build()
public DetectorReference build()| Returns | |
|---|---|
| Type | Description |
DetectorReference |
|
buildPartial()
public DetectorReference buildPartial()| Returns | |
|---|---|
| Type | Description |
DetectorReference |
|
clear()
public DetectorReference.Builder clear()| Returns | |
|---|---|
| Type | Description |
DetectorReference.Builder |
|
clearDetectorId()
public DetectorReference.Builder clearDetectorId()The unique identifier of the detector.
string detector_id = 2;
| Returns | |
|---|---|
| Type | Description |
DetectorReference.Builder |
This builder for chaining. |
clearDisplayName()
public DetectorReference.Builder clearDisplayName()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 |
DetectorReference.Builder |
This builder for chaining. |
clearExplanation()
public DetectorReference.Builder clearExplanation()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 |
DetectorReference.Builder |
This builder for chaining. |
clearRecommendation()
public DetectorReference.Builder clearRecommendation()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 |
DetectorReference.Builder |
This builder for chaining. |
clearSeverity()
public DetectorReference.Builder clearSeverity()The severity of the detector.
.google.cloud.securitycenter.v2.DetectorReference.Severity severity = 1;
| Returns | |
|---|---|
| Type | Description |
DetectorReference.Builder |
This builder for chaining. |
getDefaultInstanceForType()
public DetectorReference getDefaultInstanceForType()| Returns | |
|---|---|
| Type | Description |
DetectorReference |
|
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
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. |
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. |
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. |
internalGetFieldAccessorTable()
protected GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()| Returns | |
|---|---|
| Type | Description |
FieldAccessorTable |
|
isInitialized()
public final boolean isInitialized()| Returns | |
|---|---|
| Type | Description |
boolean |
|
mergeFrom(DetectorReference other)
public DetectorReference.Builder mergeFrom(DetectorReference other)| Parameter | |
|---|---|
| Name | Description |
other |
DetectorReference |
| Returns | |
|---|---|
| Type | Description |
DetectorReference.Builder |
|
mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public DetectorReference.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)| Parameters | |
|---|---|
| Name | Description |
input |
CodedInputStream |
extensionRegistry |
ExtensionRegistryLite |
| Returns | |
|---|---|
| Type | Description |
DetectorReference.Builder |
|
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|
mergeFrom(Message other)
public DetectorReference.Builder mergeFrom(Message other)| Parameter | |
|---|---|
| Name | Description |
other |
Message |
| Returns | |
|---|---|
| Type | Description |
DetectorReference.Builder |
|
setDetectorId(String value)
public DetectorReference.Builder setDetectorId(String value)The unique identifier of the detector.
string detector_id = 2;
| Parameter | |
|---|---|
| Name | Description |
value |
StringThe detectorId to set. |
| Returns | |
|---|---|
| Type | Description |
DetectorReference.Builder |
This builder for chaining. |
setDetectorIdBytes(ByteString value)
public DetectorReference.Builder setDetectorIdBytes(ByteString value)The unique identifier of the detector.
string detector_id = 2;
| Parameter | |
|---|---|
| Name | Description |
value |
ByteStringThe bytes for detectorId to set. |
| Returns | |
|---|---|
| Type | Description |
DetectorReference.Builder |
This builder for chaining. |
setDisplayName(String value)
public DetectorReference.Builder setDisplayName(String value)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;
| Parameter | |
|---|---|
| Name | Description |
value |
StringThe displayName to set. |
| Returns | |
|---|---|
| Type | Description |
DetectorReference.Builder |
This builder for chaining. |
setDisplayNameBytes(ByteString value)
public DetectorReference.Builder setDisplayNameBytes(ByteString value)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;
| Parameter | |
|---|---|
| Name | Description |
value |
ByteStringThe bytes for displayName to set. |
| Returns | |
|---|---|
| Type | Description |
DetectorReference.Builder |
This builder for chaining. |
setExplanation(String value)
public DetectorReference.Builder setExplanation(String value)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;
| Parameter | |
|---|---|
| Name | Description |
value |
StringThe explanation to set. |
| Returns | |
|---|---|
| Type | Description |
DetectorReference.Builder |
This builder for chaining. |
setExplanationBytes(ByteString value)
public DetectorReference.Builder setExplanationBytes(ByteString value)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;
| Parameter | |
|---|---|
| Name | Description |
value |
ByteStringThe bytes for explanation to set. |
| Returns | |
|---|---|
| Type | Description |
DetectorReference.Builder |
This builder for chaining. |
setRecommendation(String value)
public DetectorReference.Builder setRecommendation(String value)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;
| Parameter | |
|---|---|
| Name | Description |
value |
StringThe recommendation to set. |
| Returns | |
|---|---|
| Type | Description |
DetectorReference.Builder |
This builder for chaining. |
setRecommendationBytes(ByteString value)
public DetectorReference.Builder setRecommendationBytes(ByteString value)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;
| Parameter | |
|---|---|
| Name | Description |
value |
ByteStringThe bytes for recommendation to set. |
| Returns | |
|---|---|
| Type | Description |
DetectorReference.Builder |
This builder for chaining. |
setSeverity(DetectorReference.Severity value)
public DetectorReference.Builder setSeverity(DetectorReference.Severity value)The severity of the detector.
.google.cloud.securitycenter.v2.DetectorReference.Severity severity = 1;
| Parameter | |
|---|---|
| Name | Description |
value |
DetectorReference.SeverityThe severity to set. |
| Returns | |
|---|---|
| Type | Description |
DetectorReference.Builder |
This builder for chaining. |
setSeverityValue(int value)
public DetectorReference.Builder setSeverityValue(int value)The severity of the detector.
.google.cloud.securitycenter.v2.DetectorReference.Severity severity = 1;
| Parameter | |
|---|---|
| Name | Description |
value |
intThe enum numeric value on the wire for severity to set. |
| Returns | |
|---|---|
| Type | Description |
DetectorReference.Builder |
This builder for chaining. |