    public interface ApiWarningOrBuilder extends MessageOrBuilder

## Implements

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

## Methods

### getCode()

    public abstract ApiWarning.SqlApiWarningCode getCode()

Code to uniquely identify the warning type.

`.google.cloud.sql.v1.ApiWarning.SqlApiWarningCode code = 1;`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-sql/latest/com.google.cloud.sql.v1.ApiWarning.SqlApiWarningCode` | The code. |

### getCodeValue()

    public abstract int getCodeValue()

Code to uniquely identify the warning type.

`.google.cloud.sql.v1.ApiWarning.SqlApiWarningCode code = 1;`

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

### getMessage()

    public abstract String getMessage()

The warning message.

`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()

The warning message.

`string message = 2;`

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

### getRegion()

    public abstract String getRegion()

The region name for REGION_UNREACHABLE warning.

`string region = 3;`

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

### getRegionBytes()

    public abstract ByteString getRegionBytes()

The region name for REGION_UNREACHABLE warning.

`string region = 3;`

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