public static final class User.Builder extends com.google.protobuf.GeneratedMessage.Builder<User.Builder> implements UserOrBuilder
Message describing User object.Protobuf type
google.cloud.alloydb.v1beta.User| Modifier and Type | Method and Description |
|---|---|
User.Builder |
addAllDatabaseRoles(Iterable<String> values)
Optional.
|
User.Builder |
addDatabaseRoles(String value)
Optional.
|
User.Builder |
addDatabaseRolesBytes(com.google.protobuf.ByteString value)
Optional.
|
User |
build() |
User |
buildPartial() |
User.Builder |
clear() |
User.Builder |
clearDatabaseRoles()
Optional.
|
User.Builder |
clearKeepExtraRoles()
Input only.
|
User.Builder |
clearName()
Output only.
|
User.Builder |
clearPassword()
Input only.
|
User.Builder |
clearUserType()
Optional.
|
String |
getDatabaseRoles(int index)
Optional.
|
com.google.protobuf.ByteString |
getDatabaseRolesBytes(int index)
Optional.
|
int |
getDatabaseRolesCount()
Optional.
|
com.google.protobuf.ProtocolStringList |
getDatabaseRolesList()
Optional.
|
User |
getDefaultInstanceForType() |
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
com.google.protobuf.Descriptors.Descriptor |
getDescriptorForType() |
boolean |
getKeepExtraRoles()
Input only.
|
String |
getName()
Output only.
|
com.google.protobuf.ByteString |
getNameBytes()
Output only.
|
String |
getPassword()
Input only.
|
com.google.protobuf.ByteString |
getPasswordBytes()
Input only.
|
User.UserType |
getUserType()
Optional.
|
int |
getUserTypeValue()
Optional.
|
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable |
internalGetFieldAccessorTable() |
boolean |
isInitialized() |
User.Builder |
mergeFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
User.Builder |
mergeFrom(com.google.protobuf.Message other) |
User.Builder |
mergeFrom(User other) |
User.Builder |
setDatabaseRoles(int index,
String value)
Optional.
|
User.Builder |
setKeepExtraRoles(boolean value)
Input only.
|
User.Builder |
setName(String value)
Output only.
|
User.Builder |
setNameBytes(com.google.protobuf.ByteString value)
Output only.
|
User.Builder |
setPassword(String value)
Input only.
|
User.Builder |
setPasswordBytes(com.google.protobuf.ByteString value)
Input only.
|
User.Builder |
setUserType(User.UserType value)
Optional.
|
User.Builder |
setUserTypeValue(int value)
Optional.
|
addRepeatedField, clearField, clearOneof, clone, getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownFields, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setField, setRepeatedField, setUnknownFields, setUnknownFieldSetBuilder, setUnknownFieldsProto3findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringaddAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageExceptionequals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitfindInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneofpublic static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessage.Builder<User.Builder>public User.Builder clear()
clear in interface com.google.protobuf.Message.Builderclear in interface com.google.protobuf.MessageLite.Builderclear in class com.google.protobuf.GeneratedMessage.Builder<User.Builder>public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
getDescriptorForType in interface com.google.protobuf.Message.BuildergetDescriptorForType in interface com.google.protobuf.MessageOrBuildergetDescriptorForType in class com.google.protobuf.GeneratedMessage.Builder<User.Builder>public User getDefaultInstanceForType()
getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilderpublic User build()
build in interface com.google.protobuf.Message.Builderbuild in interface com.google.protobuf.MessageLite.Builderpublic User buildPartial()
buildPartial in interface com.google.protobuf.Message.BuilderbuildPartial in interface com.google.protobuf.MessageLite.Builderpublic User.Builder mergeFrom(com.google.protobuf.Message other)
mergeFrom in interface com.google.protobuf.Message.BuildermergeFrom in class com.google.protobuf.AbstractMessage.Builder<User.Builder>public User.Builder mergeFrom(User other)
public final boolean isInitialized()
isInitialized in interface com.google.protobuf.MessageLiteOrBuilderisInitialized in class com.google.protobuf.GeneratedMessage.Builder<User.Builder>public User.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
mergeFrom in interface com.google.protobuf.Message.BuildermergeFrom in interface com.google.protobuf.MessageLite.BuildermergeFrom in class com.google.protobuf.AbstractMessage.Builder<User.Builder>IOExceptionpublic String getName()
Output only. Name of the resource in the form of
projects/{project}/locations/{location}/cluster/{cluster}/users/{user}.
string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];getName in interface UserOrBuilderpublic com.google.protobuf.ByteString getNameBytes()
Output only. Name of the resource in the form of
projects/{project}/locations/{location}/cluster/{cluster}/users/{user}.
string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];getNameBytes in interface UserOrBuilderpublic User.Builder setName(String value)
Output only. Name of the resource in the form of
projects/{project}/locations/{location}/cluster/{cluster}/users/{user}.
string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];value - The name to set.public User.Builder clearName()
Output only. Name of the resource in the form of
projects/{project}/locations/{location}/cluster/{cluster}/users/{user}.
string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];public User.Builder setNameBytes(com.google.protobuf.ByteString value)
Output only. Name of the resource in the form of
projects/{project}/locations/{location}/cluster/{cluster}/users/{user}.
string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];value - The bytes for name to set.public String getPassword()
Input only. Password for the user.
string password = 2 [(.google.api.field_behavior) = INPUT_ONLY];getPassword in interface UserOrBuilderpublic com.google.protobuf.ByteString getPasswordBytes()
Input only. Password for the user.
string password = 2 [(.google.api.field_behavior) = INPUT_ONLY];getPasswordBytes in interface UserOrBuilderpublic User.Builder setPassword(String value)
Input only. Password for the user.
string password = 2 [(.google.api.field_behavior) = INPUT_ONLY];value - The password to set.public User.Builder clearPassword()
Input only. Password for the user.
string password = 2 [(.google.api.field_behavior) = INPUT_ONLY];public User.Builder setPasswordBytes(com.google.protobuf.ByteString value)
Input only. Password for the user.
string password = 2 [(.google.api.field_behavior) = INPUT_ONLY];value - The bytes for password to set.public com.google.protobuf.ProtocolStringList getDatabaseRolesList()
Optional. List of database roles this user has. The database role strings are subject to the PostgreSQL naming conventions.
repeated string database_roles = 4 [(.google.api.field_behavior) = OPTIONAL];getDatabaseRolesList in interface UserOrBuilderpublic int getDatabaseRolesCount()
Optional. List of database roles this user has. The database role strings are subject to the PostgreSQL naming conventions.
repeated string database_roles = 4 [(.google.api.field_behavior) = OPTIONAL];getDatabaseRolesCount in interface UserOrBuilderpublic String getDatabaseRoles(int index)
Optional. List of database roles this user has. The database role strings are subject to the PostgreSQL naming conventions.
repeated string database_roles = 4 [(.google.api.field_behavior) = OPTIONAL];getDatabaseRoles in interface UserOrBuilderindex - The index of the element to return.public com.google.protobuf.ByteString getDatabaseRolesBytes(int index)
Optional. List of database roles this user has. The database role strings are subject to the PostgreSQL naming conventions.
repeated string database_roles = 4 [(.google.api.field_behavior) = OPTIONAL];getDatabaseRolesBytes in interface UserOrBuilderindex - The index of the value to return.public User.Builder setDatabaseRoles(int index, String value)
Optional. List of database roles this user has. The database role strings are subject to the PostgreSQL naming conventions.
repeated string database_roles = 4 [(.google.api.field_behavior) = OPTIONAL];index - The index to set the value at.value - The databaseRoles to set.public User.Builder addDatabaseRoles(String value)
Optional. List of database roles this user has. The database role strings are subject to the PostgreSQL naming conventions.
repeated string database_roles = 4 [(.google.api.field_behavior) = OPTIONAL];value - The databaseRoles to add.public User.Builder addAllDatabaseRoles(Iterable<String> values)
Optional. List of database roles this user has. The database role strings are subject to the PostgreSQL naming conventions.
repeated string database_roles = 4 [(.google.api.field_behavior) = OPTIONAL];values - The databaseRoles to add.public User.Builder clearDatabaseRoles()
Optional. List of database roles this user has. The database role strings are subject to the PostgreSQL naming conventions.
repeated string database_roles = 4 [(.google.api.field_behavior) = OPTIONAL];public User.Builder addDatabaseRolesBytes(com.google.protobuf.ByteString value)
Optional. List of database roles this user has. The database role strings are subject to the PostgreSQL naming conventions.
repeated string database_roles = 4 [(.google.api.field_behavior) = OPTIONAL];value - The bytes of the databaseRoles to add.public int getUserTypeValue()
Optional. Type of this user.
.google.cloud.alloydb.v1beta.User.UserType user_type = 5 [(.google.api.field_behavior) = OPTIONAL];
getUserTypeValue in interface UserOrBuilderpublic User.Builder setUserTypeValue(int value)
Optional. Type of this user.
.google.cloud.alloydb.v1beta.User.UserType user_type = 5 [(.google.api.field_behavior) = OPTIONAL];
value - The enum numeric value on the wire for userType to set.public User.UserType getUserType()
Optional. Type of this user.
.google.cloud.alloydb.v1beta.User.UserType user_type = 5 [(.google.api.field_behavior) = OPTIONAL];
getUserType in interface UserOrBuilderpublic User.Builder setUserType(User.UserType value)
Optional. Type of this user.
.google.cloud.alloydb.v1beta.User.UserType user_type = 5 [(.google.api.field_behavior) = OPTIONAL];
value - The userType to set.public User.Builder clearUserType()
Optional. Type of this user.
.google.cloud.alloydb.v1beta.User.UserType user_type = 5 [(.google.api.field_behavior) = OPTIONAL];
public boolean getKeepExtraRoles()
Input only. If the user already exists and it has additional roles, keep them granted.
bool keep_extra_roles = 6 [(.google.api.field_behavior) = INPUT_ONLY];getKeepExtraRoles in interface UserOrBuilderpublic User.Builder setKeepExtraRoles(boolean value)
Input only. If the user already exists and it has additional roles, keep them granted.
bool keep_extra_roles = 6 [(.google.api.field_behavior) = INPUT_ONLY];value - The keepExtraRoles to set.public User.Builder clearKeepExtraRoles()
Input only. If the user already exists and it has additional roles, keep them granted.
bool keep_extra_roles = 6 [(.google.api.field_behavior) = INPUT_ONLY];Copyright © 2026 Google LLC. All rights reserved.