Package com.google.cloud.alloydb.v1beta
Interface ImportClusterRequestOrBuilder
- All Superinterfaces:
com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder
- All Known Implementing Classes:
ImportClusterRequest,ImportClusterRequest.Builder
@Generated
public interface ImportClusterRequestOrBuilder
extends com.google.protobuf.MessageOrBuilder
-
Method Summary
Modifier and TypeMethodDescriptionOptions for importing data in CSV format.Options for importing data in CSV format.Optional.com.google.protobuf.ByteStringOptional.Required.com.google.protobuf.ByteStringRequired.getName()Required.com.google.protobuf.ByteStringRequired.Options for importing data in SQL format.Options for importing data in SQL format.getUser()Optional.com.google.protobuf.ByteStringOptional.booleanOptions for importing data in CSV format.booleanOptions for importing data in SQL format.Methods inherited from interface com.google.protobuf.MessageLiteOrBuilder
isInitializedMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getDefaultInstanceForType, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
hasSqlImportOptions
boolean hasSqlImportOptions()Options for importing data in SQL format.
.google.cloud.alloydb.v1beta.ImportClusterRequest.SqlImportOptions sql_import_options = 4;- Returns:
- Whether the sqlImportOptions field is set.
-
getSqlImportOptions
ImportClusterRequest.SqlImportOptions getSqlImportOptions()Options for importing data in SQL format.
.google.cloud.alloydb.v1beta.ImportClusterRequest.SqlImportOptions sql_import_options = 4;- Returns:
- The sqlImportOptions.
-
getSqlImportOptionsOrBuilder
ImportClusterRequest.SqlImportOptionsOrBuilder getSqlImportOptionsOrBuilder()Options for importing data in SQL format.
.google.cloud.alloydb.v1beta.ImportClusterRequest.SqlImportOptions sql_import_options = 4; -
hasCsvImportOptions
boolean hasCsvImportOptions()Options for importing data in CSV format.
.google.cloud.alloydb.v1beta.ImportClusterRequest.CsvImportOptions csv_import_options = 7;- Returns:
- Whether the csvImportOptions field is set.
-
getCsvImportOptions
ImportClusterRequest.CsvImportOptions getCsvImportOptions()Options for importing data in CSV format.
.google.cloud.alloydb.v1beta.ImportClusterRequest.CsvImportOptions csv_import_options = 7;- Returns:
- The csvImportOptions.
-
getCsvImportOptionsOrBuilder
ImportClusterRequest.CsvImportOptionsOrBuilder getCsvImportOptionsOrBuilder()Options for importing data in CSV format.
.google.cloud.alloydb.v1beta.ImportClusterRequest.CsvImportOptions csv_import_options = 7; -
getName
String getName()Required. The resource name of the cluster.
string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }- Returns:
- The name.
-
getNameBytes
com.google.protobuf.ByteString getNameBytes()Required. The resource name of the cluster.
string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }- Returns:
- The bytes for name.
-
getGcsUri
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:
- The gcsUri.
-
getGcsUriBytes
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];- Returns:
- The bytes for gcsUri.
-
getDatabase
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:
- The database.
-
getDatabaseBytes
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];- Returns:
- The bytes for database.
-
getUser
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];- Returns:
- The user.
-
getUserBytes
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];- Returns:
- The bytes for user.
-
getImportOptionsCase
ImportClusterRequest.ImportOptionsCase getImportOptionsCase()
-