// Generated by the protocol buffer compiler.  DO NOT EDIT!
// source: src/main/protobuf/builtin.proto

package com.google.devtools.build.docgen.builtin;

public final class BuiltinProtos {
  private BuiltinProtos() {}
  public static void registerAllExtensions(
      com.google.protobuf.ExtensionRegistryLite registry) {
  }

  public static void registerAllExtensions(
      com.google.protobuf.ExtensionRegistry registry) {
    registerAllExtensions(
        (com.google.protobuf.ExtensionRegistryLite) registry);
  }
  /**
   * <pre>
   * ApiContext specifies the context(s) in which a symbol is available. For
   * example, a symbol may be available as a builtin only in .bzl files, but
   * not in BUILD files.
   * </pre>
   *
   * Protobuf enum {@code builtin.ApiContext}
   */
  public enum ApiContext
      implements com.google.protobuf.ProtocolMessageEnum {
    /**
     * <code>ALL = 0;</code>
     */
    ALL(0),
    /**
     * <code>BZL = 1;</code>
     */
    BZL(1),
    /**
     * <code>BUILD = 2;</code>
     */
    BUILD(2),
    UNRECOGNIZED(-1),
    ;

    /**
     * <code>ALL = 0;</code>
     */
    public static final int ALL_VALUE = 0;
    /**
     * <code>BZL = 1;</code>
     */
    public static final int BZL_VALUE = 1;
    /**
     * <code>BUILD = 2;</code>
     */
    public static final int BUILD_VALUE = 2;


    public final int getNumber() {
      if (this == UNRECOGNIZED) {
        throw new java.lang.IllegalArgumentException(
            "Can't get the number of an unknown enum value.");
      }
      return value;
    }

    /**
     * @deprecated Use {@link #forNumber(int)} instead.
     */
    @java.lang.Deprecated
    public static ApiContext valueOf(int value) {
      return forNumber(value);
    }

    public static ApiContext forNumber(int value) {
      switch (value) {
        case 0: return ALL;
        case 1: return BZL;
        case 2: return BUILD;
        default: return null;
      }
    }

    public static com.google.protobuf.Internal.EnumLiteMap<ApiContext>
        internalGetValueMap() {
      return internalValueMap;
    }
    private static final com.google.protobuf.Internal.EnumLiteMap<
        ApiContext> internalValueMap =
          new com.google.protobuf.Internal.EnumLiteMap<ApiContext>() {
            public ApiContext findValueByNumber(int number) {
              return ApiContext.forNumber(number);
            }
          };

    public final com.google.protobuf.Descriptors.EnumValueDescriptor
        getValueDescriptor() {
      return getDescriptor().getValues().get(ordinal());
    }
    public final com.google.protobuf.Descriptors.EnumDescriptor
        getDescriptorForType() {
      return getDescriptor();
    }
    public static final com.google.protobuf.Descriptors.EnumDescriptor
        getDescriptor() {
      return com.google.devtools.build.docgen.builtin.BuiltinProtos.getDescriptor().getEnumTypes().get(0);
    }

    private static final ApiContext[] VALUES = values();

    public static ApiContext valueOf(
        com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
      if (desc.getType() != getDescriptor()) {
        throw new java.lang.IllegalArgumentException(
          "EnumValueDescriptor is not for this type.");
      }
      if (desc.getIndex() == -1) {
        return UNRECOGNIZED;
      }
      return VALUES[desc.getIndex()];
    }

    private final int value;

    private ApiContext(int value) {
      this.value = value;
    }

    // @@protoc_insertion_point(enum_scope:builtin.ApiContext)
  }

