|
| 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.bigquery.model; |
| 18 | + |
| 19 | +/** |
| 20 | + * Options for the runtime of the external system. |
| 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 BigQuery 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 ExternalRuntimeOptions extends com.google.api.client.json.GenericJson { |
| 31 | + |
| 32 | + /** |
| 33 | + * Optional. Amount of CPU provisioned for the container instance. If not specified, the default |
| 34 | + * value is 0.33 vCPUs. |
| 35 | + * The value may be {@code null}. |
| 36 | + */ |
| 37 | + @com.google.api.client.util.Key |
| 38 | + private java.lang.Double containerCpu; |
| 39 | + |
| 40 | + /** |
| 41 | + * Optional. Amount of memory provisioned for the container instance. Format: {number}{unit} where |
| 42 | + * unit is one of "M", "G", "Mi" and "Gi" (e.g. 1G, 512Mi). If not specified, the default value is |
| 43 | + * 512Mi. |
| 44 | + * The value may be {@code null}. |
| 45 | + */ |
| 46 | + @com.google.api.client.util.Key |
| 47 | + private java.lang.String containerMemory; |
| 48 | + |
| 49 | + /** |
| 50 | + * Optional. Maximum number of rows in each batch sent to the external runtime. If absent or if 0, |
| 51 | + * BigQuery dynamically decides the number of rows in a batch. |
| 52 | + * The value may be {@code null}. |
| 53 | + */ |
| 54 | + @com.google.api.client.util.Key @com.google.api.client.json.JsonString |
| 55 | + private java.lang.Long maxBatchingRows; |
| 56 | + |
| 57 | + /** |
| 58 | + * Optional. Fully qualified name of the connection whose service account will be used to execute |
| 59 | + * the code in the container. Format: |
| 60 | + * ```"projects/{project_id}/locations/{location_id}/connections/{connection_id}"``` |
| 61 | + * The value may be {@code null}. |
| 62 | + */ |
| 63 | + @com.google.api.client.util.Key |
| 64 | + private java.lang.String runtimeConnection; |
| 65 | + |
| 66 | + /** |
| 67 | + * Optional. Language runtime version (e.g. python-3.11). |
| 68 | + * The value may be {@code null}. |
| 69 | + */ |
| 70 | + @com.google.api.client.util.Key |
| 71 | + private java.lang.String runtimeVersion; |
| 72 | + |
| 73 | + /** |
| 74 | + * Optional. Amount of CPU provisioned for the container instance. If not specified, the default |
| 75 | + * value is 0.33 vCPUs. |
| 76 | + * @return value or {@code null} for none |
| 77 | + */ |
| 78 | + public java.lang.Double getContainerCpu() { |
| 79 | + return containerCpu; |
| 80 | + } |
| 81 | + |
| 82 | + /** |
| 83 | + * Optional. Amount of CPU provisioned for the container instance. If not specified, the default |
| 84 | + * value is 0.33 vCPUs. |
| 85 | + * @param containerCpu containerCpu or {@code null} for none |
| 86 | + */ |
| 87 | + public ExternalRuntimeOptions setContainerCpu(java.lang.Double containerCpu) { |
| 88 | + this.containerCpu = containerCpu; |
| 89 | + return this; |
| 90 | + } |
| 91 | + |
| 92 | + /** |
| 93 | + * Optional. Amount of memory provisioned for the container instance. Format: {number}{unit} where |
| 94 | + * unit is one of "M", "G", "Mi" and "Gi" (e.g. 1G, 512Mi). If not specified, the default value is |
| 95 | + * 512Mi. |
| 96 | + * @return value or {@code null} for none |
| 97 | + */ |
| 98 | + public java.lang.String getContainerMemory() { |
| 99 | + return containerMemory; |
| 100 | + } |
| 101 | + |
| 102 | + /** |
| 103 | + * Optional. Amount of memory provisioned for the container instance. Format: {number}{unit} where |
| 104 | + * unit is one of "M", "G", "Mi" and "Gi" (e.g. 1G, 512Mi). If not specified, the default value is |
| 105 | + * 512Mi. |
| 106 | + * @param containerMemory containerMemory or {@code null} for none |
| 107 | + */ |
| 108 | + public ExternalRuntimeOptions setContainerMemory(java.lang.String containerMemory) { |
| 109 | + this.containerMemory = containerMemory; |
| 110 | + return this; |
| 111 | + } |
| 112 | + |
| 113 | + /** |
| 114 | + * Optional. Maximum number of rows in each batch sent to the external runtime. If absent or if 0, |
| 115 | + * BigQuery dynamically decides the number of rows in a batch. |
| 116 | + * @return value or {@code null} for none |
| 117 | + */ |
| 118 | + public java.lang.Long getMaxBatchingRows() { |
| 119 | + return maxBatchingRows; |
| 120 | + } |
| 121 | + |
| 122 | + /** |
| 123 | + * Optional. Maximum number of rows in each batch sent to the external runtime. If absent or if 0, |
| 124 | + * BigQuery dynamically decides the number of rows in a batch. |
| 125 | + * @param maxBatchingRows maxBatchingRows or {@code null} for none |
| 126 | + */ |
| 127 | + public ExternalRuntimeOptions setMaxBatchingRows(java.lang.Long maxBatchingRows) { |
| 128 | + this.maxBatchingRows = maxBatchingRows; |
| 129 | + return this; |
| 130 | + } |
| 131 | + |
| 132 | + /** |
| 133 | + * Optional. Fully qualified name of the connection whose service account will be used to execute |
| 134 | + * the code in the container. Format: |
| 135 | + * ```"projects/{project_id}/locations/{location_id}/connections/{connection_id}"``` |
| 136 | + * @return value or {@code null} for none |
| 137 | + */ |
| 138 | + public java.lang.String getRuntimeConnection() { |
| 139 | + return runtimeConnection; |
| 140 | + } |
| 141 | + |
| 142 | + /** |
| 143 | + * Optional. Fully qualified name of the connection whose service account will be used to execute |
| 144 | + * the code in the container. Format: |
| 145 | + * ```"projects/{project_id}/locations/{location_id}/connections/{connection_id}"``` |
| 146 | + * @param runtimeConnection runtimeConnection or {@code null} for none |
| 147 | + */ |
| 148 | + public ExternalRuntimeOptions setRuntimeConnection(java.lang.String runtimeConnection) { |
| 149 | + this.runtimeConnection = runtimeConnection; |
| 150 | + return this; |
| 151 | + } |
| 152 | + |
| 153 | + /** |
| 154 | + * Optional. Language runtime version (e.g. python-3.11). |
| 155 | + * @return value or {@code null} for none |
| 156 | + */ |
| 157 | + public java.lang.String getRuntimeVersion() { |
| 158 | + return runtimeVersion; |
| 159 | + } |
| 160 | + |
| 161 | + /** |
| 162 | + * Optional. Language runtime version (e.g. python-3.11). |
| 163 | + * @param runtimeVersion runtimeVersion or {@code null} for none |
| 164 | + */ |
| 165 | + public ExternalRuntimeOptions setRuntimeVersion(java.lang.String runtimeVersion) { |
| 166 | + this.runtimeVersion = runtimeVersion; |
| 167 | + return this; |
| 168 | + } |
| 169 | + |
| 170 | + @Override |
| 171 | + public ExternalRuntimeOptions set(String fieldName, Object value) { |
| 172 | + return (ExternalRuntimeOptions) super.set(fieldName, value); |
| 173 | + } |
| 174 | + |
| 175 | + @Override |
| 176 | + public ExternalRuntimeOptions clone() { |
| 177 | + return (ExternalRuntimeOptions) super.clone(); |
| 178 | + } |
| 179 | + |
| 180 | +} |
0 commit comments