Interface UserOrBuilder (0.1.0)

public interface UserOrBuilder extends MessageOrBuilder

Implements

MessageOrBuilder

Methods

getDatabaseRoles(int index)

public abstract String getDatabaseRoles(int index)

Optional. Role memberships of the user

repeated string database_roles = 15 [(.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. Role memberships of the user

repeated string database_roles = 15 [(.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. Role memberships of the user

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

Returns
Type Description
int

The count of databaseRoles.

getDatabaseRolesList()

public abstract List<String> getDatabaseRolesList()

Optional. Role memberships of the user

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

Returns
Type Description
List<String>

A list containing the databaseRoles.

getDualPasswordType()

public abstract User.DualPasswordType getDualPasswordType()

Dual password status for the user.

optional .google.cloud.sql.v1beta4.User.DualPasswordType dual_password_type = 13;

Returns
Type Description
User.DualPasswordType

The dualPasswordType.

getDualPasswordTypeValue()

public abstract int getDualPasswordTypeValue()

Dual password status for the user.

optional .google.cloud.sql.v1beta4.User.DualPasswordType dual_password_type = 13;

Returns
Type Description
int

The enum numeric value on the wire for dualPasswordType.

getEtag()

public abstract String getEtag()

This field is deprecated and will be removed from a future version of the API.

string etag = 3;

Returns
Type Description
String

The etag.

getEtagBytes()

public abstract ByteString getEtagBytes()

This field is deprecated and will be removed from a future version of the API.

string etag = 3;

Returns
Type Description
ByteString

The bytes for etag.

getHost()

public abstract String getHost()

Optional. The host from which the user can connect. For insert operations, host defaults to an empty string. For update operations, host is specified as part of the request URL. The host name cannot be updated after insertion. For a MySQL instance, it's required; for a PostgreSQL or SQL Server instance, it's optional.

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

Returns
Type Description
String

The host.

getHostBytes()

public abstract ByteString getHostBytes()

Optional. The host from which the user can connect. For insert operations, host defaults to an empty string. For update operations, host is specified as part of the request URL. The host name cannot be updated after insertion. For a MySQL instance, it's required; for a PostgreSQL or SQL Server instance, it's optional.

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

Returns
Type Description
ByteString

The bytes for host.

getIamEmail()

public abstract String getIamEmail()

Optional. The full email for an IAM user. For normal database users, this will not be filled. Only applicable to MySQL database users.

string iam_email = 11 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
String

The iamEmail.

getIamEmailBytes()

public abstract ByteString getIamEmailBytes()

Optional. The full email for an IAM user. For normal database users, this will not be filled. Only applicable to MySQL database users.

string iam_email = 11 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
ByteString

The bytes for iamEmail.

getIamStatus()

public abstract User.IamStatus getIamStatus()

Indicates if a group is active or inactive for IAM database authentication.

optional .google.cloud.sql.v1beta4.User.IamStatus iam_status = 14;

Returns
Type Description
User.IamStatus

The iamStatus.

getIamStatusValue()

public abstract int getIamStatusValue()

Indicates if a group is active or inactive for IAM database authentication.

optional .google.cloud.sql.v1beta4.User.IamStatus iam_status = 14;

Returns
Type Description
int

The enum numeric value on the wire for iamStatus.

getInstance()

public abstract String getInstance()

The name of the Cloud SQL instance. This does not include the project ID. Can be omitted for <b>update</b> because it is already specified on the URL.

string instance = 6;

Returns
Type Description
String

The instance.

getInstanceBytes()

public abstract ByteString getInstanceBytes()

The name of the Cloud SQL instance. This does not include the project ID. Can be omitted for <b>update</b> because it is already specified on the URL.

string instance = 6;

Returns
Type Description
ByteString

The bytes for instance.

getKind()

public abstract String getKind()

This is always sql#user.

string kind = 1;

Returns
Type Description
String

The kind.

getKindBytes()

public abstract ByteString getKindBytes()

This is always sql#user.

string kind = 1;

Returns
Type Description
ByteString

The bytes for kind.

getName()

public abstract String getName()

The name of the user in the Cloud SQL instance. Can be omitted for update because it is already specified in the URL.

string name = 4;

Returns
Type Description
String

The name.

getNameBytes()

public abstract ByteString getNameBytes()

The name of the user in the Cloud SQL instance. Can be omitted for update because it is already specified in the URL.

string name = 4;

Returns
Type Description
ByteString

The bytes for name.

getPassword()

public abstract String getPassword()

The password for the user.

string password = 2;

Returns
Type Description
String

The password.

getPasswordBytes()

public abstract ByteString getPasswordBytes()

The password for the user.

string password = 2;

Returns
Type Description
ByteString

The bytes for password.

getPasswordPolicy()

public abstract UserPasswordValidationPolicy getPasswordPolicy()

User level password validation policy.

.google.cloud.sql.v1beta4.UserPasswordValidationPolicy password_policy = 12;

Returns
Type Description
UserPasswordValidationPolicy

The passwordPolicy.

getPasswordPolicyOrBuilder()

public abstract UserPasswordValidationPolicyOrBuilder getPasswordPolicyOrBuilder()

User level password validation policy.

.google.cloud.sql.v1beta4.UserPasswordValidationPolicy password_policy = 12;

Returns
Type Description
UserPasswordValidationPolicyOrBuilder

getProject()

public abstract String getProject()

The project ID of the project containing the Cloud SQL database. The Google apps domain is prefixed if applicable. Can be omitted for <b>update</b> because it is already specified on the URL.

string project = 7;

Returns
Type Description
String

The project.

getProjectBytes()

public abstract ByteString getProjectBytes()

The project ID of the project containing the Cloud SQL database. The Google apps domain is prefixed if applicable. Can be omitted for <b>update</b> because it is already specified on the URL.

string project = 7;

Returns
Type Description
ByteString

The bytes for project.

getServerRoles(int index)

public abstract String getServerRoles(int index)

Optional. The server roles for the SQL Server login.

repeated string server_roles = 16 [(.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 for the SQL Server login.

repeated string server_roles = 16 [(.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 for the SQL Server login.

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

Returns
Type Description
int

The count of serverRoles.

getServerRolesList()

public abstract List<String> getServerRolesList()

Optional. The server roles for the SQL Server login.

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

Returns
Type Description
List<String>

A list containing the serverRoles.

getSqlserverUserDetails()

public abstract SqlServerUserDetails getSqlserverUserDetails()

.google.cloud.sql.v1beta4.SqlServerUserDetails sqlserver_user_details = 9;

Returns
Type Description
SqlServerUserDetails

The sqlserverUserDetails.

getSqlserverUserDetailsOrBuilder()

public abstract SqlServerUserDetailsOrBuilder getSqlserverUserDetailsOrBuilder()

.google.cloud.sql.v1beta4.SqlServerUserDetails sqlserver_user_details = 9;

Returns
Type Description
SqlServerUserDetailsOrBuilder

getType()

public abstract User.SqlUserType getType()

The user type. It determines the method to authenticate the user during login. The default is the database's built-in user type.

.google.cloud.sql.v1beta4.User.SqlUserType type = 8;

Returns
Type Description
User.SqlUserType

The type.

getTypeValue()

public abstract int getTypeValue()

The user type. It determines the method to authenticate the user during login. The default is the database's built-in user type.

.google.cloud.sql.v1beta4.User.SqlUserType type = 8;

Returns
Type Description
int

The enum numeric value on the wire for type.

getUserDetailsCase()

public abstract User.UserDetailsCase getUserDetailsCase()
Returns
Type Description
User.UserDetailsCase

hasDualPasswordType()

public abstract boolean hasDualPasswordType()

Dual password status for the user.

optional .google.cloud.sql.v1beta4.User.DualPasswordType dual_password_type = 13;

Returns
Type Description
boolean

Whether the dualPasswordType field is set.

hasIamStatus()

public abstract boolean hasIamStatus()

Indicates if a group is active or inactive for IAM database authentication.

optional .google.cloud.sql.v1beta4.User.IamStatus iam_status = 14;

Returns
Type Description
boolean

Whether the iamStatus field is set.

hasPasswordPolicy()

public abstract boolean hasPasswordPolicy()

User level password validation policy.

.google.cloud.sql.v1beta4.UserPasswordValidationPolicy password_policy = 12;

Returns
Type Description
boolean

Whether the passwordPolicy field is set.

hasSqlserverUserDetails()

public abstract boolean hasSqlserverUserDetails()

.google.cloud.sql.v1beta4.SqlServerUserDetails sqlserver_user_details = 9;

Returns
Type Description
boolean

Whether the sqlserverUserDetails field is set.