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

    public interface MigrationWarningOrBuilder extends MessageOrBuilder

## Implements

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

## Methods

### getActionItem()

    public abstract LocalizedMessage getActionItem()

Suggested action for solving the warning.

`.google.rpc.LocalizedMessage action_item = 3;`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `com.google.rpc.LocalizedMessage` | The actionItem. |

### getActionItemOrBuilder()

    public abstract LocalizedMessageOrBuilder getActionItemOrBuilder()

Suggested action for solving the warning.

`.google.rpc.LocalizedMessage action_item = 3;`

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

### getCode()

    public abstract MigrationWarning.WarningCode getCode()

The warning code.

`.google.events.cloud.vmmigration.v1.MigrationWarning.WarningCode code = 1;`

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

### getCodeValue()

    public abstract int getCodeValue()

The warning code.

`.google.events.cloud.vmmigration.v1.MigrationWarning.WarningCode code = 1;`

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

### getHelpLinks(int index)

    public abstract Help.Link getHelpLinks(int index)

URL(s) pointing to additional information on handling the current warning.

`repeated .google.rpc.Help.Link help_links = 4;`

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `index` | `https://docs.oracle.com/javase/tutorial/java/nutsandbolts/datatypes.html` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `com.google.rpc.Help.Link` |   |

### getHelpLinksCount()

    public abstract int getHelpLinksCount()

URL(s) pointing to additional information on handling the current warning.

`repeated .google.rpc.Help.Link help_links = 4;`

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

### getHelpLinksList()

    public abstract List<Help.Link> getHelpLinksList()

URL(s) pointing to additional information on handling the current warning.

`repeated .google.rpc.Help.Link help_links = 4;`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/8/docs/api/java/util/List.html<com.google.rpc.Help.Link>` |   |

### getHelpLinksOrBuilder(int index)

    public abstract Help.LinkOrBuilder getHelpLinksOrBuilder(int index)

URL(s) pointing to additional information on handling the current warning.

`repeated .google.rpc.Help.Link help_links = 4;`

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `index` | `https://docs.oracle.com/javase/tutorial/java/nutsandbolts/datatypes.html` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `com.google.rpc.Help.LinkOrBuilder` |   |

### getHelpLinksOrBuilderList()

    public abstract List<? extends Help.LinkOrBuilder> getHelpLinksOrBuilderList()

URL(s) pointing to additional information on handling the current warning.

`repeated .google.rpc.Help.Link help_links = 4;`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/8/docs/api/java/util/List.html<? extends com.google.rpc.Help.LinkOrBuilder>` |   |

### getWarningMessage()

    public abstract LocalizedMessage getWarningMessage()

The localized warning message.

`.google.rpc.LocalizedMessage warning_message = 2;`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `com.google.rpc.LocalizedMessage` | The warningMessage. |

### getWarningMessageOrBuilder()

    public abstract LocalizedMessageOrBuilder getWarningMessageOrBuilder()

The localized warning message.

`.google.rpc.LocalizedMessage warning_message = 2;`

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

### getWarningTime()

    public abstract Timestamp getWarningTime()

The time the warning occurred.

`.google.protobuf.Timestamp warning_time = 5;`

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

### getWarningTimeOrBuilder()

    public abstract TimestampOrBuilder getWarningTimeOrBuilder()

The time the warning occurred.

`.google.protobuf.Timestamp warning_time = 5;`

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

### hasActionItem()

    public abstract boolean hasActionItem()

Suggested action for solving the warning.

`.google.rpc.LocalizedMessage action_item = 3;`

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

### hasWarningMessage()

    public abstract boolean hasWarningMessage()

The localized warning message.

`.google.rpc.LocalizedMessage warning_message = 2;`

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

### hasWarningTime()

    public abstract boolean hasWarningTime()

The time the warning occurred.

`.google.protobuf.Timestamp warning_time = 5;`

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