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
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: |
↳ 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 |
Google\Cloud\Dlp\V2\RecordLocation|null |
hasRecordLocation
setRecordLocation
Location within a row or record of a database table.
Parameter | |
---|---|
Name | Description |
var |
Google\Cloud\Dlp\V2\RecordLocation
|
Returns | |
---|---|
Type | Description |
$this |
getImageLocation
Location within an image's pixels.
Returns | |
---|---|
Type | Description |
Google\Cloud\Dlp\V2\ImageLocation|null |
hasImageLocation
setImageLocation
Location within an image's pixels.
Parameter | |
---|---|
Name | Description |
var |
Google\Cloud\Dlp\V2\ImageLocation
|
Returns | |
---|---|
Type | Description |
$this |
getDocumentLocation
Location data for document files.
Returns | |
---|---|
Type | Description |
Google\Cloud\Dlp\V2\DocumentLocation|null |
hasDocumentLocation
setDocumentLocation
Location data for document files.
Parameter | |
---|---|
Name | Description |
var |
Google\Cloud\Dlp\V2\DocumentLocation
|
Returns | |
---|---|
Type | Description |
$this |
getMetadataLocation
Location within the metadata for inspected content.
Returns | |
---|---|
Type | Description |
Google\Cloud\Dlp\V2\MetadataLocation|null |
hasMetadataLocation
setMetadataLocation
Location within the metadata for inspected content.
Parameter | |
---|---|
Name | Description |
var |
Google\Cloud\Dlp\V2\MetadataLocation
|
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 |
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 | |
---|---|
Name | Description |
var |
Google\Protobuf\Timestamp
|
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 |