Class ContentLocation.Builder (3.55.0)

public static final class ContentLocation.Builder extends GeneratedMessageV3.Builder<ContentLocation.Builder> implements ContentLocationOrBuilder

Precise location of the finding within a document, record, image, or metadata container.

Protobuf type google.privacy.dlp.v2.ContentLocation

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public ContentLocation build()
Returns
Type Description
ContentLocation

buildPartial()

public ContentLocation buildPartial()
Returns
Type Description
ContentLocation

clear()

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

clearContainerName()

public ContentLocation.Builder clearContainerName()

Name of the container where the finding is located. The top level name is the source file name or table name. Names of some common storage containers are formatted as follows:

  • BigQuery tables: {project_id}:{dataset_id}.{table_id}
  • Cloud Storage files: gs://{bucket}/{path}
  • Datastore namespace: {namespace}

    Nested names could be absent if the embedded object has no string identifier (for example, an image contained within a document).

string container_name = 1;

Returns
Type Description
ContentLocation.Builder

This builder for chaining.

clearContainerTimestamp()

public ContentLocation.Builder clearContainerTimestamp()

Finding container modification timestamp, if applicable. For Cloud Storage, this field contains the last file modification timestamp. For a BigQuery table, this field contains the last_modified_time property. For Datastore, this field isn't populated.

.google.protobuf.Timestamp container_timestamp = 6;

Returns
Type Description
ContentLocation.Builder

clearContainerVersion()

public ContentLocation.Builder clearContainerVersion()

Finding container version, if available ("generation" for Cloud Storage).

string container_version = 7;

Returns
Type Description
ContentLocation.Builder

This builder for chaining.

clearDocumentLocation()

public ContentLocation.Builder clearDocumentLocation()

Location data for document files.

.google.privacy.dlp.v2.DocumentLocation document_location = 5;

Returns
Type Description
ContentLocation.Builder

clearField(Descriptors.FieldDescriptor field)

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

clearImageLocation()

public ContentLocation.Builder clearImageLocation()

Location within an image's pixels.

.google.privacy.dlp.v2.ImageLocation image_location = 3;

Returns
Type Description
ContentLocation.Builder

clearLocation()

public ContentLocation.Builder clearLocation()
Returns
Type Description
ContentLocation.Builder

clearMetadataLocation()

public ContentLocation.Builder clearMetadataLocation()

Location within the metadata for inspected content.

.google.privacy.dlp.v2.MetadataLocation metadata_location = 8;

Returns
Type Description
ContentLocation.Builder

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearRecordLocation()

public ContentLocation.Builder clearRecordLocation()

Location within a row or record of a database table.

.google.privacy.dlp.v2.RecordLocation record_location = 2;

Returns
Type Description
ContentLocation.Builder

clone()

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

getContainerName()

public String getContainerName()

Name of the container where the finding is located. The top level name is the source file name or table name. Names of some common storage containers are formatted as follows:

  • BigQuery tables: {project_id}:{dataset_id}.{table_id}
  • Cloud Storage files: gs://{bucket}/{path}
  • Datastore namespace: {namespace}

    Nested names could be absent if the embedded object has no string identifier (for example, an image contained within a document).

string container_name = 1;

Returns
Type Description
String

The containerName.

getContainerNameBytes()

public ByteString getContainerNameBytes()

Name of the container where the finding is located. The top level name is the source file name or table name. Names of some common storage containers are formatted as follows:

  • BigQuery tables: {project_id}:{dataset_id}.{table_id}
  • Cloud Storage files: gs://{bucket}/{path}
  • Datastore namespace: {namespace}

    Nested names could be absent if the embedded object has no string identifier (for example, an image contained within a document).

string container_name = 1;

Returns
Type Description
ByteString

The bytes for containerName.

getContainerTimestamp()

public Timestamp getContainerTimestamp()

Finding container modification timestamp, if applicable. For Cloud Storage, this field contains the last file modification timestamp. For a BigQuery table, this field contains the last_modified_time property. For Datastore, this field isn't populated.

.google.protobuf.Timestamp container_timestamp = 6;

Returns
Type Description
Timestamp

The containerTimestamp.

getContainerTimestampBuilder()

public Timestamp.Builder getContainerTimestampBuilder()

Finding container modification timestamp, if applicable. For Cloud Storage, this field contains the last file modification timestamp. For a BigQuery table, this field contains the last_modified_time property. For Datastore, this field isn't populated.

