/*
 * Copyright 2020 Google LLC
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *     https://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */
// Generated by the protocol buffer compiler.  DO NOT EDIT!
// source: google/cloud/notebooks/v1/runtime.proto

package com.google.cloud.notebooks.v1;

/**
 *
 *
 * <pre>
 * The definition of a Runtime for a managed notebook instance.
 * </pre>
 *
 * Protobuf type {@code google.cloud.notebooks.v1.Runtime}
 */
public final class Runtime extends com.google.protobuf.GeneratedMessageV3
    implements
    // @@protoc_insertion_point(message_implements:google.cloud.notebooks.v1.Runtime)
    RuntimeOrBuilder {
  private static final long serialVersionUID = 0L;
  // Use Runtime.newBuilder() to construct.
  private Runtime(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {
    super(builder);
  }

  private Runtime() {
    name_ = "";
    state_ = 0;
    healthState_ = 0;
  }

  @java.lang.Override
  @SuppressWarnings({"unused"})
  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
    return new Runtime();
  }

  @java.lang.Override
  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
    return this.unknownFields;
  }

  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
    return com.google.cloud.notebooks.v1.RuntimeProto
        .internal_static_google_cloud_notebooks_v1_Runtime_descriptor;
  }

  @java.lang.Override
  protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
      internalGetFieldAccessorTable() {
    return com.google.cloud.notebooks.v1.RuntimeProto
        .internal_static_google_cloud_notebooks_v1_Runtime_fieldAccessorTable
        .ensureFieldAccessorsInitialized(
            com.google.cloud.notebooks.v1.Runtime.class,
            com.google.cloud.notebooks.v1.Runtime.Builder.class);
  }

  /**
   *
   *
   * <pre>
   * The definition of the states of this runtime.
   * </pre>
   *
   * Protobuf enum {@code google.cloud.notebooks.v1.Runtime.State}
   */
  public enum State implements com.google.protobuf.ProtocolMessageEnum {
    /**
     *
     *
     * <pre>
     * State is not specified.
     * </pre>
     *
     * <code>STATE_UNSPECIFIED = 0;</code>
     */
    STATE_UNSPECIFIED(0),
    /**
     *
     *
     * <pre>
     * The compute layer is starting the runtime. It is not ready for use.
     * </pre>
     *
     * <code>STARTING = 1;</code>
     */
    STARTING(1),
    /**
     *
     *
     * <pre>
     * The compute layer is installing required frameworks and registering the
     * runtime with notebook proxy. It cannot be used.
     * </pre>
     *
     * <code>PROVISIONING = 2;</code>
     */
    PROVISIONING(2),
    /**
     *
     *
     * <pre>
     * The runtime is currently running. It is ready for use.
     * </pre>
     *
     * <code>ACTIVE = 3;</code>
     */
    ACTIVE(3),
    /**
     *
     *
     * <pre>
     * The control logic is stopping the runtime. It cannot be used.
     * </pre>
     *
     * <code>STOPPING = 4;</code>
     */
    STOPPING(4),
    /**
     *
     *
     * <pre>
     * The runtime is stopped. It cannot be used.
     * </pre>
     *
     * <code>STOPPED = 5;</code>
     */
    STOPPED(5),
    /**
     *
     *
     * <pre>
     * The runtime is being deleted. It cannot be used.
     * </pre>
     *
     * <code>DELETING = 6;</code>
     */
    DELETING(6),
    /**
     *
     *
     * <pre>
     * The runtime is upgrading. It cannot be used.
     * </pre>
     *
     * <code>UPGRADING = 7;</code>
     */
    UPGRADING(7),
    /**
     *
     *
     * <pre>
     * The runtime is being created and set up. It is not ready for use.
     * </pre>
     *
     * <code>INITIALIZING = 8;</code>
     */
    INITIALIZING(8),
    UNRECOGNIZED(-1),
    ;

    /**
     *
     *
     * <pre>
     * State is not specified.
     * </pre>
     *
     * <code>STATE_UNSPECIFIED = 0;</code>
     */
    public static final int STATE_UNSPECIFIED_VALUE = 0;
    /**
     *
     *
     * <pre>
     * The compute layer is starting the runtime. It is not ready for use.
     * </pre>
     *
     * <code>STARTING = 1;</code>
     */
    public static final int STARTING_VALUE = 1;
    /**
     *
     *
     * <pre>
     * The compute layer is installing required frameworks and registering the
     * runtime with notebook proxy. It cannot be used.
     * </pre>
     *
     * <code>PROVISIONING = 2;</code>
     */
    public static final int PROVISIONING_VALUE = 2;
    /**
     *
     *
     * <pre>
     * The runtime is currently running. It is ready for use.
     * </pre>
     *
     * <code>ACTIVE = 3;</code>
     */
    public static final int ACTIVE_VALUE = 3;
    /**
     *
     *
     * <pre>
     * The control logic is stopping the runtime. It cannot be used.
     * </pre>
     *
     * <code>STOPPING = 4;</code>
     */
    public static final int STOPPING_VALUE = 4;
    /**
     *
     *
     * <pre>
     * The runtime is stopped. It cannot be used.
     * </pre>
     *
     * <code>STOPPED = 5;</code>
     */
    public static final int STOPPED_VALUE = 5;
    /**
     *
     *
     * <pre>
     * The runtime is being deleted. It cannot be used.
     * </pre>
     *
     * <code>DELETING = 6;</code>
     */
    public static final int DELETING_VALUE = 6;
    /**
     *
     *
     * <pre>
     * The runtime is upgrading. It cannot be used.
     * </pre>
     *
     * <code>UPGRADING = 7;</code>
     */
    public static final int UPGRADING_VALUE = 7;
    /**
     *
     *
     * <pre>
     * The runtime is being created and set up. It is not ready for use.
     * </pre>
     *
     * <code>INITIALIZING = 8;</code>
     */
    public static final int INITIALIZING_VALUE = 8;

    public final int getNumber() {
      if (this == UNRECOGNIZED) {
        throw new java.lang.IllegalArgumentException(
            "Can't get the number of an unknown enum value.");
      }
      return value;
    }

    /**
     * @param value The numeric wire value of the corresponding enum entry.
     * @return The enum associated with the given numeric wire value.
     * @deprecated Use {@link #forNumber(int)} instead.
     */
    @java.lang.Deprecated
    public static State valueOf(int value) {
      return forNumber(value);
    }

    /**
     * @param value The numeric wire value of the corresponding enum entry.
     * @return The enum associated with the given numeric wire value.
     */
    public static State forNumber(int value) {
      switch (value) {
        case 0:
          return STATE_UNSPECIFIED;
        case 1:
          return STARTING;
        case 2:
          return PROVISIONING;
        case 3:
          return ACTIVE;
        case 4:
          return STOPPING;
        case 5:
          return STOPPED;
        case 6:
          return DELETING;
        case 7:
          return UPGRADING;
        case 8:
          return INITIALIZING;
        default:
          return null;
      }
    }

    public static com.google.protobuf.Internal.EnumLiteMap<State> internalGetValueMap() {
      return internalValueMap;
    }

    private static final com.google.protobuf.Internal.EnumLiteMap<State> internalValueMap =
        new com.google.protobuf.Internal.EnumLiteMap<State>() {
          public State findValueByNumber(int number) {
            return State.forNumber(number);
          }
        };

    public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() {
      if (this == UNRECOGNIZED) {
        throw new java.lang.IllegalStateException(
            "Can't get the descriptor of an unrecognized enum value.");
      }
      return getDescriptor().getValues().get(ordinal());
    }

    public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() {
      return getDescriptor();
    }

    public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() {
      return com.google.cloud.notebooks.v1.Runtime.getDescriptor().getEnumTypes().get(0);
    }

    private static final State[] VALUES = values();

    public static State valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
      if (desc.getType() != getDescriptor()) {
        throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type.");
      }
      if (desc.getIndex() == -1) {
        return UNRECOGNIZED;
      }
      return VALUES[desc.getIndex()];
    }

    private final int value;

    private State(int value) {
      this.value = value;
    }

    // @@protoc_insertion_point(enum_scope:google.cloud.notebooks.v1.Runtime.State)
  }

  /**
   *
   *
   * <pre>
   * The runtime substate.
   * </pre>
   *
   * Protobuf enum {@code google.cloud.notebooks.v1.Runtime.HealthState}
   */
  public enum HealthState implements com.google.protobuf.ProtocolMessageEnum {
    /**
     *
     *
     * <pre>
     * The runtime substate is unknown.
     * </pre>
     *
     * <code>HEALTH_STATE_UNSPECIFIED = 0;</code>
     */
    HEALTH_STATE_UNSPECIFIED(0),
    /**
     *
     *
     * <pre>
     * The runtime is known to be in an healthy state
     * (for example, critical daemons are running)
     * Applies to ACTIVE state.
     * </pre>
     *
     * <code>HEALTHY = 1;</code>
     */
    HEALTHY(1),
    /**
     *
     *
     * <pre>
     * The runtime is known to be in an unhealthy state
     * (for example, critical daemons are not running)
     * Applies to ACTIVE state.
     * </pre>
     *
     * <code>UNHEALTHY = 2;</code>
     */
    UNHEALTHY(2),
    /**
     *
     *
     * <pre>
     * The runtime has not installed health monitoring agent.
     * Applies to ACTIVE state.
     * </pre>
     *
     * <code>AGENT_NOT_INSTALLED = 3;</code>
     */
    AGENT_NOT_INSTALLED(3),
    /**
     *
     *
     * <pre>
     * The runtime health monitoring agent is not running.
     * Applies to ACTIVE state.
     * </pre>
     *
     * <code>AGENT_NOT_RUNNING = 4;</code>
     */
    AGENT_NOT_RUNNING(4),
    UNRECOGNIZED(-1),
    ;

    /**
     *
     *
     * <pre>
     * The runtime substate is unknown.
     * </pre>
     *
     * <code>HEALTH_STATE_UNSPECIFIED = 0;</code>
     */
    public static final int HEALTH_STATE_UNSPECIFIED_VALUE = 0;
    /**
     *
     *
     * <pre>
     * The runtime is known to be in an healthy state
     * (for example, critical daemons are running)
     * Applies to ACTIVE state.
     * </pre>
     *
     * <code>HEALTHY = 1;</code>
     */
    public static final int HEALTHY_VALUE = 1;
    /**
     *
     *
     * <pre>
     * The runtime is known to be in an unhealthy state
     * (for example, critical daemons are not running)
     * Applies to ACTIVE state.
     * </pre>
     *
     * <code>UNHEALTHY = 2;</code>
     */
    public static final int UNHEALTHY_VALUE = 2;
    /**
     *
     *
     * <pre>
     * The runtime has not installed health monitoring agent.
     * Applies to ACTIVE state.
     * </pre>
     *
     * <code>AGENT_NOT_INSTALLED = 3;</code>
     */
    public static final int AGENT_NOT_INSTALLED_VALUE = 3;
    /**
     *
     *
     * <pre>
     * The runtime health monitoring agent is not running.
     * Applies to ACTIVE state.
     * </pre>
     *
     * <code>AGENT_NOT_RUNNING = 4;</code>
     */
    public static final int AGENT_NOT_RUNNING_VALUE = 4;

    public final int getNumber() {
      if (this == UNRECOGNIZED) {
        throw new java.lang.IllegalArgumentException(
            "Can't get the number of an unknown enum value.");
      }
      return value;
    }

    /**
     * @param value The numeric wire value of the corresponding enum entry.
     * @return The enum associated with the given numeric wire value.
     * @deprecated Use {@link #forNumber(int)} instead.
     */
    @java.lang.Deprecated
    public static HealthState valueOf(int value) {
      return forNumber(value);
    }

    /**
     * @param value The numeric wire value of the corresponding enum entry.
     * @return The enum associated with the given numeric wire value.
     */
    public static HealthState forNumber(int value) {
      switch (value) {
        case 0:
          return HEALTH_STATE_UNSPECIFIED;
        case 1:
          return HEALTHY;
        case 2:
          return UNHEALTHY;
        case 3:
          return AGENT_NOT_INSTALLED;
        case 4:
          return AGENT_NOT_RUNNING;
        default:
          return null;
      }
    }

    public static com.google.protobuf.Internal.EnumLiteMap<HealthState> internalGetValueMap() {
      return internalValueMap;
    }

    private static final com.google.protobuf.Internal.EnumLiteMap<HealthState> internalValueMap =
        new com.google.protobuf.Internal.EnumLiteMap<HealthState>() {
          public HealthState findValueByNumber(int number) {
            return HealthState.forNumber(number);
          }
        };

    public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() {
      if (this == UNRECOGNIZED) {
        throw new java.lang.IllegalStateException(
            "Can't get the descriptor of an unrecognized enum value.");
      }
      return getDescriptor().getValues().get(ordinal());
    }

    public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() {
      return getDescriptor();
    }

    public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() {
      return com.google.cloud.notebooks.v1.Runtime.getDescriptor().getEnumTypes().get(1);
    }

    private static final HealthState[] VALUES = values();

    public static HealthState valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
      if (desc.getType() != getDescriptor()) {
        throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type.");
      }
      if (desc.getIndex() == -1) {
        return UNRECOGNIZED;
      }
      return VALUES[desc.getIndex()];
    }

    private final int value;

    private HealthState(int value) {
      this.value = value;
    }

    // @@protoc_insertion_point(enum_scope:google.cloud.notebooks.v1.Runtime.HealthState)
  }

  private int runtimeTypeCase_ = 0;
  private java.lang.Object runtimeType_;

  public enum RuntimeTypeCase
      implements
          com.google.protobuf.Internal.EnumLite,
          com.google.protobuf.AbstractMessage.InternalOneOfEnum {
    VIRTUAL_MACHINE(2),
    RUNTIMETYPE_NOT_SET(0);
    private final int value;

    private RuntimeTypeCase(int value) {
      this.value = value;
    }
    /**
     * @param value The number of the enum to look for.
     * @return The enum associated with the given number.
     * @deprecated Use {@link #forNumber(int)} instead.
     */
    @java.lang.Deprecated
    public static RuntimeTypeCase valueOf(int value) {
      return forNumber(value);
    }

    public static RuntimeTypeCase forNumber(int value) {
      switch (value) {
        case 2:
          return VIRTUAL_MACHINE;
        case 0:
          return RUNTIMETYPE_NOT_SET;
        default:
          return null;
      }
    }

    public int getNumber() {
      return this.value;
    }
  };

  public RuntimeTypeCase getRuntimeTypeCase() {
    return RuntimeTypeCase.forNumber(runtimeTypeCase_);
  }

  public static final int NAME_FIELD_NUMBER = 1;

  @SuppressWarnings("serial")
  private volatile java.lang.Object name_ = "";
  /**
   *
   *
   * <pre>
   * Output only. The resource name of the runtime.
   * Format:
   * `projects/{project}/locations/{location}/runtimes/{runtimeId}`
   * </pre>
   *
   * <code>string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
   *
   * @return The name.
   */
  @java.lang.Override
  public java.lang.String getName() {
    java.lang.Object ref = name_;
    if (ref instanceof java.lang.String) {
      return (java.lang.String) ref;
    } else {
      com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
      java.lang.String s = bs.toStringUtf8();
      name_ = s;
      return s;
    }
  }
  /**
   *
   *
   * <pre>
   * Output only. The resource name of the runtime.
   * Format:
   * `projects/{project}/locations/{location}/runtimes/{runtimeId}`
   * </pre>
   *
   * <code>string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
   *
   * @return The bytes for name.
   */
  @java.lang.Override
  public com.google.protobuf.ByteString getNameBytes() {
    java.lang.Object ref = name_;
    if (ref instanceof java.lang.String) {
      com.google.protobuf.ByteString b =
          com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
      name_ = b;
      return b;
    } else {
      return (com.google.protobuf.ByteString) ref;
    }
  }

  public static final int VIRTUAL_MACHINE_FIELD_NUMBER = 2;
  /**
   *
   *
   * <pre>
   * Use a Compute Engine VM image to start the managed notebook instance.
   * </pre>
   *
   * <code>.google.cloud.notebooks.v1.VirtualMachine virtual_machine = 2;</code>
   *
   * @return Whether the virtualMachine field is set.
   */
  @java.lang.Override
  public boolean hasVirtualMachine() {
    return runtimeTypeCase_ == 2;
  }
  /**
   *
   *
   * <pre>
   * Use a Compute Engine VM image to start the managed notebook instance.
   * </pre>
   *
   * <code>.google.cloud.notebooks.v1.VirtualMachine virtual_machine = 2;</code>
   *
   * @return The virtualMachine.
   */
  @java.lang.Override
  public com.google.cloud.notebooks.v1.VirtualMachine getVirtualMachine() {
    if (runtimeTypeCase_ == 2) {
      return (com.google.cloud.notebooks.v1.VirtualMachine) runtimeType_;
    }
    return com.google.cloud.notebooks.v1.VirtualMachine.getDefaultInstance();
  }
  /**
   *
   *
   * <pre>
   * Use a Compute Engine VM image to start the managed notebook instance.
   * </pre>
   *
   * <code>.google.cloud.notebooks.v1.VirtualMachine virtual_machine = 2;</code>
   */
  @java.lang.Override
  public com.google.cloud.notebooks.v1.VirtualMachineOrBuilder getVirtualMachineOrBuilder() {
    if (runtimeTypeCase_ == 2) {
      return (com.google.cloud.notebooks.v1.VirtualMachine) runtimeType_;
    }
    return com.google.cloud.notebooks.v1.VirtualMachine.getDefaultInstance();
  }

  public static final int STATE_FIELD_NUMBER = 3;
  private int state_ = 0;
  /**
   *
   *
   * <pre>
   * Output only. Runtime state.
   * </pre>
   *
   * <code>
   * .google.cloud.notebooks.v1.Runtime.State state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
   * </code>
   *
   * @return The enum numeric value on the wire for state.
   */
  @java.lang.Override
  public int getStateValue() {
    return state_;
  }
  /**
   *
   *
   * <pre>
   * Output only. Runtime state.
   * </pre>
   *
   * <code>
   * .google.cloud.notebooks.v1.Runtime.State state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
   * </code>
   *
   * @return The state.
   */
  @java.lang.Override
  public com.google.cloud.notebooks.v1.Runtime.State getState() {
    com.google.cloud.notebooks.v1.Runtime.State result =
        com.google.cloud.notebooks.v1.Runtime.State.forNumber(state_);
    return result == null ? com.google.cloud.notebooks.v1.Runtime.State.UNRECOGNIZED : result;
  }

  public static final int HEALTH_STATE_FIELD_NUMBER = 4;
  private int healthState_ = 0;
  /**
   *
   *
   * <pre>
   * Output only. Runtime health_state.
   * </pre>
   *
   * <code>
   * .google.cloud.notebooks.v1.Runtime.HealthState health_state = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
   * </code>
   *
   * @return The enum numeric value on the wire for healthState.
   */
  @java.lang.Override
  public int getHealthStateValue() {
    return healthState_;
  }
  /**
   *
   *
   * <pre>
   * Output only. Runtime health_state.
   * </pre>
   *
   * <code>
   * .google.cloud.notebooks.v1.Runtime.HealthState health_state = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
   * </code>
   *
   * @return The healthState.
   */
  @java.lang.Override
  public com.google.cloud.notebooks.v1.Runtime.HealthState getHealthState() {
    com.google.cloud.notebooks.v1.Runtime.HealthState result =
        com.google.cloud.notebooks.v1.Runtime.HealthState.forNumber(healthState_);
    return result == null ? com.google.cloud.notebooks.v1.Runtime.HealthState.UNRECOGNIZED : result;
  }

  public static final int ACCESS_CONFIG_FIELD_NUMBER = 5;
  private com.google.cloud.notebooks.v1.RuntimeAccessConfig accessConfig_;
  /**
   *
   *
   * <pre>
   * The config settings for accessing runtime.
   * </pre>
   *
   * <code>.google.cloud.notebooks.v1.RuntimeAccessConfig access_config = 5;</code>
   *
   * @return Whether the accessConfig field is set.
   */
  @java.lang.Override
  public boolean hasAccessConfig() {
    return accessConfig_ != null;
  }
  /**
   *
   *
   * <pre>
   * The config settings for accessing runtime.
   * </pre>
   *
   * <code>.google.cloud.notebooks.v1.RuntimeAccessConfig access_config = 5;</code>
   *
   * @return The accessConfig.
   */
  @java.lang.Override
  public com.google.cloud.notebooks.v1.RuntimeAccessConfig getAccessConfig() {
    return accessConfig_ == null
        ? com.google.cloud.notebooks.v1.RuntimeAccessConfig.getDefaultInstance()
        : accessConfig_;
  }
  /**
   *
   *
   * <pre>
   * The config settings for accessing runtime.
   * </pre>
   *
   * <code>.google.cloud.notebooks.v1.RuntimeAccessConfig access_config = 5;</code>
   */
  @java.lang.Override
  public com.google.cloud.notebooks.v1.RuntimeAccessConfigOrBuilder getAccessConfigOrBuilder() {
    return accessConfig_ == null
        ? com.google.cloud.notebooks.v1.RuntimeAccessConfig.getDefaultInstance()
        : accessConfig_;
  }

  public static final int SOFTWARE_CONFIG_FIELD_NUMBER = 6;
  private com.google.cloud.notebooks.v1.RuntimeSoftwareConfig softwareConfig_;
  /**
   *
   *
   * <pre>
   * The config settings for software inside the runtime.
   * </pre>
   *
   * <code>.google.cloud.notebooks.v1.RuntimeSoftwareConfig software_config = 6;</code>
   *
   * @return Whether the softwareConfig field is set.
   */
  @java.lang.Override
  public boolean hasSoftwareConfig() {
    return softwareConfig_ != null;
  }
  /**
   *
   *
   * <pre>
   * The config settings for software inside the runtime.
   * </pre>
   *
   * <code>.google.cloud.notebooks.v1.RuntimeSoftwareConfig software_config = 6;</code>
   *
   * @return The softwareConfig.
   */
  @java.lang.Override
  public com.google.cloud.notebooks.v1.RuntimeSoftwareConfig getSoftwareConfig() {
    return softwareConfig_ == null
        ? com.google.cloud.notebooks.v1.RuntimeSoftwareConfig.getDefaultInstance()
        : softwareConfig_;
  }
  /**
   *
   *
   * <pre>
   * The config settings for software inside the runtime.
   * </pre>
   *
   * <code>.google.cloud.notebooks.v1.RuntimeSoftwareConfig software_config = 6;</code>
   */
  @java.lang.Override
  public com.google.cloud.notebooks.v1.RuntimeSoftwareConfigOrBuilder getSoftwareConfigOrBuilder() {
    return softwareConfig_ == null
        ? com.google.cloud.notebooks.v1.RuntimeSoftwareConfig.getDefaultInstance()
        : softwareConfig_;
  }

  public static final int METRICS_FIELD_NUMBER = 7;
  private com.google.cloud.notebooks.v1.RuntimeMetrics metrics_;
  /**
   *
   *
   * <pre>
   * Output only. Contains Runtime daemon metrics such as Service status and JupyterLab
   * stats.
   * </pre>
   *
   * <code>
   * .google.cloud.notebooks.v1.RuntimeMetrics metrics = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
   * </code>
   *
   * @return Whether the metrics field is set.
   */
  @java.lang.Override
  public boolean hasMetrics() {
    return metrics_ != null;
  }
  /**
   *
   *
   * <pre>
   * Output only. Contains Runtime daemon metrics such as Service status and JupyterLab
   * stats.
   * </pre>
   *
   * <code>
   * .google.cloud.notebooks.v1.RuntimeMetrics metrics = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
   * </code>
   *
   * @return The metrics.
   */
  @java.lang.Override
  public com.google.cloud.notebooks.v1.RuntimeMetrics getMetrics() {
    return metrics_ == null
        ? com.google.cloud.notebooks.v1.RuntimeMetrics.getDefaultInstance()
        : metrics_;
  }
  /**
   *
   *
   * <pre>
   * Output only. Contains Runtime daemon metrics such as Service status and JupyterLab
   * stats.
   * </pre>
   *
   * <code>
   * .google.cloud.notebooks.v1.RuntimeMetrics metrics = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
   * </code>
   */
  @java.lang.Override
  public com.google.cloud.notebooks.v1.RuntimeMetricsOrBuilder getMetricsOrBuilder() {
    return metrics_ == null
        ? com.google.cloud.notebooks.v1.RuntimeMetrics.getDefaultInstance()
        : metrics_;
  }

  public static final int CREATE_TIME_FIELD_NUMBER = 20;
  private com.google.protobuf.Timestamp createTime_;
  /**
   *
   *
   * <pre>
   * Output only. Runtime creation time.
   * </pre>
   *
   * <code>.google.protobuf.Timestamp create_time = 20 [(.google.api.field_behavior) = OUTPUT_ONLY];
   * </code>
   *
   * @return Whether the createTime field is set.
   */
  @java.lang.Override
  public boolean hasCreateTime() {
    return createTime_ != null;
  }
  /**
   *
   *
   * <pre>
   * Output only. Runtime creation time.
   * </pre>
   *
   * <code>.google.protobuf.Timestamp create_time = 20 [(.google.api.field_behavior) = OUTPUT_ONLY];
   * </code>
   *
   * @return The createTime.
   */
  @java.lang.Override
  public com.google.protobuf.Timestamp getCreateTime() {
    return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_;
  }
  /**
   *
   *
   * <pre>
   * Output only. Runtime creation time.
   * </pre>
   *
   * <code>.google.protobuf.Timestamp create_time = 20 [(.google.api.field_behavior) = OUTPUT_ONLY];
   * </code>
   */
  @java.lang.Override
  public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() {
    return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_;
  }

  public static final int UPDATE_TIME_FIELD_NUMBER = 21;
  private com.google.protobuf.Timestamp updateTime_;
  /**
   *
   *
   * <pre>
   * Output only. Runtime update time.
   * </pre>
   *
   * <code>.google.protobuf.Timestamp update_time = 21 [(.google.api.field_behavior) = OUTPUT_ONLY];
   * </code>
   *
   * @return Whether the updateTime field is set.
   */
  @java.lang.Override
  public boolean hasUpdateTime() {
    return updateTime_ != null;
  }
  /**
   *
   *
   * <pre>
   * Output only. Runtime update time.
   * </pre>
   *
   * <code>.google.protobuf.Timestamp update_time = 21 [(.google.api.field_behavior) = OUTPUT_ONLY];
   * </code>
   *
   * @return The updateTime.
   */
  @java.lang.Override
  public com.google.protobuf.Timestamp getUpdateTime() {
    return updateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_;
  }
  /**
   *
   *
   * <pre>
   * Output only. Runtime update time.
   * </pre>
   *
   * <code>.google.protobuf.Timestamp update_time = 21 [(.google.api.field_behavior) = OUTPUT_ONLY];
   * </code>
   */
  @java.lang.Override
  public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() {
    return updateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_;
  }

  private byte memoizedIsInitialized = -1;

  @java.lang.Override
  public final boolean isInitialized() {
    byte isInitialized = memoizedIsInitialized;
    if (isInitialized == 1) return true;
    if (isInitialized == 0) return false;

    memoizedIsInitialized = 1;
    return true;
  }

  @java.lang.Override
  public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) {
      com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_);
    }
    if (runtimeTypeCase_ == 2) {
      output.writeMessage(2, (com.google.cloud.notebooks.v1.VirtualMachine) runtimeType_);
    }
    if (state_ != com.google.cloud.notebooks.v1.Runtime.State.STATE_UNSPECIFIED.getNumber()) {
      output.writeEnum(3, state_);
    }
    if (healthState_
        != com.google.cloud.notebooks.v1.Runtime.HealthState.HEALTH_STATE_UNSPECIFIED.getNumber()) {
      output.writeEnum(4, healthState_);
    }
    if (accessConfig_ != null) {
      output.writeMessage(5, getAccessConfig());
    }
    if (softwareConfig_ != null) {
      output.writeMessage(6, getSoftwareConfig());
    }
    if (metrics_ != null) {
      output.writeMessage(7, getMetrics());
    }
    if (createTime_ != null) {
      output.writeMessage(20, getCreateTime());
    }
    if (updateTime_ != null) {
      output.writeMessage(21, getUpdateTime());
    }
    getUnknownFields().writeTo(output);
  }

  @java.lang.Override
  public int getSerializedSize() {
    int size = memoizedSize;
    if (size != -1) return size;

    size = 0;
    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) {
      size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_);
    }
    if (runtimeTypeCase_ == 2) {
      size +=
          com.google.protobuf.CodedOutputStream.computeMessageSize(
              2, (com.google.cloud.notebooks.v1.VirtualMachine) runtimeType_);
    }
    if (state_ != com.google.cloud.notebooks.v1.Runtime.State.STATE_UNSPECIFIED.getNumber()) {
      size += com.google.protobuf.CodedOutputStream.computeEnumSize(3, state_);
    }
    if (healthState_
        != com.google.cloud.notebooks.v1.Runtime.HealthState.HEALTH_STATE_UNSPECIFIED.getNumber()) {
      size += com.google.protobuf.CodedOutputStream.computeEnumSize(4, healthState_);
    }
    if (accessConfig_ != null) {
      size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, getAccessConfig());
    }
    if (softwareConfig_ != null) {
      size += com.google.protobuf.CodedOutputStream.computeMessageSize(6, getSoftwareConfig());
    }
    if (metrics_ != null) {
      size += com.google.protobuf.CodedOutputStream.computeMessageSize(7, getMetrics());
    }
    if (createTime_ != null) {
      size += com.google.protobuf.CodedOutputStream.computeMessageSize(20, getCreateTime());
    }
    if (updateTime_ != null) {
      size += com.google.protobuf.CodedOutputStream.computeMessageSize(21, getUpdateTime());
    }
    size += getUnknownFields().getSerializedSize();
    memoizedSize = size;
    return size;
  }

  @java.lang.Override
  public boolean equals(final java.lang.Object obj) {
    if (obj == this) {
      return true;
    }
    if (!(obj instanceof com.google.cloud.notebooks.v1.Runtime)) {
      return super.equals(obj);
    }
    com.google.cloud.notebooks.v1.Runtime other = (com.google.cloud.notebooks.v1.Runtime) obj;

    if (!getName().equals(other.getName())) return false;
    if (state_ != other.state_) return false;
    if (healthState_ != other.healthState_) return false;
    if (hasAccessConfig() != other.hasAccessConfig()) return false;
    if (hasAccessConfig()) {
      if (!getAccessConfig().equals(other.getAccessConfig())) return false;
    }
    if (hasSoftwareConfig() != other.hasSoftwareConfig()) return false;
    if (hasSoftwareConfig()) {
      if (!getSoftwareConfig().equals(other.getSoftwareConfig())) return false;
    }
    if (hasMetrics() != other.hasMetrics()) return false;
    if (hasMetrics()) {
      if (!getMetrics().equals(other.getMetrics())) return false;
    }
    if (hasCreateTime() != other.hasCreateTime()) return false;
    if (hasCreateTime()) {
      if (!getCreateTime().equals(other.getCreateTime())) return false;
    }
    if (hasUpdateTime() != other.hasUpdateTime()) return false;
    if (hasUpdateTime()) {
      if (!getUpdateTime().equals(other.getUpdateTime())) return false;
    }
    if (!getRuntimeTypeCase().equals(other.getRuntimeTypeCase())) return false;
    switch (runtimeTypeCase_) {
      case 2:
        if (!getVirtualMachine().equals(other.getVirtualMachine())) return false;
        break;
      case 0:
      default:
    }
    if (!getUnknownFields().equals(other.getUnknownFields())) return false;
    return true;
  }

  @java.lang.Override
  public int hashCode() {
    if (memoizedHashCode != 0) {
      return memoizedHashCode;
    }
    int hash = 41;
    hash = (19 * hash) + getDescriptor().hashCode();
    hash = (37 * hash) + NAME_FIELD_NUMBER;
    hash = (53 * hash) + getName().hashCode();
    hash = (37 * hash) + STATE_FIELD_NUMBER;
    hash = (53 * hash) + state_;
    hash = (37 * hash) + HEALTH_STATE_FIELD_NUMBER;
    hash = (53 * hash) + healthState_;
    if (hasAccessConfig()) {
      hash = (37 * hash) + ACCESS_CONFIG_FIELD_NUMBER;
      hash = (53 * hash) + getAccessConfig().hashCode();
    }
    if (hasSoftwareConfig()) {
      hash = (37 * hash) + SOFTWARE_CONFIG_FIELD_NUMBER;
      hash = (53 * hash) + getSoftwareConfig().hashCode();
    }
    if (hasMetrics()) {
      hash = (37 * hash) + METRICS_FIELD_NUMBER;
      hash = (53 * hash) + getMetrics().hashCode();
    }
    if (hasCreateTime()) {
      hash = (37 * hash) + CREATE_TIME_FIELD_NUMBER;
      hash = (53 * hash) + getCreateTime().hashCode();
    }
    if (hasUpdateTime()) {
      hash = (37 * hash) + UPDATE_TIME_FIELD_NUMBER;
      hash = (53 * hash) + getUpdateTime().hashCode();
    }
    switch (runtimeTypeCase_) {
      case 2:
        hash = (37 * hash) + VIRTUAL_MACHINE_FIELD_NUMBER;
        hash = (53 * hash) + getVirtualMachine().hashCode();
        break;
      case 0:
      default:
    }
    hash = (29 * hash) + getUnknownFields().hashCode();
    memoizedHashCode = hash;
    return hash;
  }

  public static com.google.cloud.notebooks.v1.Runtime parseFrom(java.nio.ByteBuffer data)
      throws com.google.protobuf.InvalidProtocolBufferException {
    return PARSER.parseFrom(data);
  }

  public static com.google.cloud.notebooks.v1.Runtime parseFrom(
      java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
      throws com.google.protobuf.InvalidProtocolBufferException {
    return PARSER.parseFrom(data, extensionRegistry);
  }

  public static com.google.cloud.notebooks.v1.Runtime parseFrom(com.google.protobuf.ByteString data)
      throws com.google.protobuf.InvalidProtocolBufferException {
    return PARSER.parseFrom(data);
  }

  public static com.google.cloud.notebooks.v1.Runtime parseFrom(
      com.google.protobuf.ByteString data,
      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
      throws com.google.protobuf.InvalidProtocolBufferException {
    return PARSER.parseFrom(data, extensionRegistry);
  }

  public static com.google.cloud.notebooks.v1.Runtime parseFrom(byte[] data)
      throws com.google.protobuf.InvalidProtocolBufferException {
    return PARSER.parseFrom(data);
  }

  public static com.google.cloud.notebooks.v1.Runtime parseFrom(
      byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
      throws com.google.protobuf.InvalidProtocolBufferException {
    return PARSER.parseFrom(data, extensionRegistry);
  }

  public static com.google.cloud.notebooks.v1.Runtime parseFrom(java.io.InputStream input)
      throws java.io.IOException {
    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
  }

  public static com.google.cloud.notebooks.v1.Runtime parseFrom(
      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
      throws java.io.IOException {
    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
        PARSER, input, extensionRegistry);
  }

  public static com.google.cloud.notebooks.v1.Runtime parseDelimitedFrom(java.io.InputStream input)
      throws java.io.IOException {
    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
  }

  public static com.google.cloud.notebooks.v1.Runtime parseDelimitedFrom(
      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
      throws java.io.IOException {
    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
        PARSER, input, extensionRegistry);
  }

  public static com.google.cloud.notebooks.v1.Runtime parseFrom(
      com.google.protobuf.CodedInputStream input) throws java.io.IOException {
    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
  }

  public static com.google.cloud.notebooks.v1.Runtime parseFrom(
      com.google.protobuf.CodedInputStream input,
      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
      throws java.io.IOException {
    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
        PARSER, input, extensionRegistry);
  }

  @java.lang.Override
  public Builder newBuilderForType() {
    return newBuilder();
  }

  public static Builder newBuilder() {
    return DEFAULT_INSTANCE.toBuilder();
  }

  public static Builder newBuilder(com.google.cloud.notebooks.v1.Runtime prototype) {
    return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
  }

  @java.lang.Override
  public Builder toBuilder() {
    return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
  }

  @java.lang.Override
  protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
    Builder builder = new Builder(parent);
    return builder;
  }
  /**
   *
   *
   * <pre>
   * The definition of a Runtime for a managed notebook instance.
   * </pre>
   *
   * Protobuf type {@code google.cloud.notebooks.v1.Runtime}
   */
  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder<Builder>
      implements
      // @@protoc_insertion_point(builder_implements:google.cloud.notebooks.v1.Runtime)
      com.google.cloud.notebooks.v1.RuntimeOrBuilder {
    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
      return com.google.cloud.notebooks.v1.RuntimeProto
          .internal_static_google_cloud_notebooks_v1_Runtime_descriptor;
    }

    @java.lang.Override
    protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
        internalGetFieldAccessorTable() {
      return com.google.cloud.notebooks.v1.RuntimeProto
          .internal_static_google_cloud_notebooks_v1_Runtime_fieldAccessorTable
          .ensureFieldAccessorsInitialized(
              com.google.cloud.notebooks.v1.Runtime.class,
              com.google.cloud.notebooks.v1.Runtime.Builder.class);
    }

    // Construct using com.google.cloud.notebooks.v1.Runtime.newBuilder()
    private Builder() {}

    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
      super(parent);
    }

    @java.lang.Override
    public Builder clear() {
      super.clear();
      bitField0_ = 0;
      name_ = "";
      if (virtualMachineBuilder_ != null) {
        virtualMachineBuilder_.clear();
      }
      state_ = 0;
      healthState_ = 0;
      accessConfig_ = null;
      if (accessConfigBuilder_ != null) {
        accessConfigBuilder_.dispose();
        accessConfigBuilder_ = null;
      }
      softwareConfig_ = null;
      if (softwareConfigBuilder_ != null) {
        softwareConfigBuilder_.dispose();
        softwareConfigBuilder_ = null;
      }
      metrics_ = null;
      if (metricsBuilder_ != null) {
        metricsBuilder_.dispose();
        metricsBuilder_ = null;
      }
      createTime_ = null;
      if (createTimeBuilder_ != null) {
        createTimeBuilder_.dispose();
        createTimeBuilder_ = null;
      }
      updateTime_ = null;
      if (updateTimeBuilder_ != null) {
        updateTimeBuilder_.dispose();
        updateTimeBuilder_ = null;
      }
      runtimeTypeCase_ = 0;
      runtimeType_ = null;
      return this;
    }

    @java.lang.Override
    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
      return com.google.cloud.notebooks.v1.RuntimeProto
          .internal_static_google_cloud_notebooks_v1_Runtime_descriptor;
    }

    @java.lang.Override
    public com.google.cloud.notebooks.v1.Runtime getDefaultInstanceForType() {
      return com.google.cloud.notebooks.v1.Runtime.getDefaultInstance();
    }

    @java.lang.Override
    public com.google.cloud.notebooks.v1.Runtime build() {
      com.google.cloud.notebooks.v1.Runtime result = buildPartial();
      if (!result.isInitialized()) {
        throw newUninitializedMessageException(result);
      }
      return result;
    }

    @java.lang.Override
    public com.google.cloud.notebooks.v1.Runtime buildPartial() {
      com.google.cloud.notebooks.v1.Runtime result =
          new com.google.cloud.notebooks.v1.Runtime(this);
      if (bitField0_ != 0) {
        buildPartial0(result);
      }
      buildPartialOneofs(result);
      onBuilt();
      return result;
    }

    private void buildPartial0(com.google.cloud.notebooks.v1.Runtime result) {
      int from_bitField0_ = bitField0_;
      if (((from_bitField0_ & 0x00000001) != 0)) {
        result.name_ = name_;
      }
      if (((from_bitField0_ & 0x00000004) != 0)) {
        result.state_ = state_;
      }
      if (((from_bitField0_ & 0x00000008) != 0)) {
        result.healthState_ = healthState_;
      }
      if (((from_bitField0_ & 0x00000010) != 0)) {
        result.accessConfig_ =
            accessConfigBuilder_ == null ? accessConfig_ : accessConfigBuilder_.build();
      }
      if (((from_bitField0_ & 0x00000020) != 0)) {
        result.softwareConfig_ =
            softwareConfigBuilder_ == null ? softwareConfig_ : softwareConfigBuilder_.build();
      }
      if (((from_bitField0_ & 0x00000040) != 0)) {
        result.metrics_ = metricsBuilder_ == null ? metrics_ : metricsBuilder_.build();
      }
      if (((from_bitField0_ & 0x00000080) != 0)) {
        result.createTime_ = createTimeBuilder_ == null ? createTime_ : createTimeBuilder_.build();
      }
      if (((from_bitField0_ & 0x00000100) != 0)) {
        result.updateTime_ = updateTimeBuilder_ == null ? updateTime_ : updateTimeBuilder_.build();
      }
    }

    private void buildPartialOneofs(com.google.cloud.notebooks.v1.Runtime result) {
      result.runtimeTypeCase_ = runtimeTypeCase_;
      result.runtimeType_ = this.runtimeType_;
      if (runtimeTypeCase_ == 2 && virtualMachineBuilder_ != null) {
        result.runtimeType_ = virtualMachineBuilder_.build();
      }
    }

    @java.lang.Override
    public Builder clone() {
      return super.clone();
    }

    @java.lang.Override
    public Builder setField(
        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
      return super.setField(field, value);
    }

    @java.lang.Override
    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
      return super.clearField(field);
    }

    @java.lang.Override
    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
      return super.clearOneof(oneof);
    }

    @java.lang.Override
    public Builder setRepeatedField(
        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
      return super.setRepeatedField(field, index, value);
    }

    @java.lang.Override
    public Builder addRepeatedField(
        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
      return super.addRepeatedField(field, value);
    }

    @java.lang.Override
    public Builder mergeFrom(com.google.protobuf.Message other) {
      if (other instanceof com.google.cloud.notebooks.v1.Runtime) {
        return mergeFrom((com.google.cloud.notebooks.v1.Runtime) other);
      } else {
        super.mergeFrom(other);
        return this;
      }
    }

    public Builder mergeFrom(com.google.cloud.notebooks.v1.Runtime other) {
      if (other == com.google.cloud.notebooks.v1.Runtime.getDefaultInstance()) return this;
      if (!other.getName().isEmpty()) {
        name_ = other.name_;
        bitField0_ |= 0x00000001;
        onChanged();
      }
      if (other.state_ != 0) {
        setStateValue(other.getStateValue());
      }
      if (other.healthState_ != 0) {
        setHealthStateValue(other.getHealthStateValue());
      }
      if (other.hasAccessConfig()) {
        mergeAccessConfig(other.getAccessConfig());
      }
      if (other.hasSoftwareConfig()) {
        mergeSoftwareConfig(other.getSoftwareConfig());
      }
      if (other.hasMetrics()) {
        mergeMetrics(other.getMetrics());
      }
      if (other.hasCreateTime()) {
        mergeCreateTime(other.getCreateTime());
      }
      if (other.hasUpdateTime()) {
        mergeUpdateTime(other.getUpdateTime());
      }
      switch (other.getRuntimeTypeCase()) {
        case VIRTUAL_MACHINE:
          {
            mergeVirtualMachine(other.getVirtualMachine());
            break;
          }
        case RUNTIMETYPE_NOT_SET:
          {
            break;
          }
      }
      this.mergeUnknownFields(other.getUnknownFields());
      onChanged();
      return this;
    }

    @java.lang.Override
    public final boolean isInitialized() {
      return true;
    }

    @java.lang.Override
    public Builder mergeFrom(
        com.google.protobuf.CodedInputStream input,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws java.io.IOException {
      if (extensionRegistry == null) {
        throw new java.lang.NullPointerException();
      }
      try {
        boolean done = false;
        while (!done) {
          int tag = input.readTag();
          switch (tag) {
            case 0:
              done = true;
              break;
            case 10:
              {
                name_ = input.readStringRequireUtf8();
                bitField0_ |= 0x00000001;
                break;
              } // case 10
            case 18:
              {
                input.readMessage(getVirtualMachineFieldBuilder().getBuilder(), extensionRegistry);
                runtimeTypeCase_ = 2;
                break;
              } // case 18
            case 24:
              {
                state_ = input.readEnum();
                bitField0_ |= 0x00000004;
                break;
              } // case 24
            case 32:
              {
                healthState_ = input.readEnum();
                bitField0_ |= 0x00000008;
                break;
              } // case 32
            case 42:
              {
                input.readMessage(getAccessConfigFieldBuilder().getBuilder(), extensionRegistry);
                bitField0_ |= 0x00000010;
                break;
              } // case 42
            case 50:
              {
                input.readMessage(getSoftwareConfigFieldBuilder().getBuilder(), extensionRegistry);
                bitField0_ |= 0x00000020;
                break;
              } // case 50
            case 58:
              {
                input.readMessage(getMetricsFieldBuilder().getBuilder(), extensionRegistry);
                bitField0_ |= 0x00000040;
                break;
              } // case 58
            case 162:
              {
                input.readMessage(getCreateTimeFieldBuilder().getBuilder(), extensionRegistry);
                bitField0_ |= 0x00000080;
                break;
              } // case 162
            case 170:
              {
                input.readMessage(getUpdateTimeFieldBuilder().getBuilder(), extensionRegistry);
                bitField0_ |= 0x00000100;
                break;
              } // case 170
            default:
              {
                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
                  done = true; // was an endgroup tag
                }
                break;
              } // default:
          } // switch (tag)
        } // while (!done)
      } catch (com.google.protobuf.InvalidProtocolBufferException e) {
        throw e.unwrapIOException();
      } finally {
        onChanged();
      } // finally
      return this;
    }

    private int runtimeTypeCase_ = 0;
    private java.lang.Object runtimeType_;

    public RuntimeTypeCase getRuntimeTypeCase() {
      return RuntimeTypeCase.forNumber(runtimeTypeCase_);
    }

    public Builder clearRuntimeType() {
      runtimeTypeCase_ = 0;
      runtimeType_ = null;
      onChanged();
      return this;
    }

    private int bitField0_;

    private java.lang.Object name_ = "";
    /**
     *
     *
     * <pre>
     * Output only. The resource name of the runtime.
     * Format:
     * `projects/{project}/locations/{location}/runtimes/{runtimeId}`
     * </pre>
     *
     * <code>string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
     *
     * @return The name.
     */
    public java.lang.String getName() {
      java.lang.Object ref = name_;
      if (!(ref instanceof java.lang.String)) {
        com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
        java.lang.String s = bs.toStringUtf8();
        name_ = s;
        return s;
      } else {
        return (java.lang.String) ref;
      }
    }
    /**
     *
     *
     * <pre>
     * Output only. The resource name of the runtime.
     * Format:
     * `projects/{project}/locations/{location}/runtimes/{runtimeId}`
     * </pre>
     *
     * <code>string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
     *
     * @return The bytes for name.
     */
    public com.google.protobuf.ByteString getNameBytes() {
      java.lang.Object ref = name_;
      if (ref instanceof String) {
        com.google.protobuf.ByteString b =
            com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
        name_ = b;
        return b;
      } else {
        return (com.google.protobuf.ByteString) ref;
      }
    }
    /**
     *
     *
     * <pre>
     * Output only. The resource name of the runtime.
     * Format:
     * `projects/{project}/locations/{location}/runtimes/{runtimeId}`
     * </pre>
     *
     * <code>string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
     *
     * @param value The name to set.
     * @return This builder for chaining.
     */
    public Builder setName(java.lang.String value) {
      if (value == null) {
        throw new NullPointerException();
      }
      name_ = value;
      bitField0_ |= 0x00000001;
      onChanged();
      return this;
    }
    /**
     *
     *
     * <pre>
     * Output only. The resource name of the runtime.
     * Format:
     * `projects/{project}/locations/{location}/runtimes/{runtimeId}`
     * </pre>
     *
     * <code>string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
     *
     * @return This builder for chaining.
     */
    public Builder clearName() {
      name_ = getDefaultInstance().getName();
      bitField0_ = (bitField0_ & ~0x00000001);
      onChanged();
      return this;
    }
    /**
     *
     *
     * <pre>
     * Output only. The resource name of the runtime.
     * Format:
     * `projects/{project}/locations/{location}/runtimes/{runtimeId}`
     * </pre>
     *
     * <code>string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
     *
     * @param value The bytes for name to set.
     * @return This builder for chaining.
     */
    public Builder setNameBytes(com.google.protobuf.ByteString value) {
      if (value == null) {
        throw new NullPointerException();
      }
      checkByteStringIsUtf8(value);
      name_ = value;
      bitField0_ |= 0x00000001;
      onChanged();
      return this;
    }

    private com.google.protobuf.SingleFieldBuilderV3<
            com.google.cloud.notebooks.v1.VirtualMachine,
            com.google.cloud.notebooks.v1.VirtualMachine.Builder,
            com.google.cloud.notebooks.v1.VirtualMachineOrBuilder>
        virtualMachineBuilder_;
    /**
     *
     *
     * <pre>
     * Use a Compute Engine VM image to start the managed notebook instance.
     * </pre>
     *
     * <code>.google.cloud.notebooks.v1.VirtualMachine virtual_machine = 2;</code>
     *
     * @return Whether the virtualMachine field is set.
     */
    @java.lang.Override
    public boolean hasVirtualMachine() {
      return runtimeTypeCase_ == 2;
    }
    /**
     *
     *
     * <pre>
     * Use a Compute Engine VM image to start the managed notebook instance.
     * </pre>
     *
     * <code>.google.cloud.notebooks.v1.VirtualMachine virtual_machine = 2;</code>
     *
     * @return The virtualMachine.
     */
    @java.lang.Override
    public com.google.cloud.notebooks.v1.VirtualMachine getVirtualMachine() {
      if (virtualMachineBuilder_ == null) {
        if (runtimeTypeCase_ == 2) {
          return (com.google.cloud.notebooks.v1.VirtualMachine) runtimeType_;
        }
        return com.google.cloud.notebooks.v1.VirtualMachine.getDefaultInstance();
      } else {
        if (runtimeTypeCase_ == 2) {
          return virtualMachineBuilder_.getMessage();
        }
        return com.google.cloud.notebooks.v1.VirtualMachine.getDefaultInstance();
      }
    }
    /**
     *
     *
     * <pre>
     * Use a Compute Engine VM image to start the managed notebook instance.
     * </pre>
     *
     * <code>.google.cloud.notebooks.v1.VirtualMachine virtual_machine = 2;</code>
     */
    public Builder setVirtualMachine(com.google.cloud.notebooks.v1.VirtualMachine value) {
      if (virtualMachineBuilder_ == null) {
        if (value == null) {
          throw new NullPointerException();
        }
        runtimeType_ = value;
        onChanged();
      } else {
        virtualMachineBuilder_.setMessage(value);
      }
      runtimeTypeCase_ = 2;
      return this;
    }
    /**
     *
     *
     * <pre>
     * Use a Compute Engine VM image to start the managed notebook instance.
     * </pre>
     *
     * <code>.google.cloud.notebooks.v1.VirtualMachine virtual_machine = 2;</code>
     */
    public Builder setVirtualMachine(
        com.google.cloud.notebooks.v1.VirtualMachine.Builder builderForValue) {
      if (virtualMachineBuilder_ == null) {
        runtimeType_ = builderForValue.build();
        onChanged();
      } else {
        virtualMachineBuilder_.setMessage(builderForValue.build());
      }
      runtimeTypeCase_ = 2;
      return this;
    }
    /**
     *
     *
     * <pre>
     * Use a Compute Engine VM image to start the managed notebook instance.
     * </pre>
     *
     * <code>.google.cloud.notebooks.v1.VirtualMachine virtual_machine = 2;</code>
     */
    public Builder mergeVirtualMachine(com.google.cloud.notebooks.v1.VirtualMachine value) {
      if (virtualMachineBuilder_ == null) {
        if (runtimeTypeCase_ == 2
            && runtimeType_ != com.google.cloud.notebooks.v1.VirtualMachine.getDefaultInstance()) {
          runtimeType_ =
              com.google.cloud.notebooks.v1.VirtualMachine.newBuilder(
                      (com.google.cloud.notebooks.v1.VirtualMachine) runtimeType_)
                  .mergeFrom(value)
                  .buildPartial();
        } else {
          runtimeType_ = value;
        }
        onChanged();
      } else {
        if (runtimeTypeCase_ == 2) {
          virtualMachineBuilder_.mergeFrom(value);
        } else {
          virtualMachineBuilder_.setMessage(value);
        }
      }
      runtimeTypeCase_ = 2;
      return this;
    }
    /**
     *
     *
     * <pre>
     * Use a Compute Engine VM image to start the managed notebook instance.
     * </pre>
     *
     * <code>.google.cloud.notebooks.v1.VirtualMachine virtual_machine = 2;</code>
     */
    public Builder clearVirtualMachine() {
      if (virtualMachineBuilder_ == null) {
        if (runtimeTypeCase_ == 2) {
          runtimeTypeCase_ = 0;
          runtimeType_ = null;
          onChanged();
        }
      } else {
        if (runtimeTypeCase_ == 2) {
          runtimeTypeCase_ = 0;
          runtimeType_ = null;
        }
        virtualMachineBuilder_.clear();
      }
      return this;
    }
    /**
     *
     *
     * <pre>
     * Use a Compute Engine VM image to start the managed notebook instance.
     * </pre>
     *
     * <code>.google.cloud.notebooks.v1.VirtualMachine virtual_machine = 2;</code>
     */
    public com.google.cloud.notebooks.v1.VirtualMachine.Builder getVirtualMachineBuilder() {
      return getVirtualMachineFieldBuilder().getBuilder();
    }
    /**
     *
     *
     * <pre>
     * Use a Compute Engine VM image to start the managed notebook instance.
     * </pre>
     *
     * <code>.google.cloud.notebooks.v1.VirtualMachine virtual_machine = 2;</code>
     */
    @java.lang.Override
    public com.google.cloud.notebooks.v1.VirtualMachineOrBuilder getVirtualMachineOrBuilder() {
      if ((runtimeTypeCase_ == 2) && (virtualMachineBuilder_ != null)) {
        return virtualMachineBuilder_.getMessageOrBuilder();
      } else {
        if (runtimeTypeCase_ == 2) {
          return (com.google.cloud.notebooks.v1.VirtualMachine) runtimeType_;
        }
        return com.google.cloud.notebooks.v1.VirtualMachine.getDefaultInstance();
      }
    }
    /**
     *
     *
     * <pre>
     * Use a Compute Engine VM image to start the managed notebook instance.
     * </pre>
     *
     * <code>.google.cloud.notebooks.v1.VirtualMachine virtual_machine = 2;</code>
     */
    private com.google.protobuf.SingleFieldBuilderV3<
            com.google.cloud.notebooks.v1.VirtualMachine,
            com.google.cloud.notebooks.v1.VirtualMachine.Builder,
            com.google.cloud.notebooks.v1.VirtualMachineOrBuilder>
        getVirtualMachineFieldBuilder() {
      if (virtualMachineBuilder_ == null) {
        if (!(runtimeTypeCase_ == 2)) {
          runtimeType_ = com.google.cloud.notebooks.v1.VirtualMachine.getDefaultInstance();
        }
        virtualMachineBuilder_ =
            new com.google.protobuf.SingleFieldBuilderV3<
                com.google.cloud.notebooks.v1.VirtualMachine,
                com.google.cloud.notebooks.v1.VirtualMachine.Builder,
                com.google.cloud.notebooks.v1.VirtualMachineOrBuilder>(
                (com.google.cloud.notebooks.v1.VirtualMachine) runtimeType_,
                getParentForChildren(),
                isClean());
        runtimeType_ = null;
      }
      runtimeTypeCase_ = 2;
      onChanged();
      return virtualMachineBuilder_;
    }

    private int state_ = 0;
    /**
     *
     *
     * <pre>
     * Output only. Runtime state.
     * </pre>
     *
     * <code>
     * .google.cloud.notebooks.v1.Runtime.State state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
     * </code>
     *
     * @return The enum numeric value on the wire for state.
     */
    @java.lang.Override
    public int getStateValue() {
      return state_;
    }
    /**
     *
     *
     * <pre>
     * Output only. Runtime state.
     * </pre>
     *
     * <code>
     * .google.cloud.notebooks.v1.Runtime.State state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
     * </code>
     *
     * @param value The enum numeric value on the wire for state to set.
     * @return This builder for chaining.
     */
    public Builder setStateValue(int value) {
      state_ = value;
      bitField0_ |= 0x00000004;
      onChanged();
      return this;
    }
    /**
     *
     *
     * <pre>
     * Output only. Runtime state.
     * </pre>
     *
     * <code>
     * .google.cloud.notebooks.v1.Runtime.State state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
     * </code>
     *
     * @return The state.
     */
    @java.lang.Override
    public com.google.cloud.notebooks.v1.Runtime.State getState() {
      com.google.cloud.notebooks.v1.Runtime.State result =
          com.google.cloud.notebooks.v1.Runtime.State.forNumber(state_);
      return result == null ? com.google.cloud.notebooks.v1.Runtime.State.UNRECOGNIZED : result;
    }
    /**
     *
     *
     * <pre>
     * Output only. Runtime state.
     * </pre>
     *
     * <code>
     * .google.cloud.notebooks.v1.Runtime.State state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
     * </code>
     *
     * @param value The state to set.
     * @return This builder for chaining.
     */
    public Builder setState(com.google.cloud.notebooks.v1.Runtime.State value) {
      if (value == null) {
        throw new NullPointerException();
      }
      bitField0_ |= 0x00000004;
      state_ = value.getNumber();
      onChanged();
      return this;
    }
    /**
     *
     *
     * <pre>
     * Output only. Runtime state.
     * </pre>
     *
     * <code>
     * .google.cloud.notebooks.v1.Runtime.State state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
     * </code>
     *
     * @return This builder for chaining.
     */
    public Builder clearState() {
      bitField0_ = (bitField0_ & ~0x00000004);
      state_ = 0;
      onChanged();
      return this;
    }

    private int healthState_ = 0;
    /**
     *
     *
     * <pre>
     * Output only. Runtime health_state.
     * </pre>
     *
     * <code>
     * .google.cloud.notebooks.v1.Runtime.HealthState health_state = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
     * </code>
     *
     * @return The enum numeric value on the wire for healthState.
     */
    @java.lang.Override
    public int getHealthStateValue() {
      return healthState_;
    }
    /**
     *
     *
     * <pre>
     * Output only. Runtime health_state.
     * </pre>
     *
     * <code>
     * .google.cloud.notebooks.v1.Runtime.HealthState health_state = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
     * </code>
     *
     * @param value The enum numeric value on the wire for healthState to set.
     * @return This builder for chaining.
     */
    public Builder setHealthStateValue(int value) {
      healthState_ = value;
      bitField0_ |= 0x00000008;
      onChanged();
      return this;
    }
    /**
     *
     *
     * <pre>
     * Output only. Runtime health_state.
     * </pre>
     *
     * <code>
     * .google.cloud.notebooks.v1.Runtime.HealthState health_state = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
     * </code>
     *
     * @return The healthState.
     */
    @java.lang.Override
    public com.google.cloud.notebooks.v1.Runtime.HealthState getHealthState() {
      com.google.cloud.notebooks.v1.Runtime.HealthState result =
          com.google.cloud.notebooks.v1.Runtime.HealthState.forNumber(healthState_);
      return result == null
          ? com.google.cloud.notebooks.v1.Runtime.HealthState.UNRECOGNIZED
          : result;
    }
    /**
     *
     *
     * <pre>
     * Output only. Runtime health_state.
     * </pre>
     *
     * <code>
     * .google.cloud.notebooks.v1.Runtime.HealthState health_state = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
     * </code>
     *
     * @param value The healthState to set.
     * @return This builder for chaining.
     */
    public Builder setHealthState(com.google.cloud.notebooks.v1.Runtime.HealthState value) {
      if (value == null) {
        throw new NullPointerException();
      }
      bitField0_ |= 0x00000008;
      healthState_ = value.getNumber();
      onChanged();
      return this;
    }
    /**
     *
     *
     * <pre>
     * Output only. Runtime health_state.
     * </pre>
     *
     * <code>
     * .google.cloud.notebooks.v1.Runtime.HealthState health_state = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
     * </code>
     *
     * @return This builder for chaining.
     */
    public Builder clearHealthState() {
      bitField0_ = (bitField0_ & ~0x00000008);
      healthState_ = 0;
      onChanged();
      return this;
    }

    private com.google.cloud.notebooks.v1.RuntimeAccessConfig accessConfig_;
    private com.google.protobuf.SingleFieldBuilderV3<
            com.google.cloud.notebooks.v1.RuntimeAccessConfig,
            com.google.cloud.notebooks.v1.RuntimeAccessConfig.Builder,
            com.google.cloud.notebooks.v1.RuntimeAccessConfigOrBuilder>
        accessConfigBuilder_;
    /**
     *
     *
     * <pre>
     * The config settings for accessing runtime.
     * </pre>
     *
     * <code>.google.cloud.notebooks.v1.RuntimeAccessConfig access_config = 5;</code>
     *
     * @return Whether the accessConfig field is set.
     */
    public boolean hasAccessConfig() {
      return ((bitField0_ & 0x00000010) != 0);
    }
    /**
     *
     *
     * <pre>
     * The config settings for accessing runtime.
     * </pre>
     *
     * <code>.google.cloud.notebooks.v1.RuntimeAccessConfig access_config = 5;</code>
     *
     * @return The accessConfig.
     */
    public com.google.cloud.notebooks.v1.RuntimeAccessConfig getAccessConfig() {
      if (accessConfigBuilder_ == null) {
        return accessConfig_ == null
            ? com.google.cloud.notebooks.v1.RuntimeAccessConfig.getDefaultInstance()
            : accessConfig_;
      } else {
        return accessConfigBuilder_.getMessage();
      }
    }
    /**
     *
     *
     * <pre>
     * The config settings for accessing runtime.
     * </pre>
     *
     * <code>.google.cloud.notebooks.v1.RuntimeAccessConfig access_config = 5;</code>
     */
    public Builder setAccessConfig(com.google.cloud.notebooks.v1.RuntimeAccessConfig value) {
      if (accessConfigBuilder_ == null) {
        if (value == null) {
          throw new NullPointerException();
        }
        accessConfig_ = value;
      } else {
        accessConfigBuilder_.setMessage(value);
      }
      bitField0_ |= 0x00000010;
      onChanged();
      return this;
    }
    /**
     *
     *
     * <pre>
     * The config settings for accessing runtime.
     * </pre>
     *
     * <code>.google.cloud.notebooks.v1.RuntimeAccessConfig access_config = 5;</code>
     */
    public Builder setAccessConfig(
        com.google.cloud.notebooks.v1.RuntimeAccessConfig.Builder builderForValue) {
      if (accessConfigBuilder_ == null) {
        accessConfig_ = builderForValue.build();
      } else {
        accessConfigBuilder_.setMessage(builderForValue.build());
      }
      bitField0_ |= 0x00000010;
      onChanged();
      return this;
    }
    /**
     *
     *
     * <pre>
     * The config settings for accessing runtime.
     * </pre>
     *
     * <code>.google.cloud.notebooks.v1.RuntimeAccessConfig access_config = 5;</code>
     */
    public Builder mergeAccessConfig(com.google.cloud.notebooks.v1.RuntimeAccessConfig value) {
      if (accessConfigBuilder_ == null) {
        if (((bitField0_ & 0x00000010) != 0)
            && accessConfig_ != null
            && accessConfig_
                != com.google.cloud.notebooks.v1.RuntimeAccessConfig.getDefaultInstance()) {
          getAccessConfigBuilder().mergeFrom(value);
        } else {
          accessConfig_ = value;
        }
      } else {
        accessConfigBuilder_.mergeFrom(value);
      }
      bitField0_ |= 0x00000010;
      onChanged();
      return this;
    }
    /**
     *
     *
     * <pre>
     * The config settings for accessing runtime.
     * </pre>
     *
     * <code>.google.cloud.notebooks.v1.RuntimeAccessConfig access_config = 5;</code>
     */
    public Builder clearAccessConfig() {
      bitField0_ = (bitField0_ & ~0x00000010);
      accessConfig_ = null;
      if (accessConfigBuilder_ != null) {
        accessConfigBuilder_.dispose();
        accessConfigBuilder_ = null;
      }
      onChanged();
      return this;
    }
    /**
     *
     *
     * <pre>
     * The config settings for accessing runtime.
     * </pre>
     *
     * <code>.google.cloud.notebooks.v1.RuntimeAccessConfig access_config = 5;</code>
     */
    public com.google.cloud.notebooks.v1.RuntimeAccessConfig.Builder getAccessConfigBuilder() {
      bitField0_ |= 0x00000010;
      onChanged();
      return getAccessConfigFieldBuilder().getBuilder();
    }
    /**
     *
     *
     * <pre>
     * The config settings for accessing runtime.
     * </pre>
     *
     * <code>.google.cloud.notebooks.v1.RuntimeAccessConfig access_config = 5;</code>
     */
    public com.google.cloud.notebooks.v1.RuntimeAccessConfigOrBuilder getAccessConfigOrBuilder() {
      if (accessConfigBuilder_ != null) {
        return accessConfigBuilder_.getMessageOrBuilder();
      } else {
        return accessConfig_ == null
            ? com.google.cloud.notebooks.v1.RuntimeAccessConfig.getDefaultInstance()
            : accessConfig_;
      }
    }
    /**
     *
     *
     * <pre>
     * The config settings for accessing runtime.
     * </pre>
     *
     * <code>.google.cloud.notebooks.v1.RuntimeAccessConfig access_config = 5;</code>
     */
    private com.google.protobuf.SingleFieldBuilderV3<
            com.google.cloud.notebooks.v1.RuntimeAccessConfig,
            com.google.cloud.notebooks.v1.RuntimeAccessConfig.Builder,
            com.google.cloud.notebooks.v1.RuntimeAccessConfigOrBuilder>
        getAccessConfigFieldBuilder() {
      if (accessConfigBuilder_ == null) {
        accessConfigBuilder_ =
            new com.google.protobuf.SingleFieldBuilderV3<
                com.google.cloud.notebooks.v1.RuntimeAccessConfig,
                com.google.cloud.notebooks.v1.RuntimeAccessConfig.Builder,
                com.google.cloud.notebooks.v1.RuntimeAccessConfigOrBuilder>(
                getAccessConfig(), getParentForChildren(), isClean());
        accessConfig_ = null;
      }
      return accessConfigBuilder_;
    }

    private com.google.cloud.notebooks.v1.RuntimeSoftwareConfig softwareConfig_;
    private com.google.protobuf.SingleFieldBuilderV3<
            com.google.cloud.notebooks.v1.RuntimeSoftwareConfig,
            com.google.cloud.notebooks.v1.RuntimeSoftwareConfig.Builder,
            com.google.cloud.notebooks.v1.RuntimeSoftwareConfigOrBuilder>
        softwareConfigBuilder_;
    /**
     *
     *
     * <pre>
     * The config settings for software inside the runtime.
     * </pre>
     *
     * <code>.google.cloud.notebooks.v1.RuntimeSoftwareConfig software_config = 6;</code>
     *
     * @return Whether the softwareConfig field is set.
     */
    public boolean hasSoftwareConfig() {
      return ((bitField0_ & 0x00000020) != 0);
    }
    /**
     *
     *
     * <pre>
     * The config settings for software inside the runtime.
     * </pre>
     *
     * <code>.google.cloud.notebooks.v1.RuntimeSoftwareConfig software_config = 6;</code>
     *
     * @return The softwareConfig.
     */
    public com.google.cloud.notebooks.v1.RuntimeSoftwareConfig getSoftwareConfig() {
      if (softwareConfigBuilder_ == null) {
        return softwareConfig_ == null
            ? com.google.cloud.notebooks.v1.RuntimeSoftwareConfig.getDefaultInstance()
            : softwareConfig_;
      } else {
        return softwareConfigBuilder_.getMessage();
      }
    }
    /**
     *
     *
     * <pre>
     * The config settings for software inside the runtime.
     * </pre>
     *
     * <code>.google.cloud.notebooks.v1.RuntimeSoftwareConfig software_config = 6;</code>
     */
    public Builder setSoftwareConfig(com.google.cloud.notebooks.v1.RuntimeSoftwareConfig value) {
      if (softwareConfigBuilder_ == null) {
        if (value == null) {
          throw new NullPointerException();
        }
        softwareConfig_ = value;
      } else {
        softwareConfigBuilder_.setMessage(value);
      }
      bitField0_ |= 0x00000020;
      onChanged();
      return this;
    }
    /**
     *
     *
     * <pre>
     * The config settings for software inside the runtime.
     * </pre>
     *
     * <code>.google.cloud.notebooks.v1.RuntimeSoftwareConfig software_config = 6;</code>
     */
    public Builder setSoftwareConfig(
        com.google.cloud.notebooks.v1.RuntimeSoftwareConfig.Builder builderForValue) {
      if (softwareConfigBuilder_ == null) {
        softwareConfig_ = builderForValue.build();
      } else {
        softwareConfigBuilder_.setMessage(builderForValue.build());
      }
      bitField0_ |= 0x00000020;
      onChanged();
      return this;
    }
    /**
     *
     *
     * <pre>
     * The config settings for software inside the runtime.
     * </pre>
     *
     * <code>.google.cloud.notebooks.v1.RuntimeSoftwareConfig software_config = 6;</code>
     */
    public Builder mergeSoftwareConfig(com.google.cloud.notebooks.v1.RuntimeSoftwareConfig value) {
      if (softwareConfigBuilder_ == null) {
        if (((bitField0_ & 0x00000020) != 0)
            && softwareConfig_ != null
            && softwareConfig_
                != com.google.cloud.notebooks.v1.RuntimeSoftwareConfig.getDefaultInstance()) {
          getSoftwareConfigBuilder().mergeFrom(value);
        } else {
          softwareConfig_ = value;
        }
      } else {
        softwareConfigBuilder_.mergeFrom(value);
      }
      bitField0_ |= 0x00000020;
      onChanged();
      return this;
    }
    /**
     *
     *
     * <pre>
     * The config settings for software inside the runtime.
     * </pre>
     *
     * <code>.google.cloud.notebooks.v1.RuntimeSoftwareConfig software_config = 6;</code>
     */
    public Builder clearSoftwareConfig() {
      bitField0_ = (bitField0_ & ~0x00000020);
      softwareConfig_ = null;
      if (softwareConfigBuilder_ != null) {
        softwareConfigBuilder_.dispose();
        softwareConfigBuilder_ = null;
      }
      onChanged();
      return this;
    }
    /**
     *
     *
     * <pre>
     * The config settings for software inside the runtime.
     * </pre>
     *
     * <code>.google.cloud.notebooks.v1.RuntimeSoftwareConfig software_config = 6;</code>
     */
    public com.google.cloud.notebooks.v1.RuntimeSoftwareConfig.Builder getSoftwareConfigBuilder() {
      bitField0_ |= 0x00000020;
      onChanged();
      return getSoftwareConfigFieldBuilder().getBuilder();
    }
    /**
     *
     *
     * <pre>
     * The config settings for software inside the runtime.
     * </pre>
     *
     * <code>.google.cloud.notebooks.v1.RuntimeSoftwareConfig software_config = 6;</code>
     */
    public com.google.cloud.notebooks.v1.RuntimeSoftwareConfigOrBuilder
        getSoftwareConfigOrBuilder() {
      if (softwareConfigBuilder_ != null) {
        return softwareConfigBuilder_.getMessageOrBuilder();
      } else {
        return softwareConfig_ == null
            ? com.google.cloud.notebooks.v1.RuntimeSoftwareConfig.getDefaultInstance()
            : softwareConfig_;
      }
    }
    /**
     *
     *
     * <pre>
     * The config settings for software inside the runtime.
     * </pre>
     *
     * <code>.google.cloud.notebooks.v1.RuntimeSoftwareConfig software_config = 6;</code>
     */
    private com.google.protobuf.SingleFieldBuilderV3<
            com.google.cloud.notebooks.v1.RuntimeSoftwareConfig,
            com.google.cloud.notebooks.v1.RuntimeSoftwareConfig.Builder,
            com.google.cloud.notebooks.v1.RuntimeSoftwareConfigOrBuilder>
        getSoftwareConfigFieldBuilder() {
      if (softwareConfigBuilder_ == null) {
        softwareConfigBuilder_ =
            new com.google.protobuf.SingleFieldBuilderV3<
                com.google.cloud.notebooks.v1.RuntimeSoftwareConfig,
                com.google.cloud.notebooks.v1.RuntimeSoftwareConfig.Builder,
                com.google.cloud.notebooks.v1.RuntimeSoftwareConfigOrBuilder>(
                getSoftwareConfig(), getParentForChildren(), isClean());
        softwareConfig_ = null;
      }
      return softwareConfigBuilder_;
    }

    private com.google.cloud.notebooks.v1.RuntimeMetrics metrics_;
    private com.google.protobuf.SingleFieldBuilderV3<
            com.google.cloud.notebooks.v1.RuntimeMetrics,
            com.google.cloud.notebooks.v1.RuntimeMetrics.Builder,
            com.google.cloud.notebooks.v1.RuntimeMetricsOrBuilder>
        metricsBuilder_;
    /**
     *
     *
     * <pre>
     * Output only. Contains Runtime daemon metrics such as Service status and JupyterLab
     * stats.
     * </pre>
     *
     * <code>
     * .google.cloud.notebooks.v1.RuntimeMetrics metrics = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
     * </code>
     *
     * @return Whether the metrics field is set.
     */
    public boolean hasMetrics() {
      return ((bitField0_ & 0x00000040) != 0);
    }
    /**
     *
     *
     * <pre>
     * Output only. Contains Runtime daemon metrics such as Service status and JupyterLab
     * stats.
     * </pre>
     *
     * <code>
     * .google.cloud.notebooks.v1.RuntimeMetrics metrics = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
     * </code>
     *
     * @return The metrics.
     */
    public com.google.cloud.notebooks.v1.RuntimeMetrics getMetrics() {
      if (metricsBuilder_ == null) {
        return metrics_ == null
            ? com.google.cloud.notebooks.v1.RuntimeMetrics.getDefaultInstance()
            : metrics_;
      } else {
        return metricsBuilder_.getMessage();
      }
    }
    /**
     *
     *
     * <pre>
     * Output only. Contains Runtime daemon metrics such as Service status and JupyterLab
     * stats.
     * </pre>
     *
     * <code>
     * .google.cloud.notebooks.v1.RuntimeMetrics metrics = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
     * </code>
     */
    public Builder setMetrics(com.google.cloud.notebooks.v1.RuntimeMetrics value) {
      if (metricsBuilder_ == null) {
        if (value == null) {
          throw new NullPointerException();
        }
        metrics_ = value;
      } else {
        metricsBuilder_.setMessage(value);
      }
      bitField0_ |= 0x00000040;
      onChanged();
      return this;
    }
    /**
     *
     *
     * <pre>
     * Output only. Contains Runtime daemon metrics such as Service status and JupyterLab
     * stats.
     * </pre>
     *
     * <code>
     * .google.cloud.notebooks.v1.RuntimeMetrics metrics = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
     * </code>
     */
    public Builder setMetrics(
        com.google.cloud.notebooks.v1.RuntimeMetrics.Builder builderForValue) {
      if (metricsBuilder_ == null) {
        metrics_ = builderForValue.build();
      } else {
        metricsBuilder_.setMessage(builderForValue.build());
      }
      bitField0_ |= 0x00000040;
      onChanged();
      return this;
    }
    /**
     *
     *
     * <pre>
     * Output only. Contains Runtime daemon metrics such as Service status and JupyterLab
     * stats.
     * </pre>
     *
     * <code>
     * .google.cloud.notebooks.v1.RuntimeMetrics metrics = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
     * </code>
     */
    public Builder mergeMetrics(com.google.cloud.notebooks.v1.RuntimeMetrics value) {
      if (metricsBuilder_ == null) {
        if (((bitField0_ & 0x00000040) != 0)
            && metrics_ != null
            && metrics_ != com.google.cloud.notebooks.v1.RuntimeMetrics.getDefaultInstance()) {
          getMetricsBuilder().mergeFrom(value);
        } else {
          metrics_ = value;
        }
      } else {
        metricsBuilder_.mergeFrom(value);
      }
      bitField0_ |= 0x00000040;
      onChanged();
      return this;
    }
    /**
     *
     *
     * <pre>
     * Output only. Contains Runtime daemon metrics such as Service status and JupyterLab
     * stats.
     * </pre>
     *
     * <code>
     * .google.cloud.notebooks.v1.RuntimeMetrics metrics = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
     * </code>
     */
    public Builder clearMetrics() {
      bitField0_ = (bitField0_ & ~0x00000040);
      metrics_ = null;
      if (metricsBuilder_ != null) {
        metricsBuilder_.dispose();
        metricsBuilder_ = null;
      }
      onChanged();
      return this;
    }
    /**
     *
     *
     * <pre>
     * Output only. Contains Runtime daemon metrics such as Service status and JupyterLab
     * stats.
     * </pre>
     *
     * <code>
     * .google.cloud.notebooks.v1.RuntimeMetrics metrics = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
     * </code>
     */
    public com.google.cloud.notebooks.v1.RuntimeMetrics.Builder getMetricsBuilder() {
      bitField0_ |= 0x00000040;
      onChanged();
      return getMetricsFieldBuilder().getBuilder();
    }
    /**
     *
     *
     * <pre>
     * Output only. Contains Runtime daemon metrics such as Service status and JupyterLab
     * stats.
     * </pre>
     *
     * <code>
     * .google.cloud.notebooks.v1.RuntimeMetrics metrics = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
     * </code>
     */
    public com.google.cloud.notebooks.v1.RuntimeMetricsOrBuilder getMetricsOrBuilder() {
      if (metricsBuilder_ != null) {
        return metricsBuilder_.getMessageOrBuilder();
      } else {
        return metrics_ == null
            ? com.google.cloud.notebooks.v1.RuntimeMetrics.getDefaultInstance()
            : metrics_;
      }
    }
    /**
     *
     *
     * <pre>
     * Output only. Contains Runtime daemon metrics such as Service status and JupyterLab
     * stats.
     * </pre>
     *
     * <code>
     * .google.cloud.notebooks.v1.RuntimeMetrics metrics = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
     * </code>
     */
    private com.google.protobuf.SingleFieldBuilderV3<
            com.google.cloud.notebooks.v1.RuntimeMetrics,
            com.google.cloud.notebooks.v1.RuntimeMetrics.Builder,
            com.google.cloud.notebooks.v1.RuntimeMetricsOrBuilder>
        getMetricsFieldBuilder() {
      if (metricsBuilder_ == null) {
        metricsBuilder_ =
            new com.google.protobuf.SingleFieldBuilderV3<
                com.google.cloud.notebooks.v1.RuntimeMetrics,
                com.google.cloud.notebooks.v1.RuntimeMetrics.Builder,
                com.google.cloud.notebooks.v1.RuntimeMetricsOrBuilder>(
                getMetrics(), getParentForChildren(), isClean());
        metrics_ = null;
      }
      return metricsBuilder_;
    }

    private com.google.protobuf.Timestamp createTime_;
    private com.google.protobuf.SingleFieldBuilderV3<
            com.google.protobuf.Timestamp,
            com.google.protobuf.Timestamp.Builder,
            com.google.protobuf.TimestampOrBuilder>
        createTimeBuilder_;
    /**
     *
     *
     * <pre>
     * Output only. Runtime creation time.
     * </pre>
     *
     * <code>
     * .google.protobuf.Timestamp create_time = 20 [(.google.api.field_behavior) = OUTPUT_ONLY];
     * </code>
     *
     * @return Whether the createTime field is set.
     */
    public boolean hasCreateTime() {
      return ((bitField0_ & 0x00000080) != 0);
    }
    /**
     *
     *
     * <pre>
     * Output only. Runtime creation time.
     * </pre>
     *
     * <code>
     * .google.protobuf.Timestamp create_time = 20 [(.google.api.field_behavior) = OUTPUT_ONLY];
     * </code>
     *
     * @return The createTime.
     */
    public com.google.protobuf.Timestamp getCreateTime() {
      if (createTimeBuilder_ == null) {
        return createTime_ == null
            ? com.google.protobuf.Timestamp.getDefaultInstance()
            : createTime_;
      } else {
        return createTimeBuilder_.getMessage();
      }
    }
    /**
     *
     *
     * <pre>
     * Output only. Runtime creation time.
     * </pre>
     *
     * <code>
     * .google.protobuf.Timestamp create_time = 20 [(.google.api.field_behavior) = OUTPUT_ONLY];
     * </code>
     */
    public Builder setCreateTime(com.google.protobuf.Timestamp value) {
      if (createTimeBuilder_ == null) {
        if (value == null) {
          throw new NullPointerException();
        }
        createTime_ = value;
      } else {
        createTimeBuilder_.setMessage(value);
      }
      bitField0_ |= 0x00000080;
      onChanged();
      return this;
    }
    /**
     *
     *
     * <pre>
     * Output only. Runtime creation time.
     * </pre>
     *
     * <code>
     * .google.protobuf.Timestamp create_time = 20 [(.google.api.field_behavior) = OUTPUT_ONLY];
     * </code>
     */
    public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForValue) {
      if (createTimeBuilder_ == null) {
        createTime_ = builderForValue.build();
      } else {
        createTimeBuilder_.setMessage(builderForValue.build());
      }
      bitField0_ |= 0x00000080;
      onChanged();
      return this;
    }
    /**
     *
     *
     * <pre>
     * Output only. Runtime creation time.
     * </pre>
     *
     * <code>
     * .google.protobuf.Timestamp create_time = 20 [(.google.api.field_behavior) = OUTPUT_ONLY];
     * </code>
     */
    public Builder mergeCreateTime(com.google.protobuf.Timestamp value) {
      if (createTimeBuilder_ == null) {
        if (((bitField0_ & 0x00000080) != 0)
            && createTime_ != null
            && createTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) {
          getCreateTimeBuilder().mergeFrom(value);
        } else {
          createTime_ = value;
        }
      } else {
        createTimeBuilder_.mergeFrom(value);
      }
      bitField0_ |= 0x00000080;
      onChanged();
      return this;
    }
    /**
     *
     *
     * <pre>
     * Output only. Runtime creation time.
     * </pre>
     *
     * <code>
     * .google.protobuf.Timestamp create_time = 20 [(.google.api.field_behavior) = OUTPUT_ONLY];
     * </code>
     */
    public Builder clearCreateTime() {
      bitField0_ = (bitField0_ & ~0x00000080);
      createTime_ = null;
      if (createTimeBuilder_ != null) {
        createTimeBuilder_.dispose();
        createTimeBuilder_ = null;
      }
      onChanged();
      return this;
    }
    /**
     *
     *
     * <pre>
     * Output only. Runtime creation time.
     * </pre>
     *
     * <code>
     * .google.protobuf.Timestamp create_time = 20 [(.google.api.field_behavior) = OUTPUT_ONLY];
     * </code>
     */
    public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() {
      bitField0_ |= 0x00000080;
      onChanged();
      return getCreateTimeFieldBuilder().getBuilder();
    }
    /**
     *
     *
     * <pre>
     * Output only. Runtime creation time.
     * </pre>
     *
     * <code>
     * .google.protobuf.Timestamp create_time = 20 [(.google.api.field_behavior) = OUTPUT_ONLY];
     * </code>
     */
    public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() {
      if (createTimeBuilder_ != null) {
        return createTimeBuilder_.getMessageOrBuilder();
      } else {
        return createTime_ == null
            ? com.google.protobuf.Timestamp.getDefaultInstance()
            : createTime_;
      }
    }
    /**
     *
     *
     * <pre>
     * Output only. Runtime creation time.
     * </pre>
     *
     * <code>
     * .google.protobuf.Timestamp create_time = 20 [(.google.api.field_behavior) = OUTPUT_ONLY];
     * </code>
     */
    private com.google.protobuf.SingleFieldBuilderV3<
            com.google.protobuf.Timestamp,
            com.google.protobuf.Timestamp.Builder,
            com.google.protobuf.TimestampOrBuilder>
        getCreateTimeFieldBuilder() {
      if (createTimeBuilder_ == null) {
        createTimeBuilder_ =
            new com.google.protobuf.SingleFieldBuilderV3<
                com.google.protobuf.Timestamp,
                com.google.protobuf.Timestamp.Builder,
                com.google.protobuf.TimestampOrBuilder>(
                getCreateTime(), getParentForChildren(), isClean());
        createTime_ = null;
      }
      return createTimeBuilder_;
    }

    private com.google.protobuf.Timestamp updateTime_;
    private com.google.protobuf.SingleFieldBuilderV3<
            com.google.protobuf.Timestamp,
            com.google.protobuf.Timestamp.Builder,
            com.google.protobuf.TimestampOrBuilder>
        updateTimeBuilder_;
    /**
     *
     *
     * <pre>
     * Output only. Runtime update time.
     * </pre>
     *
     * <code>
     * .google.protobuf.Timestamp update_time = 21 [(.google.api.field_behavior) = OUTPUT_ONLY];
     * </code>
     *
     * @return Whether the updateTime field is set.
     */
    public boolean hasUpdateTime() {
      return ((bitField0_ & 0x00000100) != 0);
    }
    /**
     *
     *
     * <pre>
     * Output only. Runtime update time.
     * </pre>
     *
     * <code>
     * .google.protobuf.Timestamp update_time = 21 [(.google.api.field_behavior) = OUTPUT_ONLY];
     * </code>
     *
     * @return The updateTime.
     */
    public com.google.protobuf.Timestamp getUpdateTime() {
      if (updateTimeBuilder_ == null) {
        return updateTime_ == null
            ? com.google.protobuf.Timestamp.getDefaultInstance()
            : updateTime_;
      } else {
        return updateTimeBuilder_.getMessage();
      }
    }
    /**
     *
     *
     * <pre>
     * Output only. Runtime update time.
     * </pre>
     *
     * <code>
     * .google.protobuf.Timestamp update_time = 21 [(.google.api.field_behavior) = OUTPUT_ONLY];
     * </code>
     */
    public Builder setUpdateTime(com.google.protobuf.Timestamp value) {
      if (updateTimeBuilder_ == null) {
        if (value == null) {
          throw new NullPointerException();
        }
        updateTime_ = value;
      } else {
        updateTimeBuilder_.setMessage(value);
      }
      bitField0_ |= 0x00000100;
      onChanged();
      return this;
    }
    /**
     *
     *
     * <pre>
     * Output only. Runtime update time.
     * </pre>
     *
     * <code>
     * .google.protobuf.Timestamp update_time = 21 [(.google.api.field_behavior) = OUTPUT_ONLY];
     * </code>
     */
    public Builder setUpdateTime(com.google.protobuf.Timestamp.Builder builderForValue) {
      if (updateTimeBuilder_ == null) {
        updateTime_ = builderForValue.build();
      } else {
        updateTimeBuilder_.setMessage(builderForValue.build());
      }
      bitField0_ |= 0x00000100;
      onChanged();
      return this;
    }
    /**
     *
     *
     * <pre>
     * Output only. Runtime update time.
     * </pre>
     *
     * <code>
     * .google.protobuf.Timestamp update_time = 21 [(.google.api.field_behavior) = OUTPUT_ONLY];
     * </code>
     */
    public Builder mergeUpdateTime(com.google.protobuf.Timestamp value) {
      if (updateTimeBuilder_ == null) {
        if (((bitField0_ & 0x00000100) != 0)
            && updateTime_ != null
            && updateTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) {
          getUpdateTimeBuilder().mergeFrom(value);
        } else {
          updateTime_ = value;
        }
      } else {
        updateTimeBuilder_.mergeFrom(value);
      }
      bitField0_ |= 0x00000100;
      onChanged();
      return this;
    }
    /**
     *
     *
     * <pre>
     * Output only. Runtime update time.
     * </pre>
     *
     * <code>
     * .google.protobuf.Timestamp update_time = 21 [(.google.api.field_behavior) = OUTPUT_ONLY];
     * </code>
     */
    public Builder clearUpdateTime() {
      bitField0_ = (bitField0_ & ~0x00000100);
      updateTime_ = null;
      if (updateTimeBuilder_ != null) {
        updateTimeBuilder_.dispose();
        updateTimeBuilder_ = null;
      }
      onChanged();
      return this;
    }
    /**
     *
     *
     * <pre>
     * Output only. Runtime update time.
     * </pre>
     *
     * <code>
     * .google.protobuf.Timestamp update_time = 21 [(.google.api.field_behavior) = OUTPUT_ONLY];
     * </code>
     */
    public com.google.protobuf.Timestamp.Builder getUpdateTimeBuilder() {
      bitField0_ |= 0x00000100;
      onChanged();
      return getUpdateTimeFieldBuilder().getBuilder();
    }
    /**
     *
     *
     * <pre>
     * Output only. Runtime update time.
     * </pre>
     *
     * <code>
     * .google.protobuf.Timestamp update_time = 21 [(.google.api.field_behavior) = OUTPUT_ONLY];
     * </code>
     */
    public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() {
      if (updateTimeBuilder_ != null) {
        return updateTimeBuilder_.getMessageOrBuilder();
      } else {
        return updateTime_ == null
            ? com.google.protobuf.Timestamp.getDefaultInstance()
            : updateTime_;
      }
    }
    /**
     *
     *
     * <pre>
     * Output only. Runtime update time.
     * </pre>
     *
     * <code>
     * .google.protobuf.Timestamp update_time = 21 [(.google.api.field_behavior) = OUTPUT_ONLY];
     * </code>
     */
    private com.google.protobuf.SingleFieldBuilderV3<
            com.google.protobuf.Timestamp,
            com.google.protobuf.Timestamp.Builder,
            com.google.protobuf.TimestampOrBuilder>
        getUpdateTimeFieldBuilder() {
      if (updateTimeBuilder_ == null) {
        updateTimeBuilder_ =
            new com.google.protobuf.SingleFieldBuilderV3<
                com.google.protobuf.Timestamp,
                com.google.protobuf.Timestamp.Builder,
                com.google.protobuf.TimestampOrBuilder>(
                getUpdateTime(), getParentForChildren(), isClean());
        updateTime_ = null;
      }
      return updateTimeBuilder_;
    }

    @java.lang.Override
    public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) {
      return super.setUnknownFields(unknownFields);
    }

    @java.lang.Override
    public final Builder mergeUnknownFields(
        final com.google.protobuf.UnknownFieldSet unknownFields) {
      return super.mergeUnknownFields(unknownFields);
    }

    // @@protoc_insertion_point(builder_scope:google.cloud.notebooks.v1.Runtime)
  }

  // @@protoc_insertion_point(class_scope:google.cloud.notebooks.v1.Runtime)
  private static final com.google.cloud.notebooks.v1.Runtime DEFAULT_INSTANCE;

  static {
    DEFAULT_INSTANCE = new com.google.cloud.notebooks.v1.Runtime();
  }

  public static com.google.cloud.notebooks.v1.Runtime getDefaultInstance() {
    return DEFAULT_INSTANCE;
  }

  private static final com.google.protobuf.Parser<Runtime> PARSER =
      new com.google.protobuf.AbstractParser<Runtime>() {
        @java.lang.Override
        public Runtime parsePartialFrom(
            com.google.protobuf.CodedInputStream input,
            com.google.protobuf.ExtensionRegistryLite extensionRegistry)
            throws com.google.protobuf.InvalidProtocolBufferException {
          Builder builder = newBuilder();
          try {
            builder.mergeFrom(input, extensionRegistry);
          } catch (com.google.protobuf.InvalidProtocolBufferException e) {
            throw e.setUnfinishedMessage(builder.buildPartial());
          } catch (com.google.protobuf.UninitializedMessageException e) {
            throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
          } catch (java.io.IOException e) {
            throw new com.google.protobuf.InvalidProtocolBufferException(e)
                .setUnfinishedMessage(builder.buildPartial());
          }
          return builder.buildPartial();
        }
      };

  public static com.google.protobuf.Parser<Runtime> parser() {
    return PARSER;
  }

  @java.lang.Override
  public com.google.protobuf.Parser<Runtime> getParserForType() {
    return PARSER;
  }

  @java.lang.Override
  public com.google.cloud.notebooks.v1.Runtime getDefaultInstanceForType() {
    return DEFAULT_INSTANCE;
  }
}
