Class StardocOutputProtos.AspectInfo

java.lang.Object
com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessage
com.google.protobuf.GeneratedMessage
com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.AspectInfo
All Implemented Interfaces:
StardocOutputProtos.AspectInfoOrBuilder, com.google.protobuf.Message, com.google.protobuf.MessageLite, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Serializable
Enclosing class:
StardocOutputProtos

public static final class StardocOutputProtos.AspectInfo extends com.google.protobuf.GeneratedMessage implements StardocOutputProtos.AspectInfoOrBuilder
 Representation of a Starlark aspect definition.
 
Protobuf type stardoc_output.AspectInfo
See Also:
  • Field Details

    • ASPECT_NAME_FIELD_NUMBER

      public static final int ASPECT_NAME_FIELD_NUMBER
      See Also:
    • DOC_STRING_FIELD_NUMBER

      public static final int DOC_STRING_FIELD_NUMBER
      See Also:
    • ASPECT_ATTRIBUTE_FIELD_NUMBER

      public static final int ASPECT_ATTRIBUTE_FIELD_NUMBER
      See Also:
    • ATTRIBUTE_FIELD_NUMBER

      public static final int ATTRIBUTE_FIELD_NUMBER
      See Also:
    • ORIGIN_KEY_FIELD_NUMBER

      public static final int ORIGIN_KEY_FIELD_NUMBER
      See Also:
  • 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
    • getAspectName

      public 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;
      Specified by:
      getAspectName in interface StardocOutputProtos.AspectInfoOrBuilder
      Returns:
      The aspectName.
    • getAspectNameBytes

      public com.google.protobuf.ByteString getAspectNameBytes()
       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;
      Specified by:
      getAspectNameBytes in interface StardocOutputProtos.AspectInfoOrBuilder
      Returns:
      The bytes for aspectName.
    • getDocString

      public String getDocString()
       The documentation string of the aspect.
       
      string doc_string = 2;
      Specified by:
      getDocString in interface StardocOutputProtos.AspectInfoOrBuilder
      Returns:
      The docString.
    • getDocStringBytes

      public com.google.protobuf.ByteString getDocStringBytes()
       The documentation string of the aspect.
       
      string doc_string = 2;
      Specified by:
      getDocStringBytes in interface StardocOutputProtos.AspectInfoOrBuilder
      Returns:
      The bytes for docString.
    • getAspectAttributeList

      public com.google.protobuf.ProtocolStringList getAspectAttributeList()
       The rule attributes along which the aspect propagates.
       
      repeated string aspect_attribute = 3;
      Specified by:
      getAspectAttributeList in interface StardocOutputProtos.AspectInfoOrBuilder
      Returns:
      A list containing the aspectAttribute.
    • getAspectAttributeCount

      public int getAspectAttributeCount()
       The rule attributes along which the aspect propagates.
       
      repeated string aspect_attribute = 3;
      Specified by:
      getAspectAttributeCount in interface StardocOutputProtos.AspectInfoOrBuilder
      Returns:
      The count of aspectAttribute.
    • getAspectAttribute

      public String getAspectAttribute(int index)
       The rule attributes along which the aspect propagates.
       
      repeated string aspect_attribute = 3;
      Specified by:
      getAspectAttribute in interface StardocOutputProtos.AspectInfoOrBuilder
      Parameters:
      index - The index of the element to return.
      Returns:
      The aspectAttribute at the given index.
    • getAspectAttributeBytes

      public com.google.protobuf.ByteString getAspectAttributeBytes(int index)
       The rule attributes along which the aspect propagates.
       
      repeated string aspect_attribute = 3;
      Specified by:
      getAspectAttributeBytes in interface StardocOutputProtos.AspectInfoOrBuilder
      Parameters:
      index - The index of the value to return.
      Returns:
      The bytes of the aspectAttribute at the given index.
    • getAttributeList

      public List<StardocOutputProtos.AttributeInfo> getAttributeList()
       The attributes of the aspect.
       
      repeated .stardoc_output.AttributeInfo attribute = 4;
      Specified by:
      getAttributeList in interface StardocOutputProtos.AspectInfoOrBuilder
    • getAttributeOrBuilderList

      public List<? extends StardocOutputProtos.AttributeInfoOrBuilder> getAttributeOrBuilderList()
       The attributes of the aspect.
       
      repeated .stardoc_output.AttributeInfo attribute = 4;
      Specified by:
      getAttributeOrBuilderList in interface StardocOutputProtos.AspectInfoOrBuilder
    • getAttributeCount

      public int getAttributeCount()
       The attributes of the aspect.
       
      repeated .stardoc_output.AttributeInfo attribute = 4;
      Specified by:
      getAttributeCount in interface StardocOutputProtos.AspectInfoOrBuilder
    • getAttribute

      public StardocOutputProtos.AttributeInfo getAttribute(int index)
       The attributes of the aspect.
       
      repeated .stardoc_output.AttributeInfo attribute = 4;
      Specified by:
      getAttribute in interface StardocOutputProtos.AspectInfoOrBuilder
    • getAttributeOrBuilder

      public StardocOutputProtos.AttributeInfoOrBuilder getAttributeOrBuilder(int index)
       The attributes of the aspect.
       
      repeated .stardoc_output.AttributeInfo attribute = 4;
      Specified by:
      getAttributeOrBuilder in interface StardocOutputProtos.AspectInfoOrBuilder
    • hasOriginKey

      public 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;
      Specified by:
      hasOriginKey in interface StardocOutputProtos.AspectInfoOrBuilder
      Returns:
      Whether the originKey field is set.
    • getOriginKey

      public 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;
      Specified by:
      getOriginKey in interface StardocOutputProtos.AspectInfoOrBuilder
      Returns:
      The originKey.
    • getOriginKeyOrBuilder

      public StardocOutputProtos.OriginKeyOrBuilder getOriginKeyOrBuilder()
       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;
      Specified by:
      getOriginKeyOrBuilder in interface StardocOutputProtos.AspectInfoOrBuilder
    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.google.protobuf.GeneratedMessage
    • writeTo

      public void writeTo(com.google.protobuf.CodedOutputStream output) throws IOException
      Specified by:
      writeTo in interface com.google.protobuf.MessageLite
      Overrides:
      writeTo in class com.google.protobuf.GeneratedMessage
      Throws:
      IOException
    • getSerializedSize

      public int getSerializedSize()
      Specified by:
      getSerializedSize in interface com.google.protobuf.MessageLite
      Overrides:
      getSerializedSize in class com.google.protobuf.GeneratedMessage
    • equals

      public boolean equals(Object obj)
      Specified by:
      equals in interface com.google.protobuf.Message
      Overrides:
      equals in class com.google.protobuf.AbstractMessage
    • hashCode

      public int hashCode()
      Specified by:
      hashCode in interface com.google.protobuf.Message
      Overrides:
      hashCode in class com.google.protobuf.AbstractMessage
    • parseFrom

      public static StardocOutputProtos.AspectInfo parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static StardocOutputProtos.AspectInfo parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static StardocOutputProtos.AspectInfo parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static StardocOutputProtos.AspectInfo parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static StardocOutputProtos.AspectInfo parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static StardocOutputProtos.AspectInfo parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static StardocOutputProtos.AspectInfo parseFrom(InputStream input) throws IOException
      Throws:
      IOException
    • parseFrom

      public static StardocOutputProtos.AspectInfo parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • parseDelimitedFrom

      public static StardocOutputProtos.AspectInfo parseDelimitedFrom(InputStream input) throws IOException
      Throws:
      IOException
    • parseDelimitedFrom

      public static StardocOutputProtos.AspectInfo parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • parseFrom

      public static StardocOutputProtos.AspectInfo parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
      Throws:
      IOException
    • parseFrom

      public static StardocOutputProtos.AspectInfo parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • newBuilderForType

      public StardocOutputProtos.AspectInfo.Builder newBuilderForType()
      Specified by:
      newBuilderForType in interface com.google.protobuf.Message
      Specified by:
      newBuilderForType in interface com.google.protobuf.MessageLite
    • newBuilder

      public static StardocOutputProtos.AspectInfo.Builder newBuilder()
    • newBuilder

    • toBuilder

      Specified by:
      toBuilder in interface com.google.protobuf.Message
      Specified by:
      toBuilder in interface com.google.protobuf.MessageLite
    • newBuilderForType

      protected StardocOutputProtos.AspectInfo.Builder newBuilderForType(com.google.protobuf.AbstractMessage.BuilderParent parent)
      Overrides:
      newBuilderForType in class com.google.protobuf.AbstractMessage
    • getDefaultInstance

      public static StardocOutputProtos.AspectInfo getDefaultInstance()
    • parser

      public static com.google.protobuf.Parser<StardocOutputProtos.AspectInfo> parser()
    • getParserForType

      public com.google.protobuf.Parser<StardocOutputProtos.AspectInfo> getParserForType()
      Specified by:
      getParserForType in interface com.google.protobuf.Message
      Specified by:
      getParserForType in interface com.google.protobuf.MessageLite
      Overrides:
      getParserForType in class com.google.protobuf.GeneratedMessage
    • getDefaultInstanceForType

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