Class DeidentifyContentRequest.Builder (3.47.0)

public static final class DeidentifyContentRequest.Builder extends GeneratedMessageV3.Builder<DeidentifyContentRequest.Builder> implements DeidentifyContentRequestOrBuilder

Request to de-identify a ContentItem.

Protobuf type google.privacy.dlp.v2.DeidentifyContentRequest

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public DeidentifyContentRequest build()
Returns
Type Description
DeidentifyContentRequest

buildPartial()

public DeidentifyContentRequest buildPartial()
Returns
Type Description
DeidentifyContentRequest

clear()

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

clearDeidentifyConfig()

public DeidentifyContentRequest.Builder clearDeidentifyConfig()

Configuration for the de-identification of the content item. Items specified here will override the template referenced by the deidentify_template_name argument.

.google.privacy.dlp.v2.DeidentifyConfig deidentify_config = 2;

Returns
Type Description
DeidentifyContentRequest.Builder

clearDeidentifyTemplateName()

public DeidentifyContentRequest.Builder clearDeidentifyTemplateName()

Template to use. Any configuration directly specified in deidentify_config will override those set in the template. Singular fields that are set in this request will replace their corresponding fields in the template. Repeated fields are appended. Singular sub-messages and groups are recursively merged.

string deidentify_template_name = 6;

Returns
Type Description
DeidentifyContentRequest.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

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

clearInspectConfig()

public DeidentifyContentRequest.Builder clearInspectConfig()

Configuration for the inspector. Items specified here will override the template referenced by the inspect_template_name argument.

.google.privacy.dlp.v2.InspectConfig inspect_config = 3;

Returns
Type Description
DeidentifyContentRequest.Builder

clearInspectTemplateName()

public DeidentifyContentRequest.Builder clearInspectTemplateName()

Template to use. Any configuration directly specified in inspect_config will override those set in the template. Singular fields that are set in this request will replace their corresponding fields in the template. Repeated fields are appended. Singular sub-messages and groups are recursively merged.

string inspect_template_name = 5;

Returns
Type Description
DeidentifyContentRequest.Builder

This builder for chaining.

clearItem()

public DeidentifyContentRequest.Builder clearItem()

The item to de-identify. Will be treated as text.

This value must be of type Table if your deidentify_config is a RecordTransformations object.

.google.privacy.dlp.v2.ContentItem item = 4;

Returns
Type Description
DeidentifyContentRequest.Builder

clearLocationId()

public DeidentifyContentRequest.Builder clearLocationId()

Deprecated. This field has no effect.

string location_id = 7;

Returns
Type Description
DeidentifyContentRequest.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearParent()

public DeidentifyContentRequest.Builder clearParent()

Parent resource name.

The format of this value varies depending on whether you have specified a processing location:

  • Projects scope, location specified:<br/> projects/<var>PROJECT_ID</var>/locations/<var>LOCATION_ID</var>
  • Projects scope, no location specified (defaults to global):<br/> projects/<var>PROJECT_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.resource_reference) = { ... }

Returns
Type Description
DeidentifyContentRequest.Builder

This builder for chaining.

clone()

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

getDefaultInstanceForType()

public DeidentifyContentRequest getDefaultInstanceForType()
Returns
Type Description
DeidentifyContentRequest

getDeidentifyConfig()

public DeidentifyConfig getDeidentifyConfig()

Configuration for the de-identification of the content item. Items specified here will override the template referenced by the deidentify_template_name argument.

.google.privacy.dlp.v2.DeidentifyConfig deidentify_config = 2;

Returns
Type Description
DeidentifyConfig

The deidentifyConfig.

getDeidentifyConfigBuilder()

public DeidentifyConfig.Builder getDeidentifyConfigBuilder()

Configuration for the de-identification of the content item. Items specified here will override the template referenced by the deidentify_template_name argument.

.google.privacy.dlp.v2.DeidentifyConfig deidentify_config = 2;

Returns
Type Description
DeidentifyConfig.Builder

getDeidentifyConfigOrBuilder()

public DeidentifyConfigOrBuilder getDeidentifyConfigOrBuilder()

Configuration for the de-identification of the content item. Items specified here will override the template referenced by the deidentify_template_name argument.

.google.privacy.dlp.v2.DeidentifyConfig deidentify_config = 2;

Returns
Type Description
DeidentifyConfigOrBuilder

getDeidentifyTemplateName()

public String getDeidentifyTemplateName()

