Class CreateDiscoveryConfigRequest.Builder (3.51.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
Type Description
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

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

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

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

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.

clone()

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

mergeUnknownFields(UnknownFieldSet unknownFields)

public final CreateDiscoveryConfigRequest.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
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

setField(Descriptors.FieldDescriptor field, Object value)

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

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.

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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