Class ConnectionProto.CloudSqlCredential.Builder (2.85.0)

public static final class ConnectionProto.CloudSqlCredential.Builder extends GeneratedMessage.Builder<ConnectionProto.CloudSqlCredential.Builder> implements ConnectionProto.CloudSqlCredentialOrBuilder

Credential info for the Cloud SQL.

Protobuf type google.cloud.bigquery.connection.v1beta1.CloudSqlCredential

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
Type Description
Descriptor

Methods

build()

public ConnectionProto.CloudSqlCredential build()
Returns
Type Description
ConnectionProto.CloudSqlCredential

buildPartial()

public ConnectionProto.CloudSqlCredential buildPartial()
Returns
Type Description
ConnectionProto.CloudSqlCredential

clear()

public ConnectionProto.CloudSqlCredential.Builder clear()
Returns
Type Description
ConnectionProto.CloudSqlCredential.Builder
Overrides

clearPassword()

public ConnectionProto.CloudSqlCredential.Builder clearPassword()

The password for the credential.

string password = 2;

Returns
Type Description
ConnectionProto.CloudSqlCredential.Builder

This builder for chaining.

clearUsername()

public ConnectionProto.CloudSqlCredential.Builder clearUsername()

The username for the credential.

string username = 1;

Returns
Type Description
ConnectionProto.CloudSqlCredential.Builder

This builder for chaining.

getDefaultInstanceForType()

public ConnectionProto.CloudSqlCredential getDefaultInstanceForType()
Returns
Type Description
ConnectionProto.CloudSqlCredential

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
Overrides

getPassword()

public String getPassword()

The password for the credential.

string password = 2;

Returns
Type Description
String

The password.

getPasswordBytes()

public ByteString getPasswordBytes()

The password for the credential.

string password = 2;

Returns
Type Description
ByteString

The bytes for password.

getUsername()

public String getUsername()

The username for the credential.

string username = 1;

Returns
Type Description
String

The username.

getUsernameBytes()

public ByteString getUsernameBytes()

The username for the credential.

string username = 1;

Returns
Type Description
ByteString

The bytes for username.

internalGetFieldAccessorTable()

protected GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(ConnectionProto.CloudSqlCredential other)

public ConnectionProto.CloudSqlCredential.Builder mergeFrom(ConnectionProto.CloudSqlCredential other)
Parameter
Name Description
other ConnectionProto.CloudSqlCredential
Returns
Type Description
ConnectionProto.CloudSqlCredential.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public ConnectionProto.CloudSqlCredential.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
ConnectionProto.CloudSqlCredential.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

public ConnectionProto.CloudSqlCredential.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
ConnectionProto.CloudSqlCredential.Builder
Overrides

setPassword(String value)

public ConnectionProto.CloudSqlCredential.Builder setPassword(String value)

The password for the credential.

string password = 2;

Parameter
Name Description
value String

The password to set.

Returns
Type Description
ConnectionProto.CloudSqlCredential.Builder

This builder for chaining.

setPasswordBytes(ByteString value)

public ConnectionProto.CloudSqlCredential.Builder setPasswordBytes(ByteString value)

The password for the credential.

string password = 2;

Parameter
Name Description
value ByteString

The bytes for password to set.

Returns
Type Description
ConnectionProto.CloudSqlCredential.Builder

This builder for chaining.

setUsername(String value)

public ConnectionProto.CloudSqlCredential.Builder setUsername(String value)

The username for the credential.

string username = 1;

Parameter
Name Description
value String

The username to set.

Returns
Type Description
ConnectionProto.CloudSqlCredential.Builder

This builder for chaining.

setUsernameBytes(ByteString value)

public ConnectionProto.CloudSqlCredential.Builder setUsernameBytes(ByteString value)

The username for the credential.

string username = 1;

Parameter
Name Description
value ByteString

The bytes for username to set.

Returns
Type Description
ConnectionProto.CloudSqlCredential.Builder

This builder for chaining.