Class Build.AttributeValue

java.lang.Object
com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessage
com.google.protobuf.GeneratedMessage
com.google.devtools.build.lib.query2.proto.proto2api.Build.AttributeValue
All Implemented Interfaces:
Build.AttributeValueOrBuilder, com.google.protobuf.Message, com.google.protobuf.MessageLite, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Serializable
Enclosing class:
Build

public static final class Build.AttributeValue extends com.google.protobuf.GeneratedMessage implements Build.AttributeValueOrBuilder
 An AttributeValue represents the value of an attribute.
 A single field, determined by the attribute type, is populated.

 It is used only for AttributeDefinition.default. Attribute and
 SelectorEntry do their own thing for unfortunate historical reasons.
 
Protobuf type blaze_query.AttributeValue
See Also:
  • Field Details

  • 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
    • hasInt

      public boolean hasInt()
       type=int|tristate
       
      optional int32 int = 1;
      Specified by:
      hasInt in interface Build.AttributeValueOrBuilder
      Returns:
      Whether the int field is set.
    • getInt

      public int getInt()
       type=int|tristate
       
      optional int32 int = 1;
      Specified by:
      getInt in interface Build.AttributeValueOrBuilder
      Returns:
      The int.
    • hasString

      public boolean hasString()
       type=string|label|output
       
      optional string string = 2;
      Specified by:
      hasString in interface Build.AttributeValueOrBuilder
      Returns:
      Whether the string field is set.
    • getString

      public String getString()
       type=string|label|output
       
      optional string string = 2;
      Specified by:
      getString in interface Build.AttributeValueOrBuilder
      Returns:
      The string.
    • getStringBytes

      public com.google.protobuf.ByteString getStringBytes()
       type=string|label|output
       
      optional string string = 2;
      Specified by:
      getStringBytes in interface Build.AttributeValueOrBuilder
      Returns:
      The bytes for string.
    • hasBool

      public boolean hasBool()
       type=bool
       
      optional bool bool = 3;
      Specified by:
      hasBool in interface Build.AttributeValueOrBuilder
      Returns:
      Whether the bool field is set.
    • getBool

      public boolean getBool()
       type=bool
       
      optional bool bool = 3;
      Specified by:
      getBool in interface Build.AttributeValueOrBuilder
      Returns:
      The bool.
    • getListList

      public List<Build.AttributeValue> getListList()
       type=*_list|distrib
       
      repeated .blaze_query.AttributeValue list = 4;
      Specified by:
      getListList in interface Build.AttributeValueOrBuilder
    • getListOrBuilderList

      public List<? extends Build.AttributeValueOrBuilder> getListOrBuilderList()
       type=*_list|distrib
       
      repeated .blaze_query.AttributeValue list = 4;
      Specified by:
      getListOrBuilderList in interface Build.AttributeValueOrBuilder
    • getListCount

      public int getListCount()
       type=*_list|distrib
       
      repeated .blaze_query.AttributeValue list = 4;
      Specified by:
      getListCount in interface Build.AttributeValueOrBuilder
    • getList

      public Build.AttributeValue getList(int index)
       type=*_list|distrib
       
      repeated .blaze_query.AttributeValue list = 4;
      Specified by:
      getList in interface Build.AttributeValueOrBuilder
    • getListOrBuilder

      public Build.AttributeValueOrBuilder getListOrBuilder(int index)
       type=*_list|distrib
       
      repeated .blaze_query.AttributeValue list = 4;
      Specified by:
      getListOrBuilder in interface Build.AttributeValueOrBuilder
    • getDictList

      public List<Build.AttributeValue.DictEntry> getDictList()
       type=*_dict
       
      repeated .blaze_query.AttributeValue.DictEntry dict = 5;
      Specified by:
      getDictList in interface Build.AttributeValueOrBuilder
    • getDictOrBuilderList

      public List<? extends Build.AttributeValue.DictEntryOrBuilder> getDictOrBuilderList()
       type=*_dict
       
      repeated .blaze_query.AttributeValue.DictEntry dict = 5;
      Specified by:
      getDictOrBuilderList in interface Build.AttributeValueOrBuilder
    • getDictCount

      public int getDictCount()
       type=*_dict
       
      repeated .blaze_query.AttributeValue.DictEntry dict = 5;
      Specified by:
      getDictCount in interface Build.AttributeValueOrBuilder
    • getDict

      public Build.AttributeValue.DictEntry getDict(int index)
       type=*_dict
       
      repeated .blaze_query.AttributeValue.DictEntry dict = 5;
      Specified by:
      getDict in interface Build.AttributeValueOrBuilder
    • getDictOrBuilder

      public Build.AttributeValue.DictEntryOrBuilder getDictOrBuilder(int index)
       type=*_dict
       
      repeated .blaze_query.AttributeValue.DictEntry dict = 5;
      Specified by:
      getDictOrBuilder in interface Build.AttributeValueOrBuilder
    • 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 Build.AttributeValue parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

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

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

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

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

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

      public static Build.AttributeValue parseFrom(InputStream input) throws IOException
      Throws:
      IOException
    • parseFrom

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

      public static Build.AttributeValue parseDelimitedFrom(InputStream input) throws IOException
      Throws:
      IOException
    • parseDelimitedFrom

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

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

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

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

      public static Build.AttributeValue.Builder newBuilder()
    • newBuilder

      public static Build.AttributeValue.Builder newBuilder(Build.AttributeValue prototype)
    • toBuilder

      public Build.AttributeValue.Builder toBuilder()
      Specified by:
      toBuilder in interface com.google.protobuf.Message
      Specified by:
      toBuilder in interface com.google.protobuf.MessageLite
    • newBuilderForType

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

      public static Build.AttributeValue getDefaultInstance()
    • parser

      public static com.google.protobuf.Parser<Build.AttributeValue> parser()
    • getParserForType

      public com.google.protobuf.Parser<Build.AttributeValue> 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 Build.AttributeValue getDefaultInstanceForType()
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder