Class ScanConfig
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: 12Protobuf type
google.cloud.websecurityscanner.v1alpha.ScanConfig- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classScan authentication configuration.static interfacestatic final classA ScanConfig resource contains the configurations to launch a scan.static final classScan schedule configuration.static interfacestatic enumCloud platforms supported by Cloud Web Security Scanner.static enumType of user agents used for scanning.Nested classes/interfaces inherited from class com.google.protobuf.GeneratedMessage
com.google.protobuf.GeneratedMessage.ExtendableBuilder<MessageT extends com.google.protobuf.GeneratedMessage.ExtendableMessage<MessageT>,BuilderT extends com.google.protobuf.GeneratedMessage.ExtendableBuilder<MessageT, BuilderT>>, com.google.protobuf.GeneratedMessage.ExtendableMessage<MessageT extends com.google.protobuf.GeneratedMessage.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessage.ExtendableMessageOrBuilder<MessageT extends com.google.protobuf.GeneratedMessage.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessage.FieldAccessorTable, com.google.protobuf.GeneratedMessage.GeneratedExtension<ContainingT extends com.google.protobuf.Message, T extends Object>, com.google.protobuf.GeneratedMessage.UnusedPrivateParameter Nested classes/interfaces inherited from class com.google.protobuf.AbstractMessage
com.google.protobuf.AbstractMessage.BuilderParentNested classes/interfaces inherited from class com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessageLite.InternalOneOfEnum -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intFields inherited from class com.google.protobuf.GeneratedMessage
alwaysUseFieldBuilders, loggedPre22TypeNames, unknownFieldsFields inherited from class com.google.protobuf.AbstractMessage
memoizedSizeFields inherited from class com.google.protobuf.AbstractMessageLite
memoizedHashCode -
Method Summary
Modifier and TypeMethodDescriptionbooleanThe 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 ScanConfigstatic final com.google.protobuf.Descriptors.DescriptorRequired.com.google.protobuf.ByteStringRequired.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.com.google.protobuf.Parser<ScanConfig>The schedule of the ScanConfig.The schedule of the ScanConfig.intgetStartingUrls(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.inthashCode()booleanLatest ScanRun if available.booleanThe schedule of the ScanConfig.protected com.google.protobuf.GeneratedMessage.FieldAccessorTablefinal booleanstatic ScanConfig.Builderstatic ScanConfig.BuildernewBuilder(ScanConfig prototype) protected ScanConfig.BuildernewBuilderForType(com.google.protobuf.AbstractMessage.BuilderParent parent) static ScanConfigparseDelimitedFrom(InputStream input) static ScanConfigparseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static ScanConfigparseFrom(byte[] data) static ScanConfigparseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static ScanConfigparseFrom(com.google.protobuf.ByteString data) static ScanConfigparseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static ScanConfigparseFrom(com.google.protobuf.CodedInputStream input) static ScanConfigparseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static ScanConfigparseFrom(InputStream input) static ScanConfigparseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static ScanConfigparseFrom(ByteBuffer data) static ScanConfigparseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static com.google.protobuf.Parser<ScanConfig>parser()voidwriteTo(com.google.protobuf.CodedOutputStream output) Methods inherited from class com.google.protobuf.GeneratedMessage
canUseUnsafe, computeStringSize, computeStringSizeNoTag, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyList, emptyLongList, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, isStringEmpty, makeExtensionsImmutable, makeMutableCopy, makeMutableCopy, mergeFromAndMakeImmutableInternal, newFileScopedGeneratedExtension, newInstance, newMessageScopedGeneratedExtension, parseDelimitedWithIOException, parseDelimitedWithIOException, parseUnknownField, parseUnknownFieldProto3, parseWithIOException, parseWithIOException, parseWithIOException, parseWithIOException, serializeBooleanMapTo, serializeIntegerMapTo, serializeLongMapTo, serializeStringMapTo, writeReplace, writeString, writeStringNoTagMethods inherited from class com.google.protobuf.AbstractMessage
findInitializationErrors, getInitializationErrorString, hashFields, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite
addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeToMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.MessageLite
toByteArray, toByteString, writeDelimitedTo, writeToMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
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:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessage
-
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.
-
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.
-
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.
-
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.
-
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.
-
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.
-
getUserAgent
The user agent used during scanning.
.google.cloud.websecurityscanner.v1alpha.ScanConfig.UserAgent user_agent = 6;- Specified by:
getUserAgentin interfaceScanConfigOrBuilder- 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:
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.
-
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.
-
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.
-
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.
-
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.
-
getLatestRunOrBuilder
Latest ScanRun if available.
.google.cloud.websecurityscanner.v1alpha.ScanRun latest_run = 11;- Specified by:
getLatestRunOrBuilderin interfaceScanConfigOrBuilder
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage
-
writeTo
- Specified by:
writeToin interfacecom.google.protobuf.MessageLite- Overrides:
writeToin classcom.google.protobuf.GeneratedMessage- Throws:
IOException
-
getSerializedSize
public int getSerializedSize()- Specified by:
getSerializedSizein interfacecom.google.protobuf.MessageLite- Overrides:
getSerializedSizein classcom.google.protobuf.GeneratedMessage
-
equals
- Specified by:
equalsin interfacecom.google.protobuf.Message- Overrides:
equalsin classcom.google.protobuf.AbstractMessage
-
hashCode
public int hashCode()- Specified by:
hashCodein interfacecom.google.protobuf.Message- Overrides:
hashCodein classcom.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
- Throws:
IOException
-
parseFrom
public static ScanConfig parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
parseDelimitedFrom
- Throws:
IOException
-
parseDelimitedFrom
public static ScanConfig parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
parseFrom
- Throws:
IOException
-
parseFrom
public static ScanConfig parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
newBuilderForType
- Specified by:
newBuilderForTypein interfacecom.google.protobuf.Message- Specified by:
newBuilderForTypein interfacecom.google.protobuf.MessageLite
-
newBuilder
-
newBuilder
-
toBuilder
- Specified by:
toBuilderin interfacecom.google.protobuf.Message- Specified by:
toBuilderin interfacecom.google.protobuf.MessageLite
-
newBuilderForType
protected ScanConfig.Builder newBuilderForType(com.google.protobuf.AbstractMessage.BuilderParent parent) - Overrides:
newBuilderForTypein classcom.google.protobuf.AbstractMessage
-
getDefaultInstance
-
parser
-
getParserForType
- Specified by:
getParserForTypein interfacecom.google.protobuf.Message- Specified by:
getParserForTypein interfacecom.google.protobuf.MessageLite- Overrides:
getParserForTypein classcom.google.protobuf.GeneratedMessage
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-