Data Loss Prevention V2 Client - Class ContentLocation (1.12.0)

Reference documentation and code samples for the Data Loss Prevention V2 Client class ContentLocation.

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

Generated from protobuf message google.privacy.dlp.v2.ContentLocation

Namespace

Google \ Cloud \ Dlp \ V2

Methods

__construct

Constructor.

Parameters
NameDescription
data array

Optional. Data for populating the Message object.

↳ container_name string

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).

↳ record_location Google\Cloud\Dlp\V2\RecordLocation

Location within a row or record of a database table.

↳ image_location Google\Cloud\Dlp\V2\ImageLocation

Location within an image's pixels.

↳ document_location Google\Cloud\Dlp\V2\DocumentLocation

Location data for document files.

↳ metadata_location Google\Cloud\Dlp\V2\MetadataLocation

Location within the metadata for inspected content.

↳ container_timestamp Google\Protobuf\Timestamp

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.

↳ container_version string

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

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).
Returns
TypeDescription
string

setContainerName

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).
Parameter
NameDescription
var string
Returns
TypeDescription
$this

getRecordLocation

Location within a row or record of a database table.

Returns
TypeDescription
Google\Cloud\Dlp\V2\RecordLocation|null

hasRecordLocation

setRecordLocation

Location within a row or record of a database table.

Parameter
NameDescription
var Google\Cloud\Dlp\V2\RecordLocation
Returns
TypeDescription
$this

getImageLocation

Location within an image's pixels.

Returns
TypeDescription
Google\Cloud\Dlp\V2\ImageLocation|null

hasImageLocation

setImageLocation

Location within an image's pixels.

Parameter
NameDescription
var Google\Cloud\Dlp\V2\ImageLocation
Returns
TypeDescription
$this

getDocumentLocation

Location data for document files.

Returns
TypeDescription
Google\Cloud\Dlp\V2\DocumentLocation|null

hasDocumentLocation

setDocumentLocation

Location data for document files.

Parameter
NameDescription
var Google\Cloud\Dlp\V2\DocumentLocation
Returns
TypeDescription
$this

getMetadataLocation

Location within the metadata for inspected content.

Returns
TypeDescription
Google\Cloud\Dlp\V2\MetadataLocation|null

hasMetadataLocation

setMetadataLocation

Location within the metadata for inspected content.

Parameter
NameDescription
var Google\Cloud\Dlp\V2\MetadataLocation
Returns
TypeDescription
$this

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.

Returns
TypeDescription
Google\Protobuf\Timestamp|null

hasContainerTimestamp

clearContainerTimestamp

setContainerTimestamp

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.

Parameter
NameDescription
var Google\Protobuf\Timestamp
Returns
TypeDescription
$this

getContainerVersion

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

Returns
TypeDescription
string

setContainerVersion

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

Parameter
NameDescription
var string
Returns
TypeDescription
$this

getLocation

Returns
TypeDescription
string