# Data Loss Prevention V2 Client - Class FileStoreDataProfile (2.13.0)

2.13.0 (latest) 2.12.0 2.11.0 2.10.0 2.9.2 2.8.1 2.7.0 2.6.1 2.4.1 2.3.0 2.2.3 2.1.0 2.0.0 1.19.0 1.18.0 1.17.0 1.16.0 1.15.1 1.14.0 1.13.2 1.12.0 1.11.0 1.10.2 1.9.0 1.8.6 Reference documentation and code samples for the Data Loss Prevention V2 Client class FileStoreDataProfile.

The profile for a file store.

- Cloud Storage: maps 1:1 with a bucket.
- Amazon S3: maps 1:1 with a bucket.

Generated from protobuf message `google.privacy.dlp.v2.FileStoreDataProfile`

## Namespace

Google \\ Cloud \\ Dlp \\ V2

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ name` | `string` The name of the profile. |
| `↳ data_source_type` | `https://docs.cloud.google.com/php/docs/reference/cloud-dlp/latest/V2.DataSourceType` The resource type that was profiled. |
| `↳ project_data_profile` | `string` The resource name of the project data profile for this file store. |
| `↳ project_id` | `string` The Google Cloud project ID that owns the resource. For Amazon S3 buckets, this is the AWS Account Id. |
| `↳ file_store_location` | `string` The location of the file store. \* \* Cloud Storage: <https://cloud.google.com/storage/docs/locations#available-locations> \* \* Amazon S3: <https://docs.aws.amazon.com/general/latest/gr/rande.html#regional-endpoints> |
| `↳ data_storage_locations` | `string[]` For resources that have multiple storage locations, these are those regions. For Cloud Storage this is the list of regions chosen for dual-region storage. `file_store_location` will normally be the corresponding multi-region for the list of individual locations. The first region is always picked as the processing and storage location for the data profile. |
| `↳ location_type` | `string` The location type of the file store (region, dual-region, multi-region, etc). If dual-region, expect data_storage_locations to be populated. |
| `↳ file_store_path` | `string` The file store path. \* \* Cloud Storage: `gs://{bucket}` \* \* Amazon S3: `s3://{bucket}` \* \* Vertex AI dataset: `projects/{project_number}/locations/{location}/datasets/{dataset_id}` |
| `↳ full_resource` | `string` The resource name of the resource profiled. <https://cloud.google.com/apis/design/resource_names#full_resource_name> Example format of an S3 bucket full resource name: `//cloudasset.googleapis.com/organizations/{org_id}/otherCloudConnections/aws/arn:aws:s3:::{bucket_name}` |
| `↳ config_snapshot` | `https://docs.cloud.google.com/php/docs/reference/cloud-dlp/latest/V2.DataProfileConfigSnapshot` The snapshot of the configurations used to generate the profile. |
| `↳ profile_status` | `https://docs.cloud.google.com/php/docs/reference/cloud-dlp/latest/V2.ProfileStatus` Success or error status from the most recent profile generation attempt. May be empty if the profile is still being generated. |
| `↳ state` | `int` State of a profile. |
| `↳ profile_last_generated` | `https://protobuf.dev/reference/php/api-docs/Google/Protobuf/Timestamp` The last time the profile was generated. |
| `↳ resource_visibility` | `int` How broadly a resource has been shared. |
| `↳ sensitivity_score` | `https://docs.cloud.google.com/php/docs/reference/cloud-dlp/latest/V2.SensitivityScore` The sensitivity score of this resource. |
| `↳ data_risk_level` | `https://docs.cloud.google.com/php/docs/reference/cloud-dlp/latest/V2.DataRiskLevel` The data risk level of this resource. |
| `↳ create_time` | `https://protobuf.dev/reference/php/api-docs/Google/Protobuf/Timestamp` The time the file store was first created. |
| `↳ last_modified_time` | `https://protobuf.dev/reference/php/api-docs/Google/Protobuf/Timestamp` The time the file store was last modified. |
| `↳ file_cluster_summaries` | `array<https://docs.cloud.google.com/php/docs/reference/cloud-dlp/latest/V2.FileClusterSummary>` FileClusterSummary per each cluster. |
| `↳ resource_attributes` | `array|https://protobuf.dev/reference/php/api-docs/Google/Protobuf/Internal/MapField` Attributes of the resource being profiled. Currently used attributes: \* \* customer_managed_encryption: boolean - true: the resource is encrypted with a customer-managed key. - false: the resource is encrypted with a provider-managed key. |
| `↳ resource_labels` | `array|https://protobuf.dev/reference/php/api-docs/Google/Protobuf/Internal/MapField` The labels applied to the resource at the time the profile was generated. |
| `↳ file_store_info_type_summaries` | `array<https://docs.cloud.google.com/php/docs/reference/cloud-dlp/latest/V2.FileStoreInfoTypeSummary>` InfoTypes detected in this file store. |
| `↳ sample_findings_table` | `https://docs.cloud.google.com/php/docs/reference/cloud-dlp/latest/V2.BigQueryTable` The BigQuery table to which the sample findings are written. |
| `↳ file_store_is_empty` | `bool` The file store does not have any files. If the profiling operation failed, this is false. |
| `↳ tags` | `array<https://docs.cloud.google.com/php/docs/reference/cloud-dlp/latest/V2.Tag>` The tags attached to the resource, including any tags attached during profiling. |
| `↳ related_resources` | `array<https://docs.cloud.google.com/php/docs/reference/cloud-dlp/latest/V2.RelatedResource>` Resources related to this profile. |
| `↳ domains` | `array<https://docs.cloud.google.com/php/docs/reference/cloud-dlp/latest/V2.Domain>` Domains associated with the profile. |

