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: 12
 
Protobuf type google.cloud.websecurityscanner.v1alpha.ScanConfig
  • Method Details

    • getDescriptor

      public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
    • internalGetFieldAccessorTable

      protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
      Specified by:
      internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessage.Builder<ScanConfig.Builder>
    • clear

      public ScanConfig.Builder clear()
      Specified by:
      clear in interface com.google.protobuf.Message.Builder
      Specified by:
      clear in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      clear in class com.google.protobuf.GeneratedMessage.Builder<ScanConfig.Builder>
    • getDescriptorForType

      public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
      Specified by:
      getDescriptorForType in interface com.google.protobuf.Message.Builder
      Specified by:
      getDescriptorForType in interface com.google.protobuf.MessageOrBuilder
      Overrides:
      getDescriptorForType in class com.google.protobuf.GeneratedMessage.Builder<ScanConfig.Builder>
    • getDefaultInstanceForType

      public ScanConfig getDefaultInstanceForType()
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder
    • build

      public ScanConfig build()
      Specified by:
      build in interface com.google.protobuf.Message.Builder
      Specified by:
      build in interface com.google.protobuf.MessageLite.Builder
    • buildPartial

      public ScanConfig buildPartial()
      Specified by:
      buildPartial in interface com.google.protobuf.Message.Builder
      Specified by:
      buildPartial in interface com.google.protobuf.MessageLite.Builder
    • mergeFrom

      public ScanConfig.Builder mergeFrom(com.google.protobuf.Message other)
      Specified by:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Overrides:
      mergeFrom in class com.google.protobuf.AbstractMessage.Builder<ScanConfig.Builder>
    • mergeFrom

      public ScanConfig.Builder mergeFrom(ScanConfig other)
    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.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:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Specified by:
      mergeFrom in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      mergeFrom in class com.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 interface ScanConfigOrBuilder
      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 interface ScanConfigOrBuilder
      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 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getDisplayName in interface ScanConfigOrBuilder
      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:
      getDisplayNameBytes in interface ScanConfigOrBuilder
      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 [(.google.api.field_behavior) = REQUIRED];
      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 [(.google.api.field_behavior) = REQUIRED];
      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 [(.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:
      getMaxQps in interface ScanConfigOrBuilder
      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 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getStartingUrlsList in interface ScanConfigOrBuilder
      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:
      getStartingUrlsCount in interface ScanConfigOrBuilder
      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 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getStartingUrls in interface ScanConfigOrBuilder
      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:
      getStartingUrlsBytes in interface ScanConfigOrBuilder
      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 [(.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

      public ScanConfig.Builder addStartingUrls(String value)
       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

      public ScanConfig.Builder addAllStartingUrls(Iterable<String> values)
       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

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

      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 [(.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:
      hasAuthentication in interface ScanConfigOrBuilder
      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.v1alpha.ScanConfig.Authentication authentication = 5;
      Specified by:
      getAuthentication in interface ScanConfigOrBuilder
      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.v1alpha.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.v1alpha.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.v1alpha.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.v1alpha.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.v1alpha.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.v1alpha.ScanConfig.Authentication authentication = 5;
      Specified by:
      getAuthenticationOrBuilder in interface ScanConfigOrBuilder
    • getUserAgentValue

      public int getUserAgentValue()
       The user agent used during scanning.
       
      .google.cloud.websecurityscanner.v1alpha.ScanConfig.UserAgent user_agent = 6;
      Specified by:
      getUserAgentValue in interface ScanConfigOrBuilder
      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.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

      public ScanConfig.UserAgent getUserAgent()
       The user agent used during scanning.
       
      .google.cloud.websecurityscanner.v1alpha.ScanConfig.UserAgent user_agent = 6;
      Specified by:
      getUserAgent in interface ScanConfigOrBuilder
      Returns:
      The userAgent.
    • setUserAgent

      public ScanConfig.Builder setUserAgent(ScanConfig.UserAgent value)
       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

      public ScanConfig.Builder 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:
      getBlacklistPatternsList in interface ScanConfigOrBuilder
      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:
      getBlacklistPatternsCount in interface ScanConfigOrBuilder
      Returns:
      The count of blacklistPatterns.
    • getBlacklistPatterns

      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;
      Specified by:
      getBlacklistPatterns in interface ScanConfigOrBuilder
      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:
      getBlacklistPatternsBytes in interface ScanConfigOrBuilder
      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 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

      public ScanConfig.Builder addBlacklistPatterns(String value)
       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

      public ScanConfig.Builder addAllBlacklistPatterns(Iterable<String> values)
       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

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

      public ScanConfig.Builder addBlacklistPatternsBytes(com.google.protobuf.ByteString value)
       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:
      hasSchedule in interface ScanConfigOrBuilder
      Returns:
      Whether the schedule field is set.
    • getSchedule

      public ScanConfig.Schedule getSchedule()
       The schedule of the ScanConfig.
       
      .google.cloud.websecurityscanner.v1alpha.ScanConfig.Schedule schedule = 8;
      Specified by:
      getSchedule in interface ScanConfigOrBuilder
      Returns:
      The schedule.
    • setSchedule

      public ScanConfig.Builder setSchedule(ScanConfig.Schedule value)
       The schedule of the ScanConfig.
       
      .google.cloud.websecurityscanner.v1alpha.ScanConfig.Schedule schedule = 8;
    • setSchedule

      public ScanConfig.Builder setSchedule(ScanConfig.Schedule.Builder builderForValue)
       The schedule of the ScanConfig.
       
      .google.cloud.websecurityscanner.v1alpha.ScanConfig.Schedule schedule = 8;
    • mergeSchedule

      public ScanConfig.Builder mergeSchedule(ScanConfig.Schedule value)
       The schedule of the ScanConfig.
       
      .google.cloud.websecurityscanner.v1alpha.ScanConfig.Schedule schedule = 8;
    • clearSchedule

      public ScanConfig.Builder clearSchedule()
       The schedule of the ScanConfig.
       
      .google.cloud.websecurityscanner.v1alpha.ScanConfig.Schedule schedule = 8;
    • getScheduleBuilder

      public ScanConfig.Schedule.Builder getScheduleBuilder()
       The schedule of the ScanConfig.
       
      .google.cloud.websecurityscanner.v1alpha.ScanConfig.Schedule schedule = 8;
    • getScheduleOrBuilder

      public ScanConfig.ScheduleOrBuilder getScheduleOrBuilder()
       The schedule of the ScanConfig.
       
      .google.cloud.websecurityscanner.v1alpha.ScanConfig.Schedule schedule = 8;
      Specified by:
      getScheduleOrBuilder in interface ScanConfigOrBuilder
    • 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.v1alpha.ScanConfig.TargetPlatform target_platforms = 9;
      Specified by:
      getTargetPlatformsList in interface ScanConfigOrBuilder
      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:
      getTargetPlatformsCount in interface ScanConfigOrBuilder
      Returns:
      The count of targetPlatforms.
    • getTargetPlatforms

      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.v1alpha.ScanConfig.TargetPlatform target_platforms = 9;
      Specified by:
      getTargetPlatforms in interface ScanConfigOrBuilder
      Parameters:
      index - The index of the element to return.
      Returns:
      The targetPlatforms at the given index.
    • setTargetPlatforms

      public ScanConfig.Builder setTargetPlatforms(int index, ScanConfig.TargetPlatform value)
       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

      public ScanConfig.Builder addTargetPlatforms(ScanConfig.TargetPlatform value)
       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

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

      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.v1alpha.ScanConfig.TargetPlatform target_platforms = 9;
      Specified by:
      getTargetPlatformsValueList in interface ScanConfigOrBuilder
      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:
      getTargetPlatformsValue in interface ScanConfigOrBuilder
      Parameters:
      index - The index of the value to return.
      Returns:
      The enum numeric value on the wire of targetPlatforms at the given index.
    • setTargetPlatformsValue

      public ScanConfig.Builder setTargetPlatformsValue(int index, int value)
       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

      public ScanConfig.Builder addTargetPlatformsValue(int value)
       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

      public ScanConfig.Builder addAllTargetPlatformsValue(Iterable<Integer> 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 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:
      hasLatestRun in interface ScanConfigOrBuilder
      Returns:
      Whether the latestRun field is set.
    • getLatestRun

      public ScanRun getLatestRun()
       Latest ScanRun if available.
       
      .google.cloud.websecurityscanner.v1alpha.ScanRun latest_run = 11;
      Specified by:
      getLatestRun in interface ScanConfigOrBuilder
      Returns:
      The latestRun.
    • setLatestRun

      public ScanConfig.Builder setLatestRun(ScanRun value)
       Latest ScanRun if available.
       
      .google.cloud.websecurityscanner.v1alpha.ScanRun latest_run = 11;
    • setLatestRun

      public ScanConfig.Builder setLatestRun(ScanRun.Builder builderForValue)
       Latest ScanRun if available.
       
      .google.cloud.websecurityscanner.v1alpha.ScanRun latest_run = 11;
    • mergeLatestRun

      public ScanConfig.Builder mergeLatestRun(ScanRun value)
       Latest ScanRun if available.
       
      .google.cloud.websecurityscanner.v1alpha.ScanRun latest_run = 11;
    • clearLatestRun

      public ScanConfig.Builder clearLatestRun()
       Latest ScanRun if available.
       
      .google.cloud.websecurityscanner.v1alpha.ScanRun latest_run = 11;
    • getLatestRunBuilder

      public ScanRun.Builder getLatestRunBuilder()
       Latest ScanRun if available.
       
      .google.cloud.websecurityscanner.v1alpha.ScanRun latest_run = 11;
    • getLatestRunOrBuilder

      public ScanRunOrBuilder getLatestRunOrBuilder()
       Latest ScanRun if available.
       
      .google.cloud.websecurityscanner.v1alpha.ScanRun latest_run = 11;
      Specified by:
      getLatestRunOrBuilder in interface ScanConfigOrBuilder