Class CreateScanConfigRequest.Builder (2.44.0)

public static final class CreateScanConfigRequest.Builder extends GeneratedMessageV3.Builder<CreateScanConfigRequest.Builder> implements CreateScanConfigRequestOrBuilder

Request for the CreateScanConfig method.

Protobuf type google.cloud.websecurityscanner.v1beta.CreateScanConfigRequest

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
Type Description
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public CreateScanConfigRequest.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
CreateScanConfigRequest.Builder
Overrides

build()

public CreateScanConfigRequest build()
Returns
Type Description
CreateScanConfigRequest

buildPartial()

public CreateScanConfigRequest buildPartial()
Returns
Type Description
CreateScanConfigRequest

clear()

public CreateScanConfigRequest.Builder clear()
Returns
Type Description
CreateScanConfigRequest.Builder
Overrides

clearField(Descriptors.FieldDescriptor field)

public CreateScanConfigRequest.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
CreateScanConfigRequest.Builder
Overrides

clearOneof(Descriptors.OneofDescriptor oneof)

public CreateScanConfigRequest.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
CreateScanConfigRequest.Builder
Overrides

clearParent()

public CreateScanConfigRequest.Builder clearParent()

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
Type Description
CreateScanConfigRequest.Builder

This builder for chaining.

clearScanConfig()

public CreateScanConfigRequest.Builder clearScanConfig()

Required. The ScanConfig to be created.

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

Returns
Type Description
CreateScanConfigRequest.Builder

clone()

public CreateScanConfigRequest.Builder clone()
Returns
Type Description
CreateScanConfigRequest.Builder
Overrides

getDefaultInstanceForType()

public CreateScanConfigRequest getDefaultInstanceForType()
Returns
Type Description
CreateScanConfigRequest

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
Overrides

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
Type Description
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
Type Description
ByteString

The bytes for parent.

getScanConfig()

public ScanConfig getScanConfig()

Required. The ScanConfig to be created.

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

Returns
Type Description
ScanConfig

The scanConfig.

getScanConfigBuilder()

public ScanConfig.Builder getScanConfigBuilder()

Required. The ScanConfig to be created.

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

Returns
Type Description
ScanConfig.Builder

getScanConfigOrBuilder()

public ScanConfigOrBuilder getScanConfigOrBuilder()

Required. The ScanConfig to be created.

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

Returns
Type Description
ScanConfigOrBuilder

hasScanConfig()

public boolean hasScanConfig()

Required. The ScanConfig to be created.

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

Returns
Type Description
boolean

Whether the scanConfig field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(CreateScanConfigRequest other)

public CreateScanConfigRequest.Builder mergeFrom(CreateScanConfigRequest other)
Parameter
Name Description
other CreateScanConfigRequest
Returns
Type Description
CreateScanConfigRequest.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public CreateScanConfigRequest.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
CreateScanConfigRequest.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

public CreateScanConfigRequest.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
CreateScanConfigRequest.Builder
Overrides

mergeScanConfig(ScanConfig value)

public CreateScanConfigRequest.Builder mergeScanConfig(ScanConfig value)

Required. The ScanConfig to be created.

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

Parameter
Name Description
value ScanConfig
Returns
Type Description
CreateScanConfigRequest.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

public final CreateScanConfigRequest.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
CreateScanConfigRequest.Builder
Overrides

setField(Descriptors.FieldDescriptor field, Object value)

public CreateScanConfigRequest.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
CreateScanConfigRequest.Builder
Overrides

setParent(String value)

public CreateScanConfigRequest.Builder setParent(String value)

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) = { ... }

Parameter
Name Description
value String

The parent to set.

Returns
Type Description
CreateScanConfigRequest.Builder

This builder for chaining.

setParentBytes(ByteString value)

public CreateScanConfigRequest.Builder setParentBytes(ByteString value)

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) = { ... }

Parameter
Name Description
value ByteString

The bytes for parent to set.

Returns
Type Description
CreateScanConfigRequest.Builder

This builder for chaining.

setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)

public CreateScanConfigRequest.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
CreateScanConfigRequest.Builder
Overrides

setScanConfig(ScanConfig value)

public CreateScanConfigRequest.Builder setScanConfig(ScanConfig value)

Required. The ScanConfig to be created.

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

Parameter
Name Description
value ScanConfig
Returns
Type Description
CreateScanConfigRequest.Builder

setScanConfig(ScanConfig.Builder builderForValue)

public CreateScanConfigRequest.Builder setScanConfig(ScanConfig.Builder builderForValue)

Required. The ScanConfig to be created.

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

Parameter
Name Description
builderForValue ScanConfig.Builder
Returns
Type Description
CreateScanConfigRequest.Builder

setUnknownFields(UnknownFieldSet unknownFields)

public final CreateScanConfigRequest.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
CreateScanConfigRequest.Builder
Overrides