Class StardocOutputProtos.OriginKey.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<StardocOutputProtos.OriginKey.Builder>
com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.OriginKey.Builder
All Implemented Interfaces:
StardocOutputProtos.OriginKeyOrBuilder, com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Cloneable
Enclosing class:
StardocOutputProtos.OriginKey

public static final class StardocOutputProtos.OriginKey.Builder extends com.google.protobuf.GeneratedMessage.Builder<StardocOutputProtos.OriginKey.Builder> implements StardocOutputProtos.OriginKeyOrBuilder
 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 stardoc_output.OriginKey
  • Method Summary

    Modifier and Type
    Method
    Description
     
     
     
    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.
    The name under which the entity was originally exported.
     
    static final com.google.protobuf.Descriptors.Descriptor
     
    com.google.protobuf.Descriptors.Descriptor
     
    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.
    com.google.protobuf.ByteString
    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.
    The name under which the entity was originally exported.
    com.google.protobuf.ByteString
    The name under which the entity was originally exported.
    protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
     
    final boolean
     
     
    mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
     
    mergeFrom(com.google.protobuf.Message other)
     
    setFile(String value)
    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.
    setFileBytes(com.google.protobuf.ByteString value)
    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.
    setName(String value)
    The name under which the entity was originally exported.
    setNameBytes(com.google.protobuf.ByteString value)
    The name under which the entity was originally exported.

    Methods inherited from class com.google.protobuf.GeneratedMessage.Builder

    addRepeatedField, clearField, clearOneof, clone, getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownFields, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setField, setRepeatedField, setUnknownFields, setUnknownFieldSetBuilder, setUnknownFieldsProto3

    Methods inherited from class com.google.protobuf.AbstractMessage.Builder

    findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString

    Methods inherited from class com.google.protobuf.AbstractMessageLite.Builder

    addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageException

    Methods inherited from class java.lang.Object

    equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait

    Methods inherited from interface com.google.protobuf.Message.Builder

    mergeDelimitedFrom, mergeDelimitedFrom

    Methods inherited from interface com.google.protobuf.MessageLite.Builder

    mergeFrom

    Methods inherited from interface com.google.protobuf.MessageOrBuilder

    findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
  • Method Details

    • getDescriptor

      public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
    • internalGetFieldAccessorTable

      protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
      Specified by:
      internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessage.Builder<StardocOutputProtos.OriginKey.Builder>
    • clear

      Specified by:
      clear in interface com.google.protobuf.Message.Builder
      Specified by:
      clear in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      clear in class com.google.protobuf.GeneratedMessage.Builder<StardocOutputProtos.OriginKey.Builder>
    • getDescriptorForType

      public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
      Specified by:
      getDescriptorForType in interface com.google.protobuf.Message.Builder
      Specified by:
      getDescriptorForType in interface com.google.protobuf.MessageOrBuilder
      Overrides:
      getDescriptorForType in class com.google.protobuf.GeneratedMessage.Builder<StardocOutputProtos.OriginKey.Builder>
    • getDefaultInstanceForType

      public StardocOutputProtos.OriginKey getDefaultInstanceForType()
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder
    • build

      Specified by:
      build in interface com.google.protobuf.Message.Builder
      Specified by:
      build in interface com.google.protobuf.MessageLite.Builder
    • buildPartial

      public StardocOutputProtos.OriginKey buildPartial()
      Specified by:
      buildPartial in interface com.google.protobuf.Message.Builder
      Specified by:
      buildPartial in interface com.google.protobuf.MessageLite.Builder
    • mergeFrom

      public StardocOutputProtos.OriginKey.Builder mergeFrom(com.google.protobuf.Message other)
      Specified by:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Overrides:
      mergeFrom in class com.google.protobuf.AbstractMessage.Builder<StardocOutputProtos.OriginKey.Builder>
    • mergeFrom

    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.google.protobuf.GeneratedMessage.Builder<StardocOutputProtos.OriginKey.Builder>
    • mergeFrom

      public StardocOutputProtos.OriginKey.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Specified by:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Specified by:
      mergeFrom in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      mergeFrom in class com.google.protobuf.AbstractMessage.Builder<StardocOutputProtos.OriginKey.Builder>
      Throws:
      IOException
    • getName

      public String getName()
       The name under which the entity was originally exported. Unset when the
       entity was not exported in its module.
       
      string name = 1;
      Specified by:
      getName in interface StardocOutputProtos.OriginKeyOrBuilder
      Returns:
      The name.
    • getNameBytes

      public com.google.protobuf.ByteString getNameBytes()
       The name under which the entity was originally exported. Unset when the
       entity was not exported in its module.
       
      string name = 1;
      Specified by:
      getNameBytes in interface StardocOutputProtos.OriginKeyOrBuilder
      Returns:
      The bytes for name.
    • setName

       The name under which the entity was originally exported. Unset when the
       entity was not exported in its module.
       
      string name = 1;
      Parameters:
      value - The name to set.
      Returns:
      This builder for chaining.
    • clearName

       The name under which the entity was originally exported. Unset when the
       entity was not exported in its module.
       
      string name = 1;
      Returns:
      This builder for chaining.
    • setNameBytes

      public StardocOutputProtos.OriginKey.Builder setNameBytes(com.google.protobuf.ByteString value)
       The name under which the entity was originally exported. Unset when the
       entity was not exported in its module.
       
      string name = 1;
      Parameters:
      value - The bytes for name to set.
      Returns:
      This builder for chaining.
    • getFile

      public 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;
      Specified by:
      getFile in interface StardocOutputProtos.OriginKeyOrBuilder
      Returns:
      The file.
    • getFileBytes

      public com.google.protobuf.ByteString getFileBytes()
       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;
      Specified by:
      getFileBytes in interface StardocOutputProtos.OriginKeyOrBuilder
      Returns:
      The bytes for file.
    • setFile

       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;
      Parameters:
      value - The file to set.
      Returns:
      This builder for chaining.
    • clearFile

       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;
      Returns:
      This builder for chaining.
    • setFileBytes

      public StardocOutputProtos.OriginKey.Builder setFileBytes(com.google.protobuf.ByteString value)
       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;
      Parameters:
      value - The bytes for file to set.
      Returns:
      This builder for chaining.