Class ImportClusterRequest.CsvImportOptions

java.lang.Object
com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessage
com.google.protobuf.GeneratedMessage
com.google.cloud.alloydb.v1beta.ImportClusterRequest.CsvImportOptions
All Implemented Interfaces:
ImportClusterRequest.CsvImportOptionsOrBuilder, com.google.protobuf.Message, com.google.protobuf.MessageLite, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Serializable
Enclosing class:
ImportClusterRequest

public static final class ImportClusterRequest.CsvImportOptions extends com.google.protobuf.GeneratedMessage implements ImportClusterRequest.CsvImportOptionsOrBuilder
 Options for importing data in CSV format.
 
Protobuf type google.cloud.alloydb.v1beta.ImportClusterRequest.CsvImportOptions
See Also:
  • Field Details

    • TABLE_FIELD_NUMBER

      public static final int TABLE_FIELD_NUMBER
      See Also:
    • COLUMNS_FIELD_NUMBER

      public static final int COLUMNS_FIELD_NUMBER
      See Also:
    • FIELD_DELIMITER_FIELD_NUMBER

      public static final int FIELD_DELIMITER_FIELD_NUMBER
      See Also:
    • QUOTE_CHARACTER_FIELD_NUMBER

      public static final int QUOTE_CHARACTER_FIELD_NUMBER
      See Also:
    • ESCAPE_CHARACTER_FIELD_NUMBER

      public static final int ESCAPE_CHARACTER_FIELD_NUMBER
      See Also:
  • Method Details

    • getDescriptor

      public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
    • internalGetFieldAccessorTable

      protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
      Specified by:
      internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessage
    • getTable

      public String getTable()
       Required. The database table to import CSV file into.
       
      string table = 1 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getTable in interface ImportClusterRequest.CsvImportOptionsOrBuilder
      Returns:
      The table.
    • getTableBytes

      public com.google.protobuf.ByteString getTableBytes()
       Required. The database table to import CSV file into.
       
      string table = 1 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getTableBytes in interface ImportClusterRequest.CsvImportOptionsOrBuilder
      Returns:
      The bytes for table.
    • getColumnsList

      public com.google.protobuf.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];
      Specified by:
      getColumnsList in interface ImportClusterRequest.CsvImportOptionsOrBuilder
      Returns:
      A list containing the columns.
    • 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];
      Specified by:
      getColumnsCount in interface ImportClusterRequest.CsvImportOptionsOrBuilder
      Returns:
      The count of columns.
    • getColumns

      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];
      Specified by:
      getColumns in interface ImportClusterRequest.CsvImportOptionsOrBuilder
      Parameters:
      index - The index of the element to return.
      Returns:
      The columns at the given index.
    • getColumnsBytes

      public com.google.protobuf.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];
      Specified by:
      getColumnsBytes in interface ImportClusterRequest.CsvImportOptionsOrBuilder
      Parameters:
      index - The index of the value to return.
      Returns:
      The bytes of the columns at the given index.
    • 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];
      Specified by:
      getFieldDelimiter in interface ImportClusterRequest.CsvImportOptionsOrBuilder
      Returns:
      The fieldDelimiter.
    • getFieldDelimiterBytes

      public com.google.protobuf.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];
      Specified by:
      getFieldDelimiterBytes in interface ImportClusterRequest.CsvImportOptionsOrBuilder
      Returns:
      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];
      Specified by:
      getQuoteCharacter in interface ImportClusterRequest.CsvImportOptionsOrBuilder
      Returns:
      The quoteCharacter.
    • getQuoteCharacterBytes

      public com.google.protobuf.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];
      Specified by:
      getQuoteCharacterBytes in interface ImportClusterRequest.CsvImportOptionsOrBuilder
      Returns:
      The bytes for quoteCharacter.
    • 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];
      Specified by:
      getEscapeCharacter in interface ImportClusterRequest.CsvImportOptionsOrBuilder
      Returns:
      The escapeCharacter.
    • getEscapeCharacterBytes

      public com.google.protobuf.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];
      Specified by:
      getEscapeCharacterBytes in interface ImportClusterRequest.CsvImportOptionsOrBuilder
      Returns:
      The bytes for escapeCharacter.
    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.google.protobuf.GeneratedMessage
    • writeTo

      public void writeTo(com.google.protobuf.CodedOutputStream output) throws IOException
      Specified by:
      writeTo in interface com.google.protobuf.MessageLite
      Overrides:
      writeTo in class com.google.protobuf.GeneratedMessage
      Throws:
      IOException
    • getSerializedSize

      public int getSerializedSize()
      Specified by:
      getSerializedSize in interface com.google.protobuf.MessageLite
      Overrides:
      getSerializedSize in class com.google.protobuf.GeneratedMessage
    • equals

      public boolean equals(Object obj)
      Specified by:
      equals in interface com.google.protobuf.Message
      Overrides:
      equals in class com.google.protobuf.AbstractMessage
    • hashCode

      public int hashCode()
      Specified by:
      hashCode in interface com.google.protobuf.Message
      Overrides:
      hashCode in class com.google.protobuf.AbstractMessage
    • parseFrom

      public static ImportClusterRequest.CsvImportOptions parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static ImportClusterRequest.CsvImportOptions parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static ImportClusterRequest.CsvImportOptions parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static ImportClusterRequest.CsvImportOptions parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static ImportClusterRequest.CsvImportOptions parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static ImportClusterRequest.CsvImportOptions parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static ImportClusterRequest.CsvImportOptions parseFrom(InputStream input) throws IOException
      Throws:
      IOException
    • parseFrom

      public static ImportClusterRequest.CsvImportOptions parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • parseDelimitedFrom

      public static ImportClusterRequest.CsvImportOptions parseDelimitedFrom(InputStream input) throws IOException
      Throws:
      IOException
    • parseDelimitedFrom

      public static ImportClusterRequest.CsvImportOptions parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • parseFrom

      public static ImportClusterRequest.CsvImportOptions parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
      Throws:
      IOException
    • parseFrom

      public static ImportClusterRequest.CsvImportOptions parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • newBuilderForType

      Specified by:
      newBuilderForType in interface com.google.protobuf.Message
      Specified by:
      newBuilderForType in interface com.google.protobuf.MessageLite
    • newBuilder

    • newBuilder

    • toBuilder

      Specified by:
      toBuilder in interface com.google.protobuf.Message
      Specified by:
      toBuilder in interface com.google.protobuf.MessageLite
    • newBuilderForType

      protected ImportClusterRequest.CsvImportOptions.Builder newBuilderForType(com.google.protobuf.AbstractMessage.BuilderParent parent)
      Overrides:
      newBuilderForType in class com.google.protobuf.AbstractMessage
    • getDefaultInstance

      public static ImportClusterRequest.CsvImportOptions getDefaultInstance()
    • parser

      public static com.google.protobuf.Parser<ImportClusterRequest.CsvImportOptions> parser()
    • getParserForType

      public com.google.protobuf.Parser<ImportClusterRequest.CsvImportOptions> getParserForType()
      Specified by:
      getParserForType in interface com.google.protobuf.Message
      Specified by:
      getParserForType in interface com.google.protobuf.MessageLite
      Overrides:
      getParserForType in class com.google.protobuf.GeneratedMessage
    • getDefaultInstanceForType

      public ImportClusterRequest.CsvImportOptions getDefaultInstanceForType()
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder