public static final class User.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<User.Builder> implements UserOrBuilder
Message describing User object.Protobuf type
google.cloud.alloydb.v1.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.Builder |
addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) |
User |
build() |
User |
buildPartial() |
User.Builder |
clear() |
User.Builder |
clearDatabaseRoles()
Optional.
|
User.Builder |
clearField(com.google.protobuf.Descriptors.FieldDescriptor field) |
User.Builder |
clearKeepExtraRoles()
Input only.
|
User.Builder |
clearName()
Output only.
|
User.Builder |
clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) |
User.Builder |
clearPassword()
Input only.
|
User.Builder |
clearUserType()
Optional.
|
User.Builder |
clone() |
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.GeneratedMessageV3.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 |
mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
User.Builder |
setDatabaseRoles(int index,
String value)
Optional.
|
User.Builder |
setField(com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) |
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 |
setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
int index,
Object value) |
User.Builder |
setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
User.Builder |
setUserType(User.UserType value)
Optional.
|
User.Builder |
setUserTypeValue(int value)
Optional.
|
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setUnknownFieldSetBuilder, setUnknownFieldsProto3findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringaddAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, newUninitializedMessageExceptionequals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitpublic static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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 clone()
clone in interface com.google.protobuf.Message.Builderclone in interface com.google.protobuf.MessageLite.Builderclone in class com.google.protobuf.GeneratedMessageV3.Builder<User.Builder>public User.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
setField in interface com.google.protobuf.Message.BuildersetField in class com.google.protobuf.GeneratedMessageV3.Builder<User.Builder>public User.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
clearField in interface com.google.protobuf.Message.BuilderclearField in class com.google.protobuf.GeneratedMessageV3.Builder<User.Builder>public User.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
clearOneof in interface com.google.protobuf.Message.BuilderclearOneof in class com.google.protobuf.GeneratedMessageV3.Builder<User.Builder>public User.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
setRepeatedField in interface com.google.protobuf.Message.BuildersetRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<User.Builder>public User.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
addRepeatedField in interface com.google.protobuf.Message.BuilderaddRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<User.Builder>public 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.GeneratedMessageV3.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.v1.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.v1.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.v1.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.v1.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.v1.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];public final User.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
setUnknownFields in interface com.google.protobuf.Message.BuildersetUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<User.Builder>public final User.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
mergeUnknownFields in interface com.google.protobuf.Message.BuildermergeUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<User.Builder>Copyright © 2025 Google LLC. All rights reserved.