Interface CustomConfigOrBuilder (0.16.0)

public interface CustomConfigOrBuilder extends MessageOrBuilder

Implements

MessageOrBuilder

Methods

getCustomOutput()

public abstract CustomConfig.CustomOutputSpec getCustomOutput()

Optional. Custom output properties.

.google.cloud.securityposture.v1.CustomConfig.CustomOutputSpec custom_output = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
CustomConfig.CustomOutputSpec

The customOutput.

getCustomOutputOrBuilder()

public abstract CustomConfig.CustomOutputSpecOrBuilder getCustomOutputOrBuilder()

Optional. Custom output properties.

.google.cloud.securityposture.v1.CustomConfig.CustomOutputSpec custom_output = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
CustomConfig.CustomOutputSpecOrBuilder

getDescription()

public abstract String getDescription()

Optional. Text that describes the vulnerability or misconfiguration that the custom module detects. This explanation is returned with each finding instance to help investigators understand the detected issue. The text must be enclosed in quotation marks.

string description = 5 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
String

The description.

getDescriptionBytes()

public abstract ByteString getDescriptionBytes()

Optional. Text that describes the vulnerability or misconfiguration that the custom module detects. This explanation is returned with each finding instance to help investigators understand the detected issue. The text must be enclosed in quotation marks.

string description = 5 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
ByteString

The bytes for description.

getPredicate()

public abstract Expr getPredicate()

Required. The CEL expression to evaluate to produce findings. When the expression evaluates to true against a resource, a finding is generated.

.google.type.Expr predicate = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
com.google.type.Expr

The predicate.

getPredicateOrBuilder()

public abstract ExprOrBuilder getPredicateOrBuilder()

Required. The CEL expression to evaluate to produce findings. When the expression evaluates to true against a resource, a finding is generated.

.google.type.Expr predicate = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
com.google.type.ExprOrBuilder

getRecommendation()

public abstract String getRecommendation()

Optional. An explanation of the recommended steps that security teams can take to resolve the detected issue. This explanation is returned with each finding generated by this module in the nextSteps property of the finding JSON.

string recommendation = 6 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
String

The recommendation.

getRecommendationBytes()

public abstract ByteString getRecommendationBytes()

Optional. An explanation of the recommended steps that security teams can take to resolve the detected issue. This explanation is returned with each finding generated by this module in the nextSteps property of the finding JSON.

string recommendation = 6 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
ByteString

The bytes for recommendation.

getResourceSelector()

public abstract CustomConfig.ResourceSelector getResourceSelector()

Required. The resource types that the custom module operates on. Each custom module can specify up to 5 resource types.

.google.cloud.securityposture.v1.CustomConfig.ResourceSelector resource_selector = 3 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
CustomConfig.ResourceSelector

The resourceSelector.

getResourceSelectorOrBuilder()

public abstract CustomConfig.ResourceSelectorOrBuilder getResourceSelectorOrBuilder()

Required. The resource types that the custom module operates on. Each custom module can specify up to 5 resource types.

.google.cloud.securityposture.v1.CustomConfig.ResourceSelector resource_selector = 3 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
CustomConfig.ResourceSelectorOrBuilder

getSeverity()

public abstract CustomConfig.Severity getSeverity()

Required. The severity to assign to findings generated by the module.

.google.cloud.securityposture.v1.CustomConfig.Severity severity = 4 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
CustomConfig.Severity

The severity.

getSeverityValue()

public abstract int getSeverityValue()

Required. The severity to assign to findings generated by the module.

.google.cloud.securityposture.v1.CustomConfig.Severity severity = 4 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
int

The enum numeric value on the wire for severity.

hasCustomOutput()

public abstract boolean hasCustomOutput()

Optional. Custom output properties.

.google.cloud.securityposture.v1.CustomConfig.CustomOutputSpec custom_output = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
boolean

Whether the customOutput field is set.

hasPredicate()

public abstract boolean hasPredicate()

Required. The CEL expression to evaluate to produce findings. When the expression evaluates to true against a resource, a finding is generated.

.google.type.Expr predicate = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
boolean

Whether the predicate field is set.

hasResourceSelector()

public abstract boolean hasResourceSelector()

Required. The resource types that the custom module operates on. Each custom module can specify up to 5 resource types.

.google.cloud.securityposture.v1.CustomConfig.ResourceSelector resource_selector = 3 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
boolean

Whether the resourceSelector field is set.