• 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 /**
22  *
23  *
24  * <pre>
25  * A Dataproc job for running [Apache Hive](https://hive.apache.org/)
26  * queries on YARN.
27  * </pre>
28  *
29  * Protobuf type {@code google.cloud.dataproc.v1.HiveJob}
30  */
31 public final class HiveJob extends com.google.protobuf.GeneratedMessageV3
32     implements
33     // @@protoc_insertion_point(message_implements:google.cloud.dataproc.v1.HiveJob)
34     HiveJobOrBuilder {
35   private static final long serialVersionUID = 0L;
36   // Use HiveJob.newBuilder() to construct.
HiveJob(com.google.protobuf.GeneratedMessageV3.Builder<?> builder)37   private HiveJob(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {
38     super(builder);
39   }
40 
HiveJob()41   private HiveJob() {
42     jarFileUris_ = com.google.protobuf.LazyStringArrayList.EMPTY;
43   }
44 
45   @java.lang.Override
46   @SuppressWarnings({"unused"})
newInstance(UnusedPrivateParameter unused)47   protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
48     return new HiveJob();
49   }
50 
51   @java.lang.Override
getUnknownFields()52   public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
53     return this.unknownFields;
54   }
55 
getDescriptor()56   public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
57     return com.google.cloud.dataproc.v1.JobsProto
58         .internal_static_google_cloud_dataproc_v1_HiveJob_descriptor;
59   }
60 
61   @SuppressWarnings({"rawtypes"})
62   @java.lang.Override
internalGetMapField(int number)63   protected com.google.protobuf.MapField internalGetMapField(int number) {
64     switch (number) {
65       case 4:
66         return internalGetScriptVariables();
67       case 5:
68         return internalGetProperties();
69       default:
70         throw new RuntimeException("Invalid map field number: " + number);
71     }
72   }
73 
74   @java.lang.Override
75   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable()76       internalGetFieldAccessorTable() {
77     return com.google.cloud.dataproc.v1.JobsProto
78         .internal_static_google_cloud_dataproc_v1_HiveJob_fieldAccessorTable
79         .ensureFieldAccessorsInitialized(
80             com.google.cloud.dataproc.v1.HiveJob.class,
81             com.google.cloud.dataproc.v1.HiveJob.Builder.class);
82   }
83 
84   private int queriesCase_ = 0;
85   private java.lang.Object queries_;
86 
87   public enum QueriesCase
88       implements
89           com.google.protobuf.Internal.EnumLite,
90           com.google.protobuf.AbstractMessage.InternalOneOfEnum {
91     QUERY_FILE_URI(1),
92     QUERY_LIST(2),
93     QUERIES_NOT_SET(0);
94     private final int value;
95 
QueriesCase(int value)96     private QueriesCase(int value) {
97       this.value = value;
98     }
99     /**
100      * @param value The number of the enum to look for.
101      * @return The enum associated with the given number.
102      * @deprecated Use {@link #forNumber(int)} instead.
103      */
104     @java.lang.Deprecated
valueOf(int value)105     public static QueriesCase valueOf(int value) {
106       return forNumber(value);
107     }
108 
forNumber(int value)109     public static QueriesCase forNumber(int value) {
110       switch (value) {
111         case 1:
112           return QUERY_FILE_URI;
113         case 2:
114           return QUERY_LIST;
115         case 0:
116           return QUERIES_NOT_SET;
117         default:
118           return null;
119       }
120     }
121 
getNumber()122     public int getNumber() {
123       return this.value;
124     }
125   };
126 
getQueriesCase()127   public QueriesCase getQueriesCase() {
128     return QueriesCase.forNumber(queriesCase_);
129   }
130 
131   public static final int QUERY_FILE_URI_FIELD_NUMBER = 1;
132   /**
133    *
134    *
135    * <pre>
136    * The HCFS URI of the script that contains Hive queries.
137    * </pre>
138    *
139    * <code>string query_file_uri = 1;</code>
140    *
141    * @return Whether the queryFileUri field is set.
142    */
hasQueryFileUri()143   public boolean hasQueryFileUri() {
144     return queriesCase_ == 1;
145   }
146   /**
147    *
148    *
149    * <pre>
150    * The HCFS URI of the script that contains Hive queries.
151    * </pre>
152    *
153    * <code>string query_file_uri = 1;</code>
154    *
155    * @return The queryFileUri.
156    */
getQueryFileUri()157   public java.lang.String getQueryFileUri() {
158     java.lang.Object ref = "";
159     if (queriesCase_ == 1) {
160       ref = queries_;
161     }
162     if (ref instanceof java.lang.String) {
163       return (java.lang.String) ref;
164     } else {
165       com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
166       java.lang.String s = bs.toStringUtf8();
167       if (queriesCase_ == 1) {
168         queries_ = s;
169       }
170       return s;
171     }
172   }
173   /**
174    *
175    *
176    * <pre>
177    * The HCFS URI of the script that contains Hive queries.
178    * </pre>
179    *
180    * <code>string query_file_uri = 1;</code>
181    *
182    * @return The bytes for queryFileUri.
183    */
getQueryFileUriBytes()184   public com.google.protobuf.ByteString getQueryFileUriBytes() {
185     java.lang.Object ref = "";
186     if (queriesCase_ == 1) {
187       ref = queries_;
188     }
189     if (ref instanceof java.lang.String) {
190       com.google.protobuf.ByteString b =
191           com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
192       if (queriesCase_ == 1) {
193         queries_ = b;
194       }
195       return b;
196     } else {
197       return (com.google.protobuf.ByteString) ref;
198     }
199   }
200 
201   public static final int QUERY_LIST_FIELD_NUMBER = 2;
202   /**
203    *
204    *
205    * <pre>
206    * A list of queries.
207    * </pre>
208    *
209    * <code>.google.cloud.dataproc.v1.QueryList query_list = 2;</code>
210    *
211    * @return Whether the queryList field is set.
212    */
213   @java.lang.Override
hasQueryList()214   public boolean hasQueryList() {
215     return queriesCase_ == 2;
216   }
217   /**
218    *
219    *
220    * <pre>
221    * A list of queries.
222    * </pre>
223    *
224    * <code>.google.cloud.dataproc.v1.QueryList query_list = 2;</code>
225    *
226    * @return The queryList.
227    */
228   @java.lang.Override
getQueryList()229   public com.google.cloud.dataproc.v1.QueryList getQueryList() {
230     if (queriesCase_ == 2) {
231       return (com.google.cloud.dataproc.v1.QueryList) queries_;
232     }
233     return com.google.cloud.dataproc.v1.QueryList.getDefaultInstance();
234   }
235   /**
236    *
237    *
238    * <pre>
239    * A list of queries.
240    * </pre>
241    *
242    * <code>.google.cloud.dataproc.v1.QueryList query_list = 2;</code>
243    */
244   @java.lang.Override
getQueryListOrBuilder()245   public com.google.cloud.dataproc.v1.QueryListOrBuilder getQueryListOrBuilder() {
246     if (queriesCase_ == 2) {
247       return (com.google.cloud.dataproc.v1.QueryList) queries_;
248     }
249     return com.google.cloud.dataproc.v1.QueryList.getDefaultInstance();
250   }
251 
252   public static final int CONTINUE_ON_FAILURE_FIELD_NUMBER = 3;
253   private boolean continueOnFailure_ = false;
254   /**
255    *
256    *
257    * <pre>
258    * Optional. Whether to continue executing queries if a query fails.
259    * The default value is `false`. Setting to `true` can be useful when
260    * executing independent parallel queries.
261    * </pre>
262    *
263    * <code>bool continue_on_failure = 3 [(.google.api.field_behavior) = OPTIONAL];</code>
264    *
265    * @return The continueOnFailure.
266    */
267   @java.lang.Override
getContinueOnFailure()268   public boolean getContinueOnFailure() {
269     return continueOnFailure_;
270   }
271 
272   public static final int SCRIPT_VARIABLES_FIELD_NUMBER = 4;
273 
274   private static final class ScriptVariablesDefaultEntryHolder {
275     static final com.google.protobuf.MapEntry<java.lang.String, java.lang.String> defaultEntry =
276         com.google.protobuf.MapEntry.<java.lang.String, java.lang.String>newDefaultInstance(
277             com.google.cloud.dataproc.v1.JobsProto
278                 .internal_static_google_cloud_dataproc_v1_HiveJob_ScriptVariablesEntry_descriptor,
279             com.google.protobuf.WireFormat.FieldType.STRING,
280             "",
281             com.google.protobuf.WireFormat.FieldType.STRING,
282             "");
283   }
284 
285   @SuppressWarnings("serial")
286   private com.google.protobuf.MapField<java.lang.String, java.lang.String> scriptVariables_;
287 
288   private com.google.protobuf.MapField<java.lang.String, java.lang.String>
internalGetScriptVariables()289       internalGetScriptVariables() {
290     if (scriptVariables_ == null) {
291       return com.google.protobuf.MapField.emptyMapField(
292           ScriptVariablesDefaultEntryHolder.defaultEntry);
293     }
294     return scriptVariables_;
295   }
296 
getScriptVariablesCount()297   public int getScriptVariablesCount() {
298     return internalGetScriptVariables().getMap().size();
299   }
300   /**
301    *
302    *
303    * <pre>
304    * Optional. Mapping of query variable names to values (equivalent to the
305    * Hive command: `SET name="value";`).
306    * </pre>
307    *
308    * <code>map&lt;string, string&gt; script_variables = 4 [(.google.api.field_behavior) = OPTIONAL];
309    * </code>
310    */
311   @java.lang.Override
containsScriptVariables(java.lang.String key)312   public boolean containsScriptVariables(java.lang.String key) {
313     if (key == null) {
314       throw new NullPointerException("map key");
315     }
316     return internalGetScriptVariables().getMap().containsKey(key);
317   }
318   /** Use {@link #getScriptVariablesMap()} instead. */
319   @java.lang.Override
320   @java.lang.Deprecated
getScriptVariables()321   public java.util.Map<java.lang.String, java.lang.String> getScriptVariables() {
322     return getScriptVariablesMap();
323   }
324   /**
325    *
326    *
327    * <pre>
328    * Optional. Mapping of query variable names to values (equivalent to the
329    * Hive command: `SET name="value";`).
330    * </pre>
331    *
332    * <code>map&lt;string, string&gt; script_variables = 4 [(.google.api.field_behavior) = OPTIONAL];
333    * </code>
334    */
335   @java.lang.Override
getScriptVariablesMap()336   public java.util.Map<java.lang.String, java.lang.String> getScriptVariablesMap() {
337     return internalGetScriptVariables().getMap();
338   }
339   /**
340    *
341    *
342    * <pre>
343    * Optional. Mapping of query variable names to values (equivalent to the
344    * Hive command: `SET name="value";`).
345    * </pre>
346    *
347    * <code>map&lt;string, string&gt; script_variables = 4 [(.google.api.field_behavior) = OPTIONAL];
348    * </code>
349    */
350   @java.lang.Override
getScriptVariablesOrDefault( java.lang.String key, java.lang.String defaultValue)351   public /* nullable */ java.lang.String getScriptVariablesOrDefault(
352       java.lang.String key,
353       /* nullable */
354       java.lang.String defaultValue) {
355     if (key == null) {
356       throw new NullPointerException("map key");
357     }
358     java.util.Map<java.lang.String, java.lang.String> map = internalGetScriptVariables().getMap();
359     return map.containsKey(key) ? map.get(key) : defaultValue;
360   }
361   /**
362    *
363    *
364    * <pre>
365    * Optional. Mapping of query variable names to values (equivalent to the
366    * Hive command: `SET name="value";`).
367    * </pre>
368    *
369    * <code>map&lt;string, string&gt; script_variables = 4 [(.google.api.field_behavior) = OPTIONAL];
370    * </code>
371    */
372   @java.lang.Override
getScriptVariablesOrThrow(java.lang.String key)373   public java.lang.String getScriptVariablesOrThrow(java.lang.String key) {
374     if (key == null) {
375       throw new NullPointerException("map key");
376     }
377     java.util.Map<java.lang.String, java.lang.String> map = internalGetScriptVariables().getMap();
378     if (!map.containsKey(key)) {
379       throw new java.lang.IllegalArgumentException();
380     }
381     return map.get(key);
382   }
383 
384   public static final int PROPERTIES_FIELD_NUMBER = 5;
385 
386   private static final class PropertiesDefaultEntryHolder {
387     static final com.google.protobuf.MapEntry<java.lang.String, java.lang.String> defaultEntry =
388         com.google.protobuf.MapEntry.<java.lang.String, java.lang.String>newDefaultInstance(
389             com.google.cloud.dataproc.v1.JobsProto
390                 .internal_static_google_cloud_dataproc_v1_HiveJob_PropertiesEntry_descriptor,
391             com.google.protobuf.WireFormat.FieldType.STRING,
392             "",
393             com.google.protobuf.WireFormat.FieldType.STRING,
394             "");
395   }
396 
397   @SuppressWarnings("serial")
398   private com.google.protobuf.MapField<java.lang.String, java.lang.String> properties_;
399 
internalGetProperties()400   private com.google.protobuf.MapField<java.lang.String, java.lang.String> internalGetProperties() {
401     if (properties_ == null) {
402       return com.google.protobuf.MapField.emptyMapField(PropertiesDefaultEntryHolder.defaultEntry);
403     }
404     return properties_;
405   }
406 
getPropertiesCount()407   public int getPropertiesCount() {
408     return internalGetProperties().getMap().size();
409   }
410   /**
411    *
412    *
413    * <pre>
414    * Optional. A mapping of property names and values, used to configure Hive.
415    * Properties that conflict with values set by the Dataproc API may be
416    * overwritten. Can include properties set in /etc/hadoop/conf/&#42;-site.xml,
417    * /etc/hive/conf/hive-site.xml, and classes in user code.
418    * </pre>
419    *
420    * <code>map&lt;string, string&gt; properties = 5 [(.google.api.field_behavior) = OPTIONAL];
421    * </code>
422    */
423   @java.lang.Override
containsProperties(java.lang.String key)424   public boolean containsProperties(java.lang.String key) {
425     if (key == null) {
426       throw new NullPointerException("map key");
427     }
428     return internalGetProperties().getMap().containsKey(key);
429   }
430   /** Use {@link #getPropertiesMap()} instead. */
431   @java.lang.Override
432   @java.lang.Deprecated
getProperties()433   public java.util.Map<java.lang.String, java.lang.String> getProperties() {
434     return getPropertiesMap();
435   }
436   /**
437    *
438    *
439    * <pre>
440    * Optional. A mapping of property names and values, used to configure Hive.
441    * Properties that conflict with values set by the Dataproc API may be
442    * overwritten. Can include properties set in /etc/hadoop/conf/&#42;-site.xml,
443    * /etc/hive/conf/hive-site.xml, and classes in user code.
444    * </pre>
445    *
446    * <code>map&lt;string, string&gt; properties = 5 [(.google.api.field_behavior) = OPTIONAL];
447    * </code>
448    */
449   @java.lang.Override
getPropertiesMap()450   public java.util.Map<java.lang.String, java.lang.String> getPropertiesMap() {
451     return internalGetProperties().getMap();
452   }
453   /**
454    *
455    *
456    * <pre>
457    * Optional. A mapping of property names and values, used to configure Hive.
458    * Properties that conflict with values set by the Dataproc API may be
459    * overwritten. Can include properties set in /etc/hadoop/conf/&#42;-site.xml,
460    * /etc/hive/conf/hive-site.xml, and classes in user code.
461    * </pre>
462    *
463    * <code>map&lt;string, string&gt; properties = 5 [(.google.api.field_behavior) = OPTIONAL];
464    * </code>
465    */
466   @java.lang.Override
getPropertiesOrDefault( java.lang.String key, java.lang.String defaultValue)467   public /* nullable */ java.lang.String getPropertiesOrDefault(
468       java.lang.String key,
469       /* nullable */
470       java.lang.String defaultValue) {
471     if (key == null) {
472       throw new NullPointerException("map key");
473     }
474     java.util.Map<java.lang.String, java.lang.String> map = internalGetProperties().getMap();
475     return map.containsKey(key) ? map.get(key) : defaultValue;
476   }
477   /**
478    *
479    *
480    * <pre>
481    * Optional. A mapping of property names and values, used to configure Hive.
482    * Properties that conflict with values set by the Dataproc API may be
483    * overwritten. Can include properties set in /etc/hadoop/conf/&#42;-site.xml,
484    * /etc/hive/conf/hive-site.xml, and classes in user code.
485    * </pre>
486    *
487    * <code>map&lt;string, string&gt; properties = 5 [(.google.api.field_behavior) = OPTIONAL];
488    * </code>
489    */
490   @java.lang.Override
getPropertiesOrThrow(java.lang.String key)491   public java.lang.String getPropertiesOrThrow(java.lang.String key) {
492     if (key == null) {
493       throw new NullPointerException("map key");
494     }
495     java.util.Map<java.lang.String, java.lang.String> map = internalGetProperties().getMap();
496     if (!map.containsKey(key)) {
497       throw new java.lang.IllegalArgumentException();
498     }
499     return map.get(key);
500   }
501 
502   public static final int JAR_FILE_URIS_FIELD_NUMBER = 6;
503 
504   @SuppressWarnings("serial")
505   private com.google.protobuf.LazyStringList jarFileUris_;
506   /**
507    *
508    *
509    * <pre>
510    * Optional. HCFS URIs of jar files to add to the CLASSPATH of the
511    * Hive server and Hadoop MapReduce (MR) tasks. Can contain Hive SerDes
512    * and UDFs.
513    * </pre>
514    *
515    * <code>repeated string jar_file_uris = 6 [(.google.api.field_behavior) = OPTIONAL];</code>
516    *
517    * @return A list containing the jarFileUris.
518    */
getJarFileUrisList()519   public com.google.protobuf.ProtocolStringList getJarFileUrisList() {
520     return jarFileUris_;
521   }
522   /**
523    *
524    *
525    * <pre>
526    * Optional. HCFS URIs of jar files to add to the CLASSPATH of the
527    * Hive server and Hadoop MapReduce (MR) tasks. Can contain Hive SerDes
528    * and UDFs.
529    * </pre>
530    *
531    * <code>repeated string jar_file_uris = 6 [(.google.api.field_behavior) = OPTIONAL];</code>
532    *
533    * @return The count of jarFileUris.
534    */
getJarFileUrisCount()535   public int getJarFileUrisCount() {
536     return jarFileUris_.size();
537   }
538   /**
539    *
540    *
541    * <pre>
542    * Optional. HCFS URIs of jar files to add to the CLASSPATH of the
543    * Hive server and Hadoop MapReduce (MR) tasks. Can contain Hive SerDes
544    * and UDFs.
545    * </pre>
546    *
547    * <code>repeated string jar_file_uris = 6 [(.google.api.field_behavior) = OPTIONAL];</code>
548    *
549    * @param index The index of the element to return.
550    * @return The jarFileUris at the given index.
551    */
getJarFileUris(int index)552   public java.lang.String getJarFileUris(int index) {
553     return jarFileUris_.get(index);
554   }
555   /**
556    *
557    *
558    * <pre>
559    * Optional. HCFS URIs of jar files to add to the CLASSPATH of the
560    * Hive server and Hadoop MapReduce (MR) tasks. Can contain Hive SerDes
561    * and UDFs.
562    * </pre>
563    *
564    * <code>repeated string jar_file_uris = 6 [(.google.api.field_behavior) = OPTIONAL];</code>
565    *
566    * @param index The index of the value to return.
567    * @return The bytes of the jarFileUris at the given index.
568    */
getJarFileUrisBytes(int index)569   public com.google.protobuf.ByteString getJarFileUrisBytes(int index) {
570     return jarFileUris_.getByteString(index);
571   }
572 
573   private byte memoizedIsInitialized = -1;
574 
575   @java.lang.Override
isInitialized()576   public final boolean isInitialized() {
577     byte isInitialized = memoizedIsInitialized;
578     if (isInitialized == 1) return true;
579     if (isInitialized == 0) return false;
580 
581     memoizedIsInitialized = 1;
582     return true;
583   }
584 
585   @java.lang.Override
writeTo(com.google.protobuf.CodedOutputStream output)586   public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
587     if (queriesCase_ == 1) {
588       com.google.protobuf.GeneratedMessageV3.writeString(output, 1, queries_);
589     }
590     if (queriesCase_ == 2) {
591       output.writeMessage(2, (com.google.cloud.dataproc.v1.QueryList) queries_);
592     }
593     if (continueOnFailure_ != false) {
594       output.writeBool(3, continueOnFailure_);
595     }
596     com.google.protobuf.GeneratedMessageV3.serializeStringMapTo(
597         output, internalGetScriptVariables(), ScriptVariablesDefaultEntryHolder.defaultEntry, 4);
598     com.google.protobuf.GeneratedMessageV3.serializeStringMapTo(
599         output, internalGetProperties(), PropertiesDefaultEntryHolder.defaultEntry, 5);
600     for (int i = 0; i < jarFileUris_.size(); i++) {
601       com.google.protobuf.GeneratedMessageV3.writeString(output, 6, jarFileUris_.getRaw(i));
602     }
603     getUnknownFields().writeTo(output);
604   }
605 
606   @java.lang.Override
getSerializedSize()607   public int getSerializedSize() {
608     int size = memoizedSize;
609     if (size != -1) return size;
610 
611     size = 0;
612     if (queriesCase_ == 1) {
613       size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, queries_);
614     }
615     if (queriesCase_ == 2) {
616       size +=
617           com.google.protobuf.CodedOutputStream.computeMessageSize(
618               2, (com.google.cloud.dataproc.v1.QueryList) queries_);
619     }
620     if (continueOnFailure_ != false) {
621       size += com.google.protobuf.CodedOutputStream.computeBoolSize(3, continueOnFailure_);
622     }
623     for (java.util.Map.Entry<java.lang.String, java.lang.String> entry :
624         internalGetScriptVariables().getMap().entrySet()) {
625       com.google.protobuf.MapEntry<java.lang.String, java.lang.String> scriptVariables__ =
626           ScriptVariablesDefaultEntryHolder.defaultEntry
627               .newBuilderForType()
628               .setKey(entry.getKey())
629               .setValue(entry.getValue())
630               .build();
631       size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, scriptVariables__);
632     }
633     for (java.util.Map.Entry<java.lang.String, java.lang.String> entry :
634         internalGetProperties().getMap().entrySet()) {
635       com.google.protobuf.MapEntry<java.lang.String, java.lang.String> properties__ =
636           PropertiesDefaultEntryHolder.defaultEntry
637               .newBuilderForType()
638               .setKey(entry.getKey())
639               .setValue(entry.getValue())
640               .build();
641       size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, properties__);
642     }
643     {
644       int dataSize = 0;
645       for (int i = 0; i < jarFileUris_.size(); i++) {
646         dataSize += computeStringSizeNoTag(jarFileUris_.getRaw(i));
647       }
648       size += dataSize;
649       size += 1 * getJarFileUrisList().size();
650     }
651     size += getUnknownFields().getSerializedSize();
652     memoizedSize = size;
653     return size;
654   }
655 
656   @java.lang.Override
equals(final java.lang.Object obj)657   public boolean equals(final java.lang.Object obj) {
658     if (obj == this) {
659       return true;
660     }
661     if (!(obj instanceof com.google.cloud.dataproc.v1.HiveJob)) {
662       return super.equals(obj);
663     }
664     com.google.cloud.dataproc.v1.HiveJob other = (com.google.cloud.dataproc.v1.HiveJob) obj;
665 
666     if (getContinueOnFailure() != other.getContinueOnFailure()) return false;
667     if (!internalGetScriptVariables().equals(other.internalGetScriptVariables())) return false;
668     if (!internalGetProperties().equals(other.internalGetProperties())) return false;
669     if (!getJarFileUrisList().equals(other.getJarFileUrisList())) return false;
670     if (!getQueriesCase().equals(other.getQueriesCase())) return false;
671     switch (queriesCase_) {
672       case 1:
673         if (!getQueryFileUri().equals(other.getQueryFileUri())) return false;
674         break;
675       case 2:
676         if (!getQueryList().equals(other.getQueryList())) return false;
677         break;
678       case 0:
679       default:
680     }
681     if (!getUnknownFields().equals(other.getUnknownFields())) return false;
682     return true;
683   }
684 
685   @java.lang.Override
hashCode()686   public int hashCode() {
687     if (memoizedHashCode != 0) {
688       return memoizedHashCode;
689     }
690     int hash = 41;
691     hash = (19 * hash) + getDescriptor().hashCode();
692     hash = (37 * hash) + CONTINUE_ON_FAILURE_FIELD_NUMBER;
693     hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getContinueOnFailure());
694     if (!internalGetScriptVariables().getMap().isEmpty()) {
695       hash = (37 * hash) + SCRIPT_VARIABLES_FIELD_NUMBER;
696       hash = (53 * hash) + internalGetScriptVariables().hashCode();
697     }
698     if (!internalGetProperties().getMap().isEmpty()) {
699       hash = (37 * hash) + PROPERTIES_FIELD_NUMBER;
700       hash = (53 * hash) + internalGetProperties().hashCode();
701     }
702     if (getJarFileUrisCount() > 0) {
703       hash = (37 * hash) + JAR_FILE_URIS_FIELD_NUMBER;
704       hash = (53 * hash) + getJarFileUrisList().hashCode();
705     }
706     switch (queriesCase_) {
707       case 1:
708         hash = (37 * hash) + QUERY_FILE_URI_FIELD_NUMBER;
709         hash = (53 * hash) + getQueryFileUri().hashCode();
710         break;
711       case 2:
712         hash = (37 * hash) + QUERY_LIST_FIELD_NUMBER;
713         hash = (53 * hash) + getQueryList().hashCode();
714         break;
715       case 0:
716       default:
717     }
718     hash = (29 * hash) + getUnknownFields().hashCode();
719     memoizedHashCode = hash;
720     return hash;
721   }
722 
parseFrom(java.nio.ByteBuffer data)723   public static com.google.cloud.dataproc.v1.HiveJob parseFrom(java.nio.ByteBuffer data)
724       throws com.google.protobuf.InvalidProtocolBufferException {
725     return PARSER.parseFrom(data);
726   }
727 
parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)728   public static com.google.cloud.dataproc.v1.HiveJob parseFrom(
729       java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
730       throws com.google.protobuf.InvalidProtocolBufferException {
731     return PARSER.parseFrom(data, extensionRegistry);
732   }
733 
parseFrom(com.google.protobuf.ByteString data)734   public static com.google.cloud.dataproc.v1.HiveJob parseFrom(com.google.protobuf.ByteString data)
735       throws com.google.protobuf.InvalidProtocolBufferException {
736     return PARSER.parseFrom(data);
737   }
738 
parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)739   public static com.google.cloud.dataproc.v1.HiveJob parseFrom(
740       com.google.protobuf.ByteString data,
741       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
742       throws com.google.protobuf.InvalidProtocolBufferException {
743     return PARSER.parseFrom(data, extensionRegistry);
744   }
745 
parseFrom(byte[] data)746   public static com.google.cloud.dataproc.v1.HiveJob parseFrom(byte[] data)
747       throws com.google.protobuf.InvalidProtocolBufferException {
748     return PARSER.parseFrom(data);
749   }
750 
parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)751   public static com.google.cloud.dataproc.v1.HiveJob parseFrom(
752       byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
753       throws com.google.protobuf.InvalidProtocolBufferException {
754     return PARSER.parseFrom(data, extensionRegistry);
755   }
756 
parseFrom(java.io.InputStream input)757   public static com.google.cloud.dataproc.v1.HiveJob parseFrom(java.io.InputStream input)
758       throws java.io.IOException {
759     return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
760   }
761 
parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)762   public static com.google.cloud.dataproc.v1.HiveJob parseFrom(
763       java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
764       throws java.io.IOException {
765     return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
766         PARSER, input, extensionRegistry);
767   }
768 
parseDelimitedFrom(java.io.InputStream input)769   public static com.google.cloud.dataproc.v1.HiveJob parseDelimitedFrom(java.io.InputStream input)
770       throws java.io.IOException {
771     return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
772   }
773 
parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)774   public static com.google.cloud.dataproc.v1.HiveJob parseDelimitedFrom(
775       java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
776       throws java.io.IOException {
777     return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
778         PARSER, input, extensionRegistry);
779   }
780 
parseFrom( com.google.protobuf.CodedInputStream input)781   public static com.google.cloud.dataproc.v1.HiveJob parseFrom(
782       com.google.protobuf.CodedInputStream input) throws java.io.IOException {
783     return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
784   }
785 
parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)786   public static com.google.cloud.dataproc.v1.HiveJob parseFrom(
787       com.google.protobuf.CodedInputStream input,
788       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
789       throws java.io.IOException {
790     return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
791         PARSER, input, extensionRegistry);
792   }
793 
794   @java.lang.Override
newBuilderForType()795   public Builder newBuilderForType() {
796     return newBuilder();
797   }
798 
newBuilder()799   public static Builder newBuilder() {
800     return DEFAULT_INSTANCE.toBuilder();
801   }
802 
newBuilder(com.google.cloud.dataproc.v1.HiveJob prototype)803   public static Builder newBuilder(com.google.cloud.dataproc.v1.HiveJob prototype) {
804     return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
805   }
806 
807   @java.lang.Override
toBuilder()808   public Builder toBuilder() {
809     return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
810   }
811 
812   @java.lang.Override
newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)813   protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
814     Builder builder = new Builder(parent);
815     return builder;
816   }
817   /**
818    *
819    *
820    * <pre>
821    * A Dataproc job for running [Apache Hive](https://hive.apache.org/)
822    * queries on YARN.
823    * </pre>
824    *
825    * Protobuf type {@code google.cloud.dataproc.v1.HiveJob}
826    */
827   public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder<Builder>
828       implements
829       // @@protoc_insertion_point(builder_implements:google.cloud.dataproc.v1.HiveJob)
830       com.google.cloud.dataproc.v1.HiveJobOrBuilder {
getDescriptor()831     public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
832       return com.google.cloud.dataproc.v1.JobsProto
833           .internal_static_google_cloud_dataproc_v1_HiveJob_descriptor;
834     }
835 
836     @SuppressWarnings({"rawtypes"})
internalGetMapField(int number)837     protected com.google.protobuf.MapField internalGetMapField(int number) {
838       switch (number) {
839         case 4:
840           return internalGetScriptVariables();
841         case 5:
842           return internalGetProperties();
843         default:
844           throw new RuntimeException("Invalid map field number: " + number);
845       }
846     }
847 
848     @SuppressWarnings({"rawtypes"})
internalGetMutableMapField(int number)849     protected com.google.protobuf.MapField internalGetMutableMapField(int number) {
850       switch (number) {
851         case 4:
852           return internalGetMutableScriptVariables();
853         case 5:
854           return internalGetMutableProperties();
855         default:
856           throw new RuntimeException("Invalid map field number: " + number);
857       }
858     }
859 
860     @java.lang.Override
861     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable()862         internalGetFieldAccessorTable() {
863       return com.google.cloud.dataproc.v1.JobsProto
864           .internal_static_google_cloud_dataproc_v1_HiveJob_fieldAccessorTable
865           .ensureFieldAccessorsInitialized(
866               com.google.cloud.dataproc.v1.HiveJob.class,
867               com.google.cloud.dataproc.v1.HiveJob.Builder.class);
868     }
869 
870     // Construct using com.google.cloud.dataproc.v1.HiveJob.newBuilder()
Builder()871     private Builder() {}
872 
Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)873     private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
874       super(parent);
875     }
876 
877     @java.lang.Override
clear()878     public Builder clear() {
879       super.clear();
880       bitField0_ = 0;
881       if (queryListBuilder_ != null) {
882         queryListBuilder_.clear();
883       }
884       continueOnFailure_ = false;
885       internalGetMutableScriptVariables().clear();
886       internalGetMutableProperties().clear();
887       jarFileUris_ = com.google.protobuf.LazyStringArrayList.EMPTY;
888       bitField0_ = (bitField0_ & ~0x00000020);
889       queriesCase_ = 0;
890       queries_ = null;
891       return this;
892     }
893 
894     @java.lang.Override
getDescriptorForType()895     public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
896       return com.google.cloud.dataproc.v1.JobsProto
897           .internal_static_google_cloud_dataproc_v1_HiveJob_descriptor;
898     }
899 
900     @java.lang.Override
getDefaultInstanceForType()901     public com.google.cloud.dataproc.v1.HiveJob getDefaultInstanceForType() {
902       return com.google.cloud.dataproc.v1.HiveJob.getDefaultInstance();
903     }
904 
905     @java.lang.Override
build()906     public com.google.cloud.dataproc.v1.HiveJob build() {
907       com.google.cloud.dataproc.v1.HiveJob result = buildPartial();
908       if (!result.isInitialized()) {
909         throw newUninitializedMessageException(result);
910       }
911       return result;
912     }
913 
914     @java.lang.Override
buildPartial()915     public com.google.cloud.dataproc.v1.HiveJob buildPartial() {
916       com.google.cloud.dataproc.v1.HiveJob result = new com.google.cloud.dataproc.v1.HiveJob(this);
917       buildPartialRepeatedFields(result);
918       if (bitField0_ != 0) {
919         buildPartial0(result);
920       }
921       buildPartialOneofs(result);
922       onBuilt();
923       return result;
924     }
925 
buildPartialRepeatedFields(com.google.cloud.dataproc.v1.HiveJob result)926     private void buildPartialRepeatedFields(com.google.cloud.dataproc.v1.HiveJob result) {
927       if (((bitField0_ & 0x00000020) != 0)) {
928         jarFileUris_ = jarFileUris_.getUnmodifiableView();
929         bitField0_ = (bitField0_ & ~0x00000020);
930       }
931       result.jarFileUris_ = jarFileUris_;
932     }
933 
buildPartial0(com.google.cloud.dataproc.v1.HiveJob result)934     private void buildPartial0(com.google.cloud.dataproc.v1.HiveJob result) {
935       int from_bitField0_ = bitField0_;
936       if (((from_bitField0_ & 0x00000004) != 0)) {
937         result.continueOnFailure_ = continueOnFailure_;
938       }
939       if (((from_bitField0_ & 0x00000008) != 0)) {
940         result.scriptVariables_ = internalGetScriptVariables();
941         result.scriptVariables_.makeImmutable();
942       }
943       if (((from_bitField0_ & 0x00000010) != 0)) {
944         result.properties_ = internalGetProperties();
945         result.properties_.makeImmutable();
946       }
947     }
948 
buildPartialOneofs(com.google.cloud.dataproc.v1.HiveJob result)949     private void buildPartialOneofs(com.google.cloud.dataproc.v1.HiveJob result) {
950       result.queriesCase_ = queriesCase_;
951       result.queries_ = this.queries_;
952       if (queriesCase_ == 2 && queryListBuilder_ != null) {
953         result.queries_ = queryListBuilder_.build();
954       }
955     }
956 
957     @java.lang.Override
clone()958     public Builder clone() {
959       return super.clone();
960     }
961 
962     @java.lang.Override
setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)963     public Builder setField(
964         com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
965       return super.setField(field, value);
966     }
967 
968     @java.lang.Override
clearField(com.google.protobuf.Descriptors.FieldDescriptor field)969     public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
970       return super.clearField(field);
971     }
972 
973     @java.lang.Override
clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)974     public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
975       return super.clearOneof(oneof);
976     }
977 
978     @java.lang.Override
setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value)979     public Builder setRepeatedField(
980         com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
981       return super.setRepeatedField(field, index, value);
982     }
983 
984     @java.lang.Override
addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)985     public Builder addRepeatedField(
986         com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
987       return super.addRepeatedField(field, value);
988     }
989 
990     @java.lang.Override
mergeFrom(com.google.protobuf.Message other)991     public Builder mergeFrom(com.google.protobuf.Message other) {
992       if (other instanceof com.google.cloud.dataproc.v1.HiveJob) {
993         return mergeFrom((com.google.cloud.dataproc.v1.HiveJob) other);
994       } else {
995         super.mergeFrom(other);
996         return this;
997       }
998     }
999 
mergeFrom(com.google.cloud.dataproc.v1.HiveJob other)1000     public Builder mergeFrom(com.google.cloud.dataproc.v1.HiveJob other) {
1001       if (other == com.google.cloud.dataproc.v1.HiveJob.getDefaultInstance()) return this;
1002       if (other.getContinueOnFailure() != false) {
1003         setContinueOnFailure(other.getContinueOnFailure());
1004       }
1005       internalGetMutableScriptVariables().mergeFrom(other.internalGetScriptVariables());
1006       bitField0_ |= 0x00000008;
1007       internalGetMutableProperties().mergeFrom(other.internalGetProperties());
1008       bitField0_ |= 0x00000010;
1009       if (!other.jarFileUris_.isEmpty()) {
1010         if (jarFileUris_.isEmpty()) {
1011           jarFileUris_ = other.jarFileUris_;
1012           bitField0_ = (bitField0_ & ~0x00000020);
1013         } else {
1014           ensureJarFileUrisIsMutable();
1015           jarFileUris_.addAll(other.jarFileUris_);
1016         }
1017         onChanged();
1018       }
1019       switch (other.getQueriesCase()) {
1020         case QUERY_FILE_URI:
1021           {
1022             queriesCase_ = 1;
1023             queries_ = other.queries_;
1024             onChanged();
1025             break;
1026           }
1027         case QUERY_LIST:
1028           {
1029             mergeQueryList(other.getQueryList());
1030             break;
1031           }
1032         case QUERIES_NOT_SET:
1033           {
1034             break;
1035           }
1036       }
1037       this.mergeUnknownFields(other.getUnknownFields());
1038       onChanged();
1039       return this;
1040     }
1041 
1042     @java.lang.Override
isInitialized()1043     public final boolean isInitialized() {
1044       return true;
1045     }
1046 
1047     @java.lang.Override
mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)1048     public Builder mergeFrom(
1049         com.google.protobuf.CodedInputStream input,
1050         com.google.protobuf.ExtensionRegistryLite extensionRegistry)
1051         throws java.io.IOException {
1052       if (extensionRegistry == null) {
1053         throw new java.lang.NullPointerException();
1054       }
1055       try {
1056         boolean done = false;
1057         while (!done) {
1058           int tag = input.readTag();
1059           switch (tag) {
1060             case 0:
1061               done = true;
1062               break;
1063             case 10:
1064               {
1065                 java.lang.String s = input.readStringRequireUtf8();
1066                 queriesCase_ = 1;
1067                 queries_ = s;
1068                 break;
1069               } // case 10
1070             case 18:
1071               {
1072                 input.readMessage(getQueryListFieldBuilder().getBuilder(), extensionRegistry);
1073                 queriesCase_ = 2;
1074                 break;
1075               } // case 18
1076             case 24:
1077               {
1078                 continueOnFailure_ = input.readBool();
1079                 bitField0_ |= 0x00000004;
1080                 break;
1081               } // case 24
1082             case 34:
1083               {
1084                 com.google.protobuf.MapEntry<java.lang.String, java.lang.String> scriptVariables__ =
1085                     input.readMessage(
1086                         ScriptVariablesDefaultEntryHolder.defaultEntry.getParserForType(),
1087                         extensionRegistry);
1088                 internalGetMutableScriptVariables()
1089                     .getMutableMap()
1090                     .put(scriptVariables__.getKey(), scriptVariables__.getValue());
1091                 bitField0_ |= 0x00000008;
1092                 break;
1093               } // case 34
1094             case 42:
1095               {
1096                 com.google.protobuf.MapEntry<java.lang.String, java.lang.String> properties__ =
1097                     input.readMessage(
1098                         PropertiesDefaultEntryHolder.defaultEntry.getParserForType(),
1099                         extensionRegistry);
1100                 internalGetMutableProperties()
1101                     .getMutableMap()
1102                     .put(properties__.getKey(), properties__.getValue());
1103                 bitField0_ |= 0x00000010;
1104                 break;
1105               } // case 42
1106             case 50:
1107               {
1108                 java.lang.String s = input.readStringRequireUtf8();
1109                 ensureJarFileUrisIsMutable();
1110                 jarFileUris_.add(s);
1111                 break;
1112               } // case 50
1113             default:
1114               {
1115                 if (!super.parseUnknownField(input, extensionRegistry, tag)) {
1116                   done = true; // was an endgroup tag
1117                 }
1118                 break;
1119               } // default:
1120           } // switch (tag)
1121         } // while (!done)
1122       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
1123         throw e.unwrapIOException();
1124       } finally {
1125         onChanged();
1126       } // finally
1127       return this;
1128     }
1129 
1130     private int queriesCase_ = 0;
1131     private java.lang.Object queries_;
1132 
getQueriesCase()1133     public QueriesCase getQueriesCase() {
1134       return QueriesCase.forNumber(queriesCase_);
1135     }
1136 
clearQueries()1137     public Builder clearQueries() {
1138       queriesCase_ = 0;
1139       queries_ = null;
1140       onChanged();
1141       return this;
1142     }
1143 
1144     private int bitField0_;
1145 
1146     /**
1147      *
1148      *
1149      * <pre>
1150      * The HCFS URI of the script that contains Hive queries.
1151      * </pre>
1152      *
1153      * <code>string query_file_uri = 1;</code>
1154      *
1155      * @return Whether the queryFileUri field is set.
1156      */
1157     @java.lang.Override
hasQueryFileUri()1158     public boolean hasQueryFileUri() {
1159       return queriesCase_ == 1;
1160     }
1161     /**
1162      *
1163      *
1164      * <pre>
1165      * The HCFS URI of the script that contains Hive queries.
1166      * </pre>
1167      *
1168      * <code>string query_file_uri = 1;</code>
1169      *
1170      * @return The queryFileUri.
1171      */
1172     @java.lang.Override
getQueryFileUri()1173     public java.lang.String getQueryFileUri() {
1174       java.lang.Object ref = "";
1175       if (queriesCase_ == 1) {
1176         ref = queries_;
1177       }
1178       if (!(ref instanceof java.lang.String)) {
1179         com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
1180         java.lang.String s = bs.toStringUtf8();
1181         if (queriesCase_ == 1) {
1182           queries_ = s;
1183         }
1184         return s;
1185       } else {
1186         return (java.lang.String) ref;
1187       }
1188     }
1189     /**
1190      *
1191      *
1192      * <pre>
1193      * The HCFS URI of the script that contains Hive queries.
1194      * </pre>
1195      *
1196      * <code>string query_file_uri = 1;</code>
1197      *
1198      * @return The bytes for queryFileUri.
1199      */
1200     @java.lang.Override
getQueryFileUriBytes()1201     public com.google.protobuf.ByteString getQueryFileUriBytes() {
1202       java.lang.Object ref = "";
1203       if (queriesCase_ == 1) {
1204         ref = queries_;
1205       }
1206       if (ref instanceof String) {
1207         com.google.protobuf.ByteString b =
1208             com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
1209         if (queriesCase_ == 1) {
1210           queries_ = b;
1211         }
1212         return b;
1213       } else {
1214         return (com.google.protobuf.ByteString) ref;
1215       }
1216     }
1217     /**
1218      *
1219      *
1220      * <pre>
1221      * The HCFS URI of the script that contains Hive queries.
1222      * </pre>
1223      *
1224      * <code>string query_file_uri = 1;</code>
1225      *
1226      * @param value The queryFileUri to set.
1227      * @return This builder for chaining.
1228      */
setQueryFileUri(java.lang.String value)1229     public Builder setQueryFileUri(java.lang.String value) {
1230       if (value == null) {
1231         throw new NullPointerException();
1232       }
1233       queriesCase_ = 1;
1234       queries_ = value;
1235       onChanged();
1236       return this;
1237     }
1238     /**
1239      *
1240      *
1241      * <pre>
1242      * The HCFS URI of the script that contains Hive queries.
1243      * </pre>
1244      *
1245      * <code>string query_file_uri = 1;</code>
1246      *
1247      * @return This builder for chaining.
1248      */
clearQueryFileUri()1249     public Builder clearQueryFileUri() {
1250       if (queriesCase_ == 1) {
1251         queriesCase_ = 0;
1252         queries_ = null;
1253         onChanged();
1254       }
1255       return this;
1256     }
1257     /**
1258      *
1259      *
1260      * <pre>
1261      * The HCFS URI of the script that contains Hive queries.
1262      * </pre>
1263      *
1264      * <code>string query_file_uri = 1;</code>
1265      *
1266      * @param value The bytes for queryFileUri to set.
1267      * @return This builder for chaining.
1268      */
setQueryFileUriBytes(com.google.protobuf.ByteString value)1269     public Builder setQueryFileUriBytes(com.google.protobuf.ByteString value) {
1270       if (value == null) {
1271         throw new NullPointerException();
1272       }
1273       checkByteStringIsUtf8(value);
1274       queriesCase_ = 1;
1275       queries_ = value;
1276       onChanged();
1277       return this;
1278     }
1279 
1280     private com.google.protobuf.SingleFieldBuilderV3<
1281             com.google.cloud.dataproc.v1.QueryList,
1282             com.google.cloud.dataproc.v1.QueryList.Builder,
1283             com.google.cloud.dataproc.v1.QueryListOrBuilder>
1284         queryListBuilder_;
1285     /**
1286      *
1287      *
1288      * <pre>
1289      * A list of queries.
1290      * </pre>
1291      *
1292      * <code>.google.cloud.dataproc.v1.QueryList query_list = 2;</code>
1293      *
1294      * @return Whether the queryList field is set.
1295      */
1296     @java.lang.Override
hasQueryList()1297     public boolean hasQueryList() {
1298       return queriesCase_ == 2;
1299     }
1300     /**
1301      *
1302      *
1303      * <pre>
1304      * A list of queries.
1305      * </pre>
1306      *
1307      * <code>.google.cloud.dataproc.v1.QueryList query_list = 2;</code>
1308      *
1309      * @return The queryList.
1310      */
1311     @java.lang.Override
getQueryList()1312     public com.google.cloud.dataproc.v1.QueryList getQueryList() {
1313       if (queryListBuilder_ == null) {
1314         if (queriesCase_ == 2) {
1315           return (com.google.cloud.dataproc.v1.QueryList) queries_;
1316         }
1317         return com.google.cloud.dataproc.v1.QueryList.getDefaultInstance();
1318       } else {
1319         if (queriesCase_ == 2) {
1320           return queryListBuilder_.getMessage();
1321         }
1322         return com.google.cloud.dataproc.v1.QueryList.getDefaultInstance();
1323       }
1324     }
1325     /**
1326      *
1327      *
1328      * <pre>
1329      * A list of queries.
1330      * </pre>
1331      *
1332      * <code>.google.cloud.dataproc.v1.QueryList query_list = 2;</code>
1333      */
setQueryList(com.google.cloud.dataproc.v1.QueryList value)1334     public Builder setQueryList(com.google.cloud.dataproc.v1.QueryList value) {
1335       if (queryListBuilder_ == null) {
1336         if (value == null) {
1337           throw new NullPointerException();
1338         }
1339         queries_ = value;
1340         onChanged();
1341       } else {
1342         queryListBuilder_.setMessage(value);
1343       }
1344       queriesCase_ = 2;
1345       return this;
1346     }
1347     /**
1348      *
1349      *
1350      * <pre>
1351      * A list of queries.
1352      * </pre>
1353      *
1354      * <code>.google.cloud.dataproc.v1.QueryList query_list = 2;</code>
1355      */
setQueryList(com.google.cloud.dataproc.v1.QueryList.Builder builderForValue)1356     public Builder setQueryList(com.google.cloud.dataproc.v1.QueryList.Builder builderForValue) {
1357       if (queryListBuilder_ == null) {
1358         queries_ = builderForValue.build();
1359         onChanged();
1360       } else {
1361         queryListBuilder_.setMessage(builderForValue.build());
1362       }
1363       queriesCase_ = 2;
1364       return this;
1365     }
1366     /**
1367      *
1368      *
1369      * <pre>
1370      * A list of queries.
1371      * </pre>
1372      *
1373      * <code>.google.cloud.dataproc.v1.QueryList query_list = 2;</code>
1374      */
mergeQueryList(com.google.cloud.dataproc.v1.QueryList value)1375     public Builder mergeQueryList(com.google.cloud.dataproc.v1.QueryList value) {
1376       if (queryListBuilder_ == null) {
1377         if (queriesCase_ == 2
1378             && queries_ != com.google.cloud.dataproc.v1.QueryList.getDefaultInstance()) {
1379           queries_ =
1380               com.google.cloud.dataproc.v1.QueryList.newBuilder(
1381                       (com.google.cloud.dataproc.v1.QueryList) queries_)
1382                   .mergeFrom(value)
1383                   .buildPartial();
1384         } else {
1385           queries_ = value;
1386         }
1387         onChanged();
1388       } else {
1389         if (queriesCase_ == 2) {
1390           queryListBuilder_.mergeFrom(value);
1391         } else {
1392           queryListBuilder_.setMessage(value);
1393         }
1394       }
1395       queriesCase_ = 2;
1396       return this;
1397     }
1398     /**
1399      *
1400      *
1401      * <pre>
1402      * A list of queries.
1403      * </pre>
1404      *
1405      * <code>.google.cloud.dataproc.v1.QueryList query_list = 2;</code>
1406      */
clearQueryList()1407     public Builder clearQueryList() {
1408       if (queryListBuilder_ == null) {
1409         if (queriesCase_ == 2) {
1410           queriesCase_ = 0;
1411           queries_ = null;
1412           onChanged();
1413         }
1414       } else {
1415         if (queriesCase_ == 2) {
1416           queriesCase_ = 0;
1417           queries_ = null;
1418         }
1419         queryListBuilder_.clear();
1420       }
1421       return this;
1422     }
1423     /**
1424      *
1425      *
1426      * <pre>
1427      * A list of queries.
1428      * </pre>
1429      *
1430      * <code>.google.cloud.dataproc.v1.QueryList query_list = 2;</code>
1431      */
getQueryListBuilder()1432     public com.google.cloud.dataproc.v1.QueryList.Builder getQueryListBuilder() {
1433       return getQueryListFieldBuilder().getBuilder();
1434     }
1435     /**
1436      *
1437      *
1438      * <pre>
1439      * A list of queries.
1440      * </pre>
1441      *
1442      * <code>.google.cloud.dataproc.v1.QueryList query_list = 2;</code>
1443      */
1444     @java.lang.Override
getQueryListOrBuilder()1445     public com.google.cloud.dataproc.v1.QueryListOrBuilder getQueryListOrBuilder() {
1446       if ((queriesCase_ == 2) && (queryListBuilder_ != null)) {
1447         return queryListBuilder_.getMessageOrBuilder();
1448       } else {
1449         if (queriesCase_ == 2) {
1450           return (com.google.cloud.dataproc.v1.QueryList) queries_;
1451         }
1452         return com.google.cloud.dataproc.v1.QueryList.getDefaultInstance();
1453       }
1454     }
1455     /**
1456      *
1457      *
1458      * <pre>
1459      * A list of queries.
1460      * </pre>
1461      *
1462      * <code>.google.cloud.dataproc.v1.QueryList query_list = 2;</code>
1463      */
1464     private com.google.protobuf.SingleFieldBuilderV3<
1465             com.google.cloud.dataproc.v1.QueryList,
1466             com.google.cloud.dataproc.v1.QueryList.Builder,
1467             com.google.cloud.dataproc.v1.QueryListOrBuilder>
getQueryListFieldBuilder()1468         getQueryListFieldBuilder() {
1469       if (queryListBuilder_ == null) {
1470         if (!(queriesCase_ == 2)) {
1471           queries_ = com.google.cloud.dataproc.v1.QueryList.getDefaultInstance();
1472         }
1473         queryListBuilder_ =
1474             new com.google.protobuf.SingleFieldBuilderV3<
1475                 com.google.cloud.dataproc.v1.QueryList,
1476                 com.google.cloud.dataproc.v1.QueryList.Builder,
1477                 com.google.cloud.dataproc.v1.QueryListOrBuilder>(
1478                 (com.google.cloud.dataproc.v1.QueryList) queries_,
1479                 getParentForChildren(),
1480                 isClean());
1481         queries_ = null;
1482       }
1483       queriesCase_ = 2;
1484       onChanged();
1485       return queryListBuilder_;
1486     }
1487 
1488     private boolean continueOnFailure_;
1489     /**
1490      *
1491      *
1492      * <pre>
1493      * Optional. Whether to continue executing queries if a query fails.
1494      * The default value is `false`. Setting to `true` can be useful when
1495      * executing independent parallel queries.
1496      * </pre>
1497      *
1498      * <code>bool continue_on_failure = 3 [(.google.api.field_behavior) = OPTIONAL];</code>
1499      *
1500      * @return The continueOnFailure.
1501      */
1502     @java.lang.Override
getContinueOnFailure()1503     public boolean getContinueOnFailure() {
1504       return continueOnFailure_;
1505     }
1506     /**
1507      *
1508      *
1509      * <pre>
1510      * Optional. Whether to continue executing queries if a query fails.
1511      * The default value is `false`. Setting to `true` can be useful when
1512      * executing independent parallel queries.
1513      * </pre>
1514      *
1515      * <code>bool continue_on_failure = 3 [(.google.api.field_behavior) = OPTIONAL];</code>
1516      *
1517      * @param value The continueOnFailure to set.
1518      * @return This builder for chaining.
1519      */
setContinueOnFailure(boolean value)1520     public Builder setContinueOnFailure(boolean value) {
1521 
1522       continueOnFailure_ = value;
1523       bitField0_ |= 0x00000004;
1524       onChanged();
1525       return this;
1526     }
1527     /**
1528      *
1529      *
1530      * <pre>
1531      * Optional. Whether to continue executing queries if a query fails.
1532      * The default value is `false`. Setting to `true` can be useful when
1533      * executing independent parallel queries.
1534      * </pre>
1535      *
1536      * <code>bool continue_on_failure = 3 [(.google.api.field_behavior) = OPTIONAL];</code>
1537      *
1538      * @return This builder for chaining.
1539      */
clearContinueOnFailure()1540     public Builder clearContinueOnFailure() {
1541       bitField0_ = (bitField0_ & ~0x00000004);
1542       continueOnFailure_ = false;
1543       onChanged();
1544       return this;
1545     }
1546 
1547     private com.google.protobuf.MapField<java.lang.String, java.lang.String> scriptVariables_;
1548 
1549     private com.google.protobuf.MapField<java.lang.String, java.lang.String>
internalGetScriptVariables()1550         internalGetScriptVariables() {
1551       if (scriptVariables_ == null) {
1552         return com.google.protobuf.MapField.emptyMapField(
1553             ScriptVariablesDefaultEntryHolder.defaultEntry);
1554       }
1555       return scriptVariables_;
1556     }
1557 
1558     private com.google.protobuf.MapField<java.lang.String, java.lang.String>
internalGetMutableScriptVariables()1559         internalGetMutableScriptVariables() {
1560       if (scriptVariables_ == null) {
1561         scriptVariables_ =
1562             com.google.protobuf.MapField.newMapField(
1563                 ScriptVariablesDefaultEntryHolder.defaultEntry);
1564       }
1565       if (!scriptVariables_.isMutable()) {
1566         scriptVariables_ = scriptVariables_.copy();
1567       }
1568       bitField0_ |= 0x00000008;
1569       onChanged();
1570       return scriptVariables_;
1571     }
1572 
getScriptVariablesCount()1573     public int getScriptVariablesCount() {
1574       return internalGetScriptVariables().getMap().size();
1575     }
1576     /**
1577      *
1578      *
1579      * <pre>
1580      * Optional. Mapping of query variable names to values (equivalent to the
1581      * Hive command: `SET name="value";`).
1582      * </pre>
1583      *
1584      * <code>
1585      * map&lt;string, string&gt; script_variables = 4 [(.google.api.field_behavior) = OPTIONAL];
1586      * </code>
1587      */
1588     @java.lang.Override
containsScriptVariables(java.lang.String key)1589     public boolean containsScriptVariables(java.lang.String key) {
1590       if (key == null) {
1591         throw new NullPointerException("map key");
1592       }
1593       return internalGetScriptVariables().getMap().containsKey(key);
1594     }
1595     /** Use {@link #getScriptVariablesMap()} instead. */
1596     @java.lang.Override
1597     @java.lang.Deprecated
getScriptVariables()1598     public java.util.Map<java.lang.String, java.lang.String> getScriptVariables() {
1599       return getScriptVariablesMap();
1600     }
1601     /**
1602      *
1603      *
1604      * <pre>
1605      * Optional. Mapping of query variable names to values (equivalent to the
1606      * Hive command: `SET name="value";`).
1607      * </pre>
1608      *
1609      * <code>
1610      * map&lt;string, string&gt; script_variables = 4 [(.google.api.field_behavior) = OPTIONAL];
1611      * </code>
1612      */
1613     @java.lang.Override
getScriptVariablesMap()1614     public java.util.Map<java.lang.String, java.lang.String> getScriptVariablesMap() {
1615       return internalGetScriptVariables().getMap();
1616     }
1617     /**
1618      *
1619      *
1620      * <pre>
1621      * Optional. Mapping of query variable names to values (equivalent to the
1622      * Hive command: `SET name="value";`).
1623      * </pre>
1624      *
1625      * <code>
1626      * map&lt;string, string&gt; script_variables = 4 [(.google.api.field_behavior) = OPTIONAL];
1627      * </code>
1628      */
1629     @java.lang.Override
getScriptVariablesOrDefault( java.lang.String key, java.lang.String defaultValue)1630     public /* nullable */ java.lang.String getScriptVariablesOrDefault(
1631         java.lang.String key,
1632         /* nullable */
1633         java.lang.String defaultValue) {
1634       if (key == null) {
1635         throw new NullPointerException("map key");
1636       }
1637       java.util.Map<java.lang.String, java.lang.String> map = internalGetScriptVariables().getMap();
1638       return map.containsKey(key) ? map.get(key) : defaultValue;
1639     }
1640     /**
1641      *
1642      *
1643      * <pre>
1644      * Optional. Mapping of query variable names to values (equivalent to the
1645      * Hive command: `SET name="value";`).
1646      * </pre>
1647      *
1648      * <code>
1649      * map&lt;string, string&gt; script_variables = 4 [(.google.api.field_behavior) = OPTIONAL];
1650      * </code>
1651      */
1652     @java.lang.Override
getScriptVariablesOrThrow(java.lang.String key)1653     public java.lang.String getScriptVariablesOrThrow(java.lang.String key) {
1654       if (key == null) {
1655         throw new NullPointerException("map key");
1656       }
1657       java.util.Map<java.lang.String, java.lang.String> map = internalGetScriptVariables().getMap();
1658       if (!map.containsKey(key)) {
1659         throw new java.lang.IllegalArgumentException();
1660       }
1661       return map.get(key);
1662     }
1663 
clearScriptVariables()1664     public Builder clearScriptVariables() {
1665       bitField0_ = (bitField0_ & ~0x00000008);
1666       internalGetMutableScriptVariables().getMutableMap().clear();
1667       return this;
1668     }
1669     /**
1670      *
1671      *
1672      * <pre>
1673      * Optional. Mapping of query variable names to values (equivalent to the
1674      * Hive command: `SET name="value";`).
1675      * </pre>
1676      *
1677      * <code>
1678      * map&lt;string, string&gt; script_variables = 4 [(.google.api.field_behavior) = OPTIONAL];
1679      * </code>
1680      */
removeScriptVariables(java.lang.String key)1681     public Builder removeScriptVariables(java.lang.String key) {
1682       if (key == null) {
1683         throw new NullPointerException("map key");
1684       }
1685       internalGetMutableScriptVariables().getMutableMap().remove(key);
1686       return this;
1687     }
1688     /** Use alternate mutation accessors instead. */
1689     @java.lang.Deprecated
getMutableScriptVariables()1690     public java.util.Map<java.lang.String, java.lang.String> getMutableScriptVariables() {
1691       bitField0_ |= 0x00000008;
1692       return internalGetMutableScriptVariables().getMutableMap();
1693     }
1694     /**
1695      *
1696      *
1697      * <pre>
1698      * Optional. Mapping of query variable names to values (equivalent to the
1699      * Hive command: `SET name="value";`).
1700      * </pre>
1701      *
1702      * <code>
1703      * map&lt;string, string&gt; script_variables = 4 [(.google.api.field_behavior) = OPTIONAL];
1704      * </code>
1705      */
putScriptVariables(java.lang.String key, java.lang.String value)1706     public Builder putScriptVariables(java.lang.String key, java.lang.String value) {
1707       if (key == null) {
1708         throw new NullPointerException("map key");
1709       }
1710       if (value == null) {
1711         throw new NullPointerException("map value");
1712       }
1713       internalGetMutableScriptVariables().getMutableMap().put(key, value);
1714       bitField0_ |= 0x00000008;
1715       return this;
1716     }
1717     /**
1718      *
1719      *
1720      * <pre>
1721      * Optional. Mapping of query variable names to values (equivalent to the
1722      * Hive command: `SET name="value";`).
1723      * </pre>
1724      *
1725      * <code>
1726      * map&lt;string, string&gt; script_variables = 4 [(.google.api.field_behavior) = OPTIONAL];
1727      * </code>
1728      */
putAllScriptVariables(java.util.Map<java.lang.String, java.lang.String> values)1729     public Builder putAllScriptVariables(java.util.Map<java.lang.String, java.lang.String> values) {
1730       internalGetMutableScriptVariables().getMutableMap().putAll(values);
1731       bitField0_ |= 0x00000008;
1732       return this;
1733     }
1734 
1735     private com.google.protobuf.MapField<java.lang.String, java.lang.String> properties_;
1736 
1737     private com.google.protobuf.MapField<java.lang.String, java.lang.String>
internalGetProperties()1738         internalGetProperties() {
1739       if (properties_ == null) {
1740         return com.google.protobuf.MapField.emptyMapField(
1741             PropertiesDefaultEntryHolder.defaultEntry);
1742       }
1743       return properties_;
1744     }
1745 
1746     private com.google.protobuf.MapField<java.lang.String, java.lang.String>
internalGetMutableProperties()1747         internalGetMutableProperties() {
1748       if (properties_ == null) {
1749         properties_ =
1750             com.google.protobuf.MapField.newMapField(PropertiesDefaultEntryHolder.defaultEntry);
1751       }
1752       if (!properties_.isMutable()) {
1753         properties_ = properties_.copy();
1754       }
1755       bitField0_ |= 0x00000010;
1756       onChanged();
1757       return properties_;
1758     }
1759 
getPropertiesCount()1760     public int getPropertiesCount() {
1761       return internalGetProperties().getMap().size();
1762     }
1763     /**
1764      *
1765      *
1766      * <pre>
1767      * Optional. A mapping of property names and values, used to configure Hive.
1768      * Properties that conflict with values set by the Dataproc API may be
1769      * overwritten. Can include properties set in /etc/hadoop/conf/&#42;-site.xml,
1770      * /etc/hive/conf/hive-site.xml, and classes in user code.
1771      * </pre>
1772      *
1773      * <code>map&lt;string, string&gt; properties = 5 [(.google.api.field_behavior) = OPTIONAL];
1774      * </code>
1775      */
1776     @java.lang.Override
containsProperties(java.lang.String key)1777     public boolean containsProperties(java.lang.String key) {
1778       if (key == null) {
1779         throw new NullPointerException("map key");
1780       }
1781       return internalGetProperties().getMap().containsKey(key);
1782     }
1783     /** Use {@link #getPropertiesMap()} instead. */
1784     @java.lang.Override
1785     @java.lang.Deprecated
getProperties()1786     public java.util.Map<java.lang.String, java.lang.String> getProperties() {
1787       return getPropertiesMap();
1788     }
1789     /**
1790      *
1791      *
1792      * <pre>
1793      * Optional. A mapping of property names and values, used to configure Hive.
1794      * Properties that conflict with values set by the Dataproc API may be
1795      * overwritten. Can include properties set in /etc/hadoop/conf/&#42;-site.xml,
1796      * /etc/hive/conf/hive-site.xml, and classes in user code.
1797      * </pre>
1798      *
1799      * <code>map&lt;string, string&gt; properties = 5 [(.google.api.field_behavior) = OPTIONAL];
1800      * </code>
1801      */
1802     @java.lang.Override
getPropertiesMap()1803     public java.util.Map<java.lang.String, java.lang.String> getPropertiesMap() {
1804       return internalGetProperties().getMap();
1805     }
1806     /**
1807      *
1808      *
1809      * <pre>
1810      * Optional. A mapping of property names and values, used to configure Hive.
1811      * Properties that conflict with values set by the Dataproc API may be
1812      * overwritten. Can include properties set in /etc/hadoop/conf/&#42;-site.xml,
1813      * /etc/hive/conf/hive-site.xml, and classes in user code.
1814      * </pre>
1815      *
1816      * <code>map&lt;string, string&gt; properties = 5 [(.google.api.field_behavior) = OPTIONAL];
1817      * </code>
1818      */
1819     @java.lang.Override
getPropertiesOrDefault( java.lang.String key, java.lang.String defaultValue)1820     public /* nullable */ java.lang.String getPropertiesOrDefault(
1821         java.lang.String key,
1822         /* nullable */
1823         java.lang.String defaultValue) {
1824       if (key == null) {
1825         throw new NullPointerException("map key");
1826       }
1827       java.util.Map<java.lang.String, java.lang.String> map = internalGetProperties().getMap();
1828       return map.containsKey(key) ? map.get(key) : defaultValue;
1829     }
1830     /**
1831      *
1832      *
1833      * <pre>
1834      * Optional. A mapping of property names and values, used to configure Hive.
1835      * Properties that conflict with values set by the Dataproc API may be
1836      * overwritten. Can include properties set in /etc/hadoop/conf/&#42;-site.xml,
1837      * /etc/hive/conf/hive-site.xml, and classes in user code.
1838      * </pre>
1839      *
1840      * <code>map&lt;string, string&gt; properties = 5 [(.google.api.field_behavior) = OPTIONAL];
1841      * </code>
1842      */
1843     @java.lang.Override
getPropertiesOrThrow(java.lang.String key)1844     public java.lang.String getPropertiesOrThrow(java.lang.String key) {
1845       if (key == null) {
1846         throw new NullPointerException("map key");
1847       }
1848       java.util.Map<java.lang.String, java.lang.String> map = internalGetProperties().getMap();
1849       if (!map.containsKey(key)) {
1850         throw new java.lang.IllegalArgumentException();
1851       }
1852       return map.get(key);
1853     }
1854 
clearProperties()1855     public Builder clearProperties() {
1856       bitField0_ = (bitField0_ & ~0x00000010);
1857       internalGetMutableProperties().getMutableMap().clear();
1858       return this;
1859     }
1860     /**
1861      *
1862      *
1863      * <pre>
1864      * Optional. A mapping of property names and values, used to configure Hive.
1865      * Properties that conflict with values set by the Dataproc API may be
1866      * overwritten. Can include properties set in /etc/hadoop/conf/&#42;-site.xml,
1867      * /etc/hive/conf/hive-site.xml, and classes in user code.
1868      * </pre>
1869      *
1870      * <code>map&lt;string, string&gt; properties = 5 [(.google.api.field_behavior) = OPTIONAL];
1871      * </code>
1872      */
removeProperties(java.lang.String key)1873     public Builder removeProperties(java.lang.String key) {
1874       if (key == null) {
1875         throw new NullPointerException("map key");
1876       }
1877       internalGetMutableProperties().getMutableMap().remove(key);
1878       return this;
1879     }
1880     /** Use alternate mutation accessors instead. */
1881     @java.lang.Deprecated
getMutableProperties()1882     public java.util.Map<java.lang.String, java.lang.String> getMutableProperties() {
1883       bitField0_ |= 0x00000010;
1884       return internalGetMutableProperties().getMutableMap();
1885     }
1886     /**
1887      *
1888      *
1889      * <pre>
1890      * Optional. A mapping of property names and values, used to configure Hive.
1891      * Properties that conflict with values set by the Dataproc API may be
1892      * overwritten. Can include properties set in /etc/hadoop/conf/&#42;-site.xml,
1893      * /etc/hive/conf/hive-site.xml, and classes in user code.
1894      * </pre>
1895      *
1896      * <code>map&lt;string, string&gt; properties = 5 [(.google.api.field_behavior) = OPTIONAL];
1897      * </code>
1898      */
putProperties(java.lang.String key, java.lang.String value)1899     public Builder putProperties(java.lang.String key, java.lang.String value) {
1900       if (key == null) {
1901         throw new NullPointerException("map key");
1902       }
1903       if (value == null) {
1904         throw new NullPointerException("map value");
1905       }
1906       internalGetMutableProperties().getMutableMap().put(key, value);
1907       bitField0_ |= 0x00000010;
1908       return this;
1909     }
1910     /**
1911      *
1912      *
1913      * <pre>
1914      * Optional. A mapping of property names and values, used to configure Hive.
1915      * Properties that conflict with values set by the Dataproc API may be
1916      * overwritten. Can include properties set in /etc/hadoop/conf/&#42;-site.xml,
1917      * /etc/hive/conf/hive-site.xml, and classes in user code.
1918      * </pre>
1919      *
1920      * <code>map&lt;string, string&gt; properties = 5 [(.google.api.field_behavior) = OPTIONAL];
1921      * </code>
1922      */
putAllProperties(java.util.Map<java.lang.String, java.lang.String> values)1923     public Builder putAllProperties(java.util.Map<java.lang.String, java.lang.String> values) {
1924       internalGetMutableProperties().getMutableMap().putAll(values);
1925       bitField0_ |= 0x00000010;
1926       return this;
1927     }
1928 
1929     private com.google.protobuf.LazyStringList jarFileUris_ =
1930         com.google.protobuf.LazyStringArrayList.EMPTY;
1931 
ensureJarFileUrisIsMutable()1932     private void ensureJarFileUrisIsMutable() {
1933       if (!((bitField0_ & 0x00000020) != 0)) {
1934         jarFileUris_ = new com.google.protobuf.LazyStringArrayList(jarFileUris_);
1935         bitField0_ |= 0x00000020;
1936       }
1937     }
1938     /**
1939      *
1940      *
1941      * <pre>
1942      * Optional. HCFS URIs of jar files to add to the CLASSPATH of the
1943      * Hive server and Hadoop MapReduce (MR) tasks. Can contain Hive SerDes
1944      * and UDFs.
1945      * </pre>
1946      *
1947      * <code>repeated string jar_file_uris = 6 [(.google.api.field_behavior) = OPTIONAL];</code>
1948      *
1949      * @return A list containing the jarFileUris.
1950      */
getJarFileUrisList()1951     public com.google.protobuf.ProtocolStringList getJarFileUrisList() {
1952       return jarFileUris_.getUnmodifiableView();
1953     }
1954     /**
1955      *
1956      *
1957      * <pre>
1958      * Optional. HCFS URIs of jar files to add to the CLASSPATH of the
1959      * Hive server and Hadoop MapReduce (MR) tasks. Can contain Hive SerDes
1960      * and UDFs.
1961      * </pre>
1962      *
1963      * <code>repeated string jar_file_uris = 6 [(.google.api.field_behavior) = OPTIONAL];</code>
1964      *
1965      * @return The count of jarFileUris.
1966      */
getJarFileUrisCount()1967     public int getJarFileUrisCount() {
1968       return jarFileUris_.size();
1969     }
1970     /**
1971      *
1972      *
1973      * <pre>
1974      * Optional. HCFS URIs of jar files to add to the CLASSPATH of the
1975      * Hive server and Hadoop MapReduce (MR) tasks. Can contain Hive SerDes
1976      * and UDFs.
1977      * </pre>
1978      *
1979      * <code>repeated string jar_file_uris = 6 [(.google.api.field_behavior) = OPTIONAL];</code>
1980      *
1981      * @param index The index of the element to return.
1982      * @return The jarFileUris at the given index.
1983      */
getJarFileUris(int index)1984     public java.lang.String getJarFileUris(int index) {
1985       return jarFileUris_.get(index);
1986     }
1987     /**
1988      *
1989      *
1990      * <pre>
1991      * Optional. HCFS URIs of jar files to add to the CLASSPATH of the
1992      * Hive server and Hadoop MapReduce (MR) tasks. Can contain Hive SerDes
1993      * and UDFs.
1994      * </pre>
1995      *
1996      * <code>repeated string jar_file_uris = 6 [(.google.api.field_behavior) = OPTIONAL];</code>
1997      *
1998      * @param index The index of the value to return.
1999      * @return The bytes of the jarFileUris at the given index.
2000      */
getJarFileUrisBytes(int index)2001     public com.google.protobuf.ByteString getJarFileUrisBytes(int index) {
2002       return jarFileUris_.getByteString(index);
2003     }
2004     /**
2005      *
2006      *
2007      * <pre>
2008      * Optional. HCFS URIs of jar files to add to the CLASSPATH of the
2009      * Hive server and Hadoop MapReduce (MR) tasks. Can contain Hive SerDes
2010      * and UDFs.
2011      * </pre>
2012      *
2013      * <code>repeated string jar_file_uris = 6 [(.google.api.field_behavior) = OPTIONAL];</code>
2014      *
2015      * @param index The index to set the value at.
2016      * @param value The jarFileUris to set.
2017      * @return This builder for chaining.
2018      */
setJarFileUris(int index, java.lang.String value)2019     public Builder setJarFileUris(int index, java.lang.String value) {
2020       if (value == null) {
2021         throw new NullPointerException();
2022       }
2023       ensureJarFileUrisIsMutable();
2024       jarFileUris_.set(index, value);
2025       onChanged();
2026       return this;
2027     }
2028     /**
2029      *
2030      *
2031      * <pre>
2032      * Optional. HCFS URIs of jar files to add to the CLASSPATH of the
2033      * Hive server and Hadoop MapReduce (MR) tasks. Can contain Hive SerDes
2034      * and UDFs.
2035      * </pre>
2036      *
2037      * <code>repeated string jar_file_uris = 6 [(.google.api.field_behavior) = OPTIONAL];</code>
2038      *
2039      * @param value The jarFileUris to add.
2040      * @return This builder for chaining.
2041      */
addJarFileUris(java.lang.String value)2042     public Builder addJarFileUris(java.lang.String value) {
2043       if (value == null) {
2044         throw new NullPointerException();
2045       }
2046       ensureJarFileUrisIsMutable();
2047       jarFileUris_.add(value);
2048       onChanged();
2049       return this;
2050     }
2051     /**
2052      *
2053      *
2054      * <pre>
2055      * Optional. HCFS URIs of jar files to add to the CLASSPATH of the
2056      * Hive server and Hadoop MapReduce (MR) tasks. Can contain Hive SerDes
2057      * and UDFs.
2058      * </pre>
2059      *
2060      * <code>repeated string jar_file_uris = 6 [(.google.api.field_behavior) = OPTIONAL];</code>
2061      *
2062      * @param values The jarFileUris to add.
2063      * @return This builder for chaining.
2064      */
addAllJarFileUris(java.lang.Iterable<java.lang.String> values)2065     public Builder addAllJarFileUris(java.lang.Iterable<java.lang.String> values) {
2066       ensureJarFileUrisIsMutable();
2067       com.google.protobuf.AbstractMessageLite.Builder.addAll(values, jarFileUris_);
2068       onChanged();
2069       return this;
2070     }
2071     /**
2072      *
2073      *
2074      * <pre>
2075      * Optional. HCFS URIs of jar files to add to the CLASSPATH of the
2076      * Hive server and Hadoop MapReduce (MR) tasks. Can contain Hive SerDes
2077      * and UDFs.
2078      * </pre>
2079      *
2080      * <code>repeated string jar_file_uris = 6 [(.google.api.field_behavior) = OPTIONAL];</code>
2081      *
2082      * @return This builder for chaining.
2083      */
clearJarFileUris()2084     public Builder clearJarFileUris() {
2085       jarFileUris_ = com.google.protobuf.LazyStringArrayList.EMPTY;
2086       bitField0_ = (bitField0_ & ~0x00000020);
2087       onChanged();
2088       return this;
2089     }
2090     /**
2091      *
2092      *
2093      * <pre>
2094      * Optional. HCFS URIs of jar files to add to the CLASSPATH of the
2095      * Hive server and Hadoop MapReduce (MR) tasks. Can contain Hive SerDes
2096      * and UDFs.
2097      * </pre>
2098      *
2099      * <code>repeated string jar_file_uris = 6 [(.google.api.field_behavior) = OPTIONAL];</code>
2100      *
2101      * @param value The bytes of the jarFileUris to add.
2102      * @return This builder for chaining.
2103      */
addJarFileUrisBytes(com.google.protobuf.ByteString value)2104     public Builder addJarFileUrisBytes(com.google.protobuf.ByteString value) {
2105       if (value == null) {
2106         throw new NullPointerException();
2107       }
2108       checkByteStringIsUtf8(value);
2109       ensureJarFileUrisIsMutable();
2110       jarFileUris_.add(value);
2111       onChanged();
2112       return this;
2113     }
2114 
2115     @java.lang.Override
setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields)2116     public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) {
2117       return super.setUnknownFields(unknownFields);
2118     }
2119 
2120     @java.lang.Override
mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields)2121     public final Builder mergeUnknownFields(
2122         final com.google.protobuf.UnknownFieldSet unknownFields) {
2123       return super.mergeUnknownFields(unknownFields);
2124     }
2125 
2126     // @@protoc_insertion_point(builder_scope:google.cloud.dataproc.v1.HiveJob)
2127   }
2128 
2129   // @@protoc_insertion_point(class_scope:google.cloud.dataproc.v1.HiveJob)
2130   private static final com.google.cloud.dataproc.v1.HiveJob DEFAULT_INSTANCE;
2131 
2132   static {
2133     DEFAULT_INSTANCE = new com.google.cloud.dataproc.v1.HiveJob();
2134   }
2135 
getDefaultInstance()2136   public static com.google.cloud.dataproc.v1.HiveJob getDefaultInstance() {
2137     return DEFAULT_INSTANCE;
2138   }
2139 
2140   private static final com.google.protobuf.Parser<HiveJob> PARSER =
2141       new com.google.protobuf.AbstractParser<HiveJob>() {
2142         @java.lang.Override
2143         public HiveJob parsePartialFrom(
2144             com.google.protobuf.CodedInputStream input,
2145             com.google.protobuf.ExtensionRegistryLite extensionRegistry)
2146             throws com.google.protobuf.InvalidProtocolBufferException {
2147           Builder builder = newBuilder();
2148           try {
2149             builder.mergeFrom(input, extensionRegistry);
2150           } catch (com.google.protobuf.InvalidProtocolBufferException e) {
2151             throw e.setUnfinishedMessage(builder.buildPartial());
2152           } catch (com.google.protobuf.UninitializedMessageException e) {
2153             throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
2154           } catch (java.io.IOException e) {
2155             throw new com.google.protobuf.InvalidProtocolBufferException(e)
2156                 .setUnfinishedMessage(builder.buildPartial());
2157           }
2158           return builder.buildPartial();
2159         }
2160       };
2161 
parser()2162   public static com.google.protobuf.Parser<HiveJob> parser() {
2163     return PARSER;
2164   }
2165 
2166   @java.lang.Override
getParserForType()2167   public com.google.protobuf.Parser<HiveJob> getParserForType() {
2168     return PARSER;
2169   }
2170 
2171   @java.lang.Override
getDefaultInstanceForType()2172   public com.google.cloud.dataproc.v1.HiveJob getDefaultInstanceForType() {
2173     return DEFAULT_INSTANCE;
2174   }
2175 }
2176