Skip to main content

Attribute.boolean_value

Attribute.boolean_value: None | bool
If the attribute has a boolean value this will be populated.

Attribute.explicitly_specified

Attribute.explicitly_specified: None | bool
Whether the attribute was explicitly specified

Attribute.fileset_list_value

Attribute.fileset_list_value: list[fileset_entry]
If the attribute is part of a Fileset, the fileset entries are stored in this field.

Attribute.int_list_value

Attribute.int_list_value: list[int]
The value of the attribute has a list of int32 values

Attribute.int_value

Attribute.int_value: None | int
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.

Attribute.label_dict_unary_value

Attribute.label_dict_unary_value: list[label_dict_unary_entry]
If this is a label dict unary, each entry will be stored here.

Attribute.label_keyed_string_dict_value

Attribute.label_keyed_string_dict_value: list[label_keyed_string_dict_entry]
If this is a label-keyed string dict, each entry will be stored here.

Attribute.label_list_dict_value

Attribute.label_list_dict_value: list[label_list_dict_entry]
If this is a label list dict, each entry will be stored here.

Attribute.license

Attribute.license: None | license
If this is a license attribute, the license information is stored here.

Attribute.name

Attribute.name: str
The name of the attribute

Attribute.nodep

Attribute.nodep: None | bool
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.

Attribute.selector_list

Attribute.selector_list: None | selector_list
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.

Attribute.source_aspect_name

Attribute.source_aspect_name: None | str
Represents the aspect that this attribute comes from. It is set to an empty string if it does not come from an aspect.

Attribute.string_dict_value

Attribute.string_dict_value: list[string_dict_entry]
If this is a string dict, each entry will be stored here.

Attribute.string_list_dict_value

Attribute.string_list_dict_value: list[string_list_dict_entry]
If this is a string list dict, each entry will be stored here.

Attribute.string_list_value

Attribute.string_list_value: list[str]
The value of the attribute has a list of string values (label and path note from STRING applies here as well).

Attribute.string_value

Attribute.string_value: None | str
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.

Attribute.tristate_value

Attribute.tristate_value: None | int
If the attribute is a Tristate value, this will be populated.

Attribute.type

Attribute.type: str
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.