1 /* 2 * Copyright 2020 Google LLC 3 * 4 * Licensed under the Apache License, Version 2.0 (the "License"); 5 * you may not use this file except in compliance with the License. 6 * You may obtain a copy of the License at 7 * 8 * https://www.apache.org/licenses/LICENSE-2.0 9 * 10 * Unless required by applicable law or agreed to in writing, software 11 * distributed under the License is distributed on an "AS IS" BASIS, 12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 * See the License for the specific language governing permissions and 14 * limitations under the License. 15 */ 16 // Generated by the protocol buffer compiler. DO NOT EDIT! 17 // source: google/cloud/dataproc/v1/jobs.proto 18 19 package com.google.cloud.dataproc.v1; 20 21 public interface SparkSqlJobOrBuilder 22 extends 23 // @@protoc_insertion_point(interface_extends:google.cloud.dataproc.v1.SparkSqlJob) 24 com.google.protobuf.MessageOrBuilder { 25 26 /** 27 * 28 * 29 * <pre> 30 * The HCFS URI of the script that contains SQL queries. 31 * </pre> 32 * 33 * <code>string query_file_uri = 1;</code> 34 * 35 * @return Whether the queryFileUri field is set. 36 */ hasQueryFileUri()37 boolean hasQueryFileUri(); 38 /** 39 * 40 * 41 * <pre> 42 * The HCFS URI of the script that contains SQL queries. 43 * </pre> 44 * 45 * <code>string query_file_uri = 1;</code> 46 * 47 * @return The queryFileUri. 48 */ getQueryFileUri()49 java.lang.String getQueryFileUri(); 50 /** 51 * 52 * 53 * <pre> 54 * The HCFS URI of the script that contains SQL queries. 55 * </pre> 56 * 57 * <code>string query_file_uri = 1;</code> 58 * 59 * @return The bytes for queryFileUri. 60 */ getQueryFileUriBytes()61 com.google.protobuf.ByteString getQueryFileUriBytes(); 62 63 /** 64 * 65 * 66 * <pre> 67 * A list of queries. 68 * </pre> 69 * 70 * <code>.google.cloud.dataproc.v1.QueryList query_list = 2;</code> 71 * 72 * @return Whether the queryList field is set. 73 */ hasQueryList()74 boolean hasQueryList(); 75 /** 76 * 77 * 78 * <pre> 79 * A list of queries. 80 * </pre> 81 * 82 * <code>.google.cloud.dataproc.v1.QueryList query_list = 2;</code> 83 * 84 * @return The queryList. 85 */ getQueryList()86 com.google.cloud.dataproc.v1.QueryList getQueryList(); 87 /** 88 * 89 * 90 * <pre> 91 * A list of queries. 92 * </pre> 93 * 94 * <code>.google.cloud.dataproc.v1.QueryList query_list = 2;</code> 95 */ getQueryListOrBuilder()96 com.google.cloud.dataproc.v1.QueryListOrBuilder getQueryListOrBuilder(); 97 98 /** 99 * 100 * 101 * <pre> 102 * Optional. Mapping of query variable names to values (equivalent to the 103 * Spark SQL command: SET `name="value";`). 104 * </pre> 105 * 106 * <code>map<string, string> script_variables = 3 [(.google.api.field_behavior) = OPTIONAL]; 107 * </code> 108 */ getScriptVariablesCount()109 int getScriptVariablesCount(); 110 /** 111 * 112 * 113 * <pre> 114 * Optional. Mapping of query variable names to values (equivalent to the 115 * Spark SQL command: SET `name="value";`). 116 * </pre> 117 * 118 * <code>map<string, string> script_variables = 3 [(.google.api.field_behavior) = OPTIONAL]; 119 * </code> 120 */ containsScriptVariables(java.lang.String key)121 boolean containsScriptVariables(java.lang.String key); 122 /** Use {@link #getScriptVariablesMap()} instead. */ 123 @java.lang.Deprecated getScriptVariables()124 java.util.Map<java.lang.String, java.lang.String> getScriptVariables(); 125 /** 126 * 127 * 128 * <pre> 129 * Optional. Mapping of query variable names to values (equivalent to the 130 * Spark SQL command: SET `name="value";`). 131 * </pre> 132 * 133 * <code>map<string, string> script_variables = 3 [(.google.api.field_behavior) = OPTIONAL]; 134 * </code> 135 */ getScriptVariablesMap()136 java.util.Map<java.lang.String, java.lang.String> getScriptVariablesMap(); 137 /** 138 * 139 * 140 * <pre> 141 * Optional. Mapping of query variable names to values (equivalent to the 142 * Spark SQL command: SET `name="value";`). 143 * </pre> 144 * 145 * <code>map<string, string> script_variables = 3 [(.google.api.field_behavior) = OPTIONAL]; 146 * </code> 147 */ 148 /* nullable */ getScriptVariablesOrDefault( java.lang.String key, java.lang.String defaultValue)149 java.lang.String getScriptVariablesOrDefault( 150 java.lang.String key, 151 /* nullable */ 152 java.lang.String defaultValue); 153 /** 154 * 155 * 156 * <pre> 157 * Optional. Mapping of query variable names to values (equivalent to the 158 * Spark SQL command: SET `name="value";`). 159 * </pre> 160 * 161 * <code>map<string, string> script_variables = 3 [(.google.api.field_behavior) = OPTIONAL]; 162 * </code> 163 */ getScriptVariablesOrThrow(java.lang.String key)164 java.lang.String getScriptVariablesOrThrow(java.lang.String key); 165 166 /** 167 * 168 * 169 * <pre> 170 * Optional. A mapping of property names to values, used to configure 171 * Spark SQL's SparkConf. Properties that conflict with values set by the 172 * Dataproc API may be overwritten. 173 * </pre> 174 * 175 * <code>map<string, string> properties = 4 [(.google.api.field_behavior) = OPTIONAL]; 176 * </code> 177 */ getPropertiesCount()178 int getPropertiesCount(); 179 /** 180 * 181 * 182 * <pre> 183 * Optional. A mapping of property names to values, used to configure 184 * Spark SQL's SparkConf. Properties that conflict with values set by the 185 * Dataproc API may be overwritten. 186 * </pre> 187 * 188 * <code>map<string, string> properties = 4 [(.google.api.field_behavior) = OPTIONAL]; 189 * </code> 190 */ containsProperties(java.lang.String key)191 boolean containsProperties(java.lang.String key); 192 /** Use {@link #getPropertiesMap()} instead. */ 193 @java.lang.Deprecated getProperties()194 java.util.Map<java.lang.String, java.lang.String> getProperties(); 195 /** 196 * 197 * 198 * <pre> 199 * Optional. A mapping of property names to values, used to configure 200 * Spark SQL's SparkConf. Properties that conflict with values set by the 201 * Dataproc API may be overwritten. 202 * </pre> 203 * 204 * <code>map<string, string> properties = 4 [(.google.api.field_behavior) = OPTIONAL]; 205 * </code> 206 */ getPropertiesMap()207 java.util.Map<java.lang.String, java.lang.String> getPropertiesMap(); 208 /** 209 * 210 * 211 * <pre> 212 * Optional. A mapping of property names to values, used to configure 213 * Spark SQL's SparkConf. Properties that conflict with values set by the 214 * Dataproc API may be overwritten. 215 * </pre> 216 * 217 * <code>map<string, string> properties = 4 [(.google.api.field_behavior) = OPTIONAL]; 218 * </code> 219 */ 220 /* nullable */ getPropertiesOrDefault( java.lang.String key, java.lang.String defaultValue)221 java.lang.String getPropertiesOrDefault( 222 java.lang.String key, 223 /* nullable */ 224 java.lang.String defaultValue); 225 /** 226 * 227 * 228 * <pre> 229 * Optional. A mapping of property names to values, used to configure 230 * Spark SQL's SparkConf. Properties that conflict with values set by the 231 * Dataproc API may be overwritten. 232 * </pre> 233 * 234 * <code>map<string, string> properties = 4 [(.google.api.field_behavior) = OPTIONAL]; 235 * </code> 236 */ getPropertiesOrThrow(java.lang.String key)237 java.lang.String getPropertiesOrThrow(java.lang.String key); 238 239 /** 240 * 241 * 242 * <pre> 243 * Optional. HCFS URIs of jar files to be added to the Spark CLASSPATH. 244 * </pre> 245 * 246 * <code>repeated string jar_file_uris = 56 [(.google.api.field_behavior) = OPTIONAL];</code> 247 * 248 * @return A list containing the jarFileUris. 249 */ getJarFileUrisList()250 java.util.List<java.lang.String> getJarFileUrisList(); 251 /** 252 * 253 * 254 * <pre> 255 * Optional. HCFS URIs of jar files to be added to the Spark CLASSPATH. 256 * </pre> 257 * 258 * <code>repeated string jar_file_uris = 56 [(.google.api.field_behavior) = OPTIONAL];</code> 259 * 260 * @return The count of jarFileUris. 261 */ getJarFileUrisCount()262 int getJarFileUrisCount(); 263 /** 264 * 265 * 266 * <pre> 267 * Optional. HCFS URIs of jar files to be added to the Spark CLASSPATH. 268 * </pre> 269 * 270 * <code>repeated string jar_file_uris = 56 [(.google.api.field_behavior) = OPTIONAL];</code> 271 * 272 * @param index The index of the element to return. 273 * @return The jarFileUris at the given index. 274 */ getJarFileUris(int index)275 java.lang.String getJarFileUris(int index); 276 /** 277 * 278 * 279 * <pre> 280 * Optional. HCFS URIs of jar files to be added to the Spark CLASSPATH. 281 * </pre> 282 * 283 * <code>repeated string jar_file_uris = 56 [(.google.api.field_behavior) = OPTIONAL];</code> 284 * 285 * @param index The index of the value to return. 286 * @return The bytes of the jarFileUris at the given index. 287 */ getJarFileUrisBytes(int index)288 com.google.protobuf.ByteString getJarFileUrisBytes(int index); 289 290 /** 291 * 292 * 293 * <pre> 294 * Optional. The runtime log config for job execution. 295 * </pre> 296 * 297 * <code> 298 * .google.cloud.dataproc.v1.LoggingConfig logging_config = 6 [(.google.api.field_behavior) = OPTIONAL]; 299 * </code> 300 * 301 * @return Whether the loggingConfig field is set. 302 */ hasLoggingConfig()303 boolean hasLoggingConfig(); 304 /** 305 * 306 * 307 * <pre> 308 * Optional. The runtime log config for job execution. 309 * </pre> 310 * 311 * <code> 312 * .google.cloud.dataproc.v1.LoggingConfig logging_config = 6 [(.google.api.field_behavior) = OPTIONAL]; 313 * </code> 314 * 315 * @return The loggingConfig. 316 */ getLoggingConfig()317 com.google.cloud.dataproc.v1.LoggingConfig getLoggingConfig(); 318 /** 319 * 320 * 321 * <pre> 322 * Optional. The runtime log config for job execution. 323 * </pre> 324 * 325 * <code> 326 * .google.cloud.dataproc.v1.LoggingConfig logging_config = 6 [(.google.api.field_behavior) = OPTIONAL]; 327 * </code> 328 */ getLoggingConfigOrBuilder()329 com.google.cloud.dataproc.v1.LoggingConfigOrBuilder getLoggingConfigOrBuilder(); 330 getQueriesCase()331 public com.google.cloud.dataproc.v1.SparkSqlJob.QueriesCase getQueriesCase(); 332 } 333