Class ContentLocation.Builder (3.45.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
TypeDescription
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public ContentLocation build()
Returns
TypeDescription
ContentLocation

buildPartial()

public ContentLocation buildPartial()
Returns
TypeDescription
ContentLocation

clear()

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

clearContainerVersion()

public ContentLocation.Builder clearContainerVersion()

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

string container_version = 7;

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

clearField(Descriptors.FieldDescriptor field)

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

clearImageLocation()

public ContentLocation.Builder clearImageLocation()

Location within an image's pixels.

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

Returns
TypeDescription
ContentLocation.Builder

clearLocation()

public ContentLocation.Builder clearLocation()
Returns
TypeDescription
ContentLocation.Builder

clearMetadataLocation()

public ContentLocation.Builder clearMetadataLocation()

Location within the metadata for inspected content.

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

Returns
TypeDescription
ContentLocation.Builder

clearOneof(Descriptors.OneofDescriptor oneof)

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

clone()

public ContentLocation.Builder clone()
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
TimestampOrBuilder

getContainerVersion()

public String getContainerVersion()

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

string container_version = 7;

Returns
TypeDescription
String

The containerVersion.

getContainerVersionBytes()

public ByteString getContainerVersionBytes()

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

string container_version = 7;

Returns
TypeDescription
ByteString

The bytes for containerVersion.

getDefaultInstanceForType()

public ContentLocation getDefaultInstanceForType()
Returns
TypeDescription
ContentLocation

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getDocumentLocation()

public DocumentLocation getDocumentLocation()

Location data for document files.

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

Returns
TypeDescription
DocumentLocation

The documentLocation.

getDocumentLocationBuilder()

public DocumentLocation.Builder getDocumentLocationBuilder()

Location data for document files.

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

Returns
TypeDescription
DocumentLocation.Builder

getDocumentLocationOrBuilder()

public DocumentLocationOrBuilder getDocumentLocationOrBuilder()

Location data for document files.

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

Returns
TypeDescription
DocumentLocationOrBuilder

getImageLocation()

public ImageLocation getImageLocation()

Location within an image's pixels.

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

Returns
TypeDescription
ImageLocation

The imageLocation.

getImageLocationBuilder()

public ImageLocation.Builder getImageLocationBuilder()

Location within an image's pixels.

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

Returns
TypeDescription
ImageLocation.Builder

getImageLocationOrBuilder()

public ImageLocationOrBuilder getImageLocationOrBuilder()

Location within an image's pixels.

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

Returns
TypeDescription
ImageLocationOrBuilder

getLocationCase()

public ContentLocation.LocationCase getLocationCase()
Returns
TypeDescription
ContentLocation.LocationCase

getMetadataLocation()

public MetadataLocation getMetadataLocation()

Location within the metadata for inspected content.

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

Returns
TypeDescription
MetadataLocation

The metadataLocation.

getMetadataLocationBuilder()

public MetadataLocation.Builder getMetadataLocationBuilder()

Location within the metadata for inspected content.

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

Returns
TypeDescription
MetadataLocation.Builder

getMetadataLocationOrBuilder()

public MetadataLocationOrBuilder getMetadataLocationOrBuilder()

Location within the metadata for inspected content.

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

Returns
TypeDescription
MetadataLocationOrBuilder

getRecordLocation()

public RecordLocation getRecordLocation()

Location within a row or record of a database table.

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

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

Whether the recordLocation field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
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
NameDescription
valueTimestamp
Returns
TypeDescription
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
NameDescription
valueDocumentLocation
Returns
TypeDescription
ContentLocation.Builder

mergeFrom(ContentLocation other)

public ContentLocation.Builder mergeFrom(ContentLocation other)
Parameter
NameDescription
otherContentLocation
Returns
TypeDescription
ContentLocation.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

public ContentLocation.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
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
NameDescription
valueImageLocation
Returns
TypeDescription
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
NameDescription
valueMetadataLocation
Returns
TypeDescription
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
NameDescription
valueRecordLocation
Returns
TypeDescription
ContentLocation.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

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

The containerName to set.

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

The bytes for containerName to set.

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

The containerVersion to set.

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

The bytes for containerVersion to set.

Returns
TypeDescription
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
NameDescription
valueDocumentLocation
Returns
TypeDescription
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
NameDescription
builderForValueDocumentLocation.Builder
Returns
TypeDescription
ContentLocation.Builder

setField(Descriptors.FieldDescriptor field, Object value)

public ContentLocation.Builder setField(Descriptors.FieldDescriptor field, Object value)