Template to use. Any configuration directly specified in deidentify_config will override those set in the template. Singular fields that are set in this request will replace their corresponding fields in the template. Repeated fields are appended. Singular sub-messages and groups are recursively merged.

string deidentify_template_name = 6;

Returns
Type Description
String

The deidentifyTemplateName.

getDeidentifyTemplateNameBytes()

public ByteString getDeidentifyTemplateNameBytes()

Template to use. Any configuration directly specified in deidentify_config will override those set in the template. Singular fields that are set in this request will replace their corresponding fields in the template. Repeated fields are appended. Singular sub-messages and groups are recursively merged.

string deidentify_template_name = 6;

Returns
Type Description
ByteString

The bytes for deidentifyTemplateName.

getDescriptorForType()

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

getInspectConfig()

public InspectConfig getInspectConfig()

Configuration for the inspector. Items specified here will override the template referenced by the inspect_template_name argument.

.google.privacy.dlp.v2.InspectConfig inspect_config = 3;

Returns
Type Description
InspectConfig

The inspectConfig.

getInspectConfigBuilder()

public InspectConfig.Builder getInspectConfigBuilder()

Configuration for the inspector. Items specified here will override the template referenced by the inspect_template_name argument.

.google.privacy.dlp.v2.InspectConfig inspect_config = 3;

Returns
Type Description
InspectConfig.Builder

getInspectConfigOrBuilder()

public InspectConfigOrBuilder getInspectConfigOrBuilder()

Configuration for the inspector. Items specified here will override the template referenced by the inspect_template_name argument.

.google.privacy.dlp.v2.InspectConfig inspect_config = 3;

Returns
Type Description
InspectConfigOrBuilder

getInspectTemplateName()

public String getInspectTemplateName()

Template to use. Any configuration directly specified in inspect_config will override those set in the template. Singular fields that are set in this request will replace their corresponding fields in the template. Repeated fields are appended. Singular sub-messages and groups are recursively merged.

string inspect_template_name = 5;

Returns
Type Description
String

The inspectTemplateName.

getInspectTemplateNameBytes()

public ByteString getInspectTemplateNameBytes()

Template to use. Any configuration directly specified in inspect_config will override those set in the template. Singular fields that are set in this request will replace their corresponding fields in the template. Repeated fields are appended. Singular sub-messages and groups are recursively merged.

string inspect_template_name = 5;

Returns
Type Description
ByteString

The bytes for inspectTemplateName.

getItem()

public ContentItem getItem()

The item to de-identify. Will be treated as text.

This value must be of type Table if your deidentify_config is a RecordTransformations object.

.google.privacy.dlp.v2.ContentItem item = 4;

Returns
Type Description
ContentItem

The item.

getItemBuilder()

public ContentItem.Builder getItemBuilder()

The item to de-identify. Will be treated as text.

This value must be of type Table if your deidentify_config is a RecordTransformations object.

.google.privacy.dlp.v2.ContentItem item = 4;

Returns
Type Description
ContentItem.Builder

getItemOrBuilder()

public ContentItemOrBuilder getItemOrBuilder()

The item to de-identify. Will be treated as text.

This value must be of type Table if your deidentify_config is a RecordTransformations object.

.google.privacy.dlp.v2.ContentItem item = 4;

Returns
Type Description
ContentItemOrBuilder

getLocationId()

public String getLocationId()

Deprecated. This field has no effect.

string location_id = 7;

Returns
Type Description
String

The locationId.

getLocationIdBytes()

public ByteString getLocationIdBytes()

Deprecated. This field has no effect.

string location_id = 7;

Returns
Type Description
ByteString

The bytes for locationId.

getParent()

public String getParent()

Parent resource name.

The format of this value varies depending on whether you have specified a processing location:

  • Projects scope, location specified:<br/> projects/<var>PROJECT_ID</var>/locations/<var>LOCATION_ID</var>
  • Projects scope, no location specified (defaults to global):<br/> projects/<var>PROJECT_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.resource_reference) = { ... }

Returns
Type Description
String

The parent.

getParentBytes()

public ByteString getParentBytes()

Parent resource name.

The format of this value varies depending on whether you have specified a processing location:

  • Projects scope, location specified:<br/> projects/<var>PROJECT_ID</var>/locations/<var>LOCATION_ID</var>
  • Projects scope, no location specified (defaults to global):<br/> projects/<var>PROJECT_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.resource_reference) = { ... }

