Class CustomConfig
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite
-
- com.google.protobuf.AbstractMessage
-
- com.google.protobuf.GeneratedMessageV3
-
- com.google.cloud.securitycenter.v1.CustomConfig
-
- All Implemented Interfaces:
CustomConfigOrBuilder,com.google.protobuf.Message,com.google.protobuf.MessageLite,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Serializable
public final class CustomConfig extends com.google.protobuf.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 typegoogle.cloud.securitycenter.v1.CustomConfig- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classCustomConfig.BuilderDefines the properties in a custom module configuration for Security Health Analytics.static classCustomConfig.CustomOutputSpecA set of optional name-value pairs that define custom source properties to return with each finding that is generated by the custom module.static interfaceCustomConfig.CustomOutputSpecOrBuilderstatic classCustomConfig.ResourceSelectorResource for selecting resource type.static interfaceCustomConfig.ResourceSelectorOrBuilderstatic classCustomConfig.SeverityDefines the valid value options for the severity of a finding.-
Nested classes/interfaces inherited from class com.google.protobuf.GeneratedMessageV3
com.google.protobuf.GeneratedMessageV3.BuilderParent, com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>,BuilderT extends com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageT,BuilderT>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessageOrBuilder<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessageV3.FieldAccessorTable, com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter
-
-
Field Summary
Fields Modifier and Type Field Description static intCUSTOM_OUTPUT_FIELD_NUMBERstatic intDESCRIPTION_FIELD_NUMBERstatic intPREDICATE_FIELD_NUMBERstatic intRECOMMENDATION_FIELD_NUMBERstatic intRESOURCE_SELECTOR_FIELD_NUMBERstatic intSEVERITY_FIELD_NUMBER
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object obj)CustomConfig.CustomOutputSpecgetCustomOutput()Custom output properties.CustomConfig.CustomOutputSpecOrBuildergetCustomOutputOrBuilder()Custom output properties.static CustomConfiggetDefaultInstance()CustomConfiggetDefaultInstanceForType()StringgetDescription()Text that describes the vulnerability or misconfiguration that the custom module detects.com.google.protobuf.ByteStringgetDescriptionBytes()Text that describes the vulnerability or misconfiguration that the custom module detects.static com.google.protobuf.Descriptors.DescriptorgetDescriptor()com.google.protobuf.Parser<CustomConfig>getParserForType()com.google.type.ExprgetPredicate()The CEL expression to evaluate to produce findings.com.google.type.ExprOrBuildergetPredicateOrBuilder()The CEL expression to evaluate to produce findings.StringgetRecommendation()An explanation of the recommended steps that security teams can take to resolve the detected issue.com.google.protobuf.ByteStringgetRecommendationBytes()An explanation of the recommended steps that security teams can take to resolve the detected issue.CustomConfig.ResourceSelectorgetResourceSelector()The resource types that the custom module operates on.CustomConfig.ResourceSelectorOrBuildergetResourceSelectorOrBuilder()The resource types that the custom module operates on.intgetSerializedSize()CustomConfig.SeveritygetSeverity()The severity to assign to findings generated by the module.intgetSeverityValue()The severity to assign to findings generated by the module.booleanhasCustomOutput()Custom output properties.inthashCode()booleanhasPredicate()The CEL expression to evaluate to produce findings.booleanhasResourceSelector()The resource types that the custom module operates on.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTableinternalGetFieldAccessorTable()booleanisInitialized()static CustomConfig.BuildernewBuilder()static CustomConfig.BuildernewBuilder(CustomConfig prototype)CustomConfig.BuildernewBuilderForType()protected CustomConfig.BuildernewBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)protected ObjectnewInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)static CustomConfigparseDelimitedFrom(InputStream input)static CustomConfigparseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static CustomConfigparseFrom(byte[] data)static CustomConfigparseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static CustomConfigparseFrom(com.google.protobuf.ByteString data)static CustomConfigparseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static CustomConfigparseFrom(com.google.protobuf.CodedInputStream input)static CustomConfigparseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static CustomConfigparseFrom(InputStream input)static CustomConfigparseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static CustomConfigparseFrom(ByteBuffer data)static CustomConfigparseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static com.google.protobuf.Parser<CustomConfig>parser()CustomConfig.BuildertoBuilder()voidwriteTo(com.google.protobuf.CodedOutputStream output)-
Methods inherited from class com.google.protobuf.GeneratedMessageV3
canUseUnsafe, computeStringSize, computeStringSizeNoTag, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyLongList, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, internalGetMapField, isStringEmpty, makeExtensionsImmutable, makeMutableCopy, mergeFromAndMakeImmutableInternal, mutableCopy, mutableCopy, mutableCopy, mutableCopy, mutableCopy, newBooleanList, newBuilderForType, newDoubleList, newFloatList, newIntList, newLongList, parseDelimitedWithIOException, parseDelimitedWithIOException, parseUnknownField, parseUnknownFieldProto3, parseWithIOException, parseWithIOException, parseWithIOException, parseWithIOException, serializeBooleanMapTo, serializeIntegerMapTo, serializeLongMapTo, serializeStringMapTo, writeReplace, writeString, writeStringNoTag
-
Methods inherited from class com.google.protobuf.AbstractMessage
findInitializationErrors, getInitializationErrorString, hashBoolean, hashEnum, hashEnumList, hashFields, hashLong, toString
-
Methods inherited from class com.google.protobuf.AbstractMessageLite
addAll, addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeTo
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
-
-
-
Field Detail
-
PREDICATE_FIELD_NUMBER
public static final int PREDICATE_FIELD_NUMBER
- See Also:
- Constant Field Values
-
CUSTOM_OUTPUT_FIELD_NUMBER
public static final int CUSTOM_OUTPUT_FIELD_NUMBER
- See Also:
- Constant Field Values
-
RESOURCE_SELECTOR_FIELD_NUMBER
public static final int RESOURCE_SELECTOR_FIELD_NUMBER
- See Also:
- Constant Field Values
-
SEVERITY_FIELD_NUMBER
public static final int SEVERITY_FIELD_NUMBER
- See Also:
- Constant Field Values
-
DESCRIPTION_FIELD_NUMBER
public static final int DESCRIPTION_FIELD_NUMBER
- See Also:
- Constant Field Values
-
RECOMMENDATION_FIELD_NUMBER
public static final int RECOMMENDATION_FIELD_NUMBER
- See Also:
- Constant Field Values
-
-
Method Detail
-
newInstance
protected Object newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)
- Overrides:
newInstancein classcom.google.protobuf.GeneratedMessageV3
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessageV3
-
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;- Specified by:
hasPredicatein interfaceCustomConfigOrBuilder- Returns:
- Whether the predicate field is set.
-
getPredicate
public 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;- Specified by:
getPredicatein interfaceCustomConfigOrBuilder- Returns:
- The predicate.
-
getPredicateOrBuilder
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;- Specified by:
getPredicateOrBuilderin interfaceCustomConfigOrBuilder
-
hasCustomOutput
public boolean hasCustomOutput()
Custom output properties.
.google.cloud.securitycenter.v1.CustomConfig.CustomOutputSpec custom_output = 2;- Specified by:
hasCustomOutputin interfaceCustomConfigOrBuilder- Returns:
- Whether the customOutput field is set.
-
getCustomOutput
public CustomConfig.CustomOutputSpec getCustomOutput()
Custom output properties.
.google.cloud.securitycenter.v1.CustomConfig.CustomOutputSpec custom_output = 2;- Specified by:
getCustomOutputin interfaceCustomConfigOrBuilder- Returns:
- The customOutput.
-
getCustomOutputOrBuilder
public CustomConfig.CustomOutputSpecOrBuilder getCustomOutputOrBuilder()
Custom output properties.
.google.cloud.securitycenter.v1.CustomConfig.CustomOutputSpec custom_output = 2;- Specified by:
getCustomOutputOrBuilderin interfaceCustomConfigOrBuilder
-
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;- Specified by:
hasResourceSelectorin interfaceCustomConfigOrBuilder- Returns:
- Whether the resourceSelector field is set.
-
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;- Specified by:
getResourceSelectorin interfaceCustomConfigOrBuilder- Returns:
- The resourceSelector.
-
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;- Specified by:
getResourceSelectorOrBuilderin interfaceCustomConfigOrBuilder
-
getSeverityValue
public int getSeverityValue()
The severity to assign to findings generated by the module.
.google.cloud.securitycenter.v1.CustomConfig.Severity severity = 4;- Specified by:
getSeverityValuein interfaceCustomConfigOrBuilder- Returns:
- The enum numeric value on the wire for severity.
-
getSeverity
public CustomConfig.Severity getSeverity()
The severity to assign to findings generated by the module.
.google.cloud.securitycenter.v1.CustomConfig.Severity severity = 4;- Specified by:
getSeverityin interfaceCustomConfigOrBuilder- Returns:
- The severity.
-
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;- Specified by:
getDescriptionin interfaceCustomConfigOrBuilder- Returns:
- The description.
-
getDescriptionBytes
public 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;- Specified by:
getDescriptionBytesin interfaceCustomConfigOrBuilder- Returns:
- The bytes for description.
-
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;- Specified by:
getRecommendationin interfaceCustomConfigOrBuilder- Returns:
- The recommendation.
-
getRecommendationBytes
public 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;- Specified by:
getRecommendationBytesin interfaceCustomConfigOrBuilder- Returns:
- The bytes for recommendation.
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessageV3
-
writeTo
public void writeTo(com.google.protobuf.CodedOutputStream output) throws IOException- Specified by:
writeToin interfacecom.google.protobuf.MessageLite- Overrides:
writeToin classcom.google.protobuf.GeneratedMessageV3- Throws:
IOException
-
getSerializedSize
public int getSerializedSize()
- Specified by:
getSerializedSizein interfacecom.google.protobuf.MessageLite- Overrides:
getSerializedSizein classcom.google.protobuf.GeneratedMessageV3
-
equals
public boolean equals(Object obj)
- Specified by:
equalsin interfacecom.google.protobuf.Message- Overrides:
equalsin classcom.google.protobuf.AbstractMessage
-
hashCode
public int hashCode()
- Specified by:
hashCodein interfacecom.google.protobuf.Message- Overrides:
hashCodein classcom.google.protobuf.AbstractMessage
-
parseFrom
public static CustomConfig parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static CustomConfig parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static CustomConfig parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static CustomConfig parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static CustomConfig parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static CustomConfig parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static CustomConfig parseFrom(InputStream input) throws IOException
- Throws:
IOException
-
parseFrom
public static CustomConfig parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Throws:
IOException
-
parseDelimitedFrom
public static CustomConfig parseDelimitedFrom(InputStream input) throws IOException
- Throws:
IOException
-
parseDelimitedFrom
public static CustomConfig parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Throws:
IOException
-
parseFrom
public static CustomConfig parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
- Throws:
IOException
-
parseFrom
public static CustomConfig parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Throws:
IOException
-
newBuilderForType
public CustomConfig.Builder newBuilderForType()
- Specified by:
newBuilderForTypein interfacecom.google.protobuf.Message- Specified by:
newBuilderForTypein interfacecom.google.protobuf.MessageLite
-
newBuilder
public static CustomConfig.Builder newBuilder()
-
newBuilder
public static CustomConfig.Builder newBuilder(CustomConfig prototype)
-
toBuilder
public CustomConfig.Builder toBuilder()
- Specified by:
toBuilderin interfacecom.google.protobuf.Message- Specified by:
toBuilderin interfacecom.google.protobuf.MessageLite
-
newBuilderForType
protected CustomConfig.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
- Specified by:
newBuilderForTypein classcom.google.protobuf.GeneratedMessageV3
-
getDefaultInstance
public static CustomConfig getDefaultInstance()
-
parser
public static com.google.protobuf.Parser<CustomConfig> parser()
-
getParserForType
public com.google.protobuf.Parser<CustomConfig> getParserForType()
- Specified by:
getParserForTypein interfacecom.google.protobuf.Message- Specified by:
getParserForTypein interfacecom.google.protobuf.MessageLite- Overrides:
getParserForTypein classcom.google.protobuf.GeneratedMessageV3
-
getDefaultInstanceForType
public CustomConfig getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
-