Class ImportContext.SqlCsvImportOptions (0.1.0)

public static final class ImportContext.SqlCsvImportOptions extends GeneratedMessage implements ImportContext.SqlCsvImportOptionsOrBuilder

Protobuf type google.cloud.sql.v1beta4.ImportContext.SqlCsvImportOptions

Inheritance

Object > AbstractMessageLite<MessageType,BuilderType> > AbstractMessage > GeneratedMessage > ImportContext.SqlCsvImportOptions

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

FIELDS_TERMINATED_BY_FIELD_NUMBER

public static final int FIELDS_TERMINATED_BY_FIELD_NUMBER
Field Value
Type Description
int

LINES_TERMINATED_BY_FIELD_NUMBER

public static final int LINES_TERMINATED_BY_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 ImportContext.SqlCsvImportOptions getDefaultInstance()
Returns
Type Description
ImportContext.SqlCsvImportOptions

getDescriptor()

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

newBuilder()

public static ImportContext.SqlCsvImportOptions.Builder newBuilder()
Returns
Type Description
ImportContext.SqlCsvImportOptions.Builder

newBuilder(ImportContext.SqlCsvImportOptions prototype)

public static ImportContext.SqlCsvImportOptions.Builder newBuilder(ImportContext.SqlCsvImportOptions prototype)
Parameter
Name Description
prototype ImportContext.SqlCsvImportOptions
Returns
Type Description
ImportContext.SqlCsvImportOptions.Builder

parseDelimitedFrom(InputStream input)

public static ImportContext.SqlCsvImportOptions parseDelimitedFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
ImportContext.SqlCsvImportOptions
Exceptions
Type Description
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(byte[] data)

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

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteString data)

public static ImportContext.SqlCsvImportOptions parseFrom(ByteString data)
Parameter
Name Description
data ByteString
Returns
Type Description
ImportContext.SqlCsvImportOptions
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(CodedInputStream input)

public static ImportContext.SqlCsvImportOptions parseFrom(CodedInputStream input)
Parameter
Name Description
input CodedInputStream
Returns
Type Description
ImportContext.SqlCsvImportOptions
Exceptions
Type Description
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(InputStream input)

public static ImportContext.SqlCsvImportOptions parseFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
ImportContext.SqlCsvImportOptions
Exceptions
Type Description
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteBuffer data)

public static ImportContext.SqlCsvImportOptions parseFrom(ByteBuffer data)
Parameter
Name Description
data ByteBuffer
Returns
Type Description
ImportContext.SqlCsvImportOptions
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

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

parser()

public static Parser<ImportContext.SqlCsvImportOptions> parser()
Returns
Type Description
Parser<SqlCsvImportOptions>

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)

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;

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)

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;

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()

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;

Returns
Type Description
int

The count of columns.

getColumnsList()

public ProtocolStringList getColumnsList()

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;

Returns
Type Description
ProtocolStringList

A list containing the columns.

getDefaultInstanceForType()

public ImportContext.SqlCsvImportOptions getDefaultInstanceForType()
Returns
Type Description
ImportContext.SqlCsvImportOptions

getEscapeCharacter()

public String getEscapeCharacter()

Specifies the character that should appear before a data character that needs to be escaped.

string escape_character = 4;

Returns
Type Description
String

The escapeCharacter.

getEscapeCharacterBytes()

public ByteString getEscapeCharacterBytes()

Specifies the character that should appear before a data character that needs to be escaped.

string escape_character = 4;

Returns
Type Description
ByteString

The bytes for escapeCharacter.

getFieldsTerminatedBy()

public String getFieldsTerminatedBy()

Specifies the character that separates columns within each row (line) of the file.

string fields_terminated_by = 6;

Returns
Type Description
String

The fieldsTerminatedBy.

getFieldsTerminatedByBytes()

public ByteString getFieldsTerminatedByBytes()

Specifies the character that separates columns within each row (line) of the file.

string fields_terminated_by = 6;

Returns
Type Description
ByteString

The bytes for fieldsTerminatedBy.

getLinesTerminatedBy()

public String getLinesTerminatedBy()

This is used to separate lines. If a line does not contain all fields, the rest of the columns are set to their default values.

string lines_terminated_by = 8;

Returns
Type Description
String

The linesTerminatedBy.

getLinesTerminatedByBytes()

public ByteString getLinesTerminatedByBytes()

This is used to separate lines. If a line does not contain all fields, the rest of the columns are set to their default values.

string lines_terminated_by = 8;

Returns
Type Description
ByteString

The bytes for linesTerminatedBy.

getParserForType()

public Parser<ImportContext.SqlCsvImportOptions> getParserForType()
Returns
Type Description
Parser<SqlCsvImportOptions>
Overrides

getQuoteCharacter()

public String getQuoteCharacter()

Specifies the quoting character to be used when a data value is quoted.

string quote_character = 5;

Returns
Type Description
String

The quoteCharacter.

getQuoteCharacterBytes()

public ByteString getQuoteCharacterBytes()

Specifies the quoting character to be used when a data value is quoted.

string quote_character = 5;

Returns
Type Description
ByteString

The bytes for quoteCharacter.

getSerializedSize()

public int getSerializedSize()
Returns
Type Description
int
Overrides

getTable()

public String getTable()

The table to which CSV data is imported.

string table = 1;

Returns
Type Description
String

The table.

getTableBytes()

public ByteString getTableBytes()

The table to which CSV data is imported.

string table = 1;

Returns
Type Description
ByteString

The bytes for table.

hashCode()

public int hashCode()
Returns
Type Description
int
Overrides

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

newBuilderForType()

public ImportContext.SqlCsvImportOptions.Builder newBuilderForType()
Returns
Type Description
ImportContext.SqlCsvImportOptions.Builder

newBuilderForType(AbstractMessage.BuilderParent parent)

protected ImportContext.SqlCsvImportOptions.Builder newBuilderForType(AbstractMessage.BuilderParent parent)
Parameter
Name Description
parent BuilderParent
Returns
Type Description
ImportContext.SqlCsvImportOptions.Builder
Overrides

toBuilder()

public ImportContext.SqlCsvImportOptions.Builder toBuilder()
Returns
Type Description
ImportContext.SqlCsvImportOptions.Builder

writeTo(CodedOutputStream output)

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