All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos Maven / Gradle / Ivy

Go to download

An implementation of the Build Server Protocol for Bazel. Allows clients such as IntelliJ to obtain build specific information in order to improve the experience of users in the IDE.

There is a newer version: 3.2.0-20241118-a099775e0-NIGHTLY
Show newest version
// Generated by the protocol buffer compiler.  DO NOT EDIT!
// NO CHECKED-IN PROTOBUF GENCODE
// source: server/server/src/main/kotlin/org/jetbrains/bsp/bazel/server/sync/proto/stardoc_output.proto
// Protobuf Java Version: 4.28.3

package com.google.devtools.build.lib.starlarkdocextract;

public final class StardocOutputProtos {
  private StardocOutputProtos() {}
  static {
    com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion(
      com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC,
      /* major= */ 4,
      /* minor= */ 28,
      /* patch= */ 3,
      /* suffix= */ "",
      StardocOutputProtos.class.getName());
  }
  public static void registerAllExtensions(
      com.google.protobuf.ExtensionRegistryLite registry) {
  }

  public static void registerAllExtensions(
      com.google.protobuf.ExtensionRegistry registry) {
    registerAllExtensions(
        (com.google.protobuf.ExtensionRegistryLite) registry);
  }
  /**
   * 
   * Representation of a Starlark rule attribute type. These generally
   * have a one-to-one correspondence with functions defined at
   * https://bazel.build/rules/lib/attr.
   * 
* * Protobuf enum {@code stardoc_output.AttributeType} */ public enum AttributeType implements com.google.protobuf.ProtocolMessageEnum { /** * UNKNOWN = 0; */ UNKNOWN(0), /** *
     * A special case of STRING; all rules have exactly one implicit
     * attribute "name" of type NAME.
     * 
* * NAME = 1; */ NAME(1), /** * INT = 2; */ INT(2), /** * LABEL = 3; */ LABEL(3), /** * STRING = 4; */ STRING(4), /** * STRING_LIST = 5; */ STRING_LIST(5), /** * INT_LIST = 6; */ INT_LIST(6), /** * LABEL_LIST = 7; */ LABEL_LIST(7), /** * BOOLEAN = 8; */ BOOLEAN(8), /** * LABEL_STRING_DICT = 9; */ LABEL_STRING_DICT(9), /** * STRING_DICT = 10; */ STRING_DICT(10), /** * STRING_LIST_DICT = 11; */ STRING_LIST_DICT(11), /** * OUTPUT = 12; */ OUTPUT(12), /** * OUTPUT_LIST = 13; */ OUTPUT_LIST(13), /** * LABEL_DICT_UNARY = 14; */ LABEL_DICT_UNARY(14), UNRECOGNIZED(-1), ; static { com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, /* major= */ 4, /* minor= */ 28, /* patch= */ 3, /* suffix= */ "", AttributeType.class.getName()); } /** * UNKNOWN = 0; */ public static final int UNKNOWN_VALUE = 0; /** *
     * A special case of STRING; all rules have exactly one implicit
     * attribute "name" of type NAME.
     * 
* * NAME = 1; */ public static final int NAME_VALUE = 1; /** * INT = 2; */ public static final int INT_VALUE = 2; /** * LABEL = 3; */ public static final int LABEL_VALUE = 3; /** * STRING = 4; */ public static final int STRING_VALUE = 4; /** * STRING_LIST = 5; */ public static final int STRING_LIST_VALUE = 5; /** * INT_LIST = 6; */ public static final int INT_LIST_VALUE = 6; /** * LABEL_LIST = 7; */ public static final int LABEL_LIST_VALUE = 7; /** * BOOLEAN = 8; */ public static final int BOOLEAN_VALUE = 8; /** * LABEL_STRING_DICT = 9; */ public static final int LABEL_STRING_DICT_VALUE = 9; /** * STRING_DICT = 10; */ public static final int STRING_DICT_VALUE = 10; /** * STRING_LIST_DICT = 11; */ public static final int STRING_LIST_DICT_VALUE = 11; /** * OUTPUT = 12; */ public static final int OUTPUT_VALUE = 12; /** * OUTPUT_LIST = 13; */ public static final int OUTPUT_LIST_VALUE = 13; /** * LABEL_DICT_UNARY = 14; */ public static final int LABEL_DICT_UNARY_VALUE = 14; public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( "Can't get the number of an unknown enum value."); } return value; } /** * @param value The numeric wire value of the corresponding enum entry. * @return The enum associated with the given numeric wire value. * @deprecated Use {@link #forNumber(int)} instead. */ @java.lang.Deprecated public static AttributeType valueOf(int value) { return forNumber(value); } /** * @param value The numeric wire value of the corresponding enum entry. * @return The enum associated with the given numeric wire value. */ public static AttributeType forNumber(int value) { switch (value) { case 0: return UNKNOWN; case 1: return NAME; case 2: return INT; case 3: return LABEL; case 4: return STRING; case 5: return STRING_LIST; case 6: return INT_LIST; case 7: return LABEL_LIST; case 8: return BOOLEAN; case 9: return LABEL_STRING_DICT; case 10: return STRING_DICT; case 11: return STRING_LIST_DICT; case 12: return OUTPUT; case 13: return OUTPUT_LIST; case 14: return LABEL_DICT_UNARY; default: return null; } } public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { return internalValueMap; } private static final com.google.protobuf.Internal.EnumLiteMap< AttributeType> internalValueMap = new com.google.protobuf.Internal.EnumLiteMap() { public AttributeType findValueByNumber(int number) { return AttributeType.forNumber(number); } }; public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalStateException( "Can't get the descriptor of an unrecognized enum value."); } 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.lib.starlarkdocextract.StardocOutputProtos.getDescriptor().getEnumTypes().get(0); } private static final AttributeType[] VALUES = values(); public static AttributeType 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 AttributeType(int value) { this.value = value; } // @@protoc_insertion_point(enum_scope:stardoc_output.AttributeType) } /** *
   * Representation of the syntactic role of a given function parameter.
   * 
* * Protobuf enum {@code stardoc_output.FunctionParamRole} */ public enum FunctionParamRole implements com.google.protobuf.ProtocolMessageEnum { /** * PARAM_ROLE_UNSPECIFIED = 0; */ PARAM_ROLE_UNSPECIFIED(0), /** *
     * An ordinary parameter which may be used as a positional or by keyword.
     * 
* * PARAM_ROLE_ORDINARY = 1; */ PARAM_ROLE_ORDINARY(1), /** *
     * A positional-only parameter; such parameters cannot be defined in pure
     * Starlark code, but exist in some natively-defined functions.
     * 
* * PARAM_ROLE_POSITIONAL_ONLY = 2; */ PARAM_ROLE_POSITIONAL_ONLY(2), /** *
     * A keyword-only parameter, i.e. a non-vararg/kwarg parameter that follows
     * `*` or `*args` in the function's declaration.
     * 
* * PARAM_ROLE_KEYWORD_ONLY = 3; */ PARAM_ROLE_KEYWORD_ONLY(3), /** *
     * Residual varargs, typically `*args` in the function's declaration.
     * 
* * PARAM_ROLE_VARARGS = 4; */ PARAM_ROLE_VARARGS(4), /** *
     * Residual keyword arguments, typically `**kwargs` in the function's
     * declaration.
     * 
* * PARAM_ROLE_KWARGS = 5; */ PARAM_ROLE_KWARGS(5), UNRECOGNIZED(-1), ; static { com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, /* major= */ 4, /* minor= */ 28, /* patch= */ 3, /* suffix= */ "", FunctionParamRole.class.getName()); } /** * PARAM_ROLE_UNSPECIFIED = 0; */ public static final int PARAM_ROLE_UNSPECIFIED_VALUE = 0; /** *
     * An ordinary parameter which may be used as a positional or by keyword.
     * 
* * PARAM_ROLE_ORDINARY = 1; */ public static final int PARAM_ROLE_ORDINARY_VALUE = 1; /** *
     * A positional-only parameter; such parameters cannot be defined in pure
     * Starlark code, but exist in some natively-defined functions.
     * 
* * PARAM_ROLE_POSITIONAL_ONLY = 2; */ public static final int PARAM_ROLE_POSITIONAL_ONLY_VALUE = 2; /** *
     * A keyword-only parameter, i.e. a non-vararg/kwarg parameter that follows
     * `*` or `*args` in the function's declaration.
     * 
* * PARAM_ROLE_KEYWORD_ONLY = 3; */ public static final int PARAM_ROLE_KEYWORD_ONLY_VALUE = 3; /** *
     * Residual varargs, typically `*args` in the function's declaration.
     * 
* * PARAM_ROLE_VARARGS = 4; */ public static final int PARAM_ROLE_VARARGS_VALUE = 4; /** *
     * Residual keyword arguments, typically `**kwargs` in the function's
     * declaration.
     * 
* * PARAM_ROLE_KWARGS = 5; */ public static final int PARAM_ROLE_KWARGS_VALUE = 5; public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( "Can't get the number of an unknown enum value."); } return value; } /** * @param value The numeric wire value of the corresponding enum entry. * @return The enum associated with the given numeric wire value. * @deprecated Use {@link #forNumber(int)} instead. */ @java.lang.Deprecated public static FunctionParamRole valueOf(int value) { return forNumber(value); } /** * @param value The numeric wire value of the corresponding enum entry. * @return The enum associated with the given numeric wire value. */ public static FunctionParamRole forNumber(int value) { switch (value) { case 0: return PARAM_ROLE_UNSPECIFIED; case 1: return PARAM_ROLE_ORDINARY; case 2: return PARAM_ROLE_POSITIONAL_ONLY; case 3: return PARAM_ROLE_KEYWORD_ONLY; case 4: return PARAM_ROLE_VARARGS; case 5: return PARAM_ROLE_KWARGS; default: return null; } } public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { return internalValueMap; } private static final com.google.protobuf.Internal.EnumLiteMap< FunctionParamRole> internalValueMap = new com.google.protobuf.Internal.EnumLiteMap() { public FunctionParamRole findValueByNumber(int number) { return FunctionParamRole.forNumber(number); } }; public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalStateException( "Can't get the descriptor of an unrecognized enum value."); } 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.lib.starlarkdocextract.StardocOutputProtos.getDescriptor().getEnumTypes().get(1); } private static final FunctionParamRole[] VALUES = values(); public static FunctionParamRole 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 FunctionParamRole(int value) { this.value = value; } // @@protoc_insertion_point(enum_scope:stardoc_output.FunctionParamRole) } public interface ModuleInfoOrBuilder extends // @@protoc_insertion_point(interface_extends:stardoc_output.ModuleInfo) com.google.protobuf.MessageOrBuilder { /** * repeated .stardoc_output.RuleInfo rule_info = 1; */ java.util.List getRuleInfoList(); /** * repeated .stardoc_output.RuleInfo rule_info = 1; */ com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.RuleInfo getRuleInfo(int index); /** * repeated .stardoc_output.RuleInfo rule_info = 1; */ int getRuleInfoCount(); /** * repeated .stardoc_output.RuleInfo rule_info = 1; */ java.util.List getRuleInfoOrBuilderList(); /** * repeated .stardoc_output.RuleInfo rule_info = 1; */ com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.RuleInfoOrBuilder getRuleInfoOrBuilder( int index); /** * repeated .stardoc_output.ProviderInfo provider_info = 2; */ java.util.List getProviderInfoList(); /** * repeated .stardoc_output.ProviderInfo provider_info = 2; */ com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.ProviderInfo getProviderInfo(int index); /** * repeated .stardoc_output.ProviderInfo provider_info = 2; */ int getProviderInfoCount(); /** * repeated .stardoc_output.ProviderInfo provider_info = 2; */ java.util.List getProviderInfoOrBuilderList(); /** * repeated .stardoc_output.ProviderInfo provider_info = 2; */ com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.ProviderInfoOrBuilder getProviderInfoOrBuilder( int index); /** * repeated .stardoc_output.StarlarkFunctionInfo func_info = 3; */ java.util.List getFuncInfoList(); /** * repeated .stardoc_output.StarlarkFunctionInfo func_info = 3; */ com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.StarlarkFunctionInfo getFuncInfo(int index); /** * repeated .stardoc_output.StarlarkFunctionInfo func_info = 3; */ int getFuncInfoCount(); /** * repeated .stardoc_output.StarlarkFunctionInfo func_info = 3; */ java.util.List getFuncInfoOrBuilderList(); /** * repeated .stardoc_output.StarlarkFunctionInfo func_info = 3; */ com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.StarlarkFunctionInfoOrBuilder getFuncInfoOrBuilder( int index); /** * repeated .stardoc_output.AspectInfo aspect_info = 4; */ java.util.List getAspectInfoList(); /** * repeated .stardoc_output.AspectInfo aspect_info = 4; */ com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.AspectInfo getAspectInfo(int index); /** * repeated .stardoc_output.AspectInfo aspect_info = 4; */ int getAspectInfoCount(); /** * repeated .stardoc_output.AspectInfo aspect_info = 4; */ java.util.List getAspectInfoOrBuilderList(); /** * repeated .stardoc_output.AspectInfo aspect_info = 4; */ com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.AspectInfoOrBuilder getAspectInfoOrBuilder( int index); /** *
     * The docstring present at the top of the input Starlark file.
     * 
* * string module_docstring = 5; * @return The moduleDocstring. */ java.lang.String getModuleDocstring(); /** *
     * The docstring present at the top of the input Starlark file.
     * 
* * string module_docstring = 5; * @return The bytes for moduleDocstring. */ com.google.protobuf.ByteString getModuleDocstringBytes(); /** *
     * The display form of the label of the module file (as seen from the
     * starlark_doc_extract or Stardoc target's repo). Unset when there is no
     * module file (e.g. when the module is a REPL, or in Bazel's internal tests).
     * 
* * string file = 6; * @return The file. */ java.lang.String getFile(); /** *
     * The display form of the label of the module file (as seen from the
     * starlark_doc_extract or Stardoc target's repo). Unset when there is no
     * module file (e.g. when the module is a REPL, or in Bazel's internal tests).
     * 
* * string file = 6; * @return The bytes for file. */ com.google.protobuf.ByteString getFileBytes(); /** * repeated .stardoc_output.ModuleExtensionInfo module_extension_info = 7; */ java.util.List getModuleExtensionInfoList(); /** * repeated .stardoc_output.ModuleExtensionInfo module_extension_info = 7; */ com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.ModuleExtensionInfo getModuleExtensionInfo(int index); /** * repeated .stardoc_output.ModuleExtensionInfo module_extension_info = 7; */ int getModuleExtensionInfoCount(); /** * repeated .stardoc_output.ModuleExtensionInfo module_extension_info = 7; */ java.util.List getModuleExtensionInfoOrBuilderList(); /** * repeated .stardoc_output.ModuleExtensionInfo module_extension_info = 7; */ com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.ModuleExtensionInfoOrBuilder getModuleExtensionInfoOrBuilder( int index); /** * repeated .stardoc_output.RepositoryRuleInfo repository_rule_info = 8; */ java.util.List getRepositoryRuleInfoList(); /** * repeated .stardoc_output.RepositoryRuleInfo repository_rule_info = 8; */ com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.RepositoryRuleInfo getRepositoryRuleInfo(int index); /** * repeated .stardoc_output.RepositoryRuleInfo repository_rule_info = 8; */ int getRepositoryRuleInfoCount(); /** * repeated .stardoc_output.RepositoryRuleInfo repository_rule_info = 8; */ java.util.List getRepositoryRuleInfoOrBuilderList(); /** * repeated .stardoc_output.RepositoryRuleInfo repository_rule_info = 8; */ com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.RepositoryRuleInfoOrBuilder getRepositoryRuleInfoOrBuilder( int index); /** * repeated .stardoc_output.MacroInfo macro_info = 9; */ java.util.List getMacroInfoList(); /** * repeated .stardoc_output.MacroInfo macro_info = 9; */ com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.MacroInfo getMacroInfo(int index); /** * repeated .stardoc_output.MacroInfo macro_info = 9; */ int getMacroInfoCount(); /** * repeated .stardoc_output.MacroInfo macro_info = 9; */ java.util.List getMacroInfoOrBuilderList(); /** * repeated .stardoc_output.MacroInfo macro_info = 9; */ com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.MacroInfoOrBuilder getMacroInfoOrBuilder( int index); } /** *
   * The root output proto of Stardoc. An invocation of Stardoc on a single file
   * will output exactly one instance of this proto, representing all
   * documentation for the input Starlark file.
   * 
* * Protobuf type {@code stardoc_output.ModuleInfo} */ public static final class ModuleInfo extends com.google.protobuf.GeneratedMessage implements // @@protoc_insertion_point(message_implements:stardoc_output.ModuleInfo) ModuleInfoOrBuilder { private static final long serialVersionUID = 0L; static { com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, /* major= */ 4, /* minor= */ 28, /* patch= */ 3, /* suffix= */ "", ModuleInfo.class.getName()); } // Use ModuleInfo.newBuilder() to construct. private ModuleInfo(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); } private ModuleInfo() { ruleInfo_ = java.util.Collections.emptyList(); providerInfo_ = java.util.Collections.emptyList(); funcInfo_ = java.util.Collections.emptyList(); aspectInfo_ = java.util.Collections.emptyList(); moduleDocstring_ = ""; file_ = ""; moduleExtensionInfo_ = java.util.Collections.emptyList(); repositoryRuleInfo_ = java.util.Collections.emptyList(); macroInfo_ = java.util.Collections.emptyList(); } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.internal_static_stardoc_output_ModuleInfo_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.internal_static_stardoc_output_ModuleInfo_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.ModuleInfo.class, com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.ModuleInfo.Builder.class); } public static final int RULE_INFO_FIELD_NUMBER = 1; @SuppressWarnings("serial") private java.util.List ruleInfo_; /** * repeated .stardoc_output.RuleInfo rule_info = 1; */ @java.lang.Override public java.util.List getRuleInfoList() { return ruleInfo_; } /** * repeated .stardoc_output.RuleInfo rule_info = 1; */ @java.lang.Override public java.util.List getRuleInfoOrBuilderList() { return ruleInfo_; } /** * repeated .stardoc_output.RuleInfo rule_info = 1; */ @java.lang.Override public int getRuleInfoCount() { return ruleInfo_.size(); } /** * repeated .stardoc_output.RuleInfo rule_info = 1; */ @java.lang.Override public com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.RuleInfo getRuleInfo(int index) { return ruleInfo_.get(index); } /** * repeated .stardoc_output.RuleInfo rule_info = 1; */ @java.lang.Override public com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.RuleInfoOrBuilder getRuleInfoOrBuilder( int index) { return ruleInfo_.get(index); } public static final int PROVIDER_INFO_FIELD_NUMBER = 2; @SuppressWarnings("serial") private java.util.List providerInfo_; /** * repeated .stardoc_output.ProviderInfo provider_info = 2; */ @java.lang.Override public java.util.List getProviderInfoList() { return providerInfo_; } /** * repeated .stardoc_output.ProviderInfo provider_info = 2; */ @java.lang.Override public java.util.List getProviderInfoOrBuilderList() { return providerInfo_; } /** * repeated .stardoc_output.ProviderInfo provider_info = 2; */ @java.lang.Override public int getProviderInfoCount() { return providerInfo_.size(); } /** * repeated .stardoc_output.ProviderInfo provider_info = 2; */ @java.lang.Override public com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.ProviderInfo getProviderInfo(int index) { return providerInfo_.get(index); } /** * repeated .stardoc_output.ProviderInfo provider_info = 2; */ @java.lang.Override public com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.ProviderInfoOrBuilder getProviderInfoOrBuilder( int index) { return providerInfo_.get(index); } public static final int FUNC_INFO_FIELD_NUMBER = 3; @SuppressWarnings("serial") private java.util.List funcInfo_; /** * repeated .stardoc_output.StarlarkFunctionInfo func_info = 3; */ @java.lang.Override public java.util.List getFuncInfoList() { return funcInfo_; } /** * repeated .stardoc_output.StarlarkFunctionInfo func_info = 3; */ @java.lang.Override public java.util.List getFuncInfoOrBuilderList() { return funcInfo_; } /** * repeated .stardoc_output.StarlarkFunctionInfo func_info = 3; */ @java.lang.Override public int getFuncInfoCount() { return funcInfo_.size(); } /** * repeated .stardoc_output.StarlarkFunctionInfo func_info = 3; */ @java.lang.Override public com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.StarlarkFunctionInfo getFuncInfo(int index) { return funcInfo_.get(index); } /** * repeated .stardoc_output.StarlarkFunctionInfo func_info = 3; */ @java.lang.Override public com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.StarlarkFunctionInfoOrBuilder getFuncInfoOrBuilder( int index) { return funcInfo_.get(index); } public static final int ASPECT_INFO_FIELD_NUMBER = 4; @SuppressWarnings("serial") private java.util.List aspectInfo_; /** * repeated .stardoc_output.AspectInfo aspect_info = 4; */ @java.lang.Override public java.util.List getAspectInfoList() { return aspectInfo_; } /** * repeated .stardoc_output.AspectInfo aspect_info = 4; */ @java.lang.Override public java.util.List getAspectInfoOrBuilderList() { return aspectInfo_; } /** * repeated .stardoc_output.AspectInfo aspect_info = 4; */ @java.lang.Override public int getAspectInfoCount() { return aspectInfo_.size(); } /** * repeated .stardoc_output.AspectInfo aspect_info = 4; */ @java.lang.Override public com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.AspectInfo getAspectInfo(int index) { return aspectInfo_.get(index); } /** * repeated .stardoc_output.AspectInfo aspect_info = 4; */ @java.lang.Override public com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.AspectInfoOrBuilder getAspectInfoOrBuilder( int index) { return aspectInfo_.get(index); } public static final int MODULE_DOCSTRING_FIELD_NUMBER = 5; @SuppressWarnings("serial") private volatile java.lang.Object moduleDocstring_ = ""; /** *
     * The docstring present at the top of the input Starlark file.
     * 
* * string module_docstring = 5; * @return The moduleDocstring. */ @java.lang.Override public java.lang.String getModuleDocstring() { java.lang.Object ref = moduleDocstring_; 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(); moduleDocstring_ = s; return s; } } /** *
     * The docstring present at the top of the input Starlark file.
     * 
* * string module_docstring = 5; * @return The bytes for moduleDocstring. */ @java.lang.Override public com.google.protobuf.ByteString getModuleDocstringBytes() { java.lang.Object ref = moduleDocstring_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); moduleDocstring_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int FILE_FIELD_NUMBER = 6; @SuppressWarnings("serial") private volatile java.lang.Object file_ = ""; /** *
     * The display form of the label of the module file (as seen from the
     * starlark_doc_extract or Stardoc target's repo). Unset when there is no
     * module file (e.g. when the module is a REPL, or in Bazel's internal tests).
     * 
* * string file = 6; * @return The file. */ @java.lang.Override public java.lang.String getFile() { java.lang.Object ref = file_; 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(); file_ = s; return s; } } /** *
     * The display form of the label of the module file (as seen from the
     * starlark_doc_extract or Stardoc target's repo). Unset when there is no
     * module file (e.g. when the module is a REPL, or in Bazel's internal tests).
     * 
* * string file = 6; * @return The bytes for file. */ @java.lang.Override public com.google.protobuf.ByteString getFileBytes() { java.lang.Object ref = file_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); file_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int MODULE_EXTENSION_INFO_FIELD_NUMBER = 7; @SuppressWarnings("serial") private java.util.List moduleExtensionInfo_; /** * repeated .stardoc_output.ModuleExtensionInfo module_extension_info = 7; */ @java.lang.Override public java.util.List getModuleExtensionInfoList() { return moduleExtensionInfo_; } /** * repeated .stardoc_output.ModuleExtensionInfo module_extension_info = 7; */ @java.lang.Override public java.util.List getModuleExtensionInfoOrBuilderList() { return moduleExtensionInfo_; } /** * repeated .stardoc_output.ModuleExtensionInfo module_extension_info = 7; */ @java.lang.Override public int getModuleExtensionInfoCount() { return moduleExtensionInfo_.size(); } /** * repeated .stardoc_output.ModuleExtensionInfo module_extension_info = 7; */ @java.lang.Override public com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.ModuleExtensionInfo getModuleExtensionInfo(int index) { return moduleExtensionInfo_.get(index); } /** * repeated .stardoc_output.ModuleExtensionInfo module_extension_info = 7; */ @java.lang.Override public com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.ModuleExtensionInfoOrBuilder getModuleExtensionInfoOrBuilder( int index) { return moduleExtensionInfo_.get(index); } public static final int REPOSITORY_RULE_INFO_FIELD_NUMBER = 8; @SuppressWarnings("serial") private java.util.List repositoryRuleInfo_; /** * repeated .stardoc_output.RepositoryRuleInfo repository_rule_info = 8; */ @java.lang.Override public java.util.List getRepositoryRuleInfoList() { return repositoryRuleInfo_; } /** * repeated .stardoc_output.RepositoryRuleInfo repository_rule_info = 8; */ @java.lang.Override public java.util.List getRepositoryRuleInfoOrBuilderList() { return repositoryRuleInfo_; } /** * repeated .stardoc_output.RepositoryRuleInfo repository_rule_info = 8; */ @java.lang.Override public int getRepositoryRuleInfoCount() { return repositoryRuleInfo_.size(); } /** * repeated .stardoc_output.RepositoryRuleInfo repository_rule_info = 8; */ @java.lang.Override public com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.RepositoryRuleInfo getRepositoryRuleInfo(int index) { return repositoryRuleInfo_.get(index); } /** * repeated .stardoc_output.RepositoryRuleInfo repository_rule_info = 8; */ @java.lang.Override public com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.RepositoryRuleInfoOrBuilder getRepositoryRuleInfoOrBuilder( int index) { return repositoryRuleInfo_.get(index); } public static final int MACRO_INFO_FIELD_NUMBER = 9; @SuppressWarnings("serial") private java.util.List macroInfo_; /** * repeated .stardoc_output.MacroInfo macro_info = 9; */ @java.lang.Override public java.util.List getMacroInfoList() { return macroInfo_; } /** * repeated .stardoc_output.MacroInfo macro_info = 9; */ @java.lang.Override public java.util.List getMacroInfoOrBuilderList() { return macroInfo_; } /** * repeated .stardoc_output.MacroInfo macro_info = 9; */ @java.lang.Override public int getMacroInfoCount() { return macroInfo_.size(); } /** * repeated .stardoc_output.MacroInfo macro_info = 9; */ @java.lang.Override public com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.MacroInfo getMacroInfo(int index) { return macroInfo_.get(index); } /** * repeated .stardoc_output.MacroInfo macro_info = 9; */ @java.lang.Override public com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.MacroInfoOrBuilder getMacroInfoOrBuilder( int index) { return macroInfo_.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 < ruleInfo_.size(); i++) { output.writeMessage(1, ruleInfo_.get(i)); } for (int i = 0; i < providerInfo_.size(); i++) { output.writeMessage(2, providerInfo_.get(i)); } for (int i = 0; i < funcInfo_.size(); i++) { output.writeMessage(3, funcInfo_.get(i)); } for (int i = 0; i < aspectInfo_.size(); i++) { output.writeMessage(4, aspectInfo_.get(i)); } if (!com.google.protobuf.GeneratedMessage.isStringEmpty(moduleDocstring_)) { com.google.protobuf.GeneratedMessage.writeString(output, 5, moduleDocstring_); } if (!com.google.protobuf.GeneratedMessage.isStringEmpty(file_)) { com.google.protobuf.GeneratedMessage.writeString(output, 6, file_); } for (int i = 0; i < moduleExtensionInfo_.size(); i++) { output.writeMessage(7, moduleExtensionInfo_.get(i)); } for (int i = 0; i < repositoryRuleInfo_.size(); i++) { output.writeMessage(8, repositoryRuleInfo_.get(i)); } for (int i = 0; i < macroInfo_.size(); i++) { output.writeMessage(9, macroInfo_.get(i)); } getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; for (int i = 0; i < ruleInfo_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, ruleInfo_.get(i)); } for (int i = 0; i < providerInfo_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(2, providerInfo_.get(i)); } for (int i = 0; i < funcInfo_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(3, funcInfo_.get(i)); } for (int i = 0; i < aspectInfo_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(4, aspectInfo_.get(i)); } if (!com.google.protobuf.GeneratedMessage.isStringEmpty(moduleDocstring_)) { size += com.google.protobuf.GeneratedMessage.computeStringSize(5, moduleDocstring_); } if (!com.google.protobuf.GeneratedMessage.isStringEmpty(file_)) { size += com.google.protobuf.GeneratedMessage.computeStringSize(6, file_); } for (int i = 0; i < moduleExtensionInfo_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(7, moduleExtensionInfo_.get(i)); } for (int i = 0; i < repositoryRuleInfo_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(8, repositoryRuleInfo_.get(i)); } for (int i = 0; i < macroInfo_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(9, macroInfo_.get(i)); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.ModuleInfo)) { return super.equals(obj); } com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.ModuleInfo other = (com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.ModuleInfo) obj; if (!getRuleInfoList() .equals(other.getRuleInfoList())) return false; if (!getProviderInfoList() .equals(other.getProviderInfoList())) return false; if (!getFuncInfoList() .equals(other.getFuncInfoList())) return false; if (!getAspectInfoList() .equals(other.getAspectInfoList())) return false; if (!getModuleDocstring() .equals(other.getModuleDocstring())) return false; if (!getFile() .equals(other.getFile())) return false; if (!getModuleExtensionInfoList() .equals(other.getModuleExtensionInfoList())) return false; if (!getRepositoryRuleInfoList() .equals(other.getRepositoryRuleInfoList())) return false; if (!getMacroInfoList() .equals(other.getMacroInfoList())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); if (getRuleInfoCount() > 0) { hash = (37 * hash) + RULE_INFO_FIELD_NUMBER; hash = (53 * hash) + getRuleInfoList().hashCode(); } if (getProviderInfoCount() > 0) { hash = (37 * hash) + PROVIDER_INFO_FIELD_NUMBER; hash = (53 * hash) + getProviderInfoList().hashCode(); } if (getFuncInfoCount() > 0) { hash = (37 * hash) + FUNC_INFO_FIELD_NUMBER; hash = (53 * hash) + getFuncInfoList().hashCode(); } if (getAspectInfoCount() > 0) { hash = (37 * hash) + ASPECT_INFO_FIELD_NUMBER; hash = (53 * hash) + getAspectInfoList().hashCode(); } hash = (37 * hash) + MODULE_DOCSTRING_FIELD_NUMBER; hash = (53 * hash) + getModuleDocstring().hashCode(); hash = (37 * hash) + FILE_FIELD_NUMBER; hash = (53 * hash) + getFile().hashCode(); if (getModuleExtensionInfoCount() > 0) { hash = (37 * hash) + MODULE_EXTENSION_INFO_FIELD_NUMBER; hash = (53 * hash) + getModuleExtensionInfoList().hashCode(); } if (getRepositoryRuleInfoCount() > 0) { hash = (37 * hash) + REPOSITORY_RULE_INFO_FIELD_NUMBER; hash = (53 * hash) + getRepositoryRuleInfoList().hashCode(); } if (getMacroInfoCount() > 0) { hash = (37 * hash) + MACRO_INFO_FIELD_NUMBER; hash = (53 * hash) + getMacroInfoList().hashCode(); } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.ModuleInfo parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.ModuleInfo 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.lib.starlarkdocextract.StardocOutputProtos.ModuleInfo parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.ModuleInfo 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.lib.starlarkdocextract.StardocOutputProtos.ModuleInfo parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.ModuleInfo parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.ModuleInfo parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessage .parseWithIOException(PARSER, input); } public static com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.ModuleInfo parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessage .parseWithIOException(PARSER, input, extensionRegistry); } public static com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.ModuleInfo parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessage .parseDelimitedWithIOException(PARSER, input); } public static com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.ModuleInfo parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessage .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.ModuleInfo parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessage .parseWithIOException(PARSER, input); } public static com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.ModuleInfo parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessage .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.ModuleInfo prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } @java.lang.Override public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessage.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** *
     * The root output proto of Stardoc. An invocation of Stardoc on a single file
     * will output exactly one instance of this proto, representing all
     * documentation for the input Starlark file.
     * 
* * Protobuf type {@code stardoc_output.ModuleInfo} */ public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder implements // @@protoc_insertion_point(builder_implements:stardoc_output.ModuleInfo) com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.ModuleInfoOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.internal_static_stardoc_output_ModuleInfo_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.internal_static_stardoc_output_ModuleInfo_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.ModuleInfo.class, com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.ModuleInfo.Builder.class); } // Construct using com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.ModuleInfo.newBuilder() private Builder() { } private Builder( com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; if (ruleInfoBuilder_ == null) { ruleInfo_ = java.util.Collections.emptyList(); } else { ruleInfo_ = null; ruleInfoBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000001); if (providerInfoBuilder_ == null) { providerInfo_ = java.util.Collections.emptyList(); } else { providerInfo_ = null; providerInfoBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000002); if (funcInfoBuilder_ == null) { funcInfo_ = java.util.Collections.emptyList(); } else { funcInfo_ = null; funcInfoBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000004); if (aspectInfoBuilder_ == null) { aspectInfo_ = java.util.Collections.emptyList(); } else { aspectInfo_ = null; aspectInfoBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000008); moduleDocstring_ = ""; file_ = ""; if (moduleExtensionInfoBuilder_ == null) { moduleExtensionInfo_ = java.util.Collections.emptyList(); } else { moduleExtensionInfo_ = null; moduleExtensionInfoBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000040); if (repositoryRuleInfoBuilder_ == null) { repositoryRuleInfo_ = java.util.Collections.emptyList(); } else { repositoryRuleInfo_ = null; repositoryRuleInfoBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000080); if (macroInfoBuilder_ == null) { macroInfo_ = java.util.Collections.emptyList(); } else { macroInfo_ = null; macroInfoBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000100); return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.internal_static_stardoc_output_ModuleInfo_descriptor; } @java.lang.Override public com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.ModuleInfo getDefaultInstanceForType() { return com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.ModuleInfo.getDefaultInstance(); } @java.lang.Override public com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.ModuleInfo build() { com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.ModuleInfo result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.ModuleInfo buildPartial() { com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.ModuleInfo result = new com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.ModuleInfo(this); buildPartialRepeatedFields(result); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartialRepeatedFields(com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.ModuleInfo result) { if (ruleInfoBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { ruleInfo_ = java.util.Collections.unmodifiableList(ruleInfo_); bitField0_ = (bitField0_ & ~0x00000001); } result.ruleInfo_ = ruleInfo_; } else { result.ruleInfo_ = ruleInfoBuilder_.build(); } if (providerInfoBuilder_ == null) { if (((bitField0_ & 0x00000002) != 0)) { providerInfo_ = java.util.Collections.unmodifiableList(providerInfo_); bitField0_ = (bitField0_ & ~0x00000002); } result.providerInfo_ = providerInfo_; } else { result.providerInfo_ = providerInfoBuilder_.build(); } if (funcInfoBuilder_ == null) { if (((bitField0_ & 0x00000004) != 0)) { funcInfo_ = java.util.Collections.unmodifiableList(funcInfo_); bitField0_ = (bitField0_ & ~0x00000004); } result.funcInfo_ = funcInfo_; } else { result.funcInfo_ = funcInfoBuilder_.build(); } if (aspectInfoBuilder_ == null) { if (((bitField0_ & 0x00000008) != 0)) { aspectInfo_ = java.util.Collections.unmodifiableList(aspectInfo_); bitField0_ = (bitField0_ & ~0x00000008); } result.aspectInfo_ = aspectInfo_; } else { result.aspectInfo_ = aspectInfoBuilder_.build(); } if (moduleExtensionInfoBuilder_ == null) { if (((bitField0_ & 0x00000040) != 0)) { moduleExtensionInfo_ = java.util.Collections.unmodifiableList(moduleExtensionInfo_); bitField0_ = (bitField0_ & ~0x00000040); } result.moduleExtensionInfo_ = moduleExtensionInfo_; } else { result.moduleExtensionInfo_ = moduleExtensionInfoBuilder_.build(); } if (repositoryRuleInfoBuilder_ == null) { if (((bitField0_ & 0x00000080) != 0)) { repositoryRuleInfo_ = java.util.Collections.unmodifiableList(repositoryRuleInfo_); bitField0_ = (bitField0_ & ~0x00000080); } result.repositoryRuleInfo_ = repositoryRuleInfo_; } else { result.repositoryRuleInfo_ = repositoryRuleInfoBuilder_.build(); } if (macroInfoBuilder_ == null) { if (((bitField0_ & 0x00000100) != 0)) { macroInfo_ = java.util.Collections.unmodifiableList(macroInfo_); bitField0_ = (bitField0_ & ~0x00000100); } result.macroInfo_ = macroInfo_; } else { result.macroInfo_ = macroInfoBuilder_.build(); } } private void buildPartial0(com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.ModuleInfo result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000010) != 0)) { result.moduleDocstring_ = moduleDocstring_; } if (((from_bitField0_ & 0x00000020) != 0)) { result.file_ = file_; } } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.ModuleInfo) { return mergeFrom((com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.ModuleInfo)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.ModuleInfo other) { if (other == com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.ModuleInfo.getDefaultInstance()) return this; if (ruleInfoBuilder_ == null) { if (!other.ruleInfo_.isEmpty()) { if (ruleInfo_.isEmpty()) { ruleInfo_ = other.ruleInfo_; bitField0_ = (bitField0_ & ~0x00000001); } else { ensureRuleInfoIsMutable(); ruleInfo_.addAll(other.ruleInfo_); } onChanged(); } } else { if (!other.ruleInfo_.isEmpty()) { if (ruleInfoBuilder_.isEmpty()) { ruleInfoBuilder_.dispose(); ruleInfoBuilder_ = null; ruleInfo_ = other.ruleInfo_; bitField0_ = (bitField0_ & ~0x00000001); ruleInfoBuilder_ = com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ? getRuleInfoFieldBuilder() : null; } else { ruleInfoBuilder_.addAllMessages(other.ruleInfo_); } } } if (providerInfoBuilder_ == null) { if (!other.providerInfo_.isEmpty()) { if (providerInfo_.isEmpty()) { providerInfo_ = other.providerInfo_; bitField0_ = (bitField0_ & ~0x00000002); } else { ensureProviderInfoIsMutable(); providerInfo_.addAll(other.providerInfo_); } onChanged(); } } else { if (!other.providerInfo_.isEmpty()) { if (providerInfoBuilder_.isEmpty()) { providerInfoBuilder_.dispose(); providerInfoBuilder_ = null; providerInfo_ = other.providerInfo_; bitField0_ = (bitField0_ & ~0x00000002); providerInfoBuilder_ = com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ? getProviderInfoFieldBuilder() : null; } else { providerInfoBuilder_.addAllMessages(other.providerInfo_); } } } if (funcInfoBuilder_ == null) { if (!other.funcInfo_.isEmpty()) { if (funcInfo_.isEmpty()) { funcInfo_ = other.funcInfo_; bitField0_ = (bitField0_ & ~0x00000004); } else { ensureFuncInfoIsMutable(); funcInfo_.addAll(other.funcInfo_); } onChanged(); } } else { if (!other.funcInfo_.isEmpty()) { if (funcInfoBuilder_.isEmpty()) { funcInfoBuilder_.dispose(); funcInfoBuilder_ = null; funcInfo_ = other.funcInfo_; bitField0_ = (bitField0_ & ~0x00000004); funcInfoBuilder_ = com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ? getFuncInfoFieldBuilder() : null; } else { funcInfoBuilder_.addAllMessages(other.funcInfo_); } } } if (aspectInfoBuilder_ == null) { if (!other.aspectInfo_.isEmpty()) { if (aspectInfo_.isEmpty()) { aspectInfo_ = other.aspectInfo_; bitField0_ = (bitField0_ & ~0x00000008); } else { ensureAspectInfoIsMutable(); aspectInfo_.addAll(other.aspectInfo_); } onChanged(); } } else { if (!other.aspectInfo_.isEmpty()) { if (aspectInfoBuilder_.isEmpty()) { aspectInfoBuilder_.dispose(); aspectInfoBuilder_ = null; aspectInfo_ = other.aspectInfo_; bitField0_ = (bitField0_ & ~0x00000008); aspectInfoBuilder_ = com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ? getAspectInfoFieldBuilder() : null; } else { aspectInfoBuilder_.addAllMessages(other.aspectInfo_); } } } if (!other.getModuleDocstring().isEmpty()) { moduleDocstring_ = other.moduleDocstring_; bitField0_ |= 0x00000010; onChanged(); } if (!other.getFile().isEmpty()) { file_ = other.file_; bitField0_ |= 0x00000020; onChanged(); } if (moduleExtensionInfoBuilder_ == null) { if (!other.moduleExtensionInfo_.isEmpty()) { if (moduleExtensionInfo_.isEmpty()) { moduleExtensionInfo_ = other.moduleExtensionInfo_; bitField0_ = (bitField0_ & ~0x00000040); } else { ensureModuleExtensionInfoIsMutable(); moduleExtensionInfo_.addAll(other.moduleExtensionInfo_); } onChanged(); } } else { if (!other.moduleExtensionInfo_.isEmpty()) { if (moduleExtensionInfoBuilder_.isEmpty()) { moduleExtensionInfoBuilder_.dispose(); moduleExtensionInfoBuilder_ = null; moduleExtensionInfo_ = other.moduleExtensionInfo_; bitField0_ = (bitField0_ & ~0x00000040); moduleExtensionInfoBuilder_ = com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ? getModuleExtensionInfoFieldBuilder() : null; } else { moduleExtensionInfoBuilder_.addAllMessages(other.moduleExtensionInfo_); } } } if (repositoryRuleInfoBuilder_ == null) { if (!other.repositoryRuleInfo_.isEmpty()) { if (repositoryRuleInfo_.isEmpty()) { repositoryRuleInfo_ = other.repositoryRuleInfo_; bitField0_ = (bitField0_ & ~0x00000080); } else { ensureRepositoryRuleInfoIsMutable(); repositoryRuleInfo_.addAll(other.repositoryRuleInfo_); } onChanged(); } } else { if (!other.repositoryRuleInfo_.isEmpty()) { if (repositoryRuleInfoBuilder_.isEmpty()) { repositoryRuleInfoBuilder_.dispose(); repositoryRuleInfoBuilder_ = null; repositoryRuleInfo_ = other.repositoryRuleInfo_; bitField0_ = (bitField0_ & ~0x00000080); repositoryRuleInfoBuilder_ = com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ? getRepositoryRuleInfoFieldBuilder() : null; } else { repositoryRuleInfoBuilder_.addAllMessages(other.repositoryRuleInfo_); } } } if (macroInfoBuilder_ == null) { if (!other.macroInfo_.isEmpty()) { if (macroInfo_.isEmpty()) { macroInfo_ = other.macroInfo_; bitField0_ = (bitField0_ & ~0x00000100); } else { ensureMacroInfoIsMutable(); macroInfo_.addAll(other.macroInfo_); } onChanged(); } } else { if (!other.macroInfo_.isEmpty()) { if (macroInfoBuilder_.isEmpty()) { macroInfoBuilder_.dispose(); macroInfoBuilder_ = null; macroInfo_ = other.macroInfo_; bitField0_ = (bitField0_ & ~0x00000100); macroInfoBuilder_ = com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ? getMacroInfoFieldBuilder() : null; } else { macroInfoBuilder_.addAllMessages(other.macroInfo_); } } } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { return true; } @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 10: { com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.RuleInfo m = input.readMessage( com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.RuleInfo.parser(), extensionRegistry); if (ruleInfoBuilder_ == null) { ensureRuleInfoIsMutable(); ruleInfo_.add(m); } else { ruleInfoBuilder_.addMessage(m); } break; } // case 10 case 18: { com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.ProviderInfo m = input.readMessage( com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.ProviderInfo.parser(), extensionRegistry); if (providerInfoBuilder_ == null) { ensureProviderInfoIsMutable(); providerInfo_.add(m); } else { providerInfoBuilder_.addMessage(m); } break; } // case 18 case 26: { com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.StarlarkFunctionInfo m = input.readMessage( com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.StarlarkFunctionInfo.parser(), extensionRegistry); if (funcInfoBuilder_ == null) { ensureFuncInfoIsMutable(); funcInfo_.add(m); } else { funcInfoBuilder_.addMessage(m); } break; } // case 26 case 34: { com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.AspectInfo m = input.readMessage( com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.AspectInfo.parser(), extensionRegistry); if (aspectInfoBuilder_ == null) { ensureAspectInfoIsMutable(); aspectInfo_.add(m); } else { aspectInfoBuilder_.addMessage(m); } break; } // case 34 case 42: { moduleDocstring_ = input.readStringRequireUtf8(); bitField0_ |= 0x00000010; break; } // case 42 case 50: { file_ = input.readStringRequireUtf8(); bitField0_ |= 0x00000020; break; } // case 50 case 58: { com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.ModuleExtensionInfo m = input.readMessage( com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.ModuleExtensionInfo.parser(), extensionRegistry); if (moduleExtensionInfoBuilder_ == null) { ensureModuleExtensionInfoIsMutable(); moduleExtensionInfo_.add(m); } else { moduleExtensionInfoBuilder_.addMessage(m); } break; } // case 58 case 66: { com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.RepositoryRuleInfo m = input.readMessage( com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.RepositoryRuleInfo.parser(), extensionRegistry); if (repositoryRuleInfoBuilder_ == null) { ensureRepositoryRuleInfoIsMutable(); repositoryRuleInfo_.add(m); } else { repositoryRuleInfoBuilder_.addMessage(m); } break; } // case 66 case 74: { com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.MacroInfo m = input.readMessage( com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.MacroInfo.parser(), extensionRegistry); if (macroInfoBuilder_ == null) { ensureMacroInfoIsMutable(); macroInfo_.add(m); } else { macroInfoBuilder_.addMessage(m); } break; } // case 74 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { done = true; // was an endgroup tag } break; } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.unwrapIOException(); } finally { onChanged(); } // finally return this; } private int bitField0_; private java.util.List ruleInfo_ = java.util.Collections.emptyList(); private void ensureRuleInfoIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { ruleInfo_ = new java.util.ArrayList(ruleInfo_); bitField0_ |= 0x00000001; } } private com.google.protobuf.RepeatedFieldBuilder< com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.RuleInfo, com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.RuleInfo.Builder, com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.RuleInfoOrBuilder> ruleInfoBuilder_; /** * repeated .stardoc_output.RuleInfo rule_info = 1; */ public java.util.List getRuleInfoList() { if (ruleInfoBuilder_ == null) { return java.util.Collections.unmodifiableList(ruleInfo_); } else { return ruleInfoBuilder_.getMessageList(); } } /** * repeated .stardoc_output.RuleInfo rule_info = 1; */ public int getRuleInfoCount() { if (ruleInfoBuilder_ == null) { return ruleInfo_.size(); } else { return ruleInfoBuilder_.getCount(); } } /** * repeated .stardoc_output.RuleInfo rule_info = 1; */ public com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.RuleInfo getRuleInfo(int index) { if (ruleInfoBuilder_ == null) { return ruleInfo_.get(index); } else { return ruleInfoBuilder_.getMessage(index); } } /** * repeated .stardoc_output.RuleInfo rule_info = 1; */ public Builder setRuleInfo( int index, com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.RuleInfo value) { if (ruleInfoBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureRuleInfoIsMutable(); ruleInfo_.set(index, value); onChanged(); } else { ruleInfoBuilder_.setMessage(index, value); } return this; } /** * repeated .stardoc_output.RuleInfo rule_info = 1; */ public Builder setRuleInfo( int index, com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.RuleInfo.Builder builderForValue) { if (ruleInfoBuilder_ == null) { ensureRuleInfoIsMutable(); ruleInfo_.set(index, builderForValue.build()); onChanged(); } else { ruleInfoBuilder_.setMessage(index, builderForValue.build()); } return this; } /** * repeated .stardoc_output.RuleInfo rule_info = 1; */ public Builder addRuleInfo(com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.RuleInfo value) { if (ruleInfoBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureRuleInfoIsMutable(); ruleInfo_.add(value); onChanged(); } else { ruleInfoBuilder_.addMessage(value); } return this; } /** * repeated .stardoc_output.RuleInfo rule_info = 1; */ public Builder addRuleInfo( int index, com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.RuleInfo value) { if (ruleInfoBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureRuleInfoIsMutable(); ruleInfo_.add(index, value); onChanged(); } else { ruleInfoBuilder_.addMessage(index, value); } return this; } /** * repeated .stardoc_output.RuleInfo rule_info = 1; */ public Builder addRuleInfo( com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.RuleInfo.Builder builderForValue) { if (ruleInfoBuilder_ == null) { ensureRuleInfoIsMutable(); ruleInfo_.add(builderForValue.build()); onChanged(); } else { ruleInfoBuilder_.addMessage(builderForValue.build()); } return this; } /** * repeated .stardoc_output.RuleInfo rule_info = 1; */ public Builder addRuleInfo( int index, com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.RuleInfo.Builder builderForValue) { if (ruleInfoBuilder_ == null) { ensureRuleInfoIsMutable(); ruleInfo_.add(index, builderForValue.build()); onChanged(); } else { ruleInfoBuilder_.addMessage(index, builderForValue.build()); } return this; } /** * repeated .stardoc_output.RuleInfo rule_info = 1; */ public Builder addAllRuleInfo( java.lang.Iterable values) { if (ruleInfoBuilder_ == null) { ensureRuleInfoIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, ruleInfo_); onChanged(); } else { ruleInfoBuilder_.addAllMessages(values); } return this; } /** * repeated .stardoc_output.RuleInfo rule_info = 1; */ public Builder clearRuleInfo() { if (ruleInfoBuilder_ == null) { ruleInfo_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); onChanged(); } else { ruleInfoBuilder_.clear(); } return this; } /** * repeated .stardoc_output.RuleInfo rule_info = 1; */ public Builder removeRuleInfo(int index) { if (ruleInfoBuilder_ == null) { ensureRuleInfoIsMutable(); ruleInfo_.remove(index); onChanged(); } else { ruleInfoBuilder_.remove(index); } return this; } /** * repeated .stardoc_output.RuleInfo rule_info = 1; */ public com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.RuleInfo.Builder getRuleInfoBuilder( int index) { return getRuleInfoFieldBuilder().getBuilder(index); } /** * repeated .stardoc_output.RuleInfo rule_info = 1; */ public com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.RuleInfoOrBuilder getRuleInfoOrBuilder( int index) { if (ruleInfoBuilder_ == null) { return ruleInfo_.get(index); } else { return ruleInfoBuilder_.getMessageOrBuilder(index); } } /** * repeated .stardoc_output.RuleInfo rule_info = 1; */ public java.util.List getRuleInfoOrBuilderList() { if (ruleInfoBuilder_ != null) { return ruleInfoBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(ruleInfo_); } } /** * repeated .stardoc_output.RuleInfo rule_info = 1; */ public com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.RuleInfo.Builder addRuleInfoBuilder() { return getRuleInfoFieldBuilder().addBuilder( com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.RuleInfo.getDefaultInstance()); } /** * repeated .stardoc_output.RuleInfo rule_info = 1; */ public com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.RuleInfo.Builder addRuleInfoBuilder( int index) { return getRuleInfoFieldBuilder().addBuilder( index, com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.RuleInfo.getDefaultInstance()); } /** * repeated .stardoc_output.RuleInfo rule_info = 1; */ public java.util.List getRuleInfoBuilderList() { return getRuleInfoFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilder< com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.RuleInfo, com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.RuleInfo.Builder, com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.RuleInfoOrBuilder> getRuleInfoFieldBuilder() { if (ruleInfoBuilder_ == null) { ruleInfoBuilder_ = new com.google.protobuf.RepeatedFieldBuilder< com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.RuleInfo, com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.RuleInfo.Builder, com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.RuleInfoOrBuilder>( ruleInfo_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); ruleInfo_ = null; } return ruleInfoBuilder_; } private java.util.List providerInfo_ = java.util.Collections.emptyList(); private void ensureProviderInfoIsMutable() { if (!((bitField0_ & 0x00000002) != 0)) { providerInfo_ = new java.util.ArrayList(providerInfo_); bitField0_ |= 0x00000002; } } private com.google.protobuf.RepeatedFieldBuilder< com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.ProviderInfo, com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.ProviderInfo.Builder, com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.ProviderInfoOrBuilder> providerInfoBuilder_; /** * repeated .stardoc_output.ProviderInfo provider_info = 2; */ public java.util.List getProviderInfoList() { if (providerInfoBuilder_ == null) { return java.util.Collections.unmodifiableList(providerInfo_); } else { return providerInfoBuilder_.getMessageList(); } } /** * repeated .stardoc_output.ProviderInfo provider_info = 2; */ public int getProviderInfoCount() { if (providerInfoBuilder_ == null) { return providerInfo_.size(); } else { return providerInfoBuilder_.getCount(); } } /** * repeated .stardoc_output.ProviderInfo provider_info = 2; */ public com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.ProviderInfo getProviderInfo(int index) { if (providerInfoBuilder_ == null) { return providerInfo_.get(index); } else { return providerInfoBuilder_.getMessage(index); } } /** * repeated .stardoc_output.ProviderInfo provider_info = 2; */ public Builder setProviderInfo( int index, com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.ProviderInfo value) { if (providerInfoBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureProviderInfoIsMutable(); providerInfo_.set(index, value); onChanged(); } else { providerInfoBuilder_.setMessage(index, value); } return this; } /** * repeated .stardoc_output.ProviderInfo provider_info = 2; */ public Builder setProviderInfo( int index, com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.ProviderInfo.Builder builderForValue) { if (providerInfoBuilder_ == null) { ensureProviderInfoIsMutable(); providerInfo_.set(index, builderForValue.build()); onChanged(); } else { providerInfoBuilder_.setMessage(index, builderForValue.build()); } return this; } /** * repeated .stardoc_output.ProviderInfo provider_info = 2; */ public Builder addProviderInfo(com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.ProviderInfo value) { if (providerInfoBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureProviderInfoIsMutable(); providerInfo_.add(value); onChanged(); } else { providerInfoBuilder_.addMessage(value); } return this; } /** * repeated .stardoc_output.ProviderInfo provider_info = 2; */ public Builder addProviderInfo( int index, com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.ProviderInfo value) { if (providerInfoBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureProviderInfoIsMutable(); providerInfo_.add(index, value); onChanged(); } else { providerInfoBuilder_.addMessage(index, value); } return this; } /** * repeated .stardoc_output.ProviderInfo provider_info = 2; */ public Builder addProviderInfo( com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.ProviderInfo.Builder builderForValue) { if (providerInfoBuilder_ == null) { ensureProviderInfoIsMutable(); providerInfo_.add(builderForValue.build()); onChanged(); } else { providerInfoBuilder_.addMessage(builderForValue.build()); } return this; } /** * repeated .stardoc_output.ProviderInfo provider_info = 2; */ public Builder addProviderInfo( int index, com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.ProviderInfo.Builder builderForValue) { if (providerInfoBuilder_ == null) { ensureProviderInfoIsMutable(); providerInfo_.add(index, builderForValue.build()); onChanged(); } else { providerInfoBuilder_.addMessage(index, builderForValue.build()); } return this; } /** * repeated .stardoc_output.ProviderInfo provider_info = 2; */ public Builder addAllProviderInfo( java.lang.Iterable values) { if (providerInfoBuilder_ == null) { ensureProviderInfoIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, providerInfo_); onChanged(); } else { providerInfoBuilder_.addAllMessages(values); } return this; } /** * repeated .stardoc_output.ProviderInfo provider_info = 2; */ public Builder clearProviderInfo() { if (providerInfoBuilder_ == null) { providerInfo_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000002); onChanged(); } else { providerInfoBuilder_.clear(); } return this; } /** * repeated .stardoc_output.ProviderInfo provider_info = 2; */ public Builder removeProviderInfo(int index) { if (providerInfoBuilder_ == null) { ensureProviderInfoIsMutable(); providerInfo_.remove(index); onChanged(); } else { providerInfoBuilder_.remove(index); } return this; } /** * repeated .stardoc_output.ProviderInfo provider_info = 2; */ public com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.ProviderInfo.Builder getProviderInfoBuilder( int index) { return getProviderInfoFieldBuilder().getBuilder(index); } /** * repeated .stardoc_output.ProviderInfo provider_info = 2; */ public com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.ProviderInfoOrBuilder getProviderInfoOrBuilder( int index) { if (providerInfoBuilder_ == null) { return providerInfo_.get(index); } else { return providerInfoBuilder_.getMessageOrBuilder(index); } } /** * repeated .stardoc_output.ProviderInfo provider_info = 2; */ public java.util.List getProviderInfoOrBuilderList() { if (providerInfoBuilder_ != null) { return providerInfoBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(providerInfo_); } } /** * repeated .stardoc_output.ProviderInfo provider_info = 2; */ public com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.ProviderInfo.Builder addProviderInfoBuilder() { return getProviderInfoFieldBuilder().addBuilder( com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.ProviderInfo.getDefaultInstance()); } /** * repeated .stardoc_output.ProviderInfo provider_info = 2; */ public com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.ProviderInfo.Builder addProviderInfoBuilder( int index) { return getProviderInfoFieldBuilder().addBuilder( index, com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.ProviderInfo.getDefaultInstance()); } /** * repeated .stardoc_output.ProviderInfo provider_info = 2; */ public java.util.List getProviderInfoBuilderList() { return getProviderInfoFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilder< com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.ProviderInfo, com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.ProviderInfo.Builder, com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.ProviderInfoOrBuilder> getProviderInfoFieldBuilder() { if (providerInfoBuilder_ == null) { providerInfoBuilder_ = new com.google.protobuf.RepeatedFieldBuilder< com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.ProviderInfo, com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.ProviderInfo.Builder, com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.ProviderInfoOrBuilder>( providerInfo_, ((bitField0_ & 0x00000002) != 0), getParentForChildren(), isClean()); providerInfo_ = null; } return providerInfoBuilder_; } private java.util.List funcInfo_ = java.util.Collections.emptyList(); private void ensureFuncInfoIsMutable() { if (!((bitField0_ & 0x00000004) != 0)) { funcInfo_ = new java.util.ArrayList(funcInfo_); bitField0_ |= 0x00000004; } } private com.google.protobuf.RepeatedFieldBuilder< com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.StarlarkFunctionInfo, com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.StarlarkFunctionInfo.Builder, com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.StarlarkFunctionInfoOrBuilder> funcInfoBuilder_; /** * repeated .stardoc_output.StarlarkFunctionInfo func_info = 3; */ public java.util.List getFuncInfoList() { if (funcInfoBuilder_ == null) { return java.util.Collections.unmodifiableList(funcInfo_); } else { return funcInfoBuilder_.getMessageList(); } } /** * repeated .stardoc_output.StarlarkFunctionInfo func_info = 3; */ public int getFuncInfoCount() { if (funcInfoBuilder_ == null) { return funcInfo_.size(); } else { return funcInfoBuilder_.getCount(); } } /** * repeated .stardoc_output.StarlarkFunctionInfo func_info = 3; */ public com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.StarlarkFunctionInfo getFuncInfo(int index) { if (funcInfoBuilder_ == null) { return funcInfo_.get(index); } else { return funcInfoBuilder_.getMessage(index); } } /** * repeated .stardoc_output.StarlarkFunctionInfo func_info = 3; */ public Builder setFuncInfo( int index, com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.StarlarkFunctionInfo value) { if (funcInfoBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureFuncInfoIsMutable(); funcInfo_.set(index, value); onChanged(); } else { funcInfoBuilder_.setMessage(index, value); } return this; } /** * repeated .stardoc_output.StarlarkFunctionInfo func_info = 3; */ public Builder setFuncInfo( int index, com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.StarlarkFunctionInfo.Builder builderForValue) { if (funcInfoBuilder_ == null) { ensureFuncInfoIsMutable(); funcInfo_.set(index, builderForValue.build()); onChanged(); } else { funcInfoBuilder_.setMessage(index, builderForValue.build()); } return this; } /** * repeated .stardoc_output.StarlarkFunctionInfo func_info = 3; */ public Builder addFuncInfo(com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.StarlarkFunctionInfo value) { if (funcInfoBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureFuncInfoIsMutable(); funcInfo_.add(value); onChanged(); } else { funcInfoBuilder_.addMessage(value); } return this; } /** * repeated .stardoc_output.StarlarkFunctionInfo func_info = 3; */ public Builder addFuncInfo( int index, com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.StarlarkFunctionInfo value) { if (funcInfoBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureFuncInfoIsMutable(); funcInfo_.add(index, value); onChanged(); } else { funcInfoBuilder_.addMessage(index, value); } return this; } /** * repeated .stardoc_output.StarlarkFunctionInfo func_info = 3; */ public Builder addFuncInfo( com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.StarlarkFunctionInfo.Builder builderForValue) { if (funcInfoBuilder_ == null) { ensureFuncInfoIsMutable(); funcInfo_.add(builderForValue.build()); onChanged(); } else { funcInfoBuilder_.addMessage(builderForValue.build()); } return this; } /** * repeated .stardoc_output.StarlarkFunctionInfo func_info = 3; */ public Builder addFuncInfo( int index, com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.StarlarkFunctionInfo.Builder builderForValue) { if (funcInfoBuilder_ == null) { ensureFuncInfoIsMutable(); funcInfo_.add(index, builderForValue.build()); onChanged(); } else { funcInfoBuilder_.addMessage(index, builderForValue.build()); } return this; } /** * repeated .stardoc_output.StarlarkFunctionInfo func_info = 3; */ public Builder addAllFuncInfo( java.lang.Iterable values) { if (funcInfoBuilder_ == null) { ensureFuncInfoIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, funcInfo_); onChanged(); } else { funcInfoBuilder_.addAllMessages(values); } return this; } /** * repeated .stardoc_output.StarlarkFunctionInfo func_info = 3; */ public Builder clearFuncInfo() { if (funcInfoBuilder_ == null) { funcInfo_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000004); onChanged(); } else { funcInfoBuilder_.clear(); } return this; } /** * repeated .stardoc_output.StarlarkFunctionInfo func_info = 3; */ public Builder removeFuncInfo(int index) { if (funcInfoBuilder_ == null) { ensureFuncInfoIsMutable(); funcInfo_.remove(index); onChanged(); } else { funcInfoBuilder_.remove(index); } return this; } /** * repeated .stardoc_output.StarlarkFunctionInfo func_info = 3; */ public com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.StarlarkFunctionInfo.Builder getFuncInfoBuilder( int index) { return getFuncInfoFieldBuilder().getBuilder(index); } /** * repeated .stardoc_output.StarlarkFunctionInfo func_info = 3; */ public com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.StarlarkFunctionInfoOrBuilder getFuncInfoOrBuilder( int index) { if (funcInfoBuilder_ == null) { return funcInfo_.get(index); } else { return funcInfoBuilder_.getMessageOrBuilder(index); } } /** * repeated .stardoc_output.StarlarkFunctionInfo func_info = 3; */ public java.util.List getFuncInfoOrBuilderList() { if (funcInfoBuilder_ != null) { return funcInfoBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(funcInfo_); } } /** * repeated .stardoc_output.StarlarkFunctionInfo func_info = 3; */ public com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.StarlarkFunctionInfo.Builder addFuncInfoBuilder() { return getFuncInfoFieldBuilder().addBuilder( com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.StarlarkFunctionInfo.getDefaultInstance()); } /** * repeated .stardoc_output.StarlarkFunctionInfo func_info = 3; */ public com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.StarlarkFunctionInfo.Builder addFuncInfoBuilder( int index) { return getFuncInfoFieldBuilder().addBuilder( index, com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.StarlarkFunctionInfo.getDefaultInstance()); } /** * repeated .stardoc_output.StarlarkFunctionInfo func_info = 3; */ public java.util.List getFuncInfoBuilderList() { return getFuncInfoFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilder< com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.StarlarkFunctionInfo, com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.StarlarkFunctionInfo.Builder, com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.StarlarkFunctionInfoOrBuilder> getFuncInfoFieldBuilder() { if (funcInfoBuilder_ == null) { funcInfoBuilder_ = new com.google.protobuf.RepeatedFieldBuilder< com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.StarlarkFunctionInfo, com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.StarlarkFunctionInfo.Builder, com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.StarlarkFunctionInfoOrBuilder>( funcInfo_, ((bitField0_ & 0x00000004) != 0), getParentForChildren(), isClean()); funcInfo_ = null; } return funcInfoBuilder_; } private java.util.List aspectInfo_ = java.util.Collections.emptyList(); private void ensureAspectInfoIsMutable() { if (!((bitField0_ & 0x00000008) != 0)) { aspectInfo_ = new java.util.ArrayList(aspectInfo_); bitField0_ |= 0x00000008; } } private com.google.protobuf.RepeatedFieldBuilder< com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.AspectInfo, com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.AspectInfo.Builder, com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.AspectInfoOrBuilder> aspectInfoBuilder_; /** * repeated .stardoc_output.AspectInfo aspect_info = 4; */ public java.util.List getAspectInfoList() { if (aspectInfoBuilder_ == null) { return java.util.Collections.unmodifiableList(aspectInfo_); } else { return aspectInfoBuilder_.getMessageList(); } } /** * repeated .stardoc_output.AspectInfo aspect_info = 4; */ public int getAspectInfoCount() { if (aspectInfoBuilder_ == null) { return aspectInfo_.size(); } else { return aspectInfoBuilder_.getCount(); } } /** * repeated .stardoc_output.AspectInfo aspect_info = 4; */ public com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.AspectInfo getAspectInfo(int index) { if (aspectInfoBuilder_ == null) { return aspectInfo_.get(index); } else { return aspectInfoBuilder_.getMessage(index); } } /** * repeated .stardoc_output.AspectInfo aspect_info = 4; */ public Builder setAspectInfo( int index, com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.AspectInfo value) { if (aspectInfoBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureAspectInfoIsMutable(); aspectInfo_.set(index, value); onChanged(); } else { aspectInfoBuilder_.setMessage(index, value); } return this; } /** * repeated .stardoc_output.AspectInfo aspect_info = 4; */ public Builder setAspectInfo( int index, com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.AspectInfo.Builder builderForValue) { if (aspectInfoBuilder_ == null) { ensureAspectInfoIsMutable(); aspectInfo_.set(index, builderForValue.build()); onChanged(); } else { aspectInfoBuilder_.setMessage(index, builderForValue.build()); } return this; } /** * repeated .stardoc_output.AspectInfo aspect_info = 4; */ public Builder addAspectInfo(com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.AspectInfo value) { if (aspectInfoBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureAspectInfoIsMutable(); aspectInfo_.add(value); onChanged(); } else { aspectInfoBuilder_.addMessage(value); } return this; } /** * repeated .stardoc_output.AspectInfo aspect_info = 4; */ public Builder addAspectInfo( int index, com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.AspectInfo value) { if (aspectInfoBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureAspectInfoIsMutable(); aspectInfo_.add(index, value); onChanged(); } else { aspectInfoBuilder_.addMessage(index, value); } return this; } /** * repeated .stardoc_output.AspectInfo aspect_info = 4; */ public Builder addAspectInfo( com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.AspectInfo.Builder builderForValue) { if (aspectInfoBuilder_ == null) { ensureAspectInfoIsMutable(); aspectInfo_.add(builderForValue.build()); onChanged(); } else { aspectInfoBuilder_.addMessage(builderForValue.build()); } return this; } /** * repeated .stardoc_output.AspectInfo aspect_info = 4; */ public Builder addAspectInfo( int index, com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.AspectInfo.Builder builderForValue) { if (aspectInfoBuilder_ == null) { ensureAspectInfoIsMutable(); aspectInfo_.add(index, builderForValue.build()); onChanged(); } else { aspectInfoBuilder_.addMessage(index, builderForValue.build()); } return this; } /** * repeated .stardoc_output.AspectInfo aspect_info = 4; */ public Builder addAllAspectInfo( java.lang.Iterable values) { if (aspectInfoBuilder_ == null) { ensureAspectInfoIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, aspectInfo_); onChanged(); } else { aspectInfoBuilder_.addAllMessages(values); } return this; } /** * repeated .stardoc_output.AspectInfo aspect_info = 4; */ public Builder clearAspectInfo() { if (aspectInfoBuilder_ == null) { aspectInfo_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000008); onChanged(); } else { aspectInfoBuilder_.clear(); } return this; } /** * repeated .stardoc_output.AspectInfo aspect_info = 4; */ public Builder removeAspectInfo(int index) { if (aspectInfoBuilder_ == null) { ensureAspectInfoIsMutable(); aspectInfo_.remove(index); onChanged(); } else { aspectInfoBuilder_.remove(index); } return this; } /** * repeated .stardoc_output.AspectInfo aspect_info = 4; */ public com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.AspectInfo.Builder getAspectInfoBuilder( int index) { return getAspectInfoFieldBuilder().getBuilder(index); } /** * repeated .stardoc_output.AspectInfo aspect_info = 4; */ public com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.AspectInfoOrBuilder getAspectInfoOrBuilder( int index) { if (aspectInfoBuilder_ == null) { return aspectInfo_.get(index); } else { return aspectInfoBuilder_.getMessageOrBuilder(index); } } /** * repeated .stardoc_output.AspectInfo aspect_info = 4; */ public java.util.List getAspectInfoOrBuilderList() { if (aspectInfoBuilder_ != null) { return aspectInfoBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(aspectInfo_); } } /** * repeated .stardoc_output.AspectInfo aspect_info = 4; */ public com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.AspectInfo.Builder addAspectInfoBuilder() { return getAspectInfoFieldBuilder().addBuilder( com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.AspectInfo.getDefaultInstance()); } /** * repeated .stardoc_output.AspectInfo aspect_info = 4; */ public com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.AspectInfo.Builder addAspectInfoBuilder( int index) { return getAspectInfoFieldBuilder().addBuilder( index, com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.AspectInfo.getDefaultInstance()); } /** * repeated .stardoc_output.AspectInfo aspect_info = 4; */ public java.util.List getAspectInfoBuilderList() { return getAspectInfoFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilder< com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.AspectInfo, com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.AspectInfo.Builder, com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.AspectInfoOrBuilder> getAspectInfoFieldBuilder() { if (aspectInfoBuilder_ == null) { aspectInfoBuilder_ = new com.google.protobuf.RepeatedFieldBuilder< com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.AspectInfo, com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.AspectInfo.Builder, com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.AspectInfoOrBuilder>( aspectInfo_, ((bitField0_ & 0x00000008) != 0), getParentForChildren(), isClean()); aspectInfo_ = null; } return aspectInfoBuilder_; } private java.lang.Object moduleDocstring_ = ""; /** *
       * The docstring present at the top of the input Starlark file.
       * 
* * string module_docstring = 5; * @return The moduleDocstring. */ public java.lang.String getModuleDocstring() { java.lang.Object ref = moduleDocstring_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); moduleDocstring_ = s; return s; } else { return (java.lang.String) ref; } } /** *
       * The docstring present at the top of the input Starlark file.
       * 
* * string module_docstring = 5; * @return The bytes for moduleDocstring. */ public com.google.protobuf.ByteString getModuleDocstringBytes() { java.lang.Object ref = moduleDocstring_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); moduleDocstring_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
       * The docstring present at the top of the input Starlark file.
       * 
* * string module_docstring = 5; * @param value The moduleDocstring to set. * @return This builder for chaining. */ public Builder setModuleDocstring( java.lang.String value) { if (value == null) { throw new NullPointerException(); } moduleDocstring_ = value; bitField0_ |= 0x00000010; onChanged(); return this; } /** *
       * The docstring present at the top of the input Starlark file.
       * 
* * string module_docstring = 5; * @return This builder for chaining. */ public Builder clearModuleDocstring() { moduleDocstring_ = getDefaultInstance().getModuleDocstring(); bitField0_ = (bitField0_ & ~0x00000010); onChanged(); return this; } /** *
       * The docstring present at the top of the input Starlark file.
       * 
* * string module_docstring = 5; * @param value The bytes for moduleDocstring to set. * @return This builder for chaining. */ public Builder setModuleDocstringBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); moduleDocstring_ = value; bitField0_ |= 0x00000010; onChanged(); return this; } private java.lang.Object file_ = ""; /** *
       * The display form of the label of the module file (as seen from the
       * starlark_doc_extract or Stardoc target's repo). Unset when there is no
       * module file (e.g. when the module is a REPL, or in Bazel's internal tests).
       * 
* * string file = 6; * @return The file. */ public java.lang.String getFile() { java.lang.Object ref = file_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); file_ = s; return s; } else { return (java.lang.String) ref; } } /** *
       * The display form of the label of the module file (as seen from the
       * starlark_doc_extract or Stardoc target's repo). Unset when there is no
       * module file (e.g. when the module is a REPL, or in Bazel's internal tests).
       * 
* * string file = 6; * @return The bytes for file. */ public com.google.protobuf.ByteString getFileBytes() { java.lang.Object ref = file_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); file_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
       * The display form of the label of the module file (as seen from the
       * starlark_doc_extract or Stardoc target's repo). Unset when there is no
       * module file (e.g. when the module is a REPL, or in Bazel's internal tests).
       * 
* * string file = 6; * @param value The file to set. * @return This builder for chaining. */ public Builder setFile( java.lang.String value) { if (value == null) { throw new NullPointerException(); } file_ = value; bitField0_ |= 0x00000020; onChanged(); return this; } /** *
       * The display form of the label of the module file (as seen from the
       * starlark_doc_extract or Stardoc target's repo). Unset when there is no
       * module file (e.g. when the module is a REPL, or in Bazel's internal tests).
       * 
* * string file = 6; * @return This builder for chaining. */ public Builder clearFile() { file_ = getDefaultInstance().getFile(); bitField0_ = (bitField0_ & ~0x00000020); onChanged(); return this; } /** *
       * The display form of the label of the module file (as seen from the
       * starlark_doc_extract or Stardoc target's repo). Unset when there is no
       * module file (e.g. when the module is a REPL, or in Bazel's internal tests).
       * 
* * string file = 6; * @param value The bytes for file to set. * @return This builder for chaining. */ public Builder setFileBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); file_ = value; bitField0_ |= 0x00000020; onChanged(); return this; } private java.util.List moduleExtensionInfo_ = java.util.Collections.emptyList(); private void ensureModuleExtensionInfoIsMutable() { if (!((bitField0_ & 0x00000040) != 0)) { moduleExtensionInfo_ = new java.util.ArrayList(moduleExtensionInfo_); bitField0_ |= 0x00000040; } } private com.google.protobuf.RepeatedFieldBuilder< com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.ModuleExtensionInfo, com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.ModuleExtensionInfo.Builder, com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.ModuleExtensionInfoOrBuilder> moduleExtensionInfoBuilder_; /** * repeated .stardoc_output.ModuleExtensionInfo module_extension_info = 7; */ public java.util.List getModuleExtensionInfoList() { if (moduleExtensionInfoBuilder_ == null) { return java.util.Collections.unmodifiableList(moduleExtensionInfo_); } else { return moduleExtensionInfoBuilder_.getMessageList(); } } /** * repeated .stardoc_output.ModuleExtensionInfo module_extension_info = 7; */ public int getModuleExtensionInfoCount() { if (moduleExtensionInfoBuilder_ == null) { return moduleExtensionInfo_.size(); } else { return moduleExtensionInfoBuilder_.getCount(); } } /** * repeated .stardoc_output.ModuleExtensionInfo module_extension_info = 7; */ public com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.ModuleExtensionInfo getModuleExtensionInfo(int index) { if (moduleExtensionInfoBuilder_ == null) { return moduleExtensionInfo_.get(index); } else { return moduleExtensionInfoBuilder_.getMessage(index); } } /** * repeated .stardoc_output.ModuleExtensionInfo module_extension_info = 7; */ public Builder setModuleExtensionInfo( int index, com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.ModuleExtensionInfo value) { if (moduleExtensionInfoBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureModuleExtensionInfoIsMutable(); moduleExtensionInfo_.set(index, value); onChanged(); } else { moduleExtensionInfoBuilder_.setMessage(index, value); } return this; } /** * repeated .stardoc_output.ModuleExtensionInfo module_extension_info = 7; */ public Builder setModuleExtensionInfo( int index, com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.ModuleExtensionInfo.Builder builderForValue) { if (moduleExtensionInfoBuilder_ == null) { ensureModuleExtensionInfoIsMutable(); moduleExtensionInfo_.set(index, builderForValue.build()); onChanged(); } else { moduleExtensionInfoBuilder_.setMessage(index, builderForValue.build()); } return this; } /** * repeated .stardoc_output.ModuleExtensionInfo module_extension_info = 7; */ public Builder addModuleExtensionInfo(com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.ModuleExtensionInfo value) { if (moduleExtensionInfoBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureModuleExtensionInfoIsMutable(); moduleExtensionInfo_.add(value); onChanged(); } else { moduleExtensionInfoBuilder_.addMessage(value); } return this; } /** * repeated .stardoc_output.ModuleExtensionInfo module_extension_info = 7; */ public Builder addModuleExtensionInfo( int index, com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.ModuleExtensionInfo value) { if (moduleExtensionInfoBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureModuleExtensionInfoIsMutable(); moduleExtensionInfo_.add(index, value); onChanged(); } else { moduleExtensionInfoBuilder_.addMessage(index, value); } return this; } /** * repeated .stardoc_output.ModuleExtensionInfo module_extension_info = 7; */ public Builder addModuleExtensionInfo( com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.ModuleExtensionInfo.Builder builderForValue) { if (moduleExtensionInfoBuilder_ == null) { ensureModuleExtensionInfoIsMutable(); moduleExtensionInfo_.add(builderForValue.build()); onChanged(); } else { moduleExtensionInfoBuilder_.addMessage(builderForValue.build()); } return this; } /** * repeated .stardoc_output.ModuleExtensionInfo module_extension_info = 7; */ public Builder addModuleExtensionInfo( int index, com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.ModuleExtensionInfo.Builder builderForValue) { if (moduleExtensionInfoBuilder_ == null) { ensureModuleExtensionInfoIsMutable(); moduleExtensionInfo_.add(index, builderForValue.build()); onChanged(); } else { moduleExtensionInfoBuilder_.addMessage(index, builderForValue.build()); } return this; } /** * repeated .stardoc_output.ModuleExtensionInfo module_extension_info = 7; */ public Builder addAllModuleExtensionInfo( java.lang.Iterable values) { if (moduleExtensionInfoBuilder_ == null) { ensureModuleExtensionInfoIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, moduleExtensionInfo_); onChanged(); } else { moduleExtensionInfoBuilder_.addAllMessages(values); } return this; } /** * repeated .stardoc_output.ModuleExtensionInfo module_extension_info = 7; */ public Builder clearModuleExtensionInfo() { if (moduleExtensionInfoBuilder_ == null) { moduleExtensionInfo_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000040); onChanged(); } else { moduleExtensionInfoBuilder_.clear(); } return this; } /** * repeated .stardoc_output.ModuleExtensionInfo module_extension_info = 7; */ public Builder removeModuleExtensionInfo(int index) { if (moduleExtensionInfoBuilder_ == null) { ensureModuleExtensionInfoIsMutable(); moduleExtensionInfo_.remove(index); onChanged(); } else { moduleExtensionInfoBuilder_.remove(index); } return this; } /** * repeated .stardoc_output.ModuleExtensionInfo module_extension_info = 7; */ public com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.ModuleExtensionInfo.Builder getModuleExtensionInfoBuilder( int index) { return getModuleExtensionInfoFieldBuilder().getBuilder(index); } /** * repeated .stardoc_output.ModuleExtensionInfo module_extension_info = 7; */ public com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.ModuleExtensionInfoOrBuilder getModuleExtensionInfoOrBuilder( int index) { if (moduleExtensionInfoBuilder_ == null) { return moduleExtensionInfo_.get(index); } else { return moduleExtensionInfoBuilder_.getMessageOrBuilder(index); } } /** * repeated .stardoc_output.ModuleExtensionInfo module_extension_info = 7; */ public java.util.List getModuleExtensionInfoOrBuilderList() { if (moduleExtensionInfoBuilder_ != null) { return moduleExtensionInfoBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(moduleExtensionInfo_); } } /** * repeated .stardoc_output.ModuleExtensionInfo module_extension_info = 7; */ public com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.ModuleExtensionInfo.Builder addModuleExtensionInfoBuilder() { return getModuleExtensionInfoFieldBuilder().addBuilder( com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.ModuleExtensionInfo.getDefaultInstance()); } /** * repeated .stardoc_output.ModuleExtensionInfo module_extension_info = 7; */ public com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.ModuleExtensionInfo.Builder addModuleExtensionInfoBuilder( int index) { return getModuleExtensionInfoFieldBuilder().addBuilder( index, com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.ModuleExtensionInfo.getDefaultInstance()); } /** * repeated .stardoc_output.ModuleExtensionInfo module_extension_info = 7; */ public java.util.List getModuleExtensionInfoBuilderList() { return getModuleExtensionInfoFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilder< com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.ModuleExtensionInfo, com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.ModuleExtensionInfo.Builder, com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.ModuleExtensionInfoOrBuilder> getModuleExtensionInfoFieldBuilder() { if (moduleExtensionInfoBuilder_ == null) { moduleExtensionInfoBuilder_ = new com.google.protobuf.RepeatedFieldBuilder< com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.ModuleExtensionInfo, com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.ModuleExtensionInfo.Builder, com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.ModuleExtensionInfoOrBuilder>( moduleExtensionInfo_, ((bitField0_ & 0x00000040) != 0), getParentForChildren(), isClean()); moduleExtensionInfo_ = null; } return moduleExtensionInfoBuilder_; } private java.util.List repositoryRuleInfo_ = java.util.Collections.emptyList(); private void ensureRepositoryRuleInfoIsMutable() { if (!((bitField0_ & 0x00000080) != 0)) { repositoryRuleInfo_ = new java.util.ArrayList(repositoryRuleInfo_); bitField0_ |= 0x00000080; } } private com.google.protobuf.RepeatedFieldBuilder< com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.RepositoryRuleInfo, com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.RepositoryRuleInfo.Builder, com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.RepositoryRuleInfoOrBuilder> repositoryRuleInfoBuilder_; /** * repeated .stardoc_output.RepositoryRuleInfo repository_rule_info = 8; */ public java.util.List getRepositoryRuleInfoList() { if (repositoryRuleInfoBuilder_ == null) { return java.util.Collections.unmodifiableList(repositoryRuleInfo_); } else { return repositoryRuleInfoBuilder_.getMessageList(); } } /** * repeated .stardoc_output.RepositoryRuleInfo repository_rule_info = 8; */ public int getRepositoryRuleInfoCount() { if (repositoryRuleInfoBuilder_ == null) { return repositoryRuleInfo_.size(); } else { return repositoryRuleInfoBuilder_.getCount(); } } /** * repeated .stardoc_output.RepositoryRuleInfo repository_rule_info = 8; */ public com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.RepositoryRuleInfo getRepositoryRuleInfo(int index) { if (repositoryRuleInfoBuilder_ == null) { return repositoryRuleInfo_.get(index); } else { return repositoryRuleInfoBuilder_.getMessage(index); } } /** * repeated .stardoc_output.RepositoryRuleInfo repository_rule_info = 8; */ public Builder setRepositoryRuleInfo( int index, com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.RepositoryRuleInfo value) { if (repositoryRuleInfoBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureRepositoryRuleInfoIsMutable(); repositoryRuleInfo_.set(index, value); onChanged(); } else { repositoryRuleInfoBuilder_.setMessage(index, value); } return this; } /** * repeated .stardoc_output.RepositoryRuleInfo repository_rule_info = 8; */ public Builder setRepositoryRuleInfo( int index, com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.RepositoryRuleInfo.Builder builderForValue) { if (repositoryRuleInfoBuilder_ == null) { ensureRepositoryRuleInfoIsMutable(); repositoryRuleInfo_.set(index, builderForValue.build()); onChanged(); } else { repositoryRuleInfoBuilder_.setMessage(index, builderForValue.build()); } return this; } /** * repeated .stardoc_output.RepositoryRuleInfo repository_rule_info = 8; */ public Builder addRepositoryRuleInfo(com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.RepositoryRuleInfo value) { if (repositoryRuleInfoBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureRepositoryRuleInfoIsMutable(); repositoryRuleInfo_.add(value); onChanged(); } else { repositoryRuleInfoBuilder_.addMessage(value); } return this; } /** * repeated .stardoc_output.RepositoryRuleInfo repository_rule_info = 8; */ public Builder addRepositoryRuleInfo( int index, com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.RepositoryRuleInfo value) { if (repositoryRuleInfoBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureRepositoryRuleInfoIsMutable(); repositoryRuleInfo_.add(index, value); onChanged(); } else { repositoryRuleInfoBuilder_.addMessage(index, value); } return this; } /** * repeated .stardoc_output.RepositoryRuleInfo repository_rule_info = 8; */ public Builder addRepositoryRuleInfo( com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.RepositoryRuleInfo.Builder builderForValue) { if (repositoryRuleInfoBuilder_ == null) { ensureRepositoryRuleInfoIsMutable(); repositoryRuleInfo_.add(builderForValue.build()); onChanged(); } else { repositoryRuleInfoBuilder_.addMessage(builderForValue.build()); } return this; } /** * repeated .stardoc_output.RepositoryRuleInfo repository_rule_info = 8; */ public Builder addRepositoryRuleInfo( int index, com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.RepositoryRuleInfo.Builder builderForValue) { if (repositoryRuleInfoBuilder_ == null) { ensureRepositoryRuleInfoIsMutable(); repositoryRuleInfo_.add(index, builderForValue.build()); onChanged(); } else { repositoryRuleInfoBuilder_.addMessage(index, builderForValue.build()); } return this; } /** * repeated .stardoc_output.RepositoryRuleInfo repository_rule_info = 8; */ public Builder addAllRepositoryRuleInfo( java.lang.Iterable values) { if (repositoryRuleInfoBuilder_ == null) { ensureRepositoryRuleInfoIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, repositoryRuleInfo_); onChanged(); } else { repositoryRuleInfoBuilder_.addAllMessages(values); } return this; } /** * repeated .stardoc_output.RepositoryRuleInfo repository_rule_info = 8; */ public Builder clearRepositoryRuleInfo() { if (repositoryRuleInfoBuilder_ == null) { repositoryRuleInfo_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000080); onChanged(); } else { repositoryRuleInfoBuilder_.clear(); } return this; } /** * repeated .stardoc_output.RepositoryRuleInfo repository_rule_info = 8; */ public Builder removeRepositoryRuleInfo(int index) { if (repositoryRuleInfoBuilder_ == null) { ensureRepositoryRuleInfoIsMutable(); repositoryRuleInfo_.remove(index); onChanged(); } else { repositoryRuleInfoBuilder_.remove(index); } return this; } /** * repeated .stardoc_output.RepositoryRuleInfo repository_rule_info = 8; */ public com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.RepositoryRuleInfo.Builder getRepositoryRuleInfoBuilder( int index) { return getRepositoryRuleInfoFieldBuilder().getBuilder(index); } /** * repeated .stardoc_output.RepositoryRuleInfo repository_rule_info = 8; */ public com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.RepositoryRuleInfoOrBuilder getRepositoryRuleInfoOrBuilder( int index) { if (repositoryRuleInfoBuilder_ == null) { return repositoryRuleInfo_.get(index); } else { return repositoryRuleInfoBuilder_.getMessageOrBuilder(index); } } /** * repeated .stardoc_output.RepositoryRuleInfo repository_rule_info = 8; */ public java.util.List getRepositoryRuleInfoOrBuilderList() { if (repositoryRuleInfoBuilder_ != null) { return repositoryRuleInfoBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(repositoryRuleInfo_); } } /** * repeated .stardoc_output.RepositoryRuleInfo repository_rule_info = 8; */ public com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.RepositoryRuleInfo.Builder addRepositoryRuleInfoBuilder() { return getRepositoryRuleInfoFieldBuilder().addBuilder( com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.RepositoryRuleInfo.getDefaultInstance()); } /** * repeated .stardoc_output.RepositoryRuleInfo repository_rule_info = 8; */ public com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.RepositoryRuleInfo.Builder addRepositoryRuleInfoBuilder( int index) { return getRepositoryRuleInfoFieldBuilder().addBuilder( index, com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.RepositoryRuleInfo.getDefaultInstance()); } /** * repeated .stardoc_output.RepositoryRuleInfo repository_rule_info = 8; */ public java.util.List getRepositoryRuleInfoBuilderList() { return getRepositoryRuleInfoFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilder< com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.RepositoryRuleInfo, com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.RepositoryRuleInfo.Builder, com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.RepositoryRuleInfoOrBuilder> getRepositoryRuleInfoFieldBuilder() { if (repositoryRuleInfoBuilder_ == null) { repositoryRuleInfoBuilder_ = new com.google.protobuf.RepeatedFieldBuilder< com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.RepositoryRuleInfo, com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.RepositoryRuleInfo.Builder, com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.RepositoryRuleInfoOrBuilder>( repositoryRuleInfo_, ((bitField0_ & 0x00000080) != 0), getParentForChildren(), isClean()); repositoryRuleInfo_ = null; } return repositoryRuleInfoBuilder_; } private java.util.List macroInfo_ = java.util.Collections.emptyList(); private void ensureMacroInfoIsMutable() { if (!((bitField0_ & 0x00000100) != 0)) { macroInfo_ = new java.util.ArrayList(macroInfo_); bitField0_ |= 0x00000100; } } private com.google.protobuf.RepeatedFieldBuilder< com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.MacroInfo, com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.MacroInfo.Builder, com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.MacroInfoOrBuilder> macroInfoBuilder_; /** * repeated .stardoc_output.MacroInfo macro_info = 9; */ public java.util.List getMacroInfoList() { if (macroInfoBuilder_ == null) { return java.util.Collections.unmodifiableList(macroInfo_); } else { return macroInfoBuilder_.getMessageList(); } } /** * repeated .stardoc_output.MacroInfo macro_info = 9; */ public int getMacroInfoCount() { if (macroInfoBuilder_ == null) { return macroInfo_.size(); } else { return macroInfoBuilder_.getCount(); } } /** * repeated .stardoc_output.MacroInfo macro_info = 9; */ public com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.MacroInfo getMacroInfo(int index) { if (macroInfoBuilder_ == null) { return macroInfo_.get(index); } else { return macroInfoBuilder_.getMessage(index); } } /** * repeated .stardoc_output.MacroInfo macro_info = 9; */ public Builder setMacroInfo( int index, com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.MacroInfo value) { if (macroInfoBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureMacroInfoIsMutable(); macroInfo_.set(index, value); onChanged(); } else { macroInfoBuilder_.setMessage(index, value); } return this; } /** * repeated .stardoc_output.MacroInfo macro_info = 9; */ public Builder setMacroInfo( int index, com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.MacroInfo.Builder builderForValue) { if (macroInfoBuilder_ == null) { ensureMacroInfoIsMutable(); macroInfo_.set(index, builderForValue.build()); onChanged(); } else { macroInfoBuilder_.setMessage(index, builderForValue.build()); } return this; } /** * repeated .stardoc_output.MacroInfo macro_info = 9; */ public Builder addMacroInfo(com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.MacroInfo value) { if (macroInfoBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureMacroInfoIsMutable(); macroInfo_.add(value); onChanged(); } else { macroInfoBuilder_.addMessage(value); } return this; } /** * repeated .stardoc_output.MacroInfo macro_info = 9; */ public Builder addMacroInfo( int index, com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.MacroInfo value) { if (macroInfoBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureMacroInfoIsMutable(); macroInfo_.add(index, value); onChanged(); } else { macroInfoBuilder_.addMessage(index, value); } return this; } /** * repeated .stardoc_output.MacroInfo macro_info = 9; */ public Builder addMacroInfo( com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.MacroInfo.Builder builderForValue) { if (macroInfoBuilder_ == null) { ensureMacroInfoIsMutable(); macroInfo_.add(builderForValue.build()); onChanged(); } else { macroInfoBuilder_.addMessage(builderForValue.build()); } return this; } /** * repeated .stardoc_output.MacroInfo macro_info = 9; */ public Builder addMacroInfo( int index, com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.MacroInfo.Builder builderForValue) { if (macroInfoBuilder_ == null) { ensureMacroInfoIsMutable(); macroInfo_.add(index, builderForValue.build()); onChanged(); } else { macroInfoBuilder_.addMessage(index, builderForValue.build()); } return this; } /** * repeated .stardoc_output.MacroInfo macro_info = 9; */ public Builder addAllMacroInfo( java.lang.Iterable values) { if (macroInfoBuilder_ == null) { ensureMacroInfoIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, macroInfo_); onChanged(); } else { macroInfoBuilder_.addAllMessages(values); } return this; } /** * repeated .stardoc_output.MacroInfo macro_info = 9; */ public Builder clearMacroInfo() { if (macroInfoBuilder_ == null) { macroInfo_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000100); onChanged(); } else { macroInfoBuilder_.clear(); } return this; } /** * repeated .stardoc_output.MacroInfo macro_info = 9; */ public Builder removeMacroInfo(int index) { if (macroInfoBuilder_ == null) { ensureMacroInfoIsMutable(); macroInfo_.remove(index); onChanged(); } else { macroInfoBuilder_.remove(index); } return this; } /** * repeated .stardoc_output.MacroInfo macro_info = 9; */ public com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.MacroInfo.Builder getMacroInfoBuilder( int index) { return getMacroInfoFieldBuilder().getBuilder(index); } /** * repeated .stardoc_output.MacroInfo macro_info = 9; */ public com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.MacroInfoOrBuilder getMacroInfoOrBuilder( int index) { if (macroInfoBuilder_ == null) { return macroInfo_.get(index); } else { return macroInfoBuilder_.getMessageOrBuilder(index); } } /** * repeated .stardoc_output.MacroInfo macro_info = 9; */ public java.util.List getMacroInfoOrBuilderList() { if (macroInfoBuilder_ != null) { return macroInfoBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(macroInfo_); } } /** * repeated .stardoc_output.MacroInfo macro_info = 9; */ public com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.MacroInfo.Builder addMacroInfoBuilder() { return getMacroInfoFieldBuilder().addBuilder( com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.MacroInfo.getDefaultInstance()); } /** * repeated .stardoc_output.MacroInfo macro_info = 9; */ public com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.MacroInfo.Builder addMacroInfoBuilder( int index) { return getMacroInfoFieldBuilder().addBuilder( index, com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.MacroInfo.getDefaultInstance()); } /** * repeated .stardoc_output.MacroInfo macro_info = 9; */ public java.util.List getMacroInfoBuilderList() { return getMacroInfoFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilder< com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.MacroInfo, com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.MacroInfo.Builder, com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.MacroInfoOrBuilder> getMacroInfoFieldBuilder() { if (macroInfoBuilder_ == null) { macroInfoBuilder_ = new com.google.protobuf.RepeatedFieldBuilder< com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.MacroInfo, com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.MacroInfo.Builder, com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.MacroInfoOrBuilder>( macroInfo_, ((bitField0_ & 0x00000100) != 0), getParentForChildren(), isClean()); macroInfo_ = null; } return macroInfoBuilder_; } // @@protoc_insertion_point(builder_scope:stardoc_output.ModuleInfo) } // @@protoc_insertion_point(class_scope:stardoc_output.ModuleInfo) private static final com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.ModuleInfo DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.ModuleInfo(); } public static com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.ModuleInfo getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public ModuleInfo parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { Builder builder = newBuilder(); try { builder.mergeFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(builder.buildPartial()); } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e) .setUnfinishedMessage(builder.buildPartial()); } return builder.buildPartial(); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override public com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.ModuleInfo getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface RuleInfoOrBuilder extends // @@protoc_insertion_point(interface_extends:stardoc_output.RuleInfo) com.google.protobuf.MessageOrBuilder { /** *
     * In Stardoc and starlark_doc_extract output, this is the name under which
     * the rule is made accessible to a user of this module, including any structs
     * it is nested in, for example "foo.foo_library".
     *
     * In query output, this is the name under which the rule was defined (which
     * might be a private symbol prefixed with "_").
     * 
* * string rule_name = 1; * @return The ruleName. */ java.lang.String getRuleName(); /** *
     * In Stardoc and starlark_doc_extract output, this is the name under which
     * the rule is made accessible to a user of this module, including any structs
     * it is nested in, for example "foo.foo_library".
     *
     * In query output, this is the name under which the rule was defined (which
     * might be a private symbol prefixed with "_").
     * 
* * string rule_name = 1; * @return The bytes for ruleName. */ com.google.protobuf.ByteString getRuleNameBytes(); /** *
     * The documentation string of the rule.
     * 
* * string doc_string = 2; * @return The docString. */ java.lang.String getDocString(); /** *
     * The documentation string of the rule.
     * 
* * string doc_string = 2; * @return The bytes for docString. */ com.google.protobuf.ByteString getDocStringBytes(); /** *
     * The attributes of the rule.
     * 
* * repeated .stardoc_output.AttributeInfo attribute = 3; */ java.util.List getAttributeList(); /** *
     * The attributes of the rule.
     * 
* * repeated .stardoc_output.AttributeInfo attribute = 3; */ com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.AttributeInfo getAttribute(int index); /** *
     * The attributes of the rule.
     * 
* * repeated .stardoc_output.AttributeInfo attribute = 3; */ int getAttributeCount(); /** *
     * The attributes of the rule.
     * 
* * repeated .stardoc_output.AttributeInfo attribute = 3; */ java.util.List getAttributeOrBuilderList(); /** *
     * The attributes of the rule.
     * 
* * repeated .stardoc_output.AttributeInfo attribute = 3; */ com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.AttributeInfoOrBuilder getAttributeOrBuilder( int index); /** *
     * The module where and the name under which the rule was originally declared.
     * 
* * .stardoc_output.OriginKey origin_key = 4; * @return Whether the originKey field is set. */ boolean hasOriginKey(); /** *
     * The module where and the name under which the rule was originally declared.
     * 
* * .stardoc_output.OriginKey origin_key = 4; * @return The originKey. */ com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.OriginKey getOriginKey(); /** *
     * The module where and the name under which the rule was originally declared.
     * 
* * .stardoc_output.OriginKey origin_key = 4; */ com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.OriginKeyOrBuilder getOriginKeyOrBuilder(); /** *
     * The list of providers that the rule's implementation must return. Unset if
     * the rule lists no advertised providers.
     * 
* * .stardoc_output.ProviderNameGroup advertised_providers = 5; * @return Whether the advertisedProviders field is set. */ boolean hasAdvertisedProviders(); /** *
     * The list of providers that the rule's implementation must return. Unset if
     * the rule lists no advertised providers.
     * 
* * .stardoc_output.ProviderNameGroup advertised_providers = 5; * @return The advertisedProviders. */ com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.ProviderNameGroup getAdvertisedProviders(); /** *
     * The list of providers that the rule's implementation must return. Unset if
     * the rule lists no advertised providers.
     * 
* * .stardoc_output.ProviderNameGroup advertised_providers = 5; */ com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.ProviderNameGroupOrBuilder getAdvertisedProvidersOrBuilder(); /** *
     * True if this is a test rule.
     * 
* * bool test = 6; * @return The test. */ boolean getTest(); /** *
     * True if this is an executable rule.
     *
     * Note: if test is true, executable is also true (test rules are implicitly
     * executable).
     * 
* * bool executable = 7; * @return The executable. */ boolean getExecutable(); } /** *
   * Representation of a Starlark rule definition.
   * 
* * Protobuf type {@code stardoc_output.RuleInfo} */ public static final class RuleInfo extends com.google.protobuf.GeneratedMessage implements // @@protoc_insertion_point(message_implements:stardoc_output.RuleInfo) RuleInfoOrBuilder { private static final long serialVersionUID = 0L; static { com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, /* major= */ 4, /* minor= */ 28, /* patch= */ 3, /* suffix= */ "", RuleInfo.class.getName()); } // Use RuleInfo.newBuilder() to construct. private RuleInfo(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); } private RuleInfo() { ruleName_ = ""; docString_ = ""; attribute_ = java.util.Collections.emptyList(); } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.internal_static_stardoc_output_RuleInfo_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.internal_static_stardoc_output_RuleInfo_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.RuleInfo.class, com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.RuleInfo.Builder.class); } private int bitField0_; public static final int RULE_NAME_FIELD_NUMBER = 1; @SuppressWarnings("serial") private volatile java.lang.Object ruleName_ = ""; /** *
     * In Stardoc and starlark_doc_extract output, this is the name under which
     * the rule is made accessible to a user of this module, including any structs
     * it is nested in, for example "foo.foo_library".
     *
     * In query output, this is the name under which the rule was defined (which
     * might be a private symbol prefixed with "_").
     * 
* * string rule_name = 1; * @return The ruleName. */ @java.lang.Override public java.lang.String getRuleName() { java.lang.Object ref = ruleName_; 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(); ruleName_ = s; return s; } } /** *
     * In Stardoc and starlark_doc_extract output, this is the name under which
     * the rule is made accessible to a user of this module, including any structs
     * it is nested in, for example "foo.foo_library".
     *
     * In query output, this is the name under which the rule was defined (which
     * might be a private symbol prefixed with "_").
     * 
* * string rule_name = 1; * @return The bytes for ruleName. */ @java.lang.Override public com.google.protobuf.ByteString getRuleNameBytes() { java.lang.Object ref = ruleName_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); ruleName_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int DOC_STRING_FIELD_NUMBER = 2; @SuppressWarnings("serial") private volatile java.lang.Object docString_ = ""; /** *
     * The documentation string of the rule.
     * 
* * string doc_string = 2; * @return The docString. */ @java.lang.Override public java.lang.String getDocString() { java.lang.Object ref = docString_; 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(); docString_ = s; return s; } } /** *
     * The documentation string of the rule.
     * 
* * string doc_string = 2; * @return The bytes for docString. */ @java.lang.Override public com.google.protobuf.ByteString getDocStringBytes() { java.lang.Object ref = docString_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); docString_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int ATTRIBUTE_FIELD_NUMBER = 3; @SuppressWarnings("serial") private java.util.List attribute_; /** *
     * The attributes of the rule.
     * 
* * repeated .stardoc_output.AttributeInfo attribute = 3; */ @java.lang.Override public java.util.List getAttributeList() { return attribute_; } /** *
     * The attributes of the rule.
     * 
* * repeated .stardoc_output.AttributeInfo attribute = 3; */ @java.lang.Override public java.util.List getAttributeOrBuilderList() { return attribute_; } /** *
     * The attributes of the rule.
     * 
* * repeated .stardoc_output.AttributeInfo attribute = 3; */ @java.lang.Override public int getAttributeCount() { return attribute_.size(); } /** *
     * The attributes of the rule.
     * 
* * repeated .stardoc_output.AttributeInfo attribute = 3; */ @java.lang.Override public com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.AttributeInfo getAttribute(int index) { return attribute_.get(index); } /** *
     * The attributes of the rule.
     * 
* * repeated .stardoc_output.AttributeInfo attribute = 3; */ @java.lang.Override public com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.AttributeInfoOrBuilder getAttributeOrBuilder( int index) { return attribute_.get(index); } public static final int ORIGIN_KEY_FIELD_NUMBER = 4; private com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.OriginKey originKey_; /** *
     * The module where and the name under which the rule was originally declared.
     * 
* * .stardoc_output.OriginKey origin_key = 4; * @return Whether the originKey field is set. */ @java.lang.Override public boolean hasOriginKey() { return ((bitField0_ & 0x00000001) != 0); } /** *
     * The module where and the name under which the rule was originally declared.
     * 
* * .stardoc_output.OriginKey origin_key = 4; * @return The originKey. */ @java.lang.Override public com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.OriginKey getOriginKey() { return originKey_ == null ? com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.OriginKey.getDefaultInstance() : originKey_; } /** *
     * The module where and the name under which the rule was originally declared.
     * 
* * .stardoc_output.OriginKey origin_key = 4; */ @java.lang.Override public com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.OriginKeyOrBuilder getOriginKeyOrBuilder() { return originKey_ == null ? com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.OriginKey.getDefaultInstance() : originKey_; } public static final int ADVERTISED_PROVIDERS_FIELD_NUMBER = 5; private com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.ProviderNameGroup advertisedProviders_; /** *
     * The list of providers that the rule's implementation must return. Unset if
     * the rule lists no advertised providers.
     * 
* * .stardoc_output.ProviderNameGroup advertised_providers = 5; * @return Whether the advertisedProviders field is set. */ @java.lang.Override public boolean hasAdvertisedProviders() { return ((bitField0_ & 0x00000002) != 0); } /** *
     * The list of providers that the rule's implementation must return. Unset if
     * the rule lists no advertised providers.
     * 
* * .stardoc_output.ProviderNameGroup advertised_providers = 5; * @return The advertisedProviders. */ @java.lang.Override public com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.ProviderNameGroup getAdvertisedProviders() { return advertisedProviders_ == null ? com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.ProviderNameGroup.getDefaultInstance() : advertisedProviders_; } /** *
     * The list of providers that the rule's implementation must return. Unset if
     * the rule lists no advertised providers.
     * 
* * .stardoc_output.ProviderNameGroup advertised_providers = 5; */ @java.lang.Override public com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.ProviderNameGroupOrBuilder getAdvertisedProvidersOrBuilder() { return advertisedProviders_ == null ? com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.ProviderNameGroup.getDefaultInstance() : advertisedProviders_; } public static final int TEST_FIELD_NUMBER = 6; private boolean test_ = false; /** *
     * True if this is a test rule.
     * 
* * bool test = 6; * @return The test. */ @java.lang.Override public boolean getTest() { return test_; } public static final int EXECUTABLE_FIELD_NUMBER = 7; private boolean executable_ = false; /** *
     * True if this is an executable rule.
     *
     * Note: if test is true, executable is also true (test rules are implicitly
     * executable).
     * 
* * bool executable = 7; * @return The executable. */ @java.lang.Override public boolean getExecutable() { return executable_; } 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 (!com.google.protobuf.GeneratedMessage.isStringEmpty(ruleName_)) { com.google.protobuf.GeneratedMessage.writeString(output, 1, ruleName_); } if (!com.google.protobuf.GeneratedMessage.isStringEmpty(docString_)) { com.google.protobuf.GeneratedMessage.writeString(output, 2, docString_); } for (int i = 0; i < attribute_.size(); i++) { output.writeMessage(3, attribute_.get(i)); } if (((bitField0_ & 0x00000001) != 0)) { output.writeMessage(4, getOriginKey()); } if (((bitField0_ & 0x00000002) != 0)) { output.writeMessage(5, getAdvertisedProviders()); } if (test_ != false) { output.writeBool(6, test_); } if (executable_ != false) { output.writeBool(7, executable_); } getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (!com.google.protobuf.GeneratedMessage.isStringEmpty(ruleName_)) { size += com.google.protobuf.GeneratedMessage.computeStringSize(1, ruleName_); } if (!com.google.protobuf.GeneratedMessage.isStringEmpty(docString_)) { size += com.google.protobuf.GeneratedMessage.computeStringSize(2, docString_); } for (int i = 0; i < attribute_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(3, attribute_.get(i)); } if (((bitField0_ & 0x00000001) != 0)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(4, getOriginKey()); } if (((bitField0_ & 0x00000002) != 0)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(5, getAdvertisedProviders()); } if (test_ != false) { size += com.google.protobuf.CodedOutputStream .computeBoolSize(6, test_); } if (executable_ != false) { size += com.google.protobuf.CodedOutputStream .computeBoolSize(7, executable_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.RuleInfo)) { return super.equals(obj); } com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.RuleInfo other = (com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.RuleInfo) obj; if (!getRuleName() .equals(other.getRuleName())) return false; if (!getDocString() .equals(other.getDocString())) return false; if (!getAttributeList() .equals(other.getAttributeList())) return false; if (hasOriginKey() != other.hasOriginKey()) return false; if (hasOriginKey()) { if (!getOriginKey() .equals(other.getOriginKey())) return false; } if (hasAdvertisedProviders() != other.hasAdvertisedProviders()) return false; if (hasAdvertisedProviders()) { if (!getAdvertisedProviders() .equals(other.getAdvertisedProviders())) return false; } if (getTest() != other.getTest()) return false; if (getExecutable() != other.getExecutable()) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + RULE_NAME_FIELD_NUMBER; hash = (53 * hash) + getRuleName().hashCode(); hash = (37 * hash) + DOC_STRING_FIELD_NUMBER; hash = (53 * hash) + getDocString().hashCode(); if (getAttributeCount() > 0) { hash = (37 * hash) + ATTRIBUTE_FIELD_NUMBER; hash = (53 * hash) + getAttributeList().hashCode(); } if (hasOriginKey()) { hash = (37 * hash) + ORIGIN_KEY_FIELD_NUMBER; hash = (53 * hash) + getOriginKey().hashCode(); } if (hasAdvertisedProviders()) { hash = (37 * hash) + ADVERTISED_PROVIDERS_FIELD_NUMBER; hash = (53 * hash) + getAdvertisedProviders().hashCode(); } hash = (37 * hash) + TEST_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( getTest()); hash = (37 * hash) + EXECUTABLE_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( getExecutable()); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.RuleInfo parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.RuleInfo 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.lib.starlarkdocextract.StardocOutputProtos.RuleInfo parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.RuleInfo 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.lib.starlarkdocextract.StardocOutputProtos.RuleInfo parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.RuleInfo parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.RuleInfo parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessage .parseWithIOException(PARSER, input); } public static com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.RuleInfo parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessage .parseWithIOException(PARSER, input, extensionRegistry); } public static com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.RuleInfo parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessage .parseDelimitedWithIOException(PARSER, input); } public static com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.RuleInfo parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessage .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.RuleInfo parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessage .parseWithIOException(PARSER, input); } public static com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.RuleInfo parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessage .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.RuleInfo prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } @java.lang.Override public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessage.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** *
     * Representation of a Starlark rule definition.
     * 
* * Protobuf type {@code stardoc_output.RuleInfo} */ public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder implements // @@protoc_insertion_point(builder_implements:stardoc_output.RuleInfo) com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.RuleInfoOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.internal_static_stardoc_output_RuleInfo_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.internal_static_stardoc_output_RuleInfo_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.RuleInfo.class, com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.RuleInfo.Builder.class); } // Construct using com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.RuleInfo.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessage .alwaysUseFieldBuilders) { getAttributeFieldBuilder(); getOriginKeyFieldBuilder(); getAdvertisedProvidersFieldBuilder(); } } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; ruleName_ = ""; docString_ = ""; if (attributeBuilder_ == null) { attribute_ = java.util.Collections.emptyList(); } else { attribute_ = null; attributeBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000004); originKey_ = null; if (originKeyBuilder_ != null) { originKeyBuilder_.dispose(); originKeyBuilder_ = null; } advertisedProviders_ = null; if (advertisedProvidersBuilder_ != null) { advertisedProvidersBuilder_.dispose(); advertisedProvidersBuilder_ = null; } test_ = false; executable_ = false; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.internal_static_stardoc_output_RuleInfo_descriptor; } @java.lang.Override public com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.RuleInfo getDefaultInstanceForType() { return com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.RuleInfo.getDefaultInstance(); } @java.lang.Override public com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.RuleInfo build() { com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.RuleInfo result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.RuleInfo buildPartial() { com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.RuleInfo result = new com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.RuleInfo(this); buildPartialRepeatedFields(result); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartialRepeatedFields(com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.RuleInfo result) { if (attributeBuilder_ == null) { if (((bitField0_ & 0x00000004) != 0)) { attribute_ = java.util.Collections.unmodifiableList(attribute_); bitField0_ = (bitField0_ & ~0x00000004); } result.attribute_ = attribute_; } else { result.attribute_ = attributeBuilder_.build(); } } private void buildPartial0(com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.RuleInfo result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.ruleName_ = ruleName_; } if (((from_bitField0_ & 0x00000002) != 0)) { result.docString_ = docString_; } int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000008) != 0)) { result.originKey_ = originKeyBuilder_ == null ? originKey_ : originKeyBuilder_.build(); to_bitField0_ |= 0x00000001; } if (((from_bitField0_ & 0x00000010) != 0)) { result.advertisedProviders_ = advertisedProvidersBuilder_ == null ? advertisedProviders_ : advertisedProvidersBuilder_.build(); to_bitField0_ |= 0x00000002; } if (((from_bitField0_ & 0x00000020) != 0)) { result.test_ = test_; } if (((from_bitField0_ & 0x00000040) != 0)) { result.executable_ = executable_; } result.bitField0_ |= to_bitField0_; } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.RuleInfo) { return mergeFrom((com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.RuleInfo)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.RuleInfo other) { if (other == com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.RuleInfo.getDefaultInstance()) return this; if (!other.getRuleName().isEmpty()) { ruleName_ = other.ruleName_; bitField0_ |= 0x00000001; onChanged(); } if (!other.getDocString().isEmpty()) { docString_ = other.docString_; bitField0_ |= 0x00000002; onChanged(); } if (attributeBuilder_ == null) { if (!other.attribute_.isEmpty()) { if (attribute_.isEmpty()) { attribute_ = other.attribute_; bitField0_ = (bitField0_ & ~0x00000004); } else { ensureAttributeIsMutable(); attribute_.addAll(other.attribute_); } onChanged(); } } else { if (!other.attribute_.isEmpty()) { if (attributeBuilder_.isEmpty()) { attributeBuilder_.dispose(); attributeBuilder_ = null; attribute_ = other.attribute_; bitField0_ = (bitField0_ & ~0x00000004); attributeBuilder_ = com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ? getAttributeFieldBuilder() : null; } else { attributeBuilder_.addAllMessages(other.attribute_); } } } if (other.hasOriginKey()) { mergeOriginKey(other.getOriginKey()); } if (other.hasAdvertisedProviders()) { mergeAdvertisedProviders(other.getAdvertisedProviders()); } if (other.getTest() != false) { setTest(other.getTest()); } if (other.getExecutable() != false) { setExecutable(other.getExecutable()); } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { return true; } @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 10: { ruleName_ = input.readStringRequireUtf8(); bitField0_ |= 0x00000001; break; } // case 10 case 18: { docString_ = input.readStringRequireUtf8(); bitField0_ |= 0x00000002; break; } // case 18 case 26: { com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.AttributeInfo m = input.readMessage( com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.AttributeInfo.parser(), extensionRegistry); if (attributeBuilder_ == null) { ensureAttributeIsMutable(); attribute_.add(m); } else { attributeBuilder_.addMessage(m); } break; } // case 26 case 34: { input.readMessage( getOriginKeyFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00000008; break; } // case 34 case 42: { input.readMessage( getAdvertisedProvidersFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00000010; break; } // case 42 case 48: { test_ = input.readBool(); bitField0_ |= 0x00000020; break; } // case 48 case 56: { executable_ = input.readBool(); bitField0_ |= 0x00000040; break; } // case 56 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { done = true; // was an endgroup tag } break; } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.unwrapIOException(); } finally { onChanged(); } // finally return this; } private int bitField0_; private java.lang.Object ruleName_ = ""; /** *
       * In Stardoc and starlark_doc_extract output, this is the name under which
       * the rule is made accessible to a user of this module, including any structs
       * it is nested in, for example "foo.foo_library".
       *
       * In query output, this is the name under which the rule was defined (which
       * might be a private symbol prefixed with "_").
       * 
* * string rule_name = 1; * @return The ruleName. */ public java.lang.String getRuleName() { java.lang.Object ref = ruleName_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); ruleName_ = s; return s; } else { return (java.lang.String) ref; } } /** *
       * In Stardoc and starlark_doc_extract output, this is the name under which
       * the rule is made accessible to a user of this module, including any structs
       * it is nested in, for example "foo.foo_library".
       *
       * In query output, this is the name under which the rule was defined (which
       * might be a private symbol prefixed with "_").
       * 
* * string rule_name = 1; * @return The bytes for ruleName. */ public com.google.protobuf.ByteString getRuleNameBytes() { java.lang.Object ref = ruleName_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); ruleName_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
       * In Stardoc and starlark_doc_extract output, this is the name under which
       * the rule is made accessible to a user of this module, including any structs
       * it is nested in, for example "foo.foo_library".
       *
       * In query output, this is the name under which the rule was defined (which
       * might be a private symbol prefixed with "_").
       * 
* * string rule_name = 1; * @param value The ruleName to set. * @return This builder for chaining. */ public Builder setRuleName( java.lang.String value) { if (value == null) { throw new NullPointerException(); } ruleName_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** *
       * In Stardoc and starlark_doc_extract output, this is the name under which
       * the rule is made accessible to a user of this module, including any structs
       * it is nested in, for example "foo.foo_library".
       *
       * In query output, this is the name under which the rule was defined (which
       * might be a private symbol prefixed with "_").
       * 
* * string rule_name = 1; * @return This builder for chaining. */ public Builder clearRuleName() { ruleName_ = getDefaultInstance().getRuleName(); bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } /** *
       * In Stardoc and starlark_doc_extract output, this is the name under which
       * the rule is made accessible to a user of this module, including any structs
       * it is nested in, for example "foo.foo_library".
       *
       * In query output, this is the name under which the rule was defined (which
       * might be a private symbol prefixed with "_").
       * 
* * string rule_name = 1; * @param value The bytes for ruleName to set. * @return This builder for chaining. */ public Builder setRuleNameBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); ruleName_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } private java.lang.Object docString_ = ""; /** *
       * The documentation string of the rule.
       * 
* * string doc_string = 2; * @return The docString. */ public java.lang.String getDocString() { java.lang.Object ref = docString_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); docString_ = s; return s; } else { return (java.lang.String) ref; } } /** *
       * The documentation string of the rule.
       * 
* * string doc_string = 2; * @return The bytes for docString. */ public com.google.protobuf.ByteString getDocStringBytes() { java.lang.Object ref = docString_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); docString_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
       * The documentation string of the rule.
       * 
* * string doc_string = 2; * @param value The docString to set. * @return This builder for chaining. */ public Builder setDocString( java.lang.String value) { if (value == null) { throw new NullPointerException(); } docString_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** *
       * The documentation string of the rule.
       * 
* * string doc_string = 2; * @return This builder for chaining. */ public Builder clearDocString() { docString_ = getDefaultInstance().getDocString(); bitField0_ = (bitField0_ & ~0x00000002); onChanged(); return this; } /** *
       * The documentation string of the rule.
       * 
* * string doc_string = 2; * @param value The bytes for docString to set. * @return This builder for chaining. */ public Builder setDocStringBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); docString_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } private java.util.List attribute_ = java.util.Collections.emptyList(); private void ensureAttributeIsMutable() { if (!((bitField0_ & 0x00000004) != 0)) { attribute_ = new java.util.ArrayList(attribute_); bitField0_ |= 0x00000004; } } private com.google.protobuf.RepeatedFieldBuilder< com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.AttributeInfo, com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.AttributeInfo.Builder, com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.AttributeInfoOrBuilder> attributeBuilder_; /** *
       * The attributes of the rule.
       * 
* * repeated .stardoc_output.AttributeInfo attribute = 3; */ public java.util.List getAttributeList() { if (attributeBuilder_ == null) { return java.util.Collections.unmodifiableList(attribute_); } else { return attributeBuilder_.getMessageList(); } } /** *
       * The attributes of the rule.
       * 
* * repeated .stardoc_output.AttributeInfo attribute = 3; */ public int getAttributeCount() { if (attributeBuilder_ == null) { return attribute_.size(); } else { return attributeBuilder_.getCount(); } } /** *
       * The attributes of the rule.
       * 
* * repeated .stardoc_output.AttributeInfo attribute = 3; */ public com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.AttributeInfo getAttribute(int index) { if (attributeBuilder_ == null) { return attribute_.get(index); } else { return attributeBuilder_.getMessage(index); } } /** *
       * The attributes of the rule.
       * 
* * repeated .stardoc_output.AttributeInfo attribute = 3; */ public Builder setAttribute( int index, com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.AttributeInfo value) { if (attributeBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureAttributeIsMutable(); attribute_.set(index, value); onChanged(); } else { attributeBuilder_.setMessage(index, value); } return this; } /** *
       * The attributes of the rule.
       * 
* * repeated .stardoc_output.AttributeInfo attribute = 3; */ public Builder setAttribute( int index, com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.AttributeInfo.Builder builderForValue) { if (attributeBuilder_ == null) { ensureAttributeIsMutable(); attribute_.set(index, builderForValue.build()); onChanged(); } else { attributeBuilder_.setMessage(index, builderForValue.build()); } return this; } /** *
       * The attributes of the rule.
       * 
* * repeated .stardoc_output.AttributeInfo attribute = 3; */ public Builder addAttribute(com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.AttributeInfo value) { if (attributeBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureAttributeIsMutable(); attribute_.add(value); onChanged(); } else { attributeBuilder_.addMessage(value); } return this; } /** *
       * The attributes of the rule.
       * 
* * repeated .stardoc_output.AttributeInfo attribute = 3; */ public Builder addAttribute( int index, com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.AttributeInfo value) { if (attributeBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureAttributeIsMutable(); attribute_.add(index, value); onChanged(); } else { attributeBuilder_.addMessage(index, value); } return this; } /** *
       * The attributes of the rule.
       * 
* * repeated .stardoc_output.AttributeInfo attribute = 3; */ public Builder addAttribute( com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.AttributeInfo.Builder builderForValue) { if (attributeBuilder_ == null) { ensureAttributeIsMutable(); attribute_.add(builderForValue.build()); onChanged(); } else { attributeBuilder_.addMessage(builderForValue.build()); } return this; } /** *
       * The attributes of the rule.
       * 
* * repeated .stardoc_output.AttributeInfo attribute = 3; */ public Builder addAttribute( int index, com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.AttributeInfo.Builder builderForValue) { if (attributeBuilder_ == null) { ensureAttributeIsMutable(); attribute_.add(index, builderForValue.build()); onChanged(); } else { attributeBuilder_.addMessage(index, builderForValue.build()); } return this; } /** *
       * The attributes of the rule.
       * 
* * repeated .stardoc_output.AttributeInfo attribute = 3; */ public Builder addAllAttribute( java.lang.Iterable values) { if (attributeBuilder_ == null) { ensureAttributeIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, attribute_); onChanged(); } else { attributeBuilder_.addAllMessages(values); } return this; } /** *
       * The attributes of the rule.
       * 
* * repeated .stardoc_output.AttributeInfo attribute = 3; */ public Builder clearAttribute() { if (attributeBuilder_ == null) { attribute_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000004); onChanged(); } else { attributeBuilder_.clear(); } return this; } /** *
       * The attributes of the rule.
       * 
* * repeated .stardoc_output.AttributeInfo attribute = 3; */ public Builder removeAttribute(int index) { if (attributeBuilder_ == null) { ensureAttributeIsMutable(); attribute_.remove(index); onChanged(); } else { attributeBuilder_.remove(index); } return this; } /** *
       * The attributes of the rule.
       * 
* * repeated .stardoc_output.AttributeInfo attribute = 3; */ public com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.AttributeInfo.Builder getAttributeBuilder( int index) { return getAttributeFieldBuilder().getBuilder(index); } /** *
       * The attributes of the rule.
       * 
* * repeated .stardoc_output.AttributeInfo attribute = 3; */ public com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.AttributeInfoOrBuilder getAttributeOrBuilder( int index) { if (attributeBuilder_ == null) { return attribute_.get(index); } else { return attributeBuilder_.getMessageOrBuilder(index); } } /** *
       * The attributes of the rule.
       * 
* * repeated .stardoc_output.AttributeInfo attribute = 3; */ public java.util.List getAttributeOrBuilderList() { if (attributeBuilder_ != null) { return attributeBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(attribute_); } } /** *
       * The attributes of the rule.
       * 
* * repeated .stardoc_output.AttributeInfo attribute = 3; */ public com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.AttributeInfo.Builder addAttributeBuilder() { return getAttributeFieldBuilder().addBuilder( com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.AttributeInfo.getDefaultInstance()); } /** *
       * The attributes of the rule.
       * 
* * repeated .stardoc_output.AttributeInfo attribute = 3; */ public com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.AttributeInfo.Builder addAttributeBuilder( int index) { return getAttributeFieldBuilder().addBuilder( index, com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.AttributeInfo.getDefaultInstance()); } /** *
       * The attributes of the rule.
       * 
* * repeated .stardoc_output.AttributeInfo attribute = 3; */ public java.util.List getAttributeBuilderList() { return getAttributeFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilder< com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.AttributeInfo, com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.AttributeInfo.Builder, com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.AttributeInfoOrBuilder> getAttributeFieldBuilder() { if (attributeBuilder_ == null) { attributeBuilder_ = new com.google.protobuf.RepeatedFieldBuilder< com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.AttributeInfo, com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.AttributeInfo.Builder, com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.AttributeInfoOrBuilder>( attribute_, ((bitField0_ & 0x00000004) != 0), getParentForChildren(), isClean()); attribute_ = null; } return attributeBuilder_; } private com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.OriginKey originKey_; private com.google.protobuf.SingleFieldBuilder< com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.OriginKey, com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.OriginKey.Builder, com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.OriginKeyOrBuilder> originKeyBuilder_; /** *
       * The module where and the name under which the rule was originally declared.
       * 
* * .stardoc_output.OriginKey origin_key = 4; * @return Whether the originKey field is set. */ public boolean hasOriginKey() { return ((bitField0_ & 0x00000008) != 0); } /** *
       * The module where and the name under which the rule was originally declared.
       * 
* * .stardoc_output.OriginKey origin_key = 4; * @return The originKey. */ public com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.OriginKey getOriginKey() { if (originKeyBuilder_ == null) { return originKey_ == null ? com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.OriginKey.getDefaultInstance() : originKey_; } else { return originKeyBuilder_.getMessage(); } } /** *
       * The module where and the name under which the rule was originally declared.
       * 
* * .stardoc_output.OriginKey origin_key = 4; */ public Builder setOriginKey(com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.OriginKey value) { if (originKeyBuilder_ == null) { if (value == null) { throw new NullPointerException(); } originKey_ = value; } else { originKeyBuilder_.setMessage(value); } bitField0_ |= 0x00000008; onChanged(); return this; } /** *
       * The module where and the name under which the rule was originally declared.
       * 
* * .stardoc_output.OriginKey origin_key = 4; */ public Builder setOriginKey( com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.OriginKey.Builder builderForValue) { if (originKeyBuilder_ == null) { originKey_ = builderForValue.build(); } else { originKeyBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000008; onChanged(); return this; } /** *
       * The module where and the name under which the rule was originally declared.
       * 
* * .stardoc_output.OriginKey origin_key = 4; */ public Builder mergeOriginKey(com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.OriginKey value) { if (originKeyBuilder_ == null) { if (((bitField0_ & 0x00000008) != 0) && originKey_ != null && originKey_ != com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.OriginKey.getDefaultInstance()) { getOriginKeyBuilder().mergeFrom(value); } else { originKey_ = value; } } else { originKeyBuilder_.mergeFrom(value); } if (originKey_ != null) { bitField0_ |= 0x00000008; onChanged(); } return this; } /** *
       * The module where and the name under which the rule was originally declared.
       * 
* * .stardoc_output.OriginKey origin_key = 4; */ public Builder clearOriginKey() { bitField0_ = (bitField0_ & ~0x00000008); originKey_ = null; if (originKeyBuilder_ != null) { originKeyBuilder_.dispose(); originKeyBuilder_ = null; } onChanged(); return this; } /** *
       * The module where and the name under which the rule was originally declared.
       * 
* * .stardoc_output.OriginKey origin_key = 4; */ public com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.OriginKey.Builder getOriginKeyBuilder() { bitField0_ |= 0x00000008; onChanged(); return getOriginKeyFieldBuilder().getBuilder(); } /** *
       * The module where and the name under which the rule was originally declared.
       * 
* * .stardoc_output.OriginKey origin_key = 4; */ public com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.OriginKeyOrBuilder getOriginKeyOrBuilder() { if (originKeyBuilder_ != null) { return originKeyBuilder_.getMessageOrBuilder(); } else { return originKey_ == null ? com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.OriginKey.getDefaultInstance() : originKey_; } } /** *
       * The module where and the name under which the rule was originally declared.
       * 
* * .stardoc_output.OriginKey origin_key = 4; */ private com.google.protobuf.SingleFieldBuilder< com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.OriginKey, com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.OriginKey.Builder, com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.OriginKeyOrBuilder> getOriginKeyFieldBuilder() { if (originKeyBuilder_ == null) { originKeyBuilder_ = new com.google.protobuf.SingleFieldBuilder< com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.OriginKey, com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.OriginKey.Builder, com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.OriginKeyOrBuilder>( getOriginKey(), getParentForChildren(), isClean()); originKey_ = null; } return originKeyBuilder_; } private com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.ProviderNameGroup advertisedProviders_; private com.google.protobuf.SingleFieldBuilder< com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.ProviderNameGroup, com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.ProviderNameGroup.Builder, com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.ProviderNameGroupOrBuilder> advertisedProvidersBuilder_; /** *
       * The list of providers that the rule's implementation must return. Unset if
       * the rule lists no advertised providers.
       * 
* * .stardoc_output.ProviderNameGroup advertised_providers = 5; * @return Whether the advertisedProviders field is set. */ public boolean hasAdvertisedProviders() { return ((bitField0_ & 0x00000010) != 0); } /** *
       * The list of providers that the rule's implementation must return. Unset if
       * the rule lists no advertised providers.
       * 
* * .stardoc_output.ProviderNameGroup advertised_providers = 5; * @return The advertisedProviders. */ public com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.ProviderNameGroup getAdvertisedProviders() { if (advertisedProvidersBuilder_ == null) { return advertisedProviders_ == null ? com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.ProviderNameGroup.getDefaultInstance() : advertisedProviders_; } else { return advertisedProvidersBuilder_.getMessage(); } } /** *
       * The list of providers that the rule's implementation must return. Unset if
       * the rule lists no advertised providers.
       * 
* * .stardoc_output.ProviderNameGroup advertised_providers = 5; */ public Builder setAdvertisedProviders(com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.ProviderNameGroup value) { if (advertisedProvidersBuilder_ == null) { if (value == null) { throw new NullPointerException(); } advertisedProviders_ = value; } else { advertisedProvidersBuilder_.setMessage(value); } bitField0_ |= 0x00000010; onChanged(); return this; } /** *
       * The list of providers that the rule's implementation must return. Unset if
       * the rule lists no advertised providers.
       * 
* * .stardoc_output.ProviderNameGroup advertised_providers = 5; */ public Builder setAdvertisedProviders( com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.ProviderNameGroup.Builder builderForValue) { if (advertisedProvidersBuilder_ == null) { advertisedProviders_ = builderForValue.build(); } else { advertisedProvidersBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000010; onChanged(); return this; } /** *
       * The list of providers that the rule's implementation must return. Unset if
       * the rule lists no advertised providers.
       * 
* * .stardoc_output.ProviderNameGroup advertised_providers = 5; */ public Builder mergeAdvertisedProviders(com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.ProviderNameGroup value) { if (advertisedProvidersBuilder_ == null) { if (((bitField0_ & 0x00000010) != 0) && advertisedProviders_ != null && advertisedProviders_ != com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.ProviderNameGroup.getDefaultInstance()) { getAdvertisedProvidersBuilder().mergeFrom(value); } else { advertisedProviders_ = value; } } else { advertisedProvidersBuilder_.mergeFrom(value); } if (advertisedProviders_ != null) { bitField0_ |= 0x00000010; onChanged(); } return this; } /** *
       * The list of providers that the rule's implementation must return. Unset if
       * the rule lists no advertised providers.
       * 
* * .stardoc_output.ProviderNameGroup advertised_providers = 5; */ public Builder clearAdvertisedProviders() { bitField0_ = (bitField0_ & ~0x00000010); advertisedProviders_ = null; if (advertisedProvidersBuilder_ != null) { advertisedProvidersBuilder_.dispose(); advertisedProvidersBuilder_ = null; } onChanged(); return this; } /** *
       * The list of providers that the rule's implementation must return. Unset if
       * the rule lists no advertised providers.
       * 
* * .stardoc_output.ProviderNameGroup advertised_providers = 5; */ public com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.ProviderNameGroup.Builder getAdvertisedProvidersBuilder() { bitField0_ |= 0x00000010; onChanged(); return getAdvertisedProvidersFieldBuilder().getBuilder(); } /** *
       * The list of providers that the rule's implementation must return. Unset if
       * the rule lists no advertised providers.
       * 
* * .stardoc_output.ProviderNameGroup advertised_providers = 5; */ public com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.ProviderNameGroupOrBuilder getAdvertisedProvidersOrBuilder() { if (advertisedProvidersBuilder_ != null) { return advertisedProvidersBuilder_.getMessageOrBuilder(); } else { return advertisedProviders_ == null ? com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.ProviderNameGroup.getDefaultInstance() : advertisedProviders_; } } /** *
       * The list of providers that the rule's implementation must return. Unset if
       * the rule lists no advertised providers.
       * 
* * .stardoc_output.ProviderNameGroup advertised_providers = 5; */ private com.google.protobuf.SingleFieldBuilder< com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.ProviderNameGroup, com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.ProviderNameGroup.Builder, com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.ProviderNameGroupOrBuilder> getAdvertisedProvidersFieldBuilder() { if (advertisedProvidersBuilder_ == null) { advertisedProvidersBuilder_ = new com.google.protobuf.SingleFieldBuilder< com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.ProviderNameGroup, com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.ProviderNameGroup.Builder, com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.ProviderNameGroupOrBuilder>( getAdvertisedProviders(), getParentForChildren(), isClean()); advertisedProviders_ = null; } return advertisedProvidersBuilder_; } private boolean test_ ; /** *
       * True if this is a test rule.
       * 
* * bool test = 6; * @return The test. */ @java.lang.Override public boolean getTest() { return test_; } /** *
       * True if this is a test rule.
       * 
* * bool test = 6; * @param value The test to set. * @return This builder for chaining. */ public Builder setTest(boolean value) { test_ = value; bitField0_ |= 0x00000020; onChanged(); return this; } /** *
       * True if this is a test rule.
       * 
* * bool test = 6; * @return This builder for chaining. */ public Builder clearTest() { bitField0_ = (bitField0_ & ~0x00000020); test_ = false; onChanged(); return this; } private boolean executable_ ; /** *
       * True if this is an executable rule.
       *
       * Note: if test is true, executable is also true (test rules are implicitly
       * executable).
       * 
* * bool executable = 7; * @return The executable. */ @java.lang.Override public boolean getExecutable() { return executable_; } /** *
       * True if this is an executable rule.
       *
       * Note: if test is true, executable is also true (test rules are implicitly
       * executable).
       * 
* * bool executable = 7; * @param value The executable to set. * @return This builder for chaining. */ public Builder setExecutable(boolean value) { executable_ = value; bitField0_ |= 0x00000040; onChanged(); return this; } /** *
       * True if this is an executable rule.
       *
       * Note: if test is true, executable is also true (test rules are implicitly
       * executable).
       * 
* * bool executable = 7; * @return This builder for chaining. */ public Builder clearExecutable() { bitField0_ = (bitField0_ & ~0x00000040); executable_ = false; onChanged(); return this; } // @@protoc_insertion_point(builder_scope:stardoc_output.RuleInfo) } // @@protoc_insertion_point(class_scope:stardoc_output.RuleInfo) private static final com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.RuleInfo DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.RuleInfo(); } public static com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.RuleInfo getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public RuleInfo parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { Builder builder = newBuilder(); try { builder.mergeFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(builder.buildPartial()); } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e) .setUnfinishedMessage(builder.buildPartial()); } return builder.buildPartial(); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override public com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.RuleInfo getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface MacroInfoOrBuilder extends // @@protoc_insertion_point(interface_extends:stardoc_output.MacroInfo) com.google.protobuf.MessageOrBuilder { /** *
     * The name under which the macro is made accessible to a user of this module,
     * including any structs it is nested in, for example "foo.foo_library".
     * 
* * string macro_name = 1; * @return The macroName. */ java.lang.String getMacroName(); /** *
     * The name under which the macro is made accessible to a user of this module,
     * including any structs it is nested in, for example "foo.foo_library".
     * 
* * string macro_name = 1; * @return The bytes for macroName. */ com.google.protobuf.ByteString getMacroNameBytes(); /** *
     * The documentation string of the macro.
     * 
* * string doc_string = 2; * @return The docString. */ java.lang.String getDocString(); /** *
     * The documentation string of the macro.
     * 
* * string doc_string = 2; * @return The bytes for docString. */ com.google.protobuf.ByteString getDocStringBytes(); /** *
     * The attributes of the macro.
     * 
* * repeated .stardoc_output.AttributeInfo attribute = 3; */ java.util.List getAttributeList(); /** *
     * The attributes of the macro.
     * 
* * repeated .stardoc_output.AttributeInfo attribute = 3; */ com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.AttributeInfo getAttribute(int index); /** *
     * The attributes of the macro.
     * 
* * repeated .stardoc_output.AttributeInfo attribute = 3; */ int getAttributeCount(); /** *
     * The attributes of the macro.
     * 
* * repeated .stardoc_output.AttributeInfo attribute = 3; */ java.util.List getAttributeOrBuilderList(); /** *
     * The attributes of the macro.
     * 
* * repeated .stardoc_output.AttributeInfo attribute = 3; */ com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.AttributeInfoOrBuilder getAttributeOrBuilder( int index); /** *
     * The module where and the name under which the macro was originally
     * declared.
     * 
* * .stardoc_output.OriginKey origin_key = 4; * @return Whether the originKey field is set. */ boolean hasOriginKey(); /** *
     * The module where and the name under which the macro was originally
     * declared.
     * 
* * .stardoc_output.OriginKey origin_key = 4; * @return The originKey. */ com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.OriginKey getOriginKey(); /** *
     * The module where and the name under which the macro was originally
     * declared.
     * 
* * .stardoc_output.OriginKey origin_key = 4; */ com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.OriginKeyOrBuilder getOriginKeyOrBuilder(); } /** *
   * Representation of a Starlark symbolic macro definition.
   * Note: symbolic macros (and thus, their documentation format) are an
   * experimental feature gated by the --experimental_enable_first_class_macros
   * flag.
   * 
* * Protobuf type {@code stardoc_output.MacroInfo} */ public static final class MacroInfo extends com.google.protobuf.GeneratedMessage implements // @@protoc_insertion_point(message_implements:stardoc_output.MacroInfo) MacroInfoOrBuilder { private static final long serialVersionUID = 0L; static { com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, /* major= */ 4, /* minor= */ 28, /* patch= */ 3, /* suffix= */ "", MacroInfo.class.getName()); } // Use MacroInfo.newBuilder() to construct. private MacroInfo(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); } private MacroInfo() { macroName_ = ""; docString_ = ""; attribute_ = java.util.Collections.emptyList(); } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.internal_static_stardoc_output_MacroInfo_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.internal_static_stardoc_output_MacroInfo_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.MacroInfo.class, com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.MacroInfo.Builder.class); } private int bitField0_; public static final int MACRO_NAME_FIELD_NUMBER = 1; @SuppressWarnings("serial") private volatile java.lang.Object macroName_ = ""; /** *
     * The name under which the macro is made accessible to a user of this module,
     * including any structs it is nested in, for example "foo.foo_library".
     * 
* * string macro_name = 1; * @return The macroName. */ @java.lang.Override public java.lang.String getMacroName() { java.lang.Object ref = macroName_; 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(); macroName_ = s; return s; } } /** *
     * The name under which the macro is made accessible to a user of this module,
     * including any structs it is nested in, for example "foo.foo_library".
     * 
* * string macro_name = 1; * @return The bytes for macroName. */ @java.lang.Override public com.google.protobuf.ByteString getMacroNameBytes() { java.lang.Object ref = macroName_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); macroName_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int DOC_STRING_FIELD_NUMBER = 2; @SuppressWarnings("serial") private volatile java.lang.Object docString_ = ""; /** *
     * The documentation string of the macro.
     * 
* * string doc_string = 2; * @return The docString. */ @java.lang.Override public java.lang.String getDocString() { java.lang.Object ref = docString_; 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(); docString_ = s; return s; } } /** *
     * The documentation string of the macro.
     * 
* * string doc_string = 2; * @return The bytes for docString. */ @java.lang.Override public com.google.protobuf.ByteString getDocStringBytes() { java.lang.Object ref = docString_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); docString_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int ATTRIBUTE_FIELD_NUMBER = 3; @SuppressWarnings("serial") private java.util.List attribute_; /** *
     * The attributes of the macro.
     * 
* * repeated .stardoc_output.AttributeInfo attribute = 3; */ @java.lang.Override public java.util.List getAttributeList() { return attribute_; } /** *
     * The attributes of the macro.
     * 
* * repeated .stardoc_output.AttributeInfo attribute = 3; */ @java.lang.Override public java.util.List getAttributeOrBuilderList() { return attribute_; } /** *
     * The attributes of the macro.
     * 
* * repeated .stardoc_output.AttributeInfo attribute = 3; */ @java.lang.Override public int getAttributeCount() { return attribute_.size(); } /** *
     * The attributes of the macro.
     * 
* * repeated .stardoc_output.AttributeInfo attribute = 3; */ @java.lang.Override public com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.AttributeInfo getAttribute(int index) { return attribute_.get(index); } /** *
     * The attributes of the macro.
     * 
* * repeated .stardoc_output.AttributeInfo attribute = 3; */ @java.lang.Override public com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.AttributeInfoOrBuilder getAttributeOrBuilder( int index) { return attribute_.get(index); } public static final int ORIGIN_KEY_FIELD_NUMBER = 4; private com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.OriginKey originKey_; /** *
     * The module where and the name under which the macro was originally
     * declared.
     * 
* * .stardoc_output.OriginKey origin_key = 4; * @return Whether the originKey field is set. */ @java.lang.Override public boolean hasOriginKey() { return ((bitField0_ & 0x00000001) != 0); } /** *
     * The module where and the name under which the macro was originally
     * declared.
     * 
* * .stardoc_output.OriginKey origin_key = 4; * @return The originKey. */ @java.lang.Override public com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.OriginKey getOriginKey() { return originKey_ == null ? com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.OriginKey.getDefaultInstance() : originKey_; } /** *
     * The module where and the name under which the macro was originally
     * declared.
     * 
* * .stardoc_output.OriginKey origin_key = 4; */ @java.lang.Override public com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.OriginKeyOrBuilder getOriginKeyOrBuilder() { return originKey_ == null ? com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.OriginKey.getDefaultInstance() : originKey_; } 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 (!com.google.protobuf.GeneratedMessage.isStringEmpty(macroName_)) { com.google.protobuf.GeneratedMessage.writeString(output, 1, macroName_); } if (!com.google.protobuf.GeneratedMessage.isStringEmpty(docString_)) { com.google.protobuf.GeneratedMessage.writeString(output, 2, docString_); } for (int i = 0; i < attribute_.size(); i++) { output.writeMessage(3, attribute_.get(i)); } if (((bitField0_ & 0x00000001) != 0)) { output.writeMessage(4, getOriginKey()); } getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (!com.google.protobuf.GeneratedMessage.isStringEmpty(macroName_)) { size += com.google.protobuf.GeneratedMessage.computeStringSize(1, macroName_); } if (!com.google.protobuf.GeneratedMessage.isStringEmpty(docString_)) { size += com.google.protobuf.GeneratedMessage.computeStringSize(2, docString_); } for (int i = 0; i < attribute_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(3, attribute_.get(i)); } if (((bitField0_ & 0x00000001) != 0)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(4, getOriginKey()); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.MacroInfo)) { return super.equals(obj); } com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.MacroInfo other = (com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.MacroInfo) obj; if (!getMacroName() .equals(other.getMacroName())) return false; if (!getDocString() .equals(other.getDocString())) return false; if (!getAttributeList() .equals(other.getAttributeList())) return false; if (hasOriginKey() != other.hasOriginKey()) return false; if (hasOriginKey()) { if (!getOriginKey() .equals(other.getOriginKey())) return false; } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + MACRO_NAME_FIELD_NUMBER; hash = (53 * hash) + getMacroName().hashCode(); hash = (37 * hash) + DOC_STRING_FIELD_NUMBER; hash = (53 * hash) + getDocString().hashCode(); if (getAttributeCount() > 0) { hash = (37 * hash) + ATTRIBUTE_FIELD_NUMBER; hash = (53 * hash) + getAttributeList().hashCode(); } if (hasOriginKey()) { hash = (37 * hash) + ORIGIN_KEY_FIELD_NUMBER; hash = (53 * hash) + getOriginKey().hashCode(); } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.MacroInfo parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.MacroInfo 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.lib.starlarkdocextract.StardocOutputProtos.MacroInfo parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.MacroInfo 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.lib.starlarkdocextract.StardocOutputProtos.MacroInfo parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.MacroInfo parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.MacroInfo parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessage .parseWithIOException(PARSER, input); } public static com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.MacroInfo parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessage .parseWithIOException(PARSER, input, extensionRegistry); } public static com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.MacroInfo parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessage .parseDelimitedWithIOException(PARSER, input); } public static com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.MacroInfo parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessage .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.MacroInfo parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessage .parseWithIOException(PARSER, input); } public static com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.MacroInfo parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessage .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.MacroInfo prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } @java.lang.Override public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessage.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** *
     * Representation of a Starlark symbolic macro definition.
     * Note: symbolic macros (and thus, their documentation format) are an
     * experimental feature gated by the --experimental_enable_first_class_macros
     * flag.
     * 
* * Protobuf type {@code stardoc_output.MacroInfo} */ public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder implements // @@protoc_insertion_point(builder_implements:stardoc_output.MacroInfo) com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.MacroInfoOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.internal_static_stardoc_output_MacroInfo_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.internal_static_stardoc_output_MacroInfo_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.MacroInfo.class, com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.MacroInfo.Builder.class); } // Construct using com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.MacroInfo.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessage .alwaysUseFieldBuilders) { getAttributeFieldBuilder(); getOriginKeyFieldBuilder(); } } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; macroName_ = ""; docString_ = ""; if (attributeBuilder_ == null) { attribute_ = java.util.Collections.emptyList(); } else { attribute_ = null; attributeBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000004); originKey_ = null; if (originKeyBuilder_ != null) { originKeyBuilder_.dispose(); originKeyBuilder_ = null; } return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.internal_static_stardoc_output_MacroInfo_descriptor; } @java.lang.Override public com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.MacroInfo getDefaultInstanceForType() { return com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.MacroInfo.getDefaultInstance(); } @java.lang.Override public com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.MacroInfo build() { com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.MacroInfo result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.MacroInfo buildPartial() { com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.MacroInfo result = new com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.MacroInfo(this); buildPartialRepeatedFields(result); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartialRepeatedFields(com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.MacroInfo result) { if (attributeBuilder_ == null) { if (((bitField0_ & 0x00000004) != 0)) { attribute_ = java.util.Collections.unmodifiableList(attribute_); bitField0_ = (bitField0_ & ~0x00000004); } result.attribute_ = attribute_; } else { result.attribute_ = attributeBuilder_.build(); } } private void buildPartial0(com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.MacroInfo result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.macroName_ = macroName_; } if (((from_bitField0_ & 0x00000002) != 0)) { result.docString_ = docString_; } int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000008) != 0)) { result.originKey_ = originKeyBuilder_ == null ? originKey_ : originKeyBuilder_.build(); to_bitField0_ |= 0x00000001; } result.bitField0_ |= to_bitField0_; } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.MacroInfo) { return mergeFrom((com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.MacroInfo)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.MacroInfo other) { if (other == com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.MacroInfo.getDefaultInstance()) return this; if (!other.getMacroName().isEmpty()) { macroName_ = other.macroName_; bitField0_ |= 0x00000001; onChanged(); } if (!other.getDocString().isEmpty()) { docString_ = other.docString_; bitField0_ |= 0x00000002; onChanged(); } if (attributeBuilder_ == null) { if (!other.attribute_.isEmpty()) { if (attribute_.isEmpty()) { attribute_ = other.attribute_; bitField0_ = (bitField0_ & ~0x00000004); } else { ensureAttributeIsMutable(); attribute_.addAll(other.attribute_); } onChanged(); } } else { if (!other.attribute_.isEmpty()) { if (attributeBuilder_.isEmpty()) { attributeBuilder_.dispose(); attributeBuilder_ = null; attribute_ = other.attribute_; bitField0_ = (bitField0_ & ~0x00000004); attributeBuilder_ = com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ? getAttributeFieldBuilder() : null; } else { attributeBuilder_.addAllMessages(other.attribute_); } } } if (other.hasOriginKey()) { mergeOriginKey(other.getOriginKey()); } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { return true; } @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 10: { macroName_ = input.readStringRequireUtf8(); bitField0_ |= 0x00000001; break; } // case 10 case 18: { docString_ = input.readStringRequireUtf8(); bitField0_ |= 0x00000002; break; } // case 18 case 26: { com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.AttributeInfo m = input.readMessage( com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.AttributeInfo.parser(), extensionRegistry); if (attributeBuilder_ == null) { ensureAttributeIsMutable(); attribute_.add(m); } else { attributeBuilder_.addMessage(m); } break; } // case 26 case 34: { input.readMessage( getOriginKeyFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00000008; break; } // case 34 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { done = true; // was an endgroup tag } break; } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.unwrapIOException(); } finally { onChanged(); } // finally return this; } private int bitField0_; private java.lang.Object macroName_ = ""; /** *
       * The name under which the macro is made accessible to a user of this module,
       * including any structs it is nested in, for example "foo.foo_library".
       * 
* * string macro_name = 1; * @return The macroName. */ public java.lang.String getMacroName() { java.lang.Object ref = macroName_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); macroName_ = s; return s; } else { return (java.lang.String) ref; } } /** *
       * The name under which the macro is made accessible to a user of this module,
       * including any structs it is nested in, for example "foo.foo_library".
       * 
* * string macro_name = 1; * @return The bytes for macroName. */ public com.google.protobuf.ByteString getMacroNameBytes() { java.lang.Object ref = macroName_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); macroName_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
       * The name under which the macro is made accessible to a user of this module,
       * including any structs it is nested in, for example "foo.foo_library".
       * 
* * string macro_name = 1; * @param value The macroName to set. * @return This builder for chaining. */ public Builder setMacroName( java.lang.String value) { if (value == null) { throw new NullPointerException(); } macroName_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** *
       * The name under which the macro is made accessible to a user of this module,
       * including any structs it is nested in, for example "foo.foo_library".
       * 
* * string macro_name = 1; * @return This builder for chaining. */ public Builder clearMacroName() { macroName_ = getDefaultInstance().getMacroName(); bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } /** *
       * The name under which the macro is made accessible to a user of this module,
       * including any structs it is nested in, for example "foo.foo_library".
       * 
* * string macro_name = 1; * @param value The bytes for macroName to set. * @return This builder for chaining. */ public Builder setMacroNameBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); macroName_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } private java.lang.Object docString_ = ""; /** *
       * The documentation string of the macro.
       * 
* * string doc_string = 2; * @return The docString. */ public java.lang.String getDocString() { java.lang.Object ref = docString_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); docString_ = s; return s; } else { return (java.lang.String) ref; } } /** *
       * The documentation string of the macro.
       * 
* * string doc_string = 2; * @return The bytes for docString. */ public com.google.protobuf.ByteString getDocStringBytes() { java.lang.Object ref = docString_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); docString_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
       * The documentation string of the macro.
       * 
* * string doc_string = 2; * @param value The docString to set. * @return This builder for chaining. */ public Builder setDocString( java.lang.String value) { if (value == null) { throw new NullPointerException(); } docString_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** *
       * The documentation string of the macro.
       * 
* * string doc_string = 2; * @return This builder for chaining. */ public Builder clearDocString() { docString_ = getDefaultInstance().getDocString(); bitField0_ = (bitField0_ & ~0x00000002); onChanged(); return this; } /** *
       * The documentation string of the macro.
       * 
* * string doc_string = 2; * @param value The bytes for docString to set. * @return This builder for chaining. */ public Builder setDocStringBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); docString_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } private java.util.List attribute_ = java.util.Collections.emptyList(); private void ensureAttributeIsMutable() { if (!((bitField0_ & 0x00000004) != 0)) { attribute_ = new java.util.ArrayList(attribute_); bitField0_ |= 0x00000004; } } private com.google.protobuf.RepeatedFieldBuilder< com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.AttributeInfo, com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.AttributeInfo.Builder, com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.AttributeInfoOrBuilder> attributeBuilder_; /** *
       * The attributes of the macro.
       * 
* * repeated .stardoc_output.AttributeInfo attribute = 3; */ public java.util.List getAttributeList() { if (attributeBuilder_ == null) { return java.util.Collections.unmodifiableList(attribute_); } else { return attributeBuilder_.getMessageList(); } } /** *
       * The attributes of the macro.
       * 
* * repeated .stardoc_output.AttributeInfo attribute = 3; */ public int getAttributeCount() { if (attributeBuilder_ == null) { return attribute_.size(); } else { return attributeBuilder_.getCount(); } } /** *
       * The attributes of the macro.
       * 
* * repeated .stardoc_output.AttributeInfo attribute = 3; */ public com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.AttributeInfo getAttribute(int index) { if (attributeBuilder_ == null) { return attribute_.get(index); } else { return attributeBuilder_.getMessage(index); } } /** *
       * The attributes of the macro.
       * 
* * repeated .stardoc_output.AttributeInfo attribute = 3; */ public Builder setAttribute( int index, com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.AttributeInfo value) { if (attributeBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureAttributeIsMutable(); attribute_.set(index, value); onChanged(); } else { attributeBuilder_.setMessage(index, value); } return this; } /** *
       * The attributes of the macro.
       * 
* * repeated .stardoc_output.AttributeInfo attribute = 3; */ public Builder setAttribute( int index, com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.AttributeInfo.Builder builderForValue) { if (attributeBuilder_ == null) { ensureAttributeIsMutable(); attribute_.set(index, builderForValue.build()); onChanged(); } else { attributeBuilder_.setMessage(index, builderForValue.build()); } return this; } /** *
       * The attributes of the macro.
       * 
* * repeated .stardoc_output.AttributeInfo attribute = 3; */ public Builder addAttribute(com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.AttributeInfo value) { if (attributeBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureAttributeIsMutable(); attribute_.add(value); onChanged(); } else { attributeBuilder_.addMessage(value); } return this; } /** *
       * The attributes of the macro.
       * 
* * repeated .stardoc_output.AttributeInfo attribute = 3; */ public Builder addAttribute( int index, com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.AttributeInfo value) { if (attributeBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureAttributeIsMutable(); attribute_.add(index, value); onChanged(); } else { attributeBuilder_.addMessage(index, value); } return this; } /** *
       * The attributes of the macro.
       * 
* * repeated .stardoc_output.AttributeInfo attribute = 3; */ public Builder addAttribute( com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.AttributeInfo.Builder builderForValue) { if (attributeBuilder_ == null) { ensureAttributeIsMutable(); attribute_.add(builderForValue.build()); onChanged(); } else { attributeBuilder_.addMessage(builderForValue.build()); } return this; } /** *
       * The attributes of the macro.
       * 
* * repeated .stardoc_output.AttributeInfo attribute = 3; */ public Builder addAttribute( int index, com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.AttributeInfo.Builder builderForValue) { if (attributeBuilder_ == null) { ensureAttributeIsMutable(); attribute_.add(index, builderForValue.build()); onChanged(); } else { attributeBuilder_.addMessage(index, builderForValue.build()); } return this; } /** *
       * The attributes of the macro.
       * 
* * repeated .stardoc_output.AttributeInfo attribute = 3; */ public Builder addAllAttribute( java.lang.Iterable values) { if (attributeBuilder_ == null) { ensureAttributeIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, attribute_); onChanged(); } else { attributeBuilder_.addAllMessages(values); } return this; } /** *
       * The attributes of the macro.
       * 
* * repeated .stardoc_output.AttributeInfo attribute = 3; */ public Builder clearAttribute() { if (attributeBuilder_ == null) { attribute_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000004); onChanged(); } else { attributeBuilder_.clear(); } return this; } /** *
       * The attributes of the macro.
       * 
* * repeated .stardoc_output.AttributeInfo attribute = 3; */ public Builder removeAttribute(int index) { if (attributeBuilder_ == null) { ensureAttributeIsMutable(); attribute_.remove(index); onChanged(); } else { attributeBuilder_.remove(index); } return this; } /** *
       * The attributes of the macro.
       * 
* * repeated .stardoc_output.AttributeInfo attribute = 3; */ public com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.AttributeInfo.Builder getAttributeBuilder( int index) { return getAttributeFieldBuilder().getBuilder(index); } /** *
       * The attributes of the macro.
       * 
* * repeated .stardoc_output.AttributeInfo attribute = 3; */ public com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.AttributeInfoOrBuilder getAttributeOrBuilder( int index) { if (attributeBuilder_ == null) { return attribute_.get(index); } else { return attributeBuilder_.getMessageOrBuilder(index); } } /** *
       * The attributes of the macro.
       * 
* * repeated .stardoc_output.AttributeInfo attribute = 3; */ public java.util.List getAttributeOrBuilderList() { if (attributeBuilder_ != null) { return attributeBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(attribute_); } } /** *
       * The attributes of the macro.
       * 
* * repeated .stardoc_output.AttributeInfo attribute = 3; */ public com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.AttributeInfo.Builder addAttributeBuilder() { return getAttributeFieldBuilder().addBuilder( com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.AttributeInfo.getDefaultInstance()); } /** *
       * The attributes of the macro.
       * 
* * repeated .stardoc_output.AttributeInfo attribute = 3; */ public com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.AttributeInfo.Builder addAttributeBuilder( int index) { return getAttributeFieldBuilder().addBuilder( index, com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.AttributeInfo.getDefaultInstance()); } /** *
       * The attributes of the macro.
       * 
* * repeated .stardoc_output.AttributeInfo attribute = 3; */ public java.util.List getAttributeBuilderList() { return getAttributeFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilder< com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.AttributeInfo, com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.AttributeInfo.Builder, com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.AttributeInfoOrBuilder> getAttributeFieldBuilder() { if (attributeBuilder_ == null) { attributeBuilder_ = new com.google.protobuf.RepeatedFieldBuilder< com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.AttributeInfo, com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.AttributeInfo.Builder, com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.AttributeInfoOrBuilder>( attribute_, ((bitField0_ & 0x00000004) != 0), getParentForChildren(), isClean()); attribute_ = null; } return attributeBuilder_; } private com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.OriginKey originKey_; private com.google.protobuf.SingleFieldBuilder< com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.OriginKey, com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.OriginKey.Builder, com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.OriginKeyOrBuilder> originKeyBuilder_; /** *
       * The module where and the name under which the macro was originally
       * declared.
       * 
* * .stardoc_output.OriginKey origin_key = 4; * @return Whether the originKey field is set. */ public boolean hasOriginKey() { return ((bitField0_ & 0x00000008) != 0); } /** *
       * The module where and the name under which the macro was originally
       * declared.
       * 
* * .stardoc_output.OriginKey origin_key = 4; * @return The originKey. */ public com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.OriginKey getOriginKey() { if (originKeyBuilder_ == null) { return originKey_ == null ? com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.OriginKey.getDefaultInstance() : originKey_; } else { return originKeyBuilder_.getMessage(); } } /** *
       * The module where and the name under which the macro was originally
       * declared.
       * 
* * .stardoc_output.OriginKey origin_key = 4; */ public Builder setOriginKey(com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.OriginKey value) { if (originKeyBuilder_ == null) { if (value == null) { throw new NullPointerException(); } originKey_ = value; } else { originKeyBuilder_.setMessage(value); } bitField0_ |= 0x00000008; onChanged(); return this; } /** *
       * The module where and the name under which the macro was originally
       * declared.
       * 
* * .stardoc_output.OriginKey origin_key = 4; */ public Builder setOriginKey( com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.OriginKey.Builder builderForValue) { if (originKeyBuilder_ == null) { originKey_ = builderForValue.build(); } else { originKeyBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000008; onChanged(); return this; } /** *
       * The module where and the name under which the macro was originally
       * declared.
       * 
* * .stardoc_output.OriginKey origin_key = 4; */ public Builder mergeOriginKey(com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.OriginKey value) { if (originKeyBuilder_ == null) { if (((bitField0_ & 0x00000008) != 0) && originKey_ != null && originKey_ != com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.OriginKey.getDefaultInstance()) { getOriginKeyBuilder().mergeFrom(value); } else { originKey_ = value; } } else { originKeyBuilder_.mergeFrom(value); } if (originKey_ != null) { bitField0_ |= 0x00000008; onChanged(); } return this; } /** *
       * The module where and the name under which the macro was originally
       * declared.
       * 
* * .stardoc_output.OriginKey origin_key = 4; */ public Builder clearOriginKey() { bitField0_ = (bitField0_ & ~0x00000008); originKey_ = null; if (originKeyBuilder_ != null) { originKeyBuilder_.dispose(); originKeyBuilder_ = null; } onChanged(); return this; } /** *
       * The module where and the name under which the macro was originally
       * declared.
       * 
* * .stardoc_output.OriginKey origin_key = 4; */ public com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.OriginKey.Builder getOriginKeyBuilder() { bitField0_ |= 0x00000008; onChanged(); return getOriginKeyFieldBuilder().getBuilder(); } /** *
       * The module where and the name under which the macro was originally
       * declared.
       * 
* * .stardoc_output.OriginKey origin_key = 4; */ public com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.OriginKeyOrBuilder getOriginKeyOrBuilder() { if (originKeyBuilder_ != null) { return originKeyBuilder_.getMessageOrBuilder(); } else { return originKey_ == null ? com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.OriginKey.getDefaultInstance() : originKey_; } } /** *
       * The module where and the name under which the macro was originally
       * declared.
       * 
* * .stardoc_output.OriginKey origin_key = 4; */ private com.google.protobuf.SingleFieldBuilder< com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.OriginKey, com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.OriginKey.Builder, com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.OriginKeyOrBuilder> getOriginKeyFieldBuilder() { if (originKeyBuilder_ == null) { originKeyBuilder_ = new com.google.protobuf.SingleFieldBuilder< com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.OriginKey, com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.OriginKey.Builder, com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.OriginKeyOrBuilder>( getOriginKey(), getParentForChildren(), isClean()); originKey_ = null; } return originKeyBuilder_; } // @@protoc_insertion_point(builder_scope:stardoc_output.MacroInfo) } // @@protoc_insertion_point(class_scope:stardoc_output.MacroInfo) private static final com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.MacroInfo DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.MacroInfo(); } public static com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.MacroInfo getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public MacroInfo parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { Builder builder = newBuilder(); try { builder.mergeFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(builder.buildPartial()); } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e) .setUnfinishedMessage(builder.buildPartial()); } return builder.buildPartial(); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override public com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.MacroInfo getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface AttributeInfoOrBuilder extends // @@protoc_insertion_point(interface_extends:stardoc_output.AttributeInfo) com.google.protobuf.MessageOrBuilder { /** *
     * The name of the attribute.
     * 
* * string name = 1; * @return The name. */ java.lang.String getName(); /** *
     * The name of the attribute.
     * 
* * string name = 1; * @return The bytes for name. */ com.google.protobuf.ByteString getNameBytes(); /** *
     * The documentation string of the attribute, supplied via the 'doc'
     * parameter to the schema-creation call.
     * 
* * string doc_string = 2; * @return The docString. */ java.lang.String getDocString(); /** *
     * The documentation string of the attribute, supplied via the 'doc'
     * parameter to the schema-creation call.
     * 
* * string doc_string = 2; * @return The bytes for docString. */ com.google.protobuf.ByteString getDocStringBytes(); /** *
     * The type of the attribute, defined generally by which function is invoked
     * in the attr module.
     * 
* * .stardoc_output.AttributeType type = 3; * @return The enum numeric value on the wire for type. */ int getTypeValue(); /** *
     * The type of the attribute, defined generally by which function is invoked
     * in the attr module.
     * 
* * .stardoc_output.AttributeType type = 3; * @return The type. */ com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.AttributeType getType(); /** *
     * If true, all targets of the rule must specify a value for this attribute.
     * 
* * bool mandatory = 4; * @return The mandatory. */ boolean getMandatory(); /** *
     * The target(s) in this attribute must define all the providers of at least
     * one of the ProviderNameGroups in this list. If the Attribute Type is not a
     * label, a label list, or a label-keyed string dictionary, the field will be
     * left empty. For attributes of a repository rule or a module extension tag,
     * this attribute is meaningless and may be ignored.
     * TODO(b/290788853): ensure this field is always empty for attributes of a
     * repository rule or a module extension tag.
     * 
* * repeated .stardoc_output.ProviderNameGroup provider_name_group = 5; */ java.util.List getProviderNameGroupList(); /** *
     * The target(s) in this attribute must define all the providers of at least
     * one of the ProviderNameGroups in this list. If the Attribute Type is not a
     * label, a label list, or a label-keyed string dictionary, the field will be
     * left empty. For attributes of a repository rule or a module extension tag,
     * this attribute is meaningless and may be ignored.
     * TODO(b/290788853): ensure this field is always empty for attributes of a
     * repository rule or a module extension tag.
     * 
* * repeated .stardoc_output.ProviderNameGroup provider_name_group = 5; */ com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.ProviderNameGroup getProviderNameGroup(int index); /** *
     * The target(s) in this attribute must define all the providers of at least
     * one of the ProviderNameGroups in this list. If the Attribute Type is not a
     * label, a label list, or a label-keyed string dictionary, the field will be
     * left empty. For attributes of a repository rule or a module extension tag,
     * this attribute is meaningless and may be ignored.
     * TODO(b/290788853): ensure this field is always empty for attributes of a
     * repository rule or a module extension tag.
     * 
* * repeated .stardoc_output.ProviderNameGroup provider_name_group = 5; */ int getProviderNameGroupCount(); /** *
     * The target(s) in this attribute must define all the providers of at least
     * one of the ProviderNameGroups in this list. If the Attribute Type is not a
     * label, a label list, or a label-keyed string dictionary, the field will be
     * left empty. For attributes of a repository rule or a module extension tag,
     * this attribute is meaningless and may be ignored.
     * TODO(b/290788853): ensure this field is always empty for attributes of a
     * repository rule or a module extension tag.
     * 
* * repeated .stardoc_output.ProviderNameGroup provider_name_group = 5; */ java.util.List getProviderNameGroupOrBuilderList(); /** *
     * The target(s) in this attribute must define all the providers of at least
     * one of the ProviderNameGroups in this list. If the Attribute Type is not a
     * label, a label list, or a label-keyed string dictionary, the field will be
     * left empty. For attributes of a repository rule or a module extension tag,
     * this attribute is meaningless and may be ignored.
     * TODO(b/290788853): ensure this field is always empty for attributes of a
     * repository rule or a module extension tag.
     * 
* * repeated .stardoc_output.ProviderNameGroup provider_name_group = 5; */ com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.ProviderNameGroupOrBuilder getProviderNameGroupOrBuilder( int index); /** *
     * The string representation of the default value of this attribute.
     * 
* * string default_value = 6; * @return The defaultValue. */ java.lang.String getDefaultValue(); /** *
     * The string representation of the default value of this attribute.
     * 
* * string default_value = 6; * @return The bytes for defaultValue. */ com.google.protobuf.ByteString getDefaultValueBytes(); /** *
     * If true, the attribute is non-configurable.
     * 
* * bool nonconfigurable = 7; * @return The nonconfigurable. */ boolean getNonconfigurable(); } /** *
   * Representation of a Starlark rule, repository rule, or module extension tag
   * attribute definition, comprised of an attribute name, and a schema defined by
   * a call to one of the 'attr' module methods enumerated at
   * https://bazel.build/rules/lib/attr
   * 
* * Protobuf type {@code stardoc_output.AttributeInfo} */ public static final class AttributeInfo extends com.google.protobuf.GeneratedMessage implements // @@protoc_insertion_point(message_implements:stardoc_output.AttributeInfo) AttributeInfoOrBuilder { private static final long serialVersionUID = 0L; static { com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, /* major= */ 4, /* minor= */ 28, /* patch= */ 3, /* suffix= */ "", AttributeInfo.class.getName()); } // Use AttributeInfo.newBuilder() to construct. private AttributeInfo(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); } private AttributeInfo() { name_ = ""; docString_ = ""; type_ = 0; providerNameGroup_ = java.util.Collections.emptyList(); defaultValue_ = ""; } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.internal_static_stardoc_output_AttributeInfo_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.internal_static_stardoc_output_AttributeInfo_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.AttributeInfo.class, com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.AttributeInfo.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; @SuppressWarnings("serial") private volatile java.lang.Object name_ = ""; /** *
     * The name of the attribute.
     * 
* * string name = 1; * @return The name. */ @java.lang.Override 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; } } /** *
     * The name of the attribute.
     * 
* * string name = 1; * @return The bytes for name. */ @java.lang.Override 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 DOC_STRING_FIELD_NUMBER = 2; @SuppressWarnings("serial") private volatile java.lang.Object docString_ = ""; /** *
     * The documentation string of the attribute, supplied via the 'doc'
     * parameter to the schema-creation call.
     * 
* * string doc_string = 2; * @return The docString. */ @java.lang.Override public java.lang.String getDocString() { java.lang.Object ref = docString_; 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(); docString_ = s; return s; } } /** *
     * The documentation string of the attribute, supplied via the 'doc'
     * parameter to the schema-creation call.
     * 
* * string doc_string = 2; * @return The bytes for docString. */ @java.lang.Override public com.google.protobuf.ByteString getDocStringBytes() { java.lang.Object ref = docString_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); docString_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int TYPE_FIELD_NUMBER = 3; private int type_ = 0; /** *
     * The type of the attribute, defined generally by which function is invoked
     * in the attr module.
     * 
* * .stardoc_output.AttributeType type = 3; * @return The enum numeric value on the wire for type. */ @java.lang.Override public int getTypeValue() { return type_; } /** *
     * The type of the attribute, defined generally by which function is invoked
     * in the attr module.
     * 
* * .stardoc_output.AttributeType type = 3; * @return The type. */ @java.lang.Override public com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.AttributeType getType() { com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.AttributeType result = com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.AttributeType.forNumber(type_); return result == null ? com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.AttributeType.UNRECOGNIZED : result; } public static final int MANDATORY_FIELD_NUMBER = 4; private boolean mandatory_ = false; /** *
     * If true, all targets of the rule must specify a value for this attribute.
     * 
* * bool mandatory = 4; * @return The mandatory. */ @java.lang.Override public boolean getMandatory() { return mandatory_; } public static final int PROVIDER_NAME_GROUP_FIELD_NUMBER = 5; @SuppressWarnings("serial") private java.util.List providerNameGroup_; /** *
     * The target(s) in this attribute must define all the providers of at least
     * one of the ProviderNameGroups in this list. If the Attribute Type is not a
     * label, a label list, or a label-keyed string dictionary, the field will be
     * left empty. For attributes of a repository rule or a module extension tag,
     * this attribute is meaningless and may be ignored.
     * TODO(b/290788853): ensure this field is always empty for attributes of a
     * repository rule or a module extension tag.
     * 
* * repeated .stardoc_output.ProviderNameGroup provider_name_group = 5; */ @java.lang.Override public java.util.List getProviderNameGroupList() { return providerNameGroup_; } /** *
     * The target(s) in this attribute must define all the providers of at least
     * one of the ProviderNameGroups in this list. If the Attribute Type is not a
     * label, a label list, or a label-keyed string dictionary, the field will be
     * left empty. For attributes of a repository rule or a module extension tag,
     * this attribute is meaningless and may be ignored.
     * TODO(b/290788853): ensure this field is always empty for attributes of a
     * repository rule or a module extension tag.
     * 
* * repeated .stardoc_output.ProviderNameGroup provider_name_group = 5; */ @java.lang.Override public java.util.List getProviderNameGroupOrBuilderList() { return providerNameGroup_; } /** *
     * The target(s) in this attribute must define all the providers of at least
     * one of the ProviderNameGroups in this list. If the Attribute Type is not a
     * label, a label list, or a label-keyed string dictionary, the field will be
     * left empty. For attributes of a repository rule or a module extension tag,
     * this attribute is meaningless and may be ignored.
     * TODO(b/290788853): ensure this field is always empty for attributes of a
     * repository rule or a module extension tag.
     * 
* * repeated .stardoc_output.ProviderNameGroup provider_name_group = 5; */ @java.lang.Override public int getProviderNameGroupCount() { return providerNameGroup_.size(); } /** *
     * The target(s) in this attribute must define all the providers of at least
     * one of the ProviderNameGroups in this list. If the Attribute Type is not a
     * label, a label list, or a label-keyed string dictionary, the field will be
     * left empty. For attributes of a repository rule or a module extension tag,
     * this attribute is meaningless and may be ignored.
     * TODO(b/290788853): ensure this field is always empty for attributes of a
     * repository rule or a module extension tag.
     * 
* * repeated .stardoc_output.ProviderNameGroup provider_name_group = 5; */ @java.lang.Override public com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.ProviderNameGroup getProviderNameGroup(int index) { return providerNameGroup_.get(index); } /** *
     * The target(s) in this attribute must define all the providers of at least
     * one of the ProviderNameGroups in this list. If the Attribute Type is not a
     * label, a label list, or a label-keyed string dictionary, the field will be
     * left empty. For attributes of a repository rule or a module extension tag,
     * this attribute is meaningless and may be ignored.
     * TODO(b/290788853): ensure this field is always empty for attributes of a
     * repository rule or a module extension tag.
     * 
* * repeated .stardoc_output.ProviderNameGroup provider_name_group = 5; */ @java.lang.Override public com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.ProviderNameGroupOrBuilder getProviderNameGroupOrBuilder( int index) { return providerNameGroup_.get(index); } public static final int DEFAULT_VALUE_FIELD_NUMBER = 6; @SuppressWarnings("serial") private volatile java.lang.Object defaultValue_ = ""; /** *
     * The string representation of the default value of this attribute.
     * 
* * string default_value = 6; * @return The defaultValue. */ @java.lang.Override 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; } } /** *
     * The string representation of the default value of this attribute.
     * 
* * string default_value = 6; * @return The bytes for defaultValue. */ @java.lang.Override 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 NONCONFIGURABLE_FIELD_NUMBER = 7; private boolean nonconfigurable_ = false; /** *
     * If true, the attribute is non-configurable.
     * 
* * bool nonconfigurable = 7; * @return The nonconfigurable. */ @java.lang.Override public boolean getNonconfigurable() { return nonconfigurable_; } 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 (!com.google.protobuf.GeneratedMessage.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessage.writeString(output, 1, name_); } if (!com.google.protobuf.GeneratedMessage.isStringEmpty(docString_)) { com.google.protobuf.GeneratedMessage.writeString(output, 2, docString_); } if (type_ != com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.AttributeType.UNKNOWN.getNumber()) { output.writeEnum(3, type_); } if (mandatory_ != false) { output.writeBool(4, mandatory_); } for (int i = 0; i < providerNameGroup_.size(); i++) { output.writeMessage(5, providerNameGroup_.get(i)); } if (!com.google.protobuf.GeneratedMessage.isStringEmpty(defaultValue_)) { com.google.protobuf.GeneratedMessage.writeString(output, 6, defaultValue_); } if (nonconfigurable_ != false) { output.writeBool(7, nonconfigurable_); } getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (!com.google.protobuf.GeneratedMessage.isStringEmpty(name_)) { size += com.google.protobuf.GeneratedMessage.computeStringSize(1, name_); } if (!com.google.protobuf.GeneratedMessage.isStringEmpty(docString_)) { size += com.google.protobuf.GeneratedMessage.computeStringSize(2, docString_); } if (type_ != com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.AttributeType.UNKNOWN.getNumber()) { size += com.google.protobuf.CodedOutputStream .computeEnumSize(3, type_); } if (mandatory_ != false) { size += com.google.protobuf.CodedOutputStream .computeBoolSize(4, mandatory_); } for (int i = 0; i < providerNameGroup_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(5, providerNameGroup_.get(i)); } if (!com.google.protobuf.GeneratedMessage.isStringEmpty(defaultValue_)) { size += com.google.protobuf.GeneratedMessage.computeStringSize(6, defaultValue_); } if (nonconfigurable_ != false) { size += com.google.protobuf.CodedOutputStream .computeBoolSize(7, nonconfigurable_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.AttributeInfo)) { return super.equals(obj); } com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.AttributeInfo other = (com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.AttributeInfo) obj; if (!getName() .equals(other.getName())) return false; if (!getDocString() .equals(other.getDocString())) return false; if (type_ != other.type_) return false; if (getMandatory() != other.getMandatory()) return false; if (!getProviderNameGroupList() .equals(other.getProviderNameGroupList())) return false; if (!getDefaultValue() .equals(other.getDefaultValue())) return false; if (getNonconfigurable() != other.getNonconfigurable()) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + NAME_FIELD_NUMBER; hash = (53 * hash) + getName().hashCode(); hash = (37 * hash) + DOC_STRING_FIELD_NUMBER; hash = (53 * hash) + getDocString().hashCode(); hash = (37 * hash) + TYPE_FIELD_NUMBER; hash = (53 * hash) + type_; hash = (37 * hash) + MANDATORY_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( getMandatory()); if (getProviderNameGroupCount() > 0) { hash = (37 * hash) + PROVIDER_NAME_GROUP_FIELD_NUMBER; hash = (53 * hash) + getProviderNameGroupList().hashCode(); } hash = (37 * hash) + DEFAULT_VALUE_FIELD_NUMBER; hash = (53 * hash) + getDefaultValue().hashCode(); hash = (37 * hash) + NONCONFIGURABLE_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( getNonconfigurable()); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.AttributeInfo parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.AttributeInfo 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.lib.starlarkdocextract.StardocOutputProtos.AttributeInfo parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.AttributeInfo 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.lib.starlarkdocextract.StardocOutputProtos.AttributeInfo parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.AttributeInfo parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.AttributeInfo parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessage .parseWithIOException(PARSER, input); } public static com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.AttributeInfo parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessage .parseWithIOException(PARSER, input, extensionRegistry); } public static com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.AttributeInfo parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessage .parseDelimitedWithIOException(PARSER, input); } public static com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.AttributeInfo parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessage .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.AttributeInfo parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessage .parseWithIOException(PARSER, input); } public static com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.AttributeInfo parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessage .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.AttributeInfo prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } @java.lang.Override public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessage.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** *
     * Representation of a Starlark rule, repository rule, or module extension tag
     * attribute definition, comprised of an attribute name, and a schema defined by
     * a call to one of the 'attr' module methods enumerated at
     * https://bazel.build/rules/lib/attr
     * 
* * Protobuf type {@code stardoc_output.AttributeInfo} */ public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder implements // @@protoc_insertion_point(builder_implements:stardoc_output.AttributeInfo) com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.AttributeInfoOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.internal_static_stardoc_output_AttributeInfo_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.internal_static_stardoc_output_AttributeInfo_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.AttributeInfo.class, com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.AttributeInfo.Builder.class); } // Construct using com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.AttributeInfo.newBuilder() private Builder() { } private Builder( com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; name_ = ""; docString_ = ""; type_ = 0; mandatory_ = false; if (providerNameGroupBuilder_ == null) { providerNameGroup_ = java.util.Collections.emptyList(); } else { providerNameGroup_ = null; providerNameGroupBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000010); defaultValue_ = ""; nonconfigurable_ = false; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.internal_static_stardoc_output_AttributeInfo_descriptor; } @java.lang.Override public com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.AttributeInfo getDefaultInstanceForType() { return com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.AttributeInfo.getDefaultInstance(); } @java.lang.Override public com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.AttributeInfo build() { com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.AttributeInfo result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.AttributeInfo buildPartial() { com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.AttributeInfo result = new com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.AttributeInfo(this); buildPartialRepeatedFields(result); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartialRepeatedFields(com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.AttributeInfo result) { if (providerNameGroupBuilder_ == null) { if (((bitField0_ & 0x00000010) != 0)) { providerNameGroup_ = java.util.Collections.unmodifiableList(providerNameGroup_); bitField0_ = (bitField0_ & ~0x00000010); } result.providerNameGroup_ = providerNameGroup_; } else { result.providerNameGroup_ = providerNameGroupBuilder_.build(); } } private void buildPartial0(com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.AttributeInfo result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.name_ = name_; } if (((from_bitField0_ & 0x00000002) != 0)) { result.docString_ = docString_; } if (((from_bitField0_ & 0x00000004) != 0)) { result.type_ = type_; } if (((from_bitField0_ & 0x00000008) != 0)) { result.mandatory_ = mandatory_; } if (((from_bitField0_ & 0x00000020) != 0)) { result.defaultValue_ = defaultValue_; } if (((from_bitField0_ & 0x00000040) != 0)) { result.nonconfigurable_ = nonconfigurable_; } } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.AttributeInfo) { return mergeFrom((com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.AttributeInfo)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.AttributeInfo other) { if (other == com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.AttributeInfo.getDefaultInstance()) return this; if (!other.getName().isEmpty()) { name_ = other.name_; bitField0_ |= 0x00000001; onChanged(); } if (!other.getDocString().isEmpty()) { docString_ = other.docString_; bitField0_ |= 0x00000002; onChanged(); } if (other.type_ != 0) { setTypeValue(other.getTypeValue()); } if (other.getMandatory() != false) { setMandatory(other.getMandatory()); } if (providerNameGroupBuilder_ == null) { if (!other.providerNameGroup_.isEmpty()) { if (providerNameGroup_.isEmpty()) { providerNameGroup_ = other.providerNameGroup_; bitField0_ = (bitField0_ & ~0x00000010); } else { ensureProviderNameGroupIsMutable(); providerNameGroup_.addAll(other.providerNameGroup_); } onChanged(); } } else { if (!other.providerNameGroup_.isEmpty()) { if (providerNameGroupBuilder_.isEmpty()) { providerNameGroupBuilder_.dispose(); providerNameGroupBuilder_ = null; providerNameGroup_ = other.providerNameGroup_; bitField0_ = (bitField0_ & ~0x00000010); providerNameGroupBuilder_ = com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ? getProviderNameGroupFieldBuilder() : null; } else { providerNameGroupBuilder_.addAllMessages(other.providerNameGroup_); } } } if (!other.getDefaultValue().isEmpty()) { defaultValue_ = other.defaultValue_; bitField0_ |= 0x00000020; onChanged(); } if (other.getNonconfigurable() != false) { setNonconfigurable(other.getNonconfigurable()); } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { return true; } @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 10: { name_ = input.readStringRequireUtf8(); bitField0_ |= 0x00000001; break; } // case 10 case 18: { docString_ = input.readStringRequireUtf8(); bitField0_ |= 0x00000002; break; } // case 18 case 24: { type_ = input.readEnum(); bitField0_ |= 0x00000004; break; } // case 24 case 32: { mandatory_ = input.readBool(); bitField0_ |= 0x00000008; break; } // case 32 case 42: { com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.ProviderNameGroup m = input.readMessage( com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.ProviderNameGroup.parser(), extensionRegistry); if (providerNameGroupBuilder_ == null) { ensureProviderNameGroupIsMutable(); providerNameGroup_.add(m); } else { providerNameGroupBuilder_.addMessage(m); } break; } // case 42 case 50: { defaultValue_ = input.readStringRequireUtf8(); bitField0_ |= 0x00000020; break; } // case 50 case 56: { nonconfigurable_ = input.readBool(); bitField0_ |= 0x00000040; break; } // case 56 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { done = true; // was an endgroup tag } break; } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.unwrapIOException(); } finally { onChanged(); } // finally return this; } private int bitField0_; private java.lang.Object name_ = ""; /** *
       * The name of the attribute.
       * 
* * string name = 1; * @return The name. */ 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; } } /** *
       * The name of the attribute.
       * 
* * string name = 1; * @return The bytes for name. */ 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; } } /** *
       * The name of the attribute.
       * 
* * string name = 1; * @param value The name to set. * @return This builder for chaining. */ public Builder setName( java.lang.String value) { if (value == null) { throw new NullPointerException(); } name_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** *
       * The name of the attribute.
       * 
* * string name = 1; * @return This builder for chaining. */ public Builder clearName() { name_ = getDefaultInstance().getName(); bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } /** *
       * The name of the attribute.
       * 
* * string name = 1; * @param value The bytes for name to set. * @return This builder for chaining. */ public Builder setNameBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); name_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } private java.lang.Object docString_ = ""; /** *
       * The documentation string of the attribute, supplied via the 'doc'
       * parameter to the schema-creation call.
       * 
* * string doc_string = 2; * @return The docString. */ public java.lang.String getDocString() { java.lang.Object ref = docString_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); docString_ = s; return s; } else { return (java.lang.String) ref; } } /** *
       * The documentation string of the attribute, supplied via the 'doc'
       * parameter to the schema-creation call.
       * 
* * string doc_string = 2; * @return The bytes for docString. */ public com.google.protobuf.ByteString getDocStringBytes() { java.lang.Object ref = docString_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); docString_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
       * The documentation string of the attribute, supplied via the 'doc'
       * parameter to the schema-creation call.
       * 
* * string doc_string = 2; * @param value The docString to set. * @return This builder for chaining. */ public Builder setDocString( java.lang.String value) { if (value == null) { throw new NullPointerException(); } docString_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** *
       * The documentation string of the attribute, supplied via the 'doc'
       * parameter to the schema-creation call.
       * 
* * string doc_string = 2; * @return This builder for chaining. */ public Builder clearDocString() { docString_ = getDefaultInstance().getDocString(); bitField0_ = (bitField0_ & ~0x00000002); onChanged(); return this; } /** *
       * The documentation string of the attribute, supplied via the 'doc'
       * parameter to the schema-creation call.
       * 
* * string doc_string = 2; * @param value The bytes for docString to set. * @return This builder for chaining. */ public Builder setDocStringBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); docString_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } private int type_ = 0; /** *
       * The type of the attribute, defined generally by which function is invoked
       * in the attr module.
       * 
* * .stardoc_output.AttributeType type = 3; * @return The enum numeric value on the wire for type. */ @java.lang.Override public int getTypeValue() { return type_; } /** *
       * The type of the attribute, defined generally by which function is invoked
       * in the attr module.
       * 
* * .stardoc_output.AttributeType type = 3; * @param value The enum numeric value on the wire for type to set. * @return This builder for chaining. */ public Builder setTypeValue(int value) { type_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } /** *
       * The type of the attribute, defined generally by which function is invoked
       * in the attr module.
       * 
* * .stardoc_output.AttributeType type = 3; * @return The type. */ @java.lang.Override public com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.AttributeType getType() { com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.AttributeType result = com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.AttributeType.forNumber(type_); return result == null ? com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.AttributeType.UNRECOGNIZED : result; } /** *
       * The type of the attribute, defined generally by which function is invoked
       * in the attr module.
       * 
* * .stardoc_output.AttributeType type = 3; * @param value The type to set. * @return This builder for chaining. */ public Builder setType(com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.AttributeType value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000004; type_ = value.getNumber(); onChanged(); return this; } /** *
       * The type of the attribute, defined generally by which function is invoked
       * in the attr module.
       * 
* * .stardoc_output.AttributeType type = 3; * @return This builder for chaining. */ public Builder clearType() { bitField0_ = (bitField0_ & ~0x00000004); type_ = 0; onChanged(); return this; } private boolean mandatory_ ; /** *
       * If true, all targets of the rule must specify a value for this attribute.
       * 
* * bool mandatory = 4; * @return The mandatory. */ @java.lang.Override public boolean getMandatory() { return mandatory_; } /** *
       * If true, all targets of the rule must specify a value for this attribute.
       * 
* * bool mandatory = 4; * @param value The mandatory to set. * @return This builder for chaining. */ public Builder setMandatory(boolean value) { mandatory_ = value; bitField0_ |= 0x00000008; onChanged(); return this; } /** *
       * If true, all targets of the rule must specify a value for this attribute.
       * 
* * bool mandatory = 4; * @return This builder for chaining. */ public Builder clearMandatory() { bitField0_ = (bitField0_ & ~0x00000008); mandatory_ = false; onChanged(); return this; } private java.util.List providerNameGroup_ = java.util.Collections.emptyList(); private void ensureProviderNameGroupIsMutable() { if (!((bitField0_ & 0x00000010) != 0)) { providerNameGroup_ = new java.util.ArrayList(providerNameGroup_); bitField0_ |= 0x00000010; } } private com.google.protobuf.RepeatedFieldBuilder< com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.ProviderNameGroup, com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.ProviderNameGroup.Builder, com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.ProviderNameGroupOrBuilder> providerNameGroupBuilder_; /** *
       * The target(s) in this attribute must define all the providers of at least
       * one of the ProviderNameGroups in this list. If the Attribute Type is not a
       * label, a label list, or a label-keyed string dictionary, the field will be
       * left empty. For attributes of a repository rule or a module extension tag,
       * this attribute is meaningless and may be ignored.
       * TODO(b/290788853): ensure this field is always empty for attributes of a
       * repository rule or a module extension tag.
       * 
* * repeated .stardoc_output.ProviderNameGroup provider_name_group = 5; */ public java.util.List getProviderNameGroupList() { if (providerNameGroupBuilder_ == null) { return java.util.Collections.unmodifiableList(providerNameGroup_); } else { return providerNameGroupBuilder_.getMessageList(); } } /** *
       * The target(s) in this attribute must define all the providers of at least
       * one of the ProviderNameGroups in this list. If the Attribute Type is not a
       * label, a label list, or a label-keyed string dictionary, the field will be
       * left empty. For attributes of a repository rule or a module extension tag,
       * this attribute is meaningless and may be ignored.
       * TODO(b/290788853): ensure this field is always empty for attributes of a
       * repository rule or a module extension tag.
       * 
* * repeated .stardoc_output.ProviderNameGroup provider_name_group = 5; */ public int getProviderNameGroupCount() { if (providerNameGroupBuilder_ == null) { return providerNameGroup_.size(); } else { return providerNameGroupBuilder_.getCount(); } } /** *
       * The target(s) in this attribute must define all the providers of at least
       * one of the ProviderNameGroups in this list. If the Attribute Type is not a
       * label, a label list, or a label-keyed string dictionary, the field will be
       * left empty. For attributes of a repository rule or a module extension tag,
       * this attribute is meaningless and may be ignored.
       * TODO(b/290788853): ensure this field is always empty for attributes of a
       * repository rule or a module extension tag.
       * 
* * repeated .stardoc_output.ProviderNameGroup provider_name_group = 5; */ public com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.ProviderNameGroup getProviderNameGroup(int index) { if (providerNameGroupBuilder_ == null) { return providerNameGroup_.get(index); } else { return providerNameGroupBuilder_.getMessage(index); } } /** *
       * The target(s) in this attribute must define all the providers of at least
       * one of the ProviderNameGroups in this list. If the Attribute Type is not a
       * label, a label list, or a label-keyed string dictionary, the field will be
       * left empty. For attributes of a repository rule or a module extension tag,
       * this attribute is meaningless and may be ignored.
       * TODO(b/290788853): ensure this field is always empty for attributes of a
       * repository rule or a module extension tag.
       * 
* * repeated .stardoc_output.ProviderNameGroup provider_name_group = 5; */ public Builder setProviderNameGroup( int index, com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.ProviderNameGroup value) { if (providerNameGroupBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureProviderNameGroupIsMutable(); providerNameGroup_.set(index, value); onChanged(); } else { providerNameGroupBuilder_.setMessage(index, value); } return this; } /** *
       * The target(s) in this attribute must define all the providers of at least
       * one of the ProviderNameGroups in this list. If the Attribute Type is not a
       * label, a label list, or a label-keyed string dictionary, the field will be
       * left empty. For attributes of a repository rule or a module extension tag,
       * this attribute is meaningless and may be ignored.
       * TODO(b/290788853): ensure this field is always empty for attributes of a
       * repository rule or a module extension tag.
       * 
* * repeated .stardoc_output.ProviderNameGroup provider_name_group = 5; */ public Builder setProviderNameGroup( int index, com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.ProviderNameGroup.Builder builderForValue) { if (providerNameGroupBuilder_ == null) { ensureProviderNameGroupIsMutable(); providerNameGroup_.set(index, builderForValue.build()); onChanged(); } else { providerNameGroupBuilder_.setMessage(index, builderForValue.build()); } return this; } /** *
       * The target(s) in this attribute must define all the providers of at least
       * one of the ProviderNameGroups in this list. If the Attribute Type is not a
       * label, a label list, or a label-keyed string dictionary, the field will be
       * left empty. For attributes of a repository rule or a module extension tag,
       * this attribute is meaningless and may be ignored.
       * TODO(b/290788853): ensure this field is always empty for attributes of a
       * repository rule or a module extension tag.
       * 
* * repeated .stardoc_output.ProviderNameGroup provider_name_group = 5; */ public Builder addProviderNameGroup(com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.ProviderNameGroup value) { if (providerNameGroupBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureProviderNameGroupIsMutable(); providerNameGroup_.add(value); onChanged(); } else { providerNameGroupBuilder_.addMessage(value); } return this; } /** *
       * The target(s) in this attribute must define all the providers of at least
       * one of the ProviderNameGroups in this list. If the Attribute Type is not a
       * label, a label list, or a label-keyed string dictionary, the field will be
       * left empty. For attributes of a repository rule or a module extension tag,
       * this attribute is meaningless and may be ignored.
       * TODO(b/290788853): ensure this field is always empty for attributes of a
       * repository rule or a module extension tag.
       * 
* * repeated .stardoc_output.ProviderNameGroup provider_name_group = 5; */ public Builder addProviderNameGroup( int index, com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.ProviderNameGroup value) { if (providerNameGroupBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureProviderNameGroupIsMutable(); providerNameGroup_.add(index, value); onChanged(); } else { providerNameGroupBuilder_.addMessage(index, value); } return this; } /** *
       * The target(s) in this attribute must define all the providers of at least
       * one of the ProviderNameGroups in this list. If the Attribute Type is not a
       * label, a label list, or a label-keyed string dictionary, the field will be
       * left empty. For attributes of a repository rule or a module extension tag,
       * this attribute is meaningless and may be ignored.
       * TODO(b/290788853): ensure this field is always empty for attributes of a
       * repository rule or a module extension tag.
       * 
* * repeated .stardoc_output.ProviderNameGroup provider_name_group = 5; */ public Builder addProviderNameGroup( com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.ProviderNameGroup.Builder builderForValue) { if (providerNameGroupBuilder_ == null) { ensureProviderNameGroupIsMutable(); providerNameGroup_.add(builderForValue.build()); onChanged(); } else { providerNameGroupBuilder_.addMessage(builderForValue.build()); } return this; } /** *
       * The target(s) in this attribute must define all the providers of at least
       * one of the ProviderNameGroups in this list. If the Attribute Type is not a
       * label, a label list, or a label-keyed string dictionary, the field will be
       * left empty. For attributes of a repository rule or a module extension tag,
       * this attribute is meaningless and may be ignored.
       * TODO(b/290788853): ensure this field is always empty for attributes of a
       * repository rule or a module extension tag.
       * 
* * repeated .stardoc_output.ProviderNameGroup provider_name_group = 5; */ public Builder addProviderNameGroup( int index, com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.ProviderNameGroup.Builder builderForValue) { if (providerNameGroupBuilder_ == null) { ensureProviderNameGroupIsMutable(); providerNameGroup_.add(index, builderForValue.build()); onChanged(); } else { providerNameGroupBuilder_.addMessage(index, builderForValue.build()); } return this; } /** *
       * The target(s) in this attribute must define all the providers of at least
       * one of the ProviderNameGroups in this list. If the Attribute Type is not a
       * label, a label list, or a label-keyed string dictionary, the field will be
       * left empty. For attributes of a repository rule or a module extension tag,
       * this attribute is meaningless and may be ignored.
       * TODO(b/290788853): ensure this field is always empty for attributes of a
       * repository rule or a module extension tag.
       * 
* * repeated .stardoc_output.ProviderNameGroup provider_name_group = 5; */ public Builder addAllProviderNameGroup( java.lang.Iterable values) { if (providerNameGroupBuilder_ == null) { ensureProviderNameGroupIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, providerNameGroup_); onChanged(); } else { providerNameGroupBuilder_.addAllMessages(values); } return this; } /** *
       * The target(s) in this attribute must define all the providers of at least
       * one of the ProviderNameGroups in this list. If the Attribute Type is not a
       * label, a label list, or a label-keyed string dictionary, the field will be
       * left empty. For attributes of a repository rule or a module extension tag,
       * this attribute is meaningless and may be ignored.
       * TODO(b/290788853): ensure this field is always empty for attributes of a
       * repository rule or a module extension tag.
       * 
* * repeated .stardoc_output.ProviderNameGroup provider_name_group = 5; */ public Builder clearProviderNameGroup() { if (providerNameGroupBuilder_ == null) { providerNameGroup_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000010); onChanged(); } else { providerNameGroupBuilder_.clear(); } return this; } /** *
       * The target(s) in this attribute must define all the providers of at least
       * one of the ProviderNameGroups in this list. If the Attribute Type is not a
       * label, a label list, or a label-keyed string dictionary, the field will be
       * left empty. For attributes of a repository rule or a module extension tag,
       * this attribute is meaningless and may be ignored.
       * TODO(b/290788853): ensure this field is always empty for attributes of a
       * repository rule or a module extension tag.
       * 
* * repeated .stardoc_output.ProviderNameGroup provider_name_group = 5; */ public Builder removeProviderNameGroup(int index) { if (providerNameGroupBuilder_ == null) { ensureProviderNameGroupIsMutable(); providerNameGroup_.remove(index); onChanged(); } else { providerNameGroupBuilder_.remove(index); } return this; } /** *
       * The target(s) in this attribute must define all the providers of at least
       * one of the ProviderNameGroups in this list. If the Attribute Type is not a
       * label, a label list, or a label-keyed string dictionary, the field will be
       * left empty. For attributes of a repository rule or a module extension tag,
       * this attribute is meaningless and may be ignored.
       * TODO(b/290788853): ensure this field is always empty for attributes of a
       * repository rule or a module extension tag.
       * 
* * repeated .stardoc_output.ProviderNameGroup provider_name_group = 5; */ public com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.ProviderNameGroup.Builder getProviderNameGroupBuilder( int index) { return getProviderNameGroupFieldBuilder().getBuilder(index); } /** *
       * The target(s) in this attribute must define all the providers of at least
       * one of the ProviderNameGroups in this list. If the Attribute Type is not a
       * label, a label list, or a label-keyed string dictionary, the field will be
       * left empty. For attributes of a repository rule or a module extension tag,
       * this attribute is meaningless and may be ignored.
       * TODO(b/290788853): ensure this field is always empty for attributes of a
       * repository rule or a module extension tag.
       * 
* * repeated .stardoc_output.ProviderNameGroup provider_name_group = 5; */ public com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.ProviderNameGroupOrBuilder getProviderNameGroupOrBuilder( int index) { if (providerNameGroupBuilder_ == null) { return providerNameGroup_.get(index); } else { return providerNameGroupBuilder_.getMessageOrBuilder(index); } } /** *
       * The target(s) in this attribute must define all the providers of at least
       * one of the ProviderNameGroups in this list. If the Attribute Type is not a
       * label, a label list, or a label-keyed string dictionary, the field will be
       * left empty. For attributes of a repository rule or a module extension tag,
       * this attribute is meaningless and may be ignored.
       * TODO(b/290788853): ensure this field is always empty for attributes of a
       * repository rule or a module extension tag.
       * 
* * repeated .stardoc_output.ProviderNameGroup provider_name_group = 5; */ public java.util.List getProviderNameGroupOrBuilderList() { if (providerNameGroupBuilder_ != null) { return providerNameGroupBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(providerNameGroup_); } } /** *
       * The target(s) in this attribute must define all the providers of at least
       * one of the ProviderNameGroups in this list. If the Attribute Type is not a
       * label, a label list, or a label-keyed string dictionary, the field will be
       * left empty. For attributes of a repository rule or a module extension tag,
       * this attribute is meaningless and may be ignored.
       * TODO(b/290788853): ensure this field is always empty for attributes of a
       * repository rule or a module extension tag.
       * 
* * repeated .stardoc_output.ProviderNameGroup provider_name_group = 5; */ public com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.ProviderNameGroup.Builder addProviderNameGroupBuilder() { return getProviderNameGroupFieldBuilder().addBuilder( com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.ProviderNameGroup.getDefaultInstance()); } /** *
       * The target(s) in this attribute must define all the providers of at least
       * one of the ProviderNameGroups in this list. If the Attribute Type is not a
       * label, a label list, or a label-keyed string dictionary, the field will be
       * left empty. For attributes of a repository rule or a module extension tag,
       * this attribute is meaningless and may be ignored.
       * TODO(b/290788853): ensure this field is always empty for attributes of a
       * repository rule or a module extension tag.
       * 
* * repeated .stardoc_output.ProviderNameGroup provider_name_group = 5; */ public com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.ProviderNameGroup.Builder addProviderNameGroupBuilder( int index) { return getProviderNameGroupFieldBuilder().addBuilder( index, com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.ProviderNameGroup.getDefaultInstance()); } /** *
       * The target(s) in this attribute must define all the providers of at least
       * one of the ProviderNameGroups in this list. If the Attribute Type is not a
       * label, a label list, or a label-keyed string dictionary, the field will be
       * left empty. For attributes of a repository rule or a module extension tag,
       * this attribute is meaningless and may be ignored.
       * TODO(b/290788853): ensure this field is always empty for attributes of a
       * repository rule or a module extension tag.
       * 
* * repeated .stardoc_output.ProviderNameGroup provider_name_group = 5; */ public java.util.List getProviderNameGroupBuilderList() { return getProviderNameGroupFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilder< com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.ProviderNameGroup, com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.ProviderNameGroup.Builder, com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.ProviderNameGroupOrBuilder> getProviderNameGroupFieldBuilder() { if (providerNameGroupBuilder_ == null) { providerNameGroupBuilder_ = new com.google.protobuf.RepeatedFieldBuilder< com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.ProviderNameGroup, com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.ProviderNameGroup.Builder, com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.ProviderNameGroupOrBuilder>( providerNameGroup_, ((bitField0_ & 0x00000010) != 0), getParentForChildren(), isClean()); providerNameGroup_ = null; } return providerNameGroupBuilder_; } private java.lang.Object defaultValue_ = ""; /** *
       * The string representation of the default value of this attribute.
       * 
* * string default_value = 6; * @return The defaultValue. */ 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; } } /** *
       * The string representation of the default value of this attribute.
       * 
* * string default_value = 6; * @return The bytes for defaultValue. */ 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; } } /** *
       * The string representation of the default value of this attribute.
       * 
* * string default_value = 6; * @param value The defaultValue to set. * @return This builder for chaining. */ public Builder setDefaultValue( java.lang.String value) { if (value == null) { throw new NullPointerException(); } defaultValue_ = value; bitField0_ |= 0x00000020; onChanged(); return this; } /** *
       * The string representation of the default value of this attribute.
       * 
* * string default_value = 6; * @return This builder for chaining. */ public Builder clearDefaultValue() { defaultValue_ = getDefaultInstance().getDefaultValue(); bitField0_ = (bitField0_ & ~0x00000020); onChanged(); return this; } /** *
       * The string representation of the default value of this attribute.
       * 
* * string default_value = 6; * @param value The bytes for defaultValue to set. * @return This builder for chaining. */ public Builder setDefaultValueBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); defaultValue_ = value; bitField0_ |= 0x00000020; onChanged(); return this; } private boolean nonconfigurable_ ; /** *
       * If true, the attribute is non-configurable.
       * 
* * bool nonconfigurable = 7; * @return The nonconfigurable. */ @java.lang.Override public boolean getNonconfigurable() { return nonconfigurable_; } /** *
       * If true, the attribute is non-configurable.
       * 
* * bool nonconfigurable = 7; * @param value The nonconfigurable to set. * @return This builder for chaining. */ public Builder setNonconfigurable(boolean value) { nonconfigurable_ = value; bitField0_ |= 0x00000040; onChanged(); return this; } /** *
       * If true, the attribute is non-configurable.
       * 
* * bool nonconfigurable = 7; * @return This builder for chaining. */ public Builder clearNonconfigurable() { bitField0_ = (bitField0_ & ~0x00000040); nonconfigurable_ = false; onChanged(); return this; } // @@protoc_insertion_point(builder_scope:stardoc_output.AttributeInfo) } // @@protoc_insertion_point(class_scope:stardoc_output.AttributeInfo) private static final com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.AttributeInfo DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.AttributeInfo(); } public static com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.AttributeInfo getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public AttributeInfo parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { Builder builder = newBuilder(); try { builder.mergeFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(builder.buildPartial()); } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e) .setUnfinishedMessage(builder.buildPartial()); } return builder.buildPartial(); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override public com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.AttributeInfo getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface ProviderNameGroupOrBuilder extends // @@protoc_insertion_point(interface_extends:stardoc_output.ProviderNameGroup) com.google.protobuf.MessageOrBuilder { /** *
     * The names of the providers.
     *
     * This field is only intended for rendering human-readable output.
     * Please use origin_key (a list of the same length and in the same order as
     * this field) for cross-references and tooling.
     *
     * Note: legacy Stardoc (0.5.x and earlier) is unable to extract the name in
     * some circumstances (for example, if the provider is nested in a struct),
     * and in that case, the provider name will be "Unknown Provider".
     * 
* * repeated string provider_name = 1; * @return A list containing the providerName. */ java.util.List getProviderNameList(); /** *
     * The names of the providers.
     *
     * This field is only intended for rendering human-readable output.
     * Please use origin_key (a list of the same length and in the same order as
     * this field) for cross-references and tooling.
     *
     * Note: legacy Stardoc (0.5.x and earlier) is unable to extract the name in
     * some circumstances (for example, if the provider is nested in a struct),
     * and in that case, the provider name will be "Unknown Provider".
     * 
* * repeated string provider_name = 1; * @return The count of providerName. */ int getProviderNameCount(); /** *
     * The names of the providers.
     *
     * This field is only intended for rendering human-readable output.
     * Please use origin_key (a list of the same length and in the same order as
     * this field) for cross-references and tooling.
     *
     * Note: legacy Stardoc (0.5.x and earlier) is unable to extract the name in
     * some circumstances (for example, if the provider is nested in a struct),
     * and in that case, the provider name will be "Unknown Provider".
     * 
* * repeated string provider_name = 1; * @param index The index of the element to return. * @return The providerName at the given index. */ java.lang.String getProviderName(int index); /** *
     * The names of the providers.
     *
     * This field is only intended for rendering human-readable output.
     * Please use origin_key (a list of the same length and in the same order as
     * this field) for cross-references and tooling.
     *
     * Note: legacy Stardoc (0.5.x and earlier) is unable to extract the name in
     * some circumstances (for example, if the provider is nested in a struct),
     * and in that case, the provider name will be "Unknown Provider".
     * 
* * repeated string provider_name = 1; * @param index The index of the value to return. * @return The bytes of the providerName at the given index. */ com.google.protobuf.ByteString getProviderNameBytes(int index); /** *
     * A list of unambiguous references to providers, of the same length and in
     * the same order as the provider_name list.
     *
     * For provider symbols, this means modules where and the names under which
     * the providers were originally declared.
     *
     * For legacy struct providers, origin_key.file is unset.
     *
     * Note: legacy Stardoc (0.5.x and earlier) does not set this field.
     * 
* * repeated .stardoc_output.OriginKey origin_key = 2; */ java.util.List getOriginKeyList(); /** *
     * A list of unambiguous references to providers, of the same length and in
     * the same order as the provider_name list.
     *
     * For provider symbols, this means modules where and the names under which
     * the providers were originally declared.
     *
     * For legacy struct providers, origin_key.file is unset.
     *
     * Note: legacy Stardoc (0.5.x and earlier) does not set this field.
     * 
* * repeated .stardoc_output.OriginKey origin_key = 2; */ com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.OriginKey getOriginKey(int index); /** *
     * A list of unambiguous references to providers, of the same length and in
     * the same order as the provider_name list.
     *
     * For provider symbols, this means modules where and the names under which
     * the providers were originally declared.
     *
     * For legacy struct providers, origin_key.file is unset.
     *
     * Note: legacy Stardoc (0.5.x and earlier) does not set this field.
     * 
* * repeated .stardoc_output.OriginKey origin_key = 2; */ int getOriginKeyCount(); /** *
     * A list of unambiguous references to providers, of the same length and in
     * the same order as the provider_name list.
     *
     * For provider symbols, this means modules where and the names under which
     * the providers were originally declared.
     *
     * For legacy struct providers, origin_key.file is unset.
     *
     * Note: legacy Stardoc (0.5.x and earlier) does not set this field.
     * 
* * repeated .stardoc_output.OriginKey origin_key = 2; */ java.util.List getOriginKeyOrBuilderList(); /** *
     * A list of unambiguous references to providers, of the same length and in
     * the same order as the provider_name list.
     *
     * For provider symbols, this means modules where and the names under which
     * the providers were originally declared.
     *
     * For legacy struct providers, origin_key.file is unset.
     *
     * Note: legacy Stardoc (0.5.x and earlier) does not set this field.
     * 
* * repeated .stardoc_output.OriginKey origin_key = 2; */ com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.OriginKeyOrBuilder getOriginKeyOrBuilder( int index); } /** *
   * Representation of a set of providers.
   * 
* * Protobuf type {@code stardoc_output.ProviderNameGroup} */ public static final class ProviderNameGroup extends com.google.protobuf.GeneratedMessage implements // @@protoc_insertion_point(message_implements:stardoc_output.ProviderNameGroup) ProviderNameGroupOrBuilder { private static final long serialVersionUID = 0L; static { com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, /* major= */ 4, /* minor= */ 28, /* patch= */ 3, /* suffix= */ "", ProviderNameGroup.class.getName()); } // Use ProviderNameGroup.newBuilder() to construct. private ProviderNameGroup(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); } private ProviderNameGroup() { providerName_ = com.google.protobuf.LazyStringArrayList.emptyList(); originKey_ = java.util.Collections.emptyList(); } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.internal_static_stardoc_output_ProviderNameGroup_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.internal_static_stardoc_output_ProviderNameGroup_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.ProviderNameGroup.class, com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.ProviderNameGroup.Builder.class); } public static final int PROVIDER_NAME_FIELD_NUMBER = 1; @SuppressWarnings("serial") private com.google.protobuf.LazyStringArrayList providerName_ = com.google.protobuf.LazyStringArrayList.emptyList(); /** *
     * The names of the providers.
     *
     * This field is only intended for rendering human-readable output.
     * Please use origin_key (a list of the same length and in the same order as
     * this field) for cross-references and tooling.
     *
     * Note: legacy Stardoc (0.5.x and earlier) is unable to extract the name in
     * some circumstances (for example, if the provider is nested in a struct),
     * and in that case, the provider name will be "Unknown Provider".
     * 
* * repeated string provider_name = 1; * @return A list containing the providerName. */ public com.google.protobuf.ProtocolStringList getProviderNameList() { return providerName_; } /** *
     * The names of the providers.
     *
     * This field is only intended for rendering human-readable output.
     * Please use origin_key (a list of the same length and in the same order as
     * this field) for cross-references and tooling.
     *
     * Note: legacy Stardoc (0.5.x and earlier) is unable to extract the name in
     * some circumstances (for example, if the provider is nested in a struct),
     * and in that case, the provider name will be "Unknown Provider".
     * 
* * repeated string provider_name = 1; * @return The count of providerName. */ public int getProviderNameCount() { return providerName_.size(); } /** *
     * The names of the providers.
     *
     * This field is only intended for rendering human-readable output.
     * Please use origin_key (a list of the same length and in the same order as
     * this field) for cross-references and tooling.
     *
     * Note: legacy Stardoc (0.5.x and earlier) is unable to extract the name in
     * some circumstances (for example, if the provider is nested in a struct),
     * and in that case, the provider name will be "Unknown Provider".
     * 
* * repeated string provider_name = 1; * @param index The index of the element to return. * @return The providerName at the given index. */ public java.lang.String getProviderName(int index) { return providerName_.get(index); } /** *
     * The names of the providers.
     *
     * This field is only intended for rendering human-readable output.
     * Please use origin_key (a list of the same length and in the same order as
     * this field) for cross-references and tooling.
     *
     * Note: legacy Stardoc (0.5.x and earlier) is unable to extract the name in
     * some circumstances (for example, if the provider is nested in a struct),
     * and in that case, the provider name will be "Unknown Provider".
     * 
* * repeated string provider_name = 1; * @param index The index of the value to return. * @return The bytes of the providerName at the given index. */ public com.google.protobuf.ByteString getProviderNameBytes(int index) { return providerName_.getByteString(index); } public static final int ORIGIN_KEY_FIELD_NUMBER = 2; @SuppressWarnings("serial") private java.util.List originKey_; /** *
     * A list of unambiguous references to providers, of the same length and in
     * the same order as the provider_name list.
     *
     * For provider symbols, this means modules where and the names under which
     * the providers were originally declared.
     *
     * For legacy struct providers, origin_key.file is unset.
     *
     * Note: legacy Stardoc (0.5.x and earlier) does not set this field.
     * 
* * repeated .stardoc_output.OriginKey origin_key = 2; */ @java.lang.Override public java.util.List getOriginKeyList() { return originKey_; } /** *
     * A list of unambiguous references to providers, of the same length and in
     * the same order as the provider_name list.
     *
     * For provider symbols, this means modules where and the names under which
     * the providers were originally declared.
     *
     * For legacy struct providers, origin_key.file is unset.
     *
     * Note: legacy Stardoc (0.5.x and earlier) does not set this field.
     * 
* * repeated .stardoc_output.OriginKey origin_key = 2; */ @java.lang.Override public java.util.List getOriginKeyOrBuilderList() { return originKey_; } /** *
     * A list of unambiguous references to providers, of the same length and in
     * the same order as the provider_name list.
     *
     * For provider symbols, this means modules where and the names under which
     * the providers were originally declared.
     *
     * For legacy struct providers, origin_key.file is unset.
     *
     * Note: legacy Stardoc (0.5.x and earlier) does not set this field.
     * 
* * repeated .stardoc_output.OriginKey origin_key = 2; */ @java.lang.Override public int getOriginKeyCount() { return originKey_.size(); } /** *
     * A list of unambiguous references to providers, of the same length and in
     * the same order as the provider_name list.
     *
     * For provider symbols, this means modules where and the names under which
     * the providers were originally declared.
     *
     * For legacy struct providers, origin_key.file is unset.
     *
     * Note: legacy Stardoc (0.5.x and earlier) does not set this field.
     * 
* * repeated .stardoc_output.OriginKey origin_key = 2; */ @java.lang.Override public com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.OriginKey getOriginKey(int index) { return originKey_.get(index); } /** *
     * A list of unambiguous references to providers, of the same length and in
     * the same order as the provider_name list.
     *
     * For provider symbols, this means modules where and the names under which
     * the providers were originally declared.
     *
     * For legacy struct providers, origin_key.file is unset.
     *
     * Note: legacy Stardoc (0.5.x and earlier) does not set this field.
     * 
* * repeated .stardoc_output.OriginKey origin_key = 2; */ @java.lang.Override public com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.OriginKeyOrBuilder getOriginKeyOrBuilder( int index) { return originKey_.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 < providerName_.size(); i++) { com.google.protobuf.GeneratedMessage.writeString(output, 1, providerName_.getRaw(i)); } for (int i = 0; i < originKey_.size(); i++) { output.writeMessage(2, originKey_.get(i)); } getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; { int dataSize = 0; for (int i = 0; i < providerName_.size(); i++) { dataSize += computeStringSizeNoTag(providerName_.getRaw(i)); } size += dataSize; size += 1 * getProviderNameList().size(); } for (int i = 0; i < originKey_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(2, originKey_.get(i)); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.ProviderNameGroup)) { return super.equals(obj); } com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.ProviderNameGroup other = (com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.ProviderNameGroup) obj; if (!getProviderNameList() .equals(other.getProviderNameList())) return false; if (!getOriginKeyList() .equals(other.getOriginKeyList())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); if (getProviderNameCount() > 0) { hash = (37 * hash) + PROVIDER_NAME_FIELD_NUMBER; hash = (53 * hash) + getProviderNameList().hashCode(); } if (getOriginKeyCount() > 0) { hash = (37 * hash) + ORIGIN_KEY_FIELD_NUMBER; hash = (53 * hash) + getOriginKeyList().hashCode(); } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.ProviderNameGroup parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.ProviderNameGroup 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.lib.starlarkdocextract.StardocOutputProtos.ProviderNameGroup parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.ProviderNameGroup 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.lib.starlarkdocextract.StardocOutputProtos.ProviderNameGroup parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.ProviderNameGroup parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.ProviderNameGroup parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessage .parseWithIOException(PARSER, input); } public static com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.ProviderNameGroup parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessage .parseWithIOException(PARSER, input, extensionRegistry); } public static com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.ProviderNameGroup parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessage .parseDelimitedWithIOException(PARSER, input); } public static com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.ProviderNameGroup parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessage .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.ProviderNameGroup parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessage .parseWithIOException(PARSER, input); } public static com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.ProviderNameGroup parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessage .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.ProviderNameGroup prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } @java.lang.Override public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessage.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** *
     * Representation of a set of providers.
     * 
* * Protobuf type {@code stardoc_output.ProviderNameGroup} */ public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder implements // @@protoc_insertion_point(builder_implements:stardoc_output.ProviderNameGroup) com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.ProviderNameGroupOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.internal_static_stardoc_output_ProviderNameGroup_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.internal_static_stardoc_output_ProviderNameGroup_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.ProviderNameGroup.class, com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.ProviderNameGroup.Builder.class); } // Construct using com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.ProviderNameGroup.newBuilder() private Builder() { } private Builder( com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; providerName_ = com.google.protobuf.LazyStringArrayList.emptyList(); if (originKeyBuilder_ == null) { originKey_ = java.util.Collections.emptyList(); } else { originKey_ = null; originKeyBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000002); return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.internal_static_stardoc_output_ProviderNameGroup_descriptor; } @java.lang.Override public com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.ProviderNameGroup getDefaultInstanceForType() { return com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.ProviderNameGroup.getDefaultInstance(); } @java.lang.Override public com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.ProviderNameGroup build() { com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.ProviderNameGroup result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.ProviderNameGroup buildPartial() { com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.ProviderNameGroup result = new com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.ProviderNameGroup(this); buildPartialRepeatedFields(result); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartialRepeatedFields(com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.ProviderNameGroup result) { if (originKeyBuilder_ == null) { if (((bitField0_ & 0x00000002) != 0)) { originKey_ = java.util.Collections.unmodifiableList(originKey_); bitField0_ = (bitField0_ & ~0x00000002); } result.originKey_ = originKey_; } else { result.originKey_ = originKeyBuilder_.build(); } } private void buildPartial0(com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.ProviderNameGroup result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { providerName_.makeImmutable(); result.providerName_ = providerName_; } } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.ProviderNameGroup) { return mergeFrom((com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.ProviderNameGroup)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.ProviderNameGroup other) { if (other == com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.ProviderNameGroup.getDefaultInstance()) return this; if (!other.providerName_.isEmpty()) { if (providerName_.isEmpty()) { providerName_ = other.providerName_; bitField0_ |= 0x00000001; } else { ensureProviderNameIsMutable(); providerName_.addAll(other.providerName_); } onChanged(); } if (originKeyBuilder_ == null) { if (!other.originKey_.isEmpty()) { if (originKey_.isEmpty()) { originKey_ = other.originKey_; bitField0_ = (bitField0_ & ~0x00000002); } else { ensureOriginKeyIsMutable(); originKey_.addAll(other.originKey_); } onChanged(); } } else { if (!other.originKey_.isEmpty()) { if (originKeyBuilder_.isEmpty()) { originKeyBuilder_.dispose(); originKeyBuilder_ = null; originKey_ = other.originKey_; bitField0_ = (bitField0_ & ~0x00000002); originKeyBuilder_ = com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ? getOriginKeyFieldBuilder() : null; } else { originKeyBuilder_.addAllMessages(other.originKey_); } } } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { return true; } @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 10: { java.lang.String s = input.readStringRequireUtf8(); ensureProviderNameIsMutable(); providerName_.add(s); break; } // case 10 case 18: { com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.OriginKey m = input.readMessage( com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.OriginKey.parser(), extensionRegistry); if (originKeyBuilder_ == null) { ensureOriginKeyIsMutable(); originKey_.add(m); } else { originKeyBuilder_.addMessage(m); } break; } // case 18 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { done = true; // was an endgroup tag } break; } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.unwrapIOException(); } finally { onChanged(); } // finally return this; } private int bitField0_; private com.google.protobuf.LazyStringArrayList providerName_ = com.google.protobuf.LazyStringArrayList.emptyList(); private void ensureProviderNameIsMutable() { if (!providerName_.isModifiable()) { providerName_ = new com.google.protobuf.LazyStringArrayList(providerName_); } bitField0_ |= 0x00000001; } /** *
       * The names of the providers.
       *
       * This field is only intended for rendering human-readable output.
       * Please use origin_key (a list of the same length and in the same order as
       * this field) for cross-references and tooling.
       *
       * Note: legacy Stardoc (0.5.x and earlier) is unable to extract the name in
       * some circumstances (for example, if the provider is nested in a struct),
       * and in that case, the provider name will be "Unknown Provider".
       * 
* * repeated string provider_name = 1; * @return A list containing the providerName. */ public com.google.protobuf.ProtocolStringList getProviderNameList() { providerName_.makeImmutable(); return providerName_; } /** *
       * The names of the providers.
       *
       * This field is only intended for rendering human-readable output.
       * Please use origin_key (a list of the same length and in the same order as
       * this field) for cross-references and tooling.
       *
       * Note: legacy Stardoc (0.5.x and earlier) is unable to extract the name in
       * some circumstances (for example, if the provider is nested in a struct),
       * and in that case, the provider name will be "Unknown Provider".
       * 
* * repeated string provider_name = 1; * @return The count of providerName. */ public int getProviderNameCount() { return providerName_.size(); } /** *
       * The names of the providers.
       *
       * This field is only intended for rendering human-readable output.
       * Please use origin_key (a list of the same length and in the same order as
       * this field) for cross-references and tooling.
       *
       * Note: legacy Stardoc (0.5.x and earlier) is unable to extract the name in
       * some circumstances (for example, if the provider is nested in a struct),
       * and in that case, the provider name will be "Unknown Provider".
       * 
* * repeated string provider_name = 1; * @param index The index of the element to return. * @return The providerName at the given index. */ public java.lang.String getProviderName(int index) { return providerName_.get(index); } /** *
       * The names of the providers.
       *
       * This field is only intended for rendering human-readable output.
       * Please use origin_key (a list of the same length and in the same order as
       * this field) for cross-references and tooling.
       *
       * Note: legacy Stardoc (0.5.x and earlier) is unable to extract the name in
       * some circumstances (for example, if the provider is nested in a struct),
       * and in that case, the provider name will be "Unknown Provider".
       * 
* * repeated string provider_name = 1; * @param index The index of the value to return. * @return The bytes of the providerName at the given index. */ public com.google.protobuf.ByteString getProviderNameBytes(int index) { return providerName_.getByteString(index); } /** *
       * The names of the providers.
       *
       * This field is only intended for rendering human-readable output.
       * Please use origin_key (a list of the same length and in the same order as
       * this field) for cross-references and tooling.
       *
       * Note: legacy Stardoc (0.5.x and earlier) is unable to extract the name in
       * some circumstances (for example, if the provider is nested in a struct),
       * and in that case, the provider name will be "Unknown Provider".
       * 
* * repeated string provider_name = 1; * @param index The index to set the value at. * @param value The providerName to set. * @return This builder for chaining. */ public Builder setProviderName( int index, java.lang.String value) { if (value == null) { throw new NullPointerException(); } ensureProviderNameIsMutable(); providerName_.set(index, value); bitField0_ |= 0x00000001; onChanged(); return this; } /** *
       * The names of the providers.
       *
       * This field is only intended for rendering human-readable output.
       * Please use origin_key (a list of the same length and in the same order as
       * this field) for cross-references and tooling.
       *
       * Note: legacy Stardoc (0.5.x and earlier) is unable to extract the name in
       * some circumstances (for example, if the provider is nested in a struct),
       * and in that case, the provider name will be "Unknown Provider".
       * 
* * repeated string provider_name = 1; * @param value The providerName to add. * @return This builder for chaining. */ public Builder addProviderName( java.lang.String value) { if (value == null) { throw new NullPointerException(); } ensureProviderNameIsMutable(); providerName_.add(value); bitField0_ |= 0x00000001; onChanged(); return this; } /** *
       * The names of the providers.
       *
       * This field is only intended for rendering human-readable output.
       * Please use origin_key (a list of the same length and in the same order as
       * this field) for cross-references and tooling.
       *
       * Note: legacy Stardoc (0.5.x and earlier) is unable to extract the name in
       * some circumstances (for example, if the provider is nested in a struct),
       * and in that case, the provider name will be "Unknown Provider".
       * 
* * repeated string provider_name = 1; * @param values The providerName to add. * @return This builder for chaining. */ public Builder addAllProviderName( java.lang.Iterable values) { ensureProviderNameIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, providerName_); bitField0_ |= 0x00000001; onChanged(); return this; } /** *
       * The names of the providers.
       *
       * This field is only intended for rendering human-readable output.
       * Please use origin_key (a list of the same length and in the same order as
       * this field) for cross-references and tooling.
       *
       * Note: legacy Stardoc (0.5.x and earlier) is unable to extract the name in
       * some circumstances (for example, if the provider is nested in a struct),
       * and in that case, the provider name will be "Unknown Provider".
       * 
* * repeated string provider_name = 1; * @return This builder for chaining. */ public Builder clearProviderName() { providerName_ = com.google.protobuf.LazyStringArrayList.emptyList(); bitField0_ = (bitField0_ & ~0x00000001);; onChanged(); return this; } /** *
       * The names of the providers.
       *
       * This field is only intended for rendering human-readable output.
       * Please use origin_key (a list of the same length and in the same order as
       * this field) for cross-references and tooling.
       *
       * Note: legacy Stardoc (0.5.x and earlier) is unable to extract the name in
       * some circumstances (for example, if the provider is nested in a struct),
       * and in that case, the provider name will be "Unknown Provider".
       * 
* * repeated string provider_name = 1; * @param value The bytes of the providerName to add. * @return This builder for chaining. */ public Builder addProviderNameBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); ensureProviderNameIsMutable(); providerName_.add(value); bitField0_ |= 0x00000001; onChanged(); return this; } private java.util.List originKey_ = java.util.Collections.emptyList(); private void ensureOriginKeyIsMutable() { if (!((bitField0_ & 0x00000002) != 0)) { originKey_ = new java.util.ArrayList(originKey_); bitField0_ |= 0x00000002; } } private com.google.protobuf.RepeatedFieldBuilder< com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.OriginKey, com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.OriginKey.Builder, com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.OriginKeyOrBuilder> originKeyBuilder_; /** *
       * A list of unambiguous references to providers, of the same length and in
       * the same order as the provider_name list.
       *
       * For provider symbols, this means modules where and the names under which
       * the providers were originally declared.
       *
       * For legacy struct providers, origin_key.file is unset.
       *
       * Note: legacy Stardoc (0.5.x and earlier) does not set this field.
       * 
* * repeated .stardoc_output.OriginKey origin_key = 2; */ public java.util.List getOriginKeyList() { if (originKeyBuilder_ == null) { return java.util.Collections.unmodifiableList(originKey_); } else { return originKeyBuilder_.getMessageList(); } } /** *
       * A list of unambiguous references to providers, of the same length and in
       * the same order as the provider_name list.
       *
       * For provider symbols, this means modules where and the names under which
       * the providers were originally declared.
       *
       * For legacy struct providers, origin_key.file is unset.
       *
       * Note: legacy Stardoc (0.5.x and earlier) does not set this field.
       * 
* * repeated .stardoc_output.OriginKey origin_key = 2; */ public int getOriginKeyCount() { if (originKeyBuilder_ == null) { return originKey_.size(); } else { return originKeyBuilder_.getCount(); } } /** *
       * A list of unambiguous references to providers, of the same length and in
       * the same order as the provider_name list.
       *
       * For provider symbols, this means modules where and the names under which
       * the providers were originally declared.
       *
       * For legacy struct providers, origin_key.file is unset.
       *
       * Note: legacy Stardoc (0.5.x and earlier) does not set this field.
       * 
* * repeated .stardoc_output.OriginKey origin_key = 2; */ public com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.OriginKey getOriginKey(int index) { if (originKeyBuilder_ == null) { return originKey_.get(index); } else { return originKeyBuilder_.getMessage(index); } } /** *
       * A list of unambiguous references to providers, of the same length and in
       * the same order as the provider_name list.
       *
       * For provider symbols, this means modules where and the names under which
       * the providers were originally declared.
       *
       * For legacy struct providers, origin_key.file is unset.
       *
       * Note: legacy Stardoc (0.5.x and earlier) does not set this field.
       * 
* * repeated .stardoc_output.OriginKey origin_key = 2; */ public Builder setOriginKey( int index, com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.OriginKey value) { if (originKeyBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureOriginKeyIsMutable(); originKey_.set(index, value); onChanged(); } else { originKeyBuilder_.setMessage(index, value); } return this; } /** *
       * A list of unambiguous references to providers, of the same length and in
       * the same order as the provider_name list.
       *
       * For provider symbols, this means modules where and the names under which
       * the providers were originally declared.
       *
       * For legacy struct providers, origin_key.file is unset.
       *
       * Note: legacy Stardoc (0.5.x and earlier) does not set this field.
       * 
* * repeated .stardoc_output.OriginKey origin_key = 2; */ public Builder setOriginKey( int index, com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.OriginKey.Builder builderForValue) { if (originKeyBuilder_ == null) { ensureOriginKeyIsMutable(); originKey_.set(index, builderForValue.build()); onChanged(); } else { originKeyBuilder_.setMessage(index, builderForValue.build()); } return this; } /** *
       * A list of unambiguous references to providers, of the same length and in
       * the same order as the provider_name list.
       *
       * For provider symbols, this means modules where and the names under which
       * the providers were originally declared.
       *
       * For legacy struct providers, origin_key.file is unset.
       *
       * Note: legacy Stardoc (0.5.x and earlier) does not set this field.
       * 
* * repeated .stardoc_output.OriginKey origin_key = 2; */ public Builder addOriginKey(com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.OriginKey value) { if (originKeyBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureOriginKeyIsMutable(); originKey_.add(value); onChanged(); } else { originKeyBuilder_.addMessage(value); } return this; } /** *
       * A list of unambiguous references to providers, of the same length and in
       * the same order as the provider_name list.
       *
       * For provider symbols, this means modules where and the names under which
       * the providers were originally declared.
       *
       * For legacy struct providers, origin_key.file is unset.
       *
       * Note: legacy Stardoc (0.5.x and earlier) does not set this field.
       * 
* * repeated .stardoc_output.OriginKey origin_key = 2; */ public Builder addOriginKey( int index, com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.OriginKey value) { if (originKeyBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureOriginKeyIsMutable(); originKey_.add(index, value); onChanged(); } else { originKeyBuilder_.addMessage(index, value); } return this; } /** *
       * A list of unambiguous references to providers, of the same length and in
       * the same order as the provider_name list.
       *
       * For provider symbols, this means modules where and the names under which
       * the providers were originally declared.
       *
       * For legacy struct providers, origin_key.file is unset.
       *
       * Note: legacy Stardoc (0.5.x and earlier) does not set this field.
       * 
* * repeated .stardoc_output.OriginKey origin_key = 2; */ public Builder addOriginKey( com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.OriginKey.Builder builderForValue) { if (originKeyBuilder_ == null) { ensureOriginKeyIsMutable(); originKey_.add(builderForValue.build()); onChanged(); } else { originKeyBuilder_.addMessage(builderForValue.build()); } return this; } /** *
       * A list of unambiguous references to providers, of the same length and in
       * the same order as the provider_name list.
       *
       * For provider symbols, this means modules where and the names under which
       * the providers were originally declared.
       *
       * For legacy struct providers, origin_key.file is unset.
       *
       * Note: legacy Stardoc (0.5.x and earlier) does not set this field.
       * 
* * repeated .stardoc_output.OriginKey origin_key = 2; */ public Builder addOriginKey( int index, com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.OriginKey.Builder builderForValue) { if (originKeyBuilder_ == null) { ensureOriginKeyIsMutable(); originKey_.add(index, builderForValue.build()); onChanged(); } else { originKeyBuilder_.addMessage(index, builderForValue.build()); } return this; } /** *
       * A list of unambiguous references to providers, of the same length and in
       * the same order as the provider_name list.
       *
       * For provider symbols, this means modules where and the names under which
       * the providers were originally declared.
       *
       * For legacy struct providers, origin_key.file is unset.
       *
       * Note: legacy Stardoc (0.5.x and earlier) does not set this field.
       * 
* * repeated .stardoc_output.OriginKey origin_key = 2; */ public Builder addAllOriginKey( java.lang.Iterable values) { if (originKeyBuilder_ == null) { ensureOriginKeyIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, originKey_); onChanged(); } else { originKeyBuilder_.addAllMessages(values); } return this; } /** *
       * A list of unambiguous references to providers, of the same length and in
       * the same order as the provider_name list.
       *
       * For provider symbols, this means modules where and the names under which
       * the providers were originally declared.
       *
       * For legacy struct providers, origin_key.file is unset.
       *
       * Note: legacy Stardoc (0.5.x and earlier) does not set this field.
       * 
* * repeated .stardoc_output.OriginKey origin_key = 2; */ public Builder clearOriginKey() { if (originKeyBuilder_ == null) { originKey_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000002); onChanged(); } else { originKeyBuilder_.clear(); } return this; } /** *
       * A list of unambiguous references to providers, of the same length and in
       * the same order as the provider_name list.
       *
       * For provider symbols, this means modules where and the names under which
       * the providers were originally declared.
       *
       * For legacy struct providers, origin_key.file is unset.
       *
       * Note: legacy Stardoc (0.5.x and earlier) does not set this field.
       * 
* * repeated .stardoc_output.OriginKey origin_key = 2; */ public Builder removeOriginKey(int index) { if (originKeyBuilder_ == null) { ensureOriginKeyIsMutable(); originKey_.remove(index); onChanged(); } else { originKeyBuilder_.remove(index); } return this; } /** *
       * A list of unambiguous references to providers, of the same length and in
       * the same order as the provider_name list.
       *
       * For provider symbols, this means modules where and the names under which
       * the providers were originally declared.
       *
       * For legacy struct providers, origin_key.file is unset.
       *
       * Note: legacy Stardoc (0.5.x and earlier) does not set this field.
       * 
* * repeated .stardoc_output.OriginKey origin_key = 2; */ public com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.OriginKey.Builder getOriginKeyBuilder( int index) { return getOriginKeyFieldBuilder().getBuilder(index); } /** *
       * A list of unambiguous references to providers, of the same length and in
       * the same order as the provider_name list.
       *
       * For provider symbols, this means modules where and the names under which
       * the providers were originally declared.
       *
       * For legacy struct providers, origin_key.file is unset.
       *
       * Note: legacy Stardoc (0.5.x and earlier) does not set this field.
       * 
* * repeated .stardoc_output.OriginKey origin_key = 2; */ public com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.OriginKeyOrBuilder getOriginKeyOrBuilder( int index) { if (originKeyBuilder_ == null) { return originKey_.get(index); } else { return originKeyBuilder_.getMessageOrBuilder(index); } } /** *
       * A list of unambiguous references to providers, of the same length and in
       * the same order as the provider_name list.
       *
       * For provider symbols, this means modules where and the names under which
       * the providers were originally declared.
       *
       * For legacy struct providers, origin_key.file is unset.
       *
       * Note: legacy Stardoc (0.5.x and earlier) does not set this field.
       * 
* * repeated .stardoc_output.OriginKey origin_key = 2; */ public java.util.List getOriginKeyOrBuilderList() { if (originKeyBuilder_ != null) { return originKeyBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(originKey_); } } /** *
       * A list of unambiguous references to providers, of the same length and in
       * the same order as the provider_name list.
       *
       * For provider symbols, this means modules where and the names under which
       * the providers were originally declared.
       *
       * For legacy struct providers, origin_key.file is unset.
       *
       * Note: legacy Stardoc (0.5.x and earlier) does not set this field.
       * 
* * repeated .stardoc_output.OriginKey origin_key = 2; */ public com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.OriginKey.Builder addOriginKeyBuilder() { return getOriginKeyFieldBuilder().addBuilder( com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.OriginKey.getDefaultInstance()); } /** *
       * A list of unambiguous references to providers, of the same length and in
       * the same order as the provider_name list.
       *
       * For provider symbols, this means modules where and the names under which
       * the providers were originally declared.
       *
       * For legacy struct providers, origin_key.file is unset.
       *
       * Note: legacy Stardoc (0.5.x and earlier) does not set this field.
       * 
* * repeated .stardoc_output.OriginKey origin_key = 2; */ public com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.OriginKey.Builder addOriginKeyBuilder( int index) { return getOriginKeyFieldBuilder().addBuilder( index, com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.OriginKey.getDefaultInstance()); } /** *
       * A list of unambiguous references to providers, of the same length and in
       * the same order as the provider_name list.
       *
       * For provider symbols, this means modules where and the names under which
       * the providers were originally declared.
       *
       * For legacy struct providers, origin_key.file is unset.
       *
       * Note: legacy Stardoc (0.5.x and earlier) does not set this field.
       * 
* * repeated .stardoc_output.OriginKey origin_key = 2; */ public java.util.List getOriginKeyBuilderList() { return getOriginKeyFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilder< com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.OriginKey, com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.OriginKey.Builder, com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.OriginKeyOrBuilder> getOriginKeyFieldBuilder() { if (originKeyBuilder_ == null) { originKeyBuilder_ = new com.google.protobuf.RepeatedFieldBuilder< com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.OriginKey, com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.OriginKey.Builder, com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.OriginKeyOrBuilder>( originKey_, ((bitField0_ & 0x00000002) != 0), getParentForChildren(), isClean()); originKey_ = null; } return originKeyBuilder_; } // @@protoc_insertion_point(builder_scope:stardoc_output.ProviderNameGroup) } // @@protoc_insertion_point(class_scope:stardoc_output.ProviderNameGroup) private static final com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.ProviderNameGroup DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.ProviderNameGroup(); } public static com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.ProviderNameGroup getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public ProviderNameGroup parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { Builder builder = newBuilder(); try { builder.mergeFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(builder.buildPartial()); } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e) .setUnfinishedMessage(builder.buildPartial()); } return builder.buildPartial(); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override public com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.ProviderNameGroup getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface StarlarkFunctionInfoOrBuilder extends // @@protoc_insertion_point(interface_extends:stardoc_output.StarlarkFunctionInfo) com.google.protobuf.MessageOrBuilder { /** *
     * The name under which the function is made accessible to a user of this
     * module, including any structs it is nested in, for example
     * "foo.frobnicate".
     * 
* * string function_name = 1; * @return The functionName. */ java.lang.String getFunctionName(); /** *
     * The name under which the function is made accessible to a user of this
     * module, including any structs it is nested in, for example
     * "foo.frobnicate".
     * 
* * string function_name = 1; * @return The bytes for functionName. */ com.google.protobuf.ByteString getFunctionNameBytes(); /** *
     * The parameters for the function, in the following order:
     * - positional parameters
     * - keyword-only parameters
     * - residual varargs parameter (`*args`)
     * - residual keyword arguments parameter (`**kwargs`)
     * This order differs from the order in which parameters are listed in the
     * function's declaration (where positional parameters and keyword-only
     * parameters are separated either by `*` or `*args`). The declaration order
     * can be recovered by looking for the transition from ordinary/positional to
     * keyword-only.
     * 
* * repeated .stardoc_output.FunctionParamInfo parameter = 2; */ java.util.List getParameterList(); /** *
     * The parameters for the function, in the following order:
     * - positional parameters
     * - keyword-only parameters
     * - residual varargs parameter (`*args`)
     * - residual keyword arguments parameter (`**kwargs`)
     * This order differs from the order in which parameters are listed in the
     * function's declaration (where positional parameters and keyword-only
     * parameters are separated either by `*` or `*args`). The declaration order
     * can be recovered by looking for the transition from ordinary/positional to
     * keyword-only.
     * 
* * repeated .stardoc_output.FunctionParamInfo parameter = 2; */ com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.FunctionParamInfo getParameter(int index); /** *
     * The parameters for the function, in the following order:
     * - positional parameters
     * - keyword-only parameters
     * - residual varargs parameter (`*args`)
     * - residual keyword arguments parameter (`**kwargs`)
     * This order differs from the order in which parameters are listed in the
     * function's declaration (where positional parameters and keyword-only
     * parameters are separated either by `*` or `*args`). The declaration order
     * can be recovered by looking for the transition from ordinary/positional to
     * keyword-only.
     * 
* * repeated .stardoc_output.FunctionParamInfo parameter = 2; */ int getParameterCount(); /** *
     * The parameters for the function, in the following order:
     * - positional parameters
     * - keyword-only parameters
     * - residual varargs parameter (`*args`)
     * - residual keyword arguments parameter (`**kwargs`)
     * This order differs from the order in which parameters are listed in the
     * function's declaration (where positional parameters and keyword-only
     * parameters are separated either by `*` or `*args`). The declaration order
     * can be recovered by looking for the transition from ordinary/positional to
     * keyword-only.
     * 
* * repeated .stardoc_output.FunctionParamInfo parameter = 2; */ java.util.List getParameterOrBuilderList(); /** *
     * The parameters for the function, in the following order:
     * - positional parameters
     * - keyword-only parameters
     * - residual varargs parameter (`*args`)
     * - residual keyword arguments parameter (`**kwargs`)
     * This order differs from the order in which parameters are listed in the
     * function's declaration (where positional parameters and keyword-only
     * parameters are separated either by `*` or `*args`). The declaration order
     * can be recovered by looking for the transition from ordinary/positional to
     * keyword-only.
     * 
* * repeated .stardoc_output.FunctionParamInfo parameter = 2; */ com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.FunctionParamInfoOrBuilder getParameterOrBuilder( int index); /** *
     * The documented description of the function (if specified in the function's
     * docstring).
     * 
* * string doc_string = 3; * @return The docString. */ java.lang.String getDocString(); /** *
     * The documented description of the function (if specified in the function's
     * docstring).
     * 
* * string doc_string = 3; * @return The bytes for docString. */ com.google.protobuf.ByteString getDocStringBytes(); /** *
     * The return value for the function.
     * 
* * .stardoc_output.FunctionReturnInfo return = 4; * @return Whether the return field is set. */ boolean hasReturn(); /** *
     * The return value for the function.
     * 
* * .stardoc_output.FunctionReturnInfo return = 4; * @return The return. */ com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.FunctionReturnInfo getReturn(); /** *
     * The return value for the function.
     * 
* * .stardoc_output.FunctionReturnInfo return = 4; */ com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.FunctionReturnInfoOrBuilder getReturnOrBuilder(); /** *
     * The deprecation for the function.
     * 
* * .stardoc_output.FunctionDeprecationInfo deprecated = 5; * @return Whether the deprecated field is set. */ boolean hasDeprecated(); /** *
     * The deprecation for the function.
     * 
* * .stardoc_output.FunctionDeprecationInfo deprecated = 5; * @return The deprecated. */ com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.FunctionDeprecationInfo getDeprecated(); /** *
     * The deprecation for the function.
     * 
* * .stardoc_output.FunctionDeprecationInfo deprecated = 5; */ com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.FunctionDeprecationInfoOrBuilder getDeprecatedOrBuilder(); /** *
     * The module where and the name under which the function was originally
     * declared.
     *
     * Note: legacy Stardoc (0.5.x and earlier) does not set this field.
     * 
* * .stardoc_output.OriginKey origin_key = 6; * @return Whether the originKey field is set. */ boolean hasOriginKey(); /** *
     * The module where and the name under which the function was originally
     * declared.
     *
     * Note: legacy Stardoc (0.5.x and earlier) does not set this field.
     * 
* * .stardoc_output.OriginKey origin_key = 6; * @return The originKey. */ com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.OriginKey getOriginKey(); /** *
     * The module where and the name under which the function was originally
     * declared.
     *
     * Note: legacy Stardoc (0.5.x and earlier) does not set this field.
     * 
* * .stardoc_output.OriginKey origin_key = 6; */ com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.OriginKeyOrBuilder getOriginKeyOrBuilder(); } /** *
   * Representation of Starlark function definition.
   * 
* * Protobuf type {@code stardoc_output.StarlarkFunctionInfo} */ public static final class StarlarkFunctionInfo extends com.google.protobuf.GeneratedMessage implements // @@protoc_insertion_point(message_implements:stardoc_output.StarlarkFunctionInfo) StarlarkFunctionInfoOrBuilder { private static final long serialVersionUID = 0L; static { com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, /* major= */ 4, /* minor= */ 28, /* patch= */ 3, /* suffix= */ "", StarlarkFunctionInfo.class.getName()); } // Use StarlarkFunctionInfo.newBuilder() to construct. private StarlarkFunctionInfo(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); } private StarlarkFunctionInfo() { functionName_ = ""; parameter_ = java.util.Collections.emptyList(); docString_ = ""; } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.internal_static_stardoc_output_StarlarkFunctionInfo_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.internal_static_stardoc_output_StarlarkFunctionInfo_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.StarlarkFunctionInfo.class, com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.StarlarkFunctionInfo.Builder.class); } private int bitField0_; public static final int FUNCTION_NAME_FIELD_NUMBER = 1; @SuppressWarnings("serial") private volatile java.lang.Object functionName_ = ""; /** *
     * The name under which the function is made accessible to a user of this
     * module, including any structs it is nested in, for example
     * "foo.frobnicate".
     * 
* * string function_name = 1; * @return The functionName. */ @java.lang.Override public java.lang.String getFunctionName() { java.lang.Object ref = functionName_; 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(); functionName_ = s; return s; } } /** *
     * The name under which the function is made accessible to a user of this
     * module, including any structs it is nested in, for example
     * "foo.frobnicate".
     * 
* * string function_name = 1; * @return The bytes for functionName. */ @java.lang.Override public com.google.protobuf.ByteString getFunctionNameBytes() { java.lang.Object ref = functionName_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); functionName_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int PARAMETER_FIELD_NUMBER = 2; @SuppressWarnings("serial") private java.util.List parameter_; /** *
     * The parameters for the function, in the following order:
     * - positional parameters
     * - keyword-only parameters
     * - residual varargs parameter (`*args`)
     * - residual keyword arguments parameter (`**kwargs`)
     * This order differs from the order in which parameters are listed in the
     * function's declaration (where positional parameters and keyword-only
     * parameters are separated either by `*` or `*args`). The declaration order
     * can be recovered by looking for the transition from ordinary/positional to
     * keyword-only.
     * 
* * repeated .stardoc_output.FunctionParamInfo parameter = 2; */ @java.lang.Override public java.util.List getParameterList() { return parameter_; } /** *
     * The parameters for the function, in the following order:
     * - positional parameters
     * - keyword-only parameters
     * - residual varargs parameter (`*args`)
     * - residual keyword arguments parameter (`**kwargs`)
     * This order differs from the order in which parameters are listed in the
     * function's declaration (where positional parameters and keyword-only
     * parameters are separated either by `*` or `*args`). The declaration order
     * can be recovered by looking for the transition from ordinary/positional to
     * keyword-only.
     * 
* * repeated .stardoc_output.FunctionParamInfo parameter = 2; */ @java.lang.Override public java.util.List getParameterOrBuilderList() { return parameter_; } /** *
     * The parameters for the function, in the following order:
     * - positional parameters
     * - keyword-only parameters
     * - residual varargs parameter (`*args`)
     * - residual keyword arguments parameter (`**kwargs`)
     * This order differs from the order in which parameters are listed in the
     * function's declaration (where positional parameters and keyword-only
     * parameters are separated either by `*` or `*args`). The declaration order
     * can be recovered by looking for the transition from ordinary/positional to
     * keyword-only.
     * 
* * repeated .stardoc_output.FunctionParamInfo parameter = 2; */ @java.lang.Override public int getParameterCount() { return parameter_.size(); } /** *
     * The parameters for the function, in the following order:
     * - positional parameters
     * - keyword-only parameters
     * - residual varargs parameter (`*args`)
     * - residual keyword arguments parameter (`**kwargs`)
     * This order differs from the order in which parameters are listed in the
     * function's declaration (where positional parameters and keyword-only
     * parameters are separated either by `*` or `*args`). The declaration order
     * can be recovered by looking for the transition from ordinary/positional to
     * keyword-only.
     * 
* * repeated .stardoc_output.FunctionParamInfo parameter = 2; */ @java.lang.Override public com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.FunctionParamInfo getParameter(int index) { return parameter_.get(index); } /** *
     * The parameters for the function, in the following order:
     * - positional parameters
     * - keyword-only parameters
     * - residual varargs parameter (`*args`)
     * - residual keyword arguments parameter (`**kwargs`)
     * This order differs from the order in which parameters are listed in the
     * function's declaration (where positional parameters and keyword-only
     * parameters are separated either by `*` or `*args`). The declaration order
     * can be recovered by looking for the transition from ordinary/positional to
     * keyword-only.
     * 
* * repeated .stardoc_output.FunctionParamInfo parameter = 2; */ @java.lang.Override public com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.FunctionParamInfoOrBuilder getParameterOrBuilder( int index) { return parameter_.get(index); } public static final int DOC_STRING_FIELD_NUMBER = 3; @SuppressWarnings("serial") private volatile java.lang.Object docString_ = ""; /** *
     * The documented description of the function (if specified in the function's
     * docstring).
     * 
* * string doc_string = 3; * @return The docString. */ @java.lang.Override public java.lang.String getDocString() { java.lang.Object ref = docString_; 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(); docString_ = s; return s; } } /** *
     * The documented description of the function (if specified in the function's
     * docstring).
     * 
* * string doc_string = 3; * @return The bytes for docString. */ @java.lang.Override public com.google.protobuf.ByteString getDocStringBytes() { java.lang.Object ref = docString_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); docString_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int RETURN_FIELD_NUMBER = 4; private com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.FunctionReturnInfo return_; /** *
     * The return value for the function.
     * 
* * .stardoc_output.FunctionReturnInfo return = 4; * @return Whether the return field is set. */ @java.lang.Override public boolean hasReturn() { return ((bitField0_ & 0x00000001) != 0); } /** *
     * The return value for the function.
     * 
* * .stardoc_output.FunctionReturnInfo return = 4; * @return The return. */ @java.lang.Override public com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.FunctionReturnInfo getReturn() { return return_ == null ? com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.FunctionReturnInfo.getDefaultInstance() : return_; } /** *
     * The return value for the function.
     * 
* * .stardoc_output.FunctionReturnInfo return = 4; */ @java.lang.Override public com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.FunctionReturnInfoOrBuilder getReturnOrBuilder() { return return_ == null ? com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.FunctionReturnInfo.getDefaultInstance() : return_; } public static final int DEPRECATED_FIELD_NUMBER = 5; private com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.FunctionDeprecationInfo deprecated_; /** *
     * The deprecation for the function.
     * 
* * .stardoc_output.FunctionDeprecationInfo deprecated = 5; * @return Whether the deprecated field is set. */ @java.lang.Override public boolean hasDeprecated() { return ((bitField0_ & 0x00000002) != 0); } /** *
     * The deprecation for the function.
     * 
* * .stardoc_output.FunctionDeprecationInfo deprecated = 5; * @return The deprecated. */ @java.lang.Override public com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.FunctionDeprecationInfo getDeprecated() { return deprecated_ == null ? com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.FunctionDeprecationInfo.getDefaultInstance() : deprecated_; } /** *
     * The deprecation for the function.
     * 
* * .stardoc_output.FunctionDeprecationInfo deprecated = 5; */ @java.lang.Override public com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.FunctionDeprecationInfoOrBuilder getDeprecatedOrBuilder() { return deprecated_ == null ? com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.FunctionDeprecationInfo.getDefaultInstance() : deprecated_; } public static final int ORIGIN_KEY_FIELD_NUMBER = 6; private com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.OriginKey originKey_; /** *
     * The module where and the name under which the function was originally
     * declared.
     *
     * Note: legacy Stardoc (0.5.x and earlier) does not set this field.
     * 
* * .stardoc_output.OriginKey origin_key = 6; * @return Whether the originKey field is set. */ @java.lang.Override public boolean hasOriginKey() { return ((bitField0_ & 0x00000004) != 0); } /** *
     * The module where and the name under which the function was originally
     * declared.
     *
     * Note: legacy Stardoc (0.5.x and earlier) does not set this field.
     * 
* * .stardoc_output.OriginKey origin_key = 6; * @return The originKey. */ @java.lang.Override public com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.OriginKey getOriginKey() { return originKey_ == null ? com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.OriginKey.getDefaultInstance() : originKey_; } /** *
     * The module where and the name under which the function was originally
     * declared.
     *
     * Note: legacy Stardoc (0.5.x and earlier) does not set this field.
     * 
* * .stardoc_output.OriginKey origin_key = 6; */ @java.lang.Override public com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.OriginKeyOrBuilder getOriginKeyOrBuilder() { return originKey_ == null ? com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.OriginKey.getDefaultInstance() : originKey_; } 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 (!com.google.protobuf.GeneratedMessage.isStringEmpty(functionName_)) { com.google.protobuf.GeneratedMessage.writeString(output, 1, functionName_); } for (int i = 0; i < parameter_.size(); i++) { output.writeMessage(2, parameter_.get(i)); } if (!com.google.protobuf.GeneratedMessage.isStringEmpty(docString_)) { com.google.protobuf.GeneratedMessage.writeString(output, 3, docString_); } if (((bitField0_ & 0x00000001) != 0)) { output.writeMessage(4, getReturn()); } if (((bitField0_ & 0x00000002) != 0)) { output.writeMessage(5, getDeprecated()); } if (((bitField0_ & 0x00000004) != 0)) { output.writeMessage(6, getOriginKey()); } getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (!com.google.protobuf.GeneratedMessage.isStringEmpty(functionName_)) { size += com.google.protobuf.GeneratedMessage.computeStringSize(1, functionName_); } for (int i = 0; i < parameter_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(2, parameter_.get(i)); } if (!com.google.protobuf.GeneratedMessage.isStringEmpty(docString_)) { size += com.google.protobuf.GeneratedMessage.computeStringSize(3, docString_); } if (((bitField0_ & 0x00000001) != 0)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(4, getReturn()); } if (((bitField0_ & 0x00000002) != 0)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(5, getDeprecated()); } if (((bitField0_ & 0x00000004) != 0)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(6, getOriginKey()); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.StarlarkFunctionInfo)) { return super.equals(obj); } com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.StarlarkFunctionInfo other = (com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.StarlarkFunctionInfo) obj; if (!getFunctionName() .equals(other.getFunctionName())) return false; if (!getParameterList() .equals(other.getParameterList())) return false; if (!getDocString() .equals(other.getDocString())) return false; if (hasReturn() != other.hasReturn()) return false; if (hasReturn()) { if (!getReturn() .equals(other.getReturn())) return false; } if (hasDeprecated() != other.hasDeprecated()) return false; if (hasDeprecated()) { if (!getDeprecated() .equals(other.getDeprecated())) return false; } if (hasOriginKey() != other.hasOriginKey()) return false; if (hasOriginKey()) { if (!getOriginKey() .equals(other.getOriginKey())) return false; } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + FUNCTION_NAME_FIELD_NUMBER; hash = (53 * hash) + getFunctionName().hashCode(); if (getParameterCount() > 0) { hash = (37 * hash) + PARAMETER_FIELD_NUMBER; hash = (53 * hash) + getParameterList().hashCode(); } hash = (37 * hash) + DOC_STRING_FIELD_NUMBER; hash = (53 * hash) + getDocString().hashCode(); if (hasReturn()) { hash = (37 * hash) + RETURN_FIELD_NUMBER; hash = (53 * hash) + getReturn().hashCode(); } if (hasDeprecated()) { hash = (37 * hash) + DEPRECATED_FIELD_NUMBER; hash = (53 * hash) + getDeprecated().hashCode(); } if (hasOriginKey()) { hash = (37 * hash) + ORIGIN_KEY_FIELD_NUMBER; hash = (53 * hash) + getOriginKey().hashCode(); } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.StarlarkFunctionInfo parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.StarlarkFunctionInfo 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.lib.starlarkdocextract.StardocOutputProtos.StarlarkFunctionInfo parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.StarlarkFunctionInfo 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.lib.starlarkdocextract.StardocOutputProtos.StarlarkFunctionInfo parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.StarlarkFunctionInfo parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.StarlarkFunctionInfo parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessage .parseWithIOException(PARSER, input); } public static com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.StarlarkFunctionInfo parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessage .parseWithIOException(PARSER, input, extensionRegistry); } public static com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.StarlarkFunctionInfo parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessage .parseDelimitedWithIOException(PARSER, input); } public static com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.StarlarkFunctionInfo parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessage .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.StarlarkFunctionInfo parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessage .parseWithIOException(PARSER, input); } public static com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.StarlarkFunctionInfo parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessage .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.StarlarkFunctionInfo prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } @java.lang.Override public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessage.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** *
     * Representation of Starlark function definition.
     * 
* * Protobuf type {@code stardoc_output.StarlarkFunctionInfo} */ public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder implements // @@protoc_insertion_point(builder_implements:stardoc_output.StarlarkFunctionInfo) com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.StarlarkFunctionInfoOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.internal_static_stardoc_output_StarlarkFunctionInfo_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.internal_static_stardoc_output_StarlarkFunctionInfo_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.StarlarkFunctionInfo.class, com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.StarlarkFunctionInfo.Builder.class); } // Construct using com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.StarlarkFunctionInfo.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessage .alwaysUseFieldBuilders) { getParameterFieldBuilder(); getReturnFieldBuilder(); getDeprecatedFieldBuilder(); getOriginKeyFieldBuilder(); } } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; functionName_ = ""; if (parameterBuilder_ == null) { parameter_ = java.util.Collections.emptyList(); } else { parameter_ = null; parameterBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000002); docString_ = ""; return_ = null; if (returnBuilder_ != null) { returnBuilder_.dispose(); returnBuilder_ = null; } deprecated_ = null; if (deprecatedBuilder_ != null) { deprecatedBuilder_.dispose(); deprecatedBuilder_ = null; } originKey_ = null; if (originKeyBuilder_ != null) { originKeyBuilder_.dispose(); originKeyBuilder_ = null; } return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.internal_static_stardoc_output_StarlarkFunctionInfo_descriptor; } @java.lang.Override public com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.StarlarkFunctionInfo getDefaultInstanceForType() { return com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.StarlarkFunctionInfo.getDefaultInstance(); } @java.lang.Override public com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.StarlarkFunctionInfo build() { com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.StarlarkFunctionInfo result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.StarlarkFunctionInfo buildPartial() { com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.StarlarkFunctionInfo result = new com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.StarlarkFunctionInfo(this); buildPartialRepeatedFields(result); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartialRepeatedFields(com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.StarlarkFunctionInfo result) { if (parameterBuilder_ == null) { if (((bitField0_ & 0x00000002) != 0)) { parameter_ = java.util.Collections.unmodifiableList(parameter_); bitField0_ = (bitField0_ & ~0x00000002); } result.parameter_ = parameter_; } else { result.parameter_ = parameterBuilder_.build(); } } private void buildPartial0(com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.StarlarkFunctionInfo result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.functionName_ = functionName_; } if (((from_bitField0_ & 0x00000004) != 0)) { result.docString_ = docString_; } int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000008) != 0)) { result.return_ = returnBuilder_ == null ? return_ : returnBuilder_.build(); to_bitField0_ |= 0x00000001; } if (((from_bitField0_ & 0x00000010) != 0)) { result.deprecated_ = deprecatedBuilder_ == null ? deprecated_ : deprecatedBuilder_.build(); to_bitField0_ |= 0x00000002; } if (((from_bitField0_ & 0x00000020) != 0)) { result.originKey_ = originKeyBuilder_ == null ? originKey_ : originKeyBuilder_.build(); to_bitField0_ |= 0x00000004; } result.bitField0_ |= to_bitField0_; } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.StarlarkFunctionInfo) { return mergeFrom((com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.StarlarkFunctionInfo)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.StarlarkFunctionInfo other) { if (other == com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.StarlarkFunctionInfo.getDefaultInstance()) return this; if (!other.getFunctionName().isEmpty()) { functionName_ = other.functionName_; bitField0_ |= 0x00000001; onChanged(); } if (parameterBuilder_ == null) { if (!other.parameter_.isEmpty()) { if (parameter_.isEmpty()) { parameter_ = other.parameter_; bitField0_ = (bitField0_ & ~0x00000002); } else { ensureParameterIsMutable(); parameter_.addAll(other.parameter_); } onChanged(); } } else { if (!other.parameter_.isEmpty()) { if (parameterBuilder_.isEmpty()) { parameterBuilder_.dispose(); parameterBuilder_ = null; parameter_ = other.parameter_; bitField0_ = (bitField0_ & ~0x00000002); parameterBuilder_ = com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ? getParameterFieldBuilder() : null; } else { parameterBuilder_.addAllMessages(other.parameter_); } } } if (!other.getDocString().isEmpty()) { docString_ = other.docString_; bitField0_ |= 0x00000004; onChanged(); } if (other.hasReturn()) { mergeReturn(other.getReturn()); } if (other.hasDeprecated()) { mergeDeprecated(other.getDeprecated()); } if (other.hasOriginKey()) { mergeOriginKey(other.getOriginKey()); } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { return true; } @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 10: { functionName_ = input.readStringRequireUtf8(); bitField0_ |= 0x00000001; break; } // case 10 case 18: { com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.FunctionParamInfo m = input.readMessage( com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.FunctionParamInfo.parser(), extensionRegistry); if (parameterBuilder_ == null) { ensureParameterIsMutable(); parameter_.add(m); } else { parameterBuilder_.addMessage(m); } break; } // case 18 case 26: { docString_ = input.readStringRequireUtf8(); bitField0_ |= 0x00000004; break; } // case 26 case 34: { input.readMessage( getReturnFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00000008; break; } // case 34 case 42: { input.readMessage( getDeprecatedFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00000010; break; } // case 42 case 50: { input.readMessage( getOriginKeyFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00000020; break; } // case 50 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { done = true; // was an endgroup tag } break; } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.unwrapIOException(); } finally { onChanged(); } // finally return this; } private int bitField0_; private java.lang.Object functionName_ = ""; /** *
       * The name under which the function is made accessible to a user of this
       * module, including any structs it is nested in, for example
       * "foo.frobnicate".
       * 
* * string function_name = 1; * @return The functionName. */ public java.lang.String getFunctionName() { java.lang.Object ref = functionName_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); functionName_ = s; return s; } else { return (java.lang.String) ref; } } /** *
       * The name under which the function is made accessible to a user of this
       * module, including any structs it is nested in, for example
       * "foo.frobnicate".
       * 
* * string function_name = 1; * @return The bytes for functionName. */ public com.google.protobuf.ByteString getFunctionNameBytes() { java.lang.Object ref = functionName_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); functionName_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
       * The name under which the function is made accessible to a user of this
       * module, including any structs it is nested in, for example
       * "foo.frobnicate".
       * 
* * string function_name = 1; * @param value The functionName to set. * @return This builder for chaining. */ public Builder setFunctionName( java.lang.String value) { if (value == null) { throw new NullPointerException(); } functionName_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** *
       * The name under which the function is made accessible to a user of this
       * module, including any structs it is nested in, for example
       * "foo.frobnicate".
       * 
* * string function_name = 1; * @return This builder for chaining. */ public Builder clearFunctionName() { functionName_ = getDefaultInstance().getFunctionName(); bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } /** *
       * The name under which the function is made accessible to a user of this
       * module, including any structs it is nested in, for example
       * "foo.frobnicate".
       * 
* * string function_name = 1; * @param value The bytes for functionName to set. * @return This builder for chaining. */ public Builder setFunctionNameBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); functionName_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } private java.util.List parameter_ = java.util.Collections.emptyList(); private void ensureParameterIsMutable() { if (!((bitField0_ & 0x00000002) != 0)) { parameter_ = new java.util.ArrayList(parameter_); bitField0_ |= 0x00000002; } } private com.google.protobuf.RepeatedFieldBuilder< com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.FunctionParamInfo, com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.FunctionParamInfo.Builder, com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.FunctionParamInfoOrBuilder> parameterBuilder_; /** *
       * The parameters for the function, in the following order:
       * - positional parameters
       * - keyword-only parameters
       * - residual varargs parameter (`*args`)
       * - residual keyword arguments parameter (`**kwargs`)
       * This order differs from the order in which parameters are listed in the
       * function's declaration (where positional parameters and keyword-only
       * parameters are separated either by `*` or `*args`). The declaration order
       * can be recovered by looking for the transition from ordinary/positional to
       * keyword-only.
       * 
* * repeated .stardoc_output.FunctionParamInfo parameter = 2; */ public java.util.List getParameterList() { if (parameterBuilder_ == null) { return java.util.Collections.unmodifiableList(parameter_); } else { return parameterBuilder_.getMessageList(); } } /** *
       * The parameters for the function, in the following order:
       * - positional parameters
       * - keyword-only parameters
       * - residual varargs parameter (`*args`)
       * - residual keyword arguments parameter (`**kwargs`)
       * This order differs from the order in which parameters are listed in the
       * function's declaration (where positional parameters and keyword-only
       * parameters are separated either by `*` or `*args`). The declaration order
       * can be recovered by looking for the transition from ordinary/positional to
       * keyword-only.
       * 
* * repeated .stardoc_output.FunctionParamInfo parameter = 2; */ public int getParameterCount() { if (parameterBuilder_ == null) { return parameter_.size(); } else { return parameterBuilder_.getCount(); } } /** *
       * The parameters for the function, in the following order:
       * - positional parameters
       * - keyword-only parameters
       * - residual varargs parameter (`*args`)
       * - residual keyword arguments parameter (`**kwargs`)
       * This order differs from the order in which parameters are listed in the
       * function's declaration (where positional parameters and keyword-only
       * parameters are separated either by `*` or `*args`). The declaration order
       * can be recovered by looking for the transition from ordinary/positional to
       * keyword-only.
       * 
* * repeated .stardoc_output.FunctionParamInfo parameter = 2; */ public com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.FunctionParamInfo getParameter(int index) { if (parameterBuilder_ == null) { return parameter_.get(index); } else { return parameterBuilder_.getMessage(index); } } /** *
       * The parameters for the function, in the following order:
       * - positional parameters
       * - keyword-only parameters
       * - residual varargs parameter (`*args`)
       * - residual keyword arguments parameter (`**kwargs`)
       * This order differs from the order in which parameters are listed in the
       * function's declaration (where positional parameters and keyword-only
       * parameters are separated either by `*` or `*args`). The declaration order
       * can be recovered by looking for the transition from ordinary/positional to
       * keyword-only.
       * 
* * repeated .stardoc_output.FunctionParamInfo parameter = 2; */ public Builder setParameter( int index, com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.FunctionParamInfo value) { if (parameterBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureParameterIsMutable(); parameter_.set(index, value); onChanged(); } else { parameterBuilder_.setMessage(index, value); } return this; } /** *
       * The parameters for the function, in the following order:
       * - positional parameters
       * - keyword-only parameters
       * - residual varargs parameter (`*args`)
       * - residual keyword arguments parameter (`**kwargs`)
       * This order differs from the order in which parameters are listed in the
       * function's declaration (where positional parameters and keyword-only
       * parameters are separated either by `*` or `*args`). The declaration order
       * can be recovered by looking for the transition from ordinary/positional to
       * keyword-only.
       * 
* * repeated .stardoc_output.FunctionParamInfo parameter = 2; */ public Builder setParameter( int index, com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.FunctionParamInfo.Builder builderForValue) { if (parameterBuilder_ == null) { ensureParameterIsMutable(); parameter_.set(index, builderForValue.build()); onChanged(); } else { parameterBuilder_.setMessage(index, builderForValue.build()); } return this; } /** *
       * The parameters for the function, in the following order:
       * - positional parameters
       * - keyword-only parameters
       * - residual varargs parameter (`*args`)
       * - residual keyword arguments parameter (`**kwargs`)
       * This order differs from the order in which parameters are listed in the
       * function's declaration (where positional parameters and keyword-only
       * parameters are separated either by `*` or `*args`). The declaration order
       * can be recovered by looking for the transition from ordinary/positional to
       * keyword-only.
       * 
* * repeated .stardoc_output.FunctionParamInfo parameter = 2; */ public Builder addParameter(com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.FunctionParamInfo value) { if (parameterBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureParameterIsMutable(); parameter_.add(value); onChanged(); } else { parameterBuilder_.addMessage(value); } return this; } /** *
       * The parameters for the function, in the following order:
       * - positional parameters
       * - keyword-only parameters
       * - residual varargs parameter (`*args`)
       * - residual keyword arguments parameter (`**kwargs`)
       * This order differs from the order in which parameters are listed in the
       * function's declaration (where positional parameters and keyword-only
       * parameters are separated either by `*` or `*args`). The declaration order
       * can be recovered by looking for the transition from ordinary/positional to
       * keyword-only.
       * 
* * repeated .stardoc_output.FunctionParamInfo parameter = 2; */ public Builder addParameter( int index, com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.FunctionParamInfo value) { if (parameterBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureParameterIsMutable(); parameter_.add(index, value); onChanged(); } else { parameterBuilder_.addMessage(index, value); } return this; } /** *
       * The parameters for the function, in the following order:
       * - positional parameters
       * - keyword-only parameters
       * - residual varargs parameter (`*args`)
       * - residual keyword arguments parameter (`**kwargs`)
       * This order differs from the order in which parameters are listed in the
       * function's declaration (where positional parameters and keyword-only
       * parameters are separated either by `*` or `*args`). The declaration order
       * can be recovered by looking for the transition from ordinary/positional to
       * keyword-only.
       * 
* * repeated .stardoc_output.FunctionParamInfo parameter = 2; */ public Builder addParameter( com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.FunctionParamInfo.Builder builderForValue) { if (parameterBuilder_ == null) { ensureParameterIsMutable(); parameter_.add(builderForValue.build()); onChanged(); } else { parameterBuilder_.addMessage(builderForValue.build()); } return this; } /** *
       * The parameters for the function, in the following order:
       * - positional parameters
       * - keyword-only parameters
       * - residual varargs parameter (`*args`)
       * - residual keyword arguments parameter (`**kwargs`)
       * This order differs from the order in which parameters are listed in the
       * function's declaration (where positional parameters and keyword-only
       * parameters are separated either by `*` or `*args`). The declaration order
       * can be recovered by looking for the transition from ordinary/positional to
       * keyword-only.
       * 
* * repeated .stardoc_output.FunctionParamInfo parameter = 2; */ public Builder addParameter( int index, com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.FunctionParamInfo.Builder builderForValue) { if (parameterBuilder_ == null) { ensureParameterIsMutable(); parameter_.add(index, builderForValue.build()); onChanged(); } else { parameterBuilder_.addMessage(index, builderForValue.build()); } return this; } /** *
       * The parameters for the function, in the following order:
       * - positional parameters
       * - keyword-only parameters
       * - residual varargs parameter (`*args`)
       * - residual keyword arguments parameter (`**kwargs`)
       * This order differs from the order in which parameters are listed in the
       * function's declaration (where positional parameters and keyword-only
       * parameters are separated either by `*` or `*args`). The declaration order
       * can be recovered by looking for the transition from ordinary/positional to
       * keyword-only.
       * 
* * repeated .stardoc_output.FunctionParamInfo parameter = 2; */ public Builder addAllParameter( java.lang.Iterable values) { if (parameterBuilder_ == null) { ensureParameterIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, parameter_); onChanged(); } else { parameterBuilder_.addAllMessages(values); } return this; } /** *
       * The parameters for the function, in the following order:
       * - positional parameters
       * - keyword-only parameters
       * - residual varargs parameter (`*args`)
       * - residual keyword arguments parameter (`**kwargs`)
       * This order differs from the order in which parameters are listed in the
       * function's declaration (where positional parameters and keyword-only
       * parameters are separated either by `*` or `*args`). The declaration order
       * can be recovered by looking for the transition from ordinary/positional to
       * keyword-only.
       * 
* * repeated .stardoc_output.FunctionParamInfo parameter = 2; */ public Builder clearParameter() { if (parameterBuilder_ == null) { parameter_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000002); onChanged(); } else { parameterBuilder_.clear(); } return this; } /** *
       * The parameters for the function, in the following order:
       * - positional parameters
       * - keyword-only parameters
       * - residual varargs parameter (`*args`)
       * - residual keyword arguments parameter (`**kwargs`)
       * This order differs from the order in which parameters are listed in the
       * function's declaration (where positional parameters and keyword-only
       * parameters are separated either by `*` or `*args`). The declaration order
       * can be recovered by looking for the transition from ordinary/positional to
       * keyword-only.
       * 
* * repeated .stardoc_output.FunctionParamInfo parameter = 2; */ public Builder removeParameter(int index) { if (parameterBuilder_ == null) { ensureParameterIsMutable(); parameter_.remove(index); onChanged(); } else { parameterBuilder_.remove(index); } return this; } /** *
       * The parameters for the function, in the following order:
       * - positional parameters
       * - keyword-only parameters
       * - residual varargs parameter (`*args`)
       * - residual keyword arguments parameter (`**kwargs`)
       * This order differs from the order in which parameters are listed in the
       * function's declaration (where positional parameters and keyword-only
       * parameters are separated either by `*` or `*args`). The declaration order
       * can be recovered by looking for the transition from ordinary/positional to
       * keyword-only.
       * 
* * repeated .stardoc_output.FunctionParamInfo parameter = 2; */ public com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.FunctionParamInfo.Builder getParameterBuilder( int index) { return getParameterFieldBuilder().getBuilder(index); } /** *
       * The parameters for the function, in the following order:
       * - positional parameters
       * - keyword-only parameters
       * - residual varargs parameter (`*args`)
       * - residual keyword arguments parameter (`**kwargs`)
       * This order differs from the order in which parameters are listed in the
       * function's declaration (where positional parameters and keyword-only
       * parameters are separated either by `*` or `*args`). The declaration order
       * can be recovered by looking for the transition from ordinary/positional to
       * keyword-only.
       * 
* * repeated .stardoc_output.FunctionParamInfo parameter = 2; */ public com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.FunctionParamInfoOrBuilder getParameterOrBuilder( int index) { if (parameterBuilder_ == null) { return parameter_.get(index); } else { return parameterBuilder_.getMessageOrBuilder(index); } } /** *
       * The parameters for the function, in the following order:
       * - positional parameters
       * - keyword-only parameters
       * - residual varargs parameter (`*args`)
       * - residual keyword arguments parameter (`**kwargs`)
       * This order differs from the order in which parameters are listed in the
       * function's declaration (where positional parameters and keyword-only
       * parameters are separated either by `*` or `*args`). The declaration order
       * can be recovered by looking for the transition from ordinary/positional to
       * keyword-only.
       * 
* * repeated .stardoc_output.FunctionParamInfo parameter = 2; */ public java.util.List getParameterOrBuilderList() { if (parameterBuilder_ != null) { return parameterBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(parameter_); } } /** *
       * The parameters for the function, in the following order:
       * - positional parameters
       * - keyword-only parameters
       * - residual varargs parameter (`*args`)
       * - residual keyword arguments parameter (`**kwargs`)
       * This order differs from the order in which parameters are listed in the
       * function's declaration (where positional parameters and keyword-only
       * parameters are separated either by `*` or `*args`). The declaration order
       * can be recovered by looking for the transition from ordinary/positional to
       * keyword-only.
       * 
* * repeated .stardoc_output.FunctionParamInfo parameter = 2; */ public com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.FunctionParamInfo.Builder addParameterBuilder() { return getParameterFieldBuilder().addBuilder( com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.FunctionParamInfo.getDefaultInstance()); } /** *
       * The parameters for the function, in the following order:
       * - positional parameters
       * - keyword-only parameters
       * - residual varargs parameter (`*args`)
       * - residual keyword arguments parameter (`**kwargs`)
       * This order differs from the order in which parameters are listed in the
       * function's declaration (where positional parameters and keyword-only
       * parameters are separated either by `*` or `*args`). The declaration order
       * can be recovered by looking for the transition from ordinary/positional to
       * keyword-only.
       * 
* * repeated .stardoc_output.FunctionParamInfo parameter = 2; */ public com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.FunctionParamInfo.Builder addParameterBuilder( int index) { return getParameterFieldBuilder().addBuilder( index, com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.FunctionParamInfo.getDefaultInstance()); } /** *
       * The parameters for the function, in the following order:
       * - positional parameters
       * - keyword-only parameters
       * - residual varargs parameter (`*args`)
       * - residual keyword arguments parameter (`**kwargs`)
       * This order differs from the order in which parameters are listed in the
       * function's declaration (where positional parameters and keyword-only
       * parameters are separated either by `*` or `*args`). The declaration order
       * can be recovered by looking for the transition from ordinary/positional to
       * keyword-only.
       * 
* * repeated .stardoc_output.FunctionParamInfo parameter = 2; */ public java.util.List getParameterBuilderList() { return getParameterFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilder< com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.FunctionParamInfo, com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.FunctionParamInfo.Builder, com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.FunctionParamInfoOrBuilder> getParameterFieldBuilder() { if (parameterBuilder_ == null) { parameterBuilder_ = new com.google.protobuf.RepeatedFieldBuilder< com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.FunctionParamInfo, com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.FunctionParamInfo.Builder, com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.FunctionParamInfoOrBuilder>( parameter_, ((bitField0_ & 0x00000002) != 0), getParentForChildren(), isClean()); parameter_ = null; } return parameterBuilder_; } private java.lang.Object docString_ = ""; /** *
       * The documented description of the function (if specified in the function's
       * docstring).
       * 
* * string doc_string = 3; * @return The docString. */ public java.lang.String getDocString() { java.lang.Object ref = docString_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); docString_ = s; return s; } else { return (java.lang.String) ref; } } /** *
       * The documented description of the function (if specified in the function's
       * docstring).
       * 
* * string doc_string = 3; * @return The bytes for docString. */ public com.google.protobuf.ByteString getDocStringBytes() { java.lang.Object ref = docString_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); docString_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
       * The documented description of the function (if specified in the function's
       * docstring).
       * 
* * string doc_string = 3; * @param value The docString to set. * @return This builder for chaining. */ public Builder setDocString( java.lang.String value) { if (value == null) { throw new NullPointerException(); } docString_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } /** *
       * The documented description of the function (if specified in the function's
       * docstring).
       * 
* * string doc_string = 3; * @return This builder for chaining. */ public Builder clearDocString() { docString_ = getDefaultInstance().getDocString(); bitField0_ = (bitField0_ & ~0x00000004); onChanged(); return this; } /** *
       * The documented description of the function (if specified in the function's
       * docstring).
       * 
* * string doc_string = 3; * @param value The bytes for docString to set. * @return This builder for chaining. */ public Builder setDocStringBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); docString_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } private com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.FunctionReturnInfo return_; private com.google.protobuf.SingleFieldBuilder< com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.FunctionReturnInfo, com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.FunctionReturnInfo.Builder, com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.FunctionReturnInfoOrBuilder> returnBuilder_; /** *
       * The return value for the function.
       * 
* * .stardoc_output.FunctionReturnInfo return = 4; * @return Whether the return field is set. */ public boolean hasReturn() { return ((bitField0_ & 0x00000008) != 0); } /** *
       * The return value for the function.
       * 
* * .stardoc_output.FunctionReturnInfo return = 4; * @return The return. */ public com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.FunctionReturnInfo getReturn() { if (returnBuilder_ == null) { return return_ == null ? com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.FunctionReturnInfo.getDefaultInstance() : return_; } else { return returnBuilder_.getMessage(); } } /** *
       * The return value for the function.
       * 
* * .stardoc_output.FunctionReturnInfo return = 4; */ public Builder setReturn(com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.FunctionReturnInfo value) { if (returnBuilder_ == null) { if (value == null) { throw new NullPointerException(); } return_ = value; } else { returnBuilder_.setMessage(value); } bitField0_ |= 0x00000008; onChanged(); return this; } /** *
       * The return value for the function.
       * 
* * .stardoc_output.FunctionReturnInfo return = 4; */ public Builder setReturn( com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.FunctionReturnInfo.Builder builderForValue) { if (returnBuilder_ == null) { return_ = builderForValue.build(); } else { returnBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000008; onChanged(); return this; } /** *
       * The return value for the function.
       * 
* * .stardoc_output.FunctionReturnInfo return = 4; */ public Builder mergeReturn(com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.FunctionReturnInfo value) { if (returnBuilder_ == null) { if (((bitField0_ & 0x00000008) != 0) && return_ != null && return_ != com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.FunctionReturnInfo.getDefaultInstance()) { getReturnBuilder().mergeFrom(value); } else { return_ = value; } } else { returnBuilder_.mergeFrom(value); } if (return_ != null) { bitField0_ |= 0x00000008; onChanged(); } return this; } /** *
       * The return value for the function.
       * 
* * .stardoc_output.FunctionReturnInfo return = 4; */ public Builder clearReturn() { bitField0_ = (bitField0_ & ~0x00000008); return_ = null; if (returnBuilder_ != null) { returnBuilder_.dispose(); returnBuilder_ = null; } onChanged(); return this; } /** *
       * The return value for the function.
       * 
* * .stardoc_output.FunctionReturnInfo return = 4; */ public com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.FunctionReturnInfo.Builder getReturnBuilder() { bitField0_ |= 0x00000008; onChanged(); return getReturnFieldBuilder().getBuilder(); } /** *
       * The return value for the function.
       * 
* * .stardoc_output.FunctionReturnInfo return = 4; */ public com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.FunctionReturnInfoOrBuilder getReturnOrBuilder() { if (returnBuilder_ != null) { return returnBuilder_.getMessageOrBuilder(); } else { return return_ == null ? com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.FunctionReturnInfo.getDefaultInstance() : return_; } } /** *
       * The return value for the function.
       * 
* * .stardoc_output.FunctionReturnInfo return = 4; */ private com.google.protobuf.SingleFieldBuilder< com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.FunctionReturnInfo, com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.FunctionReturnInfo.Builder, com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.FunctionReturnInfoOrBuilder> getReturnFieldBuilder() { if (returnBuilder_ == null) { returnBuilder_ = new com.google.protobuf.SingleFieldBuilder< com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.FunctionReturnInfo, com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.FunctionReturnInfo.Builder, com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.FunctionReturnInfoOrBuilder>( getReturn(), getParentForChildren(), isClean()); return_ = null; } return returnBuilder_; } private com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.FunctionDeprecationInfo deprecated_; private com.google.protobuf.SingleFieldBuilder< com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.FunctionDeprecationInfo, com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.FunctionDeprecationInfo.Builder, com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.FunctionDeprecationInfoOrBuilder> deprecatedBuilder_; /** *
       * The deprecation for the function.
       * 
* * .stardoc_output.FunctionDeprecationInfo deprecated = 5; * @return Whether the deprecated field is set. */ public boolean hasDeprecated() { return ((bitField0_ & 0x00000010) != 0); } /** *
       * The deprecation for the function.
       * 
* * .stardoc_output.FunctionDeprecationInfo deprecated = 5; * @return The deprecated. */ public com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.FunctionDeprecationInfo getDeprecated() { if (deprecatedBuilder_ == null) { return deprecated_ == null ? com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.FunctionDeprecationInfo.getDefaultInstance() : deprecated_; } else { return deprecatedBuilder_.getMessage(); } } /** *
       * The deprecation for the function.
       * 
* * .stardoc_output.FunctionDeprecationInfo deprecated = 5; */ public Builder setDeprecated(com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.FunctionDeprecationInfo value) { if (deprecatedBuilder_ == null) { if (value == null) { throw new NullPointerException(); } deprecated_ = value; } else { deprecatedBuilder_.setMessage(value); } bitField0_ |= 0x00000010; onChanged(); return this; } /** *
       * The deprecation for the function.
       * 
* * .stardoc_output.FunctionDeprecationInfo deprecated = 5; */ public Builder setDeprecated( com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.FunctionDeprecationInfo.Builder builderForValue) { if (deprecatedBuilder_ == null) { deprecated_ = builderForValue.build(); } else { deprecatedBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000010; onChanged(); return this; } /** *
       * The deprecation for the function.
       * 
* * .stardoc_output.FunctionDeprecationInfo deprecated = 5; */ public Builder mergeDeprecated(com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.FunctionDeprecationInfo value) { if (deprecatedBuilder_ == null) { if (((bitField0_ & 0x00000010) != 0) && deprecated_ != null && deprecated_ != com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.FunctionDeprecationInfo.getDefaultInstance()) { getDeprecatedBuilder().mergeFrom(value); } else { deprecated_ = value; } } else { deprecatedBuilder_.mergeFrom(value); } if (deprecated_ != null) { bitField0_ |= 0x00000010; onChanged(); } return this; } /** *
       * The deprecation for the function.
       * 
* * .stardoc_output.FunctionDeprecationInfo deprecated = 5; */ public Builder clearDeprecated() { bitField0_ = (bitField0_ & ~0x00000010); deprecated_ = null; if (deprecatedBuilder_ != null) { deprecatedBuilder_.dispose(); deprecatedBuilder_ = null; } onChanged(); return this; } /** *
       * The deprecation for the function.
       * 
* * .stardoc_output.FunctionDeprecationInfo deprecated = 5; */ public com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.FunctionDeprecationInfo.Builder getDeprecatedBuilder() { bitField0_ |= 0x00000010; onChanged(); return getDeprecatedFieldBuilder().getBuilder(); } /** *
       * The deprecation for the function.
       * 
* * .stardoc_output.FunctionDeprecationInfo deprecated = 5; */ public com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.FunctionDeprecationInfoOrBuilder getDeprecatedOrBuilder() { if (deprecatedBuilder_ != null) { return deprecatedBuilder_.getMessageOrBuilder(); } else { return deprecated_ == null ? com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.FunctionDeprecationInfo.getDefaultInstance() : deprecated_; } } /** *
       * The deprecation for the function.
       * 
* * .stardoc_output.FunctionDeprecationInfo deprecated = 5; */ private com.google.protobuf.SingleFieldBuilder< com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.FunctionDeprecationInfo, com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.FunctionDeprecationInfo.Builder, com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.FunctionDeprecationInfoOrBuilder> getDeprecatedFieldBuilder() { if (deprecatedBuilder_ == null) { deprecatedBuilder_ = new com.google.protobuf.SingleFieldBuilder< com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.FunctionDeprecationInfo, com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.FunctionDeprecationInfo.Builder, com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.FunctionDeprecationInfoOrBuilder>( getDeprecated(), getParentForChildren(), isClean()); deprecated_ = null; } return deprecatedBuilder_; } private com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.OriginKey originKey_; private com.google.protobuf.SingleFieldBuilder< com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.OriginKey, com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.OriginKey.Builder, com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.OriginKeyOrBuilder> originKeyBuilder_; /** *
       * The module where and the name under which the function was originally
       * declared.
       *
       * Note: legacy Stardoc (0.5.x and earlier) does not set this field.
       * 
* * .stardoc_output.OriginKey origin_key = 6; * @return Whether the originKey field is set. */ public boolean hasOriginKey() { return ((bitField0_ & 0x00000020) != 0); } /** *
       * The module where and the name under which the function was originally
       * declared.
       *
       * Note: legacy Stardoc (0.5.x and earlier) does not set this field.
       * 
* * .stardoc_output.OriginKey origin_key = 6; * @return The originKey. */ public com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.OriginKey getOriginKey() { if (originKeyBuilder_ == null) { return originKey_ == null ? com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.OriginKey.getDefaultInstance() : originKey_; } else { return originKeyBuilder_.getMessage(); } } /** *
       * The module where and the name under which the function was originally
       * declared.
       *
       * Note: legacy Stardoc (0.5.x and earlier) does not set this field.
       * 
* * .stardoc_output.OriginKey origin_key = 6; */ public Builder setOriginKey(com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.OriginKey value) { if (originKeyBuilder_ == null) { if (value == null) { throw new NullPointerException(); } originKey_ = value; } else { originKeyBuilder_.setMessage(value); } bitField0_ |= 0x00000020; onChanged(); return this; } /** *
       * The module where and the name under which the function was originally
       * declared.
       *
       * Note: legacy Stardoc (0.5.x and earlier) does not set this field.
       * 
* * .stardoc_output.OriginKey origin_key = 6; */ public Builder setOriginKey( com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.OriginKey.Builder builderForValue) { if (originKeyBuilder_ == null) { originKey_ = builderForValue.build(); } else { originKeyBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000020; onChanged(); return this; } /** *
       * The module where and the name under which the function was originally
       * declared.
       *
       * Note: legacy Stardoc (0.5.x and earlier) does not set this field.
       * 
* * .stardoc_output.OriginKey origin_key = 6; */ public Builder mergeOriginKey(com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.OriginKey value) { if (originKeyBuilder_ == null) { if (((bitField0_ & 0x00000020) != 0) && originKey_ != null && originKey_ != com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.OriginKey.getDefaultInstance()) { getOriginKeyBuilder().mergeFrom(value); } else { originKey_ = value; } } else { originKeyBuilder_.mergeFrom(value); } if (originKey_ != null) { bitField0_ |= 0x00000020; onChanged(); } return this; } /** *
       * The module where and the name under which the function was originally
       * declared.
       *
       * Note: legacy Stardoc (0.5.x and earlier) does not set this field.
       * 
* * .stardoc_output.OriginKey origin_key = 6; */ public Builder clearOriginKey() { bitField0_ = (bitField0_ & ~0x00000020); originKey_ = null; if (originKeyBuilder_ != null) { originKeyBuilder_.dispose(); originKeyBuilder_ = null; } onChanged(); return this; } /** *
       * The module where and the name under which the function was originally
       * declared.
       *
       * Note: legacy Stardoc (0.5.x and earlier) does not set this field.
       * 
* * .stardoc_output.OriginKey origin_key = 6; */ public com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.OriginKey.Builder getOriginKeyBuilder() { bitField0_ |= 0x00000020; onChanged(); return getOriginKeyFieldBuilder().getBuilder(); } /** *
       * The module where and the name under which the function was originally
       * declared.
       *
       * Note: legacy Stardoc (0.5.x and earlier) does not set this field.
       * 
* * .stardoc_output.OriginKey origin_key = 6; */ public com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.OriginKeyOrBuilder getOriginKeyOrBuilder() { if (originKeyBuilder_ != null) { return originKeyBuilder_.getMessageOrBuilder(); } else { return originKey_ == null ? com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.OriginKey.getDefaultInstance() : originKey_; } } /** *
       * The module where and the name under which the function was originally
       * declared.
       *
       * Note: legacy Stardoc (0.5.x and earlier) does not set this field.
       * 
* * .stardoc_output.OriginKey origin_key = 6; */ private com.google.protobuf.SingleFieldBuilder< com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.OriginKey, com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.OriginKey.Builder, com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.OriginKeyOrBuilder> getOriginKeyFieldBuilder() { if (originKeyBuilder_ == null) { originKeyBuilder_ = new com.google.protobuf.SingleFieldBuilder< com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.OriginKey, com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.OriginKey.Builder, com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.OriginKeyOrBuilder>( getOriginKey(), getParentForChildren(), isClean()); originKey_ = null; } return originKeyBuilder_; } // @@protoc_insertion_point(builder_scope:stardoc_output.StarlarkFunctionInfo) } // @@protoc_insertion_point(class_scope:stardoc_output.StarlarkFunctionInfo) private static final com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.StarlarkFunctionInfo DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.StarlarkFunctionInfo(); } public static com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.StarlarkFunctionInfo getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public StarlarkFunctionInfo parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { Builder builder = newBuilder(); try { builder.mergeFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(builder.buildPartial()); } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e) .setUnfinishedMessage(builder.buildPartial()); } return builder.buildPartial(); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override public com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.StarlarkFunctionInfo getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface FunctionParamInfoOrBuilder extends // @@protoc_insertion_point(interface_extends:stardoc_output.FunctionParamInfo) com.google.protobuf.MessageOrBuilder { /** *
     * The name of the parameter. This does *not* include the `*` or `**` prefix
     * for varargs or residual keyword argument parameters.
     * 
* * string name = 1; * @return The name. */ java.lang.String getName(); /** *
     * The name of the parameter. This does *not* include the `*` or `**` prefix
     * for varargs or residual keyword argument parameters.
     * 
* * string name = 1; * @return The bytes for name. */ com.google.protobuf.ByteString getNameBytes(); /** *
     * The documented description of the parameter (if specified in the function's
     * docstring).
     * 
* * string doc_string = 2; * @return The docString. */ java.lang.String getDocString(); /** *
     * The documented description of the parameter (if specified in the function's
     * docstring).
     * 
* * string doc_string = 2; * @return The bytes for docString. */ com.google.protobuf.ByteString getDocStringBytes(); /** *
     * If not an empty string, the default value of the parameter displayed
     * as a string.
     * 
* * string default_value = 3; * @return The defaultValue. */ java.lang.String getDefaultValue(); /** *
     * If not an empty string, the default value of the parameter displayed
     * as a string.
     * 
* * string default_value = 3; * @return The bytes for defaultValue. */ com.google.protobuf.ByteString getDefaultValueBytes(); /** *
     * If true, the default value is unset and a value is needed for this
     * parameter. This might be false even if defaultValue is empty in the case of
     * special parameter such as *args and **kwargs"
     * 
* * bool mandatory = 4; * @return The mandatory. */ boolean getMandatory(); /** *
     * The parameter's syntactic role.
     * 
* * .stardoc_output.FunctionParamRole role = 5; * @return The enum numeric value on the wire for role. */ int getRoleValue(); /** *
     * The parameter's syntactic role.
     * 
* * .stardoc_output.FunctionParamRole role = 5; * @return The role. */ com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.FunctionParamRole getRole(); } /** *
   * Representation of a Starlark function parameter definition.
   * 
* * Protobuf type {@code stardoc_output.FunctionParamInfo} */ public static final class FunctionParamInfo extends com.google.protobuf.GeneratedMessage implements // @@protoc_insertion_point(message_implements:stardoc_output.FunctionParamInfo) FunctionParamInfoOrBuilder { private static final long serialVersionUID = 0L; static { com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, /* major= */ 4, /* minor= */ 28, /* patch= */ 3, /* suffix= */ "", FunctionParamInfo.class.getName()); } // Use FunctionParamInfo.newBuilder() to construct. private FunctionParamInfo(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); } private FunctionParamInfo() { name_ = ""; docString_ = ""; defaultValue_ = ""; role_ = 0; } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.internal_static_stardoc_output_FunctionParamInfo_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.internal_static_stardoc_output_FunctionParamInfo_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.FunctionParamInfo.class, com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.FunctionParamInfo.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; @SuppressWarnings("serial") private volatile java.lang.Object name_ = ""; /** *
     * The name of the parameter. This does *not* include the `*` or `**` prefix
     * for varargs or residual keyword argument parameters.
     * 
* * string name = 1; * @return The name. */ @java.lang.Override 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; } } /** *
     * The name of the parameter. This does *not* include the `*` or `**` prefix
     * for varargs or residual keyword argument parameters.
     * 
* * string name = 1; * @return The bytes for name. */ @java.lang.Override 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 DOC_STRING_FIELD_NUMBER = 2; @SuppressWarnings("serial") private volatile java.lang.Object docString_ = ""; /** *
     * The documented description of the parameter (if specified in the function's
     * docstring).
     * 
* * string doc_string = 2; * @return The docString. */ @java.lang.Override public java.lang.String getDocString() { java.lang.Object ref = docString_; 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(); docString_ = s; return s; } } /** *
     * The documented description of the parameter (if specified in the function's
     * docstring).
     * 
* * string doc_string = 2; * @return The bytes for docString. */ @java.lang.Override public com.google.protobuf.ByteString getDocStringBytes() { java.lang.Object ref = docString_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); docString_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int DEFAULT_VALUE_FIELD_NUMBER = 3; @SuppressWarnings("serial") private volatile java.lang.Object defaultValue_ = ""; /** *
     * If not an empty string, the default value of the parameter displayed
     * as a string.
     * 
* * string default_value = 3; * @return The defaultValue. */ @java.lang.Override 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; } } /** *
     * If not an empty string, the default value of the parameter displayed
     * as a string.
     * 
* * string default_value = 3; * @return The bytes for defaultValue. */ @java.lang.Override 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 MANDATORY_FIELD_NUMBER = 4; private boolean mandatory_ = false; /** *
     * If true, the default value is unset and a value is needed for this
     * parameter. This might be false even if defaultValue is empty in the case of
     * special parameter such as *args and **kwargs"
     * 
* * bool mandatory = 4; * @return The mandatory. */ @java.lang.Override public boolean getMandatory() { return mandatory_; } public static final int ROLE_FIELD_NUMBER = 5; private int role_ = 0; /** *
     * The parameter's syntactic role.
     * 
* * .stardoc_output.FunctionParamRole role = 5; * @return The enum numeric value on the wire for role. */ @java.lang.Override public int getRoleValue() { return role_; } /** *
     * The parameter's syntactic role.
     * 
* * .stardoc_output.FunctionParamRole role = 5; * @return The role. */ @java.lang.Override public com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.FunctionParamRole getRole() { com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.FunctionParamRole result = com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.FunctionParamRole.forNumber(role_); return result == null ? com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.FunctionParamRole.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 (!com.google.protobuf.GeneratedMessage.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessage.writeString(output, 1, name_); } if (!com.google.protobuf.GeneratedMessage.isStringEmpty(docString_)) { com.google.protobuf.GeneratedMessage.writeString(output, 2, docString_); } if (!com.google.protobuf.GeneratedMessage.isStringEmpty(defaultValue_)) { com.google.protobuf.GeneratedMessage.writeString(output, 3, defaultValue_); } if (mandatory_ != false) { output.writeBool(4, mandatory_); } if (role_ != com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.FunctionParamRole.PARAM_ROLE_UNSPECIFIED.getNumber()) { output.writeEnum(5, role_); } getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (!com.google.protobuf.GeneratedMessage.isStringEmpty(name_)) { size += com.google.protobuf.GeneratedMessage.computeStringSize(1, name_); } if (!com.google.protobuf.GeneratedMessage.isStringEmpty(docString_)) { size += com.google.protobuf.GeneratedMessage.computeStringSize(2, docString_); } if (!com.google.protobuf.GeneratedMessage.isStringEmpty(defaultValue_)) { size += com.google.protobuf.GeneratedMessage.computeStringSize(3, defaultValue_); } if (mandatory_ != false) { size += com.google.protobuf.CodedOutputStream .computeBoolSize(4, mandatory_); } if (role_ != com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.FunctionParamRole.PARAM_ROLE_UNSPECIFIED.getNumber()) { size += com.google.protobuf.CodedOutputStream .computeEnumSize(5, role_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.FunctionParamInfo)) { return super.equals(obj); } com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.FunctionParamInfo other = (com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.FunctionParamInfo) obj; if (!getName() .equals(other.getName())) return false; if (!getDocString() .equals(other.getDocString())) return false; if (!getDefaultValue() .equals(other.getDefaultValue())) return false; if (getMandatory() != other.getMandatory()) return false; if (role_ != other.role_) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + NAME_FIELD_NUMBER; hash = (53 * hash) + getName().hashCode(); hash = (37 * hash) + DOC_STRING_FIELD_NUMBER; hash = (53 * hash) + getDocString().hashCode(); hash = (37 * hash) + DEFAULT_VALUE_FIELD_NUMBER; hash = (53 * hash) + getDefaultValue().hashCode(); hash = (37 * hash) + MANDATORY_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( getMandatory()); hash = (37 * hash) + ROLE_FIELD_NUMBER; hash = (53 * hash) + role_; hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.FunctionParamInfo parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.FunctionParamInfo 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.lib.starlarkdocextract.StardocOutputProtos.FunctionParamInfo parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.FunctionParamInfo 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.lib.starlarkdocextract.StardocOutputProtos.FunctionParamInfo parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.FunctionParamInfo parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.FunctionParamInfo parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessage .parseWithIOException(PARSER, input); } public static com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.FunctionParamInfo parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessage .parseWithIOException(PARSER, input, extensionRegistry); } public static com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.FunctionParamInfo parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessage .parseDelimitedWithIOException(PARSER, input); } public static com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.FunctionParamInfo parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessage .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.FunctionParamInfo parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessage .parseWithIOException(PARSER, input); } public static com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.FunctionParamInfo parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessage .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.FunctionParamInfo prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } @java.lang.Override public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessage.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** *
     * Representation of a Starlark function parameter definition.
     * 
* * Protobuf type {@code stardoc_output.FunctionParamInfo} */ public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder implements // @@protoc_insertion_point(builder_implements:stardoc_output.FunctionParamInfo) com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.FunctionParamInfoOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.internal_static_stardoc_output_FunctionParamInfo_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.internal_static_stardoc_output_FunctionParamInfo_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.FunctionParamInfo.class, com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.FunctionParamInfo.Builder.class); } // Construct using com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.FunctionParamInfo.newBuilder() private Builder() { } private Builder( com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; name_ = ""; docString_ = ""; defaultValue_ = ""; mandatory_ = false; role_ = 0; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.internal_static_stardoc_output_FunctionParamInfo_descriptor; } @java.lang.Override public com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.FunctionParamInfo getDefaultInstanceForType() { return com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.FunctionParamInfo.getDefaultInstance(); } @java.lang.Override public com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.FunctionParamInfo build() { com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.FunctionParamInfo result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.FunctionParamInfo buildPartial() { com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.FunctionParamInfo result = new com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.FunctionParamInfo(this); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartial0(com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.FunctionParamInfo result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.name_ = name_; } if (((from_bitField0_ & 0x00000002) != 0)) { result.docString_ = docString_; } if (((from_bitField0_ & 0x00000004) != 0)) { result.defaultValue_ = defaultValue_; } if (((from_bitField0_ & 0x00000008) != 0)) { result.mandatory_ = mandatory_; } if (((from_bitField0_ & 0x00000010) != 0)) { result.role_ = role_; } } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.FunctionParamInfo) { return mergeFrom((com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.FunctionParamInfo)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.FunctionParamInfo other) { if (other == com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.FunctionParamInfo.getDefaultInstance()) return this; if (!other.getName().isEmpty()) { name_ = other.name_; bitField0_ |= 0x00000001; onChanged(); } if (!other.getDocString().isEmpty()) { docString_ = other.docString_; bitField0_ |= 0x00000002; onChanged(); } if (!other.getDefaultValue().isEmpty()) { defaultValue_ = other.defaultValue_; bitField0_ |= 0x00000004; onChanged(); } if (other.getMandatory() != false) { setMandatory(other.getMandatory()); } if (other.role_ != 0) { setRoleValue(other.getRoleValue()); } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { return true; } @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 10: { name_ = input.readStringRequireUtf8(); bitField0_ |= 0x00000001; break; } // case 10 case 18: { docString_ = input.readStringRequireUtf8(); bitField0_ |= 0x00000002; break; } // case 18 case 26: { defaultValue_ = input.readStringRequireUtf8(); bitField0_ |= 0x00000004; break; } // case 26 case 32: { mandatory_ = input.readBool(); bitField0_ |= 0x00000008; break; } // case 32 case 40: { role_ = input.readEnum(); bitField0_ |= 0x00000010; break; } // case 40 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { done = true; // was an endgroup tag } break; } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.unwrapIOException(); } finally { onChanged(); } // finally return this; } private int bitField0_; private java.lang.Object name_ = ""; /** *
       * The name of the parameter. This does *not* include the `*` or `**` prefix
       * for varargs or residual keyword argument parameters.
       * 
* * string name = 1; * @return The name. */ 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; } } /** *
       * The name of the parameter. This does *not* include the `*` or `**` prefix
       * for varargs or residual keyword argument parameters.
       * 
* * string name = 1; * @return The bytes for name. */ 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; } } /** *
       * The name of the parameter. This does *not* include the `*` or `**` prefix
       * for varargs or residual keyword argument parameters.
       * 
* * string name = 1; * @param value The name to set. * @return This builder for chaining. */ public Builder setName( java.lang.String value) { if (value == null) { throw new NullPointerException(); } name_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** *
       * The name of the parameter. This does *not* include the `*` or `**` prefix
       * for varargs or residual keyword argument parameters.
       * 
* * string name = 1; * @return This builder for chaining. */ public Builder clearName() { name_ = getDefaultInstance().getName(); bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } /** *
       * The name of the parameter. This does *not* include the `*` or `**` prefix
       * for varargs or residual keyword argument parameters.
       * 
* * string name = 1; * @param value The bytes for name to set. * @return This builder for chaining. */ public Builder setNameBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); name_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } private java.lang.Object docString_ = ""; /** *
       * The documented description of the parameter (if specified in the function's
       * docstring).
       * 
* * string doc_string = 2; * @return The docString. */ public java.lang.String getDocString() { java.lang.Object ref = docString_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); docString_ = s; return s; } else { return (java.lang.String) ref; } } /** *
       * The documented description of the parameter (if specified in the function's
       * docstring).
       * 
* * string doc_string = 2; * @return The bytes for docString. */ public com.google.protobuf.ByteString getDocStringBytes() { java.lang.Object ref = docString_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); docString_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
       * The documented description of the parameter (if specified in the function's
       * docstring).
       * 
* * string doc_string = 2; * @param value The docString to set. * @return This builder for chaining. */ public Builder setDocString( java.lang.String value) { if (value == null) { throw new NullPointerException(); } docString_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** *
       * The documented description of the parameter (if specified in the function's
       * docstring).
       * 
* * string doc_string = 2; * @return This builder for chaining. */ public Builder clearDocString() { docString_ = getDefaultInstance().getDocString(); bitField0_ = (bitField0_ & ~0x00000002); onChanged(); return this; } /** *
       * The documented description of the parameter (if specified in the function's
       * docstring).
       * 
* * string doc_string = 2; * @param value The bytes for docString to set. * @return This builder for chaining. */ public Builder setDocStringBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); docString_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } private java.lang.Object defaultValue_ = ""; /** *
       * If not an empty string, the default value of the parameter displayed
       * as a string.
       * 
* * string default_value = 3; * @return The defaultValue. */ 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; } } /** *
       * If not an empty string, the default value of the parameter displayed
       * as a string.
       * 
* * string default_value = 3; * @return The bytes for defaultValue. */ 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; } } /** *
       * If not an empty string, the default value of the parameter displayed
       * as a string.
       * 
* * string default_value = 3; * @param value The defaultValue to set. * @return This builder for chaining. */ public Builder setDefaultValue( java.lang.String value) { if (value == null) { throw new NullPointerException(); } defaultValue_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } /** *
       * If not an empty string, the default value of the parameter displayed
       * as a string.
       * 
* * string default_value = 3; * @return This builder for chaining. */ public Builder clearDefaultValue() { defaultValue_ = getDefaultInstance().getDefaultValue(); bitField0_ = (bitField0_ & ~0x00000004); onChanged(); return this; } /** *
       * If not an empty string, the default value of the parameter displayed
       * as a string.
       * 
* * string default_value = 3; * @param value The bytes for defaultValue to set. * @return This builder for chaining. */ public Builder setDefaultValueBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); defaultValue_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } private boolean mandatory_ ; /** *
       * If true, the default value is unset and a value is needed for this
       * parameter. This might be false even if defaultValue is empty in the case of
       * special parameter such as *args and **kwargs"
       * 
* * bool mandatory = 4; * @return The mandatory. */ @java.lang.Override public boolean getMandatory() { return mandatory_; } /** *
       * If true, the default value is unset and a value is needed for this
       * parameter. This might be false even if defaultValue is empty in the case of
       * special parameter such as *args and **kwargs"
       * 
* * bool mandatory = 4; * @param value The mandatory to set. * @return This builder for chaining. */ public Builder setMandatory(boolean value) { mandatory_ = value; bitField0_ |= 0x00000008; onChanged(); return this; } /** *
       * If true, the default value is unset and a value is needed for this
       * parameter. This might be false even if defaultValue is empty in the case of
       * special parameter such as *args and **kwargs"
       * 
* * bool mandatory = 4; * @return This builder for chaining. */ public Builder clearMandatory() { bitField0_ = (bitField0_ & ~0x00000008); mandatory_ = false; onChanged(); return this; } private int role_ = 0; /** *
       * The parameter's syntactic role.
       * 
* * .stardoc_output.FunctionParamRole role = 5; * @return The enum numeric value on the wire for role. */ @java.lang.Override public int getRoleValue() { return role_; } /** *
       * The parameter's syntactic role.
       * 
* * .stardoc_output.FunctionParamRole role = 5; * @param value The enum numeric value on the wire for role to set. * @return This builder for chaining. */ public Builder setRoleValue(int value) { role_ = value; bitField0_ |= 0x00000010; onChanged(); return this; } /** *
       * The parameter's syntactic role.
       * 
* * .stardoc_output.FunctionParamRole role = 5; * @return The role. */ @java.lang.Override public com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.FunctionParamRole getRole() { com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.FunctionParamRole result = com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.FunctionParamRole.forNumber(role_); return result == null ? com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.FunctionParamRole.UNRECOGNIZED : result; } /** *
       * The parameter's syntactic role.
       * 
* * .stardoc_output.FunctionParamRole role = 5; * @param value The role to set. * @return This builder for chaining. */ public Builder setRole(com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.FunctionParamRole value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000010; role_ = value.getNumber(); onChanged(); return this; } /** *
       * The parameter's syntactic role.
       * 
* * .stardoc_output.FunctionParamRole role = 5; * @return This builder for chaining. */ public Builder clearRole() { bitField0_ = (bitField0_ & ~0x00000010); role_ = 0; onChanged(); return this; } // @@protoc_insertion_point(builder_scope:stardoc_output.FunctionParamInfo) } // @@protoc_insertion_point(class_scope:stardoc_output.FunctionParamInfo) private static final com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.FunctionParamInfo DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.FunctionParamInfo(); } public static com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.FunctionParamInfo getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public FunctionParamInfo parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { Builder builder = newBuilder(); try { builder.mergeFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(builder.buildPartial()); } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e) .setUnfinishedMessage(builder.buildPartial()); } return builder.buildPartial(); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override public com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.FunctionParamInfo getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface FunctionReturnInfoOrBuilder extends // @@protoc_insertion_point(interface_extends:stardoc_output.FunctionReturnInfo) com.google.protobuf.MessageOrBuilder { /** *
     * The documented return value of the function (if specified in the function's
     * docstring).
     * 
* * string doc_string = 1; * @return The docString. */ java.lang.String getDocString(); /** *
     * The documented return value of the function (if specified in the function's
     * docstring).
     * 
* * string doc_string = 1; * @return The bytes for docString. */ com.google.protobuf.ByteString getDocStringBytes(); } /** * Protobuf type {@code stardoc_output.FunctionReturnInfo} */ public static final class FunctionReturnInfo extends com.google.protobuf.GeneratedMessage implements // @@protoc_insertion_point(message_implements:stardoc_output.FunctionReturnInfo) FunctionReturnInfoOrBuilder { private static final long serialVersionUID = 0L; static { com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, /* major= */ 4, /* minor= */ 28, /* patch= */ 3, /* suffix= */ "", FunctionReturnInfo.class.getName()); } // Use FunctionReturnInfo.newBuilder() to construct. private FunctionReturnInfo(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); } private FunctionReturnInfo() { docString_ = ""; } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.internal_static_stardoc_output_FunctionReturnInfo_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.internal_static_stardoc_output_FunctionReturnInfo_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.FunctionReturnInfo.class, com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.FunctionReturnInfo.Builder.class); } public static final int DOC_STRING_FIELD_NUMBER = 1; @SuppressWarnings("serial") private volatile java.lang.Object docString_ = ""; /** *
     * The documented return value of the function (if specified in the function's
     * docstring).
     * 
* * string doc_string = 1; * @return The docString. */ @java.lang.Override public java.lang.String getDocString() { java.lang.Object ref = docString_; 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(); docString_ = s; return s; } } /** *
     * The documented return value of the function (if specified in the function's
     * docstring).
     * 
* * string doc_string = 1; * @return The bytes for docString. */ @java.lang.Override public com.google.protobuf.ByteString getDocStringBytes() { java.lang.Object ref = docString_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); docString_ = 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 (!com.google.protobuf.GeneratedMessage.isStringEmpty(docString_)) { com.google.protobuf.GeneratedMessage.writeString(output, 1, docString_); } getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (!com.google.protobuf.GeneratedMessage.isStringEmpty(docString_)) { size += com.google.protobuf.GeneratedMessage.computeStringSize(1, docString_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.FunctionReturnInfo)) { return super.equals(obj); } com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.FunctionReturnInfo other = (com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.FunctionReturnInfo) obj; if (!getDocString() .equals(other.getDocString())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + DOC_STRING_FIELD_NUMBER; hash = (53 * hash) + getDocString().hashCode(); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.FunctionReturnInfo parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.FunctionReturnInfo 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.lib.starlarkdocextract.StardocOutputProtos.FunctionReturnInfo parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.FunctionReturnInfo 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.lib.starlarkdocextract.StardocOutputProtos.FunctionReturnInfo parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.FunctionReturnInfo parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.FunctionReturnInfo parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessage .parseWithIOException(PARSER, input); } public static com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.FunctionReturnInfo parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessage .parseWithIOException(PARSER, input, extensionRegistry); } public static com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.FunctionReturnInfo parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessage .parseDelimitedWithIOException(PARSER, input); } public static com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.FunctionReturnInfo parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessage .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.FunctionReturnInfo parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessage .parseWithIOException(PARSER, input); } public static com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.FunctionReturnInfo parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessage .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.FunctionReturnInfo prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } @java.lang.Override public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessage.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** * Protobuf type {@code stardoc_output.FunctionReturnInfo} */ public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder implements // @@protoc_insertion_point(builder_implements:stardoc_output.FunctionReturnInfo) com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.FunctionReturnInfoOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.internal_static_stardoc_output_FunctionReturnInfo_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.internal_static_stardoc_output_FunctionReturnInfo_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.FunctionReturnInfo.class, com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.FunctionReturnInfo.Builder.class); } // Construct using com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.FunctionReturnInfo.newBuilder() private Builder() { } private Builder( com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; docString_ = ""; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.internal_static_stardoc_output_FunctionReturnInfo_descriptor; } @java.lang.Override public com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.FunctionReturnInfo getDefaultInstanceForType() { return com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.FunctionReturnInfo.getDefaultInstance(); } @java.lang.Override public com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.FunctionReturnInfo build() { com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.FunctionReturnInfo result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.FunctionReturnInfo buildPartial() { com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.FunctionReturnInfo result = new com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.FunctionReturnInfo(this); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartial0(com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.FunctionReturnInfo result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.docString_ = docString_; } } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.FunctionReturnInfo) { return mergeFrom((com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.FunctionReturnInfo)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.FunctionReturnInfo other) { if (other == com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.FunctionReturnInfo.getDefaultInstance()) return this; if (!other.getDocString().isEmpty()) { docString_ = other.docString_; bitField0_ |= 0x00000001; onChanged(); } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { return true; } @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 10: { docString_ = input.readStringRequireUtf8(); bitField0_ |= 0x00000001; break; } // case 10 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { done = true; // was an endgroup tag } break; } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.unwrapIOException(); } finally { onChanged(); } // finally return this; } private int bitField0_; private java.lang.Object docString_ = ""; /** *
       * The documented return value of the function (if specified in the function's
       * docstring).
       * 
* * string doc_string = 1; * @return The docString. */ public java.lang.String getDocString() { java.lang.Object ref = docString_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); docString_ = s; return s; } else { return (java.lang.String) ref; } } /** *
       * The documented return value of the function (if specified in the function's
       * docstring).
       * 
* * string doc_string = 1; * @return The bytes for docString. */ public com.google.protobuf.ByteString getDocStringBytes() { java.lang.Object ref = docString_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); docString_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
       * The documented return value of the function (if specified in the function's
       * docstring).
       * 
* * string doc_string = 1; * @param value The docString to set. * @return This builder for chaining. */ public Builder setDocString( java.lang.String value) { if (value == null) { throw new NullPointerException(); } docString_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** *
       * The documented return value of the function (if specified in the function's
       * docstring).
       * 
* * string doc_string = 1; * @return This builder for chaining. */ public Builder clearDocString() { docString_ = getDefaultInstance().getDocString(); bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } /** *
       * The documented return value of the function (if specified in the function's
       * docstring).
       * 
* * string doc_string = 1; * @param value The bytes for docString to set. * @return This builder for chaining. */ public Builder setDocStringBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); docString_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } // @@protoc_insertion_point(builder_scope:stardoc_output.FunctionReturnInfo) } // @@protoc_insertion_point(class_scope:stardoc_output.FunctionReturnInfo) private static final com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.FunctionReturnInfo DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.FunctionReturnInfo(); } public static com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.FunctionReturnInfo getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public FunctionReturnInfo parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { Builder builder = newBuilder(); try { builder.mergeFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(builder.buildPartial()); } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e) .setUnfinishedMessage(builder.buildPartial()); } return builder.buildPartial(); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override public com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.FunctionReturnInfo getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface FunctionDeprecationInfoOrBuilder extends // @@protoc_insertion_point(interface_extends:stardoc_output.FunctionDeprecationInfo) com.google.protobuf.MessageOrBuilder { /** *
     * The documented deprecation of the function (if specified in the function's
     * docstring).
     * 
* * string doc_string = 1; * @return The docString. */ java.lang.String getDocString(); /** *
     * The documented deprecation of the function (if specified in the function's
     * docstring).
     * 
* * string doc_string = 1; * @return The bytes for docString. */ com.google.protobuf.ByteString getDocStringBytes(); } /** * Protobuf type {@code stardoc_output.FunctionDeprecationInfo} */ public static final class FunctionDeprecationInfo extends com.google.protobuf.GeneratedMessage implements // @@protoc_insertion_point(message_implements:stardoc_output.FunctionDeprecationInfo) FunctionDeprecationInfoOrBuilder { private static final long serialVersionUID = 0L; static { com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, /* major= */ 4, /* minor= */ 28, /* patch= */ 3, /* suffix= */ "", FunctionDeprecationInfo.class.getName()); } // Use FunctionDeprecationInfo.newBuilder() to construct. private FunctionDeprecationInfo(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); } private FunctionDeprecationInfo() { docString_ = ""; } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.internal_static_stardoc_output_FunctionDeprecationInfo_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.internal_static_stardoc_output_FunctionDeprecationInfo_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.FunctionDeprecationInfo.class, com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.FunctionDeprecationInfo.Builder.class); } public static final int DOC_STRING_FIELD_NUMBER = 1; @SuppressWarnings("serial") private volatile java.lang.Object docString_ = ""; /** *
     * The documented deprecation of the function (if specified in the function's
     * docstring).
     * 
* * string doc_string = 1; * @return The docString. */ @java.lang.Override public java.lang.String getDocString() { java.lang.Object ref = docString_; 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(); docString_ = s; return s; } } /** *
     * The documented deprecation of the function (if specified in the function's
     * docstring).
     * 
* * string doc_string = 1; * @return The bytes for docString. */ @java.lang.Override public com.google.protobuf.ByteString getDocStringBytes() { java.lang.Object ref = docString_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); docString_ = 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 (!com.google.protobuf.GeneratedMessage.isStringEmpty(docString_)) { com.google.protobuf.GeneratedMessage.writeString(output, 1, docString_); } getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (!com.google.protobuf.GeneratedMessage.isStringEmpty(docString_)) { size += com.google.protobuf.GeneratedMessage.computeStringSize(1, docString_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.FunctionDeprecationInfo)) { return super.equals(obj); } com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.FunctionDeprecationInfo other = (com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.FunctionDeprecationInfo) obj; if (!getDocString() .equals(other.getDocString())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + DOC_STRING_FIELD_NUMBER; hash = (53 * hash) + getDocString().hashCode(); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.FunctionDeprecationInfo parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.FunctionDeprecationInfo 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.lib.starlarkdocextract.StardocOutputProtos.FunctionDeprecationInfo parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.FunctionDeprecationInfo 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.lib.starlarkdocextract.StardocOutputProtos.FunctionDeprecationInfo parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.FunctionDeprecationInfo parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.FunctionDeprecationInfo parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessage .parseWithIOException(PARSER, input); } public static com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.FunctionDeprecationInfo parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessage .parseWithIOException(PARSER, input, extensionRegistry); } public static com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.FunctionDeprecationInfo parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessage .parseDelimitedWithIOException(PARSER, input); } public static com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.FunctionDeprecationInfo parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessage .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.FunctionDeprecationInfo parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessage .parseWithIOException(PARSER, input); } public static com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.FunctionDeprecationInfo parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessage .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.FunctionDeprecationInfo prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } @java.lang.Override public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessage.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** * Protobuf type {@code stardoc_output.FunctionDeprecationInfo} */ public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder implements // @@protoc_insertion_point(builder_implements:stardoc_output.FunctionDeprecationInfo) com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.FunctionDeprecationInfoOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.internal_static_stardoc_output_FunctionDeprecationInfo_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.internal_static_stardoc_output_FunctionDeprecationInfo_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.FunctionDeprecationInfo.class, com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.FunctionDeprecationInfo.Builder.class); } // Construct using com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.FunctionDeprecationInfo.newBuilder() private Builder() { } private Builder( com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; docString_ = ""; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.internal_static_stardoc_output_FunctionDeprecationInfo_descriptor; } @java.lang.Override public com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.FunctionDeprecationInfo getDefaultInstanceForType() { return com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.FunctionDeprecationInfo.getDefaultInstance(); } @java.lang.Override public com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.FunctionDeprecationInfo build() { com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.FunctionDeprecationInfo result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.FunctionDeprecationInfo buildPartial() { com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.FunctionDeprecationInfo result = new com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.FunctionDeprecationInfo(this); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartial0(com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.FunctionDeprecationInfo result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.docString_ = docString_; } } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.FunctionDeprecationInfo) { return mergeFrom((com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.FunctionDeprecationInfo)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.FunctionDeprecationInfo other) { if (other == com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.FunctionDeprecationInfo.getDefaultInstance()) return this; if (!other.getDocString().isEmpty()) { docString_ = other.docString_; bitField0_ |= 0x00000001; onChanged(); } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { return true; } @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 10: { docString_ = input.readStringRequireUtf8(); bitField0_ |= 0x00000001; break; } // case 10 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { done = true; // was an endgroup tag } break; } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.unwrapIOException(); } finally { onChanged(); } // finally return this; } private int bitField0_; private java.lang.Object docString_ = ""; /** *
       * The documented deprecation of the function (if specified in the function's
       * docstring).
       * 
* * string doc_string = 1; * @return The docString. */ public java.lang.String getDocString() { java.lang.Object ref = docString_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); docString_ = s; return s; } else { return (java.lang.String) ref; } } /** *
       * The documented deprecation of the function (if specified in the function's
       * docstring).
       * 
* * string doc_string = 1; * @return The bytes for docString. */ public com.google.protobuf.ByteString getDocStringBytes() { java.lang.Object ref = docString_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); docString_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
       * The documented deprecation of the function (if specified in the function's
       * docstring).
       * 
* * string doc_string = 1; * @param value The docString to set. * @return This builder for chaining. */ public Builder setDocString( java.lang.String value) { if (value == null) { throw new NullPointerException(); } docString_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** *
       * The documented deprecation of the function (if specified in the function's
       * docstring).
       * 
* * string doc_string = 1; * @return This builder for chaining. */ public Builder clearDocString() { docString_ = getDefaultInstance().getDocString(); bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } /** *
       * The documented deprecation of the function (if specified in the function's
       * docstring).
       * 
* * string doc_string = 1; * @param value The bytes for docString to set. * @return This builder for chaining. */ public Builder setDocStringBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); docString_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } // @@protoc_insertion_point(builder_scope:stardoc_output.FunctionDeprecationInfo) } // @@protoc_insertion_point(class_scope:stardoc_output.FunctionDeprecationInfo) private static final com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.FunctionDeprecationInfo DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.FunctionDeprecationInfo(); } public static com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.FunctionDeprecationInfo getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public FunctionDeprecationInfo parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { Builder builder = newBuilder(); try { builder.mergeFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(builder.buildPartial()); } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e) .setUnfinishedMessage(builder.buildPartial()); } return builder.buildPartial(); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override public com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.FunctionDeprecationInfo getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface ProviderFieldInfoOrBuilder extends // @@protoc_insertion_point(interface_extends:stardoc_output.ProviderFieldInfo) com.google.protobuf.MessageOrBuilder { /** *
     * The name of the field.
     * 
* * string name = 1; * @return The name. */ java.lang.String getName(); /** *
     * The name of the field.
     * 
* * string name = 1; * @return The bytes for name. */ com.google.protobuf.ByteString getNameBytes(); /** *
     * The description of the provider.
     * 
* * string doc_string = 2; * @return The docString. */ java.lang.String getDocString(); /** *
     * The description of the provider.
     * 
* * string doc_string = 2; * @return The bytes for docString. */ com.google.protobuf.ByteString getDocStringBytes(); } /** *
   * Representation of a Starlark provider field definition, comprised of
   * the field name and provider description.
   * 
* * Protobuf type {@code stardoc_output.ProviderFieldInfo} */ public static final class ProviderFieldInfo extends com.google.protobuf.GeneratedMessage implements // @@protoc_insertion_point(message_implements:stardoc_output.ProviderFieldInfo) ProviderFieldInfoOrBuilder { private static final long serialVersionUID = 0L; static { com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, /* major= */ 4, /* minor= */ 28, /* patch= */ 3, /* suffix= */ "", ProviderFieldInfo.class.getName()); } // Use ProviderFieldInfo.newBuilder() to construct. private ProviderFieldInfo(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); } private ProviderFieldInfo() { name_ = ""; docString_ = ""; } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.internal_static_stardoc_output_ProviderFieldInfo_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.internal_static_stardoc_output_ProviderFieldInfo_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.ProviderFieldInfo.class, com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.ProviderFieldInfo.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; @SuppressWarnings("serial") private volatile java.lang.Object name_ = ""; /** *
     * The name of the field.
     * 
* * string name = 1; * @return The name. */ @java.lang.Override 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; } } /** *
     * The name of the field.
     * 
* * string name = 1; * @return The bytes for name. */ @java.lang.Override 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 DOC_STRING_FIELD_NUMBER = 2; @SuppressWarnings("serial") private volatile java.lang.Object docString_ = ""; /** *
     * The description of the provider.
     * 
* * string doc_string = 2; * @return The docString. */ @java.lang.Override public java.lang.String getDocString() { java.lang.Object ref = docString_; 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(); docString_ = s; return s; } } /** *
     * The description of the provider.
     * 
* * string doc_string = 2; * @return The bytes for docString. */ @java.lang.Override public com.google.protobuf.ByteString getDocStringBytes() { java.lang.Object ref = docString_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); docString_ = 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 (!com.google.protobuf.GeneratedMessage.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessage.writeString(output, 1, name_); } if (!com.google.protobuf.GeneratedMessage.isStringEmpty(docString_)) { com.google.protobuf.GeneratedMessage.writeString(output, 2, docString_); } getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (!com.google.protobuf.GeneratedMessage.isStringEmpty(name_)) { size += com.google.protobuf.GeneratedMessage.computeStringSize(1, name_); } if (!com.google.protobuf.GeneratedMessage.isStringEmpty(docString_)) { size += com.google.protobuf.GeneratedMessage.computeStringSize(2, docString_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.ProviderFieldInfo)) { return super.equals(obj); } com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.ProviderFieldInfo other = (com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.ProviderFieldInfo) obj; if (!getName() .equals(other.getName())) return false; if (!getDocString() .equals(other.getDocString())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + NAME_FIELD_NUMBER; hash = (53 * hash) + getName().hashCode(); hash = (37 * hash) + DOC_STRING_FIELD_NUMBER; hash = (53 * hash) + getDocString().hashCode(); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.ProviderFieldInfo parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.ProviderFieldInfo 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.lib.starlarkdocextract.StardocOutputProtos.ProviderFieldInfo parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.ProviderFieldInfo 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.lib.starlarkdocextract.StardocOutputProtos.ProviderFieldInfo parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.ProviderFieldInfo parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.ProviderFieldInfo parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessage .parseWithIOException(PARSER, input); } public static com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.ProviderFieldInfo parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessage .parseWithIOException(PARSER, input, extensionRegistry); } public static com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.ProviderFieldInfo parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessage .parseDelimitedWithIOException(PARSER, input); } public static com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.ProviderFieldInfo parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessage .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.ProviderFieldInfo parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessage .parseWithIOException(PARSER, input); } public static com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.ProviderFieldInfo parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessage .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.ProviderFieldInfo prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } @java.lang.Override public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessage.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** *
     * Representation of a Starlark provider field definition, comprised of
     * the field name and provider description.
     * 
* * Protobuf type {@code stardoc_output.ProviderFieldInfo} */ public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder implements // @@protoc_insertion_point(builder_implements:stardoc_output.ProviderFieldInfo) com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.ProviderFieldInfoOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.internal_static_stardoc_output_ProviderFieldInfo_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.internal_static_stardoc_output_ProviderFieldInfo_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.ProviderFieldInfo.class, com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.ProviderFieldInfo.Builder.class); } // Construct using com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.ProviderFieldInfo.newBuilder() private Builder() { } private Builder( com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; name_ = ""; docString_ = ""; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.internal_static_stardoc_output_ProviderFieldInfo_descriptor; } @java.lang.Override public com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.ProviderFieldInfo getDefaultInstanceForType() { return com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.ProviderFieldInfo.getDefaultInstance(); } @java.lang.Override public com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.ProviderFieldInfo build() { com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.ProviderFieldInfo result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.ProviderFieldInfo buildPartial() { com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.ProviderFieldInfo result = new com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.ProviderFieldInfo(this); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartial0(com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.ProviderFieldInfo result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.name_ = name_; } if (((from_bitField0_ & 0x00000002) != 0)) { result.docString_ = docString_; } } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.ProviderFieldInfo) { return mergeFrom((com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.ProviderFieldInfo)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.ProviderFieldInfo other) { if (other == com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.ProviderFieldInfo.getDefaultInstance()) return this; if (!other.getName().isEmpty()) { name_ = other.name_; bitField0_ |= 0x00000001; onChanged(); } if (!other.getDocString().isEmpty()) { docString_ = other.docString_; bitField0_ |= 0x00000002; onChanged(); } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { return true; } @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 10: { name_ = input.readStringRequireUtf8(); bitField0_ |= 0x00000001; break; } // case 10 case 18: { docString_ = input.readStringRequireUtf8(); bitField0_ |= 0x00000002; break; } // case 18 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { done = true; // was an endgroup tag } break; } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.unwrapIOException(); } finally { onChanged(); } // finally return this; } private int bitField0_; private java.lang.Object name_ = ""; /** *
       * The name of the field.
       * 
* * string name = 1; * @return The name. */ 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; } } /** *
       * The name of the field.
       * 
* * string name = 1; * @return The bytes for name. */ 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; } } /** *
       * The name of the field.
       * 
* * string name = 1; * @param value The name to set. * @return This builder for chaining. */ public Builder setName( java.lang.String value) { if (value == null) { throw new NullPointerException(); } name_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** *
       * The name of the field.
       * 
* * string name = 1; * @return This builder for chaining. */ public Builder clearName() { name_ = getDefaultInstance().getName(); bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } /** *
       * The name of the field.
       * 
* * string name = 1; * @param value The bytes for name to set. * @return This builder for chaining. */ public Builder setNameBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); name_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } private java.lang.Object docString_ = ""; /** *
       * The description of the provider.
       * 
* * string doc_string = 2; * @return The docString. */ public java.lang.String getDocString() { java.lang.Object ref = docString_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); docString_ = s; return s; } else { return (java.lang.String) ref; } } /** *
       * The description of the provider.
       * 
* * string doc_string = 2; * @return The bytes for docString. */ public com.google.protobuf.ByteString getDocStringBytes() { java.lang.Object ref = docString_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); docString_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
       * The description of the provider.
       * 
* * string doc_string = 2; * @param value The docString to set. * @return This builder for chaining. */ public Builder setDocString( java.lang.String value) { if (value == null) { throw new NullPointerException(); } docString_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** *
       * The description of the provider.
       * 
* * string doc_string = 2; * @return This builder for chaining. */ public Builder clearDocString() { docString_ = getDefaultInstance().getDocString(); bitField0_ = (bitField0_ & ~0x00000002); onChanged(); return this; } /** *
       * The description of the provider.
       * 
* * string doc_string = 2; * @param value The bytes for docString to set. * @return This builder for chaining. */ public Builder setDocStringBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); docString_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } // @@protoc_insertion_point(builder_scope:stardoc_output.ProviderFieldInfo) } // @@protoc_insertion_point(class_scope:stardoc_output.ProviderFieldInfo) private static final com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.ProviderFieldInfo DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.ProviderFieldInfo(); } public static com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.ProviderFieldInfo getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public ProviderFieldInfo parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { Builder builder = newBuilder(); try { builder.mergeFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(builder.buildPartial()); } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e) .setUnfinishedMessage(builder.buildPartial()); } return builder.buildPartial(); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override public com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.ProviderFieldInfo getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface ProviderInfoOrBuilder extends // @@protoc_insertion_point(interface_extends:stardoc_output.ProviderInfo) com.google.protobuf.MessageOrBuilder { /** *
     * The name under which the provider is made accessible to a user of this
     * module, including any structs it is nested in, for example "foo.FooInfo".
     * 
* * string provider_name = 1; * @return The providerName. */ java.lang.String getProviderName(); /** *
     * The name under which the provider is made accessible to a user of this
     * module, including any structs it is nested in, for example "foo.FooInfo".
     * 
* * string provider_name = 1; * @return The bytes for providerName. */ com.google.protobuf.ByteString getProviderNameBytes(); /** *
     * The description of the provider.
     * 
* * string doc_string = 2; * @return The docString. */ java.lang.String getDocString(); /** *
     * The description of the provider.
     * 
* * string doc_string = 2; * @return The bytes for docString. */ com.google.protobuf.ByteString getDocStringBytes(); /** *
     * The fields of the provider.
     * 
* * repeated .stardoc_output.ProviderFieldInfo field_info = 3; */ java.util.List getFieldInfoList(); /** *
     * The fields of the provider.
     * 
* * repeated .stardoc_output.ProviderFieldInfo field_info = 3; */ com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.ProviderFieldInfo getFieldInfo(int index); /** *
     * The fields of the provider.
     * 
* * repeated .stardoc_output.ProviderFieldInfo field_info = 3; */ int getFieldInfoCount(); /** *
     * The fields of the provider.
     * 
* * repeated .stardoc_output.ProviderFieldInfo field_info = 3; */ java.util.List getFieldInfoOrBuilderList(); /** *
     * The fields of the provider.
     * 
* * repeated .stardoc_output.ProviderFieldInfo field_info = 3; */ com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.ProviderFieldInfoOrBuilder getFieldInfoOrBuilder( int index); /** *
     * The module where and the name under which the provider was originally
     * declared.
     * 
* * .stardoc_output.OriginKey origin_key = 4; * @return Whether the originKey field is set. */ boolean hasOriginKey(); /** *
     * The module where and the name under which the provider was originally
     * declared.
     * 
* * .stardoc_output.OriginKey origin_key = 4; * @return The originKey. */ com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.OriginKey getOriginKey(); /** *
     * The module where and the name under which the provider was originally
     * declared.
     * 
* * .stardoc_output.OriginKey origin_key = 4; */ com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.OriginKeyOrBuilder getOriginKeyOrBuilder(); /** *
     * The provider's init callback.
     * 
* * .stardoc_output.StarlarkFunctionInfo init = 5; * @return Whether the init field is set. */ boolean hasInit(); /** *
     * The provider's init callback.
     * 
* * .stardoc_output.StarlarkFunctionInfo init = 5; * @return The init. */ com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.StarlarkFunctionInfo getInit(); /** *
     * The provider's init callback.
     * 
* * .stardoc_output.StarlarkFunctionInfo init = 5; */ com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.StarlarkFunctionInfoOrBuilder getInitOrBuilder(); } /** *
   * Representation of a Starlark provider definition.
   * 
* * Protobuf type {@code stardoc_output.ProviderInfo} */ public static final class ProviderInfo extends com.google.protobuf.GeneratedMessage implements // @@protoc_insertion_point(message_implements:stardoc_output.ProviderInfo) ProviderInfoOrBuilder { private static final long serialVersionUID = 0L; static { com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, /* major= */ 4, /* minor= */ 28, /* patch= */ 3, /* suffix= */ "", ProviderInfo.class.getName()); } // Use ProviderInfo.newBuilder() to construct. private ProviderInfo(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); } private ProviderInfo() { providerName_ = ""; docString_ = ""; fieldInfo_ = java.util.Collections.emptyList(); } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.internal_static_stardoc_output_ProviderInfo_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.internal_static_stardoc_output_ProviderInfo_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.ProviderInfo.class, com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.ProviderInfo.Builder.class); } private int bitField0_; public static final int PROVIDER_NAME_FIELD_NUMBER = 1; @SuppressWarnings("serial") private volatile java.lang.Object providerName_ = ""; /** *
     * The name under which the provider is made accessible to a user of this
     * module, including any structs it is nested in, for example "foo.FooInfo".
     * 
* * string provider_name = 1; * @return The providerName. */ @java.lang.Override public java.lang.String getProviderName() { java.lang.Object ref = providerName_; 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(); providerName_ = s; return s; } } /** *
     * The name under which the provider is made accessible to a user of this
     * module, including any structs it is nested in, for example "foo.FooInfo".
     * 
* * string provider_name = 1; * @return The bytes for providerName. */ @java.lang.Override public com.google.protobuf.ByteString getProviderNameBytes() { java.lang.Object ref = providerName_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); providerName_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int DOC_STRING_FIELD_NUMBER = 2; @SuppressWarnings("serial") private volatile java.lang.Object docString_ = ""; /** *
     * The description of the provider.
     * 
* * string doc_string = 2; * @return The docString. */ @java.lang.Override public java.lang.String getDocString() { java.lang.Object ref = docString_; 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(); docString_ = s; return s; } } /** *
     * The description of the provider.
     * 
* * string doc_string = 2; * @return The bytes for docString. */ @java.lang.Override public com.google.protobuf.ByteString getDocStringBytes() { java.lang.Object ref = docString_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); docString_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int FIELD_INFO_FIELD_NUMBER = 3; @SuppressWarnings("serial") private java.util.List fieldInfo_; /** *
     * The fields of the provider.
     * 
* * repeated .stardoc_output.ProviderFieldInfo field_info = 3; */ @java.lang.Override public java.util.List getFieldInfoList() { return fieldInfo_; } /** *
     * The fields of the provider.
     * 
* * repeated .stardoc_output.ProviderFieldInfo field_info = 3; */ @java.lang.Override public java.util.List getFieldInfoOrBuilderList() { return fieldInfo_; } /** *
     * The fields of the provider.
     * 
* * repeated .stardoc_output.ProviderFieldInfo field_info = 3; */ @java.lang.Override public int getFieldInfoCount() { return fieldInfo_.size(); } /** *
     * The fields of the provider.
     * 
* * repeated .stardoc_output.ProviderFieldInfo field_info = 3; */ @java.lang.Override public com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.ProviderFieldInfo getFieldInfo(int index) { return fieldInfo_.get(index); } /** *
     * The fields of the provider.
     * 
* * repeated .stardoc_output.ProviderFieldInfo field_info = 3; */ @java.lang.Override public com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.ProviderFieldInfoOrBuilder getFieldInfoOrBuilder( int index) { return fieldInfo_.get(index); } public static final int ORIGIN_KEY_FIELD_NUMBER = 4; private com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.OriginKey originKey_; /** *
     * The module where and the name under which the provider was originally
     * declared.
     * 
* * .stardoc_output.OriginKey origin_key = 4; * @return Whether the originKey field is set. */ @java.lang.Override public boolean hasOriginKey() { return ((bitField0_ & 0x00000001) != 0); } /** *
     * The module where and the name under which the provider was originally
     * declared.
     * 
* * .stardoc_output.OriginKey origin_key = 4; * @return The originKey. */ @java.lang.Override public com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.OriginKey getOriginKey() { return originKey_ == null ? com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.OriginKey.getDefaultInstance() : originKey_; } /** *
     * The module where and the name under which the provider was originally
     * declared.
     * 
* * .stardoc_output.OriginKey origin_key = 4; */ @java.lang.Override public com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.OriginKeyOrBuilder getOriginKeyOrBuilder() { return originKey_ == null ? com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.OriginKey.getDefaultInstance() : originKey_; } public static final int INIT_FIELD_NUMBER = 5; private com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.StarlarkFunctionInfo init_; /** *
     * The provider's init callback.
     * 
* * .stardoc_output.StarlarkFunctionInfo init = 5; * @return Whether the init field is set. */ @java.lang.Override public boolean hasInit() { return ((bitField0_ & 0x00000002) != 0); } /** *
     * The provider's init callback.
     * 
* * .stardoc_output.StarlarkFunctionInfo init = 5; * @return The init. */ @java.lang.Override public com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.StarlarkFunctionInfo getInit() { return init_ == null ? com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.StarlarkFunctionInfo.getDefaultInstance() : init_; } /** *
     * The provider's init callback.
     * 
* * .stardoc_output.StarlarkFunctionInfo init = 5; */ @java.lang.Override public com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.StarlarkFunctionInfoOrBuilder getInitOrBuilder() { return init_ == null ? com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.StarlarkFunctionInfo.getDefaultInstance() : init_; } 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 (!com.google.protobuf.GeneratedMessage.isStringEmpty(providerName_)) { com.google.protobuf.GeneratedMessage.writeString(output, 1, providerName_); } if (!com.google.protobuf.GeneratedMessage.isStringEmpty(docString_)) { com.google.protobuf.GeneratedMessage.writeString(output, 2, docString_); } for (int i = 0; i < fieldInfo_.size(); i++) { output.writeMessage(3, fieldInfo_.get(i)); } if (((bitField0_ & 0x00000001) != 0)) { output.writeMessage(4, getOriginKey()); } if (((bitField0_ & 0x00000002) != 0)) { output.writeMessage(5, getInit()); } getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (!com.google.protobuf.GeneratedMessage.isStringEmpty(providerName_)) { size += com.google.protobuf.GeneratedMessage.computeStringSize(1, providerName_); } if (!com.google.protobuf.GeneratedMessage.isStringEmpty(docString_)) { size += com.google.protobuf.GeneratedMessage.computeStringSize(2, docString_); } for (int i = 0; i < fieldInfo_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(3, fieldInfo_.get(i)); } if (((bitField0_ & 0x00000001) != 0)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(4, getOriginKey()); } if (((bitField0_ & 0x00000002) != 0)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(5, getInit()); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.ProviderInfo)) { return super.equals(obj); } com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.ProviderInfo other = (com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.ProviderInfo) obj; if (!getProviderName() .equals(other.getProviderName())) return false; if (!getDocString() .equals(other.getDocString())) return false; if (!getFieldInfoList() .equals(other.getFieldInfoList())) return false; if (hasOriginKey() != other.hasOriginKey()) return false; if (hasOriginKey()) { if (!getOriginKey() .equals(other.getOriginKey())) return false; } if (hasInit() != other.hasInit()) return false; if (hasInit()) { if (!getInit() .equals(other.getInit())) return false; } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + PROVIDER_NAME_FIELD_NUMBER; hash = (53 * hash) + getProviderName().hashCode(); hash = (37 * hash) + DOC_STRING_FIELD_NUMBER; hash = (53 * hash) + getDocString().hashCode(); if (getFieldInfoCount() > 0) { hash = (37 * hash) + FIELD_INFO_FIELD_NUMBER; hash = (53 * hash) + getFieldInfoList().hashCode(); } if (hasOriginKey()) { hash = (37 * hash) + ORIGIN_KEY_FIELD_NUMBER; hash = (53 * hash) + getOriginKey().hashCode(); } if (hasInit()) { hash = (37 * hash) + INIT_FIELD_NUMBER; hash = (53 * hash) + getInit().hashCode(); } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.ProviderInfo parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.ProviderInfo 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.lib.starlarkdocextract.StardocOutputProtos.ProviderInfo parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.ProviderInfo 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.lib.starlarkdocextract.StardocOutputProtos.ProviderInfo parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.ProviderInfo parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.ProviderInfo parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessage .parseWithIOException(PARSER, input); } public static com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.ProviderInfo parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessage .parseWithIOException(PARSER, input, extensionRegistry); } public static com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.ProviderInfo parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessage .parseDelimitedWithIOException(PARSER, input); } public static com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.ProviderInfo parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessage .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.ProviderInfo parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessage .parseWithIOException(PARSER, input); } public static com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.ProviderInfo parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessage .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.ProviderInfo prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } @java.lang.Override public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessage.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** *
     * Representation of a Starlark provider definition.
     * 
* * Protobuf type {@code stardoc_output.ProviderInfo} */ public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder implements // @@protoc_insertion_point(builder_implements:stardoc_output.ProviderInfo) com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.ProviderInfoOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.internal_static_stardoc_output_ProviderInfo_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.internal_static_stardoc_output_ProviderInfo_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.ProviderInfo.class, com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.ProviderInfo.Builder.class); } // Construct using com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.ProviderInfo.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessage .alwaysUseFieldBuilders) { getFieldInfoFieldBuilder(); getOriginKeyFieldBuilder(); getInitFieldBuilder(); } } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; providerName_ = ""; docString_ = ""; if (fieldInfoBuilder_ == null) { fieldInfo_ = java.util.Collections.emptyList(); } else { fieldInfo_ = null; fieldInfoBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000004); originKey_ = null; if (originKeyBuilder_ != null) { originKeyBuilder_.dispose(); originKeyBuilder_ = null; } init_ = null; if (initBuilder_ != null) { initBuilder_.dispose(); initBuilder_ = null; } return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.internal_static_stardoc_output_ProviderInfo_descriptor; } @java.lang.Override public com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.ProviderInfo getDefaultInstanceForType() { return com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.ProviderInfo.getDefaultInstance(); } @java.lang.Override public com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.ProviderInfo build() { com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.ProviderInfo result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.ProviderInfo buildPartial() { com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.ProviderInfo result = new com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.ProviderInfo(this); buildPartialRepeatedFields(result); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartialRepeatedFields(com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.ProviderInfo result) { if (fieldInfoBuilder_ == null) { if (((bitField0_ & 0x00000004) != 0)) { fieldInfo_ = java.util.Collections.unmodifiableList(fieldInfo_); bitField0_ = (bitField0_ & ~0x00000004); } result.fieldInfo_ = fieldInfo_; } else { result.fieldInfo_ = fieldInfoBuilder_.build(); } } private void buildPartial0(com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.ProviderInfo result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.providerName_ = providerName_; } if (((from_bitField0_ & 0x00000002) != 0)) { result.docString_ = docString_; } int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000008) != 0)) { result.originKey_ = originKeyBuilder_ == null ? originKey_ : originKeyBuilder_.build(); to_bitField0_ |= 0x00000001; } if (((from_bitField0_ & 0x00000010) != 0)) { result.init_ = initBuilder_ == null ? init_ : initBuilder_.build(); to_bitField0_ |= 0x00000002; } result.bitField0_ |= to_bitField0_; } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.ProviderInfo) { return mergeFrom((com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.ProviderInfo)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.ProviderInfo other) { if (other == com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.ProviderInfo.getDefaultInstance()) return this; if (!other.getProviderName().isEmpty()) { providerName_ = other.providerName_; bitField0_ |= 0x00000001; onChanged(); } if (!other.getDocString().isEmpty()) { docString_ = other.docString_; bitField0_ |= 0x00000002; onChanged(); } if (fieldInfoBuilder_ == null) { if (!other.fieldInfo_.isEmpty()) { if (fieldInfo_.isEmpty()) { fieldInfo_ = other.fieldInfo_; bitField0_ = (bitField0_ & ~0x00000004); } else { ensureFieldInfoIsMutable(); fieldInfo_.addAll(other.fieldInfo_); } onChanged(); } } else { if (!other.fieldInfo_.isEmpty()) { if (fieldInfoBuilder_.isEmpty()) { fieldInfoBuilder_.dispose(); fieldInfoBuilder_ = null; fieldInfo_ = other.fieldInfo_; bitField0_ = (bitField0_ & ~0x00000004); fieldInfoBuilder_ = com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ? getFieldInfoFieldBuilder() : null; } else { fieldInfoBuilder_.addAllMessages(other.fieldInfo_); } } } if (other.hasOriginKey()) { mergeOriginKey(other.getOriginKey()); } if (other.hasInit()) { mergeInit(other.getInit()); } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { return true; } @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 10: { providerName_ = input.readStringRequireUtf8(); bitField0_ |= 0x00000001; break; } // case 10 case 18: { docString_ = input.readStringRequireUtf8(); bitField0_ |= 0x00000002; break; } // case 18 case 26: { com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.ProviderFieldInfo m = input.readMessage( com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.ProviderFieldInfo.parser(), extensionRegistry); if (fieldInfoBuilder_ == null) { ensureFieldInfoIsMutable(); fieldInfo_.add(m); } else { fieldInfoBuilder_.addMessage(m); } break; } // case 26 case 34: { input.readMessage( getOriginKeyFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00000008; break; } // case 34 case 42: { input.readMessage( getInitFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00000010; break; } // case 42 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { done = true; // was an endgroup tag } break; } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.unwrapIOException(); } finally { onChanged(); } // finally return this; } private int bitField0_; private java.lang.Object providerName_ = ""; /** *
       * The name under which the provider is made accessible to a user of this
       * module, including any structs it is nested in, for example "foo.FooInfo".
       * 
* * string provider_name = 1; * @return The providerName. */ public java.lang.String getProviderName() { java.lang.Object ref = providerName_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); providerName_ = s; return s; } else { return (java.lang.String) ref; } } /** *
       * The name under which the provider is made accessible to a user of this
       * module, including any structs it is nested in, for example "foo.FooInfo".
       * 
* * string provider_name = 1; * @return The bytes for providerName. */ public com.google.protobuf.ByteString getProviderNameBytes() { java.lang.Object ref = providerName_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); providerName_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
       * The name under which the provider is made accessible to a user of this
       * module, including any structs it is nested in, for example "foo.FooInfo".
       * 
* * string provider_name = 1; * @param value The providerName to set. * @return This builder for chaining. */ public Builder setProviderName( java.lang.String value) { if (value == null) { throw new NullPointerException(); } providerName_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** *
       * The name under which the provider is made accessible to a user of this
       * module, including any structs it is nested in, for example "foo.FooInfo".
       * 
* * string provider_name = 1; * @return This builder for chaining. */ public Builder clearProviderName() { providerName_ = getDefaultInstance().getProviderName(); bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } /** *
       * The name under which the provider is made accessible to a user of this
       * module, including any structs it is nested in, for example "foo.FooInfo".
       * 
* * string provider_name = 1; * @param value The bytes for providerName to set. * @return This builder for chaining. */ public Builder setProviderNameBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); providerName_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } private java.lang.Object docString_ = ""; /** *
       * The description of the provider.
       * 
* * string doc_string = 2; * @return The docString. */ public java.lang.String getDocString() { java.lang.Object ref = docString_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); docString_ = s; return s; } else { return (java.lang.String) ref; } } /** *
       * The description of the provider.
       * 
* * string doc_string = 2; * @return The bytes for docString. */ public com.google.protobuf.ByteString getDocStringBytes() { java.lang.Object ref = docString_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); docString_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
       * The description of the provider.
       * 
* * string doc_string = 2; * @param value The docString to set. * @return This builder for chaining. */ public Builder setDocString( java.lang.String value) { if (value == null) { throw new NullPointerException(); } docString_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** *
       * The description of the provider.
       * 
* * string doc_string = 2; * @return This builder for chaining. */ public Builder clearDocString() { docString_ = getDefaultInstance().getDocString(); bitField0_ = (bitField0_ & ~0x00000002); onChanged(); return this; } /** *
       * The description of the provider.
       * 
* * string doc_string = 2; * @param value The bytes for docString to set. * @return This builder for chaining. */ public Builder setDocStringBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); docString_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } private java.util.List fieldInfo_ = java.util.Collections.emptyList(); private void ensureFieldInfoIsMutable() { if (!((bitField0_ & 0x00000004) != 0)) { fieldInfo_ = new java.util.ArrayList(fieldInfo_); bitField0_ |= 0x00000004; } } private com.google.protobuf.RepeatedFieldBuilder< com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.ProviderFieldInfo, com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.ProviderFieldInfo.Builder, com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.ProviderFieldInfoOrBuilder> fieldInfoBuilder_; /** *
       * The fields of the provider.
       * 
* * repeated .stardoc_output.ProviderFieldInfo field_info = 3; */ public java.util.List getFieldInfoList() { if (fieldInfoBuilder_ == null) { return java.util.Collections.unmodifiableList(fieldInfo_); } else { return fieldInfoBuilder_.getMessageList(); } } /** *
       * The fields of the provider.
       * 
* * repeated .stardoc_output.ProviderFieldInfo field_info = 3; */ public int getFieldInfoCount() { if (fieldInfoBuilder_ == null) { return fieldInfo_.size(); } else { return fieldInfoBuilder_.getCount(); } } /** *
       * The fields of the provider.
       * 
* * repeated .stardoc_output.ProviderFieldInfo field_info = 3; */ public com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.ProviderFieldInfo getFieldInfo(int index) { if (fieldInfoBuilder_ == null) { return fieldInfo_.get(index); } else { return fieldInfoBuilder_.getMessage(index); } } /** *
       * The fields of the provider.
       * 
* * repeated .stardoc_output.ProviderFieldInfo field_info = 3; */ public Builder setFieldInfo( int index, com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.ProviderFieldInfo value) { if (fieldInfoBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureFieldInfoIsMutable(); fieldInfo_.set(index, value); onChanged(); } else { fieldInfoBuilder_.setMessage(index, value); } return this; } /** *
       * The fields of the provider.
       * 
* * repeated .stardoc_output.ProviderFieldInfo field_info = 3; */ public Builder setFieldInfo( int index, com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.ProviderFieldInfo.Builder builderForValue) { if (fieldInfoBuilder_ == null) { ensureFieldInfoIsMutable(); fieldInfo_.set(index, builderForValue.build()); onChanged(); } else { fieldInfoBuilder_.setMessage(index, builderForValue.build()); } return this; } /** *
       * The fields of the provider.
       * 
* * repeated .stardoc_output.ProviderFieldInfo field_info = 3; */ public Builder addFieldInfo(com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.ProviderFieldInfo value) { if (fieldInfoBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureFieldInfoIsMutable(); fieldInfo_.add(value); onChanged(); } else { fieldInfoBuilder_.addMessage(value); } return this; } /** *
       * The fields of the provider.
       * 
* * repeated .stardoc_output.ProviderFieldInfo field_info = 3; */ public Builder addFieldInfo( int index, com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.ProviderFieldInfo value) { if (fieldInfoBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureFieldInfoIsMutable(); fieldInfo_.add(index, value); onChanged(); } else { fieldInfoBuilder_.addMessage(index, value); } return this; } /** *
       * The fields of the provider.
       * 
* * repeated .stardoc_output.ProviderFieldInfo field_info = 3; */ public Builder addFieldInfo( com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.ProviderFieldInfo.Builder builderForValue) { if (fieldInfoBuilder_ == null) { ensureFieldInfoIsMutable(); fieldInfo_.add(builderForValue.build()); onChanged(); } else { fieldInfoBuilder_.addMessage(builderForValue.build()); } return this; } /** *
       * The fields of the provider.
       * 
* * repeated .stardoc_output.ProviderFieldInfo field_info = 3; */ public Builder addFieldInfo( int index, com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.ProviderFieldInfo.Builder builderForValue) { if (fieldInfoBuilder_ == null) { ensureFieldInfoIsMutable(); fieldInfo_.add(index, builderForValue.build()); onChanged(); } else { fieldInfoBuilder_.addMessage(index, builderForValue.build()); } return this; } /** *
       * The fields of the provider.
       * 
* * repeated .stardoc_output.ProviderFieldInfo field_info = 3; */ public Builder addAllFieldInfo( java.lang.Iterable values) { if (fieldInfoBuilder_ == null) { ensureFieldInfoIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, fieldInfo_); onChanged(); } else { fieldInfoBuilder_.addAllMessages(values); } return this; } /** *
       * The fields of the provider.
       * 
* * repeated .stardoc_output.ProviderFieldInfo field_info = 3; */ public Builder clearFieldInfo() { if (fieldInfoBuilder_ == null) { fieldInfo_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000004); onChanged(); } else { fieldInfoBuilder_.clear(); } return this; } /** *
       * The fields of the provider.
       * 
* * repeated .stardoc_output.ProviderFieldInfo field_info = 3; */ public Builder removeFieldInfo(int index) { if (fieldInfoBuilder_ == null) { ensureFieldInfoIsMutable(); fieldInfo_.remove(index); onChanged(); } else { fieldInfoBuilder_.remove(index); } return this; } /** *
       * The fields of the provider.
       * 
* * repeated .stardoc_output.ProviderFieldInfo field_info = 3; */ public com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.ProviderFieldInfo.Builder getFieldInfoBuilder( int index) { return getFieldInfoFieldBuilder().getBuilder(index); } /** *
       * The fields of the provider.
       * 
* * repeated .stardoc_output.ProviderFieldInfo field_info = 3; */ public com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.ProviderFieldInfoOrBuilder getFieldInfoOrBuilder( int index) { if (fieldInfoBuilder_ == null) { return fieldInfo_.get(index); } else { return fieldInfoBuilder_.getMessageOrBuilder(index); } } /** *
       * The fields of the provider.
       * 
* * repeated .stardoc_output.ProviderFieldInfo field_info = 3; */ public java.util.List getFieldInfoOrBuilderList() { if (fieldInfoBuilder_ != null) { return fieldInfoBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(fieldInfo_); } } /** *
       * The fields of the provider.
       * 
* * repeated .stardoc_output.ProviderFieldInfo field_info = 3; */ public com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.ProviderFieldInfo.Builder addFieldInfoBuilder() { return getFieldInfoFieldBuilder().addBuilder( com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.ProviderFieldInfo.getDefaultInstance()); } /** *
       * The fields of the provider.
       * 
* * repeated .stardoc_output.ProviderFieldInfo field_info = 3; */ public com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.ProviderFieldInfo.Builder addFieldInfoBuilder( int index) { return getFieldInfoFieldBuilder().addBuilder( index, com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.ProviderFieldInfo.getDefaultInstance()); } /** *
       * The fields of the provider.
       * 
* * repeated .stardoc_output.ProviderFieldInfo field_info = 3; */ public java.util.List getFieldInfoBuilderList() { return getFieldInfoFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilder< com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.ProviderFieldInfo, com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.ProviderFieldInfo.Builder, com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.ProviderFieldInfoOrBuilder> getFieldInfoFieldBuilder() { if (fieldInfoBuilder_ == null) { fieldInfoBuilder_ = new com.google.protobuf.RepeatedFieldBuilder< com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.ProviderFieldInfo, com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.ProviderFieldInfo.Builder, com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.ProviderFieldInfoOrBuilder>( fieldInfo_, ((bitField0_ & 0x00000004) != 0), getParentForChildren(), isClean()); fieldInfo_ = null; } return fieldInfoBuilder_; } private com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.OriginKey originKey_; private com.google.protobuf.SingleFieldBuilder< com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.OriginKey, com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.OriginKey.Builder, com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.OriginKeyOrBuilder> originKeyBuilder_; /** *
       * The module where and the name under which the provider was originally
       * declared.
       * 
* * .stardoc_output.OriginKey origin_key = 4; * @return Whether the originKey field is set. */ public boolean hasOriginKey() { return ((bitField0_ & 0x00000008) != 0); } /** *
       * The module where and the name under which the provider was originally
       * declared.
       * 
* * .stardoc_output.OriginKey origin_key = 4; * @return The originKey. */ public com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.OriginKey getOriginKey() { if (originKeyBuilder_ == null) { return originKey_ == null ? com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.OriginKey.getDefaultInstance() : originKey_; } else { return originKeyBuilder_.getMessage(); } } /** *
       * The module where and the name under which the provider was originally
       * declared.
       * 
* * .stardoc_output.OriginKey origin_key = 4; */ public Builder setOriginKey(com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.OriginKey value) { if (originKeyBuilder_ == null) { if (value == null) { throw new NullPointerException(); } originKey_ = value; } else { originKeyBuilder_.setMessage(value); } bitField0_ |= 0x00000008; onChanged(); return this; } /** *
       * The module where and the name under which the provider was originally
       * declared.
       * 
* * .stardoc_output.OriginKey origin_key = 4; */ public Builder setOriginKey( com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.OriginKey.Builder builderForValue) { if (originKeyBuilder_ == null) { originKey_ = builderForValue.build(); } else { originKeyBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000008; onChanged(); return this; } /** *
       * The module where and the name under which the provider was originally
       * declared.
       * 
* * .stardoc_output.OriginKey origin_key = 4; */ public Builder mergeOriginKey(com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.OriginKey value) { if (originKeyBuilder_ == null) { if (((bitField0_ & 0x00000008) != 0) && originKey_ != null && originKey_ != com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.OriginKey.getDefaultInstance()) { getOriginKeyBuilder().mergeFrom(value); } else { originKey_ = value; } } else { originKeyBuilder_.mergeFrom(value); } if (originKey_ != null) { bitField0_ |= 0x00000008; onChanged(); } return this; } /** *
       * The module where and the name under which the provider was originally
       * declared.
       * 
* * .stardoc_output.OriginKey origin_key = 4; */ public Builder clearOriginKey() { bitField0_ = (bitField0_ & ~0x00000008); originKey_ = null; if (originKeyBuilder_ != null) { originKeyBuilder_.dispose(); originKeyBuilder_ = null; } onChanged(); return this; } /** *
       * The module where and the name under which the provider was originally
       * declared.
       * 
* * .stardoc_output.OriginKey origin_key = 4; */ public com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.OriginKey.Builder getOriginKeyBuilder() { bitField0_ |= 0x00000008; onChanged(); return getOriginKeyFieldBuilder().getBuilder(); } /** *
       * The module where and the name under which the provider was originally
       * declared.
       * 
* * .stardoc_output.OriginKey origin_key = 4; */ public com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.OriginKeyOrBuilder getOriginKeyOrBuilder() { if (originKeyBuilder_ != null) { return originKeyBuilder_.getMessageOrBuilder(); } else { return originKey_ == null ? com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.OriginKey.getDefaultInstance() : originKey_; } } /** *
       * The module where and the name under which the provider was originally
       * declared.
       * 
* * .stardoc_output.OriginKey origin_key = 4; */ private com.google.protobuf.SingleFieldBuilder< com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.OriginKey, com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.OriginKey.Builder, com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.OriginKeyOrBuilder> getOriginKeyFieldBuilder() { if (originKeyBuilder_ == null) { originKeyBuilder_ = new com.google.protobuf.SingleFieldBuilder< com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.OriginKey, com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.OriginKey.Builder, com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.OriginKeyOrBuilder>( getOriginKey(), getParentForChildren(), isClean()); originKey_ = null; } return originKeyBuilder_; } private com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.StarlarkFunctionInfo init_; private com.google.protobuf.SingleFieldBuilder< com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.StarlarkFunctionInfo, com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.StarlarkFunctionInfo.Builder, com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.StarlarkFunctionInfoOrBuilder> initBuilder_; /** *
       * The provider's init callback.
       * 
* * .stardoc_output.StarlarkFunctionInfo init = 5; * @return Whether the init field is set. */ public boolean hasInit() { return ((bitField0_ & 0x00000010) != 0); } /** *
       * The provider's init callback.
       * 
* * .stardoc_output.StarlarkFunctionInfo init = 5; * @return The init. */ public com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.StarlarkFunctionInfo getInit() { if (initBuilder_ == null) { return init_ == null ? com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.StarlarkFunctionInfo.getDefaultInstance() : init_; } else { return initBuilder_.getMessage(); } } /** *
       * The provider's init callback.
       * 
* * .stardoc_output.StarlarkFunctionInfo init = 5; */ public Builder setInit(com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.StarlarkFunctionInfo value) { if (initBuilder_ == null) { if (value == null) { throw new NullPointerException(); } init_ = value; } else { initBuilder_.setMessage(value); } bitField0_ |= 0x00000010; onChanged(); return this; } /** *
       * The provider's init callback.
       * 
* * .stardoc_output.StarlarkFunctionInfo init = 5; */ public Builder setInit( com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.StarlarkFunctionInfo.Builder builderForValue) { if (initBuilder_ == null) { init_ = builderForValue.build(); } else { initBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000010; onChanged(); return this; } /** *
       * The provider's init callback.
       * 
* * .stardoc_output.StarlarkFunctionInfo init = 5; */ public Builder mergeInit(com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.StarlarkFunctionInfo value) { if (initBuilder_ == null) { if (((bitField0_ & 0x00000010) != 0) && init_ != null && init_ != com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.StarlarkFunctionInfo.getDefaultInstance()) { getInitBuilder().mergeFrom(value); } else { init_ = value; } } else { initBuilder_.mergeFrom(value); } if (init_ != null) { bitField0_ |= 0x00000010; onChanged(); } return this; } /** *
       * The provider's init callback.
       * 
* * .stardoc_output.StarlarkFunctionInfo init = 5; */ public Builder clearInit() { bitField0_ = (bitField0_ & ~0x00000010); init_ = null; if (initBuilder_ != null) { initBuilder_.dispose(); initBuilder_ = null; } onChanged(); return this; } /** *
       * The provider's init callback.
       * 
* * .stardoc_output.StarlarkFunctionInfo init = 5; */ public com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.StarlarkFunctionInfo.Builder getInitBuilder() { bitField0_ |= 0x00000010; onChanged(); return getInitFieldBuilder().getBuilder(); } /** *
       * The provider's init callback.
       * 
* * .stardoc_output.StarlarkFunctionInfo init = 5; */ public com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.StarlarkFunctionInfoOrBuilder getInitOrBuilder() { if (initBuilder_ != null) { return initBuilder_.getMessageOrBuilder(); } else { return init_ == null ? com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.StarlarkFunctionInfo.getDefaultInstance() : init_; } } /** *
       * The provider's init callback.
       * 
* * .stardoc_output.StarlarkFunctionInfo init = 5; */ private com.google.protobuf.SingleFieldBuilder< com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.StarlarkFunctionInfo, com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.StarlarkFunctionInfo.Builder, com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.StarlarkFunctionInfoOrBuilder> getInitFieldBuilder() { if (initBuilder_ == null) { initBuilder_ = new com.google.protobuf.SingleFieldBuilder< com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.StarlarkFunctionInfo, com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.StarlarkFunctionInfo.Builder, com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.StarlarkFunctionInfoOrBuilder>( getInit(), getParentForChildren(), isClean()); init_ = null; } return initBuilder_; } // @@protoc_insertion_point(builder_scope:stardoc_output.ProviderInfo) } // @@protoc_insertion_point(class_scope:stardoc_output.ProviderInfo) private static final com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.ProviderInfo DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.ProviderInfo(); } public static com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.ProviderInfo getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public ProviderInfo parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { Builder builder = newBuilder(); try { builder.mergeFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(builder.buildPartial()); } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e) .setUnfinishedMessage(builder.buildPartial()); } return builder.buildPartial(); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override public com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.ProviderInfo getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface AspectInfoOrBuilder extends // @@protoc_insertion_point(interface_extends:stardoc_output.AspectInfo) com.google.protobuf.MessageOrBuilder { /** *
     * The name under which the aspect is made accessible to a user of this
     * module, including any structs it is nested in, for example
     * "foo.foo_aspect".
     * 
* * string aspect_name = 1; * @return The aspectName. */ java.lang.String getAspectName(); /** *
     * The name under which the aspect is made accessible to a user of this
     * module, including any structs it is nested in, for example
     * "foo.foo_aspect".
     * 
* * string aspect_name = 1; * @return The bytes for aspectName. */ com.google.protobuf.ByteString getAspectNameBytes(); /** *
     * The documentation string of the aspect.
     * 
* * string doc_string = 2; * @return The docString. */ java.lang.String getDocString(); /** *
     * The documentation string of the aspect.
     * 
* * string doc_string = 2; * @return The bytes for docString. */ com.google.protobuf.ByteString getDocStringBytes(); /** *
     * The rule attributes along which the aspect propagates.
     * 
* * repeated string aspect_attribute = 3; * @return A list containing the aspectAttribute. */ java.util.List getAspectAttributeList(); /** *
     * The rule attributes along which the aspect propagates.
     * 
* * repeated string aspect_attribute = 3; * @return The count of aspectAttribute. */ int getAspectAttributeCount(); /** *
     * The rule attributes along which the aspect propagates.
     * 
* * repeated string aspect_attribute = 3; * @param index The index of the element to return. * @return The aspectAttribute at the given index. */ java.lang.String getAspectAttribute(int index); /** *
     * The rule attributes along which the aspect propagates.
     * 
* * repeated string aspect_attribute = 3; * @param index The index of the value to return. * @return The bytes of the aspectAttribute at the given index. */ com.google.protobuf.ByteString getAspectAttributeBytes(int index); /** *
     * The attributes of the aspect.
     * 
* * repeated .stardoc_output.AttributeInfo attribute = 4; */ java.util.List getAttributeList(); /** *
     * The attributes of the aspect.
     * 
* * repeated .stardoc_output.AttributeInfo attribute = 4; */ com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.AttributeInfo getAttribute(int index); /** *
     * The attributes of the aspect.
     * 
* * repeated .stardoc_output.AttributeInfo attribute = 4; */ int getAttributeCount(); /** *
     * The attributes of the aspect.
     * 
* * repeated .stardoc_output.AttributeInfo attribute = 4; */ java.util.List getAttributeOrBuilderList(); /** *
     * The attributes of the aspect.
     * 
* * repeated .stardoc_output.AttributeInfo attribute = 4; */ com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.AttributeInfoOrBuilder getAttributeOrBuilder( int index); /** *
     * The module where and the name under which the aspect was originally
     * declared.
     *
     * Note: legacy Stardoc (0.5.x and earlier) does not set this field.
     * 
* * .stardoc_output.OriginKey origin_key = 5; * @return Whether the originKey field is set. */ boolean hasOriginKey(); /** *
     * The module where and the name under which the aspect was originally
     * declared.
     *
     * Note: legacy Stardoc (0.5.x and earlier) does not set this field.
     * 
* * .stardoc_output.OriginKey origin_key = 5; * @return The originKey. */ com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.OriginKey getOriginKey(); /** *
     * The module where and the name under which the aspect was originally
     * declared.
     *
     * Note: legacy Stardoc (0.5.x and earlier) does not set this field.
     * 
* * .stardoc_output.OriginKey origin_key = 5; */ com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.OriginKeyOrBuilder getOriginKeyOrBuilder(); } /** *
   * Representation of a Starlark aspect definition.
   * 
* * Protobuf type {@code stardoc_output.AspectInfo} */ public static final class AspectInfo extends com.google.protobuf.GeneratedMessage implements // @@protoc_insertion_point(message_implements:stardoc_output.AspectInfo) AspectInfoOrBuilder { private static final long serialVersionUID = 0L; static { com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, /* major= */ 4, /* minor= */ 28, /* patch= */ 3, /* suffix= */ "", AspectInfo.class.getName()); } // Use AspectInfo.newBuilder() to construct. private AspectInfo(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); } private AspectInfo() { aspectName_ = ""; docString_ = ""; aspectAttribute_ = com.google.protobuf.LazyStringArrayList.emptyList(); attribute_ = java.util.Collections.emptyList(); } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.internal_static_stardoc_output_AspectInfo_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.internal_static_stardoc_output_AspectInfo_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.AspectInfo.class, com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.AspectInfo.Builder.class); } private int bitField0_; public static final int ASPECT_NAME_FIELD_NUMBER = 1; @SuppressWarnings("serial") private volatile java.lang.Object aspectName_ = ""; /** *
     * The name under which the aspect is made accessible to a user of this
     * module, including any structs it is nested in, for example
     * "foo.foo_aspect".
     * 
* * string aspect_name = 1; * @return The aspectName. */ @java.lang.Override public java.lang.String getAspectName() { java.lang.Object ref = aspectName_; 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(); aspectName_ = s; return s; } } /** *
     * The name under which the aspect is made accessible to a user of this
     * module, including any structs it is nested in, for example
     * "foo.foo_aspect".
     * 
* * string aspect_name = 1; * @return The bytes for aspectName. */ @java.lang.Override public com.google.protobuf.ByteString getAspectNameBytes() { java.lang.Object ref = aspectName_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); aspectName_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int DOC_STRING_FIELD_NUMBER = 2; @SuppressWarnings("serial") private volatile java.lang.Object docString_ = ""; /** *
     * The documentation string of the aspect.
     * 
* * string doc_string = 2; * @return The docString. */ @java.lang.Override public java.lang.String getDocString() { java.lang.Object ref = docString_; 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(); docString_ = s; return s; } } /** *
     * The documentation string of the aspect.
     * 
* * string doc_string = 2; * @return The bytes for docString. */ @java.lang.Override public com.google.protobuf.ByteString getDocStringBytes() { java.lang.Object ref = docString_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); docString_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int ASPECT_ATTRIBUTE_FIELD_NUMBER = 3; @SuppressWarnings("serial") private com.google.protobuf.LazyStringArrayList aspectAttribute_ = com.google.protobuf.LazyStringArrayList.emptyList(); /** *
     * The rule attributes along which the aspect propagates.
     * 
* * repeated string aspect_attribute = 3; * @return A list containing the aspectAttribute. */ public com.google.protobuf.ProtocolStringList getAspectAttributeList() { return aspectAttribute_; } /** *
     * The rule attributes along which the aspect propagates.
     * 
* * repeated string aspect_attribute = 3; * @return The count of aspectAttribute. */ public int getAspectAttributeCount() { return aspectAttribute_.size(); } /** *
     * The rule attributes along which the aspect propagates.
     * 
* * repeated string aspect_attribute = 3; * @param index The index of the element to return. * @return The aspectAttribute at the given index. */ public java.lang.String getAspectAttribute(int index) { return aspectAttribute_.get(index); } /** *
     * The rule attributes along which the aspect propagates.
     * 
* * repeated string aspect_attribute = 3; * @param index The index of the value to return. * @return The bytes of the aspectAttribute at the given index. */ public com.google.protobuf.ByteString getAspectAttributeBytes(int index) { return aspectAttribute_.getByteString(index); } public static final int ATTRIBUTE_FIELD_NUMBER = 4; @SuppressWarnings("serial") private java.util.List attribute_; /** *
     * The attributes of the aspect.
     * 
* * repeated .stardoc_output.AttributeInfo attribute = 4; */ @java.lang.Override public java.util.List getAttributeList() { return attribute_; } /** *
     * The attributes of the aspect.
     * 
* * repeated .stardoc_output.AttributeInfo attribute = 4; */ @java.lang.Override public java.util.List getAttributeOrBuilderList() { return attribute_; } /** *
     * The attributes of the aspect.
     * 
* * repeated .stardoc_output.AttributeInfo attribute = 4; */ @java.lang.Override public int getAttributeCount() { return attribute_.size(); } /** *
     * The attributes of the aspect.
     * 
* * repeated .stardoc_output.AttributeInfo attribute = 4; */ @java.lang.Override public com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.AttributeInfo getAttribute(int index) { return attribute_.get(index); } /** *
     * The attributes of the aspect.
     * 
* * repeated .stardoc_output.AttributeInfo attribute = 4; */ @java.lang.Override public com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.AttributeInfoOrBuilder getAttributeOrBuilder( int index) { return attribute_.get(index); } public static final int ORIGIN_KEY_FIELD_NUMBER = 5; private com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.OriginKey originKey_; /** *
     * The module where and the name under which the aspect was originally
     * declared.
     *
     * Note: legacy Stardoc (0.5.x and earlier) does not set this field.
     * 
* * .stardoc_output.OriginKey origin_key = 5; * @return Whether the originKey field is set. */ @java.lang.Override public boolean hasOriginKey() { return ((bitField0_ & 0x00000001) != 0); } /** *
     * The module where and the name under which the aspect was originally
     * declared.
     *
     * Note: legacy Stardoc (0.5.x and earlier) does not set this field.
     * 
* * .stardoc_output.OriginKey origin_key = 5; * @return The originKey. */ @java.lang.Override public com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.OriginKey getOriginKey() { return originKey_ == null ? com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.OriginKey.getDefaultInstance() : originKey_; } /** *
     * The module where and the name under which the aspect was originally
     * declared.
     *
     * Note: legacy Stardoc (0.5.x and earlier) does not set this field.
     * 
* * .stardoc_output.OriginKey origin_key = 5; */ @java.lang.Override public com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.OriginKeyOrBuilder getOriginKeyOrBuilder() { return originKey_ == null ? com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.OriginKey.getDefaultInstance() : originKey_; } 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 (!com.google.protobuf.GeneratedMessage.isStringEmpty(aspectName_)) { com.google.protobuf.GeneratedMessage.writeString(output, 1, aspectName_); } if (!com.google.protobuf.GeneratedMessage.isStringEmpty(docString_)) { com.google.protobuf.GeneratedMessage.writeString(output, 2, docString_); } for (int i = 0; i < aspectAttribute_.size(); i++) { com.google.protobuf.GeneratedMessage.writeString(output, 3, aspectAttribute_.getRaw(i)); } for (int i = 0; i < attribute_.size(); i++) { output.writeMessage(4, attribute_.get(i)); } if (((bitField0_ & 0x00000001) != 0)) { output.writeMessage(5, getOriginKey()); } getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (!com.google.protobuf.GeneratedMessage.isStringEmpty(aspectName_)) { size += com.google.protobuf.GeneratedMessage.computeStringSize(1, aspectName_); } if (!com.google.protobuf.GeneratedMessage.isStringEmpty(docString_)) { size += com.google.protobuf.GeneratedMessage.computeStringSize(2, docString_); } { int dataSize = 0; for (int i = 0; i < aspectAttribute_.size(); i++) { dataSize += computeStringSizeNoTag(aspectAttribute_.getRaw(i)); } size += dataSize; size += 1 * getAspectAttributeList().size(); } for (int i = 0; i < attribute_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(4, attribute_.get(i)); } if (((bitField0_ & 0x00000001) != 0)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(5, getOriginKey()); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.AspectInfo)) { return super.equals(obj); } com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.AspectInfo other = (com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.AspectInfo) obj; if (!getAspectName() .equals(other.getAspectName())) return false; if (!getDocString() .equals(other.getDocString())) return false; if (!getAspectAttributeList() .equals(other.getAspectAttributeList())) return false; if (!getAttributeList() .equals(other.getAttributeList())) return false; if (hasOriginKey() != other.hasOriginKey()) return false; if (hasOriginKey()) { if (!getOriginKey() .equals(other.getOriginKey())) return false; } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + ASPECT_NAME_FIELD_NUMBER; hash = (53 * hash) + getAspectName().hashCode(); hash = (37 * hash) + DOC_STRING_FIELD_NUMBER; hash = (53 * hash) + getDocString().hashCode(); if (getAspectAttributeCount() > 0) { hash = (37 * hash) + ASPECT_ATTRIBUTE_FIELD_NUMBER; hash = (53 * hash) + getAspectAttributeList().hashCode(); } if (getAttributeCount() > 0) { hash = (37 * hash) + ATTRIBUTE_FIELD_NUMBER; hash = (53 * hash) + getAttributeList().hashCode(); } if (hasOriginKey()) { hash = (37 * hash) + ORIGIN_KEY_FIELD_NUMBER; hash = (53 * hash) + getOriginKey().hashCode(); } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.AspectInfo parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.AspectInfo 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.lib.starlarkdocextract.StardocOutputProtos.AspectInfo parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.AspectInfo 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.lib.starlarkdocextract.StardocOutputProtos.AspectInfo parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.AspectInfo parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.AspectInfo parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessage .parseWithIOException(PARSER, input); } public static com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.AspectInfo parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessage .parseWithIOException(PARSER, input, extensionRegistry); } public static com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.AspectInfo parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessage .parseDelimitedWithIOException(PARSER, input); } public static com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.AspectInfo parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessage .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.AspectInfo parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessage .parseWithIOException(PARSER, input); } public static com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.AspectInfo parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessage .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.AspectInfo prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } @java.lang.Override public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessage.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** *
     * Representation of a Starlark aspect definition.
     * 
* * Protobuf type {@code stardoc_output.AspectInfo} */ public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder implements // @@protoc_insertion_point(builder_implements:stardoc_output.AspectInfo) com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.AspectInfoOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.internal_static_stardoc_output_AspectInfo_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.internal_static_stardoc_output_AspectInfo_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.AspectInfo.class, com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.AspectInfo.Builder.class); } // Construct using com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.AspectInfo.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessage .alwaysUseFieldBuilders) { getAttributeFieldBuilder(); getOriginKeyFieldBuilder(); } } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; aspectName_ = ""; docString_ = ""; aspectAttribute_ = com.google.protobuf.LazyStringArrayList.emptyList(); if (attributeBuilder_ == null) { attribute_ = java.util.Collections.emptyList(); } else { attribute_ = null; attributeBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000008); originKey_ = null; if (originKeyBuilder_ != null) { originKeyBuilder_.dispose(); originKeyBuilder_ = null; } return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.internal_static_stardoc_output_AspectInfo_descriptor; } @java.lang.Override public com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.AspectInfo getDefaultInstanceForType() { return com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.AspectInfo.getDefaultInstance(); } @java.lang.Override public com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.AspectInfo build() { com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.AspectInfo result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.AspectInfo buildPartial() { com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.AspectInfo result = new com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.AspectInfo(this); buildPartialRepeatedFields(result); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartialRepeatedFields(com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.AspectInfo result) { if (attributeBuilder_ == null) { if (((bitField0_ & 0x00000008) != 0)) { attribute_ = java.util.Collections.unmodifiableList(attribute_); bitField0_ = (bitField0_ & ~0x00000008); } result.attribute_ = attribute_; } else { result.attribute_ = attributeBuilder_.build(); } } private void buildPartial0(com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.AspectInfo result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.aspectName_ = aspectName_; } if (((from_bitField0_ & 0x00000002) != 0)) { result.docString_ = docString_; } if (((from_bitField0_ & 0x00000004) != 0)) { aspectAttribute_.makeImmutable(); result.aspectAttribute_ = aspectAttribute_; } int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000010) != 0)) { result.originKey_ = originKeyBuilder_ == null ? originKey_ : originKeyBuilder_.build(); to_bitField0_ |= 0x00000001; } result.bitField0_ |= to_bitField0_; } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.AspectInfo) { return mergeFrom((com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.AspectInfo)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.AspectInfo other) { if (other == com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.AspectInfo.getDefaultInstance()) return this; if (!other.getAspectName().isEmpty()) { aspectName_ = other.aspectName_; bitField0_ |= 0x00000001; onChanged(); } if (!other.getDocString().isEmpty()) { docString_ = other.docString_; bitField0_ |= 0x00000002; onChanged(); } if (!other.aspectAttribute_.isEmpty()) { if (aspectAttribute_.isEmpty()) { aspectAttribute_ = other.aspectAttribute_; bitField0_ |= 0x00000004; } else { ensureAspectAttributeIsMutable(); aspectAttribute_.addAll(other.aspectAttribute_); } onChanged(); } if (attributeBuilder_ == null) { if (!other.attribute_.isEmpty()) { if (attribute_.isEmpty()) { attribute_ = other.attribute_; bitField0_ = (bitField0_ & ~0x00000008); } else { ensureAttributeIsMutable(); attribute_.addAll(other.attribute_); } onChanged(); } } else { if (!other.attribute_.isEmpty()) { if (attributeBuilder_.isEmpty()) { attributeBuilder_.dispose(); attributeBuilder_ = null; attribute_ = other.attribute_; bitField0_ = (bitField0_ & ~0x00000008); attributeBuilder_ = com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ? getAttributeFieldBuilder() : null; } else { attributeBuilder_.addAllMessages(other.attribute_); } } } if (other.hasOriginKey()) { mergeOriginKey(other.getOriginKey()); } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { return true; } @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 10: { aspectName_ = input.readStringRequireUtf8(); bitField0_ |= 0x00000001; break; } // case 10 case 18: { docString_ = input.readStringRequireUtf8(); bitField0_ |= 0x00000002; break; } // case 18 case 26: { java.lang.String s = input.readStringRequireUtf8(); ensureAspectAttributeIsMutable(); aspectAttribute_.add(s); break; } // case 26 case 34: { com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.AttributeInfo m = input.readMessage( com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.AttributeInfo.parser(), extensionRegistry); if (attributeBuilder_ == null) { ensureAttributeIsMutable(); attribute_.add(m); } else { attributeBuilder_.addMessage(m); } break; } // case 34 case 42: { input.readMessage( getOriginKeyFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00000010; break; } // case 42 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { done = true; // was an endgroup tag } break; } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.unwrapIOException(); } finally { onChanged(); } // finally return this; } private int bitField0_; private java.lang.Object aspectName_ = ""; /** *
       * The name under which the aspect is made accessible to a user of this
       * module, including any structs it is nested in, for example
       * "foo.foo_aspect".
       * 
* * string aspect_name = 1; * @return The aspectName. */ public java.lang.String getAspectName() { java.lang.Object ref = aspectName_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); aspectName_ = s; return s; } else { return (java.lang.String) ref; } } /** *
       * The name under which the aspect is made accessible to a user of this
       * module, including any structs it is nested in, for example
       * "foo.foo_aspect".
       * 
* * string aspect_name = 1; * @return The bytes for aspectName. */ public com.google.protobuf.ByteString getAspectNameBytes() { java.lang.Object ref = aspectName_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); aspectName_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
       * The name under which the aspect is made accessible to a user of this
       * module, including any structs it is nested in, for example
       * "foo.foo_aspect".
       * 
* * string aspect_name = 1; * @param value The aspectName to set. * @return This builder for chaining. */ public Builder setAspectName( java.lang.String value) { if (value == null) { throw new NullPointerException(); } aspectName_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** *
       * The name under which the aspect is made accessible to a user of this
       * module, including any structs it is nested in, for example
       * "foo.foo_aspect".
       * 
* * string aspect_name = 1; * @return This builder for chaining. */ public Builder clearAspectName() { aspectName_ = getDefaultInstance().getAspectName(); bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } /** *
       * The name under which the aspect is made accessible to a user of this
       * module, including any structs it is nested in, for example
       * "foo.foo_aspect".
       * 
* * string aspect_name = 1; * @param value The bytes for aspectName to set. * @return This builder for chaining. */ public Builder setAspectNameBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); aspectName_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } private java.lang.Object docString_ = ""; /** *
       * The documentation string of the aspect.
       * 
* * string doc_string = 2; * @return The docString. */ public java.lang.String getDocString() { java.lang.Object ref = docString_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); docString_ = s; return s; } else { return (java.lang.String) ref; } } /** *
       * The documentation string of the aspect.
       * 
* * string doc_string = 2; * @return The bytes for docString. */ public com.google.protobuf.ByteString getDocStringBytes() { java.lang.Object ref = docString_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); docString_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
       * The documentation string of the aspect.
       * 
* * string doc_string = 2; * @param value The docString to set. * @return This builder for chaining. */ public Builder setDocString( java.lang.String value) { if (value == null) { throw new NullPointerException(); } docString_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** *
       * The documentation string of the aspect.
       * 
* * string doc_string = 2; * @return This builder for chaining. */ public Builder clearDocString() { docString_ = getDefaultInstance().getDocString(); bitField0_ = (bitField0_ & ~0x00000002); onChanged(); return this; } /** *
       * The documentation string of the aspect.
       * 
* * string doc_string = 2; * @param value The bytes for docString to set. * @return This builder for chaining. */ public Builder setDocStringBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); docString_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } private com.google.protobuf.LazyStringArrayList aspectAttribute_ = com.google.protobuf.LazyStringArrayList.emptyList(); private void ensureAspectAttributeIsMutable() { if (!aspectAttribute_.isModifiable()) { aspectAttribute_ = new com.google.protobuf.LazyStringArrayList(aspectAttribute_); } bitField0_ |= 0x00000004; } /** *
       * The rule attributes along which the aspect propagates.
       * 
* * repeated string aspect_attribute = 3; * @return A list containing the aspectAttribute. */ public com.google.protobuf.ProtocolStringList getAspectAttributeList() { aspectAttribute_.makeImmutable(); return aspectAttribute_; } /** *
       * The rule attributes along which the aspect propagates.
       * 
* * repeated string aspect_attribute = 3; * @return The count of aspectAttribute. */ public int getAspectAttributeCount() { return aspectAttribute_.size(); } /** *
       * The rule attributes along which the aspect propagates.
       * 
* * repeated string aspect_attribute = 3; * @param index The index of the element to return. * @return The aspectAttribute at the given index. */ public java.lang.String getAspectAttribute(int index) { return aspectAttribute_.get(index); } /** *
       * The rule attributes along which the aspect propagates.
       * 
* * repeated string aspect_attribute = 3; * @param index The index of the value to return. * @return The bytes of the aspectAttribute at the given index. */ public com.google.protobuf.ByteString getAspectAttributeBytes(int index) { return aspectAttribute_.getByteString(index); } /** *
       * The rule attributes along which the aspect propagates.
       * 
* * repeated string aspect_attribute = 3; * @param index The index to set the value at. * @param value The aspectAttribute to set. * @return This builder for chaining. */ public Builder setAspectAttribute( int index, java.lang.String value) { if (value == null) { throw new NullPointerException(); } ensureAspectAttributeIsMutable(); aspectAttribute_.set(index, value); bitField0_ |= 0x00000004; onChanged(); return this; } /** *
       * The rule attributes along which the aspect propagates.
       * 
* * repeated string aspect_attribute = 3; * @param value The aspectAttribute to add. * @return This builder for chaining. */ public Builder addAspectAttribute( java.lang.String value) { if (value == null) { throw new NullPointerException(); } ensureAspectAttributeIsMutable(); aspectAttribute_.add(value); bitField0_ |= 0x00000004; onChanged(); return this; } /** *
       * The rule attributes along which the aspect propagates.
       * 
* * repeated string aspect_attribute = 3; * @param values The aspectAttribute to add. * @return This builder for chaining. */ public Builder addAllAspectAttribute( java.lang.Iterable values) { ensureAspectAttributeIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, aspectAttribute_); bitField0_ |= 0x00000004; onChanged(); return this; } /** *
       * The rule attributes along which the aspect propagates.
       * 
* * repeated string aspect_attribute = 3; * @return This builder for chaining. */ public Builder clearAspectAttribute() { aspectAttribute_ = com.google.protobuf.LazyStringArrayList.emptyList(); bitField0_ = (bitField0_ & ~0x00000004);; onChanged(); return this; } /** *
       * The rule attributes along which the aspect propagates.
       * 
* * repeated string aspect_attribute = 3; * @param value The bytes of the aspectAttribute to add. * @return This builder for chaining. */ public Builder addAspectAttributeBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); ensureAspectAttributeIsMutable(); aspectAttribute_.add(value); bitField0_ |= 0x00000004; onChanged(); return this; } private java.util.List attribute_ = java.util.Collections.emptyList(); private void ensureAttributeIsMutable() { if (!((bitField0_ & 0x00000008) != 0)) { attribute_ = new java.util.ArrayList(attribute_); bitField0_ |= 0x00000008; } } private com.google.protobuf.RepeatedFieldBuilder< com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.AttributeInfo, com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.AttributeInfo.Builder, com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.AttributeInfoOrBuilder> attributeBuilder_; /** *
       * The attributes of the aspect.
       * 
* * repeated .stardoc_output.AttributeInfo attribute = 4; */ public java.util.List getAttributeList() { if (attributeBuilder_ == null) { return java.util.Collections.unmodifiableList(attribute_); } else { return attributeBuilder_.getMessageList(); } } /** *
       * The attributes of the aspect.
       * 
* * repeated .stardoc_output.AttributeInfo attribute = 4; */ public int getAttributeCount() { if (attributeBuilder_ == null) { return attribute_.size(); } else { return attributeBuilder_.getCount(); } } /** *
       * The attributes of the aspect.
       * 
* * repeated .stardoc_output.AttributeInfo attribute = 4; */ public com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.AttributeInfo getAttribute(int index) { if (attributeBuilder_ == null) { return attribute_.get(index); } else { return attributeBuilder_.getMessage(index); } } /** *
       * The attributes of the aspect.
       * 
* * repeated .stardoc_output.AttributeInfo attribute = 4; */ public Builder setAttribute( int index, com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.AttributeInfo value) { if (attributeBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureAttributeIsMutable(); attribute_.set(index, value); onChanged(); } else { attributeBuilder_.setMessage(index, value); } return this; } /** *
       * The attributes of the aspect.
       * 
* * repeated .stardoc_output.AttributeInfo attribute = 4; */ public Builder setAttribute( int index, com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.AttributeInfo.Builder builderForValue) { if (attributeBuilder_ == null) { ensureAttributeIsMutable(); attribute_.set(index, builderForValue.build()); onChanged(); } else { attributeBuilder_.setMessage(index, builderForValue.build()); } return this; } /** *
       * The attributes of the aspect.
       * 
* * repeated .stardoc_output.AttributeInfo attribute = 4; */ public Builder addAttribute(com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.AttributeInfo value) { if (attributeBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureAttributeIsMutable(); attribute_.add(value); onChanged(); } else { attributeBuilder_.addMessage(value); } return this; } /** *
       * The attributes of the aspect.
       * 
* * repeated .stardoc_output.AttributeInfo attribute = 4; */ public Builder addAttribute( int index, com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.AttributeInfo value) { if (attributeBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureAttributeIsMutable(); attribute_.add(index, value); onChanged(); } else { attributeBuilder_.addMessage(index, value); } return this; } /** *
       * The attributes of the aspect.
       * 
* * repeated .stardoc_output.AttributeInfo attribute = 4; */ public Builder addAttribute( com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.AttributeInfo.Builder builderForValue) { if (attributeBuilder_ == null) { ensureAttributeIsMutable(); attribute_.add(builderForValue.build()); onChanged(); } else { attributeBuilder_.addMessage(builderForValue.build()); } return this; } /** *
       * The attributes of the aspect.
       * 
* * repeated .stardoc_output.AttributeInfo attribute = 4; */ public Builder addAttribute( int index, com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.AttributeInfo.Builder builderForValue) { if (attributeBuilder_ == null) { ensureAttributeIsMutable(); attribute_.add(index, builderForValue.build()); onChanged(); } else { attributeBuilder_.addMessage(index, builderForValue.build()); } return this; } /** *
       * The attributes of the aspect.
       * 
* * repeated .stardoc_output.AttributeInfo attribute = 4; */ public Builder addAllAttribute( java.lang.Iterable values) { if (attributeBuilder_ == null) { ensureAttributeIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, attribute_); onChanged(); } else { attributeBuilder_.addAllMessages(values); } return this; } /** *
       * The attributes of the aspect.
       * 
* * repeated .stardoc_output.AttributeInfo attribute = 4; */ public Builder clearAttribute() { if (attributeBuilder_ == null) { attribute_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000008); onChanged(); } else { attributeBuilder_.clear(); } return this; } /** *
       * The attributes of the aspect.
       * 
* * repeated .stardoc_output.AttributeInfo attribute = 4; */ public Builder removeAttribute(int index) { if (attributeBuilder_ == null) { ensureAttributeIsMutable(); attribute_.remove(index); onChanged(); } else { attributeBuilder_.remove(index); } return this; } /** *
       * The attributes of the aspect.
       * 
* * repeated .stardoc_output.AttributeInfo attribute = 4; */ public com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.AttributeInfo.Builder getAttributeBuilder( int index) { return getAttributeFieldBuilder().getBuilder(index); } /** *
       * The attributes of the aspect.
       * 
* * repeated .stardoc_output.AttributeInfo attribute = 4; */ public com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.AttributeInfoOrBuilder getAttributeOrBuilder( int index) { if (attributeBuilder_ == null) { return attribute_.get(index); } else { return attributeBuilder_.getMessageOrBuilder(index); } } /** *
       * The attributes of the aspect.
       * 
* * repeated .stardoc_output.AttributeInfo attribute = 4; */ public java.util.List getAttributeOrBuilderList() { if (attributeBuilder_ != null) { return attributeBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(attribute_); } } /** *
       * The attributes of the aspect.
       * 
* * repeated .stardoc_output.AttributeInfo attribute = 4; */ public com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.AttributeInfo.Builder addAttributeBuilder() { return getAttributeFieldBuilder().addBuilder( com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.AttributeInfo.getDefaultInstance()); } /** *
       * The attributes of the aspect.
       * 
* * repeated .stardoc_output.AttributeInfo attribute = 4; */ public com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.AttributeInfo.Builder addAttributeBuilder( int index) { return getAttributeFieldBuilder().addBuilder( index, com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.AttributeInfo.getDefaultInstance()); } /** *
       * The attributes of the aspect.
       * 
* * repeated .stardoc_output.AttributeInfo attribute = 4; */ public java.util.List getAttributeBuilderList() { return getAttributeFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilder< com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.AttributeInfo, com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.AttributeInfo.Builder, com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.AttributeInfoOrBuilder> getAttributeFieldBuilder() { if (attributeBuilder_ == null) { attributeBuilder_ = new com.google.protobuf.RepeatedFieldBuilder< com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.AttributeInfo, com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.AttributeInfo.Builder, com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.AttributeInfoOrBuilder>( attribute_, ((bitField0_ & 0x00000008) != 0), getParentForChildren(), isClean()); attribute_ = null; } return attributeBuilder_; } private com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.OriginKey originKey_; private com.google.protobuf.SingleFieldBuilder< com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.OriginKey, com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.OriginKey.Builder, com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.OriginKeyOrBuilder> originKeyBuilder_; /** *
       * The module where and the name under which the aspect was originally
       * declared.
       *
       * Note: legacy Stardoc (0.5.x and earlier) does not set this field.
       * 
* * .stardoc_output.OriginKey origin_key = 5; * @return Whether the originKey field is set. */ public boolean hasOriginKey() { return ((bitField0_ & 0x00000010) != 0); } /** *
       * The module where and the name under which the aspect was originally
       * declared.
       *
       * Note: legacy Stardoc (0.5.x and earlier) does not set this field.
       * 
* * .stardoc_output.OriginKey origin_key = 5; * @return The originKey. */ public com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.OriginKey getOriginKey() { if (originKeyBuilder_ == null) { return originKey_ == null ? com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.OriginKey.getDefaultInstance() : originKey_; } else { return originKeyBuilder_.getMessage(); } } /** *
       * The module where and the name under which the aspect was originally
       * declared.
       *
       * Note: legacy Stardoc (0.5.x and earlier) does not set this field.
       * 
* * .stardoc_output.OriginKey origin_key = 5; */ public Builder setOriginKey(com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.OriginKey value) { if (originKeyBuilder_ == null) { if (value == null) { throw new NullPointerException(); } originKey_ = value; } else { originKeyBuilder_.setMessage(value); } bitField0_ |= 0x00000010; onChanged(); return this; } /** *
       * The module where and the name under which the aspect was originally
       * declared.
       *
       * Note: legacy Stardoc (0.5.x and earlier) does not set this field.
       * 
* * .stardoc_output.OriginKey origin_key = 5; */ public Builder setOriginKey( com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.OriginKey.Builder builderForValue) { if (originKeyBuilder_ == null) { originKey_ = builderForValue.build(); } else { originKeyBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000010; onChanged(); return this; } /** *
       * The module where and the name under which the aspect was originally
       * declared.
       *
       * Note: legacy Stardoc (0.5.x and earlier) does not set this field.
       * 
* * .stardoc_output.OriginKey origin_key = 5; */ public Builder mergeOriginKey(com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.OriginKey value) { if (originKeyBuilder_ == null) { if (((bitField0_ & 0x00000010) != 0) && originKey_ != null && originKey_ != com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.OriginKey.getDefaultInstance()) { getOriginKeyBuilder().mergeFrom(value); } else { originKey_ = value; } } else { originKeyBuilder_.mergeFrom(value); } if (originKey_ != null) { bitField0_ |= 0x00000010; onChanged(); } return this; } /** *
       * The module where and the name under which the aspect was originally
       * declared.
       *
       * Note: legacy Stardoc (0.5.x and earlier) does not set this field.
       * 
* * .stardoc_output.OriginKey origin_key = 5; */ public Builder clearOriginKey() { bitField0_ = (bitField0_ & ~0x00000010); originKey_ = null; if (originKeyBuilder_ != null) { originKeyBuilder_.dispose(); originKeyBuilder_ = null; } onChanged(); return this; } /** *
       * The module where and the name under which the aspect was originally
       * declared.
       *
       * Note: legacy Stardoc (0.5.x and earlier) does not set this field.
       * 
* * .stardoc_output.OriginKey origin_key = 5; */ public com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.OriginKey.Builder getOriginKeyBuilder() { bitField0_ |= 0x00000010; onChanged(); return getOriginKeyFieldBuilder().getBuilder(); } /** *
       * The module where and the name under which the aspect was originally
       * declared.
       *
       * Note: legacy Stardoc (0.5.x and earlier) does not set this field.
       * 
* * .stardoc_output.OriginKey origin_key = 5; */ public com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.OriginKeyOrBuilder getOriginKeyOrBuilder() { if (originKeyBuilder_ != null) { return originKeyBuilder_.getMessageOrBuilder(); } else { return originKey_ == null ? com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.OriginKey.getDefaultInstance() : originKey_; } } /** *
       * The module where and the name under which the aspect was originally
       * declared.
       *
       * Note: legacy Stardoc (0.5.x and earlier) does not set this field.
       * 
* * .stardoc_output.OriginKey origin_key = 5; */ private com.google.protobuf.SingleFieldBuilder< com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.OriginKey, com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.OriginKey.Builder, com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.OriginKeyOrBuilder> getOriginKeyFieldBuilder() { if (originKeyBuilder_ == null) { originKeyBuilder_ = new com.google.protobuf.SingleFieldBuilder< com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.OriginKey, com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.OriginKey.Builder, com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.OriginKeyOrBuilder>( getOriginKey(), getParentForChildren(), isClean()); originKey_ = null; } return originKeyBuilder_; } // @@protoc_insertion_point(builder_scope:stardoc_output.AspectInfo) } // @@protoc_insertion_point(class_scope:stardoc_output.AspectInfo) private static final com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.AspectInfo DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.AspectInfo(); } public static com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.AspectInfo getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public AspectInfo parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { Builder builder = newBuilder(); try { builder.mergeFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(builder.buildPartial()); } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e) .setUnfinishedMessage(builder.buildPartial()); } return builder.buildPartial(); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override public com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.AspectInfo getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface ModuleExtensionInfoOrBuilder extends // @@protoc_insertion_point(interface_extends:stardoc_output.ModuleExtensionInfo) com.google.protobuf.MessageOrBuilder { /** *
     * The name under which the extension is made accessible to a user of this
     * Starlark module.
     * 
* * string extension_name = 1; * @return The extensionName. */ java.lang.String getExtensionName(); /** *
     * The name under which the extension is made accessible to a user of this
     * Starlark module.
     * 
* * string extension_name = 1; * @return The bytes for extensionName. */ com.google.protobuf.ByteString getExtensionNameBytes(); /** *
     * The documentation string of the extension.
     * 
* * string doc_string = 2; * @return The docString. */ java.lang.String getDocString(); /** *
     * The documentation string of the extension.
     * 
* * string doc_string = 2; * @return The bytes for docString. */ com.google.protobuf.ByteString getDocStringBytes(); /** *
     * The tag classes of the extension.
     * 
* * repeated .stardoc_output.ModuleExtensionTagClassInfo tag_class = 3; */ java.util.List getTagClassList(); /** *
     * The tag classes of the extension.
     * 
* * repeated .stardoc_output.ModuleExtensionTagClassInfo tag_class = 3; */ com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.ModuleExtensionTagClassInfo getTagClass(int index); /** *
     * The tag classes of the extension.
     * 
* * repeated .stardoc_output.ModuleExtensionTagClassInfo tag_class = 3; */ int getTagClassCount(); /** *
     * The tag classes of the extension.
     * 
* * repeated .stardoc_output.ModuleExtensionTagClassInfo tag_class = 3; */ java.util.List getTagClassOrBuilderList(); /** *
     * The tag classes of the extension.
     * 
* * repeated .stardoc_output.ModuleExtensionTagClassInfo tag_class = 3; */ com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.ModuleExtensionTagClassInfoOrBuilder getTagClassOrBuilder( int index); /** *
     * The Starlark module where the Bazel module extension was originally
     * declared; origin_key.name is currently never set.
     * TODO(arostovtsev): attempt to retrieve the name under which the module
     * extension was originally declared if it was declared as a global.
     * 
* * .stardoc_output.OriginKey origin_key = 4; * @return Whether the originKey field is set. */ boolean hasOriginKey(); /** *
     * The Starlark module where the Bazel module extension was originally
     * declared; origin_key.name is currently never set.
     * TODO(arostovtsev): attempt to retrieve the name under which the module
     * extension was originally declared if it was declared as a global.
     * 
* * .stardoc_output.OriginKey origin_key = 4; * @return The originKey. */ com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.OriginKey getOriginKey(); /** *
     * The Starlark module where the Bazel module extension was originally
     * declared; origin_key.name is currently never set.
     * TODO(arostovtsev): attempt to retrieve the name under which the module
     * extension was originally declared if it was declared as a global.
     * 
* * .stardoc_output.OriginKey origin_key = 4; */ com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.OriginKeyOrBuilder getOriginKeyOrBuilder(); } /** *
   * Representation of a Bazel module extension, i.e. the object returned by
   * calling `module_extension(...)`.
   *
   * Note: legacy Stardoc (0.5.x and earlier) does not emit this message.
   * 
* * Protobuf type {@code stardoc_output.ModuleExtensionInfo} */ public static final class ModuleExtensionInfo extends com.google.protobuf.GeneratedMessage implements // @@protoc_insertion_point(message_implements:stardoc_output.ModuleExtensionInfo) ModuleExtensionInfoOrBuilder { private static final long serialVersionUID = 0L; static { com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, /* major= */ 4, /* minor= */ 28, /* patch= */ 3, /* suffix= */ "", ModuleExtensionInfo.class.getName()); } // Use ModuleExtensionInfo.newBuilder() to construct. private ModuleExtensionInfo(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); } private ModuleExtensionInfo() { extensionName_ = ""; docString_ = ""; tagClass_ = java.util.Collections.emptyList(); } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.internal_static_stardoc_output_ModuleExtensionInfo_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.internal_static_stardoc_output_ModuleExtensionInfo_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.ModuleExtensionInfo.class, com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.ModuleExtensionInfo.Builder.class); } private int bitField0_; public static final int EXTENSION_NAME_FIELD_NUMBER = 1; @SuppressWarnings("serial") private volatile java.lang.Object extensionName_ = ""; /** *
     * The name under which the extension is made accessible to a user of this
     * Starlark module.
     * 
* * string extension_name = 1; * @return The extensionName. */ @java.lang.Override public java.lang.String getExtensionName() { java.lang.Object ref = extensionName_; 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(); extensionName_ = s; return s; } } /** *
     * The name under which the extension is made accessible to a user of this
     * Starlark module.
     * 
* * string extension_name = 1; * @return The bytes for extensionName. */ @java.lang.Override public com.google.protobuf.ByteString getExtensionNameBytes() { java.lang.Object ref = extensionName_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); extensionName_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int DOC_STRING_FIELD_NUMBER = 2; @SuppressWarnings("serial") private volatile java.lang.Object docString_ = ""; /** *
     * The documentation string of the extension.
     * 
* * string doc_string = 2; * @return The docString. */ @java.lang.Override public java.lang.String getDocString() { java.lang.Object ref = docString_; 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(); docString_ = s; return s; } } /** *
     * The documentation string of the extension.
     * 
* * string doc_string = 2; * @return The bytes for docString. */ @java.lang.Override public com.google.protobuf.ByteString getDocStringBytes() { java.lang.Object ref = docString_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); docString_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int TAG_CLASS_FIELD_NUMBER = 3; @SuppressWarnings("serial") private java.util.List tagClass_; /** *
     * The tag classes of the extension.
     * 
* * repeated .stardoc_output.ModuleExtensionTagClassInfo tag_class = 3; */ @java.lang.Override public java.util.List getTagClassList() { return tagClass_; } /** *
     * The tag classes of the extension.
     * 
* * repeated .stardoc_output.ModuleExtensionTagClassInfo tag_class = 3; */ @java.lang.Override public java.util.List getTagClassOrBuilderList() { return tagClass_; } /** *
     * The tag classes of the extension.
     * 
* * repeated .stardoc_output.ModuleExtensionTagClassInfo tag_class = 3; */ @java.lang.Override public int getTagClassCount() { return tagClass_.size(); } /** *
     * The tag classes of the extension.
     * 
* * repeated .stardoc_output.ModuleExtensionTagClassInfo tag_class = 3; */ @java.lang.Override public com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.ModuleExtensionTagClassInfo getTagClass(int index) { return tagClass_.get(index); } /** *
     * The tag classes of the extension.
     * 
* * repeated .stardoc_output.ModuleExtensionTagClassInfo tag_class = 3; */ @java.lang.Override public com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.ModuleExtensionTagClassInfoOrBuilder getTagClassOrBuilder( int index) { return tagClass_.get(index); } public static final int ORIGIN_KEY_FIELD_NUMBER = 4; private com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.OriginKey originKey_; /** *
     * The Starlark module where the Bazel module extension was originally
     * declared; origin_key.name is currently never set.
     * TODO(arostovtsev): attempt to retrieve the name under which the module
     * extension was originally declared if it was declared as a global.
     * 
* * .stardoc_output.OriginKey origin_key = 4; * @return Whether the originKey field is set. */ @java.lang.Override public boolean hasOriginKey() { return ((bitField0_ & 0x00000001) != 0); } /** *
     * The Starlark module where the Bazel module extension was originally
     * declared; origin_key.name is currently never set.
     * TODO(arostovtsev): attempt to retrieve the name under which the module
     * extension was originally declared if it was declared as a global.
     * 
* * .stardoc_output.OriginKey origin_key = 4; * @return The originKey. */ @java.lang.Override public com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.OriginKey getOriginKey() { return originKey_ == null ? com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.OriginKey.getDefaultInstance() : originKey_; } /** *
     * The Starlark module where the Bazel module extension was originally
     * declared; origin_key.name is currently never set.
     * TODO(arostovtsev): attempt to retrieve the name under which the module
     * extension was originally declared if it was declared as a global.
     * 
* * .stardoc_output.OriginKey origin_key = 4; */ @java.lang.Override public com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.OriginKeyOrBuilder getOriginKeyOrBuilder() { return originKey_ == null ? com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.OriginKey.getDefaultInstance() : originKey_; } 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 (!com.google.protobuf.GeneratedMessage.isStringEmpty(extensionName_)) { com.google.protobuf.GeneratedMessage.writeString(output, 1, extensionName_); } if (!com.google.protobuf.GeneratedMessage.isStringEmpty(docString_)) { com.google.protobuf.GeneratedMessage.writeString(output, 2, docString_); } for (int i = 0; i < tagClass_.size(); i++) { output.writeMessage(3, tagClass_.get(i)); } if (((bitField0_ & 0x00000001) != 0)) { output.writeMessage(4, getOriginKey()); } getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (!com.google.protobuf.GeneratedMessage.isStringEmpty(extensionName_)) { size += com.google.protobuf.GeneratedMessage.computeStringSize(1, extensionName_); } if (!com.google.protobuf.GeneratedMessage.isStringEmpty(docString_)) { size += com.google.protobuf.GeneratedMessage.computeStringSize(2, docString_); } for (int i = 0; i < tagClass_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(3, tagClass_.get(i)); } if (((bitField0_ & 0x00000001) != 0)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(4, getOriginKey()); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.ModuleExtensionInfo)) { return super.equals(obj); } com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.ModuleExtensionInfo other = (com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.ModuleExtensionInfo) obj; if (!getExtensionName() .equals(other.getExtensionName())) return false; if (!getDocString() .equals(other.getDocString())) return false; if (!getTagClassList() .equals(other.getTagClassList())) return false; if (hasOriginKey() != other.hasOriginKey()) return false; if (hasOriginKey()) { if (!getOriginKey() .equals(other.getOriginKey())) return false; } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + EXTENSION_NAME_FIELD_NUMBER; hash = (53 * hash) + getExtensionName().hashCode(); hash = (37 * hash) + DOC_STRING_FIELD_NUMBER; hash = (53 * hash) + getDocString().hashCode(); if (getTagClassCount() > 0) { hash = (37 * hash) + TAG_CLASS_FIELD_NUMBER; hash = (53 * hash) + getTagClassList().hashCode(); } if (hasOriginKey()) { hash = (37 * hash) + ORIGIN_KEY_FIELD_NUMBER; hash = (53 * hash) + getOriginKey().hashCode(); } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.ModuleExtensionInfo parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.ModuleExtensionInfo 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.lib.starlarkdocextract.StardocOutputProtos.ModuleExtensionInfo parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.ModuleExtensionInfo 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.lib.starlarkdocextract.StardocOutputProtos.ModuleExtensionInfo parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.ModuleExtensionInfo parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.ModuleExtensionInfo parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessage .parseWithIOException(PARSER, input); } public static com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.ModuleExtensionInfo parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessage .parseWithIOException(PARSER, input, extensionRegistry); } public static com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.ModuleExtensionInfo parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessage .parseDelimitedWithIOException(PARSER, input); } public static com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.ModuleExtensionInfo parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessage .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.ModuleExtensionInfo parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessage .parseWithIOException(PARSER, input); } public static com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.ModuleExtensionInfo parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessage .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.ModuleExtensionInfo prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } @java.lang.Override public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessage.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** *
     * Representation of a Bazel module extension, i.e. the object returned by
     * calling `module_extension(...)`.
     *
     * Note: legacy Stardoc (0.5.x and earlier) does not emit this message.
     * 
* * Protobuf type {@code stardoc_output.ModuleExtensionInfo} */ public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder implements // @@protoc_insertion_point(builder_implements:stardoc_output.ModuleExtensionInfo) com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.ModuleExtensionInfoOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.internal_static_stardoc_output_ModuleExtensionInfo_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.internal_static_stardoc_output_ModuleExtensionInfo_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.ModuleExtensionInfo.class, com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.ModuleExtensionInfo.Builder.class); } // Construct using com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.ModuleExtensionInfo.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessage .alwaysUseFieldBuilders) { getTagClassFieldBuilder(); getOriginKeyFieldBuilder(); } } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; extensionName_ = ""; docString_ = ""; if (tagClassBuilder_ == null) { tagClass_ = java.util.Collections.emptyList(); } else { tagClass_ = null; tagClassBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000004); originKey_ = null; if (originKeyBuilder_ != null) { originKeyBuilder_.dispose(); originKeyBuilder_ = null; } return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.internal_static_stardoc_output_ModuleExtensionInfo_descriptor; } @java.lang.Override public com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.ModuleExtensionInfo getDefaultInstanceForType() { return com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.ModuleExtensionInfo.getDefaultInstance(); } @java.lang.Override public com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.ModuleExtensionInfo build() { com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.ModuleExtensionInfo result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.ModuleExtensionInfo buildPartial() { com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.ModuleExtensionInfo result = new com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.ModuleExtensionInfo(this); buildPartialRepeatedFields(result); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartialRepeatedFields(com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.ModuleExtensionInfo result) { if (tagClassBuilder_ == null) { if (((bitField0_ & 0x00000004) != 0)) { tagClass_ = java.util.Collections.unmodifiableList(tagClass_); bitField0_ = (bitField0_ & ~0x00000004); } result.tagClass_ = tagClass_; } else { result.tagClass_ = tagClassBuilder_.build(); } } private void buildPartial0(com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.ModuleExtensionInfo result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.extensionName_ = extensionName_; } if (((from_bitField0_ & 0x00000002) != 0)) { result.docString_ = docString_; } int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000008) != 0)) { result.originKey_ = originKeyBuilder_ == null ? originKey_ : originKeyBuilder_.build(); to_bitField0_ |= 0x00000001; } result.bitField0_ |= to_bitField0_; } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.ModuleExtensionInfo) { return mergeFrom((com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.ModuleExtensionInfo)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.ModuleExtensionInfo other) { if (other == com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.ModuleExtensionInfo.getDefaultInstance()) return this; if (!other.getExtensionName().isEmpty()) { extensionName_ = other.extensionName_; bitField0_ |= 0x00000001; onChanged(); } if (!other.getDocString().isEmpty()) { docString_ = other.docString_; bitField0_ |= 0x00000002; onChanged(); } if (tagClassBuilder_ == null) { if (!other.tagClass_.isEmpty()) { if (tagClass_.isEmpty()) { tagClass_ = other.tagClass_; bitField0_ = (bitField0_ & ~0x00000004); } else { ensureTagClassIsMutable(); tagClass_.addAll(other.tagClass_); } onChanged(); } } else { if (!other.tagClass_.isEmpty()) { if (tagClassBuilder_.isEmpty()) { tagClassBuilder_.dispose(); tagClassBuilder_ = null; tagClass_ = other.tagClass_; bitField0_ = (bitField0_ & ~0x00000004); tagClassBuilder_ = com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ? getTagClassFieldBuilder() : null; } else { tagClassBuilder_.addAllMessages(other.tagClass_); } } } if (other.hasOriginKey()) { mergeOriginKey(other.getOriginKey()); } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { return true; } @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 10: { extensionName_ = input.readStringRequireUtf8(); bitField0_ |= 0x00000001; break; } // case 10 case 18: { docString_ = input.readStringRequireUtf8(); bitField0_ |= 0x00000002; break; } // case 18 case 26: { com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.ModuleExtensionTagClassInfo m = input.readMessage( com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.ModuleExtensionTagClassInfo.parser(), extensionRegistry); if (tagClassBuilder_ == null) { ensureTagClassIsMutable(); tagClass_.add(m); } else { tagClassBuilder_.addMessage(m); } break; } // case 26 case 34: { input.readMessage( getOriginKeyFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00000008; break; } // case 34 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { done = true; // was an endgroup tag } break; } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.unwrapIOException(); } finally { onChanged(); } // finally return this; } private int bitField0_; private java.lang.Object extensionName_ = ""; /** *
       * The name under which the extension is made accessible to a user of this
       * Starlark module.
       * 
* * string extension_name = 1; * @return The extensionName. */ public java.lang.String getExtensionName() { java.lang.Object ref = extensionName_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); extensionName_ = s; return s; } else { return (java.lang.String) ref; } } /** *
       * The name under which the extension is made accessible to a user of this
       * Starlark module.
       * 
* * string extension_name = 1; * @return The bytes for extensionName. */ public com.google.protobuf.ByteString getExtensionNameBytes() { java.lang.Object ref = extensionName_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); extensionName_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
       * The name under which the extension is made accessible to a user of this
       * Starlark module.
       * 
* * string extension_name = 1; * @param value The extensionName to set. * @return This builder for chaining. */ public Builder setExtensionName( java.lang.String value) { if (value == null) { throw new NullPointerException(); } extensionName_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** *
       * The name under which the extension is made accessible to a user of this
       * Starlark module.
       * 
* * string extension_name = 1; * @return This builder for chaining. */ public Builder clearExtensionName() { extensionName_ = getDefaultInstance().getExtensionName(); bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } /** *
       * The name under which the extension is made accessible to a user of this
       * Starlark module.
       * 
* * string extension_name = 1; * @param value The bytes for extensionName to set. * @return This builder for chaining. */ public Builder setExtensionNameBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); extensionName_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } private java.lang.Object docString_ = ""; /** *
       * The documentation string of the extension.
       * 
* * string doc_string = 2; * @return The docString. */ public java.lang.String getDocString() { java.lang.Object ref = docString_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); docString_ = s; return s; } else { return (java.lang.String) ref; } } /** *
       * The documentation string of the extension.
       * 
* * string doc_string = 2; * @return The bytes for docString. */ public com.google.protobuf.ByteString getDocStringBytes() { java.lang.Object ref = docString_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); docString_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
       * The documentation string of the extension.
       * 
* * string doc_string = 2; * @param value The docString to set. * @return This builder for chaining. */ public Builder setDocString( java.lang.String value) { if (value == null) { throw new NullPointerException(); } docString_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** *
       * The documentation string of the extension.
       * 
* * string doc_string = 2; * @return This builder for chaining. */ public Builder clearDocString() { docString_ = getDefaultInstance().getDocString(); bitField0_ = (bitField0_ & ~0x00000002); onChanged(); return this; } /** *
       * The documentation string of the extension.
       * 
* * string doc_string = 2; * @param value The bytes for docString to set. * @return This builder for chaining. */ public Builder setDocStringBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); docString_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } private java.util.List tagClass_ = java.util.Collections.emptyList(); private void ensureTagClassIsMutable() { if (!((bitField0_ & 0x00000004) != 0)) { tagClass_ = new java.util.ArrayList(tagClass_); bitField0_ |= 0x00000004; } } private com.google.protobuf.RepeatedFieldBuilder< com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.ModuleExtensionTagClassInfo, com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.ModuleExtensionTagClassInfo.Builder, com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.ModuleExtensionTagClassInfoOrBuilder> tagClassBuilder_; /** *
       * The tag classes of the extension.
       * 
* * repeated .stardoc_output.ModuleExtensionTagClassInfo tag_class = 3; */ public java.util.List getTagClassList() { if (tagClassBuilder_ == null) { return java.util.Collections.unmodifiableList(tagClass_); } else { return tagClassBuilder_.getMessageList(); } } /** *
       * The tag classes of the extension.
       * 
* * repeated .stardoc_output.ModuleExtensionTagClassInfo tag_class = 3; */ public int getTagClassCount() { if (tagClassBuilder_ == null) { return tagClass_.size(); } else { return tagClassBuilder_.getCount(); } } /** *
       * The tag classes of the extension.
       * 
* * repeated .stardoc_output.ModuleExtensionTagClassInfo tag_class = 3; */ public com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.ModuleExtensionTagClassInfo getTagClass(int index) { if (tagClassBuilder_ == null) { return tagClass_.get(index); } else { return tagClassBuilder_.getMessage(index); } } /** *
       * The tag classes of the extension.
       * 
* * repeated .stardoc_output.ModuleExtensionTagClassInfo tag_class = 3; */ public Builder setTagClass( int index, com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.ModuleExtensionTagClassInfo value) { if (tagClassBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureTagClassIsMutable(); tagClass_.set(index, value); onChanged(); } else { tagClassBuilder_.setMessage(index, value); } return this; } /** *
       * The tag classes of the extension.
       * 
* * repeated .stardoc_output.ModuleExtensionTagClassInfo tag_class = 3; */ public Builder setTagClass( int index, com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.ModuleExtensionTagClassInfo.Builder builderForValue) { if (tagClassBuilder_ == null) { ensureTagClassIsMutable(); tagClass_.set(index, builderForValue.build()); onChanged(); } else { tagClassBuilder_.setMessage(index, builderForValue.build()); } return this; } /** *
       * The tag classes of the extension.
       * 
* * repeated .stardoc_output.ModuleExtensionTagClassInfo tag_class = 3; */ public Builder addTagClass(com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.ModuleExtensionTagClassInfo value) { if (tagClassBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureTagClassIsMutable(); tagClass_.add(value); onChanged(); } else { tagClassBuilder_.addMessage(value); } return this; } /** *
       * The tag classes of the extension.
       * 
* * repeated .stardoc_output.ModuleExtensionTagClassInfo tag_class = 3; */ public Builder addTagClass( int index, com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.ModuleExtensionTagClassInfo value) { if (tagClassBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureTagClassIsMutable(); tagClass_.add(index, value); onChanged(); } else { tagClassBuilder_.addMessage(index, value); } return this; } /** *
       * The tag classes of the extension.
       * 
* * repeated .stardoc_output.ModuleExtensionTagClassInfo tag_class = 3; */ public Builder addTagClass( com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.ModuleExtensionTagClassInfo.Builder builderForValue) { if (tagClassBuilder_ == null) { ensureTagClassIsMutable(); tagClass_.add(builderForValue.build()); onChanged(); } else { tagClassBuilder_.addMessage(builderForValue.build()); } return this; } /** *
       * The tag classes of the extension.
       * 
* * repeated .stardoc_output.ModuleExtensionTagClassInfo tag_class = 3; */ public Builder addTagClass( int index, com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.ModuleExtensionTagClassInfo.Builder builderForValue) { if (tagClassBuilder_ == null) { ensureTagClassIsMutable(); tagClass_.add(index, builderForValue.build()); onChanged(); } else { tagClassBuilder_.addMessage(index, builderForValue.build()); } return this; } /** *
       * The tag classes of the extension.
       * 
* * repeated .stardoc_output.ModuleExtensionTagClassInfo tag_class = 3; */ public Builder addAllTagClass( java.lang.Iterable values) { if (tagClassBuilder_ == null) { ensureTagClassIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, tagClass_); onChanged(); } else { tagClassBuilder_.addAllMessages(values); } return this; } /** *
       * The tag classes of the extension.
       * 
* * repeated .stardoc_output.ModuleExtensionTagClassInfo tag_class = 3; */ public Builder clearTagClass() { if (tagClassBuilder_ == null) { tagClass_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000004); onChanged(); } else { tagClassBuilder_.clear(); } return this; } /** *
       * The tag classes of the extension.
       * 
* * repeated .stardoc_output.ModuleExtensionTagClassInfo tag_class = 3; */ public Builder removeTagClass(int index) { if (tagClassBuilder_ == null) { ensureTagClassIsMutable(); tagClass_.remove(index); onChanged(); } else { tagClassBuilder_.remove(index); } return this; } /** *
       * The tag classes of the extension.
       * 
* * repeated .stardoc_output.ModuleExtensionTagClassInfo tag_class = 3; */ public com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.ModuleExtensionTagClassInfo.Builder getTagClassBuilder( int index) { return getTagClassFieldBuilder().getBuilder(index); } /** *
       * The tag classes of the extension.
       * 
* * repeated .stardoc_output.ModuleExtensionTagClassInfo tag_class = 3; */ public com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.ModuleExtensionTagClassInfoOrBuilder getTagClassOrBuilder( int index) { if (tagClassBuilder_ == null) { return tagClass_.get(index); } else { return tagClassBuilder_.getMessageOrBuilder(index); } } /** *
       * The tag classes of the extension.
       * 
* * repeated .stardoc_output.ModuleExtensionTagClassInfo tag_class = 3; */ public java.util.List getTagClassOrBuilderList() { if (tagClassBuilder_ != null) { return tagClassBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(tagClass_); } } /** *
       * The tag classes of the extension.
       * 
* * repeated .stardoc_output.ModuleExtensionTagClassInfo tag_class = 3; */ public com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.ModuleExtensionTagClassInfo.Builder addTagClassBuilder() { return getTagClassFieldBuilder().addBuilder( com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.ModuleExtensionTagClassInfo.getDefaultInstance()); } /** *
       * The tag classes of the extension.
       * 
* * repeated .stardoc_output.ModuleExtensionTagClassInfo tag_class = 3; */ public com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.ModuleExtensionTagClassInfo.Builder addTagClassBuilder( int index) { return getTagClassFieldBuilder().addBuilder( index, com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.ModuleExtensionTagClassInfo.getDefaultInstance()); } /** *
       * The tag classes of the extension.
       * 
* * repeated .stardoc_output.ModuleExtensionTagClassInfo tag_class = 3; */ public java.util.List getTagClassBuilderList() { return getTagClassFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilder< com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.ModuleExtensionTagClassInfo, com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.ModuleExtensionTagClassInfo.Builder, com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.ModuleExtensionTagClassInfoOrBuilder> getTagClassFieldBuilder() { if (tagClassBuilder_ == null) { tagClassBuilder_ = new com.google.protobuf.RepeatedFieldBuilder< com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.ModuleExtensionTagClassInfo, com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.ModuleExtensionTagClassInfo.Builder, com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.ModuleExtensionTagClassInfoOrBuilder>( tagClass_, ((bitField0_ & 0x00000004) != 0), getParentForChildren(), isClean()); tagClass_ = null; } return tagClassBuilder_; } private com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.OriginKey originKey_; private com.google.protobuf.SingleFieldBuilder< com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.OriginKey, com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.OriginKey.Builder, com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.OriginKeyOrBuilder> originKeyBuilder_; /** *
       * The Starlark module where the Bazel module extension was originally
       * declared; origin_key.name is currently never set.
       * TODO(arostovtsev): attempt to retrieve the name under which the module
       * extension was originally declared if it was declared as a global.
       * 
* * .stardoc_output.OriginKey origin_key = 4; * @return Whether the originKey field is set. */ public boolean hasOriginKey() { return ((bitField0_ & 0x00000008) != 0); } /** *
       * The Starlark module where the Bazel module extension was originally
       * declared; origin_key.name is currently never set.
       * TODO(arostovtsev): attempt to retrieve the name under which the module
       * extension was originally declared if it was declared as a global.
       * 
* * .stardoc_output.OriginKey origin_key = 4; * @return The originKey. */ public com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.OriginKey getOriginKey() { if (originKeyBuilder_ == null) { return originKey_ == null ? com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.OriginKey.getDefaultInstance() : originKey_; } else { return originKeyBuilder_.getMessage(); } } /** *
       * The Starlark module where the Bazel module extension was originally
       * declared; origin_key.name is currently never set.
       * TODO(arostovtsev): attempt to retrieve the name under which the module
       * extension was originally declared if it was declared as a global.
       * 
* * .stardoc_output.OriginKey origin_key = 4; */ public Builder setOriginKey(com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.OriginKey value) { if (originKeyBuilder_ == null) { if (value == null) { throw new NullPointerException(); } originKey_ = value; } else { originKeyBuilder_.setMessage(value); } bitField0_ |= 0x00000008; onChanged(); return this; } /** *
       * The Starlark module where the Bazel module extension was originally
       * declared; origin_key.name is currently never set.
       * TODO(arostovtsev): attempt to retrieve the name under which the module
       * extension was originally declared if it was declared as a global.
       * 
* * .stardoc_output.OriginKey origin_key = 4; */ public Builder setOriginKey( com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.OriginKey.Builder builderForValue) { if (originKeyBuilder_ == null) { originKey_ = builderForValue.build(); } else { originKeyBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000008; onChanged(); return this; } /** *
       * The Starlark module where the Bazel module extension was originally
       * declared; origin_key.name is currently never set.
       * TODO(arostovtsev): attempt to retrieve the name under which the module
       * extension was originally declared if it was declared as a global.
       * 
* * .stardoc_output.OriginKey origin_key = 4; */ public Builder mergeOriginKey(com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.OriginKey value) { if (originKeyBuilder_ == null) { if (((bitField0_ & 0x00000008) != 0) && originKey_ != null && originKey_ != com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.OriginKey.getDefaultInstance()) { getOriginKeyBuilder().mergeFrom(value); } else { originKey_ = value; } } else { originKeyBuilder_.mergeFrom(value); } if (originKey_ != null) { bitField0_ |= 0x00000008; onChanged(); } return this; } /** *
       * The Starlark module where the Bazel module extension was originally
       * declared; origin_key.name is currently never set.
       * TODO(arostovtsev): attempt to retrieve the name under which the module
       * extension was originally declared if it was declared as a global.
       * 
* * .stardoc_output.OriginKey origin_key = 4; */ public Builder clearOriginKey() { bitField0_ = (bitField0_ & ~0x00000008); originKey_ = null; if (originKeyBuilder_ != null) { originKeyBuilder_.dispose(); originKeyBuilder_ = null; } onChanged(); return this; } /** *
       * The Starlark module where the Bazel module extension was originally
       * declared; origin_key.name is currently never set.
       * TODO(arostovtsev): attempt to retrieve the name under which the module
       * extension was originally declared if it was declared as a global.
       * 
* * .stardoc_output.OriginKey origin_key = 4; */ public com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.OriginKey.Builder getOriginKeyBuilder() { bitField0_ |= 0x00000008; onChanged(); return getOriginKeyFieldBuilder().getBuilder(); } /** *
       * The Starlark module where the Bazel module extension was originally
       * declared; origin_key.name is currently never set.
       * TODO(arostovtsev): attempt to retrieve the name under which the module
       * extension was originally declared if it was declared as a global.
       * 
* * .stardoc_output.OriginKey origin_key = 4; */ public com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.OriginKeyOrBuilder getOriginKeyOrBuilder() { if (originKeyBuilder_ != null) { return originKeyBuilder_.getMessageOrBuilder(); } else { return originKey_ == null ? com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.OriginKey.getDefaultInstance() : originKey_; } } /** *
       * The Starlark module where the Bazel module extension was originally
       * declared; origin_key.name is currently never set.
       * TODO(arostovtsev): attempt to retrieve the name under which the module
       * extension was originally declared if it was declared as a global.
       * 
* * .stardoc_output.OriginKey origin_key = 4; */ private com.google.protobuf.SingleFieldBuilder< com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.OriginKey, com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.OriginKey.Builder, com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.OriginKeyOrBuilder> getOriginKeyFieldBuilder() { if (originKeyBuilder_ == null) { originKeyBuilder_ = new com.google.protobuf.SingleFieldBuilder< com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.OriginKey, com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.OriginKey.Builder, com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.OriginKeyOrBuilder>( getOriginKey(), getParentForChildren(), isClean()); originKey_ = null; } return originKeyBuilder_; } // @@protoc_insertion_point(builder_scope:stardoc_output.ModuleExtensionInfo) } // @@protoc_insertion_point(class_scope:stardoc_output.ModuleExtensionInfo) private static final com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.ModuleExtensionInfo DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.ModuleExtensionInfo(); } public static com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.ModuleExtensionInfo getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public ModuleExtensionInfo parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { Builder builder = newBuilder(); try { builder.mergeFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(builder.buildPartial()); } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e) .setUnfinishedMessage(builder.buildPartial()); } return builder.buildPartial(); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override public com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.ModuleExtensionInfo getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface ModuleExtensionTagClassInfoOrBuilder extends // @@protoc_insertion_point(interface_extends:stardoc_output.ModuleExtensionTagClassInfo) com.google.protobuf.MessageOrBuilder { /** *
     * The name of the tag for this tag class.
     * 
* * string tag_name = 1; * @return The tagName. */ java.lang.String getTagName(); /** *
     * The name of the tag for this tag class.
     * 
* * string tag_name = 1; * @return The bytes for tagName. */ com.google.protobuf.ByteString getTagNameBytes(); /** *
     * The documentation string of the tag class.
     * 
* * string doc_string = 2; * @return The docString. */ java.lang.String getDocString(); /** *
     * The documentation string of the tag class.
     * 
* * string doc_string = 2; * @return The bytes for docString. */ com.google.protobuf.ByteString getDocStringBytes(); /** *
     * The tag class's attributes.
     * 
* * repeated .stardoc_output.AttributeInfo attribute = 3; */ java.util.List getAttributeList(); /** *
     * The tag class's attributes.
     * 
* * repeated .stardoc_output.AttributeInfo attribute = 3; */ com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.AttributeInfo getAttribute(int index); /** *
     * The tag class's attributes.
     * 
* * repeated .stardoc_output.AttributeInfo attribute = 3; */ int getAttributeCount(); /** *
     * The tag class's attributes.
     * 
* * repeated .stardoc_output.AttributeInfo attribute = 3; */ java.util.List getAttributeOrBuilderList(); /** *
     * The tag class's attributes.
     * 
* * repeated .stardoc_output.AttributeInfo attribute = 3; */ com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.AttributeInfoOrBuilder getAttributeOrBuilder( int index); } /** *
   * Representation of a Bazel module extension tag class.
   * 
* * Protobuf type {@code stardoc_output.ModuleExtensionTagClassInfo} */ public static final class ModuleExtensionTagClassInfo extends com.google.protobuf.GeneratedMessage implements // @@protoc_insertion_point(message_implements:stardoc_output.ModuleExtensionTagClassInfo) ModuleExtensionTagClassInfoOrBuilder { private static final long serialVersionUID = 0L; static { com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, /* major= */ 4, /* minor= */ 28, /* patch= */ 3, /* suffix= */ "", ModuleExtensionTagClassInfo.class.getName()); } // Use ModuleExtensionTagClassInfo.newBuilder() to construct. private ModuleExtensionTagClassInfo(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); } private ModuleExtensionTagClassInfo() { tagName_ = ""; docString_ = ""; attribute_ = java.util.Collections.emptyList(); } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.internal_static_stardoc_output_ModuleExtensionTagClassInfo_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.internal_static_stardoc_output_ModuleExtensionTagClassInfo_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.ModuleExtensionTagClassInfo.class, com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.ModuleExtensionTagClassInfo.Builder.class); } public static final int TAG_NAME_FIELD_NUMBER = 1; @SuppressWarnings("serial") private volatile java.lang.Object tagName_ = ""; /** *
     * The name of the tag for this tag class.
     * 
* * string tag_name = 1; * @return The tagName. */ @java.lang.Override public java.lang.String getTagName() { java.lang.Object ref = tagName_; 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(); tagName_ = s; return s; } } /** *
     * The name of the tag for this tag class.
     * 
* * string tag_name = 1; * @return The bytes for tagName. */ @java.lang.Override public com.google.protobuf.ByteString getTagNameBytes() { java.lang.Object ref = tagName_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); tagName_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int DOC_STRING_FIELD_NUMBER = 2; @SuppressWarnings("serial") private volatile java.lang.Object docString_ = ""; /** *
     * The documentation string of the tag class.
     * 
* * string doc_string = 2; * @return The docString. */ @java.lang.Override public java.lang.String getDocString() { java.lang.Object ref = docString_; 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(); docString_ = s; return s; } } /** *
     * The documentation string of the tag class.
     * 
* * string doc_string = 2; * @return The bytes for docString. */ @java.lang.Override public com.google.protobuf.ByteString getDocStringBytes() { java.lang.Object ref = docString_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); docString_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int ATTRIBUTE_FIELD_NUMBER = 3; @SuppressWarnings("serial") private java.util.List attribute_; /** *
     * The tag class's attributes.
     * 
* * repeated .stardoc_output.AttributeInfo attribute = 3; */ @java.lang.Override public java.util.List getAttributeList() { return attribute_; } /** *
     * The tag class's attributes.
     * 
* * repeated .stardoc_output.AttributeInfo attribute = 3; */ @java.lang.Override public java.util.List getAttributeOrBuilderList() { return attribute_; } /** *
     * The tag class's attributes.
     * 
* * repeated .stardoc_output.AttributeInfo attribute = 3; */ @java.lang.Override public int getAttributeCount() { return attribute_.size(); } /** *
     * The tag class's attributes.
     * 
* * repeated .stardoc_output.AttributeInfo attribute = 3; */ @java.lang.Override public com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.AttributeInfo getAttribute(int index) { return attribute_.get(index); } /** *
     * The tag class's attributes.
     * 
* * repeated .stardoc_output.AttributeInfo attribute = 3; */ @java.lang.Override public com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.AttributeInfoOrBuilder getAttributeOrBuilder( int index) { return attribute_.get(index); } private byte memoizedIsInitialized = -1; @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessage.isStringEmpty(tagName_)) { com.google.protobuf.GeneratedMessage.writeString(output, 1, tagName_); } if (!com.google.protobuf.GeneratedMessage.isStringEmpty(docString_)) { com.google.protobuf.GeneratedMessage.writeString(output, 2, docString_); } for (int i = 0; i < attribute_.size(); i++) { output.writeMessage(3, attribute_.get(i)); } getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (!com.google.protobuf.GeneratedMessage.isStringEmpty(tagName_)) { size += com.google.protobuf.GeneratedMessage.computeStringSize(1, tagName_); } if (!com.google.protobuf.GeneratedMessage.isStringEmpty(docString_)) { size += com.google.protobuf.GeneratedMessage.computeStringSize(2, docString_); } for (int i = 0; i < attribute_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(3, attribute_.get(i)); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.ModuleExtensionTagClassInfo)) { return super.equals(obj); } com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.ModuleExtensionTagClassInfo other = (com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.ModuleExtensionTagClassInfo) obj; if (!getTagName() .equals(other.getTagName())) return false; if (!getDocString() .equals(other.getDocString())) return false; if (!getAttributeList() .equals(other.getAttributeList())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + TAG_NAME_FIELD_NUMBER; hash = (53 * hash) + getTagName().hashCode(); hash = (37 * hash) + DOC_STRING_FIELD_NUMBER; hash = (53 * hash) + getDocString().hashCode(); if (getAttributeCount() > 0) { hash = (37 * hash) + ATTRIBUTE_FIELD_NUMBER; hash = (53 * hash) + getAttributeList().hashCode(); } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.ModuleExtensionTagClassInfo parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.ModuleExtensionTagClassInfo 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.lib.starlarkdocextract.StardocOutputProtos.ModuleExtensionTagClassInfo parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.ModuleExtensionTagClassInfo 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.lib.starlarkdocextract.StardocOutputProtos.ModuleExtensionTagClassInfo parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.ModuleExtensionTagClassInfo parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.ModuleExtensionTagClassInfo parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessage .parseWithIOException(PARSER, input); } public static com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.ModuleExtensionTagClassInfo parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessage .parseWithIOException(PARSER, input, extensionRegistry); } public static com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.ModuleExtensionTagClassInfo parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessage .parseDelimitedWithIOException(PARSER, input); } public static com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.ModuleExtensionTagClassInfo parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessage .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.ModuleExtensionTagClassInfo parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessage .parseWithIOException(PARSER, input); } public static com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.ModuleExtensionTagClassInfo parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessage .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.ModuleExtensionTagClassInfo prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } @java.lang.Override public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessage.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** *
     * Representation of a Bazel module extension tag class.
     * 
* * Protobuf type {@code stardoc_output.ModuleExtensionTagClassInfo} */ public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder implements // @@protoc_insertion_point(builder_implements:stardoc_output.ModuleExtensionTagClassInfo) com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.ModuleExtensionTagClassInfoOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.internal_static_stardoc_output_ModuleExtensionTagClassInfo_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.internal_static_stardoc_output_ModuleExtensionTagClassInfo_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.ModuleExtensionTagClassInfo.class, com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.ModuleExtensionTagClassInfo.Builder.class); } // Construct using com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.ModuleExtensionTagClassInfo.newBuilder() private Builder() { } private Builder( com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; tagName_ = ""; docString_ = ""; if (attributeBuilder_ == null) { attribute_ = java.util.Collections.emptyList(); } else { attribute_ = null; attributeBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000004); return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.internal_static_stardoc_output_ModuleExtensionTagClassInfo_descriptor; } @java.lang.Override public com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.ModuleExtensionTagClassInfo getDefaultInstanceForType() { return com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.ModuleExtensionTagClassInfo.getDefaultInstance(); } @java.lang.Override public com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.ModuleExtensionTagClassInfo build() { com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.ModuleExtensionTagClassInfo result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.ModuleExtensionTagClassInfo buildPartial() { com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.ModuleExtensionTagClassInfo result = new com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.ModuleExtensionTagClassInfo(this); buildPartialRepeatedFields(result); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartialRepeatedFields(com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.ModuleExtensionTagClassInfo result) { if (attributeBuilder_ == null) { if (((bitField0_ & 0x00000004) != 0)) { attribute_ = java.util.Collections.unmodifiableList(attribute_); bitField0_ = (bitField0_ & ~0x00000004); } result.attribute_ = attribute_; } else { result.attribute_ = attributeBuilder_.build(); } } private void buildPartial0(com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.ModuleExtensionTagClassInfo result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.tagName_ = tagName_; } if (((from_bitField0_ & 0x00000002) != 0)) { result.docString_ = docString_; } } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.ModuleExtensionTagClassInfo) { return mergeFrom((com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.ModuleExtensionTagClassInfo)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.ModuleExtensionTagClassInfo other) { if (other == com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.ModuleExtensionTagClassInfo.getDefaultInstance()) return this; if (!other.getTagName().isEmpty()) { tagName_ = other.tagName_; bitField0_ |= 0x00000001; onChanged(); } if (!other.getDocString().isEmpty()) { docString_ = other.docString_; bitField0_ |= 0x00000002; onChanged(); } if (attributeBuilder_ == null) { if (!other.attribute_.isEmpty()) { if (attribute_.isEmpty()) { attribute_ = other.attribute_; bitField0_ = (bitField0_ & ~0x00000004); } else { ensureAttributeIsMutable(); attribute_.addAll(other.attribute_); } onChanged(); } } else { if (!other.attribute_.isEmpty()) { if (attributeBuilder_.isEmpty()) { attributeBuilder_.dispose(); attributeBuilder_ = null; attribute_ = other.attribute_; bitField0_ = (bitField0_ & ~0x00000004); attributeBuilder_ = com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ? getAttributeFieldBuilder() : null; } else { attributeBuilder_.addAllMessages(other.attribute_); } } } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { return true; } @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 10: { tagName_ = input.readStringRequireUtf8(); bitField0_ |= 0x00000001; break; } // case 10 case 18: { docString_ = input.readStringRequireUtf8(); bitField0_ |= 0x00000002; break; } // case 18 case 26: { com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.AttributeInfo m = input.readMessage( com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.AttributeInfo.parser(), extensionRegistry); if (attributeBuilder_ == null) { ensureAttributeIsMutable(); attribute_.add(m); } else { attributeBuilder_.addMessage(m); } break; } // case 26 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { done = true; // was an endgroup tag } break; } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.unwrapIOException(); } finally { onChanged(); } // finally return this; } private int bitField0_; private java.lang.Object tagName_ = ""; /** *
       * The name of the tag for this tag class.
       * 
* * string tag_name = 1; * @return The tagName. */ public java.lang.String getTagName() { java.lang.Object ref = tagName_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); tagName_ = s; return s; } else { return (java.lang.String) ref; } } /** *
       * The name of the tag for this tag class.
       * 
* * string tag_name = 1; * @return The bytes for tagName. */ public com.google.protobuf.ByteString getTagNameBytes() { java.lang.Object ref = tagName_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); tagName_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
       * The name of the tag for this tag class.
       * 
* * string tag_name = 1; * @param value The tagName to set. * @return This builder for chaining. */ public Builder setTagName( java.lang.String value) { if (value == null) { throw new NullPointerException(); } tagName_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** *
       * The name of the tag for this tag class.
       * 
* * string tag_name = 1; * @return This builder for chaining. */ public Builder clearTagName() { tagName_ = getDefaultInstance().getTagName(); bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } /** *
       * The name of the tag for this tag class.
       * 
* * string tag_name = 1; * @param value The bytes for tagName to set. * @return This builder for chaining. */ public Builder setTagNameBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); tagName_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } private java.lang.Object docString_ = ""; /** *
       * The documentation string of the tag class.
       * 
* * string doc_string = 2; * @return The docString. */ public java.lang.String getDocString() { java.lang.Object ref = docString_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); docString_ = s; return s; } else { return (java.lang.String) ref; } } /** *
       * The documentation string of the tag class.
       * 
* * string doc_string = 2; * @return The bytes for docString. */ public com.google.protobuf.ByteString getDocStringBytes() { java.lang.Object ref = docString_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); docString_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
       * The documentation string of the tag class.
       * 
* * string doc_string = 2; * @param value The docString to set. * @return This builder for chaining. */ public Builder setDocString( java.lang.String value) { if (value == null) { throw new NullPointerException(); } docString_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** *
       * The documentation string of the tag class.
       * 
* * string doc_string = 2; * @return This builder for chaining. */ public Builder clearDocString() { docString_ = getDefaultInstance().getDocString(); bitField0_ = (bitField0_ & ~0x00000002); onChanged(); return this; } /** *
       * The documentation string of the tag class.
       * 
* * string doc_string = 2; * @param value The bytes for docString to set. * @return This builder for chaining. */ public Builder setDocStringBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); docString_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } private java.util.List attribute_ = java.util.Collections.emptyList(); private void ensureAttributeIsMutable() { if (!((bitField0_ & 0x00000004) != 0)) { attribute_ = new java.util.ArrayList(attribute_); bitField0_ |= 0x00000004; } } private com.google.protobuf.RepeatedFieldBuilder< com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.AttributeInfo, com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.AttributeInfo.Builder, com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.AttributeInfoOrBuilder> attributeBuilder_; /** *
       * The tag class's attributes.
       * 
* * repeated .stardoc_output.AttributeInfo attribute = 3; */ public java.util.List getAttributeList() { if (attributeBuilder_ == null) { return java.util.Collections.unmodifiableList(attribute_); } else { return attributeBuilder_.getMessageList(); } } /** *
       * The tag class's attributes.
       * 
* * repeated .stardoc_output.AttributeInfo attribute = 3; */ public int getAttributeCount() { if (attributeBuilder_ == null) { return attribute_.size(); } else { return attributeBuilder_.getCount(); } } /** *
       * The tag class's attributes.
       * 
* * repeated .stardoc_output.AttributeInfo attribute = 3; */ public com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.AttributeInfo getAttribute(int index) { if (attributeBuilder_ == null) { return attribute_.get(index); } else { return attributeBuilder_.getMessage(index); } } /** *
       * The tag class's attributes.
       * 
* * repeated .stardoc_output.AttributeInfo attribute = 3; */ public Builder setAttribute( int index, com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.AttributeInfo value) { if (attributeBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureAttributeIsMutable(); attribute_.set(index, value); onChanged(); } else { attributeBuilder_.setMessage(index, value); } return this; } /** *
       * The tag class's attributes.
       * 
* * repeated .stardoc_output.AttributeInfo attribute = 3; */ public Builder setAttribute( int index, com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.AttributeInfo.Builder builderForValue) { if (attributeBuilder_ == null) { ensureAttributeIsMutable(); attribute_.set(index, builderForValue.build()); onChanged(); } else { attributeBuilder_.setMessage(index, builderForValue.build()); } return this; } /** *
       * The tag class's attributes.
       * 
* * repeated .stardoc_output.AttributeInfo attribute = 3; */ public Builder addAttribute(com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.AttributeInfo value) { if (attributeBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureAttributeIsMutable(); attribute_.add(value); onChanged(); } else { attributeBuilder_.addMessage(value); } return this; } /** *
       * The tag class's attributes.
       * 
* * repeated .stardoc_output.AttributeInfo attribute = 3; */ public Builder addAttribute( int index, com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.AttributeInfo value) { if (attributeBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureAttributeIsMutable(); attribute_.add(index, value); onChanged(); } else { attributeBuilder_.addMessage(index, value); } return this; } /** *
       * The tag class's attributes.
       * 
* * repeated .stardoc_output.AttributeInfo attribute = 3; */ public Builder addAttribute( com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.AttributeInfo.Builder builderForValue) { if (attributeBuilder_ == null) { ensureAttributeIsMutable(); attribute_.add(builderForValue.build()); onChanged(); } else { attributeBuilder_.addMessage(builderForValue.build()); } return this; } /** *
       * The tag class's attributes.
       * 
* * repeated .stardoc_output.AttributeInfo attribute = 3; */ public Builder addAttribute( int index, com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.AttributeInfo.Builder builderForValue) { if (attributeBuilder_ == null) { ensureAttributeIsMutable(); attribute_.add(index, builderForValue.build()); onChanged(); } else { attributeBuilder_.addMessage(index, builderForValue.build()); } return this; } /** *
       * The tag class's attributes.
       * 
* * repeated .stardoc_output.AttributeInfo attribute = 3; */ public Builder addAllAttribute( java.lang.Iterable values) { if (attributeBuilder_ == null) { ensureAttributeIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, attribute_); onChanged(); } else { attributeBuilder_.addAllMessages(values); } return this; } /** *
       * The tag class's attributes.
       * 
* * repeated .stardoc_output.AttributeInfo attribute = 3; */ public Builder clearAttribute() { if (attributeBuilder_ == null) { attribute_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000004); onChanged(); } else { attributeBuilder_.clear(); } return this; } /** *
       * The tag class's attributes.
       * 
* * repeated .stardoc_output.AttributeInfo attribute = 3; */ public Builder removeAttribute(int index) { if (attributeBuilder_ == null) { ensureAttributeIsMutable(); attribute_.remove(index); onChanged(); } else { attributeBuilder_.remove(index); } return this; } /** *
       * The tag class's attributes.
       * 
* * repeated .stardoc_output.AttributeInfo attribute = 3; */ public com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.AttributeInfo.Builder getAttributeBuilder( int index) { return getAttributeFieldBuilder().getBuilder(index); } /** *
       * The tag class's attributes.
       * 
* * repeated .stardoc_output.AttributeInfo attribute = 3; */ public com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.AttributeInfoOrBuilder getAttributeOrBuilder( int index) { if (attributeBuilder_ == null) { return attribute_.get(index); } else { return attributeBuilder_.getMessageOrBuilder(index); } } /** *
       * The tag class's attributes.
       * 
* * repeated .stardoc_output.AttributeInfo attribute = 3; */ public java.util.List getAttributeOrBuilderList() { if (attributeBuilder_ != null) { return attributeBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(attribute_); } } /** *
       * The tag class's attributes.
       * 
* * repeated .stardoc_output.AttributeInfo attribute = 3; */ public com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.AttributeInfo.Builder addAttributeBuilder() { return getAttributeFieldBuilder().addBuilder( com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.AttributeInfo.getDefaultInstance()); } /** *
       * The tag class's attributes.
       * 
* * repeated .stardoc_output.AttributeInfo attribute = 3; */ public com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.AttributeInfo.Builder addAttributeBuilder( int index) { return getAttributeFieldBuilder().addBuilder( index, com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.AttributeInfo.getDefaultInstance()); } /** *
       * The tag class's attributes.
       * 
* * repeated .stardoc_output.AttributeInfo attribute = 3; */ public java.util.List getAttributeBuilderList() { return getAttributeFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilder< com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.AttributeInfo, com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.AttributeInfo.Builder, com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.AttributeInfoOrBuilder> getAttributeFieldBuilder() { if (attributeBuilder_ == null) { attributeBuilder_ = new com.google.protobuf.RepeatedFieldBuilder< com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.AttributeInfo, com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.AttributeInfo.Builder, com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.AttributeInfoOrBuilder>( attribute_, ((bitField0_ & 0x00000004) != 0), getParentForChildren(), isClean()); attribute_ = null; } return attributeBuilder_; } // @@protoc_insertion_point(builder_scope:stardoc_output.ModuleExtensionTagClassInfo) } // @@protoc_insertion_point(class_scope:stardoc_output.ModuleExtensionTagClassInfo) private static final com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.ModuleExtensionTagClassInfo DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.ModuleExtensionTagClassInfo(); } public static com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.ModuleExtensionTagClassInfo getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public ModuleExtensionTagClassInfo parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { Builder builder = newBuilder(); try { builder.mergeFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(builder.buildPartial()); } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e) .setUnfinishedMessage(builder.buildPartial()); } return builder.buildPartial(); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override public com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.ModuleExtensionTagClassInfo getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface RepositoryRuleInfoOrBuilder extends // @@protoc_insertion_point(interface_extends:stardoc_output.RepositoryRuleInfo) com.google.protobuf.MessageOrBuilder { /** *
     * The name under which the repository rule is made accessible to a user of
     * this Starlark module.
     * 
* * string rule_name = 1; * @return The ruleName. */ java.lang.String getRuleName(); /** *
     * The name under which the repository rule is made accessible to a user of
     * this Starlark module.
     * 
* * string rule_name = 1; * @return The bytes for ruleName. */ com.google.protobuf.ByteString getRuleNameBytes(); /** *
     * The documentation string of the repository rule.
     * 
* * string doc_string = 2; * @return The docString. */ java.lang.String getDocString(); /** *
     * The documentation string of the repository rule.
     * 
* * string doc_string = 2; * @return The bytes for docString. */ com.google.protobuf.ByteString getDocStringBytes(); /** *
     * The attributes of the repository rule.
     * 
* * repeated .stardoc_output.AttributeInfo attribute = 3; */ java.util.List getAttributeList(); /** *
     * The attributes of the repository rule.
     * 
* * repeated .stardoc_output.AttributeInfo attribute = 3; */ com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.AttributeInfo getAttribute(int index); /** *
     * The attributes of the repository rule.
     * 
* * repeated .stardoc_output.AttributeInfo attribute = 3; */ int getAttributeCount(); /** *
     * The attributes of the repository rule.
     * 
* * repeated .stardoc_output.AttributeInfo attribute = 3; */ java.util.List getAttributeOrBuilderList(); /** *
     * The attributes of the repository rule.
     * 
* * repeated .stardoc_output.AttributeInfo attribute = 3; */ com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.AttributeInfoOrBuilder getAttributeOrBuilder( int index); /** *
     * Environment variables that this repository rule depends on.
     * 
* * repeated string environ = 4; * @return A list containing the environ. */ java.util.List getEnvironList(); /** *
     * Environment variables that this repository rule depends on.
     * 
* * repeated string environ = 4; * @return The count of environ. */ int getEnvironCount(); /** *
     * Environment variables that this repository rule depends on.
     * 
* * repeated string environ = 4; * @param index The index of the element to return. * @return The environ at the given index. */ java.lang.String getEnviron(int index); /** *
     * Environment variables that this repository rule depends on.
     * 
* * repeated string environ = 4; * @param index The index of the value to return. * @return The bytes of the environ at the given index. */ com.google.protobuf.ByteString getEnvironBytes(int index); /** *
     * The Starlark module where and the name under which the repository rule was
     * originally declared.
     * 
* * .stardoc_output.OriginKey origin_key = 5; * @return Whether the originKey field is set. */ boolean hasOriginKey(); /** *
     * The Starlark module where and the name under which the repository rule was
     * originally declared.
     * 
* * .stardoc_output.OriginKey origin_key = 5; * @return The originKey. */ com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.OriginKey getOriginKey(); /** *
     * The Starlark module where and the name under which the repository rule was
     * originally declared.
     * 
* * .stardoc_output.OriginKey origin_key = 5; */ com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.OriginKeyOrBuilder getOriginKeyOrBuilder(); } /** *
   * Representation of a Bazel repository rule, i.e. the object returned by
   * calling `repository_rule(...)`.
   *
   * Note: legacy Stardoc (0.5.x and earlier) does not emit this message, instead
   * using RuleInfo.
   * 
* * Protobuf type {@code stardoc_output.RepositoryRuleInfo} */ public static final class RepositoryRuleInfo extends com.google.protobuf.GeneratedMessage implements // @@protoc_insertion_point(message_implements:stardoc_output.RepositoryRuleInfo) RepositoryRuleInfoOrBuilder { private static final long serialVersionUID = 0L; static { com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, /* major= */ 4, /* minor= */ 28, /* patch= */ 3, /* suffix= */ "", RepositoryRuleInfo.class.getName()); } // Use RepositoryRuleInfo.newBuilder() to construct. private RepositoryRuleInfo(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); } private RepositoryRuleInfo() { ruleName_ = ""; docString_ = ""; attribute_ = java.util.Collections.emptyList(); environ_ = com.google.protobuf.LazyStringArrayList.emptyList(); } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.internal_static_stardoc_output_RepositoryRuleInfo_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.internal_static_stardoc_output_RepositoryRuleInfo_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.RepositoryRuleInfo.class, com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.RepositoryRuleInfo.Builder.class); } private int bitField0_; public static final int RULE_NAME_FIELD_NUMBER = 1; @SuppressWarnings("serial") private volatile java.lang.Object ruleName_ = ""; /** *
     * The name under which the repository rule is made accessible to a user of
     * this Starlark module.
     * 
* * string rule_name = 1; * @return The ruleName. */ @java.lang.Override public java.lang.String getRuleName() { java.lang.Object ref = ruleName_; 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(); ruleName_ = s; return s; } } /** *
     * The name under which the repository rule is made accessible to a user of
     * this Starlark module.
     * 
* * string rule_name = 1; * @return The bytes for ruleName. */ @java.lang.Override public com.google.protobuf.ByteString getRuleNameBytes() { java.lang.Object ref = ruleName_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); ruleName_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int DOC_STRING_FIELD_NUMBER = 2; @SuppressWarnings("serial") private volatile java.lang.Object docString_ = ""; /** *
     * The documentation string of the repository rule.
     * 
* * string doc_string = 2; * @return The docString. */ @java.lang.Override public java.lang.String getDocString() { java.lang.Object ref = docString_; 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(); docString_ = s; return s; } } /** *
     * The documentation string of the repository rule.
     * 
* * string doc_string = 2; * @return The bytes for docString. */ @java.lang.Override public com.google.protobuf.ByteString getDocStringBytes() { java.lang.Object ref = docString_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); docString_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int ATTRIBUTE_FIELD_NUMBER = 3; @SuppressWarnings("serial") private java.util.List attribute_; /** *
     * The attributes of the repository rule.
     * 
* * repeated .stardoc_output.AttributeInfo attribute = 3; */ @java.lang.Override public java.util.List getAttributeList() { return attribute_; } /** *
     * The attributes of the repository rule.
     * 
* * repeated .stardoc_output.AttributeInfo attribute = 3; */ @java.lang.Override public java.util.List getAttributeOrBuilderList() { return attribute_; } /** *
     * The attributes of the repository rule.
     * 
* * repeated .stardoc_output.AttributeInfo attribute = 3; */ @java.lang.Override public int getAttributeCount() { return attribute_.size(); } /** *
     * The attributes of the repository rule.
     * 
* * repeated .stardoc_output.AttributeInfo attribute = 3; */ @java.lang.Override public com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.AttributeInfo getAttribute(int index) { return attribute_.get(index); } /** *
     * The attributes of the repository rule.
     * 
* * repeated .stardoc_output.AttributeInfo attribute = 3; */ @java.lang.Override public com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.AttributeInfoOrBuilder getAttributeOrBuilder( int index) { return attribute_.get(index); } public static final int ENVIRON_FIELD_NUMBER = 4; @SuppressWarnings("serial") private com.google.protobuf.LazyStringArrayList environ_ = com.google.protobuf.LazyStringArrayList.emptyList(); /** *
     * Environment variables that this repository rule depends on.
     * 
* * repeated string environ = 4; * @return A list containing the environ. */ public com.google.protobuf.ProtocolStringList getEnvironList() { return environ_; } /** *
     * Environment variables that this repository rule depends on.
     * 
* * repeated string environ = 4; * @return The count of environ. */ public int getEnvironCount() { return environ_.size(); } /** *
     * Environment variables that this repository rule depends on.
     * 
* * repeated string environ = 4; * @param index The index of the element to return. * @return The environ at the given index. */ public java.lang.String getEnviron(int index) { return environ_.get(index); } /** *
     * Environment variables that this repository rule depends on.
     * 
* * repeated string environ = 4; * @param index The index of the value to return. * @return The bytes of the environ at the given index. */ public com.google.protobuf.ByteString getEnvironBytes(int index) { return environ_.getByteString(index); } public static final int ORIGIN_KEY_FIELD_NUMBER = 5; private com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.OriginKey originKey_; /** *
     * The Starlark module where and the name under which the repository rule was
     * originally declared.
     * 
* * .stardoc_output.OriginKey origin_key = 5; * @return Whether the originKey field is set. */ @java.lang.Override public boolean hasOriginKey() { return ((bitField0_ & 0x00000001) != 0); } /** *
     * The Starlark module where and the name under which the repository rule was
     * originally declared.
     * 
* * .stardoc_output.OriginKey origin_key = 5; * @return The originKey. */ @java.lang.Override public com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.OriginKey getOriginKey() { return originKey_ == null ? com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.OriginKey.getDefaultInstance() : originKey_; } /** *
     * The Starlark module where and the name under which the repository rule was
     * originally declared.
     * 
* * .stardoc_output.OriginKey origin_key = 5; */ @java.lang.Override public com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.OriginKeyOrBuilder getOriginKeyOrBuilder() { return originKey_ == null ? com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.OriginKey.getDefaultInstance() : originKey_; } 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 (!com.google.protobuf.GeneratedMessage.isStringEmpty(ruleName_)) { com.google.protobuf.GeneratedMessage.writeString(output, 1, ruleName_); } if (!com.google.protobuf.GeneratedMessage.isStringEmpty(docString_)) { com.google.protobuf.GeneratedMessage.writeString(output, 2, docString_); } for (int i = 0; i < attribute_.size(); i++) { output.writeMessage(3, attribute_.get(i)); } for (int i = 0; i < environ_.size(); i++) { com.google.protobuf.GeneratedMessage.writeString(output, 4, environ_.getRaw(i)); } if (((bitField0_ & 0x00000001) != 0)) { output.writeMessage(5, getOriginKey()); } getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (!com.google.protobuf.GeneratedMessage.isStringEmpty(ruleName_)) { size += com.google.protobuf.GeneratedMessage.computeStringSize(1, ruleName_); } if (!com.google.protobuf.GeneratedMessage.isStringEmpty(docString_)) { size += com.google.protobuf.GeneratedMessage.computeStringSize(2, docString_); } for (int i = 0; i < attribute_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(3, attribute_.get(i)); } { int dataSize = 0; for (int i = 0; i < environ_.size(); i++) { dataSize += computeStringSizeNoTag(environ_.getRaw(i)); } size += dataSize; size += 1 * getEnvironList().size(); } if (((bitField0_ & 0x00000001) != 0)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(5, getOriginKey()); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.RepositoryRuleInfo)) { return super.equals(obj); } com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.RepositoryRuleInfo other = (com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.RepositoryRuleInfo) obj; if (!getRuleName() .equals(other.getRuleName())) return false; if (!getDocString() .equals(other.getDocString())) return false; if (!getAttributeList() .equals(other.getAttributeList())) return false; if (!getEnvironList() .equals(other.getEnvironList())) return false; if (hasOriginKey() != other.hasOriginKey()) return false; if (hasOriginKey()) { if (!getOriginKey() .equals(other.getOriginKey())) return false; } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + RULE_NAME_FIELD_NUMBER; hash = (53 * hash) + getRuleName().hashCode(); hash = (37 * hash) + DOC_STRING_FIELD_NUMBER; hash = (53 * hash) + getDocString().hashCode(); if (getAttributeCount() > 0) { hash = (37 * hash) + ATTRIBUTE_FIELD_NUMBER; hash = (53 * hash) + getAttributeList().hashCode(); } if (getEnvironCount() > 0) { hash = (37 * hash) + ENVIRON_FIELD_NUMBER; hash = (53 * hash) + getEnvironList().hashCode(); } if (hasOriginKey()) { hash = (37 * hash) + ORIGIN_KEY_FIELD_NUMBER; hash = (53 * hash) + getOriginKey().hashCode(); } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.RepositoryRuleInfo parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.RepositoryRuleInfo 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.lib.starlarkdocextract.StardocOutputProtos.RepositoryRuleInfo parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.RepositoryRuleInfo 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.lib.starlarkdocextract.StardocOutputProtos.RepositoryRuleInfo parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.RepositoryRuleInfo parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.RepositoryRuleInfo parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessage .parseWithIOException(PARSER, input); } public static com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.RepositoryRuleInfo parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessage .parseWithIOException(PARSER, input, extensionRegistry); } public static com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.RepositoryRuleInfo parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessage .parseDelimitedWithIOException(PARSER, input); } public static com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.RepositoryRuleInfo parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessage .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.RepositoryRuleInfo parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessage .parseWithIOException(PARSER, input); } public static com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.RepositoryRuleInfo parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessage .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.RepositoryRuleInfo prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } @java.lang.Override public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessage.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** *
     * Representation of a Bazel repository rule, i.e. the object returned by
     * calling `repository_rule(...)`.
     *
     * Note: legacy Stardoc (0.5.x and earlier) does not emit this message, instead
     * using RuleInfo.
     * 
* * Protobuf type {@code stardoc_output.RepositoryRuleInfo} */ public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder implements // @@protoc_insertion_point(builder_implements:stardoc_output.RepositoryRuleInfo) com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.RepositoryRuleInfoOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.internal_static_stardoc_output_RepositoryRuleInfo_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.internal_static_stardoc_output_RepositoryRuleInfo_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.RepositoryRuleInfo.class, com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.RepositoryRuleInfo.Builder.class); } // Construct using com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.RepositoryRuleInfo.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessage .alwaysUseFieldBuilders) { getAttributeFieldBuilder(); getOriginKeyFieldBuilder(); } } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; ruleName_ = ""; docString_ = ""; if (attributeBuilder_ == null) { attribute_ = java.util.Collections.emptyList(); } else { attribute_ = null; attributeBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000004); environ_ = com.google.protobuf.LazyStringArrayList.emptyList(); originKey_ = null; if (originKeyBuilder_ != null) { originKeyBuilder_.dispose(); originKeyBuilder_ = null; } return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.internal_static_stardoc_output_RepositoryRuleInfo_descriptor; } @java.lang.Override public com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.RepositoryRuleInfo getDefaultInstanceForType() { return com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.RepositoryRuleInfo.getDefaultInstance(); } @java.lang.Override public com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.RepositoryRuleInfo build() { com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.RepositoryRuleInfo result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.RepositoryRuleInfo buildPartial() { com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.RepositoryRuleInfo result = new com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.RepositoryRuleInfo(this); buildPartialRepeatedFields(result); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartialRepeatedFields(com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.RepositoryRuleInfo result) { if (attributeBuilder_ == null) { if (((bitField0_ & 0x00000004) != 0)) { attribute_ = java.util.Collections.unmodifiableList(attribute_); bitField0_ = (bitField0_ & ~0x00000004); } result.attribute_ = attribute_; } else { result.attribute_ = attributeBuilder_.build(); } } private void buildPartial0(com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.RepositoryRuleInfo result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.ruleName_ = ruleName_; } if (((from_bitField0_ & 0x00000002) != 0)) { result.docString_ = docString_; } if (((from_bitField0_ & 0x00000008) != 0)) { environ_.makeImmutable(); result.environ_ = environ_; } int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000010) != 0)) { result.originKey_ = originKeyBuilder_ == null ? originKey_ : originKeyBuilder_.build(); to_bitField0_ |= 0x00000001; } result.bitField0_ |= to_bitField0_; } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.RepositoryRuleInfo) { return mergeFrom((com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.RepositoryRuleInfo)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.RepositoryRuleInfo other) { if (other == com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.RepositoryRuleInfo.getDefaultInstance()) return this; if (!other.getRuleName().isEmpty()) { ruleName_ = other.ruleName_; bitField0_ |= 0x00000001; onChanged(); } if (!other.getDocString().isEmpty()) { docString_ = other.docString_; bitField0_ |= 0x00000002; onChanged(); } if (attributeBuilder_ == null) { if (!other.attribute_.isEmpty()) { if (attribute_.isEmpty()) { attribute_ = other.attribute_; bitField0_ = (bitField0_ & ~0x00000004); } else { ensureAttributeIsMutable(); attribute_.addAll(other.attribute_); } onChanged(); } } else { if (!other.attribute_.isEmpty()) { if (attributeBuilder_.isEmpty()) { attributeBuilder_.dispose(); attributeBuilder_ = null; attribute_ = other.attribute_; bitField0_ = (bitField0_ & ~0x00000004); attributeBuilder_ = com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ? getAttributeFieldBuilder() : null; } else { attributeBuilder_.addAllMessages(other.attribute_); } } } if (!other.environ_.isEmpty()) { if (environ_.isEmpty()) { environ_ = other.environ_; bitField0_ |= 0x00000008; } else { ensureEnvironIsMutable(); environ_.addAll(other.environ_); } onChanged(); } if (other.hasOriginKey()) { mergeOriginKey(other.getOriginKey()); } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { return true; } @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 10: { ruleName_ = input.readStringRequireUtf8(); bitField0_ |= 0x00000001; break; } // case 10 case 18: { docString_ = input.readStringRequireUtf8(); bitField0_ |= 0x00000002; break; } // case 18 case 26: { com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.AttributeInfo m = input.readMessage( com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.AttributeInfo.parser(), extensionRegistry); if (attributeBuilder_ == null) { ensureAttributeIsMutable(); attribute_.add(m); } else { attributeBuilder_.addMessage(m); } break; } // case 26 case 34: { java.lang.String s = input.readStringRequireUtf8(); ensureEnvironIsMutable(); environ_.add(s); break; } // case 34 case 42: { input.readMessage( getOriginKeyFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00000010; break; } // case 42 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { done = true; // was an endgroup tag } break; } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.unwrapIOException(); } finally { onChanged(); } // finally return this; } private int bitField0_; private java.lang.Object ruleName_ = ""; /** *
       * The name under which the repository rule is made accessible to a user of
       * this Starlark module.
       * 
* * string rule_name = 1; * @return The ruleName. */ public java.lang.String getRuleName() { java.lang.Object ref = ruleName_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); ruleName_ = s; return s; } else { return (java.lang.String) ref; } } /** *
       * The name under which the repository rule is made accessible to a user of
       * this Starlark module.
       * 
* * string rule_name = 1; * @return The bytes for ruleName. */ public com.google.protobuf.ByteString getRuleNameBytes() { java.lang.Object ref = ruleName_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); ruleName_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
       * The name under which the repository rule is made accessible to a user of
       * this Starlark module.
       * 
* * string rule_name = 1; * @param value The ruleName to set. * @return This builder for chaining. */ public Builder setRuleName( java.lang.String value) { if (value == null) { throw new NullPointerException(); } ruleName_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** *
       * The name under which the repository rule is made accessible to a user of
       * this Starlark module.
       * 
* * string rule_name = 1; * @return This builder for chaining. */ public Builder clearRuleName() { ruleName_ = getDefaultInstance().getRuleName(); bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } /** *
       * The name under which the repository rule is made accessible to a user of
       * this Starlark module.
       * 
* * string rule_name = 1; * @param value The bytes for ruleName to set. * @return This builder for chaining. */ public Builder setRuleNameBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); ruleName_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } private java.lang.Object docString_ = ""; /** *
       * The documentation string of the repository rule.
       * 
* * string doc_string = 2; * @return The docString. */ public java.lang.String getDocString() { java.lang.Object ref = docString_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); docString_ = s; return s; } else { return (java.lang.String) ref; } } /** *
       * The documentation string of the repository rule.
       * 
* * string doc_string = 2; * @return The bytes for docString. */ public com.google.protobuf.ByteString getDocStringBytes() { java.lang.Object ref = docString_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); docString_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
       * The documentation string of the repository rule.
       * 
* * string doc_string = 2; * @param value The docString to set. * @return This builder for chaining. */ public Builder setDocString( java.lang.String value) { if (value == null) { throw new NullPointerException(); } docString_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** *
       * The documentation string of the repository rule.
       * 
* * string doc_string = 2; * @return This builder for chaining. */ public Builder clearDocString() { docString_ = getDefaultInstance().getDocString(); bitField0_ = (bitField0_ & ~0x00000002); onChanged(); return this; } /** *
       * The documentation string of the repository rule.
       * 
* * string doc_string = 2; * @param value The bytes for docString to set. * @return This builder for chaining. */ public Builder setDocStringBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); docString_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } private java.util.List attribute_ = java.util.Collections.emptyList(); private void ensureAttributeIsMutable() { if (!((bitField0_ & 0x00000004) != 0)) { attribute_ = new java.util.ArrayList(attribute_); bitField0_ |= 0x00000004; } } private com.google.protobuf.RepeatedFieldBuilder< com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.AttributeInfo, com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.AttributeInfo.Builder, com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.AttributeInfoOrBuilder> attributeBuilder_; /** *
       * The attributes of the repository rule.
       * 
* * repeated .stardoc_output.AttributeInfo attribute = 3; */ public java.util.List getAttributeList() { if (attributeBuilder_ == null) { return java.util.Collections.unmodifiableList(attribute_); } else { return attributeBuilder_.getMessageList(); } } /** *
       * The attributes of the repository rule.
       * 
* * repeated .stardoc_output.AttributeInfo attribute = 3; */ public int getAttributeCount() { if (attributeBuilder_ == null) { return attribute_.size(); } else { return attributeBuilder_.getCount(); } } /** *
       * The attributes of the repository rule.
       * 
* * repeated .stardoc_output.AttributeInfo attribute = 3; */ public com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.AttributeInfo getAttribute(int index) { if (attributeBuilder_ == null) { return attribute_.get(index); } else { return attributeBuilder_.getMessage(index); } } /** *
       * The attributes of the repository rule.
       * 
* * repeated .stardoc_output.AttributeInfo attribute = 3; */ public Builder setAttribute( int index, com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.AttributeInfo value) { if (attributeBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureAttributeIsMutable(); attribute_.set(index, value); onChanged(); } else { attributeBuilder_.setMessage(index, value); } return this; } /** *
       * The attributes of the repository rule.
       * 
* * repeated .stardoc_output.AttributeInfo attribute = 3; */ public Builder setAttribute( int index, com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.AttributeInfo.Builder builderForValue) { if (attributeBuilder_ == null) { ensureAttributeIsMutable(); attribute_.set(index, builderForValue.build()); onChanged(); } else { attributeBuilder_.setMessage(index, builderForValue.build()); } return this; } /** *
       * The attributes of the repository rule.
       * 
* * repeated .stardoc_output.AttributeInfo attribute = 3; */ public Builder addAttribute(com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.AttributeInfo value) { if (attributeBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureAttributeIsMutable(); attribute_.add(value); onChanged(); } else { attributeBuilder_.addMessage(value); } return this; } /** *
       * The attributes of the repository rule.
       * 
* * repeated .stardoc_output.AttributeInfo attribute = 3; */ public Builder addAttribute( int index, com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.AttributeInfo value) { if (attributeBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureAttributeIsMutable(); attribute_.add(index, value); onChanged(); } else { attributeBuilder_.addMessage(index, value); } return this; } /** *
       * The attributes of the repository rule.
       * 
* * repeated .stardoc_output.AttributeInfo attribute = 3; */ public Builder addAttribute( com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.AttributeInfo.Builder builderForValue) { if (attributeBuilder_ == null) { ensureAttributeIsMutable(); attribute_.add(builderForValue.build()); onChanged(); } else { attributeBuilder_.addMessage(builderForValue.build()); } return this; } /** *
       * The attributes of the repository rule.
       * 
* * repeated .stardoc_output.AttributeInfo attribute = 3; */ public Builder addAttribute( int index, com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.AttributeInfo.Builder builderForValue) { if (attributeBuilder_ == null) { ensureAttributeIsMutable(); attribute_.add(index, builderForValue.build()); onChanged(); } else { attributeBuilder_.addMessage(index, builderForValue.build()); } return this; } /** *
       * The attributes of the repository rule.
       * 
* * repeated .stardoc_output.AttributeInfo attribute = 3; */ public Builder addAllAttribute( java.lang.Iterable values) { if (attributeBuilder_ == null) { ensureAttributeIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, attribute_); onChanged(); } else { attributeBuilder_.addAllMessages(values); } return this; } /** *
       * The attributes of the repository rule.
       * 
* * repeated .stardoc_output.AttributeInfo attribute = 3; */ public Builder clearAttribute() { if (attributeBuilder_ == null) { attribute_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000004); onChanged(); } else { attributeBuilder_.clear(); } return this; } /** *
       * The attributes of the repository rule.
       * 
* * repeated .stardoc_output.AttributeInfo attribute = 3; */ public Builder removeAttribute(int index) { if (attributeBuilder_ == null) { ensureAttributeIsMutable(); attribute_.remove(index); onChanged(); } else { attributeBuilder_.remove(index); } return this; } /** *
       * The attributes of the repository rule.
       * 
* * repeated .stardoc_output.AttributeInfo attribute = 3; */ public com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.AttributeInfo.Builder getAttributeBuilder( int index) { return getAttributeFieldBuilder().getBuilder(index); } /** *
       * The attributes of the repository rule.
       * 
* * repeated .stardoc_output.AttributeInfo attribute = 3; */ public com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.AttributeInfoOrBuilder getAttributeOrBuilder( int index) { if (attributeBuilder_ == null) { return attribute_.get(index); } else { return attributeBuilder_.getMessageOrBuilder(index); } } /** *
       * The attributes of the repository rule.
       * 
* * repeated .stardoc_output.AttributeInfo attribute = 3; */ public java.util.List getAttributeOrBuilderList() { if (attributeBuilder_ != null) { return attributeBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(attribute_); } } /** *
       * The attributes of the repository rule.
       * 
* * repeated .stardoc_output.AttributeInfo attribute = 3; */ public com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.AttributeInfo.Builder addAttributeBuilder() { return getAttributeFieldBuilder().addBuilder( com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.AttributeInfo.getDefaultInstance()); } /** *
       * The attributes of the repository rule.
       * 
* * repeated .stardoc_output.AttributeInfo attribute = 3; */ public com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.AttributeInfo.Builder addAttributeBuilder( int index) { return getAttributeFieldBuilder().addBuilder( index, com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.AttributeInfo.getDefaultInstance()); } /** *
       * The attributes of the repository rule.
       * 
* * repeated .stardoc_output.AttributeInfo attribute = 3; */ public java.util.List getAttributeBuilderList() { return getAttributeFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilder< com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.AttributeInfo, com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.AttributeInfo.Builder, com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.AttributeInfoOrBuilder> getAttributeFieldBuilder() { if (attributeBuilder_ == null) { attributeBuilder_ = new com.google.protobuf.RepeatedFieldBuilder< com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.AttributeInfo, com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.AttributeInfo.Builder, com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.AttributeInfoOrBuilder>( attribute_, ((bitField0_ & 0x00000004) != 0), getParentForChildren(), isClean()); attribute_ = null; } return attributeBuilder_; } private com.google.protobuf.LazyStringArrayList environ_ = com.google.protobuf.LazyStringArrayList.emptyList(); private void ensureEnvironIsMutable() { if (!environ_.isModifiable()) { environ_ = new com.google.protobuf.LazyStringArrayList(environ_); } bitField0_ |= 0x00000008; } /** *
       * Environment variables that this repository rule depends on.
       * 
* * repeated string environ = 4; * @return A list containing the environ. */ public com.google.protobuf.ProtocolStringList getEnvironList() { environ_.makeImmutable(); return environ_; } /** *
       * Environment variables that this repository rule depends on.
       * 
* * repeated string environ = 4; * @return The count of environ. */ public int getEnvironCount() { return environ_.size(); } /** *
       * Environment variables that this repository rule depends on.
       * 
* * repeated string environ = 4; * @param index The index of the element to return. * @return The environ at the given index. */ public java.lang.String getEnviron(int index) { return environ_.get(index); } /** *
       * Environment variables that this repository rule depends on.
       * 
* * repeated string environ = 4; * @param index The index of the value to return. * @return The bytes of the environ at the given index. */ public com.google.protobuf.ByteString getEnvironBytes(int index) { return environ_.getByteString(index); } /** *
       * Environment variables that this repository rule depends on.
       * 
* * repeated string environ = 4; * @param index The index to set the value at. * @param value The environ to set. * @return This builder for chaining. */ public Builder setEnviron( int index, java.lang.String value) { if (value == null) { throw new NullPointerException(); } ensureEnvironIsMutable(); environ_.set(index, value); bitField0_ |= 0x00000008; onChanged(); return this; } /** *
       * Environment variables that this repository rule depends on.
       * 
* * repeated string environ = 4; * @param value The environ to add. * @return This builder for chaining. */ public Builder addEnviron( java.lang.String value) { if (value == null) { throw new NullPointerException(); } ensureEnvironIsMutable(); environ_.add(value); bitField0_ |= 0x00000008; onChanged(); return this; } /** *
       * Environment variables that this repository rule depends on.
       * 
* * repeated string environ = 4; * @param values The environ to add. * @return This builder for chaining. */ public Builder addAllEnviron( java.lang.Iterable values) { ensureEnvironIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, environ_); bitField0_ |= 0x00000008; onChanged(); return this; } /** *
       * Environment variables that this repository rule depends on.
       * 
* * repeated string environ = 4; * @return This builder for chaining. */ public Builder clearEnviron() { environ_ = com.google.protobuf.LazyStringArrayList.emptyList(); bitField0_ = (bitField0_ & ~0x00000008);; onChanged(); return this; } /** *
       * Environment variables that this repository rule depends on.
       * 
* * repeated string environ = 4; * @param value The bytes of the environ to add. * @return This builder for chaining. */ public Builder addEnvironBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); ensureEnvironIsMutable(); environ_.add(value); bitField0_ |= 0x00000008; onChanged(); return this; } private com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.OriginKey originKey_; private com.google.protobuf.SingleFieldBuilder< com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.OriginKey, com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.OriginKey.Builder, com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.OriginKeyOrBuilder> originKeyBuilder_; /** *
       * The Starlark module where and the name under which the repository rule was
       * originally declared.
       * 
* * .stardoc_output.OriginKey origin_key = 5; * @return Whether the originKey field is set. */ public boolean hasOriginKey() { return ((bitField0_ & 0x00000010) != 0); } /** *
       * The Starlark module where and the name under which the repository rule was
       * originally declared.
       * 
* * .stardoc_output.OriginKey origin_key = 5; * @return The originKey. */ public com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.OriginKey getOriginKey() { if (originKeyBuilder_ == null) { return originKey_ == null ? com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.OriginKey.getDefaultInstance() : originKey_; } else { return originKeyBuilder_.getMessage(); } } /** *
       * The Starlark module where and the name under which the repository rule was
       * originally declared.
       * 
* * .stardoc_output.OriginKey origin_key = 5; */ public Builder setOriginKey(com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.OriginKey value) { if (originKeyBuilder_ == null) { if (value == null) { throw new NullPointerException(); } originKey_ = value; } else { originKeyBuilder_.setMessage(value); } bitField0_ |= 0x00000010; onChanged(); return this; } /** *
       * The Starlark module where and the name under which the repository rule was
       * originally declared.
       * 
* * .stardoc_output.OriginKey origin_key = 5; */ public Builder setOriginKey( com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.OriginKey.Builder builderForValue) { if (originKeyBuilder_ == null) { originKey_ = builderForValue.build(); } else { originKeyBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000010; onChanged(); return this; } /** *
       * The Starlark module where and the name under which the repository rule was
       * originally declared.
       * 
* * .stardoc_output.OriginKey origin_key = 5; */ public Builder mergeOriginKey(com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.OriginKey value) { if (originKeyBuilder_ == null) { if (((bitField0_ & 0x00000010) != 0) && originKey_ != null && originKey_ != com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.OriginKey.getDefaultInstance()) { getOriginKeyBuilder().mergeFrom(value); } else { originKey_ = value; } } else { originKeyBuilder_.mergeFrom(value); } if (originKey_ != null) { bitField0_ |= 0x00000010; onChanged(); } return this; } /** *
       * The Starlark module where and the name under which the repository rule was
       * originally declared.
       * 
* * .stardoc_output.OriginKey origin_key = 5; */ public Builder clearOriginKey() { bitField0_ = (bitField0_ & ~0x00000010); originKey_ = null; if (originKeyBuilder_ != null) { originKeyBuilder_.dispose(); originKeyBuilder_ = null; } onChanged(); return this; } /** *
       * The Starlark module where and the name under which the repository rule was
       * originally declared.
       * 
* * .stardoc_output.OriginKey origin_key = 5; */ public com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.OriginKey.Builder getOriginKeyBuilder() { bitField0_ |= 0x00000010; onChanged(); return getOriginKeyFieldBuilder().getBuilder(); } /** *
       * The Starlark module where and the name under which the repository rule was
       * originally declared.
       * 
* * .stardoc_output.OriginKey origin_key = 5; */ public com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.OriginKeyOrBuilder getOriginKeyOrBuilder() { if (originKeyBuilder_ != null) { return originKeyBuilder_.getMessageOrBuilder(); } else { return originKey_ == null ? com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.OriginKey.getDefaultInstance() : originKey_; } } /** *
       * The Starlark module where and the name under which the repository rule was
       * originally declared.
       * 
* * .stardoc_output.OriginKey origin_key = 5; */ private com.google.protobuf.SingleFieldBuilder< com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.OriginKey, com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.OriginKey.Builder, com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.OriginKeyOrBuilder> getOriginKeyFieldBuilder() { if (originKeyBuilder_ == null) { originKeyBuilder_ = new com.google.protobuf.SingleFieldBuilder< com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.OriginKey, com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.OriginKey.Builder, com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.OriginKeyOrBuilder>( getOriginKey(), getParentForChildren(), isClean()); originKey_ = null; } return originKeyBuilder_; } // @@protoc_insertion_point(builder_scope:stardoc_output.RepositoryRuleInfo) } // @@protoc_insertion_point(class_scope:stardoc_output.RepositoryRuleInfo) private static final com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.RepositoryRuleInfo DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.RepositoryRuleInfo(); } public static com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.RepositoryRuleInfo getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public RepositoryRuleInfo parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { Builder builder = newBuilder(); try { builder.mergeFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(builder.buildPartial()); } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e) .setUnfinishedMessage(builder.buildPartial()); } return builder.buildPartial(); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override public com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.RepositoryRuleInfo getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface OriginKeyOrBuilder extends // @@protoc_insertion_point(interface_extends:stardoc_output.OriginKey) com.google.protobuf.MessageOrBuilder { /** *
     * The name under which the entity was originally exported. Unset when the
     * entity was not exported in its module.
     * 
* * string name = 1; * @return The name. */ java.lang.String getName(); /** *
     * The name under which the entity was originally exported. Unset when the
     * entity was not exported in its module.
     * 
* * string name = 1; * @return The bytes for name. */ com.google.protobuf.ByteString getNameBytes(); /** *
     * The display form of the label of the module file in which the entity was
     * originally declared (as seen from the starlark_doc_extract or Stardoc
     * target's repo), or "<native>" for Bazel's built-in entities implemented in
     * Java. Unset when there is no module file (such as for legacy struct
     * providers, when the module is a REPL, or in Bazel's internal tests).
     * 
* * string file = 2; * @return The file. */ java.lang.String getFile(); /** *
     * The display form of the label of the module file in which the entity was
     * originally declared (as seen from the starlark_doc_extract or Stardoc
     * target's repo), or "<native>" for Bazel's built-in entities implemented in
     * Java. Unset when there is no module file (such as for legacy struct
     * providers, when the module is a REPL, or in Bazel's internal tests).
     * 
* * string file = 2; * @return The bytes for file. */ com.google.protobuf.ByteString getFileBytes(); } /** *
   * Representation of the origin of a rule, provider, aspect, or function.
   * Intended to be used for building unambiguous cross-references: for example,
   * between an element of a ProviderNameGroup required by a rule attribute and
   * its corresponding ProviderInfo.
   * 
* * Protobuf type {@code stardoc_output.OriginKey} */ public static final class OriginKey extends com.google.protobuf.GeneratedMessage implements // @@protoc_insertion_point(message_implements:stardoc_output.OriginKey) OriginKeyOrBuilder { private static final long serialVersionUID = 0L; static { com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, /* major= */ 4, /* minor= */ 28, /* patch= */ 3, /* suffix= */ "", OriginKey.class.getName()); } // Use OriginKey.newBuilder() to construct. private OriginKey(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); } private OriginKey() { name_ = ""; file_ = ""; } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.internal_static_stardoc_output_OriginKey_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.internal_static_stardoc_output_OriginKey_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.OriginKey.class, com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.OriginKey.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; @SuppressWarnings("serial") private volatile java.lang.Object name_ = ""; /** *
     * The name under which the entity was originally exported. Unset when the
     * entity was not exported in its module.
     * 
* * string name = 1; * @return The name. */ @java.lang.Override 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; } } /** *
     * The name under which the entity was originally exported. Unset when the
     * entity was not exported in its module.
     * 
* * string name = 1; * @return The bytes for name. */ @java.lang.Override 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 FILE_FIELD_NUMBER = 2; @SuppressWarnings("serial") private volatile java.lang.Object file_ = ""; /** *
     * The display form of the label of the module file in which the entity was
     * originally declared (as seen from the starlark_doc_extract or Stardoc
     * target's repo), or "<native>" for Bazel's built-in entities implemented in
     * Java. Unset when there is no module file (such as for legacy struct
     * providers, when the module is a REPL, or in Bazel's internal tests).
     * 
* * string file = 2; * @return The file. */ @java.lang.Override public java.lang.String getFile() { java.lang.Object ref = file_; 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(); file_ = s; return s; } } /** *
     * The display form of the label of the module file in which the entity was
     * originally declared (as seen from the starlark_doc_extract or Stardoc
     * target's repo), or "<native>" for Bazel's built-in entities implemented in
     * Java. Unset when there is no module file (such as for legacy struct
     * providers, when the module is a REPL, or in Bazel's internal tests).
     * 
* * string file = 2; * @return The bytes for file. */ @java.lang.Override public com.google.protobuf.ByteString getFileBytes() { java.lang.Object ref = file_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); file_ = 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 (!com.google.protobuf.GeneratedMessage.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessage.writeString(output, 1, name_); } if (!com.google.protobuf.GeneratedMessage.isStringEmpty(file_)) { com.google.protobuf.GeneratedMessage.writeString(output, 2, file_); } getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (!com.google.protobuf.GeneratedMessage.isStringEmpty(name_)) { size += com.google.protobuf.GeneratedMessage.computeStringSize(1, name_); } if (!com.google.protobuf.GeneratedMessage.isStringEmpty(file_)) { size += com.google.protobuf.GeneratedMessage.computeStringSize(2, file_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.OriginKey)) { return super.equals(obj); } com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.OriginKey other = (com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.OriginKey) obj; if (!getName() .equals(other.getName())) return false; if (!getFile() .equals(other.getFile())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + NAME_FIELD_NUMBER; hash = (53 * hash) + getName().hashCode(); hash = (37 * hash) + FILE_FIELD_NUMBER; hash = (53 * hash) + getFile().hashCode(); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.OriginKey parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.OriginKey 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.lib.starlarkdocextract.StardocOutputProtos.OriginKey parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.OriginKey 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.lib.starlarkdocextract.StardocOutputProtos.OriginKey parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.OriginKey parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.OriginKey parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessage .parseWithIOException(PARSER, input); } public static com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.OriginKey parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessage .parseWithIOException(PARSER, input, extensionRegistry); } public static com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.OriginKey parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessage .parseDelimitedWithIOException(PARSER, input); } public static com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.OriginKey parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessage .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.OriginKey parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessage .parseWithIOException(PARSER, input); } public static com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.OriginKey parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessage .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.OriginKey prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } @java.lang.Override public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessage.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** *
     * Representation of the origin of a rule, provider, aspect, or function.
     * Intended to be used for building unambiguous cross-references: for example,
     * between an element of a ProviderNameGroup required by a rule attribute and
     * its corresponding ProviderInfo.
     * 
* * Protobuf type {@code stardoc_output.OriginKey} */ public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder implements // @@protoc_insertion_point(builder_implements:stardoc_output.OriginKey) com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.OriginKeyOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.internal_static_stardoc_output_OriginKey_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.internal_static_stardoc_output_OriginKey_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.OriginKey.class, com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.OriginKey.Builder.class); } // Construct using com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.OriginKey.newBuilder() private Builder() { } private Builder( com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; name_ = ""; file_ = ""; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.internal_static_stardoc_output_OriginKey_descriptor; } @java.lang.Override public com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.OriginKey getDefaultInstanceForType() { return com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.OriginKey.getDefaultInstance(); } @java.lang.Override public com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.OriginKey build() { com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.OriginKey result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.OriginKey buildPartial() { com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.OriginKey result = new com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.OriginKey(this); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartial0(com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.OriginKey result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.name_ = name_; } if (((from_bitField0_ & 0x00000002) != 0)) { result.file_ = file_; } } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.OriginKey) { return mergeFrom((com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.OriginKey)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.OriginKey other) { if (other == com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.OriginKey.getDefaultInstance()) return this; if (!other.getName().isEmpty()) { name_ = other.name_; bitField0_ |= 0x00000001; onChanged(); } if (!other.getFile().isEmpty()) { file_ = other.file_; bitField0_ |= 0x00000002; onChanged(); } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { return true; } @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 10: { name_ = input.readStringRequireUtf8(); bitField0_ |= 0x00000001; break; } // case 10 case 18: { file_ = input.readStringRequireUtf8(); bitField0_ |= 0x00000002; break; } // case 18 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { done = true; // was an endgroup tag } break; } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.unwrapIOException(); } finally { onChanged(); } // finally return this; } private int bitField0_; private java.lang.Object name_ = ""; /** *
       * The name under which the entity was originally exported. Unset when the
       * entity was not exported in its module.
       * 
* * string name = 1; * @return The name. */ 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; } } /** *
       * The name under which the entity was originally exported. Unset when the
       * entity was not exported in its module.
       * 
* * string name = 1; * @return The bytes for name. */ 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; } } /** *
       * The name under which the entity was originally exported. Unset when the
       * entity was not exported in its module.
       * 
* * string name = 1; * @param value The name to set. * @return This builder for chaining. */ public Builder setName( java.lang.String value) { if (value == null) { throw new NullPointerException(); } name_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** *
       * The name under which the entity was originally exported. Unset when the
       * entity was not exported in its module.
       * 
* * string name = 1; * @return This builder for chaining. */ public Builder clearName() { name_ = getDefaultInstance().getName(); bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } /** *
       * The name under which the entity was originally exported. Unset when the
       * entity was not exported in its module.
       * 
* * string name = 1; * @param value The bytes for name to set. * @return This builder for chaining. */ public Builder setNameBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); name_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } private java.lang.Object file_ = ""; /** *
       * The display form of the label of the module file in which the entity was
       * originally declared (as seen from the starlark_doc_extract or Stardoc
       * target's repo), or "<native>" for Bazel's built-in entities implemented in
       * Java. Unset when there is no module file (such as for legacy struct
       * providers, when the module is a REPL, or in Bazel's internal tests).
       * 
* * string file = 2; * @return The file. */ public java.lang.String getFile() { java.lang.Object ref = file_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); file_ = s; return s; } else { return (java.lang.String) ref; } } /** *
       * The display form of the label of the module file in which the entity was
       * originally declared (as seen from the starlark_doc_extract or Stardoc
       * target's repo), or "<native>" for Bazel's built-in entities implemented in
       * Java. Unset when there is no module file (such as for legacy struct
       * providers, when the module is a REPL, or in Bazel's internal tests).
       * 
* * string file = 2; * @return The bytes for file. */ public com.google.protobuf.ByteString getFileBytes() { java.lang.Object ref = file_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); file_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
       * The display form of the label of the module file in which the entity was
       * originally declared (as seen from the starlark_doc_extract or Stardoc
       * target's repo), or "<native>" for Bazel's built-in entities implemented in
       * Java. Unset when there is no module file (such as for legacy struct
       * providers, when the module is a REPL, or in Bazel's internal tests).
       * 
* * string file = 2; * @param value The file to set. * @return This builder for chaining. */ public Builder setFile( java.lang.String value) { if (value == null) { throw new NullPointerException(); } file_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** *
       * The display form of the label of the module file in which the entity was
       * originally declared (as seen from the starlark_doc_extract or Stardoc
       * target's repo), or "<native>" for Bazel's built-in entities implemented in
       * Java. Unset when there is no module file (such as for legacy struct
       * providers, when the module is a REPL, or in Bazel's internal tests).
       * 
* * string file = 2; * @return This builder for chaining. */ public Builder clearFile() { file_ = getDefaultInstance().getFile(); bitField0_ = (bitField0_ & ~0x00000002); onChanged(); return this; } /** *
       * The display form of the label of the module file in which the entity was
       * originally declared (as seen from the starlark_doc_extract or Stardoc
       * target's repo), or "<native>" for Bazel's built-in entities implemented in
       * Java. Unset when there is no module file (such as for legacy struct
       * providers, when the module is a REPL, or in Bazel's internal tests).
       * 
* * string file = 2; * @param value The bytes for file to set. * @return This builder for chaining. */ public Builder setFileBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); file_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } // @@protoc_insertion_point(builder_scope:stardoc_output.OriginKey) } // @@protoc_insertion_point(class_scope:stardoc_output.OriginKey) private static final com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.OriginKey DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.OriginKey(); } public static com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.OriginKey getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public OriginKey parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { Builder builder = newBuilder(); try { builder.mergeFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(builder.buildPartial()); } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e) .setUnfinishedMessage(builder.buildPartial()); } return builder.buildPartial(); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override public com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.OriginKey getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } private static final com.google.protobuf.Descriptors.Descriptor internal_static_stardoc_output_ModuleInfo_descriptor; private static final com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_stardoc_output_ModuleInfo_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_stardoc_output_RuleInfo_descriptor; private static final com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_stardoc_output_RuleInfo_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_stardoc_output_MacroInfo_descriptor; private static final com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_stardoc_output_MacroInfo_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_stardoc_output_AttributeInfo_descriptor; private static final com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_stardoc_output_AttributeInfo_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_stardoc_output_ProviderNameGroup_descriptor; private static final com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_stardoc_output_ProviderNameGroup_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_stardoc_output_StarlarkFunctionInfo_descriptor; private static final com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_stardoc_output_StarlarkFunctionInfo_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_stardoc_output_FunctionParamInfo_descriptor; private static final com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_stardoc_output_FunctionParamInfo_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_stardoc_output_FunctionReturnInfo_descriptor; private static final com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_stardoc_output_FunctionReturnInfo_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_stardoc_output_FunctionDeprecationInfo_descriptor; private static final com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_stardoc_output_FunctionDeprecationInfo_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_stardoc_output_ProviderFieldInfo_descriptor; private static final com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_stardoc_output_ProviderFieldInfo_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_stardoc_output_ProviderInfo_descriptor; private static final com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_stardoc_output_ProviderInfo_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_stardoc_output_AspectInfo_descriptor; private static final com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_stardoc_output_AspectInfo_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_stardoc_output_ModuleExtensionInfo_descriptor; private static final com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_stardoc_output_ModuleExtensionInfo_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_stardoc_output_ModuleExtensionTagClassInfo_descriptor; private static final com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_stardoc_output_ModuleExtensionTagClassInfo_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_stardoc_output_RepositoryRuleInfo_descriptor; private static final com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_stardoc_output_RepositoryRuleInfo_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_stardoc_output_OriginKey_descriptor; private static final com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_stardoc_output_OriginKey_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\\server/server/src/main/kotlin/org/jetb" + "rains/bsp/bazel/server/sync/proto/stardo" + "c_output.proto\022\016stardoc_output\"\265\003\n\nModul" + "eInfo\022+\n\trule_info\030\001 \003(\0132\030.stardoc_outpu" + "t.RuleInfo\0223\n\rprovider_info\030\002 \003(\0132\034.star" + "doc_output.ProviderInfo\0227\n\tfunc_info\030\003 \003" + "(\0132$.stardoc_output.StarlarkFunctionInfo" + "\022/\n\013aspect_info\030\004 \003(\0132\032.stardoc_output.A" + "spectInfo\022\030\n\020module_docstring\030\005 \001(\t\022\014\n\004f" + "ile\030\006 \001(\t\022B\n\025module_extension_info\030\007 \003(\013" + "2#.stardoc_output.ModuleExtensionInfo\022@\n" + "\024repository_rule_info\030\010 \003(\0132\".stardoc_ou" + "tput.RepositoryRuleInfo\022-\n\nmacro_info\030\t " + "\003(\0132\031.stardoc_output.MacroInfo\"\365\001\n\010RuleI" + "nfo\022\021\n\trule_name\030\001 \001(\t\022\022\n\ndoc_string\030\002 \001" + "(\t\0220\n\tattribute\030\003 \003(\0132\035.stardoc_output.A" + "ttributeInfo\022-\n\norigin_key\030\004 \001(\0132\031.stard" + "oc_output.OriginKey\022?\n\024advertised_provid" + "ers\030\005 \001(\0132!.stardoc_output.ProviderNameG" + "roup\022\014\n\004test\030\006 \001(\010\022\022\n\nexecutable\030\007 \001(\010\"\224" + "\001\n\tMacroInfo\022\022\n\nmacro_name\030\001 \001(\t\022\022\n\ndoc_" + "string\030\002 \001(\t\0220\n\tattribute\030\003 \003(\0132\035.stardo" + "c_output.AttributeInfo\022-\n\norigin_key\030\004 \001" + "(\0132\031.stardoc_output.OriginKey\"\341\001\n\rAttrib" + "uteInfo\022\014\n\004name\030\001 \001(\t\022\022\n\ndoc_string\030\002 \001(" + "\t\022+\n\004type\030\003 \001(\0162\035.stardoc_output.Attribu" + "teType\022\021\n\tmandatory\030\004 \001(\010\022>\n\023provider_na" + "me_group\030\005 \003(\0132!.stardoc_output.Provider" + "NameGroup\022\025\n\rdefault_value\030\006 \001(\t\022\027\n\017nonc" + "onfigurable\030\007 \001(\010\"Y\n\021ProviderNameGroup\022\025" + "\n\rprovider_name\030\001 \003(\t\022-\n\norigin_key\030\002 \003(" + "\0132\031.stardoc_output.OriginKey\"\227\002\n\024Starlar" + "kFunctionInfo\022\025\n\rfunction_name\030\001 \001(\t\0224\n\t" + "parameter\030\002 \003(\0132!.stardoc_output.Functio" + "nParamInfo\022\022\n\ndoc_string\030\003 \001(\t\0222\n\006return" + "\030\004 \001(\0132\".stardoc_output.FunctionReturnIn" + "fo\022;\n\ndeprecated\030\005 \001(\0132\'.stardoc_output." + "FunctionDeprecationInfo\022-\n\norigin_key\030\006 " + "\001(\0132\031.stardoc_output.OriginKey\"\220\001\n\021Funct" + "ionParamInfo\022\014\n\004name\030\001 \001(\t\022\022\n\ndoc_string" + "\030\002 \001(\t\022\025\n\rdefault_value\030\003 \001(\t\022\021\n\tmandato" + "ry\030\004 \001(\010\022/\n\004role\030\005 \001(\0162!.stardoc_output." + "FunctionParamRole\"(\n\022FunctionReturnInfo\022" + "\022\n\ndoc_string\030\001 \001(\t\"-\n\027FunctionDeprecati" + "onInfo\022\022\n\ndoc_string\030\001 \001(\t\"5\n\021ProviderFi" + "eldInfo\022\014\n\004name\030\001 \001(\t\022\022\n\ndoc_string\030\002 \001(" + "\t\"\323\001\n\014ProviderInfo\022\025\n\rprovider_name\030\001 \001(" + "\t\022\022\n\ndoc_string\030\002 \001(\t\0225\n\nfield_info\030\003 \003(" + "\0132!.stardoc_output.ProviderFieldInfo\022-\n\n" + "origin_key\030\004 \001(\0132\031.stardoc_output.Origin" + "Key\0222\n\004init\030\005 \001(\0132$.stardoc_output.Starl" + "arkFunctionInfo\"\260\001\n\nAspectInfo\022\023\n\013aspect" + "_name\030\001 \001(\t\022\022\n\ndoc_string\030\002 \001(\t\022\030\n\020aspec" + "t_attribute\030\003 \003(\t\0220\n\tattribute\030\004 \003(\0132\035.s" + "tardoc_output.AttributeInfo\022-\n\norigin_ke" + "y\030\005 \001(\0132\031.stardoc_output.OriginKey\"\260\001\n\023M" + "oduleExtensionInfo\022\026\n\016extension_name\030\001 \001" + "(\t\022\022\n\ndoc_string\030\002 \001(\t\022>\n\ttag_class\030\003 \003(" + "\0132+.stardoc_output.ModuleExtensionTagCla" + "ssInfo\022-\n\norigin_key\030\004 \001(\0132\031.stardoc_out" + "put.OriginKey\"u\n\033ModuleExtensionTagClass" + "Info\022\020\n\010tag_name\030\001 \001(\t\022\022\n\ndoc_string\030\002 \001" + "(\t\0220\n\tattribute\030\003 \003(\0132\035.stardoc_output.A" + "ttributeInfo\"\255\001\n\022RepositoryRuleInfo\022\021\n\tr" + "ule_name\030\001 \001(\t\022\022\n\ndoc_string\030\002 \001(\t\0220\n\tat" + "tribute\030\003 \003(\0132\035.stardoc_output.Attribute" + "Info\022\017\n\007environ\030\004 \003(\t\022-\n\norigin_key\030\005 \001(" + "\0132\031.stardoc_output.OriginKey\"\'\n\tOriginKe" + "y\022\014\n\004name\030\001 \001(\t\022\014\n\004file\030\002 \001(\t*\363\001\n\rAttrib" + "uteType\022\013\n\007UNKNOWN\020\000\022\010\n\004NAME\020\001\022\007\n\003INT\020\002\022" + "\t\n\005LABEL\020\003\022\n\n\006STRING\020\004\022\017\n\013STRING_LIST\020\005\022" + "\014\n\010INT_LIST\020\006\022\016\n\nLABEL_LIST\020\007\022\013\n\007BOOLEAN" + "\020\010\022\025\n\021LABEL_STRING_DICT\020\t\022\017\n\013STRING_DICT" + "\020\n\022\024\n\020STRING_LIST_DICT\020\013\022\n\n\006OUTPUT\020\014\022\017\n\013" + "OUTPUT_LIST\020\r\022\024\n\020LABEL_DICT_UNARY\020\016*\264\001\n\021" + "FunctionParamRole\022\032\n\026PARAM_ROLE_UNSPECIF" + "IED\020\000\022\027\n\023PARAM_ROLE_ORDINARY\020\001\022\036\n\032PARAM_" + "ROLE_POSITIONAL_ONLY\020\002\022\033\n\027PARAM_ROLE_KEY" + "WORD_ONLY\020\003\022\026\n\022PARAM_ROLE_VARARGS\020\004\022\025\n\021P" + "ARAM_ROLE_KWARGS\020\005BG\n0com.google.devtool" + "s.build.lib.starlarkdocextractB\023StardocO" + "utputProtosb\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor .internalBuildGeneratedFileFrom(descriptorData, new com.google.protobuf.Descriptors.FileDescriptor[] { }); internal_static_stardoc_output_ModuleInfo_descriptor = getDescriptor().getMessageTypes().get(0); internal_static_stardoc_output_ModuleInfo_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_stardoc_output_ModuleInfo_descriptor, new java.lang.String[] { "RuleInfo", "ProviderInfo", "FuncInfo", "AspectInfo", "ModuleDocstring", "File", "ModuleExtensionInfo", "RepositoryRuleInfo", "MacroInfo", }); internal_static_stardoc_output_RuleInfo_descriptor = getDescriptor().getMessageTypes().get(1); internal_static_stardoc_output_RuleInfo_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_stardoc_output_RuleInfo_descriptor, new java.lang.String[] { "RuleName", "DocString", "Attribute", "OriginKey", "AdvertisedProviders", "Test", "Executable", }); internal_static_stardoc_output_MacroInfo_descriptor = getDescriptor().getMessageTypes().get(2); internal_static_stardoc_output_MacroInfo_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_stardoc_output_MacroInfo_descriptor, new java.lang.String[] { "MacroName", "DocString", "Attribute", "OriginKey", }); internal_static_stardoc_output_AttributeInfo_descriptor = getDescriptor().getMessageTypes().get(3); internal_static_stardoc_output_AttributeInfo_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_stardoc_output_AttributeInfo_descriptor, new java.lang.String[] { "Name", "DocString", "Type", "Mandatory", "ProviderNameGroup", "DefaultValue", "Nonconfigurable", }); internal_static_stardoc_output_ProviderNameGroup_descriptor = getDescriptor().getMessageTypes().get(4); internal_static_stardoc_output_ProviderNameGroup_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_stardoc_output_ProviderNameGroup_descriptor, new java.lang.String[] { "ProviderName", "OriginKey", }); internal_static_stardoc_output_StarlarkFunctionInfo_descriptor = getDescriptor().getMessageTypes().get(5); internal_static_stardoc_output_StarlarkFunctionInfo_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_stardoc_output_StarlarkFunctionInfo_descriptor, new java.lang.String[] { "FunctionName", "Parameter", "DocString", "Return", "Deprecated", "OriginKey", }); internal_static_stardoc_output_FunctionParamInfo_descriptor = getDescriptor().getMessageTypes().get(6); internal_static_stardoc_output_FunctionParamInfo_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_stardoc_output_FunctionParamInfo_descriptor, new java.lang.String[] { "Name", "DocString", "DefaultValue", "Mandatory", "Role", }); internal_static_stardoc_output_FunctionReturnInfo_descriptor = getDescriptor().getMessageTypes().get(7); internal_static_stardoc_output_FunctionReturnInfo_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_stardoc_output_FunctionReturnInfo_descriptor, new java.lang.String[] { "DocString", }); internal_static_stardoc_output_FunctionDeprecationInfo_descriptor = getDescriptor().getMessageTypes().get(8); internal_static_stardoc_output_FunctionDeprecationInfo_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_stardoc_output_FunctionDeprecationInfo_descriptor, new java.lang.String[] { "DocString", }); internal_static_stardoc_output_ProviderFieldInfo_descriptor = getDescriptor().getMessageTypes().get(9); internal_static_stardoc_output_ProviderFieldInfo_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_stardoc_output_ProviderFieldInfo_descriptor, new java.lang.String[] { "Name", "DocString", }); internal_static_stardoc_output_ProviderInfo_descriptor = getDescriptor().getMessageTypes().get(10); internal_static_stardoc_output_ProviderInfo_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_stardoc_output_ProviderInfo_descriptor, new java.lang.String[] { "ProviderName", "DocString", "FieldInfo", "OriginKey", "Init", }); internal_static_stardoc_output_AspectInfo_descriptor = getDescriptor().getMessageTypes().get(11); internal_static_stardoc_output_AspectInfo_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_stardoc_output_AspectInfo_descriptor, new java.lang.String[] { "AspectName", "DocString", "AspectAttribute", "Attribute", "OriginKey", }); internal_static_stardoc_output_ModuleExtensionInfo_descriptor = getDescriptor().getMessageTypes().get(12); internal_static_stardoc_output_ModuleExtensionInfo_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_stardoc_output_ModuleExtensionInfo_descriptor, new java.lang.String[] { "ExtensionName", "DocString", "TagClass", "OriginKey", }); internal_static_stardoc_output_ModuleExtensionTagClassInfo_descriptor = getDescriptor().getMessageTypes().get(13); internal_static_stardoc_output_ModuleExtensionTagClassInfo_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_stardoc_output_ModuleExtensionTagClassInfo_descriptor, new java.lang.String[] { "TagName", "DocString", "Attribute", }); internal_static_stardoc_output_RepositoryRuleInfo_descriptor = getDescriptor().getMessageTypes().get(14); internal_static_stardoc_output_RepositoryRuleInfo_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_stardoc_output_RepositoryRuleInfo_descriptor, new java.lang.String[] { "RuleName", "DocString", "Attribute", "Environ", "OriginKey", }); internal_static_stardoc_output_OriginKey_descriptor = getDescriptor().getMessageTypes().get(15); internal_static_stardoc_output_OriginKey_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_stardoc_output_OriginKey_descriptor, new java.lang.String[] { "Name", "File", }); descriptor.resolveAllFeaturesImmutable(); } // @@protoc_insertion_point(outer_class_scope) }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy