# Google Cloud Dataplex V1 Client - Class Action (1.14.0)

1.14.0 (latest) 1.13.0 1.12.0 1.11.0 1.10.0 1.9.1 1.8.0 1.7.1 1.6.1 1.4.0 1.3.0 1.2.1 1.1.1 1.0.1 0.16.1 0.15.1 0.14.0 0.13.0 0.12.0 0.11.1 0.10.0 0.9.0 0.8.0 0.7.0 0.6.0 0.5.1 0.4.0 0.3.0 0.2.3 0.1.6 Reference documentation and code samples for the Google Cloud Dataplex V1 Client class Action.

Action represents an issue requiring administrator action for resolution.

Generated from protobuf message `google.cloud.dataplex.v1.Action`

## Namespace

Google \\ Cloud \\ Dataplex \\ V1

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ category` | `int` The category of issue associated with the action. |
| `↳ issue` | `string` Detailed description of the issue requiring action. |
| `↳ detect_time` | `https://protobuf.dev/reference/php/api-docs/Google/Protobuf/Timestamp` The time that the issue was detected. |
| `↳ name` | `string` Output only. The relative resource name of the action, of the form: `projects/{project}/locations/{location}/lakes/{lake}/actions/{action}` `projects/{project}/locations/{location}/lakes/{lake}/zones/{zone}/actions/{action}` `projects/{project}/locations/{location}/lakes/{lake}/zones/{zone}/assets/{asset}/actions/{action}`. |
| `↳ lake` | `string` Output only. The relative resource name of the lake, of the form: `projects/{project_number}/locations/{location_id}/lakes/{lake_id}`. |
| `↳ zone` | `string` Output only. The relative resource name of the zone, of the form: `projects/{project_number}/locations/{location_id}/lakes/{lake_id}/zones/{zone_id}`. |
| `↳ asset` | `string` Output only. The relative resource name of the asset, of the form: `projects/{project_number}/locations/{location_id}/lakes/{lake_id}/zones/{zone_id}/assets/{asset_id}`. |
| `↳ data_locations` | `string[]` The list of data locations associated with this action. Cloud Storage locations are represented as URI paths(E.g. `gs://bucket/table1/year=2020/month=Jan/`). BigQuery locations refer to resource names(E.g. `bigquery.googleapis.com/projects/project-id/datasets/dataset-id`). |
| `↳ invalid_data_format` | `https://docs.cloud.google.com/php/docs/reference/cloud-dataplex/latest/V1.Action.InvalidDataFormat` Details for issues related to invalid or unsupported data formats. |
| `↳ incompatible_data_schema` | `https://docs.cloud.google.com/php/docs/reference/cloud-dataplex/latest/V1.Action.IncompatibleDataSchema` Details for issues related to incompatible schemas detected within data. |
| `↳ invalid_data_partition` | `https://docs.cloud.google.com/php/docs/reference/cloud-dataplex/latest/V1.Action.InvalidDataPartition` Details for issues related to invalid or unsupported data partition structure. |
| `↳ missing_data` | `https://docs.cloud.google.com/php/docs/reference/cloud-dataplex/latest/V1.Action.MissingData` Details for issues related to absence of data within managed resources. |
| `↳ missing_resource` | `https://docs.cloud.google.com/php/docs/reference/cloud-dataplex/latest/V1.Action.MissingResource` Details for issues related to absence of a managed resource. |
| `↳ unauthorized_resource` | `https://docs.cloud.google.com/php/docs/reference/cloud-dataplex/latest/V1.Action.UnauthorizedResource` Details for issues related to lack of permissions to access data resources. |
| `↳ failed_security_policy_apply` | `https://docs.cloud.google.com/php/docs/reference/cloud-dataplex/latest/V1.Action.FailedSecurityPolicyApply` Details for issues related to applying security policy. |
| `↳ invalid_data_organization` | `https://docs.cloud.google.com/php/docs/reference/cloud-dataplex/latest/V1.Action.InvalidDataOrganization` Details for issues related to invalid data arrangement. |

### getCategory

