public static final class User.Builder extends GeneratedMessage.Builder<User.Builder> implements UserOrBuilderA Cloud SQL user resource.
Protobuf type google.cloud.sql.v1.User
Inheritance
java.lang.Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessage.Builder > User.BuilderImplements
UserOrBuilderStatic Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
Methods
addAllDatabaseRoles(Iterable<String> values)
public User.Builder addAllDatabaseRoles(Iterable<String> values)Optional. Role memberships of the user
repeated string database_roles = 15 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
values |
Iterable<String>The databaseRoles to add. |
| Returns | |
|---|---|
| Type | Description |
User.Builder |
This builder for chaining. |
addAllServerRoles(Iterable<String> values)
public User.Builder addAllServerRoles(Iterable<String> values)Optional. The server roles for the SQL Server login.
repeated string server_roles = 16 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
values |
Iterable<String>The serverRoles to add. |
| Returns | |
|---|---|
| Type | Description |
User.Builder |
This builder for chaining. |
addDatabaseRoles(String value)
public User.Builder addDatabaseRoles(String value)Optional. Role memberships of the user
repeated string database_roles = 15 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
value |
StringThe databaseRoles to add. |
| Returns | |
|---|---|
| Type | Description |
User.Builder |
This builder for chaining. |
addDatabaseRolesBytes(ByteString value)
public User.Builder addDatabaseRolesBytes(ByteString value)Optional. Role memberships of the user
repeated string database_roles = 15 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
value |
ByteStringThe bytes of the databaseRoles to add. |
| Returns | |
|---|---|
| Type | Description |
User.Builder |
This builder for chaining. |
addServerRoles(String value)
public User.Builder addServerRoles(String value)Optional. The server roles for the SQL Server login.
repeated string server_roles = 16 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
value |
StringThe serverRoles to add. |
| Returns | |
|---|---|
| Type | Description |
User.Builder |
This builder for chaining. |
addServerRolesBytes(ByteString value)
public User.Builder addServerRolesBytes(ByteString value)Optional. The server roles for the SQL Server login.
repeated string server_roles = 16 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
value |
ByteStringThe bytes of the serverRoles to add. |
| Returns | |
|---|---|
| Type | Description |
User.Builder |
This builder for chaining. |
build()
public User build()| Returns | |
|---|---|
| Type | Description |
User |
|
buildPartial()
public User buildPartial()| Returns | |
|---|---|
| Type | Description |
User |
|
clear()
public User.Builder clear()| Returns | |
|---|---|
| Type | Description |
User.Builder |
|
clearDatabaseRoles()
public User.Builder clearDatabaseRoles()Optional. Role memberships of the user
repeated string database_roles = 15 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
User.Builder |
This builder for chaining. |
clearDualPasswordType()
public User.Builder clearDualPasswordType()Dual password status for the user.
optional .google.cloud.sql.v1.User.DualPasswordType dual_password_type = 13;
| Returns | |
|---|---|
| Type | Description |
User.Builder |
This builder for chaining. |
clearEtag()
public User.Builder clearEtag()This field is deprecated and will be removed from a future version of the API.
string etag = 3;
| Returns | |
|---|---|
| Type | Description |
User.Builder |
This builder for chaining. |
clearHost()
public User.Builder clearHost() 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 |
User.Builder |
This builder for chaining. |
clearIamEmail()
public User.Builder clearIamEmail()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 |
User.Builder |
This builder for chaining. |
clearIamStatus()
public User.Builder clearIamStatus()Indicates if a group is active or inactive for IAM database authentication.
optional .google.cloud.sql.v1.User.IamStatus iam_status = 14;
| Returns | |
|---|---|
| Type | Description |
User.Builder |
This builder for chaining. |
clearInstance()
public User.Builder clearInstance() The name of the Cloud SQL instance. This does not include the project ID.
Can be omitted for update because it is already specified on the
URL.
string instance = 6;
| Returns | |
|---|---|
| Type | Description |
User.Builder |
This builder for chaining. |
clearKind()
public User.Builder clearKind() This is always sql#user.
string kind = 1;
| Returns | |
|---|---|
| Type | Description |
User.Builder |
This builder for chaining. |
clearName()
public User.Builder clearName() 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 |
User.Builder |
This builder for chaining. |
clearPassword()
public User.Builder clearPassword()The password for the user.
string password = 2;
| Returns | |
|---|---|
| Type | Description |
User.Builder |
This builder for chaining. |
clearPasswordPolicy()
public User.Builder clearPasswordPolicy()User level password validation policy.
.google.cloud.sql.v1.UserPasswordValidationPolicy password_policy = 12;
| Returns | |
|---|---|
| Type | Description |
User.Builder |
|
clearProject()
public User.Builder clearProject() The project ID of the project containing the Cloud SQL database. The Google
apps domain is prefixed if applicable. Can be omitted for update because
it is already specified on the URL.
string project = 7;
| Returns | |
|---|---|
| Type | Description |
User.Builder |
This builder for chaining. |
clearServerRoles()
public User.Builder clearServerRoles()Optional. The server roles for the SQL Server login.
repeated string server_roles = 16 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
User.Builder |
This builder for chaining. |
clearSqlserverUserDetails()
public User.Builder clearSqlserverUserDetails().google.cloud.sql.v1.SqlServerUserDetails sqlserver_user_details = 9;
| Returns | |
|---|---|
| Type | Description |
User.Builder |
|
clearType()
public User.Builder clearType()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.v1.User.SqlUserType type = 8;
| Returns | |
|---|---|
| Type | Description |
User.Builder |
This builder for chaining. |
clearUserDetails()
public User.Builder clearUserDetails()| Returns | |
|---|---|
| Type | Description |
User.Builder |
|
getDatabaseRoles(int index)
public String getDatabaseRoles(int index)Optional. Role memberships of the user
repeated string database_roles = 15 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
index |
intThe index of the element to return. |
| Returns | |
|---|---|
| Type | Description |
String |
The databaseRoles at the given index. |
getDatabaseRolesBytes(int index)
public ByteString getDatabaseRolesBytes(int index)Optional. Role memberships of the user
repeated string database_roles = 15 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
index |
intThe index of the value to return. |
| Returns | |
|---|---|
| Type | Description |
ByteString |
The bytes of the databaseRoles at the given index. |
getDatabaseRolesCount()
public 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 ProtocolStringList getDatabaseRolesList()Optional. Role memberships of the user
repeated string database_roles = 15 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
ProtocolStringList |
A list containing the databaseRoles. |
getDefaultInstanceForType()
public User getDefaultInstanceForType()| Returns | |
|---|---|
| Type | Description |
User |
|
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
getDualPasswordType()
public User.DualPasswordType getDualPasswordType()Dual password status for the user.
optional .google.cloud.sql.v1.User.DualPasswordType dual_password_type = 13;
| Returns | |
|---|---|
| Type | Description |
User.DualPasswordType |
The dualPasswordType. |
getDualPasswordTypeValue()
public int getDualPasswordTypeValue()Dual password status for the user.
optional .google.cloud.sql.v1.User.DualPasswordType dual_password_type = 13;
| Returns | |
|---|---|
| Type | Description |
int |
The enum numeric value on the wire for dualPasswordType. |
getEtag()
public 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 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 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 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 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 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 User.IamStatus getIamStatus()Indicates if a group is active or inactive for IAM database authentication.
optional .google.cloud.sql.v1.User.IamStatus iam_status = 14;
| Returns | |
|---|---|
| Type | Description |
User.IamStatus |
The iamStatus. |
getIamStatusValue()
public int getIamStatusValue()Indicates if a group is active or inactive for IAM database authentication.
optional .google.cloud.sql.v1.User.IamStatus iam_status = 14;
| Returns | |
|---|---|
| Type | Description |
int |
The enum numeric value on the wire for iamStatus. |
getInstance()
public String getInstance() The name of the Cloud SQL instance. This does not include the project ID.
Can be omitted for update because it is already specified on the
URL.
string instance = 6;
| Returns | |
|---|---|
| Type | Description |
String |
The instance. |
getInstanceBytes()
public ByteString getInstanceBytes() The name of the Cloud SQL instance. This does not include the project ID.
Can be omitted for update because it is already specified on the
URL.
string instance = 6;
| Returns | |
|---|---|
| Type | Description |
ByteString |
The bytes for instance. |
getKind()
public String getKind() This is always sql#user.
string kind = 1;
| Returns | |
|---|---|
| Type | Description |
String |
The kind. |
getKindBytes()
public ByteString getKindBytes() This is always sql#user.
string kind = 1;
| Returns | |
|---|---|
| Type | Description |
ByteString |
The bytes for kind. |
getName()
public 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 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 String getPassword()The password for the user.
string password = 2;
| Returns | |
|---|---|
| Type | Description |
String |
The password. |
getPasswordBytes()
public ByteString getPasswordBytes()The password for the user.
string password = 2;
| Returns | |
|---|---|
| Type | Description |
ByteString |
The bytes for password. |
getPasswordPolicy()
public UserPasswordValidationPolicy getPasswordPolicy()User level password validation policy.
.google.cloud.sql.v1.UserPasswordValidationPolicy password_policy = 12;
| Returns | |
|---|---|
| Type | Description |
UserPasswordValidationPolicy |
The passwordPolicy. |
getPasswordPolicyBuilder()
public UserPasswordValidationPolicy.Builder getPasswordPolicyBuilder()User level password validation policy.
.google.cloud.sql.v1.UserPasswordValidationPolicy password_policy = 12;
| Returns | |
|---|---|
| Type | Description |
UserPasswordValidationPolicy.Builder |
|
getPasswordPolicyOrBuilder()
public UserPasswordValidationPolicyOrBuilder getPasswordPolicyOrBuilder()User level password validation policy.
.google.cloud.sql.v1.UserPasswordValidationPolicy password_policy = 12;
| Returns | |
|---|---|
| Type | Description |
UserPasswordValidationPolicyOrBuilder |
|
getProject()
public 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 update because
it is already specified on the URL.
string project = 7;
| Returns | |
|---|---|
| Type | Description |
String |
The project. |
getProjectBytes()
public 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 update because
it is already specified on the URL.
string project = 7;
| Returns | |
|---|---|
| Type | Description |
ByteString |
The bytes for project. |
getServerRoles(int index)
public 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 |
intThe index of the element to return. |
| Returns | |
|---|---|
| Type | Description |
String |
The serverRoles at the given index. |
getServerRolesBytes(int index)
public 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 |
intThe index of the value to return. |
| Returns | |
|---|---|
| Type | Description |
ByteString |
The bytes of the serverRoles at the given index. |
getServerRolesCount()
public 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 ProtocolStringList getServerRolesList()Optional. The server roles for the SQL Server login.
repeated string server_roles = 16 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
ProtocolStringList |
A list containing the serverRoles. |
getSqlserverUserDetails()
public SqlServerUserDetails getSqlserverUserDetails().google.cloud.sql.v1.SqlServerUserDetails sqlserver_user_details = 9;
| Returns | |
|---|---|
| Type | Description |
SqlServerUserDetails |
The sqlserverUserDetails. |
getSqlserverUserDetailsBuilder()
public SqlServerUserDetails.Builder getSqlserverUserDetailsBuilder().google.cloud.sql.v1.SqlServerUserDetails sqlserver_user_details = 9;
| Returns | |
|---|---|
| Type | Description |
SqlServerUserDetails.Builder |
|
getSqlserverUserDetailsOrBuilder()
public SqlServerUserDetailsOrBuilder getSqlserverUserDetailsOrBuilder().google.cloud.sql.v1.SqlServerUserDetails sqlserver_user_details = 9;
| Returns | |
|---|---|
| Type | Description |
SqlServerUserDetailsOrBuilder |
|
getType()
public 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.v1.User.SqlUserType type = 8;
| Returns | |
|---|---|
| Type | Description |
User.SqlUserType |
The type. |
getTypeValue()
public 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.v1.User.SqlUserType type = 8;
| Returns | |
|---|---|
| Type | Description |
int |
The enum numeric value on the wire for type. |
getUserDetailsCase()
public User.UserDetailsCase getUserDetailsCase()| Returns | |
|---|---|
| Type | Description |
User.UserDetailsCase |
|
hasDualPasswordType()
public boolean hasDualPasswordType()Dual password status for the user.
optional .google.cloud.sql.v1.User.DualPasswordType dual_password_type = 13;
| Returns | |
|---|---|
| Type | Description |
boolean |
Whether the dualPasswordType field is set. |
hasIamStatus()
public boolean hasIamStatus()Indicates if a group is active or inactive for IAM database authentication.
optional .google.cloud.sql.v1.User.IamStatus iam_status = 14;
| Returns | |
|---|---|
| Type | Description |
boolean |
Whether the iamStatus field is set. |
hasPasswordPolicy()
public boolean hasPasswordPolicy()User level password validation policy.
.google.cloud.sql.v1.UserPasswordValidationPolicy password_policy = 12;
| Returns | |
|---|---|
| Type | Description |
boolean |
Whether the passwordPolicy field is set. |
hasSqlserverUserDetails()
public boolean hasSqlserverUserDetails().google.cloud.sql.v1.SqlServerUserDetails sqlserver_user_details = 9;
| Returns | |
|---|---|
| Type | Description |
boolean |
Whether the sqlserverUserDetails field is set. |
internalGetFieldAccessorTable()
protected GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()| Returns | |
|---|---|
| Type | Description |
FieldAccessorTable |
|
isInitialized()
public final boolean isInitialized()| Returns | |
|---|---|
| Type | Description |
boolean |
|
mergeFrom(User other)
public User.Builder mergeFrom(User other)| Parameter | |
|---|---|
| Name | Description |
other |
User |
| Returns | |
|---|---|
| Type | Description |
User.Builder |
|
mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public User.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)| Parameters | |
|---|---|
| Name | Description |
input |
CodedInputStream |
extensionRegistry |
ExtensionRegistryLite |
| Returns | |
|---|---|
| Type | Description |
User.Builder |
|
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|
mergeFrom(Message other)
public User.Builder mergeFrom(Message other)| Parameter | |
|---|---|
| Name | Description |
other |
Message |
| Returns | |
|---|---|
| Type | Description |
User.Builder |
|
mergePasswordPolicy(UserPasswordValidationPolicy value)
public User.Builder mergePasswordPolicy(UserPasswordValidationPolicy value)User level password validation policy.
.google.cloud.sql.v1.UserPasswordValidationPolicy password_policy = 12;
| Parameter | |
|---|---|
| Name | Description |
value |
UserPasswordValidationPolicy |
| Returns | |
|---|---|
| Type | Description |
User.Builder |
|
mergeSqlserverUserDetails(SqlServerUserDetails value)
public User.Builder mergeSqlserverUserDetails(SqlServerUserDetails value).google.cloud.sql.v1.SqlServerUserDetails sqlserver_user_details = 9;
| Parameter | |
|---|---|
| Name | Description |
value |
SqlServerUserDetails |
| Returns | |
|---|---|
| Type | Description |
User.Builder |
|
setDatabaseRoles(int index, String value)
public User.Builder setDatabaseRoles(int index, String value)Optional. Role memberships of the user
repeated string database_roles = 15 [(.google.api.field_behavior) = OPTIONAL];
| Parameters | |
|---|---|
| Name | Description |
index |
intThe index to set the value at. |
value |
StringThe databaseRoles to set. |
| Returns | |
|---|---|
| Type | Description |
User.Builder |
This builder for chaining. |
setDualPasswordType(User.DualPasswordType value)
public User.Builder setDualPasswordType(User.DualPasswordType value)Dual password status for the user.
optional .google.cloud.sql.v1.User.DualPasswordType dual_password_type = 13;
| Parameter | |
|---|---|
| Name | Description |
value |
User.DualPasswordTypeThe dualPasswordType to set. |
| Returns | |
|---|---|
| Type | Description |
User.Builder |
This builder for chaining. |
setDualPasswordTypeValue(int value)
public User.Builder setDualPasswordTypeValue(int value)Dual password status for the user.
optional .google.cloud.sql.v1.User.DualPasswordType dual_password_type = 13;
| Parameter | |
|---|---|
| Name | Description |
value |
intThe enum numeric value on the wire for dualPasswordType to set. |
| Returns | |
|---|---|
| Type | Description |
User.Builder |
This builder for chaining. |
setEtag(String value)
public User.Builder setEtag(String value)This field is deprecated and will be removed from a future version of the API.
string etag = 3;
| Parameter | |
|---|---|
| Name | Description |
value |
StringThe etag to set. |
| Returns | |
|---|---|
| Type | Description |
User.Builder |
This builder for chaining. |
setEtagBytes(ByteString value)
public User.Builder setEtagBytes(ByteString value)This field is deprecated and will be removed from a future version of the API.
string etag = 3;
| Parameter | |
|---|---|
| Name | Description |
value |
ByteStringThe bytes for etag to set. |
| Returns | |
|---|---|
| Type | Description |
User.Builder |
This builder for chaining. |
setHost(String value)
public User.Builder setHost(String value) 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];
| Parameter | |
|---|---|
| Name | Description |
value |
StringThe host to set. |
| Returns | |
|---|---|
| Type | Description |
User.Builder |
This builder for chaining. |
setHostBytes(ByteString value)
public User.Builder setHostBytes(ByteString value) 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];
| Parameter | |
|---|---|
| Name | Description |
value |
ByteStringThe bytes for host to set. |
| Returns | |
|---|---|
| Type | Description |
User.Builder |
This builder for chaining. |
setIamEmail(String value)
public User.Builder setIamEmail(String value)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];
| Parameter | |
|---|---|
| Name | Description |
value |
StringThe iamEmail to set. |
| Returns | |
|---|---|
| Type | Description |
User.Builder |
This builder for chaining. |
setIamEmailBytes(ByteString value)
public User.Builder setIamEmailBytes(ByteString value)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];
| Parameter | |
|---|---|
| Name | Description |
value |
ByteStringThe bytes for iamEmail to set. |
| Returns | |
|---|---|
| Type | Description |
User.Builder |
This builder for chaining. |
setIamStatus(User.IamStatus value)
public User.Builder setIamStatus(User.IamStatus value)Indicates if a group is active or inactive for IAM database authentication.
optional .google.cloud.sql.v1.User.IamStatus iam_status = 14;
| Parameter | |
|---|---|
| Name | Description |
value |
User.IamStatusThe iamStatus to set. |
| Returns | |
|---|---|
| Type | Description |
User.Builder |
This builder for chaining. |
setIamStatusValue(int value)
public User.Builder setIamStatusValue(int value)Indicates if a group is active or inactive for IAM database authentication.
optional .google.cloud.sql.v1.User.IamStatus iam_status = 14;
| Parameter | |
|---|---|
| Name | Description |
value |
intThe enum numeric value on the wire for iamStatus to set. |
| Returns | |
|---|---|
| Type | Description |
User.Builder |
This builder for chaining. |
setInstance(String value)
public User.Builder setInstance(String value) The name of the Cloud SQL instance. This does not include the project ID.
Can be omitted for update because it is already specified on the
URL.
string instance = 6;
| Parameter | |
|---|---|
| Name | Description |
value |
StringThe instance to set. |
| Returns | |
|---|---|
| Type | Description |
User.Builder |
This builder for chaining. |
setInstanceBytes(ByteString value)
public User.Builder setInstanceBytes(ByteString value) The name of the Cloud SQL instance. This does not include the project ID.
Can be omitted for update because it is already specified on the
URL.
string instance = 6;
| Parameter | |
|---|---|
| Name | Description |
value |
ByteStringThe bytes for instance to set. |
| Returns | |
|---|---|
| Type | Description |
User.Builder |
This builder for chaining. |
setKind(String value)
public User.Builder setKind(String value) This is always sql#user.
string kind = 1;
| Parameter | |
|---|---|
| Name | Description |
value |
StringThe kind to set. |
| Returns | |
|---|---|
| Type | Description |
User.Builder |
This builder for chaining. |
setKindBytes(ByteString value)
public User.Builder setKindBytes(ByteString value) This is always sql#user.
string kind = 1;
| Parameter | |
|---|---|
| Name | Description |
value |
ByteStringThe bytes for kind to set. |
| Returns | |
|---|---|
| Type | Description |
User.Builder |
This builder for chaining. |
setName(String value)
public User.Builder setName(String value) 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;
| Parameter | |
|---|---|
| Name | Description |
value |
StringThe name to set. |
| Returns | |
|---|---|
| Type | Description |
User.Builder |
This builder for chaining. |
setNameBytes(ByteString value)
public User.Builder setNameBytes(ByteString value) 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;
| Parameter | |
|---|---|
| Name | Description |
value |
ByteStringThe bytes for name to set. |
| Returns | |
|---|---|
| Type | Description |
User.Builder |
This builder for chaining. |
setPassword(String value)
public User.Builder setPassword(String value)The password for the user.
string password = 2;
| Parameter | |
|---|---|
| Name | Description |
value |
StringThe password to set. |
| Returns | |
|---|---|
| Type | Description |
User.Builder |
This builder for chaining. |
setPasswordBytes(ByteString value)
public User.Builder setPasswordBytes(ByteString value)The password for the user.
string password = 2;
| Parameter | |
|---|---|
| Name | Description |
value |
ByteStringThe bytes for password to set. |
| Returns | |
|---|---|
| Type | Description |
User.Builder |
This builder for chaining. |
setPasswordPolicy(UserPasswordValidationPolicy value)
public User.Builder setPasswordPolicy(UserPasswordValidationPolicy value)User level password validation policy.
.google.cloud.sql.v1.UserPasswordValidationPolicy password_policy = 12;
| Parameter | |
|---|---|
| Name | Description |
value |
UserPasswordValidationPolicy |
| Returns | |
|---|---|
| Type | Description |
User.Builder |
|
setPasswordPolicy(UserPasswordValidationPolicy.Builder builderForValue)
public User.Builder setPasswordPolicy(UserPasswordValidationPolicy.Builder builderForValue)User level password validation policy.
.google.cloud.sql.v1.UserPasswordValidationPolicy password_policy = 12;
| Parameter | |
|---|---|
| Name | Description |
builderForValue |
UserPasswordValidationPolicy.Builder |
| Returns | |
|---|---|
| Type | Description |
User.Builder |
|
setProject(String value)
public User.Builder setProject(String value) The project ID of the project containing the Cloud SQL database. The Google
apps domain is prefixed if applicable. Can be omitted for update because
it is already specified on the URL.
string project = 7;
| Parameter | |
|---|---|
| Name | Description |
value |
StringThe project to set. |
| Returns | |
|---|---|
| Type | Description |
User.Builder |
This builder for chaining. |
setProjectBytes(ByteString value)
public User.Builder setProjectBytes(ByteString value) The project ID of the project containing the Cloud SQL database. The Google
apps domain is prefixed if applicable. Can be omitted for update because
it is already specified on the URL.
string project = 7;
| Parameter | |
|---|---|
| Name | Description |
value |
ByteStringThe bytes for project to set. |
| Returns | |
|---|---|
| Type | Description |
User.Builder |
This builder for chaining. |
setServerRoles(int index, String value)
public User.Builder setServerRoles(int index, String value)Optional. The server roles for the SQL Server login.
repeated string server_roles = 16 [(.google.api.field_behavior) = OPTIONAL];
| Parameters | |
|---|---|
| Name | Description |
index |
intThe index to set the value at. |
value |
StringThe serverRoles to set. |
| Returns | |
|---|---|
| Type | Description |
User.Builder |
This builder for chaining. |
setSqlserverUserDetails(SqlServerUserDetails value)
public User.Builder setSqlserverUserDetails(SqlServerUserDetails value).google.cloud.sql.v1.SqlServerUserDetails sqlserver_user_details = 9;
| Parameter | |
|---|---|
| Name | Description |
value |
SqlServerUserDetails |
| Returns | |
|---|---|
| Type | Description |
User.Builder |
|
setSqlserverUserDetails(SqlServerUserDetails.Builder builderForValue)
public User.Builder setSqlserverUserDetails(SqlServerUserDetails.Builder builderForValue).google.cloud.sql.v1.SqlServerUserDetails sqlserver_user_details = 9;
| Parameter | |
|---|---|
| Name | Description |
builderForValue |
SqlServerUserDetails.Builder |
| Returns | |
|---|---|
| Type | Description |
User.Builder |
|
setType(User.SqlUserType value)
public User.Builder setType(User.SqlUserType value)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.v1.User.SqlUserType type = 8;
| Parameter | |
|---|---|
| Name | Description |
value |
User.SqlUserTypeThe type to set. |
| Returns | |
|---|---|
| Type | Description |
User.Builder |
This builder for chaining. |
setTypeValue(int value)
public User.Builder setTypeValue(int value)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.v1.User.SqlUserType type = 8;
| Parameter | |
|---|---|
| Name | Description |
value |
intThe enum numeric value on the wire for type to set. |
| Returns | |
|---|---|
| Type | Description |
User.Builder |
This builder for chaining. |