• 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/shared.proto
18 
19 package com.google.cloud.dataproc.v1;
20 
21 /**
22  *
23  *
24  * <pre>
25  * Cluster components that can be activated.
26  * </pre>
27  *
28  * Protobuf enum {@code google.cloud.dataproc.v1.Component}
29  */
30 public enum Component implements com.google.protobuf.ProtocolMessageEnum {
31   /**
32    *
33    *
34    * <pre>
35    * Unspecified component. Specifying this will cause Cluster creation to fail.
36    * </pre>
37    *
38    * <code>COMPONENT_UNSPECIFIED = 0;</code>
39    */
40   COMPONENT_UNSPECIFIED(0),
41   /**
42    *
43    *
44    * <pre>
45    * The Anaconda python distribution. The Anaconda component is not supported
46    * in the Dataproc
47    * &lt;a
48    * href="/dataproc/docs/concepts/versioning/dataproc-release-2.0"&gt;2.0
49    * image&lt;/a&gt;. The 2.0 image is pre-installed with Miniconda.
50    * </pre>
51    *
52    * <code>ANACONDA = 5;</code>
53    */
54   ANACONDA(5),
55   /**
56    *
57    *
58    * <pre>
59    * Docker
60    * </pre>
61    *
62    * <code>DOCKER = 13;</code>
63    */
64   DOCKER(13),
65   /**
66    *
67    *
68    * <pre>
69    * The Druid query engine. (alpha)
70    * </pre>
71    *
72    * <code>DRUID = 9;</code>
73    */
74   DRUID(9),
75   /**
76    *
77    *
78    * <pre>
79    * Flink
80    * </pre>
81    *
82    * <code>FLINK = 14;</code>
83    */
84   FLINK(14),
85   /**
86    *
87    *
88    * <pre>
89    * HBase. (beta)
90    * </pre>
91    *
92    * <code>HBASE = 11;</code>
93    */
94   HBASE(11),
95   /**
96    *
97    *
98    * <pre>
99    * The Hive Web HCatalog (the REST service for accessing HCatalog).
100    * </pre>
101    *
102    * <code>HIVE_WEBHCAT = 3;</code>
103    */
104   HIVE_WEBHCAT(3),
105   /**
106    *
107    *
108    * <pre>
109    * Hudi.
110    * </pre>
111    *
112    * <code>HUDI = 18;</code>
113    */
114   HUDI(18),
115   /**
116    *
117    *
118    * <pre>
119    * The Jupyter Notebook.
120    * </pre>
121    *
122    * <code>JUPYTER = 1;</code>
123    */
124   JUPYTER(1),
125   /**
126    *
127    *
128    * <pre>
129    * The Presto query engine.
130    * </pre>
131    *
132    * <code>PRESTO = 6;</code>
133    */
134   PRESTO(6),
135   /**
136    *
137    *
138    * <pre>
139    * The Trino query engine.
140    * </pre>
141    *
142    * <code>TRINO = 17;</code>
143    */
144   TRINO(17),
145   /**
146    *
147    *
148    * <pre>
149    * The Ranger service.
150    * </pre>
151    *
152    * <code>RANGER = 12;</code>
153    */
154   RANGER(12),
155   /**
156    *
157    *
158    * <pre>
159    * The Solr service.
160    * </pre>
161    *
162    * <code>SOLR = 10;</code>
163    */
164   SOLR(10),
165   /**
166    *
167    *
168    * <pre>
169    * The Zeppelin notebook.
170    * </pre>
171    *
172    * <code>ZEPPELIN = 4;</code>
173    */
174   ZEPPELIN(4),
175   /**
176    *
177    *
178    * <pre>
179    * The Zookeeper service.
180    * </pre>
181    *
182    * <code>ZOOKEEPER = 8;</code>
183    */
184   ZOOKEEPER(8),
185   UNRECOGNIZED(-1),
186   ;
187 
188   /**
189    *
190    *
191    * <pre>
192    * Unspecified component. Specifying this will cause Cluster creation to fail.
193    * </pre>
194    *
195    * <code>COMPONENT_UNSPECIFIED = 0;</code>
196    */
197   public static final int COMPONENT_UNSPECIFIED_VALUE = 0;
198   /**
199    *
200    *
201    * <pre>
202    * The Anaconda python distribution. The Anaconda component is not supported
203    * in the Dataproc
204    * &lt;a
205    * href="/dataproc/docs/concepts/versioning/dataproc-release-2.0"&gt;2.0
206    * image&lt;/a&gt;. The 2.0 image is pre-installed with Miniconda.
207    * </pre>
208    *
209    * <code>ANACONDA = 5;</code>
210    */
211   public static final int ANACONDA_VALUE = 5;
212   /**
213    *
214    *
215    * <pre>
216    * Docker
217    * </pre>
218    *
219    * <code>DOCKER = 13;</code>
220    */
221   public static final int DOCKER_VALUE = 13;
222   /**
223    *
224    *
225    * <pre>
226    * The Druid query engine. (alpha)
227    * </pre>
228    *
229    * <code>DRUID = 9;</code>
230    */
231   public static final int DRUID_VALUE = 9;
232   /**
233    *
234    *
235    * <pre>
236    * Flink
237    * </pre>
238    *
239    * <code>FLINK = 14;</code>
240    */
241   public static final int FLINK_VALUE = 14;
242   /**
243    *
244    *
245    * <pre>
246    * HBase. (beta)
247    * </pre>
248    *
249    * <code>HBASE = 11;</code>
250    */
251   public static final int HBASE_VALUE = 11;
252   /**
253    *
254    *
255    * <pre>
256    * The Hive Web HCatalog (the REST service for accessing HCatalog).
257    * </pre>
258    *
259    * <code>HIVE_WEBHCAT = 3;</code>
260    */
261   public static final int HIVE_WEBHCAT_VALUE = 3;
262   /**
263    *
264    *
265    * <pre>
266    * Hudi.
267    * </pre>
268    *
269    * <code>HUDI = 18;</code>
270    */
271   public static final int HUDI_VALUE = 18;
272   /**
273    *
274    *
275    * <pre>
276    * The Jupyter Notebook.
277    * </pre>
278    *
279    * <code>JUPYTER = 1;</code>
280    */
281   public static final int JUPYTER_VALUE = 1;
282   /**
283    *
284    *
285    * <pre>
286    * The Presto query engine.
287    * </pre>
288    *
289    * <code>PRESTO = 6;</code>
290    */
291   public static final int PRESTO_VALUE = 6;
292   /**
293    *
294    *
295    * <pre>
296    * The Trino query engine.
297    * </pre>
298    *
299    * <code>TRINO = 17;</code>
300    */
301   public static final int TRINO_VALUE = 17;
302   /**
303    *
304    *
305    * <pre>
306    * The Ranger service.
307    * </pre>
308    *
309    * <code>RANGER = 12;</code>
310    */
311   public static final int RANGER_VALUE = 12;
312   /**
313    *
314    *
315    * <pre>
316    * The Solr service.
317    * </pre>
318    *
319    * <code>SOLR = 10;</code>
320    */
321   public static final int SOLR_VALUE = 10;
322   /**
323    *
324    *
325    * <pre>
326    * The Zeppelin notebook.
327    * </pre>
328    *
329    * <code>ZEPPELIN = 4;</code>
330    */
331   public static final int ZEPPELIN_VALUE = 4;
332   /**
333    *
334    *
335    * <pre>
336    * The Zookeeper service.
337    * </pre>
338    *
339    * <code>ZOOKEEPER = 8;</code>
340    */
341   public static final int ZOOKEEPER_VALUE = 8;
342 
getNumber()343   public final int getNumber() {
344     if (this == UNRECOGNIZED) {
345       throw new java.lang.IllegalArgumentException(
346           "Can't get the number of an unknown enum value.");
347     }
348     return value;
349   }
350 
351   /**
352    * @param value The numeric wire value of the corresponding enum entry.
353    * @return The enum associated with the given numeric wire value.
354    * @deprecated Use {@link #forNumber(int)} instead.
355    */
356   @java.lang.Deprecated
valueOf(int value)357   public static Component valueOf(int value) {
358     return forNumber(value);
359   }
360 
361   /**
362    * @param value The numeric wire value of the corresponding enum entry.
363    * @return The enum associated with the given numeric wire value.
364    */
forNumber(int value)365   public static Component forNumber(int value) {
366     switch (value) {
367       case 0:
368         return COMPONENT_UNSPECIFIED;
369       case 5:
370         return ANACONDA;
371       case 13:
372         return DOCKER;
373       case 9:
374         return DRUID;
375       case 14:
376         return FLINK;
377       case 11:
378         return HBASE;
379       case 3:
380         return HIVE_WEBHCAT;
381       case 18:
382         return HUDI;
383       case 1:
384         return JUPYTER;
385       case 6:
386         return PRESTO;
387       case 17:
388         return TRINO;
389       case 12:
390         return RANGER;
391       case 10:
392         return SOLR;
393       case 4:
394         return ZEPPELIN;
395       case 8:
396         return ZOOKEEPER;
397       default:
398         return null;
399     }
400   }
401 
internalGetValueMap()402   public static com.google.protobuf.Internal.EnumLiteMap<Component> internalGetValueMap() {
403     return internalValueMap;
404   }
405 
406   private static final com.google.protobuf.Internal.EnumLiteMap<Component> internalValueMap =
407       new com.google.protobuf.Internal.EnumLiteMap<Component>() {
408         public Component findValueByNumber(int number) {
409           return Component.forNumber(number);
410         }
411       };
412 
getValueDescriptor()413   public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() {
414     if (this == UNRECOGNIZED) {
415       throw new java.lang.IllegalStateException(
416           "Can't get the descriptor of an unrecognized enum value.");
417     }
418     return getDescriptor().getValues().get(ordinal());
419   }
420 
getDescriptorForType()421   public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() {
422     return getDescriptor();
423   }
424 
getDescriptor()425   public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() {
426     return com.google.cloud.dataproc.v1.SharedProto.getDescriptor().getEnumTypes().get(0);
427   }
428 
429   private static final Component[] VALUES = values();
430 
valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc)431   public static Component valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
432     if (desc.getType() != getDescriptor()) {
433       throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type.");
434     }
435     if (desc.getIndex() == -1) {
436       return UNRECOGNIZED;
437     }
438     return VALUES[desc.getIndex()];
439   }
440 
441   private final int value;
442 
Component(int value)443   private Component(int value) {
444     this.value = value;
445   }
446 
447   // @@protoc_insertion_point(enum_scope:google.cloud.dataproc.v1.Component)
448 }
449