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