Package com.google.cloud.dataplex.v1
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 Summary
Modifier and TypeMethodDescriptionbuild()clear()Optional.Optional.Optional.Optional.Optional.com.google.protobuf.ByteStringOptional.static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorOptional.com.google.protobuf.ByteStringOptional.intOptional.getQuote()Optional.com.google.protobuf.ByteStringOptional.protected com.google.protobuf.GeneratedMessage.FieldAccessorTablefinal booleanmergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) setDelimiter(String value) Optional.setDelimiterBytes(com.google.protobuf.ByteString value) Optional.setEncoding(String value) Optional.setEncodingBytes(com.google.protobuf.ByteString value) Optional.setHeaderRows(int value) Optional.Optional.setQuoteBytes(com.google.protobuf.ByteString value) Optional.Methods inherited from class com.google.protobuf.GeneratedMessage.Builder
addRepeatedField, clearField, clearOneof, clone, getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownFields, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setField, setRepeatedField, setUnknownFields, setUnknownFieldSetBuilder, setUnknownFieldsProto3Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageExceptionMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.Message.Builder
mergeDelimitedFrom, mergeDelimitedFromMethods inherited from interface com.google.protobuf.MessageLite.Builder
mergeFromMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() -
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessage.Builder<StorageFormat.CsvOptions.Builder>
-
clear
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessage.Builder<StorageFormat.CsvOptions.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.Message.Builder- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getDescriptorForTypein classcom.google.protobuf.GeneratedMessage.Builder<StorageFormat.CsvOptions.Builder>
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
mergeFrom
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<StorageFormat.CsvOptions.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.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:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<StorageFormat.CsvOptions.Builder>- Throws:
IOException
-
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:
getEncodingin interfaceStorageFormat.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:
getEncodingBytesin interfaceStorageFormat.CsvOptionsOrBuilder- Returns:
- The bytes for encoding.
-
setEncoding
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
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
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:
getHeaderRowsin interfaceStorageFormat.CsvOptionsOrBuilder- Returns:
- The headerRows.
-
setHeaderRows
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
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
Optional. The delimiter used to separate values. Defaults to ','.
string delimiter = 3 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getDelimiterin interfaceStorageFormat.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:
getDelimiterBytesin interfaceStorageFormat.CsvOptionsOrBuilder- Returns:
- The bytes for delimiter.
-
setDelimiter
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
Optional. The delimiter used to separate values. Defaults to ','.
string delimiter = 3 [(.google.api.field_behavior) = OPTIONAL];- Returns:
- This builder for chaining.
-
setDelimiterBytes
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
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:
getQuotein interfaceStorageFormat.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:
getQuoteBytesin interfaceStorageFormat.CsvOptionsOrBuilder- Returns:
- The bytes for quote.
-
setQuote
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
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
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.
-