• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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 HiveJobOrBuilder
22     extends
23     // @@protoc_insertion_point(interface_extends:google.cloud.dataproc.v1.HiveJob)
24     com.google.protobuf.MessageOrBuilder {
25 
26   /**
27    *
28    *
29    * <pre>
30    * The HCFS URI of the script that contains Hive 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 Hive 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 Hive 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. Whether to continue executing queries if a query fails.
103    * The default value is `false`. Setting to `true` can be useful when
104    * executing independent parallel queries.
105    * </pre>
106    *
107    * <code>bool continue_on_failure = 3 [(.google.api.field_behavior) = OPTIONAL];</code>
108    *
109    * @return The continueOnFailure.
110    */
getContinueOnFailure()111   boolean getContinueOnFailure();
112 
113   /**
114    *
115    *
116    * <pre>
117    * Optional. Mapping of query variable names to values (equivalent to the
118    * Hive command: `SET name="value";`).
119    * </pre>
120    *
121    * <code>map&lt;string, string&gt; script_variables = 4 [(.google.api.field_behavior) = OPTIONAL];
122    * </code>
123    */
getScriptVariablesCount()124   int getScriptVariablesCount();
125   /**
126    *
127    *
128    * <pre>
129    * Optional. Mapping of query variable names to values (equivalent to the
130    * Hive command: `SET name="value";`).
131    * </pre>
132    *
133    * <code>map&lt;string, string&gt; script_variables = 4 [(.google.api.field_behavior) = OPTIONAL];
134    * </code>
135    */
containsScriptVariables(java.lang.String key)136   boolean containsScriptVariables(java.lang.String key);
137   /** Use {@link #getScriptVariablesMap()} instead. */
138   @java.lang.Deprecated
getScriptVariables()139   java.util.Map<java.lang.String, java.lang.String> getScriptVariables();
140   /**
141    *
142    *
143    * <pre>
144    * Optional. Mapping of query variable names to values (equivalent to the
145    * Hive command: `SET name="value";`).
146    * </pre>
147    *
148    * <code>map&lt;string, string&gt; script_variables = 4 [(.google.api.field_behavior) = OPTIONAL];
149    * </code>
150    */
getScriptVariablesMap()151   java.util.Map<java.lang.String, java.lang.String> getScriptVariablesMap();
152   /**
153    *
154    *
155    * <pre>
156    * Optional. Mapping of query variable names to values (equivalent to the
157    * Hive command: `SET name="value";`).
158    * </pre>
159    *
160    * <code>map&lt;string, string&gt; script_variables = 4 [(.google.api.field_behavior) = OPTIONAL];
161    * </code>
162    */
163   /* nullable */
getScriptVariablesOrDefault( java.lang.String key, java.lang.String defaultValue)164   java.lang.String getScriptVariablesOrDefault(
165       java.lang.String key,
166       /* nullable */
167       java.lang.String defaultValue);
168   /**
169    *
170    *
171    * <pre>
172    * Optional. Mapping of query variable names to values (equivalent to the
173    * Hive command: `SET name="value";`).
174    * </pre>
175    *
176    * <code>map&lt;string, string&gt; script_variables = 4 [(.google.api.field_behavior) = OPTIONAL];
177    * </code>
178    */
getScriptVariablesOrThrow(java.lang.String key)179   java.lang.String getScriptVariablesOrThrow(java.lang.String key);
180 
181   /**
182    *
183    *
184    * <pre>
185    * Optional. A mapping of property names and values, used to configure Hive.
186    * Properties that conflict with values set by the Dataproc API may be
187    * overwritten. Can include properties set in /etc/hadoop/conf/&#42;-site.xml,
188    * /etc/hive/conf/hive-site.xml, and classes in user code.
189    * </pre>
190    *
191    * <code>map&lt;string, string&gt; properties = 5 [(.google.api.field_behavior) = OPTIONAL];
192    * </code>
193    */
getPropertiesCount()194   int getPropertiesCount();
195   /**
196    *
197    *
198    * <pre>
199    * Optional. A mapping of property names and values, used to configure Hive.
200    * Properties that conflict with values set by the Dataproc API may be
201    * overwritten. Can include properties set in /etc/hadoop/conf/&#42;-site.xml,
202    * /etc/hive/conf/hive-site.xml, and classes in user code.
203    * </pre>
204    *
205    * <code>map&lt;string, string&gt; properties = 5 [(.google.api.field_behavior) = OPTIONAL];
206    * </code>
207    */
containsProperties(java.lang.String key)208   boolean containsProperties(java.lang.String key);
209   /** Use {@link #getPropertiesMap()} instead. */
210   @java.lang.Deprecated
getProperties()211   java.util.Map<java.lang.String, java.lang.String> getProperties();
212   /**
213    *
214    *
215    * <pre>
216    * Optional. A mapping of property names and values, used to configure Hive.
217    * Properties that conflict with values set by the Dataproc API may be
218    * overwritten. Can include properties set in /etc/hadoop/conf/&#42;-site.xml,
219    * /etc/hive/conf/hive-site.xml, and classes in user code.
220    * </pre>
221    *
222    * <code>map&lt;string, string&gt; properties = 5 [(.google.api.field_behavior) = OPTIONAL];
223    * </code>
224    */
getPropertiesMap()225   java.util.Map<java.lang.String, java.lang.String> getPropertiesMap();
226   /**
227    *
228    *
229    * <pre>
230    * Optional. A mapping of property names and values, used to configure Hive.
231    * Properties that conflict with values set by the Dataproc API may be
232    * overwritten. Can include properties set in /etc/hadoop/conf/&#42;-site.xml,
233    * /etc/hive/conf/hive-site.xml, and classes in user code.
234    * </pre>
235    *
236    * <code>map&lt;string, string&gt; properties = 5 [(.google.api.field_behavior) = OPTIONAL];
237    * </code>
238    */
239   /* nullable */
getPropertiesOrDefault( java.lang.String key, java.lang.String defaultValue)240   java.lang.String getPropertiesOrDefault(
241       java.lang.String key,
242       /* nullable */
243       java.lang.String defaultValue);
244   /**
245    *
246    *
247    * <pre>
248    * Optional. A mapping of property names and values, used to configure Hive.
249    * Properties that conflict with values set by the Dataproc API may be
250    * overwritten. Can include properties set in /etc/hadoop/conf/&#42;-site.xml,
251    * /etc/hive/conf/hive-site.xml, and classes in user code.
252    * </pre>
253    *
254    * <code>map&lt;string, string&gt; properties = 5 [(.google.api.field_behavior) = OPTIONAL];
255    * </code>
256    */
getPropertiesOrThrow(java.lang.String key)257   java.lang.String getPropertiesOrThrow(java.lang.String key);
258 
259   /**
260    *
261    *
262    * <pre>
263    * Optional. HCFS URIs of jar files to add to the CLASSPATH of the
264    * Hive server and Hadoop MapReduce (MR) tasks. Can contain Hive SerDes
265    * and UDFs.
266    * </pre>
267    *
268    * <code>repeated string jar_file_uris = 6 [(.google.api.field_behavior) = OPTIONAL];</code>
269    *
270    * @return A list containing the jarFileUris.
271    */
getJarFileUrisList()272   java.util.List<java.lang.String> getJarFileUrisList();
273   /**
274    *
275    *
276    * <pre>
277    * Optional. HCFS URIs of jar files to add to the CLASSPATH of the
278    * Hive server and Hadoop MapReduce (MR) tasks. Can contain Hive SerDes
279    * and UDFs.
280    * </pre>
281    *
282    * <code>repeated string jar_file_uris = 6 [(.google.api.field_behavior) = OPTIONAL];</code>
283    *
284    * @return The count of jarFileUris.
285    */
getJarFileUrisCount()286   int getJarFileUrisCount();
287   /**
288    *
289    *
290    * <pre>
291    * Optional. HCFS URIs of jar files to add to the CLASSPATH of the
292    * Hive server and Hadoop MapReduce (MR) tasks. Can contain Hive SerDes
293    * and UDFs.
294    * </pre>
295    *
296    * <code>repeated string jar_file_uris = 6 [(.google.api.field_behavior) = OPTIONAL];</code>
297    *
298    * @param index The index of the element to return.
299    * @return The jarFileUris at the given index.
300    */
getJarFileUris(int index)301   java.lang.String getJarFileUris(int index);
302   /**
303    *
304    *
305    * <pre>
306    * Optional. HCFS URIs of jar files to add to the CLASSPATH of the
307    * Hive server and Hadoop MapReduce (MR) tasks. Can contain Hive SerDes
308    * and UDFs.
309    * </pre>
310    *
311    * <code>repeated string jar_file_uris = 6 [(.google.api.field_behavior) = OPTIONAL];</code>
312    *
313    * @param index The index of the value to return.
314    * @return The bytes of the jarFileUris at the given index.
315    */
getJarFileUrisBytes(int index)316   com.google.protobuf.ByteString getJarFileUrisBytes(int index);
317 
getQueriesCase()318   public com.google.cloud.dataproc.v1.HiveJob.QueriesCase getQueriesCase();
319 }
320