Class ScanConfig (2.2.4)

public final class ScanConfig extends GeneratedMessageV3 implements ScanConfigOrBuilder

A ScanConfig resource contains the configurations to launch a scan.

Protobuf type google.cloud.websecurityscanner.v1beta.ScanConfig

Implements

ScanConfigOrBuilder

Static Fields

AUTHENTICATION_FIELD_NUMBER

public static final int AUTHENTICATION_FIELD_NUMBER
Field Value
TypeDescription
int

BLACKLIST_PATTERNS_FIELD_NUMBER

public static final int BLACKLIST_PATTERNS_FIELD_NUMBER
Field Value
TypeDescription
int

DISPLAY_NAME_FIELD_NUMBER

public static final int DISPLAY_NAME_FIELD_NUMBER
Field Value
TypeDescription
int

EXPORT_TO_SECURITY_COMMAND_CENTER_FIELD_NUMBER

public static final int EXPORT_TO_SECURITY_COMMAND_CENTER_FIELD_NUMBER
Field Value
TypeDescription
int

LATEST_RUN_FIELD_NUMBER

public static final int LATEST_RUN_FIELD_NUMBER
Field Value
TypeDescription
int

MAX_QPS_FIELD_NUMBER

public static final int MAX_QPS_FIELD_NUMBER
Field Value
TypeDescription
int

NAME_FIELD_NUMBER

public static final int NAME_FIELD_NUMBER
Field Value
TypeDescription
int

RISK_LEVEL_FIELD_NUMBER

public static final int RISK_LEVEL_FIELD_NUMBER
Field Value
TypeDescription
int

SCHEDULE_FIELD_NUMBER

public static final int SCHEDULE_FIELD_NUMBER
Field Value
TypeDescription
int

STARTING_URLS_FIELD_NUMBER

public static final int STARTING_URLS_FIELD_NUMBER
Field Value
TypeDescription
int

TARGET_PLATFORMS_FIELD_NUMBER

public static final int TARGET_PLATFORMS_FIELD_NUMBER
Field Value
TypeDescription
int

USER_AGENT_FIELD_NUMBER

public static final int USER_AGENT_FIELD_NUMBER
Field Value
TypeDescription
int

Static Methods

getDefaultInstance()

public static ScanConfig getDefaultInstance()
Returns
TypeDescription
ScanConfig

getDescriptor()

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

newBuilder()

public static ScanConfig.Builder newBuilder()
Returns
TypeDescription
ScanConfig.Builder

newBuilder(ScanConfig prototype)

public static ScanConfig.Builder newBuilder(ScanConfig prototype)
Parameter
NameDescription
prototypeScanConfig
Returns
TypeDescription
ScanConfig.Builder

parseDelimitedFrom(InputStream input)

public static ScanConfig parseDelimitedFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
ScanConfig
Exceptions
TypeDescription
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static ScanConfig parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
ScanConfig
Exceptions
TypeDescription
IOException

parseFrom(byte[] data)

public static ScanConfig parseFrom(byte[] data)
Parameter
NameDescription
databyte[]
Returns
TypeDescription
ScanConfig
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static ScanConfig parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
databyte[]
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
ScanConfig
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data)

public static ScanConfig parseFrom(ByteString data)
Parameter
NameDescription
dataByteString
Returns
TypeDescription
ScanConfig
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static ScanConfig parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteString
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
ScanConfig
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static ScanConfig parseFrom(CodedInputStream input)
Parameter
NameDescription
inputCodedInputStream
Returns
TypeDescription
ScanConfig
Exceptions
TypeDescription
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static ScanConfig parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
ScanConfig
Exceptions
TypeDescription
IOException

parseFrom(InputStream input)

public static ScanConfig parseFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
ScanConfig
Exceptions
TypeDescription
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static ScanConfig parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
ScanConfig
Exceptions
TypeDescription
IOException

parseFrom(ByteBuffer data)

