Class CreateScanConfigRequest (2.35.0)

public final class CreateScanConfigRequest extends GeneratedMessageV3 implements CreateScanConfigRequestOrBuilder

Request for the CreateScanConfig method.

Protobuf type google.cloud.websecurityscanner.v1alpha.CreateScanConfigRequest

Static Fields

PARENT_FIELD_NUMBER

public static final int PARENT_FIELD_NUMBER
Field Value
TypeDescription
int

SCAN_CONFIG_FIELD_NUMBER

public static final int SCAN_CONFIG_FIELD_NUMBER
Field Value
TypeDescription
int

Static Methods

getDefaultInstance()

public static CreateScanConfigRequest getDefaultInstance()
Returns
TypeDescription
CreateScanConfigRequest

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
TypeDescription
Descriptor

newBuilder()

public static CreateScanConfigRequest.Builder newBuilder()
Returns
TypeDescription
CreateScanConfigRequest.Builder

newBuilder(CreateScanConfigRequest prototype)

public static CreateScanConfigRequest.Builder newBuilder(CreateScanConfigRequest prototype)
Parameter
NameDescription
prototypeCreateScanConfigRequest
Returns
TypeDescription
CreateScanConfigRequest.Builder

parseDelimitedFrom(InputStream input)

public static CreateScanConfigRequest parseDelimitedFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
CreateScanConfigRequest
Exceptions
TypeDescription
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static CreateScanConfigRequest parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
CreateScanConfigRequest
Exceptions
TypeDescription
IOException

parseFrom(byte[] data)

public static CreateScanConfigRequest parseFrom(byte[] data)
Parameter
NameDescription
databyte[]
Returns
TypeDescription
CreateScanConfigRequest
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static CreateScanConfigRequest parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
databyte[]
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
CreateScanConfigRequest
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data)

public static CreateScanConfigRequest parseFrom(ByteString data)
Parameter
NameDescription
dataByteString
Returns
TypeDescription
CreateScanConfigRequest
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static CreateScanConfigRequest parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteString
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
CreateScanConfigRequest
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static CreateScanConfigRequest parseFrom(CodedInputStream input)
Parameter
NameDescription
inputCodedInputStream
Returns
TypeDescription
CreateScanConfigRequest
Exceptions
TypeDescription
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static CreateScanConfigRequest parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
CreateScanConfigRequest
Exceptions
TypeDescription
IOException

parseFrom(InputStream input)

public static CreateScanConfigRequest parseFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
CreateScanConfigRequest
Exceptions
TypeDescription
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static CreateScanConfigRequest parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
CreateScanConfigRequest
Exceptions
TypeDescription
IOException

parseFrom(ByteBuffer data)

public static CreateScanConfigRequest parseFrom(ByteBuffer data)
Parameter
NameDescription
dataByteBuffer
Returns
TypeDescription
CreateScanConfigRequest
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static CreateScanConfigRequest parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteBuffer
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
CreateScanConfigRequest
Exceptions
TypeDescription
InvalidProtocolBufferException

parser()

public static Parser<CreateScanConfigRequest> parser()
Returns
TypeDescription
Parser<CreateScanConfigRequest>

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
NameDescription
objObject
Returns
TypeDescription
boolean
Overrides

getDefaultInstanceForType()

public CreateScanConfigRequest getDefaultInstanceForType()
Returns
TypeDescription
CreateScanConfigRequest

getParent()

public String getParent()

Required. The parent resource name where the scan is created, which should be a project resource name in the format 'projects/{projectId}'.

string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Returns
TypeDescription
String

The parent.

getParentBytes()

public ByteString getParentBytes()

Required. The parent resource name where the scan is created, which should be a project resource name in the format 'projects/{projectId}'.

string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Returns
TypeDescription
ByteString

The bytes for parent.

getParserForType()

public Parser<CreateScanConfigRequest> getParserForType()
Returns
TypeDescription
Parser<CreateScanConfigRequest>
Overrides

getScanConfig()

public ScanConfig getScanConfig()

Required. The ScanConfig to be created.

.google.cloud.websecurityscanner.v1alpha.ScanConfig scan_config = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
ScanConfig

The scanConfig.

getScanConfigOrBuilder()

public ScanConfigOrBuilder getScanConfigOrBuilder()

Required. The ScanConfig to be created.

.google.cloud.websecurityscanner.v1alpha.ScanConfig scan_config = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
ScanConfigOrBuilder

getSerializedSize()

public int getSerializedSize()
Returns
TypeDescription
int
Overrides

hasScanConfig()

public boolean hasScanConfig()

Required. The ScanConfig to be created.

.google.cloud.websecurityscanner.v1alpha.ScanConfig scan_config = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
boolean

Whether the scanConfig field is set.

hashCode()

public int hashCode()
Returns
TypeDescription
int
Overrides

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

newBuilderForType()

public CreateScanConfigRequest.Builder newBuilderForType()
Returns
TypeDescription
CreateScanConfigRequest.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protected CreateScanConfigRequest.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
NameDescription
parentBuilderParent
Returns
TypeDescription
CreateScanConfigRequest.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
NameDescription
unusedUnusedPrivateParameter
Returns
TypeDescription
Object
Overrides

toBuilder()

public CreateScanConfigRequest.Builder toBuilder()
Returns
TypeDescription
CreateScanConfigRequest.Builder

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
NameDescription
outputCodedOutputStream
Overrides
Exceptions
TypeDescription
IOException