• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 /*
2  * Copyright 2020 Google LLC
3  *
4  * Licensed under the Apache License, Version 2.0 (the "License");
5  * you may not use this file except in compliance with the License.
6  * You may obtain a copy of the License at
7  *
8  *     https://www.apache.org/licenses/LICENSE-2.0
9  *
10  * Unless required by applicable law or agreed to in writing, software
11  * distributed under the License is distributed on an "AS IS" BASIS,
12  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13  * See the License for the specific language governing permissions and
14  * limitations under the License.
15  */
16 // Generated by the protocol buffer compiler.  DO NOT EDIT!
17 // source: google/cloud/compute/v1/compute.proto
18 
19 package com.google.cloud.compute.v1;
20 
21 /**
22  *
23  *
24  * <pre>
25  * Represents an Interconnect Attachment (VLAN) Location resource. You can use this resource to find location details about an Interconnect attachment (VLAN). For more information about interconnect attachments, read Creating VLAN Attachments.
26  * </pre>
27  *
28  * Protobuf type {@code google.cloud.compute.v1.InterconnectLocation}
29  */
30 public final class InterconnectLocation extends com.google.protobuf.GeneratedMessageV3
31     implements
32     // @@protoc_insertion_point(message_implements:google.cloud.compute.v1.InterconnectLocation)
33     InterconnectLocationOrBuilder {
34   private static final long serialVersionUID = 0L;
35   // Use InterconnectLocation.newBuilder() to construct.
InterconnectLocation(com.google.protobuf.GeneratedMessageV3.Builder<?> builder)36   private InterconnectLocation(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {
37     super(builder);
38   }
39 
InterconnectLocation()40   private InterconnectLocation() {
41     address_ = "";
42     availabilityZone_ = "";
43     city_ = "";
44     continent_ = "";
45     creationTimestamp_ = "";
46     description_ = "";
47     facilityProvider_ = "";
48     facilityProviderFacilityId_ = "";
49     kind_ = "";
50     name_ = "";
51     peeringdbFacilityId_ = "";
52     regionInfos_ = java.util.Collections.emptyList();
53     selfLink_ = "";
54     status_ = "";
55   }
56 
57   @java.lang.Override
58   @SuppressWarnings({"unused"})
newInstance(UnusedPrivateParameter unused)59   protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
60     return new InterconnectLocation();
61   }
62 
63   @java.lang.Override
getUnknownFields()64   public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
65     return this.unknownFields;
66   }
67 
getDescriptor()68   public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
69     return com.google.cloud.compute.v1.Compute
70         .internal_static_google_cloud_compute_v1_InterconnectLocation_descriptor;
71   }
72 
73   @java.lang.Override
74   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable()75       internalGetFieldAccessorTable() {
76     return com.google.cloud.compute.v1.Compute
77         .internal_static_google_cloud_compute_v1_InterconnectLocation_fieldAccessorTable
78         .ensureFieldAccessorsInitialized(
79             com.google.cloud.compute.v1.InterconnectLocation.class,
80             com.google.cloud.compute.v1.InterconnectLocation.Builder.class);
81   }
82 
83   /**
84    *
85    *
86    * <pre>
87    * [Output Only] Continent for this location, which can take one of the following values: - AFRICA - ASIA_PAC - EUROPE - NORTH_AMERICA - SOUTH_AMERICA
88    * </pre>
89    *
90    * Protobuf enum {@code google.cloud.compute.v1.InterconnectLocation.Continent}
91    */
92   public enum Continent implements com.google.protobuf.ProtocolMessageEnum {
93     /**
94      *
95      *
96      * <pre>
97      * A value indicating that the enum field is not set.
98      * </pre>
99      *
100      * <code>UNDEFINED_CONTINENT = 0;</code>
101      */
102     UNDEFINED_CONTINENT(0),
103     /** <code>AFRICA = 317443706;</code> */
104     AFRICA(317443706),
105     /** <code>ASIA_PAC = 119782269;</code> */
106     ASIA_PAC(119782269),
107     /** <code>C_AFRICA = 71993846;</code> */
108     C_AFRICA(71993846),
109     /** <code>C_ASIA_PAC = 465668089;</code> */
110     C_ASIA_PAC(465668089),
111     /** <code>C_EUROPE = 200369438;</code> */
112     C_EUROPE(200369438),
113     /** <code>C_NORTH_AMERICA = 275697048;</code> */
114     C_NORTH_AMERICA(275697048),
115     /** <code>C_SOUTH_AMERICA = 397149792;</code> */
116     C_SOUTH_AMERICA(397149792),
117     /** <code>EUROPE = 445819298;</code> */
118     EUROPE(445819298),
119     /** <code>NORTH_AMERICA = 448015508;</code> */
120     NORTH_AMERICA(448015508),
121     /** <code>SOUTH_AMERICA = 32597340;</code> */
122     SOUTH_AMERICA(32597340),
123     UNRECOGNIZED(-1),
124     ;
125 
126     /**
127      *
128      *
129      * <pre>
130      * A value indicating that the enum field is not set.
131      * </pre>
132      *
133      * <code>UNDEFINED_CONTINENT = 0;</code>
134      */
135     public static final int UNDEFINED_CONTINENT_VALUE = 0;
136     /** <code>AFRICA = 317443706;</code> */
137     public static final int AFRICA_VALUE = 317443706;
138     /** <code>ASIA_PAC = 119782269;</code> */
139     public static final int ASIA_PAC_VALUE = 119782269;
140     /** <code>C_AFRICA = 71993846;</code> */
141     public static final int C_AFRICA_VALUE = 71993846;
142     /** <code>C_ASIA_PAC = 465668089;</code> */
143     public static final int C_ASIA_PAC_VALUE = 465668089;
144     /** <code>C_EUROPE = 200369438;</code> */
145     public static final int C_EUROPE_VALUE = 200369438;
146     /** <code>C_NORTH_AMERICA = 275697048;</code> */
147     public static final int C_NORTH_AMERICA_VALUE = 275697048;
148     /** <code>C_SOUTH_AMERICA = 397149792;</code> */
149     public static final int C_SOUTH_AMERICA_VALUE = 397149792;
150     /** <code>EUROPE = 445819298;</code> */
151     public static final int EUROPE_VALUE = 445819298;
152     /** <code>NORTH_AMERICA = 448015508;</code> */
153     public static final int NORTH_AMERICA_VALUE = 448015508;
154     /** <code>SOUTH_AMERICA = 32597340;</code> */
155     public static final int SOUTH_AMERICA_VALUE = 32597340;
156 
getNumber()157     public final int getNumber() {
158       if (this == UNRECOGNIZED) {
159         throw new java.lang.IllegalArgumentException(
160             "Can't get the number of an unknown enum value.");
161       }
162       return value;
163     }
164 
165     /**
166      * @param value The numeric wire value of the corresponding enum entry.
167      * @return The enum associated with the given numeric wire value.
168      * @deprecated Use {@link #forNumber(int)} instead.
169      */
170     @java.lang.Deprecated
valueOf(int value)171     public static Continent valueOf(int value) {
172       return forNumber(value);
173     }
174 
175     /**
176      * @param value The numeric wire value of the corresponding enum entry.
177      * @return The enum associated with the given numeric wire value.
178      */
forNumber(int value)179     public static Continent forNumber(int value) {
180       switch (value) {
181         case 0:
182           return UNDEFINED_CONTINENT;
183         case 317443706:
184           return AFRICA;
185         case 119782269:
186           return ASIA_PAC;
187         case 71993846:
188           return C_AFRICA;
189         case 465668089:
190           return C_ASIA_PAC;
191         case 200369438:
192           return C_EUROPE;
193         case 275697048:
194           return C_NORTH_AMERICA;
195         case 397149792:
196           return C_SOUTH_AMERICA;
197         case 445819298:
198           return EUROPE;
199         case 448015508:
200           return NORTH_AMERICA;
201         case 32597340:
202           return SOUTH_AMERICA;
203         default:
204           return null;
205       }
206     }
207 
internalGetValueMap()208     public static com.google.protobuf.Internal.EnumLiteMap<Continent> internalGetValueMap() {
209       return internalValueMap;
210     }
211 
212     private static final com.google.protobuf.Internal.EnumLiteMap<Continent> internalValueMap =
213         new com.google.protobuf.Internal.EnumLiteMap<Continent>() {
214           public Continent findValueByNumber(int number) {
215             return Continent.forNumber(number);
216           }
217         };
218 
getValueDescriptor()219     public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() {
220       if (this == UNRECOGNIZED) {
221         throw new java.lang.IllegalStateException(
222             "Can't get the descriptor of an unrecognized enum value.");
223       }
224       return getDescriptor().getValues().get(ordinal());
225     }
226 
getDescriptorForType()227     public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() {
228       return getDescriptor();
229     }
230 
getDescriptor()231     public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() {
232       return com.google.cloud.compute.v1.InterconnectLocation.getDescriptor().getEnumTypes().get(0);
233     }
234 
235     private static final Continent[] VALUES = values();
236 
valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc)237     public static Continent valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
238       if (desc.getType() != getDescriptor()) {
239         throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type.");
240       }
241       if (desc.getIndex() == -1) {
242         return UNRECOGNIZED;
243       }
244       return VALUES[desc.getIndex()];
245     }
246 
247     private final int value;
248 
Continent(int value)249     private Continent(int value) {
250       this.value = value;
251     }
252 
253     // @@protoc_insertion_point(enum_scope:google.cloud.compute.v1.InterconnectLocation.Continent)
254   }
255 
256   /**
257    *
258    *
259    * <pre>
260    * [Output Only] The status of this InterconnectLocation, which can take one of the following values: - CLOSED: The InterconnectLocation is closed and is unavailable for provisioning new Interconnects. - AVAILABLE: The InterconnectLocation is available for provisioning new Interconnects.
261    * </pre>
262    *
263    * Protobuf enum {@code google.cloud.compute.v1.InterconnectLocation.Status}
264    */
265   public enum Status implements com.google.protobuf.ProtocolMessageEnum {
266     /**
267      *
268      *
269      * <pre>
270      * A value indicating that the enum field is not set.
271      * </pre>
272      *
273      * <code>UNDEFINED_STATUS = 0;</code>
274      */
275     UNDEFINED_STATUS(0),
276     /**
277      *
278      *
279      * <pre>
280      * The InterconnectLocation is available for provisioning new Interconnects.
281      * </pre>
282      *
283      * <code>AVAILABLE = 442079913;</code>
284      */
285     AVAILABLE(442079913),
286     /**
287      *
288      *
289      * <pre>
290      * The InterconnectLocation is closed for provisioning new Interconnects.
291      * </pre>
292      *
293      * <code>CLOSED = 380163436;</code>
294      */
295     CLOSED(380163436),
296     UNRECOGNIZED(-1),
297     ;
298 
299     /**
300      *
301      *
302      * <pre>
303      * A value indicating that the enum field is not set.
304      * </pre>
305      *
306      * <code>UNDEFINED_STATUS = 0;</code>
307      */
308     public static final int UNDEFINED_STATUS_VALUE = 0;
309     /**
310      *
311      *
312      * <pre>
313      * The InterconnectLocation is available for provisioning new Interconnects.
314      * </pre>
315      *
316      * <code>AVAILABLE = 442079913;</code>
317      */
318     public static final int AVAILABLE_VALUE = 442079913;
319     /**
320      *
321      *
322      * <pre>
323      * The InterconnectLocation is closed for provisioning new Interconnects.
324      * </pre>
325      *
326      * <code>CLOSED = 380163436;</code>
327      */
328     public static final int CLOSED_VALUE = 380163436;
329 
getNumber()330     public final int getNumber() {
331       if (this == UNRECOGNIZED) {
332         throw new java.lang.IllegalArgumentException(
333             "Can't get the number of an unknown enum value.");
334       }
335       return value;
336     }
337 
338     /**
339      * @param value The numeric wire value of the corresponding enum entry.
340      * @return The enum associated with the given numeric wire value.
341      * @deprecated Use {@link #forNumber(int)} instead.
342      */
343     @java.lang.Deprecated
valueOf(int value)344     public static Status valueOf(int value) {
345       return forNumber(value);
346     }
347 
348     /**
349      * @param value The numeric wire value of the corresponding enum entry.
350      * @return The enum associated with the given numeric wire value.
351      */
forNumber(int value)352     public static Status forNumber(int value) {
353       switch (value) {
354         case 0:
355           return UNDEFINED_STATUS;
356         case 442079913:
357           return AVAILABLE;
358         case 380163436:
359           return CLOSED;
360         default:
361           return null;
362       }
363     }
364 
internalGetValueMap()365     public static com.google.protobuf.Internal.EnumLiteMap<Status> internalGetValueMap() {
366       return internalValueMap;
367     }
368 
369     private static final com.google.protobuf.Internal.EnumLiteMap<Status> internalValueMap =
370         new com.google.protobuf.Internal.EnumLiteMap<Status>() {
371           public Status findValueByNumber(int number) {
372             return Status.forNumber(number);
373           }
374         };
375 
getValueDescriptor()376     public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() {
377       if (this == UNRECOGNIZED) {
378         throw new java.lang.IllegalStateException(
379             "Can't get the descriptor of an unrecognized enum value.");
380       }
381       return getDescriptor().getValues().get(ordinal());
382     }
383 
getDescriptorForType()384     public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() {
385       return getDescriptor();
386     }
387 
getDescriptor()388     public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() {
389       return com.google.cloud.compute.v1.InterconnectLocation.getDescriptor().getEnumTypes().get(1);
390     }
391 
392     private static final Status[] VALUES = values();
393 
valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc)394     public static Status valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
395       if (desc.getType() != getDescriptor()) {
396         throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type.");
397       }
398       if (desc.getIndex() == -1) {
399         return UNRECOGNIZED;
400       }
401       return VALUES[desc.getIndex()];
402     }
403 
404     private final int value;
405 
Status(int value)406     private Status(int value) {
407       this.value = value;
408     }
409 
410     // @@protoc_insertion_point(enum_scope:google.cloud.compute.v1.InterconnectLocation.Status)
411   }
412 
413   private int bitField0_;
414   public static final int ADDRESS_FIELD_NUMBER = 462920692;
415 
416   @SuppressWarnings("serial")
417   private volatile java.lang.Object address_ = "";
418   /**
419    *
420    *
421    * <pre>
422    * [Output Only] The postal address of the Point of Presence, each line in the address is separated by a newline character.
423    * </pre>
424    *
425    * <code>optional string address = 462920692;</code>
426    *
427    * @return Whether the address field is set.
428    */
429   @java.lang.Override
hasAddress()430   public boolean hasAddress() {
431     return ((bitField0_ & 0x00000001) != 0);
432   }
433   /**
434    *
435    *
436    * <pre>
437    * [Output Only] The postal address of the Point of Presence, each line in the address is separated by a newline character.
438    * </pre>
439    *
440    * <code>optional string address = 462920692;</code>
441    *
442    * @return The address.
443    */
444   @java.lang.Override
getAddress()445   public java.lang.String getAddress() {
446     java.lang.Object ref = address_;
447     if (ref instanceof java.lang.String) {
448       return (java.lang.String) ref;
449     } else {
450       com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
451       java.lang.String s = bs.toStringUtf8();
452       address_ = s;
453       return s;
454     }
455   }
456   /**
457    *
458    *
459    * <pre>
460    * [Output Only] The postal address of the Point of Presence, each line in the address is separated by a newline character.
461    * </pre>
462    *
463    * <code>optional string address = 462920692;</code>
464    *
465    * @return The bytes for address.
466    */
467   @java.lang.Override
getAddressBytes()468   public com.google.protobuf.ByteString getAddressBytes() {
469     java.lang.Object ref = address_;
470     if (ref instanceof java.lang.String) {
471       com.google.protobuf.ByteString b =
472           com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
473       address_ = b;
474       return b;
475     } else {
476       return (com.google.protobuf.ByteString) ref;
477     }
478   }
479 
480   public static final int AVAILABILITY_ZONE_FIELD_NUMBER = 158459920;
481 
482   @SuppressWarnings("serial")
483   private volatile java.lang.Object availabilityZone_ = "";
484   /**
485    *
486    *
487    * <pre>
488    * [Output Only] Availability zone for this InterconnectLocation. Within a metropolitan area (metro), maintenance will not be simultaneously scheduled in more than one availability zone. Example: "zone1" or "zone2".
489    * </pre>
490    *
491    * <code>optional string availability_zone = 158459920;</code>
492    *
493    * @return Whether the availabilityZone field is set.
494    */
495   @java.lang.Override
hasAvailabilityZone()496   public boolean hasAvailabilityZone() {
497     return ((bitField0_ & 0x00000002) != 0);
498   }
499   /**
500    *
501    *
502    * <pre>
503    * [Output Only] Availability zone for this InterconnectLocation. Within a metropolitan area (metro), maintenance will not be simultaneously scheduled in more than one availability zone. Example: "zone1" or "zone2".
504    * </pre>
505    *
506    * <code>optional string availability_zone = 158459920;</code>
507    *
508    * @return The availabilityZone.
509    */
510   @java.lang.Override
getAvailabilityZone()511   public java.lang.String getAvailabilityZone() {
512     java.lang.Object ref = availabilityZone_;
513     if (ref instanceof java.lang.String) {
514       return (java.lang.String) ref;
515     } else {
516       com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
517       java.lang.String s = bs.toStringUtf8();
518       availabilityZone_ = s;
519       return s;
520     }
521   }
522   /**
523    *
524    *
525    * <pre>
526    * [Output Only] Availability zone for this InterconnectLocation. Within a metropolitan area (metro), maintenance will not be simultaneously scheduled in more than one availability zone. Example: "zone1" or "zone2".
527    * </pre>
528    *
529    * <code>optional string availability_zone = 158459920;</code>
530    *
531    * @return The bytes for availabilityZone.
532    */
533   @java.lang.Override
getAvailabilityZoneBytes()534   public com.google.protobuf.ByteString getAvailabilityZoneBytes() {
535     java.lang.Object ref = availabilityZone_;
536     if (ref instanceof java.lang.String) {
537       com.google.protobuf.ByteString b =
538           com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
539       availabilityZone_ = b;
540       return b;
541     } else {
542       return (com.google.protobuf.ByteString) ref;
543     }
544   }
545 
546   public static final int CITY_FIELD_NUMBER = 3053931;
547 
548   @SuppressWarnings("serial")
549   private volatile java.lang.Object city_ = "";
550   /**
551    *
552    *
553    * <pre>
554    * [Output Only] Metropolitan area designator that indicates which city an interconnect is located. For example: "Chicago, IL", "Amsterdam, Netherlands".
555    * </pre>
556    *
557    * <code>optional string city = 3053931;</code>
558    *
559    * @return Whether the city field is set.
560    */
561   @java.lang.Override
hasCity()562   public boolean hasCity() {
563     return ((bitField0_ & 0x00000004) != 0);
564   }
565   /**
566    *
567    *
568    * <pre>
569    * [Output Only] Metropolitan area designator that indicates which city an interconnect is located. For example: "Chicago, IL", "Amsterdam, Netherlands".
570    * </pre>
571    *
572    * <code>optional string city = 3053931;</code>
573    *
574    * @return The city.
575    */
576   @java.lang.Override
getCity()577   public java.lang.String getCity() {
578     java.lang.Object ref = city_;
579     if (ref instanceof java.lang.String) {
580       return (java.lang.String) ref;
581     } else {
582       com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
583       java.lang.String s = bs.toStringUtf8();
584       city_ = s;
585       return s;
586     }
587   }
588   /**
589    *
590    *
591    * <pre>
592    * [Output Only] Metropolitan area designator that indicates which city an interconnect is located. For example: "Chicago, IL", "Amsterdam, Netherlands".
593    * </pre>
594    *
595    * <code>optional string city = 3053931;</code>
596    *
597    * @return The bytes for city.
598    */
599   @java.lang.Override
getCityBytes()600   public com.google.protobuf.ByteString getCityBytes() {
601     java.lang.Object ref = city_;
602     if (ref instanceof java.lang.String) {
603       com.google.protobuf.ByteString b =
604           com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
605       city_ = b;
606       return b;
607     } else {
608       return (com.google.protobuf.ByteString) ref;
609     }
610   }
611 
612   public static final int CONTINENT_FIELD_NUMBER = 133442996;
613 
614   @SuppressWarnings("serial")
615   private volatile java.lang.Object continent_ = "";
616   /**
617    *
618    *
619    * <pre>
620    * [Output Only] Continent for this location, which can take one of the following values: - AFRICA - ASIA_PAC - EUROPE - NORTH_AMERICA - SOUTH_AMERICA
621    * Check the Continent enum for the list of possible values.
622    * </pre>
623    *
624    * <code>optional string continent = 133442996;</code>
625    *
626    * @return Whether the continent field is set.
627    */
628   @java.lang.Override
hasContinent()629   public boolean hasContinent() {
630     return ((bitField0_ & 0x00000008) != 0);
631   }
632   /**
633    *
634    *
635    * <pre>
636    * [Output Only] Continent for this location, which can take one of the following values: - AFRICA - ASIA_PAC - EUROPE - NORTH_AMERICA - SOUTH_AMERICA
637    * Check the Continent enum for the list of possible values.
638    * </pre>
639    *
640    * <code>optional string continent = 133442996;</code>
641    *
642    * @return The continent.
643    */
644   @java.lang.Override
getContinent()645   public java.lang.String getContinent() {
646     java.lang.Object ref = continent_;
647     if (ref instanceof java.lang.String) {
648       return (java.lang.String) ref;
649     } else {
650       com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
651       java.lang.String s = bs.toStringUtf8();
652       continent_ = s;
653       return s;
654     }
655   }
656   /**
657    *
658    *
659    * <pre>
660    * [Output Only] Continent for this location, which can take one of the following values: - AFRICA - ASIA_PAC - EUROPE - NORTH_AMERICA - SOUTH_AMERICA
661    * Check the Continent enum for the list of possible values.
662    * </pre>
663    *
664    * <code>optional string continent = 133442996;</code>
665    *
666    * @return The bytes for continent.
667    */
668   @java.lang.Override
getContinentBytes()669   public com.google.protobuf.ByteString getContinentBytes() {
670     java.lang.Object ref = continent_;
671     if (ref instanceof java.lang.String) {
672       com.google.protobuf.ByteString b =
673           com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
674       continent_ = b;
675       return b;
676     } else {
677       return (com.google.protobuf.ByteString) ref;
678     }
679   }
680 
681   public static final int CREATION_TIMESTAMP_FIELD_NUMBER = 30525366;
682 
683   @SuppressWarnings("serial")
684   private volatile java.lang.Object creationTimestamp_ = "";
685   /**
686    *
687    *
688    * <pre>
689    * [Output Only] Creation timestamp in RFC3339 text format.
690    * </pre>
691    *
692    * <code>optional string creation_timestamp = 30525366;</code>
693    *
694    * @return Whether the creationTimestamp field is set.
695    */
696   @java.lang.Override
hasCreationTimestamp()697   public boolean hasCreationTimestamp() {
698     return ((bitField0_ & 0x00000010) != 0);
699   }
700   /**
701    *
702    *
703    * <pre>
704    * [Output Only] Creation timestamp in RFC3339 text format.
705    * </pre>
706    *
707    * <code>optional string creation_timestamp = 30525366;</code>
708    *
709    * @return The creationTimestamp.
710    */
711   @java.lang.Override
getCreationTimestamp()712   public java.lang.String getCreationTimestamp() {
713     java.lang.Object ref = creationTimestamp_;
714     if (ref instanceof java.lang.String) {
715       return (java.lang.String) ref;
716     } else {
717       com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
718       java.lang.String s = bs.toStringUtf8();
719       creationTimestamp_ = s;
720       return s;
721     }
722   }
723   /**
724    *
725    *
726    * <pre>
727    * [Output Only] Creation timestamp in RFC3339 text format.
728    * </pre>
729    *
730    * <code>optional string creation_timestamp = 30525366;</code>
731    *
732    * @return The bytes for creationTimestamp.
733    */
734   @java.lang.Override
getCreationTimestampBytes()735   public com.google.protobuf.ByteString getCreationTimestampBytes() {
736     java.lang.Object ref = creationTimestamp_;
737     if (ref instanceof java.lang.String) {
738       com.google.protobuf.ByteString b =
739           com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
740       creationTimestamp_ = b;
741       return b;
742     } else {
743       return (com.google.protobuf.ByteString) ref;
744     }
745   }
746 
747   public static final int DESCRIPTION_FIELD_NUMBER = 422937596;
748 
749   @SuppressWarnings("serial")
750   private volatile java.lang.Object description_ = "";
751   /**
752    *
753    *
754    * <pre>
755    * [Output Only] An optional description of the resource.
756    * </pre>
757    *
758    * <code>optional string description = 422937596;</code>
759    *
760    * @return Whether the description field is set.
761    */
762   @java.lang.Override
hasDescription()763   public boolean hasDescription() {
764     return ((bitField0_ & 0x00000020) != 0);
765   }
766   /**
767    *
768    *
769    * <pre>
770    * [Output Only] An optional description of the resource.
771    * </pre>
772    *
773    * <code>optional string description = 422937596;</code>
774    *
775    * @return The description.
776    */
777   @java.lang.Override
getDescription()778   public java.lang.String getDescription() {
779     java.lang.Object ref = description_;
780     if (ref instanceof java.lang.String) {
781       return (java.lang.String) ref;
782     } else {
783       com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
784       java.lang.String s = bs.toStringUtf8();
785       description_ = s;
786       return s;
787     }
788   }
789   /**
790    *
791    *
792    * <pre>
793    * [Output Only] An optional description of the resource.
794    * </pre>
795    *
796    * <code>optional string description = 422937596;</code>
797    *
798    * @return The bytes for description.
799    */
800   @java.lang.Override
getDescriptionBytes()801   public com.google.protobuf.ByteString getDescriptionBytes() {
802     java.lang.Object ref = description_;
803     if (ref instanceof java.lang.String) {
804       com.google.protobuf.ByteString b =
805           com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
806       description_ = b;
807       return b;
808     } else {
809       return (com.google.protobuf.ByteString) ref;
810     }
811   }
812 
813   public static final int FACILITY_PROVIDER_FIELD_NUMBER = 533303309;
814 
815   @SuppressWarnings("serial")
816   private volatile java.lang.Object facilityProvider_ = "";
817   /**
818    *
819    *
820    * <pre>
821    * [Output Only] The name of the provider for this facility (e.g., EQUINIX).
822    * </pre>
823    *
824    * <code>optional string facility_provider = 533303309;</code>
825    *
826    * @return Whether the facilityProvider field is set.
827    */
828   @java.lang.Override
hasFacilityProvider()829   public boolean hasFacilityProvider() {
830     return ((bitField0_ & 0x00000040) != 0);
831   }
832   /**
833    *
834    *
835    * <pre>
836    * [Output Only] The name of the provider for this facility (e.g., EQUINIX).
837    * </pre>
838    *
839    * <code>optional string facility_provider = 533303309;</code>
840    *
841    * @return The facilityProvider.
842    */
843   @java.lang.Override
getFacilityProvider()844   public java.lang.String getFacilityProvider() {
845     java.lang.Object ref = facilityProvider_;
846     if (ref instanceof java.lang.String) {
847       return (java.lang.String) ref;
848     } else {
849       com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
850       java.lang.String s = bs.toStringUtf8();
851       facilityProvider_ = s;
852       return s;
853     }
854   }
855   /**
856    *
857    *
858    * <pre>
859    * [Output Only] The name of the provider for this facility (e.g., EQUINIX).
860    * </pre>
861    *
862    * <code>optional string facility_provider = 533303309;</code>
863    *
864    * @return The bytes for facilityProvider.
865    */
866   @java.lang.Override
getFacilityProviderBytes()867   public com.google.protobuf.ByteString getFacilityProviderBytes() {
868     java.lang.Object ref = facilityProvider_;
869     if (ref instanceof java.lang.String) {
870       com.google.protobuf.ByteString b =
871           com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
872       facilityProvider_ = b;
873       return b;
874     } else {
875       return (com.google.protobuf.ByteString) ref;
876     }
877   }
878 
879   public static final int FACILITY_PROVIDER_FACILITY_ID_FIELD_NUMBER = 87269125;
880 
881   @SuppressWarnings("serial")
882   private volatile java.lang.Object facilityProviderFacilityId_ = "";
883   /**
884    *
885    *
886    * <pre>
887    * [Output Only] A provider-assigned Identifier for this facility (e.g., Ashburn-DC1).
888    * </pre>
889    *
890    * <code>optional string facility_provider_facility_id = 87269125;</code>
891    *
892    * @return Whether the facilityProviderFacilityId field is set.
893    */
894   @java.lang.Override
hasFacilityProviderFacilityId()895   public boolean hasFacilityProviderFacilityId() {
896     return ((bitField0_ & 0x00000080) != 0);
897   }
898   /**
899    *
900    *
901    * <pre>
902    * [Output Only] A provider-assigned Identifier for this facility (e.g., Ashburn-DC1).
903    * </pre>
904    *
905    * <code>optional string facility_provider_facility_id = 87269125;</code>
906    *
907    * @return The facilityProviderFacilityId.
908    */
909   @java.lang.Override
getFacilityProviderFacilityId()910   public java.lang.String getFacilityProviderFacilityId() {
911     java.lang.Object ref = facilityProviderFacilityId_;
912     if (ref instanceof java.lang.String) {
913       return (java.lang.String) ref;
914     } else {
915       com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
916       java.lang.String s = bs.toStringUtf8();
917       facilityProviderFacilityId_ = s;
918       return s;
919     }
920   }
921   /**
922    *
923    *
924    * <pre>
925    * [Output Only] A provider-assigned Identifier for this facility (e.g., Ashburn-DC1).
926    * </pre>
927    *
928    * <code>optional string facility_provider_facility_id = 87269125;</code>
929    *
930    * @return The bytes for facilityProviderFacilityId.
931    */
932   @java.lang.Override
getFacilityProviderFacilityIdBytes()933   public com.google.protobuf.ByteString getFacilityProviderFacilityIdBytes() {
934     java.lang.Object ref = facilityProviderFacilityId_;
935     if (ref instanceof java.lang.String) {
936       com.google.protobuf.ByteString b =
937           com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
938       facilityProviderFacilityId_ = b;
939       return b;
940     } else {
941       return (com.google.protobuf.ByteString) ref;
942     }
943   }
944 
945   public static final int ID_FIELD_NUMBER = 3355;
946   private long id_ = 0L;
947   /**
948    *
949    *
950    * <pre>
951    * [Output Only] The unique identifier for the resource. This identifier is defined by the server.
952    * </pre>
953    *
954    * <code>optional uint64 id = 3355;</code>
955    *
956    * @return Whether the id field is set.
957    */
958   @java.lang.Override
hasId()959   public boolean hasId() {
960     return ((bitField0_ & 0x00000100) != 0);
961   }
962   /**
963    *
964    *
965    * <pre>
966    * [Output Only] The unique identifier for the resource. This identifier is defined by the server.
967    * </pre>
968    *
969    * <code>optional uint64 id = 3355;</code>
970    *
971    * @return The id.
972    */
973   @java.lang.Override
getId()974   public long getId() {
975     return id_;
976   }
977 
978   public static final int KIND_FIELD_NUMBER = 3292052;
979 
980   @SuppressWarnings("serial")
981   private volatile java.lang.Object kind_ = "";
982   /**
983    *
984    *
985    * <pre>
986    * [Output Only] Type of the resource. Always compute#interconnectLocation for interconnect locations.
987    * </pre>
988    *
989    * <code>optional string kind = 3292052;</code>
990    *
991    * @return Whether the kind field is set.
992    */
993   @java.lang.Override
hasKind()994   public boolean hasKind() {
995     return ((bitField0_ & 0x00000200) != 0);
996   }
997   /**
998    *
999    *
1000    * <pre>
1001    * [Output Only] Type of the resource. Always compute#interconnectLocation for interconnect locations.
1002    * </pre>
1003    *
1004    * <code>optional string kind = 3292052;</code>
1005    *
1006    * @return The kind.
1007    */
1008   @java.lang.Override
getKind()1009   public java.lang.String getKind() {
1010     java.lang.Object ref = kind_;
1011     if (ref instanceof java.lang.String) {
1012       return (java.lang.String) ref;
1013     } else {
1014       com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
1015       java.lang.String s = bs.toStringUtf8();
1016       kind_ = s;
1017       return s;
1018     }
1019   }
1020   /**
1021    *
1022    *
1023    * <pre>
1024    * [Output Only] Type of the resource. Always compute#interconnectLocation for interconnect locations.
1025    * </pre>
1026    *
1027    * <code>optional string kind = 3292052;</code>
1028    *
1029    * @return The bytes for kind.
1030    */
1031   @java.lang.Override
getKindBytes()1032   public com.google.protobuf.ByteString getKindBytes() {
1033     java.lang.Object ref = kind_;
1034     if (ref instanceof java.lang.String) {
1035       com.google.protobuf.ByteString b =
1036           com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
1037       kind_ = b;
1038       return b;
1039     } else {
1040       return (com.google.protobuf.ByteString) ref;
1041     }
1042   }
1043 
1044   public static final int NAME_FIELD_NUMBER = 3373707;
1045 
1046   @SuppressWarnings("serial")
1047   private volatile java.lang.Object name_ = "";
1048   /**
1049    *
1050    *
1051    * <pre>
1052    * [Output Only] Name of the resource.
1053    * </pre>
1054    *
1055    * <code>optional string name = 3373707;</code>
1056    *
1057    * @return Whether the name field is set.
1058    */
1059   @java.lang.Override
hasName()1060   public boolean hasName() {
1061     return ((bitField0_ & 0x00000400) != 0);
1062   }
1063   /**
1064    *
1065    *
1066    * <pre>
1067    * [Output Only] Name of the resource.
1068    * </pre>
1069    *
1070    * <code>optional string name = 3373707;</code>
1071    *
1072    * @return The name.
1073    */
1074   @java.lang.Override
getName()1075   public java.lang.String getName() {
1076     java.lang.Object ref = name_;
1077     if (ref instanceof java.lang.String) {
1078       return (java.lang.String) ref;
1079     } else {
1080       com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
1081       java.lang.String s = bs.toStringUtf8();
1082       name_ = s;
1083       return s;
1084     }
1085   }
1086   /**
1087    *
1088    *
1089    * <pre>
1090    * [Output Only] Name of the resource.
1091    * </pre>
1092    *
1093    * <code>optional string name = 3373707;</code>
1094    *
1095    * @return The bytes for name.
1096    */
1097   @java.lang.Override
getNameBytes()1098   public com.google.protobuf.ByteString getNameBytes() {
1099     java.lang.Object ref = name_;
1100     if (ref instanceof java.lang.String) {
1101       com.google.protobuf.ByteString b =
1102           com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
1103       name_ = b;
1104       return b;
1105     } else {
1106       return (com.google.protobuf.ByteString) ref;
1107     }
1108   }
1109 
1110   public static final int PEERINGDB_FACILITY_ID_FIELD_NUMBER = 536567094;
1111 
1112   @SuppressWarnings("serial")
1113   private volatile java.lang.Object peeringdbFacilityId_ = "";
1114   /**
1115    *
1116    *
1117    * <pre>
1118    * [Output Only] The peeringdb identifier for this facility (corresponding with a netfac type in peeringdb).
1119    * </pre>
1120    *
1121    * <code>optional string peeringdb_facility_id = 536567094;</code>
1122    *
1123    * @return Whether the peeringdbFacilityId field is set.
1124    */
1125   @java.lang.Override
hasPeeringdbFacilityId()1126   public boolean hasPeeringdbFacilityId() {
1127     return ((bitField0_ & 0x00000800) != 0);
1128   }
1129   /**
1130    *
1131    *
1132    * <pre>
1133    * [Output Only] The peeringdb identifier for this facility (corresponding with a netfac type in peeringdb).
1134    * </pre>
1135    *
1136    * <code>optional string peeringdb_facility_id = 536567094;</code>
1137    *
1138    * @return The peeringdbFacilityId.
1139    */
1140   @java.lang.Override
getPeeringdbFacilityId()1141   public java.lang.String getPeeringdbFacilityId() {
1142     java.lang.Object ref = peeringdbFacilityId_;
1143     if (ref instanceof java.lang.String) {
1144       return (java.lang.String) ref;
1145     } else {
1146       com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
1147       java.lang.String s = bs.toStringUtf8();
1148       peeringdbFacilityId_ = s;
1149       return s;
1150     }
1151   }
1152   /**
1153    *
1154    *
1155    * <pre>
1156    * [Output Only] The peeringdb identifier for this facility (corresponding with a netfac type in peeringdb).
1157    * </pre>
1158    *
1159    * <code>optional string peeringdb_facility_id = 536567094;</code>
1160    *
1161    * @return The bytes for peeringdbFacilityId.
1162    */
1163   @java.lang.Override
getPeeringdbFacilityIdBytes()1164   public com.google.protobuf.ByteString getPeeringdbFacilityIdBytes() {
1165     java.lang.Object ref = peeringdbFacilityId_;
1166     if (ref instanceof java.lang.String) {
1167       com.google.protobuf.ByteString b =
1168           com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
1169       peeringdbFacilityId_ = b;
1170       return b;
1171     } else {
1172       return (com.google.protobuf.ByteString) ref;
1173     }
1174   }
1175 
1176   public static final int REGION_INFOS_FIELD_NUMBER = 312194170;
1177 
1178   @SuppressWarnings("serial")
1179   private java.util.List<com.google.cloud.compute.v1.InterconnectLocationRegionInfo> regionInfos_;
1180   /**
1181    *
1182    *
1183    * <pre>
1184    * [Output Only] A list of InterconnectLocation.RegionInfo objects, that describe parameters pertaining to the relation between this InterconnectLocation and various Google Cloud regions.
1185    * </pre>
1186    *
1187    * <code>
1188    * repeated .google.cloud.compute.v1.InterconnectLocationRegionInfo region_infos = 312194170;
1189    * </code>
1190    */
1191   @java.lang.Override
1192   public java.util.List<com.google.cloud.compute.v1.InterconnectLocationRegionInfo>
getRegionInfosList()1193       getRegionInfosList() {
1194     return regionInfos_;
1195   }
1196   /**
1197    *
1198    *
1199    * <pre>
1200    * [Output Only] A list of InterconnectLocation.RegionInfo objects, that describe parameters pertaining to the relation between this InterconnectLocation and various Google Cloud regions.
1201    * </pre>
1202    *
1203    * <code>
1204    * repeated .google.cloud.compute.v1.InterconnectLocationRegionInfo region_infos = 312194170;
1205    * </code>
1206    */
1207   @java.lang.Override
1208   public java.util.List<
1209           ? extends com.google.cloud.compute.v1.InterconnectLocationRegionInfoOrBuilder>
getRegionInfosOrBuilderList()1210       getRegionInfosOrBuilderList() {
1211     return regionInfos_;
1212   }
1213   /**
1214    *
1215    *
1216    * <pre>
1217    * [Output Only] A list of InterconnectLocation.RegionInfo objects, that describe parameters pertaining to the relation between this InterconnectLocation and various Google Cloud regions.
1218    * </pre>
1219    *
1220    * <code>
1221    * repeated .google.cloud.compute.v1.InterconnectLocationRegionInfo region_infos = 312194170;
1222    * </code>
1223    */
1224   @java.lang.Override
getRegionInfosCount()1225   public int getRegionInfosCount() {
1226     return regionInfos_.size();
1227   }
1228   /**
1229    *
1230    *
1231    * <pre>
1232    * [Output Only] A list of InterconnectLocation.RegionInfo objects, that describe parameters pertaining to the relation between this InterconnectLocation and various Google Cloud regions.
1233    * </pre>
1234    *
1235    * <code>
1236    * repeated .google.cloud.compute.v1.InterconnectLocationRegionInfo region_infos = 312194170;
1237    * </code>
1238    */
1239   @java.lang.Override
getRegionInfos(int index)1240   public com.google.cloud.compute.v1.InterconnectLocationRegionInfo getRegionInfos(int index) {
1241     return regionInfos_.get(index);
1242   }
1243   /**
1244    *
1245    *
1246    * <pre>
1247    * [Output Only] A list of InterconnectLocation.RegionInfo objects, that describe parameters pertaining to the relation between this InterconnectLocation and various Google Cloud regions.
1248    * </pre>
1249    *
1250    * <code>
1251    * repeated .google.cloud.compute.v1.InterconnectLocationRegionInfo region_infos = 312194170;
1252    * </code>
1253    */
1254   @java.lang.Override
1255   public com.google.cloud.compute.v1.InterconnectLocationRegionInfoOrBuilder
getRegionInfosOrBuilder(int index)1256       getRegionInfosOrBuilder(int index) {
1257     return regionInfos_.get(index);
1258   }
1259 
1260   public static final int SELF_LINK_FIELD_NUMBER = 456214797;
1261 
1262   @SuppressWarnings("serial")
1263   private volatile java.lang.Object selfLink_ = "";
1264   /**
1265    *
1266    *
1267    * <pre>
1268    * [Output Only] Server-defined URL for the resource.
1269    * </pre>
1270    *
1271    * <code>optional string self_link = 456214797;</code>
1272    *
1273    * @return Whether the selfLink field is set.
1274    */
1275   @java.lang.Override
hasSelfLink()1276   public boolean hasSelfLink() {
1277     return ((bitField0_ & 0x00001000) != 0);
1278   }
1279   /**
1280    *
1281    *
1282    * <pre>
1283    * [Output Only] Server-defined URL for the resource.
1284    * </pre>
1285    *
1286    * <code>optional string self_link = 456214797;</code>
1287    *
1288    * @return The selfLink.
1289    */
1290   @java.lang.Override
getSelfLink()1291   public java.lang.String getSelfLink() {
1292     java.lang.Object ref = selfLink_;
1293     if (ref instanceof java.lang.String) {
1294       return (java.lang.String) ref;
1295     } else {
1296       com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
1297       java.lang.String s = bs.toStringUtf8();
1298       selfLink_ = s;
1299       return s;
1300     }
1301   }
1302   /**
1303    *
1304    *
1305    * <pre>
1306    * [Output Only] Server-defined URL for the resource.
1307    * </pre>
1308    *
1309    * <code>optional string self_link = 456214797;</code>
1310    *
1311    * @return The bytes for selfLink.
1312    */
1313   @java.lang.Override
getSelfLinkBytes()1314   public com.google.protobuf.ByteString getSelfLinkBytes() {
1315     java.lang.Object ref = selfLink_;
1316     if (ref instanceof java.lang.String) {
1317       com.google.protobuf.ByteString b =
1318           com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
1319       selfLink_ = b;
1320       return b;
1321     } else {
1322       return (com.google.protobuf.ByteString) ref;
1323     }
1324   }
1325 
1326   public static final int STATUS_FIELD_NUMBER = 181260274;
1327 
1328   @SuppressWarnings("serial")
1329   private volatile java.lang.Object status_ = "";
1330   /**
1331    *
1332    *
1333    * <pre>
1334    * [Output Only] The status of this InterconnectLocation, which can take one of the following values: - CLOSED: The InterconnectLocation is closed and is unavailable for provisioning new Interconnects. - AVAILABLE: The InterconnectLocation is available for provisioning new Interconnects.
1335    * Check the Status enum for the list of possible values.
1336    * </pre>
1337    *
1338    * <code>optional string status = 181260274;</code>
1339    *
1340    * @return Whether the status field is set.
1341    */
1342   @java.lang.Override
hasStatus()1343   public boolean hasStatus() {
1344     return ((bitField0_ & 0x00002000) != 0);
1345   }
1346   /**
1347    *
1348    *
1349    * <pre>
1350    * [Output Only] The status of this InterconnectLocation, which can take one of the following values: - CLOSED: The InterconnectLocation is closed and is unavailable for provisioning new Interconnects. - AVAILABLE: The InterconnectLocation is available for provisioning new Interconnects.
1351    * Check the Status enum for the list of possible values.
1352    * </pre>
1353    *
1354    * <code>optional string status = 181260274;</code>
1355    *
1356    * @return The status.
1357    */
1358   @java.lang.Override
getStatus()1359   public java.lang.String getStatus() {
1360     java.lang.Object ref = status_;
1361     if (ref instanceof java.lang.String) {
1362       return (java.lang.String) ref;
1363     } else {
1364       com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
1365       java.lang.String s = bs.toStringUtf8();
1366       status_ = s;
1367       return s;
1368     }
1369   }
1370   /**
1371    *
1372    *
1373    * <pre>
1374    * [Output Only] The status of this InterconnectLocation, which can take one of the following values: - CLOSED: The InterconnectLocation is closed and is unavailable for provisioning new Interconnects. - AVAILABLE: The InterconnectLocation is available for provisioning new Interconnects.
1375    * Check the Status enum for the list of possible values.
1376    * </pre>
1377    *
1378    * <code>optional string status = 181260274;</code>
1379    *
1380    * @return The bytes for status.
1381    */
1382   @java.lang.Override
getStatusBytes()1383   public com.google.protobuf.ByteString getStatusBytes() {
1384     java.lang.Object ref = status_;
1385     if (ref instanceof java.lang.String) {
1386       com.google.protobuf.ByteString b =
1387           com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
1388       status_ = b;
1389       return b;
1390     } else {
1391       return (com.google.protobuf.ByteString) ref;
1392     }
1393   }
1394 
1395   public static final int SUPPORTS_PZS_FIELD_NUMBER = 83983214;
1396   private boolean supportsPzs_ = false;
1397   /**
1398    *
1399    *
1400    * <pre>
1401    * [Output Only] Reserved for future use.
1402    * </pre>
1403    *
1404    * <code>optional bool supports_pzs = 83983214;</code>
1405    *
1406    * @return Whether the supportsPzs field is set.
1407    */
1408   @java.lang.Override
hasSupportsPzs()1409   public boolean hasSupportsPzs() {
1410     return ((bitField0_ & 0x00004000) != 0);
1411   }
1412   /**
1413    *
1414    *
1415    * <pre>
1416    * [Output Only] Reserved for future use.
1417    * </pre>
1418    *
1419    * <code>optional bool supports_pzs = 83983214;</code>
1420    *
1421    * @return The supportsPzs.
1422    */
1423   @java.lang.Override
getSupportsPzs()1424   public boolean getSupportsPzs() {
1425     return supportsPzs_;
1426   }
1427 
1428   private byte memoizedIsInitialized = -1;
1429 
1430   @java.lang.Override
isInitialized()1431   public final boolean isInitialized() {
1432     byte isInitialized = memoizedIsInitialized;
1433     if (isInitialized == 1) return true;
1434     if (isInitialized == 0) return false;
1435 
1436     memoizedIsInitialized = 1;
1437     return true;
1438   }
1439 
1440   @java.lang.Override
writeTo(com.google.protobuf.CodedOutputStream output)1441   public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
1442     if (((bitField0_ & 0x00000100) != 0)) {
1443       output.writeUInt64(3355, id_);
1444     }
1445     if (((bitField0_ & 0x00000004) != 0)) {
1446       com.google.protobuf.GeneratedMessageV3.writeString(output, 3053931, city_);
1447     }
1448     if (((bitField0_ & 0x00000200) != 0)) {
1449       com.google.protobuf.GeneratedMessageV3.writeString(output, 3292052, kind_);
1450     }
1451     if (((bitField0_ & 0x00000400) != 0)) {
1452       com.google.protobuf.GeneratedMessageV3.writeString(output, 3373707, name_);
1453     }
1454     if (((bitField0_ & 0x00000010) != 0)) {
1455       com.google.protobuf.GeneratedMessageV3.writeString(output, 30525366, creationTimestamp_);
1456     }
1457     if (((bitField0_ & 0x00004000) != 0)) {
1458       output.writeBool(83983214, supportsPzs_);
1459     }
1460     if (((bitField0_ & 0x00000080) != 0)) {
1461       com.google.protobuf.GeneratedMessageV3.writeString(
1462           output, 87269125, facilityProviderFacilityId_);
1463     }
1464     if (((bitField0_ & 0x00000008) != 0)) {
1465       com.google.protobuf.GeneratedMessageV3.writeString(output, 133442996, continent_);
1466     }
1467     if (((bitField0_ & 0x00000002) != 0)) {
1468       com.google.protobuf.GeneratedMessageV3.writeString(output, 158459920, availabilityZone_);
1469     }
1470     if (((bitField0_ & 0x00002000) != 0)) {
1471       com.google.protobuf.GeneratedMessageV3.writeString(output, 181260274, status_);
1472     }
1473     for (int i = 0; i < regionInfos_.size(); i++) {
1474       output.writeMessage(312194170, regionInfos_.get(i));
1475     }
1476     if (((bitField0_ & 0x00000020) != 0)) {
1477       com.google.protobuf.GeneratedMessageV3.writeString(output, 422937596, description_);
1478     }
1479     if (((bitField0_ & 0x00001000) != 0)) {
1480       com.google.protobuf.GeneratedMessageV3.writeString(output, 456214797, selfLink_);
1481     }
1482     if (((bitField0_ & 0x00000001) != 0)) {
1483       com.google.protobuf.GeneratedMessageV3.writeString(output, 462920692, address_);
1484     }
1485     if (((bitField0_ & 0x00000040) != 0)) {
1486       com.google.protobuf.GeneratedMessageV3.writeString(output, 533303309, facilityProvider_);
1487     }
1488     if (((bitField0_ & 0x00000800) != 0)) {
1489       com.google.protobuf.GeneratedMessageV3.writeString(output, 536567094, peeringdbFacilityId_);
1490     }
1491     getUnknownFields().writeTo(output);
1492   }
1493 
1494   @java.lang.Override
getSerializedSize()1495   public int getSerializedSize() {
1496     int size = memoizedSize;
1497     if (size != -1) return size;
1498 
1499     size = 0;
1500     if (((bitField0_ & 0x00000100) != 0)) {
1501       size += com.google.protobuf.CodedOutputStream.computeUInt64Size(3355, id_);
1502     }
1503     if (((bitField0_ & 0x00000004) != 0)) {
1504       size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3053931, city_);
1505     }
1506     if (((bitField0_ & 0x00000200) != 0)) {
1507       size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3292052, kind_);
1508     }
1509     if (((bitField0_ & 0x00000400) != 0)) {
1510       size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3373707, name_);
1511     }
1512     if (((bitField0_ & 0x00000010) != 0)) {
1513       size +=
1514           com.google.protobuf.GeneratedMessageV3.computeStringSize(30525366, creationTimestamp_);
1515     }
1516     if (((bitField0_ & 0x00004000) != 0)) {
1517       size += com.google.protobuf.CodedOutputStream.computeBoolSize(83983214, supportsPzs_);
1518     }
1519     if (((bitField0_ & 0x00000080) != 0)) {
1520       size +=
1521           com.google.protobuf.GeneratedMessageV3.computeStringSize(
1522               87269125, facilityProviderFacilityId_);
1523     }
1524     if (((bitField0_ & 0x00000008) != 0)) {
1525       size += com.google.protobuf.GeneratedMessageV3.computeStringSize(133442996, continent_);
1526     }
1527     if (((bitField0_ & 0x00000002) != 0)) {
1528       size +=
1529           com.google.protobuf.GeneratedMessageV3.computeStringSize(158459920, availabilityZone_);
1530     }
1531     if (((bitField0_ & 0x00002000) != 0)) {
1532       size += com.google.protobuf.GeneratedMessageV3.computeStringSize(181260274, status_);
1533     }
1534     for (int i = 0; i < regionInfos_.size(); i++) {
1535       size +=
1536           com.google.protobuf.CodedOutputStream.computeMessageSize(312194170, regionInfos_.get(i));
1537     }
1538     if (((bitField0_ & 0x00000020) != 0)) {
1539       size += com.google.protobuf.GeneratedMessageV3.computeStringSize(422937596, description_);
1540     }
1541     if (((bitField0_ & 0x00001000) != 0)) {
1542       size += com.google.protobuf.GeneratedMessageV3.computeStringSize(456214797, selfLink_);
1543     }
1544     if (((bitField0_ & 0x00000001) != 0)) {
1545       size += com.google.protobuf.GeneratedMessageV3.computeStringSize(462920692, address_);
1546     }
1547     if (((bitField0_ & 0x00000040) != 0)) {
1548       size +=
1549           com.google.protobuf.GeneratedMessageV3.computeStringSize(533303309, facilityProvider_);
1550     }
1551     if (((bitField0_ & 0x00000800) != 0)) {
1552       size +=
1553           com.google.protobuf.GeneratedMessageV3.computeStringSize(536567094, peeringdbFacilityId_);
1554     }
1555     size += getUnknownFields().getSerializedSize();
1556     memoizedSize = size;
1557     return size;
1558   }
1559 
1560   @java.lang.Override
equals(final java.lang.Object obj)1561   public boolean equals(final java.lang.Object obj) {
1562     if (obj == this) {
1563       return true;
1564     }
1565     if (!(obj instanceof com.google.cloud.compute.v1.InterconnectLocation)) {
1566       return super.equals(obj);
1567     }
1568     com.google.cloud.compute.v1.InterconnectLocation other =
1569         (com.google.cloud.compute.v1.InterconnectLocation) obj;
1570 
1571     if (hasAddress() != other.hasAddress()) return false;
1572     if (hasAddress()) {
1573       if (!getAddress().equals(other.getAddress())) return false;
1574     }
1575     if (hasAvailabilityZone() != other.hasAvailabilityZone()) return false;
1576     if (hasAvailabilityZone()) {
1577       if (!getAvailabilityZone().equals(other.getAvailabilityZone())) return false;
1578     }
1579     if (hasCity() != other.hasCity()) return false;
1580     if (hasCity()) {
1581       if (!getCity().equals(other.getCity())) return false;
1582     }
1583     if (hasContinent() != other.hasContinent()) return false;
1584     if (hasContinent()) {
1585       if (!getContinent().equals(other.getContinent())) return false;
1586     }
1587     if (hasCreationTimestamp() != other.hasCreationTimestamp()) return false;
1588     if (hasCreationTimestamp()) {
1589       if (!getCreationTimestamp().equals(other.getCreationTimestamp())) return false;
1590     }
1591     if (hasDescription() != other.hasDescription()) return false;
1592     if (hasDescription()) {
1593       if (!getDescription().equals(other.getDescription())) return false;
1594     }
1595     if (hasFacilityProvider() != other.hasFacilityProvider()) return false;
1596     if (hasFacilityProvider()) {
1597       if (!getFacilityProvider().equals(other.getFacilityProvider())) return false;
1598     }
1599     if (hasFacilityProviderFacilityId() != other.hasFacilityProviderFacilityId()) return false;
1600     if (hasFacilityProviderFacilityId()) {
1601       if (!getFacilityProviderFacilityId().equals(other.getFacilityProviderFacilityId()))
1602         return false;
1603     }
1604     if (hasId() != other.hasId()) return false;
1605     if (hasId()) {
1606       if (getId() != other.getId()) return false;
1607     }
1608     if (hasKind() != other.hasKind()) return false;
1609     if (hasKind()) {
1610       if (!getKind().equals(other.getKind())) return false;
1611     }
1612     if (hasName() != other.hasName()) return false;
1613     if (hasName()) {
1614       if (!getName().equals(other.getName())) return false;
1615     }
1616     if (hasPeeringdbFacilityId() != other.hasPeeringdbFacilityId()) return false;
1617     if (hasPeeringdbFacilityId()) {
1618       if (!getPeeringdbFacilityId().equals(other.getPeeringdbFacilityId())) return false;
1619     }
1620     if (!getRegionInfosList().equals(other.getRegionInfosList())) return false;
1621     if (hasSelfLink() != other.hasSelfLink()) return false;
1622     if (hasSelfLink()) {
1623       if (!getSelfLink().equals(other.getSelfLink())) return false;
1624     }
1625     if (hasStatus() != other.hasStatus()) return false;
1626     if (hasStatus()) {
1627       if (!getStatus().equals(other.getStatus())) return false;
1628     }
1629     if (hasSupportsPzs() != other.hasSupportsPzs()) return false;
1630     if (hasSupportsPzs()) {
1631       if (getSupportsPzs() != other.getSupportsPzs()) return false;
1632     }
1633     if (!getUnknownFields().equals(other.getUnknownFields())) return false;
1634     return true;
1635   }
1636 
1637   @java.lang.Override
hashCode()1638   public int hashCode() {
1639     if (memoizedHashCode != 0) {
1640       return memoizedHashCode;
1641     }
1642     int hash = 41;
1643     hash = (19 * hash) + getDescriptor().hashCode();
1644     if (hasAddress()) {
1645       hash = (37 * hash) + ADDRESS_FIELD_NUMBER;
1646       hash = (53 * hash) + getAddress().hashCode();
1647     }
1648     if (hasAvailabilityZone()) {
1649       hash = (37 * hash) + AVAILABILITY_ZONE_FIELD_NUMBER;
1650       hash = (53 * hash) + getAvailabilityZone().hashCode();
1651     }
1652     if (hasCity()) {
1653       hash = (37 * hash) + CITY_FIELD_NUMBER;
1654       hash = (53 * hash) + getCity().hashCode();
1655     }
1656     if (hasContinent()) {
1657       hash = (37 * hash) + CONTINENT_FIELD_NUMBER;
1658       hash = (53 * hash) + getContinent().hashCode();
1659     }
1660     if (hasCreationTimestamp()) {
1661       hash = (37 * hash) + CREATION_TIMESTAMP_FIELD_NUMBER;
1662       hash = (53 * hash) + getCreationTimestamp().hashCode();
1663     }
1664     if (hasDescription()) {
1665       hash = (37 * hash) + DESCRIPTION_FIELD_NUMBER;
1666       hash = (53 * hash) + getDescription().hashCode();
1667     }
1668     if (hasFacilityProvider()) {
1669       hash = (37 * hash) + FACILITY_PROVIDER_FIELD_NUMBER;
1670       hash = (53 * hash) + getFacilityProvider().hashCode();
1671     }
1672     if (hasFacilityProviderFacilityId()) {
1673       hash = (37 * hash) + FACILITY_PROVIDER_FACILITY_ID_FIELD_NUMBER;
1674       hash = (53 * hash) + getFacilityProviderFacilityId().hashCode();
1675     }
1676     if (hasId()) {
1677       hash = (37 * hash) + ID_FIELD_NUMBER;
1678       hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getId());
1679     }
1680     if (hasKind()) {
1681       hash = (37 * hash) + KIND_FIELD_NUMBER;
1682       hash = (53 * hash) + getKind().hashCode();
1683     }
1684     if (hasName()) {
1685       hash = (37 * hash) + NAME_FIELD_NUMBER;
1686       hash = (53 * hash) + getName().hashCode();
1687     }
1688     if (hasPeeringdbFacilityId()) {
1689       hash = (37 * hash) + PEERINGDB_FACILITY_ID_FIELD_NUMBER;
1690       hash = (53 * hash) + getPeeringdbFacilityId().hashCode();
1691     }
1692     if (getRegionInfosCount() > 0) {
1693       hash = (37 * hash) + REGION_INFOS_FIELD_NUMBER;
1694       hash = (53 * hash) + getRegionInfosList().hashCode();
1695     }
1696     if (hasSelfLink()) {
1697       hash = (37 * hash) + SELF_LINK_FIELD_NUMBER;
1698       hash = (53 * hash) + getSelfLink().hashCode();
1699     }
1700     if (hasStatus()) {
1701       hash = (37 * hash) + STATUS_FIELD_NUMBER;
1702       hash = (53 * hash) + getStatus().hashCode();
1703     }
1704     if (hasSupportsPzs()) {
1705       hash = (37 * hash) + SUPPORTS_PZS_FIELD_NUMBER;
1706       hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getSupportsPzs());
1707     }
1708     hash = (29 * hash) + getUnknownFields().hashCode();
1709     memoizedHashCode = hash;
1710     return hash;
1711   }
1712 
parseFrom(java.nio.ByteBuffer data)1713   public static com.google.cloud.compute.v1.InterconnectLocation parseFrom(java.nio.ByteBuffer data)
1714       throws com.google.protobuf.InvalidProtocolBufferException {
1715     return PARSER.parseFrom(data);
1716   }
1717 
parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)1718   public static com.google.cloud.compute.v1.InterconnectLocation parseFrom(
1719       java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
1720       throws com.google.protobuf.InvalidProtocolBufferException {
1721     return PARSER.parseFrom(data, extensionRegistry);
1722   }
1723 
parseFrom( com.google.protobuf.ByteString data)1724   public static com.google.cloud.compute.v1.InterconnectLocation parseFrom(
1725       com.google.protobuf.ByteString data)
1726       throws com.google.protobuf.InvalidProtocolBufferException {
1727     return PARSER.parseFrom(data);
1728   }
1729 
parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)1730   public static com.google.cloud.compute.v1.InterconnectLocation parseFrom(
1731       com.google.protobuf.ByteString data,
1732       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
1733       throws com.google.protobuf.InvalidProtocolBufferException {
1734     return PARSER.parseFrom(data, extensionRegistry);
1735   }
1736 
parseFrom(byte[] data)1737   public static com.google.cloud.compute.v1.InterconnectLocation parseFrom(byte[] data)
1738       throws com.google.protobuf.InvalidProtocolBufferException {
1739     return PARSER.parseFrom(data);
1740   }
1741 
parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)1742   public static com.google.cloud.compute.v1.InterconnectLocation parseFrom(
1743       byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
1744       throws com.google.protobuf.InvalidProtocolBufferException {
1745     return PARSER.parseFrom(data, extensionRegistry);
1746   }
1747 
parseFrom( java.io.InputStream input)1748   public static com.google.cloud.compute.v1.InterconnectLocation parseFrom(
1749       java.io.InputStream input) throws java.io.IOException {
1750     return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
1751   }
1752 
parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)1753   public static com.google.cloud.compute.v1.InterconnectLocation parseFrom(
1754       java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
1755       throws java.io.IOException {
1756     return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
1757         PARSER, input, extensionRegistry);
1758   }
1759 
parseDelimitedFrom( java.io.InputStream input)1760   public static com.google.cloud.compute.v1.InterconnectLocation parseDelimitedFrom(
1761       java.io.InputStream input) throws java.io.IOException {
1762     return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
1763   }
1764 
parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)1765   public static com.google.cloud.compute.v1.InterconnectLocation parseDelimitedFrom(
1766       java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
1767       throws java.io.IOException {
1768     return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
1769         PARSER, input, extensionRegistry);
1770   }
1771 
parseFrom( com.google.protobuf.CodedInputStream input)1772   public static com.google.cloud.compute.v1.InterconnectLocation parseFrom(
1773       com.google.protobuf.CodedInputStream input) throws java.io.IOException {
1774     return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
1775   }
1776 
parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)1777   public static com.google.cloud.compute.v1.InterconnectLocation parseFrom(
1778       com.google.protobuf.CodedInputStream input,
1779       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
1780       throws java.io.IOException {
1781     return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
1782         PARSER, input, extensionRegistry);
1783   }
1784 
1785   @java.lang.Override
newBuilderForType()1786   public Builder newBuilderForType() {
1787     return newBuilder();
1788   }
1789 
newBuilder()1790   public static Builder newBuilder() {
1791     return DEFAULT_INSTANCE.toBuilder();
1792   }
1793 
newBuilder(com.google.cloud.compute.v1.InterconnectLocation prototype)1794   public static Builder newBuilder(com.google.cloud.compute.v1.InterconnectLocation prototype) {
1795     return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
1796   }
1797 
1798   @java.lang.Override
toBuilder()1799   public Builder toBuilder() {
1800     return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
1801   }
1802 
1803   @java.lang.Override
newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)1804   protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
1805     Builder builder = new Builder(parent);
1806     return builder;
1807   }
1808   /**
1809    *
1810    *
1811    * <pre>
1812    * Represents an Interconnect Attachment (VLAN) Location resource. You can use this resource to find location details about an Interconnect attachment (VLAN). For more information about interconnect attachments, read Creating VLAN Attachments.
1813    * </pre>
1814    *
1815    * Protobuf type {@code google.cloud.compute.v1.InterconnectLocation}
1816    */
1817   public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder<Builder>
1818       implements
1819       // @@protoc_insertion_point(builder_implements:google.cloud.compute.v1.InterconnectLocation)
1820       com.google.cloud.compute.v1.InterconnectLocationOrBuilder {
getDescriptor()1821     public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
1822       return com.google.cloud.compute.v1.Compute
1823           .internal_static_google_cloud_compute_v1_InterconnectLocation_descriptor;
1824     }
1825 
1826     @java.lang.Override
1827     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable()1828         internalGetFieldAccessorTable() {
1829       return com.google.cloud.compute.v1.Compute
1830           .internal_static_google_cloud_compute_v1_InterconnectLocation_fieldAccessorTable
1831           .ensureFieldAccessorsInitialized(
1832               com.google.cloud.compute.v1.InterconnectLocation.class,
1833               com.google.cloud.compute.v1.InterconnectLocation.Builder.class);
1834     }
1835 
1836     // Construct using com.google.cloud.compute.v1.InterconnectLocation.newBuilder()
Builder()1837     private Builder() {}
1838 
Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)1839     private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
1840       super(parent);
1841     }
1842 
1843     @java.lang.Override
clear()1844     public Builder clear() {
1845       super.clear();
1846       bitField0_ = 0;
1847       address_ = "";
1848       availabilityZone_ = "";
1849       city_ = "";
1850       continent_ = "";
1851       creationTimestamp_ = "";
1852       description_ = "";
1853       facilityProvider_ = "";
1854       facilityProviderFacilityId_ = "";
1855       id_ = 0L;
1856       kind_ = "";
1857       name_ = "";
1858       peeringdbFacilityId_ = "";
1859       if (regionInfosBuilder_ == null) {
1860         regionInfos_ = java.util.Collections.emptyList();
1861       } else {
1862         regionInfos_ = null;
1863         regionInfosBuilder_.clear();
1864       }
1865       bitField0_ = (bitField0_ & ~0x00001000);
1866       selfLink_ = "";
1867       status_ = "";
1868       supportsPzs_ = false;
1869       return this;
1870     }
1871 
1872     @java.lang.Override
getDescriptorForType()1873     public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
1874       return com.google.cloud.compute.v1.Compute
1875           .internal_static_google_cloud_compute_v1_InterconnectLocation_descriptor;
1876     }
1877 
1878     @java.lang.Override
getDefaultInstanceForType()1879     public com.google.cloud.compute.v1.InterconnectLocation getDefaultInstanceForType() {
1880       return com.google.cloud.compute.v1.InterconnectLocation.getDefaultInstance();
1881     }
1882 
1883     @java.lang.Override
build()1884     public com.google.cloud.compute.v1.InterconnectLocation build() {
1885       com.google.cloud.compute.v1.InterconnectLocation result = buildPartial();
1886       if (!result.isInitialized()) {
1887         throw newUninitializedMessageException(result);
1888       }
1889       return result;
1890     }
1891 
1892     @java.lang.Override
buildPartial()1893     public com.google.cloud.compute.v1.InterconnectLocation buildPartial() {
1894       com.google.cloud.compute.v1.InterconnectLocation result =
1895           new com.google.cloud.compute.v1.InterconnectLocation(this);
1896       buildPartialRepeatedFields(result);
1897       if (bitField0_ != 0) {
1898         buildPartial0(result);
1899       }
1900       onBuilt();
1901       return result;
1902     }
1903 
buildPartialRepeatedFields( com.google.cloud.compute.v1.InterconnectLocation result)1904     private void buildPartialRepeatedFields(
1905         com.google.cloud.compute.v1.InterconnectLocation result) {
1906       if (regionInfosBuilder_ == null) {
1907         if (((bitField0_ & 0x00001000) != 0)) {
1908           regionInfos_ = java.util.Collections.unmodifiableList(regionInfos_);
1909           bitField0_ = (bitField0_ & ~0x00001000);
1910         }
1911         result.regionInfos_ = regionInfos_;
1912       } else {
1913         result.regionInfos_ = regionInfosBuilder_.build();
1914       }
1915     }
1916 
buildPartial0(com.google.cloud.compute.v1.InterconnectLocation result)1917     private void buildPartial0(com.google.cloud.compute.v1.InterconnectLocation result) {
1918       int from_bitField0_ = bitField0_;
1919       int to_bitField0_ = 0;
1920       if (((from_bitField0_ & 0x00000001) != 0)) {
1921         result.address_ = address_;
1922         to_bitField0_ |= 0x00000001;
1923       }
1924       if (((from_bitField0_ & 0x00000002) != 0)) {
1925         result.availabilityZone_ = availabilityZone_;
1926         to_bitField0_ |= 0x00000002;
1927       }
1928       if (((from_bitField0_ & 0x00000004) != 0)) {
1929         result.city_ = city_;
1930         to_bitField0_ |= 0x00000004;
1931       }
1932       if (((from_bitField0_ & 0x00000008) != 0)) {
1933         result.continent_ = continent_;
1934         to_bitField0_ |= 0x00000008;
1935       }
1936       if (((from_bitField0_ & 0x00000010) != 0)) {
1937         result.creationTimestamp_ = creationTimestamp_;
1938         to_bitField0_ |= 0x00000010;
1939       }
1940       if (((from_bitField0_ & 0x00000020) != 0)) {
1941         result.description_ = description_;
1942         to_bitField0_ |= 0x00000020;
1943       }
1944       if (((from_bitField0_ & 0x00000040) != 0)) {
1945         result.facilityProvider_ = facilityProvider_;
1946         to_bitField0_ |= 0x00000040;
1947       }
1948       if (((from_bitField0_ & 0x00000080) != 0)) {
1949         result.facilityProviderFacilityId_ = facilityProviderFacilityId_;
1950         to_bitField0_ |= 0x00000080;
1951       }
1952       if (((from_bitField0_ & 0x00000100) != 0)) {
1953         result.id_ = id_;
1954         to_bitField0_ |= 0x00000100;
1955       }
1956       if (((from_bitField0_ & 0x00000200) != 0)) {
1957         result.kind_ = kind_;
1958         to_bitField0_ |= 0x00000200;
1959       }
1960       if (((from_bitField0_ & 0x00000400) != 0)) {
1961         result.name_ = name_;
1962         to_bitField0_ |= 0x00000400;
1963       }
1964       if (((from_bitField0_ & 0x00000800) != 0)) {
1965         result.peeringdbFacilityId_ = peeringdbFacilityId_;
1966         to_bitField0_ |= 0x00000800;
1967       }
1968       if (((from_bitField0_ & 0x00002000) != 0)) {
1969         result.selfLink_ = selfLink_;
1970         to_bitField0_ |= 0x00001000;
1971       }
1972       if (((from_bitField0_ & 0x00004000) != 0)) {
1973         result.status_ = status_;
1974         to_bitField0_ |= 0x00002000;
1975       }
1976       if (((from_bitField0_ & 0x00008000) != 0)) {
1977         result.supportsPzs_ = supportsPzs_;
1978         to_bitField0_ |= 0x00004000;
1979       }
1980       result.bitField0_ |= to_bitField0_;
1981     }
1982 
1983     @java.lang.Override
clone()1984     public Builder clone() {
1985       return super.clone();
1986     }
1987 
1988     @java.lang.Override
setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)1989     public Builder setField(
1990         com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
1991       return super.setField(field, value);
1992     }
1993 
1994     @java.lang.Override
clearField(com.google.protobuf.Descriptors.FieldDescriptor field)1995     public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
1996       return super.clearField(field);
1997     }
1998 
1999     @java.lang.Override
clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)2000     public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
2001       return super.clearOneof(oneof);
2002     }
2003 
2004     @java.lang.Override
setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value)2005     public Builder setRepeatedField(
2006         com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
2007       return super.setRepeatedField(field, index, value);
2008     }
2009 
2010     @java.lang.Override
addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)2011     public Builder addRepeatedField(
2012         com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
2013       return super.addRepeatedField(field, value);
2014     }
2015 
2016     @java.lang.Override
mergeFrom(com.google.protobuf.Message other)2017     public Builder mergeFrom(com.google.protobuf.Message other) {
2018       if (other instanceof com.google.cloud.compute.v1.InterconnectLocation) {
2019         return mergeFrom((com.google.cloud.compute.v1.InterconnectLocation) other);
2020       } else {
2021         super.mergeFrom(other);
2022         return this;
2023       }
2024     }
2025 
mergeFrom(com.google.cloud.compute.v1.InterconnectLocation other)2026     public Builder mergeFrom(com.google.cloud.compute.v1.InterconnectLocation other) {
2027       if (other == com.google.cloud.compute.v1.InterconnectLocation.getDefaultInstance())
2028         return this;
2029       if (other.hasAddress()) {
2030         address_ = other.address_;
2031         bitField0_ |= 0x00000001;
2032         onChanged();
2033       }
2034       if (other.hasAvailabilityZone()) {
2035         availabilityZone_ = other.availabilityZone_;
2036         bitField0_ |= 0x00000002;
2037         onChanged();
2038       }
2039       if (other.hasCity()) {
2040         city_ = other.city_;
2041         bitField0_ |= 0x00000004;
2042         onChanged();
2043       }
2044       if (other.hasContinent()) {
2045         continent_ = other.continent_;
2046         bitField0_ |= 0x00000008;
2047         onChanged();
2048       }
2049       if (other.hasCreationTimestamp()) {
2050         creationTimestamp_ = other.creationTimestamp_;
2051         bitField0_ |= 0x00000010;
2052         onChanged();
2053       }
2054       if (other.hasDescription()) {
2055         description_ = other.description_;
2056         bitField0_ |= 0x00000020;
2057         onChanged();
2058       }
2059       if (other.hasFacilityProvider()) {
2060         facilityProvider_ = other.facilityProvider_;
2061         bitField0_ |= 0x00000040;
2062         onChanged();
2063       }
2064       if (other.hasFacilityProviderFacilityId()) {
2065         facilityProviderFacilityId_ = other.facilityProviderFacilityId_;
2066         bitField0_ |= 0x00000080;
2067         onChanged();
2068       }
2069       if (other.hasId()) {
2070         setId(other.getId());
2071       }
2072       if (other.hasKind()) {
2073         kind_ = other.kind_;
2074         bitField0_ |= 0x00000200;
2075         onChanged();
2076       }
2077       if (other.hasName()) {
2078         name_ = other.name_;
2079         bitField0_ |= 0x00000400;
2080         onChanged();
2081       }
2082       if (other.hasPeeringdbFacilityId()) {
2083         peeringdbFacilityId_ = other.peeringdbFacilityId_;
2084         bitField0_ |= 0x00000800;
2085         onChanged();
2086       }
2087       if (regionInfosBuilder_ == null) {
2088         if (!other.regionInfos_.isEmpty()) {
2089           if (regionInfos_.isEmpty()) {
2090             regionInfos_ = other.regionInfos_;
2091             bitField0_ = (bitField0_ & ~0x00001000);
2092           } else {
2093             ensureRegionInfosIsMutable();
2094             regionInfos_.addAll(other.regionInfos_);
2095           }
2096           onChanged();
2097         }
2098       } else {
2099         if (!other.regionInfos_.isEmpty()) {
2100           if (regionInfosBuilder_.isEmpty()) {
2101             regionInfosBuilder_.dispose();
2102             regionInfosBuilder_ = null;
2103             regionInfos_ = other.regionInfos_;
2104             bitField0_ = (bitField0_ & ~0x00001000);
2105             regionInfosBuilder_ =
2106                 com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders
2107                     ? getRegionInfosFieldBuilder()
2108                     : null;
2109           } else {
2110             regionInfosBuilder_.addAllMessages(other.regionInfos_);
2111           }
2112         }
2113       }
2114       if (other.hasSelfLink()) {
2115         selfLink_ = other.selfLink_;
2116         bitField0_ |= 0x00002000;
2117         onChanged();
2118       }
2119       if (other.hasStatus()) {
2120         status_ = other.status_;
2121         bitField0_ |= 0x00004000;
2122         onChanged();
2123       }
2124       if (other.hasSupportsPzs()) {
2125         setSupportsPzs(other.getSupportsPzs());
2126       }
2127       this.mergeUnknownFields(other.getUnknownFields());
2128       onChanged();
2129       return this;
2130     }
2131 
2132     @java.lang.Override
isInitialized()2133     public final boolean isInitialized() {
2134       return true;
2135     }
2136 
2137     @java.lang.Override
mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)2138     public Builder mergeFrom(
2139         com.google.protobuf.CodedInputStream input,
2140         com.google.protobuf.ExtensionRegistryLite extensionRegistry)
2141         throws java.io.IOException {
2142       if (extensionRegistry == null) {
2143         throw new java.lang.NullPointerException();
2144       }
2145       try {
2146         boolean done = false;
2147         while (!done) {
2148           int tag = input.readTag();
2149           switch (tag) {
2150             case 0:
2151               done = true;
2152               break;
2153             case 26840:
2154               {
2155                 id_ = input.readUInt64();
2156                 bitField0_ |= 0x00000100;
2157                 break;
2158               } // case 26840
2159             case 24431450:
2160               {
2161                 city_ = input.readStringRequireUtf8();
2162                 bitField0_ |= 0x00000004;
2163                 break;
2164               } // case 24431450
2165             case 26336418:
2166               {
2167                 kind_ = input.readStringRequireUtf8();
2168                 bitField0_ |= 0x00000200;
2169                 break;
2170               } // case 26336418
2171             case 26989658:
2172               {
2173                 name_ = input.readStringRequireUtf8();
2174                 bitField0_ |= 0x00000400;
2175                 break;
2176               } // case 26989658
2177             case 244202930:
2178               {
2179                 creationTimestamp_ = input.readStringRequireUtf8();
2180                 bitField0_ |= 0x00000010;
2181                 break;
2182               } // case 244202930
2183             case 671865712:
2184               {
2185                 supportsPzs_ = input.readBool();
2186                 bitField0_ |= 0x00008000;
2187                 break;
2188               } // case 671865712
2189             case 698153002:
2190               {
2191                 facilityProviderFacilityId_ = input.readStringRequireUtf8();
2192                 bitField0_ |= 0x00000080;
2193                 break;
2194               } // case 698153002
2195             case 1067543970:
2196               {
2197                 continent_ = input.readStringRequireUtf8();
2198                 bitField0_ |= 0x00000008;
2199                 break;
2200               } // case 1067543970
2201             case 1267679362:
2202               {
2203                 availabilityZone_ = input.readStringRequireUtf8();
2204                 bitField0_ |= 0x00000002;
2205                 break;
2206               } // case 1267679362
2207             case 1450082194:
2208               {
2209                 status_ = input.readStringRequireUtf8();
2210                 bitField0_ |= 0x00004000;
2211                 break;
2212               } // case 1450082194
2213             case -1797413934:
2214               {
2215                 com.google.cloud.compute.v1.InterconnectLocationRegionInfo m =
2216                     input.readMessage(
2217                         com.google.cloud.compute.v1.InterconnectLocationRegionInfo.parser(),
2218                         extensionRegistry);
2219                 if (regionInfosBuilder_ == null) {
2220                   ensureRegionInfosIsMutable();
2221                   regionInfos_.add(m);
2222                 } else {
2223                   regionInfosBuilder_.addMessage(m);
2224                 }
2225                 break;
2226               } // case -1797413934
2227             case -911466526:
2228               {
2229                 description_ = input.readStringRequireUtf8();
2230                 bitField0_ |= 0x00000020;
2231                 break;
2232               } // case -911466526
2233             case -645248918:
2234               {
2235                 selfLink_ = input.readStringRequireUtf8();
2236                 bitField0_ |= 0x00002000;
2237                 break;
2238               } // case -645248918
2239             case -591601758:
2240               {
2241                 address_ = input.readStringRequireUtf8();
2242                 bitField0_ |= 0x00000001;
2243                 break;
2244               } // case -591601758
2245             case -28540822:
2246               {
2247                 facilityProvider_ = input.readStringRequireUtf8();
2248                 bitField0_ |= 0x00000040;
2249                 break;
2250               } // case -28540822
2251             case -2430542:
2252               {
2253                 peeringdbFacilityId_ = input.readStringRequireUtf8();
2254                 bitField0_ |= 0x00000800;
2255                 break;
2256               } // case -2430542
2257             default:
2258               {
2259                 if (!super.parseUnknownField(input, extensionRegistry, tag)) {
2260                   done = true; // was an endgroup tag
2261                 }
2262                 break;
2263               } // default:
2264           } // switch (tag)
2265         } // while (!done)
2266       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
2267         throw e.unwrapIOException();
2268       } finally {
2269         onChanged();
2270       } // finally
2271       return this;
2272     }
2273 
2274     private int bitField0_;
2275 
2276     private java.lang.Object address_ = "";
2277     /**
2278      *
2279      *
2280      * <pre>
2281      * [Output Only] The postal address of the Point of Presence, each line in the address is separated by a newline character.
2282      * </pre>
2283      *
2284      * <code>optional string address = 462920692;</code>
2285      *
2286      * @return Whether the address field is set.
2287      */
hasAddress()2288     public boolean hasAddress() {
2289       return ((bitField0_ & 0x00000001) != 0);
2290     }
2291     /**
2292      *
2293      *
2294      * <pre>
2295      * [Output Only] The postal address of the Point of Presence, each line in the address is separated by a newline character.
2296      * </pre>
2297      *
2298      * <code>optional string address = 462920692;</code>
2299      *
2300      * @return The address.
2301      */
getAddress()2302     public java.lang.String getAddress() {
2303       java.lang.Object ref = address_;
2304       if (!(ref instanceof java.lang.String)) {
2305         com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
2306         java.lang.String s = bs.toStringUtf8();
2307         address_ = s;
2308         return s;
2309       } else {
2310         return (java.lang.String) ref;
2311       }
2312     }
2313     /**
2314      *
2315      *
2316      * <pre>
2317      * [Output Only] The postal address of the Point of Presence, each line in the address is separated by a newline character.
2318      * </pre>
2319      *
2320      * <code>optional string address = 462920692;</code>
2321      *
2322      * @return The bytes for address.
2323      */
getAddressBytes()2324     public com.google.protobuf.ByteString getAddressBytes() {
2325       java.lang.Object ref = address_;
2326       if (ref instanceof String) {
2327         com.google.protobuf.ByteString b =
2328             com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
2329         address_ = b;
2330         return b;
2331       } else {
2332         return (com.google.protobuf.ByteString) ref;
2333       }
2334     }
2335     /**
2336      *
2337      *
2338      * <pre>
2339      * [Output Only] The postal address of the Point of Presence, each line in the address is separated by a newline character.
2340      * </pre>
2341      *
2342      * <code>optional string address = 462920692;</code>
2343      *
2344      * @param value The address to set.
2345      * @return This builder for chaining.
2346      */
setAddress(java.lang.String value)2347     public Builder setAddress(java.lang.String value) {
2348       if (value == null) {
2349         throw new NullPointerException();
2350       }
2351       address_ = value;
2352       bitField0_ |= 0x00000001;
2353       onChanged();
2354       return this;
2355     }
2356     /**
2357      *
2358      *
2359      * <pre>
2360      * [Output Only] The postal address of the Point of Presence, each line in the address is separated by a newline character.
2361      * </pre>
2362      *
2363      * <code>optional string address = 462920692;</code>
2364      *
2365      * @return This builder for chaining.
2366      */
clearAddress()2367     public Builder clearAddress() {
2368       address_ = getDefaultInstance().getAddress();
2369       bitField0_ = (bitField0_ & ~0x00000001);
2370       onChanged();
2371       return this;
2372     }
2373     /**
2374      *
2375      *
2376      * <pre>
2377      * [Output Only] The postal address of the Point of Presence, each line in the address is separated by a newline character.
2378      * </pre>
2379      *
2380      * <code>optional string address = 462920692;</code>
2381      *
2382      * @param value The bytes for address to set.
2383      * @return This builder for chaining.
2384      */
setAddressBytes(com.google.protobuf.ByteString value)2385     public Builder setAddressBytes(com.google.protobuf.ByteString value) {
2386       if (value == null) {
2387         throw new NullPointerException();
2388       }
2389       checkByteStringIsUtf8(value);
2390       address_ = value;
2391       bitField0_ |= 0x00000001;
2392       onChanged();
2393       return this;
2394     }
2395 
2396     private java.lang.Object availabilityZone_ = "";
2397     /**
2398      *
2399      *
2400      * <pre>
2401      * [Output Only] Availability zone for this InterconnectLocation. Within a metropolitan area (metro), maintenance will not be simultaneously scheduled in more than one availability zone. Example: "zone1" or "zone2".
2402      * </pre>
2403      *
2404      * <code>optional string availability_zone = 158459920;</code>
2405      *
2406      * @return Whether the availabilityZone field is set.
2407      */
hasAvailabilityZone()2408     public boolean hasAvailabilityZone() {
2409       return ((bitField0_ & 0x00000002) != 0);
2410     }
2411     /**
2412      *
2413      *
2414      * <pre>
2415      * [Output Only] Availability zone for this InterconnectLocation. Within a metropolitan area (metro), maintenance will not be simultaneously scheduled in more than one availability zone. Example: "zone1" or "zone2".
2416      * </pre>
2417      *
2418      * <code>optional string availability_zone = 158459920;</code>
2419      *
2420      * @return The availabilityZone.
2421      */
getAvailabilityZone()2422     public java.lang.String getAvailabilityZone() {
2423       java.lang.Object ref = availabilityZone_;
2424       if (!(ref instanceof java.lang.String)) {
2425         com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
2426         java.lang.String s = bs.toStringUtf8();
2427         availabilityZone_ = s;
2428         return s;
2429       } else {
2430         return (java.lang.String) ref;
2431       }
2432     }
2433     /**
2434      *
2435      *
2436      * <pre>
2437      * [Output Only] Availability zone for this InterconnectLocation. Within a metropolitan area (metro), maintenance will not be simultaneously scheduled in more than one availability zone. Example: "zone1" or "zone2".
2438      * </pre>
2439      *
2440      * <code>optional string availability_zone = 158459920;</code>
2441      *
2442      * @return The bytes for availabilityZone.
2443      */
getAvailabilityZoneBytes()2444     public com.google.protobuf.ByteString getAvailabilityZoneBytes() {
2445       java.lang.Object ref = availabilityZone_;
2446       if (ref instanceof String) {
2447         com.google.protobuf.ByteString b =
2448             com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
2449         availabilityZone_ = b;
2450         return b;
2451       } else {
2452         return (com.google.protobuf.ByteString) ref;
2453       }
2454     }
2455     /**
2456      *
2457      *
2458      * <pre>
2459      * [Output Only] Availability zone for this InterconnectLocation. Within a metropolitan area (metro), maintenance will not be simultaneously scheduled in more than one availability zone. Example: "zone1" or "zone2".
2460      * </pre>
2461      *
2462      * <code>optional string availability_zone = 158459920;</code>
2463      *
2464      * @param value The availabilityZone to set.
2465      * @return This builder for chaining.
2466      */
setAvailabilityZone(java.lang.String value)2467     public Builder setAvailabilityZone(java.lang.String value) {
2468       if (value == null) {
2469         throw new NullPointerException();
2470       }
2471       availabilityZone_ = value;
2472       bitField0_ |= 0x00000002;
2473       onChanged();
2474       return this;
2475     }
2476     /**
2477      *
2478      *
2479      * <pre>
2480      * [Output Only] Availability zone for this InterconnectLocation. Within a metropolitan area (metro), maintenance will not be simultaneously scheduled in more than one availability zone. Example: "zone1" or "zone2".
2481      * </pre>
2482      *
2483      * <code>optional string availability_zone = 158459920;</code>
2484      *
2485      * @return This builder for chaining.
2486      */
clearAvailabilityZone()2487     public Builder clearAvailabilityZone() {
2488       availabilityZone_ = getDefaultInstance().getAvailabilityZone();
2489       bitField0_ = (bitField0_ & ~0x00000002);
2490       onChanged();
2491       return this;
2492     }
2493     /**
2494      *
2495      *
2496      * <pre>
2497      * [Output Only] Availability zone for this InterconnectLocation. Within a metropolitan area (metro), maintenance will not be simultaneously scheduled in more than one availability zone. Example: "zone1" or "zone2".
2498      * </pre>
2499      *
2500      * <code>optional string availability_zone = 158459920;</code>
2501      *
2502      * @param value The bytes for availabilityZone to set.
2503      * @return This builder for chaining.
2504      */
setAvailabilityZoneBytes(com.google.protobuf.ByteString value)2505     public Builder setAvailabilityZoneBytes(com.google.protobuf.ByteString value) {
2506       if (value == null) {
2507         throw new NullPointerException();
2508       }
2509       checkByteStringIsUtf8(value);
2510       availabilityZone_ = value;
2511       bitField0_ |= 0x00000002;
2512       onChanged();
2513       return this;
2514     }
2515 
2516     private java.lang.Object city_ = "";
2517     /**
2518      *
2519      *
2520      * <pre>
2521      * [Output Only] Metropolitan area designator that indicates which city an interconnect is located. For example: "Chicago, IL", "Amsterdam, Netherlands".
2522      * </pre>
2523      *
2524      * <code>optional string city = 3053931;</code>
2525      *
2526      * @return Whether the city field is set.
2527      */
hasCity()2528     public boolean hasCity() {
2529       return ((bitField0_ & 0x00000004) != 0);
2530     }
2531     /**
2532      *
2533      *
2534      * <pre>
2535      * [Output Only] Metropolitan area designator that indicates which city an interconnect is located. For example: "Chicago, IL", "Amsterdam, Netherlands".
2536      * </pre>
2537      *
2538      * <code>optional string city = 3053931;</code>
2539      *
2540      * @return The city.
2541      */
getCity()2542     public java.lang.String getCity() {
2543       java.lang.Object ref = city_;
2544       if (!(ref instanceof java.lang.String)) {
2545         com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
2546         java.lang.String s = bs.toStringUtf8();
2547         city_ = s;
2548         return s;
2549       } else {
2550         return (java.lang.String) ref;
2551       }
2552     }
2553     /**
2554      *
2555      *
2556      * <pre>
2557      * [Output Only] Metropolitan area designator that indicates which city an interconnect is located. For example: "Chicago, IL", "Amsterdam, Netherlands".
2558      * </pre>
2559      *
2560      * <code>optional string city = 3053931;</code>
2561      *
2562      * @return The bytes for city.
2563      */
getCityBytes()2564     public com.google.protobuf.ByteString getCityBytes() {
2565       java.lang.Object ref = city_;
2566       if (ref instanceof String) {
2567         com.google.protobuf.ByteString b =
2568             com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
2569         city_ = b;
2570         return b;
2571       } else {
2572         return (com.google.protobuf.ByteString) ref;
2573       }
2574     }
2575     /**
2576      *
2577      *
2578      * <pre>
2579      * [Output Only] Metropolitan area designator that indicates which city an interconnect is located. For example: "Chicago, IL", "Amsterdam, Netherlands".
2580      * </pre>
2581      *
2582      * <code>optional string city = 3053931;</code>
2583      *
2584      * @param value The city to set.
2585      * @return This builder for chaining.
2586      */
setCity(java.lang.String value)2587     public Builder setCity(java.lang.String value) {
2588       if (value == null) {
2589         throw new NullPointerException();
2590       }
2591       city_ = value;
2592       bitField0_ |= 0x00000004;
2593       onChanged();
2594       return this;
2595     }
2596     /**
2597      *
2598      *
2599      * <pre>
2600      * [Output Only] Metropolitan area designator that indicates which city an interconnect is located. For example: "Chicago, IL", "Amsterdam, Netherlands".
2601      * </pre>
2602      *
2603      * <code>optional string city = 3053931;</code>
2604      *
2605      * @return This builder for chaining.
2606      */
clearCity()2607     public Builder clearCity() {
2608       city_ = getDefaultInstance().getCity();
2609       bitField0_ = (bitField0_ & ~0x00000004);
2610       onChanged();
2611       return this;
2612     }
2613     /**
2614      *
2615      *
2616      * <pre>
2617      * [Output Only] Metropolitan area designator that indicates which city an interconnect is located. For example: "Chicago, IL", "Amsterdam, Netherlands".
2618      * </pre>
2619      *
2620      * <code>optional string city = 3053931;</code>
2621      *
2622      * @param value The bytes for city to set.
2623      * @return This builder for chaining.
2624      */
setCityBytes(com.google.protobuf.ByteString value)2625     public Builder setCityBytes(com.google.protobuf.ByteString value) {
2626       if (value == null) {
2627         throw new NullPointerException();
2628       }
2629       checkByteStringIsUtf8(value);
2630       city_ = value;
2631       bitField0_ |= 0x00000004;
2632       onChanged();
2633       return this;
2634     }
2635 
2636     private java.lang.Object continent_ = "";
2637     /**
2638      *
2639      *
2640      * <pre>
2641      * [Output Only] Continent for this location, which can take one of the following values: - AFRICA - ASIA_PAC - EUROPE - NORTH_AMERICA - SOUTH_AMERICA
2642      * Check the Continent enum for the list of possible values.
2643      * </pre>
2644      *
2645      * <code>optional string continent = 133442996;</code>
2646      *
2647      * @return Whether the continent field is set.
2648      */
hasContinent()2649     public boolean hasContinent() {
2650       return ((bitField0_ & 0x00000008) != 0);
2651     }
2652     /**
2653      *
2654      *
2655      * <pre>
2656      * [Output Only] Continent for this location, which can take one of the following values: - AFRICA - ASIA_PAC - EUROPE - NORTH_AMERICA - SOUTH_AMERICA
2657      * Check the Continent enum for the list of possible values.
2658      * </pre>
2659      *
2660      * <code>optional string continent = 133442996;</code>
2661      *
2662      * @return The continent.
2663      */
getContinent()2664     public java.lang.String getContinent() {
2665       java.lang.Object ref = continent_;
2666       if (!(ref instanceof java.lang.String)) {
2667         com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
2668         java.lang.String s = bs.toStringUtf8();
2669         continent_ = s;
2670         return s;
2671       } else {
2672         return (java.lang.String) ref;
2673       }
2674     }
2675     /**
2676      *
2677      *
2678      * <pre>
2679      * [Output Only] Continent for this location, which can take one of the following values: - AFRICA - ASIA_PAC - EUROPE - NORTH_AMERICA - SOUTH_AMERICA
2680      * Check the Continent enum for the list of possible values.
2681      * </pre>
2682      *
2683      * <code>optional string continent = 133442996;</code>
2684      *
2685      * @return The bytes for continent.
2686      */
getContinentBytes()2687     public com.google.protobuf.ByteString getContinentBytes() {
2688       java.lang.Object ref = continent_;
2689       if (ref instanceof String) {
2690         com.google.protobuf.ByteString b =
2691             com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
2692         continent_ = b;
2693         return b;
2694       } else {
2695         return (com.google.protobuf.ByteString) ref;
2696       }
2697     }
2698     /**
2699      *
2700      *
2701      * <pre>
2702      * [Output Only] Continent for this location, which can take one of the following values: - AFRICA - ASIA_PAC - EUROPE - NORTH_AMERICA - SOUTH_AMERICA
2703      * Check the Continent enum for the list of possible values.
2704      * </pre>
2705      *
2706      * <code>optional string continent = 133442996;</code>
2707      *
2708      * @param value The continent to set.
2709      * @return This builder for chaining.
2710      */
setContinent(java.lang.String value)2711     public Builder setContinent(java.lang.String value) {
2712       if (value == null) {
2713         throw new NullPointerException();
2714       }
2715       continent_ = value;
2716       bitField0_ |= 0x00000008;
2717       onChanged();
2718       return this;
2719     }
2720     /**
2721      *
2722      *
2723      * <pre>
2724      * [Output Only] Continent for this location, which can take one of the following values: - AFRICA - ASIA_PAC - EUROPE - NORTH_AMERICA - SOUTH_AMERICA
2725      * Check the Continent enum for the list of possible values.
2726      * </pre>
2727      *
2728      * <code>optional string continent = 133442996;</code>
2729      *
2730      * @return This builder for chaining.
2731      */
clearContinent()2732     public Builder clearContinent() {
2733       continent_ = getDefaultInstance().getContinent();
2734       bitField0_ = (bitField0_ & ~0x00000008);
2735       onChanged();
2736       return this;
2737     }
2738     /**
2739      *
2740      *
2741      * <pre>
2742      * [Output Only] Continent for this location, which can take one of the following values: - AFRICA - ASIA_PAC - EUROPE - NORTH_AMERICA - SOUTH_AMERICA
2743      * Check the Continent enum for the list of possible values.
2744      * </pre>
2745      *
2746      * <code>optional string continent = 133442996;</code>
2747      *
2748      * @param value The bytes for continent to set.
2749      * @return This builder for chaining.
2750      */
setContinentBytes(com.google.protobuf.ByteString value)2751     public Builder setContinentBytes(com.google.protobuf.ByteString value) {
2752       if (value == null) {
2753         throw new NullPointerException();
2754       }
2755       checkByteStringIsUtf8(value);
2756       continent_ = value;
2757       bitField0_ |= 0x00000008;
2758       onChanged();
2759       return this;
2760     }
2761 
2762     private java.lang.Object creationTimestamp_ = "";
2763     /**
2764      *
2765      *
2766      * <pre>
2767      * [Output Only] Creation timestamp in RFC3339 text format.
2768      * </pre>
2769      *
2770      * <code>optional string creation_timestamp = 30525366;</code>
2771      *
2772      * @return Whether the creationTimestamp field is set.
2773      */
hasCreationTimestamp()2774     public boolean hasCreationTimestamp() {
2775       return ((bitField0_ & 0x00000010) != 0);
2776     }
2777     /**
2778      *
2779      *
2780      * <pre>
2781      * [Output Only] Creation timestamp in RFC3339 text format.
2782      * </pre>
2783      *
2784      * <code>optional string creation_timestamp = 30525366;</code>
2785      *
2786      * @return The creationTimestamp.
2787      */
getCreationTimestamp()2788     public java.lang.String getCreationTimestamp() {
2789       java.lang.Object ref = creationTimestamp_;
2790       if (!(ref instanceof java.lang.String)) {
2791         com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
2792         java.lang.String s = bs.toStringUtf8();
2793         creationTimestamp_ = s;
2794         return s;
2795       } else {
2796         return (java.lang.String) ref;
2797       }
2798     }
2799     /**
2800      *
2801      *
2802      * <pre>
2803      * [Output Only] Creation timestamp in RFC3339 text format.
2804      * </pre>
2805      *
2806      * <code>optional string creation_timestamp = 30525366;</code>
2807      *
2808      * @return The bytes for creationTimestamp.
2809      */
getCreationTimestampBytes()2810     public com.google.protobuf.ByteString getCreationTimestampBytes() {
2811       java.lang.Object ref = creationTimestamp_;
2812       if (ref instanceof String) {
2813         com.google.protobuf.ByteString b =
2814             com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
2815         creationTimestamp_ = b;
2816         return b;
2817       } else {
2818         return (com.google.protobuf.ByteString) ref;
2819       }
2820     }
2821     /**
2822      *
2823      *
2824      * <pre>
2825      * [Output Only] Creation timestamp in RFC3339 text format.
2826      * </pre>
2827      *
2828      * <code>optional string creation_timestamp = 30525366;</code>
2829      *
2830      * @param value The creationTimestamp to set.
2831      * @return This builder for chaining.
2832      */
setCreationTimestamp(java.lang.String value)2833     public Builder setCreationTimestamp(java.lang.String value) {
2834       if (value == null) {
2835         throw new NullPointerException();
2836       }
2837       creationTimestamp_ = value;
2838       bitField0_ |= 0x00000010;
2839       onChanged();
2840       return this;
2841     }
2842     /**
2843      *
2844      *
2845      * <pre>
2846      * [Output Only] Creation timestamp in RFC3339 text format.
2847      * </pre>
2848      *
2849      * <code>optional string creation_timestamp = 30525366;</code>
2850      *
2851      * @return This builder for chaining.
2852      */
clearCreationTimestamp()2853     public Builder clearCreationTimestamp() {
2854       creationTimestamp_ = getDefaultInstance().getCreationTimestamp();
2855       bitField0_ = (bitField0_ & ~0x00000010);
2856       onChanged();
2857       return this;
2858     }
2859     /**
2860      *
2861      *
2862      * <pre>
2863      * [Output Only] Creation timestamp in RFC3339 text format.
2864      * </pre>
2865      *
2866      * <code>optional string creation_timestamp = 30525366;</code>
2867      *
2868      * @param value The bytes for creationTimestamp to set.
2869      * @return This builder for chaining.
2870      */
setCreationTimestampBytes(com.google.protobuf.ByteString value)2871     public Builder setCreationTimestampBytes(com.google.protobuf.ByteString value) {
2872       if (value == null) {
2873         throw new NullPointerException();
2874       }
2875       checkByteStringIsUtf8(value);
2876       creationTimestamp_ = value;
2877       bitField0_ |= 0x00000010;
2878       onChanged();
2879       return this;
2880     }
2881 
2882     private java.lang.Object description_ = "";
2883     /**
2884      *
2885      *
2886      * <pre>
2887      * [Output Only] An optional description of the resource.
2888      * </pre>
2889      *
2890      * <code>optional string description = 422937596;</code>
2891      *
2892      * @return Whether the description field is set.
2893      */
hasDescription()2894     public boolean hasDescription() {
2895       return ((bitField0_ & 0x00000020) != 0);
2896     }
2897     /**
2898      *
2899      *
2900      * <pre>
2901      * [Output Only] An optional description of the resource.
2902      * </pre>
2903      *
2904      * <code>optional string description = 422937596;</code>
2905      *
2906      * @return The description.
2907      */
getDescription()2908     public java.lang.String getDescription() {
2909       java.lang.Object ref = description_;
2910       if (!(ref instanceof java.lang.String)) {
2911         com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
2912         java.lang.String s = bs.toStringUtf8();
2913         description_ = s;
2914         return s;
2915       } else {
2916         return (java.lang.String) ref;
2917       }
2918     }
2919     /**
2920      *
2921      *
2922      * <pre>
2923      * [Output Only] An optional description of the resource.
2924      * </pre>
2925      *
2926      * <code>optional string description = 422937596;</code>
2927      *
2928      * @return The bytes for description.
2929      */
getDescriptionBytes()2930     public com.google.protobuf.ByteString getDescriptionBytes() {
2931       java.lang.Object ref = description_;
2932       if (ref instanceof String) {
2933         com.google.protobuf.ByteString b =
2934             com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
2935         description_ = b;
2936         return b;
2937       } else {
2938         return (com.google.protobuf.ByteString) ref;
2939       }
2940     }
2941     /**
2942      *
2943      *
2944      * <pre>
2945      * [Output Only] An optional description of the resource.
2946      * </pre>
2947      *
2948      * <code>optional string description = 422937596;</code>
2949      *
2950      * @param value The description to set.
2951      * @return This builder for chaining.
2952      */
setDescription(java.lang.String value)2953     public Builder setDescription(java.lang.String value) {
2954       if (value == null) {
2955         throw new NullPointerException();
2956       }
2957       description_ = value;
2958       bitField0_ |= 0x00000020;
2959       onChanged();
2960       return this;
2961     }
2962     /**
2963      *
2964      *
2965      * <pre>
2966      * [Output Only] An optional description of the resource.
2967      * </pre>
2968      *
2969      * <code>optional string description = 422937596;</code>
2970      *
2971      * @return This builder for chaining.
2972      */
clearDescription()2973     public Builder clearDescription() {
2974       description_ = getDefaultInstance().getDescription();
2975       bitField0_ = (bitField0_ & ~0x00000020);
2976       onChanged();
2977       return this;
2978     }
2979     /**
2980      *
2981      *
2982      * <pre>
2983      * [Output Only] An optional description of the resource.
2984      * </pre>
2985      *
2986      * <code>optional string description = 422937596;</code>
2987      *
2988      * @param value The bytes for description to set.
2989      * @return This builder for chaining.
2990      */
setDescriptionBytes(com.google.protobuf.ByteString value)2991     public Builder setDescriptionBytes(com.google.protobuf.ByteString value) {
2992       if (value == null) {
2993         throw new NullPointerException();
2994       }
2995       checkByteStringIsUtf8(value);
2996       description_ = value;
2997       bitField0_ |= 0x00000020;
2998       onChanged();
2999       return this;
3000     }
3001 
3002     private java.lang.Object facilityProvider_ = "";
3003     /**
3004      *
3005      *
3006      * <pre>
3007      * [Output Only] The name of the provider for this facility (e.g., EQUINIX).
3008      * </pre>
3009      *
3010      * <code>optional string facility_provider = 533303309;</code>
3011      *
3012      * @return Whether the facilityProvider field is set.
3013      */
hasFacilityProvider()3014     public boolean hasFacilityProvider() {
3015       return ((bitField0_ & 0x00000040) != 0);
3016     }
3017     /**
3018      *
3019      *
3020      * <pre>
3021      * [Output Only] The name of the provider for this facility (e.g., EQUINIX).
3022      * </pre>
3023      *
3024      * <code>optional string facility_provider = 533303309;</code>
3025      *
3026      * @return The facilityProvider.
3027      */
getFacilityProvider()3028     public java.lang.String getFacilityProvider() {
3029       java.lang.Object ref = facilityProvider_;
3030       if (!(ref instanceof java.lang.String)) {
3031         com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
3032         java.lang.String s = bs.toStringUtf8();
3033         facilityProvider_ = s;
3034         return s;
3035       } else {
3036         return (java.lang.String) ref;
3037       }
3038     }
3039     /**
3040      *
3041      *
3042      * <pre>
3043      * [Output Only] The name of the provider for this facility (e.g., EQUINIX).
3044      * </pre>
3045      *
3046      * <code>optional string facility_provider = 533303309;</code>
3047      *
3048      * @return The bytes for facilityProvider.
3049      */
getFacilityProviderBytes()3050     public com.google.protobuf.ByteString getFacilityProviderBytes() {
3051       java.lang.Object ref = facilityProvider_;
3052       if (ref instanceof String) {
3053         com.google.protobuf.ByteString b =
3054             com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
3055         facilityProvider_ = b;
3056         return b;
3057       } else {
3058         return (com.google.protobuf.ByteString) ref;
3059       }
3060     }
3061     /**
3062      *
3063      *
3064      * <pre>
3065      * [Output Only] The name of the provider for this facility (e.g., EQUINIX).
3066      * </pre>
3067      *
3068      * <code>optional string facility_provider = 533303309;</code>
3069      *
3070      * @param value The facilityProvider to set.
3071      * @return This builder for chaining.
3072      */
setFacilityProvider(java.lang.String value)3073     public Builder setFacilityProvider(java.lang.String value) {
3074       if (value == null) {
3075         throw new NullPointerException();
3076       }
3077       facilityProvider_ = value;
3078       bitField0_ |= 0x00000040;
3079       onChanged();
3080       return this;
3081     }
3082     /**
3083      *
3084      *
3085      * <pre>
3086      * [Output Only] The name of the provider for this facility (e.g., EQUINIX).
3087      * </pre>
3088      *
3089      * <code>optional string facility_provider = 533303309;</code>
3090      *
3091      * @return This builder for chaining.
3092      */
clearFacilityProvider()3093     public Builder clearFacilityProvider() {
3094       facilityProvider_ = getDefaultInstance().getFacilityProvider();
3095       bitField0_ = (bitField0_ & ~0x00000040);
3096       onChanged();
3097       return this;
3098     }
3099     /**
3100      *
3101      *
3102      * <pre>
3103      * [Output Only] The name of the provider for this facility (e.g., EQUINIX).
3104      * </pre>
3105      *
3106      * <code>optional string facility_provider = 533303309;</code>
3107      *
3108      * @param value The bytes for facilityProvider to set.
3109      * @return This builder for chaining.
3110      */
setFacilityProviderBytes(com.google.protobuf.ByteString value)3111     public Builder setFacilityProviderBytes(com.google.protobuf.ByteString value) {
3112       if (value == null) {
3113         throw new NullPointerException();
3114       }
3115       checkByteStringIsUtf8(value);
3116       facilityProvider_ = value;
3117       bitField0_ |= 0x00000040;
3118       onChanged();
3119       return this;
3120     }
3121 
3122     private java.lang.Object facilityProviderFacilityId_ = "";
3123     /**
3124      *
3125      *
3126      * <pre>
3127      * [Output Only] A provider-assigned Identifier for this facility (e.g., Ashburn-DC1).
3128      * </pre>
3129      *
3130      * <code>optional string facility_provider_facility_id = 87269125;</code>
3131      *
3132      * @return Whether the facilityProviderFacilityId field is set.
3133      */
hasFacilityProviderFacilityId()3134     public boolean hasFacilityProviderFacilityId() {
3135       return ((bitField0_ & 0x00000080) != 0);
3136     }
3137     /**
3138      *
3139      *
3140      * <pre>
3141      * [Output Only] A provider-assigned Identifier for this facility (e.g., Ashburn-DC1).
3142      * </pre>
3143      *
3144      * <code>optional string facility_provider_facility_id = 87269125;</code>
3145      *
3146      * @return The facilityProviderFacilityId.
3147      */
getFacilityProviderFacilityId()3148     public java.lang.String getFacilityProviderFacilityId() {
3149       java.lang.Object ref = facilityProviderFacilityId_;
3150       if (!(ref instanceof java.lang.String)) {
3151         com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
3152         java.lang.String s = bs.toStringUtf8();
3153         facilityProviderFacilityId_ = s;
3154         return s;
3155       } else {
3156         return (java.lang.String) ref;
3157       }
3158     }
3159     /**
3160      *
3161      *
3162      * <pre>
3163      * [Output Only] A provider-assigned Identifier for this facility (e.g., Ashburn-DC1).
3164      * </pre>
3165      *
3166      * <code>optional string facility_provider_facility_id = 87269125;</code>
3167      *
3168      * @return The bytes for facilityProviderFacilityId.
3169      */
getFacilityProviderFacilityIdBytes()3170     public com.google.protobuf.ByteString getFacilityProviderFacilityIdBytes() {
3171       java.lang.Object ref = facilityProviderFacilityId_;
3172       if (ref instanceof String) {
3173         com.google.protobuf.ByteString b =
3174             com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
3175         facilityProviderFacilityId_ = b;
3176         return b;
3177       } else {
3178         return (com.google.protobuf.ByteString) ref;
3179       }
3180     }
3181     /**
3182      *
3183      *
3184      * <pre>
3185      * [Output Only] A provider-assigned Identifier for this facility (e.g., Ashburn-DC1).
3186      * </pre>
3187      *
3188      * <code>optional string facility_provider_facility_id = 87269125;</code>
3189      *
3190      * @param value The facilityProviderFacilityId to set.
3191      * @return This builder for chaining.
3192      */
setFacilityProviderFacilityId(java.lang.String value)3193     public Builder setFacilityProviderFacilityId(java.lang.String value) {
3194       if (value == null) {
3195         throw new NullPointerException();
3196       }
3197       facilityProviderFacilityId_ = value;
3198       bitField0_ |= 0x00000080;
3199       onChanged();
3200       return this;
3201     }
3202     /**
3203      *
3204      *
3205      * <pre>
3206      * [Output Only] A provider-assigned Identifier for this facility (e.g., Ashburn-DC1).
3207      * </pre>
3208      *
3209      * <code>optional string facility_provider_facility_id = 87269125;</code>
3210      *
3211      * @return This builder for chaining.
3212      */
clearFacilityProviderFacilityId()3213     public Builder clearFacilityProviderFacilityId() {
3214       facilityProviderFacilityId_ = getDefaultInstance().getFacilityProviderFacilityId();
3215       bitField0_ = (bitField0_ & ~0x00000080);
3216       onChanged();
3217       return this;
3218     }
3219     /**
3220      *
3221      *
3222      * <pre>
3223      * [Output Only] A provider-assigned Identifier for this facility (e.g., Ashburn-DC1).
3224      * </pre>
3225      *
3226      * <code>optional string facility_provider_facility_id = 87269125;</code>
3227      *
3228      * @param value The bytes for facilityProviderFacilityId to set.
3229      * @return This builder for chaining.
3230      */
setFacilityProviderFacilityIdBytes(com.google.protobuf.ByteString value)3231     public Builder setFacilityProviderFacilityIdBytes(com.google.protobuf.ByteString value) {
3232       if (value == null) {
3233         throw new NullPointerException();
3234       }
3235       checkByteStringIsUtf8(value);
3236       facilityProviderFacilityId_ = value;
3237       bitField0_ |= 0x00000080;
3238       onChanged();
3239       return this;
3240     }
3241 
3242     private long id_;
3243     /**
3244      *
3245      *
3246      * <pre>
3247      * [Output Only] The unique identifier for the resource. This identifier is defined by the server.
3248      * </pre>
3249      *
3250      * <code>optional uint64 id = 3355;</code>
3251      *
3252      * @return Whether the id field is set.
3253      */
3254     @java.lang.Override
hasId()3255     public boolean hasId() {
3256       return ((bitField0_ & 0x00000100) != 0);
3257     }
3258     /**
3259      *
3260      *
3261      * <pre>
3262      * [Output Only] The unique identifier for the resource. This identifier is defined by the server.
3263      * </pre>
3264      *
3265      * <code>optional uint64 id = 3355;</code>
3266      *
3267      * @return The id.
3268      */
3269     @java.lang.Override
getId()3270     public long getId() {
3271       return id_;
3272     }
3273     /**
3274      *
3275      *
3276      * <pre>
3277      * [Output Only] The unique identifier for the resource. This identifier is defined by the server.
3278      * </pre>
3279      *
3280      * <code>optional uint64 id = 3355;</code>
3281      *
3282      * @param value The id to set.
3283      * @return This builder for chaining.
3284      */
setId(long value)3285     public Builder setId(long value) {
3286 
3287       id_ = value;
3288       bitField0_ |= 0x00000100;
3289       onChanged();
3290       return this;
3291     }
3292     /**
3293      *
3294      *
3295      * <pre>
3296      * [Output Only] The unique identifier for the resource. This identifier is defined by the server.
3297      * </pre>
3298      *
3299      * <code>optional uint64 id = 3355;</code>
3300      *
3301      * @return This builder for chaining.
3302      */
clearId()3303     public Builder clearId() {
3304       bitField0_ = (bitField0_ & ~0x00000100);
3305       id_ = 0L;
3306       onChanged();
3307       return this;
3308     }
3309 
3310     private java.lang.Object kind_ = "";
3311     /**
3312      *
3313      *
3314      * <pre>
3315      * [Output Only] Type of the resource. Always compute#interconnectLocation for interconnect locations.
3316      * </pre>
3317      *
3318      * <code>optional string kind = 3292052;</code>
3319      *
3320      * @return Whether the kind field is set.
3321      */
hasKind()3322     public boolean hasKind() {
3323       return ((bitField0_ & 0x00000200) != 0);
3324     }
3325     /**
3326      *
3327      *
3328      * <pre>
3329      * [Output Only] Type of the resource. Always compute#interconnectLocation for interconnect locations.
3330      * </pre>
3331      *
3332      * <code>optional string kind = 3292052;</code>
3333      *
3334      * @return The kind.
3335      */
getKind()3336     public java.lang.String getKind() {
3337       java.lang.Object ref = kind_;
3338       if (!(ref instanceof java.lang.String)) {
3339         com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
3340         java.lang.String s = bs.toStringUtf8();
3341         kind_ = s;
3342         return s;
3343       } else {
3344         return (java.lang.String) ref;
3345       }
3346     }
3347     /**
3348      *
3349      *
3350      * <pre>
3351      * [Output Only] Type of the resource. Always compute#interconnectLocation for interconnect locations.
3352      * </pre>
3353      *
3354      * <code>optional string kind = 3292052;</code>
3355      *
3356      * @return The bytes for kind.
3357      */
getKindBytes()3358     public com.google.protobuf.ByteString getKindBytes() {
3359       java.lang.Object ref = kind_;
3360       if (ref instanceof String) {
3361         com.google.protobuf.ByteString b =
3362             com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
3363         kind_ = b;
3364         return b;
3365       } else {
3366         return (com.google.protobuf.ByteString) ref;
3367       }
3368     }
3369     /**
3370      *
3371      *
3372      * <pre>
3373      * [Output Only] Type of the resource. Always compute#interconnectLocation for interconnect locations.
3374      * </pre>
3375      *
3376      * <code>optional string kind = 3292052;</code>
3377      *
3378      * @param value The kind to set.
3379      * @return This builder for chaining.
3380      */
setKind(java.lang.String value)3381     public Builder setKind(java.lang.String value) {
3382       if (value == null) {
3383         throw new NullPointerException();
3384       }
3385       kind_ = value;
3386       bitField0_ |= 0x00000200;
3387       onChanged();
3388       return this;
3389     }
3390     /**
3391      *
3392      *
3393      * <pre>
3394      * [Output Only] Type of the resource. Always compute#interconnectLocation for interconnect locations.
3395      * </pre>
3396      *
3397      * <code>optional string kind = 3292052;</code>
3398      *
3399      * @return This builder for chaining.
3400      */
clearKind()3401     public Builder clearKind() {
3402       kind_ = getDefaultInstance().getKind();
3403       bitField0_ = (bitField0_ & ~0x00000200);
3404       onChanged();
3405       return this;
3406     }
3407     /**
3408      *
3409      *
3410      * <pre>
3411      * [Output Only] Type of the resource. Always compute#interconnectLocation for interconnect locations.
3412      * </pre>
3413      *
3414      * <code>optional string kind = 3292052;</code>
3415      *
3416      * @param value The bytes for kind to set.
3417      * @return This builder for chaining.
3418      */
setKindBytes(com.google.protobuf.ByteString value)3419     public Builder setKindBytes(com.google.protobuf.ByteString value) {
3420       if (value == null) {
3421         throw new NullPointerException();
3422       }
3423       checkByteStringIsUtf8(value);
3424       kind_ = value;
3425       bitField0_ |= 0x00000200;
3426       onChanged();
3427       return this;
3428     }
3429 
3430     private java.lang.Object name_ = "";
3431     /**
3432      *
3433      *
3434      * <pre>
3435      * [Output Only] Name of the resource.
3436      * </pre>
3437      *
3438      * <code>optional string name = 3373707;</code>
3439      *
3440      * @return Whether the name field is set.
3441      */
hasName()3442     public boolean hasName() {
3443       return ((bitField0_ & 0x00000400) != 0);
3444     }
3445     /**
3446      *
3447      *
3448      * <pre>
3449      * [Output Only] Name of the resource.
3450      * </pre>
3451      *
3452      * <code>optional string name = 3373707;</code>
3453      *
3454      * @return The name.
3455      */
getName()3456     public java.lang.String getName() {
3457       java.lang.Object ref = name_;
3458       if (!(ref instanceof java.lang.String)) {
3459         com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
3460         java.lang.String s = bs.toStringUtf8();
3461         name_ = s;
3462         return s;
3463       } else {
3464         return (java.lang.String) ref;
3465       }
3466     }
3467     /**
3468      *
3469      *
3470      * <pre>
3471      * [Output Only] Name of the resource.
3472      * </pre>
3473      *
3474      * <code>optional string name = 3373707;</code>
3475      *
3476      * @return The bytes for name.
3477      */
getNameBytes()3478     public com.google.protobuf.ByteString getNameBytes() {
3479       java.lang.Object ref = name_;
3480       if (ref instanceof String) {
3481         com.google.protobuf.ByteString b =
3482             com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
3483         name_ = b;
3484         return b;
3485       } else {
3486         return (com.google.protobuf.ByteString) ref;
3487       }
3488     }
3489     /**
3490      *
3491      *
3492      * <pre>
3493      * [Output Only] Name of the resource.
3494      * </pre>
3495      *
3496      * <code>optional string name = 3373707;</code>
3497      *
3498      * @param value The name to set.
3499      * @return This builder for chaining.
3500      */
setName(java.lang.String value)3501     public Builder setName(java.lang.String value) {
3502       if (value == null) {
3503         throw new NullPointerException();
3504       }
3505       name_ = value;
3506       bitField0_ |= 0x00000400;
3507       onChanged();
3508       return this;
3509     }
3510     /**
3511      *
3512      *
3513      * <pre>
3514      * [Output Only] Name of the resource.
3515      * </pre>
3516      *
3517      * <code>optional string name = 3373707;</code>
3518      *
3519      * @return This builder for chaining.
3520      */
clearName()3521     public Builder clearName() {
3522       name_ = getDefaultInstance().getName();
3523       bitField0_ = (bitField0_ & ~0x00000400);
3524       onChanged();
3525       return this;
3526     }
3527     /**
3528      *
3529      *
3530      * <pre>
3531      * [Output Only] Name of the resource.
3532      * </pre>
3533      *
3534      * <code>optional string name = 3373707;</code>
3535      *
3536      * @param value The bytes for name to set.
3537      * @return This builder for chaining.
3538      */
setNameBytes(com.google.protobuf.ByteString value)3539     public Builder setNameBytes(com.google.protobuf.ByteString value) {
3540       if (value == null) {
3541         throw new NullPointerException();
3542       }
3543       checkByteStringIsUtf8(value);
3544       name_ = value;
3545       bitField0_ |= 0x00000400;
3546       onChanged();
3547       return this;
3548     }
3549 
3550     private java.lang.Object peeringdbFacilityId_ = "";
3551     /**
3552      *
3553      *
3554      * <pre>
3555      * [Output Only] The peeringdb identifier for this facility (corresponding with a netfac type in peeringdb).
3556      * </pre>
3557      *
3558      * <code>optional string peeringdb_facility_id = 536567094;</code>
3559      *
3560      * @return Whether the peeringdbFacilityId field is set.
3561      */
hasPeeringdbFacilityId()3562     public boolean hasPeeringdbFacilityId() {
3563       return ((bitField0_ & 0x00000800) != 0);
3564     }
3565     /**
3566      *
3567      *
3568      * <pre>
3569      * [Output Only] The peeringdb identifier for this facility (corresponding with a netfac type in peeringdb).
3570      * </pre>
3571      *
3572      * <code>optional string peeringdb_facility_id = 536567094;</code>
3573      *
3574      * @return The peeringdbFacilityId.
3575      */
getPeeringdbFacilityId()3576     public java.lang.String getPeeringdbFacilityId() {
3577       java.lang.Object ref = peeringdbFacilityId_;
3578       if (!(ref instanceof java.lang.String)) {
3579         com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
3580         java.lang.String s = bs.toStringUtf8();
3581         peeringdbFacilityId_ = s;
3582         return s;
3583       } else {
3584         return (java.lang.String) ref;
3585       }
3586     }
3587     /**
3588      *
3589      *
3590      * <pre>
3591      * [Output Only] The peeringdb identifier for this facility (corresponding with a netfac type in peeringdb).
3592      * </pre>
3593      *
3594      * <code>optional string peeringdb_facility_id = 536567094;</code>
3595      *
3596      * @return The bytes for peeringdbFacilityId.
3597      */
getPeeringdbFacilityIdBytes()3598     public com.google.protobuf.ByteString getPeeringdbFacilityIdBytes() {
3599       java.lang.Object ref = peeringdbFacilityId_;
3600       if (ref instanceof String) {
3601         com.google.protobuf.ByteString b =
3602             com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
3603         peeringdbFacilityId_ = b;
3604         return b;
3605       } else {
3606         return (com.google.protobuf.ByteString) ref;
3607       }
3608     }
3609     /**
3610      *
3611      *
3612      * <pre>
3613      * [Output Only] The peeringdb identifier for this facility (corresponding with a netfac type in peeringdb).
3614      * </pre>
3615      *
3616      * <code>optional string peeringdb_facility_id = 536567094;</code>
3617      *
3618      * @param value The peeringdbFacilityId to set.
3619      * @return This builder for chaining.
3620      */
setPeeringdbFacilityId(java.lang.String value)3621     public Builder setPeeringdbFacilityId(java.lang.String value) {
3622       if (value == null) {
3623         throw new NullPointerException();
3624       }
3625       peeringdbFacilityId_ = value;
3626       bitField0_ |= 0x00000800;
3627       onChanged();
3628       return this;
3629     }
3630     /**
3631      *
3632      *
3633      * <pre>
3634      * [Output Only] The peeringdb identifier for this facility (corresponding with a netfac type in peeringdb).
3635      * </pre>
3636      *
3637      * <code>optional string peeringdb_facility_id = 536567094;</code>
3638      *
3639      * @return This builder for chaining.
3640      */
clearPeeringdbFacilityId()3641     public Builder clearPeeringdbFacilityId() {
3642       peeringdbFacilityId_ = getDefaultInstance().getPeeringdbFacilityId();
3643       bitField0_ = (bitField0_ & ~0x00000800);
3644       onChanged();
3645       return this;
3646     }
3647     /**
3648      *
3649      *
3650      * <pre>
3651      * [Output Only] The peeringdb identifier for this facility (corresponding with a netfac type in peeringdb).
3652      * </pre>
3653      *
3654      * <code>optional string peeringdb_facility_id = 536567094;</code>
3655      *
3656      * @param value The bytes for peeringdbFacilityId to set.
3657      * @return This builder for chaining.
3658      */
setPeeringdbFacilityIdBytes(com.google.protobuf.ByteString value)3659     public Builder setPeeringdbFacilityIdBytes(com.google.protobuf.ByteString value) {
3660       if (value == null) {
3661         throw new NullPointerException();
3662       }
3663       checkByteStringIsUtf8(value);
3664       peeringdbFacilityId_ = value;
3665       bitField0_ |= 0x00000800;
3666       onChanged();
3667       return this;
3668     }
3669 
3670     private java.util.List<com.google.cloud.compute.v1.InterconnectLocationRegionInfo>
3671         regionInfos_ = java.util.Collections.emptyList();
3672 
ensureRegionInfosIsMutable()3673     private void ensureRegionInfosIsMutable() {
3674       if (!((bitField0_ & 0x00001000) != 0)) {
3675         regionInfos_ =
3676             new java.util.ArrayList<com.google.cloud.compute.v1.InterconnectLocationRegionInfo>(
3677                 regionInfos_);
3678         bitField0_ |= 0x00001000;
3679       }
3680     }
3681 
3682     private com.google.protobuf.RepeatedFieldBuilderV3<
3683             com.google.cloud.compute.v1.InterconnectLocationRegionInfo,
3684             com.google.cloud.compute.v1.InterconnectLocationRegionInfo.Builder,
3685             com.google.cloud.compute.v1.InterconnectLocationRegionInfoOrBuilder>
3686         regionInfosBuilder_;
3687 
3688     /**
3689      *
3690      *
3691      * <pre>
3692      * [Output Only] A list of InterconnectLocation.RegionInfo objects, that describe parameters pertaining to the relation between this InterconnectLocation and various Google Cloud regions.
3693      * </pre>
3694      *
3695      * <code>
3696      * repeated .google.cloud.compute.v1.InterconnectLocationRegionInfo region_infos = 312194170;
3697      * </code>
3698      */
3699     public java.util.List<com.google.cloud.compute.v1.InterconnectLocationRegionInfo>
getRegionInfosList()3700         getRegionInfosList() {
3701       if (regionInfosBuilder_ == null) {
3702         return java.util.Collections.unmodifiableList(regionInfos_);
3703       } else {
3704         return regionInfosBuilder_.getMessageList();
3705       }
3706     }
3707     /**
3708      *
3709      *
3710      * <pre>
3711      * [Output Only] A list of InterconnectLocation.RegionInfo objects, that describe parameters pertaining to the relation between this InterconnectLocation and various Google Cloud regions.
3712      * </pre>
3713      *
3714      * <code>
3715      * repeated .google.cloud.compute.v1.InterconnectLocationRegionInfo region_infos = 312194170;
3716      * </code>
3717      */
getRegionInfosCount()3718     public int getRegionInfosCount() {
3719       if (regionInfosBuilder_ == null) {
3720         return regionInfos_.size();
3721       } else {
3722         return regionInfosBuilder_.getCount();
3723       }
3724     }
3725     /**
3726      *
3727      *
3728      * <pre>
3729      * [Output Only] A list of InterconnectLocation.RegionInfo objects, that describe parameters pertaining to the relation between this InterconnectLocation and various Google Cloud regions.
3730      * </pre>
3731      *
3732      * <code>
3733      * repeated .google.cloud.compute.v1.InterconnectLocationRegionInfo region_infos = 312194170;
3734      * </code>
3735      */
getRegionInfos(int index)3736     public com.google.cloud.compute.v1.InterconnectLocationRegionInfo getRegionInfos(int index) {
3737       if (regionInfosBuilder_ == null) {
3738         return regionInfos_.get(index);
3739       } else {
3740         return regionInfosBuilder_.getMessage(index);
3741       }
3742     }
3743     /**
3744      *
3745      *
3746      * <pre>
3747      * [Output Only] A list of InterconnectLocation.RegionInfo objects, that describe parameters pertaining to the relation between this InterconnectLocation and various Google Cloud regions.
3748      * </pre>
3749      *
3750      * <code>
3751      * repeated .google.cloud.compute.v1.InterconnectLocationRegionInfo region_infos = 312194170;
3752      * </code>
3753      */
setRegionInfos( int index, com.google.cloud.compute.v1.InterconnectLocationRegionInfo value)3754     public Builder setRegionInfos(
3755         int index, com.google.cloud.compute.v1.InterconnectLocationRegionInfo value) {
3756       if (regionInfosBuilder_ == null) {
3757         if (value == null) {
3758           throw new NullPointerException();
3759         }
3760         ensureRegionInfosIsMutable();
3761         regionInfos_.set(index, value);
3762         onChanged();
3763       } else {
3764         regionInfosBuilder_.setMessage(index, value);
3765       }
3766       return this;
3767     }
3768     /**
3769      *
3770      *
3771      * <pre>
3772      * [Output Only] A list of InterconnectLocation.RegionInfo objects, that describe parameters pertaining to the relation between this InterconnectLocation and various Google Cloud regions.
3773      * </pre>
3774      *
3775      * <code>
3776      * repeated .google.cloud.compute.v1.InterconnectLocationRegionInfo region_infos = 312194170;
3777      * </code>
3778      */
setRegionInfos( int index, com.google.cloud.compute.v1.InterconnectLocationRegionInfo.Builder builderForValue)3779     public Builder setRegionInfos(
3780         int index,
3781         com.google.cloud.compute.v1.InterconnectLocationRegionInfo.Builder builderForValue) {
3782       if (regionInfosBuilder_ == null) {
3783         ensureRegionInfosIsMutable();
3784         regionInfos_.set(index, builderForValue.build());
3785         onChanged();
3786       } else {
3787         regionInfosBuilder_.setMessage(index, builderForValue.build());
3788       }
3789       return this;
3790     }
3791     /**
3792      *
3793      *
3794      * <pre>
3795      * [Output Only] A list of InterconnectLocation.RegionInfo objects, that describe parameters pertaining to the relation between this InterconnectLocation and various Google Cloud regions.
3796      * </pre>
3797      *
3798      * <code>
3799      * repeated .google.cloud.compute.v1.InterconnectLocationRegionInfo region_infos = 312194170;
3800      * </code>
3801      */
addRegionInfos( com.google.cloud.compute.v1.InterconnectLocationRegionInfo value)3802     public Builder addRegionInfos(
3803         com.google.cloud.compute.v1.InterconnectLocationRegionInfo value) {
3804       if (regionInfosBuilder_ == null) {
3805         if (value == null) {
3806           throw new NullPointerException();
3807         }
3808         ensureRegionInfosIsMutable();
3809         regionInfos_.add(value);
3810         onChanged();
3811       } else {
3812         regionInfosBuilder_.addMessage(value);
3813       }
3814       return this;
3815     }
3816     /**
3817      *
3818      *
3819      * <pre>
3820      * [Output Only] A list of InterconnectLocation.RegionInfo objects, that describe parameters pertaining to the relation between this InterconnectLocation and various Google Cloud regions.
3821      * </pre>
3822      *
3823      * <code>
3824      * repeated .google.cloud.compute.v1.InterconnectLocationRegionInfo region_infos = 312194170;
3825      * </code>
3826      */
addRegionInfos( int index, com.google.cloud.compute.v1.InterconnectLocationRegionInfo value)3827     public Builder addRegionInfos(
3828         int index, com.google.cloud.compute.v1.InterconnectLocationRegionInfo value) {
3829       if (regionInfosBuilder_ == null) {
3830         if (value == null) {
3831           throw new NullPointerException();
3832         }
3833         ensureRegionInfosIsMutable();
3834         regionInfos_.add(index, value);
3835         onChanged();
3836       } else {
3837         regionInfosBuilder_.addMessage(index, value);
3838       }
3839       return this;
3840     }
3841     /**
3842      *
3843      *
3844      * <pre>
3845      * [Output Only] A list of InterconnectLocation.RegionInfo objects, that describe parameters pertaining to the relation between this InterconnectLocation and various Google Cloud regions.
3846      * </pre>
3847      *
3848      * <code>
3849      * repeated .google.cloud.compute.v1.InterconnectLocationRegionInfo region_infos = 312194170;
3850      * </code>
3851      */
addRegionInfos( com.google.cloud.compute.v1.InterconnectLocationRegionInfo.Builder builderForValue)3852     public Builder addRegionInfos(
3853         com.google.cloud.compute.v1.InterconnectLocationRegionInfo.Builder builderForValue) {
3854       if (regionInfosBuilder_ == null) {
3855         ensureRegionInfosIsMutable();
3856         regionInfos_.add(builderForValue.build());
3857         onChanged();
3858       } else {
3859         regionInfosBuilder_.addMessage(builderForValue.build());
3860       }
3861       return this;
3862     }
3863     /**
3864      *
3865      *
3866      * <pre>
3867      * [Output Only] A list of InterconnectLocation.RegionInfo objects, that describe parameters pertaining to the relation between this InterconnectLocation and various Google Cloud regions.
3868      * </pre>
3869      *
3870      * <code>
3871      * repeated .google.cloud.compute.v1.InterconnectLocationRegionInfo region_infos = 312194170;
3872      * </code>
3873      */
addRegionInfos( int index, com.google.cloud.compute.v1.InterconnectLocationRegionInfo.Builder builderForValue)3874     public Builder addRegionInfos(
3875         int index,
3876         com.google.cloud.compute.v1.InterconnectLocationRegionInfo.Builder builderForValue) {
3877       if (regionInfosBuilder_ == null) {
3878         ensureRegionInfosIsMutable();
3879         regionInfos_.add(index, builderForValue.build());
3880         onChanged();
3881       } else {
3882         regionInfosBuilder_.addMessage(index, builderForValue.build());
3883       }
3884       return this;
3885     }
3886     /**
3887      *
3888      *
3889      * <pre>
3890      * [Output Only] A list of InterconnectLocation.RegionInfo objects, that describe parameters pertaining to the relation between this InterconnectLocation and various Google Cloud regions.
3891      * </pre>
3892      *
3893      * <code>
3894      * repeated .google.cloud.compute.v1.InterconnectLocationRegionInfo region_infos = 312194170;
3895      * </code>
3896      */
addAllRegionInfos( java.lang.Iterable<? extends com.google.cloud.compute.v1.InterconnectLocationRegionInfo> values)3897     public Builder addAllRegionInfos(
3898         java.lang.Iterable<? extends com.google.cloud.compute.v1.InterconnectLocationRegionInfo>
3899             values) {
3900       if (regionInfosBuilder_ == null) {
3901         ensureRegionInfosIsMutable();
3902         com.google.protobuf.AbstractMessageLite.Builder.addAll(values, regionInfos_);
3903         onChanged();
3904       } else {
3905         regionInfosBuilder_.addAllMessages(values);
3906       }
3907       return this;
3908     }
3909     /**
3910      *
3911      *
3912      * <pre>
3913      * [Output Only] A list of InterconnectLocation.RegionInfo objects, that describe parameters pertaining to the relation between this InterconnectLocation and various Google Cloud regions.
3914      * </pre>
3915      *
3916      * <code>
3917      * repeated .google.cloud.compute.v1.InterconnectLocationRegionInfo region_infos = 312194170;
3918      * </code>
3919      */
clearRegionInfos()3920     public Builder clearRegionInfos() {
3921       if (regionInfosBuilder_ == null) {
3922         regionInfos_ = java.util.Collections.emptyList();
3923         bitField0_ = (bitField0_ & ~0x00001000);
3924         onChanged();
3925       } else {
3926         regionInfosBuilder_.clear();
3927       }
3928       return this;
3929     }
3930     /**
3931      *
3932      *
3933      * <pre>
3934      * [Output Only] A list of InterconnectLocation.RegionInfo objects, that describe parameters pertaining to the relation between this InterconnectLocation and various Google Cloud regions.
3935      * </pre>
3936      *
3937      * <code>
3938      * repeated .google.cloud.compute.v1.InterconnectLocationRegionInfo region_infos = 312194170;
3939      * </code>
3940      */
removeRegionInfos(int index)3941     public Builder removeRegionInfos(int index) {
3942       if (regionInfosBuilder_ == null) {
3943         ensureRegionInfosIsMutable();
3944         regionInfos_.remove(index);
3945         onChanged();
3946       } else {
3947         regionInfosBuilder_.remove(index);
3948       }
3949       return this;
3950     }
3951     /**
3952      *
3953      *
3954      * <pre>
3955      * [Output Only] A list of InterconnectLocation.RegionInfo objects, that describe parameters pertaining to the relation between this InterconnectLocation and various Google Cloud regions.
3956      * </pre>
3957      *
3958      * <code>
3959      * repeated .google.cloud.compute.v1.InterconnectLocationRegionInfo region_infos = 312194170;
3960      * </code>
3961      */
getRegionInfosBuilder( int index)3962     public com.google.cloud.compute.v1.InterconnectLocationRegionInfo.Builder getRegionInfosBuilder(
3963         int index) {
3964       return getRegionInfosFieldBuilder().getBuilder(index);
3965     }
3966     /**
3967      *
3968      *
3969      * <pre>
3970      * [Output Only] A list of InterconnectLocation.RegionInfo objects, that describe parameters pertaining to the relation between this InterconnectLocation and various Google Cloud regions.
3971      * </pre>
3972      *
3973      * <code>
3974      * repeated .google.cloud.compute.v1.InterconnectLocationRegionInfo region_infos = 312194170;
3975      * </code>
3976      */
3977     public com.google.cloud.compute.v1.InterconnectLocationRegionInfoOrBuilder
getRegionInfosOrBuilder(int index)3978         getRegionInfosOrBuilder(int index) {
3979       if (regionInfosBuilder_ == null) {
3980         return regionInfos_.get(index);
3981       } else {
3982         return regionInfosBuilder_.getMessageOrBuilder(index);
3983       }
3984     }
3985     /**
3986      *
3987      *
3988      * <pre>
3989      * [Output Only] A list of InterconnectLocation.RegionInfo objects, that describe parameters pertaining to the relation between this InterconnectLocation and various Google Cloud regions.
3990      * </pre>
3991      *
3992      * <code>
3993      * repeated .google.cloud.compute.v1.InterconnectLocationRegionInfo region_infos = 312194170;
3994      * </code>
3995      */
3996     public java.util.List<
3997             ? extends com.google.cloud.compute.v1.InterconnectLocationRegionInfoOrBuilder>
getRegionInfosOrBuilderList()3998         getRegionInfosOrBuilderList() {
3999       if (regionInfosBuilder_ != null) {
4000         return regionInfosBuilder_.getMessageOrBuilderList();
4001       } else {
4002         return java.util.Collections.unmodifiableList(regionInfos_);
4003       }
4004     }
4005     /**
4006      *
4007      *
4008      * <pre>
4009      * [Output Only] A list of InterconnectLocation.RegionInfo objects, that describe parameters pertaining to the relation between this InterconnectLocation and various Google Cloud regions.
4010      * </pre>
4011      *
4012      * <code>
4013      * repeated .google.cloud.compute.v1.InterconnectLocationRegionInfo region_infos = 312194170;
4014      * </code>
4015      */
4016     public com.google.cloud.compute.v1.InterconnectLocationRegionInfo.Builder
addRegionInfosBuilder()4017         addRegionInfosBuilder() {
4018       return getRegionInfosFieldBuilder()
4019           .addBuilder(
4020               com.google.cloud.compute.v1.InterconnectLocationRegionInfo.getDefaultInstance());
4021     }
4022     /**
4023      *
4024      *
4025      * <pre>
4026      * [Output Only] A list of InterconnectLocation.RegionInfo objects, that describe parameters pertaining to the relation between this InterconnectLocation and various Google Cloud regions.
4027      * </pre>
4028      *
4029      * <code>
4030      * repeated .google.cloud.compute.v1.InterconnectLocationRegionInfo region_infos = 312194170;
4031      * </code>
4032      */
addRegionInfosBuilder( int index)4033     public com.google.cloud.compute.v1.InterconnectLocationRegionInfo.Builder addRegionInfosBuilder(
4034         int index) {
4035       return getRegionInfosFieldBuilder()
4036           .addBuilder(
4037               index,
4038               com.google.cloud.compute.v1.InterconnectLocationRegionInfo.getDefaultInstance());
4039     }
4040     /**
4041      *
4042      *
4043      * <pre>
4044      * [Output Only] A list of InterconnectLocation.RegionInfo objects, that describe parameters pertaining to the relation between this InterconnectLocation and various Google Cloud regions.
4045      * </pre>
4046      *
4047      * <code>
4048      * repeated .google.cloud.compute.v1.InterconnectLocationRegionInfo region_infos = 312194170;
4049      * </code>
4050      */
4051     public java.util.List<com.google.cloud.compute.v1.InterconnectLocationRegionInfo.Builder>
getRegionInfosBuilderList()4052         getRegionInfosBuilderList() {
4053       return getRegionInfosFieldBuilder().getBuilderList();
4054     }
4055 
4056     private com.google.protobuf.RepeatedFieldBuilderV3<
4057             com.google.cloud.compute.v1.InterconnectLocationRegionInfo,
4058             com.google.cloud.compute.v1.InterconnectLocationRegionInfo.Builder,
4059             com.google.cloud.compute.v1.InterconnectLocationRegionInfoOrBuilder>
getRegionInfosFieldBuilder()4060         getRegionInfosFieldBuilder() {
4061       if (regionInfosBuilder_ == null) {
4062         regionInfosBuilder_ =
4063             new com.google.protobuf.RepeatedFieldBuilderV3<
4064                 com.google.cloud.compute.v1.InterconnectLocationRegionInfo,
4065                 com.google.cloud.compute.v1.InterconnectLocationRegionInfo.Builder,
4066                 com.google.cloud.compute.v1.InterconnectLocationRegionInfoOrBuilder>(
4067                 regionInfos_, ((bitField0_ & 0x00001000) != 0), getParentForChildren(), isClean());
4068         regionInfos_ = null;
4069       }
4070       return regionInfosBuilder_;
4071     }
4072 
4073     private java.lang.Object selfLink_ = "";
4074     /**
4075      *
4076      *
4077      * <pre>
4078      * [Output Only] Server-defined URL for the resource.
4079      * </pre>
4080      *
4081      * <code>optional string self_link = 456214797;</code>
4082      *
4083      * @return Whether the selfLink field is set.
4084      */
hasSelfLink()4085     public boolean hasSelfLink() {
4086       return ((bitField0_ & 0x00002000) != 0);
4087     }
4088     /**
4089      *
4090      *
4091      * <pre>
4092      * [Output Only] Server-defined URL for the resource.
4093      * </pre>
4094      *
4095      * <code>optional string self_link = 456214797;</code>
4096      *
4097      * @return The selfLink.
4098      */
getSelfLink()4099     public java.lang.String getSelfLink() {
4100       java.lang.Object ref = selfLink_;
4101       if (!(ref instanceof java.lang.String)) {
4102         com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
4103         java.lang.String s = bs.toStringUtf8();
4104         selfLink_ = s;
4105         return s;
4106       } else {
4107         return (java.lang.String) ref;
4108       }
4109     }
4110     /**
4111      *
4112      *
4113      * <pre>
4114      * [Output Only] Server-defined URL for the resource.
4115      * </pre>
4116      *
4117      * <code>optional string self_link = 456214797;</code>
4118      *
4119      * @return The bytes for selfLink.
4120      */
getSelfLinkBytes()4121     public com.google.protobuf.ByteString getSelfLinkBytes() {
4122       java.lang.Object ref = selfLink_;
4123       if (ref instanceof String) {
4124         com.google.protobuf.ByteString b =
4125             com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
4126         selfLink_ = b;
4127         return b;
4128       } else {
4129         return (com.google.protobuf.ByteString) ref;
4130       }
4131     }
4132     /**
4133      *
4134      *
4135      * <pre>
4136      * [Output Only] Server-defined URL for the resource.
4137      * </pre>
4138      *
4139      * <code>optional string self_link = 456214797;</code>
4140      *
4141      * @param value The selfLink to set.
4142      * @return This builder for chaining.
4143      */
setSelfLink(java.lang.String value)4144     public Builder setSelfLink(java.lang.String value) {
4145       if (value == null) {
4146         throw new NullPointerException();
4147       }
4148       selfLink_ = value;
4149       bitField0_ |= 0x00002000;
4150       onChanged();
4151       return this;
4152     }
4153     /**
4154      *
4155      *
4156      * <pre>
4157      * [Output Only] Server-defined URL for the resource.
4158      * </pre>
4159      *
4160      * <code>optional string self_link = 456214797;</code>
4161      *
4162      * @return This builder for chaining.
4163      */
clearSelfLink()4164     public Builder clearSelfLink() {
4165       selfLink_ = getDefaultInstance().getSelfLink();
4166       bitField0_ = (bitField0_ & ~0x00002000);
4167       onChanged();
4168       return this;
4169     }
4170     /**
4171      *
4172      *
4173      * <pre>
4174      * [Output Only] Server-defined URL for the resource.
4175      * </pre>
4176      *
4177      * <code>optional string self_link = 456214797;</code>
4178      *
4179      * @param value The bytes for selfLink to set.
4180      * @return This builder for chaining.
4181      */
setSelfLinkBytes(com.google.protobuf.ByteString value)4182     public Builder setSelfLinkBytes(com.google.protobuf.ByteString value) {
4183       if (value == null) {
4184         throw new NullPointerException();
4185       }
4186       checkByteStringIsUtf8(value);
4187       selfLink_ = value;
4188       bitField0_ |= 0x00002000;
4189       onChanged();
4190       return this;
4191     }
4192 
4193     private java.lang.Object status_ = "";
4194     /**
4195      *
4196      *
4197      * <pre>
4198      * [Output Only] The status of this InterconnectLocation, which can take one of the following values: - CLOSED: The InterconnectLocation is closed and is unavailable for provisioning new Interconnects. - AVAILABLE: The InterconnectLocation is available for provisioning new Interconnects.
4199      * Check the Status enum for the list of possible values.
4200      * </pre>
4201      *
4202      * <code>optional string status = 181260274;</code>
4203      *
4204      * @return Whether the status field is set.
4205      */
hasStatus()4206     public boolean hasStatus() {
4207       return ((bitField0_ & 0x00004000) != 0);
4208     }
4209     /**
4210      *
4211      *
4212      * <pre>
4213      * [Output Only] The status of this InterconnectLocation, which can take one of the following values: - CLOSED: The InterconnectLocation is closed and is unavailable for provisioning new Interconnects. - AVAILABLE: The InterconnectLocation is available for provisioning new Interconnects.
4214      * Check the Status enum for the list of possible values.
4215      * </pre>
4216      *
4217      * <code>optional string status = 181260274;</code>
4218      *
4219      * @return The status.
4220      */
getStatus()4221     public java.lang.String getStatus() {
4222       java.lang.Object ref = status_;
4223       if (!(ref instanceof java.lang.String)) {
4224         com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
4225         java.lang.String s = bs.toStringUtf8();
4226         status_ = s;
4227         return s;
4228       } else {
4229         return (java.lang.String) ref;
4230       }
4231     }
4232     /**
4233      *
4234      *
4235      * <pre>
4236      * [Output Only] The status of this InterconnectLocation, which can take one of the following values: - CLOSED: The InterconnectLocation is closed and is unavailable for provisioning new Interconnects. - AVAILABLE: The InterconnectLocation is available for provisioning new Interconnects.
4237      * Check the Status enum for the list of possible values.
4238      * </pre>
4239      *
4240      * <code>optional string status = 181260274;</code>
4241      *
4242      * @return The bytes for status.
4243      */
getStatusBytes()4244     public com.google.protobuf.ByteString getStatusBytes() {
4245       java.lang.Object ref = status_;
4246       if (ref instanceof String) {
4247         com.google.protobuf.ByteString b =
4248             com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
4249         status_ = b;
4250         return b;
4251       } else {
4252         return (com.google.protobuf.ByteString) ref;
4253       }
4254     }
4255     /**
4256      *
4257      *
4258      * <pre>
4259      * [Output Only] The status of this InterconnectLocation, which can take one of the following values: - CLOSED: The InterconnectLocation is closed and is unavailable for provisioning new Interconnects. - AVAILABLE: The InterconnectLocation is available for provisioning new Interconnects.
4260      * Check the Status enum for the list of possible values.
4261      * </pre>
4262      *
4263      * <code>optional string status = 181260274;</code>
4264      *
4265      * @param value The status to set.
4266      * @return This builder for chaining.
4267      */
setStatus(java.lang.String value)4268     public Builder setStatus(java.lang.String value) {
4269       if (value == null) {
4270         throw new NullPointerException();
4271       }
4272       status_ = value;
4273       bitField0_ |= 0x00004000;
4274       onChanged();
4275       return this;
4276     }
4277     /**
4278      *
4279      *
4280      * <pre>
4281      * [Output Only] The status of this InterconnectLocation, which can take one of the following values: - CLOSED: The InterconnectLocation is closed and is unavailable for provisioning new Interconnects. - AVAILABLE: The InterconnectLocation is available for provisioning new Interconnects.
4282      * Check the Status enum for the list of possible values.
4283      * </pre>
4284      *
4285      * <code>optional string status = 181260274;</code>
4286      *
4287      * @return This builder for chaining.
4288      */
clearStatus()4289     public Builder clearStatus() {
4290       status_ = getDefaultInstance().getStatus();
4291       bitField0_ = (bitField0_ & ~0x00004000);
4292       onChanged();
4293       return this;
4294     }
4295     /**
4296      *
4297      *
4298      * <pre>
4299      * [Output Only] The status of this InterconnectLocation, which can take one of the following values: - CLOSED: The InterconnectLocation is closed and is unavailable for provisioning new Interconnects. - AVAILABLE: The InterconnectLocation is available for provisioning new Interconnects.
4300      * Check the Status enum for the list of possible values.
4301      * </pre>
4302      *
4303      * <code>optional string status = 181260274;</code>
4304      *
4305      * @param value The bytes for status to set.
4306      * @return This builder for chaining.
4307      */
setStatusBytes(com.google.protobuf.ByteString value)4308     public Builder setStatusBytes(com.google.protobuf.ByteString value) {
4309       if (value == null) {
4310         throw new NullPointerException();
4311       }
4312       checkByteStringIsUtf8(value);
4313       status_ = value;
4314       bitField0_ |= 0x00004000;
4315       onChanged();
4316       return this;
4317     }
4318 
4319     private boolean supportsPzs_;
4320     /**
4321      *
4322      *
4323      * <pre>
4324      * [Output Only] Reserved for future use.
4325      * </pre>
4326      *
4327      * <code>optional bool supports_pzs = 83983214;</code>
4328      *
4329      * @return Whether the supportsPzs field is set.
4330      */
4331     @java.lang.Override
hasSupportsPzs()4332     public boolean hasSupportsPzs() {
4333       return ((bitField0_ & 0x00008000) != 0);
4334     }
4335     /**
4336      *
4337      *
4338      * <pre>
4339      * [Output Only] Reserved for future use.
4340      * </pre>
4341      *
4342      * <code>optional bool supports_pzs = 83983214;</code>
4343      *
4344      * @return The supportsPzs.
4345      */
4346     @java.lang.Override
getSupportsPzs()4347     public boolean getSupportsPzs() {
4348       return supportsPzs_;
4349     }
4350     /**
4351      *
4352      *
4353      * <pre>
4354      * [Output Only] Reserved for future use.
4355      * </pre>
4356      *
4357      * <code>optional bool supports_pzs = 83983214;</code>
4358      *
4359      * @param value The supportsPzs to set.
4360      * @return This builder for chaining.
4361      */
setSupportsPzs(boolean value)4362     public Builder setSupportsPzs(boolean value) {
4363 
4364       supportsPzs_ = value;
4365       bitField0_ |= 0x00008000;
4366       onChanged();
4367       return this;
4368     }
4369     /**
4370      *
4371      *
4372      * <pre>
4373      * [Output Only] Reserved for future use.
4374      * </pre>
4375      *
4376      * <code>optional bool supports_pzs = 83983214;</code>
4377      *
4378      * @return This builder for chaining.
4379      */
clearSupportsPzs()4380     public Builder clearSupportsPzs() {
4381       bitField0_ = (bitField0_ & ~0x00008000);
4382       supportsPzs_ = false;
4383       onChanged();
4384       return this;
4385     }
4386 
4387     @java.lang.Override
setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields)4388     public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) {
4389       return super.setUnknownFields(unknownFields);
4390     }
4391 
4392     @java.lang.Override
mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields)4393     public final Builder mergeUnknownFields(
4394         final com.google.protobuf.UnknownFieldSet unknownFields) {
4395       return super.mergeUnknownFields(unknownFields);
4396     }
4397 
4398     // @@protoc_insertion_point(builder_scope:google.cloud.compute.v1.InterconnectLocation)
4399   }
4400 
4401   // @@protoc_insertion_point(class_scope:google.cloud.compute.v1.InterconnectLocation)
4402   private static final com.google.cloud.compute.v1.InterconnectLocation DEFAULT_INSTANCE;
4403 
4404   static {
4405     DEFAULT_INSTANCE = new com.google.cloud.compute.v1.InterconnectLocation();
4406   }
4407 
getDefaultInstance()4408   public static com.google.cloud.compute.v1.InterconnectLocation getDefaultInstance() {
4409     return DEFAULT_INSTANCE;
4410   }
4411 
4412   private static final com.google.protobuf.Parser<InterconnectLocation> PARSER =
4413       new com.google.protobuf.AbstractParser<InterconnectLocation>() {
4414         @java.lang.Override
4415         public InterconnectLocation parsePartialFrom(
4416             com.google.protobuf.CodedInputStream input,
4417             com.google.protobuf.ExtensionRegistryLite extensionRegistry)
4418             throws com.google.protobuf.InvalidProtocolBufferException {
4419           Builder builder = newBuilder();
4420           try {
4421             builder.mergeFrom(input, extensionRegistry);
4422           } catch (com.google.protobuf.InvalidProtocolBufferException e) {
4423             throw e.setUnfinishedMessage(builder.buildPartial());
4424           } catch (com.google.protobuf.UninitializedMessageException e) {
4425             throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
4426           } catch (java.io.IOException e) {
4427             throw new com.google.protobuf.InvalidProtocolBufferException(e)
4428                 .setUnfinishedMessage(builder.buildPartial());
4429           }
4430           return builder.buildPartial();
4431         }
4432       };
4433 
parser()4434   public static com.google.protobuf.Parser<InterconnectLocation> parser() {
4435     return PARSER;
4436   }
4437 
4438   @java.lang.Override
getParserForType()4439   public com.google.protobuf.Parser<InterconnectLocation> getParserForType() {
4440     return PARSER;
4441   }
4442 
4443   @java.lang.Override
getDefaultInstanceForType()4444   public com.google.cloud.compute.v1.InterconnectLocation getDefaultInstanceForType() {
4445     return DEFAULT_INSTANCE;
4446   }
4447 }
4448