Class ScanConfig.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<ScanConfig.Builder>
com.google.cloud.websecurityscanner.v1alpha.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.GeneratedMessage.Builder<ScanConfig.Builder>
implements ScanConfigOrBuilder
A ScanConfig resource contains the configurations to launch a scan. next id: 12Protobuf type
google.cloud.websecurityscanner.v1alpha.ScanConfig-
Method Summary
Modifier and TypeMethodDescriptionaddAllBlacklistPatterns(Iterable<String> values) The blacklist URL patterns as described in https://cloud.google.com/security-scanner/docs/excluded-urlsaddAllStartingUrls(Iterable<String> values) Required.addAllTargetPlatforms(Iterable<? extends ScanConfig.TargetPlatform> values) Set of Cloud Platforms targeted by the scan.addAllTargetPlatformsValue(Iterable<Integer> values) Set of Cloud Platforms targeted by the scan.addBlacklistPatterns(String value) The blacklist URL patterns as described in https://cloud.google.com/security-scanner/docs/excluded-urlsaddBlacklistPatternsBytes(com.google.protobuf.ByteString value) The blacklist URL patterns as described in https://cloud.google.com/security-scanner/docs/excluded-urlsaddStartingUrls(String value) Required.addStartingUrlsBytes(com.google.protobuf.ByteString value) Required.Set of Cloud Platforms targeted by the scan.addTargetPlatformsValue(int value) Set of Cloud Platforms targeted by the scan.build()clear()The authentication configuration.The blacklist URL patterns as described in https://cloud.google.com/security-scanner/docs/excluded-urlsRequired.Latest ScanRun if available.The maximum QPS during scanning.The resource name of the ScanConfig.The schedule of the ScanConfig.Required.Set of Cloud Platforms targeted by the scan.The user agent used during scanning.The authentication configuration.The authentication configuration.The authentication configuration.getBlacklistPatterns(int index) The blacklist URL patterns as described in https://cloud.google.com/security-scanner/docs/excluded-urlscom.google.protobuf.ByteStringgetBlacklistPatternsBytes(int index) The blacklist URL patterns as described in https://cloud.google.com/security-scanner/docs/excluded-urlsintThe blacklist URL patterns as described in https://cloud.google.com/security-scanner/docs/excluded-urlscom.google.protobuf.ProtocolStringListThe blacklist URL patterns as described in https://cloud.google.com/security-scanner/docs/excluded-urlsstatic final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorRequired.com.google.protobuf.ByteStringRequired.Latest ScanRun if available.Latest ScanRun if available.Latest ScanRun if available.intThe maximum QPS during scanning.getName()The resource name of the ScanConfig.com.google.protobuf.ByteStringThe resource name of the ScanConfig.The schedule of the ScanConfig.The schedule of the ScanConfig.The schedule of the ScanConfig.getStartingUrls(int index) Required.com.google.protobuf.ByteStringgetStartingUrlsBytes(int index) Required.intRequired.com.google.protobuf.ProtocolStringListRequired.getTargetPlatforms(int index) Set of Cloud Platforms targeted by the scan.intSet of Cloud Platforms targeted by the scan.Set of Cloud Platforms targeted by the scan.intgetTargetPlatformsValue(int index) Set of Cloud Platforms targeted by the scan.Set of Cloud Platforms targeted by the scan.The user agent used during scanning.intThe user agent used during scanning.booleanThe authentication configuration.booleanLatest ScanRun if available.booleanThe schedule of the ScanConfig.protected com.google.protobuf.GeneratedMessage.FieldAccessorTablefinal booleanThe authentication configuration.mergeFrom(ScanConfig other) mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) mergeLatestRun(ScanRun value) Latest ScanRun if available.mergeSchedule(ScanConfig.Schedule value) The schedule of the ScanConfig.The authentication configuration.setAuthentication(ScanConfig.Authentication.Builder builderForValue) The authentication configuration.setBlacklistPatterns(int index, String value) The blacklist URL patterns as described in https://cloud.google.com/security-scanner/docs/excluded-urlssetDisplayName(String value) Required.setDisplayNameBytes(com.google.protobuf.ByteString value) Required.setLatestRun(ScanRun value) Latest ScanRun if available.setLatestRun(ScanRun.Builder builderForValue) Latest ScanRun if available.setMaxQps(int value) The maximum QPS during scanning.The resource name of the ScanConfig.setNameBytes(com.google.protobuf.ByteString value) The resource name of the ScanConfig.setSchedule(ScanConfig.Schedule value) The schedule of the ScanConfig.setSchedule(ScanConfig.Schedule.Builder builderForValue) The schedule of the ScanConfig.setStartingUrls(int index, String value) Required.setTargetPlatforms(int index, ScanConfig.TargetPlatform value) Set of Cloud Platforms targeted by the scan.setTargetPlatformsValue(int index, int value) Set of Cloud Platforms targeted by the scan.setUserAgent(ScanConfig.UserAgent value) The user agent used during scanning.setUserAgentValue(int value) The user agent used during scanning.Methods inherited from class com.google.protobuf.GeneratedMessage.Builder
addRepeatedField, clearField, clearOneof, clone, getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownFields, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setField, setRepeatedField, setUnknownFields, setUnknownFieldSetBuilder, setUnknownFieldsProto3Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageExceptionMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.Message.Builder
mergeDelimitedFrom, mergeDelimitedFromMethods inherited from interface com.google.protobuf.MessageLite.Builder
mergeFromMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
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.Builder<ScanConfig.Builder>
-
clear
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessage.Builder<ScanConfig.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.Message.Builder- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getDescriptorForTypein classcom.google.protobuf.GeneratedMessage.Builder<ScanConfig.Builder>
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
mergeFrom
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<ScanConfig.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage.Builder<ScanConfig.Builder>
-
mergeFrom
public ScanConfig.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<ScanConfig.Builder>- Throws:
IOException
-
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.
-
setName
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
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
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
Required. The user provided display name of the ScanConfig.
string display_name = 2 [(.google.api.field_behavior) = REQUIRED];- 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 [(.google.api.field_behavior) = REQUIRED];- Specified by:
getDisplayNameBytesin interfaceScanConfigOrBuilder- Returns:
- The bytes for displayName.
-
setDisplayName
Required. The user provided display name of the ScanConfig.
string display_name = 2 [(.google.api.field_behavior) = REQUIRED];- Parameters:
value- The displayName to set.- Returns:
- This builder for chaining.
-
clearDisplayName
Required. The user provided display name of the ScanConfig.
string display_name = 2 [(.google.api.field_behavior) = REQUIRED];- Returns:
- This builder for chaining.
-
setDisplayNameBytes
Required. The user provided display name of the ScanConfig.
string display_name = 2 [(.google.api.field_behavior) = REQUIRED];- 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:
getMaxQpsin interfaceScanConfigOrBuilder- Returns:
- The maxQps.
-
setMaxQps
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
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 [(.google.api.field_behavior) = REQUIRED];- 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 [(.google.api.field_behavior) = REQUIRED];- 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 [(.google.api.field_behavior) = REQUIRED];- 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 [(.google.api.field_behavior) = REQUIRED];- Specified by:
getStartingUrlsBytesin interfaceScanConfigOrBuilder- Parameters:
index- The index of the value to return.- Returns:
- The bytes of the startingUrls at the given index.
-
setStartingUrls
Required. The starting URLs from which the scanner finds site pages.
repeated string starting_urls = 4 [(.google.api.field_behavior) = REQUIRED];- Parameters:
index- The index to set the value at.value- The startingUrls to set.- Returns:
- This builder for chaining.
-
addStartingUrls
Required. The starting URLs from which the scanner finds site pages.
repeated string starting_urls = 4 [(.google.api.field_behavior) = REQUIRED];- Parameters:
value- The startingUrls to add.- Returns:
- This builder for chaining.
-
addAllStartingUrls
Required. The starting URLs from which the scanner finds site pages.
repeated string starting_urls = 4 [(.google.api.field_behavior) = REQUIRED];- Parameters:
values- The startingUrls to add.- Returns:
- This builder for chaining.
-
clearStartingUrls
Required. The starting URLs from which the scanner finds site pages.
repeated string starting_urls = 4 [(.google.api.field_behavior) = REQUIRED];- Returns:
- This builder for chaining.
-
addStartingUrlsBytes
Required. The starting URLs from which the scanner finds site pages.
repeated string starting_urls = 4 [(.google.api.field_behavior) = REQUIRED];- 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.v1alpha.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.v1alpha.ScanConfig.Authentication authentication = 5;- Specified by:
getAuthenticationin interfaceScanConfigOrBuilder- Returns:
- The authentication.
-
setAuthentication
The authentication configuration. If specified, service will use the authentication configuration during scanning.
.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication authentication = 5; -
setAuthentication
The authentication configuration. If specified, service will use the authentication configuration during scanning.
.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication authentication = 5; -
mergeAuthentication
The authentication configuration. If specified, service will use the authentication configuration during scanning.
.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication authentication = 5; -
clearAuthentication
The authentication configuration. If specified, service will use the authentication configuration during scanning.
.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication authentication = 5; -
getAuthenticationBuilder
The authentication configuration. If specified, service will use the authentication configuration during scanning.
.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication authentication = 5; -
getAuthenticationOrBuilder
The authentication configuration. If specified, service will use the authentication configuration during scanning.
.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication authentication = 5;- Specified by:
getAuthenticationOrBuilderin interfaceScanConfigOrBuilder
-
getUserAgentValue
public int getUserAgentValue()The user agent used during scanning.
.google.cloud.websecurityscanner.v1alpha.ScanConfig.UserAgent user_agent = 6;- Specified by:
getUserAgentValuein interfaceScanConfigOrBuilder- Returns:
- The enum numeric value on the wire for userAgent.
-
setUserAgentValue
The user agent used during scanning.
.google.cloud.websecurityscanner.v1alpha.ScanConfig.UserAgent user_agent = 6;- Parameters:
value- The enum numeric value on the wire for userAgent to set.- Returns:
- This builder for chaining.
-
getUserAgent
The user agent used during scanning.
.google.cloud.websecurityscanner.v1alpha.ScanConfig.UserAgent user_agent = 6;- Specified by:
getUserAgentin interfaceScanConfigOrBuilder- Returns:
- The userAgent.
-
setUserAgent
The user agent used during scanning.
.google.cloud.websecurityscanner.v1alpha.ScanConfig.UserAgent user_agent = 6;- Parameters:
value- The userAgent to set.- Returns:
- This builder for chaining.
-
clearUserAgent
The user agent used during scanning.
.google.cloud.websecurityscanner.v1alpha.ScanConfig.UserAgent user_agent = 6;- Returns:
- This builder for chaining.
-
getBlacklistPatternsList
public com.google.protobuf.ProtocolStringList getBlacklistPatternsList()The blacklist URL patterns as described in https://cloud.google.com/security-scanner/docs/excluded-urls
repeated string blacklist_patterns = 7;- Specified by:
getBlacklistPatternsListin interfaceScanConfigOrBuilder- Returns:
- A list containing the blacklistPatterns.
-
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;- Specified by:
getBlacklistPatternsCountin interfaceScanConfigOrBuilder- Returns:
- The count of blacklistPatterns.
-
getBlacklistPatterns
The blacklist URL patterns as described in https://cloud.google.com/security-scanner/docs/excluded-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 blacklist URL patterns as described in https://cloud.google.com/security-scanner/docs/excluded-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.
-
setBlacklistPatterns
The blacklist URL patterns as described in https://cloud.google.com/security-scanner/docs/excluded-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
The blacklist URL patterns as described in https://cloud.google.com/security-scanner/docs/excluded-urls
repeated string blacklist_patterns = 7;- Parameters:
value- The blacklistPatterns to add.- Returns:
- This builder for chaining.
-
addAllBlacklistPatterns
The blacklist URL patterns as described in https://cloud.google.com/security-scanner/docs/excluded-urls
repeated string blacklist_patterns = 7;- Parameters:
values- The blacklistPatterns to add.- Returns:
- This builder for chaining.
-
clearBlacklistPatterns
The blacklist URL patterns as described in https://cloud.google.com/security-scanner/docs/excluded-urls
repeated string blacklist_patterns = 7;- Returns:
- This builder for chaining.
-
addBlacklistPatternsBytes
The blacklist URL patterns as described in https://cloud.google.com/security-scanner/docs/excluded-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.v1alpha.ScanConfig.Schedule schedule = 8;- Specified by:
hasSchedulein interfaceScanConfigOrBuilder- Returns:
- Whether the schedule field is set.
-
getSchedule
The schedule of the ScanConfig.
.google.cloud.websecurityscanner.v1alpha.ScanConfig.Schedule schedule = 8;- Specified by:
getSchedulein interfaceScanConfigOrBuilder- Returns:
- The schedule.
-
setSchedule
The schedule of the ScanConfig.
.google.cloud.websecurityscanner.v1alpha.ScanConfig.Schedule schedule = 8; -
setSchedule
The schedule of the ScanConfig.
.google.cloud.websecurityscanner.v1alpha.ScanConfig.Schedule schedule = 8; -
mergeSchedule
The schedule of the ScanConfig.
.google.cloud.websecurityscanner.v1alpha.ScanConfig.Schedule schedule = 8; -
clearSchedule
The schedule of the ScanConfig.
.google.cloud.websecurityscanner.v1alpha.ScanConfig.Schedule schedule = 8; -
getScheduleBuilder
The schedule of the ScanConfig.
.google.cloud.websecurityscanner.v1alpha.ScanConfig.Schedule schedule = 8; -
getScheduleOrBuilder
The schedule of the ScanConfig.
.google.cloud.websecurityscanner.v1alpha.ScanConfig.Schedule schedule = 8;- Specified by:
getScheduleOrBuilderin interfaceScanConfigOrBuilder
-
getTargetPlatformsList
Set of Cloud Platforms targeted by the scan. If empty, APP_ENGINE will be used as a default.
repeated .google.cloud.websecurityscanner.v1alpha.ScanConfig.TargetPlatform target_platforms = 9;- Specified by:
getTargetPlatformsListin interfaceScanConfigOrBuilder- Returns:
- A list containing the targetPlatforms.
-
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.v1alpha.ScanConfig.TargetPlatform target_platforms = 9;- Specified by:
getTargetPlatformsCountin interfaceScanConfigOrBuilder- Returns:
- The count of targetPlatforms.
-
getTargetPlatforms
Set of Cloud Platforms targeted by the scan. If empty, APP_ENGINE will be used as a default.
repeated .google.cloud.websecurityscanner.v1alpha.ScanConfig.TargetPlatform target_platforms = 9;- Specified by:
getTargetPlatformsin interfaceScanConfigOrBuilder- Parameters:
index- The index of the element to return.- Returns:
- The targetPlatforms at the given index.
-
setTargetPlatforms
Set of Cloud Platforms targeted by the scan. If empty, APP_ENGINE will be used as a default.
repeated .google.cloud.websecurityscanner.v1alpha.ScanConfig.TargetPlatform target_platforms = 9;- Parameters:
index- The index to set the value at.value- The targetPlatforms to set.- Returns:
- This builder for chaining.
-
addTargetPlatforms
Set of Cloud Platforms targeted by the scan. If empty, APP_ENGINE will be used as a default.
repeated .google.cloud.websecurityscanner.v1alpha.ScanConfig.TargetPlatform target_platforms = 9;- Parameters:
value- The targetPlatforms to add.- Returns:
- This builder for chaining.
-
addAllTargetPlatforms
public ScanConfig.Builder addAllTargetPlatforms(Iterable<? extends ScanConfig.TargetPlatform> values) Set of Cloud Platforms targeted by the scan. If empty, APP_ENGINE will be used as a default.
repeated .google.cloud.websecurityscanner.v1alpha.ScanConfig.TargetPlatform target_platforms = 9;- Parameters:
values- The targetPlatforms to add.- Returns:
- This builder for chaining.
-
clearTargetPlatforms
Set of Cloud Platforms targeted by the scan. If empty, APP_ENGINE will be used as a default.
repeated .google.cloud.websecurityscanner.v1alpha.ScanConfig.TargetPlatform target_platforms = 9;- Returns:
- This builder for chaining.
-
getTargetPlatformsValueList
Set of Cloud Platforms targeted by the scan. If empty, APP_ENGINE will be used as a default.
repeated .google.cloud.websecurityscanner.v1alpha.ScanConfig.TargetPlatform target_platforms = 9;- Specified by:
getTargetPlatformsValueListin interfaceScanConfigOrBuilder- Returns:
- A list containing the enum numeric values on the wire for targetPlatforms.
-
getTargetPlatformsValue
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.v1alpha.ScanConfig.TargetPlatform target_platforms = 9;- Specified by:
getTargetPlatformsValuein interfaceScanConfigOrBuilder- Parameters:
index- The index of the value to return.- Returns:
- The enum numeric value on the wire of targetPlatforms at the given index.
-
setTargetPlatformsValue
Set of Cloud Platforms targeted by the scan. If empty, APP_ENGINE will be used as a default.
repeated .google.cloud.websecurityscanner.v1alpha.ScanConfig.TargetPlatform target_platforms = 9;- Parameters:
index- The index to set the value at.value- The enum numeric value on the wire for targetPlatforms to set.- Returns:
- This builder for chaining.
-
addTargetPlatformsValue
Set of Cloud Platforms targeted by the scan. If empty, APP_ENGINE will be used as a default.
repeated .google.cloud.websecurityscanner.v1alpha.ScanConfig.TargetPlatform target_platforms = 9;- Parameters:
value- The enum numeric value on the wire for targetPlatforms to add.- Returns:
- This builder for chaining.
-
addAllTargetPlatformsValue
Set of Cloud Platforms targeted by the scan. If empty, APP_ENGINE will be used as a default.
repeated .google.cloud.websecurityscanner.v1alpha.ScanConfig.TargetPlatform target_platforms = 9;- Parameters:
values- The enum numeric values on the wire for targetPlatforms to add.- Returns:
- This builder for chaining.
-
hasLatestRun
public boolean hasLatestRun()Latest ScanRun if available.
.google.cloud.websecurityscanner.v1alpha.ScanRun latest_run = 11;- Specified by:
hasLatestRunin interfaceScanConfigOrBuilder- Returns:
- Whether the latestRun field is set.
-
getLatestRun
Latest ScanRun if available.
.google.cloud.websecurityscanner.v1alpha.ScanRun latest_run = 11;- Specified by:
getLatestRunin interfaceScanConfigOrBuilder- Returns:
- The latestRun.
-
setLatestRun
Latest ScanRun if available.
.google.cloud.websecurityscanner.v1alpha.ScanRun latest_run = 11; -
setLatestRun
Latest ScanRun if available.
.google.cloud.websecurityscanner.v1alpha.ScanRun latest_run = 11; -
mergeLatestRun
Latest ScanRun if available.
.google.cloud.websecurityscanner.v1alpha.ScanRun latest_run = 11; -
clearLatestRun
Latest ScanRun if available.
.google.cloud.websecurityscanner.v1alpha.ScanRun latest_run = 11; -
getLatestRunBuilder
Latest ScanRun if available.
.google.cloud.websecurityscanner.v1alpha.ScanRun latest_run = 11; -
getLatestRunOrBuilder
Latest ScanRun if available.
.google.cloud.websecurityscanner.v1alpha.ScanRun latest_run = 11;- Specified by:
getLatestRunOrBuilderin interfaceScanConfigOrBuilder
-