Class AlloyDbSettings.UserPassword.Builder (2.20.0)

public static final class AlloyDbSettings.UserPassword.Builder extends GeneratedMessageV3.Builder<AlloyDbSettings.UserPassword.Builder> implements AlloyDbSettings.UserPasswordOrBuilder

The username/password for a database user. Used for specifying initial users at cluster creation time.

Protobuf type google.cloud.clouddms.v1.AlloyDbSettings.UserPassword

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
TypeDescription
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public AlloyDbSettings.UserPassword.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
AlloyDbSettings.UserPassword.Builder
Overrides

build()

public AlloyDbSettings.UserPassword build()
Returns
TypeDescription
AlloyDbSettings.UserPassword

buildPartial()

public AlloyDbSettings.UserPassword buildPartial()
Returns
TypeDescription
AlloyDbSettings.UserPassword

clear()

public AlloyDbSettings.UserPassword.Builder clear()
Returns
TypeDescription
AlloyDbSettings.UserPassword.Builder
Overrides

clearField(Descriptors.FieldDescriptor field)

public AlloyDbSettings.UserPassword.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
AlloyDbSettings.UserPassword.Builder
Overrides

clearOneof(Descriptors.OneofDescriptor oneof)

public AlloyDbSettings.UserPassword.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
AlloyDbSettings.UserPassword.Builder
Overrides

clearPassword()

public AlloyDbSettings.UserPassword.Builder clearPassword()

The initial password for the user.

string password = 2;

Returns
TypeDescription
AlloyDbSettings.UserPassword.Builder

This builder for chaining.

clearPasswordSet()

public AlloyDbSettings.UserPassword.Builder clearPasswordSet()

Output only. Indicates if the initial_user.password field has been set.

bool password_set = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
AlloyDbSettings.UserPassword.Builder

This builder for chaining.

clearUser()

public AlloyDbSettings.UserPassword.Builder clearUser()

The database username.

string user = 1;

Returns
TypeDescription
AlloyDbSettings.UserPassword.Builder

This builder for chaining.

clone()

public AlloyDbSettings.UserPassword.Builder clone()
Returns
TypeDescription
AlloyDbSettings.UserPassword.Builder
Overrides

getDefaultInstanceForType()

public AlloyDbSettings.UserPassword getDefaultInstanceForType()
Returns
TypeDescription
AlloyDbSettings.UserPassword

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getPassword()

public String getPassword()

The initial password for the user.

string password = 2;

Returns
TypeDescription
String

The password.

getPasswordBytes()

public ByteString getPasswordBytes()

The initial password for the user.

string password = 2;

Returns
TypeDescription
ByteString

The bytes for password.

getPasswordSet()

public boolean getPasswordSet()

Output only. Indicates if the initial_user.password field has been set.

bool password_set = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
boolean

The passwordSet.

getUser()

public String getUser()

The database username.

string user = 1;

Returns
TypeDescription
String

The user.

getUserBytes()

public ByteString getUserBytes()

The database username.

string user = 1;

Returns
TypeDescription
ByteString

The bytes for user.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(AlloyDbSettings.UserPassword other)

public AlloyDbSettings.UserPassword.Builder mergeFrom(AlloyDbSettings.UserPassword other)
Parameter
NameDescription
otherAlloyDbSettings.UserPassword
Returns
TypeDescription
AlloyDbSettings.UserPassword.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public AlloyDbSettings.UserPassword.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
AlloyDbSettings.UserPassword.Builder
Overrides
Exceptions
TypeDescription
IOException

mergeFrom(Message other)

public AlloyDbSettings.UserPassword.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
AlloyDbSettings.UserPassword.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

public final AlloyDbSettings.UserPassword.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
AlloyDbSettings.UserPassword.Builder
Overrides

setField(Descriptors.FieldDescriptor field, Object value)

public AlloyDbSettings.UserPassword.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
AlloyDbSettings.UserPassword.Builder
Overrides

setPassword(String value)

public AlloyDbSettings.UserPassword.Builder setPassword(String value)

The initial password for the user.

string password = 2;

Parameter
NameDescription
valueString

The password to set.

Returns
TypeDescription
AlloyDbSettings.UserPassword.Builder

This builder for chaining.

setPasswordBytes(ByteString value)

public AlloyDbSettings.UserPassword.Builder setPasswordBytes(ByteString value)

The initial password for the user.

string password = 2;

Parameter
NameDescription
valueByteString

The bytes for password to set.

Returns
TypeDescription
AlloyDbSettings.UserPassword.Builder

This builder for chaining.

setPasswordSet(boolean value)

public AlloyDbSettings.UserPassword.Builder setPasswordSet(boolean value)

Output only. Indicates if the initial_user.password field has been set.

bool password_set = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
NameDescription
valueboolean

The passwordSet to set.

Returns
TypeDescription
AlloyDbSettings.UserPassword.Builder

This builder for chaining.

setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)

public AlloyDbSettings.UserPassword.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
AlloyDbSettings.UserPassword.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

public final AlloyDbSettings.UserPassword.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
AlloyDbSettings.UserPassword.Builder
Overrides

setUser(String value)

public AlloyDbSettings.UserPassword.Builder setUser(String value)

The database username.

string user = 1;

Parameter
NameDescription
valueString

The user to set.

Returns
TypeDescription
AlloyDbSettings.UserPassword.Builder

This builder for chaining.

setUserBytes(ByteString value)

public AlloyDbSettings.UserPassword.Builder setUserBytes(ByteString value)

The database username.

string user = 1;

Parameter
NameDescription
valueByteString

The bytes for user to set.

Returns
TypeDescription
AlloyDbSettings.UserPassword.Builder

This builder for chaining.