    public interface SqlUsersUpdateRequestOrBuilder extends MessageOrBuilder

## Implements

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

## Methods

### getBody()

    public abstract User getBody()

`.google.cloud.sql.v1beta4.User body = 100;`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-sql/latest/com.google.cloud.sql.v1beta4.User` | The body. |

### getBodyOrBuilder()

    public abstract UserOrBuilder getBodyOrBuilder()

`.google.cloud.sql.v1beta4.User body = 100;`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-sql/latest/com.google.cloud.sql.v1beta4.UserOrBuilder` |   |

### getDatabaseRoles(int index)

    public abstract String getDatabaseRoles(int index)

Optional. List of database roles to grant to the user. body.database_roles will be ignored for update request.

`repeated string database_roles = 5 [(.google.api.field_behavior) = OPTIONAL];`

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `index` | `https://docs.oracle.com/javase/tutorial/java/nutsandbolts/datatypes.html` The index of the element to return. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/8/docs/api/java/lang/String.html` | The databaseRoles at the given index. |

### getDatabaseRolesBytes(int index)

    public abstract ByteString getDatabaseRolesBytes(int index)

Optional. List of database roles to grant to the user. body.database_roles will be ignored for update request.

`repeated string database_roles = 5 [(.google.api.field_behavior) = OPTIONAL];`

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `index` | `https://docs.oracle.com/javase/tutorial/java/nutsandbolts/datatypes.html` The index of the value to return. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.ByteString.html` | The bytes of the databaseRoles at the given index. |

### getDatabaseRolesCount()

    public abstract int getDatabaseRolesCount()

Optional. List of database roles to grant to the user. body.database_roles will be ignored for update request.

`repeated string database_roles = 5 [(.google.api.field_behavior) = OPTIONAL];`

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

### getDatabaseRolesList()

    public abstract List<String> getDatabaseRolesList()

Optional. List of database roles to grant to the user. body.database_roles will be ignored for update request.

`repeated string database_roles = 5 [(.google.api.field_behavior) = OPTIONAL];`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/8/docs/api/java/util/List.html<https://docs.oracle.com/javase/8/docs/api/java/lang/String.html>` | A list containing the databaseRoles. |

### getHost()

    public abstract String getHost()

Optional. Host of the user in the instance.

`string host = 1 [(.google.api.field_behavior) = OPTIONAL];`

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

### getHostBytes()

    public abstract ByteString getHostBytes()

Optional. Host of the user in the instance.

`string host = 1 [(.google.api.field_behavior) = OPTIONAL];`

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

### getInstance()

    public abstract String getInstance()

Database instance ID. This does not include the project ID.

`string instance = 2;`

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

### getInstanceBytes()

    public abstract ByteString getInstanceBytes()

Database instance ID. This does not include the project ID.

`string instance = 2;`

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

### getName()

    public abstract String getName()

Name of the user in the instance.

`string name = 3;`

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

### getNameBytes()

    public abstract ByteString getNameBytes()

Name of the user in the instance.

`string name = 3;`

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

### getProject()

    public abstract String getProject()

Project ID of the project that contains the instance.

`string project = 4;`

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

### getProjectBytes()

    public abstract ByteString getProjectBytes()

Project ID of the project that contains the instance.

`string project = 4;`

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

### getRevokeExistingRoles()

    public abstract boolean getRevokeExistingRoles()

Optional. Specifies whether to revoke existing roles that are not present in the `database_roles` field. If `false` or unset, the database roles specified in `database_roles` are added to the user's existing roles.

`optional bool revoke_existing_roles = 6 [(.google.api.field_behavior) = OPTIONAL];`

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

### getRevokeExistingServerRoles()

    public abstract boolean getRevokeExistingServerRoles()

Optional. Specifies whether to revoke existing roles that are not present in the `server_roles` field. If `false` or unset, the server roles specified in `server_roles` are added to the user's existing server roles.

`optional bool revoke_existing_server_roles = 8 [(.google.api.field_behavior) = OPTIONAL]; `

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

### getServerRoles(int index)

    public abstract String getServerRoles(int index)

Optional. The server roles to grant to the SQL Server login. Existing server roles will not be revoked if revoke_existing_roles is false. body.server_roles will be ignored for update request.

`repeated string server_roles = 7 [(.google.api.field_behavior) = OPTIONAL];`

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `index` | `https://docs.oracle.com/javase/tutorial/java/nutsandbolts/datatypes.html` The index of the element to return. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/8/docs/api/java/lang/String.html` | The serverRoles at the given index. |

### getServerRolesBytes(int index)

    public abstract ByteString getServerRolesBytes(int index)

Optional. The server roles to grant to the SQL Server login. Existing server roles will not be revoked if revoke_existing_roles is false. body.server_roles will be ignored for update request.

`repeated string server_roles = 7 [(.google.api.field_behavior) = OPTIONAL];`

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `index` | `https://docs.oracle.com/javase/tutorial/java/nutsandbolts/datatypes.html` The index of the value to return. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.ByteString.html` | The bytes of the serverRoles at the given index. |

### getServerRolesCount()

    public abstract int getServerRolesCount()

Optional. The server roles to grant to the SQL Server login. Existing server roles will not be revoked if revoke_existing_roles is false. body.server_roles will be ignored for update request.

`repeated string server_roles = 7 [(.google.api.field_behavior) = OPTIONAL];`

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

### getServerRolesList()

    public abstract List<String> getServerRolesList()

Optional. The server roles to grant to the SQL Server login. Existing server roles will not be revoked if revoke_existing_roles is false. body.server_roles will be ignored for update request.

`repeated string server_roles = 7 [(.google.api.field_behavior) = OPTIONAL];`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/8/docs/api/java/util/List.html<https://docs.oracle.com/javase/8/docs/api/java/lang/String.html>` | A list containing the serverRoles. |

### hasBody()

    public abstract boolean hasBody()

`.google.cloud.sql.v1beta4.User body = 100;`

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

### hasRevokeExistingRoles()

    public abstract boolean hasRevokeExistingRoles()

Optional. Specifies whether to revoke existing roles that are not present in the `database_roles` field. If `false` or unset, the database roles specified in `database_roles` are added to the user's existing roles.

`optional bool revoke_existing_roles = 6 [(.google.api.field_behavior) = OPTIONAL];`

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

### hasRevokeExistingServerRoles()

    public abstract boolean hasRevokeExistingServerRoles()

Optional. Specifies whether to revoke existing roles that are not present in the `server_roles` field. If `false` or unset, the server roles specified in `server_roles` are added to the user's existing server roles.

`optional bool revoke_existing_server_roles = 8 [(.google.api.field_behavior) = OPTIONAL]; `

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