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

    public interface UpgradeStatusOrBuilder extends MessageOrBuilder

## Implements

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

## Methods

### getError()

    public abstract Status getError()

Provides details on the state of the upgrade operation in case of an error.

`.google.rpc.Status error = 3;`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `com.google.rpc.Status` | The error. |

### getErrorOrBuilder()

    public abstract StatusOrBuilder getErrorOrBuilder()

Provides details on the state of the upgrade operation in case of an error.

`.google.rpc.Status error = 3;`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `com.google.rpc.StatusOrBuilder` |   |

### getPreviousVersion()

    public abstract String getPreviousVersion()

The version from which we upgraded.

`string previous_version = 5;`

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

### getPreviousVersionBytes()

    public abstract ByteString getPreviousVersionBytes()

The version from which we upgraded.

`string previous_version = 5;`

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

### getStartTime()

    public abstract Timestamp getStartTime()

The time the operation was started.

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

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

### getStartTimeOrBuilder()

    public abstract TimestampOrBuilder getStartTimeOrBuilder()

The time the operation was started.

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

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

### getState()

    public abstract UpgradeStatus.State getState()

The state of the upgradeAppliance operation.

`.google.events.cloud.vmmigration.v1.UpgradeStatus.State state = 2;`

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

### getStateValue()

    public abstract int getStateValue()

The state of the upgradeAppliance operation.

`.google.events.cloud.vmmigration.v1.UpgradeStatus.State state = 2;`

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

### getVersion()

    public abstract String getVersion()

The version to upgrade to.

`string version = 1;`

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

### getVersionBytes()

    public abstract ByteString getVersionBytes()

The version to upgrade to.

`string version = 1;`

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

### hasError()

    public abstract boolean hasError()

Provides details on the state of the upgrade operation in case of an error.

`.google.rpc.Status error = 3;`

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

### hasStartTime()

    public abstract boolean hasStartTime()

The time the operation was started.

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

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