.google.protobuf.Timestamp container_timestamp = 6;

Returns
Type Description
Builder

getContainerTimestampOrBuilder()

public TimestampOrBuilder getContainerTimestampOrBuilder()

Finding container modification timestamp, if applicable. For Cloud Storage, this field contains the last file modification timestamp. For a BigQuery table, this field contains the last_modified_time property. For Datastore, this field isn't populated.

.google.protobuf.Timestamp container_timestamp = 6;

Returns
Type Description
TimestampOrBuilder

getContainerVersion()

public String getContainerVersion()

Finding container version, if available ("generation" for Cloud Storage).

string container_version = 7;

Returns
Type Description
String

The containerVersion.

getContainerVersionBytes()

public ByteString getContainerVersionBytes()

Finding container version, if available ("generation" for Cloud Storage).

string container_version = 7;

Returns
Type Description
ByteString

The bytes for containerVersion.

getDefaultInstanceForType()

public ContentLocation getDefaultInstanceForType()
Returns
Type Description
ContentLocation

getDescriptorForType()

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

getDocumentLocation()

public DocumentLocation getDocumentLocation()

Location data for document files.

.google.privacy.dlp.v2.DocumentLocation document_location = 5;

Returns
Type Description
DocumentLocation

The documentLocation.

getDocumentLocationBuilder()

public DocumentLocation.Builder getDocumentLocationBuilder()

Location data for document files.

.google.privacy.dlp.v2.DocumentLocation document_location = 5;

Returns
Type Description
DocumentLocation.Builder

getDocumentLocationOrBuilder()

public DocumentLocationOrBuilder getDocumentLocationOrBuilder()

Location data for document files.

.google.privacy.dlp.v2.DocumentLocation document_location = 5;

Returns
Type Description
DocumentLocationOrBuilder

getImageLocation()

public ImageLocation getImageLocation()

Location within an image's pixels.

.google.privacy.dlp.v2.ImageLocation image_location = 3;

Returns
Type Description
ImageLocation

The imageLocation.

getImageLocationBuilder()

public ImageLocation.Builder getImageLocationBuilder()

Location within an image's pixels.

.google.privacy.dlp.v2.ImageLocation image_location = 3;

Returns
Type Description
ImageLocation.Builder

getImageLocationOrBuilder()

public ImageLocationOrBuilder getImageLocationOrBuilder()

Location within an image's pixels.

.google.privacy.dlp.v2.ImageLocation image_location = 3;

Returns
Type Description
ImageLocationOrBuilder

getLocationCase()

public ContentLocation.LocationCase getLocationCase()
Returns
Type Description
ContentLocation.LocationCase

getMetadataLocation()

public MetadataLocation getMetadataLocation()

Location within the metadata for inspected content.

.google.privacy.dlp.v2.MetadataLocation metadata_location = 8;

Returns
Type Description
MetadataLocation

The metadataLocation.

getMetadataLocationBuilder()

public MetadataLocation.Builder getMetadataLocationBuilder()

Location within the metadata for inspected content.

.google.privacy.dlp.v2.MetadataLocation metadata_location = 8;

Returns
Type Description
MetadataLocation.Builder

getMetadataLocationOrBuilder()

public MetadataLocationOrBuilder getMetadataLocationOrBuilder()

Location within the metadata for inspected content.

.google.privacy.dlp.v2.MetadataLocation metadata_location = 8;

Returns
Type Description
MetadataLocationOrBuilder

getRecordLocation()

public RecordLocation getRecordLocation()

Location within a row or record of a database table.

.google.privacy.dlp.v2.RecordLocation record_location = 2;

Returns
Type Description
RecordLocation

The recordLocation.

getRecordLocationBuilder()

public RecordLocation.Builder getRecordLocationBuilder()

Location within a row or record of a database table.

.google.privacy.dlp.v2.RecordLocation record_location = 2;

Returns
Type Description
RecordLocation.Builder

getRecordLocationOrBuilder()

public RecordLocationOrBuilder getRecordLocationOrBuilder()

Location within a row or record of a database table.

.google.privacy.dlp.v2.RecordLocation record_location = 2;

Returns
Type Description
RecordLocationOrBuilder

hasContainerTimestamp()

public boolean hasContainerTimestamp()

