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:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classAn AttributeValue represents the value of an attribute.static final classProtobuf typeblaze_query.AttributeValue.DictEntrystatic interfaceNested classes/interfaces inherited from class com.google.protobuf.GeneratedMessage
com.google.protobuf.GeneratedMessage.ExtendableBuilder<MessageT extends com.google.protobuf.GeneratedMessage.ExtendableMessage<MessageT>,BuilderT extends com.google.protobuf.GeneratedMessage.ExtendableBuilder<MessageT, BuilderT>>, com.google.protobuf.GeneratedMessage.ExtendableMessage<MessageT extends com.google.protobuf.GeneratedMessage.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessage.ExtendableMessageOrBuilder<MessageT extends com.google.protobuf.GeneratedMessage.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessage.FieldAccessorTable, com.google.protobuf.GeneratedMessage.GeneratedExtension<ContainingT extends com.google.protobuf.Message, T extends Object>, com.google.protobuf.GeneratedMessage.UnusedPrivateParameter Nested classes/interfaces inherited from class com.google.protobuf.AbstractMessage
com.google.protobuf.AbstractMessage.BuilderParentNested classes/interfaces inherited from class com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessageLite.InternalOneOfEnum -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intstatic final intstatic final intstatic final intstatic final intFields inherited from class com.google.protobuf.GeneratedMessage
alwaysUseFieldBuilders, unknownFieldsFields inherited from class com.google.protobuf.AbstractMessage
memoizedSizeFields inherited from class com.google.protobuf.AbstractMessageLite
memoizedHashCode -
Method Summary
Modifier and TypeMethodDescriptionbooleanbooleangetBool()type=boolstatic Build.AttributeValuestatic final com.google.protobuf.Descriptors.DescriptorgetDict(int index) type=*_dictinttype=*_dicttype=*_dictgetDictOrBuilder(int index) type=*_dictList<? extends Build.AttributeValue.DictEntryOrBuilder>type=*_dictintgetInt()type=int|tristategetList(int index) type=*_list|distribinttype=*_list|distribtype=*_list|distribgetListOrBuilder(int index) type=*_list|distribList<? extends Build.AttributeValueOrBuilder>type=*_list|distribcom.google.protobuf.Parser<Build.AttributeValue>inttype=string|label|outputcom.google.protobuf.ByteStringtype=string|label|outputbooleanhasBool()type=boolinthashCode()booleanhasInt()type=int|tristatebooleantype=string|label|outputprotected com.google.protobuf.GeneratedMessage.FieldAccessorTablefinal booleanstatic Build.AttributeValue.Builderstatic Build.AttributeValue.BuildernewBuilder(Build.AttributeValue prototype) protected Build.AttributeValue.BuildernewBuilderForType(com.google.protobuf.AbstractMessage.BuilderParent parent) static Build.AttributeValueparseDelimitedFrom(InputStream input) static Build.AttributeValueparseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static Build.AttributeValueparseFrom(byte[] data) static Build.AttributeValueparseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static Build.AttributeValueparseFrom(com.google.protobuf.ByteString data) static Build.AttributeValueparseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static Build.AttributeValueparseFrom(com.google.protobuf.CodedInputStream input) static Build.AttributeValueparseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static Build.AttributeValueparseFrom(InputStream input) static Build.AttributeValueparseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static Build.AttributeValueparseFrom(ByteBuffer data) static Build.AttributeValueparseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static com.google.protobuf.Parser<Build.AttributeValue>parser()voidwriteTo(com.google.protobuf.CodedOutputStream output) Methods inherited from class com.google.protobuf.GeneratedMessage
canUseUnsafe, computeStringSize, computeStringSizeNoTag, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyList, emptyLongList, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, isStringEmpty, makeMutableCopy, makeMutableCopy, mergeFromAndMakeImmutableInternal, newFileScopedGeneratedExtension, newInstance, newMessageScopedGeneratedExtension, parseDelimitedWithIOException, parseDelimitedWithIOException, parseUnknownField, parseUnknownFieldProto3, parseWithIOException, parseWithIOException, parseWithIOException, parseWithIOException, serializeBooleanMapTo, serializeIntegerMapTo, serializeLongMapTo, serializeStringMapTo, writeReplace, writeString, writeStringNoTagMethods inherited from class com.google.protobuf.AbstractMessage
findInitializationErrors, getInitializationErrorString, hashFields, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite
addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeToMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.MessageLite
toByteArray, toByteString, writeDelimitedTo, writeToMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Field Details
-
INT_FIELD_NUMBER
public static final int INT_FIELD_NUMBER- See Also:
-
STRING_FIELD_NUMBER
public static final int STRING_FIELD_NUMBER- See Also:
-
BOOL_FIELD_NUMBER
public static final int BOOL_FIELD_NUMBER- See Also:
-
LIST_FIELD_NUMBER
public static final int LIST_FIELD_NUMBER- See Also:
-
DICT_FIELD_NUMBER
public static final int DICT_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:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessage
-
hasInt
public boolean hasInt()type=int|tristate
optional int32 int = 1;- Specified by:
hasIntin interfaceBuild.AttributeValueOrBuilder- Returns:
- Whether the int field is set.
-
getInt
public int getInt()type=int|tristate
optional int32 int = 1;- Specified by:
getIntin interfaceBuild.AttributeValueOrBuilder- Returns:
- The int.
-
hasString
public boolean hasString()type=string|label|output
optional string string = 2;- Specified by:
hasStringin interfaceBuild.AttributeValueOrBuilder- Returns:
- Whether the string field is set.
-
getString
type=string|label|output
optional string string = 2;- Specified by:
getStringin interfaceBuild.AttributeValueOrBuilder- Returns:
- The string.
-
getStringBytes
public com.google.protobuf.ByteString getStringBytes()type=string|label|output
optional string string = 2;- Specified by:
getStringBytesin interfaceBuild.AttributeValueOrBuilder- Returns:
- The bytes for string.
-
hasBool
public boolean hasBool()type=bool
optional bool bool = 3;- Specified by:
hasBoolin interfaceBuild.AttributeValueOrBuilder- Returns:
- Whether the bool field is set.
-
getBool
public boolean getBool()type=bool
optional bool bool = 3;- Specified by:
getBoolin interfaceBuild.AttributeValueOrBuilder- Returns:
- The bool.
-
getListList
type=*_list|distrib
repeated .blaze_query.AttributeValue list = 4;- Specified by:
getListListin interfaceBuild.AttributeValueOrBuilder
-
getListOrBuilderList
type=*_list|distrib
repeated .blaze_query.AttributeValue list = 4;- Specified by:
getListOrBuilderListin interfaceBuild.AttributeValueOrBuilder
-
getListCount
public int getListCount()type=*_list|distrib
repeated .blaze_query.AttributeValue list = 4;- Specified by:
getListCountin interfaceBuild.AttributeValueOrBuilder
-
getList
type=*_list|distrib
repeated .blaze_query.AttributeValue list = 4;- Specified by:
getListin interfaceBuild.AttributeValueOrBuilder
-
getListOrBuilder
type=*_list|distrib
repeated .blaze_query.AttributeValue list = 4;- Specified by:
getListOrBuilderin interfaceBuild.AttributeValueOrBuilder
-
getDictList
type=*_dict
repeated .blaze_query.AttributeValue.DictEntry dict = 5;- Specified by:
getDictListin interfaceBuild.AttributeValueOrBuilder
-
getDictOrBuilderList
type=*_dict
repeated .blaze_query.AttributeValue.DictEntry dict = 5;- Specified by:
getDictOrBuilderListin interfaceBuild.AttributeValueOrBuilder
-
getDictCount
public int getDictCount()type=*_dict
repeated .blaze_query.AttributeValue.DictEntry dict = 5;- Specified by:
getDictCountin interfaceBuild.AttributeValueOrBuilder
-
getDict
type=*_dict
repeated .blaze_query.AttributeValue.DictEntry dict = 5;- Specified by:
getDictin interfaceBuild.AttributeValueOrBuilder
-
getDictOrBuilder
type=*_dict
repeated .blaze_query.AttributeValue.DictEntry dict = 5;- Specified by:
getDictOrBuilderin interfaceBuild.AttributeValueOrBuilder
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage
-
writeTo
- Specified by:
writeToin interfacecom.google.protobuf.MessageLite- Overrides:
writeToin classcom.google.protobuf.GeneratedMessage- Throws:
IOException
-
getSerializedSize
public int getSerializedSize()- Specified by:
getSerializedSizein interfacecom.google.protobuf.MessageLite- Overrides:
getSerializedSizein classcom.google.protobuf.GeneratedMessage
-
equals
- Specified by:
equalsin interfacecom.google.protobuf.Message- Overrides:
equalsin classcom.google.protobuf.AbstractMessage
-
hashCode
public int hashCode()- Specified by:
hashCodein interfacecom.google.protobuf.Message- Overrides:
hashCodein classcom.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
- Throws:
IOException
-
parseFrom
public static Build.AttributeValue parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
parseDelimitedFrom
- 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
- Specified by:
newBuilderForTypein interfacecom.google.protobuf.Message- Specified by:
newBuilderForTypein interfacecom.google.protobuf.MessageLite
-
newBuilder
-
newBuilder
-
toBuilder
- Specified by:
toBuilderin interfacecom.google.protobuf.Message- Specified by:
toBuilderin interfacecom.google.protobuf.MessageLite
-
newBuilderForType
protected Build.AttributeValue.Builder newBuilderForType(com.google.protobuf.AbstractMessage.BuilderParent parent) - Overrides:
newBuilderForTypein classcom.google.protobuf.AbstractMessage
-
getDefaultInstance
-
parser
-
getParserForType
- Specified by:
getParserForTypein interfacecom.google.protobuf.Message- Specified by:
getParserForTypein interfacecom.google.protobuf.MessageLite- Overrides:
getParserForTypein classcom.google.protobuf.GeneratedMessage
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-