|
24 | 24 | public class BatchUpsertRowsRequestDataAttributes { |
25 | 25 | @JsonIgnore public boolean unparsed = false; |
26 | 26 | public static final String JSON_PROPERTY_VALUES = "values"; |
27 | | - private Map<String, Object> values = new HashMap<String, Object>(); |
| 27 | + private Map<String, BatchUpsertRowsRequestDataAttributesValue> values = |
| 28 | + new HashMap<String, BatchUpsertRowsRequestDataAttributesValue>(); |
28 | 29 |
|
29 | 30 | public BatchUpsertRowsRequestDataAttributes() {} |
30 | 31 |
|
31 | 32 | @JsonCreator |
32 | 33 | public BatchUpsertRowsRequestDataAttributes( |
33 | | - @JsonProperty(required = true, value = JSON_PROPERTY_VALUES) Map<String, Object> values) { |
| 34 | + @JsonProperty(required = true, value = JSON_PROPERTY_VALUES) |
| 35 | + Map<String, BatchUpsertRowsRequestDataAttributesValue> values) { |
34 | 36 | this.values = values; |
35 | 37 | } |
36 | 38 |
|
37 | | - public BatchUpsertRowsRequestDataAttributes values(Map<String, Object> values) { |
| 39 | + public BatchUpsertRowsRequestDataAttributes values( |
| 40 | + Map<String, BatchUpsertRowsRequestDataAttributesValue> values) { |
38 | 41 | this.values = values; |
39 | 42 | return this; |
40 | 43 | } |
41 | 44 |
|
42 | | - public BatchUpsertRowsRequestDataAttributes putValuesItem(String key, Object valuesItem) { |
| 45 | + public BatchUpsertRowsRequestDataAttributes putValuesItem( |
| 46 | + String key, BatchUpsertRowsRequestDataAttributesValue valuesItem) { |
43 | 47 | this.values.put(key, valuesItem); |
44 | 48 | return this; |
45 | 49 | } |
46 | 50 |
|
47 | 51 | /** |
48 | | - * Key-value pairs representing row data, where keys are field names from the schema. |
| 52 | + * Key-value pairs representing row data, where keys are schema field names and values match the |
| 53 | + * corresponding column types. |
49 | 54 | * |
50 | 55 | * @return values |
51 | 56 | */ |
52 | 57 | @JsonProperty(JSON_PROPERTY_VALUES) |
53 | 58 | @JsonInclude(value = JsonInclude.Include.ALWAYS) |
54 | | - public Map<String, Object> getValues() { |
| 59 | + public Map<String, BatchUpsertRowsRequestDataAttributesValue> getValues() { |
55 | 60 | return values; |
56 | 61 | } |
57 | 62 |
|
58 | | - public void setValues(Map<String, Object> values) { |
| 63 | + public void setValues(Map<String, BatchUpsertRowsRequestDataAttributesValue> values) { |
59 | 64 | this.values = values; |
60 | 65 | } |
61 | 66 |
|
|
0 commit comments