|
| 1 | +/* |
| 2 | + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except |
| 3 | + * in compliance with the License. You may obtain a copy of the License at |
| 4 | + * |
| 5 | + * http://www.apache.org/licenses/LICENSE-2.0 |
| 6 | + * |
| 7 | + * Unless required by applicable law or agreed to in writing, software distributed under the License |
| 8 | + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express |
| 9 | + * or implied. See the License for the specific language governing permissions and limitations under |
| 10 | + * the License. |
| 11 | + */ |
| 12 | +/* |
| 13 | + * This code was generated by https://github.com/googleapis/google-api-java-client-services/ |
| 14 | + * Modify at your own risk. |
| 15 | + */ |
| 16 | + |
| 17 | +package com.google.api.services.alloydb.v1alpha.model; |
| 18 | + |
| 19 | +/** |
| 20 | + * Options for importing data in CSV format. |
| 21 | + * |
| 22 | + * <p> This is the Java data model class that specifies how to parse/serialize into the JSON that is |
| 23 | + * transmitted over HTTP when working with the AlloyDB API. For a detailed explanation see: |
| 24 | + * <a href="https://developers.google.com/api-client-library/java/google-http-java-client/json">https://developers.google.com/api-client-library/java/google-http-java-client/json</a> |
| 25 | + * </p> |
| 26 | + * |
| 27 | + * @author Google, Inc. |
| 28 | + */ |
| 29 | +@SuppressWarnings("javadoc") |
| 30 | +public final class CsvImportOptions extends com.google.api.client.json.GenericJson { |
| 31 | + |
| 32 | + /** |
| 33 | + * Optional. The columns to which CSV data is imported. If not specified, all columns of the |
| 34 | + * database table are loaded with CSV data. |
| 35 | + * The value may be {@code null}. |
| 36 | + */ |
| 37 | + @com.google.api.client.util.Key |
| 38 | + private java.util.List<java.lang.String> columns; |
| 39 | + |
| 40 | + /** |
| 41 | + * Optional. Specifies the character that should appear before a data character that needs to be |
| 42 | + * escaped. The default is same as quote character. The value of this argument has to be a |
| 43 | + * character in Hex ASCII Code. |
| 44 | + * The value may be {@code null}. |
| 45 | + */ |
| 46 | + @com.google.api.client.util.Key |
| 47 | + private java.lang.String escapeCharacter; |
| 48 | + |
| 49 | + /** |
| 50 | + * Optional. Specifies the character that separates columns within each row (line) of the file. |
| 51 | + * The default is comma. The value of this argument has to be a character in Hex ASCII Code. |
| 52 | + * The value may be {@code null}. |
| 53 | + */ |
| 54 | + @com.google.api.client.util.Key |
| 55 | + private java.lang.String fieldDelimiter; |
| 56 | + |
| 57 | + /** |
| 58 | + * Optional. Specifies the quoting character to be used when a data value is quoted. The default |
| 59 | + * is double-quote. The value of this argument has to be a character in Hex ASCII Code. |
| 60 | + * The value may be {@code null}. |
| 61 | + */ |
| 62 | + @com.google.api.client.util.Key |
| 63 | + private java.lang.String quoteCharacter; |
| 64 | + |
| 65 | + /** |
| 66 | + * Required. The database table to import CSV file into. |
| 67 | + * The value may be {@code null}. |
| 68 | + */ |
| 69 | + @com.google.api.client.util.Key |
| 70 | + private java.lang.String table; |
| 71 | + |
| 72 | + /** |
| 73 | + * Optional. The columns to which CSV data is imported. If not specified, all columns of the |
| 74 | + * database table are loaded with CSV data. |
| 75 | + * @return value or {@code null} for none |
| 76 | + */ |
| 77 | + public java.util.List<java.lang.String> getColumns() { |
| 78 | + return columns; |
| 79 | + } |
| 80 | + |
| 81 | + /** |
| 82 | + * Optional. The columns to which CSV data is imported. If not specified, all columns of the |
| 83 | + * database table are loaded with CSV data. |
| 84 | + * @param columns columns or {@code null} for none |
| 85 | + */ |
| 86 | + public CsvImportOptions setColumns(java.util.List<java.lang.String> columns) { |
| 87 | + this.columns = columns; |
| 88 | + return this; |
| 89 | + } |
| 90 | + |
| 91 | + /** |
| 92 | + * Optional. Specifies the character that should appear before a data character that needs to be |
| 93 | + * escaped. The default is same as quote character. The value of this argument has to be a |
| 94 | + * character in Hex ASCII Code. |
| 95 | + * @return value or {@code null} for none |
| 96 | + */ |
| 97 | + public java.lang.String getEscapeCharacter() { |
| 98 | + return escapeCharacter; |
| 99 | + } |
| 100 | + |
| 101 | + /** |
| 102 | + * Optional. Specifies the character that should appear before a data character that needs to be |
| 103 | + * escaped. The default is same as quote character. The value of this argument has to be a |
| 104 | + * character in Hex ASCII Code. |
| 105 | + * @param escapeCharacter escapeCharacter or {@code null} for none |
| 106 | + */ |
| 107 | + public CsvImportOptions setEscapeCharacter(java.lang.String escapeCharacter) { |
| 108 | + this.escapeCharacter = escapeCharacter; |
| 109 | + return this; |
| 110 | + } |
| 111 | + |
| 112 | + /** |
| 113 | + * Optional. Specifies the character that separates columns within each row (line) of the file. |
| 114 | + * The default is comma. The value of this argument has to be a character in Hex ASCII Code. |
| 115 | + * @return value or {@code null} for none |
| 116 | + */ |
| 117 | + public java.lang.String getFieldDelimiter() { |
| 118 | + return fieldDelimiter; |
| 119 | + } |
| 120 | + |
| 121 | + /** |
| 122 | + * Optional. Specifies the character that separates columns within each row (line) of the file. |
| 123 | + * The default is comma. The value of this argument has to be a character in Hex ASCII Code. |
| 124 | + * @param fieldDelimiter fieldDelimiter or {@code null} for none |
| 125 | + */ |
| 126 | + public CsvImportOptions setFieldDelimiter(java.lang.String fieldDelimiter) { |
| 127 | + this.fieldDelimiter = fieldDelimiter; |
| 128 | + return this; |
| 129 | + } |
| 130 | + |
| 131 | + /** |
| 132 | + * Optional. Specifies the quoting character to be used when a data value is quoted. The default |
| 133 | + * is double-quote. The value of this argument has to be a character in Hex ASCII Code. |
| 134 | + * @return value or {@code null} for none |
| 135 | + */ |
| 136 | + public java.lang.String getQuoteCharacter() { |
| 137 | + return quoteCharacter; |
| 138 | + } |
| 139 | + |
| 140 | + /** |
| 141 | + * Optional. Specifies the quoting character to be used when a data value is quoted. The default |
| 142 | + * is double-quote. The value of this argument has to be a character in Hex ASCII Code. |
| 143 | + * @param quoteCharacter quoteCharacter or {@code null} for none |
| 144 | + */ |
| 145 | + public CsvImportOptions setQuoteCharacter(java.lang.String quoteCharacter) { |
| 146 | + this.quoteCharacter = quoteCharacter; |
| 147 | + return this; |
| 148 | + } |
| 149 | + |
| 150 | + /** |
| 151 | + * Required. The database table to import CSV file into. |
| 152 | + * @return value or {@code null} for none |
| 153 | + */ |
| 154 | + public java.lang.String getTable() { |
| 155 | + return table; |
| 156 | + } |
| 157 | + |
| 158 | + /** |
| 159 | + * Required. The database table to import CSV file into. |
| 160 | + * @param table table or {@code null} for none |
| 161 | + */ |
| 162 | + public CsvImportOptions setTable(java.lang.String table) { |
| 163 | + this.table = table; |
| 164 | + return this; |
| 165 | + } |
| 166 | + |
| 167 | + @Override |
| 168 | + public CsvImportOptions set(String fieldName, Object value) { |
| 169 | + return (CsvImportOptions) super.set(fieldName, value); |
| 170 | + } |
| 171 | + |
| 172 | + @Override |
| 173 | + public CsvImportOptions clone() { |
| 174 | + return (CsvImportOptions) super.clone(); |
| 175 | + } |
| 176 | + |
| 177 | +} |
0 commit comments