Class ReidentifyContentRequest.Builder (3.49.0)

public static final class ReidentifyContentRequest.Builder extends GeneratedMessageV3.Builder<ReidentifyContentRequest.Builder> implements ReidentifyContentRequestOrBuilder

Request to re-identify an item.

Protobuf type google.privacy.dlp.v2.ReidentifyContentRequest

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public ReidentifyContentRequest build()
Returns
Type Description
ReidentifyContentRequest

buildPartial()

public ReidentifyContentRequest buildPartial()
Returns
Type Description
ReidentifyContentRequest

clear()

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

clearField(Descriptors.FieldDescriptor field)

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

clearInspectConfig()

public ReidentifyContentRequest.Builder clearInspectConfig()

Configuration for the inspector.

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

Returns
Type Description
ReidentifyContentRequest.Builder

clearInspectTemplateName()

public ReidentifyContentRequest.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
ReidentifyContentRequest.Builder

This builder for chaining.

clearItem()

public ReidentifyContentRequest.Builder clearItem()

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

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

Returns
Type Description
ReidentifyContentRequest.Builder

clearLocationId()

public ReidentifyContentRequest.Builder clearLocationId()

Deprecated. This field has no effect.

string location_id = 7;

Returns
Type Description
ReidentifyContentRequest.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearParent()

public ReidentifyContentRequest.Builder clearParent()

Required. 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.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Returns
Type Description
ReidentifyContentRequest.Builder

This builder for chaining.

clearReidentifyConfig()

public ReidentifyContentRequest.Builder clearReidentifyConfig()

Configuration for the re-identification of the content item. This field shares the same proto message type that is used for de-identification, however its usage here is for the reversal of the previous de-identification. Re-identification is performed by examining the transformations used to de-identify the items and executing the reverse. This requires that only reversible transformations be provided here. The reversible transformations are:

  • CryptoDeterministicConfig
  • CryptoReplaceFfxFpeConfig

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

Returns
Type Description
ReidentifyContentRequest.Builder

clearReidentifyTemplateName()

public ReidentifyContentRequest.Builder clearReidentifyTemplateName()

Template to use. References an instance of DeidentifyTemplate. Any configuration directly specified in reidentify_config or inspect_config will override those set in the template. The DeidentifyTemplate used must include only reversible transformations. 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 reidentify_template_name = 6;

Returns
Type Description
ReidentifyContentRequest.Builder

This builder for chaining.

clone()

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

getDefaultInstanceForType()

public ReidentifyContentRequest getDefaultInstanceForType()
Returns
Type Description
ReidentifyContentRequest

getDescriptorForType()

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

getInspectConfig()

public InspectConfig getInspectConfig()

Configuration for the inspector.

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

Returns
Type Description
InspectConfig

The inspectConfig.

getInspectConfigBuilder()

public InspectConfig.Builder getInspectConfigBuilder()

Configuration for the inspector.

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

Returns
Type Description
InspectConfig.Builder

getInspectConfigOrBuilder()

public InspectConfigOrBuilder getInspectConfigOrBuilder()

Configuration for the inspector.

.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 re-identify. Will be treated as text.

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

Returns
Type Description
ContentItem

The item.

getItemBuilder()

public ContentItem.Builder getItemBuilder()

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

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

Returns
Type Description
ContentItem.Builder

getItemOrBuilder()

public ContentItemOrBuilder getItemOrBuilder()

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

.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()

Required. 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.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 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.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Returns
Type Description
ByteString

The bytes for parent.

getReidentifyConfig()

public DeidentifyConfig getReidentifyConfig()

Configuration for the re-identification of the content item. This field shares the same proto message type that is used for de-identification, however its usage here is for the reversal of the previous de-identification. Re-identification is performed by examining the transformations used to de-identify the items and executing the reverse. This requires that only reversible transformations be provided here. The reversible transformations are:

  • CryptoDeterministicConfig
  • CryptoReplaceFfxFpeConfig

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

Returns
Type Description
DeidentifyConfig