Finding container modification timestamp, if applicable. For Cloud Storage, this field contains the last file modification timestamp. For a BigQuery table, this field contains the last_modified_time property. For Datastore, this field isn't populated.

.google.protobuf.Timestamp container_timestamp = 6;

Returns
Type Description
boolean

Whether the containerTimestamp field is set.

hasDocumentLocation()

public boolean hasDocumentLocation()

Location data for document files.

.google.privacy.dlp.v2.DocumentLocation document_location = 5;

Returns
Type Description
boolean

Whether the documentLocation field is set.

hasImageLocation()

public boolean hasImageLocation()

Location within an image's pixels.

.google.privacy.dlp.v2.ImageLocation image_location = 3;

Returns
Type Description
boolean

Whether the imageLocation field is set.

hasMetadataLocation()

public boolean hasMetadataLocation()

Location within the metadata for inspected content.

.google.privacy.dlp.v2.MetadataLocation metadata_location = 8;

Returns
Type Description
boolean

Whether the metadataLocation field is set.

hasRecordLocation()

public boolean hasRecordLocation()

Location within a row or record of a database table.

.google.privacy.dlp.v2.RecordLocation record_location = 2;

Returns
Type Description
boolean

Whether the recordLocation field is set.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeContainerTimestamp(Timestamp value)

public ContentLocation.Builder mergeContainerTimestamp(Timestamp value)

Finding container modification timestamp, if applicable. For Cloud Storage, this field contains the last file modification timestamp. For a BigQuery table, this field contains the last_modified_time property. For Datastore, this field isn't populated.

.google.protobuf.Timestamp container_timestamp = 6;

Parameter
Name Description
value Timestamp
Returns
Type Description
ContentLocation.Builder

mergeDocumentLocation(DocumentLocation value)

public ContentLocation.Builder mergeDocumentLocation(DocumentLocation value)

Location data for document files.

.google.privacy.dlp.v2.DocumentLocation document_location = 5;

Parameter
Name Description
value DocumentLocation
Returns
Type Description
ContentLocation.Builder

