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 Details

    • getDescriptor

      public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
    • internalGetFieldAccessorTable

      protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
      Specified by:
      internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessage.Builder<CloudSqlSource.Builder>
    • clear

      public CloudSqlSource.Builder clear()
      Specified by:
      clear in interface com.google.protobuf.Message.Builder
      Specified by:
      clear in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      clear in class com.google.protobuf.GeneratedMessage.Builder<CloudSqlSource.Builder>
    • getDescriptorForType

      public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
      Specified by:
      getDescriptorForType in interface com.google.protobuf.Message.Builder
      Specified by:
      getDescriptorForType in interface com.google.protobuf.MessageOrBuilder
      Overrides:
      getDescriptorForType in class com.google.protobuf.GeneratedMessage.Builder<CloudSqlSource.Builder>
    • getDefaultInstanceForType

      public CloudSqlSource getDefaultInstanceForType()
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder
    • build

      public CloudSqlSource build()
      Specified by:
      build in interface com.google.protobuf.Message.Builder
      Specified by:
      build in interface com.google.protobuf.MessageLite.Builder
    • buildPartial

      public CloudSqlSource buildPartial()
      Specified by:
      buildPartial in interface com.google.protobuf.Message.Builder
      Specified by:
      buildPartial in interface com.google.protobuf.MessageLite.Builder
    • mergeFrom

      public CloudSqlSource.Builder mergeFrom(com.google.protobuf.Message other)
      Specified by:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Overrides:
      mergeFrom in class com.google.protobuf.AbstractMessage.Builder<CloudSqlSource.Builder>
    • mergeFrom

      public CloudSqlSource.Builder mergeFrom(CloudSqlSource other)
    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.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:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Specified by:
      mergeFrom in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      mergeFrom in class com.google.protobuf.AbstractMessage.Builder<CloudSqlSource.Builder>
      Throws:
      IOException
    • getProjectId

      public 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;
      Specified by:
      getProjectId in interface CloudSqlSourceOrBuilder
      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:
      getProjectIdBytes in interface CloudSqlSourceOrBuilder
      Returns:
      The bytes for projectId.
    • setProjectId

      public 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;
      Parameters:
      value - The projectId to set.
      Returns:
      This builder for chaining.
    • clearProjectId

      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;
      Returns:
      This builder for chaining.
    • setProjectIdBytes

      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;
      Parameters:
      value - The bytes for projectId to set.
      Returns:
      This builder for chaining.
    • 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];
      Specified by:
      getInstanceId in interface CloudSqlSourceOrBuilder
      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:
      getInstanceIdBytes in interface CloudSqlSourceOrBuilder
      Returns:
      The bytes for instanceId.
    • setInstanceId

      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];
      Parameters:
      value - The instanceId to set.
      Returns:
      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:
      This builder for chaining.
    • setInstanceIdBytes

      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];
      Parameters:
      value - The bytes for instanceId to set.
      Returns:
      This builder for chaining.
    • 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];
      Specified by:
      getDatabaseId in interface CloudSqlSourceOrBuilder
      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:
      getDatabaseIdBytes in interface CloudSqlSourceOrBuilder
      Returns:
      The bytes for databaseId.
    • setDatabaseId

      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];
      Parameters:
      value - The databaseId to set.
      Returns:
      This builder for chaining.
    • 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:
      This builder for chaining.
    • setDatabaseIdBytes

      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];
      Parameters:
      value - The bytes for databaseId to set.
      Returns:
      This builder for chaining.
    • 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];
      Specified by:
      getTableId in interface CloudSqlSourceOrBuilder
      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:
      getTableIdBytes in interface CloudSqlSourceOrBuilder
      Returns:
      The bytes for tableId.
    • setTableId

      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];
      Parameters:
      value - The tableId to set.
      Returns:
      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:
      This builder for chaining.
    • setTableIdBytes

      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];
      Parameters:
      value - The bytes for tableId to set.
      Returns:
      This builder for chaining.
    • 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;
      Specified by:
      getGcsStagingDir in interface CloudSqlSourceOrBuilder
      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:
      getGcsStagingDirBytes in interface CloudSqlSourceOrBuilder
      Returns:
      The bytes for gcsStagingDir.
    • setGcsStagingDir

      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;
      Parameters:
      value - The gcsStagingDir to set.
      Returns:
      This builder for chaining.
    • 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:
      This builder for chaining.
    • setGcsStagingDirBytes

      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;
      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:
      getOffload in interface CloudSqlSourceOrBuilder
      Returns:
      The offload.
    • setOffload

      public 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;
      Parameters:
      value - The offload to set.
      Returns:
      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](https://cloud.google.com/sql/pricing#serverless).
       
      bool offload = 6;
      Returns:
      This builder for chaining.