### getName

The name of the profile.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `string` |   |

### setName

The name of the profile.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `string` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `$this` |   |

### getDataSourceType

The resource type that was profiled.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/php/docs/reference/cloud-dlp/latest/V2.DataSourceType|null` |   |

### hasDataSourceType

### clearDataSourceType

### setDataSourceType

The resource type that was profiled.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `https://docs.cloud.google.com/php/docs/reference/cloud-dlp/latest/V2.DataSourceType` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `$this` |   |

### getProjectDataProfile

The resource name of the project data profile for this file store.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `string` |   |

### setProjectDataProfile

The resource name of the project data profile for this file store.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `string` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `$this` |   |

### getProjectId

The Google Cloud project ID that owns the resource.

For Amazon S3 buckets, this is the AWS Account Id.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `string` |   |

### setProjectId

The Google Cloud project ID that owns the resource.

For Amazon S3 buckets, this is the AWS Account Id.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `string` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `$this` |   |

### getFileStoreLocation

The location of the file store.

- Cloud Storage: <https://cloud.google.com/storage/docs/locations#available-locations>
- Amazon S3: <https://docs.aws.amazon.com/general/latest/gr/rande.html#regional-endpoints>

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `string` |   |

### setFileStoreLocation

The location of the file store.

- Cloud Storage: <https://cloud.google.com/storage/docs/locations#available-locations>
- Amazon S3: <https://docs.aws.amazon.com/general/latest/gr/rande.html#regional-endpoints>

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `string` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `$this` |   |

### getDataStorageLocations

For resources that have multiple storage locations, these are those
regions. For Cloud Storage this is the list of regions chosen for
dual-region storage. `file_store_location` will normally be the
corresponding multi-region for the list of individual locations. The first
region is always picked as the processing and storage location for the data
profile.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://protobuf.dev/reference/php/api-docs/Google/Protobuf/RepeatedField<string>` |   |

### setDataStorageLocations

For resources that have multiple storage locations, these are those
regions. For Cloud Storage this is the list of regions chosen for
dual-region storage. `file_store_location` will normally be the
corresponding multi-region for the list of individual locations. The first
region is always picked as the processing and storage location for the data
profile.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `string[]` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `$this` |   |

### getLocationType

The location type of the file store (region, dual-region, multi-region,
etc). If dual-region, expect data_storage_locations to be populated.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `string` |   |

### setLocationType

The location type of the file store (region, dual-region, multi-region,
etc). If dual-region, expect data_storage_locations to be populated.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `string` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `$this` |   |

### getFileStorePath

The file store path.

- Cloud Storage: `gs://{bucket}`
- Amazon S3: `s3://{bucket}`
- Vertex AI dataset: `projects/{project_number}/locations/{location}/datasets/{dataset_id}`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `string` |   |

### setFileStorePath

The file store path.

