Class ImportClusterRequest.CsvImportOptions.Builder (0.72.0)

public static final class ImportClusterRequest.CsvImportOptions.Builder extends GeneratedMessage.Builder<ImportClusterRequest.CsvImportOptions.Builder> implements ImportClusterRequest.CsvImportOptionsOrBuilder

Options for importing data in CSV format.

Protobuf type google.cloud.alloydb.v1beta.ImportClusterRequest.CsvImportOptions

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
Type Description
Descriptor

Methods

addAllColumns(Iterable<String> values)

public ImportClusterRequest.CsvImportOptions.Builder addAllColumns(Iterable<String> values)

Optional. The columns to which CSV data is imported. If not specified, all columns of the database table are loaded with CSV data.

repeated string columns = 2 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
values Iterable<String>

The columns to add.

Returns
Type Description
ImportClusterRequest.CsvImportOptions.Builder

This builder for chaining.

addColumns(String value)

public ImportClusterRequest.CsvImportOptions.Builder addColumns(String value)

Optional. The columns to which CSV data is imported. If not specified, all columns of the database table are loaded with CSV data.

repeated string columns = 2 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value String

The columns to add.

Returns
Type Description
ImportClusterRequest.CsvImportOptions.Builder

This builder for chaining.

addColumnsBytes(ByteString value)

public ImportClusterRequest.CsvImportOptions.Builder addColumnsBytes(ByteString value)

Optional. The columns to which CSV data is imported. If not specified, all columns of the database table are loaded with CSV data.

repeated string columns = 2 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value ByteString

The bytes of the columns to add.

Returns
Type Description
ImportClusterRequest.CsvImportOptions.Builder

This builder for chaining.

build()

public ImportClusterRequest.CsvImportOptions build()
Returns
Type Description
ImportClusterRequest.CsvImportOptions

buildPartial()

public ImportClusterRequest.CsvImportOptions buildPartial()
Returns
Type Description
ImportClusterRequest.CsvImportOptions

clear()

public ImportClusterRequest.CsvImportOptions.Builder clear()
Returns
Type Description
ImportClusterRequest.CsvImportOptions.Builder
Overrides

clearColumns()

public ImportClusterRequest.CsvImportOptions.Builder clearColumns()

Optional. The columns to which CSV data is imported. If not specified, all columns of the database table are loaded with CSV data.

repeated string columns = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
ImportClusterRequest.CsvImportOptions.Builder

This builder for chaining.

clearEscapeCharacter()

public ImportClusterRequest.CsvImportOptions.Builder clearEscapeCharacter()

Optional. Specifies the character that should appear before a data character that needs to be escaped. The default is same as quote character. The value of this argument has to be a character in Hex ASCII Code.

string escape_character = 5 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
ImportClusterRequest.CsvImportOptions.Builder

This builder for chaining.

clearFieldDelimiter()

public ImportClusterRequest.CsvImportOptions.Builder clearFieldDelimiter()

Optional. Specifies the character that separates columns within each row (line) of the file. The default is comma. The value of this argument has to be a character in Hex ASCII Code.

string field_delimiter = 3 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
ImportClusterRequest.CsvImportOptions.Builder

This builder for chaining.

clearQuoteCharacter()

public ImportClusterRequest.CsvImportOptions.Builder clearQuoteCharacter()

Optional. Specifies the quoting character to be used when a data value is quoted. The default is double-quote. The value of this argument has to be a character in Hex ASCII Code.

string quote_character = 4 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
ImportClusterRequest.CsvImportOptions.Builder

This builder for chaining.

clearTable()

public ImportClusterRequest.CsvImportOptions.Builder clearTable()

Required. The database table to import CSV file into.

string table = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
ImportClusterRequest.CsvImportOptions.Builder

This builder for chaining.

getColumns(int index)

public String getColumns(int index)

Optional. The columns to which CSV data is imported. If not specified, all columns of the database table are loaded with CSV data.

repeated string columns = 2 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
index int

The index of the element to return.

Returns
Type Description
String

The columns at the given index.

getColumnsBytes(int index)

public ByteString getColumnsBytes(int index)

Optional. The columns to which CSV data is imported. If not specified, all columns of the database table are loaded with CSV data.

repeated string columns = 2 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
index int

The index of the value to return.

Returns
Type Description
ByteString

The bytes of the columns at the given index.

getColumnsCount()

public int getColumnsCount()

Optional. The columns to which CSV data is imported. If not specified, all columns of the database table are loaded with CSV data.

repeated string columns = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
int

The count of columns.

getColumnsList()

public ProtocolStringList getColumnsList()

Optional. The columns to which CSV data is imported. If not specified, all columns of the database table are loaded with CSV data.

repeated string columns = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
ProtocolStringList

A list containing the columns.

getDefaultInstanceForType()

public ImportClusterRequest.CsvImportOptions getDefaultInstanceForType()
Returns
Type Description
ImportClusterRequest.CsvImportOptions

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
Overrides

getEscapeCharacter()

public String getEscapeCharacter()

Optional. Specifies the character that should appear before a data character that needs to be escaped. The default is same as quote character. The value of this argument has to be a character in Hex ASCII Code.

string escape_character = 5 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
String

The escapeCharacter.

getEscapeCharacterBytes()

public ByteString getEscapeCharacterBytes()

Optional. Specifies the character that should appear before a data character that needs to be escaped. The default is same as quote character. The value of this argument has to be a character in Hex ASCII Code.

string escape_character = 5 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
ByteString

The bytes for escapeCharacter.

getFieldDelimiter()

public String getFieldDelimiter()

Optional. Specifies the character that separates columns within each row (line) of the file. The default is comma. The value of this argument has to be a character in Hex ASCII Code.

