/*
 * 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/dataplex/v1/analyze.proto

package com.google.cloud.dataplex.v1;

/**
 *
 *
 * <pre>
 * Environment represents a user-visible compute infrastructure for analytics
 * within a lake.
 * </pre>
 *
 * Protobuf type {@code google.cloud.dataplex.v1.Environment}
 */
public final class Environment extends com.google.protobuf.GeneratedMessageV3
    implements
    // @@protoc_insertion_point(message_implements:google.cloud.dataplex.v1.Environment)
    EnvironmentOrBuilder {
  private static final long serialVersionUID = 0L;
  // Use Environment.newBuilder() to construct.
  private Environment(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {
    super(builder);
  }

  private Environment() {
    name_ = "";
    displayName_ = "";
    uid_ = "";
    description_ = "";
    state_ = 0;
  }

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

  @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.dataplex.v1.AnalyzeProto
        .internal_static_google_cloud_dataplex_v1_Environment_descriptor;
  }

  @SuppressWarnings({"rawtypes"})
  @java.lang.Override
  protected com.google.protobuf.MapField internalGetMapField(int number) {
    switch (number) {
      case 6:
        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.dataplex.v1.AnalyzeProto
        .internal_static_google_cloud_dataplex_v1_Environment_fieldAccessorTable
        .ensureFieldAccessorsInitialized(
            com.google.cloud.dataplex.v1.Environment.class,
            com.google.cloud.dataplex.v1.Environment.Builder.class);
  }

  public interface InfrastructureSpecOrBuilder
      extends
      // @@protoc_insertion_point(interface_extends:google.cloud.dataplex.v1.Environment.InfrastructureSpec)
      com.google.protobuf.MessageOrBuilder {

    /**
     *
     *
     * <pre>
     * Optional. Compute resources needed for analyze interactive workloads.
     * </pre>
     *
     * <code>
     * .google.cloud.dataplex.v1.Environment.InfrastructureSpec.ComputeResources compute = 50 [(.google.api.field_behavior) = OPTIONAL];
     * </code>
     *
     * @return Whether the compute field is set.
     */
    boolean hasCompute();
    /**
     *
     *
     * <pre>
     * Optional. Compute resources needed for analyze interactive workloads.
     * </pre>
     *
     * <code>
     * .google.cloud.dataplex.v1.Environment.InfrastructureSpec.ComputeResources compute = 50 [(.google.api.field_behavior) = OPTIONAL];
     * </code>
     *
     * @return The compute.
     */
    com.google.cloud.dataplex.v1.Environment.InfrastructureSpec.ComputeResources getCompute();
    /**
     *
     *
     * <pre>
     * Optional. Compute resources needed for analyze interactive workloads.
     * </pre>
     *
     * <code>
     * .google.cloud.dataplex.v1.Environment.InfrastructureSpec.ComputeResources compute = 50 [(.google.api.field_behavior) = OPTIONAL];
     * </code>
     */
    com.google.cloud.dataplex.v1.Environment.InfrastructureSpec.ComputeResourcesOrBuilder
        getComputeOrBuilder();

    /**
     *
     *
     * <pre>
     * Required. Software Runtime Configuration for analyze interactive
     * workloads.
     * </pre>
     *
     * <code>
     * .google.cloud.dataplex.v1.Environment.InfrastructureSpec.OsImageRuntime os_image = 100 [(.google.api.field_behavior) = REQUIRED];
     * </code>
     *
     * @return Whether the osImage field is set.
     */
    boolean hasOsImage();
    /**
     *
     *
     * <pre>
     * Required. Software Runtime Configuration for analyze interactive
     * workloads.
     * </pre>
     *
     * <code>
     * .google.cloud.dataplex.v1.Environment.InfrastructureSpec.OsImageRuntime os_image = 100 [(.google.api.field_behavior) = REQUIRED];
     * </code>
     *
     * @return The osImage.
     */
    com.google.cloud.dataplex.v1.Environment.InfrastructureSpec.OsImageRuntime getOsImage();
    /**
     *
     *
     * <pre>
     * Required. Software Runtime Configuration for analyze interactive
     * workloads.
     * </pre>
     *
     * <code>
     * .google.cloud.dataplex.v1.Environment.InfrastructureSpec.OsImageRuntime os_image = 100 [(.google.api.field_behavior) = REQUIRED];
     * </code>
     */
    com.google.cloud.dataplex.v1.Environment.InfrastructureSpec.OsImageRuntimeOrBuilder
        getOsImageOrBuilder();

    public com.google.cloud.dataplex.v1.Environment.InfrastructureSpec.ResourcesCase
        getResourcesCase();

    public com.google.cloud.dataplex.v1.Environment.InfrastructureSpec.RuntimeCase getRuntimeCase();
  }
  /**
   *
   *
   * <pre>
   * Configuration for the underlying infrastructure used to run workloads.
   * </pre>
   *
   * Protobuf type {@code google.cloud.dataplex.v1.Environment.InfrastructureSpec}
   */
  public static final class InfrastructureSpec extends com.google.protobuf.GeneratedMessageV3
      implements
      // @@protoc_insertion_point(message_implements:google.cloud.dataplex.v1.Environment.InfrastructureSpec)
      InfrastructureSpecOrBuilder {
    private static final long serialVersionUID = 0L;
    // Use InfrastructureSpec.newBuilder() to construct.
    private InfrastructureSpec(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {
      super(builder);
    }

    private InfrastructureSpec() {}

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

    @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.dataplex.v1.AnalyzeProto
          .internal_static_google_cloud_dataplex_v1_Environment_InfrastructureSpec_descriptor;
    }

    @java.lang.Override
    protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
        internalGetFieldAccessorTable() {
      return com.google.cloud.dataplex.v1.AnalyzeProto
          .internal_static_google_cloud_dataplex_v1_Environment_InfrastructureSpec_fieldAccessorTable
          .ensureFieldAccessorsInitialized(
              com.google.cloud.dataplex.v1.Environment.InfrastructureSpec.class,
              com.google.cloud.dataplex.v1.Environment.InfrastructureSpec.Builder.class);
    }

    public interface ComputeResourcesOrBuilder
        extends
        // @@protoc_insertion_point(interface_extends:google.cloud.dataplex.v1.Environment.InfrastructureSpec.ComputeResources)
        com.google.protobuf.MessageOrBuilder {

      /**
       *
       *
       * <pre>
       * Optional. Size in GB of the disk. Default is 100 GB.
       * </pre>
       *
       * <code>int32 disk_size_gb = 1 [(.google.api.field_behavior) = OPTIONAL];</code>
       *
       * @return The diskSizeGb.
       */
      int getDiskSizeGb();

      /**
       *
       *
       * <pre>
       * Optional. Total number of nodes in the sessions created for this
       * environment.
       * </pre>
       *
       * <code>int32 node_count = 2 [(.google.api.field_behavior) = OPTIONAL];</code>
       *
       * @return The nodeCount.
       */
      int getNodeCount();

      /**
       *
       *
       * <pre>
       * Optional. Max configurable nodes.
       * If max_node_count &gt; node_count, then auto-scaling is enabled.
       * </pre>
       *
       * <code>int32 max_node_count = 3 [(.google.api.field_behavior) = OPTIONAL];</code>
       *
       * @return The maxNodeCount.
       */
      int getMaxNodeCount();
    }
    /**
     *
     *
     * <pre>
     * Compute resources associated with the analyze interactive workloads.
     * </pre>
     *
     * Protobuf type {@code
     * google.cloud.dataplex.v1.Environment.InfrastructureSpec.ComputeResources}
     */
    public static final class ComputeResources extends com.google.protobuf.GeneratedMessageV3
        implements
        // @@protoc_insertion_point(message_implements:google.cloud.dataplex.v1.Environment.InfrastructureSpec.ComputeResources)
        ComputeResourcesOrBuilder {
      private static final long serialVersionUID = 0L;
      // Use ComputeResources.newBuilder() to construct.
      private ComputeResources(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {
        super(builder);
      }

      private ComputeResources() {}

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

      @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.dataplex.v1.AnalyzeProto
            .internal_static_google_cloud_dataplex_v1_Environment_InfrastructureSpec_ComputeResources_descriptor;
      }

      @java.lang.Override
      protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
          internalGetFieldAccessorTable() {
        return com.google.cloud.dataplex.v1.AnalyzeProto
            .internal_static_google_cloud_dataplex_v1_Environment_InfrastructureSpec_ComputeResources_fieldAccessorTable
            .ensureFieldAccessorsInitialized(
                com.google.cloud.dataplex.v1.Environment.InfrastructureSpec.ComputeResources.class,
                com.google.cloud.dataplex.v1.Environment.InfrastructureSpec.ComputeResources.Builder
                    .class);
      }

      public static final int DISK_SIZE_GB_FIELD_NUMBER = 1;
      private int diskSizeGb_ = 0;
      /**
       *
       *
       * <pre>
       * Optional. Size in GB of the disk. Default is 100 GB.
       * </pre>
       *
       * <code>int32 disk_size_gb = 1 [(.google.api.field_behavior) = OPTIONAL];</code>
       *
       * @return The diskSizeGb.
       */
      @java.lang.Override
      public int getDiskSizeGb() {
        return diskSizeGb_;
      }

      public static final int NODE_COUNT_FIELD_NUMBER = 2;
      private int nodeCount_ = 0;
      /**
       *
       *
       * <pre>
       * Optional. Total number of nodes in the sessions created for this
       * environment.
       * </pre>
       *
       * <code>int32 node_count = 2 [(.google.api.field_behavior) = OPTIONAL];</code>
       *
       * @return The nodeCount.
       */
      @java.lang.Override
      public int getNodeCount() {
        return nodeCount_;
      }

      public static final int MAX_NODE_COUNT_FIELD_NUMBER = 3;
      private int maxNodeCount_ = 0;
      /**
       *
       *
       * <pre>
       * Optional. Max configurable nodes.
       * If max_node_count &gt; node_count, then auto-scaling is enabled.
       * </pre>
       *
       * <code>int32 max_node_count = 3 [(.google.api.field_behavior) = OPTIONAL];</code>
       *
       * @return The maxNodeCount.
       */
      @java.lang.Override
      public int getMaxNodeCount() {
        return maxNodeCount_;
      }

      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 (diskSizeGb_ != 0) {
          output.writeInt32(1, diskSizeGb_);
        }
        if (nodeCount_ != 0) {
          output.writeInt32(2, nodeCount_);
        }
        if (maxNodeCount_ != 0) {
          output.writeInt32(3, maxNodeCount_);
        }
        getUnknownFields().writeTo(output);
      }

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

        size = 0;
        if (diskSizeGb_ != 0) {
          size += com.google.protobuf.CodedOutputStream.computeInt32Size(1, diskSizeGb_);
        }
        if (nodeCount_ != 0) {
          size += com.google.protobuf.CodedOutputStream.computeInt32Size(2, nodeCount_);
        }
        if (maxNodeCount_ != 0) {
          size += com.google.protobuf.CodedOutputStream.computeInt32Size(3, maxNodeCount_);
        }
        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.dataplex.v1.Environment.InfrastructureSpec.ComputeResources)) {
          return super.equals(obj);
        }
        com.google.cloud.dataplex.v1.Environment.InfrastructureSpec.ComputeResources other =
            (com.google.cloud.dataplex.v1.Environment.InfrastructureSpec.ComputeResources) obj;

        if (getDiskSizeGb() != other.getDiskSizeGb()) return false;
        if (getNodeCount() != other.getNodeCount()) return false;
        if (getMaxNodeCount() != other.getMaxNodeCount()) 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) + DISK_SIZE_GB_FIELD_NUMBER;
        hash = (53 * hash) + getDiskSizeGb();
        hash = (37 * hash) + NODE_COUNT_FIELD_NUMBER;
        hash = (53 * hash) + getNodeCount();
        hash = (37 * hash) + MAX_NODE_COUNT_FIELD_NUMBER;
        hash = (53 * hash) + getMaxNodeCount();
        hash = (29 * hash) + getUnknownFields().hashCode();
        memoizedHashCode = hash;
        return hash;
      }

      public static com.google.cloud.dataplex.v1.Environment.InfrastructureSpec.ComputeResources
          parseFrom(java.nio.ByteBuffer data)
              throws com.google.protobuf.InvalidProtocolBufferException {
        return PARSER.parseFrom(data);
      }

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

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

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

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

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

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

      public static com.google.cloud.dataplex.v1.Environment.InfrastructureSpec.ComputeResources
          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.dataplex.v1.Environment.InfrastructureSpec.ComputeResources 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>
       * Compute resources associated with the analyze interactive workloads.
       * </pre>
       *
       * Protobuf type {@code
       * google.cloud.dataplex.v1.Environment.InfrastructureSpec.ComputeResources}
       */
      public static final class Builder
          extends com.google.protobuf.GeneratedMessageV3.Builder<Builder>
          implements
          // @@protoc_insertion_point(builder_implements:google.cloud.dataplex.v1.Environment.InfrastructureSpec.ComputeResources)
          com.google.cloud.dataplex.v1.Environment.InfrastructureSpec.ComputeResourcesOrBuilder {
        public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
          return com.google.cloud.dataplex.v1.AnalyzeProto
              .internal_static_google_cloud_dataplex_v1_Environment_InfrastructureSpec_ComputeResources_descriptor;
        }

        @java.lang.Override
        protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
            internalGetFieldAccessorTable() {
          return com.google.cloud.dataplex.v1.AnalyzeProto
              .internal_static_google_cloud_dataplex_v1_Environment_InfrastructureSpec_ComputeResources_fieldAccessorTable
              .ensureFieldAccessorsInitialized(
                  com.google.cloud.dataplex.v1.Environment.InfrastructureSpec.ComputeResources
                      .class,
                  com.google.cloud.dataplex.v1.Environment.InfrastructureSpec.ComputeResources
                      .Builder.class);
        }

        // Construct using
        // com.google.cloud.dataplex.v1.Environment.InfrastructureSpec.ComputeResources.newBuilder()
        private Builder() {}

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

        @java.lang.Override
        public Builder clear() {
          super.clear();
          bitField0_ = 0;
          diskSizeGb_ = 0;
          nodeCount_ = 0;
          maxNodeCount_ = 0;
          return this;
        }

        @java.lang.Override
        public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
          return com.google.cloud.dataplex.v1.AnalyzeProto
              .internal_static_google_cloud_dataplex_v1_Environment_InfrastructureSpec_ComputeResources_descriptor;
        }

        @java.lang.Override
        public com.google.cloud.dataplex.v1.Environment.InfrastructureSpec.ComputeResources
            getDefaultInstanceForType() {
          return com.google.cloud.dataplex.v1.Environment.InfrastructureSpec.ComputeResources
              .getDefaultInstance();
        }

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

        @java.lang.Override
        public com.google.cloud.dataplex.v1.Environment.InfrastructureSpec.ComputeResources
            buildPartial() {
          com.google.cloud.dataplex.v1.Environment.InfrastructureSpec.ComputeResources result =
              new com.google.cloud.dataplex.v1.Environment.InfrastructureSpec.ComputeResources(
                  this);
          if (bitField0_ != 0) {
            buildPartial0(result);
          }
          onBuilt();
          return result;
        }

        private void buildPartial0(
            com.google.cloud.dataplex.v1.Environment.InfrastructureSpec.ComputeResources result) {
          int from_bitField0_ = bitField0_;
          if (((from_bitField0_ & 0x00000001) != 0)) {
            result.diskSizeGb_ = diskSizeGb_;
          }
          if (((from_bitField0_ & 0x00000002) != 0)) {
            result.nodeCount_ = nodeCount_;
          }
          if (((from_bitField0_ & 0x00000004) != 0)) {
            result.maxNodeCount_ = maxNodeCount_;
          }
        }

        @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.dataplex.v1.Environment.InfrastructureSpec.ComputeResources) {
            return mergeFrom(
                (com.google.cloud.dataplex.v1.Environment.InfrastructureSpec.ComputeResources)
                    other);
          } else {
            super.mergeFrom(other);
            return this;
          }
        }

        public Builder mergeFrom(
            com.google.cloud.dataplex.v1.Environment.InfrastructureSpec.ComputeResources other) {
          if (other
              == com.google.cloud.dataplex.v1.Environment.InfrastructureSpec.ComputeResources
                  .getDefaultInstance()) return this;
          if (other.getDiskSizeGb() != 0) {
            setDiskSizeGb(other.getDiskSizeGb());
          }
          if (other.getNodeCount() != 0) {
            setNodeCount(other.getNodeCount());
          }
          if (other.getMaxNodeCount() != 0) {
            setMaxNodeCount(other.getMaxNodeCount());
          }
          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 8:
                  {
                    diskSizeGb_ = input.readInt32();
                    bitField0_ |= 0x00000001;
                    break;
                  } // case 8
                case 16:
                  {
                    nodeCount_ = input.readInt32();
                    bitField0_ |= 0x00000002;
                    break;
                  } // case 16
                case 24:
                  {
                    maxNodeCount_ = input.readInt32();
                    bitField0_ |= 0x00000004;
                    break;
                  } // case 24
                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 int diskSizeGb_;
        /**
         *
         *
         * <pre>
         * Optional. Size in GB of the disk. Default is 100 GB.
         * </pre>
         *
         * <code>int32 disk_size_gb = 1 [(.google.api.field_behavior) = OPTIONAL];</code>
         *
         * @return The diskSizeGb.
         */
        @java.lang.Override
        public int getDiskSizeGb() {
          return diskSizeGb_;
        }
        /**
         *
         *
         * <pre>
         * Optional. Size in GB of the disk. Default is 100 GB.
         * </pre>
         *
         * <code>int32 disk_size_gb = 1 [(.google.api.field_behavior) = OPTIONAL];</code>
         *
         * @param value The diskSizeGb to set.
         * @return This builder for chaining.
         */
        public Builder setDiskSizeGb(int value) {

          diskSizeGb_ = value;
          bitField0_ |= 0x00000001;
          onChanged();
          return this;
        }
        /**
         *
         *
         * <pre>
         * Optional. Size in GB of the disk. Default is 100 GB.
         * </pre>
         *
         * <code>int32 disk_size_gb = 1 [(.google.api.field_behavior) = OPTIONAL];</code>
         *
         * @return This builder for chaining.
         */
        public Builder clearDiskSizeGb() {
          bitField0_ = (bitField0_ & ~0x00000001);
          diskSizeGb_ = 0;
          onChanged();
          return this;
        }

        private int nodeCount_;
        /**
         *
         *
         * <pre>
         * Optional. Total number of nodes in the sessions created for this
         * environment.
         * </pre>
         *
         * <code>int32 node_count = 2 [(.google.api.field_behavior) = OPTIONAL];</code>
         *
         * @return The nodeCount.
         */
        @java.lang.Override
        public int getNodeCount() {
          return nodeCount_;
        }
        /**
         *
         *
         * <pre>
         * Optional. Total number of nodes in the sessions created for this
         * environment.
         * </pre>
         *
         * <code>int32 node_count = 2 [(.google.api.field_behavior) = OPTIONAL];</code>
         *
         * @param value The nodeCount to set.
         * @return This builder for chaining.
         */
        public Builder setNodeCount(int value) {

          nodeCount_ = value;
          bitField0_ |= 0x00000002;
          onChanged();
          return this;
        }
        /**
         *
         *
         * <pre>
         * Optional. Total number of nodes in the sessions created for this
         * environment.
         * </pre>
         *
         * <code>int32 node_count = 2 [(.google.api.field_behavior) = OPTIONAL];</code>
         *
         * @return This builder for chaining.
         */
        public Builder clearNodeCount() {
          bitField0_ = (bitField0_ & ~0x00000002);
          nodeCount_ = 0;
          onChanged();
          return this;
        }

        private int maxNodeCount_;
        /**
         *
         *
         * <pre>
         * Optional. Max configurable nodes.
         * If max_node_count &gt; node_count, then auto-scaling is enabled.
         * </pre>
         *
         * <code>int32 max_node_count = 3 [(.google.api.field_behavior) = OPTIONAL];</code>
         *
         * @return The maxNodeCount.
         */
        @java.lang.Override
        public int getMaxNodeCount() {
          return maxNodeCount_;
        }
        /**
         *
         *
         * <pre>
         * Optional. Max configurable nodes.
         * If max_node_count &gt; node_count, then auto-scaling is enabled.
         * </pre>
         *
         * <code>int32 max_node_count = 3 [(.google.api.field_behavior) = OPTIONAL];</code>
         *
         * @param value The maxNodeCount to set.
         * @return This builder for chaining.
         */
        public Builder setMaxNodeCount(int value) {

          maxNodeCount_ = value;
          bitField0_ |= 0x00000004;
          onChanged();
          return this;
        }
        /**
         *
         *
         * <pre>
         * Optional. Max configurable nodes.
         * If max_node_count &gt; node_count, then auto-scaling is enabled.
         * </pre>
         *
         * <code>int32 max_node_count = 3 [(.google.api.field_behavior) = OPTIONAL];</code>
         *
         * @return This builder for chaining.
         */
        public Builder clearMaxNodeCount() {
          bitField0_ = (bitField0_ & ~0x00000004);
          maxNodeCount_ = 0;
          onChanged();
          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.dataplex.v1.Environment.InfrastructureSpec.ComputeResources)
      }

      // @@protoc_insertion_point(class_scope:google.cloud.dataplex.v1.Environment.InfrastructureSpec.ComputeResources)
      private static final com.google.cloud.dataplex.v1.Environment.InfrastructureSpec
              .ComputeResources
          DEFAULT_INSTANCE;

      static {
        DEFAULT_INSTANCE =
            new com.google.cloud.dataplex.v1.Environment.InfrastructureSpec.ComputeResources();
      }

      public static com.google.cloud.dataplex.v1.Environment.InfrastructureSpec.ComputeResources
          getDefaultInstance() {
        return DEFAULT_INSTANCE;
      }

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

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

      @java.lang.Override
      public com.google.cloud.dataplex.v1.Environment.InfrastructureSpec.ComputeResources
          getDefaultInstanceForType() {
        return DEFAULT_INSTANCE;
      }
    }

    public interface OsImageRuntimeOrBuilder
        extends
        // @@protoc_insertion_point(interface_extends:google.cloud.dataplex.v1.Environment.InfrastructureSpec.OsImageRuntime)
        com.google.protobuf.MessageOrBuilder {

      /**
       *
       *
       * <pre>
       * Required. Dataplex Image version.
       * </pre>
       *
       * <code>string image_version = 1 [(.google.api.field_behavior) = REQUIRED];</code>
       *
       * @return The imageVersion.
       */
      java.lang.String getImageVersion();
      /**
       *
       *
       * <pre>
       * Required. Dataplex Image version.
       * </pre>
       *
       * <code>string image_version = 1 [(.google.api.field_behavior) = REQUIRED];</code>
       *
       * @return The bytes for imageVersion.
       */
      com.google.protobuf.ByteString getImageVersionBytes();

      /**
       *
       *
       * <pre>
       * Optional. List of Java jars to be included in the runtime environment.
       * Valid input includes Cloud Storage URIs to Jar binaries.
       * For example, gs://bucket-name/my/path/to/file.jar
       * </pre>
       *
       * <code>repeated string java_libraries = 2 [(.google.api.field_behavior) = OPTIONAL];</code>
       *
       * @return A list containing the javaLibraries.
       */
      java.util.List<java.lang.String> getJavaLibrariesList();
      /**
       *
       *
       * <pre>
       * Optional. List of Java jars to be included in the runtime environment.
       * Valid input includes Cloud Storage URIs to Jar binaries.
       * For example, gs://bucket-name/my/path/to/file.jar
       * </pre>
       *
       * <code>repeated string java_libraries = 2 [(.google.api.field_behavior) = OPTIONAL];</code>
       *
       * @return The count of javaLibraries.
       */
      int getJavaLibrariesCount();
      /**
       *
       *
       * <pre>
       * Optional. List of Java jars to be included in the runtime environment.
       * Valid input includes Cloud Storage URIs to Jar binaries.
       * For example, gs://bucket-name/my/path/to/file.jar
       * </pre>
       *
       * <code>repeated string java_libraries = 2 [(.google.api.field_behavior) = OPTIONAL];</code>
       *
       * @param index The index of the element to return.
       * @return The javaLibraries at the given index.
       */
      java.lang.String getJavaLibraries(int index);
      /**
       *
       *
       * <pre>
       * Optional. List of Java jars to be included in the runtime environment.
       * Valid input includes Cloud Storage URIs to Jar binaries.
       * For example, gs://bucket-name/my/path/to/file.jar
       * </pre>
       *
       * <code>repeated string java_libraries = 2 [(.google.api.field_behavior) = OPTIONAL];</code>
       *
       * @param index The index of the value to return.
       * @return The bytes of the javaLibraries at the given index.
       */
      com.google.protobuf.ByteString getJavaLibrariesBytes(int index);

      /**
       *
       *
       * <pre>
       * Optional. A list of python packages to be installed.
       * Valid formats include Cloud Storage URI to a PIP installable library.
       * For example, gs://bucket-name/my/path/to/lib.tar.gz
       * </pre>
       *
       * <code>repeated string python_packages = 3 [(.google.api.field_behavior) = OPTIONAL];</code>
       *
       * @return A list containing the pythonPackages.
       */
      java.util.List<java.lang.String> getPythonPackagesList();
      /**
       *
       *
       * <pre>
       * Optional. A list of python packages to be installed.
       * Valid formats include Cloud Storage URI to a PIP installable library.
       * For example, gs://bucket-name/my/path/to/lib.tar.gz
       * </pre>
       *
       * <code>repeated string python_packages = 3 [(.google.api.field_behavior) = OPTIONAL];</code>
       *
       * @return The count of pythonPackages.
       */
      int getPythonPackagesCount();
      /**
       *
       *
       * <pre>
       * Optional. A list of python packages to be installed.
       * Valid formats include Cloud Storage URI to a PIP installable library.
       * For example, gs://bucket-name/my/path/to/lib.tar.gz
       * </pre>
       *
       * <code>repeated string python_packages = 3 [(.google.api.field_behavior) = OPTIONAL];</code>
       *
       * @param index The index of the element to return.
       * @return The pythonPackages at the given index.
       */
      java.lang.String getPythonPackages(int index);
      /**
       *
       *
       * <pre>
       * Optional. A list of python packages to be installed.
       * Valid formats include Cloud Storage URI to a PIP installable library.
       * For example, gs://bucket-name/my/path/to/lib.tar.gz
       * </pre>
       *
       * <code>repeated string python_packages = 3 [(.google.api.field_behavior) = OPTIONAL];</code>
       *
       * @param index The index of the value to return.
       * @return The bytes of the pythonPackages at the given index.
       */
      com.google.protobuf.ByteString getPythonPackagesBytes(int index);

      /**
       *
       *
       * <pre>
       * Optional. Spark properties to provide configuration for use in sessions
       * created for this environment. The properties to set on daemon config
       * files. Property keys are specified in `prefix:property` format. The
       * prefix must be "spark".
       * </pre>
       *
       * <code>map&lt;string, string&gt; properties = 4 [(.google.api.field_behavior) = OPTIONAL];
       * </code>
       */
      int getPropertiesCount();
      /**
       *
       *
       * <pre>
       * Optional. Spark properties to provide configuration for use in sessions
       * created for this environment. The properties to set on daemon config
       * files. Property keys are specified in `prefix:property` format. The
       * prefix must be "spark".
       * </pre>
       *
       * <code>map&lt;string, string&gt; properties = 4 [(.google.api.field_behavior) = OPTIONAL];
       * </code>
       */
      boolean containsProperties(java.lang.String key);
      /** Use {@link #getPropertiesMap()} instead. */
      @java.lang.Deprecated
      java.util.Map<java.lang.String, java.lang.String> getProperties();
      /**
       *
       *
       * <pre>
       * Optional. Spark properties to provide configuration for use in sessions
       * created for this environment. The properties to set on daemon config
       * files. Property keys are specified in `prefix:property` format. The
       * prefix must be "spark".
       * </pre>
       *
       * <code>map&lt;string, string&gt; properties = 4 [(.google.api.field_behavior) = OPTIONAL];
       * </code>
       */
      java.util.Map<java.lang.String, java.lang.String> getPropertiesMap();
      /**
       *
       *
       * <pre>
       * Optional. Spark properties to provide configuration for use in sessions
       * created for this environment. The properties to set on daemon config
       * files. Property keys are specified in `prefix:property` format. The
       * prefix must be "spark".
       * </pre>
       *
       * <code>map&lt;string, string&gt; properties = 4 [(.google.api.field_behavior) = OPTIONAL];
       * </code>
       */
      /* nullable */
      java.lang.String getPropertiesOrDefault(
          java.lang.String key,
          /* nullable */
          java.lang.String defaultValue);
      /**
       *
       *
       * <pre>
       * Optional. Spark properties to provide configuration for use in sessions
       * created for this environment. The properties to set on daemon config
       * files. Property keys are specified in `prefix:property` format. The
       * prefix must be "spark".
       * </pre>
       *
       * <code>map&lt;string, string&gt; properties = 4 [(.google.api.field_behavior) = OPTIONAL];
       * </code>
       */
      java.lang.String getPropertiesOrThrow(java.lang.String key);
    }
    /**
     *
     *
     * <pre>
     * Software Runtime Configuration to run Analyze.
     * </pre>
     *
     * Protobuf type {@code google.cloud.dataplex.v1.Environment.InfrastructureSpec.OsImageRuntime}
     */
    public static final class OsImageRuntime extends com.google.protobuf.GeneratedMessageV3
        implements
        // @@protoc_insertion_point(message_implements:google.cloud.dataplex.v1.Environment.InfrastructureSpec.OsImageRuntime)
        OsImageRuntimeOrBuilder {
      private static final long serialVersionUID = 0L;
      // Use OsImageRuntime.newBuilder() to construct.
      private OsImageRuntime(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {
        super(builder);
      }

      private OsImageRuntime() {
        imageVersion_ = "";
        javaLibraries_ = com.google.protobuf.LazyStringArrayList.EMPTY;
        pythonPackages_ = com.google.protobuf.LazyStringArrayList.EMPTY;
      }

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

      @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.dataplex.v1.AnalyzeProto
            .internal_static_google_cloud_dataplex_v1_Environment_InfrastructureSpec_OsImageRuntime_descriptor;
      }

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

      @java.lang.Override
      protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
          internalGetFieldAccessorTable() {
        return com.google.cloud.dataplex.v1.AnalyzeProto
            .internal_static_google_cloud_dataplex_v1_Environment_InfrastructureSpec_OsImageRuntime_fieldAccessorTable
            .ensureFieldAccessorsInitialized(
                com.google.cloud.dataplex.v1.Environment.InfrastructureSpec.OsImageRuntime.class,
                com.google.cloud.dataplex.v1.Environment.InfrastructureSpec.OsImageRuntime.Builder
                    .class);
      }

      public static final int IMAGE_VERSION_FIELD_NUMBER = 1;

      @SuppressWarnings("serial")
      private volatile java.lang.Object imageVersion_ = "";
      /**
       *
       *
       * <pre>
       * Required. Dataplex Image version.
       * </pre>
       *
       * <code>string image_version = 1 [(.google.api.field_behavior) = REQUIRED];</code>
       *
       * @return The imageVersion.
       */
      @java.lang.Override
      public java.lang.String getImageVersion() {
        java.lang.Object ref = imageVersion_;
        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();
          imageVersion_ = s;
          return s;
        }
      }
      /**
       *
       *
       * <pre>
       * Required. Dataplex Image version.
       * </pre>
       *
       * <code>string image_version = 1 [(.google.api.field_behavior) = REQUIRED];</code>
       *
       * @return The bytes for imageVersion.
       */
      @java.lang.Override
      public com.google.protobuf.ByteString getImageVersionBytes() {
        java.lang.Object ref = imageVersion_;
        if (ref instanceof java.lang.String) {
          com.google.protobuf.ByteString b =
              com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
          imageVersion_ = b;
          return b;
        } else {
          return (com.google.protobuf.ByteString) ref;
        }
      }

      public static final int JAVA_LIBRARIES_FIELD_NUMBER = 2;

      @SuppressWarnings("serial")
      private com.google.protobuf.LazyStringList javaLibraries_;
      /**
       *
       *
       * <pre>
       * Optional. List of Java jars to be included in the runtime environment.
       * Valid input includes Cloud Storage URIs to Jar binaries.
       * For example, gs://bucket-name/my/path/to/file.jar
       * </pre>
       *
       * <code>repeated string java_libraries = 2 [(.google.api.field_behavior) = OPTIONAL];</code>
       *
       * @return A list containing the javaLibraries.
       */
      public com.google.protobuf.ProtocolStringList getJavaLibrariesList() {
        return javaLibraries_;
      }
      /**
       *
       *
       * <pre>
       * Optional. List of Java jars to be included in the runtime environment.
       * Valid input includes Cloud Storage URIs to Jar binaries.
       * For example, gs://bucket-name/my/path/to/file.jar
       * </pre>
       *
       * <code>repeated string java_libraries = 2 [(.google.api.field_behavior) = OPTIONAL];</code>
       *
       * @return The count of javaLibraries.
       */
      public int getJavaLibrariesCount() {
        return javaLibraries_.size();
      }
      /**
       *
       *
       * <pre>
       * Optional. List of Java jars to be included in the runtime environment.
       * Valid input includes Cloud Storage URIs to Jar binaries.
       * For example, gs://bucket-name/my/path/to/file.jar
       * </pre>
       *
       * <code>repeated string java_libraries = 2 [(.google.api.field_behavior) = OPTIONAL];</code>
       *
       * @param index The index of the element to return.
       * @return The javaLibraries at the given index.
       */
      public java.lang.String getJavaLibraries(int index) {
        return javaLibraries_.get(index);
      }
      /**
       *
       *
       * <pre>
       * Optional. List of Java jars to be included in the runtime environment.
       * Valid input includes Cloud Storage URIs to Jar binaries.
       * For example, gs://bucket-name/my/path/to/file.jar
       * </pre>
       *
       * <code>repeated string java_libraries = 2 [(.google.api.field_behavior) = OPTIONAL];</code>
       *
       * @param index The index of the value to return.
       * @return The bytes of the javaLibraries at the given index.
       */
      public com.google.protobuf.ByteString getJavaLibrariesBytes(int index) {
        return javaLibraries_.getByteString(index);
      }

      public static final int PYTHON_PACKAGES_FIELD_NUMBER = 3;

      @SuppressWarnings("serial")
      private com.google.protobuf.LazyStringList pythonPackages_;
      /**
       *
       *
       * <pre>
       * Optional. A list of python packages to be installed.
       * Valid formats include Cloud Storage URI to a PIP installable library.
       * For example, gs://bucket-name/my/path/to/lib.tar.gz
       * </pre>
       *
       * <code>repeated string python_packages = 3 [(.google.api.field_behavior) = OPTIONAL];</code>
       *
       * @return A list containing the pythonPackages.
       */
      public com.google.protobuf.ProtocolStringList getPythonPackagesList() {
        return pythonPackages_;
      }
      /**
       *
       *
       * <pre>
       * Optional. A list of python packages to be installed.
       * Valid formats include Cloud Storage URI to a PIP installable library.
       * For example, gs://bucket-name/my/path/to/lib.tar.gz
       * </pre>
       *
       * <code>repeated string python_packages = 3 [(.google.api.field_behavior) = OPTIONAL];</code>
       *
       * @return The count of pythonPackages.
       */
      public int getPythonPackagesCount() {
        return pythonPackages_.size();
      }
      /**
       *
       *
       * <pre>
       * Optional. A list of python packages to be installed.
       * Valid formats include Cloud Storage URI to a PIP installable library.
       * For example, gs://bucket-name/my/path/to/lib.tar.gz
       * </pre>
       *
       * <code>repeated string python_packages = 3 [(.google.api.field_behavior) = OPTIONAL];</code>
       *
       * @param index The index of the element to return.
       * @return The pythonPackages at the given index.
       */
      public java.lang.String getPythonPackages(int index) {
        return pythonPackages_.get(index);
      }
      /**
       *
       *
       * <pre>
       * Optional. A list of python packages to be installed.
       * Valid formats include Cloud Storage URI to a PIP installable library.
       * For example, gs://bucket-name/my/path/to/lib.tar.gz
       * </pre>
       *
       * <code>repeated string python_packages = 3 [(.google.api.field_behavior) = OPTIONAL];</code>
       *
       * @param index The index of the value to return.
       * @return The bytes of the pythonPackages at the given index.
       */
      public com.google.protobuf.ByteString getPythonPackagesBytes(int index) {
        return pythonPackages_.getByteString(index);
      }

      public static final int PROPERTIES_FIELD_NUMBER = 4;

      private static final class PropertiesDefaultEntryHolder {
        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.dataplex.v1.AnalyzeProto
                    .internal_static_google_cloud_dataplex_v1_Environment_InfrastructureSpec_OsImageRuntime_PropertiesEntry_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> properties_;

      private com.google.protobuf.MapField<java.lang.String, java.lang.String>
          internalGetProperties() {
        if (properties_ == null) {
          return com.google.protobuf.MapField.emptyMapField(
              PropertiesDefaultEntryHolder.defaultEntry);
        }
        return properties_;
      }

      public int getPropertiesCount() {
        return internalGetProperties().getMap().size();
      }
      /**
       *
       *
       * <pre>
       * Optional. Spark properties to provide configuration for use in sessions
       * created for this environment. The properties to set on daemon config
       * files. Property keys are specified in `prefix:property` format. The
       * prefix must be "spark".
       * </pre>
       *
       * <code>map&lt;string, string&gt; properties = 4 [(.google.api.field_behavior) = OPTIONAL];
       * </code>
       */
      @java.lang.Override
      public boolean containsProperties(java.lang.String key) {
        if (key == null) {
          throw new NullPointerException("map key");
        }
        return internalGetProperties().getMap().containsKey(key);
      }
      /** Use {@link #getPropertiesMap()} instead. */
      @java.lang.Override
      @java.lang.Deprecated
      public java.util.Map<java.lang.String, java.lang.String> getProperties() {
        return getPropertiesMap();
      }
      /**
       *
       *
       * <pre>
       * Optional. Spark properties to provide configuration for use in sessions
       * created for this environment. The properties to set on daemon config
       * files. Property keys are specified in `prefix:property` format. The
       * prefix must be "spark".
       * </pre>
       *
       * <code>map&lt;string, string&gt; properties = 4 [(.google.api.field_behavior) = OPTIONAL];
       * </code>
       */
      @java.lang.Override
      public java.util.Map<java.lang.String, java.lang.String> getPropertiesMap() {
        return internalGetProperties().getMap();
      }
      /**
       *
       *
       * <pre>
       * Optional. Spark properties to provide configuration for use in sessions
       * created for this environment. The properties to set on daemon config
       * files. Property keys are specified in `prefix:property` format. The
       * prefix must be "spark".
       * </pre>
       *
       * <code>map&lt;string, string&gt; properties = 4 [(.google.api.field_behavior) = OPTIONAL];
       * </code>
       */
      @java.lang.Override
      public /* nullable */ java.lang.String getPropertiesOrDefault(
          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 = internalGetProperties().getMap();
        return map.containsKey(key) ? map.get(key) : defaultValue;
      }
      /**
       *
       *
       * <pre>
       * Optional. Spark properties to provide configuration for use in sessions
       * created for this environment. The properties to set on daemon config
       * files. Property keys are specified in `prefix:property` format. The
       * prefix must be "spark".
       * </pre>
       *
       * <code>map&lt;string, string&gt; properties = 4 [(.google.api.field_behavior) = OPTIONAL];
       * </code>
       */
      @java.lang.Override
      public java.lang.String getPropertiesOrThrow(java.lang.String key) {
        if (key == null) {
          throw new NullPointerException("map key");
        }
        java.util.Map<java.lang.String, java.lang.String> map = internalGetProperties().getMap();
        if (!map.containsKey(key)) {
          throw new java.lang.IllegalArgumentException();
        }
        return map.get(key);
      }

      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(imageVersion_)) {
          com.google.protobuf.GeneratedMessageV3.writeString(output, 1, imageVersion_);
        }
        for (int i = 0; i < javaLibraries_.size(); i++) {
          com.google.protobuf.GeneratedMessageV3.writeString(output, 2, javaLibraries_.getRaw(i));
        }
        for (int i = 0; i < pythonPackages_.size(); i++) {
          com.google.protobuf.GeneratedMessageV3.writeString(output, 3, pythonPackages_.getRaw(i));
        }
        com.google.protobuf.GeneratedMessageV3.serializeStringMapTo(
            output, internalGetProperties(), PropertiesDefaultEntryHolder.defaultEntry, 4);
        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(imageVersion_)) {
          size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, imageVersion_);
        }
        {
          int dataSize = 0;
          for (int i = 0; i < javaLibraries_.size(); i++) {
            dataSize += computeStringSizeNoTag(javaLibraries_.getRaw(i));
          }
          size += dataSize;
          size += 1 * getJavaLibrariesList().size();
        }
        {
          int dataSize = 0;
          for (int i = 0; i < pythonPackages_.size(); i++) {
            dataSize += computeStringSizeNoTag(pythonPackages_.getRaw(i));
          }
          size += dataSize;
          size += 1 * getPythonPackagesList().size();
        }
        for (java.util.Map.Entry<java.lang.String, java.lang.String> entry :
            internalGetProperties().getMap().entrySet()) {
          com.google.protobuf.MapEntry<java.lang.String, java.lang.String> properties__ =
              PropertiesDefaultEntryHolder.defaultEntry
                  .newBuilderForType()
                  .setKey(entry.getKey())
                  .setValue(entry.getValue())
                  .build();
          size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, properties__);
        }
        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.dataplex.v1.Environment.InfrastructureSpec.OsImageRuntime)) {
          return super.equals(obj);
        }
        com.google.cloud.dataplex.v1.Environment.InfrastructureSpec.OsImageRuntime other =
            (com.google.cloud.dataplex.v1.Environment.InfrastructureSpec.OsImageRuntime) obj;

        if (!getImageVersion().equals(other.getImageVersion())) return false;
        if (!getJavaLibrariesList().equals(other.getJavaLibrariesList())) return false;
        if (!getPythonPackagesList().equals(other.getPythonPackagesList())) return false;
        if (!internalGetProperties().equals(other.internalGetProperties())) 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) + IMAGE_VERSION_FIELD_NUMBER;
        hash = (53 * hash) + getImageVersion().hashCode();
        if (getJavaLibrariesCount() > 0) {
          hash = (37 * hash) + JAVA_LIBRARIES_FIELD_NUMBER;
          hash = (53 * hash) + getJavaLibrariesList().hashCode();
        }
        if (getPythonPackagesCount() > 0) {
          hash = (37 * hash) + PYTHON_PACKAGES_FIELD_NUMBER;
          hash = (53 * hash) + getPythonPackagesList().hashCode();
        }
        if (!internalGetProperties().getMap().isEmpty()) {
          hash = (37 * hash) + PROPERTIES_FIELD_NUMBER;
          hash = (53 * hash) + internalGetProperties().hashCode();
        }
        hash = (29 * hash) + getUnknownFields().hashCode();
        memoizedHashCode = hash;
        return hash;
      }

      public static com.google.cloud.dataplex.v1.Environment.InfrastructureSpec.OsImageRuntime
          parseFrom(java.nio.ByteBuffer data)
              throws com.google.protobuf.InvalidProtocolBufferException {
        return PARSER.parseFrom(data);
      }

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

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

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

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

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

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

      public static com.google.cloud.dataplex.v1.Environment.InfrastructureSpec.OsImageRuntime
          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.dataplex.v1.Environment.InfrastructureSpec.OsImageRuntime 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>
       * Software Runtime Configuration to run Analyze.
       * </pre>
       *
       * Protobuf type {@code
       * google.cloud.dataplex.v1.Environment.InfrastructureSpec.OsImageRuntime}
       */
      public static final class Builder
          extends com.google.protobuf.GeneratedMessageV3.Builder<Builder>
          implements
          // @@protoc_insertion_point(builder_implements:google.cloud.dataplex.v1.Environment.InfrastructureSpec.OsImageRuntime)
          com.google.cloud.dataplex.v1.Environment.InfrastructureSpec.OsImageRuntimeOrBuilder {
        public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
          return com.google.cloud.dataplex.v1.AnalyzeProto
              .internal_static_google_cloud_dataplex_v1_Environment_InfrastructureSpec_OsImageRuntime_descriptor;
        }

        @SuppressWarnings({"rawtypes"})
        protected com.google.protobuf.MapField internalGetMapField(int number) {
          switch (number) {
            case 4:
              return internalGetProperties();
            default:
              throw new RuntimeException("Invalid map field number: " + number);
          }
        }

        @SuppressWarnings({"rawtypes"})
        protected com.google.protobuf.MapField internalGetMutableMapField(int number) {
          switch (number) {
            case 4:
              return internalGetMutableProperties();
            default:
              throw new RuntimeException("Invalid map field number: " + number);
          }
        }

        @java.lang.Override
        protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
            internalGetFieldAccessorTable() {
          return com.google.cloud.dataplex.v1.AnalyzeProto
              .internal_static_google_cloud_dataplex_v1_Environment_InfrastructureSpec_OsImageRuntime_fieldAccessorTable
              .ensureFieldAccessorsInitialized(
                  com.google.cloud.dataplex.v1.Environment.InfrastructureSpec.OsImageRuntime.class,
                  com.google.cloud.dataplex.v1.Environment.InfrastructureSpec.OsImageRuntime.Builder
                      .class);
        }

        // Construct using
        // com.google.cloud.dataplex.v1.Environment.InfrastructureSpec.OsImageRuntime.newBuilder()
        private Builder() {}

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

        @java.lang.Override
        public Builder clear() {
          super.clear();
          bitField0_ = 0;
          imageVersion_ = "";
          javaLibraries_ = com.google.protobuf.LazyStringArrayList.EMPTY;
          bitField0_ = (bitField0_ & ~0x00000002);
          pythonPackages_ = com.google.protobuf.LazyStringArrayList.EMPTY;
          bitField0_ = (bitField0_ & ~0x00000004);
          internalGetMutableProperties().clear();
          return this;
        }

        @java.lang.Override
        public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
          return com.google.cloud.dataplex.v1.AnalyzeProto
              .internal_static_google_cloud_dataplex_v1_Environment_InfrastructureSpec_OsImageRuntime_descriptor;
        }

        @java.lang.Override
        public com.google.cloud.dataplex.v1.Environment.InfrastructureSpec.OsImageRuntime
            getDefaultInstanceForType() {
          return com.google.cloud.dataplex.v1.Environment.InfrastructureSpec.OsImageRuntime
              .getDefaultInstance();
        }

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

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

        private void buildPartialRepeatedFields(
            com.google.cloud.dataplex.v1.Environment.InfrastructureSpec.OsImageRuntime result) {
          if (((bitField0_ & 0x00000002) != 0)) {
            javaLibraries_ = javaLibraries_.getUnmodifiableView();
            bitField0_ = (bitField0_ & ~0x00000002);
          }
          result.javaLibraries_ = javaLibraries_;
          if (((bitField0_ & 0x00000004) != 0)) {
            pythonPackages_ = pythonPackages_.getUnmodifiableView();
            bitField0_ = (bitField0_ & ~0x00000004);
          }
          result.pythonPackages_ = pythonPackages_;
        }

        private void buildPartial0(
            com.google.cloud.dataplex.v1.Environment.InfrastructureSpec.OsImageRuntime result) {
          int from_bitField0_ = bitField0_;
          if (((from_bitField0_ & 0x00000001) != 0)) {
            result.imageVersion_ = imageVersion_;
          }
          if (((from_bitField0_ & 0x00000008) != 0)) {
            result.properties_ = internalGetProperties();
            result.properties_.makeImmutable();
          }
        }

        @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.dataplex.v1.Environment.InfrastructureSpec.OsImageRuntime) {
            return mergeFrom(
                (com.google.cloud.dataplex.v1.Environment.InfrastructureSpec.OsImageRuntime) other);
          } else {
            super.mergeFrom(other);
            return this;
          }
        }

        public Builder mergeFrom(
            com.google.cloud.dataplex.v1.Environment.InfrastructureSpec.OsImageRuntime other) {
          if (other
              == com.google.cloud.dataplex.v1.Environment.InfrastructureSpec.OsImageRuntime
                  .getDefaultInstance()) return this;
          if (!other.getImageVersion().isEmpty()) {
            imageVersion_ = other.imageVersion_;
            bitField0_ |= 0x00000001;
            onChanged();
          }
          if (!other.javaLibraries_.isEmpty()) {
            if (javaLibraries_.isEmpty()) {
              javaLibraries_ = other.javaLibraries_;
              bitField0_ = (bitField0_ & ~0x00000002);
            } else {
              ensureJavaLibrariesIsMutable();
              javaLibraries_.addAll(other.javaLibraries_);
            }
            onChanged();
          }
          if (!other.pythonPackages_.isEmpty()) {
            if (pythonPackages_.isEmpty()) {
              pythonPackages_ = other.pythonPackages_;
              bitField0_ = (bitField0_ & ~0x00000004);
            } else {
              ensurePythonPackagesIsMutable();
              pythonPackages_.addAll(other.pythonPackages_);
            }
            onChanged();
          }
          internalGetMutableProperties().mergeFrom(other.internalGetProperties());
          bitField0_ |= 0x00000008;
          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:
                  {
                    imageVersion_ = input.readStringRequireUtf8();
                    bitField0_ |= 0x00000001;
                    break;
                  } // case 10
                case 18:
                  {
                    java.lang.String s = input.readStringRequireUtf8();
                    ensureJavaLibrariesIsMutable();
                    javaLibraries_.add(s);
                    break;
                  } // case 18
                case 26:
                  {
                    java.lang.String s = input.readStringRequireUtf8();
                    ensurePythonPackagesIsMutable();
                    pythonPackages_.add(s);
                    break;
                  } // case 26
                case 34:
                  {
                    com.google.protobuf.MapEntry<java.lang.String, java.lang.String> properties__ =
                        input.readMessage(
                            PropertiesDefaultEntryHolder.defaultEntry.getParserForType(),
                            extensionRegistry);
                    internalGetMutableProperties()
                        .getMutableMap()
                        .put(properties__.getKey(), properties__.getValue());
                    bitField0_ |= 0x00000008;
                    break;
                  } // case 34
                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 imageVersion_ = "";
        /**
         *
         *
         * <pre>
         * Required. Dataplex Image version.
         * </pre>
         *
         * <code>string image_version = 1 [(.google.api.field_behavior) = REQUIRED];</code>
         *
         * @return The imageVersion.
         */
        public java.lang.String getImageVersion() {
          java.lang.Object ref = imageVersion_;
          if (!(ref instanceof java.lang.String)) {
            com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
            java.lang.String s = bs.toStringUtf8();
            imageVersion_ = s;
            return s;
          } else {
            return (java.lang.String) ref;
          }
        }
        /**
         *
         *
         * <pre>
         * Required. Dataplex Image version.
         * </pre>
         *
         * <code>string image_version = 1 [(.google.api.field_behavior) = REQUIRED];</code>
         *
         * @return The bytes for imageVersion.
         */
        public com.google.protobuf.ByteString getImageVersionBytes() {
          java.lang.Object ref = imageVersion_;
          if (ref instanceof String) {
            com.google.protobuf.ByteString b =
                com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
            imageVersion_ = b;
            return b;
          } else {
            return (com.google.protobuf.ByteString) ref;
          }
        }
        /**
         *
         *
         * <pre>
         * Required. Dataplex Image version.
         * </pre>
         *
         * <code>string image_version = 1 [(.google.api.field_behavior) = REQUIRED];</code>
         *
         * @param value The imageVersion to set.
         * @return This builder for chaining.
         */
        public Builder setImageVersion(java.lang.String value) {
          if (value == null) {
            throw new NullPointerException();
          }
          imageVersion_ = value;
          bitField0_ |= 0x00000001;
          onChanged();
          return this;
        }
        /**
         *
         *
         * <pre>
         * Required. Dataplex Image version.
         * </pre>
         *
         * <code>string image_version = 1 [(.google.api.field_behavior) = REQUIRED];</code>
         *
         * @return This builder for chaining.
         */
        public Builder clearImageVersion() {
          imageVersion_ = getDefaultInstance().getImageVersion();
          bitField0_ = (bitField0_ & ~0x00000001);
          onChanged();
          return this;
        }
        /**
         *
         *
         * <pre>
         * Required. Dataplex Image version.
         * </pre>
         *
         * <code>string image_version = 1 [(.google.api.field_behavior) = REQUIRED];</code>
         *
         * @param value The bytes for imageVersion to set.
         * @return This builder for chaining.
         */
        public Builder setImageVersionBytes(com.google.protobuf.ByteString value) {
          if (value == null) {
            throw new NullPointerException();
          }
          checkByteStringIsUtf8(value);
          imageVersion_ = value;
          bitField0_ |= 0x00000001;
          onChanged();
          return this;
        }

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

        private void ensureJavaLibrariesIsMutable() {
          if (!((bitField0_ & 0x00000002) != 0)) {
            javaLibraries_ = new com.google.protobuf.LazyStringArrayList(javaLibraries_);
            bitField0_ |= 0x00000002;
          }
        }
        /**
         *
         *
         * <pre>
         * Optional. List of Java jars to be included in the runtime environment.
         * Valid input includes Cloud Storage URIs to Jar binaries.
         * For example, gs://bucket-name/my/path/to/file.jar
         * </pre>
         *
         * <code>repeated string java_libraries = 2 [(.google.api.field_behavior) = OPTIONAL];
         * </code>
         *
         * @return A list containing the javaLibraries.
         */
        public com.google.protobuf.ProtocolStringList getJavaLibrariesList() {
          return javaLibraries_.getUnmodifiableView();
        }
        /**
         *
         *
         * <pre>
         * Optional. List of Java jars to be included in the runtime environment.
         * Valid input includes Cloud Storage URIs to Jar binaries.
         * For example, gs://bucket-name/my/path/to/file.jar
         * </pre>
         *
         * <code>repeated string java_libraries = 2 [(.google.api.field_behavior) = OPTIONAL];
         * </code>
         *
         * @return The count of javaLibraries.
         */
        public int getJavaLibrariesCount() {
          return javaLibraries_.size();
        }
        /**
         *
         *
         * <pre>
         * Optional. List of Java jars to be included in the runtime environment.
         * Valid input includes Cloud Storage URIs to Jar binaries.
         * For example, gs://bucket-name/my/path/to/file.jar
         * </pre>
         *
         * <code>repeated string java_libraries = 2 [(.google.api.field_behavior) = OPTIONAL];
         * </code>
         *
         * @param index The index of the element to return.
         * @return The javaLibraries at the given index.
         */
        public java.lang.String getJavaLibraries(int index) {
          return javaLibraries_.get(index);
        }
        /**
         *
         *
         * <pre>
         * Optional. List of Java jars to be included in the runtime environment.
         * Valid input includes Cloud Storage URIs to Jar binaries.
         * For example, gs://bucket-name/my/path/to/file.jar
         * </pre>
         *
         * <code>repeated string java_libraries = 2 [(.google.api.field_behavior) = OPTIONAL];
         * </code>
         *
         * @param index The index of the value to return.
         * @return The bytes of the javaLibraries at the given index.
         */
        public com.google.protobuf.ByteString getJavaLibrariesBytes(int index) {
          return javaLibraries_.getByteString(index);
        }
        /**
         *
         *
         * <pre>
         * Optional. List of Java jars to be included in the runtime environment.
         * Valid input includes Cloud Storage URIs to Jar binaries.
         * For example, gs://bucket-name/my/path/to/file.jar
         * </pre>
         *
         * <code>repeated string java_libraries = 2 [(.google.api.field_behavior) = OPTIONAL];
         * </code>
         *
         * @param index The index to set the value at.
         * @param value The javaLibraries to set.
         * @return This builder for chaining.
         */
        public Builder setJavaLibraries(int index, java.lang.String value) {
          if (value == null) {
            throw new NullPointerException();
          }
          ensureJavaLibrariesIsMutable();
          javaLibraries_.set(index, value);
          onChanged();
          return this;
        }
        /**
         *
         *
         * <pre>
         * Optional. List of Java jars to be included in the runtime environment.
         * Valid input includes Cloud Storage URIs to Jar binaries.
         * For example, gs://bucket-name/my/path/to/file.jar
         * </pre>
         *
         * <code>repeated string java_libraries = 2 [(.google.api.field_behavior) = OPTIONAL];
         * </code>
         *
         * @param value The javaLibraries to add.
         * @return This builder for chaining.
         */
        public Builder addJavaLibraries(java.lang.String value) {
          if (value == null) {
            throw new NullPointerException();
          }
          ensureJavaLibrariesIsMutable();
          javaLibraries_.add(value);
          onChanged();
          return this;
        }
        /**
         *
         *
         * <pre>
         * Optional. List of Java jars to be included in the runtime environment.
         * Valid input includes Cloud Storage URIs to Jar binaries.
         * For example, gs://bucket-name/my/path/to/file.jar
         * </pre>
         *
         * <code>repeated string java_libraries = 2 [(.google.api.field_behavior) = OPTIONAL];
         * </code>
         *
         * @param values The javaLibraries to add.
         * @return This builder for chaining.
         */
        public Builder addAllJavaLibraries(java.lang.Iterable<java.lang.String> values) {
          ensureJavaLibrariesIsMutable();
          com.google.protobuf.AbstractMessageLite.Builder.addAll(values, javaLibraries_);
          onChanged();
          return this;
        }
        /**
         *
         *
         * <pre>
         * Optional. List of Java jars to be included in the runtime environment.
         * Valid input includes Cloud Storage URIs to Jar binaries.
         * For example, gs://bucket-name/my/path/to/file.jar
         * </pre>
         *
         * <code>repeated string java_libraries = 2 [(.google.api.field_behavior) = OPTIONAL];
         * </code>
         *
         * @return This builder for chaining.
         */
        public Builder clearJavaLibraries() {
          javaLibraries_ = com.google.protobuf.LazyStringArrayList.EMPTY;
          bitField0_ = (bitField0_ & ~0x00000002);
          onChanged();
          return this;
        }
        /**
         *
         *
         * <pre>
         * Optional. List of Java jars to be included in the runtime environment.
         * Valid input includes Cloud Storage URIs to Jar binaries.
         * For example, gs://bucket-name/my/path/to/file.jar
         * </pre>
         *
         * <code>repeated string java_libraries = 2 [(.google.api.field_behavior) = OPTIONAL];
         * </code>
         *
         * @param value The bytes of the javaLibraries to add.
         * @return This builder for chaining.
         */
        public Builder addJavaLibrariesBytes(com.google.protobuf.ByteString value) {
          if (value == null) {
            throw new NullPointerException();
          }
          checkByteStringIsUtf8(value);
          ensureJavaLibrariesIsMutable();
          javaLibraries_.add(value);
          onChanged();
          return this;
        }

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

        private void ensurePythonPackagesIsMutable() {
          if (!((bitField0_ & 0x00000004) != 0)) {
            pythonPackages_ = new com.google.protobuf.LazyStringArrayList(pythonPackages_);
            bitField0_ |= 0x00000004;
          }
        }
        /**
         *
         *
         * <pre>
         * Optional. A list of python packages to be installed.
         * Valid formats include Cloud Storage URI to a PIP installable library.
         * For example, gs://bucket-name/my/path/to/lib.tar.gz
         * </pre>
         *
         * <code>repeated string python_packages = 3 [(.google.api.field_behavior) = OPTIONAL];
         * </code>
         *
         * @return A list containing the pythonPackages.
         */
        public com.google.protobuf.ProtocolStringList getPythonPackagesList() {
          return pythonPackages_.getUnmodifiableView();
        }
        /**
         *
         *
         * <pre>
         * Optional. A list of python packages to be installed.
         * Valid formats include Cloud Storage URI to a PIP installable library.
         * For example, gs://bucket-name/my/path/to/lib.tar.gz
         * </pre>
         *
         * <code>repeated string python_packages = 3 [(.google.api.field_behavior) = OPTIONAL];
         * </code>
         *
         * @return The count of pythonPackages.
         */
        public int getPythonPackagesCount() {
          return pythonPackages_.size();
        }
        /**
         *
         *
         * <pre>
         * Optional. A list of python packages to be installed.
         * Valid formats include Cloud Storage URI to a PIP installable library.
         * For example, gs://bucket-name/my/path/to/lib.tar.gz
         * </pre>
         *
         * <code>repeated string python_packages = 3 [(.google.api.field_behavior) = OPTIONAL];
         * </code>
         *
         * @param index The index of the element to return.
         * @return The pythonPackages at the given index.
         */
        public java.lang.String getPythonPackages(int index) {
          return pythonPackages_.get(index);
        }
        /**
         *
         *
         * <pre>
         * Optional. A list of python packages to be installed.
         * Valid formats include Cloud Storage URI to a PIP installable library.
         * For example, gs://bucket-name/my/path/to/lib.tar.gz
         * </pre>
         *
         * <code>repeated string python_packages = 3 [(.google.api.field_behavior) = OPTIONAL];
         * </code>
         *
         * @param index The index of the value to return.
         * @return The bytes of the pythonPackages at the given index.
         */
        public com.google.protobuf.ByteString getPythonPackagesBytes(int index) {
          return pythonPackages_.getByteString(index);
        }
        /**
         *
         *
         * <pre>
         * Optional. A list of python packages to be installed.
         * Valid formats include Cloud Storage URI to a PIP installable library.
         * For example, gs://bucket-name/my/path/to/lib.tar.gz
         * </pre>
         *
         * <code>repeated string python_packages = 3 [(.google.api.field_behavior) = OPTIONAL];
         * </code>
         *
         * @param index The index to set the value at.
         * @param value The pythonPackages to set.
         * @return This builder for chaining.
         */
        public Builder setPythonPackages(int index, java.lang.String value) {
          if (value == null) {
            throw new NullPointerException();
          }
          ensurePythonPackagesIsMutable();
          pythonPackages_.set(index, value);
          onChanged();
          return this;
        }
        /**
         *
         *
         * <pre>
         * Optional. A list of python packages to be installed.
         * Valid formats include Cloud Storage URI to a PIP installable library.
         * For example, gs://bucket-name/my/path/to/lib.tar.gz
         * </pre>
         *
         * <code>repeated string python_packages = 3 [(.google.api.field_behavior) = OPTIONAL];
         * </code>
         *
         * @param value The pythonPackages to add.
         * @return This builder for chaining.
         */
        public Builder addPythonPackages(java.lang.String value) {
          if (value == null) {
            throw new NullPointerException();
          }
          ensurePythonPackagesIsMutable();
          pythonPackages_.add(value);
          onChanged();
          return this;
        }
        /**
         *
         *
         * <pre>
         * Optional. A list of python packages to be installed.
         * Valid formats include Cloud Storage URI to a PIP installable library.
         * For example, gs://bucket-name/my/path/to/lib.tar.gz
         * </pre>
         *
         * <code>repeated string python_packages = 3 [(.google.api.field_behavior) = OPTIONAL];
         * </code>
         *
         * @param values The pythonPackages to add.
         * @return This builder for chaining.
         */
        public Builder addAllPythonPackages(java.lang.Iterable<java.lang.String> values) {
          ensurePythonPackagesIsMutable();
          com.google.protobuf.AbstractMessageLite.Builder.addAll(values, pythonPackages_);
          onChanged();
          return this;
        }
        /**
         *
         *
         * <pre>
         * Optional. A list of python packages to be installed.
         * Valid formats include Cloud Storage URI to a PIP installable library.
         * For example, gs://bucket-name/my/path/to/lib.tar.gz
         * </pre>
         *
         * <code>repeated string python_packages = 3 [(.google.api.field_behavior) = OPTIONAL];
         * </code>
         *
         * @return This builder for chaining.
         */
        public Builder clearPythonPackages() {
          pythonPackages_ = com.google.protobuf.LazyStringArrayList.EMPTY;
          bitField0_ = (bitField0_ & ~0x00000004);
          onChanged();
          return this;
        }
        /**
         *
         *
         * <pre>
         * Optional. A list of python packages to be installed.
         * Valid formats include Cloud Storage URI to a PIP installable library.
         * For example, gs://bucket-name/my/path/to/lib.tar.gz
         * </pre>
         *
         * <code>repeated string python_packages = 3 [(.google.api.field_behavior) = OPTIONAL];
         * </code>
         *
         * @param value The bytes of the pythonPackages to add.
         * @return This builder for chaining.
         */
        public Builder addPythonPackagesBytes(com.google.protobuf.ByteString value) {
          if (value == null) {
            throw new NullPointerException();
          }
          checkByteStringIsUtf8(value);
          ensurePythonPackagesIsMutable();
          pythonPackages_.add(value);
          onChanged();
          return this;
        }

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

        private com.google.protobuf.MapField<java.lang.String, java.lang.String>
            internalGetProperties() {
          if (properties_ == null) {
            return com.google.protobuf.MapField.emptyMapField(
                PropertiesDefaultEntryHolder.defaultEntry);
          }
          return properties_;
        }

        private com.google.protobuf.MapField<java.lang.String, java.lang.String>
            internalGetMutableProperties() {
          if (properties_ == null) {
            properties_ =
                com.google.protobuf.MapField.newMapField(PropertiesDefaultEntryHolder.defaultEntry);
          }
          if (!properties_.isMutable()) {
            properties_ = properties_.copy();
          }
          bitField0_ |= 0x00000008;
          onChanged();
          return properties_;
        }

        public int getPropertiesCount() {
          return internalGetProperties().getMap().size();
        }
        /**
         *
         *
         * <pre>
         * Optional. Spark properties to provide configuration for use in sessions
         * created for this environment. The properties to set on daemon config
         * files. Property keys are specified in `prefix:property` format. The
         * prefix must be "spark".
         * </pre>
         *
         * <code>map&lt;string, string&gt; properties = 4 [(.google.api.field_behavior) = OPTIONAL];
         * </code>
         */
        @java.lang.Override
        public boolean containsProperties(java.lang.String key) {
          if (key == null) {
            throw new NullPointerException("map key");
          }
          return internalGetProperties().getMap().containsKey(key);
        }
        /** Use {@link #getPropertiesMap()} instead. */
        @java.lang.Override
        @java.lang.Deprecated
        public java.util.Map<java.lang.String, java.lang.String> getProperties() {
          return getPropertiesMap();
        }
        /**
         *
         *
         * <pre>
         * Optional. Spark properties to provide configuration for use in sessions
         * created for this environment. The properties to set on daemon config
         * files. Property keys are specified in `prefix:property` format. The
         * prefix must be "spark".
         * </pre>
         *
         * <code>map&lt;string, string&gt; properties = 4 [(.google.api.field_behavior) = OPTIONAL];
         * </code>
         */
        @java.lang.Override
        public java.util.Map<java.lang.String, java.lang.String> getPropertiesMap() {
          return internalGetProperties().getMap();
        }
        /**
         *
         *
         * <pre>
         * Optional. Spark properties to provide configuration for use in sessions
         * created for this environment. The properties to set on daemon config
         * files. Property keys are specified in `prefix:property` format. The
         * prefix must be "spark".
         * </pre>
         *
         * <code>map&lt;string, string&gt; properties = 4 [(.google.api.field_behavior) = OPTIONAL];
         * </code>
         */
        @java.lang.Override
        public /* nullable */ java.lang.String getPropertiesOrDefault(
            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 = internalGetProperties().getMap();
          return map.containsKey(key) ? map.get(key) : defaultValue;
        }
        /**
         *
         *
         * <pre>
         * Optional. Spark properties to provide configuration for use in sessions
         * created for this environment. The properties to set on daemon config
         * files. Property keys are specified in `prefix:property` format. The
         * prefix must be "spark".
         * </pre>
         *
         * <code>map&lt;string, string&gt; properties = 4 [(.google.api.field_behavior) = OPTIONAL];
         * </code>
         */
        @java.lang.Override
        public java.lang.String getPropertiesOrThrow(java.lang.String key) {
          if (key == null) {
            throw new NullPointerException("map key");
          }
          java.util.Map<java.lang.String, java.lang.String> map = internalGetProperties().getMap();
          if (!map.containsKey(key)) {
            throw new java.lang.IllegalArgumentException();
          }
          return map.get(key);
        }

        public Builder clearProperties() {
          bitField0_ = (bitField0_ & ~0x00000008);
          internalGetMutableProperties().getMutableMap().clear();
          return this;
        }
        /**
         *
         *
         * <pre>
         * Optional. Spark properties to provide configuration for use in sessions
         * created for this environment. The properties to set on daemon config
         * files. Property keys are specified in `prefix:property` format. The
         * prefix must be "spark".
         * </pre>
         *
         * <code>map&lt;string, string&gt; properties = 4 [(.google.api.field_behavior) = OPTIONAL];
         * </code>
         */
        public Builder removeProperties(java.lang.String key) {
          if (key == null) {
            throw new NullPointerException("map key");
          }
          internalGetMutableProperties().getMutableMap().remove(key);
          return this;
        }
        /** Use alternate mutation accessors instead. */
        @java.lang.Deprecated
        public java.util.Map<java.lang.String, java.lang.String> getMutableProperties() {
          bitField0_ |= 0x00000008;
          return internalGetMutableProperties().getMutableMap();
        }
        /**
         *
         *
         * <pre>
         * Optional. Spark properties to provide configuration for use in sessions
         * created for this environment. The properties to set on daemon config
         * files. Property keys are specified in `prefix:property` format. The
         * prefix must be "spark".
         * </pre>
         *
         * <code>map&lt;string, string&gt; properties = 4 [(.google.api.field_behavior) = OPTIONAL];
         * </code>
         */
        public Builder putProperties(java.lang.String key, java.lang.String value) {
          if (key == null) {
            throw new NullPointerException("map key");
          }
          if (value == null) {
            throw new NullPointerException("map value");
          }
          internalGetMutableProperties().getMutableMap().put(key, value);
          bitField0_ |= 0x00000008;
          return this;
        }
        /**
         *
         *
         * <pre>
         * Optional. Spark properties to provide configuration for use in sessions
         * created for this environment. The properties to set on daemon config
         * files. Property keys are specified in `prefix:property` format. The
         * prefix must be "spark".
         * </pre>
         *
         * <code>map&lt;string, string&gt; properties = 4 [(.google.api.field_behavior) = OPTIONAL];
         * </code>
         */
        public Builder putAllProperties(java.util.Map<java.lang.String, java.lang.String> values) {
          internalGetMutableProperties().getMutableMap().putAll(values);
          bitField0_ |= 0x00000008;
          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.dataplex.v1.Environment.InfrastructureSpec.OsImageRuntime)
      }

      // @@protoc_insertion_point(class_scope:google.cloud.dataplex.v1.Environment.InfrastructureSpec.OsImageRuntime)
      private static final com.google.cloud.dataplex.v1.Environment.InfrastructureSpec
              .OsImageRuntime
          DEFAULT_INSTANCE;

      static {
        DEFAULT_INSTANCE =
            new com.google.cloud.dataplex.v1.Environment.InfrastructureSpec.OsImageRuntime();
      }

      public static com.google.cloud.dataplex.v1.Environment.InfrastructureSpec.OsImageRuntime
          getDefaultInstance() {
        return DEFAULT_INSTANCE;
      }

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

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

      @java.lang.Override
      public com.google.cloud.dataplex.v1.Environment.InfrastructureSpec.OsImageRuntime
          getDefaultInstanceForType() {
        return DEFAULT_INSTANCE;
      }
    }

    private int resourcesCase_ = 0;
    private java.lang.Object resources_;

    public enum ResourcesCase
        implements
            com.google.protobuf.Internal.EnumLite,
            com.google.protobuf.AbstractMessage.InternalOneOfEnum {
      COMPUTE(50),
      RESOURCES_NOT_SET(0);
      private final int value;

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

      public static ResourcesCase forNumber(int value) {
        switch (value) {
          case 50:
            return COMPUTE;
          case 0:
            return RESOURCES_NOT_SET;
          default:
            return null;
        }
      }

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

    public ResourcesCase getResourcesCase() {
      return ResourcesCase.forNumber(resourcesCase_);
    }

    private int runtimeCase_ = 0;
    private java.lang.Object runtime_;

    public enum RuntimeCase
        implements
            com.google.protobuf.Internal.EnumLite,
            com.google.protobuf.AbstractMessage.InternalOneOfEnum {
      OS_IMAGE(100),
      RUNTIME_NOT_SET(0);
      private final int value;

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

      public static RuntimeCase forNumber(int value) {
        switch (value) {
          case 100:
            return OS_IMAGE;
          case 0:
            return RUNTIME_NOT_SET;
          default:
            return null;
        }
      }

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

    public RuntimeCase getRuntimeCase() {
      return RuntimeCase.forNumber(runtimeCase_);
    }

    public static final int COMPUTE_FIELD_NUMBER = 50;
    /**
     *
     *
     * <pre>
     * Optional. Compute resources needed for analyze interactive workloads.
     * </pre>
     *
     * <code>
     * .google.cloud.dataplex.v1.Environment.InfrastructureSpec.ComputeResources compute = 50 [(.google.api.field_behavior) = OPTIONAL];
     * </code>
     *
     * @return Whether the compute field is set.
     */
    @java.lang.Override
    public boolean hasCompute() {
      return resourcesCase_ == 50;
    }
    /**
     *
     *
     * <pre>
     * Optional. Compute resources needed for analyze interactive workloads.
     * </pre>
     *
     * <code>
     * .google.cloud.dataplex.v1.Environment.InfrastructureSpec.ComputeResources compute = 50 [(.google.api.field_behavior) = OPTIONAL];
     * </code>
     *
     * @return The compute.
     */
    @java.lang.Override
    public com.google.cloud.dataplex.v1.Environment.InfrastructureSpec.ComputeResources
        getCompute() {
      if (resourcesCase_ == 50) {
        return (com.google.cloud.dataplex.v1.Environment.InfrastructureSpec.ComputeResources)
            resources_;
      }
      return com.google.cloud.dataplex.v1.Environment.InfrastructureSpec.ComputeResources
          .getDefaultInstance();
    }
    /**
     *
     *
     * <pre>
     * Optional. Compute resources needed for analyze interactive workloads.
     * </pre>
     *
     * <code>
     * .google.cloud.dataplex.v1.Environment.InfrastructureSpec.ComputeResources compute = 50 [(.google.api.field_behavior) = OPTIONAL];
     * </code>
     */
    @java.lang.Override
    public com.google.cloud.dataplex.v1.Environment.InfrastructureSpec.ComputeResourcesOrBuilder
        getComputeOrBuilder() {
      if (resourcesCase_ == 50) {
        return (com.google.cloud.dataplex.v1.Environment.InfrastructureSpec.ComputeResources)
            resources_;
      }
      return com.google.cloud.dataplex.v1.Environment.InfrastructureSpec.ComputeResources
          .getDefaultInstance();
    }

    public static final int OS_IMAGE_FIELD_NUMBER = 100;
    /**
     *
     *
     * <pre>
     * Required. Software Runtime Configuration for analyze interactive
     * workloads.
     * </pre>
     *
     * <code>
     * .google.cloud.dataplex.v1.Environment.InfrastructureSpec.OsImageRuntime os_image = 100 [(.google.api.field_behavior) = REQUIRED];
     * </code>
     *
     * @return Whether the osImage field is set.
     */
    @java.lang.Override
    public boolean hasOsImage() {
      return runtimeCase_ == 100;
    }
    /**
     *
     *
     * <pre>
     * Required. Software Runtime Configuration for analyze interactive
     * workloads.
     * </pre>
     *
     * <code>
     * .google.cloud.dataplex.v1.Environment.InfrastructureSpec.OsImageRuntime os_image = 100 [(.google.api.field_behavior) = REQUIRED];
     * </code>
     *
     * @return The osImage.
     */
    @java.lang.Override
    public com.google.cloud.dataplex.v1.Environment.InfrastructureSpec.OsImageRuntime getOsImage() {
      if (runtimeCase_ == 100) {
        return (com.google.cloud.dataplex.v1.Environment.InfrastructureSpec.OsImageRuntime)
            runtime_;
      }
      return com.google.cloud.dataplex.v1.Environment.InfrastructureSpec.OsImageRuntime
          .getDefaultInstance();
    }
    /**
     *
     *
     * <pre>
     * Required. Software Runtime Configuration for analyze interactive
     * workloads.
     * </pre>
     *
     * <code>
     * .google.cloud.dataplex.v1.Environment.InfrastructureSpec.OsImageRuntime os_image = 100 [(.google.api.field_behavior) = REQUIRED];
     * </code>
     */
    @java.lang.Override
    public com.google.cloud.dataplex.v1.Environment.InfrastructureSpec.OsImageRuntimeOrBuilder
        getOsImageOrBuilder() {
      if (runtimeCase_ == 100) {
        return (com.google.cloud.dataplex.v1.Environment.InfrastructureSpec.OsImageRuntime)
            runtime_;
      }
      return com.google.cloud.dataplex.v1.Environment.InfrastructureSpec.OsImageRuntime
          .getDefaultInstance();
    }

    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 (resourcesCase_ == 50) {
        output.writeMessage(
            50,
            (com.google.cloud.dataplex.v1.Environment.InfrastructureSpec.ComputeResources)
                resources_);
      }
      if (runtimeCase_ == 100) {
        output.writeMessage(
            100,
            (com.google.cloud.dataplex.v1.Environment.InfrastructureSpec.OsImageRuntime) runtime_);
      }
      getUnknownFields().writeTo(output);
    }

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

      size = 0;
      if (resourcesCase_ == 50) {
        size +=
            com.google.protobuf.CodedOutputStream.computeMessageSize(
                50,
                (com.google.cloud.dataplex.v1.Environment.InfrastructureSpec.ComputeResources)
                    resources_);
      }
      if (runtimeCase_ == 100) {
        size +=
            com.google.protobuf.CodedOutputStream.computeMessageSize(
                100,
                (com.google.cloud.dataplex.v1.Environment.InfrastructureSpec.OsImageRuntime)
                    runtime_);
      }
      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.dataplex.v1.Environment.InfrastructureSpec)) {
        return super.equals(obj);
      }
      com.google.cloud.dataplex.v1.Environment.InfrastructureSpec other =
          (com.google.cloud.dataplex.v1.Environment.InfrastructureSpec) obj;

      if (!getResourcesCase().equals(other.getResourcesCase())) return false;
      switch (resourcesCase_) {
        case 50:
          if (!getCompute().equals(other.getCompute())) return false;
          break;
        case 0:
        default:
      }
      if (!getRuntimeCase().equals(other.getRuntimeCase())) return false;
      switch (runtimeCase_) {
        case 100:
          if (!getOsImage().equals(other.getOsImage())) return false;
          break;
        case 0:
        default:
      }
      if (!getUnknownFields().equals(other.getUnknownFields())) return false;
      return true;
    }

    @java.lang.Override
    public int hashCode() {
      if (memoizedHashCode != 0) {
        return memoizedHashCode;
      }
      int hash = 41;
      hash = (19 * hash) + getDescriptor().hashCode();
      switch (resourcesCase_) {
        case 50:
          hash = (37 * hash) + COMPUTE_FIELD_NUMBER;
          hash = (53 * hash) + getCompute().hashCode();
          break;
        case 0:
        default:
      }
      switch (runtimeCase_) {
        case 100:
          hash = (37 * hash) + OS_IMAGE_FIELD_NUMBER;
          hash = (53 * hash) + getOsImage().hashCode();
          break;
        case 0:
        default:
      }
      hash = (29 * hash) + getUnknownFields().hashCode();
      memoizedHashCode = hash;
      return hash;
    }

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

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

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

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

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

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

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

    public static com.google.cloud.dataplex.v1.Environment.InfrastructureSpec 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.dataplex.v1.Environment.InfrastructureSpec 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>
     * Configuration for the underlying infrastructure used to run workloads.
     * </pre>
     *
     * Protobuf type {@code google.cloud.dataplex.v1.Environment.InfrastructureSpec}
     */
    public static final class Builder
        extends com.google.protobuf.GeneratedMessageV3.Builder<Builder>
        implements
        // @@protoc_insertion_point(builder_implements:google.cloud.dataplex.v1.Environment.InfrastructureSpec)
        com.google.cloud.dataplex.v1.Environment.InfrastructureSpecOrBuilder {
      public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
        return com.google.cloud.dataplex.v1.AnalyzeProto
            .internal_static_google_cloud_dataplex_v1_Environment_InfrastructureSpec_descriptor;
      }

      @java.lang.Override
      protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
          internalGetFieldAccessorTable() {
        return com.google.cloud.dataplex.v1.AnalyzeProto
            .internal_static_google_cloud_dataplex_v1_Environment_InfrastructureSpec_fieldAccessorTable
            .ensureFieldAccessorsInitialized(
                com.google.cloud.dataplex.v1.Environment.InfrastructureSpec.class,
                com.google.cloud.dataplex.v1.Environment.InfrastructureSpec.Builder.class);
      }

      // Construct using com.google.cloud.dataplex.v1.Environment.InfrastructureSpec.newBuilder()
      private Builder() {}

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

      @java.lang.Override
      public Builder clear() {
        super.clear();
        bitField0_ = 0;
        if (computeBuilder_ != null) {
          computeBuilder_.clear();
        }
        if (osImageBuilder_ != null) {
          osImageBuilder_.clear();
        }
        resourcesCase_ = 0;
        resources_ = null;
        runtimeCase_ = 0;
        runtime_ = null;
        return this;
      }

      @java.lang.Override
      public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
        return com.google.cloud.dataplex.v1.AnalyzeProto
            .internal_static_google_cloud_dataplex_v1_Environment_InfrastructureSpec_descriptor;
      }

      @java.lang.Override
      public com.google.cloud.dataplex.v1.Environment.InfrastructureSpec
          getDefaultInstanceForType() {
        return com.google.cloud.dataplex.v1.Environment.InfrastructureSpec.getDefaultInstance();
      }

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

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

      private void buildPartial0(
          com.google.cloud.dataplex.v1.Environment.InfrastructureSpec result) {
        int from_bitField0_ = bitField0_;
      }

      private void buildPartialOneofs(
          com.google.cloud.dataplex.v1.Environment.InfrastructureSpec result) {
        result.resourcesCase_ = resourcesCase_;
        result.resources_ = this.resources_;
        if (resourcesCase_ == 50 && computeBuilder_ != null) {
          result.resources_ = computeBuilder_.build();
        }
        result.runtimeCase_ = runtimeCase_;
        result.runtime_ = this.runtime_;
        if (runtimeCase_ == 100 && osImageBuilder_ != null) {
          result.runtime_ = osImageBuilder_.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.dataplex.v1.Environment.InfrastructureSpec) {
          return mergeFrom((com.google.cloud.dataplex.v1.Environment.InfrastructureSpec) other);
        } else {
          super.mergeFrom(other);
          return this;
        }
      }

      public Builder mergeFrom(com.google.cloud.dataplex.v1.Environment.InfrastructureSpec other) {
        if (other
            == com.google.cloud.dataplex.v1.Environment.InfrastructureSpec.getDefaultInstance())
          return this;
        switch (other.getResourcesCase()) {
          case COMPUTE:
            {
              mergeCompute(other.getCompute());
              break;
            }
          case RESOURCES_NOT_SET:
            {
              break;
            }
        }
        switch (other.getRuntimeCase()) {
          case OS_IMAGE:
            {
              mergeOsImage(other.getOsImage());
              break;
            }
          case RUNTIME_NOT_SET:
            {
              break;
            }
        }
        this.mergeUnknownFields(other.getUnknownFields());
        onChanged();
        return this;
      }

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

      @java.lang.Override
      public Builder mergeFrom(
          com.google.protobuf.CodedInputStream input,
          com.google.protobuf.ExtensionRegistryLite extensionRegistry)
          throws java.io.IOException {
        if (extensionRegistry == null) {
          throw new java.lang.NullPointerException();
        }
        try {
          boolean done = false;
          while (!done) {
            int tag = input.readTag();
            switch (tag) {
              case 0:
                done = true;
                break;
              case 402:
                {
                  input.readMessage(getComputeFieldBuilder().getBuilder(), extensionRegistry);
                  resourcesCase_ = 50;
                  break;
                } // case 402
              case 802:
                {
                  input.readMessage(getOsImageFieldBuilder().getBuilder(), extensionRegistry);
                  runtimeCase_ = 100;
                  break;
                } // case 802
              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 resourcesCase_ = 0;
      private java.lang.Object resources_;

      public ResourcesCase getResourcesCase() {
        return ResourcesCase.forNumber(resourcesCase_);
      }

      public Builder clearResources() {
        resourcesCase_ = 0;
        resources_ = null;
        onChanged();
        return this;
      }

      private int runtimeCase_ = 0;
      private java.lang.Object runtime_;

      public RuntimeCase getRuntimeCase() {
        return RuntimeCase.forNumber(runtimeCase_);
      }

      public Builder clearRuntime() {
        runtimeCase_ = 0;
        runtime_ = null;
        onChanged();
        return this;
      }

      private int bitField0_;

      private com.google.protobuf.SingleFieldBuilderV3<
              com.google.cloud.dataplex.v1.Environment.InfrastructureSpec.ComputeResources,
              com.google.cloud.dataplex.v1.Environment.InfrastructureSpec.ComputeResources.Builder,
              com.google.cloud.dataplex.v1.Environment.InfrastructureSpec.ComputeResourcesOrBuilder>
          computeBuilder_;
      /**
       *
       *
       * <pre>
       * Optional. Compute resources needed for analyze interactive workloads.
       * </pre>
       *
       * <code>
       * .google.cloud.dataplex.v1.Environment.InfrastructureSpec.ComputeResources compute = 50 [(.google.api.field_behavior) = OPTIONAL];
       * </code>
       *
       * @return Whether the compute field is set.
       */
      @java.lang.Override
      public boolean hasCompute() {
        return resourcesCase_ == 50;
      }
      /**
       *
       *
       * <pre>
       * Optional. Compute resources needed for analyze interactive workloads.
       * </pre>
       *
       * <code>
       * .google.cloud.dataplex.v1.Environment.InfrastructureSpec.ComputeResources compute = 50 [(.google.api.field_behavior) = OPTIONAL];
       * </code>
       *
       * @return The compute.
       */
      @java.lang.Override
      public com.google.cloud.dataplex.v1.Environment.InfrastructureSpec.ComputeResources
          getCompute() {
        if (computeBuilder_ == null) {
          if (resourcesCase_ == 50) {
            return (com.google.cloud.dataplex.v1.Environment.InfrastructureSpec.ComputeResources)
                resources_;
          }
          return com.google.cloud.dataplex.v1.Environment.InfrastructureSpec.ComputeResources
              .getDefaultInstance();
        } else {
          if (resourcesCase_ == 50) {
            return computeBuilder_.getMessage();
          }
          return com.google.cloud.dataplex.v1.Environment.InfrastructureSpec.ComputeResources
              .getDefaultInstance();
        }
      }
      /**
       *
       *
       * <pre>
       * Optional. Compute resources needed for analyze interactive workloads.
       * </pre>
       *
       * <code>
       * .google.cloud.dataplex.v1.Environment.InfrastructureSpec.ComputeResources compute = 50 [(.google.api.field_behavior) = OPTIONAL];
       * </code>
       */
      public Builder setCompute(
          com.google.cloud.dataplex.v1.Environment.InfrastructureSpec.ComputeResources value) {
        if (computeBuilder_ == null) {
          if (value == null) {
            throw new NullPointerException();
          }
          resources_ = value;
          onChanged();
        } else {
          computeBuilder_.setMessage(value);
        }
        resourcesCase_ = 50;
        return this;
      }
      /**
       *
       *
       * <pre>
       * Optional. Compute resources needed for analyze interactive workloads.
       * </pre>
       *
       * <code>
       * .google.cloud.dataplex.v1.Environment.InfrastructureSpec.ComputeResources compute = 50 [(.google.api.field_behavior) = OPTIONAL];
       * </code>
       */
      public Builder setCompute(
          com.google.cloud.dataplex.v1.Environment.InfrastructureSpec.ComputeResources.Builder
              builderForValue) {
        if (computeBuilder_ == null) {
          resources_ = builderForValue.build();
          onChanged();
        } else {
          computeBuilder_.setMessage(builderForValue.build());
        }
        resourcesCase_ = 50;
        return this;
      }
      /**
       *
       *
       * <pre>
       * Optional. Compute resources needed for analyze interactive workloads.
       * </pre>
       *
       * <code>
       * .google.cloud.dataplex.v1.Environment.InfrastructureSpec.ComputeResources compute = 50 [(.google.api.field_behavior) = OPTIONAL];
       * </code>
       */
      public Builder mergeCompute(
          com.google.cloud.dataplex.v1.Environment.InfrastructureSpec.ComputeResources value) {
        if (computeBuilder_ == null) {
          if (resourcesCase_ == 50
              && resources_
                  != com.google.cloud.dataplex.v1.Environment.InfrastructureSpec.ComputeResources
                      .getDefaultInstance()) {
            resources_ =
                com.google.cloud.dataplex.v1.Environment.InfrastructureSpec.ComputeResources
                    .newBuilder(
                        (com.google.cloud.dataplex.v1.Environment.InfrastructureSpec
                                .ComputeResources)
                            resources_)
                    .mergeFrom(value)
                    .buildPartial();
          } else {
            resources_ = value;
          }
          onChanged();
        } else {
          if (resourcesCase_ == 50) {
            computeBuilder_.mergeFrom(value);
          } else {
            computeBuilder_.setMessage(value);
          }
        }
        resourcesCase_ = 50;
        return this;
      }
      /**
       *
       *
       * <pre>
       * Optional. Compute resources needed for analyze interactive workloads.
       * </pre>
       *
       * <code>
       * .google.cloud.dataplex.v1.Environment.InfrastructureSpec.ComputeResources compute = 50 [(.google.api.field_behavior) = OPTIONAL];
       * </code>
       */
      public Builder clearCompute() {
        if (computeBuilder_ == null) {
          if (resourcesCase_ == 50) {
            resourcesCase_ = 0;
            resources_ = null;
            onChanged();
          }
        } else {
          if (resourcesCase_ == 50) {
            resourcesCase_ = 0;
            resources_ = null;
          }
          computeBuilder_.clear();
        }
        return this;
      }
      /**
       *
       *
       * <pre>
       * Optional. Compute resources needed for analyze interactive workloads.
       * </pre>
       *
       * <code>
       * .google.cloud.dataplex.v1.Environment.InfrastructureSpec.ComputeResources compute = 50 [(.google.api.field_behavior) = OPTIONAL];
       * </code>
       */
      public com.google.cloud.dataplex.v1.Environment.InfrastructureSpec.ComputeResources.Builder
          getComputeBuilder() {
        return getComputeFieldBuilder().getBuilder();
      }
      /**
       *
       *
       * <pre>
       * Optional. Compute resources needed for analyze interactive workloads.
       * </pre>
       *
       * <code>
       * .google.cloud.dataplex.v1.Environment.InfrastructureSpec.ComputeResources compute = 50 [(.google.api.field_behavior) = OPTIONAL];
       * </code>
       */
      @java.lang.Override
      public com.google.cloud.dataplex.v1.Environment.InfrastructureSpec.ComputeResourcesOrBuilder
          getComputeOrBuilder() {
        if ((resourcesCase_ == 50) && (computeBuilder_ != null)) {
          return computeBuilder_.getMessageOrBuilder();
        } else {
          if (resourcesCase_ == 50) {
            return (com.google.cloud.dataplex.v1.Environment.InfrastructureSpec.ComputeResources)
                resources_;
          }
          return com.google.cloud.dataplex.v1.Environment.InfrastructureSpec.ComputeResources
              .getDefaultInstance();
        }
      }
      /**
       *
       *
       * <pre>
       * Optional. Compute resources needed for analyze interactive workloads.
       * </pre>
       *
       * <code>
       * .google.cloud.dataplex.v1.Environment.InfrastructureSpec.ComputeResources compute = 50 [(.google.api.field_behavior) = OPTIONAL];
       * </code>
       */
      private com.google.protobuf.SingleFieldBuilderV3<
              com.google.cloud.dataplex.v1.Environment.InfrastructureSpec.ComputeResources,
              com.google.cloud.dataplex.v1.Environment.InfrastructureSpec.ComputeResources.Builder,
              com.google.cloud.dataplex.v1.Environment.InfrastructureSpec.ComputeResourcesOrBuilder>
          getComputeFieldBuilder() {
        if (computeBuilder_ == null) {
          if (!(resourcesCase_ == 50)) {
            resources_ =
                com.google.cloud.dataplex.v1.Environment.InfrastructureSpec.ComputeResources
                    .getDefaultInstance();
          }
          computeBuilder_ =
              new com.google.protobuf.SingleFieldBuilderV3<
                  com.google.cloud.dataplex.v1.Environment.InfrastructureSpec.ComputeResources,
                  com.google.cloud.dataplex.v1.Environment.InfrastructureSpec.ComputeResources
                      .Builder,
                  com.google.cloud.dataplex.v1.Environment.InfrastructureSpec
                      .ComputeResourcesOrBuilder>(
                  (com.google.cloud.dataplex.v1.Environment.InfrastructureSpec.ComputeResources)
                      resources_,
                  getParentForChildren(),
                  isClean());
          resources_ = null;
        }
        resourcesCase_ = 50;
        onChanged();
        return computeBuilder_;
      }

      private com.google.protobuf.SingleFieldBuilderV3<
              com.google.cloud.dataplex.v1.Environment.InfrastructureSpec.OsImageRuntime,
              com.google.cloud.dataplex.v1.Environment.InfrastructureSpec.OsImageRuntime.Builder,
              com.google.cloud.dataplex.v1.Environment.InfrastructureSpec.OsImageRuntimeOrBuilder>
          osImageBuilder_;
      /**
       *
       *
       * <pre>
       * Required. Software Runtime Configuration for analyze interactive
       * workloads.
       * </pre>
       *
       * <code>
       * .google.cloud.dataplex.v1.Environment.InfrastructureSpec.OsImageRuntime os_image = 100 [(.google.api.field_behavior) = REQUIRED];
       * </code>
       *
       * @return Whether the osImage field is set.
       */
      @java.lang.Override
      public boolean hasOsImage() {
        return runtimeCase_ == 100;
      }
      /**
       *
       *
       * <pre>
       * Required. Software Runtime Configuration for analyze interactive
       * workloads.
       * </pre>
       *
       * <code>
       * .google.cloud.dataplex.v1.Environment.InfrastructureSpec.OsImageRuntime os_image = 100 [(.google.api.field_behavior) = REQUIRED];
       * </code>
       *
       * @return The osImage.
       */
      @java.lang.Override
      public com.google.cloud.dataplex.v1.Environment.InfrastructureSpec.OsImageRuntime
          getOsImage() {
        if (osImageBuilder_ == null) {
          if (runtimeCase_ == 100) {
            return (com.google.cloud.dataplex.v1.Environment.InfrastructureSpec.OsImageRuntime)
                runtime_;
          }
          return com.google.cloud.dataplex.v1.Environment.InfrastructureSpec.OsImageRuntime
              .getDefaultInstance();
        } else {
          if (runtimeCase_ == 100) {
            return osImageBuilder_.getMessage();
          }
          return com.google.cloud.dataplex.v1.Environment.InfrastructureSpec.OsImageRuntime
              .getDefaultInstance();
        }
      }
      /**
       *
       *
       * <pre>
       * Required. Software Runtime Configuration for analyze interactive
       * workloads.
       * </pre>
       *
       * <code>
       * .google.cloud.dataplex.v1.Environment.InfrastructureSpec.OsImageRuntime os_image = 100 [(.google.api.field_behavior) = REQUIRED];
       * </code>
       */
      public Builder setOsImage(
          com.google.cloud.dataplex.v1.Environment.InfrastructureSpec.OsImageRuntime value) {
        if (osImageBuilder_ == null) {
          if (value == null) {
            throw new NullPointerException();
          }
          runtime_ = value;
          onChanged();
        } else {
          osImageBuilder_.setMessage(value);
        }
        runtimeCase_ = 100;
        return this;
      }
      /**
       *
       *
       * <pre>
       * Required. Software Runtime Configuration for analyze interactive
       * workloads.
       * </pre>
       *
       * <code>
       * .google.cloud.dataplex.v1.Environment.InfrastructureSpec.OsImageRuntime os_image = 100 [(.google.api.field_behavior) = REQUIRED];
       * </code>
       */
      public Builder setOsImage(
          com.google.cloud.dataplex.v1.Environment.InfrastructureSpec.OsImageRuntime.Builder
              builderForValue) {
        if (osImageBuilder_ == null) {
          runtime_ = builderForValue.build();
          onChanged();
        } else {
          osImageBuilder_.setMessage(builderForValue.build());
        }
        runtimeCase_ = 100;
        return this;
      }
      /**
       *
       *
       * <pre>
       * Required. Software Runtime Configuration for analyze interactive
       * workloads.
       * </pre>
       *
       * <code>
       * .google.cloud.dataplex.v1.Environment.InfrastructureSpec.OsImageRuntime os_image = 100 [(.google.api.field_behavior) = REQUIRED];
       * </code>
       */
      public Builder mergeOsImage(
          com.google.cloud.dataplex.v1.Environment.InfrastructureSpec.OsImageRuntime value) {
        if (osImageBuilder_ == null) {
          if (runtimeCase_ == 100
              && runtime_
                  != com.google.cloud.dataplex.v1.Environment.InfrastructureSpec.OsImageRuntime
                      .getDefaultInstance()) {
            runtime_ =
                com.google.cloud.dataplex.v1.Environment.InfrastructureSpec.OsImageRuntime
                    .newBuilder(
                        (com.google.cloud.dataplex.v1.Environment.InfrastructureSpec.OsImageRuntime)
                            runtime_)
                    .mergeFrom(value)
                    .buildPartial();
          } else {
            runtime_ = value;
          }
          onChanged();
        } else {
          if (runtimeCase_ == 100) {
            osImageBuilder_.mergeFrom(value);
          } else {
            osImageBuilder_.setMessage(value);
          }
        }
        runtimeCase_ = 100;
        return this;
      }
      /**
       *
       *
       * <pre>
       * Required. Software Runtime Configuration for analyze interactive
       * workloads.
       * </pre>
       *
       * <code>
       * .google.cloud.dataplex.v1.Environment.InfrastructureSpec.OsImageRuntime os_image = 100 [(.google.api.field_behavior) = REQUIRED];
       * </code>
       */
      public Builder clearOsImage() {
        if (osImageBuilder_ == null) {
          if (runtimeCase_ == 100) {
            runtimeCase_ = 0;
            runtime_ = null;
            onChanged();
          }
        } else {
          if (runtimeCase_ == 100) {
            runtimeCase_ = 0;
            runtime_ = null;
          }
          osImageBuilder_.clear();
        }
        return this;
      }
      /**
       *
       *
       * <pre>
       * Required. Software Runtime Configuration for analyze interactive
       * workloads.
       * </pre>
       *
       * <code>
       * .google.cloud.dataplex.v1.Environment.InfrastructureSpec.OsImageRuntime os_image = 100 [(.google.api.field_behavior) = REQUIRED];
       * </code>
       */
      public com.google.cloud.dataplex.v1.Environment.InfrastructureSpec.OsImageRuntime.Builder
          getOsImageBuilder() {
        return getOsImageFieldBuilder().getBuilder();
      }
      /**
       *
       *
       * <pre>
       * Required. Software Runtime Configuration for analyze interactive
       * workloads.
       * </pre>
       *
       * <code>
       * .google.cloud.dataplex.v1.Environment.InfrastructureSpec.OsImageRuntime os_image = 100 [(.google.api.field_behavior) = REQUIRED];
       * </code>
       */
      @java.lang.Override
      public com.google.cloud.dataplex.v1.Environment.InfrastructureSpec.OsImageRuntimeOrBuilder
          getOsImageOrBuilder() {
        if ((runtimeCase_ == 100) && (osImageBuilder_ != null)) {
          return osImageBuilder_.getMessageOrBuilder();
        } else {
          if (runtimeCase_ == 100) {
            return (com.google.cloud.dataplex.v1.Environment.InfrastructureSpec.OsImageRuntime)
                runtime_;
          }
          return com.google.cloud.dataplex.v1.Environment.InfrastructureSpec.OsImageRuntime
              .getDefaultInstance();
        }
      }
      /**
       *
       *
       * <pre>
       * Required. Software Runtime Configuration for analyze interactive
       * workloads.
       * </pre>
       *
       * <code>
       * .google.cloud.dataplex.v1.Environment.InfrastructureSpec.OsImageRuntime os_image = 100 [(.google.api.field_behavior) = REQUIRED];
       * </code>
       */
      private com.google.protobuf.SingleFieldBuilderV3<
              com.google.cloud.dataplex.v1.Environment.InfrastructureSpec.OsImageRuntime,
              com.google.cloud.dataplex.v1.Environment.InfrastructureSpec.OsImageRuntime.Builder,
              com.google.cloud.dataplex.v1.Environment.InfrastructureSpec.OsImageRuntimeOrBuilder>
          getOsImageFieldBuilder() {
        if (osImageBuilder_ == null) {
          if (!(runtimeCase_ == 100)) {
            runtime_ =
                com.google.cloud.dataplex.v1.Environment.InfrastructureSpec.OsImageRuntime
                    .getDefaultInstance();
          }
          osImageBuilder_ =
              new com.google.protobuf.SingleFieldBuilderV3<
                  com.google.cloud.dataplex.v1.Environment.InfrastructureSpec.OsImageRuntime,
                  com.google.cloud.dataplex.v1.Environment.InfrastructureSpec.OsImageRuntime
                      .Builder,
                  com.google.cloud.dataplex.v1.Environment.InfrastructureSpec
                      .OsImageRuntimeOrBuilder>(
                  (com.google.cloud.dataplex.v1.Environment.InfrastructureSpec.OsImageRuntime)
                      runtime_,
                  getParentForChildren(),
                  isClean());
          runtime_ = null;
        }
        runtimeCase_ = 100;
        onChanged();
        return osImageBuilder_;
      }

      @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.dataplex.v1.Environment.InfrastructureSpec)
    }

    // @@protoc_insertion_point(class_scope:google.cloud.dataplex.v1.Environment.InfrastructureSpec)
    private static final com.google.cloud.dataplex.v1.Environment.InfrastructureSpec
        DEFAULT_INSTANCE;

    static {
      DEFAULT_INSTANCE = new com.google.cloud.dataplex.v1.Environment.InfrastructureSpec();
    }

    public static com.google.cloud.dataplex.v1.Environment.InfrastructureSpec getDefaultInstance() {
      return DEFAULT_INSTANCE;
    }

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

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

    @java.lang.Override
    public com.google.cloud.dataplex.v1.Environment.InfrastructureSpec getDefaultInstanceForType() {
      return DEFAULT_INSTANCE;
    }
  }

  public interface SessionSpecOrBuilder
      extends
      // @@protoc_insertion_point(interface_extends:google.cloud.dataplex.v1.Environment.SessionSpec)
      com.google.protobuf.MessageOrBuilder {

    /**
     *
     *
     * <pre>
     * Optional. The idle time configuration of the session. The session will be
     * auto-terminated at the end of this period.
     * </pre>
     *
     * <code>
     * .google.protobuf.Duration max_idle_duration = 1 [(.google.api.field_behavior) = OPTIONAL];
     * </code>
     *
     * @return Whether the maxIdleDuration field is set.
     */
    boolean hasMaxIdleDuration();
    /**
     *
     *
     * <pre>
     * Optional. The idle time configuration of the session. The session will be
     * auto-terminated at the end of this period.
     * </pre>
     *
     * <code>
     * .google.protobuf.Duration max_idle_duration = 1 [(.google.api.field_behavior) = OPTIONAL];
     * </code>
     *
     * @return The maxIdleDuration.
     */
    com.google.protobuf.Duration getMaxIdleDuration();
    /**
     *
     *
     * <pre>
     * Optional. The idle time configuration of the session. The session will be
     * auto-terminated at the end of this period.
     * </pre>
     *
     * <code>
     * .google.protobuf.Duration max_idle_duration = 1 [(.google.api.field_behavior) = OPTIONAL];
     * </code>
     */
    com.google.protobuf.DurationOrBuilder getMaxIdleDurationOrBuilder();

    /**
     *
     *
     * <pre>
     * Optional. If True, this causes sessions to be pre-created and available
     * for faster startup to enable interactive exploration use-cases. This
     * defaults to False to avoid additional billed charges. These can only be
     * set to True for the environment with name set to "default", and with
     * default configuration.
     * </pre>
     *
     * <code>bool enable_fast_startup = 2 [(.google.api.field_behavior) = OPTIONAL];</code>
     *
     * @return The enableFastStartup.
     */
    boolean getEnableFastStartup();
  }
  /**
   *
   *
   * <pre>
   * Configuration for sessions created for this environment.
   * </pre>
   *
   * Protobuf type {@code google.cloud.dataplex.v1.Environment.SessionSpec}
   */
  public static final class SessionSpec extends com.google.protobuf.GeneratedMessageV3
      implements
      // @@protoc_insertion_point(message_implements:google.cloud.dataplex.v1.Environment.SessionSpec)
      SessionSpecOrBuilder {
    private static final long serialVersionUID = 0L;
    // Use SessionSpec.newBuilder() to construct.
    private SessionSpec(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {
      super(builder);
    }

    private SessionSpec() {}

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

    @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.dataplex.v1.AnalyzeProto
          .internal_static_google_cloud_dataplex_v1_Environment_SessionSpec_descriptor;
    }

    @java.lang.Override
    protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
        internalGetFieldAccessorTable() {
      return com.google.cloud.dataplex.v1.AnalyzeProto
          .internal_static_google_cloud_dataplex_v1_Environment_SessionSpec_fieldAccessorTable
          .ensureFieldAccessorsInitialized(
              com.google.cloud.dataplex.v1.Environment.SessionSpec.class,
              com.google.cloud.dataplex.v1.Environment.SessionSpec.Builder.class);
    }

    public static final int MAX_IDLE_DURATION_FIELD_NUMBER = 1;
    private com.google.protobuf.Duration maxIdleDuration_;
    /**
     *
     *
     * <pre>
     * Optional. The idle time configuration of the session. The session will be
     * auto-terminated at the end of this period.
     * </pre>
     *
     * <code>
     * .google.protobuf.Duration max_idle_duration = 1 [(.google.api.field_behavior) = OPTIONAL];
     * </code>
     *
     * @return Whether the maxIdleDuration field is set.
     */
    @java.lang.Override
    public boolean hasMaxIdleDuration() {
      return maxIdleDuration_ != null;
    }
    /**
     *
     *
     * <pre>
     * Optional. The idle time configuration of the session. The session will be
     * auto-terminated at the end of this period.
     * </pre>
     *
     * <code>
     * .google.protobuf.Duration max_idle_duration = 1 [(.google.api.field_behavior) = OPTIONAL];
     * </code>
     *
     * @return The maxIdleDuration.
     */
    @java.lang.Override
    public com.google.protobuf.Duration getMaxIdleDuration() {
      return maxIdleDuration_ == null
          ? com.google.protobuf.Duration.getDefaultInstance()
          : maxIdleDuration_;
    }
    /**
     *
     *
     * <pre>
     * Optional. The idle time configuration of the session. The session will be
     * auto-terminated at the end of this period.
     * </pre>
     *
     * <code>
     * .google.protobuf.Duration max_idle_duration = 1 [(.google.api.field_behavior) = OPTIONAL];
     * </code>
     */
    @java.lang.Override
    public com.google.protobuf.DurationOrBuilder getMaxIdleDurationOrBuilder() {
      return maxIdleDuration_ == null
          ? com.google.protobuf.Duration.getDefaultInstance()
          : maxIdleDuration_;
    }

    public static final int ENABLE_FAST_STARTUP_FIELD_NUMBER = 2;
    private boolean enableFastStartup_ = false;
    /**
     *
     *
     * <pre>
     * Optional. If True, this causes sessions to be pre-created and available
     * for faster startup to enable interactive exploration use-cases. This
     * defaults to False to avoid additional billed charges. These can only be
     * set to True for the environment with name set to "default", and with
     * default configuration.
     * </pre>
     *
     * <code>bool enable_fast_startup = 2 [(.google.api.field_behavior) = OPTIONAL];</code>
     *
     * @return The enableFastStartup.
     */
    @java.lang.Override
    public boolean getEnableFastStartup() {
      return enableFastStartup_;
    }

    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 (maxIdleDuration_ != null) {
        output.writeMessage(1, getMaxIdleDuration());
      }
      if (enableFastStartup_ != false) {
        output.writeBool(2, enableFastStartup_);
      }
      getUnknownFields().writeTo(output);
    }

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

      size = 0;
      if (maxIdleDuration_ != null) {
        size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getMaxIdleDuration());
      }
      if (enableFastStartup_ != false) {
        size += com.google.protobuf.CodedOutputStream.computeBoolSize(2, enableFastStartup_);
      }
      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.dataplex.v1.Environment.SessionSpec)) {
        return super.equals(obj);
      }
      com.google.cloud.dataplex.v1.Environment.SessionSpec other =
          (com.google.cloud.dataplex.v1.Environment.SessionSpec) obj;

      if (hasMaxIdleDuration() != other.hasMaxIdleDuration()) return false;
      if (hasMaxIdleDuration()) {
        if (!getMaxIdleDuration().equals(other.getMaxIdleDuration())) return false;
      }
      if (getEnableFastStartup() != other.getEnableFastStartup()) 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();
      if (hasMaxIdleDuration()) {
        hash = (37 * hash) + MAX_IDLE_DURATION_FIELD_NUMBER;
        hash = (53 * hash) + getMaxIdleDuration().hashCode();
      }
      hash = (37 * hash) + ENABLE_FAST_STARTUP_FIELD_NUMBER;
      hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getEnableFastStartup());
      hash = (29 * hash) + getUnknownFields().hashCode();
      memoizedHashCode = hash;
      return hash;
    }

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

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

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

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

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

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

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

    public static com.google.cloud.dataplex.v1.Environment.SessionSpec 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.dataplex.v1.Environment.SessionSpec 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>
     * Configuration for sessions created for this environment.
     * </pre>
     *
     * Protobuf type {@code google.cloud.dataplex.v1.Environment.SessionSpec}
     */
    public static final class Builder
        extends com.google.protobuf.GeneratedMessageV3.Builder<Builder>
        implements
        // @@protoc_insertion_point(builder_implements:google.cloud.dataplex.v1.Environment.SessionSpec)
        com.google.cloud.dataplex.v1.Environment.SessionSpecOrBuilder {
      public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
        return com.google.cloud.dataplex.v1.AnalyzeProto
            .internal_static_google_cloud_dataplex_v1_Environment_SessionSpec_descriptor;
      }

      @java.lang.Override
      protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
          internalGetFieldAccessorTable() {
        return com.google.cloud.dataplex.v1.AnalyzeProto
            .internal_static_google_cloud_dataplex_v1_Environment_SessionSpec_fieldAccessorTable
            .ensureFieldAccessorsInitialized(
                com.google.cloud.dataplex.v1.Environment.SessionSpec.class,
                com.google.cloud.dataplex.v1.Environment.SessionSpec.Builder.class);
      }

      // Construct using com.google.cloud.dataplex.v1.Environment.SessionSpec.newBuilder()
      private Builder() {}

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

      @java.lang.Override
      public Builder clear() {
        super.clear();
        bitField0_ = 0;
        maxIdleDuration_ = null;
        if (maxIdleDurationBuilder_ != null) {
          maxIdleDurationBuilder_.dispose();
          maxIdleDurationBuilder_ = null;
        }
        enableFastStartup_ = false;
        return this;
      }

      @java.lang.Override
      public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
        return com.google.cloud.dataplex.v1.AnalyzeProto
            .internal_static_google_cloud_dataplex_v1_Environment_SessionSpec_descriptor;
      }

      @java.lang.Override
      public com.google.cloud.dataplex.v1.Environment.SessionSpec getDefaultInstanceForType() {
        return com.google.cloud.dataplex.v1.Environment.SessionSpec.getDefaultInstance();
      }

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

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

      private void buildPartial0(com.google.cloud.dataplex.v1.Environment.SessionSpec result) {
        int from_bitField0_ = bitField0_;
        if (((from_bitField0_ & 0x00000001) != 0)) {
          result.maxIdleDuration_ =
              maxIdleDurationBuilder_ == null ? maxIdleDuration_ : maxIdleDurationBuilder_.build();
        }
        if (((from_bitField0_ & 0x00000002) != 0)) {
          result.enableFastStartup_ = enableFastStartup_;
        }
      }

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

      public Builder mergeFrom(com.google.cloud.dataplex.v1.Environment.SessionSpec other) {
        if (other == com.google.cloud.dataplex.v1.Environment.SessionSpec.getDefaultInstance())
          return this;
        if (other.hasMaxIdleDuration()) {
          mergeMaxIdleDuration(other.getMaxIdleDuration());
        }
        if (other.getEnableFastStartup() != false) {
          setEnableFastStartup(other.getEnableFastStartup());
        }
        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:
                {
                  input.readMessage(
                      getMaxIdleDurationFieldBuilder().getBuilder(), extensionRegistry);
                  bitField0_ |= 0x00000001;
                  break;
                } // case 10
              case 16:
                {
                  enableFastStartup_ = input.readBool();
                  bitField0_ |= 0x00000002;
                  break;
                } // case 16
              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 com.google.protobuf.Duration maxIdleDuration_;
      private com.google.protobuf.SingleFieldBuilderV3<
              com.google.protobuf.Duration,
              com.google.protobuf.Duration.Builder,
              com.google.protobuf.DurationOrBuilder>
          maxIdleDurationBuilder_;
      /**
       *
       *
       * <pre>
       * Optional. The idle time configuration of the session. The session will be
       * auto-terminated at the end of this period.
       * </pre>
       *
       * <code>
       * .google.protobuf.Duration max_idle_duration = 1 [(.google.api.field_behavior) = OPTIONAL];
       * </code>
       *
       * @return Whether the maxIdleDuration field is set.
       */
      public boolean hasMaxIdleDuration() {
        return ((bitField0_ & 0x00000001) != 0);
      }
      /**
       *
       *
       * <pre>
       * Optional. The idle time configuration of the session. The session will be
       * auto-terminated at the end of this period.
       * </pre>
       *
       * <code>
       * .google.protobuf.Duration max_idle_duration = 1 [(.google.api.field_behavior) = OPTIONAL];
       * </code>
       *
       * @return The maxIdleDuration.
       */
      public com.google.protobuf.Duration getMaxIdleDuration() {
        if (maxIdleDurationBuilder_ == null) {
          return maxIdleDuration_ == null
              ? com.google.protobuf.Duration.getDefaultInstance()
              : maxIdleDuration_;
        } else {
          return maxIdleDurationBuilder_.getMessage();
        }
      }
      /**
       *
       *
       * <pre>
       * Optional. The idle time configuration of the session. The session will be
       * auto-terminated at the end of this period.
       * </pre>
       *
       * <code>
       * .google.protobuf.Duration max_idle_duration = 1 [(.google.api.field_behavior) = OPTIONAL];
       * </code>
       */
      public Builder setMaxIdleDuration(com.google.protobuf.Duration value) {
        if (maxIdleDurationBuilder_ == null) {
          if (value == null) {
            throw new NullPointerException();
          }
          maxIdleDuration_ = value;
        } else {
          maxIdleDurationBuilder_.setMessage(value);
        }
        bitField0_ |= 0x00000001;
        onChanged();
        return this;
      }
      /**
       *
       *
       * <pre>
       * Optional. The idle time configuration of the session. The session will be
       * auto-terminated at the end of this period.
       * </pre>
       *
       * <code>
       * .google.protobuf.Duration max_idle_duration = 1 [(.google.api.field_behavior) = OPTIONAL];
       * </code>
       */
      public Builder setMaxIdleDuration(com.google.protobuf.Duration.Builder builderForValue) {
        if (maxIdleDurationBuilder_ == null) {
          maxIdleDuration_ = builderForValue.build();
        } else {
          maxIdleDurationBuilder_.setMessage(builderForValue.build());
        }
        bitField0_ |= 0x00000001;
        onChanged();
        return this;
      }
      /**
       *
       *
       * <pre>
       * Optional. The idle time configuration of the session. The session will be
       * auto-terminated at the end of this period.
       * </pre>
       *
       * <code>
       * .google.protobuf.Duration max_idle_duration = 1 [(.google.api.field_behavior) = OPTIONAL];
       * </code>
       */
      public Builder mergeMaxIdleDuration(com.google.protobuf.Duration value) {
        if (maxIdleDurationBuilder_ == null) {
          if (((bitField0_ & 0x00000001) != 0)
              && maxIdleDuration_ != null
              && maxIdleDuration_ != com.google.protobuf.Duration.getDefaultInstance()) {
            getMaxIdleDurationBuilder().mergeFrom(value);
          } else {
            maxIdleDuration_ = value;
          }
        } else {
          maxIdleDurationBuilder_.mergeFrom(value);
        }
        bitField0_ |= 0x00000001;
        onChanged();
        return this;
      }
      /**
       *
       *
       * <pre>
       * Optional. The idle time configuration of the session. The session will be
       * auto-terminated at the end of this period.
       * </pre>
       *
       * <code>
       * .google.protobuf.Duration max_idle_duration = 1 [(.google.api.field_behavior) = OPTIONAL];
       * </code>
       */
      public Builder clearMaxIdleDuration() {
        bitField0_ = (bitField0_ & ~0x00000001);
        maxIdleDuration_ = null;
        if (maxIdleDurationBuilder_ != null) {
          maxIdleDurationBuilder_.dispose();
          maxIdleDurationBuilder_ = null;
        }
        onChanged();
        return this;
      }
      /**
       *
       *
       * <pre>
       * Optional. The idle time configuration of the session. The session will be
       * auto-terminated at the end of this period.
       * </pre>
       *
       * <code>
       * .google.protobuf.Duration max_idle_duration = 1 [(.google.api.field_behavior) = OPTIONAL];
       * </code>
       */
      public com.google.protobuf.Duration.Builder getMaxIdleDurationBuilder() {
        bitField0_ |= 0x00000001;
        onChanged();
        return getMaxIdleDurationFieldBuilder().getBuilder();
      }
      /**
       *
       *
       * <pre>
       * Optional. The idle time configuration of the session. The session will be
       * auto-terminated at the end of this period.
       * </pre>
       *
       * <code>
       * .google.protobuf.Duration max_idle_duration = 1 [(.google.api.field_behavior) = OPTIONAL];
       * </code>
       */
      public com.google.protobuf.DurationOrBuilder getMaxIdleDurationOrBuilder() {
        if (maxIdleDurationBuilder_ != null) {
          return maxIdleDurationBuilder_.getMessageOrBuilder();
        } else {
          return maxIdleDuration_ == null
              ? com.google.protobuf.Duration.getDefaultInstance()
              : maxIdleDuration_;
        }
      }
      /**
       *
       *
       * <pre>
       * Optional. The idle time configuration of the session. The session will be
       * auto-terminated at the end of this period.
       * </pre>
       *
       * <code>
       * .google.protobuf.Duration max_idle_duration = 1 [(.google.api.field_behavior) = OPTIONAL];
       * </code>
       */
      private com.google.protobuf.SingleFieldBuilderV3<
              com.google.protobuf.Duration,
              com.google.protobuf.Duration.Builder,
              com.google.protobuf.DurationOrBuilder>
          getMaxIdleDurationFieldBuilder() {
        if (maxIdleDurationBuilder_ == null) {
          maxIdleDurationBuilder_ =
              new com.google.protobuf.SingleFieldBuilderV3<
                  com.google.protobuf.Duration,
                  com.google.protobuf.Duration.Builder,
                  com.google.protobuf.DurationOrBuilder>(
                  getMaxIdleDuration(), getParentForChildren(), isClean());
          maxIdleDuration_ = null;
        }
        return maxIdleDurationBuilder_;
      }

      private boolean enableFastStartup_;
      /**
       *
       *
       * <pre>
       * Optional. If True, this causes sessions to be pre-created and available
       * for faster startup to enable interactive exploration use-cases. This
       * defaults to False to avoid additional billed charges. These can only be
       * set to True for the environment with name set to "default", and with
       * default configuration.
       * </pre>
       *
       * <code>bool enable_fast_startup = 2 [(.google.api.field_behavior) = OPTIONAL];</code>
       *
       * @return The enableFastStartup.
       */
      @java.lang.Override
      public boolean getEnableFastStartup() {
        return enableFastStartup_;
      }
      /**
       *
       *
       * <pre>
       * Optional. If True, this causes sessions to be pre-created and available
       * for faster startup to enable interactive exploration use-cases. This
       * defaults to False to avoid additional billed charges. These can only be
       * set to True for the environment with name set to "default", and with
       * default configuration.
       * </pre>
       *
       * <code>bool enable_fast_startup = 2 [(.google.api.field_behavior) = OPTIONAL];</code>
       *
       * @param value The enableFastStartup to set.
       * @return This builder for chaining.
       */
      public Builder setEnableFastStartup(boolean value) {

        enableFastStartup_ = value;
        bitField0_ |= 0x00000002;
        onChanged();
        return this;
      }
      /**
       *
       *
       * <pre>
       * Optional. If True, this causes sessions to be pre-created and available
       * for faster startup to enable interactive exploration use-cases. This
       * defaults to False to avoid additional billed charges. These can only be
       * set to True for the environment with name set to "default", and with
       * default configuration.
       * </pre>
       *
       * <code>bool enable_fast_startup = 2 [(.google.api.field_behavior) = OPTIONAL];</code>
       *
       * @return This builder for chaining.
       */
      public Builder clearEnableFastStartup() {
        bitField0_ = (bitField0_ & ~0x00000002);
        enableFastStartup_ = false;
        onChanged();
        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.dataplex.v1.Environment.SessionSpec)
    }

    // @@protoc_insertion_point(class_scope:google.cloud.dataplex.v1.Environment.SessionSpec)
    private static final com.google.cloud.dataplex.v1.Environment.SessionSpec DEFAULT_INSTANCE;

    static {
      DEFAULT_INSTANCE = new com.google.cloud.dataplex.v1.Environment.SessionSpec();
    }

    public static com.google.cloud.dataplex.v1.Environment.SessionSpec getDefaultInstance() {
      return DEFAULT_INSTANCE;
    }

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

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

    @java.lang.Override
    public com.google.cloud.dataplex.v1.Environment.SessionSpec getDefaultInstanceForType() {
      return DEFAULT_INSTANCE;
    }
  }

  public interface SessionStatusOrBuilder
      extends
      // @@protoc_insertion_point(interface_extends:google.cloud.dataplex.v1.Environment.SessionStatus)
      com.google.protobuf.MessageOrBuilder {

    /**
     *
     *
     * <pre>
     * Output only. Queries over sessions to mark whether the environment is
     * currently active or not
     * </pre>
     *
     * <code>bool active = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
     *
     * @return The active.
     */
    boolean getActive();
  }
  /**
   *
   *
   * <pre>
   * Status of sessions created for this environment.
   * </pre>
   *
   * Protobuf type {@code google.cloud.dataplex.v1.Environment.SessionStatus}
   */
  public static final class SessionStatus extends com.google.protobuf.GeneratedMessageV3
      implements
      // @@protoc_insertion_point(message_implements:google.cloud.dataplex.v1.Environment.SessionStatus)
      SessionStatusOrBuilder {
    private static final long serialVersionUID = 0L;
    // Use SessionStatus.newBuilder() to construct.
    private SessionStatus(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {
      super(builder);
    }

    private SessionStatus() {}

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

    @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.dataplex.v1.AnalyzeProto
          .internal_static_google_cloud_dataplex_v1_Environment_SessionStatus_descriptor;
    }

    @java.lang.Override
    protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
        internalGetFieldAccessorTable() {
      return com.google.cloud.dataplex.v1.AnalyzeProto
          .internal_static_google_cloud_dataplex_v1_Environment_SessionStatus_fieldAccessorTable
          .ensureFieldAccessorsInitialized(
              com.google.cloud.dataplex.v1.Environment.SessionStatus.class,
              com.google.cloud.dataplex.v1.Environment.SessionStatus.Builder.class);
    }

    public static final int ACTIVE_FIELD_NUMBER = 1;
    private boolean active_ = false;
    /**
     *
     *
     * <pre>
     * Output only. Queries over sessions to mark whether the environment is
     * currently active or not
     * </pre>
     *
     * <code>bool active = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
     *
     * @return The active.
     */
    @java.lang.Override
    public boolean getActive() {
      return active_;
    }

    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 (active_ != false) {
        output.writeBool(1, active_);
      }
      getUnknownFields().writeTo(output);
    }

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

      size = 0;
      if (active_ != false) {
        size += com.google.protobuf.CodedOutputStream.computeBoolSize(1, active_);
      }
      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.dataplex.v1.Environment.SessionStatus)) {
        return super.equals(obj);
      }
      com.google.cloud.dataplex.v1.Environment.SessionStatus other =
          (com.google.cloud.dataplex.v1.Environment.SessionStatus) obj;

      if (getActive() != other.getActive()) 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) + ACTIVE_FIELD_NUMBER;
      hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getActive());
      hash = (29 * hash) + getUnknownFields().hashCode();
      memoizedHashCode = hash;
      return hash;
    }

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

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

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

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

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

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

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

    public static com.google.cloud.dataplex.v1.Environment.SessionStatus 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.dataplex.v1.Environment.SessionStatus 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>
     * Status of sessions created for this environment.
     * </pre>
     *
     * Protobuf type {@code google.cloud.dataplex.v1.Environment.SessionStatus}
     */
    public static final class Builder
        extends com.google.protobuf.GeneratedMessageV3.Builder<Builder>
        implements
        // @@protoc_insertion_point(builder_implements:google.cloud.dataplex.v1.Environment.SessionStatus)
        com.google.cloud.dataplex.v1.Environment.SessionStatusOrBuilder {
      public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
        return com.google.cloud.dataplex.v1.AnalyzeProto
            .internal_static_google_cloud_dataplex_v1_Environment_SessionStatus_descriptor;
      }

      @java.lang.Override
      protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
          internalGetFieldAccessorTable() {
        return com.google.cloud.dataplex.v1.AnalyzeProto
            .internal_static_google_cloud_dataplex_v1_Environment_SessionStatus_fieldAccessorTable
            .ensureFieldAccessorsInitialized(
                com.google.cloud.dataplex.v1.Environment.SessionStatus.class,
                com.google.cloud.dataplex.v1.Environment.SessionStatus.Builder.class);
      }

      // Construct using com.google.cloud.dataplex.v1.Environment.SessionStatus.newBuilder()
      private Builder() {}

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

      @java.lang.Override
      public Builder clear() {
        super.clear();
        bitField0_ = 0;
        active_ = false;
        return this;
      }

      @java.lang.Override
      public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
        return com.google.cloud.dataplex.v1.AnalyzeProto
            .internal_static_google_cloud_dataplex_v1_Environment_SessionStatus_descriptor;
      }

      @java.lang.Override
      public com.google.cloud.dataplex.v1.Environment.SessionStatus getDefaultInstanceForType() {
        return com.google.cloud.dataplex.v1.Environment.SessionStatus.getDefaultInstance();
      }

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

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

      private void buildPartial0(com.google.cloud.dataplex.v1.Environment.SessionStatus result) {
        int from_bitField0_ = bitField0_;
        if (((from_bitField0_ & 0x00000001) != 0)) {
          result.active_ = active_;
        }
      }

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

      public Builder mergeFrom(com.google.cloud.dataplex.v1.Environment.SessionStatus other) {
        if (other == com.google.cloud.dataplex.v1.Environment.SessionStatus.getDefaultInstance())
          return this;
        if (other.getActive() != false) {
          setActive(other.getActive());
        }
        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 8:
                {
                  active_ = input.readBool();
                  bitField0_ |= 0x00000001;
                  break;
                } // case 8
              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 boolean active_;
      /**
       *
       *
       * <pre>
       * Output only. Queries over sessions to mark whether the environment is
       * currently active or not
       * </pre>
       *
       * <code>bool active = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
       *
       * @return The active.
       */
      @java.lang.Override
      public boolean getActive() {
        return active_;
      }
      /**
       *
       *
       * <pre>
       * Output only. Queries over sessions to mark whether the environment is
       * currently active or not
       * </pre>
       *
       * <code>bool active = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
       *
       * @param value The active to set.
       * @return This builder for chaining.
       */
      public Builder setActive(boolean value) {

        active_ = value;
        bitField0_ |= 0x00000001;
        onChanged();
        return this;
      }
      /**
       *
       *
       * <pre>
       * Output only. Queries over sessions to mark whether the environment is
       * currently active or not
       * </pre>
       *
       * <code>bool active = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
       *
       * @return This builder for chaining.
       */
      public Builder clearActive() {
        bitField0_ = (bitField0_ & ~0x00000001);
        active_ = false;
        onChanged();
        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.dataplex.v1.Environment.SessionStatus)
    }

    // @@protoc_insertion_point(class_scope:google.cloud.dataplex.v1.Environment.SessionStatus)
    private static final com.google.cloud.dataplex.v1.Environment.SessionStatus DEFAULT_INSTANCE;

    static {
      DEFAULT_INSTANCE = new com.google.cloud.dataplex.v1.Environment.SessionStatus();
    }

    public static com.google.cloud.dataplex.v1.Environment.SessionStatus getDefaultInstance() {
      return DEFAULT_INSTANCE;
    }

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

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

    @java.lang.Override
    public com.google.cloud.dataplex.v1.Environment.SessionStatus getDefaultInstanceForType() {
      return DEFAULT_INSTANCE;
    }
  }

  public interface EndpointsOrBuilder
      extends
      // @@protoc_insertion_point(interface_extends:google.cloud.dataplex.v1.Environment.Endpoints)
      com.google.protobuf.MessageOrBuilder {

    /**
     *
     *
     * <pre>
     * Output only. URI to serve notebook APIs
     * </pre>
     *
     * <code>string notebooks = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
     *
     * @return The notebooks.
     */
    java.lang.String getNotebooks();
    /**
     *
     *
     * <pre>
     * Output only. URI to serve notebook APIs
     * </pre>
     *
     * <code>string notebooks = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
     *
     * @return The bytes for notebooks.
     */
    com.google.protobuf.ByteString getNotebooksBytes();

    /**
     *
     *
     * <pre>
     * Output only. URI to serve SQL APIs
     * </pre>
     *
     * <code>string sql = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
     *
     * @return The sql.
     */
    java.lang.String getSql();
    /**
     *
     *
     * <pre>
     * Output only. URI to serve SQL APIs
     * </pre>
     *
     * <code>string sql = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
     *
     * @return The bytes for sql.
     */
    com.google.protobuf.ByteString getSqlBytes();
  }
  /**
   *
   *
   * <pre>
   * URI Endpoints to access sessions associated with the Environment.
   * </pre>
   *
   * Protobuf type {@code google.cloud.dataplex.v1.Environment.Endpoints}
   */
  public static final class Endpoints extends com.google.protobuf.GeneratedMessageV3
      implements
      // @@protoc_insertion_point(message_implements:google.cloud.dataplex.v1.Environment.Endpoints)
      EndpointsOrBuilder {
    private static final long serialVersionUID = 0L;
    // Use Endpoints.newBuilder() to construct.
    private Endpoints(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {
      super(builder);
    }

    private Endpoints() {
      notebooks_ = "";
      sql_ = "";
    }

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

    @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.dataplex.v1.AnalyzeProto
          .internal_static_google_cloud_dataplex_v1_Environment_Endpoints_descriptor;
    }

    @java.lang.Override
    protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
        internalGetFieldAccessorTable() {
      return com.google.cloud.dataplex.v1.AnalyzeProto
          .internal_static_google_cloud_dataplex_v1_Environment_Endpoints_fieldAccessorTable
          .ensureFieldAccessorsInitialized(
              com.google.cloud.dataplex.v1.Environment.Endpoints.class,
              com.google.cloud.dataplex.v1.Environment.Endpoints.Builder.class);
    }

    public static final int NOTEBOOKS_FIELD_NUMBER = 1;

    @SuppressWarnings("serial")
    private volatile java.lang.Object notebooks_ = "";
    /**
     *
     *
     * <pre>
     * Output only. URI to serve notebook APIs
     * </pre>
     *
     * <code>string notebooks = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
     *
     * @return The notebooks.
     */
    @java.lang.Override
    public java.lang.String getNotebooks() {
      java.lang.Object ref = notebooks_;
      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();
        notebooks_ = s;
        return s;
      }
    }
    /**
     *
     *
     * <pre>
     * Output only. URI to serve notebook APIs
     * </pre>
     *
     * <code>string notebooks = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
     *
     * @return The bytes for notebooks.
     */
    @java.lang.Override
    public com.google.protobuf.ByteString getNotebooksBytes() {
      java.lang.Object ref = notebooks_;
      if (ref instanceof java.lang.String) {
        com.google.protobuf.ByteString b =
            com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
        notebooks_ = b;
        return b;
      } else {
        return (com.google.protobuf.ByteString) ref;
      }
    }

    public static final int SQL_FIELD_NUMBER = 2;

    @SuppressWarnings("serial")
    private volatile java.lang.Object sql_ = "";
    /**
     *
     *
     * <pre>
     * Output only. URI to serve SQL APIs
     * </pre>
     *
     * <code>string sql = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
     *
     * @return The sql.
     */
    @java.lang.Override
    public java.lang.String getSql() {
      java.lang.Object ref = sql_;
      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();
        sql_ = s;
        return s;
      }
    }
    /**
     *
     *
     * <pre>
     * Output only. URI to serve SQL APIs
     * </pre>
     *
     * <code>string sql = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
     *
     * @return The bytes for sql.
     */
    @java.lang.Override
    public com.google.protobuf.ByteString getSqlBytes() {
      java.lang.Object ref = sql_;
      if (ref instanceof java.lang.String) {
        com.google.protobuf.ByteString b =
            com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
        sql_ = b;
        return b;
      } else {
        return (com.google.protobuf.ByteString) ref;
      }
    }

    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(notebooks_)) {
        com.google.protobuf.GeneratedMessageV3.writeString(output, 1, notebooks_);
      }
      if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(sql_)) {
        com.google.protobuf.GeneratedMessageV3.writeString(output, 2, sql_);
      }
      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(notebooks_)) {
        size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, notebooks_);
      }
      if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(sql_)) {
        size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, sql_);
      }
      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.dataplex.v1.Environment.Endpoints)) {
        return super.equals(obj);
      }
      com.google.cloud.dataplex.v1.Environment.Endpoints other =
          (com.google.cloud.dataplex.v1.Environment.Endpoints) obj;

      if (!getNotebooks().equals(other.getNotebooks())) return false;
      if (!getSql().equals(other.getSql())) 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) + NOTEBOOKS_FIELD_NUMBER;
      hash = (53 * hash) + getNotebooks().hashCode();
      hash = (37 * hash) + SQL_FIELD_NUMBER;
      hash = (53 * hash) + getSql().hashCode();
      hash = (29 * hash) + getUnknownFields().hashCode();
      memoizedHashCode = hash;
      return hash;
    }

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

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

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

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

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

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

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

    public static com.google.cloud.dataplex.v1.Environment.Endpoints 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.dataplex.v1.Environment.Endpoints 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>
     * URI Endpoints to access sessions associated with the Environment.
     * </pre>
     *
     * Protobuf type {@code google.cloud.dataplex.v1.Environment.Endpoints}
     */
    public static final class Builder
        extends com.google.protobuf.GeneratedMessageV3.Builder<Builder>
        implements
        // @@protoc_insertion_point(builder_implements:google.cloud.dataplex.v1.Environment.Endpoints)
        com.google.cloud.dataplex.v1.Environment.EndpointsOrBuilder {
      public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
        return com.google.cloud.dataplex.v1.AnalyzeProto
            .internal_static_google_cloud_dataplex_v1_Environment_Endpoints_descriptor;
      }

      @java.lang.Override
      protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
          internalGetFieldAccessorTable() {
        return com.google.cloud.dataplex.v1.AnalyzeProto
            .internal_static_google_cloud_dataplex_v1_Environment_Endpoints_fieldAccessorTable
            .ensureFieldAccessorsInitialized(
                com.google.cloud.dataplex.v1.Environment.Endpoints.class,
                com.google.cloud.dataplex.v1.Environment.Endpoints.Builder.class);
      }

      // Construct using com.google.cloud.dataplex.v1.Environment.Endpoints.newBuilder()
      private Builder() {}

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

      @java.lang.Override
      public Builder clear() {
        super.clear();
        bitField0_ = 0;
        notebooks_ = "";
        sql_ = "";
        return this;
      }

      @java.lang.Override
      public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
        return com.google.cloud.dataplex.v1.AnalyzeProto
            .internal_static_google_cloud_dataplex_v1_Environment_Endpoints_descriptor;
      }

      @java.lang.Override
      public com.google.cloud.dataplex.v1.Environment.Endpoints getDefaultInstanceForType() {
        return com.google.cloud.dataplex.v1.Environment.Endpoints.getDefaultInstance();
      }

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

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

      private void buildPartial0(com.google.cloud.dataplex.v1.Environment.Endpoints result) {
        int from_bitField0_ = bitField0_;
        if (((from_bitField0_ & 0x00000001) != 0)) {
          result.notebooks_ = notebooks_;
        }
        if (((from_bitField0_ & 0x00000002) != 0)) {
          result.sql_ = sql_;
        }
      }

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

      public Builder mergeFrom(com.google.cloud.dataplex.v1.Environment.Endpoints other) {
        if (other == com.google.cloud.dataplex.v1.Environment.Endpoints.getDefaultInstance())
          return this;
        if (!other.getNotebooks().isEmpty()) {
          notebooks_ = other.notebooks_;
          bitField0_ |= 0x00000001;
          onChanged();
        }
        if (!other.getSql().isEmpty()) {
          sql_ = other.sql_;
          bitField0_ |= 0x00000002;
          onChanged();
        }
        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:
                {
                  notebooks_ = input.readStringRequireUtf8();
                  bitField0_ |= 0x00000001;
                  break;
                } // case 10
              case 18:
                {
                  sql_ = input.readStringRequireUtf8();
                  bitField0_ |= 0x00000002;
                  break;
                } // case 18
              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 notebooks_ = "";
      /**
       *
       *
       * <pre>
       * Output only. URI to serve notebook APIs
       * </pre>
       *
       * <code>string notebooks = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
       *
       * @return The notebooks.
       */
      public java.lang.String getNotebooks() {
        java.lang.Object ref = notebooks_;
        if (!(ref instanceof java.lang.String)) {
          com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
          java.lang.String s = bs.toStringUtf8();
          notebooks_ = s;
          return s;
        } else {
          return (java.lang.String) ref;
        }
      }
      /**
       *
       *
       * <pre>
       * Output only. URI to serve notebook APIs
       * </pre>
       *
       * <code>string notebooks = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
       *
       * @return The bytes for notebooks.
       */
      public com.google.protobuf.ByteString getNotebooksBytes() {
        java.lang.Object ref = notebooks_;
        if (ref instanceof String) {
          com.google.protobuf.ByteString b =
              com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
          notebooks_ = b;
          return b;
        } else {
          return (com.google.protobuf.ByteString) ref;
        }
      }
      /**
       *
       *
       * <pre>
       * Output only. URI to serve notebook APIs
       * </pre>
       *
       * <code>string notebooks = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
       *
       * @param value The notebooks to set.
       * @return This builder for chaining.
       */
      public Builder setNotebooks(java.lang.String value) {
        if (value == null) {
          throw new NullPointerException();
        }
        notebooks_ = value;
        bitField0_ |= 0x00000001;
        onChanged();
        return this;
      }
      /**
       *
       *
       * <pre>
       * Output only. URI to serve notebook APIs
       * </pre>
       *
       * <code>string notebooks = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
       *
       * @return This builder for chaining.
       */
      public Builder clearNotebooks() {
        notebooks_ = getDefaultInstance().getNotebooks();
        bitField0_ = (bitField0_ & ~0x00000001);
        onChanged();
        return this;
      }
      /**
       *
       *
       * <pre>
       * Output only. URI to serve notebook APIs
       * </pre>
       *
       * <code>string notebooks = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
       *
       * @param value The bytes for notebooks to set.
       * @return This builder for chaining.
       */
      public Builder setNotebooksBytes(com.google.protobuf.ByteString value) {
        if (value == null) {
          throw new NullPointerException();
        }
        checkByteStringIsUtf8(value);
        notebooks_ = value;
        bitField0_ |= 0x00000001;
        onChanged();
        return this;
      }

      private java.lang.Object sql_ = "";
      /**
       *
       *
       * <pre>
       * Output only. URI to serve SQL APIs
       * </pre>
       *
       * <code>string sql = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
       *
       * @return The sql.
       */
      public java.lang.String getSql() {
        java.lang.Object ref = sql_;
        if (!(ref instanceof java.lang.String)) {
          com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
          java.lang.String s = bs.toStringUtf8();
          sql_ = s;
          return s;
        } else {
          return (java.lang.String) ref;
        }
      }
      /**
       *
       *
       * <pre>
       * Output only. URI to serve SQL APIs
       * </pre>
       *
       * <code>string sql = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
       *
       * @return The bytes for sql.
       */
      public com.google.protobuf.ByteString getSqlBytes() {
        java.lang.Object ref = sql_;
        if (ref instanceof String) {
          com.google.protobuf.ByteString b =
              com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
          sql_ = b;
          return b;
        } else {
          return (com.google.protobuf.ByteString) ref;
        }
      }
      /**
       *
       *
       * <pre>
       * Output only. URI to serve SQL APIs
       * </pre>
       *
       * <code>string sql = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
       *
       * @param value The sql to set.
       * @return This builder for chaining.
       */
      public Builder setSql(java.lang.String value) {
        if (value == null) {
          throw new NullPointerException();
        }
        sql_ = value;
        bitField0_ |= 0x00000002;
        onChanged();
        return this;
      }
      /**
       *
       *
       * <pre>
       * Output only. URI to serve SQL APIs
       * </pre>
       *
       * <code>string sql = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
       *
       * @return This builder for chaining.
       */
      public Builder clearSql() {
        sql_ = getDefaultInstance().getSql();
        bitField0_ = (bitField0_ & ~0x00000002);
        onChanged();
        return this;
      }
      /**
       *
       *
       * <pre>
       * Output only. URI to serve SQL APIs
       * </pre>
       *
       * <code>string sql = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
       *
       * @param value The bytes for sql to set.
       * @return This builder for chaining.
       */
      public Builder setSqlBytes(com.google.protobuf.ByteString value) {
        if (value == null) {
          throw new NullPointerException();
        }
        checkByteStringIsUtf8(value);
        sql_ = value;
        bitField0_ |= 0x00000002;
        onChanged();
        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.dataplex.v1.Environment.Endpoints)
    }

    // @@protoc_insertion_point(class_scope:google.cloud.dataplex.v1.Environment.Endpoints)
    private static final com.google.cloud.dataplex.v1.Environment.Endpoints DEFAULT_INSTANCE;

    static {
      DEFAULT_INSTANCE = new com.google.cloud.dataplex.v1.Environment.Endpoints();
    }

    public static com.google.cloud.dataplex.v1.Environment.Endpoints getDefaultInstance() {
      return DEFAULT_INSTANCE;
    }

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

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

    @java.lang.Override
    public com.google.cloud.dataplex.v1.Environment.Endpoints getDefaultInstanceForType() {
      return DEFAULT_INSTANCE;
    }
  }

  public static final int NAME_FIELD_NUMBER = 1;

  @SuppressWarnings("serial")
  private volatile java.lang.Object name_ = "";
  /**
   *
   *
   * <pre>
   * Output only. The relative resource name of the environment, of the form:
   * projects/{project_id}/locations/{location_id}/lakes/{lake_id}/environment/{environment_id}
   * </pre>
   *
   * <code>
   * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }
   * </code>
   *
   * @return The name.
   */
  @java.lang.Override
  public java.lang.String getName() {
    java.lang.Object ref = name_;
    if (ref instanceof java.lang.String) {
      return (java.lang.String) ref;
    } else {
      com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
      java.lang.String s = bs.toStringUtf8();
      name_ = s;
      return s;
    }
  }
  /**
   *
   *
   * <pre>
   * Output only. The relative resource name of the environment, of the form:
   * projects/{project_id}/locations/{location_id}/lakes/{lake_id}/environment/{environment_id}
   * </pre>
   *
   * <code>
   * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }
   * </code>
   *
   * @return The bytes for name.
   */
  @java.lang.Override
  public com.google.protobuf.ByteString getNameBytes() {
    java.lang.Object ref = name_;
    if (ref instanceof java.lang.String) {
      com.google.protobuf.ByteString b =
          com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
      name_ = b;
      return b;
    } else {
      return (com.google.protobuf.ByteString) ref;
    }
  }

  public static final int DISPLAY_NAME_FIELD_NUMBER = 2;

  @SuppressWarnings("serial")
  private volatile java.lang.Object displayName_ = "";
  /**
   *
   *
   * <pre>
   * Optional. User friendly display name.
   * </pre>
   *
   * <code>string display_name = 2 [(.google.api.field_behavior) = OPTIONAL];</code>
   *
   * @return The displayName.
   */
  @java.lang.Override
  public java.lang.String getDisplayName() {
    java.lang.Object ref = displayName_;
    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();
      displayName_ = s;
      return s;
    }
  }
  /**
   *
   *
   * <pre>
   * Optional. User friendly display name.
   * </pre>
   *
   * <code>string display_name = 2 [(.google.api.field_behavior) = OPTIONAL];</code>
   *
   * @return The bytes for displayName.
   */
  @java.lang.Override
  public com.google.protobuf.ByteString getDisplayNameBytes() {
    java.lang.Object ref = displayName_;
    if (ref instanceof java.lang.String) {
      com.google.protobuf.ByteString b =
          com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
      displayName_ = b;
      return b;
    } else {
      return (com.google.protobuf.ByteString) ref;
    }
  }

  public static final int UID_FIELD_NUMBER = 3;

  @SuppressWarnings("serial")
  private volatile java.lang.Object uid_ = "";
  /**
   *
   *
   * <pre>
   * Output only. System generated globally unique ID for the environment. This
   * ID will be different if the environment is deleted and re-created with the
   * same name.
   * </pre>
   *
   * <code>string uid = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
   *
   * @return The uid.
   */
  @java.lang.Override
  public java.lang.String getUid() {
    java.lang.Object ref = uid_;
    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();
      uid_ = s;
      return s;
    }
  }
  /**
   *
   *
   * <pre>
   * Output only. System generated globally unique ID for the environment. This
   * ID will be different if the environment is deleted and re-created with the
   * same name.
   * </pre>
   *
   * <code>string uid = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
   *
   * @return The bytes for uid.
   */
  @java.lang.Override
  public com.google.protobuf.ByteString getUidBytes() {
    java.lang.Object ref = uid_;
    if (ref instanceof java.lang.String) {
      com.google.protobuf.ByteString b =
          com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
      uid_ = b;
      return b;
    } else {
      return (com.google.protobuf.ByteString) ref;
    }
  }

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

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

  public static final int LABELS_FIELD_NUMBER = 6;

  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.dataplex.v1.AnalyzeProto
                .internal_static_google_cloud_dataplex_v1_Environment_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. User defined labels for the environment.
   * </pre>
   *
   * <code>map&lt;string, string&gt; labels = 6 [(.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. User defined labels for the environment.
   * </pre>
   *
   * <code>map&lt;string, string&gt; labels = 6 [(.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. User defined labels for the environment.
   * </pre>
   *
   * <code>map&lt;string, string&gt; labels = 6 [(.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. User defined labels for the environment.
   * </pre>
   *
   * <code>map&lt;string, string&gt; labels = 6 [(.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 DESCRIPTION_FIELD_NUMBER = 7;

  @SuppressWarnings("serial")
  private volatile java.lang.Object description_ = "";
  /**
   *
   *
   * <pre>
   * Optional. Description of the environment.
   * </pre>
   *
   * <code>string description = 7 [(.google.api.field_behavior) = OPTIONAL];</code>
   *
   * @return The description.
   */
  @java.lang.Override
  public java.lang.String getDescription() {
    java.lang.Object ref = description_;
    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();
      description_ = s;
      return s;
    }
  }
  /**
   *
   *
   * <pre>
   * Optional. Description of the environment.
   * </pre>
   *
   * <code>string description = 7 [(.google.api.field_behavior) = OPTIONAL];</code>
   *
   * @return The bytes for description.
   */
  @java.lang.Override
  public com.google.protobuf.ByteString getDescriptionBytes() {
    java.lang.Object ref = description_;
    if (ref instanceof java.lang.String) {
      com.google.protobuf.ByteString b =
          com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
      description_ = b;
      return b;
    } else {
      return (com.google.protobuf.ByteString) ref;
    }
  }

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

  public static final int INFRASTRUCTURE_SPEC_FIELD_NUMBER = 100;
  private com.google.cloud.dataplex.v1.Environment.InfrastructureSpec infrastructureSpec_;
  /**
   *
   *
   * <pre>
   * Required. Infrastructure specification for the Environment.
   * </pre>
   *
   * <code>
   * .google.cloud.dataplex.v1.Environment.InfrastructureSpec infrastructure_spec = 100 [(.google.api.field_behavior) = REQUIRED];
   * </code>
   *
   * @return Whether the infrastructureSpec field is set.
   */
  @java.lang.Override
  public boolean hasInfrastructureSpec() {
    return infrastructureSpec_ != null;
  }
  /**
   *
   *
   * <pre>
   * Required. Infrastructure specification for the Environment.
   * </pre>
   *
   * <code>
   * .google.cloud.dataplex.v1.Environment.InfrastructureSpec infrastructure_spec = 100 [(.google.api.field_behavior) = REQUIRED];
   * </code>
   *
   * @return The infrastructureSpec.
   */
  @java.lang.Override
  public com.google.cloud.dataplex.v1.Environment.InfrastructureSpec getInfrastructureSpec() {
    return infrastructureSpec_ == null
        ? com.google.cloud.dataplex.v1.Environment.InfrastructureSpec.getDefaultInstance()
        : infrastructureSpec_;
  }
  /**
   *
   *
   * <pre>
   * Required. Infrastructure specification for the Environment.
   * </pre>
   *
   * <code>
   * .google.cloud.dataplex.v1.Environment.InfrastructureSpec infrastructure_spec = 100 [(.google.api.field_behavior) = REQUIRED];
   * </code>
   */
  @java.lang.Override
  public com.google.cloud.dataplex.v1.Environment.InfrastructureSpecOrBuilder
      getInfrastructureSpecOrBuilder() {
    return infrastructureSpec_ == null
        ? com.google.cloud.dataplex.v1.Environment.InfrastructureSpec.getDefaultInstance()
        : infrastructureSpec_;
  }

  public static final int SESSION_SPEC_FIELD_NUMBER = 101;
  private com.google.cloud.dataplex.v1.Environment.SessionSpec sessionSpec_;
  /**
   *
   *
   * <pre>
   * Optional. Configuration for sessions created for this environment.
   * </pre>
   *
   * <code>
   * .google.cloud.dataplex.v1.Environment.SessionSpec session_spec = 101 [(.google.api.field_behavior) = OPTIONAL];
   * </code>
   *
   * @return Whether the sessionSpec field is set.
   */
  @java.lang.Override
  public boolean hasSessionSpec() {
    return sessionSpec_ != null;
  }
  /**
   *
   *
   * <pre>
   * Optional. Configuration for sessions created for this environment.
   * </pre>
   *
   * <code>
   * .google.cloud.dataplex.v1.Environment.SessionSpec session_spec = 101 [(.google.api.field_behavior) = OPTIONAL];
   * </code>
   *
   * @return The sessionSpec.
   */
  @java.lang.Override
  public com.google.cloud.dataplex.v1.Environment.SessionSpec getSessionSpec() {
    return sessionSpec_ == null
        ? com.google.cloud.dataplex.v1.Environment.SessionSpec.getDefaultInstance()
        : sessionSpec_;
  }
  /**
   *
   *
   * <pre>
   * Optional. Configuration for sessions created for this environment.
   * </pre>
   *
   * <code>
   * .google.cloud.dataplex.v1.Environment.SessionSpec session_spec = 101 [(.google.api.field_behavior) = OPTIONAL];
   * </code>
   */
  @java.lang.Override
  public com.google.cloud.dataplex.v1.Environment.SessionSpecOrBuilder getSessionSpecOrBuilder() {
    return sessionSpec_ == null
        ? com.google.cloud.dataplex.v1.Environment.SessionSpec.getDefaultInstance()
        : sessionSpec_;
  }

  public static final int SESSION_STATUS_FIELD_NUMBER = 102;
  private com.google.cloud.dataplex.v1.Environment.SessionStatus sessionStatus_;
  /**
   *
   *
   * <pre>
   * Output only. Status of sessions created for this environment.
   * </pre>
   *
   * <code>
   * .google.cloud.dataplex.v1.Environment.SessionStatus session_status = 102 [(.google.api.field_behavior) = OUTPUT_ONLY];
   * </code>
   *
   * @return Whether the sessionStatus field is set.
   */
  @java.lang.Override
  public boolean hasSessionStatus() {
    return sessionStatus_ != null;
  }
  /**
   *
   *
   * <pre>
   * Output only. Status of sessions created for this environment.
   * </pre>
   *
   * <code>
   * .google.cloud.dataplex.v1.Environment.SessionStatus session_status = 102 [(.google.api.field_behavior) = OUTPUT_ONLY];
   * </code>
   *
   * @return The sessionStatus.
   */
  @java.lang.Override
  public com.google.cloud.dataplex.v1.Environment.SessionStatus getSessionStatus() {
    return sessionStatus_ == null
        ? com.google.cloud.dataplex.v1.Environment.SessionStatus.getDefaultInstance()
        : sessionStatus_;
  }
  /**
   *
   *
   * <pre>
   * Output only. Status of sessions created for this environment.
   * </pre>
   *
   * <code>
   * .google.cloud.dataplex.v1.Environment.SessionStatus session_status = 102 [(.google.api.field_behavior) = OUTPUT_ONLY];
   * </code>
   */
  @java.lang.Override
  public com.google.cloud.dataplex.v1.Environment.SessionStatusOrBuilder
      getSessionStatusOrBuilder() {
    return sessionStatus_ == null
        ? com.google.cloud.dataplex.v1.Environment.SessionStatus.getDefaultInstance()
        : sessionStatus_;
  }

  public static final int ENDPOINTS_FIELD_NUMBER = 200;
  private com.google.cloud.dataplex.v1.Environment.Endpoints endpoints_;
  /**
   *
   *
   * <pre>
   * Output only. URI Endpoints to access sessions associated with the
   * Environment.
   * </pre>
   *
   * <code>
   * .google.cloud.dataplex.v1.Environment.Endpoints endpoints = 200 [(.google.api.field_behavior) = OUTPUT_ONLY];
   * </code>
   *
   * @return Whether the endpoints field is set.
   */
  @java.lang.Override
  public boolean hasEndpoints() {
    return endpoints_ != null;
  }
  /**
   *
   *
   * <pre>
   * Output only. URI Endpoints to access sessions associated with the
   * Environment.
   * </pre>
   *
   * <code>
   * .google.cloud.dataplex.v1.Environment.Endpoints endpoints = 200 [(.google.api.field_behavior) = OUTPUT_ONLY];
   * </code>
   *
   * @return The endpoints.
   */
  @java.lang.Override
  public com.google.cloud.dataplex.v1.Environment.Endpoints getEndpoints() {
    return endpoints_ == null
        ? com.google.cloud.dataplex.v1.Environment.Endpoints.getDefaultInstance()
        : endpoints_;
  }
  /**
   *
   *
   * <pre>
   * Output only. URI Endpoints to access sessions associated with the
   * Environment.
   * </pre>
   *
   * <code>
   * .google.cloud.dataplex.v1.Environment.Endpoints endpoints = 200 [(.google.api.field_behavior) = OUTPUT_ONLY];
   * </code>
   */
  @java.lang.Override
  public com.google.cloud.dataplex.v1.Environment.EndpointsOrBuilder getEndpointsOrBuilder() {
    return endpoints_ == null
        ? com.google.cloud.dataplex.v1.Environment.Endpoints.getDefaultInstance()
        : endpoints_;
  }

  private byte memoizedIsInitialized = -1;

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

    memoizedIsInitialized = 1;
    return true;
  }

  @java.lang.Override
  public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) {
      com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_);
    }
    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(displayName_)) {
      com.google.protobuf.GeneratedMessageV3.writeString(output, 2, displayName_);
    }
    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(uid_)) {
      com.google.protobuf.GeneratedMessageV3.writeString(output, 3, uid_);
    }
    if (createTime_ != null) {
      output.writeMessage(4, getCreateTime());
    }
    if (updateTime_ != null) {
      output.writeMessage(5, getUpdateTime());
    }
    com.google.protobuf.GeneratedMessageV3.serializeStringMapTo(
        output, internalGetLabels(), LabelsDefaultEntryHolder.defaultEntry, 6);
    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(description_)) {
      com.google.protobuf.GeneratedMessageV3.writeString(output, 7, description_);
    }
    if (state_ != com.google.cloud.dataplex.v1.State.STATE_UNSPECIFIED.getNumber()) {
      output.writeEnum(8, state_);
    }
    if (infrastructureSpec_ != null) {
      output.writeMessage(100, getInfrastructureSpec());
    }
    if (sessionSpec_ != null) {
      output.writeMessage(101, getSessionSpec());
    }
    if (sessionStatus_ != null) {
      output.writeMessage(102, getSessionStatus());
    }
    if (endpoints_ != null) {
      output.writeMessage(200, getEndpoints());
    }
    getUnknownFields().writeTo(output);
  }

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

    size = 0;
    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) {
      size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_);
    }
    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(displayName_)) {
      size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, displayName_);
    }
    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(uid_)) {
      size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, uid_);
    }
    if (createTime_ != null) {
      size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getCreateTime());
    }
    if (updateTime_ != null) {
      size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, getUpdateTime());
    }
    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(6, labels__);
    }
    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(description_)) {
      size += com.google.protobuf.GeneratedMessageV3.computeStringSize(7, description_);
    }
    if (state_ != com.google.cloud.dataplex.v1.State.STATE_UNSPECIFIED.getNumber()) {
      size += com.google.protobuf.CodedOutputStream.computeEnumSize(8, state_);
    }
    if (infrastructureSpec_ != null) {
      size +=
          com.google.protobuf.CodedOutputStream.computeMessageSize(100, getInfrastructureSpec());
    }
    if (sessionSpec_ != null) {
      size += com.google.protobuf.CodedOutputStream.computeMessageSize(101, getSessionSpec());
    }
    if (sessionStatus_ != null) {
      size += com.google.protobuf.CodedOutputStream.computeMessageSize(102, getSessionStatus());
    }
    if (endpoints_ != null) {
      size += com.google.protobuf.CodedOutputStream.computeMessageSize(200, getEndpoints());
    }
    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.dataplex.v1.Environment)) {
      return super.equals(obj);
    }
    com.google.cloud.dataplex.v1.Environment other = (com.google.cloud.dataplex.v1.Environment) obj;

    if (!getName().equals(other.getName())) return false;
    if (!getDisplayName().equals(other.getDisplayName())) return false;
    if (!getUid().equals(other.getUid())) return false;
    if (hasCreateTime() != other.hasCreateTime()) return false;
    if (hasCreateTime()) {
      if (!getCreateTime().equals(other.getCreateTime())) return false;
    }
    if (hasUpdateTime() != other.hasUpdateTime()) return false;
    if (hasUpdateTime()) {
      if (!getUpdateTime().equals(other.getUpdateTime())) return false;
    }
    if (!internalGetLabels().equals(other.internalGetLabels())) return false;
    if (!getDescription().equals(other.getDescription())) return false;
    if (state_ != other.state_) return false;
    if (hasInfrastructureSpec() != other.hasInfrastructureSpec()) return false;
    if (hasInfrastructureSpec()) {
      if (!getInfrastructureSpec().equals(other.getInfrastructureSpec())) return false;
    }
    if (hasSessionSpec() != other.hasSessionSpec()) return false;
    if (hasSessionSpec()) {
      if (!getSessionSpec().equals(other.getSessionSpec())) return false;
    }
    if (hasSessionStatus() != other.hasSessionStatus()) return false;
    if (hasSessionStatus()) {
      if (!getSessionStatus().equals(other.getSessionStatus())) return false;
    }
    if (hasEndpoints() != other.hasEndpoints()) return false;
    if (hasEndpoints()) {
      if (!getEndpoints().equals(other.getEndpoints())) 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) + NAME_FIELD_NUMBER;
    hash = (53 * hash) + getName().hashCode();
    hash = (37 * hash) + DISPLAY_NAME_FIELD_NUMBER;
    hash = (53 * hash) + getDisplayName().hashCode();
    hash = (37 * hash) + UID_FIELD_NUMBER;
    hash = (53 * hash) + getUid().hashCode();
    if (hasCreateTime()) {
      hash = (37 * hash) + CREATE_TIME_FIELD_NUMBER;
      hash = (53 * hash) + getCreateTime().hashCode();
    }
    if (hasUpdateTime()) {
      hash = (37 * hash) + UPDATE_TIME_FIELD_NUMBER;
      hash = (53 * hash) + getUpdateTime().hashCode();
    }
    if (!internalGetLabels().getMap().isEmpty()) {
      hash = (37 * hash) + LABELS_FIELD_NUMBER;
      hash = (53 * hash) + internalGetLabels().hashCode();
    }
    hash = (37 * hash) + DESCRIPTION_FIELD_NUMBER;
    hash = (53 * hash) + getDescription().hashCode();
    hash = (37 * hash) + STATE_FIELD_NUMBER;
    hash = (53 * hash) + state_;
    if (hasInfrastructureSpec()) {
      hash = (37 * hash) + INFRASTRUCTURE_SPEC_FIELD_NUMBER;
      hash = (53 * hash) + getInfrastructureSpec().hashCode();
    }
    if (hasSessionSpec()) {
      hash = (37 * hash) + SESSION_SPEC_FIELD_NUMBER;
      hash = (53 * hash) + getSessionSpec().hashCode();
    }
    if (hasSessionStatus()) {
      hash = (37 * hash) + SESSION_STATUS_FIELD_NUMBER;
      hash = (53 * hash) + getSessionStatus().hashCode();
    }
    if (hasEndpoints()) {
      hash = (37 * hash) + ENDPOINTS_FIELD_NUMBER;
      hash = (53 * hash) + getEndpoints().hashCode();
    }
    hash = (29 * hash) + getUnknownFields().hashCode();
    memoizedHashCode = hash;
    return hash;
  }

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

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

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

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

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

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

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

  public static com.google.cloud.dataplex.v1.Environment 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.dataplex.v1.Environment 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>
   * Environment represents a user-visible compute infrastructure for analytics
   * within a lake.
   * </pre>
   *
   * Protobuf type {@code google.cloud.dataplex.v1.Environment}
   */
  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder<Builder>
      implements
      // @@protoc_insertion_point(builder_implements:google.cloud.dataplex.v1.Environment)
      com.google.cloud.dataplex.v1.EnvironmentOrBuilder {
    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
      return com.google.cloud.dataplex.v1.AnalyzeProto
          .internal_static_google_cloud_dataplex_v1_Environment_descriptor;
    }

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

    @SuppressWarnings({"rawtypes"})
    protected com.google.protobuf.MapField internalGetMutableMapField(int number) {
      switch (number) {
        case 6:
          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.dataplex.v1.AnalyzeProto
          .internal_static_google_cloud_dataplex_v1_Environment_fieldAccessorTable
          .ensureFieldAccessorsInitialized(
              com.google.cloud.dataplex.v1.Environment.class,
              com.google.cloud.dataplex.v1.Environment.Builder.class);
    }

    // Construct using com.google.cloud.dataplex.v1.Environment.newBuilder()
    private Builder() {}

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

    @java.lang.Override
    public Builder clear() {
      super.clear();
      bitField0_ = 0;
      name_ = "";
      displayName_ = "";
      uid_ = "";
      createTime_ = null;
      if (createTimeBuilder_ != null) {
        createTimeBuilder_.dispose();
        createTimeBuilder_ = null;
      }
      updateTime_ = null;
      if (updateTimeBuilder_ != null) {
        updateTimeBuilder_.dispose();
        updateTimeBuilder_ = null;
      }
      internalGetMutableLabels().clear();
      description_ = "";
      state_ = 0;
      infrastructureSpec_ = null;
      if (infrastructureSpecBuilder_ != null) {
        infrastructureSpecBuilder_.dispose();
        infrastructureSpecBuilder_ = null;
      }
      sessionSpec_ = null;
      if (sessionSpecBuilder_ != null) {
        sessionSpecBuilder_.dispose();
        sessionSpecBuilder_ = null;
      }
      sessionStatus_ = null;
      if (sessionStatusBuilder_ != null) {
        sessionStatusBuilder_.dispose();
        sessionStatusBuilder_ = null;
      }
      endpoints_ = null;
      if (endpointsBuilder_ != null) {
        endpointsBuilder_.dispose();
        endpointsBuilder_ = null;
      }
      return this;
    }

    @java.lang.Override
    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
      return com.google.cloud.dataplex.v1.AnalyzeProto
          .internal_static_google_cloud_dataplex_v1_Environment_descriptor;
    }

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

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

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

    private void buildPartial0(com.google.cloud.dataplex.v1.Environment result) {
      int from_bitField0_ = bitField0_;
      if (((from_bitField0_ & 0x00000001) != 0)) {
        result.name_ = name_;
      }
      if (((from_bitField0_ & 0x00000002) != 0)) {
        result.displayName_ = displayName_;
      }
      if (((from_bitField0_ & 0x00000004) != 0)) {
        result.uid_ = uid_;
      }
      if (((from_bitField0_ & 0x00000008) != 0)) {
        result.createTime_ = createTimeBuilder_ == null ? createTime_ : createTimeBuilder_.build();
      }
      if (((from_bitField0_ & 0x00000010) != 0)) {
        result.updateTime_ = updateTimeBuilder_ == null ? updateTime_ : updateTimeBuilder_.build();
      }
      if (((from_bitField0_ & 0x00000020) != 0)) {
        result.labels_ = internalGetLabels();
        result.labels_.makeImmutable();
      }
      if (((from_bitField0_ & 0x00000040) != 0)) {
        result.description_ = description_;
      }
      if (((from_bitField0_ & 0x00000080) != 0)) {
        result.state_ = state_;
      }
      if (((from_bitField0_ & 0x00000100) != 0)) {
        result.infrastructureSpec_ =
            infrastructureSpecBuilder_ == null
                ? infrastructureSpec_
                : infrastructureSpecBuilder_.build();
      }
      if (((from_bitField0_ & 0x00000200) != 0)) {
        result.sessionSpec_ =
            sessionSpecBuilder_ == null ? sessionSpec_ : sessionSpecBuilder_.build();
      }
      if (((from_bitField0_ & 0x00000400) != 0)) {
        result.sessionStatus_ =
            sessionStatusBuilder_ == null ? sessionStatus_ : sessionStatusBuilder_.build();
      }
      if (((from_bitField0_ & 0x00000800) != 0)) {
        result.endpoints_ = endpointsBuilder_ == null ? endpoints_ : endpointsBuilder_.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.dataplex.v1.Environment) {
        return mergeFrom((com.google.cloud.dataplex.v1.Environment) other);
      } else {
        super.mergeFrom(other);
        return this;
      }
    }

    public Builder mergeFrom(com.google.cloud.dataplex.v1.Environment other) {
      if (other == com.google.cloud.dataplex.v1.Environment.getDefaultInstance()) return this;
      if (!other.getName().isEmpty()) {
        name_ = other.name_;
        bitField0_ |= 0x00000001;
        onChanged();
      }
      if (!other.getDisplayName().isEmpty()) {
        displayName_ = other.displayName_;
        bitField0_ |= 0x00000002;
        onChanged();
      }
      if (!other.getUid().isEmpty()) {
        uid_ = other.uid_;
        bitField0_ |= 0x00000004;
        onChanged();
      }
      if (other.hasCreateTime()) {
        mergeCreateTime(other.getCreateTime());
      }
      if (other.hasUpdateTime()) {
        mergeUpdateTime(other.getUpdateTime());
      }
      internalGetMutableLabels().mergeFrom(other.internalGetLabels());
      bitField0_ |= 0x00000020;
      if (!other.getDescription().isEmpty()) {
        description_ = other.description_;
        bitField0_ |= 0x00000040;
        onChanged();
      }
      if (other.state_ != 0) {
        setStateValue(other.getStateValue());
      }
      if (other.hasInfrastructureSpec()) {
        mergeInfrastructureSpec(other.getInfrastructureSpec());
      }
      if (other.hasSessionSpec()) {
        mergeSessionSpec(other.getSessionSpec());
      }
      if (other.hasSessionStatus()) {
        mergeSessionStatus(other.getSessionStatus());
      }
      if (other.hasEndpoints()) {
        mergeEndpoints(other.getEndpoints());
      }
      this.mergeUnknownFields(other.getUnknownFields());
      onChanged();
      return this;
    }

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

    @java.lang.Override
    public Builder mergeFrom(
        com.google.protobuf.CodedInputStream input,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws java.io.IOException {
      if (extensionRegistry == null) {
        throw new java.lang.NullPointerException();
      }
      try {
        boolean done = false;
        while (!done) {
          int tag = input.readTag();
          switch (tag) {
            case 0:
              done = true;
              break;
            case 10:
              {
                name_ = input.readStringRequireUtf8();
                bitField0_ |= 0x00000001;
                break;
              } // case 10
            case 18:
              {
                displayName_ = input.readStringRequireUtf8();
                bitField0_ |= 0x00000002;
                break;
              } // case 18
            case 26:
              {
                uid_ = input.readStringRequireUtf8();
                bitField0_ |= 0x00000004;
                break;
              } // case 26
            case 34:
              {
                input.readMessage(getCreateTimeFieldBuilder().getBuilder(), extensionRegistry);
                bitField0_ |= 0x00000008;
                break;
              } // case 34
            case 42:
              {
                input.readMessage(getUpdateTimeFieldBuilder().getBuilder(), extensionRegistry);
                bitField0_ |= 0x00000010;
                break;
              } // case 42
            case 50:
              {
                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_ |= 0x00000020;
                break;
              } // case 50
            case 58:
              {
                description_ = input.readStringRequireUtf8();
                bitField0_ |= 0x00000040;
                break;
              } // case 58
            case 64:
              {
                state_ = input.readEnum();
                bitField0_ |= 0x00000080;
                break;
              } // case 64
            case 802:
              {
                input.readMessage(
                    getInfrastructureSpecFieldBuilder().getBuilder(), extensionRegistry);
                bitField0_ |= 0x00000100;
                break;
              } // case 802
            case 810:
              {
                input.readMessage(getSessionSpecFieldBuilder().getBuilder(), extensionRegistry);
                bitField0_ |= 0x00000200;
                break;
              } // case 810
            case 818:
              {
                input.readMessage(getSessionStatusFieldBuilder().getBuilder(), extensionRegistry);
                bitField0_ |= 0x00000400;
                break;
              } // case 818
            case 1602:
              {
                input.readMessage(getEndpointsFieldBuilder().getBuilder(), extensionRegistry);
                bitField0_ |= 0x00000800;
                break;
              } // case 1602
            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 name_ = "";
    /**
     *
     *
     * <pre>
     * Output only. The relative resource name of the environment, of the form:
     * projects/{project_id}/locations/{location_id}/lakes/{lake_id}/environment/{environment_id}
     * </pre>
     *
     * <code>
     * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }
     * </code>
     *
     * @return The name.
     */
    public java.lang.String getName() {
      java.lang.Object ref = name_;
      if (!(ref instanceof java.lang.String)) {
        com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
        java.lang.String s = bs.toStringUtf8();
        name_ = s;
        return s;
      } else {
        return (java.lang.String) ref;
      }
    }
    /**
     *
     *
     * <pre>
     * Output only. The relative resource name of the environment, of the form:
     * projects/{project_id}/locations/{location_id}/lakes/{lake_id}/environment/{environment_id}
     * </pre>
     *
     * <code>
     * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }
     * </code>
     *
     * @return The bytes for name.
     */
    public com.google.protobuf.ByteString getNameBytes() {
      java.lang.Object ref = name_;
      if (ref instanceof String) {
        com.google.protobuf.ByteString b =
            com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
        name_ = b;
        return b;
      } else {
        return (com.google.protobuf.ByteString) ref;
      }
    }
    /**
     *
     *
     * <pre>
     * Output only. The relative resource name of the environment, of the form:
     * projects/{project_id}/locations/{location_id}/lakes/{lake_id}/environment/{environment_id}
     * </pre>
     *
     * <code>
     * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }
     * </code>
     *
     * @param value The name to set.
     * @return This builder for chaining.
     */
    public Builder setName(java.lang.String value) {
      if (value == null) {
        throw new NullPointerException();
      }
      name_ = value;
      bitField0_ |= 0x00000001;
      onChanged();
      return this;
    }
    /**
     *
     *
     * <pre>
     * Output only. The relative resource name of the environment, of the form:
     * projects/{project_id}/locations/{location_id}/lakes/{lake_id}/environment/{environment_id}
     * </pre>
     *
     * <code>
     * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }
     * </code>
     *
     * @return This builder for chaining.
     */
    public Builder clearName() {
      name_ = getDefaultInstance().getName();
      bitField0_ = (bitField0_ & ~0x00000001);
      onChanged();
      return this;
    }
    /**
     *
     *
     * <pre>
     * Output only. The relative resource name of the environment, of the form:
     * projects/{project_id}/locations/{location_id}/lakes/{lake_id}/environment/{environment_id}
     * </pre>
     *
     * <code>
     * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }
     * </code>
     *
     * @param value The bytes for name to set.
     * @return This builder for chaining.
     */
    public Builder setNameBytes(com.google.protobuf.ByteString value) {
      if (value == null) {
        throw new NullPointerException();
      }
      checkByteStringIsUtf8(value);
      name_ = value;
      bitField0_ |= 0x00000001;
      onChanged();
      return this;
    }

    private java.lang.Object displayName_ = "";
    /**
     *
     *
     * <pre>
     * Optional. User friendly display name.
     * </pre>
     *
     * <code>string display_name = 2 [(.google.api.field_behavior) = OPTIONAL];</code>
     *
     * @return The displayName.
     */
    public java.lang.String getDisplayName() {
      java.lang.Object ref = displayName_;
      if (!(ref instanceof java.lang.String)) {
        com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
        java.lang.String s = bs.toStringUtf8();
        displayName_ = s;
        return s;
      } else {
        return (java.lang.String) ref;
      }
    }
    /**
     *
     *
     * <pre>
     * Optional. User friendly display name.
     * </pre>
     *
     * <code>string display_name = 2 [(.google.api.field_behavior) = OPTIONAL];</code>
     *
     * @return The bytes for displayName.
     */
    public com.google.protobuf.ByteString getDisplayNameBytes() {
      java.lang.Object ref = displayName_;
      if (ref instanceof String) {
        com.google.protobuf.ByteString b =
            com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
        displayName_ = b;
        return b;
      } else {
        return (com.google.protobuf.ByteString) ref;
      }
    }
    /**
     *
     *
     * <pre>
     * Optional. User friendly display name.
     * </pre>
     *
     * <code>string display_name = 2 [(.google.api.field_behavior) = OPTIONAL];</code>
     *
     * @param value The displayName to set.
     * @return This builder for chaining.
     */
    public Builder setDisplayName(java.lang.String value) {
      if (value == null) {
        throw new NullPointerException();
      }
      displayName_ = value;
      bitField0_ |= 0x00000002;
      onChanged();
      return this;
    }
    /**
     *
     *
     * <pre>
     * Optional. User friendly display name.
     * </pre>
     *
     * <code>string display_name = 2 [(.google.api.field_behavior) = OPTIONAL];</code>
     *
     * @return This builder for chaining.
     */
    public Builder clearDisplayName() {
      displayName_ = getDefaultInstance().getDisplayName();
      bitField0_ = (bitField0_ & ~0x00000002);
      onChanged();
      return this;
    }
    /**
     *
     *
     * <pre>
     * Optional. User friendly display name.
     * </pre>
     *
     * <code>string display_name = 2 [(.google.api.field_behavior) = OPTIONAL];</code>
     *
     * @param value The bytes for displayName to set.
     * @return This builder for chaining.
     */
    public Builder setDisplayNameBytes(com.google.protobuf.ByteString value) {
      if (value == null) {
        throw new NullPointerException();
      }
      checkByteStringIsUtf8(value);
      displayName_ = value;
      bitField0_ |= 0x00000002;
      onChanged();
      return this;
    }

    private java.lang.Object uid_ = "";
    /**
     *
     *
     * <pre>
     * Output only. System generated globally unique ID for the environment. This
     * ID will be different if the environment is deleted and re-created with the
     * same name.
     * </pre>
     *
     * <code>string uid = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
     *
     * @return The uid.
     */
    public java.lang.String getUid() {
      java.lang.Object ref = uid_;
      if (!(ref instanceof java.lang.String)) {
        com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
        java.lang.String s = bs.toStringUtf8();
        uid_ = s;
        return s;
      } else {
        return (java.lang.String) ref;
      }
    }
    /**
     *
     *
     * <pre>
     * Output only. System generated globally unique ID for the environment. This
     * ID will be different if the environment is deleted and re-created with the
     * same name.
     * </pre>
     *
     * <code>string uid = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
     *
     * @return The bytes for uid.
     */
    public com.google.protobuf.ByteString getUidBytes() {
      java.lang.Object ref = uid_;
      if (ref instanceof String) {
        com.google.protobuf.ByteString b =
            com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
        uid_ = b;
        return b;
      } else {
        return (com.google.protobuf.ByteString) ref;
      }
    }
    /**
     *
     *
     * <pre>
     * Output only. System generated globally unique ID for the environment. This
     * ID will be different if the environment is deleted and re-created with the
     * same name.
     * </pre>
     *
     * <code>string uid = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
     *
     * @param value The uid to set.
     * @return This builder for chaining.
     */
    public Builder setUid(java.lang.String value) {
      if (value == null) {
        throw new NullPointerException();
      }
      uid_ = value;
      bitField0_ |= 0x00000004;
      onChanged();
      return this;
    }
    /**
     *
     *
     * <pre>
     * Output only. System generated globally unique ID for the environment. This
     * ID will be different if the environment is deleted and re-created with the
     * same name.
     * </pre>
     *
     * <code>string uid = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
     *
     * @return This builder for chaining.
     */
    public Builder clearUid() {
      uid_ = getDefaultInstance().getUid();
      bitField0_ = (bitField0_ & ~0x00000004);
      onChanged();
      return this;
    }
    /**
     *
     *
     * <pre>
     * Output only. System generated globally unique ID for the environment. This
     * ID will be different if the environment is deleted and re-created with the
     * same name.
     * </pre>
     *
     * <code>string uid = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
     *
     * @param value The bytes for uid to set.
     * @return This builder for chaining.
     */
    public Builder setUidBytes(com.google.protobuf.ByteString value) {
      if (value == null) {
        throw new NullPointerException();
      }
      checkByteStringIsUtf8(value);
      uid_ = value;
      bitField0_ |= 0x00000004;
      onChanged();
      return this;
    }

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

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

    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_ |= 0x00000020;
      onChanged();
      return labels_;
    }

    public int getLabelsCount() {
      return internalGetLabels().getMap().size();
    }
    /**
     *
     *
     * <pre>
     * Optional. User defined labels for the environment.
     * </pre>
     *
     * <code>map&lt;string, string&gt; labels = 6 [(.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. User defined labels for the environment.
     * </pre>
     *
     * <code>map&lt;string, string&gt; labels = 6 [(.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. User defined labels for the environment.
     * </pre>
     *
     * <code>map&lt;string, string&gt; labels = 6 [(.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. User defined labels for the environment.
     * </pre>
     *
     * <code>map&lt;string, string&gt; labels = 6 [(.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_ & ~0x00000020);
      internalGetMutableLabels().getMutableMap().clear();
      return this;
    }
    /**
     *
     *
     * <pre>
     * Optional. User defined labels for the environment.
     * </pre>
     *
     * <code>map&lt;string, string&gt; labels = 6 [(.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_ |= 0x00000020;
      return internalGetMutableLabels().getMutableMap();
    }
    /**
     *
     *
     * <pre>
     * Optional. User defined labels for the environment.
     * </pre>
     *
     * <code>map&lt;string, string&gt; labels = 6 [(.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_ |= 0x00000020;
      return this;
    }
    /**
     *
     *
     * <pre>
     * Optional. User defined labels for the environment.
     * </pre>
     *
     * <code>map&lt;string, string&gt; labels = 6 [(.google.api.field_behavior) = OPTIONAL];</code>
     */
    public Builder putAllLabels(java.util.Map<java.lang.String, java.lang.String> values) {
      internalGetMutableLabels().getMutableMap().putAll(values);
      bitField0_ |= 0x00000020;
      return this;
    }

    private java.lang.Object description_ = "";
    /**
     *
     *
     * <pre>
     * Optional. Description of the environment.
     * </pre>
     *
     * <code>string description = 7 [(.google.api.field_behavior) = OPTIONAL];</code>
     *
     * @return The description.
     */
    public java.lang.String getDescription() {
      java.lang.Object ref = description_;
      if (!(ref instanceof java.lang.String)) {
        com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
        java.lang.String s = bs.toStringUtf8();
        description_ = s;
        return s;
      } else {
        return (java.lang.String) ref;
      }
    }
    /**
     *
     *
     * <pre>
     * Optional. Description of the environment.
     * </pre>
     *
     * <code>string description = 7 [(.google.api.field_behavior) = OPTIONAL];</code>
     *
     * @return The bytes for description.
     */
    public com.google.protobuf.ByteString getDescriptionBytes() {
      java.lang.Object ref = description_;
      if (ref instanceof String) {
        com.google.protobuf.ByteString b =
            com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
        description_ = b;
        return b;
      } else {
        return (com.google.protobuf.ByteString) ref;
      }
    }
    /**
     *
     *
     * <pre>
     * Optional. Description of the environment.
     * </pre>
     *
     * <code>string description = 7 [(.google.api.field_behavior) = OPTIONAL];</code>
     *
     * @param value The description to set.
     * @return This builder for chaining.
     */
    public Builder setDescription(java.lang.String value) {
      if (value == null) {
        throw new NullPointerException();
      }
      description_ = value;
      bitField0_ |= 0x00000040;
      onChanged();
      return this;
    }
    /**
     *
     *
     * <pre>
     * Optional. Description of the environment.
     * </pre>
     *
     * <code>string description = 7 [(.google.api.field_behavior) = OPTIONAL];</code>
     *
     * @return This builder for chaining.
     */
    public Builder clearDescription() {
      description_ = getDefaultInstance().getDescription();
      bitField0_ = (bitField0_ & ~0x00000040);
      onChanged();
      return this;
    }
    /**
     *
     *
     * <pre>
     * Optional. Description of the environment.
     * </pre>
     *
     * <code>string description = 7 [(.google.api.field_behavior) = OPTIONAL];</code>
     *
     * @param value The bytes for description to set.
     * @return This builder for chaining.
     */
    public Builder setDescriptionBytes(com.google.protobuf.ByteString value) {
      if (value == null) {
        throw new NullPointerException();
      }
      checkByteStringIsUtf8(value);
      description_ = value;
      bitField0_ |= 0x00000040;
      onChanged();
      return this;
    }

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

    private com.google.cloud.dataplex.v1.Environment.InfrastructureSpec infrastructureSpec_;
    private com.google.protobuf.SingleFieldBuilderV3<
            com.google.cloud.dataplex.v1.Environment.InfrastructureSpec,
            com.google.cloud.dataplex.v1.Environment.InfrastructureSpec.Builder,
            com.google.cloud.dataplex.v1.Environment.InfrastructureSpecOrBuilder>
        infrastructureSpecBuilder_;
    /**
     *
     *
     * <pre>
     * Required. Infrastructure specification for the Environment.
     * </pre>
     *
     * <code>
     * .google.cloud.dataplex.v1.Environment.InfrastructureSpec infrastructure_spec = 100 [(.google.api.field_behavior) = REQUIRED];
     * </code>
     *
     * @return Whether the infrastructureSpec field is set.
     */
    public boolean hasInfrastructureSpec() {
      return ((bitField0_ & 0x00000100) != 0);
    }
    /**
     *
     *
     * <pre>
     * Required. Infrastructure specification for the Environment.
     * </pre>
     *
     * <code>
     * .google.cloud.dataplex.v1.Environment.InfrastructureSpec infrastructure_spec = 100 [(.google.api.field_behavior) = REQUIRED];
     * </code>
     *
     * @return The infrastructureSpec.
     */
    public com.google.cloud.dataplex.v1.Environment.InfrastructureSpec getInfrastructureSpec() {
      if (infrastructureSpecBuilder_ == null) {
        return infrastructureSpec_ == null
            ? com.google.cloud.dataplex.v1.Environment.InfrastructureSpec.getDefaultInstance()
            : infrastructureSpec_;
      } else {
        return infrastructureSpecBuilder_.getMessage();
      }
    }
    /**
     *
     *
     * <pre>
     * Required. Infrastructure specification for the Environment.
     * </pre>
     *
     * <code>
     * .google.cloud.dataplex.v1.Environment.InfrastructureSpec infrastructure_spec = 100 [(.google.api.field_behavior) = REQUIRED];
     * </code>
     */
    public Builder setInfrastructureSpec(
        com.google.cloud.dataplex.v1.Environment.InfrastructureSpec value) {
      if (infrastructureSpecBuilder_ == null) {
        if (value == null) {
          throw new NullPointerException();
        }
        infrastructureSpec_ = value;
      } else {
        infrastructureSpecBuilder_.setMessage(value);
      }
      bitField0_ |= 0x00000100;
      onChanged();
      return this;
    }
    /**
     *
     *
     * <pre>
     * Required. Infrastructure specification for the Environment.
     * </pre>
     *
     * <code>
     * .google.cloud.dataplex.v1.Environment.InfrastructureSpec infrastructure_spec = 100 [(.google.api.field_behavior) = REQUIRED];
     * </code>
     */
    public Builder setInfrastructureSpec(
        com.google.cloud.dataplex.v1.Environment.InfrastructureSpec.Builder builderForValue) {
      if (infrastructureSpecBuilder_ == null) {
        infrastructureSpec_ = builderForValue.build();
      } else {
        infrastructureSpecBuilder_.setMessage(builderForValue.build());
      }
      bitField0_ |= 0x00000100;
      onChanged();
      return this;
    }
    /**
     *
     *
     * <pre>
     * Required. Infrastructure specification for the Environment.
     * </pre>
     *
     * <code>
     * .google.cloud.dataplex.v1.Environment.InfrastructureSpec infrastructure_spec = 100 [(.google.api.field_behavior) = REQUIRED];
     * </code>
     */
    public Builder mergeInfrastructureSpec(
        com.google.cloud.dataplex.v1.Environment.InfrastructureSpec value) {
      if (infrastructureSpecBuilder_ == null) {
        if (((bitField0_ & 0x00000100) != 0)
            && infrastructureSpec_ != null
            && infrastructureSpec_
                != com.google.cloud.dataplex.v1.Environment.InfrastructureSpec
                    .getDefaultInstance()) {
          getInfrastructureSpecBuilder().mergeFrom(value);
        } else {
          infrastructureSpec_ = value;
        }
      } else {
        infrastructureSpecBuilder_.mergeFrom(value);
      }
      bitField0_ |= 0x00000100;
      onChanged();
      return this;
    }
    /**
     *
     *
     * <pre>
     * Required. Infrastructure specification for the Environment.
     * </pre>
     *
     * <code>
     * .google.cloud.dataplex.v1.Environment.InfrastructureSpec infrastructure_spec = 100 [(.google.api.field_behavior) = REQUIRED];
     * </code>
     */
    public Builder clearInfrastructureSpec() {
      bitField0_ = (bitField0_ & ~0x00000100);
      infrastructureSpec_ = null;
      if (infrastructureSpecBuilder_ != null) {
        infrastructureSpecBuilder_.dispose();
        infrastructureSpecBuilder_ = null;
      }
      onChanged();
      return this;
    }
    /**
     *
     *
     * <pre>
     * Required. Infrastructure specification for the Environment.
     * </pre>
     *
     * <code>
     * .google.cloud.dataplex.v1.Environment.InfrastructureSpec infrastructure_spec = 100 [(.google.api.field_behavior) = REQUIRED];
     * </code>
     */
    public com.google.cloud.dataplex.v1.Environment.InfrastructureSpec.Builder
        getInfrastructureSpecBuilder() {
      bitField0_ |= 0x00000100;
      onChanged();
      return getInfrastructureSpecFieldBuilder().getBuilder();
    }
    /**
     *
     *
     * <pre>
     * Required. Infrastructure specification for the Environment.
     * </pre>
     *
     * <code>
     * .google.cloud.dataplex.v1.Environment.InfrastructureSpec infrastructure_spec = 100 [(.google.api.field_behavior) = REQUIRED];
     * </code>
     */
    public com.google.cloud.dataplex.v1.Environment.InfrastructureSpecOrBuilder
        getInfrastructureSpecOrBuilder() {
      if (infrastructureSpecBuilder_ != null) {
        return infrastructureSpecBuilder_.getMessageOrBuilder();
      } else {
        return infrastructureSpec_ == null
            ? com.google.cloud.dataplex.v1.Environment.InfrastructureSpec.getDefaultInstance()
            : infrastructureSpec_;
      }
    }
    /**
     *
     *
     * <pre>
     * Required. Infrastructure specification for the Environment.
     * </pre>
     *
     * <code>
     * .google.cloud.dataplex.v1.Environment.InfrastructureSpec infrastructure_spec = 100 [(.google.api.field_behavior) = REQUIRED];
     * </code>
     */
    private com.google.protobuf.SingleFieldBuilderV3<
            com.google.cloud.dataplex.v1.Environment.InfrastructureSpec,
            com.google.cloud.dataplex.v1.Environment.InfrastructureSpec.Builder,
            com.google.cloud.dataplex.v1.Environment.InfrastructureSpecOrBuilder>
        getInfrastructureSpecFieldBuilder() {
      if (infrastructureSpecBuilder_ == null) {
        infrastructureSpecBuilder_ =
            new com.google.protobuf.SingleFieldBuilderV3<
                com.google.cloud.dataplex.v1.Environment.InfrastructureSpec,
                com.google.cloud.dataplex.v1.Environment.InfrastructureSpec.Builder,
                com.google.cloud.dataplex.v1.Environment.InfrastructureSpecOrBuilder>(
                getInfrastructureSpec(), getParentForChildren(), isClean());
        infrastructureSpec_ = null;
      }
      return infrastructureSpecBuilder_;
    }

    private com.google.cloud.dataplex.v1.Environment.SessionSpec sessionSpec_;
    private com.google.protobuf.SingleFieldBuilderV3<
            com.google.cloud.dataplex.v1.Environment.SessionSpec,
            com.google.cloud.dataplex.v1.Environment.SessionSpec.Builder,
            com.google.cloud.dataplex.v1.Environment.SessionSpecOrBuilder>
        sessionSpecBuilder_;
    /**
     *
     *
     * <pre>
     * Optional. Configuration for sessions created for this environment.
     * </pre>
     *
     * <code>
     * .google.cloud.dataplex.v1.Environment.SessionSpec session_spec = 101 [(.google.api.field_behavior) = OPTIONAL];
     * </code>
     *
     * @return Whether the sessionSpec field is set.
     */
    public boolean hasSessionSpec() {
      return ((bitField0_ & 0x00000200) != 0);
    }
    /**
     *
     *
     * <pre>
     * Optional. Configuration for sessions created for this environment.
     * </pre>
     *
     * <code>
     * .google.cloud.dataplex.v1.Environment.SessionSpec session_spec = 101 [(.google.api.field_behavior) = OPTIONAL];
     * </code>
     *
     * @return The sessionSpec.
     */
    public com.google.cloud.dataplex.v1.Environment.SessionSpec getSessionSpec() {
      if (sessionSpecBuilder_ == null) {
        return sessionSpec_ == null
            ? com.google.cloud.dataplex.v1.Environment.SessionSpec.getDefaultInstance()
            : sessionSpec_;
      } else {
        return sessionSpecBuilder_.getMessage();
      }
    }
    /**
     *
     *
     * <pre>
     * Optional. Configuration for sessions created for this environment.
     * </pre>
     *
     * <code>
     * .google.cloud.dataplex.v1.Environment.SessionSpec session_spec = 101 [(.google.api.field_behavior) = OPTIONAL];
     * </code>
     */
    public Builder setSessionSpec(com.google.cloud.dataplex.v1.Environment.SessionSpec value) {
      if (sessionSpecBuilder_ == null) {
        if (value == null) {
          throw new NullPointerException();
        }
        sessionSpec_ = value;
      } else {
        sessionSpecBuilder_.setMessage(value);
      }
      bitField0_ |= 0x00000200;
      onChanged();
      return this;
    }
    /**
     *
     *
     * <pre>
     * Optional. Configuration for sessions created for this environment.
     * </pre>
     *
     * <code>
     * .google.cloud.dataplex.v1.Environment.SessionSpec session_spec = 101 [(.google.api.field_behavior) = OPTIONAL];
     * </code>
     */
    public Builder setSessionSpec(
        com.google.cloud.dataplex.v1.Environment.SessionSpec.Builder builderForValue) {
      if (sessionSpecBuilder_ == null) {
        sessionSpec_ = builderForValue.build();
      } else {
        sessionSpecBuilder_.setMessage(builderForValue.build());
      }
      bitField0_ |= 0x00000200;
      onChanged();
      return this;
    }
    /**
     *
     *
     * <pre>
     * Optional. Configuration for sessions created for this environment.
     * </pre>
     *
     * <code>
     * .google.cloud.dataplex.v1.Environment.SessionSpec session_spec = 101 [(.google.api.field_behavior) = OPTIONAL];
     * </code>
     */
    public Builder mergeSessionSpec(com.google.cloud.dataplex.v1.Environment.SessionSpec value) {
      if (sessionSpecBuilder_ == null) {
        if (((bitField0_ & 0x00000200) != 0)
            && sessionSpec_ != null
            && sessionSpec_
                != com.google.cloud.dataplex.v1.Environment.SessionSpec.getDefaultInstance()) {
          getSessionSpecBuilder().mergeFrom(value);
        } else {
          sessionSpec_ = value;
        }
      } else {
        sessionSpecBuilder_.mergeFrom(value);
      }
      bitField0_ |= 0x00000200;
      onChanged();
      return this;
    }
    /**
     *
     *
     * <pre>
     * Optional. Configuration for sessions created for this environment.
     * </pre>
     *
     * <code>
     * .google.cloud.dataplex.v1.Environment.SessionSpec session_spec = 101 [(.google.api.field_behavior) = OPTIONAL];
     * </code>
     */
    public Builder clearSessionSpec() {
      bitField0_ = (bitField0_ & ~0x00000200);
      sessionSpec_ = null;
      if (sessionSpecBuilder_ != null) {
        sessionSpecBuilder_.dispose();
        sessionSpecBuilder_ = null;
      }
      onChanged();
      return this;
    }
    /**
     *
     *
     * <pre>
     * Optional. Configuration for sessions created for this environment.
     * </pre>
     *
     * <code>
     * .google.cloud.dataplex.v1.Environment.SessionSpec session_spec = 101 [(.google.api.field_behavior) = OPTIONAL];
     * </code>
     */
    public com.google.cloud.dataplex.v1.Environment.SessionSpec.Builder getSessionSpecBuilder() {
      bitField0_ |= 0x00000200;
      onChanged();
      return getSessionSpecFieldBuilder().getBuilder();
    }
    /**
     *
     *
     * <pre>
     * Optional. Configuration for sessions created for this environment.
     * </pre>
     *
     * <code>
     * .google.cloud.dataplex.v1.Environment.SessionSpec session_spec = 101 [(.google.api.field_behavior) = OPTIONAL];
     * </code>
     */
    public com.google.cloud.dataplex.v1.Environment.SessionSpecOrBuilder getSessionSpecOrBuilder() {
      if (sessionSpecBuilder_ != null) {
        return sessionSpecBuilder_.getMessageOrBuilder();
      } else {
        return sessionSpec_ == null
            ? com.google.cloud.dataplex.v1.Environment.SessionSpec.getDefaultInstance()
            : sessionSpec_;
      }
    }
    /**
     *
     *
     * <pre>
     * Optional. Configuration for sessions created for this environment.
     * </pre>
     *
     * <code>
     * .google.cloud.dataplex.v1.Environment.SessionSpec session_spec = 101 [(.google.api.field_behavior) = OPTIONAL];
     * </code>
     */
    private com.google.protobuf.SingleFieldBuilderV3<
            com.google.cloud.dataplex.v1.Environment.SessionSpec,
            com.google.cloud.dataplex.v1.Environment.SessionSpec.Builder,
            com.google.cloud.dataplex.v1.Environment.SessionSpecOrBuilder>
        getSessionSpecFieldBuilder() {
      if (sessionSpecBuilder_ == null) {
        sessionSpecBuilder_ =
            new com.google.protobuf.SingleFieldBuilderV3<
                com.google.cloud.dataplex.v1.Environment.SessionSpec,
                com.google.cloud.dataplex.v1.Environment.SessionSpec.Builder,
                com.google.cloud.dataplex.v1.Environment.SessionSpecOrBuilder>(
                getSessionSpec(), getParentForChildren(), isClean());
        sessionSpec_ = null;
      }
      return sessionSpecBuilder_;
    }

    private com.google.cloud.dataplex.v1.Environment.SessionStatus sessionStatus_;
    private com.google.protobuf.SingleFieldBuilderV3<
            com.google.cloud.dataplex.v1.Environment.SessionStatus,
            com.google.cloud.dataplex.v1.Environment.SessionStatus.Builder,
            com.google.cloud.dataplex.v1.Environment.SessionStatusOrBuilder>
        sessionStatusBuilder_;
    /**
     *
     *
     * <pre>
     * Output only. Status of sessions created for this environment.
     * </pre>
     *
     * <code>
     * .google.cloud.dataplex.v1.Environment.SessionStatus session_status = 102 [(.google.api.field_behavior) = OUTPUT_ONLY];
     * </code>
     *
     * @return Whether the sessionStatus field is set.
     */
    public boolean hasSessionStatus() {
      return ((bitField0_ & 0x00000400) != 0);
    }
    /**
     *
     *
     * <pre>
     * Output only. Status of sessions created for this environment.
     * </pre>
     *
     * <code>
     * .google.cloud.dataplex.v1.Environment.SessionStatus session_status = 102 [(.google.api.field_behavior) = OUTPUT_ONLY];
     * </code>
     *
     * @return The sessionStatus.
     */
    public com.google.cloud.dataplex.v1.Environment.SessionStatus getSessionStatus() {
      if (sessionStatusBuilder_ == null) {
        return sessionStatus_ == null
            ? com.google.cloud.dataplex.v1.Environment.SessionStatus.getDefaultInstance()
            : sessionStatus_;
      } else {
        return sessionStatusBuilder_.getMessage();
      }
    }
    /**
     *
     *
     * <pre>
     * Output only. Status of sessions created for this environment.
     * </pre>
     *
     * <code>
     * .google.cloud.dataplex.v1.Environment.SessionStatus session_status = 102 [(.google.api.field_behavior) = OUTPUT_ONLY];
     * </code>
     */
    public Builder setSessionStatus(com.google.cloud.dataplex.v1.Environment.SessionStatus value) {
      if (sessionStatusBuilder_ == null) {
        if (value == null) {
          throw new NullPointerException();
        }
        sessionStatus_ = value;
      } else {
        sessionStatusBuilder_.setMessage(value);
      }
      bitField0_ |= 0x00000400;
      onChanged();
      return this;
    }
    /**
     *
     *
     * <pre>
     * Output only. Status of sessions created for this environment.
     * </pre>
     *
     * <code>
     * .google.cloud.dataplex.v1.Environment.SessionStatus session_status = 102 [(.google.api.field_behavior) = OUTPUT_ONLY];
     * </code>
     */
    public Builder setSessionStatus(
        com.google.cloud.dataplex.v1.Environment.SessionStatus.Builder builderForValue) {
      if (sessionStatusBuilder_ == null) {
        sessionStatus_ = builderForValue.build();
      } else {
        sessionStatusBuilder_.setMessage(builderForValue.build());
      }
      bitField0_ |= 0x00000400;
      onChanged();
      return this;
    }
    /**
     *
     *
     * <pre>
     * Output only. Status of sessions created for this environment.
     * </pre>
     *
     * <code>
     * .google.cloud.dataplex.v1.Environment.SessionStatus session_status = 102 [(.google.api.field_behavior) = OUTPUT_ONLY];
     * </code>
     */
    public Builder mergeSessionStatus(
        com.google.cloud.dataplex.v1.Environment.SessionStatus value) {
      if (sessionStatusBuilder_ == null) {
        if (((bitField0_ & 0x00000400) != 0)
            && sessionStatus_ != null
            && sessionStatus_
                != com.google.cloud.dataplex.v1.Environment.SessionStatus.getDefaultInstance()) {
          getSessionStatusBuilder().mergeFrom(value);
        } else {
          sessionStatus_ = value;
        }
      } else {
        sessionStatusBuilder_.mergeFrom(value);
      }
      bitField0_ |= 0x00000400;
      onChanged();
      return this;
    }
    /**
     *
     *
     * <pre>
     * Output only. Status of sessions created for this environment.
     * </pre>
     *
     * <code>
     * .google.cloud.dataplex.v1.Environment.SessionStatus session_status = 102 [(.google.api.field_behavior) = OUTPUT_ONLY];
     * </code>
     */
    public Builder clearSessionStatus() {
      bitField0_ = (bitField0_ & ~0x00000400);
      sessionStatus_ = null;
      if (sessionStatusBuilder_ != null) {
        sessionStatusBuilder_.dispose();
        sessionStatusBuilder_ = null;
      }
      onChanged();
      return this;
    }
    /**
     *
     *
     * <pre>
     * Output only. Status of sessions created for this environment.
     * </pre>
     *
     * <code>
     * .google.cloud.dataplex.v1.Environment.SessionStatus session_status = 102 [(.google.api.field_behavior) = OUTPUT_ONLY];
     * </code>
     */
    public com.google.cloud.dataplex.v1.Environment.SessionStatus.Builder
        getSessionStatusBuilder() {
      bitField0_ |= 0x00000400;
      onChanged();
      return getSessionStatusFieldBuilder().getBuilder();
    }
    /**
     *
     *
     * <pre>
     * Output only. Status of sessions created for this environment.
     * </pre>
     *
     * <code>
     * .google.cloud.dataplex.v1.Environment.SessionStatus session_status = 102 [(.google.api.field_behavior) = OUTPUT_ONLY];
     * </code>
     */
    public com.google.cloud.dataplex.v1.Environment.SessionStatusOrBuilder
        getSessionStatusOrBuilder() {
      if (sessionStatusBuilder_ != null) {
        return sessionStatusBuilder_.getMessageOrBuilder();
      } else {
        return sessionStatus_ == null
            ? com.google.cloud.dataplex.v1.Environment.SessionStatus.getDefaultInstance()
            : sessionStatus_;
      }
    }
    /**
     *
     *
     * <pre>
     * Output only. Status of sessions created for this environment.
     * </pre>
     *
     * <code>
     * .google.cloud.dataplex.v1.Environment.SessionStatus session_status = 102 [(.google.api.field_behavior) = OUTPUT_ONLY];
     * </code>
     */
    private com.google.protobuf.SingleFieldBuilderV3<
            com.google.cloud.dataplex.v1.Environment.SessionStatus,
            com.google.cloud.dataplex.v1.Environment.SessionStatus.Builder,
            com.google.cloud.dataplex.v1.Environment.SessionStatusOrBuilder>
        getSessionStatusFieldBuilder() {
      if (sessionStatusBuilder_ == null) {
        sessionStatusBuilder_ =
            new com.google.protobuf.SingleFieldBuilderV3<
                com.google.cloud.dataplex.v1.Environment.SessionStatus,
                com.google.cloud.dataplex.v1.Environment.SessionStatus.Builder,
                com.google.cloud.dataplex.v1.Environment.SessionStatusOrBuilder>(
                getSessionStatus(), getParentForChildren(), isClean());
        sessionStatus_ = null;
      }
      return sessionStatusBuilder_;
    }

    private com.google.cloud.dataplex.v1.Environment.Endpoints endpoints_;
    private com.google.protobuf.SingleFieldBuilderV3<
            com.google.cloud.dataplex.v1.Environment.Endpoints,
            com.google.cloud.dataplex.v1.Environment.Endpoints.Builder,
            com.google.cloud.dataplex.v1.Environment.EndpointsOrBuilder>
        endpointsBuilder_;
    /**
     *
     *
     * <pre>
     * Output only. URI Endpoints to access sessions associated with the
     * Environment.
     * </pre>
     *
     * <code>
     * .google.cloud.dataplex.v1.Environment.Endpoints endpoints = 200 [(.google.api.field_behavior) = OUTPUT_ONLY];
     * </code>
     *
     * @return Whether the endpoints field is set.
     */
    public boolean hasEndpoints() {
      return ((bitField0_ & 0x00000800) != 0);
    }
    /**
     *
     *
     * <pre>
     * Output only. URI Endpoints to access sessions associated with the
     * Environment.
     * </pre>
     *
     * <code>
     * .google.cloud.dataplex.v1.Environment.Endpoints endpoints = 200 [(.google.api.field_behavior) = OUTPUT_ONLY];
     * </code>
     *
     * @return The endpoints.
     */
    public com.google.cloud.dataplex.v1.Environment.Endpoints getEndpoints() {
      if (endpointsBuilder_ == null) {
        return endpoints_ == null
            ? com.google.cloud.dataplex.v1.Environment.Endpoints.getDefaultInstance()
            : endpoints_;
      } else {
        return endpointsBuilder_.getMessage();
      }
    }
    /**
     *
     *
     * <pre>
     * Output only. URI Endpoints to access sessions associated with the
     * Environment.
     * </pre>
     *
     * <code>
     * .google.cloud.dataplex.v1.Environment.Endpoints endpoints = 200 [(.google.api.field_behavior) = OUTPUT_ONLY];
     * </code>
     */
    public Builder setEndpoints(com.google.cloud.dataplex.v1.Environment.Endpoints value) {
      if (endpointsBuilder_ == null) {
        if (value == null) {
          throw new NullPointerException();
        }
        endpoints_ = value;
      } else {
        endpointsBuilder_.setMessage(value);
      }
      bitField0_ |= 0x00000800;
      onChanged();
      return this;
    }
    /**
     *
     *
     * <pre>
     * Output only. URI Endpoints to access sessions associated with the
     * Environment.
     * </pre>
     *
     * <code>
     * .google.cloud.dataplex.v1.Environment.Endpoints endpoints = 200 [(.google.api.field_behavior) = OUTPUT_ONLY];
     * </code>
     */
    public Builder setEndpoints(
        com.google.cloud.dataplex.v1.Environment.Endpoints.Builder builderForValue) {
      if (endpointsBuilder_ == null) {
        endpoints_ = builderForValue.build();
      } else {
        endpointsBuilder_.setMessage(builderForValue.build());
      }
      bitField0_ |= 0x00000800;
      onChanged();
      return this;
    }
    /**
     *
     *
     * <pre>
     * Output only. URI Endpoints to access sessions associated with the
     * Environment.
     * </pre>
     *
     * <code>
     * .google.cloud.dataplex.v1.Environment.Endpoints endpoints = 200 [(.google.api.field_behavior) = OUTPUT_ONLY];
     * </code>
     */
    public Builder mergeEndpoints(com.google.cloud.dataplex.v1.Environment.Endpoints value) {
      if (endpointsBuilder_ == null) {
        if (((bitField0_ & 0x00000800) != 0)
            && endpoints_ != null
            && endpoints_
                != com.google.cloud.dataplex.v1.Environment.Endpoints.getDefaultInstance()) {
          getEndpointsBuilder().mergeFrom(value);
        } else {
          endpoints_ = value;
        }
      } else {
        endpointsBuilder_.mergeFrom(value);
      }
      bitField0_ |= 0x00000800;
      onChanged();
      return this;
    }
    /**
     *
     *
     * <pre>
     * Output only. URI Endpoints to access sessions associated with the
     * Environment.
     * </pre>
     *
     * <code>
     * .google.cloud.dataplex.v1.Environment.Endpoints endpoints = 200 [(.google.api.field_behavior) = OUTPUT_ONLY];
     * </code>
     */
    public Builder clearEndpoints() {
      bitField0_ = (bitField0_ & ~0x00000800);
      endpoints_ = null;
      if (endpointsBuilder_ != null) {
        endpointsBuilder_.dispose();
        endpointsBuilder_ = null;
      }
      onChanged();
      return this;
    }
    /**
     *
     *
     * <pre>
     * Output only. URI Endpoints to access sessions associated with the
     * Environment.
     * </pre>
     *
     * <code>
     * .google.cloud.dataplex.v1.Environment.Endpoints endpoints = 200 [(.google.api.field_behavior) = OUTPUT_ONLY];
     * </code>
     */
    public com.google.cloud.dataplex.v1.Environment.Endpoints.Builder getEndpointsBuilder() {
      bitField0_ |= 0x00000800;
      onChanged();
      return getEndpointsFieldBuilder().getBuilder();
    }
    /**
     *
     *
     * <pre>
     * Output only. URI Endpoints to access sessions associated with the
     * Environment.
     * </pre>
     *
     * <code>
     * .google.cloud.dataplex.v1.Environment.Endpoints endpoints = 200 [(.google.api.field_behavior) = OUTPUT_ONLY];
     * </code>
     */
    public com.google.cloud.dataplex.v1.Environment.EndpointsOrBuilder getEndpointsOrBuilder() {
      if (endpointsBuilder_ != null) {
        return endpointsBuilder_.getMessageOrBuilder();
      } else {
        return endpoints_ == null
            ? com.google.cloud.dataplex.v1.Environment.Endpoints.getDefaultInstance()
            : endpoints_;
      }
    }
    /**
     *
     *
     * <pre>
     * Output only. URI Endpoints to access sessions associated with the
     * Environment.
     * </pre>
     *
     * <code>
     * .google.cloud.dataplex.v1.Environment.Endpoints endpoints = 200 [(.google.api.field_behavior) = OUTPUT_ONLY];
     * </code>
     */
    private com.google.protobuf.SingleFieldBuilderV3<
            com.google.cloud.dataplex.v1.Environment.Endpoints,
            com.google.cloud.dataplex.v1.Environment.Endpoints.Builder,
            com.google.cloud.dataplex.v1.Environment.EndpointsOrBuilder>
        getEndpointsFieldBuilder() {
      if (endpointsBuilder_ == null) {
        endpointsBuilder_ =
            new com.google.protobuf.SingleFieldBuilderV3<
                com.google.cloud.dataplex.v1.Environment.Endpoints,
                com.google.cloud.dataplex.v1.Environment.Endpoints.Builder,
                com.google.cloud.dataplex.v1.Environment.EndpointsOrBuilder>(
                getEndpoints(), getParentForChildren(), isClean());
        endpoints_ = null;
      }
      return endpointsBuilder_;
    }

    @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.dataplex.v1.Environment)
  }

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

  static {
    DEFAULT_INSTANCE = new com.google.cloud.dataplex.v1.Environment();
  }

  public static com.google.cloud.dataplex.v1.Environment getDefaultInstance() {
    return DEFAULT_INSTANCE;
  }

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

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

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