public final class CustomConfig extends GeneratedMessageV3 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
Inherited Members
com.google.protobuf.GeneratedMessageV3.<ListT>makeMutableCopy(ListT)
com.google.protobuf.GeneratedMessageV3.<ListT>makeMutableCopy(ListT,int)
com.google.protobuf.GeneratedMessageV3.<T>emptyList(java.lang.Class<T>)
com.google.protobuf.GeneratedMessageV3.internalGetMapFieldReflection(int)
Static Fields
CUSTOM_OUTPUT_FIELD_NUMBER
public static final int CUSTOM_OUTPUT_FIELD_NUMBER
Field Value |
Type |
Description |
int |
|
DESCRIPTION_FIELD_NUMBER
public static final int DESCRIPTION_FIELD_NUMBER
Field Value |
Type |
Description |
int |
|
PREDICATE_FIELD_NUMBER
public static final int PREDICATE_FIELD_NUMBER
Field Value |
Type |
Description |
int |
|
RECOMMENDATION_FIELD_NUMBER
public static final int RECOMMENDATION_FIELD_NUMBER
Field Value |
Type |
Description |
int |
|
RESOURCE_SELECTOR_FIELD_NUMBER
public static final int RESOURCE_SELECTOR_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 CustomConfig getDefaultInstance()
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
newBuilder()
public static CustomConfig.Builder newBuilder()
newBuilder(CustomConfig prototype)
public static CustomConfig.Builder newBuilder(CustomConfig prototype)
public static CustomConfig parseDelimitedFrom(InputStream input)
public static CustomConfig parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
parseFrom(byte[] data)
public static CustomConfig parseFrom(byte[] data)
Parameter |
Name |
Description |
data |
byte[]
|
parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
public static CustomConfig parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
parseFrom(ByteString data)
public static CustomConfig parseFrom(ByteString data)
parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
public static CustomConfig parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
public static CustomConfig parseFrom(CodedInputStream input)
public static CustomConfig parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public static CustomConfig parseFrom(InputStream input)
public static CustomConfig parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
parseFrom(ByteBuffer data)
public static CustomConfig parseFrom(ByteBuffer data)
parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
public static CustomConfig parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
parser()
public static Parser<CustomConfig> parser()
Methods
equals(Object obj)
public boolean equals(Object obj)
Parameter |
Name |
Description |
obj |
Object
|
Overrides
getCustomOutput()
public CustomConfig.CustomOutputSpec getCustomOutput()
Custom output properties.
.google.cloud.securitycenter.v1.CustomConfig.CustomOutputSpec custom_output = 2;
getCustomOutputOrBuilder()
public CustomConfig.CustomOutputSpecOrBuilder getCustomOutputOrBuilder()
Custom output properties.
.google.cloud.securitycenter.v1.CustomConfig.CustomOutputSpec custom_output = 2;
getDefaultInstanceForType()
public CustomConfig getDefaultInstanceForType()
getDescription()
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;
Returns |
Type |
Description |
String |
The description.
|
getDescriptionBytes()
public 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;
Returns |
Type |
Description |
ByteString |
The bytes for description.
|
getParserForType()
public Parser<CustomConfig> getParserForType()
Overrides
getPredicate()
public 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;
Returns |
Type |
Description |
com.google.type.Expr |
The predicate.
|
getPredicateOrBuilder()
public 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;
Returns |
Type |
Description |
com.google.type.ExprOrBuilder |
|
getRecommendation()
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;
Returns |
Type |
Description |
String |
The recommendation.
|
getRecommendationBytes()
public 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;
Returns |
Type |
Description |
ByteString |
The bytes for recommendation.
|
getResourceSelector()
public 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;
getResourceSelectorOrBuilder()
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;
getSerializedSize()
public int getSerializedSize()
Returns |
Type |
Description |
int |
|
Overrides
getSeverity()
public CustomConfig.Severity getSeverity()
The severity to assign to findings generated by the module.
.google.cloud.securitycenter.v1.CustomConfig.Severity severity = 4;
getSeverityValue()
public int getSeverityValue()
The severity to assign to findings generated by the module.
.google.cloud.securitycenter.v1.CustomConfig.Severity severity = 4;
Returns |
Type |
Description |
int |
The enum numeric value on the wire for severity.
|
hasCustomOutput()
public boolean hasCustomOutput()
Custom output properties.
.google.cloud.securitycenter.v1.CustomConfig.CustomOutputSpec custom_output = 2;
Returns |
Type |
Description |
boolean |
Whether the customOutput field is set.
|
hasPredicate()
public 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;
Returns |
Type |
Description |
boolean |
Whether the predicate field is set.
|
hasResourceSelector()
public 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;
Returns |
Type |
Description |
boolean |
Whether the resourceSelector field is set.
|
hashCode()
Returns |
Type |
Description |
int |
|
Overrides
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Overrides
isInitialized()
public final boolean isInitialized()
Overrides
newBuilderForType()
public CustomConfig.Builder newBuilderForType()
newBuilderForType(GeneratedMessageV3.BuilderParent parent)
protected CustomConfig.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Overrides
newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Returns |
Type |
Description |
Object |
|
Overrides
toBuilder()
public CustomConfig.Builder toBuilder()
writeTo(CodedOutputStream output)
public void writeTo(CodedOutputStream output)
Overrides