Class 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 type blaze_query.Attribute
    See Also:
    Serialized Form