Class InspectContentRequest.Builder (3.58.0)

public static final class InspectContentRequest.Builder extends GeneratedMessageV3.Builder<InspectContentRequest.Builder> implements InspectContentRequestOrBuilder

Request to search for potentially sensitive info in a ContentItem.

Protobuf type google.privacy.dlp.v2.InspectContentRequest

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public InspectContentRequest build()
Returns
Type Description
InspectContentRequest

buildPartial()

public InspectContentRequest buildPartial()
Returns
Type Description
InspectContentRequest

clear()

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

clearField(Descriptors.FieldDescriptor field)

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

clearInspectConfig()

public InspectContentRequest.Builder clearInspectConfig()

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

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

Returns
Type Description
InspectContentRequest.Builder

clearInspectTemplateName()

public InspectContentRequest.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 = 4;

Returns
Type Description
InspectContentRequest.Builder

This builder for chaining.

clearItem()

public InspectContentRequest.Builder clearItem()

The item to inspect.

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

Returns
Type Description
InspectContentRequest.Builder

clearLocationId()

public InspectContentRequest.Builder clearLocationId()

Deprecated. This field has no effect.

string location_id = 5;

Returns
Type Description
InspectContentRequest.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearParent()

public InspectContentRequest.Builder clearParent()

Parent resource name.

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

  • Projects scope, location specified: projects/{project_id}/locations/{location_id}
  • Projects scope, no location specified (defaults to global): projects/{project_id}

    The following example parent string specifies a parent project with the identifier example-project, and specifies the europe-west3 location for processing data:

    parent=projects/example-project/locations/europe-west3

string parent = 1 [(.google.api.resource_reference) = { ... }

Returns
Type Description
InspectContentRequest.Builder

This builder for chaining.

clone()

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

getDefaultInstanceForType()

public InspectContentRequest getDefaultInstanceForType()
Returns
Type Description
InspectContentRequest

getDescriptorForType()

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

getInspectConfig()

public InspectConfig getInspectConfig()

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

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

Returns
Type Description
InspectConfig

The inspectConfig.

getInspectConfigBuilder()

public InspectConfig.Builder getInspectConfigBuilder()

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

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

Returns
Type Description
InspectConfig.Builder

getInspectConfigOrBuilder()

public InspectConfigOrBuilder getInspectConfigOrBuilder()

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

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

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 = 4;

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 = 4;

Returns
Type Description
ByteString

The bytes for inspectTemplateName.

getItem()

public ContentItem getItem()

The item to inspect.

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

Returns
Type Description
ContentItem

The item.

getItemBuilder()

public ContentItem.Builder getItemBuilder()

The item to inspect.

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

Returns
Type Description
ContentItem.Builder

getItemOrBuilder()

public ContentItemOrBuilder getItemOrBuilder()

The item to inspect.

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

Returns
Type Description
ContentItemOrBuilder

getLocationId()

public String getLocationId()

Deprecated. This field has no effect.

string location_id = 5;

Returns
Type Description
String

The locationId.

getLocationIdBytes()

public ByteString getLocationIdBytes()

Deprecated. This field has no effect.

string location_id = 5;

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: projects/{project_id}/locations/{location_id}
  • Projects scope, no location specified (defaults to global): projects/{project_id}

    The following example parent string specifies a parent project with the identifier example-project, and specifies the europe-west3 location for processing data:

    parent=projects/example-project/locations/europe-west3

string parent = 1 [(.google.api.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: projects/{project_id}/locations/{location_id}
  • Projects scope, no location specified (defaults to global): projects/{project_id}

    The following example parent string specifies a parent project with the identifier example-project, and specifies the europe-west3 location for processing data:

    parent=projects/example-project/locations/europe-west3

string parent = 1 [(.google.api.resource_reference) = { ... }

Returns
Type Description
ByteString

The bytes for parent.

hasInspectConfig()

public boolean hasInspectConfig()

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

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

Returns
Type Description
boolean

Whether the inspectConfig field is set.

hasItem()

public boolean hasItem()

The item to inspect.

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

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

mergeFrom(InspectContentRequest other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeInspectConfig(InspectConfig value)

public InspectContentRequest.Builder mergeInspectConfig(InspectConfig value)

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

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

Parameter
Name Description
value InspectConfig
Returns
Type Description
InspectContentRequest.Builder

mergeItem(ContentItem value)

public InspectContentRequest.Builder mergeItem(ContentItem value)

The item to inspect.

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

Parameter
Name Description
value ContentItem
Returns
Type Description
InspectContentRequest.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setField(Descriptors.FieldDescriptor field, Object value)

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

setInspectConfig(InspectConfig value)

public InspectContentRequest.Builder setInspectConfig(InspectConfig value)

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

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

Parameter
Name Description
value InspectConfig
Returns
Type Description
InspectContentRequest.Builder

setInspectConfig(InspectConfig.Builder builderForValue)

public InspectContentRequest.Builder setInspectConfig(InspectConfig.Builder builderForValue)

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

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

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

setInspectTemplateName(String value)

public InspectContentRequest.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 = 4;

Parameter
Name Description
value String

The inspectTemplateName to set.

Returns
Type Description
InspectContentRequest.Builder

This builder for chaining.

setInspectTemplateNameBytes(ByteString value)

public InspectContentRequest.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 = 4;

Parameter
Name Description
value ByteString

The bytes for inspectTemplateName to set.

Returns
Type Description
InspectContentRequest.Builder

This builder for chaining.

setItem(ContentItem value)

public InspectContentRequest.Builder setItem(ContentItem value)

The item to inspect.

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

Parameter
Name Description
value ContentItem
Returns
Type Description
InspectContentRequest.Builder

setItem(ContentItem.Builder builderForValue)

public InspectContentRequest.Builder setItem(ContentItem.Builder builderForValue)

The item to inspect.

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

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

setLocationId(String value)

public InspectContentRequest.Builder setLocationId(String value)

Deprecated. This field has no effect.

string location_id = 5;

Parameter
Name Description
value String

The locationId to set.

Returns
Type Description
InspectContentRequest.Builder

This builder for chaining.

setLocationIdBytes(ByteString value)

public InspectContentRequest.Builder setLocationIdBytes(ByteString value)

Deprecated. This field has no effect.

string location_id = 5;

Parameter
Name Description
value ByteString

The bytes for locationId to set.

Returns
Type Description
InspectContentRequest.Builder

This builder for chaining.

setParent(String value)

public InspectContentRequest.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: projects/{project_id}/locations/{location_id}
  • Projects scope, no location specified (defaults to global): projects/{project_id}

    The following example parent string specifies a parent project with the identifier example-project, and specifies the europe-west3 location for processing data:

    parent=projects/example-project/locations/europe-west3

string parent = 1 [(.google.api.resource_reference) = { ... }

Parameter
Name Description
value String

The parent to set.

Returns
Type Description
InspectContentRequest.Builder

This builder for chaining.

setParentBytes(ByteString value)

public InspectContentRequest.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: projects/{project_id}/locations/{location_id}
  • Projects scope, no location specified (defaults to global): projects/{project_id}

    The following example parent string specifies a parent project with the identifier example-project, and specifies the europe-west3 location for processing data:

    parent=projects/example-project/locations/europe-west3

string parent = 1 [(.google.api.resource_reference) = { ... }

Parameter
Name Description
value ByteString

The bytes for parent to set.

Returns
Type Description
InspectContentRequest.Builder

This builder for chaining.

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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