Class Asset.DiscoverySpec.CsvOptions.Builder

    • Method Detail

      • getDescriptor

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

        protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
        Specified by:
        internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3.Builder<Asset.DiscoverySpec.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.GeneratedMessageV3.Builder<Asset.DiscoverySpec.CsvOptions.Builder>
      • getDefaultInstanceForType

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

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

        public Asset.DiscoverySpec.CsvOptions buildPartial()
        Specified by:
        buildPartial in interface com.google.protobuf.Message.Builder
        Specified by:
        buildPartial in interface com.google.protobuf.MessageLite.Builder
      • isInitialized

        public final boolean isInitialized()
        Specified by:
        isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
        Overrides:
        isInitialized in class com.google.protobuf.GeneratedMessageV3.Builder<Asset.DiscoverySpec.CsvOptions.Builder>
      • 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 Asset.DiscoverySpec.CsvOptionsOrBuilder
        Returns:
        The headerRows.
      • setHeaderRows

        public Asset.DiscoverySpec.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

        public Asset.DiscoverySpec.CsvOptions.Builder 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 being used to separate values. This defaults to
         ','.
         
        string delimiter = 2 [(.google.api.field_behavior) = OPTIONAL];
        Specified by:
        getDelimiter in interface Asset.DiscoverySpec.CsvOptionsOrBuilder
        Returns:
        The delimiter.
      • getDelimiterBytes

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

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

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

        public Asset.DiscoverySpec.CsvOptions.Builder setDelimiterBytes​(com.google.protobuf.ByteString value)
         Optional. The delimiter being used to separate values. This defaults to
         ','.
         
        string delimiter = 2 [(.google.api.field_behavior) = OPTIONAL];
        Parameters:
        value - The bytes for delimiter to set.
        Returns:
        This builder for chaining.
      • 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 Asset.DiscoverySpec.CsvOptionsOrBuilder
        Returns:
        The bytes for encoding.
      • setEncoding

        public Asset.DiscoverySpec.CsvOptions.Builder setEncoding​(String value)
         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

        public Asset.DiscoverySpec.CsvOptions.Builder 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 Asset.DiscoverySpec.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.
      • getDisableTypeInference

        public boolean getDisableTypeInference()
         Optional. Whether to disable the inference of data type for CSV data.
         If true, all columns will be registered as strings.
         
        bool disable_type_inference = 4 [(.google.api.field_behavior) = OPTIONAL];
        Specified by:
        getDisableTypeInference in interface Asset.DiscoverySpec.CsvOptionsOrBuilder
        Returns:
        The disableTypeInference.
      • setDisableTypeInference

        public Asset.DiscoverySpec.CsvOptions.Builder setDisableTypeInference​(boolean value)
         Optional. Whether to disable the inference of data type for CSV data.
         If true, all columns will be registered as strings.
         
        bool disable_type_inference = 4 [(.google.api.field_behavior) = OPTIONAL];
        Parameters:
        value - The disableTypeInference to set.
        Returns:
        This builder for chaining.
      • clearDisableTypeInference

        public Asset.DiscoverySpec.CsvOptions.Builder clearDisableTypeInference()
         Optional. Whether to disable the inference of data type for CSV data.
         If true, all columns will be registered as strings.
         
        bool disable_type_inference = 4 [(.google.api.field_behavior) = OPTIONAL];
        Returns:
        This builder for chaining.