• 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 PrestoJobOrBuilder
22     extends
23     // @@protoc_insertion_point(interface_extends:google.cloud.dataproc.v1.PrestoJob)
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. 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. The format in which query output will be displayed. See the
118    * Presto documentation for supported output formats
119    * </pre>
120    *
121    * <code>string output_format = 4 [(.google.api.field_behavior) = OPTIONAL];</code>
122    *
123    * @return The outputFormat.
124    */
getOutputFormat()125   java.lang.String getOutputFormat();
126   /**
127    *
128    *
129    * <pre>
130    * Optional. The format in which query output will be displayed. See the
131    * Presto documentation for supported output formats
132    * </pre>
133    *
134    * <code>string output_format = 4 [(.google.api.field_behavior) = OPTIONAL];</code>
135    *
136    * @return The bytes for outputFormat.
137    */
getOutputFormatBytes()138   com.google.protobuf.ByteString getOutputFormatBytes();
139 
140   /**
141    *
142    *
143    * <pre>
144    * Optional. Presto client tags to attach to this query
145    * </pre>
146    *
147    * <code>repeated string client_tags = 5 [(.google.api.field_behavior) = OPTIONAL];</code>
148    *
149    * @return A list containing the clientTags.
150    */
getClientTagsList()151   java.util.List<java.lang.String> getClientTagsList();
152   /**
153    *
154    *
155    * <pre>
156    * Optional. Presto client tags to attach to this query
157    * </pre>
158    *
159    * <code>repeated string client_tags = 5 [(.google.api.field_behavior) = OPTIONAL];</code>
160    *
161    * @return The count of clientTags.
162    */
getClientTagsCount()163   int getClientTagsCount();
164   /**
165    *
166    *
167    * <pre>
168    * Optional. Presto client tags to attach to this query
169    * </pre>
170    *
171    * <code>repeated string client_tags = 5 [(.google.api.field_behavior) = OPTIONAL];</code>
172    *
173    * @param index The index of the element to return.
174    * @return The clientTags at the given index.
175    */
getClientTags(int index)176   java.lang.String getClientTags(int index);
177   /**
178    *
179    *
180    * <pre>
181    * Optional. Presto client tags to attach to this query
182    * </pre>
183    *
184    * <code>repeated string client_tags = 5 [(.google.api.field_behavior) = OPTIONAL];</code>
185    *
186    * @param index The index of the value to return.
187    * @return The bytes of the clientTags at the given index.
188    */
getClientTagsBytes(int index)189   com.google.protobuf.ByteString getClientTagsBytes(int index);
190 
191   /**
192    *
193    *
194    * <pre>
195    * Optional. A mapping of property names to values. Used to set Presto
196    * [session properties](https://prestodb.io/docs/current/sql/set-session.html)
197    * Equivalent to using the --session flag in the Presto CLI
198    * </pre>
199    *
200    * <code>map&lt;string, string&gt; properties = 6 [(.google.api.field_behavior) = OPTIONAL];
201    * </code>
202    */
getPropertiesCount()203   int getPropertiesCount();
204   /**
205    *
206    *
207    * <pre>
208    * Optional. A mapping of property names to values. Used to set Presto
209    * [session properties](https://prestodb.io/docs/current/sql/set-session.html)
210    * Equivalent to using the --session flag in the Presto CLI
211    * </pre>
212    *
213    * <code>map&lt;string, string&gt; properties = 6 [(.google.api.field_behavior) = OPTIONAL];
214    * </code>
215    */
containsProperties(java.lang.String key)216   boolean containsProperties(java.lang.String key);
217   /** Use {@link #getPropertiesMap()} instead. */
218   @java.lang.Deprecated
getProperties()219   java.util.Map<java.lang.String, java.lang.String> getProperties();
220   /**
221    *
222    *
223    * <pre>
224    * Optional. A mapping of property names to values. Used to set Presto
225    * [session properties](https://prestodb.io/docs/current/sql/set-session.html)
226    * Equivalent to using the --session flag in the Presto CLI
227    * </pre>
228    *
229    * <code>map&lt;string, string&gt; properties = 6 [(.google.api.field_behavior) = OPTIONAL];
230    * </code>
231    */
getPropertiesMap()232   java.util.Map<java.lang.String, java.lang.String> getPropertiesMap();
233   /**
234    *
235    *
236    * <pre>
237    * Optional. A mapping of property names to values. Used to set Presto
238    * [session properties](https://prestodb.io/docs/current/sql/set-session.html)
239    * Equivalent to using the --session flag in the Presto CLI
240    * </pre>
241    *
242    * <code>map&lt;string, string&gt; properties = 6 [(.google.api.field_behavior) = OPTIONAL];
243    * </code>
244    */
245   /* nullable */
getPropertiesOrDefault( java.lang.String key, java.lang.String defaultValue)246   java.lang.String getPropertiesOrDefault(
247       java.lang.String key,
248       /* nullable */
249       java.lang.String defaultValue);
250   /**
251    *
252    *
253    * <pre>
254    * Optional. A mapping of property names to values. Used to set Presto
255    * [session properties](https://prestodb.io/docs/current/sql/set-session.html)
256    * Equivalent to using the --session flag in the Presto CLI
257    * </pre>
258    *
259    * <code>map&lt;string, string&gt; properties = 6 [(.google.api.field_behavior) = OPTIONAL];
260    * </code>
261    */
getPropertiesOrThrow(java.lang.String key)262   java.lang.String getPropertiesOrThrow(java.lang.String key);
263 
264   /**
265    *
266    *
267    * <pre>
268    * Optional. The runtime log config for job execution.
269    * </pre>
270    *
271    * <code>
272    * .google.cloud.dataproc.v1.LoggingConfig logging_config = 7 [(.google.api.field_behavior) = OPTIONAL];
273    * </code>
274    *
275    * @return Whether the loggingConfig field is set.
276    */
hasLoggingConfig()277   boolean hasLoggingConfig();
278   /**
279    *
280    *
281    * <pre>
282    * Optional. The runtime log config for job execution.
283    * </pre>
284    *
285    * <code>
286    * .google.cloud.dataproc.v1.LoggingConfig logging_config = 7 [(.google.api.field_behavior) = OPTIONAL];
287    * </code>
288    *
289    * @return The loggingConfig.
290    */
getLoggingConfig()291   com.google.cloud.dataproc.v1.LoggingConfig getLoggingConfig();
292   /**
293    *
294    *
295    * <pre>
296    * Optional. The runtime log config for job execution.
297    * </pre>
298    *
299    * <code>
300    * .google.cloud.dataproc.v1.LoggingConfig logging_config = 7 [(.google.api.field_behavior) = OPTIONAL];
301    * </code>
302    */
getLoggingConfigOrBuilder()303   com.google.cloud.dataproc.v1.LoggingConfigOrBuilder getLoggingConfigOrBuilder();
304 
getQueriesCase()305   public com.google.cloud.dataproc.v1.PrestoJob.QueriesCase getQueriesCase();
306 }
307