# Interface DataScan.ExecutionSpecOrBuilder (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.DataScan.ExecutionSpecOrBuilder)
- [0.15.0](https://docs.cloud.google.com/java/docs/reference/google-cloudevent-types/0.15.0/com.google.events.cloud.dataplex.v1.DataScan.ExecutionSpecOrBuilder)
- [0.14.1](https://docs.cloud.google.com/java/docs/reference/google-cloudevent-types/0.14.1/com.google.events.cloud.dataplex.v1.DataScan.ExecutionSpecOrBuilder)

    public static interface DataScan.ExecutionSpecOrBuilder extends MessageOrBuilder

## Implements

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

## Methods

### getField()

    public abstract String getField()

Immutable. The unnested field (of type *Date* or *Timestamp*) that
contains values which monotonically increase over time.
If not specified, a data scan will run for all data in the table.

`string field = 100;`

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

### getFieldBytes()

    public abstract ByteString getFieldBytes()

Immutable. The unnested field (of type *Date* or *Timestamp*) that
contains values which monotonically increase over time.
If not specified, a data scan will run for all data in the table.

`string field = 100;`

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

### getIncrementalCase()

    public abstract DataScan.ExecutionSpec.IncrementalCase getIncrementalCase()

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

### getTrigger()

    public abstract Trigger getTrigger()

Optional. Spec related to how often and when a scan should be triggered.
If not specified, the default is `OnDemand`, which means the scan will
not run until the user calls `RunDataScan` API.

`.google.events.cloud.dataplex.v1.Trigger trigger = 1;`

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

### getTriggerOrBuilder()

    public abstract TriggerOrBuilder getTriggerOrBuilder()

Optional. Spec related to how often and when a scan should be triggered.
If not specified, the default is `OnDemand`, which means the scan will
not run until the user calls `RunDataScan` API.

`.google.events.cloud.dataplex.v1.Trigger trigger = 1;`

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

### hasField()

    public abstract boolean hasField()

Immutable. The unnested field (of type *Date* or *Timestamp*) that
contains values which monotonically increase over time.
If not specified, a data scan will run for all data in the table.

`string field = 100;`

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

### hasTrigger()

    public abstract boolean hasTrigger()

Optional. Spec related to how often and when a scan should be triggered.
If not specified, the default is `OnDemand`, which means the scan will
not run until the user calls `RunDataScan` API.

`.google.events.cloud.dataplex.v1.Trigger trigger = 1;`

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