Class Build.Attribute
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite
-
- com.google.protobuf.AbstractMessage
-
- com.google.protobuf.GeneratedMessageV3
-
- com.google.devtools.build.lib.query2.proto.proto2api.Build.Attribute
-
- All Implemented Interfaces:
Build.AttributeOrBuilder,Message,MessageLite,MessageLiteOrBuilder,MessageOrBuilder,java.io.Serializable
- Enclosing class:
- Build
public static final class Build.Attribute extends GeneratedMessageV3 implements Build.AttributeOrBuilder
A rule attribute. Each attribute must have a type and one of the various value fields populated - for the most part. Attributes of BOOLEAN and TRISTATE type may set all of the int, bool, and string values for backwards compatibility with clients that expect them to be set. Attributes of INTEGER, STRING, LABEL, LICENSE, BOOLEAN, and TRISTATE type may set *none* of the values. This can happen if the Attribute message is prepared for a client that doesn't support SELECTOR_LIST, but the rule has a selector list value for the attribute. (Selector lists for attributes of other types--the collection types--are handled differently when prepared for such a client. The possible collection values are gathered together and flattened.) By checking the type, the appropriate value can be extracted - see the comments on each type for the associated value. The order of lists comes from the blaze parsing. If an attribute is of a list type, the associated list should never be empty.
Protobuf typeblaze_query.Attribute- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classBuild.Attribute.BuilderA rule attribute.static classBuild.Attribute.DiscriminatorIndicates the type of attribute.static classBuild.Attribute.SelectorProtobuf typeblaze_query.Attribute.Selectorstatic classBuild.Attribute.SelectorEntryProtobuf typeblaze_query.Attribute.SelectorEntrystatic interfaceBuild.Attribute.SelectorEntryOrBuilderstatic classBuild.Attribute.SelectorListProtobuf typeblaze_query.Attribute.SelectorListstatic interfaceBuild.Attribute.SelectorListOrBuilderstatic interfaceBuild.Attribute.SelectorOrBuilderstatic classBuild.Attribute.TristateValues for the TriState field type.-
Nested classes/interfaces inherited from class com.google.protobuf.GeneratedMessageV3
GeneratedMessageV3.BuilderParent, GeneratedMessageV3.ExtendableBuilder<MessageType extends GeneratedMessageV3.ExtendableMessage,BuilderType extends GeneratedMessageV3.ExtendableBuilder<MessageType,BuilderType>>, GeneratedMessageV3.ExtendableMessage<MessageType extends GeneratedMessageV3.ExtendableMessage>, GeneratedMessageV3.ExtendableMessageOrBuilder<MessageType extends GeneratedMessageV3.ExtendableMessage>, GeneratedMessageV3.FieldAccessorTable, GeneratedMessageV3.UnusedPrivateParameter
-
Nested classes/interfaces inherited from class com.google.protobuf.AbstractMessageLite
AbstractMessageLite.InternalOneOfEnum
-
-
Field Summary
Fields Modifier and Type Field Description static intBOOLEAN_VALUE_FIELD_NUMBERstatic intDEPRECATED_STRING_DICT_UNARY_VALUE_FIELD_NUMBERstatic intEXPLICITLY_SPECIFIED_FIELD_NUMBERstatic intFILESET_LIST_VALUE_FIELD_NUMBERstatic intINT_LIST_VALUE_FIELD_NUMBERstatic intINT_VALUE_FIELD_NUMBERstatic intLABEL_DICT_UNARY_VALUE_FIELD_NUMBERstatic intLABEL_KEYED_STRING_DICT_VALUE_FIELD_NUMBERstatic intLABEL_LIST_DICT_VALUE_FIELD_NUMBERstatic intLICENSE_FIELD_NUMBERstatic intNAME_FIELD_NUMBERstatic intNODEP_FIELD_NUMBERstatic Parser<Build.Attribute>PARSERDeprecated.static intSELECTOR_LIST_FIELD_NUMBERstatic intSTRING_DICT_VALUE_FIELD_NUMBERstatic intSTRING_LIST_DICT_VALUE_FIELD_NUMBERstatic intSTRING_LIST_VALUE_FIELD_NUMBERstatic intSTRING_VALUE_FIELD_NUMBERstatic intTRISTATE_VALUE_FIELD_NUMBERstatic intTYPE_FIELD_NUMBER-
Fields inherited from class com.google.protobuf.GeneratedMessageV3
alwaysUseFieldBuilders, unknownFields
-
Fields inherited from class com.google.protobuf.AbstractMessage
memoizedSize
-
Fields inherited from class com.google.protobuf.AbstractMessageLite
memoizedHashCode
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(java.lang.Object obj)Compares the specified object with this message for equality.booleangetBooleanValue()If the attribute has a boolean value this will be populated.static Build.AttributegetDefaultInstance()Build.AttributegetDefaultInstanceForType()Get an instance of the type with no fields set.ByteStringgetDEPRECATEDStringDictUnaryValue(int index)repeated bytes DEPRECATED_string_dict_unary_value = 18;intgetDEPRECATEDStringDictUnaryValueCount()repeated bytes DEPRECATED_string_dict_unary_value = 18;java.util.List<ByteString>getDEPRECATEDStringDictUnaryValueList()repeated bytes DEPRECATED_string_dict_unary_value = 18;static Descriptors.DescriptorgetDescriptor()booleangetExplicitlySpecified()Whether the attribute was explicitly specifiedBuild.FilesetEntrygetFilesetListValue(int index)If the attribute is part of a Fileset, the fileset entries are stored in this field.intgetFilesetListValueCount()If the attribute is part of a Fileset, the fileset entries are stored in this field.java.util.List<Build.FilesetEntry>getFilesetListValueList()If the attribute is part of a Fileset, the fileset entries are stored in this field.Build.FilesetEntryOrBuildergetFilesetListValueOrBuilder(int index)If the attribute is part of a Fileset, the fileset entries are stored in this field.java.util.List<? extends Build.FilesetEntryOrBuilder>getFilesetListValueOrBuilderList()If the attribute is part of a Fileset, the fileset entries are stored in this field.intgetIntListValue(int index)The value of the attribute has a list of int32 valuesintgetIntListValueCount()The value of the attribute has a list of int32 valuesjava.util.List<java.lang.Integer>getIntListValueList()The value of the attribute has a list of int32 valuesintgetIntValue()If this attribute has an integer value this will be populated.Build.LabelDictUnaryEntrygetLabelDictUnaryValue(int index)If this is a label dict unary, each entry will be stored here.intgetLabelDictUnaryValueCount()If this is a label dict unary, each entry will be stored here.java.util.List<Build.LabelDictUnaryEntry>getLabelDictUnaryValueList()If this is a label dict unary, each entry will be stored here.Build.LabelDictUnaryEntryOrBuildergetLabelDictUnaryValueOrBuilder(int index)If this is a label dict unary, each entry will be stored here.java.util.List<? extends Build.LabelDictUnaryEntryOrBuilder>getLabelDictUnaryValueOrBuilderList()If this is a label dict unary, each entry will be stored here.Build.LabelKeyedStringDictEntrygetLabelKeyedStringDictValue(int index)If this is a label-keyed string dict, each entry will be stored here.intgetLabelKeyedStringDictValueCount()If this is a label-keyed string dict, each entry will be stored here.java.util.List<Build.LabelKeyedStringDictEntry>getLabelKeyedStringDictValueList()If this is a label-keyed string dict, each entry will be stored here.Build.LabelKeyedStringDictEntryOrBuildergetLabelKeyedStringDictValueOrBuilder(int index)If this is a label-keyed string dict, each entry will be stored here.java.util.List<? extends Build.LabelKeyedStringDictEntryOrBuilder>getLabelKeyedStringDictValueOrBuilderList()If this is a label-keyed string dict, each entry will be stored here.Build.LabelListDictEntrygetLabelListDictValue(int index)If this is a label list dict, each entry will be stored here.intgetLabelListDictValueCount()If this is a label list dict, each entry will be stored here.java.util.List<Build.LabelListDictEntry>getLabelListDictValueList()If this is a label list dict, each entry will be stored here.Build.LabelListDictEntryOrBuildergetLabelListDictValueOrBuilder(int index)If this is a label list dict, each entry will be stored here.java.util.List<? extends Build.LabelListDictEntryOrBuilder>getLabelListDictValueOrBuilderList()If this is a label list dict, each entry will be stored here.Build.LicensegetLicense()If this is a license attribute, the license information is stored here.Build.LicenseOrBuildergetLicenseOrBuilder()If this is a license attribute, the license information is stored here.java.lang.StringgetName()The name of the attributeByteStringgetNameBytes()The name of the attributebooleangetNodep()If this attribute has a string value or a string list value, then this may be set to indicate that the value may be treated as a label that isn't a dependency of this attribute's rule.Parser<Build.Attribute>getParserForType()Gets the parser for a message of the same type as this message.Build.Attribute.SelectorListgetSelectorList()If this attribute's value is an expression containing one or more select expressions, then its type is SELECTOR_LIST and a SelectorList will be stored here.Build.Attribute.SelectorListOrBuildergetSelectorListOrBuilder()If this attribute's value is an expression containing one or more select expressions, then its type is SELECTOR_LIST and a SelectorList will be stored here.intgetSerializedSize()Get the number of bytes required to encode this message.Build.StringDictEntrygetStringDictValue(int index)If this is a string dict, each entry will be stored here.intgetStringDictValueCount()If this is a string dict, each entry will be stored here.java.util.List<Build.StringDictEntry>getStringDictValueList()If this is a string dict, each entry will be stored here.Build.StringDictEntryOrBuildergetStringDictValueOrBuilder(int index)If this is a string dict, each entry will be stored here.java.util.List<? extends Build.StringDictEntryOrBuilder>getStringDictValueOrBuilderList()If this is a string dict, each entry will be stored here.Build.StringListDictEntrygetStringListDictValue(int index)If this is a string list dict, each entry will be stored here.intgetStringListDictValueCount()If this is a string list dict, each entry will be stored here.java.util.List<Build.StringListDictEntry>getStringListDictValueList()If this is a string list dict, each entry will be stored here.Build.StringListDictEntryOrBuildergetStringListDictValueOrBuilder(int index)If this is a string list dict, each entry will be stored here.java.util.List<? extends Build.StringListDictEntryOrBuilder>getStringListDictValueOrBuilderList()If this is a string list dict, each entry will be stored here.java.lang.StringgetStringListValue(int index)The value of the attribute has a list of string values (label and path note from STRING applies here as well).ByteStringgetStringListValueBytes(int index)The value of the attribute has a list of string values (label and path note from STRING applies here as well).intgetStringListValueCount()The value of the attribute has a list of string values (label and path note from STRING applies here as well).ProtocolStringListgetStringListValueList()The value of the attribute has a list of string values (label and path note from STRING applies here as well).java.lang.StringgetStringValue()If the attribute has a string value this will be populated.ByteStringgetStringValueBytes()If the attribute has a string value this will be populated.Build.Attribute.TristategetTristateValue()If the attribute is a Tristate value, this will be populated.Build.Attribute.DiscriminatorgetType()The type of attribute.UnknownFieldSetgetUnknownFields()Get theUnknownFieldSetfor this message.booleanhasBooleanValue()If the attribute has a boolean value this will be populated.booleanhasExplicitlySpecified()Whether the attribute was explicitly specifiedinthashCode()Returns the hash code value for this message.booleanhasIntValue()If this attribute has an integer value this will be populated.booleanhasLicense()If this is a license attribute, the license information is stored here.booleanhasName()The name of the attributebooleanhasNodep()If this attribute has a string value or a string list value, then this may be set to indicate that the value may be treated as a label that isn't a dependency of this attribute's rule.booleanhasSelectorList()If this attribute's value is an expression containing one or more select expressions, then its type is SELECTOR_LIST and a SelectorList will be stored here.booleanhasStringValue()If the attribute has a string value this will be populated.booleanhasTristateValue()If the attribute is a Tristate value, this will be populated.booleanhasType()The type of attribute.protected GeneratedMessageV3.FieldAccessorTableinternalGetFieldAccessorTable()Get the FieldAccessorTable for this type.booleanisInitialized()Returns true if all required fields in the message and all embedded messages are set, false otherwise.static Build.Attribute.BuildernewBuilder()static Build.Attribute.BuildernewBuilder(Build.Attribute prototype)Build.Attribute.BuildernewBuilderForType()Constructs a new builder for a message of the same type as this message.protected Build.Attribute.BuildernewBuilderForType(GeneratedMessageV3.BuilderParent parent)TODO(xiaofeng): remove this together with GeneratedMessageV3.BuilderParent.protected java.lang.ObjectnewInstance(GeneratedMessageV3.UnusedPrivateParameter unused)Creates a new instance of this message type.static Build.AttributeparseDelimitedFrom(java.io.InputStream input)static Build.AttributeparseDelimitedFrom(java.io.InputStream input, ExtensionRegistryLite extensionRegistry)static Build.AttributeparseFrom(byte[] data)static Build.AttributeparseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)static Build.AttributeparseFrom(ByteString data)static Build.AttributeparseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)static Build.AttributeparseFrom(CodedInputStream input)static Build.AttributeparseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)static Build.AttributeparseFrom(java.io.InputStream input)static Build.AttributeparseFrom(java.io.InputStream input, ExtensionRegistryLite extensionRegistry)static Build.AttributeparseFrom(java.nio.ByteBuffer data)static Build.AttributeparseFrom(java.nio.ByteBuffer data, ExtensionRegistryLite extensionRegistry)static Parser<Build.Attribute>parser()Build.Attribute.BuildertoBuilder()Constructs a builder initialized with the current message.voidwriteTo(CodedOutputStream output)Serializes the message and writes it tooutput.-
Methods inherited from class com.google.protobuf.GeneratedMessageV3
canUseUnsafe, computeStringSize, computeStringSizeNoTag, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyLongList, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, hasField, hasOneof, internalGetMapField, isStringEmpty, makeExtensionsImmutable, mergeFromAndMakeImmutableInternal, mutableCopy, mutableCopy, mutableCopy, mutableCopy, mutableCopy, newBooleanList, newBuilderForType, newDoubleList, newFloatList, newIntList, newLongList, parseDelimitedWithIOException, parseDelimitedWithIOException, parseUnknownField, parseUnknownFieldProto3, parseWithIOException, parseWithIOException, parseWithIOException, parseWithIOException, serializeBooleanMapTo, serializeIntegerMapTo, serializeLongMapTo, serializeStringMapTo, writeReplace, writeString, writeStringNoTag
-
Methods inherited from class com.google.protobuf.AbstractMessage
findInitializationErrors, getInitializationErrorString, hashBoolean, hashEnum, hashEnumList, hashFields, hashLong, toString
-
Methods inherited from class com.google.protobuf.AbstractMessageLite
addAll, addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeTo
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface com.google.protobuf.MessageLite
toByteArray, toByteString, writeDelimitedTo, writeTo
-
Methods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, hasField, hasOneof
-
-
-
-
Field Detail
-
NAME_FIELD_NUMBER
public static final int NAME_FIELD_NUMBER
- See Also:
- Constant Field Values
-
EXPLICITLY_SPECIFIED_FIELD_NUMBER
public static final int EXPLICITLY_SPECIFIED_FIELD_NUMBER
- See Also:
- Constant Field Values
-
NODEP_FIELD_NUMBER
public static final int NODEP_FIELD_NUMBER
- See Also:
- Constant Field Values
-
TYPE_FIELD_NUMBER
public static final int TYPE_FIELD_NUMBER
- See Also:
- Constant Field Values
-
INT_VALUE_FIELD_NUMBER
public static final int INT_VALUE_FIELD_NUMBER
- See Also:
- Constant Field Values
-
STRING_VALUE_FIELD_NUMBER
public static final int STRING_VALUE_FIELD_NUMBER
- See Also:
- Constant Field Values
-
BOOLEAN_VALUE_FIELD_NUMBER
public static final int BOOLEAN_VALUE_FIELD_NUMBER
- See Also:
- Constant Field Values
-
TRISTATE_VALUE_FIELD_NUMBER
public static final int TRISTATE_VALUE_FIELD_NUMBER
- See Also:
- Constant Field Values
-
STRING_LIST_VALUE_FIELD_NUMBER
public static final int STRING_LIST_VALUE_FIELD_NUMBER
- See Also:
- Constant Field Values
-
LICENSE_FIELD_NUMBER
public static final int LICENSE_FIELD_NUMBER
- See Also:
- Constant Field Values
-
STRING_DICT_VALUE_FIELD_NUMBER
public static final int STRING_DICT_VALUE_FIELD_NUMBER
- See Also:
- Constant Field Values
-
FILESET_LIST_VALUE_FIELD_NUMBER
public static final int FILESET_LIST_VALUE_FIELD_NUMBER
- See Also:
- Constant Field Values
-
LABEL_LIST_DICT_VALUE_FIELD_NUMBER
public static final int LABEL_LIST_DICT_VALUE_FIELD_NUMBER
- See Also:
- Constant Field Values
-
STRING_LIST_DICT_VALUE_FIELD_NUMBER
public static final int STRING_LIST_DICT_VALUE_FIELD_NUMBER
- See Also:
- Constant Field Values
-
INT_LIST_VALUE_FIELD_NUMBER
public static final int INT_LIST_VALUE_FIELD_NUMBER
- See Also:
- Constant Field Values
-
LABEL_DICT_UNARY_VALUE_FIELD_NUMBER
public static final int LABEL_DICT_UNARY_VALUE_FIELD_NUMBER
- See Also:
- Constant Field Values
-
LABEL_KEYED_STRING_DICT_VALUE_FIELD_NUMBER
public static final int LABEL_KEYED_STRING_DICT_VALUE_FIELD_NUMBER
- See Also:
- Constant Field Values
-
SELECTOR_LIST_FIELD_NUMBER
public static final int SELECTOR_LIST_FIELD_NUMBER
- See Also:
- Constant Field Values
-
DEPRECATED_STRING_DICT_UNARY_VALUE_FIELD_NUMBER
public static final int DEPRECATED_STRING_DICT_UNARY_VALUE_FIELD_NUMBER
- See Also:
- Constant Field Values
-
PARSER
@Deprecated public static final Parser<Build.Attribute> PARSER
Deprecated.
-
-
Method Detail
-
newInstance
protected java.lang.Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Description copied from class:GeneratedMessageV3Creates a new instance of this message type. Overridden in the generated code.- Overrides:
newInstancein classGeneratedMessageV3
-
getUnknownFields
public final UnknownFieldSet getUnknownFields()
Description copied from interface:MessageOrBuilderGet theUnknownFieldSetfor this message.- Specified by:
getUnknownFieldsin interfaceMessageOrBuilder- Overrides:
getUnknownFieldsin classGeneratedMessageV3
-
getDescriptor
public static final Descriptors.Descriptor getDescriptor()
-
internalGetFieldAccessorTable
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Description copied from class:GeneratedMessageV3Get the FieldAccessorTable for this type. We can't have the message class pass this in to the constructor because of bootstrapping trouble with DescriptorProtos.- Specified by:
internalGetFieldAccessorTablein classGeneratedMessageV3
-
hasName
public boolean hasName()
The name of the attribute
required string name = 1;- Specified by:
hasNamein interfaceBuild.AttributeOrBuilder- Returns:
- Whether the name field is set.
-
getName
public java.lang.String getName()
The name of the attribute
required string name = 1;- Specified by:
getNamein interfaceBuild.AttributeOrBuilder- Returns:
- The name.
-
getNameBytes
public ByteString getNameBytes()
The name of the attribute
required string name = 1;- Specified by:
getNameBytesin interfaceBuild.AttributeOrBuilder- Returns:
- The bytes for name.
-
hasExplicitlySpecified
public boolean hasExplicitlySpecified()
Whether the attribute was explicitly specified
optional bool explicitly_specified = 13;- Specified by:
hasExplicitlySpecifiedin interfaceBuild.AttributeOrBuilder- Returns:
- Whether the explicitlySpecified field is set.
-
getExplicitlySpecified
public boolean getExplicitlySpecified()
Whether the attribute was explicitly specified
optional bool explicitly_specified = 13;- Specified by:
getExplicitlySpecifiedin interfaceBuild.AttributeOrBuilder- Returns:
- The explicitlySpecified.
-
hasNodep
public boolean hasNodep()
If this attribute has a string value or a string list value, then this may be set to indicate that the value may be treated as a label that isn't a dependency of this attribute's rule.
optional bool nodep = 20;- Specified by:
hasNodepin interfaceBuild.AttributeOrBuilder- Returns:
- Whether the nodep field is set.
-
getNodep
public boolean getNodep()
If this attribute has a string value or a string list value, then this may be set to indicate that the value may be treated as a label that isn't a dependency of this attribute's rule.
optional bool nodep = 20;- Specified by:
getNodepin interfaceBuild.AttributeOrBuilder- Returns:
- The nodep.
-
hasType
public boolean hasType()
The type of attribute. This message is used for all of the different attribute types so the discriminator helps for figuring out what is stored in the message.
required .blaze_query.Attribute.Discriminator type = 2;- Specified by:
hasTypein interfaceBuild.AttributeOrBuilder- Returns:
- Whether the type field is set.
-
getType
public Build.Attribute.Discriminator getType()
The type of attribute. This message is used for all of the different attribute types so the discriminator helps for figuring out what is stored in the message.
required .blaze_query.Attribute.Discriminator type = 2;- Specified by:
getTypein interfaceBuild.AttributeOrBuilder- Returns:
- The type.
-
hasIntValue
public boolean hasIntValue()
If this attribute has an integer value this will be populated. Boolean and TriState also use this field as [0,1] and [-1,0,1] for [false, true] and [auto, no, yes] respectively.
optional int32 int_value = 3;- Specified by:
hasIntValuein interfaceBuild.AttributeOrBuilder- Returns:
- Whether the intValue field is set.
-
getIntValue
public int getIntValue()
If this attribute has an integer value this will be populated. Boolean and TriState also use this field as [0,1] and [-1,0,1] for [false, true] and [auto, no, yes] respectively.
optional int32 int_value = 3;- Specified by:
getIntValuein interfaceBuild.AttributeOrBuilder- Returns:
- The intValue.
-
hasStringValue
public boolean hasStringValue()
If the attribute has a string value this will be populated. Label and path attributes use this field as the value even though the type may be LABEL or something else other than STRING.
optional string string_value = 5;- Specified by:
hasStringValuein interfaceBuild.AttributeOrBuilder- Returns:
- Whether the stringValue field is set.
-
getStringValue
public java.lang.String getStringValue()
If the attribute has a string value this will be populated. Label and path attributes use this field as the value even though the type may be LABEL or something else other than STRING.
optional string string_value = 5;- Specified by:
getStringValuein interfaceBuild.AttributeOrBuilder- Returns:
- The stringValue.
-
getStringValueBytes
public ByteString getStringValueBytes()
If the attribute has a string value this will be populated. Label and path attributes use this field as the value even though the type may be LABEL or something else other than STRING.
optional string string_value = 5;- Specified by:
getStringValueBytesin interfaceBuild.AttributeOrBuilder- Returns:
- The bytes for stringValue.
-
hasBooleanValue
public boolean hasBooleanValue()
If the attribute has a boolean value this will be populated.
optional bool boolean_value = 14;- Specified by:
hasBooleanValuein interfaceBuild.AttributeOrBuilder- Returns:
- Whether the booleanValue field is set.
-
getBooleanValue
public boolean getBooleanValue()
If the attribute has a boolean value this will be populated.
optional bool boolean_value = 14;- Specified by:
getBooleanValuein interfaceBuild.AttributeOrBuilder- Returns:
- The booleanValue.
-
hasTristateValue
public boolean hasTristateValue()
If the attribute is a Tristate value, this will be populated.
optional .blaze_query.Attribute.Tristate tristate_value = 15;- Specified by:
hasTristateValuein interfaceBuild.AttributeOrBuilder- Returns:
- Whether the tristateValue field is set.
-
getTristateValue
public Build.Attribute.Tristate getTristateValue()
If the attribute is a Tristate value, this will be populated.
optional .blaze_query.Attribute.Tristate tristate_value = 15;- Specified by:
getTristateValuein interfaceBuild.AttributeOrBuilder- Returns:
- The tristateValue.
-
getStringListValueList
public ProtocolStringList getStringListValueList()
The value of the attribute has a list of string values (label and path note from STRING applies here as well).
repeated string string_list_value = 6;- Specified by:
getStringListValueListin interfaceBuild.AttributeOrBuilder- Returns:
- A list containing the stringListValue.
-
getStringListValueCount
public int getStringListValueCount()
The value of the attribute has a list of string values (label and path note from STRING applies here as well).
repeated string string_list_value = 6;- Specified by:
getStringListValueCountin interfaceBuild.AttributeOrBuilder- Returns:
- The count of stringListValue.
-
getStringListValue
public java.lang.String getStringListValue(int index)
The value of the attribute has a list of string values (label and path note from STRING applies here as well).
repeated string string_list_value = 6;- Specified by:
getStringListValuein interfaceBuild.AttributeOrBuilder- Parameters:
index- The index of the element to return.- Returns:
- The stringListValue at the given index.
-
getStringListValueBytes
public ByteString getStringListValueBytes(int index)
The value of the attribute has a list of string values (label and path note from STRING applies here as well).
repeated string string_list_value = 6;- Specified by:
getStringListValueBytesin interfaceBuild.AttributeOrBuilder- Parameters:
index- The index of the value to return.- Returns:
- The bytes of the stringListValue at the given index.
-
hasLicense
public boolean hasLicense()
If this is a license attribute, the license information is stored here.
optional .blaze_query.License license = 7;- Specified by:
hasLicensein interfaceBuild.AttributeOrBuilder- Returns:
- Whether the license field is set.
-
getLicense
public Build.License getLicense()
If this is a license attribute, the license information is stored here.
optional .blaze_query.License license = 7;- Specified by:
getLicensein interfaceBuild.AttributeOrBuilder- Returns:
- The license.
-
getLicenseOrBuilder
public Build.LicenseOrBuilder getLicenseOrBuilder()
If this is a license attribute, the license information is stored here.
optional .blaze_query.License license = 7;- Specified by:
getLicenseOrBuilderin interfaceBuild.AttributeOrBuilder
-
getStringDictValueList
public java.util.List<Build.StringDictEntry> getStringDictValueList()
If this is a string dict, each entry will be stored here.
repeated .blaze_query.StringDictEntry string_dict_value = 8;- Specified by:
getStringDictValueListin interfaceBuild.AttributeOrBuilder
-
getStringDictValueOrBuilderList
public java.util.List<? extends Build.StringDictEntryOrBuilder> getStringDictValueOrBuilderList()
If this is a string dict, each entry will be stored here.
repeated .blaze_query.StringDictEntry string_dict_value = 8;- Specified by:
getStringDictValueOrBuilderListin interfaceBuild.AttributeOrBuilder
-
getStringDictValueCount
public int getStringDictValueCount()
If this is a string dict, each entry will be stored here.
repeated .blaze_query.StringDictEntry string_dict_value = 8;- Specified by:
getStringDictValueCountin interfaceBuild.AttributeOrBuilder
-
getStringDictValue
public Build.StringDictEntry getStringDictValue(int index)
If this is a string dict, each entry will be stored here.
repeated .blaze_query.StringDictEntry string_dict_value = 8;- Specified by:
getStringDictValuein interfaceBuild.AttributeOrBuilder
-
getStringDictValueOrBuilder
public Build.StringDictEntryOrBuilder getStringDictValueOrBuilder(int index)
If this is a string dict, each entry will be stored here.
repeated .blaze_query.StringDictEntry string_dict_value = 8;- Specified by:
getStringDictValueOrBuilderin interfaceBuild.AttributeOrBuilder
-
getFilesetListValueList
public java.util.List<Build.FilesetEntry> getFilesetListValueList()
If the attribute is part of a Fileset, the fileset entries are stored in this field.
repeated .blaze_query.FilesetEntry fileset_list_value = 9;- Specified by:
getFilesetListValueListin interfaceBuild.AttributeOrBuilder
-
getFilesetListValueOrBuilderList
public java.util.List<? extends Build.FilesetEntryOrBuilder> getFilesetListValueOrBuilderList()
If the attribute is part of a Fileset, the fileset entries are stored in this field.
repeated .blaze_query.FilesetEntry fileset_list_value = 9;- Specified by:
getFilesetListValueOrBuilderListin interfaceBuild.AttributeOrBuilder
-
getFilesetListValueCount
public int getFilesetListValueCount()
If the attribute is part of a Fileset, the fileset entries are stored in this field.
repeated .blaze_query.FilesetEntry fileset_list_value = 9;- Specified by:
getFilesetListValueCountin interfaceBuild.AttributeOrBuilder
-
getFilesetListValue
public Build.FilesetEntry getFilesetListValue(int index)
If the attribute is part of a Fileset, the fileset entries are stored in this field.
repeated .blaze_query.FilesetEntry fileset_list_value = 9;- Specified by:
getFilesetListValuein interfaceBuild.AttributeOrBuilder
-
getFilesetListValueOrBuilder
public Build.FilesetEntryOrBuilder getFilesetListValueOrBuilder(int index)
If the attribute is part of a Fileset, the fileset entries are stored in this field.
repeated .blaze_query.FilesetEntry fileset_list_value = 9;- Specified by:
getFilesetListValueOrBuilderin interfaceBuild.AttributeOrBuilder
-
getLabelListDictValueList
public java.util.List<Build.LabelListDictEntry> getLabelListDictValueList()
If this is a label list dict, each entry will be stored here.
repeated .blaze_query.LabelListDictEntry label_list_dict_value = 10;- Specified by:
getLabelListDictValueListin interfaceBuild.AttributeOrBuilder
-
getLabelListDictValueOrBuilderList
public java.util.List<? extends Build.LabelListDictEntryOrBuilder> getLabelListDictValueOrBuilderList()
If this is a label list dict, each entry will be stored here.
repeated .blaze_query.LabelListDictEntry label_list_dict_value = 10;- Specified by:
getLabelListDictValueOrBuilderListin interfaceBuild.AttributeOrBuilder
-
getLabelListDictValueCount
public int getLabelListDictValueCount()
If this is a label list dict, each entry will be stored here.
repeated .blaze_query.LabelListDictEntry label_list_dict_value = 10;- Specified by:
getLabelListDictValueCountin interfaceBuild.AttributeOrBuilder
-
getLabelListDictValue
public Build.LabelListDictEntry getLabelListDictValue(int index)
If this is a label list dict, each entry will be stored here.
repeated .blaze_query.LabelListDictEntry label_list_dict_value = 10;- Specified by:
getLabelListDictValuein interfaceBuild.AttributeOrBuilder
-
getLabelListDictValueOrBuilder
public Build.LabelListDictEntryOrBuilder getLabelListDictValueOrBuilder(int index)
If this is a label list dict, each entry will be stored here.
repeated .blaze_query.LabelListDictEntry label_list_dict_value = 10;- Specified by:
getLabelListDictValueOrBuilderin interfaceBuild.AttributeOrBuilder
-
getStringListDictValueList
public java.util.List<Build.StringListDictEntry> getStringListDictValueList()
If this is a string list dict, each entry will be stored here.
repeated .blaze_query.StringListDictEntry string_list_dict_value = 11;- Specified by:
getStringListDictValueListin interfaceBuild.AttributeOrBuilder
-
getStringListDictValueOrBuilderList
public java.util.List<? extends Build.StringListDictEntryOrBuilder> getStringListDictValueOrBuilderList()
If this is a string list dict, each entry will be stored here.
repeated .blaze_query.StringListDictEntry string_list_dict_value = 11;- Specified by:
getStringListDictValueOrBuilderListin interfaceBuild.AttributeOrBuilder
-
getStringListDictValueCount
public int getStringListDictValueCount()
If this is a string list dict, each entry will be stored here.
repeated .blaze_query.StringListDictEntry string_list_dict_value = 11;- Specified by:
getStringListDictValueCountin interfaceBuild.AttributeOrBuilder
-
getStringListDictValue
public Build.StringListDictEntry getStringListDictValue(int index)
If this is a string list dict, each entry will be stored here.
repeated .blaze_query.StringListDictEntry string_list_dict_value = 11;- Specified by:
getStringListDictValuein interfaceBuild.AttributeOrBuilder
-
getStringListDictValueOrBuilder
public Build.StringListDictEntryOrBuilder getStringListDictValueOrBuilder(int index)
If this is a string list dict, each entry will be stored here.
repeated .blaze_query.StringListDictEntry string_list_dict_value = 11;- Specified by:
getStringListDictValueOrBuilderin interfaceBuild.AttributeOrBuilder
-
getIntListValueList
public java.util.List<java.lang.Integer> getIntListValueList()
The value of the attribute has a list of int32 values
repeated int32 int_list_value = 17;- Specified by:
getIntListValueListin interfaceBuild.AttributeOrBuilder- Returns:
- A list containing the intListValue.
-
getIntListValueCount
public int getIntListValueCount()
The value of the attribute has a list of int32 values
repeated int32 int_list_value = 17;- Specified by:
getIntListValueCountin interfaceBuild.AttributeOrBuilder- Returns:
- The count of intListValue.
-
getIntListValue
public int getIntListValue(int index)
The value of the attribute has a list of int32 values
repeated int32 int_list_value = 17;- Specified by:
getIntListValuein interfaceBuild.AttributeOrBuilder- Parameters:
index- The index of the element to return.- Returns:
- The intListValue at the given index.
-
getLabelDictUnaryValueList
public java.util.List<Build.LabelDictUnaryEntry> getLabelDictUnaryValueList()
If this is a label dict unary, each entry will be stored here.
repeated .blaze_query.LabelDictUnaryEntry label_dict_unary_value = 19;- Specified by:
getLabelDictUnaryValueListin interfaceBuild.AttributeOrBuilder
-
getLabelDictUnaryValueOrBuilderList
public java.util.List<? extends Build.LabelDictUnaryEntryOrBuilder> getLabelDictUnaryValueOrBuilderList()
If this is a label dict unary, each entry will be stored here.
repeated .blaze_query.LabelDictUnaryEntry label_dict_unary_value = 19;- Specified by:
getLabelDictUnaryValueOrBuilderListin interfaceBuild.AttributeOrBuilder
-
getLabelDictUnaryValueCount
public int getLabelDictUnaryValueCount()
If this is a label dict unary, each entry will be stored here.
repeated .blaze_query.LabelDictUnaryEntry label_dict_unary_value = 19;- Specified by:
getLabelDictUnaryValueCountin interfaceBuild.AttributeOrBuilder
-
getLabelDictUnaryValue
public Build.LabelDictUnaryEntry getLabelDictUnaryValue(int index)
If this is a label dict unary, each entry will be stored here.
repeated .blaze_query.LabelDictUnaryEntry label_dict_unary_value = 19;- Specified by:
getLabelDictUnaryValuein interfaceBuild.AttributeOrBuilder
-
getLabelDictUnaryValueOrBuilder
public Build.LabelDictUnaryEntryOrBuilder getLabelDictUnaryValueOrBuilder(int index)
If this is a label dict unary, each entry will be stored here.
repeated .blaze_query.LabelDictUnaryEntry label_dict_unary_value = 19;- Specified by:
getLabelDictUnaryValueOrBuilderin interfaceBuild.AttributeOrBuilder
-
getLabelKeyedStringDictValueList
public java.util.List<Build.LabelKeyedStringDictEntry> getLabelKeyedStringDictValueList()
If this is a label-keyed string dict, each entry will be stored here.
repeated .blaze_query.LabelKeyedStringDictEntry label_keyed_string_dict_value = 22;- Specified by:
getLabelKeyedStringDictValueListin interfaceBuild.AttributeOrBuilder
-
getLabelKeyedStringDictValueOrBuilderList
public java.util.List<? extends Build.LabelKeyedStringDictEntryOrBuilder> getLabelKeyedStringDictValueOrBuilderList()
If this is a label-keyed string dict, each entry will be stored here.
repeated .blaze_query.LabelKeyedStringDictEntry label_keyed_string_dict_value = 22;- Specified by:
getLabelKeyedStringDictValueOrBuilderListin interfaceBuild.AttributeOrBuilder
-
getLabelKeyedStringDictValueCount
public int getLabelKeyedStringDictValueCount()
If this is a label-keyed string dict, each entry will be stored here.
repeated .blaze_query.LabelKeyedStringDictEntry label_keyed_string_dict_value = 22;- Specified by:
getLabelKeyedStringDictValueCountin interfaceBuild.AttributeOrBuilder
-
getLabelKeyedStringDictValue
public Build.LabelKeyedStringDictEntry getLabelKeyedStringDictValue(int index)
If this is a label-keyed string dict, each entry will be stored here.
repeated .blaze_query.LabelKeyedStringDictEntry label_keyed_string_dict_value = 22;- Specified by:
getLabelKeyedStringDictValuein interfaceBuild.AttributeOrBuilder
-
getLabelKeyedStringDictValueOrBuilder
public Build.LabelKeyedStringDictEntryOrBuilder getLabelKeyedStringDictValueOrBuilder(int index)
If this is a label-keyed string dict, each entry will be stored here.
repeated .blaze_query.LabelKeyedStringDictEntry label_keyed_string_dict_value = 22;- Specified by:
getLabelKeyedStringDictValueOrBuilderin interfaceBuild.AttributeOrBuilder
-
hasSelectorList
public boolean hasSelectorList()
If this attribute's value is an expression containing one or more select expressions, then its type is SELECTOR_LIST and a SelectorList will be stored here.
optional .blaze_query.Attribute.SelectorList selector_list = 21;- Specified by:
hasSelectorListin interfaceBuild.AttributeOrBuilder- Returns:
- Whether the selectorList field is set.
-
getSelectorList
public Build.Attribute.SelectorList getSelectorList()
If this attribute's value is an expression containing one or more select expressions, then its type is SELECTOR_LIST and a SelectorList will be stored here.
optional .blaze_query.Attribute.SelectorList selector_list = 21;- Specified by:
getSelectorListin interfaceBuild.AttributeOrBuilder- Returns:
- The selectorList.
-
getSelectorListOrBuilder
public Build.Attribute.SelectorListOrBuilder getSelectorListOrBuilder()
If this attribute's value is an expression containing one or more select expressions, then its type is SELECTOR_LIST and a SelectorList will be stored here.
optional .blaze_query.Attribute.SelectorList selector_list = 21;- Specified by:
getSelectorListOrBuilderin interfaceBuild.AttributeOrBuilder
-
getDEPRECATEDStringDictUnaryValueList
public java.util.List<ByteString> getDEPRECATEDStringDictUnaryValueList()
repeated bytes DEPRECATED_string_dict_unary_value = 18;- Specified by:
getDEPRECATEDStringDictUnaryValueListin interfaceBuild.AttributeOrBuilder- Returns:
- A list containing the dEPRECATEDStringDictUnaryValue.
-
getDEPRECATEDStringDictUnaryValueCount
public int getDEPRECATEDStringDictUnaryValueCount()
repeated bytes DEPRECATED_string_dict_unary_value = 18;- Specified by:
getDEPRECATEDStringDictUnaryValueCountin interfaceBuild.AttributeOrBuilder- Returns:
- The count of dEPRECATEDStringDictUnaryValue.
-
getDEPRECATEDStringDictUnaryValue
public ByteString getDEPRECATEDStringDictUnaryValue(int index)
repeated bytes DEPRECATED_string_dict_unary_value = 18;- Specified by:
getDEPRECATEDStringDictUnaryValuein interfaceBuild.AttributeOrBuilder- Parameters:
index- The index of the element to return.- Returns:
- The dEPRECATEDStringDictUnaryValue at the given index.
-
isInitialized
public final boolean isInitialized()
Description copied from interface:MessageLiteOrBuilderReturns true if all required fields in the message and all embedded messages are set, false otherwise.- Specified by:
isInitializedin interfaceMessageLiteOrBuilder- Overrides:
isInitializedin classGeneratedMessageV3
-
writeTo
public void writeTo(CodedOutputStream output) throws java.io.IOException
Description copied from interface:MessageLiteSerializes the message and writes it tooutput. This does not flush or close the stream.- Specified by:
writeToin interfaceMessageLite- Overrides:
writeToin classGeneratedMessageV3- Throws:
java.io.IOException
-
getSerializedSize
public int getSerializedSize()
Description copied from interface:MessageLiteGet the number of bytes required to encode this message. The result is only computed on the first call and memoized after that. If this message requires more than Integer.MAX_VALUE bytes to encode, the return value will be smaller than the actual number of bytes required and might be negative.- Specified by:
getSerializedSizein interfaceMessageLite- Overrides:
getSerializedSizein classGeneratedMessageV3
-
equals
public boolean equals(java.lang.Object obj)
Description copied from interface:MessageCompares the specified object with this message for equality. Returnstrueif the given object is a message of the same type (as defined bygetDescriptorForType()) and has identical values for all of its fields. Subclasses must implement this; inheritingObject.equals()is incorrect.- Specified by:
equalsin interfaceMessage- Overrides:
equalsin classAbstractMessage- Parameters:
obj- object to be compared for equality with this message- Returns:
trueif the specified object is equal to this message
-
hashCode
public int hashCode()
Description copied from interface:MessageReturns the hash code value for this message. The hash code of a message should mix the message's type (object identity of the descriptor) with its contents (known and unknown field values). Subclasses must implement this; inheritingObject.hashCode()is incorrect.- Specified by:
hashCodein interfaceMessage- Overrides:
hashCodein classAbstractMessage- Returns:
- the hash code value for this message
- See Also:
Map.hashCode()
-
parseFrom
public static Build.Attribute parseFrom(java.nio.ByteBuffer data) throws InvalidProtocolBufferException
- Throws:
InvalidProtocolBufferException
-
parseFrom
public static Build.Attribute parseFrom(java.nio.ByteBuffer data, ExtensionRegistryLite extensionRegistry) throws InvalidProtocolBufferException
- Throws:
InvalidProtocolBufferException
-
parseFrom
public static Build.Attribute parseFrom(ByteString data) throws InvalidProtocolBufferException
- Throws:
InvalidProtocolBufferException
-
parseFrom
public static Build.Attribute parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry) throws InvalidProtocolBufferException
- Throws:
InvalidProtocolBufferException
-
parseFrom
public static Build.Attribute parseFrom(byte[] data) throws InvalidProtocolBufferException
- Throws:
InvalidProtocolBufferException
-
parseFrom
public static Build.Attribute parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry) throws InvalidProtocolBufferException
- Throws:
InvalidProtocolBufferException
-
parseFrom
public static Build.Attribute parseFrom(java.io.InputStream input) throws java.io.IOException
- Throws:
java.io.IOException
-
parseFrom
public static Build.Attribute parseFrom(java.io.InputStream input, ExtensionRegistryLite extensionRegistry) throws java.io.IOException
- Throws:
java.io.IOException
-
parseDelimitedFrom
public static Build.Attribute parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException
- Throws:
java.io.IOException
-
parseDelimitedFrom
public static Build.Attribute parseDelimitedFrom(java.io.InputStream input, ExtensionRegistryLite extensionRegistry) throws java.io.IOException
- Throws:
java.io.IOException
-
parseFrom
public static Build.Attribute parseFrom(CodedInputStream input) throws java.io.IOException
- Throws:
java.io.IOException
-
parseFrom
public static Build.Attribute parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry) throws java.io.IOException
- Throws:
java.io.IOException
-
newBuilderForType
public Build.Attribute.Builder newBuilderForType()
Description copied from interface:MessageLiteConstructs a new builder for a message of the same type as this message.- Specified by:
newBuilderForTypein interfaceMessage- Specified by:
newBuilderForTypein interfaceMessageLite
-
newBuilder
public static Build.Attribute.Builder newBuilder()
-
newBuilder
public static Build.Attribute.Builder newBuilder(Build.Attribute prototype)
-
toBuilder
public Build.Attribute.Builder toBuilder()
Description copied from interface:MessageLiteConstructs a builder initialized with the current message. Use this to derive a new message from the current one.- Specified by:
toBuilderin interfaceMessage- Specified by:
toBuilderin interfaceMessageLite
-
newBuilderForType
protected Build.Attribute.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Description copied from class:GeneratedMessageV3TODO(xiaofeng): remove this together with GeneratedMessageV3.BuilderParent.- Specified by:
newBuilderForTypein classGeneratedMessageV3
-
getDefaultInstance
public static Build.Attribute getDefaultInstance()
-
parser
public static Parser<Build.Attribute> parser()
-
getParserForType
public Parser<Build.Attribute> getParserForType()
Description copied from interface:MessageLiteGets the parser for a message of the same type as this message.- Specified by:
getParserForTypein interfaceMessage- Specified by:
getParserForTypein interfaceMessageLite- Overrides:
getParserForTypein classGeneratedMessageV3
-
getDefaultInstanceForType
public Build.Attribute getDefaultInstanceForType()
Description copied from interface:MessageLiteOrBuilderGet an instance of the type with no fields set. Because no fields are set, all getters for singular fields will return default values and repeated fields will appear empty. This may or may not be a singleton. This differs from thegetDefaultInstance()method of generated message classes in that this method is an abstract method of theMessageLiteinterface whereasgetDefaultInstance()is a static method of a specific class. They return the same thing.- Specified by:
getDefaultInstanceForTypein interfaceMessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfaceMessageOrBuilder
-
-