- Cloud Storage: `gs://{bucket}`
- Amazon S3: `s3://{bucket}`
- Vertex AI dataset: `projects/{project_number}/locations/{location}/datasets/{dataset_id}`

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `string` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `$this` |   |

### getFullResource

The resource name of the resource profiled.

<https://cloud.google.com/apis/design/resource_names#full_resource_name>
Example format of an S3 bucket full resource name:
`//cloudasset.googleapis.com/organizations/{org_id}/otherCloudConnections/aws/arn:aws:s3:::{bucket_name}`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `string` |   |

### setFullResource

The resource name of the resource profiled.

<https://cloud.google.com/apis/design/resource_names#full_resource_name>
Example format of an S3 bucket full resource name:
`//cloudasset.googleapis.com/organizations/{org_id}/otherCloudConnections/aws/arn:aws:s3:::{bucket_name}`

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `string` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `$this` |   |

### getConfigSnapshot

The snapshot of the configurations used to generate the profile.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/php/docs/reference/cloud-dlp/latest/V2.DataProfileConfigSnapshot|null` |   |

### hasConfigSnapshot

### clearConfigSnapshot

### setConfigSnapshot

The snapshot of the configurations used to generate the profile.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `https://docs.cloud.google.com/php/docs/reference/cloud-dlp/latest/V2.DataProfileConfigSnapshot` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `$this` |   |

### getProfileStatus

Success or error status from the most recent profile generation attempt.

May be empty if the profile is still being generated.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/php/docs/reference/cloud-dlp/latest/V2.ProfileStatus|null` |   |

### hasProfileStatus

### clearProfileStatus

### setProfileStatus

Success or error status from the most recent profile generation attempt.

May be empty if the profile is still being generated.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `https://docs.cloud.google.com/php/docs/reference/cloud-dlp/latest/V2.ProfileStatus` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `$this` |   |

### getState

State of a profile.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `int` | Enum of type [State](https://docs.cloud.google.com/php/docs/reference/cloud-dlp/latest/V2.FileStoreDataProfile.State). |

### setState

State of a profile.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `int` Enum of type [State](https://docs.cloud.google.com/php/docs/reference/cloud-dlp/latest/V2.FileStoreDataProfile.State). |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `$this` |   |

### getProfileLastGenerated

The last time the profile was generated.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://protobuf.dev/reference/php/api-docs/Google/Protobuf/Timestamp|null` |   |

### hasProfileLastGenerated

### clearProfileLastGenerated

### setProfileLastGenerated

The last time the profile was generated.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `https://protobuf.dev/reference/php/api-docs/Google/Protobuf/Timestamp` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `$this` |   |

### getResourceVisibility

How broadly a resource has been shared.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `int` | Enum of type [ResourceVisibility](https://docs.cloud.google.com/php/docs/reference/cloud-dlp/latest/V2.ResourceVisibility). |

### setResourceVisibility

How broadly a resource has been shared.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `int` Enum of type [ResourceVisibility](https://docs.cloud.google.com/php/docs/reference/cloud-dlp/latest/V2.ResourceVisibility). |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `$this` |   |

### getSensitivityScore

The sensitivity score of this resource.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/php/docs/reference/cloud-dlp/latest/V2.SensitivityScore|null` |   |

### hasSensitivityScore

### clearSensitivityScore

### setSensitivityScore

The sensitivity score of this resource.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `https://docs.cloud.google.com/php/docs/reference/cloud-dlp/latest/V2.SensitivityScore` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `$this` |   |

### getDataRiskLevel

The data risk level of this resource.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/php/docs/reference/cloud-dlp/latest/V2.DataRiskLevel|null` |   |

### hasDataRiskLevel

### clearDataRiskLevel

### setDataRiskLevel

The data risk level of this resource.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `https://docs.cloud.google.com/php/docs/reference/cloud-dlp/latest/V2.DataRiskLevel` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `$this` |   |

### getCreateTime

The time the file store was first created.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://protobuf.dev/reference/php/api-docs/Google/Protobuf/Timestamp|null` |   |

### hasCreateTime

### clearCreateTime

### setCreateTime

The time the file store was first created.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `https://protobuf.dev/reference/php/api-docs/Google/Protobuf/Timestamp` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `$this` |   |

### getLastModifiedTime

The time the file store was last modified.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://protobuf.dev/reference/php/api-docs/Google/Protobuf/Timestamp|null` |   |

### hasLastModifiedTime

### clearLastModifiedTime

### setLastModifiedTime

The time the file store was last modified.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `https://protobuf.dev/reference/php/api-docs/Google/Protobuf/Timestamp` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `$this` |   |

### getFileClusterSummaries

FileClusterSummary per each cluster.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://protobuf.dev/reference/php/api-docs/Google/Protobuf/RepeatedField<https://docs.cloud.google.com/php/docs/reference/cloud-dlp/latest/V2.FileClusterSummary>` |   |

### setFileClusterSummaries

FileClusterSummary per each cluster.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `array<https://docs.cloud.google.com/php/docs/reference/cloud-dlp/latest/V2.FileClusterSummary>` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `$this` |   |

### getResourceAttributes

Attributes of the resource being profiled.

Currently used attributes:

- customer_managed_encryption: boolean
  - true: the resource is encrypted with a customer-managed key.
  - false: the resource is encrypted with a provider-managed key.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://protobuf.dev/reference/php/api-docs/Google/Protobuf/Internal/MapField` |   |

### setResourceAttributes

Attributes of the resource being profiled.

Currently used attributes:

- customer_managed_encryption: boolean
  - true: the resource is encrypted with a customer-managed key.
  - false: the resource is encrypted with a provider-managed key.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `array|https://protobuf.dev/reference/php/api-docs/Google/Protobuf/Internal/MapField` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `$this` |   |

### getResourceLabels

The labels applied to the resource at the time the profile was generated.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://protobuf.dev/reference/php/api-docs/Google/Protobuf/Internal/MapField` |   |

### setResourceLabels

The labels applied to the resource at the time the profile was generated.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `array|https://protobuf.dev/reference/php/api-docs/Google/Protobuf/Internal/MapField` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `$this` |   |

### getFileStoreInfoTypeSummaries

InfoTypes detected in this file store.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://protobuf.dev/reference/php/api-docs/Google/Protobuf/RepeatedField<https://docs.cloud.google.com/php/docs/reference/cloud-dlp/latest/V2.FileStoreInfoTypeSummary>` |   |

### setFileStoreInfoTypeSummaries

InfoTypes detected in this file store.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `array<https://docs.cloud.google.com/php/docs/reference/cloud-dlp/latest/V2.FileStoreInfoTypeSummary>` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `$this` |   |

### getSampleFindingsTable

The BigQuery table to which the sample findings are written.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/php/docs/reference/cloud-dlp/latest/V2.BigQueryTable|null` |   |

### hasSampleFindingsTable

### clearSampleFindingsTable

### setSampleFindingsTable

The BigQuery table to which the sample findings are written.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `https://docs.cloud.google.com/php/docs/reference/cloud-dlp/latest/V2.BigQueryTable` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `$this` |   |

### getFileStoreIsEmpty

The file store does not have any files. If the profiling operation failed,
this is false.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `bool` |   |

### setFileStoreIsEmpty

The file store does not have any files. If the profiling operation failed,
this is false.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `bool` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `$this` |   |

### getTags

The tags attached to the resource, including any tags attached during
profiling.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://protobuf.dev/reference/php/api-docs/Google/Protobuf/RepeatedField<https://docs.cloud.google.com/php/docs/reference/cloud-dlp/latest/V2.Tag>` |   |

### setTags

The tags attached to the resource, including any tags attached during
profiling.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `array<https://docs.cloud.google.com/php/docs/reference/cloud-dlp/latest/V2.Tag>` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `$this` |   |

### getRelatedResources

Resources related to this profile.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://protobuf.dev/reference/php/api-docs/Google/Protobuf/RepeatedField<https://docs.cloud.google.com/php/docs/reference/cloud-dlp/latest/V2.RelatedResource>` |   |

### setRelatedResources

Resources related to this profile.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `array<https://docs.cloud.google.com/php/docs/reference/cloud-dlp/latest/V2.RelatedResource>` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `$this` |   |

### getDomains

Domains associated with the profile.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://protobuf.dev/reference/php/api-docs/Google/Protobuf/RepeatedField<https://docs.cloud.google.com/php/docs/reference/cloud-dlp/latest/V2.Domain>` |   |

### setDomains

Domains associated with the profile.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `array<https://docs.cloud.google.com/php/docs/reference/cloud-dlp/latest/V2.Domain>` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `$this` |   |