public static ScanConfig parseFrom(ByteBuffer data)
Parameter
NameDescription
dataByteBuffer
Returns
TypeDescription
ScanConfig
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static ScanConfig parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteBuffer
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
ScanConfig
Exceptions
TypeDescription
InvalidProtocolBufferException

parser()

public static Parser<ScanConfig> parser()
Returns
TypeDescription
Parser<ScanConfig>

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
NameDescription
objObject
Returns
TypeDescription
boolean
Overrides

getAuthentication()

public ScanConfig.Authentication getAuthentication()

The authentication configuration. If specified, service will use the authentication configuration during scanning.

.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication authentication = 5;

Returns
TypeDescription
ScanConfig.Authentication

The authentication.

getAuthenticationOrBuilder()

public ScanConfig.AuthenticationOrBuilder getAuthenticationOrBuilder()

The authentication configuration. If specified, service will use the authentication configuration during scanning.

.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication authentication = 5;

Returns
TypeDescription
ScanConfig.AuthenticationOrBuilder

getBlacklistPatterns(int index)

public String getBlacklistPatterns(int index)

The blacklist URL patterns as described in https://cloud.google.com/security-scanner/docs/excluded-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 blacklist URL patterns as described in https://cloud.google.com/security-scanner/docs/excluded-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 blacklist URL patterns as described in https://cloud.google.com/security-scanner/docs/excluded-urls

repeated string blacklist_patterns = 7;

Returns
TypeDescription
int

The count of blacklistPatterns.

getBlacklistPatternsList()

public ProtocolStringList getBlacklistPatternsList()

The blacklist URL patterns as described in https://cloud.google.com/security-scanner/docs/excluded-urls

repeated string blacklist_patterns = 7;

Returns
TypeDescription
ProtocolStringList

A list containing the blacklistPatterns.

getDefaultInstanceForType()

public ScanConfig getDefaultInstanceForType()
Returns
TypeDescription
ScanConfig

getDisplayName()

public String getDisplayName()

Required. The user provided display name of the ScanConfig.

string display_name = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
String

The displayName.

getDisplayNameBytes()

public ByteString getDisplayNameBytes()

Required. The user provided display name of the ScanConfig.

string display_name = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
ByteString

The bytes for displayName.

getExportToSecurityCommandCenter()

public ScanConfig.ExportToSecurityCommandCenter getExportToSecurityCommandCenter()

Controls export of scan configurations and results to Cloud Security Command Center.

.google.cloud.websecurityscanner.v1beta.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 Cloud Security Command Center.

.google.cloud.websecurityscanner.v1beta.ScanConfig.ExportToSecurityCommandCenter export_to_security_command_center = 10;

Returns
TypeDescription
int

The enum numeric value on the wire for exportToSecurityCommandCenter.

getLatestRun()

public ScanRun getLatestRun()

Latest ScanRun if available.

.google.cloud.websecurityscanner.v1beta.ScanRun latest_run = 11;

Returns
TypeDescription
ScanRun

The latestRun.

getLatestRunOrBuilder()

public ScanRunOrBuilder getLatestRunOrBuilder()

Latest ScanRun if available.

.google.cloud.websecurityscanner.v1beta.ScanRun latest_run = 11;

Returns
TypeDescription
ScanRunOrBuilder

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.

getParserForType()

public Parser<ScanConfig> getParserForType()
Returns
TypeDescription
Parser<ScanConfig>
Overrides

getRiskLevel()

public ScanConfig.RiskLevel getRiskLevel()

The risk level selected for the scan

.google.cloud.websecurityscanner.v1beta.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.v1beta.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.v1beta.ScanConfig.Schedule schedule = 8;

Returns
TypeDescription
ScanConfig.Schedule

The schedule.

getScheduleOrBuilder()

public ScanConfig.ScheduleOrBuilder getScheduleOrBuilder()

The schedule of the ScanConfig.

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

Returns
TypeDescription
ScanConfig.ScheduleOrBuilder

getSerializedSize()

public int getSerializedSize()
Returns
TypeDescription
int
Overrides

getStartingUrls(int index)

public String getStartingUrls(int index)

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

repeated string starting_urls = 4 [(.google.api.field_behavior) = REQUIRED];

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 [(.google.api.field_behavior) = REQUIRED];

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 [(.google.api.field_behavior) = REQUIRED];

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 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
ProtocolStringList

A list containing the startingUrls.

getTargetPlatforms(int index)

public ScanConfig.TargetPlatform getTargetPlatforms(int index)

Set of Cloud Platforms targeted by the scan. If empty, APP_ENGINE will be used as a default.

repeated .google.cloud.websecurityscanner.v1beta.ScanConfig.TargetPlatform target_platforms = 9;

Parameter
NameDescription
indexint

The index of the element to return.

Returns
TypeDescription
ScanConfig.TargetPlatform

The targetPlatforms at the given index.

getTargetPlatformsCount()

public int getTargetPlatformsCount()

Set of Cloud Platforms targeted by the scan. If empty, APP_ENGINE will be used as a default.

repeated .google.cloud.websecurityscanner.v1beta.ScanConfig.TargetPlatform target_platforms = 9;

Returns
TypeDescription
int

The count of targetPlatforms.

getTargetPlatformsList()

public List<ScanConfig.TargetPlatform> getTargetPlatformsList()

Set of Cloud Platforms targeted by the scan. If empty, APP_ENGINE will be used as a default.

repeated .google.cloud.websecurityscanner.v1beta.ScanConfig.TargetPlatform target_platforms = 9;

Returns
TypeDescription
List<TargetPlatform>

A list containing the targetPlatforms.

getTargetPlatformsValue(int index)

public int getTargetPlatformsValue(int index)

Set of Cloud Platforms targeted by the scan. If empty, APP_ENGINE will be used as a default.

repeated .google.cloud.websecurityscanner.v1beta.ScanConfig.TargetPlatform target_platforms = 9;

Parameter
NameDescription
indexint

The index of the value to return.

Returns
TypeDescription
int

The enum numeric value on the wire of targetPlatforms at the given index.

getTargetPlatformsValueList()

public List<Integer> getTargetPlatformsValueList()

Set of Cloud Platforms targeted by the scan. If empty, APP_ENGINE will be used as a default.

repeated .google.cloud.websecurityscanner.v1beta.ScanConfig.TargetPlatform target_platforms = 9;

Returns
TypeDescription
List<Integer>

A list containing the enum numeric values on the wire for targetPlatforms.

getUnknownFields()

public final UnknownFieldSet getUnknownFields()
Returns
TypeDescription
UnknownFieldSet
Overrides

getUserAgent()

public ScanConfig.UserAgent getUserAgent()

The user agent used during scanning.

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

Returns
TypeDescription
ScanConfig.UserAgent

The userAgent.

getUserAgentValue()

public int getUserAgentValue()

The user agent used during scanning.

.google.cloud.websecurityscanner.v1beta.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.v1beta.ScanConfig.Authentication authentication = 5;

Returns
TypeDescription
boolean

Whether the authentication field is set.

hasLatestRun()

public boolean hasLatestRun()

Latest ScanRun if available.

.google.cloud.websecurityscanner.v1beta.ScanRun latest_run = 11;

Returns
TypeDescription
boolean

Whether the latestRun field is set.

hasSchedule()

public boolean hasSchedule()

The schedule of the ScanConfig.

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

Returns
TypeDescription
boolean

Whether the schedule field is set.

hashCode()

public int hashCode()
Returns
TypeDescription
int
Overrides

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

newBuilderForType()

public ScanConfig.Builder newBuilderForType()
Returns
TypeDescription
ScanConfig.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protected ScanConfig.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
NameDescription
parentBuilderParent
Returns
TypeDescription
ScanConfig.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
NameDescription
unusedUnusedPrivateParameter
Returns
TypeDescription
Object
Overrides

toBuilder()

public ScanConfig.Builder toBuilder()
Returns
TypeDescription
ScanConfig.Builder

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
NameDescription
outputCodedOutputStream
Overrides Exceptions
TypeDescription
IOException