Class ContentLocation (3.6.4)

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

CONTAINER_TIMESTAMP_FIELD_NUMBER

public static final int CONTAINER_TIMESTAMP_FIELD_NUMBER
Field Value
TypeDescription
int

CONTAINER_VERSION_FIELD_NUMBER

public static final int CONTAINER_VERSION_FIELD_NUMBER
Field Value
TypeDescription
int

DOCUMENT_LOCATION_FIELD_NUMBER

public static final int DOCUMENT_LOCATION_FIELD_NUMBER
Field Value
TypeDescription
int

IMAGE_LOCATION_FIELD_NUMBER

public static final int IMAGE_LOCATION_FIELD_NUMBER
Field Value
TypeDescription
int

METADATA_LOCATION_FIELD_NUMBER

public static final int METADATA_LOCATION_FIELD_NUMBER
Field Value
TypeDescription
int

RECORD_LOCATION_FIELD_NUMBER

public static final int RECORD_LOCATION_FIELD_NUMBER
Field Value
TypeDescription
int

Static Methods

getDefaultInstance()

public static ContentLocation getDefaultInstance()
Returns
TypeDescription
ContentLocation

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
TypeDescription
Descriptor

newBuilder()

public static ContentLocation.Builder newBuilder()
Returns
TypeDescription
ContentLocation.Builder

newBuilder(ContentLocation prototype)

public static ContentLocation.Builder newBuilder(ContentLocation prototype)
Parameter
NameDescription
prototypeContentLocation
Returns
TypeDescription
ContentLocation.Builder

parseDelimitedFrom(InputStream input)

public static ContentLocation parseDelimitedFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
ContentLocation
Exceptions
TypeDescription
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static ContentLocation parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
ContentLocation
Exceptions
TypeDescription
IOException

parseFrom(byte[] data)

public static ContentLocation parseFrom(byte[] data)
Parameter
NameDescription
databyte[]
Returns
TypeDescription
ContentLocation
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static ContentLocation parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
databyte[]
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
ContentLocation
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data)

public static ContentLocation parseFrom(ByteString data)
Parameter
NameDescription
dataByteString
Returns
TypeDescription
ContentLocation
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static ContentLocation parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteString
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
ContentLocation
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static ContentLocation parseFrom(CodedInputStream input)
Parameter
NameDescription
inputCodedInputStream
Returns
TypeDescription
ContentLocation
Exceptions
TypeDescription
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static ContentLocation parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
ContentLocation
Exceptions
TypeDescription
IOException

parseFrom(InputStream input)

public static ContentLocation parseFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
ContentLocation
Exceptions
TypeDescription
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static ContentLocation parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
ContentLocation
Exceptions
TypeDescription
IOException

parseFrom(ByteBuffer data)

public static ContentLocation parseFrom(ByteBuffer data)
Parameter
NameDescription
dataByteBuffer
Returns
TypeDescription
ContentLocation
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static ContentLocation parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteBuffer
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
ContentLocation
Exceptions
TypeDescription
InvalidProtocolBufferException

parser()

public static Parser<ContentLocation> parser()
Returns
TypeDescription
Parser<ContentLocation>

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
NameDescription
objObject
Returns
TypeDescription
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 an 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 an example an image contained within a document).

string container_name = 1;

Returns
TypeDescription
ByteString

The bytes for containerName.

getContainerTimestamp()

public Timestamp getContainerTimestamp()

Findings container modification timestamp, if applicable. For Google Cloud Storage contains last file modification timestamp. For BigQuery table contains last_modified_time property. For Datastore - not populated.

.google.protobuf.Timestamp container_timestamp = 6;

Returns
TypeDescription
Timestamp

The containerTimestamp.

getContainerTimestampOrBuilder()

public TimestampOrBuilder getContainerTimestampOrBuilder()

Findings container modification timestamp, if applicable. For Google Cloud Storage contains last file modification timestamp. For BigQuery table contains last_modified_time property. For Datastore - not populated.

.google.protobuf.Timestamp container_timestamp = 6;

Returns
TypeDescription
TimestampOrBuilder

getContainerVersion()

public String getContainerVersion()

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

string container_version = 7;

Returns
TypeDescription
String

The containerVersion.

getContainerVersionBytes()

public ByteString getContainerVersionBytes()

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

string container_version = 7;

Returns
TypeDescription
ByteString

The bytes for containerVersion.

getDefaultInstanceForType()

public ContentLocation getDefaultInstanceForType()
Returns
TypeDescription
ContentLocation

getDocumentLocation()

public DocumentLocation getDocumentLocation()

Location data for document files.

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

Returns
TypeDescription
DocumentLocation

The documentLocation.

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.

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.

getMetadataLocationOrBuilder()

public MetadataLocationOrBuilder getMetadataLocationOrBuilder()

Location within the metadata for inspected content.

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

Returns
TypeDescription
MetadataLocationOrBuilder

getParserForType()

public Parser<ContentLocation> getParserForType()
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
RecordLocationOrBuilder

getSerializedSize()

public int getSerializedSize()
Returns
TypeDescription
int
Overrides

getUnknownFields()

public final UnknownFieldSet getUnknownFields()
Returns
TypeDescription
UnknownFieldSet
Overrides

hasContainerTimestamp()

public boolean hasContainerTimestamp()

Findings container modification timestamp, if applicable. For Google Cloud Storage contains last file modification timestamp. For BigQuery table contains last_modified_time property. For Datastore - not 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.

hashCode()

public int hashCode()
Returns
TypeDescription
int
Overrides

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

newBuilderForType()

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

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protected ContentLocation.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
NameDescription
parentBuilderParent
Returns
TypeDescription
ContentLocation.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
NameDescription
unusedUnusedPrivateParameter
Returns
TypeDescription
Object
Overrides

toBuilder()

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

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
NameDescription
outputCodedOutputStream
Overrides Exceptions
TypeDescription
IOException