Class CreateScanConfigRequest.Builder (2.7.0)

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

Request for the CreateScanConfig method.

Protobuf type google.cloud.websecurityscanner.v1alpha.CreateScanConfigRequest

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public CreateScanConfigRequest.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
CreateScanConfigRequest.Builder
Overrides

build()

public CreateScanConfigRequest build()
Returns
TypeDescription
CreateScanConfigRequest

buildPartial()

public CreateScanConfigRequest buildPartial()
Returns
TypeDescription
CreateScanConfigRequest

clear()

public CreateScanConfigRequest.Builder clear()
Returns
TypeDescription
CreateScanConfigRequest.Builder
Overrides

clearField(Descriptors.FieldDescriptor field)

public CreateScanConfigRequest.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
CreateScanConfigRequest.Builder
Overrides

clearOneof(Descriptors.OneofDescriptor oneof)

public CreateScanConfigRequest.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
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
TypeDescription
CreateScanConfigRequest.Builder

This builder for chaining.

clearScanConfig()

public CreateScanConfigRequest.Builder clearScanConfig()

Required. The ScanConfig to be created.

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

Returns
TypeDescription
CreateScanConfigRequest.Builder

clone()

public CreateScanConfigRequest.Builder clone()
Returns
TypeDescription
CreateScanConfigRequest.Builder
Overrides

getDefaultInstanceForType()

public CreateScanConfigRequest getDefaultInstanceForType()
Returns
TypeDescription
CreateScanConfigRequest

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
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
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.

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.

getScanConfigBuilder()

public ScanConfig.Builder getScanConfigBuilder()

Required. The ScanConfig to be created.

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

Returns
TypeDescription
ScanConfig.Builder

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

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.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(CreateScanConfigRequest other)

public CreateScanConfigRequest.Builder mergeFrom(CreateScanConfigRequest other)
Parameter
NameDescription
otherCreateScanConfigRequest
Returns
TypeDescription
CreateScanConfigRequest.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public CreateScanConfigRequest.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
CreateScanConfigRequest.Builder
Overrides Exceptions
TypeDescription
IOException

mergeFrom(Message other)

public CreateScanConfigRequest.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
CreateScanConfigRequest.Builder
Overrides

mergeScanConfig(ScanConfig value)

public CreateScanConfigRequest.Builder mergeScanConfig(ScanConfig value)

Required. The ScanConfig to be created.

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

Parameter
NameDescription
valueScanConfig
Returns
TypeDescription
CreateScanConfigRequest.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

public final CreateScanConfigRequest.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
CreateScanConfigRequest.Builder
Overrides

setField(Descriptors.FieldDescriptor field, Object value)

public CreateScanConfigRequest.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
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
NameDescription
valueString

The parent to set.

Returns
TypeDescription
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
NameDescription
valueByteString

The bytes for parent to set.

Returns
TypeDescription
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
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
CreateScanConfigRequest.Builder
Overrides

setScanConfig(ScanConfig value)

public CreateScanConfigRequest.Builder setScanConfig(ScanConfig value)

Required. The ScanConfig to be created.

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

Parameter
NameDescription
valueScanConfig
Returns
TypeDescription
CreateScanConfigRequest.Builder

setScanConfig(ScanConfig.Builder builderForValue)

public CreateScanConfigRequest.Builder setScanConfig(ScanConfig.Builder builderForValue)

Required. The ScanConfig to be created.

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

Parameter
NameDescription
builderForValueScanConfig.Builder
Returns
TypeDescription
CreateScanConfigRequest.Builder

setUnknownFields(UnknownFieldSet unknownFields)

public final CreateScanConfigRequest.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
CreateScanConfigRequest.Builder
Overrides