Class ConnectionProto.CloudSqlProperties.Builder (2.57.0)

public static final class ConnectionProto.CloudSqlProperties.Builder extends GeneratedMessageV3.Builder<ConnectionProto.CloudSqlProperties.Builder> implements ConnectionProto.CloudSqlPropertiesOrBuilder

Connection properties specific to the Cloud SQL.

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

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public ConnectionProto.CloudSqlProperties.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
ConnectionProto.CloudSqlProperties.Builder
Overrides

build()

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

buildPartial()

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

clear()

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

clearCredential()

public ConnectionProto.CloudSqlProperties.Builder clearCredential()

Input only. Cloud SQL credential.

.google.cloud.bigquery.connection.v1beta1.CloudSqlCredential credential = 4 [(.google.api.field_behavior) = INPUT_ONLY];

Returns
Type Description
ConnectionProto.CloudSqlProperties.Builder

clearDatabase()

public ConnectionProto.CloudSqlProperties.Builder clearDatabase()

Database name.

string database = 2;

Returns
Type Description
ConnectionProto.CloudSqlProperties.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

public ConnectionProto.CloudSqlProperties.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
ConnectionProto.CloudSqlProperties.Builder
Overrides

clearInstanceId()

public ConnectionProto.CloudSqlProperties.Builder clearInstanceId()

Cloud SQL instance ID in the form project:location:instance.

string instance_id = 1;

Returns
Type Description
ConnectionProto.CloudSqlProperties.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

public ConnectionProto.CloudSqlProperties.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
ConnectionProto.CloudSqlProperties.Builder
Overrides

clearServiceAccountId()

public ConnectionProto.CloudSqlProperties.Builder clearServiceAccountId()

Output only. The account ID of the service used for the purpose of this connection.

When the connection is used in the context of an operation in BigQuery, this service account will serve as the identity being used for connecting to the CloudSQL instance specified in this connection.

string service_account_id = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
ConnectionProto.CloudSqlProperties.Builder

This builder for chaining.

clearType()

public ConnectionProto.CloudSqlProperties.Builder clearType()

Type of the Cloud SQL database.

.google.cloud.bigquery.connection.v1beta1.CloudSqlProperties.DatabaseType type = 3;

Returns
Type Description
ConnectionProto.CloudSqlProperties.Builder

This builder for chaining.

clone()

public ConnectionProto.CloudSqlProperties.Builder clone()
Returns
Type Description
ConnectionProto.CloudSqlProperties.Builder
Overrides

getCredential()

public ConnectionProto.CloudSqlCredential getCredential()

Input only. Cloud SQL credential.

.google.cloud.bigquery.connection.v1beta1.CloudSqlCredential credential = 4 [(.google.api.field_behavior) = INPUT_ONLY];

Returns
Type Description
ConnectionProto.CloudSqlCredential

The credential.

getCredentialBuilder()

public ConnectionProto.CloudSqlCredential.Builder getCredentialBuilder()

Input only. Cloud SQL credential.

.google.cloud.bigquery.connection.v1beta1.CloudSqlCredential credential = 4 [(.google.api.field_behavior) = INPUT_ONLY];

Returns
Type Description
ConnectionProto.CloudSqlCredential.Builder

getCredentialOrBuilder()

public ConnectionProto.CloudSqlCredentialOrBuilder getCredentialOrBuilder()

Input only. Cloud SQL credential.

.google.cloud.bigquery.connection.v1beta1.CloudSqlCredential credential = 4 [(.google.api.field_behavior) = INPUT_ONLY];

Returns
Type Description
ConnectionProto.CloudSqlCredentialOrBuilder

getDatabase()

public String getDatabase()

Database name.

string database = 2;

Returns
Type Description
String

The database.

getDatabaseBytes()

public ByteString getDatabaseBytes()

Database name.

string database = 2;

Returns
Type Description
ByteString

The bytes for database.

getDefaultInstanceForType()

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

getDescriptorForType()

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

getInstanceId()

public String getInstanceId()

Cloud SQL instance ID in the form project:location:instance.

string instance_id = 1;

Returns
Type Description
String

The instanceId.

getInstanceIdBytes()

public ByteString getInstanceIdBytes()

Cloud SQL instance ID in the form project:location:instance.

string instance_id = 1;

Returns
Type Description
ByteString

The bytes for instanceId.

getServiceAccountId()

public String getServiceAccountId()

Output only. The account ID of the service used for the purpose of this connection.

When the connection is used in the context of an operation in BigQuery, this service account will serve as the identity being used for connecting to the CloudSQL instance specified in this connection.

string service_account_id = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
String

The serviceAccountId.

getServiceAccountIdBytes()

public ByteString getServiceAccountIdBytes()

Output only. The account ID of the service used for the purpose of this connection.

When the connection is used in the context of an operation in BigQuery, this service account will serve as the identity being used for connecting to the CloudSQL instance specified in this connection.

string service_account_id = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
ByteString

The bytes for serviceAccountId.

getType()

public ConnectionProto.CloudSqlProperties.DatabaseType getType()

Type of the Cloud SQL database.

.google.cloud.bigquery.connection.v1beta1.CloudSqlProperties.DatabaseType type = 3;

Returns
Type Description
ConnectionProto.CloudSqlProperties.DatabaseType

The type.

getTypeValue()

public int getTypeValue()

Type of the Cloud SQL database.

.google.cloud.bigquery.connection.v1beta1.CloudSqlProperties.DatabaseType type = 3;

Returns
Type Description
int

The enum numeric value on the wire for type.

hasCredential()

public boolean hasCredential()

Input only. Cloud SQL credential.

