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

package com.google.container.v1;

/**
 * <pre>
 * Configuration for the addons that can be automatically spun up in the
 * cluster, enabling additional functionality.
 * </pre>
 *
 * Protobuf type {@code google.container.v1.AddonsConfig}
 */
public  final class AddonsConfig extends
    com.google.protobuf.GeneratedMessageV3 implements
    // @@protoc_insertion_point(message_implements:google.container.v1.AddonsConfig)
    AddonsConfigOrBuilder {
private static final long serialVersionUID = 0L;
  // Use AddonsConfig.newBuilder() to construct.
  private AddonsConfig(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {
    super(builder);
  }
  private AddonsConfig() {
  }

  @java.lang.Override
  public final com.google.protobuf.UnknownFieldSet
  getUnknownFields() {
    return this.unknownFields;
  }
  private AddonsConfig(
      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: {
            com.google.container.v1.HttpLoadBalancing.Builder subBuilder = null;
            if (httpLoadBalancing_ != null) {
              subBuilder = httpLoadBalancing_.toBuilder();
            }
            httpLoadBalancing_ = input.readMessage(com.google.container.v1.HttpLoadBalancing.parser(), extensionRegistry);
            if (subBuilder != null) {
              subBuilder.mergeFrom(httpLoadBalancing_);
              httpLoadBalancing_ = subBuilder.buildPartial();
            }

            break;
          }
          case 18: {
            com.google.container.v1.HorizontalPodAutoscaling.Builder subBuilder = null;
            if (horizontalPodAutoscaling_ != null) {
              subBuilder = horizontalPodAutoscaling_.toBuilder();
            }
            horizontalPodAutoscaling_ = input.readMessage(com.google.container.v1.HorizontalPodAutoscaling.parser(), extensionRegistry);
            if (subBuilder != null) {
              subBuilder.mergeFrom(horizontalPodAutoscaling_);
              horizontalPodAutoscaling_ = subBuilder.buildPartial();
            }

            break;
          }
          case 26: {
            com.google.container.v1.KubernetesDashboard.Builder subBuilder = null;
            if (kubernetesDashboard_ != null) {
              subBuilder = kubernetesDashboard_.toBuilder();
            }
            kubernetesDashboard_ = input.readMessage(com.google.container.v1.KubernetesDashboard.parser(), extensionRegistry);
            if (subBuilder != null) {
              subBuilder.mergeFrom(kubernetesDashboard_);
              kubernetesDashboard_ = subBuilder.buildPartial();
            }

            break;
          }
          case 34: {
            com.google.container.v1.NetworkPolicyConfig.Builder subBuilder = null;
            if (networkPolicyConfig_ != null) {
              subBuilder = networkPolicyConfig_.toBuilder();
            }
            networkPolicyConfig_ = input.readMessage(com.google.container.v1.NetworkPolicyConfig.parser(), extensionRegistry);
            if (subBuilder != null) {
              subBuilder.mergeFrom(networkPolicyConfig_);
              networkPolicyConfig_ = subBuilder.buildPartial();
            }

            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 {
      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_AddonsConfig_descriptor;
  }

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

  public static final int HTTP_LOAD_BALANCING_FIELD_NUMBER = 1;
  private com.google.container.v1.HttpLoadBalancing httpLoadBalancing_;
  /**
   * <pre>
   * Configuration for the HTTP (L7) load balancing controller addon, which
   * makes it easy to set up HTTP load balancers for services in a cluster.
   * </pre>
   *
   * <code>.google.container.v1.HttpLoadBalancing http_load_balancing = 1;</code>
   */
  public boolean hasHttpLoadBalancing() {
    return httpLoadBalancing_ != null;
  }
  /**
   * <pre>
   * Configuration for the HTTP (L7) load balancing controller addon, which
   * makes it easy to set up HTTP load balancers for services in a cluster.
   * </pre>
   *
   * <code>.google.container.v1.HttpLoadBalancing http_load_balancing = 1;</code>
   */
  public com.google.container.v1.HttpLoadBalancing getHttpLoadBalancing() {
    return httpLoadBalancing_ == null ? com.google.container.v1.HttpLoadBalancing.getDefaultInstance() : httpLoadBalancing_;
  }
  /**
   * <pre>
   * Configuration for the HTTP (L7) load balancing controller addon, which
   * makes it easy to set up HTTP load balancers for services in a cluster.
   * </pre>
   *
   * <code>.google.container.v1.HttpLoadBalancing http_load_balancing = 1;</code>
   */
  public com.google.container.v1.HttpLoadBalancingOrBuilder getHttpLoadBalancingOrBuilder() {
    return getHttpLoadBalancing();
  }

  public static final int HORIZONTAL_POD_AUTOSCALING_FIELD_NUMBER = 2;
  private com.google.container.v1.HorizontalPodAutoscaling horizontalPodAutoscaling_;
  /**
   * <pre>
   * Configuration for the horizontal pod autoscaling feature, which
   * increases or decreases the number of replica pods a replication controller
   * has based on the resource usage of the existing pods.
   * </pre>
   *
   * <code>.google.container.v1.HorizontalPodAutoscaling horizontal_pod_autoscaling = 2;</code>
   */
  public boolean hasHorizontalPodAutoscaling() {
    return horizontalPodAutoscaling_ != null;
  }
  /**
   * <pre>
   * Configuration for the horizontal pod autoscaling feature, which
   * increases or decreases the number of replica pods a replication controller
   * has based on the resource usage of the existing pods.
   * </pre>
   *
   * <code>.google.container.v1.HorizontalPodAutoscaling horizontal_pod_autoscaling = 2;</code>
   */
  public com.google.container.v1.HorizontalPodAutoscaling getHorizontalPodAutoscaling() {
    return horizontalPodAutoscaling_ == null ? com.google.container.v1.HorizontalPodAutoscaling.getDefaultInstance() : horizontalPodAutoscaling_;
  }
  /**
   * <pre>
   * Configuration for the horizontal pod autoscaling feature, which
   * increases or decreases the number of replica pods a replication controller
   * has based on the resource usage of the existing pods.
   * </pre>
   *
   * <code>.google.container.v1.HorizontalPodAutoscaling horizontal_pod_autoscaling = 2;</code>
   */
  public com.google.container.v1.HorizontalPodAutoscalingOrBuilder getHorizontalPodAutoscalingOrBuilder() {
    return getHorizontalPodAutoscaling();
  }

  public static final int KUBERNETES_DASHBOARD_FIELD_NUMBER = 3;
  private com.google.container.v1.KubernetesDashboard kubernetesDashboard_;
  /**
   * <pre>
   * Configuration for the Kubernetes Dashboard.
   * </pre>
   *
   * <code>.google.container.v1.KubernetesDashboard kubernetes_dashboard = 3;</code>
   */
  public boolean hasKubernetesDashboard() {
    return kubernetesDashboard_ != null;
  }
  /**
   * <pre>
   * Configuration for the Kubernetes Dashboard.
   * </pre>
   *
   * <code>.google.container.v1.KubernetesDashboard kubernetes_dashboard = 3;</code>
   */
  public com.google.container.v1.KubernetesDashboard getKubernetesDashboard() {
    return kubernetesDashboard_ == null ? com.google.container.v1.KubernetesDashboard.getDefaultInstance() : kubernetesDashboard_;
  }
  /**
   * <pre>
   * Configuration for the Kubernetes Dashboard.
   * </pre>
   *
   * <code>.google.container.v1.KubernetesDashboard kubernetes_dashboard = 3;</code>
   */
  public com.google.container.v1.KubernetesDashboardOrBuilder getKubernetesDashboardOrBuilder() {
    return getKubernetesDashboard();
  }

  public static final int NETWORK_POLICY_CONFIG_FIELD_NUMBER = 4;
  private com.google.container.v1.NetworkPolicyConfig networkPolicyConfig_;
  /**
   * <pre>
   * Configuration for NetworkPolicy. This only tracks whether the addon
   * is enabled or not on the Master, it does not track whether network policy
   * is enabled for the nodes.
   * </pre>
   *
   * <code>.google.container.v1.NetworkPolicyConfig network_policy_config = 4;</code>
   */
  public boolean hasNetworkPolicyConfig() {
    return networkPolicyConfig_ != null;
  }
  /**
   * <pre>
   * Configuration for NetworkPolicy. This only tracks whether the addon
   * is enabled or not on the Master, it does not track whether network policy
   * is enabled for the nodes.
   * </pre>
   *
   * <code>.google.container.v1.NetworkPolicyConfig network_policy_config = 4;</code>
   */
  public com.google.container.v1.NetworkPolicyConfig getNetworkPolicyConfig() {
    return networkPolicyConfig_ == null ? com.google.container.v1.NetworkPolicyConfig.getDefaultInstance() : networkPolicyConfig_;
  }
  /**
   * <pre>
   * Configuration for NetworkPolicy. This only tracks whether the addon
   * is enabled or not on the Master, it does not track whether network policy
   * is enabled for the nodes.
   * </pre>
   *
   * <code>.google.container.v1.NetworkPolicyConfig network_policy_config = 4;</code>
   */
  public com.google.container.v1.NetworkPolicyConfigOrBuilder getNetworkPolicyConfigOrBuilder() {
    return getNetworkPolicyConfig();
  }

  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 (httpLoadBalancing_ != null) {
      output.writeMessage(1, getHttpLoadBalancing());
    }
    if (horizontalPodAutoscaling_ != null) {
      output.writeMessage(2, getHorizontalPodAutoscaling());
    }
    if (kubernetesDashboard_ != null) {
      output.writeMessage(3, getKubernetesDashboard());
    }
    if (networkPolicyConfig_ != null) {
      output.writeMessage(4, getNetworkPolicyConfig());
    }
    unknownFields.writeTo(output);
  }

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

    size = 0;
    if (httpLoadBalancing_ != null) {
      size += com.google.protobuf.CodedOutputStream
        .computeMessageSize(1, getHttpLoadBalancing());
    }
    if (horizontalPodAutoscaling_ != null) {
      size += com.google.protobuf.CodedOutputStream
        .computeMessageSize(2, getHorizontalPodAutoscaling());
    }
    if (kubernetesDashboard_ != null) {
      size += com.google.protobuf.CodedOutputStream
        .computeMessageSize(3, getKubernetesDashboard());
    }
    if (networkPolicyConfig_ != null) {
      size += com.google.protobuf.CodedOutputStream
        .computeMessageSize(4, getNetworkPolicyConfig());
    }
    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.AddonsConfig)) {
      return super.equals(obj);
    }
    com.google.container.v1.AddonsConfig other = (com.google.container.v1.AddonsConfig) obj;

    boolean result = true;
    result = result && (hasHttpLoadBalancing() == other.hasHttpLoadBalancing());
    if (hasHttpLoadBalancing()) {
      result = result && getHttpLoadBalancing()
          .equals(other.getHttpLoadBalancing());
    }
    result = result && (hasHorizontalPodAutoscaling() == other.hasHorizontalPodAutoscaling());
    if (hasHorizontalPodAutoscaling()) {
      result = result && getHorizontalPodAutoscaling()
          .equals(other.getHorizontalPodAutoscaling());
    }
    result = result && (hasKubernetesDashboard() == other.hasKubernetesDashboard());
    if (hasKubernetesDashboard()) {
      result = result && getKubernetesDashboard()
          .equals(other.getKubernetesDashboard());
    }
    result = result && (hasNetworkPolicyConfig() == other.hasNetworkPolicyConfig());
    if (hasNetworkPolicyConfig()) {
      result = result && getNetworkPolicyConfig()
          .equals(other.getNetworkPolicyConfig());
    }
    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();
    if (hasHttpLoadBalancing()) {
      hash = (37 * hash) + HTTP_LOAD_BALANCING_FIELD_NUMBER;
      hash = (53 * hash) + getHttpLoadBalancing().hashCode();
    }
    if (hasHorizontalPodAutoscaling()) {
      hash = (37 * hash) + HORIZONTAL_POD_AUTOSCALING_FIELD_NUMBER;
      hash = (53 * hash) + getHorizontalPodAutoscaling().hashCode();
    }
    if (hasKubernetesDashboard()) {
      hash = (37 * hash) + KUBERNETES_DASHBOARD_FIELD_NUMBER;
      hash = (53 * hash) + getKubernetesDashboard().hashCode();
    }
    if (hasNetworkPolicyConfig()) {
      hash = (37 * hash) + NETWORK_POLICY_CONFIG_FIELD_NUMBER;
      hash = (53 * hash) + getNetworkPolicyConfig().hashCode();
    }
    hash = (29 * hash) + unknownFields.hashCode();
    memoizedHashCode = hash;
    return hash;
  }

  public static com.google.container.v1.AddonsConfig parseFrom(
      java.nio.ByteBuffer data)
      throws com.google.protobuf.InvalidProtocolBufferException {
    return PARSER.parseFrom(data);
  }
  public static com.google.container.v1.AddonsConfig 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.AddonsConfig parseFrom(
      com.google.protobuf.ByteString data)
      throws com.google.protobuf.InvalidProtocolBufferException {
    return PARSER.parseFrom(data);
  }
  public static com.google.container.v1.AddonsConfig 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.AddonsConfig parseFrom(byte[] data)
      throws com.google.protobuf.InvalidProtocolBufferException {
    return PARSER.parseFrom(data);
  }
  public static com.google.container.v1.AddonsConfig parseFrom(
      byte[] data,
      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
      throws com.google.protobuf.InvalidProtocolBufferException {
    return PARSER.parseFrom(data, extensionRegistry);
  }
  public static com.google.container.v1.AddonsConfig parseFrom(java.io.InputStream input)
      throws java.io.IOException {
    return com.google.protobuf.GeneratedMessageV3
        .parseWithIOException(PARSER, input);
  }
  public static com.google.container.v1.AddonsConfig 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.AddonsConfig parseDelimitedFrom(java.io.InputStream input)
      throws java.io.IOException {
    return com.google.protobuf.GeneratedMessageV3
        .parseDelimitedWithIOException(PARSER, input);
  }
  public static com.google.container.v1.AddonsConfig 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.AddonsConfig parseFrom(
      com.google.protobuf.CodedInputStream input)
      throws java.io.IOException {
    return com.google.protobuf.GeneratedMessageV3
        .parseWithIOException(PARSER, input);
  }
  public static com.google.container.v1.AddonsConfig 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.AddonsConfig 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>
   * Configuration for the addons that can be automatically spun up in the
   * cluster, enabling additional functionality.
   * </pre>
   *
   * Protobuf type {@code google.container.v1.AddonsConfig}
   */
  public static final class Builder extends
      com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements
      // @@protoc_insertion_point(builder_implements:google.container.v1.AddonsConfig)
      com.google.container.v1.AddonsConfigOrBuilder {
    public static final com.google.protobuf.Descriptors.Descriptor
        getDescriptor() {
      return com.google.container.v1.ClusterServiceProto.internal_static_google_container_v1_AddonsConfig_descriptor;
    }

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

    // Construct using com.google.container.v1.AddonsConfig.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();
      if (httpLoadBalancingBuilder_ == null) {
        httpLoadBalancing_ = null;
      } else {
        httpLoadBalancing_ = null;
        httpLoadBalancingBuilder_ = null;
      }
      if (horizontalPodAutoscalingBuilder_ == null) {
        horizontalPodAutoscaling_ = null;
      } else {
        horizontalPodAutoscaling_ = null;
        horizontalPodAutoscalingBuilder_ = null;
      }
      if (kubernetesDashboardBuilder_ == null) {
        kubernetesDashboard_ = null;
      } else {
        kubernetesDashboard_ = null;
        kubernetesDashboardBuilder_ = null;
      }
      if (networkPolicyConfigBuilder_ == null) {
        networkPolicyConfig_ = null;
      } else {
        networkPolicyConfig_ = null;
        networkPolicyConfigBuilder_ = null;
      }
      return this;
    }

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

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

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

    public com.google.container.v1.AddonsConfig buildPartial() {
      com.google.container.v1.AddonsConfig result = new com.google.container.v1.AddonsConfig(this);
      if (httpLoadBalancingBuilder_ == null) {
        result.httpLoadBalancing_ = httpLoadBalancing_;
      } else {
        result.httpLoadBalancing_ = httpLoadBalancingBuilder_.build();
      }
      if (horizontalPodAutoscalingBuilder_ == null) {
        result.horizontalPodAutoscaling_ = horizontalPodAutoscaling_;
      } else {
        result.horizontalPodAutoscaling_ = horizontalPodAutoscalingBuilder_.build();
      }
      if (kubernetesDashboardBuilder_ == null) {
        result.kubernetesDashboard_ = kubernetesDashboard_;
      } else {
        result.kubernetesDashboard_ = kubernetesDashboardBuilder_.build();
      }
      if (networkPolicyConfigBuilder_ == null) {
        result.networkPolicyConfig_ = networkPolicyConfig_;
      } else {
        result.networkPolicyConfig_ = networkPolicyConfigBuilder_.build();
      }
      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.AddonsConfig) {
        return mergeFrom((com.google.container.v1.AddonsConfig)other);
      } else {
        super.mergeFrom(other);
        return this;
      }
    }

    public Builder mergeFrom(com.google.container.v1.AddonsConfig other) {
      if (other == com.google.container.v1.AddonsConfig.getDefaultInstance()) return this;
      if (other.hasHttpLoadBalancing()) {
        mergeHttpLoadBalancing(other.getHttpLoadBalancing());
      }
      if (other.hasHorizontalPodAutoscaling()) {
        mergeHorizontalPodAutoscaling(other.getHorizontalPodAutoscaling());
      }
      if (other.hasKubernetesDashboard()) {
        mergeKubernetesDashboard(other.getKubernetesDashboard());
      }
      if (other.hasNetworkPolicyConfig()) {
        mergeNetworkPolicyConfig(other.getNetworkPolicyConfig());
      }
      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.AddonsConfig parsedMessage = null;
      try {
        parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
      } catch (com.google.protobuf.InvalidProtocolBufferException e) {
        parsedMessage = (com.google.container.v1.AddonsConfig) e.getUnfinishedMessage();
        throw e.unwrapIOException();
      } finally {
        if (parsedMessage != null) {
          mergeFrom(parsedMessage);
        }
      }
      return this;
    }

    private com.google.container.v1.HttpLoadBalancing httpLoadBalancing_ = null;
    private com.google.protobuf.SingleFieldBuilderV3<
        com.google.container.v1.HttpLoadBalancing, com.google.container.v1.HttpLoadBalancing.Builder, com.google.container.v1.HttpLoadBalancingOrBuilder> httpLoadBalancingBuilder_;
    /**
     * <pre>
     * Configuration for the HTTP (L7) load balancing controller addon, which
     * makes it easy to set up HTTP load balancers for services in a cluster.
     * </pre>
     *
     * <code>.google.container.v1.HttpLoadBalancing http_load_balancing = 1;</code>
     */
    public boolean hasHttpLoadBalancing() {
      return httpLoadBalancingBuilder_ != null || httpLoadBalancing_ != null;
    }
    /**
     * <pre>
     * Configuration for the HTTP (L7) load balancing controller addon, which
     * makes it easy to set up HTTP load balancers for services in a cluster.
     * </pre>
     *
     * <code>.google.container.v1.HttpLoadBalancing http_load_balancing = 1;</code>
     */
    public com.google.container.v1.HttpLoadBalancing getHttpLoadBalancing() {
      if (httpLoadBalancingBuilder_ == null) {
        return httpLoadBalancing_ == null ? com.google.container.v1.HttpLoadBalancing.getDefaultInstance() : httpLoadBalancing_;
      } else {
        return httpLoadBalancingBuilder_.getMessage();
      }
    }
    /**
     * <pre>
     * Configuration for the HTTP (L7) load balancing controller addon, which
     * makes it easy to set up HTTP load balancers for services in a cluster.
     * </pre>
     *
     * <code>.google.container.v1.HttpLoadBalancing http_load_balancing = 1;</code>
     */
    public Builder setHttpLoadBalancing(com.google.container.v1.HttpLoadBalancing value) {
      if (httpLoadBalancingBuilder_ == null) {
        if (value == null) {
          throw new NullPointerException();
        }
        httpLoadBalancing_ = value;
        onChanged();
      } else {
        httpLoadBalancingBuilder_.setMessage(value);
      }

      return this;
    }
    /**
     * <pre>
     * Configuration for the HTTP (L7) load balancing controller addon, which
     * makes it easy to set up HTTP load balancers for services in a cluster.
     * </pre>
     *
     * <code>.google.container.v1.HttpLoadBalancing http_load_balancing = 1;</code>
     */
    public Builder setHttpLoadBalancing(
        com.google.container.v1.HttpLoadBalancing.Builder builderForValue) {
      if (httpLoadBalancingBuilder_ == null) {
        httpLoadBalancing_ = builderForValue.build();
        onChanged();
      } else {
        httpLoadBalancingBuilder_.setMessage(builderForValue.build());
      }

      return this;
    }
    /**
     * <pre>
     * Configuration for the HTTP (L7) load balancing controller addon, which
     * makes it easy to set up HTTP load balancers for services in a cluster.
     * </pre>
     *
     * <code>.google.container.v1.HttpLoadBalancing http_load_balancing = 1;</code>
     */
    public Builder mergeHttpLoadBalancing(com.google.container.v1.HttpLoadBalancing value) {
      if (httpLoadBalancingBuilder_ == null) {
        if (httpLoadBalancing_ != null) {
          httpLoadBalancing_ =
            com.google.container.v1.HttpLoadBalancing.newBuilder(httpLoadBalancing_).mergeFrom(value).buildPartial();
        } else {
          httpLoadBalancing_ = value;
        }
        onChanged();
      } else {
        httpLoadBalancingBuilder_.mergeFrom(value);
      }

      return this;
    }
    /**
     * <pre>
     * Configuration for the HTTP (L7) load balancing controller addon, which
     * makes it easy to set up HTTP load balancers for services in a cluster.
     * </pre>
     *
     * <code>.google.container.v1.HttpLoadBalancing http_load_balancing = 1;</code>
     */
    public Builder clearHttpLoadBalancing() {
      if (httpLoadBalancingBuilder_ == null) {
        httpLoadBalancing_ = null;
        onChanged();
      } else {
        httpLoadBalancing_ = null;
        httpLoadBalancingBuilder_ = null;
      }

      return this;
    }
    /**
     * <pre>
     * Configuration for the HTTP (L7) load balancing controller addon, which
     * makes it easy to set up HTTP load balancers for services in a cluster.
     * </pre>
     *
     * <code>.google.container.v1.HttpLoadBalancing http_load_balancing = 1;</code>
     */
    public com.google.container.v1.HttpLoadBalancing.Builder getHttpLoadBalancingBuilder() {
      
      onChanged();
      return getHttpLoadBalancingFieldBuilder().getBuilder();
    }
    /**
     * <pre>
     * Configuration for the HTTP (L7) load balancing controller addon, which
     * makes it easy to set up HTTP load balancers for services in a cluster.
     * </pre>
     *
     * <code>.google.container.v1.HttpLoadBalancing http_load_balancing = 1;</code>
     */
    public com.google.container.v1.HttpLoadBalancingOrBuilder getHttpLoadBalancingOrBuilder() {
      if (httpLoadBalancingBuilder_ != null) {
        return httpLoadBalancingBuilder_.getMessageOrBuilder();
      } else {
        return httpLoadBalancing_ == null ?
            com.google.container.v1.HttpLoadBalancing.getDefaultInstance() : httpLoadBalancing_;
      }
    }
    /**
     * <pre>
     * Configuration for the HTTP (L7) load balancing controller addon, which
     * makes it easy to set up HTTP load balancers for services in a cluster.
     * </pre>
     *
     * <code>.google.container.v1.HttpLoadBalancing http_load_balancing = 1;</code>
     */
    private com.google.protobuf.SingleFieldBuilderV3<
        com.google.container.v1.HttpLoadBalancing, com.google.container.v1.HttpLoadBalancing.Builder, com.google.container.v1.HttpLoadBalancingOrBuilder> 
        getHttpLoadBalancingFieldBuilder() {
      if (httpLoadBalancingBuilder_ == null) {
        httpLoadBalancingBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
            com.google.container.v1.HttpLoadBalancing, com.google.container.v1.HttpLoadBalancing.Builder, com.google.container.v1.HttpLoadBalancingOrBuilder>(
                getHttpLoadBalancing(),
                getParentForChildren(),
                isClean());
        httpLoadBalancing_ = null;
      }
      return httpLoadBalancingBuilder_;
    }

    private com.google.container.v1.HorizontalPodAutoscaling horizontalPodAutoscaling_ = null;
    private com.google.protobuf.SingleFieldBuilderV3<
        com.google.container.v1.HorizontalPodAutoscaling, com.google.container.v1.HorizontalPodAutoscaling.Builder, com.google.container.v1.HorizontalPodAutoscalingOrBuilder> horizontalPodAutoscalingBuilder_;
    /**
     * <pre>
     * Configuration for the horizontal pod autoscaling feature, which
     * increases or decreases the number of replica pods a replication controller
     * has based on the resource usage of the existing pods.
     * </pre>
     *
     * <code>.google.container.v1.HorizontalPodAutoscaling horizontal_pod_autoscaling = 2;</code>
     */
    public boolean hasHorizontalPodAutoscaling() {
      return horizontalPodAutoscalingBuilder_ != null || horizontalPodAutoscaling_ != null;
    }
    /**
     * <pre>
     * Configuration for the horizontal pod autoscaling feature, which
     * increases or decreases the number of replica pods a replication controller
     * has based on the resource usage of the existing pods.
     * </pre>
     *
     * <code>.google.container.v1.HorizontalPodAutoscaling horizontal_pod_autoscaling = 2;</code>
     */
    public com.google.container.v1.HorizontalPodAutoscaling getHorizontalPodAutoscaling() {
      if (horizontalPodAutoscalingBuilder_ == null) {
        return horizontalPodAutoscaling_ == null ? com.google.container.v1.HorizontalPodAutoscaling.getDefaultInstance() : horizontalPodAutoscaling_;
      } else {
        return horizontalPodAutoscalingBuilder_.getMessage();
      }
    }
    /**
     * <pre>
     * Configuration for the horizontal pod autoscaling feature, which
     * increases or decreases the number of replica pods a replication controller
     * has based on the resource usage of the existing pods.
     * </pre>
     *
     * <code>.google.container.v1.HorizontalPodAutoscaling horizontal_pod_autoscaling = 2;</code>
     */
    public Builder setHorizontalPodAutoscaling(com.google.container.v1.HorizontalPodAutoscaling value) {
      if (horizontalPodAutoscalingBuilder_ == null) {
        if (value == null) {
          throw new NullPointerException();
        }
        horizontalPodAutoscaling_ = value;
        onChanged();
      } else {
        horizontalPodAutoscalingBuilder_.setMessage(value);
      }

      return this;
    }
    /**
     * <pre>
     * Configuration for the horizontal pod autoscaling feature, which
     * increases or decreases the number of replica pods a replication controller
     * has based on the resource usage of the existing pods.
     * </pre>
     *
     * <code>.google.container.v1.HorizontalPodAutoscaling horizontal_pod_autoscaling = 2;</code>
     */
    public Builder setHorizontalPodAutoscaling(
        com.google.container.v1.HorizontalPodAutoscaling.Builder builderForValue) {
      if (horizontalPodAutoscalingBuilder_ == null) {
        horizontalPodAutoscaling_ = builderForValue.build();
        onChanged();
      } else {
        horizontalPodAutoscalingBuilder_.setMessage(builderForValue.build());
      }

      return this;
    }
    /**
     * <pre>
     * Configuration for the horizontal pod autoscaling feature, which
     * increases or decreases the number of replica pods a replication controller
     * has based on the resource usage of the existing pods.
     * </pre>
     *
     * <code>.google.container.v1.HorizontalPodAutoscaling horizontal_pod_autoscaling = 2;</code>
     */
    public Builder mergeHorizontalPodAutoscaling(com.google.container.v1.HorizontalPodAutoscaling value) {
      if (horizontalPodAutoscalingBuilder_ == null) {
        if (horizontalPodAutoscaling_ != null) {
          horizontalPodAutoscaling_ =
            com.google.container.v1.HorizontalPodAutoscaling.newBuilder(horizontalPodAutoscaling_).mergeFrom(value).buildPartial();
        } else {
          horizontalPodAutoscaling_ = value;
        }
        onChanged();
      } else {
        horizontalPodAutoscalingBuilder_.mergeFrom(value);
      }

      return this;
    }
    /**
     * <pre>
     * Configuration for the horizontal pod autoscaling feature, which
     * increases or decreases the number of replica pods a replication controller
     * has based on the resource usage of the existing pods.
     * </pre>
     *
     * <code>.google.container.v1.HorizontalPodAutoscaling horizontal_pod_autoscaling = 2;</code>
     */
    public Builder clearHorizontalPodAutoscaling() {
      if (horizontalPodAutoscalingBuilder_ == null) {
        horizontalPodAutoscaling_ = null;
        onChanged();
      } else {
        horizontalPodAutoscaling_ = null;
        horizontalPodAutoscalingBuilder_ = null;
      }

      return this;
    }
    /**
     * <pre>
     * Configuration for the horizontal pod autoscaling feature, which
     * increases or decreases the number of replica pods a replication controller
     * has based on the resource usage of the existing pods.
     * </pre>
     *
     * <code>.google.container.v1.HorizontalPodAutoscaling horizontal_pod_autoscaling = 2;</code>
     */
    public com.google.container.v1.HorizontalPodAutoscaling.Builder getHorizontalPodAutoscalingBuilder() {
      
      onChanged();
      return getHorizontalPodAutoscalingFieldBuilder().getBuilder();
    }
    /**
     * <pre>
     * Configuration for the horizontal pod autoscaling feature, which
     * increases or decreases the number of replica pods a replication controller
     * has based on the resource usage of the existing pods.
     * </pre>
     *
     * <code>.google.container.v1.HorizontalPodAutoscaling horizontal_pod_autoscaling = 2;</code>
     */
    public com.google.container.v1.HorizontalPodAutoscalingOrBuilder getHorizontalPodAutoscalingOrBuilder() {
      if (horizontalPodAutoscalingBuilder_ != null) {
        return horizontalPodAutoscalingBuilder_.getMessageOrBuilder();
      } else {
        return horizontalPodAutoscaling_ == null ?
            com.google.container.v1.HorizontalPodAutoscaling.getDefaultInstance() : horizontalPodAutoscaling_;
      }
    }
    /**
     * <pre>
     * Configuration for the horizontal pod autoscaling feature, which
     * increases or decreases the number of replica pods a replication controller
     * has based on the resource usage of the existing pods.
     * </pre>
     *
     * <code>.google.container.v1.HorizontalPodAutoscaling horizontal_pod_autoscaling = 2;</code>
     */
    private com.google.protobuf.SingleFieldBuilderV3<
        com.google.container.v1.HorizontalPodAutoscaling, com.google.container.v1.HorizontalPodAutoscaling.Builder, com.google.container.v1.HorizontalPodAutoscalingOrBuilder> 
        getHorizontalPodAutoscalingFieldBuilder() {
      if (horizontalPodAutoscalingBuilder_ == null) {
        horizontalPodAutoscalingBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
            com.google.container.v1.HorizontalPodAutoscaling, com.google.container.v1.HorizontalPodAutoscaling.Builder, com.google.container.v1.HorizontalPodAutoscalingOrBuilder>(
                getHorizontalPodAutoscaling(),
                getParentForChildren(),
                isClean());
        horizontalPodAutoscaling_ = null;
      }
      return horizontalPodAutoscalingBuilder_;
    }

    private com.google.container.v1.KubernetesDashboard kubernetesDashboard_ = null;
    private com.google.protobuf.SingleFieldBuilderV3<
        com.google.container.v1.KubernetesDashboard, com.google.container.v1.KubernetesDashboard.Builder, com.google.container.v1.KubernetesDashboardOrBuilder> kubernetesDashboardBuilder_;
    /**
     * <pre>
     * Configuration for the Kubernetes Dashboard.
     * </pre>
     *
     * <code>.google.container.v1.KubernetesDashboard kubernetes_dashboard = 3;</code>
     */
    public boolean hasKubernetesDashboard() {
      return kubernetesDashboardBuilder_ != null || kubernetesDashboard_ != null;
    }
    /**
     * <pre>
     * Configuration for the Kubernetes Dashboard.
     * </pre>
     *
     * <code>.google.container.v1.KubernetesDashboard kubernetes_dashboard = 3;</code>
     */
    public com.google.container.v1.KubernetesDashboard getKubernetesDashboard() {
      if (kubernetesDashboardBuilder_ == null) {
        return kubernetesDashboard_ == null ? com.google.container.v1.KubernetesDashboard.getDefaultInstance() : kubernetesDashboard_;
      } else {
        return kubernetesDashboardBuilder_.getMessage();
      }
    }
    /**
     * <pre>
     * Configuration for the Kubernetes Dashboard.
     * </pre>
     *
     * <code>.google.container.v1.KubernetesDashboard kubernetes_dashboard = 3;</code>
     */
    public Builder setKubernetesDashboard(com.google.container.v1.KubernetesDashboard value) {
      if (kubernetesDashboardBuilder_ == null) {
        if (value == null) {
          throw new NullPointerException();
        }
        kubernetesDashboard_ = value;
        onChanged();
      } else {
        kubernetesDashboardBuilder_.setMessage(value);
      }

      return this;
    }
    /**
     * <pre>
     * Configuration for the Kubernetes Dashboard.
     * </pre>
     *
     * <code>.google.container.v1.KubernetesDashboard kubernetes_dashboard = 3;</code>
     */
    public Builder setKubernetesDashboard(
        com.google.container.v1.KubernetesDashboard.Builder builderForValue) {
      if (kubernetesDashboardBuilder_ == null) {
        kubernetesDashboard_ = builderForValue.build();
        onChanged();
      } else {
        kubernetesDashboardBuilder_.setMessage(builderForValue.build());
      }

      return this;
    }
    /**
     * <pre>
     * Configuration for the Kubernetes Dashboard.
     * </pre>
     *
     * <code>.google.container.v1.KubernetesDashboard kubernetes_dashboard = 3;</code>
     */
    public Builder mergeKubernetesDashboard(com.google.container.v1.KubernetesDashboard value) {
      if (kubernetesDashboardBuilder_ == null) {
        if (kubernetesDashboard_ != null) {
          kubernetesDashboard_ =
            com.google.container.v1.KubernetesDashboard.newBuilder(kubernetesDashboard_).mergeFrom(value).buildPartial();
        } else {
          kubernetesDashboard_ = value;
        }
        onChanged();
      } else {
        kubernetesDashboardBuilder_.mergeFrom(value);
      }

      return this;
    }
    /**
     * <pre>
     * Configuration for the Kubernetes Dashboard.
     * </pre>
     *
     * <code>.google.container.v1.KubernetesDashboard kubernetes_dashboard = 3;</code>
     */
    public Builder clearKubernetesDashboard() {
      if (kubernetesDashboardBuilder_ == null) {
        kubernetesDashboard_ = null;
        onChanged();
      } else {
        kubernetesDashboard_ = null;
        kubernetesDashboardBuilder_ = null;
      }

      return this;
    }
    /**
     * <pre>
     * Configuration for the Kubernetes Dashboard.
     * </pre>
     *
     * <code>.google.container.v1.KubernetesDashboard kubernetes_dashboard = 3;</code>
     */
    public com.google.container.v1.KubernetesDashboard.Builder getKubernetesDashboardBuilder() {
      
      onChanged();
      return getKubernetesDashboardFieldBuilder().getBuilder();
    }
    /**
     * <pre>
     * Configuration for the Kubernetes Dashboard.
     * </pre>
     *
     * <code>.google.container.v1.KubernetesDashboard kubernetes_dashboard = 3;</code>
     */
    public com.google.container.v1.KubernetesDashboardOrBuilder getKubernetesDashboardOrBuilder() {
      if (kubernetesDashboardBuilder_ != null) {
        return kubernetesDashboardBuilder_.getMessageOrBuilder();
      } else {
        return kubernetesDashboard_ == null ?
            com.google.container.v1.KubernetesDashboard.getDefaultInstance() : kubernetesDashboard_;
      }
    }
    /**
     * <pre>
     * Configuration for the Kubernetes Dashboard.
     * </pre>
     *
     * <code>.google.container.v1.KubernetesDashboard kubernetes_dashboard = 3;</code>
     */
    private com.google.protobuf.SingleFieldBuilderV3<
        com.google.container.v1.KubernetesDashboard, com.google.container.v1.KubernetesDashboard.Builder, com.google.container.v1.KubernetesDashboardOrBuilder> 
        getKubernetesDashboardFieldBuilder() {
      if (kubernetesDashboardBuilder_ == null) {
        kubernetesDashboardBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
            com.google.container.v1.KubernetesDashboard, com.google.container.v1.KubernetesDashboard.Builder, com.google.container.v1.KubernetesDashboardOrBuilder>(
                getKubernetesDashboard(),
                getParentForChildren(),
                isClean());
        kubernetesDashboard_ = null;
      }
      return kubernetesDashboardBuilder_;
    }

    private com.google.container.v1.NetworkPolicyConfig networkPolicyConfig_ = null;
    private com.google.protobuf.SingleFieldBuilderV3<
        com.google.container.v1.NetworkPolicyConfig, com.google.container.v1.NetworkPolicyConfig.Builder, com.google.container.v1.NetworkPolicyConfigOrBuilder> networkPolicyConfigBuilder_;
    /**
     * <pre>
     * Configuration for NetworkPolicy. This only tracks whether the addon
     * is enabled or not on the Master, it does not track whether network policy
     * is enabled for the nodes.
     * </pre>
     *
     * <code>.google.container.v1.NetworkPolicyConfig network_policy_config = 4;</code>
     */
    public boolean hasNetworkPolicyConfig() {
      return networkPolicyConfigBuilder_ != null || networkPolicyConfig_ != null;
    }
    /**
     * <pre>
     * Configuration for NetworkPolicy. This only tracks whether the addon
     * is enabled or not on the Master, it does not track whether network policy
     * is enabled for the nodes.
     * </pre>
     *
     * <code>.google.container.v1.NetworkPolicyConfig network_policy_config = 4;</code>
     */
    public com.google.container.v1.NetworkPolicyConfig getNetworkPolicyConfig() {
      if (networkPolicyConfigBuilder_ == null) {
        return networkPolicyConfig_ == null ? com.google.container.v1.NetworkPolicyConfig.getDefaultInstance() : networkPolicyConfig_;
      } else {
        return networkPolicyConfigBuilder_.getMessage();
      }
    }
    /**
     * <pre>
     * Configuration for NetworkPolicy. This only tracks whether the addon
     * is enabled or not on the Master, it does not track whether network policy
     * is enabled for the nodes.
     * </pre>
     *
     * <code>.google.container.v1.NetworkPolicyConfig network_policy_config = 4;</code>
     */
    public Builder setNetworkPolicyConfig(com.google.container.v1.NetworkPolicyConfig value) {
      if (networkPolicyConfigBuilder_ == null) {
        if (value == null) {
          throw new NullPointerException();
        }
        networkPolicyConfig_ = value;
        onChanged();
      } else {
        networkPolicyConfigBuilder_.setMessage(value);
      }

      return this;
    }
    /**
     * <pre>
     * Configuration for NetworkPolicy. This only tracks whether the addon
     * is enabled or not on the Master, it does not track whether network policy
     * is enabled for the nodes.
     * </pre>
     *
     * <code>.google.container.v1.NetworkPolicyConfig network_policy_config = 4;</code>
     */
    public Builder setNetworkPolicyConfig(
        com.google.container.v1.NetworkPolicyConfig.Builder builderForValue) {
      if (networkPolicyConfigBuilder_ == null) {
        networkPolicyConfig_ = builderForValue.build();
        onChanged();
      } else {
        networkPolicyConfigBuilder_.setMessage(builderForValue.build());
      }

      return this;
    }
    /**
     * <pre>
     * Configuration for NetworkPolicy. This only tracks whether the addon
     * is enabled or not on the Master, it does not track whether network policy
     * is enabled for the nodes.
     * </pre>
     *
     * <code>.google.container.v1.NetworkPolicyConfig network_policy_config = 4;</code>
     */
    public Builder mergeNetworkPolicyConfig(com.google.container.v1.NetworkPolicyConfig value) {
      if (networkPolicyConfigBuilder_ == null) {
        if (networkPolicyConfig_ != null) {
          networkPolicyConfig_ =
            com.google.container.v1.NetworkPolicyConfig.newBuilder(networkPolicyConfig_).mergeFrom(value).buildPartial();
        } else {
          networkPolicyConfig_ = value;
        }
        onChanged();
      } else {
        networkPolicyConfigBuilder_.mergeFrom(value);
      }

      return this;
    }
    /**
     * <pre>
     * Configuration for NetworkPolicy. This only tracks whether the addon
     * is enabled or not on the Master, it does not track whether network policy
     * is enabled for the nodes.
     * </pre>
     *
     * <code>.google.container.v1.NetworkPolicyConfig network_policy_config = 4;</code>
     */
    public Builder clearNetworkPolicyConfig() {
      if (networkPolicyConfigBuilder_ == null) {
        networkPolicyConfig_ = null;
        onChanged();
      } else {
        networkPolicyConfig_ = null;
        networkPolicyConfigBuilder_ = null;
      }

      return this;
    }
    /**
     * <pre>
     * Configuration for NetworkPolicy. This only tracks whether the addon
     * is enabled or not on the Master, it does not track whether network policy
     * is enabled for the nodes.
     * </pre>
     *
     * <code>.google.container.v1.NetworkPolicyConfig network_policy_config = 4;</code>
     */
    public com.google.container.v1.NetworkPolicyConfig.Builder getNetworkPolicyConfigBuilder() {
      
      onChanged();
      return getNetworkPolicyConfigFieldBuilder().getBuilder();
    }
    /**
     * <pre>
     * Configuration for NetworkPolicy. This only tracks whether the addon
     * is enabled or not on the Master, it does not track whether network policy
     * is enabled for the nodes.
     * </pre>
     *
     * <code>.google.container.v1.NetworkPolicyConfig network_policy_config = 4;</code>
     */
    public com.google.container.v1.NetworkPolicyConfigOrBuilder getNetworkPolicyConfigOrBuilder() {
      if (networkPolicyConfigBuilder_ != null) {
        return networkPolicyConfigBuilder_.getMessageOrBuilder();
      } else {
        return networkPolicyConfig_ == null ?
            com.google.container.v1.NetworkPolicyConfig.getDefaultInstance() : networkPolicyConfig_;
      }
    }
    /**
     * <pre>
     * Configuration for NetworkPolicy. This only tracks whether the addon
     * is enabled or not on the Master, it does not track whether network policy
     * is enabled for the nodes.
     * </pre>
     *
     * <code>.google.container.v1.NetworkPolicyConfig network_policy_config = 4;</code>
     */
    private com.google.protobuf.SingleFieldBuilderV3<
        com.google.container.v1.NetworkPolicyConfig, com.google.container.v1.NetworkPolicyConfig.Builder, com.google.container.v1.NetworkPolicyConfigOrBuilder> 
        getNetworkPolicyConfigFieldBuilder() {
      if (networkPolicyConfigBuilder_ == null) {
        networkPolicyConfigBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
            com.google.container.v1.NetworkPolicyConfig, com.google.container.v1.NetworkPolicyConfig.Builder, com.google.container.v1.NetworkPolicyConfigOrBuilder>(
                getNetworkPolicyConfig(),
                getParentForChildren(),
                isClean());
        networkPolicyConfig_ = null;
      }
      return networkPolicyConfigBuilder_;
    }
    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.AddonsConfig)
  }

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

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

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

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

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

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

}

