• 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/clusters.proto
18 
19 package com.google.cloud.dataproc.v1;
20 
21 /**
22  *
23  *
24  * <pre>
25  * The cluster config.
26  * </pre>
27  *
28  * Protobuf type {@code google.cloud.dataproc.v1.ClusterConfig}
29  */
30 public final class ClusterConfig extends com.google.protobuf.GeneratedMessageV3
31     implements
32     // @@protoc_insertion_point(message_implements:google.cloud.dataproc.v1.ClusterConfig)
33     ClusterConfigOrBuilder {
34   private static final long serialVersionUID = 0L;
35   // Use ClusterConfig.newBuilder() to construct.
ClusterConfig(com.google.protobuf.GeneratedMessageV3.Builder<?> builder)36   private ClusterConfig(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {
37     super(builder);
38   }
39 
ClusterConfig()40   private ClusterConfig() {
41     configBucket_ = "";
42     tempBucket_ = "";
43     initializationActions_ = java.util.Collections.emptyList();
44     auxiliaryNodeGroups_ = java.util.Collections.emptyList();
45   }
46 
47   @java.lang.Override
48   @SuppressWarnings({"unused"})
newInstance(UnusedPrivateParameter unused)49   protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
50     return new ClusterConfig();
51   }
52 
53   @java.lang.Override
getUnknownFields()54   public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
55     return this.unknownFields;
56   }
57 
getDescriptor()58   public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
59     return com.google.cloud.dataproc.v1.ClustersProto
60         .internal_static_google_cloud_dataproc_v1_ClusterConfig_descriptor;
61   }
62 
63   @java.lang.Override
64   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable()65       internalGetFieldAccessorTable() {
66     return com.google.cloud.dataproc.v1.ClustersProto
67         .internal_static_google_cloud_dataproc_v1_ClusterConfig_fieldAccessorTable
68         .ensureFieldAccessorsInitialized(
69             com.google.cloud.dataproc.v1.ClusterConfig.class,
70             com.google.cloud.dataproc.v1.ClusterConfig.Builder.class);
71   }
72 
73   public static final int CONFIG_BUCKET_FIELD_NUMBER = 1;
74 
75   @SuppressWarnings("serial")
76   private volatile java.lang.Object configBucket_ = "";
77   /**
78    *
79    *
80    * <pre>
81    * Optional. A Cloud Storage bucket used to stage job
82    * dependencies, config files, and job driver console output.
83    * If you do not specify a staging bucket, Cloud
84    * Dataproc will determine a Cloud Storage location (US,
85    * ASIA, or EU) for your cluster's staging bucket according to the
86    * Compute Engine zone where your cluster is deployed, and then create
87    * and manage this project-level, per-location bucket (see
88    * [Dataproc staging and temp
89    * buckets](https://cloud.google.com/dataproc/docs/concepts/configuring-clusters/staging-bucket)).
90    * **This field requires a Cloud Storage bucket name, not a `gs://...` URI to
91    * a Cloud Storage bucket.**
92    * </pre>
93    *
94    * <code>string config_bucket = 1 [(.google.api.field_behavior) = OPTIONAL];</code>
95    *
96    * @return The configBucket.
97    */
98   @java.lang.Override
getConfigBucket()99   public java.lang.String getConfigBucket() {
100     java.lang.Object ref = configBucket_;
101     if (ref instanceof java.lang.String) {
102       return (java.lang.String) ref;
103     } else {
104       com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
105       java.lang.String s = bs.toStringUtf8();
106       configBucket_ = s;
107       return s;
108     }
109   }
110   /**
111    *
112    *
113    * <pre>
114    * Optional. A Cloud Storage bucket used to stage job
115    * dependencies, config files, and job driver console output.
116    * If you do not specify a staging bucket, Cloud
117    * Dataproc will determine a Cloud Storage location (US,
118    * ASIA, or EU) for your cluster's staging bucket according to the
119    * Compute Engine zone where your cluster is deployed, and then create
120    * and manage this project-level, per-location bucket (see
121    * [Dataproc staging and temp
122    * buckets](https://cloud.google.com/dataproc/docs/concepts/configuring-clusters/staging-bucket)).
123    * **This field requires a Cloud Storage bucket name, not a `gs://...` URI to
124    * a Cloud Storage bucket.**
125    * </pre>
126    *
127    * <code>string config_bucket = 1 [(.google.api.field_behavior) = OPTIONAL];</code>
128    *
129    * @return The bytes for configBucket.
130    */
131   @java.lang.Override
getConfigBucketBytes()132   public com.google.protobuf.ByteString getConfigBucketBytes() {
133     java.lang.Object ref = configBucket_;
134     if (ref instanceof java.lang.String) {
135       com.google.protobuf.ByteString b =
136           com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
137       configBucket_ = b;
138       return b;
139     } else {
140       return (com.google.protobuf.ByteString) ref;
141     }
142   }
143 
144   public static final int TEMP_BUCKET_FIELD_NUMBER = 2;
145 
146   @SuppressWarnings("serial")
147   private volatile java.lang.Object tempBucket_ = "";
148   /**
149    *
150    *
151    * <pre>
152    * Optional. A Cloud Storage bucket used to store ephemeral cluster and jobs
153    * data, such as Spark and MapReduce history files. If you do not specify a
154    * temp bucket, Dataproc will determine a Cloud Storage location (US, ASIA, or
155    * EU) for your cluster's temp bucket according to the Compute Engine zone
156    * where your cluster is deployed, and then create and manage this
157    * project-level, per-location bucket. The default bucket has a TTL of 90
158    * days, but you can use any TTL (or none) if you specify a bucket (see
159    * [Dataproc staging and temp
160    * buckets](https://cloud.google.com/dataproc/docs/concepts/configuring-clusters/staging-bucket)).
161    * **This field requires a Cloud Storage bucket name, not a `gs://...` URI to
162    * a Cloud Storage bucket.**
163    * </pre>
164    *
165    * <code>string temp_bucket = 2 [(.google.api.field_behavior) = OPTIONAL];</code>
166    *
167    * @return The tempBucket.
168    */
169   @java.lang.Override
getTempBucket()170   public java.lang.String getTempBucket() {
171     java.lang.Object ref = tempBucket_;
172     if (ref instanceof java.lang.String) {
173       return (java.lang.String) ref;
174     } else {
175       com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
176       java.lang.String s = bs.toStringUtf8();
177       tempBucket_ = s;
178       return s;
179     }
180   }
181   /**
182    *
183    *
184    * <pre>
185    * Optional. A Cloud Storage bucket used to store ephemeral cluster and jobs
186    * data, such as Spark and MapReduce history files. If you do not specify a
187    * temp bucket, Dataproc will determine a Cloud Storage location (US, ASIA, or
188    * EU) for your cluster's temp bucket according to the Compute Engine zone
189    * where your cluster is deployed, and then create and manage this
190    * project-level, per-location bucket. The default bucket has a TTL of 90
191    * days, but you can use any TTL (or none) if you specify a bucket (see
192    * [Dataproc staging and temp
193    * buckets](https://cloud.google.com/dataproc/docs/concepts/configuring-clusters/staging-bucket)).
194    * **This field requires a Cloud Storage bucket name, not a `gs://...` URI to
195    * a Cloud Storage bucket.**
196    * </pre>
197    *
198    * <code>string temp_bucket = 2 [(.google.api.field_behavior) = OPTIONAL];</code>
199    *
200    * @return The bytes for tempBucket.
201    */
202   @java.lang.Override
getTempBucketBytes()203   public com.google.protobuf.ByteString getTempBucketBytes() {
204     java.lang.Object ref = tempBucket_;
205     if (ref instanceof java.lang.String) {
206       com.google.protobuf.ByteString b =
207           com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
208       tempBucket_ = b;
209       return b;
210     } else {
211       return (com.google.protobuf.ByteString) ref;
212     }
213   }
214 
215   public static final int GCE_CLUSTER_CONFIG_FIELD_NUMBER = 8;
216   private com.google.cloud.dataproc.v1.GceClusterConfig gceClusterConfig_;
217   /**
218    *
219    *
220    * <pre>
221    * Optional. The shared Compute Engine config settings for
222    * all instances in a cluster.
223    * </pre>
224    *
225    * <code>
226    * .google.cloud.dataproc.v1.GceClusterConfig gce_cluster_config = 8 [(.google.api.field_behavior) = OPTIONAL];
227    * </code>
228    *
229    * @return Whether the gceClusterConfig field is set.
230    */
231   @java.lang.Override
hasGceClusterConfig()232   public boolean hasGceClusterConfig() {
233     return gceClusterConfig_ != null;
234   }
235   /**
236    *
237    *
238    * <pre>
239    * Optional. The shared Compute Engine config settings for
240    * all instances in a cluster.
241    * </pre>
242    *
243    * <code>
244    * .google.cloud.dataproc.v1.GceClusterConfig gce_cluster_config = 8 [(.google.api.field_behavior) = OPTIONAL];
245    * </code>
246    *
247    * @return The gceClusterConfig.
248    */
249   @java.lang.Override
getGceClusterConfig()250   public com.google.cloud.dataproc.v1.GceClusterConfig getGceClusterConfig() {
251     return gceClusterConfig_ == null
252         ? com.google.cloud.dataproc.v1.GceClusterConfig.getDefaultInstance()
253         : gceClusterConfig_;
254   }
255   /**
256    *
257    *
258    * <pre>
259    * Optional. The shared Compute Engine config settings for
260    * all instances in a cluster.
261    * </pre>
262    *
263    * <code>
264    * .google.cloud.dataproc.v1.GceClusterConfig gce_cluster_config = 8 [(.google.api.field_behavior) = OPTIONAL];
265    * </code>
266    */
267   @java.lang.Override
getGceClusterConfigOrBuilder()268   public com.google.cloud.dataproc.v1.GceClusterConfigOrBuilder getGceClusterConfigOrBuilder() {
269     return gceClusterConfig_ == null
270         ? com.google.cloud.dataproc.v1.GceClusterConfig.getDefaultInstance()
271         : gceClusterConfig_;
272   }
273 
274   public static final int MASTER_CONFIG_FIELD_NUMBER = 9;
275   private com.google.cloud.dataproc.v1.InstanceGroupConfig masterConfig_;
276   /**
277    *
278    *
279    * <pre>
280    * Optional. The Compute Engine config settings for
281    * the cluster's master instance.
282    * </pre>
283    *
284    * <code>
285    * .google.cloud.dataproc.v1.InstanceGroupConfig master_config = 9 [(.google.api.field_behavior) = OPTIONAL];
286    * </code>
287    *
288    * @return Whether the masterConfig field is set.
289    */
290   @java.lang.Override
hasMasterConfig()291   public boolean hasMasterConfig() {
292     return masterConfig_ != null;
293   }
294   /**
295    *
296    *
297    * <pre>
298    * Optional. The Compute Engine config settings for
299    * the cluster's master instance.
300    * </pre>
301    *
302    * <code>
303    * .google.cloud.dataproc.v1.InstanceGroupConfig master_config = 9 [(.google.api.field_behavior) = OPTIONAL];
304    * </code>
305    *
306    * @return The masterConfig.
307    */
308   @java.lang.Override
getMasterConfig()309   public com.google.cloud.dataproc.v1.InstanceGroupConfig getMasterConfig() {
310     return masterConfig_ == null
311         ? com.google.cloud.dataproc.v1.InstanceGroupConfig.getDefaultInstance()
312         : masterConfig_;
313   }
314   /**
315    *
316    *
317    * <pre>
318    * Optional. The Compute Engine config settings for
319    * the cluster's master instance.
320    * </pre>
321    *
322    * <code>
323    * .google.cloud.dataproc.v1.InstanceGroupConfig master_config = 9 [(.google.api.field_behavior) = OPTIONAL];
324    * </code>
325    */
326   @java.lang.Override
getMasterConfigOrBuilder()327   public com.google.cloud.dataproc.v1.InstanceGroupConfigOrBuilder getMasterConfigOrBuilder() {
328     return masterConfig_ == null
329         ? com.google.cloud.dataproc.v1.InstanceGroupConfig.getDefaultInstance()
330         : masterConfig_;
331   }
332 
333   public static final int WORKER_CONFIG_FIELD_NUMBER = 10;
334   private com.google.cloud.dataproc.v1.InstanceGroupConfig workerConfig_;
335   /**
336    *
337    *
338    * <pre>
339    * Optional. The Compute Engine config settings for
340    * the cluster's worker instances.
341    * </pre>
342    *
343    * <code>
344    * .google.cloud.dataproc.v1.InstanceGroupConfig worker_config = 10 [(.google.api.field_behavior) = OPTIONAL];
345    * </code>
346    *
347    * @return Whether the workerConfig field is set.
348    */
349   @java.lang.Override
hasWorkerConfig()350   public boolean hasWorkerConfig() {
351     return workerConfig_ != null;
352   }
353   /**
354    *
355    *
356    * <pre>
357    * Optional. The Compute Engine config settings for
358    * the cluster's worker instances.
359    * </pre>
360    *
361    * <code>
362    * .google.cloud.dataproc.v1.InstanceGroupConfig worker_config = 10 [(.google.api.field_behavior) = OPTIONAL];
363    * </code>
364    *
365    * @return The workerConfig.
366    */
367   @java.lang.Override
getWorkerConfig()368   public com.google.cloud.dataproc.v1.InstanceGroupConfig getWorkerConfig() {
369     return workerConfig_ == null
370         ? com.google.cloud.dataproc.v1.InstanceGroupConfig.getDefaultInstance()
371         : workerConfig_;
372   }
373   /**
374    *
375    *
376    * <pre>
377    * Optional. The Compute Engine config settings for
378    * the cluster's worker instances.
379    * </pre>
380    *
381    * <code>
382    * .google.cloud.dataproc.v1.InstanceGroupConfig worker_config = 10 [(.google.api.field_behavior) = OPTIONAL];
383    * </code>
384    */
385   @java.lang.Override
getWorkerConfigOrBuilder()386   public com.google.cloud.dataproc.v1.InstanceGroupConfigOrBuilder getWorkerConfigOrBuilder() {
387     return workerConfig_ == null
388         ? com.google.cloud.dataproc.v1.InstanceGroupConfig.getDefaultInstance()
389         : workerConfig_;
390   }
391 
392   public static final int SECONDARY_WORKER_CONFIG_FIELD_NUMBER = 12;
393   private com.google.cloud.dataproc.v1.InstanceGroupConfig secondaryWorkerConfig_;
394   /**
395    *
396    *
397    * <pre>
398    * Optional. The Compute Engine config settings for
399    * a cluster's secondary worker instances
400    * </pre>
401    *
402    * <code>
403    * .google.cloud.dataproc.v1.InstanceGroupConfig secondary_worker_config = 12 [(.google.api.field_behavior) = OPTIONAL];
404    * </code>
405    *
406    * @return Whether the secondaryWorkerConfig field is set.
407    */
408   @java.lang.Override
hasSecondaryWorkerConfig()409   public boolean hasSecondaryWorkerConfig() {
410     return secondaryWorkerConfig_ != null;
411   }
412   /**
413    *
414    *
415    * <pre>
416    * Optional. The Compute Engine config settings for
417    * a cluster's secondary worker instances
418    * </pre>
419    *
420    * <code>
421    * .google.cloud.dataproc.v1.InstanceGroupConfig secondary_worker_config = 12 [(.google.api.field_behavior) = OPTIONAL];
422    * </code>
423    *
424    * @return The secondaryWorkerConfig.
425    */
426   @java.lang.Override
getSecondaryWorkerConfig()427   public com.google.cloud.dataproc.v1.InstanceGroupConfig getSecondaryWorkerConfig() {
428     return secondaryWorkerConfig_ == null
429         ? com.google.cloud.dataproc.v1.InstanceGroupConfig.getDefaultInstance()
430         : secondaryWorkerConfig_;
431   }
432   /**
433    *
434    *
435    * <pre>
436    * Optional. The Compute Engine config settings for
437    * a cluster's secondary worker instances
438    * </pre>
439    *
440    * <code>
441    * .google.cloud.dataproc.v1.InstanceGroupConfig secondary_worker_config = 12 [(.google.api.field_behavior) = OPTIONAL];
442    * </code>
443    */
444   @java.lang.Override
445   public com.google.cloud.dataproc.v1.InstanceGroupConfigOrBuilder
getSecondaryWorkerConfigOrBuilder()446       getSecondaryWorkerConfigOrBuilder() {
447     return secondaryWorkerConfig_ == null
448         ? com.google.cloud.dataproc.v1.InstanceGroupConfig.getDefaultInstance()
449         : secondaryWorkerConfig_;
450   }
451 
452   public static final int SOFTWARE_CONFIG_FIELD_NUMBER = 13;
453   private com.google.cloud.dataproc.v1.SoftwareConfig softwareConfig_;
454   /**
455    *
456    *
457    * <pre>
458    * Optional. The config settings for cluster software.
459    * </pre>
460    *
461    * <code>
462    * .google.cloud.dataproc.v1.SoftwareConfig software_config = 13 [(.google.api.field_behavior) = OPTIONAL];
463    * </code>
464    *
465    * @return Whether the softwareConfig field is set.
466    */
467   @java.lang.Override
hasSoftwareConfig()468   public boolean hasSoftwareConfig() {
469     return softwareConfig_ != null;
470   }
471   /**
472    *
473    *
474    * <pre>
475    * Optional. The config settings for cluster software.
476    * </pre>
477    *
478    * <code>
479    * .google.cloud.dataproc.v1.SoftwareConfig software_config = 13 [(.google.api.field_behavior) = OPTIONAL];
480    * </code>
481    *
482    * @return The softwareConfig.
483    */
484   @java.lang.Override
getSoftwareConfig()485   public com.google.cloud.dataproc.v1.SoftwareConfig getSoftwareConfig() {
486     return softwareConfig_ == null
487         ? com.google.cloud.dataproc.v1.SoftwareConfig.getDefaultInstance()
488         : softwareConfig_;
489   }
490   /**
491    *
492    *
493    * <pre>
494    * Optional. The config settings for cluster software.
495    * </pre>
496    *
497    * <code>
498    * .google.cloud.dataproc.v1.SoftwareConfig software_config = 13 [(.google.api.field_behavior) = OPTIONAL];
499    * </code>
500    */
501   @java.lang.Override
getSoftwareConfigOrBuilder()502   public com.google.cloud.dataproc.v1.SoftwareConfigOrBuilder getSoftwareConfigOrBuilder() {
503     return softwareConfig_ == null
504         ? com.google.cloud.dataproc.v1.SoftwareConfig.getDefaultInstance()
505         : softwareConfig_;
506   }
507 
508   public static final int INITIALIZATION_ACTIONS_FIELD_NUMBER = 11;
509 
510   @SuppressWarnings("serial")
511   private java.util.List<com.google.cloud.dataproc.v1.NodeInitializationAction>
512       initializationActions_;
513   /**
514    *
515    *
516    * <pre>
517    * Optional. Commands to execute on each node after config is
518    * completed. By default, executables are run on master and all worker nodes.
519    * You can test a node's `role` metadata to run an executable on
520    * a master or worker node, as shown below using `curl` (you can also use
521    * `wget`):
522    *     ROLE=$(curl -H Metadata-Flavor:Google
523    *     http://metadata/computeMetadata/v1/instance/attributes/dataproc-role)
524    *     if [[ "${ROLE}" == 'Master' ]]; then
525    *       ... master specific actions ...
526    *     else
527    *       ... worker specific actions ...
528    *     fi
529    * </pre>
530    *
531    * <code>
532    * repeated .google.cloud.dataproc.v1.NodeInitializationAction initialization_actions = 11 [(.google.api.field_behavior) = OPTIONAL];
533    * </code>
534    */
535   @java.lang.Override
536   public java.util.List<com.google.cloud.dataproc.v1.NodeInitializationAction>
getInitializationActionsList()537       getInitializationActionsList() {
538     return initializationActions_;
539   }
540   /**
541    *
542    *
543    * <pre>
544    * Optional. Commands to execute on each node after config is
545    * completed. By default, executables are run on master and all worker nodes.
546    * You can test a node's `role` metadata to run an executable on
547    * a master or worker node, as shown below using `curl` (you can also use
548    * `wget`):
549    *     ROLE=$(curl -H Metadata-Flavor:Google
550    *     http://metadata/computeMetadata/v1/instance/attributes/dataproc-role)
551    *     if [[ "${ROLE}" == 'Master' ]]; then
552    *       ... master specific actions ...
553    *     else
554    *       ... worker specific actions ...
555    *     fi
556    * </pre>
557    *
558    * <code>
559    * repeated .google.cloud.dataproc.v1.NodeInitializationAction initialization_actions = 11 [(.google.api.field_behavior) = OPTIONAL];
560    * </code>
561    */
562   @java.lang.Override
563   public java.util.List<? extends com.google.cloud.dataproc.v1.NodeInitializationActionOrBuilder>
getInitializationActionsOrBuilderList()564       getInitializationActionsOrBuilderList() {
565     return initializationActions_;
566   }
567   /**
568    *
569    *
570    * <pre>
571    * Optional. Commands to execute on each node after config is
572    * completed. By default, executables are run on master and all worker nodes.
573    * You can test a node's `role` metadata to run an executable on
574    * a master or worker node, as shown below using `curl` (you can also use
575    * `wget`):
576    *     ROLE=$(curl -H Metadata-Flavor:Google
577    *     http://metadata/computeMetadata/v1/instance/attributes/dataproc-role)
578    *     if [[ "${ROLE}" == 'Master' ]]; then
579    *       ... master specific actions ...
580    *     else
581    *       ... worker specific actions ...
582    *     fi
583    * </pre>
584    *
585    * <code>
586    * repeated .google.cloud.dataproc.v1.NodeInitializationAction initialization_actions = 11 [(.google.api.field_behavior) = OPTIONAL];
587    * </code>
588    */
589   @java.lang.Override
getInitializationActionsCount()590   public int getInitializationActionsCount() {
591     return initializationActions_.size();
592   }
593   /**
594    *
595    *
596    * <pre>
597    * Optional. Commands to execute on each node after config is
598    * completed. By default, executables are run on master and all worker nodes.
599    * You can test a node's `role` metadata to run an executable on
600    * a master or worker node, as shown below using `curl` (you can also use
601    * `wget`):
602    *     ROLE=$(curl -H Metadata-Flavor:Google
603    *     http://metadata/computeMetadata/v1/instance/attributes/dataproc-role)
604    *     if [[ "${ROLE}" == 'Master' ]]; then
605    *       ... master specific actions ...
606    *     else
607    *       ... worker specific actions ...
608    *     fi
609    * </pre>
610    *
611    * <code>
612    * repeated .google.cloud.dataproc.v1.NodeInitializationAction initialization_actions = 11 [(.google.api.field_behavior) = OPTIONAL];
613    * </code>
614    */
615   @java.lang.Override
getInitializationActions(int index)616   public com.google.cloud.dataproc.v1.NodeInitializationAction getInitializationActions(int index) {
617     return initializationActions_.get(index);
618   }
619   /**
620    *
621    *
622    * <pre>
623    * Optional. Commands to execute on each node after config is
624    * completed. By default, executables are run on master and all worker nodes.
625    * You can test a node's `role` metadata to run an executable on
626    * a master or worker node, as shown below using `curl` (you can also use
627    * `wget`):
628    *     ROLE=$(curl -H Metadata-Flavor:Google
629    *     http://metadata/computeMetadata/v1/instance/attributes/dataproc-role)
630    *     if [[ "${ROLE}" == 'Master' ]]; then
631    *       ... master specific actions ...
632    *     else
633    *       ... worker specific actions ...
634    *     fi
635    * </pre>
636    *
637    * <code>
638    * repeated .google.cloud.dataproc.v1.NodeInitializationAction initialization_actions = 11 [(.google.api.field_behavior) = OPTIONAL];
639    * </code>
640    */
641   @java.lang.Override
642   public com.google.cloud.dataproc.v1.NodeInitializationActionOrBuilder
getInitializationActionsOrBuilder(int index)643       getInitializationActionsOrBuilder(int index) {
644     return initializationActions_.get(index);
645   }
646 
647   public static final int ENCRYPTION_CONFIG_FIELD_NUMBER = 15;
648   private com.google.cloud.dataproc.v1.EncryptionConfig encryptionConfig_;
649   /**
650    *
651    *
652    * <pre>
653    * Optional. Encryption settings for the cluster.
654    * </pre>
655    *
656    * <code>
657    * .google.cloud.dataproc.v1.EncryptionConfig encryption_config = 15 [(.google.api.field_behavior) = OPTIONAL];
658    * </code>
659    *
660    * @return Whether the encryptionConfig field is set.
661    */
662   @java.lang.Override
hasEncryptionConfig()663   public boolean hasEncryptionConfig() {
664     return encryptionConfig_ != null;
665   }
666   /**
667    *
668    *
669    * <pre>
670    * Optional. Encryption settings for the cluster.
671    * </pre>
672    *
673    * <code>
674    * .google.cloud.dataproc.v1.EncryptionConfig encryption_config = 15 [(.google.api.field_behavior) = OPTIONAL];
675    * </code>
676    *
677    * @return The encryptionConfig.
678    */
679   @java.lang.Override
getEncryptionConfig()680   public com.google.cloud.dataproc.v1.EncryptionConfig getEncryptionConfig() {
681     return encryptionConfig_ == null
682         ? com.google.cloud.dataproc.v1.EncryptionConfig.getDefaultInstance()
683         : encryptionConfig_;
684   }
685   /**
686    *
687    *
688    * <pre>
689    * Optional. Encryption settings for the cluster.
690    * </pre>
691    *
692    * <code>
693    * .google.cloud.dataproc.v1.EncryptionConfig encryption_config = 15 [(.google.api.field_behavior) = OPTIONAL];
694    * </code>
695    */
696   @java.lang.Override
getEncryptionConfigOrBuilder()697   public com.google.cloud.dataproc.v1.EncryptionConfigOrBuilder getEncryptionConfigOrBuilder() {
698     return encryptionConfig_ == null
699         ? com.google.cloud.dataproc.v1.EncryptionConfig.getDefaultInstance()
700         : encryptionConfig_;
701   }
702 
703   public static final int AUTOSCALING_CONFIG_FIELD_NUMBER = 18;
704   private com.google.cloud.dataproc.v1.AutoscalingConfig autoscalingConfig_;
705   /**
706    *
707    *
708    * <pre>
709    * Optional. Autoscaling config for the policy associated with the cluster.
710    * Cluster does not autoscale if this field is unset.
711    * </pre>
712    *
713    * <code>
714    * .google.cloud.dataproc.v1.AutoscalingConfig autoscaling_config = 18 [(.google.api.field_behavior) = OPTIONAL];
715    * </code>
716    *
717    * @return Whether the autoscalingConfig field is set.
718    */
719   @java.lang.Override
hasAutoscalingConfig()720   public boolean hasAutoscalingConfig() {
721     return autoscalingConfig_ != null;
722   }
723   /**
724    *
725    *
726    * <pre>
727    * Optional. Autoscaling config for the policy associated with the cluster.
728    * Cluster does not autoscale if this field is unset.
729    * </pre>
730    *
731    * <code>
732    * .google.cloud.dataproc.v1.AutoscalingConfig autoscaling_config = 18 [(.google.api.field_behavior) = OPTIONAL];
733    * </code>
734    *
735    * @return The autoscalingConfig.
736    */
737   @java.lang.Override
getAutoscalingConfig()738   public com.google.cloud.dataproc.v1.AutoscalingConfig getAutoscalingConfig() {
739     return autoscalingConfig_ == null
740         ? com.google.cloud.dataproc.v1.AutoscalingConfig.getDefaultInstance()
741         : autoscalingConfig_;
742   }
743   /**
744    *
745    *
746    * <pre>
747    * Optional. Autoscaling config for the policy associated with the cluster.
748    * Cluster does not autoscale if this field is unset.
749    * </pre>
750    *
751    * <code>
752    * .google.cloud.dataproc.v1.AutoscalingConfig autoscaling_config = 18 [(.google.api.field_behavior) = OPTIONAL];
753    * </code>
754    */
755   @java.lang.Override
getAutoscalingConfigOrBuilder()756   public com.google.cloud.dataproc.v1.AutoscalingConfigOrBuilder getAutoscalingConfigOrBuilder() {
757     return autoscalingConfig_ == null
758         ? com.google.cloud.dataproc.v1.AutoscalingConfig.getDefaultInstance()
759         : autoscalingConfig_;
760   }
761 
762   public static final int SECURITY_CONFIG_FIELD_NUMBER = 16;
763   private com.google.cloud.dataproc.v1.SecurityConfig securityConfig_;
764   /**
765    *
766    *
767    * <pre>
768    * Optional. Security settings for the cluster.
769    * </pre>
770    *
771    * <code>
772    * .google.cloud.dataproc.v1.SecurityConfig security_config = 16 [(.google.api.field_behavior) = OPTIONAL];
773    * </code>
774    *
775    * @return Whether the securityConfig field is set.
776    */
777   @java.lang.Override
hasSecurityConfig()778   public boolean hasSecurityConfig() {
779     return securityConfig_ != null;
780   }
781   /**
782    *
783    *
784    * <pre>
785    * Optional. Security settings for the cluster.
786    * </pre>
787    *
788    * <code>
789    * .google.cloud.dataproc.v1.SecurityConfig security_config = 16 [(.google.api.field_behavior) = OPTIONAL];
790    * </code>
791    *
792    * @return The securityConfig.
793    */
794   @java.lang.Override
getSecurityConfig()795   public com.google.cloud.dataproc.v1.SecurityConfig getSecurityConfig() {
796     return securityConfig_ == null
797         ? com.google.cloud.dataproc.v1.SecurityConfig.getDefaultInstance()
798         : securityConfig_;
799   }
800   /**
801    *
802    *
803    * <pre>
804    * Optional. Security settings for the cluster.
805    * </pre>
806    *
807    * <code>
808    * .google.cloud.dataproc.v1.SecurityConfig security_config = 16 [(.google.api.field_behavior) = OPTIONAL];
809    * </code>
810    */
811   @java.lang.Override
getSecurityConfigOrBuilder()812   public com.google.cloud.dataproc.v1.SecurityConfigOrBuilder getSecurityConfigOrBuilder() {
813     return securityConfig_ == null
814         ? com.google.cloud.dataproc.v1.SecurityConfig.getDefaultInstance()
815         : securityConfig_;
816   }
817 
818   public static final int LIFECYCLE_CONFIG_FIELD_NUMBER = 17;
819   private com.google.cloud.dataproc.v1.LifecycleConfig lifecycleConfig_;
820   /**
821    *
822    *
823    * <pre>
824    * Optional. Lifecycle setting for the cluster.
825    * </pre>
826    *
827    * <code>
828    * .google.cloud.dataproc.v1.LifecycleConfig lifecycle_config = 17 [(.google.api.field_behavior) = OPTIONAL];
829    * </code>
830    *
831    * @return Whether the lifecycleConfig field is set.
832    */
833   @java.lang.Override
hasLifecycleConfig()834   public boolean hasLifecycleConfig() {
835     return lifecycleConfig_ != null;
836   }
837   /**
838    *
839    *
840    * <pre>
841    * Optional. Lifecycle setting for the cluster.
842    * </pre>
843    *
844    * <code>
845    * .google.cloud.dataproc.v1.LifecycleConfig lifecycle_config = 17 [(.google.api.field_behavior) = OPTIONAL];
846    * </code>
847    *
848    * @return The lifecycleConfig.
849    */
850   @java.lang.Override
getLifecycleConfig()851   public com.google.cloud.dataproc.v1.LifecycleConfig getLifecycleConfig() {
852     return lifecycleConfig_ == null
853         ? com.google.cloud.dataproc.v1.LifecycleConfig.getDefaultInstance()
854         : lifecycleConfig_;
855   }
856   /**
857    *
858    *
859    * <pre>
860    * Optional. Lifecycle setting for the cluster.
861    * </pre>
862    *
863    * <code>
864    * .google.cloud.dataproc.v1.LifecycleConfig lifecycle_config = 17 [(.google.api.field_behavior) = OPTIONAL];
865    * </code>
866    */
867   @java.lang.Override
getLifecycleConfigOrBuilder()868   public com.google.cloud.dataproc.v1.LifecycleConfigOrBuilder getLifecycleConfigOrBuilder() {
869     return lifecycleConfig_ == null
870         ? com.google.cloud.dataproc.v1.LifecycleConfig.getDefaultInstance()
871         : lifecycleConfig_;
872   }
873 
874   public static final int ENDPOINT_CONFIG_FIELD_NUMBER = 19;
875   private com.google.cloud.dataproc.v1.EndpointConfig endpointConfig_;
876   /**
877    *
878    *
879    * <pre>
880    * Optional. Port/endpoint configuration for this cluster
881    * </pre>
882    *
883    * <code>
884    * .google.cloud.dataproc.v1.EndpointConfig endpoint_config = 19 [(.google.api.field_behavior) = OPTIONAL];
885    * </code>
886    *
887    * @return Whether the endpointConfig field is set.
888    */
889   @java.lang.Override
hasEndpointConfig()890   public boolean hasEndpointConfig() {
891     return endpointConfig_ != null;
892   }
893   /**
894    *
895    *
896    * <pre>
897    * Optional. Port/endpoint configuration for this cluster
898    * </pre>
899    *
900    * <code>
901    * .google.cloud.dataproc.v1.EndpointConfig endpoint_config = 19 [(.google.api.field_behavior) = OPTIONAL];
902    * </code>
903    *
904    * @return The endpointConfig.
905    */
906   @java.lang.Override
getEndpointConfig()907   public com.google.cloud.dataproc.v1.EndpointConfig getEndpointConfig() {
908     return endpointConfig_ == null
909         ? com.google.cloud.dataproc.v1.EndpointConfig.getDefaultInstance()
910         : endpointConfig_;
911   }
912   /**
913    *
914    *
915    * <pre>
916    * Optional. Port/endpoint configuration for this cluster
917    * </pre>
918    *
919    * <code>
920    * .google.cloud.dataproc.v1.EndpointConfig endpoint_config = 19 [(.google.api.field_behavior) = OPTIONAL];
921    * </code>
922    */
923   @java.lang.Override
getEndpointConfigOrBuilder()924   public com.google.cloud.dataproc.v1.EndpointConfigOrBuilder getEndpointConfigOrBuilder() {
925     return endpointConfig_ == null
926         ? com.google.cloud.dataproc.v1.EndpointConfig.getDefaultInstance()
927         : endpointConfig_;
928   }
929 
930   public static final int METASTORE_CONFIG_FIELD_NUMBER = 20;
931   private com.google.cloud.dataproc.v1.MetastoreConfig metastoreConfig_;
932   /**
933    *
934    *
935    * <pre>
936    * Optional. Metastore configuration.
937    * </pre>
938    *
939    * <code>
940    * .google.cloud.dataproc.v1.MetastoreConfig metastore_config = 20 [(.google.api.field_behavior) = OPTIONAL];
941    * </code>
942    *
943    * @return Whether the metastoreConfig field is set.
944    */
945   @java.lang.Override
hasMetastoreConfig()946   public boolean hasMetastoreConfig() {
947     return metastoreConfig_ != null;
948   }
949   /**
950    *
951    *
952    * <pre>
953    * Optional. Metastore configuration.
954    * </pre>
955    *
956    * <code>
957    * .google.cloud.dataproc.v1.MetastoreConfig metastore_config = 20 [(.google.api.field_behavior) = OPTIONAL];
958    * </code>
959    *
960    * @return The metastoreConfig.
961    */
962   @java.lang.Override
getMetastoreConfig()963   public com.google.cloud.dataproc.v1.MetastoreConfig getMetastoreConfig() {
964     return metastoreConfig_ == null
965         ? com.google.cloud.dataproc.v1.MetastoreConfig.getDefaultInstance()
966         : metastoreConfig_;
967   }
968   /**
969    *
970    *
971    * <pre>
972    * Optional. Metastore configuration.
973    * </pre>
974    *
975    * <code>
976    * .google.cloud.dataproc.v1.MetastoreConfig metastore_config = 20 [(.google.api.field_behavior) = OPTIONAL];
977    * </code>
978    */
979   @java.lang.Override
getMetastoreConfigOrBuilder()980   public com.google.cloud.dataproc.v1.MetastoreConfigOrBuilder getMetastoreConfigOrBuilder() {
981     return metastoreConfig_ == null
982         ? com.google.cloud.dataproc.v1.MetastoreConfig.getDefaultInstance()
983         : metastoreConfig_;
984   }
985 
986   public static final int DATAPROC_METRIC_CONFIG_FIELD_NUMBER = 23;
987   private com.google.cloud.dataproc.v1.DataprocMetricConfig dataprocMetricConfig_;
988   /**
989    *
990    *
991    * <pre>
992    * Optional. The config for Dataproc metrics.
993    * </pre>
994    *
995    * <code>
996    * .google.cloud.dataproc.v1.DataprocMetricConfig dataproc_metric_config = 23 [(.google.api.field_behavior) = OPTIONAL];
997    * </code>
998    *
999    * @return Whether the dataprocMetricConfig field is set.
1000    */
1001   @java.lang.Override
hasDataprocMetricConfig()1002   public boolean hasDataprocMetricConfig() {
1003     return dataprocMetricConfig_ != null;
1004   }
1005   /**
1006    *
1007    *
1008    * <pre>
1009    * Optional. The config for Dataproc metrics.
1010    * </pre>
1011    *
1012    * <code>
1013    * .google.cloud.dataproc.v1.DataprocMetricConfig dataproc_metric_config = 23 [(.google.api.field_behavior) = OPTIONAL];
1014    * </code>
1015    *
1016    * @return The dataprocMetricConfig.
1017    */
1018   @java.lang.Override
getDataprocMetricConfig()1019   public com.google.cloud.dataproc.v1.DataprocMetricConfig getDataprocMetricConfig() {
1020     return dataprocMetricConfig_ == null
1021         ? com.google.cloud.dataproc.v1.DataprocMetricConfig.getDefaultInstance()
1022         : dataprocMetricConfig_;
1023   }
1024   /**
1025    *
1026    *
1027    * <pre>
1028    * Optional. The config for Dataproc metrics.
1029    * </pre>
1030    *
1031    * <code>
1032    * .google.cloud.dataproc.v1.DataprocMetricConfig dataproc_metric_config = 23 [(.google.api.field_behavior) = OPTIONAL];
1033    * </code>
1034    */
1035   @java.lang.Override
1036   public com.google.cloud.dataproc.v1.DataprocMetricConfigOrBuilder
getDataprocMetricConfigOrBuilder()1037       getDataprocMetricConfigOrBuilder() {
1038     return dataprocMetricConfig_ == null
1039         ? com.google.cloud.dataproc.v1.DataprocMetricConfig.getDefaultInstance()
1040         : dataprocMetricConfig_;
1041   }
1042 
1043   public static final int AUXILIARY_NODE_GROUPS_FIELD_NUMBER = 25;
1044 
1045   @SuppressWarnings("serial")
1046   private java.util.List<com.google.cloud.dataproc.v1.AuxiliaryNodeGroup> auxiliaryNodeGroups_;
1047   /**
1048    *
1049    *
1050    * <pre>
1051    * Optional. The node group settings.
1052    * </pre>
1053    *
1054    * <code>
1055    * repeated .google.cloud.dataproc.v1.AuxiliaryNodeGroup auxiliary_node_groups = 25 [(.google.api.field_behavior) = OPTIONAL];
1056    * </code>
1057    */
1058   @java.lang.Override
1059   public java.util.List<com.google.cloud.dataproc.v1.AuxiliaryNodeGroup>
getAuxiliaryNodeGroupsList()1060       getAuxiliaryNodeGroupsList() {
1061     return auxiliaryNodeGroups_;
1062   }
1063   /**
1064    *
1065    *
1066    * <pre>
1067    * Optional. The node group settings.
1068    * </pre>
1069    *
1070    * <code>
1071    * repeated .google.cloud.dataproc.v1.AuxiliaryNodeGroup auxiliary_node_groups = 25 [(.google.api.field_behavior) = OPTIONAL];
1072    * </code>
1073    */
1074   @java.lang.Override
1075   public java.util.List<? extends com.google.cloud.dataproc.v1.AuxiliaryNodeGroupOrBuilder>
getAuxiliaryNodeGroupsOrBuilderList()1076       getAuxiliaryNodeGroupsOrBuilderList() {
1077     return auxiliaryNodeGroups_;
1078   }
1079   /**
1080    *
1081    *
1082    * <pre>
1083    * Optional. The node group settings.
1084    * </pre>
1085    *
1086    * <code>
1087    * repeated .google.cloud.dataproc.v1.AuxiliaryNodeGroup auxiliary_node_groups = 25 [(.google.api.field_behavior) = OPTIONAL];
1088    * </code>
1089    */
1090   @java.lang.Override
getAuxiliaryNodeGroupsCount()1091   public int getAuxiliaryNodeGroupsCount() {
1092     return auxiliaryNodeGroups_.size();
1093   }
1094   /**
1095    *
1096    *
1097    * <pre>
1098    * Optional. The node group settings.
1099    * </pre>
1100    *
1101    * <code>
1102    * repeated .google.cloud.dataproc.v1.AuxiliaryNodeGroup auxiliary_node_groups = 25 [(.google.api.field_behavior) = OPTIONAL];
1103    * </code>
1104    */
1105   @java.lang.Override
getAuxiliaryNodeGroups(int index)1106   public com.google.cloud.dataproc.v1.AuxiliaryNodeGroup getAuxiliaryNodeGroups(int index) {
1107     return auxiliaryNodeGroups_.get(index);
1108   }
1109   /**
1110    *
1111    *
1112    * <pre>
1113    * Optional. The node group settings.
1114    * </pre>
1115    *
1116    * <code>
1117    * repeated .google.cloud.dataproc.v1.AuxiliaryNodeGroup auxiliary_node_groups = 25 [(.google.api.field_behavior) = OPTIONAL];
1118    * </code>
1119    */
1120   @java.lang.Override
getAuxiliaryNodeGroupsOrBuilder( int index)1121   public com.google.cloud.dataproc.v1.AuxiliaryNodeGroupOrBuilder getAuxiliaryNodeGroupsOrBuilder(
1122       int index) {
1123     return auxiliaryNodeGroups_.get(index);
1124   }
1125 
1126   private byte memoizedIsInitialized = -1;
1127 
1128   @java.lang.Override
isInitialized()1129   public final boolean isInitialized() {
1130     byte isInitialized = memoizedIsInitialized;
1131     if (isInitialized == 1) return true;
1132     if (isInitialized == 0) return false;
1133 
1134     memoizedIsInitialized = 1;
1135     return true;
1136   }
1137 
1138   @java.lang.Override
writeTo(com.google.protobuf.CodedOutputStream output)1139   public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
1140     if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(configBucket_)) {
1141       com.google.protobuf.GeneratedMessageV3.writeString(output, 1, configBucket_);
1142     }
1143     if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(tempBucket_)) {
1144       com.google.protobuf.GeneratedMessageV3.writeString(output, 2, tempBucket_);
1145     }
1146     if (gceClusterConfig_ != null) {
1147       output.writeMessage(8, getGceClusterConfig());
1148     }
1149     if (masterConfig_ != null) {
1150       output.writeMessage(9, getMasterConfig());
1151     }
1152     if (workerConfig_ != null) {
1153       output.writeMessage(10, getWorkerConfig());
1154     }
1155     for (int i = 0; i < initializationActions_.size(); i++) {
1156       output.writeMessage(11, initializationActions_.get(i));
1157     }
1158     if (secondaryWorkerConfig_ != null) {
1159       output.writeMessage(12, getSecondaryWorkerConfig());
1160     }
1161     if (softwareConfig_ != null) {
1162       output.writeMessage(13, getSoftwareConfig());
1163     }
1164     if (encryptionConfig_ != null) {
1165       output.writeMessage(15, getEncryptionConfig());
1166     }
1167     if (securityConfig_ != null) {
1168       output.writeMessage(16, getSecurityConfig());
1169     }
1170     if (lifecycleConfig_ != null) {
1171       output.writeMessage(17, getLifecycleConfig());
1172     }
1173     if (autoscalingConfig_ != null) {
1174       output.writeMessage(18, getAutoscalingConfig());
1175     }
1176     if (endpointConfig_ != null) {
1177       output.writeMessage(19, getEndpointConfig());
1178     }
1179     if (metastoreConfig_ != null) {
1180       output.writeMessage(20, getMetastoreConfig());
1181     }
1182     if (dataprocMetricConfig_ != null) {
1183       output.writeMessage(23, getDataprocMetricConfig());
1184     }
1185     for (int i = 0; i < auxiliaryNodeGroups_.size(); i++) {
1186       output.writeMessage(25, auxiliaryNodeGroups_.get(i));
1187     }
1188     getUnknownFields().writeTo(output);
1189   }
1190 
1191   @java.lang.Override
getSerializedSize()1192   public int getSerializedSize() {
1193     int size = memoizedSize;
1194     if (size != -1) return size;
1195 
1196     size = 0;
1197     if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(configBucket_)) {
1198       size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, configBucket_);
1199     }
1200     if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(tempBucket_)) {
1201       size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, tempBucket_);
1202     }
1203     if (gceClusterConfig_ != null) {
1204       size += com.google.protobuf.CodedOutputStream.computeMessageSize(8, getGceClusterConfig());
1205     }
1206     if (masterConfig_ != null) {
1207       size += com.google.protobuf.CodedOutputStream.computeMessageSize(9, getMasterConfig());
1208     }
1209     if (workerConfig_ != null) {
1210       size += com.google.protobuf.CodedOutputStream.computeMessageSize(10, getWorkerConfig());
1211     }
1212     for (int i = 0; i < initializationActions_.size(); i++) {
1213       size +=
1214           com.google.protobuf.CodedOutputStream.computeMessageSize(
1215               11, initializationActions_.get(i));
1216     }
1217     if (secondaryWorkerConfig_ != null) {
1218       size +=
1219           com.google.protobuf.CodedOutputStream.computeMessageSize(12, getSecondaryWorkerConfig());
1220     }
1221     if (softwareConfig_ != null) {
1222       size += com.google.protobuf.CodedOutputStream.computeMessageSize(13, getSoftwareConfig());
1223     }
1224     if (encryptionConfig_ != null) {
1225       size += com.google.protobuf.CodedOutputStream.computeMessageSize(15, getEncryptionConfig());
1226     }
1227     if (securityConfig_ != null) {
1228       size += com.google.protobuf.CodedOutputStream.computeMessageSize(16, getSecurityConfig());
1229     }
1230     if (lifecycleConfig_ != null) {
1231       size += com.google.protobuf.CodedOutputStream.computeMessageSize(17, getLifecycleConfig());
1232     }
1233     if (autoscalingConfig_ != null) {
1234       size += com.google.protobuf.CodedOutputStream.computeMessageSize(18, getAutoscalingConfig());
1235     }
1236     if (endpointConfig_ != null) {
1237       size += com.google.protobuf.CodedOutputStream.computeMessageSize(19, getEndpointConfig());
1238     }
1239     if (metastoreConfig_ != null) {
1240       size += com.google.protobuf.CodedOutputStream.computeMessageSize(20, getMetastoreConfig());
1241     }
1242     if (dataprocMetricConfig_ != null) {
1243       size +=
1244           com.google.protobuf.CodedOutputStream.computeMessageSize(23, getDataprocMetricConfig());
1245     }
1246     for (int i = 0; i < auxiliaryNodeGroups_.size(); i++) {
1247       size +=
1248           com.google.protobuf.CodedOutputStream.computeMessageSize(25, auxiliaryNodeGroups_.get(i));
1249     }
1250     size += getUnknownFields().getSerializedSize();
1251     memoizedSize = size;
1252     return size;
1253   }
1254 
1255   @java.lang.Override
equals(final java.lang.Object obj)1256   public boolean equals(final java.lang.Object obj) {
1257     if (obj == this) {
1258       return true;
1259     }
1260     if (!(obj instanceof com.google.cloud.dataproc.v1.ClusterConfig)) {
1261       return super.equals(obj);
1262     }
1263     com.google.cloud.dataproc.v1.ClusterConfig other =
1264         (com.google.cloud.dataproc.v1.ClusterConfig) obj;
1265 
1266     if (!getConfigBucket().equals(other.getConfigBucket())) return false;
1267     if (!getTempBucket().equals(other.getTempBucket())) return false;
1268     if (hasGceClusterConfig() != other.hasGceClusterConfig()) return false;
1269     if (hasGceClusterConfig()) {
1270       if (!getGceClusterConfig().equals(other.getGceClusterConfig())) return false;
1271     }
1272     if (hasMasterConfig() != other.hasMasterConfig()) return false;
1273     if (hasMasterConfig()) {
1274       if (!getMasterConfig().equals(other.getMasterConfig())) return false;
1275     }
1276     if (hasWorkerConfig() != other.hasWorkerConfig()) return false;
1277     if (hasWorkerConfig()) {
1278       if (!getWorkerConfig().equals(other.getWorkerConfig())) return false;
1279     }
1280     if (hasSecondaryWorkerConfig() != other.hasSecondaryWorkerConfig()) return false;
1281     if (hasSecondaryWorkerConfig()) {
1282       if (!getSecondaryWorkerConfig().equals(other.getSecondaryWorkerConfig())) return false;
1283     }
1284     if (hasSoftwareConfig() != other.hasSoftwareConfig()) return false;
1285     if (hasSoftwareConfig()) {
1286       if (!getSoftwareConfig().equals(other.getSoftwareConfig())) return false;
1287     }
1288     if (!getInitializationActionsList().equals(other.getInitializationActionsList())) return false;
1289     if (hasEncryptionConfig() != other.hasEncryptionConfig()) return false;
1290     if (hasEncryptionConfig()) {
1291       if (!getEncryptionConfig().equals(other.getEncryptionConfig())) return false;
1292     }
1293     if (hasAutoscalingConfig() != other.hasAutoscalingConfig()) return false;
1294     if (hasAutoscalingConfig()) {
1295       if (!getAutoscalingConfig().equals(other.getAutoscalingConfig())) return false;
1296     }
1297     if (hasSecurityConfig() != other.hasSecurityConfig()) return false;
1298     if (hasSecurityConfig()) {
1299       if (!getSecurityConfig().equals(other.getSecurityConfig())) return false;
1300     }
1301     if (hasLifecycleConfig() != other.hasLifecycleConfig()) return false;
1302     if (hasLifecycleConfig()) {
1303       if (!getLifecycleConfig().equals(other.getLifecycleConfig())) return false;
1304     }
1305     if (hasEndpointConfig() != other.hasEndpointConfig()) return false;
1306     if (hasEndpointConfig()) {
1307       if (!getEndpointConfig().equals(other.getEndpointConfig())) return false;
1308     }
1309     if (hasMetastoreConfig() != other.hasMetastoreConfig()) return false;
1310     if (hasMetastoreConfig()) {
1311       if (!getMetastoreConfig().equals(other.getMetastoreConfig())) return false;
1312     }
1313     if (hasDataprocMetricConfig() != other.hasDataprocMetricConfig()) return false;
1314     if (hasDataprocMetricConfig()) {
1315       if (!getDataprocMetricConfig().equals(other.getDataprocMetricConfig())) return false;
1316     }
1317     if (!getAuxiliaryNodeGroupsList().equals(other.getAuxiliaryNodeGroupsList())) return false;
1318     if (!getUnknownFields().equals(other.getUnknownFields())) return false;
1319     return true;
1320   }
1321 
1322   @java.lang.Override
hashCode()1323   public int hashCode() {
1324     if (memoizedHashCode != 0) {
1325       return memoizedHashCode;
1326     }
1327     int hash = 41;
1328     hash = (19 * hash) + getDescriptor().hashCode();
1329     hash = (37 * hash) + CONFIG_BUCKET_FIELD_NUMBER;
1330     hash = (53 * hash) + getConfigBucket().hashCode();
1331     hash = (37 * hash) + TEMP_BUCKET_FIELD_NUMBER;
1332     hash = (53 * hash) + getTempBucket().hashCode();
1333     if (hasGceClusterConfig()) {
1334       hash = (37 * hash) + GCE_CLUSTER_CONFIG_FIELD_NUMBER;
1335       hash = (53 * hash) + getGceClusterConfig().hashCode();
1336     }
1337     if (hasMasterConfig()) {
1338       hash = (37 * hash) + MASTER_CONFIG_FIELD_NUMBER;
1339       hash = (53 * hash) + getMasterConfig().hashCode();
1340     }
1341     if (hasWorkerConfig()) {
1342       hash = (37 * hash) + WORKER_CONFIG_FIELD_NUMBER;
1343       hash = (53 * hash) + getWorkerConfig().hashCode();
1344     }
1345     if (hasSecondaryWorkerConfig()) {
1346       hash = (37 * hash) + SECONDARY_WORKER_CONFIG_FIELD_NUMBER;
1347       hash = (53 * hash) + getSecondaryWorkerConfig().hashCode();
1348     }
1349     if (hasSoftwareConfig()) {
1350       hash = (37 * hash) + SOFTWARE_CONFIG_FIELD_NUMBER;
1351       hash = (53 * hash) + getSoftwareConfig().hashCode();
1352     }
1353     if (getInitializationActionsCount() > 0) {
1354       hash = (37 * hash) + INITIALIZATION_ACTIONS_FIELD_NUMBER;
1355       hash = (53 * hash) + getInitializationActionsList().hashCode();
1356     }
1357     if (hasEncryptionConfig()) {
1358       hash = (37 * hash) + ENCRYPTION_CONFIG_FIELD_NUMBER;
1359       hash = (53 * hash) + getEncryptionConfig().hashCode();
1360     }
1361     if (hasAutoscalingConfig()) {
1362       hash = (37 * hash) + AUTOSCALING_CONFIG_FIELD_NUMBER;
1363       hash = (53 * hash) + getAutoscalingConfig().hashCode();
1364     }
1365     if (hasSecurityConfig()) {
1366       hash = (37 * hash) + SECURITY_CONFIG_FIELD_NUMBER;
1367       hash = (53 * hash) + getSecurityConfig().hashCode();
1368     }
1369     if (hasLifecycleConfig()) {
1370       hash = (37 * hash) + LIFECYCLE_CONFIG_FIELD_NUMBER;
1371       hash = (53 * hash) + getLifecycleConfig().hashCode();
1372     }
1373     if (hasEndpointConfig()) {
1374       hash = (37 * hash) + ENDPOINT_CONFIG_FIELD_NUMBER;
1375       hash = (53 * hash) + getEndpointConfig().hashCode();
1376     }
1377     if (hasMetastoreConfig()) {
1378       hash = (37 * hash) + METASTORE_CONFIG_FIELD_NUMBER;
1379       hash = (53 * hash) + getMetastoreConfig().hashCode();
1380     }
1381     if (hasDataprocMetricConfig()) {
1382       hash = (37 * hash) + DATAPROC_METRIC_CONFIG_FIELD_NUMBER;
1383       hash = (53 * hash) + getDataprocMetricConfig().hashCode();
1384     }
1385     if (getAuxiliaryNodeGroupsCount() > 0) {
1386       hash = (37 * hash) + AUXILIARY_NODE_GROUPS_FIELD_NUMBER;
1387       hash = (53 * hash) + getAuxiliaryNodeGroupsList().hashCode();
1388     }
1389     hash = (29 * hash) + getUnknownFields().hashCode();
1390     memoizedHashCode = hash;
1391     return hash;
1392   }
1393 
parseFrom(java.nio.ByteBuffer data)1394   public static com.google.cloud.dataproc.v1.ClusterConfig parseFrom(java.nio.ByteBuffer data)
1395       throws com.google.protobuf.InvalidProtocolBufferException {
1396     return PARSER.parseFrom(data);
1397   }
1398 
parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)1399   public static com.google.cloud.dataproc.v1.ClusterConfig parseFrom(
1400       java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
1401       throws com.google.protobuf.InvalidProtocolBufferException {
1402     return PARSER.parseFrom(data, extensionRegistry);
1403   }
1404 
parseFrom( com.google.protobuf.ByteString data)1405   public static com.google.cloud.dataproc.v1.ClusterConfig parseFrom(
1406       com.google.protobuf.ByteString data)
1407       throws com.google.protobuf.InvalidProtocolBufferException {
1408     return PARSER.parseFrom(data);
1409   }
1410 
parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)1411   public static com.google.cloud.dataproc.v1.ClusterConfig parseFrom(
1412       com.google.protobuf.ByteString data,
1413       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
1414       throws com.google.protobuf.InvalidProtocolBufferException {
1415     return PARSER.parseFrom(data, extensionRegistry);
1416   }
1417 
parseFrom(byte[] data)1418   public static com.google.cloud.dataproc.v1.ClusterConfig parseFrom(byte[] data)
1419       throws com.google.protobuf.InvalidProtocolBufferException {
1420     return PARSER.parseFrom(data);
1421   }
1422 
parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)1423   public static com.google.cloud.dataproc.v1.ClusterConfig parseFrom(
1424       byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
1425       throws com.google.protobuf.InvalidProtocolBufferException {
1426     return PARSER.parseFrom(data, extensionRegistry);
1427   }
1428 
parseFrom(java.io.InputStream input)1429   public static com.google.cloud.dataproc.v1.ClusterConfig parseFrom(java.io.InputStream input)
1430       throws java.io.IOException {
1431     return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
1432   }
1433 
parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)1434   public static com.google.cloud.dataproc.v1.ClusterConfig parseFrom(
1435       java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
1436       throws java.io.IOException {
1437     return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
1438         PARSER, input, extensionRegistry);
1439   }
1440 
parseDelimitedFrom( java.io.InputStream input)1441   public static com.google.cloud.dataproc.v1.ClusterConfig parseDelimitedFrom(
1442       java.io.InputStream input) throws java.io.IOException {
1443     return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
1444   }
1445 
parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)1446   public static com.google.cloud.dataproc.v1.ClusterConfig parseDelimitedFrom(
1447       java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
1448       throws java.io.IOException {
1449     return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
1450         PARSER, input, extensionRegistry);
1451   }
1452 
parseFrom( com.google.protobuf.CodedInputStream input)1453   public static com.google.cloud.dataproc.v1.ClusterConfig parseFrom(
1454       com.google.protobuf.CodedInputStream input) throws java.io.IOException {
1455     return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
1456   }
1457 
parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)1458   public static com.google.cloud.dataproc.v1.ClusterConfig parseFrom(
1459       com.google.protobuf.CodedInputStream input,
1460       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
1461       throws java.io.IOException {
1462     return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
1463         PARSER, input, extensionRegistry);
1464   }
1465 
1466   @java.lang.Override
newBuilderForType()1467   public Builder newBuilderForType() {
1468     return newBuilder();
1469   }
1470 
newBuilder()1471   public static Builder newBuilder() {
1472     return DEFAULT_INSTANCE.toBuilder();
1473   }
1474 
newBuilder(com.google.cloud.dataproc.v1.ClusterConfig prototype)1475   public static Builder newBuilder(com.google.cloud.dataproc.v1.ClusterConfig prototype) {
1476     return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
1477   }
1478 
1479   @java.lang.Override
toBuilder()1480   public Builder toBuilder() {
1481     return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
1482   }
1483 
1484   @java.lang.Override
newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)1485   protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
1486     Builder builder = new Builder(parent);
1487     return builder;
1488   }
1489   /**
1490    *
1491    *
1492    * <pre>
1493    * The cluster config.
1494    * </pre>
1495    *
1496    * Protobuf type {@code google.cloud.dataproc.v1.ClusterConfig}
1497    */
1498   public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder<Builder>
1499       implements
1500       // @@protoc_insertion_point(builder_implements:google.cloud.dataproc.v1.ClusterConfig)
1501       com.google.cloud.dataproc.v1.ClusterConfigOrBuilder {
getDescriptor()1502     public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
1503       return com.google.cloud.dataproc.v1.ClustersProto
1504           .internal_static_google_cloud_dataproc_v1_ClusterConfig_descriptor;
1505     }
1506 
1507     @java.lang.Override
1508     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable()1509         internalGetFieldAccessorTable() {
1510       return com.google.cloud.dataproc.v1.ClustersProto
1511           .internal_static_google_cloud_dataproc_v1_ClusterConfig_fieldAccessorTable
1512           .ensureFieldAccessorsInitialized(
1513               com.google.cloud.dataproc.v1.ClusterConfig.class,
1514               com.google.cloud.dataproc.v1.ClusterConfig.Builder.class);
1515     }
1516 
1517     // Construct using com.google.cloud.dataproc.v1.ClusterConfig.newBuilder()
Builder()1518     private Builder() {}
1519 
Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)1520     private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
1521       super(parent);
1522     }
1523 
1524     @java.lang.Override
clear()1525     public Builder clear() {
1526       super.clear();
1527       bitField0_ = 0;
1528       configBucket_ = "";
1529       tempBucket_ = "";
1530       gceClusterConfig_ = null;
1531       if (gceClusterConfigBuilder_ != null) {
1532         gceClusterConfigBuilder_.dispose();
1533         gceClusterConfigBuilder_ = null;
1534       }
1535       masterConfig_ = null;
1536       if (masterConfigBuilder_ != null) {
1537         masterConfigBuilder_.dispose();
1538         masterConfigBuilder_ = null;
1539       }
1540       workerConfig_ = null;
1541       if (workerConfigBuilder_ != null) {
1542         workerConfigBuilder_.dispose();
1543         workerConfigBuilder_ = null;
1544       }
1545       secondaryWorkerConfig_ = null;
1546       if (secondaryWorkerConfigBuilder_ != null) {
1547         secondaryWorkerConfigBuilder_.dispose();
1548         secondaryWorkerConfigBuilder_ = null;
1549       }
1550       softwareConfig_ = null;
1551       if (softwareConfigBuilder_ != null) {
1552         softwareConfigBuilder_.dispose();
1553         softwareConfigBuilder_ = null;
1554       }
1555       if (initializationActionsBuilder_ == null) {
1556         initializationActions_ = java.util.Collections.emptyList();
1557       } else {
1558         initializationActions_ = null;
1559         initializationActionsBuilder_.clear();
1560       }
1561       bitField0_ = (bitField0_ & ~0x00000080);
1562       encryptionConfig_ = null;
1563       if (encryptionConfigBuilder_ != null) {
1564         encryptionConfigBuilder_.dispose();
1565         encryptionConfigBuilder_ = null;
1566       }
1567       autoscalingConfig_ = null;
1568       if (autoscalingConfigBuilder_ != null) {
1569         autoscalingConfigBuilder_.dispose();
1570         autoscalingConfigBuilder_ = null;
1571       }
1572       securityConfig_ = null;
1573       if (securityConfigBuilder_ != null) {
1574         securityConfigBuilder_.dispose();
1575         securityConfigBuilder_ = null;
1576       }
1577       lifecycleConfig_ = null;
1578       if (lifecycleConfigBuilder_ != null) {
1579         lifecycleConfigBuilder_.dispose();
1580         lifecycleConfigBuilder_ = null;
1581       }
1582       endpointConfig_ = null;
1583       if (endpointConfigBuilder_ != null) {
1584         endpointConfigBuilder_.dispose();
1585         endpointConfigBuilder_ = null;
1586       }
1587       metastoreConfig_ = null;
1588       if (metastoreConfigBuilder_ != null) {
1589         metastoreConfigBuilder_.dispose();
1590         metastoreConfigBuilder_ = null;
1591       }
1592       dataprocMetricConfig_ = null;
1593       if (dataprocMetricConfigBuilder_ != null) {
1594         dataprocMetricConfigBuilder_.dispose();
1595         dataprocMetricConfigBuilder_ = null;
1596       }
1597       if (auxiliaryNodeGroupsBuilder_ == null) {
1598         auxiliaryNodeGroups_ = java.util.Collections.emptyList();
1599       } else {
1600         auxiliaryNodeGroups_ = null;
1601         auxiliaryNodeGroupsBuilder_.clear();
1602       }
1603       bitField0_ = (bitField0_ & ~0x00008000);
1604       return this;
1605     }
1606 
1607     @java.lang.Override
getDescriptorForType()1608     public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
1609       return com.google.cloud.dataproc.v1.ClustersProto
1610           .internal_static_google_cloud_dataproc_v1_ClusterConfig_descriptor;
1611     }
1612 
1613     @java.lang.Override
getDefaultInstanceForType()1614     public com.google.cloud.dataproc.v1.ClusterConfig getDefaultInstanceForType() {
1615       return com.google.cloud.dataproc.v1.ClusterConfig.getDefaultInstance();
1616     }
1617 
1618     @java.lang.Override
build()1619     public com.google.cloud.dataproc.v1.ClusterConfig build() {
1620       com.google.cloud.dataproc.v1.ClusterConfig result = buildPartial();
1621       if (!result.isInitialized()) {
1622         throw newUninitializedMessageException(result);
1623       }
1624       return result;
1625     }
1626 
1627     @java.lang.Override
buildPartial()1628     public com.google.cloud.dataproc.v1.ClusterConfig buildPartial() {
1629       com.google.cloud.dataproc.v1.ClusterConfig result =
1630           new com.google.cloud.dataproc.v1.ClusterConfig(this);
1631       buildPartialRepeatedFields(result);
1632       if (bitField0_ != 0) {
1633         buildPartial0(result);
1634       }
1635       onBuilt();
1636       return result;
1637     }
1638 
buildPartialRepeatedFields(com.google.cloud.dataproc.v1.ClusterConfig result)1639     private void buildPartialRepeatedFields(com.google.cloud.dataproc.v1.ClusterConfig result) {
1640       if (initializationActionsBuilder_ == null) {
1641         if (((bitField0_ & 0x00000080) != 0)) {
1642           initializationActions_ = java.util.Collections.unmodifiableList(initializationActions_);
1643           bitField0_ = (bitField0_ & ~0x00000080);
1644         }
1645         result.initializationActions_ = initializationActions_;
1646       } else {
1647         result.initializationActions_ = initializationActionsBuilder_.build();
1648       }
1649       if (auxiliaryNodeGroupsBuilder_ == null) {
1650         if (((bitField0_ & 0x00008000) != 0)) {
1651           auxiliaryNodeGroups_ = java.util.Collections.unmodifiableList(auxiliaryNodeGroups_);
1652           bitField0_ = (bitField0_ & ~0x00008000);
1653         }
1654         result.auxiliaryNodeGroups_ = auxiliaryNodeGroups_;
1655       } else {
1656         result.auxiliaryNodeGroups_ = auxiliaryNodeGroupsBuilder_.build();
1657       }
1658     }
1659 
buildPartial0(com.google.cloud.dataproc.v1.ClusterConfig result)1660     private void buildPartial0(com.google.cloud.dataproc.v1.ClusterConfig result) {
1661       int from_bitField0_ = bitField0_;
1662       if (((from_bitField0_ & 0x00000001) != 0)) {
1663         result.configBucket_ = configBucket_;
1664       }
1665       if (((from_bitField0_ & 0x00000002) != 0)) {
1666         result.tempBucket_ = tempBucket_;
1667       }
1668       if (((from_bitField0_ & 0x00000004) != 0)) {
1669         result.gceClusterConfig_ =
1670             gceClusterConfigBuilder_ == null ? gceClusterConfig_ : gceClusterConfigBuilder_.build();
1671       }
1672       if (((from_bitField0_ & 0x00000008) != 0)) {
1673         result.masterConfig_ =
1674             masterConfigBuilder_ == null ? masterConfig_ : masterConfigBuilder_.build();
1675       }
1676       if (((from_bitField0_ & 0x00000010) != 0)) {
1677         result.workerConfig_ =
1678             workerConfigBuilder_ == null ? workerConfig_ : workerConfigBuilder_.build();
1679       }
1680       if (((from_bitField0_ & 0x00000020) != 0)) {
1681         result.secondaryWorkerConfig_ =
1682             secondaryWorkerConfigBuilder_ == null
1683                 ? secondaryWorkerConfig_
1684                 : secondaryWorkerConfigBuilder_.build();
1685       }
1686       if (((from_bitField0_ & 0x00000040) != 0)) {
1687         result.softwareConfig_ =
1688             softwareConfigBuilder_ == null ? softwareConfig_ : softwareConfigBuilder_.build();
1689       }
1690       if (((from_bitField0_ & 0x00000100) != 0)) {
1691         result.encryptionConfig_ =
1692             encryptionConfigBuilder_ == null ? encryptionConfig_ : encryptionConfigBuilder_.build();
1693       }
1694       if (((from_bitField0_ & 0x00000200) != 0)) {
1695         result.autoscalingConfig_ =
1696             autoscalingConfigBuilder_ == null
1697                 ? autoscalingConfig_
1698                 : autoscalingConfigBuilder_.build();
1699       }
1700       if (((from_bitField0_ & 0x00000400) != 0)) {
1701         result.securityConfig_ =
1702             securityConfigBuilder_ == null ? securityConfig_ : securityConfigBuilder_.build();
1703       }
1704       if (((from_bitField0_ & 0x00000800) != 0)) {
1705         result.lifecycleConfig_ =
1706             lifecycleConfigBuilder_ == null ? lifecycleConfig_ : lifecycleConfigBuilder_.build();
1707       }
1708       if (((from_bitField0_ & 0x00001000) != 0)) {
1709         result.endpointConfig_ =
1710             endpointConfigBuilder_ == null ? endpointConfig_ : endpointConfigBuilder_.build();
1711       }
1712       if (((from_bitField0_ & 0x00002000) != 0)) {
1713         result.metastoreConfig_ =
1714             metastoreConfigBuilder_ == null ? metastoreConfig_ : metastoreConfigBuilder_.build();
1715       }
1716       if (((from_bitField0_ & 0x00004000) != 0)) {
1717         result.dataprocMetricConfig_ =
1718             dataprocMetricConfigBuilder_ == null
1719                 ? dataprocMetricConfig_
1720                 : dataprocMetricConfigBuilder_.build();
1721       }
1722     }
1723 
1724     @java.lang.Override
clone()1725     public Builder clone() {
1726       return super.clone();
1727     }
1728 
1729     @java.lang.Override
setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)1730     public Builder setField(
1731         com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
1732       return super.setField(field, value);
1733     }
1734 
1735     @java.lang.Override
clearField(com.google.protobuf.Descriptors.FieldDescriptor field)1736     public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
1737       return super.clearField(field);
1738     }
1739 
1740     @java.lang.Override
clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)1741     public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
1742       return super.clearOneof(oneof);
1743     }
1744 
1745     @java.lang.Override
setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value)1746     public Builder setRepeatedField(
1747         com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
1748       return super.setRepeatedField(field, index, value);
1749     }
1750 
1751     @java.lang.Override
addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)1752     public Builder addRepeatedField(
1753         com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
1754       return super.addRepeatedField(field, value);
1755     }
1756 
1757     @java.lang.Override
mergeFrom(com.google.protobuf.Message other)1758     public Builder mergeFrom(com.google.protobuf.Message other) {
1759       if (other instanceof com.google.cloud.dataproc.v1.ClusterConfig) {
1760         return mergeFrom((com.google.cloud.dataproc.v1.ClusterConfig) other);
1761       } else {
1762         super.mergeFrom(other);
1763         return this;
1764       }
1765     }
1766 
mergeFrom(com.google.cloud.dataproc.v1.ClusterConfig other)1767     public Builder mergeFrom(com.google.cloud.dataproc.v1.ClusterConfig other) {
1768       if (other == com.google.cloud.dataproc.v1.ClusterConfig.getDefaultInstance()) return this;
1769       if (!other.getConfigBucket().isEmpty()) {
1770         configBucket_ = other.configBucket_;
1771         bitField0_ |= 0x00000001;
1772         onChanged();
1773       }
1774       if (!other.getTempBucket().isEmpty()) {
1775         tempBucket_ = other.tempBucket_;
1776         bitField0_ |= 0x00000002;
1777         onChanged();
1778       }
1779       if (other.hasGceClusterConfig()) {
1780         mergeGceClusterConfig(other.getGceClusterConfig());
1781       }
1782       if (other.hasMasterConfig()) {
1783         mergeMasterConfig(other.getMasterConfig());
1784       }
1785       if (other.hasWorkerConfig()) {
1786         mergeWorkerConfig(other.getWorkerConfig());
1787       }
1788       if (other.hasSecondaryWorkerConfig()) {
1789         mergeSecondaryWorkerConfig(other.getSecondaryWorkerConfig());
1790       }
1791       if (other.hasSoftwareConfig()) {
1792         mergeSoftwareConfig(other.getSoftwareConfig());
1793       }
1794       if (initializationActionsBuilder_ == null) {
1795         if (!other.initializationActions_.isEmpty()) {
1796           if (initializationActions_.isEmpty()) {
1797             initializationActions_ = other.initializationActions_;
1798             bitField0_ = (bitField0_ & ~0x00000080);
1799           } else {
1800             ensureInitializationActionsIsMutable();
1801             initializationActions_.addAll(other.initializationActions_);
1802           }
1803           onChanged();
1804         }
1805       } else {
1806         if (!other.initializationActions_.isEmpty()) {
1807           if (initializationActionsBuilder_.isEmpty()) {
1808             initializationActionsBuilder_.dispose();
1809             initializationActionsBuilder_ = null;
1810             initializationActions_ = other.initializationActions_;
1811             bitField0_ = (bitField0_ & ~0x00000080);
1812             initializationActionsBuilder_ =
1813                 com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders
1814                     ? getInitializationActionsFieldBuilder()
1815                     : null;
1816           } else {
1817             initializationActionsBuilder_.addAllMessages(other.initializationActions_);
1818           }
1819         }
1820       }
1821       if (other.hasEncryptionConfig()) {
1822         mergeEncryptionConfig(other.getEncryptionConfig());
1823       }
1824       if (other.hasAutoscalingConfig()) {
1825         mergeAutoscalingConfig(other.getAutoscalingConfig());
1826       }
1827       if (other.hasSecurityConfig()) {
1828         mergeSecurityConfig(other.getSecurityConfig());
1829       }
1830       if (other.hasLifecycleConfig()) {
1831         mergeLifecycleConfig(other.getLifecycleConfig());
1832       }
1833       if (other.hasEndpointConfig()) {
1834         mergeEndpointConfig(other.getEndpointConfig());
1835       }
1836       if (other.hasMetastoreConfig()) {
1837         mergeMetastoreConfig(other.getMetastoreConfig());
1838       }
1839       if (other.hasDataprocMetricConfig()) {
1840         mergeDataprocMetricConfig(other.getDataprocMetricConfig());
1841       }
1842       if (auxiliaryNodeGroupsBuilder_ == null) {
1843         if (!other.auxiliaryNodeGroups_.isEmpty()) {
1844           if (auxiliaryNodeGroups_.isEmpty()) {
1845             auxiliaryNodeGroups_ = other.auxiliaryNodeGroups_;
1846             bitField0_ = (bitField0_ & ~0x00008000);
1847           } else {
1848             ensureAuxiliaryNodeGroupsIsMutable();
1849             auxiliaryNodeGroups_.addAll(other.auxiliaryNodeGroups_);
1850           }
1851           onChanged();
1852         }
1853       } else {
1854         if (!other.auxiliaryNodeGroups_.isEmpty()) {
1855           if (auxiliaryNodeGroupsBuilder_.isEmpty()) {
1856             auxiliaryNodeGroupsBuilder_.dispose();
1857             auxiliaryNodeGroupsBuilder_ = null;
1858             auxiliaryNodeGroups_ = other.auxiliaryNodeGroups_;
1859             bitField0_ = (bitField0_ & ~0x00008000);
1860             auxiliaryNodeGroupsBuilder_ =
1861                 com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders
1862                     ? getAuxiliaryNodeGroupsFieldBuilder()
1863                     : null;
1864           } else {
1865             auxiliaryNodeGroupsBuilder_.addAllMessages(other.auxiliaryNodeGroups_);
1866           }
1867         }
1868       }
1869       this.mergeUnknownFields(other.getUnknownFields());
1870       onChanged();
1871       return this;
1872     }
1873 
1874     @java.lang.Override
isInitialized()1875     public final boolean isInitialized() {
1876       return true;
1877     }
1878 
1879     @java.lang.Override
mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)1880     public Builder mergeFrom(
1881         com.google.protobuf.CodedInputStream input,
1882         com.google.protobuf.ExtensionRegistryLite extensionRegistry)
1883         throws java.io.IOException {
1884       if (extensionRegistry == null) {
1885         throw new java.lang.NullPointerException();
1886       }
1887       try {
1888         boolean done = false;
1889         while (!done) {
1890           int tag = input.readTag();
1891           switch (tag) {
1892             case 0:
1893               done = true;
1894               break;
1895             case 10:
1896               {
1897                 configBucket_ = input.readStringRequireUtf8();
1898                 bitField0_ |= 0x00000001;
1899                 break;
1900               } // case 10
1901             case 18:
1902               {
1903                 tempBucket_ = input.readStringRequireUtf8();
1904                 bitField0_ |= 0x00000002;
1905                 break;
1906               } // case 18
1907             case 66:
1908               {
1909                 input.readMessage(
1910                     getGceClusterConfigFieldBuilder().getBuilder(), extensionRegistry);
1911                 bitField0_ |= 0x00000004;
1912                 break;
1913               } // case 66
1914             case 74:
1915               {
1916                 input.readMessage(getMasterConfigFieldBuilder().getBuilder(), extensionRegistry);
1917                 bitField0_ |= 0x00000008;
1918                 break;
1919               } // case 74
1920             case 82:
1921               {
1922                 input.readMessage(getWorkerConfigFieldBuilder().getBuilder(), extensionRegistry);
1923                 bitField0_ |= 0x00000010;
1924                 break;
1925               } // case 82
1926             case 90:
1927               {
1928                 com.google.cloud.dataproc.v1.NodeInitializationAction m =
1929                     input.readMessage(
1930                         com.google.cloud.dataproc.v1.NodeInitializationAction.parser(),
1931                         extensionRegistry);
1932                 if (initializationActionsBuilder_ == null) {
1933                   ensureInitializationActionsIsMutable();
1934                   initializationActions_.add(m);
1935                 } else {
1936                   initializationActionsBuilder_.addMessage(m);
1937                 }
1938                 break;
1939               } // case 90
1940             case 98:
1941               {
1942                 input.readMessage(
1943                     getSecondaryWorkerConfigFieldBuilder().getBuilder(), extensionRegistry);
1944                 bitField0_ |= 0x00000020;
1945                 break;
1946               } // case 98
1947             case 106:
1948               {
1949                 input.readMessage(getSoftwareConfigFieldBuilder().getBuilder(), extensionRegistry);
1950                 bitField0_ |= 0x00000040;
1951                 break;
1952               } // case 106
1953             case 122:
1954               {
1955                 input.readMessage(
1956                     getEncryptionConfigFieldBuilder().getBuilder(), extensionRegistry);
1957                 bitField0_ |= 0x00000100;
1958                 break;
1959               } // case 122
1960             case 130:
1961               {
1962                 input.readMessage(getSecurityConfigFieldBuilder().getBuilder(), extensionRegistry);
1963                 bitField0_ |= 0x00000400;
1964                 break;
1965               } // case 130
1966             case 138:
1967               {
1968                 input.readMessage(getLifecycleConfigFieldBuilder().getBuilder(), extensionRegistry);
1969                 bitField0_ |= 0x00000800;
1970                 break;
1971               } // case 138
1972             case 146:
1973               {
1974                 input.readMessage(
1975                     getAutoscalingConfigFieldBuilder().getBuilder(), extensionRegistry);
1976                 bitField0_ |= 0x00000200;
1977                 break;
1978               } // case 146
1979             case 154:
1980               {
1981                 input.readMessage(getEndpointConfigFieldBuilder().getBuilder(), extensionRegistry);
1982                 bitField0_ |= 0x00001000;
1983                 break;
1984               } // case 154
1985             case 162:
1986               {
1987                 input.readMessage(getMetastoreConfigFieldBuilder().getBuilder(), extensionRegistry);
1988                 bitField0_ |= 0x00002000;
1989                 break;
1990               } // case 162
1991             case 186:
1992               {
1993                 input.readMessage(
1994                     getDataprocMetricConfigFieldBuilder().getBuilder(), extensionRegistry);
1995                 bitField0_ |= 0x00004000;
1996                 break;
1997               } // case 186
1998             case 202:
1999               {
2000                 com.google.cloud.dataproc.v1.AuxiliaryNodeGroup m =
2001                     input.readMessage(
2002                         com.google.cloud.dataproc.v1.AuxiliaryNodeGroup.parser(),
2003                         extensionRegistry);
2004                 if (auxiliaryNodeGroupsBuilder_ == null) {
2005                   ensureAuxiliaryNodeGroupsIsMutable();
2006                   auxiliaryNodeGroups_.add(m);
2007                 } else {
2008                   auxiliaryNodeGroupsBuilder_.addMessage(m);
2009                 }
2010                 break;
2011               } // case 202
2012             default:
2013               {
2014                 if (!super.parseUnknownField(input, extensionRegistry, tag)) {
2015                   done = true; // was an endgroup tag
2016                 }
2017                 break;
2018               } // default:
2019           } // switch (tag)
2020         } // while (!done)
2021       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
2022         throw e.unwrapIOException();
2023       } finally {
2024         onChanged();
2025       } // finally
2026       return this;
2027     }
2028 
2029     private int bitField0_;
2030 
2031     private java.lang.Object configBucket_ = "";
2032     /**
2033      *
2034      *
2035      * <pre>
2036      * Optional. A Cloud Storage bucket used to stage job
2037      * dependencies, config files, and job driver console output.
2038      * If you do not specify a staging bucket, Cloud
2039      * Dataproc will determine a Cloud Storage location (US,
2040      * ASIA, or EU) for your cluster's staging bucket according to the
2041      * Compute Engine zone where your cluster is deployed, and then create
2042      * and manage this project-level, per-location bucket (see
2043      * [Dataproc staging and temp
2044      * buckets](https://cloud.google.com/dataproc/docs/concepts/configuring-clusters/staging-bucket)).
2045      * **This field requires a Cloud Storage bucket name, not a `gs://...` URI to
2046      * a Cloud Storage bucket.**
2047      * </pre>
2048      *
2049      * <code>string config_bucket = 1 [(.google.api.field_behavior) = OPTIONAL];</code>
2050      *
2051      * @return The configBucket.
2052      */
getConfigBucket()2053     public java.lang.String getConfigBucket() {
2054       java.lang.Object ref = configBucket_;
2055       if (!(ref instanceof java.lang.String)) {
2056         com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
2057         java.lang.String s = bs.toStringUtf8();
2058         configBucket_ = s;
2059         return s;
2060       } else {
2061         return (java.lang.String) ref;
2062       }
2063     }
2064     /**
2065      *
2066      *
2067      * <pre>
2068      * Optional. A Cloud Storage bucket used to stage job
2069      * dependencies, config files, and job driver console output.
2070      * If you do not specify a staging bucket, Cloud
2071      * Dataproc will determine a Cloud Storage location (US,
2072      * ASIA, or EU) for your cluster's staging bucket according to the
2073      * Compute Engine zone where your cluster is deployed, and then create
2074      * and manage this project-level, per-location bucket (see
2075      * [Dataproc staging and temp
2076      * buckets](https://cloud.google.com/dataproc/docs/concepts/configuring-clusters/staging-bucket)).
2077      * **This field requires a Cloud Storage bucket name, not a `gs://...` URI to
2078      * a Cloud Storage bucket.**
2079      * </pre>
2080      *
2081      * <code>string config_bucket = 1 [(.google.api.field_behavior) = OPTIONAL];</code>
2082      *
2083      * @return The bytes for configBucket.
2084      */
getConfigBucketBytes()2085     public com.google.protobuf.ByteString getConfigBucketBytes() {
2086       java.lang.Object ref = configBucket_;
2087       if (ref instanceof String) {
2088         com.google.protobuf.ByteString b =
2089             com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
2090         configBucket_ = b;
2091         return b;
2092       } else {
2093         return (com.google.protobuf.ByteString) ref;
2094       }
2095     }
2096     /**
2097      *
2098      *
2099      * <pre>
2100      * Optional. A Cloud Storage bucket used to stage job
2101      * dependencies, config files, and job driver console output.
2102      * If you do not specify a staging bucket, Cloud
2103      * Dataproc will determine a Cloud Storage location (US,
2104      * ASIA, or EU) for your cluster's staging bucket according to the
2105      * Compute Engine zone where your cluster is deployed, and then create
2106      * and manage this project-level, per-location bucket (see
2107      * [Dataproc staging and temp
2108      * buckets](https://cloud.google.com/dataproc/docs/concepts/configuring-clusters/staging-bucket)).
2109      * **This field requires a Cloud Storage bucket name, not a `gs://...` URI to
2110      * a Cloud Storage bucket.**
2111      * </pre>
2112      *
2113      * <code>string config_bucket = 1 [(.google.api.field_behavior) = OPTIONAL];</code>
2114      *
2115      * @param value The configBucket to set.
2116      * @return This builder for chaining.
2117      */
setConfigBucket(java.lang.String value)2118     public Builder setConfigBucket(java.lang.String value) {
2119       if (value == null) {
2120         throw new NullPointerException();
2121       }
2122       configBucket_ = value;
2123       bitField0_ |= 0x00000001;
2124       onChanged();
2125       return this;
2126     }
2127     /**
2128      *
2129      *
2130      * <pre>
2131      * Optional. A Cloud Storage bucket used to stage job
2132      * dependencies, config files, and job driver console output.
2133      * If you do not specify a staging bucket, Cloud
2134      * Dataproc will determine a Cloud Storage location (US,
2135      * ASIA, or EU) for your cluster's staging bucket according to the
2136      * Compute Engine zone where your cluster is deployed, and then create
2137      * and manage this project-level, per-location bucket (see
2138      * [Dataproc staging and temp
2139      * buckets](https://cloud.google.com/dataproc/docs/concepts/configuring-clusters/staging-bucket)).
2140      * **This field requires a Cloud Storage bucket name, not a `gs://...` URI to
2141      * a Cloud Storage bucket.**
2142      * </pre>
2143      *
2144      * <code>string config_bucket = 1 [(.google.api.field_behavior) = OPTIONAL];</code>
2145      *
2146      * @return This builder for chaining.
2147      */
clearConfigBucket()2148     public Builder clearConfigBucket() {
2149       configBucket_ = getDefaultInstance().getConfigBucket();
2150       bitField0_ = (bitField0_ & ~0x00000001);
2151       onChanged();
2152       return this;
2153     }
2154     /**
2155      *
2156      *
2157      * <pre>
2158      * Optional. A Cloud Storage bucket used to stage job
2159      * dependencies, config files, and job driver console output.
2160      * If you do not specify a staging bucket, Cloud
2161      * Dataproc will determine a Cloud Storage location (US,
2162      * ASIA, or EU) for your cluster's staging bucket according to the
2163      * Compute Engine zone where your cluster is deployed, and then create
2164      * and manage this project-level, per-location bucket (see
2165      * [Dataproc staging and temp
2166      * buckets](https://cloud.google.com/dataproc/docs/concepts/configuring-clusters/staging-bucket)).
2167      * **This field requires a Cloud Storage bucket name, not a `gs://...` URI to
2168      * a Cloud Storage bucket.**
2169      * </pre>
2170      *
2171      * <code>string config_bucket = 1 [(.google.api.field_behavior) = OPTIONAL];</code>
2172      *
2173      * @param value The bytes for configBucket to set.
2174      * @return This builder for chaining.
2175      */
setConfigBucketBytes(com.google.protobuf.ByteString value)2176     public Builder setConfigBucketBytes(com.google.protobuf.ByteString value) {
2177       if (value == null) {
2178         throw new NullPointerException();
2179       }
2180       checkByteStringIsUtf8(value);
2181       configBucket_ = value;
2182       bitField0_ |= 0x00000001;
2183       onChanged();
2184       return this;
2185     }
2186 
2187     private java.lang.Object tempBucket_ = "";
2188     /**
2189      *
2190      *
2191      * <pre>
2192      * Optional. A Cloud Storage bucket used to store ephemeral cluster and jobs
2193      * data, such as Spark and MapReduce history files. If you do not specify a
2194      * temp bucket, Dataproc will determine a Cloud Storage location (US, ASIA, or
2195      * EU) for your cluster's temp bucket according to the Compute Engine zone
2196      * where your cluster is deployed, and then create and manage this
2197      * project-level, per-location bucket. The default bucket has a TTL of 90
2198      * days, but you can use any TTL (or none) if you specify a bucket (see
2199      * [Dataproc staging and temp
2200      * buckets](https://cloud.google.com/dataproc/docs/concepts/configuring-clusters/staging-bucket)).
2201      * **This field requires a Cloud Storage bucket name, not a `gs://...` URI to
2202      * a Cloud Storage bucket.**
2203      * </pre>
2204      *
2205      * <code>string temp_bucket = 2 [(.google.api.field_behavior) = OPTIONAL];</code>
2206      *
2207      * @return The tempBucket.
2208      */
getTempBucket()2209     public java.lang.String getTempBucket() {
2210       java.lang.Object ref = tempBucket_;
2211       if (!(ref instanceof java.lang.String)) {
2212         com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
2213         java.lang.String s = bs.toStringUtf8();
2214         tempBucket_ = s;
2215         return s;
2216       } else {
2217         return (java.lang.String) ref;
2218       }
2219     }
2220     /**
2221      *
2222      *
2223      * <pre>
2224      * Optional. A Cloud Storage bucket used to store ephemeral cluster and jobs
2225      * data, such as Spark and MapReduce history files. If you do not specify a
2226      * temp bucket, Dataproc will determine a Cloud Storage location (US, ASIA, or
2227      * EU) for your cluster's temp bucket according to the Compute Engine zone
2228      * where your cluster is deployed, and then create and manage this
2229      * project-level, per-location bucket. The default bucket has a TTL of 90
2230      * days, but you can use any TTL (or none) if you specify a bucket (see
2231      * [Dataproc staging and temp
2232      * buckets](https://cloud.google.com/dataproc/docs/concepts/configuring-clusters/staging-bucket)).
2233      * **This field requires a Cloud Storage bucket name, not a `gs://...` URI to
2234      * a Cloud Storage bucket.**
2235      * </pre>
2236      *
2237      * <code>string temp_bucket = 2 [(.google.api.field_behavior) = OPTIONAL];</code>
2238      *
2239      * @return The bytes for tempBucket.
2240      */
getTempBucketBytes()2241     public com.google.protobuf.ByteString getTempBucketBytes() {
2242       java.lang.Object ref = tempBucket_;
2243       if (ref instanceof String) {
2244         com.google.protobuf.ByteString b =
2245             com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
2246         tempBucket_ = b;
2247         return b;
2248       } else {
2249         return (com.google.protobuf.ByteString) ref;
2250       }
2251     }
2252     /**
2253      *
2254      *
2255      * <pre>
2256      * Optional. A Cloud Storage bucket used to store ephemeral cluster and jobs
2257      * data, such as Spark and MapReduce history files. If you do not specify a
2258      * temp bucket, Dataproc will determine a Cloud Storage location (US, ASIA, or
2259      * EU) for your cluster's temp bucket according to the Compute Engine zone
2260      * where your cluster is deployed, and then create and manage this
2261      * project-level, per-location bucket. The default bucket has a TTL of 90
2262      * days, but you can use any TTL (or none) if you specify a bucket (see
2263      * [Dataproc staging and temp
2264      * buckets](https://cloud.google.com/dataproc/docs/concepts/configuring-clusters/staging-bucket)).
2265      * **This field requires a Cloud Storage bucket name, not a `gs://...` URI to
2266      * a Cloud Storage bucket.**
2267      * </pre>
2268      *
2269      * <code>string temp_bucket = 2 [(.google.api.field_behavior) = OPTIONAL];</code>
2270      *
2271      * @param value The tempBucket to set.
2272      * @return This builder for chaining.
2273      */
setTempBucket(java.lang.String value)2274     public Builder setTempBucket(java.lang.String value) {
2275       if (value == null) {
2276         throw new NullPointerException();
2277       }
2278       tempBucket_ = value;
2279       bitField0_ |= 0x00000002;
2280       onChanged();
2281       return this;
2282     }
2283     /**
2284      *
2285      *
2286      * <pre>
2287      * Optional. A Cloud Storage bucket used to store ephemeral cluster and jobs
2288      * data, such as Spark and MapReduce history files. If you do not specify a
2289      * temp bucket, Dataproc will determine a Cloud Storage location (US, ASIA, or
2290      * EU) for your cluster's temp bucket according to the Compute Engine zone
2291      * where your cluster is deployed, and then create and manage this
2292      * project-level, per-location bucket. The default bucket has a TTL of 90
2293      * days, but you can use any TTL (or none) if you specify a bucket (see
2294      * [Dataproc staging and temp
2295      * buckets](https://cloud.google.com/dataproc/docs/concepts/configuring-clusters/staging-bucket)).
2296      * **This field requires a Cloud Storage bucket name, not a `gs://...` URI to
2297      * a Cloud Storage bucket.**
2298      * </pre>
2299      *
2300      * <code>string temp_bucket = 2 [(.google.api.field_behavior) = OPTIONAL];</code>
2301      *
2302      * @return This builder for chaining.
2303      */
clearTempBucket()2304     public Builder clearTempBucket() {
2305       tempBucket_ = getDefaultInstance().getTempBucket();
2306       bitField0_ = (bitField0_ & ~0x00000002);
2307       onChanged();
2308       return this;
2309     }
2310     /**
2311      *
2312      *
2313      * <pre>
2314      * Optional. A Cloud Storage bucket used to store ephemeral cluster and jobs
2315      * data, such as Spark and MapReduce history files. If you do not specify a
2316      * temp bucket, Dataproc will determine a Cloud Storage location (US, ASIA, or
2317      * EU) for your cluster's temp bucket according to the Compute Engine zone
2318      * where your cluster is deployed, and then create and manage this
2319      * project-level, per-location bucket. The default bucket has a TTL of 90
2320      * days, but you can use any TTL (or none) if you specify a bucket (see
2321      * [Dataproc staging and temp
2322      * buckets](https://cloud.google.com/dataproc/docs/concepts/configuring-clusters/staging-bucket)).
2323      * **This field requires a Cloud Storage bucket name, not a `gs://...` URI to
2324      * a Cloud Storage bucket.**
2325      * </pre>
2326      *
2327      * <code>string temp_bucket = 2 [(.google.api.field_behavior) = OPTIONAL];</code>
2328      *
2329      * @param value The bytes for tempBucket to set.
2330      * @return This builder for chaining.
2331      */
setTempBucketBytes(com.google.protobuf.ByteString value)2332     public Builder setTempBucketBytes(com.google.protobuf.ByteString value) {
2333       if (value == null) {
2334         throw new NullPointerException();
2335       }
2336       checkByteStringIsUtf8(value);
2337       tempBucket_ = value;
2338       bitField0_ |= 0x00000002;
2339       onChanged();
2340       return this;
2341     }
2342 
2343     private com.google.cloud.dataproc.v1.GceClusterConfig gceClusterConfig_;
2344     private com.google.protobuf.SingleFieldBuilderV3<
2345             com.google.cloud.dataproc.v1.GceClusterConfig,
2346             com.google.cloud.dataproc.v1.GceClusterConfig.Builder,
2347             com.google.cloud.dataproc.v1.GceClusterConfigOrBuilder>
2348         gceClusterConfigBuilder_;
2349     /**
2350      *
2351      *
2352      * <pre>
2353      * Optional. The shared Compute Engine config settings for
2354      * all instances in a cluster.
2355      * </pre>
2356      *
2357      * <code>
2358      * .google.cloud.dataproc.v1.GceClusterConfig gce_cluster_config = 8 [(.google.api.field_behavior) = OPTIONAL];
2359      * </code>
2360      *
2361      * @return Whether the gceClusterConfig field is set.
2362      */
hasGceClusterConfig()2363     public boolean hasGceClusterConfig() {
2364       return ((bitField0_ & 0x00000004) != 0);
2365     }
2366     /**
2367      *
2368      *
2369      * <pre>
2370      * Optional. The shared Compute Engine config settings for
2371      * all instances in a cluster.
2372      * </pre>
2373      *
2374      * <code>
2375      * .google.cloud.dataproc.v1.GceClusterConfig gce_cluster_config = 8 [(.google.api.field_behavior) = OPTIONAL];
2376      * </code>
2377      *
2378      * @return The gceClusterConfig.
2379      */
getGceClusterConfig()2380     public com.google.cloud.dataproc.v1.GceClusterConfig getGceClusterConfig() {
2381       if (gceClusterConfigBuilder_ == null) {
2382         return gceClusterConfig_ == null
2383             ? com.google.cloud.dataproc.v1.GceClusterConfig.getDefaultInstance()
2384             : gceClusterConfig_;
2385       } else {
2386         return gceClusterConfigBuilder_.getMessage();
2387       }
2388     }
2389     /**
2390      *
2391      *
2392      * <pre>
2393      * Optional. The shared Compute Engine config settings for
2394      * all instances in a cluster.
2395      * </pre>
2396      *
2397      * <code>
2398      * .google.cloud.dataproc.v1.GceClusterConfig gce_cluster_config = 8 [(.google.api.field_behavior) = OPTIONAL];
2399      * </code>
2400      */
setGceClusterConfig(com.google.cloud.dataproc.v1.GceClusterConfig value)2401     public Builder setGceClusterConfig(com.google.cloud.dataproc.v1.GceClusterConfig value) {
2402       if (gceClusterConfigBuilder_ == null) {
2403         if (value == null) {
2404           throw new NullPointerException();
2405         }
2406         gceClusterConfig_ = value;
2407       } else {
2408         gceClusterConfigBuilder_.setMessage(value);
2409       }
2410       bitField0_ |= 0x00000004;
2411       onChanged();
2412       return this;
2413     }
2414     /**
2415      *
2416      *
2417      * <pre>
2418      * Optional. The shared Compute Engine config settings for
2419      * all instances in a cluster.
2420      * </pre>
2421      *
2422      * <code>
2423      * .google.cloud.dataproc.v1.GceClusterConfig gce_cluster_config = 8 [(.google.api.field_behavior) = OPTIONAL];
2424      * </code>
2425      */
setGceClusterConfig( com.google.cloud.dataproc.v1.GceClusterConfig.Builder builderForValue)2426     public Builder setGceClusterConfig(
2427         com.google.cloud.dataproc.v1.GceClusterConfig.Builder builderForValue) {
2428       if (gceClusterConfigBuilder_ == null) {
2429         gceClusterConfig_ = builderForValue.build();
2430       } else {
2431         gceClusterConfigBuilder_.setMessage(builderForValue.build());
2432       }
2433       bitField0_ |= 0x00000004;
2434       onChanged();
2435       return this;
2436     }
2437     /**
2438      *
2439      *
2440      * <pre>
2441      * Optional. The shared Compute Engine config settings for
2442      * all instances in a cluster.
2443      * </pre>
2444      *
2445      * <code>
2446      * .google.cloud.dataproc.v1.GceClusterConfig gce_cluster_config = 8 [(.google.api.field_behavior) = OPTIONAL];
2447      * </code>
2448      */
mergeGceClusterConfig(com.google.cloud.dataproc.v1.GceClusterConfig value)2449     public Builder mergeGceClusterConfig(com.google.cloud.dataproc.v1.GceClusterConfig value) {
2450       if (gceClusterConfigBuilder_ == null) {
2451         if (((bitField0_ & 0x00000004) != 0)
2452             && gceClusterConfig_ != null
2453             && gceClusterConfig_
2454                 != com.google.cloud.dataproc.v1.GceClusterConfig.getDefaultInstance()) {
2455           getGceClusterConfigBuilder().mergeFrom(value);
2456         } else {
2457           gceClusterConfig_ = value;
2458         }
2459       } else {
2460         gceClusterConfigBuilder_.mergeFrom(value);
2461       }
2462       bitField0_ |= 0x00000004;
2463       onChanged();
2464       return this;
2465     }
2466     /**
2467      *
2468      *
2469      * <pre>
2470      * Optional. The shared Compute Engine config settings for
2471      * all instances in a cluster.
2472      * </pre>
2473      *
2474      * <code>
2475      * .google.cloud.dataproc.v1.GceClusterConfig gce_cluster_config = 8 [(.google.api.field_behavior) = OPTIONAL];
2476      * </code>
2477      */
clearGceClusterConfig()2478     public Builder clearGceClusterConfig() {
2479       bitField0_ = (bitField0_ & ~0x00000004);
2480       gceClusterConfig_ = null;
2481       if (gceClusterConfigBuilder_ != null) {
2482         gceClusterConfigBuilder_.dispose();
2483         gceClusterConfigBuilder_ = null;
2484       }
2485       onChanged();
2486       return this;
2487     }
2488     /**
2489      *
2490      *
2491      * <pre>
2492      * Optional. The shared Compute Engine config settings for
2493      * all instances in a cluster.
2494      * </pre>
2495      *
2496      * <code>
2497      * .google.cloud.dataproc.v1.GceClusterConfig gce_cluster_config = 8 [(.google.api.field_behavior) = OPTIONAL];
2498      * </code>
2499      */
getGceClusterConfigBuilder()2500     public com.google.cloud.dataproc.v1.GceClusterConfig.Builder getGceClusterConfigBuilder() {
2501       bitField0_ |= 0x00000004;
2502       onChanged();
2503       return getGceClusterConfigFieldBuilder().getBuilder();
2504     }
2505     /**
2506      *
2507      *
2508      * <pre>
2509      * Optional. The shared Compute Engine config settings for
2510      * all instances in a cluster.
2511      * </pre>
2512      *
2513      * <code>
2514      * .google.cloud.dataproc.v1.GceClusterConfig gce_cluster_config = 8 [(.google.api.field_behavior) = OPTIONAL];
2515      * </code>
2516      */
getGceClusterConfigOrBuilder()2517     public com.google.cloud.dataproc.v1.GceClusterConfigOrBuilder getGceClusterConfigOrBuilder() {
2518       if (gceClusterConfigBuilder_ != null) {
2519         return gceClusterConfigBuilder_.getMessageOrBuilder();
2520       } else {
2521         return gceClusterConfig_ == null
2522             ? com.google.cloud.dataproc.v1.GceClusterConfig.getDefaultInstance()
2523             : gceClusterConfig_;
2524       }
2525     }
2526     /**
2527      *
2528      *
2529      * <pre>
2530      * Optional. The shared Compute Engine config settings for
2531      * all instances in a cluster.
2532      * </pre>
2533      *
2534      * <code>
2535      * .google.cloud.dataproc.v1.GceClusterConfig gce_cluster_config = 8 [(.google.api.field_behavior) = OPTIONAL];
2536      * </code>
2537      */
2538     private com.google.protobuf.SingleFieldBuilderV3<
2539             com.google.cloud.dataproc.v1.GceClusterConfig,
2540             com.google.cloud.dataproc.v1.GceClusterConfig.Builder,
2541             com.google.cloud.dataproc.v1.GceClusterConfigOrBuilder>
getGceClusterConfigFieldBuilder()2542         getGceClusterConfigFieldBuilder() {
2543       if (gceClusterConfigBuilder_ == null) {
2544         gceClusterConfigBuilder_ =
2545             new com.google.protobuf.SingleFieldBuilderV3<
2546                 com.google.cloud.dataproc.v1.GceClusterConfig,
2547                 com.google.cloud.dataproc.v1.GceClusterConfig.Builder,
2548                 com.google.cloud.dataproc.v1.GceClusterConfigOrBuilder>(
2549                 getGceClusterConfig(), getParentForChildren(), isClean());
2550         gceClusterConfig_ = null;
2551       }
2552       return gceClusterConfigBuilder_;
2553     }
2554 
2555     private com.google.cloud.dataproc.v1.InstanceGroupConfig masterConfig_;
2556     private com.google.protobuf.SingleFieldBuilderV3<
2557             com.google.cloud.dataproc.v1.InstanceGroupConfig,
2558             com.google.cloud.dataproc.v1.InstanceGroupConfig.Builder,
2559             com.google.cloud.dataproc.v1.InstanceGroupConfigOrBuilder>
2560         masterConfigBuilder_;
2561     /**
2562      *
2563      *
2564      * <pre>
2565      * Optional. The Compute Engine config settings for
2566      * the cluster's master instance.
2567      * </pre>
2568      *
2569      * <code>
2570      * .google.cloud.dataproc.v1.InstanceGroupConfig master_config = 9 [(.google.api.field_behavior) = OPTIONAL];
2571      * </code>
2572      *
2573      * @return Whether the masterConfig field is set.
2574      */
hasMasterConfig()2575     public boolean hasMasterConfig() {
2576       return ((bitField0_ & 0x00000008) != 0);
2577     }
2578     /**
2579      *
2580      *
2581      * <pre>
2582      * Optional. The Compute Engine config settings for
2583      * the cluster's master instance.
2584      * </pre>
2585      *
2586      * <code>
2587      * .google.cloud.dataproc.v1.InstanceGroupConfig master_config = 9 [(.google.api.field_behavior) = OPTIONAL];
2588      * </code>
2589      *
2590      * @return The masterConfig.
2591      */
getMasterConfig()2592     public com.google.cloud.dataproc.v1.InstanceGroupConfig getMasterConfig() {
2593       if (masterConfigBuilder_ == null) {
2594         return masterConfig_ == null
2595             ? com.google.cloud.dataproc.v1.InstanceGroupConfig.getDefaultInstance()
2596             : masterConfig_;
2597       } else {
2598         return masterConfigBuilder_.getMessage();
2599       }
2600     }
2601     /**
2602      *
2603      *
2604      * <pre>
2605      * Optional. The Compute Engine config settings for
2606      * the cluster's master instance.
2607      * </pre>
2608      *
2609      * <code>
2610      * .google.cloud.dataproc.v1.InstanceGroupConfig master_config = 9 [(.google.api.field_behavior) = OPTIONAL];
2611      * </code>
2612      */
setMasterConfig(com.google.cloud.dataproc.v1.InstanceGroupConfig value)2613     public Builder setMasterConfig(com.google.cloud.dataproc.v1.InstanceGroupConfig value) {
2614       if (masterConfigBuilder_ == null) {
2615         if (value == null) {
2616           throw new NullPointerException();
2617         }
2618         masterConfig_ = value;
2619       } else {
2620         masterConfigBuilder_.setMessage(value);
2621       }
2622       bitField0_ |= 0x00000008;
2623       onChanged();
2624       return this;
2625     }
2626     /**
2627      *
2628      *
2629      * <pre>
2630      * Optional. The Compute Engine config settings for
2631      * the cluster's master instance.
2632      * </pre>
2633      *
2634      * <code>
2635      * .google.cloud.dataproc.v1.InstanceGroupConfig master_config = 9 [(.google.api.field_behavior) = OPTIONAL];
2636      * </code>
2637      */
setMasterConfig( com.google.cloud.dataproc.v1.InstanceGroupConfig.Builder builderForValue)2638     public Builder setMasterConfig(
2639         com.google.cloud.dataproc.v1.InstanceGroupConfig.Builder builderForValue) {
2640       if (masterConfigBuilder_ == null) {
2641         masterConfig_ = builderForValue.build();
2642       } else {
2643         masterConfigBuilder_.setMessage(builderForValue.build());
2644       }
2645       bitField0_ |= 0x00000008;
2646       onChanged();
2647       return this;
2648     }
2649     /**
2650      *
2651      *
2652      * <pre>
2653      * Optional. The Compute Engine config settings for
2654      * the cluster's master instance.
2655      * </pre>
2656      *
2657      * <code>
2658      * .google.cloud.dataproc.v1.InstanceGroupConfig master_config = 9 [(.google.api.field_behavior) = OPTIONAL];
2659      * </code>
2660      */
mergeMasterConfig(com.google.cloud.dataproc.v1.InstanceGroupConfig value)2661     public Builder mergeMasterConfig(com.google.cloud.dataproc.v1.InstanceGroupConfig value) {
2662       if (masterConfigBuilder_ == null) {
2663         if (((bitField0_ & 0x00000008) != 0)
2664             && masterConfig_ != null
2665             && masterConfig_
2666                 != com.google.cloud.dataproc.v1.InstanceGroupConfig.getDefaultInstance()) {
2667           getMasterConfigBuilder().mergeFrom(value);
2668         } else {
2669           masterConfig_ = value;
2670         }
2671       } else {
2672         masterConfigBuilder_.mergeFrom(value);
2673       }
2674       bitField0_ |= 0x00000008;
2675       onChanged();
2676       return this;
2677     }
2678     /**
2679      *
2680      *
2681      * <pre>
2682      * Optional. The Compute Engine config settings for
2683      * the cluster's master instance.
2684      * </pre>
2685      *
2686      * <code>
2687      * .google.cloud.dataproc.v1.InstanceGroupConfig master_config = 9 [(.google.api.field_behavior) = OPTIONAL];
2688      * </code>
2689      */
clearMasterConfig()2690     public Builder clearMasterConfig() {
2691       bitField0_ = (bitField0_ & ~0x00000008);
2692       masterConfig_ = null;
2693       if (masterConfigBuilder_ != null) {
2694         masterConfigBuilder_.dispose();
2695         masterConfigBuilder_ = null;
2696       }
2697       onChanged();
2698       return this;
2699     }
2700     /**
2701      *
2702      *
2703      * <pre>
2704      * Optional. The Compute Engine config settings for
2705      * the cluster's master instance.
2706      * </pre>
2707      *
2708      * <code>
2709      * .google.cloud.dataproc.v1.InstanceGroupConfig master_config = 9 [(.google.api.field_behavior) = OPTIONAL];
2710      * </code>
2711      */
getMasterConfigBuilder()2712     public com.google.cloud.dataproc.v1.InstanceGroupConfig.Builder getMasterConfigBuilder() {
2713       bitField0_ |= 0x00000008;
2714       onChanged();
2715       return getMasterConfigFieldBuilder().getBuilder();
2716     }
2717     /**
2718      *
2719      *
2720      * <pre>
2721      * Optional. The Compute Engine config settings for
2722      * the cluster's master instance.
2723      * </pre>
2724      *
2725      * <code>
2726      * .google.cloud.dataproc.v1.InstanceGroupConfig master_config = 9 [(.google.api.field_behavior) = OPTIONAL];
2727      * </code>
2728      */
getMasterConfigOrBuilder()2729     public com.google.cloud.dataproc.v1.InstanceGroupConfigOrBuilder getMasterConfigOrBuilder() {
2730       if (masterConfigBuilder_ != null) {
2731         return masterConfigBuilder_.getMessageOrBuilder();
2732       } else {
2733         return masterConfig_ == null
2734             ? com.google.cloud.dataproc.v1.InstanceGroupConfig.getDefaultInstance()
2735             : masterConfig_;
2736       }
2737     }
2738     /**
2739      *
2740      *
2741      * <pre>
2742      * Optional. The Compute Engine config settings for
2743      * the cluster's master instance.
2744      * </pre>
2745      *
2746      * <code>
2747      * .google.cloud.dataproc.v1.InstanceGroupConfig master_config = 9 [(.google.api.field_behavior) = OPTIONAL];
2748      * </code>
2749      */
2750     private com.google.protobuf.SingleFieldBuilderV3<
2751             com.google.cloud.dataproc.v1.InstanceGroupConfig,
2752             com.google.cloud.dataproc.v1.InstanceGroupConfig.Builder,
2753             com.google.cloud.dataproc.v1.InstanceGroupConfigOrBuilder>
getMasterConfigFieldBuilder()2754         getMasterConfigFieldBuilder() {
2755       if (masterConfigBuilder_ == null) {
2756         masterConfigBuilder_ =
2757             new com.google.protobuf.SingleFieldBuilderV3<
2758                 com.google.cloud.dataproc.v1.InstanceGroupConfig,
2759                 com.google.cloud.dataproc.v1.InstanceGroupConfig.Builder,
2760                 com.google.cloud.dataproc.v1.InstanceGroupConfigOrBuilder>(
2761                 getMasterConfig(), getParentForChildren(), isClean());
2762         masterConfig_ = null;
2763       }
2764       return masterConfigBuilder_;
2765     }
2766 
2767     private com.google.cloud.dataproc.v1.InstanceGroupConfig workerConfig_;
2768     private com.google.protobuf.SingleFieldBuilderV3<
2769             com.google.cloud.dataproc.v1.InstanceGroupConfig,
2770             com.google.cloud.dataproc.v1.InstanceGroupConfig.Builder,
2771             com.google.cloud.dataproc.v1.InstanceGroupConfigOrBuilder>
2772         workerConfigBuilder_;
2773     /**
2774      *
2775      *
2776      * <pre>
2777      * Optional. The Compute Engine config settings for
2778      * the cluster's worker instances.
2779      * </pre>
2780      *
2781      * <code>
2782      * .google.cloud.dataproc.v1.InstanceGroupConfig worker_config = 10 [(.google.api.field_behavior) = OPTIONAL];
2783      * </code>
2784      *
2785      * @return Whether the workerConfig field is set.
2786      */
hasWorkerConfig()2787     public boolean hasWorkerConfig() {
2788       return ((bitField0_ & 0x00000010) != 0);
2789     }
2790     /**
2791      *
2792      *
2793      * <pre>
2794      * Optional. The Compute Engine config settings for
2795      * the cluster's worker instances.
2796      * </pre>
2797      *
2798      * <code>
2799      * .google.cloud.dataproc.v1.InstanceGroupConfig worker_config = 10 [(.google.api.field_behavior) = OPTIONAL];
2800      * </code>
2801      *
2802      * @return The workerConfig.
2803      */
getWorkerConfig()2804     public com.google.cloud.dataproc.v1.InstanceGroupConfig getWorkerConfig() {
2805       if (workerConfigBuilder_ == null) {
2806         return workerConfig_ == null
2807             ? com.google.cloud.dataproc.v1.InstanceGroupConfig.getDefaultInstance()
2808             : workerConfig_;
2809       } else {
2810         return workerConfigBuilder_.getMessage();
2811       }
2812     }
2813     /**
2814      *
2815      *
2816      * <pre>
2817      * Optional. The Compute Engine config settings for
2818      * the cluster's worker instances.
2819      * </pre>
2820      *
2821      * <code>
2822      * .google.cloud.dataproc.v1.InstanceGroupConfig worker_config = 10 [(.google.api.field_behavior) = OPTIONAL];
2823      * </code>
2824      */
setWorkerConfig(com.google.cloud.dataproc.v1.InstanceGroupConfig value)2825     public Builder setWorkerConfig(com.google.cloud.dataproc.v1.InstanceGroupConfig value) {
2826       if (workerConfigBuilder_ == null) {
2827         if (value == null) {
2828           throw new NullPointerException();
2829         }
2830         workerConfig_ = value;
2831       } else {
2832         workerConfigBuilder_.setMessage(value);
2833       }
2834       bitField0_ |= 0x00000010;
2835       onChanged();
2836       return this;
2837     }
2838     /**
2839      *
2840      *
2841      * <pre>
2842      * Optional. The Compute Engine config settings for
2843      * the cluster's worker instances.
2844      * </pre>
2845      *
2846      * <code>
2847      * .google.cloud.dataproc.v1.InstanceGroupConfig worker_config = 10 [(.google.api.field_behavior) = OPTIONAL];
2848      * </code>
2849      */
setWorkerConfig( com.google.cloud.dataproc.v1.InstanceGroupConfig.Builder builderForValue)2850     public Builder setWorkerConfig(
2851         com.google.cloud.dataproc.v1.InstanceGroupConfig.Builder builderForValue) {
2852       if (workerConfigBuilder_ == null) {
2853         workerConfig_ = builderForValue.build();
2854       } else {
2855         workerConfigBuilder_.setMessage(builderForValue.build());
2856       }
2857       bitField0_ |= 0x00000010;
2858       onChanged();
2859       return this;
2860     }
2861     /**
2862      *
2863      *
2864      * <pre>
2865      * Optional. The Compute Engine config settings for
2866      * the cluster's worker instances.
2867      * </pre>
2868      *
2869      * <code>
2870      * .google.cloud.dataproc.v1.InstanceGroupConfig worker_config = 10 [(.google.api.field_behavior) = OPTIONAL];
2871      * </code>
2872      */
mergeWorkerConfig(com.google.cloud.dataproc.v1.InstanceGroupConfig value)2873     public Builder mergeWorkerConfig(com.google.cloud.dataproc.v1.InstanceGroupConfig value) {
2874       if (workerConfigBuilder_ == null) {
2875         if (((bitField0_ & 0x00000010) != 0)
2876             && workerConfig_ != null
2877             && workerConfig_
2878                 != com.google.cloud.dataproc.v1.InstanceGroupConfig.getDefaultInstance()) {
2879           getWorkerConfigBuilder().mergeFrom(value);
2880         } else {
2881           workerConfig_ = value;
2882         }
2883       } else {
2884         workerConfigBuilder_.mergeFrom(value);
2885       }
2886       bitField0_ |= 0x00000010;
2887       onChanged();
2888       return this;
2889     }
2890     /**
2891      *
2892      *
2893      * <pre>
2894      * Optional. The Compute Engine config settings for
2895      * the cluster's worker instances.
2896      * </pre>
2897      *
2898      * <code>
2899      * .google.cloud.dataproc.v1.InstanceGroupConfig worker_config = 10 [(.google.api.field_behavior) = OPTIONAL];
2900      * </code>
2901      */
clearWorkerConfig()2902     public Builder clearWorkerConfig() {
2903       bitField0_ = (bitField0_ & ~0x00000010);
2904       workerConfig_ = null;
2905       if (workerConfigBuilder_ != null) {
2906         workerConfigBuilder_.dispose();
2907         workerConfigBuilder_ = null;
2908       }
2909       onChanged();
2910       return this;
2911     }
2912     /**
2913      *
2914      *
2915      * <pre>
2916      * Optional. The Compute Engine config settings for
2917      * the cluster's worker instances.
2918      * </pre>
2919      *
2920      * <code>
2921      * .google.cloud.dataproc.v1.InstanceGroupConfig worker_config = 10 [(.google.api.field_behavior) = OPTIONAL];
2922      * </code>
2923      */
getWorkerConfigBuilder()2924     public com.google.cloud.dataproc.v1.InstanceGroupConfig.Builder getWorkerConfigBuilder() {
2925       bitField0_ |= 0x00000010;
2926       onChanged();
2927       return getWorkerConfigFieldBuilder().getBuilder();
2928     }
2929     /**
2930      *
2931      *
2932      * <pre>
2933      * Optional. The Compute Engine config settings for
2934      * the cluster's worker instances.
2935      * </pre>
2936      *
2937      * <code>
2938      * .google.cloud.dataproc.v1.InstanceGroupConfig worker_config = 10 [(.google.api.field_behavior) = OPTIONAL];
2939      * </code>
2940      */
getWorkerConfigOrBuilder()2941     public com.google.cloud.dataproc.v1.InstanceGroupConfigOrBuilder getWorkerConfigOrBuilder() {
2942       if (workerConfigBuilder_ != null) {
2943         return workerConfigBuilder_.getMessageOrBuilder();
2944       } else {
2945         return workerConfig_ == null
2946             ? com.google.cloud.dataproc.v1.InstanceGroupConfig.getDefaultInstance()
2947             : workerConfig_;
2948       }
2949     }
2950     /**
2951      *
2952      *
2953      * <pre>
2954      * Optional. The Compute Engine config settings for
2955      * the cluster's worker instances.
2956      * </pre>
2957      *
2958      * <code>
2959      * .google.cloud.dataproc.v1.InstanceGroupConfig worker_config = 10 [(.google.api.field_behavior) = OPTIONAL];
2960      * </code>
2961      */
2962     private com.google.protobuf.SingleFieldBuilderV3<
2963             com.google.cloud.dataproc.v1.InstanceGroupConfig,
2964             com.google.cloud.dataproc.v1.InstanceGroupConfig.Builder,
2965             com.google.cloud.dataproc.v1.InstanceGroupConfigOrBuilder>
getWorkerConfigFieldBuilder()2966         getWorkerConfigFieldBuilder() {
2967       if (workerConfigBuilder_ == null) {
2968         workerConfigBuilder_ =
2969             new com.google.protobuf.SingleFieldBuilderV3<
2970                 com.google.cloud.dataproc.v1.InstanceGroupConfig,
2971                 com.google.cloud.dataproc.v1.InstanceGroupConfig.Builder,
2972                 com.google.cloud.dataproc.v1.InstanceGroupConfigOrBuilder>(
2973                 getWorkerConfig(), getParentForChildren(), isClean());
2974         workerConfig_ = null;
2975       }
2976       return workerConfigBuilder_;
2977     }
2978 
2979     private com.google.cloud.dataproc.v1.InstanceGroupConfig secondaryWorkerConfig_;
2980     private com.google.protobuf.SingleFieldBuilderV3<
2981             com.google.cloud.dataproc.v1.InstanceGroupConfig,
2982             com.google.cloud.dataproc.v1.InstanceGroupConfig.Builder,
2983             com.google.cloud.dataproc.v1.InstanceGroupConfigOrBuilder>
2984         secondaryWorkerConfigBuilder_;
2985     /**
2986      *
2987      *
2988      * <pre>
2989      * Optional. The Compute Engine config settings for
2990      * a cluster's secondary worker instances
2991      * </pre>
2992      *
2993      * <code>
2994      * .google.cloud.dataproc.v1.InstanceGroupConfig secondary_worker_config = 12 [(.google.api.field_behavior) = OPTIONAL];
2995      * </code>
2996      *
2997      * @return Whether the secondaryWorkerConfig field is set.
2998      */
hasSecondaryWorkerConfig()2999     public boolean hasSecondaryWorkerConfig() {
3000       return ((bitField0_ & 0x00000020) != 0);
3001     }
3002     /**
3003      *
3004      *
3005      * <pre>
3006      * Optional. The Compute Engine config settings for
3007      * a cluster's secondary worker instances
3008      * </pre>
3009      *
3010      * <code>
3011      * .google.cloud.dataproc.v1.InstanceGroupConfig secondary_worker_config = 12 [(.google.api.field_behavior) = OPTIONAL];
3012      * </code>
3013      *
3014      * @return The secondaryWorkerConfig.
3015      */
getSecondaryWorkerConfig()3016     public com.google.cloud.dataproc.v1.InstanceGroupConfig getSecondaryWorkerConfig() {
3017       if (secondaryWorkerConfigBuilder_ == null) {
3018         return secondaryWorkerConfig_ == null
3019             ? com.google.cloud.dataproc.v1.InstanceGroupConfig.getDefaultInstance()
3020             : secondaryWorkerConfig_;
3021       } else {
3022         return secondaryWorkerConfigBuilder_.getMessage();
3023       }
3024     }
3025     /**
3026      *
3027      *
3028      * <pre>
3029      * Optional. The Compute Engine config settings for
3030      * a cluster's secondary worker instances
3031      * </pre>
3032      *
3033      * <code>
3034      * .google.cloud.dataproc.v1.InstanceGroupConfig secondary_worker_config = 12 [(.google.api.field_behavior) = OPTIONAL];
3035      * </code>
3036      */
setSecondaryWorkerConfig( com.google.cloud.dataproc.v1.InstanceGroupConfig value)3037     public Builder setSecondaryWorkerConfig(
3038         com.google.cloud.dataproc.v1.InstanceGroupConfig value) {
3039       if (secondaryWorkerConfigBuilder_ == null) {
3040         if (value == null) {
3041           throw new NullPointerException();
3042         }
3043         secondaryWorkerConfig_ = value;
3044       } else {
3045         secondaryWorkerConfigBuilder_.setMessage(value);
3046       }
3047       bitField0_ |= 0x00000020;
3048       onChanged();
3049       return this;
3050     }
3051     /**
3052      *
3053      *
3054      * <pre>
3055      * Optional. The Compute Engine config settings for
3056      * a cluster's secondary worker instances
3057      * </pre>
3058      *
3059      * <code>
3060      * .google.cloud.dataproc.v1.InstanceGroupConfig secondary_worker_config = 12 [(.google.api.field_behavior) = OPTIONAL];
3061      * </code>
3062      */
setSecondaryWorkerConfig( com.google.cloud.dataproc.v1.InstanceGroupConfig.Builder builderForValue)3063     public Builder setSecondaryWorkerConfig(
3064         com.google.cloud.dataproc.v1.InstanceGroupConfig.Builder builderForValue) {
3065       if (secondaryWorkerConfigBuilder_ == null) {
3066         secondaryWorkerConfig_ = builderForValue.build();
3067       } else {
3068         secondaryWorkerConfigBuilder_.setMessage(builderForValue.build());
3069       }
3070       bitField0_ |= 0x00000020;
3071       onChanged();
3072       return this;
3073     }
3074     /**
3075      *
3076      *
3077      * <pre>
3078      * Optional. The Compute Engine config settings for
3079      * a cluster's secondary worker instances
3080      * </pre>
3081      *
3082      * <code>
3083      * .google.cloud.dataproc.v1.InstanceGroupConfig secondary_worker_config = 12 [(.google.api.field_behavior) = OPTIONAL];
3084      * </code>
3085      */
mergeSecondaryWorkerConfig( com.google.cloud.dataproc.v1.InstanceGroupConfig value)3086     public Builder mergeSecondaryWorkerConfig(
3087         com.google.cloud.dataproc.v1.InstanceGroupConfig value) {
3088       if (secondaryWorkerConfigBuilder_ == null) {
3089         if (((bitField0_ & 0x00000020) != 0)
3090             && secondaryWorkerConfig_ != null
3091             && secondaryWorkerConfig_
3092                 != com.google.cloud.dataproc.v1.InstanceGroupConfig.getDefaultInstance()) {
3093           getSecondaryWorkerConfigBuilder().mergeFrom(value);
3094         } else {
3095           secondaryWorkerConfig_ = value;
3096         }
3097       } else {
3098         secondaryWorkerConfigBuilder_.mergeFrom(value);
3099       }
3100       bitField0_ |= 0x00000020;
3101       onChanged();
3102       return this;
3103     }
3104     /**
3105      *
3106      *
3107      * <pre>
3108      * Optional. The Compute Engine config settings for
3109      * a cluster's secondary worker instances
3110      * </pre>
3111      *
3112      * <code>
3113      * .google.cloud.dataproc.v1.InstanceGroupConfig secondary_worker_config = 12 [(.google.api.field_behavior) = OPTIONAL];
3114      * </code>
3115      */
clearSecondaryWorkerConfig()3116     public Builder clearSecondaryWorkerConfig() {
3117       bitField0_ = (bitField0_ & ~0x00000020);
3118       secondaryWorkerConfig_ = null;
3119       if (secondaryWorkerConfigBuilder_ != null) {
3120         secondaryWorkerConfigBuilder_.dispose();
3121         secondaryWorkerConfigBuilder_ = null;
3122       }
3123       onChanged();
3124       return this;
3125     }
3126     /**
3127      *
3128      *
3129      * <pre>
3130      * Optional. The Compute Engine config settings for
3131      * a cluster's secondary worker instances
3132      * </pre>
3133      *
3134      * <code>
3135      * .google.cloud.dataproc.v1.InstanceGroupConfig secondary_worker_config = 12 [(.google.api.field_behavior) = OPTIONAL];
3136      * </code>
3137      */
3138     public com.google.cloud.dataproc.v1.InstanceGroupConfig.Builder
getSecondaryWorkerConfigBuilder()3139         getSecondaryWorkerConfigBuilder() {
3140       bitField0_ |= 0x00000020;
3141       onChanged();
3142       return getSecondaryWorkerConfigFieldBuilder().getBuilder();
3143     }
3144     /**
3145      *
3146      *
3147      * <pre>
3148      * Optional. The Compute Engine config settings for
3149      * a cluster's secondary worker instances
3150      * </pre>
3151      *
3152      * <code>
3153      * .google.cloud.dataproc.v1.InstanceGroupConfig secondary_worker_config = 12 [(.google.api.field_behavior) = OPTIONAL];
3154      * </code>
3155      */
3156     public com.google.cloud.dataproc.v1.InstanceGroupConfigOrBuilder
getSecondaryWorkerConfigOrBuilder()3157         getSecondaryWorkerConfigOrBuilder() {
3158       if (secondaryWorkerConfigBuilder_ != null) {
3159         return secondaryWorkerConfigBuilder_.getMessageOrBuilder();
3160       } else {
3161         return secondaryWorkerConfig_ == null
3162             ? com.google.cloud.dataproc.v1.InstanceGroupConfig.getDefaultInstance()
3163             : secondaryWorkerConfig_;
3164       }
3165     }
3166     /**
3167      *
3168      *
3169      * <pre>
3170      * Optional. The Compute Engine config settings for
3171      * a cluster's secondary worker instances
3172      * </pre>
3173      *
3174      * <code>
3175      * .google.cloud.dataproc.v1.InstanceGroupConfig secondary_worker_config = 12 [(.google.api.field_behavior) = OPTIONAL];
3176      * </code>
3177      */
3178     private com.google.protobuf.SingleFieldBuilderV3<
3179             com.google.cloud.dataproc.v1.InstanceGroupConfig,
3180             com.google.cloud.dataproc.v1.InstanceGroupConfig.Builder,
3181             com.google.cloud.dataproc.v1.InstanceGroupConfigOrBuilder>
getSecondaryWorkerConfigFieldBuilder()3182         getSecondaryWorkerConfigFieldBuilder() {
3183       if (secondaryWorkerConfigBuilder_ == null) {
3184         secondaryWorkerConfigBuilder_ =
3185             new com.google.protobuf.SingleFieldBuilderV3<
3186                 com.google.cloud.dataproc.v1.InstanceGroupConfig,
3187                 com.google.cloud.dataproc.v1.InstanceGroupConfig.Builder,
3188                 com.google.cloud.dataproc.v1.InstanceGroupConfigOrBuilder>(
3189                 getSecondaryWorkerConfig(), getParentForChildren(), isClean());
3190         secondaryWorkerConfig_ = null;
3191       }
3192       return secondaryWorkerConfigBuilder_;
3193     }
3194 
3195     private com.google.cloud.dataproc.v1.SoftwareConfig softwareConfig_;
3196     private com.google.protobuf.SingleFieldBuilderV3<
3197             com.google.cloud.dataproc.v1.SoftwareConfig,
3198             com.google.cloud.dataproc.v1.SoftwareConfig.Builder,
3199             com.google.cloud.dataproc.v1.SoftwareConfigOrBuilder>
3200         softwareConfigBuilder_;
3201     /**
3202      *
3203      *
3204      * <pre>
3205      * Optional. The config settings for cluster software.
3206      * </pre>
3207      *
3208      * <code>
3209      * .google.cloud.dataproc.v1.SoftwareConfig software_config = 13 [(.google.api.field_behavior) = OPTIONAL];
3210      * </code>
3211      *
3212      * @return Whether the softwareConfig field is set.
3213      */
hasSoftwareConfig()3214     public boolean hasSoftwareConfig() {
3215       return ((bitField0_ & 0x00000040) != 0);
3216     }
3217     /**
3218      *
3219      *
3220      * <pre>
3221      * Optional. The config settings for cluster software.
3222      * </pre>
3223      *
3224      * <code>
3225      * .google.cloud.dataproc.v1.SoftwareConfig software_config = 13 [(.google.api.field_behavior) = OPTIONAL];
3226      * </code>
3227      *
3228      * @return The softwareConfig.
3229      */
getSoftwareConfig()3230     public com.google.cloud.dataproc.v1.SoftwareConfig getSoftwareConfig() {
3231       if (softwareConfigBuilder_ == null) {
3232         return softwareConfig_ == null
3233             ? com.google.cloud.dataproc.v1.SoftwareConfig.getDefaultInstance()
3234             : softwareConfig_;
3235       } else {
3236         return softwareConfigBuilder_.getMessage();
3237       }
3238     }
3239     /**
3240      *
3241      *
3242      * <pre>
3243      * Optional. The config settings for cluster software.
3244      * </pre>
3245      *
3246      * <code>
3247      * .google.cloud.dataproc.v1.SoftwareConfig software_config = 13 [(.google.api.field_behavior) = OPTIONAL];
3248      * </code>
3249      */
setSoftwareConfig(com.google.cloud.dataproc.v1.SoftwareConfig value)3250     public Builder setSoftwareConfig(com.google.cloud.dataproc.v1.SoftwareConfig value) {
3251       if (softwareConfigBuilder_ == null) {
3252         if (value == null) {
3253           throw new NullPointerException();
3254         }
3255         softwareConfig_ = value;
3256       } else {
3257         softwareConfigBuilder_.setMessage(value);
3258       }
3259       bitField0_ |= 0x00000040;
3260       onChanged();
3261       return this;
3262     }
3263     /**
3264      *
3265      *
3266      * <pre>
3267      * Optional. The config settings for cluster software.
3268      * </pre>
3269      *
3270      * <code>
3271      * .google.cloud.dataproc.v1.SoftwareConfig software_config = 13 [(.google.api.field_behavior) = OPTIONAL];
3272      * </code>
3273      */
setSoftwareConfig( com.google.cloud.dataproc.v1.SoftwareConfig.Builder builderForValue)3274     public Builder setSoftwareConfig(
3275         com.google.cloud.dataproc.v1.SoftwareConfig.Builder builderForValue) {
3276       if (softwareConfigBuilder_ == null) {
3277         softwareConfig_ = builderForValue.build();
3278       } else {
3279         softwareConfigBuilder_.setMessage(builderForValue.build());
3280       }
3281       bitField0_ |= 0x00000040;
3282       onChanged();
3283       return this;
3284     }
3285     /**
3286      *
3287      *
3288      * <pre>
3289      * Optional. The config settings for cluster software.
3290      * </pre>
3291      *
3292      * <code>
3293      * .google.cloud.dataproc.v1.SoftwareConfig software_config = 13 [(.google.api.field_behavior) = OPTIONAL];
3294      * </code>
3295      */
mergeSoftwareConfig(com.google.cloud.dataproc.v1.SoftwareConfig value)3296     public Builder mergeSoftwareConfig(com.google.cloud.dataproc.v1.SoftwareConfig value) {
3297       if (softwareConfigBuilder_ == null) {
3298         if (((bitField0_ & 0x00000040) != 0)
3299             && softwareConfig_ != null
3300             && softwareConfig_
3301                 != com.google.cloud.dataproc.v1.SoftwareConfig.getDefaultInstance()) {
3302           getSoftwareConfigBuilder().mergeFrom(value);
3303         } else {
3304           softwareConfig_ = value;
3305         }
3306       } else {
3307         softwareConfigBuilder_.mergeFrom(value);
3308       }
3309       bitField0_ |= 0x00000040;
3310       onChanged();
3311       return this;
3312     }
3313     /**
3314      *
3315      *
3316      * <pre>
3317      * Optional. The config settings for cluster software.
3318      * </pre>
3319      *
3320      * <code>
3321      * .google.cloud.dataproc.v1.SoftwareConfig software_config = 13 [(.google.api.field_behavior) = OPTIONAL];
3322      * </code>
3323      */
clearSoftwareConfig()3324     public Builder clearSoftwareConfig() {
3325       bitField0_ = (bitField0_ & ~0x00000040);
3326       softwareConfig_ = null;
3327       if (softwareConfigBuilder_ != null) {
3328         softwareConfigBuilder_.dispose();
3329         softwareConfigBuilder_ = null;
3330       }
3331       onChanged();
3332       return this;
3333     }
3334     /**
3335      *
3336      *
3337      * <pre>
3338      * Optional. The config settings for cluster software.
3339      * </pre>
3340      *
3341      * <code>
3342      * .google.cloud.dataproc.v1.SoftwareConfig software_config = 13 [(.google.api.field_behavior) = OPTIONAL];
3343      * </code>
3344      */
getSoftwareConfigBuilder()3345     public com.google.cloud.dataproc.v1.SoftwareConfig.Builder getSoftwareConfigBuilder() {
3346       bitField0_ |= 0x00000040;
3347       onChanged();
3348       return getSoftwareConfigFieldBuilder().getBuilder();
3349     }
3350     /**
3351      *
3352      *
3353      * <pre>
3354      * Optional. The config settings for cluster software.
3355      * </pre>
3356      *
3357      * <code>
3358      * .google.cloud.dataproc.v1.SoftwareConfig software_config = 13 [(.google.api.field_behavior) = OPTIONAL];
3359      * </code>
3360      */
getSoftwareConfigOrBuilder()3361     public com.google.cloud.dataproc.v1.SoftwareConfigOrBuilder getSoftwareConfigOrBuilder() {
3362       if (softwareConfigBuilder_ != null) {
3363         return softwareConfigBuilder_.getMessageOrBuilder();
3364       } else {
3365         return softwareConfig_ == null
3366             ? com.google.cloud.dataproc.v1.SoftwareConfig.getDefaultInstance()
3367             : softwareConfig_;
3368       }
3369     }
3370     /**
3371      *
3372      *
3373      * <pre>
3374      * Optional. The config settings for cluster software.
3375      * </pre>
3376      *
3377      * <code>
3378      * .google.cloud.dataproc.v1.SoftwareConfig software_config = 13 [(.google.api.field_behavior) = OPTIONAL];
3379      * </code>
3380      */
3381     private com.google.protobuf.SingleFieldBuilderV3<
3382             com.google.cloud.dataproc.v1.SoftwareConfig,
3383             com.google.cloud.dataproc.v1.SoftwareConfig.Builder,
3384             com.google.cloud.dataproc.v1.SoftwareConfigOrBuilder>
getSoftwareConfigFieldBuilder()3385         getSoftwareConfigFieldBuilder() {
3386       if (softwareConfigBuilder_ == null) {
3387         softwareConfigBuilder_ =
3388             new com.google.protobuf.SingleFieldBuilderV3<
3389                 com.google.cloud.dataproc.v1.SoftwareConfig,
3390                 com.google.cloud.dataproc.v1.SoftwareConfig.Builder,
3391                 com.google.cloud.dataproc.v1.SoftwareConfigOrBuilder>(
3392                 getSoftwareConfig(), getParentForChildren(), isClean());
3393         softwareConfig_ = null;
3394       }
3395       return softwareConfigBuilder_;
3396     }
3397 
3398     private java.util.List<com.google.cloud.dataproc.v1.NodeInitializationAction>
3399         initializationActions_ = java.util.Collections.emptyList();
3400 
ensureInitializationActionsIsMutable()3401     private void ensureInitializationActionsIsMutable() {
3402       if (!((bitField0_ & 0x00000080) != 0)) {
3403         initializationActions_ =
3404             new java.util.ArrayList<com.google.cloud.dataproc.v1.NodeInitializationAction>(
3405                 initializationActions_);
3406         bitField0_ |= 0x00000080;
3407       }
3408     }
3409 
3410     private com.google.protobuf.RepeatedFieldBuilderV3<
3411             com.google.cloud.dataproc.v1.NodeInitializationAction,
3412             com.google.cloud.dataproc.v1.NodeInitializationAction.Builder,
3413             com.google.cloud.dataproc.v1.NodeInitializationActionOrBuilder>
3414         initializationActionsBuilder_;
3415 
3416     /**
3417      *
3418      *
3419      * <pre>
3420      * Optional. Commands to execute on each node after config is
3421      * completed. By default, executables are run on master and all worker nodes.
3422      * You can test a node's `role` metadata to run an executable on
3423      * a master or worker node, as shown below using `curl` (you can also use
3424      * `wget`):
3425      *     ROLE=$(curl -H Metadata-Flavor:Google
3426      *     http://metadata/computeMetadata/v1/instance/attributes/dataproc-role)
3427      *     if [[ "${ROLE}" == 'Master' ]]; then
3428      *       ... master specific actions ...
3429      *     else
3430      *       ... worker specific actions ...
3431      *     fi
3432      * </pre>
3433      *
3434      * <code>
3435      * repeated .google.cloud.dataproc.v1.NodeInitializationAction initialization_actions = 11 [(.google.api.field_behavior) = OPTIONAL];
3436      * </code>
3437      */
3438     public java.util.List<com.google.cloud.dataproc.v1.NodeInitializationAction>
getInitializationActionsList()3439         getInitializationActionsList() {
3440       if (initializationActionsBuilder_ == null) {
3441         return java.util.Collections.unmodifiableList(initializationActions_);
3442       } else {
3443         return initializationActionsBuilder_.getMessageList();
3444       }
3445     }
3446     /**
3447      *
3448      *
3449      * <pre>
3450      * Optional. Commands to execute on each node after config is
3451      * completed. By default, executables are run on master and all worker nodes.
3452      * You can test a node's `role` metadata to run an executable on
3453      * a master or worker node, as shown below using `curl` (you can also use
3454      * `wget`):
3455      *     ROLE=$(curl -H Metadata-Flavor:Google
3456      *     http://metadata/computeMetadata/v1/instance/attributes/dataproc-role)
3457      *     if [[ "${ROLE}" == 'Master' ]]; then
3458      *       ... master specific actions ...
3459      *     else
3460      *       ... worker specific actions ...
3461      *     fi
3462      * </pre>
3463      *
3464      * <code>
3465      * repeated .google.cloud.dataproc.v1.NodeInitializationAction initialization_actions = 11 [(.google.api.field_behavior) = OPTIONAL];
3466      * </code>
3467      */
getInitializationActionsCount()3468     public int getInitializationActionsCount() {
3469       if (initializationActionsBuilder_ == null) {
3470         return initializationActions_.size();
3471       } else {
3472         return initializationActionsBuilder_.getCount();
3473       }
3474     }
3475     /**
3476      *
3477      *
3478      * <pre>
3479      * Optional. Commands to execute on each node after config is
3480      * completed. By default, executables are run on master and all worker nodes.
3481      * You can test a node's `role` metadata to run an executable on
3482      * a master or worker node, as shown below using `curl` (you can also use
3483      * `wget`):
3484      *     ROLE=$(curl -H Metadata-Flavor:Google
3485      *     http://metadata/computeMetadata/v1/instance/attributes/dataproc-role)
3486      *     if [[ "${ROLE}" == 'Master' ]]; then
3487      *       ... master specific actions ...
3488      *     else
3489      *       ... worker specific actions ...
3490      *     fi
3491      * </pre>
3492      *
3493      * <code>
3494      * repeated .google.cloud.dataproc.v1.NodeInitializationAction initialization_actions = 11 [(.google.api.field_behavior) = OPTIONAL];
3495      * </code>
3496      */
getInitializationActions( int index)3497     public com.google.cloud.dataproc.v1.NodeInitializationAction getInitializationActions(
3498         int index) {
3499       if (initializationActionsBuilder_ == null) {
3500         return initializationActions_.get(index);
3501       } else {
3502         return initializationActionsBuilder_.getMessage(index);
3503       }
3504     }
3505     /**
3506      *
3507      *
3508      * <pre>
3509      * Optional. Commands to execute on each node after config is
3510      * completed. By default, executables are run on master and all worker nodes.
3511      * You can test a node's `role` metadata to run an executable on
3512      * a master or worker node, as shown below using `curl` (you can also use
3513      * `wget`):
3514      *     ROLE=$(curl -H Metadata-Flavor:Google
3515      *     http://metadata/computeMetadata/v1/instance/attributes/dataproc-role)
3516      *     if [[ "${ROLE}" == 'Master' ]]; then
3517      *       ... master specific actions ...
3518      *     else
3519      *       ... worker specific actions ...
3520      *     fi
3521      * </pre>
3522      *
3523      * <code>
3524      * repeated .google.cloud.dataproc.v1.NodeInitializationAction initialization_actions = 11 [(.google.api.field_behavior) = OPTIONAL];
3525      * </code>
3526      */
setInitializationActions( int index, com.google.cloud.dataproc.v1.NodeInitializationAction value)3527     public Builder setInitializationActions(
3528         int index, com.google.cloud.dataproc.v1.NodeInitializationAction value) {
3529       if (initializationActionsBuilder_ == null) {
3530         if (value == null) {
3531           throw new NullPointerException();
3532         }
3533         ensureInitializationActionsIsMutable();
3534         initializationActions_.set(index, value);
3535         onChanged();
3536       } else {
3537         initializationActionsBuilder_.setMessage(index, value);
3538       }
3539       return this;
3540     }
3541     /**
3542      *
3543      *
3544      * <pre>
3545      * Optional. Commands to execute on each node after config is
3546      * completed. By default, executables are run on master and all worker nodes.
3547      * You can test a node's `role` metadata to run an executable on
3548      * a master or worker node, as shown below using `curl` (you can also use
3549      * `wget`):
3550      *     ROLE=$(curl -H Metadata-Flavor:Google
3551      *     http://metadata/computeMetadata/v1/instance/attributes/dataproc-role)
3552      *     if [[ "${ROLE}" == 'Master' ]]; then
3553      *       ... master specific actions ...
3554      *     else
3555      *       ... worker specific actions ...
3556      *     fi
3557      * </pre>
3558      *
3559      * <code>
3560      * repeated .google.cloud.dataproc.v1.NodeInitializationAction initialization_actions = 11 [(.google.api.field_behavior) = OPTIONAL];
3561      * </code>
3562      */
setInitializationActions( int index, com.google.cloud.dataproc.v1.NodeInitializationAction.Builder builderForValue)3563     public Builder setInitializationActions(
3564         int index, com.google.cloud.dataproc.v1.NodeInitializationAction.Builder builderForValue) {
3565       if (initializationActionsBuilder_ == null) {
3566         ensureInitializationActionsIsMutable();
3567         initializationActions_.set(index, builderForValue.build());
3568         onChanged();
3569       } else {
3570         initializationActionsBuilder_.setMessage(index, builderForValue.build());
3571       }
3572       return this;
3573     }
3574     /**
3575      *
3576      *
3577      * <pre>
3578      * Optional. Commands to execute on each node after config is
3579      * completed. By default, executables are run on master and all worker nodes.
3580      * You can test a node's `role` metadata to run an executable on
3581      * a master or worker node, as shown below using `curl` (you can also use
3582      * `wget`):
3583      *     ROLE=$(curl -H Metadata-Flavor:Google
3584      *     http://metadata/computeMetadata/v1/instance/attributes/dataproc-role)
3585      *     if [[ "${ROLE}" == 'Master' ]]; then
3586      *       ... master specific actions ...
3587      *     else
3588      *       ... worker specific actions ...
3589      *     fi
3590      * </pre>
3591      *
3592      * <code>
3593      * repeated .google.cloud.dataproc.v1.NodeInitializationAction initialization_actions = 11 [(.google.api.field_behavior) = OPTIONAL];
3594      * </code>
3595      */
addInitializationActions( com.google.cloud.dataproc.v1.NodeInitializationAction value)3596     public Builder addInitializationActions(
3597         com.google.cloud.dataproc.v1.NodeInitializationAction value) {
3598       if (initializationActionsBuilder_ == null) {
3599         if (value == null) {
3600           throw new NullPointerException();
3601         }
3602         ensureInitializationActionsIsMutable();
3603         initializationActions_.add(value);
3604         onChanged();
3605       } else {
3606         initializationActionsBuilder_.addMessage(value);
3607       }
3608       return this;
3609     }
3610     /**
3611      *
3612      *
3613      * <pre>
3614      * Optional. Commands to execute on each node after config is
3615      * completed. By default, executables are run on master and all worker nodes.
3616      * You can test a node's `role` metadata to run an executable on
3617      * a master or worker node, as shown below using `curl` (you can also use
3618      * `wget`):
3619      *     ROLE=$(curl -H Metadata-Flavor:Google
3620      *     http://metadata/computeMetadata/v1/instance/attributes/dataproc-role)
3621      *     if [[ "${ROLE}" == 'Master' ]]; then
3622      *       ... master specific actions ...
3623      *     else
3624      *       ... worker specific actions ...
3625      *     fi
3626      * </pre>
3627      *
3628      * <code>
3629      * repeated .google.cloud.dataproc.v1.NodeInitializationAction initialization_actions = 11 [(.google.api.field_behavior) = OPTIONAL];
3630      * </code>
3631      */
addInitializationActions( int index, com.google.cloud.dataproc.v1.NodeInitializationAction value)3632     public Builder addInitializationActions(
3633         int index, com.google.cloud.dataproc.v1.NodeInitializationAction value) {
3634       if (initializationActionsBuilder_ == null) {
3635         if (value == null) {
3636           throw new NullPointerException();
3637         }
3638         ensureInitializationActionsIsMutable();
3639         initializationActions_.add(index, value);
3640         onChanged();
3641       } else {
3642         initializationActionsBuilder_.addMessage(index, value);
3643       }
3644       return this;
3645     }
3646     /**
3647      *
3648      *
3649      * <pre>
3650      * Optional. Commands to execute on each node after config is
3651      * completed. By default, executables are run on master and all worker nodes.
3652      * You can test a node's `role` metadata to run an executable on
3653      * a master or worker node, as shown below using `curl` (you can also use
3654      * `wget`):
3655      *     ROLE=$(curl -H Metadata-Flavor:Google
3656      *     http://metadata/computeMetadata/v1/instance/attributes/dataproc-role)
3657      *     if [[ "${ROLE}" == 'Master' ]]; then
3658      *       ... master specific actions ...
3659      *     else
3660      *       ... worker specific actions ...
3661      *     fi
3662      * </pre>
3663      *
3664      * <code>
3665      * repeated .google.cloud.dataproc.v1.NodeInitializationAction initialization_actions = 11 [(.google.api.field_behavior) = OPTIONAL];
3666      * </code>
3667      */
addInitializationActions( com.google.cloud.dataproc.v1.NodeInitializationAction.Builder builderForValue)3668     public Builder addInitializationActions(
3669         com.google.cloud.dataproc.v1.NodeInitializationAction.Builder builderForValue) {
3670       if (initializationActionsBuilder_ == null) {
3671         ensureInitializationActionsIsMutable();
3672         initializationActions_.add(builderForValue.build());
3673         onChanged();
3674       } else {
3675         initializationActionsBuilder_.addMessage(builderForValue.build());
3676       }
3677       return this;
3678     }
3679     /**
3680      *
3681      *
3682      * <pre>
3683      * Optional. Commands to execute on each node after config is
3684      * completed. By default, executables are run on master and all worker nodes.
3685      * You can test a node's `role` metadata to run an executable on
3686      * a master or worker node, as shown below using `curl` (you can also use
3687      * `wget`):
3688      *     ROLE=$(curl -H Metadata-Flavor:Google
3689      *     http://metadata/computeMetadata/v1/instance/attributes/dataproc-role)
3690      *     if [[ "${ROLE}" == 'Master' ]]; then
3691      *       ... master specific actions ...
3692      *     else
3693      *       ... worker specific actions ...
3694      *     fi
3695      * </pre>
3696      *
3697      * <code>
3698      * repeated .google.cloud.dataproc.v1.NodeInitializationAction initialization_actions = 11 [(.google.api.field_behavior) = OPTIONAL];
3699      * </code>
3700      */
addInitializationActions( int index, com.google.cloud.dataproc.v1.NodeInitializationAction.Builder builderForValue)3701     public Builder addInitializationActions(
3702         int index, com.google.cloud.dataproc.v1.NodeInitializationAction.Builder builderForValue) {
3703       if (initializationActionsBuilder_ == null) {
3704         ensureInitializationActionsIsMutable();
3705         initializationActions_.add(index, builderForValue.build());
3706         onChanged();
3707       } else {
3708         initializationActionsBuilder_.addMessage(index, builderForValue.build());
3709       }
3710       return this;
3711     }
3712     /**
3713      *
3714      *
3715      * <pre>
3716      * Optional. Commands to execute on each node after config is
3717      * completed. By default, executables are run on master and all worker nodes.
3718      * You can test a node's `role` metadata to run an executable on
3719      * a master or worker node, as shown below using `curl` (you can also use
3720      * `wget`):
3721      *     ROLE=$(curl -H Metadata-Flavor:Google
3722      *     http://metadata/computeMetadata/v1/instance/attributes/dataproc-role)
3723      *     if [[ "${ROLE}" == 'Master' ]]; then
3724      *       ... master specific actions ...
3725      *     else
3726      *       ... worker specific actions ...
3727      *     fi
3728      * </pre>
3729      *
3730      * <code>
3731      * repeated .google.cloud.dataproc.v1.NodeInitializationAction initialization_actions = 11 [(.google.api.field_behavior) = OPTIONAL];
3732      * </code>
3733      */
addAllInitializationActions( java.lang.Iterable<? extends com.google.cloud.dataproc.v1.NodeInitializationAction> values)3734     public Builder addAllInitializationActions(
3735         java.lang.Iterable<? extends com.google.cloud.dataproc.v1.NodeInitializationAction>
3736             values) {
3737       if (initializationActionsBuilder_ == null) {
3738         ensureInitializationActionsIsMutable();
3739         com.google.protobuf.AbstractMessageLite.Builder.addAll(values, initializationActions_);
3740         onChanged();
3741       } else {
3742         initializationActionsBuilder_.addAllMessages(values);
3743       }
3744       return this;
3745     }
3746     /**
3747      *
3748      *
3749      * <pre>
3750      * Optional. Commands to execute on each node after config is
3751      * completed. By default, executables are run on master and all worker nodes.
3752      * You can test a node's `role` metadata to run an executable on
3753      * a master or worker node, as shown below using `curl` (you can also use
3754      * `wget`):
3755      *     ROLE=$(curl -H Metadata-Flavor:Google
3756      *     http://metadata/computeMetadata/v1/instance/attributes/dataproc-role)
3757      *     if [[ "${ROLE}" == 'Master' ]]; then
3758      *       ... master specific actions ...
3759      *     else
3760      *       ... worker specific actions ...
3761      *     fi
3762      * </pre>
3763      *
3764      * <code>
3765      * repeated .google.cloud.dataproc.v1.NodeInitializationAction initialization_actions = 11 [(.google.api.field_behavior) = OPTIONAL];
3766      * </code>
3767      */
clearInitializationActions()3768     public Builder clearInitializationActions() {
3769       if (initializationActionsBuilder_ == null) {
3770         initializationActions_ = java.util.Collections.emptyList();
3771         bitField0_ = (bitField0_ & ~0x00000080);
3772         onChanged();
3773       } else {
3774         initializationActionsBuilder_.clear();
3775       }
3776       return this;
3777     }
3778     /**
3779      *
3780      *
3781      * <pre>
3782      * Optional. Commands to execute on each node after config is
3783      * completed. By default, executables are run on master and all worker nodes.
3784      * You can test a node's `role` metadata to run an executable on
3785      * a master or worker node, as shown below using `curl` (you can also use
3786      * `wget`):
3787      *     ROLE=$(curl -H Metadata-Flavor:Google
3788      *     http://metadata/computeMetadata/v1/instance/attributes/dataproc-role)
3789      *     if [[ "${ROLE}" == 'Master' ]]; then
3790      *       ... master specific actions ...
3791      *     else
3792      *       ... worker specific actions ...
3793      *     fi
3794      * </pre>
3795      *
3796      * <code>
3797      * repeated .google.cloud.dataproc.v1.NodeInitializationAction initialization_actions = 11 [(.google.api.field_behavior) = OPTIONAL];
3798      * </code>
3799      */
removeInitializationActions(int index)3800     public Builder removeInitializationActions(int index) {
3801       if (initializationActionsBuilder_ == null) {
3802         ensureInitializationActionsIsMutable();
3803         initializationActions_.remove(index);
3804         onChanged();
3805       } else {
3806         initializationActionsBuilder_.remove(index);
3807       }
3808       return this;
3809     }
3810     /**
3811      *
3812      *
3813      * <pre>
3814      * Optional. Commands to execute on each node after config is
3815      * completed. By default, executables are run on master and all worker nodes.
3816      * You can test a node's `role` metadata to run an executable on
3817      * a master or worker node, as shown below using `curl` (you can also use
3818      * `wget`):
3819      *     ROLE=$(curl -H Metadata-Flavor:Google
3820      *     http://metadata/computeMetadata/v1/instance/attributes/dataproc-role)
3821      *     if [[ "${ROLE}" == 'Master' ]]; then
3822      *       ... master specific actions ...
3823      *     else
3824      *       ... worker specific actions ...
3825      *     fi
3826      * </pre>
3827      *
3828      * <code>
3829      * repeated .google.cloud.dataproc.v1.NodeInitializationAction initialization_actions = 11 [(.google.api.field_behavior) = OPTIONAL];
3830      * </code>
3831      */
3832     public com.google.cloud.dataproc.v1.NodeInitializationAction.Builder
getInitializationActionsBuilder(int index)3833         getInitializationActionsBuilder(int index) {
3834       return getInitializationActionsFieldBuilder().getBuilder(index);
3835     }
3836     /**
3837      *
3838      *
3839      * <pre>
3840      * Optional. Commands to execute on each node after config is
3841      * completed. By default, executables are run on master and all worker nodes.
3842      * You can test a node's `role` metadata to run an executable on
3843      * a master or worker node, as shown below using `curl` (you can also use
3844      * `wget`):
3845      *     ROLE=$(curl -H Metadata-Flavor:Google
3846      *     http://metadata/computeMetadata/v1/instance/attributes/dataproc-role)
3847      *     if [[ "${ROLE}" == 'Master' ]]; then
3848      *       ... master specific actions ...
3849      *     else
3850      *       ... worker specific actions ...
3851      *     fi
3852      * </pre>
3853      *
3854      * <code>
3855      * repeated .google.cloud.dataproc.v1.NodeInitializationAction initialization_actions = 11 [(.google.api.field_behavior) = OPTIONAL];
3856      * </code>
3857      */
3858     public com.google.cloud.dataproc.v1.NodeInitializationActionOrBuilder
getInitializationActionsOrBuilder(int index)3859         getInitializationActionsOrBuilder(int index) {
3860       if (initializationActionsBuilder_ == null) {
3861         return initializationActions_.get(index);
3862       } else {
3863         return initializationActionsBuilder_.getMessageOrBuilder(index);
3864       }
3865     }
3866     /**
3867      *
3868      *
3869      * <pre>
3870      * Optional. Commands to execute on each node after config is
3871      * completed. By default, executables are run on master and all worker nodes.
3872      * You can test a node's `role` metadata to run an executable on
3873      * a master or worker node, as shown below using `curl` (you can also use
3874      * `wget`):
3875      *     ROLE=$(curl -H Metadata-Flavor:Google
3876      *     http://metadata/computeMetadata/v1/instance/attributes/dataproc-role)
3877      *     if [[ "${ROLE}" == 'Master' ]]; then
3878      *       ... master specific actions ...
3879      *     else
3880      *       ... worker specific actions ...
3881      *     fi
3882      * </pre>
3883      *
3884      * <code>
3885      * repeated .google.cloud.dataproc.v1.NodeInitializationAction initialization_actions = 11 [(.google.api.field_behavior) = OPTIONAL];
3886      * </code>
3887      */
3888     public java.util.List<? extends com.google.cloud.dataproc.v1.NodeInitializationActionOrBuilder>
getInitializationActionsOrBuilderList()3889         getInitializationActionsOrBuilderList() {
3890       if (initializationActionsBuilder_ != null) {
3891         return initializationActionsBuilder_.getMessageOrBuilderList();
3892       } else {
3893         return java.util.Collections.unmodifiableList(initializationActions_);
3894       }
3895     }
3896     /**
3897      *
3898      *
3899      * <pre>
3900      * Optional. Commands to execute on each node after config is
3901      * completed. By default, executables are run on master and all worker nodes.
3902      * You can test a node's `role` metadata to run an executable on
3903      * a master or worker node, as shown below using `curl` (you can also use
3904      * `wget`):
3905      *     ROLE=$(curl -H Metadata-Flavor:Google
3906      *     http://metadata/computeMetadata/v1/instance/attributes/dataproc-role)
3907      *     if [[ "${ROLE}" == 'Master' ]]; then
3908      *       ... master specific actions ...
3909      *     else
3910      *       ... worker specific actions ...
3911      *     fi
3912      * </pre>
3913      *
3914      * <code>
3915      * repeated .google.cloud.dataproc.v1.NodeInitializationAction initialization_actions = 11 [(.google.api.field_behavior) = OPTIONAL];
3916      * </code>
3917      */
3918     public com.google.cloud.dataproc.v1.NodeInitializationAction.Builder
addInitializationActionsBuilder()3919         addInitializationActionsBuilder() {
3920       return getInitializationActionsFieldBuilder()
3921           .addBuilder(com.google.cloud.dataproc.v1.NodeInitializationAction.getDefaultInstance());
3922     }
3923     /**
3924      *
3925      *
3926      * <pre>
3927      * Optional. Commands to execute on each node after config is
3928      * completed. By default, executables are run on master and all worker nodes.
3929      * You can test a node's `role` metadata to run an executable on
3930      * a master or worker node, as shown below using `curl` (you can also use
3931      * `wget`):
3932      *     ROLE=$(curl -H Metadata-Flavor:Google
3933      *     http://metadata/computeMetadata/v1/instance/attributes/dataproc-role)
3934      *     if [[ "${ROLE}" == 'Master' ]]; then
3935      *       ... master specific actions ...
3936      *     else
3937      *       ... worker specific actions ...
3938      *     fi
3939      * </pre>
3940      *
3941      * <code>
3942      * repeated .google.cloud.dataproc.v1.NodeInitializationAction initialization_actions = 11 [(.google.api.field_behavior) = OPTIONAL];
3943      * </code>
3944      */
3945     public com.google.cloud.dataproc.v1.NodeInitializationAction.Builder
addInitializationActionsBuilder(int index)3946         addInitializationActionsBuilder(int index) {
3947       return getInitializationActionsFieldBuilder()
3948           .addBuilder(
3949               index, com.google.cloud.dataproc.v1.NodeInitializationAction.getDefaultInstance());
3950     }
3951     /**
3952      *
3953      *
3954      * <pre>
3955      * Optional. Commands to execute on each node after config is
3956      * completed. By default, executables are run on master and all worker nodes.
3957      * You can test a node's `role` metadata to run an executable on
3958      * a master or worker node, as shown below using `curl` (you can also use
3959      * `wget`):
3960      *     ROLE=$(curl -H Metadata-Flavor:Google
3961      *     http://metadata/computeMetadata/v1/instance/attributes/dataproc-role)
3962      *     if [[ "${ROLE}" == 'Master' ]]; then
3963      *       ... master specific actions ...
3964      *     else
3965      *       ... worker specific actions ...
3966      *     fi
3967      * </pre>
3968      *
3969      * <code>
3970      * repeated .google.cloud.dataproc.v1.NodeInitializationAction initialization_actions = 11 [(.google.api.field_behavior) = OPTIONAL];
3971      * </code>
3972      */
3973     public java.util.List<com.google.cloud.dataproc.v1.NodeInitializationAction.Builder>
getInitializationActionsBuilderList()3974         getInitializationActionsBuilderList() {
3975       return getInitializationActionsFieldBuilder().getBuilderList();
3976     }
3977 
3978     private com.google.protobuf.RepeatedFieldBuilderV3<
3979             com.google.cloud.dataproc.v1.NodeInitializationAction,
3980             com.google.cloud.dataproc.v1.NodeInitializationAction.Builder,
3981             com.google.cloud.dataproc.v1.NodeInitializationActionOrBuilder>
getInitializationActionsFieldBuilder()3982         getInitializationActionsFieldBuilder() {
3983       if (initializationActionsBuilder_ == null) {
3984         initializationActionsBuilder_ =
3985             new com.google.protobuf.RepeatedFieldBuilderV3<
3986                 com.google.cloud.dataproc.v1.NodeInitializationAction,
3987                 com.google.cloud.dataproc.v1.NodeInitializationAction.Builder,
3988                 com.google.cloud.dataproc.v1.NodeInitializationActionOrBuilder>(
3989                 initializationActions_,
3990                 ((bitField0_ & 0x00000080) != 0),
3991                 getParentForChildren(),
3992                 isClean());
3993         initializationActions_ = null;
3994       }
3995       return initializationActionsBuilder_;
3996     }
3997 
3998     private com.google.cloud.dataproc.v1.EncryptionConfig encryptionConfig_;
3999     private com.google.protobuf.SingleFieldBuilderV3<
4000             com.google.cloud.dataproc.v1.EncryptionConfig,
4001             com.google.cloud.dataproc.v1.EncryptionConfig.Builder,
4002             com.google.cloud.dataproc.v1.EncryptionConfigOrBuilder>
4003         encryptionConfigBuilder_;
4004     /**
4005      *
4006      *
4007      * <pre>
4008      * Optional. Encryption settings for the cluster.
4009      * </pre>
4010      *
4011      * <code>
4012      * .google.cloud.dataproc.v1.EncryptionConfig encryption_config = 15 [(.google.api.field_behavior) = OPTIONAL];
4013      * </code>
4014      *
4015      * @return Whether the encryptionConfig field is set.
4016      */
hasEncryptionConfig()4017     public boolean hasEncryptionConfig() {
4018       return ((bitField0_ & 0x00000100) != 0);
4019     }
4020     /**
4021      *
4022      *
4023      * <pre>
4024      * Optional. Encryption settings for the cluster.
4025      * </pre>
4026      *
4027      * <code>
4028      * .google.cloud.dataproc.v1.EncryptionConfig encryption_config = 15 [(.google.api.field_behavior) = OPTIONAL];
4029      * </code>
4030      *
4031      * @return The encryptionConfig.
4032      */
getEncryptionConfig()4033     public com.google.cloud.dataproc.v1.EncryptionConfig getEncryptionConfig() {
4034       if (encryptionConfigBuilder_ == null) {
4035         return encryptionConfig_ == null
4036             ? com.google.cloud.dataproc.v1.EncryptionConfig.getDefaultInstance()
4037             : encryptionConfig_;
4038       } else {
4039         return encryptionConfigBuilder_.getMessage();
4040       }
4041     }
4042     /**
4043      *
4044      *
4045      * <pre>
4046      * Optional. Encryption settings for the cluster.
4047      * </pre>
4048      *
4049      * <code>
4050      * .google.cloud.dataproc.v1.EncryptionConfig encryption_config = 15 [(.google.api.field_behavior) = OPTIONAL];
4051      * </code>
4052      */
setEncryptionConfig(com.google.cloud.dataproc.v1.EncryptionConfig value)4053     public Builder setEncryptionConfig(com.google.cloud.dataproc.v1.EncryptionConfig value) {
4054       if (encryptionConfigBuilder_ == null) {
4055         if (value == null) {
4056           throw new NullPointerException();
4057         }
4058         encryptionConfig_ = value;
4059       } else {
4060         encryptionConfigBuilder_.setMessage(value);
4061       }
4062       bitField0_ |= 0x00000100;
4063       onChanged();
4064       return this;
4065     }
4066     /**
4067      *
4068      *
4069      * <pre>
4070      * Optional. Encryption settings for the cluster.
4071      * </pre>
4072      *
4073      * <code>
4074      * .google.cloud.dataproc.v1.EncryptionConfig encryption_config = 15 [(.google.api.field_behavior) = OPTIONAL];
4075      * </code>
4076      */
setEncryptionConfig( com.google.cloud.dataproc.v1.EncryptionConfig.Builder builderForValue)4077     public Builder setEncryptionConfig(
4078         com.google.cloud.dataproc.v1.EncryptionConfig.Builder builderForValue) {
4079       if (encryptionConfigBuilder_ == null) {
4080         encryptionConfig_ = builderForValue.build();
4081       } else {
4082         encryptionConfigBuilder_.setMessage(builderForValue.build());
4083       }
4084       bitField0_ |= 0x00000100;
4085       onChanged();
4086       return this;
4087     }
4088     /**
4089      *
4090      *
4091      * <pre>
4092      * Optional. Encryption settings for the cluster.
4093      * </pre>
4094      *
4095      * <code>
4096      * .google.cloud.dataproc.v1.EncryptionConfig encryption_config = 15 [(.google.api.field_behavior) = OPTIONAL];
4097      * </code>
4098      */
mergeEncryptionConfig(com.google.cloud.dataproc.v1.EncryptionConfig value)4099     public Builder mergeEncryptionConfig(com.google.cloud.dataproc.v1.EncryptionConfig value) {
4100       if (encryptionConfigBuilder_ == null) {
4101         if (((bitField0_ & 0x00000100) != 0)
4102             && encryptionConfig_ != null
4103             && encryptionConfig_
4104                 != com.google.cloud.dataproc.v1.EncryptionConfig.getDefaultInstance()) {
4105           getEncryptionConfigBuilder().mergeFrom(value);
4106         } else {
4107           encryptionConfig_ = value;
4108         }
4109       } else {
4110         encryptionConfigBuilder_.mergeFrom(value);
4111       }
4112       bitField0_ |= 0x00000100;
4113       onChanged();
4114       return this;
4115     }
4116     /**
4117      *
4118      *
4119      * <pre>
4120      * Optional. Encryption settings for the cluster.
4121      * </pre>
4122      *
4123      * <code>
4124      * .google.cloud.dataproc.v1.EncryptionConfig encryption_config = 15 [(.google.api.field_behavior) = OPTIONAL];
4125      * </code>
4126      */
clearEncryptionConfig()4127     public Builder clearEncryptionConfig() {
4128       bitField0_ = (bitField0_ & ~0x00000100);
4129       encryptionConfig_ = null;
4130       if (encryptionConfigBuilder_ != null) {
4131         encryptionConfigBuilder_.dispose();
4132         encryptionConfigBuilder_ = null;
4133       }
4134       onChanged();
4135       return this;
4136     }
4137     /**
4138      *
4139      *
4140      * <pre>
4141      * Optional. Encryption settings for the cluster.
4142      * </pre>
4143      *
4144      * <code>
4145      * .google.cloud.dataproc.v1.EncryptionConfig encryption_config = 15 [(.google.api.field_behavior) = OPTIONAL];
4146      * </code>
4147      */
getEncryptionConfigBuilder()4148     public com.google.cloud.dataproc.v1.EncryptionConfig.Builder getEncryptionConfigBuilder() {
4149       bitField0_ |= 0x00000100;
4150       onChanged();
4151       return getEncryptionConfigFieldBuilder().getBuilder();
4152     }
4153     /**
4154      *
4155      *
4156      * <pre>
4157      * Optional. Encryption settings for the cluster.
4158      * </pre>
4159      *
4160      * <code>
4161      * .google.cloud.dataproc.v1.EncryptionConfig encryption_config = 15 [(.google.api.field_behavior) = OPTIONAL];
4162      * </code>
4163      */
getEncryptionConfigOrBuilder()4164     public com.google.cloud.dataproc.v1.EncryptionConfigOrBuilder getEncryptionConfigOrBuilder() {
4165       if (encryptionConfigBuilder_ != null) {
4166         return encryptionConfigBuilder_.getMessageOrBuilder();
4167       } else {
4168         return encryptionConfig_ == null
4169             ? com.google.cloud.dataproc.v1.EncryptionConfig.getDefaultInstance()
4170             : encryptionConfig_;
4171       }
4172     }
4173     /**
4174      *
4175      *
4176      * <pre>
4177      * Optional. Encryption settings for the cluster.
4178      * </pre>
4179      *
4180      * <code>
4181      * .google.cloud.dataproc.v1.EncryptionConfig encryption_config = 15 [(.google.api.field_behavior) = OPTIONAL];
4182      * </code>
4183      */
4184     private com.google.protobuf.SingleFieldBuilderV3<
4185             com.google.cloud.dataproc.v1.EncryptionConfig,
4186             com.google.cloud.dataproc.v1.EncryptionConfig.Builder,
4187             com.google.cloud.dataproc.v1.EncryptionConfigOrBuilder>
getEncryptionConfigFieldBuilder()4188         getEncryptionConfigFieldBuilder() {
4189       if (encryptionConfigBuilder_ == null) {
4190         encryptionConfigBuilder_ =
4191             new com.google.protobuf.SingleFieldBuilderV3<
4192                 com.google.cloud.dataproc.v1.EncryptionConfig,
4193                 com.google.cloud.dataproc.v1.EncryptionConfig.Builder,
4194                 com.google.cloud.dataproc.v1.EncryptionConfigOrBuilder>(
4195                 getEncryptionConfig(), getParentForChildren(), isClean());
4196         encryptionConfig_ = null;
4197       }
4198       return encryptionConfigBuilder_;
4199     }
4200 
4201     private com.google.cloud.dataproc.v1.AutoscalingConfig autoscalingConfig_;
4202     private com.google.protobuf.SingleFieldBuilderV3<
4203             com.google.cloud.dataproc.v1.AutoscalingConfig,
4204             com.google.cloud.dataproc.v1.AutoscalingConfig.Builder,
4205             com.google.cloud.dataproc.v1.AutoscalingConfigOrBuilder>
4206         autoscalingConfigBuilder_;
4207     /**
4208      *
4209      *
4210      * <pre>
4211      * Optional. Autoscaling config for the policy associated with the cluster.
4212      * Cluster does not autoscale if this field is unset.
4213      * </pre>
4214      *
4215      * <code>
4216      * .google.cloud.dataproc.v1.AutoscalingConfig autoscaling_config = 18 [(.google.api.field_behavior) = OPTIONAL];
4217      * </code>
4218      *
4219      * @return Whether the autoscalingConfig field is set.
4220      */
hasAutoscalingConfig()4221     public boolean hasAutoscalingConfig() {
4222       return ((bitField0_ & 0x00000200) != 0);
4223     }
4224     /**
4225      *
4226      *
4227      * <pre>
4228      * Optional. Autoscaling config for the policy associated with the cluster.
4229      * Cluster does not autoscale if this field is unset.
4230      * </pre>
4231      *
4232      * <code>
4233      * .google.cloud.dataproc.v1.AutoscalingConfig autoscaling_config = 18 [(.google.api.field_behavior) = OPTIONAL];
4234      * </code>
4235      *
4236      * @return The autoscalingConfig.
4237      */
getAutoscalingConfig()4238     public com.google.cloud.dataproc.v1.AutoscalingConfig getAutoscalingConfig() {
4239       if (autoscalingConfigBuilder_ == null) {
4240         return autoscalingConfig_ == null
4241             ? com.google.cloud.dataproc.v1.AutoscalingConfig.getDefaultInstance()
4242             : autoscalingConfig_;
4243       } else {
4244         return autoscalingConfigBuilder_.getMessage();
4245       }
4246     }
4247     /**
4248      *
4249      *
4250      * <pre>
4251      * Optional. Autoscaling config for the policy associated with the cluster.
4252      * Cluster does not autoscale if this field is unset.
4253      * </pre>
4254      *
4255      * <code>
4256      * .google.cloud.dataproc.v1.AutoscalingConfig autoscaling_config = 18 [(.google.api.field_behavior) = OPTIONAL];
4257      * </code>
4258      */
setAutoscalingConfig(com.google.cloud.dataproc.v1.AutoscalingConfig value)4259     public Builder setAutoscalingConfig(com.google.cloud.dataproc.v1.AutoscalingConfig value) {
4260       if (autoscalingConfigBuilder_ == null) {
4261         if (value == null) {
4262           throw new NullPointerException();
4263         }
4264         autoscalingConfig_ = value;
4265       } else {
4266         autoscalingConfigBuilder_.setMessage(value);
4267       }
4268       bitField0_ |= 0x00000200;
4269       onChanged();
4270       return this;
4271     }
4272     /**
4273      *
4274      *
4275      * <pre>
4276      * Optional. Autoscaling config for the policy associated with the cluster.
4277      * Cluster does not autoscale if this field is unset.
4278      * </pre>
4279      *
4280      * <code>
4281      * .google.cloud.dataproc.v1.AutoscalingConfig autoscaling_config = 18 [(.google.api.field_behavior) = OPTIONAL];
4282      * </code>
4283      */
setAutoscalingConfig( com.google.cloud.dataproc.v1.AutoscalingConfig.Builder builderForValue)4284     public Builder setAutoscalingConfig(
4285         com.google.cloud.dataproc.v1.AutoscalingConfig.Builder builderForValue) {
4286       if (autoscalingConfigBuilder_ == null) {
4287         autoscalingConfig_ = builderForValue.build();
4288       } else {
4289         autoscalingConfigBuilder_.setMessage(builderForValue.build());
4290       }
4291       bitField0_ |= 0x00000200;
4292       onChanged();
4293       return this;
4294     }
4295     /**
4296      *
4297      *
4298      * <pre>
4299      * Optional. Autoscaling config for the policy associated with the cluster.
4300      * Cluster does not autoscale if this field is unset.
4301      * </pre>
4302      *
4303      * <code>
4304      * .google.cloud.dataproc.v1.AutoscalingConfig autoscaling_config = 18 [(.google.api.field_behavior) = OPTIONAL];
4305      * </code>
4306      */
mergeAutoscalingConfig(com.google.cloud.dataproc.v1.AutoscalingConfig value)4307     public Builder mergeAutoscalingConfig(com.google.cloud.dataproc.v1.AutoscalingConfig value) {
4308       if (autoscalingConfigBuilder_ == null) {
4309         if (((bitField0_ & 0x00000200) != 0)
4310             && autoscalingConfig_ != null
4311             && autoscalingConfig_
4312                 != com.google.cloud.dataproc.v1.AutoscalingConfig.getDefaultInstance()) {
4313           getAutoscalingConfigBuilder().mergeFrom(value);
4314         } else {
4315           autoscalingConfig_ = value;
4316         }
4317       } else {
4318         autoscalingConfigBuilder_.mergeFrom(value);
4319       }
4320       bitField0_ |= 0x00000200;
4321       onChanged();
4322       return this;
4323     }
4324     /**
4325      *
4326      *
4327      * <pre>
4328      * Optional. Autoscaling config for the policy associated with the cluster.
4329      * Cluster does not autoscale if this field is unset.
4330      * </pre>
4331      *
4332      * <code>
4333      * .google.cloud.dataproc.v1.AutoscalingConfig autoscaling_config = 18 [(.google.api.field_behavior) = OPTIONAL];
4334      * </code>
4335      */
clearAutoscalingConfig()4336     public Builder clearAutoscalingConfig() {
4337       bitField0_ = (bitField0_ & ~0x00000200);
4338       autoscalingConfig_ = null;
4339       if (autoscalingConfigBuilder_ != null) {
4340         autoscalingConfigBuilder_.dispose();
4341         autoscalingConfigBuilder_ = null;
4342       }
4343       onChanged();
4344       return this;
4345     }
4346     /**
4347      *
4348      *
4349      * <pre>
4350      * Optional. Autoscaling config for the policy associated with the cluster.
4351      * Cluster does not autoscale if this field is unset.
4352      * </pre>
4353      *
4354      * <code>
4355      * .google.cloud.dataproc.v1.AutoscalingConfig autoscaling_config = 18 [(.google.api.field_behavior) = OPTIONAL];
4356      * </code>
4357      */
getAutoscalingConfigBuilder()4358     public com.google.cloud.dataproc.v1.AutoscalingConfig.Builder getAutoscalingConfigBuilder() {
4359       bitField0_ |= 0x00000200;
4360       onChanged();
4361       return getAutoscalingConfigFieldBuilder().getBuilder();
4362     }
4363     /**
4364      *
4365      *
4366      * <pre>
4367      * Optional. Autoscaling config for the policy associated with the cluster.
4368      * Cluster does not autoscale if this field is unset.
4369      * </pre>
4370      *
4371      * <code>
4372      * .google.cloud.dataproc.v1.AutoscalingConfig autoscaling_config = 18 [(.google.api.field_behavior) = OPTIONAL];
4373      * </code>
4374      */
getAutoscalingConfigOrBuilder()4375     public com.google.cloud.dataproc.v1.AutoscalingConfigOrBuilder getAutoscalingConfigOrBuilder() {
4376       if (autoscalingConfigBuilder_ != null) {
4377         return autoscalingConfigBuilder_.getMessageOrBuilder();
4378       } else {
4379         return autoscalingConfig_ == null
4380             ? com.google.cloud.dataproc.v1.AutoscalingConfig.getDefaultInstance()
4381             : autoscalingConfig_;
4382       }
4383     }
4384     /**
4385      *
4386      *
4387      * <pre>
4388      * Optional. Autoscaling config for the policy associated with the cluster.
4389      * Cluster does not autoscale if this field is unset.
4390      * </pre>
4391      *
4392      * <code>
4393      * .google.cloud.dataproc.v1.AutoscalingConfig autoscaling_config = 18 [(.google.api.field_behavior) = OPTIONAL];
4394      * </code>
4395      */
4396     private com.google.protobuf.SingleFieldBuilderV3<
4397             com.google.cloud.dataproc.v1.AutoscalingConfig,
4398             com.google.cloud.dataproc.v1.AutoscalingConfig.Builder,
4399             com.google.cloud.dataproc.v1.AutoscalingConfigOrBuilder>
getAutoscalingConfigFieldBuilder()4400         getAutoscalingConfigFieldBuilder() {
4401       if (autoscalingConfigBuilder_ == null) {
4402         autoscalingConfigBuilder_ =
4403             new com.google.protobuf.SingleFieldBuilderV3<
4404                 com.google.cloud.dataproc.v1.AutoscalingConfig,
4405                 com.google.cloud.dataproc.v1.AutoscalingConfig.Builder,
4406                 com.google.cloud.dataproc.v1.AutoscalingConfigOrBuilder>(
4407                 getAutoscalingConfig(), getParentForChildren(), isClean());
4408         autoscalingConfig_ = null;
4409       }
4410       return autoscalingConfigBuilder_;
4411     }
4412 
4413     private com.google.cloud.dataproc.v1.SecurityConfig securityConfig_;
4414     private com.google.protobuf.SingleFieldBuilderV3<
4415             com.google.cloud.dataproc.v1.SecurityConfig,
4416             com.google.cloud.dataproc.v1.SecurityConfig.Builder,
4417             com.google.cloud.dataproc.v1.SecurityConfigOrBuilder>
4418         securityConfigBuilder_;
4419     /**
4420      *
4421      *
4422      * <pre>
4423      * Optional. Security settings for the cluster.
4424      * </pre>
4425      *
4426      * <code>
4427      * .google.cloud.dataproc.v1.SecurityConfig security_config = 16 [(.google.api.field_behavior) = OPTIONAL];
4428      * </code>
4429      *
4430      * @return Whether the securityConfig field is set.
4431      */
hasSecurityConfig()4432     public boolean hasSecurityConfig() {
4433       return ((bitField0_ & 0x00000400) != 0);
4434     }
4435     /**
4436      *
4437      *
4438      * <pre>
4439      * Optional. Security settings for the cluster.
4440      * </pre>
4441      *
4442      * <code>
4443      * .google.cloud.dataproc.v1.SecurityConfig security_config = 16 [(.google.api.field_behavior) = OPTIONAL];
4444      * </code>
4445      *
4446      * @return The securityConfig.
4447      */
getSecurityConfig()4448     public com.google.cloud.dataproc.v1.SecurityConfig getSecurityConfig() {
4449       if (securityConfigBuilder_ == null) {
4450         return securityConfig_ == null
4451             ? com.google.cloud.dataproc.v1.SecurityConfig.getDefaultInstance()
4452             : securityConfig_;
4453       } else {
4454         return securityConfigBuilder_.getMessage();
4455       }
4456     }
4457     /**
4458      *
4459      *
4460      * <pre>
4461      * Optional. Security settings for the cluster.
4462      * </pre>
4463      *
4464      * <code>
4465      * .google.cloud.dataproc.v1.SecurityConfig security_config = 16 [(.google.api.field_behavior) = OPTIONAL];
4466      * </code>
4467      */
setSecurityConfig(com.google.cloud.dataproc.v1.SecurityConfig value)4468     public Builder setSecurityConfig(com.google.cloud.dataproc.v1.SecurityConfig value) {
4469       if (securityConfigBuilder_ == null) {
4470         if (value == null) {
4471           throw new NullPointerException();
4472         }
4473         securityConfig_ = value;
4474       } else {
4475         securityConfigBuilder_.setMessage(value);
4476       }
4477       bitField0_ |= 0x00000400;
4478       onChanged();
4479       return this;
4480     }
4481     /**
4482      *
4483      *
4484      * <pre>
4485      * Optional. Security settings for the cluster.
4486      * </pre>
4487      *
4488      * <code>
4489      * .google.cloud.dataproc.v1.SecurityConfig security_config = 16 [(.google.api.field_behavior) = OPTIONAL];
4490      * </code>
4491      */
setSecurityConfig( com.google.cloud.dataproc.v1.SecurityConfig.Builder builderForValue)4492     public Builder setSecurityConfig(
4493         com.google.cloud.dataproc.v1.SecurityConfig.Builder builderForValue) {
4494       if (securityConfigBuilder_ == null) {
4495         securityConfig_ = builderForValue.build();
4496       } else {
4497         securityConfigBuilder_.setMessage(builderForValue.build());
4498       }
4499       bitField0_ |= 0x00000400;
4500       onChanged();
4501       return this;
4502     }
4503     /**
4504      *
4505      *
4506      * <pre>
4507      * Optional. Security settings for the cluster.
4508      * </pre>
4509      *
4510      * <code>
4511      * .google.cloud.dataproc.v1.SecurityConfig security_config = 16 [(.google.api.field_behavior) = OPTIONAL];
4512      * </code>
4513      */
mergeSecurityConfig(com.google.cloud.dataproc.v1.SecurityConfig value)4514     public Builder mergeSecurityConfig(com.google.cloud.dataproc.v1.SecurityConfig value) {
4515       if (securityConfigBuilder_ == null) {
4516         if (((bitField0_ & 0x00000400) != 0)
4517             && securityConfig_ != null
4518             && securityConfig_
4519                 != com.google.cloud.dataproc.v1.SecurityConfig.getDefaultInstance()) {
4520           getSecurityConfigBuilder().mergeFrom(value);
4521         } else {
4522           securityConfig_ = value;
4523         }
4524       } else {
4525         securityConfigBuilder_.mergeFrom(value);
4526       }
4527       bitField0_ |= 0x00000400;
4528       onChanged();
4529       return this;
4530     }
4531     /**
4532      *
4533      *
4534      * <pre>
4535      * Optional. Security settings for the cluster.
4536      * </pre>
4537      *
4538      * <code>
4539      * .google.cloud.dataproc.v1.SecurityConfig security_config = 16 [(.google.api.field_behavior) = OPTIONAL];
4540      * </code>
4541      */
clearSecurityConfig()4542     public Builder clearSecurityConfig() {
4543       bitField0_ = (bitField0_ & ~0x00000400);
4544       securityConfig_ = null;
4545       if (securityConfigBuilder_ != null) {
4546         securityConfigBuilder_.dispose();
4547         securityConfigBuilder_ = null;
4548       }
4549       onChanged();
4550       return this;
4551     }
4552     /**
4553      *
4554      *
4555      * <pre>
4556      * Optional. Security settings for the cluster.
4557      * </pre>
4558      *
4559      * <code>
4560      * .google.cloud.dataproc.v1.SecurityConfig security_config = 16 [(.google.api.field_behavior) = OPTIONAL];
4561      * </code>
4562      */
getSecurityConfigBuilder()4563     public com.google.cloud.dataproc.v1.SecurityConfig.Builder getSecurityConfigBuilder() {
4564       bitField0_ |= 0x00000400;
4565       onChanged();
4566       return getSecurityConfigFieldBuilder().getBuilder();
4567     }
4568     /**
4569      *
4570      *
4571      * <pre>
4572      * Optional. Security settings for the cluster.
4573      * </pre>
4574      *
4575      * <code>
4576      * .google.cloud.dataproc.v1.SecurityConfig security_config = 16 [(.google.api.field_behavior) = OPTIONAL];
4577      * </code>
4578      */
getSecurityConfigOrBuilder()4579     public com.google.cloud.dataproc.v1.SecurityConfigOrBuilder getSecurityConfigOrBuilder() {
4580       if (securityConfigBuilder_ != null) {
4581         return securityConfigBuilder_.getMessageOrBuilder();
4582       } else {
4583         return securityConfig_ == null
4584             ? com.google.cloud.dataproc.v1.SecurityConfig.getDefaultInstance()
4585             : securityConfig_;
4586       }
4587     }
4588     /**
4589      *
4590      *
4591      * <pre>
4592      * Optional. Security settings for the cluster.
4593      * </pre>
4594      *
4595      * <code>
4596      * .google.cloud.dataproc.v1.SecurityConfig security_config = 16 [(.google.api.field_behavior) = OPTIONAL];
4597      * </code>
4598      */
4599     private com.google.protobuf.SingleFieldBuilderV3<
4600             com.google.cloud.dataproc.v1.SecurityConfig,
4601             com.google.cloud.dataproc.v1.SecurityConfig.Builder,
4602             com.google.cloud.dataproc.v1.SecurityConfigOrBuilder>
getSecurityConfigFieldBuilder()4603         getSecurityConfigFieldBuilder() {
4604       if (securityConfigBuilder_ == null) {
4605         securityConfigBuilder_ =
4606             new com.google.protobuf.SingleFieldBuilderV3<
4607                 com.google.cloud.dataproc.v1.SecurityConfig,
4608                 com.google.cloud.dataproc.v1.SecurityConfig.Builder,
4609                 com.google.cloud.dataproc.v1.SecurityConfigOrBuilder>(
4610                 getSecurityConfig(), getParentForChildren(), isClean());
4611         securityConfig_ = null;
4612       }
4613       return securityConfigBuilder_;
4614     }
4615 
4616     private com.google.cloud.dataproc.v1.LifecycleConfig lifecycleConfig_;
4617     private com.google.protobuf.SingleFieldBuilderV3<
4618             com.google.cloud.dataproc.v1.LifecycleConfig,
4619             com.google.cloud.dataproc.v1.LifecycleConfig.Builder,
4620             com.google.cloud.dataproc.v1.LifecycleConfigOrBuilder>
4621         lifecycleConfigBuilder_;
4622     /**
4623      *
4624      *
4625      * <pre>
4626      * Optional. Lifecycle setting for the cluster.
4627      * </pre>
4628      *
4629      * <code>
4630      * .google.cloud.dataproc.v1.LifecycleConfig lifecycle_config = 17 [(.google.api.field_behavior) = OPTIONAL];
4631      * </code>
4632      *
4633      * @return Whether the lifecycleConfig field is set.
4634      */
hasLifecycleConfig()4635     public boolean hasLifecycleConfig() {
4636       return ((bitField0_ & 0x00000800) != 0);
4637     }
4638     /**
4639      *
4640      *
4641      * <pre>
4642      * Optional. Lifecycle setting for the cluster.
4643      * </pre>
4644      *
4645      * <code>
4646      * .google.cloud.dataproc.v1.LifecycleConfig lifecycle_config = 17 [(.google.api.field_behavior) = OPTIONAL];
4647      * </code>
4648      *
4649      * @return The lifecycleConfig.
4650      */
getLifecycleConfig()4651     public com.google.cloud.dataproc.v1.LifecycleConfig getLifecycleConfig() {
4652       if (lifecycleConfigBuilder_ == null) {
4653         return lifecycleConfig_ == null
4654             ? com.google.cloud.dataproc.v1.LifecycleConfig.getDefaultInstance()
4655             : lifecycleConfig_;
4656       } else {
4657         return lifecycleConfigBuilder_.getMessage();
4658       }
4659     }
4660     /**
4661      *
4662      *
4663      * <pre>
4664      * Optional. Lifecycle setting for the cluster.
4665      * </pre>
4666      *
4667      * <code>
4668      * .google.cloud.dataproc.v1.LifecycleConfig lifecycle_config = 17 [(.google.api.field_behavior) = OPTIONAL];
4669      * </code>
4670      */
setLifecycleConfig(com.google.cloud.dataproc.v1.LifecycleConfig value)4671     public Builder setLifecycleConfig(com.google.cloud.dataproc.v1.LifecycleConfig value) {
4672       if (lifecycleConfigBuilder_ == null) {
4673         if (value == null) {
4674           throw new NullPointerException();
4675         }
4676         lifecycleConfig_ = value;
4677       } else {
4678         lifecycleConfigBuilder_.setMessage(value);
4679       }
4680       bitField0_ |= 0x00000800;
4681       onChanged();
4682       return this;
4683     }
4684     /**
4685      *
4686      *
4687      * <pre>
4688      * Optional. Lifecycle setting for the cluster.
4689      * </pre>
4690      *
4691      * <code>
4692      * .google.cloud.dataproc.v1.LifecycleConfig lifecycle_config = 17 [(.google.api.field_behavior) = OPTIONAL];
4693      * </code>
4694      */
setLifecycleConfig( com.google.cloud.dataproc.v1.LifecycleConfig.Builder builderForValue)4695     public Builder setLifecycleConfig(
4696         com.google.cloud.dataproc.v1.LifecycleConfig.Builder builderForValue) {
4697       if (lifecycleConfigBuilder_ == null) {
4698         lifecycleConfig_ = builderForValue.build();
4699       } else {
4700         lifecycleConfigBuilder_.setMessage(builderForValue.build());
4701       }
4702       bitField0_ |= 0x00000800;
4703       onChanged();
4704       return this;
4705     }
4706     /**
4707      *
4708      *
4709      * <pre>
4710      * Optional. Lifecycle setting for the cluster.
4711      * </pre>
4712      *
4713      * <code>
4714      * .google.cloud.dataproc.v1.LifecycleConfig lifecycle_config = 17 [(.google.api.field_behavior) = OPTIONAL];
4715      * </code>
4716      */
mergeLifecycleConfig(com.google.cloud.dataproc.v1.LifecycleConfig value)4717     public Builder mergeLifecycleConfig(com.google.cloud.dataproc.v1.LifecycleConfig value) {
4718       if (lifecycleConfigBuilder_ == null) {
4719         if (((bitField0_ & 0x00000800) != 0)
4720             && lifecycleConfig_ != null
4721             && lifecycleConfig_
4722                 != com.google.cloud.dataproc.v1.LifecycleConfig.getDefaultInstance()) {
4723           getLifecycleConfigBuilder().mergeFrom(value);
4724         } else {
4725           lifecycleConfig_ = value;
4726         }
4727       } else {
4728         lifecycleConfigBuilder_.mergeFrom(value);
4729       }
4730       bitField0_ |= 0x00000800;
4731       onChanged();
4732       return this;
4733     }
4734     /**
4735      *
4736      *
4737      * <pre>
4738      * Optional. Lifecycle setting for the cluster.
4739      * </pre>
4740      *
4741      * <code>
4742      * .google.cloud.dataproc.v1.LifecycleConfig lifecycle_config = 17 [(.google.api.field_behavior) = OPTIONAL];
4743      * </code>
4744      */
clearLifecycleConfig()4745     public Builder clearLifecycleConfig() {
4746       bitField0_ = (bitField0_ & ~0x00000800);
4747       lifecycleConfig_ = null;
4748       if (lifecycleConfigBuilder_ != null) {
4749         lifecycleConfigBuilder_.dispose();
4750         lifecycleConfigBuilder_ = null;
4751       }
4752       onChanged();
4753       return this;
4754     }
4755     /**
4756      *
4757      *
4758      * <pre>
4759      * Optional. Lifecycle setting for the cluster.
4760      * </pre>
4761      *
4762      * <code>
4763      * .google.cloud.dataproc.v1.LifecycleConfig lifecycle_config = 17 [(.google.api.field_behavior) = OPTIONAL];
4764      * </code>
4765      */
getLifecycleConfigBuilder()4766     public com.google.cloud.dataproc.v1.LifecycleConfig.Builder getLifecycleConfigBuilder() {
4767       bitField0_ |= 0x00000800;
4768       onChanged();
4769       return getLifecycleConfigFieldBuilder().getBuilder();
4770     }
4771     /**
4772      *
4773      *
4774      * <pre>
4775      * Optional. Lifecycle setting for the cluster.
4776      * </pre>
4777      *
4778      * <code>
4779      * .google.cloud.dataproc.v1.LifecycleConfig lifecycle_config = 17 [(.google.api.field_behavior) = OPTIONAL];
4780      * </code>
4781      */
getLifecycleConfigOrBuilder()4782     public com.google.cloud.dataproc.v1.LifecycleConfigOrBuilder getLifecycleConfigOrBuilder() {
4783       if (lifecycleConfigBuilder_ != null) {
4784         return lifecycleConfigBuilder_.getMessageOrBuilder();
4785       } else {
4786         return lifecycleConfig_ == null
4787             ? com.google.cloud.dataproc.v1.LifecycleConfig.getDefaultInstance()
4788             : lifecycleConfig_;
4789       }
4790     }
4791     /**
4792      *
4793      *
4794      * <pre>
4795      * Optional. Lifecycle setting for the cluster.
4796      * </pre>
4797      *
4798      * <code>
4799      * .google.cloud.dataproc.v1.LifecycleConfig lifecycle_config = 17 [(.google.api.field_behavior) = OPTIONAL];
4800      * </code>
4801      */
4802     private com.google.protobuf.SingleFieldBuilderV3<
4803             com.google.cloud.dataproc.v1.LifecycleConfig,
4804             com.google.cloud.dataproc.v1.LifecycleConfig.Builder,
4805             com.google.cloud.dataproc.v1.LifecycleConfigOrBuilder>
getLifecycleConfigFieldBuilder()4806         getLifecycleConfigFieldBuilder() {
4807       if (lifecycleConfigBuilder_ == null) {
4808         lifecycleConfigBuilder_ =
4809             new com.google.protobuf.SingleFieldBuilderV3<
4810                 com.google.cloud.dataproc.v1.LifecycleConfig,
4811                 com.google.cloud.dataproc.v1.LifecycleConfig.Builder,
4812                 com.google.cloud.dataproc.v1.LifecycleConfigOrBuilder>(
4813                 getLifecycleConfig(), getParentForChildren(), isClean());
4814         lifecycleConfig_ = null;
4815       }
4816       return lifecycleConfigBuilder_;
4817     }
4818 
4819     private com.google.cloud.dataproc.v1.EndpointConfig endpointConfig_;
4820     private com.google.protobuf.SingleFieldBuilderV3<
4821             com.google.cloud.dataproc.v1.EndpointConfig,
4822             com.google.cloud.dataproc.v1.EndpointConfig.Builder,
4823             com.google.cloud.dataproc.v1.EndpointConfigOrBuilder>
4824         endpointConfigBuilder_;
4825     /**
4826      *
4827      *
4828      * <pre>
4829      * Optional. Port/endpoint configuration for this cluster
4830      * </pre>
4831      *
4832      * <code>
4833      * .google.cloud.dataproc.v1.EndpointConfig endpoint_config = 19 [(.google.api.field_behavior) = OPTIONAL];
4834      * </code>
4835      *
4836      * @return Whether the endpointConfig field is set.
4837      */
hasEndpointConfig()4838     public boolean hasEndpointConfig() {
4839       return ((bitField0_ & 0x00001000) != 0);
4840     }
4841     /**
4842      *
4843      *
4844      * <pre>
4845      * Optional. Port/endpoint configuration for this cluster
4846      * </pre>
4847      *
4848      * <code>
4849      * .google.cloud.dataproc.v1.EndpointConfig endpoint_config = 19 [(.google.api.field_behavior) = OPTIONAL];
4850      * </code>
4851      *
4852      * @return The endpointConfig.
4853      */
getEndpointConfig()4854     public com.google.cloud.dataproc.v1.EndpointConfig getEndpointConfig() {
4855       if (endpointConfigBuilder_ == null) {
4856         return endpointConfig_ == null
4857             ? com.google.cloud.dataproc.v1.EndpointConfig.getDefaultInstance()
4858             : endpointConfig_;
4859       } else {
4860         return endpointConfigBuilder_.getMessage();
4861       }
4862     }
4863     /**
4864      *
4865      *
4866      * <pre>
4867      * Optional. Port/endpoint configuration for this cluster
4868      * </pre>
4869      *
4870      * <code>
4871      * .google.cloud.dataproc.v1.EndpointConfig endpoint_config = 19 [(.google.api.field_behavior) = OPTIONAL];
4872      * </code>
4873      */
setEndpointConfig(com.google.cloud.dataproc.v1.EndpointConfig value)4874     public Builder setEndpointConfig(com.google.cloud.dataproc.v1.EndpointConfig value) {
4875       if (endpointConfigBuilder_ == null) {
4876         if (value == null) {
4877           throw new NullPointerException();
4878         }
4879         endpointConfig_ = value;
4880       } else {
4881         endpointConfigBuilder_.setMessage(value);
4882       }
4883       bitField0_ |= 0x00001000;
4884       onChanged();
4885       return this;
4886     }
4887     /**
4888      *
4889      *
4890      * <pre>
4891      * Optional. Port/endpoint configuration for this cluster
4892      * </pre>
4893      *
4894      * <code>
4895      * .google.cloud.dataproc.v1.EndpointConfig endpoint_config = 19 [(.google.api.field_behavior) = OPTIONAL];
4896      * </code>
4897      */
setEndpointConfig( com.google.cloud.dataproc.v1.EndpointConfig.Builder builderForValue)4898     public Builder setEndpointConfig(
4899         com.google.cloud.dataproc.v1.EndpointConfig.Builder builderForValue) {
4900       if (endpointConfigBuilder_ == null) {
4901         endpointConfig_ = builderForValue.build();
4902       } else {
4903         endpointConfigBuilder_.setMessage(builderForValue.build());
4904       }
4905       bitField0_ |= 0x00001000;
4906       onChanged();
4907       return this;
4908     }
4909     /**
4910      *
4911      *
4912      * <pre>
4913      * Optional. Port/endpoint configuration for this cluster
4914      * </pre>
4915      *
4916      * <code>
4917      * .google.cloud.dataproc.v1.EndpointConfig endpoint_config = 19 [(.google.api.field_behavior) = OPTIONAL];
4918      * </code>
4919      */
mergeEndpointConfig(com.google.cloud.dataproc.v1.EndpointConfig value)4920     public Builder mergeEndpointConfig(com.google.cloud.dataproc.v1.EndpointConfig value) {
4921       if (endpointConfigBuilder_ == null) {
4922         if (((bitField0_ & 0x00001000) != 0)
4923             && endpointConfig_ != null
4924             && endpointConfig_
4925                 != com.google.cloud.dataproc.v1.EndpointConfig.getDefaultInstance()) {
4926           getEndpointConfigBuilder().mergeFrom(value);
4927         } else {
4928           endpointConfig_ = value;
4929         }
4930       } else {
4931         endpointConfigBuilder_.mergeFrom(value);
4932       }
4933       bitField0_ |= 0x00001000;
4934       onChanged();
4935       return this;
4936     }
4937     /**
4938      *
4939      *
4940      * <pre>
4941      * Optional. Port/endpoint configuration for this cluster
4942      * </pre>
4943      *
4944      * <code>
4945      * .google.cloud.dataproc.v1.EndpointConfig endpoint_config = 19 [(.google.api.field_behavior) = OPTIONAL];
4946      * </code>
4947      */
clearEndpointConfig()4948     public Builder clearEndpointConfig() {
4949       bitField0_ = (bitField0_ & ~0x00001000);
4950       endpointConfig_ = null;
4951       if (endpointConfigBuilder_ != null) {
4952         endpointConfigBuilder_.dispose();
4953         endpointConfigBuilder_ = null;
4954       }
4955       onChanged();
4956       return this;
4957     }
4958     /**
4959      *
4960      *
4961      * <pre>
4962      * Optional. Port/endpoint configuration for this cluster
4963      * </pre>
4964      *
4965      * <code>
4966      * .google.cloud.dataproc.v1.EndpointConfig endpoint_config = 19 [(.google.api.field_behavior) = OPTIONAL];
4967      * </code>
4968      */
getEndpointConfigBuilder()4969     public com.google.cloud.dataproc.v1.EndpointConfig.Builder getEndpointConfigBuilder() {
4970       bitField0_ |= 0x00001000;
4971       onChanged();
4972       return getEndpointConfigFieldBuilder().getBuilder();
4973     }
4974     /**
4975      *
4976      *
4977      * <pre>
4978      * Optional. Port/endpoint configuration for this cluster
4979      * </pre>
4980      *
4981      * <code>
4982      * .google.cloud.dataproc.v1.EndpointConfig endpoint_config = 19 [(.google.api.field_behavior) = OPTIONAL];
4983      * </code>
4984      */
getEndpointConfigOrBuilder()4985     public com.google.cloud.dataproc.v1.EndpointConfigOrBuilder getEndpointConfigOrBuilder() {
4986       if (endpointConfigBuilder_ != null) {
4987         return endpointConfigBuilder_.getMessageOrBuilder();
4988       } else {
4989         return endpointConfig_ == null
4990             ? com.google.cloud.dataproc.v1.EndpointConfig.getDefaultInstance()
4991             : endpointConfig_;
4992       }
4993     }
4994     /**
4995      *
4996      *
4997      * <pre>
4998      * Optional. Port/endpoint configuration for this cluster
4999      * </pre>
5000      *
5001      * <code>
5002      * .google.cloud.dataproc.v1.EndpointConfig endpoint_config = 19 [(.google.api.field_behavior) = OPTIONAL];
5003      * </code>
5004      */
5005     private com.google.protobuf.SingleFieldBuilderV3<
5006             com.google.cloud.dataproc.v1.EndpointConfig,
5007             com.google.cloud.dataproc.v1.EndpointConfig.Builder,
5008             com.google.cloud.dataproc.v1.EndpointConfigOrBuilder>
getEndpointConfigFieldBuilder()5009         getEndpointConfigFieldBuilder() {
5010       if (endpointConfigBuilder_ == null) {
5011         endpointConfigBuilder_ =
5012             new com.google.protobuf.SingleFieldBuilderV3<
5013                 com.google.cloud.dataproc.v1.EndpointConfig,
5014                 com.google.cloud.dataproc.v1.EndpointConfig.Builder,
5015                 com.google.cloud.dataproc.v1.EndpointConfigOrBuilder>(
5016                 getEndpointConfig(), getParentForChildren(), isClean());
5017         endpointConfig_ = null;
5018       }
5019       return endpointConfigBuilder_;
5020     }
5021 
5022     private com.google.cloud.dataproc.v1.MetastoreConfig metastoreConfig_;
5023     private com.google.protobuf.SingleFieldBuilderV3<
5024             com.google.cloud.dataproc.v1.MetastoreConfig,
5025             com.google.cloud.dataproc.v1.MetastoreConfig.Builder,
5026             com.google.cloud.dataproc.v1.MetastoreConfigOrBuilder>
5027         metastoreConfigBuilder_;
5028     /**
5029      *
5030      *
5031      * <pre>
5032      * Optional. Metastore configuration.
5033      * </pre>
5034      *
5035      * <code>
5036      * .google.cloud.dataproc.v1.MetastoreConfig metastore_config = 20 [(.google.api.field_behavior) = OPTIONAL];
5037      * </code>
5038      *
5039      * @return Whether the metastoreConfig field is set.
5040      */
hasMetastoreConfig()5041     public boolean hasMetastoreConfig() {
5042       return ((bitField0_ & 0x00002000) != 0);
5043     }
5044     /**
5045      *
5046      *
5047      * <pre>
5048      * Optional. Metastore configuration.
5049      * </pre>
5050      *
5051      * <code>
5052      * .google.cloud.dataproc.v1.MetastoreConfig metastore_config = 20 [(.google.api.field_behavior) = OPTIONAL];
5053      * </code>
5054      *
5055      * @return The metastoreConfig.
5056      */
getMetastoreConfig()5057     public com.google.cloud.dataproc.v1.MetastoreConfig getMetastoreConfig() {
5058       if (metastoreConfigBuilder_ == null) {
5059         return metastoreConfig_ == null
5060             ? com.google.cloud.dataproc.v1.MetastoreConfig.getDefaultInstance()
5061             : metastoreConfig_;
5062       } else {
5063         return metastoreConfigBuilder_.getMessage();
5064       }
5065     }
5066     /**
5067      *
5068      *
5069      * <pre>
5070      * Optional. Metastore configuration.
5071      * </pre>
5072      *
5073      * <code>
5074      * .google.cloud.dataproc.v1.MetastoreConfig metastore_config = 20 [(.google.api.field_behavior) = OPTIONAL];
5075      * </code>
5076      */
setMetastoreConfig(com.google.cloud.dataproc.v1.MetastoreConfig value)5077     public Builder setMetastoreConfig(com.google.cloud.dataproc.v1.MetastoreConfig value) {
5078       if (metastoreConfigBuilder_ == null) {
5079         if (value == null) {
5080           throw new NullPointerException();
5081         }
5082         metastoreConfig_ = value;
5083       } else {
5084         metastoreConfigBuilder_.setMessage(value);
5085       }
5086       bitField0_ |= 0x00002000;
5087       onChanged();
5088       return this;
5089     }
5090     /**
5091      *
5092      *
5093      * <pre>
5094      * Optional. Metastore configuration.
5095      * </pre>
5096      *
5097      * <code>
5098      * .google.cloud.dataproc.v1.MetastoreConfig metastore_config = 20 [(.google.api.field_behavior) = OPTIONAL];
5099      * </code>
5100      */
setMetastoreConfig( com.google.cloud.dataproc.v1.MetastoreConfig.Builder builderForValue)5101     public Builder setMetastoreConfig(
5102         com.google.cloud.dataproc.v1.MetastoreConfig.Builder builderForValue) {
5103       if (metastoreConfigBuilder_ == null) {
5104         metastoreConfig_ = builderForValue.build();
5105       } else {
5106         metastoreConfigBuilder_.setMessage(builderForValue.build());
5107       }
5108       bitField0_ |= 0x00002000;
5109       onChanged();
5110       return this;
5111     }
5112     /**
5113      *
5114      *
5115      * <pre>
5116      * Optional. Metastore configuration.
5117      * </pre>
5118      *
5119      * <code>
5120      * .google.cloud.dataproc.v1.MetastoreConfig metastore_config = 20 [(.google.api.field_behavior) = OPTIONAL];
5121      * </code>
5122      */
mergeMetastoreConfig(com.google.cloud.dataproc.v1.MetastoreConfig value)5123     public Builder mergeMetastoreConfig(com.google.cloud.dataproc.v1.MetastoreConfig value) {
5124       if (metastoreConfigBuilder_ == null) {
5125         if (((bitField0_ & 0x00002000) != 0)
5126             && metastoreConfig_ != null
5127             && metastoreConfig_
5128                 != com.google.cloud.dataproc.v1.MetastoreConfig.getDefaultInstance()) {
5129           getMetastoreConfigBuilder().mergeFrom(value);
5130         } else {
5131           metastoreConfig_ = value;
5132         }
5133       } else {
5134         metastoreConfigBuilder_.mergeFrom(value);
5135       }
5136       bitField0_ |= 0x00002000;
5137       onChanged();
5138       return this;
5139     }
5140     /**
5141      *
5142      *
5143      * <pre>
5144      * Optional. Metastore configuration.
5145      * </pre>
5146      *
5147      * <code>
5148      * .google.cloud.dataproc.v1.MetastoreConfig metastore_config = 20 [(.google.api.field_behavior) = OPTIONAL];
5149      * </code>
5150      */
clearMetastoreConfig()5151     public Builder clearMetastoreConfig() {
5152       bitField0_ = (bitField0_ & ~0x00002000);
5153       metastoreConfig_ = null;
5154       if (metastoreConfigBuilder_ != null) {
5155         metastoreConfigBuilder_.dispose();
5156         metastoreConfigBuilder_ = null;
5157       }
5158       onChanged();
5159       return this;
5160     }
5161     /**
5162      *
5163      *
5164      * <pre>
5165      * Optional. Metastore configuration.
5166      * </pre>
5167      *
5168      * <code>
5169      * .google.cloud.dataproc.v1.MetastoreConfig metastore_config = 20 [(.google.api.field_behavior) = OPTIONAL];
5170      * </code>
5171      */
getMetastoreConfigBuilder()5172     public com.google.cloud.dataproc.v1.MetastoreConfig.Builder getMetastoreConfigBuilder() {
5173       bitField0_ |= 0x00002000;
5174       onChanged();
5175       return getMetastoreConfigFieldBuilder().getBuilder();
5176     }
5177     /**
5178      *
5179      *
5180      * <pre>
5181      * Optional. Metastore configuration.
5182      * </pre>
5183      *
5184      * <code>
5185      * .google.cloud.dataproc.v1.MetastoreConfig metastore_config = 20 [(.google.api.field_behavior) = OPTIONAL];
5186      * </code>
5187      */
getMetastoreConfigOrBuilder()5188     public com.google.cloud.dataproc.v1.MetastoreConfigOrBuilder getMetastoreConfigOrBuilder() {
5189       if (metastoreConfigBuilder_ != null) {
5190         return metastoreConfigBuilder_.getMessageOrBuilder();
5191       } else {
5192         return metastoreConfig_ == null
5193             ? com.google.cloud.dataproc.v1.MetastoreConfig.getDefaultInstance()
5194             : metastoreConfig_;
5195       }
5196     }
5197     /**
5198      *
5199      *
5200      * <pre>
5201      * Optional. Metastore configuration.
5202      * </pre>
5203      *
5204      * <code>
5205      * .google.cloud.dataproc.v1.MetastoreConfig metastore_config = 20 [(.google.api.field_behavior) = OPTIONAL];
5206      * </code>
5207      */
5208     private com.google.protobuf.SingleFieldBuilderV3<
5209             com.google.cloud.dataproc.v1.MetastoreConfig,
5210             com.google.cloud.dataproc.v1.MetastoreConfig.Builder,
5211             com.google.cloud.dataproc.v1.MetastoreConfigOrBuilder>
getMetastoreConfigFieldBuilder()5212         getMetastoreConfigFieldBuilder() {
5213       if (metastoreConfigBuilder_ == null) {
5214         metastoreConfigBuilder_ =
5215             new com.google.protobuf.SingleFieldBuilderV3<
5216                 com.google.cloud.dataproc.v1.MetastoreConfig,
5217                 com.google.cloud.dataproc.v1.MetastoreConfig.Builder,
5218                 com.google.cloud.dataproc.v1.MetastoreConfigOrBuilder>(
5219                 getMetastoreConfig(), getParentForChildren(), isClean());
5220         metastoreConfig_ = null;
5221       }
5222       return metastoreConfigBuilder_;
5223     }
5224 
5225     private com.google.cloud.dataproc.v1.DataprocMetricConfig dataprocMetricConfig_;
5226     private com.google.protobuf.SingleFieldBuilderV3<
5227             com.google.cloud.dataproc.v1.DataprocMetricConfig,
5228             com.google.cloud.dataproc.v1.DataprocMetricConfig.Builder,
5229             com.google.cloud.dataproc.v1.DataprocMetricConfigOrBuilder>
5230         dataprocMetricConfigBuilder_;
5231     /**
5232      *
5233      *
5234      * <pre>
5235      * Optional. The config for Dataproc metrics.
5236      * </pre>
5237      *
5238      * <code>
5239      * .google.cloud.dataproc.v1.DataprocMetricConfig dataproc_metric_config = 23 [(.google.api.field_behavior) = OPTIONAL];
5240      * </code>
5241      *
5242      * @return Whether the dataprocMetricConfig field is set.
5243      */
hasDataprocMetricConfig()5244     public boolean hasDataprocMetricConfig() {
5245       return ((bitField0_ & 0x00004000) != 0);
5246     }
5247     /**
5248      *
5249      *
5250      * <pre>
5251      * Optional. The config for Dataproc metrics.
5252      * </pre>
5253      *
5254      * <code>
5255      * .google.cloud.dataproc.v1.DataprocMetricConfig dataproc_metric_config = 23 [(.google.api.field_behavior) = OPTIONAL];
5256      * </code>
5257      *
5258      * @return The dataprocMetricConfig.
5259      */
getDataprocMetricConfig()5260     public com.google.cloud.dataproc.v1.DataprocMetricConfig getDataprocMetricConfig() {
5261       if (dataprocMetricConfigBuilder_ == null) {
5262         return dataprocMetricConfig_ == null
5263             ? com.google.cloud.dataproc.v1.DataprocMetricConfig.getDefaultInstance()
5264             : dataprocMetricConfig_;
5265       } else {
5266         return dataprocMetricConfigBuilder_.getMessage();
5267       }
5268     }
5269     /**
5270      *
5271      *
5272      * <pre>
5273      * Optional. The config for Dataproc metrics.
5274      * </pre>
5275      *
5276      * <code>
5277      * .google.cloud.dataproc.v1.DataprocMetricConfig dataproc_metric_config = 23 [(.google.api.field_behavior) = OPTIONAL];
5278      * </code>
5279      */
setDataprocMetricConfig( com.google.cloud.dataproc.v1.DataprocMetricConfig value)5280     public Builder setDataprocMetricConfig(
5281         com.google.cloud.dataproc.v1.DataprocMetricConfig value) {
5282       if (dataprocMetricConfigBuilder_ == null) {
5283         if (value == null) {
5284           throw new NullPointerException();
5285         }
5286         dataprocMetricConfig_ = value;
5287       } else {
5288         dataprocMetricConfigBuilder_.setMessage(value);
5289       }
5290       bitField0_ |= 0x00004000;
5291       onChanged();
5292       return this;
5293     }
5294     /**
5295      *
5296      *
5297      * <pre>
5298      * Optional. The config for Dataproc metrics.
5299      * </pre>
5300      *
5301      * <code>
5302      * .google.cloud.dataproc.v1.DataprocMetricConfig dataproc_metric_config = 23 [(.google.api.field_behavior) = OPTIONAL];
5303      * </code>
5304      */
setDataprocMetricConfig( com.google.cloud.dataproc.v1.DataprocMetricConfig.Builder builderForValue)5305     public Builder setDataprocMetricConfig(
5306         com.google.cloud.dataproc.v1.DataprocMetricConfig.Builder builderForValue) {
5307       if (dataprocMetricConfigBuilder_ == null) {
5308         dataprocMetricConfig_ = builderForValue.build();
5309       } else {
5310         dataprocMetricConfigBuilder_.setMessage(builderForValue.build());
5311       }
5312       bitField0_ |= 0x00004000;
5313       onChanged();
5314       return this;
5315     }
5316     /**
5317      *
5318      *
5319      * <pre>
5320      * Optional. The config for Dataproc metrics.
5321      * </pre>
5322      *
5323      * <code>
5324      * .google.cloud.dataproc.v1.DataprocMetricConfig dataproc_metric_config = 23 [(.google.api.field_behavior) = OPTIONAL];
5325      * </code>
5326      */
mergeDataprocMetricConfig( com.google.cloud.dataproc.v1.DataprocMetricConfig value)5327     public Builder mergeDataprocMetricConfig(
5328         com.google.cloud.dataproc.v1.DataprocMetricConfig value) {
5329       if (dataprocMetricConfigBuilder_ == null) {
5330         if (((bitField0_ & 0x00004000) != 0)
5331             && dataprocMetricConfig_ != null
5332             && dataprocMetricConfig_
5333                 != com.google.cloud.dataproc.v1.DataprocMetricConfig.getDefaultInstance()) {
5334           getDataprocMetricConfigBuilder().mergeFrom(value);
5335         } else {
5336           dataprocMetricConfig_ = value;
5337         }
5338       } else {
5339         dataprocMetricConfigBuilder_.mergeFrom(value);
5340       }
5341       bitField0_ |= 0x00004000;
5342       onChanged();
5343       return this;
5344     }
5345     /**
5346      *
5347      *
5348      * <pre>
5349      * Optional. The config for Dataproc metrics.
5350      * </pre>
5351      *
5352      * <code>
5353      * .google.cloud.dataproc.v1.DataprocMetricConfig dataproc_metric_config = 23 [(.google.api.field_behavior) = OPTIONAL];
5354      * </code>
5355      */
clearDataprocMetricConfig()5356     public Builder clearDataprocMetricConfig() {
5357       bitField0_ = (bitField0_ & ~0x00004000);
5358       dataprocMetricConfig_ = null;
5359       if (dataprocMetricConfigBuilder_ != null) {
5360         dataprocMetricConfigBuilder_.dispose();
5361         dataprocMetricConfigBuilder_ = null;
5362       }
5363       onChanged();
5364       return this;
5365     }
5366     /**
5367      *
5368      *
5369      * <pre>
5370      * Optional. The config for Dataproc metrics.
5371      * </pre>
5372      *
5373      * <code>
5374      * .google.cloud.dataproc.v1.DataprocMetricConfig dataproc_metric_config = 23 [(.google.api.field_behavior) = OPTIONAL];
5375      * </code>
5376      */
5377     public com.google.cloud.dataproc.v1.DataprocMetricConfig.Builder
getDataprocMetricConfigBuilder()5378         getDataprocMetricConfigBuilder() {
5379       bitField0_ |= 0x00004000;
5380       onChanged();
5381       return getDataprocMetricConfigFieldBuilder().getBuilder();
5382     }
5383     /**
5384      *
5385      *
5386      * <pre>
5387      * Optional. The config for Dataproc metrics.
5388      * </pre>
5389      *
5390      * <code>
5391      * .google.cloud.dataproc.v1.DataprocMetricConfig dataproc_metric_config = 23 [(.google.api.field_behavior) = OPTIONAL];
5392      * </code>
5393      */
5394     public com.google.cloud.dataproc.v1.DataprocMetricConfigOrBuilder
getDataprocMetricConfigOrBuilder()5395         getDataprocMetricConfigOrBuilder() {
5396       if (dataprocMetricConfigBuilder_ != null) {
5397         return dataprocMetricConfigBuilder_.getMessageOrBuilder();
5398       } else {
5399         return dataprocMetricConfig_ == null
5400             ? com.google.cloud.dataproc.v1.DataprocMetricConfig.getDefaultInstance()
5401             : dataprocMetricConfig_;
5402       }
5403     }
5404     /**
5405      *
5406      *
5407      * <pre>
5408      * Optional. The config for Dataproc metrics.
5409      * </pre>
5410      *
5411      * <code>
5412      * .google.cloud.dataproc.v1.DataprocMetricConfig dataproc_metric_config = 23 [(.google.api.field_behavior) = OPTIONAL];
5413      * </code>
5414      */
5415     private com.google.protobuf.SingleFieldBuilderV3<
5416             com.google.cloud.dataproc.v1.DataprocMetricConfig,
5417             com.google.cloud.dataproc.v1.DataprocMetricConfig.Builder,
5418             com.google.cloud.dataproc.v1.DataprocMetricConfigOrBuilder>
getDataprocMetricConfigFieldBuilder()5419         getDataprocMetricConfigFieldBuilder() {
5420       if (dataprocMetricConfigBuilder_ == null) {
5421         dataprocMetricConfigBuilder_ =
5422             new com.google.protobuf.SingleFieldBuilderV3<
5423                 com.google.cloud.dataproc.v1.DataprocMetricConfig,
5424                 com.google.cloud.dataproc.v1.DataprocMetricConfig.Builder,
5425                 com.google.cloud.dataproc.v1.DataprocMetricConfigOrBuilder>(
5426                 getDataprocMetricConfig(), getParentForChildren(), isClean());
5427         dataprocMetricConfig_ = null;
5428       }
5429       return dataprocMetricConfigBuilder_;
5430     }
5431 
5432     private java.util.List<com.google.cloud.dataproc.v1.AuxiliaryNodeGroup> auxiliaryNodeGroups_ =
5433         java.util.Collections.emptyList();
5434 
ensureAuxiliaryNodeGroupsIsMutable()5435     private void ensureAuxiliaryNodeGroupsIsMutable() {
5436       if (!((bitField0_ & 0x00008000) != 0)) {
5437         auxiliaryNodeGroups_ =
5438             new java.util.ArrayList<com.google.cloud.dataproc.v1.AuxiliaryNodeGroup>(
5439                 auxiliaryNodeGroups_);
5440         bitField0_ |= 0x00008000;
5441       }
5442     }
5443 
5444     private com.google.protobuf.RepeatedFieldBuilderV3<
5445             com.google.cloud.dataproc.v1.AuxiliaryNodeGroup,
5446             com.google.cloud.dataproc.v1.AuxiliaryNodeGroup.Builder,
5447             com.google.cloud.dataproc.v1.AuxiliaryNodeGroupOrBuilder>
5448         auxiliaryNodeGroupsBuilder_;
5449 
5450     /**
5451      *
5452      *
5453      * <pre>
5454      * Optional. The node group settings.
5455      * </pre>
5456      *
5457      * <code>
5458      * repeated .google.cloud.dataproc.v1.AuxiliaryNodeGroup auxiliary_node_groups = 25 [(.google.api.field_behavior) = OPTIONAL];
5459      * </code>
5460      */
5461     public java.util.List<com.google.cloud.dataproc.v1.AuxiliaryNodeGroup>
getAuxiliaryNodeGroupsList()5462         getAuxiliaryNodeGroupsList() {
5463       if (auxiliaryNodeGroupsBuilder_ == null) {
5464         return java.util.Collections.unmodifiableList(auxiliaryNodeGroups_);
5465       } else {
5466         return auxiliaryNodeGroupsBuilder_.getMessageList();
5467       }
5468     }
5469     /**
5470      *
5471      *
5472      * <pre>
5473      * Optional. The node group settings.
5474      * </pre>
5475      *
5476      * <code>
5477      * repeated .google.cloud.dataproc.v1.AuxiliaryNodeGroup auxiliary_node_groups = 25 [(.google.api.field_behavior) = OPTIONAL];
5478      * </code>
5479      */
getAuxiliaryNodeGroupsCount()5480     public int getAuxiliaryNodeGroupsCount() {
5481       if (auxiliaryNodeGroupsBuilder_ == null) {
5482         return auxiliaryNodeGroups_.size();
5483       } else {
5484         return auxiliaryNodeGroupsBuilder_.getCount();
5485       }
5486     }
5487     /**
5488      *
5489      *
5490      * <pre>
5491      * Optional. The node group settings.
5492      * </pre>
5493      *
5494      * <code>
5495      * repeated .google.cloud.dataproc.v1.AuxiliaryNodeGroup auxiliary_node_groups = 25 [(.google.api.field_behavior) = OPTIONAL];
5496      * </code>
5497      */
getAuxiliaryNodeGroups(int index)5498     public com.google.cloud.dataproc.v1.AuxiliaryNodeGroup getAuxiliaryNodeGroups(int index) {
5499       if (auxiliaryNodeGroupsBuilder_ == null) {
5500         return auxiliaryNodeGroups_.get(index);
5501       } else {
5502         return auxiliaryNodeGroupsBuilder_.getMessage(index);
5503       }
5504     }
5505     /**
5506      *
5507      *
5508      * <pre>
5509      * Optional. The node group settings.
5510      * </pre>
5511      *
5512      * <code>
5513      * repeated .google.cloud.dataproc.v1.AuxiliaryNodeGroup auxiliary_node_groups = 25 [(.google.api.field_behavior) = OPTIONAL];
5514      * </code>
5515      */
setAuxiliaryNodeGroups( int index, com.google.cloud.dataproc.v1.AuxiliaryNodeGroup value)5516     public Builder setAuxiliaryNodeGroups(
5517         int index, com.google.cloud.dataproc.v1.AuxiliaryNodeGroup value) {
5518       if (auxiliaryNodeGroupsBuilder_ == null) {
5519         if (value == null) {
5520           throw new NullPointerException();
5521         }
5522         ensureAuxiliaryNodeGroupsIsMutable();
5523         auxiliaryNodeGroups_.set(index, value);
5524         onChanged();
5525       } else {
5526         auxiliaryNodeGroupsBuilder_.setMessage(index, value);
5527       }
5528       return this;
5529     }
5530     /**
5531      *
5532      *
5533      * <pre>
5534      * Optional. The node group settings.
5535      * </pre>
5536      *
5537      * <code>
5538      * repeated .google.cloud.dataproc.v1.AuxiliaryNodeGroup auxiliary_node_groups = 25 [(.google.api.field_behavior) = OPTIONAL];
5539      * </code>
5540      */
setAuxiliaryNodeGroups( int index, com.google.cloud.dataproc.v1.AuxiliaryNodeGroup.Builder builderForValue)5541     public Builder setAuxiliaryNodeGroups(
5542         int index, com.google.cloud.dataproc.v1.AuxiliaryNodeGroup.Builder builderForValue) {
5543       if (auxiliaryNodeGroupsBuilder_ == null) {
5544         ensureAuxiliaryNodeGroupsIsMutable();
5545         auxiliaryNodeGroups_.set(index, builderForValue.build());
5546         onChanged();
5547       } else {
5548         auxiliaryNodeGroupsBuilder_.setMessage(index, builderForValue.build());
5549       }
5550       return this;
5551     }
5552     /**
5553      *
5554      *
5555      * <pre>
5556      * Optional. The node group settings.
5557      * </pre>
5558      *
5559      * <code>
5560      * repeated .google.cloud.dataproc.v1.AuxiliaryNodeGroup auxiliary_node_groups = 25 [(.google.api.field_behavior) = OPTIONAL];
5561      * </code>
5562      */
addAuxiliaryNodeGroups(com.google.cloud.dataproc.v1.AuxiliaryNodeGroup value)5563     public Builder addAuxiliaryNodeGroups(com.google.cloud.dataproc.v1.AuxiliaryNodeGroup value) {
5564       if (auxiliaryNodeGroupsBuilder_ == null) {
5565         if (value == null) {
5566           throw new NullPointerException();
5567         }
5568         ensureAuxiliaryNodeGroupsIsMutable();
5569         auxiliaryNodeGroups_.add(value);
5570         onChanged();
5571       } else {
5572         auxiliaryNodeGroupsBuilder_.addMessage(value);
5573       }
5574       return this;
5575     }
5576     /**
5577      *
5578      *
5579      * <pre>
5580      * Optional. The node group settings.
5581      * </pre>
5582      *
5583      * <code>
5584      * repeated .google.cloud.dataproc.v1.AuxiliaryNodeGroup auxiliary_node_groups = 25 [(.google.api.field_behavior) = OPTIONAL];
5585      * </code>
5586      */
addAuxiliaryNodeGroups( int index, com.google.cloud.dataproc.v1.AuxiliaryNodeGroup value)5587     public Builder addAuxiliaryNodeGroups(
5588         int index, com.google.cloud.dataproc.v1.AuxiliaryNodeGroup value) {
5589       if (auxiliaryNodeGroupsBuilder_ == null) {
5590         if (value == null) {
5591           throw new NullPointerException();
5592         }
5593         ensureAuxiliaryNodeGroupsIsMutable();
5594         auxiliaryNodeGroups_.add(index, value);
5595         onChanged();
5596       } else {
5597         auxiliaryNodeGroupsBuilder_.addMessage(index, value);
5598       }
5599       return this;
5600     }
5601     /**
5602      *
5603      *
5604      * <pre>
5605      * Optional. The node group settings.
5606      * </pre>
5607      *
5608      * <code>
5609      * repeated .google.cloud.dataproc.v1.AuxiliaryNodeGroup auxiliary_node_groups = 25 [(.google.api.field_behavior) = OPTIONAL];
5610      * </code>
5611      */
addAuxiliaryNodeGroups( com.google.cloud.dataproc.v1.AuxiliaryNodeGroup.Builder builderForValue)5612     public Builder addAuxiliaryNodeGroups(
5613         com.google.cloud.dataproc.v1.AuxiliaryNodeGroup.Builder builderForValue) {
5614       if (auxiliaryNodeGroupsBuilder_ == null) {
5615         ensureAuxiliaryNodeGroupsIsMutable();
5616         auxiliaryNodeGroups_.add(builderForValue.build());
5617         onChanged();
5618       } else {
5619         auxiliaryNodeGroupsBuilder_.addMessage(builderForValue.build());
5620       }
5621       return this;
5622     }
5623     /**
5624      *
5625      *
5626      * <pre>
5627      * Optional. The node group settings.
5628      * </pre>
5629      *
5630      * <code>
5631      * repeated .google.cloud.dataproc.v1.AuxiliaryNodeGroup auxiliary_node_groups = 25 [(.google.api.field_behavior) = OPTIONAL];
5632      * </code>
5633      */
addAuxiliaryNodeGroups( int index, com.google.cloud.dataproc.v1.AuxiliaryNodeGroup.Builder builderForValue)5634     public Builder addAuxiliaryNodeGroups(
5635         int index, com.google.cloud.dataproc.v1.AuxiliaryNodeGroup.Builder builderForValue) {
5636       if (auxiliaryNodeGroupsBuilder_ == null) {
5637         ensureAuxiliaryNodeGroupsIsMutable();
5638         auxiliaryNodeGroups_.add(index, builderForValue.build());
5639         onChanged();
5640       } else {
5641         auxiliaryNodeGroupsBuilder_.addMessage(index, builderForValue.build());
5642       }
5643       return this;
5644     }
5645     /**
5646      *
5647      *
5648      * <pre>
5649      * Optional. The node group settings.
5650      * </pre>
5651      *
5652      * <code>
5653      * repeated .google.cloud.dataproc.v1.AuxiliaryNodeGroup auxiliary_node_groups = 25 [(.google.api.field_behavior) = OPTIONAL];
5654      * </code>
5655      */
addAllAuxiliaryNodeGroups( java.lang.Iterable<? extends com.google.cloud.dataproc.v1.AuxiliaryNodeGroup> values)5656     public Builder addAllAuxiliaryNodeGroups(
5657         java.lang.Iterable<? extends com.google.cloud.dataproc.v1.AuxiliaryNodeGroup> values) {
5658       if (auxiliaryNodeGroupsBuilder_ == null) {
5659         ensureAuxiliaryNodeGroupsIsMutable();
5660         com.google.protobuf.AbstractMessageLite.Builder.addAll(values, auxiliaryNodeGroups_);
5661         onChanged();
5662       } else {
5663         auxiliaryNodeGroupsBuilder_.addAllMessages(values);
5664       }
5665       return this;
5666     }
5667     /**
5668      *
5669      *
5670      * <pre>
5671      * Optional. The node group settings.
5672      * </pre>
5673      *
5674      * <code>
5675      * repeated .google.cloud.dataproc.v1.AuxiliaryNodeGroup auxiliary_node_groups = 25 [(.google.api.field_behavior) = OPTIONAL];
5676      * </code>
5677      */
clearAuxiliaryNodeGroups()5678     public Builder clearAuxiliaryNodeGroups() {
5679       if (auxiliaryNodeGroupsBuilder_ == null) {
5680         auxiliaryNodeGroups_ = java.util.Collections.emptyList();
5681         bitField0_ = (bitField0_ & ~0x00008000);
5682         onChanged();
5683       } else {
5684         auxiliaryNodeGroupsBuilder_.clear();
5685       }
5686       return this;
5687     }
5688     /**
5689      *
5690      *
5691      * <pre>
5692      * Optional. The node group settings.
5693      * </pre>
5694      *
5695      * <code>
5696      * repeated .google.cloud.dataproc.v1.AuxiliaryNodeGroup auxiliary_node_groups = 25 [(.google.api.field_behavior) = OPTIONAL];
5697      * </code>
5698      */
removeAuxiliaryNodeGroups(int index)5699     public Builder removeAuxiliaryNodeGroups(int index) {
5700       if (auxiliaryNodeGroupsBuilder_ == null) {
5701         ensureAuxiliaryNodeGroupsIsMutable();
5702         auxiliaryNodeGroups_.remove(index);
5703         onChanged();
5704       } else {
5705         auxiliaryNodeGroupsBuilder_.remove(index);
5706       }
5707       return this;
5708     }
5709     /**
5710      *
5711      *
5712      * <pre>
5713      * Optional. The node group settings.
5714      * </pre>
5715      *
5716      * <code>
5717      * repeated .google.cloud.dataproc.v1.AuxiliaryNodeGroup auxiliary_node_groups = 25 [(.google.api.field_behavior) = OPTIONAL];
5718      * </code>
5719      */
getAuxiliaryNodeGroupsBuilder( int index)5720     public com.google.cloud.dataproc.v1.AuxiliaryNodeGroup.Builder getAuxiliaryNodeGroupsBuilder(
5721         int index) {
5722       return getAuxiliaryNodeGroupsFieldBuilder().getBuilder(index);
5723     }
5724     /**
5725      *
5726      *
5727      * <pre>
5728      * Optional. The node group settings.
5729      * </pre>
5730      *
5731      * <code>
5732      * repeated .google.cloud.dataproc.v1.AuxiliaryNodeGroup auxiliary_node_groups = 25 [(.google.api.field_behavior) = OPTIONAL];
5733      * </code>
5734      */
getAuxiliaryNodeGroupsOrBuilder( int index)5735     public com.google.cloud.dataproc.v1.AuxiliaryNodeGroupOrBuilder getAuxiliaryNodeGroupsOrBuilder(
5736         int index) {
5737       if (auxiliaryNodeGroupsBuilder_ == null) {
5738         return auxiliaryNodeGroups_.get(index);
5739       } else {
5740         return auxiliaryNodeGroupsBuilder_.getMessageOrBuilder(index);
5741       }
5742     }
5743     /**
5744      *
5745      *
5746      * <pre>
5747      * Optional. The node group settings.
5748      * </pre>
5749      *
5750      * <code>
5751      * repeated .google.cloud.dataproc.v1.AuxiliaryNodeGroup auxiliary_node_groups = 25 [(.google.api.field_behavior) = OPTIONAL];
5752      * </code>
5753      */
5754     public java.util.List<? extends com.google.cloud.dataproc.v1.AuxiliaryNodeGroupOrBuilder>
getAuxiliaryNodeGroupsOrBuilderList()5755         getAuxiliaryNodeGroupsOrBuilderList() {
5756       if (auxiliaryNodeGroupsBuilder_ != null) {
5757         return auxiliaryNodeGroupsBuilder_.getMessageOrBuilderList();
5758       } else {
5759         return java.util.Collections.unmodifiableList(auxiliaryNodeGroups_);
5760       }
5761     }
5762     /**
5763      *
5764      *
5765      * <pre>
5766      * Optional. The node group settings.
5767      * </pre>
5768      *
5769      * <code>
5770      * repeated .google.cloud.dataproc.v1.AuxiliaryNodeGroup auxiliary_node_groups = 25 [(.google.api.field_behavior) = OPTIONAL];
5771      * </code>
5772      */
addAuxiliaryNodeGroupsBuilder()5773     public com.google.cloud.dataproc.v1.AuxiliaryNodeGroup.Builder addAuxiliaryNodeGroupsBuilder() {
5774       return getAuxiliaryNodeGroupsFieldBuilder()
5775           .addBuilder(com.google.cloud.dataproc.v1.AuxiliaryNodeGroup.getDefaultInstance());
5776     }
5777     /**
5778      *
5779      *
5780      * <pre>
5781      * Optional. The node group settings.
5782      * </pre>
5783      *
5784      * <code>
5785      * repeated .google.cloud.dataproc.v1.AuxiliaryNodeGroup auxiliary_node_groups = 25 [(.google.api.field_behavior) = OPTIONAL];
5786      * </code>
5787      */
addAuxiliaryNodeGroupsBuilder( int index)5788     public com.google.cloud.dataproc.v1.AuxiliaryNodeGroup.Builder addAuxiliaryNodeGroupsBuilder(
5789         int index) {
5790       return getAuxiliaryNodeGroupsFieldBuilder()
5791           .addBuilder(index, com.google.cloud.dataproc.v1.AuxiliaryNodeGroup.getDefaultInstance());
5792     }
5793     /**
5794      *
5795      *
5796      * <pre>
5797      * Optional. The node group settings.
5798      * </pre>
5799      *
5800      * <code>
5801      * repeated .google.cloud.dataproc.v1.AuxiliaryNodeGroup auxiliary_node_groups = 25 [(.google.api.field_behavior) = OPTIONAL];
5802      * </code>
5803      */
5804     public java.util.List<com.google.cloud.dataproc.v1.AuxiliaryNodeGroup.Builder>
getAuxiliaryNodeGroupsBuilderList()5805         getAuxiliaryNodeGroupsBuilderList() {
5806       return getAuxiliaryNodeGroupsFieldBuilder().getBuilderList();
5807     }
5808 
5809     private com.google.protobuf.RepeatedFieldBuilderV3<
5810             com.google.cloud.dataproc.v1.AuxiliaryNodeGroup,
5811             com.google.cloud.dataproc.v1.AuxiliaryNodeGroup.Builder,
5812             com.google.cloud.dataproc.v1.AuxiliaryNodeGroupOrBuilder>
getAuxiliaryNodeGroupsFieldBuilder()5813         getAuxiliaryNodeGroupsFieldBuilder() {
5814       if (auxiliaryNodeGroupsBuilder_ == null) {
5815         auxiliaryNodeGroupsBuilder_ =
5816             new com.google.protobuf.RepeatedFieldBuilderV3<
5817                 com.google.cloud.dataproc.v1.AuxiliaryNodeGroup,
5818                 com.google.cloud.dataproc.v1.AuxiliaryNodeGroup.Builder,
5819                 com.google.cloud.dataproc.v1.AuxiliaryNodeGroupOrBuilder>(
5820                 auxiliaryNodeGroups_,
5821                 ((bitField0_ & 0x00008000) != 0),
5822                 getParentForChildren(),
5823                 isClean());
5824         auxiliaryNodeGroups_ = null;
5825       }
5826       return auxiliaryNodeGroupsBuilder_;
5827     }
5828 
5829     @java.lang.Override
setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields)5830     public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) {
5831       return super.setUnknownFields(unknownFields);
5832     }
5833 
5834     @java.lang.Override
mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields)5835     public final Builder mergeUnknownFields(
5836         final com.google.protobuf.UnknownFieldSet unknownFields) {
5837       return super.mergeUnknownFields(unknownFields);
5838     }
5839 
5840     // @@protoc_insertion_point(builder_scope:google.cloud.dataproc.v1.ClusterConfig)
5841   }
5842 
5843   // @@protoc_insertion_point(class_scope:google.cloud.dataproc.v1.ClusterConfig)
5844   private static final com.google.cloud.dataproc.v1.ClusterConfig DEFAULT_INSTANCE;
5845 
5846   static {
5847     DEFAULT_INSTANCE = new com.google.cloud.dataproc.v1.ClusterConfig();
5848   }
5849 
getDefaultInstance()5850   public static com.google.cloud.dataproc.v1.ClusterConfig getDefaultInstance() {
5851     return DEFAULT_INSTANCE;
5852   }
5853 
5854   private static final com.google.protobuf.Parser<ClusterConfig> PARSER =
5855       new com.google.protobuf.AbstractParser<ClusterConfig>() {
5856         @java.lang.Override
5857         public ClusterConfig parsePartialFrom(
5858             com.google.protobuf.CodedInputStream input,
5859             com.google.protobuf.ExtensionRegistryLite extensionRegistry)
5860             throws com.google.protobuf.InvalidProtocolBufferException {
5861           Builder builder = newBuilder();
5862           try {
5863             builder.mergeFrom(input, extensionRegistry);
5864           } catch (com.google.protobuf.InvalidProtocolBufferException e) {
5865             throw e.setUnfinishedMessage(builder.buildPartial());
5866           } catch (com.google.protobuf.UninitializedMessageException e) {
5867             throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
5868           } catch (java.io.IOException e) {
5869             throw new com.google.protobuf.InvalidProtocolBufferException(e)
5870                 .setUnfinishedMessage(builder.buildPartial());
5871           }
5872           return builder.buildPartial();
5873         }
5874       };
5875 
parser()5876   public static com.google.protobuf.Parser<ClusterConfig> parser() {
5877     return PARSER;
5878   }
5879 
5880   @java.lang.Override
getParserForType()5881   public com.google.protobuf.Parser<ClusterConfig> getParserForType() {
5882     return PARSER;
5883   }
5884 
5885   @java.lang.Override
getDefaultInstanceForType()5886   public com.google.cloud.dataproc.v1.ClusterConfig getDefaultInstanceForType() {
5887     return DEFAULT_INSTANCE;
5888   }
5889 }
5890