/*
 * 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 config settings for virtual machine.
 * </pre>
 *
 * Protobuf type {@code google.cloud.notebooks.v1.VirtualMachineConfig}
 */
public final class VirtualMachineConfig extends com.google.protobuf.GeneratedMessageV3
    implements
    // @@protoc_insertion_point(message_implements:google.cloud.notebooks.v1.VirtualMachineConfig)
    VirtualMachineConfigOrBuilder {
  private static final long serialVersionUID = 0L;
  // Use VirtualMachineConfig.newBuilder() to construct.
  private VirtualMachineConfig(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {
    super(builder);
  }

  private VirtualMachineConfig() {
    zone_ = "";
    machineType_ = "";
    containerImages_ = java.util.Collections.emptyList();
    network_ = "";
    subnet_ = "";
    tags_ = com.google.protobuf.LazyStringArrayList.EMPTY;
    nicType_ = 0;
    reservedIpRange_ = "";
  }

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

  @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_VirtualMachineConfig_descriptor;
  }

  @SuppressWarnings({"rawtypes"})
  @java.lang.Override
  protected com.google.protobuf.MapField internalGetMapField(int number) {
    switch (number) {
      case 14:
        return internalGetGuestAttributes();
      case 15:
        return internalGetMetadata();
      case 16:
        return internalGetLabels();
      default:
        throw new RuntimeException("Invalid map field number: " + number);
    }
  }

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

  /**
   *
   *
   * <pre>
   * The type of vNIC driver.
   * Default should be UNSPECIFIED_NIC_TYPE.
   * </pre>
   *
   * Protobuf enum {@code google.cloud.notebooks.v1.VirtualMachineConfig.NicType}
   */
  public enum NicType implements com.google.protobuf.ProtocolMessageEnum {
    /**
     *
     *
     * <pre>
     * No type specified.
     * </pre>
     *
     * <code>UNSPECIFIED_NIC_TYPE = 0;</code>
     */
    UNSPECIFIED_NIC_TYPE(0),
    /**
     *
     *
     * <pre>
     * VIRTIO
     * </pre>
     *
     * <code>VIRTIO_NET = 1;</code>
     */
    VIRTIO_NET(1),
    /**
     *
     *
     * <pre>
     * GVNIC
     * </pre>
     *
     * <code>GVNIC = 2;</code>
     */
    GVNIC(2),
    UNRECOGNIZED(-1),
    ;

    /**
     *
     *
     * <pre>
     * No type specified.
     * </pre>
     *
     * <code>UNSPECIFIED_NIC_TYPE = 0;</code>
     */
    public static final int UNSPECIFIED_NIC_TYPE_VALUE = 0;
    /**
     *
     *
     * <pre>
     * VIRTIO
     * </pre>
     *
     * <code>VIRTIO_NET = 1;</code>
     */
    public static final int VIRTIO_NET_VALUE = 1;
    /**
     *
     *
     * <pre>
     * GVNIC
     * </pre>
     *
     * <code>GVNIC = 2;</code>
     */
    public static final int GVNIC_VALUE = 2;

    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 NicType 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 NicType forNumber(int value) {
      switch (value) {
        case 0:
          return UNSPECIFIED_NIC_TYPE;
        case 1:
          return VIRTIO_NET;
        case 2:
          return GVNIC;
        default:
          return null;
      }
    }

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

    private static final com.google.protobuf.Internal.EnumLiteMap<NicType> internalValueMap =
        new com.google.protobuf.Internal.EnumLiteMap<NicType>() {
          public NicType findValueByNumber(int number) {
            return NicType.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.VirtualMachineConfig.getDescriptor()
          .getEnumTypes()
          .get(0);
    }

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

    public static NicType 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 NicType(int value) {
      this.value = value;
    }

    // @@protoc_insertion_point(enum_scope:google.cloud.notebooks.v1.VirtualMachineConfig.NicType)
  }

  public interface BootImageOrBuilder
      extends
      // @@protoc_insertion_point(interface_extends:google.cloud.notebooks.v1.VirtualMachineConfig.BootImage)
      com.google.protobuf.MessageOrBuilder {}
  /**
   *
   *
   * <pre>
   * Definition of the boot image used by the Runtime.
   * Used to facilitate runtime upgradeability.
   * </pre>
   *
   * Protobuf type {@code google.cloud.notebooks.v1.VirtualMachineConfig.BootImage}
   */
  public static final class BootImage extends com.google.protobuf.GeneratedMessageV3
      implements
      // @@protoc_insertion_point(message_implements:google.cloud.notebooks.v1.VirtualMachineConfig.BootImage)
      BootImageOrBuilder {
    private static final long serialVersionUID = 0L;
    // Use BootImage.newBuilder() to construct.
    private BootImage(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {
      super(builder);
    }

    private BootImage() {}

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

    @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_VirtualMachineConfig_BootImage_descriptor;
    }

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

    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 {
      getUnknownFields().writeTo(output);
    }

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

      size = 0;
      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.VirtualMachineConfig.BootImage)) {
        return super.equals(obj);
      }
      com.google.cloud.notebooks.v1.VirtualMachineConfig.BootImage other =
          (com.google.cloud.notebooks.v1.VirtualMachineConfig.BootImage) obj;

      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 = (29 * hash) + getUnknownFields().hashCode();
      memoizedHashCode = hash;
      return hash;
    }

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

    public static com.google.cloud.notebooks.v1.VirtualMachineConfig.BootImage 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.VirtualMachineConfig.BootImage parseFrom(
        com.google.protobuf.ByteString data)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data);
    }

    public static com.google.cloud.notebooks.v1.VirtualMachineConfig.BootImage 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.VirtualMachineConfig.BootImage parseFrom(
        byte[] data) throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data);
    }

    public static com.google.cloud.notebooks.v1.VirtualMachineConfig.BootImage 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.VirtualMachineConfig.BootImage parseFrom(
        java.io.InputStream input) throws java.io.IOException {
      return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
    }

    public static com.google.cloud.notebooks.v1.VirtualMachineConfig.BootImage 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.VirtualMachineConfig.BootImage parseDelimitedFrom(
        java.io.InputStream input) throws java.io.IOException {
      return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
    }

    public static com.google.cloud.notebooks.v1.VirtualMachineConfig.BootImage 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.VirtualMachineConfig.BootImage 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.VirtualMachineConfig.BootImage 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.VirtualMachineConfig.BootImage 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>
     * Definition of the boot image used by the Runtime.
     * Used to facilitate runtime upgradeability.
     * </pre>
     *
     * Protobuf type {@code google.cloud.notebooks.v1.VirtualMachineConfig.BootImage}
     */
    public static final class Builder
        extends com.google.protobuf.GeneratedMessageV3.Builder<Builder>
        implements
        // @@protoc_insertion_point(builder_implements:google.cloud.notebooks.v1.VirtualMachineConfig.BootImage)
        com.google.cloud.notebooks.v1.VirtualMachineConfig.BootImageOrBuilder {
      public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
        return com.google.cloud.notebooks.v1.RuntimeProto
            .internal_static_google_cloud_notebooks_v1_VirtualMachineConfig_BootImage_descriptor;
      }

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

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

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

      @java.lang.Override
      public Builder clear() {
        super.clear();
        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_VirtualMachineConfig_BootImage_descriptor;
      }

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

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

      @java.lang.Override
      public com.google.cloud.notebooks.v1.VirtualMachineConfig.BootImage buildPartial() {
        com.google.cloud.notebooks.v1.VirtualMachineConfig.BootImage result =
            new com.google.cloud.notebooks.v1.VirtualMachineConfig.BootImage(this);
        onBuilt();
        return result;
      }

      @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.VirtualMachineConfig.BootImage) {
          return mergeFrom((com.google.cloud.notebooks.v1.VirtualMachineConfig.BootImage) other);
        } else {
          super.mergeFrom(other);
          return this;
        }
      }

      public Builder mergeFrom(com.google.cloud.notebooks.v1.VirtualMachineConfig.BootImage other) {
        if (other
            == com.google.cloud.notebooks.v1.VirtualMachineConfig.BootImage.getDefaultInstance())
          return this;
        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;
              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;
      }

      @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.VirtualMachineConfig.BootImage)
    }

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

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

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

    private static final com.google.protobuf.Parser<BootImage> PARSER =
        new com.google.protobuf.AbstractParser<BootImage>() {
          @java.lang.Override
          public BootImage 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<BootImage> parser() {
      return PARSER;
    }

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

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

  public static final int ZONE_FIELD_NUMBER = 1;

  @SuppressWarnings("serial")
  private volatile java.lang.Object zone_ = "";
  /**
   *
   *
   * <pre>
   * Output only. The zone where the virtual machine is located.
   * If using regional request, the notebooks service will pick a location
   * in the corresponding runtime region.
   * On a get request, zone will always be present. Example:
   * * `us-central1-b`
   * </pre>
   *
   * <code>string zone = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
   *
   * @return The zone.
   */
  @java.lang.Override
  public java.lang.String getZone() {
    java.lang.Object ref = zone_;
    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();
      zone_ = s;
      return s;
    }
  }
  /**
   *
   *
   * <pre>
   * Output only. The zone where the virtual machine is located.
   * If using regional request, the notebooks service will pick a location
   * in the corresponding runtime region.
   * On a get request, zone will always be present. Example:
   * * `us-central1-b`
   * </pre>
   *
   * <code>string zone = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
   *
   * @return The bytes for zone.
   */
  @java.lang.Override
  public com.google.protobuf.ByteString getZoneBytes() {
    java.lang.Object ref = zone_;
    if (ref instanceof java.lang.String) {
      com.google.protobuf.ByteString b =
          com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
      zone_ = b;
      return b;
    } else {
      return (com.google.protobuf.ByteString) ref;
    }
  }

  public static final int MACHINE_TYPE_FIELD_NUMBER = 2;

  @SuppressWarnings("serial")
  private volatile java.lang.Object machineType_ = "";
  /**
   *
   *
   * <pre>
   * Required. The Compute Engine machine type used for runtimes.
   * Short name is valid. Examples:
   * * `n1-standard-2`
   * * `e2-standard-8`
   * </pre>
   *
   * <code>string machine_type = 2 [(.google.api.field_behavior) = REQUIRED];</code>
   *
   * @return The machineType.
   */
  @java.lang.Override
  public java.lang.String getMachineType() {
    java.lang.Object ref = machineType_;
    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();
      machineType_ = s;
      return s;
    }
  }
  /**
   *
   *
   * <pre>
   * Required. The Compute Engine machine type used for runtimes.
   * Short name is valid. Examples:
   * * `n1-standard-2`
   * * `e2-standard-8`
   * </pre>
   *
   * <code>string machine_type = 2 [(.google.api.field_behavior) = REQUIRED];</code>
   *
   * @return The bytes for machineType.
   */
  @java.lang.Override
  public com.google.protobuf.ByteString getMachineTypeBytes() {
    java.lang.Object ref = machineType_;
    if (ref instanceof java.lang.String) {
      com.google.protobuf.ByteString b =
          com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
      machineType_ = b;
      return b;
    } else {
      return (com.google.protobuf.ByteString) ref;
    }
  }

  public static final int CONTAINER_IMAGES_FIELD_NUMBER = 3;

  @SuppressWarnings("serial")
  private java.util.List<com.google.cloud.notebooks.v1.ContainerImage> containerImages_;
  /**
   *
   *
   * <pre>
   * Optional. Use a list of container images to use as Kernels in the notebook instance.
   * </pre>
   *
   * <code>
   * repeated .google.cloud.notebooks.v1.ContainerImage container_images = 3 [(.google.api.field_behavior) = OPTIONAL];
   * </code>
   */
  @java.lang.Override
  public java.util.List<com.google.cloud.notebooks.v1.ContainerImage> getContainerImagesList() {
    return containerImages_;
  }
  /**
   *
   *
   * <pre>
   * Optional. Use a list of container images to use as Kernels in the notebook instance.
   * </pre>
   *
   * <code>
   * repeated .google.cloud.notebooks.v1.ContainerImage container_images = 3 [(.google.api.field_behavior) = OPTIONAL];
   * </code>
   */
  @java.lang.Override
  public java.util.List<? extends com.google.cloud.notebooks.v1.ContainerImageOrBuilder>
      getContainerImagesOrBuilderList() {
    return containerImages_;
  }
  /**
   *
   *
   * <pre>
   * Optional. Use a list of container images to use as Kernels in the notebook instance.
   * </pre>
   *
   * <code>
   * repeated .google.cloud.notebooks.v1.ContainerImage container_images = 3 [(.google.api.field_behavior) = OPTIONAL];
   * </code>
   */
  @java.lang.Override
  public int getContainerImagesCount() {
    return containerImages_.size();
  }
  /**
   *
   *
   * <pre>
   * Optional. Use a list of container images to use as Kernels in the notebook instance.
   * </pre>
   *
   * <code>
   * repeated .google.cloud.notebooks.v1.ContainerImage container_images = 3 [(.google.api.field_behavior) = OPTIONAL];
   * </code>
   */
  @java.lang.Override
  public com.google.cloud.notebooks.v1.ContainerImage getContainerImages(int index) {
    return containerImages_.get(index);
  }
  /**
   *
   *
   * <pre>
   * Optional. Use a list of container images to use as Kernels in the notebook instance.
   * </pre>
   *
   * <code>
   * repeated .google.cloud.notebooks.v1.ContainerImage container_images = 3 [(.google.api.field_behavior) = OPTIONAL];
   * </code>
   */
  @java.lang.Override
  public com.google.cloud.notebooks.v1.ContainerImageOrBuilder getContainerImagesOrBuilder(
      int index) {
    return containerImages_.get(index);
  }

  public static final int DATA_DISK_FIELD_NUMBER = 4;
  private com.google.cloud.notebooks.v1.LocalDisk dataDisk_;
  /**
   *
   *
   * <pre>
   * Required. Data disk option configuration settings.
   * </pre>
   *
   * <code>
   * .google.cloud.notebooks.v1.LocalDisk data_disk = 4 [(.google.api.field_behavior) = REQUIRED];
   * </code>
   *
   * @return Whether the dataDisk field is set.
   */
  @java.lang.Override
  public boolean hasDataDisk() {
    return dataDisk_ != null;
  }
  /**
   *
   *
   * <pre>
   * Required. Data disk option configuration settings.
   * </pre>
   *
   * <code>
   * .google.cloud.notebooks.v1.LocalDisk data_disk = 4 [(.google.api.field_behavior) = REQUIRED];
   * </code>
   *
   * @return The dataDisk.
   */
  @java.lang.Override
  public com.google.cloud.notebooks.v1.LocalDisk getDataDisk() {
    return dataDisk_ == null
        ? com.google.cloud.notebooks.v1.LocalDisk.getDefaultInstance()
        : dataDisk_;
  }
  /**
   *
   *
   * <pre>
   * Required. Data disk option configuration settings.
   * </pre>
   *
   * <code>
   * .google.cloud.notebooks.v1.LocalDisk data_disk = 4 [(.google.api.field_behavior) = REQUIRED];
   * </code>
   */
  @java.lang.Override
  public com.google.cloud.notebooks.v1.LocalDiskOrBuilder getDataDiskOrBuilder() {
    return dataDisk_ == null
        ? com.google.cloud.notebooks.v1.LocalDisk.getDefaultInstance()
        : dataDisk_;
  }

  public static final int ENCRYPTION_CONFIG_FIELD_NUMBER = 5;
  private com.google.cloud.notebooks.v1.EncryptionConfig encryptionConfig_;
  /**
   *
   *
   * <pre>
   * Optional. Encryption settings for virtual machine data disk.
   * </pre>
   *
   * <code>
   * .google.cloud.notebooks.v1.EncryptionConfig encryption_config = 5 [(.google.api.field_behavior) = OPTIONAL];
   * </code>
   *
   * @return Whether the encryptionConfig field is set.
   */
  @java.lang.Override
  public boolean hasEncryptionConfig() {
    return encryptionConfig_ != null;
  }
  /**
   *
   *
   * <pre>
   * Optional. Encryption settings for virtual machine data disk.
   * </pre>
   *
   * <code>
   * .google.cloud.notebooks.v1.EncryptionConfig encryption_config = 5 [(.google.api.field_behavior) = OPTIONAL];
   * </code>
   *
   * @return The encryptionConfig.
   */
  @java.lang.Override
  public com.google.cloud.notebooks.v1.EncryptionConfig getEncryptionConfig() {
    return encryptionConfig_ == null
        ? com.google.cloud.notebooks.v1.EncryptionConfig.getDefaultInstance()
        : encryptionConfig_;
  }
  /**
   *
   *
   * <pre>
   * Optional. Encryption settings for virtual machine data disk.
   * </pre>
   *
   * <code>
   * .google.cloud.notebooks.v1.EncryptionConfig encryption_config = 5 [(.google.api.field_behavior) = OPTIONAL];
   * </code>
   */
  @java.lang.Override
  public com.google.cloud.notebooks.v1.EncryptionConfigOrBuilder getEncryptionConfigOrBuilder() {
    return encryptionConfig_ == null
        ? com.google.cloud.notebooks.v1.EncryptionConfig.getDefaultInstance()
        : encryptionConfig_;
  }

  public static final int SHIELDED_INSTANCE_CONFIG_FIELD_NUMBER = 6;
  private com.google.cloud.notebooks.v1.RuntimeShieldedInstanceConfig shieldedInstanceConfig_;
  /**
   *
   *
   * <pre>
   * Optional. Shielded VM Instance configuration settings.
   * </pre>
   *
   * <code>
   * .google.cloud.notebooks.v1.RuntimeShieldedInstanceConfig shielded_instance_config = 6 [(.google.api.field_behavior) = OPTIONAL];
   * </code>
   *
   * @return Whether the shieldedInstanceConfig field is set.
   */
  @java.lang.Override
  public boolean hasShieldedInstanceConfig() {
    return shieldedInstanceConfig_ != null;
  }
  /**
   *
   *
   * <pre>
   * Optional. Shielded VM Instance configuration settings.
   * </pre>
   *
   * <code>
   * .google.cloud.notebooks.v1.RuntimeShieldedInstanceConfig shielded_instance_config = 6 [(.google.api.field_behavior) = OPTIONAL];
   * </code>
   *
   * @return The shieldedInstanceConfig.
   */
  @java.lang.Override
  public com.google.cloud.notebooks.v1.RuntimeShieldedInstanceConfig getShieldedInstanceConfig() {
    return shieldedInstanceConfig_ == null
        ? com.google.cloud.notebooks.v1.RuntimeShieldedInstanceConfig.getDefaultInstance()
        : shieldedInstanceConfig_;
  }
  /**
   *
   *
   * <pre>
   * Optional. Shielded VM Instance configuration settings.
   * </pre>
   *
   * <code>
   * .google.cloud.notebooks.v1.RuntimeShieldedInstanceConfig shielded_instance_config = 6 [(.google.api.field_behavior) = OPTIONAL];
   * </code>
   */
  @java.lang.Override
  public com.google.cloud.notebooks.v1.RuntimeShieldedInstanceConfigOrBuilder
      getShieldedInstanceConfigOrBuilder() {
    return shieldedInstanceConfig_ == null
        ? com.google.cloud.notebooks.v1.RuntimeShieldedInstanceConfig.getDefaultInstance()
        : shieldedInstanceConfig_;
  }

  public static final int ACCELERATOR_CONFIG_FIELD_NUMBER = 7;
  private com.google.cloud.notebooks.v1.RuntimeAcceleratorConfig acceleratorConfig_;
  /**
   *
   *
   * <pre>
   * Optional. The Compute Engine accelerator configuration for this runtime.
   * </pre>
   *
   * <code>
   * .google.cloud.notebooks.v1.RuntimeAcceleratorConfig accelerator_config = 7 [(.google.api.field_behavior) = OPTIONAL];
   * </code>
   *
   * @return Whether the acceleratorConfig field is set.
   */
  @java.lang.Override
  public boolean hasAcceleratorConfig() {
    return acceleratorConfig_ != null;
  }
  /**
   *
   *
   * <pre>
   * Optional. The Compute Engine accelerator configuration for this runtime.
   * </pre>
   *
   * <code>
   * .google.cloud.notebooks.v1.RuntimeAcceleratorConfig accelerator_config = 7 [(.google.api.field_behavior) = OPTIONAL];
   * </code>
   *
   * @return The acceleratorConfig.
   */
  @java.lang.Override
  public com.google.cloud.notebooks.v1.RuntimeAcceleratorConfig getAcceleratorConfig() {
    return acceleratorConfig_ == null
        ? com.google.cloud.notebooks.v1.RuntimeAcceleratorConfig.getDefaultInstance()
        : acceleratorConfig_;
  }
  /**
   *
   *
   * <pre>
   * Optional. The Compute Engine accelerator configuration for this runtime.
   * </pre>
   *
   * <code>
   * .google.cloud.notebooks.v1.RuntimeAcceleratorConfig accelerator_config = 7 [(.google.api.field_behavior) = OPTIONAL];
   * </code>
   */
  @java.lang.Override
  public com.google.cloud.notebooks.v1.RuntimeAcceleratorConfigOrBuilder
      getAcceleratorConfigOrBuilder() {
    return acceleratorConfig_ == null
        ? com.google.cloud.notebooks.v1.RuntimeAcceleratorConfig.getDefaultInstance()
        : acceleratorConfig_;
  }

  public static final int NETWORK_FIELD_NUMBER = 8;

  @SuppressWarnings("serial")
  private volatile java.lang.Object network_ = "";
  /**
   *
   *
   * <pre>
   * Optional. The Compute Engine network to be used for machine
   * communications. Cannot be specified with subnetwork. If neither
   * `network` nor `subnet` is specified, the "default" network of
   * the project is used, if it exists.
   * A full URL or partial URI. Examples:
   * * `https://www.googleapis.com/compute/v1/projects/[project_id]/global/networks/default`
   * * `projects/[project_id]/global/networks/default`
   * Runtimes are managed resources inside Google Infrastructure.
   * Runtimes support the following network configurations:
   * * Google Managed Network (Network &amp; subnet are empty)
   * * Consumer Project VPC (network &amp; subnet are required). Requires
   * configuring Private Service Access.
   * * Shared VPC (network &amp; subnet are required). Requires configuring Private
   * Service Access.
   * </pre>
   *
   * <code>string network = 8 [(.google.api.field_behavior) = OPTIONAL];</code>
   *
   * @return The network.
   */
  @java.lang.Override
  public java.lang.String getNetwork() {
    java.lang.Object ref = network_;
    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();
      network_ = s;
      return s;
    }
  }
  /**
   *
   *
   * <pre>
   * Optional. The Compute Engine network to be used for machine
   * communications. Cannot be specified with subnetwork. If neither
   * `network` nor `subnet` is specified, the "default" network of
   * the project is used, if it exists.
   * A full URL or partial URI. Examples:
   * * `https://www.googleapis.com/compute/v1/projects/[project_id]/global/networks/default`
   * * `projects/[project_id]/global/networks/default`
   * Runtimes are managed resources inside Google Infrastructure.
   * Runtimes support the following network configurations:
   * * Google Managed Network (Network &amp; subnet are empty)
   * * Consumer Project VPC (network &amp; subnet are required). Requires
   * configuring Private Service Access.
   * * Shared VPC (network &amp; subnet are required). Requires configuring Private
   * Service Access.
   * </pre>
   *
   * <code>string network = 8 [(.google.api.field_behavior) = OPTIONAL];</code>
   *
   * @return The bytes for network.
   */
  @java.lang.Override
  public com.google.protobuf.ByteString getNetworkBytes() {
    java.lang.Object ref = network_;
    if (ref instanceof java.lang.String) {
      com.google.protobuf.ByteString b =
          com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
      network_ = b;
      return b;
    } else {
      return (com.google.protobuf.ByteString) ref;
    }
  }

  public static final int SUBNET_FIELD_NUMBER = 9;

  @SuppressWarnings("serial")
  private volatile java.lang.Object subnet_ = "";
  /**
   *
   *
   * <pre>
   * Optional. The Compute Engine subnetwork to be used for machine
   * communications. Cannot be specified with network.
   * A full URL or partial URI are valid. Examples:
   * * `https://www.googleapis.com/compute/v1/projects/[project_id]/regions/us-east1/subnetworks/sub0`
   * * `projects/[project_id]/regions/us-east1/subnetworks/sub0`
   * </pre>
   *
   * <code>string subnet = 9 [(.google.api.field_behavior) = OPTIONAL];</code>
   *
   * @return The subnet.
   */
  @java.lang.Override
  public java.lang.String getSubnet() {
    java.lang.Object ref = subnet_;
    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();
      subnet_ = s;
      return s;
    }
  }
  /**
   *
   *
   * <pre>
   * Optional. The Compute Engine subnetwork to be used for machine
   * communications. Cannot be specified with network.
   * A full URL or partial URI are valid. Examples:
   * * `https://www.googleapis.com/compute/v1/projects/[project_id]/regions/us-east1/subnetworks/sub0`
   * * `projects/[project_id]/regions/us-east1/subnetworks/sub0`
   * </pre>
   *
   * <code>string subnet = 9 [(.google.api.field_behavior) = OPTIONAL];</code>
   *
   * @return The bytes for subnet.
   */
  @java.lang.Override
  public com.google.protobuf.ByteString getSubnetBytes() {
    java.lang.Object ref = subnet_;
    if (ref instanceof java.lang.String) {
      com.google.protobuf.ByteString b =
          com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
      subnet_ = b;
      return b;
    } else {
      return (com.google.protobuf.ByteString) ref;
    }
  }

  public static final int INTERNAL_IP_ONLY_FIELD_NUMBER = 10;
  private boolean internalIpOnly_ = false;
  /**
   *
   *
   * <pre>
   * Optional. If true, runtime will only have internal IP
   * addresses. By default, runtimes are not restricted to internal IP
   * addresses, and will have ephemeral external IP addresses assigned to each
   * vm. This `internal_ip_only` restriction can only be enabled for
   * subnetwork enabled networks, and all dependencies must be
   * configured to be accessible without external IP addresses.
   * </pre>
   *
   * <code>bool internal_ip_only = 10 [(.google.api.field_behavior) = OPTIONAL];</code>
   *
   * @return The internalIpOnly.
   */
  @java.lang.Override
  public boolean getInternalIpOnly() {
    return internalIpOnly_;
  }

  public static final int TAGS_FIELD_NUMBER = 13;

  @SuppressWarnings("serial")
  private com.google.protobuf.LazyStringList tags_;
  /**
   *
   *
   * <pre>
   * Optional. The Compute Engine tags to add to runtime (see [Tagging
   * instances](https://cloud.google.com/compute/docs/label-or-tag-resources#tags)).
   * </pre>
   *
   * <code>repeated string tags = 13 [(.google.api.field_behavior) = OPTIONAL];</code>
   *
   * @return A list containing the tags.
   */
  public com.google.protobuf.ProtocolStringList getTagsList() {
    return tags_;
  }
  /**
   *
   *
   * <pre>
   * Optional. The Compute Engine tags to add to runtime (see [Tagging
   * instances](https://cloud.google.com/compute/docs/label-or-tag-resources#tags)).
   * </pre>
   *
   * <code>repeated string tags = 13 [(.google.api.field_behavior) = OPTIONAL];</code>
   *
   * @return The count of tags.
   */
  public int getTagsCount() {
    return tags_.size();
  }
  /**
   *
   *
   * <pre>
   * Optional. The Compute Engine tags to add to runtime (see [Tagging
   * instances](https://cloud.google.com/compute/docs/label-or-tag-resources#tags)).
   * </pre>
   *
   * <code>repeated string tags = 13 [(.google.api.field_behavior) = OPTIONAL];</code>
   *
   * @param index The index of the element to return.
   * @return The tags at the given index.
   */
  public java.lang.String getTags(int index) {
    return tags_.get(index);
  }
  /**
   *
   *
   * <pre>
   * Optional. The Compute Engine tags to add to runtime (see [Tagging
   * instances](https://cloud.google.com/compute/docs/label-or-tag-resources#tags)).
   * </pre>
   *
   * <code>repeated string tags = 13 [(.google.api.field_behavior) = OPTIONAL];</code>
   *
   * @param index The index of the value to return.
   * @return The bytes of the tags at the given index.
   */
  public com.google.protobuf.ByteString getTagsBytes(int index) {
    return tags_.getByteString(index);
  }

  public static final int GUEST_ATTRIBUTES_FIELD_NUMBER = 14;

  private static final class GuestAttributesDefaultEntryHolder {
    static final com.google.protobuf.MapEntry<java.lang.String, java.lang.String> defaultEntry =
        com.google.protobuf.MapEntry.<java.lang.String, java.lang.String>newDefaultInstance(
            com.google.cloud.notebooks.v1.RuntimeProto
                .internal_static_google_cloud_notebooks_v1_VirtualMachineConfig_GuestAttributesEntry_descriptor,
            com.google.protobuf.WireFormat.FieldType.STRING,
            "",
            com.google.protobuf.WireFormat.FieldType.STRING,
            "");
  }

  @SuppressWarnings("serial")
  private com.google.protobuf.MapField<java.lang.String, java.lang.String> guestAttributes_;

  private com.google.protobuf.MapField<java.lang.String, java.lang.String>
      internalGetGuestAttributes() {
    if (guestAttributes_ == null) {
      return com.google.protobuf.MapField.emptyMapField(
          GuestAttributesDefaultEntryHolder.defaultEntry);
    }
    return guestAttributes_;
  }

  public int getGuestAttributesCount() {
    return internalGetGuestAttributes().getMap().size();
  }
  /**
   *
   *
   * <pre>
   * Output only. The Compute Engine guest attributes. (see
   * [Project and instance
   * guest
   * attributes](https://cloud.google.com/compute/docs/storing-retrieving-metadata#guest_attributes)).
   * </pre>
   *
   * <code>
   * map&lt;string, string&gt; guest_attributes = 14 [(.google.api.field_behavior) = OUTPUT_ONLY];
   * </code>
   */
  @java.lang.Override
  public boolean containsGuestAttributes(java.lang.String key) {
    if (key == null) {
      throw new NullPointerException("map key");
    }
    return internalGetGuestAttributes().getMap().containsKey(key);
  }
  /** Use {@link #getGuestAttributesMap()} instead. */
  @java.lang.Override
  @java.lang.Deprecated
  public java.util.Map<java.lang.String, java.lang.String> getGuestAttributes() {
    return getGuestAttributesMap();
  }
  /**
   *
   *
   * <pre>
   * Output only. The Compute Engine guest attributes. (see
   * [Project and instance
   * guest
   * attributes](https://cloud.google.com/compute/docs/storing-retrieving-metadata#guest_attributes)).
   * </pre>
   *
   * <code>
   * map&lt;string, string&gt; guest_attributes = 14 [(.google.api.field_behavior) = OUTPUT_ONLY];
   * </code>
   */
  @java.lang.Override
  public java.util.Map<java.lang.String, java.lang.String> getGuestAttributesMap() {
    return internalGetGuestAttributes().getMap();
  }
  /**
   *
   *
   * <pre>
   * Output only. The Compute Engine guest attributes. (see
   * [Project and instance
   * guest
   * attributes](https://cloud.google.com/compute/docs/storing-retrieving-metadata#guest_attributes)).
   * </pre>
   *
   * <code>
   * map&lt;string, string&gt; guest_attributes = 14 [(.google.api.field_behavior) = OUTPUT_ONLY];
   * </code>
   */
  @java.lang.Override
  public /* nullable */ java.lang.String getGuestAttributesOrDefault(
      java.lang.String key,
      /* nullable */
      java.lang.String defaultValue) {
    if (key == null) {
      throw new NullPointerException("map key");
    }
    java.util.Map<java.lang.String, java.lang.String> map = internalGetGuestAttributes().getMap();
    return map.containsKey(key) ? map.get(key) : defaultValue;
  }
  /**
   *
   *
   * <pre>
   * Output only. The Compute Engine guest attributes. (see
   * [Project and instance
   * guest
   * attributes](https://cloud.google.com/compute/docs/storing-retrieving-metadata#guest_attributes)).
   * </pre>
   *
   * <code>
   * map&lt;string, string&gt; guest_attributes = 14 [(.google.api.field_behavior) = OUTPUT_ONLY];
   * </code>
   */
  @java.lang.Override
  public java.lang.String getGuestAttributesOrThrow(java.lang.String key) {
    if (key == null) {
      throw new NullPointerException("map key");
    }
    java.util.Map<java.lang.String, java.lang.String> map = internalGetGuestAttributes().getMap();
    if (!map.containsKey(key)) {
      throw new java.lang.IllegalArgumentException();
    }
    return map.get(key);
  }

  public static final int METADATA_FIELD_NUMBER = 15;

  private static final class MetadataDefaultEntryHolder {
    static final com.google.protobuf.MapEntry<java.lang.String, java.lang.String> defaultEntry =
        com.google.protobuf.MapEntry.<java.lang.String, java.lang.String>newDefaultInstance(
            com.google.cloud.notebooks.v1.RuntimeProto
                .internal_static_google_cloud_notebooks_v1_VirtualMachineConfig_MetadataEntry_descriptor,
            com.google.protobuf.WireFormat.FieldType.STRING,
            "",
            com.google.protobuf.WireFormat.FieldType.STRING,
            "");
  }

  @SuppressWarnings("serial")
  private com.google.protobuf.MapField<java.lang.String, java.lang.String> metadata_;

  private com.google.protobuf.MapField<java.lang.String, java.lang.String> internalGetMetadata() {
    if (metadata_ == null) {
      return com.google.protobuf.MapField.emptyMapField(MetadataDefaultEntryHolder.defaultEntry);
    }
    return metadata_;
  }

  public int getMetadataCount() {
    return internalGetMetadata().getMap().size();
  }
  /**
   *
   *
   * <pre>
   * Optional. The Compute Engine metadata entries to add to virtual machine. (see
   * [Project and instance
   * metadata](https://cloud.google.com/compute/docs/storing-retrieving-metadata#project_and_instance_metadata)).
   * </pre>
   *
   * <code>map&lt;string, string&gt; metadata = 15 [(.google.api.field_behavior) = OPTIONAL];</code>
   */
  @java.lang.Override
  public boolean containsMetadata(java.lang.String key) {
    if (key == null) {
      throw new NullPointerException("map key");
    }
    return internalGetMetadata().getMap().containsKey(key);
  }
  /** Use {@link #getMetadataMap()} instead. */
  @java.lang.Override
  @java.lang.Deprecated
  public java.util.Map<java.lang.String, java.lang.String> getMetadata() {
    return getMetadataMap();
  }
  /**
   *
   *
   * <pre>
   * Optional. The Compute Engine metadata entries to add to virtual machine. (see
   * [Project and instance
   * metadata](https://cloud.google.com/compute/docs/storing-retrieving-metadata#project_and_instance_metadata)).
   * </pre>
   *
   * <code>map&lt;string, string&gt; metadata = 15 [(.google.api.field_behavior) = OPTIONAL];</code>
   */
  @java.lang.Override
  public java.util.Map<java.lang.String, java.lang.String> getMetadataMap() {
    return internalGetMetadata().getMap();
  }
  /**
   *
   *
   * <pre>
   * Optional. The Compute Engine metadata entries to add to virtual machine. (see
   * [Project and instance
   * metadata](https://cloud.google.com/compute/docs/storing-retrieving-metadata#project_and_instance_metadata)).
   * </pre>
   *
   * <code>map&lt;string, string&gt; metadata = 15 [(.google.api.field_behavior) = OPTIONAL];</code>
   */
  @java.lang.Override
  public /* nullable */ java.lang.String getMetadataOrDefault(
      java.lang.String key,
      /* nullable */
      java.lang.String defaultValue) {
    if (key == null) {
      throw new NullPointerException("map key");
    }
    java.util.Map<java.lang.String, java.lang.String> map = internalGetMetadata().getMap();
    return map.containsKey(key) ? map.get(key) : defaultValue;
  }
  /**
   *
   *
   * <pre>
   * Optional. The Compute Engine metadata entries to add to virtual machine. (see
   * [Project and instance
   * metadata](https://cloud.google.com/compute/docs/storing-retrieving-metadata#project_and_instance_metadata)).
   * </pre>
   *
   * <code>map&lt;string, string&gt; metadata = 15 [(.google.api.field_behavior) = OPTIONAL];</code>
   */
  @java.lang.Override
  public java.lang.String getMetadataOrThrow(java.lang.String key) {
    if (key == null) {
      throw new NullPointerException("map key");
    }
    java.util.Map<java.lang.String, java.lang.String> map = internalGetMetadata().getMap();
    if (!map.containsKey(key)) {
      throw new java.lang.IllegalArgumentException();
    }
    return map.get(key);
  }

  public static final int LABELS_FIELD_NUMBER = 16;

  private static final class LabelsDefaultEntryHolder {
    static final com.google.protobuf.MapEntry<java.lang.String, java.lang.String> defaultEntry =
        com.google.protobuf.MapEntry.<java.lang.String, java.lang.String>newDefaultInstance(
            com.google.cloud.notebooks.v1.RuntimeProto
                .internal_static_google_cloud_notebooks_v1_VirtualMachineConfig_LabelsEntry_descriptor,
            com.google.protobuf.WireFormat.FieldType.STRING,
            "",
            com.google.protobuf.WireFormat.FieldType.STRING,
            "");
  }

  @SuppressWarnings("serial")
  private com.google.protobuf.MapField<java.lang.String, java.lang.String> labels_;

  private com.google.protobuf.MapField<java.lang.String, java.lang.String> internalGetLabels() {
    if (labels_ == null) {
      return com.google.protobuf.MapField.emptyMapField(LabelsDefaultEntryHolder.defaultEntry);
    }
    return labels_;
  }

  public int getLabelsCount() {
    return internalGetLabels().getMap().size();
  }
  /**
   *
   *
   * <pre>
   * Optional. The labels to associate with this runtime.
   * Label **keys** must contain 1 to 63 characters, and must conform to
   * [RFC 1035](https://www.ietf.org/rfc/rfc1035.txt).
   * Label **values** may be empty, but, if present, must contain 1 to 63
   * characters, and must conform to [RFC
   * 1035](https://www.ietf.org/rfc/rfc1035.txt). No more than 32 labels can be
   * associated with a cluster.
   * </pre>
   *
   * <code>map&lt;string, string&gt; labels = 16 [(.google.api.field_behavior) = OPTIONAL];</code>
   */
  @java.lang.Override
  public boolean containsLabels(java.lang.String key) {
    if (key == null) {
      throw new NullPointerException("map key");
    }
    return internalGetLabels().getMap().containsKey(key);
  }
  /** Use {@link #getLabelsMap()} instead. */
  @java.lang.Override
  @java.lang.Deprecated
  public java.util.Map<java.lang.String, java.lang.String> getLabels() {
    return getLabelsMap();
  }
  /**
   *
   *
   * <pre>
   * Optional. The labels to associate with this runtime.
   * Label **keys** must contain 1 to 63 characters, and must conform to
   * [RFC 1035](https://www.ietf.org/rfc/rfc1035.txt).
   * Label **values** may be empty, but, if present, must contain 1 to 63
   * characters, and must conform to [RFC
   * 1035](https://www.ietf.org/rfc/rfc1035.txt). No more than 32 labels can be
   * associated with a cluster.
   * </pre>
   *
   * <code>map&lt;string, string&gt; labels = 16 [(.google.api.field_behavior) = OPTIONAL];</code>
   */
  @java.lang.Override
  public java.util.Map<java.lang.String, java.lang.String> getLabelsMap() {
    return internalGetLabels().getMap();
  }
  /**
   *
   *
   * <pre>
   * Optional. The labels to associate with this runtime.
   * Label **keys** must contain 1 to 63 characters, and must conform to
   * [RFC 1035](https://www.ietf.org/rfc/rfc1035.txt).
   * Label **values** may be empty, but, if present, must contain 1 to 63
   * characters, and must conform to [RFC
   * 1035](https://www.ietf.org/rfc/rfc1035.txt). No more than 32 labels can be
   * associated with a cluster.
   * </pre>
   *
   * <code>map&lt;string, string&gt; labels = 16 [(.google.api.field_behavior) = OPTIONAL];</code>
   */
  @java.lang.Override
  public /* nullable */ java.lang.String getLabelsOrDefault(
      java.lang.String key,
      /* nullable */
      java.lang.String defaultValue) {
    if (key == null) {
      throw new NullPointerException("map key");
    }
    java.util.Map<java.lang.String, java.lang.String> map = internalGetLabels().getMap();
    return map.containsKey(key) ? map.get(key) : defaultValue;
  }
  /**
   *
   *
   * <pre>
   * Optional. The labels to associate with this runtime.
   * Label **keys** must contain 1 to 63 characters, and must conform to
   * [RFC 1035](https://www.ietf.org/rfc/rfc1035.txt).
   * Label **values** may be empty, but, if present, must contain 1 to 63
   * characters, and must conform to [RFC
   * 1035](https://www.ietf.org/rfc/rfc1035.txt). No more than 32 labels can be
   * associated with a cluster.
   * </pre>
   *
   * <code>map&lt;string, string&gt; labels = 16 [(.google.api.field_behavior) = OPTIONAL];</code>
   */
  @java.lang.Override
  public java.lang.String getLabelsOrThrow(java.lang.String key) {
    if (key == null) {
      throw new NullPointerException("map key");
    }
    java.util.Map<java.lang.String, java.lang.String> map = internalGetLabels().getMap();
    if (!map.containsKey(key)) {
      throw new java.lang.IllegalArgumentException();
    }
    return map.get(key);
  }

  public static final int NIC_TYPE_FIELD_NUMBER = 17;
  private int nicType_ = 0;
  /**
   *
   *
   * <pre>
   * Optional. The type of vNIC to be used on this interface. This may be gVNIC or
   * VirtioNet.
   * </pre>
   *
   * <code>
   * .google.cloud.notebooks.v1.VirtualMachineConfig.NicType nic_type = 17 [(.google.api.field_behavior) = OPTIONAL];
   * </code>
   *
   * @return The enum numeric value on the wire for nicType.
   */
  @java.lang.Override
  public int getNicTypeValue() {
    return nicType_;
  }
  /**
   *
   *
   * <pre>
   * Optional. The type of vNIC to be used on this interface. This may be gVNIC or
   * VirtioNet.
   * </pre>
   *
   * <code>
   * .google.cloud.notebooks.v1.VirtualMachineConfig.NicType nic_type = 17 [(.google.api.field_behavior) = OPTIONAL];
   * </code>
   *
   * @return The nicType.
   */
  @java.lang.Override
  public com.google.cloud.notebooks.v1.VirtualMachineConfig.NicType getNicType() {
    com.google.cloud.notebooks.v1.VirtualMachineConfig.NicType result =
        com.google.cloud.notebooks.v1.VirtualMachineConfig.NicType.forNumber(nicType_);
    return result == null
        ? com.google.cloud.notebooks.v1.VirtualMachineConfig.NicType.UNRECOGNIZED
        : result;
  }

  public static final int RESERVED_IP_RANGE_FIELD_NUMBER = 18;

  @SuppressWarnings("serial")
  private volatile java.lang.Object reservedIpRange_ = "";
  /**
   *
   *
   * <pre>
   * Optional. Reserved IP Range name is used for VPC Peering.
   * The subnetwork allocation will use the range *name* if it's assigned.
   * Example: managed-notebooks-range-c
   *     PEERING_RANGE_NAME_3=managed-notebooks-range-c
   *     gcloud compute addresses create $PEERING_RANGE_NAME_3 &#92;
   *       --global &#92;
   *       --prefix-length=24 &#92;
   *       --description="Google Cloud Managed Notebooks Range 24 c" &#92;
   *       --network=$NETWORK &#92;
   *       --addresses=192.168.0.0 &#92;
   *       --purpose=VPC_PEERING
   * Field value will be: `managed-notebooks-range-c`
   * </pre>
   *
   * <code>string reserved_ip_range = 18 [(.google.api.field_behavior) = OPTIONAL];</code>
   *
   * @return The reservedIpRange.
   */
  @java.lang.Override
  public java.lang.String getReservedIpRange() {
    java.lang.Object ref = reservedIpRange_;
    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();
      reservedIpRange_ = s;
      return s;
    }
  }
  /**
   *
   *
   * <pre>
   * Optional. Reserved IP Range name is used for VPC Peering.
   * The subnetwork allocation will use the range *name* if it's assigned.
   * Example: managed-notebooks-range-c
   *     PEERING_RANGE_NAME_3=managed-notebooks-range-c
   *     gcloud compute addresses create $PEERING_RANGE_NAME_3 &#92;
   *       --global &#92;
   *       --prefix-length=24 &#92;
   *       --description="Google Cloud Managed Notebooks Range 24 c" &#92;
   *       --network=$NETWORK &#92;
   *       --addresses=192.168.0.0 &#92;
   *       --purpose=VPC_PEERING
   * Field value will be: `managed-notebooks-range-c`
   * </pre>
   *
   * <code>string reserved_ip_range = 18 [(.google.api.field_behavior) = OPTIONAL];</code>
   *
   * @return The bytes for reservedIpRange.
   */
  @java.lang.Override
  public com.google.protobuf.ByteString getReservedIpRangeBytes() {
    java.lang.Object ref = reservedIpRange_;
    if (ref instanceof java.lang.String) {
      com.google.protobuf.ByteString b =
          com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
      reservedIpRange_ = b;
      return b;
    } else {
      return (com.google.protobuf.ByteString) ref;
    }
  }

  public static final int BOOT_IMAGE_FIELD_NUMBER = 19;
  private com.google.cloud.notebooks.v1.VirtualMachineConfig.BootImage bootImage_;
  /**
   *
   *
   * <pre>
   * Optional. Boot image metadata used for runtime upgradeability.
   * </pre>
   *
   * <code>
   * .google.cloud.notebooks.v1.VirtualMachineConfig.BootImage boot_image = 19 [(.google.api.field_behavior) = OPTIONAL];
   * </code>
   *
   * @return Whether the bootImage field is set.
   */
  @java.lang.Override
  public boolean hasBootImage() {
    return bootImage_ != null;
  }
  /**
   *
   *
   * <pre>
   * Optional. Boot image metadata used for runtime upgradeability.
   * </pre>
   *
   * <code>
   * .google.cloud.notebooks.v1.VirtualMachineConfig.BootImage boot_image = 19 [(.google.api.field_behavior) = OPTIONAL];
   * </code>
   *
   * @return The bootImage.
   */
  @java.lang.Override
  public com.google.cloud.notebooks.v1.VirtualMachineConfig.BootImage getBootImage() {
    return bootImage_ == null
        ? com.google.cloud.notebooks.v1.VirtualMachineConfig.BootImage.getDefaultInstance()
        : bootImage_;
  }
  /**
   *
   *
   * <pre>
   * Optional. Boot image metadata used for runtime upgradeability.
   * </pre>
   *
   * <code>
   * .google.cloud.notebooks.v1.VirtualMachineConfig.BootImage boot_image = 19 [(.google.api.field_behavior) = OPTIONAL];
   * </code>
   */
  @java.lang.Override
  public com.google.cloud.notebooks.v1.VirtualMachineConfig.BootImageOrBuilder
      getBootImageOrBuilder() {
    return bootImage_ == null
        ? com.google.cloud.notebooks.v1.VirtualMachineConfig.BootImage.getDefaultInstance()
        : bootImage_;
  }

  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(zone_)) {
      com.google.protobuf.GeneratedMessageV3.writeString(output, 1, zone_);
    }
    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(machineType_)) {
      com.google.protobuf.GeneratedMessageV3.writeString(output, 2, machineType_);
    }
    for (int i = 0; i < containerImages_.size(); i++) {
      output.writeMessage(3, containerImages_.get(i));
    }
    if (dataDisk_ != null) {
      output.writeMessage(4, getDataDisk());
    }
    if (encryptionConfig_ != null) {
      output.writeMessage(5, getEncryptionConfig());
    }
    if (shieldedInstanceConfig_ != null) {
      output.writeMessage(6, getShieldedInstanceConfig());
    }
    if (acceleratorConfig_ != null) {
      output.writeMessage(7, getAcceleratorConfig());
    }
    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(network_)) {
      com.google.protobuf.GeneratedMessageV3.writeString(output, 8, network_);
    }
    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(subnet_)) {
      com.google.protobuf.GeneratedMessageV3.writeString(output, 9, subnet_);
    }
    if (internalIpOnly_ != false) {
      output.writeBool(10, internalIpOnly_);
    }
    for (int i = 0; i < tags_.size(); i++) {
      com.google.protobuf.GeneratedMessageV3.writeString(output, 13, tags_.getRaw(i));
    }
    com.google.protobuf.GeneratedMessageV3.serializeStringMapTo(
        output, internalGetGuestAttributes(), GuestAttributesDefaultEntryHolder.defaultEntry, 14);
    com.google.protobuf.GeneratedMessageV3.serializeStringMapTo(
        output, internalGetMetadata(), MetadataDefaultEntryHolder.defaultEntry, 15);
    com.google.protobuf.GeneratedMessageV3.serializeStringMapTo(
        output, internalGetLabels(), LabelsDefaultEntryHolder.defaultEntry, 16);
    if (nicType_
        != com.google.cloud.notebooks.v1.VirtualMachineConfig.NicType.UNSPECIFIED_NIC_TYPE
            .getNumber()) {
      output.writeEnum(17, nicType_);
    }
    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(reservedIpRange_)) {
      com.google.protobuf.GeneratedMessageV3.writeString(output, 18, reservedIpRange_);
    }
    if (bootImage_ != null) {
      output.writeMessage(19, getBootImage());
    }
    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(zone_)) {
      size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, zone_);
    }
    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(machineType_)) {
      size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, machineType_);
    }
    for (int i = 0; i < containerImages_.size(); i++) {
      size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, containerImages_.get(i));
    }
    if (dataDisk_ != null) {
      size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getDataDisk());
    }
    if (encryptionConfig_ != null) {
      size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, getEncryptionConfig());
    }
    if (shieldedInstanceConfig_ != null) {
      size +=
          com.google.protobuf.CodedOutputStream.computeMessageSize(6, getShieldedInstanceConfig());
    }
    if (acceleratorConfig_ != null) {
      size += com.google.protobuf.CodedOutputStream.computeMessageSize(7, getAcceleratorConfig());
    }
    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(network_)) {
      size += com.google.protobuf.GeneratedMessageV3.computeStringSize(8, network_);
    }
    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(subnet_)) {
      size += com.google.protobuf.GeneratedMessageV3.computeStringSize(9, subnet_);
    }
    if (internalIpOnly_ != false) {
      size += com.google.protobuf.CodedOutputStream.computeBoolSize(10, internalIpOnly_);
    }
    {
      int dataSize = 0;
      for (int i = 0; i < tags_.size(); i++) {
        dataSize += computeStringSizeNoTag(tags_.getRaw(i));
      }
      size += dataSize;
      size += 1 * getTagsList().size();
    }
    for (java.util.Map.Entry<java.lang.String, java.lang.String> entry :
        internalGetGuestAttributes().getMap().entrySet()) {
      com.google.protobuf.MapEntry<java.lang.String, java.lang.String> guestAttributes__ =
          GuestAttributesDefaultEntryHolder.defaultEntry
              .newBuilderForType()
              .setKey(entry.getKey())
              .setValue(entry.getValue())
              .build();
      size += com.google.protobuf.CodedOutputStream.computeMessageSize(14, guestAttributes__);
    }
    for (java.util.Map.Entry<java.lang.String, java.lang.String> entry :
        internalGetMetadata().getMap().entrySet()) {
      com.google.protobuf.MapEntry<java.lang.String, java.lang.String> metadata__ =
          MetadataDefaultEntryHolder.defaultEntry
              .newBuilderForType()
              .setKey(entry.getKey())
              .setValue(entry.getValue())
              .build();
      size += com.google.protobuf.CodedOutputStream.computeMessageSize(15, metadata__);
    }
    for (java.util.Map.Entry<java.lang.String, java.lang.String> entry :
        internalGetLabels().getMap().entrySet()) {
      com.google.protobuf.MapEntry<java.lang.String, java.lang.String> labels__ =
          LabelsDefaultEntryHolder.defaultEntry
              .newBuilderForType()
              .setKey(entry.getKey())
              .setValue(entry.getValue())
              .build();
      size += com.google.protobuf.CodedOutputStream.computeMessageSize(16, labels__);
    }
    if (nicType_
        != com.google.cloud.notebooks.v1.VirtualMachineConfig.NicType.UNSPECIFIED_NIC_TYPE
            .getNumber()) {
      size += com.google.protobuf.CodedOutputStream.computeEnumSize(17, nicType_);
    }
    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(reservedIpRange_)) {
      size += com.google.protobuf.GeneratedMessageV3.computeStringSize(18, reservedIpRange_);
    }
    if (bootImage_ != null) {
      size += com.google.protobuf.CodedOutputStream.computeMessageSize(19, getBootImage());
    }
    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.VirtualMachineConfig)) {
      return super.equals(obj);
    }
    com.google.cloud.notebooks.v1.VirtualMachineConfig other =
        (com.google.cloud.notebooks.v1.VirtualMachineConfig) obj;

    if (!getZone().equals(other.getZone())) return false;
    if (!getMachineType().equals(other.getMachineType())) return false;
    if (!getContainerImagesList().equals(other.getContainerImagesList())) return false;
    if (hasDataDisk() != other.hasDataDisk()) return false;
    if (hasDataDisk()) {
      if (!getDataDisk().equals(other.getDataDisk())) return false;
    }
    if (hasEncryptionConfig() != other.hasEncryptionConfig()) return false;
    if (hasEncryptionConfig()) {
      if (!getEncryptionConfig().equals(other.getEncryptionConfig())) return false;
    }
    if (hasShieldedInstanceConfig() != other.hasShieldedInstanceConfig()) return false;
    if (hasShieldedInstanceConfig()) {
      if (!getShieldedInstanceConfig().equals(other.getShieldedInstanceConfig())) return false;
    }
    if (hasAcceleratorConfig() != other.hasAcceleratorConfig()) return false;
    if (hasAcceleratorConfig()) {
      if (!getAcceleratorConfig().equals(other.getAcceleratorConfig())) return false;
    }
    if (!getNetwork().equals(other.getNetwork())) return false;
    if (!getSubnet().equals(other.getSubnet())) return false;
    if (getInternalIpOnly() != other.getInternalIpOnly()) return false;
    if (!getTagsList().equals(other.getTagsList())) return false;
    if (!internalGetGuestAttributes().equals(other.internalGetGuestAttributes())) return false;
    if (!internalGetMetadata().equals(other.internalGetMetadata())) return false;
    if (!internalGetLabels().equals(other.internalGetLabels())) return false;
    if (nicType_ != other.nicType_) return false;
    if (!getReservedIpRange().equals(other.getReservedIpRange())) return false;
    if (hasBootImage() != other.hasBootImage()) return false;
    if (hasBootImage()) {
      if (!getBootImage().equals(other.getBootImage())) return false;
    }
    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) + ZONE_FIELD_NUMBER;
    hash = (53 * hash) + getZone().hashCode();
    hash = (37 * hash) + MACHINE_TYPE_FIELD_NUMBER;
    hash = (53 * hash) + getMachineType().hashCode();
    if (getContainerImagesCount() > 0) {
      hash = (37 * hash) + CONTAINER_IMAGES_FIELD_NUMBER;
      hash = (53 * hash) + getContainerImagesList().hashCode();
    }
    if (hasDataDisk()) {
      hash = (37 * hash) + DATA_DISK_FIELD_NUMBER;
      hash = (53 * hash) + getDataDisk().hashCode();
    }
    if (hasEncryptionConfig()) {
      hash = (37 * hash) + ENCRYPTION_CONFIG_FIELD_NUMBER;
      hash = (53 * hash) + getEncryptionConfig().hashCode();
    }
    if (hasShieldedInstanceConfig()) {
      hash = (37 * hash) + SHIELDED_INSTANCE_CONFIG_FIELD_NUMBER;
      hash = (53 * hash) + getShieldedInstanceConfig().hashCode();
    }
    if (hasAcceleratorConfig()) {
      hash = (37 * hash) + ACCELERATOR_CONFIG_FIELD_NUMBER;
      hash = (53 * hash) + getAcceleratorConfig().hashCode();
    }
    hash = (37 * hash) + NETWORK_FIELD_NUMBER;
    hash = (53 * hash) + getNetwork().hashCode();
    hash = (37 * hash) + SUBNET_FIELD_NUMBER;
    hash = (53 * hash) + getSubnet().hashCode();
    hash = (37 * hash) + INTERNAL_IP_ONLY_FIELD_NUMBER;
    hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getInternalIpOnly());
    if (getTagsCount() > 0) {
      hash = (37 * hash) + TAGS_FIELD_NUMBER;
      hash = (53 * hash) + getTagsList().hashCode();
    }
    if (!internalGetGuestAttributes().getMap().isEmpty()) {
      hash = (37 * hash) + GUEST_ATTRIBUTES_FIELD_NUMBER;
      hash = (53 * hash) + internalGetGuestAttributes().hashCode();
    }
    if (!internalGetMetadata().getMap().isEmpty()) {
      hash = (37 * hash) + METADATA_FIELD_NUMBER;
      hash = (53 * hash) + internalGetMetadata().hashCode();
    }
    if (!internalGetLabels().getMap().isEmpty()) {
      hash = (37 * hash) + LABELS_FIELD_NUMBER;
      hash = (53 * hash) + internalGetLabels().hashCode();
    }
    hash = (37 * hash) + NIC_TYPE_FIELD_NUMBER;
    hash = (53 * hash) + nicType_;
    hash = (37 * hash) + RESERVED_IP_RANGE_FIELD_NUMBER;
    hash = (53 * hash) + getReservedIpRange().hashCode();
    if (hasBootImage()) {
      hash = (37 * hash) + BOOT_IMAGE_FIELD_NUMBER;
      hash = (53 * hash) + getBootImage().hashCode();
    }
    hash = (29 * hash) + getUnknownFields().hashCode();
    memoizedHashCode = hash;
    return hash;
  }

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

  public static com.google.cloud.notebooks.v1.VirtualMachineConfig 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.VirtualMachineConfig parseFrom(
      com.google.protobuf.ByteString data)
      throws com.google.protobuf.InvalidProtocolBufferException {
    return PARSER.parseFrom(data);
  }

  public static com.google.cloud.notebooks.v1.VirtualMachineConfig 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.VirtualMachineConfig parseFrom(byte[] data)
      throws com.google.protobuf.InvalidProtocolBufferException {
    return PARSER.parseFrom(data);
  }

  public static com.google.cloud.notebooks.v1.VirtualMachineConfig 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.VirtualMachineConfig parseFrom(
      java.io.InputStream input) throws java.io.IOException {
    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
  }

  public static com.google.cloud.notebooks.v1.VirtualMachineConfig 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.VirtualMachineConfig parseDelimitedFrom(
      java.io.InputStream input) throws java.io.IOException {
    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
  }

  public static com.google.cloud.notebooks.v1.VirtualMachineConfig 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.VirtualMachineConfig 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.VirtualMachineConfig 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.VirtualMachineConfig 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 config settings for virtual machine.
   * </pre>
   *
   * Protobuf type {@code google.cloud.notebooks.v1.VirtualMachineConfig}
   */
  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder<Builder>
      implements
      // @@protoc_insertion_point(builder_implements:google.cloud.notebooks.v1.VirtualMachineConfig)
      com.google.cloud.notebooks.v1.VirtualMachineConfigOrBuilder {
    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
      return com.google.cloud.notebooks.v1.RuntimeProto
          .internal_static_google_cloud_notebooks_v1_VirtualMachineConfig_descriptor;
    }

    @SuppressWarnings({"rawtypes"})
    protected com.google.protobuf.MapField internalGetMapField(int number) {
      switch (number) {
        case 14:
          return internalGetGuestAttributes();
        case 15:
          return internalGetMetadata();
        case 16:
          return internalGetLabels();
        default:
          throw new RuntimeException("Invalid map field number: " + number);
      }
    }

    @SuppressWarnings({"rawtypes"})
    protected com.google.protobuf.MapField internalGetMutableMapField(int number) {
      switch (number) {
        case 14:
          return internalGetMutableGuestAttributes();
        case 15:
          return internalGetMutableMetadata();
        case 16:
          return internalGetMutableLabels();
        default:
          throw new RuntimeException("Invalid map field number: " + number);
      }
    }

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

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

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

    @java.lang.Override
    public Builder clear() {
      super.clear();
      bitField0_ = 0;
      zone_ = "";
      machineType_ = "";
      if (containerImagesBuilder_ == null) {
        containerImages_ = java.util.Collections.emptyList();
      } else {
        containerImages_ = null;
        containerImagesBuilder_.clear();
      }
      bitField0_ = (bitField0_ & ~0x00000004);
      dataDisk_ = null;
      if (dataDiskBuilder_ != null) {
        dataDiskBuilder_.dispose();
        dataDiskBuilder_ = null;
      }
      encryptionConfig_ = null;
      if (encryptionConfigBuilder_ != null) {
        encryptionConfigBuilder_.dispose();
        encryptionConfigBuilder_ = null;
      }
      shieldedInstanceConfig_ = null;
      if (shieldedInstanceConfigBuilder_ != null) {
        shieldedInstanceConfigBuilder_.dispose();
        shieldedInstanceConfigBuilder_ = null;
      }
      acceleratorConfig_ = null;
      if (acceleratorConfigBuilder_ != null) {
        acceleratorConfigBuilder_.dispose();
        acceleratorConfigBuilder_ = null;
      }
      network_ = "";
      subnet_ = "";
      internalIpOnly_ = false;
      tags_ = com.google.protobuf.LazyStringArrayList.EMPTY;
      bitField0_ = (bitField0_ & ~0x00000400);
      internalGetMutableGuestAttributes().clear();
      internalGetMutableMetadata().clear();
      internalGetMutableLabels().clear();
      nicType_ = 0;
      reservedIpRange_ = "";
      bootImage_ = null;
      if (bootImageBuilder_ != null) {
        bootImageBuilder_.dispose();
        bootImageBuilder_ = 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_VirtualMachineConfig_descriptor;
    }

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

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

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

    private void buildPartialRepeatedFields(
        com.google.cloud.notebooks.v1.VirtualMachineConfig result) {
      if (containerImagesBuilder_ == null) {
        if (((bitField0_ & 0x00000004) != 0)) {
          containerImages_ = java.util.Collections.unmodifiableList(containerImages_);
          bitField0_ = (bitField0_ & ~0x00000004);
        }
        result.containerImages_ = containerImages_;
      } else {
        result.containerImages_ = containerImagesBuilder_.build();
      }
      if (((bitField0_ & 0x00000400) != 0)) {
        tags_ = tags_.getUnmodifiableView();
        bitField0_ = (bitField0_ & ~0x00000400);
      }
      result.tags_ = tags_;
    }

    private void buildPartial0(com.google.cloud.notebooks.v1.VirtualMachineConfig result) {
      int from_bitField0_ = bitField0_;
      if (((from_bitField0_ & 0x00000001) != 0)) {
        result.zone_ = zone_;
      }
      if (((from_bitField0_ & 0x00000002) != 0)) {
        result.machineType_ = machineType_;
      }
      if (((from_bitField0_ & 0x00000008) != 0)) {
        result.dataDisk_ = dataDiskBuilder_ == null ? dataDisk_ : dataDiskBuilder_.build();
      }
      if (((from_bitField0_ & 0x00000010) != 0)) {
        result.encryptionConfig_ =
            encryptionConfigBuilder_ == null ? encryptionConfig_ : encryptionConfigBuilder_.build();
      }
      if (((from_bitField0_ & 0x00000020) != 0)) {
        result.shieldedInstanceConfig_ =
            shieldedInstanceConfigBuilder_ == null
                ? shieldedInstanceConfig_
                : shieldedInstanceConfigBuilder_.build();
      }
      if (((from_bitField0_ & 0x00000040) != 0)) {
        result.acceleratorConfig_ =
            acceleratorConfigBuilder_ == null
                ? acceleratorConfig_
                : acceleratorConfigBuilder_.build();
      }
      if (((from_bitField0_ & 0x00000080) != 0)) {
        result.network_ = network_;
      }
      if (((from_bitField0_ & 0x00000100) != 0)) {
        result.subnet_ = subnet_;
      }
      if (((from_bitField0_ & 0x00000200) != 0)) {
        result.internalIpOnly_ = internalIpOnly_;
      }
      if (((from_bitField0_ & 0x00000800) != 0)) {
        result.guestAttributes_ = internalGetGuestAttributes();
        result.guestAttributes_.makeImmutable();
      }
      if (((from_bitField0_ & 0x00001000) != 0)) {
        result.metadata_ = internalGetMetadata();
        result.metadata_.makeImmutable();
      }
      if (((from_bitField0_ & 0x00002000) != 0)) {
        result.labels_ = internalGetLabels();
        result.labels_.makeImmutable();
      }
      if (((from_bitField0_ & 0x00004000) != 0)) {
        result.nicType_ = nicType_;
      }
      if (((from_bitField0_ & 0x00008000) != 0)) {
        result.reservedIpRange_ = reservedIpRange_;
      }
      if (((from_bitField0_ & 0x00010000) != 0)) {
        result.bootImage_ = bootImageBuilder_ == null ? bootImage_ : bootImageBuilder_.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.VirtualMachineConfig) {
        return mergeFrom((com.google.cloud.notebooks.v1.VirtualMachineConfig) other);
      } else {
        super.mergeFrom(other);
        return this;
      }
    }

    public Builder mergeFrom(com.google.cloud.notebooks.v1.VirtualMachineConfig other) {
      if (other == com.google.cloud.notebooks.v1.VirtualMachineConfig.getDefaultInstance())
        return this;
      if (!other.getZone().isEmpty()) {
        zone_ = other.zone_;
        bitField0_ |= 0x00000001;
        onChanged();
      }
      if (!other.getMachineType().isEmpty()) {
        machineType_ = other.machineType_;
        bitField0_ |= 0x00000002;
        onChanged();
      }
      if (containerImagesBuilder_ == null) {
        if (!other.containerImages_.isEmpty()) {
          if (containerImages_.isEmpty()) {
            containerImages_ = other.containerImages_;
            bitField0_ = (bitField0_ & ~0x00000004);
          } else {
            ensureContainerImagesIsMutable();
            containerImages_.addAll(other.containerImages_);
          }
          onChanged();
        }
      } else {
        if (!other.containerImages_.isEmpty()) {
          if (containerImagesBuilder_.isEmpty()) {
            containerImagesBuilder_.dispose();
            containerImagesBuilder_ = null;
            containerImages_ = other.containerImages_;
            bitField0_ = (bitField0_ & ~0x00000004);
            containerImagesBuilder_ =
                com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders
                    ? getContainerImagesFieldBuilder()
                    : null;
          } else {
            containerImagesBuilder_.addAllMessages(other.containerImages_);
          }
        }
      }
      if (other.hasDataDisk()) {
        mergeDataDisk(other.getDataDisk());
      }
      if (other.hasEncryptionConfig()) {
        mergeEncryptionConfig(other.getEncryptionConfig());
      }
      if (other.hasShieldedInstanceConfig()) {
        mergeShieldedInstanceConfig(other.getShieldedInstanceConfig());
      }
      if (other.hasAcceleratorConfig()) {
        mergeAcceleratorConfig(other.getAcceleratorConfig());
      }
      if (!other.getNetwork().isEmpty()) {
        network_ = other.network_;
        bitField0_ |= 0x00000080;
        onChanged();
      }
      if (!other.getSubnet().isEmpty()) {
        subnet_ = other.subnet_;
        bitField0_ |= 0x00000100;
        onChanged();
      }
      if (other.getInternalIpOnly() != false) {
        setInternalIpOnly(other.getInternalIpOnly());
      }
      if (!other.tags_.isEmpty()) {
        if (tags_.isEmpty()) {
          tags_ = other.tags_;
          bitField0_ = (bitField0_ & ~0x00000400);
        } else {
          ensureTagsIsMutable();
          tags_.addAll(other.tags_);
        }
        onChanged();
      }
      internalGetMutableGuestAttributes().mergeFrom(other.internalGetGuestAttributes());
      bitField0_ |= 0x00000800;
      internalGetMutableMetadata().mergeFrom(other.internalGetMetadata());
      bitField0_ |= 0x00001000;
      internalGetMutableLabels().mergeFrom(other.internalGetLabels());
      bitField0_ |= 0x00002000;
      if (other.nicType_ != 0) {
        setNicTypeValue(other.getNicTypeValue());
      }
      if (!other.getReservedIpRange().isEmpty()) {
        reservedIpRange_ = other.reservedIpRange_;
        bitField0_ |= 0x00008000;
        onChanged();
      }
      if (other.hasBootImage()) {
        mergeBootImage(other.getBootImage());
      }
      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:
              {
                zone_ = input.readStringRequireUtf8();
                bitField0_ |= 0x00000001;
                break;
              } // case 10
            case 18:
              {
                machineType_ = input.readStringRequireUtf8();
                bitField0_ |= 0x00000002;
                break;
              } // case 18
            case 26:
              {
                com.google.cloud.notebooks.v1.ContainerImage m =
                    input.readMessage(
                        com.google.cloud.notebooks.v1.ContainerImage.parser(), extensionRegistry);
                if (containerImagesBuilder_ == null) {
                  ensureContainerImagesIsMutable();
                  containerImages_.add(m);
                } else {
                  containerImagesBuilder_.addMessage(m);
                }
                break;
              } // case 26
            case 34:
              {
                input.readMessage(getDataDiskFieldBuilder().getBuilder(), extensionRegistry);
                bitField0_ |= 0x00000008;
                break;
              } // case 34
            case 42:
              {
                input.readMessage(
                    getEncryptionConfigFieldBuilder().getBuilder(), extensionRegistry);
                bitField0_ |= 0x00000010;
                break;
              } // case 42
            case 50:
              {
                input.readMessage(
                    getShieldedInstanceConfigFieldBuilder().getBuilder(), extensionRegistry);
                bitField0_ |= 0x00000020;
                break;
              } // case 50
            case 58:
              {
                input.readMessage(
                    getAcceleratorConfigFieldBuilder().getBuilder(), extensionRegistry);
                bitField0_ |= 0x00000040;
                break;
              } // case 58
            case 66:
              {
                network_ = input.readStringRequireUtf8();
                bitField0_ |= 0x00000080;
                break;
              } // case 66
            case 74:
              {
                subnet_ = input.readStringRequireUtf8();
                bitField0_ |= 0x00000100;
                break;
              } // case 74
            case 80:
              {
                internalIpOnly_ = input.readBool();
                bitField0_ |= 0x00000200;
                break;
              } // case 80
            case 106:
              {
                java.lang.String s = input.readStringRequireUtf8();
                ensureTagsIsMutable();
                tags_.add(s);
                break;
              } // case 106
            case 114:
              {
                com.google.protobuf.MapEntry<java.lang.String, java.lang.String> guestAttributes__ =
                    input.readMessage(
                        GuestAttributesDefaultEntryHolder.defaultEntry.getParserForType(),
                        extensionRegistry);
                internalGetMutableGuestAttributes()
                    .getMutableMap()
                    .put(guestAttributes__.getKey(), guestAttributes__.getValue());
                bitField0_ |= 0x00000800;
                break;
              } // case 114
            case 122:
              {
                com.google.protobuf.MapEntry<java.lang.String, java.lang.String> metadata__ =
                    input.readMessage(
                        MetadataDefaultEntryHolder.defaultEntry.getParserForType(),
                        extensionRegistry);
                internalGetMutableMetadata()
                    .getMutableMap()
                    .put(metadata__.getKey(), metadata__.getValue());
                bitField0_ |= 0x00001000;
                break;
              } // case 122
            case 130:
              {
                com.google.protobuf.MapEntry<java.lang.String, java.lang.String> labels__ =
                    input.readMessage(
                        LabelsDefaultEntryHolder.defaultEntry.getParserForType(),
                        extensionRegistry);
                internalGetMutableLabels()
                    .getMutableMap()
                    .put(labels__.getKey(), labels__.getValue());
                bitField0_ |= 0x00002000;
                break;
              } // case 130
            case 136:
              {
                nicType_ = input.readEnum();
                bitField0_ |= 0x00004000;
                break;
              } // case 136
            case 146:
              {
                reservedIpRange_ = input.readStringRequireUtf8();
                bitField0_ |= 0x00008000;
                break;
              } // case 146
            case 154:
              {
                input.readMessage(getBootImageFieldBuilder().getBuilder(), extensionRegistry);
                bitField0_ |= 0x00010000;
                break;
              } // case 154
            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 bitField0_;

    private java.lang.Object zone_ = "";
    /**
     *
     *
     * <pre>
     * Output only. The zone where the virtual machine is located.
     * If using regional request, the notebooks service will pick a location
     * in the corresponding runtime region.
     * On a get request, zone will always be present. Example:
     * * `us-central1-b`
     * </pre>
     *
     * <code>string zone = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
     *
     * @return The zone.
     */
    public java.lang.String getZone() {
      java.lang.Object ref = zone_;
      if (!(ref instanceof java.lang.String)) {
        com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
        java.lang.String s = bs.toStringUtf8();
        zone_ = s;
        return s;
      } else {
        return (java.lang.String) ref;
      }
    }
    /**
     *
     *
     * <pre>
     * Output only. The zone where the virtual machine is located.
     * If using regional request, the notebooks service will pick a location
     * in the corresponding runtime region.
     * On a get request, zone will always be present. Example:
     * * `us-central1-b`
     * </pre>
     *
     * <code>string zone = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
     *
     * @return The bytes for zone.
     */
    public com.google.protobuf.ByteString getZoneBytes() {
      java.lang.Object ref = zone_;
      if (ref instanceof String) {
        com.google.protobuf.ByteString b =
            com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
        zone_ = b;
        return b;
      } else {
        return (com.google.protobuf.ByteString) ref;
      }
    }
    /**
     *
     *
     * <pre>
     * Output only. The zone where the virtual machine is located.
     * If using regional request, the notebooks service will pick a location
     * in the corresponding runtime region.
     * On a get request, zone will always be present. Example:
     * * `us-central1-b`
     * </pre>
     *
     * <code>string zone = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
     *
     * @param value The zone to set.
     * @return This builder for chaining.
     */
    public Builder setZone(java.lang.String value) {
      if (value == null) {
        throw new NullPointerException();
      }
      zone_ = value;
      bitField0_ |= 0x00000001;
      onChanged();
      return this;
    }
    /**
     *
     *
     * <pre>
     * Output only. The zone where the virtual machine is located.
     * If using regional request, the notebooks service will pick a location
     * in the corresponding runtime region.
     * On a get request, zone will always be present. Example:
     * * `us-central1-b`
     * </pre>
     *
     * <code>string zone = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
     *
     * @return This builder for chaining.
     */
    public Builder clearZone() {
      zone_ = getDefaultInstance().getZone();
      bitField0_ = (bitField0_ & ~0x00000001);
      onChanged();
      return this;
    }
    /**
     *
     *
     * <pre>
     * Output only. The zone where the virtual machine is located.
     * If using regional request, the notebooks service will pick a location
     * in the corresponding runtime region.
     * On a get request, zone will always be present. Example:
     * * `us-central1-b`
     * </pre>
     *
     * <code>string zone = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
     *
     * @param value The bytes for zone to set.
     * @return This builder for chaining.
     */
    public Builder setZoneBytes(com.google.protobuf.ByteString value) {
      if (value == null) {
        throw new NullPointerException();
      }
      checkByteStringIsUtf8(value);
      zone_ = value;
      bitField0_ |= 0x00000001;
      onChanged();
      return this;
    }

    private java.lang.Object machineType_ = "";
    /**
     *
     *
     * <pre>
     * Required. The Compute Engine machine type used for runtimes.
     * Short name is valid. Examples:
     * * `n1-standard-2`
     * * `e2-standard-8`
     * </pre>
     *
     * <code>string machine_type = 2 [(.google.api.field_behavior) = REQUIRED];</code>
     *
     * @return The machineType.
     */
    public java.lang.String getMachineType() {
      java.lang.Object ref = machineType_;
      if (!(ref instanceof java.lang.String)) {
        com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
        java.lang.String s = bs.toStringUtf8();
        machineType_ = s;
        return s;
      } else {
        return (java.lang.String) ref;
      }
    }
    /**
     *
     *
     * <pre>
     * Required. The Compute Engine machine type used for runtimes.
     * Short name is valid. Examples:
     * * `n1-standard-2`
     * * `e2-standard-8`
     * </pre>
     *
     * <code>string machine_type = 2 [(.google.api.field_behavior) = REQUIRED];</code>
     *
     * @return The bytes for machineType.
     */
    public com.google.protobuf.ByteString getMachineTypeBytes() {
      java.lang.Object ref = machineType_;
      if (ref instanceof String) {
        com.google.protobuf.ByteString b =
            com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
        machineType_ = b;
        return b;
      } else {
        return (com.google.protobuf.ByteString) ref;
      }
    }
    /**
     *
     *
     * <pre>
     * Required. The Compute Engine machine type used for runtimes.
     * Short name is valid. Examples:
     * * `n1-standard-2`
     * * `e2-standard-8`
     * </pre>
     *
     * <code>string machine_type = 2 [(.google.api.field_behavior) = REQUIRED];</code>
     *
     * @param value The machineType to set.
     * @return This builder for chaining.
     */
    public Builder setMachineType(java.lang.String value) {
      if (value == null) {
        throw new NullPointerException();
      }
      machineType_ = value;
      bitField0_ |= 0x00000002;
      onChanged();
      return this;
    }
    /**
     *
     *
     * <pre>
     * Required. The Compute Engine machine type used for runtimes.
     * Short name is valid. Examples:
     * * `n1-standard-2`
     * * `e2-standard-8`
     * </pre>
     *
     * <code>string machine_type = 2 [(.google.api.field_behavior) = REQUIRED];</code>
     *
     * @return This builder for chaining.
     */
    public Builder clearMachineType() {
      machineType_ = getDefaultInstance().getMachineType();
      bitField0_ = (bitField0_ & ~0x00000002);
      onChanged();
      return this;
    }
    /**
     *
     *
     * <pre>
     * Required. The Compute Engine machine type used for runtimes.
     * Short name is valid. Examples:
     * * `n1-standard-2`
     * * `e2-standard-8`
     * </pre>
     *
     * <code>string machine_type = 2 [(.google.api.field_behavior) = REQUIRED];</code>
     *
     * @param value The bytes for machineType to set.
     * @return This builder for chaining.
     */
    public Builder setMachineTypeBytes(com.google.protobuf.ByteString value) {
      if (value == null) {
        throw new NullPointerException();
      }
      checkByteStringIsUtf8(value);
      machineType_ = value;
      bitField0_ |= 0x00000002;
      onChanged();
      return this;
    }

    private java.util.List<com.google.cloud.notebooks.v1.ContainerImage> containerImages_ =
        java.util.Collections.emptyList();

    private void ensureContainerImagesIsMutable() {
      if (!((bitField0_ & 0x00000004) != 0)) {
        containerImages_ =
            new java.util.ArrayList<com.google.cloud.notebooks.v1.ContainerImage>(containerImages_);
        bitField0_ |= 0x00000004;
      }
    }

    private com.google.protobuf.RepeatedFieldBuilderV3<
            com.google.cloud.notebooks.v1.ContainerImage,
            com.google.cloud.notebooks.v1.ContainerImage.Builder,
            com.google.cloud.notebooks.v1.ContainerImageOrBuilder>
        containerImagesBuilder_;

    /**
     *
     *
     * <pre>
     * Optional. Use a list of container images to use as Kernels in the notebook instance.
     * </pre>
     *
     * <code>
     * repeated .google.cloud.notebooks.v1.ContainerImage container_images = 3 [(.google.api.field_behavior) = OPTIONAL];
     * </code>
     */
    public java.util.List<com.google.cloud.notebooks.v1.ContainerImage> getContainerImagesList() {
      if (containerImagesBuilder_ == null) {
        return java.util.Collections.unmodifiableList(containerImages_);
      } else {
        return containerImagesBuilder_.getMessageList();
      }
    }
    /**
     *
     *
     * <pre>
     * Optional. Use a list of container images to use as Kernels in the notebook instance.
     * </pre>
     *
     * <code>
     * repeated .google.cloud.notebooks.v1.ContainerImage container_images = 3 [(.google.api.field_behavior) = OPTIONAL];
     * </code>
     */
    public int getContainerImagesCount() {
      if (containerImagesBuilder_ == null) {
        return containerImages_.size();
      } else {
        return containerImagesBuilder_.getCount();
      }
    }
    /**
     *
     *
     * <pre>
     * Optional. Use a list of container images to use as Kernels in the notebook instance.
     * </pre>
     *
     * <code>
     * repeated .google.cloud.notebooks.v1.ContainerImage container_images = 3 [(.google.api.field_behavior) = OPTIONAL];
     * </code>
     */
    public com.google.cloud.notebooks.v1.ContainerImage getContainerImages(int index) {
      if (containerImagesBuilder_ == null) {
        return containerImages_.get(index);
      } else {
        return containerImagesBuilder_.getMessage(index);
      }
    }
    /**
     *
     *
     * <pre>
     * Optional. Use a list of container images to use as Kernels in the notebook instance.
     * </pre>
     *
     * <code>
     * repeated .google.cloud.notebooks.v1.ContainerImage container_images = 3 [(.google.api.field_behavior) = OPTIONAL];
     * </code>
     */
    public Builder setContainerImages(
        int index, com.google.cloud.notebooks.v1.ContainerImage value) {
      if (containerImagesBuilder_ == null) {
        if (value == null) {
          throw new NullPointerException();
        }
        ensureContainerImagesIsMutable();
        containerImages_.set(index, value);
        onChanged();
      } else {
        containerImagesBuilder_.setMessage(index, value);
      }
      return this;
    }
    /**
     *
     *
     * <pre>
     * Optional. Use a list of container images to use as Kernels in the notebook instance.
     * </pre>
     *
     * <code>
     * repeated .google.cloud.notebooks.v1.ContainerImage container_images = 3 [(.google.api.field_behavior) = OPTIONAL];
     * </code>
     */
    public Builder setContainerImages(
        int index, com.google.cloud.notebooks.v1.ContainerImage.Builder builderForValue) {
      if (containerImagesBuilder_ == null) {
        ensureContainerImagesIsMutable();
        containerImages_.set(index, builderForValue.build());
        onChanged();
      } else {
        containerImagesBuilder_.setMessage(index, builderForValue.build());
      }
      return this;
    }
    /**
     *
     *
     * <pre>
     * Optional. Use a list of container images to use as Kernels in the notebook instance.
     * </pre>
     *
     * <code>
     * repeated .google.cloud.notebooks.v1.ContainerImage container_images = 3 [(.google.api.field_behavior) = OPTIONAL];
     * </code>
     */
    public Builder addContainerImages(com.google.cloud.notebooks.v1.ContainerImage value) {
      if (containerImagesBuilder_ == null) {
        if (value == null) {
          throw new NullPointerException();
        }
        ensureContainerImagesIsMutable();
        containerImages_.add(value);
        onChanged();
      } else {
        containerImagesBuilder_.addMessage(value);
      }
      return this;
    }
    /**
     *
     *
     * <pre>
     * Optional. Use a list of container images to use as Kernels in the notebook instance.
     * </pre>
     *
     * <code>
     * repeated .google.cloud.notebooks.v1.ContainerImage container_images = 3 [(.google.api.field_behavior) = OPTIONAL];
     * </code>
     */
    public Builder addContainerImages(
        int index, com.google.cloud.notebooks.v1.ContainerImage value) {
      if (containerImagesBuilder_ == null) {
        if (value == null) {
          throw new NullPointerException();
        }
        ensureContainerImagesIsMutable();
        containerImages_.add(index, value);
        onChanged();
      } else {
        containerImagesBuilder_.addMessage(index, value);
      }
      return this;
    }
    /**
     *
     *
     * <pre>
     * Optional. Use a list of container images to use as Kernels in the notebook instance.
     * </pre>
     *
     * <code>
     * repeated .google.cloud.notebooks.v1.ContainerImage container_images = 3 [(.google.api.field_behavior) = OPTIONAL];
     * </code>
     */
    public Builder addContainerImages(
        com.google.cloud.notebooks.v1.ContainerImage.Builder builderForValue) {
      if (containerImagesBuilder_ == null) {
        ensureContainerImagesIsMutable();
        containerImages_.add(builderForValue.build());
        onChanged();
      } else {
        containerImagesBuilder_.addMessage(builderForValue.build());
      }
      return this;
    }
    /**
     *
     *
     * <pre>
     * Optional. Use a list of container images to use as Kernels in the notebook instance.
     * </pre>
     *
     * <code>
     * repeated .google.cloud.notebooks.v1.ContainerImage container_images = 3 [(.google.api.field_behavior) = OPTIONAL];
     * </code>
     */
    public Builder addContainerImages(
        int index, com.google.cloud.notebooks.v1.ContainerImage.Builder builderForValue) {
      if (containerImagesBuilder_ == null) {
        ensureContainerImagesIsMutable();
        containerImages_.add(index, builderForValue.build());
        onChanged();
      } else {
        containerImagesBuilder_.addMessage(index, builderForValue.build());
      }
      return this;
    }
    /**
     *
     *
     * <pre>
     * Optional. Use a list of container images to use as Kernels in the notebook instance.
     * </pre>
     *
     * <code>
     * repeated .google.cloud.notebooks.v1.ContainerImage container_images = 3 [(.google.api.field_behavior) = OPTIONAL];
     * </code>
     */
    public Builder addAllContainerImages(
        java.lang.Iterable<? extends com.google.cloud.notebooks.v1.ContainerImage> values) {
      if (containerImagesBuilder_ == null) {
        ensureContainerImagesIsMutable();
        com.google.protobuf.AbstractMessageLite.Builder.addAll(values, containerImages_);
        onChanged();
      } else {
        containerImagesBuilder_.addAllMessages(values);
      }
      return this;
    }
    /**
     *
     *
     * <pre>
     * Optional. Use a list of container images to use as Kernels in the notebook instance.
     * </pre>
     *
     * <code>
     * repeated .google.cloud.notebooks.v1.ContainerImage container_images = 3 [(.google.api.field_behavior) = OPTIONAL];
     * </code>
     */
    public Builder clearContainerImages() {
      if (containerImagesBuilder_ == null) {
        containerImages_ = java.util.Collections.emptyList();
        bitField0_ = (bitField0_ & ~0x00000004);
        onChanged();
      } else {
        containerImagesBuilder_.clear();
      }
      return this;
    }
    /**
     *
     *
     * <pre>
     * Optional. Use a list of container images to use as Kernels in the notebook instance.
     * </pre>
     *
     * <code>
     * repeated .google.cloud.notebooks.v1.ContainerImage container_images = 3 [(.google.api.field_behavior) = OPTIONAL];
     * </code>
     */
    public Builder removeContainerImages(int index) {
      if (containerImagesBuilder_ == null) {
        ensureContainerImagesIsMutable();
        containerImages_.remove(index);
        onChanged();
      } else {
        containerImagesBuilder_.remove(index);
      }
      return this;
    }
    /**
     *
     *
     * <pre>
     * Optional. Use a list of container images to use as Kernels in the notebook instance.
     * </pre>
     *
     * <code>
     * repeated .google.cloud.notebooks.v1.ContainerImage container_images = 3 [(.google.api.field_behavior) = OPTIONAL];
     * </code>
     */
    public com.google.cloud.notebooks.v1.ContainerImage.Builder getContainerImagesBuilder(
        int index) {
      return getContainerImagesFieldBuilder().getBuilder(index);
    }
    /**
     *
     *
     * <pre>
     * Optional. Use a list of container images to use as Kernels in the notebook instance.
     * </pre>
     *
     * <code>
     * repeated .google.cloud.notebooks.v1.ContainerImage container_images = 3 [(.google.api.field_behavior) = OPTIONAL];
     * </code>
     */
    public com.google.cloud.notebooks.v1.ContainerImageOrBuilder getContainerImagesOrBuilder(
        int index) {
      if (containerImagesBuilder_ == null) {
        return containerImages_.get(index);
      } else {
        return containerImagesBuilder_.getMessageOrBuilder(index);
      }
    }
    /**
     *
     *
     * <pre>
     * Optional. Use a list of container images to use as Kernels in the notebook instance.
     * </pre>
     *
     * <code>
     * repeated .google.cloud.notebooks.v1.ContainerImage container_images = 3 [(.google.api.field_behavior) = OPTIONAL];
     * </code>
     */
    public java.util.List<? extends com.google.cloud.notebooks.v1.ContainerImageOrBuilder>
        getContainerImagesOrBuilderList() {
      if (containerImagesBuilder_ != null) {
        return containerImagesBuilder_.getMessageOrBuilderList();
      } else {
        return java.util.Collections.unmodifiableList(containerImages_);
      }
    }
    /**
     *
     *
     * <pre>
     * Optional. Use a list of container images to use as Kernels in the notebook instance.
     * </pre>
     *
     * <code>
     * repeated .google.cloud.notebooks.v1.ContainerImage container_images = 3 [(.google.api.field_behavior) = OPTIONAL];
     * </code>
     */
    public com.google.cloud.notebooks.v1.ContainerImage.Builder addContainerImagesBuilder() {
      return getContainerImagesFieldBuilder()
          .addBuilder(com.google.cloud.notebooks.v1.ContainerImage.getDefaultInstance());
    }
    /**
     *
     *
     * <pre>
     * Optional. Use a list of container images to use as Kernels in the notebook instance.
     * </pre>
     *
     * <code>
     * repeated .google.cloud.notebooks.v1.ContainerImage container_images = 3 [(.google.api.field_behavior) = OPTIONAL];
     * </code>
     */
    public com.google.cloud.notebooks.v1.ContainerImage.Builder addContainerImagesBuilder(
        int index) {
      return getContainerImagesFieldBuilder()
          .addBuilder(index, com.google.cloud.notebooks.v1.ContainerImage.getDefaultInstance());
    }
    /**
     *
     *
     * <pre>
     * Optional. Use a list of container images to use as Kernels in the notebook instance.
     * </pre>
     *
     * <code>
     * repeated .google.cloud.notebooks.v1.ContainerImage container_images = 3 [(.google.api.field_behavior) = OPTIONAL];
     * </code>
     */
    public java.util.List<com.google.cloud.notebooks.v1.ContainerImage.Builder>
        getContainerImagesBuilderList() {
      return getContainerImagesFieldBuilder().getBuilderList();
    }

    private com.google.protobuf.RepeatedFieldBuilderV3<
            com.google.cloud.notebooks.v1.ContainerImage,
            com.google.cloud.notebooks.v1.ContainerImage.Builder,
            com.google.cloud.notebooks.v1.ContainerImageOrBuilder>
        getContainerImagesFieldBuilder() {
      if (containerImagesBuilder_ == null) {
        containerImagesBuilder_ =
            new com.google.protobuf.RepeatedFieldBuilderV3<
                com.google.cloud.notebooks.v1.ContainerImage,
                com.google.cloud.notebooks.v1.ContainerImage.Builder,
                com.google.cloud.notebooks.v1.ContainerImageOrBuilder>(
                containerImages_,
                ((bitField0_ & 0x00000004) != 0),
                getParentForChildren(),
                isClean());
        containerImages_ = null;
      }
      return containerImagesBuilder_;
    }

    private com.google.cloud.notebooks.v1.LocalDisk dataDisk_;
    private com.google.protobuf.SingleFieldBuilderV3<
            com.google.cloud.notebooks.v1.LocalDisk,
            com.google.cloud.notebooks.v1.LocalDisk.Builder,
            com.google.cloud.notebooks.v1.LocalDiskOrBuilder>
        dataDiskBuilder_;
    /**
     *
     *
     * <pre>
     * Required. Data disk option configuration settings.
     * </pre>
     *
     * <code>
     * .google.cloud.notebooks.v1.LocalDisk data_disk = 4 [(.google.api.field_behavior) = REQUIRED];
     * </code>
     *
     * @return Whether the dataDisk field is set.
     */
    public boolean hasDataDisk() {
      return ((bitField0_ & 0x00000008) != 0);
    }
    /**
     *
     *
     * <pre>
     * Required. Data disk option configuration settings.
     * </pre>
     *
     * <code>
     * .google.cloud.notebooks.v1.LocalDisk data_disk = 4 [(.google.api.field_behavior) = REQUIRED];
     * </code>
     *
     * @return The dataDisk.
     */
    public com.google.cloud.notebooks.v1.LocalDisk getDataDisk() {
      if (dataDiskBuilder_ == null) {
        return dataDisk_ == null
            ? com.google.cloud.notebooks.v1.LocalDisk.getDefaultInstance()
            : dataDisk_;
      } else {
        return dataDiskBuilder_.getMessage();
      }
    }
    /**
     *
     *
     * <pre>
     * Required. Data disk option configuration settings.
     * </pre>
     *
     * <code>
     * .google.cloud.notebooks.v1.LocalDisk data_disk = 4 [(.google.api.field_behavior) = REQUIRED];
     * </code>
     */
    public Builder setDataDisk(com.google.cloud.notebooks.v1.LocalDisk value) {
      if (dataDiskBuilder_ == null) {
        if (value == null) {
          throw new NullPointerException();
        }
        dataDisk_ = value;
      } else {
        dataDiskBuilder_.setMessage(value);
      }
      bitField0_ |= 0x00000008;
      onChanged();
      return this;
    }
    /**
     *
     *
     * <pre>
     * Required. Data disk option configuration settings.
     * </pre>
     *
     * <code>
     * .google.cloud.notebooks.v1.LocalDisk data_disk = 4 [(.google.api.field_behavior) = REQUIRED];
     * </code>
     */
    public Builder setDataDisk(com.google.cloud.notebooks.v1.LocalDisk.Builder builderForValue) {
      if (dataDiskBuilder_ == null) {
        dataDisk_ = builderForValue.build();
      } else {
        dataDiskBuilder_.setMessage(builderForValue.build());
      }
      bitField0_ |= 0x00000008;
      onChanged();
      return this;
    }
    /**
     *
     *
     * <pre>
     * Required. Data disk option configuration settings.
     * </pre>
     *
     * <code>
     * .google.cloud.notebooks.v1.LocalDisk data_disk = 4 [(.google.api.field_behavior) = REQUIRED];
     * </code>
     */
    public Builder mergeDataDisk(com.google.cloud.notebooks.v1.LocalDisk value) {
      if (dataDiskBuilder_ == null) {
        if (((bitField0_ & 0x00000008) != 0)
            && dataDisk_ != null
            && dataDisk_ != com.google.cloud.notebooks.v1.LocalDisk.getDefaultInstance()) {
          getDataDiskBuilder().mergeFrom(value);
        } else {
          dataDisk_ = value;
        }
      } else {
        dataDiskBuilder_.mergeFrom(value);
      }
      bitField0_ |= 0x00000008;
      onChanged();
      return this;
    }
    /**
     *
     *
     * <pre>
     * Required. Data disk option configuration settings.
     * </pre>
     *
     * <code>
     * .google.cloud.notebooks.v1.LocalDisk data_disk = 4 [(.google.api.field_behavior) = REQUIRED];
     * </code>
     */
    public Builder clearDataDisk() {
      bitField0_ = (bitField0_ & ~0x00000008);
      dataDisk_ = null;
      if (dataDiskBuilder_ != null) {
        dataDiskBuilder_.dispose();
        dataDiskBuilder_ = null;
      }
      onChanged();
      return this;
    }
    /**
     *
     *
     * <pre>
     * Required. Data disk option configuration settings.
     * </pre>
     *
     * <code>
     * .google.cloud.notebooks.v1.LocalDisk data_disk = 4 [(.google.api.field_behavior) = REQUIRED];
     * </code>
     */
    public com.google.cloud.notebooks.v1.LocalDisk.Builder getDataDiskBuilder() {
      bitField0_ |= 0x00000008;
      onChanged();
      return getDataDiskFieldBuilder().getBuilder();
    }
    /**
     *
     *
     * <pre>
     * Required. Data disk option configuration settings.
     * </pre>
     *
     * <code>
     * .google.cloud.notebooks.v1.LocalDisk data_disk = 4 [(.google.api.field_behavior) = REQUIRED];
     * </code>
     */
    public com.google.cloud.notebooks.v1.LocalDiskOrBuilder getDataDiskOrBuilder() {
      if (dataDiskBuilder_ != null) {
        return dataDiskBuilder_.getMessageOrBuilder();
      } else {
        return dataDisk_ == null
            ? com.google.cloud.notebooks.v1.LocalDisk.getDefaultInstance()
            : dataDisk_;
      }
    }
    /**
     *
     *
     * <pre>
     * Required. Data disk option configuration settings.
     * </pre>
     *
     * <code>
     * .google.cloud.notebooks.v1.LocalDisk data_disk = 4 [(.google.api.field_behavior) = REQUIRED];
     * </code>
     */
    private com.google.protobuf.SingleFieldBuilderV3<
            com.google.cloud.notebooks.v1.LocalDisk,
            com.google.cloud.notebooks.v1.LocalDisk.Builder,
            com.google.cloud.notebooks.v1.LocalDiskOrBuilder>
        getDataDiskFieldBuilder() {
      if (dataDiskBuilder_ == null) {
        dataDiskBuilder_ =
            new com.google.protobuf.SingleFieldBuilderV3<
                com.google.cloud.notebooks.v1.LocalDisk,
                com.google.cloud.notebooks.v1.LocalDisk.Builder,
                com.google.cloud.notebooks.v1.LocalDiskOrBuilder>(
                getDataDisk(), getParentForChildren(), isClean());
        dataDisk_ = null;
      }
      return dataDiskBuilder_;
    }

    private com.google.cloud.notebooks.v1.EncryptionConfig encryptionConfig_;
    private com.google.protobuf.SingleFieldBuilderV3<
            com.google.cloud.notebooks.v1.EncryptionConfig,
            com.google.cloud.notebooks.v1.EncryptionConfig.Builder,
            com.google.cloud.notebooks.v1.EncryptionConfigOrBuilder>
        encryptionConfigBuilder_;
    /**
     *
     *
     * <pre>
     * Optional. Encryption settings for virtual machine data disk.
     * </pre>
     *
     * <code>
     * .google.cloud.notebooks.v1.EncryptionConfig encryption_config = 5 [(.google.api.field_behavior) = OPTIONAL];
     * </code>
     *
     * @return Whether the encryptionConfig field is set.
     */
    public boolean hasEncryptionConfig() {
      return ((bitField0_ & 0x00000010) != 0);
    }
    /**
     *
     *
     * <pre>
     * Optional. Encryption settings for virtual machine data disk.
     * </pre>
     *
     * <code>
     * .google.cloud.notebooks.v1.EncryptionConfig encryption_config = 5 [(.google.api.field_behavior) = OPTIONAL];
     * </code>
     *
     * @return The encryptionConfig.
     */
    public com.google.cloud.notebooks.v1.EncryptionConfig getEncryptionConfig() {
      if (encryptionConfigBuilder_ == null) {
        return encryptionConfig_ == null
            ? com.google.cloud.notebooks.v1.EncryptionConfig.getDefaultInstance()
            : encryptionConfig_;
      } else {
        return encryptionConfigBuilder_.getMessage();
      }
    }
    /**
     *
     *
     * <pre>
     * Optional. Encryption settings for virtual machine data disk.
     * </pre>
     *
     * <code>
     * .google.cloud.notebooks.v1.EncryptionConfig encryption_config = 5 [(.google.api.field_behavior) = OPTIONAL];
     * </code>
     */
    public Builder setEncryptionConfig(com.google.cloud.notebooks.v1.EncryptionConfig value) {
      if (encryptionConfigBuilder_ == null) {
        if (value == null) {
          throw new NullPointerException();
        }
        encryptionConfig_ = value;
      } else {
        encryptionConfigBuilder_.setMessage(value);
      }
      bitField0_ |= 0x00000010;
      onChanged();
      return this;
    }
    /**
     *
     *
     * <pre>
     * Optional. Encryption settings for virtual machine data disk.
     * </pre>
     *
     * <code>
     * .google.cloud.notebooks.v1.EncryptionConfig encryption_config = 5 [(.google.api.field_behavior) = OPTIONAL];
     * </code>
     */
    public Builder setEncryptionConfig(
        com.google.cloud.notebooks.v1.EncryptionConfig.Builder builderForValue) {
      if (encryptionConfigBuilder_ == null) {
        encryptionConfig_ = builderForValue.build();
      } else {
        encryptionConfigBuilder_.setMessage(builderForValue.build());
      }
      bitField0_ |= 0x00000010;
      onChanged();
      return this;
    }
    /**
     *
     *
     * <pre>
     * Optional. Encryption settings for virtual machine data disk.
     * </pre>
     *
     * <code>
     * .google.cloud.notebooks.v1.EncryptionConfig encryption_config = 5 [(.google.api.field_behavior) = OPTIONAL];
     * </code>
     */
    public Builder mergeEncryptionConfig(com.google.cloud.notebooks.v1.EncryptionConfig value) {
      if (encryptionConfigBuilder_ == null) {
        if (((bitField0_ & 0x00000010) != 0)
            && encryptionConfig_ != null
            && encryptionConfig_
                != com.google.cloud.notebooks.v1.EncryptionConfig.getDefaultInstance()) {
          getEncryptionConfigBuilder().mergeFrom(value);
        } else {
          encryptionConfig_ = value;
        }
      } else {
        encryptionConfigBuilder_.mergeFrom(value);
      }
      bitField0_ |= 0x00000010;
      onChanged();
      return this;
    }
    /**
     *
     *
     * <pre>
     * Optional. Encryption settings for virtual machine data disk.
     * </pre>
     *
     * <code>
     * .google.cloud.notebooks.v1.EncryptionConfig encryption_config = 5 [(.google.api.field_behavior) = OPTIONAL];
     * </code>
     */
    public Builder clearEncryptionConfig() {
      bitField0_ = (bitField0_ & ~0x00000010);
      encryptionConfig_ = null;
      if (encryptionConfigBuilder_ != null) {
        encryptionConfigBuilder_.dispose();
        encryptionConfigBuilder_ = null;
      }
      onChanged();
      return this;
    }
    /**
     *
     *
     * <pre>
     * Optional. Encryption settings for virtual machine data disk.
     * </pre>
     *
     * <code>
     * .google.cloud.notebooks.v1.EncryptionConfig encryption_config = 5 [(.google.api.field_behavior) = OPTIONAL];
     * </code>
     */
    public com.google.cloud.notebooks.v1.EncryptionConfig.Builder getEncryptionConfigBuilder() {
      bitField0_ |= 0x00000010;
      onChanged();
      return getEncryptionConfigFieldBuilder().getBuilder();
    }
    /**
     *
     *
     * <pre>
     * Optional. Encryption settings for virtual machine data disk.
     * </pre>
     *
     * <code>
     * .google.cloud.notebooks.v1.EncryptionConfig encryption_config = 5 [(.google.api.field_behavior) = OPTIONAL];
     * </code>
     */
    public com.google.cloud.notebooks.v1.EncryptionConfigOrBuilder getEncryptionConfigOrBuilder() {
      if (encryptionConfigBuilder_ != null) {
        return encryptionConfigBuilder_.getMessageOrBuilder();
      } else {
        return encryptionConfig_ == null
            ? com.google.cloud.notebooks.v1.EncryptionConfig.getDefaultInstance()
            : encryptionConfig_;
      }
    }
    /**
     *
     *
     * <pre>
     * Optional. Encryption settings for virtual machine data disk.
     * </pre>
     *
     * <code>
     * .google.cloud.notebooks.v1.EncryptionConfig encryption_config = 5 [(.google.api.field_behavior) = OPTIONAL];
     * </code>
     */
    private com.google.protobuf.SingleFieldBuilderV3<
            com.google.cloud.notebooks.v1.EncryptionConfig,
            com.google.cloud.notebooks.v1.EncryptionConfig.Builder,
            com.google.cloud.notebooks.v1.EncryptionConfigOrBuilder>
        getEncryptionConfigFieldBuilder() {
      if (encryptionConfigBuilder_ == null) {
        encryptionConfigBuilder_ =
            new com.google.protobuf.SingleFieldBuilderV3<
                com.google.cloud.notebooks.v1.EncryptionConfig,
                com.google.cloud.notebooks.v1.EncryptionConfig.Builder,
                com.google.cloud.notebooks.v1.EncryptionConfigOrBuilder>(
                getEncryptionConfig(), getParentForChildren(), isClean());
        encryptionConfig_ = null;
      }
      return encryptionConfigBuilder_;
    }

    private com.google.cloud.notebooks.v1.RuntimeShieldedInstanceConfig shieldedInstanceConfig_;
    private com.google.protobuf.SingleFieldBuilderV3<
            com.google.cloud.notebooks.v1.RuntimeShieldedInstanceConfig,
            com.google.cloud.notebooks.v1.RuntimeShieldedInstanceConfig.Builder,
            com.google.cloud.notebooks.v1.RuntimeShieldedInstanceConfigOrBuilder>
        shieldedInstanceConfigBuilder_;
    /**
     *
     *
     * <pre>
     * Optional. Shielded VM Instance configuration settings.
     * </pre>
     *
     * <code>
     * .google.cloud.notebooks.v1.RuntimeShieldedInstanceConfig shielded_instance_config = 6 [(.google.api.field_behavior) = OPTIONAL];
     * </code>
     *
     * @return Whether the shieldedInstanceConfig field is set.
     */
    public boolean hasShieldedInstanceConfig() {
      return ((bitField0_ & 0x00000020) != 0);
    }
    /**
     *
     *
     * <pre>
     * Optional. Shielded VM Instance configuration settings.
     * </pre>
     *
     * <code>
     * .google.cloud.notebooks.v1.RuntimeShieldedInstanceConfig shielded_instance_config = 6 [(.google.api.field_behavior) = OPTIONAL];
     * </code>
     *
     * @return The shieldedInstanceConfig.
     */
    public com.google.cloud.notebooks.v1.RuntimeShieldedInstanceConfig getShieldedInstanceConfig() {
      if (shieldedInstanceConfigBuilder_ == null) {
        return shieldedInstanceConfig_ == null
            ? com.google.cloud.notebooks.v1.RuntimeShieldedInstanceConfig.getDefaultInstance()
            : shieldedInstanceConfig_;
      } else {
        return shieldedInstanceConfigBuilder_.getMessage();
      }
    }
    /**
     *
     *
     * <pre>
     * Optional. Shielded VM Instance configuration settings.
     * </pre>
     *
     * <code>
     * .google.cloud.notebooks.v1.RuntimeShieldedInstanceConfig shielded_instance_config = 6 [(.google.api.field_behavior) = OPTIONAL];
     * </code>
     */
    public Builder setShieldedInstanceConfig(
        com.google.cloud.notebooks.v1.RuntimeShieldedInstanceConfig value) {
      if (shieldedInstanceConfigBuilder_ == null) {
        if (value == null) {
          throw new NullPointerException();
        }
        shieldedInstanceConfig_ = value;
      } else {
        shieldedInstanceConfigBuilder_.setMessage(value);
      }
      bitField0_ |= 0x00000020;
      onChanged();
      return this;
    }
    /**
     *
     *
     * <pre>
     * Optional. Shielded VM Instance configuration settings.
     * </pre>
     *
     * <code>
     * .google.cloud.notebooks.v1.RuntimeShieldedInstanceConfig shielded_instance_config = 6 [(.google.api.field_behavior) = OPTIONAL];
     * </code>
     */
    public Builder setShieldedInstanceConfig(
        com.google.cloud.notebooks.v1.RuntimeShieldedInstanceConfig.Builder builderForValue) {
      if (shieldedInstanceConfigBuilder_ == null) {
        shieldedInstanceConfig_ = builderForValue.build();
      } else {
        shieldedInstanceConfigBuilder_.setMessage(builderForValue.build());
      }
      bitField0_ |= 0x00000020;
      onChanged();
      return this;
    }
    /**
     *
     *
     * <pre>
     * Optional. Shielded VM Instance configuration settings.
     * </pre>
     *
     * <code>
     * .google.cloud.notebooks.v1.RuntimeShieldedInstanceConfig shielded_instance_config = 6 [(.google.api.field_behavior) = OPTIONAL];
     * </code>
     */
    public Builder mergeShieldedInstanceConfig(
        com.google.cloud.notebooks.v1.RuntimeShieldedInstanceConfig value) {
      if (shieldedInstanceConfigBuilder_ == null) {
        if (((bitField0_ & 0x00000020) != 0)
            && shieldedInstanceConfig_ != null
            && shieldedInstanceConfig_
                != com.google.cloud.notebooks.v1.RuntimeShieldedInstanceConfig
                    .getDefaultInstance()) {
          getShieldedInstanceConfigBuilder().mergeFrom(value);
        } else {
          shieldedInstanceConfig_ = value;
        }
      } else {
        shieldedInstanceConfigBuilder_.mergeFrom(value);
      }
      bitField0_ |= 0x00000020;
      onChanged();
      return this;
    }
    /**
     *
     *
     * <pre>
     * Optional. Shielded VM Instance configuration settings.
     * </pre>
     *
     * <code>
     * .google.cloud.notebooks.v1.RuntimeShieldedInstanceConfig shielded_instance_config = 6 [(.google.api.field_behavior) = OPTIONAL];
     * </code>
     */
    public Builder clearShieldedInstanceConfig() {
      bitField0_ = (bitField0_ & ~0x00000020);
      shieldedInstanceConfig_ = null;
      if (shieldedInstanceConfigBuilder_ != null) {
        shieldedInstanceConfigBuilder_.dispose();
        shieldedInstanceConfigBuilder_ = null;
      }
      onChanged();
      return this;
    }
    /**
     *
     *
     * <pre>
     * Optional. Shielded VM Instance configuration settings.
     * </pre>
     *
     * <code>
     * .google.cloud.notebooks.v1.RuntimeShieldedInstanceConfig shielded_instance_config = 6 [(.google.api.field_behavior) = OPTIONAL];
     * </code>
     */
    public com.google.cloud.notebooks.v1.RuntimeShieldedInstanceConfig.Builder
        getShieldedInstanceConfigBuilder() {
      bitField0_ |= 0x00000020;
      onChanged();
      return getShieldedInstanceConfigFieldBuilder().getBuilder();
    }
    /**
     *
     *
     * <pre>
     * Optional. Shielded VM Instance configuration settings.
     * </pre>
     *
     * <code>
     * .google.cloud.notebooks.v1.RuntimeShieldedInstanceConfig shielded_instance_config = 6 [(.google.api.field_behavior) = OPTIONAL];
     * </code>
     */
    public com.google.cloud.notebooks.v1.RuntimeShieldedInstanceConfigOrBuilder
        getShieldedInstanceConfigOrBuilder() {
      if (shieldedInstanceConfigBuilder_ != null) {
        return shieldedInstanceConfigBuilder_.getMessageOrBuilder();
      } else {
        return shieldedInstanceConfig_ == null
            ? com.google.cloud.notebooks.v1.RuntimeShieldedInstanceConfig.getDefaultInstance()
            : shieldedInstanceConfig_;
      }
    }
    /**
     *
     *
     * <pre>
     * Optional. Shielded VM Instance configuration settings.
     * </pre>
     *
     * <code>
     * .google.cloud.notebooks.v1.RuntimeShieldedInstanceConfig shielded_instance_config = 6 [(.google.api.field_behavior) = OPTIONAL];
     * </code>
     */
    private com.google.protobuf.SingleFieldBuilderV3<
            com.google.cloud.notebooks.v1.RuntimeShieldedInstanceConfig,
            com.google.cloud.notebooks.v1.RuntimeShieldedInstanceConfig.Builder,
            com.google.cloud.notebooks.v1.RuntimeShieldedInstanceConfigOrBuilder>
        getShieldedInstanceConfigFieldBuilder() {
      if (shieldedInstanceConfigBuilder_ == null) {
        shieldedInstanceConfigBuilder_ =
            new com.google.protobuf.SingleFieldBuilderV3<
                com.google.cloud.notebooks.v1.RuntimeShieldedInstanceConfig,
                com.google.cloud.notebooks.v1.RuntimeShieldedInstanceConfig.Builder,
                com.google.cloud.notebooks.v1.RuntimeShieldedInstanceConfigOrBuilder>(
                getShieldedInstanceConfig(), getParentForChildren(), isClean());
        shieldedInstanceConfig_ = null;
      }
      return shieldedInstanceConfigBuilder_;
    }

    private com.google.cloud.notebooks.v1.RuntimeAcceleratorConfig acceleratorConfig_;
    private com.google.protobuf.SingleFieldBuilderV3<
            com.google.cloud.notebooks.v1.RuntimeAcceleratorConfig,
            com.google.cloud.notebooks.v1.RuntimeAcceleratorConfig.Builder,
            com.google.cloud.notebooks.v1.RuntimeAcceleratorConfigOrBuilder>
        acceleratorConfigBuilder_;
    /**
     *
     *
     * <pre>
     * Optional. The Compute Engine accelerator configuration for this runtime.
     * </pre>
     *
     * <code>
     * .google.cloud.notebooks.v1.RuntimeAcceleratorConfig accelerator_config = 7 [(.google.api.field_behavior) = OPTIONAL];
     * </code>
     *
     * @return Whether the acceleratorConfig field is set.
     */
    public boolean hasAcceleratorConfig() {
      return ((bitField0_ & 0x00000040) != 0);
    }
    /**
     *
     *
     * <pre>
     * Optional. The Compute Engine accelerator configuration for this runtime.
     * </pre>
     *
     * <code>
     * .google.cloud.notebooks.v1.RuntimeAcceleratorConfig accelerator_config = 7 [(.google.api.field_behavior) = OPTIONAL];
     * </code>
     *
     * @return The acceleratorConfig.
     */
    public com.google.cloud.notebooks.v1.RuntimeAcceleratorConfig getAcceleratorConfig() {
      if (acceleratorConfigBuilder_ == null) {
        return acceleratorConfig_ == null
            ? com.google.cloud.notebooks.v1.RuntimeAcceleratorConfig.getDefaultInstance()
            : acceleratorConfig_;
      } else {
        return acceleratorConfigBuilder_.getMessage();
      }
    }
    /**
     *
     *
     * <pre>
     * Optional. The Compute Engine accelerator configuration for this runtime.
     * </pre>
     *
     * <code>
     * .google.cloud.notebooks.v1.RuntimeAcceleratorConfig accelerator_config = 7 [(.google.api.field_behavior) = OPTIONAL];
     * </code>
     */
    public Builder setAcceleratorConfig(
        com.google.cloud.notebooks.v1.RuntimeAcceleratorConfig value) {
      if (acceleratorConfigBuilder_ == null) {
        if (value == null) {
          throw new NullPointerException();
        }
        acceleratorConfig_ = value;
      } else {
        acceleratorConfigBuilder_.setMessage(value);
      }
      bitField0_ |= 0x00000040;
      onChanged();
      return this;
    }
    /**
     *
     *
     * <pre>
     * Optional. The Compute Engine accelerator configuration for this runtime.
     * </pre>
     *
     * <code>
     * .google.cloud.notebooks.v1.RuntimeAcceleratorConfig accelerator_config = 7 [(.google.api.field_behavior) = OPTIONAL];
     * </code>
     */
    public Builder setAcceleratorConfig(
        com.google.cloud.notebooks.v1.RuntimeAcceleratorConfig.Builder builderForValue) {
      if (acceleratorConfigBuilder_ == null) {
        acceleratorConfig_ = builderForValue.build();
      } else {
        acceleratorConfigBuilder_.setMessage(builderForValue.build());
      }
      bitField0_ |= 0x00000040;
      onChanged();
      return this;
    }
    /**
     *
     *
     * <pre>
     * Optional. The Compute Engine accelerator configuration for this runtime.
     * </pre>
     *
     * <code>
     * .google.cloud.notebooks.v1.RuntimeAcceleratorConfig accelerator_config = 7 [(.google.api.field_behavior) = OPTIONAL];
     * </code>
     */
    public Builder mergeAcceleratorConfig(
        com.google.cloud.notebooks.v1.RuntimeAcceleratorConfig value) {
      if (acceleratorConfigBuilder_ == null) {
        if (((bitField0_ & 0x00000040) != 0)
            && acceleratorConfig_ != null
            && acceleratorConfig_
                != com.google.cloud.notebooks.v1.RuntimeAcceleratorConfig.getDefaultInstance()) {
          getAcceleratorConfigBuilder().mergeFrom(value);
        } else {
          acceleratorConfig_ = value;
        }
      } else {
        acceleratorConfigBuilder_.mergeFrom(value);
      }
      bitField0_ |= 0x00000040;
      onChanged();
      return this;
    }
    /**
     *
     *
     * <pre>
     * Optional. The Compute Engine accelerator configuration for this runtime.
     * </pre>
     *
     * <code>
     * .google.cloud.notebooks.v1.RuntimeAcceleratorConfig accelerator_config = 7 [(.google.api.field_behavior) = OPTIONAL];
     * </code>
     */
    public Builder clearAcceleratorConfig() {
      bitField0_ = (bitField0_ & ~0x00000040);
      acceleratorConfig_ = null;
      if (acceleratorConfigBuilder_ != null) {
        acceleratorConfigBuilder_.dispose();
        acceleratorConfigBuilder_ = null;
      }
      onChanged();
      return this;
    }
    /**
     *
     *
     * <pre>
     * Optional. The Compute Engine accelerator configuration for this runtime.
     * </pre>
     *
     * <code>
     * .google.cloud.notebooks.v1.RuntimeAcceleratorConfig accelerator_config = 7 [(.google.api.field_behavior) = OPTIONAL];
     * </code>
     */
    public com.google.cloud.notebooks.v1.RuntimeAcceleratorConfig.Builder
        getAcceleratorConfigBuilder() {
      bitField0_ |= 0x00000040;
      onChanged();
      return getAcceleratorConfigFieldBuilder().getBuilder();
    }
    /**
     *
     *
     * <pre>
     * Optional. The Compute Engine accelerator configuration for this runtime.
     * </pre>
     *
     * <code>
     * .google.cloud.notebooks.v1.RuntimeAcceleratorConfig accelerator_config = 7 [(.google.api.field_behavior) = OPTIONAL];
     * </code>
     */
    public com.google.cloud.notebooks.v1.RuntimeAcceleratorConfigOrBuilder
        getAcceleratorConfigOrBuilder() {
      if (acceleratorConfigBuilder_ != null) {
        return acceleratorConfigBuilder_.getMessageOrBuilder();
      } else {
        return acceleratorConfig_ == null
            ? com.google.cloud.notebooks.v1.RuntimeAcceleratorConfig.getDefaultInstance()
            : acceleratorConfig_;
      }
    }
    /**
     *
     *
     * <pre>
     * Optional. The Compute Engine accelerator configuration for this runtime.
     * </pre>
     *
     * <code>
     * .google.cloud.notebooks.v1.RuntimeAcceleratorConfig accelerator_config = 7 [(.google.api.field_behavior) = OPTIONAL];
     * </code>
     */
    private com.google.protobuf.SingleFieldBuilderV3<
            com.google.cloud.notebooks.v1.RuntimeAcceleratorConfig,
            com.google.cloud.notebooks.v1.RuntimeAcceleratorConfig.Builder,
            com.google.cloud.notebooks.v1.RuntimeAcceleratorConfigOrBuilder>
        getAcceleratorConfigFieldBuilder() {
      if (acceleratorConfigBuilder_ == null) {
        acceleratorConfigBuilder_ =
            new com.google.protobuf.SingleFieldBuilderV3<
                com.google.cloud.notebooks.v1.RuntimeAcceleratorConfig,
                com.google.cloud.notebooks.v1.RuntimeAcceleratorConfig.Builder,
                com.google.cloud.notebooks.v1.RuntimeAcceleratorConfigOrBuilder>(
                getAcceleratorConfig(), getParentForChildren(), isClean());
        acceleratorConfig_ = null;
      }
      return acceleratorConfigBuilder_;
    }

    private java.lang.Object network_ = "";
    /**
     *
     *
     * <pre>
     * Optional. The Compute Engine network to be used for machine
     * communications. Cannot be specified with subnetwork. If neither
     * `network` nor `subnet` is specified, the "default" network of
     * the project is used, if it exists.
     * A full URL or partial URI. Examples:
     * * `https://www.googleapis.com/compute/v1/projects/[project_id]/global/networks/default`
     * * `projects/[project_id]/global/networks/default`
     * Runtimes are managed resources inside Google Infrastructure.
     * Runtimes support the following network configurations:
     * * Google Managed Network (Network &amp; subnet are empty)
     * * Consumer Project VPC (network &amp; subnet are required). Requires
     * configuring Private Service Access.
     * * Shared VPC (network &amp; subnet are required). Requires configuring Private
     * Service Access.
     * </pre>
     *
     * <code>string network = 8 [(.google.api.field_behavior) = OPTIONAL];</code>
     *
     * @return The network.
     */
    public java.lang.String getNetwork() {
      java.lang.Object ref = network_;
      if (!(ref instanceof java.lang.String)) {
        com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
        java.lang.String s = bs.toStringUtf8();
        network_ = s;
        return s;
      } else {
        return (java.lang.String) ref;
      }
    }
    /**
     *
     *
     * <pre>
     * Optional. The Compute Engine network to be used for machine
     * communications. Cannot be specified with subnetwork. If neither
     * `network` nor `subnet` is specified, the "default" network of
     * the project is used, if it exists.
     * A full URL or partial URI. Examples:
     * * `https://www.googleapis.com/compute/v1/projects/[project_id]/global/networks/default`
     * * `projects/[project_id]/global/networks/default`
     * Runtimes are managed resources inside Google Infrastructure.
     * Runtimes support the following network configurations:
     * * Google Managed Network (Network &amp; subnet are empty)
     * * Consumer Project VPC (network &amp; subnet are required). Requires
     * configuring Private Service Access.
     * * Shared VPC (network &amp; subnet are required). Requires configuring Private
     * Service Access.
     * </pre>
     *
     * <code>string network = 8 [(.google.api.field_behavior) = OPTIONAL];</code>
     *
     * @return The bytes for network.
     */
    public com.google.protobuf.ByteString getNetworkBytes() {
      java.lang.Object ref = network_;
      if (ref instanceof String) {
        com.google.protobuf.ByteString b =
            com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
        network_ = b;
        return b;
      } else {
        return (com.google.protobuf.ByteString) ref;
      }
    }
    /**
     *
     *
     * <pre>
     * Optional. The Compute Engine network to be used for machine
     * communications. Cannot be specified with subnetwork. If neither
     * `network` nor `subnet` is specified, the "default" network of
     * the project is used, if it exists.
     * A full URL or partial URI. Examples:
     * * `https://www.googleapis.com/compute/v1/projects/[project_id]/global/networks/default`
     * * `projects/[project_id]/global/networks/default`
     * Runtimes are managed resources inside Google Infrastructure.
     * Runtimes support the following network configurations:
     * * Google Managed Network (Network &amp; subnet are empty)
     * * Consumer Project VPC (network &amp; subnet are required). Requires
     * configuring Private Service Access.
     * * Shared VPC (network &amp; subnet are required). Requires configuring Private
     * Service Access.
     * </pre>
     *
     * <code>string network = 8 [(.google.api.field_behavior) = OPTIONAL];</code>
     *
     * @param value The network to set.
     * @return This builder for chaining.
     */
    public Builder setNetwork(java.lang.String value) {
      if (value == null) {
        throw new NullPointerException();
      }
      network_ = value;
      bitField0_ |= 0x00000080;
      onChanged();
      return this;
    }
    /**
     *
     *
     * <pre>
     * Optional. The Compute Engine network to be used for machine
     * communications. Cannot be specified with subnetwork. If neither
     * `network` nor `subnet` is specified, the "default" network of
     * the project is used, if it exists.
     * A full URL or partial URI. Examples:
     * * `https://www.googleapis.com/compute/v1/projects/[project_id]/global/networks/default`
     * * `projects/[project_id]/global/networks/default`
     * Runtimes are managed resources inside Google Infrastructure.
     * Runtimes support the following network configurations:
     * * Google Managed Network (Network &amp; subnet are empty)
     * * Consumer Project VPC (network &amp; subnet are required). Requires
     * configuring Private Service Access.
     * * Shared VPC (network &amp; subnet are required). Requires configuring Private
     * Service Access.
     * </pre>
     *
     * <code>string network = 8 [(.google.api.field_behavior) = OPTIONAL];</code>
     *
     * @return This builder for chaining.
     */
    public Builder clearNetwork() {
      network_ = getDefaultInstance().getNetwork();
      bitField0_ = (bitField0_ & ~0x00000080);
      onChanged();
      return this;
    }
    /**
     *
     *
     * <pre>
     * Optional. The Compute Engine network to be used for machine
     * communications. Cannot be specified with subnetwork. If neither
     * `network` nor `subnet` is specified, the "default" network of
     * the project is used, if it exists.
     * A full URL or partial URI. Examples:
     * * `https://www.googleapis.com/compute/v1/projects/[project_id]/global/networks/default`
     * * `projects/[project_id]/global/networks/default`
     * Runtimes are managed resources inside Google Infrastructure.
     * Runtimes support the following network configurations:
     * * Google Managed Network (Network &amp; subnet are empty)
     * * Consumer Project VPC (network &amp; subnet are required). Requires
     * configuring Private Service Access.
     * * Shared VPC (network &amp; subnet are required). Requires configuring Private
     * Service Access.
     * </pre>
     *
     * <code>string network = 8 [(.google.api.field_behavior) = OPTIONAL];</code>
     *
     * @param value The bytes for network to set.
     * @return This builder for chaining.
     */
    public Builder setNetworkBytes(com.google.protobuf.ByteString value) {
      if (value == null) {
        throw new NullPointerException();
      }
      checkByteStringIsUtf8(value);
      network_ = value;
      bitField0_ |= 0x00000080;
      onChanged();
      return this;
    }

    private java.lang.Object subnet_ = "";
    /**
     *
     *
     * <pre>
     * Optional. The Compute Engine subnetwork to be used for machine
     * communications. Cannot be specified with network.
     * A full URL or partial URI are valid. Examples:
     * * `https://www.googleapis.com/compute/v1/projects/[project_id]/regions/us-east1/subnetworks/sub0`
     * * `projects/[project_id]/regions/us-east1/subnetworks/sub0`
     * </pre>
     *
     * <code>string subnet = 9 [(.google.api.field_behavior) = OPTIONAL];</code>
     *
     * @return The subnet.
     */
    public java.lang.String getSubnet() {
      java.lang.Object ref = subnet_;
      if (!(ref instanceof java.lang.String)) {
        com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
        java.lang.String s = bs.toStringUtf8();
        subnet_ = s;
        return s;
      } else {
        return (java.lang.String) ref;
      }
    }
    /**
     *
     *
     * <pre>
     * Optional. The Compute Engine subnetwork to be used for machine
     * communications. Cannot be specified with network.
     * A full URL or partial URI are valid. Examples:
     * * `https://www.googleapis.com/compute/v1/projects/[project_id]/regions/us-east1/subnetworks/sub0`
     * * `projects/[project_id]/regions/us-east1/subnetworks/sub0`
     * </pre>
     *
     * <code>string subnet = 9 [(.google.api.field_behavior) = OPTIONAL];</code>
     *
     * @return The bytes for subnet.
     */
    public com.google.protobuf.ByteString getSubnetBytes() {
      java.lang.Object ref = subnet_;
      if (ref instanceof String) {
        com.google.protobuf.ByteString b =
            com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
        subnet_ = b;
        return b;
      } else {
        return (com.google.protobuf.ByteString) ref;
      }
    }
    /**
     *
     *
     * <pre>
     * Optional. The Compute Engine subnetwork to be used for machine
     * communications. Cannot be specified with network.
     * A full URL or partial URI are valid. Examples:
     * * `https://www.googleapis.com/compute/v1/projects/[project_id]/regions/us-east1/subnetworks/sub0`
     * * `projects/[project_id]/regions/us-east1/subnetworks/sub0`
     * </pre>
     *
     * <code>string subnet = 9 [(.google.api.field_behavior) = OPTIONAL];</code>
     *
     * @param value The subnet to set.
     * @return This builder for chaining.
     */
    public Builder setSubnet(java.lang.String value) {
      if (value == null) {
        throw new NullPointerException();
      }
      subnet_ = value;
      bitField0_ |= 0x00000100;
      onChanged();
      return this;
    }
    /**
     *
     *
     * <pre>
     * Optional. The Compute Engine subnetwork to be used for machine
     * communications. Cannot be specified with network.
     * A full URL or partial URI are valid. Examples:
     * * `https://www.googleapis.com/compute/v1/projects/[project_id]/regions/us-east1/subnetworks/sub0`
     * * `projects/[project_id]/regions/us-east1/subnetworks/sub0`
     * </pre>
     *
     * <code>string subnet = 9 [(.google.api.field_behavior) = OPTIONAL];</code>
     *
     * @return This builder for chaining.
     */
    public Builder clearSubnet() {
      subnet_ = getDefaultInstance().getSubnet();
      bitField0_ = (bitField0_ & ~0x00000100);
      onChanged();
      return this;
    }
    /**
     *
     *
     * <pre>
     * Optional. The Compute Engine subnetwork to be used for machine
     * communications. Cannot be specified with network.
     * A full URL or partial URI are valid. Examples:
     * * `https://www.googleapis.com/compute/v1/projects/[project_id]/regions/us-east1/subnetworks/sub0`
     * * `projects/[project_id]/regions/us-east1/subnetworks/sub0`
     * </pre>
     *
     * <code>string subnet = 9 [(.google.api.field_behavior) = OPTIONAL];</code>
     *
     * @param value The bytes for subnet to set.
     * @return This builder for chaining.
     */
    public Builder setSubnetBytes(com.google.protobuf.ByteString value) {
      if (value == null) {
        throw new NullPointerException();
      }
      checkByteStringIsUtf8(value);
      subnet_ = value;
      bitField0_ |= 0x00000100;
      onChanged();
      return this;
    }

    private boolean internalIpOnly_;
    /**
     *
     *
     * <pre>
     * Optional. If true, runtime will only have internal IP
     * addresses. By default, runtimes are not restricted to internal IP
     * addresses, and will have ephemeral external IP addresses assigned to each
     * vm. This `internal_ip_only` restriction can only be enabled for
     * subnetwork enabled networks, and all dependencies must be
     * configured to be accessible without external IP addresses.
     * </pre>
     *
     * <code>bool internal_ip_only = 10 [(.google.api.field_behavior) = OPTIONAL];</code>
     *
     * @return The internalIpOnly.
     */
    @java.lang.Override
    public boolean getInternalIpOnly() {
      return internalIpOnly_;
    }
    /**
     *
     *
     * <pre>
     * Optional. If true, runtime will only have internal IP
     * addresses. By default, runtimes are not restricted to internal IP
     * addresses, and will have ephemeral external IP addresses assigned to each
     * vm. This `internal_ip_only` restriction can only be enabled for
     * subnetwork enabled networks, and all dependencies must be
     * configured to be accessible without external IP addresses.
     * </pre>
     *
     * <code>bool internal_ip_only = 10 [(.google.api.field_behavior) = OPTIONAL];</code>
     *
     * @param value The internalIpOnly to set.
     * @return This builder for chaining.
     */
    public Builder setInternalIpOnly(boolean value) {

      internalIpOnly_ = value;
      bitField0_ |= 0x00000200;
      onChanged();
      return this;
    }
    /**
     *
     *
     * <pre>
     * Optional. If true, runtime will only have internal IP
     * addresses. By default, runtimes are not restricted to internal IP
     * addresses, and will have ephemeral external IP addresses assigned to each
     * vm. This `internal_ip_only` restriction can only be enabled for
     * subnetwork enabled networks, and all dependencies must be
     * configured to be accessible without external IP addresses.
     * </pre>
     *
     * <code>bool internal_ip_only = 10 [(.google.api.field_behavior) = OPTIONAL];</code>
     *
     * @return This builder for chaining.
     */
    public Builder clearInternalIpOnly() {
      bitField0_ = (bitField0_ & ~0x00000200);
      internalIpOnly_ = false;
      onChanged();
      return this;
    }

    private com.google.protobuf.LazyStringList tags_ =
        com.google.protobuf.LazyStringArrayList.EMPTY;

    private void ensureTagsIsMutable() {
      if (!((bitField0_ & 0x00000400) != 0)) {
        tags_ = new com.google.protobuf.LazyStringArrayList(tags_);
        bitField0_ |= 0x00000400;
      }
    }
    /**
     *
     *
     * <pre>
     * Optional. The Compute Engine tags to add to runtime (see [Tagging
     * instances](https://cloud.google.com/compute/docs/label-or-tag-resources#tags)).
     * </pre>
     *
     * <code>repeated string tags = 13 [(.google.api.field_behavior) = OPTIONAL];</code>
     *
     * @return A list containing the tags.
     */
    public com.google.protobuf.ProtocolStringList getTagsList() {
      return tags_.getUnmodifiableView();
    }
    /**
     *
     *
     * <pre>
     * Optional. The Compute Engine tags to add to runtime (see [Tagging
     * instances](https://cloud.google.com/compute/docs/label-or-tag-resources#tags)).
     * </pre>
     *
     * <code>repeated string tags = 13 [(.google.api.field_behavior) = OPTIONAL];</code>
     *
     * @return The count of tags.
     */
    public int getTagsCount() {
      return tags_.size();
    }
    /**
     *
     *
     * <pre>
     * Optional. The Compute Engine tags to add to runtime (see [Tagging
     * instances](https://cloud.google.com/compute/docs/label-or-tag-resources#tags)).
     * </pre>
     *
     * <code>repeated string tags = 13 [(.google.api.field_behavior) = OPTIONAL];</code>
     *
     * @param index The index of the element to return.
     * @return The tags at the given index.
     */
    public java.lang.String getTags(int index) {
      return tags_.get(index);
    }
    /**
     *
     *
     * <pre>
     * Optional. The Compute Engine tags to add to runtime (see [Tagging
     * instances](https://cloud.google.com/compute/docs/label-or-tag-resources#tags)).
     * </pre>
     *
     * <code>repeated string tags = 13 [(.google.api.field_behavior) = OPTIONAL];</code>
     *
     * @param index The index of the value to return.
     * @return The bytes of the tags at the given index.
     */
    public com.google.protobuf.ByteString getTagsBytes(int index) {
      return tags_.getByteString(index);
    }
    /**
     *
     *
     * <pre>
     * Optional. The Compute Engine tags to add to runtime (see [Tagging
     * instances](https://cloud.google.com/compute/docs/label-or-tag-resources#tags)).
     * </pre>
     *
     * <code>repeated string tags = 13 [(.google.api.field_behavior) = OPTIONAL];</code>
     *
     * @param index The index to set the value at.
     * @param value The tags to set.
     * @return This builder for chaining.
     */
    public Builder setTags(int index, java.lang.String value) {
      if (value == null) {
        throw new NullPointerException();
      }
      ensureTagsIsMutable();
      tags_.set(index, value);
      onChanged();
      return this;
    }
    /**
     *
     *
     * <pre>
     * Optional. The Compute Engine tags to add to runtime (see [Tagging
     * instances](https://cloud.google.com/compute/docs/label-or-tag-resources#tags)).
     * </pre>
     *
     * <code>repeated string tags = 13 [(.google.api.field_behavior) = OPTIONAL];</code>
     *
     * @param value The tags to add.
     * @return This builder for chaining.
     */
    public Builder addTags(java.lang.String value) {
      if (value == null) {
        throw new NullPointerException();
      }
      ensureTagsIsMutable();
      tags_.add(value);
      onChanged();
      return this;
    }
    /**
     *
     *
     * <pre>
     * Optional. The Compute Engine tags to add to runtime (see [Tagging
     * instances](https://cloud.google.com/compute/docs/label-or-tag-resources#tags)).
     * </pre>
     *
     * <code>repeated string tags = 13 [(.google.api.field_behavior) = OPTIONAL];</code>
     *
     * @param values The tags to add.
     * @return This builder for chaining.
     */
    public Builder addAllTags(java.lang.Iterable<java.lang.String> values) {
      ensureTagsIsMutable();
      com.google.protobuf.AbstractMessageLite.Builder.addAll(values, tags_);
      onChanged();
      return this;
    }
    /**
     *
     *
     * <pre>
     * Optional. The Compute Engine tags to add to runtime (see [Tagging
     * instances](https://cloud.google.com/compute/docs/label-or-tag-resources#tags)).
     * </pre>
     *
     * <code>repeated string tags = 13 [(.google.api.field_behavior) = OPTIONAL];</code>
     *
     * @return This builder for chaining.
     */
    public Builder clearTags() {
      tags_ = com.google.protobuf.LazyStringArrayList.EMPTY;
      bitField0_ = (bitField0_ & ~0x00000400);
      onChanged();
      return this;
    }
    /**
     *
     *
     * <pre>
     * Optional. The Compute Engine tags to add to runtime (see [Tagging
     * instances](https://cloud.google.com/compute/docs/label-or-tag-resources#tags)).
     * </pre>
     *
     * <code>repeated string tags = 13 [(.google.api.field_behavior) = OPTIONAL];</code>
     *
     * @param value The bytes of the tags to add.
     * @return This builder for chaining.
     */
    public Builder addTagsBytes(com.google.protobuf.ByteString value) {
      if (value == null) {
        throw new NullPointerException();
      }
      checkByteStringIsUtf8(value);
      ensureTagsIsMutable();
      tags_.add(value);
      onChanged();
      return this;
    }

    private com.google.protobuf.MapField<java.lang.String, java.lang.String> guestAttributes_;

    private com.google.protobuf.MapField<java.lang.String, java.lang.String>
        internalGetGuestAttributes() {
      if (guestAttributes_ == null) {
        return com.google.protobuf.MapField.emptyMapField(
            GuestAttributesDefaultEntryHolder.defaultEntry);
      }
      return guestAttributes_;
    }

    private com.google.protobuf.MapField<java.lang.String, java.lang.String>
        internalGetMutableGuestAttributes() {
      if (guestAttributes_ == null) {
        guestAttributes_ =
            com.google.protobuf.MapField.newMapField(
                GuestAttributesDefaultEntryHolder.defaultEntry);
      }
      if (!guestAttributes_.isMutable()) {
        guestAttributes_ = guestAttributes_.copy();
      }
      bitField0_ |= 0x00000800;
      onChanged();
      return guestAttributes_;
    }

    public int getGuestAttributesCount() {
      return internalGetGuestAttributes().getMap().size();
    }
    /**
     *
     *
     * <pre>
     * Output only. The Compute Engine guest attributes. (see
     * [Project and instance
     * guest
     * attributes](https://cloud.google.com/compute/docs/storing-retrieving-metadata#guest_attributes)).
     * </pre>
     *
     * <code>
     * map&lt;string, string&gt; guest_attributes = 14 [(.google.api.field_behavior) = OUTPUT_ONLY];
     * </code>
     */
    @java.lang.Override
    public boolean containsGuestAttributes(java.lang.String key) {
      if (key == null) {
        throw new NullPointerException("map key");
      }
      return internalGetGuestAttributes().getMap().containsKey(key);
    }
    /** Use {@link #getGuestAttributesMap()} instead. */
    @java.lang.Override
    @java.lang.Deprecated
    public java.util.Map<java.lang.String, java.lang.String> getGuestAttributes() {
      return getGuestAttributesMap();
    }
    /**
     *
     *
     * <pre>
     * Output only. The Compute Engine guest attributes. (see
     * [Project and instance
     * guest
     * attributes](https://cloud.google.com/compute/docs/storing-retrieving-metadata#guest_attributes)).
     * </pre>
     *
     * <code>
     * map&lt;string, string&gt; guest_attributes = 14 [(.google.api.field_behavior) = OUTPUT_ONLY];
     * </code>
     */
    @java.lang.Override
    public java.util.Map<java.lang.String, java.lang.String> getGuestAttributesMap() {
      return internalGetGuestAttributes().getMap();
    }
    /**
     *
     *
     * <pre>
     * Output only. The Compute Engine guest attributes. (see
     * [Project and instance
     * guest
     * attributes](https://cloud.google.com/compute/docs/storing-retrieving-metadata#guest_attributes)).
     * </pre>
     *
     * <code>
     * map&lt;string, string&gt; guest_attributes = 14 [(.google.api.field_behavior) = OUTPUT_ONLY];
     * </code>
     */
    @java.lang.Override
    public /* nullable */ java.lang.String getGuestAttributesOrDefault(
        java.lang.String key,
        /* nullable */
        java.lang.String defaultValue) {
      if (key == null) {
        throw new NullPointerException("map key");
      }
      java.util.Map<java.lang.String, java.lang.String> map = internalGetGuestAttributes().getMap();
      return map.containsKey(key) ? map.get(key) : defaultValue;
    }
    /**
     *
     *
     * <pre>
     * Output only. The Compute Engine guest attributes. (see
     * [Project and instance
     * guest
     * attributes](https://cloud.google.com/compute/docs/storing-retrieving-metadata#guest_attributes)).
     * </pre>
     *
     * <code>
     * map&lt;string, string&gt; guest_attributes = 14 [(.google.api.field_behavior) = OUTPUT_ONLY];
     * </code>
     */
    @java.lang.Override
    public java.lang.String getGuestAttributesOrThrow(java.lang.String key) {
      if (key == null) {
        throw new NullPointerException("map key");
      }
      java.util.Map<java.lang.String, java.lang.String> map = internalGetGuestAttributes().getMap();
      if (!map.containsKey(key)) {
        throw new java.lang.IllegalArgumentException();
      }
      return map.get(key);
    }

    public Builder clearGuestAttributes() {
      bitField0_ = (bitField0_ & ~0x00000800);
      internalGetMutableGuestAttributes().getMutableMap().clear();
      return this;
    }
    /**
     *
     *
     * <pre>
     * Output only. The Compute Engine guest attributes. (see
     * [Project and instance
     * guest
     * attributes](https://cloud.google.com/compute/docs/storing-retrieving-metadata#guest_attributes)).
     * </pre>
     *
     * <code>
     * map&lt;string, string&gt; guest_attributes = 14 [(.google.api.field_behavior) = OUTPUT_ONLY];
     * </code>
     */
    public Builder removeGuestAttributes(java.lang.String key) {
      if (key == null) {
        throw new NullPointerException("map key");
      }
      internalGetMutableGuestAttributes().getMutableMap().remove(key);
      return this;
    }
    /** Use alternate mutation accessors instead. */
    @java.lang.Deprecated
    public java.util.Map<java.lang.String, java.lang.String> getMutableGuestAttributes() {
      bitField0_ |= 0x00000800;
      return internalGetMutableGuestAttributes().getMutableMap();
    }
    /**
     *
     *
     * <pre>
     * Output only. The Compute Engine guest attributes. (see
     * [Project and instance
     * guest
     * attributes](https://cloud.google.com/compute/docs/storing-retrieving-metadata#guest_attributes)).
     * </pre>
     *
     * <code>
     * map&lt;string, string&gt; guest_attributes = 14 [(.google.api.field_behavior) = OUTPUT_ONLY];
     * </code>
     */
    public Builder putGuestAttributes(java.lang.String key, java.lang.String value) {
      if (key == null) {
        throw new NullPointerException("map key");
      }
      if (value == null) {
        throw new NullPointerException("map value");
      }
      internalGetMutableGuestAttributes().getMutableMap().put(key, value);
      bitField0_ |= 0x00000800;
      return this;
    }
    /**
     *
     *
     * <pre>
     * Output only. The Compute Engine guest attributes. (see
     * [Project and instance
     * guest
     * attributes](https://cloud.google.com/compute/docs/storing-retrieving-metadata#guest_attributes)).
     * </pre>
     *
     * <code>
     * map&lt;string, string&gt; guest_attributes = 14 [(.google.api.field_behavior) = OUTPUT_ONLY];
     * </code>
     */
    public Builder putAllGuestAttributes(java.util.Map<java.lang.String, java.lang.String> values) {
      internalGetMutableGuestAttributes().getMutableMap().putAll(values);
      bitField0_ |= 0x00000800;
      return this;
    }

    private com.google.protobuf.MapField<java.lang.String, java.lang.String> metadata_;

    private com.google.protobuf.MapField<java.lang.String, java.lang.String> internalGetMetadata() {
      if (metadata_ == null) {
        return com.google.protobuf.MapField.emptyMapField(MetadataDefaultEntryHolder.defaultEntry);
      }
      return metadata_;
    }

    private com.google.protobuf.MapField<java.lang.String, java.lang.String>
        internalGetMutableMetadata() {
      if (metadata_ == null) {
        metadata_ =
            com.google.protobuf.MapField.newMapField(MetadataDefaultEntryHolder.defaultEntry);
      }
      if (!metadata_.isMutable()) {
        metadata_ = metadata_.copy();
      }
      bitField0_ |= 0x00001000;
      onChanged();
      return metadata_;
    }

    public int getMetadataCount() {
      return internalGetMetadata().getMap().size();
    }
    /**
     *
     *
     * <pre>
     * Optional. The Compute Engine metadata entries to add to virtual machine. (see
     * [Project and instance
     * metadata](https://cloud.google.com/compute/docs/storing-retrieving-metadata#project_and_instance_metadata)).
     * </pre>
     *
     * <code>map&lt;string, string&gt; metadata = 15 [(.google.api.field_behavior) = OPTIONAL];
     * </code>
     */
    @java.lang.Override
    public boolean containsMetadata(java.lang.String key) {
      if (key == null) {
        throw new NullPointerException("map key");
      }
      return internalGetMetadata().getMap().containsKey(key);
    }
    /** Use {@link #getMetadataMap()} instead. */
    @java.lang.Override
    @java.lang.Deprecated
    public java.util.Map<java.lang.String, java.lang.String> getMetadata() {
      return getMetadataMap();
    }
    /**
     *
     *
     * <pre>
     * Optional. The Compute Engine metadata entries to add to virtual machine. (see
     * [Project and instance
     * metadata](https://cloud.google.com/compute/docs/storing-retrieving-metadata#project_and_instance_metadata)).
     * </pre>
     *
     * <code>map&lt;string, string&gt; metadata = 15 [(.google.api.field_behavior) = OPTIONAL];
     * </code>
     */
    @java.lang.Override
    public java.util.Map<java.lang.String, java.lang.String> getMetadataMap() {
      return internalGetMetadata().getMap();
    }
    /**
     *
     *
     * <pre>
     * Optional. The Compute Engine metadata entries to add to virtual machine. (see
     * [Project and instance
     * metadata](https://cloud.google.com/compute/docs/storing-retrieving-metadata#project_and_instance_metadata)).
     * </pre>
     *
     * <code>map&lt;string, string&gt; metadata = 15 [(.google.api.field_behavior) = OPTIONAL];
     * </code>
     */
    @java.lang.Override
    public /* nullable */ java.lang.String getMetadataOrDefault(
        java.lang.String key,
        /* nullable */
        java.lang.String defaultValue) {
      if (key == null) {
        throw new NullPointerException("map key");
      }
      java.util.Map<java.lang.String, java.lang.String> map = internalGetMetadata().getMap();
      return map.containsKey(key) ? map.get(key) : defaultValue;
    }
    /**
     *
     *
     * <pre>
     * Optional. The Compute Engine metadata entries to add to virtual machine. (see
     * [Project and instance
     * metadata](https://cloud.google.com/compute/docs/storing-retrieving-metadata#project_and_instance_metadata)).
     * </pre>
     *
     * <code>map&lt;string, string&gt; metadata = 15 [(.google.api.field_behavior) = OPTIONAL];
     * </code>
     */
    @java.lang.Override
    public java.lang.String getMetadataOrThrow(java.lang.String key) {
      if (key == null) {
        throw new NullPointerException("map key");
      }
      java.util.Map<java.lang.String, java.lang.String> map = internalGetMetadata().getMap();
      if (!map.containsKey(key)) {
        throw new java.lang.IllegalArgumentException();
      }
      return map.get(key);
    }

    public Builder clearMetadata() {
      bitField0_ = (bitField0_ & ~0x00001000);
      internalGetMutableMetadata().getMutableMap().clear();
      return this;
    }
    /**
     *
     *
     * <pre>
     * Optional. The Compute Engine metadata entries to add to virtual machine. (see
     * [Project and instance
     * metadata](https://cloud.google.com/compute/docs/storing-retrieving-metadata#project_and_instance_metadata)).
     * </pre>
     *
     * <code>map&lt;string, string&gt; metadata = 15 [(.google.api.field_behavior) = OPTIONAL];
     * </code>
     */
    public Builder removeMetadata(java.lang.String key) {
      if (key == null) {
        throw new NullPointerException("map key");
      }
      internalGetMutableMetadata().getMutableMap().remove(key);
      return this;
    }
    /** Use alternate mutation accessors instead. */
    @java.lang.Deprecated
    public java.util.Map<java.lang.String, java.lang.String> getMutableMetadata() {
      bitField0_ |= 0x00001000;
      return internalGetMutableMetadata().getMutableMap();
    }
    /**
     *
     *
     * <pre>
     * Optional. The Compute Engine metadata entries to add to virtual machine. (see
     * [Project and instance
     * metadata](https://cloud.google.com/compute/docs/storing-retrieving-metadata#project_and_instance_metadata)).
     * </pre>
     *
     * <code>map&lt;string, string&gt; metadata = 15 [(.google.api.field_behavior) = OPTIONAL];
     * </code>
     */
    public Builder putMetadata(java.lang.String key, java.lang.String value) {
      if (key == null) {
        throw new NullPointerException("map key");
      }
      if (value == null) {
        throw new NullPointerException("map value");
      }
      internalGetMutableMetadata().getMutableMap().put(key, value);
      bitField0_ |= 0x00001000;
      return this;
    }
    /**
     *
     *
     * <pre>
     * Optional. The Compute Engine metadata entries to add to virtual machine. (see
     * [Project and instance
     * metadata](https://cloud.google.com/compute/docs/storing-retrieving-metadata#project_and_instance_metadata)).
     * </pre>
     *
     * <code>map&lt;string, string&gt; metadata = 15 [(.google.api.field_behavior) = OPTIONAL];
     * </code>
     */
    public Builder putAllMetadata(java.util.Map<java.lang.String, java.lang.String> values) {
      internalGetMutableMetadata().getMutableMap().putAll(values);
      bitField0_ |= 0x00001000;
      return this;
    }

    private com.google.protobuf.MapField<java.lang.String, java.lang.String> labels_;

    private com.google.protobuf.MapField<java.lang.String, java.lang.String> internalGetLabels() {
      if (labels_ == null) {
        return com.google.protobuf.MapField.emptyMapField(LabelsDefaultEntryHolder.defaultEntry);
      }
      return labels_;
    }

    private com.google.protobuf.MapField<java.lang.String, java.lang.String>
        internalGetMutableLabels() {
      if (labels_ == null) {
        labels_ = com.google.protobuf.MapField.newMapField(LabelsDefaultEntryHolder.defaultEntry);
      }
      if (!labels_.isMutable()) {
        labels_ = labels_.copy();
      }
      bitField0_ |= 0x00002000;
      onChanged();
      return labels_;
    }

    public int getLabelsCount() {
      return internalGetLabels().getMap().size();
    }
    /**
     *
     *
     * <pre>
     * Optional. The labels to associate with this runtime.
     * Label **keys** must contain 1 to 63 characters, and must conform to
     * [RFC 1035](https://www.ietf.org/rfc/rfc1035.txt).
     * Label **values** may be empty, but, if present, must contain 1 to 63
     * characters, and must conform to [RFC
     * 1035](https://www.ietf.org/rfc/rfc1035.txt). No more than 32 labels can be
     * associated with a cluster.
     * </pre>
     *
     * <code>map&lt;string, string&gt; labels = 16 [(.google.api.field_behavior) = OPTIONAL];</code>
     */
    @java.lang.Override
    public boolean containsLabels(java.lang.String key) {
      if (key == null) {
        throw new NullPointerException("map key");
      }
      return internalGetLabels().getMap().containsKey(key);
    }
    /** Use {@link #getLabelsMap()} instead. */
    @java.lang.Override
    @java.lang.Deprecated
    public java.util.Map<java.lang.String, java.lang.String> getLabels() {
      return getLabelsMap();
    }
    /**
     *
     *
     * <pre>
     * Optional. The labels to associate with this runtime.
     * Label **keys** must contain 1 to 63 characters, and must conform to
     * [RFC 1035](https://www.ietf.org/rfc/rfc1035.txt).
     * Label **values** may be empty, but, if present, must contain 1 to 63
     * characters, and must conform to [RFC
     * 1035](https://www.ietf.org/rfc/rfc1035.txt). No more than 32 labels can be
     * associated with a cluster.
     * </pre>
     *
     * <code>map&lt;string, string&gt; labels = 16 [(.google.api.field_behavior) = OPTIONAL];</code>
     */
    @java.lang.Override
    public java.util.Map<java.lang.String, java.lang.String> getLabelsMap() {
      return internalGetLabels().getMap();
    }
    /**
     *
     *
     * <pre>
     * Optional. The labels to associate with this runtime.
     * Label **keys** must contain 1 to 63 characters, and must conform to
     * [RFC 1035](https://www.ietf.org/rfc/rfc1035.txt).
     * Label **values** may be empty, but, if present, must contain 1 to 63
     * characters, and must conform to [RFC
     * 1035](https://www.ietf.org/rfc/rfc1035.txt). No more than 32 labels can be
     * associated with a cluster.
     * </pre>
     *
     * <code>map&lt;string, string&gt; labels = 16 [(.google.api.field_behavior) = OPTIONAL];</code>
     */
    @java.lang.Override
    public /* nullable */ java.lang.String getLabelsOrDefault(
        java.lang.String key,
        /* nullable */
        java.lang.String defaultValue) {
      if (key == null) {
        throw new NullPointerException("map key");
      }
      java.util.Map<java.lang.String, java.lang.String> map = internalGetLabels().getMap();
      return map.containsKey(key) ? map.get(key) : defaultValue;
    }
    /**
     *
     *
     * <pre>
     * Optional. The labels to associate with this runtime.
     * Label **keys** must contain 1 to 63 characters, and must conform to
     * [RFC 1035](https://www.ietf.org/rfc/rfc1035.txt).
     * Label **values** may be empty, but, if present, must contain 1 to 63
     * characters, and must conform to [RFC
     * 1035](https://www.ietf.org/rfc/rfc1035.txt). No more than 32 labels can be
     * associated with a cluster.
     * </pre>
     *
     * <code>map&lt;string, string&gt; labels = 16 [(.google.api.field_behavior) = OPTIONAL];</code>
     */
    @java.lang.Override
    public java.lang.String getLabelsOrThrow(java.lang.String key) {
      if (key == null) {
        throw new NullPointerException("map key");
      }
      java.util.Map<java.lang.String, java.lang.String> map = internalGetLabels().getMap();
      if (!map.containsKey(key)) {
        throw new java.lang.IllegalArgumentException();
      }
      return map.get(key);
    }

    public Builder clearLabels() {
      bitField0_ = (bitField0_ & ~0x00002000);
      internalGetMutableLabels().getMutableMap().clear();
      return this;
    }
    /**
     *
     *
     * <pre>
     * Optional. The labels to associate with this runtime.
     * Label **keys** must contain 1 to 63 characters, and must conform to
     * [RFC 1035](https://www.ietf.org/rfc/rfc1035.txt).
     * Label **values** may be empty, but, if present, must contain 1 to 63
     * characters, and must conform to [RFC
     * 1035](https://www.ietf.org/rfc/rfc1035.txt). No more than 32 labels can be
     * associated with a cluster.
     * </pre>
     *
     * <code>map&lt;string, string&gt; labels = 16 [(.google.api.field_behavior) = OPTIONAL];</code>
     */
    public Builder removeLabels(java.lang.String key) {
      if (key == null) {
        throw new NullPointerException("map key");
      }
      internalGetMutableLabels().getMutableMap().remove(key);
      return this;
    }
    /** Use alternate mutation accessors instead. */
    @java.lang.Deprecated
    public java.util.Map<java.lang.String, java.lang.String> getMutableLabels() {
      bitField0_ |= 0x00002000;
      return internalGetMutableLabels().getMutableMap();
    }
    /**
     *
     *
     * <pre>
     * Optional. The labels to associate with this runtime.
     * Label **keys** must contain 1 to 63 characters, and must conform to
     * [RFC 1035](https://www.ietf.org/rfc/rfc1035.txt).
     * Label **values** may be empty, but, if present, must contain 1 to 63
     * characters, and must conform to [RFC
     * 1035](https://www.ietf.org/rfc/rfc1035.txt). No more than 32 labels can be
     * associated with a cluster.
     * </pre>
     *
     * <code>map&lt;string, string&gt; labels = 16 [(.google.api.field_behavior) = OPTIONAL];</code>
     */
    public Builder putLabels(java.lang.String key, java.lang.String value) {
      if (key == null) {
        throw new NullPointerException("map key");
      }
      if (value == null) {
        throw new NullPointerException("map value");
      }
      internalGetMutableLabels().getMutableMap().put(key, value);
      bitField0_ |= 0x00002000;
      return this;
    }
    /**
     *
     *
     * <pre>
     * Optional. The labels to associate with this runtime.
     * Label **keys** must contain 1 to 63 characters, and must conform to
     * [RFC 1035](https://www.ietf.org/rfc/rfc1035.txt).
     * Label **values** may be empty, but, if present, must contain 1 to 63
     * characters, and must conform to [RFC
     * 1035](https://www.ietf.org/rfc/rfc1035.txt). No more than 32 labels can be
     * associated with a cluster.
     * </pre>
     *
     * <code>map&lt;string, string&gt; labels = 16 [(.google.api.field_behavior) = OPTIONAL];</code>
     */
    public Builder putAllLabels(java.util.Map<java.lang.String, java.lang.String> values) {
      internalGetMutableLabels().getMutableMap().putAll(values);
      bitField0_ |= 0x00002000;
      return this;
    }

    private int nicType_ = 0;
    /**
     *
     *
     * <pre>
     * Optional. The type of vNIC to be used on this interface. This may be gVNIC or
     * VirtioNet.
     * </pre>
     *
     * <code>
     * .google.cloud.notebooks.v1.VirtualMachineConfig.NicType nic_type = 17 [(.google.api.field_behavior) = OPTIONAL];
     * </code>
     *
     * @return The enum numeric value on the wire for nicType.
     */
    @java.lang.Override
    public int getNicTypeValue() {
      return nicType_;
    }
    /**
     *
     *
     * <pre>
     * Optional. The type of vNIC to be used on this interface. This may be gVNIC or
     * VirtioNet.
     * </pre>
     *
     * <code>
     * .google.cloud.notebooks.v1.VirtualMachineConfig.NicType nic_type = 17 [(.google.api.field_behavior) = OPTIONAL];
     * </code>
     *
     * @param value The enum numeric value on the wire for nicType to set.
     * @return This builder for chaining.
     */
    public Builder setNicTypeValue(int value) {
      nicType_ = value;
      bitField0_ |= 0x00004000;
      onChanged();
      return this;
    }
    /**
     *
     *
     * <pre>
     * Optional. The type of vNIC to be used on this interface. This may be gVNIC or
     * VirtioNet.
     * </pre>
     *
     * <code>
     * .google.cloud.notebooks.v1.VirtualMachineConfig.NicType nic_type = 17 [(.google.api.field_behavior) = OPTIONAL];
     * </code>
     *
     * @return The nicType.
     */
    @java.lang.Override
    public com.google.cloud.notebooks.v1.VirtualMachineConfig.NicType getNicType() {
      com.google.cloud.notebooks.v1.VirtualMachineConfig.NicType result =
          com.google.cloud.notebooks.v1.VirtualMachineConfig.NicType.forNumber(nicType_);
      return result == null
          ? com.google.cloud.notebooks.v1.VirtualMachineConfig.NicType.UNRECOGNIZED
          : result;
    }
    /**
     *
     *
     * <pre>
     * Optional. The type of vNIC to be used on this interface. This may be gVNIC or
     * VirtioNet.
     * </pre>
     *
     * <code>
     * .google.cloud.notebooks.v1.VirtualMachineConfig.NicType nic_type = 17 [(.google.api.field_behavior) = OPTIONAL];
     * </code>
     *
     * @param value The nicType to set.
     * @return This builder for chaining.
     */
    public Builder setNicType(com.google.cloud.notebooks.v1.VirtualMachineConfig.NicType value) {
      if (value == null) {
        throw new NullPointerException();
      }
      bitField0_ |= 0x00004000;
      nicType_ = value.getNumber();
      onChanged();
      return this;
    }
    /**
     *
     *
     * <pre>
     * Optional. The type of vNIC to be used on this interface. This may be gVNIC or
     * VirtioNet.
     * </pre>
     *
     * <code>
     * .google.cloud.notebooks.v1.VirtualMachineConfig.NicType nic_type = 17 [(.google.api.field_behavior) = OPTIONAL];
     * </code>
     *
     * @return This builder for chaining.
     */
    public Builder clearNicType() {
      bitField0_ = (bitField0_ & ~0x00004000);
      nicType_ = 0;
      onChanged();
      return this;
    }

    private java.lang.Object reservedIpRange_ = "";
    /**
     *
     *
     * <pre>
     * Optional. Reserved IP Range name is used for VPC Peering.
     * The subnetwork allocation will use the range *name* if it's assigned.
     * Example: managed-notebooks-range-c
     *     PEERING_RANGE_NAME_3=managed-notebooks-range-c
     *     gcloud compute addresses create $PEERING_RANGE_NAME_3 &#92;
     *       --global &#92;
     *       --prefix-length=24 &#92;
     *       --description="Google Cloud Managed Notebooks Range 24 c" &#92;
     *       --network=$NETWORK &#92;
     *       --addresses=192.168.0.0 &#92;
     *       --purpose=VPC_PEERING
     * Field value will be: `managed-notebooks-range-c`
     * </pre>
     *
     * <code>string reserved_ip_range = 18 [(.google.api.field_behavior) = OPTIONAL];</code>
     *
     * @return The reservedIpRange.
     */
    public java.lang.String getReservedIpRange() {
      java.lang.Object ref = reservedIpRange_;
      if (!(ref instanceof java.lang.String)) {
        com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
        java.lang.String s = bs.toStringUtf8();
        reservedIpRange_ = s;
        return s;
      } else {
        return (java.lang.String) ref;
      }
    }
    /**
     *
     *
     * <pre>
     * Optional. Reserved IP Range name is used for VPC Peering.
     * The subnetwork allocation will use the range *name* if it's assigned.
     * Example: managed-notebooks-range-c
     *     PEERING_RANGE_NAME_3=managed-notebooks-range-c
     *     gcloud compute addresses create $PEERING_RANGE_NAME_3 &#92;
     *       --global &#92;
     *       --prefix-length=24 &#92;
     *       --description="Google Cloud Managed Notebooks Range 24 c" &#92;
     *       --network=$NETWORK &#92;
     *       --addresses=192.168.0.0 &#92;
     *       --purpose=VPC_PEERING
     * Field value will be: `managed-notebooks-range-c`
     * </pre>
     *
     * <code>string reserved_ip_range = 18 [(.google.api.field_behavior) = OPTIONAL];</code>
     *
     * @return The bytes for reservedIpRange.
     */
    public com.google.protobuf.ByteString getReservedIpRangeBytes() {
      java.lang.Object ref = reservedIpRange_;
      if (ref instanceof String) {
        com.google.protobuf.ByteString b =
            com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
        reservedIpRange_ = b;
        return b;
      } else {
        return (com.google.protobuf.ByteString) ref;
      }
    }
    /**
     *
     *
     * <pre>
     * Optional. Reserved IP Range name is used for VPC Peering.
     * The subnetwork allocation will use the range *name* if it's assigned.
     * Example: managed-notebooks-range-c
     *     PEERING_RANGE_NAME_3=managed-notebooks-range-c
     *     gcloud compute addresses create $PEERING_RANGE_NAME_3 &#92;
     *       --global &#92;
     *       --prefix-length=24 &#92;
     *       --description="Google Cloud Managed Notebooks Range 24 c" &#92;
     *       --network=$NETWORK &#92;
     *       --addresses=192.168.0.0 &#92;
     *       --purpose=VPC_PEERING
     * Field value will be: `managed-notebooks-range-c`
     * </pre>
     *
     * <code>string reserved_ip_range = 18 [(.google.api.field_behavior) = OPTIONAL];</code>
     *
     * @param value The reservedIpRange to set.
     * @return This builder for chaining.
     */
    public Builder setReservedIpRange(java.lang.String value) {
      if (value == null) {
        throw new NullPointerException();
      }
      reservedIpRange_ = value;
      bitField0_ |= 0x00008000;
      onChanged();
      return this;
    }
    /**
     *
     *
     * <pre>
     * Optional. Reserved IP Range name is used for VPC Peering.
     * The subnetwork allocation will use the range *name* if it's assigned.
     * Example: managed-notebooks-range-c
     *     PEERING_RANGE_NAME_3=managed-notebooks-range-c
     *     gcloud compute addresses create $PEERING_RANGE_NAME_3 &#92;
     *       --global &#92;
     *       --prefix-length=24 &#92;
     *       --description="Google Cloud Managed Notebooks Range 24 c" &#92;
     *       --network=$NETWORK &#92;
     *       --addresses=192.168.0.0 &#92;
     *       --purpose=VPC_PEERING
     * Field value will be: `managed-notebooks-range-c`
     * </pre>
     *
     * <code>string reserved_ip_range = 18 [(.google.api.field_behavior) = OPTIONAL];</code>
     *
     * @return This builder for chaining.
     */
    public Builder clearReservedIpRange() {
      reservedIpRange_ = getDefaultInstance().getReservedIpRange();
      bitField0_ = (bitField0_ & ~0x00008000);
      onChanged();
      return this;
    }
    /**
     *
     *
     * <pre>
     * Optional. Reserved IP Range name is used for VPC Peering.
     * The subnetwork allocation will use the range *name* if it's assigned.
     * Example: managed-notebooks-range-c
     *     PEERING_RANGE_NAME_3=managed-notebooks-range-c
     *     gcloud compute addresses create $PEERING_RANGE_NAME_3 &#92;
     *       --global &#92;
     *       --prefix-length=24 &#92;
     *       --description="Google Cloud Managed Notebooks Range 24 c" &#92;
     *       --network=$NETWORK &#92;
     *       --addresses=192.168.0.0 &#92;
     *       --purpose=VPC_PEERING
     * Field value will be: `managed-notebooks-range-c`
     * </pre>
     *
     * <code>string reserved_ip_range = 18 [(.google.api.field_behavior) = OPTIONAL];</code>
     *
     * @param value The bytes for reservedIpRange to set.
     * @return This builder for chaining.
     */
    public Builder setReservedIpRangeBytes(com.google.protobuf.ByteString value) {
      if (value == null) {
        throw new NullPointerException();
      }
      checkByteStringIsUtf8(value);
      reservedIpRange_ = value;
      bitField0_ |= 0x00008000;
      onChanged();
      return this;
    }

    private com.google.cloud.notebooks.v1.VirtualMachineConfig.BootImage bootImage_;
    private com.google.protobuf.SingleFieldBuilderV3<
            com.google.cloud.notebooks.v1.VirtualMachineConfig.BootImage,
            com.google.cloud.notebooks.v1.VirtualMachineConfig.BootImage.Builder,
            com.google.cloud.notebooks.v1.VirtualMachineConfig.BootImageOrBuilder>
        bootImageBuilder_;
    /**
     *
     *
     * <pre>
     * Optional. Boot image metadata used for runtime upgradeability.
     * </pre>
     *
     * <code>
     * .google.cloud.notebooks.v1.VirtualMachineConfig.BootImage boot_image = 19 [(.google.api.field_behavior) = OPTIONAL];
     * </code>
     *
     * @return Whether the bootImage field is set.
     */
    public boolean hasBootImage() {
      return ((bitField0_ & 0x00010000) != 0);
    }
    /**
     *
     *
     * <pre>
     * Optional. Boot image metadata used for runtime upgradeability.
     * </pre>
     *
     * <code>
     * .google.cloud.notebooks.v1.VirtualMachineConfig.BootImage boot_image = 19 [(.google.api.field_behavior) = OPTIONAL];
     * </code>
     *
     * @return The bootImage.
     */
    public com.google.cloud.notebooks.v1.VirtualMachineConfig.BootImage getBootImage() {
      if (bootImageBuilder_ == null) {
        return bootImage_ == null
            ? com.google.cloud.notebooks.v1.VirtualMachineConfig.BootImage.getDefaultInstance()
            : bootImage_;
      } else {
        return bootImageBuilder_.getMessage();
      }
    }
    /**
     *
     *
     * <pre>
     * Optional. Boot image metadata used for runtime upgradeability.
     * </pre>
     *
     * <code>
     * .google.cloud.notebooks.v1.VirtualMachineConfig.BootImage boot_image = 19 [(.google.api.field_behavior) = OPTIONAL];
     * </code>
     */
    public Builder setBootImage(
        com.google.cloud.notebooks.v1.VirtualMachineConfig.BootImage value) {
      if (bootImageBuilder_ == null) {
        if (value == null) {
          throw new NullPointerException();
        }
        bootImage_ = value;
      } else {
        bootImageBuilder_.setMessage(value);
      }
      bitField0_ |= 0x00010000;
      onChanged();
      return this;
    }
    /**
     *
     *
     * <pre>
     * Optional. Boot image metadata used for runtime upgradeability.
     * </pre>
     *
     * <code>
     * .google.cloud.notebooks.v1.VirtualMachineConfig.BootImage boot_image = 19 [(.google.api.field_behavior) = OPTIONAL];
     * </code>
     */
    public Builder setBootImage(
        com.google.cloud.notebooks.v1.VirtualMachineConfig.BootImage.Builder builderForValue) {
      if (bootImageBuilder_ == null) {
        bootImage_ = builderForValue.build();
      } else {
        bootImageBuilder_.setMessage(builderForValue.build());
      }
      bitField0_ |= 0x00010000;
      onChanged();
      return this;
    }
    /**
     *
     *
     * <pre>
     * Optional. Boot image metadata used for runtime upgradeability.
     * </pre>
     *
     * <code>
     * .google.cloud.notebooks.v1.VirtualMachineConfig.BootImage boot_image = 19 [(.google.api.field_behavior) = OPTIONAL];
     * </code>
     */
    public Builder mergeBootImage(
        com.google.cloud.notebooks.v1.VirtualMachineConfig.BootImage value) {
      if (bootImageBuilder_ == null) {
        if (((bitField0_ & 0x00010000) != 0)
            && bootImage_ != null
            && bootImage_
                != com.google.cloud.notebooks.v1.VirtualMachineConfig.BootImage
                    .getDefaultInstance()) {
          getBootImageBuilder().mergeFrom(value);
        } else {
          bootImage_ = value;
        }
      } else {
        bootImageBuilder_.mergeFrom(value);
      }
      bitField0_ |= 0x00010000;
      onChanged();
      return this;
    }
    /**
     *
     *
     * <pre>
     * Optional. Boot image metadata used for runtime upgradeability.
     * </pre>
     *
     * <code>
     * .google.cloud.notebooks.v1.VirtualMachineConfig.BootImage boot_image = 19 [(.google.api.field_behavior) = OPTIONAL];
     * </code>
     */
    public Builder clearBootImage() {
      bitField0_ = (bitField0_ & ~0x00010000);
      bootImage_ = null;
      if (bootImageBuilder_ != null) {
        bootImageBuilder_.dispose();
        bootImageBuilder_ = null;
      }
      onChanged();
      return this;
    }
    /**
     *
     *
     * <pre>
     * Optional. Boot image metadata used for runtime upgradeability.
     * </pre>
     *
     * <code>
     * .google.cloud.notebooks.v1.VirtualMachineConfig.BootImage boot_image = 19 [(.google.api.field_behavior) = OPTIONAL];
     * </code>
     */
    public com.google.cloud.notebooks.v1.VirtualMachineConfig.BootImage.Builder
        getBootImageBuilder() {
      bitField0_ |= 0x00010000;
      onChanged();
      return getBootImageFieldBuilder().getBuilder();
    }
    /**
     *
     *
     * <pre>
     * Optional. Boot image metadata used for runtime upgradeability.
     * </pre>
     *
     * <code>
     * .google.cloud.notebooks.v1.VirtualMachineConfig.BootImage boot_image = 19 [(.google.api.field_behavior) = OPTIONAL];
     * </code>
     */
    public com.google.cloud.notebooks.v1.VirtualMachineConfig.BootImageOrBuilder
        getBootImageOrBuilder() {
      if (bootImageBuilder_ != null) {
        return bootImageBuilder_.getMessageOrBuilder();
      } else {
        return bootImage_ == null
            ? com.google.cloud.notebooks.v1.VirtualMachineConfig.BootImage.getDefaultInstance()
            : bootImage_;
      }
    }
    /**
     *
     *
     * <pre>
     * Optional. Boot image metadata used for runtime upgradeability.
     * </pre>
     *
     * <code>
     * .google.cloud.notebooks.v1.VirtualMachineConfig.BootImage boot_image = 19 [(.google.api.field_behavior) = OPTIONAL];
     * </code>
     */
    private com.google.protobuf.SingleFieldBuilderV3<
            com.google.cloud.notebooks.v1.VirtualMachineConfig.BootImage,
            com.google.cloud.notebooks.v1.VirtualMachineConfig.BootImage.Builder,
            com.google.cloud.notebooks.v1.VirtualMachineConfig.BootImageOrBuilder>
        getBootImageFieldBuilder() {
      if (bootImageBuilder_ == null) {
        bootImageBuilder_ =
            new com.google.protobuf.SingleFieldBuilderV3<
                com.google.cloud.notebooks.v1.VirtualMachineConfig.BootImage,
                com.google.cloud.notebooks.v1.VirtualMachineConfig.BootImage.Builder,
                com.google.cloud.notebooks.v1.VirtualMachineConfig.BootImageOrBuilder>(
                getBootImage(), getParentForChildren(), isClean());
        bootImage_ = null;
      }
      return bootImageBuilder_;
    }

    @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.VirtualMachineConfig)
  }

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

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

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

  private static final com.google.protobuf.Parser<VirtualMachineConfig> PARSER =
      new com.google.protobuf.AbstractParser<VirtualMachineConfig>() {
        @java.lang.Override
        public VirtualMachineConfig 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<VirtualMachineConfig> parser() {
    return PARSER;
  }

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

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