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