Returns
Type Description
ByteString

The bytes for parent.

hasDeidentifyConfig()

public boolean hasDeidentifyConfig()

Configuration for the de-identification of the content item. Items specified here will override the template referenced by the deidentify_template_name argument.

.google.privacy.dlp.v2.DeidentifyConfig deidentify_config = 2;

Returns
Type Description
boolean

Whether the deidentifyConfig field is set.

hasInspectConfig()

public boolean hasInspectConfig()

Configuration for the inspector. Items specified here will override the template referenced by the inspect_template_name argument.

.google.privacy.dlp.v2.InspectConfig inspect_config = 3;

Returns
Type Description
boolean

Whether the inspectConfig field is set.

hasItem()

public boolean hasItem()

The item to de-identify. Will be treated as text.

This value must be of type Table if your deidentify_config is a RecordTransformations object.

.google.privacy.dlp.v2.ContentItem item = 4;

Returns
Type Description
boolean

Whether the item field is set.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeDeidentifyConfig(DeidentifyConfig value)

public DeidentifyContentRequest.Builder mergeDeidentifyConfig(DeidentifyConfig value)

Configuration for the de-identification of the content item. Items specified here will override the template referenced by the deidentify_template_name argument.

.google.privacy.dlp.v2.DeidentifyConfig deidentify_config = 2;

Parameter
Name Description
value DeidentifyConfig
Returns
Type Description
DeidentifyContentRequest.Builder

