• 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 access configuration attached to an instance's network interface. Only one access config per instance is supported.
26  * </pre>
27  *
28  * Protobuf type {@code google.cloud.compute.v1.AccessConfig}
29  */
30 public final class AccessConfig extends com.google.protobuf.GeneratedMessageV3
31     implements
32     // @@protoc_insertion_point(message_implements:google.cloud.compute.v1.AccessConfig)
33     AccessConfigOrBuilder {
34   private static final long serialVersionUID = 0L;
35   // Use AccessConfig.newBuilder() to construct.
AccessConfig(com.google.protobuf.GeneratedMessageV3.Builder<?> builder)36   private AccessConfig(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {
37     super(builder);
38   }
39 
AccessConfig()40   private AccessConfig() {
41     externalIpv6_ = "";
42     kind_ = "";
43     name_ = "";
44     natIP_ = "";
45     networkTier_ = "";
46     publicPtrDomainName_ = "";
47     type_ = "";
48   }
49 
50   @java.lang.Override
51   @SuppressWarnings({"unused"})
newInstance(UnusedPrivateParameter unused)52   protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
53     return new AccessConfig();
54   }
55 
56   @java.lang.Override
getUnknownFields()57   public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
58     return this.unknownFields;
59   }
60 
getDescriptor()61   public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
62     return com.google.cloud.compute.v1.Compute
63         .internal_static_google_cloud_compute_v1_AccessConfig_descriptor;
64   }
65 
66   @java.lang.Override
67   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable()68       internalGetFieldAccessorTable() {
69     return com.google.cloud.compute.v1.Compute
70         .internal_static_google_cloud_compute_v1_AccessConfig_fieldAccessorTable
71         .ensureFieldAccessorsInitialized(
72             com.google.cloud.compute.v1.AccessConfig.class,
73             com.google.cloud.compute.v1.AccessConfig.Builder.class);
74   }
75 
76   /**
77    *
78    *
79    * <pre>
80    * This signifies the networking tier used for configuring this access configuration and can only take the following values: PREMIUM, STANDARD. If an AccessConfig is specified without a valid external IP address, an ephemeral IP will be created with this networkTier. If an AccessConfig with a valid external IP address is specified, it must match that of the networkTier associated with the Address resource owning that IP.
81    * </pre>
82    *
83    * Protobuf enum {@code google.cloud.compute.v1.AccessConfig.NetworkTier}
84    */
85   public enum NetworkTier implements com.google.protobuf.ProtocolMessageEnum {
86     /**
87      *
88      *
89      * <pre>
90      * A value indicating that the enum field is not set.
91      * </pre>
92      *
93      * <code>UNDEFINED_NETWORK_TIER = 0;</code>
94      */
95     UNDEFINED_NETWORK_TIER(0),
96     /**
97      *
98      *
99      * <pre>
100      * Public internet quality with fixed bandwidth.
101      * </pre>
102      *
103      * <code>FIXED_STANDARD = 310464328;</code>
104      */
105     FIXED_STANDARD(310464328),
106     /**
107      *
108      *
109      * <pre>
110      * High quality, Google-grade network tier, support for all networking products.
111      * </pre>
112      *
113      * <code>PREMIUM = 399530551;</code>
114      */
115     PREMIUM(399530551),
116     /**
117      *
118      *
119      * <pre>
120      * Public internet quality, only limited support for other networking products.
121      * </pre>
122      *
123      * <code>STANDARD = 484642493;</code>
124      */
125     STANDARD(484642493),
126     /**
127      *
128      *
129      * <pre>
130      * (Output only) Temporary tier for FIXED_STANDARD when fixed standard tier is expired or not configured.
131      * </pre>
132      *
133      * <code>STANDARD_OVERRIDES_FIXED_STANDARD = 465847234;</code>
134      */
135     STANDARD_OVERRIDES_FIXED_STANDARD(465847234),
136     UNRECOGNIZED(-1),
137     ;
138 
139     /**
140      *
141      *
142      * <pre>
143      * A value indicating that the enum field is not set.
144      * </pre>
145      *
146      * <code>UNDEFINED_NETWORK_TIER = 0;</code>
147      */
148     public static final int UNDEFINED_NETWORK_TIER_VALUE = 0;
149     /**
150      *
151      *
152      * <pre>
153      * Public internet quality with fixed bandwidth.
154      * </pre>
155      *
156      * <code>FIXED_STANDARD = 310464328;</code>
157      */
158     public static final int FIXED_STANDARD_VALUE = 310464328;
159     /**
160      *
161      *
162      * <pre>
163      * High quality, Google-grade network tier, support for all networking products.
164      * </pre>
165      *
166      * <code>PREMIUM = 399530551;</code>
167      */
168     public static final int PREMIUM_VALUE = 399530551;
169     /**
170      *
171      *
172      * <pre>
173      * Public internet quality, only limited support for other networking products.
174      * </pre>
175      *
176      * <code>STANDARD = 484642493;</code>
177      */
178     public static final int STANDARD_VALUE = 484642493;
179     /**
180      *
181      *
182      * <pre>
183      * (Output only) Temporary tier for FIXED_STANDARD when fixed standard tier is expired or not configured.
184      * </pre>
185      *
186      * <code>STANDARD_OVERRIDES_FIXED_STANDARD = 465847234;</code>
187      */
188     public static final int STANDARD_OVERRIDES_FIXED_STANDARD_VALUE = 465847234;
189 
getNumber()190     public final int getNumber() {
191       if (this == UNRECOGNIZED) {
192         throw new java.lang.IllegalArgumentException(
193             "Can't get the number of an unknown enum value.");
194       }
195       return value;
196     }
197 
198     /**
199      * @param value The numeric wire value of the corresponding enum entry.
200      * @return The enum associated with the given numeric wire value.
201      * @deprecated Use {@link #forNumber(int)} instead.
202      */
203     @java.lang.Deprecated
valueOf(int value)204     public static NetworkTier valueOf(int value) {
205       return forNumber(value);
206     }
207 
208     /**
209      * @param value The numeric wire value of the corresponding enum entry.
210      * @return The enum associated with the given numeric wire value.
211      */
forNumber(int value)212     public static NetworkTier forNumber(int value) {
213       switch (value) {
214         case 0:
215           return UNDEFINED_NETWORK_TIER;
216         case 310464328:
217           return FIXED_STANDARD;
218         case 399530551:
219           return PREMIUM;
220         case 484642493:
221           return STANDARD;
222         case 465847234:
223           return STANDARD_OVERRIDES_FIXED_STANDARD;
224         default:
225           return null;
226       }
227     }
228 
internalGetValueMap()229     public static com.google.protobuf.Internal.EnumLiteMap<NetworkTier> internalGetValueMap() {
230       return internalValueMap;
231     }
232 
233     private static final com.google.protobuf.Internal.EnumLiteMap<NetworkTier> internalValueMap =
234         new com.google.protobuf.Internal.EnumLiteMap<NetworkTier>() {
235           public NetworkTier findValueByNumber(int number) {
236             return NetworkTier.forNumber(number);
237           }
238         };
239 
getValueDescriptor()240     public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() {
241       if (this == UNRECOGNIZED) {
242         throw new java.lang.IllegalStateException(
243             "Can't get the descriptor of an unrecognized enum value.");
244       }
245       return getDescriptor().getValues().get(ordinal());
246     }
247 
getDescriptorForType()248     public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() {
249       return getDescriptor();
250     }
251 
getDescriptor()252     public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() {
253       return com.google.cloud.compute.v1.AccessConfig.getDescriptor().getEnumTypes().get(0);
254     }
255 
256     private static final NetworkTier[] VALUES = values();
257 
valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc)258     public static NetworkTier valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
259       if (desc.getType() != getDescriptor()) {
260         throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type.");
261       }
262       if (desc.getIndex() == -1) {
263         return UNRECOGNIZED;
264       }
265       return VALUES[desc.getIndex()];
266     }
267 
268     private final int value;
269 
NetworkTier(int value)270     private NetworkTier(int value) {
271       this.value = value;
272     }
273 
274     // @@protoc_insertion_point(enum_scope:google.cloud.compute.v1.AccessConfig.NetworkTier)
275   }
276 
277   /**
278    *
279    *
280    * <pre>
281    * The type of configuration. The default and only option is ONE_TO_ONE_NAT.
282    * </pre>
283    *
284    * Protobuf enum {@code google.cloud.compute.v1.AccessConfig.Type}
285    */
286   public enum Type implements com.google.protobuf.ProtocolMessageEnum {
287     /**
288      *
289      *
290      * <pre>
291      * A value indicating that the enum field is not set.
292      * </pre>
293      *
294      * <code>UNDEFINED_TYPE = 0;</code>
295      */
296     UNDEFINED_TYPE(0),
297     /** <code>DIRECT_IPV6 = 4397213;</code> */
298     DIRECT_IPV6(4397213),
299     /** <code>ONE_TO_ONE_NAT = 84090205;</code> */
300     ONE_TO_ONE_NAT(84090205),
301     UNRECOGNIZED(-1),
302     ;
303 
304     /**
305      *
306      *
307      * <pre>
308      * A value indicating that the enum field is not set.
309      * </pre>
310      *
311      * <code>UNDEFINED_TYPE = 0;</code>
312      */
313     public static final int UNDEFINED_TYPE_VALUE = 0;
314     /** <code>DIRECT_IPV6 = 4397213;</code> */
315     public static final int DIRECT_IPV6_VALUE = 4397213;
316     /** <code>ONE_TO_ONE_NAT = 84090205;</code> */
317     public static final int ONE_TO_ONE_NAT_VALUE = 84090205;
318 
getNumber()319     public final int getNumber() {
320       if (this == UNRECOGNIZED) {
321         throw new java.lang.IllegalArgumentException(
322             "Can't get the number of an unknown enum value.");
323       }
324       return value;
325     }
326 
327     /**
328      * @param value The numeric wire value of the corresponding enum entry.
329      * @return The enum associated with the given numeric wire value.
330      * @deprecated Use {@link #forNumber(int)} instead.
331      */
332     @java.lang.Deprecated
valueOf(int value)333     public static Type valueOf(int value) {
334       return forNumber(value);
335     }
336 
337     /**
338      * @param value The numeric wire value of the corresponding enum entry.
339      * @return The enum associated with the given numeric wire value.
340      */
forNumber(int value)341     public static Type forNumber(int value) {
342       switch (value) {
343         case 0:
344           return UNDEFINED_TYPE;
345         case 4397213:
346           return DIRECT_IPV6;
347         case 84090205:
348           return ONE_TO_ONE_NAT;
349         default:
350           return null;
351       }
352     }
353 
internalGetValueMap()354     public static com.google.protobuf.Internal.EnumLiteMap<Type> internalGetValueMap() {
355       return internalValueMap;
356     }
357 
358     private static final com.google.protobuf.Internal.EnumLiteMap<Type> internalValueMap =
359         new com.google.protobuf.Internal.EnumLiteMap<Type>() {
360           public Type findValueByNumber(int number) {
361             return Type.forNumber(number);
362           }
363         };
364 
getValueDescriptor()365     public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() {
366       if (this == UNRECOGNIZED) {
367         throw new java.lang.IllegalStateException(
368             "Can't get the descriptor of an unrecognized enum value.");
369       }
370       return getDescriptor().getValues().get(ordinal());
371     }
372 
getDescriptorForType()373     public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() {
374       return getDescriptor();
375     }
376 
getDescriptor()377     public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() {
378       return com.google.cloud.compute.v1.AccessConfig.getDescriptor().getEnumTypes().get(1);
379     }
380 
381     private static final Type[] VALUES = values();
382 
valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc)383     public static Type valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
384       if (desc.getType() != getDescriptor()) {
385         throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type.");
386       }
387       if (desc.getIndex() == -1) {
388         return UNRECOGNIZED;
389       }
390       return VALUES[desc.getIndex()];
391     }
392 
393     private final int value;
394 
Type(int value)395     private Type(int value) {
396       this.value = value;
397     }
398 
399     // @@protoc_insertion_point(enum_scope:google.cloud.compute.v1.AccessConfig.Type)
400   }
401 
402   private int bitField0_;
403   public static final int EXTERNAL_IPV6_FIELD_NUMBER = 532703707;
404 
405   @SuppressWarnings("serial")
406   private volatile java.lang.Object externalIpv6_ = "";
407   /**
408    *
409    *
410    * <pre>
411    * The first IPv6 address of the external IPv6 range associated with this instance, prefix length is stored in externalIpv6PrefixLength in ipv6AccessConfig. To use a static external IP address, it must be unused and in the same region as the instance's zone. If not specified, Google Cloud will automatically assign an external IPv6 address from the instance's subnetwork.
412    * </pre>
413    *
414    * <code>optional string external_ipv6 = 532703707;</code>
415    *
416    * @return Whether the externalIpv6 field is set.
417    */
418   @java.lang.Override
hasExternalIpv6()419   public boolean hasExternalIpv6() {
420     return ((bitField0_ & 0x00000001) != 0);
421   }
422   /**
423    *
424    *
425    * <pre>
426    * The first IPv6 address of the external IPv6 range associated with this instance, prefix length is stored in externalIpv6PrefixLength in ipv6AccessConfig. To use a static external IP address, it must be unused and in the same region as the instance's zone. If not specified, Google Cloud will automatically assign an external IPv6 address from the instance's subnetwork.
427    * </pre>
428    *
429    * <code>optional string external_ipv6 = 532703707;</code>
430    *
431    * @return The externalIpv6.
432    */
433   @java.lang.Override
getExternalIpv6()434   public java.lang.String getExternalIpv6() {
435     java.lang.Object ref = externalIpv6_;
436     if (ref instanceof java.lang.String) {
437       return (java.lang.String) ref;
438     } else {
439       com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
440       java.lang.String s = bs.toStringUtf8();
441       externalIpv6_ = s;
442       return s;
443     }
444   }
445   /**
446    *
447    *
448    * <pre>
449    * The first IPv6 address of the external IPv6 range associated with this instance, prefix length is stored in externalIpv6PrefixLength in ipv6AccessConfig. To use a static external IP address, it must be unused and in the same region as the instance's zone. If not specified, Google Cloud will automatically assign an external IPv6 address from the instance's subnetwork.
450    * </pre>
451    *
452    * <code>optional string external_ipv6 = 532703707;</code>
453    *
454    * @return The bytes for externalIpv6.
455    */
456   @java.lang.Override
getExternalIpv6Bytes()457   public com.google.protobuf.ByteString getExternalIpv6Bytes() {
458     java.lang.Object ref = externalIpv6_;
459     if (ref instanceof java.lang.String) {
460       com.google.protobuf.ByteString b =
461           com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
462       externalIpv6_ = b;
463       return b;
464     } else {
465       return (com.google.protobuf.ByteString) ref;
466     }
467   }
468 
469   public static final int EXTERNAL_IPV6_PREFIX_LENGTH_FIELD_NUMBER = 425672143;
470   private int externalIpv6PrefixLength_ = 0;
471   /**
472    *
473    *
474    * <pre>
475    * The prefix length of the external IPv6 range.
476    * </pre>
477    *
478    * <code>optional int32 external_ipv6_prefix_length = 425672143;</code>
479    *
480    * @return Whether the externalIpv6PrefixLength field is set.
481    */
482   @java.lang.Override
hasExternalIpv6PrefixLength()483   public boolean hasExternalIpv6PrefixLength() {
484     return ((bitField0_ & 0x00000002) != 0);
485   }
486   /**
487    *
488    *
489    * <pre>
490    * The prefix length of the external IPv6 range.
491    * </pre>
492    *
493    * <code>optional int32 external_ipv6_prefix_length = 425672143;</code>
494    *
495    * @return The externalIpv6PrefixLength.
496    */
497   @java.lang.Override
getExternalIpv6PrefixLength()498   public int getExternalIpv6PrefixLength() {
499     return externalIpv6PrefixLength_;
500   }
501 
502   public static final int KIND_FIELD_NUMBER = 3292052;
503 
504   @SuppressWarnings("serial")
505   private volatile java.lang.Object kind_ = "";
506   /**
507    *
508    *
509    * <pre>
510    * [Output Only] Type of the resource. Always compute#accessConfig for access configs.
511    * </pre>
512    *
513    * <code>optional string kind = 3292052;</code>
514    *
515    * @return Whether the kind field is set.
516    */
517   @java.lang.Override
hasKind()518   public boolean hasKind() {
519     return ((bitField0_ & 0x00000004) != 0);
520   }
521   /**
522    *
523    *
524    * <pre>
525    * [Output Only] Type of the resource. Always compute#accessConfig for access configs.
526    * </pre>
527    *
528    * <code>optional string kind = 3292052;</code>
529    *
530    * @return The kind.
531    */
532   @java.lang.Override
getKind()533   public java.lang.String getKind() {
534     java.lang.Object ref = kind_;
535     if (ref instanceof java.lang.String) {
536       return (java.lang.String) ref;
537     } else {
538       com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
539       java.lang.String s = bs.toStringUtf8();
540       kind_ = s;
541       return s;
542     }
543   }
544   /**
545    *
546    *
547    * <pre>
548    * [Output Only] Type of the resource. Always compute#accessConfig for access configs.
549    * </pre>
550    *
551    * <code>optional string kind = 3292052;</code>
552    *
553    * @return The bytes for kind.
554    */
555   @java.lang.Override
getKindBytes()556   public com.google.protobuf.ByteString getKindBytes() {
557     java.lang.Object ref = kind_;
558     if (ref instanceof java.lang.String) {
559       com.google.protobuf.ByteString b =
560           com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
561       kind_ = b;
562       return b;
563     } else {
564       return (com.google.protobuf.ByteString) ref;
565     }
566   }
567 
568   public static final int NAME_FIELD_NUMBER = 3373707;
569 
570   @SuppressWarnings("serial")
571   private volatile java.lang.Object name_ = "";
572   /**
573    *
574    *
575    * <pre>
576    * The name of this access configuration. The default and recommended name is External NAT, but you can use any arbitrary string, such as My external IP or Network Access.
577    * </pre>
578    *
579    * <code>optional string name = 3373707;</code>
580    *
581    * @return Whether the name field is set.
582    */
583   @java.lang.Override
hasName()584   public boolean hasName() {
585     return ((bitField0_ & 0x00000008) != 0);
586   }
587   /**
588    *
589    *
590    * <pre>
591    * The name of this access configuration. The default and recommended name is External NAT, but you can use any arbitrary string, such as My external IP or Network Access.
592    * </pre>
593    *
594    * <code>optional string name = 3373707;</code>
595    *
596    * @return The name.
597    */
598   @java.lang.Override
getName()599   public java.lang.String getName() {
600     java.lang.Object ref = name_;
601     if (ref instanceof java.lang.String) {
602       return (java.lang.String) ref;
603     } else {
604       com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
605       java.lang.String s = bs.toStringUtf8();
606       name_ = s;
607       return s;
608     }
609   }
610   /**
611    *
612    *
613    * <pre>
614    * The name of this access configuration. The default and recommended name is External NAT, but you can use any arbitrary string, such as My external IP or Network Access.
615    * </pre>
616    *
617    * <code>optional string name = 3373707;</code>
618    *
619    * @return The bytes for name.
620    */
621   @java.lang.Override
getNameBytes()622   public com.google.protobuf.ByteString getNameBytes() {
623     java.lang.Object ref = name_;
624     if (ref instanceof java.lang.String) {
625       com.google.protobuf.ByteString b =
626           com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
627       name_ = b;
628       return b;
629     } else {
630       return (com.google.protobuf.ByteString) ref;
631     }
632   }
633 
634   public static final int NAT_I_P_FIELD_NUMBER = 117634556;
635 
636   @SuppressWarnings("serial")
637   private volatile java.lang.Object natIP_ = "";
638   /**
639    *
640    *
641    * <pre>
642    * An external IP address associated with this instance. Specify an unused static external IP address available to the project or leave this field undefined to use an IP from a shared ephemeral IP address pool. If you specify a static external IP address, it must live in the same region as the zone of the instance.
643    * </pre>
644    *
645    * <code>optional string nat_i_p = 117634556;</code>
646    *
647    * @return Whether the natIP field is set.
648    */
649   @java.lang.Override
hasNatIP()650   public boolean hasNatIP() {
651     return ((bitField0_ & 0x00000010) != 0);
652   }
653   /**
654    *
655    *
656    * <pre>
657    * An external IP address associated with this instance. Specify an unused static external IP address available to the project or leave this field undefined to use an IP from a shared ephemeral IP address pool. If you specify a static external IP address, it must live in the same region as the zone of the instance.
658    * </pre>
659    *
660    * <code>optional string nat_i_p = 117634556;</code>
661    *
662    * @return The natIP.
663    */
664   @java.lang.Override
getNatIP()665   public java.lang.String getNatIP() {
666     java.lang.Object ref = natIP_;
667     if (ref instanceof java.lang.String) {
668       return (java.lang.String) ref;
669     } else {
670       com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
671       java.lang.String s = bs.toStringUtf8();
672       natIP_ = s;
673       return s;
674     }
675   }
676   /**
677    *
678    *
679    * <pre>
680    * An external IP address associated with this instance. Specify an unused static external IP address available to the project or leave this field undefined to use an IP from a shared ephemeral IP address pool. If you specify a static external IP address, it must live in the same region as the zone of the instance.
681    * </pre>
682    *
683    * <code>optional string nat_i_p = 117634556;</code>
684    *
685    * @return The bytes for natIP.
686    */
687   @java.lang.Override
getNatIPBytes()688   public com.google.protobuf.ByteString getNatIPBytes() {
689     java.lang.Object ref = natIP_;
690     if (ref instanceof java.lang.String) {
691       com.google.protobuf.ByteString b =
692           com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
693       natIP_ = b;
694       return b;
695     } else {
696       return (com.google.protobuf.ByteString) ref;
697     }
698   }
699 
700   public static final int NETWORK_TIER_FIELD_NUMBER = 517397843;
701 
702   @SuppressWarnings("serial")
703   private volatile java.lang.Object networkTier_ = "";
704   /**
705    *
706    *
707    * <pre>
708    * This signifies the networking tier used for configuring this access configuration and can only take the following values: PREMIUM, STANDARD. If an AccessConfig is specified without a valid external IP address, an ephemeral IP will be created with this networkTier. If an AccessConfig with a valid external IP address is specified, it must match that of the networkTier associated with the Address resource owning that IP.
709    * Check the NetworkTier enum for the list of possible values.
710    * </pre>
711    *
712    * <code>optional string network_tier = 517397843;</code>
713    *
714    * @return Whether the networkTier field is set.
715    */
716   @java.lang.Override
hasNetworkTier()717   public boolean hasNetworkTier() {
718     return ((bitField0_ & 0x00000020) != 0);
719   }
720   /**
721    *
722    *
723    * <pre>
724    * This signifies the networking tier used for configuring this access configuration and can only take the following values: PREMIUM, STANDARD. If an AccessConfig is specified without a valid external IP address, an ephemeral IP will be created with this networkTier. If an AccessConfig with a valid external IP address is specified, it must match that of the networkTier associated with the Address resource owning that IP.
725    * Check the NetworkTier enum for the list of possible values.
726    * </pre>
727    *
728    * <code>optional string network_tier = 517397843;</code>
729    *
730    * @return The networkTier.
731    */
732   @java.lang.Override
getNetworkTier()733   public java.lang.String getNetworkTier() {
734     java.lang.Object ref = networkTier_;
735     if (ref instanceof java.lang.String) {
736       return (java.lang.String) ref;
737     } else {
738       com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
739       java.lang.String s = bs.toStringUtf8();
740       networkTier_ = s;
741       return s;
742     }
743   }
744   /**
745    *
746    *
747    * <pre>
748    * This signifies the networking tier used for configuring this access configuration and can only take the following values: PREMIUM, STANDARD. If an AccessConfig is specified without a valid external IP address, an ephemeral IP will be created with this networkTier. If an AccessConfig with a valid external IP address is specified, it must match that of the networkTier associated with the Address resource owning that IP.
749    * Check the NetworkTier enum for the list of possible values.
750    * </pre>
751    *
752    * <code>optional string network_tier = 517397843;</code>
753    *
754    * @return The bytes for networkTier.
755    */
756   @java.lang.Override
getNetworkTierBytes()757   public com.google.protobuf.ByteString getNetworkTierBytes() {
758     java.lang.Object ref = networkTier_;
759     if (ref instanceof java.lang.String) {
760       com.google.protobuf.ByteString b =
761           com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
762       networkTier_ = b;
763       return b;
764     } else {
765       return (com.google.protobuf.ByteString) ref;
766     }
767   }
768 
769   public static final int PUBLIC_PTR_DOMAIN_NAME_FIELD_NUMBER = 316599167;
770 
771   @SuppressWarnings("serial")
772   private volatile java.lang.Object publicPtrDomainName_ = "";
773   /**
774    *
775    *
776    * <pre>
777    * The DNS domain name for the public PTR record. You can set this field only if the `setPublicPtr` field is enabled in accessConfig. If this field is unspecified in ipv6AccessConfig, a default PTR record will be createc for first IP in associated external IPv6 range.
778    * </pre>
779    *
780    * <code>optional string public_ptr_domain_name = 316599167;</code>
781    *
782    * @return Whether the publicPtrDomainName field is set.
783    */
784   @java.lang.Override
hasPublicPtrDomainName()785   public boolean hasPublicPtrDomainName() {
786     return ((bitField0_ & 0x00000040) != 0);
787   }
788   /**
789    *
790    *
791    * <pre>
792    * The DNS domain name for the public PTR record. You can set this field only if the `setPublicPtr` field is enabled in accessConfig. If this field is unspecified in ipv6AccessConfig, a default PTR record will be createc for first IP in associated external IPv6 range.
793    * </pre>
794    *
795    * <code>optional string public_ptr_domain_name = 316599167;</code>
796    *
797    * @return The publicPtrDomainName.
798    */
799   @java.lang.Override
getPublicPtrDomainName()800   public java.lang.String getPublicPtrDomainName() {
801     java.lang.Object ref = publicPtrDomainName_;
802     if (ref instanceof java.lang.String) {
803       return (java.lang.String) ref;
804     } else {
805       com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
806       java.lang.String s = bs.toStringUtf8();
807       publicPtrDomainName_ = s;
808       return s;
809     }
810   }
811   /**
812    *
813    *
814    * <pre>
815    * The DNS domain name for the public PTR record. You can set this field only if the `setPublicPtr` field is enabled in accessConfig. If this field is unspecified in ipv6AccessConfig, a default PTR record will be createc for first IP in associated external IPv6 range.
816    * </pre>
817    *
818    * <code>optional string public_ptr_domain_name = 316599167;</code>
819    *
820    * @return The bytes for publicPtrDomainName.
821    */
822   @java.lang.Override
getPublicPtrDomainNameBytes()823   public com.google.protobuf.ByteString getPublicPtrDomainNameBytes() {
824     java.lang.Object ref = publicPtrDomainName_;
825     if (ref instanceof java.lang.String) {
826       com.google.protobuf.ByteString b =
827           com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
828       publicPtrDomainName_ = b;
829       return b;
830     } else {
831       return (com.google.protobuf.ByteString) ref;
832     }
833   }
834 
835   public static final int SET_PUBLIC_PTR_FIELD_NUMBER = 523870229;
836   private boolean setPublicPtr_ = false;
837   /**
838    *
839    *
840    * <pre>
841    * Specifies whether a public DNS 'PTR' record should be created to map the external IP address of the instance to a DNS domain name. This field is not used in ipv6AccessConfig. A default PTR record will be created if the VM has external IPv6 range associated.
842    * </pre>
843    *
844    * <code>optional bool set_public_ptr = 523870229;</code>
845    *
846    * @return Whether the setPublicPtr field is set.
847    */
848   @java.lang.Override
hasSetPublicPtr()849   public boolean hasSetPublicPtr() {
850     return ((bitField0_ & 0x00000080) != 0);
851   }
852   /**
853    *
854    *
855    * <pre>
856    * Specifies whether a public DNS 'PTR' record should be created to map the external IP address of the instance to a DNS domain name. This field is not used in ipv6AccessConfig. A default PTR record will be created if the VM has external IPv6 range associated.
857    * </pre>
858    *
859    * <code>optional bool set_public_ptr = 523870229;</code>
860    *
861    * @return The setPublicPtr.
862    */
863   @java.lang.Override
getSetPublicPtr()864   public boolean getSetPublicPtr() {
865     return setPublicPtr_;
866   }
867 
868   public static final int TYPE_FIELD_NUMBER = 3575610;
869 
870   @SuppressWarnings("serial")
871   private volatile java.lang.Object type_ = "";
872   /**
873    *
874    *
875    * <pre>
876    * The type of configuration. The default and only option is ONE_TO_ONE_NAT.
877    * Check the Type enum for the list of possible values.
878    * </pre>
879    *
880    * <code>optional string type = 3575610;</code>
881    *
882    * @return Whether the type field is set.
883    */
884   @java.lang.Override
hasType()885   public boolean hasType() {
886     return ((bitField0_ & 0x00000100) != 0);
887   }
888   /**
889    *
890    *
891    * <pre>
892    * The type of configuration. The default and only option is ONE_TO_ONE_NAT.
893    * Check the Type enum for the list of possible values.
894    * </pre>
895    *
896    * <code>optional string type = 3575610;</code>
897    *
898    * @return The type.
899    */
900   @java.lang.Override
getType()901   public java.lang.String getType() {
902     java.lang.Object ref = type_;
903     if (ref instanceof java.lang.String) {
904       return (java.lang.String) ref;
905     } else {
906       com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
907       java.lang.String s = bs.toStringUtf8();
908       type_ = s;
909       return s;
910     }
911   }
912   /**
913    *
914    *
915    * <pre>
916    * The type of configuration. The default and only option is ONE_TO_ONE_NAT.
917    * Check the Type enum for the list of possible values.
918    * </pre>
919    *
920    * <code>optional string type = 3575610;</code>
921    *
922    * @return The bytes for type.
923    */
924   @java.lang.Override
getTypeBytes()925   public com.google.protobuf.ByteString getTypeBytes() {
926     java.lang.Object ref = type_;
927     if (ref instanceof java.lang.String) {
928       com.google.protobuf.ByteString b =
929           com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
930       type_ = b;
931       return b;
932     } else {
933       return (com.google.protobuf.ByteString) ref;
934     }
935   }
936 
937   private byte memoizedIsInitialized = -1;
938 
939   @java.lang.Override
isInitialized()940   public final boolean isInitialized() {
941     byte isInitialized = memoizedIsInitialized;
942     if (isInitialized == 1) return true;
943     if (isInitialized == 0) return false;
944 
945     memoizedIsInitialized = 1;
946     return true;
947   }
948 
949   @java.lang.Override
writeTo(com.google.protobuf.CodedOutputStream output)950   public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
951     if (((bitField0_ & 0x00000004) != 0)) {
952       com.google.protobuf.GeneratedMessageV3.writeString(output, 3292052, kind_);
953     }
954     if (((bitField0_ & 0x00000008) != 0)) {
955       com.google.protobuf.GeneratedMessageV3.writeString(output, 3373707, name_);
956     }
957     if (((bitField0_ & 0x00000100) != 0)) {
958       com.google.protobuf.GeneratedMessageV3.writeString(output, 3575610, type_);
959     }
960     if (((bitField0_ & 0x00000010) != 0)) {
961       com.google.protobuf.GeneratedMessageV3.writeString(output, 117634556, natIP_);
962     }
963     if (((bitField0_ & 0x00000040) != 0)) {
964       com.google.protobuf.GeneratedMessageV3.writeString(output, 316599167, publicPtrDomainName_);
965     }
966     if (((bitField0_ & 0x00000002) != 0)) {
967       output.writeInt32(425672143, externalIpv6PrefixLength_);
968     }
969     if (((bitField0_ & 0x00000020) != 0)) {
970       com.google.protobuf.GeneratedMessageV3.writeString(output, 517397843, networkTier_);
971     }
972     if (((bitField0_ & 0x00000080) != 0)) {
973       output.writeBool(523870229, setPublicPtr_);
974     }
975     if (((bitField0_ & 0x00000001) != 0)) {
976       com.google.protobuf.GeneratedMessageV3.writeString(output, 532703707, externalIpv6_);
977     }
978     getUnknownFields().writeTo(output);
979   }
980 
981   @java.lang.Override
getSerializedSize()982   public int getSerializedSize() {
983     int size = memoizedSize;
984     if (size != -1) return size;
985 
986     size = 0;
987     if (((bitField0_ & 0x00000004) != 0)) {
988       size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3292052, kind_);
989     }
990     if (((bitField0_ & 0x00000008) != 0)) {
991       size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3373707, name_);
992     }
993     if (((bitField0_ & 0x00000100) != 0)) {
994       size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3575610, type_);
995     }
996     if (((bitField0_ & 0x00000010) != 0)) {
997       size += com.google.protobuf.GeneratedMessageV3.computeStringSize(117634556, natIP_);
998     }
999     if (((bitField0_ & 0x00000040) != 0)) {
1000       size +=
1001           com.google.protobuf.GeneratedMessageV3.computeStringSize(316599167, publicPtrDomainName_);
1002     }
1003     if (((bitField0_ & 0x00000002) != 0)) {
1004       size +=
1005           com.google.protobuf.CodedOutputStream.computeInt32Size(
1006               425672143, externalIpv6PrefixLength_);
1007     }
1008     if (((bitField0_ & 0x00000020) != 0)) {
1009       size += com.google.protobuf.GeneratedMessageV3.computeStringSize(517397843, networkTier_);
1010     }
1011     if (((bitField0_ & 0x00000080) != 0)) {
1012       size += com.google.protobuf.CodedOutputStream.computeBoolSize(523870229, setPublicPtr_);
1013     }
1014     if (((bitField0_ & 0x00000001) != 0)) {
1015       size += com.google.protobuf.GeneratedMessageV3.computeStringSize(532703707, externalIpv6_);
1016     }
1017     size += getUnknownFields().getSerializedSize();
1018     memoizedSize = size;
1019     return size;
1020   }
1021 
1022   @java.lang.Override
equals(final java.lang.Object obj)1023   public boolean equals(final java.lang.Object obj) {
1024     if (obj == this) {
1025       return true;
1026     }
1027     if (!(obj instanceof com.google.cloud.compute.v1.AccessConfig)) {
1028       return super.equals(obj);
1029     }
1030     com.google.cloud.compute.v1.AccessConfig other = (com.google.cloud.compute.v1.AccessConfig) obj;
1031 
1032     if (hasExternalIpv6() != other.hasExternalIpv6()) return false;
1033     if (hasExternalIpv6()) {
1034       if (!getExternalIpv6().equals(other.getExternalIpv6())) return false;
1035     }
1036     if (hasExternalIpv6PrefixLength() != other.hasExternalIpv6PrefixLength()) return false;
1037     if (hasExternalIpv6PrefixLength()) {
1038       if (getExternalIpv6PrefixLength() != other.getExternalIpv6PrefixLength()) return false;
1039     }
1040     if (hasKind() != other.hasKind()) return false;
1041     if (hasKind()) {
1042       if (!getKind().equals(other.getKind())) return false;
1043     }
1044     if (hasName() != other.hasName()) return false;
1045     if (hasName()) {
1046       if (!getName().equals(other.getName())) return false;
1047     }
1048     if (hasNatIP() != other.hasNatIP()) return false;
1049     if (hasNatIP()) {
1050       if (!getNatIP().equals(other.getNatIP())) return false;
1051     }
1052     if (hasNetworkTier() != other.hasNetworkTier()) return false;
1053     if (hasNetworkTier()) {
1054       if (!getNetworkTier().equals(other.getNetworkTier())) return false;
1055     }
1056     if (hasPublicPtrDomainName() != other.hasPublicPtrDomainName()) return false;
1057     if (hasPublicPtrDomainName()) {
1058       if (!getPublicPtrDomainName().equals(other.getPublicPtrDomainName())) return false;
1059     }
1060     if (hasSetPublicPtr() != other.hasSetPublicPtr()) return false;
1061     if (hasSetPublicPtr()) {
1062       if (getSetPublicPtr() != other.getSetPublicPtr()) return false;
1063     }
1064     if (hasType() != other.hasType()) return false;
1065     if (hasType()) {
1066       if (!getType().equals(other.getType())) return false;
1067     }
1068     if (!getUnknownFields().equals(other.getUnknownFields())) return false;
1069     return true;
1070   }
1071 
1072   @java.lang.Override
hashCode()1073   public int hashCode() {
1074     if (memoizedHashCode != 0) {
1075       return memoizedHashCode;
1076     }
1077     int hash = 41;
1078     hash = (19 * hash) + getDescriptor().hashCode();
1079     if (hasExternalIpv6()) {
1080       hash = (37 * hash) + EXTERNAL_IPV6_FIELD_NUMBER;
1081       hash = (53 * hash) + getExternalIpv6().hashCode();
1082     }
1083     if (hasExternalIpv6PrefixLength()) {
1084       hash = (37 * hash) + EXTERNAL_IPV6_PREFIX_LENGTH_FIELD_NUMBER;
1085       hash = (53 * hash) + getExternalIpv6PrefixLength();
1086     }
1087     if (hasKind()) {
1088       hash = (37 * hash) + KIND_FIELD_NUMBER;
1089       hash = (53 * hash) + getKind().hashCode();
1090     }
1091     if (hasName()) {
1092       hash = (37 * hash) + NAME_FIELD_NUMBER;
1093       hash = (53 * hash) + getName().hashCode();
1094     }
1095     if (hasNatIP()) {
1096       hash = (37 * hash) + NAT_I_P_FIELD_NUMBER;
1097       hash = (53 * hash) + getNatIP().hashCode();
1098     }
1099     if (hasNetworkTier()) {
1100       hash = (37 * hash) + NETWORK_TIER_FIELD_NUMBER;
1101       hash = (53 * hash) + getNetworkTier().hashCode();
1102     }
1103     if (hasPublicPtrDomainName()) {
1104       hash = (37 * hash) + PUBLIC_PTR_DOMAIN_NAME_FIELD_NUMBER;
1105       hash = (53 * hash) + getPublicPtrDomainName().hashCode();
1106     }
1107     if (hasSetPublicPtr()) {
1108       hash = (37 * hash) + SET_PUBLIC_PTR_FIELD_NUMBER;
1109       hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getSetPublicPtr());
1110     }
1111     if (hasType()) {
1112       hash = (37 * hash) + TYPE_FIELD_NUMBER;
1113       hash = (53 * hash) + getType().hashCode();
1114     }
1115     hash = (29 * hash) + getUnknownFields().hashCode();
1116     memoizedHashCode = hash;
1117     return hash;
1118   }
1119 
parseFrom(java.nio.ByteBuffer data)1120   public static com.google.cloud.compute.v1.AccessConfig parseFrom(java.nio.ByteBuffer data)
1121       throws com.google.protobuf.InvalidProtocolBufferException {
1122     return PARSER.parseFrom(data);
1123   }
1124 
parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)1125   public static com.google.cloud.compute.v1.AccessConfig parseFrom(
1126       java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
1127       throws com.google.protobuf.InvalidProtocolBufferException {
1128     return PARSER.parseFrom(data, extensionRegistry);
1129   }
1130 
parseFrom( com.google.protobuf.ByteString data)1131   public static com.google.cloud.compute.v1.AccessConfig parseFrom(
1132       com.google.protobuf.ByteString data)
1133       throws com.google.protobuf.InvalidProtocolBufferException {
1134     return PARSER.parseFrom(data);
1135   }
1136 
parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)1137   public static com.google.cloud.compute.v1.AccessConfig parseFrom(
1138       com.google.protobuf.ByteString data,
1139       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
1140       throws com.google.protobuf.InvalidProtocolBufferException {
1141     return PARSER.parseFrom(data, extensionRegistry);
1142   }
1143 
parseFrom(byte[] data)1144   public static com.google.cloud.compute.v1.AccessConfig parseFrom(byte[] data)
1145       throws com.google.protobuf.InvalidProtocolBufferException {
1146     return PARSER.parseFrom(data);
1147   }
1148 
parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)1149   public static com.google.cloud.compute.v1.AccessConfig parseFrom(
1150       byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
1151       throws com.google.protobuf.InvalidProtocolBufferException {
1152     return PARSER.parseFrom(data, extensionRegistry);
1153   }
1154 
parseFrom(java.io.InputStream input)1155   public static com.google.cloud.compute.v1.AccessConfig parseFrom(java.io.InputStream input)
1156       throws java.io.IOException {
1157     return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
1158   }
1159 
parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)1160   public static com.google.cloud.compute.v1.AccessConfig parseFrom(
1161       java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
1162       throws java.io.IOException {
1163     return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
1164         PARSER, input, extensionRegistry);
1165   }
1166 
parseDelimitedFrom( java.io.InputStream input)1167   public static com.google.cloud.compute.v1.AccessConfig parseDelimitedFrom(
1168       java.io.InputStream input) throws java.io.IOException {
1169     return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
1170   }
1171 
parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)1172   public static com.google.cloud.compute.v1.AccessConfig parseDelimitedFrom(
1173       java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
1174       throws java.io.IOException {
1175     return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
1176         PARSER, input, extensionRegistry);
1177   }
1178 
parseFrom( com.google.protobuf.CodedInputStream input)1179   public static com.google.cloud.compute.v1.AccessConfig parseFrom(
1180       com.google.protobuf.CodedInputStream input) throws java.io.IOException {
1181     return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
1182   }
1183 
parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)1184   public static com.google.cloud.compute.v1.AccessConfig parseFrom(
1185       com.google.protobuf.CodedInputStream input,
1186       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
1187       throws java.io.IOException {
1188     return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
1189         PARSER, input, extensionRegistry);
1190   }
1191 
1192   @java.lang.Override
newBuilderForType()1193   public Builder newBuilderForType() {
1194     return newBuilder();
1195   }
1196 
newBuilder()1197   public static Builder newBuilder() {
1198     return DEFAULT_INSTANCE.toBuilder();
1199   }
1200 
newBuilder(com.google.cloud.compute.v1.AccessConfig prototype)1201   public static Builder newBuilder(com.google.cloud.compute.v1.AccessConfig prototype) {
1202     return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
1203   }
1204 
1205   @java.lang.Override
toBuilder()1206   public Builder toBuilder() {
1207     return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
1208   }
1209 
1210   @java.lang.Override
newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)1211   protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
1212     Builder builder = new Builder(parent);
1213     return builder;
1214   }
1215   /**
1216    *
1217    *
1218    * <pre>
1219    * An access configuration attached to an instance's network interface. Only one access config per instance is supported.
1220    * </pre>
1221    *
1222    * Protobuf type {@code google.cloud.compute.v1.AccessConfig}
1223    */
1224   public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder<Builder>
1225       implements
1226       // @@protoc_insertion_point(builder_implements:google.cloud.compute.v1.AccessConfig)
1227       com.google.cloud.compute.v1.AccessConfigOrBuilder {
getDescriptor()1228     public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
1229       return com.google.cloud.compute.v1.Compute
1230           .internal_static_google_cloud_compute_v1_AccessConfig_descriptor;
1231     }
1232 
1233     @java.lang.Override
1234     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable()1235         internalGetFieldAccessorTable() {
1236       return com.google.cloud.compute.v1.Compute
1237           .internal_static_google_cloud_compute_v1_AccessConfig_fieldAccessorTable
1238           .ensureFieldAccessorsInitialized(
1239               com.google.cloud.compute.v1.AccessConfig.class,
1240               com.google.cloud.compute.v1.AccessConfig.Builder.class);
1241     }
1242 
1243     // Construct using com.google.cloud.compute.v1.AccessConfig.newBuilder()
Builder()1244     private Builder() {}
1245 
Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)1246     private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
1247       super(parent);
1248     }
1249 
1250     @java.lang.Override
clear()1251     public Builder clear() {
1252       super.clear();
1253       bitField0_ = 0;
1254       externalIpv6_ = "";
1255       externalIpv6PrefixLength_ = 0;
1256       kind_ = "";
1257       name_ = "";
1258       natIP_ = "";
1259       networkTier_ = "";
1260       publicPtrDomainName_ = "";
1261       setPublicPtr_ = false;
1262       type_ = "";
1263       return this;
1264     }
1265 
1266     @java.lang.Override
getDescriptorForType()1267     public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
1268       return com.google.cloud.compute.v1.Compute
1269           .internal_static_google_cloud_compute_v1_AccessConfig_descriptor;
1270     }
1271 
1272     @java.lang.Override
getDefaultInstanceForType()1273     public com.google.cloud.compute.v1.AccessConfig getDefaultInstanceForType() {
1274       return com.google.cloud.compute.v1.AccessConfig.getDefaultInstance();
1275     }
1276 
1277     @java.lang.Override
build()1278     public com.google.cloud.compute.v1.AccessConfig build() {
1279       com.google.cloud.compute.v1.AccessConfig result = buildPartial();
1280       if (!result.isInitialized()) {
1281         throw newUninitializedMessageException(result);
1282       }
1283       return result;
1284     }
1285 
1286     @java.lang.Override
buildPartial()1287     public com.google.cloud.compute.v1.AccessConfig buildPartial() {
1288       com.google.cloud.compute.v1.AccessConfig result =
1289           new com.google.cloud.compute.v1.AccessConfig(this);
1290       if (bitField0_ != 0) {
1291         buildPartial0(result);
1292       }
1293       onBuilt();
1294       return result;
1295     }
1296 
buildPartial0(com.google.cloud.compute.v1.AccessConfig result)1297     private void buildPartial0(com.google.cloud.compute.v1.AccessConfig result) {
1298       int from_bitField0_ = bitField0_;
1299       int to_bitField0_ = 0;
1300       if (((from_bitField0_ & 0x00000001) != 0)) {
1301         result.externalIpv6_ = externalIpv6_;
1302         to_bitField0_ |= 0x00000001;
1303       }
1304       if (((from_bitField0_ & 0x00000002) != 0)) {
1305         result.externalIpv6PrefixLength_ = externalIpv6PrefixLength_;
1306         to_bitField0_ |= 0x00000002;
1307       }
1308       if (((from_bitField0_ & 0x00000004) != 0)) {
1309         result.kind_ = kind_;
1310         to_bitField0_ |= 0x00000004;
1311       }
1312       if (((from_bitField0_ & 0x00000008) != 0)) {
1313         result.name_ = name_;
1314         to_bitField0_ |= 0x00000008;
1315       }
1316       if (((from_bitField0_ & 0x00000010) != 0)) {
1317         result.natIP_ = natIP_;
1318         to_bitField0_ |= 0x00000010;
1319       }
1320       if (((from_bitField0_ & 0x00000020) != 0)) {
1321         result.networkTier_ = networkTier_;
1322         to_bitField0_ |= 0x00000020;
1323       }
1324       if (((from_bitField0_ & 0x00000040) != 0)) {
1325         result.publicPtrDomainName_ = publicPtrDomainName_;
1326         to_bitField0_ |= 0x00000040;
1327       }
1328       if (((from_bitField0_ & 0x00000080) != 0)) {
1329         result.setPublicPtr_ = setPublicPtr_;
1330         to_bitField0_ |= 0x00000080;
1331       }
1332       if (((from_bitField0_ & 0x00000100) != 0)) {
1333         result.type_ = type_;
1334         to_bitField0_ |= 0x00000100;
1335       }
1336       result.bitField0_ |= to_bitField0_;
1337     }
1338 
1339     @java.lang.Override
clone()1340     public Builder clone() {
1341       return super.clone();
1342     }
1343 
1344     @java.lang.Override
setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)1345     public Builder setField(
1346         com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
1347       return super.setField(field, value);
1348     }
1349 
1350     @java.lang.Override
clearField(com.google.protobuf.Descriptors.FieldDescriptor field)1351     public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
1352       return super.clearField(field);
1353     }
1354 
1355     @java.lang.Override
clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)1356     public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
1357       return super.clearOneof(oneof);
1358     }
1359 
1360     @java.lang.Override
setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value)1361     public Builder setRepeatedField(
1362         com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
1363       return super.setRepeatedField(field, index, value);
1364     }
1365 
1366     @java.lang.Override
addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)1367     public Builder addRepeatedField(
1368         com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
1369       return super.addRepeatedField(field, value);
1370     }
1371 
1372     @java.lang.Override
mergeFrom(com.google.protobuf.Message other)1373     public Builder mergeFrom(com.google.protobuf.Message other) {
1374       if (other instanceof com.google.cloud.compute.v1.AccessConfig) {
1375         return mergeFrom((com.google.cloud.compute.v1.AccessConfig) other);
1376       } else {
1377         super.mergeFrom(other);
1378         return this;
1379       }
1380     }
1381 
mergeFrom(com.google.cloud.compute.v1.AccessConfig other)1382     public Builder mergeFrom(com.google.cloud.compute.v1.AccessConfig other) {
1383       if (other == com.google.cloud.compute.v1.AccessConfig.getDefaultInstance()) return this;
1384       if (other.hasExternalIpv6()) {
1385         externalIpv6_ = other.externalIpv6_;
1386         bitField0_ |= 0x00000001;
1387         onChanged();
1388       }
1389       if (other.hasExternalIpv6PrefixLength()) {
1390         setExternalIpv6PrefixLength(other.getExternalIpv6PrefixLength());
1391       }
1392       if (other.hasKind()) {
1393         kind_ = other.kind_;
1394         bitField0_ |= 0x00000004;
1395         onChanged();
1396       }
1397       if (other.hasName()) {
1398         name_ = other.name_;
1399         bitField0_ |= 0x00000008;
1400         onChanged();
1401       }
1402       if (other.hasNatIP()) {
1403         natIP_ = other.natIP_;
1404         bitField0_ |= 0x00000010;
1405         onChanged();
1406       }
1407       if (other.hasNetworkTier()) {
1408         networkTier_ = other.networkTier_;
1409         bitField0_ |= 0x00000020;
1410         onChanged();
1411       }
1412       if (other.hasPublicPtrDomainName()) {
1413         publicPtrDomainName_ = other.publicPtrDomainName_;
1414         bitField0_ |= 0x00000040;
1415         onChanged();
1416       }
1417       if (other.hasSetPublicPtr()) {
1418         setSetPublicPtr(other.getSetPublicPtr());
1419       }
1420       if (other.hasType()) {
1421         type_ = other.type_;
1422         bitField0_ |= 0x00000100;
1423         onChanged();
1424       }
1425       this.mergeUnknownFields(other.getUnknownFields());
1426       onChanged();
1427       return this;
1428     }
1429 
1430     @java.lang.Override
isInitialized()1431     public final boolean isInitialized() {
1432       return true;
1433     }
1434 
1435     @java.lang.Override
mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)1436     public Builder mergeFrom(
1437         com.google.protobuf.CodedInputStream input,
1438         com.google.protobuf.ExtensionRegistryLite extensionRegistry)
1439         throws java.io.IOException {
1440       if (extensionRegistry == null) {
1441         throw new java.lang.NullPointerException();
1442       }
1443       try {
1444         boolean done = false;
1445         while (!done) {
1446           int tag = input.readTag();
1447           switch (tag) {
1448             case 0:
1449               done = true;
1450               break;
1451             case 26336418:
1452               {
1453                 kind_ = input.readStringRequireUtf8();
1454                 bitField0_ |= 0x00000004;
1455                 break;
1456               } // case 26336418
1457             case 26989658:
1458               {
1459                 name_ = input.readStringRequireUtf8();
1460                 bitField0_ |= 0x00000008;
1461                 break;
1462               } // case 26989658
1463             case 28604882:
1464               {
1465                 type_ = input.readStringRequireUtf8();
1466                 bitField0_ |= 0x00000100;
1467                 break;
1468               } // case 28604882
1469             case 941076450:
1470               {
1471                 natIP_ = input.readStringRequireUtf8();
1472                 bitField0_ |= 0x00000010;
1473                 break;
1474               } // case 941076450
1475             case -1762173958:
1476               {
1477                 publicPtrDomainName_ = input.readStringRequireUtf8();
1478                 bitField0_ |= 0x00000040;
1479                 break;
1480               } // case -1762173958
1481             case -889590152:
1482               {
1483                 externalIpv6PrefixLength_ = input.readInt32();
1484                 bitField0_ |= 0x00000002;
1485                 break;
1486               } // case -889590152
1487             case -155784550:
1488               {
1489                 networkTier_ = input.readStringRequireUtf8();
1490                 bitField0_ |= 0x00000020;
1491                 break;
1492               } // case -155784550
1493             case -104005464:
1494               {
1495                 setPublicPtr_ = input.readBool();
1496                 bitField0_ |= 0x00000080;
1497                 break;
1498               } // case -104005464
1499             case -33337638:
1500               {
1501                 externalIpv6_ = input.readStringRequireUtf8();
1502                 bitField0_ |= 0x00000001;
1503                 break;
1504               } // case -33337638
1505             default:
1506               {
1507                 if (!super.parseUnknownField(input, extensionRegistry, tag)) {
1508                   done = true; // was an endgroup tag
1509                 }
1510                 break;
1511               } // default:
1512           } // switch (tag)
1513         } // while (!done)
1514       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
1515         throw e.unwrapIOException();
1516       } finally {
1517         onChanged();
1518       } // finally
1519       return this;
1520     }
1521 
1522     private int bitField0_;
1523 
1524     private java.lang.Object externalIpv6_ = "";
1525     /**
1526      *
1527      *
1528      * <pre>
1529      * The first IPv6 address of the external IPv6 range associated with this instance, prefix length is stored in externalIpv6PrefixLength in ipv6AccessConfig. To use a static external IP address, it must be unused and in the same region as the instance's zone. If not specified, Google Cloud will automatically assign an external IPv6 address from the instance's subnetwork.
1530      * </pre>
1531      *
1532      * <code>optional string external_ipv6 = 532703707;</code>
1533      *
1534      * @return Whether the externalIpv6 field is set.
1535      */
hasExternalIpv6()1536     public boolean hasExternalIpv6() {
1537       return ((bitField0_ & 0x00000001) != 0);
1538     }
1539     /**
1540      *
1541      *
1542      * <pre>
1543      * The first IPv6 address of the external IPv6 range associated with this instance, prefix length is stored in externalIpv6PrefixLength in ipv6AccessConfig. To use a static external IP address, it must be unused and in the same region as the instance's zone. If not specified, Google Cloud will automatically assign an external IPv6 address from the instance's subnetwork.
1544      * </pre>
1545      *
1546      * <code>optional string external_ipv6 = 532703707;</code>
1547      *
1548      * @return The externalIpv6.
1549      */
getExternalIpv6()1550     public java.lang.String getExternalIpv6() {
1551       java.lang.Object ref = externalIpv6_;
1552       if (!(ref instanceof java.lang.String)) {
1553         com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
1554         java.lang.String s = bs.toStringUtf8();
1555         externalIpv6_ = s;
1556         return s;
1557       } else {
1558         return (java.lang.String) ref;
1559       }
1560     }
1561     /**
1562      *
1563      *
1564      * <pre>
1565      * The first IPv6 address of the external IPv6 range associated with this instance, prefix length is stored in externalIpv6PrefixLength in ipv6AccessConfig. To use a static external IP address, it must be unused and in the same region as the instance's zone. If not specified, Google Cloud will automatically assign an external IPv6 address from the instance's subnetwork.
1566      * </pre>
1567      *
1568      * <code>optional string external_ipv6 = 532703707;</code>
1569      *
1570      * @return The bytes for externalIpv6.
1571      */
getExternalIpv6Bytes()1572     public com.google.protobuf.ByteString getExternalIpv6Bytes() {
1573       java.lang.Object ref = externalIpv6_;
1574       if (ref instanceof String) {
1575         com.google.protobuf.ByteString b =
1576             com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
1577         externalIpv6_ = b;
1578         return b;
1579       } else {
1580         return (com.google.protobuf.ByteString) ref;
1581       }
1582     }
1583     /**
1584      *
1585      *
1586      * <pre>
1587      * The first IPv6 address of the external IPv6 range associated with this instance, prefix length is stored in externalIpv6PrefixLength in ipv6AccessConfig. To use a static external IP address, it must be unused and in the same region as the instance's zone. If not specified, Google Cloud will automatically assign an external IPv6 address from the instance's subnetwork.
1588      * </pre>
1589      *
1590      * <code>optional string external_ipv6 = 532703707;</code>
1591      *
1592      * @param value The externalIpv6 to set.
1593      * @return This builder for chaining.
1594      */
setExternalIpv6(java.lang.String value)1595     public Builder setExternalIpv6(java.lang.String value) {
1596       if (value == null) {
1597         throw new NullPointerException();
1598       }
1599       externalIpv6_ = value;
1600       bitField0_ |= 0x00000001;
1601       onChanged();
1602       return this;
1603     }
1604     /**
1605      *
1606      *
1607      * <pre>
1608      * The first IPv6 address of the external IPv6 range associated with this instance, prefix length is stored in externalIpv6PrefixLength in ipv6AccessConfig. To use a static external IP address, it must be unused and in the same region as the instance's zone. If not specified, Google Cloud will automatically assign an external IPv6 address from the instance's subnetwork.
1609      * </pre>
1610      *
1611      * <code>optional string external_ipv6 = 532703707;</code>
1612      *
1613      * @return This builder for chaining.
1614      */
clearExternalIpv6()1615     public Builder clearExternalIpv6() {
1616       externalIpv6_ = getDefaultInstance().getExternalIpv6();
1617       bitField0_ = (bitField0_ & ~0x00000001);
1618       onChanged();
1619       return this;
1620     }
1621     /**
1622      *
1623      *
1624      * <pre>
1625      * The first IPv6 address of the external IPv6 range associated with this instance, prefix length is stored in externalIpv6PrefixLength in ipv6AccessConfig. To use a static external IP address, it must be unused and in the same region as the instance's zone. If not specified, Google Cloud will automatically assign an external IPv6 address from the instance's subnetwork.
1626      * </pre>
1627      *
1628      * <code>optional string external_ipv6 = 532703707;</code>
1629      *
1630      * @param value The bytes for externalIpv6 to set.
1631      * @return This builder for chaining.
1632      */
setExternalIpv6Bytes(com.google.protobuf.ByteString value)1633     public Builder setExternalIpv6Bytes(com.google.protobuf.ByteString value) {
1634       if (value == null) {
1635         throw new NullPointerException();
1636       }
1637       checkByteStringIsUtf8(value);
1638       externalIpv6_ = value;
1639       bitField0_ |= 0x00000001;
1640       onChanged();
1641       return this;
1642     }
1643 
1644     private int externalIpv6PrefixLength_;
1645     /**
1646      *
1647      *
1648      * <pre>
1649      * The prefix length of the external IPv6 range.
1650      * </pre>
1651      *
1652      * <code>optional int32 external_ipv6_prefix_length = 425672143;</code>
1653      *
1654      * @return Whether the externalIpv6PrefixLength field is set.
1655      */
1656     @java.lang.Override
hasExternalIpv6PrefixLength()1657     public boolean hasExternalIpv6PrefixLength() {
1658       return ((bitField0_ & 0x00000002) != 0);
1659     }
1660     /**
1661      *
1662      *
1663      * <pre>
1664      * The prefix length of the external IPv6 range.
1665      * </pre>
1666      *
1667      * <code>optional int32 external_ipv6_prefix_length = 425672143;</code>
1668      *
1669      * @return The externalIpv6PrefixLength.
1670      */
1671     @java.lang.Override
getExternalIpv6PrefixLength()1672     public int getExternalIpv6PrefixLength() {
1673       return externalIpv6PrefixLength_;
1674     }
1675     /**
1676      *
1677      *
1678      * <pre>
1679      * The prefix length of the external IPv6 range.
1680      * </pre>
1681      *
1682      * <code>optional int32 external_ipv6_prefix_length = 425672143;</code>
1683      *
1684      * @param value The externalIpv6PrefixLength to set.
1685      * @return This builder for chaining.
1686      */
setExternalIpv6PrefixLength(int value)1687     public Builder setExternalIpv6PrefixLength(int value) {
1688 
1689       externalIpv6PrefixLength_ = value;
1690       bitField0_ |= 0x00000002;
1691       onChanged();
1692       return this;
1693     }
1694     /**
1695      *
1696      *
1697      * <pre>
1698      * The prefix length of the external IPv6 range.
1699      * </pre>
1700      *
1701      * <code>optional int32 external_ipv6_prefix_length = 425672143;</code>
1702      *
1703      * @return This builder for chaining.
1704      */
clearExternalIpv6PrefixLength()1705     public Builder clearExternalIpv6PrefixLength() {
1706       bitField0_ = (bitField0_ & ~0x00000002);
1707       externalIpv6PrefixLength_ = 0;
1708       onChanged();
1709       return this;
1710     }
1711 
1712     private java.lang.Object kind_ = "";
1713     /**
1714      *
1715      *
1716      * <pre>
1717      * [Output Only] Type of the resource. Always compute#accessConfig for access configs.
1718      * </pre>
1719      *
1720      * <code>optional string kind = 3292052;</code>
1721      *
1722      * @return Whether the kind field is set.
1723      */
hasKind()1724     public boolean hasKind() {
1725       return ((bitField0_ & 0x00000004) != 0);
1726     }
1727     /**
1728      *
1729      *
1730      * <pre>
1731      * [Output Only] Type of the resource. Always compute#accessConfig for access configs.
1732      * </pre>
1733      *
1734      * <code>optional string kind = 3292052;</code>
1735      *
1736      * @return The kind.
1737      */
getKind()1738     public java.lang.String getKind() {
1739       java.lang.Object ref = kind_;
1740       if (!(ref instanceof java.lang.String)) {
1741         com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
1742         java.lang.String s = bs.toStringUtf8();
1743         kind_ = s;
1744         return s;
1745       } else {
1746         return (java.lang.String) ref;
1747       }
1748     }
1749     /**
1750      *
1751      *
1752      * <pre>
1753      * [Output Only] Type of the resource. Always compute#accessConfig for access configs.
1754      * </pre>
1755      *
1756      * <code>optional string kind = 3292052;</code>
1757      *
1758      * @return The bytes for kind.
1759      */
getKindBytes()1760     public com.google.protobuf.ByteString getKindBytes() {
1761       java.lang.Object ref = kind_;
1762       if (ref instanceof String) {
1763         com.google.protobuf.ByteString b =
1764             com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
1765         kind_ = b;
1766         return b;
1767       } else {
1768         return (com.google.protobuf.ByteString) ref;
1769       }
1770     }
1771     /**
1772      *
1773      *
1774      * <pre>
1775      * [Output Only] Type of the resource. Always compute#accessConfig for access configs.
1776      * </pre>
1777      *
1778      * <code>optional string kind = 3292052;</code>
1779      *
1780      * @param value The kind to set.
1781      * @return This builder for chaining.
1782      */
setKind(java.lang.String value)1783     public Builder setKind(java.lang.String value) {
1784       if (value == null) {
1785         throw new NullPointerException();
1786       }
1787       kind_ = value;
1788       bitField0_ |= 0x00000004;
1789       onChanged();
1790       return this;
1791     }
1792     /**
1793      *
1794      *
1795      * <pre>
1796      * [Output Only] Type of the resource. Always compute#accessConfig for access configs.
1797      * </pre>
1798      *
1799      * <code>optional string kind = 3292052;</code>
1800      *
1801      * @return This builder for chaining.
1802      */
clearKind()1803     public Builder clearKind() {
1804       kind_ = getDefaultInstance().getKind();
1805       bitField0_ = (bitField0_ & ~0x00000004);
1806       onChanged();
1807       return this;
1808     }
1809     /**
1810      *
1811      *
1812      * <pre>
1813      * [Output Only] Type of the resource. Always compute#accessConfig for access configs.
1814      * </pre>
1815      *
1816      * <code>optional string kind = 3292052;</code>
1817      *
1818      * @param value The bytes for kind to set.
1819      * @return This builder for chaining.
1820      */
setKindBytes(com.google.protobuf.ByteString value)1821     public Builder setKindBytes(com.google.protobuf.ByteString value) {
1822       if (value == null) {
1823         throw new NullPointerException();
1824       }
1825       checkByteStringIsUtf8(value);
1826       kind_ = value;
1827       bitField0_ |= 0x00000004;
1828       onChanged();
1829       return this;
1830     }
1831 
1832     private java.lang.Object name_ = "";
1833     /**
1834      *
1835      *
1836      * <pre>
1837      * The name of this access configuration. The default and recommended name is External NAT, but you can use any arbitrary string, such as My external IP or Network Access.
1838      * </pre>
1839      *
1840      * <code>optional string name = 3373707;</code>
1841      *
1842      * @return Whether the name field is set.
1843      */
hasName()1844     public boolean hasName() {
1845       return ((bitField0_ & 0x00000008) != 0);
1846     }
1847     /**
1848      *
1849      *
1850      * <pre>
1851      * The name of this access configuration. The default and recommended name is External NAT, but you can use any arbitrary string, such as My external IP or Network Access.
1852      * </pre>
1853      *
1854      * <code>optional string name = 3373707;</code>
1855      *
1856      * @return The name.
1857      */
getName()1858     public java.lang.String getName() {
1859       java.lang.Object ref = name_;
1860       if (!(ref instanceof java.lang.String)) {
1861         com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
1862         java.lang.String s = bs.toStringUtf8();
1863         name_ = s;
1864         return s;
1865       } else {
1866         return (java.lang.String) ref;
1867       }
1868     }
1869     /**
1870      *
1871      *
1872      * <pre>
1873      * The name of this access configuration. The default and recommended name is External NAT, but you can use any arbitrary string, such as My external IP or Network Access.
1874      * </pre>
1875      *
1876      * <code>optional string name = 3373707;</code>
1877      *
1878      * @return The bytes for name.
1879      */
getNameBytes()1880     public com.google.protobuf.ByteString getNameBytes() {
1881       java.lang.Object ref = name_;
1882       if (ref instanceof String) {
1883         com.google.protobuf.ByteString b =
1884             com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
1885         name_ = b;
1886         return b;
1887       } else {
1888         return (com.google.protobuf.ByteString) ref;
1889       }
1890     }
1891     /**
1892      *
1893      *
1894      * <pre>
1895      * The name of this access configuration. The default and recommended name is External NAT, but you can use any arbitrary string, such as My external IP or Network Access.
1896      * </pre>
1897      *
1898      * <code>optional string name = 3373707;</code>
1899      *
1900      * @param value The name to set.
1901      * @return This builder for chaining.
1902      */
setName(java.lang.String value)1903     public Builder setName(java.lang.String value) {
1904       if (value == null) {
1905         throw new NullPointerException();
1906       }
1907       name_ = value;
1908       bitField0_ |= 0x00000008;
1909       onChanged();
1910       return this;
1911     }
1912     /**
1913      *
1914      *
1915      * <pre>
1916      * The name of this access configuration. The default and recommended name is External NAT, but you can use any arbitrary string, such as My external IP or Network Access.
1917      * </pre>
1918      *
1919      * <code>optional string name = 3373707;</code>
1920      *
1921      * @return This builder for chaining.
1922      */
clearName()1923     public Builder clearName() {
1924       name_ = getDefaultInstance().getName();
1925       bitField0_ = (bitField0_ & ~0x00000008);
1926       onChanged();
1927       return this;
1928     }
1929     /**
1930      *
1931      *
1932      * <pre>
1933      * The name of this access configuration. The default and recommended name is External NAT, but you can use any arbitrary string, such as My external IP or Network Access.
1934      * </pre>
1935      *
1936      * <code>optional string name = 3373707;</code>
1937      *
1938      * @param value The bytes for name to set.
1939      * @return This builder for chaining.
1940      */
setNameBytes(com.google.protobuf.ByteString value)1941     public Builder setNameBytes(com.google.protobuf.ByteString value) {
1942       if (value == null) {
1943         throw new NullPointerException();
1944       }
1945       checkByteStringIsUtf8(value);
1946       name_ = value;
1947       bitField0_ |= 0x00000008;
1948       onChanged();
1949       return this;
1950     }
1951 
1952     private java.lang.Object natIP_ = "";
1953     /**
1954      *
1955      *
1956      * <pre>
1957      * An external IP address associated with this instance. Specify an unused static external IP address available to the project or leave this field undefined to use an IP from a shared ephemeral IP address pool. If you specify a static external IP address, it must live in the same region as the zone of the instance.
1958      * </pre>
1959      *
1960      * <code>optional string nat_i_p = 117634556;</code>
1961      *
1962      * @return Whether the natIP field is set.
1963      */
hasNatIP()1964     public boolean hasNatIP() {
1965       return ((bitField0_ & 0x00000010) != 0);
1966     }
1967     /**
1968      *
1969      *
1970      * <pre>
1971      * An external IP address associated with this instance. Specify an unused static external IP address available to the project or leave this field undefined to use an IP from a shared ephemeral IP address pool. If you specify a static external IP address, it must live in the same region as the zone of the instance.
1972      * </pre>
1973      *
1974      * <code>optional string nat_i_p = 117634556;</code>
1975      *
1976      * @return The natIP.
1977      */
getNatIP()1978     public java.lang.String getNatIP() {
1979       java.lang.Object ref = natIP_;
1980       if (!(ref instanceof java.lang.String)) {
1981         com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
1982         java.lang.String s = bs.toStringUtf8();
1983         natIP_ = s;
1984         return s;
1985       } else {
1986         return (java.lang.String) ref;
1987       }
1988     }
1989     /**
1990      *
1991      *
1992      * <pre>
1993      * An external IP address associated with this instance. Specify an unused static external IP address available to the project or leave this field undefined to use an IP from a shared ephemeral IP address pool. If you specify a static external IP address, it must live in the same region as the zone of the instance.
1994      * </pre>
1995      *
1996      * <code>optional string nat_i_p = 117634556;</code>
1997      *
1998      * @return The bytes for natIP.
1999      */
getNatIPBytes()2000     public com.google.protobuf.ByteString getNatIPBytes() {
2001       java.lang.Object ref = natIP_;
2002       if (ref instanceof String) {
2003         com.google.protobuf.ByteString b =
2004             com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
2005         natIP_ = b;
2006         return b;
2007       } else {
2008         return (com.google.protobuf.ByteString) ref;
2009       }
2010     }
2011     /**
2012      *
2013      *
2014      * <pre>
2015      * An external IP address associated with this instance. Specify an unused static external IP address available to the project or leave this field undefined to use an IP from a shared ephemeral IP address pool. If you specify a static external IP address, it must live in the same region as the zone of the instance.
2016      * </pre>
2017      *
2018      * <code>optional string nat_i_p = 117634556;</code>
2019      *
2020      * @param value The natIP to set.
2021      * @return This builder for chaining.
2022      */
setNatIP(java.lang.String value)2023     public Builder setNatIP(java.lang.String value) {
2024       if (value == null) {
2025         throw new NullPointerException();
2026       }
2027       natIP_ = value;
2028       bitField0_ |= 0x00000010;
2029       onChanged();
2030       return this;
2031     }
2032     /**
2033      *
2034      *
2035      * <pre>
2036      * An external IP address associated with this instance. Specify an unused static external IP address available to the project or leave this field undefined to use an IP from a shared ephemeral IP address pool. If you specify a static external IP address, it must live in the same region as the zone of the instance.
2037      * </pre>
2038      *
2039      * <code>optional string nat_i_p = 117634556;</code>
2040      *
2041      * @return This builder for chaining.
2042      */
clearNatIP()2043     public Builder clearNatIP() {
2044       natIP_ = getDefaultInstance().getNatIP();
2045       bitField0_ = (bitField0_ & ~0x00000010);
2046       onChanged();
2047       return this;
2048     }
2049     /**
2050      *
2051      *
2052      * <pre>
2053      * An external IP address associated with this instance. Specify an unused static external IP address available to the project or leave this field undefined to use an IP from a shared ephemeral IP address pool. If you specify a static external IP address, it must live in the same region as the zone of the instance.
2054      * </pre>
2055      *
2056      * <code>optional string nat_i_p = 117634556;</code>
2057      *
2058      * @param value The bytes for natIP to set.
2059      * @return This builder for chaining.
2060      */
setNatIPBytes(com.google.protobuf.ByteString value)2061     public Builder setNatIPBytes(com.google.protobuf.ByteString value) {
2062       if (value == null) {
2063         throw new NullPointerException();
2064       }
2065       checkByteStringIsUtf8(value);
2066       natIP_ = value;
2067       bitField0_ |= 0x00000010;
2068       onChanged();
2069       return this;
2070     }
2071 
2072     private java.lang.Object networkTier_ = "";
2073     /**
2074      *
2075      *
2076      * <pre>
2077      * This signifies the networking tier used for configuring this access configuration and can only take the following values: PREMIUM, STANDARD. If an AccessConfig is specified without a valid external IP address, an ephemeral IP will be created with this networkTier. If an AccessConfig with a valid external IP address is specified, it must match that of the networkTier associated with the Address resource owning that IP.
2078      * Check the NetworkTier enum for the list of possible values.
2079      * </pre>
2080      *
2081      * <code>optional string network_tier = 517397843;</code>
2082      *
2083      * @return Whether the networkTier field is set.
2084      */
hasNetworkTier()2085     public boolean hasNetworkTier() {
2086       return ((bitField0_ & 0x00000020) != 0);
2087     }
2088     /**
2089      *
2090      *
2091      * <pre>
2092      * This signifies the networking tier used for configuring this access configuration and can only take the following values: PREMIUM, STANDARD. If an AccessConfig is specified without a valid external IP address, an ephemeral IP will be created with this networkTier. If an AccessConfig with a valid external IP address is specified, it must match that of the networkTier associated with the Address resource owning that IP.
2093      * Check the NetworkTier enum for the list of possible values.
2094      * </pre>
2095      *
2096      * <code>optional string network_tier = 517397843;</code>
2097      *
2098      * @return The networkTier.
2099      */
getNetworkTier()2100     public java.lang.String getNetworkTier() {
2101       java.lang.Object ref = networkTier_;
2102       if (!(ref instanceof java.lang.String)) {
2103         com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
2104         java.lang.String s = bs.toStringUtf8();
2105         networkTier_ = s;
2106         return s;
2107       } else {
2108         return (java.lang.String) ref;
2109       }
2110     }
2111     /**
2112      *
2113      *
2114      * <pre>
2115      * This signifies the networking tier used for configuring this access configuration and can only take the following values: PREMIUM, STANDARD. If an AccessConfig is specified without a valid external IP address, an ephemeral IP will be created with this networkTier. If an AccessConfig with a valid external IP address is specified, it must match that of the networkTier associated with the Address resource owning that IP.
2116      * Check the NetworkTier enum for the list of possible values.
2117      * </pre>
2118      *
2119      * <code>optional string network_tier = 517397843;</code>
2120      *
2121      * @return The bytes for networkTier.
2122      */
getNetworkTierBytes()2123     public com.google.protobuf.ByteString getNetworkTierBytes() {
2124       java.lang.Object ref = networkTier_;
2125       if (ref instanceof String) {
2126         com.google.protobuf.ByteString b =
2127             com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
2128         networkTier_ = b;
2129         return b;
2130       } else {
2131         return (com.google.protobuf.ByteString) ref;
2132       }
2133     }
2134     /**
2135      *
2136      *
2137      * <pre>
2138      * This signifies the networking tier used for configuring this access configuration and can only take the following values: PREMIUM, STANDARD. If an AccessConfig is specified without a valid external IP address, an ephemeral IP will be created with this networkTier. If an AccessConfig with a valid external IP address is specified, it must match that of the networkTier associated with the Address resource owning that IP.
2139      * Check the NetworkTier enum for the list of possible values.
2140      * </pre>
2141      *
2142      * <code>optional string network_tier = 517397843;</code>
2143      *
2144      * @param value The networkTier to set.
2145      * @return This builder for chaining.
2146      */
setNetworkTier(java.lang.String value)2147     public Builder setNetworkTier(java.lang.String value) {
2148       if (value == null) {
2149         throw new NullPointerException();
2150       }
2151       networkTier_ = value;
2152       bitField0_ |= 0x00000020;
2153       onChanged();
2154       return this;
2155     }
2156     /**
2157      *
2158      *
2159      * <pre>
2160      * This signifies the networking tier used for configuring this access configuration and can only take the following values: PREMIUM, STANDARD. If an AccessConfig is specified without a valid external IP address, an ephemeral IP will be created with this networkTier. If an AccessConfig with a valid external IP address is specified, it must match that of the networkTier associated with the Address resource owning that IP.
2161      * Check the NetworkTier enum for the list of possible values.
2162      * </pre>
2163      *
2164      * <code>optional string network_tier = 517397843;</code>
2165      *
2166      * @return This builder for chaining.
2167      */
clearNetworkTier()2168     public Builder clearNetworkTier() {
2169       networkTier_ = getDefaultInstance().getNetworkTier();
2170       bitField0_ = (bitField0_ & ~0x00000020);
2171       onChanged();
2172       return this;
2173     }
2174     /**
2175      *
2176      *
2177      * <pre>
2178      * This signifies the networking tier used for configuring this access configuration and can only take the following values: PREMIUM, STANDARD. If an AccessConfig is specified without a valid external IP address, an ephemeral IP will be created with this networkTier. If an AccessConfig with a valid external IP address is specified, it must match that of the networkTier associated with the Address resource owning that IP.
2179      * Check the NetworkTier enum for the list of possible values.
2180      * </pre>
2181      *
2182      * <code>optional string network_tier = 517397843;</code>
2183      *
2184      * @param value The bytes for networkTier to set.
2185      * @return This builder for chaining.
2186      */
setNetworkTierBytes(com.google.protobuf.ByteString value)2187     public Builder setNetworkTierBytes(com.google.protobuf.ByteString value) {
2188       if (value == null) {
2189         throw new NullPointerException();
2190       }
2191       checkByteStringIsUtf8(value);
2192       networkTier_ = value;
2193       bitField0_ |= 0x00000020;
2194       onChanged();
2195       return this;
2196     }
2197 
2198     private java.lang.Object publicPtrDomainName_ = "";
2199     /**
2200      *
2201      *
2202      * <pre>
2203      * The DNS domain name for the public PTR record. You can set this field only if the `setPublicPtr` field is enabled in accessConfig. If this field is unspecified in ipv6AccessConfig, a default PTR record will be createc for first IP in associated external IPv6 range.
2204      * </pre>
2205      *
2206      * <code>optional string public_ptr_domain_name = 316599167;</code>
2207      *
2208      * @return Whether the publicPtrDomainName field is set.
2209      */
hasPublicPtrDomainName()2210     public boolean hasPublicPtrDomainName() {
2211       return ((bitField0_ & 0x00000040) != 0);
2212     }
2213     /**
2214      *
2215      *
2216      * <pre>
2217      * The DNS domain name for the public PTR record. You can set this field only if the `setPublicPtr` field is enabled in accessConfig. If this field is unspecified in ipv6AccessConfig, a default PTR record will be createc for first IP in associated external IPv6 range.
2218      * </pre>
2219      *
2220      * <code>optional string public_ptr_domain_name = 316599167;</code>
2221      *
2222      * @return The publicPtrDomainName.
2223      */
getPublicPtrDomainName()2224     public java.lang.String getPublicPtrDomainName() {
2225       java.lang.Object ref = publicPtrDomainName_;
2226       if (!(ref instanceof java.lang.String)) {
2227         com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
2228         java.lang.String s = bs.toStringUtf8();
2229         publicPtrDomainName_ = s;
2230         return s;
2231       } else {
2232         return (java.lang.String) ref;
2233       }
2234     }
2235     /**
2236      *
2237      *
2238      * <pre>
2239      * The DNS domain name for the public PTR record. You can set this field only if the `setPublicPtr` field is enabled in accessConfig. If this field is unspecified in ipv6AccessConfig, a default PTR record will be createc for first IP in associated external IPv6 range.
2240      * </pre>
2241      *
2242      * <code>optional string public_ptr_domain_name = 316599167;</code>
2243      *
2244      * @return The bytes for publicPtrDomainName.
2245      */
getPublicPtrDomainNameBytes()2246     public com.google.protobuf.ByteString getPublicPtrDomainNameBytes() {
2247       java.lang.Object ref = publicPtrDomainName_;
2248       if (ref instanceof String) {
2249         com.google.protobuf.ByteString b =
2250             com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
2251         publicPtrDomainName_ = b;
2252         return b;
2253       } else {
2254         return (com.google.protobuf.ByteString) ref;
2255       }
2256     }
2257     /**
2258      *
2259      *
2260      * <pre>
2261      * The DNS domain name for the public PTR record. You can set this field only if the `setPublicPtr` field is enabled in accessConfig. If this field is unspecified in ipv6AccessConfig, a default PTR record will be createc for first IP in associated external IPv6 range.
2262      * </pre>
2263      *
2264      * <code>optional string public_ptr_domain_name = 316599167;</code>
2265      *
2266      * @param value The publicPtrDomainName to set.
2267      * @return This builder for chaining.
2268      */
setPublicPtrDomainName(java.lang.String value)2269     public Builder setPublicPtrDomainName(java.lang.String value) {
2270       if (value == null) {
2271         throw new NullPointerException();
2272       }
2273       publicPtrDomainName_ = value;
2274       bitField0_ |= 0x00000040;
2275       onChanged();
2276       return this;
2277     }
2278     /**
2279      *
2280      *
2281      * <pre>
2282      * The DNS domain name for the public PTR record. You can set this field only if the `setPublicPtr` field is enabled in accessConfig. If this field is unspecified in ipv6AccessConfig, a default PTR record will be createc for first IP in associated external IPv6 range.
2283      * </pre>
2284      *
2285      * <code>optional string public_ptr_domain_name = 316599167;</code>
2286      *
2287      * @return This builder for chaining.
2288      */
clearPublicPtrDomainName()2289     public Builder clearPublicPtrDomainName() {
2290       publicPtrDomainName_ = getDefaultInstance().getPublicPtrDomainName();
2291       bitField0_ = (bitField0_ & ~0x00000040);
2292       onChanged();
2293       return this;
2294     }
2295     /**
2296      *
2297      *
2298      * <pre>
2299      * The DNS domain name for the public PTR record. You can set this field only if the `setPublicPtr` field is enabled in accessConfig. If this field is unspecified in ipv6AccessConfig, a default PTR record will be createc for first IP in associated external IPv6 range.
2300      * </pre>
2301      *
2302      * <code>optional string public_ptr_domain_name = 316599167;</code>
2303      *
2304      * @param value The bytes for publicPtrDomainName to set.
2305      * @return This builder for chaining.
2306      */
setPublicPtrDomainNameBytes(com.google.protobuf.ByteString value)2307     public Builder setPublicPtrDomainNameBytes(com.google.protobuf.ByteString value) {
2308       if (value == null) {
2309         throw new NullPointerException();
2310       }
2311       checkByteStringIsUtf8(value);
2312       publicPtrDomainName_ = value;
2313       bitField0_ |= 0x00000040;
2314       onChanged();
2315       return this;
2316     }
2317 
2318     private boolean setPublicPtr_;
2319     /**
2320      *
2321      *
2322      * <pre>
2323      * Specifies whether a public DNS 'PTR' record should be created to map the external IP address of the instance to a DNS domain name. This field is not used in ipv6AccessConfig. A default PTR record will be created if the VM has external IPv6 range associated.
2324      * </pre>
2325      *
2326      * <code>optional bool set_public_ptr = 523870229;</code>
2327      *
2328      * @return Whether the setPublicPtr field is set.
2329      */
2330     @java.lang.Override
hasSetPublicPtr()2331     public boolean hasSetPublicPtr() {
2332       return ((bitField0_ & 0x00000080) != 0);
2333     }
2334     /**
2335      *
2336      *
2337      * <pre>
2338      * Specifies whether a public DNS 'PTR' record should be created to map the external IP address of the instance to a DNS domain name. This field is not used in ipv6AccessConfig. A default PTR record will be created if the VM has external IPv6 range associated.
2339      * </pre>
2340      *
2341      * <code>optional bool set_public_ptr = 523870229;</code>
2342      *
2343      * @return The setPublicPtr.
2344      */
2345     @java.lang.Override
getSetPublicPtr()2346     public boolean getSetPublicPtr() {
2347       return setPublicPtr_;
2348     }
2349     /**
2350      *
2351      *
2352      * <pre>
2353      * Specifies whether a public DNS 'PTR' record should be created to map the external IP address of the instance to a DNS domain name. This field is not used in ipv6AccessConfig. A default PTR record will be created if the VM has external IPv6 range associated.
2354      * </pre>
2355      *
2356      * <code>optional bool set_public_ptr = 523870229;</code>
2357      *
2358      * @param value The setPublicPtr to set.
2359      * @return This builder for chaining.
2360      */
setSetPublicPtr(boolean value)2361     public Builder setSetPublicPtr(boolean value) {
2362 
2363       setPublicPtr_ = value;
2364       bitField0_ |= 0x00000080;
2365       onChanged();
2366       return this;
2367     }
2368     /**
2369      *
2370      *
2371      * <pre>
2372      * Specifies whether a public DNS 'PTR' record should be created to map the external IP address of the instance to a DNS domain name. This field is not used in ipv6AccessConfig. A default PTR record will be created if the VM has external IPv6 range associated.
2373      * </pre>
2374      *
2375      * <code>optional bool set_public_ptr = 523870229;</code>
2376      *
2377      * @return This builder for chaining.
2378      */
clearSetPublicPtr()2379     public Builder clearSetPublicPtr() {
2380       bitField0_ = (bitField0_ & ~0x00000080);
2381       setPublicPtr_ = false;
2382       onChanged();
2383       return this;
2384     }
2385 
2386     private java.lang.Object type_ = "";
2387     /**
2388      *
2389      *
2390      * <pre>
2391      * The type of configuration. The default and only option is ONE_TO_ONE_NAT.
2392      * Check the Type enum for the list of possible values.
2393      * </pre>
2394      *
2395      * <code>optional string type = 3575610;</code>
2396      *
2397      * @return Whether the type field is set.
2398      */
hasType()2399     public boolean hasType() {
2400       return ((bitField0_ & 0x00000100) != 0);
2401     }
2402     /**
2403      *
2404      *
2405      * <pre>
2406      * The type of configuration. The default and only option is ONE_TO_ONE_NAT.
2407      * Check the Type enum for the list of possible values.
2408      * </pre>
2409      *
2410      * <code>optional string type = 3575610;</code>
2411      *
2412      * @return The type.
2413      */
getType()2414     public java.lang.String getType() {
2415       java.lang.Object ref = type_;
2416       if (!(ref instanceof java.lang.String)) {
2417         com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
2418         java.lang.String s = bs.toStringUtf8();
2419         type_ = s;
2420         return s;
2421       } else {
2422         return (java.lang.String) ref;
2423       }
2424     }
2425     /**
2426      *
2427      *
2428      * <pre>
2429      * The type of configuration. The default and only option is ONE_TO_ONE_NAT.
2430      * Check the Type enum for the list of possible values.
2431      * </pre>
2432      *
2433      * <code>optional string type = 3575610;</code>
2434      *
2435      * @return The bytes for type.
2436      */
getTypeBytes()2437     public com.google.protobuf.ByteString getTypeBytes() {
2438       java.lang.Object ref = type_;
2439       if (ref instanceof String) {
2440         com.google.protobuf.ByteString b =
2441             com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
2442         type_ = b;
2443         return b;
2444       } else {
2445         return (com.google.protobuf.ByteString) ref;
2446       }
2447     }
2448     /**
2449      *
2450      *
2451      * <pre>
2452      * The type of configuration. The default and only option is ONE_TO_ONE_NAT.
2453      * Check the Type enum for the list of possible values.
2454      * </pre>
2455      *
2456      * <code>optional string type = 3575610;</code>
2457      *
2458      * @param value The type to set.
2459      * @return This builder for chaining.
2460      */
setType(java.lang.String value)2461     public Builder setType(java.lang.String value) {
2462       if (value == null) {
2463         throw new NullPointerException();
2464       }
2465       type_ = value;
2466       bitField0_ |= 0x00000100;
2467       onChanged();
2468       return this;
2469     }
2470     /**
2471      *
2472      *
2473      * <pre>
2474      * The type of configuration. The default and only option is ONE_TO_ONE_NAT.
2475      * Check the Type enum for the list of possible values.
2476      * </pre>
2477      *
2478      * <code>optional string type = 3575610;</code>
2479      *
2480      * @return This builder for chaining.
2481      */
clearType()2482     public Builder clearType() {
2483       type_ = getDefaultInstance().getType();
2484       bitField0_ = (bitField0_ & ~0x00000100);
2485       onChanged();
2486       return this;
2487     }
2488     /**
2489      *
2490      *
2491      * <pre>
2492      * The type of configuration. The default and only option is ONE_TO_ONE_NAT.
2493      * Check the Type enum for the list of possible values.
2494      * </pre>
2495      *
2496      * <code>optional string type = 3575610;</code>
2497      *
2498      * @param value The bytes for type to set.
2499      * @return This builder for chaining.
2500      */
setTypeBytes(com.google.protobuf.ByteString value)2501     public Builder setTypeBytes(com.google.protobuf.ByteString value) {
2502       if (value == null) {
2503         throw new NullPointerException();
2504       }
2505       checkByteStringIsUtf8(value);
2506       type_ = value;
2507       bitField0_ |= 0x00000100;
2508       onChanged();
2509       return this;
2510     }
2511 
2512     @java.lang.Override
setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields)2513     public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) {
2514       return super.setUnknownFields(unknownFields);
2515     }
2516 
2517     @java.lang.Override
mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields)2518     public final Builder mergeUnknownFields(
2519         final com.google.protobuf.UnknownFieldSet unknownFields) {
2520       return super.mergeUnknownFields(unknownFields);
2521     }
2522 
2523     // @@protoc_insertion_point(builder_scope:google.cloud.compute.v1.AccessConfig)
2524   }
2525 
2526   // @@protoc_insertion_point(class_scope:google.cloud.compute.v1.AccessConfig)
2527   private static final com.google.cloud.compute.v1.AccessConfig DEFAULT_INSTANCE;
2528 
2529   static {
2530     DEFAULT_INSTANCE = new com.google.cloud.compute.v1.AccessConfig();
2531   }
2532 
getDefaultInstance()2533   public static com.google.cloud.compute.v1.AccessConfig getDefaultInstance() {
2534     return DEFAULT_INSTANCE;
2535   }
2536 
2537   private static final com.google.protobuf.Parser<AccessConfig> PARSER =
2538       new com.google.protobuf.AbstractParser<AccessConfig>() {
2539         @java.lang.Override
2540         public AccessConfig parsePartialFrom(
2541             com.google.protobuf.CodedInputStream input,
2542             com.google.protobuf.ExtensionRegistryLite extensionRegistry)
2543             throws com.google.protobuf.InvalidProtocolBufferException {
2544           Builder builder = newBuilder();
2545           try {
2546             builder.mergeFrom(input, extensionRegistry);
2547           } catch (com.google.protobuf.InvalidProtocolBufferException e) {
2548             throw e.setUnfinishedMessage(builder.buildPartial());
2549           } catch (com.google.protobuf.UninitializedMessageException e) {
2550             throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
2551           } catch (java.io.IOException e) {
2552             throw new com.google.protobuf.InvalidProtocolBufferException(e)
2553                 .setUnfinishedMessage(builder.buildPartial());
2554           }
2555           return builder.buildPartial();
2556         }
2557       };
2558 
parser()2559   public static com.google.protobuf.Parser<AccessConfig> parser() {
2560     return PARSER;
2561   }
2562 
2563   @java.lang.Override
getParserForType()2564   public com.google.protobuf.Parser<AccessConfig> getParserForType() {
2565     return PARSER;
2566   }
2567 
2568   @java.lang.Override
getDefaultInstanceForType()2569   public com.google.cloud.compute.v1.AccessConfig getDefaultInstanceForType() {
2570     return DEFAULT_INSTANCE;
2571   }
2572 }
2573