Class InspectContentRequest.Builder (3.10.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
TypeDescription
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public InspectContentRequest build()
Returns
TypeDescription
InspectContentRequest

buildPartial()

public InspectContentRequest buildPartial()
Returns
TypeDescription
InspectContentRequest

clear()

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

clearField(Descriptors.FieldDescriptor field)

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

This builder for chaining.

clearItem()

public InspectContentRequest.Builder clearItem()

The item to inspect.

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

Returns
TypeDescription
InspectContentRequest.Builder

clearLocationId()

public InspectContentRequest.Builder clearLocationId()

Deprecated. This field has no effect.

string location_id = 5;

Returns
TypeDescription
InspectContentRequest.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

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

This builder for chaining.

clone()

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

getDefaultInstanceForType()

public InspectContentRequest getDefaultInstanceForType()
Returns
TypeDescription
InspectContentRequest

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
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 = 4;

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

Returns
TypeDescription
ByteString

The bytes for inspectTemplateName.

getItem()

public ContentItem getItem()

The item to inspect.

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

Returns
TypeDescription
ContentItem

The item.

getItemBuilder()

public ContentItem.Builder getItemBuilder()

The item to inspect.

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

Returns
TypeDescription
ContentItem.Builder

getItemOrBuilder()

public ContentItemOrBuilder getItemOrBuilder()

The item to inspect.

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

Returns
TypeDescription
ContentItemOrBuilder

getLocationId()

public String getLocationId()

Deprecated. This field has no effect.

string location_id = 5;

Returns
TypeDescription
String

The locationId.

getLocationIdBytes()

public ByteString getLocationIdBytes()

Deprecated. This field has no effect.

string location_id = 5;

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.

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

Whether the inspectConfig field is set.

hasItem()

public boolean hasItem()

The item to inspect.

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

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

mergeFrom(InspectContentRequest other)

public InspectContentRequest.Builder mergeFrom(InspectContentRequest other)
Parameter
NameDescription
otherInspectContentRequest
Returns
TypeDescription
InspectContentRequest.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeItem(ContentItem value)

public InspectContentRequest.Builder mergeItem(ContentItem value)

The item to inspect.

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

Parameter
NameDescription
valueContentItem
Returns
TypeDescription
InspectContentRequest.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setField(Descriptors.FieldDescriptor field, Object value)

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

The inspectTemplateName to set.

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

The bytes for inspectTemplateName to set.

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

setLocationId(String value)

public InspectContentRequest.Builder setLocationId(String value)

Deprecated. This field has no effect.

string location_id = 5;

Parameter
NameDescription
valueString

The locationId to set.

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

The bytes for locationId to set.

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

setUnknownFields(UnknownFieldSet unknownFields)

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