/*
 * Copyright 2026 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!
// NO CHECKED-IN PROTOBUF GENCODE
// source: google/api/client.proto
// Protobuf Java Version: 4.33.2

package com.google.api;

/**
 *
 *
 * <pre>
 * Required information for every language.
 * </pre>
 *
 * Protobuf type {@code google.api.CommonLanguageSettings}
 */
@com.google.protobuf.Generated
public final class CommonLanguageSettings extends com.google.protobuf.GeneratedMessage
    implements
    // @@protoc_insertion_point(message_implements:google.api.CommonLanguageSettings)
    CommonLanguageSettingsOrBuilder {
  private static final long serialVersionUID = 0L;

  static {
    com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion(
        com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC,
        /* major= */ 4,
        /* minor= */ 33,
        /* patch= */ 2,
        /* suffix= */ "",
        "CommonLanguageSettings");
  }

  // Use CommonLanguageSettings.newBuilder() to construct.
  private CommonLanguageSettings(com.google.protobuf.GeneratedMessage.Builder<?> builder) {
    super(builder);
  }

  private CommonLanguageSettings() {
    referenceDocsUri_ = "";
    destinations_ = emptyIntList();
  }

  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
    return com.google.api.ClientProto.internal_static_google_api_CommonLanguageSettings_descriptor;
  }

  @java.lang.Override
  protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
      internalGetFieldAccessorTable() {
    return com.google.api.ClientProto
        .internal_static_google_api_CommonLanguageSettings_fieldAccessorTable
        .ensureFieldAccessorsInitialized(
            com.google.api.CommonLanguageSettings.class,
            com.google.api.CommonLanguageSettings.Builder.class);
  }

  private int bitField0_;
  public static final int REFERENCE_DOCS_URI_FIELD_NUMBER = 1;

  @SuppressWarnings("serial")
  private volatile java.lang.Object referenceDocsUri_ = "";

  /**
   *
   *
   * <pre>
   * Link to automatically generated reference documentation.  Example:
   * https://cloud.google.com/nodejs/docs/reference/asset/latest
   * </pre>
   *
   * <code>string reference_docs_uri = 1 [deprecated = true];</code>
   *
   * @deprecated google.api.CommonLanguageSettings.reference_docs_uri is deprecated. See
   *     google/api/client.proto;l=122
   * @return The referenceDocsUri.
   */
  @java.lang.Override
  @java.lang.Deprecated
  public java.lang.String getReferenceDocsUri() {
    java.lang.Object ref = referenceDocsUri_;
    if (ref instanceof java.lang.String) {
      return (java.lang.String) ref;
    } else {
      com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
      java.lang.String s = bs.toStringUtf8();
      referenceDocsUri_ = s;
      return s;
    }
  }

  /**
   *
   *
   * <pre>
   * Link to automatically generated reference documentation.  Example:
   * https://cloud.google.com/nodejs/docs/reference/asset/latest
   * </pre>
   *
   * <code>string reference_docs_uri = 1 [deprecated = true];</code>
   *
   * @deprecated google.api.CommonLanguageSettings.reference_docs_uri is deprecated. See
   *     google/api/client.proto;l=122
   * @return The bytes for referenceDocsUri.
   */
  @java.lang.Override
  @java.lang.Deprecated
  public com.google.protobuf.ByteString getReferenceDocsUriBytes() {
    java.lang.Object ref = referenceDocsUri_;
    if (ref instanceof java.lang.String) {
      com.google.protobuf.ByteString b =
          com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
      referenceDocsUri_ = b;
      return b;
    } else {
      return (com.google.protobuf.ByteString) ref;
    }
  }

  public static final int DESTINATIONS_FIELD_NUMBER = 2;

  @SuppressWarnings("serial")
  private com.google.protobuf.Internal.IntList destinations_ = emptyIntList();

  private static final com.google.protobuf.Internal.IntListAdapter.IntConverter<
          com.google.api.ClientLibraryDestination>
      destinations_converter_ =
          new com.google.protobuf.Internal.IntListAdapter.IntConverter<
              com.google.api.ClientLibraryDestination>() {
            public com.google.api.ClientLibraryDestination convert(int from) {
              com.google.api.ClientLibraryDestination result =
                  com.google.api.ClientLibraryDestination.forNumber(from);
              return result == null ? com.google.api.ClientLibraryDestination.UNRECOGNIZED : result;
            }
          };

  /**
   *
   *
   * <pre>
   * The destination where API teams want this client library to be published.
   * </pre>
   *
   * <code>repeated .google.api.ClientLibraryDestination destinations = 2;</code>
   *
   * @return A list containing the destinations.
   */
  @java.lang.Override
  public java.util.List<com.google.api.ClientLibraryDestination> getDestinationsList() {
    return new com.google.protobuf.Internal.IntListAdapter<com.google.api.ClientLibraryDestination>(
        destinations_, destinations_converter_);
  }

  /**
   *
   *
   * <pre>
   * The destination where API teams want this client library to be published.
   * </pre>
   *
   * <code>repeated .google.api.ClientLibraryDestination destinations = 2;</code>
   *
   * @return The count of destinations.
   */
  @java.lang.Override
  public int getDestinationsCount() {
    return destinations_.size();
  }

  /**
   *
   *
   * <pre>
   * The destination where API teams want this client library to be published.
   * </pre>
   *
   * <code>repeated .google.api.ClientLibraryDestination destinations = 2;</code>
   *
   * @param index The index of the element to return.
   * @return The destinations at the given index.
   */
  @java.lang.Override
  public com.google.api.ClientLibraryDestination getDestinations(int index) {
    return destinations_converter_.convert(destinations_.getInt(index));
  }

  /**
   *
   *
   * <pre>
   * The destination where API teams want this client library to be published.
   * </pre>
   *
   * <code>repeated .google.api.ClientLibraryDestination destinations = 2;</code>
   *
   * @return A list containing the enum numeric values on the wire for destinations.
   */
  @java.lang.Override
  public java.util.List<java.lang.Integer> getDestinationsValueList() {
    return destinations_;
  }

  /**
   *
   *
   * <pre>
   * The destination where API teams want this client library to be published.
   * </pre>
   *
   * <code>repeated .google.api.ClientLibraryDestination destinations = 2;</code>
   *
   * @param index The index of the value to return.
   * @return The enum numeric value on the wire of destinations at the given index.
   */
  @java.lang.Override
  public int getDestinationsValue(int index) {
    return destinations_.getInt(index);
  }

  private int destinationsMemoizedSerializedSize;

  public static final int SELECTIVE_GAPIC_GENERATION_FIELD_NUMBER = 3;
  private com.google.api.SelectiveGapicGeneration selectiveGapicGeneration_;

  /**
   *
   *
   * <pre>
   * Configuration for which RPCs should be generated in the GAPIC client.
   * </pre>
   *
   * <code>.google.api.SelectiveGapicGeneration selective_gapic_generation = 3;</code>
   *
   * @return Whether the selectiveGapicGeneration field is set.
   */
  @java.lang.Override
  public boolean hasSelectiveGapicGeneration() {
    return ((bitField0_ & 0x00000001) != 0);
  }

  /**
   *
   *
   * <pre>
   * Configuration for which RPCs should be generated in the GAPIC client.
   * </pre>
   *
   * <code>.google.api.SelectiveGapicGeneration selective_gapic_generation = 3;</code>
   *
   * @return The selectiveGapicGeneration.
   */
  @java.lang.Override
  public com.google.api.SelectiveGapicGeneration getSelectiveGapicGeneration() {
    return selectiveGapicGeneration_ == null
        ? com.google.api.SelectiveGapicGeneration.getDefaultInstance()
        : selectiveGapicGeneration_;
  }

  /**
   *
   *
   * <pre>
   * Configuration for which RPCs should be generated in the GAPIC client.
   * </pre>
   *
   * <code>.google.api.SelectiveGapicGeneration selective_gapic_generation = 3;</code>
   */
  @java.lang.Override
  public com.google.api.SelectiveGapicGenerationOrBuilder getSelectiveGapicGenerationOrBuilder() {
    return selectiveGapicGeneration_ == null
        ? com.google.api.SelectiveGapicGeneration.getDefaultInstance()
        : selectiveGapicGeneration_;
  }

  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 {
    getSerializedSize();
    if (!com.google.protobuf.GeneratedMessage.isStringEmpty(referenceDocsUri_)) {
      com.google.protobuf.GeneratedMessage.writeString(output, 1, referenceDocsUri_);
    }
    if (getDestinationsList().size() > 0) {
      output.writeUInt32NoTag(18);
      output.writeUInt32NoTag(destinationsMemoizedSerializedSize);
    }
    for (int i = 0; i < destinations_.size(); i++) {
      output.writeEnumNoTag(destinations_.getInt(i));
    }
    if (((bitField0_ & 0x00000001) != 0)) {
      output.writeMessage(3, getSelectiveGapicGeneration());
    }
    getUnknownFields().writeTo(output);
  }

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

    size = 0;
    if (!com.google.protobuf.GeneratedMessage.isStringEmpty(referenceDocsUri_)) {
      size += com.google.protobuf.GeneratedMessage.computeStringSize(1, referenceDocsUri_);
    }
    {
      int dataSize = 0;
      for (int i = 0; i < destinations_.size(); i++) {
        dataSize +=
            com.google.protobuf.CodedOutputStream.computeEnumSizeNoTag(destinations_.getInt(i));
      }
      size += dataSize;
      if (!getDestinationsList().isEmpty()) {
        size += 1;
        size += com.google.protobuf.CodedOutputStream.computeUInt32SizeNoTag(dataSize);
      }
      destinationsMemoizedSerializedSize = dataSize;
    }
    if (((bitField0_ & 0x00000001) != 0)) {
      size +=
          com.google.protobuf.CodedOutputStream.computeMessageSize(
              3, getSelectiveGapicGeneration());
    }
    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.api.CommonLanguageSettings)) {
      return super.equals(obj);
    }
    com.google.api.CommonLanguageSettings other = (com.google.api.CommonLanguageSettings) obj;

    if (!getReferenceDocsUri().equals(other.getReferenceDocsUri())) return false;
    if (!destinations_.equals(other.destinations_)) return false;
    if (hasSelectiveGapicGeneration() != other.hasSelectiveGapicGeneration()) return false;
    if (hasSelectiveGapicGeneration()) {
      if (!getSelectiveGapicGeneration().equals(other.getSelectiveGapicGeneration())) return false;
    }
    if (!getUnknownFields().equals(other.getUnknownFields())) return false;
    return true;
  }

  @java.lang.Override
  public int hashCode() {
    if (memoizedHashCode != 0) {
      return memoizedHashCode;
    }
    int hash = 41;
    hash = (19 * hash) + getDescriptor().hashCode();
    hash = (37 * hash) + REFERENCE_DOCS_URI_FIELD_NUMBER;
    hash = (53 * hash) + getReferenceDocsUri().hashCode();
    if (getDestinationsCount() > 0) {
      hash = (37 * hash) + DESTINATIONS_FIELD_NUMBER;
      hash = (53 * hash) + destinations_.hashCode();
    }
    if (hasSelectiveGapicGeneration()) {
      hash = (37 * hash) + SELECTIVE_GAPIC_GENERATION_FIELD_NUMBER;
      hash = (53 * hash) + getSelectiveGapicGeneration().hashCode();
    }
    hash = (29 * hash) + getUnknownFields().hashCode();
    memoizedHashCode = hash;
    return hash;
  }

  public static com.google.api.CommonLanguageSettings parseFrom(java.nio.ByteBuffer data)
      throws com.google.protobuf.InvalidProtocolBufferException {
    return PARSER.parseFrom(data);
  }

  public static com.google.api.CommonLanguageSettings parseFrom(
      java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
      throws com.google.protobuf.InvalidProtocolBufferException {
    return PARSER.parseFrom(data, extensionRegistry);
  }

  public static com.google.api.CommonLanguageSettings parseFrom(com.google.protobuf.ByteString data)
      throws com.google.protobuf.InvalidProtocolBufferException {
    return PARSER.parseFrom(data);
  }

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

  public static com.google.api.CommonLanguageSettings parseFrom(
      byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
      throws com.google.protobuf.InvalidProtocolBufferException {
    return PARSER.parseFrom(data, extensionRegistry);
  }

  public static com.google.api.CommonLanguageSettings parseFrom(java.io.InputStream input)
      throws java.io.IOException {
    return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input);
  }

  public static com.google.api.CommonLanguageSettings parseFrom(
      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
      throws java.io.IOException {
    return com.google.protobuf.GeneratedMessage.parseWithIOException(
        PARSER, input, extensionRegistry);
  }

  public static com.google.api.CommonLanguageSettings parseDelimitedFrom(java.io.InputStream input)
      throws java.io.IOException {
    return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input);
  }

  public static com.google.api.CommonLanguageSettings parseDelimitedFrom(
      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
      throws java.io.IOException {
    return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(
        PARSER, input, extensionRegistry);
  }

  public static com.google.api.CommonLanguageSettings parseFrom(
      com.google.protobuf.CodedInputStream input) throws java.io.IOException {
    return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input);
  }

  public static com.google.api.CommonLanguageSettings parseFrom(
      com.google.protobuf.CodedInputStream input,
      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
      throws java.io.IOException {
    return com.google.protobuf.GeneratedMessage.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.api.CommonLanguageSettings 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.GeneratedMessage.BuilderParent parent) {
    Builder builder = new Builder(parent);
    return builder;
  }

  /**
   *
   *
   * <pre>
   * Required information for every language.
   * </pre>
   *
   * Protobuf type {@code google.api.CommonLanguageSettings}
   */
  public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder<Builder>
      implements
      // @@protoc_insertion_point(builder_implements:google.api.CommonLanguageSettings)
      com.google.api.CommonLanguageSettingsOrBuilder {
    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
      return com.google.api.ClientProto
          .internal_static_google_api_CommonLanguageSettings_descriptor;
    }

    @java.lang.Override
    protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
        internalGetFieldAccessorTable() {
      return com.google.api.ClientProto
          .internal_static_google_api_CommonLanguageSettings_fieldAccessorTable
          .ensureFieldAccessorsInitialized(
              com.google.api.CommonLanguageSettings.class,
              com.google.api.CommonLanguageSettings.Builder.class);
    }

    // Construct using com.google.api.CommonLanguageSettings.newBuilder()
    private Builder() {
      maybeForceBuilderInitialization();
    }

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

    private void maybeForceBuilderInitialization() {
      if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) {
        internalGetSelectiveGapicGenerationFieldBuilder();
      }
    }

    @java.lang.Override
    public Builder clear() {
      super.clear();
      bitField0_ = 0;
      referenceDocsUri_ = "";
      destinations_ = emptyIntList();
      selectiveGapicGeneration_ = null;
      if (selectiveGapicGenerationBuilder_ != null) {
        selectiveGapicGenerationBuilder_.dispose();
        selectiveGapicGenerationBuilder_ = null;
      }
      return this;
    }

    @java.lang.Override
    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
      return com.google.api.ClientProto
          .internal_static_google_api_CommonLanguageSettings_descriptor;
    }

    @java.lang.Override
    public com.google.api.CommonLanguageSettings getDefaultInstanceForType() {
      return com.google.api.CommonLanguageSettings.getDefaultInstance();
    }

    @java.lang.Override
    public com.google.api.CommonLanguageSettings build() {
      com.google.api.CommonLanguageSettings result = buildPartial();
      if (!result.isInitialized()) {
        throw newUninitializedMessageException(result);
      }
      return result;
    }

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

    private void buildPartial0(com.google.api.CommonLanguageSettings result) {
      int from_bitField0_ = bitField0_;
      if (((from_bitField0_ & 0x00000001) != 0)) {
        result.referenceDocsUri_ = referenceDocsUri_;
      }
      if (((from_bitField0_ & 0x00000002) != 0)) {
        destinations_.makeImmutable();
        result.destinations_ = destinations_;
      }
      int to_bitField0_ = 0;
      if (((from_bitField0_ & 0x00000004) != 0)) {
        result.selectiveGapicGeneration_ =
            selectiveGapicGenerationBuilder_ == null
                ? selectiveGapicGeneration_
                : selectiveGapicGenerationBuilder_.build();
        to_bitField0_ |= 0x00000001;
      }
      result.bitField0_ |= to_bitField0_;
    }

    @java.lang.Override
    public Builder mergeFrom(com.google.protobuf.Message other) {
      if (other instanceof com.google.api.CommonLanguageSettings) {
        return mergeFrom((com.google.api.CommonLanguageSettings) other);
      } else {
        super.mergeFrom(other);
        return this;
      }
    }

    public Builder mergeFrom(com.google.api.CommonLanguageSettings other) {
      if (other == com.google.api.CommonLanguageSettings.getDefaultInstance()) return this;
      if (!other.getReferenceDocsUri().isEmpty()) {
        referenceDocsUri_ = other.referenceDocsUri_;
        bitField0_ |= 0x00000001;
        onChanged();
      }
      if (!other.destinations_.isEmpty()) {
        if (destinations_.isEmpty()) {
          destinations_ = other.destinations_;
          destinations_.makeImmutable();
          bitField0_ |= 0x00000002;
        } else {
          ensureDestinationsIsMutable();
          destinations_.addAll(other.destinations_);
        }
        onChanged();
      }
      if (other.hasSelectiveGapicGeneration()) {
        mergeSelectiveGapicGeneration(other.getSelectiveGapicGeneration());
      }
      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:
              {
                referenceDocsUri_ = input.readStringRequireUtf8();
                bitField0_ |= 0x00000001;
                break;
              } // case 10
            case 16:
              {
                int tmpRaw = input.readEnum();
                ensureDestinationsIsMutable();
                destinations_.addInt(tmpRaw);
                break;
              } // case 16
            case 18:
              {
                int length = input.readRawVarint32();
                int limit = input.pushLimit(length);
                ensureDestinationsIsMutable();
                while (input.getBytesUntilLimit() > 0) {
                  destinations_.addInt(input.readEnum());
                }
                input.popLimit(limit);
                break;
              } // case 18
            case 26:
              {
                input.readMessage(
                    internalGetSelectiveGapicGenerationFieldBuilder().getBuilder(),
                    extensionRegistry);
                bitField0_ |= 0x00000004;
                break;
              } // case 26
            default:
              {
                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
                  done = true; // was an endgroup tag
                }
                break;
              } // default:
          } // switch (tag)
        } // while (!done)
      } catch (com.google.protobuf.InvalidProtocolBufferException e) {
        throw e.unwrapIOException();
      } finally {
        onChanged();
      } // finally
      return this;
    }

    private int bitField0_;

    private java.lang.Object referenceDocsUri_ = "";

    /**
     *
     *
     * <pre>
     * Link to automatically generated reference documentation.  Example:
     * https://cloud.google.com/nodejs/docs/reference/asset/latest
     * </pre>
     *
     * <code>string reference_docs_uri = 1 [deprecated = true];</code>
     *
     * @deprecated google.api.CommonLanguageSettings.reference_docs_uri is deprecated. See
     *     google/api/client.proto;l=122
     * @return The referenceDocsUri.
     */
    @java.lang.Deprecated
    public java.lang.String getReferenceDocsUri() {
      java.lang.Object ref = referenceDocsUri_;
      if (!(ref instanceof java.lang.String)) {
        com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
        java.lang.String s = bs.toStringUtf8();
        referenceDocsUri_ = s;
        return s;
      } else {
        return (java.lang.String) ref;
      }
    }

    /**
     *
     *
     * <pre>
     * Link to automatically generated reference documentation.  Example:
     * https://cloud.google.com/nodejs/docs/reference/asset/latest
     * </pre>
     *
     * <code>string reference_docs_uri = 1 [deprecated = true];</code>
     *
     * @deprecated google.api.CommonLanguageSettings.reference_docs_uri is deprecated. See
     *     google/api/client.proto;l=122
     * @return The bytes for referenceDocsUri.
     */
    @java.lang.Deprecated
    public com.google.protobuf.ByteString getReferenceDocsUriBytes() {
      java.lang.Object ref = referenceDocsUri_;
      if (ref instanceof String) {
        com.google.protobuf.ByteString b =
            com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
        referenceDocsUri_ = b;
        return b;
      } else {
        return (com.google.protobuf.ByteString) ref;
      }
    }

    /**
     *
     *
     * <pre>
     * Link to automatically generated reference documentation.  Example:
     * https://cloud.google.com/nodejs/docs/reference/asset/latest
     * </pre>
     *
     * <code>string reference_docs_uri = 1 [deprecated = true];</code>
     *
     * @deprecated google.api.CommonLanguageSettings.reference_docs_uri is deprecated. See
     *     google/api/client.proto;l=122
     * @param value The referenceDocsUri to set.
     * @return This builder for chaining.
     */
    @java.lang.Deprecated
    public Builder setReferenceDocsUri(java.lang.String value) {
      if (value == null) {
        throw new NullPointerException();
      }
      referenceDocsUri_ = value;
      bitField0_ |= 0x00000001;
      onChanged();
      return this;
    }

    /**
     *
     *
     * <pre>
     * Link to automatically generated reference documentation.  Example:
     * https://cloud.google.com/nodejs/docs/reference/asset/latest
     * </pre>
     *
     * <code>string reference_docs_uri = 1 [deprecated = true];</code>
     *
     * @deprecated google.api.CommonLanguageSettings.reference_docs_uri is deprecated. See
     *     google/api/client.proto;l=122
     * @return This builder for chaining.
     */
    @java.lang.Deprecated
    public Builder clearReferenceDocsUri() {
      referenceDocsUri_ = getDefaultInstance().getReferenceDocsUri();
      bitField0_ = (bitField0_ & ~0x00000001);
      onChanged();
      return this;
    }

    /**
     *
     *
     * <pre>
     * Link to automatically generated reference documentation.  Example:
     * https://cloud.google.com/nodejs/docs/reference/asset/latest
     * </pre>
     *
     * <code>string reference_docs_uri = 1 [deprecated = true];</code>
     *
     * @deprecated google.api.CommonLanguageSettings.reference_docs_uri is deprecated. See
     *     google/api/client.proto;l=122
     * @param value The bytes for referenceDocsUri to set.
     * @return This builder for chaining.
     */
    @java.lang.Deprecated
    public Builder setReferenceDocsUriBytes(com.google.protobuf.ByteString value) {
      if (value == null) {
        throw new NullPointerException();
      }
      checkByteStringIsUtf8(value);
      referenceDocsUri_ = value;
      bitField0_ |= 0x00000001;
      onChanged();
      return this;
    }

    private com.google.protobuf.Internal.IntList destinations_ = emptyIntList();

    private void ensureDestinationsIsMutable() {
      if (!destinations_.isModifiable()) {
        destinations_ = makeMutableCopy(destinations_);
      }
      bitField0_ |= 0x00000002;
    }

    /**
     *
     *
     * <pre>
     * The destination where API teams want this client library to be published.
     * </pre>
     *
     * <code>repeated .google.api.ClientLibraryDestination destinations = 2;</code>
     *
     * @return A list containing the destinations.
     */
    public java.util.List<com.google.api.ClientLibraryDestination> getDestinationsList() {
      return new com.google.protobuf.Internal.IntListAdapter<
          com.google.api.ClientLibraryDestination>(destinations_, destinations_converter_);
    }

    /**
     *
     *
     * <pre>
     * The destination where API teams want this client library to be published.
     * </pre>
     *
     * <code>repeated .google.api.ClientLibraryDestination destinations = 2;</code>
     *
     * @return The count of destinations.
     */
    public int getDestinationsCount() {
      return destinations_.size();
    }

    /**
     *
     *
     * <pre>
     * The destination where API teams want this client library to be published.
     * </pre>
     *
     * <code>repeated .google.api.ClientLibraryDestination destinations = 2;</code>
     *
     * @param index The index of the element to return.
     * @return The destinations at the given index.
     */
    public com.google.api.ClientLibraryDestination getDestinations(int index) {
      return destinations_converter_.convert(destinations_.getInt(index));
    }

    /**
     *
     *
     * <pre>
     * The destination where API teams want this client library to be published.
     * </pre>
     *
     * <code>repeated .google.api.ClientLibraryDestination destinations = 2;</code>
     *
     * @param index The index to set the value at.
     * @param value The destinations to set.
     * @return This builder for chaining.
     */
    public Builder setDestinations(int index, com.google.api.ClientLibraryDestination value) {
      if (value == null) {
        throw new NullPointerException();
      }
      ensureDestinationsIsMutable();
      destinations_.setInt(index, value.getNumber());
      onChanged();
      return this;
    }

    /**
     *
     *
     * <pre>
     * The destination where API teams want this client library to be published.
     * </pre>
     *
     * <code>repeated .google.api.ClientLibraryDestination destinations = 2;</code>
     *
     * @param value The destinations to add.
     * @return This builder for chaining.
     */
    public Builder addDestinations(com.google.api.ClientLibraryDestination value) {
      if (value == null) {
        throw new NullPointerException();
      }
      ensureDestinationsIsMutable();
      destinations_.addInt(value.getNumber());
      onChanged();
      return this;
    }

    /**
     *
     *
     * <pre>
     * The destination where API teams want this client library to be published.
     * </pre>
     *
     * <code>repeated .google.api.ClientLibraryDestination destinations = 2;</code>
     *
     * @param values The destinations to add.
     * @return This builder for chaining.
     */
    public Builder addAllDestinations(
        java.lang.Iterable<? extends com.google.api.ClientLibraryDestination> values) {
      ensureDestinationsIsMutable();
      for (com.google.api.ClientLibraryDestination value : values) {
        destinations_.addInt(value.getNumber());
      }
      onChanged();
      return this;
    }

    /**
     *
     *
     * <pre>
     * The destination where API teams want this client library to be published.
     * </pre>
     *
     * <code>repeated .google.api.ClientLibraryDestination destinations = 2;</code>
     *
     * @return This builder for chaining.
     */
    public Builder clearDestinations() {
      destinations_ = emptyIntList();
      bitField0_ = (bitField0_ & ~0x00000002);
      onChanged();
      return this;
    }

    /**
     *
     *
     * <pre>
     * The destination where API teams want this client library to be published.
     * </pre>
     *
     * <code>repeated .google.api.ClientLibraryDestination destinations = 2;</code>
     *
     * @return A list containing the enum numeric values on the wire for destinations.
     */
    public java.util.List<java.lang.Integer> getDestinationsValueList() {
      destinations_.makeImmutable();
      return destinations_;
    }

    /**
     *
     *
     * <pre>
     * The destination where API teams want this client library to be published.
     * </pre>
     *
     * <code>repeated .google.api.ClientLibraryDestination destinations = 2;</code>
     *
     * @param index The index of the value to return.
     * @return The enum numeric value on the wire of destinations at the given index.
     */
    public int getDestinationsValue(int index) {
      return destinations_.getInt(index);
    }

    /**
     *
     *
     * <pre>
     * The destination where API teams want this client library to be published.
     * </pre>
     *
     * <code>repeated .google.api.ClientLibraryDestination destinations = 2;</code>
     *
     * @param index The index to set the value at.
     * @param value The enum numeric value on the wire for destinations to set.
     * @return This builder for chaining.
     */
    public Builder setDestinationsValue(int index, int value) {
      ensureDestinationsIsMutable();
      destinations_.setInt(index, value);
      onChanged();
      return this;
    }

    /**
     *
     *
     * <pre>
     * The destination where API teams want this client library to be published.
     * </pre>
     *
     * <code>repeated .google.api.ClientLibraryDestination destinations = 2;</code>
     *
     * @param value The enum numeric value on the wire for destinations to add.
     * @return This builder for chaining.
     */
    public Builder addDestinationsValue(int value) {
      ensureDestinationsIsMutable();
      destinations_.addInt(value);
      onChanged();
      return this;
    }

    /**
     *
     *
     * <pre>
     * The destination where API teams want this client library to be published.
     * </pre>
     *
     * <code>repeated .google.api.ClientLibraryDestination destinations = 2;</code>
     *
     * @param values The enum numeric values on the wire for destinations to add.
     * @return This builder for chaining.
     */
    public Builder addAllDestinationsValue(java.lang.Iterable<java.lang.Integer> values) {
      ensureDestinationsIsMutable();
      for (int value : values) {
        destinations_.addInt(value);
      }
      onChanged();
      return this;
    }

    private com.google.api.SelectiveGapicGeneration selectiveGapicGeneration_;
    private com.google.protobuf.SingleFieldBuilder<
            com.google.api.SelectiveGapicGeneration,
            com.google.api.SelectiveGapicGeneration.Builder,
            com.google.api.SelectiveGapicGenerationOrBuilder>
        selectiveGapicGenerationBuilder_;

    /**
     *
     *
     * <pre>
     * Configuration for which RPCs should be generated in the GAPIC client.
     * </pre>
     *
     * <code>.google.api.SelectiveGapicGeneration selective_gapic_generation = 3;</code>
     *
     * @return Whether the selectiveGapicGeneration field is set.
     */
    public boolean hasSelectiveGapicGeneration() {
      return ((bitField0_ & 0x00000004) != 0);
    }

    /**
     *
     *
     * <pre>
     * Configuration for which RPCs should be generated in the GAPIC client.
     * </pre>
     *
     * <code>.google.api.SelectiveGapicGeneration selective_gapic_generation = 3;</code>
     *
     * @return The selectiveGapicGeneration.
     */
    public com.google.api.SelectiveGapicGeneration getSelectiveGapicGeneration() {
      if (selectiveGapicGenerationBuilder_ == null) {
        return selectiveGapicGeneration_ == null
            ? com.google.api.SelectiveGapicGeneration.getDefaultInstance()
            : selectiveGapicGeneration_;
      } else {
        return selectiveGapicGenerationBuilder_.getMessage();
      }
    }

    /**
     *
     *
     * <pre>
     * Configuration for which RPCs should be generated in the GAPIC client.
     * </pre>
     *
     * <code>.google.api.SelectiveGapicGeneration selective_gapic_generation = 3;</code>
     */
    public Builder setSelectiveGapicGeneration(com.google.api.SelectiveGapicGeneration value) {
      if (selectiveGapicGenerationBuilder_ == null) {
        if (value == null) {
          throw new NullPointerException();
        }
        selectiveGapicGeneration_ = value;
      } else {
        selectiveGapicGenerationBuilder_.setMessage(value);
      }
      bitField0_ |= 0x00000004;
      onChanged();
      return this;
    }

    /**
     *
     *
     * <pre>
     * Configuration for which RPCs should be generated in the GAPIC client.
     * </pre>
     *
     * <code>.google.api.SelectiveGapicGeneration selective_gapic_generation = 3;</code>
     */
    public Builder setSelectiveGapicGeneration(
        com.google.api.SelectiveGapicGeneration.Builder builderForValue) {
      if (selectiveGapicGenerationBuilder_ == null) {
        selectiveGapicGeneration_ = builderForValue.build();
      } else {
        selectiveGapicGenerationBuilder_.setMessage(builderForValue.build());
      }
      bitField0_ |= 0x00000004;
      onChanged();
      return this;
    }

    /**
     *
     *
     * <pre>
     * Configuration for which RPCs should be generated in the GAPIC client.
     * </pre>
     *
     * <code>.google.api.SelectiveGapicGeneration selective_gapic_generation = 3;</code>
     */
    public Builder mergeSelectiveGapicGeneration(com.google.api.SelectiveGapicGeneration value) {
      if (selectiveGapicGenerationBuilder_ == null) {
        if (((bitField0_ & 0x00000004) != 0)
            && selectiveGapicGeneration_ != null
            && selectiveGapicGeneration_
                != com.google.api.SelectiveGapicGeneration.getDefaultInstance()) {
          getSelectiveGapicGenerationBuilder().mergeFrom(value);
        } else {
          selectiveGapicGeneration_ = value;
        }
      } else {
        selectiveGapicGenerationBuilder_.mergeFrom(value);
      }
      if (selectiveGapicGeneration_ != null) {
        bitField0_ |= 0x00000004;
        onChanged();
      }
      return this;
    }

    /**
     *
     *
     * <pre>
     * Configuration for which RPCs should be generated in the GAPIC client.
     * </pre>
     *
     * <code>.google.api.SelectiveGapicGeneration selective_gapic_generation = 3;</code>
     */
    public Builder clearSelectiveGapicGeneration() {
      bitField0_ = (bitField0_ & ~0x00000004);
      selectiveGapicGeneration_ = null;
      if (selectiveGapicGenerationBuilder_ != null) {
        selectiveGapicGenerationBuilder_.dispose();
        selectiveGapicGenerationBuilder_ = null;
      }
      onChanged();
      return this;
    }

    /**
     *
     *
     * <pre>
     * Configuration for which RPCs should be generated in the GAPIC client.
     * </pre>
     *
     * <code>.google.api.SelectiveGapicGeneration selective_gapic_generation = 3;</code>
     */
    public com.google.api.SelectiveGapicGeneration.Builder getSelectiveGapicGenerationBuilder() {
      bitField0_ |= 0x00000004;
      onChanged();
      return internalGetSelectiveGapicGenerationFieldBuilder().getBuilder();
    }

    /**
     *
     *
     * <pre>
     * Configuration for which RPCs should be generated in the GAPIC client.
     * </pre>
     *
     * <code>.google.api.SelectiveGapicGeneration selective_gapic_generation = 3;</code>
     */
    public com.google.api.SelectiveGapicGenerationOrBuilder getSelectiveGapicGenerationOrBuilder() {
      if (selectiveGapicGenerationBuilder_ != null) {
        return selectiveGapicGenerationBuilder_.getMessageOrBuilder();
      } else {
        return selectiveGapicGeneration_ == null
            ? com.google.api.SelectiveGapicGeneration.getDefaultInstance()
            : selectiveGapicGeneration_;
      }
    }

    /**
     *
     *
     * <pre>
     * Configuration for which RPCs should be generated in the GAPIC client.
     * </pre>
     *
     * <code>.google.api.SelectiveGapicGeneration selective_gapic_generation = 3;</code>
     */
    private com.google.protobuf.SingleFieldBuilder<
            com.google.api.SelectiveGapicGeneration,
            com.google.api.SelectiveGapicGeneration.Builder,
            com.google.api.SelectiveGapicGenerationOrBuilder>
        internalGetSelectiveGapicGenerationFieldBuilder() {
      if (selectiveGapicGenerationBuilder_ == null) {
        selectiveGapicGenerationBuilder_ =
            new com.google.protobuf.SingleFieldBuilder<
                com.google.api.SelectiveGapicGeneration,
                com.google.api.SelectiveGapicGeneration.Builder,
                com.google.api.SelectiveGapicGenerationOrBuilder>(
                getSelectiveGapicGeneration(), getParentForChildren(), isClean());
        selectiveGapicGeneration_ = null;
      }
      return selectiveGapicGenerationBuilder_;
    }

    // @@protoc_insertion_point(builder_scope:google.api.CommonLanguageSettings)
  }

  // @@protoc_insertion_point(class_scope:google.api.CommonLanguageSettings)
  private static final com.google.api.CommonLanguageSettings DEFAULT_INSTANCE;

  static {
    DEFAULT_INSTANCE = new com.google.api.CommonLanguageSettings();
  }

  public static com.google.api.CommonLanguageSettings getDefaultInstance() {
    return DEFAULT_INSTANCE;
  }

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

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

  @java.lang.Override
  public com.google.api.CommonLanguageSettings getDefaultInstanceForType() {
    return DEFAULT_INSTANCE;
  }
}
