Class ScanConfig
java.lang.Object
com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessage
com.google.protobuf.GeneratedMessage
com.google.cloud.websecurityscanner.v1.ScanConfig
- All Implemented Interfaces:
ScanConfigOrBuilder,com.google.protobuf.Message,com.google.protobuf.MessageLite,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Serializable
@Generated
public final class ScanConfig
extends com.google.protobuf.GeneratedMessage
implements ScanConfigOrBuilder
A ScanConfig resource contains the configurations to launch a scan.Protobuf type
google.cloud.websecurityscanner.v1.ScanConfig- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classScan authentication configuration.static interfacestatic final classA ScanConfig resource contains the configurations to launch a scan.static enumControls export of scan configurations and results to Security Command Center.static enumScan risk levels supported by Web Security Scanner.static final classScan schedule configuration.static interfacestatic enumType of user agents used for scanning.Nested classes/interfaces inherited from class com.google.protobuf.GeneratedMessage
com.google.protobuf.GeneratedMessage.ExtendableBuilder<MessageT extends com.google.protobuf.GeneratedMessage.ExtendableMessage<MessageT>,BuilderT extends com.google.protobuf.GeneratedMessage.ExtendableBuilder<MessageT, BuilderT>>, com.google.protobuf.GeneratedMessage.ExtendableMessage<MessageT extends com.google.protobuf.GeneratedMessage.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessage.ExtendableMessageOrBuilder<MessageT extends com.google.protobuf.GeneratedMessage.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessage.FieldAccessorTable, com.google.protobuf.GeneratedMessage.GeneratedExtension<ContainingT extends com.google.protobuf.Message, T extends Object>, com.google.protobuf.GeneratedMessage.UnusedPrivateParameter Nested classes/interfaces inherited from class com.google.protobuf.AbstractMessage
com.google.protobuf.AbstractMessage.BuilderParentNested classes/interfaces inherited from class com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessageLite.InternalOneOfEnum -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intFields inherited from class com.google.protobuf.GeneratedMessage
alwaysUseFieldBuilders, loggedPre22TypeNames, unknownFieldsFields inherited from class com.google.protobuf.AbstractMessage
memoizedSizeFields inherited from class com.google.protobuf.AbstractMessageLite
memoizedHashCode -
Method Summary
Modifier and TypeMethodDescriptionbooleanThe authentication configuration.The authentication configuration.getBlacklistPatterns(int index) The excluded URL patterns as described in https://cloud.google.com/security-command-center/docs/how-to-use-web-security-scanner#excluding_urlscom.google.protobuf.ByteStringgetBlacklistPatternsBytes(int index) The excluded URL patterns as described in https://cloud.google.com/security-command-center/docs/how-to-use-web-security-scanner#excluding_urlsintThe excluded URL patterns as described in https://cloud.google.com/security-command-center/docs/how-to-use-web-security-scanner#excluding_urlscom.google.protobuf.ProtocolStringListThe excluded URL patterns as described in https://cloud.google.com/security-command-center/docs/how-to-use-web-security-scanner#excluding_urlsstatic ScanConfigstatic final com.google.protobuf.Descriptors.DescriptorRequired.com.google.protobuf.ByteStringRequired.Controls export of scan configurations and results to Security Command Center.intControls export of scan configurations and results to Security Command Center.booleanWhether to keep scanning even if most requests return HTTP error codes.booleanWhether the scan config is managed by Web Security Scanner, output only.intThe maximum QPS during scanning.getName()The resource name of the ScanConfig.com.google.protobuf.ByteStringThe resource name of the ScanConfig.com.google.protobuf.Parser<ScanConfig>The risk level selected for the scanintThe risk level selected for the scanThe schedule of the ScanConfig.The schedule of the ScanConfig.intgetStartingUrls(int index) Required.com.google.protobuf.ByteStringgetStartingUrlsBytes(int index) Required.intRequired.com.google.protobuf.ProtocolStringListRequired.booleanWhether the scan configuration has enabled static IP address scan feature.The user agent used during scanning.intThe user agent used during scanning.booleanThe authentication configuration.inthashCode()booleanThe schedule of the ScanConfig.protected com.google.protobuf.GeneratedMessage.FieldAccessorTablefinal booleanstatic ScanConfig.Builderstatic ScanConfig.BuildernewBuilder(ScanConfig prototype) protected ScanConfig.BuildernewBuilderForType(com.google.protobuf.AbstractMessage.BuilderParent parent) static ScanConfigparseDelimitedFrom(InputStream input) static ScanConfigparseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static ScanConfigparseFrom(byte[] data) static ScanConfigparseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static ScanConfigparseFrom(com.google.protobuf.ByteString data) static ScanConfigparseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static ScanConfigparseFrom(com.google.protobuf.CodedInputStream input) static ScanConfigparseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static ScanConfigparseFrom(InputStream input) static ScanConfigparseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static ScanConfigparseFrom(ByteBuffer data) static ScanConfigparseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static com.google.protobuf.Parser<ScanConfig>parser()voidwriteTo(com.google.protobuf.CodedOutputStream output) Methods inherited from class com.google.protobuf.GeneratedMessage
canUseUnsafe, computeStringSize, computeStringSizeNoTag, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyList, emptyLongList, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, isStringEmpty, makeExtensionsImmutable, makeMutableCopy, makeMutableCopy, mergeFromAndMakeImmutableInternal, newFileScopedGeneratedExtension, newInstance, newMessageScopedGeneratedExtension, parseDelimitedWithIOException, parseDelimitedWithIOException, parseUnknownField, parseUnknownFieldProto3, parseWithIOException, parseWithIOException, parseWithIOException, parseWithIOException, serializeBooleanMapTo, serializeIntegerMapTo, serializeLongMapTo, serializeStringMapTo, writeReplace, writeString, writeStringNoTagMethods inherited from class com.google.protobuf.AbstractMessage
findInitializationErrors, getInitializationErrorString, hashFields, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite
addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeToMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.MessageLite
toByteArray, toByteString, writeDelimitedTo, writeToMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Field Details
-
NAME_FIELD_NUMBER
public static final int NAME_FIELD_NUMBER- See Also:
-
DISPLAY_NAME_FIELD_NUMBER
public static final int DISPLAY_NAME_FIELD_NUMBER- See Also:
-
MAX_QPS_FIELD_NUMBER
public static final int MAX_QPS_FIELD_NUMBER- See Also:
-
STARTING_URLS_FIELD_NUMBER
public static final int STARTING_URLS_FIELD_NUMBER- See Also:
-
AUTHENTICATION_FIELD_NUMBER
public static final int AUTHENTICATION_FIELD_NUMBER- See Also:
-
USER_AGENT_FIELD_NUMBER
public static final int USER_AGENT_FIELD_NUMBER- See Also:
-
BLACKLIST_PATTERNS_FIELD_NUMBER
public static final int BLACKLIST_PATTERNS_FIELD_NUMBER- See Also:
-
SCHEDULE_FIELD_NUMBER
public static final int SCHEDULE_FIELD_NUMBER- See Also:
-
EXPORT_TO_SECURITY_COMMAND_CENTER_FIELD_NUMBER
public static final int EXPORT_TO_SECURITY_COMMAND_CENTER_FIELD_NUMBER- See Also:
-
RISK_LEVEL_FIELD_NUMBER
public static final int RISK_LEVEL_FIELD_NUMBER- See Also:
-
MANAGED_SCAN_FIELD_NUMBER
public static final int MANAGED_SCAN_FIELD_NUMBER- See Also:
-
STATIC_IP_SCAN_FIELD_NUMBER
public static final int STATIC_IP_SCAN_FIELD_NUMBER- See Also:
-
IGNORE_HTTP_STATUS_ERRORS_FIELD_NUMBER
public static final int IGNORE_HTTP_STATUS_ERRORS_FIELD_NUMBER- See Also:
-
-
Method Details
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() -
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessage
-
getName
The resource name of the ScanConfig. The name follows the format of 'projects/{projectId}/scanConfigs/{scanConfigId}'. The ScanConfig IDs are generated by the system.string name = 1;- Specified by:
getNamein interfaceScanConfigOrBuilder- Returns:
- The name.
-
getNameBytes
public com.google.protobuf.ByteString getNameBytes()The resource name of the ScanConfig. The name follows the format of 'projects/{projectId}/scanConfigs/{scanConfigId}'. The ScanConfig IDs are generated by the system.string name = 1;- Specified by:
getNameBytesin interfaceScanConfigOrBuilder- Returns:
- The bytes for name.
-
getDisplayName
Required. The user provided display name of the ScanConfig.
string display_name = 2;- Specified by:
getDisplayNamein interfaceScanConfigOrBuilder- Returns:
- The displayName.
-
getDisplayNameBytes
public com.google.protobuf.ByteString getDisplayNameBytes()Required. The user provided display name of the ScanConfig.
string display_name = 2;- Specified by:
getDisplayNameBytesin interfaceScanConfigOrBuilder- Returns:
- The bytes for displayName.
-
getMaxQps
public int getMaxQps()The maximum QPS during scanning. A valid value ranges from 5 to 20 inclusively. If the field is unspecified or its value is set 0, server will default to 15. Other values outside of [5, 20] range will be rejected with INVALID_ARGUMENT error.
int32 max_qps = 3;- Specified by:
getMaxQpsin interfaceScanConfigOrBuilder- Returns:
- The maxQps.
-
getStartingUrlsList
public com.google.protobuf.ProtocolStringList getStartingUrlsList()Required. The starting URLs from which the scanner finds site pages.
repeated string starting_urls = 4;- Specified by:
getStartingUrlsListin interfaceScanConfigOrBuilder- Returns:
- A list containing the startingUrls.
-
getStartingUrlsCount
public int getStartingUrlsCount()Required. The starting URLs from which the scanner finds site pages.
repeated string starting_urls = 4;- Specified by:
getStartingUrlsCountin interfaceScanConfigOrBuilder- Returns:
- The count of startingUrls.
-
getStartingUrls
Required. The starting URLs from which the scanner finds site pages.
repeated string starting_urls = 4;- Specified by:
getStartingUrlsin interfaceScanConfigOrBuilder- Parameters:
index- The index of the element to return.- Returns:
- The startingUrls at the given index.
-
getStartingUrlsBytes
public com.google.protobuf.ByteString getStartingUrlsBytes(int index) Required. The starting URLs from which the scanner finds site pages.
repeated string starting_urls = 4;- Specified by:
getStartingUrlsBytesin interfaceScanConfigOrBuilder- Parameters:
index- The index of the value to return.- Returns:
- The bytes of the startingUrls at the given index.
-
hasAuthentication
public boolean hasAuthentication()The authentication configuration. If specified, service will use the authentication configuration during scanning.
.google.cloud.websecurityscanner.v1.ScanConfig.Authentication authentication = 5;- Specified by:
hasAuthenticationin interfaceScanConfigOrBuilder- Returns:
- Whether the authentication field is set.
-
getAuthentication
The authentication configuration. If specified, service will use the authentication configuration during scanning.
.google.cloud.websecurityscanner.v1.ScanConfig.Authentication authentication = 5;- Specified by:
getAuthenticationin interfaceScanConfigOrBuilder- Returns:
- The authentication.
-
getAuthenticationOrBuilder
The authentication configuration. If specified, service will use the authentication configuration during scanning.
.google.cloud.websecurityscanner.v1.ScanConfig.Authentication authentication = 5;- Specified by:
getAuthenticationOrBuilderin interfaceScanConfigOrBuilder
-
getUserAgentValue
public int getUserAgentValue()The user agent used during scanning.
.google.cloud.websecurityscanner.v1.ScanConfig.UserAgent user_agent = 6;- Specified by:
getUserAgentValuein interfaceScanConfigOrBuilder- Returns:
- The enum numeric value on the wire for userAgent.
-
getUserAgent
The user agent used during scanning.
.google.cloud.websecurityscanner.v1.ScanConfig.UserAgent user_agent = 6;- Specified by:
getUserAgentin interfaceScanConfigOrBuilder- Returns:
- The userAgent.
-
getBlacklistPatternsList
public com.google.protobuf.ProtocolStringList getBlacklistPatternsList()The excluded URL patterns as described in https://cloud.google.com/security-command-center/docs/how-to-use-web-security-scanner#excluding_urls
repeated string blacklist_patterns = 7;- Specified by:
getBlacklistPatternsListin interfaceScanConfigOrBuilder- Returns:
- A list containing the blacklistPatterns.
-
getBlacklistPatternsCount
public int getBlacklistPatternsCount()The excluded URL patterns as described in https://cloud.google.com/security-command-center/docs/how-to-use-web-security-scanner#excluding_urls
repeated string blacklist_patterns = 7;- Specified by:
getBlacklistPatternsCountin interfaceScanConfigOrBuilder- Returns:
- The count of blacklistPatterns.
-
getBlacklistPatterns
The excluded URL patterns as described in https://cloud.google.com/security-command-center/docs/how-to-use-web-security-scanner#excluding_urls
repeated string blacklist_patterns = 7;- Specified by:
getBlacklistPatternsin interfaceScanConfigOrBuilder- Parameters:
index- The index of the element to return.- Returns:
- The blacklistPatterns at the given index.
-
getBlacklistPatternsBytes
public com.google.protobuf.ByteString getBlacklistPatternsBytes(int index) The excluded URL patterns as described in https://cloud.google.com/security-command-center/docs/how-to-use-web-security-scanner#excluding_urls
repeated string blacklist_patterns = 7;- Specified by:
getBlacklistPatternsBytesin interfaceScanConfigOrBuilder- Parameters:
index- The index of the value to return.- Returns:
- The bytes of the blacklistPatterns at the given index.
-
hasSchedule
public boolean hasSchedule()The schedule of the ScanConfig.
.google.cloud.websecurityscanner.v1.ScanConfig.Schedule schedule = 8;- Specified by:
hasSchedulein interfaceScanConfigOrBuilder- Returns:
- Whether the schedule field is set.
-
getSchedule
The schedule of the ScanConfig.
.google.cloud.websecurityscanner.v1.ScanConfig.Schedule schedule = 8;- Specified by:
getSchedulein interfaceScanConfigOrBuilder- Returns:
- The schedule.
-
getScheduleOrBuilder
The schedule of the ScanConfig.
.google.cloud.websecurityscanner.v1.ScanConfig.Schedule schedule = 8;- Specified by:
getScheduleOrBuilderin interfaceScanConfigOrBuilder
-
getExportToSecurityCommandCenterValue
public int getExportToSecurityCommandCenterValue()Controls export of scan configurations and results to Security Command Center.
.google.cloud.websecurityscanner.v1.ScanConfig.ExportToSecurityCommandCenter export_to_security_command_center = 10;- Specified by:
getExportToSecurityCommandCenterValuein interfaceScanConfigOrBuilder- Returns:
- The enum numeric value on the wire for exportToSecurityCommandCenter.
-
getExportToSecurityCommandCenter
Controls export of scan configurations and results to Security Command Center.
.google.cloud.websecurityscanner.v1.ScanConfig.ExportToSecurityCommandCenter export_to_security_command_center = 10;- Specified by:
getExportToSecurityCommandCenterin interfaceScanConfigOrBuilder- Returns:
- The exportToSecurityCommandCenter.
-
getRiskLevelValue
public int getRiskLevelValue()The risk level selected for the scan
.google.cloud.websecurityscanner.v1.ScanConfig.RiskLevel risk_level = 12;- Specified by:
getRiskLevelValuein interfaceScanConfigOrBuilder- Returns:
- The enum numeric value on the wire for riskLevel.
-
getRiskLevel
The risk level selected for the scan
.google.cloud.websecurityscanner.v1.ScanConfig.RiskLevel risk_level = 12;- Specified by:
getRiskLevelin interfaceScanConfigOrBuilder- Returns:
- The riskLevel.
-
getManagedScan
public boolean getManagedScan()Whether the scan config is managed by Web Security Scanner, output only.
bool managed_scan = 13;- Specified by:
getManagedScanin interfaceScanConfigOrBuilder- Returns:
- The managedScan.
-
getStaticIpScan
public boolean getStaticIpScan()Whether the scan configuration has enabled static IP address scan feature. If enabled, the scanner will access applications from static IP addresses.
bool static_ip_scan = 14;- Specified by:
getStaticIpScanin interfaceScanConfigOrBuilder- Returns:
- The staticIpScan.
-
getIgnoreHttpStatusErrors
public boolean getIgnoreHttpStatusErrors()Whether to keep scanning even if most requests return HTTP error codes.
bool ignore_http_status_errors = 15;- Specified by:
getIgnoreHttpStatusErrorsin interfaceScanConfigOrBuilder- Returns:
- The ignoreHttpStatusErrors.
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage
-
writeTo
- Specified by:
writeToin interfacecom.google.protobuf.MessageLite- Overrides:
writeToin classcom.google.protobuf.GeneratedMessage- Throws:
IOException
-
getSerializedSize
public int getSerializedSize()- Specified by:
getSerializedSizein interfacecom.google.protobuf.MessageLite- Overrides:
getSerializedSizein classcom.google.protobuf.GeneratedMessage
-
equals
- 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 ScanConfig parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static ScanConfig parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static ScanConfig parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static ScanConfig parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static ScanConfig parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static ScanConfig parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
- Throws:
IOException
-
parseFrom
public static ScanConfig parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
parseDelimitedFrom
- Throws:
IOException
-
parseDelimitedFrom
public static ScanConfig parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
parseFrom
- Throws:
IOException
-
parseFrom
public static ScanConfig parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
newBuilderForType
- Specified by:
newBuilderForTypein interfacecom.google.protobuf.Message- Specified by:
newBuilderForTypein interfacecom.google.protobuf.MessageLite
-
newBuilder
-
newBuilder
-
toBuilder
- Specified by:
toBuilderin interfacecom.google.protobuf.Message- Specified by:
toBuilderin interfacecom.google.protobuf.MessageLite
-
newBuilderForType
protected ScanConfig.Builder newBuilderForType(com.google.protobuf.AbstractMessage.BuilderParent parent) - Overrides:
newBuilderForTypein classcom.google.protobuf.AbstractMessage
-
getDefaultInstance
-
parser
-
getParserForType
- Specified by:
getParserForTypein interfacecom.google.protobuf.Message- Specified by:
getParserForTypein interfacecom.google.protobuf.MessageLite- Overrides:
getParserForTypein classcom.google.protobuf.GeneratedMessage
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-