mergeFrom(DeidentifyContentRequest other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeInspectConfig(InspectConfig value)

public DeidentifyContentRequest.Builder mergeInspectConfig(InspectConfig value)

Configuration for the inspector. Items specified here will override the template referenced by the inspect_template_name argument.

.google.privacy.dlp.v2.InspectConfig inspect_config = 3;

Parameter
Name Description
value InspectConfig
Returns
Type Description
DeidentifyContentRequest.Builder

mergeItem(ContentItem value)

public DeidentifyContentRequest.Builder mergeItem(ContentItem value)

The item to de-identify. Will be treated as text.

This value must be of type Table if your deidentify_config is a RecordTransformations object.

.google.privacy.dlp.v2.ContentItem item = 4;

Parameter
Name Description
value ContentItem
Returns
Type Description
DeidentifyContentRequest.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setDeidentifyConfig(DeidentifyConfig value)

public DeidentifyContentRequest.Builder setDeidentifyConfig(DeidentifyConfig value)

Configuration for the de-identification of the content item. Items specified here will override the template referenced by the deidentify_template_name argument.

.google.privacy.dlp.v2.DeidentifyConfig deidentify_config = 2;

Parameter
Name Description
value DeidentifyConfig
Returns
Type Description
DeidentifyContentRequest.Builder

setDeidentifyConfig(DeidentifyConfig.Builder builderForValue)

public DeidentifyContentRequest.Builder setDeidentifyConfig(DeidentifyConfig.Builder builderForValue)

Configuration for the de-identification of the content item. Items specified here will override the template referenced by the deidentify_template_name argument.

.google.privacy.dlp.v2.DeidentifyConfig deidentify_config = 2;

Parameter
Name Description
builderForValue DeidentifyConfig.Builder
Returns
Type Description
DeidentifyContentRequest.Builder

setDeidentifyTemplateName(String value)

public DeidentifyContentRequest.Builder setDeidentifyTemplateName(String value)

Template to use. Any configuration directly specified in deidentify_config will override those set in the template. Singular fields that are set in this request will replace their corresponding fields in the template. Repeated fields are appended. Singular sub-messages and groups are recursively merged.

string deidentify_template_name = 6;

Parameter
Name Description
value String

The deidentifyTemplateName to set.

Returns
Type Description
DeidentifyContentRequest.Builder

This builder for chaining.

setDeidentifyTemplateNameBytes(ByteString value)

public DeidentifyContentRequest.Builder setDeidentifyTemplateNameBytes(ByteString value)

Template to use. Any configuration directly specified in deidentify_config will override those set in the template. Singular fields that are set in this request will replace their corresponding fields in the template. Repeated fields are appended. Singular sub-messages and groups are recursively merged.

string deidentify_template_name = 6;

Parameter
Name Description
value ByteString

The bytes for deidentifyTemplateName to set.

Returns
Type Description
DeidentifyContentRequest.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

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

setInspectConfig(InspectConfig value)

public DeidentifyContentRequest.Builder setInspectConfig(InspectConfig value)

Configuration for the inspector. Items specified here will override the template referenced by the inspect_template_name argument.

.google.privacy.dlp.v2.InspectConfig inspect_config = 3;

Parameter
Name Description
value InspectConfig
Returns
Type Description
DeidentifyContentRequest.Builder

setInspectConfig(InspectConfig.Builder builderForValue)

public DeidentifyContentRequest.Builder setInspectConfig(InspectConfig.Builder builderForValue)

Configuration for the inspector. Items specified here will override the template referenced by the inspect_template_name argument.

.google.privacy.dlp.v2.InspectConfig inspect_config = 3;

Parameter
Name Description
builderForValue InspectConfig.Builder
Returns
Type Description
DeidentifyContentRequest.Builder

setInspectTemplateName(String value)

public DeidentifyContentRequest.Builder setInspectTemplateName(String value)

Template to use. Any configuration directly specified in inspect_config will override those set in the template. Singular fields that are set in this request will replace their corresponding fields in the template. Repeated fields are appended. Singular sub-messages and groups are recursively merged.

string inspect_template_name = 5;

Parameter
Name Description
value String

The inspectTemplateName to set.

Returns
Type Description
DeidentifyContentRequest.Builder

This builder for chaining.

setInspectTemplateNameBytes(ByteString value)

public DeidentifyContentRequest.Builder setInspectTemplateNameBytes(ByteString value)

Template to use. Any configuration directly specified in inspect_config will override those set in the template. Singular fields that are set in this request will replace their corresponding fields in the template. Repeated fields are appended. Singular sub-messages and groups are recursively merged.

string inspect_template_name = 5;

Parameter
Name Description
value ByteString

The bytes for inspectTemplateName to set.

Returns
Type Description
DeidentifyContentRequest.Builder

This builder for chaining.

setItem(ContentItem value)

public DeidentifyContentRequest.Builder setItem(ContentItem value)

The item to de-identify. Will be treated as text.

This value must be of type Table if your deidentify_config is a RecordTransformations object.

.google.privacy.dlp.v2.ContentItem item = 4;

Parameter
Name Description
value ContentItem
Returns
Type Description
DeidentifyContentRequest.Builder

setItem(ContentItem.Builder builderForValue)

public DeidentifyContentRequest.Builder setItem(ContentItem.Builder builderForValue)

The item to de-identify. Will be treated as text.

This value must be of type Table if your deidentify_config is a RecordTransformations object.

.google.privacy.dlp.v2.ContentItem item = 4;

Parameter
Name Description
builderForValue ContentItem.Builder
Returns
Type Description
DeidentifyContentRequest.Builder

setLocationId(String value)

public DeidentifyContentRequest.Builder setLocationId(String value)

Deprecated. This field has no effect.

string location_id = 7;

Parameter
Name Description
value String

The locationId to set.

Returns
Type Description
DeidentifyContentRequest.Builder

This builder for chaining.

setLocationIdBytes(ByteString value)

public DeidentifyContentRequest.Builder setLocationIdBytes(ByteString value)

Deprecated. This field has no effect.

string location_id = 7;

Parameter
Name Description
value ByteString

The bytes for locationId to set.

Returns
Type Description
DeidentifyContentRequest.Builder

This builder for chaining.

setParent(String value)

public DeidentifyContentRequest.Builder setParent(String value)

Parent resource name.

The format of this value varies depending on whether you have specified a processing location:

  • Projects scope, location specified:<br/> projects/<var>PROJECT_ID</var>/locations/<var>LOCATION_ID</var>
  • Projects scope, no location specified (defaults to global):<br/> projects/<var>PROJECT_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.resource_reference) = { ... }

Parameter
Name Description
value String

The parent to set.

Returns
Type Description
DeidentifyContentRequest.Builder

This builder for chaining.

setParentBytes(ByteString value)

public DeidentifyContentRequest.Builder setParentBytes(ByteString value)

Parent resource name.

The format of this value varies depending on whether you have specified a processing location:

  • Projects scope, location specified:<br/> projects/<var>PROJECT_ID</var>/locations/<var>LOCATION_ID</var>
  • Projects scope, no location specified (defaults to global):<br/> projects/<var>PROJECT_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.resource_reference) = { ... }

Parameter
Name Description
value ByteString

The bytes for parent to set.

Returns
Type Description
DeidentifyContentRequest.Builder

This builder for chaining.

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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