Class UpdateDiscoveryConfigRequest.Builder (3.50.0)

public static final class UpdateDiscoveryConfigRequest.Builder extends GeneratedMessageV3.Builder<UpdateDiscoveryConfigRequest.Builder> implements UpdateDiscoveryConfigRequestOrBuilder

Request message for UpdateDiscoveryConfig.

Protobuf type google.privacy.dlp.v2.UpdateDiscoveryConfigRequest

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public UpdateDiscoveryConfigRequest build()
Returns
Type Description
UpdateDiscoveryConfigRequest

buildPartial()

public UpdateDiscoveryConfigRequest buildPartial()
Returns
Type Description
UpdateDiscoveryConfigRequest

clear()

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

clearDiscoveryConfig()

public UpdateDiscoveryConfigRequest.Builder clearDiscoveryConfig()

Required. New DiscoveryConfig value.

.google.privacy.dlp.v2.DiscoveryConfig discovery_config = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
UpdateDiscoveryConfigRequest.Builder

clearField(Descriptors.FieldDescriptor field)

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

clearName()

public UpdateDiscoveryConfigRequest.Builder clearName()

Required. Resource name of the project and the configuration, for example projects/dlp-test-project/discoveryConfigs/53234423.

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

Returns
Type Description
UpdateDiscoveryConfigRequest.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearUpdateMask()

public UpdateDiscoveryConfigRequest.Builder clearUpdateMask()

Mask to control which fields get updated.

.google.protobuf.FieldMask update_mask = 3;

Returns
Type Description
UpdateDiscoveryConfigRequest.Builder

clone()

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

getDefaultInstanceForType()

public UpdateDiscoveryConfigRequest getDefaultInstanceForType()
Returns
Type Description
UpdateDiscoveryConfigRequest

getDescriptorForType()

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

getDiscoveryConfig()

public DiscoveryConfig getDiscoveryConfig()

Required. New DiscoveryConfig value.

.google.privacy.dlp.v2.DiscoveryConfig discovery_config = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
DiscoveryConfig

The discoveryConfig.

getDiscoveryConfigBuilder()

public DiscoveryConfig.Builder getDiscoveryConfigBuilder()

Required. New DiscoveryConfig value.

.google.privacy.dlp.v2.DiscoveryConfig discovery_config = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
DiscoveryConfig.Builder

getDiscoveryConfigOrBuilder()

public DiscoveryConfigOrBuilder getDiscoveryConfigOrBuilder()

Required. New DiscoveryConfig value.

.google.privacy.dlp.v2.DiscoveryConfig discovery_config = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
DiscoveryConfigOrBuilder

getName()

public String getName()

Required. Resource name of the project and the configuration, for example projects/dlp-test-project/discoveryConfigs/53234423.

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

Returns
Type Description
String

The name.

getNameBytes()

public ByteString getNameBytes()

Required. Resource name of the project and the configuration, for example projects/dlp-test-project/discoveryConfigs/53234423.

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

Returns
Type Description
ByteString

The bytes for name.

getUpdateMask()

public FieldMask getUpdateMask()

Mask to control which fields get updated.

.google.protobuf.FieldMask update_mask = 3;

Returns
Type Description
FieldMask

The updateMask.

getUpdateMaskBuilder()

public FieldMask.Builder getUpdateMaskBuilder()

Mask to control which fields get updated.

.google.protobuf.FieldMask update_mask = 3;

Returns
Type Description
Builder

getUpdateMaskOrBuilder()

public FieldMaskOrBuilder getUpdateMaskOrBuilder()

Mask to control which fields get updated.

.google.protobuf.FieldMask update_mask = 3;

Returns
Type Description
FieldMaskOrBuilder

hasDiscoveryConfig()

public boolean hasDiscoveryConfig()

Required. New DiscoveryConfig value.

.google.privacy.dlp.v2.DiscoveryConfig discovery_config = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
boolean

Whether the discoveryConfig field is set.

hasUpdateMask()

public boolean hasUpdateMask()

Mask to control which fields get updated.

.google.protobuf.FieldMask update_mask = 3;

Returns
Type Description
boolean

Whether the updateMask field is set.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeDiscoveryConfig(DiscoveryConfig value)

public UpdateDiscoveryConfigRequest.Builder mergeDiscoveryConfig(DiscoveryConfig value)

Required. New DiscoveryConfig value.

.google.privacy.dlp.v2.DiscoveryConfig discovery_config = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value DiscoveryConfig
Returns
Type Description
UpdateDiscoveryConfigRequest.Builder

mergeFrom(UpdateDiscoveryConfigRequest other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

mergeUpdateMask(FieldMask value)

public UpdateDiscoveryConfigRequest.Builder mergeUpdateMask(FieldMask value)

Mask to control which fields get updated.

.google.protobuf.FieldMask update_mask = 3;

Parameter
Name Description
value FieldMask
Returns
Type Description
UpdateDiscoveryConfigRequest.Builder

setDiscoveryConfig(DiscoveryConfig value)

public UpdateDiscoveryConfigRequest.Builder setDiscoveryConfig(DiscoveryConfig value)

Required. New DiscoveryConfig value.

.google.privacy.dlp.v2.DiscoveryConfig discovery_config = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value DiscoveryConfig
Returns
Type Description
UpdateDiscoveryConfigRequest.Builder

setDiscoveryConfig(DiscoveryConfig.Builder builderForValue)

public UpdateDiscoveryConfigRequest.Builder setDiscoveryConfig(DiscoveryConfig.Builder builderForValue)

Required. New DiscoveryConfig value.

.google.privacy.dlp.v2.DiscoveryConfig discovery_config = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
builderForValue DiscoveryConfig.Builder
Returns
Type Description
UpdateDiscoveryConfigRequest.Builder

setField(Descriptors.FieldDescriptor field, Object value)

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

setName(String value)

public UpdateDiscoveryConfigRequest.Builder setName(String value)

Required. Resource name of the project and the configuration, for example projects/dlp-test-project/discoveryConfigs/53234423.

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

Parameter
Name Description
value String

The name to set.

Returns
Type Description
UpdateDiscoveryConfigRequest.Builder

This builder for chaining.

setNameBytes(ByteString value)

public UpdateDiscoveryConfigRequest.Builder setNameBytes(ByteString value)

Required. Resource name of the project and the configuration, for example projects/dlp-test-project/discoveryConfigs/53234423.

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

Parameter
Name Description
value ByteString

The bytes for name to set.

Returns
Type Description
UpdateDiscoveryConfigRequest.Builder

This builder for chaining.

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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

setUpdateMask(FieldMask value)

public UpdateDiscoveryConfigRequest.Builder setUpdateMask(FieldMask value)

Mask to control which fields get updated.

.google.protobuf.FieldMask update_mask = 3;

Parameter
Name Description
value FieldMask
Returns
Type Description
UpdateDiscoveryConfigRequest.Builder

setUpdateMask(FieldMask.Builder builderForValue)

public UpdateDiscoveryConfigRequest.Builder setUpdateMask(FieldMask.Builder builderForValue)

Mask to control which fields get updated.

.google.protobuf.FieldMask update_mask = 3;

Parameter
Name Description
builderForValue Builder
Returns
Type Description
UpdateDiscoveryConfigRequest.Builder