Class CreateDiscoveryConfigRequest.Builder (3.35.0)

public static final class CreateDiscoveryConfigRequest.Builder extends GeneratedMessageV3.Builder<CreateDiscoveryConfigRequest.Builder> implements CreateDiscoveryConfigRequestOrBuilder

Request message for CreateDiscoveryConfig.

Protobuf type google.privacy.dlp.v2.CreateDiscoveryConfigRequest

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public CreateDiscoveryConfigRequest build()
Returns
TypeDescription
CreateDiscoveryConfigRequest

buildPartial()

public CreateDiscoveryConfigRequest buildPartial()
Returns
TypeDescription
CreateDiscoveryConfigRequest

clear()

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

clearConfigId()

public CreateDiscoveryConfigRequest.Builder clearConfigId()

The config ID can contain uppercase and lowercase letters, numbers, and hyphens; that is, it must match the regular expression: [a-zA-Z\d-_]+. The maximum length is 100 characters. Can be empty to allow the system to generate one.

string config_id = 3;

Returns
TypeDescription
CreateDiscoveryConfigRequest.Builder

This builder for chaining.

clearDiscoveryConfig()

public CreateDiscoveryConfigRequest.Builder clearDiscoveryConfig()

Required. The DiscoveryConfig to create.

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

Returns
TypeDescription
CreateDiscoveryConfigRequest.Builder

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearParent()

public CreateDiscoveryConfigRequest.Builder clearParent()

Required. Parent resource name.

The format of this value is as follows: projects/<var>PROJECT_ID</var>/locations/<var>LOCATION_ID</var>

The following example parent string specifies a parent project with the identifier example-project, and specifies the europe-west3 location for processing data:

 parent=projects/example-project/locations/europe-west3

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

Returns
TypeDescription
CreateDiscoveryConfigRequest.Builder

This builder for chaining.

clone()

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

getConfigId()

public String getConfigId()

The config ID can contain uppercase and lowercase letters, numbers, and hyphens; that is, it must match the regular expression: [a-zA-Z\d-_]+. The maximum length is 100 characters. Can be empty to allow the system to generate one.

string config_id = 3;

Returns
TypeDescription
String

The configId.

getConfigIdBytes()

public ByteString getConfigIdBytes()

The config ID can contain uppercase and lowercase letters, numbers, and hyphens; that is, it must match the regular expression: [a-zA-Z\d-_]+. The maximum length is 100 characters. Can be empty to allow the system to generate one.

string config_id = 3;

Returns
TypeDescription
ByteString

The bytes for configId.

getDefaultInstanceForType()

public CreateDiscoveryConfigRequest getDefaultInstanceForType()
Returns
TypeDescription
CreateDiscoveryConfigRequest

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getDiscoveryConfig()

public DiscoveryConfig getDiscoveryConfig()

Required. The DiscoveryConfig to create.

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

Returns
TypeDescription
DiscoveryConfig

The discoveryConfig.

getDiscoveryConfigBuilder()

public DiscoveryConfig.Builder getDiscoveryConfigBuilder()

Required. The DiscoveryConfig to create.

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

Returns
TypeDescription
DiscoveryConfig.Builder

getDiscoveryConfigOrBuilder()

public DiscoveryConfigOrBuilder getDiscoveryConfigOrBuilder()

Required. The DiscoveryConfig to create.

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

Returns
TypeDescription
DiscoveryConfigOrBuilder

getParent()

public String getParent()

Required. Parent resource name.

The format of this value is as follows: projects/<var>PROJECT_ID</var>/locations/<var>LOCATION_ID</var>

The following example parent string specifies a parent project with the identifier example-project, and specifies the europe-west3 location for processing data:

 parent=projects/example-project/locations/europe-west3

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

Returns
TypeDescription
String

The parent.

getParentBytes()

public ByteString getParentBytes()

Required. Parent resource name.

The format of this value is as follows: projects/<var>PROJECT_ID</var>/locations/<var>LOCATION_ID</var>

