Class ImportClusterRequest (0.59.0) 
  
      
     
  
  
  
   
  
    
  
  
    
    
    
  Version 0.59.0keyboard_arrow_down  
  
 
    
    
    
    
      
  
  
  
    
public   final   class  ImportClusterRequest   extends   GeneratedMessageV3   implements   ImportClusterRequestOrBuilder  
   
   Import cluster request.
 Protobuf type google.cloud.alloydb.v1.ImportClusterRequest
 
  
  
  
    Inherited Members 
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
      com.google.protobuf.GeneratedMessageV3.<ListT>makeMutableCopy(ListT) 
    
    
      com.google.protobuf.GeneratedMessageV3.<ListT>makeMutableCopy(ListT,int) 
    
    
    
    
    
    
    
    
      com.google.protobuf.GeneratedMessageV3.<T>emptyList(java.lang.Class<T>) 
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
      com.google.protobuf.GeneratedMessageV3.internalGetMapFieldReflection(int) 
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
   
  Static Fields
   
  CSV_IMPORT_OPTIONS_FIELD_NUMBER 
  
    
public   static   final   int   CSV_IMPORT_OPTIONS_FIELD_NUMBER  
   
  
    
      
        Field Value  
       
      
        Type  
        Description  
       
      
        int  
         
       
     
  
  DATABASE_FIELD_NUMBER 
  
    
public   static   final   int   DATABASE_FIELD_NUMBER  
   
  
    
      
        Field Value  
       
      
        Type  
        Description  
       
      
        int  
         
       
     
  
  GCS_URI_FIELD_NUMBER 
  
    
public   static   final   int   GCS_URI_FIELD_NUMBER  
   
  
    
      
        Field Value  
       
      
        Type  
        Description  
       
      
        int  
         
       
     
  
  NAME_FIELD_NUMBER 
  
    
public   static   final   int   NAME_FIELD_NUMBER  
   
  
    
      
        Field Value  
       
      
        Type  
        Description  
       
      
        int  
         
       
     
  
  SQL_IMPORT_OPTIONS_FIELD_NUMBER 
  
    
public   static   final   int   SQL_IMPORT_OPTIONS_FIELD_NUMBER  
   
  
    
      
        Field Value  
       
      
        Type  
        Description  
       
      
        int  
         
       
     
  
  USER_FIELD_NUMBER 
  
    
public   static   final   int   USER_FIELD_NUMBER  
   
  
    
      
        Field Value  
       
      
        Type  
        Description  
       
      
        int  
         
       
     
  
  Static Methods
   
   
  getDefaultInstance() 
  
    
public   static   ImportClusterRequest   getDefaultInstance ()  
   
  
   
  getDescriptor() 
  
    
public   static   final   Descriptors . Descriptor   getDescriptor ()  
   
  
   
  newBuilder() 
  
    
public   static   ImportClusterRequest . Builder   newBuilder ()  
   
  
   
  newBuilder(ImportClusterRequest prototype) 
  
    
public   static   ImportClusterRequest . Builder   newBuilder ( ImportClusterRequest   prototype )  
   
  
  
   
  
  
    
public   static   ImportClusterRequest   parseDelimitedFrom ( InputStream   input )  
   
  
  
  
   
  
  
    
public   static   ImportClusterRequest   parseDelimitedFrom ( InputStream   input ,   ExtensionRegistryLite   extensionRegistry )  
   
  
  
  
   
  parseFrom(byte[] data) 
  
    
public   static   ImportClusterRequest   parseFrom ( byte []   data )  
   
  
    
      
        Parameter  
       
      
        Name  
        Description  
       
      
        data 
        byte [] 
       
     
  
  
  
   
  parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry) 
  
    
public   static   ImportClusterRequest   parseFrom ( byte []   data ,   ExtensionRegistryLite   extensionRegistry )  
   
  
  
  
   
  parseFrom(ByteString data) 
  
    
