public static final class CustomConfig.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<CustomConfig.Builder> implements CustomConfigOrBuilder
Defines the properties in a custom module configuration for Security Health Analytics. Use the custom module configuration to create custom detectors that generate custom findings for resources that you specify.Protobuf type
google.cloud.securitycenter.v1.CustomConfig| Modifier and Type | Method and Description |
|---|---|
CustomConfig.Builder |
addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) |
CustomConfig |
build() |
CustomConfig |
buildPartial() |
CustomConfig.Builder |
clear() |
CustomConfig.Builder |
clearCustomOutput()
Custom output properties.
|
CustomConfig.Builder |
clearDescription()
Text that describes the vulnerability or misconfiguration that the custom
module detects.
|
CustomConfig.Builder |
clearField(com.google.protobuf.Descriptors.FieldDescriptor field) |
CustomConfig.Builder |
clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) |
CustomConfig.Builder |
clearPredicate()
The CEL expression to evaluate to produce findings.
|
CustomConfig.Builder |
clearRecommendation()
An explanation of the recommended steps that security teams can take to
resolve the detected issue.
|
CustomConfig.Builder |
clearResourceSelector()
The resource types that the custom module operates on.
|
CustomConfig.Builder |
clearSeverity()
The severity to assign to findings generated by the module.
|
CustomConfig.Builder |
clone() |
CustomConfig.CustomOutputSpec |
getCustomOutput()
Custom output properties.
|
CustomConfig.CustomOutputSpec.Builder |
getCustomOutputBuilder()
Custom output properties.
|
CustomConfig.CustomOutputSpecOrBuilder |
getCustomOutputOrBuilder()
Custom output properties.
|
CustomConfig |
getDefaultInstanceForType() |
String |
getDescription()
Text that describes the vulnerability or misconfiguration that the custom
module detects.
|
com.google.protobuf.ByteString |
getDescriptionBytes()
Text that describes the vulnerability or misconfiguration that the custom
module detects.
|
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
com.google.protobuf.Descriptors.Descriptor |
getDescriptorForType() |
com.google.type.Expr |
getPredicate()
The CEL expression to evaluate to produce findings.
|
com.google.type.Expr.Builder |
getPredicateBuilder()
The CEL expression to evaluate to produce findings.
|
com.google.type.ExprOrBuilder |
getPredicateOrBuilder()
The CEL expression to evaluate to produce findings.
|
String |
getRecommendation()
An explanation of the recommended steps that security teams can take to
resolve the detected issue.
|
com.google.protobuf.ByteString |
getRecommendationBytes()
An explanation of the recommended steps that security teams can take to
resolve the detected issue.
|
CustomConfig.ResourceSelector |
getResourceSelector()
The resource types that the custom module operates on.
|
CustomConfig.ResourceSelector.Builder |
getResourceSelectorBuilder()
The resource types that the custom module operates on.
|
CustomConfig.ResourceSelectorOrBuilder |
getResourceSelectorOrBuilder()
The resource types that the custom module operates on.
|
CustomConfig.Severity |
getSeverity()
The severity to assign to findings generated by the module.
|
int |
getSeverityValue()
The severity to assign to findings generated by the module.
|
boolean |
hasCustomOutput()
Custom output properties.
|
boolean |
hasPredicate()
The CEL expression to evaluate to produce findings.
|
boolean |
hasResourceSelector()
The resource types that the custom module operates on.
|
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable |
internalGetFieldAccessorTable() |
boolean |
isInitialized() |
CustomConfig.Builder |
mergeCustomOutput(CustomConfig.CustomOutputSpec value)
Custom output properties.
|
CustomConfig.Builder |
mergeFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
CustomConfig.Builder |
mergeFrom(CustomConfig other) |
CustomConfig.Builder |
mergeFrom(com.google.protobuf.Message other) |
CustomConfig.Builder |
mergePredicate(com.google.type.Expr value)
The CEL expression to evaluate to produce findings.
|
CustomConfig.Builder |
mergeResourceSelector(CustomConfig.ResourceSelector value)
The resource types that the custom module operates on.
|
CustomConfig.Builder |
mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
CustomConfig.Builder |
setCustomOutput(CustomConfig.CustomOutputSpec.Builder builderForValue)
Custom output properties.
|
CustomConfig.Builder |
setCustomOutput(CustomConfig.CustomOutputSpec value)
Custom output properties.
|
CustomConfig.Builder |
setDescription(String value)
Text that describes the vulnerability or misconfiguration that the custom
module detects.
|
CustomConfig.Builder |
setDescriptionBytes(com.google.protobuf.ByteString value)
Text that describes the vulnerability or misconfiguration that the custom
module detects.
|
CustomConfig.Builder |
setField(com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) |
CustomConfig.Builder |
setPredicate(com.google.type.Expr.Builder builderForValue)
The CEL expression to evaluate to produce findings.
|
CustomConfig.Builder |
setPredicate(com.google.type.Expr value)
The CEL expression to evaluate to produce findings.
|
CustomConfig.Builder |
setRecommendation(String value)
An explanation of the recommended steps that security teams can take to
resolve the detected issue.
|
CustomConfig.Builder |
setRecommendationBytes(com.google.protobuf.ByteString value)
An explanation of the recommended steps that security teams can take to
resolve the detected issue.
|
CustomConfig.Builder |
setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
int index,
Object value) |
CustomConfig.Builder |
setResourceSelector(CustomConfig.ResourceSelector.Builder builderForValue)
The resource types that the custom module operates on.
|
CustomConfig.Builder |
setResourceSelector(CustomConfig.ResourceSelector value)
The resource types that the custom module operates on.
|
CustomConfig.Builder |
setSeverity(CustomConfig.Severity value)
The severity to assign to findings generated by the module.
|
CustomConfig.Builder |
setSeverityValue(int value)
The severity to assign to findings generated by the module.
|
CustomConfig.Builder |
setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setUnknownFieldSetBuilder, setUnknownFieldsProto3findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringaddAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, newUninitializedMessageExceptionequals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitpublic static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3.Builder<CustomConfig.Builder>public CustomConfig.Builder clear()
clear in interface com.google.protobuf.Message.Builderclear in interface com.google.protobuf.MessageLite.Builderclear in class com.google.protobuf.GeneratedMessageV3.Builder<CustomConfig.Builder>public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
getDescriptorForType in interface com.google.protobuf.Message.BuildergetDescriptorForType in interface com.google.protobuf.MessageOrBuildergetDescriptorForType in class com.google.protobuf.GeneratedMessageV3.Builder<CustomConfig.Builder>public CustomConfig getDefaultInstanceForType()
getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilderpublic CustomConfig build()
build in interface com.google.protobuf.Message.Builderbuild in interface com.google.protobuf.MessageLite.Builderpublic CustomConfig buildPartial()
buildPartial in interface com.google.protobuf.Message.BuilderbuildPartial in interface com.google.protobuf.MessageLite.Builderpublic CustomConfig.Builder clone()
clone in interface com.google.protobuf.Message.Builderclone in interface com.google.protobuf.MessageLite.Builderclone in class com.google.protobuf.GeneratedMessageV3.Builder<CustomConfig.Builder>public CustomConfig.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
setField in interface com.google.protobuf.Message.BuildersetField in class com.google.protobuf.GeneratedMessageV3.Builder<CustomConfig.Builder>public CustomConfig.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
clearField in interface com.google.protobuf.Message.BuilderclearField in class com.google.protobuf.GeneratedMessageV3.Builder<CustomConfig.Builder>public CustomConfig.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
clearOneof in interface com.google.protobuf.Message.BuilderclearOneof in class com.google.protobuf.GeneratedMessageV3.Builder<CustomConfig.Builder>public CustomConfig.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
setRepeatedField in interface com.google.protobuf.Message.BuildersetRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<CustomConfig.Builder>public CustomConfig.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
addRepeatedField in interface com.google.protobuf.Message.BuilderaddRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<CustomConfig.Builder>public CustomConfig.Builder mergeFrom(com.google.protobuf.Message other)
mergeFrom in interface com.google.protobuf.Message.BuildermergeFrom in class com.google.protobuf.AbstractMessage.Builder<CustomConfig.Builder>public CustomConfig.Builder mergeFrom(CustomConfig other)
public final boolean isInitialized()
isInitialized in interface com.google.protobuf.MessageLiteOrBuilderisInitialized in class com.google.protobuf.GeneratedMessageV3.Builder<CustomConfig.Builder>public CustomConfig.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
mergeFrom in interface com.google.protobuf.Message.BuildermergeFrom in interface com.google.protobuf.MessageLite.BuildermergeFrom in class com.google.protobuf.AbstractMessage.Builder<CustomConfig.Builder>IOExceptionpublic boolean hasPredicate()
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;hasPredicate in interface CustomConfigOrBuilderpublic com.google.type.Expr getPredicate()
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;getPredicate in interface CustomConfigOrBuilderpublic CustomConfig.Builder setPredicate(com.google.type.Expr value)
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;public CustomConfig.Builder setPredicate(com.google.type.Expr.Builder builderForValue)
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;public CustomConfig.Builder mergePredicate(com.google.type.Expr value)
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;public CustomConfig.Builder clearPredicate()
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;public com.google.type.Expr.Builder getPredicateBuilder()
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;public com.google.type.ExprOrBuilder getPredicateOrBuilder()
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;getPredicateOrBuilder in interface CustomConfigOrBuilderpublic boolean hasCustomOutput()
Custom output properties.
.google.cloud.securitycenter.v1.CustomConfig.CustomOutputSpec custom_output = 2;hasCustomOutput in interface CustomConfigOrBuilderpublic CustomConfig.CustomOutputSpec getCustomOutput()
Custom output properties.
.google.cloud.securitycenter.v1.CustomConfig.CustomOutputSpec custom_output = 2;getCustomOutput in interface CustomConfigOrBuilderpublic CustomConfig.Builder setCustomOutput(CustomConfig.CustomOutputSpec value)
Custom output properties.
.google.cloud.securitycenter.v1.CustomConfig.CustomOutputSpec custom_output = 2;public CustomConfig.Builder setCustomOutput(CustomConfig.CustomOutputSpec.Builder builderForValue)
Custom output properties.
.google.cloud.securitycenter.v1.CustomConfig.CustomOutputSpec custom_output = 2;public CustomConfig.Builder mergeCustomOutput(CustomConfig.CustomOutputSpec value)
Custom output properties.
.google.cloud.securitycenter.v1.CustomConfig.CustomOutputSpec custom_output = 2;public CustomConfig.Builder clearCustomOutput()
Custom output properties.
.google.cloud.securitycenter.v1.CustomConfig.CustomOutputSpec custom_output = 2;public CustomConfig.CustomOutputSpec.Builder getCustomOutputBuilder()
Custom output properties.
.google.cloud.securitycenter.v1.CustomConfig.CustomOutputSpec custom_output = 2;public CustomConfig.CustomOutputSpecOrBuilder getCustomOutputOrBuilder()
Custom output properties.
.google.cloud.securitycenter.v1.CustomConfig.CustomOutputSpec custom_output = 2;getCustomOutputOrBuilder in interface CustomConfigOrBuilderpublic boolean hasResourceSelector()
The resource types that the custom module operates on. Each custom module can specify up to 5 resource types.
.google.cloud.securitycenter.v1.CustomConfig.ResourceSelector resource_selector = 3;
hasResourceSelector in interface CustomConfigOrBuilderpublic CustomConfig.ResourceSelector getResourceSelector()
The resource types that the custom module operates on. Each custom module can specify up to 5 resource types.
.google.cloud.securitycenter.v1.CustomConfig.ResourceSelector resource_selector = 3;
getResourceSelector in interface CustomConfigOrBuilderpublic CustomConfig.Builder setResourceSelector(CustomConfig.ResourceSelector value)
The resource types that the custom module operates on. Each custom module can specify up to 5 resource types.
.google.cloud.securitycenter.v1.CustomConfig.ResourceSelector resource_selector = 3;
public CustomConfig.Builder setResourceSelector(CustomConfig.ResourceSelector.Builder builderForValue)
The resource types that the custom module operates on. Each custom module can specify up to 5 resource types.
.google.cloud.securitycenter.v1.CustomConfig.ResourceSelector resource_selector = 3;
public CustomConfig.Builder mergeResourceSelector(CustomConfig.ResourceSelector value)
The resource types that the custom module operates on. Each custom module can specify up to 5 resource types.
.google.cloud.securitycenter.v1.CustomConfig.ResourceSelector resource_selector = 3;
public CustomConfig.Builder clearResourceSelector()
The resource types that the custom module operates on. Each custom module can specify up to 5 resource types.
.google.cloud.securitycenter.v1.CustomConfig.ResourceSelector resource_selector = 3;
public CustomConfig.ResourceSelector.Builder getResourceSelectorBuilder()
The resource types that the custom module operates on. Each custom module can specify up to 5 resource types.
.google.cloud.securitycenter.v1.CustomConfig.ResourceSelector resource_selector = 3;
public CustomConfig.ResourceSelectorOrBuilder getResourceSelectorOrBuilder()
The resource types that the custom module operates on. Each custom module can specify up to 5 resource types.
.google.cloud.securitycenter.v1.CustomConfig.ResourceSelector resource_selector = 3;
getResourceSelectorOrBuilder in interface CustomConfigOrBuilderpublic int getSeverityValue()
The severity to assign to findings generated by the module.
.google.cloud.securitycenter.v1.CustomConfig.Severity severity = 4;getSeverityValue in interface CustomConfigOrBuilderpublic CustomConfig.Builder setSeverityValue(int value)
The severity to assign to findings generated by the module.
.google.cloud.securitycenter.v1.CustomConfig.Severity severity = 4;value - The enum numeric value on the wire for severity to set.public CustomConfig.Severity getSeverity()
The severity to assign to findings generated by the module.
.google.cloud.securitycenter.v1.CustomConfig.Severity severity = 4;getSeverity in interface CustomConfigOrBuilderpublic CustomConfig.Builder setSeverity(CustomConfig.Severity value)
The severity to assign to findings generated by the module.
.google.cloud.securitycenter.v1.CustomConfig.Severity severity = 4;value - The severity to set.public CustomConfig.Builder clearSeverity()
The severity to assign to findings generated by the module.
.google.cloud.securitycenter.v1.CustomConfig.Severity severity = 4;public String getDescription()
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;getDescription in interface CustomConfigOrBuilderpublic com.google.protobuf.ByteString getDescriptionBytes()
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;getDescriptionBytes in interface CustomConfigOrBuilderpublic CustomConfig.Builder setDescription(String value)
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;value - The description to set.public CustomConfig.Builder clearDescription()
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;public CustomConfig.Builder setDescriptionBytes(com.google.protobuf.ByteString value)
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;value - The bytes for description to set.public String getRecommendation()
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;getRecommendation in interface CustomConfigOrBuilderpublic com.google.protobuf.ByteString getRecommendationBytes()
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;getRecommendationBytes in interface CustomConfigOrBuilderpublic CustomConfig.Builder setRecommendation(String value)
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;value - The recommendation to set.public CustomConfig.Builder clearRecommendation()
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;public CustomConfig.Builder setRecommendationBytes(com.google.protobuf.ByteString value)
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;value - The bytes for recommendation to set.public final CustomConfig.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
setUnknownFields in interface com.google.protobuf.Message.BuildersetUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<CustomConfig.Builder>public final CustomConfig.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
mergeUnknownFields in interface com.google.protobuf.Message.BuildermergeUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<CustomConfig.Builder>Copyright © 2023 Google LLC. All rights reserved.