.google.cloud.bigquery.connection.v1beta1.CloudSqlCredential credential = 4 [(.google.api.field_behavior) = INPUT_ONLY];

Returns
Type Description
boolean

Whether the credential field is set.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeCredential(ConnectionProto.CloudSqlCredential value)

public ConnectionProto.CloudSqlProperties.Builder mergeCredential(ConnectionProto.CloudSqlCredential value)

Input only. Cloud SQL credential.

.google.cloud.bigquery.connection.v1beta1.CloudSqlCredential credential = 4 [(.google.api.field_behavior) = INPUT_ONLY];

Parameter
Name Description
value ConnectionProto.CloudSqlCredential
Returns
Type Description
ConnectionProto.CloudSqlProperties.Builder

mergeFrom(ConnectionProto.CloudSqlProperties other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

public final ConnectionProto.CloudSqlProperties.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
ConnectionProto.CloudSqlProperties.Builder
Overrides

setCredential(ConnectionProto.CloudSqlCredential value)

public ConnectionProto.CloudSqlProperties.Builder setCredential(ConnectionProto.CloudSqlCredential value)

Input only. Cloud SQL credential.

.google.cloud.bigquery.connection.v1beta1.CloudSqlCredential credential = 4 [(.google.api.field_behavior) = INPUT_ONLY];

Parameter
Name Description
value ConnectionProto.CloudSqlCredential
Returns
Type Description
ConnectionProto.CloudSqlProperties.Builder

setCredential(ConnectionProto.CloudSqlCredential.Builder builderForValue)

public ConnectionProto.CloudSqlProperties.Builder setCredential(ConnectionProto.CloudSqlCredential.Builder builderForValue)

Input only. Cloud SQL credential.

.google.cloud.bigquery.connection.v1beta1.CloudSqlCredential credential = 4 [(.google.api.field_behavior) = INPUT_ONLY];

Parameter
Name Description
builderForValue ConnectionProto.CloudSqlCredential.Builder
Returns
Type Description
ConnectionProto.CloudSqlProperties.Builder

setDatabase(String value)

public ConnectionProto.CloudSqlProperties.Builder setDatabase(String value)

Database name.

string database = 2;

Parameter
Name Description
value String

The database to set.

Returns
Type Description
ConnectionProto.CloudSqlProperties.Builder

This builder for chaining.

setDatabaseBytes(ByteString value)

public ConnectionProto.CloudSqlProperties.Builder setDatabaseBytes(ByteString value)

Database name.

string database = 2;

Parameter
Name Description
value ByteString

The bytes for database to set.

Returns
Type Description
ConnectionProto.CloudSqlProperties.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

public ConnectionProto.CloudSqlProperties.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
ConnectionProto.CloudSqlProperties.Builder
Overrides

setInstanceId(String value)

public ConnectionProto.CloudSqlProperties.Builder setInstanceId(String value)

Cloud SQL instance ID in the form project:location:instance.

string instance_id = 1;

Parameter
Name Description
value String

The instanceId to set.

Returns
Type Description
ConnectionProto.CloudSqlProperties.Builder

This builder for chaining.

setInstanceIdBytes(ByteString value)

public ConnectionProto.CloudSqlProperties.Builder setInstanceIdBytes(ByteString value)

Cloud SQL instance ID in the form project:location:instance.

string instance_id = 1;

Parameter
Name Description
value ByteString

The bytes for instanceId to set.

Returns
Type Description
ConnectionProto.CloudSqlProperties.Builder

This builder for chaining.

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

public ConnectionProto.CloudSqlProperties.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
ConnectionProto.CloudSqlProperties.Builder
Overrides

setServiceAccountId(String value)

public ConnectionProto.CloudSqlProperties.Builder setServiceAccountId(String value)

Output only. The account ID of the service used for the purpose of this connection.

When the connection is used in the context of an operation in BigQuery, this service account will serve as the identity being used for connecting to the CloudSQL instance specified in this connection.

string service_account_id = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value String

The serviceAccountId to set.

Returns
Type Description
ConnectionProto.CloudSqlProperties.Builder

This builder for chaining.

setServiceAccountIdBytes(ByteString value)

public ConnectionProto.CloudSqlProperties.Builder setServiceAccountIdBytes(ByteString value)

Output only. The account ID of the service used for the purpose of this connection.

When the connection is used in the context of an operation in BigQuery, this service account will serve as the identity being used for connecting to the CloudSQL instance specified in this connection.

string service_account_id = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value ByteString

The bytes for serviceAccountId to set.

Returns
Type Description
ConnectionProto.CloudSqlProperties.Builder

This builder for chaining.

setType(ConnectionProto.CloudSqlProperties.DatabaseType value)

public ConnectionProto.CloudSqlProperties.Builder setType(ConnectionProto.CloudSqlProperties.DatabaseType value)

Type of the Cloud SQL database.

.google.cloud.bigquery.connection.v1beta1.CloudSqlProperties.DatabaseType type = 3;

Parameter
Name Description
value ConnectionProto.CloudSqlProperties.DatabaseType

The type to set.

Returns
Type Description
ConnectionProto.CloudSqlProperties.Builder

This builder for chaining.

setTypeValue(int value)

public ConnectionProto.CloudSqlProperties.Builder setTypeValue(int value)

Type of the Cloud SQL database.

.google.cloud.bigquery.connection.v1beta1.CloudSqlProperties.DatabaseType type = 3;

Parameter
Name Description
value int

The enum numeric value on the wire for type to set.

Returns
Type Description
ConnectionProto.CloudSqlProperties.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

public final ConnectionProto.CloudSqlProperties.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
ConnectionProto.CloudSqlProperties.Builder
Overrides