Class ConnectionProto.CloudSqlCredential.Builder (2.11.0)

public static final class ConnectionProto.CloudSqlCredential.Builder extends GeneratedMessageV3.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
TypeDescription
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public ConnectionProto.CloudSqlCredential build()
Returns
TypeDescription
ConnectionProto.CloudSqlCredential

buildPartial()

public ConnectionProto.CloudSqlCredential buildPartial()
Returns
TypeDescription
ConnectionProto.CloudSqlCredential

clear()

public ConnectionProto.CloudSqlCredential.Builder clear()
Returns
TypeDescription
ConnectionProto.CloudSqlCredential.Builder
Overrides

clearField(Descriptors.FieldDescriptor field)

public ConnectionProto.CloudSqlCredential.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
ConnectionProto.CloudSqlCredential.Builder
Overrides

clearOneof(Descriptors.OneofDescriptor oneof)

public ConnectionProto.CloudSqlCredential.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
ConnectionProto.CloudSqlCredential.Builder
Overrides

clearPassword()

public ConnectionProto.CloudSqlCredential.Builder clearPassword()

The password for the credential.

string password = 2;

Returns
TypeDescription
ConnectionProto.CloudSqlCredential.Builder

This builder for chaining.

clearUsername()

public ConnectionProto.CloudSqlCredential.Builder clearUsername()

The username for the credential.

string username = 1;

Returns
TypeDescription
ConnectionProto.CloudSqlCredential.Builder

This builder for chaining.

clone()

public ConnectionProto.CloudSqlCredential.Builder clone()
Returns
TypeDescription
ConnectionProto.CloudSqlCredential.Builder
Overrides

getDefaultInstanceForType()

public ConnectionProto.CloudSqlCredential getDefaultInstanceForType()
Returns
TypeDescription
ConnectionProto.CloudSqlCredential

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getPassword()

public String getPassword()

The password for the credential.

string password = 2;

Returns
TypeDescription
String

The password.

getPasswordBytes()

public ByteString getPasswordBytes()

The password for the credential.

string password = 2;

Returns
TypeDescription
ByteString

The bytes for password.

getUsername()

public String getUsername()

The username for the credential.

string username = 1;

Returns
TypeDescription
String

The username.

getUsernameBytes()

public ByteString getUsernameBytes()

The username for the credential.

string username = 1;

Returns
TypeDescription
ByteString

The bytes for username.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(ConnectionProto.CloudSqlCredential other)

public ConnectionProto.CloudSqlCredential.Builder mergeFrom(ConnectionProto.CloudSqlCredential other)
Parameter
NameDescription
otherConnectionProto.CloudSqlCredential
Returns
TypeDescription
ConnectionProto.CloudSqlCredential.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

public ConnectionProto.CloudSqlCredential.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
ConnectionProto.CloudSqlCredential.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

public final ConnectionProto.CloudSqlCredential.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
ConnectionProto.CloudSqlCredential.Builder
Overrides

setField(Descriptors.FieldDescriptor field, Object value)

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

setPassword(String value)

public ConnectionProto.CloudSqlCredential.Builder setPassword(String value)

The password for the credential.

string password = 2;

Parameter
NameDescription
valueString

The password to set.

Returns
TypeDescription
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
NameDescription
valueByteString

The bytes for password to set.

Returns
TypeDescription
ConnectionProto.CloudSqlCredential.Builder

This builder for chaining.

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

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

setUnknownFields(UnknownFieldSet unknownFields)

public final ConnectionProto.CloudSqlCredential.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
ConnectionProto.CloudSqlCredential.Builder
Overrides

setUsername(String value)

public ConnectionProto.CloudSqlCredential.Builder setUsername(String value)

The username for the credential.

string username = 1;

Parameter
NameDescription
valueString

The username to set.

Returns
TypeDescription
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
NameDescription
valueByteString

The bytes for username to set.

Returns
TypeDescription
ConnectionProto.CloudSqlCredential.Builder

This builder for chaining.