• 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  * Contains a list of VmEndpointNatMappings.
26  * </pre>
27  *
28  * Protobuf type {@code google.cloud.compute.v1.VmEndpointNatMappingsList}
29  */
30 public final class VmEndpointNatMappingsList extends com.google.protobuf.GeneratedMessageV3
31     implements
32     // @@protoc_insertion_point(message_implements:google.cloud.compute.v1.VmEndpointNatMappingsList)
33     VmEndpointNatMappingsListOrBuilder {
34   private static final long serialVersionUID = 0L;
35   // Use VmEndpointNatMappingsList.newBuilder() to construct.
VmEndpointNatMappingsList(com.google.protobuf.GeneratedMessageV3.Builder<?> builder)36   private VmEndpointNatMappingsList(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {
37     super(builder);
38   }
39 
VmEndpointNatMappingsList()40   private VmEndpointNatMappingsList() {
41     id_ = "";
42     kind_ = "";
43     nextPageToken_ = "";
44     result_ = java.util.Collections.emptyList();
45     selfLink_ = "";
46   }
47 
48   @java.lang.Override
49   @SuppressWarnings({"unused"})
newInstance(UnusedPrivateParameter unused)50   protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
51     return new VmEndpointNatMappingsList();
52   }
53 
54   @java.lang.Override
getUnknownFields()55   public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
56     return this.unknownFields;
57   }
58 
getDescriptor()59   public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
60     return com.google.cloud.compute.v1.Compute
61         .internal_static_google_cloud_compute_v1_VmEndpointNatMappingsList_descriptor;
62   }
63 
64   @java.lang.Override
65   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable()66       internalGetFieldAccessorTable() {
67     return com.google.cloud.compute.v1.Compute
68         .internal_static_google_cloud_compute_v1_VmEndpointNatMappingsList_fieldAccessorTable
69         .ensureFieldAccessorsInitialized(
70             com.google.cloud.compute.v1.VmEndpointNatMappingsList.class,
71             com.google.cloud.compute.v1.VmEndpointNatMappingsList.Builder.class);
72   }
73 
74   private int bitField0_;
75   public static final int ID_FIELD_NUMBER = 3355;
76 
77   @SuppressWarnings("serial")
78   private volatile java.lang.Object id_ = "";
79   /**
80    *
81    *
82    * <pre>
83    * [Output Only] The unique identifier for the resource. This identifier is defined by the server.
84    * </pre>
85    *
86    * <code>optional string id = 3355;</code>
87    *
88    * @return Whether the id field is set.
89    */
90   @java.lang.Override
hasId()91   public boolean hasId() {
92     return ((bitField0_ & 0x00000001) != 0);
93   }
94   /**
95    *
96    *
97    * <pre>
98    * [Output Only] The unique identifier for the resource. This identifier is defined by the server.
99    * </pre>
100    *
101    * <code>optional string id = 3355;</code>
102    *
103    * @return The id.
104    */
105   @java.lang.Override
getId()106   public java.lang.String getId() {
107     java.lang.Object ref = id_;
108     if (ref instanceof java.lang.String) {
109       return (java.lang.String) ref;
110     } else {
111       com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
112       java.lang.String s = bs.toStringUtf8();
113       id_ = s;
114       return s;
115     }
116   }
117   /**
118    *
119    *
120    * <pre>
121    * [Output Only] The unique identifier for the resource. This identifier is defined by the server.
122    * </pre>
123    *
124    * <code>optional string id = 3355;</code>
125    *
126    * @return The bytes for id.
127    */
128   @java.lang.Override
getIdBytes()129   public com.google.protobuf.ByteString getIdBytes() {
130     java.lang.Object ref = id_;
131     if (ref instanceof java.lang.String) {
132       com.google.protobuf.ByteString b =
133           com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
134       id_ = b;
135       return b;
136     } else {
137       return (com.google.protobuf.ByteString) ref;
138     }
139   }
140 
141   public static final int KIND_FIELD_NUMBER = 3292052;
142 
143   @SuppressWarnings("serial")
144   private volatile java.lang.Object kind_ = "";
145   /**
146    *
147    *
148    * <pre>
149    * [Output Only] Type of resource. Always compute#vmEndpointNatMappingsList for lists of Nat mappings of VM endpoints.
150    * </pre>
151    *
152    * <code>optional string kind = 3292052;</code>
153    *
154    * @return Whether the kind field is set.
155    */
156   @java.lang.Override
hasKind()157   public boolean hasKind() {
158     return ((bitField0_ & 0x00000002) != 0);
159   }
160   /**
161    *
162    *
163    * <pre>
164    * [Output Only] Type of resource. Always compute#vmEndpointNatMappingsList for lists of Nat mappings of VM endpoints.
165    * </pre>
166    *
167    * <code>optional string kind = 3292052;</code>
168    *
169    * @return The kind.
170    */
171   @java.lang.Override
getKind()172   public java.lang.String getKind() {
173     java.lang.Object ref = kind_;
174     if (ref instanceof java.lang.String) {
175       return (java.lang.String) ref;
176     } else {
177       com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
178       java.lang.String s = bs.toStringUtf8();
179       kind_ = s;
180       return s;
181     }
182   }
183   /**
184    *
185    *
186    * <pre>
187    * [Output Only] Type of resource. Always compute#vmEndpointNatMappingsList for lists of Nat mappings of VM endpoints.
188    * </pre>
189    *
190    * <code>optional string kind = 3292052;</code>
191    *
192    * @return The bytes for kind.
193    */
194   @java.lang.Override
getKindBytes()195   public com.google.protobuf.ByteString getKindBytes() {
196     java.lang.Object ref = kind_;
197     if (ref instanceof java.lang.String) {
198       com.google.protobuf.ByteString b =
199           com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
200       kind_ = b;
201       return b;
202     } else {
203       return (com.google.protobuf.ByteString) ref;
204     }
205   }
206 
207   public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 79797525;
208 
209   @SuppressWarnings("serial")
210   private volatile java.lang.Object nextPageToken_ = "";
211   /**
212    *
213    *
214    * <pre>
215    * [Output Only] This token allows you to get the next page of results for list requests. If the number of results is larger than maxResults, use the nextPageToken as a value for the query parameter pageToken in the next list request. Subsequent list requests will have their own nextPageToken to continue paging through the results.
216    * </pre>
217    *
218    * <code>optional string next_page_token = 79797525;</code>
219    *
220    * @return Whether the nextPageToken field is set.
221    */
222   @java.lang.Override
hasNextPageToken()223   public boolean hasNextPageToken() {
224     return ((bitField0_ & 0x00000004) != 0);
225   }
226   /**
227    *
228    *
229    * <pre>
230    * [Output Only] This token allows you to get the next page of results for list requests. If the number of results is larger than maxResults, use the nextPageToken as a value for the query parameter pageToken in the next list request. Subsequent list requests will have their own nextPageToken to continue paging through the results.
231    * </pre>
232    *
233    * <code>optional string next_page_token = 79797525;</code>
234    *
235    * @return The nextPageToken.
236    */
237   @java.lang.Override
getNextPageToken()238   public java.lang.String getNextPageToken() {
239     java.lang.Object ref = nextPageToken_;
240     if (ref instanceof java.lang.String) {
241       return (java.lang.String) ref;
242     } else {
243       com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
244       java.lang.String s = bs.toStringUtf8();
245       nextPageToken_ = s;
246       return s;
247     }
248   }
249   /**
250    *
251    *
252    * <pre>
253    * [Output Only] This token allows you to get the next page of results for list requests. If the number of results is larger than maxResults, use the nextPageToken as a value for the query parameter pageToken in the next list request. Subsequent list requests will have their own nextPageToken to continue paging through the results.
254    * </pre>
255    *
256    * <code>optional string next_page_token = 79797525;</code>
257    *
258    * @return The bytes for nextPageToken.
259    */
260   @java.lang.Override
getNextPageTokenBytes()261   public com.google.protobuf.ByteString getNextPageTokenBytes() {
262     java.lang.Object ref = nextPageToken_;
263     if (ref instanceof java.lang.String) {
264       com.google.protobuf.ByteString b =
265           com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
266       nextPageToken_ = b;
267       return b;
268     } else {
269       return (com.google.protobuf.ByteString) ref;
270     }
271   }
272 
273   public static final int RESULT_FIELD_NUMBER = 139315229;
274 
275   @SuppressWarnings("serial")
276   private java.util.List<com.google.cloud.compute.v1.VmEndpointNatMappings> result_;
277   /**
278    *
279    *
280    * <pre>
281    * [Output Only] A list of Nat mapping information of VM endpoints.
282    * </pre>
283    *
284    * <code>repeated .google.cloud.compute.v1.VmEndpointNatMappings result = 139315229;</code>
285    */
286   @java.lang.Override
getResultList()287   public java.util.List<com.google.cloud.compute.v1.VmEndpointNatMappings> getResultList() {
288     return result_;
289   }
290   /**
291    *
292    *
293    * <pre>
294    * [Output Only] A list of Nat mapping information of VM endpoints.
295    * </pre>
296    *
297    * <code>repeated .google.cloud.compute.v1.VmEndpointNatMappings result = 139315229;</code>
298    */
299   @java.lang.Override
300   public java.util.List<? extends com.google.cloud.compute.v1.VmEndpointNatMappingsOrBuilder>
getResultOrBuilderList()301       getResultOrBuilderList() {
302     return result_;
303   }
304   /**
305    *
306    *
307    * <pre>
308    * [Output Only] A list of Nat mapping information of VM endpoints.
309    * </pre>
310    *
311    * <code>repeated .google.cloud.compute.v1.VmEndpointNatMappings result = 139315229;</code>
312    */
313   @java.lang.Override
getResultCount()314   public int getResultCount() {
315     return result_.size();
316   }
317   /**
318    *
319    *
320    * <pre>
321    * [Output Only] A list of Nat mapping information of VM endpoints.
322    * </pre>
323    *
324    * <code>repeated .google.cloud.compute.v1.VmEndpointNatMappings result = 139315229;</code>
325    */
326   @java.lang.Override
getResult(int index)327   public com.google.cloud.compute.v1.VmEndpointNatMappings getResult(int index) {
328     return result_.get(index);
329   }
330   /**
331    *
332    *
333    * <pre>
334    * [Output Only] A list of Nat mapping information of VM endpoints.
335    * </pre>
336    *
337    * <code>repeated .google.cloud.compute.v1.VmEndpointNatMappings result = 139315229;</code>
338    */
339   @java.lang.Override
getResultOrBuilder(int index)340   public com.google.cloud.compute.v1.VmEndpointNatMappingsOrBuilder getResultOrBuilder(int index) {
341     return result_.get(index);
342   }
343 
344   public static final int SELF_LINK_FIELD_NUMBER = 456214797;
345 
346   @SuppressWarnings("serial")
347   private volatile java.lang.Object selfLink_ = "";
348   /**
349    *
350    *
351    * <pre>
352    * [Output Only] Server-defined URL for this resource.
353    * </pre>
354    *
355    * <code>optional string self_link = 456214797;</code>
356    *
357    * @return Whether the selfLink field is set.
358    */
359   @java.lang.Override
hasSelfLink()360   public boolean hasSelfLink() {
361     return ((bitField0_ & 0x00000008) != 0);
362   }
363   /**
364    *
365    *
366    * <pre>
367    * [Output Only] Server-defined URL for this resource.
368    * </pre>
369    *
370    * <code>optional string self_link = 456214797;</code>
371    *
372    * @return The selfLink.
373    */
374   @java.lang.Override
getSelfLink()375   public java.lang.String getSelfLink() {
376     java.lang.Object ref = selfLink_;
377     if (ref instanceof java.lang.String) {
378       return (java.lang.String) ref;
379     } else {
380       com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
381       java.lang.String s = bs.toStringUtf8();
382       selfLink_ = s;
383       return s;
384     }
385   }
386   /**
387    *
388    *
389    * <pre>
390    * [Output Only] Server-defined URL for this resource.
391    * </pre>
392    *
393    * <code>optional string self_link = 456214797;</code>
394    *
395    * @return The bytes for selfLink.
396    */
397   @java.lang.Override
getSelfLinkBytes()398   public com.google.protobuf.ByteString getSelfLinkBytes() {
399     java.lang.Object ref = selfLink_;
400     if (ref instanceof java.lang.String) {
401       com.google.protobuf.ByteString b =
402           com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
403       selfLink_ = b;
404       return b;
405     } else {
406       return (com.google.protobuf.ByteString) ref;
407     }
408   }
409 
410   public static final int WARNING_FIELD_NUMBER = 50704284;
411   private com.google.cloud.compute.v1.Warning warning_;
412   /**
413    *
414    *
415    * <pre>
416    * [Output Only] Informational warning message.
417    * </pre>
418    *
419    * <code>optional .google.cloud.compute.v1.Warning warning = 50704284;</code>
420    *
421    * @return Whether the warning field is set.
422    */
423   @java.lang.Override
hasWarning()424   public boolean hasWarning() {
425     return ((bitField0_ & 0x00000010) != 0);
426   }
427   /**
428    *
429    *
430    * <pre>
431    * [Output Only] Informational warning message.
432    * </pre>
433    *
434    * <code>optional .google.cloud.compute.v1.Warning warning = 50704284;</code>
435    *
436    * @return The warning.
437    */
438   @java.lang.Override
getWarning()439   public com.google.cloud.compute.v1.Warning getWarning() {
440     return warning_ == null ? com.google.cloud.compute.v1.Warning.getDefaultInstance() : warning_;
441   }
442   /**
443    *
444    *
445    * <pre>
446    * [Output Only] Informational warning message.
447    * </pre>
448    *
449    * <code>optional .google.cloud.compute.v1.Warning warning = 50704284;</code>
450    */
451   @java.lang.Override
getWarningOrBuilder()452   public com.google.cloud.compute.v1.WarningOrBuilder getWarningOrBuilder() {
453     return warning_ == null ? com.google.cloud.compute.v1.Warning.getDefaultInstance() : warning_;
454   }
455 
456   private byte memoizedIsInitialized = -1;
457 
458   @java.lang.Override
isInitialized()459   public final boolean isInitialized() {
460     byte isInitialized = memoizedIsInitialized;
461     if (isInitialized == 1) return true;
462     if (isInitialized == 0) return false;
463 
464     memoizedIsInitialized = 1;
465     return true;
466   }
467 
468   @java.lang.Override
writeTo(com.google.protobuf.CodedOutputStream output)469   public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
470     if (((bitField0_ & 0x00000001) != 0)) {
471       com.google.protobuf.GeneratedMessageV3.writeString(output, 3355, id_);
472     }
473     if (((bitField0_ & 0x00000002) != 0)) {
474       com.google.protobuf.GeneratedMessageV3.writeString(output, 3292052, kind_);
475     }
476     if (((bitField0_ & 0x00000010) != 0)) {
477       output.writeMessage(50704284, getWarning());
478     }
479     if (((bitField0_ & 0x00000004) != 0)) {
480       com.google.protobuf.GeneratedMessageV3.writeString(output, 79797525, nextPageToken_);
481     }
482     for (int i = 0; i < result_.size(); i++) {
483       output.writeMessage(139315229, result_.get(i));
484     }
485     if (((bitField0_ & 0x00000008) != 0)) {
486       com.google.protobuf.GeneratedMessageV3.writeString(output, 456214797, selfLink_);
487     }
488     getUnknownFields().writeTo(output);
489   }
490 
491   @java.lang.Override
getSerializedSize()492   public int getSerializedSize() {
493     int size = memoizedSize;
494     if (size != -1) return size;
495 
496     size = 0;
497     if (((bitField0_ & 0x00000001) != 0)) {
498       size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3355, id_);
499     }
500     if (((bitField0_ & 0x00000002) != 0)) {
501       size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3292052, kind_);
502     }
503     if (((bitField0_ & 0x00000010) != 0)) {
504       size += com.google.protobuf.CodedOutputStream.computeMessageSize(50704284, getWarning());
505     }
506     if (((bitField0_ & 0x00000004) != 0)) {
507       size += com.google.protobuf.GeneratedMessageV3.computeStringSize(79797525, nextPageToken_);
508     }
509     for (int i = 0; i < result_.size(); i++) {
510       size += com.google.protobuf.CodedOutputStream.computeMessageSize(139315229, result_.get(i));
511     }
512     if (((bitField0_ & 0x00000008) != 0)) {
513       size += com.google.protobuf.GeneratedMessageV3.computeStringSize(456214797, selfLink_);
514     }
515     size += getUnknownFields().getSerializedSize();
516     memoizedSize = size;
517     return size;
518   }
519 
520   @java.lang.Override
equals(final java.lang.Object obj)521   public boolean equals(final java.lang.Object obj) {
522     if (obj == this) {
523       return true;
524     }
525     if (!(obj instanceof com.google.cloud.compute.v1.VmEndpointNatMappingsList)) {
526       return super.equals(obj);
527     }
528     com.google.cloud.compute.v1.VmEndpointNatMappingsList other =
529         (com.google.cloud.compute.v1.VmEndpointNatMappingsList) obj;
530 
531     if (hasId() != other.hasId()) return false;
532     if (hasId()) {
533       if (!getId().equals(other.getId())) return false;
534     }
535     if (hasKind() != other.hasKind()) return false;
536     if (hasKind()) {
537       if (!getKind().equals(other.getKind())) return false;
538     }
539     if (hasNextPageToken() != other.hasNextPageToken()) return false;
540     if (hasNextPageToken()) {
541       if (!getNextPageToken().equals(other.getNextPageToken())) return false;
542     }
543     if (!getResultList().equals(other.getResultList())) return false;
544     if (hasSelfLink() != other.hasSelfLink()) return false;
545     if (hasSelfLink()) {
546       if (!getSelfLink().equals(other.getSelfLink())) return false;
547     }
548     if (hasWarning() != other.hasWarning()) return false;
549     if (hasWarning()) {
550       if (!getWarning().equals(other.getWarning())) return false;
551     }
552     if (!getUnknownFields().equals(other.getUnknownFields())) return false;
553     return true;
554   }
555 
556   @java.lang.Override
hashCode()557   public int hashCode() {
558     if (memoizedHashCode != 0) {
559       return memoizedHashCode;
560     }
561     int hash = 41;
562     hash = (19 * hash) + getDescriptor().hashCode();
563     if (hasId()) {
564       hash = (37 * hash) + ID_FIELD_NUMBER;
565       hash = (53 * hash) + getId().hashCode();
566     }
567     if (hasKind()) {
568       hash = (37 * hash) + KIND_FIELD_NUMBER;
569       hash = (53 * hash) + getKind().hashCode();
570     }
571     if (hasNextPageToken()) {
572       hash = (37 * hash) + NEXT_PAGE_TOKEN_FIELD_NUMBER;
573       hash = (53 * hash) + getNextPageToken().hashCode();
574     }
575     if (getResultCount() > 0) {
576       hash = (37 * hash) + RESULT_FIELD_NUMBER;
577       hash = (53 * hash) + getResultList().hashCode();
578     }
579     if (hasSelfLink()) {
580       hash = (37 * hash) + SELF_LINK_FIELD_NUMBER;
581       hash = (53 * hash) + getSelfLink().hashCode();
582     }
583     if (hasWarning()) {
584       hash = (37 * hash) + WARNING_FIELD_NUMBER;
585       hash = (53 * hash) + getWarning().hashCode();
586     }
587     hash = (29 * hash) + getUnknownFields().hashCode();
588     memoizedHashCode = hash;
589     return hash;
590   }
591 
parseFrom( java.nio.ByteBuffer data)592   public static com.google.cloud.compute.v1.VmEndpointNatMappingsList parseFrom(
593       java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException {
594     return PARSER.parseFrom(data);
595   }
596 
parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)597   public static com.google.cloud.compute.v1.VmEndpointNatMappingsList parseFrom(
598       java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
599       throws com.google.protobuf.InvalidProtocolBufferException {
600     return PARSER.parseFrom(data, extensionRegistry);
601   }
602 
parseFrom( com.google.protobuf.ByteString data)603   public static com.google.cloud.compute.v1.VmEndpointNatMappingsList parseFrom(
604       com.google.protobuf.ByteString data)
605       throws com.google.protobuf.InvalidProtocolBufferException {
606     return PARSER.parseFrom(data);
607   }
608 
parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)609   public static com.google.cloud.compute.v1.VmEndpointNatMappingsList parseFrom(
610       com.google.protobuf.ByteString data,
611       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
612       throws com.google.protobuf.InvalidProtocolBufferException {
613     return PARSER.parseFrom(data, extensionRegistry);
614   }
615 
parseFrom(byte[] data)616   public static com.google.cloud.compute.v1.VmEndpointNatMappingsList parseFrom(byte[] data)
617       throws com.google.protobuf.InvalidProtocolBufferException {
618     return PARSER.parseFrom(data);
619   }
620 
parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)621   public static com.google.cloud.compute.v1.VmEndpointNatMappingsList parseFrom(
622       byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
623       throws com.google.protobuf.InvalidProtocolBufferException {
624     return PARSER.parseFrom(data, extensionRegistry);
625   }
626 
parseFrom( java.io.InputStream input)627   public static com.google.cloud.compute.v1.VmEndpointNatMappingsList parseFrom(
628       java.io.InputStream input) throws java.io.IOException {
629     return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
630   }
631 
parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)632   public static com.google.cloud.compute.v1.VmEndpointNatMappingsList parseFrom(
633       java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
634       throws java.io.IOException {
635     return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
636         PARSER, input, extensionRegistry);
637   }
638 
parseDelimitedFrom( java.io.InputStream input)639   public static com.google.cloud.compute.v1.VmEndpointNatMappingsList parseDelimitedFrom(
640       java.io.InputStream input) throws java.io.IOException {
641     return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
642   }
643 
parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)644   public static com.google.cloud.compute.v1.VmEndpointNatMappingsList parseDelimitedFrom(
645       java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
646       throws java.io.IOException {
647     return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
648         PARSER, input, extensionRegistry);
649   }
650 
parseFrom( com.google.protobuf.CodedInputStream input)651   public static com.google.cloud.compute.v1.VmEndpointNatMappingsList parseFrom(
652       com.google.protobuf.CodedInputStream input) throws java.io.IOException {
653     return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
654   }
655 
parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)656   public static com.google.cloud.compute.v1.VmEndpointNatMappingsList parseFrom(
657       com.google.protobuf.CodedInputStream input,
658       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
659       throws java.io.IOException {
660     return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
661         PARSER, input, extensionRegistry);
662   }
663 
664   @java.lang.Override
newBuilderForType()665   public Builder newBuilderForType() {
666     return newBuilder();
667   }
668 
newBuilder()669   public static Builder newBuilder() {
670     return DEFAULT_INSTANCE.toBuilder();
671   }
672 
newBuilder( com.google.cloud.compute.v1.VmEndpointNatMappingsList prototype)673   public static Builder newBuilder(
674       com.google.cloud.compute.v1.VmEndpointNatMappingsList prototype) {
675     return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
676   }
677 
678   @java.lang.Override
toBuilder()679   public Builder toBuilder() {
680     return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
681   }
682 
683   @java.lang.Override
newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)684   protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
685     Builder builder = new Builder(parent);
686     return builder;
687   }
688   /**
689    *
690    *
691    * <pre>
692    * Contains a list of VmEndpointNatMappings.
693    * </pre>
694    *
695    * Protobuf type {@code google.cloud.compute.v1.VmEndpointNatMappingsList}
696    */
697   public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder<Builder>
698       implements
699       // @@protoc_insertion_point(builder_implements:google.cloud.compute.v1.VmEndpointNatMappingsList)
700       com.google.cloud.compute.v1.VmEndpointNatMappingsListOrBuilder {
getDescriptor()701     public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
702       return com.google.cloud.compute.v1.Compute
703           .internal_static_google_cloud_compute_v1_VmEndpointNatMappingsList_descriptor;
704     }
705 
706     @java.lang.Override
707     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable()708         internalGetFieldAccessorTable() {
709       return com.google.cloud.compute.v1.Compute
710           .internal_static_google_cloud_compute_v1_VmEndpointNatMappingsList_fieldAccessorTable
711           .ensureFieldAccessorsInitialized(
712               com.google.cloud.compute.v1.VmEndpointNatMappingsList.class,
713               com.google.cloud.compute.v1.VmEndpointNatMappingsList.Builder.class);
714     }
715 
716     // Construct using com.google.cloud.compute.v1.VmEndpointNatMappingsList.newBuilder()
Builder()717     private Builder() {
718       maybeForceBuilderInitialization();
719     }
720 
Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)721     private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
722       super(parent);
723       maybeForceBuilderInitialization();
724     }
725 
maybeForceBuilderInitialization()726     private void maybeForceBuilderInitialization() {
727       if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {
728         getResultFieldBuilder();
729         getWarningFieldBuilder();
730       }
731     }
732 
733     @java.lang.Override
clear()734     public Builder clear() {
735       super.clear();
736       bitField0_ = 0;
737       id_ = "";
738       kind_ = "";
739       nextPageToken_ = "";
740       if (resultBuilder_ == null) {
741         result_ = java.util.Collections.emptyList();
742       } else {
743         result_ = null;
744         resultBuilder_.clear();
745       }
746       bitField0_ = (bitField0_ & ~0x00000008);
747       selfLink_ = "";
748       warning_ = null;
749       if (warningBuilder_ != null) {
750         warningBuilder_.dispose();
751         warningBuilder_ = null;
752       }
753       return this;
754     }
755 
756     @java.lang.Override
getDescriptorForType()757     public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
758       return com.google.cloud.compute.v1.Compute
759           .internal_static_google_cloud_compute_v1_VmEndpointNatMappingsList_descriptor;
760     }
761 
762     @java.lang.Override
getDefaultInstanceForType()763     public com.google.cloud.compute.v1.VmEndpointNatMappingsList getDefaultInstanceForType() {
764       return com.google.cloud.compute.v1.VmEndpointNatMappingsList.getDefaultInstance();
765     }
766 
767     @java.lang.Override
build()768     public com.google.cloud.compute.v1.VmEndpointNatMappingsList build() {
769       com.google.cloud.compute.v1.VmEndpointNatMappingsList result = buildPartial();
770       if (!result.isInitialized()) {
771         throw newUninitializedMessageException(result);
772       }
773       return result;
774     }
775 
776     @java.lang.Override
buildPartial()777     public com.google.cloud.compute.v1.VmEndpointNatMappingsList buildPartial() {
778       com.google.cloud.compute.v1.VmEndpointNatMappingsList result =
779           new com.google.cloud.compute.v1.VmEndpointNatMappingsList(this);
780       buildPartialRepeatedFields(result);
781       if (bitField0_ != 0) {
782         buildPartial0(result);
783       }
784       onBuilt();
785       return result;
786     }
787 
buildPartialRepeatedFields( com.google.cloud.compute.v1.VmEndpointNatMappingsList result)788     private void buildPartialRepeatedFields(
789         com.google.cloud.compute.v1.VmEndpointNatMappingsList result) {
790       if (resultBuilder_ == null) {
791         if (((bitField0_ & 0x00000008) != 0)) {
792           result_ = java.util.Collections.unmodifiableList(result_);
793           bitField0_ = (bitField0_ & ~0x00000008);
794         }
795         result.result_ = result_;
796       } else {
797         result.result_ = resultBuilder_.build();
798       }
799     }
800 
buildPartial0(com.google.cloud.compute.v1.VmEndpointNatMappingsList result)801     private void buildPartial0(com.google.cloud.compute.v1.VmEndpointNatMappingsList result) {
802       int from_bitField0_ = bitField0_;
803       int to_bitField0_ = 0;
804       if (((from_bitField0_ & 0x00000001) != 0)) {
805         result.id_ = id_;
806         to_bitField0_ |= 0x00000001;
807       }
808       if (((from_bitField0_ & 0x00000002) != 0)) {
809         result.kind_ = kind_;
810         to_bitField0_ |= 0x00000002;
811       }
812       if (((from_bitField0_ & 0x00000004) != 0)) {
813         result.nextPageToken_ = nextPageToken_;
814         to_bitField0_ |= 0x00000004;
815       }
816       if (((from_bitField0_ & 0x00000010) != 0)) {
817         result.selfLink_ = selfLink_;
818         to_bitField0_ |= 0x00000008;
819       }
820       if (((from_bitField0_ & 0x00000020) != 0)) {
821         result.warning_ = warningBuilder_ == null ? warning_ : warningBuilder_.build();
822         to_bitField0_ |= 0x00000010;
823       }
824       result.bitField0_ |= to_bitField0_;
825     }
826 
827     @java.lang.Override
clone()828     public Builder clone() {
829       return super.clone();
830     }
831 
832     @java.lang.Override
setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)833     public Builder setField(
834         com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
835       return super.setField(field, value);
836     }
837 
838     @java.lang.Override
clearField(com.google.protobuf.Descriptors.FieldDescriptor field)839     public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
840       return super.clearField(field);
841     }
842 
843     @java.lang.Override
clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)844     public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
845       return super.clearOneof(oneof);
846     }
847 
848     @java.lang.Override
setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value)849     public Builder setRepeatedField(
850         com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
851       return super.setRepeatedField(field, index, value);
852     }
853 
854     @java.lang.Override
addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)855     public Builder addRepeatedField(
856         com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
857       return super.addRepeatedField(field, value);
858     }
859 
860     @java.lang.Override
mergeFrom(com.google.protobuf.Message other)861     public Builder mergeFrom(com.google.protobuf.Message other) {
862       if (other instanceof com.google.cloud.compute.v1.VmEndpointNatMappingsList) {
863         return mergeFrom((com.google.cloud.compute.v1.VmEndpointNatMappingsList) other);
864       } else {
865         super.mergeFrom(other);
866         return this;
867       }
868     }
869 
mergeFrom(com.google.cloud.compute.v1.VmEndpointNatMappingsList other)870     public Builder mergeFrom(com.google.cloud.compute.v1.VmEndpointNatMappingsList other) {
871       if (other == com.google.cloud.compute.v1.VmEndpointNatMappingsList.getDefaultInstance())
872         return this;
873       if (other.hasId()) {
874         id_ = other.id_;
875         bitField0_ |= 0x00000001;
876         onChanged();
877       }
878       if (other.hasKind()) {
879         kind_ = other.kind_;
880         bitField0_ |= 0x00000002;
881         onChanged();
882       }
883       if (other.hasNextPageToken()) {
884         nextPageToken_ = other.nextPageToken_;
885         bitField0_ |= 0x00000004;
886         onChanged();
887       }
888       if (resultBuilder_ == null) {
889         if (!other.result_.isEmpty()) {
890           if (result_.isEmpty()) {
891             result_ = other.result_;
892             bitField0_ = (bitField0_ & ~0x00000008);
893           } else {
894             ensureResultIsMutable();
895             result_.addAll(other.result_);
896           }
897           onChanged();
898         }
899       } else {
900         if (!other.result_.isEmpty()) {
901           if (resultBuilder_.isEmpty()) {
902             resultBuilder_.dispose();
903             resultBuilder_ = null;
904             result_ = other.result_;
905             bitField0_ = (bitField0_ & ~0x00000008);
906             resultBuilder_ =
907                 com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders
908                     ? getResultFieldBuilder()
909                     : null;
910           } else {
911             resultBuilder_.addAllMessages(other.result_);
912           }
913         }
914       }
915       if (other.hasSelfLink()) {
916         selfLink_ = other.selfLink_;
917         bitField0_ |= 0x00000010;
918         onChanged();
919       }
920       if (other.hasWarning()) {
921         mergeWarning(other.getWarning());
922       }
923       this.mergeUnknownFields(other.getUnknownFields());
924       onChanged();
925       return this;
926     }
927 
928     @java.lang.Override
isInitialized()929     public final boolean isInitialized() {
930       return true;
931     }
932 
933     @java.lang.Override
mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)934     public Builder mergeFrom(
935         com.google.protobuf.CodedInputStream input,
936         com.google.protobuf.ExtensionRegistryLite extensionRegistry)
937         throws java.io.IOException {
938       if (extensionRegistry == null) {
939         throw new java.lang.NullPointerException();
940       }
941       try {
942         boolean done = false;
943         while (!done) {
944           int tag = input.readTag();
945           switch (tag) {
946             case 0:
947               done = true;
948               break;
949             case 26842:
950               {
951                 id_ = input.readStringRequireUtf8();
952                 bitField0_ |= 0x00000001;
953                 break;
954               } // case 26842
955             case 26336418:
956               {
957                 kind_ = input.readStringRequireUtf8();
958                 bitField0_ |= 0x00000002;
959                 break;
960               } // case 26336418
961             case 405634274:
962               {
963                 input.readMessage(getWarningFieldBuilder().getBuilder(), extensionRegistry);
964                 bitField0_ |= 0x00000020;
965                 break;
966               } // case 405634274
967             case 638380202:
968               {
969                 nextPageToken_ = input.readStringRequireUtf8();
970                 bitField0_ |= 0x00000004;
971                 break;
972               } // case 638380202
973             case 1114521834:
974               {
975                 com.google.cloud.compute.v1.VmEndpointNatMappings m =
976                     input.readMessage(
977                         com.google.cloud.compute.v1.VmEndpointNatMappings.parser(),
978                         extensionRegistry);
979                 if (resultBuilder_ == null) {
980                   ensureResultIsMutable();
981                   result_.add(m);
982                 } else {
983                   resultBuilder_.addMessage(m);
984                 }
985                 break;
986               } // case 1114521834
987             case -645248918:
988               {
989                 selfLink_ = input.readStringRequireUtf8();
990                 bitField0_ |= 0x00000010;
991                 break;
992               } // case -645248918
993             default:
994               {
995                 if (!super.parseUnknownField(input, extensionRegistry, tag)) {
996                   done = true; // was an endgroup tag
997                 }
998                 break;
999               } // default:
1000           } // switch (tag)
1001         } // while (!done)
1002       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
1003         throw e.unwrapIOException();
1004       } finally {
1005         onChanged();
1006       } // finally
1007       return this;
1008     }
1009 
1010     private int bitField0_;
1011 
1012     private java.lang.Object id_ = "";
1013     /**
1014      *
1015      *
1016      * <pre>
1017      * [Output Only] The unique identifier for the resource. This identifier is defined by the server.
1018      * </pre>
1019      *
1020      * <code>optional string id = 3355;</code>
1021      *
1022      * @return Whether the id field is set.
1023      */
hasId()1024     public boolean hasId() {
1025       return ((bitField0_ & 0x00000001) != 0);
1026     }
1027     /**
1028      *
1029      *
1030      * <pre>
1031      * [Output Only] The unique identifier for the resource. This identifier is defined by the server.
1032      * </pre>
1033      *
1034      * <code>optional string id = 3355;</code>
1035      *
1036      * @return The id.
1037      */
getId()1038     public java.lang.String getId() {
1039       java.lang.Object ref = id_;
1040       if (!(ref instanceof java.lang.String)) {
1041         com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
1042         java.lang.String s = bs.toStringUtf8();
1043         id_ = s;
1044         return s;
1045       } else {
1046         return (java.lang.String) ref;
1047       }
1048     }
1049     /**
1050      *
1051      *
1052      * <pre>
1053      * [Output Only] The unique identifier for the resource. This identifier is defined by the server.
1054      * </pre>
1055      *
1056      * <code>optional string id = 3355;</code>
1057      *
1058      * @return The bytes for id.
1059      */
getIdBytes()1060     public com.google.protobuf.ByteString getIdBytes() {
1061       java.lang.Object ref = id_;
1062       if (ref instanceof String) {
1063         com.google.protobuf.ByteString b =
1064             com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
1065         id_ = b;
1066         return b;
1067       } else {
1068         return (com.google.protobuf.ByteString) ref;
1069       }
1070     }
1071     /**
1072      *
1073      *
1074      * <pre>
1075      * [Output Only] The unique identifier for the resource. This identifier is defined by the server.
1076      * </pre>
1077      *
1078      * <code>optional string id = 3355;</code>
1079      *
1080      * @param value The id to set.
1081      * @return This builder for chaining.
1082      */
setId(java.lang.String value)1083     public Builder setId(java.lang.String value) {
1084       if (value == null) {
1085         throw new NullPointerException();
1086       }
1087       id_ = value;
1088       bitField0_ |= 0x00000001;
1089       onChanged();
1090       return this;
1091     }
1092     /**
1093      *
1094      *
1095      * <pre>
1096      * [Output Only] The unique identifier for the resource. This identifier is defined by the server.
1097      * </pre>
1098      *
1099      * <code>optional string id = 3355;</code>
1100      *
1101      * @return This builder for chaining.
1102      */
clearId()1103     public Builder clearId() {
1104       id_ = getDefaultInstance().getId();
1105       bitField0_ = (bitField0_ & ~0x00000001);
1106       onChanged();
1107       return this;
1108     }
1109     /**
1110      *
1111      *
1112      * <pre>
1113      * [Output Only] The unique identifier for the resource. This identifier is defined by the server.
1114      * </pre>
1115      *
1116      * <code>optional string id = 3355;</code>
1117      *
1118      * @param value The bytes for id to set.
1119      * @return This builder for chaining.
1120      */
setIdBytes(com.google.protobuf.ByteString value)1121     public Builder setIdBytes(com.google.protobuf.ByteString value) {
1122       if (value == null) {
1123         throw new NullPointerException();
1124       }
1125       checkByteStringIsUtf8(value);
1126       id_ = value;
1127       bitField0_ |= 0x00000001;
1128       onChanged();
1129       return this;
1130     }
1131 
1132     private java.lang.Object kind_ = "";
1133     /**
1134      *
1135      *
1136      * <pre>
1137      * [Output Only] Type of resource. Always compute#vmEndpointNatMappingsList for lists of Nat mappings of VM endpoints.
1138      * </pre>
1139      *
1140      * <code>optional string kind = 3292052;</code>
1141      *
1142      * @return Whether the kind field is set.
1143      */
hasKind()1144     public boolean hasKind() {
1145       return ((bitField0_ & 0x00000002) != 0);
1146     }
1147     /**
1148      *
1149      *
1150      * <pre>
1151      * [Output Only] Type of resource. Always compute#vmEndpointNatMappingsList for lists of Nat mappings of VM endpoints.
1152      * </pre>
1153      *
1154      * <code>optional string kind = 3292052;</code>
1155      *
1156      * @return The kind.
1157      */
getKind()1158     public java.lang.String getKind() {
1159       java.lang.Object ref = kind_;
1160       if (!(ref instanceof java.lang.String)) {
1161         com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
1162         java.lang.String s = bs.toStringUtf8();
1163         kind_ = s;
1164         return s;
1165       } else {
1166         return (java.lang.String) ref;
1167       }
1168     }
1169     /**
1170      *
1171      *
1172      * <pre>
1173      * [Output Only] Type of resource. Always compute#vmEndpointNatMappingsList for lists of Nat mappings of VM endpoints.
1174      * </pre>
1175      *
1176      * <code>optional string kind = 3292052;</code>
1177      *
1178      * @return The bytes for kind.
1179      */
getKindBytes()1180     public com.google.protobuf.ByteString getKindBytes() {
1181       java.lang.Object ref = kind_;
1182       if (ref instanceof String) {
1183         com.google.protobuf.ByteString b =
1184             com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
1185         kind_ = b;
1186         return b;
1187       } else {
1188         return (com.google.protobuf.ByteString) ref;
1189       }
1190     }
1191     /**
1192      *
1193      *
1194      * <pre>
1195      * [Output Only] Type of resource. Always compute#vmEndpointNatMappingsList for lists of Nat mappings of VM endpoints.
1196      * </pre>
1197      *
1198      * <code>optional string kind = 3292052;</code>
1199      *
1200      * @param value The kind to set.
1201      * @return This builder for chaining.
1202      */
setKind(java.lang.String value)1203     public Builder setKind(java.lang.String value) {
1204       if (value == null) {
1205         throw new NullPointerException();
1206       }
1207       kind_ = value;
1208       bitField0_ |= 0x00000002;
1209       onChanged();
1210       return this;
1211     }
1212     /**
1213      *
1214      *
1215      * <pre>
1216      * [Output Only] Type of resource. Always compute#vmEndpointNatMappingsList for lists of Nat mappings of VM endpoints.
1217      * </pre>
1218      *
1219      * <code>optional string kind = 3292052;</code>
1220      *
1221      * @return This builder for chaining.
1222      */
clearKind()1223     public Builder clearKind() {
1224       kind_ = getDefaultInstance().getKind();
1225       bitField0_ = (bitField0_ & ~0x00000002);
1226       onChanged();
1227       return this;
1228     }
1229     /**
1230      *
1231      *
1232      * <pre>
1233      * [Output Only] Type of resource. Always compute#vmEndpointNatMappingsList for lists of Nat mappings of VM endpoints.
1234      * </pre>
1235      *
1236      * <code>optional string kind = 3292052;</code>
1237      *
1238      * @param value The bytes for kind to set.
1239      * @return This builder for chaining.
1240      */
setKindBytes(com.google.protobuf.ByteString value)1241     public Builder setKindBytes(com.google.protobuf.ByteString value) {
1242       if (value == null) {
1243         throw new NullPointerException();
1244       }
1245       checkByteStringIsUtf8(value);
1246       kind_ = value;
1247       bitField0_ |= 0x00000002;
1248       onChanged();
1249       return this;
1250     }
1251 
1252     private java.lang.Object nextPageToken_ = "";
1253     /**
1254      *
1255      *
1256      * <pre>
1257      * [Output Only] This token allows you to get the next page of results for list requests. If the number of results is larger than maxResults, use the nextPageToken as a value for the query parameter pageToken in the next list request. Subsequent list requests will have their own nextPageToken to continue paging through the results.
1258      * </pre>
1259      *
1260      * <code>optional string next_page_token = 79797525;</code>
1261      *
1262      * @return Whether the nextPageToken field is set.
1263      */
hasNextPageToken()1264     public boolean hasNextPageToken() {
1265       return ((bitField0_ & 0x00000004) != 0);
1266     }
1267     /**
1268      *
1269      *
1270      * <pre>
1271      * [Output Only] This token allows you to get the next page of results for list requests. If the number of results is larger than maxResults, use the nextPageToken as a value for the query parameter pageToken in the next list request. Subsequent list requests will have their own nextPageToken to continue paging through the results.
1272      * </pre>
1273      *
1274      * <code>optional string next_page_token = 79797525;</code>
1275      *
1276      * @return The nextPageToken.
1277      */
getNextPageToken()1278     public java.lang.String getNextPageToken() {
1279       java.lang.Object ref = nextPageToken_;
1280       if (!(ref instanceof java.lang.String)) {
1281         com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
1282         java.lang.String s = bs.toStringUtf8();
1283         nextPageToken_ = s;
1284         return s;
1285       } else {
1286         return (java.lang.String) ref;
1287       }
1288     }
1289     /**
1290      *
1291      *
1292      * <pre>
1293      * [Output Only] This token allows you to get the next page of results for list requests. If the number of results is larger than maxResults, use the nextPageToken as a value for the query parameter pageToken in the next list request. Subsequent list requests will have their own nextPageToken to continue paging through the results.
1294      * </pre>
1295      *
1296      * <code>optional string next_page_token = 79797525;</code>
1297      *
1298      * @return The bytes for nextPageToken.
1299      */
getNextPageTokenBytes()1300     public com.google.protobuf.ByteString getNextPageTokenBytes() {
1301       java.lang.Object ref = nextPageToken_;
1302       if (ref instanceof String) {
1303         com.google.protobuf.ByteString b =
1304             com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
1305         nextPageToken_ = b;
1306         return b;
1307       } else {
1308         return (com.google.protobuf.ByteString) ref;
1309       }
1310     }
1311     /**
1312      *
1313      *
1314      * <pre>
1315      * [Output Only] This token allows you to get the next page of results for list requests. If the number of results is larger than maxResults, use the nextPageToken as a value for the query parameter pageToken in the next list request. Subsequent list requests will have their own nextPageToken to continue paging through the results.
1316      * </pre>
1317      *
1318      * <code>optional string next_page_token = 79797525;</code>
1319      *
1320      * @param value The nextPageToken to set.
1321      * @return This builder for chaining.
1322      */
setNextPageToken(java.lang.String value)1323     public Builder setNextPageToken(java.lang.String value) {
1324       if (value == null) {
1325         throw new NullPointerException();
1326       }
1327       nextPageToken_ = value;
1328       bitField0_ |= 0x00000004;
1329       onChanged();
1330       return this;
1331     }
1332     /**
1333      *
1334      *
1335      * <pre>
1336      * [Output Only] This token allows you to get the next page of results for list requests. If the number of results is larger than maxResults, use the nextPageToken as a value for the query parameter pageToken in the next list request. Subsequent list requests will have their own nextPageToken to continue paging through the results.
1337      * </pre>
1338      *
1339      * <code>optional string next_page_token = 79797525;</code>
1340      *
1341      * @return This builder for chaining.
1342      */
clearNextPageToken()1343     public Builder clearNextPageToken() {
1344       nextPageToken_ = getDefaultInstance().getNextPageToken();
1345       bitField0_ = (bitField0_ & ~0x00000004);
1346       onChanged();
1347       return this;
1348     }
1349     /**
1350      *
1351      *
1352      * <pre>
1353      * [Output Only] This token allows you to get the next page of results for list requests. If the number of results is larger than maxResults, use the nextPageToken as a value for the query parameter pageToken in the next list request. Subsequent list requests will have their own nextPageToken to continue paging through the results.
1354      * </pre>
1355      *
1356      * <code>optional string next_page_token = 79797525;</code>
1357      *
1358      * @param value The bytes for nextPageToken to set.
1359      * @return This builder for chaining.
1360      */
setNextPageTokenBytes(com.google.protobuf.ByteString value)1361     public Builder setNextPageTokenBytes(com.google.protobuf.ByteString value) {
1362       if (value == null) {
1363         throw new NullPointerException();
1364       }
1365       checkByteStringIsUtf8(value);
1366       nextPageToken_ = value;
1367       bitField0_ |= 0x00000004;
1368       onChanged();
1369       return this;
1370     }
1371 
1372     private java.util.List<com.google.cloud.compute.v1.VmEndpointNatMappings> result_ =
1373         java.util.Collections.emptyList();
1374 
ensureResultIsMutable()1375     private void ensureResultIsMutable() {
1376       if (!((bitField0_ & 0x00000008) != 0)) {
1377         result_ =
1378             new java.util.ArrayList<com.google.cloud.compute.v1.VmEndpointNatMappings>(result_);
1379         bitField0_ |= 0x00000008;
1380       }
1381     }
1382 
1383     private com.google.protobuf.RepeatedFieldBuilderV3<
1384             com.google.cloud.compute.v1.VmEndpointNatMappings,
1385             com.google.cloud.compute.v1.VmEndpointNatMappings.Builder,
1386             com.google.cloud.compute.v1.VmEndpointNatMappingsOrBuilder>
1387         resultBuilder_;
1388 
1389     /**
1390      *
1391      *
1392      * <pre>
1393      * [Output Only] A list of Nat mapping information of VM endpoints.
1394      * </pre>
1395      *
1396      * <code>repeated .google.cloud.compute.v1.VmEndpointNatMappings result = 139315229;</code>
1397      */
getResultList()1398     public java.util.List<com.google.cloud.compute.v1.VmEndpointNatMappings> getResultList() {
1399       if (resultBuilder_ == null) {
1400         return java.util.Collections.unmodifiableList(result_);
1401       } else {
1402         return resultBuilder_.getMessageList();
1403       }
1404     }
1405     /**
1406      *
1407      *
1408      * <pre>
1409      * [Output Only] A list of Nat mapping information of VM endpoints.
1410      * </pre>
1411      *
1412      * <code>repeated .google.cloud.compute.v1.VmEndpointNatMappings result = 139315229;</code>
1413      */
getResultCount()1414     public int getResultCount() {
1415       if (resultBuilder_ == null) {
1416         return result_.size();
1417       } else {
1418         return resultBuilder_.getCount();
1419       }
1420     }
1421     /**
1422      *
1423      *
1424      * <pre>
1425      * [Output Only] A list of Nat mapping information of VM endpoints.
1426      * </pre>
1427      *
1428      * <code>repeated .google.cloud.compute.v1.VmEndpointNatMappings result = 139315229;</code>
1429      */
getResult(int index)1430     public com.google.cloud.compute.v1.VmEndpointNatMappings getResult(int index) {
1431       if (resultBuilder_ == null) {
1432         return result_.get(index);
1433       } else {
1434         return resultBuilder_.getMessage(index);
1435       }
1436     }
1437     /**
1438      *
1439      *
1440      * <pre>
1441      * [Output Only] A list of Nat mapping information of VM endpoints.
1442      * </pre>
1443      *
1444      * <code>repeated .google.cloud.compute.v1.VmEndpointNatMappings result = 139315229;</code>
1445      */
setResult(int index, com.google.cloud.compute.v1.VmEndpointNatMappings value)1446     public Builder setResult(int index, com.google.cloud.compute.v1.VmEndpointNatMappings value) {
1447       if (resultBuilder_ == null) {
1448         if (value == null) {
1449           throw new NullPointerException();
1450         }
1451         ensureResultIsMutable();
1452         result_.set(index, value);
1453         onChanged();
1454       } else {
1455         resultBuilder_.setMessage(index, value);
1456       }
1457       return this;
1458     }
1459     /**
1460      *
1461      *
1462      * <pre>
1463      * [Output Only] A list of Nat mapping information of VM endpoints.
1464      * </pre>
1465      *
1466      * <code>repeated .google.cloud.compute.v1.VmEndpointNatMappings result = 139315229;</code>
1467      */
setResult( int index, com.google.cloud.compute.v1.VmEndpointNatMappings.Builder builderForValue)1468     public Builder setResult(
1469         int index, com.google.cloud.compute.v1.VmEndpointNatMappings.Builder builderForValue) {
1470       if (resultBuilder_ == null) {
1471         ensureResultIsMutable();
1472         result_.set(index, builderForValue.build());
1473         onChanged();
1474       } else {
1475         resultBuilder_.setMessage(index, builderForValue.build());
1476       }
1477       return this;
1478     }
1479     /**
1480      *
1481      *
1482      * <pre>
1483      * [Output Only] A list of Nat mapping information of VM endpoints.
1484      * </pre>
1485      *
1486      * <code>repeated .google.cloud.compute.v1.VmEndpointNatMappings result = 139315229;</code>
1487      */
addResult(com.google.cloud.compute.v1.VmEndpointNatMappings value)1488     public Builder addResult(com.google.cloud.compute.v1.VmEndpointNatMappings value) {
1489       if (resultBuilder_ == null) {
1490         if (value == null) {
1491           throw new NullPointerException();
1492         }
1493         ensureResultIsMutable();
1494         result_.add(value);
1495         onChanged();
1496       } else {
1497         resultBuilder_.addMessage(value);
1498       }
1499       return this;
1500     }
1501     /**
1502      *
1503      *
1504      * <pre>
1505      * [Output Only] A list of Nat mapping information of VM endpoints.
1506      * </pre>
1507      *
1508      * <code>repeated .google.cloud.compute.v1.VmEndpointNatMappings result = 139315229;</code>
1509      */
addResult(int index, com.google.cloud.compute.v1.VmEndpointNatMappings value)1510     public Builder addResult(int index, com.google.cloud.compute.v1.VmEndpointNatMappings value) {
1511       if (resultBuilder_ == null) {
1512         if (value == null) {
1513           throw new NullPointerException();
1514         }
1515         ensureResultIsMutable();
1516         result_.add(index, value);
1517         onChanged();
1518       } else {
1519         resultBuilder_.addMessage(index, value);
1520       }
1521       return this;
1522     }
1523     /**
1524      *
1525      *
1526      * <pre>
1527      * [Output Only] A list of Nat mapping information of VM endpoints.
1528      * </pre>
1529      *
1530      * <code>repeated .google.cloud.compute.v1.VmEndpointNatMappings result = 139315229;</code>
1531      */
addResult( com.google.cloud.compute.v1.VmEndpointNatMappings.Builder builderForValue)1532     public Builder addResult(
1533         com.google.cloud.compute.v1.VmEndpointNatMappings.Builder builderForValue) {
1534       if (resultBuilder_ == null) {
1535         ensureResultIsMutable();
1536         result_.add(builderForValue.build());
1537         onChanged();
1538       } else {
1539         resultBuilder_.addMessage(builderForValue.build());
1540       }
1541       return this;
1542     }
1543     /**
1544      *
1545      *
1546      * <pre>
1547      * [Output Only] A list of Nat mapping information of VM endpoints.
1548      * </pre>
1549      *
1550      * <code>repeated .google.cloud.compute.v1.VmEndpointNatMappings result = 139315229;</code>
1551      */
addResult( int index, com.google.cloud.compute.v1.VmEndpointNatMappings.Builder builderForValue)1552     public Builder addResult(
1553         int index, com.google.cloud.compute.v1.VmEndpointNatMappings.Builder builderForValue) {
1554       if (resultBuilder_ == null) {
1555         ensureResultIsMutable();
1556         result_.add(index, builderForValue.build());
1557         onChanged();
1558       } else {
1559         resultBuilder_.addMessage(index, builderForValue.build());
1560       }
1561       return this;
1562     }
1563     /**
1564      *
1565      *
1566      * <pre>
1567      * [Output Only] A list of Nat mapping information of VM endpoints.
1568      * </pre>
1569      *
1570      * <code>repeated .google.cloud.compute.v1.VmEndpointNatMappings result = 139315229;</code>
1571      */
addAllResult( java.lang.Iterable<? extends com.google.cloud.compute.v1.VmEndpointNatMappings> values)1572     public Builder addAllResult(
1573         java.lang.Iterable<? extends com.google.cloud.compute.v1.VmEndpointNatMappings> values) {
1574       if (resultBuilder_ == null) {
1575         ensureResultIsMutable();
1576         com.google.protobuf.AbstractMessageLite.Builder.addAll(values, result_);
1577         onChanged();
1578       } else {
1579         resultBuilder_.addAllMessages(values);
1580       }
1581       return this;
1582     }
1583     /**
1584      *
1585      *
1586      * <pre>
1587      * [Output Only] A list of Nat mapping information of VM endpoints.
1588      * </pre>
1589      *
1590      * <code>repeated .google.cloud.compute.v1.VmEndpointNatMappings result = 139315229;</code>
1591      */
clearResult()1592     public Builder clearResult() {
1593       if (resultBuilder_ == null) {
1594         result_ = java.util.Collections.emptyList();
1595         bitField0_ = (bitField0_ & ~0x00000008);
1596         onChanged();
1597       } else {
1598         resultBuilder_.clear();
1599       }
1600       return this;
1601     }
1602     /**
1603      *
1604      *
1605      * <pre>
1606      * [Output Only] A list of Nat mapping information of VM endpoints.
1607      * </pre>
1608      *
1609      * <code>repeated .google.cloud.compute.v1.VmEndpointNatMappings result = 139315229;</code>
1610      */
removeResult(int index)1611     public Builder removeResult(int index) {
1612       if (resultBuilder_ == null) {
1613         ensureResultIsMutable();
1614         result_.remove(index);
1615         onChanged();
1616       } else {
1617         resultBuilder_.remove(index);
1618       }
1619       return this;
1620     }
1621     /**
1622      *
1623      *
1624      * <pre>
1625      * [Output Only] A list of Nat mapping information of VM endpoints.
1626      * </pre>
1627      *
1628      * <code>repeated .google.cloud.compute.v1.VmEndpointNatMappings result = 139315229;</code>
1629      */
getResultBuilder(int index)1630     public com.google.cloud.compute.v1.VmEndpointNatMappings.Builder getResultBuilder(int index) {
1631       return getResultFieldBuilder().getBuilder(index);
1632     }
1633     /**
1634      *
1635      *
1636      * <pre>
1637      * [Output Only] A list of Nat mapping information of VM endpoints.
1638      * </pre>
1639      *
1640      * <code>repeated .google.cloud.compute.v1.VmEndpointNatMappings result = 139315229;</code>
1641      */
getResultOrBuilder( int index)1642     public com.google.cloud.compute.v1.VmEndpointNatMappingsOrBuilder getResultOrBuilder(
1643         int index) {
1644       if (resultBuilder_ == null) {
1645         return result_.get(index);
1646       } else {
1647         return resultBuilder_.getMessageOrBuilder(index);
1648       }
1649     }
1650     /**
1651      *
1652      *
1653      * <pre>
1654      * [Output Only] A list of Nat mapping information of VM endpoints.
1655      * </pre>
1656      *
1657      * <code>repeated .google.cloud.compute.v1.VmEndpointNatMappings result = 139315229;</code>
1658      */
1659     public java.util.List<? extends com.google.cloud.compute.v1.VmEndpointNatMappingsOrBuilder>
getResultOrBuilderList()1660         getResultOrBuilderList() {
1661       if (resultBuilder_ != null) {
1662         return resultBuilder_.getMessageOrBuilderList();
1663       } else {
1664         return java.util.Collections.unmodifiableList(result_);
1665       }
1666     }
1667     /**
1668      *
1669      *
1670      * <pre>
1671      * [Output Only] A list of Nat mapping information of VM endpoints.
1672      * </pre>
1673      *
1674      * <code>repeated .google.cloud.compute.v1.VmEndpointNatMappings result = 139315229;</code>
1675      */
addResultBuilder()1676     public com.google.cloud.compute.v1.VmEndpointNatMappings.Builder addResultBuilder() {
1677       return getResultFieldBuilder()
1678           .addBuilder(com.google.cloud.compute.v1.VmEndpointNatMappings.getDefaultInstance());
1679     }
1680     /**
1681      *
1682      *
1683      * <pre>
1684      * [Output Only] A list of Nat mapping information of VM endpoints.
1685      * </pre>
1686      *
1687      * <code>repeated .google.cloud.compute.v1.VmEndpointNatMappings result = 139315229;</code>
1688      */
addResultBuilder(int index)1689     public com.google.cloud.compute.v1.VmEndpointNatMappings.Builder addResultBuilder(int index) {
1690       return getResultFieldBuilder()
1691           .addBuilder(
1692               index, com.google.cloud.compute.v1.VmEndpointNatMappings.getDefaultInstance());
1693     }
1694     /**
1695      *
1696      *
1697      * <pre>
1698      * [Output Only] A list of Nat mapping information of VM endpoints.
1699      * </pre>
1700      *
1701      * <code>repeated .google.cloud.compute.v1.VmEndpointNatMappings result = 139315229;</code>
1702      */
1703     public java.util.List<com.google.cloud.compute.v1.VmEndpointNatMappings.Builder>
getResultBuilderList()1704         getResultBuilderList() {
1705       return getResultFieldBuilder().getBuilderList();
1706     }
1707 
1708     private com.google.protobuf.RepeatedFieldBuilderV3<
1709             com.google.cloud.compute.v1.VmEndpointNatMappings,
1710             com.google.cloud.compute.v1.VmEndpointNatMappings.Builder,
1711             com.google.cloud.compute.v1.VmEndpointNatMappingsOrBuilder>
getResultFieldBuilder()1712         getResultFieldBuilder() {
1713       if (resultBuilder_ == null) {
1714         resultBuilder_ =
1715             new com.google.protobuf.RepeatedFieldBuilderV3<
1716                 com.google.cloud.compute.v1.VmEndpointNatMappings,
1717                 com.google.cloud.compute.v1.VmEndpointNatMappings.Builder,
1718                 com.google.cloud.compute.v1.VmEndpointNatMappingsOrBuilder>(
1719                 result_, ((bitField0_ & 0x00000008) != 0), getParentForChildren(), isClean());
1720         result_ = null;
1721       }
1722       return resultBuilder_;
1723     }
1724 
1725     private java.lang.Object selfLink_ = "";
1726     /**
1727      *
1728      *
1729      * <pre>
1730      * [Output Only] Server-defined URL for this resource.
1731      * </pre>
1732      *
1733      * <code>optional string self_link = 456214797;</code>
1734      *
1735      * @return Whether the selfLink field is set.
1736      */
hasSelfLink()1737     public boolean hasSelfLink() {
1738       return ((bitField0_ & 0x00000010) != 0);
1739     }
1740     /**
1741      *
1742      *
1743      * <pre>
1744      * [Output Only] Server-defined URL for this resource.
1745      * </pre>
1746      *
1747      * <code>optional string self_link = 456214797;</code>
1748      *
1749      * @return The selfLink.
1750      */
getSelfLink()1751     public java.lang.String getSelfLink() {
1752       java.lang.Object ref = selfLink_;
1753       if (!(ref instanceof java.lang.String)) {
1754         com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
1755         java.lang.String s = bs.toStringUtf8();
1756         selfLink_ = s;
1757         return s;
1758       } else {
1759         return (java.lang.String) ref;
1760       }
1761     }
1762     /**
1763      *
1764      *
1765      * <pre>
1766      * [Output Only] Server-defined URL for this resource.
1767      * </pre>
1768      *
1769      * <code>optional string self_link = 456214797;</code>
1770      *
1771      * @return The bytes for selfLink.
1772      */
getSelfLinkBytes()1773     public com.google.protobuf.ByteString getSelfLinkBytes() {
1774       java.lang.Object ref = selfLink_;
1775       if (ref instanceof String) {
1776         com.google.protobuf.ByteString b =
1777             com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
1778         selfLink_ = b;
1779         return b;
1780       } else {
1781         return (com.google.protobuf.ByteString) ref;
1782       }
1783     }
1784     /**
1785      *
1786      *
1787      * <pre>
1788      * [Output Only] Server-defined URL for this resource.
1789      * </pre>
1790      *
1791      * <code>optional string self_link = 456214797;</code>
1792      *
1793      * @param value The selfLink to set.
1794      * @return This builder for chaining.
1795      */
setSelfLink(java.lang.String value)1796     public Builder setSelfLink(java.lang.String value) {
1797       if (value == null) {
1798         throw new NullPointerException();
1799       }
1800       selfLink_ = value;
1801       bitField0_ |= 0x00000010;
1802       onChanged();
1803       return this;
1804     }
1805     /**
1806      *
1807      *
1808      * <pre>
1809      * [Output Only] Server-defined URL for this resource.
1810      * </pre>
1811      *
1812      * <code>optional string self_link = 456214797;</code>
1813      *
1814      * @return This builder for chaining.
1815      */
clearSelfLink()1816     public Builder clearSelfLink() {
1817       selfLink_ = getDefaultInstance().getSelfLink();
1818       bitField0_ = (bitField0_ & ~0x00000010);
1819       onChanged();
1820       return this;
1821     }
1822     /**
1823      *
1824      *
1825      * <pre>
1826      * [Output Only] Server-defined URL for this resource.
1827      * </pre>
1828      *
1829      * <code>optional string self_link = 456214797;</code>
1830      *
1831      * @param value The bytes for selfLink to set.
1832      * @return This builder for chaining.
1833      */
setSelfLinkBytes(com.google.protobuf.ByteString value)1834     public Builder setSelfLinkBytes(com.google.protobuf.ByteString value) {
1835       if (value == null) {
1836         throw new NullPointerException();
1837       }
1838       checkByteStringIsUtf8(value);
1839       selfLink_ = value;
1840       bitField0_ |= 0x00000010;
1841       onChanged();
1842       return this;
1843     }
1844 
1845     private com.google.cloud.compute.v1.Warning warning_;
1846     private com.google.protobuf.SingleFieldBuilderV3<
1847             com.google.cloud.compute.v1.Warning,
1848             com.google.cloud.compute.v1.Warning.Builder,
1849             com.google.cloud.compute.v1.WarningOrBuilder>
1850         warningBuilder_;
1851     /**
1852      *
1853      *
1854      * <pre>
1855      * [Output Only] Informational warning message.
1856      * </pre>
1857      *
1858      * <code>optional .google.cloud.compute.v1.Warning warning = 50704284;</code>
1859      *
1860      * @return Whether the warning field is set.
1861      */
hasWarning()1862     public boolean hasWarning() {
1863       return ((bitField0_ & 0x00000020) != 0);
1864     }
1865     /**
1866      *
1867      *
1868      * <pre>
1869      * [Output Only] Informational warning message.
1870      * </pre>
1871      *
1872      * <code>optional .google.cloud.compute.v1.Warning warning = 50704284;</code>
1873      *
1874      * @return The warning.
1875      */
getWarning()1876     public com.google.cloud.compute.v1.Warning getWarning() {
1877       if (warningBuilder_ == null) {
1878         return warning_ == null
1879             ? com.google.cloud.compute.v1.Warning.getDefaultInstance()
1880             : warning_;
1881       } else {
1882         return warningBuilder_.getMessage();
1883       }
1884     }
1885     /**
1886      *
1887      *
1888      * <pre>
1889      * [Output Only] Informational warning message.
1890      * </pre>
1891      *
1892      * <code>optional .google.cloud.compute.v1.Warning warning = 50704284;</code>
1893      */
setWarning(com.google.cloud.compute.v1.Warning value)1894     public Builder setWarning(com.google.cloud.compute.v1.Warning value) {
1895       if (warningBuilder_ == null) {
1896         if (value == null) {
1897           throw new NullPointerException();
1898         }
1899         warning_ = value;
1900       } else {
1901         warningBuilder_.setMessage(value);
1902       }
1903       bitField0_ |= 0x00000020;
1904       onChanged();
1905       return this;
1906     }
1907     /**
1908      *
1909      *
1910      * <pre>
1911      * [Output Only] Informational warning message.
1912      * </pre>
1913      *
1914      * <code>optional .google.cloud.compute.v1.Warning warning = 50704284;</code>
1915      */
setWarning(com.google.cloud.compute.v1.Warning.Builder builderForValue)1916     public Builder setWarning(com.google.cloud.compute.v1.Warning.Builder builderForValue) {
1917       if (warningBuilder_ == null) {
1918         warning_ = builderForValue.build();
1919       } else {
1920         warningBuilder_.setMessage(builderForValue.build());
1921       }
1922       bitField0_ |= 0x00000020;
1923       onChanged();
1924       return this;
1925     }
1926     /**
1927      *
1928      *
1929      * <pre>
1930      * [Output Only] Informational warning message.
1931      * </pre>
1932      *
1933      * <code>optional .google.cloud.compute.v1.Warning warning = 50704284;</code>
1934      */
mergeWarning(com.google.cloud.compute.v1.Warning value)1935     public Builder mergeWarning(com.google.cloud.compute.v1.Warning value) {
1936       if (warningBuilder_ == null) {
1937         if (((bitField0_ & 0x00000020) != 0)
1938             && warning_ != null
1939             && warning_ != com.google.cloud.compute.v1.Warning.getDefaultInstance()) {
1940           getWarningBuilder().mergeFrom(value);
1941         } else {
1942           warning_ = value;
1943         }
1944       } else {
1945         warningBuilder_.mergeFrom(value);
1946       }
1947       bitField0_ |= 0x00000020;
1948       onChanged();
1949       return this;
1950     }
1951     /**
1952      *
1953      *
1954      * <pre>
1955      * [Output Only] Informational warning message.
1956      * </pre>
1957      *
1958      * <code>optional .google.cloud.compute.v1.Warning warning = 50704284;</code>
1959      */
clearWarning()1960     public Builder clearWarning() {
1961       bitField0_ = (bitField0_ & ~0x00000020);
1962       warning_ = null;
1963       if (warningBuilder_ != null) {
1964         warningBuilder_.dispose();
1965         warningBuilder_ = null;
1966       }
1967       onChanged();
1968       return this;
1969     }
1970     /**
1971      *
1972      *
1973      * <pre>
1974      * [Output Only] Informational warning message.
1975      * </pre>
1976      *
1977      * <code>optional .google.cloud.compute.v1.Warning warning = 50704284;</code>
1978      */
getWarningBuilder()1979     public com.google.cloud.compute.v1.Warning.Builder getWarningBuilder() {
1980       bitField0_ |= 0x00000020;
1981       onChanged();
1982       return getWarningFieldBuilder().getBuilder();
1983     }
1984     /**
1985      *
1986      *
1987      * <pre>
1988      * [Output Only] Informational warning message.
1989      * </pre>
1990      *
1991      * <code>optional .google.cloud.compute.v1.Warning warning = 50704284;</code>
1992      */
getWarningOrBuilder()1993     public com.google.cloud.compute.v1.WarningOrBuilder getWarningOrBuilder() {
1994       if (warningBuilder_ != null) {
1995         return warningBuilder_.getMessageOrBuilder();
1996       } else {
1997         return warning_ == null
1998             ? com.google.cloud.compute.v1.Warning.getDefaultInstance()
1999             : warning_;
2000       }
2001     }
2002     /**
2003      *
2004      *
2005      * <pre>
2006      * [Output Only] Informational warning message.
2007      * </pre>
2008      *
2009      * <code>optional .google.cloud.compute.v1.Warning warning = 50704284;</code>
2010      */
2011     private com.google.protobuf.SingleFieldBuilderV3<
2012             com.google.cloud.compute.v1.Warning,
2013             com.google.cloud.compute.v1.Warning.Builder,
2014             com.google.cloud.compute.v1.WarningOrBuilder>
getWarningFieldBuilder()2015         getWarningFieldBuilder() {
2016       if (warningBuilder_ == null) {
2017         warningBuilder_ =
2018             new com.google.protobuf.SingleFieldBuilderV3<
2019                 com.google.cloud.compute.v1.Warning,
2020                 com.google.cloud.compute.v1.Warning.Builder,
2021                 com.google.cloud.compute.v1.WarningOrBuilder>(
2022                 getWarning(), getParentForChildren(), isClean());
2023         warning_ = null;
2024       }
2025       return warningBuilder_;
2026     }
2027 
2028     @java.lang.Override
setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields)2029     public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) {
2030       return super.setUnknownFields(unknownFields);
2031     }
2032 
2033     @java.lang.Override
mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields)2034     public final Builder mergeUnknownFields(
2035         final com.google.protobuf.UnknownFieldSet unknownFields) {
2036       return super.mergeUnknownFields(unknownFields);
2037     }
2038 
2039     // @@protoc_insertion_point(builder_scope:google.cloud.compute.v1.VmEndpointNatMappingsList)
2040   }
2041 
2042   // @@protoc_insertion_point(class_scope:google.cloud.compute.v1.VmEndpointNatMappingsList)
2043   private static final com.google.cloud.compute.v1.VmEndpointNatMappingsList DEFAULT_INSTANCE;
2044 
2045   static {
2046     DEFAULT_INSTANCE = new com.google.cloud.compute.v1.VmEndpointNatMappingsList();
2047   }
2048 
getDefaultInstance()2049   public static com.google.cloud.compute.v1.VmEndpointNatMappingsList getDefaultInstance() {
2050     return DEFAULT_INSTANCE;
2051   }
2052 
2053   private static final com.google.protobuf.Parser<VmEndpointNatMappingsList> PARSER =
2054       new com.google.protobuf.AbstractParser<VmEndpointNatMappingsList>() {
2055         @java.lang.Override
2056         public VmEndpointNatMappingsList parsePartialFrom(
2057             com.google.protobuf.CodedInputStream input,
2058             com.google.protobuf.ExtensionRegistryLite extensionRegistry)
2059             throws com.google.protobuf.InvalidProtocolBufferException {
2060           Builder builder = newBuilder();
2061           try {
2062             builder.mergeFrom(input, extensionRegistry);
2063           } catch (com.google.protobuf.InvalidProtocolBufferException e) {
2064             throw e.setUnfinishedMessage(builder.buildPartial());
2065           } catch (com.google.protobuf.UninitializedMessageException e) {
2066             throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
2067           } catch (java.io.IOException e) {
2068             throw new com.google.protobuf.InvalidProtocolBufferException(e)
2069                 .setUnfinishedMessage(builder.buildPartial());
2070           }
2071           return builder.buildPartial();
2072         }
2073       };
2074 
parser()2075   public static com.google.protobuf.Parser<VmEndpointNatMappingsList> parser() {
2076     return PARSER;
2077   }
2078 
2079   @java.lang.Override
getParserForType()2080   public com.google.protobuf.Parser<VmEndpointNatMappingsList> getParserForType() {
2081     return PARSER;
2082   }
2083 
2084   @java.lang.Override
getDefaultInstanceForType()2085   public com.google.cloud.compute.v1.VmEndpointNatMappingsList getDefaultInstanceForType() {
2086     return DEFAULT_INSTANCE;
2087   }
2088 }
2089