Class CloudSqlProperties.Builder (2.14.0)

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

Connection properties specific to the Cloud SQL.

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

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public CloudSqlProperties build()
Returns
TypeDescription
CloudSqlProperties

buildPartial()

public CloudSqlProperties buildPartial()
Returns
TypeDescription
CloudSqlProperties

clear()

public CloudSqlProperties.Builder clear()
Returns
TypeDescription
CloudSqlProperties.Builder
Overrides

clearCredential()

public CloudSqlProperties.Builder clearCredential()

Input only. Cloud SQL credential.

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

Returns
TypeDescription
CloudSqlProperties.Builder

clearDatabase()

public CloudSqlProperties.Builder clearDatabase()

Database name.

string database = 2;

Returns
TypeDescription
CloudSqlProperties.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

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

clearInstanceId()

public CloudSqlProperties.Builder clearInstanceId()

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

string instance_id = 1;

Returns
TypeDescription
CloudSqlProperties.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearServiceAccountId()

public 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
TypeDescription
CloudSqlProperties.Builder

This builder for chaining.

clearType()

public CloudSqlProperties.Builder clearType()

Type of the Cloud SQL database.

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

Returns
TypeDescription
CloudSqlProperties.Builder

This builder for chaining.

clone()

public CloudSqlProperties.Builder clone()
Returns
TypeDescription
CloudSqlProperties.Builder
Overrides

getCredential()

public CloudSqlCredential getCredential()

Input only. Cloud SQL credential.

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

Returns
TypeDescription
CloudSqlCredential

The credential.

getCredentialBuilder()

public CloudSqlCredential.Builder getCredentialBuilder()

Input only. Cloud SQL credential.

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

Returns
TypeDescription
CloudSqlCredential.Builder

getCredentialOrBuilder()

public CloudSqlCredentialOrBuilder getCredentialOrBuilder()

Input only. Cloud SQL credential.

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

Returns
TypeDescription
CloudSqlCredentialOrBuilder

getDatabase()

public String getDatabase()

Database name.

string database = 2;

Returns
TypeDescription
String

The database.

getDatabaseBytes()

public ByteString getDatabaseBytes()

Database name.

string database = 2;

Returns
TypeDescription
ByteString

The bytes for database.

getDefaultInstanceForType()

public CloudSqlProperties getDefaultInstanceForType()
Returns
TypeDescription
CloudSqlProperties

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getInstanceId()

public String getInstanceId()

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

string instance_id = 1;

Returns
TypeDescription
String

The instanceId.

getInstanceIdBytes()

public ByteString getInstanceIdBytes()

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

string instance_id = 1;

Returns
TypeDescription
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
TypeDescription
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
TypeDescription
ByteString

The bytes for serviceAccountId.

getType()

public CloudSqlProperties.DatabaseType getType()

Type of the Cloud SQL database.

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

Returns
TypeDescription
CloudSqlProperties.DatabaseType

The type.

getTypeValue()

public int getTypeValue()

Type of the Cloud SQL database.

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

Returns
TypeDescription
int

The enum numeric value on the wire for type.

hasCredential()

public boolean hasCredential()

Input only. Cloud SQL credential.

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

Returns
TypeDescription
boolean

Whether the credential field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeCredential(CloudSqlCredential value)

public CloudSqlProperties.Builder mergeCredential(CloudSqlCredential value)

Input only. Cloud SQL credential.

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

Parameter
NameDescription
valueCloudSqlCredential
Returns
TypeDescription
CloudSqlProperties.Builder

mergeFrom(CloudSqlProperties other)

public CloudSqlProperties.Builder mergeFrom(CloudSqlProperties other)
Parameter
NameDescription
otherCloudSqlProperties
Returns
TypeDescription
CloudSqlProperties.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setCredential(CloudSqlCredential value)

public CloudSqlProperties.Builder setCredential(CloudSqlCredential value)

Input only. Cloud SQL credential.

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

Parameter
NameDescription
valueCloudSqlCredential
Returns
TypeDescription
CloudSqlProperties.Builder

setCredential(CloudSqlCredential.Builder builderForValue)

public CloudSqlProperties.Builder setCredential(CloudSqlCredential.Builder builderForValue)

Input only. Cloud SQL credential.

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

Parameter
NameDescription
builderForValueCloudSqlCredential.Builder
Returns
TypeDescription
CloudSqlProperties.Builder

setDatabase(String value)

public CloudSqlProperties.Builder setDatabase(String value)

Database name.

string database = 2;

Parameter
NameDescription
valueString

The database to set.

Returns
TypeDescription
CloudSqlProperties.Builder

This builder for chaining.

setDatabaseBytes(ByteString value)

public CloudSqlProperties.Builder setDatabaseBytes(ByteString value)

Database name.

string database = 2;

Parameter
NameDescription
valueByteString

The bytes for database to set.

Returns
TypeDescription
CloudSqlProperties.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

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

setInstanceId(String value)

public CloudSqlProperties.Builder setInstanceId(String value)

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

string instance_id = 1;

Parameter
NameDescription
valueString

The instanceId to set.

Returns
TypeDescription
CloudSqlProperties.Builder

This builder for chaining.

setInstanceIdBytes(ByteString value)

public CloudSqlProperties.Builder setInstanceIdBytes(ByteString value)

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

string instance_id = 1;

Parameter
NameDescription
valueByteString

The bytes for instanceId to set.

Returns
TypeDescription
CloudSqlProperties.Builder

This builder for chaining.

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

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

setServiceAccountId(String value)

public 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
NameDescription
valueString

The serviceAccountId to set.

Returns
TypeDescription
CloudSqlProperties.Builder

This builder for chaining.

setServiceAccountIdBytes(ByteString value)

public 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
NameDescription
valueByteString

The bytes for serviceAccountId to set.

Returns
TypeDescription
CloudSqlProperties.Builder

This builder for chaining.

setType(CloudSqlProperties.DatabaseType value)

public CloudSqlProperties.Builder setType(CloudSqlProperties.DatabaseType value)

Type of the Cloud SQL database.

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

Parameter
NameDescription
valueCloudSqlProperties.DatabaseType

The type to set.

Returns
TypeDescription
CloudSqlProperties.Builder

This builder for chaining.

setTypeValue(int value)

public CloudSqlProperties.Builder setTypeValue(int value)

Type of the Cloud SQL database.

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

Parameter
NameDescription
valueint

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

Returns
TypeDescription
CloudSqlProperties.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

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