public   static   ImportClusterRequest   parseFrom ( ByteString   data )  
   
  
  
  
   
  parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry) 
  
    
public   static   ImportClusterRequest   parseFrom ( ByteString   data ,   ExtensionRegistryLite   extensionRegistry )  
   
  
  
  
   
  
  
    
public   static   ImportClusterRequest   parseFrom ( CodedInputStream   input )  
   
  
  
  
   
  
  
    
public   static   ImportClusterRequest   parseFrom ( CodedInputStream   input ,   ExtensionRegistryLite   extensionRegistry )  
   
  
  
  
   
  
  
    
public   static   ImportClusterRequest   parseFrom ( InputStream   input )  
   
  
  
  
   
  
  
    
public   static   ImportClusterRequest   parseFrom ( InputStream   input ,   ExtensionRegistryLite   extensionRegistry )  
   
  
  
  
   
  parseFrom(ByteBuffer data) 
  
    
public   static   ImportClusterRequest   parseFrom ( ByteBuffer   data )  
   
  
  
  
   
  parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry) 
  
    
public   static   ImportClusterRequest   parseFrom ( ByteBuffer   data ,   ExtensionRegistryLite   extensionRegistry )  
   
  
  
  
   
  parser() 
  
    
public   static   Parser<ImportClusterRequest>   parser ()  
   
  
  Methods
   
   
  equals(Object obj) 
  
    
public   boolean   equals ( Object   obj )  
   
  
    
      
        Parameter  
       
      
        Name  
        Description  
       
      
        obj 
        Object  
       
     
  
  
  Overrides 
  
   
  getCsvImportOptions() 
  
    
public   ImportClusterRequest . CsvImportOptions   getCsvImportOptions ()  
   
   Options for importing data in CSV format.
 .google.cloud.alloydb.v1.ImportClusterRequest.CsvImportOptions csv_import_options = 7;
 
 
  
   
  getCsvImportOptionsOrBuilder() 
  
    
public   ImportClusterRequest . CsvImportOptionsOrBuilder   getCsvImportOptionsOrBuilder ()  
   
   Options for importing data in CSV format.
 .google.cloud.alloydb.v1.ImportClusterRequest.CsvImportOptions csv_import_options = 7;
 
 
  
   
  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];
 
  
    
      
        Returns  
       
      
        Type  
        Description  
       
      
        String  
        The database.
 
       
     
  
   
  getDatabaseBytes() 
  
    
public   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];
 
  
    
      
        Returns  
       
      
        Type  
        Description  
       
      
        ByteString  
        The bytes for database.
 
       
     
  
   
  getDefaultInstanceForType() 
  
    
public   ImportClusterRequest   getDefaultInstanceForType ()  
   
  
   
  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];
 
  
    
      
        Returns  
       
      
        Type  
        Description  
       
      
        String  
        The gcsUri.
 
       
     
  
   
  getGcsUriBytes() 
  
    
public   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];
 
  
    
      
        Returns  
       
      
        Type  
        Description  
       
      
        ByteString  
        The bytes for gcsUri.
 
       
     
  
   
  getImportOptionsCase() 
  
    
public   ImportClusterRequest . ImportOptionsCase   getImportOptionsCase ()  
   
  
   
  getName() 
  
   Required. The resource name of the cluster.
 
 string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
 
 
  
    
      
        Returns  
       
      
        Type  
        Description  
       
      
        String  
        The name.
 
       
     
  
   
  getNameBytes() 
  
    
public   ByteString   getNameBytes ()  
   
   Required. The resource name of the cluster.
 
 string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
 
 
  
    
      
        Returns  
       
      
        Type  
        Description  
       
      
        ByteString  
        The bytes for name.
 
       
     
  
   
  getParserForType() 
  
    
public   Parser<ImportClusterRequest>   getParserForType ()  
   
  
  Overrides 
  
   
  getSerializedSize() 
  
    
