Send feedback
Class CustomConfig (0.1.0)
Stay organized with collections
Save and categorize content based on your preferences.
Version 0.1.0 keyboard_arrow_down
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 )
Overrides
toBuilder()
public CustomConfig . Builder toBuilder ()
writeTo(CodedOutputStream output)
public void writeTo ( CodedOutputStream output )
Overrides
Send feedback
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License , and code samples are licensed under the Apache 2.0 License . For details, see the Google Developers Site Policies . Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2025-01-21 UTC.
Need to tell us more?
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-01-21 UTC."],[],[]]