Class DeidentifyContentRequest.Builder (3.2.1)

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

Request to de-identify a list of items.

Protobuf type google.privacy.dlp.v2.DeidentifyContentRequest

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
TypeDescription
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public DeidentifyContentRequest build()
Returns
TypeDescription
DeidentifyContentRequest

buildPartial()

public DeidentifyContentRequest buildPartial()
Returns
TypeDescription
DeidentifyContentRequest

clear()

public DeidentifyContentRequest.Builder clear()
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
DeidentifyContentRequest.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

public DeidentifyContentRequest.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
DeidentifyContentRequest.Builder

This builder for chaining.

clearItem()

public DeidentifyContentRequest.Builder clearItem()

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

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

Returns
TypeDescription
DeidentifyContentRequest.Builder

clearLocationId()

public DeidentifyContentRequest.Builder clearLocationId()

Deprecated. This field has no effect.

string location_id = 7;

Returns
TypeDescription
DeidentifyContentRequest.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

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

This builder for chaining.

clone()

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

getDefaultInstanceForType()

public DeidentifyContentRequest getDefaultInstanceForType()
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
ByteString

The bytes for deidentifyTemplateName.

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
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 de-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 de-identify. Will be treated as text.

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

Returns
TypeDescription
ContentItem.Builder

getItemOrBuilder()

public ContentItemOrBuilder getItemOrBuilder()

The item to de-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()

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

Whether the inspectConfig field is set.

hasItem()

public boolean hasItem()

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

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

Returns
TypeDescription
boolean

Whether the item field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
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
NameDescription
valueDeidentifyConfig
Returns
TypeDescription
DeidentifyContentRequest.Builder

mergeFrom(DeidentifyContentRequest other)

public DeidentifyContentRequest.Builder mergeFrom(DeidentifyContentRequest other)
Parameter
NameDescription
otherDeidentifyContentRequest
Returns
TypeDescription
DeidentifyContentRequest.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeItem(ContentItem value)

public DeidentifyContentRequest.Builder mergeItem(ContentItem value)

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

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

Parameter
NameDescription
valueContentItem
Returns
TypeDescription
DeidentifyContentRequest.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

public final DeidentifyContentRequest.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
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
NameDescription
valueDeidentifyConfig
Returns
TypeDescription
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
NameDescription
builderForValueDeidentifyConfig.Builder
Returns
TypeDescription
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
NameDescription
valueString

The deidentifyTemplateName to set.

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

The bytes for deidentifyTemplateName to set.

Returns
TypeDescription
DeidentifyContentRequest.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

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

The inspectTemplateName to set.

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

The bytes for inspectTemplateName to set.

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

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

Parameter
NameDescription
valueContentItem
Returns
TypeDescription
DeidentifyContentRequest.Builder

setItem(ContentItem.Builder builderForValue)

public DeidentifyContentRequest.Builder setItem(ContentItem.Builder builderForValue)

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

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

Parameter
NameDescription
builderForValueContentItem.Builder
Returns
TypeDescription
DeidentifyContentRequest.Builder

setLocationId(String value)

public DeidentifyContentRequest.Builder setLocationId(String value)

Deprecated. This field has no effect.

string location_id = 7;

Parameter
NameDescription
valueString

The locationId to set.

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

The bytes for locationId to set.

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

The parent to set.

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

The bytes for parent to set.

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

setUnknownFields(UnknownFieldSet unknownFields)

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