• 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/workflow_templates.proto
18 
19 package com.google.cloud.dataproc.v1;
20 
21 /**
22  *
23  *
24  * <pre>
25  * Validation based on a list of allowed values.
26  * </pre>
27  *
28  * Protobuf type {@code google.cloud.dataproc.v1.ValueValidation}
29  */
30 public final class ValueValidation extends com.google.protobuf.GeneratedMessageV3
31     implements
32     // @@protoc_insertion_point(message_implements:google.cloud.dataproc.v1.ValueValidation)
33     ValueValidationOrBuilder {
34   private static final long serialVersionUID = 0L;
35   // Use ValueValidation.newBuilder() to construct.
ValueValidation(com.google.protobuf.GeneratedMessageV3.Builder<?> builder)36   private ValueValidation(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {
37     super(builder);
38   }
39 
ValueValidation()40   private ValueValidation() {
41     values_ = com.google.protobuf.LazyStringArrayList.EMPTY;
42   }
43 
44   @java.lang.Override
45   @SuppressWarnings({"unused"})
newInstance(UnusedPrivateParameter unused)46   protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
47     return new ValueValidation();
48   }
49 
50   @java.lang.Override
getUnknownFields()51   public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
52     return this.unknownFields;
53   }
54 
getDescriptor()55   public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
56     return com.google.cloud.dataproc.v1.WorkflowTemplatesProto
57         .internal_static_google_cloud_dataproc_v1_ValueValidation_descriptor;
58   }
59 
60   @java.lang.Override
61   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable()62       internalGetFieldAccessorTable() {
63     return com.google.cloud.dataproc.v1.WorkflowTemplatesProto
64         .internal_static_google_cloud_dataproc_v1_ValueValidation_fieldAccessorTable
65         .ensureFieldAccessorsInitialized(
66             com.google.cloud.dataproc.v1.ValueValidation.class,
67             com.google.cloud.dataproc.v1.ValueValidation.Builder.class);
68   }
69 
70   public static final int VALUES_FIELD_NUMBER = 1;
71 
72   @SuppressWarnings("serial")
73   private com.google.protobuf.LazyStringList values_;
74   /**
75    *
76    *
77    * <pre>
78    * Required. List of allowed values for the parameter.
79    * </pre>
80    *
81    * <code>repeated string values = 1 [(.google.api.field_behavior) = REQUIRED];</code>
82    *
83    * @return A list containing the values.
84    */
getValuesList()85   public com.google.protobuf.ProtocolStringList getValuesList() {
86     return values_;
87   }
88   /**
89    *
90    *
91    * <pre>
92    * Required. List of allowed values for the parameter.
93    * </pre>
94    *
95    * <code>repeated string values = 1 [(.google.api.field_behavior) = REQUIRED];</code>
96    *
97    * @return The count of values.
98    */
getValuesCount()99   public int getValuesCount() {
100     return values_.size();
101   }
102   /**
103    *
104    *
105    * <pre>
106    * Required. List of allowed values for the parameter.
107    * </pre>
108    *
109    * <code>repeated string values = 1 [(.google.api.field_behavior) = REQUIRED];</code>
110    *
111    * @param index The index of the element to return.
112    * @return The values at the given index.
113    */
getValues(int index)114   public java.lang.String getValues(int index) {
115     return values_.get(index);
116   }
117   /**
118    *
119    *
120    * <pre>
121    * Required. List of allowed values for the parameter.
122    * </pre>
123    *
124    * <code>repeated string values = 1 [(.google.api.field_behavior) = REQUIRED];</code>
125    *
126    * @param index The index of the value to return.
127    * @return The bytes of the values at the given index.
128    */
getValuesBytes(int index)129   public com.google.protobuf.ByteString getValuesBytes(int index) {
130     return values_.getByteString(index);
131   }
132 
133   private byte memoizedIsInitialized = -1;
134 
135   @java.lang.Override
isInitialized()136   public final boolean isInitialized() {
137     byte isInitialized = memoizedIsInitialized;
138     if (isInitialized == 1) return true;
139     if (isInitialized == 0) return false;
140 
141     memoizedIsInitialized = 1;
142     return true;
143   }
144 
145   @java.lang.Override
writeTo(com.google.protobuf.CodedOutputStream output)146   public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
147     for (int i = 0; i < values_.size(); i++) {
148       com.google.protobuf.GeneratedMessageV3.writeString(output, 1, values_.getRaw(i));
149     }
150     getUnknownFields().writeTo(output);
151   }
152 
153   @java.lang.Override
getSerializedSize()154   public int getSerializedSize() {
155     int size = memoizedSize;
156     if (size != -1) return size;
157 
158     size = 0;
159     {
160       int dataSize = 0;
161       for (int i = 0; i < values_.size(); i++) {
162         dataSize += computeStringSizeNoTag(values_.getRaw(i));
163       }
164       size += dataSize;
165       size += 1 * getValuesList().size();
166     }
167     size += getUnknownFields().getSerializedSize();
168     memoizedSize = size;
169     return size;
170   }
171 
172   @java.lang.Override
equals(final java.lang.Object obj)173   public boolean equals(final java.lang.Object obj) {
174     if (obj == this) {
175       return true;
176     }
177     if (!(obj instanceof com.google.cloud.dataproc.v1.ValueValidation)) {
178       return super.equals(obj);
179     }
180     com.google.cloud.dataproc.v1.ValueValidation other =
181         (com.google.cloud.dataproc.v1.ValueValidation) obj;
182 
183     if (!getValuesList().equals(other.getValuesList())) return false;
184     if (!getUnknownFields().equals(other.getUnknownFields())) return false;
185     return true;
186   }
187 
188   @java.lang.Override
hashCode()189   public int hashCode() {
190     if (memoizedHashCode != 0) {
191       return memoizedHashCode;
192     }
193     int hash = 41;
194     hash = (19 * hash) + getDescriptor().hashCode();
195     if (getValuesCount() > 0) {
196       hash = (37 * hash) + VALUES_FIELD_NUMBER;
197       hash = (53 * hash) + getValuesList().hashCode();
198     }
199     hash = (29 * hash) + getUnknownFields().hashCode();
200     memoizedHashCode = hash;
201     return hash;
202   }
203 
parseFrom(java.nio.ByteBuffer data)204   public static com.google.cloud.dataproc.v1.ValueValidation parseFrom(java.nio.ByteBuffer data)
205       throws com.google.protobuf.InvalidProtocolBufferException {
206     return PARSER.parseFrom(data);
207   }
208 
parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)209   public static com.google.cloud.dataproc.v1.ValueValidation parseFrom(
210       java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
211       throws com.google.protobuf.InvalidProtocolBufferException {
212     return PARSER.parseFrom(data, extensionRegistry);
213   }
214 
parseFrom( com.google.protobuf.ByteString data)215   public static com.google.cloud.dataproc.v1.ValueValidation parseFrom(
216       com.google.protobuf.ByteString data)
217       throws com.google.protobuf.InvalidProtocolBufferException {
218     return PARSER.parseFrom(data);
219   }
220 
parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)221   public static com.google.cloud.dataproc.v1.ValueValidation parseFrom(
222       com.google.protobuf.ByteString data,
223       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
224       throws com.google.protobuf.InvalidProtocolBufferException {
225     return PARSER.parseFrom(data, extensionRegistry);
226   }
227 
parseFrom(byte[] data)228   public static com.google.cloud.dataproc.v1.ValueValidation parseFrom(byte[] data)
229       throws com.google.protobuf.InvalidProtocolBufferException {
230     return PARSER.parseFrom(data);
231   }
232 
parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)233   public static com.google.cloud.dataproc.v1.ValueValidation parseFrom(
234       byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
235       throws com.google.protobuf.InvalidProtocolBufferException {
236     return PARSER.parseFrom(data, extensionRegistry);
237   }
238 
parseFrom(java.io.InputStream input)239   public static com.google.cloud.dataproc.v1.ValueValidation parseFrom(java.io.InputStream input)
240       throws java.io.IOException {
241     return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
242   }
243 
parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)244   public static com.google.cloud.dataproc.v1.ValueValidation parseFrom(
245       java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
246       throws java.io.IOException {
247     return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
248         PARSER, input, extensionRegistry);
249   }
250 
parseDelimitedFrom( java.io.InputStream input)251   public static com.google.cloud.dataproc.v1.ValueValidation parseDelimitedFrom(
252       java.io.InputStream input) throws java.io.IOException {
253     return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
254   }
255 
parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)256   public static com.google.cloud.dataproc.v1.ValueValidation parseDelimitedFrom(
257       java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
258       throws java.io.IOException {
259     return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
260         PARSER, input, extensionRegistry);
261   }
262 
parseFrom( com.google.protobuf.CodedInputStream input)263   public static com.google.cloud.dataproc.v1.ValueValidation parseFrom(
264       com.google.protobuf.CodedInputStream input) throws java.io.IOException {
265     return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
266   }
267 
parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)268   public static com.google.cloud.dataproc.v1.ValueValidation parseFrom(
269       com.google.protobuf.CodedInputStream input,
270       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
271       throws java.io.IOException {
272     return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
273         PARSER, input, extensionRegistry);
274   }
275 
276   @java.lang.Override
newBuilderForType()277   public Builder newBuilderForType() {
278     return newBuilder();
279   }
280 
newBuilder()281   public static Builder newBuilder() {
282     return DEFAULT_INSTANCE.toBuilder();
283   }
284 
newBuilder(com.google.cloud.dataproc.v1.ValueValidation prototype)285   public static Builder newBuilder(com.google.cloud.dataproc.v1.ValueValidation prototype) {
286     return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
287   }
288 
289   @java.lang.Override
toBuilder()290   public Builder toBuilder() {
291     return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
292   }
293 
294   @java.lang.Override
newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)295   protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
296     Builder builder = new Builder(parent);
297     return builder;
298   }
299   /**
300    *
301    *
302    * <pre>
303    * Validation based on a list of allowed values.
304    * </pre>
305    *
306    * Protobuf type {@code google.cloud.dataproc.v1.ValueValidation}
307    */
308   public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder<Builder>
309       implements
310       // @@protoc_insertion_point(builder_implements:google.cloud.dataproc.v1.ValueValidation)
311       com.google.cloud.dataproc.v1.ValueValidationOrBuilder {
getDescriptor()312     public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
313       return com.google.cloud.dataproc.v1.WorkflowTemplatesProto
314           .internal_static_google_cloud_dataproc_v1_ValueValidation_descriptor;
315     }
316 
317     @java.lang.Override
318     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable()319         internalGetFieldAccessorTable() {
320       return com.google.cloud.dataproc.v1.WorkflowTemplatesProto
321           .internal_static_google_cloud_dataproc_v1_ValueValidation_fieldAccessorTable
322           .ensureFieldAccessorsInitialized(
323               com.google.cloud.dataproc.v1.ValueValidation.class,
324               com.google.cloud.dataproc.v1.ValueValidation.Builder.class);
325     }
326 
327     // Construct using com.google.cloud.dataproc.v1.ValueValidation.newBuilder()
Builder()328     private Builder() {}
329 
Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)330     private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
331       super(parent);
332     }
333 
334     @java.lang.Override
clear()335     public Builder clear() {
336       super.clear();
337       bitField0_ = 0;
338       values_ = com.google.protobuf.LazyStringArrayList.EMPTY;
339       bitField0_ = (bitField0_ & ~0x00000001);
340       return this;
341     }
342 
343     @java.lang.Override
getDescriptorForType()344     public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
345       return com.google.cloud.dataproc.v1.WorkflowTemplatesProto
346           .internal_static_google_cloud_dataproc_v1_ValueValidation_descriptor;
347     }
348 
349     @java.lang.Override
getDefaultInstanceForType()350     public com.google.cloud.dataproc.v1.ValueValidation getDefaultInstanceForType() {
351       return com.google.cloud.dataproc.v1.ValueValidation.getDefaultInstance();
352     }
353 
354     @java.lang.Override
build()355     public com.google.cloud.dataproc.v1.ValueValidation build() {
356       com.google.cloud.dataproc.v1.ValueValidation result = buildPartial();
357       if (!result.isInitialized()) {
358         throw newUninitializedMessageException(result);
359       }
360       return result;
361     }
362 
363     @java.lang.Override
buildPartial()364     public com.google.cloud.dataproc.v1.ValueValidation buildPartial() {
365       com.google.cloud.dataproc.v1.ValueValidation result =
366           new com.google.cloud.dataproc.v1.ValueValidation(this);
367       buildPartialRepeatedFields(result);
368       if (bitField0_ != 0) {
369         buildPartial0(result);
370       }
371       onBuilt();
372       return result;
373     }
374 
buildPartialRepeatedFields(com.google.cloud.dataproc.v1.ValueValidation result)375     private void buildPartialRepeatedFields(com.google.cloud.dataproc.v1.ValueValidation result) {
376       if (((bitField0_ & 0x00000001) != 0)) {
377         values_ = values_.getUnmodifiableView();
378         bitField0_ = (bitField0_ & ~0x00000001);
379       }
380       result.values_ = values_;
381     }
382 
buildPartial0(com.google.cloud.dataproc.v1.ValueValidation result)383     private void buildPartial0(com.google.cloud.dataproc.v1.ValueValidation result) {
384       int from_bitField0_ = bitField0_;
385     }
386 
387     @java.lang.Override
clone()388     public Builder clone() {
389       return super.clone();
390     }
391 
392     @java.lang.Override
setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)393     public Builder setField(
394         com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
395       return super.setField(field, value);
396     }
397 
398     @java.lang.Override
clearField(com.google.protobuf.Descriptors.FieldDescriptor field)399     public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
400       return super.clearField(field);
401     }
402 
403     @java.lang.Override
clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)404     public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
405       return super.clearOneof(oneof);
406     }
407 
408     @java.lang.Override
setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value)409     public Builder setRepeatedField(
410         com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
411       return super.setRepeatedField(field, index, value);
412     }
413 
414     @java.lang.Override
addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)415     public Builder addRepeatedField(
416         com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
417       return super.addRepeatedField(field, value);
418     }
419 
420     @java.lang.Override
mergeFrom(com.google.protobuf.Message other)421     public Builder mergeFrom(com.google.protobuf.Message other) {
422       if (other instanceof com.google.cloud.dataproc.v1.ValueValidation) {
423         return mergeFrom((com.google.cloud.dataproc.v1.ValueValidation) other);
424       } else {
425         super.mergeFrom(other);
426         return this;
427       }
428     }
429 
mergeFrom(com.google.cloud.dataproc.v1.ValueValidation other)430     public Builder mergeFrom(com.google.cloud.dataproc.v1.ValueValidation other) {
431       if (other == com.google.cloud.dataproc.v1.ValueValidation.getDefaultInstance()) return this;
432       if (!other.values_.isEmpty()) {
433         if (values_.isEmpty()) {
434           values_ = other.values_;
435           bitField0_ = (bitField0_ & ~0x00000001);
436         } else {
437           ensureValuesIsMutable();
438           values_.addAll(other.values_);
439         }
440         onChanged();
441       }
442       this.mergeUnknownFields(other.getUnknownFields());
443       onChanged();
444       return this;
445     }
446 
447     @java.lang.Override
isInitialized()448     public final boolean isInitialized() {
449       return true;
450     }
451 
452     @java.lang.Override
mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)453     public Builder mergeFrom(
454         com.google.protobuf.CodedInputStream input,
455         com.google.protobuf.ExtensionRegistryLite extensionRegistry)
456         throws java.io.IOException {
457       if (extensionRegistry == null) {
458         throw new java.lang.NullPointerException();
459       }
460       try {
461         boolean done = false;
462         while (!done) {
463           int tag = input.readTag();
464           switch (tag) {
465             case 0:
466               done = true;
467               break;
468             case 10:
469               {
470                 java.lang.String s = input.readStringRequireUtf8();
471                 ensureValuesIsMutable();
472                 values_.add(s);
473                 break;
474               } // case 10
475             default:
476               {
477                 if (!super.parseUnknownField(input, extensionRegistry, tag)) {
478                   done = true; // was an endgroup tag
479                 }
480                 break;
481               } // default:
482           } // switch (tag)
483         } // while (!done)
484       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
485         throw e.unwrapIOException();
486       } finally {
487         onChanged();
488       } // finally
489       return this;
490     }
491 
492     private int bitField0_;
493 
494     private com.google.protobuf.LazyStringList values_ =
495         com.google.protobuf.LazyStringArrayList.EMPTY;
496 
ensureValuesIsMutable()497     private void ensureValuesIsMutable() {
498       if (!((bitField0_ & 0x00000001) != 0)) {
499         values_ = new com.google.protobuf.LazyStringArrayList(values_);
500         bitField0_ |= 0x00000001;
501       }
502     }
503     /**
504      *
505      *
506      * <pre>
507      * Required. List of allowed values for the parameter.
508      * </pre>
509      *
510      * <code>repeated string values = 1 [(.google.api.field_behavior) = REQUIRED];</code>
511      *
512      * @return A list containing the values.
513      */
getValuesList()514     public com.google.protobuf.ProtocolStringList getValuesList() {
515       return values_.getUnmodifiableView();
516     }
517     /**
518      *
519      *
520      * <pre>
521      * Required. List of allowed values for the parameter.
522      * </pre>
523      *
524      * <code>repeated string values = 1 [(.google.api.field_behavior) = REQUIRED];</code>
525      *
526      * @return The count of values.
527      */
getValuesCount()528     public int getValuesCount() {
529       return values_.size();
530     }
531     /**
532      *
533      *
534      * <pre>
535      * Required. List of allowed values for the parameter.
536      * </pre>
537      *
538      * <code>repeated string values = 1 [(.google.api.field_behavior) = REQUIRED];</code>
539      *
540      * @param index The index of the element to return.
541      * @return The values at the given index.
542      */
getValues(int index)543     public java.lang.String getValues(int index) {
544       return values_.get(index);
545     }
546     /**
547      *
548      *
549      * <pre>
550      * Required. List of allowed values for the parameter.
551      * </pre>
552      *
553      * <code>repeated string values = 1 [(.google.api.field_behavior) = REQUIRED];</code>
554      *
555      * @param index The index of the value to return.
556      * @return The bytes of the values at the given index.
557      */
getValuesBytes(int index)558     public com.google.protobuf.ByteString getValuesBytes(int index) {
559       return values_.getByteString(index);
560     }
561     /**
562      *
563      *
564      * <pre>
565      * Required. List of allowed values for the parameter.
566      * </pre>
567      *
568      * <code>repeated string values = 1 [(.google.api.field_behavior) = REQUIRED];</code>
569      *
570      * @param index The index to set the value at.
571      * @param value The values to set.
572      * @return This builder for chaining.
573      */
setValues(int index, java.lang.String value)574     public Builder setValues(int index, java.lang.String value) {
575       if (value == null) {
576         throw new NullPointerException();
577       }
578       ensureValuesIsMutable();
579       values_.set(index, value);
580       onChanged();
581       return this;
582     }
583     /**
584      *
585      *
586      * <pre>
587      * Required. List of allowed values for the parameter.
588      * </pre>
589      *
590      * <code>repeated string values = 1 [(.google.api.field_behavior) = REQUIRED];</code>
591      *
592      * @param value The values to add.
593      * @return This builder for chaining.
594      */
addValues(java.lang.String value)595     public Builder addValues(java.lang.String value) {
596       if (value == null) {
597         throw new NullPointerException();
598       }
599       ensureValuesIsMutable();
600       values_.add(value);
601       onChanged();
602       return this;
603     }
604     /**
605      *
606      *
607      * <pre>
608      * Required. List of allowed values for the parameter.
609      * </pre>
610      *
611      * <code>repeated string values = 1 [(.google.api.field_behavior) = REQUIRED];</code>
612      *
613      * @param values The values to add.
614      * @return This builder for chaining.
615      */
addAllValues(java.lang.Iterable<java.lang.String> values)616     public Builder addAllValues(java.lang.Iterable<java.lang.String> values) {
617       ensureValuesIsMutable();
618       com.google.protobuf.AbstractMessageLite.Builder.addAll(values, values_);
619       onChanged();
620       return this;
621     }
622     /**
623      *
624      *
625      * <pre>
626      * Required. List of allowed values for the parameter.
627      * </pre>
628      *
629      * <code>repeated string values = 1 [(.google.api.field_behavior) = REQUIRED];</code>
630      *
631      * @return This builder for chaining.
632      */
clearValues()633     public Builder clearValues() {
634       values_ = com.google.protobuf.LazyStringArrayList.EMPTY;
635       bitField0_ = (bitField0_ & ~0x00000001);
636       onChanged();
637       return this;
638     }
639     /**
640      *
641      *
642      * <pre>
643      * Required. List of allowed values for the parameter.
644      * </pre>
645      *
646      * <code>repeated string values = 1 [(.google.api.field_behavior) = REQUIRED];</code>
647      *
648      * @param value The bytes of the values to add.
649      * @return This builder for chaining.
650      */
addValuesBytes(com.google.protobuf.ByteString value)651     public Builder addValuesBytes(com.google.protobuf.ByteString value) {
652       if (value == null) {
653         throw new NullPointerException();
654       }
655       checkByteStringIsUtf8(value);
656       ensureValuesIsMutable();
657       values_.add(value);
658       onChanged();
659       return this;
660     }
661 
662     @java.lang.Override
setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields)663     public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) {
664       return super.setUnknownFields(unknownFields);
665     }
666 
667     @java.lang.Override
mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields)668     public final Builder mergeUnknownFields(
669         final com.google.protobuf.UnknownFieldSet unknownFields) {
670       return super.mergeUnknownFields(unknownFields);
671     }
672 
673     // @@protoc_insertion_point(builder_scope:google.cloud.dataproc.v1.ValueValidation)
674   }
675 
676   // @@protoc_insertion_point(class_scope:google.cloud.dataproc.v1.ValueValidation)
677   private static final com.google.cloud.dataproc.v1.ValueValidation DEFAULT_INSTANCE;
678 
679   static {
680     DEFAULT_INSTANCE = new com.google.cloud.dataproc.v1.ValueValidation();
681   }
682 
getDefaultInstance()683   public static com.google.cloud.dataproc.v1.ValueValidation getDefaultInstance() {
684     return DEFAULT_INSTANCE;
685   }
686 
687   private static final com.google.protobuf.Parser<ValueValidation> PARSER =
688       new com.google.protobuf.AbstractParser<ValueValidation>() {
689         @java.lang.Override
690         public ValueValidation parsePartialFrom(
691             com.google.protobuf.CodedInputStream input,
692             com.google.protobuf.ExtensionRegistryLite extensionRegistry)
693             throws com.google.protobuf.InvalidProtocolBufferException {
694           Builder builder = newBuilder();
695           try {
696             builder.mergeFrom(input, extensionRegistry);
697           } catch (com.google.protobuf.InvalidProtocolBufferException e) {
698             throw e.setUnfinishedMessage(builder.buildPartial());
699           } catch (com.google.protobuf.UninitializedMessageException e) {
700             throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
701           } catch (java.io.IOException e) {
702             throw new com.google.protobuf.InvalidProtocolBufferException(e)
703                 .setUnfinishedMessage(builder.buildPartial());
704           }
705           return builder.buildPartial();
706         }
707       };
708 
parser()709   public static com.google.protobuf.Parser<ValueValidation> parser() {
710     return PARSER;
711   }
712 
713   @java.lang.Override
getParserForType()714   public com.google.protobuf.Parser<ValueValidation> getParserForType() {
715     return PARSER;
716   }
717 
718   @java.lang.Override
getDefaultInstanceForType()719   public com.google.cloud.dataproc.v1.ValueValidation getDefaultInstanceForType() {
720     return DEFAULT_INSTANCE;
721   }
722 }
723