• 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  * CreateClusterRequest creates a cluster.
26  * </pre>
27  *
28  * Protobuf type {@code google.container.v1.CreateClusterRequest}
29  */
30 public final class CreateClusterRequest extends com.google.protobuf.GeneratedMessageV3
31     implements
32     // @@protoc_insertion_point(message_implements:google.container.v1.CreateClusterRequest)
33     CreateClusterRequestOrBuilder {
34   private static final long serialVersionUID = 0L;
35   // Use CreateClusterRequest.newBuilder() to construct.
CreateClusterRequest(com.google.protobuf.GeneratedMessageV3.Builder<?> builder)36   private CreateClusterRequest(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {
37     super(builder);
38   }
39 
CreateClusterRequest()40   private CreateClusterRequest() {
41     projectId_ = "";
42     zone_ = "";
43     parent_ = "";
44   }
45 
46   @java.lang.Override
47   @SuppressWarnings({"unused"})
newInstance(UnusedPrivateParameter unused)48   protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
49     return new CreateClusterRequest();
50   }
51 
52   @java.lang.Override
getUnknownFields()53   public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
54     return this.unknownFields;
55   }
56 
getDescriptor()57   public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
58     return com.google.container.v1.ClusterServiceProto
59         .internal_static_google_container_v1_CreateClusterRequest_descriptor;
60   }
61 
62   @java.lang.Override
63   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable()64       internalGetFieldAccessorTable() {
65     return com.google.container.v1.ClusterServiceProto
66         .internal_static_google_container_v1_CreateClusterRequest_fieldAccessorTable
67         .ensureFieldAccessorsInitialized(
68             com.google.container.v1.CreateClusterRequest.class,
69             com.google.container.v1.CreateClusterRequest.Builder.class);
70   }
71 
72   public static final int PROJECT_ID_FIELD_NUMBER = 1;
73 
74   @SuppressWarnings("serial")
75   private volatile java.lang.Object projectId_ = "";
76   /**
77    *
78    *
79    * <pre>
80    * Deprecated. The Google Developers Console [project ID or project
81    * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects).
82    * This field has been deprecated and replaced by the parent field.
83    * </pre>
84    *
85    * <code>string project_id = 1 [deprecated = true];</code>
86    *
87    * @deprecated google.container.v1.CreateClusterRequest.project_id is deprecated. See
88    *     google/container/v1/cluster_service.proto;l=2350
89    * @return The projectId.
90    */
91   @java.lang.Override
92   @java.lang.Deprecated
getProjectId()93   public java.lang.String getProjectId() {
94     java.lang.Object ref = projectId_;
95     if (ref instanceof java.lang.String) {
96       return (java.lang.String) ref;
97     } else {
98       com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
99       java.lang.String s = bs.toStringUtf8();
100       projectId_ = s;
101       return s;
102     }
103   }
104   /**
105    *
106    *
107    * <pre>
108    * Deprecated. The Google Developers Console [project ID or project
109    * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects).
110    * This field has been deprecated and replaced by the parent field.
111    * </pre>
112    *
113    * <code>string project_id = 1 [deprecated = true];</code>
114    *
115    * @deprecated google.container.v1.CreateClusterRequest.project_id is deprecated. See
116    *     google/container/v1/cluster_service.proto;l=2350
117    * @return The bytes for projectId.
118    */
119   @java.lang.Override
120   @java.lang.Deprecated
getProjectIdBytes()121   public com.google.protobuf.ByteString getProjectIdBytes() {
122     java.lang.Object ref = projectId_;
123     if (ref instanceof java.lang.String) {
124       com.google.protobuf.ByteString b =
125           com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
126       projectId_ = b;
127       return b;
128     } else {
129       return (com.google.protobuf.ByteString) ref;
130     }
131   }
132 
133   public static final int ZONE_FIELD_NUMBER = 2;
134 
135   @SuppressWarnings("serial")
136   private volatile java.lang.Object zone_ = "";
137   /**
138    *
139    *
140    * <pre>
141    * Deprecated. The name of the Google Compute Engine
142    * [zone](https://cloud.google.com/compute/docs/zones#available) in which the
143    * cluster resides. This field has been deprecated and replaced by the parent
144    * field.
145    * </pre>
146    *
147    * <code>string zone = 2 [deprecated = true];</code>
148    *
149    * @deprecated google.container.v1.CreateClusterRequest.zone is deprecated. See
150    *     google/container/v1/cluster_service.proto;l=2356
151    * @return The zone.
152    */
153   @java.lang.Override
154   @java.lang.Deprecated
getZone()155   public java.lang.String getZone() {
156     java.lang.Object ref = zone_;
157     if (ref instanceof java.lang.String) {
158       return (java.lang.String) ref;
159     } else {
160       com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
161       java.lang.String s = bs.toStringUtf8();
162       zone_ = s;
163       return s;
164     }
165   }
166   /**
167    *
168    *
169    * <pre>
170    * Deprecated. The name of the Google Compute Engine
171    * [zone](https://cloud.google.com/compute/docs/zones#available) in which the
172    * cluster resides. This field has been deprecated and replaced by the parent
173    * field.
174    * </pre>
175    *
176    * <code>string zone = 2 [deprecated = true];</code>
177    *
178    * @deprecated google.container.v1.CreateClusterRequest.zone is deprecated. See
179    *     google/container/v1/cluster_service.proto;l=2356
180    * @return The bytes for zone.
181    */
182   @java.lang.Override
183   @java.lang.Deprecated
getZoneBytes()184   public com.google.protobuf.ByteString getZoneBytes() {
185     java.lang.Object ref = zone_;
186     if (ref instanceof java.lang.String) {
187       com.google.protobuf.ByteString b =
188           com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
189       zone_ = b;
190       return b;
191     } else {
192       return (com.google.protobuf.ByteString) ref;
193     }
194   }
195 
196   public static final int CLUSTER_FIELD_NUMBER = 3;
197   private com.google.container.v1.Cluster cluster_;
198   /**
199    *
200    *
201    * <pre>
202    * Required. A [cluster
203    * resource](https://cloud.google.com/container-engine/reference/rest/v1/projects.locations.clusters)
204    * </pre>
205    *
206    * <code>.google.container.v1.Cluster cluster = 3 [(.google.api.field_behavior) = REQUIRED];
207    * </code>
208    *
209    * @return Whether the cluster field is set.
210    */
211   @java.lang.Override
hasCluster()212   public boolean hasCluster() {
213     return cluster_ != null;
214   }
215   /**
216    *
217    *
218    * <pre>
219    * Required. A [cluster
220    * resource](https://cloud.google.com/container-engine/reference/rest/v1/projects.locations.clusters)
221    * </pre>
222    *
223    * <code>.google.container.v1.Cluster cluster = 3 [(.google.api.field_behavior) = REQUIRED];
224    * </code>
225    *
226    * @return The cluster.
227    */
228   @java.lang.Override
getCluster()229   public com.google.container.v1.Cluster getCluster() {
230     return cluster_ == null ? com.google.container.v1.Cluster.getDefaultInstance() : cluster_;
231   }
232   /**
233    *
234    *
235    * <pre>
236    * Required. A [cluster
237    * resource](https://cloud.google.com/container-engine/reference/rest/v1/projects.locations.clusters)
238    * </pre>
239    *
240    * <code>.google.container.v1.Cluster cluster = 3 [(.google.api.field_behavior) = REQUIRED];
241    * </code>
242    */
243   @java.lang.Override
getClusterOrBuilder()244   public com.google.container.v1.ClusterOrBuilder getClusterOrBuilder() {
245     return cluster_ == null ? com.google.container.v1.Cluster.getDefaultInstance() : cluster_;
246   }
247 
248   public static final int PARENT_FIELD_NUMBER = 5;
249 
250   @SuppressWarnings("serial")
251   private volatile java.lang.Object parent_ = "";
252   /**
253    *
254    *
255    * <pre>
256    * The parent (project and location) where the cluster will be created.
257    * Specified in the format `projects/&#42;&#47;locations/&#42;`.
258    * </pre>
259    *
260    * <code>string parent = 5;</code>
261    *
262    * @return The parent.
263    */
264   @java.lang.Override
getParent()265   public java.lang.String getParent() {
266     java.lang.Object ref = parent_;
267     if (ref instanceof java.lang.String) {
268       return (java.lang.String) ref;
269     } else {
270       com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
271       java.lang.String s = bs.toStringUtf8();
272       parent_ = s;
273       return s;
274     }
275   }
276   /**
277    *
278    *
279    * <pre>
280    * The parent (project and location) where the cluster will be created.
281    * Specified in the format `projects/&#42;&#47;locations/&#42;`.
282    * </pre>
283    *
284    * <code>string parent = 5;</code>
285    *
286    * @return The bytes for parent.
287    */
288   @java.lang.Override
getParentBytes()289   public com.google.protobuf.ByteString getParentBytes() {
290     java.lang.Object ref = parent_;
291     if (ref instanceof java.lang.String) {
292       com.google.protobuf.ByteString b =
293           com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
294       parent_ = b;
295       return b;
296     } else {
297       return (com.google.protobuf.ByteString) ref;
298     }
299   }
300 
301   private byte memoizedIsInitialized = -1;
302 
303   @java.lang.Override
isInitialized()304   public final boolean isInitialized() {
305     byte isInitialized = memoizedIsInitialized;
306     if (isInitialized == 1) return true;
307     if (isInitialized == 0) return false;
308 
309     memoizedIsInitialized = 1;
310     return true;
311   }
312 
313   @java.lang.Override
writeTo(com.google.protobuf.CodedOutputStream output)314   public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
315     if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(projectId_)) {
316       com.google.protobuf.GeneratedMessageV3.writeString(output, 1, projectId_);
317     }
318     if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(zone_)) {
319       com.google.protobuf.GeneratedMessageV3.writeString(output, 2, zone_);
320     }
321     if (cluster_ != null) {
322       output.writeMessage(3, getCluster());
323     }
324     if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) {
325       com.google.protobuf.GeneratedMessageV3.writeString(output, 5, parent_);
326     }
327     getUnknownFields().writeTo(output);
328   }
329 
330   @java.lang.Override
getSerializedSize()331   public int getSerializedSize() {
332     int size = memoizedSize;
333     if (size != -1) return size;
334 
335     size = 0;
336     if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(projectId_)) {
337       size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, projectId_);
338     }
339     if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(zone_)) {
340       size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, zone_);
341     }
342     if (cluster_ != null) {
343       size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getCluster());
344     }
345     if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) {
346       size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, parent_);
347     }
348     size += getUnknownFields().getSerializedSize();
349     memoizedSize = size;
350     return size;
351   }
352 
353   @java.lang.Override
equals(final java.lang.Object obj)354   public boolean equals(final java.lang.Object obj) {
355     if (obj == this) {
356       return true;
357     }
358     if (!(obj instanceof com.google.container.v1.CreateClusterRequest)) {
359       return super.equals(obj);
360     }
361     com.google.container.v1.CreateClusterRequest other =
362         (com.google.container.v1.CreateClusterRequest) obj;
363 
364     if (!getProjectId().equals(other.getProjectId())) return false;
365     if (!getZone().equals(other.getZone())) return false;
366     if (hasCluster() != other.hasCluster()) return false;
367     if (hasCluster()) {
368       if (!getCluster().equals(other.getCluster())) return false;
369     }
370     if (!getParent().equals(other.getParent())) return false;
371     if (!getUnknownFields().equals(other.getUnknownFields())) return false;
372     return true;
373   }
374 
375   @java.lang.Override
hashCode()376   public int hashCode() {
377     if (memoizedHashCode != 0) {
378       return memoizedHashCode;
379     }
380     int hash = 41;
381     hash = (19 * hash) + getDescriptor().hashCode();
382     hash = (37 * hash) + PROJECT_ID_FIELD_NUMBER;
383     hash = (53 * hash) + getProjectId().hashCode();
384     hash = (37 * hash) + ZONE_FIELD_NUMBER;
385     hash = (53 * hash) + getZone().hashCode();
386     if (hasCluster()) {
387       hash = (37 * hash) + CLUSTER_FIELD_NUMBER;
388       hash = (53 * hash) + getCluster().hashCode();
389     }
390     hash = (37 * hash) + PARENT_FIELD_NUMBER;
391     hash = (53 * hash) + getParent().hashCode();
392     hash = (29 * hash) + getUnknownFields().hashCode();
393     memoizedHashCode = hash;
394     return hash;
395   }
396 
parseFrom(java.nio.ByteBuffer data)397   public static com.google.container.v1.CreateClusterRequest parseFrom(java.nio.ByteBuffer data)
398       throws com.google.protobuf.InvalidProtocolBufferException {
399     return PARSER.parseFrom(data);
400   }
401 
parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)402   public static com.google.container.v1.CreateClusterRequest parseFrom(
403       java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
404       throws com.google.protobuf.InvalidProtocolBufferException {
405     return PARSER.parseFrom(data, extensionRegistry);
406   }
407 
parseFrom( com.google.protobuf.ByteString data)408   public static com.google.container.v1.CreateClusterRequest parseFrom(
409       com.google.protobuf.ByteString data)
410       throws com.google.protobuf.InvalidProtocolBufferException {
411     return PARSER.parseFrom(data);
412   }
413 
parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)414   public static com.google.container.v1.CreateClusterRequest parseFrom(
415       com.google.protobuf.ByteString data,
416       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
417       throws com.google.protobuf.InvalidProtocolBufferException {
418     return PARSER.parseFrom(data, extensionRegistry);
419   }
420 
parseFrom(byte[] data)421   public static com.google.container.v1.CreateClusterRequest parseFrom(byte[] data)
422       throws com.google.protobuf.InvalidProtocolBufferException {
423     return PARSER.parseFrom(data);
424   }
425 
parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)426   public static com.google.container.v1.CreateClusterRequest parseFrom(
427       byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
428       throws com.google.protobuf.InvalidProtocolBufferException {
429     return PARSER.parseFrom(data, extensionRegistry);
430   }
431 
parseFrom(java.io.InputStream input)432   public static com.google.container.v1.CreateClusterRequest parseFrom(java.io.InputStream input)
433       throws java.io.IOException {
434     return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
435   }
436 
parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)437   public static com.google.container.v1.CreateClusterRequest parseFrom(
438       java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
439       throws java.io.IOException {
440     return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
441         PARSER, input, extensionRegistry);
442   }
443 
parseDelimitedFrom( java.io.InputStream input)444   public static com.google.container.v1.CreateClusterRequest parseDelimitedFrom(
445       java.io.InputStream input) throws java.io.IOException {
446     return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
447   }
448 
parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)449   public static com.google.container.v1.CreateClusterRequest parseDelimitedFrom(
450       java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
451       throws java.io.IOException {
452     return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
453         PARSER, input, extensionRegistry);
454   }
455 
parseFrom( com.google.protobuf.CodedInputStream input)456   public static com.google.container.v1.CreateClusterRequest parseFrom(
457       com.google.protobuf.CodedInputStream input) throws java.io.IOException {
458     return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
459   }
460 
parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)461   public static com.google.container.v1.CreateClusterRequest parseFrom(
462       com.google.protobuf.CodedInputStream input,
463       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
464       throws java.io.IOException {
465     return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
466         PARSER, input, extensionRegistry);
467   }
468 
469   @java.lang.Override
newBuilderForType()470   public Builder newBuilderForType() {
471     return newBuilder();
472   }
473 
newBuilder()474   public static Builder newBuilder() {
475     return DEFAULT_INSTANCE.toBuilder();
476   }
477 
newBuilder(com.google.container.v1.CreateClusterRequest prototype)478   public static Builder newBuilder(com.google.container.v1.CreateClusterRequest prototype) {
479     return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
480   }
481 
482   @java.lang.Override
toBuilder()483   public Builder toBuilder() {
484     return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
485   }
486 
487   @java.lang.Override
newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)488   protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
489     Builder builder = new Builder(parent);
490     return builder;
491   }
492   /**
493    *
494    *
495    * <pre>
496    * CreateClusterRequest creates a cluster.
497    * </pre>
498    *
499    * Protobuf type {@code google.container.v1.CreateClusterRequest}
500    */
501   public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder<Builder>
502       implements
503       // @@protoc_insertion_point(builder_implements:google.container.v1.CreateClusterRequest)
504       com.google.container.v1.CreateClusterRequestOrBuilder {
getDescriptor()505     public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
506       return com.google.container.v1.ClusterServiceProto
507           .internal_static_google_container_v1_CreateClusterRequest_descriptor;
508     }
509 
510     @java.lang.Override
511     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable()512         internalGetFieldAccessorTable() {
513       return com.google.container.v1.ClusterServiceProto
514           .internal_static_google_container_v1_CreateClusterRequest_fieldAccessorTable
515           .ensureFieldAccessorsInitialized(
516               com.google.container.v1.CreateClusterRequest.class,
517               com.google.container.v1.CreateClusterRequest.Builder.class);
518     }
519 
520     // Construct using com.google.container.v1.CreateClusterRequest.newBuilder()
Builder()521     private Builder() {}
522 
Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)523     private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
524       super(parent);
525     }
526 
527     @java.lang.Override
clear()528     public Builder clear() {
529       super.clear();
530       bitField0_ = 0;
531       projectId_ = "";
532       zone_ = "";
533       cluster_ = null;
534       if (clusterBuilder_ != null) {
535         clusterBuilder_.dispose();
536         clusterBuilder_ = null;
537       }
538       parent_ = "";
539       return this;
540     }
541 
542     @java.lang.Override
getDescriptorForType()543     public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
544       return com.google.container.v1.ClusterServiceProto
545           .internal_static_google_container_v1_CreateClusterRequest_descriptor;
546     }
547 
548     @java.lang.Override
getDefaultInstanceForType()549     public com.google.container.v1.CreateClusterRequest getDefaultInstanceForType() {
550       return com.google.container.v1.CreateClusterRequest.getDefaultInstance();
551     }
552 
553     @java.lang.Override
build()554     public com.google.container.v1.CreateClusterRequest build() {
555       com.google.container.v1.CreateClusterRequest result = buildPartial();
556       if (!result.isInitialized()) {
557         throw newUninitializedMessageException(result);
558       }
559       return result;
560     }
561 
562     @java.lang.Override
buildPartial()563     public com.google.container.v1.CreateClusterRequest buildPartial() {
564       com.google.container.v1.CreateClusterRequest result =
565           new com.google.container.v1.CreateClusterRequest(this);
566       if (bitField0_ != 0) {
567         buildPartial0(result);
568       }
569       onBuilt();
570       return result;
571     }
572 
buildPartial0(com.google.container.v1.CreateClusterRequest result)573     private void buildPartial0(com.google.container.v1.CreateClusterRequest result) {
574       int from_bitField0_ = bitField0_;
575       if (((from_bitField0_ & 0x00000001) != 0)) {
576         result.projectId_ = projectId_;
577       }
578       if (((from_bitField0_ & 0x00000002) != 0)) {
579         result.zone_ = zone_;
580       }
581       if (((from_bitField0_ & 0x00000004) != 0)) {
582         result.cluster_ = clusterBuilder_ == null ? cluster_ : clusterBuilder_.build();
583       }
584       if (((from_bitField0_ & 0x00000008) != 0)) {
585         result.parent_ = parent_;
586       }
587     }
588 
589     @java.lang.Override
clone()590     public Builder clone() {
591       return super.clone();
592     }
593 
594     @java.lang.Override
setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)595     public Builder setField(
596         com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
597       return super.setField(field, value);
598     }
599 
600     @java.lang.Override
clearField(com.google.protobuf.Descriptors.FieldDescriptor field)601     public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
602       return super.clearField(field);
603     }
604 
605     @java.lang.Override
clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)606     public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
607       return super.clearOneof(oneof);
608     }
609 
610     @java.lang.Override
setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value)611     public Builder setRepeatedField(
612         com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
613       return super.setRepeatedField(field, index, value);
614     }
615 
616     @java.lang.Override
addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)617     public Builder addRepeatedField(
618         com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
619       return super.addRepeatedField(field, value);
620     }
621 
622     @java.lang.Override
mergeFrom(com.google.protobuf.Message other)623     public Builder mergeFrom(com.google.protobuf.Message other) {
624       if (other instanceof com.google.container.v1.CreateClusterRequest) {
625         return mergeFrom((com.google.container.v1.CreateClusterRequest) other);
626       } else {
627         super.mergeFrom(other);
628         return this;
629       }
630     }
631 
mergeFrom(com.google.container.v1.CreateClusterRequest other)632     public Builder mergeFrom(com.google.container.v1.CreateClusterRequest other) {
633       if (other == com.google.container.v1.CreateClusterRequest.getDefaultInstance()) return this;
634       if (!other.getProjectId().isEmpty()) {
635         projectId_ = other.projectId_;
636         bitField0_ |= 0x00000001;
637         onChanged();
638       }
639       if (!other.getZone().isEmpty()) {
640         zone_ = other.zone_;
641         bitField0_ |= 0x00000002;
642         onChanged();
643       }
644       if (other.hasCluster()) {
645         mergeCluster(other.getCluster());
646       }
647       if (!other.getParent().isEmpty()) {
648         parent_ = other.parent_;
649         bitField0_ |= 0x00000008;
650         onChanged();
651       }
652       this.mergeUnknownFields(other.getUnknownFields());
653       onChanged();
654       return this;
655     }
656 
657     @java.lang.Override
isInitialized()658     public final boolean isInitialized() {
659       return true;
660     }
661 
662     @java.lang.Override
mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)663     public Builder mergeFrom(
664         com.google.protobuf.CodedInputStream input,
665         com.google.protobuf.ExtensionRegistryLite extensionRegistry)
666         throws java.io.IOException {
667       if (extensionRegistry == null) {
668         throw new java.lang.NullPointerException();
669       }
670       try {
671         boolean done = false;
672         while (!done) {
673           int tag = input.readTag();
674           switch (tag) {
675             case 0:
676               done = true;
677               break;
678             case 10:
679               {
680                 projectId_ = input.readStringRequireUtf8();
681                 bitField0_ |= 0x00000001;
682                 break;
683               } // case 10
684             case 18:
685               {
686                 zone_ = input.readStringRequireUtf8();
687                 bitField0_ |= 0x00000002;
688                 break;
689               } // case 18
690             case 26:
691               {
692                 input.readMessage(getClusterFieldBuilder().getBuilder(), extensionRegistry);
693                 bitField0_ |= 0x00000004;
694                 break;
695               } // case 26
696             case 42:
697               {
698                 parent_ = input.readStringRequireUtf8();
699                 bitField0_ |= 0x00000008;
700                 break;
701               } // case 42
702             default:
703               {
704                 if (!super.parseUnknownField(input, extensionRegistry, tag)) {
705                   done = true; // was an endgroup tag
706                 }
707                 break;
708               } // default:
709           } // switch (tag)
710         } // while (!done)
711       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
712         throw e.unwrapIOException();
713       } finally {
714         onChanged();
715       } // finally
716       return this;
717     }
718 
719     private int bitField0_;
720 
721     private java.lang.Object projectId_ = "";
722     /**
723      *
724      *
725      * <pre>
726      * Deprecated. The Google Developers Console [project ID or project
727      * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects).
728      * This field has been deprecated and replaced by the parent field.
729      * </pre>
730      *
731      * <code>string project_id = 1 [deprecated = true];</code>
732      *
733      * @deprecated google.container.v1.CreateClusterRequest.project_id is deprecated. See
734      *     google/container/v1/cluster_service.proto;l=2350
735      * @return The projectId.
736      */
737     @java.lang.Deprecated
getProjectId()738     public java.lang.String getProjectId() {
739       java.lang.Object ref = projectId_;
740       if (!(ref instanceof java.lang.String)) {
741         com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
742         java.lang.String s = bs.toStringUtf8();
743         projectId_ = s;
744         return s;
745       } else {
746         return (java.lang.String) ref;
747       }
748     }
749     /**
750      *
751      *
752      * <pre>
753      * Deprecated. The Google Developers Console [project ID or project
754      * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects).
755      * This field has been deprecated and replaced by the parent field.
756      * </pre>
757      *
758      * <code>string project_id = 1 [deprecated = true];</code>
759      *
760      * @deprecated google.container.v1.CreateClusterRequest.project_id is deprecated. See
761      *     google/container/v1/cluster_service.proto;l=2350
762      * @return The bytes for projectId.
763      */
764     @java.lang.Deprecated
getProjectIdBytes()765     public com.google.protobuf.ByteString getProjectIdBytes() {
766       java.lang.Object ref = projectId_;
767       if (ref instanceof String) {
768         com.google.protobuf.ByteString b =
769             com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
770         projectId_ = b;
771         return b;
772       } else {
773         return (com.google.protobuf.ByteString) ref;
774       }
775     }
776     /**
777      *
778      *
779      * <pre>
780      * Deprecated. The Google Developers Console [project ID or project
781      * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects).
782      * This field has been deprecated and replaced by the parent field.
783      * </pre>
784      *
785      * <code>string project_id = 1 [deprecated = true];</code>
786      *
787      * @deprecated google.container.v1.CreateClusterRequest.project_id is deprecated. See
788      *     google/container/v1/cluster_service.proto;l=2350
789      * @param value The projectId to set.
790      * @return This builder for chaining.
791      */
792     @java.lang.Deprecated
setProjectId(java.lang.String value)793     public Builder setProjectId(java.lang.String value) {
794       if (value == null) {
795         throw new NullPointerException();
796       }
797       projectId_ = value;
798       bitField0_ |= 0x00000001;
799       onChanged();
800       return this;
801     }
802     /**
803      *
804      *
805      * <pre>
806      * Deprecated. The Google Developers Console [project ID or project
807      * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects).
808      * This field has been deprecated and replaced by the parent field.
809      * </pre>
810      *
811      * <code>string project_id = 1 [deprecated = true];</code>
812      *
813      * @deprecated google.container.v1.CreateClusterRequest.project_id is deprecated. See
814      *     google/container/v1/cluster_service.proto;l=2350
815      * @return This builder for chaining.
816      */
817     @java.lang.Deprecated
clearProjectId()818     public Builder clearProjectId() {
819       projectId_ = getDefaultInstance().getProjectId();
820       bitField0_ = (bitField0_ & ~0x00000001);
821       onChanged();
822       return this;
823     }
824     /**
825      *
826      *
827      * <pre>
828      * Deprecated. The Google Developers Console [project ID or project
829      * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects).
830      * This field has been deprecated and replaced by the parent field.
831      * </pre>
832      *
833      * <code>string project_id = 1 [deprecated = true];</code>
834      *
835      * @deprecated google.container.v1.CreateClusterRequest.project_id is deprecated. See
836      *     google/container/v1/cluster_service.proto;l=2350
837      * @param value The bytes for projectId to set.
838      * @return This builder for chaining.
839      */
840     @java.lang.Deprecated
setProjectIdBytes(com.google.protobuf.ByteString value)841     public Builder setProjectIdBytes(com.google.protobuf.ByteString value) {
842       if (value == null) {
843         throw new NullPointerException();
844       }
845       checkByteStringIsUtf8(value);
846       projectId_ = value;
847       bitField0_ |= 0x00000001;
848       onChanged();
849       return this;
850     }
851 
852     private java.lang.Object zone_ = "";
853     /**
854      *
855      *
856      * <pre>
857      * Deprecated. The name of the Google Compute Engine
858      * [zone](https://cloud.google.com/compute/docs/zones#available) in which the
859      * cluster resides. This field has been deprecated and replaced by the parent
860      * field.
861      * </pre>
862      *
863      * <code>string zone = 2 [deprecated = true];</code>
864      *
865      * @deprecated google.container.v1.CreateClusterRequest.zone is deprecated. See
866      *     google/container/v1/cluster_service.proto;l=2356
867      * @return The zone.
868      */
869     @java.lang.Deprecated
getZone()870     public java.lang.String getZone() {
871       java.lang.Object ref = zone_;
872       if (!(ref instanceof java.lang.String)) {
873         com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
874         java.lang.String s = bs.toStringUtf8();
875         zone_ = s;
876         return s;
877       } else {
878         return (java.lang.String) ref;
879       }
880     }
881     /**
882      *
883      *
884      * <pre>
885      * Deprecated. The name of the Google Compute Engine
886      * [zone](https://cloud.google.com/compute/docs/zones#available) in which the
887      * cluster resides. This field has been deprecated and replaced by the parent
888      * field.
889      * </pre>
890      *
891      * <code>string zone = 2 [deprecated = true];</code>
892      *
893      * @deprecated google.container.v1.CreateClusterRequest.zone is deprecated. See
894      *     google/container/v1/cluster_service.proto;l=2356
895      * @return The bytes for zone.
896      */
897     @java.lang.Deprecated
getZoneBytes()898     public com.google.protobuf.ByteString getZoneBytes() {
899       java.lang.Object ref = zone_;
900       if (ref instanceof String) {
901         com.google.protobuf.ByteString b =
902             com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
903         zone_ = b;
904         return b;
905       } else {
906         return (com.google.protobuf.ByteString) ref;
907       }
908     }
909     /**
910      *
911      *
912      * <pre>
913      * Deprecated. The name of the Google Compute Engine
914      * [zone](https://cloud.google.com/compute/docs/zones#available) in which the
915      * cluster resides. This field has been deprecated and replaced by the parent
916      * field.
917      * </pre>
918      *
919      * <code>string zone = 2 [deprecated = true];</code>
920      *
921      * @deprecated google.container.v1.CreateClusterRequest.zone is deprecated. See
922      *     google/container/v1/cluster_service.proto;l=2356
923      * @param value The zone to set.
924      * @return This builder for chaining.
925      */
926     @java.lang.Deprecated
setZone(java.lang.String value)927     public Builder setZone(java.lang.String value) {
928       if (value == null) {
929         throw new NullPointerException();
930       }
931       zone_ = value;
932       bitField0_ |= 0x00000002;
933       onChanged();
934       return this;
935     }
936     /**
937      *
938      *
939      * <pre>
940      * Deprecated. The name of the Google Compute Engine
941      * [zone](https://cloud.google.com/compute/docs/zones#available) in which the
942      * cluster resides. This field has been deprecated and replaced by the parent
943      * field.
944      * </pre>
945      *
946      * <code>string zone = 2 [deprecated = true];</code>
947      *
948      * @deprecated google.container.v1.CreateClusterRequest.zone is deprecated. See
949      *     google/container/v1/cluster_service.proto;l=2356
950      * @return This builder for chaining.
951      */
952     @java.lang.Deprecated
clearZone()953     public Builder clearZone() {
954       zone_ = getDefaultInstance().getZone();
955       bitField0_ = (bitField0_ & ~0x00000002);
956       onChanged();
957       return this;
958     }
959     /**
960      *
961      *
962      * <pre>
963      * Deprecated. The name of the Google Compute Engine
964      * [zone](https://cloud.google.com/compute/docs/zones#available) in which the
965      * cluster resides. This field has been deprecated and replaced by the parent
966      * field.
967      * </pre>
968      *
969      * <code>string zone = 2 [deprecated = true];</code>
970      *
971      * @deprecated google.container.v1.CreateClusterRequest.zone is deprecated. See
972      *     google/container/v1/cluster_service.proto;l=2356
973      * @param value The bytes for zone to set.
974      * @return This builder for chaining.
975      */
976     @java.lang.Deprecated
setZoneBytes(com.google.protobuf.ByteString value)977     public Builder setZoneBytes(com.google.protobuf.ByteString value) {
978       if (value == null) {
979         throw new NullPointerException();
980       }
981       checkByteStringIsUtf8(value);
982       zone_ = value;
983       bitField0_ |= 0x00000002;
984       onChanged();
985       return this;
986     }
987 
988     private com.google.container.v1.Cluster cluster_;
989     private com.google.protobuf.SingleFieldBuilderV3<
990             com.google.container.v1.Cluster,
991             com.google.container.v1.Cluster.Builder,
992             com.google.container.v1.ClusterOrBuilder>
993         clusterBuilder_;
994     /**
995      *
996      *
997      * <pre>
998      * Required. A [cluster
999      * resource](https://cloud.google.com/container-engine/reference/rest/v1/projects.locations.clusters)
1000      * </pre>
1001      *
1002      * <code>.google.container.v1.Cluster cluster = 3 [(.google.api.field_behavior) = REQUIRED];
1003      * </code>
1004      *
1005      * @return Whether the cluster field is set.
1006      */
hasCluster()1007     public boolean hasCluster() {
1008       return ((bitField0_ & 0x00000004) != 0);
1009     }
1010     /**
1011      *
1012      *
1013      * <pre>
1014      * Required. A [cluster
1015      * resource](https://cloud.google.com/container-engine/reference/rest/v1/projects.locations.clusters)
1016      * </pre>
1017      *
1018      * <code>.google.container.v1.Cluster cluster = 3 [(.google.api.field_behavior) = REQUIRED];
1019      * </code>
1020      *
1021      * @return The cluster.
1022      */
getCluster()1023     public com.google.container.v1.Cluster getCluster() {
1024       if (clusterBuilder_ == null) {
1025         return cluster_ == null ? com.google.container.v1.Cluster.getDefaultInstance() : cluster_;
1026       } else {
1027         return clusterBuilder_.getMessage();
1028       }
1029     }
1030     /**
1031      *
1032      *
1033      * <pre>
1034      * Required. A [cluster
1035      * resource](https://cloud.google.com/container-engine/reference/rest/v1/projects.locations.clusters)
1036      * </pre>
1037      *
1038      * <code>.google.container.v1.Cluster cluster = 3 [(.google.api.field_behavior) = REQUIRED];
1039      * </code>
1040      */
setCluster(com.google.container.v1.Cluster value)1041     public Builder setCluster(com.google.container.v1.Cluster value) {
1042       if (clusterBuilder_ == null) {
1043         if (value == null) {
1044           throw new NullPointerException();
1045         }
1046         cluster_ = value;
1047       } else {
1048         clusterBuilder_.setMessage(value);
1049       }
1050       bitField0_ |= 0x00000004;
1051       onChanged();
1052       return this;
1053     }
1054     /**
1055      *
1056      *
1057      * <pre>
1058      * Required. A [cluster
1059      * resource](https://cloud.google.com/container-engine/reference/rest/v1/projects.locations.clusters)
1060      * </pre>
1061      *
1062      * <code>.google.container.v1.Cluster cluster = 3 [(.google.api.field_behavior) = REQUIRED];
1063      * </code>
1064      */
setCluster(com.google.container.v1.Cluster.Builder builderForValue)1065     public Builder setCluster(com.google.container.v1.Cluster.Builder builderForValue) {
1066       if (clusterBuilder_ == null) {
1067         cluster_ = builderForValue.build();
1068       } else {
1069         clusterBuilder_.setMessage(builderForValue.build());
1070       }
1071       bitField0_ |= 0x00000004;
1072       onChanged();
1073       return this;
1074     }
1075     /**
1076      *
1077      *
1078      * <pre>
1079      * Required. A [cluster
1080      * resource](https://cloud.google.com/container-engine/reference/rest/v1/projects.locations.clusters)
1081      * </pre>
1082      *
1083      * <code>.google.container.v1.Cluster cluster = 3 [(.google.api.field_behavior) = REQUIRED];
1084      * </code>
1085      */
mergeCluster(com.google.container.v1.Cluster value)1086     public Builder mergeCluster(com.google.container.v1.Cluster value) {
1087       if (clusterBuilder_ == null) {
1088         if (((bitField0_ & 0x00000004) != 0)
1089             && cluster_ != null
1090             && cluster_ != com.google.container.v1.Cluster.getDefaultInstance()) {
1091           getClusterBuilder().mergeFrom(value);
1092         } else {
1093           cluster_ = value;
1094         }
1095       } else {
1096         clusterBuilder_.mergeFrom(value);
1097       }
1098       bitField0_ |= 0x00000004;
1099       onChanged();
1100       return this;
1101     }
1102     /**
1103      *
1104      *
1105      * <pre>
1106      * Required. A [cluster
1107      * resource](https://cloud.google.com/container-engine/reference/rest/v1/projects.locations.clusters)
1108      * </pre>
1109      *
1110      * <code>.google.container.v1.Cluster cluster = 3 [(.google.api.field_behavior) = REQUIRED];
1111      * </code>
1112      */
clearCluster()1113     public Builder clearCluster() {
1114       bitField0_ = (bitField0_ & ~0x00000004);
1115       cluster_ = null;
1116       if (clusterBuilder_ != null) {
1117         clusterBuilder_.dispose();
1118         clusterBuilder_ = null;
1119       }
1120       onChanged();
1121       return this;
1122     }
1123     /**
1124      *
1125      *
1126      * <pre>
1127      * Required. A [cluster
1128      * resource](https://cloud.google.com/container-engine/reference/rest/v1/projects.locations.clusters)
1129      * </pre>
1130      *
1131      * <code>.google.container.v1.Cluster cluster = 3 [(.google.api.field_behavior) = REQUIRED];
1132      * </code>
1133      */
getClusterBuilder()1134     public com.google.container.v1.Cluster.Builder getClusterBuilder() {
1135       bitField0_ |= 0x00000004;
1136       onChanged();
1137       return getClusterFieldBuilder().getBuilder();
1138     }
1139     /**
1140      *
1141      *
1142      * <pre>
1143      * Required. A [cluster
1144      * resource](https://cloud.google.com/container-engine/reference/rest/v1/projects.locations.clusters)
1145      * </pre>
1146      *
1147      * <code>.google.container.v1.Cluster cluster = 3 [(.google.api.field_behavior) = REQUIRED];
1148      * </code>
1149      */
getClusterOrBuilder()1150     public com.google.container.v1.ClusterOrBuilder getClusterOrBuilder() {
1151       if (clusterBuilder_ != null) {
1152         return clusterBuilder_.getMessageOrBuilder();
1153       } else {
1154         return cluster_ == null ? com.google.container.v1.Cluster.getDefaultInstance() : cluster_;
1155       }
1156     }
1157     /**
1158      *
1159      *
1160      * <pre>
1161      * Required. A [cluster
1162      * resource](https://cloud.google.com/container-engine/reference/rest/v1/projects.locations.clusters)
1163      * </pre>
1164      *
1165      * <code>.google.container.v1.Cluster cluster = 3 [(.google.api.field_behavior) = REQUIRED];
1166      * </code>
1167      */
1168     private com.google.protobuf.SingleFieldBuilderV3<
1169             com.google.container.v1.Cluster,
1170             com.google.container.v1.Cluster.Builder,
1171             com.google.container.v1.ClusterOrBuilder>
getClusterFieldBuilder()1172         getClusterFieldBuilder() {
1173       if (clusterBuilder_ == null) {
1174         clusterBuilder_ =
1175             new com.google.protobuf.SingleFieldBuilderV3<
1176                 com.google.container.v1.Cluster,
1177                 com.google.container.v1.Cluster.Builder,
1178                 com.google.container.v1.ClusterOrBuilder>(
1179                 getCluster(), getParentForChildren(), isClean());
1180         cluster_ = null;
1181       }
1182       return clusterBuilder_;
1183     }
1184 
1185     private java.lang.Object parent_ = "";
1186     /**
1187      *
1188      *
1189      * <pre>
1190      * The parent (project and location) where the cluster will be created.
1191      * Specified in the format `projects/&#42;&#47;locations/&#42;`.
1192      * </pre>
1193      *
1194      * <code>string parent = 5;</code>
1195      *
1196      * @return The parent.
1197      */
getParent()1198     public java.lang.String getParent() {
1199       java.lang.Object ref = parent_;
1200       if (!(ref instanceof java.lang.String)) {
1201         com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
1202         java.lang.String s = bs.toStringUtf8();
1203         parent_ = s;
1204         return s;
1205       } else {
1206         return (java.lang.String) ref;
1207       }
1208     }
1209     /**
1210      *
1211      *
1212      * <pre>
1213      * The parent (project and location) where the cluster will be created.
1214      * Specified in the format `projects/&#42;&#47;locations/&#42;`.
1215      * </pre>
1216      *
1217      * <code>string parent = 5;</code>
1218      *
1219      * @return The bytes for parent.
1220      */
getParentBytes()1221     public com.google.protobuf.ByteString getParentBytes() {
1222       java.lang.Object ref = parent_;
1223       if (ref instanceof String) {
1224         com.google.protobuf.ByteString b =
1225             com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
1226         parent_ = b;
1227         return b;
1228       } else {
1229         return (com.google.protobuf.ByteString) ref;
1230       }
1231     }
1232     /**
1233      *
1234      *
1235      * <pre>
1236      * The parent (project and location) where the cluster will be created.
1237      * Specified in the format `projects/&#42;&#47;locations/&#42;`.
1238      * </pre>
1239      *
1240      * <code>string parent = 5;</code>
1241      *
1242      * @param value The parent to set.
1243      * @return This builder for chaining.
1244      */
setParent(java.lang.String value)1245     public Builder setParent(java.lang.String value) {
1246       if (value == null) {
1247         throw new NullPointerException();
1248       }
1249       parent_ = value;
1250       bitField0_ |= 0x00000008;
1251       onChanged();
1252       return this;
1253     }
1254     /**
1255      *
1256      *
1257      * <pre>
1258      * The parent (project and location) where the cluster will be created.
1259      * Specified in the format `projects/&#42;&#47;locations/&#42;`.
1260      * </pre>
1261      *
1262      * <code>string parent = 5;</code>
1263      *
1264      * @return This builder for chaining.
1265      */
clearParent()1266     public Builder clearParent() {
1267       parent_ = getDefaultInstance().getParent();
1268       bitField0_ = (bitField0_ & ~0x00000008);
1269       onChanged();
1270       return this;
1271     }
1272     /**
1273      *
1274      *
1275      * <pre>
1276      * The parent (project and location) where the cluster will be created.
1277      * Specified in the format `projects/&#42;&#47;locations/&#42;`.
1278      * </pre>
1279      *
1280      * <code>string parent = 5;</code>
1281      *
1282      * @param value The bytes for parent to set.
1283      * @return This builder for chaining.
1284      */
setParentBytes(com.google.protobuf.ByteString value)1285     public Builder setParentBytes(com.google.protobuf.ByteString value) {
1286       if (value == null) {
1287         throw new NullPointerException();
1288       }
1289       checkByteStringIsUtf8(value);
1290       parent_ = value;
1291       bitField0_ |= 0x00000008;
1292       onChanged();
1293       return this;
1294     }
1295 
1296     @java.lang.Override
setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields)1297     public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) {
1298       return super.setUnknownFields(unknownFields);
1299     }
1300 
1301     @java.lang.Override
mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields)1302     public final Builder mergeUnknownFields(
1303         final com.google.protobuf.UnknownFieldSet unknownFields) {
1304       return super.mergeUnknownFields(unknownFields);
1305     }
1306 
1307     // @@protoc_insertion_point(builder_scope:google.container.v1.CreateClusterRequest)
1308   }
1309 
1310   // @@protoc_insertion_point(class_scope:google.container.v1.CreateClusterRequest)
1311   private static final com.google.container.v1.CreateClusterRequest DEFAULT_INSTANCE;
1312 
1313   static {
1314     DEFAULT_INSTANCE = new com.google.container.v1.CreateClusterRequest();
1315   }
1316 
getDefaultInstance()1317   public static com.google.container.v1.CreateClusterRequest getDefaultInstance() {
1318     return DEFAULT_INSTANCE;
1319   }
1320 
1321   private static final com.google.protobuf.Parser<CreateClusterRequest> PARSER =
1322       new com.google.protobuf.AbstractParser<CreateClusterRequest>() {
1323         @java.lang.Override
1324         public CreateClusterRequest parsePartialFrom(
1325             com.google.protobuf.CodedInputStream input,
1326             com.google.protobuf.ExtensionRegistryLite extensionRegistry)
1327             throws com.google.protobuf.InvalidProtocolBufferException {
1328           Builder builder = newBuilder();
1329           try {
1330             builder.mergeFrom(input, extensionRegistry);
1331           } catch (com.google.protobuf.InvalidProtocolBufferException e) {
1332             throw e.setUnfinishedMessage(builder.buildPartial());
1333           } catch (com.google.protobuf.UninitializedMessageException e) {
1334             throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
1335           } catch (java.io.IOException e) {
1336             throw new com.google.protobuf.InvalidProtocolBufferException(e)
1337                 .setUnfinishedMessage(builder.buildPartial());
1338           }
1339           return builder.buildPartial();
1340         }
1341       };
1342 
parser()1343   public static com.google.protobuf.Parser<CreateClusterRequest> parser() {
1344     return PARSER;
1345   }
1346 
1347   @java.lang.Override
getParserForType()1348   public com.google.protobuf.Parser<CreateClusterRequest> getParserForType() {
1349     return PARSER;
1350   }
1351 
1352   @java.lang.Override
getDefaultInstanceForType()1353   public com.google.container.v1.CreateClusterRequest getDefaultInstanceForType() {
1354     return DEFAULT_INSTANCE;
1355   }
1356 }
1357