• 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  * An alias IP range attached to an instance's network interface.
26  * </pre>
27  *
28  * Protobuf type {@code google.cloud.compute.v1.AliasIpRange}
29  */
30 public final class AliasIpRange extends com.google.protobuf.GeneratedMessageV3
31     implements
32     // @@protoc_insertion_point(message_implements:google.cloud.compute.v1.AliasIpRange)
33     AliasIpRangeOrBuilder {
34   private static final long serialVersionUID = 0L;
35   // Use AliasIpRange.newBuilder() to construct.
AliasIpRange(com.google.protobuf.GeneratedMessageV3.Builder<?> builder)36   private AliasIpRange(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {
37     super(builder);
38   }
39 
AliasIpRange()40   private AliasIpRange() {
41     ipCidrRange_ = "";
42     subnetworkRangeName_ = "";
43   }
44 
45   @java.lang.Override
46   @SuppressWarnings({"unused"})
newInstance(UnusedPrivateParameter unused)47   protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
48     return new AliasIpRange();
49   }
50 
51   @java.lang.Override
getUnknownFields()52   public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
53     return this.unknownFields;
54   }
55 
getDescriptor()56   public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
57     return com.google.cloud.compute.v1.Compute
58         .internal_static_google_cloud_compute_v1_AliasIpRange_descriptor;
59   }
60 
61   @java.lang.Override
62   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable()63       internalGetFieldAccessorTable() {
64     return com.google.cloud.compute.v1.Compute
65         .internal_static_google_cloud_compute_v1_AliasIpRange_fieldAccessorTable
66         .ensureFieldAccessorsInitialized(
67             com.google.cloud.compute.v1.AliasIpRange.class,
68             com.google.cloud.compute.v1.AliasIpRange.Builder.class);
69   }
70 
71   private int bitField0_;
72   public static final int IP_CIDR_RANGE_FIELD_NUMBER = 98117322;
73 
74   @SuppressWarnings("serial")
75   private volatile java.lang.Object ipCidrRange_ = "";
76   /**
77    *
78    *
79    * <pre>
80    * The IP alias ranges to allocate for this interface. This IP CIDR range must belong to the specified subnetwork and cannot contain IP addresses reserved by system or used by other network interfaces. This range may be a single IP address (such as 10.2.3.4), a netmask (such as /24) or a CIDR-formatted string (such as 10.1.2.0/24).
81    * </pre>
82    *
83    * <code>optional string ip_cidr_range = 98117322;</code>
84    *
85    * @return Whether the ipCidrRange field is set.
86    */
87   @java.lang.Override
hasIpCidrRange()88   public boolean hasIpCidrRange() {
89     return ((bitField0_ & 0x00000001) != 0);
90   }
91   /**
92    *
93    *
94    * <pre>
95    * The IP alias ranges to allocate for this interface. This IP CIDR range must belong to the specified subnetwork and cannot contain IP addresses reserved by system or used by other network interfaces. This range may be a single IP address (such as 10.2.3.4), a netmask (such as /24) or a CIDR-formatted string (such as 10.1.2.0/24).
96    * </pre>
97    *
98    * <code>optional string ip_cidr_range = 98117322;</code>
99    *
100    * @return The ipCidrRange.
101    */
102   @java.lang.Override
getIpCidrRange()103   public java.lang.String getIpCidrRange() {
104     java.lang.Object ref = ipCidrRange_;
105     if (ref instanceof java.lang.String) {
106       return (java.lang.String) ref;
107     } else {
108       com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
109       java.lang.String s = bs.toStringUtf8();
110       ipCidrRange_ = s;
111       return s;
112     }
113   }
114   /**
115    *
116    *
117    * <pre>
118    * The IP alias ranges to allocate for this interface. This IP CIDR range must belong to the specified subnetwork and cannot contain IP addresses reserved by system or used by other network interfaces. This range may be a single IP address (such as 10.2.3.4), a netmask (such as /24) or a CIDR-formatted string (such as 10.1.2.0/24).
119    * </pre>
120    *
121    * <code>optional string ip_cidr_range = 98117322;</code>
122    *
123    * @return The bytes for ipCidrRange.
124    */
125   @java.lang.Override
getIpCidrRangeBytes()126   public com.google.protobuf.ByteString getIpCidrRangeBytes() {
127     java.lang.Object ref = ipCidrRange_;
128     if (ref instanceof java.lang.String) {
129       com.google.protobuf.ByteString b =
130           com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
131       ipCidrRange_ = b;
132       return b;
133     } else {
134       return (com.google.protobuf.ByteString) ref;
135     }
136   }
137 
138   public static final int SUBNETWORK_RANGE_NAME_FIELD_NUMBER = 387995966;
139 
140   @SuppressWarnings("serial")
141   private volatile java.lang.Object subnetworkRangeName_ = "";
142   /**
143    *
144    *
145    * <pre>
146    * The name of a subnetwork secondary IP range from which to allocate an IP alias range. If not specified, the primary range of the subnetwork is used.
147    * </pre>
148    *
149    * <code>optional string subnetwork_range_name = 387995966;</code>
150    *
151    * @return Whether the subnetworkRangeName field is set.
152    */
153   @java.lang.Override
hasSubnetworkRangeName()154   public boolean hasSubnetworkRangeName() {
155     return ((bitField0_ & 0x00000002) != 0);
156   }
157   /**
158    *
159    *
160    * <pre>
161    * The name of a subnetwork secondary IP range from which to allocate an IP alias range. If not specified, the primary range of the subnetwork is used.
162    * </pre>
163    *
164    * <code>optional string subnetwork_range_name = 387995966;</code>
165    *
166    * @return The subnetworkRangeName.
167    */
168   @java.lang.Override
getSubnetworkRangeName()169   public java.lang.String getSubnetworkRangeName() {
170     java.lang.Object ref = subnetworkRangeName_;
171     if (ref instanceof java.lang.String) {
172       return (java.lang.String) ref;
173     } else {
174       com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
175       java.lang.String s = bs.toStringUtf8();
176       subnetworkRangeName_ = s;
177       return s;
178     }
179   }
180   /**
181    *
182    *
183    * <pre>
184    * The name of a subnetwork secondary IP range from which to allocate an IP alias range. If not specified, the primary range of the subnetwork is used.
185    * </pre>
186    *
187    * <code>optional string subnetwork_range_name = 387995966;</code>
188    *
189    * @return The bytes for subnetworkRangeName.
190    */
191   @java.lang.Override
getSubnetworkRangeNameBytes()192   public com.google.protobuf.ByteString getSubnetworkRangeNameBytes() {
193     java.lang.Object ref = subnetworkRangeName_;
194     if (ref instanceof java.lang.String) {
195       com.google.protobuf.ByteString b =
196           com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
197       subnetworkRangeName_ = b;
198       return b;
199     } else {
200       return (com.google.protobuf.ByteString) ref;
201     }
202   }
203 
204   private byte memoizedIsInitialized = -1;
205 
206   @java.lang.Override
isInitialized()207   public final boolean isInitialized() {
208     byte isInitialized = memoizedIsInitialized;
209     if (isInitialized == 1) return true;
210     if (isInitialized == 0) return false;
211 
212     memoizedIsInitialized = 1;
213     return true;
214   }
215 
216   @java.lang.Override
writeTo(com.google.protobuf.CodedOutputStream output)217   public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
218     if (((bitField0_ & 0x00000001) != 0)) {
219       com.google.protobuf.GeneratedMessageV3.writeString(output, 98117322, ipCidrRange_);
220     }
221     if (((bitField0_ & 0x00000002) != 0)) {
222       com.google.protobuf.GeneratedMessageV3.writeString(output, 387995966, subnetworkRangeName_);
223     }
224     getUnknownFields().writeTo(output);
225   }
226 
227   @java.lang.Override
getSerializedSize()228   public int getSerializedSize() {
229     int size = memoizedSize;
230     if (size != -1) return size;
231 
232     size = 0;
233     if (((bitField0_ & 0x00000001) != 0)) {
234       size += com.google.protobuf.GeneratedMessageV3.computeStringSize(98117322, ipCidrRange_);
235     }
236     if (((bitField0_ & 0x00000002) != 0)) {
237       size +=
238           com.google.protobuf.GeneratedMessageV3.computeStringSize(387995966, subnetworkRangeName_);
239     }
240     size += getUnknownFields().getSerializedSize();
241     memoizedSize = size;
242     return size;
243   }
244 
245   @java.lang.Override
equals(final java.lang.Object obj)246   public boolean equals(final java.lang.Object obj) {
247     if (obj == this) {
248       return true;
249     }
250     if (!(obj instanceof com.google.cloud.compute.v1.AliasIpRange)) {
251       return super.equals(obj);
252     }
253     com.google.cloud.compute.v1.AliasIpRange other = (com.google.cloud.compute.v1.AliasIpRange) obj;
254 
255     if (hasIpCidrRange() != other.hasIpCidrRange()) return false;
256     if (hasIpCidrRange()) {
257       if (!getIpCidrRange().equals(other.getIpCidrRange())) return false;
258     }
259     if (hasSubnetworkRangeName() != other.hasSubnetworkRangeName()) return false;
260     if (hasSubnetworkRangeName()) {
261       if (!getSubnetworkRangeName().equals(other.getSubnetworkRangeName())) return false;
262     }
263     if (!getUnknownFields().equals(other.getUnknownFields())) return false;
264     return true;
265   }
266 
267   @java.lang.Override
hashCode()268   public int hashCode() {
269     if (memoizedHashCode != 0) {
270       return memoizedHashCode;
271     }
272     int hash = 41;
273     hash = (19 * hash) + getDescriptor().hashCode();
274     if (hasIpCidrRange()) {
275       hash = (37 * hash) + IP_CIDR_RANGE_FIELD_NUMBER;
276       hash = (53 * hash) + getIpCidrRange().hashCode();
277     }
278     if (hasSubnetworkRangeName()) {
279       hash = (37 * hash) + SUBNETWORK_RANGE_NAME_FIELD_NUMBER;
280       hash = (53 * hash) + getSubnetworkRangeName().hashCode();
281     }
282     hash = (29 * hash) + getUnknownFields().hashCode();
283     memoizedHashCode = hash;
284     return hash;
285   }
286 
parseFrom(java.nio.ByteBuffer data)287   public static com.google.cloud.compute.v1.AliasIpRange parseFrom(java.nio.ByteBuffer data)
288       throws com.google.protobuf.InvalidProtocolBufferException {
289     return PARSER.parseFrom(data);
290   }
291 
parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)292   public static com.google.cloud.compute.v1.AliasIpRange parseFrom(
293       java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
294       throws com.google.protobuf.InvalidProtocolBufferException {
295     return PARSER.parseFrom(data, extensionRegistry);
296   }
297 
parseFrom( com.google.protobuf.ByteString data)298   public static com.google.cloud.compute.v1.AliasIpRange parseFrom(
299       com.google.protobuf.ByteString data)
300       throws com.google.protobuf.InvalidProtocolBufferException {
301     return PARSER.parseFrom(data);
302   }
303 
parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)304   public static com.google.cloud.compute.v1.AliasIpRange parseFrom(
305       com.google.protobuf.ByteString data,
306       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
307       throws com.google.protobuf.InvalidProtocolBufferException {
308     return PARSER.parseFrom(data, extensionRegistry);
309   }
310 
parseFrom(byte[] data)311   public static com.google.cloud.compute.v1.AliasIpRange parseFrom(byte[] data)
312       throws com.google.protobuf.InvalidProtocolBufferException {
313     return PARSER.parseFrom(data);
314   }
315 
parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)316   public static com.google.cloud.compute.v1.AliasIpRange parseFrom(
317       byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
318       throws com.google.protobuf.InvalidProtocolBufferException {
319     return PARSER.parseFrom(data, extensionRegistry);
320   }
321 
parseFrom(java.io.InputStream input)322   public static com.google.cloud.compute.v1.AliasIpRange parseFrom(java.io.InputStream input)
323       throws java.io.IOException {
324     return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
325   }
326 
parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)327   public static com.google.cloud.compute.v1.AliasIpRange parseFrom(
328       java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
329       throws java.io.IOException {
330     return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
331         PARSER, input, extensionRegistry);
332   }
333 
parseDelimitedFrom( java.io.InputStream input)334   public static com.google.cloud.compute.v1.AliasIpRange parseDelimitedFrom(
335       java.io.InputStream input) throws java.io.IOException {
336     return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
337   }
338 
parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)339   public static com.google.cloud.compute.v1.AliasIpRange parseDelimitedFrom(
340       java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
341       throws java.io.IOException {
342     return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
343         PARSER, input, extensionRegistry);
344   }
345 
parseFrom( com.google.protobuf.CodedInputStream input)346   public static com.google.cloud.compute.v1.AliasIpRange parseFrom(
347       com.google.protobuf.CodedInputStream input) throws java.io.IOException {
348     return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
349   }
350 
parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)351   public static com.google.cloud.compute.v1.AliasIpRange parseFrom(
352       com.google.protobuf.CodedInputStream input,
353       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
354       throws java.io.IOException {
355     return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
356         PARSER, input, extensionRegistry);
357   }
358 
359   @java.lang.Override
newBuilderForType()360   public Builder newBuilderForType() {
361     return newBuilder();
362   }
363 
newBuilder()364   public static Builder newBuilder() {
365     return DEFAULT_INSTANCE.toBuilder();
366   }
367 
newBuilder(com.google.cloud.compute.v1.AliasIpRange prototype)368   public static Builder newBuilder(com.google.cloud.compute.v1.AliasIpRange prototype) {
369     return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
370   }
371 
372   @java.lang.Override
toBuilder()373   public Builder toBuilder() {
374     return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
375   }
376 
377   @java.lang.Override
newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)378   protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
379     Builder builder = new Builder(parent);
380     return builder;
381   }
382   /**
383    *
384    *
385    * <pre>
386    * An alias IP range attached to an instance's network interface.
387    * </pre>
388    *
389    * Protobuf type {@code google.cloud.compute.v1.AliasIpRange}
390    */
391   public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder<Builder>
392       implements
393       // @@protoc_insertion_point(builder_implements:google.cloud.compute.v1.AliasIpRange)
394       com.google.cloud.compute.v1.AliasIpRangeOrBuilder {
getDescriptor()395     public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
396       return com.google.cloud.compute.v1.Compute
397           .internal_static_google_cloud_compute_v1_AliasIpRange_descriptor;
398     }
399 
400     @java.lang.Override
401     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable()402         internalGetFieldAccessorTable() {
403       return com.google.cloud.compute.v1.Compute
404           .internal_static_google_cloud_compute_v1_AliasIpRange_fieldAccessorTable
405           .ensureFieldAccessorsInitialized(
406               com.google.cloud.compute.v1.AliasIpRange.class,
407               com.google.cloud.compute.v1.AliasIpRange.Builder.class);
408     }
409 
410     // Construct using com.google.cloud.compute.v1.AliasIpRange.newBuilder()
Builder()411     private Builder() {}
412 
Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)413     private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
414       super(parent);
415     }
416 
417     @java.lang.Override
clear()418     public Builder clear() {
419       super.clear();
420       bitField0_ = 0;
421       ipCidrRange_ = "";
422       subnetworkRangeName_ = "";
423       return this;
424     }
425 
426     @java.lang.Override
getDescriptorForType()427     public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
428       return com.google.cloud.compute.v1.Compute
429           .internal_static_google_cloud_compute_v1_AliasIpRange_descriptor;
430     }
431 
432     @java.lang.Override
getDefaultInstanceForType()433     public com.google.cloud.compute.v1.AliasIpRange getDefaultInstanceForType() {
434       return com.google.cloud.compute.v1.AliasIpRange.getDefaultInstance();
435     }
436 
437     @java.lang.Override
build()438     public com.google.cloud.compute.v1.AliasIpRange build() {
439       com.google.cloud.compute.v1.AliasIpRange result = buildPartial();
440       if (!result.isInitialized()) {
441         throw newUninitializedMessageException(result);
442       }
443       return result;
444     }
445 
446     @java.lang.Override
buildPartial()447     public com.google.cloud.compute.v1.AliasIpRange buildPartial() {
448       com.google.cloud.compute.v1.AliasIpRange result =
449           new com.google.cloud.compute.v1.AliasIpRange(this);
450       if (bitField0_ != 0) {
451         buildPartial0(result);
452       }
453       onBuilt();
454       return result;
455     }
456 
buildPartial0(com.google.cloud.compute.v1.AliasIpRange result)457     private void buildPartial0(com.google.cloud.compute.v1.AliasIpRange result) {
458       int from_bitField0_ = bitField0_;
459       int to_bitField0_ = 0;
460       if (((from_bitField0_ & 0x00000001) != 0)) {
461         result.ipCidrRange_ = ipCidrRange_;
462         to_bitField0_ |= 0x00000001;
463       }
464       if (((from_bitField0_ & 0x00000002) != 0)) {
465         result.subnetworkRangeName_ = subnetworkRangeName_;
466         to_bitField0_ |= 0x00000002;
467       }
468       result.bitField0_ |= to_bitField0_;
469     }
470 
471     @java.lang.Override
clone()472     public Builder clone() {
473       return super.clone();
474     }
475 
476     @java.lang.Override
setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)477     public Builder setField(
478         com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
479       return super.setField(field, value);
480     }
481 
482     @java.lang.Override
clearField(com.google.protobuf.Descriptors.FieldDescriptor field)483     public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
484       return super.clearField(field);
485     }
486 
487     @java.lang.Override
clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)488     public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
489       return super.clearOneof(oneof);
490     }
491 
492     @java.lang.Override
setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value)493     public Builder setRepeatedField(
494         com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
495       return super.setRepeatedField(field, index, value);
496     }
497 
498     @java.lang.Override
addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)499     public Builder addRepeatedField(
500         com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
501       return super.addRepeatedField(field, value);
502     }
503 
504     @java.lang.Override
mergeFrom(com.google.protobuf.Message other)505     public Builder mergeFrom(com.google.protobuf.Message other) {
506       if (other instanceof com.google.cloud.compute.v1.AliasIpRange) {
507         return mergeFrom((com.google.cloud.compute.v1.AliasIpRange) other);
508       } else {
509         super.mergeFrom(other);
510         return this;
511       }
512     }
513 
mergeFrom(com.google.cloud.compute.v1.AliasIpRange other)514     public Builder mergeFrom(com.google.cloud.compute.v1.AliasIpRange other) {
515       if (other == com.google.cloud.compute.v1.AliasIpRange.getDefaultInstance()) return this;
516       if (other.hasIpCidrRange()) {
517         ipCidrRange_ = other.ipCidrRange_;
518         bitField0_ |= 0x00000001;
519         onChanged();
520       }
521       if (other.hasSubnetworkRangeName()) {
522         subnetworkRangeName_ = other.subnetworkRangeName_;
523         bitField0_ |= 0x00000002;
524         onChanged();
525       }
526       this.mergeUnknownFields(other.getUnknownFields());
527       onChanged();
528       return this;
529     }
530 
531     @java.lang.Override
isInitialized()532     public final boolean isInitialized() {
533       return true;
534     }
535 
536     @java.lang.Override
mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)537     public Builder mergeFrom(
538         com.google.protobuf.CodedInputStream input,
539         com.google.protobuf.ExtensionRegistryLite extensionRegistry)
540         throws java.io.IOException {
541       if (extensionRegistry == null) {
542         throw new java.lang.NullPointerException();
543       }
544       try {
545         boolean done = false;
546         while (!done) {
547           int tag = input.readTag();
548           switch (tag) {
549             case 0:
550               done = true;
551               break;
552             case 784938578:
553               {
554                 ipCidrRange_ = input.readStringRequireUtf8();
555                 bitField0_ |= 0x00000001;
556                 break;
557               } // case 784938578
558             case -1190999566:
559               {
560                 subnetworkRangeName_ = input.readStringRequireUtf8();
561                 bitField0_ |= 0x00000002;
562                 break;
563               } // case -1190999566
564             default:
565               {
566                 if (!super.parseUnknownField(input, extensionRegistry, tag)) {
567                   done = true; // was an endgroup tag
568                 }
569                 break;
570               } // default:
571           } // switch (tag)
572         } // while (!done)
573       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
574         throw e.unwrapIOException();
575       } finally {
576         onChanged();
577       } // finally
578       return this;
579     }
580 
581     private int bitField0_;
582 
583     private java.lang.Object ipCidrRange_ = "";
584     /**
585      *
586      *
587      * <pre>
588      * The IP alias ranges to allocate for this interface. This IP CIDR range must belong to the specified subnetwork and cannot contain IP addresses reserved by system or used by other network interfaces. This range may be a single IP address (such as 10.2.3.4), a netmask (such as /24) or a CIDR-formatted string (such as 10.1.2.0/24).
589      * </pre>
590      *
591      * <code>optional string ip_cidr_range = 98117322;</code>
592      *
593      * @return Whether the ipCidrRange field is set.
594      */
hasIpCidrRange()595     public boolean hasIpCidrRange() {
596       return ((bitField0_ & 0x00000001) != 0);
597     }
598     /**
599      *
600      *
601      * <pre>
602      * The IP alias ranges to allocate for this interface. This IP CIDR range must belong to the specified subnetwork and cannot contain IP addresses reserved by system or used by other network interfaces. This range may be a single IP address (such as 10.2.3.4), a netmask (such as /24) or a CIDR-formatted string (such as 10.1.2.0/24).
603      * </pre>
604      *
605      * <code>optional string ip_cidr_range = 98117322;</code>
606      *
607      * @return The ipCidrRange.
608      */
getIpCidrRange()609     public java.lang.String getIpCidrRange() {
610       java.lang.Object ref = ipCidrRange_;
611       if (!(ref instanceof java.lang.String)) {
612         com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
613         java.lang.String s = bs.toStringUtf8();
614         ipCidrRange_ = s;
615         return s;
616       } else {
617         return (java.lang.String) ref;
618       }
619     }
620     /**
621      *
622      *
623      * <pre>
624      * The IP alias ranges to allocate for this interface. This IP CIDR range must belong to the specified subnetwork and cannot contain IP addresses reserved by system or used by other network interfaces. This range may be a single IP address (such as 10.2.3.4), a netmask (such as /24) or a CIDR-formatted string (such as 10.1.2.0/24).
625      * </pre>
626      *
627      * <code>optional string ip_cidr_range = 98117322;</code>
628      *
629      * @return The bytes for ipCidrRange.
630      */
getIpCidrRangeBytes()631     public com.google.protobuf.ByteString getIpCidrRangeBytes() {
632       java.lang.Object ref = ipCidrRange_;
633       if (ref instanceof String) {
634         com.google.protobuf.ByteString b =
635             com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
636         ipCidrRange_ = b;
637         return b;
638       } else {
639         return (com.google.protobuf.ByteString) ref;
640       }
641     }
642     /**
643      *
644      *
645      * <pre>
646      * The IP alias ranges to allocate for this interface. This IP CIDR range must belong to the specified subnetwork and cannot contain IP addresses reserved by system or used by other network interfaces. This range may be a single IP address (such as 10.2.3.4), a netmask (such as /24) or a CIDR-formatted string (such as 10.1.2.0/24).
647      * </pre>
648      *
649      * <code>optional string ip_cidr_range = 98117322;</code>
650      *
651      * @param value The ipCidrRange to set.
652      * @return This builder for chaining.
653      */
setIpCidrRange(java.lang.String value)654     public Builder setIpCidrRange(java.lang.String value) {
655       if (value == null) {
656         throw new NullPointerException();
657       }
658       ipCidrRange_ = value;
659       bitField0_ |= 0x00000001;
660       onChanged();
661       return this;
662     }
663     /**
664      *
665      *
666      * <pre>
667      * The IP alias ranges to allocate for this interface. This IP CIDR range must belong to the specified subnetwork and cannot contain IP addresses reserved by system or used by other network interfaces. This range may be a single IP address (such as 10.2.3.4), a netmask (such as /24) or a CIDR-formatted string (such as 10.1.2.0/24).
668      * </pre>
669      *
670      * <code>optional string ip_cidr_range = 98117322;</code>
671      *
672      * @return This builder for chaining.
673      */
clearIpCidrRange()674     public Builder clearIpCidrRange() {
675       ipCidrRange_ = getDefaultInstance().getIpCidrRange();
676       bitField0_ = (bitField0_ & ~0x00000001);
677       onChanged();
678       return this;
679     }
680     /**
681      *
682      *
683      * <pre>
684      * The IP alias ranges to allocate for this interface. This IP CIDR range must belong to the specified subnetwork and cannot contain IP addresses reserved by system or used by other network interfaces. This range may be a single IP address (such as 10.2.3.4), a netmask (such as /24) or a CIDR-formatted string (such as 10.1.2.0/24).
685      * </pre>
686      *
687      * <code>optional string ip_cidr_range = 98117322;</code>
688      *
689      * @param value The bytes for ipCidrRange to set.
690      * @return This builder for chaining.
691      */
setIpCidrRangeBytes(com.google.protobuf.ByteString value)692     public Builder setIpCidrRangeBytes(com.google.protobuf.ByteString value) {
693       if (value == null) {
694         throw new NullPointerException();
695       }
696       checkByteStringIsUtf8(value);
697       ipCidrRange_ = value;
698       bitField0_ |= 0x00000001;
699       onChanged();
700       return this;
701     }
702 
703     private java.lang.Object subnetworkRangeName_ = "";
704     /**
705      *
706      *
707      * <pre>
708      * The name of a subnetwork secondary IP range from which to allocate an IP alias range. If not specified, the primary range of the subnetwork is used.
709      * </pre>
710      *
711      * <code>optional string subnetwork_range_name = 387995966;</code>
712      *
713      * @return Whether the subnetworkRangeName field is set.
714      */
hasSubnetworkRangeName()715     public boolean hasSubnetworkRangeName() {
716       return ((bitField0_ & 0x00000002) != 0);
717     }
718     /**
719      *
720      *
721      * <pre>
722      * The name of a subnetwork secondary IP range from which to allocate an IP alias range. If not specified, the primary range of the subnetwork is used.
723      * </pre>
724      *
725      * <code>optional string subnetwork_range_name = 387995966;</code>
726      *
727      * @return The subnetworkRangeName.
728      */
getSubnetworkRangeName()729     public java.lang.String getSubnetworkRangeName() {
730       java.lang.Object ref = subnetworkRangeName_;
731       if (!(ref instanceof java.lang.String)) {
732         com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
733         java.lang.String s = bs.toStringUtf8();
734         subnetworkRangeName_ = s;
735         return s;
736       } else {
737         return (java.lang.String) ref;
738       }
739     }
740     /**
741      *
742      *
743      * <pre>
744      * The name of a subnetwork secondary IP range from which to allocate an IP alias range. If not specified, the primary range of the subnetwork is used.
745      * </pre>
746      *
747      * <code>optional string subnetwork_range_name = 387995966;</code>
748      *
749      * @return The bytes for subnetworkRangeName.
750      */
getSubnetworkRangeNameBytes()751     public com.google.protobuf.ByteString getSubnetworkRangeNameBytes() {
752       java.lang.Object ref = subnetworkRangeName_;
753       if (ref instanceof String) {
754         com.google.protobuf.ByteString b =
755             com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
756         subnetworkRangeName_ = b;
757         return b;
758       } else {
759         return (com.google.protobuf.ByteString) ref;
760       }
761     }
762     /**
763      *
764      *
765      * <pre>
766      * The name of a subnetwork secondary IP range from which to allocate an IP alias range. If not specified, the primary range of the subnetwork is used.
767      * </pre>
768      *
769      * <code>optional string subnetwork_range_name = 387995966;</code>
770      *
771      * @param value The subnetworkRangeName to set.
772      * @return This builder for chaining.
773      */
setSubnetworkRangeName(java.lang.String value)774     public Builder setSubnetworkRangeName(java.lang.String value) {
775       if (value == null) {
776         throw new NullPointerException();
777       }
778       subnetworkRangeName_ = value;
779       bitField0_ |= 0x00000002;
780       onChanged();
781       return this;
782     }
783     /**
784      *
785      *
786      * <pre>
787      * The name of a subnetwork secondary IP range from which to allocate an IP alias range. If not specified, the primary range of the subnetwork is used.
788      * </pre>
789      *
790      * <code>optional string subnetwork_range_name = 387995966;</code>
791      *
792      * @return This builder for chaining.
793      */
clearSubnetworkRangeName()794     public Builder clearSubnetworkRangeName() {
795       subnetworkRangeName_ = getDefaultInstance().getSubnetworkRangeName();
796       bitField0_ = (bitField0_ & ~0x00000002);
797       onChanged();
798       return this;
799     }
800     /**
801      *
802      *
803      * <pre>
804      * The name of a subnetwork secondary IP range from which to allocate an IP alias range. If not specified, the primary range of the subnetwork is used.
805      * </pre>
806      *
807      * <code>optional string subnetwork_range_name = 387995966;</code>
808      *
809      * @param value The bytes for subnetworkRangeName to set.
810      * @return This builder for chaining.
811      */
setSubnetworkRangeNameBytes(com.google.protobuf.ByteString value)812     public Builder setSubnetworkRangeNameBytes(com.google.protobuf.ByteString value) {
813       if (value == null) {
814         throw new NullPointerException();
815       }
816       checkByteStringIsUtf8(value);
817       subnetworkRangeName_ = value;
818       bitField0_ |= 0x00000002;
819       onChanged();
820       return this;
821     }
822 
823     @java.lang.Override
setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields)824     public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) {
825       return super.setUnknownFields(unknownFields);
826     }
827 
828     @java.lang.Override
mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields)829     public final Builder mergeUnknownFields(
830         final com.google.protobuf.UnknownFieldSet unknownFields) {
831       return super.mergeUnknownFields(unknownFields);
832     }
833 
834     // @@protoc_insertion_point(builder_scope:google.cloud.compute.v1.AliasIpRange)
835   }
836 
837   // @@protoc_insertion_point(class_scope:google.cloud.compute.v1.AliasIpRange)
838   private static final com.google.cloud.compute.v1.AliasIpRange DEFAULT_INSTANCE;
839 
840   static {
841     DEFAULT_INSTANCE = new com.google.cloud.compute.v1.AliasIpRange();
842   }
843 
getDefaultInstance()844   public static com.google.cloud.compute.v1.AliasIpRange getDefaultInstance() {
845     return DEFAULT_INSTANCE;
846   }
847 
848   private static final com.google.protobuf.Parser<AliasIpRange> PARSER =
849       new com.google.protobuf.AbstractParser<AliasIpRange>() {
850         @java.lang.Override
851         public AliasIpRange parsePartialFrom(
852             com.google.protobuf.CodedInputStream input,
853             com.google.protobuf.ExtensionRegistryLite extensionRegistry)
854             throws com.google.protobuf.InvalidProtocolBufferException {
855           Builder builder = newBuilder();
856           try {
857             builder.mergeFrom(input, extensionRegistry);
858           } catch (com.google.protobuf.InvalidProtocolBufferException e) {
859             throw e.setUnfinishedMessage(builder.buildPartial());
860           } catch (com.google.protobuf.UninitializedMessageException e) {
861             throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
862           } catch (java.io.IOException e) {
863             throw new com.google.protobuf.InvalidProtocolBufferException(e)
864                 .setUnfinishedMessage(builder.buildPartial());
865           }
866           return builder.buildPartial();
867         }
868       };
869 
parser()870   public static com.google.protobuf.Parser<AliasIpRange> parser() {
871     return PARSER;
872   }
873 
874   @java.lang.Override
getParserForType()875   public com.google.protobuf.Parser<AliasIpRange> getParserForType() {
876     return PARSER;
877   }
878 
879   @java.lang.Override
getDefaultInstanceForType()880   public com.google.cloud.compute.v1.AliasIpRange getDefaultInstanceForType() {
881     return DEFAULT_INSTANCE;
882   }
883 }
884