The following example parent string specifies a parent project with the identifier example-project, and specifies the europe-west3 location for processing data:

 parent=projects/example-project/locations/europe-west3

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

Returns
TypeDescription
ByteString

The bytes for parent.

hasDiscoveryConfig()

public boolean hasDiscoveryConfig()

Required. The DiscoveryConfig to create.

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

Returns
TypeDescription
boolean

Whether the discoveryConfig 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 CreateDiscoveryConfigRequest.Builder mergeDiscoveryConfig(DiscoveryConfig value)

Required. The DiscoveryConfig to create.

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

Parameter
NameDescription
valueDiscoveryConfig
Returns
TypeDescription
CreateDiscoveryConfigRequest.Builder

mergeFrom(CreateDiscoveryConfigRequest other)

public CreateDiscoveryConfigRequest.Builder mergeFrom(CreateDiscoveryConfigRequest other)
Parameter
NameDescription
otherCreateDiscoveryConfigRequest
Returns
TypeDescription
CreateDiscoveryConfigRequest.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setConfigId(String value)

public CreateDiscoveryConfigRequest.Builder setConfigId(String value)

The config ID can contain uppercase and lowercase letters, numbers, and hyphens; that is, it must match the regular expression: [a-zA-Z\d-_]+. The maximum length is 100 characters. Can be empty to allow the system to generate one.

string config_id = 3;

Parameter
NameDescription
valueString

The configId to set.

Returns
TypeDescription
CreateDiscoveryConfigRequest.Builder

This builder for chaining.

setConfigIdBytes(ByteString value)

public CreateDiscoveryConfigRequest.Builder setConfigIdBytes(ByteString value)

The config ID can contain uppercase and lowercase letters, numbers, and hyphens; that is, it must match the regular expression: [a-zA-Z\d-_]+. The maximum length is 100 characters. Can be empty to allow the system to generate one.

string config_id = 3;

Parameter
NameDescription
valueByteString

The bytes for configId to set.

Returns
TypeDescription
CreateDiscoveryConfigRequest.Builder

This builder for chaining.

setDiscoveryConfig(DiscoveryConfig value)

public CreateDiscoveryConfigRequest.Builder setDiscoveryConfig(DiscoveryConfig value)

Required. The DiscoveryConfig to create.

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

Parameter
NameDescription
valueDiscoveryConfig
Returns
TypeDescription
CreateDiscoveryConfigRequest.Builder

setDiscoveryConfig(DiscoveryConfig.Builder builderForValue)

public CreateDiscoveryConfigRequest.Builder setDiscoveryConfig(DiscoveryConfig.Builder builderForValue)

Required. The DiscoveryConfig to create.

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

Parameter
NameDescription
builderForValueDiscoveryConfig.Builder
Returns
TypeDescription
CreateDiscoveryConfigRequest.Builder

setField(Descriptors.FieldDescriptor field, Object value)

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

setParent(String value)

public CreateDiscoveryConfigRequest.Builder setParent(String value)

Required. Parent resource name.

The format of this value is as follows: projects/<var>PROJECT_ID</var>/locations/<var>LOCATION_ID</var>

The following example parent string specifies a parent project with the identifier example-project, and specifies the europe-west3 location for processing data:

 parent=projects/example-project/locations/europe-west3

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

Parameter
NameDescription
valueString

The parent to set.

Returns
TypeDescription
CreateDiscoveryConfigRequest.Builder

This builder for chaining.

setParentBytes(ByteString value)

public CreateDiscoveryConfigRequest.Builder setParentBytes(ByteString value)

Required. Parent resource name.

The format of this value is as follows: projects/<var>PROJECT_ID</var>/locations/<var>LOCATION_ID</var>

The following example parent string specifies a parent project with the identifier example-project, and specifies the europe-west3 location for processing data:

 parent=projects/example-project/locations/europe-west3

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

Parameter
NameDescription
valueByteString

The bytes for parent to set.

Returns
TypeDescription
CreateDiscoveryConfigRequest.Builder

This builder for chaining.

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

public CreateDiscoveryConfigRequest.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
CreateDiscoveryConfigRequest.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

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