The reidentifyConfig.

getReidentifyConfigBuilder()

public DeidentifyConfig.Builder getReidentifyConfigBuilder()

Configuration for the re-identification of the content item. This field shares the same proto message type that is used for de-identification, however its usage here is for the reversal of the previous de-identification. Re-identification is performed by examining the transformations used to de-identify the items and executing the reverse. This requires that only reversible transformations be provided here. The reversible transformations are:

  • CryptoDeterministicConfig
  • CryptoReplaceFfxFpeConfig

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

Returns
Type Description
DeidentifyConfig.Builder

getReidentifyConfigOrBuilder()

public DeidentifyConfigOrBuilder getReidentifyConfigOrBuilder()

Configuration for the re-identification of the content item. This field shares the same proto message type that is used for de-identification, however its usage here is for the reversal of the previous de-identification. Re-identification is performed by examining the transformations used to de-identify the items and executing the reverse. This requires that only reversible transformations be provided here. The reversible transformations are:

  • CryptoDeterministicConfig
  • CryptoReplaceFfxFpeConfig

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

Returns
Type Description
DeidentifyConfigOrBuilder

getReidentifyTemplateName()

public String getReidentifyTemplateName()

Template to use. References an instance of DeidentifyTemplate. Any configuration directly specified in reidentify_config or inspect_config will override those set in the template. The DeidentifyTemplate used must include only reversible transformations. 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 reidentify_template_name = 6;

Returns
Type Description
String

The reidentifyTemplateName.

getReidentifyTemplateNameBytes()

public ByteString getReidentifyTemplateNameBytes()

Template to use. References an instance of DeidentifyTemplate. Any configuration directly specified in reidentify_config or inspect_config will override those set in the template. The DeidentifyTemplate used must include only reversible transformations. 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 reidentify_template_name = 6;

Returns
Type Description
ByteString

The bytes for reidentifyTemplateName.

hasInspectConfig()

public boolean hasInspectConfig()

Configuration for the inspector.

.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 re-identify. Will be treated as text.

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

Returns
Type Description
boolean

Whether the item field is set.

hasReidentifyConfig()

public boolean hasReidentifyConfig()

Configuration for the re-identification of the content item. This field shares the same proto message type that is used for de-identification, however its usage here is for the reversal of the previous de-identification. Re-identification is performed by examining the transformations used to de-identify the items and executing the reverse. This requires that only reversible transformations be provided here. The reversible transformations are:

  • CryptoDeterministicConfig
  • CryptoReplaceFfxFpeConfig

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

Returns
Type Description
boolean

