Class DataDiscoverySpec.StorageConfig.CsvOptions.Builder (1.53.0)

public static final class DataDiscoverySpec.StorageConfig.CsvOptions.Builder extends GeneratedMessageV3.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

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
Type Description
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public DataDiscoverySpec.StorageConfig.CsvOptions.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
DataDiscoverySpec.StorageConfig.CsvOptions.Builder
Overrides

build()

public DataDiscoverySpec.StorageConfig.CsvOptions build()
Returns
Type Description
DataDiscoverySpec.StorageConfig.CsvOptions

buildPartial()

public DataDiscoverySpec.StorageConfig.CsvOptions buildPartial()
Returns
Type Description
DataDiscoverySpec.StorageConfig.CsvOptions

clear()

public DataDiscoverySpec.StorageConfig.CsvOptions.Builder clear()
Returns
Type Description
DataDiscoverySpec.StorageConfig.CsvOptions.Builder
Overrides

clearDelimiter()

public DataDiscoverySpec.StorageConfig.CsvOptions.Builder clearDelimiter()

Optional. The delimiter that is used to separate values. The default is , (comma).

string delimiter = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
DataDiscoverySpec.StorageConfig.CsvOptions.Builder

This builder for chaining.

clearEncoding()

public DataDiscoverySpec.StorageConfig.CsvOptions.Builder clearEncoding()

Optional. The character encoding of the data. The default is UTF-8.

string encoding = 3 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
DataDiscoverySpec.StorageConfig.CsvOptions.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

public DataDiscoverySpec.StorageConfig.CsvOptions.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
DataDiscoverySpec.StorageConfig.CsvOptions.Builder
Overrides

clearHeaderRows()

public DataDiscoverySpec.StorageConfig.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
Type Description
DataDiscoverySpec.StorageConfig.CsvOptions.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

public DataDiscoverySpec.StorageConfig.CsvOptions.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
DataDiscoverySpec.StorageConfig.CsvOptions.Builder
Overrides

clearQuote()

public DataDiscoverySpec.StorageConfig.CsvOptions.Builder 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
Type Description
DataDiscoverySpec.StorageConfig.CsvOptions.Builder

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
Type Description
DataDiscoverySpec.StorageConfig.CsvOptions.Builder

This builder for chaining.

clone()

public DataDiscoverySpec.StorageConfig.CsvOptions.Builder clone()
Returns
Type Description
DataDiscoverySpec.StorageConfig.CsvOptions.Builder
Overrides

getDefaultInstanceForType()

public DataDiscoverySpec.StorageConfig.CsvOptions getDefaultInstanceForType()
Returns
Type Description
DataDiscoverySpec.StorageConfig.CsvOptions

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];

Returns
Type Description
String

The delimiter.

getDelimiterBytes()

public ByteString getDelimiterBytes()

Optional. The delimiter that is used to separate values. The default is , (comma).

string delimiter = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
ByteString

The bytes for delimiter.

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
Overrides

getEncoding()

public String getEncoding()

Optional. The character encoding of the data. The default is UTF-8.

string encoding = 3 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
String

The encoding.

getEncodingBytes()

public ByteString getEncodingBytes()

Optional. The character encoding of the data. The default is UTF-8.

string encoding = 3 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
ByteString

The bytes for encoding.

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];

Returns
Type Description
int

The headerRows.

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];

Returns
Type Description
String

The quote.

getQuoteBytes()

public 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];

Returns
Type Description
ByteString

The bytes for quote.

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];

Returns
Type Description
boolean

The typeInferenceDisabled.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(DataDiscoverySpec.StorageConfig.CsvOptions other)

public DataDiscoverySpec.StorageConfig.CsvOptions.Builder mergeFrom(DataDiscoverySpec.StorageConfig.CsvOptions other)
Parameter
Name Description
other DataDiscoverySpec.StorageConfig.CsvOptions
Returns
Type Description
DataDiscoverySpec.StorageConfig.CsvOptions.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public DataDiscoverySpec.StorageConfig.CsvOptions.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
DataDiscoverySpec.StorageConfig.CsvOptions.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

public DataDiscoverySpec.StorageConfig.CsvOptions.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
DataDiscoverySpec.StorageConfig.CsvOptions.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

public final DataDiscoverySpec.StorageConfig.CsvOptions.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
DataDiscoverySpec.StorageConfig.CsvOptions.Builder
Overrides

setDelimiter(String value)

public DataDiscoverySpec.StorageConfig.CsvOptions.Builder setDelimiter(String value)

Optional. The delimiter that is used to separate values. The default is , (comma).

string delimiter = 2 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value String

The delimiter to set.

Returns
Type Description
DataDiscoverySpec.StorageConfig.CsvOptions.Builder

This builder for chaining.

setDelimiterBytes(ByteString value)

public DataDiscoverySpec.StorageConfig.CsvOptions.Builder setDelimiterBytes(ByteString value)

Optional. The delimiter that is used to separate values. The default is , (comma).

string delimiter = 2 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value ByteString

The bytes for delimiter to set.

Returns
Type Description
DataDiscoverySpec.StorageConfig.CsvOptions.Builder

This builder for chaining.

setEncoding(String value)

public DataDiscoverySpec.StorageConfig.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];

Parameter
Name Description
value String

The encoding to set.

Returns
Type Description
DataDiscoverySpec.StorageConfig.CsvOptions.Builder

This builder for chaining.

setEncodingBytes(ByteString value)

public DataDiscoverySpec.StorageConfig.CsvOptions.Builder setEncodingBytes(ByteString value)

Optional. The character encoding of the data. The default is UTF-8.

string encoding = 3 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value ByteString

The bytes for encoding to set.

Returns
Type Description
DataDiscoverySpec.StorageConfig.CsvOptions.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

public DataDiscoverySpec.StorageConfig.CsvOptions.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
DataDiscoverySpec.StorageConfig.CsvOptions.Builder
Overrides

setHeaderRows(int value)

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];

Parameter
Name Description
value int

The headerRows to set.

Returns
Type Description
DataDiscoverySpec.StorageConfig.CsvOptions.Builder

This builder for chaining.

setQuote(String value)

public DataDiscoverySpec.StorageConfig.CsvOptions.Builder setQuote(String 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];

Parameter
Name Description
value String

The quote to set.

Returns
Type Description
DataDiscoverySpec.StorageConfig.CsvOptions.Builder

This builder for chaining.

setQuoteBytes(ByteString value)

public DataDiscoverySpec.StorageConfig.CsvOptions.Builder setQuoteBytes(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];

Parameter
Name Description
value ByteString

The bytes for quote to set.

Returns
Type Description
DataDiscoverySpec.StorageConfig.CsvOptions.Builder

This builder for chaining.

setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)

public DataDiscoverySpec.StorageConfig.CsvOptions.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
DataDiscoverySpec.StorageConfig.CsvOptions.Builder
Overrides

setTypeInferenceDisabled(boolean value)

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];

Parameter
Name Description
value boolean

The typeInferenceDisabled to set.

Returns
Type Description
DataDiscoverySpec.StorageConfig.CsvOptions.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

public final DataDiscoverySpec.StorageConfig.CsvOptions.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
DataDiscoverySpec.StorageConfig.CsvOptions.Builder
Overrides