Class ImportClusterRequest.CsvImportOptions (0.52.0)

public static final class ImportClusterRequest.CsvImportOptions extends GeneratedMessageV3 implements ImportClusterRequest.CsvImportOptionsOrBuilder

Options for importing data in CSV format.

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

Inheritance

Object > AbstractMessageLite<MessageType,BuilderType> > AbstractMessage > GeneratedMessageV3 > ImportClusterRequest.CsvImportOptions

Static Fields

COLUMNS_FIELD_NUMBER

public static final int COLUMNS_FIELD_NUMBER
Field Value
Type Description
int

ESCAPE_CHARACTER_FIELD_NUMBER

public static final int ESCAPE_CHARACTER_FIELD_NUMBER
Field Value
Type Description
int

FIELD_DELIMITER_FIELD_NUMBER

public static final int FIELD_DELIMITER_FIELD_NUMBER
Field Value
Type Description
int

QUOTE_CHARACTER_FIELD_NUMBER

public static final int QUOTE_CHARACTER_FIELD_NUMBER
Field Value
Type Description
int

TABLE_FIELD_NUMBER

public static final int TABLE_FIELD_NUMBER
Field Value
Type Description
int

Static Methods

getDefaultInstance()

public static ImportClusterRequest.CsvImportOptions getDefaultInstance()
Returns
Type Description
ImportClusterRequest.CsvImportOptions

getDescriptor()

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

newBuilder()

public static ImportClusterRequest.CsvImportOptions.Builder newBuilder()
Returns
Type Description
ImportClusterRequest.CsvImportOptions.Builder

newBuilder(ImportClusterRequest.CsvImportOptions prototype)

public static ImportClusterRequest.CsvImportOptions.Builder newBuilder(ImportClusterRequest.CsvImportOptions prototype)
Parameter
Name Description
prototype ImportClusterRequest.CsvImportOptions
Returns
Type Description
ImportClusterRequest.CsvImportOptions.Builder

parseDelimitedFrom(InputStream input)

public static ImportClusterRequest.CsvImportOptions parseDelimitedFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
ImportClusterRequest.CsvImportOptions
Exceptions
Type Description
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static ImportClusterRequest.CsvImportOptions parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
ImportClusterRequest.CsvImportOptions
Exceptions
Type Description
IOException

parseFrom(byte[] data)

public static ImportClusterRequest.CsvImportOptions parseFrom(byte[] data)
Parameter
Name Description
data byte[]
Returns
Type Description
ImportClusterRequest.CsvImportOptions
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static ImportClusterRequest.CsvImportOptions parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data byte[]
extensionRegistry ExtensionRegistryLite
Returns
Type Description
ImportClusterRequest.CsvImportOptions
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data)

public static ImportClusterRequest.CsvImportOptions parseFrom(ByteString data)
Parameter
Name Description
data ByteString
Returns
Type Description
ImportClusterRequest.CsvImportOptions
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static ImportClusterRequest.CsvImportOptions parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteString
extensionRegistry ExtensionRegistryLite
Returns
Type Description
ImportClusterRequest.CsvImportOptions
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static ImportClusterRequest.CsvImportOptions parseFrom(CodedInputStream input)
Parameter
Name Description
input CodedInputStream
Returns
Type Description
ImportClusterRequest.CsvImportOptions
Exceptions
Type Description
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static ImportClusterRequest.CsvImportOptions parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
ImportClusterRequest.CsvImportOptions
Exceptions
Type Description
IOException

parseFrom(InputStream input)

public static ImportClusterRequest.CsvImportOptions parseFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
ImportClusterRequest.CsvImportOptions
Exceptions
Type Description
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static ImportClusterRequest.CsvImportOptions parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
ImportClusterRequest.CsvImportOptions
Exceptions
Type Description
IOException

parseFrom(ByteBuffer data)

public static ImportClusterRequest.CsvImportOptions parseFrom(ByteBuffer data)
Parameter
Name Description
data ByteBuffer
Returns
Type Description
ImportClusterRequest.CsvImportOptions
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static ImportClusterRequest.CsvImportOptions parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteBuffer
extensionRegistry ExtensionRegistryLite
Returns
Type Description
ImportClusterRequest.CsvImportOptions
Exceptions
Type Description
InvalidProtocolBufferException

parser()

public static Parser<ImportClusterRequest.CsvImportOptions> parser()
Returns
Type Description
Parser<CsvImportOptions>

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
Name Description
obj Object
Returns
Type Description
boolean
Overrides

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

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.

getParserForType()

public Parser<ImportClusterRequest.CsvImportOptions> getParserForType()
Returns
Type Description
Parser<CsvImportOptions>
Overrides

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.

getSerializedSize()

public int getSerializedSize()
Returns
Type Description
int
Overrides

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.

hashCode()

public int hashCode()
Returns
Type Description
int
Overrides

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

newBuilderForType()

public ImportClusterRequest.CsvImportOptions.Builder newBuilderForType()
Returns
Type Description
ImportClusterRequest.CsvImportOptions.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protected ImportClusterRequest.CsvImportOptions.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
Name Description
parent BuilderParent
Returns
Type Description
ImportClusterRequest.CsvImportOptions.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
Name Description
unused UnusedPrivateParameter
Returns
Type Description
Object
Overrides

toBuilder()

public ImportClusterRequest.CsvImportOptions.Builder toBuilder()
Returns
Type Description
ImportClusterRequest.CsvImportOptions.Builder

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
Name Description
output CodedOutputStream
Overrides
Exceptions
Type Description
IOException