string field_delimiter = 3 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
String

The fieldDelimiter.

getFieldDelimiterBytes()

public ByteString getFieldDelimiterBytes()

Optional. Specifies the character that separates columns within each row (line) of the file. The default is comma. The value of this argument has to be a character in Hex ASCII Code.

string field_delimiter = 3 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
ByteString

The bytes for fieldDelimiter.

getQuoteCharacter()

public String getQuoteCharacter()

Optional. Specifies the quoting character to be used when a data value is quoted. The default is double-quote. The value of this argument has to be a character in Hex ASCII Code.

string quote_character = 4 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
String

The quoteCharacter.

getQuoteCharacterBytes()

public ByteString getQuoteCharacterBytes()

Optional. Specifies the quoting character to be used when a data value is quoted. The default is double-quote. The value of this argument has to be a character in Hex ASCII Code.

string quote_character = 4 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
ByteString

The bytes for quoteCharacter.

getTable()

public String getTable()

Required. The database table to import CSV file into.

string table = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
String

The table.

getTableBytes()

public ByteString getTableBytes()

Required. The database table to import CSV file into.

string table = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
ByteString

The bytes for table.

internalGetFieldAccessorTable()

protected GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(ImportClusterRequest.CsvImportOptions other)

public ImportClusterRequest.CsvImportOptions.Builder mergeFrom(ImportClusterRequest.CsvImportOptions other)
Parameter
Name Description
other ImportClusterRequest.CsvImportOptions
Returns
Type Description
ImportClusterRequest.CsvImportOptions.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public ImportClusterRequest.CsvImportOptions.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
ImportClusterRequest.CsvImportOptions.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

public ImportClusterRequest.CsvImportOptions.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
ImportClusterRequest.CsvImportOptions.Builder
Overrides

setColumns(int index, String value)

public ImportClusterRequest.CsvImportOptions.Builder setColumns(int index, String value)

Optional. The columns to which CSV data is imported. If not specified, all columns of the database table are loaded with CSV data.

repeated string columns = 2 [(.google.api.field_behavior) = OPTIONAL];

Parameters
Name Description
index int

The index to set the value at.

value String

The columns to set.

Returns
Type Description
ImportClusterRequest.CsvImportOptions.Builder

This builder for chaining.

setEscapeCharacter(String value)

public ImportClusterRequest.CsvImportOptions.Builder setEscapeCharacter(String value)

Optional. Specifies the character that should appear before a data character that needs to be escaped. The default is same as quote character. The value of this argument has to be a character in Hex ASCII Code.

string escape_character = 5 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value String

The escapeCharacter to set.

Returns
Type Description
ImportClusterRequest.CsvImportOptions.Builder

This builder for chaining.

setEscapeCharacterBytes(ByteString value)

public ImportClusterRequest.CsvImportOptions.Builder setEscapeCharacterBytes(ByteString value)

Optional. Specifies the character that should appear before a data character that needs to be escaped. The default is same as quote character. The value of this argument has to be a character in Hex ASCII Code.

string escape_character = 5 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value ByteString

The bytes for escapeCharacter to set.

Returns
Type Description
ImportClusterRequest.CsvImportOptions.Builder

This builder for chaining.

setFieldDelimiter(String value)

public ImportClusterRequest.CsvImportOptions.Builder setFieldDelimiter(String value)

Optional. Specifies the character that separates columns within each row (line) of the file. The default is comma. The value of this argument has to be a character in Hex ASCII Code.

string field_delimiter = 3 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value String

The fieldDelimiter to set.

Returns
Type Description
ImportClusterRequest.CsvImportOptions.Builder

This builder for chaining.

setFieldDelimiterBytes(ByteString value)

public ImportClusterRequest.CsvImportOptions.Builder setFieldDelimiterBytes(ByteString value)

Optional. Specifies the character that separates columns within each row (line) of the file. The default is comma. The value of this argument has to be a character in Hex ASCII Code.

string field_delimiter = 3 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value ByteString

The bytes for fieldDelimiter to set.

Returns
Type Description
ImportClusterRequest.CsvImportOptions.Builder

This builder for chaining.

setQuoteCharacter(String value)

public ImportClusterRequest.CsvImportOptions.Builder setQuoteCharacter(String value)

Optional. Specifies the quoting character to be used when a data value is quoted. The default is double-quote. The value of this argument has to be a character in Hex ASCII Code.

string quote_character = 4 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value String

The quoteCharacter to set.

Returns
Type Description
ImportClusterRequest.CsvImportOptions.Builder

This builder for chaining.

setQuoteCharacterBytes(ByteString value)

public ImportClusterRequest.CsvImportOptions.Builder setQuoteCharacterBytes(ByteString value)

Optional. Specifies the quoting character to be used when a data value is quoted. The default is double-quote. The value of this argument has to be a character in Hex ASCII Code.

string quote_character = 4 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value ByteString

The bytes for quoteCharacter to set.

Returns
Type Description
ImportClusterRequest.CsvImportOptions.Builder

This builder for chaining.

setTable(String value)

public ImportClusterRequest.CsvImportOptions.Builder setTable(String value)

Required. The database table to import CSV file into.

string table = 1 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value String

The table to set.

Returns
Type Description
ImportClusterRequest.CsvImportOptions.Builder

This builder for chaining.

setTableBytes(ByteString value)

public ImportClusterRequest.CsvImportOptions.Builder setTableBytes(ByteString value)

Required. The database table to import CSV file into.

string table = 1 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value ByteString

The bytes for table to set.

Returns
Type Description
ImportClusterRequest.CsvImportOptions.Builder

This builder for chaining.