Class UpdateDiscoveryConfigRequest.Builder (3.36.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
TypeDescription
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public UpdateDiscoveryConfigRequest build()
Returns
TypeDescription
UpdateDiscoveryConfigRequest

buildPartial()

public UpdateDiscoveryConfigRequest buildPartial()
Returns
TypeDescription
UpdateDiscoveryConfigRequest

clear()

public UpdateDiscoveryConfigRequest.Builder clear()
Returns
TypeDescription
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
TypeDescription
UpdateDiscoveryConfigRequest.Builder

clearField(Descriptors.FieldDescriptor field)

public UpdateDiscoveryConfigRequest.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
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
TypeDescription
UpdateDiscoveryConfigRequest.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

public UpdateDiscoveryConfigRequest.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
UpdateDiscoveryConfigRequest.Builder
Overrides

clearUpdateMask()

public UpdateDiscoveryConfigRequest.Builder clearUpdateMask()

Mask to control which fields get updated.

.google.protobuf.FieldMask update_mask = 3;

Returns
TypeDescription
UpdateDiscoveryConfigRequest.Builder

clone()

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

getDefaultInstanceForType()

public UpdateDiscoveryConfigRequest getDefaultInstanceForType()
Returns
TypeDescription
UpdateDiscoveryConfigRequest

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getDiscoveryConfig()

public DiscoveryConfig getDiscoveryConfig()

Required. New DiscoveryConfig value.

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

Returns
TypeDescription
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
TypeDescription
DiscoveryConfig.Builder

getDiscoveryConfigOrBuilder()

public DiscoveryConfigOrBuilder getDiscoveryConfigOrBuilder()

Required. New DiscoveryConfig value.

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

Returns
TypeDescription
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
TypeDescription
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
TypeDescription
ByteString

The bytes for name.

getUpdateMask()

public FieldMask getUpdateMask()

Mask to control which fields get updated.

.google.protobuf.FieldMask update_mask = 3;

Returns
TypeDescription
FieldMask

The updateMask.

getUpdateMaskBuilder()

public FieldMask.Builder getUpdateMaskBuilder()

Mask to control which fields get updated.

.google.protobuf.FieldMask update_mask = 3;

Returns
TypeDescription
Builder

getUpdateMaskOrBuilder()

public FieldMaskOrBuilder getUpdateMaskOrBuilder()

Mask to control which fields get updated.

.google.protobuf.FieldMask update_mask = 3;

Returns
TypeDescription
FieldMaskOrBuilder

hasDiscoveryConfig()

public boolean hasDiscoveryConfig()

Required. New DiscoveryConfig value.

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

Returns
TypeDescription
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
TypeDescription
boolean

Whether the updateMask field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
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
NameDescription
valueDiscoveryConfig
Returns
TypeDescription
UpdateDiscoveryConfigRequest.Builder

mergeFrom(UpdateDiscoveryConfigRequest other)

public UpdateDiscoveryConfigRequest.Builder mergeFrom(UpdateDiscoveryConfigRequest other)
Parameter
NameDescription
otherUpdateDiscoveryConfigRequest
Returns
TypeDescription
UpdateDiscoveryConfigRequest.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

public final UpdateDiscoveryConfigRequest.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
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
NameDescription
valueFieldMask
Returns
TypeDescription
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
NameDescription
valueDiscoveryConfig
Returns
TypeDescription
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
NameDescription
builderForValueDiscoveryConfig.Builder
Returns
TypeDescription
UpdateDiscoveryConfigRequest.Builder

setField(Descriptors.FieldDescriptor field, Object value)

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

The name to set.

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

The bytes for name to set.

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

setUnknownFields(UnknownFieldSet unknownFields)

public final UpdateDiscoveryConfigRequest.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
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
NameDescription
valueFieldMask
Returns
TypeDescription
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
NameDescription
builderForValueBuilder
Returns
TypeDescription
UpdateDiscoveryConfigRequest.Builder