Class ImportClusterRequest.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<ImportClusterRequest.Builder>
com.google.cloud.alloydb.v1beta.ImportClusterRequest.Builder
All Implemented Interfaces:
ImportClusterRequestOrBuilder, com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Cloneable
Enclosing class:
ImportClusterRequest

public static final class ImportClusterRequest.Builder extends com.google.protobuf.GeneratedMessage.Builder<ImportClusterRequest.Builder> implements ImportClusterRequestOrBuilder
 Import cluster request.
 
Protobuf type google.cloud.alloydb.v1beta.ImportClusterRequest
  • 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<ImportClusterRequest.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<ImportClusterRequest.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<ImportClusterRequest.Builder>
    • getDefaultInstanceForType

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

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

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

      public ImportClusterRequest.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<ImportClusterRequest.Builder>
    • mergeFrom

    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.google.protobuf.GeneratedMessage.Builder<ImportClusterRequest.Builder>
    • mergeFrom

      public ImportClusterRequest.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<ImportClusterRequest.Builder>
      Throws:
      IOException
    • getImportOptionsCase

      public ImportClusterRequest.ImportOptionsCase getImportOptionsCase()
      Specified by:
      getImportOptionsCase in interface ImportClusterRequestOrBuilder
    • clearImportOptions

      public ImportClusterRequest.Builder clearImportOptions()
    • hasSqlImportOptions

      public boolean hasSqlImportOptions()
       Options for importing data in SQL format.
       
      .google.cloud.alloydb.v1beta.ImportClusterRequest.SqlImportOptions sql_import_options = 4;
      Specified by:
      hasSqlImportOptions in interface ImportClusterRequestOrBuilder
      Returns:
      Whether the sqlImportOptions field is set.
    • getSqlImportOptions

      public ImportClusterRequest.SqlImportOptions getSqlImportOptions()
       Options for importing data in SQL format.
       
      .google.cloud.alloydb.v1beta.ImportClusterRequest.SqlImportOptions sql_import_options = 4;
      Specified by:
      getSqlImportOptions in interface ImportClusterRequestOrBuilder
      Returns:
      The sqlImportOptions.
    • setSqlImportOptions

       Options for importing data in SQL format.
       
      .google.cloud.alloydb.v1beta.ImportClusterRequest.SqlImportOptions sql_import_options = 4;
    • setSqlImportOptions

       Options for importing data in SQL format.
       
      .google.cloud.alloydb.v1beta.ImportClusterRequest.SqlImportOptions sql_import_options = 4;
    • mergeSqlImportOptions

       Options for importing data in SQL format.
       
      .google.cloud.alloydb.v1beta.ImportClusterRequest.SqlImportOptions sql_import_options = 4;
    • clearSqlImportOptions

      public ImportClusterRequest.Builder clearSqlImportOptions()
       Options for importing data in SQL format.
       
      .google.cloud.alloydb.v1beta.ImportClusterRequest.SqlImportOptions sql_import_options = 4;
    • getSqlImportOptionsBuilder

      public ImportClusterRequest.SqlImportOptions.Builder getSqlImportOptionsBuilder()
       Options for importing data in SQL format.
       
      .google.cloud.alloydb.v1beta.ImportClusterRequest.SqlImportOptions sql_import_options = 4;
    • getSqlImportOptionsOrBuilder

      public ImportClusterRequest.SqlImportOptionsOrBuilder getSqlImportOptionsOrBuilder()
       Options for importing data in SQL format.
       
      .google.cloud.alloydb.v1beta.ImportClusterRequest.SqlImportOptions sql_import_options = 4;
      Specified by:
      getSqlImportOptionsOrBuilder in interface ImportClusterRequestOrBuilder
    • hasCsvImportOptions

      public boolean hasCsvImportOptions()
       Options for importing data in CSV format.
       
      .google.cloud.alloydb.v1beta.ImportClusterRequest.CsvImportOptions csv_import_options = 7;
      Specified by:
      hasCsvImportOptions in interface ImportClusterRequestOrBuilder
      Returns:
      Whether the csvImportOptions field is set.
    • getCsvImportOptions

      public ImportClusterRequest.CsvImportOptions getCsvImportOptions()
       Options for importing data in CSV format.
       
      .google.cloud.alloydb.v1beta.ImportClusterRequest.CsvImportOptions csv_import_options = 7;
      Specified by:
      getCsvImportOptions in interface ImportClusterRequestOrBuilder
      Returns:
      The csvImportOptions.
    • setCsvImportOptions

       Options for importing data in CSV format.
       
      .google.cloud.alloydb.v1beta.ImportClusterRequest.CsvImportOptions csv_import_options = 7;
    • setCsvImportOptions

       Options for importing data in CSV format.
       
      .google.cloud.alloydb.v1beta.ImportClusterRequest.CsvImportOptions csv_import_options = 7;
    • mergeCsvImportOptions

       Options for importing data in CSV format.
       
      .google.cloud.alloydb.v1beta.ImportClusterRequest.CsvImportOptions csv_import_options = 7;
    • clearCsvImportOptions

      public ImportClusterRequest.Builder clearCsvImportOptions()
       Options for importing data in CSV format.
       
      .google.cloud.alloydb.v1beta.ImportClusterRequest.CsvImportOptions csv_import_options = 7;
    • getCsvImportOptionsBuilder

      public ImportClusterRequest.CsvImportOptions.Builder getCsvImportOptionsBuilder()
       Options for importing data in CSV format.
       
      .google.cloud.alloydb.v1beta.ImportClusterRequest.CsvImportOptions csv_import_options = 7;
    • getCsvImportOptionsOrBuilder

      public ImportClusterRequest.CsvImportOptionsOrBuilder getCsvImportOptionsOrBuilder()
       Options for importing data in CSV format.
       
      .google.cloud.alloydb.v1beta.ImportClusterRequest.CsvImportOptions csv_import_options = 7;
      Specified by:
      getCsvImportOptionsOrBuilder in interface ImportClusterRequestOrBuilder
    • getName

      public String getName()
       Required. The resource name of the cluster.
       
      string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
      Specified by:
      getName in interface ImportClusterRequestOrBuilder
      Returns:
      The name.
    • getNameBytes

      public com.google.protobuf.ByteString getNameBytes()
       Required. The resource name of the cluster.
       
      string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
      Specified by:
      getNameBytes in interface ImportClusterRequestOrBuilder
      Returns:
      The bytes for name.
    • setName

      public ImportClusterRequest.Builder setName(String value)
       Required. The resource name of the cluster.
       
      string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
      Parameters:
      value - The name to set.
      Returns:
      This builder for chaining.
    • clearName

      public ImportClusterRequest.Builder clearName()
       Required. The resource name of the cluster.
       
      string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
      Returns:
      This builder for chaining.
    • setNameBytes

      public ImportClusterRequest.Builder setNameBytes(com.google.protobuf.ByteString value)
       Required. The resource name of the cluster.
       
      string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
      Parameters:
      value - The bytes for name to set.
      Returns:
      This builder for chaining.
    • getGcsUri

      public String getGcsUri()
       Required. The path to the file in Google Cloud Storage where the source
       file for import will be stored. The URI is in the form
       `gs://bucketName/fileName`.
       
      string gcs_uri = 2 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getGcsUri in interface ImportClusterRequestOrBuilder
      Returns:
      The gcsUri.
    • getGcsUriBytes

      public com.google.protobuf.ByteString getGcsUriBytes()
       Required. The path to the file in Google Cloud Storage where the source
       file for import will be stored. The URI is in the form
       `gs://bucketName/fileName`.
       
      string gcs_uri = 2 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getGcsUriBytes in interface ImportClusterRequestOrBuilder
      Returns:
      The bytes for gcsUri.
    • setGcsUri

      public ImportClusterRequest.Builder setGcsUri(String value)
       Required. The path to the file in Google Cloud Storage where the source
       file for import will be stored. The URI is in the form
       `gs://bucketName/fileName`.
       
      string gcs_uri = 2 [(.google.api.field_behavior) = REQUIRED];
      Parameters:
      value - The gcsUri to set.
      Returns:
      This builder for chaining.
    • clearGcsUri

      public ImportClusterRequest.Builder clearGcsUri()
       Required. The path to the file in Google Cloud Storage where the source
       file for import will be stored. The URI is in the form
       `gs://bucketName/fileName`.
       
      string gcs_uri = 2 [(.google.api.field_behavior) = REQUIRED];
      Returns:
      This builder for chaining.
    • setGcsUriBytes

      public ImportClusterRequest.Builder setGcsUriBytes(com.google.protobuf.ByteString value)
       Required. The path to the file in Google Cloud Storage where the source
       file for import will be stored. The URI is in the form
       `gs://bucketName/fileName`.
       
      string gcs_uri = 2 [(.google.api.field_behavior) = REQUIRED];
      Parameters:
      value - The bytes for gcsUri to set.
      Returns:
      This builder for chaining.
    • getDatabase

      public String getDatabase()
       Optional. Name of the database to which the import will be done.
       For import from SQL file, this is required only if the file does not
       specify a database.
       Note - Value provided should be the same as expected from `SELECT
       current_database();` and NOT as a resource reference.
       
      string database = 3 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getDatabase in interface ImportClusterRequestOrBuilder
      Returns:
      The database.
    • getDatabaseBytes

      public com.google.protobuf.ByteString getDatabaseBytes()
       Optional. Name of the database to which the import will be done.
       For import from SQL file, this is required only if the file does not
       specify a database.
       Note - Value provided should be the same as expected from `SELECT
       current_database();` and NOT as a resource reference.
       
      string database = 3 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getDatabaseBytes in interface ImportClusterRequestOrBuilder
      Returns:
      The bytes for database.
    • setDatabase

      public ImportClusterRequest.Builder setDatabase(String value)
       Optional. Name of the database to which the import will be done.
       For import from SQL file, this is required only if the file does not
       specify a database.
       Note - Value provided should be the same as expected from `SELECT
       current_database();` and NOT as a resource reference.
       
      string database = 3 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      value - The database to set.
      Returns:
      This builder for chaining.
    • clearDatabase

      public ImportClusterRequest.Builder clearDatabase()
       Optional. Name of the database to which the import will be done.
       For import from SQL file, this is required only if the file does not
       specify a database.
       Note - Value provided should be the same as expected from `SELECT
       current_database();` and NOT as a resource reference.
       
      string database = 3 [(.google.api.field_behavior) = OPTIONAL];
      Returns:
      This builder for chaining.
    • setDatabaseBytes

      public ImportClusterRequest.Builder setDatabaseBytes(com.google.protobuf.ByteString value)
       Optional. Name of the database to which the import will be done.
       For import from SQL file, this is required only if the file does not
       specify a database.
       Note - Value provided should be the same as expected from `SELECT
       current_database();` and NOT as a resource reference.
       
      string database = 3 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      value - The bytes for database to set.
      Returns:
      This builder for chaining.
    • getUser

      public String getUser()
       Optional. Database user to be used for importing the data.
       Note - Value provided should be the same as expected from
       `SELECT current_user;` and NOT as a resource reference.
       
      string user = 5 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getUser in interface ImportClusterRequestOrBuilder
      Returns:
      The user.
    • getUserBytes

      public com.google.protobuf.ByteString getUserBytes()
       Optional. Database user to be used for importing the data.
       Note - Value provided should be the same as expected from
       `SELECT current_user;` and NOT as a resource reference.
       
      string user = 5 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getUserBytes in interface ImportClusterRequestOrBuilder
      Returns:
      The bytes for user.
    • setUser

      public ImportClusterRequest.Builder setUser(String value)
       Optional. Database user to be used for importing the data.
       Note - Value provided should be the same as expected from
       `SELECT current_user;` and NOT as a resource reference.
       
      string user = 5 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      value - The user to set.
      Returns:
      This builder for chaining.
    • clearUser

      public ImportClusterRequest.Builder clearUser()
       Optional. Database user to be used for importing the data.
       Note - Value provided should be the same as expected from
       `SELECT current_user;` and NOT as a resource reference.
       
      string user = 5 [(.google.api.field_behavior) = OPTIONAL];
      Returns:
      This builder for chaining.
    • setUserBytes

      public ImportClusterRequest.Builder setUserBytes(com.google.protobuf.ByteString value)
       Optional. Database user to be used for importing the data.
       Note - Value provided should be the same as expected from
       `SELECT current_user;` and NOT as a resource reference.
       
      string user = 5 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      value - The bytes for user to set.
      Returns:
      This builder for chaining.