Class DataDiscoverySpec.StorageConfig.CsvOptions.Builder

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

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

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

      public DataDiscoverySpec.StorageConfig.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<DataDiscoverySpec.StorageConfig.CsvOptions.Builder>
      Throws:
      IOException
    • getHeaderRows

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

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

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

      public String getDelimiter()
       Optional. The delimiter that is used to separate values. The default is
       `,` (comma).
       
      string delimiter = 2 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getDelimiter in interface DataDiscoverySpec.StorageConfig.CsvOptionsOrBuilder
      Returns:
      The delimiter.
    • getDelimiterBytes

      public com.google.protobuf.ByteString getDelimiterBytes()
       Optional. The delimiter that is used to separate values. The default is
       `,` (comma).
       
      string delimiter = 2 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getDelimiterBytes in interface DataDiscoverySpec.StorageConfig.CsvOptionsOrBuilder
      Returns:
      The bytes for delimiter.
    • setDelimiter

       Optional. The delimiter that is used to separate values. The default is
       `,` (comma).
       
      string delimiter = 2 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      value - The delimiter to set.
      Returns:
      This builder for chaining.
    • clearDelimiter

       Optional. The delimiter that is used to separate values. The default is
       `,` (comma).
       
      string delimiter = 2 [(.google.api.field_behavior) = OPTIONAL];
      Returns:
      This builder for chaining.
    • setDelimiterBytes

      public DataDiscoverySpec.StorageConfig.CsvOptions.Builder setDelimiterBytes(com.google.protobuf.ByteString value)
       Optional. The delimiter that is used to separate values. The default is
       `,` (comma).
       
      string delimiter = 2 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      value - The bytes for delimiter to set.
      Returns:
      This builder for chaining.
    • getEncoding

      public String getEncoding()
       Optional. The character encoding of the data. The default is UTF-8.
       
      string encoding = 3 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getEncoding in interface DataDiscoverySpec.StorageConfig.CsvOptionsOrBuilder
      Returns:
      The encoding.
    • getEncodingBytes

      public com.google.protobuf.ByteString getEncodingBytes()
       Optional. The character encoding of the data. The default is UTF-8.
       
      string encoding = 3 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getEncodingBytes in interface DataDiscoverySpec.StorageConfig.CsvOptionsOrBuilder
      Returns:
      The bytes for encoding.
    • setEncoding

       Optional. The character encoding of the data. The default is UTF-8.
       
      string encoding = 3 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      value - The encoding to set.
      Returns:
      This builder for chaining.
    • clearEncoding

       Optional. The character encoding of the data. The default is UTF-8.
       
      string encoding = 3 [(.google.api.field_behavior) = OPTIONAL];
      Returns:
      This builder for chaining.
    • setEncodingBytes

      public DataDiscoverySpec.StorageConfig.CsvOptions.Builder setEncodingBytes(com.google.protobuf.ByteString value)
       Optional. The character encoding of the data. The default is UTF-8.
       
      string encoding = 3 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      value - The bytes for encoding to set.
      Returns:
      This builder for chaining.
    • getTypeInferenceDisabled

      public boolean getTypeInferenceDisabled()
       Optional. Whether to disable the inference of data types for CSV data.
       If true, all columns are registered as strings.
       
      bool type_inference_disabled = 4 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getTypeInferenceDisabled in interface DataDiscoverySpec.StorageConfig.CsvOptionsOrBuilder
      Returns:
      The typeInferenceDisabled.
    • setTypeInferenceDisabled

      public DataDiscoverySpec.StorageConfig.CsvOptions.Builder setTypeInferenceDisabled(boolean value)
       Optional. Whether to disable the inference of data types for CSV data.
       If true, all columns are registered as strings.
       
      bool type_inference_disabled = 4 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      value - The typeInferenceDisabled to set.
      Returns:
      This builder for chaining.
    • clearTypeInferenceDisabled

      public DataDiscoverySpec.StorageConfig.CsvOptions.Builder clearTypeInferenceDisabled()
       Optional. Whether to disable the inference of data types for CSV data.
       If true, all columns are registered as strings.
       
      bool type_inference_disabled = 4 [(.google.api.field_behavior) = OPTIONAL];
      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). If unspecified,
       defaults to `"` (double quotation mark).
       
      string quote = 5 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getQuote in interface DataDiscoverySpec.StorageConfig.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). If unspecified,
       defaults to `"` (double quotation mark).
       
      string quote = 5 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getQuoteBytes in interface DataDiscoverySpec.StorageConfig.CsvOptionsOrBuilder
      Returns:
      The bytes for quote.
    • setQuote

       Optional. The character used to quote column values. Accepts `"`
       (double quotation mark) or `'` (single quotation mark). If unspecified,
       defaults to `"` (double quotation mark).
       
      string quote = 5 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      value - The quote to set.
      Returns:
      This builder for chaining.
    • clearQuote

       Optional. The character used to quote column values. Accepts `"`
       (double quotation mark) or `'` (single quotation mark). If unspecified,
       defaults to `"` (double quotation mark).
       
      string quote = 5 [(.google.api.field_behavior) = OPTIONAL];
      Returns:
      This builder for chaining.
    • setQuoteBytes

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