• 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/notebooks/v1/service.proto
18 
19 package com.google.cloud.notebooks.v1;
20 
21 /**
22  *
23  *
24  * <pre>
25  * Response for checking if a notebook instance is healthy.
26  * </pre>
27  *
28  * Protobuf type {@code google.cloud.notebooks.v1.GetInstanceHealthResponse}
29  */
30 public final class GetInstanceHealthResponse extends com.google.protobuf.GeneratedMessageV3
31     implements
32     // @@protoc_insertion_point(message_implements:google.cloud.notebooks.v1.GetInstanceHealthResponse)
33     GetInstanceHealthResponseOrBuilder {
34   private static final long serialVersionUID = 0L;
35   // Use GetInstanceHealthResponse.newBuilder() to construct.
GetInstanceHealthResponse(com.google.protobuf.GeneratedMessageV3.Builder<?> builder)36   private GetInstanceHealthResponse(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {
37     super(builder);
38   }
39 
GetInstanceHealthResponse()40   private GetInstanceHealthResponse() {
41     healthState_ = 0;
42   }
43 
44   @java.lang.Override
45   @SuppressWarnings({"unused"})
newInstance(UnusedPrivateParameter unused)46   protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
47     return new GetInstanceHealthResponse();
48   }
49 
50   @java.lang.Override
getUnknownFields()51   public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
52     return this.unknownFields;
53   }
54 
getDescriptor()55   public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
56     return com.google.cloud.notebooks.v1.NotebooksProto
57         .internal_static_google_cloud_notebooks_v1_GetInstanceHealthResponse_descriptor;
58   }
59 
60   @SuppressWarnings({"rawtypes"})
61   @java.lang.Override
internalGetMapField(int number)62   protected com.google.protobuf.MapField internalGetMapField(int number) {
63     switch (number) {
64       case 2:
65         return internalGetHealthInfo();
66       default:
67         throw new RuntimeException("Invalid map field number: " + number);
68     }
69   }
70 
71   @java.lang.Override
72   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable()73       internalGetFieldAccessorTable() {
74     return com.google.cloud.notebooks.v1.NotebooksProto
75         .internal_static_google_cloud_notebooks_v1_GetInstanceHealthResponse_fieldAccessorTable
76         .ensureFieldAccessorsInitialized(
77             com.google.cloud.notebooks.v1.GetInstanceHealthResponse.class,
78             com.google.cloud.notebooks.v1.GetInstanceHealthResponse.Builder.class);
79   }
80 
81   /**
82    *
83    *
84    * <pre>
85    * If an instance is healthy or not.
86    * </pre>
87    *
88    * Protobuf enum {@code google.cloud.notebooks.v1.GetInstanceHealthResponse.HealthState}
89    */
90   public enum HealthState implements com.google.protobuf.ProtocolMessageEnum {
91     /**
92      *
93      *
94      * <pre>
95      * The instance substate is unknown.
96      * </pre>
97      *
98      * <code>HEALTH_STATE_UNSPECIFIED = 0;</code>
99      */
100     HEALTH_STATE_UNSPECIFIED(0),
101     /**
102      *
103      *
104      * <pre>
105      * The instance is known to be in an healthy state
106      * (for example, critical daemons are running)
107      * Applies to ACTIVE state.
108      * </pre>
109      *
110      * <code>HEALTHY = 1;</code>
111      */
112     HEALTHY(1),
113     /**
114      *
115      *
116      * <pre>
117      * The instance is known to be in an unhealthy state
118      * (for example, critical daemons are not running)
119      * Applies to ACTIVE state.
120      * </pre>
121      *
122      * <code>UNHEALTHY = 2;</code>
123      */
124     UNHEALTHY(2),
125     /**
126      *
127      *
128      * <pre>
129      * The instance has not installed health monitoring agent.
130      * Applies to ACTIVE state.
131      * </pre>
132      *
133      * <code>AGENT_NOT_INSTALLED = 3;</code>
134      */
135     AGENT_NOT_INSTALLED(3),
136     /**
137      *
138      *
139      * <pre>
140      * The instance health monitoring agent is not running.
141      * Applies to ACTIVE state.
142      * </pre>
143      *
144      * <code>AGENT_NOT_RUNNING = 4;</code>
145      */
146     AGENT_NOT_RUNNING(4),
147     UNRECOGNIZED(-1),
148     ;
149 
150     /**
151      *
152      *
153      * <pre>
154      * The instance substate is unknown.
155      * </pre>
156      *
157      * <code>HEALTH_STATE_UNSPECIFIED = 0;</code>
158      */
159     public static final int HEALTH_STATE_UNSPECIFIED_VALUE = 0;
160     /**
161      *
162      *
163      * <pre>
164      * The instance is known to be in an healthy state
165      * (for example, critical daemons are running)
166      * Applies to ACTIVE state.
167      * </pre>
168      *
169      * <code>HEALTHY = 1;</code>
170      */
171     public static final int HEALTHY_VALUE = 1;
172     /**
173      *
174      *
175      * <pre>
176      * The instance is known to be in an unhealthy state
177      * (for example, critical daemons are not running)
178      * Applies to ACTIVE state.
179      * </pre>
180      *
181      * <code>UNHEALTHY = 2;</code>
182      */
183     public static final int UNHEALTHY_VALUE = 2;
184     /**
185      *
186      *
187      * <pre>
188      * The instance has not installed health monitoring agent.
189      * Applies to ACTIVE state.
190      * </pre>
191      *
192      * <code>AGENT_NOT_INSTALLED = 3;</code>
193      */
194     public static final int AGENT_NOT_INSTALLED_VALUE = 3;
195     /**
196      *
197      *
198      * <pre>
199      * The instance health monitoring agent is not running.
200      * Applies to ACTIVE state.
201      * </pre>
202      *
203      * <code>AGENT_NOT_RUNNING = 4;</code>
204      */
205     public static final int AGENT_NOT_RUNNING_VALUE = 4;
206 
getNumber()207     public final int getNumber() {
208       if (this == UNRECOGNIZED) {
209         throw new java.lang.IllegalArgumentException(
210             "Can't get the number of an unknown enum value.");
211       }
212       return value;
213     }
214 
215     /**
216      * @param value The numeric wire value of the corresponding enum entry.
217      * @return The enum associated with the given numeric wire value.
218      * @deprecated Use {@link #forNumber(int)} instead.
219      */
220     @java.lang.Deprecated
valueOf(int value)221     public static HealthState valueOf(int value) {
222       return forNumber(value);
223     }
224 
225     /**
226      * @param value The numeric wire value of the corresponding enum entry.
227      * @return The enum associated with the given numeric wire value.
228      */
forNumber(int value)229     public static HealthState forNumber(int value) {
230       switch (value) {
231         case 0:
232           return HEALTH_STATE_UNSPECIFIED;
233         case 1:
234           return HEALTHY;
235         case 2:
236           return UNHEALTHY;
237         case 3:
238           return AGENT_NOT_INSTALLED;
239         case 4:
240           return AGENT_NOT_RUNNING;
241         default:
242           return null;
243       }
244     }
245 
internalGetValueMap()246     public static com.google.protobuf.Internal.EnumLiteMap<HealthState> internalGetValueMap() {
247       return internalValueMap;
248     }
249 
250     private static final com.google.protobuf.Internal.EnumLiteMap<HealthState> internalValueMap =
251         new com.google.protobuf.Internal.EnumLiteMap<HealthState>() {
252           public HealthState findValueByNumber(int number) {
253             return HealthState.forNumber(number);
254           }
255         };
256 
getValueDescriptor()257     public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() {
258       if (this == UNRECOGNIZED) {
259         throw new java.lang.IllegalStateException(
260             "Can't get the descriptor of an unrecognized enum value.");
261       }
262       return getDescriptor().getValues().get(ordinal());
263     }
264 
getDescriptorForType()265     public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() {
266       return getDescriptor();
267     }
268 
getDescriptor()269     public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() {
270       return com.google.cloud.notebooks.v1.GetInstanceHealthResponse.getDescriptor()
271           .getEnumTypes()
272           .get(0);
273     }
274 
275     private static final HealthState[] VALUES = values();
276 
valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc)277     public static HealthState valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
278       if (desc.getType() != getDescriptor()) {
279         throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type.");
280       }
281       if (desc.getIndex() == -1) {
282         return UNRECOGNIZED;
283       }
284       return VALUES[desc.getIndex()];
285     }
286 
287     private final int value;
288 
HealthState(int value)289     private HealthState(int value) {
290       this.value = value;
291     }
292 
293     // @@protoc_insertion_point(enum_scope:google.cloud.notebooks.v1.GetInstanceHealthResponse.HealthState)
294   }
295 
296   public static final int HEALTH_STATE_FIELD_NUMBER = 1;
297   private int healthState_ = 0;
298   /**
299    *
300    *
301    * <pre>
302    * Output only. Runtime health_state.
303    * </pre>
304    *
305    * <code>
306    * .google.cloud.notebooks.v1.GetInstanceHealthResponse.HealthState health_state = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
307    * </code>
308    *
309    * @return The enum numeric value on the wire for healthState.
310    */
311   @java.lang.Override
getHealthStateValue()312   public int getHealthStateValue() {
313     return healthState_;
314   }
315   /**
316    *
317    *
318    * <pre>
319    * Output only. Runtime health_state.
320    * </pre>
321    *
322    * <code>
323    * .google.cloud.notebooks.v1.GetInstanceHealthResponse.HealthState health_state = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
324    * </code>
325    *
326    * @return The healthState.
327    */
328   @java.lang.Override
getHealthState()329   public com.google.cloud.notebooks.v1.GetInstanceHealthResponse.HealthState getHealthState() {
330     com.google.cloud.notebooks.v1.GetInstanceHealthResponse.HealthState result =
331         com.google.cloud.notebooks.v1.GetInstanceHealthResponse.HealthState.forNumber(healthState_);
332     return result == null
333         ? com.google.cloud.notebooks.v1.GetInstanceHealthResponse.HealthState.UNRECOGNIZED
334         : result;
335   }
336 
337   public static final int HEALTH_INFO_FIELD_NUMBER = 2;
338 
339   private static final class HealthInfoDefaultEntryHolder {
340     static final com.google.protobuf.MapEntry<java.lang.String, java.lang.String> defaultEntry =
341         com.google.protobuf.MapEntry.<java.lang.String, java.lang.String>newDefaultInstance(
342             com.google.cloud.notebooks.v1.NotebooksProto
343                 .internal_static_google_cloud_notebooks_v1_GetInstanceHealthResponse_HealthInfoEntry_descriptor,
344             com.google.protobuf.WireFormat.FieldType.STRING,
345             "",
346             com.google.protobuf.WireFormat.FieldType.STRING,
347             "");
348   }
349 
350   @SuppressWarnings("serial")
351   private com.google.protobuf.MapField<java.lang.String, java.lang.String> healthInfo_;
352 
internalGetHealthInfo()353   private com.google.protobuf.MapField<java.lang.String, java.lang.String> internalGetHealthInfo() {
354     if (healthInfo_ == null) {
355       return com.google.protobuf.MapField.emptyMapField(HealthInfoDefaultEntryHolder.defaultEntry);
356     }
357     return healthInfo_;
358   }
359 
getHealthInfoCount()360   public int getHealthInfoCount() {
361     return internalGetHealthInfo().getMap().size();
362   }
363   /**
364    *
365    *
366    * <pre>
367    * Output only. Additional information about instance health.
368    * Example:
369    *     healthInfo": {
370    *       "docker_proxy_agent_status": "1",
371    *       "docker_status": "1",
372    *       "jupyterlab_api_status": "-1",
373    *       "jupyterlab_status": "-1",
374    *       "updated": "2020-10-18 09:40:03.573409"
375    *     }
376    * </pre>
377    *
378    * <code>map&lt;string, string&gt; health_info = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
379    * </code>
380    */
381   @java.lang.Override
containsHealthInfo(java.lang.String key)382   public boolean containsHealthInfo(java.lang.String key) {
383     if (key == null) {
384       throw new NullPointerException("map key");
385     }
386     return internalGetHealthInfo().getMap().containsKey(key);
387   }
388   /** Use {@link #getHealthInfoMap()} instead. */
389   @java.lang.Override
390   @java.lang.Deprecated
getHealthInfo()391   public java.util.Map<java.lang.String, java.lang.String> getHealthInfo() {
392     return getHealthInfoMap();
393   }
394   /**
395    *
396    *
397    * <pre>
398    * Output only. Additional information about instance health.
399    * Example:
400    *     healthInfo": {
401    *       "docker_proxy_agent_status": "1",
402    *       "docker_status": "1",
403    *       "jupyterlab_api_status": "-1",
404    *       "jupyterlab_status": "-1",
405    *       "updated": "2020-10-18 09:40:03.573409"
406    *     }
407    * </pre>
408    *
409    * <code>map&lt;string, string&gt; health_info = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
410    * </code>
411    */
412   @java.lang.Override
getHealthInfoMap()413   public java.util.Map<java.lang.String, java.lang.String> getHealthInfoMap() {
414     return internalGetHealthInfo().getMap();
415   }
416   /**
417    *
418    *
419    * <pre>
420    * Output only. Additional information about instance health.
421    * Example:
422    *     healthInfo": {
423    *       "docker_proxy_agent_status": "1",
424    *       "docker_status": "1",
425    *       "jupyterlab_api_status": "-1",
426    *       "jupyterlab_status": "-1",
427    *       "updated": "2020-10-18 09:40:03.573409"
428    *     }
429    * </pre>
430    *
431    * <code>map&lt;string, string&gt; health_info = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
432    * </code>
433    */
434   @java.lang.Override
getHealthInfoOrDefault( java.lang.String key, java.lang.String defaultValue)435   public /* nullable */ java.lang.String getHealthInfoOrDefault(
436       java.lang.String key,
437       /* nullable */
438       java.lang.String defaultValue) {
439     if (key == null) {
440       throw new NullPointerException("map key");
441     }
442     java.util.Map<java.lang.String, java.lang.String> map = internalGetHealthInfo().getMap();
443     return map.containsKey(key) ? map.get(key) : defaultValue;
444   }
445   /**
446    *
447    *
448    * <pre>
449    * Output only. Additional information about instance health.
450    * Example:
451    *     healthInfo": {
452    *       "docker_proxy_agent_status": "1",
453    *       "docker_status": "1",
454    *       "jupyterlab_api_status": "-1",
455    *       "jupyterlab_status": "-1",
456    *       "updated": "2020-10-18 09:40:03.573409"
457    *     }
458    * </pre>
459    *
460    * <code>map&lt;string, string&gt; health_info = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
461    * </code>
462    */
463   @java.lang.Override
getHealthInfoOrThrow(java.lang.String key)464   public java.lang.String getHealthInfoOrThrow(java.lang.String key) {
465     if (key == null) {
466       throw new NullPointerException("map key");
467     }
468     java.util.Map<java.lang.String, java.lang.String> map = internalGetHealthInfo().getMap();
469     if (!map.containsKey(key)) {
470       throw new java.lang.IllegalArgumentException();
471     }
472     return map.get(key);
473   }
474 
475   private byte memoizedIsInitialized = -1;
476 
477   @java.lang.Override
isInitialized()478   public final boolean isInitialized() {
479     byte isInitialized = memoizedIsInitialized;
480     if (isInitialized == 1) return true;
481     if (isInitialized == 0) return false;
482 
483     memoizedIsInitialized = 1;
484     return true;
485   }
486 
487   @java.lang.Override
writeTo(com.google.protobuf.CodedOutputStream output)488   public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
489     if (healthState_
490         != com.google.cloud.notebooks.v1.GetInstanceHealthResponse.HealthState
491             .HEALTH_STATE_UNSPECIFIED
492             .getNumber()) {
493       output.writeEnum(1, healthState_);
494     }
495     com.google.protobuf.GeneratedMessageV3.serializeStringMapTo(
496         output, internalGetHealthInfo(), HealthInfoDefaultEntryHolder.defaultEntry, 2);
497     getUnknownFields().writeTo(output);
498   }
499 
500   @java.lang.Override
getSerializedSize()501   public int getSerializedSize() {
502     int size = memoizedSize;
503     if (size != -1) return size;
504 
505     size = 0;
506     if (healthState_
507         != com.google.cloud.notebooks.v1.GetInstanceHealthResponse.HealthState
508             .HEALTH_STATE_UNSPECIFIED
509             .getNumber()) {
510       size += com.google.protobuf.CodedOutputStream.computeEnumSize(1, healthState_);
511     }
512     for (java.util.Map.Entry<java.lang.String, java.lang.String> entry :
513         internalGetHealthInfo().getMap().entrySet()) {
514       com.google.protobuf.MapEntry<java.lang.String, java.lang.String> healthInfo__ =
515           HealthInfoDefaultEntryHolder.defaultEntry
516               .newBuilderForType()
517               .setKey(entry.getKey())
518               .setValue(entry.getValue())
519               .build();
520       size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, healthInfo__);
521     }
522     size += getUnknownFields().getSerializedSize();
523     memoizedSize = size;
524     return size;
525   }
526 
527   @java.lang.Override
equals(final java.lang.Object obj)528   public boolean equals(final java.lang.Object obj) {
529     if (obj == this) {
530       return true;
531     }
532     if (!(obj instanceof com.google.cloud.notebooks.v1.GetInstanceHealthResponse)) {
533       return super.equals(obj);
534     }
535     com.google.cloud.notebooks.v1.GetInstanceHealthResponse other =
536         (com.google.cloud.notebooks.v1.GetInstanceHealthResponse) obj;
537 
538     if (healthState_ != other.healthState_) return false;
539     if (!internalGetHealthInfo().equals(other.internalGetHealthInfo())) return false;
540     if (!getUnknownFields().equals(other.getUnknownFields())) return false;
541     return true;
542   }
543 
544   @java.lang.Override
hashCode()545   public int hashCode() {
546     if (memoizedHashCode != 0) {
547       return memoizedHashCode;
548     }
549     int hash = 41;
550     hash = (19 * hash) + getDescriptor().hashCode();
551     hash = (37 * hash) + HEALTH_STATE_FIELD_NUMBER;
552     hash = (53 * hash) + healthState_;
553     if (!internalGetHealthInfo().getMap().isEmpty()) {
554       hash = (37 * hash) + HEALTH_INFO_FIELD_NUMBER;
555       hash = (53 * hash) + internalGetHealthInfo().hashCode();
556     }
557     hash = (29 * hash) + getUnknownFields().hashCode();
558     memoizedHashCode = hash;
559     return hash;
560   }
561 
parseFrom( java.nio.ByteBuffer data)562   public static com.google.cloud.notebooks.v1.GetInstanceHealthResponse parseFrom(
563       java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException {
564     return PARSER.parseFrom(data);
565   }
566 
parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)567   public static com.google.cloud.notebooks.v1.GetInstanceHealthResponse parseFrom(
568       java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
569       throws com.google.protobuf.InvalidProtocolBufferException {
570     return PARSER.parseFrom(data, extensionRegistry);
571   }
572 
parseFrom( com.google.protobuf.ByteString data)573   public static com.google.cloud.notebooks.v1.GetInstanceHealthResponse parseFrom(
574       com.google.protobuf.ByteString data)
575       throws com.google.protobuf.InvalidProtocolBufferException {
576     return PARSER.parseFrom(data);
577   }
578 
parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)579   public static com.google.cloud.notebooks.v1.GetInstanceHealthResponse parseFrom(
580       com.google.protobuf.ByteString data,
581       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
582       throws com.google.protobuf.InvalidProtocolBufferException {
583     return PARSER.parseFrom(data, extensionRegistry);
584   }
585 
parseFrom(byte[] data)586   public static com.google.cloud.notebooks.v1.GetInstanceHealthResponse parseFrom(byte[] data)
587       throws com.google.protobuf.InvalidProtocolBufferException {
588     return PARSER.parseFrom(data);
589   }
590 
parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)591   public static com.google.cloud.notebooks.v1.GetInstanceHealthResponse parseFrom(
592       byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
593       throws com.google.protobuf.InvalidProtocolBufferException {
594     return PARSER.parseFrom(data, extensionRegistry);
595   }
596 
parseFrom( java.io.InputStream input)597   public static com.google.cloud.notebooks.v1.GetInstanceHealthResponse parseFrom(
598       java.io.InputStream input) throws java.io.IOException {
599     return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
600   }
601 
parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)602   public static com.google.cloud.notebooks.v1.GetInstanceHealthResponse parseFrom(
603       java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
604       throws java.io.IOException {
605     return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
606         PARSER, input, extensionRegistry);
607   }
608 
parseDelimitedFrom( java.io.InputStream input)609   public static com.google.cloud.notebooks.v1.GetInstanceHealthResponse parseDelimitedFrom(
610       java.io.InputStream input) throws java.io.IOException {
611     return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
612   }
613 
parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)614   public static com.google.cloud.notebooks.v1.GetInstanceHealthResponse parseDelimitedFrom(
615       java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
616       throws java.io.IOException {
617     return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
618         PARSER, input, extensionRegistry);
619   }
620 
parseFrom( com.google.protobuf.CodedInputStream input)621   public static com.google.cloud.notebooks.v1.GetInstanceHealthResponse parseFrom(
622       com.google.protobuf.CodedInputStream input) throws java.io.IOException {
623     return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
624   }
625 
parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)626   public static com.google.cloud.notebooks.v1.GetInstanceHealthResponse parseFrom(
627       com.google.protobuf.CodedInputStream input,
628       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
629       throws java.io.IOException {
630     return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
631         PARSER, input, extensionRegistry);
632   }
633 
634   @java.lang.Override
newBuilderForType()635   public Builder newBuilderForType() {
636     return newBuilder();
637   }
638 
newBuilder()639   public static Builder newBuilder() {
640     return DEFAULT_INSTANCE.toBuilder();
641   }
642 
newBuilder( com.google.cloud.notebooks.v1.GetInstanceHealthResponse prototype)643   public static Builder newBuilder(
644       com.google.cloud.notebooks.v1.GetInstanceHealthResponse prototype) {
645     return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
646   }
647 
648   @java.lang.Override
toBuilder()649   public Builder toBuilder() {
650     return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
651   }
652 
653   @java.lang.Override
newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)654   protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
655     Builder builder = new Builder(parent);
656     return builder;
657   }
658   /**
659    *
660    *
661    * <pre>
662    * Response for checking if a notebook instance is healthy.
663    * </pre>
664    *
665    * Protobuf type {@code google.cloud.notebooks.v1.GetInstanceHealthResponse}
666    */
667   public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder<Builder>
668       implements
669       // @@protoc_insertion_point(builder_implements:google.cloud.notebooks.v1.GetInstanceHealthResponse)
670       com.google.cloud.notebooks.v1.GetInstanceHealthResponseOrBuilder {
getDescriptor()671     public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
672       return com.google.cloud.notebooks.v1.NotebooksProto
673           .internal_static_google_cloud_notebooks_v1_GetInstanceHealthResponse_descriptor;
674     }
675 
676     @SuppressWarnings({"rawtypes"})
internalGetMapField(int number)677     protected com.google.protobuf.MapField internalGetMapField(int number) {
678       switch (number) {
679         case 2:
680           return internalGetHealthInfo();
681         default:
682           throw new RuntimeException("Invalid map field number: " + number);
683       }
684     }
685 
686     @SuppressWarnings({"rawtypes"})
internalGetMutableMapField(int number)687     protected com.google.protobuf.MapField internalGetMutableMapField(int number) {
688       switch (number) {
689         case 2:
690           return internalGetMutableHealthInfo();
691         default:
692           throw new RuntimeException("Invalid map field number: " + number);
693       }
694     }
695 
696     @java.lang.Override
697     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable()698         internalGetFieldAccessorTable() {
699       return com.google.cloud.notebooks.v1.NotebooksProto
700           .internal_static_google_cloud_notebooks_v1_GetInstanceHealthResponse_fieldAccessorTable
701           .ensureFieldAccessorsInitialized(
702               com.google.cloud.notebooks.v1.GetInstanceHealthResponse.class,
703               com.google.cloud.notebooks.v1.GetInstanceHealthResponse.Builder.class);
704     }
705 
706     // Construct using com.google.cloud.notebooks.v1.GetInstanceHealthResponse.newBuilder()
Builder()707     private Builder() {}
708 
Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)709     private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
710       super(parent);
711     }
712 
713     @java.lang.Override
clear()714     public Builder clear() {
715       super.clear();
716       bitField0_ = 0;
717       healthState_ = 0;
718       internalGetMutableHealthInfo().clear();
719       return this;
720     }
721 
722     @java.lang.Override
getDescriptorForType()723     public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
724       return com.google.cloud.notebooks.v1.NotebooksProto
725           .internal_static_google_cloud_notebooks_v1_GetInstanceHealthResponse_descriptor;
726     }
727 
728     @java.lang.Override
getDefaultInstanceForType()729     public com.google.cloud.notebooks.v1.GetInstanceHealthResponse getDefaultInstanceForType() {
730       return com.google.cloud.notebooks.v1.GetInstanceHealthResponse.getDefaultInstance();
731     }
732 
733     @java.lang.Override
build()734     public com.google.cloud.notebooks.v1.GetInstanceHealthResponse build() {
735       com.google.cloud.notebooks.v1.GetInstanceHealthResponse result = buildPartial();
736       if (!result.isInitialized()) {
737         throw newUninitializedMessageException(result);
738       }
739       return result;
740     }
741 
742     @java.lang.Override
buildPartial()743     public com.google.cloud.notebooks.v1.GetInstanceHealthResponse buildPartial() {
744       com.google.cloud.notebooks.v1.GetInstanceHealthResponse result =
745           new com.google.cloud.notebooks.v1.GetInstanceHealthResponse(this);
746       if (bitField0_ != 0) {
747         buildPartial0(result);
748       }
749       onBuilt();
750       return result;
751     }
752 
buildPartial0(com.google.cloud.notebooks.v1.GetInstanceHealthResponse result)753     private void buildPartial0(com.google.cloud.notebooks.v1.GetInstanceHealthResponse result) {
754       int from_bitField0_ = bitField0_;
755       if (((from_bitField0_ & 0x00000001) != 0)) {
756         result.healthState_ = healthState_;
757       }
758       if (((from_bitField0_ & 0x00000002) != 0)) {
759         result.healthInfo_ = internalGetHealthInfo();
760         result.healthInfo_.makeImmutable();
761       }
762     }
763 
764     @java.lang.Override
clone()765     public Builder clone() {
766       return super.clone();
767     }
768 
769     @java.lang.Override
setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)770     public Builder setField(
771         com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
772       return super.setField(field, value);
773     }
774 
775     @java.lang.Override
clearField(com.google.protobuf.Descriptors.FieldDescriptor field)776     public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
777       return super.clearField(field);
778     }
779 
780     @java.lang.Override
clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)781     public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
782       return super.clearOneof(oneof);
783     }
784 
785     @java.lang.Override
setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value)786     public Builder setRepeatedField(
787         com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
788       return super.setRepeatedField(field, index, value);
789     }
790 
791     @java.lang.Override
addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)792     public Builder addRepeatedField(
793         com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
794       return super.addRepeatedField(field, value);
795     }
796 
797     @java.lang.Override
mergeFrom(com.google.protobuf.Message other)798     public Builder mergeFrom(com.google.protobuf.Message other) {
799       if (other instanceof com.google.cloud.notebooks.v1.GetInstanceHealthResponse) {
800         return mergeFrom((com.google.cloud.notebooks.v1.GetInstanceHealthResponse) other);
801       } else {
802         super.mergeFrom(other);
803         return this;
804       }
805     }
806 
mergeFrom(com.google.cloud.notebooks.v1.GetInstanceHealthResponse other)807     public Builder mergeFrom(com.google.cloud.notebooks.v1.GetInstanceHealthResponse other) {
808       if (other == com.google.cloud.notebooks.v1.GetInstanceHealthResponse.getDefaultInstance())
809         return this;
810       if (other.healthState_ != 0) {
811         setHealthStateValue(other.getHealthStateValue());
812       }
813       internalGetMutableHealthInfo().mergeFrom(other.internalGetHealthInfo());
814       bitField0_ |= 0x00000002;
815       this.mergeUnknownFields(other.getUnknownFields());
816       onChanged();
817       return this;
818     }
819 
820     @java.lang.Override
isInitialized()821     public final boolean isInitialized() {
822       return true;
823     }
824 
825     @java.lang.Override
mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)826     public Builder mergeFrom(
827         com.google.protobuf.CodedInputStream input,
828         com.google.protobuf.ExtensionRegistryLite extensionRegistry)
829         throws java.io.IOException {
830       if (extensionRegistry == null) {
831         throw new java.lang.NullPointerException();
832       }
833       try {
834         boolean done = false;
835         while (!done) {
836           int tag = input.readTag();
837           switch (tag) {
838             case 0:
839               done = true;
840               break;
841             case 8:
842               {
843                 healthState_ = input.readEnum();
844                 bitField0_ |= 0x00000001;
845                 break;
846               } // case 8
847             case 18:
848               {
849                 com.google.protobuf.MapEntry<java.lang.String, java.lang.String> healthInfo__ =
850                     input.readMessage(
851                         HealthInfoDefaultEntryHolder.defaultEntry.getParserForType(),
852                         extensionRegistry);
853                 internalGetMutableHealthInfo()
854                     .getMutableMap()
855                     .put(healthInfo__.getKey(), healthInfo__.getValue());
856                 bitField0_ |= 0x00000002;
857                 break;
858               } // case 18
859             default:
860               {
861                 if (!super.parseUnknownField(input, extensionRegistry, tag)) {
862                   done = true; // was an endgroup tag
863                 }
864                 break;
865               } // default:
866           } // switch (tag)
867         } // while (!done)
868       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
869         throw e.unwrapIOException();
870       } finally {
871         onChanged();
872       } // finally
873       return this;
874     }
875 
876     private int bitField0_;
877 
878     private int healthState_ = 0;
879     /**
880      *
881      *
882      * <pre>
883      * Output only. Runtime health_state.
884      * </pre>
885      *
886      * <code>
887      * .google.cloud.notebooks.v1.GetInstanceHealthResponse.HealthState health_state = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
888      * </code>
889      *
890      * @return The enum numeric value on the wire for healthState.
891      */
892     @java.lang.Override
getHealthStateValue()893     public int getHealthStateValue() {
894       return healthState_;
895     }
896     /**
897      *
898      *
899      * <pre>
900      * Output only. Runtime health_state.
901      * </pre>
902      *
903      * <code>
904      * .google.cloud.notebooks.v1.GetInstanceHealthResponse.HealthState health_state = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
905      * </code>
906      *
907      * @param value The enum numeric value on the wire for healthState to set.
908      * @return This builder for chaining.
909      */
setHealthStateValue(int value)910     public Builder setHealthStateValue(int value) {
911       healthState_ = value;
912       bitField0_ |= 0x00000001;
913       onChanged();
914       return this;
915     }
916     /**
917      *
918      *
919      * <pre>
920      * Output only. Runtime health_state.
921      * </pre>
922      *
923      * <code>
924      * .google.cloud.notebooks.v1.GetInstanceHealthResponse.HealthState health_state = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
925      * </code>
926      *
927      * @return The healthState.
928      */
929     @java.lang.Override
getHealthState()930     public com.google.cloud.notebooks.v1.GetInstanceHealthResponse.HealthState getHealthState() {
931       com.google.cloud.notebooks.v1.GetInstanceHealthResponse.HealthState result =
932           com.google.cloud.notebooks.v1.GetInstanceHealthResponse.HealthState.forNumber(
933               healthState_);
934       return result == null
935           ? com.google.cloud.notebooks.v1.GetInstanceHealthResponse.HealthState.UNRECOGNIZED
936           : result;
937     }
938     /**
939      *
940      *
941      * <pre>
942      * Output only. Runtime health_state.
943      * </pre>
944      *
945      * <code>
946      * .google.cloud.notebooks.v1.GetInstanceHealthResponse.HealthState health_state = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
947      * </code>
948      *
949      * @param value The healthState to set.
950      * @return This builder for chaining.
951      */
setHealthState( com.google.cloud.notebooks.v1.GetInstanceHealthResponse.HealthState value)952     public Builder setHealthState(
953         com.google.cloud.notebooks.v1.GetInstanceHealthResponse.HealthState value) {
954       if (value == null) {
955         throw new NullPointerException();
956       }
957       bitField0_ |= 0x00000001;
958       healthState_ = value.getNumber();
959       onChanged();
960       return this;
961     }
962     /**
963      *
964      *
965      * <pre>
966      * Output only. Runtime health_state.
967      * </pre>
968      *
969      * <code>
970      * .google.cloud.notebooks.v1.GetInstanceHealthResponse.HealthState health_state = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
971      * </code>
972      *
973      * @return This builder for chaining.
974      */
clearHealthState()975     public Builder clearHealthState() {
976       bitField0_ = (bitField0_ & ~0x00000001);
977       healthState_ = 0;
978       onChanged();
979       return this;
980     }
981 
982     private com.google.protobuf.MapField<java.lang.String, java.lang.String> healthInfo_;
983 
984     private com.google.protobuf.MapField<java.lang.String, java.lang.String>
internalGetHealthInfo()985         internalGetHealthInfo() {
986       if (healthInfo_ == null) {
987         return com.google.protobuf.MapField.emptyMapField(
988             HealthInfoDefaultEntryHolder.defaultEntry);
989       }
990       return healthInfo_;
991     }
992 
993     private com.google.protobuf.MapField<java.lang.String, java.lang.String>
internalGetMutableHealthInfo()994         internalGetMutableHealthInfo() {
995       if (healthInfo_ == null) {
996         healthInfo_ =
997             com.google.protobuf.MapField.newMapField(HealthInfoDefaultEntryHolder.defaultEntry);
998       }
999       if (!healthInfo_.isMutable()) {
1000         healthInfo_ = healthInfo_.copy();
1001       }
1002       bitField0_ |= 0x00000002;
1003       onChanged();
1004       return healthInfo_;
1005     }
1006 
getHealthInfoCount()1007     public int getHealthInfoCount() {
1008       return internalGetHealthInfo().getMap().size();
1009     }
1010     /**
1011      *
1012      *
1013      * <pre>
1014      * Output only. Additional information about instance health.
1015      * Example:
1016      *     healthInfo": {
1017      *       "docker_proxy_agent_status": "1",
1018      *       "docker_status": "1",
1019      *       "jupyterlab_api_status": "-1",
1020      *       "jupyterlab_status": "-1",
1021      *       "updated": "2020-10-18 09:40:03.573409"
1022      *     }
1023      * </pre>
1024      *
1025      * <code>map&lt;string, string&gt; health_info = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
1026      * </code>
1027      */
1028     @java.lang.Override
containsHealthInfo(java.lang.String key)1029     public boolean containsHealthInfo(java.lang.String key) {
1030       if (key == null) {
1031         throw new NullPointerException("map key");
1032       }
1033       return internalGetHealthInfo().getMap().containsKey(key);
1034     }
1035     /** Use {@link #getHealthInfoMap()} instead. */
1036     @java.lang.Override
1037     @java.lang.Deprecated
getHealthInfo()1038     public java.util.Map<java.lang.String, java.lang.String> getHealthInfo() {
1039       return getHealthInfoMap();
1040     }
1041     /**
1042      *
1043      *
1044      * <pre>
1045      * Output only. Additional information about instance health.
1046      * Example:
1047      *     healthInfo": {
1048      *       "docker_proxy_agent_status": "1",
1049      *       "docker_status": "1",
1050      *       "jupyterlab_api_status": "-1",
1051      *       "jupyterlab_status": "-1",
1052      *       "updated": "2020-10-18 09:40:03.573409"
1053      *     }
1054      * </pre>
1055      *
1056      * <code>map&lt;string, string&gt; health_info = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
1057      * </code>
1058      */
1059     @java.lang.Override
getHealthInfoMap()1060     public java.util.Map<java.lang.String, java.lang.String> getHealthInfoMap() {
1061       return internalGetHealthInfo().getMap();
1062     }
1063     /**
1064      *
1065      *
1066      * <pre>
1067      * Output only. Additional information about instance health.
1068      * Example:
1069      *     healthInfo": {
1070      *       "docker_proxy_agent_status": "1",
1071      *       "docker_status": "1",
1072      *       "jupyterlab_api_status": "-1",
1073      *       "jupyterlab_status": "-1",
1074      *       "updated": "2020-10-18 09:40:03.573409"
1075      *     }
1076      * </pre>
1077      *
1078      * <code>map&lt;string, string&gt; health_info = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
1079      * </code>
1080      */
1081     @java.lang.Override
getHealthInfoOrDefault( java.lang.String key, java.lang.String defaultValue)1082     public /* nullable */ java.lang.String getHealthInfoOrDefault(
1083         java.lang.String key,
1084         /* nullable */
1085         java.lang.String defaultValue) {
1086       if (key == null) {
1087         throw new NullPointerException("map key");
1088       }
1089       java.util.Map<java.lang.String, java.lang.String> map = internalGetHealthInfo().getMap();
1090       return map.containsKey(key) ? map.get(key) : defaultValue;
1091     }
1092     /**
1093      *
1094      *
1095      * <pre>
1096      * Output only. Additional information about instance health.
1097      * Example:
1098      *     healthInfo": {
1099      *       "docker_proxy_agent_status": "1",
1100      *       "docker_status": "1",
1101      *       "jupyterlab_api_status": "-1",
1102      *       "jupyterlab_status": "-1",
1103      *       "updated": "2020-10-18 09:40:03.573409"
1104      *     }
1105      * </pre>
1106      *
1107      * <code>map&lt;string, string&gt; health_info = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
1108      * </code>
1109      */
1110     @java.lang.Override
getHealthInfoOrThrow(java.lang.String key)1111     public java.lang.String getHealthInfoOrThrow(java.lang.String key) {
1112       if (key == null) {
1113         throw new NullPointerException("map key");
1114       }
1115       java.util.Map<java.lang.String, java.lang.String> map = internalGetHealthInfo().getMap();
1116       if (!map.containsKey(key)) {
1117         throw new java.lang.IllegalArgumentException();
1118       }
1119       return map.get(key);
1120     }
1121 
clearHealthInfo()1122     public Builder clearHealthInfo() {
1123       bitField0_ = (bitField0_ & ~0x00000002);
1124       internalGetMutableHealthInfo().getMutableMap().clear();
1125       return this;
1126     }
1127     /**
1128      *
1129      *
1130      * <pre>
1131      * Output only. Additional information about instance health.
1132      * Example:
1133      *     healthInfo": {
1134      *       "docker_proxy_agent_status": "1",
1135      *       "docker_status": "1",
1136      *       "jupyterlab_api_status": "-1",
1137      *       "jupyterlab_status": "-1",
1138      *       "updated": "2020-10-18 09:40:03.573409"
1139      *     }
1140      * </pre>
1141      *
1142      * <code>map&lt;string, string&gt; health_info = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
1143      * </code>
1144      */
removeHealthInfo(java.lang.String key)1145     public Builder removeHealthInfo(java.lang.String key) {
1146       if (key == null) {
1147         throw new NullPointerException("map key");
1148       }
1149       internalGetMutableHealthInfo().getMutableMap().remove(key);
1150       return this;
1151     }
1152     /** Use alternate mutation accessors instead. */
1153     @java.lang.Deprecated
getMutableHealthInfo()1154     public java.util.Map<java.lang.String, java.lang.String> getMutableHealthInfo() {
1155       bitField0_ |= 0x00000002;
1156       return internalGetMutableHealthInfo().getMutableMap();
1157     }
1158     /**
1159      *
1160      *
1161      * <pre>
1162      * Output only. Additional information about instance health.
1163      * Example:
1164      *     healthInfo": {
1165      *       "docker_proxy_agent_status": "1",
1166      *       "docker_status": "1",
1167      *       "jupyterlab_api_status": "-1",
1168      *       "jupyterlab_status": "-1",
1169      *       "updated": "2020-10-18 09:40:03.573409"
1170      *     }
1171      * </pre>
1172      *
1173      * <code>map&lt;string, string&gt; health_info = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
1174      * </code>
1175      */
putHealthInfo(java.lang.String key, java.lang.String value)1176     public Builder putHealthInfo(java.lang.String key, java.lang.String value) {
1177       if (key == null) {
1178         throw new NullPointerException("map key");
1179       }
1180       if (value == null) {
1181         throw new NullPointerException("map value");
1182       }
1183       internalGetMutableHealthInfo().getMutableMap().put(key, value);
1184       bitField0_ |= 0x00000002;
1185       return this;
1186     }
1187     /**
1188      *
1189      *
1190      * <pre>
1191      * Output only. Additional information about instance health.
1192      * Example:
1193      *     healthInfo": {
1194      *       "docker_proxy_agent_status": "1",
1195      *       "docker_status": "1",
1196      *       "jupyterlab_api_status": "-1",
1197      *       "jupyterlab_status": "-1",
1198      *       "updated": "2020-10-18 09:40:03.573409"
1199      *     }
1200      * </pre>
1201      *
1202      * <code>map&lt;string, string&gt; health_info = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
1203      * </code>
1204      */
putAllHealthInfo(java.util.Map<java.lang.String, java.lang.String> values)1205     public Builder putAllHealthInfo(java.util.Map<java.lang.String, java.lang.String> values) {
1206       internalGetMutableHealthInfo().getMutableMap().putAll(values);
1207       bitField0_ |= 0x00000002;
1208       return this;
1209     }
1210 
1211     @java.lang.Override
setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields)1212     public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) {
1213       return super.setUnknownFields(unknownFields);
1214     }
1215 
1216     @java.lang.Override
mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields)1217     public final Builder mergeUnknownFields(
1218         final com.google.protobuf.UnknownFieldSet unknownFields) {
1219       return super.mergeUnknownFields(unknownFields);
1220     }
1221 
1222     // @@protoc_insertion_point(builder_scope:google.cloud.notebooks.v1.GetInstanceHealthResponse)
1223   }
1224 
1225   // @@protoc_insertion_point(class_scope:google.cloud.notebooks.v1.GetInstanceHealthResponse)
1226   private static final com.google.cloud.notebooks.v1.GetInstanceHealthResponse DEFAULT_INSTANCE;
1227 
1228   static {
1229     DEFAULT_INSTANCE = new com.google.cloud.notebooks.v1.GetInstanceHealthResponse();
1230   }
1231 
getDefaultInstance()1232   public static com.google.cloud.notebooks.v1.GetInstanceHealthResponse getDefaultInstance() {
1233     return DEFAULT_INSTANCE;
1234   }
1235 
1236   private static final com.google.protobuf.Parser<GetInstanceHealthResponse> PARSER =
1237       new com.google.protobuf.AbstractParser<GetInstanceHealthResponse>() {
1238         @java.lang.Override
1239         public GetInstanceHealthResponse parsePartialFrom(
1240             com.google.protobuf.CodedInputStream input,
1241             com.google.protobuf.ExtensionRegistryLite extensionRegistry)
1242             throws com.google.protobuf.InvalidProtocolBufferException {
1243           Builder builder = newBuilder();
1244           try {
1245             builder.mergeFrom(input, extensionRegistry);
1246           } catch (com.google.protobuf.InvalidProtocolBufferException e) {
1247             throw e.setUnfinishedMessage(builder.buildPartial());
1248           } catch (com.google.protobuf.UninitializedMessageException e) {
1249             throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
1250           } catch (java.io.IOException e) {
1251             throw new com.google.protobuf.InvalidProtocolBufferException(e)
1252                 .setUnfinishedMessage(builder.buildPartial());
1253           }
1254           return builder.buildPartial();
1255         }
1256       };
1257 
parser()1258   public static com.google.protobuf.Parser<GetInstanceHealthResponse> parser() {
1259     return PARSER;
1260   }
1261 
1262   @java.lang.Override
getParserForType()1263   public com.google.protobuf.Parser<GetInstanceHealthResponse> getParserForType() {
1264     return PARSER;
1265   }
1266 
1267   @java.lang.Override
getDefaultInstanceForType()1268   public com.google.cloud.notebooks.v1.GetInstanceHealthResponse getDefaultInstanceForType() {
1269     return DEFAULT_INSTANCE;
1270   }
1271 }
1272