Class CloudSqlSource.Builder (0.44.0)

public static final class CloudSqlSource.Builder extends GeneratedMessageV3.Builder<CloudSqlSource.Builder> implements CloudSqlSourceOrBuilder

Cloud SQL source import data from.

Protobuf type google.cloud.discoveryengine.v1beta.CloudSqlSource

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public CloudSqlSource build()
Returns
Type Description
CloudSqlSource

buildPartial()

public CloudSqlSource buildPartial()
Returns
Type Description
CloudSqlSource

clear()

public CloudSqlSource.Builder clear()
Returns
Type Description
CloudSqlSource.Builder
Overrides

clearDatabaseId()

public CloudSqlSource.Builder clearDatabaseId()

Required. The Cloud SQL database to copy the data from with a length limit of 256 characters.

string database_id = 3 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
CloudSqlSource.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

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

clearGcsStagingDir()

public CloudSqlSource.Builder clearGcsStagingDir()

Intermediate Cloud Storage directory used for the import with a length limit of 2,000 characters. Can be specified if one wants to have the Cloud SQL export to a specific Cloud Storage directory.

Ensure that the Cloud SQL service account has the necessary Cloud Storage Admin permissions to access the specified Cloud Storage directory.

string gcs_staging_dir = 5;

Returns
Type Description
CloudSqlSource.Builder

This builder for chaining.

clearInstanceId()

public CloudSqlSource.Builder clearInstanceId()

Required. The Cloud SQL instance to copy the data from with a length limit of 256 characters.

string instance_id = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
CloudSqlSource.Builder

This builder for chaining.

clearOffload()

public CloudSqlSource.Builder clearOffload()

Option for serverless export. Enabling this option will incur additional cost. More info can be found here.

bool offload = 6;

Returns
Type Description
CloudSqlSource.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearProjectId()

public CloudSqlSource.Builder clearProjectId()

The project ID that the Cloud SQL source is in with a length limit of 128 characters. If not specified, inherits the project ID from the parent request.

string project_id = 1;

Returns
Type Description
CloudSqlSource.Builder

This builder for chaining.

clearTableId()

public CloudSqlSource.Builder clearTableId()

Required. The Cloud SQL table to copy the data from with a length limit of 256 characters.

string table_id = 4 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
CloudSqlSource.Builder

This builder for chaining.

clone()

public CloudSqlSource.Builder clone()
Returns
Type Description
CloudSqlSource.Builder
Overrides

getDatabaseId()

public String getDatabaseId()

Required. The Cloud SQL database to copy the data from with a length limit of 256 characters.

string database_id = 3 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
String

The databaseId.

getDatabaseIdBytes()

public ByteString getDatabaseIdBytes()

Required. The Cloud SQL database to copy the data from with a length limit of 256 characters.

string database_id = 3 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
ByteString

The bytes for databaseId.

getDefaultInstanceForType()

public CloudSqlSource getDefaultInstanceForType()
Returns
Type Description
CloudSqlSource

getDescriptorForType()

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

getGcsStagingDir()

public String getGcsStagingDir()

Intermediate Cloud Storage directory used for the import with a length limit of 2,000 characters. Can be specified if one wants to have the Cloud SQL export to a specific Cloud Storage directory.

Ensure that the Cloud SQL service account has the necessary Cloud Storage Admin permissions to access the specified Cloud Storage directory.

string gcs_staging_dir = 5;

Returns
Type Description
String

The gcsStagingDir.

getGcsStagingDirBytes()

public ByteString getGcsStagingDirBytes()

Intermediate Cloud Storage directory used for the import with a length limit of 2,000 characters. Can be specified if one wants to have the Cloud SQL export to a specific Cloud Storage directory.

Ensure that the Cloud SQL service account has the necessary Cloud Storage Admin permissions to access the specified Cloud Storage directory.

string gcs_staging_dir = 5;

Returns
Type Description
ByteString

The bytes for gcsStagingDir.

getInstanceId()

public String getInstanceId()

Required. The Cloud SQL instance to copy the data from with a length limit of 256 characters.

string instance_id = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
String

The instanceId.

getInstanceIdBytes()

public ByteString getInstanceIdBytes()

Required. The Cloud SQL instance to copy the data from with a length limit of 256 characters.

string instance_id = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
ByteString

The bytes for instanceId.

getOffload()

public boolean getOffload()

Option for serverless export. Enabling this option will incur additional cost. More info can be found here.

bool offload = 6;

Returns
Type Description
boolean

The offload.

getProjectId()

public String getProjectId()

The project ID that the Cloud SQL source is in with a length limit of 128 characters. If not specified, inherits the project ID from the parent request.

string project_id = 1;

Returns
Type Description
String

The projectId.

getProjectIdBytes()

public ByteString getProjectIdBytes()

