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 class
CustomConfig.Builder
Defines the properties in a custom module configuration for Security Health Analytics.static class
CustomConfig.CustomOutputSpec
A set of optional name-value pairs that define custom source properties to return with each finding that is generated by the custom module.static interface
CustomConfig.CustomOutputSpecOrBuilder
static class
CustomConfig.ResourceSelector
Resource for selecting resource type.static interface
CustomConfig.ResourceSelectorOrBuilder
static class
CustomConfig.Severity
Defines 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 int
CUSTOM_OUTPUT_FIELD_NUMBER
static int
DESCRIPTION_FIELD_NUMBER
static int
PREDICATE_FIELD_NUMBER
static int
RECOMMENDATION_FIELD_NUMBER
static int
RESOURCE_SELECTOR_FIELD_NUMBER
static int
SEVERITY_FIELD_NUMBER
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(Object obj)
CustomConfig.CustomOutputSpec
getCustomOutput()
Custom output properties.CustomConfig.CustomOutputSpecOrBuilder
getCustomOutputOrBuilder()
Custom output properties.static CustomConfig
getDefaultInstance()
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.Parser<CustomConfig>
getParserForType()
com.google.type.Expr
getPredicate()
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.ResourceSelectorOrBuilder
getResourceSelectorOrBuilder()
The resource types that the custom module operates on.int
getSerializedSize()
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.int
hashCode()
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()
static CustomConfig.Builder
newBuilder()
static CustomConfig.Builder
newBuilder(CustomConfig prototype)
CustomConfig.Builder
newBuilderForType()
protected CustomConfig.Builder
newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
protected Object
newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)
static CustomConfig
parseDelimitedFrom(InputStream input)
static CustomConfig
parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
static CustomConfig
parseFrom(byte[] data)
static CustomConfig
parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
static CustomConfig
parseFrom(com.google.protobuf.ByteString data)
static CustomConfig
parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
static CustomConfig
parseFrom(com.google.protobuf.CodedInputStream input)
static CustomConfig
parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
static CustomConfig
parseFrom(InputStream input)
static CustomConfig
parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
static CustomConfig
parseFrom(ByteBuffer data)
static CustomConfig
parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
static com.google.protobuf.Parser<CustomConfig>
parser()
CustomConfig.Builder
toBuilder()
void
writeTo(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:
newInstance
in classcom.google.protobuf.GeneratedMessageV3
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
- Specified by:
internalGetFieldAccessorTable
in 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:
hasPredicate
in 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:
getPredicate
in 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:
getPredicateOrBuilder
in interfaceCustomConfigOrBuilder
-
hasCustomOutput
public boolean hasCustomOutput()
Custom output properties.
.google.cloud.securitycenter.v1.CustomConfig.CustomOutputSpec custom_output = 2;
- Specified by:
hasCustomOutput
in 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:
getCustomOutput
in interfaceCustomConfigOrBuilder
- Returns:
- The customOutput.
-
getCustomOutputOrBuilder
public CustomConfig.CustomOutputSpecOrBuilder getCustomOutputOrBuilder()
Custom output properties.
.google.cloud.securitycenter.v1.CustomConfig.CustomOutputSpec custom_output = 2;
- Specified by:
getCustomOutputOrBuilder
in 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:
hasResourceSelector
in 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:
getResourceSelector
in 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:
getResourceSelectorOrBuilder
in 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:
getSeverityValue
in 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:
getSeverity
in 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:
getDescription
in 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:
getDescriptionBytes
in 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:
getRecommendation
in 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:
getRecommendationBytes
in interfaceCustomConfigOrBuilder
- Returns:
- The bytes for recommendation.
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitialized
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Overrides:
isInitialized
in classcom.google.protobuf.GeneratedMessageV3
-
writeTo
public void writeTo(com.google.protobuf.CodedOutputStream output) throws IOException
- Specified by:
writeTo
in interfacecom.google.protobuf.MessageLite
- Overrides:
writeTo
in classcom.google.protobuf.GeneratedMessageV3
- Throws:
IOException
-
getSerializedSize
public int getSerializedSize()
- Specified by:
getSerializedSize
in interfacecom.google.protobuf.MessageLite
- Overrides:
getSerializedSize
in classcom.google.protobuf.GeneratedMessageV3
-
equals
public boolean equals(Object obj)
- Specified by:
equals
in interfacecom.google.protobuf.Message
- Overrides:
equals
in classcom.google.protobuf.AbstractMessage
-
hashCode
public int hashCode()
- Specified by:
hashCode
in interfacecom.google.protobuf.Message
- Overrides:
hashCode
in 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:
newBuilderForType
in interfacecom.google.protobuf.Message
- Specified by:
newBuilderForType
in 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:
toBuilder
in interfacecom.google.protobuf.Message
- Specified by:
toBuilder
in interfacecom.google.protobuf.MessageLite
-
newBuilderForType
protected CustomConfig.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
- Specified by:
newBuilderForType
in 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:
getParserForType
in interfacecom.google.protobuf.Message
- Specified by:
getParserForType
in interfacecom.google.protobuf.MessageLite
- Overrides:
getParserForType
in classcom.google.protobuf.GeneratedMessageV3
-
getDefaultInstanceForType
public CustomConfig getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageOrBuilder
-
-