# Google Cloud Dataplex V1 Client - Class DataQualityScanRuleResult (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 DataQualityScanRuleResult.

Information about the result of a data quality rule for data quality scan.

The monitored resource is 'DataScan'.

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

## Namespace

Google \\ Cloud \\ Dataplex \\ V1

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ job_id` | `string` Identifier of the specific data scan job this log entry is for. |
| `↳ data_source` | `string` The data source of the data scan (e.g. BigQuery table name). |
| `↳ column` | `string` The column which this rule is evaluated against. |
| `↳ rule_name` | `string` The name of the data quality rule. |
| `↳ rule_type` | `int` The type of the data quality rule. |
| `↳ evalution_type` | `int` The evaluation type of the data quality rule. |
| `↳ rule_dimension` | `string` The dimension of the data quality rule. |
| `↳ threshold_percent` | `float` The passing threshold (\[0.0, 100.0\]) of the data quality rule. |
| `↳ result` | `int` The result of the data quality rule. |
| `↳ evaluated_row_count` | `int|string` The number of rows evaluated against the data quality rule. This field is only valid for rules of PER_ROW evaluation type. |
| `↳ passed_row_count` | `int|string` The number of rows which passed a rule evaluation. This field is only valid for rules of PER_ROW evaluation type. |
| `↳ null_row_count` | `int|string` The number of rows with null values in the specified column. |
| `↳ assertion_row_count` | `int|string` The number of rows returned by the SQL statement in a SQL assertion rule. This field is only valid for SQL assertion rules. |

### getJobId

Identifier of the specific data scan job this log entry is for.

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

### setJobId

Identifier of the specific data scan job this log entry is for.

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

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

### getDataSource

The data source of the data scan (e.g. BigQuery table name).

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

### setDataSource

The data source of the data scan (e.g. BigQuery table name).

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

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

### getColumn

The column which this rule is evaluated against.

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

### setColumn

The column which this rule is evaluated against.

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

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

### getRuleName

The name of the data quality rule.

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

### setRuleName

The name of the data quality rule.

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

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

### getRuleType

The type of the data quality rule.

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

### setRuleType

The type of the data quality rule.

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

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

### getEvalutionType

The evaluation type of the data quality rule.

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

### setEvalutionType

The evaluation type of the data quality rule.

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

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

### getRuleDimension

The dimension of the data quality rule.

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

### setRuleDimension

The dimension of the data quality rule.

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

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

### getThresholdPercent

The passing threshold (\[0.0, 100.0\]) of the data quality rule.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `float` |   |

### setThresholdPercent

The passing threshold (\[0.0, 100.0\]) of the data quality rule.

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

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

### getResult

The result of the data quality rule.

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

### setResult

The result of the data quality rule.

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

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

### getEvaluatedRowCount

The number of rows evaluated against the data quality rule.

This field is only valid for rules of PER_ROW evaluation type.

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

### setEvaluatedRowCount

The number of rows evaluated against the data quality rule.

This field is only valid for rules of PER_ROW evaluation type.

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

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

### getPassedRowCount

The number of rows which passed a rule evaluation.

This field is only valid for rules of PER_ROW evaluation type.

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

### setPassedRowCount

The number of rows which passed a rule evaluation.

This field is only valid for rules of PER_ROW evaluation type.

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

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

### getNullRowCount

The number of rows with null values in the specified column.

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

### setNullRowCount

The number of rows with null values in the specified column.

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

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

### getAssertionRowCount

The number of rows returned by the SQL statement in a SQL assertion rule.

This field is only valid for SQL assertion rules.

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

### setAssertionRowCount

The number of rows returned by the SQL statement in a SQL assertion rule.

This field is only valid for SQL assertion rules.

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

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