Class CloudSqlSource.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<CloudSqlSource.Builder>
com.google.cloud.discoveryengine.v1beta.CloudSqlSource.Builder
- All Implemented Interfaces:
CloudSqlSourceOrBuilder,com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Cloneable
- Enclosing class:
- CloudSqlSource
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.v1beta.CloudSqlSource-
Method Summary
Modifier and TypeMethodDescriptionbuild()clear()Required.Intermediate Cloud Storage directory used for the import with a length limit of 2,000 characters.Required.Option for serverless export.The project ID that contains the Cloud SQL source.Required.Required.com.google.protobuf.ByteStringRequired.static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorIntermediate Cloud Storage directory used for the import with a length limit of 2,000 characters.com.google.protobuf.ByteStringIntermediate Cloud Storage directory used for the import with a length limit of 2,000 characters.Required.com.google.protobuf.ByteStringRequired.booleanOption for serverless export.The project ID that contains the Cloud SQL source.com.google.protobuf.ByteStringThe project ID that contains the Cloud SQL source.Required.com.google.protobuf.ByteStringRequired.protected com.google.protobuf.GeneratedMessage.FieldAccessorTablefinal booleanmergeFrom(CloudSqlSource other) mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) setDatabaseId(String value) Required.setDatabaseIdBytes(com.google.protobuf.ByteString value) Required.setGcsStagingDir(String value) Intermediate Cloud Storage directory used for the import with a length limit of 2,000 characters.setGcsStagingDirBytes(com.google.protobuf.ByteString value) Intermediate Cloud Storage directory used for the import with a length limit of 2,000 characters.setInstanceId(String value) Required.setInstanceIdBytes(com.google.protobuf.ByteString value) Required.setOffload(boolean value) Option for serverless export.setProjectId(String value) The project ID that contains the Cloud SQL source.setProjectIdBytes(com.google.protobuf.ByteString value) The project ID that contains the Cloud SQL source.setTableId(String value) Required.setTableIdBytes(com.google.protobuf.ByteString value) Required.Methods inherited from class com.google.protobuf.GeneratedMessage.Builder
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, setUnknownFieldsProto3Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageExceptionMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.Message.Builder
mergeDelimitedFrom, mergeDelimitedFromMethods inherited from interface com.google.protobuf.MessageLite.Builder
mergeFromMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() -
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessage.Builder<CloudSqlSource.Builder>
-
clear
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessage.Builder<CloudSqlSource.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.Message.Builder- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getDescriptorForTypein classcom.google.protobuf.GeneratedMessage.Builder<CloudSqlSource.Builder>
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
mergeFrom
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<CloudSqlSource.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage.Builder<CloudSqlSource.Builder>
-
mergeFrom
public CloudSqlSource.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<CloudSqlSource.Builder>- Throws:
IOException
-
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;- Specified by:
getProjectIdin interfaceCloudSqlSourceOrBuilder- Returns:
- The projectId.
-
getProjectIdBytes
public 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;- Specified by:
getProjectIdBytesin interfaceCloudSqlSourceOrBuilder- Returns:
- The bytes for projectId.
-
setProjectId
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;- Parameters:
value- The projectId to set.- Returns:
- This builder for chaining.
-
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;- Returns:
- This builder for chaining.
-
setProjectIdBytes
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;- Parameters:
value- The bytes for projectId to set.- Returns:
- This builder for chaining.
-
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];- Specified by:
getInstanceIdin interfaceCloudSqlSourceOrBuilder- Returns:
- The instanceId.
-
getInstanceIdBytes
public 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];- Specified by:
getInstanceIdBytesin interfaceCloudSqlSourceOrBuilder- Returns:
- The bytes for instanceId.
-
setInstanceId
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];- Parameters:
value- The instanceId to set.- Returns:
- This builder for chaining.
-
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:
- This builder for chaining.
-
setInstanceIdBytes
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];- Parameters:
value- The bytes for instanceId to set.- Returns:
- This builder for chaining.
-
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];- Specified by:
getDatabaseIdin interfaceCloudSqlSourceOrBuilder- Returns:
- The databaseId.
-
getDatabaseIdBytes
public 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];- Specified by:
getDatabaseIdBytesin interfaceCloudSqlSourceOrBuilder- Returns:
- The bytes for databaseId.
-
setDatabaseId
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];- Parameters:
value- The databaseId to set.- Returns:
- This builder for chaining.
-
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:
- This builder for chaining.
-
setDatabaseIdBytes
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];- Parameters:
value- The bytes for databaseId to set.- Returns:
- This builder for chaining.
-
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];- Specified by:
getTableIdin interfaceCloudSqlSourceOrBuilder- Returns:
- The tableId.
-
getTableIdBytes
public 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];- Specified by:
getTableIdBytesin interfaceCloudSqlSourceOrBuilder- Returns:
- The bytes for tableId.
-
setTableId
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];- Parameters:
value- The tableId to set.- Returns:
- This builder for chaining.
-
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:
- This builder for chaining.
-
setTableIdBytes
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];- Parameters:
value- The bytes for tableId to set.- Returns:
- This builder for chaining.
-
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;- Specified by:
getGcsStagingDirin interfaceCloudSqlSourceOrBuilder- Returns:
- The gcsStagingDir.
-
getGcsStagingDirBytes
public 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;- Specified by:
getGcsStagingDirBytesin interfaceCloudSqlSourceOrBuilder- Returns:
- The bytes for gcsStagingDir.
-
setGcsStagingDir
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;- Parameters:
value- The gcsStagingDir to set.- Returns:
- This builder for chaining.
-
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:
- This builder for chaining.
-
setGcsStagingDirBytes
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;- Parameters:
value- The bytes for gcsStagingDir to set.- Returns:
- This builder for chaining.
-
getOffload
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;- Specified by:
getOffloadin interfaceCloudSqlSourceOrBuilder- Returns:
- The offload.
-
setOffload
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;- Parameters:
value- The offload to set.- Returns:
- This builder for chaining.
-
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;- Returns:
- This builder for chaining.
-