# Interface DataQualityRuleResultOrBuilder (0.16.0)

<button class="button button-with-icon cloud-select-dropdown__button " aria-haspopup="true">Version latest</button>

- [0.16.0 (latest)](https://docs.cloud.google.com/java/docs/reference/google-cloudevent-types/latest/com.google.events.cloud.dataplex.v1.DataQualityRuleResultOrBuilder)
- [0.15.0](https://docs.cloud.google.com/java/docs/reference/google-cloudevent-types/0.15.0/com.google.events.cloud.dataplex.v1.DataQualityRuleResultOrBuilder)
- [0.14.1](https://docs.cloud.google.com/java/docs/reference/google-cloudevent-types/0.14.1/com.google.events.cloud.dataplex.v1.DataQualityRuleResultOrBuilder)

    public interface DataQualityRuleResultOrBuilder extends MessageOrBuilder

## Implements

[MessageOrBuilder](https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.MessageOrBuilder.html)

## Methods

### getEvaluatedCount()

    public abstract long getEvaluatedCount()

The number of rows a rule was evaluated against. This field is only valid
for ColumnMap type rules.
Evaluated count can be configured to either

- include all rows (default) - with `null` rows automatically failing rule evaluation, or
- exclude `null` rows from the `evaluated_count`, by setting `ignore_nulls = true`.

`int64 evaluated_count = 9;`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/tutorial/java/nutsandbolts/datatypes.html` | The evaluatedCount. |

### getFailingRowsQuery()

    public abstract String getFailingRowsQuery()

The query to find rows that did not pass this rule.
Only applies to ColumnMap and RowCondition rules.

`string failing_rows_query = 10;`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/8/docs/api/java/lang/String.html` | The failingRowsQuery. |

### getFailingRowsQueryBytes()

    public abstract ByteString getFailingRowsQueryBytes()

The query to find rows that did not pass this rule.
Only applies to ColumnMap and RowCondition rules.

`string failing_rows_query = 10;`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.ByteString.html` | The bytes for failingRowsQuery. |

### getNullCount()

    public abstract long getNullCount()

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

`int64 null_count = 5;`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/tutorial/java/nutsandbolts/datatypes.html` | The nullCount. |

### getPassRatio()

    public abstract double getPassRatio()

The ratio of **passed_count / evaluated_count**.
This field is only valid for ColumnMap type rules.

`double pass_ratio = 6;`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/tutorial/java/nutsandbolts/datatypes.html` | The passRatio. |

### getPassed()

    public abstract boolean getPassed()

Whether the rule passed or failed.

`bool passed = 7;`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/tutorial/java/nutsandbolts/datatypes.html` | The passed. |

### getPassedCount()

    public abstract long getPassedCount()

The number of rows which passed a rule evaluation.
This field is only valid for ColumnMap type rules.

`int64 passed_count = 8;`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/tutorial/java/nutsandbolts/datatypes.html` | The passedCount. |

### getRule()

    public abstract DataQualityRule getRule()

The rule specified in the DataQualitySpec, as is.

`.google.events.cloud.dataplex.v1.DataQualityRule rule = 1;`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloudevent-types/latest/com.google.events.cloud.dataplex.v1.DataQualityRule` | The rule. |

### getRuleOrBuilder()

    public abstract DataQualityRuleOrBuilder getRuleOrBuilder()

The rule specified in the DataQualitySpec, as is.

`.google.events.cloud.dataplex.v1.DataQualityRule rule = 1;`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloudevent-types/latest/com.google.events.cloud.dataplex.v1.DataQualityRuleOrBuilder` |   |

### hasRule()

    public abstract boolean hasRule()

The rule specified in the DataQualitySpec, as is.

`.google.events.cloud.dataplex.v1.DataQualityRule rule = 1;`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/tutorial/java/nutsandbolts/datatypes.html` | Whether the rule field is set. |