Whether the reidentifyConfig field is set.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(ReidentifyContentRequest other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeInspectConfig(InspectConfig value)

public ReidentifyContentRequest.Builder mergeInspectConfig(InspectConfig value)

Configuration for the inspector.

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

Parameter
Name Description
value InspectConfig
Returns
Type Description
ReidentifyContentRequest.Builder

mergeItem(ContentItem value)

public ReidentifyContentRequest.Builder mergeItem(ContentItem value)

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

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

Parameter
Name Description
value ContentItem
Returns
Type Description
ReidentifyContentRequest.Builder

mergeReidentifyConfig(DeidentifyConfig value)

public ReidentifyContentRequest.Builder mergeReidentifyConfig(DeidentifyConfig value)

Configuration for the re-identification of the content item. This field shares the same proto message type that is used for de-identification, however its usage here is for the reversal of the previous de-identification. Re-identification is performed by examining the transformations used to de-identify the items and executing the reverse. This requires that only reversible transformations be provided here. The reversible transformations are:

  • CryptoDeterministicConfig
  • CryptoReplaceFfxFpeConfig

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

Parameter
Name Description
value DeidentifyConfig
Returns
Type Description
ReidentifyContentRequest.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setField(Descriptors.FieldDescriptor field, Object value)

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

setInspectConfig(InspectConfig value)

public ReidentifyContentRequest.Builder setInspectConfig(InspectConfig value)

Configuration for the inspector.

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

Parameter
Name Description
value InspectConfig
Returns
Type Description
ReidentifyContentRequest.Builder

setInspectConfig(InspectConfig.Builder builderForValue)

public ReidentifyContentRequest.Builder setInspectConfig(InspectConfig.Builder builderForValue)

Configuration for the inspector.

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

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

setInspectTemplateName(String value)

public ReidentifyContentRequest.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
ReidentifyContentRequest.Builder

This builder for chaining.

setInspectTemplateNameBytes(ByteString value)

public ReidentifyContentRequest.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
ReidentifyContentRequest.Builder

This builder for chaining.

setItem(ContentItem value)

public ReidentifyContentRequest.Builder setItem(ContentItem value)

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

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

Parameter
Name Description
value ContentItem
Returns
Type Description
ReidentifyContentRequest.Builder

setItem(ContentItem.Builder builderForValue)

public ReidentifyContentRequest.Builder setItem(ContentItem.Builder builderForValue)

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

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

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

setLocationId(String value)

public ReidentifyContentRequest.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
ReidentifyContentRequest.Builder

This builder for chaining.

setLocationIdBytes(ByteString value)

public ReidentifyContentRequest.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
ReidentifyContentRequest.Builder

This builder for chaining.

setParent(String value)

public ReidentifyContentRequest.Builder setParent(String value)

Required. 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.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Parameter
Name Description
value String

The parent to set.

Returns
Type Description
ReidentifyContentRequest.Builder

This builder for chaining.

setParentBytes(ByteString value)

public ReidentifyContentRequest.Builder setParentBytes(ByteString value)

Required. 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.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Parameter
Name Description
value ByteString

The bytes for parent to set.

Returns
Type Description
ReidentifyContentRequest.Builder

This builder for chaining.

setReidentifyConfig(DeidentifyConfig value)

public ReidentifyContentRequest.Builder setReidentifyConfig(DeidentifyConfig value)

Configuration for the re-identification of the content item. This field shares the same proto message type that is used for de-identification, however its usage here is for the reversal of the previous de-identification. Re-identification is performed by examining the transformations used to de-identify the items and executing the reverse. This requires that only reversible transformations be provided here. The reversible transformations are:

  • CryptoDeterministicConfig
  • CryptoReplaceFfxFpeConfig

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

Parameter
Name Description
value DeidentifyConfig
Returns
Type Description
ReidentifyContentRequest.Builder

setReidentifyConfig(DeidentifyConfig.Builder builderForValue)

public ReidentifyContentRequest.Builder setReidentifyConfig(DeidentifyConfig.Builder builderForValue)

Configuration for the re-identification of the content item. This field shares the same proto message type that is used for de-identification, however its usage here is for the reversal of the previous de-identification. Re-identification is performed by examining the transformations used to de-identify the items and executing the reverse. This requires that only reversible transformations be provided here. The reversible transformations are:

  • CryptoDeterministicConfig
  • CryptoReplaceFfxFpeConfig

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

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

setReidentifyTemplateName(String value)

public ReidentifyContentRequest.Builder setReidentifyTemplateName(String value)

Template to use. References an instance of DeidentifyTemplate. Any configuration directly specified in reidentify_config or inspect_config will override those set in the template. The DeidentifyTemplate used must include only reversible transformations. 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 reidentify_template_name = 6;

Parameter
Name Description
value String

The reidentifyTemplateName to set.

Returns
Type Description
ReidentifyContentRequest.Builder

This builder for chaining.

setReidentifyTemplateNameBytes(ByteString value)

public ReidentifyContentRequest.Builder setReidentifyTemplateNameBytes(ByteString value)

Template to use. References an instance of DeidentifyTemplate. Any configuration directly specified in reidentify_config or inspect_config will override those set in the template. The DeidentifyTemplate used must include only reversible transformations. 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 reidentify_template_name = 6;

Parameter
Name Description
value ByteString

The bytes for reidentifyTemplateName to set.

Returns
Type Description
ReidentifyContentRequest.Builder

This builder for chaining.

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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