// Generated by the protocol buffer compiler.  DO NOT EDIT!
// source: google/rpc/error_details.proto

package com.google.rpc;

/**
 * <pre>
 * Provides links to documentation or for performing an out of band action.
 * For example, if a quota check failed with an error indicating the calling
 * project hasn't enabled the accessed service, this can contain a URL pointing
 * directly to the right place in the developer console to flip the bit.
 * </pre>
 *
 * Protobuf type {@code google.rpc.Help}
 */
public  final class Help extends
    com.google.protobuf.GeneratedMessageLite<
        Help, Help.Builder> implements
    // @@protoc_insertion_point(message_implements:google.rpc.Help)
    HelpOrBuilder {
  private Help() {
    links_ = emptyProtobufList();
  }
  public interface LinkOrBuilder extends
      // @@protoc_insertion_point(interface_extends:google.rpc.Help.Link)
      com.google.protobuf.MessageLiteOrBuilder {

    /**
     * <pre>
     * Describes what the link offers.
     * </pre>
     *
     * <code>string description = 1;</code>
     * @return The description.
     */
    java.lang.String getDescription();
    /**
     * <pre>
     * Describes what the link offers.
     * </pre>
     *
     * <code>string description = 1;</code>
     * @return The bytes for description.
     */
    com.google.protobuf.ByteString
        getDescriptionBytes();

    /**
     * <pre>
     * The URL of the link.
     * </pre>
     *
     * <code>string url = 2;</code>
     * @return The url.
     */
    java.lang.String getUrl();
    /**
     * <pre>
     * The URL of the link.
     * </pre>
     *
     * <code>string url = 2;</code>
     * @return The bytes for url.
     */
    com.google.protobuf.ByteString
        getUrlBytes();
  }
  /**
   * <pre>
   * Describes a URL link.
   * </pre>
   *
   * Protobuf type {@code google.rpc.Help.Link}
   */
  public  static final class Link extends
      com.google.protobuf.GeneratedMessageLite<
          Link, Link.Builder> implements
      // @@protoc_insertion_point(message_implements:google.rpc.Help.Link)
      LinkOrBuilder {
    private Link() {
      description_ = "";
      url_ = "";
    }
    public static final int DESCRIPTION_FIELD_NUMBER = 1;
    private java.lang.String description_;
    /**
     * <pre>
     * Describes what the link offers.
     * </pre>
     *
     * <code>string description = 1;</code>
     * @return The description.
     */
    @java.lang.Override
    public java.lang.String getDescription() {
      return description_;
    }
    /**
     * <pre>
     * Describes what the link offers.
     * </pre>
     *
     * <code>string description = 1;</code>
     * @return The bytes for description.
     */
    @java.lang.Override
    public com.google.protobuf.ByteString
        getDescriptionBytes() {
      return com.google.protobuf.ByteString.copyFromUtf8(description_);
    }
    /**
     * <pre>
     * Describes what the link offers.
     * </pre>
     *
     * <code>string description = 1;</code>
     * @param value The description to set.
     */
    private void setDescription(
        java.lang.String value) {
      value.getClass();
  
      description_ = value;
    }
    /**
     * <pre>
     * Describes what the link offers.
     * </pre>
     *
     * <code>string description = 1;</code>
     */
    private void clearDescription() {
      
      description_ = getDefaultInstance().getDescription();
    }
    /**
     * <pre>
     * Describes what the link offers.
     * </pre>
     *
     * <code>string description = 1;</code>
     * @param value The bytes for description to set.
     */
    private void setDescriptionBytes(
        com.google.protobuf.ByteString value) {
      checkByteStringIsUtf8(value);
      description_ = value.toStringUtf8();
      
    }

    public static final int URL_FIELD_NUMBER = 2;
    private java.lang.String url_;
    /**
     * <pre>
     * The URL of the link.
     * </pre>
     *
     * <code>string url = 2;</code>
     * @return The url.
     */
    @java.lang.Override
    public java.lang.String getUrl() {
      return url_;
    }
    /**
     * <pre>
     * The URL of the link.
     * </pre>
     *
     * <code>string url = 2;</code>
     * @return The bytes for url.
     */
    @java.lang.Override
    public com.google.protobuf.ByteString
        getUrlBytes() {
      return com.google.protobuf.ByteString.copyFromUtf8(url_);
    }
    /**
     * <pre>
     * The URL of the link.
     * </pre>
     *
     * <code>string url = 2;</code>
     * @param value The url to set.
     */
    private void setUrl(
        java.lang.String value) {
      value.getClass();
  
      url_ = value;
    }
    /**
     * <pre>
     * The URL of the link.
     * </pre>
     *
     * <code>string url = 2;</code>
     */
    private void clearUrl() {
      
      url_ = getDefaultInstance().getUrl();
    }
    /**
     * <pre>
     * The URL of the link.
     * </pre>
     *
     * <code>string url = 2;</code>
     * @param value The bytes for url to set.
     */
    private void setUrlBytes(
        com.google.protobuf.ByteString value) {
      checkByteStringIsUtf8(value);
      url_ = value.toStringUtf8();
      
    }

    public static com.google.rpc.Help.Link parseFrom(
        java.nio.ByteBuffer data)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return com.google.protobuf.GeneratedMessageLite.parseFrom(
          DEFAULT_INSTANCE, data);
    }
    public static com.google.rpc.Help.Link parseFrom(
        java.nio.ByteBuffer data,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return com.google.protobuf.GeneratedMessageLite.parseFrom(
          DEFAULT_INSTANCE, data, extensionRegistry);
    }
    public static com.google.rpc.Help.Link parseFrom(
        com.google.protobuf.ByteString data)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return com.google.protobuf.GeneratedMessageLite.parseFrom(
          DEFAULT_INSTANCE, data);
    }
    public static com.google.rpc.Help.Link parseFrom(
        com.google.protobuf.ByteString data,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return com.google.protobuf.GeneratedMessageLite.parseFrom(
          DEFAULT_INSTANCE, data, extensionRegistry);
    }
    public static com.google.rpc.Help.Link parseFrom(byte[] data)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return com.google.protobuf.GeneratedMessageLite.parseFrom(
          DEFAULT_INSTANCE, data);
    }
    public static com.google.rpc.Help.Link parseFrom(
        byte[] data,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return com.google.protobuf.GeneratedMessageLite.parseFrom(
          DEFAULT_INSTANCE, data, extensionRegistry);
    }
    public static com.google.rpc.Help.Link parseFrom(java.io.InputStream input)
        throws java.io.IOException {
      return com.google.protobuf.GeneratedMessageLite.parseFrom(
          DEFAULT_INSTANCE, input);
    }
    public static com.google.rpc.Help.Link parseFrom(
        java.io.InputStream input,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws java.io.IOException {
      return com.google.protobuf.GeneratedMessageLite.parseFrom(
          DEFAULT_INSTANCE, input, extensionRegistry);
    }
    public static com.google.rpc.Help.Link parseDelimitedFrom(java.io.InputStream input)
        throws java.io.IOException {
      return parseDelimitedFrom(DEFAULT_INSTANCE, input);
    }
    public static com.google.rpc.Help.Link parseDelimitedFrom(
        java.io.InputStream input,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws java.io.IOException {
      return parseDelimitedFrom(DEFAULT_INSTANCE, input, extensionRegistry);
    }
    public static com.google.rpc.Help.Link parseFrom(
        com.google.protobuf.CodedInputStream input)
        throws java.io.IOException {
      return com.google.protobuf.GeneratedMessageLite.parseFrom(
          DEFAULT_INSTANCE, input);
    }
    public static com.google.rpc.Help.Link parseFrom(
        com.google.protobuf.CodedInputStream input,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws java.io.IOException {
      return com.google.protobuf.GeneratedMessageLite.parseFrom(
          DEFAULT_INSTANCE, input, extensionRegistry);
    }

    public static Builder newBuilder() {
      return (Builder) DEFAULT_INSTANCE.createBuilder();
    }
    public static Builder newBuilder(com.google.rpc.Help.Link prototype) {
      return (Builder) DEFAULT_INSTANCE.createBuilder(prototype);
    }

    /**
     * <pre>
     * Describes a URL link.
     * </pre>
     *
     * Protobuf type {@code google.rpc.Help.Link}
     */
    public static final class Builder extends
        com.google.protobuf.GeneratedMessageLite.Builder<
          com.google.rpc.Help.Link, Builder> implements
        // @@protoc_insertion_point(builder_implements:google.rpc.Help.Link)
        com.google.rpc.Help.LinkOrBuilder {
      // Construct using com.google.rpc.Help.Link.newBuilder()
      private Builder() {
        super(DEFAULT_INSTANCE);
      }


      /**
       * <pre>
       * Describes what the link offers.
       * </pre>
       *
       * <code>string description = 1;</code>
       * @return The description.
       */
      @java.lang.Override
      public java.lang.String getDescription() {
        return instance.getDescription();
      }
      /**
       * <pre>
       * Describes what the link offers.
       * </pre>
       *
       * <code>string description = 1;</code>
       * @return The bytes for description.
       */
      @java.lang.Override
      public com.google.protobuf.ByteString
          getDescriptionBytes() {
        return instance.getDescriptionBytes();
      }
      /**
       * <pre>
       * Describes what the link offers.
       * </pre>
       *
       * <code>string description = 1;</code>
       * @param value The description to set.
       * @return This builder for chaining.
       */
      public Builder setDescription(
          java.lang.String value) {
        copyOnWrite();
        instance.setDescription(value);
        return this;
      }
      /**
       * <pre>
       * Describes what the link offers.
       * </pre>
       *
       * <code>string description = 1;</code>
       * @return This builder for chaining.
       */
      public Builder clearDescription() {
        copyOnWrite();
        instance.clearDescription();
        return this;
      }
      /**
       * <pre>
       * Describes what the link offers.
       * </pre>
       *
       * <code>string description = 1;</code>
       * @param value The bytes for description to set.
       * @return This builder for chaining.
       */
      public Builder setDescriptionBytes(
          com.google.protobuf.ByteString value) {
        copyOnWrite();
        instance.setDescriptionBytes(value);
        return this;
      }

      /**
       * <pre>
       * The URL of the link.
       * </pre>
       *
       * <code>string url = 2;</code>
       * @return The url.
       */
      @java.lang.Override
      public java.lang.String getUrl() {
        return instance.getUrl();
      }
      /**
       * <pre>
       * The URL of the link.
       * </pre>
       *
       * <code>string url = 2;</code>
       * @return The bytes for url.
       */
      @java.lang.Override
      public com.google.protobuf.ByteString
          getUrlBytes() {
        return instance.getUrlBytes();
      }
      /**
       * <pre>
       * The URL of the link.
       * </pre>
       *
       * <code>string url = 2;</code>
       * @param value The url to set.
       * @return This builder for chaining.
       */
      public Builder setUrl(
          java.lang.String value) {
        copyOnWrite();
        instance.setUrl(value);
        return this;
      }
      /**
       * <pre>
       * The URL of the link.
       * </pre>
       *
       * <code>string url = 2;</code>
       * @return This builder for chaining.
       */
      public Builder clearUrl() {
        copyOnWrite();
        instance.clearUrl();
        return this;
      }
      /**
       * <pre>
       * The URL of the link.
       * </pre>
       *
       * <code>string url = 2;</code>
       * @param value The bytes for url to set.
       * @return This builder for chaining.
       */
      public Builder setUrlBytes(
          com.google.protobuf.ByteString value) {
        copyOnWrite();
        instance.setUrlBytes(value);
        return this;
      }

      // @@protoc_insertion_point(builder_scope:google.rpc.Help.Link)
    }
    @java.lang.Override
    @java.lang.SuppressWarnings({"unchecked", "fallthrough"})
    protected final java.lang.Object dynamicMethod(
        com.google.protobuf.GeneratedMessageLite.MethodToInvoke method,
        java.lang.Object arg0, java.lang.Object arg1) {
      switch (method) {
        case NEW_MUTABLE_INSTANCE: {
          return new com.google.rpc.Help.Link();
        }
        case NEW_BUILDER: {
          return new Builder();
        }
        case BUILD_MESSAGE_INFO: {
            java.lang.Object[] objects = new java.lang.Object[] {
              "description_",
              "url_",
            };
            java.lang.String info =
                "\u0000\u0002\u0000\u0000\u0001\u0002\u0002\u0000\u0000\u0000\u0001\u0208\u0002\u0208" +
                "";
            return newMessageInfo(DEFAULT_INSTANCE, info, objects);
        }
        // fall through
        case GET_DEFAULT_INSTANCE: {
          return DEFAULT_INSTANCE;
        }
        case GET_PARSER: {
          com.google.protobuf.Parser<com.google.rpc.Help.Link> parser = PARSER;
          if (parser == null) {
            synchronized (com.google.rpc.Help.Link.class) {
              parser = PARSER;
              if (parser == null) {
                parser =
                    new DefaultInstanceBasedParser<com.google.rpc.Help.Link>(
                        DEFAULT_INSTANCE);
                PARSER = parser;
              }
            }
          }
          return parser;
      }
      case GET_MEMOIZED_IS_INITIALIZED: {
        return (byte) 1;
      }
      case SET_MEMOIZED_IS_INITIALIZED: {
        return null;
      }
      }
      throw new UnsupportedOperationException();
    }


    // @@protoc_insertion_point(class_scope:google.rpc.Help.Link)
    private static final com.google.rpc.Help.Link DEFAULT_INSTANCE;
    static {
      Link defaultInstance = new Link();
      // New instances are implicitly immutable so no need to make
      // immutable.
      DEFAULT_INSTANCE = defaultInstance;
      com.google.protobuf.GeneratedMessageLite.registerDefaultInstance(
        Link.class, defaultInstance);
    }

    public static com.google.rpc.Help.Link getDefaultInstance() {
      return DEFAULT_INSTANCE;
    }

    private static volatile com.google.protobuf.Parser<Link> PARSER;

    public static com.google.protobuf.Parser<Link> parser() {
      return DEFAULT_INSTANCE.getParserForType();
    }
  }

  public static final int LINKS_FIELD_NUMBER = 1;
  private com.google.protobuf.Internal.ProtobufList<com.google.rpc.Help.Link> links_;
  /**
   * <pre>
   * URL(s) pointing to additional information on handling the current error.
   * </pre>
   *
   * <code>repeated .google.rpc.Help.Link links = 1;</code>
   */
  @java.lang.Override
  public java.util.List<com.google.rpc.Help.Link> getLinksList() {
    return links_;
  }
  /**
   * <pre>
   * URL(s) pointing to additional information on handling the current error.
   * </pre>
   *
   * <code>repeated .google.rpc.Help.Link links = 1;</code>
   */
  public java.util.List<? extends com.google.rpc.Help.LinkOrBuilder> 
      getLinksOrBuilderList() {
    return links_;
  }
  /**
   * <pre>
   * URL(s) pointing to additional information on handling the current error.
   * </pre>
   *
   * <code>repeated .google.rpc.Help.Link links = 1;</code>
   */
  @java.lang.Override
  public int getLinksCount() {
    return links_.size();
  }
  /**
   * <pre>
   * URL(s) pointing to additional information on handling the current error.
   * </pre>
   *
   * <code>repeated .google.rpc.Help.Link links = 1;</code>
   */
  @java.lang.Override
  public com.google.rpc.Help.Link getLinks(int index) {
    return links_.get(index);
  }
  /**
   * <pre>
   * URL(s) pointing to additional information on handling the current error.
   * </pre>
   *
   * <code>repeated .google.rpc.Help.Link links = 1;</code>
   */
  public com.google.rpc.Help.LinkOrBuilder getLinksOrBuilder(
      int index) {
    return links_.get(index);
  }
  private void ensureLinksIsMutable() {
    com.google.protobuf.Internal.ProtobufList<com.google.rpc.Help.Link> tmp = links_;
    if (!tmp.isModifiable()) {
      links_ =
          com.google.protobuf.GeneratedMessageLite.mutableCopy(tmp);
     }
  }

  /**
   * <pre>
   * URL(s) pointing to additional information on handling the current error.
   * </pre>
   *
   * <code>repeated .google.rpc.Help.Link links = 1;</code>
   */
  private void setLinks(
      int index, com.google.rpc.Help.Link value) {
    value.getClass();
  ensureLinksIsMutable();
    links_.set(index, value);
  }
  /**
   * <pre>
   * URL(s) pointing to additional information on handling the current error.
   * </pre>
   *
   * <code>repeated .google.rpc.Help.Link links = 1;</code>
   */
  private void addLinks(com.google.rpc.Help.Link value) {
    value.getClass();
  ensureLinksIsMutable();
    links_.add(value);
  }
  /**
   * <pre>
   * URL(s) pointing to additional information on handling the current error.
   * </pre>
   *
   * <code>repeated .google.rpc.Help.Link links = 1;</code>
   */
  private void addLinks(
      int index, com.google.rpc.Help.Link value) {
    value.getClass();
  ensureLinksIsMutable();
    links_.add(index, value);
  }
  /**
   * <pre>
   * URL(s) pointing to additional information on handling the current error.
   * </pre>
   *
   * <code>repeated .google.rpc.Help.Link links = 1;</code>
   */
  private void addAllLinks(
      java.lang.Iterable<? extends com.google.rpc.Help.Link> values) {
    ensureLinksIsMutable();
    com.google.protobuf.AbstractMessageLite.addAll(
        values, links_);
  }
  /**
   * <pre>
   * URL(s) pointing to additional information on handling the current error.
   * </pre>
   *
   * <code>repeated .google.rpc.Help.Link links = 1;</code>
   */
  private void clearLinks() {
    links_ = emptyProtobufList();
  }
  /**
   * <pre>
   * URL(s) pointing to additional information on handling the current error.
   * </pre>
   *
   * <code>repeated .google.rpc.Help.Link links = 1;</code>
   */
  private void removeLinks(int index) {
    ensureLinksIsMutable();
    links_.remove(index);
  }

  public static com.google.rpc.Help parseFrom(
      java.nio.ByteBuffer data)
      throws com.google.protobuf.InvalidProtocolBufferException {
    return com.google.protobuf.GeneratedMessageLite.parseFrom(
        DEFAULT_INSTANCE, data);
  }
  public static com.google.rpc.Help parseFrom(
      java.nio.ByteBuffer data,
      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
      throws com.google.protobuf.InvalidProtocolBufferException {
    return com.google.protobuf.GeneratedMessageLite.parseFrom(
        DEFAULT_INSTANCE, data, extensionRegistry);
  }
  public static com.google.rpc.Help parseFrom(
      com.google.protobuf.ByteString data)
      throws com.google.protobuf.InvalidProtocolBufferException {
    return com.google.protobuf.GeneratedMessageLite.parseFrom(
        DEFAULT_INSTANCE, data);
  }
  public static com.google.rpc.Help parseFrom(
      com.google.protobuf.ByteString data,
      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
      throws com.google.protobuf.InvalidProtocolBufferException {
    return com.google.protobuf.GeneratedMessageLite.parseFrom(
        DEFAULT_INSTANCE, data, extensionRegistry);
  }
  public static com.google.rpc.Help parseFrom(byte[] data)
      throws com.google.protobuf.InvalidProtocolBufferException {
    return com.google.protobuf.GeneratedMessageLite.parseFrom(
        DEFAULT_INSTANCE, data);
  }
  public static com.google.rpc.Help parseFrom(
      byte[] data,
      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
      throws com.google.protobuf.InvalidProtocolBufferException {
    return com.google.protobuf.GeneratedMessageLite.parseFrom(
        DEFAULT_INSTANCE, data, extensionRegistry);
  }
  public static com.google.rpc.Help parseFrom(java.io.InputStream input)
      throws java.io.IOException {
    return com.google.protobuf.GeneratedMessageLite.parseFrom(
        DEFAULT_INSTANCE, input);
  }
  public static com.google.rpc.Help parseFrom(
      java.io.InputStream input,
      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
      throws java.io.IOException {
    return com.google.protobuf.GeneratedMessageLite.parseFrom(
        DEFAULT_INSTANCE, input, extensionRegistry);
  }
  public static com.google.rpc.Help parseDelimitedFrom(java.io.InputStream input)
      throws java.io.IOException {
    return parseDelimitedFrom(DEFAULT_INSTANCE, input);
  }
  public static com.google.rpc.Help parseDelimitedFrom(
      java.io.InputStream input,
      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
      throws java.io.IOException {
    return parseDelimitedFrom(DEFAULT_INSTANCE, input, extensionRegistry);
  }
  public static com.google.rpc.Help parseFrom(
      com.google.protobuf.CodedInputStream input)
      throws java.io.IOException {
    return com.google.protobuf.GeneratedMessageLite.parseFrom(
        DEFAULT_INSTANCE, input);
  }
  public static com.google.rpc.Help parseFrom(
      com.google.protobuf.CodedInputStream input,
      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
      throws java.io.IOException {
    return com.google.protobuf.GeneratedMessageLite.parseFrom(
        DEFAULT_INSTANCE, input, extensionRegistry);
  }

  public static Builder newBuilder() {
    return (Builder) DEFAULT_INSTANCE.createBuilder();
  }
  public static Builder newBuilder(com.google.rpc.Help prototype) {
    return (Builder) DEFAULT_INSTANCE.createBuilder(prototype);
  }

  /**
   * <pre>
   * Provides links to documentation or for performing an out of band action.
   * For example, if a quota check failed with an error indicating the calling
   * project hasn't enabled the accessed service, this can contain a URL pointing
   * directly to the right place in the developer console to flip the bit.
   * </pre>
   *
   * Protobuf type {@code google.rpc.Help}
   */
  public static final class Builder extends
      com.google.protobuf.GeneratedMessageLite.Builder<
        com.google.rpc.Help, Builder> implements
      // @@protoc_insertion_point(builder_implements:google.rpc.Help)
      com.google.rpc.HelpOrBuilder {
    // Construct using com.google.rpc.Help.newBuilder()
    private Builder() {
      super(DEFAULT_INSTANCE);
    }


    /**
     * <pre>
     * URL(s) pointing to additional information on handling the current error.
     * </pre>
     *
     * <code>repeated .google.rpc.Help.Link links = 1;</code>
     */
    @java.lang.Override
    public java.util.List<com.google.rpc.Help.Link> getLinksList() {
      return java.util.Collections.unmodifiableList(
          instance.getLinksList());
    }
    /**
     * <pre>
     * URL(s) pointing to additional information on handling the current error.
     * </pre>
     *
     * <code>repeated .google.rpc.Help.Link links = 1;</code>
     */
    @java.lang.Override
    public int getLinksCount() {
      return instance.getLinksCount();
    }/**
     * <pre>
     * URL(s) pointing to additional information on handling the current error.
     * </pre>
     *
     * <code>repeated .google.rpc.Help.Link links = 1;</code>
     */
    @java.lang.Override
    public com.google.rpc.Help.Link getLinks(int index) {
      return instance.getLinks(index);
    }
    /**
     * <pre>
     * URL(s) pointing to additional information on handling the current error.
     * </pre>
     *
     * <code>repeated .google.rpc.Help.Link links = 1;</code>
     */
    public Builder setLinks(
        int index, com.google.rpc.Help.Link value) {
      copyOnWrite();
      instance.setLinks(index, value);
      return this;
    }
    /**
     * <pre>
     * URL(s) pointing to additional information on handling the current error.
     * </pre>
     *
     * <code>repeated .google.rpc.Help.Link links = 1;</code>
     */
    public Builder setLinks(
        int index, com.google.rpc.Help.Link.Builder builderForValue) {
      copyOnWrite();
      instance.setLinks(index,
          builderForValue.build());
      return this;
    }
    /**
     * <pre>
     * URL(s) pointing to additional information on handling the current error.
     * </pre>
     *
     * <code>repeated .google.rpc.Help.Link links = 1;</code>
     */
    public Builder addLinks(com.google.rpc.Help.Link value) {
      copyOnWrite();
      instance.addLinks(value);
      return this;
    }
    /**
     * <pre>
     * URL(s) pointing to additional information on handling the current error.
     * </pre>
     *
     * <code>repeated .google.rpc.Help.Link links = 1;</code>
     */
    public Builder addLinks(
        int index, com.google.rpc.Help.Link value) {
      copyOnWrite();
      instance.addLinks(index, value);
      return this;
    }
    /**
     * <pre>
     * URL(s) pointing to additional information on handling the current error.
     * </pre>
     *
     * <code>repeated .google.rpc.Help.Link links = 1;</code>
     */
    public Builder addLinks(
        com.google.rpc.Help.Link.Builder builderForValue) {
      copyOnWrite();
      instance.addLinks(builderForValue.build());
      return this;
    }
    /**
     * <pre>
     * URL(s) pointing to additional information on handling the current error.
     * </pre>
     *
     * <code>repeated .google.rpc.Help.Link links = 1;</code>
     */
    public Builder addLinks(
        int index, com.google.rpc.Help.Link.Builder builderForValue) {
      copyOnWrite();
      instance.addLinks(index,
          builderForValue.build());
      return this;
    }
    /**
     * <pre>
     * URL(s) pointing to additional information on handling the current error.
     * </pre>
     *
     * <code>repeated .google.rpc.Help.Link links = 1;</code>
     */
    public Builder addAllLinks(
        java.lang.Iterable<? extends com.google.rpc.Help.Link> values) {
      copyOnWrite();
      instance.addAllLinks(values);
      return this;
    }
    /**
     * <pre>
     * URL(s) pointing to additional information on handling the current error.
     * </pre>
     *
     * <code>repeated .google.rpc.Help.Link links = 1;</code>
     */
    public Builder clearLinks() {
      copyOnWrite();
      instance.clearLinks();
      return this;
    }
    /**
     * <pre>
     * URL(s) pointing to additional information on handling the current error.
     * </pre>
     *
     * <code>repeated .google.rpc.Help.Link links = 1;</code>
     */
    public Builder removeLinks(int index) {
      copyOnWrite();
      instance.removeLinks(index);
      return this;
    }

    // @@protoc_insertion_point(builder_scope:google.rpc.Help)
  }
  @java.lang.Override
  @java.lang.SuppressWarnings({"unchecked", "fallthrough"})
  protected final java.lang.Object dynamicMethod(
      com.google.protobuf.GeneratedMessageLite.MethodToInvoke method,
      java.lang.Object arg0, java.lang.Object arg1) {
    switch (method) {
      case NEW_MUTABLE_INSTANCE: {
        return new com.google.rpc.Help();
      }
      case NEW_BUILDER: {
        return new Builder();
      }
      case BUILD_MESSAGE_INFO: {
          java.lang.Object[] objects = new java.lang.Object[] {
            "links_",
            com.google.rpc.Help.Link.class,
          };
          java.lang.String info =
              "\u0000\u0001\u0000\u0000\u0001\u0001\u0001\u0000\u0001\u0000\u0001\u001b";
          return newMessageInfo(DEFAULT_INSTANCE, info, objects);
      }
      // fall through
      case GET_DEFAULT_INSTANCE: {
        return DEFAULT_INSTANCE;
      }
      case GET_PARSER: {
        com.google.protobuf.Parser<com.google.rpc.Help> parser = PARSER;
        if (parser == null) {
          synchronized (com.google.rpc.Help.class) {
            parser = PARSER;
            if (parser == null) {
              parser =
                  new DefaultInstanceBasedParser<com.google.rpc.Help>(
                      DEFAULT_INSTANCE);
              PARSER = parser;
            }
          }
        }
        return parser;
    }
    case GET_MEMOIZED_IS_INITIALIZED: {
      return (byte) 1;
    }
    case SET_MEMOIZED_IS_INITIALIZED: {
      return null;
    }
    }
    throw new UnsupportedOperationException();
  }


  // @@protoc_insertion_point(class_scope:google.rpc.Help)
  private static final com.google.rpc.Help DEFAULT_INSTANCE;
  static {
    Help defaultInstance = new Help();
    // New instances are implicitly immutable so no need to make
    // immutable.
    DEFAULT_INSTANCE = defaultInstance;
    com.google.protobuf.GeneratedMessageLite.registerDefaultInstance(
      Help.class, defaultInstance);
  }

  public static com.google.rpc.Help getDefaultInstance() {
    return DEFAULT_INSTANCE;
  }

  private static volatile com.google.protobuf.Parser<Help> PARSER;

  public static com.google.protobuf.Parser<Help> parser() {
    return DEFAULT_INSTANCE.getParserForType();
  }
}

