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.securityposture.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)
parseDelimitedFrom(InputStream input)
public static CustomConfig parseDelimitedFrom(InputStream input)
parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
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)
parseFrom(CodedInputStream input)
public static CustomConfig parseFrom(CodedInputStream input)
parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public static CustomConfig parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
parseFrom(InputStream input)
public static CustomConfig parseFrom(InputStream input)
parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
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()
Optional. Custom output properties.
.google.cloud.securityposture.v1.CustomConfig.CustomOutputSpec custom_output = 2 [(.google.api.field_behavior) = OPTIONAL];
getCustomOutputOrBuilder()
public CustomConfig.CustomOutputSpecOrBuilder getCustomOutputOrBuilder()
Optional. Custom output properties.
.google.cloud.securityposture.v1.CustomConfig.CustomOutputSpec custom_output = 2 [(.google.api.field_behavior) = OPTIONAL];
getDefaultInstanceForType()
public CustomConfig getDefaultInstanceForType()
getDescription()
public 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 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.
|
getParserForType()
public Parser<CustomConfig> getParserForType()
Overrides
getPredicate()
public 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 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 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 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 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];
getResourceSelectorOrBuilder()
public 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];
getSerializedSize()
public int getSerializedSize()
Returns |
Type |
Description |
int |
|
Overrides
getSeverity()
public 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];
getSeverityValue()
public 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 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 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 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.
|
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