  public interface BuiltinsOrBuilder extends
      // @@protoc_insertion_point(interface_extends:builtin.Builtins)
      com.google.protobuf.MessageOrBuilder {

    /**
     * <code>repeated .builtin.Type type = 1;</code>
     */
    java.util.List<com.google.devtools.build.docgen.builtin.BuiltinProtos.Type> 
        getTypeList();
    /**
     * <code>repeated .builtin.Type type = 1;</code>
     */
    com.google.devtools.build.docgen.builtin.BuiltinProtos.Type getType(int index);
    /**
     * <code>repeated .builtin.Type type = 1;</code>
     */
    int getTypeCount();
    /**
     * <code>repeated .builtin.Type type = 1;</code>
     */
    java.util.List<? extends com.google.devtools.build.docgen.builtin.BuiltinProtos.TypeOrBuilder> 
        getTypeOrBuilderList();
    /**
     * <code>repeated .builtin.Type type = 1;</code>
     */
    com.google.devtools.build.docgen.builtin.BuiltinProtos.TypeOrBuilder getTypeOrBuilder(
        int index);

    /**
     * <code>repeated .builtin.Value global = 2;</code>
     */
    java.util.List<com.google.devtools.build.docgen.builtin.BuiltinProtos.Value> 
        getGlobalList();
    /**
     * <code>repeated .builtin.Value global = 2;</code>
     */
    com.google.devtools.build.docgen.builtin.BuiltinProtos.Value getGlobal(int index);
    /**
     * <code>repeated .builtin.Value global = 2;</code>
     */
    int getGlobalCount();
    /**
     * <code>repeated .builtin.Value global = 2;</code>
     */
    java.util.List<? extends com.google.devtools.build.docgen.builtin.BuiltinProtos.ValueOrBuilder> 
        getGlobalOrBuilderList();
    /**
     * <code>repeated .builtin.Value global = 2;</code>
     */
    com.google.devtools.build.docgen.builtin.BuiltinProtos.ValueOrBuilder getGlobalOrBuilder(
        int index);
  }
  /**
   * <pre>
   * Top-level object for all BUILD and Skylark builtin modules.
   * Globals contains a list of all builtin variables, functions and packages
   * (e.g. "java_common" and "native" will be included, same as "None" and
   * "dict").
   * Types contains a list of all builtin packages (e.g. "java_common"
   * and "native"). All types should be uniquely named.
   * </pre>
   *
   * Protobuf type {@code builtin.Builtins}
   */
  public  static final class Builtins extends
      com.google.protobuf.GeneratedMessageV3 implements
      // @@protoc_insertion_point(message_implements:builtin.Builtins)
      BuiltinsOrBuilder {
  private static final long serialVersionUID = 0L;
    // Use Builtins.newBuilder() to construct.
    private Builtins(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {
      super(builder);
    }
    private Builtins() {
      type_ = java.util.Collections.emptyList();
      global_ = java.util.Collections.emptyList();
    }

    @java.lang.Override
    public final com.google.protobuf.UnknownFieldSet
    getUnknownFields() {
      return this.unknownFields;
    }
    private Builtins(
        com.google.protobuf.CodedInputStream input,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws com.google.protobuf.InvalidProtocolBufferException {
      this();
      if (extensionRegistry == null) {
        throw new java.lang.NullPointerException();
      }
      int mutable_bitField0_ = 0;
      com.google.protobuf.UnknownFieldSet.Builder unknownFields =
          com.google.protobuf.UnknownFieldSet.newBuilder();
      try {
        boolean done = false;
        while (!done) {
          int tag = input.readTag();
          switch (tag) {
            case 0:
              done = true;
              break;
            case 10: {
              if (!((mutable_bitField0_ & 0x00000001) == 0x00000001)) {
                type_ = new java.util.ArrayList<com.google.devtools.build.docgen.builtin.BuiltinProtos.Type>();
                mutable_bitField0_ |= 0x00000001;
              }
              type_.add(
                  input.readMessage(com.google.devtools.build.docgen.builtin.BuiltinProtos.Type.parser(), extensionRegistry));
              break;
            }
            case 18: {
              if (!((mutable_bitField0_ & 0x00000002) == 0x00000002)) {
                global_ = new java.util.ArrayList<com.google.devtools.build.docgen.builtin.BuiltinProtos.Value>();
                mutable_bitField0_ |= 0x00000002;
              }
              global_.add(
                  input.readMessage(com.google.devtools.build.docgen.builtin.BuiltinProtos.Value.parser(), extensionRegistry));
              break;
            }
            default: {
              if (!parseUnknownFieldProto3(
                  input, unknownFields, extensionRegistry, tag)) {
                done = true;
              }
              break;
            }
          }
        }
      } catch (com.google.protobuf.InvalidProtocolBufferException e) {
        throw e.setUnfinishedMessage(this);
      } catch (java.io.IOException e) {
        throw new com.google.protobuf.InvalidProtocolBufferException(
            e).setUnfinishedMessage(this);
      } finally {
        if (((mutable_bitField0_ & 0x00000001) == 0x00000001)) {
          type_ = java.util.Collections.unmodifiableList(type_);
        }
        if (((mutable_bitField0_ & 0x00000002) == 0x00000002)) {
          global_ = java.util.Collections.unmodifiableList(global_);
        }
        this.unknownFields = unknownFields.build();
        makeExtensionsImmutable();
      }
    }
    public static final com.google.protobuf.Descriptors.Descriptor
        getDescriptor() {
      return com.google.devtools.build.docgen.builtin.BuiltinProtos.internal_static_builtin_Builtins_descriptor;
    }

    @java.lang.Override
    protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
        internalGetFieldAccessorTable() {
      return com.google.devtools.build.docgen.builtin.BuiltinProtos.internal_static_builtin_Builtins_fieldAccessorTable
          .ensureFieldAccessorsInitialized(
              com.google.devtools.build.docgen.builtin.BuiltinProtos.Builtins.class, com.google.devtools.build.docgen.builtin.BuiltinProtos.Builtins.Builder.class);
    }

    public static final int TYPE_FIELD_NUMBER = 1;
    private java.util.List<com.google.devtools.build.docgen.builtin.BuiltinProtos.Type> type_;
    /**
     * <code>repeated .builtin.Type type = 1;</code>
     */
    public java.util.List<com.google.devtools.build.docgen.builtin.BuiltinProtos.Type> getTypeList() {
      return type_;
    }
    /**
     * <code>repeated .builtin.Type type = 1;</code>
     */
    public java.util.List<? extends com.google.devtools.build.docgen.builtin.BuiltinProtos.TypeOrBuilder> 
        getTypeOrBuilderList() {
      return type_;
    }
    /**
     * <code>repeated .builtin.Type type = 1;</code>
     */
    public int getTypeCount() {
      return type_.size();
    }
    /**
     * <code>repeated .builtin.Type type = 1;</code>
     */
    public com.google.devtools.build.docgen.builtin.BuiltinProtos.Type getType(int index) {
      return type_.get(index);
    }
    /**
     * <code>repeated .builtin.Type type = 1;</code>
     */
    public com.google.devtools.build.docgen.builtin.BuiltinProtos.TypeOrBuilder getTypeOrBuilder(
        int index) {
      return type_.get(index);
    }

    public static final int GLOBAL_FIELD_NUMBER = 2;
    private java.util.List<com.google.devtools.build.docgen.builtin.BuiltinProtos.Value> global_;
    /**
     * <code>repeated .builtin.Value global = 2;</code>
     */
    public java.util.List<com.google.devtools.build.docgen.builtin.BuiltinProtos.Value> getGlobalList() {
      return global_;
    }
    /**
     * <code>repeated .builtin.Value global = 2;</code>
     */
    public java.util.List<? extends com.google.devtools.build.docgen.builtin.BuiltinProtos.ValueOrBuilder> 
        getGlobalOrBuilderList() {
      return global_;
    }
    /**
     * <code>repeated .builtin.Value global = 2;</code>
     */
    public int getGlobalCount() {
      return global_.size();
    }
    /**
     * <code>repeated .builtin.Value global = 2;</code>
     */
    public com.google.devtools.build.docgen.builtin.BuiltinProtos.Value getGlobal(int index) {
      return global_.get(index);
    }
    /**
     * <code>repeated .builtin.Value global = 2;</code>
     */
    public com.google.devtools.build.docgen.builtin.BuiltinProtos.ValueOrBuilder getGlobalOrBuilder(
        int index) {
      return global_.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 {
      for (int i = 0; i < type_.size(); i++) {
        output.writeMessage(1, type_.get(i));
      }
      for (int i = 0; i < global_.size(); i++) {
        output.writeMessage(2, global_.get(i));
      }
      unknownFields.writeTo(output);
    }

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

      size = 0;
      for (int i = 0; i < type_.size(); i++) {
        size += com.google.protobuf.CodedOutputStream
          .computeMessageSize(1, type_.get(i));
      }
      for (int i = 0; i < global_.size(); i++) {
        size += com.google.protobuf.CodedOutputStream
          .computeMessageSize(2, global_.get(i));
      }
      size += unknownFields.getSerializedSize();
      memoizedSize = size;
      return size;
    }

    @java.lang.Override
    public boolean equals(final java.lang.Object obj) {
      if (obj == this) {
       return true;
      }
      if (!(obj instanceof com.google.devtools.build.docgen.builtin.BuiltinProtos.Builtins)) {
        return super.equals(obj);
      }
      com.google.devtools.build.docgen.builtin.BuiltinProtos.Builtins other = (com.google.devtools.build.docgen.builtin.BuiltinProtos.Builtins) obj;

      boolean result = true;
      result = result && getTypeList()
          .equals(other.getTypeList());
      result = result && getGlobalList()
          .equals(other.getGlobalList());
      result = result && unknownFields.equals(other.unknownFields);
      return result;
    }

    @java.lang.Override
    public int hashCode() {
      if (memoizedHashCode != 0) {
        return memoizedHashCode;
      }
      int hash = 41;
      hash = (19 * hash) + getDescriptor().hashCode();
      if (getTypeCount() > 0) {
        hash = (37 * hash) + TYPE_FIELD_NUMBER;
        hash = (53 * hash) + getTypeList().hashCode();
      }
      if (getGlobalCount() > 0) {
        hash = (37 * hash) + GLOBAL_FIELD_NUMBER;
        hash = (53 * hash) + getGlobalList().hashCode();
      }
      hash = (29 * hash) + unknownFields.hashCode();
      memoizedHashCode = hash;
      return hash;
    }

    public static com.google.devtools.build.docgen.builtin.BuiltinProtos.Builtins parseFrom(
        java.nio.ByteBuffer data)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data);
    }
    public static com.google.devtools.build.docgen.builtin.BuiltinProtos.Builtins parseFrom(
        java.nio.ByteBuffer data,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data, extensionRegistry);
    }
    public static com.google.devtools.build.docgen.builtin.BuiltinProtos.Builtins parseFrom(
        com.google.protobuf.ByteString data)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data);
    }
    public static com.google.devtools.build.docgen.builtin.BuiltinProtos.Builtins 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.devtools.build.docgen.builtin.BuiltinProtos.Builtins parseFrom(byte[] data)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data);
    }
    public static com.google.devtools.build.docgen.builtin.BuiltinProtos.Builtins parseFrom(
        byte[] data,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data, extensionRegistry);
    }
    public static com.google.devtools.build.docgen.builtin.BuiltinProtos.Builtins parseFrom(java.io.InputStream input)
        throws java.io.IOException {
      return com.google.protobuf.GeneratedMessageV3
          .parseWithIOException(PARSER, input);
    }
    public static com.google.devtools.build.docgen.builtin.BuiltinProtos.Builtins 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.devtools.build.docgen.builtin.BuiltinProtos.Builtins parseDelimitedFrom(java.io.InputStream input)
        throws java.io.IOException {
      return com.google.protobuf.GeneratedMessageV3
          .parseDelimitedWithIOException(PARSER, input);
    }
    public static com.google.devtools.build.docgen.builtin.BuiltinProtos.Builtins 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.devtools.build.docgen.builtin.BuiltinProtos.Builtins parseFrom(
        com.google.protobuf.CodedInputStream input)
        throws java.io.IOException {
      return com.google.protobuf.GeneratedMessageV3
          .parseWithIOException(PARSER, input);
    }
    public static com.google.devtools.build.docgen.builtin.BuiltinProtos.Builtins 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.devtools.build.docgen.builtin.BuiltinProtos.Builtins 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>
     * Top-level object for all BUILD and Skylark builtin modules.
     * Globals contains a list of all builtin variables, functions and packages
     * (e.g. "java_common" and "native" will be included, same as "None" and
     * "dict").
     * Types contains a list of all builtin packages (e.g. "java_common"
     * and "native"). All types should be uniquely named.
     * </pre>
     *
     * Protobuf type {@code builtin.Builtins}
     */
    public static final class Builder extends
        com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements
        // @@protoc_insertion_point(builder_implements:builtin.Builtins)
        com.google.devtools.build.docgen.builtin.BuiltinProtos.BuiltinsOrBuilder {
      public static final com.google.protobuf.Descriptors.Descriptor
          getDescriptor() {
        return com.google.devtools.build.docgen.builtin.BuiltinProtos.internal_static_builtin_Builtins_descriptor;
      }

      @java.lang.Override
      protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
          internalGetFieldAccessorTable() {
        return com.google.devtools.build.docgen.builtin.BuiltinProtos.internal_static_builtin_Builtins_fieldAccessorTable
            .ensureFieldAccessorsInitialized(
                com.google.devtools.build.docgen.builtin.BuiltinProtos.Builtins.class, com.google.devtools.build.docgen.builtin.BuiltinProtos.Builtins.Builder.class);
      }

      // Construct using com.google.devtools.build.docgen.builtin.BuiltinProtos.Builtins.newBuilder()
      private Builder() {
        maybeForceBuilderInitialization();
      }

      private Builder(
          com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
        super(parent);
        maybeForceBuilderInitialization();
      }
      private void maybeForceBuilderInitialization() {
        if (com.google.protobuf.GeneratedMessageV3
                .alwaysUseFieldBuilders) {
          getTypeFieldBuilder();
          getGlobalFieldBuilder();
        }
      }
      @java.lang.Override
      public Builder clear() {
        super.clear();
        if (typeBuilder_ == null) {
          type_ = java.util.Collections.emptyList();
          bitField0_ = (bitField0_ & ~0x00000001);
        } else {
          typeBuilder_.clear();
        }
        if (globalBuilder_ == null) {
          global_ = java.util.Collections.emptyList();
          bitField0_ = (bitField0_ & ~0x00000002);
        } else {
          globalBuilder_.clear();
        }
        return this;
      }

      @java.lang.Override
      public com.google.protobuf.Descriptors.Descriptor
          getDescriptorForType() {
        return com.google.devtools.build.docgen.builtin.BuiltinProtos.internal_static_builtin_Builtins_descriptor;
      }

      @java.lang.Override
      public com.google.devtools.build.docgen.builtin.BuiltinProtos.Builtins getDefaultInstanceForType() {
        return com.google.devtools.build.docgen.builtin.BuiltinProtos.Builtins.getDefaultInstance();
      }

      @java.lang.Override
      public com.google.devtools.build.docgen.builtin.BuiltinProtos.Builtins build() {
        com.google.devtools.build.docgen.builtin.BuiltinProtos.Builtins result = buildPartial();
        if (!result.isInitialized()) {
          throw newUninitializedMessageException(result);
        }
        return result;
      }

      @java.lang.Override
      public com.google.devtools.build.docgen.builtin.BuiltinProtos.Builtins buildPartial() {
        com.google.devtools.build.docgen.builtin.BuiltinProtos.Builtins result = new com.google.devtools.build.docgen.builtin.BuiltinProtos.Builtins(this);
        int from_bitField0_ = bitField0_;
        if (typeBuilder_ == null) {
          if (((bitField0_ & 0x00000001) == 0x00000001)) {
            type_ = java.util.Collections.unmodifiableList(type_);
            bitField0_ = (bitField0_ & ~0x00000001);
          }
          result.type_ = type_;
        } else {
          result.type_ = typeBuilder_.build();
        }
        if (globalBuilder_ == null) {
          if (((bitField0_ & 0x00000002) == 0x00000002)) {
            global_ = java.util.Collections.unmodifiableList(global_);
            bitField0_ = (bitField0_ & ~0x00000002);
          }
          result.global_ = global_;
        } else {
          result.global_ = globalBuilder_.build();
        }
        onBuilt();
        return result;
      }

      @java.lang.Override
      public Builder clone() {
        return (Builder) super.clone();
      }
      @java.lang.Override
      public Builder setField(
          com.google.protobuf.Descriptors.FieldDescriptor field,
          java.lang.Object value) {
        return (Builder) super.setField(field, value);
      }
      @java.lang.Override
      public Builder clearField(
          com.google.protobuf.Descriptors.FieldDescriptor field) {
        return (Builder) super.clearField(field);
      }
      @java.lang.Override
      public Builder clearOneof(
          com.google.protobuf.Descriptors.OneofDescriptor oneof) {
        return (Builder) super.clearOneof(oneof);
      }
      @java.lang.Override
      public Builder setRepeatedField(
          com.google.protobuf.Descriptors.FieldDescriptor field,
          int index, java.lang.Object value) {
        return (Builder) super.setRepeatedField(field, index, value);
      }
      @java.lang.Override
      public Builder addRepeatedField(
          com.google.protobuf.Descriptors.FieldDescriptor field,
          java.lang.Object value) {
        return (Builder) super.addRepeatedField(field, value);
      }
      @java.lang.Override
      public Builder mergeFrom(com.google.protobuf.Message other) {
        if (other instanceof com.google.devtools.build.docgen.builtin.BuiltinProtos.Builtins) {
          return mergeFrom((com.google.devtools.build.docgen.builtin.BuiltinProtos.Builtins)other);
        } else {
          super.mergeFrom(other);
          return this;
        }
      }

      public Builder mergeFrom(com.google.devtools.build.docgen.builtin.BuiltinProtos.Builtins other) {
        if (other == com.google.devtools.build.docgen.builtin.BuiltinProtos.Builtins.getDefaultInstance()) return this;
        if (typeBuilder_ == null) {
          if (!other.type_.isEmpty()) {
            if (type_.isEmpty()) {
              type_ = other.type_;
              bitField0_ = (bitField0_ & ~0x00000001);
            } else {
              ensureTypeIsMutable();
              type_.addAll(other.type_);
            }
            onChanged();
          }
        } else {
          if (!other.type_.isEmpty()) {
            if (typeBuilder_.isEmpty()) {
              typeBuilder_.dispose();
              typeBuilder_ = null;
              type_ = other.type_;
              bitField0_ = (bitField0_ & ~0x00000001);
              typeBuilder_ = 
                com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
                   getTypeFieldBuilder() : null;
            } else {
              typeBuilder_.addAllMessages(other.type_);
            }
          }
        }
        if (globalBuilder_ == null) {
          if (!other.global_.isEmpty()) {
            if (global_.isEmpty()) {
              global_ = other.global_;
              bitField0_ = (bitField0_ & ~0x00000002);
            } else {
              ensureGlobalIsMutable();
              global_.addAll(other.global_);
            }
            onChanged();
          }
        } else {
          if (!other.global_.isEmpty()) {
            if (globalBuilder_.isEmpty()) {
              globalBuilder_.dispose();
              globalBuilder_ = null;
              global_ = other.global_;
              bitField0_ = (bitField0_ & ~0x00000002);
              globalBuilder_ = 
                com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
                   getGlobalFieldBuilder() : null;
            } else {
              globalBuilder_.addAllMessages(other.global_);
            }
          }
        }
        this.mergeUnknownFields(other.unknownFields);
        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 {
        com.google.devtools.build.docgen.builtin.BuiltinProtos.Builtins parsedMessage = null;
        try {
          parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
        } catch (com.google.protobuf.InvalidProtocolBufferException e) {
          parsedMessage = (com.google.devtools.build.docgen.builtin.BuiltinProtos.Builtins) e.getUnfinishedMessage();
          throw e.unwrapIOException();
        } finally {
          if (parsedMessage != null) {
            mergeFrom(parsedMessage);
          }
        }
        return this;
      }
      private int bitField0_;

      private java.util.List<com.google.devtools.build.docgen.builtin.BuiltinProtos.Type> type_ =
        java.util.Collections.emptyList();
      private void ensureTypeIsMutable() {
        if (!((bitField0_ & 0x00000001) == 0x00000001)) {
          type_ = new java.util.ArrayList<com.google.devtools.build.docgen.builtin.BuiltinProtos.Type>(type_);
          bitField0_ |= 0x00000001;
         }
      }

      private com.google.protobuf.RepeatedFieldBuilderV3<
          com.google.devtools.build.docgen.builtin.BuiltinProtos.Type, com.google.devtools.build.docgen.builtin.BuiltinProtos.Type.Builder, com.google.devtools.build.docgen.builtin.BuiltinProtos.TypeOrBuilder> typeBuilder_;

      /**
       * <code>repeated .builtin.Type type = 1;</code>
       */
      public java.util.List<com.google.devtools.build.docgen.builtin.BuiltinProtos.Type> getTypeList() {
        if (typeBuilder_ == null) {
          return java.util.Collections.unmodifiableList(type_);
        } else {
          return typeBuilder_.getMessageList();
        }
      }
      /**
       * <code>repeated .builtin.Type type = 1;</code>
       */
      public int getTypeCount() {
        if (typeBuilder_ == null) {
          return type_.size();
        } else {
          return typeBuilder_.getCount();
        }
      }
      /**
       * <code>repeated .builtin.Type type = 1;</code>
       */
      public com.google.devtools.build.docgen.builtin.BuiltinProtos.Type getType(int index) {
        if (typeBuilder_ == null) {
          return type_.get(index);
        } else {
          return typeBuilder_.getMessage(index);
        }
      }
      /**
       * <code>repeated .builtin.Type type = 1;</code>
       */
      public Builder setType(
          int index, com.google.devtools.build.docgen.builtin.BuiltinProtos.Type value) {
        if (typeBuilder_ == null) {
          if (value == null) {
            throw new NullPointerException();
          }
          ensureTypeIsMutable();
          type_.set(index, value);
          onChanged();
        } else {
          typeBuilder_.setMessage(index, value);
        }
        return this;
      }
      /**
       * <code>repeated .builtin.Type type = 1;</code>
       */
      public Builder setType(
          int index, com.google.devtools.build.docgen.builtin.BuiltinProtos.Type.Builder builderForValue) {
        if (typeBuilder_ == null) {
          ensureTypeIsMutable();
          type_.set(index, builderForValue.build());
          onChanged();
        } else {
          typeBuilder_.setMessage(index, builderForValue.build());
        }
        return this;
      }
      /**
       * <code>repeated .builtin.Type type = 1;</code>
       */
      public Builder addType(com.google.devtools.build.docgen.builtin.BuiltinProtos.Type value) {
        if (typeBuilder_ == null) {
          if (value == null) {
            throw new NullPointerException();
          }
          ensureTypeIsMutable();
          type_.add(value);
          onChanged();
        } else {
          typeBuilder_.addMessage(value);
        }
        return this;
      }
      /**
       * <code>repeated .builtin.Type type = 1;</code>
       */
      public Builder addType(
          int index, com.google.devtools.build.docgen.builtin.BuiltinProtos.Type value) {
        if (typeBuilder_ == null) {
          if (value == null) {
            throw new NullPointerException();
          }
          ensureTypeIsMutable();
          type_.add(index, value);
          onChanged();
        } else {
          typeBuilder_.addMessage(index, value);
        }
        return this;
      }
      /**
       * <code>repeated .builtin.Type type = 1;</code>
       */
      public Builder addType(
          com.google.devtools.build.docgen.builtin.BuiltinProtos.Type.Builder builderForValue) {
        if (typeBuilder_ == null) {
          ensureTypeIsMutable();
          type_.add(builderForValue.build());
          onChanged();
        } else {
          typeBuilder_.addMessage(builderForValue.build());
        }
        return this;
      }
      /**
       * <code>repeated .builtin.Type type = 1;</code>
       */
      public Builder addType(
          int index, com.google.devtools.build.docgen.builtin.BuiltinProtos.Type.Builder builderForValue) {
        if (typeBuilder_ == null) {
          ensureTypeIsMutable();
          type_.add(index, builderForValue.build());
          onChanged();
        } else {
          typeBuilder_.addMessage(index, builderForValue.build());
        }
        return this;
      }
      /**
       * <code>repeated .builtin.Type type = 1;</code>
       */
      public Builder addAllType(
          java.lang.Iterable<? extends com.google.devtools.build.docgen.builtin.BuiltinProtos.Type> values) {
        if (typeBuilder_ == null) {
          ensureTypeIsMutable();
          com.google.protobuf.AbstractMessageLite.Builder.addAll(
              values, type_);
          onChanged();
        } else {
          typeBuilder_.addAllMessages(values);
        }
        return this;
      }
      /**
       * <code>repeated .builtin.Type type = 1;</code>
       */
      public Builder clearType() {
        if (typeBuilder_ == null) {
          type_ = java.util.Collections.emptyList();
          bitField0_ = (bitField0_ & ~0x00000001);
          onChanged();
        } else {
          typeBuilder_.clear();
        }
        return this;
      }
      /**
       * <code>repeated .builtin.Type type = 1;</code>
       */
      public Builder removeType(int index) {
        if (typeBuilder_ == null) {
          ensureTypeIsMutable();
          type_.remove(index);
          onChanged();
        } else {
          typeBuilder_.remove(index);
        }
        return this;
      }
      /**
       * <code>repeated .builtin.Type type = 1;</code>
       */
      public com.google.devtools.build.docgen.builtin.BuiltinProtos.Type.Builder getTypeBuilder(
          int index) {
        return getTypeFieldBuilder().getBuilder(index);
      }
      /**
       * <code>repeated .builtin.Type type = 1;</code>
       */
      public com.google.devtools.build.docgen.builtin.BuiltinProtos.TypeOrBuilder getTypeOrBuilder(
          int index) {
        if (typeBuilder_ == null) {
          return type_.get(index);  } else {
          return typeBuilder_.getMessageOrBuilder(index);
        }
      }
      /**
       * <code>repeated .builtin.Type type = 1;</code>
       */
      public java.util.List<? extends com.google.devtools.build.docgen.builtin.BuiltinProtos.TypeOrBuilder> 
           getTypeOrBuilderList() {
        if (typeBuilder_ != null) {
          return typeBuilder_.getMessageOrBuilderList();
        } else {
          return java.util.Collections.unmodifiableList(type_);
        }
      }
      /**
       * <code>repeated .builtin.Type type = 1;</code>
       */
      public com.google.devtools.build.docgen.builtin.BuiltinProtos.Type.Builder addTypeBuilder() {
        return getTypeFieldBuilder().addBuilder(
            com.google.devtools.build.docgen.builtin.BuiltinProtos.Type.getDefaultInstance());
      }
      /**
       * <code>repeated .builtin.Type type = 1;</code>
       */
      public com.google.devtools.build.docgen.builtin.BuiltinProtos.Type.Builder addTypeBuilder(
          int index) {
        return getTypeFieldBuilder().addBuilder(
            index, com.google.devtools.build.docgen.builtin.BuiltinProtos.Type.getDefaultInstance());
      }
      /**
       * <code>repeated .builtin.Type type = 1;</code>
       */
      public java.util.List<com.google.devtools.build.docgen.builtin.BuiltinProtos.Type.Builder> 
           getTypeBuilderList() {
        return getTypeFieldBuilder().getBuilderList();
      }
      private com.google.protobuf.RepeatedFieldBuilderV3<
          com.google.devtools.build.docgen.builtin.BuiltinProtos.Type, com.google.devtools.build.docgen.builtin.BuiltinProtos.Type.Builder, com.google.devtools.build.docgen.builtin.BuiltinProtos.TypeOrBuilder> 
          getTypeFieldBuilder() {
        if (typeBuilder_ == null) {
          typeBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
              com.google.devtools.build.docgen.builtin.BuiltinProtos.Type, com.google.devtools.build.docgen.builtin.BuiltinProtos.Type.Builder, com.google.devtools.build.docgen.builtin.BuiltinProtos.TypeOrBuilder>(
                  type_,
                  ((bitField0_ & 0x00000001) == 0x00000001),
                  getParentForChildren(),
                  isClean());
          type_ = null;
        }
        return typeBuilder_;
      }

      private java.util.List<com.google.devtools.build.docgen.builtin.BuiltinProtos.Value> global_ =
        java.util.Collections.emptyList();
      private void ensureGlobalIsMutable() {
        if (!((bitField0_ & 0x00000002) == 0x00000002)) {
          global_ = new java.util.ArrayList<com.google.devtools.build.docgen.builtin.BuiltinProtos.Value>(global_);
          bitField0_ |= 0x00000002;
         }
      }

      private com.google.protobuf.RepeatedFieldBuilderV3<
          com.google.devtools.build.docgen.builtin.BuiltinProtos.Value, com.google.devtools.build.docgen.builtin.BuiltinProtos.Value.Builder, com.google.devtools.build.docgen.builtin.BuiltinProtos.ValueOrBuilder> globalBuilder_;

      /**
       * <code>repeated .builtin.Value global = 2;</code>
       */
      public java.util.List<com.google.devtools.build.docgen.builtin.BuiltinProtos.Value> getGlobalList() {
        if (globalBuilder_ == null) {
          return java.util.Collections.unmodifiableList(global_);
        } else {
          return globalBuilder_.getMessageList();
        }
      }
      /**
       * <code>repeated .builtin.Value global = 2;</code>
       */
      public int getGlobalCount() {
        if (globalBuilder_ == null) {
          return global_.size();
        } else {
          return globalBuilder_.getCount();
        }
      }
      /**
       * <code>repeated .builtin.Value global = 2;</code>
       */
      public com.google.devtools.build.docgen.builtin.BuiltinProtos.Value getGlobal(int index) {
        if (globalBuilder_ == null) {
          return global_.get(index);
        } else {
          return globalBuilder_.getMessage(index);
        }
      }
      /**
       * <code>repeated .builtin.Value global = 2;</code>
       */
      public Builder setGlobal(
          int index, com.google.devtools.build.docgen.builtin.BuiltinProtos.Value value) {
        if (globalBuilder_ == null) {
          if (value == null) {
            throw new NullPointerException();
          }
          ensureGlobalIsMutable();
          global_.set(index, value);
          onChanged();
        } else {
          globalBuilder_.setMessage(index, value);
        }
        return this;
      }
      /**
       * <code>repeated .builtin.Value global = 2;</code>
       */
      public Builder setGlobal(
          int index, com.google.devtools.build.docgen.builtin.BuiltinProtos.Value.Builder builderForValue) {
        if (globalBuilder_ == null) {
          ensureGlobalIsMutable();
          global_.set(index, builderForValue.build());
          onChanged();
        } else {
          globalBuilder_.setMessage(index, builderForValue.build());
        }
        return this;
      }
      /**
       * <code>repeated .builtin.Value global = 2;</code>
       */
      public Builder addGlobal(com.google.devtools.build.docgen.builtin.BuiltinProtos.Value value) {
        if (globalBuilder_ == null) {
          if (value == null) {
            throw new NullPointerException();
          }
          ensureGlobalIsMutable();
          global_.add(value);
          onChanged();
        } else {
          globalBuilder_.addMessage(value);
        }
        return this;
      }
      /**
       * <code>repeated .builtin.Value global = 2;</code>
       */
      public Builder addGlobal(
          int index, com.google.devtools.build.docgen.builtin.BuiltinProtos.Value value) {
        if (globalBuilder_ == null) {
          if (value == null) {
            throw new NullPointerException();
          }
          ensureGlobalIsMutable();
          global_.add(index, value);
          onChanged();
        } else {
          globalBuilder_.addMessage(index, value);
        }
        return this;
      }
      /**
       * <code>repeated .builtin.Value global = 2;</code>
       */
      public Builder addGlobal(
          com.google.devtools.build.docgen.builtin.BuiltinProtos.Value.Builder builderForValue) {
        if (globalBuilder_ == null) {
          ensureGlobalIsMutable();
          global_.add(builderForValue.build());
          onChanged();
        } else {
          globalBuilder_.addMessage(builderForValue.build());
        }
        return this;
      }
      /**
       * <code>repeated .builtin.Value global = 2;</code>
       */
      public Builder addGlobal(
          int index, com.google.devtools.build.docgen.builtin.BuiltinProtos.Value.Builder builderForValue) {
        if (globalBuilder_ == null) {
          ensureGlobalIsMutable();
          global_.add(index, builderForValue.build());
          onChanged();
        } else {
          globalBuilder_.addMessage(index, builderForValue.build());
        }
        return this;
      }
      /**
       * <code>repeated .builtin.Value global = 2;</code>
       */
      public Builder addAllGlobal(
          java.lang.Iterable<? extends com.google.devtools.build.docgen.builtin.BuiltinProtos.Value> values) {
        if (globalBuilder_ == null) {
          ensureGlobalIsMutable();
          com.google.protobuf.AbstractMessageLite.Builder.addAll(
              values, global_);
          onChanged();
        } else {
          globalBuilder_.addAllMessages(values);
        }
        return this;
      }
      /**
       * <code>repeated .builtin.Value global = 2;</code>
       */
      public Builder clearGlobal() {
        if (globalBuilder_ == null) {
          global_ = java.util.Collections.emptyList();
          bitField0_ = (bitField0_ & ~0x00000002);
          onChanged();
        } else {
          globalBuilder_.clear();
        }
        return this;
      }
      /**
       * <code>repeated .builtin.Value global = 2;</code>
       */
      public Builder removeGlobal(int index) {
        if (globalBuilder_ == null) {
          ensureGlobalIsMutable();
          global_.remove(index);
          onChanged();
        } else {
          globalBuilder_.remove(index);
        }
        return this;
      }
      /**
       * <code>repeated .builtin.Value global = 2;</code>
       */
      public com.google.devtools.build.docgen.builtin.BuiltinProtos.Value.Builder getGlobalBuilder(
          int index) {
        return getGlobalFieldBuilder().getBuilder(index);
      }
      /**
       * <code>repeated .builtin.Value global = 2;</code>
       */
      public com.google.devtools.build.docgen.builtin.BuiltinProtos.ValueOrBuilder getGlobalOrBuilder(
          int index) {
        if (globalBuilder_ == null) {
          return global_.get(index);  } else {
          return globalBuilder_.getMessageOrBuilder(index);
        }
      }
      /**
       * <code>repeated .builtin.Value global = 2;</code>
       */
      public java.util.List<? extends com.google.devtools.build.docgen.builtin.BuiltinProtos.ValueOrBuilder> 
           getGlobalOrBuilderList() {
        if (globalBuilder_ != null) {
          return globalBuilder_.getMessageOrBuilderList();
        } else {
          return java.util.Collections.unmodifiableList(global_);
        }
      }
      /**
       * <code>repeated .builtin.Value global = 2;</code>
       */
      public com.google.devtools.build.docgen.builtin.BuiltinProtos.Value.Builder addGlobalBuilder() {
        return getGlobalFieldBuilder().addBuilder(
            com.google.devtools.build.docgen.builtin.BuiltinProtos.Value.getDefaultInstance());
      }
      /**
       * <code>repeated .builtin.Value global = 2;</code>
       */
      public com.google.devtools.build.docgen.builtin.BuiltinProtos.Value.Builder addGlobalBuilder(
          int index) {
        return getGlobalFieldBuilder().addBuilder(
            index, com.google.devtools.build.docgen.builtin.BuiltinProtos.Value.getDefaultInstance());
      }
      /**
       * <code>repeated .builtin.Value global = 2;</code>
       */
      public java.util.List<com.google.devtools.build.docgen.builtin.BuiltinProtos.Value.Builder> 
           getGlobalBuilderList() {
        return getGlobalFieldBuilder().getBuilderList();
      }
      private com.google.protobuf.RepeatedFieldBuilderV3<
          com.google.devtools.build.docgen.builtin.BuiltinProtos.Value, com.google.devtools.build.docgen.builtin.BuiltinProtos.Value.Builder, com.google.devtools.build.docgen.builtin.BuiltinProtos.ValueOrBuilder> 
          getGlobalFieldBuilder() {
        if (globalBuilder_ == null) {
          globalBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
              com.google.devtools.build.docgen.builtin.BuiltinProtos.Value, com.google.devtools.build.docgen.builtin.BuiltinProtos.Value.Builder, com.google.devtools.build.docgen.builtin.BuiltinProtos.ValueOrBuilder>(
                  global_,
                  ((bitField0_ & 0x00000002) == 0x00000002),
                  getParentForChildren(),
                  isClean());
          global_ = null;
        }
        return globalBuilder_;
      }
      @java.lang.Override
      public final Builder setUnknownFields(
          final com.google.protobuf.UnknownFieldSet unknownFields) {
        return super.setUnknownFieldsProto3(unknownFields);
      }

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


      // @@protoc_insertion_point(builder_scope:builtin.Builtins)
    }

    // @@protoc_insertion_point(class_scope:builtin.Builtins)
    private static final com.google.devtools.build.docgen.builtin.BuiltinProtos.Builtins DEFAULT_INSTANCE;
    static {
      DEFAULT_INSTANCE = new com.google.devtools.build.docgen.builtin.BuiltinProtos.Builtins();
    }

    public static com.google.devtools.build.docgen.builtin.BuiltinProtos.Builtins getDefaultInstance() {
      return DEFAULT_INSTANCE;
    }

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

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

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

    @java.lang.Override
    public com.google.devtools.build.docgen.builtin.BuiltinProtos.Builtins getDefaultInstanceForType() {
      return DEFAULT_INSTANCE;
    }

  }

  public interface TypeOrBuilder extends
      // @@protoc_insertion_point(interface_extends:builtin.Type)
      com.google.protobuf.MessageOrBuilder {

    /**
     * <code>string name = 1;</code>
     */
    java.lang.String getName();
    /**
     * <code>string name = 1;</code>
     */
    com.google.protobuf.ByteString
        getNameBytes();

    /**
     * <pre>
     * List of fields and methods of this type. All such entities are listed as
     * fields, and methods are fields which are callable.
     * </pre>
     *
     * <code>repeated .builtin.Value field = 2;</code>
     */
    java.util.List<com.google.devtools.build.docgen.builtin.BuiltinProtos.Value> 
        getFieldList();
    /**
     * <pre>
     * List of fields and methods of this type. All such entities are listed as
     * fields, and methods are fields which are callable.
     * </pre>
     *
     * <code>repeated .builtin.Value field = 2;</code>
     */
    com.google.devtools.build.docgen.builtin.BuiltinProtos.Value getField(int index);
    /**
     * <pre>
     * List of fields and methods of this type. All such entities are listed as
     * fields, and methods are fields which are callable.
     * </pre>
     *
     * <code>repeated .builtin.Value field = 2;</code>
     */
    int getFieldCount();
    /**
     * <pre>
     * List of fields and methods of this type. All such entities are listed as
     * fields, and methods are fields which are callable.
     * </pre>
     *
     * <code>repeated .builtin.Value field = 2;</code>
     */
    java.util.List<? extends com.google.devtools.build.docgen.builtin.BuiltinProtos.ValueOrBuilder> 
        getFieldOrBuilderList();
    /**
     * <pre>
     * List of fields and methods of this type. All such entities are listed as
     * fields, and methods are fields which are callable.
     * </pre>
     *
     * <code>repeated .builtin.Value field = 2;</code>
     */
    com.google.devtools.build.docgen.builtin.BuiltinProtos.ValueOrBuilder getFieldOrBuilder(
        int index);

    /**
     * <pre>
     * Module documentation.
     * </pre>
     *
     * <code>string doc = 3;</code>
     */
    java.lang.String getDoc();
    /**
     * <pre>
     * Module documentation.
     * </pre>
     *
     * <code>string doc = 3;</code>
     */
    com.google.protobuf.ByteString
        getDocBytes();
  }
  /**
   * <pre>
   * Representation for Skylark builtin packages. It contains all the symbols
   * (variables and functions) exposed by the package.
   * E.g. "list" is a Type that exposes a list of fields containing: "insert",
   * "index", "remove" etc.
   * </pre>
   *
   * Protobuf type {@code builtin.Type}
   */
  public  static final class Type extends
      com.google.protobuf.GeneratedMessageV3 implements
      // @@protoc_insertion_point(message_implements:builtin.Type)
      TypeOrBuilder {
  private static final long serialVersionUID = 0L;
    // Use Type.newBuilder() to construct.
    private Type(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {
      super(builder);
    }
    private Type() {
      name_ = "";
      field_ = java.util.Collections.emptyList();
      doc_ = "";
    }

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

              name_ = s;
              break;
            }
            case 18: {
              if (!((mutable_bitField0_ & 0x00000002) == 0x00000002)) {
                field_ = new java.util.ArrayList<com.google.devtools.build.docgen.builtin.BuiltinProtos.Value>();
                mutable_bitField0_ |= 0x00000002;
              }
              field_.add(
                  input.readMessage(com.google.devtools.build.docgen.builtin.BuiltinProtos.Value.parser(), extensionRegistry));
              break;
            }
            case 26: {
              java.lang.String s = input.readStringRequireUtf8();

              doc_ = s;
              break;
            }
            default: {
              if (!parseUnknownFieldProto3(
                  input, unknownFields, extensionRegistry, tag)) {
                done = true;
              }
              break;
            }
          }
        }
      } catch (com.google.protobuf.InvalidProtocolBufferException e) {
        throw e.setUnfinishedMessage(this);
      } catch (java.io.IOException e) {
        throw new com.google.protobuf.InvalidProtocolBufferException(
            e).setUnfinishedMessage(this);
      } finally {
        if (((mutable_bitField0_ & 0x00000002) == 0x00000002)) {
          field_ = java.util.Collections.unmodifiableList(field_);
        }
        this.unknownFields = unknownFields.build();
        makeExtensionsImmutable();
      }
    }
    public static final com.google.protobuf.Descriptors.Descriptor
        getDescriptor() {
      return com.google.devtools.build.docgen.builtin.BuiltinProtos.internal_static_builtin_Type_descriptor;
    }

    @java.lang.Override
    protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
        internalGetFieldAccessorTable() {
      return com.google.devtools.build.docgen.builtin.BuiltinProtos.internal_static_builtin_Type_fieldAccessorTable
          .ensureFieldAccessorsInitialized(
              com.google.devtools.build.docgen.builtin.BuiltinProtos.Type.class, com.google.devtools.build.docgen.builtin.BuiltinProtos.Type.Builder.class);
    }

    private int bitField0_;
    public static final int NAME_FIELD_NUMBER = 1;
    private volatile java.lang.Object name_;
    /**
     * <code>string name = 1;</code>
     */
    public java.lang.String getName() {
      java.lang.Object ref = name_;
      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();
        name_ = s;
        return s;
      }
    }
    /**
     * <code>string name = 1;</code>
     */
    public com.google.protobuf.ByteString
        getNameBytes() {
      java.lang.Object ref = name_;
      if (ref instanceof java.lang.String) {
        com.google.protobuf.ByteString b = 
            com.google.protobuf.ByteString.copyFromUtf8(
                (java.lang.String) ref);
        name_ = b;
        return b;
      } else {
        return (com.google.protobuf.ByteString) ref;
      }
    }

    public static final int FIELD_FIELD_NUMBER = 2;
    private java.util.List<com.google.devtools.build.docgen.builtin.BuiltinProtos.Value> field_;
    /**
     * <pre>
     * List of fields and methods of this type. All such entities are listed as
     * fields, and methods are fields which are callable.
     * </pre>
     *
     * <code>repeated .builtin.Value field = 2;</code>
     */
    public java.util.List<com.google.devtools.build.docgen.builtin.BuiltinProtos.Value> getFieldList() {
      return field_;
    }
    /**
     * <pre>
     * List of fields and methods of this type. All such entities are listed as
     * fields, and methods are fields which are callable.
     * </pre>
     *
     * <code>repeated .builtin.Value field = 2;</code>
     */
    public java.util.List<? extends com.google.devtools.build.docgen.builtin.BuiltinProtos.ValueOrBuilder> 
        getFieldOrBuilderList() {
      return field_;
    }
    /**
     * <pre>
     * List of fields and methods of this type. All such entities are listed as
     * fields, and methods are fields which are callable.
     * </pre>
     *
     * <code>repeated .builtin.Value field = 2;</code>
     */
    public int getFieldCount() {
      return field_.size();
    }
    /**
     * <pre>
     * List of fields and methods of this type. All such entities are listed as
     * fields, and methods are fields which are callable.
     * </pre>
     *
     * <code>repeated .builtin.Value field = 2;</code>
     */
    public com.google.devtools.build.docgen.builtin.BuiltinProtos.Value getField(int index) {
      return field_.get(index);
    }
    /**
     * <pre>
     * List of fields and methods of this type. All such entities are listed as
     * fields, and methods are fields which are callable.
     * </pre>
     *
     * <code>repeated .builtin.Value field = 2;</code>
     */
    public com.google.devtools.build.docgen.builtin.BuiltinProtos.ValueOrBuilder getFieldOrBuilder(
        int index) {
      return field_.get(index);
    }

    public static final int DOC_FIELD_NUMBER = 3;
    private volatile java.lang.Object doc_;
    /**
     * <pre>
     * Module documentation.
     * </pre>
     *
     * <code>string doc = 3;</code>
     */
    public java.lang.String getDoc() {
      java.lang.Object ref = doc_;
      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();
        doc_ = s;
        return s;
      }
    }
    /**
     * <pre>
     * Module documentation.
     * </pre>
     *
     * <code>string doc = 3;</code>
     */
    public com.google.protobuf.ByteString
        getDocBytes() {
      java.lang.Object ref = doc_;
      if (ref instanceof java.lang.String) {
        com.google.protobuf.ByteString b = 
            com.google.protobuf.ByteString.copyFromUtf8(
                (java.lang.String) ref);
        doc_ = b;
        return b;
      } else {
        return (com.google.protobuf.ByteString) ref;
      }
    }

    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 (!getNameBytes().isEmpty()) {
        com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_);
      }
      for (int i = 0; i < field_.size(); i++) {
        output.writeMessage(2, field_.get(i));
      }
      if (!getDocBytes().isEmpty()) {
        com.google.protobuf.GeneratedMessageV3.writeString(output, 3, doc_);
      }
      unknownFields.writeTo(output);
    }

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

      size = 0;
      if (!getNameBytes().isEmpty()) {
        size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_);
      }
      for (int i = 0; i < field_.size(); i++) {
        size += com.google.protobuf.CodedOutputStream
          .computeMessageSize(2, field_.get(i));
      }
      if (!getDocBytes().isEmpty()) {
        size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, doc_);
      }
      size += unknownFields.getSerializedSize();
      memoizedSize = size;
      return size;
    }

    @java.lang.Override
    public boolean equals(final java.lang.Object obj) {
      if (obj == this) {
       return true;
      }
      if (!(obj instanceof com.google.devtools.build.docgen.builtin.BuiltinProtos.Type)) {
        return super.equals(obj);
      }
      com.google.devtools.build.docgen.builtin.BuiltinProtos.Type other = (com.google.devtools.build.docgen.builtin.BuiltinProtos.Type) obj;

      boolean result = true;
      result = result && getName()
          .equals(other.getName());
      result = result && getFieldList()
          .equals(other.getFieldList());
      result = result && getDoc()
          .equals(other.getDoc());
      result = result && unknownFields.equals(other.unknownFields);
      return result;
    }

    @java.lang.Override
    public int hashCode() {
      if (memoizedHashCode != 0) {
        return memoizedHashCode;
      }
      int hash = 41;
      hash = (19 * hash) + getDescriptor().hashCode();
      hash = (37 * hash) + NAME_FIELD_NUMBER;
      hash = (53 * hash) + getName().hashCode();
      if (getFieldCount() > 0) {
        hash = (37 * hash) + FIELD_FIELD_NUMBER;
        hash = (53 * hash) + getFieldList().hashCode();
      }
      hash = (37 * hash) + DOC_FIELD_NUMBER;
      hash = (53 * hash) + getDoc().hashCode();
      hash = (29 * hash) + unknownFields.hashCode();
      memoizedHashCode = hash;
      return hash;
    }

    public static com.google.devtools.build.docgen.builtin.BuiltinProtos.Type parseFrom(
        java.nio.ByteBuffer data)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data);
    }
    public static com.google.devtools.build.docgen.builtin.BuiltinProtos.Type parseFrom(
        java.nio.ByteBuffer data,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data, extensionRegistry);
    }
    public static com.google.devtools.build.docgen.builtin.BuiltinProtos.Type parseFrom(
        com.google.protobuf.ByteString data)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data);
    }
    public static com.google.devtools.build.docgen.builtin.BuiltinProtos.Type 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.devtools.build.docgen.builtin.BuiltinProtos.Type parseFrom(byte[] data)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data);
    }
    public static com.google.devtools.build.docgen.builtin.BuiltinProtos.Type parseFrom(
        byte[] data,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data, extensionRegistry);
    }
    public static com.google.devtools.build.docgen.builtin.BuiltinProtos.Type parseFrom(java.io.InputStream input)
        throws java.io.IOException {
      return com.google.protobuf.GeneratedMessageV3
          .parseWithIOException(PARSER, input);
    }
    public static com.google.devtools.build.docgen.builtin.BuiltinProtos.Type 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.devtools.build.docgen.builtin.BuiltinProtos.Type parseDelimitedFrom(java.io.InputStream input)
        throws java.io.IOException {
      return com.google.protobuf.GeneratedMessageV3
          .parseDelimitedWithIOException(PARSER, input);
    }
    public static com.google.devtools.build.docgen.builtin.BuiltinProtos.Type 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.devtools.build.docgen.builtin.BuiltinProtos.Type parseFrom(
        com.google.protobuf.CodedInputStream input)
        throws java.io.IOException {
      return com.google.protobuf.GeneratedMessageV3
          .parseWithIOException(PARSER, input);
    }
    public static com.google.devtools.build.docgen.builtin.BuiltinProtos.Type 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.devtools.build.docgen.builtin.BuiltinProtos.Type 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>
     * Representation for Skylark builtin packages. It contains all the symbols
     * (variables and functions) exposed by the package.
     * E.g. "list" is a Type that exposes a list of fields containing: "insert",
     * "index", "remove" etc.
     * </pre>
     *
     * Protobuf type {@code builtin.Type}
     */
    public static final class Builder extends
        com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements
        // @@protoc_insertion_point(builder_implements:builtin.Type)
        com.google.devtools.build.docgen.builtin.BuiltinProtos.TypeOrBuilder {
      public static final com.google.protobuf.Descriptors.Descriptor
          getDescriptor() {
        return com.google.devtools.build.docgen.builtin.BuiltinProtos.internal_static_builtin_Type_descriptor;
      }

      @java.lang.Override
      protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
          internalGetFieldAccessorTable() {
        return com.google.devtools.build.docgen.builtin.BuiltinProtos.internal_static_builtin_Type_fieldAccessorTable
            .ensureFieldAccessorsInitialized(
                com.google.devtools.build.docgen.builtin.BuiltinProtos.Type.class, com.google.devtools.build.docgen.builtin.BuiltinProtos.Type.Builder.class);
      }

      // Construct using com.google.devtools.build.docgen.builtin.BuiltinProtos.Type.newBuilder()
      private Builder() {
        maybeForceBuilderInitialization();
      }

      private Builder(
          com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
        super(parent);
        maybeForceBuilderInitialization();
      }
      private void maybeForceBuilderInitialization() {
        if (com.google.protobuf.GeneratedMessageV3
                .alwaysUseFieldBuilders) {
          getFieldFieldBuilder();
        }
      }
      @java.lang.Override
      public Builder clear() {
        super.clear();
        name_ = "";

        if (fieldBuilder_ == null) {
          field_ = java.util.Collections.emptyList();
          bitField0_ = (bitField0_ & ~0x00000002);
        } else {
          fieldBuilder_.clear();
        }
        doc_ = "";

        return this;
      }

      @java.lang.Override
      public com.google.protobuf.Descriptors.Descriptor
          getDescriptorForType() {
        return com.google.devtools.build.docgen.builtin.BuiltinProtos.internal_static_builtin_Type_descriptor;
      }

      @java.lang.Override
      public com.google.devtools.build.docgen.builtin.BuiltinProtos.Type getDefaultInstanceForType() {
        return com.google.devtools.build.docgen.builtin.BuiltinProtos.Type.getDefaultInstance();
      }

      @java.lang.Override
      public com.google.devtools.build.docgen.builtin.BuiltinProtos.Type build() {
        com.google.devtools.build.docgen.builtin.BuiltinProtos.Type result = buildPartial();
        if (!result.isInitialized()) {
          throw newUninitializedMessageException(result);
        }
        return result;
      }

      @java.lang.Override
      public com.google.devtools.build.docgen.builtin.BuiltinProtos.Type buildPartial() {
        com.google.devtools.build.docgen.builtin.BuiltinProtos.Type result = new com.google.devtools.build.docgen.builtin.BuiltinProtos.Type(this);
        int from_bitField0_ = bitField0_;
        int to_bitField0_ = 0;
        result.name_ = name_;
        if (fieldBuilder_ == null) {
          if (((bitField0_ & 0x00000002) == 0x00000002)) {
            field_ = java.util.Collections.unmodifiableList(field_);
            bitField0_ = (bitField0_ & ~0x00000002);
          }
          result.field_ = field_;
        } else {
          result.field_ = fieldBuilder_.build();
        }
        result.doc_ = doc_;
        result.bitField0_ = to_bitField0_;
        onBuilt();
        return result;
      }

      @java.lang.Override
      public Builder clone() {
        return (Builder) super.clone();
      }
      @java.lang.Override
      public Builder setField(
          com.google.protobuf.Descriptors.FieldDescriptor field,
          java.lang.Object value) {
        return (Builder) super.setField(field, value);
      }
      @java.lang.Override
      public Builder clearField(
          com.google.protobuf.Descriptors.FieldDescriptor field) {
        return (Builder) super.clearField(field);
      }
      @java.lang.Override
      public Builder clearOneof(
          com.google.protobuf.Descriptors.OneofDescriptor oneof) {
        return (Builder) super.clearOneof(oneof);
      }
      @java.lang.Override
      public Builder setRepeatedField(
          com.google.protobuf.Descriptors.FieldDescriptor field,
          int index, java.lang.Object value) {
        return (Builder) super.setRepeatedField(field, index, value);
      }
      @java.lang.Override
      public Builder addRepeatedField(
          com.google.protobuf.Descriptors.FieldDescriptor field,
          java.lang.Object value) {
        return (Builder) super.addRepeatedField(field, value);
      }
      @java.lang.Override
      public Builder mergeFrom(com.google.protobuf.Message other) {
        if (other instanceof com.google.devtools.build.docgen.builtin.BuiltinProtos.Type) {
          return mergeFrom((com.google.devtools.build.docgen.builtin.BuiltinProtos.Type)other);
        } else {
          super.mergeFrom(other);
          return this;
        }
      }

      public Builder mergeFrom(com.google.devtools.build.docgen.builtin.BuiltinProtos.Type other) {
        if (other == com.google.devtools.build.docgen.builtin.BuiltinProtos.Type.getDefaultInstance()) return this;
        if (!other.getName().isEmpty()) {
          name_ = other.name_;
          onChanged();
        }
        if (fieldBuilder_ == null) {
          if (!other.field_.isEmpty()) {
            if (field_.isEmpty()) {
              field_ = other.field_;
              bitField0_ = (bitField0_ & ~0x00000002);
            } else {
              ensureFieldIsMutable();
              field_.addAll(other.field_);
            }
            onChanged();
          }
        } else {
          if (!other.field_.isEmpty()) {
            if (fieldBuilder_.isEmpty()) {
              fieldBuilder_.dispose();
              fieldBuilder_ = null;
              field_ = other.field_;
              bitField0_ = (bitField0_ & ~0x00000002);
              fieldBuilder_ = 
                com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
                   getFieldFieldBuilder() : null;
            } else {
              fieldBuilder_.addAllMessages(other.field_);
            }
          }
        }
        if (!other.getDoc().isEmpty()) {
          doc_ = other.doc_;
          onChanged();
        }
        this.mergeUnknownFields(other.unknownFields);
        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 {
        com.google.devtools.build.docgen.builtin.BuiltinProtos.Type parsedMessage = null;
        try {
          parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
        } catch (com.google.protobuf.InvalidProtocolBufferException e) {
          parsedMessage = (com.google.devtools.build.docgen.builtin.BuiltinProtos.Type) e.getUnfinishedMessage();
          throw e.unwrapIOException();
        } finally {
          if (parsedMessage != null) {
            mergeFrom(parsedMessage);
          }
        }
        return this;
      }
      private int bitField0_;

      private java.lang.Object name_ = "";
      /**
       * <code>string name = 1;</code>
       */
      public java.lang.String getName() {
        java.lang.Object ref = name_;
        if (!(ref instanceof java.lang.String)) {
          com.google.protobuf.ByteString bs =
              (com.google.protobuf.ByteString) ref;
          java.lang.String s = bs.toStringUtf8();
          name_ = s;
          return s;
        } else {
          return (java.lang.String) ref;
        }
      }
      /**
       * <code>string name = 1;</code>
       */
      public com.google.protobuf.ByteString
          getNameBytes() {
        java.lang.Object ref = name_;
        if (ref instanceof String) {
          com.google.protobuf.ByteString b = 
              com.google.protobuf.ByteString.copyFromUtf8(
                  (java.lang.String) ref);
          name_ = b;
          return b;
        } else {
          return (com.google.protobuf.ByteString) ref;
        }
      }
      /**
       * <code>string name = 1;</code>
       */
      public Builder setName(
          java.lang.String value) {
        if (value == null) {
    throw new NullPointerException();
  }
  
        name_ = value;
        onChanged();
        return this;
      }
      /**
       * <code>string name = 1;</code>
       */
      public Builder clearName() {
        
        name_ = getDefaultInstance().getName();
        onChanged();
        return this;
      }
      /**
       * <code>string name = 1;</code>
       */
      public Builder setNameBytes(
          com.google.protobuf.ByteString value) {
        if (value == null) {
    throw new NullPointerException();
  }
  checkByteStringIsUtf8(value);
        
        name_ = value;
        onChanged();
        return this;
      }

      private java.util.List<com.google.devtools.build.docgen.builtin.BuiltinProtos.Value> field_ =
        java.util.Collections.emptyList();
      private void ensureFieldIsMutable() {
        if (!((bitField0_ & 0x00000002) == 0x00000002)) {
          field_ = new java.util.ArrayList<com.google.devtools.build.docgen.builtin.BuiltinProtos.Value>(field_);
          bitField0_ |= 0x00000002;
         }
      }

      private com.google.protobuf.RepeatedFieldBuilderV3<
          com.google.devtools.build.docgen.builtin.BuiltinProtos.Value, com.google.devtools.build.docgen.builtin.BuiltinProtos.Value.Builder, com.google.devtools.build.docgen.builtin.BuiltinProtos.ValueOrBuilder> fieldBuilder_;

      /**
       * <pre>
       * List of fields and methods of this type. All such entities are listed as
       * fields, and methods are fields which are callable.
       * </pre>
       *
       * <code>repeated .builtin.Value field = 2;</code>
       */
      public java.util.List<com.google.devtools.build.docgen.builtin.BuiltinProtos.Value> getFieldList() {
        if (fieldBuilder_ == null) {
          return java.util.Collections.unmodifiableList(field_);
        } else {
          return fieldBuilder_.getMessageList();
        }
      }
      /**
       * <pre>
       * List of fields and methods of this type. All such entities are listed as
       * fields, and methods are fields which are callable.
       * </pre>
       *
       * <code>repeated .builtin.Value field = 2;</code>
       */
      public int getFieldCount() {
        if (fieldBuilder_ == null) {
          return field_.size();
        } else {
          return fieldBuilder_.getCount();
        }
      }
      /**
       * <pre>
       * List of fields and methods of this type. All such entities are listed as
       * fields, and methods are fields which are callable.
       * </pre>
       *
       * <code>repeated .builtin.Value field = 2;</code>
       */
      public com.google.devtools.build.docgen.builtin.BuiltinProtos.Value getField(int index) {
        if (fieldBuilder_ == null) {
          return field_.get(index);
        } else {
          return fieldBuilder_.getMessage(index);
        }
      }
      /**
       * <pre>
       * List of fields and methods of this type. All such entities are listed as
       * fields, and methods are fields which are callable.
       * </pre>
       *
       * <code>repeated .builtin.Value field = 2;</code>
       */
      public Builder setField(
          int index, com.google.devtools.build.docgen.builtin.BuiltinProtos.Value value) {
        if (fieldBuilder_ == null) {
          if (value == null) {
            throw new NullPointerException();
          }
          ensureFieldIsMutable();
          field_.set(index, value);
          onChanged();
        } else {
          fieldBuilder_.setMessage(index, value);
        }
        return this;
      }
      /**
       * <pre>
       * List of fields and methods of this type. All such entities are listed as
       * fields, and methods are fields which are callable.
       * </pre>
       *
       * <code>repeated .builtin.Value field = 2;</code>
       */
      public Builder setField(
          int index, com.google.devtools.build.docgen.builtin.BuiltinProtos.Value.Builder builderForValue) {
        if (fieldBuilder_ == null) {
          ensureFieldIsMutable();
          field_.set(index, builderForValue.build());
          onChanged();
        } else {
          fieldBuilder_.setMessage(index, builderForValue.build());
        }
        return this;
      }
      /**
       * <pre>
       * List of fields and methods of this type. All such entities are listed as
       * fields, and methods are fields which are callable.
       * </pre>
       *
       * <code>repeated .builtin.Value field = 2;</code>
       */
      public Builder addField(com.google.devtools.build.docgen.builtin.BuiltinProtos.Value value) {
        if (fieldBuilder_ == null) {
          if (value == null) {
            throw new NullPointerException();
          }
          ensureFieldIsMutable();
          field_.add(value);
          onChanged();
        } else {
          fieldBuilder_.addMessage(value);
        }
        return this;
      }
      /**
       * <pre>
       * List of fields and methods of this type. All such entities are listed as
       * fields, and methods are fields which are callable.
       * </pre>
       *
       * <code>repeated .builtin.Value field = 2;</code>
       */
      public Builder addField(
          int index, com.google.devtools.build.docgen.builtin.BuiltinProtos.Value value) {
        if (fieldBuilder_ == null) {
          if (value == null) {
            throw new NullPointerException();
          }
          ensureFieldIsMutable();
          field_.add(index, value);
          onChanged();
        } else {
          fieldBuilder_.addMessage(index, value);
        }
        return this;
      }
      /**
       * <pre>
       * List of fields and methods of this type. All such entities are listed as
       * fields, and methods are fields which are callable.
       * </pre>
       *
       * <code>repeated .builtin.Value field = 2;</code>
       */
      public Builder addField(
          com.google.devtools.build.docgen.builtin.BuiltinProtos.Value.Builder builderForValue) {
        if (fieldBuilder_ == null) {
          ensureFieldIsMutable();
          field_.add(builderForValue.build());
          onChanged();
        } else {
          fieldBuilder_.addMessage(builderForValue.build());
        }
        return this;
      }
      /**
       * <pre>
       * List of fields and methods of this type. All such entities are listed as
       * fields, and methods are fields which are callable.
       * </pre>
       *
       * <code>repeated .builtin.Value field = 2;</code>
       */
      public Builder addField(
          int index, com.google.devtools.build.docgen.builtin.BuiltinProtos.Value.Builder builderForValue) {
        if (fieldBuilder_ == null) {
          ensureFieldIsMutable();
          field_.add(index, builderForValue.build());
          onChanged();
        } else {
          fieldBuilder_.addMessage(index, builderForValue.build());
        }
        return this;
      }
      /**
       * <pre>
       * List of fields and methods of this type. All such entities are listed as
       * fields, and methods are fields which are callable.
       * </pre>
       *
       * <code>repeated .builtin.Value field = 2;</code>
       */
      public Builder addAllField(
          java.lang.Iterable<? extends com.google.devtools.build.docgen.builtin.BuiltinProtos.Value> values) {
        if (fieldBuilder_ == null) {
          ensureFieldIsMutable();
          com.google.protobuf.AbstractMessageLite.Builder.addAll(
              values, field_);
          onChanged();
        } else {
          fieldBuilder_.addAllMessages(values);
        }
        return this;
      }
      /**
       * <pre>
       * List of fields and methods of this type. All such entities are listed as
       * fields, and methods are fields which are callable.
       * </pre>
       *
       * <code>repeated .builtin.Value field = 2;</code>
       */
      public Builder clearField() {
        if (fieldBuilder_ == null) {
          field_ = java.util.Collections.emptyList();
          bitField0_ = (bitField0_ & ~0x00000002);
          onChanged();
        } else {
          fieldBuilder_.clear();
        }
        return this;
      }
      /**
       * <pre>
       * List of fields and methods of this type. All such entities are listed as
       * fields, and methods are fields which are callable.
       * </pre>
       *
       * <code>repeated .builtin.Value field = 2;</code>
       */
      public Builder removeField(int index) {
        if (fieldBuilder_ == null) {
          ensureFieldIsMutable();
          field_.remove(index);
          onChanged();
        } else {
          fieldBuilder_.remove(index);
        }
        return this;
      }
      /**
       * <pre>
       * List of fields and methods of this type. All such entities are listed as
       * fields, and methods are fields which are callable.
       * </pre>
       *
       * <code>repeated .builtin.Value field = 2;</code>
       */
      public com.google.devtools.build.docgen.builtin.BuiltinProtos.Value.Builder getFieldBuilder(
          int index) {
        return getFieldFieldBuilder().getBuilder(index);
      }
      /**
       * <pre>
       * List of fields and methods of this type. All such entities are listed as
       * fields, and methods are fields which are callable.
       * </pre>
       *
       * <code>repeated .builtin.Value field = 2;</code>
       */
      public com.google.devtools.build.docgen.builtin.BuiltinProtos.ValueOrBuilder getFieldOrBuilder(
          int index) {
        if (fieldBuilder_ == null) {
          return field_.get(index);  } else {
          return fieldBuilder_.getMessageOrBuilder(index);
        }
      }
      /**
       * <pre>
       * List of fields and methods of this type. All such entities are listed as
       * fields, and methods are fields which are callable.
       * </pre>
       *
       * <code>repeated .builtin.Value field = 2;</code>
       */
      public java.util.List<? extends com.google.devtools.build.docgen.builtin.BuiltinProtos.ValueOrBuilder> 
           getFieldOrBuilderList() {
        if (fieldBuilder_ != null) {
          return fieldBuilder_.getMessageOrBuilderList();
        } else {
          return java.util.Collections.unmodifiableList(field_);
        }
      }
      /**
       * <pre>
       * List of fields and methods of this type. All such entities are listed as
       * fields, and methods are fields which are callable.
       * </pre>
       *
       * <code>repeated .builtin.Value field = 2;</code>
       */
      public com.google.devtools.build.docgen.builtin.BuiltinProtos.Value.Builder addFieldBuilder() {
        return getFieldFieldBuilder().addBuilder(
            com.google.devtools.build.docgen.builtin.BuiltinProtos.Value.getDefaultInstance());
      }
      /**
       * <pre>
       * List of fields and methods of this type. All such entities are listed as
       * fields, and methods are fields which are callable.
       * </pre>
       *
       * <code>repeated .builtin.Value field = 2;</code>
       */
      public com.google.devtools.build.docgen.builtin.BuiltinProtos.Value.Builder addFieldBuilder(
          int index) {
        return getFieldFieldBuilder().addBuilder(
            index, com.google.devtools.build.docgen.builtin.BuiltinProtos.Value.getDefaultInstance());
      }
      /**
       * <pre>
       * List of fields and methods of this type. All such entities are listed as
       * fields, and methods are fields which are callable.
       * </pre>
       *
       * <code>repeated .builtin.Value field = 2;</code>
       */
      public java.util.List<com.google.devtools.build.docgen.builtin.BuiltinProtos.Value.Builder> 
           getFieldBuilderList() {
        return getFieldFieldBuilder().getBuilderList();
      }
      private com.google.protobuf.RepeatedFieldBuilderV3<
          com.google.devtools.build.docgen.builtin.BuiltinProtos.Value, com.google.devtools.build.docgen.builtin.BuiltinProtos.Value.Builder, com.google.devtools.build.docgen.builtin.BuiltinProtos.ValueOrBuilder> 
          getFieldFieldBuilder() {
        if (fieldBuilder_ == null) {
          fieldBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
              com.google.devtools.build.docgen.builtin.BuiltinProtos.Value, com.google.devtools.build.docgen.builtin.BuiltinProtos.Value.Builder, com.google.devtools.build.docgen.builtin.BuiltinProtos.ValueOrBuilder>(
                  field_,
                  ((bitField0_ & 0x00000002) == 0x00000002),
                  getParentForChildren(),
                  isClean());
          field_ = null;
        }
        return fieldBuilder_;
      }

      private java.lang.Object doc_ = "";
      /**
       * <pre>
       * Module documentation.
       * </pre>
       *
       * <code>string doc = 3;</code>
       */
      public java.lang.String getDoc() {
        java.lang.Object ref = doc_;
        if (!(ref instanceof java.lang.String)) {
          com.google.protobuf.ByteString bs =
              (com.google.protobuf.ByteString) ref;
          java.lang.String s = bs.toStringUtf8();
          doc_ = s;
          return s;
        } else {
          return (java.lang.String) ref;
        }
      }
      /**
       * <pre>
       * Module documentation.
       * </pre>
       *
       * <code>string doc = 3;</code>
       */
      public com.google.protobuf.ByteString
          getDocBytes() {
        java.lang.Object ref = doc_;
        if (ref instanceof String) {
          com.google.protobuf.ByteString b = 
              com.google.protobuf.ByteString.copyFromUtf8(
                  (java.lang.String) ref);
          doc_ = b;
          return b;
        } else {
          return (com.google.protobuf.ByteString) ref;
        }
      }
      /**
       * <pre>
       * Module documentation.
       * </pre>
       *
       * <code>string doc = 3;</code>
       */
      public Builder setDoc(
          java.lang.String value) {
        if (value == null) {
    throw new NullPointerException();
  }
  
        doc_ = value;
        onChanged();
        return this;
      }
      /**
       * <pre>
       * Module documentation.
       * </pre>
       *
       * <code>string doc = 3;</code>
       */
      public Builder clearDoc() {
        
        doc_ = getDefaultInstance().getDoc();
        onChanged();
        return this;
      }
      /**
       * <pre>
       * Module documentation.
       * </pre>
       *
       * <code>string doc = 3;</code>
       */
      public Builder setDocBytes(
          com.google.protobuf.ByteString value) {
        if (value == null) {
    throw new NullPointerException();
  }
  checkByteStringIsUtf8(value);
        
        doc_ = value;
        onChanged();
        return this;
      }
      @java.lang.Override
      public final Builder setUnknownFields(
          final com.google.protobuf.UnknownFieldSet unknownFields) {
        return super.setUnknownFieldsProto3(unknownFields);
      }

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


      // @@protoc_insertion_point(builder_scope:builtin.Type)
    }

    // @@protoc_insertion_point(class_scope:builtin.Type)
    private static final com.google.devtools.build.docgen.builtin.BuiltinProtos.Type DEFAULT_INSTANCE;
    static {
      DEFAULT_INSTANCE = new com.google.devtools.build.docgen.builtin.BuiltinProtos.Type();
    }

    public static com.google.devtools.build.docgen.builtin.BuiltinProtos.Type getDefaultInstance() {
      return DEFAULT_INSTANCE;
    }

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

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

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

    @java.lang.Override
    public com.google.devtools.build.docgen.builtin.BuiltinProtos.Type getDefaultInstanceForType() {
      return DEFAULT_INSTANCE;
    }

  }

  public interface ValueOrBuilder extends
      // @@protoc_insertion_point(interface_extends:builtin.Value)
      com.google.protobuf.MessageOrBuilder {

    /**
     * <code>string name = 1;</code>
     */
    java.lang.String getName();
    /**
     * <code>string name = 1;</code>
     */
    com.google.protobuf.ByteString
        getNameBytes();

    /**
     * <pre>
     * Name of the type.
     * </pre>
     *
     * <code>string type = 2;</code>
     */
    java.lang.String getType();
    /**
     * <pre>
     * Name of the type.
     * </pre>
     *
     * <code>string type = 2;</code>
     */
    com.google.protobuf.ByteString
        getTypeBytes();

    /**
     * <pre>
     * Set when the object is a function.
     * </pre>
     *
     * <code>.builtin.Callable callable = 3;</code>
     */
    boolean hasCallable();
    /**
     * <pre>
     * Set when the object is a function.
     * </pre>
     *
     * <code>.builtin.Callable callable = 3;</code>
     */
    com.google.devtools.build.docgen.builtin.BuiltinProtos.Callable getCallable();
    /**
     * <pre>
     * Set when the object is a function.
     * </pre>
     *
     * <code>.builtin.Callable callable = 3;</code>
     */
    com.google.devtools.build.docgen.builtin.BuiltinProtos.CallableOrBuilder getCallableOrBuilder();

    /**
     * <pre>
     * Value documentation.
     * </pre>
     *
     * <code>string doc = 4;</code>
     */
    java.lang.String getDoc();
    /**
     * <pre>
     * Value documentation.
     * </pre>
     *
     * <code>string doc = 4;</code>
     */
    com.google.protobuf.ByteString
        getDocBytes();

    /**
     * <pre>
     * The context(s) in which the symbol is recognized.
     * </pre>
     *
     * <code>.builtin.ApiContext api_context = 5;</code>
     */
    int getApiContextValue();
    /**
     * <pre>
     * The context(s) in which the symbol is recognized.
     * </pre>
     *
     * <code>.builtin.ApiContext api_context = 5;</code>
     */
    com.google.devtools.build.docgen.builtin.BuiltinProtos.ApiContext getApiContext();
  }
  /**
   * <pre>
   * Generic representation for a Skylark object. If the object is callable
   * (can act as a function), then callable will be set.
   * </pre>
   *
   * Protobuf type {@code builtin.Value}
   */
  public  static final class Value extends
      com.google.protobuf.GeneratedMessageV3 implements
      // @@protoc_insertion_point(message_implements:builtin.Value)
      ValueOrBuilder {
  private static final long serialVersionUID = 0L;
    // Use Value.newBuilder() to construct.
    private Value(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {
      super(builder);
    }
    private Value() {
      name_ = "";
      type_ = "";
      doc_ = "";
      apiContext_ = 0;
    }

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

              name_ = s;
              break;
            }
            case 18: {
              java.lang.String s = input.readStringRequireUtf8();

              type_ = s;
              break;
            }
            case 26: {
              com.google.devtools.build.docgen.builtin.BuiltinProtos.Callable.Builder subBuilder = null;
              if (callable_ != null) {
                subBuilder = callable_.toBuilder();
              }
              callable_ = input.readMessage(com.google.devtools.build.docgen.builtin.BuiltinProtos.Callable.parser(), extensionRegistry);
              if (subBuilder != null) {
                subBuilder.mergeFrom(callable_);
                callable_ = subBuilder.buildPartial();
              }

              break;
            }
            case 34: {
              java.lang.String s = input.readStringRequireUtf8();

              doc_ = s;
              break;
            }
            case 40: {
              int rawValue = input.readEnum();

              apiContext_ = rawValue;
              break;
            }
            default: {
              if (!parseUnknownFieldProto3(
                  input, unknownFields, extensionRegistry, tag)) {
                done = true;
              }
              break;
            }
          }
        }
      } catch (com.google.protobuf.InvalidProtocolBufferException e) {
        throw e.setUnfinishedMessage(this);
      } catch (java.io.IOException e) {
        throw new com.google.protobuf.InvalidProtocolBufferException(
            e).setUnfinishedMessage(this);
      } finally {
        this.unknownFields = unknownFields.build();
        makeExtensionsImmutable();
      }
    }
    public static final com.google.protobuf.Descriptors.Descriptor
        getDescriptor() {
      return com.google.devtools.build.docgen.builtin.BuiltinProtos.internal_static_builtin_Value_descriptor;
    }

    @java.lang.Override
    protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
        internalGetFieldAccessorTable() {
      return com.google.devtools.build.docgen.builtin.BuiltinProtos.internal_static_builtin_Value_fieldAccessorTable
          .ensureFieldAccessorsInitialized(
              com.google.devtools.build.docgen.builtin.BuiltinProtos.Value.class, com.google.devtools.build.docgen.builtin.BuiltinProtos.Value.Builder.class);
    }

    public static final int NAME_FIELD_NUMBER = 1;
    private volatile java.lang.Object name_;
    /**
     * <code>string name = 1;</code>
     */
    public java.lang.String getName() {
      java.lang.Object ref = name_;
      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();
        name_ = s;
        return s;
      }
    }
    /**
     * <code>string name = 1;</code>
     */
    public com.google.protobuf.ByteString
        getNameBytes() {
      java.lang.Object ref = name_;
      if (ref instanceof java.lang.String) {
        com.google.protobuf.ByteString b = 
            com.google.protobuf.ByteString.copyFromUtf8(
                (java.lang.String) ref);
        name_ = b;
        return b;
      } else {
        return (com.google.protobuf.ByteString) ref;
      }
    }

    public static final int TYPE_FIELD_NUMBER = 2;
    private volatile java.lang.Object type_;
    /**
     * <pre>
     * Name of the type.
     * </pre>
     *
     * <code>string type = 2;</code>
     */
    public java.lang.String getType() {
      java.lang.Object ref = type_;
      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();
        type_ = s;
        return s;
      }
    }
    /**
     * <pre>
     * Name of the type.
     * </pre>
     *
     * <code>string type = 2;</code>
     */
    public com.google.protobuf.ByteString
        getTypeBytes() {
      java.lang.Object ref = type_;
      if (ref instanceof java.lang.String) {
        com.google.protobuf.ByteString b = 
            com.google.protobuf.ByteString.copyFromUtf8(
                (java.lang.String) ref);
        type_ = b;
        return b;
      } else {
        return (com.google.protobuf.ByteString) ref;
      }
    }

    public static final int CALLABLE_FIELD_NUMBER = 3;
    private com.google.devtools.build.docgen.builtin.BuiltinProtos.Callable callable_;
    /**
     * <pre>
     * Set when the object is a function.
     * </pre>
     *
     * <code>.builtin.Callable callable = 3;</code>
     */
    public boolean hasCallable() {
      return callable_ != null;
    }
    /**
     * <pre>
     * Set when the object is a function.
     * </pre>
     *
     * <code>.builtin.Callable callable = 3;</code>
     */
    public com.google.devtools.build.docgen.builtin.BuiltinProtos.Callable getCallable() {
      return callable_ == null ? com.google.devtools.build.docgen.builtin.BuiltinProtos.Callable.getDefaultInstance() : callable_;
    }
    /**
     * <pre>
     * Set when the object is a function.
     * </pre>
     *
     * <code>.builtin.Callable callable = 3;</code>
     */
    public com.google.devtools.build.docgen.builtin.BuiltinProtos.CallableOrBuilder getCallableOrBuilder() {
      return getCallable();
    }

    public static final int DOC_FIELD_NUMBER = 4;
    private volatile java.lang.Object doc_;
    /**
     * <pre>
     * Value documentation.
     * </pre>
     *
     * <code>string doc = 4;</code>
     */
    public java.lang.String getDoc() {
      java.lang.Object ref = doc_;
      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();
        doc_ = s;
        return s;
      }
    }
    /**
     * <pre>
     * Value documentation.
     * </pre>
     *
     * <code>string doc = 4;</code>
     */
    public com.google.protobuf.ByteString
        getDocBytes() {
      java.lang.Object ref = doc_;
      if (ref instanceof java.lang.String) {
        com.google.protobuf.ByteString b = 
            com.google.protobuf.ByteString.copyFromUtf8(
                (java.lang.String) ref);
        doc_ = b;
        return b;
      } else {
        return (com.google.protobuf.ByteString) ref;
      }
    }

    public static final int API_CONTEXT_FIELD_NUMBER = 5;
    private int apiContext_;
    /**
     * <pre>
     * The context(s) in which the symbol is recognized.
     * </pre>
     *
     * <code>.builtin.ApiContext api_context = 5;</code>
     */
    public int getApiContextValue() {
      return apiContext_;
    }
    /**
     * <pre>
     * The context(s) in which the symbol is recognized.
     * </pre>
     *
     * <code>.builtin.ApiContext api_context = 5;</code>
     */
    public com.google.devtools.build.docgen.builtin.BuiltinProtos.ApiContext getApiContext() {
      @SuppressWarnings("deprecation")
      com.google.devtools.build.docgen.builtin.BuiltinProtos.ApiContext result = com.google.devtools.build.docgen.builtin.BuiltinProtos.ApiContext.valueOf(apiContext_);
      return result == null ? com.google.devtools.build.docgen.builtin.BuiltinProtos.ApiContext.UNRECOGNIZED : result;
    }

    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 (!getNameBytes().isEmpty()) {
        com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_);
      }
      if (!getTypeBytes().isEmpty()) {
        com.google.protobuf.GeneratedMessageV3.writeString(output, 2, type_);
      }
      if (callable_ != null) {
        output.writeMessage(3, getCallable());
      }
      if (!getDocBytes().isEmpty()) {
        com.google.protobuf.GeneratedMessageV3.writeString(output, 4, doc_);
      }
      if (apiContext_ != com.google.devtools.build.docgen.builtin.BuiltinProtos.ApiContext.ALL.getNumber()) {
        output.writeEnum(5, apiContext_);
      }
      unknownFields.writeTo(output);
    }

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

      size = 0;
      if (!getNameBytes().isEmpty()) {
        size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_);
      }
      if (!getTypeBytes().isEmpty()) {
        size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, type_);
      }
      if (callable_ != null) {
        size += com.google.protobuf.CodedOutputStream
          .computeMessageSize(3, getCallable());
      }
      if (!getDocBytes().isEmpty()) {
        size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, doc_);
      }
      if (apiContext_ != com.google.devtools.build.docgen.builtin.BuiltinProtos.ApiContext.ALL.getNumber()) {
        size += com.google.protobuf.CodedOutputStream
          .computeEnumSize(5, apiContext_);
      }
      size += unknownFields.getSerializedSize();
      memoizedSize = size;
      return size;
    }

    @java.lang.Override
    public boolean equals(final java.lang.Object obj) {
      if (obj == this) {
       return true;
      }
      if (!(obj instanceof com.google.devtools.build.docgen.builtin.BuiltinProtos.Value)) {
        return super.equals(obj);
      }
      com.google.devtools.build.docgen.builtin.BuiltinProtos.Value other = (com.google.devtools.build.docgen.builtin.BuiltinProtos.Value) obj;

      boolean result = true;
      result = result && getName()
          .equals(other.getName());
      result = result && getType()
          .equals(other.getType());
      result = result && (hasCallable() == other.hasCallable());
      if (hasCallable()) {
        result = result && getCallable()
            .equals(other.getCallable());
      }
      result = result && getDoc()
          .equals(other.getDoc());
      result = result && apiContext_ == other.apiContext_;
      result = result && unknownFields.equals(other.unknownFields);
      return result;
    }

    @java.lang.Override
    public int hashCode() {
      if (memoizedHashCode != 0) {
        return memoizedHashCode;
      }
      int hash = 41;
      hash = (19 * hash) + getDescriptor().hashCode();
      hash = (37 * hash) + NAME_FIELD_NUMBER;
      hash = (53 * hash) + getName().hashCode();
      hash = (37 * hash) + TYPE_FIELD_NUMBER;
      hash = (53 * hash) + getType().hashCode();
      if (hasCallable()) {
        hash = (37 * hash) + CALLABLE_FIELD_NUMBER;
        hash = (53 * hash) + getCallable().hashCode();
      }
      hash = (37 * hash) + DOC_FIELD_NUMBER;
      hash = (53 * hash) + getDoc().hashCode();
      hash = (37 * hash) + API_CONTEXT_FIELD_NUMBER;
      hash = (53 * hash) + apiContext_;
      hash = (29 * hash) + unknownFields.hashCode();
      memoizedHashCode = hash;
      return hash;
    }

    public static com.google.devtools.build.docgen.builtin.BuiltinProtos.Value parseFrom(
        java.nio.ByteBuffer data)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data);
    }
    public static com.google.devtools.build.docgen.builtin.BuiltinProtos.Value parseFrom(
        java.nio.ByteBuffer data,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data, extensionRegistry);
    }
    public static com.google.devtools.build.docgen.builtin.BuiltinProtos.Value parseFrom(
        com.google.protobuf.ByteString data)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data);
    }
    public static com.google.devtools.build.docgen.builtin.BuiltinProtos.Value 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.devtools.build.docgen.builtin.BuiltinProtos.Value parseFrom(byte[] data)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data);
    }
    public static com.google.devtools.build.docgen.builtin.BuiltinProtos.Value parseFrom(
        byte[] data,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data, extensionRegistry);
    }
    public static com.google.devtools.build.docgen.builtin.BuiltinProtos.Value parseFrom(java.io.InputStream input)
        throws java.io.IOException {
      return com.google.protobuf.GeneratedMessageV3
          .parseWithIOException(PARSER, input);
    }
    public static com.google.devtools.build.docgen.builtin.BuiltinProtos.Value 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.devtools.build.docgen.builtin.BuiltinProtos.Value parseDelimitedFrom(java.io.InputStream input)
        throws java.io.IOException {
      return com.google.protobuf.GeneratedMessageV3
          .parseDelimitedWithIOException(PARSER, input);
    }
    public static com.google.devtools.build.docgen.builtin.BuiltinProtos.Value 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.devtools.build.docgen.builtin.BuiltinProtos.Value parseFrom(
        com.google.protobuf.CodedInputStream input)
        throws java.io.IOException {
      return com.google.protobuf.GeneratedMessageV3
          .parseWithIOException(PARSER, input);
    }
    public static com.google.devtools.build.docgen.builtin.BuiltinProtos.Value 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.devtools.build.docgen.builtin.BuiltinProtos.Value 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>
     * Generic representation for a Skylark object. If the object is callable
     * (can act as a function), then callable will be set.
     * </pre>
     *
     * Protobuf type {@code builtin.Value}
     */
    public static final class Builder extends
        com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements
        // @@protoc_insertion_point(builder_implements:builtin.Value)
        com.google.devtools.build.docgen.builtin.BuiltinProtos.ValueOrBuilder {
      public static final com.google.protobuf.Descriptors.Descriptor
          getDescriptor() {
        return com.google.devtools.build.docgen.builtin.BuiltinProtos.internal_static_builtin_Value_descriptor;
      }

      @java.lang.Override
      protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
          internalGetFieldAccessorTable() {
        return com.google.devtools.build.docgen.builtin.BuiltinProtos.internal_static_builtin_Value_fieldAccessorTable
            .ensureFieldAccessorsInitialized(
                com.google.devtools.build.docgen.builtin.BuiltinProtos.Value.class, com.google.devtools.build.docgen.builtin.BuiltinProtos.Value.Builder.class);
      }

      // Construct using com.google.devtools.build.docgen.builtin.BuiltinProtos.Value.newBuilder()
      private Builder() {
        maybeForceBuilderInitialization();
      }

      private Builder(
          com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
        super(parent);
        maybeForceBuilderInitialization();
      }
      private void maybeForceBuilderInitialization() {
        if (com.google.protobuf.GeneratedMessageV3
                .alwaysUseFieldBuilders) {
        }
      }
      @java.lang.Override
      public Builder clear() {
        super.clear();
        name_ = "";

        type_ = "";

        if (callableBuilder_ == null) {
          callable_ = null;
        } else {
          callable_ = null;
          callableBuilder_ = null;
        }
        doc_ = "";

        apiContext_ = 0;

        return this;
      }

      @java.lang.Override
      public com.google.protobuf.Descriptors.Descriptor
          getDescriptorForType() {
        return com.google.devtools.build.docgen.builtin.BuiltinProtos.internal_static_builtin_Value_descriptor;
      }

      @java.lang.Override
      public com.google.devtools.build.docgen.builtin.BuiltinProtos.Value getDefaultInstanceForType() {
        return com.google.devtools.build.docgen.builtin.BuiltinProtos.Value.getDefaultInstance();
      }

      @java.lang.Override
      public com.google.devtools.build.docgen.builtin.BuiltinProtos.Value build() {
        com.google.devtools.build.docgen.builtin.BuiltinProtos.Value result = buildPartial();
        if (!result.isInitialized()) {
          throw newUninitializedMessageException(result);
        }
        return result;
      }

      @java.lang.Override
      public com.google.devtools.build.docgen.builtin.BuiltinProtos.Value buildPartial() {
        com.google.devtools.build.docgen.builtin.BuiltinProtos.Value result = new com.google.devtools.build.docgen.builtin.BuiltinProtos.Value(this);
        result.name_ = name_;
        result.type_ = type_;
        if (callableBuilder_ == null) {
          result.callable_ = callable_;
        } else {
          result.callable_ = callableBuilder_.build();
        }
        result.doc_ = doc_;
        result.apiContext_ = apiContext_;
        onBuilt();
        return result;
      }

      @java.lang.Override
      public Builder clone() {
        return (Builder) super.clone();
      }
      @java.lang.Override
      public Builder setField(
          com.google.protobuf.Descriptors.FieldDescriptor field,
          java.lang.Object value) {
        return (Builder) super.setField(field, value);
      }
      @java.lang.Override
      public Builder clearField(
          com.google.protobuf.Descriptors.FieldDescriptor field) {
        return (Builder) super.clearField(field);
      }
      @java.lang.Override
      public Builder clearOneof(
          com.google.protobuf.Descriptors.OneofDescriptor oneof) {
        return (Builder) super.clearOneof(oneof);
      }
      @java.lang.Override
      public Builder setRepeatedField(
          com.google.protobuf.Descriptors.FieldDescriptor field,
          int index, java.lang.Object value) {
        return (Builder) super.setRepeatedField(field, index, value);
      }
      @java.lang.Override
      public Builder addRepeatedField(
          com.google.protobuf.Descriptors.FieldDescriptor field,
          java.lang.Object value) {
        return (Builder) super.addRepeatedField(field, value);
      }
      @java.lang.Override
      public Builder mergeFrom(com.google.protobuf.Message other) {
        if (other instanceof com.google.devtools.build.docgen.builtin.BuiltinProtos.Value) {
          return mergeFrom((com.google.devtools.build.docgen.builtin.BuiltinProtos.Value)other);
        } else {
          super.mergeFrom(other);
          return this;
        }
      }

      public Builder mergeFrom(com.google.devtools.build.docgen.builtin.BuiltinProtos.Value other) {
        if (other == com.google.devtools.build.docgen.builtin.BuiltinProtos.Value.getDefaultInstance()) return this;
        if (!other.getName().isEmpty()) {
          name_ = other.name_;
          onChanged();
        }
        if (!other.getType().isEmpty()) {
          type_ = other.type_;
          onChanged();
        }
        if (other.hasCallable()) {
          mergeCallable(other.getCallable());
        }
        if (!other.getDoc().isEmpty()) {
          doc_ = other.doc_;
          onChanged();
        }
        if (other.apiContext_ != 0) {
          setApiContextValue(other.getApiContextValue());
        }
        this.mergeUnknownFields(other.unknownFields);
        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 {
        com.google.devtools.build.docgen.builtin.BuiltinProtos.Value parsedMessage = null;
        try {
          parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
        } catch (com.google.protobuf.InvalidProtocolBufferException e) {
          parsedMessage = (com.google.devtools.build.docgen.builtin.BuiltinProtos.Value) e.getUnfinishedMessage();
          throw e.unwrapIOException();
        } finally {
          if (parsedMessage != null) {
            mergeFrom(parsedMessage);
          }
        }
        return this;
      }

      private java.lang.Object name_ = "";
      /**
       * <code>string name = 1;</code>
       */
      public java.lang.String getName() {
        java.lang.Object ref = name_;
        if (!(ref instanceof java.lang.String)) {
          com.google.protobuf.ByteString bs =
              (com.google.protobuf.ByteString) ref;
          java.lang.String s = bs.toStringUtf8();
          name_ = s;
          return s;
        } else {
          return (java.lang.String) ref;
        }
      }
      /**
       * <code>string name = 1;</code>
       */
      public com.google.protobuf.ByteString
          getNameBytes() {
        java.lang.Object ref = name_;
        if (ref instanceof String) {
          com.google.protobuf.ByteString b = 
              com.google.protobuf.ByteString.copyFromUtf8(
                  (java.lang.String) ref);
          name_ = b;
          return b;
        } else {
          return (com.google.protobuf.ByteString) ref;
        }
      }
      /**
       * <code>string name = 1;</code>
       */
      public Builder setName(
          java.lang.String value) {
        if (value == null) {
    throw new NullPointerException();
  }
  
        name_ = value;
        onChanged();
        return this;
      }
      /**
       * <code>string name = 1;</code>
       */
      public Builder clearName() {
        
        name_ = getDefaultInstance().getName();
        onChanged();
        return this;
      }
      /**
       * <code>string name = 1;</code>
       */
      public Builder setNameBytes(
          com.google.protobuf.ByteString value) {
        if (value == null) {
    throw new NullPointerException();
  }
  checkByteStringIsUtf8(value);
        
        name_ = value;
        onChanged();
        return this;
      }

      private java.lang.Object type_ = "";
      /**
       * <pre>
       * Name of the type.
       * </pre>
       *
       * <code>string type = 2;</code>
       */
      public java.lang.String getType() {
        java.lang.Object ref = type_;
        if (!(ref instanceof java.lang.String)) {
          com.google.protobuf.ByteString bs =
              (com.google.protobuf.ByteString) ref;
          java.lang.String s = bs.toStringUtf8();
          type_ = s;
          return s;
        } else {
          return (java.lang.String) ref;
        }
      }
      /**
       * <pre>
       * Name of the type.
       * </pre>
       *
       * <code>string type = 2;</code>
       */
      public com.google.protobuf.ByteString
          getTypeBytes() {
        java.lang.Object ref = type_;
        if (ref instanceof String) {
          com.google.protobuf.ByteString b = 
              com.google.protobuf.ByteString.copyFromUtf8(
                  (java.lang.String) ref);
          type_ = b;
          return b;
        } else {
          return (com.google.protobuf.ByteString) ref;
        }
      }
      /**
       * <pre>
       * Name of the type.
       * </pre>
       *
       * <code>string type = 2;</code>
       */
      public Builder setType(
          java.lang.String value) {
        if (value == null) {
    throw new NullPointerException();
  }
  
        type_ = value;
        onChanged();
        return this;
      }
      /**
       * <pre>
       * Name of the type.
       * </pre>
       *
       * <code>string type = 2;</code>
       */
      public Builder clearType() {
        
        type_ = getDefaultInstance().getType();
        onChanged();
        return this;
      }
      /**
       * <pre>
       * Name of the type.
       * </pre>
       *
       * <code>string type = 2;</code>
       */
      public Builder setTypeBytes(
          com.google.protobuf.ByteString value) {
        if (value == null) {
    throw new NullPointerException();
  }
  checkByteStringIsUtf8(value);
        
        type_ = value;
        onChanged();
        return this;
      }

      private com.google.devtools.build.docgen.builtin.BuiltinProtos.Callable callable_ = null;
      private com.google.protobuf.SingleFieldBuilderV3<
          com.google.devtools.build.docgen.builtin.BuiltinProtos.Callable, com.google.devtools.build.docgen.builtin.BuiltinProtos.Callable.Builder, com.google.devtools.build.docgen.builtin.BuiltinProtos.CallableOrBuilder> callableBuilder_;
      /**
       * <pre>
       * Set when the object is a function.
       * </pre>
       *
       * <code>.builtin.Callable callable = 3;</code>
       */
      public boolean hasCallable() {
        return callableBuilder_ != null || callable_ != null;
      }
      /**
       * <pre>
       * Set when the object is a function.
       * </pre>
       *
       * <code>.builtin.Callable callable = 3;</code>
       */
      public com.google.devtools.build.docgen.builtin.BuiltinProtos.Callable getCallable() {
        if (callableBuilder_ == null) {
          return callable_ == null ? com.google.devtools.build.docgen.builtin.BuiltinProtos.Callable.getDefaultInstance() : callable_;
        } else {
          return callableBuilder_.getMessage();
        }
      }
      /**
       * <pre>
       * Set when the object is a function.
       * </pre>
       *
       * <code>.builtin.Callable callable = 3;</code>
       */
      public Builder setCallable(com.google.devtools.build.docgen.builtin.BuiltinProtos.Callable value) {
        if (callableBuilder_ == null) {
          if (value == null) {
            throw new NullPointerException();
          }
          callable_ = value;
          onChanged();
        } else {
          callableBuilder_.setMessage(value);
        }

        return this;
      }
      /**
       * <pre>
       * Set when the object is a function.
       * </pre>
       *
       * <code>.builtin.Callable callable = 3;</code>
       */
      public Builder setCallable(
          com.google.devtools.build.docgen.builtin.BuiltinProtos.Callable.Builder builderForValue) {
        if (callableBuilder_ == null) {
          callable_ = builderForValue.build();
          onChanged();
        } else {
          callableBuilder_.setMessage(builderForValue.build());
        }

        return this;
      }
      /**
       * <pre>
       * Set when the object is a function.
       * </pre>
       *
       * <code>.builtin.Callable callable = 3;</code>
       */
      public Builder mergeCallable(com.google.devtools.build.docgen.builtin.BuiltinProtos.Callable value) {
        if (callableBuilder_ == null) {
          if (callable_ != null) {
            callable_ =
              com.google.devtools.build.docgen.builtin.BuiltinProtos.Callable.newBuilder(callable_).mergeFrom(value).buildPartial();
          } else {
            callable_ = value;
          }
          onChanged();
        } else {
          callableBuilder_.mergeFrom(value);
        }

        return this;
      }
      /**
       * <pre>
       * Set when the object is a function.
       * </pre>
       *
       * <code>.builtin.Callable callable = 3;</code>
       */
      public Builder clearCallable() {
        if (callableBuilder_ == null) {
          callable_ = null;
          onChanged();
        } else {
          callable_ = null;
          callableBuilder_ = null;
        }

        return this;
      }
      /**
       * <pre>
       * Set when the object is a function.
       * </pre>
       *
       * <code>.builtin.Callable callable = 3;</code>
       */
      public com.google.devtools.build.docgen.builtin.BuiltinProtos.Callable.Builder getCallableBuilder() {
        
        onChanged();
        return getCallableFieldBuilder().getBuilder();
      }
      /**
       * <pre>
       * Set when the object is a function.
       * </pre>
       *
       * <code>.builtin.Callable callable = 3;</code>
       */
      public com.google.devtools.build.docgen.builtin.BuiltinProtos.CallableOrBuilder getCallableOrBuilder() {
        if (callableBuilder_ != null) {
          return callableBuilder_.getMessageOrBuilder();
        } else {
          return callable_ == null ?
              com.google.devtools.build.docgen.builtin.BuiltinProtos.Callable.getDefaultInstance() : callable_;
        }
      }
      /**
       * <pre>
       * Set when the object is a function.
       * </pre>
       *
       * <code>.builtin.Callable callable = 3;</code>
       */
      private com.google.protobuf.SingleFieldBuilderV3<
          com.google.devtools.build.docgen.builtin.BuiltinProtos.Callable, com.google.devtools.build.docgen.builtin.BuiltinProtos.Callable.Builder, com.google.devtools.build.docgen.builtin.BuiltinProtos.CallableOrBuilder> 
          getCallableFieldBuilder() {
        if (callableBuilder_ == null) {
          callableBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
              com.google.devtools.build.docgen.builtin.BuiltinProtos.Callable, com.google.devtools.build.docgen.builtin.BuiltinProtos.Callable.Builder, com.google.devtools.build.docgen.builtin.BuiltinProtos.CallableOrBuilder>(
                  getCallable(),
                  getParentForChildren(),
                  isClean());
          callable_ = null;
        }
        return callableBuilder_;
      }

      private java.lang.Object doc_ = "";
      /**
       * <pre>
       * Value documentation.
       * </pre>
       *
       * <code>string doc = 4;</code>
       */
      public java.lang.String getDoc() {
        java.lang.Object ref = doc_;
        if (!(ref instanceof java.lang.String)) {
          com.google.protobuf.ByteString bs =
              (com.google.protobuf.ByteString) ref;
          java.lang.String s = bs.toStringUtf8();
          doc_ = s;
          return s;
        } else {
          return (java.lang.String) ref;
        }
      }
      /**
       * <pre>
       * Value documentation.
       * </pre>
       *
       * <code>string doc = 4;</code>
       */
      public com.google.protobuf.ByteString
          getDocBytes() {
        java.lang.Object ref = doc_;
        if (ref instanceof String) {
          com.google.protobuf.ByteString b = 
              com.google.protobuf.ByteString.copyFromUtf8(
                  (java.lang.String) ref);
          doc_ = b;
          return b;
        } else {
          return (com.google.protobuf.ByteString) ref;
        }
      }
      /**
       * <pre>
       * Value documentation.
       * </pre>
       *
       * <code>string doc = 4;</code>
       */
      public Builder setDoc(
          java.lang.String value) {
        if (value == null) {
    throw new NullPointerException();
  }
  
        doc_ = value;
        onChanged();
        return this;
      }
      /**
       * <pre>
       * Value documentation.
       * </pre>
       *
       * <code>string doc = 4;</code>
       */
      public Builder clearDoc() {
        
        doc_ = getDefaultInstance().getDoc();
        onChanged();
        return this;
      }
      /**
       * <pre>
       * Value documentation.
       * </pre>
       *
       * <code>string doc = 4;</code>
       */
      public Builder setDocBytes(
          com.google.protobuf.ByteString value) {
        if (value == null) {
    throw new NullPointerException();
  }
  checkByteStringIsUtf8(value);
        
        doc_ = value;
        onChanged();
        return this;
      }

      private int apiContext_ = 0;
      /**
       * <pre>
       * The context(s) in which the symbol is recognized.
       * </pre>
       *
       * <code>.builtin.ApiContext api_context = 5;</code>
       */
      public int getApiContextValue() {
        return apiContext_;
      }
      /**
       * <pre>
       * The context(s) in which the symbol is recognized.
       * </pre>
       *
       * <code>.builtin.ApiContext api_context = 5;</code>
       */
      public Builder setApiContextValue(int value) {
        apiContext_ = value;
        onChanged();
        return this;
      }
      /**
       * <pre>
       * The context(s) in which the symbol is recognized.
       * </pre>
       *
       * <code>.builtin.ApiContext api_context = 5;</code>
       */
      public com.google.devtools.build.docgen.builtin.BuiltinProtos.ApiContext getApiContext() {
        @SuppressWarnings("deprecation")
        com.google.devtools.build.docgen.builtin.BuiltinProtos.ApiContext result = com.google.devtools.build.docgen.builtin.BuiltinProtos.ApiContext.valueOf(apiContext_);
        return result == null ? com.google.devtools.build.docgen.builtin.BuiltinProtos.ApiContext.UNRECOGNIZED : result;
      }
      /**
       * <pre>
       * The context(s) in which the symbol is recognized.
       * </pre>
       *
       * <code>.builtin.ApiContext api_context = 5;</code>
       */
      public Builder setApiContext(com.google.devtools.build.docgen.builtin.BuiltinProtos.ApiContext value) {
        if (value == null) {
          throw new NullPointerException();
        }
        
        apiContext_ = value.getNumber();
        onChanged();
        return this;
      }
      /**
       * <pre>
       * The context(s) in which the symbol is recognized.
       * </pre>
       *
       * <code>.builtin.ApiContext api_context = 5;</code>
       */
      public Builder clearApiContext() {
        
        apiContext_ = 0;
        onChanged();
        return this;
      }
      @java.lang.Override
      public final Builder setUnknownFields(
          final com.google.protobuf.UnknownFieldSet unknownFields) {
        return super.setUnknownFieldsProto3(unknownFields);
      }

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


      // @@protoc_insertion_point(builder_scope:builtin.Value)
    }

    // @@protoc_insertion_point(class_scope:builtin.Value)
    private static final com.google.devtools.build.docgen.builtin.BuiltinProtos.Value DEFAULT_INSTANCE;
    static {
      DEFAULT_INSTANCE = new com.google.devtools.build.docgen.builtin.BuiltinProtos.Value();
    }

    public static com.google.devtools.build.docgen.builtin.BuiltinProtos.Value getDefaultInstance() {
      return DEFAULT_INSTANCE;
    }

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

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

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

    @java.lang.Override
    public com.google.devtools.build.docgen.builtin.BuiltinProtos.Value getDefaultInstanceForType() {
      return DEFAULT_INSTANCE;
    }

  }

  public interface CallableOrBuilder extends
      // @@protoc_insertion_point(interface_extends:builtin.Callable)
      com.google.protobuf.MessageOrBuilder {

    /**
     * <code>repeated .builtin.Param param = 1;</code>
     */
    java.util.List<com.google.devtools.build.docgen.builtin.BuiltinProtos.Param> 
        getParamList();
    /**
     * <code>repeated .builtin.Param param = 1;</code>
     */
    com.google.devtools.build.docgen.builtin.BuiltinProtos.Param getParam(int index);
    /**
     * <code>repeated .builtin.Param param = 1;</code>
     */
    int getParamCount();
    /**
     * <code>repeated .builtin.Param param = 1;</code>
     */
    java.util.List<? extends com.google.devtools.build.docgen.builtin.BuiltinProtos.ParamOrBuilder> 
        getParamOrBuilderList();
    /**
     * <code>repeated .builtin.Param param = 1;</code>
     */
    com.google.devtools.build.docgen.builtin.BuiltinProtos.ParamOrBuilder getParamOrBuilder(
        int index);

    /**
     * <pre>
     * Name of the return type.
     * </pre>
     *
     * <code>string return_type = 2;</code>
     */
    java.lang.String getReturnType();
    /**
     * <pre>
     * Name of the return type.
     * </pre>
     *
     * <code>string return_type = 2;</code>
     */
    com.google.protobuf.ByteString
        getReturnTypeBytes();
  }
  /**
   * Protobuf type {@code builtin.Callable}
   */
  public  static final class Callable extends
      com.google.protobuf.GeneratedMessageV3 implements
      // @@protoc_insertion_point(message_implements:builtin.Callable)
      CallableOrBuilder {
  private static final long serialVersionUID = 0L;
    // Use Callable.newBuilder() to construct.
    private Callable(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {
      super(builder);
    }
    private Callable() {
      param_ = java.util.Collections.emptyList();
      returnType_ = "";
    }

    @java.lang.Override
    public final com.google.protobuf.UnknownFieldSet
    getUnknownFields() {
      return this.unknownFields;
    }
    private Callable(
        com.google.protobuf.CodedInputStream input,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws com.google.protobuf.InvalidProtocolBufferException {
      this();
      if (extensionRegistry == null) {
        throw new java.lang.NullPointerException();
      }
      int mutable_bitField0_ = 0;
      com.google.protobuf.UnknownFieldSet.Builder unknownFields =
          com.google.protobuf.UnknownFieldSet.newBuilder();
      try {
        boolean done = false;
        while (!done) {
          int tag = input.readTag();
          switch (tag) {
            case 0:
              done = true;
              break;
            case 10: {
              if (!((mutable_bitField0_ & 0x00000001) == 0x00000001)) {
                param_ = new java.util.ArrayList<com.google.devtools.build.docgen.builtin.BuiltinProtos.Param>();
                mutable_bitField0_ |= 0x00000001;
              }
              param_.add(
                  input.readMessage(com.google.devtools.build.docgen.builtin.BuiltinProtos.Param.parser(), extensionRegistry));
              break;
            }
            case 18: {
              java.lang.String s = input.readStringRequireUtf8();

              returnType_ = s;
              break;
            }
            default: {
              if (!parseUnknownFieldProto3(
                  input, unknownFields, extensionRegistry, tag)) {
                done = true;
              }
              break;
            }
          }
        }
      } catch (com.google.protobuf.InvalidProtocolBufferException e) {
        throw e.setUnfinishedMessage(this);
      } catch (java.io.IOException e) {
        throw new com.google.protobuf.InvalidProtocolBufferException(
            e).setUnfinishedMessage(this);
      } finally {
        if (((mutable_bitField0_ & 0x00000001) == 0x00000001)) {
          param_ = java.util.Collections.unmodifiableList(param_);
        }
        this.unknownFields = unknownFields.build();
        makeExtensionsImmutable();
      }
    }
    public static final com.google.protobuf.Descriptors.Descriptor
        getDescriptor() {
      return com.google.devtools.build.docgen.builtin.BuiltinProtos.internal_static_builtin_Callable_descriptor;
    }

    @java.lang.Override
    protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
        internalGetFieldAccessorTable() {
      return com.google.devtools.build.docgen.builtin.BuiltinProtos.internal_static_builtin_Callable_fieldAccessorTable
          .ensureFieldAccessorsInitialized(
              com.google.devtools.build.docgen.builtin.BuiltinProtos.Callable.class, com.google.devtools.build.docgen.builtin.BuiltinProtos.Callable.Builder.class);
    }

    private int bitField0_;
    public static final int PARAM_FIELD_NUMBER = 1;
    private java.util.List<com.google.devtools.build.docgen.builtin.BuiltinProtos.Param> param_;
    /**
     * <code>repeated .builtin.Param param = 1;</code>
     */
    public java.util.List<com.google.devtools.build.docgen.builtin.BuiltinProtos.Param> getParamList() {
      return param_;
    }
    /**
     * <code>repeated .builtin.Param param = 1;</code>
     */
    public java.util.List<? extends com.google.devtools.build.docgen.builtin.BuiltinProtos.ParamOrBuilder> 
        getParamOrBuilderList() {
      return param_;
    }
    /**
     * <code>repeated .builtin.Param param = 1;</code>
     */
    public int getParamCount() {
      return param_.size();
    }
    /**
     * <code>repeated .builtin.Param param = 1;</code>
     */
    public com.google.devtools.build.docgen.builtin.BuiltinProtos.Param getParam(int index) {
      return param_.get(index);
    }
    /**
     * <code>repeated .builtin.Param param = 1;</code>
     */
    public com.google.devtools.build.docgen.builtin.BuiltinProtos.ParamOrBuilder getParamOrBuilder(
        int index) {
      return param_.get(index);
    }

    public static final int RETURN_TYPE_FIELD_NUMBER = 2;
    private volatile java.lang.Object returnType_;
    /**
     * <pre>
     * Name of the return type.
     * </pre>
     *
     * <code>string return_type = 2;</code>
     */
    public java.lang.String getReturnType() {
      java.lang.Object ref = returnType_;
      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();
        returnType_ = s;
        return s;
      }
    }
    /**
     * <pre>
     * Name of the return type.
     * </pre>
     *
     * <code>string return_type = 2;</code>
     */
    public com.google.protobuf.ByteString
        getReturnTypeBytes() {
      java.lang.Object ref = returnType_;
      if (ref instanceof java.lang.String) {
        com.google.protobuf.ByteString b = 
            com.google.protobuf.ByteString.copyFromUtf8(
                (java.lang.String) ref);
        returnType_ = b;
        return b;
      } else {
        return (com.google.protobuf.ByteString) ref;
      }
    }

    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 {
      for (int i = 0; i < param_.size(); i++) {
        output.writeMessage(1, param_.get(i));
      }
      if (!getReturnTypeBytes().isEmpty()) {
        com.google.protobuf.GeneratedMessageV3.writeString(output, 2, returnType_);
      }
      unknownFields.writeTo(output);
    }

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

      size = 0;
      for (int i = 0; i < param_.size(); i++) {
        size += com.google.protobuf.CodedOutputStream
          .computeMessageSize(1, param_.get(i));
      }
      if (!getReturnTypeBytes().isEmpty()) {
        size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, returnType_);
      }
      size += unknownFields.getSerializedSize();
      memoizedSize = size;
      return size;
    }

    @java.lang.Override
    public boolean equals(final java.lang.Object obj) {
      if (obj == this) {
       return true;
      }
      if (!(obj instanceof com.google.devtools.build.docgen.builtin.BuiltinProtos.Callable)) {
        return super.equals(obj);
      }
      com.google.devtools.build.docgen.builtin.BuiltinProtos.Callable other = (com.google.devtools.build.docgen.builtin.BuiltinProtos.Callable) obj;

      boolean result = true;
      result = result && getParamList()
          .equals(other.getParamList());
      result = result && getReturnType()
          .equals(other.getReturnType());
      result = result && unknownFields.equals(other.unknownFields);
      return result;
    }

    @java.lang.Override
    public int hashCode() {
      if (memoizedHashCode != 0) {
        return memoizedHashCode;
      }
      int hash = 41;
      hash = (19 * hash) + getDescriptor().hashCode();
      if (getParamCount() > 0) {
        hash = (37 * hash) + PARAM_FIELD_NUMBER;
        hash = (53 * hash) + getParamList().hashCode();
      }
      hash = (37 * hash) + RETURN_TYPE_FIELD_NUMBER;
      hash = (53 * hash) + getReturnType().hashCode();
      hash = (29 * hash) + unknownFields.hashCode();
      memoizedHashCode = hash;
      return hash;
    }

    public static com.google.devtools.build.docgen.builtin.BuiltinProtos.Callable parseFrom(
        java.nio.ByteBuffer data)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data);
    }
    public static com.google.devtools.build.docgen.builtin.BuiltinProtos.Callable parseFrom(
        java.nio.ByteBuffer data,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data, extensionRegistry);
    }
    public static com.google.devtools.build.docgen.builtin.BuiltinProtos.Callable parseFrom(
        com.google.protobuf.ByteString data)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data);
    }
    public static com.google.devtools.build.docgen.builtin.BuiltinProtos.Callable 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.devtools.build.docgen.builtin.BuiltinProtos.Callable parseFrom(byte[] data)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data);
    }
    public static com.google.devtools.build.docgen.builtin.BuiltinProtos.Callable parseFrom(
        byte[] data,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data, extensionRegistry);
    }
    public static com.google.devtools.build.docgen.builtin.BuiltinProtos.Callable parseFrom(java.io.InputStream input)
        throws java.io.IOException {
      return com.google.protobuf.GeneratedMessageV3
          .parseWithIOException(PARSER, input);
    }
    public static com.google.devtools.build.docgen.builtin.BuiltinProtos.Callable 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.devtools.build.docgen.builtin.BuiltinProtos.Callable parseDelimitedFrom(java.io.InputStream input)
        throws java.io.IOException {
      return com.google.protobuf.GeneratedMessageV3
          .parseDelimitedWithIOException(PARSER, input);
    }
    public static com.google.devtools.build.docgen.builtin.BuiltinProtos.Callable 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.devtools.build.docgen.builtin.BuiltinProtos.Callable parseFrom(
        com.google.protobuf.CodedInputStream input)
        throws java.io.IOException {
      return com.google.protobuf.GeneratedMessageV3
          .parseWithIOException(PARSER, input);
    }
    public static com.google.devtools.build.docgen.builtin.BuiltinProtos.Callable 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.devtools.build.docgen.builtin.BuiltinProtos.Callable 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;
    }
    /**
     * Protobuf type {@code builtin.Callable}
     */
    public static final class Builder extends
        com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements
        // @@protoc_insertion_point(builder_implements:builtin.Callable)
        com.google.devtools.build.docgen.builtin.BuiltinProtos.CallableOrBuilder {
      public static final com.google.protobuf.Descriptors.Descriptor
          getDescriptor() {
        return com.google.devtools.build.docgen.builtin.BuiltinProtos.internal_static_builtin_Callable_descriptor;
      }

      @java.lang.Override
      protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
          internalGetFieldAccessorTable() {
        return com.google.devtools.build.docgen.builtin.BuiltinProtos.internal_static_builtin_Callable_fieldAccessorTable
            .ensureFieldAccessorsInitialized(
                com.google.devtools.build.docgen.builtin.BuiltinProtos.Callable.class, com.google.devtools.build.docgen.builtin.BuiltinProtos.Callable.Builder.class);
      }

      // Construct using com.google.devtools.build.docgen.builtin.BuiltinProtos.Callable.newBuilder()
      private Builder() {
        maybeForceBuilderInitialization();
      }

      private Builder(
          com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
        super(parent);
        maybeForceBuilderInitialization();
      }
      private void maybeForceBuilderInitialization() {
        if (com.google.protobuf.GeneratedMessageV3
                .alwaysUseFieldBuilders) {
          getParamFieldBuilder();
        }
      }
      @java.lang.Override
      public Builder clear() {
        super.clear();
        if (paramBuilder_ == null) {
          param_ = java.util.Collections.emptyList();
          bitField0_ = (bitField0_ & ~0x00000001);
        } else {
          paramBuilder_.clear();
        }
        returnType_ = "";

        return this;
      }

      @java.lang.Override
      public com.google.protobuf.Descriptors.Descriptor
          getDescriptorForType() {
        return com.google.devtools.build.docgen.builtin.BuiltinProtos.internal_static_builtin_Callable_descriptor;
      }

      @java.lang.Override
      public com.google.devtools.build.docgen.builtin.BuiltinProtos.Callable getDefaultInstanceForType() {
        return com.google.devtools.build.docgen.builtin.BuiltinProtos.Callable.getDefaultInstance();
      }

      @java.lang.Override
      public com.google.devtools.build.docgen.builtin.BuiltinProtos.Callable build() {
        com.google.devtools.build.docgen.builtin.BuiltinProtos.Callable result = buildPartial();
        if (!result.isInitialized()) {
          throw newUninitializedMessageException(result);
        }
        return result;
      }

      @java.lang.Override
      public com.google.devtools.build.docgen.builtin.BuiltinProtos.Callable buildPartial() {
        com.google.devtools.build.docgen.builtin.BuiltinProtos.Callable result = new com.google.devtools.build.docgen.builtin.BuiltinProtos.Callable(this);
        int from_bitField0_ = bitField0_;
        int to_bitField0_ = 0;
        if (paramBuilder_ == null) {
          if (((bitField0_ & 0x00000001) == 0x00000001)) {
            param_ = java.util.Collections.unmodifiableList(param_);
            bitField0_ = (bitField0_ & ~0x00000001);
          }
          result.param_ = param_;
        } else {
          result.param_ = paramBuilder_.build();
        }
        result.returnType_ = returnType_;
        result.bitField0_ = to_bitField0_;
        onBuilt();
        return result;
      }

      @java.lang.Override
      public Builder clone() {
        return (Builder) super.clone();
      }
      @java.lang.Override
      public Builder setField(
          com.google.protobuf.Descriptors.FieldDescriptor field,
          java.lang.Object value) {
        return (Builder) super.setField(field, value);
      }
      @java.lang.Override
      public Builder clearField(
          com.google.protobuf.Descriptors.FieldDescriptor field) {
        return (Builder) super.clearField(field);
      }
      @java.lang.Override
      public Builder clearOneof(
          com.google.protobuf.Descriptors.OneofDescriptor oneof) {
        return (Builder) super.clearOneof(oneof);
      }
      @java.lang.Override
      public Builder setRepeatedField(
          com.google.protobuf.Descriptors.FieldDescriptor field,
          int index, java.lang.Object value) {
        return (Builder) super.setRepeatedField(field, index, value);
      }
      @java.lang.Override
      public Builder addRepeatedField(
          com.google.protobuf.Descriptors.FieldDescriptor field,
          java.lang.Object value) {
        return (Builder) super.addRepeatedField(field, value);
      }
      @java.lang.Override
      public Builder mergeFrom(com.google.protobuf.Message other) {
        if (other instanceof com.google.devtools.build.docgen.builtin.BuiltinProtos.Callable) {
          return mergeFrom((com.google.devtools.build.docgen.builtin.BuiltinProtos.Callable)other);
        } else {
          super.mergeFrom(other);
          return this;
        }
      }

      public Builder mergeFrom(com.google.devtools.build.docgen.builtin.BuiltinProtos.Callable other) {
        if (other == com.google.devtools.build.docgen.builtin.BuiltinProtos.Callable.getDefaultInstance()) return this;
        if (paramBuilder_ == null) {
          if (!other.param_.isEmpty()) {
            if (param_.isEmpty()) {
              param_ = other.param_;
              bitField0_ = (bitField0_ & ~0x00000001);
            } else {
              ensureParamIsMutable();
              param_.addAll(other.param_);
            }
            onChanged();
          }
        } else {
          if (!other.param_.isEmpty()) {
            if (paramBuilder_.isEmpty()) {
              paramBuilder_.dispose();
              paramBuilder_ = null;
              param_ = other.param_;
              bitField0_ = (bitField0_ & ~0x00000001);
              paramBuilder_ = 
                com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
                   getParamFieldBuilder() : null;
            } else {
              paramBuilder_.addAllMessages(other.param_);
            }
          }
        }
        if (!other.getReturnType().isEmpty()) {
          returnType_ = other.returnType_;
          onChanged();
        }
        this.mergeUnknownFields(other.unknownFields);
        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 {
        com.google.devtools.build.docgen.builtin.BuiltinProtos.Callable parsedMessage = null;
        try {
          parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
        } catch (com.google.protobuf.InvalidProtocolBufferException e) {
          parsedMessage = (com.google.devtools.build.docgen.builtin.BuiltinProtos.Callable) e.getUnfinishedMessage();
          throw e.unwrapIOException();
        } finally {
          if (parsedMessage != null) {
            mergeFrom(parsedMessage);
          }
        }
        return this;
      }
      private int bitField0_;

      private java.util.List<com.google.devtools.build.docgen.builtin.BuiltinProtos.Param> param_ =
        java.util.Collections.emptyList();
      private void ensureParamIsMutable() {
        if (!((bitField0_ & 0x00000001) == 0x00000001)) {
          param_ = new java.util.ArrayList<com.google.devtools.build.docgen.builtin.BuiltinProtos.Param>(param_);
          bitField0_ |= 0x00000001;
         }
      }

      private com.google.protobuf.RepeatedFieldBuilderV3<
          com.google.devtools.build.docgen.builtin.BuiltinProtos.Param, com.google.devtools.build.docgen.builtin.BuiltinProtos.Param.Builder, com.google.devtools.build.docgen.builtin.BuiltinProtos.ParamOrBuilder> paramBuilder_;

      /**
       * <code>repeated .builtin.Param param = 1;</code>
       */
      public java.util.List<com.google.devtools.build.docgen.builtin.BuiltinProtos.Param> getParamList() {
        if (paramBuilder_ == null) {
          return java.util.Collections.unmodifiableList(param_);
        } else {
          return paramBuilder_.getMessageList();
        }
      }
      /**
       * <code>repeated .builtin.Param param = 1;</code>
       */
      public int getParamCount() {
        if (paramBuilder_ == null) {
          return param_.size();
        } else {
          return paramBuilder_.getCount();
        }
      }
      /**
       * <code>repeated .builtin.Param param = 1;</code>
       */
      public com.google.devtools.build.docgen.builtin.BuiltinProtos.Param getParam(int index) {
        if (paramBuilder_ == null) {
          return param_.get(index);
        } else {
          return paramBuilder_.getMessage(index);
        }
      }
      /**
       * <code>repeated .builtin.Param param = 1;</code>
       */
      public Builder setParam(
          int index, com.google.devtools.build.docgen.builtin.BuiltinProtos.Param value) {
        if (paramBuilder_ == null) {
          if (value == null) {
            throw new NullPointerException();
          }
          ensureParamIsMutable();
          param_.set(index, value);
          onChanged();
        } else {
          paramBuilder_.setMessage(index, value);
        }
        return this;
      }
      /**
       * <code>repeated .builtin.Param param = 1;</code>
       */
      public Builder setParam(
          int index, com.google.devtools.build.docgen.builtin.BuiltinProtos.Param.Builder builderForValue) {
        if (paramBuilder_ == null) {
          ensureParamIsMutable();
          param_.set(index, builderForValue.build());
          onChanged();
        } else {
          paramBuilder_.setMessage(index, builderForValue.build());
        }
        return this;
      }
      /**
       * <code>repeated .builtin.Param param = 1;</code>
       */
      public Builder addParam(com.google.devtools.build.docgen.builtin.BuiltinProtos.Param value) {
        if (paramBuilder_ == null) {
          if (value == null) {
            throw new NullPointerException();
          }
          ensureParamIsMutable();
          param_.add(value);
          onChanged();
        } else {
          paramBuilder_.addMessage(value);
        }
        return this;
      }
      /**
       * <code>repeated .builtin.Param param = 1;</code>
       */
      public Builder addParam(
          int index, com.google.devtools.build.docgen.builtin.BuiltinProtos.Param value) {
        if (paramBuilder_ == null) {
          if (value == null) {
            throw new NullPointerException();
          }
          ensureParamIsMutable();
          param_.add(index, value);
          onChanged();
        } else {
          paramBuilder_.addMessage(index, value);
        }
        return this;
      }
      /**
       * <code>repeated .builtin.Param param = 1;</code>
       */
      public Builder addParam(
          com.google.devtools.build.docgen.builtin.BuiltinProtos.Param.Builder builderForValue) {
        if (paramBuilder_ == null) {
          ensureParamIsMutable();
          param_.add(builderForValue.build());
          onChanged();
        } else {
          paramBuilder_.addMessage(builderForValue.build());
        }
        return this;
      }
      /**
       * <code>repeated .builtin.Param param = 1;</code>
       */
      public Builder addParam(
          int index, com.google.devtools.build.docgen.builtin.BuiltinProtos.Param.Builder builderForValue) {
        if (paramBuilder_ == null) {
          ensureParamIsMutable();
          param_.add(index, builderForValue.build());
          onChanged();
        } else {
          paramBuilder_.addMessage(index, builderForValue.build());
        }
        return this;
      }
      /**
       * <code>repeated .builtin.Param param = 1;</code>
       */
      public Builder addAllParam(
          java.lang.Iterable<? extends com.google.devtools.build.docgen.builtin.BuiltinProtos.Param> values) {
        if (paramBuilder_ == null) {
          ensureParamIsMutable();
          com.google.protobuf.AbstractMessageLite.Builder.addAll(
              values, param_);
          onChanged();
        } else {
          paramBuilder_.addAllMessages(values);
        }
        return this;
      }
      /**
       * <code>repeated .builtin.Param param = 1;</code>
       */
      public Builder clearParam() {
        if (paramBuilder_ == null) {
          param_ = java.util.Collections.emptyList();
          bitField0_ = (bitField0_ & ~0x00000001);
          onChanged();
        } else {
          paramBuilder_.clear();
        }
        return this;
      }
      /**
       * <code>repeated .builtin.Param param = 1;</code>
       */
      public Builder removeParam(int index) {
        if (paramBuilder_ == null) {
          ensureParamIsMutable();
          param_.remove(index);
          onChanged();
        } else {
          paramBuilder_.remove(index);
        }
        return this;
      }
      /**
       * <code>repeated .builtin.Param param = 1;</code>
       */
      public com.google.devtools.build.docgen.builtin.BuiltinProtos.Param.Builder getParamBuilder(
          int index) {
        return getParamFieldBuilder().getBuilder(index);
      }
      /**
       * <code>repeated .builtin.Param param = 1;</code>
       */
      public com.google.devtools.build.docgen.builtin.BuiltinProtos.ParamOrBuilder getParamOrBuilder(
          int index) {
        if (paramBuilder_ == null) {
          return param_.get(index);  } else {
          return paramBuilder_.getMessageOrBuilder(index);
        }
      }
      /**
       * <code>repeated .builtin.Param param = 1;</code>
       */
      public java.util.List<? extends com.google.devtools.build.docgen.builtin.BuiltinProtos.ParamOrBuilder> 
           getParamOrBuilderList() {
        if (paramBuilder_ != null) {
          return paramBuilder_.getMessageOrBuilderList();
        } else {
          return java.util.Collections.unmodifiableList(param_);
        }
      }
      /**
       * <code>repeated .builtin.Param param = 1;</code>
       */
      public com.google.devtools.build.docgen.builtin.BuiltinProtos.Param.Builder addParamBuilder() {
        return getParamFieldBuilder().addBuilder(
            com.google.devtools.build.docgen.builtin.BuiltinProtos.Param.getDefaultInstance());
      }
      /**
       * <code>repeated .builtin.Param param = 1;</code>
       */
      public com.google.devtools.build.docgen.builtin.BuiltinProtos.Param.Builder addParamBuilder(
          int index) {
        return getParamFieldBuilder().addBuilder(
            index, com.google.devtools.build.docgen.builtin.BuiltinProtos.Param.getDefaultInstance());
      }
      /**
       * <code>repeated .builtin.Param param = 1;</code>
       */
      public java.util.List<com.google.devtools.build.docgen.builtin.BuiltinProtos.Param.Builder> 
           getParamBuilderList() {
        return getParamFieldBuilder().getBuilderList();
      }
      private com.google.protobuf.RepeatedFieldBuilderV3<
          com.google.devtools.build.docgen.builtin.BuiltinProtos.Param, com.google.devtools.build.docgen.builtin.BuiltinProtos.Param.Builder, com.google.devtools.build.docgen.builtin.BuiltinProtos.ParamOrBuilder> 
          getParamFieldBuilder() {
        if (paramBuilder_ == null) {
          paramBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
              com.google.devtools.build.docgen.builtin.BuiltinProtos.Param, com.google.devtools.build.docgen.builtin.BuiltinProtos.Param.Builder, com.google.devtools.build.docgen.builtin.BuiltinProtos.ParamOrBuilder>(
                  param_,
                  ((bitField0_ & 0x00000001) == 0x00000001),
                  getParentForChildren(),
                  isClean());
          param_ = null;
        }
        return paramBuilder_;
      }

      private java.lang.Object returnType_ = "";
      /**
       * <pre>
       * Name of the return type.
       * </pre>
       *
       * <code>string return_type = 2;</code>
       */
      public java.lang.String getReturnType() {
        java.lang.Object ref = returnType_;
        if (!(ref instanceof java.lang.String)) {
          com.google.protobuf.ByteString bs =
              (com.google.protobuf.ByteString) ref;
          java.lang.String s = bs.toStringUtf8();
          returnType_ = s;
          return s;
        } else {
          return (java.lang.String) ref;
        }
      }
      /**
       * <pre>
       * Name of the return type.
       * </pre>
       *
       * <code>string return_type = 2;</code>
       */
      public com.google.protobuf.ByteString
          getReturnTypeBytes() {
        java.lang.Object ref = returnType_;
        if (ref instanceof String) {
          com.google.protobuf.ByteString b = 
              com.google.protobuf.ByteString.copyFromUtf8(
                  (java.lang.String) ref);
          returnType_ = b;
          return b;
        } else {
          return (com.google.protobuf.ByteString) ref;
        }
      }
      /**
       * <pre>
       * Name of the return type.
       * </pre>
       *
       * <code>string return_type = 2;</code>
       */
      public Builder setReturnType(
          java.lang.String value) {
        if (value == null) {
    throw new NullPointerException();
  }
  
        returnType_ = value;
        onChanged();
        return this;
      }
      /**
       * <pre>
       * Name of the return type.
       * </pre>
       *
       * <code>string return_type = 2;</code>
       */
      public Builder clearReturnType() {
        
        returnType_ = getDefaultInstance().getReturnType();
        onChanged();
        return this;
      }
      /**
       * <pre>
       * Name of the return type.
       * </pre>
       *
       * <code>string return_type = 2;</code>
       */
      public Builder setReturnTypeBytes(
          com.google.protobuf.ByteString value) {
        if (value == null) {
    throw new NullPointerException();
  }
  checkByteStringIsUtf8(value);
        
        returnType_ = value;
        onChanged();
        return this;
      }
      @java.lang.Override
      public final Builder setUnknownFields(
          final com.google.protobuf.UnknownFieldSet unknownFields) {
        return super.setUnknownFieldsProto3(unknownFields);
      }

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


      // @@protoc_insertion_point(builder_scope:builtin.Callable)
    }

    // @@protoc_insertion_point(class_scope:builtin.Callable)
    private static final com.google.devtools.build.docgen.builtin.BuiltinProtos.Callable DEFAULT_INSTANCE;
    static {
      DEFAULT_INSTANCE = new com.google.devtools.build.docgen.builtin.BuiltinProtos.Callable();
    }

    public static com.google.devtools.build.docgen.builtin.BuiltinProtos.Callable getDefaultInstance() {
      return DEFAULT_INSTANCE;
    }

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

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

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

    @java.lang.Override
    public com.google.devtools.build.docgen.builtin.BuiltinProtos.Callable getDefaultInstanceForType() {
      return DEFAULT_INSTANCE;
    }

  }

  public interface ParamOrBuilder extends
      // @@protoc_insertion_point(interface_extends:builtin.Param)
      com.google.protobuf.MessageOrBuilder {

    /**
     * <code>string name = 1;</code>
     */
    java.lang.String getName();
    /**
     * <code>string name = 1;</code>
     */
    com.google.protobuf.ByteString
        getNameBytes();

    /**
     * <pre>
     * Parameter type represented as a name.
     * </pre>
     *
     * <code>string type = 2;</code>
     */
    java.lang.String getType();
    /**
     * <pre>
     * Parameter type represented as a name.
     * </pre>
     *
     * <code>string type = 2;</code>
     */
    com.google.protobuf.ByteString
        getTypeBytes();

    /**
     * <pre>
     * Parameter documentation.
     * </pre>
     *
     * <code>string doc = 3;</code>
     */
    java.lang.String getDoc();
    /**
     * <pre>
     * Parameter documentation.
     * </pre>
     *
     * <code>string doc = 3;</code>
     */
    com.google.protobuf.ByteString
        getDocBytes();

    /**
     * <pre>
     * Default value for the parameter, written as Skylark expression (e.g.
     * "False", "True", "[]", "None")
     * </pre>
     *
     * <code>string default_value = 4;</code>
     */
    java.lang.String getDefaultValue();
    /**
     * <pre>
     * Default value for the parameter, written as Skylark expression (e.g.
     * "False", "True", "[]", "None")
     * </pre>
     *
     * <code>string default_value = 4;</code>
     */
    com.google.protobuf.ByteString
        getDefaultValueBytes();

    /**
     * <pre>
     * Whether the param is mandatory or optional.
     * </pre>
     *
     * <code>bool is_mandatory = 5;</code>
     */
    boolean getIsMandatory();

    /**
     * <pre>
     * Whether the param is a star argument.
     * </pre>
     *
     * <code>bool is_star_arg = 6;</code>
     */
    boolean getIsStarArg();

    /**
     * <pre>
     * Whether the param is a star-star argument.
     * </pre>
     *
     * <code>bool is_star_star_arg = 7;</code>
     */
    boolean getIsStarStarArg();
  }
  /**
   * Protobuf type {@code builtin.Param}
   */
  public  static final class Param extends
      com.google.protobuf.GeneratedMessageV3 implements
      // @@protoc_insertion_point(message_implements:builtin.Param)
      ParamOrBuilder {
  private static final long serialVersionUID = 0L;
    // Use Param.newBuilder() to construct.
    private Param(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {
      super(builder);
    }
    private Param() {
      name_ = "";
      type_ = "";
      doc_ = "";
      defaultValue_ = "";
      isMandatory_ = false;
      isStarArg_ = false;
      isStarStarArg_ = false;
    }

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

              name_ = s;
              break;
            }
            case 18: {
              java.lang.String s = input.readStringRequireUtf8();

              type_ = s;
              break;
            }
            case 26: {
              java.lang.String s = input.readStringRequireUtf8();

              doc_ = s;
              break;
            }
            case 34: {
              java.lang.String s = input.readStringRequireUtf8();

              defaultValue_ = s;
              break;
            }
            case 40: {

              isMandatory_ = input.readBool();
              break;
            }
            case 48: {

              isStarArg_ = input.readBool();
              break;
            }
            case 56: {

              isStarStarArg_ = input.readBool();
              break;
            }
            default: {
              if (!parseUnknownFieldProto3(
                  input, unknownFields, extensionRegistry, tag)) {
                done = true;
              }
              break;
            }
          }
        }
      } catch (com.google.protobuf.InvalidProtocolBufferException e) {
        throw e.setUnfinishedMessage(this);
      } catch (java.io.IOException e) {
        throw new com.google.protobuf.InvalidProtocolBufferException(
            e).setUnfinishedMessage(this);
      } finally {
        this.unknownFields = unknownFields.build();
        makeExtensionsImmutable();
      }
    }
    public static final com.google.protobuf.Descriptors.Descriptor
        getDescriptor() {
      return com.google.devtools.build.docgen.builtin.BuiltinProtos.internal_static_builtin_Param_descriptor;
    }

    @java.lang.Override
    protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
        internalGetFieldAccessorTable() {
      return com.google.devtools.build.docgen.builtin.BuiltinProtos.internal_static_builtin_Param_fieldAccessorTable
          .ensureFieldAccessorsInitialized(
              com.google.devtools.build.docgen.builtin.BuiltinProtos.Param.class, com.google.devtools.build.docgen.builtin.BuiltinProtos.Param.Builder.class);
    }

    public static final int NAME_FIELD_NUMBER = 1;
    private volatile java.lang.Object name_;
    /**
     * <code>string name = 1;</code>
     */
    public java.lang.String getName() {
      java.lang.Object ref = name_;
      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();
        name_ = s;
        return s;
      }
    }
    /**
     * <code>string name = 1;</code>
     */
    public com.google.protobuf.ByteString
        getNameBytes() {
      java.lang.Object ref = name_;
      if (ref instanceof java.lang.String) {
        com.google.protobuf.ByteString b = 
            com.google.protobuf.ByteString.copyFromUtf8(
                (java.lang.String) ref);
        name_ = b;
        return b;
      } else {
        return (com.google.protobuf.ByteString) ref;
      }
    }

    public static final int TYPE_FIELD_NUMBER = 2;
    private volatile java.lang.Object type_;
    /**
     * <pre>
     * Parameter type represented as a name.
     * </pre>
     *
     * <code>string type = 2;</code>
     */
    public java.lang.String getType() {
      java.lang.Object ref = type_;
      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();
        type_ = s;
        return s;
      }
    }
    /**
     * <pre>
     * Parameter type represented as a name.
     * </pre>
     *
     * <code>string type = 2;</code>
     */
    public com.google.protobuf.ByteString
        getTypeBytes() {
      java.lang.Object ref = type_;
      if (ref instanceof java.lang.String) {
        com.google.protobuf.ByteString b = 
            com.google.protobuf.ByteString.copyFromUtf8(
                (java.lang.String) ref);
        type_ = b;
        return b;
      } else {
        return (com.google.protobuf.ByteString) ref;
      }
    }

    public static final int DOC_FIELD_NUMBER = 3;
    private volatile java.lang.Object doc_;
    /**
     * <pre>
     * Parameter documentation.
     * </pre>
     *
     * <code>string doc = 3;</code>
     */
    public java.lang.String getDoc() {
      java.lang.Object ref = doc_;
      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();
        doc_ = s;
        return s;
      }
    }
    /**
     * <pre>
     * Parameter documentation.
     * </pre>
     *
     * <code>string doc = 3;</code>
     */
    public com.google.protobuf.ByteString
        getDocBytes() {
      java.lang.Object ref = doc_;
      if (ref instanceof java.lang.String) {
        com.google.protobuf.ByteString b = 
            com.google.protobuf.ByteString.copyFromUtf8(
                (java.lang.String) ref);
        doc_ = b;
        return b;
      } else {
        return (com.google.protobuf.ByteString) ref;
      }
    }

    public static final int DEFAULT_VALUE_FIELD_NUMBER = 4;
    private volatile java.lang.Object defaultValue_;
    /**
     * <pre>
     * Default value for the parameter, written as Skylark expression (e.g.
     * "False", "True", "[]", "None")
     * </pre>
     *
     * <code>string default_value = 4;</code>
     */
    public java.lang.String getDefaultValue() {
      java.lang.Object ref = defaultValue_;
      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();
        defaultValue_ = s;
        return s;
      }
    }
    /**
     * <pre>
     * Default value for the parameter, written as Skylark expression (e.g.
     * "False", "True", "[]", "None")
     * </pre>
     *
     * <code>string default_value = 4;</code>
     */
    public com.google.protobuf.ByteString
        getDefaultValueBytes() {
      java.lang.Object ref = defaultValue_;
      if (ref instanceof java.lang.String) {
        com.google.protobuf.ByteString b = 
            com.google.protobuf.ByteString.copyFromUtf8(
                (java.lang.String) ref);
        defaultValue_ = b;
        return b;
      } else {
        return (com.google.protobuf.ByteString) ref;
      }
    }

    public static final int IS_MANDATORY_FIELD_NUMBER = 5;
    private boolean isMandatory_;
    /**
     * <pre>
     * Whether the param is mandatory or optional.
     * </pre>
     *
     * <code>bool is_mandatory = 5;</code>
     */
    public boolean getIsMandatory() {
      return isMandatory_;
    }

    public static final int IS_STAR_ARG_FIELD_NUMBER = 6;
    private boolean isStarArg_;
    /**
     * <pre>
     * Whether the param is a star argument.
     * </pre>
     *
     * <code>bool is_star_arg = 6;</code>
     */
    public boolean getIsStarArg() {
      return isStarArg_;
    }

    public static final int IS_STAR_STAR_ARG_FIELD_NUMBER = 7;
    private boolean isStarStarArg_;
    /**
     * <pre>
     * Whether the param is a star-star argument.
     * </pre>
     *
     * <code>bool is_star_star_arg = 7;</code>
     */
    public boolean getIsStarStarArg() {
      return isStarStarArg_;
    }

    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 (!getNameBytes().isEmpty()) {
        com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_);
      }
      if (!getTypeBytes().isEmpty()) {
        com.google.protobuf.GeneratedMessageV3.writeString(output, 2, type_);
      }
      if (!getDocBytes().isEmpty()) {
        com.google.protobuf.GeneratedMessageV3.writeString(output, 3, doc_);
      }
      if (!getDefaultValueBytes().isEmpty()) {
        com.google.protobuf.GeneratedMessageV3.writeString(output, 4, defaultValue_);
      }
      if (isMandatory_ != false) {
        output.writeBool(5, isMandatory_);
      }
      if (isStarArg_ != false) {
        output.writeBool(6, isStarArg_);
      }
      if (isStarStarArg_ != false) {
        output.writeBool(7, isStarStarArg_);
      }
      unknownFields.writeTo(output);
    }

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

      size = 0;
      if (!getNameBytes().isEmpty()) {
        size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_);
      }
      if (!getTypeBytes().isEmpty()) {
        size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, type_);
      }
      if (!getDocBytes().isEmpty()) {
        size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, doc_);
      }
      if (!getDefaultValueBytes().isEmpty()) {
        size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, defaultValue_);
      }
      if (isMandatory_ != false) {
        size += com.google.protobuf.CodedOutputStream
          .computeBoolSize(5, isMandatory_);
      }
      if (isStarArg_ != false) {
        size += com.google.protobuf.CodedOutputStream
          .computeBoolSize(6, isStarArg_);
      }
      if (isStarStarArg_ != false) {
        size += com.google.protobuf.CodedOutputStream
          .computeBoolSize(7, isStarStarArg_);
      }
      size += unknownFields.getSerializedSize();
      memoizedSize = size;
      return size;
    }

    @java.lang.Override
    public boolean equals(final java.lang.Object obj) {
      if (obj == this) {
       return true;
      }
      if (!(obj instanceof com.google.devtools.build.docgen.builtin.BuiltinProtos.Param)) {
        return super.equals(obj);
      }
      com.google.devtools.build.docgen.builtin.BuiltinProtos.Param other = (com.google.devtools.build.docgen.builtin.BuiltinProtos.Param) obj;

      boolean result = true;
      result = result && getName()
          .equals(other.getName());
      result = result && getType()
          .equals(other.getType());
      result = result && getDoc()
          .equals(other.getDoc());
      result = result && getDefaultValue()
          .equals(other.getDefaultValue());
      result = result && (getIsMandatory()
          == other.getIsMandatory());
      result = result && (getIsStarArg()
          == other.getIsStarArg());
      result = result && (getIsStarStarArg()
          == other.getIsStarStarArg());
      result = result && unknownFields.equals(other.unknownFields);
      return result;
    }

    @java.lang.Override
    public int hashCode() {
      if (memoizedHashCode != 0) {
        return memoizedHashCode;
      }
      int hash = 41;
      hash = (19 * hash) + getDescriptor().hashCode();
      hash = (37 * hash) + NAME_FIELD_NUMBER;
      hash = (53 * hash) + getName().hashCode();
      hash = (37 * hash) + TYPE_FIELD_NUMBER;
      hash = (53 * hash) + getType().hashCode();
      hash = (37 * hash) + DOC_FIELD_NUMBER;
      hash = (53 * hash) + getDoc().hashCode();
      hash = (37 * hash) + DEFAULT_VALUE_FIELD_NUMBER;
      hash = (53 * hash) + getDefaultValue().hashCode();
      hash = (37 * hash) + IS_MANDATORY_FIELD_NUMBER;
      hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
          getIsMandatory());
      hash = (37 * hash) + IS_STAR_ARG_FIELD_NUMBER;
      hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
          getIsStarArg());
      hash = (37 * hash) + IS_STAR_STAR_ARG_FIELD_NUMBER;
      hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
          getIsStarStarArg());
      hash = (29 * hash) + unknownFields.hashCode();
      memoizedHashCode = hash;
      return hash;
    }

    public static com.google.devtools.build.docgen.builtin.BuiltinProtos.Param parseFrom(
        java.nio.ByteBuffer data)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data);
    }
    public static com.google.devtools.build.docgen.builtin.BuiltinProtos.Param parseFrom(
        java.nio.ByteBuffer data,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data, extensionRegistry);
    }
    public static com.google.devtools.build.docgen.builtin.BuiltinProtos.Param parseFrom(
        com.google.protobuf.ByteString data)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data);
    }
    public static com.google.devtools.build.docgen.builtin.BuiltinProtos.Param 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.devtools.build.docgen.builtin.BuiltinProtos.Param parseFrom(byte[] data)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data);
    }
    public static com.google.devtools.build.docgen.builtin.BuiltinProtos.Param parseFrom(
        byte[] data,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data, extensionRegistry);
    }
    public static com.google.devtools.build.docgen.builtin.BuiltinProtos.Param parseFrom(java.io.InputStream input)
        throws java.io.IOException {
      return com.google.protobuf.GeneratedMessageV3
          .parseWithIOException(PARSER, input);
    }
    public static com.google.devtools.build.docgen.builtin.BuiltinProtos.Param 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.devtools.build.docgen.builtin.BuiltinProtos.Param parseDelimitedFrom(java.io.InputStream input)
        throws java.io.IOException {
      return com.google.protobuf.GeneratedMessageV3
          .parseDelimitedWithIOException(PARSER, input);
    }
    public static com.google.devtools.build.docgen.builtin.BuiltinProtos.Param 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.devtools.build.docgen.builtin.BuiltinProtos.Param parseFrom(
        com.google.protobuf.CodedInputStream input)
        throws java.io.IOException {
      return com.google.protobuf.GeneratedMessageV3
          .parseWithIOException(PARSER, input);
    }
    public static com.google.devtools.build.docgen.builtin.BuiltinProtos.Param 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.devtools.build.docgen.builtin.BuiltinProtos.Param 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;
    }
    /**
     * Protobuf type {@code builtin.Param}
     */
    public static final class Builder extends
        com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements
        // @@protoc_insertion_point(builder_implements:builtin.Param)
        com.google.devtools.build.docgen.builtin.BuiltinProtos.ParamOrBuilder {
      public static final com.google.protobuf.Descriptors.Descriptor
          getDescriptor() {
        return com.google.devtools.build.docgen.builtin.BuiltinProtos.internal_static_builtin_Param_descriptor;
      }

      @java.lang.Override
      protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
          internalGetFieldAccessorTable() {
        return com.google.devtools.build.docgen.builtin.BuiltinProtos.internal_static_builtin_Param_fieldAccessorTable
            .ensureFieldAccessorsInitialized(
                com.google.devtools.build.docgen.builtin.BuiltinProtos.Param.class, com.google.devtools.build.docgen.builtin.BuiltinProtos.Param.Builder.class);
      }

      // Construct using com.google.devtools.build.docgen.builtin.BuiltinProtos.Param.newBuilder()
      private Builder() {
        maybeForceBuilderInitialization();
      }

      private Builder(
          com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
        super(parent);
        maybeForceBuilderInitialization();
      }
      private void maybeForceBuilderInitialization() {
        if (com.google.protobuf.GeneratedMessageV3
                .alwaysUseFieldBuilders) {
        }
      }
      @java.lang.Override
      public Builder clear() {
        super.clear();
        name_ = "";

        type_ = "";

        doc_ = "";

        defaultValue_ = "";

        isMandatory_ = false;

        isStarArg_ = false;

        isStarStarArg_ = false;

        return this;
      }

      @java.lang.Override
      public com.google.protobuf.Descriptors.Descriptor
          getDescriptorForType() {
        return com.google.devtools.build.docgen.builtin.BuiltinProtos.internal_static_builtin_Param_descriptor;
      }

      @java.lang.Override
      public com.google.devtools.build.docgen.builtin.BuiltinProtos.Param getDefaultInstanceForType() {
        return com.google.devtools.build.docgen.builtin.BuiltinProtos.Param.getDefaultInstance();
      }

      @java.lang.Override
      public com.google.devtools.build.docgen.builtin.BuiltinProtos.Param build() {
        com.google.devtools.build.docgen.builtin.BuiltinProtos.Param result = buildPartial();
        if (!result.isInitialized()) {
          throw newUninitializedMessageException(result);
        }
        return result;
      }

      @java.lang.Override
      public com.google.devtools.build.docgen.builtin.BuiltinProtos.Param buildPartial() {
        com.google.devtools.build.docgen.builtin.BuiltinProtos.Param result = new com.google.devtools.build.docgen.builtin.BuiltinProtos.Param(this);
        result.name_ = name_;
        result.type_ = type_;
        result.doc_ = doc_;
        result.defaultValue_ = defaultValue_;
        result.isMandatory_ = isMandatory_;
        result.isStarArg_ = isStarArg_;
        result.isStarStarArg_ = isStarStarArg_;
        onBuilt();
        return result;
      }

      @java.lang.Override
      public Builder clone() {
        return (Builder) super.clone();
      }
      @java.lang.Override
      public Builder setField(
          com.google.protobuf.Descriptors.FieldDescriptor field,
          java.lang.Object value) {
        return (Builder) super.setField(field, value);
      }
      @java.lang.Override
      public Builder clearField(
          com.google.protobuf.Descriptors.FieldDescriptor field) {
        return (Builder) super.clearField(field);
      }
      @java.lang.Override
      public Builder clearOneof(
          com.google.protobuf.Descriptors.OneofDescriptor oneof) {
        return (Builder) super.clearOneof(oneof);
      }
      @java.lang.Override
      public Builder setRepeatedField(
          com.google.protobuf.Descriptors.FieldDescriptor field,
          int index, java.lang.Object value) {
        return (Builder) super.setRepeatedField(field, index, value);
      }
      @java.lang.Override
      public Builder addRepeatedField(
          com.google.protobuf.Descriptors.FieldDescriptor field,
          java.lang.Object value) {
        return (Builder) super.addRepeatedField(field, value);
      }
      @java.lang.Override
      public Builder mergeFrom(com.google.protobuf.Message other) {
        if (other instanceof com.google.devtools.build.docgen.builtin.BuiltinProtos.Param) {
          return mergeFrom((com.google.devtools.build.docgen.builtin.BuiltinProtos.Param)other);
        } else {
          super.mergeFrom(other);
          return this;
        }
      }

      public Builder mergeFrom(com.google.devtools.build.docgen.builtin.BuiltinProtos.Param other) {
        if (other == com.google.devtools.build.docgen.builtin.BuiltinProtos.Param.getDefaultInstance()) return this;
        if (!other.getName().isEmpty()) {
          name_ = other.name_;
          onChanged();
        }
        if (!other.getType().isEmpty()) {
          type_ = other.type_;
          onChanged();
        }
        if (!other.getDoc().isEmpty()) {
          doc_ = other.doc_;
          onChanged();
        }
        if (!other.getDefaultValue().isEmpty()) {
          defaultValue_ = other.defaultValue_;
          onChanged();
        }
        if (other.getIsMandatory() != false) {
          setIsMandatory(other.getIsMandatory());
        }
        if (other.getIsStarArg() != false) {
          setIsStarArg(other.getIsStarArg());
        }
        if (other.getIsStarStarArg() != false) {
          setIsStarStarArg(other.getIsStarStarArg());
        }
        this.mergeUnknownFields(other.unknownFields);
        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 {
        com.google.devtools.build.docgen.builtin.BuiltinProtos.Param parsedMessage = null;
        try {
          parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
        } catch (com.google.protobuf.InvalidProtocolBufferException e) {
          parsedMessage = (com.google.devtools.build.docgen.builtin.BuiltinProtos.Param) e.getUnfinishedMessage();
          throw e.unwrapIOException();
        } finally {
          if (parsedMessage != null) {
            mergeFrom(parsedMessage);
          }
        }
        return this;
      }

      private java.lang.Object name_ = "";
      /**
       * <code>string name = 1;</code>
       */
      public java.lang.String getName() {
        java.lang.Object ref = name_;
        if (!(ref instanceof java.lang.String)) {
          com.google.protobuf.ByteString bs =
              (com.google.protobuf.ByteString) ref;
          java.lang.String s = bs.toStringUtf8();
          name_ = s;
          return s;
        } else {
          return (java.lang.String) ref;
        }
      }
      /**
       * <code>string name = 1;</code>
       */
      public com.google.protobuf.ByteString
          getNameBytes() {
        java.lang.Object ref = name_;
        if (ref instanceof String) {
          com.google.protobuf.ByteString b = 
              com.google.protobuf.ByteString.copyFromUtf8(
                  (java.lang.String) ref);
          name_ = b;
          return b;
        } else {
          return (com.google.protobuf.ByteString) ref;
        }
      }
      /**
       * <code>string name = 1;</code>
       */
      public Builder setName(
          java.lang.String value) {
        if (value == null) {
    throw new NullPointerException();
  }
  
        name_ = value;
        onChanged();
        return this;
      }
      /**
       * <code>string name = 1;</code>
       */
      public Builder clearName() {
        
        name_ = getDefaultInstance().getName();
        onChanged();
        return this;
      }
      /**
       * <code>string name = 1;</code>
       */
      public Builder setNameBytes(
          com.google.protobuf.ByteString value) {
        if (value == null) {
    throw new NullPointerException();
  }
  checkByteStringIsUtf8(value);
        
        name_ = value;
        onChanged();
        return this;
      }

      private java.lang.Object type_ = "";
      /**
       * <pre>
       * Parameter type represented as a name.
       * </pre>
       *
       * <code>string type = 2;</code>
       */
      public java.lang.String getType() {
        java.lang.Object ref = type_;
        if (!(ref instanceof java.lang.String)) {
          com.google.protobuf.ByteString bs =
              (com.google.protobuf.ByteString) ref;
          java.lang.String s = bs.toStringUtf8();
          type_ = s;
          return s;
        } else {
          return (java.lang.String) ref;
        }
      }
      /**
       * <pre>
       * Parameter type represented as a name.
       * </pre>
       *
       * <code>string type = 2;</code>
       */
      public com.google.protobuf.ByteString
          getTypeBytes() {
        java.lang.Object ref = type_;
        if (ref instanceof String) {
          com.google.protobuf.ByteString b = 
              com.google.protobuf.ByteString.copyFromUtf8(
                  (java.lang.String) ref);
          type_ = b;
          return b;
        } else {
          return (com.google.protobuf.ByteString) ref;
        }
      }
      /**
       * <pre>
       * Parameter type represented as a name.
       * </pre>
       *
       * <code>string type = 2;</code>
       */
      public Builder setType(
          java.lang.String value) {
        if (value == null) {
    throw new NullPointerException();
  }
  
        type_ = value;
        onChanged();
        return this;
      }
      /**
       * <pre>
       * Parameter type represented as a name.
       * </pre>
       *
       * <code>string type = 2;</code>
       */
      public Builder clearType() {
        
        type_ = getDefaultInstance().getType();
        onChanged();
        return this;
      }
      /**
       * <pre>
       * Parameter type represented as a name.
       * </pre>
       *
       * <code>string type = 2;</code>
       */
      public Builder setTypeBytes(
          com.google.protobuf.ByteString value) {
        if (value == null) {
    throw new NullPointerException();
  }
  checkByteStringIsUtf8(value);
        
        type_ = value;
        onChanged();
        return this;
      }

      private java.lang.Object doc_ = "";
      /**
       * <pre>
       * Parameter documentation.
       * </pre>
       *
       * <code>string doc = 3;</code>
       */
      public java.lang.String getDoc() {
        java.lang.Object ref = doc_;
        if (!(ref instanceof java.lang.String)) {
          com.google.protobuf.ByteString bs =
              (com.google.protobuf.ByteString) ref;
          java.lang.String s = bs.toStringUtf8();
          doc_ = s;
          return s;
        } else {
          return (java.lang.String) ref;
        }
      }
      /**
       * <pre>
       * Parameter documentation.
       * </pre>
       *
       * <code>string doc = 3;</code>
       */
      public com.google.protobuf.ByteString
          getDocBytes() {
        java.lang.Object ref = doc_;
        if (ref instanceof String) {
          com.google.protobuf.ByteString b = 
              com.google.protobuf.ByteString.copyFromUtf8(
                  (java.lang.String) ref);
          doc_ = b;
          return b;
        } else {
          return (com.google.protobuf.ByteString) ref;
        }
      }
      /**
       * <pre>
       * Parameter documentation.
       * </pre>
       *
       * <code>string doc = 3;</code>
       */
      public Builder setDoc(
          java.lang.String value) {
        if (value == null) {
    throw new NullPointerException();
  }
  
        doc_ = value;
        onChanged();
        return this;
      }
      /**
       * <pre>
       * Parameter documentation.
       * </pre>
       *
       * <code>string doc = 3;</code>
       */
      public Builder clearDoc() {
        
        doc_ = getDefaultInstance().getDoc();
        onChanged();
        return this;
      }
      /**
       * <pre>
       * Parameter documentation.
       * </pre>
       *
       * <code>string doc = 3;</code>
       */
      public Builder setDocBytes(
          com.google.protobuf.ByteString value) {
        if (value == null) {
    throw new NullPointerException();
  }
  checkByteStringIsUtf8(value);
        
        doc_ = value;
        onChanged();
        return this;
      }

      private java.lang.Object defaultValue_ = "";
      /**
       * <pre>
       * Default value for the parameter, written as Skylark expression (e.g.
       * "False", "True", "[]", "None")
       * </pre>
       *
       * <code>string default_value = 4;</code>
       */
      public java.lang.String getDefaultValue() {
        java.lang.Object ref = defaultValue_;
        if (!(ref instanceof java.lang.String)) {
          com.google.protobuf.ByteString bs =
              (com.google.protobuf.ByteString) ref;
          java.lang.String s = bs.toStringUtf8();
          defaultValue_ = s;
          return s;
        } else {
          return (java.lang.String) ref;
        }
      }
      /**
       * <pre>
       * Default value for the parameter, written as Skylark expression (e.g.
       * "False", "True", "[]", "None")
       * </pre>
       *
       * <code>string default_value = 4;</code>
       */
      public com.google.protobuf.ByteString
          getDefaultValueBytes() {
        java.lang.Object ref = defaultValue_;
        if (ref instanceof String) {
          com.google.protobuf.ByteString b = 
              com.google.protobuf.ByteString.copyFromUtf8(
                  (java.lang.String) ref);
          defaultValue_ = b;
          return b;
        } else {
          return (com.google.protobuf.ByteString) ref;
        }
      }
      /**
       * <pre>
       * Default value for the parameter, written as Skylark expression (e.g.
       * "False", "True", "[]", "None")
       * </pre>
       *
       * <code>string default_value = 4;</code>
       */
      public Builder setDefaultValue(
          java.lang.String value) {
        if (value == null) {
    throw new NullPointerException();
  }
  
        defaultValue_ = value;
        onChanged();
        return this;
      }
      /**
       * <pre>
       * Default value for the parameter, written as Skylark expression (e.g.
       * "False", "True", "[]", "None")
       * </pre>
       *
       * <code>string default_value = 4;</code>
       */
      public Builder clearDefaultValue() {
        
        defaultValue_ = getDefaultInstance().getDefaultValue();
        onChanged();
        return this;
      }
      /**
       * <pre>
       * Default value for the parameter, written as Skylark expression (e.g.
       * "False", "True", "[]", "None")
       * </pre>
       *
       * <code>string default_value = 4;</code>
       */
      public Builder setDefaultValueBytes(
          com.google.protobuf.ByteString value) {
        if (value == null) {
    throw new NullPointerException();
  }
  checkByteStringIsUtf8(value);
        
        defaultValue_ = value;
        onChanged();
        return this;
      }

      private boolean isMandatory_ ;
      /**
       * <pre>
       * Whether the param is mandatory or optional.
       * </pre>
       *
       * <code>bool is_mandatory = 5;</code>
       */
      public boolean getIsMandatory() {
        return isMandatory_;
      }
      /**
       * <pre>
       * Whether the param is mandatory or optional.
       * </pre>
       *
       * <code>bool is_mandatory = 5;</code>
       */
      public Builder setIsMandatory(boolean value) {
        
        isMandatory_ = value;
        onChanged();
        return this;
      }
      /**
       * <pre>
       * Whether the param is mandatory or optional.
       * </pre>
       *
       * <code>bool is_mandatory = 5;</code>
       */
      public Builder clearIsMandatory() {
        
        isMandatory_ = false;
        onChanged();
        return this;
      }

      private boolean isStarArg_ ;
      /**
       * <pre>
       * Whether the param is a star argument.
       * </pre>
       *
       * <code>bool is_star_arg = 6;</code>
       */
      public boolean getIsStarArg() {
        return isStarArg_;
      }
      /**
       * <pre>
       * Whether the param is a star argument.
       * </pre>
       *
       * <code>bool is_star_arg = 6;</code>
       */
      public Builder setIsStarArg(boolean value) {
        
        isStarArg_ = value;
        onChanged();
        return this;
      }
      /**
       * <pre>
       * Whether the param is a star argument.
       * </pre>
       *
       * <code>bool is_star_arg = 6;</code>
       */
      public Builder clearIsStarArg() {
        
        isStarArg_ = false;
        onChanged();
        return this;
      }

      private boolean isStarStarArg_ ;
      /**
       * <pre>
       * Whether the param is a star-star argument.
       * </pre>
       *
       * <code>bool is_star_star_arg = 7;</code>
       */
      public boolean getIsStarStarArg() {
        return isStarStarArg_;
      }
      /**
       * <pre>
       * Whether the param is a star-star argument.
       * </pre>
       *
       * <code>bool is_star_star_arg = 7;</code>
       */
      public Builder setIsStarStarArg(boolean value) {
        
        isStarStarArg_ = value;
        onChanged();
        return this;
      }
      /**
       * <pre>
       * Whether the param is a star-star argument.
       * </pre>
       *
       * <code>bool is_star_star_arg = 7;</code>
       */
      public Builder clearIsStarStarArg() {
        
        isStarStarArg_ = false;
        onChanged();
        return this;
      }
      @java.lang.Override
      public final Builder setUnknownFields(
          final com.google.protobuf.UnknownFieldSet unknownFields) {
        return super.setUnknownFieldsProto3(unknownFields);
      }

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


      // @@protoc_insertion_point(builder_scope:builtin.Param)
    }

    // @@protoc_insertion_point(class_scope:builtin.Param)
    private static final com.google.devtools.build.docgen.builtin.BuiltinProtos.Param DEFAULT_INSTANCE;
    static {
      DEFAULT_INSTANCE = new com.google.devtools.build.docgen.builtin.BuiltinProtos.Param();
    }

    public static com.google.devtools.build.docgen.builtin.BuiltinProtos.Param getDefaultInstance() {
      return DEFAULT_INSTANCE;
    }

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

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

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

    @java.lang.Override
    public com.google.devtools.build.docgen.builtin.BuiltinProtos.Param getDefaultInstanceForType() {
      return DEFAULT_INSTANCE;
    }

  }

  private static final com.google.protobuf.Descriptors.Descriptor
    internal_static_builtin_Builtins_descriptor;
  private static final 
    com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
      internal_static_builtin_Builtins_fieldAccessorTable;
  private static final com.google.protobuf.Descriptors.Descriptor
    internal_static_builtin_Type_descriptor;
  private static final 
    com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
      internal_static_builtin_Type_fieldAccessorTable;
  private static final com.google.protobuf.Descriptors.Descriptor
    internal_static_builtin_Value_descriptor;
  private static final 
    com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
      internal_static_builtin_Value_fieldAccessorTable;
  private static final com.google.protobuf.Descriptors.Descriptor
    internal_static_builtin_Callable_descriptor;
  private static final 
    com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
      internal_static_builtin_Callable_fieldAccessorTable;
  private static final com.google.protobuf.Descriptors.Descriptor
    internal_static_builtin_Param_descriptor;
  private static final 
    com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
      internal_static_builtin_Param_fieldAccessorTable;

  public static com.google.protobuf.Descriptors.FileDescriptor
      getDescriptor() {
    return descriptor;
  }
  private static  com.google.protobuf.Descriptors.FileDescriptor
      descriptor;
  static {
    java.lang.String[] descriptorData = {
      "\n\037src/main/protobuf/builtin.proto\022\007built" +
      "in\"G\n\010Builtins\022\033\n\004type\030\001 \003(\0132\r.builtin.T" +
      "ype\022\036\n\006global\030\002 \003(\0132\016.builtin.Value\"@\n\004T" +
      "ype\022\014\n\004name\030\001 \001(\t\022\035\n\005field\030\002 \003(\0132\016.built" +
      "in.Value\022\013\n\003doc\030\003 \001(\t\"\177\n\005Value\022\014\n\004name\030\001" +
      " \001(\t\022\014\n\004type\030\002 \001(\t\022#\n\010callable\030\003 \001(\0132\021.b" +
      "uiltin.Callable\022\013\n\003doc\030\004 \001(\t\022(\n\013api_cont" +
      "ext\030\005 \001(\0162\023.builtin.ApiContext\">\n\010Callab" +
      "le\022\035\n\005param\030\001 \003(\0132\016.builtin.Param\022\023\n\013ret" +
      "urn_type\030\002 \001(\t\"\214\001\n\005Param\022\014\n\004name\030\001 \001(\t\022\014" +
      "\n\004type\030\002 \001(\t\022\013\n\003doc\030\003 \001(\t\022\025\n\rdefault_val" +
      "ue\030\004 \001(\t\022\024\n\014is_mandatory\030\005 \001(\010\022\023\n\013is_sta" +
      "r_arg\030\006 \001(\010\022\030\n\020is_star_star_arg\030\007 \001(\010*)\n" +
      "\nApiContext\022\007\n\003ALL\020\000\022\007\n\003BZL\020\001\022\t\n\005BUILD\020\002" +
      "B9\n(com.google.devtools.build.docgen.bui" +
      "ltinB\rBuiltinProtosb\006proto3"
    };
    com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner =
        new com.google.protobuf.Descriptors.FileDescriptor.    InternalDescriptorAssigner() {
          public com.google.protobuf.ExtensionRegistry assignDescriptors(
              com.google.protobuf.Descriptors.FileDescriptor root) {
            descriptor = root;
            return null;
          }
        };
    com.google.protobuf.Descriptors.FileDescriptor
      .internalBuildGeneratedFileFrom(descriptorData,
        new com.google.protobuf.Descriptors.FileDescriptor[] {
        }, assigner);
    internal_static_builtin_Builtins_descriptor =
      getDescriptor().getMessageTypes().get(0);
    internal_static_builtin_Builtins_fieldAccessorTable = new
      com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
        internal_static_builtin_Builtins_descriptor,
        new java.lang.String[] { "Type", "Global", });
    internal_static_builtin_Type_descriptor =
      getDescriptor().getMessageTypes().get(1);
    internal_static_builtin_Type_fieldAccessorTable = new
      com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
        internal_static_builtin_Type_descriptor,
        new java.lang.String[] { "Name", "Field", "Doc", });
    internal_static_builtin_Value_descriptor =
      getDescriptor().getMessageTypes().get(2);
    internal_static_builtin_Value_fieldAccessorTable = new
      com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
        internal_static_builtin_Value_descriptor,
        new java.lang.String[] { "Name", "Type", "Callable", "Doc", "ApiContext", });
    internal_static_builtin_Callable_descriptor =
      getDescriptor().getMessageTypes().get(3);
    internal_static_builtin_Callable_fieldAccessorTable = new
      com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
        internal_static_builtin_Callable_descriptor,
        new java.lang.String[] { "Param", "ReturnType", });
    internal_static_builtin_Param_descriptor =
      getDescriptor().getMessageTypes().get(4);
    internal_static_builtin_Param_fieldAccessorTable = new
      com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
        internal_static_builtin_Param_descriptor,
        new java.lang.String[] { "Name", "Type", "Doc", "DefaultValue", "IsMandatory", "IsStarArg", "IsStarStarArg", });
  }

  // @@protoc_insertion_point(outer_class_scope)
}