The category of issue associated with the action.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `int` | Enum of type [Category](https://docs.cloud.google.com/php/docs/reference/cloud-dataplex/latest/V1.Action.Category). |

### setCategory

The category of issue associated with the action.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `int` Enum of type [Category](https://docs.cloud.google.com/php/docs/reference/cloud-dataplex/latest/V1.Action.Category). |

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

### getIssue

Detailed description of the issue requiring action.

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

### setIssue

Detailed description of the issue requiring action.

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

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

### getDetectTime

The time that the issue was detected.

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

### hasDetectTime

### clearDetectTime

### setDetectTime

The time that the issue was detected.

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

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

### getName

Output only. The relative resource name of the action, of the form:
`projects/{project}/locations/{location}/lakes/{lake}/actions/{action}`
`projects/{project}/locations/{location}/lakes/{lake}/zones/{zone}/actions/{action}`
`projects/{project}/locations/{location}/lakes/{lake}/zones/{zone}/assets/{asset}/actions/{action}`.

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

### setName

Output only. The relative resource name of the action, of the form:
`projects/{project}/locations/{location}/lakes/{lake}/actions/{action}`
`projects/{project}/locations/{location}/lakes/{lake}/zones/{zone}/actions/{action}`
`projects/{project}/locations/{location}/lakes/{lake}/zones/{zone}/assets/{asset}/actions/{action}`.

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

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

### getLake

Output only. The relative resource name of the lake, of the form:
`projects/{project_number}/locations/{location_id}/lakes/{lake_id}`.

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

### setLake

Output only. The relative resource name of the lake, of the form:
`projects/{project_number}/locations/{location_id}/lakes/{lake_id}`.

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

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

### getZone

Output only. The relative resource name of the zone, of the form:
`projects/{project_number}/locations/{location_id}/lakes/{lake_id}/zones/{zone_id}`.

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

### setZone

Output only. The relative resource name of the zone, of the form:
`projects/{project_number}/locations/{location_id}/lakes/{lake_id}/zones/{zone_id}`.

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

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

### getAsset

Output only. The relative resource name of the asset, of the form:
`projects/{project_number}/locations/{location_id}/lakes/{lake_id}/zones/{zone_id}/assets/{asset_id}`.

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

### setAsset

Output only. The relative resource name of the asset, of the form:
`projects/{project_number}/locations/{location_id}/lakes/{lake_id}/zones/{zone_id}/assets/{asset_id}`.

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

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

### getDataLocations

The list of data locations associated with this action. Cloud Storage
locations are represented as URI paths(E.g.

`gs://bucket/table1/year=2020/month=Jan/`). BigQuery locations refer to
resource names(E.g.
`bigquery.googleapis.com/projects/project-id/datasets/dataset-id`).

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

### setDataLocations

The list of data locations associated with this action. Cloud Storage
locations are represented as URI paths(E.g.

`gs://bucket/table1/year=2020/month=Jan/`). BigQuery locations refer to
resource names(E.g.
`bigquery.googleapis.com/projects/project-id/datasets/dataset-id`).

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

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

### getInvalidDataFormat

Details for issues related to invalid or unsupported data formats.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/php/docs/reference/cloud-dataplex/latest/V1.Action.InvalidDataFormat|null` |   |

### hasInvalidDataFormat

### setInvalidDataFormat

Details for issues related to invalid or unsupported data formats.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `https://docs.cloud.google.com/php/docs/reference/cloud-dataplex/latest/V1.Action.InvalidDataFormat` |

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

### getIncompatibleDataSchema

Details for issues related to incompatible schemas detected within data.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/php/docs/reference/cloud-dataplex/latest/V1.Action.IncompatibleDataSchema|null` |   |

### hasIncompatibleDataSchema

### setIncompatibleDataSchema

Details for issues related to incompatible schemas detected within data.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `https://docs.cloud.google.com/php/docs/reference/cloud-dataplex/latest/V1.Action.IncompatibleDataSchema` |

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

### getInvalidDataPartition

Details for issues related to invalid or unsupported data partition
structure.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/php/docs/reference/cloud-dataplex/latest/V1.Action.InvalidDataPartition|null` |   |

### hasInvalidDataPartition

### setInvalidDataPartition

Details for issues related to invalid or unsupported data partition
structure.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `https://docs.cloud.google.com/php/docs/reference/cloud-dataplex/latest/V1.Action.InvalidDataPartition` |

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

### getMissingData

Details for issues related to absence of data within managed resources.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/php/docs/reference/cloud-dataplex/latest/V1.Action.MissingData|null` |   |

### hasMissingData

### setMissingData

Details for issues related to absence of data within managed resources.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `https://docs.cloud.google.com/php/docs/reference/cloud-dataplex/latest/V1.Action.MissingData` |

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

### getMissingResource

Details for issues related to absence of a managed resource.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/php/docs/reference/cloud-dataplex/latest/V1.Action.MissingResource|null` |   |

### hasMissingResource

### setMissingResource

Details for issues related to absence of a managed resource.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `https://docs.cloud.google.com/php/docs/reference/cloud-dataplex/latest/V1.Action.MissingResource` |

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

### getUnauthorizedResource

Details for issues related to lack of permissions to access data
resources.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/php/docs/reference/cloud-dataplex/latest/V1.Action.UnauthorizedResource|null` |   |

### hasUnauthorizedResource

### setUnauthorizedResource

Details for issues related to lack of permissions to access data
resources.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `https://docs.cloud.google.com/php/docs/reference/cloud-dataplex/latest/V1.Action.UnauthorizedResource` |

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

### getFailedSecurityPolicyApply

Details for issues related to applying security policy.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/php/docs/reference/cloud-dataplex/latest/V1.Action.FailedSecurityPolicyApply|null` |   |

### hasFailedSecurityPolicyApply

### setFailedSecurityPolicyApply

Details for issues related to applying security policy.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `https://docs.cloud.google.com/php/docs/reference/cloud-dataplex/latest/V1.Action.FailedSecurityPolicyApply` |

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

### getInvalidDataOrganization

Details for issues related to invalid data arrangement.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/php/docs/reference/cloud-dataplex/latest/V1.Action.InvalidDataOrganization|null` |   |

### hasInvalidDataOrganization

### setInvalidDataOrganization

Details for issues related to invalid data arrangement.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `https://docs.cloud.google.com/php/docs/reference/cloud-dataplex/latest/V1.Action.InvalidDataOrganization` |

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

### getDetails

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