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

package com.google.cloud.security.privateca.v1beta1;

/**
 *
 *
 * <pre>
 * A [ReusableConfigValues][google.cloud.security.privateca.v1beta1.ReusableConfigValues] is used to describe certain fields of an
 * X.509 certificate, such as the key usage fields, fields specific to CA
 * certificates, certificate policy extensions and custom extensions.
 * </pre>
 *
 * Protobuf type {@code google.cloud.security.privateca.v1beta1.ReusableConfigValues}
 */
public final class ReusableConfigValues extends com.google.protobuf.GeneratedMessageV3
    implements
    // @@protoc_insertion_point(message_implements:google.cloud.security.privateca.v1beta1.ReusableConfigValues)
    ReusableConfigValuesOrBuilder {
  private static final long serialVersionUID = 0L;
  // Use ReusableConfigValues.newBuilder() to construct.
  private ReusableConfigValues(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {
    super(builder);
  }

  private ReusableConfigValues() {
    policyIds_ = java.util.Collections.emptyList();
    aiaOcspServers_ = com.google.protobuf.LazyStringArrayList.EMPTY;
    additionalExtensions_ = java.util.Collections.emptyList();
  }

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

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

  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
    return com.google.cloud.security.privateca.v1beta1.PrivateCaResourcesProto
        .internal_static_google_cloud_security_privateca_v1beta1_ReusableConfigValues_descriptor;
  }

  @java.lang.Override
  protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
      internalGetFieldAccessorTable() {
    return com.google.cloud.security.privateca.v1beta1.PrivateCaResourcesProto
        .internal_static_google_cloud_security_privateca_v1beta1_ReusableConfigValues_fieldAccessorTable
        .ensureFieldAccessorsInitialized(
            com.google.cloud.security.privateca.v1beta1.ReusableConfigValues.class,
            com.google.cloud.security.privateca.v1beta1.ReusableConfigValues.Builder.class);
  }

  public interface CaOptionsOrBuilder
      extends
      // @@protoc_insertion_point(interface_extends:google.cloud.security.privateca.v1beta1.ReusableConfigValues.CaOptions)
      com.google.protobuf.MessageOrBuilder {

    /**
     *
     *
     * <pre>
     * Optional. Refers to the "CA" X.509 extension, which is a boolean value. When this
     * value is missing, the extension will be omitted from the CA certificate.
     * </pre>
     *
     * <code>.google.protobuf.BoolValue is_ca = 1 [(.google.api.field_behavior) = OPTIONAL];</code>
     *
     * @return Whether the isCa field is set.
     */
    boolean hasIsCa();
    /**
     *
     *
     * <pre>
     * Optional. Refers to the "CA" X.509 extension, which is a boolean value. When this
     * value is missing, the extension will be omitted from the CA certificate.
     * </pre>
     *
     * <code>.google.protobuf.BoolValue is_ca = 1 [(.google.api.field_behavior) = OPTIONAL];</code>
     *
     * @return The isCa.
     */
    com.google.protobuf.BoolValue getIsCa();
    /**
     *
     *
     * <pre>
     * Optional. Refers to the "CA" X.509 extension, which is a boolean value. When this
     * value is missing, the extension will be omitted from the CA certificate.
     * </pre>
     *
     * <code>.google.protobuf.BoolValue is_ca = 1 [(.google.api.field_behavior) = OPTIONAL];</code>
     */
    com.google.protobuf.BoolValueOrBuilder getIsCaOrBuilder();

    /**
     *
     *
     * <pre>
     * Optional. Refers to the path length restriction X.509 extension. For a CA
     * certificate, this value describes the depth of subordinate CA
     * certificates that are allowed.
     * If this value is less than 0, the request will fail.
     * If this value is missing, the max path length will be omitted from the
     * CA certificate.
     * </pre>
     *
     * <code>
     * .google.protobuf.Int32Value max_issuer_path_length = 2 [(.google.api.field_behavior) = OPTIONAL];
     * </code>
     *
     * @return Whether the maxIssuerPathLength field is set.
     */
    boolean hasMaxIssuerPathLength();
    /**
     *
     *
     * <pre>
     * Optional. Refers to the path length restriction X.509 extension. For a CA
     * certificate, this value describes the depth of subordinate CA
     * certificates that are allowed.
     * If this value is less than 0, the request will fail.
     * If this value is missing, the max path length will be omitted from the
     * CA certificate.
     * </pre>
     *
     * <code>
     * .google.protobuf.Int32Value max_issuer_path_length = 2 [(.google.api.field_behavior) = OPTIONAL];
     * </code>
     *
     * @return The maxIssuerPathLength.
     */
    com.google.protobuf.Int32Value getMaxIssuerPathLength();
    /**
     *
     *
     * <pre>
     * Optional. Refers to the path length restriction X.509 extension. For a CA
     * certificate, this value describes the depth of subordinate CA
     * certificates that are allowed.
     * If this value is less than 0, the request will fail.
     * If this value is missing, the max path length will be omitted from the
     * CA certificate.
     * </pre>
     *
     * <code>
     * .google.protobuf.Int32Value max_issuer_path_length = 2 [(.google.api.field_behavior) = OPTIONAL];
     * </code>
     */
    com.google.protobuf.Int32ValueOrBuilder getMaxIssuerPathLengthOrBuilder();
  }
  /**
   *
   *
   * <pre>
   * Describes values that are relevant in a CA certificate.
   * </pre>
   *
   * Protobuf type {@code google.cloud.security.privateca.v1beta1.ReusableConfigValues.CaOptions}
   */
  public static final class CaOptions extends com.google.protobuf.GeneratedMessageV3
      implements
      // @@protoc_insertion_point(message_implements:google.cloud.security.privateca.v1beta1.ReusableConfigValues.CaOptions)
      CaOptionsOrBuilder {
    private static final long serialVersionUID = 0L;
    // Use CaOptions.newBuilder() to construct.
    private CaOptions(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {
      super(builder);
    }

    private CaOptions() {}

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

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

    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
      return com.google.cloud.security.privateca.v1beta1.PrivateCaResourcesProto
          .internal_static_google_cloud_security_privateca_v1beta1_ReusableConfigValues_CaOptions_descriptor;
    }

    @java.lang.Override
    protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
        internalGetFieldAccessorTable() {
      return com.google.cloud.security.privateca.v1beta1.PrivateCaResourcesProto
          .internal_static_google_cloud_security_privateca_v1beta1_ReusableConfigValues_CaOptions_fieldAccessorTable
          .ensureFieldAccessorsInitialized(
              com.google.cloud.security.privateca.v1beta1.ReusableConfigValues.CaOptions.class,
              com.google.cloud.security.privateca.v1beta1.ReusableConfigValues.CaOptions.Builder
                  .class);
    }

    public static final int IS_CA_FIELD_NUMBER = 1;
    private com.google.protobuf.BoolValue isCa_;
    /**
     *
     *
     * <pre>
     * Optional. Refers to the "CA" X.509 extension, which is a boolean value. When this
     * value is missing, the extension will be omitted from the CA certificate.
     * </pre>
     *
     * <code>.google.protobuf.BoolValue is_ca = 1 [(.google.api.field_behavior) = OPTIONAL];</code>
     *
     * @return Whether the isCa field is set.
     */
    @java.lang.Override
    public boolean hasIsCa() {
      return isCa_ != null;
    }
    /**
     *
     *
     * <pre>
     * Optional. Refers to the "CA" X.509 extension, which is a boolean value. When this
     * value is missing, the extension will be omitted from the CA certificate.
     * </pre>
     *
     * <code>.google.protobuf.BoolValue is_ca = 1 [(.google.api.field_behavior) = OPTIONAL];</code>
     *
     * @return The isCa.
     */
    @java.lang.Override
    public com.google.protobuf.BoolValue getIsCa() {
      return isCa_ == null ? com.google.protobuf.BoolValue.getDefaultInstance() : isCa_;
    }
    /**
     *
     *
     * <pre>
     * Optional. Refers to the "CA" X.509 extension, which is a boolean value. When this
     * value is missing, the extension will be omitted from the CA certificate.
     * </pre>
     *
     * <code>.google.protobuf.BoolValue is_ca = 1 [(.google.api.field_behavior) = OPTIONAL];</code>
     */
    @java.lang.Override
    public com.google.protobuf.BoolValueOrBuilder getIsCaOrBuilder() {
      return isCa_ == null ? com.google.protobuf.BoolValue.getDefaultInstance() : isCa_;
    }

    public static final int MAX_ISSUER_PATH_LENGTH_FIELD_NUMBER = 2;
    private com.google.protobuf.Int32Value maxIssuerPathLength_;
    /**
     *
     *
     * <pre>
     * Optional. Refers to the path length restriction X.509 extension. For a CA
     * certificate, this value describes the depth of subordinate CA
     * certificates that are allowed.
     * If this value is less than 0, the request will fail.
     * If this value is missing, the max path length will be omitted from the
     * CA certificate.
     * </pre>
     *
     * <code>
     * .google.protobuf.Int32Value max_issuer_path_length = 2 [(.google.api.field_behavior) = OPTIONAL];
     * </code>
     *
     * @return Whether the maxIssuerPathLength field is set.
     */
    @java.lang.Override
    public boolean hasMaxIssuerPathLength() {
      return maxIssuerPathLength_ != null;
    }
    /**
     *
     *
     * <pre>
     * Optional. Refers to the path length restriction X.509 extension. For a CA
     * certificate, this value describes the depth of subordinate CA
     * certificates that are allowed.
     * If this value is less than 0, the request will fail.
     * If this value is missing, the max path length will be omitted from the
     * CA certificate.
     * </pre>
     *
     * <code>
     * .google.protobuf.Int32Value max_issuer_path_length = 2 [(.google.api.field_behavior) = OPTIONAL];
     * </code>
     *
     * @return The maxIssuerPathLength.
     */
    @java.lang.Override
    public com.google.protobuf.Int32Value getMaxIssuerPathLength() {
      return maxIssuerPathLength_ == null
          ? com.google.protobuf.Int32Value.getDefaultInstance()
          : maxIssuerPathLength_;
    }
    /**
     *
     *
     * <pre>
     * Optional. Refers to the path length restriction X.509 extension. For a CA
     * certificate, this value describes the depth of subordinate CA
     * certificates that are allowed.
     * If this value is less than 0, the request will fail.
     * If this value is missing, the max path length will be omitted from the
     * CA certificate.
     * </pre>
     *
     * <code>
     * .google.protobuf.Int32Value max_issuer_path_length = 2 [(.google.api.field_behavior) = OPTIONAL];
     * </code>
     */
    @java.lang.Override
    public com.google.protobuf.Int32ValueOrBuilder getMaxIssuerPathLengthOrBuilder() {
      return maxIssuerPathLength_ == null
          ? com.google.protobuf.Int32Value.getDefaultInstance()
          : maxIssuerPathLength_;
    }

    private byte memoizedIsInitialized = -1;

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

      memoizedIsInitialized = 1;
      return true;
    }

    @java.lang.Override
    public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
      if (isCa_ != null) {
        output.writeMessage(1, getIsCa());
      }
      if (maxIssuerPathLength_ != null) {
        output.writeMessage(2, getMaxIssuerPathLength());
      }
      getUnknownFields().writeTo(output);
    }

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

      size = 0;
      if (isCa_ != null) {
        size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getIsCa());
      }
      if (maxIssuerPathLength_ != null) {
        size +=
            com.google.protobuf.CodedOutputStream.computeMessageSize(2, getMaxIssuerPathLength());
      }
      size += getUnknownFields().getSerializedSize();
      memoizedSize = size;
      return size;
    }

    @java.lang.Override
    public boolean equals(final java.lang.Object obj) {
      if (obj == this) {
        return true;
      }
      if (!(obj
          instanceof com.google.cloud.security.privateca.v1beta1.ReusableConfigValues.CaOptions)) {
        return super.equals(obj);
      }
      com.google.cloud.security.privateca.v1beta1.ReusableConfigValues.CaOptions other =
          (com.google.cloud.security.privateca.v1beta1.ReusableConfigValues.CaOptions) obj;

      if (hasIsCa() != other.hasIsCa()) return false;
      if (hasIsCa()) {
        if (!getIsCa().equals(other.getIsCa())) return false;
      }
      if (hasMaxIssuerPathLength() != other.hasMaxIssuerPathLength()) return false;
      if (hasMaxIssuerPathLength()) {
        if (!getMaxIssuerPathLength().equals(other.getMaxIssuerPathLength())) return false;
      }
      if (!getUnknownFields().equals(other.getUnknownFields())) return false;
      return true;
    }

    @java.lang.Override
    public int hashCode() {
      if (memoizedHashCode != 0) {
        return memoizedHashCode;
      }
      int hash = 41;
      hash = (19 * hash) + getDescriptor().hashCode();
      if (hasIsCa()) {
        hash = (37 * hash) + IS_CA_FIELD_NUMBER;
        hash = (53 * hash) + getIsCa().hashCode();
      }
      if (hasMaxIssuerPathLength()) {
        hash = (37 * hash) + MAX_ISSUER_PATH_LENGTH_FIELD_NUMBER;
        hash = (53 * hash) + getMaxIssuerPathLength().hashCode();
      }
      hash = (29 * hash) + getUnknownFields().hashCode();
      memoizedHashCode = hash;
      return hash;
    }

    public static com.google.cloud.security.privateca.v1beta1.ReusableConfigValues.CaOptions
        parseFrom(java.nio.ByteBuffer data)
            throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data);
    }

    public static com.google.cloud.security.privateca.v1beta1.ReusableConfigValues.CaOptions
        parseFrom(
            java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
            throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data, extensionRegistry);
    }

    public static com.google.cloud.security.privateca.v1beta1.ReusableConfigValues.CaOptions
        parseFrom(com.google.protobuf.ByteString data)
            throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data);
    }

    public static com.google.cloud.security.privateca.v1beta1.ReusableConfigValues.CaOptions
        parseFrom(
            com.google.protobuf.ByteString data,
            com.google.protobuf.ExtensionRegistryLite extensionRegistry)
            throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data, extensionRegistry);
    }

    public static com.google.cloud.security.privateca.v1beta1.ReusableConfigValues.CaOptions
        parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data);
    }

    public static com.google.cloud.security.privateca.v1beta1.ReusableConfigValues.CaOptions
        parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
            throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data, extensionRegistry);
    }

    public static com.google.cloud.security.privateca.v1beta1.ReusableConfigValues.CaOptions
        parseFrom(java.io.InputStream input) throws java.io.IOException {
      return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
    }

    public static com.google.cloud.security.privateca.v1beta1.ReusableConfigValues.CaOptions
        parseFrom(
            java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
            throws java.io.IOException {
      return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
          PARSER, input, extensionRegistry);
    }

    public static com.google.cloud.security.privateca.v1beta1.ReusableConfigValues.CaOptions
        parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException {
      return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
    }

    public static com.google.cloud.security.privateca.v1beta1.ReusableConfigValues.CaOptions
        parseDelimitedFrom(
            java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
            throws java.io.IOException {
      return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
          PARSER, input, extensionRegistry);
    }

    public static com.google.cloud.security.privateca.v1beta1.ReusableConfigValues.CaOptions
        parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException {
      return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
    }

    public static com.google.cloud.security.privateca.v1beta1.ReusableConfigValues.CaOptions
        parseFrom(
            com.google.protobuf.CodedInputStream input,
            com.google.protobuf.ExtensionRegistryLite extensionRegistry)
            throws java.io.IOException {
      return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
          PARSER, input, extensionRegistry);
    }

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

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

    public static Builder newBuilder(
        com.google.cloud.security.privateca.v1beta1.ReusableConfigValues.CaOptions prototype) {
      return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
    }

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

    @java.lang.Override
    protected Builder newBuilderForType(
        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
      Builder builder = new Builder(parent);
      return builder;
    }
    /**
     *
     *
     * <pre>
     * Describes values that are relevant in a CA certificate.
     * </pre>
     *
     * Protobuf type {@code google.cloud.security.privateca.v1beta1.ReusableConfigValues.CaOptions}
     */
    public static final class Builder
        extends com.google.protobuf.GeneratedMessageV3.Builder<Builder>
        implements
        // @@protoc_insertion_point(builder_implements:google.cloud.security.privateca.v1beta1.ReusableConfigValues.CaOptions)
        com.google.cloud.security.privateca.v1beta1.ReusableConfigValues.CaOptionsOrBuilder {
      public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
        return com.google.cloud.security.privateca.v1beta1.PrivateCaResourcesProto
            .internal_static_google_cloud_security_privateca_v1beta1_ReusableConfigValues_CaOptions_descriptor;
      }

      @java.lang.Override
      protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
          internalGetFieldAccessorTable() {
        return com.google.cloud.security.privateca.v1beta1.PrivateCaResourcesProto
            .internal_static_google_cloud_security_privateca_v1beta1_ReusableConfigValues_CaOptions_fieldAccessorTable
            .ensureFieldAccessorsInitialized(
                com.google.cloud.security.privateca.v1beta1.ReusableConfigValues.CaOptions.class,
                com.google.cloud.security.privateca.v1beta1.ReusableConfigValues.CaOptions.Builder
                    .class);
      }

      // Construct using
      // com.google.cloud.security.privateca.v1beta1.ReusableConfigValues.CaOptions.newBuilder()
      private Builder() {}

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

      @java.lang.Override
      public Builder clear() {
        super.clear();
        bitField0_ = 0;
        isCa_ = null;
        if (isCaBuilder_ != null) {
          isCaBuilder_.dispose();
          isCaBuilder_ = null;
        }
        maxIssuerPathLength_ = null;
        if (maxIssuerPathLengthBuilder_ != null) {
          maxIssuerPathLengthBuilder_.dispose();
          maxIssuerPathLengthBuilder_ = null;
        }
        return this;
      }

      @java.lang.Override
      public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
        return com.google.cloud.security.privateca.v1beta1.PrivateCaResourcesProto
            .internal_static_google_cloud_security_privateca_v1beta1_ReusableConfigValues_CaOptions_descriptor;
      }

      @java.lang.Override
      public com.google.cloud.security.privateca.v1beta1.ReusableConfigValues.CaOptions
          getDefaultInstanceForType() {
        return com.google.cloud.security.privateca.v1beta1.ReusableConfigValues.CaOptions
            .getDefaultInstance();
      }

      @java.lang.Override
      public com.google.cloud.security.privateca.v1beta1.ReusableConfigValues.CaOptions build() {
        com.google.cloud.security.privateca.v1beta1.ReusableConfigValues.CaOptions result =
            buildPartial();
        if (!result.isInitialized()) {
          throw newUninitializedMessageException(result);
        }
        return result;
      }

      @java.lang.Override
      public com.google.cloud.security.privateca.v1beta1.ReusableConfigValues.CaOptions
          buildPartial() {
        com.google.cloud.security.privateca.v1beta1.ReusableConfigValues.CaOptions result =
            new com.google.cloud.security.privateca.v1beta1.ReusableConfigValues.CaOptions(this);
        if (bitField0_ != 0) {
          buildPartial0(result);
        }
        onBuilt();
        return result;
      }

      private void buildPartial0(
          com.google.cloud.security.privateca.v1beta1.ReusableConfigValues.CaOptions result) {
        int from_bitField0_ = bitField0_;
        if (((from_bitField0_ & 0x00000001) != 0)) {
          result.isCa_ = isCaBuilder_ == null ? isCa_ : isCaBuilder_.build();
        }
        if (((from_bitField0_ & 0x00000002) != 0)) {
          result.maxIssuerPathLength_ =
              maxIssuerPathLengthBuilder_ == null
                  ? maxIssuerPathLength_
                  : maxIssuerPathLengthBuilder_.build();
        }
      }

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

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

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

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

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

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

      @java.lang.Override
      public Builder mergeFrom(com.google.protobuf.Message other) {
        if (other
            instanceof com.google.cloud.security.privateca.v1beta1.ReusableConfigValues.CaOptions) {
          return mergeFrom(
              (com.google.cloud.security.privateca.v1beta1.ReusableConfigValues.CaOptions) other);
        } else {
          super.mergeFrom(other);
          return this;
        }
      }

      public Builder mergeFrom(
          com.google.cloud.security.privateca.v1beta1.ReusableConfigValues.CaOptions other) {
        if (other
            == com.google.cloud.security.privateca.v1beta1.ReusableConfigValues.CaOptions
                .getDefaultInstance()) return this;
        if (other.hasIsCa()) {
          mergeIsCa(other.getIsCa());
        }
        if (other.hasMaxIssuerPathLength()) {
          mergeMaxIssuerPathLength(other.getMaxIssuerPathLength());
        }
        this.mergeUnknownFields(other.getUnknownFields());
        onChanged();
        return this;
      }

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

      @java.lang.Override
      public Builder mergeFrom(
          com.google.protobuf.CodedInputStream input,
          com.google.protobuf.ExtensionRegistryLite extensionRegistry)
          throws java.io.IOException {
        if (extensionRegistry == null) {
          throw new java.lang.NullPointerException();
        }
        try {
          boolean done = false;
          while (!done) {
            int tag = input.readTag();
            switch (tag) {
              case 0:
                done = true;
                break;
              case 10:
                {
                  input.readMessage(getIsCaFieldBuilder().getBuilder(), extensionRegistry);
                  bitField0_ |= 0x00000001;
                  break;
                } // case 10
              case 18:
                {
                  input.readMessage(
                      getMaxIssuerPathLengthFieldBuilder().getBuilder(), extensionRegistry);
                  bitField0_ |= 0x00000002;
                  break;
                } // case 18
              default:
                {
                  if (!super.parseUnknownField(input, extensionRegistry, tag)) {
                    done = true; // was an endgroup tag
                  }
                  break;
                } // default:
            } // switch (tag)
          } // while (!done)
        } catch (com.google.protobuf.InvalidProtocolBufferException e) {
          throw e.unwrapIOException();
        } finally {
          onChanged();
        } // finally
        return this;
      }

      private int bitField0_;

      private com.google.protobuf.BoolValue isCa_;
      private com.google.protobuf.SingleFieldBuilderV3<
              com.google.protobuf.BoolValue,
              com.google.protobuf.BoolValue.Builder,
              com.google.protobuf.BoolValueOrBuilder>
          isCaBuilder_;
      /**
       *
       *
       * <pre>
       * Optional. Refers to the "CA" X.509 extension, which is a boolean value. When this
       * value is missing, the extension will be omitted from the CA certificate.
       * </pre>
       *
       * <code>.google.protobuf.BoolValue is_ca = 1 [(.google.api.field_behavior) = OPTIONAL];
       * </code>
       *
       * @return Whether the isCa field is set.
       */
      public boolean hasIsCa() {
        return ((bitField0_ & 0x00000001) != 0);
      }
      /**
       *
       *
       * <pre>
       * Optional. Refers to the "CA" X.509 extension, which is a boolean value. When this
       * value is missing, the extension will be omitted from the CA certificate.
       * </pre>
       *
       * <code>.google.protobuf.BoolValue is_ca = 1 [(.google.api.field_behavior) = OPTIONAL];
       * </code>
       *
       * @return The isCa.
       */
      public com.google.protobuf.BoolValue getIsCa() {
        if (isCaBuilder_ == null) {
          return isCa_ == null ? com.google.protobuf.BoolValue.getDefaultInstance() : isCa_;
        } else {
          return isCaBuilder_.getMessage();
        }
      }
      /**
       *
       *
       * <pre>
       * Optional. Refers to the "CA" X.509 extension, which is a boolean value. When this
       * value is missing, the extension will be omitted from the CA certificate.
       * </pre>
       *
       * <code>.google.protobuf.BoolValue is_ca = 1 [(.google.api.field_behavior) = OPTIONAL];
       * </code>
       */
      public Builder setIsCa(com.google.protobuf.BoolValue value) {
        if (isCaBuilder_ == null) {
          if (value == null) {
            throw new NullPointerException();
          }
          isCa_ = value;
        } else {
          isCaBuilder_.setMessage(value);
        }
        bitField0_ |= 0x00000001;
        onChanged();
        return this;
      }
      /**
       *
       *
       * <pre>
       * Optional. Refers to the "CA" X.509 extension, which is a boolean value. When this
       * value is missing, the extension will be omitted from the CA certificate.
       * </pre>
       *
       * <code>.google.protobuf.BoolValue is_ca = 1 [(.google.api.field_behavior) = OPTIONAL];
       * </code>
       */
      public Builder setIsCa(com.google.protobuf.BoolValue.Builder builderForValue) {
        if (isCaBuilder_ == null) {
          isCa_ = builderForValue.build();
        } else {
          isCaBuilder_.setMessage(builderForValue.build());
        }
        bitField0_ |= 0x00000001;
        onChanged();
        return this;
      }
      /**
       *
       *
       * <pre>
       * Optional. Refers to the "CA" X.509 extension, which is a boolean value. When this
       * value is missing, the extension will be omitted from the CA certificate.
       * </pre>
       *
       * <code>.google.protobuf.BoolValue is_ca = 1 [(.google.api.field_behavior) = OPTIONAL];
       * </code>
       */
      public Builder mergeIsCa(com.google.protobuf.BoolValue value) {
        if (isCaBuilder_ == null) {
          if (((bitField0_ & 0x00000001) != 0)
              && isCa_ != null
              && isCa_ != com.google.protobuf.BoolValue.getDefaultInstance()) {
            getIsCaBuilder().mergeFrom(value);
          } else {
            isCa_ = value;
          }
        } else {
          isCaBuilder_.mergeFrom(value);
        }
        bitField0_ |= 0x00000001;
        onChanged();
        return this;
      }
      /**
       *
       *
       * <pre>
       * Optional. Refers to the "CA" X.509 extension, which is a boolean value. When this
       * value is missing, the extension will be omitted from the CA certificate.
       * </pre>
       *
       * <code>.google.protobuf.BoolValue is_ca = 1 [(.google.api.field_behavior) = OPTIONAL];
       * </code>
       */
      public Builder clearIsCa() {
        bitField0_ = (bitField0_ & ~0x00000001);
        isCa_ = null;
        if (isCaBuilder_ != null) {
          isCaBuilder_.dispose();
          isCaBuilder_ = null;
        }
        onChanged();
        return this;
      }
      /**
       *
       *
       * <pre>
       * Optional. Refers to the "CA" X.509 extension, which is a boolean value. When this
       * value is missing, the extension will be omitted from the CA certificate.
       * </pre>
       *
       * <code>.google.protobuf.BoolValue is_ca = 1 [(.google.api.field_behavior) = OPTIONAL];
       * </code>
       */
      public com.google.protobuf.BoolValue.Builder getIsCaBuilder() {
        bitField0_ |= 0x00000001;
        onChanged();
        return getIsCaFieldBuilder().getBuilder();
      }
      /**
       *
       *
       * <pre>
       * Optional. Refers to the "CA" X.509 extension, which is a boolean value. When this
       * value is missing, the extension will be omitted from the CA certificate.
       * </pre>
       *
       * <code>.google.protobuf.BoolValue is_ca = 1 [(.google.api.field_behavior) = OPTIONAL];
       * </code>
       */
      public com.google.protobuf.BoolValueOrBuilder getIsCaOrBuilder() {
        if (isCaBuilder_ != null) {
          return isCaBuilder_.getMessageOrBuilder();
        } else {
          return isCa_ == null ? com.google.protobuf.BoolValue.getDefaultInstance() : isCa_;
        }
      }
      /**
       *
       *
       * <pre>
       * Optional. Refers to the "CA" X.509 extension, which is a boolean value. When this
       * value is missing, the extension will be omitted from the CA certificate.
       * </pre>
       *
       * <code>.google.protobuf.BoolValue is_ca = 1 [(.google.api.field_behavior) = OPTIONAL];
       * </code>
       */
      private com.google.protobuf.SingleFieldBuilderV3<
              com.google.protobuf.BoolValue,
              com.google.protobuf.BoolValue.Builder,
              com.google.protobuf.BoolValueOrBuilder>
          getIsCaFieldBuilder() {
        if (isCaBuilder_ == null) {
          isCaBuilder_ =
              new com.google.protobuf.SingleFieldBuilderV3<
                  com.google.protobuf.BoolValue,
                  com.google.protobuf.BoolValue.Builder,
                  com.google.protobuf.BoolValueOrBuilder>(
                  getIsCa(), getParentForChildren(), isClean());
          isCa_ = null;
        }
        return isCaBuilder_;
      }

      private com.google.protobuf.Int32Value maxIssuerPathLength_;
      private com.google.protobuf.SingleFieldBuilderV3<
              com.google.protobuf.Int32Value,
              com.google.protobuf.Int32Value.Builder,
              com.google.protobuf.Int32ValueOrBuilder>
          maxIssuerPathLengthBuilder_;
      /**
       *
       *
       * <pre>
       * Optional. Refers to the path length restriction X.509 extension. For a CA
       * certificate, this value describes the depth of subordinate CA
       * certificates that are allowed.
       * If this value is less than 0, the request will fail.
       * If this value is missing, the max path length will be omitted from the
       * CA certificate.
       * </pre>
       *
       * <code>
       * .google.protobuf.Int32Value max_issuer_path_length = 2 [(.google.api.field_behavior) = OPTIONAL];
       * </code>
       *
       * @return Whether the maxIssuerPathLength field is set.
       */
      public boolean hasMaxIssuerPathLength() {
        return ((bitField0_ & 0x00000002) != 0);
      }
      /**
       *
       *
       * <pre>
       * Optional. Refers to the path length restriction X.509 extension. For a CA
       * certificate, this value describes the depth of subordinate CA
       * certificates that are allowed.
       * If this value is less than 0, the request will fail.
       * If this value is missing, the max path length will be omitted from the
       * CA certificate.
       * </pre>
       *
       * <code>
       * .google.protobuf.Int32Value max_issuer_path_length = 2 [(.google.api.field_behavior) = OPTIONAL];
       * </code>
       *
       * @return The maxIssuerPathLength.
       */
      public com.google.protobuf.Int32Value getMaxIssuerPathLength() {
        if (maxIssuerPathLengthBuilder_ == null) {
          return maxIssuerPathLength_ == null
              ? com.google.protobuf.Int32Value.getDefaultInstance()
              : maxIssuerPathLength_;
        } else {
          return maxIssuerPathLengthBuilder_.getMessage();
        }
      }
      /**
       *
       *
       * <pre>
       * Optional. Refers to the path length restriction X.509 extension. For a CA
       * certificate, this value describes the depth of subordinate CA
       * certificates that are allowed.
       * If this value is less than 0, the request will fail.
       * If this value is missing, the max path length will be omitted from the
       * CA certificate.
       * </pre>
       *
       * <code>
       * .google.protobuf.Int32Value max_issuer_path_length = 2 [(.google.api.field_behavior) = OPTIONAL];
       * </code>
       */
      public Builder setMaxIssuerPathLength(com.google.protobuf.Int32Value value) {
        if (maxIssuerPathLengthBuilder_ == null) {
          if (value == null) {
            throw new NullPointerException();
          }
          maxIssuerPathLength_ = value;
        } else {
          maxIssuerPathLengthBuilder_.setMessage(value);
        }
        bitField0_ |= 0x00000002;
        onChanged();
        return this;
      }
      /**
       *
       *
       * <pre>
       * Optional. Refers to the path length restriction X.509 extension. For a CA
       * certificate, this value describes the depth of subordinate CA
       * certificates that are allowed.
       * If this value is less than 0, the request will fail.
       * If this value is missing, the max path length will be omitted from the
       * CA certificate.
       * </pre>
       *
       * <code>
       * .google.protobuf.Int32Value max_issuer_path_length = 2 [(.google.api.field_behavior) = OPTIONAL];
       * </code>
       */
      public Builder setMaxIssuerPathLength(
          com.google.protobuf.Int32Value.Builder builderForValue) {
        if (maxIssuerPathLengthBuilder_ == null) {
          maxIssuerPathLength_ = builderForValue.build();
        } else {
          maxIssuerPathLengthBuilder_.setMessage(builderForValue.build());
        }
        bitField0_ |= 0x00000002;
        onChanged();
        return this;
      }
      /**
       *
       *
       * <pre>
       * Optional. Refers to the path length restriction X.509 extension. For a CA
       * certificate, this value describes the depth of subordinate CA
       * certificates that are allowed.
       * If this value is less than 0, the request will fail.
       * If this value is missing, the max path length will be omitted from the
       * CA certificate.
       * </pre>
       *
       * <code>
       * .google.protobuf.Int32Value max_issuer_path_length = 2 [(.google.api.field_behavior) = OPTIONAL];
       * </code>
       */
      public Builder mergeMaxIssuerPathLength(com.google.protobuf.Int32Value value) {
        if (maxIssuerPathLengthBuilder_ == null) {
          if (((bitField0_ & 0x00000002) != 0)
              && maxIssuerPathLength_ != null
              && maxIssuerPathLength_ != com.google.protobuf.Int32Value.getDefaultInstance()) {
            getMaxIssuerPathLengthBuilder().mergeFrom(value);
          } else {
            maxIssuerPathLength_ = value;
          }
        } else {
          maxIssuerPathLengthBuilder_.mergeFrom(value);
        }
        bitField0_ |= 0x00000002;
        onChanged();
        return this;
      }
      /**
       *
       *
       * <pre>
       * Optional. Refers to the path length restriction X.509 extension. For a CA
       * certificate, this value describes the depth of subordinate CA
       * certificates that are allowed.
       * If this value is less than 0, the request will fail.
       * If this value is missing, the max path length will be omitted from the
       * CA certificate.
       * </pre>
       *
       * <code>
       * .google.protobuf.Int32Value max_issuer_path_length = 2 [(.google.api.field_behavior) = OPTIONAL];
       * </code>
       */
      public Builder clearMaxIssuerPathLength() {
        bitField0_ = (bitField0_ & ~0x00000002);
        maxIssuerPathLength_ = null;
        if (maxIssuerPathLengthBuilder_ != null) {
          maxIssuerPathLengthBuilder_.dispose();
          maxIssuerPathLengthBuilder_ = null;
        }
        onChanged();
        return this;
      }
      /**
       *
       *
       * <pre>
       * Optional. Refers to the path length restriction X.509 extension. For a CA
       * certificate, this value describes the depth of subordinate CA
       * certificates that are allowed.
       * If this value is less than 0, the request will fail.
       * If this value is missing, the max path length will be omitted from the
       * CA certificate.
       * </pre>
       *
       * <code>
       * .google.protobuf.Int32Value max_issuer_path_length = 2 [(.google.api.field_behavior) = OPTIONAL];
       * </code>
       */
      public com.google.protobuf.Int32Value.Builder getMaxIssuerPathLengthBuilder() {
        bitField0_ |= 0x00000002;
        onChanged();
        return getMaxIssuerPathLengthFieldBuilder().getBuilder();
      }
      /**
       *
       *
       * <pre>
       * Optional. Refers to the path length restriction X.509 extension. For a CA
       * certificate, this value describes the depth of subordinate CA
       * certificates that are allowed.
       * If this value is less than 0, the request will fail.
       * If this value is missing, the max path length will be omitted from the
       * CA certificate.
       * </pre>
       *
       * <code>
       * .google.protobuf.Int32Value max_issuer_path_length = 2 [(.google.api.field_behavior) = OPTIONAL];
       * </code>
       */
      public com.google.protobuf.Int32ValueOrBuilder getMaxIssuerPathLengthOrBuilder() {
        if (maxIssuerPathLengthBuilder_ != null) {
          return maxIssuerPathLengthBuilder_.getMessageOrBuilder();
        } else {
          return maxIssuerPathLength_ == null
              ? com.google.protobuf.Int32Value.getDefaultInstance()
              : maxIssuerPathLength_;
        }
      }
      /**
       *
       *
       * <pre>
       * Optional. Refers to the path length restriction X.509 extension. For a CA
       * certificate, this value describes the depth of subordinate CA
       * certificates that are allowed.
       * If this value is less than 0, the request will fail.
       * If this value is missing, the max path length will be omitted from the
       * CA certificate.
       * </pre>
       *
       * <code>
       * .google.protobuf.Int32Value max_issuer_path_length = 2 [(.google.api.field_behavior) = OPTIONAL];
       * </code>
       */
      private com.google.protobuf.SingleFieldBuilderV3<
              com.google.protobuf.Int32Value,
              com.google.protobuf.Int32Value.Builder,
              com.google.protobuf.Int32ValueOrBuilder>
          getMaxIssuerPathLengthFieldBuilder() {
        if (maxIssuerPathLengthBuilder_ == null) {
          maxIssuerPathLengthBuilder_ =
              new com.google.protobuf.SingleFieldBuilderV3<
                  com.google.protobuf.Int32Value,
                  com.google.protobuf.Int32Value.Builder,
                  com.google.protobuf.Int32ValueOrBuilder>(
                  getMaxIssuerPathLength(), getParentForChildren(), isClean());
          maxIssuerPathLength_ = null;
        }
        return maxIssuerPathLengthBuilder_;
      }

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

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

      // @@protoc_insertion_point(builder_scope:google.cloud.security.privateca.v1beta1.ReusableConfigValues.CaOptions)
    }

    // @@protoc_insertion_point(class_scope:google.cloud.security.privateca.v1beta1.ReusableConfigValues.CaOptions)
    private static final com.google.cloud.security.privateca.v1beta1.ReusableConfigValues.CaOptions
        DEFAULT_INSTANCE;

    static {
      DEFAULT_INSTANCE =
          new com.google.cloud.security.privateca.v1beta1.ReusableConfigValues.CaOptions();
    }

    public static com.google.cloud.security.privateca.v1beta1.ReusableConfigValues.CaOptions
        getDefaultInstance() {
      return DEFAULT_INSTANCE;
    }

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

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

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

    @java.lang.Override
    public com.google.cloud.security.privateca.v1beta1.ReusableConfigValues.CaOptions
        getDefaultInstanceForType() {
      return DEFAULT_INSTANCE;
    }
  }

  public static final int KEY_USAGE_FIELD_NUMBER = 1;
  private com.google.cloud.security.privateca.v1beta1.KeyUsage keyUsage_;
  /**
   *
   *
   * <pre>
   * Optional. Indicates the intended use for keys that correspond to a certificate.
   * </pre>
   *
   * <code>
   * .google.cloud.security.privateca.v1beta1.KeyUsage key_usage = 1 [(.google.api.field_behavior) = OPTIONAL];
   * </code>
   *
   * @return Whether the keyUsage field is set.
   */
  @java.lang.Override
  public boolean hasKeyUsage() {
    return keyUsage_ != null;
  }
  /**
   *
   *
   * <pre>
   * Optional. Indicates the intended use for keys that correspond to a certificate.
   * </pre>
   *
   * <code>
   * .google.cloud.security.privateca.v1beta1.KeyUsage key_usage = 1 [(.google.api.field_behavior) = OPTIONAL];
   * </code>
   *
   * @return The keyUsage.
   */
  @java.lang.Override
  public com.google.cloud.security.privateca.v1beta1.KeyUsage getKeyUsage() {
    return keyUsage_ == null
        ? com.google.cloud.security.privateca.v1beta1.KeyUsage.getDefaultInstance()
        : keyUsage_;
  }
  /**
   *
   *
   * <pre>
   * Optional. Indicates the intended use for keys that correspond to a certificate.
   * </pre>
   *
   * <code>
   * .google.cloud.security.privateca.v1beta1.KeyUsage key_usage = 1 [(.google.api.field_behavior) = OPTIONAL];
   * </code>
   */
  @java.lang.Override
  public com.google.cloud.security.privateca.v1beta1.KeyUsageOrBuilder getKeyUsageOrBuilder() {
    return keyUsage_ == null
        ? com.google.cloud.security.privateca.v1beta1.KeyUsage.getDefaultInstance()
        : keyUsage_;
  }

  public static final int CA_OPTIONS_FIELD_NUMBER = 2;
  private com.google.cloud.security.privateca.v1beta1.ReusableConfigValues.CaOptions caOptions_;
  /**
   *
   *
   * <pre>
   * Optional. Describes options in this [ReusableConfigValues][google.cloud.security.privateca.v1beta1.ReusableConfigValues] that are
   * relevant in a CA certificate.
   * </pre>
   *
   * <code>
   * .google.cloud.security.privateca.v1beta1.ReusableConfigValues.CaOptions ca_options = 2 [(.google.api.field_behavior) = OPTIONAL];
   * </code>
   *
   * @return Whether the caOptions field is set.
   */
  @java.lang.Override
  public boolean hasCaOptions() {
    return caOptions_ != null;
  }
  /**
   *
   *
   * <pre>
   * Optional. Describes options in this [ReusableConfigValues][google.cloud.security.privateca.v1beta1.ReusableConfigValues] that are
   * relevant in a CA certificate.
   * </pre>
   *
   * <code>
   * .google.cloud.security.privateca.v1beta1.ReusableConfigValues.CaOptions ca_options = 2 [(.google.api.field_behavior) = OPTIONAL];
   * </code>
   *
   * @return The caOptions.
   */
  @java.lang.Override
  public com.google.cloud.security.privateca.v1beta1.ReusableConfigValues.CaOptions getCaOptions() {
    return caOptions_ == null
        ? com.google.cloud.security.privateca.v1beta1.ReusableConfigValues.CaOptions
            .getDefaultInstance()
        : caOptions_;
  }
  /**
   *
   *
   * <pre>
   * Optional. Describes options in this [ReusableConfigValues][google.cloud.security.privateca.v1beta1.ReusableConfigValues] that are
   * relevant in a CA certificate.
   * </pre>
   *
   * <code>
   * .google.cloud.security.privateca.v1beta1.ReusableConfigValues.CaOptions ca_options = 2 [(.google.api.field_behavior) = OPTIONAL];
   * </code>
   */
  @java.lang.Override
  public com.google.cloud.security.privateca.v1beta1.ReusableConfigValues.CaOptionsOrBuilder
      getCaOptionsOrBuilder() {
    return caOptions_ == null
        ? com.google.cloud.security.privateca.v1beta1.ReusableConfigValues.CaOptions
            .getDefaultInstance()
        : caOptions_;
  }

  public static final int POLICY_IDS_FIELD_NUMBER = 3;

  @SuppressWarnings("serial")
  private java.util.List<com.google.cloud.security.privateca.v1beta1.ObjectId> policyIds_;
  /**
   *
   *
   * <pre>
   * Optional. Describes the X.509 certificate policy object identifiers, per
   * https://tools.ietf.org/html/rfc5280#section-4.2.1.4.
   * </pre>
   *
   * <code>
   * repeated .google.cloud.security.privateca.v1beta1.ObjectId policy_ids = 3 [(.google.api.field_behavior) = OPTIONAL];
   * </code>
   */
  @java.lang.Override
  public java.util.List<com.google.cloud.security.privateca.v1beta1.ObjectId> getPolicyIdsList() {
    return policyIds_;
  }
  /**
   *
   *
   * <pre>
   * Optional. Describes the X.509 certificate policy object identifiers, per
   * https://tools.ietf.org/html/rfc5280#section-4.2.1.4.
   * </pre>
   *
   * <code>
   * repeated .google.cloud.security.privateca.v1beta1.ObjectId policy_ids = 3 [(.google.api.field_behavior) = OPTIONAL];
   * </code>
   */
  @java.lang.Override
  public java.util.List<? extends com.google.cloud.security.privateca.v1beta1.ObjectIdOrBuilder>
      getPolicyIdsOrBuilderList() {
    return policyIds_;
  }
  /**
   *
   *
   * <pre>
   * Optional. Describes the X.509 certificate policy object identifiers, per
   * https://tools.ietf.org/html/rfc5280#section-4.2.1.4.
   * </pre>
   *
   * <code>
   * repeated .google.cloud.security.privateca.v1beta1.ObjectId policy_ids = 3 [(.google.api.field_behavior) = OPTIONAL];
   * </code>
   */
  @java.lang.Override
  public int getPolicyIdsCount() {
    return policyIds_.size();
  }
  /**
   *
   *
   * <pre>
   * Optional. Describes the X.509 certificate policy object identifiers, per
   * https://tools.ietf.org/html/rfc5280#section-4.2.1.4.
   * </pre>
   *
   * <code>
   * repeated .google.cloud.security.privateca.v1beta1.ObjectId policy_ids = 3 [(.google.api.field_behavior) = OPTIONAL];
   * </code>
   */
  @java.lang.Override
  public com.google.cloud.security.privateca.v1beta1.ObjectId getPolicyIds(int index) {
    return policyIds_.get(index);
  }
  /**
   *
   *
   * <pre>
   * Optional. Describes the X.509 certificate policy object identifiers, per
   * https://tools.ietf.org/html/rfc5280#section-4.2.1.4.
   * </pre>
   *
   * <code>
   * repeated .google.cloud.security.privateca.v1beta1.ObjectId policy_ids = 3 [(.google.api.field_behavior) = OPTIONAL];
   * </code>
   */
  @java.lang.Override
  public com.google.cloud.security.privateca.v1beta1.ObjectIdOrBuilder getPolicyIdsOrBuilder(
      int index) {
    return policyIds_.get(index);
  }

  public static final int AIA_OCSP_SERVERS_FIELD_NUMBER = 4;

  @SuppressWarnings("serial")
  private com.google.protobuf.LazyStringList aiaOcspServers_;
  /**
   *
   *
   * <pre>
   * Optional. Describes Online Certificate Status Protocol (OCSP) endpoint addresses
   * that appear in the "Authority Information Access" extension in the
   * certificate.
   * </pre>
   *
   * <code>repeated string aia_ocsp_servers = 4 [(.google.api.field_behavior) = OPTIONAL];</code>
   *
   * @return A list containing the aiaOcspServers.
   */
  public com.google.protobuf.ProtocolStringList getAiaOcspServersList() {
    return aiaOcspServers_;
  }
  /**
   *
   *
   * <pre>
   * Optional. Describes Online Certificate Status Protocol (OCSP) endpoint addresses
   * that appear in the "Authority Information Access" extension in the
   * certificate.
   * </pre>
   *
   * <code>repeated string aia_ocsp_servers = 4 [(.google.api.field_behavior) = OPTIONAL];</code>
   *
   * @return The count of aiaOcspServers.
   */
  public int getAiaOcspServersCount() {
    return aiaOcspServers_.size();
  }
  /**
   *
   *
   * <pre>
   * Optional. Describes Online Certificate Status Protocol (OCSP) endpoint addresses
   * that appear in the "Authority Information Access" extension in the
   * certificate.
   * </pre>
   *
   * <code>repeated string aia_ocsp_servers = 4 [(.google.api.field_behavior) = OPTIONAL];</code>
   *
   * @param index The index of the element to return.
   * @return The aiaOcspServers at the given index.
   */
  public java.lang.String getAiaOcspServers(int index) {
    return aiaOcspServers_.get(index);
  }
  /**
   *
   *
   * <pre>
   * Optional. Describes Online Certificate Status Protocol (OCSP) endpoint addresses
   * that appear in the "Authority Information Access" extension in the
   * certificate.
   * </pre>
   *
   * <code>repeated string aia_ocsp_servers = 4 [(.google.api.field_behavior) = OPTIONAL];</code>
   *
   * @param index The index of the value to return.
   * @return The bytes of the aiaOcspServers at the given index.
   */
  public com.google.protobuf.ByteString getAiaOcspServersBytes(int index) {
    return aiaOcspServers_.getByteString(index);
  }

  public static final int ADDITIONAL_EXTENSIONS_FIELD_NUMBER = 5;

  @SuppressWarnings("serial")
  private java.util.List<com.google.cloud.security.privateca.v1beta1.X509Extension>
      additionalExtensions_;
  /**
   *
   *
   * <pre>
   * Optional. Describes custom X.509 extensions.
   * </pre>
   *
   * <code>
   * repeated .google.cloud.security.privateca.v1beta1.X509Extension additional_extensions = 5 [(.google.api.field_behavior) = OPTIONAL];
   * </code>
   */
  @java.lang.Override
  public java.util.List<com.google.cloud.security.privateca.v1beta1.X509Extension>
      getAdditionalExtensionsList() {
    return additionalExtensions_;
  }
  /**
   *
   *
   * <pre>
   * Optional. Describes custom X.509 extensions.
   * </pre>
   *
   * <code>
   * repeated .google.cloud.security.privateca.v1beta1.X509Extension additional_extensions = 5 [(.google.api.field_behavior) = OPTIONAL];
   * </code>
   */
  @java.lang.Override
  public java.util.List<
          ? extends com.google.cloud.security.privateca.v1beta1.X509ExtensionOrBuilder>
      getAdditionalExtensionsOrBuilderList() {
    return additionalExtensions_;
  }
  /**
   *
   *
   * <pre>
   * Optional. Describes custom X.509 extensions.
   * </pre>
   *
   * <code>
   * repeated .google.cloud.security.privateca.v1beta1.X509Extension additional_extensions = 5 [(.google.api.field_behavior) = OPTIONAL];
   * </code>
   */
  @java.lang.Override
  public int getAdditionalExtensionsCount() {
    return additionalExtensions_.size();
  }
  /**
   *
   *
   * <pre>
   * Optional. Describes custom X.509 extensions.
   * </pre>
   *
   * <code>
   * repeated .google.cloud.security.privateca.v1beta1.X509Extension additional_extensions = 5 [(.google.api.field_behavior) = OPTIONAL];
   * </code>
   */
  @java.lang.Override
  public com.google.cloud.security.privateca.v1beta1.X509Extension getAdditionalExtensions(
      int index) {
    return additionalExtensions_.get(index);
  }
  /**
   *
   *
   * <pre>
   * Optional. Describes custom X.509 extensions.
   * </pre>
   *
   * <code>
   * repeated .google.cloud.security.privateca.v1beta1.X509Extension additional_extensions = 5 [(.google.api.field_behavior) = OPTIONAL];
   * </code>
   */
  @java.lang.Override
  public com.google.cloud.security.privateca.v1beta1.X509ExtensionOrBuilder
      getAdditionalExtensionsOrBuilder(int index) {
    return additionalExtensions_.get(index);
  }

  private byte memoizedIsInitialized = -1;

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

    memoizedIsInitialized = 1;
    return true;
  }

  @java.lang.Override
  public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
    if (keyUsage_ != null) {
      output.writeMessage(1, getKeyUsage());
    }
    if (caOptions_ != null) {
      output.writeMessage(2, getCaOptions());
    }
    for (int i = 0; i < policyIds_.size(); i++) {
      output.writeMessage(3, policyIds_.get(i));
    }
    for (int i = 0; i < aiaOcspServers_.size(); i++) {
      com.google.protobuf.GeneratedMessageV3.writeString(output, 4, aiaOcspServers_.getRaw(i));
    }
    for (int i = 0; i < additionalExtensions_.size(); i++) {
      output.writeMessage(5, additionalExtensions_.get(i));
    }
    getUnknownFields().writeTo(output);
  }

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

    size = 0;
    if (keyUsage_ != null) {
      size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getKeyUsage());
    }
    if (caOptions_ != null) {
      size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getCaOptions());
    }
    for (int i = 0; i < policyIds_.size(); i++) {
      size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, policyIds_.get(i));
    }
    {
      int dataSize = 0;
      for (int i = 0; i < aiaOcspServers_.size(); i++) {
        dataSize += computeStringSizeNoTag(aiaOcspServers_.getRaw(i));
      }
      size += dataSize;
      size += 1 * getAiaOcspServersList().size();
    }
    for (int i = 0; i < additionalExtensions_.size(); i++) {
      size +=
          com.google.protobuf.CodedOutputStream.computeMessageSize(5, additionalExtensions_.get(i));
    }
    size += getUnknownFields().getSerializedSize();
    memoizedSize = size;
    return size;
  }

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

    if (hasKeyUsage() != other.hasKeyUsage()) return false;
    if (hasKeyUsage()) {
      if (!getKeyUsage().equals(other.getKeyUsage())) return false;
    }
    if (hasCaOptions() != other.hasCaOptions()) return false;
    if (hasCaOptions()) {
      if (!getCaOptions().equals(other.getCaOptions())) return false;
    }
    if (!getPolicyIdsList().equals(other.getPolicyIdsList())) return false;
    if (!getAiaOcspServersList().equals(other.getAiaOcspServersList())) return false;
    if (!getAdditionalExtensionsList().equals(other.getAdditionalExtensionsList())) return false;
    if (!getUnknownFields().equals(other.getUnknownFields())) return false;
    return true;
  }

  @java.lang.Override
  public int hashCode() {
    if (memoizedHashCode != 0) {
      return memoizedHashCode;
    }
    int hash = 41;
    hash = (19 * hash) + getDescriptor().hashCode();
    if (hasKeyUsage()) {
      hash = (37 * hash) + KEY_USAGE_FIELD_NUMBER;
      hash = (53 * hash) + getKeyUsage().hashCode();
    }
    if (hasCaOptions()) {
      hash = (37 * hash) + CA_OPTIONS_FIELD_NUMBER;
      hash = (53 * hash) + getCaOptions().hashCode();
    }
    if (getPolicyIdsCount() > 0) {
      hash = (37 * hash) + POLICY_IDS_FIELD_NUMBER;
      hash = (53 * hash) + getPolicyIdsList().hashCode();
    }
    if (getAiaOcspServersCount() > 0) {
      hash = (37 * hash) + AIA_OCSP_SERVERS_FIELD_NUMBER;
      hash = (53 * hash) + getAiaOcspServersList().hashCode();
    }
    if (getAdditionalExtensionsCount() > 0) {
      hash = (37 * hash) + ADDITIONAL_EXTENSIONS_FIELD_NUMBER;
      hash = (53 * hash) + getAdditionalExtensionsList().hashCode();
    }
    hash = (29 * hash) + getUnknownFields().hashCode();
    memoizedHashCode = hash;
    return hash;
  }

  public static com.google.cloud.security.privateca.v1beta1.ReusableConfigValues parseFrom(
      java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException {
    return PARSER.parseFrom(data);
  }

  public static com.google.cloud.security.privateca.v1beta1.ReusableConfigValues parseFrom(
      java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
      throws com.google.protobuf.InvalidProtocolBufferException {
    return PARSER.parseFrom(data, extensionRegistry);
  }

  public static com.google.cloud.security.privateca.v1beta1.ReusableConfigValues parseFrom(
      com.google.protobuf.ByteString data)
      throws com.google.protobuf.InvalidProtocolBufferException {
    return PARSER.parseFrom(data);
  }

  public static com.google.cloud.security.privateca.v1beta1.ReusableConfigValues parseFrom(
      com.google.protobuf.ByteString data,
      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
      throws com.google.protobuf.InvalidProtocolBufferException {
    return PARSER.parseFrom(data, extensionRegistry);
  }

  public static com.google.cloud.security.privateca.v1beta1.ReusableConfigValues parseFrom(
      byte[] data) throws com.google.protobuf.InvalidProtocolBufferException {
    return PARSER.parseFrom(data);
  }

  public static com.google.cloud.security.privateca.v1beta1.ReusableConfigValues parseFrom(
      byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
      throws com.google.protobuf.InvalidProtocolBufferException {
    return PARSER.parseFrom(data, extensionRegistry);
  }

  public static com.google.cloud.security.privateca.v1beta1.ReusableConfigValues parseFrom(
      java.io.InputStream input) throws java.io.IOException {
    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
  }

  public static com.google.cloud.security.privateca.v1beta1.ReusableConfigValues parseFrom(
      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
      throws java.io.IOException {
    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
        PARSER, input, extensionRegistry);
  }

  public static com.google.cloud.security.privateca.v1beta1.ReusableConfigValues parseDelimitedFrom(
      java.io.InputStream input) throws java.io.IOException {
    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
  }

  public static com.google.cloud.security.privateca.v1beta1.ReusableConfigValues parseDelimitedFrom(
      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
      throws java.io.IOException {
    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
        PARSER, input, extensionRegistry);
  }

  public static com.google.cloud.security.privateca.v1beta1.ReusableConfigValues parseFrom(
      com.google.protobuf.CodedInputStream input) throws java.io.IOException {
    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
  }

  public static com.google.cloud.security.privateca.v1beta1.ReusableConfigValues parseFrom(
      com.google.protobuf.CodedInputStream input,
      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
      throws java.io.IOException {
    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
        PARSER, input, extensionRegistry);
  }

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

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

  public static Builder newBuilder(
      com.google.cloud.security.privateca.v1beta1.ReusableConfigValues prototype) {
    return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
  }

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

  @java.lang.Override
  protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
    Builder builder = new Builder(parent);
    return builder;
  }
  /**
   *
   *
   * <pre>
   * A [ReusableConfigValues][google.cloud.security.privateca.v1beta1.ReusableConfigValues] is used to describe certain fields of an
   * X.509 certificate, such as the key usage fields, fields specific to CA
   * certificates, certificate policy extensions and custom extensions.
   * </pre>
   *
   * Protobuf type {@code google.cloud.security.privateca.v1beta1.ReusableConfigValues}
   */
  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder<Builder>
      implements
      // @@protoc_insertion_point(builder_implements:google.cloud.security.privateca.v1beta1.ReusableConfigValues)
      com.google.cloud.security.privateca.v1beta1.ReusableConfigValuesOrBuilder {
    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
      return com.google.cloud.security.privateca.v1beta1.PrivateCaResourcesProto
          .internal_static_google_cloud_security_privateca_v1beta1_ReusableConfigValues_descriptor;
    }

    @java.lang.Override
    protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
        internalGetFieldAccessorTable() {
      return com.google.cloud.security.privateca.v1beta1.PrivateCaResourcesProto
          .internal_static_google_cloud_security_privateca_v1beta1_ReusableConfigValues_fieldAccessorTable
          .ensureFieldAccessorsInitialized(
              com.google.cloud.security.privateca.v1beta1.ReusableConfigValues.class,
              com.google.cloud.security.privateca.v1beta1.ReusableConfigValues.Builder.class);
    }

    // Construct using com.google.cloud.security.privateca.v1beta1.ReusableConfigValues.newBuilder()
    private Builder() {}

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

    @java.lang.Override
    public Builder clear() {
      super.clear();
      bitField0_ = 0;
      keyUsage_ = null;
      if (keyUsageBuilder_ != null) {
        keyUsageBuilder_.dispose();
        keyUsageBuilder_ = null;
      }
      caOptions_ = null;
      if (caOptionsBuilder_ != null) {
        caOptionsBuilder_.dispose();
        caOptionsBuilder_ = null;
      }
      if (policyIdsBuilder_ == null) {
        policyIds_ = java.util.Collections.emptyList();
      } else {
        policyIds_ = null;
        policyIdsBuilder_.clear();
      }
      bitField0_ = (bitField0_ & ~0x00000004);
      aiaOcspServers_ = com.google.protobuf.LazyStringArrayList.EMPTY;
      bitField0_ = (bitField0_ & ~0x00000008);
      if (additionalExtensionsBuilder_ == null) {
        additionalExtensions_ = java.util.Collections.emptyList();
      } else {
        additionalExtensions_ = null;
        additionalExtensionsBuilder_.clear();
      }
      bitField0_ = (bitField0_ & ~0x00000010);
      return this;
    }

    @java.lang.Override
    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
      return com.google.cloud.security.privateca.v1beta1.PrivateCaResourcesProto
          .internal_static_google_cloud_security_privateca_v1beta1_ReusableConfigValues_descriptor;
    }

    @java.lang.Override
    public com.google.cloud.security.privateca.v1beta1.ReusableConfigValues
        getDefaultInstanceForType() {
      return com.google.cloud.security.privateca.v1beta1.ReusableConfigValues.getDefaultInstance();
    }

    @java.lang.Override
    public com.google.cloud.security.privateca.v1beta1.ReusableConfigValues build() {
      com.google.cloud.security.privateca.v1beta1.ReusableConfigValues result = buildPartial();
      if (!result.isInitialized()) {
        throw newUninitializedMessageException(result);
      }
      return result;
    }

    @java.lang.Override
    public com.google.cloud.security.privateca.v1beta1.ReusableConfigValues buildPartial() {
      com.google.cloud.security.privateca.v1beta1.ReusableConfigValues result =
          new com.google.cloud.security.privateca.v1beta1.ReusableConfigValues(this);
      buildPartialRepeatedFields(result);
      if (bitField0_ != 0) {
        buildPartial0(result);
      }
      onBuilt();
      return result;
    }

    private void buildPartialRepeatedFields(
        com.google.cloud.security.privateca.v1beta1.ReusableConfigValues result) {
      if (policyIdsBuilder_ == null) {
        if (((bitField0_ & 0x00000004) != 0)) {
          policyIds_ = java.util.Collections.unmodifiableList(policyIds_);
          bitField0_ = (bitField0_ & ~0x00000004);
        }
        result.policyIds_ = policyIds_;
      } else {
        result.policyIds_ = policyIdsBuilder_.build();
      }
      if (((bitField0_ & 0x00000008) != 0)) {
        aiaOcspServers_ = aiaOcspServers_.getUnmodifiableView();
        bitField0_ = (bitField0_ & ~0x00000008);
      }
      result.aiaOcspServers_ = aiaOcspServers_;
      if (additionalExtensionsBuilder_ == null) {
        if (((bitField0_ & 0x00000010) != 0)) {
          additionalExtensions_ = java.util.Collections.unmodifiableList(additionalExtensions_);
          bitField0_ = (bitField0_ & ~0x00000010);
        }
        result.additionalExtensions_ = additionalExtensions_;
      } else {
        result.additionalExtensions_ = additionalExtensionsBuilder_.build();
      }
    }

    private void buildPartial0(
        com.google.cloud.security.privateca.v1beta1.ReusableConfigValues result) {
      int from_bitField0_ = bitField0_;
      if (((from_bitField0_ & 0x00000001) != 0)) {
        result.keyUsage_ = keyUsageBuilder_ == null ? keyUsage_ : keyUsageBuilder_.build();
      }
      if (((from_bitField0_ & 0x00000002) != 0)) {
        result.caOptions_ = caOptionsBuilder_ == null ? caOptions_ : caOptionsBuilder_.build();
      }
    }

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

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

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

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

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

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

    @java.lang.Override
    public Builder mergeFrom(com.google.protobuf.Message other) {
      if (other instanceof com.google.cloud.security.privateca.v1beta1.ReusableConfigValues) {
        return mergeFrom((com.google.cloud.security.privateca.v1beta1.ReusableConfigValues) other);
      } else {
        super.mergeFrom(other);
        return this;
      }
    }

    public Builder mergeFrom(
        com.google.cloud.security.privateca.v1beta1.ReusableConfigValues other) {
      if (other
          == com.google.cloud.security.privateca.v1beta1.ReusableConfigValues.getDefaultInstance())
        return this;
      if (other.hasKeyUsage()) {
        mergeKeyUsage(other.getKeyUsage());
      }
      if (other.hasCaOptions()) {
        mergeCaOptions(other.getCaOptions());
      }
      if (policyIdsBuilder_ == null) {
        if (!other.policyIds_.isEmpty()) {
          if (policyIds_.isEmpty()) {
            policyIds_ = other.policyIds_;
            bitField0_ = (bitField0_ & ~0x00000004);
          } else {
            ensurePolicyIdsIsMutable();
            policyIds_.addAll(other.policyIds_);
          }
          onChanged();
        }
      } else {
        if (!other.policyIds_.isEmpty()) {
          if (policyIdsBuilder_.isEmpty()) {
            policyIdsBuilder_.dispose();
            policyIdsBuilder_ = null;
            policyIds_ = other.policyIds_;
            bitField0_ = (bitField0_ & ~0x00000004);
            policyIdsBuilder_ =
                com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders
                    ? getPolicyIdsFieldBuilder()
                    : null;
          } else {
            policyIdsBuilder_.addAllMessages(other.policyIds_);
          }
        }
      }
      if (!other.aiaOcspServers_.isEmpty()) {
        if (aiaOcspServers_.isEmpty()) {
          aiaOcspServers_ = other.aiaOcspServers_;
          bitField0_ = (bitField0_ & ~0x00000008);
        } else {
          ensureAiaOcspServersIsMutable();
          aiaOcspServers_.addAll(other.aiaOcspServers_);
        }
        onChanged();
      }
      if (additionalExtensionsBuilder_ == null) {
        if (!other.additionalExtensions_.isEmpty()) {
          if (additionalExtensions_.isEmpty()) {
            additionalExtensions_ = other.additionalExtensions_;
            bitField0_ = (bitField0_ & ~0x00000010);
          } else {
            ensureAdditionalExtensionsIsMutable();
            additionalExtensions_.addAll(other.additionalExtensions_);
          }
          onChanged();
        }
      } else {
        if (!other.additionalExtensions_.isEmpty()) {
          if (additionalExtensionsBuilder_.isEmpty()) {
            additionalExtensionsBuilder_.dispose();
            additionalExtensionsBuilder_ = null;
            additionalExtensions_ = other.additionalExtensions_;
            bitField0_ = (bitField0_ & ~0x00000010);
            additionalExtensionsBuilder_ =
                com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders
                    ? getAdditionalExtensionsFieldBuilder()
                    : null;
          } else {
            additionalExtensionsBuilder_.addAllMessages(other.additionalExtensions_);
          }
        }
      }
      this.mergeUnknownFields(other.getUnknownFields());
      onChanged();
      return this;
    }

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

    @java.lang.Override
    public Builder mergeFrom(
        com.google.protobuf.CodedInputStream input,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws java.io.IOException {
      if (extensionRegistry == null) {
        throw new java.lang.NullPointerException();
      }
      try {
        boolean done = false;
        while (!done) {
          int tag = input.readTag();
          switch (tag) {
            case 0:
              done = true;
              break;
            case 10:
              {
                input.readMessage(getKeyUsageFieldBuilder().getBuilder(), extensionRegistry);
                bitField0_ |= 0x00000001;
                break;
              } // case 10
            case 18:
              {
                input.readMessage(getCaOptionsFieldBuilder().getBuilder(), extensionRegistry);
                bitField0_ |= 0x00000002;
                break;
              } // case 18
            case 26:
              {
                com.google.cloud.security.privateca.v1beta1.ObjectId m =
                    input.readMessage(
                        com.google.cloud.security.privateca.v1beta1.ObjectId.parser(),
                        extensionRegistry);
                if (policyIdsBuilder_ == null) {
                  ensurePolicyIdsIsMutable();
                  policyIds_.add(m);
                } else {
                  policyIdsBuilder_.addMessage(m);
                }
                break;
              } // case 26
            case 34:
              {
                java.lang.String s = input.readStringRequireUtf8();
                ensureAiaOcspServersIsMutable();
                aiaOcspServers_.add(s);
                break;
              } // case 34
            case 42:
              {
                com.google.cloud.security.privateca.v1beta1.X509Extension m =
                    input.readMessage(
                        com.google.cloud.security.privateca.v1beta1.X509Extension.parser(),
                        extensionRegistry);
                if (additionalExtensionsBuilder_ == null) {
                  ensureAdditionalExtensionsIsMutable();
                  additionalExtensions_.add(m);
                } else {
                  additionalExtensionsBuilder_.addMessage(m);
                }
                break;
              } // case 42
            default:
              {
                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
                  done = true; // was an endgroup tag
                }
                break;
              } // default:
          } // switch (tag)
        } // while (!done)
      } catch (com.google.protobuf.InvalidProtocolBufferException e) {
        throw e.unwrapIOException();
      } finally {
        onChanged();
      } // finally
      return this;
    }

    private int bitField0_;

    private com.google.cloud.security.privateca.v1beta1.KeyUsage keyUsage_;
    private com.google.protobuf.SingleFieldBuilderV3<
            com.google.cloud.security.privateca.v1beta1.KeyUsage,
            com.google.cloud.security.privateca.v1beta1.KeyUsage.Builder,
            com.google.cloud.security.privateca.v1beta1.KeyUsageOrBuilder>
        keyUsageBuilder_;
    /**
     *
     *
     * <pre>
     * Optional. Indicates the intended use for keys that correspond to a certificate.
     * </pre>
     *
     * <code>
     * .google.cloud.security.privateca.v1beta1.KeyUsage key_usage = 1 [(.google.api.field_behavior) = OPTIONAL];
     * </code>
     *
     * @return Whether the keyUsage field is set.
     */
    public boolean hasKeyUsage() {
      return ((bitField0_ & 0x00000001) != 0);
    }
    /**
     *
     *
     * <pre>
     * Optional. Indicates the intended use for keys that correspond to a certificate.
     * </pre>
     *
     * <code>
     * .google.cloud.security.privateca.v1beta1.KeyUsage key_usage = 1 [(.google.api.field_behavior) = OPTIONAL];
     * </code>
     *
     * @return The keyUsage.
     */
    public com.google.cloud.security.privateca.v1beta1.KeyUsage getKeyUsage() {
      if (keyUsageBuilder_ == null) {
        return keyUsage_ == null
            ? com.google.cloud.security.privateca.v1beta1.KeyUsage.getDefaultInstance()
            : keyUsage_;
      } else {
        return keyUsageBuilder_.getMessage();
      }
    }
    /**
     *
     *
     * <pre>
     * Optional. Indicates the intended use for keys that correspond to a certificate.
     * </pre>
     *
     * <code>
     * .google.cloud.security.privateca.v1beta1.KeyUsage key_usage = 1 [(.google.api.field_behavior) = OPTIONAL];
     * </code>
     */
    public Builder setKeyUsage(com.google.cloud.security.privateca.v1beta1.KeyUsage value) {
      if (keyUsageBuilder_ == null) {
        if (value == null) {
          throw new NullPointerException();
        }
        keyUsage_ = value;
      } else {
        keyUsageBuilder_.setMessage(value);
      }
      bitField0_ |= 0x00000001;
      onChanged();
      return this;
    }
    /**
     *
     *
     * <pre>
     * Optional. Indicates the intended use for keys that correspond to a certificate.
     * </pre>
     *
     * <code>
     * .google.cloud.security.privateca.v1beta1.KeyUsage key_usage = 1 [(.google.api.field_behavior) = OPTIONAL];
     * </code>
     */
    public Builder setKeyUsage(
        com.google.cloud.security.privateca.v1beta1.KeyUsage.Builder builderForValue) {
      if (keyUsageBuilder_ == null) {
        keyUsage_ = builderForValue.build();
      } else {
        keyUsageBuilder_.setMessage(builderForValue.build());
      }
      bitField0_ |= 0x00000001;
      onChanged();
      return this;
    }
    /**
     *
     *
     * <pre>
     * Optional. Indicates the intended use for keys that correspond to a certificate.
     * </pre>
     *
     * <code>
     * .google.cloud.security.privateca.v1beta1.KeyUsage key_usage = 1 [(.google.api.field_behavior) = OPTIONAL];
     * </code>
     */
    public Builder mergeKeyUsage(com.google.cloud.security.privateca.v1beta1.KeyUsage value) {
      if (keyUsageBuilder_ == null) {
        if (((bitField0_ & 0x00000001) != 0)
            && keyUsage_ != null
            && keyUsage_
                != com.google.cloud.security.privateca.v1beta1.KeyUsage.getDefaultInstance()) {
          getKeyUsageBuilder().mergeFrom(value);
        } else {
          keyUsage_ = value;
        }
      } else {
        keyUsageBuilder_.mergeFrom(value);
      }
      bitField0_ |= 0x00000001;
      onChanged();
      return this;
    }
    /**
     *
     *
     * <pre>
     * Optional. Indicates the intended use for keys that correspond to a certificate.
     * </pre>
     *
     * <code>
     * .google.cloud.security.privateca.v1beta1.KeyUsage key_usage = 1 [(.google.api.field_behavior) = OPTIONAL];
     * </code>
     */
    public Builder clearKeyUsage() {
      bitField0_ = (bitField0_ & ~0x00000001);
      keyUsage_ = null;
      if (keyUsageBuilder_ != null) {
        keyUsageBuilder_.dispose();
        keyUsageBuilder_ = null;
      }
      onChanged();
      return this;
    }
    /**
     *
     *
     * <pre>
     * Optional. Indicates the intended use for keys that correspond to a certificate.
     * </pre>
     *
     * <code>
     * .google.cloud.security.privateca.v1beta1.KeyUsage key_usage = 1 [(.google.api.field_behavior) = OPTIONAL];
     * </code>
     */
    public com.google.cloud.security.privateca.v1beta1.KeyUsage.Builder getKeyUsageBuilder() {
      bitField0_ |= 0x00000001;
      onChanged();
      return getKeyUsageFieldBuilder().getBuilder();
    }
    /**
     *
     *
     * <pre>
     * Optional. Indicates the intended use for keys that correspond to a certificate.
     * </pre>
     *
     * <code>
     * .google.cloud.security.privateca.v1beta1.KeyUsage key_usage = 1 [(.google.api.field_behavior) = OPTIONAL];
     * </code>
     */
    public com.google.cloud.security.privateca.v1beta1.KeyUsageOrBuilder getKeyUsageOrBuilder() {
      if (keyUsageBuilder_ != null) {
        return keyUsageBuilder_.getMessageOrBuilder();
      } else {
        return keyUsage_ == null
            ? com.google.cloud.security.privateca.v1beta1.KeyUsage.getDefaultInstance()
            : keyUsage_;
      }
    }
    /**
     *
     *
     * <pre>
     * Optional. Indicates the intended use for keys that correspond to a certificate.
     * </pre>
     *
     * <code>
     * .google.cloud.security.privateca.v1beta1.KeyUsage key_usage = 1 [(.google.api.field_behavior) = OPTIONAL];
     * </code>
     */
    private com.google.protobuf.SingleFieldBuilderV3<
            com.google.cloud.security.privateca.v1beta1.KeyUsage,
            com.google.cloud.security.privateca.v1beta1.KeyUsage.Builder,
            com.google.cloud.security.privateca.v1beta1.KeyUsageOrBuilder>
        getKeyUsageFieldBuilder() {
      if (keyUsageBuilder_ == null) {
        keyUsageBuilder_ =
            new com.google.protobuf.SingleFieldBuilderV3<
                com.google.cloud.security.privateca.v1beta1.KeyUsage,
                com.google.cloud.security.privateca.v1beta1.KeyUsage.Builder,
                com.google.cloud.security.privateca.v1beta1.KeyUsageOrBuilder>(
                getKeyUsage(), getParentForChildren(), isClean());
        keyUsage_ = null;
      }
      return keyUsageBuilder_;
    }

    private com.google.cloud.security.privateca.v1beta1.ReusableConfigValues.CaOptions caOptions_;
    private com.google.protobuf.SingleFieldBuilderV3<
            com.google.cloud.security.privateca.v1beta1.ReusableConfigValues.CaOptions,
            com.google.cloud.security.privateca.v1beta1.ReusableConfigValues.CaOptions.Builder,
            com.google.cloud.security.privateca.v1beta1.ReusableConfigValues.CaOptionsOrBuilder>
        caOptionsBuilder_;
    /**
     *
     *
     * <pre>
     * Optional. Describes options in this [ReusableConfigValues][google.cloud.security.privateca.v1beta1.ReusableConfigValues] that are
     * relevant in a CA certificate.
     * </pre>
     *
     * <code>
     * .google.cloud.security.privateca.v1beta1.ReusableConfigValues.CaOptions ca_options = 2 [(.google.api.field_behavior) = OPTIONAL];
     * </code>
     *
     * @return Whether the caOptions field is set.
     */
    public boolean hasCaOptions() {
      return ((bitField0_ & 0x00000002) != 0);
    }
    /**
     *
     *
     * <pre>
     * Optional. Describes options in this [ReusableConfigValues][google.cloud.security.privateca.v1beta1.ReusableConfigValues] that are
     * relevant in a CA certificate.
     * </pre>
     *
     * <code>
     * .google.cloud.security.privateca.v1beta1.ReusableConfigValues.CaOptions ca_options = 2 [(.google.api.field_behavior) = OPTIONAL];
     * </code>
     *
     * @return The caOptions.
     */
    public com.google.cloud.security.privateca.v1beta1.ReusableConfigValues.CaOptions
        getCaOptions() {
      if (caOptionsBuilder_ == null) {
        return caOptions_ == null
            ? com.google.cloud.security.privateca.v1beta1.ReusableConfigValues.CaOptions
                .getDefaultInstance()
            : caOptions_;
      } else {
        return caOptionsBuilder_.getMessage();
      }
    }
    /**
     *
     *
     * <pre>
     * Optional. Describes options in this [ReusableConfigValues][google.cloud.security.privateca.v1beta1.ReusableConfigValues] that are
     * relevant in a CA certificate.
     * </pre>
     *
     * <code>
     * .google.cloud.security.privateca.v1beta1.ReusableConfigValues.CaOptions ca_options = 2 [(.google.api.field_behavior) = OPTIONAL];
     * </code>
     */
    public Builder setCaOptions(
        com.google.cloud.security.privateca.v1beta1.ReusableConfigValues.CaOptions value) {
      if (caOptionsBuilder_ == null) {
        if (value == null) {
          throw new NullPointerException();
        }
        caOptions_ = value;
      } else {
        caOptionsBuilder_.setMessage(value);
      }
      bitField0_ |= 0x00000002;
      onChanged();
      return this;
    }
    /**
     *
     *
     * <pre>
     * Optional. Describes options in this [ReusableConfigValues][google.cloud.security.privateca.v1beta1.ReusableConfigValues] that are
     * relevant in a CA certificate.
     * </pre>
     *
     * <code>
     * .google.cloud.security.privateca.v1beta1.ReusableConfigValues.CaOptions ca_options = 2 [(.google.api.field_behavior) = OPTIONAL];
     * </code>
     */
    public Builder setCaOptions(
        com.google.cloud.security.privateca.v1beta1.ReusableConfigValues.CaOptions.Builder
            builderForValue) {
      if (caOptionsBuilder_ == null) {
        caOptions_ = builderForValue.build();
      } else {
        caOptionsBuilder_.setMessage(builderForValue.build());
      }
      bitField0_ |= 0x00000002;
      onChanged();
      return this;
    }
    /**
     *
     *
     * <pre>
     * Optional. Describes options in this [ReusableConfigValues][google.cloud.security.privateca.v1beta1.ReusableConfigValues] that are
     * relevant in a CA certificate.
     * </pre>
     *
     * <code>
     * .google.cloud.security.privateca.v1beta1.ReusableConfigValues.CaOptions ca_options = 2 [(.google.api.field_behavior) = OPTIONAL];
     * </code>
     */
    public Builder mergeCaOptions(
        com.google.cloud.security.privateca.v1beta1.ReusableConfigValues.CaOptions value) {
      if (caOptionsBuilder_ == null) {
        if (((bitField0_ & 0x00000002) != 0)
            && caOptions_ != null
            && caOptions_
                != com.google.cloud.security.privateca.v1beta1.ReusableConfigValues.CaOptions
                    .getDefaultInstance()) {
          getCaOptionsBuilder().mergeFrom(value);
        } else {
          caOptions_ = value;
        }
      } else {
        caOptionsBuilder_.mergeFrom(value);
      }
      bitField0_ |= 0x00000002;
      onChanged();
      return this;
    }
    /**
     *
     *
     * <pre>
     * Optional. Describes options in this [ReusableConfigValues][google.cloud.security.privateca.v1beta1.ReusableConfigValues] that are
     * relevant in a CA certificate.
     * </pre>
     *
     * <code>
     * .google.cloud.security.privateca.v1beta1.ReusableConfigValues.CaOptions ca_options = 2 [(.google.api.field_behavior) = OPTIONAL];
     * </code>
     */
    public Builder clearCaOptions() {
      bitField0_ = (bitField0_ & ~0x00000002);
      caOptions_ = null;
      if (caOptionsBuilder_ != null) {
        caOptionsBuilder_.dispose();
        caOptionsBuilder_ = null;
      }
      onChanged();
      return this;
    }
    /**
     *
     *
     * <pre>
     * Optional. Describes options in this [ReusableConfigValues][google.cloud.security.privateca.v1beta1.ReusableConfigValues] that are
     * relevant in a CA certificate.
     * </pre>
     *
     * <code>
     * .google.cloud.security.privateca.v1beta1.ReusableConfigValues.CaOptions ca_options = 2 [(.google.api.field_behavior) = OPTIONAL];
     * </code>
     */
    public com.google.cloud.security.privateca.v1beta1.ReusableConfigValues.CaOptions.Builder
        getCaOptionsBuilder() {
      bitField0_ |= 0x00000002;
      onChanged();
      return getCaOptionsFieldBuilder().getBuilder();
    }
    /**
     *
     *
     * <pre>
     * Optional. Describes options in this [ReusableConfigValues][google.cloud.security.privateca.v1beta1.ReusableConfigValues] that are
     * relevant in a CA certificate.
     * </pre>
     *
     * <code>
     * .google.cloud.security.privateca.v1beta1.ReusableConfigValues.CaOptions ca_options = 2 [(.google.api.field_behavior) = OPTIONAL];
     * </code>
     */
    public com.google.cloud.security.privateca.v1beta1.ReusableConfigValues.CaOptionsOrBuilder
        getCaOptionsOrBuilder() {
      if (caOptionsBuilder_ != null) {
        return caOptionsBuilder_.getMessageOrBuilder();
      } else {
        return caOptions_ == null
            ? com.google.cloud.security.privateca.v1beta1.ReusableConfigValues.CaOptions
                .getDefaultInstance()
            : caOptions_;
      }
    }
    /**
     *
     *
     * <pre>
     * Optional. Describes options in this [ReusableConfigValues][google.cloud.security.privateca.v1beta1.ReusableConfigValues] that are
     * relevant in a CA certificate.
     * </pre>
     *
     * <code>
     * .google.cloud.security.privateca.v1beta1.ReusableConfigValues.CaOptions ca_options = 2 [(.google.api.field_behavior) = OPTIONAL];
     * </code>
     */
    private com.google.protobuf.SingleFieldBuilderV3<
            com.google.cloud.security.privateca.v1beta1.ReusableConfigValues.CaOptions,
            com.google.cloud.security.privateca.v1beta1.ReusableConfigValues.CaOptions.Builder,
            com.google.cloud.security.privateca.v1beta1.ReusableConfigValues.CaOptionsOrBuilder>
        getCaOptionsFieldBuilder() {
      if (caOptionsBuilder_ == null) {
        caOptionsBuilder_ =
            new com.google.protobuf.SingleFieldBuilderV3<
                com.google.cloud.security.privateca.v1beta1.ReusableConfigValues.CaOptions,
                com.google.cloud.security.privateca.v1beta1.ReusableConfigValues.CaOptions.Builder,
                com.google.cloud.security.privateca.v1beta1.ReusableConfigValues
                    .CaOptionsOrBuilder>(getCaOptions(), getParentForChildren(), isClean());
        caOptions_ = null;
      }
      return caOptionsBuilder_;
    }

    private java.util.List<com.google.cloud.security.privateca.v1beta1.ObjectId> policyIds_ =
        java.util.Collections.emptyList();

    private void ensurePolicyIdsIsMutable() {
      if (!((bitField0_ & 0x00000004) != 0)) {
        policyIds_ =
            new java.util.ArrayList<com.google.cloud.security.privateca.v1beta1.ObjectId>(
                policyIds_);
        bitField0_ |= 0x00000004;
      }
    }

    private com.google.protobuf.RepeatedFieldBuilderV3<
            com.google.cloud.security.privateca.v1beta1.ObjectId,
            com.google.cloud.security.privateca.v1beta1.ObjectId.Builder,
            com.google.cloud.security.privateca.v1beta1.ObjectIdOrBuilder>
        policyIdsBuilder_;

    /**
     *
     *
     * <pre>
     * Optional. Describes the X.509 certificate policy object identifiers, per
     * https://tools.ietf.org/html/rfc5280#section-4.2.1.4.
     * </pre>
     *
     * <code>
     * repeated .google.cloud.security.privateca.v1beta1.ObjectId policy_ids = 3 [(.google.api.field_behavior) = OPTIONAL];
     * </code>
     */
    public java.util.List<com.google.cloud.security.privateca.v1beta1.ObjectId> getPolicyIdsList() {
      if (policyIdsBuilder_ == null) {
        return java.util.Collections.unmodifiableList(policyIds_);
      } else {
        return policyIdsBuilder_.getMessageList();
      }
    }
    /**
     *
     *
     * <pre>
     * Optional. Describes the X.509 certificate policy object identifiers, per
     * https://tools.ietf.org/html/rfc5280#section-4.2.1.4.
     * </pre>
     *
     * <code>
     * repeated .google.cloud.security.privateca.v1beta1.ObjectId policy_ids = 3 [(.google.api.field_behavior) = OPTIONAL];
     * </code>
     */
    public int getPolicyIdsCount() {
      if (policyIdsBuilder_ == null) {
        return policyIds_.size();
      } else {
        return policyIdsBuilder_.getCount();
      }
    }
    /**
     *
     *
     * <pre>
     * Optional. Describes the X.509 certificate policy object identifiers, per
     * https://tools.ietf.org/html/rfc5280#section-4.2.1.4.
     * </pre>
     *
     * <code>
     * repeated .google.cloud.security.privateca.v1beta1.ObjectId policy_ids = 3 [(.google.api.field_behavior) = OPTIONAL];
     * </code>
     */
    public com.google.cloud.security.privateca.v1beta1.ObjectId getPolicyIds(int index) {
      if (policyIdsBuilder_ == null) {
        return policyIds_.get(index);
      } else {
        return policyIdsBuilder_.getMessage(index);
      }
    }
    /**
     *
     *
     * <pre>
     * Optional. Describes the X.509 certificate policy object identifiers, per
     * https://tools.ietf.org/html/rfc5280#section-4.2.1.4.
     * </pre>
     *
     * <code>
     * repeated .google.cloud.security.privateca.v1beta1.ObjectId policy_ids = 3 [(.google.api.field_behavior) = OPTIONAL];
     * </code>
     */
    public Builder setPolicyIds(
        int index, com.google.cloud.security.privateca.v1beta1.ObjectId value) {
      if (policyIdsBuilder_ == null) {
        if (value == null) {
          throw new NullPointerException();
        }
        ensurePolicyIdsIsMutable();
        policyIds_.set(index, value);
        onChanged();
      } else {
        policyIdsBuilder_.setMessage(index, value);
      }
      return this;
    }
    /**
     *
     *
     * <pre>
     * Optional. Describes the X.509 certificate policy object identifiers, per
     * https://tools.ietf.org/html/rfc5280#section-4.2.1.4.
     * </pre>
     *
     * <code>
     * repeated .google.cloud.security.privateca.v1beta1.ObjectId policy_ids = 3 [(.google.api.field_behavior) = OPTIONAL];
     * </code>
     */
    public Builder setPolicyIds(
        int index, com.google.cloud.security.privateca.v1beta1.ObjectId.Builder builderForValue) {
      if (policyIdsBuilder_ == null) {
        ensurePolicyIdsIsMutable();
        policyIds_.set(index, builderForValue.build());
        onChanged();
      } else {
        policyIdsBuilder_.setMessage(index, builderForValue.build());
      }
      return this;
    }
    /**
     *
     *
     * <pre>
     * Optional. Describes the X.509 certificate policy object identifiers, per
     * https://tools.ietf.org/html/rfc5280#section-4.2.1.4.
     * </pre>
     *
     * <code>
     * repeated .google.cloud.security.privateca.v1beta1.ObjectId policy_ids = 3 [(.google.api.field_behavior) = OPTIONAL];
     * </code>
     */
    public Builder addPolicyIds(com.google.cloud.security.privateca.v1beta1.ObjectId value) {
      if (policyIdsBuilder_ == null) {
        if (value == null) {
          throw new NullPointerException();
        }
        ensurePolicyIdsIsMutable();
        policyIds_.add(value);
        onChanged();
      } else {
        policyIdsBuilder_.addMessage(value);
      }
      return this;
    }
    /**
     *
     *
     * <pre>
     * Optional. Describes the X.509 certificate policy object identifiers, per
     * https://tools.ietf.org/html/rfc5280#section-4.2.1.4.
     * </pre>
     *
     * <code>
     * repeated .google.cloud.security.privateca.v1beta1.ObjectId policy_ids = 3 [(.google.api.field_behavior) = OPTIONAL];
     * </code>
     */
    public Builder addPolicyIds(
        int index, com.google.cloud.security.privateca.v1beta1.ObjectId value) {
      if (policyIdsBuilder_ == null) {
        if (value == null) {
          throw new NullPointerException();
        }
        ensurePolicyIdsIsMutable();
        policyIds_.add(index, value);
        onChanged();
      } else {
        policyIdsBuilder_.addMessage(index, value);
      }
      return this;
    }
    /**
     *
     *
     * <pre>
     * Optional. Describes the X.509 certificate policy object identifiers, per
     * https://tools.ietf.org/html/rfc5280#section-4.2.1.4.
     * </pre>
     *
     * <code>
     * repeated .google.cloud.security.privateca.v1beta1.ObjectId policy_ids = 3 [(.google.api.field_behavior) = OPTIONAL];
     * </code>
     */
    public Builder addPolicyIds(
        com.google.cloud.security.privateca.v1beta1.ObjectId.Builder builderForValue) {
      if (policyIdsBuilder_ == null) {
        ensurePolicyIdsIsMutable();
        policyIds_.add(builderForValue.build());
        onChanged();
      } else {
        policyIdsBuilder_.addMessage(builderForValue.build());
      }
      return this;
    }
    /**
     *
     *
     * <pre>
     * Optional. Describes the X.509 certificate policy object identifiers, per
     * https://tools.ietf.org/html/rfc5280#section-4.2.1.4.
     * </pre>
     *
     * <code>
     * repeated .google.cloud.security.privateca.v1beta1.ObjectId policy_ids = 3 [(.google.api.field_behavior) = OPTIONAL];
     * </code>
     */
    public Builder addPolicyIds(
        int index, com.google.cloud.security.privateca.v1beta1.ObjectId.Builder builderForValue) {
      if (policyIdsBuilder_ == null) {
        ensurePolicyIdsIsMutable();
        policyIds_.add(index, builderForValue.build());
        onChanged();
      } else {
        policyIdsBuilder_.addMessage(index, builderForValue.build());
      }
      return this;
    }
    /**
     *
     *
     * <pre>
     * Optional. Describes the X.509 certificate policy object identifiers, per
     * https://tools.ietf.org/html/rfc5280#section-4.2.1.4.
     * </pre>
     *
     * <code>
     * repeated .google.cloud.security.privateca.v1beta1.ObjectId policy_ids = 3 [(.google.api.field_behavior) = OPTIONAL];
     * </code>
     */
    public Builder addAllPolicyIds(
        java.lang.Iterable<? extends com.google.cloud.security.privateca.v1beta1.ObjectId> values) {
      if (policyIdsBuilder_ == null) {
        ensurePolicyIdsIsMutable();
        com.google.protobuf.AbstractMessageLite.Builder.addAll(values, policyIds_);
        onChanged();
      } else {
        policyIdsBuilder_.addAllMessages(values);
      }
      return this;
    }
    /**
     *
     *
     * <pre>
     * Optional. Describes the X.509 certificate policy object identifiers, per
     * https://tools.ietf.org/html/rfc5280#section-4.2.1.4.
     * </pre>
     *
     * <code>
     * repeated .google.cloud.security.privateca.v1beta1.ObjectId policy_ids = 3 [(.google.api.field_behavior) = OPTIONAL];
     * </code>
     */
    public Builder clearPolicyIds() {
      if (policyIdsBuilder_ == null) {
        policyIds_ = java.util.Collections.emptyList();
        bitField0_ = (bitField0_ & ~0x00000004);
        onChanged();
      } else {
        policyIdsBuilder_.clear();
      }
      return this;
    }
    /**
     *
     *
     * <pre>
     * Optional. Describes the X.509 certificate policy object identifiers, per
     * https://tools.ietf.org/html/rfc5280#section-4.2.1.4.
     * </pre>
     *
     * <code>
     * repeated .google.cloud.security.privateca.v1beta1.ObjectId policy_ids = 3 [(.google.api.field_behavior) = OPTIONAL];
     * </code>
     */
    public Builder removePolicyIds(int index) {
      if (policyIdsBuilder_ == null) {
        ensurePolicyIdsIsMutable();
        policyIds_.remove(index);
        onChanged();
      } else {
        policyIdsBuilder_.remove(index);
      }
      return this;
    }
    /**
     *
     *
     * <pre>
     * Optional. Describes the X.509 certificate policy object identifiers, per
     * https://tools.ietf.org/html/rfc5280#section-4.2.1.4.
     * </pre>
     *
     * <code>
     * repeated .google.cloud.security.privateca.v1beta1.ObjectId policy_ids = 3 [(.google.api.field_behavior) = OPTIONAL];
     * </code>
     */
    public com.google.cloud.security.privateca.v1beta1.ObjectId.Builder getPolicyIdsBuilder(
        int index) {
      return getPolicyIdsFieldBuilder().getBuilder(index);
    }
    /**
     *
     *
     * <pre>
     * Optional. Describes the X.509 certificate policy object identifiers, per
     * https://tools.ietf.org/html/rfc5280#section-4.2.1.4.
     * </pre>
     *
     * <code>
     * repeated .google.cloud.security.privateca.v1beta1.ObjectId policy_ids = 3 [(.google.api.field_behavior) = OPTIONAL];
     * </code>
     */
    public com.google.cloud.security.privateca.v1beta1.ObjectIdOrBuilder getPolicyIdsOrBuilder(
        int index) {
      if (policyIdsBuilder_ == null) {
        return policyIds_.get(index);
      } else {
        return policyIdsBuilder_.getMessageOrBuilder(index);
      }
    }
    /**
     *
     *
     * <pre>
     * Optional. Describes the X.509 certificate policy object identifiers, per
     * https://tools.ietf.org/html/rfc5280#section-4.2.1.4.
     * </pre>
     *
     * <code>
     * repeated .google.cloud.security.privateca.v1beta1.ObjectId policy_ids = 3 [(.google.api.field_behavior) = OPTIONAL];
     * </code>
     */
    public java.util.List<? extends com.google.cloud.security.privateca.v1beta1.ObjectIdOrBuilder>
        getPolicyIdsOrBuilderList() {
      if (policyIdsBuilder_ != null) {
        return policyIdsBuilder_.getMessageOrBuilderList();
      } else {
        return java.util.Collections.unmodifiableList(policyIds_);
      }
    }
    /**
     *
     *
     * <pre>
     * Optional. Describes the X.509 certificate policy object identifiers, per
     * https://tools.ietf.org/html/rfc5280#section-4.2.1.4.
     * </pre>
     *
     * <code>
     * repeated .google.cloud.security.privateca.v1beta1.ObjectId policy_ids = 3 [(.google.api.field_behavior) = OPTIONAL];
     * </code>
     */
    public com.google.cloud.security.privateca.v1beta1.ObjectId.Builder addPolicyIdsBuilder() {
      return getPolicyIdsFieldBuilder()
          .addBuilder(com.google.cloud.security.privateca.v1beta1.ObjectId.getDefaultInstance());
    }
    /**
     *
     *
     * <pre>
     * Optional. Describes the X.509 certificate policy object identifiers, per
     * https://tools.ietf.org/html/rfc5280#section-4.2.1.4.
     * </pre>
     *
     * <code>
     * repeated .google.cloud.security.privateca.v1beta1.ObjectId policy_ids = 3 [(.google.api.field_behavior) = OPTIONAL];
     * </code>
     */
    public com.google.cloud.security.privateca.v1beta1.ObjectId.Builder addPolicyIdsBuilder(
        int index) {
      return getPolicyIdsFieldBuilder()
          .addBuilder(
              index, com.google.cloud.security.privateca.v1beta1.ObjectId.getDefaultInstance());
    }
    /**
     *
     *
     * <pre>
     * Optional. Describes the X.509 certificate policy object identifiers, per
     * https://tools.ietf.org/html/rfc5280#section-4.2.1.4.
     * </pre>
     *
     * <code>
     * repeated .google.cloud.security.privateca.v1beta1.ObjectId policy_ids = 3 [(.google.api.field_behavior) = OPTIONAL];
     * </code>
     */
    public java.util.List<com.google.cloud.security.privateca.v1beta1.ObjectId.Builder>
        getPolicyIdsBuilderList() {
      return getPolicyIdsFieldBuilder().getBuilderList();
    }

    private com.google.protobuf.RepeatedFieldBuilderV3<
            com.google.cloud.security.privateca.v1beta1.ObjectId,
            com.google.cloud.security.privateca.v1beta1.ObjectId.Builder,
            com.google.cloud.security.privateca.v1beta1.ObjectIdOrBuilder>
        getPolicyIdsFieldBuilder() {
      if (policyIdsBuilder_ == null) {
        policyIdsBuilder_ =
            new com.google.protobuf.RepeatedFieldBuilderV3<
                com.google.cloud.security.privateca.v1beta1.ObjectId,
                com.google.cloud.security.privateca.v1beta1.ObjectId.Builder,
                com.google.cloud.security.privateca.v1beta1.ObjectIdOrBuilder>(
                policyIds_, ((bitField0_ & 0x00000004) != 0), getParentForChildren(), isClean());
        policyIds_ = null;
      }
      return policyIdsBuilder_;
    }

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

    private void ensureAiaOcspServersIsMutable() {
      if (!((bitField0_ & 0x00000008) != 0)) {
        aiaOcspServers_ = new com.google.protobuf.LazyStringArrayList(aiaOcspServers_);
        bitField0_ |= 0x00000008;
      }
    }
    /**
     *
     *
     * <pre>
     * Optional. Describes Online Certificate Status Protocol (OCSP) endpoint addresses
     * that appear in the "Authority Information Access" extension in the
     * certificate.
     * </pre>
     *
     * <code>repeated string aia_ocsp_servers = 4 [(.google.api.field_behavior) = OPTIONAL];</code>
     *
     * @return A list containing the aiaOcspServers.
     */
    public com.google.protobuf.ProtocolStringList getAiaOcspServersList() {
      return aiaOcspServers_.getUnmodifiableView();
    }
    /**
     *
     *
     * <pre>
     * Optional. Describes Online Certificate Status Protocol (OCSP) endpoint addresses
     * that appear in the "Authority Information Access" extension in the
     * certificate.
     * </pre>
     *
     * <code>repeated string aia_ocsp_servers = 4 [(.google.api.field_behavior) = OPTIONAL];</code>
     *
     * @return The count of aiaOcspServers.
     */
    public int getAiaOcspServersCount() {
      return aiaOcspServers_.size();
    }
    /**
     *
     *
     * <pre>
     * Optional. Describes Online Certificate Status Protocol (OCSP) endpoint addresses
     * that appear in the "Authority Information Access" extension in the
     * certificate.
     * </pre>
     *
     * <code>repeated string aia_ocsp_servers = 4 [(.google.api.field_behavior) = OPTIONAL];</code>
     *
     * @param index The index of the element to return.
     * @return The aiaOcspServers at the given index.
     */
    public java.lang.String getAiaOcspServers(int index) {
      return aiaOcspServers_.get(index);
    }
    /**
     *
     *
     * <pre>
     * Optional. Describes Online Certificate Status Protocol (OCSP) endpoint addresses
     * that appear in the "Authority Information Access" extension in the
     * certificate.
     * </pre>
     *
     * <code>repeated string aia_ocsp_servers = 4 [(.google.api.field_behavior) = OPTIONAL];</code>
     *
     * @param index The index of the value to return.
     * @return The bytes of the aiaOcspServers at the given index.
     */
    public com.google.protobuf.ByteString getAiaOcspServersBytes(int index) {
      return aiaOcspServers_.getByteString(index);
    }
    /**
     *
     *
     * <pre>
     * Optional. Describes Online Certificate Status Protocol (OCSP) endpoint addresses
     * that appear in the "Authority Information Access" extension in the
     * certificate.
     * </pre>
     *
     * <code>repeated string aia_ocsp_servers = 4 [(.google.api.field_behavior) = OPTIONAL];</code>
     *
     * @param index The index to set the value at.
     * @param value The aiaOcspServers to set.
     * @return This builder for chaining.
     */
    public Builder setAiaOcspServers(int index, java.lang.String value) {
      if (value == null) {
        throw new NullPointerException();
      }
      ensureAiaOcspServersIsMutable();
      aiaOcspServers_.set(index, value);
      onChanged();
      return this;
    }
    /**
     *
     *
     * <pre>
     * Optional. Describes Online Certificate Status Protocol (OCSP) endpoint addresses
     * that appear in the "Authority Information Access" extension in the
     * certificate.
     * </pre>
     *
     * <code>repeated string aia_ocsp_servers = 4 [(.google.api.field_behavior) = OPTIONAL];</code>
     *
     * @param value The aiaOcspServers to add.
     * @return This builder for chaining.
     */
    public Builder addAiaOcspServers(java.lang.String value) {
      if (value == null) {
        throw new NullPointerException();
      }
      ensureAiaOcspServersIsMutable();
      aiaOcspServers_.add(value);
      onChanged();
      return this;
    }
    /**
     *
     *
     * <pre>
     * Optional. Describes Online Certificate Status Protocol (OCSP) endpoint addresses
     * that appear in the "Authority Information Access" extension in the
     * certificate.
     * </pre>
     *
     * <code>repeated string aia_ocsp_servers = 4 [(.google.api.field_behavior) = OPTIONAL];</code>
     *
     * @param values The aiaOcspServers to add.
     * @return This builder for chaining.
     */
    public Builder addAllAiaOcspServers(java.lang.Iterable<java.lang.String> values) {
      ensureAiaOcspServersIsMutable();
      com.google.protobuf.AbstractMessageLite.Builder.addAll(values, aiaOcspServers_);
      onChanged();
      return this;
    }
    /**
     *
     *
     * <pre>
     * Optional. Describes Online Certificate Status Protocol (OCSP) endpoint addresses
     * that appear in the "Authority Information Access" extension in the
     * certificate.
     * </pre>
     *
     * <code>repeated string aia_ocsp_servers = 4 [(.google.api.field_behavior) = OPTIONAL];</code>
     *
     * @return This builder for chaining.
     */
    public Builder clearAiaOcspServers() {
      aiaOcspServers_ = com.google.protobuf.LazyStringArrayList.EMPTY;
      bitField0_ = (bitField0_ & ~0x00000008);
      onChanged();
      return this;
    }
    /**
     *
     *
     * <pre>
     * Optional. Describes Online Certificate Status Protocol (OCSP) endpoint addresses
     * that appear in the "Authority Information Access" extension in the
     * certificate.
     * </pre>
     *
     * <code>repeated string aia_ocsp_servers = 4 [(.google.api.field_behavior) = OPTIONAL];</code>
     *
     * @param value The bytes of the aiaOcspServers to add.
     * @return This builder for chaining.
     */
    public Builder addAiaOcspServersBytes(com.google.protobuf.ByteString value) {
      if (value == null) {
        throw new NullPointerException();
      }
      checkByteStringIsUtf8(value);
      ensureAiaOcspServersIsMutable();
      aiaOcspServers_.add(value);
      onChanged();
      return this;
    }

    private java.util.List<com.google.cloud.security.privateca.v1beta1.X509Extension>
        additionalExtensions_ = java.util.Collections.emptyList();

    private void ensureAdditionalExtensionsIsMutable() {
      if (!((bitField0_ & 0x00000010) != 0)) {
        additionalExtensions_ =
            new java.util.ArrayList<com.google.cloud.security.privateca.v1beta1.X509Extension>(
                additionalExtensions_);
        bitField0_ |= 0x00000010;
      }
    }

    private com.google.protobuf.RepeatedFieldBuilderV3<
            com.google.cloud.security.privateca.v1beta1.X509Extension,
            com.google.cloud.security.privateca.v1beta1.X509Extension.Builder,
            com.google.cloud.security.privateca.v1beta1.X509ExtensionOrBuilder>
        additionalExtensionsBuilder_;

    /**
     *
     *
     * <pre>
     * Optional. Describes custom X.509 extensions.
     * </pre>
     *
     * <code>
     * repeated .google.cloud.security.privateca.v1beta1.X509Extension additional_extensions = 5 [(.google.api.field_behavior) = OPTIONAL];
     * </code>
     */
    public java.util.List<com.google.cloud.security.privateca.v1beta1.X509Extension>
        getAdditionalExtensionsList() {
      if (additionalExtensionsBuilder_ == null) {
        return java.util.Collections.unmodifiableList(additionalExtensions_);
      } else {
        return additionalExtensionsBuilder_.getMessageList();
      }
    }
    /**
     *
     *
     * <pre>
     * Optional. Describes custom X.509 extensions.
     * </pre>
     *
     * <code>
     * repeated .google.cloud.security.privateca.v1beta1.X509Extension additional_extensions = 5 [(.google.api.field_behavior) = OPTIONAL];
     * </code>
     */
    public int getAdditionalExtensionsCount() {
      if (additionalExtensionsBuilder_ == null) {
        return additionalExtensions_.size();
      } else {
        return additionalExtensionsBuilder_.getCount();
      }
    }
    /**
     *
     *
     * <pre>
     * Optional. Describes custom X.509 extensions.
     * </pre>
     *
     * <code>
     * repeated .google.cloud.security.privateca.v1beta1.X509Extension additional_extensions = 5 [(.google.api.field_behavior) = OPTIONAL];
     * </code>
     */
    public com.google.cloud.security.privateca.v1beta1.X509Extension getAdditionalExtensions(
        int index) {
      if (additionalExtensionsBuilder_ == null) {
        return additionalExtensions_.get(index);
      } else {
        return additionalExtensionsBuilder_.getMessage(index);
      }
    }
    /**
     *
     *
     * <pre>
     * Optional. Describes custom X.509 extensions.
     * </pre>
     *
     * <code>
     * repeated .google.cloud.security.privateca.v1beta1.X509Extension additional_extensions = 5 [(.google.api.field_behavior) = OPTIONAL];
     * </code>
     */
    public Builder setAdditionalExtensions(
        int index, com.google.cloud.security.privateca.v1beta1.X509Extension value) {
      if (additionalExtensionsBuilder_ == null) {
        if (value == null) {
          throw new NullPointerException();
        }
        ensureAdditionalExtensionsIsMutable();
        additionalExtensions_.set(index, value);
        onChanged();
      } else {
        additionalExtensionsBuilder_.setMessage(index, value);
      }
      return this;
    }
    /**
     *
     *
     * <pre>
     * Optional. Describes custom X.509 extensions.
     * </pre>
     *
     * <code>
     * repeated .google.cloud.security.privateca.v1beta1.X509Extension additional_extensions = 5 [(.google.api.field_behavior) = OPTIONAL];
     * </code>
     */
    public Builder setAdditionalExtensions(
        int index,
        com.google.cloud.security.privateca.v1beta1.X509Extension.Builder builderForValue) {
      if (additionalExtensionsBuilder_ == null) {
        ensureAdditionalExtensionsIsMutable();
        additionalExtensions_.set(index, builderForValue.build());
        onChanged();
      } else {
        additionalExtensionsBuilder_.setMessage(index, builderForValue.build());
      }
      return this;
    }
    /**
     *
     *
     * <pre>
     * Optional. Describes custom X.509 extensions.
     * </pre>
     *
     * <code>
     * repeated .google.cloud.security.privateca.v1beta1.X509Extension additional_extensions = 5 [(.google.api.field_behavior) = OPTIONAL];
     * </code>
     */
    public Builder addAdditionalExtensions(
        com.google.cloud.security.privateca.v1beta1.X509Extension value) {
      if (additionalExtensionsBuilder_ == null) {
        if (value == null) {
          throw new NullPointerException();
        }
        ensureAdditionalExtensionsIsMutable();
        additionalExtensions_.add(value);
        onChanged();
      } else {
        additionalExtensionsBuilder_.addMessage(value);
      }
      return this;
    }
    /**
     *
     *
     * <pre>
     * Optional. Describes custom X.509 extensions.
     * </pre>
     *
     * <code>
     * repeated .google.cloud.security.privateca.v1beta1.X509Extension additional_extensions = 5 [(.google.api.field_behavior) = OPTIONAL];
     * </code>
     */
    public Builder addAdditionalExtensions(
        int index, com.google.cloud.security.privateca.v1beta1.X509Extension value) {
      if (additionalExtensionsBuilder_ == null) {
        if (value == null) {
          throw new NullPointerException();
        }
        ensureAdditionalExtensionsIsMutable();
        additionalExtensions_.add(index, value);
        onChanged();
      } else {
        additionalExtensionsBuilder_.addMessage(index, value);
      }
      return this;
    }
    /**
     *
     *
     * <pre>
     * Optional. Describes custom X.509 extensions.
     * </pre>
     *
     * <code>
     * repeated .google.cloud.security.privateca.v1beta1.X509Extension additional_extensions = 5 [(.google.api.field_behavior) = OPTIONAL];
     * </code>
     */
    public Builder addAdditionalExtensions(
        com.google.cloud.security.privateca.v1beta1.X509Extension.Builder builderForValue) {
      if (additionalExtensionsBuilder_ == null) {
        ensureAdditionalExtensionsIsMutable();
        additionalExtensions_.add(builderForValue.build());
        onChanged();
      } else {
        additionalExtensionsBuilder_.addMessage(builderForValue.build());
      }
      return this;
    }
    /**
     *
     *
     * <pre>
     * Optional. Describes custom X.509 extensions.
     * </pre>
     *
     * <code>
     * repeated .google.cloud.security.privateca.v1beta1.X509Extension additional_extensions = 5 [(.google.api.field_behavior) = OPTIONAL];
     * </code>
     */
    public Builder addAdditionalExtensions(
        int index,
        com.google.cloud.security.privateca.v1beta1.X509Extension.Builder builderForValue) {
      if (additionalExtensionsBuilder_ == null) {
        ensureAdditionalExtensionsIsMutable();
        additionalExtensions_.add(index, builderForValue.build());
        onChanged();
      } else {
        additionalExtensionsBuilder_.addMessage(index, builderForValue.build());
      }
      return this;
    }
    /**
     *
     *
     * <pre>
     * Optional. Describes custom X.509 extensions.
     * </pre>
     *
     * <code>
     * repeated .google.cloud.security.privateca.v1beta1.X509Extension additional_extensions = 5 [(.google.api.field_behavior) = OPTIONAL];
     * </code>
     */
    public Builder addAllAdditionalExtensions(
        java.lang.Iterable<? extends com.google.cloud.security.privateca.v1beta1.X509Extension>
            values) {
      if (additionalExtensionsBuilder_ == null) {
        ensureAdditionalExtensionsIsMutable();
        com.google.protobuf.AbstractMessageLite.Builder.addAll(values, additionalExtensions_);
        onChanged();
      } else {
        additionalExtensionsBuilder_.addAllMessages(values);
      }
      return this;
    }
    /**
     *
     *
     * <pre>
     * Optional. Describes custom X.509 extensions.
     * </pre>
     *
     * <code>
     * repeated .google.cloud.security.privateca.v1beta1.X509Extension additional_extensions = 5 [(.google.api.field_behavior) = OPTIONAL];
     * </code>
     */
    public Builder clearAdditionalExtensions() {
      if (additionalExtensionsBuilder_ == null) {
        additionalExtensions_ = java.util.Collections.emptyList();
        bitField0_ = (bitField0_ & ~0x00000010);
        onChanged();
      } else {
        additionalExtensionsBuilder_.clear();
      }
      return this;
    }
    /**
     *
     *
     * <pre>
     * Optional. Describes custom X.509 extensions.
     * </pre>
     *
     * <code>
     * repeated .google.cloud.security.privateca.v1beta1.X509Extension additional_extensions = 5 [(.google.api.field_behavior) = OPTIONAL];
     * </code>
     */
    public Builder removeAdditionalExtensions(int index) {
      if (additionalExtensionsBuilder_ == null) {
        ensureAdditionalExtensionsIsMutable();
        additionalExtensions_.remove(index);
        onChanged();
      } else {
        additionalExtensionsBuilder_.remove(index);
      }
      return this;
    }
    /**
     *
     *
     * <pre>
     * Optional. Describes custom X.509 extensions.
     * </pre>
     *
     * <code>
     * repeated .google.cloud.security.privateca.v1beta1.X509Extension additional_extensions = 5 [(.google.api.field_behavior) = OPTIONAL];
     * </code>
     */
    public com.google.cloud.security.privateca.v1beta1.X509Extension.Builder
        getAdditionalExtensionsBuilder(int index) {
      return getAdditionalExtensionsFieldBuilder().getBuilder(index);
    }
    /**
     *
     *
     * <pre>
     * Optional. Describes custom X.509 extensions.
     * </pre>
     *
     * <code>
     * repeated .google.cloud.security.privateca.v1beta1.X509Extension additional_extensions = 5 [(.google.api.field_behavior) = OPTIONAL];
     * </code>
     */
    public com.google.cloud.security.privateca.v1beta1.X509ExtensionOrBuilder
        getAdditionalExtensionsOrBuilder(int index) {
      if (additionalExtensionsBuilder_ == null) {
        return additionalExtensions_.get(index);
      } else {
        return additionalExtensionsBuilder_.getMessageOrBuilder(index);
      }
    }
    /**
     *
     *
     * <pre>
     * Optional. Describes custom X.509 extensions.
     * </pre>
     *
     * <code>
     * repeated .google.cloud.security.privateca.v1beta1.X509Extension additional_extensions = 5 [(.google.api.field_behavior) = OPTIONAL];
     * </code>
     */
    public java.util.List<
            ? extends com.google.cloud.security.privateca.v1beta1.X509ExtensionOrBuilder>
        getAdditionalExtensionsOrBuilderList() {
      if (additionalExtensionsBuilder_ != null) {
        return additionalExtensionsBuilder_.getMessageOrBuilderList();
      } else {
        return java.util.Collections.unmodifiableList(additionalExtensions_);
      }
    }
    /**
     *
     *
     * <pre>
     * Optional. Describes custom X.509 extensions.
     * </pre>
     *
     * <code>
     * repeated .google.cloud.security.privateca.v1beta1.X509Extension additional_extensions = 5 [(.google.api.field_behavior) = OPTIONAL];
     * </code>
     */
    public com.google.cloud.security.privateca.v1beta1.X509Extension.Builder
        addAdditionalExtensionsBuilder() {
      return getAdditionalExtensionsFieldBuilder()
          .addBuilder(
              com.google.cloud.security.privateca.v1beta1.X509Extension.getDefaultInstance());
    }
    /**
     *
     *
     * <pre>
     * Optional. Describes custom X.509 extensions.
     * </pre>
     *
     * <code>
     * repeated .google.cloud.security.privateca.v1beta1.X509Extension additional_extensions = 5 [(.google.api.field_behavior) = OPTIONAL];
     * </code>
     */
    public com.google.cloud.security.privateca.v1beta1.X509Extension.Builder
        addAdditionalExtensionsBuilder(int index) {
      return getAdditionalExtensionsFieldBuilder()
          .addBuilder(
              index,
              com.google.cloud.security.privateca.v1beta1.X509Extension.getDefaultInstance());
    }
    /**
     *
     *
     * <pre>
     * Optional. Describes custom X.509 extensions.
     * </pre>
     *
     * <code>
     * repeated .google.cloud.security.privateca.v1beta1.X509Extension additional_extensions = 5 [(.google.api.field_behavior) = OPTIONAL];
     * </code>
     */
    public java.util.List<com.google.cloud.security.privateca.v1beta1.X509Extension.Builder>
        getAdditionalExtensionsBuilderList() {
      return getAdditionalExtensionsFieldBuilder().getBuilderList();
    }

    private com.google.protobuf.RepeatedFieldBuilderV3<
            com.google.cloud.security.privateca.v1beta1.X509Extension,
            com.google.cloud.security.privateca.v1beta1.X509Extension.Builder,
            com.google.cloud.security.privateca.v1beta1.X509ExtensionOrBuilder>
        getAdditionalExtensionsFieldBuilder() {
      if (additionalExtensionsBuilder_ == null) {
        additionalExtensionsBuilder_ =
            new com.google.protobuf.RepeatedFieldBuilderV3<
                com.google.cloud.security.privateca.v1beta1.X509Extension,
                com.google.cloud.security.privateca.v1beta1.X509Extension.Builder,
                com.google.cloud.security.privateca.v1beta1.X509ExtensionOrBuilder>(
                additionalExtensions_,
                ((bitField0_ & 0x00000010) != 0),
                getParentForChildren(),
                isClean());
        additionalExtensions_ = null;
      }
      return additionalExtensionsBuilder_;
    }

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

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

    // @@protoc_insertion_point(builder_scope:google.cloud.security.privateca.v1beta1.ReusableConfigValues)
  }

  // @@protoc_insertion_point(class_scope:google.cloud.security.privateca.v1beta1.ReusableConfigValues)
  private static final com.google.cloud.security.privateca.v1beta1.ReusableConfigValues
      DEFAULT_INSTANCE;

  static {
    DEFAULT_INSTANCE = new com.google.cloud.security.privateca.v1beta1.ReusableConfigValues();
  }

  public static com.google.cloud.security.privateca.v1beta1.ReusableConfigValues
      getDefaultInstance() {
    return DEFAULT_INSTANCE;
  }

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

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

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

  @java.lang.Override
  public com.google.cloud.security.privateca.v1beta1.ReusableConfigValues
      getDefaultInstanceForType() {
    return DEFAULT_INSTANCE;
  }
}
