• 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/container/v1/cluster_service.proto
18 
19 package com.google.container.v1;
20 
21 /**
22  *
23  *
24  * <pre>
25  * SetMasterAuthRequest updates the admin password of a cluster.
26  * </pre>
27  *
28  * Protobuf type {@code google.container.v1.SetMasterAuthRequest}
29  */
30 public final class SetMasterAuthRequest extends com.google.protobuf.GeneratedMessageV3
31     implements
32     // @@protoc_insertion_point(message_implements:google.container.v1.SetMasterAuthRequest)
33     SetMasterAuthRequestOrBuilder {
34   private static final long serialVersionUID = 0L;
35   // Use SetMasterAuthRequest.newBuilder() to construct.
SetMasterAuthRequest(com.google.protobuf.GeneratedMessageV3.Builder<?> builder)36   private SetMasterAuthRequest(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {
37     super(builder);
38   }
39 
SetMasterAuthRequest()40   private SetMasterAuthRequest() {
41     projectId_ = "";
42     zone_ = "";
43     clusterId_ = "";
44     action_ = 0;
45     name_ = "";
46   }
47 
48   @java.lang.Override
49   @SuppressWarnings({"unused"})
newInstance(UnusedPrivateParameter unused)50   protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
51     return new SetMasterAuthRequest();
52   }
53 
54   @java.lang.Override
getUnknownFields()55   public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
56     return this.unknownFields;
57   }
58 
getDescriptor()59   public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
60     return com.google.container.v1.ClusterServiceProto
61         .internal_static_google_container_v1_SetMasterAuthRequest_descriptor;
62   }
63 
64   @java.lang.Override
65   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable()66       internalGetFieldAccessorTable() {
67     return com.google.container.v1.ClusterServiceProto
68         .internal_static_google_container_v1_SetMasterAuthRequest_fieldAccessorTable
69         .ensureFieldAccessorsInitialized(
70             com.google.container.v1.SetMasterAuthRequest.class,
71             com.google.container.v1.SetMasterAuthRequest.Builder.class);
72   }
73 
74   /**
75    *
76    *
77    * <pre>
78    * Operation type: what type update to perform.
79    * </pre>
80    *
81    * Protobuf enum {@code google.container.v1.SetMasterAuthRequest.Action}
82    */
83   public enum Action implements com.google.protobuf.ProtocolMessageEnum {
84     /**
85      *
86      *
87      * <pre>
88      * Operation is unknown and will error out.
89      * </pre>
90      *
91      * <code>UNKNOWN = 0;</code>
92      */
93     UNKNOWN(0),
94     /**
95      *
96      *
97      * <pre>
98      * Set the password to a user generated value.
99      * </pre>
100      *
101      * <code>SET_PASSWORD = 1;</code>
102      */
103     SET_PASSWORD(1),
104     /**
105      *
106      *
107      * <pre>
108      * Generate a new password and set it to that.
109      * </pre>
110      *
111      * <code>GENERATE_PASSWORD = 2;</code>
112      */
113     GENERATE_PASSWORD(2),
114     /**
115      *
116      *
117      * <pre>
118      * Set the username.  If an empty username is provided, basic authentication
119      * is disabled for the cluster.  If a non-empty username is provided, basic
120      * authentication is enabled, with either a provided password or a generated
121      * one.
122      * </pre>
123      *
124      * <code>SET_USERNAME = 3;</code>
125      */
126     SET_USERNAME(3),
127     UNRECOGNIZED(-1),
128     ;
129 
130     /**
131      *
132      *
133      * <pre>
134      * Operation is unknown and will error out.
135      * </pre>
136      *
137      * <code>UNKNOWN = 0;</code>
138      */
139     public static final int UNKNOWN_VALUE = 0;
140     /**
141      *
142      *
143      * <pre>
144      * Set the password to a user generated value.
145      * </pre>
146      *
147      * <code>SET_PASSWORD = 1;</code>
148      */
149     public static final int SET_PASSWORD_VALUE = 1;
150     /**
151      *
152      *
153      * <pre>
154      * Generate a new password and set it to that.
155      * </pre>
156      *
157      * <code>GENERATE_PASSWORD = 2;</code>
158      */
159     public static final int GENERATE_PASSWORD_VALUE = 2;
160     /**
161      *
162      *
163      * <pre>
164      * Set the username.  If an empty username is provided, basic authentication
165      * is disabled for the cluster.  If a non-empty username is provided, basic
166      * authentication is enabled, with either a provided password or a generated
167      * one.
168      * </pre>
169      *
170      * <code>SET_USERNAME = 3;</code>
171      */
172     public static final int SET_USERNAME_VALUE = 3;
173 
getNumber()174     public final int getNumber() {
175       if (this == UNRECOGNIZED) {
176         throw new java.lang.IllegalArgumentException(
177             "Can't get the number of an unknown enum value.");
178       }
179       return value;
180     }
181 
182     /**
183      * @param value The numeric wire value of the corresponding enum entry.
184      * @return The enum associated with the given numeric wire value.
185      * @deprecated Use {@link #forNumber(int)} instead.
186      */
187     @java.lang.Deprecated
valueOf(int value)188     public static Action valueOf(int value) {
189       return forNumber(value);
190     }
191 
192     /**
193      * @param value The numeric wire value of the corresponding enum entry.
194      * @return The enum associated with the given numeric wire value.
195      */
forNumber(int value)196     public static Action forNumber(int value) {
197       switch (value) {
198         case 0:
199           return UNKNOWN;
200         case 1:
201           return SET_PASSWORD;
202         case 2:
203           return GENERATE_PASSWORD;
204         case 3:
205           return SET_USERNAME;
206         default:
207           return null;
208       }
209     }
210 
internalGetValueMap()211     public static com.google.protobuf.Internal.EnumLiteMap<Action> internalGetValueMap() {
212       return internalValueMap;
213     }
214 
215     private static final com.google.protobuf.Internal.EnumLiteMap<Action> internalValueMap =
216         new com.google.protobuf.Internal.EnumLiteMap<Action>() {
217           public Action findValueByNumber(int number) {
218             return Action.forNumber(number);
219           }
220         };
221 
getValueDescriptor()222     public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() {
223       if (this == UNRECOGNIZED) {
224         throw new java.lang.IllegalStateException(
225             "Can't get the descriptor of an unrecognized enum value.");
226       }
227       return getDescriptor().getValues().get(ordinal());
228     }
229 
getDescriptorForType()230     public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() {
231       return getDescriptor();
232     }
233 
getDescriptor()234     public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() {
235       return com.google.container.v1.SetMasterAuthRequest.getDescriptor().getEnumTypes().get(0);
236     }
237 
238     private static final Action[] VALUES = values();
239 
valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc)240     public static Action valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
241       if (desc.getType() != getDescriptor()) {
242         throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type.");
243       }
244       if (desc.getIndex() == -1) {
245         return UNRECOGNIZED;
246       }
247       return VALUES[desc.getIndex()];
248     }
249 
250     private final int value;
251 
Action(int value)252     private Action(int value) {
253       this.value = value;
254     }
255 
256     // @@protoc_insertion_point(enum_scope:google.container.v1.SetMasterAuthRequest.Action)
257   }
258 
259   public static final int PROJECT_ID_FIELD_NUMBER = 1;
260 
261   @SuppressWarnings("serial")
262   private volatile java.lang.Object projectId_ = "";
263   /**
264    *
265    *
266    * <pre>
267    * Deprecated. The Google Developers Console [project ID or project
268    * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects).
269    * This field has been deprecated and replaced by the name field.
270    * </pre>
271    *
272    * <code>string project_id = 1 [deprecated = true];</code>
273    *
274    * @deprecated google.container.v1.SetMasterAuthRequest.project_id is deprecated. See
275    *     google/container/v1/cluster_service.proto;l=2738
276    * @return The projectId.
277    */
278   @java.lang.Override
279   @java.lang.Deprecated
getProjectId()280   public java.lang.String getProjectId() {
281     java.lang.Object ref = projectId_;
282     if (ref instanceof java.lang.String) {
283       return (java.lang.String) ref;
284     } else {
285       com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
286       java.lang.String s = bs.toStringUtf8();
287       projectId_ = s;
288       return s;
289     }
290   }
291   /**
292    *
293    *
294    * <pre>
295    * Deprecated. The Google Developers Console [project ID or project
296    * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects).
297    * This field has been deprecated and replaced by the name field.
298    * </pre>
299    *
300    * <code>string project_id = 1 [deprecated = true];</code>
301    *
302    * @deprecated google.container.v1.SetMasterAuthRequest.project_id is deprecated. See
303    *     google/container/v1/cluster_service.proto;l=2738
304    * @return The bytes for projectId.
305    */
306   @java.lang.Override
307   @java.lang.Deprecated
getProjectIdBytes()308   public com.google.protobuf.ByteString getProjectIdBytes() {
309     java.lang.Object ref = projectId_;
310     if (ref instanceof java.lang.String) {
311       com.google.protobuf.ByteString b =
312           com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
313       projectId_ = b;
314       return b;
315     } else {
316       return (com.google.protobuf.ByteString) ref;
317     }
318   }
319 
320   public static final int ZONE_FIELD_NUMBER = 2;
321 
322   @SuppressWarnings("serial")
323   private volatile java.lang.Object zone_ = "";
324   /**
325    *
326    *
327    * <pre>
328    * Deprecated. The name of the Google Compute Engine
329    * [zone](https://cloud.google.com/compute/docs/zones#available) in which the
330    * cluster resides. This field has been deprecated and replaced by the name
331    * field.
332    * </pre>
333    *
334    * <code>string zone = 2 [deprecated = true];</code>
335    *
336    * @deprecated google.container.v1.SetMasterAuthRequest.zone is deprecated. See
337    *     google/container/v1/cluster_service.proto;l=2744
338    * @return The zone.
339    */
340   @java.lang.Override
341   @java.lang.Deprecated
getZone()342   public java.lang.String getZone() {
343     java.lang.Object ref = zone_;
344     if (ref instanceof java.lang.String) {
345       return (java.lang.String) ref;
346     } else {
347       com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
348       java.lang.String s = bs.toStringUtf8();
349       zone_ = s;
350       return s;
351     }
352   }
353   /**
354    *
355    *
356    * <pre>
357    * Deprecated. The name of the Google Compute Engine
358    * [zone](https://cloud.google.com/compute/docs/zones#available) in which the
359    * cluster resides. This field has been deprecated and replaced by the name
360    * field.
361    * </pre>
362    *
363    * <code>string zone = 2 [deprecated = true];</code>
364    *
365    * @deprecated google.container.v1.SetMasterAuthRequest.zone is deprecated. See
366    *     google/container/v1/cluster_service.proto;l=2744
367    * @return The bytes for zone.
368    */
369   @java.lang.Override
370   @java.lang.Deprecated
getZoneBytes()371   public com.google.protobuf.ByteString getZoneBytes() {
372     java.lang.Object ref = zone_;
373     if (ref instanceof java.lang.String) {
374       com.google.protobuf.ByteString b =
375           com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
376       zone_ = b;
377       return b;
378     } else {
379       return (com.google.protobuf.ByteString) ref;
380     }
381   }
382 
383   public static final int CLUSTER_ID_FIELD_NUMBER = 3;
384 
385   @SuppressWarnings("serial")
386   private volatile java.lang.Object clusterId_ = "";
387   /**
388    *
389    *
390    * <pre>
391    * Deprecated. The name of the cluster to upgrade.
392    * This field has been deprecated and replaced by the name field.
393    * </pre>
394    *
395    * <code>string cluster_id = 3 [deprecated = true];</code>
396    *
397    * @deprecated google.container.v1.SetMasterAuthRequest.cluster_id is deprecated. See
398    *     google/container/v1/cluster_service.proto;l=2748
399    * @return The clusterId.
400    */
401   @java.lang.Override
402   @java.lang.Deprecated
getClusterId()403   public java.lang.String getClusterId() {
404     java.lang.Object ref = clusterId_;
405     if (ref instanceof java.lang.String) {
406       return (java.lang.String) ref;
407     } else {
408       com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
409       java.lang.String s = bs.toStringUtf8();
410       clusterId_ = s;
411       return s;
412     }
413   }
414   /**
415    *
416    *
417    * <pre>
418    * Deprecated. The name of the cluster to upgrade.
419    * This field has been deprecated and replaced by the name field.
420    * </pre>
421    *
422    * <code>string cluster_id = 3 [deprecated = true];</code>
423    *
424    * @deprecated google.container.v1.SetMasterAuthRequest.cluster_id is deprecated. See
425    *     google/container/v1/cluster_service.proto;l=2748
426    * @return The bytes for clusterId.
427    */
428   @java.lang.Override
429   @java.lang.Deprecated
getClusterIdBytes()430   public com.google.protobuf.ByteString getClusterIdBytes() {
431     java.lang.Object ref = clusterId_;
432     if (ref instanceof java.lang.String) {
433       com.google.protobuf.ByteString b =
434           com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
435       clusterId_ = b;
436       return b;
437     } else {
438       return (com.google.protobuf.ByteString) ref;
439     }
440   }
441 
442   public static final int ACTION_FIELD_NUMBER = 4;
443   private int action_ = 0;
444   /**
445    *
446    *
447    * <pre>
448    * Required. The exact form of action to be taken on the master auth.
449    * </pre>
450    *
451    * <code>
452    * .google.container.v1.SetMasterAuthRequest.Action action = 4 [(.google.api.field_behavior) = REQUIRED];
453    * </code>
454    *
455    * @return The enum numeric value on the wire for action.
456    */
457   @java.lang.Override
getActionValue()458   public int getActionValue() {
459     return action_;
460   }
461   /**
462    *
463    *
464    * <pre>
465    * Required. The exact form of action to be taken on the master auth.
466    * </pre>
467    *
468    * <code>
469    * .google.container.v1.SetMasterAuthRequest.Action action = 4 [(.google.api.field_behavior) = REQUIRED];
470    * </code>
471    *
472    * @return The action.
473    */
474   @java.lang.Override
getAction()475   public com.google.container.v1.SetMasterAuthRequest.Action getAction() {
476     com.google.container.v1.SetMasterAuthRequest.Action result =
477         com.google.container.v1.SetMasterAuthRequest.Action.forNumber(action_);
478     return result == null
479         ? com.google.container.v1.SetMasterAuthRequest.Action.UNRECOGNIZED
480         : result;
481   }
482 
483   public static final int UPDATE_FIELD_NUMBER = 5;
484   private com.google.container.v1.MasterAuth update_;
485   /**
486    *
487    *
488    * <pre>
489    * Required. A description of the update.
490    * </pre>
491    *
492    * <code>.google.container.v1.MasterAuth update = 5 [(.google.api.field_behavior) = REQUIRED];
493    * </code>
494    *
495    * @return Whether the update field is set.
496    */
497   @java.lang.Override
hasUpdate()498   public boolean hasUpdate() {
499     return update_ != null;
500   }
501   /**
502    *
503    *
504    * <pre>
505    * Required. A description of the update.
506    * </pre>
507    *
508    * <code>.google.container.v1.MasterAuth update = 5 [(.google.api.field_behavior) = REQUIRED];
509    * </code>
510    *
511    * @return The update.
512    */
513   @java.lang.Override
getUpdate()514   public com.google.container.v1.MasterAuth getUpdate() {
515     return update_ == null ? com.google.container.v1.MasterAuth.getDefaultInstance() : update_;
516   }
517   /**
518    *
519    *
520    * <pre>
521    * Required. A description of the update.
522    * </pre>
523    *
524    * <code>.google.container.v1.MasterAuth update = 5 [(.google.api.field_behavior) = REQUIRED];
525    * </code>
526    */
527   @java.lang.Override
getUpdateOrBuilder()528   public com.google.container.v1.MasterAuthOrBuilder getUpdateOrBuilder() {
529     return update_ == null ? com.google.container.v1.MasterAuth.getDefaultInstance() : update_;
530   }
531 
532   public static final int NAME_FIELD_NUMBER = 7;
533 
534   @SuppressWarnings("serial")
535   private volatile java.lang.Object name_ = "";
536   /**
537    *
538    *
539    * <pre>
540    * The name (project, location, cluster) of the cluster to set auth.
541    * Specified in the format `projects/&#42;&#47;locations/&#42;&#47;clusters/&#42;`.
542    * </pre>
543    *
544    * <code>string name = 7;</code>
545    *
546    * @return The name.
547    */
548   @java.lang.Override
getName()549   public java.lang.String getName() {
550     java.lang.Object ref = name_;
551     if (ref instanceof java.lang.String) {
552       return (java.lang.String) ref;
553     } else {
554       com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
555       java.lang.String s = bs.toStringUtf8();
556       name_ = s;
557       return s;
558     }
559   }
560   /**
561    *
562    *
563    * <pre>
564    * The name (project, location, cluster) of the cluster to set auth.
565    * Specified in the format `projects/&#42;&#47;locations/&#42;&#47;clusters/&#42;`.
566    * </pre>
567    *
568    * <code>string name = 7;</code>
569    *
570    * @return The bytes for name.
571    */
572   @java.lang.Override
getNameBytes()573   public com.google.protobuf.ByteString getNameBytes() {
574     java.lang.Object ref = name_;
575     if (ref instanceof java.lang.String) {
576       com.google.protobuf.ByteString b =
577           com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
578       name_ = b;
579       return b;
580     } else {
581       return (com.google.protobuf.ByteString) ref;
582     }
583   }
584 
585   private byte memoizedIsInitialized = -1;
586 
587   @java.lang.Override
isInitialized()588   public final boolean isInitialized() {
589     byte isInitialized = memoizedIsInitialized;
590     if (isInitialized == 1) return true;
591     if (isInitialized == 0) return false;
592 
593     memoizedIsInitialized = 1;
594     return true;
595   }
596 
597   @java.lang.Override
writeTo(com.google.protobuf.CodedOutputStream output)598   public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
599     if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(projectId_)) {
600       com.google.protobuf.GeneratedMessageV3.writeString(output, 1, projectId_);
601     }
602     if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(zone_)) {
603       com.google.protobuf.GeneratedMessageV3.writeString(output, 2, zone_);
604     }
605     if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(clusterId_)) {
606       com.google.protobuf.GeneratedMessageV3.writeString(output, 3, clusterId_);
607     }
608     if (action_ != com.google.container.v1.SetMasterAuthRequest.Action.UNKNOWN.getNumber()) {
609       output.writeEnum(4, action_);
610     }
611     if (update_ != null) {
612       output.writeMessage(5, getUpdate());
613     }
614     if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) {
615       com.google.protobuf.GeneratedMessageV3.writeString(output, 7, name_);
616     }
617     getUnknownFields().writeTo(output);
618   }
619 
620   @java.lang.Override
getSerializedSize()621   public int getSerializedSize() {
622     int size = memoizedSize;
623     if (size != -1) return size;
624 
625     size = 0;
626     if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(projectId_)) {
627       size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, projectId_);
628     }
629     if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(zone_)) {
630       size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, zone_);
631     }
632     if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(clusterId_)) {
633       size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, clusterId_);
634     }
635     if (action_ != com.google.container.v1.SetMasterAuthRequest.Action.UNKNOWN.getNumber()) {
636       size += com.google.protobuf.CodedOutputStream.computeEnumSize(4, action_);
637     }
638     if (update_ != null) {
639       size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, getUpdate());
640     }
641     if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) {
642       size += com.google.protobuf.GeneratedMessageV3.computeStringSize(7, name_);
643     }
644     size += getUnknownFields().getSerializedSize();
645     memoizedSize = size;
646     return size;
647   }
648 
649   @java.lang.Override
equals(final java.lang.Object obj)650   public boolean equals(final java.lang.Object obj) {
651     if (obj == this) {
652       return true;
653     }
654     if (!(obj instanceof com.google.container.v1.SetMasterAuthRequest)) {
655       return super.equals(obj);
656     }
657     com.google.container.v1.SetMasterAuthRequest other =
658         (com.google.container.v1.SetMasterAuthRequest) obj;
659 
660     if (!getProjectId().equals(other.getProjectId())) return false;
661     if (!getZone().equals(other.getZone())) return false;
662     if (!getClusterId().equals(other.getClusterId())) return false;
663     if (action_ != other.action_) return false;
664     if (hasUpdate() != other.hasUpdate()) return false;
665     if (hasUpdate()) {
666       if (!getUpdate().equals(other.getUpdate())) return false;
667     }
668     if (!getName().equals(other.getName())) return false;
669     if (!getUnknownFields().equals(other.getUnknownFields())) return false;
670     return true;
671   }
672 
673   @java.lang.Override
hashCode()674   public int hashCode() {
675     if (memoizedHashCode != 0) {
676       return memoizedHashCode;
677     }
678     int hash = 41;
679     hash = (19 * hash) + getDescriptor().hashCode();
680     hash = (37 * hash) + PROJECT_ID_FIELD_NUMBER;
681     hash = (53 * hash) + getProjectId().hashCode();
682     hash = (37 * hash) + ZONE_FIELD_NUMBER;
683     hash = (53 * hash) + getZone().hashCode();
684     hash = (37 * hash) + CLUSTER_ID_FIELD_NUMBER;
685     hash = (53 * hash) + getClusterId().hashCode();
686     hash = (37 * hash) + ACTION_FIELD_NUMBER;
687     hash = (53 * hash) + action_;
688     if (hasUpdate()) {
689       hash = (37 * hash) + UPDATE_FIELD_NUMBER;
690       hash = (53 * hash) + getUpdate().hashCode();
691     }
692     hash = (37 * hash) + NAME_FIELD_NUMBER;
693     hash = (53 * hash) + getName().hashCode();
694     hash = (29 * hash) + getUnknownFields().hashCode();
695     memoizedHashCode = hash;
696     return hash;
697   }
698 
parseFrom(java.nio.ByteBuffer data)699   public static com.google.container.v1.SetMasterAuthRequest parseFrom(java.nio.ByteBuffer data)
700       throws com.google.protobuf.InvalidProtocolBufferException {
701     return PARSER.parseFrom(data);
702   }
703 
parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)704   public static com.google.container.v1.SetMasterAuthRequest parseFrom(
705       java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
706       throws com.google.protobuf.InvalidProtocolBufferException {
707     return PARSER.parseFrom(data, extensionRegistry);
708   }
709 
parseFrom( com.google.protobuf.ByteString data)710   public static com.google.container.v1.SetMasterAuthRequest parseFrom(
711       com.google.protobuf.ByteString data)
712       throws com.google.protobuf.InvalidProtocolBufferException {
713     return PARSER.parseFrom(data);
714   }
715 
parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)716   public static com.google.container.v1.SetMasterAuthRequest parseFrom(
717       com.google.protobuf.ByteString data,
718       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
719       throws com.google.protobuf.InvalidProtocolBufferException {
720     return PARSER.parseFrom(data, extensionRegistry);
721   }
722 
parseFrom(byte[] data)723   public static com.google.container.v1.SetMasterAuthRequest parseFrom(byte[] data)
724       throws com.google.protobuf.InvalidProtocolBufferException {
725     return PARSER.parseFrom(data);
726   }
727 
parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)728   public static com.google.container.v1.SetMasterAuthRequest parseFrom(
729       byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
730       throws com.google.protobuf.InvalidProtocolBufferException {
731     return PARSER.parseFrom(data, extensionRegistry);
732   }
733 
parseFrom(java.io.InputStream input)734   public static com.google.container.v1.SetMasterAuthRequest parseFrom(java.io.InputStream input)
735       throws java.io.IOException {
736     return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
737   }
738 
parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)739   public static com.google.container.v1.SetMasterAuthRequest parseFrom(
740       java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
741       throws java.io.IOException {
742     return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
743         PARSER, input, extensionRegistry);
744   }
745 
parseDelimitedFrom( java.io.InputStream input)746   public static com.google.container.v1.SetMasterAuthRequest parseDelimitedFrom(
747       java.io.InputStream input) throws java.io.IOException {
748     return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
749   }
750 
parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)751   public static com.google.container.v1.SetMasterAuthRequest parseDelimitedFrom(
752       java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
753       throws java.io.IOException {
754     return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
755         PARSER, input, extensionRegistry);
756   }
757 
parseFrom( com.google.protobuf.CodedInputStream input)758   public static com.google.container.v1.SetMasterAuthRequest parseFrom(
759       com.google.protobuf.CodedInputStream input) throws java.io.IOException {
760     return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
761   }
762 
parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)763   public static com.google.container.v1.SetMasterAuthRequest parseFrom(
764       com.google.protobuf.CodedInputStream input,
765       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
766       throws java.io.IOException {
767     return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
768         PARSER, input, extensionRegistry);
769   }
770 
771   @java.lang.Override
newBuilderForType()772   public Builder newBuilderForType() {
773     return newBuilder();
774   }
775 
newBuilder()776   public static Builder newBuilder() {
777     return DEFAULT_INSTANCE.toBuilder();
778   }
779 
newBuilder(com.google.container.v1.SetMasterAuthRequest prototype)780   public static Builder newBuilder(com.google.container.v1.SetMasterAuthRequest prototype) {
781     return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
782   }
783 
784   @java.lang.Override
toBuilder()785   public Builder toBuilder() {
786     return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
787   }
788 
789   @java.lang.Override
newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)790   protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
791     Builder builder = new Builder(parent);
792     return builder;
793   }
794   /**
795    *
796    *
797    * <pre>
798    * SetMasterAuthRequest updates the admin password of a cluster.
799    * </pre>
800    *
801    * Protobuf type {@code google.container.v1.SetMasterAuthRequest}
802    */
803   public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder<Builder>
804       implements
805       // @@protoc_insertion_point(builder_implements:google.container.v1.SetMasterAuthRequest)
806       com.google.container.v1.SetMasterAuthRequestOrBuilder {
getDescriptor()807     public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
808       return com.google.container.v1.ClusterServiceProto
809           .internal_static_google_container_v1_SetMasterAuthRequest_descriptor;
810     }
811 
812     @java.lang.Override
813     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable()814         internalGetFieldAccessorTable() {
815       return com.google.container.v1.ClusterServiceProto
816           .internal_static_google_container_v1_SetMasterAuthRequest_fieldAccessorTable
817           .ensureFieldAccessorsInitialized(
818               com.google.container.v1.SetMasterAuthRequest.class,
819               com.google.container.v1.SetMasterAuthRequest.Builder.class);
820     }
821 
822     // Construct using com.google.container.v1.SetMasterAuthRequest.newBuilder()
Builder()823     private Builder() {}
824 
Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)825     private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
826       super(parent);
827     }
828 
829     @java.lang.Override
clear()830     public Builder clear() {
831       super.clear();
832       bitField0_ = 0;
833       projectId_ = "";
834       zone_ = "";
835       clusterId_ = "";
836       action_ = 0;
837       update_ = null;
838       if (updateBuilder_ != null) {
839         updateBuilder_.dispose();
840         updateBuilder_ = null;
841       }
842       name_ = "";
843       return this;
844     }
845 
846     @java.lang.Override
getDescriptorForType()847     public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
848       return com.google.container.v1.ClusterServiceProto
849           .internal_static_google_container_v1_SetMasterAuthRequest_descriptor;
850     }
851 
852     @java.lang.Override
getDefaultInstanceForType()853     public com.google.container.v1.SetMasterAuthRequest getDefaultInstanceForType() {
854       return com.google.container.v1.SetMasterAuthRequest.getDefaultInstance();
855     }
856 
857     @java.lang.Override
build()858     public com.google.container.v1.SetMasterAuthRequest build() {
859       com.google.container.v1.SetMasterAuthRequest result = buildPartial();
860       if (!result.isInitialized()) {
861         throw newUninitializedMessageException(result);
862       }
863       return result;
864     }
865 
866     @java.lang.Override
buildPartial()867     public com.google.container.v1.SetMasterAuthRequest buildPartial() {
868       com.google.container.v1.SetMasterAuthRequest result =
869           new com.google.container.v1.SetMasterAuthRequest(this);
870       if (bitField0_ != 0) {
871         buildPartial0(result);
872       }
873       onBuilt();
874       return result;
875     }
876 
buildPartial0(com.google.container.v1.SetMasterAuthRequest result)877     private void buildPartial0(com.google.container.v1.SetMasterAuthRequest result) {
878       int from_bitField0_ = bitField0_;
879       if (((from_bitField0_ & 0x00000001) != 0)) {
880         result.projectId_ = projectId_;
881       }
882       if (((from_bitField0_ & 0x00000002) != 0)) {
883         result.zone_ = zone_;
884       }
885       if (((from_bitField0_ & 0x00000004) != 0)) {
886         result.clusterId_ = clusterId_;
887       }
888       if (((from_bitField0_ & 0x00000008) != 0)) {
889         result.action_ = action_;
890       }
891       if (((from_bitField0_ & 0x00000010) != 0)) {
892         result.update_ = updateBuilder_ == null ? update_ : updateBuilder_.build();
893       }
894       if (((from_bitField0_ & 0x00000020) != 0)) {
895         result.name_ = name_;
896       }
897     }
898 
899     @java.lang.Override
clone()900     public Builder clone() {
901       return super.clone();
902     }
903 
904     @java.lang.Override
setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)905     public Builder setField(
906         com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
907       return super.setField(field, value);
908     }
909 
910     @java.lang.Override
clearField(com.google.protobuf.Descriptors.FieldDescriptor field)911     public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
912       return super.clearField(field);
913     }
914 
915     @java.lang.Override
clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)916     public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
917       return super.clearOneof(oneof);
918     }
919 
920     @java.lang.Override
setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value)921     public Builder setRepeatedField(
922         com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
923       return super.setRepeatedField(field, index, value);
924     }
925 
926     @java.lang.Override
addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)927     public Builder addRepeatedField(
928         com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
929       return super.addRepeatedField(field, value);
930     }
931 
932     @java.lang.Override
mergeFrom(com.google.protobuf.Message other)933     public Builder mergeFrom(com.google.protobuf.Message other) {
934       if (other instanceof com.google.container.v1.SetMasterAuthRequest) {
935         return mergeFrom((com.google.container.v1.SetMasterAuthRequest) other);
936       } else {
937         super.mergeFrom(other);
938         return this;
939       }
940     }
941 
mergeFrom(com.google.container.v1.SetMasterAuthRequest other)942     public Builder mergeFrom(com.google.container.v1.SetMasterAuthRequest other) {
943       if (other == com.google.container.v1.SetMasterAuthRequest.getDefaultInstance()) return this;
944       if (!other.getProjectId().isEmpty()) {
945         projectId_ = other.projectId_;
946         bitField0_ |= 0x00000001;
947         onChanged();
948       }
949       if (!other.getZone().isEmpty()) {
950         zone_ = other.zone_;
951         bitField0_ |= 0x00000002;
952         onChanged();
953       }
954       if (!other.getClusterId().isEmpty()) {
955         clusterId_ = other.clusterId_;
956         bitField0_ |= 0x00000004;
957         onChanged();
958       }
959       if (other.action_ != 0) {
960         setActionValue(other.getActionValue());
961       }
962       if (other.hasUpdate()) {
963         mergeUpdate(other.getUpdate());
964       }
965       if (!other.getName().isEmpty()) {
966         name_ = other.name_;
967         bitField0_ |= 0x00000020;
968         onChanged();
969       }
970       this.mergeUnknownFields(other.getUnknownFields());
971       onChanged();
972       return this;
973     }
974 
975     @java.lang.Override
isInitialized()976     public final boolean isInitialized() {
977       return true;
978     }
979 
980     @java.lang.Override
mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)981     public Builder mergeFrom(
982         com.google.protobuf.CodedInputStream input,
983         com.google.protobuf.ExtensionRegistryLite extensionRegistry)
984         throws java.io.IOException {
985       if (extensionRegistry == null) {
986         throw new java.lang.NullPointerException();
987       }
988       try {
989         boolean done = false;
990         while (!done) {
991           int tag = input.readTag();
992           switch (tag) {
993             case 0:
994               done = true;
995               break;
996             case 10:
997               {
998                 projectId_ = input.readStringRequireUtf8();
999                 bitField0_ |= 0x00000001;
1000                 break;
1001               } // case 10
1002             case 18:
1003               {
1004                 zone_ = input.readStringRequireUtf8();
1005                 bitField0_ |= 0x00000002;
1006                 break;
1007               } // case 18
1008             case 26:
1009               {
1010                 clusterId_ = input.readStringRequireUtf8();
1011                 bitField0_ |= 0x00000004;
1012                 break;
1013               } // case 26
1014             case 32:
1015               {
1016                 action_ = input.readEnum();
1017                 bitField0_ |= 0x00000008;
1018                 break;
1019               } // case 32
1020             case 42:
1021               {
1022                 input.readMessage(getUpdateFieldBuilder().getBuilder(), extensionRegistry);
1023                 bitField0_ |= 0x00000010;
1024                 break;
1025               } // case 42
1026             case 58:
1027               {
1028                 name_ = input.readStringRequireUtf8();
1029                 bitField0_ |= 0x00000020;
1030                 break;
1031               } // case 58
1032             default:
1033               {
1034                 if (!super.parseUnknownField(input, extensionRegistry, tag)) {
1035                   done = true; // was an endgroup tag
1036                 }
1037                 break;
1038               } // default:
1039           } // switch (tag)
1040         } // while (!done)
1041       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
1042         throw e.unwrapIOException();
1043       } finally {
1044         onChanged();
1045       } // finally
1046       return this;
1047     }
1048 
1049     private int bitField0_;
1050 
1051     private java.lang.Object projectId_ = "";
1052     /**
1053      *
1054      *
1055      * <pre>
1056      * Deprecated. The Google Developers Console [project ID or project
1057      * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects).
1058      * This field has been deprecated and replaced by the name field.
1059      * </pre>
1060      *
1061      * <code>string project_id = 1 [deprecated = true];</code>
1062      *
1063      * @deprecated google.container.v1.SetMasterAuthRequest.project_id is deprecated. See
1064      *     google/container/v1/cluster_service.proto;l=2738
1065      * @return The projectId.
1066      */
1067     @java.lang.Deprecated
getProjectId()1068     public java.lang.String getProjectId() {
1069       java.lang.Object ref = projectId_;
1070       if (!(ref instanceof java.lang.String)) {
1071         com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
1072         java.lang.String s = bs.toStringUtf8();
1073         projectId_ = s;
1074         return s;
1075       } else {
1076         return (java.lang.String) ref;
1077       }
1078     }
1079     /**
1080      *
1081      *
1082      * <pre>
1083      * Deprecated. The Google Developers Console [project ID or project
1084      * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects).
1085      * This field has been deprecated and replaced by the name field.
1086      * </pre>
1087      *
1088      * <code>string project_id = 1 [deprecated = true];</code>
1089      *
1090      * @deprecated google.container.v1.SetMasterAuthRequest.project_id is deprecated. See
1091      *     google/container/v1/cluster_service.proto;l=2738
1092      * @return The bytes for projectId.
1093      */
1094     @java.lang.Deprecated
getProjectIdBytes()1095     public com.google.protobuf.ByteString getProjectIdBytes() {
1096       java.lang.Object ref = projectId_;
1097       if (ref instanceof String) {
1098         com.google.protobuf.ByteString b =
1099             com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
1100         projectId_ = b;
1101         return b;
1102       } else {
1103         return (com.google.protobuf.ByteString) ref;
1104       }
1105     }
1106     /**
1107      *
1108      *
1109      * <pre>
1110      * Deprecated. The Google Developers Console [project ID or project
1111      * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects).
1112      * This field has been deprecated and replaced by the name field.
1113      * </pre>
1114      *
1115      * <code>string project_id = 1 [deprecated = true];</code>
1116      *
1117      * @deprecated google.container.v1.SetMasterAuthRequest.project_id is deprecated. See
1118      *     google/container/v1/cluster_service.proto;l=2738
1119      * @param value The projectId to set.
1120      * @return This builder for chaining.
1121      */
1122     @java.lang.Deprecated
setProjectId(java.lang.String value)1123     public Builder setProjectId(java.lang.String value) {
1124       if (value == null) {
1125         throw new NullPointerException();
1126       }
1127       projectId_ = value;
1128       bitField0_ |= 0x00000001;
1129       onChanged();
1130       return this;
1131     }
1132     /**
1133      *
1134      *
1135      * <pre>
1136      * Deprecated. The Google Developers Console [project ID or project
1137      * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects).
1138      * This field has been deprecated and replaced by the name field.
1139      * </pre>
1140      *
1141      * <code>string project_id = 1 [deprecated = true];</code>
1142      *
1143      * @deprecated google.container.v1.SetMasterAuthRequest.project_id is deprecated. See
1144      *     google/container/v1/cluster_service.proto;l=2738
1145      * @return This builder for chaining.
1146      */
1147     @java.lang.Deprecated
clearProjectId()1148     public Builder clearProjectId() {
1149       projectId_ = getDefaultInstance().getProjectId();
1150       bitField0_ = (bitField0_ & ~0x00000001);
1151       onChanged();
1152       return this;
1153     }
1154     /**
1155      *
1156      *
1157      * <pre>
1158      * Deprecated. The Google Developers Console [project ID or project
1159      * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects).
1160      * This field has been deprecated and replaced by the name field.
1161      * </pre>
1162      *
1163      * <code>string project_id = 1 [deprecated = true];</code>
1164      *
1165      * @deprecated google.container.v1.SetMasterAuthRequest.project_id is deprecated. See
1166      *     google/container/v1/cluster_service.proto;l=2738
1167      * @param value The bytes for projectId to set.
1168      * @return This builder for chaining.
1169      */
1170     @java.lang.Deprecated
setProjectIdBytes(com.google.protobuf.ByteString value)1171     public Builder setProjectIdBytes(com.google.protobuf.ByteString value) {
1172       if (value == null) {
1173         throw new NullPointerException();
1174       }
1175       checkByteStringIsUtf8(value);
1176       projectId_ = value;
1177       bitField0_ |= 0x00000001;
1178       onChanged();
1179       return this;
1180     }
1181 
1182     private java.lang.Object zone_ = "";
1183     /**
1184      *
1185      *
1186      * <pre>
1187      * Deprecated. The name of the Google Compute Engine
1188      * [zone](https://cloud.google.com/compute/docs/zones#available) in which the
1189      * cluster resides. This field has been deprecated and replaced by the name
1190      * field.
1191      * </pre>
1192      *
1193      * <code>string zone = 2 [deprecated = true];</code>
1194      *
1195      * @deprecated google.container.v1.SetMasterAuthRequest.zone is deprecated. See
1196      *     google/container/v1/cluster_service.proto;l=2744
1197      * @return The zone.
1198      */
1199     @java.lang.Deprecated
getZone()1200     public java.lang.String getZone() {
1201       java.lang.Object ref = zone_;
1202       if (!(ref instanceof java.lang.String)) {
1203         com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
1204         java.lang.String s = bs.toStringUtf8();
1205         zone_ = s;
1206         return s;
1207       } else {
1208         return (java.lang.String) ref;
1209       }
1210     }
1211     /**
1212      *
1213      *
1214      * <pre>
1215      * Deprecated. The name of the Google Compute Engine
1216      * [zone](https://cloud.google.com/compute/docs/zones#available) in which the
1217      * cluster resides. This field has been deprecated and replaced by the name
1218      * field.
1219      * </pre>
1220      *
1221      * <code>string zone = 2 [deprecated = true];</code>
1222      *
1223      * @deprecated google.container.v1.SetMasterAuthRequest.zone is deprecated. See
1224      *     google/container/v1/cluster_service.proto;l=2744
1225      * @return The bytes for zone.
1226      */
1227     @java.lang.Deprecated
getZoneBytes()1228     public com.google.protobuf.ByteString getZoneBytes() {
1229       java.lang.Object ref = zone_;
1230       if (ref instanceof String) {
1231         com.google.protobuf.ByteString b =
1232             com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
1233         zone_ = b;
1234         return b;
1235       } else {
1236         return (com.google.protobuf.ByteString) ref;
1237       }
1238     }
1239     /**
1240      *
1241      *
1242      * <pre>
1243      * Deprecated. The name of the Google Compute Engine
1244      * [zone](https://cloud.google.com/compute/docs/zones#available) in which the
1245      * cluster resides. This field has been deprecated and replaced by the name
1246      * field.
1247      * </pre>
1248      *
1249      * <code>string zone = 2 [deprecated = true];</code>
1250      *
1251      * @deprecated google.container.v1.SetMasterAuthRequest.zone is deprecated. See
1252      *     google/container/v1/cluster_service.proto;l=2744
1253      * @param value The zone to set.
1254      * @return This builder for chaining.
1255      */
1256     @java.lang.Deprecated
setZone(java.lang.String value)1257     public Builder setZone(java.lang.String value) {
1258       if (value == null) {
1259         throw new NullPointerException();
1260       }
1261       zone_ = value;
1262       bitField0_ |= 0x00000002;
1263       onChanged();
1264       return this;
1265     }
1266     /**
1267      *
1268      *
1269      * <pre>
1270      * Deprecated. The name of the Google Compute Engine
1271      * [zone](https://cloud.google.com/compute/docs/zones#available) in which the
1272      * cluster resides. This field has been deprecated and replaced by the name
1273      * field.
1274      * </pre>
1275      *
1276      * <code>string zone = 2 [deprecated = true];</code>
1277      *
1278      * @deprecated google.container.v1.SetMasterAuthRequest.zone is deprecated. See
1279      *     google/container/v1/cluster_service.proto;l=2744
1280      * @return This builder for chaining.
1281      */
1282     @java.lang.Deprecated
clearZone()1283     public Builder clearZone() {
1284       zone_ = getDefaultInstance().getZone();
1285       bitField0_ = (bitField0_ & ~0x00000002);
1286       onChanged();
1287       return this;
1288     }
1289     /**
1290      *
1291      *
1292      * <pre>
1293      * Deprecated. The name of the Google Compute Engine
1294      * [zone](https://cloud.google.com/compute/docs/zones#available) in which the
1295      * cluster resides. This field has been deprecated and replaced by the name
1296      * field.
1297      * </pre>
1298      *
1299      * <code>string zone = 2 [deprecated = true];</code>
1300      *
1301      * @deprecated google.container.v1.SetMasterAuthRequest.zone is deprecated. See
1302      *     google/container/v1/cluster_service.proto;l=2744
1303      * @param value The bytes for zone to set.
1304      * @return This builder for chaining.
1305      */
1306     @java.lang.Deprecated
setZoneBytes(com.google.protobuf.ByteString value)1307     public Builder setZoneBytes(com.google.protobuf.ByteString value) {
1308       if (value == null) {
1309         throw new NullPointerException();
1310       }
1311       checkByteStringIsUtf8(value);
1312       zone_ = value;
1313       bitField0_ |= 0x00000002;
1314       onChanged();
1315       return this;
1316     }
1317 
1318     private java.lang.Object clusterId_ = "";
1319     /**
1320      *
1321      *
1322      * <pre>
1323      * Deprecated. The name of the cluster to upgrade.
1324      * This field has been deprecated and replaced by the name field.
1325      * </pre>
1326      *
1327      * <code>string cluster_id = 3 [deprecated = true];</code>
1328      *
1329      * @deprecated google.container.v1.SetMasterAuthRequest.cluster_id is deprecated. See
1330      *     google/container/v1/cluster_service.proto;l=2748
1331      * @return The clusterId.
1332      */
1333     @java.lang.Deprecated
getClusterId()1334     public java.lang.String getClusterId() {
1335       java.lang.Object ref = clusterId_;
1336       if (!(ref instanceof java.lang.String)) {
1337         com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
1338         java.lang.String s = bs.toStringUtf8();
1339         clusterId_ = s;
1340         return s;
1341       } else {
1342         return (java.lang.String) ref;
1343       }
1344     }
1345     /**
1346      *
1347      *
1348      * <pre>
1349      * Deprecated. The name of the cluster to upgrade.
1350      * This field has been deprecated and replaced by the name field.
1351      * </pre>
1352      *
1353      * <code>string cluster_id = 3 [deprecated = true];</code>
1354      *
1355      * @deprecated google.container.v1.SetMasterAuthRequest.cluster_id is deprecated. See
1356      *     google/container/v1/cluster_service.proto;l=2748
1357      * @return The bytes for clusterId.
1358      */
1359     @java.lang.Deprecated
getClusterIdBytes()1360     public com.google.protobuf.ByteString getClusterIdBytes() {
1361       java.lang.Object ref = clusterId_;
1362       if (ref instanceof String) {
1363         com.google.protobuf.ByteString b =
1364             com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
1365         clusterId_ = b;
1366         return b;
1367       } else {
1368         return (com.google.protobuf.ByteString) ref;
1369       }
1370     }
1371     /**
1372      *
1373      *
1374      * <pre>
1375      * Deprecated. The name of the cluster to upgrade.
1376      * This field has been deprecated and replaced by the name field.
1377      * </pre>
1378      *
1379      * <code>string cluster_id = 3 [deprecated = true];</code>
1380      *
1381      * @deprecated google.container.v1.SetMasterAuthRequest.cluster_id is deprecated. See
1382      *     google/container/v1/cluster_service.proto;l=2748
1383      * @param value The clusterId to set.
1384      * @return This builder for chaining.
1385      */
1386     @java.lang.Deprecated
setClusterId(java.lang.String value)1387     public Builder setClusterId(java.lang.String value) {
1388       if (value == null) {
1389         throw new NullPointerException();
1390       }
1391       clusterId_ = value;
1392       bitField0_ |= 0x00000004;
1393       onChanged();
1394       return this;
1395     }
1396     /**
1397      *
1398      *
1399      * <pre>
1400      * Deprecated. The name of the cluster to upgrade.
1401      * This field has been deprecated and replaced by the name field.
1402      * </pre>
1403      *
1404      * <code>string cluster_id = 3 [deprecated = true];</code>
1405      *
1406      * @deprecated google.container.v1.SetMasterAuthRequest.cluster_id is deprecated. See
1407      *     google/container/v1/cluster_service.proto;l=2748
1408      * @return This builder for chaining.
1409      */
1410     @java.lang.Deprecated
clearClusterId()1411     public Builder clearClusterId() {
1412       clusterId_ = getDefaultInstance().getClusterId();
1413       bitField0_ = (bitField0_ & ~0x00000004);
1414       onChanged();
1415       return this;
1416     }
1417     /**
1418      *
1419      *
1420      * <pre>
1421      * Deprecated. The name of the cluster to upgrade.
1422      * This field has been deprecated and replaced by the name field.
1423      * </pre>
1424      *
1425      * <code>string cluster_id = 3 [deprecated = true];</code>
1426      *
1427      * @deprecated google.container.v1.SetMasterAuthRequest.cluster_id is deprecated. See
1428      *     google/container/v1/cluster_service.proto;l=2748
1429      * @param value The bytes for clusterId to set.
1430      * @return This builder for chaining.
1431      */
1432     @java.lang.Deprecated
setClusterIdBytes(com.google.protobuf.ByteString value)1433     public Builder setClusterIdBytes(com.google.protobuf.ByteString value) {
1434       if (value == null) {
1435         throw new NullPointerException();
1436       }
1437       checkByteStringIsUtf8(value);
1438       clusterId_ = value;
1439       bitField0_ |= 0x00000004;
1440       onChanged();
1441       return this;
1442     }
1443 
1444     private int action_ = 0;
1445     /**
1446      *
1447      *
1448      * <pre>
1449      * Required. The exact form of action to be taken on the master auth.
1450      * </pre>
1451      *
1452      * <code>
1453      * .google.container.v1.SetMasterAuthRequest.Action action = 4 [(.google.api.field_behavior) = REQUIRED];
1454      * </code>
1455      *
1456      * @return The enum numeric value on the wire for action.
1457      */
1458     @java.lang.Override
getActionValue()1459     public int getActionValue() {
1460       return action_;
1461     }
1462     /**
1463      *
1464      *
1465      * <pre>
1466      * Required. The exact form of action to be taken on the master auth.
1467      * </pre>
1468      *
1469      * <code>
1470      * .google.container.v1.SetMasterAuthRequest.Action action = 4 [(.google.api.field_behavior) = REQUIRED];
1471      * </code>
1472      *
1473      * @param value The enum numeric value on the wire for action to set.
1474      * @return This builder for chaining.
1475      */
setActionValue(int value)1476     public Builder setActionValue(int value) {
1477       action_ = value;
1478       bitField0_ |= 0x00000008;
1479       onChanged();
1480       return this;
1481     }
1482     /**
1483      *
1484      *
1485      * <pre>
1486      * Required. The exact form of action to be taken on the master auth.
1487      * </pre>
1488      *
1489      * <code>
1490      * .google.container.v1.SetMasterAuthRequest.Action action = 4 [(.google.api.field_behavior) = REQUIRED];
1491      * </code>
1492      *
1493      * @return The action.
1494      */
1495     @java.lang.Override
getAction()1496     public com.google.container.v1.SetMasterAuthRequest.Action getAction() {
1497       com.google.container.v1.SetMasterAuthRequest.Action result =
1498           com.google.container.v1.SetMasterAuthRequest.Action.forNumber(action_);
1499       return result == null
1500           ? com.google.container.v1.SetMasterAuthRequest.Action.UNRECOGNIZED
1501           : result;
1502     }
1503     /**
1504      *
1505      *
1506      * <pre>
1507      * Required. The exact form of action to be taken on the master auth.
1508      * </pre>
1509      *
1510      * <code>
1511      * .google.container.v1.SetMasterAuthRequest.Action action = 4 [(.google.api.field_behavior) = REQUIRED];
1512      * </code>
1513      *
1514      * @param value The action to set.
1515      * @return This builder for chaining.
1516      */
setAction(com.google.container.v1.SetMasterAuthRequest.Action value)1517     public Builder setAction(com.google.container.v1.SetMasterAuthRequest.Action value) {
1518       if (value == null) {
1519         throw new NullPointerException();
1520       }
1521       bitField0_ |= 0x00000008;
1522       action_ = value.getNumber();
1523       onChanged();
1524       return this;
1525     }
1526     /**
1527      *
1528      *
1529      * <pre>
1530      * Required. The exact form of action to be taken on the master auth.
1531      * </pre>
1532      *
1533      * <code>
1534      * .google.container.v1.SetMasterAuthRequest.Action action = 4 [(.google.api.field_behavior) = REQUIRED];
1535      * </code>
1536      *
1537      * @return This builder for chaining.
1538      */
clearAction()1539     public Builder clearAction() {
1540       bitField0_ = (bitField0_ & ~0x00000008);
1541       action_ = 0;
1542       onChanged();
1543       return this;
1544     }
1545 
1546     private com.google.container.v1.MasterAuth update_;
1547     private com.google.protobuf.SingleFieldBuilderV3<
1548             com.google.container.v1.MasterAuth,
1549             com.google.container.v1.MasterAuth.Builder,
1550             com.google.container.v1.MasterAuthOrBuilder>
1551         updateBuilder_;
1552     /**
1553      *
1554      *
1555      * <pre>
1556      * Required. A description of the update.
1557      * </pre>
1558      *
1559      * <code>.google.container.v1.MasterAuth update = 5 [(.google.api.field_behavior) = REQUIRED];
1560      * </code>
1561      *
1562      * @return Whether the update field is set.
1563      */
hasUpdate()1564     public boolean hasUpdate() {
1565       return ((bitField0_ & 0x00000010) != 0);
1566     }
1567     /**
1568      *
1569      *
1570      * <pre>
1571      * Required. A description of the update.
1572      * </pre>
1573      *
1574      * <code>.google.container.v1.MasterAuth update = 5 [(.google.api.field_behavior) = REQUIRED];
1575      * </code>
1576      *
1577      * @return The update.
1578      */
getUpdate()1579     public com.google.container.v1.MasterAuth getUpdate() {
1580       if (updateBuilder_ == null) {
1581         return update_ == null ? com.google.container.v1.MasterAuth.getDefaultInstance() : update_;
1582       } else {
1583         return updateBuilder_.getMessage();
1584       }
1585     }
1586     /**
1587      *
1588      *
1589      * <pre>
1590      * Required. A description of the update.
1591      * </pre>
1592      *
1593      * <code>.google.container.v1.MasterAuth update = 5 [(.google.api.field_behavior) = REQUIRED];
1594      * </code>
1595      */
setUpdate(com.google.container.v1.MasterAuth value)1596     public Builder setUpdate(com.google.container.v1.MasterAuth value) {
1597       if (updateBuilder_ == null) {
1598         if (value == null) {
1599           throw new NullPointerException();
1600         }
1601         update_ = value;
1602       } else {
1603         updateBuilder_.setMessage(value);
1604       }
1605       bitField0_ |= 0x00000010;
1606       onChanged();
1607       return this;
1608     }
1609     /**
1610      *
1611      *
1612      * <pre>
1613      * Required. A description of the update.
1614      * </pre>
1615      *
1616      * <code>.google.container.v1.MasterAuth update = 5 [(.google.api.field_behavior) = REQUIRED];
1617      * </code>
1618      */
setUpdate(com.google.container.v1.MasterAuth.Builder builderForValue)1619     public Builder setUpdate(com.google.container.v1.MasterAuth.Builder builderForValue) {
1620       if (updateBuilder_ == null) {
1621         update_ = builderForValue.build();
1622       } else {
1623         updateBuilder_.setMessage(builderForValue.build());
1624       }
1625       bitField0_ |= 0x00000010;
1626       onChanged();
1627       return this;
1628     }
1629     /**
1630      *
1631      *
1632      * <pre>
1633      * Required. A description of the update.
1634      * </pre>
1635      *
1636      * <code>.google.container.v1.MasterAuth update = 5 [(.google.api.field_behavior) = REQUIRED];
1637      * </code>
1638      */
mergeUpdate(com.google.container.v1.MasterAuth value)1639     public Builder mergeUpdate(com.google.container.v1.MasterAuth value) {
1640       if (updateBuilder_ == null) {
1641         if (((bitField0_ & 0x00000010) != 0)
1642             && update_ != null
1643             && update_ != com.google.container.v1.MasterAuth.getDefaultInstance()) {
1644           getUpdateBuilder().mergeFrom(value);
1645         } else {
1646           update_ = value;
1647         }
1648       } else {
1649         updateBuilder_.mergeFrom(value);
1650       }
1651       bitField0_ |= 0x00000010;
1652       onChanged();
1653       return this;
1654     }
1655     /**
1656      *
1657      *
1658      * <pre>
1659      * Required. A description of the update.
1660      * </pre>
1661      *
1662      * <code>.google.container.v1.MasterAuth update = 5 [(.google.api.field_behavior) = REQUIRED];
1663      * </code>
1664      */
clearUpdate()1665     public Builder clearUpdate() {
1666       bitField0_ = (bitField0_ & ~0x00000010);
1667       update_ = null;
1668       if (updateBuilder_ != null) {
1669         updateBuilder_.dispose();
1670         updateBuilder_ = null;
1671       }
1672       onChanged();
1673       return this;
1674     }
1675     /**
1676      *
1677      *
1678      * <pre>
1679      * Required. A description of the update.
1680      * </pre>
1681      *
1682      * <code>.google.container.v1.MasterAuth update = 5 [(.google.api.field_behavior) = REQUIRED];
1683      * </code>
1684      */
getUpdateBuilder()1685     public com.google.container.v1.MasterAuth.Builder getUpdateBuilder() {
1686       bitField0_ |= 0x00000010;
1687       onChanged();
1688       return getUpdateFieldBuilder().getBuilder();
1689     }
1690     /**
1691      *
1692      *
1693      * <pre>
1694      * Required. A description of the update.
1695      * </pre>
1696      *
1697      * <code>.google.container.v1.MasterAuth update = 5 [(.google.api.field_behavior) = REQUIRED];
1698      * </code>
1699      */
getUpdateOrBuilder()1700     public com.google.container.v1.MasterAuthOrBuilder getUpdateOrBuilder() {
1701       if (updateBuilder_ != null) {
1702         return updateBuilder_.getMessageOrBuilder();
1703       } else {
1704         return update_ == null ? com.google.container.v1.MasterAuth.getDefaultInstance() : update_;
1705       }
1706     }
1707     /**
1708      *
1709      *
1710      * <pre>
1711      * Required. A description of the update.
1712      * </pre>
1713      *
1714      * <code>.google.container.v1.MasterAuth update = 5 [(.google.api.field_behavior) = REQUIRED];
1715      * </code>
1716      */
1717     private com.google.protobuf.SingleFieldBuilderV3<
1718             com.google.container.v1.MasterAuth,
1719             com.google.container.v1.MasterAuth.Builder,
1720             com.google.container.v1.MasterAuthOrBuilder>
getUpdateFieldBuilder()1721         getUpdateFieldBuilder() {
1722       if (updateBuilder_ == null) {
1723         updateBuilder_ =
1724             new com.google.protobuf.SingleFieldBuilderV3<
1725                 com.google.container.v1.MasterAuth,
1726                 com.google.container.v1.MasterAuth.Builder,
1727                 com.google.container.v1.MasterAuthOrBuilder>(
1728                 getUpdate(), getParentForChildren(), isClean());
1729         update_ = null;
1730       }
1731       return updateBuilder_;
1732     }
1733 
1734     private java.lang.Object name_ = "";
1735     /**
1736      *
1737      *
1738      * <pre>
1739      * The name (project, location, cluster) of the cluster to set auth.
1740      * Specified in the format `projects/&#42;&#47;locations/&#42;&#47;clusters/&#42;`.
1741      * </pre>
1742      *
1743      * <code>string name = 7;</code>
1744      *
1745      * @return The name.
1746      */
getName()1747     public java.lang.String getName() {
1748       java.lang.Object ref = name_;
1749       if (!(ref instanceof java.lang.String)) {
1750         com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
1751         java.lang.String s = bs.toStringUtf8();
1752         name_ = s;
1753         return s;
1754       } else {
1755         return (java.lang.String) ref;
1756       }
1757     }
1758     /**
1759      *
1760      *
1761      * <pre>
1762      * The name (project, location, cluster) of the cluster to set auth.
1763      * Specified in the format `projects/&#42;&#47;locations/&#42;&#47;clusters/&#42;`.
1764      * </pre>
1765      *
1766      * <code>string name = 7;</code>
1767      *
1768      * @return The bytes for name.
1769      */
getNameBytes()1770     public com.google.protobuf.ByteString getNameBytes() {
1771       java.lang.Object ref = name_;
1772       if (ref instanceof String) {
1773         com.google.protobuf.ByteString b =
1774             com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
1775         name_ = b;
1776         return b;
1777       } else {
1778         return (com.google.protobuf.ByteString) ref;
1779       }
1780     }
1781     /**
1782      *
1783      *
1784      * <pre>
1785      * The name (project, location, cluster) of the cluster to set auth.
1786      * Specified in the format `projects/&#42;&#47;locations/&#42;&#47;clusters/&#42;`.
1787      * </pre>
1788      *
1789      * <code>string name = 7;</code>
1790      *
1791      * @param value The name to set.
1792      * @return This builder for chaining.
1793      */
setName(java.lang.String value)1794     public Builder setName(java.lang.String value) {
1795       if (value == null) {
1796         throw new NullPointerException();
1797       }
1798       name_ = value;
1799       bitField0_ |= 0x00000020;
1800       onChanged();
1801       return this;
1802     }
1803     /**
1804      *
1805      *
1806      * <pre>
1807      * The name (project, location, cluster) of the cluster to set auth.
1808      * Specified in the format `projects/&#42;&#47;locations/&#42;&#47;clusters/&#42;`.
1809      * </pre>
1810      *
1811      * <code>string name = 7;</code>
1812      *
1813      * @return This builder for chaining.
1814      */
clearName()1815     public Builder clearName() {
1816       name_ = getDefaultInstance().getName();
1817       bitField0_ = (bitField0_ & ~0x00000020);
1818       onChanged();
1819       return this;
1820     }
1821     /**
1822      *
1823      *
1824      * <pre>
1825      * The name (project, location, cluster) of the cluster to set auth.
1826      * Specified in the format `projects/&#42;&#47;locations/&#42;&#47;clusters/&#42;`.
1827      * </pre>
1828      *
1829      * <code>string name = 7;</code>
1830      *
1831      * @param value The bytes for name to set.
1832      * @return This builder for chaining.
1833      */
setNameBytes(com.google.protobuf.ByteString value)1834     public Builder setNameBytes(com.google.protobuf.ByteString value) {
1835       if (value == null) {
1836         throw new NullPointerException();
1837       }
1838       checkByteStringIsUtf8(value);
1839       name_ = value;
1840       bitField0_ |= 0x00000020;
1841       onChanged();
1842       return this;
1843     }
1844 
1845     @java.lang.Override
setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields)1846     public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) {
1847       return super.setUnknownFields(unknownFields);
1848     }
1849 
1850     @java.lang.Override
mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields)1851     public final Builder mergeUnknownFields(
1852         final com.google.protobuf.UnknownFieldSet unknownFields) {
1853       return super.mergeUnknownFields(unknownFields);
1854     }
1855 
1856     // @@protoc_insertion_point(builder_scope:google.container.v1.SetMasterAuthRequest)
1857   }
1858 
1859   // @@protoc_insertion_point(class_scope:google.container.v1.SetMasterAuthRequest)
1860   private static final com.google.container.v1.SetMasterAuthRequest DEFAULT_INSTANCE;
1861 
1862   static {
1863     DEFAULT_INSTANCE = new com.google.container.v1.SetMasterAuthRequest();
1864   }
1865 
getDefaultInstance()1866   public static com.google.container.v1.SetMasterAuthRequest getDefaultInstance() {
1867     return DEFAULT_INSTANCE;
1868   }
1869 
1870   private static final com.google.protobuf.Parser<SetMasterAuthRequest> PARSER =
1871       new com.google.protobuf.AbstractParser<SetMasterAuthRequest>() {
1872         @java.lang.Override
1873         public SetMasterAuthRequest parsePartialFrom(
1874             com.google.protobuf.CodedInputStream input,
1875             com.google.protobuf.ExtensionRegistryLite extensionRegistry)
1876             throws com.google.protobuf.InvalidProtocolBufferException {
1877           Builder builder = newBuilder();
1878           try {
1879             builder.mergeFrom(input, extensionRegistry);
1880           } catch (com.google.protobuf.InvalidProtocolBufferException e) {
1881             throw e.setUnfinishedMessage(builder.buildPartial());
1882           } catch (com.google.protobuf.UninitializedMessageException e) {
1883             throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
1884           } catch (java.io.IOException e) {
1885             throw new com.google.protobuf.InvalidProtocolBufferException(e)
1886                 .setUnfinishedMessage(builder.buildPartial());
1887           }
1888           return builder.buildPartial();
1889         }
1890       };
1891 
parser()1892   public static com.google.protobuf.Parser<SetMasterAuthRequest> parser() {
1893     return PARSER;
1894   }
1895 
1896   @java.lang.Override
getParserForType()1897   public com.google.protobuf.Parser<SetMasterAuthRequest> getParserForType() {
1898     return PARSER;
1899   }
1900 
1901   @java.lang.Override
getDefaultInstanceForType()1902   public com.google.container.v1.SetMasterAuthRequest getDefaultInstanceForType() {
1903     return DEFAULT_INSTANCE;
1904   }
1905 }
1906