public   int   getSerializedSize ()  
   
  
    
      
        Returns  
       
      
        Type  
        Description  
       
      
        int  
         
       
     
  
  Overrides 
  
   
  getSqlImportOptions() 
  
    
public   ImportClusterRequest . SqlImportOptions   getSqlImportOptions ()  
   
   Options for importing data in SQL format.
 .google.cloud.alloydb.v1.ImportClusterRequest.SqlImportOptions sql_import_options = 4;
 
 
  
   
  getSqlImportOptionsOrBuilder() 
  
    
public   ImportClusterRequest . SqlImportOptionsOrBuilder   getSqlImportOptionsOrBuilder ()  
   
   Options for importing data in SQL format.
 .google.cloud.alloydb.v1.ImportClusterRequest.SqlImportOptions sql_import_options = 4;
 
 
  
   
  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];
 
  
    
      
        Returns  
       
      
        Type  
        Description  
       
      
        String  
        The user.
 
       
     
  
   
  getUserBytes() 
  
    
public   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];
 
  
    
      
        Returns  
       
      
        Type  
        Description  
       
      
        ByteString  
        The bytes for user.
 
       
     
  
   
  hasCsvImportOptions() 
  
    
public   boolean   hasCsvImportOptions ()  
   
   Options for importing data in CSV format.
 .google.cloud.alloydb.v1.ImportClusterRequest.CsvImportOptions csv_import_options = 7;
 
 
  
    
      
        Returns  
       
      
        Type  
        Description  
       
      
        boolean  
        Whether the csvImportOptions field is set.
 
       
     
  
   
  hasSqlImportOptions() 
  
    
public   boolean   hasSqlImportOptions ()  
   
   Options for importing data in SQL format.
 .google.cloud.alloydb.v1.ImportClusterRequest.SqlImportOptions sql_import_options = 4;
 
 
  
    
      
        Returns  
       
      
        Type  
        Description  
       
      
        boolean  
        Whether the sqlImportOptions field is set.
 
       
     
  
   
  hashCode() 
  
  
    
      
        Returns  
       
      
        Type  
        Description  
       
      
        int  
         
       
     
  
  Overrides 
  
   
  internalGetFieldAccessorTable() 
  
    
protected   GeneratedMessageV3 . FieldAccessorTable   internalGetFieldAccessorTable ()  
   
  
  Overrides 
  
   
  isInitialized() 
  
    
public   final   boolean   isInitialized ()  
   
  
  Overrides 
  
   
  newBuilderForType() 
  
    
public   ImportClusterRequest . Builder   newBuilderForType ()  
   
  
   
  newBuilderForType(GeneratedMessageV3.BuilderParent parent) 
  
    
protected   ImportClusterRequest . Builder   newBuilderForType ( GeneratedMessageV3 . BuilderParent   parent )  
   
  
  
  Overrides 
  
   
  newInstance(GeneratedMessageV3.UnusedPrivateParameter unused) 
  
    
protected   Object   newInstance ( GeneratedMessageV3 . UnusedPrivateParameter   unused )  
   
  
  
    
      
        Returns  
       
      
        Type  
        Description  
       
      
        Object  
         
       
     
  
  Overrides 
  
   
  toBuilder() 
  
    
public   ImportClusterRequest . Builder   toBuilder ()  
   
  
   
  writeTo(CodedOutputStream output) 
  
    
public   void   writeTo ( CodedOutputStream   output )  
   
  
  Overrides 
  
  
 
     
    
  
  
  
     
  
 
  
    
    
      
       
    
    
  
  
 
  Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License , and code samples are licensed under the Apache 2.0 License . For details, see the Google Developers Site Policies . Java is a registered trademark of Oracle and/or its affiliates.
  Last updated 2025-10-30 UTC.
 
 
  
  
  
    
      [[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-10-30 UTC."],[],[]]