Interface SqlUsersUpdateRequestOrBuilder (0.1.0)

public interface SqlUsersUpdateRequestOrBuilder extends MessageOrBuilder

Implements

MessageOrBuilder

Methods

getBody()

public abstract User getBody()

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

Returns
Type Description
User

The body.

getBodyOrBuilder()

public abstract UserOrBuilder getBodyOrBuilder()

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

Returns
Type Description
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 int

The index of the element to return.

Returns
Type Description
String

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 int

The index of the value to return.

Returns
Type Description
ByteString

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
int

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
List<String>

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
String

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
ByteString

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
String

The instance.

getInstanceBytes()

public abstract ByteString getInstanceBytes()

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

string instance = 2;

Returns
Type Description
ByteString

The bytes for instance.

getName()

public abstract String getName()

Name of the user in the instance.

string name = 3;

Returns
Type Description
String

The name.

getNameBytes()

public abstract ByteString getNameBytes()

Name of the user in the instance.

string name = 3;

Returns
Type Description
ByteString

The bytes for name.

getProject()

public abstract String getProject()

Project ID of the project that contains the instance.

string project = 4;

Returns
Type Description
String

The project.

getProjectBytes()

public abstract ByteString getProjectBytes()

Project ID of the project that contains the instance.

string project = 4;

Returns
Type Description
ByteString

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
boolean

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
boolean

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 int

The index of the element to return.

Returns
Type Description
String

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 int

The index of the value to return.

Returns
Type Description
ByteString

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
int

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
List<String>

A list containing the serverRoles.

hasBody()

public abstract boolean hasBody()

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

Returns
Type Description
boolean

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
boolean

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
boolean

Whether the revokeExistingServerRoles field is set.