public static final class UserPassword.Builder extends GeneratedMessageV3.Builder<UserPassword.Builder> implements UserPasswordOrBuilder
The username/password for a database user. Used for specifying initial
users at cluster creation time.
Protobuf type google.cloud.alloydb.v1alpha.UserPassword
Inherited Members
com.google.protobuf.GeneratedMessageV3.Builder.getUnknownFieldSetBuilder()
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownLengthDelimitedField(int,com.google.protobuf.ByteString)
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownVarintField(int,int)
com.google.protobuf.GeneratedMessageV3.Builder.parseUnknownField(com.google.protobuf.CodedInputStream,com.google.protobuf.ExtensionRegistryLite,int)
com.google.protobuf.GeneratedMessageV3.Builder.setUnknownFieldSetBuilder(com.google.protobuf.UnknownFieldSet.Builder)
Static Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Returns
Methods
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public UserPassword.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Returns
Overrides
build()
public UserPassword build()
Returns
buildPartial()
public UserPassword buildPartial()
Returns
clear()
public UserPassword.Builder clear()
Returns
Overrides
clearField(Descriptors.FieldDescriptor field)
public UserPassword.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Returns
Overrides
clearOneof(Descriptors.OneofDescriptor oneof)
public UserPassword.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Returns
Overrides
clearPassword()
public UserPassword.Builder clearPassword()
The initial password for the user.
string password = 2;
Returns
clearUser()
public UserPassword.Builder clearUser()
The database username.
string user = 1;
Returns
clone()
public UserPassword.Builder clone()
Returns
Overrides
getDefaultInstanceForType()
public UserPassword getDefaultInstanceForType()
Returns
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
Returns
Overrides
getPassword()
public String getPassword()
The initial password for the user.
string password = 2;
Returns
Type |
Description |
String |
The password.
|
getPasswordBytes()
public ByteString getPasswordBytes()
The initial password for the user.
string password = 2;
Returns
Type |
Description |
ByteString |
The bytes for password.
|
getUser()
The database username.
string user = 1;
Returns
Type |
Description |
String |
The user.
|
getUserBytes()
public ByteString getUserBytes()
The database username.
string user = 1;
Returns
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Overrides
isInitialized()
public final boolean isInitialized()
Returns
Overrides
mergeFrom(UserPassword other)
public UserPassword.Builder mergeFrom(UserPassword other)
Parameter
Returns
public UserPassword.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Overrides
Exceptions
mergeFrom(Message other)
public UserPassword.Builder mergeFrom(Message other)
Parameter
Returns
Overrides
mergeUnknownFields(UnknownFieldSet unknownFields)
public final UserPassword.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Returns
Overrides
setField(Descriptors.FieldDescriptor field, Object value)
public UserPassword.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Returns
Overrides
setPassword(String value)
public UserPassword.Builder setPassword(String value)
The initial password for the user.
string password = 2;
Parameter
Name |
Description |
value |
String
The password to set.
|
Returns
setPasswordBytes(ByteString value)
public UserPassword.Builder setPasswordBytes(ByteString value)
The initial password for the user.
string password = 2;
Parameter
Name |
Description |
value |
ByteString
The bytes for password to set.
|
Returns
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public UserPassword.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Returns
Overrides
setUnknownFields(UnknownFieldSet unknownFields)
public final UserPassword.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Returns
Overrides
setUser(String value)
public UserPassword.Builder setUser(String value)
The database username.
string user = 1;
Parameter
Name |
Description |
value |
String
The user to set.
|
Returns
setUserBytes(ByteString value)
public UserPassword.Builder setUserBytes(ByteString value)
The database username.
string user = 1;
Parameter
Name |
Description |
value |
ByteString
The bytes for user to set.
|
Returns