Class ImportClusterRequest.CsvImportOptions.Builder

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

public static final class ImportClusterRequest.CsvImportOptions.Builder extends com.google.protobuf.GeneratedMessage.Builder<ImportClusterRequest.CsvImportOptions.Builder> implements ImportClusterRequest.CsvImportOptionsOrBuilder
 Options for importing data in CSV format.
 
Protobuf type google.cloud.alloydb.v1beta.ImportClusterRequest.CsvImportOptions
  • 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.Builder<ImportClusterRequest.CsvImportOptions.Builder>
    • clear

      Specified by:
      clear in interface com.google.protobuf.Message.Builder
      Specified by:
      clear in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      clear in class com.google.protobuf.GeneratedMessage.Builder<ImportClusterRequest.CsvImportOptions.Builder>
    • getDescriptorForType

      public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
      Specified by:
      getDescriptorForType in interface com.google.protobuf.Message.Builder
      Specified by:
      getDescriptorForType in interface com.google.protobuf.MessageOrBuilder
      Overrides:
      getDescriptorForType in class com.google.protobuf.GeneratedMessage.Builder<ImportClusterRequest.CsvImportOptions.Builder>
    • getDefaultInstanceForType

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

      Specified by:
      build in interface com.google.protobuf.Message.Builder
      Specified by:
      build in interface com.google.protobuf.MessageLite.Builder
    • buildPartial

      Specified by:
      buildPartial in interface com.google.protobuf.Message.Builder
      Specified by:
      buildPartial in interface com.google.protobuf.MessageLite.Builder
    • mergeFrom

      public ImportClusterRequest.CsvImportOptions.Builder mergeFrom(com.google.protobuf.Message other)
      Specified by:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Overrides:
      mergeFrom in class com.google.protobuf.AbstractMessage.Builder<ImportClusterRequest.CsvImportOptions.Builder>
    • mergeFrom

    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.google.protobuf.GeneratedMessage.Builder<ImportClusterRequest.CsvImportOptions.Builder>
    • mergeFrom

      public ImportClusterRequest.CsvImportOptions.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Specified by:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Specified by:
      mergeFrom in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      mergeFrom in class com.google.protobuf.AbstractMessage.Builder<ImportClusterRequest.CsvImportOptions.Builder>
      Throws:
      IOException
    • 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.
    • setTable

       Required. The database table to import CSV file into.
       
      string table = 1 [(.google.api.field_behavior) = REQUIRED];
      Parameters:
      value - The table to set.
      Returns:
      This builder for chaining.
    • clearTable

       Required. The database table to import CSV file into.
       
      string table = 1 [(.google.api.field_behavior) = REQUIRED];
      Returns:
      This builder for chaining.
    • setTableBytes

      public ImportClusterRequest.CsvImportOptions.Builder setTableBytes(com.google.protobuf.ByteString value)
       Required. The database table to import CSV file into.
       
      string table = 1 [(.google.api.field_behavior) = REQUIRED];
      Parameters:
      value - The bytes for table to set.
      Returns:
      This builder for chaining.
    • 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.
    • setColumns

      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:
      index - The index to set the value at.
      value - The columns to set.
      Returns:
      This builder for chaining.
    • addColumns

       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:
      value - The columns to add.
      Returns:
      This builder for chaining.
    • addAllColumns

       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:
      values - The columns to add.
      Returns:
      This builder for chaining.
    • 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:
      This builder for chaining.
    • addColumnsBytes

      public ImportClusterRequest.CsvImportOptions.Builder addColumnsBytes(com.google.protobuf.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];
      Parameters:
      value - The bytes of the columns to add.
      Returns:
      This builder for chaining.
    • 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.
    • setFieldDelimiter

      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];
      Parameters:
      value - The fieldDelimiter to set.
      Returns:
      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:
      This builder for chaining.
    • setFieldDelimiterBytes

      public ImportClusterRequest.CsvImportOptions.Builder setFieldDelimiterBytes(com.google.protobuf.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];
      Parameters:
      value - The bytes for fieldDelimiter to set.
      Returns:
      This builder for chaining.
    • 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.
    • setQuoteCharacter

      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];
      Parameters:
      value - The quoteCharacter to set.
      Returns:
      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:
      This builder for chaining.
    • setQuoteCharacterBytes

      public ImportClusterRequest.CsvImportOptions.Builder setQuoteCharacterBytes(com.google.protobuf.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];
      Parameters:
      value - The bytes for quoteCharacter to set.
      Returns:
      This builder for chaining.
    • 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.
    • setEscapeCharacter

      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];
      Parameters:
      value - The escapeCharacter to set.
      Returns:
      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:
      This builder for chaining.
    • setEscapeCharacterBytes

      public ImportClusterRequest.CsvImportOptions.Builder setEscapeCharacterBytes(com.google.protobuf.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];
      Parameters:
      value - The bytes for escapeCharacter to set.
      Returns:
      This builder for chaining.