Class CreateDiscoveryConfigRequest.Builder (3.87.0)

public static final class CreateDiscoveryConfigRequest.Builder extends GeneratedMessage.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
Type Description
Descriptor

Methods

build()

public CreateDiscoveryConfigRequest build()
Returns
Type Description
CreateDiscoveryConfigRequest

buildPartial()

public CreateDiscoveryConfigRequest buildPartial()
Returns
Type Description
CreateDiscoveryConfigRequest

clear()

public CreateDiscoveryConfigRequest.Builder clear()
Returns
Type Description
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
Type Description
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
Type Description
CreateDiscoveryConfigRequest.Builder

clearParent()

public CreateDiscoveryConfigRequest.Builder clearParent()

Required. Parent resource name.

The format of this value varies depending on the scope of the request (project or organization):

  • Projects scope: projects/{project_id}/locations/{location_id}
  • Organizations scope: organizations/{org_id}/locations/{location_id}

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

This builder for chaining.

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

The bytes for configId.

getDefaultInstanceForType()

public CreateDiscoveryConfigRequest getDefaultInstanceForType()
Returns
Type Description
CreateDiscoveryConfigRequest

getDescriptorForType()

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

getParent()

public String getParent()

Required. Parent resource name.

The format of this value varies depending on the scope of the request (project or organization):

  • Projects scope: projects/{project_id}/locations/{location_id}
  • Organizations scope: organizations/{org_id}/locations/{location_id}

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

The parent.

getParentBytes()

public ByteString getParentBytes()

Required. Parent resource name.

The format of this value varies depending on the scope of the request (project or organization):

  • Projects scope: projects/{project_id}/locations/{location_id}
  • Organizations scope: organizations/{org_id}/locations/{location_id}

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

Whether the discoveryConfig field is set.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
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
Name Description
value DiscoveryConfig
Returns
Type Description
CreateDiscoveryConfigRequest.Builder

mergeFrom(CreateDiscoveryConfigRequest other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

public CreateDiscoveryConfigRequest.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
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
Name Description
value String

The configId to set.

Returns
Type Description
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
Name Description
value ByteString

The bytes for configId to set.

Returns
Type Description
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
Name Description
value DiscoveryConfig
Returns
Type Description
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
Name Description
builderForValue DiscoveryConfig.Builder
Returns
Type Description
CreateDiscoveryConfigRequest.Builder

setParent(String value)

public CreateDiscoveryConfigRequest.Builder setParent(String value)

Required. Parent resource name.

The format of this value varies depending on the scope of the request (project or organization):

  • Projects scope: projects/{project_id}/locations/{location_id}
  • Organizations scope: organizations/{org_id}/locations/{location_id}

    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
Name Description
value String

The parent to set.

Returns
Type Description
CreateDiscoveryConfigRequest.Builder

This builder for chaining.

setParentBytes(ByteString value)

public CreateDiscoveryConfigRequest.Builder setParentBytes(ByteString value)

Required. Parent resource name.

The format of this value varies depending on the scope of the request (project or organization):

  • Projects scope: projects/{project_id}/locations/{location_id}
  • Organizations scope: organizations/{org_id}/locations/{location_id}

    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
Name Description
value ByteString

The bytes for parent to set.

Returns
Type Description
CreateDiscoveryConfigRequest.Builder

This builder for chaining.