// Generated by the protocol buffer compiler.  DO NOT EDIT!
// source: google/container/v1/cluster_service.proto

package com.google.container.v1;

/**
 * <pre>
 * Container Engine service configuration.
 * </pre>
 *
 * Protobuf type {@code google.container.v1.ServerConfig}
 */
public  final class ServerConfig extends
    com.google.protobuf.GeneratedMessageV3 implements
    // @@protoc_insertion_point(message_implements:google.container.v1.ServerConfig)
    ServerConfigOrBuilder {
private static final long serialVersionUID = 0L;
  // Use ServerConfig.newBuilder() to construct.
  private ServerConfig(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {
    super(builder);
  }
  private ServerConfig() {
    defaultClusterVersion_ = "";
    validNodeVersions_ = com.google.protobuf.LazyStringArrayList.EMPTY;
    defaultImageType_ = "";
    validImageTypes_ = com.google.protobuf.LazyStringArrayList.EMPTY;
    validMasterVersions_ = com.google.protobuf.LazyStringArrayList.EMPTY;
  }

  @java.lang.Override
  public final com.google.protobuf.UnknownFieldSet
  getUnknownFields() {
    return this.unknownFields;
  }
  private ServerConfig(
      com.google.protobuf.CodedInputStream input,
      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
      throws com.google.protobuf.InvalidProtocolBufferException {
    this();
    if (extensionRegistry == null) {
      throw new java.lang.NullPointerException();
    }
    int mutable_bitField0_ = 0;
    com.google.protobuf.UnknownFieldSet.Builder unknownFields =
        com.google.protobuf.UnknownFieldSet.newBuilder();
    try {
      boolean done = false;
      while (!done) {
        int tag = input.readTag();
        switch (tag) {
          case 0:
            done = true;
            break;
          default: {
            if (!parseUnknownFieldProto3(
                input, unknownFields, extensionRegistry, tag)) {
              done = true;
            }
            break;
          }
          case 10: {
            java.lang.String s = input.readStringRequireUtf8();

            defaultClusterVersion_ = s;
            break;
          }
          case 26: {
            java.lang.String s = input.readStringRequireUtf8();
            if (!((mutable_bitField0_ & 0x00000002) == 0x00000002)) {
              validNodeVersions_ = new com.google.protobuf.LazyStringArrayList();
              mutable_bitField0_ |= 0x00000002;
            }
            validNodeVersions_.add(s);
            break;
          }
          case 34: {
            java.lang.String s = input.readStringRequireUtf8();

            defaultImageType_ = s;
            break;
          }
          case 42: {
            java.lang.String s = input.readStringRequireUtf8();
            if (!((mutable_bitField0_ & 0x00000008) == 0x00000008)) {
              validImageTypes_ = new com.google.protobuf.LazyStringArrayList();
              mutable_bitField0_ |= 0x00000008;
            }
            validImageTypes_.add(s);
            break;
          }
          case 50: {
            java.lang.String s = input.readStringRequireUtf8();
            if (!((mutable_bitField0_ & 0x00000010) == 0x00000010)) {
              validMasterVersions_ = new com.google.protobuf.LazyStringArrayList();
              mutable_bitField0_ |= 0x00000010;
            }
            validMasterVersions_.add(s);
            break;
          }
        }
      }
    } catch (com.google.protobuf.InvalidProtocolBufferException e) {
      throw e.setUnfinishedMessage(this);
    } catch (java.io.IOException e) {
      throw new com.google.protobuf.InvalidProtocolBufferException(
          e).setUnfinishedMessage(this);
    } finally {
      if (((mutable_bitField0_ & 0x00000002) == 0x00000002)) {
        validNodeVersions_ = validNodeVersions_.getUnmodifiableView();
      }
      if (((mutable_bitField0_ & 0x00000008) == 0x00000008)) {
        validImageTypes_ = validImageTypes_.getUnmodifiableView();
      }
      if (((mutable_bitField0_ & 0x00000010) == 0x00000010)) {
        validMasterVersions_ = validMasterVersions_.getUnmodifiableView();
      }
      this.unknownFields = unknownFields.build();
      makeExtensionsImmutable();
    }
  }
  public static final com.google.protobuf.Descriptors.Descriptor
      getDescriptor() {
    return com.google.container.v1.ClusterServiceProto.internal_static_google_container_v1_ServerConfig_descriptor;
  }

  protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
      internalGetFieldAccessorTable() {
    return com.google.container.v1.ClusterServiceProto.internal_static_google_container_v1_ServerConfig_fieldAccessorTable
        .ensureFieldAccessorsInitialized(
            com.google.container.v1.ServerConfig.class, com.google.container.v1.ServerConfig.Builder.class);
  }

  private int bitField0_;
  public static final int DEFAULT_CLUSTER_VERSION_FIELD_NUMBER = 1;
  private volatile java.lang.Object defaultClusterVersion_;
  /**
   * <pre>
   * Version of Kubernetes the service deploys by default.
   * </pre>
   *
   * <code>string default_cluster_version = 1;</code>
   */
  public java.lang.String getDefaultClusterVersion() {
    java.lang.Object ref = defaultClusterVersion_;
    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();
      defaultClusterVersion_ = s;
      return s;
    }
  }
  /**
   * <pre>
   * Version of Kubernetes the service deploys by default.
   * </pre>
   *
   * <code>string default_cluster_version = 1;</code>
   */
  public com.google.protobuf.ByteString
      getDefaultClusterVersionBytes() {
    java.lang.Object ref = defaultClusterVersion_;
    if (ref instanceof java.lang.String) {
      com.google.protobuf.ByteString b = 
          com.google.protobuf.ByteString.copyFromUtf8(
              (java.lang.String) ref);
      defaultClusterVersion_ = b;
      return b;
    } else {
      return (com.google.protobuf.ByteString) ref;
    }
  }

  public static final int VALID_NODE_VERSIONS_FIELD_NUMBER = 3;
  private com.google.protobuf.LazyStringList validNodeVersions_;
  /**
   * <pre>
   * List of valid node upgrade target versions.
   * </pre>
   *
   * <code>repeated string valid_node_versions = 3;</code>
   */
  public com.google.protobuf.ProtocolStringList
      getValidNodeVersionsList() {
    return validNodeVersions_;
  }
  /**
   * <pre>
   * List of valid node upgrade target versions.
   * </pre>
   *
   * <code>repeated string valid_node_versions = 3;</code>
   */
  public int getValidNodeVersionsCount() {
    return validNodeVersions_.size();
  }
  /**
   * <pre>
   * List of valid node upgrade target versions.
   * </pre>
   *
   * <code>repeated string valid_node_versions = 3;</code>
   */
  public java.lang.String getValidNodeVersions(int index) {
    return validNodeVersions_.get(index);
  }
  /**
   * <pre>
   * List of valid node upgrade target versions.
   * </pre>
   *
   * <code>repeated string valid_node_versions = 3;</code>
   */
  public com.google.protobuf.ByteString
      getValidNodeVersionsBytes(int index) {
    return validNodeVersions_.getByteString(index);
  }

  public static final int DEFAULT_IMAGE_TYPE_FIELD_NUMBER = 4;
  private volatile java.lang.Object defaultImageType_;
  /**
   * <pre>
   * Default image type.
   * </pre>
   *
   * <code>string default_image_type = 4;</code>
   */
  public java.lang.String getDefaultImageType() {
    java.lang.Object ref = defaultImageType_;
    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();
      defaultImageType_ = s;
      return s;
    }
  }
  /**
   * <pre>
   * Default image type.
   * </pre>
   *
   * <code>string default_image_type = 4;</code>
   */
  public com.google.protobuf.ByteString
      getDefaultImageTypeBytes() {
    java.lang.Object ref = defaultImageType_;
    if (ref instanceof java.lang.String) {
      com.google.protobuf.ByteString b = 
          com.google.protobuf.ByteString.copyFromUtf8(
              (java.lang.String) ref);
      defaultImageType_ = b;
      return b;
    } else {
      return (com.google.protobuf.ByteString) ref;
    }
  }

  public static final int VALID_IMAGE_TYPES_FIELD_NUMBER = 5;
  private com.google.protobuf.LazyStringList validImageTypes_;
  /**
   * <pre>
   * List of valid image types.
   * </pre>
   *
   * <code>repeated string valid_image_types = 5;</code>
   */
  public com.google.protobuf.ProtocolStringList
      getValidImageTypesList() {
    return validImageTypes_;
  }
  /**
   * <pre>
   * List of valid image types.
   * </pre>
   *
   * <code>repeated string valid_image_types = 5;</code>
   */
  public int getValidImageTypesCount() {
    return validImageTypes_.size();
  }
  /**
   * <pre>
   * List of valid image types.
   * </pre>
   *
   * <code>repeated string valid_image_types = 5;</code>
   */
  public java.lang.String getValidImageTypes(int index) {
    return validImageTypes_.get(index);
  }
  /**
   * <pre>
   * List of valid image types.
   * </pre>
   *
   * <code>repeated string valid_image_types = 5;</code>
   */
  public com.google.protobuf.ByteString
      getValidImageTypesBytes(int index) {
    return validImageTypes_.getByteString(index);
  }

  public static final int VALID_MASTER_VERSIONS_FIELD_NUMBER = 6;
  private com.google.protobuf.LazyStringList validMasterVersions_;
  /**
   * <pre>
   * List of valid master versions.
   * </pre>
   *
   * <code>repeated string valid_master_versions = 6;</code>
   */
  public com.google.protobuf.ProtocolStringList
      getValidMasterVersionsList() {
    return validMasterVersions_;
  }
  /**
   * <pre>
   * List of valid master versions.
   * </pre>
   *
   * <code>repeated string valid_master_versions = 6;</code>
   */
  public int getValidMasterVersionsCount() {
    return validMasterVersions_.size();
  }
  /**
   * <pre>
   * List of valid master versions.
   * </pre>
   *
   * <code>repeated string valid_master_versions = 6;</code>
   */
  public java.lang.String getValidMasterVersions(int index) {
    return validMasterVersions_.get(index);
  }
  /**
   * <pre>
   * List of valid master versions.
   * </pre>
   *
   * <code>repeated string valid_master_versions = 6;</code>
   */
  public com.google.protobuf.ByteString
      getValidMasterVersionsBytes(int index) {
    return validMasterVersions_.getByteString(index);
  }

  private byte memoizedIsInitialized = -1;
  public final boolean isInitialized() {
    byte isInitialized = memoizedIsInitialized;
    if (isInitialized == 1) return true;
    if (isInitialized == 0) return false;

    memoizedIsInitialized = 1;
    return true;
  }

  public void writeTo(com.google.protobuf.CodedOutputStream output)
                      throws java.io.IOException {
    if (!getDefaultClusterVersionBytes().isEmpty()) {
      com.google.protobuf.GeneratedMessageV3.writeString(output, 1, defaultClusterVersion_);
    }
    for (int i = 0; i < validNodeVersions_.size(); i++) {
      com.google.protobuf.GeneratedMessageV3.writeString(output, 3, validNodeVersions_.getRaw(i));
    }
    if (!getDefaultImageTypeBytes().isEmpty()) {
      com.google.protobuf.GeneratedMessageV3.writeString(output, 4, defaultImageType_);
    }
    for (int i = 0; i < validImageTypes_.size(); i++) {
      com.google.protobuf.GeneratedMessageV3.writeString(output, 5, validImageTypes_.getRaw(i));
    }
    for (int i = 0; i < validMasterVersions_.size(); i++) {
      com.google.protobuf.GeneratedMessageV3.writeString(output, 6, validMasterVersions_.getRaw(i));
    }
    unknownFields.writeTo(output);
  }

  public int getSerializedSize() {
    int size = memoizedSize;
    if (size != -1) return size;

    size = 0;
    if (!getDefaultClusterVersionBytes().isEmpty()) {
      size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, defaultClusterVersion_);
    }
    {
      int dataSize = 0;
      for (int i = 0; i < validNodeVersions_.size(); i++) {
        dataSize += computeStringSizeNoTag(validNodeVersions_.getRaw(i));
      }
      size += dataSize;
      size += 1 * getValidNodeVersionsList().size();
    }
    if (!getDefaultImageTypeBytes().isEmpty()) {
      size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, defaultImageType_);
    }
    {
      int dataSize = 0;
      for (int i = 0; i < validImageTypes_.size(); i++) {
        dataSize += computeStringSizeNoTag(validImageTypes_.getRaw(i));
      }
      size += dataSize;
      size += 1 * getValidImageTypesList().size();
    }
    {
      int dataSize = 0;
      for (int i = 0; i < validMasterVersions_.size(); i++) {
        dataSize += computeStringSizeNoTag(validMasterVersions_.getRaw(i));
      }
      size += dataSize;
      size += 1 * getValidMasterVersionsList().size();
    }
    size += unknownFields.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.container.v1.ServerConfig)) {
      return super.equals(obj);
    }
    com.google.container.v1.ServerConfig other = (com.google.container.v1.ServerConfig) obj;

    boolean result = true;
    result = result && getDefaultClusterVersion()
        .equals(other.getDefaultClusterVersion());
    result = result && getValidNodeVersionsList()
        .equals(other.getValidNodeVersionsList());
    result = result && getDefaultImageType()
        .equals(other.getDefaultImageType());
    result = result && getValidImageTypesList()
        .equals(other.getValidImageTypesList());
    result = result && getValidMasterVersionsList()
        .equals(other.getValidMasterVersionsList());
    result = result && unknownFields.equals(other.unknownFields);
    return result;
  }

  @java.lang.Override
  public int hashCode() {
    if (memoizedHashCode != 0) {
      return memoizedHashCode;
    }
    int hash = 41;
    hash = (19 * hash) + getDescriptor().hashCode();
    hash = (37 * hash) + DEFAULT_CLUSTER_VERSION_FIELD_NUMBER;
    hash = (53 * hash) + getDefaultClusterVersion().hashCode();
    if (getValidNodeVersionsCount() > 0) {
      hash = (37 * hash) + VALID_NODE_VERSIONS_FIELD_NUMBER;
      hash = (53 * hash) + getValidNodeVersionsList().hashCode();
    }
    hash = (37 * hash) + DEFAULT_IMAGE_TYPE_FIELD_NUMBER;
    hash = (53 * hash) + getDefaultImageType().hashCode();
    if (getValidImageTypesCount() > 0) {
      hash = (37 * hash) + VALID_IMAGE_TYPES_FIELD_NUMBER;
      hash = (53 * hash) + getValidImageTypesList().hashCode();
    }
    if (getValidMasterVersionsCount() > 0) {
      hash = (37 * hash) + VALID_MASTER_VERSIONS_FIELD_NUMBER;
      hash = (53 * hash) + getValidMasterVersionsList().hashCode();
    }
    hash = (29 * hash) + unknownFields.hashCode();
    memoizedHashCode = hash;
    return hash;
  }

  public static com.google.container.v1.ServerConfig parseFrom(
      java.nio.ByteBuffer data)
      throws com.google.protobuf.InvalidProtocolBufferException {
    return PARSER.parseFrom(data);
  }
  public static com.google.container.v1.ServerConfig parseFrom(
      java.nio.ByteBuffer data,
      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
      throws com.google.protobuf.InvalidProtocolBufferException {
    return PARSER.parseFrom(data, extensionRegistry);
  }
  public static com.google.container.v1.ServerConfig parseFrom(
      com.google.protobuf.ByteString data)
      throws com.google.protobuf.InvalidProtocolBufferException {
    return PARSER.parseFrom(data);
  }
  public static com.google.container.v1.ServerConfig 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.container.v1.ServerConfig parseFrom(byte[] data)
      throws com.google.protobuf.InvalidProtocolBufferException {
    return PARSER.parseFrom(data);
  }
  public static com.google.container.v1.ServerConfig parseFrom(
      byte[] data,
      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
      throws com.google.protobuf.InvalidProtocolBufferException {
    return PARSER.parseFrom(data, extensionRegistry);
  }
  public static com.google.container.v1.ServerConfig parseFrom(java.io.InputStream input)
      throws java.io.IOException {
    return com.google.protobuf.GeneratedMessageV3
        .parseWithIOException(PARSER, input);
  }
  public static com.google.container.v1.ServerConfig 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.container.v1.ServerConfig parseDelimitedFrom(java.io.InputStream input)
      throws java.io.IOException {
    return com.google.protobuf.GeneratedMessageV3
        .parseDelimitedWithIOException(PARSER, input);
  }
  public static com.google.container.v1.ServerConfig 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.container.v1.ServerConfig parseFrom(
      com.google.protobuf.CodedInputStream input)
      throws java.io.IOException {
    return com.google.protobuf.GeneratedMessageV3
        .parseWithIOException(PARSER, input);
  }
  public static com.google.container.v1.ServerConfig parseFrom(
      com.google.protobuf.CodedInputStream input,
      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
      throws java.io.IOException {
    return com.google.protobuf.GeneratedMessageV3
        .parseWithIOException(PARSER, input, extensionRegistry);
  }

  public Builder newBuilderForType() { return newBuilder(); }
  public static Builder newBuilder() {
    return DEFAULT_INSTANCE.toBuilder();
  }
  public static Builder newBuilder(com.google.container.v1.ServerConfig prototype) {
    return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
  }
  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>
   * Container Engine service configuration.
   * </pre>
   *
   * Protobuf type {@code google.container.v1.ServerConfig}
   */
  public static final class Builder extends
      com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements
      // @@protoc_insertion_point(builder_implements:google.container.v1.ServerConfig)
      com.google.container.v1.ServerConfigOrBuilder {
    public static final com.google.protobuf.Descriptors.Descriptor
        getDescriptor() {
      return com.google.container.v1.ClusterServiceProto.internal_static_google_container_v1_ServerConfig_descriptor;
    }

    protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
        internalGetFieldAccessorTable() {
      return com.google.container.v1.ClusterServiceProto.internal_static_google_container_v1_ServerConfig_fieldAccessorTable
          .ensureFieldAccessorsInitialized(
              com.google.container.v1.ServerConfig.class, com.google.container.v1.ServerConfig.Builder.class);
    }

    // Construct using com.google.container.v1.ServerConfig.newBuilder()
    private Builder() {
      maybeForceBuilderInitialization();
    }

    private Builder(
        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
      super(parent);
      maybeForceBuilderInitialization();
    }
    private void maybeForceBuilderInitialization() {
      if (com.google.protobuf.GeneratedMessageV3
              .alwaysUseFieldBuilders) {
      }
    }
    public Builder clear() {
      super.clear();
      defaultClusterVersion_ = "";

      validNodeVersions_ = com.google.protobuf.LazyStringArrayList.EMPTY;
      bitField0_ = (bitField0_ & ~0x00000002);
      defaultImageType_ = "";

      validImageTypes_ = com.google.protobuf.LazyStringArrayList.EMPTY;
      bitField0_ = (bitField0_ & ~0x00000008);
      validMasterVersions_ = com.google.protobuf.LazyStringArrayList.EMPTY;
      bitField0_ = (bitField0_ & ~0x00000010);
      return this;
    }

    public com.google.protobuf.Descriptors.Descriptor
        getDescriptorForType() {
      return com.google.container.v1.ClusterServiceProto.internal_static_google_container_v1_ServerConfig_descriptor;
    }

    public com.google.container.v1.ServerConfig getDefaultInstanceForType() {
      return com.google.container.v1.ServerConfig.getDefaultInstance();
    }

    public com.google.container.v1.ServerConfig build() {
      com.google.container.v1.ServerConfig result = buildPartial();
      if (!result.isInitialized()) {
        throw newUninitializedMessageException(result);
      }
      return result;
    }

    public com.google.container.v1.ServerConfig buildPartial() {
      com.google.container.v1.ServerConfig result = new com.google.container.v1.ServerConfig(this);
      int from_bitField0_ = bitField0_;
      int to_bitField0_ = 0;
      result.defaultClusterVersion_ = defaultClusterVersion_;
      if (((bitField0_ & 0x00000002) == 0x00000002)) {
        validNodeVersions_ = validNodeVersions_.getUnmodifiableView();
        bitField0_ = (bitField0_ & ~0x00000002);
      }
      result.validNodeVersions_ = validNodeVersions_;
      result.defaultImageType_ = defaultImageType_;
      if (((bitField0_ & 0x00000008) == 0x00000008)) {
        validImageTypes_ = validImageTypes_.getUnmodifiableView();
        bitField0_ = (bitField0_ & ~0x00000008);
      }
      result.validImageTypes_ = validImageTypes_;
      if (((bitField0_ & 0x00000010) == 0x00000010)) {
        validMasterVersions_ = validMasterVersions_.getUnmodifiableView();
        bitField0_ = (bitField0_ & ~0x00000010);
      }
      result.validMasterVersions_ = validMasterVersions_;
      result.bitField0_ = to_bitField0_;
      onBuilt();
      return result;
    }

    public Builder clone() {
      return (Builder) super.clone();
    }
    public Builder setField(
        com.google.protobuf.Descriptors.FieldDescriptor field,
        java.lang.Object value) {
      return (Builder) super.setField(field, value);
    }
    public Builder clearField(
        com.google.protobuf.Descriptors.FieldDescriptor field) {
      return (Builder) super.clearField(field);
    }
    public Builder clearOneof(
        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
      return (Builder) super.clearOneof(oneof);
    }
    public Builder setRepeatedField(
        com.google.protobuf.Descriptors.FieldDescriptor field,
        int index, java.lang.Object value) {
      return (Builder) super.setRepeatedField(field, index, value);
    }
    public Builder addRepeatedField(
        com.google.protobuf.Descriptors.FieldDescriptor field,
        java.lang.Object value) {
      return (Builder) super.addRepeatedField(field, value);
    }
    public Builder mergeFrom(com.google.protobuf.Message other) {
      if (other instanceof com.google.container.v1.ServerConfig) {
        return mergeFrom((com.google.container.v1.ServerConfig)other);
      } else {
        super.mergeFrom(other);
        return this;
      }
    }

    public Builder mergeFrom(com.google.container.v1.ServerConfig other) {
      if (other == com.google.container.v1.ServerConfig.getDefaultInstance()) return this;
      if (!other.getDefaultClusterVersion().isEmpty()) {
        defaultClusterVersion_ = other.defaultClusterVersion_;
        onChanged();
      }
      if (!other.validNodeVersions_.isEmpty()) {
        if (validNodeVersions_.isEmpty()) {
          validNodeVersions_ = other.validNodeVersions_;
          bitField0_ = (bitField0_ & ~0x00000002);
        } else {
          ensureValidNodeVersionsIsMutable();
          validNodeVersions_.addAll(other.validNodeVersions_);
        }
        onChanged();
      }
      if (!other.getDefaultImageType().isEmpty()) {
        defaultImageType_ = other.defaultImageType_;
        onChanged();
      }
      if (!other.validImageTypes_.isEmpty()) {
        if (validImageTypes_.isEmpty()) {
          validImageTypes_ = other.validImageTypes_;
          bitField0_ = (bitField0_ & ~0x00000008);
        } else {
          ensureValidImageTypesIsMutable();
          validImageTypes_.addAll(other.validImageTypes_);
        }
        onChanged();
      }
      if (!other.validMasterVersions_.isEmpty()) {
        if (validMasterVersions_.isEmpty()) {
          validMasterVersions_ = other.validMasterVersions_;
          bitField0_ = (bitField0_ & ~0x00000010);
        } else {
          ensureValidMasterVersionsIsMutable();
          validMasterVersions_.addAll(other.validMasterVersions_);
        }
        onChanged();
      }
      this.mergeUnknownFields(other.unknownFields);
      onChanged();
      return this;
    }

    public final boolean isInitialized() {
      return true;
    }

    public Builder mergeFrom(
        com.google.protobuf.CodedInputStream input,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws java.io.IOException {
      com.google.container.v1.ServerConfig parsedMessage = null;
      try {
        parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
      } catch (com.google.protobuf.InvalidProtocolBufferException e) {
        parsedMessage = (com.google.container.v1.ServerConfig) e.getUnfinishedMessage();
        throw e.unwrapIOException();
      } finally {
        if (parsedMessage != null) {
          mergeFrom(parsedMessage);
        }
      }
      return this;
    }
    private int bitField0_;

    private java.lang.Object defaultClusterVersion_ = "";
    /**
     * <pre>
     * Version of Kubernetes the service deploys by default.
     * </pre>
     *
     * <code>string default_cluster_version = 1;</code>
     */
    public java.lang.String getDefaultClusterVersion() {
      java.lang.Object ref = defaultClusterVersion_;
      if (!(ref instanceof java.lang.String)) {
        com.google.protobuf.ByteString bs =
            (com.google.protobuf.ByteString) ref;
        java.lang.String s = bs.toStringUtf8();
        defaultClusterVersion_ = s;
        return s;
      } else {
        return (java.lang.String) ref;
      }
    }
    /**
     * <pre>
     * Version of Kubernetes the service deploys by default.
     * </pre>
     *
     * <code>string default_cluster_version = 1;</code>
     */
    public com.google.protobuf.ByteString
        getDefaultClusterVersionBytes() {
      java.lang.Object ref = defaultClusterVersion_;
      if (ref instanceof String) {
        com.google.protobuf.ByteString b = 
            com.google.protobuf.ByteString.copyFromUtf8(
                (java.lang.String) ref);
        defaultClusterVersion_ = b;
        return b;
      } else {
        return (com.google.protobuf.ByteString) ref;
      }
    }
    /**
     * <pre>
     * Version of Kubernetes the service deploys by default.
     * </pre>
     *
     * <code>string default_cluster_version = 1;</code>
     */
    public Builder setDefaultClusterVersion(
        java.lang.String value) {
      if (value == null) {
    throw new NullPointerException();
  }
  
      defaultClusterVersion_ = value;
      onChanged();
      return this;
    }
    /**
     * <pre>
     * Version of Kubernetes the service deploys by default.
     * </pre>
     *
     * <code>string default_cluster_version = 1;</code>
     */
    public Builder clearDefaultClusterVersion() {
      
      defaultClusterVersion_ = getDefaultInstance().getDefaultClusterVersion();
      onChanged();
      return this;
    }
    /**
     * <pre>
     * Version of Kubernetes the service deploys by default.
     * </pre>
     *
     * <code>string default_cluster_version = 1;</code>
     */
    public Builder setDefaultClusterVersionBytes(
        com.google.protobuf.ByteString value) {
      if (value == null) {
    throw new NullPointerException();
  }
  checkByteStringIsUtf8(value);
      
      defaultClusterVersion_ = value;
      onChanged();
      return this;
    }

    private com.google.protobuf.LazyStringList validNodeVersions_ = com.google.protobuf.LazyStringArrayList.EMPTY;
    private void ensureValidNodeVersionsIsMutable() {
      if (!((bitField0_ & 0x00000002) == 0x00000002)) {
        validNodeVersions_ = new com.google.protobuf.LazyStringArrayList(validNodeVersions_);
        bitField0_ |= 0x00000002;
       }
    }
    /**
     * <pre>
     * List of valid node upgrade target versions.
     * </pre>
     *
     * <code>repeated string valid_node_versions = 3;</code>
     */
    public com.google.protobuf.ProtocolStringList
        getValidNodeVersionsList() {
      return validNodeVersions_.getUnmodifiableView();
    }
    /**
     * <pre>
     * List of valid node upgrade target versions.
     * </pre>
     *
     * <code>repeated string valid_node_versions = 3;</code>
     */
    public int getValidNodeVersionsCount() {
      return validNodeVersions_.size();
    }
    /**
     * <pre>
     * List of valid node upgrade target versions.
     * </pre>
     *
     * <code>repeated string valid_node_versions = 3;</code>
     */
    public java.lang.String getValidNodeVersions(int index) {
      return validNodeVersions_.get(index);
    }
    /**
     * <pre>
     * List of valid node upgrade target versions.
     * </pre>
     *
     * <code>repeated string valid_node_versions = 3;</code>
     */
    public com.google.protobuf.ByteString
        getValidNodeVersionsBytes(int index) {
      return validNodeVersions_.getByteString(index);
    }
    /**
     * <pre>
     * List of valid node upgrade target versions.
     * </pre>
     *
     * <code>repeated string valid_node_versions = 3;</code>
     */
    public Builder setValidNodeVersions(
        int index, java.lang.String value) {
      if (value == null) {
    throw new NullPointerException();
  }
  ensureValidNodeVersionsIsMutable();
      validNodeVersions_.set(index, value);
      onChanged();
      return this;
    }
    /**
     * <pre>
     * List of valid node upgrade target versions.
     * </pre>
     *
     * <code>repeated string valid_node_versions = 3;</code>
     */
    public Builder addValidNodeVersions(
        java.lang.String value) {
      if (value == null) {
    throw new NullPointerException();
  }
  ensureValidNodeVersionsIsMutable();
      validNodeVersions_.add(value);
      onChanged();
      return this;
    }
    /**
     * <pre>
     * List of valid node upgrade target versions.
     * </pre>
     *
     * <code>repeated string valid_node_versions = 3;</code>
     */
    public Builder addAllValidNodeVersions(
        java.lang.Iterable<java.lang.String> values) {
      ensureValidNodeVersionsIsMutable();
      com.google.protobuf.AbstractMessageLite.Builder.addAll(
          values, validNodeVersions_);
      onChanged();
      return this;
    }
    /**
     * <pre>
     * List of valid node upgrade target versions.
     * </pre>
     *
     * <code>repeated string valid_node_versions = 3;</code>
     */
    public Builder clearValidNodeVersions() {
      validNodeVersions_ = com.google.protobuf.LazyStringArrayList.EMPTY;
      bitField0_ = (bitField0_ & ~0x00000002);
      onChanged();
      return this;
    }
    /**
     * <pre>
     * List of valid node upgrade target versions.
     * </pre>
     *
     * <code>repeated string valid_node_versions = 3;</code>
     */
    public Builder addValidNodeVersionsBytes(
        com.google.protobuf.ByteString value) {
      if (value == null) {
    throw new NullPointerException();
  }
  checkByteStringIsUtf8(value);
      ensureValidNodeVersionsIsMutable();
      validNodeVersions_.add(value);
      onChanged();
      return this;
    }

    private java.lang.Object defaultImageType_ = "";
    /**
     * <pre>
     * Default image type.
     * </pre>
     *
     * <code>string default_image_type = 4;</code>
     */
    public java.lang.String getDefaultImageType() {
      java.lang.Object ref = defaultImageType_;
      if (!(ref instanceof java.lang.String)) {
        com.google.protobuf.ByteString bs =
            (com.google.protobuf.ByteString) ref;
        java.lang.String s = bs.toStringUtf8();
        defaultImageType_ = s;
        return s;
      } else {
        return (java.lang.String) ref;
      }
    }
    /**
     * <pre>
     * Default image type.
     * </pre>
     *
     * <code>string default_image_type = 4;</code>
     */
    public com.google.protobuf.ByteString
        getDefaultImageTypeBytes() {
      java.lang.Object ref = defaultImageType_;
      if (ref instanceof String) {
        com.google.protobuf.ByteString b = 
            com.google.protobuf.ByteString.copyFromUtf8(
                (java.lang.String) ref);
        defaultImageType_ = b;
        return b;
      } else {
        return (com.google.protobuf.ByteString) ref;
      }
    }
    /**
     * <pre>
     * Default image type.
     * </pre>
     *
     * <code>string default_image_type = 4;</code>
     */
    public Builder setDefaultImageType(
        java.lang.String value) {
      if (value == null) {
    throw new NullPointerException();
  }
  
      defaultImageType_ = value;
      onChanged();
      return this;
    }
    /**
     * <pre>
     * Default image type.
     * </pre>
     *
     * <code>string default_image_type = 4;</code>
     */
    public Builder clearDefaultImageType() {
      
      defaultImageType_ = getDefaultInstance().getDefaultImageType();
      onChanged();
      return this;
    }
    /**
     * <pre>
     * Default image type.
     * </pre>
     *
     * <code>string default_image_type = 4;</code>
     */
    public Builder setDefaultImageTypeBytes(
        com.google.protobuf.ByteString value) {
      if (value == null) {
    throw new NullPointerException();
  }
  checkByteStringIsUtf8(value);
      
      defaultImageType_ = value;
      onChanged();
      return this;
    }

    private com.google.protobuf.LazyStringList validImageTypes_ = com.google.protobuf.LazyStringArrayList.EMPTY;
    private void ensureValidImageTypesIsMutable() {
      if (!((bitField0_ & 0x00000008) == 0x00000008)) {
        validImageTypes_ = new com.google.protobuf.LazyStringArrayList(validImageTypes_);
        bitField0_ |= 0x00000008;
       }
    }
    /**
     * <pre>
     * List of valid image types.
     * </pre>
     *
     * <code>repeated string valid_image_types = 5;</code>
     */
    public com.google.protobuf.ProtocolStringList
        getValidImageTypesList() {
      return validImageTypes_.getUnmodifiableView();
    }
    /**
     * <pre>
     * List of valid image types.
     * </pre>
     *
     * <code>repeated string valid_image_types = 5;</code>
     */
    public int getValidImageTypesCount() {
      return validImageTypes_.size();
    }
    /**
     * <pre>
     * List of valid image types.
     * </pre>
     *
     * <code>repeated string valid_image_types = 5;</code>
     */
    public java.lang.String getValidImageTypes(int index) {
      return validImageTypes_.get(index);
    }
    /**
     * <pre>
     * List of valid image types.
     * </pre>
     *
     * <code>repeated string valid_image_types = 5;</code>
     */
    public com.google.protobuf.ByteString
        getValidImageTypesBytes(int index) {
      return validImageTypes_.getByteString(index);
    }
    /**
     * <pre>
     * List of valid image types.
     * </pre>
     *
     * <code>repeated string valid_image_types = 5;</code>
     */
    public Builder setValidImageTypes(
        int index, java.lang.String value) {
      if (value == null) {
    throw new NullPointerException();
  }
  ensureValidImageTypesIsMutable();
      validImageTypes_.set(index, value);
      onChanged();
      return this;
    }
    /**
     * <pre>
     * List of valid image types.
     * </pre>
     *
     * <code>repeated string valid_image_types = 5;</code>
     */
    public Builder addValidImageTypes(
        java.lang.String value) {
      if (value == null) {
    throw new NullPointerException();
  }
  ensureValidImageTypesIsMutable();
      validImageTypes_.add(value);
      onChanged();
      return this;
    }
    /**
     * <pre>
     * List of valid image types.
     * </pre>
     *
     * <code>repeated string valid_image_types = 5;</code>
     */
    public Builder addAllValidImageTypes(
        java.lang.Iterable<java.lang.String> values) {
      ensureValidImageTypesIsMutable();
      com.google.protobuf.AbstractMessageLite.Builder.addAll(
          values, validImageTypes_);
      onChanged();
      return this;
    }
    /**
     * <pre>
     * List of valid image types.
     * </pre>
     *
     * <code>repeated string valid_image_types = 5;</code>
     */
    public Builder clearValidImageTypes() {
      validImageTypes_ = com.google.protobuf.LazyStringArrayList.EMPTY;
      bitField0_ = (bitField0_ & ~0x00000008);
      onChanged();
      return this;
    }
    /**
     * <pre>
     * List of valid image types.
     * </pre>
     *
     * <code>repeated string valid_image_types = 5;</code>
     */
    public Builder addValidImageTypesBytes(
        com.google.protobuf.ByteString value) {
      if (value == null) {
    throw new NullPointerException();
  }
  checkByteStringIsUtf8(value);
      ensureValidImageTypesIsMutable();
      validImageTypes_.add(value);
      onChanged();
      return this;
    }

    private com.google.protobuf.LazyStringList validMasterVersions_ = com.google.protobuf.LazyStringArrayList.EMPTY;
    private void ensureValidMasterVersionsIsMutable() {
      if (!((bitField0_ & 0x00000010) == 0x00000010)) {
        validMasterVersions_ = new com.google.protobuf.LazyStringArrayList(validMasterVersions_);
        bitField0_ |= 0x00000010;
       }
    }
    /**
     * <pre>
     * List of valid master versions.
     * </pre>
     *
     * <code>repeated string valid_master_versions = 6;</code>
     */
    public com.google.protobuf.ProtocolStringList
        getValidMasterVersionsList() {
      return validMasterVersions_.getUnmodifiableView();
    }
    /**
     * <pre>
     * List of valid master versions.
     * </pre>
     *
     * <code>repeated string valid_master_versions = 6;</code>
     */
    public int getValidMasterVersionsCount() {
      return validMasterVersions_.size();
    }
    /**
     * <pre>
     * List of valid master versions.
     * </pre>
     *
     * <code>repeated string valid_master_versions = 6;</code>
     */
    public java.lang.String getValidMasterVersions(int index) {
      return validMasterVersions_.get(index);
    }
    /**
     * <pre>
     * List of valid master versions.
     * </pre>
     *
     * <code>repeated string valid_master_versions = 6;</code>
     */
    public com.google.protobuf.ByteString
        getValidMasterVersionsBytes(int index) {
      return validMasterVersions_.getByteString(index);
    }
    /**
     * <pre>
     * List of valid master versions.
     * </pre>
     *
     * <code>repeated string valid_master_versions = 6;</code>
     */
    public Builder setValidMasterVersions(
        int index, java.lang.String value) {
      if (value == null) {
    throw new NullPointerException();
  }
  ensureValidMasterVersionsIsMutable();
      validMasterVersions_.set(index, value);
      onChanged();
      return this;
    }
    /**
     * <pre>
     * List of valid master versions.
     * </pre>
     *
     * <code>repeated string valid_master_versions = 6;</code>
     */
    public Builder addValidMasterVersions(
        java.lang.String value) {
      if (value == null) {
    throw new NullPointerException();
  }
  ensureValidMasterVersionsIsMutable();
      validMasterVersions_.add(value);
      onChanged();
      return this;
    }
    /**
     * <pre>
     * List of valid master versions.
     * </pre>
     *
     * <code>repeated string valid_master_versions = 6;</code>
     */
    public Builder addAllValidMasterVersions(
        java.lang.Iterable<java.lang.String> values) {
      ensureValidMasterVersionsIsMutable();
      com.google.protobuf.AbstractMessageLite.Builder.addAll(
          values, validMasterVersions_);
      onChanged();
      return this;
    }
    /**
     * <pre>
     * List of valid master versions.
     * </pre>
     *
     * <code>repeated string valid_master_versions = 6;</code>
     */
    public Builder clearValidMasterVersions() {
      validMasterVersions_ = com.google.protobuf.LazyStringArrayList.EMPTY;
      bitField0_ = (bitField0_ & ~0x00000010);
      onChanged();
      return this;
    }
    /**
     * <pre>
     * List of valid master versions.
     * </pre>
     *
     * <code>repeated string valid_master_versions = 6;</code>
     */
    public Builder addValidMasterVersionsBytes(
        com.google.protobuf.ByteString value) {
      if (value == null) {
    throw new NullPointerException();
  }
  checkByteStringIsUtf8(value);
      ensureValidMasterVersionsIsMutable();
      validMasterVersions_.add(value);
      onChanged();
      return this;
    }
    public final Builder setUnknownFields(
        final com.google.protobuf.UnknownFieldSet unknownFields) {
      return super.setUnknownFieldsProto3(unknownFields);
    }

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


    // @@protoc_insertion_point(builder_scope:google.container.v1.ServerConfig)
  }

  // @@protoc_insertion_point(class_scope:google.container.v1.ServerConfig)
  private static final com.google.container.v1.ServerConfig DEFAULT_INSTANCE;
  static {
    DEFAULT_INSTANCE = new com.google.container.v1.ServerConfig();
  }

  public static com.google.container.v1.ServerConfig getDefaultInstance() {
    return DEFAULT_INSTANCE;
  }

  private static final com.google.protobuf.Parser<ServerConfig>
      PARSER = new com.google.protobuf.AbstractParser<ServerConfig>() {
    public ServerConfig parsePartialFrom(
        com.google.protobuf.CodedInputStream input,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return new ServerConfig(input, extensionRegistry);
    }
  };

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

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

  public com.google.container.v1.ServerConfig getDefaultInstanceForType() {
    return DEFAULT_INSTANCE;
  }

}

