Class ContentLocation (3.55.0)

public final class ContentLocation extends GeneratedMessageV3 implements ContentLocationOrBuilder

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

Protobuf type google.privacy.dlp.v2.ContentLocation

Static Fields

CONTAINER_NAME_FIELD_NUMBER

public static final int CONTAINER_NAME_FIELD_NUMBER
Field Value
Type Description
int

CONTAINER_TIMESTAMP_FIELD_NUMBER

public static final int CONTAINER_TIMESTAMP_FIELD_NUMBER
Field Value
Type Description
int

CONTAINER_VERSION_FIELD_NUMBER

public static final int CONTAINER_VERSION_FIELD_NUMBER
Field Value
Type Description
int

DOCUMENT_LOCATION_FIELD_NUMBER

public static final int DOCUMENT_LOCATION_FIELD_NUMBER
Field Value
Type Description
int

IMAGE_LOCATION_FIELD_NUMBER

public static final int IMAGE_LOCATION_FIELD_NUMBER
Field Value
Type Description
int

METADATA_LOCATION_FIELD_NUMBER

public static final int METADATA_LOCATION_FIELD_NUMBER
Field Value
Type Description
int

RECORD_LOCATION_FIELD_NUMBER

public static final int RECORD_LOCATION_FIELD_NUMBER
Field Value
Type Description
int

Static Methods

getDefaultInstance()

public static ContentLocation getDefaultInstance()
Returns
Type Description
ContentLocation

getDescriptor()

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

newBuilder()

public static ContentLocation.Builder newBuilder()
Returns
Type Description
ContentLocation.Builder

newBuilder(ContentLocation prototype)

public static ContentLocation.Builder newBuilder(ContentLocation prototype)
Parameter
Name Description
prototype ContentLocation
Returns
Type Description
ContentLocation.Builder

parseDelimitedFrom(InputStream input)

public static ContentLocation parseDelimitedFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
ContentLocation
Exceptions
Type Description
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static ContentLocation parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
ContentLocation
Exceptions
Type Description
IOException

parseFrom(byte[] data)

public static ContentLocation parseFrom(byte[] data)
Parameter
Name Description
data byte[]
Returns
Type Description
ContentLocation
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static ContentLocation parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data byte[]
extensionRegistry ExtensionRegistryLite
Returns
Type Description
ContentLocation
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data)

public static ContentLocation parseFrom(ByteString data)
Parameter
Name Description
data ByteString
Returns
Type Description
ContentLocation
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static ContentLocation parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteString
extensionRegistry ExtensionRegistryLite
Returns
Type Description
ContentLocation
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static ContentLocation parseFrom(CodedInputStream input)
Parameter
Name Description
input CodedInputStream
Returns
Type Description
ContentLocation
Exceptions
Type Description
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static ContentLocation parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
ContentLocation
Exceptions
Type Description
IOException

parseFrom(InputStream input)

public static ContentLocation parseFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
ContentLocation
Exceptions
Type Description
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static ContentLocation parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
ContentLocation
Exceptions
Type Description
IOException

parseFrom(ByteBuffer data)

public static ContentLocation parseFrom(ByteBuffer data)
Parameter
Name Description
data ByteBuffer
Returns
Type Description
ContentLocation
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static ContentLocation parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteBuffer
extensionRegistry ExtensionRegistryLite
Returns
Type Description
ContentLocation
Exceptions
Type Description
InvalidProtocolBufferException

parser()

public static Parser<ContentLocation> parser()
Returns
Type Description
Parser<ContentLocation>

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
Name Description
obj Object
Returns
Type Description
boolean
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.

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

getDocumentLocation()

public DocumentLocation getDocumentLocation()

Location data for document files.

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

Returns
Type Description
DocumentLocation

The documentLocation.

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.

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.

getMetadataLocationOrBuilder()

public MetadataLocationOrBuilder getMetadataLocationOrBuilder()

Location within the metadata for inspected content.

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

Returns
Type Description
MetadataLocationOrBuilder

getParserForType()

public Parser<ContentLocation> getParserForType()
Returns
Type Description
Parser<ContentLocation>
Overrides

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.

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

getSerializedSize()

public int getSerializedSize()
Returns
Type Description
int
Overrides

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.

hashCode()

public int hashCode()
Returns
Type Description
int
Overrides

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

newBuilderForType()

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

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protected ContentLocation.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
Name Description
parent BuilderParent
Returns
Type Description
ContentLocation.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
Name Description
unused UnusedPrivateParameter
Returns
Type Description
Object
Overrides

toBuilder()

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

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
Name Description
output CodedOutputStream
Overrides
Exceptions
Type Description
IOException