java.lang.Object
com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessage
com.google.protobuf.GeneratedMessage
com.google.cloud.websecurityscanner.v1alpha.ScanConfig
All Implemented Interfaces:
ScanConfigOrBuilder, com.google.protobuf.Message, com.google.protobuf.MessageLite, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Serializable

@Generated public final class ScanConfig extends com.google.protobuf.GeneratedMessage implements ScanConfigOrBuilder
 A ScanConfig resource contains the configurations to launch a scan.
 next id: 12
 
Protobuf type google.cloud.websecurityscanner.v1alpha.ScanConfig
See Also:
  • Field Details

    • NAME_FIELD_NUMBER

      public static final int NAME_FIELD_NUMBER
      See Also:
    • DISPLAY_NAME_FIELD_NUMBER

      public static final int DISPLAY_NAME_FIELD_NUMBER
      See Also:
    • MAX_QPS_FIELD_NUMBER

      public static final int MAX_QPS_FIELD_NUMBER
      See Also:
    • STARTING_URLS_FIELD_NUMBER

      public static final int STARTING_URLS_FIELD_NUMBER
      See Also:
    • AUTHENTICATION_FIELD_NUMBER

      public static final int AUTHENTICATION_FIELD_NUMBER
      See Also:
    • USER_AGENT_FIELD_NUMBER

      public static final int USER_AGENT_FIELD_NUMBER
      See Also:
    • BLACKLIST_PATTERNS_FIELD_NUMBER

      public static final int BLACKLIST_PATTERNS_FIELD_NUMBER
      See Also:
    • SCHEDULE_FIELD_NUMBER

      public static final int SCHEDULE_FIELD_NUMBER
      See Also:
    • TARGET_PLATFORMS_FIELD_NUMBER

      public static final int TARGET_PLATFORMS_FIELD_NUMBER
      See Also:
    • LATEST_RUN_FIELD_NUMBER

      public static final int LATEST_RUN_FIELD_NUMBER
      See Also:
  • 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
    • 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.
    • 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.
    • 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.
    • 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.
    • 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.
    • 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.
    • 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.
    • 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.
    • 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.
    • 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.
    • 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.
    • 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.
    • getLatestRunOrBuilder

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

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.google.protobuf.GeneratedMessage
    • writeTo

      public void writeTo(com.google.protobuf.CodedOutputStream output) throws IOException
      Specified by:
      writeTo in interface com.google.protobuf.MessageLite
      Overrides:
      writeTo in class com.google.protobuf.GeneratedMessage
      Throws:
      IOException
    • getSerializedSize

      public int getSerializedSize()
      Specified by:
      getSerializedSize in interface com.google.protobuf.MessageLite
      Overrides:
      getSerializedSize in class com.google.protobuf.GeneratedMessage
    • equals

      public boolean equals(Object obj)
      Specified by:
      equals in interface com.google.protobuf.Message
      Overrides:
      equals in class com.google.protobuf.AbstractMessage
    • hashCode

      public int hashCode()
      Specified by:
      hashCode in interface com.google.protobuf.Message
      Overrides:
      hashCode in class com.google.protobuf.AbstractMessage
    • parseFrom

      public static ScanConfig parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static ScanConfig parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static ScanConfig parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static ScanConfig parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static ScanConfig parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static ScanConfig parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static ScanConfig parseFrom(InputStream input) throws IOException
      Throws:
      IOException
    • parseFrom

      public static ScanConfig parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • parseDelimitedFrom

      public static ScanConfig parseDelimitedFrom(InputStream input) throws IOException
      Throws:
      IOException
    • parseDelimitedFrom

      public static ScanConfig parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • parseFrom

      public static ScanConfig parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
      Throws:
      IOException
    • parseFrom

      public static ScanConfig parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • newBuilderForType

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

      public static ScanConfig.Builder newBuilder()
    • newBuilder

      public static ScanConfig.Builder newBuilder(ScanConfig prototype)
    • toBuilder

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

      protected ScanConfig.Builder newBuilderForType(com.google.protobuf.AbstractMessage.BuilderParent parent)
      Overrides:
      newBuilderForType in class com.google.protobuf.AbstractMessage
    • getDefaultInstance

      public static ScanConfig getDefaultInstance()
    • parser

      public static com.google.protobuf.Parser<ScanConfig> parser()
    • getParserForType

      public com.google.protobuf.Parser<ScanConfig> getParserForType()
      Specified by:
      getParserForType in interface com.google.protobuf.Message
      Specified by:
      getParserForType in interface com.google.protobuf.MessageLite
      Overrides:
      getParserForType in class com.google.protobuf.GeneratedMessage
    • getDefaultInstanceForType

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