public static final class CloudSqlSource.Builder extends com.google.protobuf.GeneratedMessage.Builder<CloudSqlSource.Builder> implements CloudSqlSourceOrBuilder
Cloud SQL source import data from.Protobuf type
google.cloud.discoveryengine.v1.CloudSqlSource| Modifier and Type | Method and Description |
|---|---|
CloudSqlSource |
build() |
CloudSqlSource |
buildPartial() |
CloudSqlSource.Builder |
clear() |
CloudSqlSource.Builder |
clearDatabaseId()
Required.
|
CloudSqlSource.Builder |
clearGcsStagingDir()
Intermediate Cloud Storage directory used for the import with a length
limit of 2,000 characters.
|
CloudSqlSource.Builder |
clearInstanceId()
Required.
|
CloudSqlSource.Builder |
clearOffload()
Option for serverless export.
|
CloudSqlSource.Builder |
clearProjectId()
The project ID that contains the Cloud SQL source.
|
CloudSqlSource.Builder |
clearTableId()
Required.
|
String |
getDatabaseId()
Required.
|
com.google.protobuf.ByteString |
getDatabaseIdBytes()
Required.
|
CloudSqlSource |
getDefaultInstanceForType() |
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
com.google.protobuf.Descriptors.Descriptor |
getDescriptorForType() |
String |
getGcsStagingDir()
Intermediate Cloud Storage directory used for the import with a length
limit of 2,000 characters.
|
com.google.protobuf.ByteString |
getGcsStagingDirBytes()
Intermediate Cloud Storage directory used for the import with a length
limit of 2,000 characters.
|
String |
getInstanceId()
Required.
|
com.google.protobuf.ByteString |
getInstanceIdBytes()
Required.
|
boolean |
getOffload()
Option for serverless export.
|
String |
getProjectId()
The project ID that contains the Cloud SQL source.
|
com.google.protobuf.ByteString |
getProjectIdBytes()
The project ID that contains the Cloud SQL source.
|
String |
getTableId()
Required.
|
com.google.protobuf.ByteString |
getTableIdBytes()
Required.
|
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable |
internalGetFieldAccessorTable() |
boolean |
isInitialized() |
CloudSqlSource.Builder |
mergeFrom(CloudSqlSource other) |
CloudSqlSource.Builder |
mergeFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
CloudSqlSource.Builder |
mergeFrom(com.google.protobuf.Message other) |
CloudSqlSource.Builder |
setDatabaseId(String value)
Required.
|
CloudSqlSource.Builder |
setDatabaseIdBytes(com.google.protobuf.ByteString value)
Required.
|
CloudSqlSource.Builder |
setGcsStagingDir(String value)
Intermediate Cloud Storage directory used for the import with a length
limit of 2,000 characters.
|
CloudSqlSource.Builder |
setGcsStagingDirBytes(com.google.protobuf.ByteString value)
Intermediate Cloud Storage directory used for the import with a length
limit of 2,000 characters.
|
CloudSqlSource.Builder |
setInstanceId(String value)
Required.
|
CloudSqlSource.Builder |
setInstanceIdBytes(com.google.protobuf.ByteString value)
Required.
|
CloudSqlSource.Builder |
setOffload(boolean value)
Option for serverless export.
|
CloudSqlSource.Builder |
setProjectId(String value)
The project ID that contains the Cloud SQL source.
|
CloudSqlSource.Builder |
setProjectIdBytes(com.google.protobuf.ByteString value)
The project ID that contains the Cloud SQL source.
|
CloudSqlSource.Builder |
setTableId(String value)
Required.
|
CloudSqlSource.Builder |
setTableIdBytes(com.google.protobuf.ByteString value)
Required.
|
addRepeatedField, clearField, clearOneof, clone, getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownFields, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setField, setRepeatedField, setUnknownFields, setUnknownFieldSetBuilder, setUnknownFieldsProto3findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringaddAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageExceptionequals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitfindInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneofpublic static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessage.Builder<CloudSqlSource.Builder>public CloudSqlSource.Builder clear()
clear in interface com.google.protobuf.Message.Builderclear in interface com.google.protobuf.MessageLite.Builderclear in class com.google.protobuf.GeneratedMessage.Builder<CloudSqlSource.Builder>public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
getDescriptorForType in interface com.google.protobuf.Message.BuildergetDescriptorForType in interface com.google.protobuf.MessageOrBuildergetDescriptorForType in class com.google.protobuf.GeneratedMessage.Builder<CloudSqlSource.Builder>public CloudSqlSource getDefaultInstanceForType()
getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilderpublic CloudSqlSource build()
build in interface com.google.protobuf.Message.Builderbuild in interface com.google.protobuf.MessageLite.Builderpublic CloudSqlSource buildPartial()
buildPartial in interface com.google.protobuf.Message.BuilderbuildPartial in interface com.google.protobuf.MessageLite.Builderpublic CloudSqlSource.Builder mergeFrom(com.google.protobuf.Message other)
mergeFrom in interface com.google.protobuf.Message.BuildermergeFrom in class com.google.protobuf.AbstractMessage.Builder<CloudSqlSource.Builder>public CloudSqlSource.Builder mergeFrom(CloudSqlSource other)
public final boolean isInitialized()
isInitialized in interface com.google.protobuf.MessageLiteOrBuilderisInitialized in class com.google.protobuf.GeneratedMessage.Builder<CloudSqlSource.Builder>public CloudSqlSource.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
mergeFrom in interface com.google.protobuf.Message.BuildermergeFrom in interface com.google.protobuf.MessageLite.BuildermergeFrom in class com.google.protobuf.AbstractMessage.Builder<CloudSqlSource.Builder>IOExceptionpublic String getProjectId()
The project ID that contains the Cloud SQL source. Has a length limit of 128 characters. If not specified, inherits the project ID from the parent request.
string project_id = 1;getProjectId in interface CloudSqlSourceOrBuilderpublic com.google.protobuf.ByteString getProjectIdBytes()
The project ID that contains the Cloud SQL source. Has a length limit of 128 characters. If not specified, inherits the project ID from the parent request.
string project_id = 1;getProjectIdBytes in interface CloudSqlSourceOrBuilderpublic CloudSqlSource.Builder setProjectId(String value)
The project ID that contains the Cloud SQL source. Has a length limit of 128 characters. If not specified, inherits the project ID from the parent request.
string project_id = 1;value - The projectId to set.public CloudSqlSource.Builder clearProjectId()
The project ID that contains the Cloud SQL source. Has a length limit of 128 characters. If not specified, inherits the project ID from the parent request.
string project_id = 1;public CloudSqlSource.Builder setProjectIdBytes(com.google.protobuf.ByteString value)
The project ID that contains the Cloud SQL source. Has a length limit of 128 characters. If not specified, inherits the project ID from the parent request.
string project_id = 1;value - The bytes for projectId to set.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];getInstanceId in interface CloudSqlSourceOrBuilderpublic com.google.protobuf.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];getInstanceIdBytes in interface CloudSqlSourceOrBuilderpublic 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];value - The instanceId to set.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];public CloudSqlSource.Builder setInstanceIdBytes(com.google.protobuf.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];value - The bytes for instanceId to set.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];getDatabaseId in interface CloudSqlSourceOrBuilderpublic com.google.protobuf.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];getDatabaseIdBytes in interface CloudSqlSourceOrBuilderpublic 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];value - The databaseId to set.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];public CloudSqlSource.Builder setDatabaseIdBytes(com.google.protobuf.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];value - The bytes for databaseId to set.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];getTableId in interface CloudSqlSourceOrBuilderpublic com.google.protobuf.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];getTableIdBytes in interface CloudSqlSourceOrBuilderpublic 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];value - The tableId to set.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];public CloudSqlSource.Builder setTableIdBytes(com.google.protobuf.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];value - The bytes for tableId to set.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;getGcsStagingDir in interface CloudSqlSourceOrBuilderpublic com.google.protobuf.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;getGcsStagingDirBytes in interface CloudSqlSourceOrBuilderpublic 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;value - The gcsStagingDir to set.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;public CloudSqlSource.Builder setGcsStagingDirBytes(com.google.protobuf.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;value - The bytes for gcsStagingDir to set.public boolean getOffload()
Option for serverless export. Enabling this option will incur additional cost. More info can be found [here](https://cloud.google.com/sql/pricing#serverless).
bool offload = 6;getOffload in interface CloudSqlSourceOrBuilderpublic CloudSqlSource.Builder setOffload(boolean value)
Option for serverless export. Enabling this option will incur additional cost. More info can be found [here](https://cloud.google.com/sql/pricing#serverless).
bool offload = 6;value - The offload to set.public CloudSqlSource.Builder clearOffload()
Option for serverless export. Enabling this option will incur additional cost. More info can be found [here](https://cloud.google.com/sql/pricing#serverless).
bool offload = 6;Copyright © 2026 Google LLC. All rights reserved.