The project ID that the Cloud SQL source is in with a length limit of 128 characters. If not specified, inherits the project ID from the parent request.

string project_id = 1;

Returns
Type Description
ByteString

The bytes for projectId.

getTableId()

public String getTableId()

Required. The Cloud SQL table to copy the data from with a length limit of 256 characters.

string table_id = 4 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
String

The tableId.

getTableIdBytes()

public ByteString getTableIdBytes()

Required. The Cloud SQL table to copy the data from with a length limit of 256 characters.

string table_id = 4 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
ByteString

The bytes for tableId.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(CloudSqlSource other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setDatabaseId(String value)

public CloudSqlSource.Builder setDatabaseId(String value)

Required. The Cloud SQL database to copy the data from with a length limit of 256 characters.

string database_id = 3 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value String

The databaseId to set.

Returns
Type Description
CloudSqlSource.Builder

This builder for chaining.

setDatabaseIdBytes(ByteString value)

public CloudSqlSource.Builder setDatabaseIdBytes(ByteString value)

Required. The Cloud SQL database to copy the data from with a length limit of 256 characters.

string database_id = 3 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value ByteString

The bytes for databaseId to set.

Returns
Type Description
CloudSqlSource.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

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

setGcsStagingDir(String value)

public CloudSqlSource.Builder setGcsStagingDir(String value)

Intermediate Cloud Storage directory used for the import with a length limit of 2,000 characters. Can be specified if one wants to have the Cloud SQL export to a specific Cloud Storage directory.

Ensure that the Cloud SQL service account has the necessary Cloud Storage Admin permissions to access the specified Cloud Storage directory.

string gcs_staging_dir = 5;

Parameter
Name Description
value String

The gcsStagingDir to set.

Returns
Type Description
CloudSqlSource.Builder

This builder for chaining.

setGcsStagingDirBytes(ByteString value)

public CloudSqlSource.Builder setGcsStagingDirBytes(ByteString value)

Intermediate Cloud Storage directory used for the import with a length limit of 2,000 characters. Can be specified if one wants to have the Cloud SQL export to a specific Cloud Storage directory.

Ensure that the Cloud SQL service account has the necessary Cloud Storage Admin permissions to access the specified Cloud Storage directory.

string gcs_staging_dir = 5;

Parameter
Name Description
value ByteString

The bytes for gcsStagingDir to set.

Returns
Type Description
CloudSqlSource.Builder

This builder for chaining.

setInstanceId(String value)

public CloudSqlSource.Builder setInstanceId(String value)

Required. The Cloud SQL instance to copy the data from with a length limit of 256 characters.

string instance_id = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value String

The instanceId to set.

Returns
Type Description
CloudSqlSource.Builder

This builder for chaining.

setInstanceIdBytes(ByteString value)

public CloudSqlSource.Builder setInstanceIdBytes(ByteString value)

Required. The Cloud SQL instance to copy the data from with a length limit of 256 characters.

string instance_id = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value ByteString

The bytes for instanceId to set.

Returns
Type Description
CloudSqlSource.Builder

This builder for chaining.

setOffload(boolean value)

public CloudSqlSource.Builder setOffload(boolean value)

Option for serverless export. Enabling this option will incur additional cost. More info can be found here.

bool offload = 6;

Parameter
Name Description
value boolean

The offload to set.

Returns
Type Description
CloudSqlSource.Builder

This builder for chaining.

setProjectId(String value)

public CloudSqlSource.Builder setProjectId(String value)

The project ID that the Cloud SQL source is in with a length limit of 128 characters. If not specified, inherits the project ID from the parent request.

string project_id = 1;

Parameter
Name Description
value String

The projectId to set.

Returns
Type Description
CloudSqlSource.Builder

This builder for chaining.

setProjectIdBytes(ByteString value)

public CloudSqlSource.Builder setProjectIdBytes(ByteString value)

The project ID that the Cloud SQL source is in with a length limit of 128 characters. If not specified, inherits the project ID from the parent request.

string project_id = 1;

Parameter
Name Description
value ByteString

The bytes for projectId to set.

Returns
Type Description
CloudSqlSource.Builder

This builder for chaining.

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

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

setTableId(String value)

public CloudSqlSource.Builder setTableId(String value)

Required. The Cloud SQL table to copy the data from with a length limit of 256 characters.

string table_id = 4 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value String

The tableId to set.

Returns
Type Description
CloudSqlSource.Builder

This builder for chaining.

setTableIdBytes(ByteString value)

public CloudSqlSource.Builder setTableIdBytes(ByteString value)

Required. The Cloud SQL table to copy the data from with a length limit of 256 characters.

string table_id = 4 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value ByteString

The bytes for tableId to set.

Returns
Type Description
CloudSqlSource.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

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