Class ScanConfig.Builder
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite.Builder
-
- com.google.protobuf.AbstractMessage.Builder<BuilderT>
-
- com.google.protobuf.GeneratedMessageV3.Builder<ScanConfig.Builder>
-
- com.google.cloud.websecurityscanner.v1.ScanConfig.Builder
-
- All Implemented Interfaces:
ScanConfigOrBuilder
,com.google.protobuf.Message.Builder
,com.google.protobuf.MessageLite.Builder
,com.google.protobuf.MessageLiteOrBuilder
,com.google.protobuf.MessageOrBuilder
,Cloneable
- Enclosing class:
- ScanConfig
public static final class ScanConfig.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<ScanConfig.Builder> implements ScanConfigOrBuilder
A ScanConfig resource contains the configurations to launch a scan.
Protobuf typegoogle.cloud.websecurityscanner.v1.ScanConfig
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description ScanConfig.Builder
addAllBlacklistPatterns(Iterable<String> values)
The excluded URL patterns as described in https://cloud.google.com/security-command-center/docs/how-to-use-web-security-scanner#excluding_urlsScanConfig.Builder
addAllStartingUrls(Iterable<String> values)
Required.ScanConfig.Builder
addBlacklistPatterns(String value)
The excluded URL patterns as described in https://cloud.google.com/security-command-center/docs/how-to-use-web-security-scanner#excluding_urlsScanConfig.Builder
addBlacklistPatternsBytes(com.google.protobuf.ByteString value)
The excluded URL patterns as described in https://cloud.google.com/security-command-center/docs/how-to-use-web-security-scanner#excluding_urlsScanConfig.Builder
addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
ScanConfig.Builder
addStartingUrls(String value)
Required.ScanConfig.Builder
addStartingUrlsBytes(com.google.protobuf.ByteString value)
Required.ScanConfig
build()
ScanConfig
buildPartial()
ScanConfig.Builder
clear()
ScanConfig.Builder
clearAuthentication()
The authentication configuration.ScanConfig.Builder
clearBlacklistPatterns()
The excluded URL patterns as described in https://cloud.google.com/security-command-center/docs/how-to-use-web-security-scanner#excluding_urlsScanConfig.Builder
clearDisplayName()
Required.ScanConfig.Builder
clearExportToSecurityCommandCenter()
Controls export of scan configurations and results to Security Command Center.ScanConfig.Builder
clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
ScanConfig.Builder
clearIgnoreHttpStatusErrors()
Whether to keep scanning even if most requests return HTTP error codes.ScanConfig.Builder
clearManagedScan()
Whether the scan config is managed by Web Security Scanner, output only.ScanConfig.Builder
clearMaxQps()
The maximum QPS during scanning.ScanConfig.Builder
clearName()
The resource name of the ScanConfig.ScanConfig.Builder
clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
ScanConfig.Builder
clearRiskLevel()
The risk level selected for the scanScanConfig.Builder
clearSchedule()
The schedule of the ScanConfig.ScanConfig.Builder
clearStartingUrls()
Required.ScanConfig.Builder
clearStaticIpScan()
Whether the scan configuration has enabled static IP address scan feature.ScanConfig.Builder
clearUserAgent()
The user agent used during scanning.ScanConfig.Builder
clone()
ScanConfig.Authentication
getAuthentication()
The authentication configuration.ScanConfig.Authentication.Builder
getAuthenticationBuilder()
The authentication configuration.ScanConfig.AuthenticationOrBuilder
getAuthenticationOrBuilder()
The authentication configuration.String
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.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_urlsint
getBlacklistPatternsCount()
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.ProtocolStringList
getBlacklistPatternsList()
The excluded URL patterns as described in https://cloud.google.com/security-command-center/docs/how-to-use-web-security-scanner#excluding_urlsScanConfig
getDefaultInstanceForType()
static com.google.protobuf.Descriptors.Descriptor
getDescriptor()
com.google.protobuf.Descriptors.Descriptor
getDescriptorForType()
String
getDisplayName()
Required.com.google.protobuf.ByteString
getDisplayNameBytes()
Required.ScanConfig.ExportToSecurityCommandCenter
getExportToSecurityCommandCenter()
Controls export of scan configurations and results to Security Command Center.int
getExportToSecurityCommandCenterValue()
Controls export of scan configurations and results to Security Command Center.boolean
getIgnoreHttpStatusErrors()
Whether to keep scanning even if most requests return HTTP error codes.boolean
getManagedScan()
Whether the scan config is managed by Web Security Scanner, output only.int
getMaxQps()
The maximum QPS during scanning.String
getName()
The resource name of the ScanConfig.com.google.protobuf.ByteString
getNameBytes()
The resource name of the ScanConfig.ScanConfig.RiskLevel
getRiskLevel()
The risk level selected for the scanint
getRiskLevelValue()
The risk level selected for the scanScanConfig.Schedule
getSchedule()
The schedule of the ScanConfig.ScanConfig.Schedule.Builder
getScheduleBuilder()
The schedule of the ScanConfig.ScanConfig.ScheduleOrBuilder
getScheduleOrBuilder()
The schedule of the ScanConfig.String
getStartingUrls(int index)
Required.com.google.protobuf.ByteString
getStartingUrlsBytes(int index)
Required.int
getStartingUrlsCount()
Required.com.google.protobuf.ProtocolStringList
getStartingUrlsList()
Required.boolean
getStaticIpScan()
Whether the scan configuration has enabled static IP address scan feature.ScanConfig.UserAgent
getUserAgent()
The user agent used during scanning.int
getUserAgentValue()
The user agent used during scanning.boolean
hasAuthentication()
The authentication configuration.boolean
hasSchedule()
The schedule of the ScanConfig.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable()
boolean
isInitialized()
ScanConfig.Builder
mergeAuthentication(ScanConfig.Authentication value)
The authentication configuration.ScanConfig.Builder
mergeFrom(ScanConfig other)
ScanConfig.Builder
mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
ScanConfig.Builder
mergeFrom(com.google.protobuf.Message other)
ScanConfig.Builder
mergeSchedule(ScanConfig.Schedule value)
The schedule of the ScanConfig.ScanConfig.Builder
mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
ScanConfig.Builder
setAuthentication(ScanConfig.Authentication value)
The authentication configuration.ScanConfig.Builder
setAuthentication(ScanConfig.Authentication.Builder builderForValue)
The authentication configuration.ScanConfig.Builder
setBlacklistPatterns(int index, String value)
The excluded URL patterns as described in https://cloud.google.com/security-command-center/docs/how-to-use-web-security-scanner#excluding_urlsScanConfig.Builder
setDisplayName(String value)
Required.ScanConfig.Builder
setDisplayNameBytes(com.google.protobuf.ByteString value)
Required.ScanConfig.Builder
setExportToSecurityCommandCenter(ScanConfig.ExportToSecurityCommandCenter value)
Controls export of scan configurations and results to Security Command Center.ScanConfig.Builder
setExportToSecurityCommandCenterValue(int value)
Controls export of scan configurations and results to Security Command Center.ScanConfig.Builder
setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
ScanConfig.Builder
setIgnoreHttpStatusErrors(boolean value)
Whether to keep scanning even if most requests return HTTP error codes.ScanConfig.Builder
setManagedScan(boolean value)
Whether the scan config is managed by Web Security Scanner, output only.ScanConfig.Builder
setMaxQps(int value)
The maximum QPS during scanning.ScanConfig.Builder
setName(String value)
The resource name of the ScanConfig.ScanConfig.Builder
setNameBytes(com.google.protobuf.ByteString value)
The resource name of the ScanConfig.ScanConfig.Builder
setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
ScanConfig.Builder
setRiskLevel(ScanConfig.RiskLevel value)
The risk level selected for the scanScanConfig.Builder
setRiskLevelValue(int value)
The risk level selected for the scanScanConfig.Builder
setSchedule(ScanConfig.Schedule value)
The schedule of the ScanConfig.ScanConfig.Builder
setSchedule(ScanConfig.Schedule.Builder builderForValue)
The schedule of the ScanConfig.ScanConfig.Builder
setStartingUrls(int index, String value)
Required.ScanConfig.Builder
setStaticIpScan(boolean value)
Whether the scan configuration has enabled static IP address scan feature.ScanConfig.Builder
setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
ScanConfig.Builder
setUserAgent(ScanConfig.UserAgent value)
The user agent used during scanning.ScanConfig.Builder
setUserAgentValue(int value)
The user agent used during scanning.-
Methods inherited from class com.google.protobuf.GeneratedMessageV3.Builder
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setUnknownFieldSetBuilder, setUnknownFieldsProto3
-
Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString
-
Methods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageException
-
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
-
-
-
Method Detail
-
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.Builder<ScanConfig.Builder>
-
clear
public ScanConfig.Builder clear()
- Specified by:
clear
in interfacecom.google.protobuf.Message.Builder
- Specified by:
clear
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
clear
in classcom.google.protobuf.GeneratedMessageV3.Builder<ScanConfig.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
- Specified by:
getDescriptorForType
in interfacecom.google.protobuf.Message.Builder
- Specified by:
getDescriptorForType
in interfacecom.google.protobuf.MessageOrBuilder
- Overrides:
getDescriptorForType
in classcom.google.protobuf.GeneratedMessageV3.Builder<ScanConfig.Builder>
-
getDefaultInstanceForType
public ScanConfig getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageOrBuilder
-
build
public ScanConfig build()
- Specified by:
build
in interfacecom.google.protobuf.Message.Builder
- Specified by:
build
in interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public ScanConfig buildPartial()
- Specified by:
buildPartial
in interfacecom.google.protobuf.Message.Builder
- Specified by:
buildPartial
in interfacecom.google.protobuf.MessageLite.Builder
-
clone
public ScanConfig.Builder clone()
- Specified by:
clone
in interfacecom.google.protobuf.Message.Builder
- Specified by:
clone
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
clone
in classcom.google.protobuf.GeneratedMessageV3.Builder<ScanConfig.Builder>
-
setField
public ScanConfig.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
setField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setField
in classcom.google.protobuf.GeneratedMessageV3.Builder<ScanConfig.Builder>
-
clearField
public ScanConfig.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
- Specified by:
clearField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
clearField
in classcom.google.protobuf.GeneratedMessageV3.Builder<ScanConfig.Builder>
-
clearOneof
public ScanConfig.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
- Specified by:
clearOneof
in interfacecom.google.protobuf.Message.Builder
- Overrides:
clearOneof
in classcom.google.protobuf.GeneratedMessageV3.Builder<ScanConfig.Builder>
-
setRepeatedField
public ScanConfig.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
- Specified by:
setRepeatedField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setRepeatedField
in classcom.google.protobuf.GeneratedMessageV3.Builder<ScanConfig.Builder>
-
addRepeatedField
public ScanConfig.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
addRepeatedField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
addRepeatedField
in classcom.google.protobuf.GeneratedMessageV3.Builder<ScanConfig.Builder>
-
mergeFrom
public ScanConfig.Builder mergeFrom(com.google.protobuf.Message other)
- Specified by:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeFrom
in classcom.google.protobuf.AbstractMessage.Builder<ScanConfig.Builder>
-
mergeFrom
public ScanConfig.Builder mergeFrom(ScanConfig other)
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitialized
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Overrides:
isInitialized
in classcom.google.protobuf.GeneratedMessageV3.Builder<ScanConfig.Builder>
-
mergeFrom
public ScanConfig.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Specified by:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Specified by:
mergeFrom
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
mergeFrom
in classcom.google.protobuf.AbstractMessage.Builder<ScanConfig.Builder>
- Throws:
IOException
-
getName
public String 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:
getName
in 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:
getNameBytes
in interfaceScanConfigOrBuilder
- Returns:
- The bytes for name.
-
setName
public ScanConfig.Builder setName(String value)
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;
- Parameters:
value
- The name to set.- Returns:
- This builder for chaining.
-
clearName
public ScanConfig.Builder clearName()
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;
- Returns:
- This builder for chaining.
-
setNameBytes
public ScanConfig.Builder setNameBytes(com.google.protobuf.ByteString value)
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;
- Parameters:
value
- The bytes for name to set.- Returns:
- This builder for chaining.
-
getDisplayName
public String getDisplayName()
Required. The user provided display name of the ScanConfig.
string display_name = 2;
- Specified by:
getDisplayName
in 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:
getDisplayNameBytes
in interfaceScanConfigOrBuilder
- Returns:
- The bytes for displayName.
-
setDisplayName
public ScanConfig.Builder setDisplayName(String value)
Required. The user provided display name of the ScanConfig.
string display_name = 2;
- Parameters:
value
- The displayName to set.- Returns:
- This builder for chaining.
-
clearDisplayName
public ScanConfig.Builder clearDisplayName()
Required. The user provided display name of the ScanConfig.
string display_name = 2;
- Returns:
- This builder for chaining.
-
setDisplayNameBytes
public ScanConfig.Builder setDisplayNameBytes(com.google.protobuf.ByteString value)
Required. The user provided display name of the ScanConfig.
string display_name = 2;
- Parameters:
value
- The bytes for displayName to set.- Returns:
- This builder for chaining.
-
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:
getMaxQps
in interfaceScanConfigOrBuilder
- Returns:
- The maxQps.
-
setMaxQps
public ScanConfig.Builder setMaxQps(int value)
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;
- Parameters:
value
- The maxQps to set.- Returns:
- This builder for chaining.
-
clearMaxQps
public ScanConfig.Builder clearMaxQps()
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;
- Returns:
- This builder for chaining.
-
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:
getStartingUrlsList
in 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:
getStartingUrlsCount
in interfaceScanConfigOrBuilder
- Returns:
- The count of startingUrls.
-
getStartingUrls
public String getStartingUrls(int index)
Required. The starting URLs from which the scanner finds site pages.
repeated string starting_urls = 4;
- Specified by:
getStartingUrls
in 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:
getStartingUrlsBytes
in interfaceScanConfigOrBuilder
- Parameters:
index
- The index of the value to return.- Returns:
- The bytes of the startingUrls at the given index.
-
setStartingUrls
public ScanConfig.Builder setStartingUrls(int index, String value)
Required. The starting URLs from which the scanner finds site pages.
repeated string starting_urls = 4;
- Parameters:
index
- The index to set the value at.value
- The startingUrls to set.- Returns:
- This builder for chaining.
-
addStartingUrls
public ScanConfig.Builder addStartingUrls(String value)
Required. The starting URLs from which the scanner finds site pages.
repeated string starting_urls = 4;
- Parameters:
value
- The startingUrls to add.- Returns:
- This builder for chaining.
-
addAllStartingUrls
public ScanConfig.Builder addAllStartingUrls(Iterable<String> values)
Required. The starting URLs from which the scanner finds site pages.
repeated string starting_urls = 4;
- Parameters:
values
- The startingUrls to add.- Returns:
- This builder for chaining.
-
clearStartingUrls
public ScanConfig.Builder clearStartingUrls()
Required. The starting URLs from which the scanner finds site pages.
repeated string starting_urls = 4;
- Returns:
- This builder for chaining.
-
addStartingUrlsBytes
public ScanConfig.Builder addStartingUrlsBytes(com.google.protobuf.ByteString value)
Required. The starting URLs from which the scanner finds site pages.
repeated string starting_urls = 4;
- Parameters:
value
- The bytes of the startingUrls to add.- Returns:
- This builder for chaining.
-
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:
hasAuthentication
in interfaceScanConfigOrBuilder
- Returns:
- Whether the authentication field is set.
-
getAuthentication
public ScanConfig.Authentication getAuthentication()
The authentication configuration. If specified, service will use the authentication configuration during scanning.
.google.cloud.websecurityscanner.v1.ScanConfig.Authentication authentication = 5;
- Specified by:
getAuthentication
in interfaceScanConfigOrBuilder
- Returns:
- The authentication.
-
setAuthentication
public ScanConfig.Builder setAuthentication(ScanConfig.Authentication value)
The authentication configuration. If specified, service will use the authentication configuration during scanning.
.google.cloud.websecurityscanner.v1.ScanConfig.Authentication authentication = 5;
-
setAuthentication
public ScanConfig.Builder setAuthentication(ScanConfig.Authentication.Builder builderForValue)
The authentication configuration. If specified, service will use the authentication configuration during scanning.
.google.cloud.websecurityscanner.v1.ScanConfig.Authentication authentication = 5;
-
mergeAuthentication
public ScanConfig.Builder mergeAuthentication(ScanConfig.Authentication value)
The authentication configuration. If specified, service will use the authentication configuration during scanning.
.google.cloud.websecurityscanner.v1.ScanConfig.Authentication authentication = 5;
-
clearAuthentication
public ScanConfig.Builder clearAuthentication()
The authentication configuration. If specified, service will use the authentication configuration during scanning.
.google.cloud.websecurityscanner.v1.ScanConfig.Authentication authentication = 5;
-
getAuthenticationBuilder
public ScanConfig.Authentication.Builder getAuthenticationBuilder()
The authentication configuration. If specified, service will use the authentication configuration during scanning.
.google.cloud.websecurityscanner.v1.ScanConfig.Authentication authentication = 5;
-
getAuthenticationOrBuilder
public ScanConfig.AuthenticationOrBuilder getAuthenticationOrBuilder()
The authentication configuration. If specified, service will use the authentication configuration during scanning.
.google.cloud.websecurityscanner.v1.ScanConfig.Authentication authentication = 5;
- Specified by:
getAuthenticationOrBuilder
in interfaceScanConfigOrBuilder
-
getUserAgentValue
public int getUserAgentValue()
The user agent used during scanning.
.google.cloud.websecurityscanner.v1.ScanConfig.UserAgent user_agent = 6;
- Specified by:
getUserAgentValue
in interfaceScanConfigOrBuilder
- Returns:
- The enum numeric value on the wire for userAgent.
-
setUserAgentValue
public ScanConfig.Builder setUserAgentValue(int value)
The user agent used during scanning.
.google.cloud.websecurityscanner.v1.ScanConfig.UserAgent user_agent = 6;
- Parameters:
value
- The enum numeric value on the wire for userAgent to set.- Returns:
- This builder for chaining.
-
getUserAgent
public ScanConfig.UserAgent getUserAgent()
The user agent used during scanning.
.google.cloud.websecurityscanner.v1.ScanConfig.UserAgent user_agent = 6;
- Specified by:
getUserAgent
in interfaceScanConfigOrBuilder
- Returns:
- The userAgent.
-
setUserAgent
public ScanConfig.Builder setUserAgent(ScanConfig.UserAgent value)
The user agent used during scanning.
.google.cloud.websecurityscanner.v1.ScanConfig.UserAgent user_agent = 6;
- Parameters:
value
- The userAgent to set.- Returns:
- This builder for chaining.
-
clearUserAgent
public ScanConfig.Builder clearUserAgent()
The user agent used during scanning.
.google.cloud.websecurityscanner.v1.ScanConfig.UserAgent user_agent = 6;
- Returns:
- This builder for chaining.
-
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:
getBlacklistPatternsList
in 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:
getBlacklistPatternsCount
in interfaceScanConfigOrBuilder
- Returns:
- The count of blacklistPatterns.
-
getBlacklistPatterns
public String 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_urls
repeated string blacklist_patterns = 7;
- Specified by:
getBlacklistPatterns
in 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:
getBlacklistPatternsBytes
in interfaceScanConfigOrBuilder
- Parameters:
index
- The index of the value to return.- Returns:
- The bytes of the blacklistPatterns at the given index.
-
setBlacklistPatterns
public ScanConfig.Builder setBlacklistPatterns(int index, String value)
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;
- Parameters:
index
- The index to set the value at.value
- The blacklistPatterns to set.- Returns:
- This builder for chaining.
-
addBlacklistPatterns
public ScanConfig.Builder addBlacklistPatterns(String value)
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;
- Parameters:
value
- The blacklistPatterns to add.- Returns:
- This builder for chaining.
-
addAllBlacklistPatterns
public ScanConfig.Builder addAllBlacklistPatterns(Iterable<String> values)
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;
- Parameters:
values
- The blacklistPatterns to add.- Returns:
- This builder for chaining.
-
clearBlacklistPatterns
public ScanConfig.Builder clearBlacklistPatterns()
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;
- Returns:
- This builder for chaining.
-
addBlacklistPatternsBytes
public ScanConfig.Builder addBlacklistPatternsBytes(com.google.protobuf.ByteString value)
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;
- Parameters:
value
- The bytes of the blacklistPatterns to add.- Returns:
- This builder for chaining.
-
hasSchedule
public boolean hasSchedule()
The schedule of the ScanConfig.
.google.cloud.websecurityscanner.v1.ScanConfig.Schedule schedule = 8;
- Specified by:
hasSchedule
in interfaceScanConfigOrBuilder
- Returns:
- Whether the schedule field is set.
-
getSchedule
public ScanConfig.Schedule getSchedule()
The schedule of the ScanConfig.
.google.cloud.websecurityscanner.v1.ScanConfig.Schedule schedule = 8;
- Specified by:
getSchedule
in interfaceScanConfigOrBuilder
- Returns:
- The schedule.
-
setSchedule
public ScanConfig.Builder setSchedule(ScanConfig.Schedule value)
The schedule of the ScanConfig.
.google.cloud.websecurityscanner.v1.ScanConfig.Schedule schedule = 8;
-
setSchedule
public ScanConfig.Builder setSchedule(ScanConfig.Schedule.Builder builderForValue)
The schedule of the ScanConfig.
.google.cloud.websecurityscanner.v1.ScanConfig.Schedule schedule = 8;
-
mergeSchedule
public ScanConfig.Builder mergeSchedule(ScanConfig.Schedule value)
The schedule of the ScanConfig.
.google.cloud.websecurityscanner.v1.ScanConfig.Schedule schedule = 8;
-
clearSchedule
public ScanConfig.Builder clearSchedule()
The schedule of the ScanConfig.
.google.cloud.websecurityscanner.v1.ScanConfig.Schedule schedule = 8;
-
getScheduleBuilder
public ScanConfig.Schedule.Builder getScheduleBuilder()
The schedule of the ScanConfig.
.google.cloud.websecurityscanner.v1.ScanConfig.Schedule schedule = 8;
-
getScheduleOrBuilder
public ScanConfig.ScheduleOrBuilder getScheduleOrBuilder()
The schedule of the ScanConfig.
.google.cloud.websecurityscanner.v1.ScanConfig.Schedule schedule = 8;
- Specified by:
getScheduleOrBuilder
in 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:
getExportToSecurityCommandCenterValue
in interfaceScanConfigOrBuilder
- Returns:
- The enum numeric value on the wire for exportToSecurityCommandCenter.
-
setExportToSecurityCommandCenterValue
public ScanConfig.Builder setExportToSecurityCommandCenterValue(int value)
Controls export of scan configurations and results to Security Command Center.
.google.cloud.websecurityscanner.v1.ScanConfig.ExportToSecurityCommandCenter export_to_security_command_center = 10;
- Parameters:
value
- The enum numeric value on the wire for exportToSecurityCommandCenter to set.- Returns:
- This builder for chaining.
-
getExportToSecurityCommandCenter
public ScanConfig.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:
getExportToSecurityCommandCenter
in interfaceScanConfigOrBuilder
- Returns:
- The exportToSecurityCommandCenter.
-
setExportToSecurityCommandCenter
public ScanConfig.Builder setExportToSecurityCommandCenter(ScanConfig.ExportToSecurityCommandCenter value)
Controls export of scan configurations and results to Security Command Center.
.google.cloud.websecurityscanner.v1.ScanConfig.ExportToSecurityCommandCenter export_to_security_command_center = 10;
- Parameters:
value
- The exportToSecurityCommandCenter to set.- Returns:
- This builder for chaining.
-
clearExportToSecurityCommandCenter
public ScanConfig.Builder clearExportToSecurityCommandCenter()
Controls export of scan configurations and results to Security Command Center.
.google.cloud.websecurityscanner.v1.ScanConfig.ExportToSecurityCommandCenter export_to_security_command_center = 10;
- Returns:
- This builder for chaining.
-
getRiskLevelValue
public int getRiskLevelValue()
The risk level selected for the scan
.google.cloud.websecurityscanner.v1.ScanConfig.RiskLevel risk_level = 12;
- Specified by:
getRiskLevelValue
in interfaceScanConfigOrBuilder
- Returns:
- The enum numeric value on the wire for riskLevel.
-
setRiskLevelValue
public ScanConfig.Builder setRiskLevelValue(int value)
The risk level selected for the scan
.google.cloud.websecurityscanner.v1.ScanConfig.RiskLevel risk_level = 12;
- Parameters:
value
- The enum numeric value on the wire for riskLevel to set.- Returns:
- This builder for chaining.
-
getRiskLevel
public ScanConfig.RiskLevel getRiskLevel()
The risk level selected for the scan
.google.cloud.websecurityscanner.v1.ScanConfig.RiskLevel risk_level = 12;
- Specified by:
getRiskLevel
in interfaceScanConfigOrBuilder
- Returns:
- The riskLevel.
-
setRiskLevel
public ScanConfig.Builder setRiskLevel(ScanConfig.RiskLevel value)
The risk level selected for the scan
.google.cloud.websecurityscanner.v1.ScanConfig.RiskLevel risk_level = 12;
- Parameters:
value
- The riskLevel to set.- Returns:
- This builder for chaining.
-
clearRiskLevel
public ScanConfig.Builder clearRiskLevel()
The risk level selected for the scan
.google.cloud.websecurityscanner.v1.ScanConfig.RiskLevel risk_level = 12;
- Returns:
- This builder for chaining.
-
getManagedScan
public boolean getManagedScan()
Whether the scan config is managed by Web Security Scanner, output only.
bool managed_scan = 13;
- Specified by:
getManagedScan
in interfaceScanConfigOrBuilder
- Returns:
- The managedScan.
-
setManagedScan
public ScanConfig.Builder setManagedScan(boolean value)
Whether the scan config is managed by Web Security Scanner, output only.
bool managed_scan = 13;
- Parameters:
value
- The managedScan to set.- Returns:
- This builder for chaining.
-
clearManagedScan
public ScanConfig.Builder clearManagedScan()
Whether the scan config is managed by Web Security Scanner, output only.
bool managed_scan = 13;
- Returns:
- This builder for chaining.
-
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:
getStaticIpScan
in interfaceScanConfigOrBuilder
- Returns:
- The staticIpScan.
-
setStaticIpScan
public ScanConfig.Builder setStaticIpScan(boolean value)
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;
- Parameters:
value
- The staticIpScan to set.- Returns:
- This builder for chaining.
-
clearStaticIpScan
public ScanConfig.Builder clearStaticIpScan()
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;
- Returns:
- This builder for chaining.
-
getIgnoreHttpStatusErrors
public boolean getIgnoreHttpStatusErrors()
Whether to keep scanning even if most requests return HTTP error codes.
bool ignore_http_status_errors = 15;
- Specified by:
getIgnoreHttpStatusErrors
in interfaceScanConfigOrBuilder
- Returns:
- The ignoreHttpStatusErrors.
-
setIgnoreHttpStatusErrors
public ScanConfig.Builder setIgnoreHttpStatusErrors(boolean value)
Whether to keep scanning even if most requests return HTTP error codes.
bool ignore_http_status_errors = 15;
- Parameters:
value
- The ignoreHttpStatusErrors to set.- Returns:
- This builder for chaining.
-
clearIgnoreHttpStatusErrors
public ScanConfig.Builder clearIgnoreHttpStatusErrors()
Whether to keep scanning even if most requests return HTTP error codes.
bool ignore_http_status_errors = 15;
- Returns:
- This builder for chaining.
-
setUnknownFields
public final ScanConfig.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
setUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<ScanConfig.Builder>
-
mergeUnknownFields
public final ScanConfig.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
mergeUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<ScanConfig.Builder>
-
-