mergeFrom(ContentLocation other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeImageLocation(ImageLocation value)

public ContentLocation.Builder mergeImageLocation(ImageLocation value)

Location within an image's pixels.

.google.privacy.dlp.v2.ImageLocation image_location = 3;

Parameter
Name Description
value ImageLocation
Returns
Type Description
ContentLocation.Builder

mergeMetadataLocation(MetadataLocation value)

public ContentLocation.Builder mergeMetadataLocation(MetadataLocation value)

Location within the metadata for inspected content.

.google.privacy.dlp.v2.MetadataLocation metadata_location = 8;

Parameter
Name Description
value MetadataLocation
Returns
Type Description
ContentLocation.Builder

mergeRecordLocation(RecordLocation value)

public ContentLocation.Builder mergeRecordLocation(RecordLocation value)

Location within a row or record of a database table.

.google.privacy.dlp.v2.RecordLocation record_location = 2;

Parameter
Name Description
value RecordLocation
Returns
Type Description
ContentLocation.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setContainerName(String value)

public ContentLocation.Builder setContainerName(String value)

Name of the container where the finding is located. The top level name is the source file name or table name. Names of some common storage containers are formatted as follows:

  • BigQuery tables: {project_id}:{dataset_id}.{table_id}
  • Cloud Storage files: gs://{bucket}/{path}
  • Datastore namespace: {namespace}

    Nested names could be absent if the embedded object has no string identifier (for example, an image contained within a document).

string container_name = 1;

Parameter
Name Description
value String

The containerName to set.

Returns
Type Description
ContentLocation.Builder

This builder for chaining.

setContainerNameBytes(ByteString value)

public ContentLocation.Builder setContainerNameBytes(ByteString value)

Name of the container where the finding is located. The top level name is the source file name or table name. Names of some common storage containers are formatted as follows:

  • BigQuery tables: {project_id}:{dataset_id}.{table_id}
  • Cloud Storage files: gs://{bucket}/{path}
  • Datastore namespace: {namespace}

    Nested names could be absent if the embedded object has no string identifier (for example, an image contained within a document).

string container_name = 1;

Parameter
Name Description
value ByteString

The bytes for containerName to set.

Returns
Type Description
ContentLocation.Builder

This builder for chaining.

setContainerTimestamp(Timestamp value)

public ContentLocation.Builder setContainerTimestamp(Timestamp value)

Finding container modification timestamp, if applicable. For Cloud Storage, this field contains the last file modification timestamp. For a BigQuery table, this field contains the last_modified_time property. For Datastore, this field isn't populated.

.google.protobuf.Timestamp container_timestamp = 6;

Parameter
Name Description
value Timestamp
Returns
Type Description
ContentLocation.Builder

setContainerTimestamp(Timestamp.Builder builderForValue)

public ContentLocation.Builder setContainerTimestamp(Timestamp.Builder builderForValue)

Finding container modification timestamp, if applicable. For Cloud Storage, this field contains the last file modification timestamp. For a BigQuery table, this field contains the last_modified_time property. For Datastore, this field isn't populated.

.google.protobuf.Timestamp container_timestamp = 6;

Parameter
Name Description
builderForValue Builder
Returns
Type Description
ContentLocation.Builder

setContainerVersion(String value)

public ContentLocation.Builder setContainerVersion(String value)

Finding container version, if available ("generation" for Cloud Storage).

string container_version = 7;

Parameter
Name Description
value String

The containerVersion to set.

Returns
Type Description
ContentLocation.Builder

This builder for chaining.

setContainerVersionBytes(ByteString value)

public ContentLocation.Builder setContainerVersionBytes(ByteString value)

Finding container version, if available ("generation" for Cloud Storage).

string container_version = 7;

Parameter
Name Description
value ByteString

The bytes for containerVersion to set.

Returns
Type Description
ContentLocation.Builder

This builder for chaining.

setDocumentLocation(DocumentLocation value)

public ContentLocation.Builder setDocumentLocation(DocumentLocation value)

Location data for document files.

.google.privacy.dlp.v2.DocumentLocation document_location = 5;

Parameter
Name Description
value DocumentLocation
Returns
Type Description
ContentLocation.Builder

setDocumentLocation(DocumentLocation.Builder builderForValue)

public ContentLocation.Builder setDocumentLocation(DocumentLocation.Builder builderForValue)

Location data for document files.

.google.privacy.dlp.v2.DocumentLocation document_location = 5;

Parameter
Name Description
builderForValue DocumentLocation.Builder
Returns
Type Description
ContentLocation.Builder

setField(Descriptors.FieldDescriptor field, Object value)

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

setImageLocation(ImageLocation value)

public ContentLocation.Builder setImageLocation(ImageLocation value)

Location within an image's pixels.

.google.privacy.dlp.v2.ImageLocation image_location = 3;

Parameter
Name Description
value ImageLocation
Returns
Type Description
ContentLocation.Builder

setImageLocation(ImageLocation.Builder builderForValue)

public ContentLocation.Builder setImageLocation(ImageLocation.Builder builderForValue)

Location within an image's pixels.

.google.privacy.dlp.v2.ImageLocation image_location = 3;

Parameter
Name Description
builderForValue ImageLocation.Builder
Returns
Type Description
ContentLocation.Builder

setMetadataLocation(MetadataLocation value)

public ContentLocation.Builder setMetadataLocation(MetadataLocation value)

Location within the metadata for inspected content.

.google.privacy.dlp.v2.MetadataLocation metadata_location = 8;

Parameter
Name Description
value MetadataLocation
Returns
Type Description
ContentLocation.Builder

setMetadataLocation(MetadataLocation.Builder builderForValue)

public ContentLocation.Builder setMetadataLocation(MetadataLocation.Builder builderForValue)

Location within the metadata for inspected content.

.google.privacy.dlp.v2.MetadataLocation metadata_location = 8;

Parameter
Name Description
builderForValue MetadataLocation.Builder
Returns
Type Description
ContentLocation.Builder

setRecordLocation(RecordLocation value)

public ContentLocation.Builder setRecordLocation(RecordLocation value)

Location within a row or record of a database table.

.google.privacy.dlp.v2.RecordLocation record_location = 2;

Parameter
Name Description
value RecordLocation
Returns
Type Description
ContentLocation.Builder

setRecordLocation(RecordLocation.Builder builderForValue)

public ContentLocation.Builder setRecordLocation(RecordLocation.Builder builderForValue)

Location within a row or record of a database table.

.google.privacy.dlp.v2.RecordLocation record_location = 2;

Parameter
Name Description
builderForValue RecordLocation.Builder
Returns
Type Description
ContentLocation.Builder

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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