public final class ScanConfig extends GeneratedMessageV3 implements ScanConfigOrBuilder
A ScanConfig resource contains the configurations to launch a scan. next id: 12Protobuf type
google.cloud.websecurityscanner.v1alpha.ScanConfig
Modifier and Type | Class and Description |
---|---|
static class |
ScanConfig.Authentication
Scan authentication configuration.
|
static interface |
ScanConfig.AuthenticationOrBuilder |
static class |
ScanConfig.Builder
A ScanConfig resource contains the configurations to launch a scan.
|
static class |
ScanConfig.Schedule
Scan schedule configuration.
|
static interface |
ScanConfig.ScheduleOrBuilder |
static class |
ScanConfig.TargetPlatform
Cloud platforms supported by Cloud Web Security Scanner.
|
static class |
ScanConfig.UserAgent
Type of user agents used for scanning.
|
GeneratedMessageV3.BuilderParent, GeneratedMessageV3.ExtendableBuilder<MessageType extends GeneratedMessageV3.ExtendableMessage,BuilderType extends GeneratedMessageV3.ExtendableBuilder<MessageType,BuilderType>>, GeneratedMessageV3.ExtendableMessage<MessageType extends GeneratedMessageV3.ExtendableMessage>, GeneratedMessageV3.ExtendableMessageOrBuilder<MessageType extends GeneratedMessageV3.ExtendableMessage>, GeneratedMessageV3.FieldAccessorTable, GeneratedMessageV3.UnusedPrivateParameter
AbstractMessageLite.InternalOneOfEnum
Modifier and Type | Field and Description |
---|---|
static int |
AUTHENTICATION_FIELD_NUMBER |
static int |
BLACKLIST_PATTERNS_FIELD_NUMBER |
static int |
DISPLAY_NAME_FIELD_NUMBER |
static int |
LATEST_RUN_FIELD_NUMBER |
static int |
MAX_QPS_FIELD_NUMBER |
static int |
NAME_FIELD_NUMBER |
static int |
SCHEDULE_FIELD_NUMBER |
static int |
STARTING_URLS_FIELD_NUMBER |
static int |
TARGET_PLATFORMS_FIELD_NUMBER |
static int |
USER_AGENT_FIELD_NUMBER |
alwaysUseFieldBuilders, unknownFields
memoizedSize
memoizedHashCode
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object obj) |
ScanConfig.Authentication |
getAuthentication()
The authentication configuration.
|
ScanConfig.AuthenticationOrBuilder |
getAuthenticationOrBuilder()
The authentication configuration.
|
String |
getBlacklistPatterns(int index)
The blacklist URL patterns as described in
https://cloud.google.com/security-scanner/docs/excluded-urls
|
ByteString |
getBlacklistPatternsBytes(int index)
The blacklist URL patterns as described in
https://cloud.google.com/security-scanner/docs/excluded-urls
|
int |
getBlacklistPatternsCount()
The blacklist URL patterns as described in
https://cloud.google.com/security-scanner/docs/excluded-urls
|
ProtocolStringList |
getBlacklistPatternsList()
The blacklist URL patterns as described in
https://cloud.google.com/security-scanner/docs/excluded-urls
|
static ScanConfig |
getDefaultInstance() |
ScanConfig |
getDefaultInstanceForType() |
static Descriptors.Descriptor |
getDescriptor() |
String |
getDisplayName()
Required.
|
ByteString |
getDisplayNameBytes()
Required.
|
ScanRun |
getLatestRun()
Latest ScanRun if available.
|
ScanRunOrBuilder |
getLatestRunOrBuilder()
Latest ScanRun if available.
|
int |
getMaxQps()
The maximum QPS during scanning.
|
String |
getName()
The resource name of the ScanConfig.
|
ByteString |
getNameBytes()
The resource name of the ScanConfig.
|
Parser<ScanConfig> |
getParserForType() |
ScanConfig.Schedule |
getSchedule()
The schedule of the ScanConfig.
|
ScanConfig.ScheduleOrBuilder |
getScheduleOrBuilder()
The schedule of the ScanConfig.
|
int |
getSerializedSize() |
String |
getStartingUrls(int index)
Required.
|
ByteString |
getStartingUrlsBytes(int index)
Required.
|
int |
getStartingUrlsCount()
Required.
|
ProtocolStringList |
getStartingUrlsList()
Required.
|
ScanConfig.TargetPlatform |
getTargetPlatforms(int index)
Set of Cloud Platforms targeted by the scan.
|
int |
getTargetPlatformsCount()
Set of Cloud Platforms targeted by the scan.
|
List<ScanConfig.TargetPlatform> |
getTargetPlatformsList()
Set of Cloud Platforms targeted by the scan.
|
int |
getTargetPlatformsValue(int index)
Set of Cloud Platforms targeted by the scan.
|
List<Integer> |
getTargetPlatformsValueList()
Set of Cloud Platforms targeted by the scan.
|
UnknownFieldSet |
getUnknownFields() |
ScanConfig.UserAgent |
getUserAgent()
The user agent used during scanning.
|
int |
getUserAgentValue()
The user agent used during scanning.
|
boolean |
hasAuthentication()
The authentication configuration.
|
int |
hashCode() |
boolean |
hasLatestRun()
Latest ScanRun if available.
|
boolean |
hasSchedule()
The schedule of the ScanConfig.
|
protected GeneratedMessageV3.FieldAccessorTable |
internalGetFieldAccessorTable() |
boolean |
isInitialized() |
static ScanConfig.Builder |
newBuilder() |
static ScanConfig.Builder |
newBuilder(ScanConfig prototype) |
ScanConfig.Builder |
newBuilderForType() |
protected ScanConfig.Builder |
newBuilderForType(GeneratedMessageV3.BuilderParent parent) |
protected Object |
newInstance(GeneratedMessageV3.UnusedPrivateParameter unused) |
static ScanConfig |
parseDelimitedFrom(InputStream input) |
static ScanConfig |
parseDelimitedFrom(InputStream input,
ExtensionRegistryLite extensionRegistry) |
static ScanConfig |
parseFrom(byte[] data) |
static ScanConfig |
parseFrom(byte[] data,
ExtensionRegistryLite extensionRegistry) |
static ScanConfig |
parseFrom(ByteBuffer data) |
static ScanConfig |
parseFrom(ByteBuffer data,
ExtensionRegistryLite extensionRegistry) |
static ScanConfig |
parseFrom(ByteString data) |
static ScanConfig |
parseFrom(ByteString data,
ExtensionRegistryLite extensionRegistry) |
static ScanConfig |
parseFrom(CodedInputStream input) |
static ScanConfig |
parseFrom(CodedInputStream input,
ExtensionRegistryLite extensionRegistry) |
static ScanConfig |
parseFrom(InputStream input) |
static ScanConfig |
parseFrom(InputStream input,
ExtensionRegistryLite extensionRegistry) |
static Parser<ScanConfig> |
parser() |
ScanConfig.Builder |
toBuilder() |
void |
writeTo(CodedOutputStream output) |
canUseUnsafe, computeStringSize, computeStringSizeNoTag, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyLongList, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, hasField, hasOneof, internalGetMapField, isStringEmpty, makeExtensionsImmutable, mergeFromAndMakeImmutableInternal, mutableCopy, mutableCopy, mutableCopy, mutableCopy, mutableCopy, newBooleanList, newBuilderForType, newDoubleList, newFloatList, newIntList, newLongList, parseDelimitedWithIOException, parseDelimitedWithIOException, parseUnknownField, parseUnknownFieldProto3, parseWithIOException, parseWithIOException, parseWithIOException, parseWithIOException, serializeBooleanMapTo, serializeIntegerMapTo, serializeLongMapTo, serializeStringMapTo, writeReplace, writeString, writeStringNoTag
findInitializationErrors, getInitializationErrorString, hashBoolean, hashEnum, hashEnumList, hashFields, hashLong, toString
addAll, addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeTo
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
findInitializationErrors, getAllFields, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, hasField, hasOneof
toByteArray, toByteString, writeDelimitedTo, writeTo
public static final int NAME_FIELD_NUMBER
public static final int DISPLAY_NAME_FIELD_NUMBER
public static final int MAX_QPS_FIELD_NUMBER
public static final int STARTING_URLS_FIELD_NUMBER
public static final int AUTHENTICATION_FIELD_NUMBER
public static final int USER_AGENT_FIELD_NUMBER
public static final int BLACKLIST_PATTERNS_FIELD_NUMBER
public static final int SCHEDULE_FIELD_NUMBER
public static final int TARGET_PLATFORMS_FIELD_NUMBER
public static final int LATEST_RUN_FIELD_NUMBER
protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
newInstance
in class GeneratedMessageV3
public final UnknownFieldSet getUnknownFields()
getUnknownFields
in interface MessageOrBuilder
getUnknownFields
in class GeneratedMessageV3
public static final Descriptors.Descriptor getDescriptor()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable
in class GeneratedMessageV3
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;
getName
in interface ScanConfigOrBuilder
public ByteString getNameBytes()
The resource name of the ScanConfig. The name follows the format of 'projects/{projectId}/scanConfigs/{scanConfigId}'. The ScanConfig IDs are generated by the system.
string name = 1;
getNameBytes
in interface ScanConfigOrBuilder
public String getDisplayName()
Required. The user provided display name of the ScanConfig.
string display_name = 2 [(.google.api.field_behavior) = REQUIRED];
getDisplayName
in interface ScanConfigOrBuilder
public ByteString getDisplayNameBytes()
Required. The user provided display name of the ScanConfig.
string display_name = 2 [(.google.api.field_behavior) = REQUIRED];
getDisplayNameBytes
in interface ScanConfigOrBuilder
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;
getMaxQps
in interface ScanConfigOrBuilder
public ProtocolStringList getStartingUrlsList()
Required. The starting URLs from which the scanner finds site pages.
repeated string starting_urls = 4 [(.google.api.field_behavior) = REQUIRED];
getStartingUrlsList
in interface ScanConfigOrBuilder
public int getStartingUrlsCount()
Required. The starting URLs from which the scanner finds site pages.
repeated string starting_urls = 4 [(.google.api.field_behavior) = REQUIRED];
getStartingUrlsCount
in interface ScanConfigOrBuilder
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];
getStartingUrls
in interface ScanConfigOrBuilder
index
- The index of the element to return.public ByteString getStartingUrlsBytes(int index)
Required. The starting URLs from which the scanner finds site pages.
repeated string starting_urls = 4 [(.google.api.field_behavior) = REQUIRED];
getStartingUrlsBytes
in interface ScanConfigOrBuilder
index
- The index of the value to return.public boolean hasAuthentication()
The authentication configuration. If specified, service will use the authentication configuration during scanning.
.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication authentication = 5;
hasAuthentication
in interface ScanConfigOrBuilder
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;
getAuthentication
in interface ScanConfigOrBuilder
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;
getAuthenticationOrBuilder
in interface ScanConfigOrBuilder
public int getUserAgentValue()
The user agent used during scanning.
.google.cloud.websecurityscanner.v1alpha.ScanConfig.UserAgent user_agent = 6;
getUserAgentValue
in interface ScanConfigOrBuilder
public ScanConfig.UserAgent getUserAgent()
The user agent used during scanning.
.google.cloud.websecurityscanner.v1alpha.ScanConfig.UserAgent user_agent = 6;
getUserAgent
in interface ScanConfigOrBuilder
public ProtocolStringList getBlacklistPatternsList()
The blacklist URL patterns as described in https://cloud.google.com/security-scanner/docs/excluded-urls
repeated string blacklist_patterns = 7;
getBlacklistPatternsList
in interface ScanConfigOrBuilder
public int getBlacklistPatternsCount()
The blacklist URL patterns as described in https://cloud.google.com/security-scanner/docs/excluded-urls
repeated string blacklist_patterns = 7;
getBlacklistPatternsCount
in interface ScanConfigOrBuilder
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;
getBlacklistPatterns
in interface ScanConfigOrBuilder
index
- The index of the element to return.public ByteString getBlacklistPatternsBytes(int index)
The blacklist URL patterns as described in https://cloud.google.com/security-scanner/docs/excluded-urls
repeated string blacklist_patterns = 7;
getBlacklistPatternsBytes
in interface ScanConfigOrBuilder
index
- The index of the value to return.public boolean hasSchedule()
The schedule of the ScanConfig.
.google.cloud.websecurityscanner.v1alpha.ScanConfig.Schedule schedule = 8;
hasSchedule
in interface ScanConfigOrBuilder
public ScanConfig.Schedule getSchedule()
The schedule of the ScanConfig.
.google.cloud.websecurityscanner.v1alpha.ScanConfig.Schedule schedule = 8;
getSchedule
in interface ScanConfigOrBuilder
public ScanConfig.ScheduleOrBuilder getScheduleOrBuilder()
The schedule of the ScanConfig.
.google.cloud.websecurityscanner.v1alpha.ScanConfig.Schedule schedule = 8;
getScheduleOrBuilder
in interface ScanConfigOrBuilder
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;
getTargetPlatformsList
in interface ScanConfigOrBuilder
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;
getTargetPlatformsCount
in interface ScanConfigOrBuilder
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;
getTargetPlatforms
in interface ScanConfigOrBuilder
index
- The index of the element to return.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;
getTargetPlatformsValueList
in interface ScanConfigOrBuilder
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;
getTargetPlatformsValue
in interface ScanConfigOrBuilder
index
- The index of the value to return.public boolean hasLatestRun()
Latest ScanRun if available.
.google.cloud.websecurityscanner.v1alpha.ScanRun latest_run = 11;
hasLatestRun
in interface ScanConfigOrBuilder
public ScanRun getLatestRun()
Latest ScanRun if available.
.google.cloud.websecurityscanner.v1alpha.ScanRun latest_run = 11;
getLatestRun
in interface ScanConfigOrBuilder
public ScanRunOrBuilder getLatestRunOrBuilder()
Latest ScanRun if available.
.google.cloud.websecurityscanner.v1alpha.ScanRun latest_run = 11;
getLatestRunOrBuilder
in interface ScanConfigOrBuilder
public final boolean isInitialized()
isInitialized
in interface MessageLiteOrBuilder
isInitialized
in class GeneratedMessageV3
public void writeTo(CodedOutputStream output) throws IOException
writeTo
in interface MessageLite
writeTo
in class GeneratedMessageV3
IOException
public int getSerializedSize()
getSerializedSize
in interface MessageLite
getSerializedSize
in class GeneratedMessageV3
public boolean equals(Object obj)
equals
in interface Message
equals
in class AbstractMessage
public int hashCode()
hashCode
in interface Message
hashCode
in class AbstractMessage
public static ScanConfig parseFrom(ByteBuffer data) throws InvalidProtocolBufferException
InvalidProtocolBufferException
public static ScanConfig parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry) throws InvalidProtocolBufferException
InvalidProtocolBufferException
public static ScanConfig parseFrom(ByteString data) throws InvalidProtocolBufferException
InvalidProtocolBufferException
public static ScanConfig parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry) throws InvalidProtocolBufferException
InvalidProtocolBufferException
public static ScanConfig parseFrom(byte[] data) throws InvalidProtocolBufferException
InvalidProtocolBufferException
public static ScanConfig parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry) throws InvalidProtocolBufferException
InvalidProtocolBufferException
public static ScanConfig parseFrom(InputStream input) throws IOException
IOException
public static ScanConfig parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry) throws IOException
IOException
public static ScanConfig parseDelimitedFrom(InputStream input) throws IOException
IOException
public static ScanConfig parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry) throws IOException
IOException
public static ScanConfig parseFrom(CodedInputStream input) throws IOException
IOException
public static ScanConfig parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry) throws IOException
IOException
public ScanConfig.Builder newBuilderForType()
newBuilderForType
in interface Message
newBuilderForType
in interface MessageLite
public static ScanConfig.Builder newBuilder()
public static ScanConfig.Builder newBuilder(ScanConfig prototype)
public ScanConfig.Builder toBuilder()
toBuilder
in interface Message
toBuilder
in interface MessageLite
protected ScanConfig.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
newBuilderForType
in class GeneratedMessageV3
public static ScanConfig getDefaultInstance()
public static Parser<ScanConfig> parser()
public Parser<ScanConfig> getParserForType()
getParserForType
in interface Message
getParserForType
in interface MessageLite
getParserForType
in class GeneratedMessageV3
public ScanConfig getDefaultInstanceForType()
getDefaultInstanceForType
in interface MessageLiteOrBuilder
getDefaultInstanceForType
in interface MessageOrBuilder
Copyright © 2022 Google LLC. All rights reserved.