Data Loss Prevention V2 Client - Class ContentLocation (1.19.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
Name
Description
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
Type
Description
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
Name
Description
var
string
Returns
Type
Description
$this

getRecordLocation

Location within a row or record of a database table.

Returns
Type
Description

hasRecordLocation

setRecordLocation

Location within a row or record of a database table.

Parameter
Name
Description
Returns
Type
Description
$this

getImageLocation

Location within an image's pixels.

Returns
Type
Description

hasImageLocation

setImageLocation

Location within an image's pixels.

Parameter
Name
Description
Returns
Type
Description
$this

getDocumentLocation

Location data for document files.

Returns
Type
Description

hasDocumentLocation

setDocumentLocation

Location data for document files.

Parameter
Name
Description
Returns
Type
Description
$this

getMetadataLocation

Location within the metadata for inspected content.

Returns
Type
Description

hasMetadataLocation

setMetadataLocation

Location within the metadata for inspected content.

Parameter
Name
Description
Returns
Type
Description
$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
Type
Description

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
Name
Description
Returns
Type
Description
$this

getContainerVersion

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

Returns
Type
Description
string

setContainerVersion

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

Parameter
Name
Description
var
string
Returns
Type
Description
$this

getLocation

Returns
Type
Description
string
Design a Mobile Site
View Site in Mobile | Classic
Share by: