Class StorageFormat.CsvOptions.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<StorageFormat.CsvOptions.Builder>
com.google.cloud.dataplex.v1.StorageFormat.CsvOptions.Builder
All Implemented Interfaces:
StorageFormat.CsvOptionsOrBuilder, com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Cloneable
Enclosing class:
StorageFormat.CsvOptions

public static final class StorageFormat.CsvOptions.Builder extends com.google.protobuf.GeneratedMessage.Builder<StorageFormat.CsvOptions.Builder> implements StorageFormat.CsvOptionsOrBuilder
 Describes CSV and similar semi-structured data formats.
 
Protobuf type google.cloud.dataplex.v1.StorageFormat.CsvOptions
  • 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<StorageFormat.CsvOptions.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<StorageFormat.CsvOptions.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<StorageFormat.CsvOptions.Builder>
    • getDefaultInstanceForType

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

      public StorageFormat.CsvOptions build()
      Specified by:
      build in interface com.google.protobuf.Message.Builder
      Specified by:
      build in interface com.google.protobuf.MessageLite.Builder
    • buildPartial

      public StorageFormat.CsvOptions buildPartial()
      Specified by:
      buildPartial in interface com.google.protobuf.Message.Builder
      Specified by:
      buildPartial in interface com.google.protobuf.MessageLite.Builder
    • mergeFrom

      public StorageFormat.CsvOptions.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<StorageFormat.CsvOptions.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<StorageFormat.CsvOptions.Builder>
    • mergeFrom

      public StorageFormat.CsvOptions.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<StorageFormat.CsvOptions.Builder>
      Throws:
      IOException
    • getEncoding

      public String getEncoding()
       Optional. The character encoding of the data. Accepts "US-ASCII",
       "UTF-8", and "ISO-8859-1". Defaults to UTF-8 if unspecified.
       
      string encoding = 1 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getEncoding in interface StorageFormat.CsvOptionsOrBuilder
      Returns:
      The encoding.
    • getEncodingBytes

      public com.google.protobuf.ByteString getEncodingBytes()
       Optional. The character encoding of the data. Accepts "US-ASCII",
       "UTF-8", and "ISO-8859-1". Defaults to UTF-8 if unspecified.
       
      string encoding = 1 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getEncodingBytes in interface StorageFormat.CsvOptionsOrBuilder
      Returns:
      The bytes for encoding.
    • setEncoding

      public StorageFormat.CsvOptions.Builder setEncoding(String value)
       Optional. The character encoding of the data. Accepts "US-ASCII",
       "UTF-8", and "ISO-8859-1". Defaults to UTF-8 if unspecified.
       
      string encoding = 1 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      value - The encoding to set.
      Returns:
      This builder for chaining.
    • clearEncoding

      public StorageFormat.CsvOptions.Builder clearEncoding()
       Optional. The character encoding of the data. Accepts "US-ASCII",
       "UTF-8", and "ISO-8859-1". Defaults to UTF-8 if unspecified.
       
      string encoding = 1 [(.google.api.field_behavior) = OPTIONAL];
      Returns:
      This builder for chaining.
    • setEncodingBytes

      public StorageFormat.CsvOptions.Builder setEncodingBytes(com.google.protobuf.ByteString value)
       Optional. The character encoding of the data. Accepts "US-ASCII",
       "UTF-8", and "ISO-8859-1". Defaults to UTF-8 if unspecified.
       
      string encoding = 1 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      value - The bytes for encoding to set.
      Returns:
      This builder for chaining.
    • getHeaderRows

      public int getHeaderRows()
       Optional. The number of rows to interpret as header rows that should be
       skipped when reading data rows. Defaults to 0.
       
      int32 header_rows = 2 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getHeaderRows in interface StorageFormat.CsvOptionsOrBuilder
      Returns:
      The headerRows.
    • setHeaderRows

      public StorageFormat.CsvOptions.Builder setHeaderRows(int value)
       Optional. The number of rows to interpret as header rows that should be
       skipped when reading data rows. Defaults to 0.
       
      int32 header_rows = 2 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      value - The headerRows to set.
      Returns:
      This builder for chaining.
    • clearHeaderRows

      public StorageFormat.CsvOptions.Builder clearHeaderRows()
       Optional. The number of rows to interpret as header rows that should be
       skipped when reading data rows. Defaults to 0.
       
      int32 header_rows = 2 [(.google.api.field_behavior) = OPTIONAL];
      Returns:
      This builder for chaining.
    • getDelimiter

      public String getDelimiter()
       Optional. The delimiter used to separate values. Defaults to ','.
       
      string delimiter = 3 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getDelimiter in interface StorageFormat.CsvOptionsOrBuilder
      Returns:
      The delimiter.
    • getDelimiterBytes

      public com.google.protobuf.ByteString getDelimiterBytes()
       Optional. The delimiter used to separate values. Defaults to ','.
       
      string delimiter = 3 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getDelimiterBytes in interface StorageFormat.CsvOptionsOrBuilder
      Returns:
      The bytes for delimiter.
    • setDelimiter

      public StorageFormat.CsvOptions.Builder setDelimiter(String value)
       Optional. The delimiter used to separate values. Defaults to ','.
       
      string delimiter = 3 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      value - The delimiter to set.
      Returns:
      This builder for chaining.
    • clearDelimiter

      public StorageFormat.CsvOptions.Builder clearDelimiter()
       Optional. The delimiter used to separate values. Defaults to ','.
       
      string delimiter = 3 [(.google.api.field_behavior) = OPTIONAL];
      Returns:
      This builder for chaining.
    • setDelimiterBytes

      public StorageFormat.CsvOptions.Builder setDelimiterBytes(com.google.protobuf.ByteString value)
       Optional. The delimiter used to separate values. Defaults to ','.
       
      string delimiter = 3 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      value - The bytes for delimiter to set.
      Returns:
      This builder for chaining.
    • getQuote

      public String getQuote()
       Optional. The character used to quote column values. Accepts '"'
       (double quotation mark) or ''' (single quotation mark). Defaults to
       '"' (double quotation mark) if unspecified.
       
      string quote = 4 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getQuote in interface StorageFormat.CsvOptionsOrBuilder
      Returns:
      The quote.
    • getQuoteBytes

      public com.google.protobuf.ByteString getQuoteBytes()
       Optional. The character used to quote column values. Accepts '"'
       (double quotation mark) or ''' (single quotation mark). Defaults to
       '"' (double quotation mark) if unspecified.
       
      string quote = 4 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getQuoteBytes in interface StorageFormat.CsvOptionsOrBuilder
      Returns:
      The bytes for quote.
    • setQuote

      public StorageFormat.CsvOptions.Builder setQuote(String value)
       Optional. The character used to quote column values. Accepts '"'
       (double quotation mark) or ''' (single quotation mark). Defaults to
       '"' (double quotation mark) if unspecified.
       
      string quote = 4 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      value - The quote to set.
      Returns:
      This builder for chaining.
    • clearQuote

      public StorageFormat.CsvOptions.Builder clearQuote()
       Optional. The character used to quote column values. Accepts '"'
       (double quotation mark) or ''' (single quotation mark). Defaults to
       '"' (double quotation mark) if unspecified.
       
      string quote = 4 [(.google.api.field_behavior) = OPTIONAL];
      Returns:
      This builder for chaining.
    • setQuoteBytes

      public StorageFormat.CsvOptions.Builder setQuoteBytes(com.google.protobuf.ByteString value)
       Optional. The character used to quote column values. Accepts '"'
       (double quotation mark) or ''' (single quotation mark). Defaults to
       '"' (double quotation mark) if unspecified.
       
      string quote = 4 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      value - The bytes for quote to set.
      Returns:
      This builder for chaining.