Package com.google.cloud.alloydb.v1beta
Class ImportClusterRequest.CsvImportOptions.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<ImportClusterRequest.CsvImportOptions.Builder>
com.google.cloud.alloydb.v1beta.ImportClusterRequest.CsvImportOptions.Builder
- All Implemented Interfaces:
ImportClusterRequest.CsvImportOptionsOrBuilder,com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Cloneable
- Enclosing class:
- ImportClusterRequest.CsvImportOptions
public static final class ImportClusterRequest.CsvImportOptions.Builder
extends com.google.protobuf.GeneratedMessage.Builder<ImportClusterRequest.CsvImportOptions.Builder>
implements ImportClusterRequest.CsvImportOptionsOrBuilder
Options for importing data in CSV format.Protobuf type
google.cloud.alloydb.v1beta.ImportClusterRequest.CsvImportOptions-
Method Summary
Modifier and TypeMethodDescriptionaddAllColumns(Iterable<String> values) Optional.addColumns(String value) Optional.addColumnsBytes(com.google.protobuf.ByteString value) Optional.build()clear()Optional.Optional.Optional.Optional.Required.getColumns(int index) Optional.com.google.protobuf.ByteStringgetColumnsBytes(int index) Optional.intOptional.com.google.protobuf.ProtocolStringListOptional.static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorOptional.com.google.protobuf.ByteStringOptional.Optional.com.google.protobuf.ByteStringOptional.Optional.com.google.protobuf.ByteStringOptional.getTable()Required.com.google.protobuf.ByteStringRequired.protected com.google.protobuf.GeneratedMessage.FieldAccessorTablefinal booleanmergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) setColumns(int index, String value) Optional.setEscapeCharacter(String value) Optional.setEscapeCharacterBytes(com.google.protobuf.ByteString value) Optional.setFieldDelimiter(String value) Optional.setFieldDelimiterBytes(com.google.protobuf.ByteString value) Optional.setQuoteCharacter(String value) Optional.setQuoteCharacterBytes(com.google.protobuf.ByteString value) Optional.Required.setTableBytes(com.google.protobuf.ByteString value) Required.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<ImportClusterRequest.CsvImportOptions.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<ImportClusterRequest.CsvImportOptions.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<ImportClusterRequest.CsvImportOptions.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<ImportClusterRequest.CsvImportOptions.Builder>
-
mergeFrom
public ImportClusterRequest.CsvImportOptions.Builder mergeFrom(ImportClusterRequest.CsvImportOptions other) -
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage.Builder<ImportClusterRequest.CsvImportOptions.Builder>
-
mergeFrom
public ImportClusterRequest.CsvImportOptions.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<ImportClusterRequest.CsvImportOptions.Builder>- Throws:
IOException
-
getTable
Required. The database table to import CSV file into.
string table = 1 [(.google.api.field_behavior) = REQUIRED];- Specified by:
getTablein interfaceImportClusterRequest.CsvImportOptionsOrBuilder- Returns:
- The table.
-
getTableBytes
public com.google.protobuf.ByteString getTableBytes()Required. The database table to import CSV file into.
string table = 1 [(.google.api.field_behavior) = REQUIRED];- Specified by:
getTableBytesin interfaceImportClusterRequest.CsvImportOptionsOrBuilder- Returns:
- The bytes for table.
-
setTable
Required. The database table to import CSV file into.
string table = 1 [(.google.api.field_behavior) = REQUIRED];- Parameters:
value- The table to set.- Returns:
- This builder for chaining.
-
clearTable
Required. The database table to import CSV file into.
string table = 1 [(.google.api.field_behavior) = REQUIRED];- Returns:
- This builder for chaining.
-
setTableBytes
public ImportClusterRequest.CsvImportOptions.Builder setTableBytes(com.google.protobuf.ByteString value) Required. The database table to import CSV file into.
string table = 1 [(.google.api.field_behavior) = REQUIRED];- Parameters:
value- The bytes for table to set.- Returns:
- This builder for chaining.
-
getColumnsList
public com.google.protobuf.ProtocolStringList getColumnsList()Optional. The columns to which CSV data is imported. If not specified, all columns of the database table are loaded with CSV data.
repeated string columns = 2 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getColumnsListin interfaceImportClusterRequest.CsvImportOptionsOrBuilder- Returns:
- A list containing the columns.
-
getColumnsCount
public int getColumnsCount()Optional. The columns to which CSV data is imported. If not specified, all columns of the database table are loaded with CSV data.
repeated string columns = 2 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getColumnsCountin interfaceImportClusterRequest.CsvImportOptionsOrBuilder- Returns:
- The count of columns.
-
getColumns
Optional. The columns to which CSV data is imported. If not specified, all columns of the database table are loaded with CSV data.
repeated string columns = 2 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getColumnsin interfaceImportClusterRequest.CsvImportOptionsOrBuilder- Parameters:
index- The index of the element to return.- Returns:
- The columns at the given index.
-
getColumnsBytes
public com.google.protobuf.ByteString getColumnsBytes(int index) Optional. The columns to which CSV data is imported. If not specified, all columns of the database table are loaded with CSV data.
repeated string columns = 2 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getColumnsBytesin interfaceImportClusterRequest.CsvImportOptionsOrBuilder- Parameters:
index- The index of the value to return.- Returns:
- The bytes of the columns at the given index.
-
setColumns
Optional. The columns to which CSV data is imported. If not specified, all columns of the database table are loaded with CSV data.
repeated string columns = 2 [(.google.api.field_behavior) = OPTIONAL];- Parameters:
index- The index to set the value at.value- The columns to set.- Returns:
- This builder for chaining.
-
addColumns
Optional. The columns to which CSV data is imported. If not specified, all columns of the database table are loaded with CSV data.
repeated string columns = 2 [(.google.api.field_behavior) = OPTIONAL];- Parameters:
value- The columns to add.- Returns:
- This builder for chaining.
-
addAllColumns
Optional. The columns to which CSV data is imported. If not specified, all columns of the database table are loaded with CSV data.
repeated string columns = 2 [(.google.api.field_behavior) = OPTIONAL];- Parameters:
values- The columns to add.- Returns:
- This builder for chaining.
-
clearColumns
Optional. The columns to which CSV data is imported. If not specified, all columns of the database table are loaded with CSV data.
repeated string columns = 2 [(.google.api.field_behavior) = OPTIONAL];- Returns:
- This builder for chaining.
-
addColumnsBytes
public ImportClusterRequest.CsvImportOptions.Builder addColumnsBytes(com.google.protobuf.ByteString value) Optional. The columns to which CSV data is imported. If not specified, all columns of the database table are loaded with CSV data.
repeated string columns = 2 [(.google.api.field_behavior) = OPTIONAL];- Parameters:
value- The bytes of the columns to add.- Returns:
- This builder for chaining.
-
getFieldDelimiter
Optional. Specifies the character that separates columns within each row (line) of the file. The default is comma. The value of this argument has to be a character in Hex ASCII Code.
string field_delimiter = 3 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getFieldDelimiterin interfaceImportClusterRequest.CsvImportOptionsOrBuilder- Returns:
- The fieldDelimiter.
-
getFieldDelimiterBytes
public com.google.protobuf.ByteString getFieldDelimiterBytes()Optional. Specifies the character that separates columns within each row (line) of the file. The default is comma. The value of this argument has to be a character in Hex ASCII Code.
string field_delimiter = 3 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getFieldDelimiterBytesin interfaceImportClusterRequest.CsvImportOptionsOrBuilder- Returns:
- The bytes for fieldDelimiter.
-
setFieldDelimiter
Optional. Specifies the character that separates columns within each row (line) of the file. The default is comma. The value of this argument has to be a character in Hex ASCII Code.
string field_delimiter = 3 [(.google.api.field_behavior) = OPTIONAL];- Parameters:
value- The fieldDelimiter to set.- Returns:
- This builder for chaining.
-
clearFieldDelimiter
Optional. Specifies the character that separates columns within each row (line) of the file. The default is comma. The value of this argument has to be a character in Hex ASCII Code.
string field_delimiter = 3 [(.google.api.field_behavior) = OPTIONAL];- Returns:
- This builder for chaining.
-
setFieldDelimiterBytes
public ImportClusterRequest.CsvImportOptions.Builder setFieldDelimiterBytes(com.google.protobuf.ByteString value) Optional. Specifies the character that separates columns within each row (line) of the file. The default is comma. The value of this argument has to be a character in Hex ASCII Code.
string field_delimiter = 3 [(.google.api.field_behavior) = OPTIONAL];- Parameters:
value- The bytes for fieldDelimiter to set.- Returns:
- This builder for chaining.
-
getQuoteCharacter
Optional. Specifies the quoting character to be used when a data value is quoted. The default is double-quote. The value of this argument has to be a character in Hex ASCII Code.
string quote_character = 4 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getQuoteCharacterin interfaceImportClusterRequest.CsvImportOptionsOrBuilder- Returns:
- The quoteCharacter.
-
getQuoteCharacterBytes
public com.google.protobuf.ByteString getQuoteCharacterBytes()Optional. Specifies the quoting character to be used when a data value is quoted. The default is double-quote. The value of this argument has to be a character in Hex ASCII Code.
string quote_character = 4 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getQuoteCharacterBytesin interfaceImportClusterRequest.CsvImportOptionsOrBuilder- Returns:
- The bytes for quoteCharacter.
-
setQuoteCharacter
Optional. Specifies the quoting character to be used when a data value is quoted. The default is double-quote. The value of this argument has to be a character in Hex ASCII Code.
string quote_character = 4 [(.google.api.field_behavior) = OPTIONAL];- Parameters:
value- The quoteCharacter to set.- Returns:
- This builder for chaining.
-
clearQuoteCharacter
Optional. Specifies the quoting character to be used when a data value is quoted. The default is double-quote. The value of this argument has to be a character in Hex ASCII Code.
string quote_character = 4 [(.google.api.field_behavior) = OPTIONAL];- Returns:
- This builder for chaining.
-
setQuoteCharacterBytes
public ImportClusterRequest.CsvImportOptions.Builder setQuoteCharacterBytes(com.google.protobuf.ByteString value) Optional. Specifies the quoting character to be used when a data value is quoted. The default is double-quote. The value of this argument has to be a character in Hex ASCII Code.
string quote_character = 4 [(.google.api.field_behavior) = OPTIONAL];- Parameters:
value- The bytes for quoteCharacter to set.- Returns:
- This builder for chaining.
-
getEscapeCharacter
Optional. Specifies the character that should appear before a data character that needs to be escaped. The default is same as quote character. The value of this argument has to be a character in Hex ASCII Code.
string escape_character = 5 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getEscapeCharacterin interfaceImportClusterRequest.CsvImportOptionsOrBuilder- Returns:
- The escapeCharacter.
-
getEscapeCharacterBytes
public com.google.protobuf.ByteString getEscapeCharacterBytes()Optional. Specifies the character that should appear before a data character that needs to be escaped. The default is same as quote character. The value of this argument has to be a character in Hex ASCII Code.
string escape_character = 5 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getEscapeCharacterBytesin interfaceImportClusterRequest.CsvImportOptionsOrBuilder- Returns:
- The bytes for escapeCharacter.
-
setEscapeCharacter
Optional. Specifies the character that should appear before a data character that needs to be escaped. The default is same as quote character. The value of this argument has to be a character in Hex ASCII Code.
string escape_character = 5 [(.google.api.field_behavior) = OPTIONAL];- Parameters:
value- The escapeCharacter to set.- Returns:
- This builder for chaining.
-
clearEscapeCharacter
Optional. Specifies the character that should appear before a data character that needs to be escaped. The default is same as quote character. The value of this argument has to be a character in Hex ASCII Code.
string escape_character = 5 [(.google.api.field_behavior) = OPTIONAL];- Returns:
- This builder for chaining.
-
setEscapeCharacterBytes
public ImportClusterRequest.CsvImportOptions.Builder setEscapeCharacterBytes(com.google.protobuf.ByteString value) Optional. Specifies the character that should appear before a data character that needs to be escaped. The default is same as quote character. The value of this argument has to be a character in Hex ASCII Code.
string escape_character = 5 [(.google.api.field_behavior) = OPTIONAL];- Parameters:
value- The bytes for escapeCharacter to set.- Returns:
- This builder for chaining.
-