• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 /*
2  * Copyright 2020 Google LLC
3  *
4  * Licensed under the Apache License, Version 2.0 (the "License");
5  * you may not use this file except in compliance with the License.
6  * You may obtain a copy of the License at
7  *
8  *     https://www.apache.org/licenses/LICENSE-2.0
9  *
10  * Unless required by applicable law or agreed to in writing, software
11  * distributed under the License is distributed on an "AS IS" BASIS,
12  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13  * See the License for the specific language governing permissions and
14  * limitations under the License.
15  */
16 // Generated by the protocol buffer compiler.  DO NOT EDIT!
17 // source: google/cloud/compute/v1/compute.proto
18 
19 package com.google.cloud.compute.v1;
20 
21 /**
22  *
23  *
24  * <pre>
25  * Represents an Instance Group resource. Instance Groups can be used to configure a target for load balancing. Instance groups can either be managed or unmanaged. To create managed instance groups, use the instanceGroupManager or regionInstanceGroupManager resource instead. Use zonal unmanaged instance groups if you need to apply load balancing to groups of heterogeneous instances or if you need to manage the instances yourself. You cannot create regional unmanaged instance groups. For more information, read Instance groups.
26  * </pre>
27  *
28  * Protobuf type {@code google.cloud.compute.v1.InstanceGroup}
29  */
30 public final class InstanceGroup extends com.google.protobuf.GeneratedMessageV3
31     implements
32     // @@protoc_insertion_point(message_implements:google.cloud.compute.v1.InstanceGroup)
33     InstanceGroupOrBuilder {
34   private static final long serialVersionUID = 0L;
35   // Use InstanceGroup.newBuilder() to construct.
InstanceGroup(com.google.protobuf.GeneratedMessageV3.Builder<?> builder)36   private InstanceGroup(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {
37     super(builder);
38   }
39 
InstanceGroup()40   private InstanceGroup() {
41     creationTimestamp_ = "";
42     description_ = "";
43     fingerprint_ = "";
44     kind_ = "";
45     name_ = "";
46     namedPorts_ = java.util.Collections.emptyList();
47     network_ = "";
48     region_ = "";
49     selfLink_ = "";
50     subnetwork_ = "";
51     zone_ = "";
52   }
53 
54   @java.lang.Override
55   @SuppressWarnings({"unused"})
newInstance(UnusedPrivateParameter unused)56   protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
57     return new InstanceGroup();
58   }
59 
60   @java.lang.Override
getUnknownFields()61   public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
62     return this.unknownFields;
63   }
64 
getDescriptor()65   public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
66     return com.google.cloud.compute.v1.Compute
67         .internal_static_google_cloud_compute_v1_InstanceGroup_descriptor;
68   }
69 
70   @java.lang.Override
71   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable()72       internalGetFieldAccessorTable() {
73     return com.google.cloud.compute.v1.Compute
74         .internal_static_google_cloud_compute_v1_InstanceGroup_fieldAccessorTable
75         .ensureFieldAccessorsInitialized(
76             com.google.cloud.compute.v1.InstanceGroup.class,
77             com.google.cloud.compute.v1.InstanceGroup.Builder.class);
78   }
79 
80   private int bitField0_;
81   public static final int CREATION_TIMESTAMP_FIELD_NUMBER = 30525366;
82 
83   @SuppressWarnings("serial")
84   private volatile java.lang.Object creationTimestamp_ = "";
85   /**
86    *
87    *
88    * <pre>
89    * [Output Only] The creation timestamp for this instance group in RFC3339 text format.
90    * </pre>
91    *
92    * <code>optional string creation_timestamp = 30525366;</code>
93    *
94    * @return Whether the creationTimestamp field is set.
95    */
96   @java.lang.Override
hasCreationTimestamp()97   public boolean hasCreationTimestamp() {
98     return ((bitField0_ & 0x00000001) != 0);
99   }
100   /**
101    *
102    *
103    * <pre>
104    * [Output Only] The creation timestamp for this instance group in RFC3339 text format.
105    * </pre>
106    *
107    * <code>optional string creation_timestamp = 30525366;</code>
108    *
109    * @return The creationTimestamp.
110    */
111   @java.lang.Override
getCreationTimestamp()112   public java.lang.String getCreationTimestamp() {
113     java.lang.Object ref = creationTimestamp_;
114     if (ref instanceof java.lang.String) {
115       return (java.lang.String) ref;
116     } else {
117       com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
118       java.lang.String s = bs.toStringUtf8();
119       creationTimestamp_ = s;
120       return s;
121     }
122   }
123   /**
124    *
125    *
126    * <pre>
127    * [Output Only] The creation timestamp for this instance group in RFC3339 text format.
128    * </pre>
129    *
130    * <code>optional string creation_timestamp = 30525366;</code>
131    *
132    * @return The bytes for creationTimestamp.
133    */
134   @java.lang.Override
getCreationTimestampBytes()135   public com.google.protobuf.ByteString getCreationTimestampBytes() {
136     java.lang.Object ref = creationTimestamp_;
137     if (ref instanceof java.lang.String) {
138       com.google.protobuf.ByteString b =
139           com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
140       creationTimestamp_ = b;
141       return b;
142     } else {
143       return (com.google.protobuf.ByteString) ref;
144     }
145   }
146 
147   public static final int DESCRIPTION_FIELD_NUMBER = 422937596;
148 
149   @SuppressWarnings("serial")
150   private volatile java.lang.Object description_ = "";
151   /**
152    *
153    *
154    * <pre>
155    * An optional description of this resource. Provide this property when you create the resource.
156    * </pre>
157    *
158    * <code>optional string description = 422937596;</code>
159    *
160    * @return Whether the description field is set.
161    */
162   @java.lang.Override
hasDescription()163   public boolean hasDescription() {
164     return ((bitField0_ & 0x00000002) != 0);
165   }
166   /**
167    *
168    *
169    * <pre>
170    * An optional description of this resource. Provide this property when you create the resource.
171    * </pre>
172    *
173    * <code>optional string description = 422937596;</code>
174    *
175    * @return The description.
176    */
177   @java.lang.Override
getDescription()178   public java.lang.String getDescription() {
179     java.lang.Object ref = description_;
180     if (ref instanceof java.lang.String) {
181       return (java.lang.String) ref;
182     } else {
183       com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
184       java.lang.String s = bs.toStringUtf8();
185       description_ = s;
186       return s;
187     }
188   }
189   /**
190    *
191    *
192    * <pre>
193    * An optional description of this resource. Provide this property when you create the resource.
194    * </pre>
195    *
196    * <code>optional string description = 422937596;</code>
197    *
198    * @return The bytes for description.
199    */
200   @java.lang.Override
getDescriptionBytes()201   public com.google.protobuf.ByteString getDescriptionBytes() {
202     java.lang.Object ref = description_;
203     if (ref instanceof java.lang.String) {
204       com.google.protobuf.ByteString b =
205           com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
206       description_ = b;
207       return b;
208     } else {
209       return (com.google.protobuf.ByteString) ref;
210     }
211   }
212 
213   public static final int FINGERPRINT_FIELD_NUMBER = 234678500;
214 
215   @SuppressWarnings("serial")
216   private volatile java.lang.Object fingerprint_ = "";
217   /**
218    *
219    *
220    * <pre>
221    * [Output Only] The fingerprint of the named ports. The system uses this fingerprint to detect conflicts when multiple users change the named ports concurrently.
222    * </pre>
223    *
224    * <code>optional string fingerprint = 234678500;</code>
225    *
226    * @return Whether the fingerprint field is set.
227    */
228   @java.lang.Override
hasFingerprint()229   public boolean hasFingerprint() {
230     return ((bitField0_ & 0x00000004) != 0);
231   }
232   /**
233    *
234    *
235    * <pre>
236    * [Output Only] The fingerprint of the named ports. The system uses this fingerprint to detect conflicts when multiple users change the named ports concurrently.
237    * </pre>
238    *
239    * <code>optional string fingerprint = 234678500;</code>
240    *
241    * @return The fingerprint.
242    */
243   @java.lang.Override
getFingerprint()244   public java.lang.String getFingerprint() {
245     java.lang.Object ref = fingerprint_;
246     if (ref instanceof java.lang.String) {
247       return (java.lang.String) ref;
248     } else {
249       com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
250       java.lang.String s = bs.toStringUtf8();
251       fingerprint_ = s;
252       return s;
253     }
254   }
255   /**
256    *
257    *
258    * <pre>
259    * [Output Only] The fingerprint of the named ports. The system uses this fingerprint to detect conflicts when multiple users change the named ports concurrently.
260    * </pre>
261    *
262    * <code>optional string fingerprint = 234678500;</code>
263    *
264    * @return The bytes for fingerprint.
265    */
266   @java.lang.Override
getFingerprintBytes()267   public com.google.protobuf.ByteString getFingerprintBytes() {
268     java.lang.Object ref = fingerprint_;
269     if (ref instanceof java.lang.String) {
270       com.google.protobuf.ByteString b =
271           com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
272       fingerprint_ = b;
273       return b;
274     } else {
275       return (com.google.protobuf.ByteString) ref;
276     }
277   }
278 
279   public static final int ID_FIELD_NUMBER = 3355;
280   private long id_ = 0L;
281   /**
282    *
283    *
284    * <pre>
285    * [Output Only] A unique identifier for this instance group, generated by the server.
286    * </pre>
287    *
288    * <code>optional uint64 id = 3355;</code>
289    *
290    * @return Whether the id field is set.
291    */
292   @java.lang.Override
hasId()293   public boolean hasId() {
294     return ((bitField0_ & 0x00000008) != 0);
295   }
296   /**
297    *
298    *
299    * <pre>
300    * [Output Only] A unique identifier for this instance group, generated by the server.
301    * </pre>
302    *
303    * <code>optional uint64 id = 3355;</code>
304    *
305    * @return The id.
306    */
307   @java.lang.Override
getId()308   public long getId() {
309     return id_;
310   }
311 
312   public static final int KIND_FIELD_NUMBER = 3292052;
313 
314   @SuppressWarnings("serial")
315   private volatile java.lang.Object kind_ = "";
316   /**
317    *
318    *
319    * <pre>
320    * [Output Only] The resource type, which is always compute#instanceGroup for instance groups.
321    * </pre>
322    *
323    * <code>optional string kind = 3292052;</code>
324    *
325    * @return Whether the kind field is set.
326    */
327   @java.lang.Override
hasKind()328   public boolean hasKind() {
329     return ((bitField0_ & 0x00000010) != 0);
330   }
331   /**
332    *
333    *
334    * <pre>
335    * [Output Only] The resource type, which is always compute#instanceGroup for instance groups.
336    * </pre>
337    *
338    * <code>optional string kind = 3292052;</code>
339    *
340    * @return The kind.
341    */
342   @java.lang.Override
getKind()343   public java.lang.String getKind() {
344     java.lang.Object ref = kind_;
345     if (ref instanceof java.lang.String) {
346       return (java.lang.String) ref;
347     } else {
348       com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
349       java.lang.String s = bs.toStringUtf8();
350       kind_ = s;
351       return s;
352     }
353   }
354   /**
355    *
356    *
357    * <pre>
358    * [Output Only] The resource type, which is always compute#instanceGroup for instance groups.
359    * </pre>
360    *
361    * <code>optional string kind = 3292052;</code>
362    *
363    * @return The bytes for kind.
364    */
365   @java.lang.Override
getKindBytes()366   public com.google.protobuf.ByteString getKindBytes() {
367     java.lang.Object ref = kind_;
368     if (ref instanceof java.lang.String) {
369       com.google.protobuf.ByteString b =
370           com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
371       kind_ = b;
372       return b;
373     } else {
374       return (com.google.protobuf.ByteString) ref;
375     }
376   }
377 
378   public static final int NAME_FIELD_NUMBER = 3373707;
379 
380   @SuppressWarnings("serial")
381   private volatile java.lang.Object name_ = "";
382   /**
383    *
384    *
385    * <pre>
386    * The name of the instance group. The name must be 1-63 characters long, and comply with RFC1035.
387    * </pre>
388    *
389    * <code>optional string name = 3373707;</code>
390    *
391    * @return Whether the name field is set.
392    */
393   @java.lang.Override
hasName()394   public boolean hasName() {
395     return ((bitField0_ & 0x00000020) != 0);
396   }
397   /**
398    *
399    *
400    * <pre>
401    * The name of the instance group. The name must be 1-63 characters long, and comply with RFC1035.
402    * </pre>
403    *
404    * <code>optional string name = 3373707;</code>
405    *
406    * @return The name.
407    */
408   @java.lang.Override
getName()409   public java.lang.String getName() {
410     java.lang.Object ref = name_;
411     if (ref instanceof java.lang.String) {
412       return (java.lang.String) ref;
413     } else {
414       com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
415       java.lang.String s = bs.toStringUtf8();
416       name_ = s;
417       return s;
418     }
419   }
420   /**
421    *
422    *
423    * <pre>
424    * The name of the instance group. The name must be 1-63 characters long, and comply with RFC1035.
425    * </pre>
426    *
427    * <code>optional string name = 3373707;</code>
428    *
429    * @return The bytes for name.
430    */
431   @java.lang.Override
getNameBytes()432   public com.google.protobuf.ByteString getNameBytes() {
433     java.lang.Object ref = name_;
434     if (ref instanceof java.lang.String) {
435       com.google.protobuf.ByteString b =
436           com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
437       name_ = b;
438       return b;
439     } else {
440       return (com.google.protobuf.ByteString) ref;
441     }
442   }
443 
444   public static final int NAMED_PORTS_FIELD_NUMBER = 427598732;
445 
446   @SuppressWarnings("serial")
447   private java.util.List<com.google.cloud.compute.v1.NamedPort> namedPorts_;
448   /**
449    *
450    *
451    * <pre>
452    *  Assigns a name to a port number. For example: {name: "http", port: 80} This allows the system to reference ports by the assigned name instead of a port number. Named ports can also contain multiple ports. For example: [{name: "app1", port: 8080}, {name: "app1", port: 8081}, {name: "app2", port: 8082}] Named ports apply to all instances in this instance group.
453    * </pre>
454    *
455    * <code>repeated .google.cloud.compute.v1.NamedPort named_ports = 427598732;</code>
456    */
457   @java.lang.Override
getNamedPortsList()458   public java.util.List<com.google.cloud.compute.v1.NamedPort> getNamedPortsList() {
459     return namedPorts_;
460   }
461   /**
462    *
463    *
464    * <pre>
465    *  Assigns a name to a port number. For example: {name: "http", port: 80} This allows the system to reference ports by the assigned name instead of a port number. Named ports can also contain multiple ports. For example: [{name: "app1", port: 8080}, {name: "app1", port: 8081}, {name: "app2", port: 8082}] Named ports apply to all instances in this instance group.
466    * </pre>
467    *
468    * <code>repeated .google.cloud.compute.v1.NamedPort named_ports = 427598732;</code>
469    */
470   @java.lang.Override
471   public java.util.List<? extends com.google.cloud.compute.v1.NamedPortOrBuilder>
getNamedPortsOrBuilderList()472       getNamedPortsOrBuilderList() {
473     return namedPorts_;
474   }
475   /**
476    *
477    *
478    * <pre>
479    *  Assigns a name to a port number. For example: {name: "http", port: 80} This allows the system to reference ports by the assigned name instead of a port number. Named ports can also contain multiple ports. For example: [{name: "app1", port: 8080}, {name: "app1", port: 8081}, {name: "app2", port: 8082}] Named ports apply to all instances in this instance group.
480    * </pre>
481    *
482    * <code>repeated .google.cloud.compute.v1.NamedPort named_ports = 427598732;</code>
483    */
484   @java.lang.Override
getNamedPortsCount()485   public int getNamedPortsCount() {
486     return namedPorts_.size();
487   }
488   /**
489    *
490    *
491    * <pre>
492    *  Assigns a name to a port number. For example: {name: "http", port: 80} This allows the system to reference ports by the assigned name instead of a port number. Named ports can also contain multiple ports. For example: [{name: "app1", port: 8080}, {name: "app1", port: 8081}, {name: "app2", port: 8082}] Named ports apply to all instances in this instance group.
493    * </pre>
494    *
495    * <code>repeated .google.cloud.compute.v1.NamedPort named_ports = 427598732;</code>
496    */
497   @java.lang.Override
getNamedPorts(int index)498   public com.google.cloud.compute.v1.NamedPort getNamedPorts(int index) {
499     return namedPorts_.get(index);
500   }
501   /**
502    *
503    *
504    * <pre>
505    *  Assigns a name to a port number. For example: {name: "http", port: 80} This allows the system to reference ports by the assigned name instead of a port number. Named ports can also contain multiple ports. For example: [{name: "app1", port: 8080}, {name: "app1", port: 8081}, {name: "app2", port: 8082}] Named ports apply to all instances in this instance group.
506    * </pre>
507    *
508    * <code>repeated .google.cloud.compute.v1.NamedPort named_ports = 427598732;</code>
509    */
510   @java.lang.Override
getNamedPortsOrBuilder(int index)511   public com.google.cloud.compute.v1.NamedPortOrBuilder getNamedPortsOrBuilder(int index) {
512     return namedPorts_.get(index);
513   }
514 
515   public static final int NETWORK_FIELD_NUMBER = 232872494;
516 
517   @SuppressWarnings("serial")
518   private volatile java.lang.Object network_ = "";
519   /**
520    *
521    *
522    * <pre>
523    * [Output Only] The URL of the network to which all instances in the instance group belong. If your instance has multiple network interfaces, then the network and subnetwork fields only refer to the network and subnet used by your primary interface (nic0).
524    * </pre>
525    *
526    * <code>optional string network = 232872494;</code>
527    *
528    * @return Whether the network field is set.
529    */
530   @java.lang.Override
hasNetwork()531   public boolean hasNetwork() {
532     return ((bitField0_ & 0x00000040) != 0);
533   }
534   /**
535    *
536    *
537    * <pre>
538    * [Output Only] The URL of the network to which all instances in the instance group belong. If your instance has multiple network interfaces, then the network and subnetwork fields only refer to the network and subnet used by your primary interface (nic0).
539    * </pre>
540    *
541    * <code>optional string network = 232872494;</code>
542    *
543    * @return The network.
544    */
545   @java.lang.Override
getNetwork()546   public java.lang.String getNetwork() {
547     java.lang.Object ref = network_;
548     if (ref instanceof java.lang.String) {
549       return (java.lang.String) ref;
550     } else {
551       com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
552       java.lang.String s = bs.toStringUtf8();
553       network_ = s;
554       return s;
555     }
556   }
557   /**
558    *
559    *
560    * <pre>
561    * [Output Only] The URL of the network to which all instances in the instance group belong. If your instance has multiple network interfaces, then the network and subnetwork fields only refer to the network and subnet used by your primary interface (nic0).
562    * </pre>
563    *
564    * <code>optional string network = 232872494;</code>
565    *
566    * @return The bytes for network.
567    */
568   @java.lang.Override
getNetworkBytes()569   public com.google.protobuf.ByteString getNetworkBytes() {
570     java.lang.Object ref = network_;
571     if (ref instanceof java.lang.String) {
572       com.google.protobuf.ByteString b =
573           com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
574       network_ = b;
575       return b;
576     } else {
577       return (com.google.protobuf.ByteString) ref;
578     }
579   }
580 
581   public static final int REGION_FIELD_NUMBER = 138946292;
582 
583   @SuppressWarnings("serial")
584   private volatile java.lang.Object region_ = "";
585   /**
586    *
587    *
588    * <pre>
589    * [Output Only] The URL of the region where the instance group is located (for regional resources).
590    * </pre>
591    *
592    * <code>optional string region = 138946292;</code>
593    *
594    * @return Whether the region field is set.
595    */
596   @java.lang.Override
hasRegion()597   public boolean hasRegion() {
598     return ((bitField0_ & 0x00000080) != 0);
599   }
600   /**
601    *
602    *
603    * <pre>
604    * [Output Only] The URL of the region where the instance group is located (for regional resources).
605    * </pre>
606    *
607    * <code>optional string region = 138946292;</code>
608    *
609    * @return The region.
610    */
611   @java.lang.Override
getRegion()612   public java.lang.String getRegion() {
613     java.lang.Object ref = region_;
614     if (ref instanceof java.lang.String) {
615       return (java.lang.String) ref;
616     } else {
617       com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
618       java.lang.String s = bs.toStringUtf8();
619       region_ = s;
620       return s;
621     }
622   }
623   /**
624    *
625    *
626    * <pre>
627    * [Output Only] The URL of the region where the instance group is located (for regional resources).
628    * </pre>
629    *
630    * <code>optional string region = 138946292;</code>
631    *
632    * @return The bytes for region.
633    */
634   @java.lang.Override
getRegionBytes()635   public com.google.protobuf.ByteString getRegionBytes() {
636     java.lang.Object ref = region_;
637     if (ref instanceof java.lang.String) {
638       com.google.protobuf.ByteString b =
639           com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
640       region_ = b;
641       return b;
642     } else {
643       return (com.google.protobuf.ByteString) ref;
644     }
645   }
646 
647   public static final int SELF_LINK_FIELD_NUMBER = 456214797;
648 
649   @SuppressWarnings("serial")
650   private volatile java.lang.Object selfLink_ = "";
651   /**
652    *
653    *
654    * <pre>
655    * [Output Only] The URL for this instance group. The server generates this URL.
656    * </pre>
657    *
658    * <code>optional string self_link = 456214797;</code>
659    *
660    * @return Whether the selfLink field is set.
661    */
662   @java.lang.Override
hasSelfLink()663   public boolean hasSelfLink() {
664     return ((bitField0_ & 0x00000100) != 0);
665   }
666   /**
667    *
668    *
669    * <pre>
670    * [Output Only] The URL for this instance group. The server generates this URL.
671    * </pre>
672    *
673    * <code>optional string self_link = 456214797;</code>
674    *
675    * @return The selfLink.
676    */
677   @java.lang.Override
getSelfLink()678   public java.lang.String getSelfLink() {
679     java.lang.Object ref = selfLink_;
680     if (ref instanceof java.lang.String) {
681       return (java.lang.String) ref;
682     } else {
683       com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
684       java.lang.String s = bs.toStringUtf8();
685       selfLink_ = s;
686       return s;
687     }
688   }
689   /**
690    *
691    *
692    * <pre>
693    * [Output Only] The URL for this instance group. The server generates this URL.
694    * </pre>
695    *
696    * <code>optional string self_link = 456214797;</code>
697    *
698    * @return The bytes for selfLink.
699    */
700   @java.lang.Override
getSelfLinkBytes()701   public com.google.protobuf.ByteString getSelfLinkBytes() {
702     java.lang.Object ref = selfLink_;
703     if (ref instanceof java.lang.String) {
704       com.google.protobuf.ByteString b =
705           com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
706       selfLink_ = b;
707       return b;
708     } else {
709       return (com.google.protobuf.ByteString) ref;
710     }
711   }
712 
713   public static final int SIZE_FIELD_NUMBER = 3530753;
714   private int size_ = 0;
715   /**
716    *
717    *
718    * <pre>
719    * [Output Only] The total number of instances in the instance group.
720    * </pre>
721    *
722    * <code>optional int32 size = 3530753;</code>
723    *
724    * @return Whether the size field is set.
725    */
726   @java.lang.Override
hasSize()727   public boolean hasSize() {
728     return ((bitField0_ & 0x00000200) != 0);
729   }
730   /**
731    *
732    *
733    * <pre>
734    * [Output Only] The total number of instances in the instance group.
735    * </pre>
736    *
737    * <code>optional int32 size = 3530753;</code>
738    *
739    * @return The size.
740    */
741   @java.lang.Override
getSize()742   public int getSize() {
743     return size_;
744   }
745 
746   public static final int SUBNETWORK_FIELD_NUMBER = 307827694;
747 
748   @SuppressWarnings("serial")
749   private volatile java.lang.Object subnetwork_ = "";
750   /**
751    *
752    *
753    * <pre>
754    * [Output Only] The URL of the subnetwork to which all instances in the instance group belong. If your instance has multiple network interfaces, then the network and subnetwork fields only refer to the network and subnet used by your primary interface (nic0).
755    * </pre>
756    *
757    * <code>optional string subnetwork = 307827694;</code>
758    *
759    * @return Whether the subnetwork field is set.
760    */
761   @java.lang.Override
hasSubnetwork()762   public boolean hasSubnetwork() {
763     return ((bitField0_ & 0x00000400) != 0);
764   }
765   /**
766    *
767    *
768    * <pre>
769    * [Output Only] The URL of the subnetwork to which all instances in the instance group belong. If your instance has multiple network interfaces, then the network and subnetwork fields only refer to the network and subnet used by your primary interface (nic0).
770    * </pre>
771    *
772    * <code>optional string subnetwork = 307827694;</code>
773    *
774    * @return The subnetwork.
775    */
776   @java.lang.Override
getSubnetwork()777   public java.lang.String getSubnetwork() {
778     java.lang.Object ref = subnetwork_;
779     if (ref instanceof java.lang.String) {
780       return (java.lang.String) ref;
781     } else {
782       com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
783       java.lang.String s = bs.toStringUtf8();
784       subnetwork_ = s;
785       return s;
786     }
787   }
788   /**
789    *
790    *
791    * <pre>
792    * [Output Only] The URL of the subnetwork to which all instances in the instance group belong. If your instance has multiple network interfaces, then the network and subnetwork fields only refer to the network and subnet used by your primary interface (nic0).
793    * </pre>
794    *
795    * <code>optional string subnetwork = 307827694;</code>
796    *
797    * @return The bytes for subnetwork.
798    */
799   @java.lang.Override
getSubnetworkBytes()800   public com.google.protobuf.ByteString getSubnetworkBytes() {
801     java.lang.Object ref = subnetwork_;
802     if (ref instanceof java.lang.String) {
803       com.google.protobuf.ByteString b =
804           com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
805       subnetwork_ = b;
806       return b;
807     } else {
808       return (com.google.protobuf.ByteString) ref;
809     }
810   }
811 
812   public static final int ZONE_FIELD_NUMBER = 3744684;
813 
814   @SuppressWarnings("serial")
815   private volatile java.lang.Object zone_ = "";
816   /**
817    *
818    *
819    * <pre>
820    * [Output Only] The URL of the zone where the instance group is located (for zonal resources).
821    * </pre>
822    *
823    * <code>optional string zone = 3744684;</code>
824    *
825    * @return Whether the zone field is set.
826    */
827   @java.lang.Override
hasZone()828   public boolean hasZone() {
829     return ((bitField0_ & 0x00000800) != 0);
830   }
831   /**
832    *
833    *
834    * <pre>
835    * [Output Only] The URL of the zone where the instance group is located (for zonal resources).
836    * </pre>
837    *
838    * <code>optional string zone = 3744684;</code>
839    *
840    * @return The zone.
841    */
842   @java.lang.Override
getZone()843   public java.lang.String getZone() {
844     java.lang.Object ref = zone_;
845     if (ref instanceof java.lang.String) {
846       return (java.lang.String) ref;
847     } else {
848       com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
849       java.lang.String s = bs.toStringUtf8();
850       zone_ = s;
851       return s;
852     }
853   }
854   /**
855    *
856    *
857    * <pre>
858    * [Output Only] The URL of the zone where the instance group is located (for zonal resources).
859    * </pre>
860    *
861    * <code>optional string zone = 3744684;</code>
862    *
863    * @return The bytes for zone.
864    */
865   @java.lang.Override
getZoneBytes()866   public com.google.protobuf.ByteString getZoneBytes() {
867     java.lang.Object ref = zone_;
868     if (ref instanceof java.lang.String) {
869       com.google.protobuf.ByteString b =
870           com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
871       zone_ = b;
872       return b;
873     } else {
874       return (com.google.protobuf.ByteString) ref;
875     }
876   }
877 
878   private byte memoizedIsInitialized = -1;
879 
880   @java.lang.Override
isInitialized()881   public final boolean isInitialized() {
882     byte isInitialized = memoizedIsInitialized;
883     if (isInitialized == 1) return true;
884     if (isInitialized == 0) return false;
885 
886     memoizedIsInitialized = 1;
887     return true;
888   }
889 
890   @java.lang.Override
writeTo(com.google.protobuf.CodedOutputStream output)891   public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
892     if (((bitField0_ & 0x00000008) != 0)) {
893       output.writeUInt64(3355, id_);
894     }
895     if (((bitField0_ & 0x00000010) != 0)) {
896       com.google.protobuf.GeneratedMessageV3.writeString(output, 3292052, kind_);
897     }
898     if (((bitField0_ & 0x00000020) != 0)) {
899       com.google.protobuf.GeneratedMessageV3.writeString(output, 3373707, name_);
900     }
901     if (((bitField0_ & 0x00000200) != 0)) {
902       output.writeInt32(3530753, size_);
903     }
904     if (((bitField0_ & 0x00000800) != 0)) {
905       com.google.protobuf.GeneratedMessageV3.writeString(output, 3744684, zone_);
906     }
907     if (((bitField0_ & 0x00000001) != 0)) {
908       com.google.protobuf.GeneratedMessageV3.writeString(output, 30525366, creationTimestamp_);
909     }
910     if (((bitField0_ & 0x00000080) != 0)) {
911       com.google.protobuf.GeneratedMessageV3.writeString(output, 138946292, region_);
912     }
913     if (((bitField0_ & 0x00000040) != 0)) {
914       com.google.protobuf.GeneratedMessageV3.writeString(output, 232872494, network_);
915     }
916     if (((bitField0_ & 0x00000004) != 0)) {
917       com.google.protobuf.GeneratedMessageV3.writeString(output, 234678500, fingerprint_);
918     }
919     if (((bitField0_ & 0x00000400) != 0)) {
920       com.google.protobuf.GeneratedMessageV3.writeString(output, 307827694, subnetwork_);
921     }
922     if (((bitField0_ & 0x00000002) != 0)) {
923       com.google.protobuf.GeneratedMessageV3.writeString(output, 422937596, description_);
924     }
925     for (int i = 0; i < namedPorts_.size(); i++) {
926       output.writeMessage(427598732, namedPorts_.get(i));
927     }
928     if (((bitField0_ & 0x00000100) != 0)) {
929       com.google.protobuf.GeneratedMessageV3.writeString(output, 456214797, selfLink_);
930     }
931     getUnknownFields().writeTo(output);
932   }
933 
934   @java.lang.Override
getSerializedSize()935   public int getSerializedSize() {
936     int size = memoizedSize;
937     if (size != -1) return size;
938 
939     size = 0;
940     if (((bitField0_ & 0x00000008) != 0)) {
941       size += com.google.protobuf.CodedOutputStream.computeUInt64Size(3355, id_);
942     }
943     if (((bitField0_ & 0x00000010) != 0)) {
944       size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3292052, kind_);
945     }
946     if (((bitField0_ & 0x00000020) != 0)) {
947       size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3373707, name_);
948     }
949     if (((bitField0_ & 0x00000200) != 0)) {
950       size += com.google.protobuf.CodedOutputStream.computeInt32Size(3530753, size_);
951     }
952     if (((bitField0_ & 0x00000800) != 0)) {
953       size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3744684, zone_);
954     }
955     if (((bitField0_ & 0x00000001) != 0)) {
956       size +=
957           com.google.protobuf.GeneratedMessageV3.computeStringSize(30525366, creationTimestamp_);
958     }
959     if (((bitField0_ & 0x00000080) != 0)) {
960       size += com.google.protobuf.GeneratedMessageV3.computeStringSize(138946292, region_);
961     }
962     if (((bitField0_ & 0x00000040) != 0)) {
963       size += com.google.protobuf.GeneratedMessageV3.computeStringSize(232872494, network_);
964     }
965     if (((bitField0_ & 0x00000004) != 0)) {
966       size += com.google.protobuf.GeneratedMessageV3.computeStringSize(234678500, fingerprint_);
967     }
968     if (((bitField0_ & 0x00000400) != 0)) {
969       size += com.google.protobuf.GeneratedMessageV3.computeStringSize(307827694, subnetwork_);
970     }
971     if (((bitField0_ & 0x00000002) != 0)) {
972       size += com.google.protobuf.GeneratedMessageV3.computeStringSize(422937596, description_);
973     }
974     for (int i = 0; i < namedPorts_.size(); i++) {
975       size +=
976           com.google.protobuf.CodedOutputStream.computeMessageSize(427598732, namedPorts_.get(i));
977     }
978     if (((bitField0_ & 0x00000100) != 0)) {
979       size += com.google.protobuf.GeneratedMessageV3.computeStringSize(456214797, selfLink_);
980     }
981     size += getUnknownFields().getSerializedSize();
982     memoizedSize = size;
983     return size;
984   }
985 
986   @java.lang.Override
equals(final java.lang.Object obj)987   public boolean equals(final java.lang.Object obj) {
988     if (obj == this) {
989       return true;
990     }
991     if (!(obj instanceof com.google.cloud.compute.v1.InstanceGroup)) {
992       return super.equals(obj);
993     }
994     com.google.cloud.compute.v1.InstanceGroup other =
995         (com.google.cloud.compute.v1.InstanceGroup) obj;
996 
997     if (hasCreationTimestamp() != other.hasCreationTimestamp()) return false;
998     if (hasCreationTimestamp()) {
999       if (!getCreationTimestamp().equals(other.getCreationTimestamp())) return false;
1000     }
1001     if (hasDescription() != other.hasDescription()) return false;
1002     if (hasDescription()) {
1003       if (!getDescription().equals(other.getDescription())) return false;
1004     }
1005     if (hasFingerprint() != other.hasFingerprint()) return false;
1006     if (hasFingerprint()) {
1007       if (!getFingerprint().equals(other.getFingerprint())) return false;
1008     }
1009     if (hasId() != other.hasId()) return false;
1010     if (hasId()) {
1011       if (getId() != other.getId()) return false;
1012     }
1013     if (hasKind() != other.hasKind()) return false;
1014     if (hasKind()) {
1015       if (!getKind().equals(other.getKind())) return false;
1016     }
1017     if (hasName() != other.hasName()) return false;
1018     if (hasName()) {
1019       if (!getName().equals(other.getName())) return false;
1020     }
1021     if (!getNamedPortsList().equals(other.getNamedPortsList())) return false;
1022     if (hasNetwork() != other.hasNetwork()) return false;
1023     if (hasNetwork()) {
1024       if (!getNetwork().equals(other.getNetwork())) return false;
1025     }
1026     if (hasRegion() != other.hasRegion()) return false;
1027     if (hasRegion()) {
1028       if (!getRegion().equals(other.getRegion())) return false;
1029     }
1030     if (hasSelfLink() != other.hasSelfLink()) return false;
1031     if (hasSelfLink()) {
1032       if (!getSelfLink().equals(other.getSelfLink())) return false;
1033     }
1034     if (hasSize() != other.hasSize()) return false;
1035     if (hasSize()) {
1036       if (getSize() != other.getSize()) return false;
1037     }
1038     if (hasSubnetwork() != other.hasSubnetwork()) return false;
1039     if (hasSubnetwork()) {
1040       if (!getSubnetwork().equals(other.getSubnetwork())) return false;
1041     }
1042     if (hasZone() != other.hasZone()) return false;
1043     if (hasZone()) {
1044       if (!getZone().equals(other.getZone())) return false;
1045     }
1046     if (!getUnknownFields().equals(other.getUnknownFields())) return false;
1047     return true;
1048   }
1049 
1050   @java.lang.Override
hashCode()1051   public int hashCode() {
1052     if (memoizedHashCode != 0) {
1053       return memoizedHashCode;
1054     }
1055     int hash = 41;
1056     hash = (19 * hash) + getDescriptor().hashCode();
1057     if (hasCreationTimestamp()) {
1058       hash = (37 * hash) + CREATION_TIMESTAMP_FIELD_NUMBER;
1059       hash = (53 * hash) + getCreationTimestamp().hashCode();
1060     }
1061     if (hasDescription()) {
1062       hash = (37 * hash) + DESCRIPTION_FIELD_NUMBER;
1063       hash = (53 * hash) + getDescription().hashCode();
1064     }
1065     if (hasFingerprint()) {
1066       hash = (37 * hash) + FINGERPRINT_FIELD_NUMBER;
1067       hash = (53 * hash) + getFingerprint().hashCode();
1068     }
1069     if (hasId()) {
1070       hash = (37 * hash) + ID_FIELD_NUMBER;
1071       hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getId());
1072     }
1073     if (hasKind()) {
1074       hash = (37 * hash) + KIND_FIELD_NUMBER;
1075       hash = (53 * hash) + getKind().hashCode();
1076     }
1077     if (hasName()) {
1078       hash = (37 * hash) + NAME_FIELD_NUMBER;
1079       hash = (53 * hash) + getName().hashCode();
1080     }
1081     if (getNamedPortsCount() > 0) {
1082       hash = (37 * hash) + NAMED_PORTS_FIELD_NUMBER;
1083       hash = (53 * hash) + getNamedPortsList().hashCode();
1084     }
1085     if (hasNetwork()) {
1086       hash = (37 * hash) + NETWORK_FIELD_NUMBER;
1087       hash = (53 * hash) + getNetwork().hashCode();
1088     }
1089     if (hasRegion()) {
1090       hash = (37 * hash) + REGION_FIELD_NUMBER;
1091       hash = (53 * hash) + getRegion().hashCode();
1092     }
1093     if (hasSelfLink()) {
1094       hash = (37 * hash) + SELF_LINK_FIELD_NUMBER;
1095       hash = (53 * hash) + getSelfLink().hashCode();
1096     }
1097     if (hasSize()) {
1098       hash = (37 * hash) + SIZE_FIELD_NUMBER;
1099       hash = (53 * hash) + getSize();
1100     }
1101     if (hasSubnetwork()) {
1102       hash = (37 * hash) + SUBNETWORK_FIELD_NUMBER;
1103       hash = (53 * hash) + getSubnetwork().hashCode();
1104     }
1105     if (hasZone()) {
1106       hash = (37 * hash) + ZONE_FIELD_NUMBER;
1107       hash = (53 * hash) + getZone().hashCode();
1108     }
1109     hash = (29 * hash) + getUnknownFields().hashCode();
1110     memoizedHashCode = hash;
1111     return hash;
1112   }
1113 
parseFrom(java.nio.ByteBuffer data)1114   public static com.google.cloud.compute.v1.InstanceGroup parseFrom(java.nio.ByteBuffer data)
1115       throws com.google.protobuf.InvalidProtocolBufferException {
1116     return PARSER.parseFrom(data);
1117   }
1118 
parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)1119   public static com.google.cloud.compute.v1.InstanceGroup parseFrom(
1120       java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
1121       throws com.google.protobuf.InvalidProtocolBufferException {
1122     return PARSER.parseFrom(data, extensionRegistry);
1123   }
1124 
parseFrom( com.google.protobuf.ByteString data)1125   public static com.google.cloud.compute.v1.InstanceGroup parseFrom(
1126       com.google.protobuf.ByteString data)
1127       throws com.google.protobuf.InvalidProtocolBufferException {
1128     return PARSER.parseFrom(data);
1129   }
1130 
parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)1131   public static com.google.cloud.compute.v1.InstanceGroup parseFrom(
1132       com.google.protobuf.ByteString data,
1133       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
1134       throws com.google.protobuf.InvalidProtocolBufferException {
1135     return PARSER.parseFrom(data, extensionRegistry);
1136   }
1137 
parseFrom(byte[] data)1138   public static com.google.cloud.compute.v1.InstanceGroup parseFrom(byte[] data)
1139       throws com.google.protobuf.InvalidProtocolBufferException {
1140     return PARSER.parseFrom(data);
1141   }
1142 
parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)1143   public static com.google.cloud.compute.v1.InstanceGroup parseFrom(
1144       byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
1145       throws com.google.protobuf.InvalidProtocolBufferException {
1146     return PARSER.parseFrom(data, extensionRegistry);
1147   }
1148 
parseFrom(java.io.InputStream input)1149   public static com.google.cloud.compute.v1.InstanceGroup parseFrom(java.io.InputStream input)
1150       throws java.io.IOException {
1151     return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
1152   }
1153 
parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)1154   public static com.google.cloud.compute.v1.InstanceGroup parseFrom(
1155       java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
1156       throws java.io.IOException {
1157     return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
1158         PARSER, input, extensionRegistry);
1159   }
1160 
parseDelimitedFrom( java.io.InputStream input)1161   public static com.google.cloud.compute.v1.InstanceGroup parseDelimitedFrom(
1162       java.io.InputStream input) throws java.io.IOException {
1163     return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
1164   }
1165 
parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)1166   public static com.google.cloud.compute.v1.InstanceGroup parseDelimitedFrom(
1167       java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
1168       throws java.io.IOException {
1169     return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
1170         PARSER, input, extensionRegistry);
1171   }
1172 
parseFrom( com.google.protobuf.CodedInputStream input)1173   public static com.google.cloud.compute.v1.InstanceGroup parseFrom(
1174       com.google.protobuf.CodedInputStream input) throws java.io.IOException {
1175     return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
1176   }
1177 
parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)1178   public static com.google.cloud.compute.v1.InstanceGroup parseFrom(
1179       com.google.protobuf.CodedInputStream input,
1180       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
1181       throws java.io.IOException {
1182     return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
1183         PARSER, input, extensionRegistry);
1184   }
1185 
1186   @java.lang.Override
newBuilderForType()1187   public Builder newBuilderForType() {
1188     return newBuilder();
1189   }
1190 
newBuilder()1191   public static Builder newBuilder() {
1192     return DEFAULT_INSTANCE.toBuilder();
1193   }
1194 
newBuilder(com.google.cloud.compute.v1.InstanceGroup prototype)1195   public static Builder newBuilder(com.google.cloud.compute.v1.InstanceGroup prototype) {
1196     return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
1197   }
1198 
1199   @java.lang.Override
toBuilder()1200   public Builder toBuilder() {
1201     return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
1202   }
1203 
1204   @java.lang.Override
newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)1205   protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
1206     Builder builder = new Builder(parent);
1207     return builder;
1208   }
1209   /**
1210    *
1211    *
1212    * <pre>
1213    * Represents an Instance Group resource. Instance Groups can be used to configure a target for load balancing. Instance groups can either be managed or unmanaged. To create managed instance groups, use the instanceGroupManager or regionInstanceGroupManager resource instead. Use zonal unmanaged instance groups if you need to apply load balancing to groups of heterogeneous instances or if you need to manage the instances yourself. You cannot create regional unmanaged instance groups. For more information, read Instance groups.
1214    * </pre>
1215    *
1216    * Protobuf type {@code google.cloud.compute.v1.InstanceGroup}
1217    */
1218   public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder<Builder>
1219       implements
1220       // @@protoc_insertion_point(builder_implements:google.cloud.compute.v1.InstanceGroup)
1221       com.google.cloud.compute.v1.InstanceGroupOrBuilder {
getDescriptor()1222     public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
1223       return com.google.cloud.compute.v1.Compute
1224           .internal_static_google_cloud_compute_v1_InstanceGroup_descriptor;
1225     }
1226 
1227     @java.lang.Override
1228     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable()1229         internalGetFieldAccessorTable() {
1230       return com.google.cloud.compute.v1.Compute
1231           .internal_static_google_cloud_compute_v1_InstanceGroup_fieldAccessorTable
1232           .ensureFieldAccessorsInitialized(
1233               com.google.cloud.compute.v1.InstanceGroup.class,
1234               com.google.cloud.compute.v1.InstanceGroup.Builder.class);
1235     }
1236 
1237     // Construct using com.google.cloud.compute.v1.InstanceGroup.newBuilder()
Builder()1238     private Builder() {}
1239 
Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)1240     private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
1241       super(parent);
1242     }
1243 
1244     @java.lang.Override
clear()1245     public Builder clear() {
1246       super.clear();
1247       bitField0_ = 0;
1248       creationTimestamp_ = "";
1249       description_ = "";
1250       fingerprint_ = "";
1251       id_ = 0L;
1252       kind_ = "";
1253       name_ = "";
1254       if (namedPortsBuilder_ == null) {
1255         namedPorts_ = java.util.Collections.emptyList();
1256       } else {
1257         namedPorts_ = null;
1258         namedPortsBuilder_.clear();
1259       }
1260       bitField0_ = (bitField0_ & ~0x00000040);
1261       network_ = "";
1262       region_ = "";
1263       selfLink_ = "";
1264       size_ = 0;
1265       subnetwork_ = "";
1266       zone_ = "";
1267       return this;
1268     }
1269 
1270     @java.lang.Override
getDescriptorForType()1271     public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
1272       return com.google.cloud.compute.v1.Compute
1273           .internal_static_google_cloud_compute_v1_InstanceGroup_descriptor;
1274     }
1275 
1276     @java.lang.Override
getDefaultInstanceForType()1277     public com.google.cloud.compute.v1.InstanceGroup getDefaultInstanceForType() {
1278       return com.google.cloud.compute.v1.InstanceGroup.getDefaultInstance();
1279     }
1280 
1281     @java.lang.Override
build()1282     public com.google.cloud.compute.v1.InstanceGroup build() {
1283       com.google.cloud.compute.v1.InstanceGroup result = buildPartial();
1284       if (!result.isInitialized()) {
1285         throw newUninitializedMessageException(result);
1286       }
1287       return result;
1288     }
1289 
1290     @java.lang.Override
buildPartial()1291     public com.google.cloud.compute.v1.InstanceGroup buildPartial() {
1292       com.google.cloud.compute.v1.InstanceGroup result =
1293           new com.google.cloud.compute.v1.InstanceGroup(this);
1294       buildPartialRepeatedFields(result);
1295       if (bitField0_ != 0) {
1296         buildPartial0(result);
1297       }
1298       onBuilt();
1299       return result;
1300     }
1301 
buildPartialRepeatedFields(com.google.cloud.compute.v1.InstanceGroup result)1302     private void buildPartialRepeatedFields(com.google.cloud.compute.v1.InstanceGroup result) {
1303       if (namedPortsBuilder_ == null) {
1304         if (((bitField0_ & 0x00000040) != 0)) {
1305           namedPorts_ = java.util.Collections.unmodifiableList(namedPorts_);
1306           bitField0_ = (bitField0_ & ~0x00000040);
1307         }
1308         result.namedPorts_ = namedPorts_;
1309       } else {
1310         result.namedPorts_ = namedPortsBuilder_.build();
1311       }
1312     }
1313 
buildPartial0(com.google.cloud.compute.v1.InstanceGroup result)1314     private void buildPartial0(com.google.cloud.compute.v1.InstanceGroup result) {
1315       int from_bitField0_ = bitField0_;
1316       int to_bitField0_ = 0;
1317       if (((from_bitField0_ & 0x00000001) != 0)) {
1318         result.creationTimestamp_ = creationTimestamp_;
1319         to_bitField0_ |= 0x00000001;
1320       }
1321       if (((from_bitField0_ & 0x00000002) != 0)) {
1322         result.description_ = description_;
1323         to_bitField0_ |= 0x00000002;
1324       }
1325       if (((from_bitField0_ & 0x00000004) != 0)) {
1326         result.fingerprint_ = fingerprint_;
1327         to_bitField0_ |= 0x00000004;
1328       }
1329       if (((from_bitField0_ & 0x00000008) != 0)) {
1330         result.id_ = id_;
1331         to_bitField0_ |= 0x00000008;
1332       }
1333       if (((from_bitField0_ & 0x00000010) != 0)) {
1334         result.kind_ = kind_;
1335         to_bitField0_ |= 0x00000010;
1336       }
1337       if (((from_bitField0_ & 0x00000020) != 0)) {
1338         result.name_ = name_;
1339         to_bitField0_ |= 0x00000020;
1340       }
1341       if (((from_bitField0_ & 0x00000080) != 0)) {
1342         result.network_ = network_;
1343         to_bitField0_ |= 0x00000040;
1344       }
1345       if (((from_bitField0_ & 0x00000100) != 0)) {
1346         result.region_ = region_;
1347         to_bitField0_ |= 0x00000080;
1348       }
1349       if (((from_bitField0_ & 0x00000200) != 0)) {
1350         result.selfLink_ = selfLink_;
1351         to_bitField0_ |= 0x00000100;
1352       }
1353       if (((from_bitField0_ & 0x00000400) != 0)) {
1354         result.size_ = size_;
1355         to_bitField0_ |= 0x00000200;
1356       }
1357       if (((from_bitField0_ & 0x00000800) != 0)) {
1358         result.subnetwork_ = subnetwork_;
1359         to_bitField0_ |= 0x00000400;
1360       }
1361       if (((from_bitField0_ & 0x00001000) != 0)) {
1362         result.zone_ = zone_;
1363         to_bitField0_ |= 0x00000800;
1364       }
1365       result.bitField0_ |= to_bitField0_;
1366     }
1367 
1368     @java.lang.Override
clone()1369     public Builder clone() {
1370       return super.clone();
1371     }
1372 
1373     @java.lang.Override
setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)1374     public Builder setField(
1375         com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
1376       return super.setField(field, value);
1377     }
1378 
1379     @java.lang.Override
clearField(com.google.protobuf.Descriptors.FieldDescriptor field)1380     public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
1381       return super.clearField(field);
1382     }
1383 
1384     @java.lang.Override
clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)1385     public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
1386       return super.clearOneof(oneof);
1387     }
1388 
1389     @java.lang.Override
setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value)1390     public Builder setRepeatedField(
1391         com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
1392       return super.setRepeatedField(field, index, value);
1393     }
1394 
1395     @java.lang.Override
addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)1396     public Builder addRepeatedField(
1397         com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
1398       return super.addRepeatedField(field, value);
1399     }
1400 
1401     @java.lang.Override
mergeFrom(com.google.protobuf.Message other)1402     public Builder mergeFrom(com.google.protobuf.Message other) {
1403       if (other instanceof com.google.cloud.compute.v1.InstanceGroup) {
1404         return mergeFrom((com.google.cloud.compute.v1.InstanceGroup) other);
1405       } else {
1406         super.mergeFrom(other);
1407         return this;
1408       }
1409     }
1410 
mergeFrom(com.google.cloud.compute.v1.InstanceGroup other)1411     public Builder mergeFrom(com.google.cloud.compute.v1.InstanceGroup other) {
1412       if (other == com.google.cloud.compute.v1.InstanceGroup.getDefaultInstance()) return this;
1413       if (other.hasCreationTimestamp()) {
1414         creationTimestamp_ = other.creationTimestamp_;
1415         bitField0_ |= 0x00000001;
1416         onChanged();
1417       }
1418       if (other.hasDescription()) {
1419         description_ = other.description_;
1420         bitField0_ |= 0x00000002;
1421         onChanged();
1422       }
1423       if (other.hasFingerprint()) {
1424         fingerprint_ = other.fingerprint_;
1425         bitField0_ |= 0x00000004;
1426         onChanged();
1427       }
1428       if (other.hasId()) {
1429         setId(other.getId());
1430       }
1431       if (other.hasKind()) {
1432         kind_ = other.kind_;
1433         bitField0_ |= 0x00000010;
1434         onChanged();
1435       }
1436       if (other.hasName()) {
1437         name_ = other.name_;
1438         bitField0_ |= 0x00000020;
1439         onChanged();
1440       }
1441       if (namedPortsBuilder_ == null) {
1442         if (!other.namedPorts_.isEmpty()) {
1443           if (namedPorts_.isEmpty()) {
1444             namedPorts_ = other.namedPorts_;
1445             bitField0_ = (bitField0_ & ~0x00000040);
1446           } else {
1447             ensureNamedPortsIsMutable();
1448             namedPorts_.addAll(other.namedPorts_);
1449           }
1450           onChanged();
1451         }
1452       } else {
1453         if (!other.namedPorts_.isEmpty()) {
1454           if (namedPortsBuilder_.isEmpty()) {
1455             namedPortsBuilder_.dispose();
1456             namedPortsBuilder_ = null;
1457             namedPorts_ = other.namedPorts_;
1458             bitField0_ = (bitField0_ & ~0x00000040);
1459             namedPortsBuilder_ =
1460                 com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders
1461                     ? getNamedPortsFieldBuilder()
1462                     : null;
1463           } else {
1464             namedPortsBuilder_.addAllMessages(other.namedPorts_);
1465           }
1466         }
1467       }
1468       if (other.hasNetwork()) {
1469         network_ = other.network_;
1470         bitField0_ |= 0x00000080;
1471         onChanged();
1472       }
1473       if (other.hasRegion()) {
1474         region_ = other.region_;
1475         bitField0_ |= 0x00000100;
1476         onChanged();
1477       }
1478       if (other.hasSelfLink()) {
1479         selfLink_ = other.selfLink_;
1480         bitField0_ |= 0x00000200;
1481         onChanged();
1482       }
1483       if (other.hasSize()) {
1484         setSize(other.getSize());
1485       }
1486       if (other.hasSubnetwork()) {
1487         subnetwork_ = other.subnetwork_;
1488         bitField0_ |= 0x00000800;
1489         onChanged();
1490       }
1491       if (other.hasZone()) {
1492         zone_ = other.zone_;
1493         bitField0_ |= 0x00001000;
1494         onChanged();
1495       }
1496       this.mergeUnknownFields(other.getUnknownFields());
1497       onChanged();
1498       return this;
1499     }
1500 
1501     @java.lang.Override
isInitialized()1502     public final boolean isInitialized() {
1503       return true;
1504     }
1505 
1506     @java.lang.Override
mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)1507     public Builder mergeFrom(
1508         com.google.protobuf.CodedInputStream input,
1509         com.google.protobuf.ExtensionRegistryLite extensionRegistry)
1510         throws java.io.IOException {
1511       if (extensionRegistry == null) {
1512         throw new java.lang.NullPointerException();
1513       }
1514       try {
1515         boolean done = false;
1516         while (!done) {
1517           int tag = input.readTag();
1518           switch (tag) {
1519             case 0:
1520               done = true;
1521               break;
1522             case 26840:
1523               {
1524                 id_ = input.readUInt64();
1525                 bitField0_ |= 0x00000008;
1526                 break;
1527               } // case 26840
1528             case 26336418:
1529               {
1530                 kind_ = input.readStringRequireUtf8();
1531                 bitField0_ |= 0x00000010;
1532                 break;
1533               } // case 26336418
1534             case 26989658:
1535               {
1536                 name_ = input.readStringRequireUtf8();
1537                 bitField0_ |= 0x00000020;
1538                 break;
1539               } // case 26989658
1540             case 28246024:
1541               {
1542                 size_ = input.readInt32();
1543                 bitField0_ |= 0x00000400;
1544                 break;
1545               } // case 28246024
1546             case 29957474:
1547               {
1548                 zone_ = input.readStringRequireUtf8();
1549                 bitField0_ |= 0x00001000;
1550                 break;
1551               } // case 29957474
1552             case 244202930:
1553               {
1554                 creationTimestamp_ = input.readStringRequireUtf8();
1555                 bitField0_ |= 0x00000001;
1556                 break;
1557               } // case 244202930
1558             case 1111570338:
1559               {
1560                 region_ = input.readStringRequireUtf8();
1561                 bitField0_ |= 0x00000100;
1562                 break;
1563               } // case 1111570338
1564             case 1862979954:
1565               {
1566                 network_ = input.readStringRequireUtf8();
1567                 bitField0_ |= 0x00000080;
1568                 break;
1569               } // case 1862979954
1570             case 1877428002:
1571               {
1572                 fingerprint_ = input.readStringRequireUtf8();
1573                 bitField0_ |= 0x00000004;
1574                 break;
1575               } // case 1877428002
1576             case -1832345742:
1577               {
1578                 subnetwork_ = input.readStringRequireUtf8();
1579                 bitField0_ |= 0x00000800;
1580                 break;
1581               } // case -1832345742
1582             case -911466526:
1583               {
1584                 description_ = input.readStringRequireUtf8();
1585                 bitField0_ |= 0x00000002;
1586                 break;
1587               } // case -911466526
1588             case -874177438:
1589               {
1590                 com.google.cloud.compute.v1.NamedPort m =
1591                     input.readMessage(
1592                         com.google.cloud.compute.v1.NamedPort.parser(), extensionRegistry);
1593                 if (namedPortsBuilder_ == null) {
1594                   ensureNamedPortsIsMutable();
1595                   namedPorts_.add(m);
1596                 } else {
1597                   namedPortsBuilder_.addMessage(m);
1598                 }
1599                 break;
1600               } // case -874177438
1601             case -645248918:
1602               {
1603                 selfLink_ = input.readStringRequireUtf8();
1604                 bitField0_ |= 0x00000200;
1605                 break;
1606               } // case -645248918
1607             default:
1608               {
1609                 if (!super.parseUnknownField(input, extensionRegistry, tag)) {
1610                   done = true; // was an endgroup tag
1611                 }
1612                 break;
1613               } // default:
1614           } // switch (tag)
1615         } // while (!done)
1616       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
1617         throw e.unwrapIOException();
1618       } finally {
1619         onChanged();
1620       } // finally
1621       return this;
1622     }
1623 
1624     private int bitField0_;
1625 
1626     private java.lang.Object creationTimestamp_ = "";
1627     /**
1628      *
1629      *
1630      * <pre>
1631      * [Output Only] The creation timestamp for this instance group in RFC3339 text format.
1632      * </pre>
1633      *
1634      * <code>optional string creation_timestamp = 30525366;</code>
1635      *
1636      * @return Whether the creationTimestamp field is set.
1637      */
hasCreationTimestamp()1638     public boolean hasCreationTimestamp() {
1639       return ((bitField0_ & 0x00000001) != 0);
1640     }
1641     /**
1642      *
1643      *
1644      * <pre>
1645      * [Output Only] The creation timestamp for this instance group in RFC3339 text format.
1646      * </pre>
1647      *
1648      * <code>optional string creation_timestamp = 30525366;</code>
1649      *
1650      * @return The creationTimestamp.
1651      */
getCreationTimestamp()1652     public java.lang.String getCreationTimestamp() {
1653       java.lang.Object ref = creationTimestamp_;
1654       if (!(ref instanceof java.lang.String)) {
1655         com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
1656         java.lang.String s = bs.toStringUtf8();
1657         creationTimestamp_ = s;
1658         return s;
1659       } else {
1660         return (java.lang.String) ref;
1661       }
1662     }
1663     /**
1664      *
1665      *
1666      * <pre>
1667      * [Output Only] The creation timestamp for this instance group in RFC3339 text format.
1668      * </pre>
1669      *
1670      * <code>optional string creation_timestamp = 30525366;</code>
1671      *
1672      * @return The bytes for creationTimestamp.
1673      */
getCreationTimestampBytes()1674     public com.google.protobuf.ByteString getCreationTimestampBytes() {
1675       java.lang.Object ref = creationTimestamp_;
1676       if (ref instanceof String) {
1677         com.google.protobuf.ByteString b =
1678             com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
1679         creationTimestamp_ = b;
1680         return b;
1681       } else {
1682         return (com.google.protobuf.ByteString) ref;
1683       }
1684     }
1685     /**
1686      *
1687      *
1688      * <pre>
1689      * [Output Only] The creation timestamp for this instance group in RFC3339 text format.
1690      * </pre>
1691      *
1692      * <code>optional string creation_timestamp = 30525366;</code>
1693      *
1694      * @param value The creationTimestamp to set.
1695      * @return This builder for chaining.
1696      */
setCreationTimestamp(java.lang.String value)1697     public Builder setCreationTimestamp(java.lang.String value) {
1698       if (value == null) {
1699         throw new NullPointerException();
1700       }
1701       creationTimestamp_ = value;
1702       bitField0_ |= 0x00000001;
1703       onChanged();
1704       return this;
1705     }
1706     /**
1707      *
1708      *
1709      * <pre>
1710      * [Output Only] The creation timestamp for this instance group in RFC3339 text format.
1711      * </pre>
1712      *
1713      * <code>optional string creation_timestamp = 30525366;</code>
1714      *
1715      * @return This builder for chaining.
1716      */
clearCreationTimestamp()1717     public Builder clearCreationTimestamp() {
1718       creationTimestamp_ = getDefaultInstance().getCreationTimestamp();
1719       bitField0_ = (bitField0_ & ~0x00000001);
1720       onChanged();
1721       return this;
1722     }
1723     /**
1724      *
1725      *
1726      * <pre>
1727      * [Output Only] The creation timestamp for this instance group in RFC3339 text format.
1728      * </pre>
1729      *
1730      * <code>optional string creation_timestamp = 30525366;</code>
1731      *
1732      * @param value The bytes for creationTimestamp to set.
1733      * @return This builder for chaining.
1734      */
setCreationTimestampBytes(com.google.protobuf.ByteString value)1735     public Builder setCreationTimestampBytes(com.google.protobuf.ByteString value) {
1736       if (value == null) {
1737         throw new NullPointerException();
1738       }
1739       checkByteStringIsUtf8(value);
1740       creationTimestamp_ = value;
1741       bitField0_ |= 0x00000001;
1742       onChanged();
1743       return this;
1744     }
1745 
1746     private java.lang.Object description_ = "";
1747     /**
1748      *
1749      *
1750      * <pre>
1751      * An optional description of this resource. Provide this property when you create the resource.
1752      * </pre>
1753      *
1754      * <code>optional string description = 422937596;</code>
1755      *
1756      * @return Whether the description field is set.
1757      */
hasDescription()1758     public boolean hasDescription() {
1759       return ((bitField0_ & 0x00000002) != 0);
1760     }
1761     /**
1762      *
1763      *
1764      * <pre>
1765      * An optional description of this resource. Provide this property when you create the resource.
1766      * </pre>
1767      *
1768      * <code>optional string description = 422937596;</code>
1769      *
1770      * @return The description.
1771      */
getDescription()1772     public java.lang.String getDescription() {
1773       java.lang.Object ref = description_;
1774       if (!(ref instanceof java.lang.String)) {
1775         com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
1776         java.lang.String s = bs.toStringUtf8();
1777         description_ = s;
1778         return s;
1779       } else {
1780         return (java.lang.String) ref;
1781       }
1782     }
1783     /**
1784      *
1785      *
1786      * <pre>
1787      * An optional description of this resource. Provide this property when you create the resource.
1788      * </pre>
1789      *
1790      * <code>optional string description = 422937596;</code>
1791      *
1792      * @return The bytes for description.
1793      */
getDescriptionBytes()1794     public com.google.protobuf.ByteString getDescriptionBytes() {
1795       java.lang.Object ref = description_;
1796       if (ref instanceof String) {
1797         com.google.protobuf.ByteString b =
1798             com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
1799         description_ = b;
1800         return b;
1801       } else {
1802         return (com.google.protobuf.ByteString) ref;
1803       }
1804     }
1805     /**
1806      *
1807      *
1808      * <pre>
1809      * An optional description of this resource. Provide this property when you create the resource.
1810      * </pre>
1811      *
1812      * <code>optional string description = 422937596;</code>
1813      *
1814      * @param value The description to set.
1815      * @return This builder for chaining.
1816      */
setDescription(java.lang.String value)1817     public Builder setDescription(java.lang.String value) {
1818       if (value == null) {
1819         throw new NullPointerException();
1820       }
1821       description_ = value;
1822       bitField0_ |= 0x00000002;
1823       onChanged();
1824       return this;
1825     }
1826     /**
1827      *
1828      *
1829      * <pre>
1830      * An optional description of this resource. Provide this property when you create the resource.
1831      * </pre>
1832      *
1833      * <code>optional string description = 422937596;</code>
1834      *
1835      * @return This builder for chaining.
1836      */
clearDescription()1837     public Builder clearDescription() {
1838       description_ = getDefaultInstance().getDescription();
1839       bitField0_ = (bitField0_ & ~0x00000002);
1840       onChanged();
1841       return this;
1842     }
1843     /**
1844      *
1845      *
1846      * <pre>
1847      * An optional description of this resource. Provide this property when you create the resource.
1848      * </pre>
1849      *
1850      * <code>optional string description = 422937596;</code>
1851      *
1852      * @param value The bytes for description to set.
1853      * @return This builder for chaining.
1854      */
setDescriptionBytes(com.google.protobuf.ByteString value)1855     public Builder setDescriptionBytes(com.google.protobuf.ByteString value) {
1856       if (value == null) {
1857         throw new NullPointerException();
1858       }
1859       checkByteStringIsUtf8(value);
1860       description_ = value;
1861       bitField0_ |= 0x00000002;
1862       onChanged();
1863       return this;
1864     }
1865 
1866     private java.lang.Object fingerprint_ = "";
1867     /**
1868      *
1869      *
1870      * <pre>
1871      * [Output Only] The fingerprint of the named ports. The system uses this fingerprint to detect conflicts when multiple users change the named ports concurrently.
1872      * </pre>
1873      *
1874      * <code>optional string fingerprint = 234678500;</code>
1875      *
1876      * @return Whether the fingerprint field is set.
1877      */
hasFingerprint()1878     public boolean hasFingerprint() {
1879       return ((bitField0_ & 0x00000004) != 0);
1880     }
1881     /**
1882      *
1883      *
1884      * <pre>
1885      * [Output Only] The fingerprint of the named ports. The system uses this fingerprint to detect conflicts when multiple users change the named ports concurrently.
1886      * </pre>
1887      *
1888      * <code>optional string fingerprint = 234678500;</code>
1889      *
1890      * @return The fingerprint.
1891      */
getFingerprint()1892     public java.lang.String getFingerprint() {
1893       java.lang.Object ref = fingerprint_;
1894       if (!(ref instanceof java.lang.String)) {
1895         com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
1896         java.lang.String s = bs.toStringUtf8();
1897         fingerprint_ = s;
1898         return s;
1899       } else {
1900         return (java.lang.String) ref;
1901       }
1902     }
1903     /**
1904      *
1905      *
1906      * <pre>
1907      * [Output Only] The fingerprint of the named ports. The system uses this fingerprint to detect conflicts when multiple users change the named ports concurrently.
1908      * </pre>
1909      *
1910      * <code>optional string fingerprint = 234678500;</code>
1911      *
1912      * @return The bytes for fingerprint.
1913      */
getFingerprintBytes()1914     public com.google.protobuf.ByteString getFingerprintBytes() {
1915       java.lang.Object ref = fingerprint_;
1916       if (ref instanceof String) {
1917         com.google.protobuf.ByteString b =
1918             com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
1919         fingerprint_ = b;
1920         return b;
1921       } else {
1922         return (com.google.protobuf.ByteString) ref;
1923       }
1924     }
1925     /**
1926      *
1927      *
1928      * <pre>
1929      * [Output Only] The fingerprint of the named ports. The system uses this fingerprint to detect conflicts when multiple users change the named ports concurrently.
1930      * </pre>
1931      *
1932      * <code>optional string fingerprint = 234678500;</code>
1933      *
1934      * @param value The fingerprint to set.
1935      * @return This builder for chaining.
1936      */
setFingerprint(java.lang.String value)1937     public Builder setFingerprint(java.lang.String value) {
1938       if (value == null) {
1939         throw new NullPointerException();
1940       }
1941       fingerprint_ = value;
1942       bitField0_ |= 0x00000004;
1943       onChanged();
1944       return this;
1945     }
1946     /**
1947      *
1948      *
1949      * <pre>
1950      * [Output Only] The fingerprint of the named ports. The system uses this fingerprint to detect conflicts when multiple users change the named ports concurrently.
1951      * </pre>
1952      *
1953      * <code>optional string fingerprint = 234678500;</code>
1954      *
1955      * @return This builder for chaining.
1956      */
clearFingerprint()1957     public Builder clearFingerprint() {
1958       fingerprint_ = getDefaultInstance().getFingerprint();
1959       bitField0_ = (bitField0_ & ~0x00000004);
1960       onChanged();
1961       return this;
1962     }
1963     /**
1964      *
1965      *
1966      * <pre>
1967      * [Output Only] The fingerprint of the named ports. The system uses this fingerprint to detect conflicts when multiple users change the named ports concurrently.
1968      * </pre>
1969      *
1970      * <code>optional string fingerprint = 234678500;</code>
1971      *
1972      * @param value The bytes for fingerprint to set.
1973      * @return This builder for chaining.
1974      */
setFingerprintBytes(com.google.protobuf.ByteString value)1975     public Builder setFingerprintBytes(com.google.protobuf.ByteString value) {
1976       if (value == null) {
1977         throw new NullPointerException();
1978       }
1979       checkByteStringIsUtf8(value);
1980       fingerprint_ = value;
1981       bitField0_ |= 0x00000004;
1982       onChanged();
1983       return this;
1984     }
1985 
1986     private long id_;
1987     /**
1988      *
1989      *
1990      * <pre>
1991      * [Output Only] A unique identifier for this instance group, generated by the server.
1992      * </pre>
1993      *
1994      * <code>optional uint64 id = 3355;</code>
1995      *
1996      * @return Whether the id field is set.
1997      */
1998     @java.lang.Override
hasId()1999     public boolean hasId() {
2000       return ((bitField0_ & 0x00000008) != 0);
2001     }
2002     /**
2003      *
2004      *
2005      * <pre>
2006      * [Output Only] A unique identifier for this instance group, generated by the server.
2007      * </pre>
2008      *
2009      * <code>optional uint64 id = 3355;</code>
2010      *
2011      * @return The id.
2012      */
2013     @java.lang.Override
getId()2014     public long getId() {
2015       return id_;
2016     }
2017     /**
2018      *
2019      *
2020      * <pre>
2021      * [Output Only] A unique identifier for this instance group, generated by the server.
2022      * </pre>
2023      *
2024      * <code>optional uint64 id = 3355;</code>
2025      *
2026      * @param value The id to set.
2027      * @return This builder for chaining.
2028      */
setId(long value)2029     public Builder setId(long value) {
2030 
2031       id_ = value;
2032       bitField0_ |= 0x00000008;
2033       onChanged();
2034       return this;
2035     }
2036     /**
2037      *
2038      *
2039      * <pre>
2040      * [Output Only] A unique identifier for this instance group, generated by the server.
2041      * </pre>
2042      *
2043      * <code>optional uint64 id = 3355;</code>
2044      *
2045      * @return This builder for chaining.
2046      */
clearId()2047     public Builder clearId() {
2048       bitField0_ = (bitField0_ & ~0x00000008);
2049       id_ = 0L;
2050       onChanged();
2051       return this;
2052     }
2053 
2054     private java.lang.Object kind_ = "";
2055     /**
2056      *
2057      *
2058      * <pre>
2059      * [Output Only] The resource type, which is always compute#instanceGroup for instance groups.
2060      * </pre>
2061      *
2062      * <code>optional string kind = 3292052;</code>
2063      *
2064      * @return Whether the kind field is set.
2065      */
hasKind()2066     public boolean hasKind() {
2067       return ((bitField0_ & 0x00000010) != 0);
2068     }
2069     /**
2070      *
2071      *
2072      * <pre>
2073      * [Output Only] The resource type, which is always compute#instanceGroup for instance groups.
2074      * </pre>
2075      *
2076      * <code>optional string kind = 3292052;</code>
2077      *
2078      * @return The kind.
2079      */
getKind()2080     public java.lang.String getKind() {
2081       java.lang.Object ref = kind_;
2082       if (!(ref instanceof java.lang.String)) {
2083         com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
2084         java.lang.String s = bs.toStringUtf8();
2085         kind_ = s;
2086         return s;
2087       } else {
2088         return (java.lang.String) ref;
2089       }
2090     }
2091     /**
2092      *
2093      *
2094      * <pre>
2095      * [Output Only] The resource type, which is always compute#instanceGroup for instance groups.
2096      * </pre>
2097      *
2098      * <code>optional string kind = 3292052;</code>
2099      *
2100      * @return The bytes for kind.
2101      */
getKindBytes()2102     public com.google.protobuf.ByteString getKindBytes() {
2103       java.lang.Object ref = kind_;
2104       if (ref instanceof String) {
2105         com.google.protobuf.ByteString b =
2106             com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
2107         kind_ = b;
2108         return b;
2109       } else {
2110         return (com.google.protobuf.ByteString) ref;
2111       }
2112     }
2113     /**
2114      *
2115      *
2116      * <pre>
2117      * [Output Only] The resource type, which is always compute#instanceGroup for instance groups.
2118      * </pre>
2119      *
2120      * <code>optional string kind = 3292052;</code>
2121      *
2122      * @param value The kind to set.
2123      * @return This builder for chaining.
2124      */
setKind(java.lang.String value)2125     public Builder setKind(java.lang.String value) {
2126       if (value == null) {
2127         throw new NullPointerException();
2128       }
2129       kind_ = value;
2130       bitField0_ |= 0x00000010;
2131       onChanged();
2132       return this;
2133     }
2134     /**
2135      *
2136      *
2137      * <pre>
2138      * [Output Only] The resource type, which is always compute#instanceGroup for instance groups.
2139      * </pre>
2140      *
2141      * <code>optional string kind = 3292052;</code>
2142      *
2143      * @return This builder for chaining.
2144      */
clearKind()2145     public Builder clearKind() {
2146       kind_ = getDefaultInstance().getKind();
2147       bitField0_ = (bitField0_ & ~0x00000010);
2148       onChanged();
2149       return this;
2150     }
2151     /**
2152      *
2153      *
2154      * <pre>
2155      * [Output Only] The resource type, which is always compute#instanceGroup for instance groups.
2156      * </pre>
2157      *
2158      * <code>optional string kind = 3292052;</code>
2159      *
2160      * @param value The bytes for kind to set.
2161      * @return This builder for chaining.
2162      */
setKindBytes(com.google.protobuf.ByteString value)2163     public Builder setKindBytes(com.google.protobuf.ByteString value) {
2164       if (value == null) {
2165         throw new NullPointerException();
2166       }
2167       checkByteStringIsUtf8(value);
2168       kind_ = value;
2169       bitField0_ |= 0x00000010;
2170       onChanged();
2171       return this;
2172     }
2173 
2174     private java.lang.Object name_ = "";
2175     /**
2176      *
2177      *
2178      * <pre>
2179      * The name of the instance group. The name must be 1-63 characters long, and comply with RFC1035.
2180      * </pre>
2181      *
2182      * <code>optional string name = 3373707;</code>
2183      *
2184      * @return Whether the name field is set.
2185      */
hasName()2186     public boolean hasName() {
2187       return ((bitField0_ & 0x00000020) != 0);
2188     }
2189     /**
2190      *
2191      *
2192      * <pre>
2193      * The name of the instance group. The name must be 1-63 characters long, and comply with RFC1035.
2194      * </pre>
2195      *
2196      * <code>optional string name = 3373707;</code>
2197      *
2198      * @return The name.
2199      */
getName()2200     public java.lang.String getName() {
2201       java.lang.Object ref = name_;
2202       if (!(ref instanceof java.lang.String)) {
2203         com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
2204         java.lang.String s = bs.toStringUtf8();
2205         name_ = s;
2206         return s;
2207       } else {
2208         return (java.lang.String) ref;
2209       }
2210     }
2211     /**
2212      *
2213      *
2214      * <pre>
2215      * The name of the instance group. The name must be 1-63 characters long, and comply with RFC1035.
2216      * </pre>
2217      *
2218      * <code>optional string name = 3373707;</code>
2219      *
2220      * @return The bytes for name.
2221      */
getNameBytes()2222     public com.google.protobuf.ByteString getNameBytes() {
2223       java.lang.Object ref = name_;
2224       if (ref instanceof String) {
2225         com.google.protobuf.ByteString b =
2226             com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
2227         name_ = b;
2228         return b;
2229       } else {
2230         return (com.google.protobuf.ByteString) ref;
2231       }
2232     }
2233     /**
2234      *
2235      *
2236      * <pre>
2237      * The name of the instance group. The name must be 1-63 characters long, and comply with RFC1035.
2238      * </pre>
2239      *
2240      * <code>optional string name = 3373707;</code>
2241      *
2242      * @param value The name to set.
2243      * @return This builder for chaining.
2244      */
setName(java.lang.String value)2245     public Builder setName(java.lang.String value) {
2246       if (value == null) {
2247         throw new NullPointerException();
2248       }
2249       name_ = value;
2250       bitField0_ |= 0x00000020;
2251       onChanged();
2252       return this;
2253     }
2254     /**
2255      *
2256      *
2257      * <pre>
2258      * The name of the instance group. The name must be 1-63 characters long, and comply with RFC1035.
2259      * </pre>
2260      *
2261      * <code>optional string name = 3373707;</code>
2262      *
2263      * @return This builder for chaining.
2264      */
clearName()2265     public Builder clearName() {
2266       name_ = getDefaultInstance().getName();
2267       bitField0_ = (bitField0_ & ~0x00000020);
2268       onChanged();
2269       return this;
2270     }
2271     /**
2272      *
2273      *
2274      * <pre>
2275      * The name of the instance group. The name must be 1-63 characters long, and comply with RFC1035.
2276      * </pre>
2277      *
2278      * <code>optional string name = 3373707;</code>
2279      *
2280      * @param value The bytes for name to set.
2281      * @return This builder for chaining.
2282      */
setNameBytes(com.google.protobuf.ByteString value)2283     public Builder setNameBytes(com.google.protobuf.ByteString value) {
2284       if (value == null) {
2285         throw new NullPointerException();
2286       }
2287       checkByteStringIsUtf8(value);
2288       name_ = value;
2289       bitField0_ |= 0x00000020;
2290       onChanged();
2291       return this;
2292     }
2293 
2294     private java.util.List<com.google.cloud.compute.v1.NamedPort> namedPorts_ =
2295         java.util.Collections.emptyList();
2296 
ensureNamedPortsIsMutable()2297     private void ensureNamedPortsIsMutable() {
2298       if (!((bitField0_ & 0x00000040) != 0)) {
2299         namedPorts_ = new java.util.ArrayList<com.google.cloud.compute.v1.NamedPort>(namedPorts_);
2300         bitField0_ |= 0x00000040;
2301       }
2302     }
2303 
2304     private com.google.protobuf.RepeatedFieldBuilderV3<
2305             com.google.cloud.compute.v1.NamedPort,
2306             com.google.cloud.compute.v1.NamedPort.Builder,
2307             com.google.cloud.compute.v1.NamedPortOrBuilder>
2308         namedPortsBuilder_;
2309 
2310     /**
2311      *
2312      *
2313      * <pre>
2314      *  Assigns a name to a port number. For example: {name: "http", port: 80} This allows the system to reference ports by the assigned name instead of a port number. Named ports can also contain multiple ports. For example: [{name: "app1", port: 8080}, {name: "app1", port: 8081}, {name: "app2", port: 8082}] Named ports apply to all instances in this instance group.
2315      * </pre>
2316      *
2317      * <code>repeated .google.cloud.compute.v1.NamedPort named_ports = 427598732;</code>
2318      */
getNamedPortsList()2319     public java.util.List<com.google.cloud.compute.v1.NamedPort> getNamedPortsList() {
2320       if (namedPortsBuilder_ == null) {
2321         return java.util.Collections.unmodifiableList(namedPorts_);
2322       } else {
2323         return namedPortsBuilder_.getMessageList();
2324       }
2325     }
2326     /**
2327      *
2328      *
2329      * <pre>
2330      *  Assigns a name to a port number. For example: {name: "http", port: 80} This allows the system to reference ports by the assigned name instead of a port number. Named ports can also contain multiple ports. For example: [{name: "app1", port: 8080}, {name: "app1", port: 8081}, {name: "app2", port: 8082}] Named ports apply to all instances in this instance group.
2331      * </pre>
2332      *
2333      * <code>repeated .google.cloud.compute.v1.NamedPort named_ports = 427598732;</code>
2334      */
getNamedPortsCount()2335     public int getNamedPortsCount() {
2336       if (namedPortsBuilder_ == null) {
2337         return namedPorts_.size();
2338       } else {
2339         return namedPortsBuilder_.getCount();
2340       }
2341     }
2342     /**
2343      *
2344      *
2345      * <pre>
2346      *  Assigns a name to a port number. For example: {name: "http", port: 80} This allows the system to reference ports by the assigned name instead of a port number. Named ports can also contain multiple ports. For example: [{name: "app1", port: 8080}, {name: "app1", port: 8081}, {name: "app2", port: 8082}] Named ports apply to all instances in this instance group.
2347      * </pre>
2348      *
2349      * <code>repeated .google.cloud.compute.v1.NamedPort named_ports = 427598732;</code>
2350      */
getNamedPorts(int index)2351     public com.google.cloud.compute.v1.NamedPort getNamedPorts(int index) {
2352       if (namedPortsBuilder_ == null) {
2353         return namedPorts_.get(index);
2354       } else {
2355         return namedPortsBuilder_.getMessage(index);
2356       }
2357     }
2358     /**
2359      *
2360      *
2361      * <pre>
2362      *  Assigns a name to a port number. For example: {name: "http", port: 80} This allows the system to reference ports by the assigned name instead of a port number. Named ports can also contain multiple ports. For example: [{name: "app1", port: 8080}, {name: "app1", port: 8081}, {name: "app2", port: 8082}] Named ports apply to all instances in this instance group.
2363      * </pre>
2364      *
2365      * <code>repeated .google.cloud.compute.v1.NamedPort named_ports = 427598732;</code>
2366      */
setNamedPorts(int index, com.google.cloud.compute.v1.NamedPort value)2367     public Builder setNamedPorts(int index, com.google.cloud.compute.v1.NamedPort value) {
2368       if (namedPortsBuilder_ == null) {
2369         if (value == null) {
2370           throw new NullPointerException();
2371         }
2372         ensureNamedPortsIsMutable();
2373         namedPorts_.set(index, value);
2374         onChanged();
2375       } else {
2376         namedPortsBuilder_.setMessage(index, value);
2377       }
2378       return this;
2379     }
2380     /**
2381      *
2382      *
2383      * <pre>
2384      *  Assigns a name to a port number. For example: {name: "http", port: 80} This allows the system to reference ports by the assigned name instead of a port number. Named ports can also contain multiple ports. For example: [{name: "app1", port: 8080}, {name: "app1", port: 8081}, {name: "app2", port: 8082}] Named ports apply to all instances in this instance group.
2385      * </pre>
2386      *
2387      * <code>repeated .google.cloud.compute.v1.NamedPort named_ports = 427598732;</code>
2388      */
setNamedPorts( int index, com.google.cloud.compute.v1.NamedPort.Builder builderForValue)2389     public Builder setNamedPorts(
2390         int index, com.google.cloud.compute.v1.NamedPort.Builder builderForValue) {
2391       if (namedPortsBuilder_ == null) {
2392         ensureNamedPortsIsMutable();
2393         namedPorts_.set(index, builderForValue.build());
2394         onChanged();
2395       } else {
2396         namedPortsBuilder_.setMessage(index, builderForValue.build());
2397       }
2398       return this;
2399     }
2400     /**
2401      *
2402      *
2403      * <pre>
2404      *  Assigns a name to a port number. For example: {name: "http", port: 80} This allows the system to reference ports by the assigned name instead of a port number. Named ports can also contain multiple ports. For example: [{name: "app1", port: 8080}, {name: "app1", port: 8081}, {name: "app2", port: 8082}] Named ports apply to all instances in this instance group.
2405      * </pre>
2406      *
2407      * <code>repeated .google.cloud.compute.v1.NamedPort named_ports = 427598732;</code>
2408      */
addNamedPorts(com.google.cloud.compute.v1.NamedPort value)2409     public Builder addNamedPorts(com.google.cloud.compute.v1.NamedPort value) {
2410       if (namedPortsBuilder_ == null) {
2411         if (value == null) {
2412           throw new NullPointerException();
2413         }
2414         ensureNamedPortsIsMutable();
2415         namedPorts_.add(value);
2416         onChanged();
2417       } else {
2418         namedPortsBuilder_.addMessage(value);
2419       }
2420       return this;
2421     }
2422     /**
2423      *
2424      *
2425      * <pre>
2426      *  Assigns a name to a port number. For example: {name: "http", port: 80} This allows the system to reference ports by the assigned name instead of a port number. Named ports can also contain multiple ports. For example: [{name: "app1", port: 8080}, {name: "app1", port: 8081}, {name: "app2", port: 8082}] Named ports apply to all instances in this instance group.
2427      * </pre>
2428      *
2429      * <code>repeated .google.cloud.compute.v1.NamedPort named_ports = 427598732;</code>
2430      */
addNamedPorts(int index, com.google.cloud.compute.v1.NamedPort value)2431     public Builder addNamedPorts(int index, com.google.cloud.compute.v1.NamedPort value) {
2432       if (namedPortsBuilder_ == null) {
2433         if (value == null) {
2434           throw new NullPointerException();
2435         }
2436         ensureNamedPortsIsMutable();
2437         namedPorts_.add(index, value);
2438         onChanged();
2439       } else {
2440         namedPortsBuilder_.addMessage(index, value);
2441       }
2442       return this;
2443     }
2444     /**
2445      *
2446      *
2447      * <pre>
2448      *  Assigns a name to a port number. For example: {name: "http", port: 80} This allows the system to reference ports by the assigned name instead of a port number. Named ports can also contain multiple ports. For example: [{name: "app1", port: 8080}, {name: "app1", port: 8081}, {name: "app2", port: 8082}] Named ports apply to all instances in this instance group.
2449      * </pre>
2450      *
2451      * <code>repeated .google.cloud.compute.v1.NamedPort named_ports = 427598732;</code>
2452      */
addNamedPorts(com.google.cloud.compute.v1.NamedPort.Builder builderForValue)2453     public Builder addNamedPorts(com.google.cloud.compute.v1.NamedPort.Builder builderForValue) {
2454       if (namedPortsBuilder_ == null) {
2455         ensureNamedPortsIsMutable();
2456         namedPorts_.add(builderForValue.build());
2457         onChanged();
2458       } else {
2459         namedPortsBuilder_.addMessage(builderForValue.build());
2460       }
2461       return this;
2462     }
2463     /**
2464      *
2465      *
2466      * <pre>
2467      *  Assigns a name to a port number. For example: {name: "http", port: 80} This allows the system to reference ports by the assigned name instead of a port number. Named ports can also contain multiple ports. For example: [{name: "app1", port: 8080}, {name: "app1", port: 8081}, {name: "app2", port: 8082}] Named ports apply to all instances in this instance group.
2468      * </pre>
2469      *
2470      * <code>repeated .google.cloud.compute.v1.NamedPort named_ports = 427598732;</code>
2471      */
addNamedPorts( int index, com.google.cloud.compute.v1.NamedPort.Builder builderForValue)2472     public Builder addNamedPorts(
2473         int index, com.google.cloud.compute.v1.NamedPort.Builder builderForValue) {
2474       if (namedPortsBuilder_ == null) {
2475         ensureNamedPortsIsMutable();
2476         namedPorts_.add(index, builderForValue.build());
2477         onChanged();
2478       } else {
2479         namedPortsBuilder_.addMessage(index, builderForValue.build());
2480       }
2481       return this;
2482     }
2483     /**
2484      *
2485      *
2486      * <pre>
2487      *  Assigns a name to a port number. For example: {name: "http", port: 80} This allows the system to reference ports by the assigned name instead of a port number. Named ports can also contain multiple ports. For example: [{name: "app1", port: 8080}, {name: "app1", port: 8081}, {name: "app2", port: 8082}] Named ports apply to all instances in this instance group.
2488      * </pre>
2489      *
2490      * <code>repeated .google.cloud.compute.v1.NamedPort named_ports = 427598732;</code>
2491      */
addAllNamedPorts( java.lang.Iterable<? extends com.google.cloud.compute.v1.NamedPort> values)2492     public Builder addAllNamedPorts(
2493         java.lang.Iterable<? extends com.google.cloud.compute.v1.NamedPort> values) {
2494       if (namedPortsBuilder_ == null) {
2495         ensureNamedPortsIsMutable();
2496         com.google.protobuf.AbstractMessageLite.Builder.addAll(values, namedPorts_);
2497         onChanged();
2498       } else {
2499         namedPortsBuilder_.addAllMessages(values);
2500       }
2501       return this;
2502     }
2503     /**
2504      *
2505      *
2506      * <pre>
2507      *  Assigns a name to a port number. For example: {name: "http", port: 80} This allows the system to reference ports by the assigned name instead of a port number. Named ports can also contain multiple ports. For example: [{name: "app1", port: 8080}, {name: "app1", port: 8081}, {name: "app2", port: 8082}] Named ports apply to all instances in this instance group.
2508      * </pre>
2509      *
2510      * <code>repeated .google.cloud.compute.v1.NamedPort named_ports = 427598732;</code>
2511      */
clearNamedPorts()2512     public Builder clearNamedPorts() {
2513       if (namedPortsBuilder_ == null) {
2514         namedPorts_ = java.util.Collections.emptyList();
2515         bitField0_ = (bitField0_ & ~0x00000040);
2516         onChanged();
2517       } else {
2518         namedPortsBuilder_.clear();
2519       }
2520       return this;
2521     }
2522     /**
2523      *
2524      *
2525      * <pre>
2526      *  Assigns a name to a port number. For example: {name: "http", port: 80} This allows the system to reference ports by the assigned name instead of a port number. Named ports can also contain multiple ports. For example: [{name: "app1", port: 8080}, {name: "app1", port: 8081}, {name: "app2", port: 8082}] Named ports apply to all instances in this instance group.
2527      * </pre>
2528      *
2529      * <code>repeated .google.cloud.compute.v1.NamedPort named_ports = 427598732;</code>
2530      */
removeNamedPorts(int index)2531     public Builder removeNamedPorts(int index) {
2532       if (namedPortsBuilder_ == null) {
2533         ensureNamedPortsIsMutable();
2534         namedPorts_.remove(index);
2535         onChanged();
2536       } else {
2537         namedPortsBuilder_.remove(index);
2538       }
2539       return this;
2540     }
2541     /**
2542      *
2543      *
2544      * <pre>
2545      *  Assigns a name to a port number. For example: {name: "http", port: 80} This allows the system to reference ports by the assigned name instead of a port number. Named ports can also contain multiple ports. For example: [{name: "app1", port: 8080}, {name: "app1", port: 8081}, {name: "app2", port: 8082}] Named ports apply to all instances in this instance group.
2546      * </pre>
2547      *
2548      * <code>repeated .google.cloud.compute.v1.NamedPort named_ports = 427598732;</code>
2549      */
getNamedPortsBuilder(int index)2550     public com.google.cloud.compute.v1.NamedPort.Builder getNamedPortsBuilder(int index) {
2551       return getNamedPortsFieldBuilder().getBuilder(index);
2552     }
2553     /**
2554      *
2555      *
2556      * <pre>
2557      *  Assigns a name to a port number. For example: {name: "http", port: 80} This allows the system to reference ports by the assigned name instead of a port number. Named ports can also contain multiple ports. For example: [{name: "app1", port: 8080}, {name: "app1", port: 8081}, {name: "app2", port: 8082}] Named ports apply to all instances in this instance group.
2558      * </pre>
2559      *
2560      * <code>repeated .google.cloud.compute.v1.NamedPort named_ports = 427598732;</code>
2561      */
getNamedPortsOrBuilder(int index)2562     public com.google.cloud.compute.v1.NamedPortOrBuilder getNamedPortsOrBuilder(int index) {
2563       if (namedPortsBuilder_ == null) {
2564         return namedPorts_.get(index);
2565       } else {
2566         return namedPortsBuilder_.getMessageOrBuilder(index);
2567       }
2568     }
2569     /**
2570      *
2571      *
2572      * <pre>
2573      *  Assigns a name to a port number. For example: {name: "http", port: 80} This allows the system to reference ports by the assigned name instead of a port number. Named ports can also contain multiple ports. For example: [{name: "app1", port: 8080}, {name: "app1", port: 8081}, {name: "app2", port: 8082}] Named ports apply to all instances in this instance group.
2574      * </pre>
2575      *
2576      * <code>repeated .google.cloud.compute.v1.NamedPort named_ports = 427598732;</code>
2577      */
2578     public java.util.List<? extends com.google.cloud.compute.v1.NamedPortOrBuilder>
getNamedPortsOrBuilderList()2579         getNamedPortsOrBuilderList() {
2580       if (namedPortsBuilder_ != null) {
2581         return namedPortsBuilder_.getMessageOrBuilderList();
2582       } else {
2583         return java.util.Collections.unmodifiableList(namedPorts_);
2584       }
2585     }
2586     /**
2587      *
2588      *
2589      * <pre>
2590      *  Assigns a name to a port number. For example: {name: "http", port: 80} This allows the system to reference ports by the assigned name instead of a port number. Named ports can also contain multiple ports. For example: [{name: "app1", port: 8080}, {name: "app1", port: 8081}, {name: "app2", port: 8082}] Named ports apply to all instances in this instance group.
2591      * </pre>
2592      *
2593      * <code>repeated .google.cloud.compute.v1.NamedPort named_ports = 427598732;</code>
2594      */
addNamedPortsBuilder()2595     public com.google.cloud.compute.v1.NamedPort.Builder addNamedPortsBuilder() {
2596       return getNamedPortsFieldBuilder()
2597           .addBuilder(com.google.cloud.compute.v1.NamedPort.getDefaultInstance());
2598     }
2599     /**
2600      *
2601      *
2602      * <pre>
2603      *  Assigns a name to a port number. For example: {name: "http", port: 80} This allows the system to reference ports by the assigned name instead of a port number. Named ports can also contain multiple ports. For example: [{name: "app1", port: 8080}, {name: "app1", port: 8081}, {name: "app2", port: 8082}] Named ports apply to all instances in this instance group.
2604      * </pre>
2605      *
2606      * <code>repeated .google.cloud.compute.v1.NamedPort named_ports = 427598732;</code>
2607      */
addNamedPortsBuilder(int index)2608     public com.google.cloud.compute.v1.NamedPort.Builder addNamedPortsBuilder(int index) {
2609       return getNamedPortsFieldBuilder()
2610           .addBuilder(index, com.google.cloud.compute.v1.NamedPort.getDefaultInstance());
2611     }
2612     /**
2613      *
2614      *
2615      * <pre>
2616      *  Assigns a name to a port number. For example: {name: "http", port: 80} This allows the system to reference ports by the assigned name instead of a port number. Named ports can also contain multiple ports. For example: [{name: "app1", port: 8080}, {name: "app1", port: 8081}, {name: "app2", port: 8082}] Named ports apply to all instances in this instance group.
2617      * </pre>
2618      *
2619      * <code>repeated .google.cloud.compute.v1.NamedPort named_ports = 427598732;</code>
2620      */
2621     public java.util.List<com.google.cloud.compute.v1.NamedPort.Builder>
getNamedPortsBuilderList()2622         getNamedPortsBuilderList() {
2623       return getNamedPortsFieldBuilder().getBuilderList();
2624     }
2625 
2626     private com.google.protobuf.RepeatedFieldBuilderV3<
2627             com.google.cloud.compute.v1.NamedPort,
2628             com.google.cloud.compute.v1.NamedPort.Builder,
2629             com.google.cloud.compute.v1.NamedPortOrBuilder>
getNamedPortsFieldBuilder()2630         getNamedPortsFieldBuilder() {
2631       if (namedPortsBuilder_ == null) {
2632         namedPortsBuilder_ =
2633             new com.google.protobuf.RepeatedFieldBuilderV3<
2634                 com.google.cloud.compute.v1.NamedPort,
2635                 com.google.cloud.compute.v1.NamedPort.Builder,
2636                 com.google.cloud.compute.v1.NamedPortOrBuilder>(
2637                 namedPorts_, ((bitField0_ & 0x00000040) != 0), getParentForChildren(), isClean());
2638         namedPorts_ = null;
2639       }
2640       return namedPortsBuilder_;
2641     }
2642 
2643     private java.lang.Object network_ = "";
2644     /**
2645      *
2646      *
2647      * <pre>
2648      * [Output Only] The URL of the network to which all instances in the instance group belong. If your instance has multiple network interfaces, then the network and subnetwork fields only refer to the network and subnet used by your primary interface (nic0).
2649      * </pre>
2650      *
2651      * <code>optional string network = 232872494;</code>
2652      *
2653      * @return Whether the network field is set.
2654      */
hasNetwork()2655     public boolean hasNetwork() {
2656       return ((bitField0_ & 0x00000080) != 0);
2657     }
2658     /**
2659      *
2660      *
2661      * <pre>
2662      * [Output Only] The URL of the network to which all instances in the instance group belong. If your instance has multiple network interfaces, then the network and subnetwork fields only refer to the network and subnet used by your primary interface (nic0).
2663      * </pre>
2664      *
2665      * <code>optional string network = 232872494;</code>
2666      *
2667      * @return The network.
2668      */
getNetwork()2669     public java.lang.String getNetwork() {
2670       java.lang.Object ref = network_;
2671       if (!(ref instanceof java.lang.String)) {
2672         com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
2673         java.lang.String s = bs.toStringUtf8();
2674         network_ = s;
2675         return s;
2676       } else {
2677         return (java.lang.String) ref;
2678       }
2679     }
2680     /**
2681      *
2682      *
2683      * <pre>
2684      * [Output Only] The URL of the network to which all instances in the instance group belong. If your instance has multiple network interfaces, then the network and subnetwork fields only refer to the network and subnet used by your primary interface (nic0).
2685      * </pre>
2686      *
2687      * <code>optional string network = 232872494;</code>
2688      *
2689      * @return The bytes for network.
2690      */
getNetworkBytes()2691     public com.google.protobuf.ByteString getNetworkBytes() {
2692       java.lang.Object ref = network_;
2693       if (ref instanceof String) {
2694         com.google.protobuf.ByteString b =
2695             com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
2696         network_ = b;
2697         return b;
2698       } else {
2699         return (com.google.protobuf.ByteString) ref;
2700       }
2701     }
2702     /**
2703      *
2704      *
2705      * <pre>
2706      * [Output Only] The URL of the network to which all instances in the instance group belong. If your instance has multiple network interfaces, then the network and subnetwork fields only refer to the network and subnet used by your primary interface (nic0).
2707      * </pre>
2708      *
2709      * <code>optional string network = 232872494;</code>
2710      *
2711      * @param value The network to set.
2712      * @return This builder for chaining.
2713      */
setNetwork(java.lang.String value)2714     public Builder setNetwork(java.lang.String value) {
2715       if (value == null) {
2716         throw new NullPointerException();
2717       }
2718       network_ = value;
2719       bitField0_ |= 0x00000080;
2720       onChanged();
2721       return this;
2722     }
2723     /**
2724      *
2725      *
2726      * <pre>
2727      * [Output Only] The URL of the network to which all instances in the instance group belong. If your instance has multiple network interfaces, then the network and subnetwork fields only refer to the network and subnet used by your primary interface (nic0).
2728      * </pre>
2729      *
2730      * <code>optional string network = 232872494;</code>
2731      *
2732      * @return This builder for chaining.
2733      */
clearNetwork()2734     public Builder clearNetwork() {
2735       network_ = getDefaultInstance().getNetwork();
2736       bitField0_ = (bitField0_ & ~0x00000080);
2737       onChanged();
2738       return this;
2739     }
2740     /**
2741      *
2742      *
2743      * <pre>
2744      * [Output Only] The URL of the network to which all instances in the instance group belong. If your instance has multiple network interfaces, then the network and subnetwork fields only refer to the network and subnet used by your primary interface (nic0).
2745      * </pre>
2746      *
2747      * <code>optional string network = 232872494;</code>
2748      *
2749      * @param value The bytes for network to set.
2750      * @return This builder for chaining.
2751      */
setNetworkBytes(com.google.protobuf.ByteString value)2752     public Builder setNetworkBytes(com.google.protobuf.ByteString value) {
2753       if (value == null) {
2754         throw new NullPointerException();
2755       }
2756       checkByteStringIsUtf8(value);
2757       network_ = value;
2758       bitField0_ |= 0x00000080;
2759       onChanged();
2760       return this;
2761     }
2762 
2763     private java.lang.Object region_ = "";
2764     /**
2765      *
2766      *
2767      * <pre>
2768      * [Output Only] The URL of the region where the instance group is located (for regional resources).
2769      * </pre>
2770      *
2771      * <code>optional string region = 138946292;</code>
2772      *
2773      * @return Whether the region field is set.
2774      */
hasRegion()2775     public boolean hasRegion() {
2776       return ((bitField0_ & 0x00000100) != 0);
2777     }
2778     /**
2779      *
2780      *
2781      * <pre>
2782      * [Output Only] The URL of the region where the instance group is located (for regional resources).
2783      * </pre>
2784      *
2785      * <code>optional string region = 138946292;</code>
2786      *
2787      * @return The region.
2788      */
getRegion()2789     public java.lang.String getRegion() {
2790       java.lang.Object ref = region_;
2791       if (!(ref instanceof java.lang.String)) {
2792         com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
2793         java.lang.String s = bs.toStringUtf8();
2794         region_ = s;
2795         return s;
2796       } else {
2797         return (java.lang.String) ref;
2798       }
2799     }
2800     /**
2801      *
2802      *
2803      * <pre>
2804      * [Output Only] The URL of the region where the instance group is located (for regional resources).
2805      * </pre>
2806      *
2807      * <code>optional string region = 138946292;</code>
2808      *
2809      * @return The bytes for region.
2810      */
getRegionBytes()2811     public com.google.protobuf.ByteString getRegionBytes() {
2812       java.lang.Object ref = region_;
2813       if (ref instanceof String) {
2814         com.google.protobuf.ByteString b =
2815             com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
2816         region_ = b;
2817         return b;
2818       } else {
2819         return (com.google.protobuf.ByteString) ref;
2820       }
2821     }
2822     /**
2823      *
2824      *
2825      * <pre>
2826      * [Output Only] The URL of the region where the instance group is located (for regional resources).
2827      * </pre>
2828      *
2829      * <code>optional string region = 138946292;</code>
2830      *
2831      * @param value The region to set.
2832      * @return This builder for chaining.
2833      */
setRegion(java.lang.String value)2834     public Builder setRegion(java.lang.String value) {
2835       if (value == null) {
2836         throw new NullPointerException();
2837       }
2838       region_ = value;
2839       bitField0_ |= 0x00000100;
2840       onChanged();
2841       return this;
2842     }
2843     /**
2844      *
2845      *
2846      * <pre>
2847      * [Output Only] The URL of the region where the instance group is located (for regional resources).
2848      * </pre>
2849      *
2850      * <code>optional string region = 138946292;</code>
2851      *
2852      * @return This builder for chaining.
2853      */
clearRegion()2854     public Builder clearRegion() {
2855       region_ = getDefaultInstance().getRegion();
2856       bitField0_ = (bitField0_ & ~0x00000100);
2857       onChanged();
2858       return this;
2859     }
2860     /**
2861      *
2862      *
2863      * <pre>
2864      * [Output Only] The URL of the region where the instance group is located (for regional resources).
2865      * </pre>
2866      *
2867      * <code>optional string region = 138946292;</code>
2868      *
2869      * @param value The bytes for region to set.
2870      * @return This builder for chaining.
2871      */
setRegionBytes(com.google.protobuf.ByteString value)2872     public Builder setRegionBytes(com.google.protobuf.ByteString value) {
2873       if (value == null) {
2874         throw new NullPointerException();
2875       }
2876       checkByteStringIsUtf8(value);
2877       region_ = value;
2878       bitField0_ |= 0x00000100;
2879       onChanged();
2880       return this;
2881     }
2882 
2883     private java.lang.Object selfLink_ = "";
2884     /**
2885      *
2886      *
2887      * <pre>
2888      * [Output Only] The URL for this instance group. The server generates this URL.
2889      * </pre>
2890      *
2891      * <code>optional string self_link = 456214797;</code>
2892      *
2893      * @return Whether the selfLink field is set.
2894      */
hasSelfLink()2895     public boolean hasSelfLink() {
2896       return ((bitField0_ & 0x00000200) != 0);
2897     }
2898     /**
2899      *
2900      *
2901      * <pre>
2902      * [Output Only] The URL for this instance group. The server generates this URL.
2903      * </pre>
2904      *
2905      * <code>optional string self_link = 456214797;</code>
2906      *
2907      * @return The selfLink.
2908      */
getSelfLink()2909     public java.lang.String getSelfLink() {
2910       java.lang.Object ref = selfLink_;
2911       if (!(ref instanceof java.lang.String)) {
2912         com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
2913         java.lang.String s = bs.toStringUtf8();
2914         selfLink_ = s;
2915         return s;
2916       } else {
2917         return (java.lang.String) ref;
2918       }
2919     }
2920     /**
2921      *
2922      *
2923      * <pre>
2924      * [Output Only] The URL for this instance group. The server generates this URL.
2925      * </pre>
2926      *
2927      * <code>optional string self_link = 456214797;</code>
2928      *
2929      * @return The bytes for selfLink.
2930      */
getSelfLinkBytes()2931     public com.google.protobuf.ByteString getSelfLinkBytes() {
2932       java.lang.Object ref = selfLink_;
2933       if (ref instanceof String) {
2934         com.google.protobuf.ByteString b =
2935             com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
2936         selfLink_ = b;
2937         return b;
2938       } else {
2939         return (com.google.protobuf.ByteString) ref;
2940       }
2941     }
2942     /**
2943      *
2944      *
2945      * <pre>
2946      * [Output Only] The URL for this instance group. The server generates this URL.
2947      * </pre>
2948      *
2949      * <code>optional string self_link = 456214797;</code>
2950      *
2951      * @param value The selfLink to set.
2952      * @return This builder for chaining.
2953      */
setSelfLink(java.lang.String value)2954     public Builder setSelfLink(java.lang.String value) {
2955       if (value == null) {
2956         throw new NullPointerException();
2957       }
2958       selfLink_ = value;
2959       bitField0_ |= 0x00000200;
2960       onChanged();
2961       return this;
2962     }
2963     /**
2964      *
2965      *
2966      * <pre>
2967      * [Output Only] The URL for this instance group. The server generates this URL.
2968      * </pre>
2969      *
2970      * <code>optional string self_link = 456214797;</code>
2971      *
2972      * @return This builder for chaining.
2973      */
clearSelfLink()2974     public Builder clearSelfLink() {
2975       selfLink_ = getDefaultInstance().getSelfLink();
2976       bitField0_ = (bitField0_ & ~0x00000200);
2977       onChanged();
2978       return this;
2979     }
2980     /**
2981      *
2982      *
2983      * <pre>
2984      * [Output Only] The URL for this instance group. The server generates this URL.
2985      * </pre>
2986      *
2987      * <code>optional string self_link = 456214797;</code>
2988      *
2989      * @param value The bytes for selfLink to set.
2990      * @return This builder for chaining.
2991      */
setSelfLinkBytes(com.google.protobuf.ByteString value)2992     public Builder setSelfLinkBytes(com.google.protobuf.ByteString value) {
2993       if (value == null) {
2994         throw new NullPointerException();
2995       }
2996       checkByteStringIsUtf8(value);
2997       selfLink_ = value;
2998       bitField0_ |= 0x00000200;
2999       onChanged();
3000       return this;
3001     }
3002 
3003     private int size_;
3004     /**
3005      *
3006      *
3007      * <pre>
3008      * [Output Only] The total number of instances in the instance group.
3009      * </pre>
3010      *
3011      * <code>optional int32 size = 3530753;</code>
3012      *
3013      * @return Whether the size field is set.
3014      */
3015     @java.lang.Override
hasSize()3016     public boolean hasSize() {
3017       return ((bitField0_ & 0x00000400) != 0);
3018     }
3019     /**
3020      *
3021      *
3022      * <pre>
3023      * [Output Only] The total number of instances in the instance group.
3024      * </pre>
3025      *
3026      * <code>optional int32 size = 3530753;</code>
3027      *
3028      * @return The size.
3029      */
3030     @java.lang.Override
getSize()3031     public int getSize() {
3032       return size_;
3033     }
3034     /**
3035      *
3036      *
3037      * <pre>
3038      * [Output Only] The total number of instances in the instance group.
3039      * </pre>
3040      *
3041      * <code>optional int32 size = 3530753;</code>
3042      *
3043      * @param value The size to set.
3044      * @return This builder for chaining.
3045      */
setSize(int value)3046     public Builder setSize(int value) {
3047 
3048       size_ = value;
3049       bitField0_ |= 0x00000400;
3050       onChanged();
3051       return this;
3052     }
3053     /**
3054      *
3055      *
3056      * <pre>
3057      * [Output Only] The total number of instances in the instance group.
3058      * </pre>
3059      *
3060      * <code>optional int32 size = 3530753;</code>
3061      *
3062      * @return This builder for chaining.
3063      */
clearSize()3064     public Builder clearSize() {
3065       bitField0_ = (bitField0_ & ~0x00000400);
3066       size_ = 0;
3067       onChanged();
3068       return this;
3069     }
3070 
3071     private java.lang.Object subnetwork_ = "";
3072     /**
3073      *
3074      *
3075      * <pre>
3076      * [Output Only] The URL of the subnetwork to which all instances in the instance group belong. If your instance has multiple network interfaces, then the network and subnetwork fields only refer to the network and subnet used by your primary interface (nic0).
3077      * </pre>
3078      *
3079      * <code>optional string subnetwork = 307827694;</code>
3080      *
3081      * @return Whether the subnetwork field is set.
3082      */
hasSubnetwork()3083     public boolean hasSubnetwork() {
3084       return ((bitField0_ & 0x00000800) != 0);
3085     }
3086     /**
3087      *
3088      *
3089      * <pre>
3090      * [Output Only] The URL of the subnetwork to which all instances in the instance group belong. If your instance has multiple network interfaces, then the network and subnetwork fields only refer to the network and subnet used by your primary interface (nic0).
3091      * </pre>
3092      *
3093      * <code>optional string subnetwork = 307827694;</code>
3094      *
3095      * @return The subnetwork.
3096      */
getSubnetwork()3097     public java.lang.String getSubnetwork() {
3098       java.lang.Object ref = subnetwork_;
3099       if (!(ref instanceof java.lang.String)) {
3100         com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
3101         java.lang.String s = bs.toStringUtf8();
3102         subnetwork_ = s;
3103         return s;
3104       } else {
3105         return (java.lang.String) ref;
3106       }
3107     }
3108     /**
3109      *
3110      *
3111      * <pre>
3112      * [Output Only] The URL of the subnetwork to which all instances in the instance group belong. If your instance has multiple network interfaces, then the network and subnetwork fields only refer to the network and subnet used by your primary interface (nic0).
3113      * </pre>
3114      *
3115      * <code>optional string subnetwork = 307827694;</code>
3116      *
3117      * @return The bytes for subnetwork.
3118      */
getSubnetworkBytes()3119     public com.google.protobuf.ByteString getSubnetworkBytes() {
3120       java.lang.Object ref = subnetwork_;
3121       if (ref instanceof String) {
3122         com.google.protobuf.ByteString b =
3123             com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
3124         subnetwork_ = b;
3125         return b;
3126       } else {
3127         return (com.google.protobuf.ByteString) ref;
3128       }
3129     }
3130     /**
3131      *
3132      *
3133      * <pre>
3134      * [Output Only] The URL of the subnetwork to which all instances in the instance group belong. If your instance has multiple network interfaces, then the network and subnetwork fields only refer to the network and subnet used by your primary interface (nic0).
3135      * </pre>
3136      *
3137      * <code>optional string subnetwork = 307827694;</code>
3138      *
3139      * @param value The subnetwork to set.
3140      * @return This builder for chaining.
3141      */
setSubnetwork(java.lang.String value)3142     public Builder setSubnetwork(java.lang.String value) {
3143       if (value == null) {
3144         throw new NullPointerException();
3145       }
3146       subnetwork_ = value;
3147       bitField0_ |= 0x00000800;
3148       onChanged();
3149       return this;
3150     }
3151     /**
3152      *
3153      *
3154      * <pre>
3155      * [Output Only] The URL of the subnetwork to which all instances in the instance group belong. If your instance has multiple network interfaces, then the network and subnetwork fields only refer to the network and subnet used by your primary interface (nic0).
3156      * </pre>
3157      *
3158      * <code>optional string subnetwork = 307827694;</code>
3159      *
3160      * @return This builder for chaining.
3161      */
clearSubnetwork()3162     public Builder clearSubnetwork() {
3163       subnetwork_ = getDefaultInstance().getSubnetwork();
3164       bitField0_ = (bitField0_ & ~0x00000800);
3165       onChanged();
3166       return this;
3167     }
3168     /**
3169      *
3170      *
3171      * <pre>
3172      * [Output Only] The URL of the subnetwork to which all instances in the instance group belong. If your instance has multiple network interfaces, then the network and subnetwork fields only refer to the network and subnet used by your primary interface (nic0).
3173      * </pre>
3174      *
3175      * <code>optional string subnetwork = 307827694;</code>
3176      *
3177      * @param value The bytes for subnetwork to set.
3178      * @return This builder for chaining.
3179      */
setSubnetworkBytes(com.google.protobuf.ByteString value)3180     public Builder setSubnetworkBytes(com.google.protobuf.ByteString value) {
3181       if (value == null) {
3182         throw new NullPointerException();
3183       }
3184       checkByteStringIsUtf8(value);
3185       subnetwork_ = value;
3186       bitField0_ |= 0x00000800;
3187       onChanged();
3188       return this;
3189     }
3190 
3191     private java.lang.Object zone_ = "";
3192     /**
3193      *
3194      *
3195      * <pre>
3196      * [Output Only] The URL of the zone where the instance group is located (for zonal resources).
3197      * </pre>
3198      *
3199      * <code>optional string zone = 3744684;</code>
3200      *
3201      * @return Whether the zone field is set.
3202      */
hasZone()3203     public boolean hasZone() {
3204       return ((bitField0_ & 0x00001000) != 0);
3205     }
3206     /**
3207      *
3208      *
3209      * <pre>
3210      * [Output Only] The URL of the zone where the instance group is located (for zonal resources).
3211      * </pre>
3212      *
3213      * <code>optional string zone = 3744684;</code>
3214      *
3215      * @return The zone.
3216      */
getZone()3217     public java.lang.String getZone() {
3218       java.lang.Object ref = zone_;
3219       if (!(ref instanceof java.lang.String)) {
3220         com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
3221         java.lang.String s = bs.toStringUtf8();
3222         zone_ = s;
3223         return s;
3224       } else {
3225         return (java.lang.String) ref;
3226       }
3227     }
3228     /**
3229      *
3230      *
3231      * <pre>
3232      * [Output Only] The URL of the zone where the instance group is located (for zonal resources).
3233      * </pre>
3234      *
3235      * <code>optional string zone = 3744684;</code>
3236      *
3237      * @return The bytes for zone.
3238      */
getZoneBytes()3239     public com.google.protobuf.ByteString getZoneBytes() {
3240       java.lang.Object ref = zone_;
3241       if (ref instanceof String) {
3242         com.google.protobuf.ByteString b =
3243             com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
3244         zone_ = b;
3245         return b;
3246       } else {
3247         return (com.google.protobuf.ByteString) ref;
3248       }
3249     }
3250     /**
3251      *
3252      *
3253      * <pre>
3254      * [Output Only] The URL of the zone where the instance group is located (for zonal resources).
3255      * </pre>
3256      *
3257      * <code>optional string zone = 3744684;</code>
3258      *
3259      * @param value The zone to set.
3260      * @return This builder for chaining.
3261      */
setZone(java.lang.String value)3262     public Builder setZone(java.lang.String value) {
3263       if (value == null) {
3264         throw new NullPointerException();
3265       }
3266       zone_ = value;
3267       bitField0_ |= 0x00001000;
3268       onChanged();
3269       return this;
3270     }
3271     /**
3272      *
3273      *
3274      * <pre>
3275      * [Output Only] The URL of the zone where the instance group is located (for zonal resources).
3276      * </pre>
3277      *
3278      * <code>optional string zone = 3744684;</code>
3279      *
3280      * @return This builder for chaining.
3281      */
clearZone()3282     public Builder clearZone() {
3283       zone_ = getDefaultInstance().getZone();
3284       bitField0_ = (bitField0_ & ~0x00001000);
3285       onChanged();
3286       return this;
3287     }
3288     /**
3289      *
3290      *
3291      * <pre>
3292      * [Output Only] The URL of the zone where the instance group is located (for zonal resources).
3293      * </pre>
3294      *
3295      * <code>optional string zone = 3744684;</code>
3296      *
3297      * @param value The bytes for zone to set.
3298      * @return This builder for chaining.
3299      */
setZoneBytes(com.google.protobuf.ByteString value)3300     public Builder setZoneBytes(com.google.protobuf.ByteString value) {
3301       if (value == null) {
3302         throw new NullPointerException();
3303       }
3304       checkByteStringIsUtf8(value);
3305       zone_ = value;
3306       bitField0_ |= 0x00001000;
3307       onChanged();
3308       return this;
3309     }
3310 
3311     @java.lang.Override
setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields)3312     public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) {
3313       return super.setUnknownFields(unknownFields);
3314     }
3315 
3316     @java.lang.Override
mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields)3317     public final Builder mergeUnknownFields(
3318         final com.google.protobuf.UnknownFieldSet unknownFields) {
3319       return super.mergeUnknownFields(unknownFields);
3320     }
3321 
3322     // @@protoc_insertion_point(builder_scope:google.cloud.compute.v1.InstanceGroup)
3323   }
3324 
3325   // @@protoc_insertion_point(class_scope:google.cloud.compute.v1.InstanceGroup)
3326   private static final com.google.cloud.compute.v1.InstanceGroup DEFAULT_INSTANCE;
3327 
3328   static {
3329     DEFAULT_INSTANCE = new com.google.cloud.compute.v1.InstanceGroup();
3330   }
3331 
getDefaultInstance()3332   public static com.google.cloud.compute.v1.InstanceGroup getDefaultInstance() {
3333     return DEFAULT_INSTANCE;
3334   }
3335 
3336   private static final com.google.protobuf.Parser<InstanceGroup> PARSER =
3337       new com.google.protobuf.AbstractParser<InstanceGroup>() {
3338         @java.lang.Override
3339         public InstanceGroup parsePartialFrom(
3340             com.google.protobuf.CodedInputStream input,
3341             com.google.protobuf.ExtensionRegistryLite extensionRegistry)
3342             throws com.google.protobuf.InvalidProtocolBufferException {
3343           Builder builder = newBuilder();
3344           try {
3345             builder.mergeFrom(input, extensionRegistry);
3346           } catch (com.google.protobuf.InvalidProtocolBufferException e) {
3347             throw e.setUnfinishedMessage(builder.buildPartial());
3348           } catch (com.google.protobuf.UninitializedMessageException e) {
3349             throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
3350           } catch (java.io.IOException e) {
3351             throw new com.google.protobuf.InvalidProtocolBufferException(e)
3352                 .setUnfinishedMessage(builder.buildPartial());
3353           }
3354           return builder.buildPartial();
3355         }
3356       };
3357 
parser()3358   public static com.google.protobuf.Parser<InstanceGroup> parser() {
3359     return PARSER;
3360   }
3361 
3362   @java.lang.Override
getParserForType()3363   public com.google.protobuf.Parser<InstanceGroup> getParserForType() {
3364     return PARSER;
3365   }
3366 
3367   @java.lang.Override
getDefaultInstanceForType()3368   public com.google.cloud.compute.v1.InstanceGroup getDefaultInstanceForType() {
3369     return DEFAULT_INSTANCE;
3370   }
3371 }
3372