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

    public static interface Asset.DiscoveryStatusOrBuilder extends MessageOrBuilder

## Implements

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

## Methods

### getLastRunDuration()

    public abstract Duration getLastRunDuration()

The duration of the last discovery run.

`.google.protobuf.Duration last_run_duration = 7;`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.Duration.html` | The lastRunDuration. |

### getLastRunDurationOrBuilder()

    public abstract DurationOrBuilder getLastRunDurationOrBuilder()

The duration of the last discovery run.

`.google.protobuf.Duration last_run_duration = 7;`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.DurationOrBuilder.html` |   |

### getLastRunTime()

    public abstract Timestamp getLastRunTime()

The start time of the last discovery run.

`.google.protobuf.Timestamp last_run_time = 4;`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.Timestamp.html` | The lastRunTime. |

### getLastRunTimeOrBuilder()

    public abstract TimestampOrBuilder getLastRunTimeOrBuilder()

The start time of the last discovery run.

`.google.protobuf.Timestamp last_run_time = 4;`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.TimestampOrBuilder.html` |   |

### getMessage()

    public abstract String getMessage()

Additional information about the current state.

`string message = 2;`

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

### getMessageBytes()

    public abstract ByteString getMessageBytes()

Additional information about the current state.

`string message = 2;`

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

### getState()

    public abstract Asset.DiscoveryStatus.State getState()

The current status of the discovery feature.

`.google.events.cloud.dataplex.v1.Asset.DiscoveryStatus.State state = 1;`

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

### getStateValue()

    public abstract int getStateValue()

The current status of the discovery feature.

`.google.events.cloud.dataplex.v1.Asset.DiscoveryStatus.State state = 1;`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/tutorial/java/nutsandbolts/datatypes.html` | The enum numeric value on the wire for state. |

### getStats()

    public abstract Asset.DiscoveryStatus.Stats getStats()

Data Stats of the asset reported by discovery.

`.google.events.cloud.dataplex.v1.Asset.DiscoveryStatus.Stats stats = 6;`

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

### getStatsOrBuilder()

    public abstract Asset.DiscoveryStatus.StatsOrBuilder getStatsOrBuilder()

Data Stats of the asset reported by discovery.

`.google.events.cloud.dataplex.v1.Asset.DiscoveryStatus.Stats stats = 6;`

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

### getUpdateTime()

    public abstract Timestamp getUpdateTime()

Last update time of the status.

`.google.protobuf.Timestamp update_time = 3;`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.Timestamp.html` | The updateTime. |

### getUpdateTimeOrBuilder()

    public abstract TimestampOrBuilder getUpdateTimeOrBuilder()

Last update time of the status.

`.google.protobuf.Timestamp update_time = 3;`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.TimestampOrBuilder.html` |   |

### hasLastRunDuration()

    public abstract boolean hasLastRunDuration()

The duration of the last discovery run.

`.google.protobuf.Duration last_run_duration = 7;`

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

### hasLastRunTime()

    public abstract boolean hasLastRunTime()

The start time of the last discovery run.

`.google.protobuf.Timestamp last_run_time = 4;`

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

### hasStats()

    public abstract boolean hasStats()

Data Stats of the asset reported by discovery.

`.google.events.cloud.dataplex.v1.Asset.DiscoveryStatus.Stats stats = 6;`

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

### hasUpdateTime()

    public abstract boolean hasUpdateTime()

Last update time of the status.

`.google.protobuf.Timestamp update_time = 3;`

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