Class ReidentifyContentRequest.Builder (3.31.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
TypeDescription
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public ReidentifyContentRequest build()
Returns
TypeDescription
ReidentifyContentRequest

buildPartial()

public ReidentifyContentRequest buildPartial()
Returns
TypeDescription
ReidentifyContentRequest

clear()

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

clearField(Descriptors.FieldDescriptor field)

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

clearInspectConfig()

public ReidentifyContentRequest.Builder clearInspectConfig()

Configuration for the inspector.

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

Returns
TypeDescription
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
TypeDescription
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
TypeDescription
ReidentifyContentRequest.Builder

clearLocationId()

public ReidentifyContentRequest.Builder clearLocationId()

Deprecated. This field has no effect.

string location_id = 7;

Returns
TypeDescription
ReidentifyContentRequest.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

public ReidentifyContentRequest.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
ReidentifyContentRequest.Builder

This builder for chaining.

clone()

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

getDefaultInstanceForType()

public ReidentifyContentRequest getDefaultInstanceForType()
Returns
TypeDescription
ReidentifyContentRequest

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getInspectConfig()

public InspectConfig getInspectConfig()

Configuration for the inspector.

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

Returns
TypeDescription
InspectConfig

The inspectConfig.

getInspectConfigBuilder()

public InspectConfig.Builder getInspectConfigBuilder()

Configuration for the inspector.

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

Returns
TypeDescription
InspectConfig.Builder

getInspectConfigOrBuilder()

public InspectConfigOrBuilder getInspectConfigOrBuilder()

Configuration for the inspector.

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

Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
ContentItem.Builder

getItemOrBuilder()

public ContentItemOrBuilder getItemOrBuilder()

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

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

Returns
TypeDescription
ContentItemOrBuilder

getLocationId()

public String getLocationId()

Deprecated. This field has no effect.

string location_id = 7;

Returns
TypeDescription
String

The locationId.

getLocationIdBytes()

public ByteString getLocationIdBytes()

Deprecated. This field has no effect.

string location_id = 7;

Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
ByteString

The bytes for reidentifyTemplateName.

hasInspectConfig()

public boolean hasInspectConfig()

Configuration for the inspector.

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

Returns
TypeDescription
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
TypeDescription
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
TypeDescription
boolean

Whether the reidentifyConfig field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(ReidentifyContentRequest other)

public ReidentifyContentRequest.Builder mergeFrom(ReidentifyContentRequest other)
Parameter
NameDescription
otherReidentifyContentRequest
Returns
TypeDescription
ReidentifyContentRequest.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

public ReidentifyContentRequest.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
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
NameDescription
valueInspectConfig
Returns
TypeDescription
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
NameDescription
valueContentItem
Returns
TypeDescription
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
NameDescription
valueDeidentifyConfig
Returns
TypeDescription
ReidentifyContentRequest.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setField(Descriptors.FieldDescriptor field, Object value)

public ReidentifyContentRequest.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
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
NameDescription
valueInspectConfig
Returns
TypeDescription
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
NameDescription
builderForValueInspectConfig.Builder
Returns
TypeDescription
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
NameDescription
valueString

The inspectTemplateName to set.

Returns
TypeDescription
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
NameDescription
valueByteString

The bytes for inspectTemplateName to set.

Returns
TypeDescription
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
NameDescription
valueContentItem
Returns
TypeDescription
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
NameDescription
builderForValueContentItem.Builder
Returns
TypeDescription
ReidentifyContentRequest.Builder

setLocationId(String value)

public ReidentifyContentRequest.Builder setLocationId(String value)

Deprecated. This field has no effect.

string location_id = 7;

Parameter
NameDescription
valueString

The locationId to set.

Returns
TypeDescription
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
NameDescription
valueByteString

The bytes for locationId to set.

Returns
TypeDescription
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
NameDescription
valueString

The parent to set.

Returns
TypeDescription
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
NameDescription
valueByteString

The bytes for parent to set.

Returns
TypeDescription
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
NameDescription
valueDeidentifyConfig
Returns
TypeDescription
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
NameDescription
builderForValueDeidentifyConfig.Builder
Returns
TypeDescription
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
NameDescription
valueString

The reidentifyTemplateName to set.

Returns
TypeDescription
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
NameDescription
valueByteString

The bytes for reidentifyTemplateName to set.

Returns
TypeDescription
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
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
ReidentifyContentRequest.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

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