Class ScanConfig.Builder (2.2.1)

public static final class ScanConfig.Builder extends GeneratedMessageV3.Builder<ScanConfig.Builder> implements ScanConfigOrBuilder

A ScanConfig resource contains the configurations to launch a scan.

Protobuf type google.cloud.websecurityscanner.v1.ScanConfig

Implements

ScanConfigOrBuilder

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
TypeDescription
Descriptor

Methods

addAllBlacklistPatterns(Iterable<String> values)

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;

Parameter
NameDescription
valuesIterable<String>

The blacklistPatterns to add.

Returns
TypeDescription
ScanConfig.Builder

This builder for chaining.

addAllStartingUrls(Iterable<String> values)

public ScanConfig.Builder addAllStartingUrls(Iterable<String> values)

Required. The starting URLs from which the scanner finds site pages.

repeated string starting_urls = 4;

Parameter
NameDescription
valuesIterable<String>

The startingUrls to add.

Returns
TypeDescription
ScanConfig.Builder

This builder for chaining.

addBlacklistPatterns(String value)

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;

Parameter
NameDescription
valueString

The blacklistPatterns to add.

Returns
TypeDescription
ScanConfig.Builder

This builder for chaining.

addBlacklistPatternsBytes(ByteString value)

public ScanConfig.Builder addBlacklistPatternsBytes(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;

Parameter
NameDescription
valueByteString

The bytes of the blacklistPatterns to add.

Returns
TypeDescription
ScanConfig.Builder

This builder for chaining.

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public ScanConfig.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
ScanConfig.Builder
Overrides

addStartingUrls(String value)

public ScanConfig.Builder addStartingUrls(String value)

Required. The starting URLs from which the scanner finds site pages.

repeated string starting_urls = 4;

Parameter
NameDescription
valueString

The startingUrls to add.

Returns
TypeDescription
ScanConfig.Builder

This builder for chaining.

addStartingUrlsBytes(ByteString value)

public ScanConfig.Builder addStartingUrlsBytes(ByteString value)

Required. The starting URLs from which the scanner finds site pages.

repeated string starting_urls = 4;

Parameter
NameDescription
valueByteString

The bytes of the startingUrls to add.

Returns
TypeDescription
ScanConfig.Builder

This builder for chaining.

build()

public ScanConfig build()
Returns
TypeDescription
ScanConfig

buildPartial()

public ScanConfig buildPartial()
Returns
TypeDescription
ScanConfig

clear()

public ScanConfig.Builder clear()
Returns
TypeDescription
ScanConfig.Builder
Overrides

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;

Returns
TypeDescription
ScanConfig.Builder

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
TypeDescription
ScanConfig.Builder

This builder for chaining.

clearDisplayName()

public ScanConfig.Builder clearDisplayName()

Required. The user provided display name of the ScanConfig.

string display_name = 2;

Returns
TypeDescription
ScanConfig.Builder

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
TypeDescription
ScanConfig.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

public ScanConfig.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
ScanConfig.Builder
Overrides

clearManagedScan()

public ScanConfig.Builder clearManagedScan()

Whether the scan config is managed by Web Security Scanner, output only.

bool managed_scan = 13;

Returns
TypeDescription
ScanConfig.Builder

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
TypeDescription
ScanConfig.Builder

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
TypeDescription
ScanConfig.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

public ScanConfig.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
ScanConfig.Builder
Overrides

clearRiskLevel()

public ScanConfig.Builder clearRiskLevel()

The risk level selected for the scan

.google.cloud.websecurityscanner.v1.ScanConfig.RiskLevel risk_level = 12;

Returns
TypeDescription
ScanConfig.Builder

This builder for chaining.

clearSchedule()

public ScanConfig.Builder clearSchedule()

The schedule of the ScanConfig.

.google.cloud.websecurityscanner.v1.ScanConfig.Schedule schedule = 8;

Returns
TypeDescription
ScanConfig.Builder

clearStartingUrls()

public ScanConfig.Builder clearStartingUrls()

Required. The starting URLs from which the scanner finds site pages.

repeated string starting_urls = 4;

Returns
TypeDescription
ScanConfig.Builder

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
TypeDescription
ScanConfig.Builder

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
TypeDescription
ScanConfig.Builder

This builder for chaining.

clone()

public ScanConfig.Builder clone()
Returns
TypeDescription
ScanConfig.Builder
Overrides

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;

Returns
TypeDescription
ScanConfig.Authentication

The authentication.

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;

Returns
TypeDescription
ScanConfig.Authentication.Builder

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;

Returns
TypeDescription
ScanConfig.AuthenticationOrBuilder

getBlacklistPatterns(int index)

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;

Parameter
NameDescription
indexint

The index of the element to return.

Returns
TypeDescription
String

The blacklistPatterns at the given index.

getBlacklistPatternsBytes(int index)

public 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;

Parameter
NameDescription
indexint

The index of the value to return.

Returns
TypeDescription
ByteString

The bytes of the blacklistPatterns at the given index.

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;

Returns
TypeDescription
int

The count of blacklistPatterns.

getBlacklistPatternsList()

public 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;

Returns
TypeDescription
ProtocolStringList

A list containing the blacklistPatterns.

getDefaultInstanceForType()

public ScanConfig getDefaultInstanceForType()
Returns
TypeDescription
ScanConfig

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getDisplayName()

public String getDisplayName()

Required. The user provided display name of the ScanConfig.

string display_name = 2;

Returns
TypeDescription
String

The displayName.

getDisplayNameBytes()

public ByteString getDisplayNameBytes()

Required. The user provided display name of the ScanConfig.

string display_name = 2;

Returns
TypeDescription
ByteString

The bytes for displayName.

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;

Returns
TypeDescription
ScanConfig.ExportToSecurityCommandCenter

The exportToSecurityCommandCenter.

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;

Returns
TypeDescription
int

The enum numeric value on the wire for exportToSecurityCommandCenter.

getManagedScan()

public boolean getManagedScan()

Whether the scan config is managed by Web Security Scanner, output only.

bool managed_scan = 13;

Returns
TypeDescription
boolean

The managedScan.

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;

Returns
TypeDescription
int

The maxQps.

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;

Returns
TypeDescription
String

The name.

getNameBytes()

public 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;

Returns
TypeDescription
ByteString

The bytes for name.

getRiskLevel()

public ScanConfig.RiskLevel getRiskLevel()

The risk level selected for the scan

.google.cloud.websecurityscanner.v1.ScanConfig.RiskLevel risk_level = 12;

Returns
TypeDescription
ScanConfig.RiskLevel

The riskLevel.

getRiskLevelValue()

public int getRiskLevelValue()

The risk level selected for the scan

.google.cloud.websecurityscanner.v1.ScanConfig.RiskLevel risk_level = 12;

Returns
TypeDescription
int

The enum numeric value on the wire for riskLevel.

getSchedule()

public ScanConfig.Schedule getSchedule()

The schedule of the ScanConfig.

.google.cloud.websecurityscanner.v1.ScanConfig.Schedule schedule = 8;

Returns
TypeDescription
ScanConfig.Schedule

The schedule.

getScheduleBuilder()

public ScanConfig.Schedule.Builder getScheduleBuilder()

The schedule of the ScanConfig.

.google.cloud.websecurityscanner.v1.ScanConfig.Schedule schedule = 8;

Returns
TypeDescription
ScanConfig.Schedule.Builder

getScheduleOrBuilder()

public ScanConfig.ScheduleOrBuilder getScheduleOrBuilder()

The schedule of the ScanConfig.

.google.cloud.websecurityscanner.v1.ScanConfig.Schedule schedule = 8;

Returns
TypeDescription
ScanConfig.ScheduleOrBuilder

getStartingUrls(int index)

public String getStartingUrls(int index)

Required. The starting URLs from which the scanner finds site pages.

repeated string starting_urls = 4;

Parameter
NameDescription
indexint

The index of the element to return.

Returns
TypeDescription
String

The startingUrls at the given index.

getStartingUrlsBytes(int index)

public ByteString getStartingUrlsBytes(int index)

Required. The starting URLs from which the scanner finds site pages.

repeated string starting_urls = 4;

Parameter
NameDescription
indexint

The index of the value to return.

Returns
TypeDescription
ByteString

The bytes of the startingUrls at the given index.

getStartingUrlsCount()

public int getStartingUrlsCount()

Required. The starting URLs from which the scanner finds site pages.

repeated string starting_urls = 4;

Returns
TypeDescription
int

The count of startingUrls.

getStartingUrlsList()

public ProtocolStringList getStartingUrlsList()

Required. The starting URLs from which the scanner finds site pages.

repeated string starting_urls = 4;

Returns
TypeDescription
ProtocolStringList

A list containing the startingUrls.

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;

Returns
TypeDescription
boolean

The staticIpScan.

getUserAgent()

public ScanConfig.UserAgent getUserAgent()

The user agent used during scanning.

.google.cloud.websecurityscanner.v1.ScanConfig.UserAgent user_agent = 6;

Returns
TypeDescription
ScanConfig.UserAgent

The userAgent.

getUserAgentValue()

public int getUserAgentValue()

The user agent used during scanning.

.google.cloud.websecurityscanner.v1.ScanConfig.UserAgent user_agent = 6;

Returns
TypeDescription
int

The enum numeric value on the wire for userAgent.

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;

Returns
TypeDescription
boolean

Whether the authentication field is set.

hasSchedule()

public boolean hasSchedule()

The schedule of the ScanConfig.

.google.cloud.websecurityscanner.v1.ScanConfig.Schedule schedule = 8;

Returns
TypeDescription
boolean

Whether the schedule field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeAuthentication(ScanConfig.Authentication value)

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;

Parameter
NameDescription
valueScanConfig.Authentication
Returns
TypeDescription
ScanConfig.Builder

mergeFrom(ScanConfig other)

public ScanConfig.Builder mergeFrom(ScanConfig other)
Parameter
NameDescription
otherScanConfig
Returns
TypeDescription
ScanConfig.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public ScanConfig.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
ScanConfig.Builder
Overrides Exceptions
TypeDescription
IOException

mergeFrom(Message other)

public ScanConfig.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
ScanConfig.Builder
Overrides

mergeSchedule(ScanConfig.Schedule value)

public ScanConfig.Builder mergeSchedule(ScanConfig.Schedule value)

The schedule of the ScanConfig.

.google.cloud.websecurityscanner.v1.ScanConfig.Schedule schedule = 8;

Parameter
NameDescription
valueScanConfig.Schedule
Returns
TypeDescription
ScanConfig.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

public final ScanConfig.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
ScanConfig.Builder
Overrides

setAuthentication(ScanConfig.Authentication value)

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;

Parameter
NameDescription
valueScanConfig.Authentication
Returns
TypeDescription
ScanConfig.Builder

setAuthentication(ScanConfig.Authentication.Builder builderForValue)

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;

Parameter
NameDescription
builderForValueScanConfig.Authentication.Builder
Returns
TypeDescription
ScanConfig.Builder

setBlacklistPatterns(int index, String value)

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
NameDescription
indexint

The index to set the value at.

valueString

The blacklistPatterns to set.

Returns
TypeDescription
ScanConfig.Builder

This builder for chaining.

setDisplayName(String value)

public ScanConfig.Builder setDisplayName(String value)

Required. The user provided display name of the ScanConfig.

string display_name = 2;

Parameter
NameDescription
valueString

The displayName to set.

Returns
TypeDescription
ScanConfig.Builder

This builder for chaining.

setDisplayNameBytes(ByteString value)

public ScanConfig.Builder setDisplayNameBytes(ByteString value)

Required. The user provided display name of the ScanConfig.

string display_name = 2;

Parameter
NameDescription
valueByteString

The bytes for displayName to set.

Returns
TypeDescription
ScanConfig.Builder

This builder for chaining.

setExportToSecurityCommandCenter(ScanConfig.ExportToSecurityCommandCenter value)

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;

Parameter
NameDescription
valueScanConfig.ExportToSecurityCommandCenter

The exportToSecurityCommandCenter to set.

Returns
TypeDescription
ScanConfig.Builder

This builder for chaining.

setExportToSecurityCommandCenterValue(int value)

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;

Parameter
NameDescription
valueint

The enum numeric value on the wire for exportToSecurityCommandCenter to set.

Returns
TypeDescription
ScanConfig.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

public ScanConfig.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
ScanConfig.Builder
Overrides

setManagedScan(boolean value)

public ScanConfig.Builder setManagedScan(boolean value)

Whether the scan config is managed by Web Security Scanner, output only.

bool managed_scan = 13;

Parameter
NameDescription
valueboolean

The managedScan to set.

Returns
TypeDescription
ScanConfig.Builder

This builder for chaining.

setMaxQps(int value)

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;

Parameter
NameDescription
valueint

The maxQps to set.

Returns
TypeDescription
ScanConfig.Builder

This builder for chaining.

setName(String value)

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;

Parameter
NameDescription
valueString

The name to set.

Returns
TypeDescription
ScanConfig.Builder

This builder for chaining.

setNameBytes(ByteString value)

public ScanConfig.Builder setNameBytes(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;

Parameter
NameDescription
valueByteString

The bytes for name to set.

Returns
TypeDescription
ScanConfig.Builder

This builder for chaining.

setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)

public ScanConfig.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
ScanConfig.Builder
Overrides

setRiskLevel(ScanConfig.RiskLevel value)

public ScanConfig.Builder setRiskLevel(ScanConfig.RiskLevel value)

The risk level selected for the scan

.google.cloud.websecurityscanner.v1.ScanConfig.RiskLevel risk_level = 12;

Parameter
NameDescription
valueScanConfig.RiskLevel

The riskLevel to set.

Returns
TypeDescription
ScanConfig.Builder

This builder for chaining.

setRiskLevelValue(int value)

public ScanConfig.Builder setRiskLevelValue(int value)

The risk level selected for the scan

.google.cloud.websecurityscanner.v1.ScanConfig.RiskLevel risk_level = 12;

Parameter
NameDescription
valueint

The enum numeric value on the wire for riskLevel to set.

Returns
TypeDescription
ScanConfig.Builder

This builder for chaining.

setSchedule(ScanConfig.Schedule value)

public ScanConfig.Builder setSchedule(ScanConfig.Schedule value)

The schedule of the ScanConfig.

.google.cloud.websecurityscanner.v1.ScanConfig.Schedule schedule = 8;

Parameter
NameDescription
valueScanConfig.Schedule
Returns
TypeDescription
ScanConfig.Builder

setSchedule(ScanConfig.Schedule.Builder builderForValue)

public ScanConfig.Builder setSchedule(ScanConfig.Schedule.Builder builderForValue)

The schedule of the ScanConfig.

.google.cloud.websecurityscanner.v1.ScanConfig.Schedule schedule = 8;

Parameter
NameDescription
builderForValueScanConfig.Schedule.Builder
Returns
TypeDescription
ScanConfig.Builder

setStartingUrls(int index, String value)

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
NameDescription
indexint

The index to set the value at.

valueString

The startingUrls to set.

Returns
TypeDescription
ScanConfig.Builder

This builder for chaining.

setStaticIpScan(boolean value)

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;

Parameter
NameDescription
valueboolean

The staticIpScan to set.

Returns
TypeDescription
ScanConfig.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

public final ScanConfig.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
ScanConfig.Builder
Overrides

setUserAgent(ScanConfig.UserAgent value)

public ScanConfig.Builder setUserAgent(ScanConfig.UserAgent value)

The user agent used during scanning.

.google.cloud.websecurityscanner.v1.ScanConfig.UserAgent user_agent = 6;

Parameter
NameDescription
valueScanConfig.UserAgent

The userAgent to set.

Returns
TypeDescription
ScanConfig.Builder

This builder for chaining.

setUserAgentValue(int value)

public ScanConfig.Builder setUserAgentValue(int value)

The user agent used during scanning.

.google.cloud.websecurityscanner.v1.ScanConfig.UserAgent user_agent = 6;

Parameter
NameDescription
valueint

The enum numeric value on the wire for userAgent to set.

Returns
TypeDescription
ScanConfig.Builder

This builder for chaining.