blaze_query

package
v0.25.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 23, 2024 License: Apache-2.0, Apache-2.0 Imports: 3 Imported by: 2

Documentation

Overview

Package blaze_query is a generated protocol buffer package.

It is generated from these files:

third_party/bazel/master/src/main/protobuf/build.proto

It has these top-level messages:

License
StringDictEntry
LabelDictUnaryEntry
LabelListDictEntry
LabelKeyedStringDictEntry
StringListDictEntry
FilesetEntry
Attribute
Rule
AttributeAspect
SkylarkAspect
RuleSummary
PackageGroup
EnvironmentGroup
SourceFile
GeneratedFile
Target
QueryResult
AllowedRuleClassInfo
AttributeDefinition
RuleDefinition
BuildLanguage
Location
MakeVarBinding
MakeVar
GlobCriteria
Event

Index

Constants

This section is empty.

Variables

View Source
var AllowedRuleClassInfo_AllowedRuleClasses_name = map[int32]string{
	1: "ANY",
	2: "SPECIFIED",
}
View Source
var AllowedRuleClassInfo_AllowedRuleClasses_value = map[string]int32{
	"ANY":       1,
	"SPECIFIED": 2,
}
View Source
var Attribute_Discriminator_name = map[int32]string{
	1:  "INTEGER",
	2:  "STRING",
	3:  "LABEL",
	4:  "OUTPUT",
	5:  "STRING_LIST",
	6:  "LABEL_LIST",
	7:  "OUTPUT_LIST",
	8:  "DISTRIBUTION_SET",
	9:  "LICENSE",
	10: "STRING_DICT",
	11: "FILESET_ENTRY_LIST",
	12: "LABEL_LIST_DICT",
	13: "STRING_LIST_DICT",
	14: "BOOLEAN",
	15: "TRISTATE",
	16: "INTEGER_LIST",
	18: "UNKNOWN",
	19: "LABEL_DICT_UNARY",
	20: "SELECTOR_LIST",
	21: "LABEL_KEYED_STRING_DICT",
	17: "DEPRECATED_STRING_DICT_UNARY",
}
View Source
var Attribute_Discriminator_value = map[string]int32{
	"INTEGER":                      1,
	"STRING":                       2,
	"LABEL":                        3,
	"OUTPUT":                       4,
	"STRING_LIST":                  5,
	"LABEL_LIST":                   6,
	"OUTPUT_LIST":                  7,
	"DISTRIBUTION_SET":             8,
	"LICENSE":                      9,
	"STRING_DICT":                  10,
	"FILESET_ENTRY_LIST":           11,
	"LABEL_LIST_DICT":              12,
	"STRING_LIST_DICT":             13,
	"BOOLEAN":                      14,
	"TRISTATE":                     15,
	"INTEGER_LIST":                 16,
	"UNKNOWN":                      18,
	"LABEL_DICT_UNARY":             19,
	"SELECTOR_LIST":                20,
	"LABEL_KEYED_STRING_DICT":      21,
	"DEPRECATED_STRING_DICT_UNARY": 17,
}
View Source
var Attribute_Tristate_name = map[int32]string{
	0: "NO",
	1: "YES",
	2: "AUTO",
}
View Source
var Attribute_Tristate_value = map[string]int32{
	"NO":   0,
	"YES":  1,
	"AUTO": 2,
}
View Source
var Event_EventKind_name = map[int32]string{
	1: "ERROR",
	2: "WARNING",
	3: "INFO",
	4: "PROGRESS",
}
View Source
var Event_EventKind_value = map[string]int32{
	"ERROR":    1,
	"WARNING":  2,
	"INFO":     3,
	"PROGRESS": 4,
}
View Source
var FilesetEntry_SymlinkBehavior_name = map[int32]string{
	1: "COPY",
	2: "DEREFERENCE",
}
View Source
var FilesetEntry_SymlinkBehavior_value = map[string]int32{
	"COPY":        1,
	"DEREFERENCE": 2,
}
View Source
var Target_Discriminator_name = map[int32]string{
	1: "RULE",
	2: "SOURCE_FILE",
	3: "GENERATED_FILE",
	4: "PACKAGE_GROUP",
	5: "ENVIRONMENT_GROUP",
}
View Source
var Target_Discriminator_value = map[string]int32{
	"RULE":              1,
	"SOURCE_FILE":       2,
	"GENERATED_FILE":    3,
	"PACKAGE_GROUP":     4,
	"ENVIRONMENT_GROUP": 5,
}

Functions

This section is empty.

Types

type AllowedRuleClassInfo

type AllowedRuleClassInfo struct {
	Policy *AllowedRuleClassInfo_AllowedRuleClasses `protobuf:"varint,1,req,name=policy,enum=blaze_query.AllowedRuleClassInfo_AllowedRuleClasses" json:"policy,omitempty"`
	// Rule class names of rules allowed in this attribute, e.g "cc_library",
	// "py_binary". Only present if the allowed_rule_classes field is set to
	// SPECIFIED.
	AllowedRuleClass []string `protobuf:"bytes,2,rep,name=allowed_rule_class,json=allowedRuleClass" json:"allowed_rule_class,omitempty"`
	XXX_unrecognized []byte   `json:"-"`
}

Information about allowed rule classes for a specific attribute of a rule.

func (*AllowedRuleClassInfo) Descriptor

func (*AllowedRuleClassInfo) Descriptor() ([]byte, []int)

func (*AllowedRuleClassInfo) GetAllowedRuleClass

func (m *AllowedRuleClassInfo) GetAllowedRuleClass() []string

func (*AllowedRuleClassInfo) GetPolicy

func (*AllowedRuleClassInfo) ProtoMessage

func (*AllowedRuleClassInfo) ProtoMessage()

func (*AllowedRuleClassInfo) Reset

func (m *AllowedRuleClassInfo) Reset()

func (*AllowedRuleClassInfo) String

func (m *AllowedRuleClassInfo) String() string

type AllowedRuleClassInfo_AllowedRuleClasses

type AllowedRuleClassInfo_AllowedRuleClasses int32
const (
	AllowedRuleClassInfo_ANY       AllowedRuleClassInfo_AllowedRuleClasses = 1
	AllowedRuleClassInfo_SPECIFIED AllowedRuleClassInfo_AllowedRuleClasses = 2
)

func (AllowedRuleClassInfo_AllowedRuleClasses) Enum

func (AllowedRuleClassInfo_AllowedRuleClasses) EnumDescriptor

func (AllowedRuleClassInfo_AllowedRuleClasses) EnumDescriptor() ([]byte, []int)

func (AllowedRuleClassInfo_AllowedRuleClasses) String

func (*AllowedRuleClassInfo_AllowedRuleClasses) UnmarshalJSON

func (x *AllowedRuleClassInfo_AllowedRuleClasses) UnmarshalJSON(data []byte) error

type Attribute

type Attribute struct {
	// The name of the attribute
	Name *string `protobuf:"bytes,1,req,name=name" json:"name,omitempty"`
	// The location of the target in the BUILD file in a machine-parseable form.
	DEPRECATEDParseableLocation *Location `` /* 138-byte string literal not displayed */
	// Whether the attribute was explicitly specified
	ExplicitlySpecified *bool `protobuf:"varint,13,opt,name=explicitly_specified,json=explicitlySpecified" json:"explicitly_specified,omitempty"`
	// 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.
	Nodep *bool `protobuf:"varint,20,opt,name=nodep" json:"nodep,omitempty"`
	// 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.
	Type *Attribute_Discriminator `protobuf:"varint,2,req,name=type,enum=blaze_query.Attribute_Discriminator" json:"type,omitempty"`
	// 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.
	IntValue *int32 `protobuf:"varint,3,opt,name=int_value,json=intValue" json:"int_value,omitempty"`
	// 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.
	StringValue *string `protobuf:"bytes,5,opt,name=string_value,json=stringValue" json:"string_value,omitempty"`
	// If the attribute has a boolean value this will be populated.
	BooleanValue *bool `protobuf:"varint,14,opt,name=boolean_value,json=booleanValue" json:"boolean_value,omitempty"`
	// If the attribute is a Tristate value, this will be populated.
	TristateValue *Attribute_Tristate `` /* 131-byte string literal not displayed */
	// The value of the attribute has a list of string values (label and path
	// note from STRING applies here as well).
	StringListValue []string `protobuf:"bytes,6,rep,name=string_list_value,json=stringListValue" json:"string_list_value,omitempty"`
	// If this is a license attribute, the license information is stored here.
	License *License `protobuf:"bytes,7,opt,name=license" json:"license,omitempty"`
	// If this is a string dict, each entry will be stored here.
	StringDictValue []*StringDictEntry `protobuf:"bytes,8,rep,name=string_dict_value,json=stringDictValue" json:"string_dict_value,omitempty"`
	// If the attribute is part of a Fileset, the fileset entries are stored in
	// this field.
	FilesetListValue []*FilesetEntry `protobuf:"bytes,9,rep,name=fileset_list_value,json=filesetListValue" json:"fileset_list_value,omitempty"`
	// If this is a label list dict, each entry will be stored here.
	LabelListDictValue []*LabelListDictEntry `protobuf:"bytes,10,rep,name=label_list_dict_value,json=labelListDictValue" json:"label_list_dict_value,omitempty"`
	// If this is a string list dict, each entry will be stored here.
	StringListDictValue []*StringListDictEntry `protobuf:"bytes,11,rep,name=string_list_dict_value,json=stringListDictValue" json:"string_list_dict_value,omitempty"`
	// The glob criteria. This is non-empty if:
	// 1. This attribute is a list of strings or labels, and,
	// 2. It contained a glob() expression
	GlobCriteria []*GlobCriteria `protobuf:"bytes,16,rep,name=glob_criteria,json=globCriteria" json:"glob_criteria,omitempty"`
	// The value of the attribute has a list of int32 values
	IntListValue []int32 `protobuf:"varint,17,rep,name=int_list_value,json=intListValue" json:"int_list_value,omitempty"`
	// If this is a label dict unary, each entry will be stored here.
	LabelDictUnaryValue []*LabelDictUnaryEntry `protobuf:"bytes,19,rep,name=label_dict_unary_value,json=labelDictUnaryValue" json:"label_dict_unary_value,omitempty"`
	// If this is a label-keyed string dict, each entry will be stored here.
	LabelKeyedStringDictValue []*LabelKeyedStringDictEntry `` /* 136-byte string literal not displayed */
	// 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.
	SelectorList                   *Attribute_SelectorList `protobuf:"bytes,21,opt,name=selector_list,json=selectorList" json:"selector_list,omitempty"`
	DEPRECATEDStringDictUnaryValue [][]byte                `` /* 151-byte string literal not displayed */
	XXX_unrecognized               []byte                  `json:"-"`
}

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.

func (*Attribute) Descriptor

func (*Attribute) Descriptor() ([]byte, []int)

func (*Attribute) GetBooleanValue

func (m *Attribute) GetBooleanValue() bool

func (*Attribute) GetDEPRECATEDParseableLocation

func (m *Attribute) GetDEPRECATEDParseableLocation() *Location

func (*Attribute) GetDEPRECATEDStringDictUnaryValue

func (m *Attribute) GetDEPRECATEDStringDictUnaryValue() [][]byte

func (*Attribute) GetExplicitlySpecified

func (m *Attribute) GetExplicitlySpecified() bool

func (*Attribute) GetFilesetListValue

func (m *Attribute) GetFilesetListValue() []*FilesetEntry

func (*Attribute) GetGlobCriteria

func (m *Attribute) GetGlobCriteria() []*GlobCriteria

func (*Attribute) GetIntListValue

func (m *Attribute) GetIntListValue() []int32

func (*Attribute) GetIntValue

func (m *Attribute) GetIntValue() int32

func (*Attribute) GetLabelDictUnaryValue

func (m *Attribute) GetLabelDictUnaryValue() []*LabelDictUnaryEntry

func (*Attribute) GetLabelKeyedStringDictValue

func (m *Attribute) GetLabelKeyedStringDictValue() []*LabelKeyedStringDictEntry

func (*Attribute) GetLabelListDictValue

func (m *Attribute) GetLabelListDictValue() []*LabelListDictEntry

func (*Attribute) GetLicense

func (m *Attribute) GetLicense() *License

func (*Attribute) GetName

func (m *Attribute) GetName() string

func (*Attribute) GetNodep

func (m *Attribute) GetNodep() bool

func (*Attribute) GetSelectorList

func (m *Attribute) GetSelectorList() *Attribute_SelectorList

func (*Attribute) GetStringDictValue

func (m *Attribute) GetStringDictValue() []*StringDictEntry

func (*Attribute) GetStringListDictValue

func (m *Attribute) GetStringListDictValue() []*StringListDictEntry

func (*Attribute) GetStringListValue

func (m *Attribute) GetStringListValue() []string

func (*Attribute) GetStringValue

func (m *Attribute) GetStringValue() string

func (*Attribute) GetTristateValue

func (m *Attribute) GetTristateValue() Attribute_Tristate

func (*Attribute) GetType

func (m *Attribute) GetType() Attribute_Discriminator

func (*Attribute) ProtoMessage

func (*Attribute) ProtoMessage()

func (*Attribute) Reset

func (m *Attribute) Reset()

func (*Attribute) String

func (m *Attribute) String() string

type AttributeAspect

type AttributeAspect struct {
	AttributeName    *string        `protobuf:"bytes,1,req,name=attribute_name,json=attributeName" json:"attribute_name,omitempty"`
	Aspect           *SkylarkAspect `protobuf:"bytes,2,req,name=aspect" json:"aspect,omitempty"`
	XXX_unrecognized []byte         `json:"-"`
}

A pairing of attribute name and a Skylark aspect that is applied to that attribute.

func (*AttributeAspect) Descriptor

func (*AttributeAspect) Descriptor() ([]byte, []int)

func (*AttributeAspect) GetAspect

func (m *AttributeAspect) GetAspect() *SkylarkAspect

func (*AttributeAspect) GetAttributeName

func (m *AttributeAspect) GetAttributeName() string

func (*AttributeAspect) ProtoMessage

func (*AttributeAspect) ProtoMessage()

func (*AttributeAspect) Reset

func (m *AttributeAspect) Reset()

func (*AttributeAspect) String

func (m *AttributeAspect) String() string

type AttributeDefinition

type AttributeDefinition struct {
	// Attribute name, i.e. "name", "srcs", "deps"
	Name      *string                  `protobuf:"bytes,1,req,name=name" json:"name,omitempty"`
	Type      *Attribute_Discriminator `protobuf:"varint,2,req,name=type,enum=blaze_query.Attribute_Discriminator" json:"type,omitempty"`
	Mandatory *bool                    `protobuf:"varint,3,req,name=mandatory" json:"mandatory,omitempty"`
	// Only present for attributes of type LABEL and LABEL_LIST.
	AllowedRuleClasses *AllowedRuleClassInfo `protobuf:"bytes,4,opt,name=allowed_rule_classes,json=allowedRuleClasses" json:"allowed_rule_classes,omitempty"`
	Documentation      *string               `protobuf:"bytes,5,opt,name=documentation" json:"documentation,omitempty"`
	XXX_unrecognized   []byte                `json:"-"`
}

This message represents a single attribute of a single rule.

func (*AttributeDefinition) Descriptor

func (*AttributeDefinition) Descriptor() ([]byte, []int)

func (*AttributeDefinition) GetAllowedRuleClasses

func (m *AttributeDefinition) GetAllowedRuleClasses() *AllowedRuleClassInfo

func (*AttributeDefinition) GetDocumentation

func (m *AttributeDefinition) GetDocumentation() string

func (*AttributeDefinition) GetMandatory

func (m *AttributeDefinition) GetMandatory() bool

func (*AttributeDefinition) GetName

func (m *AttributeDefinition) GetName() string

func (*AttributeDefinition) GetType

func (*AttributeDefinition) ProtoMessage

func (*AttributeDefinition) ProtoMessage()

func (*AttributeDefinition) Reset

func (m *AttributeDefinition) Reset()

func (*AttributeDefinition) String

func (m *AttributeDefinition) String() string

type Attribute_Discriminator

type Attribute_Discriminator int32

Indicates the type of attribute.

const (
	Attribute_INTEGER                      Attribute_Discriminator = 1
	Attribute_STRING                       Attribute_Discriminator = 2
	Attribute_LABEL                        Attribute_Discriminator = 3
	Attribute_OUTPUT                       Attribute_Discriminator = 4
	Attribute_STRING_LIST                  Attribute_Discriminator = 5
	Attribute_LABEL_LIST                   Attribute_Discriminator = 6
	Attribute_OUTPUT_LIST                  Attribute_Discriminator = 7
	Attribute_DISTRIBUTION_SET             Attribute_Discriminator = 8
	Attribute_LICENSE                      Attribute_Discriminator = 9
	Attribute_STRING_DICT                  Attribute_Discriminator = 10
	Attribute_FILESET_ENTRY_LIST           Attribute_Discriminator = 11
	Attribute_LABEL_LIST_DICT              Attribute_Discriminator = 12
	Attribute_STRING_LIST_DICT             Attribute_Discriminator = 13
	Attribute_BOOLEAN                      Attribute_Discriminator = 14
	Attribute_TRISTATE                     Attribute_Discriminator = 15
	Attribute_INTEGER_LIST                 Attribute_Discriminator = 16
	Attribute_UNKNOWN                      Attribute_Discriminator = 18
	Attribute_LABEL_DICT_UNARY             Attribute_Discriminator = 19
	Attribute_SELECTOR_LIST                Attribute_Discriminator = 20
	Attribute_LABEL_KEYED_STRING_DICT      Attribute_Discriminator = 21
	Attribute_DEPRECATED_STRING_DICT_UNARY Attribute_Discriminator = 17
)

func (Attribute_Discriminator) Enum

func (Attribute_Discriminator) EnumDescriptor

func (Attribute_Discriminator) EnumDescriptor() ([]byte, []int)

func (Attribute_Discriminator) String

func (x Attribute_Discriminator) String() string

func (*Attribute_Discriminator) UnmarshalJSON

func (x *Attribute_Discriminator) UnmarshalJSON(data []byte) error

type Attribute_Selector

type Attribute_Selector struct {
	// The list of (label, value) pairs in the map that defines the selector.
	// At this time, this cannot be empty, i.e. a selector has at least one
	// entry.
	Entries []*Attribute_SelectorEntry `protobuf:"bytes,1,rep,name=entries" json:"entries,omitempty"`
	// Whether or not this has any default values.
	HasDefaultValue *bool `protobuf:"varint,2,opt,name=has_default_value,json=hasDefaultValue" json:"has_default_value,omitempty"`
	// The error message when no condition matches.
	NoMatchError     *string `protobuf:"bytes,3,opt,name=no_match_error,json=noMatchError" json:"no_match_error,omitempty"`
	XXX_unrecognized []byte  `json:"-"`
}

func (*Attribute_Selector) Descriptor

func (*Attribute_Selector) Descriptor() ([]byte, []int)

func (*Attribute_Selector) GetEntries

func (m *Attribute_Selector) GetEntries() []*Attribute_SelectorEntry

func (*Attribute_Selector) GetHasDefaultValue

func (m *Attribute_Selector) GetHasDefaultValue() bool

func (*Attribute_Selector) GetNoMatchError

func (m *Attribute_Selector) GetNoMatchError() string

func (*Attribute_Selector) ProtoMessage

func (*Attribute_Selector) ProtoMessage()

func (*Attribute_Selector) Reset

func (m *Attribute_Selector) Reset()

func (*Attribute_Selector) String

func (m *Attribute_Selector) String() string

type Attribute_SelectorEntry

type Attribute_SelectorEntry struct {
	// The key of the selector entry. At this time, this is the label of a
	// config_setting rule, or the pseudo-label "//conditions:default".
	Label *string `protobuf:"bytes,1,opt,name=label" json:"label,omitempty"`
	// True if the entry's value is the default value for the type as a
	// result of the condition value being specified as None (ie:
	// {"//condition": None}).
	IsDefaultValue *bool `protobuf:"varint,16,opt,name=is_default_value,json=isDefaultValue" json:"is_default_value,omitempty"`
	// Exactly one of the following fields (except for glob_criteria) must be
	// populated - note that the BOOLEAN and TRISTATE caveat in Attribute's
	// comment does not apply here. The type field in the SelectorList
	// containing this entry indicates which of these fields is populated,
	// in accordance with the comments on Discriminator enum values above.
	// (To be explicit: BOOLEAN populates the boolean_value field and TRISTATE
	// populates the tristate_value field.)
	IntValue                       *int32                       `protobuf:"varint,2,opt,name=int_value,json=intValue" json:"int_value,omitempty"`
	StringValue                    *string                      `protobuf:"bytes,3,opt,name=string_value,json=stringValue" json:"string_value,omitempty"`
	BooleanValue                   *bool                        `protobuf:"varint,4,opt,name=boolean_value,json=booleanValue" json:"boolean_value,omitempty"`
	TristateValue                  *Attribute_Tristate          `` /* 130-byte string literal not displayed */
	StringListValue                []string                     `protobuf:"bytes,6,rep,name=string_list_value,json=stringListValue" json:"string_list_value,omitempty"`
	License                        *License                     `protobuf:"bytes,7,opt,name=license" json:"license,omitempty"`
	StringDictValue                []*StringDictEntry           `protobuf:"bytes,8,rep,name=string_dict_value,json=stringDictValue" json:"string_dict_value,omitempty"`
	FilesetListValue               []*FilesetEntry              `protobuf:"bytes,9,rep,name=fileset_list_value,json=filesetListValue" json:"fileset_list_value,omitempty"`
	LabelListDictValue             []*LabelListDictEntry        `protobuf:"bytes,10,rep,name=label_list_dict_value,json=labelListDictValue" json:"label_list_dict_value,omitempty"`
	StringListDictValue            []*StringListDictEntry       `protobuf:"bytes,11,rep,name=string_list_dict_value,json=stringListDictValue" json:"string_list_dict_value,omitempty"`
	GlobCriteria                   []*GlobCriteria              `protobuf:"bytes,12,rep,name=glob_criteria,json=globCriteria" json:"glob_criteria,omitempty"`
	IntListValue                   []int32                      `protobuf:"varint,13,rep,name=int_list_value,json=intListValue" json:"int_list_value,omitempty"`
	LabelDictUnaryValue            []*LabelDictUnaryEntry       `protobuf:"bytes,15,rep,name=label_dict_unary_value,json=labelDictUnaryValue" json:"label_dict_unary_value,omitempty"`
	LabelKeyedStringDictValue      []*LabelKeyedStringDictEntry `` /* 136-byte string literal not displayed */
	DEPRECATEDStringDictUnaryValue [][]byte                     `` /* 151-byte string literal not displayed */
	XXX_unrecognized               []byte                       `json:"-"`
}

func (*Attribute_SelectorEntry) Descriptor

func (*Attribute_SelectorEntry) Descriptor() ([]byte, []int)

func (*Attribute_SelectorEntry) GetBooleanValue

func (m *Attribute_SelectorEntry) GetBooleanValue() bool

func (*Attribute_SelectorEntry) GetDEPRECATEDStringDictUnaryValue

func (m *Attribute_SelectorEntry) GetDEPRECATEDStringDictUnaryValue() [][]byte

func (*Attribute_SelectorEntry) GetFilesetListValue

func (m *Attribute_SelectorEntry) GetFilesetListValue() []*FilesetEntry

func (*Attribute_SelectorEntry) GetGlobCriteria

func (m *Attribute_SelectorEntry) GetGlobCriteria() []*GlobCriteria

func (*Attribute_SelectorEntry) GetIntListValue

func (m *Attribute_SelectorEntry) GetIntListValue() []int32

func (*Attribute_SelectorEntry) GetIntValue

func (m *Attribute_SelectorEntry) GetIntValue() int32

func (*Attribute_SelectorEntry) GetIsDefaultValue

func (m *Attribute_SelectorEntry) GetIsDefaultValue() bool

func (*Attribute_SelectorEntry) GetLabel

func (m *Attribute_SelectorEntry) GetLabel() string

func (*Attribute_SelectorEntry) GetLabelDictUnaryValue

func (m *Attribute_SelectorEntry) GetLabelDictUnaryValue() []*LabelDictUnaryEntry

func (*Attribute_SelectorEntry) GetLabelKeyedStringDictValue

func (m *Attribute_SelectorEntry) GetLabelKeyedStringDictValue() []*LabelKeyedStringDictEntry

func (*Attribute_SelectorEntry) GetLabelListDictValue

func (m *Attribute_SelectorEntry) GetLabelListDictValue() []*LabelListDictEntry

func (*Attribute_SelectorEntry) GetLicense

func (m *Attribute_SelectorEntry) GetLicense() *License

func (*Attribute_SelectorEntry) GetStringDictValue

func (m *Attribute_SelectorEntry) GetStringDictValue() []*StringDictEntry

func (*Attribute_SelectorEntry) GetStringListDictValue

func (m *Attribute_SelectorEntry) GetStringListDictValue() []*StringListDictEntry

func (*Attribute_SelectorEntry) GetStringListValue

func (m *Attribute_SelectorEntry) GetStringListValue() []string

func (*Attribute_SelectorEntry) GetStringValue

func (m *Attribute_SelectorEntry) GetStringValue() string

func (*Attribute_SelectorEntry) GetTristateValue

func (m *Attribute_SelectorEntry) GetTristateValue() Attribute_Tristate

func (*Attribute_SelectorEntry) ProtoMessage

func (*Attribute_SelectorEntry) ProtoMessage()

func (*Attribute_SelectorEntry) Reset

func (m *Attribute_SelectorEntry) Reset()

func (*Attribute_SelectorEntry) String

func (m *Attribute_SelectorEntry) String() string

type Attribute_SelectorList

type Attribute_SelectorList struct {
	// The type that this selector list evaluates to, and the type that each
	// selector in the list evaluates to. At this time, this cannot be
	// SELECTOR_LIST, i.e. selector lists do not nest.
	Type *Attribute_Discriminator `protobuf:"varint,1,opt,name=type,enum=blaze_query.Attribute_Discriminator" json:"type,omitempty"`
	// The list of selector elements in this selector list. At this time, this
	// cannot be empty, i.e. a selector list is never empty.
	Elements         []*Attribute_Selector `protobuf:"bytes,2,rep,name=elements" json:"elements,omitempty"`
	XXX_unrecognized []byte                `json:"-"`
}

func (*Attribute_SelectorList) Descriptor

func (*Attribute_SelectorList) Descriptor() ([]byte, []int)

func (*Attribute_SelectorList) GetElements

func (m *Attribute_SelectorList) GetElements() []*Attribute_Selector

func (*Attribute_SelectorList) GetType

func (*Attribute_SelectorList) ProtoMessage

func (*Attribute_SelectorList) ProtoMessage()

func (*Attribute_SelectorList) Reset

func (m *Attribute_SelectorList) Reset()

func (*Attribute_SelectorList) String

func (m *Attribute_SelectorList) String() string

type Attribute_Tristate

type Attribute_Tristate int32

Values for the TriState field type.

const (
	Attribute_NO   Attribute_Tristate = 0
	Attribute_YES  Attribute_Tristate = 1
	Attribute_AUTO Attribute_Tristate = 2
)

func (Attribute_Tristate) Enum

func (Attribute_Tristate) EnumDescriptor

func (Attribute_Tristate) EnumDescriptor() ([]byte, []int)

func (Attribute_Tristate) String

func (x Attribute_Tristate) String() string

func (*Attribute_Tristate) UnmarshalJSON

func (x *Attribute_Tristate) UnmarshalJSON(data []byte) error

type BuildLanguage

type BuildLanguage struct {
	// Only contains documented rule definitions
	Rule             []*RuleDefinition `protobuf:"bytes,1,rep,name=rule" json:"rule,omitempty"`
	XXX_unrecognized []byte            `json:"-"`
}

func (*BuildLanguage) Descriptor

func (*BuildLanguage) Descriptor() ([]byte, []int)

func (*BuildLanguage) GetRule

func (m *BuildLanguage) GetRule() []*RuleDefinition

func (*BuildLanguage) ProtoMessage

func (*BuildLanguage) ProtoMessage()

func (*BuildLanguage) Reset

func (m *BuildLanguage) Reset()

func (*BuildLanguage) String

func (m *BuildLanguage) String() string

type EnvironmentGroup

type EnvironmentGroup struct {
	// The name of the environment group.
	Name *string `protobuf:"bytes,1,req,name=name" json:"name,omitempty"`
	// The environments that belong to this group (as labels).
	Environment []string `protobuf:"bytes,2,rep,name=environment" json:"environment,omitempty"`
	// The member environments that rules implicitly support if not otherwise
	// specified.
	Default          []string `protobuf:"bytes,3,rep,name=default" json:"default,omitempty"`
	XXX_unrecognized []byte   `json:"-"`
}

An environment group.

func (*EnvironmentGroup) Descriptor

func (*EnvironmentGroup) Descriptor() ([]byte, []int)

func (*EnvironmentGroup) GetDefault

func (m *EnvironmentGroup) GetDefault() []string

func (*EnvironmentGroup) GetEnvironment

func (m *EnvironmentGroup) GetEnvironment() []string

func (*EnvironmentGroup) GetName

func (m *EnvironmentGroup) GetName() string

func (*EnvironmentGroup) ProtoMessage

func (*EnvironmentGroup) ProtoMessage()

func (*EnvironmentGroup) Reset

func (m *EnvironmentGroup) Reset()

func (*EnvironmentGroup) String

func (m *EnvironmentGroup) String() string

type Event

type Event struct {
	Kind               *Event_EventKind `protobuf:"varint,1,req,name=kind,enum=blaze_query.Event_EventKind" json:"kind,omitempty"`
	DEPRECATEDLocation *Location        `protobuf:"bytes,2,opt,name=DEPRECATED_location,json=DEPRECATEDLocation" json:"DEPRECATED_location,omitempty"`
	Message            *string          `protobuf:"bytes,3,opt,name=message" json:"message,omitempty"`
	XXX_unrecognized   []byte           `json:"-"`
}

func (*Event) Descriptor

func (*Event) Descriptor() ([]byte, []int)

func (*Event) GetDEPRECATEDLocation

func (m *Event) GetDEPRECATEDLocation() *Location

func (*Event) GetKind

func (m *Event) GetKind() Event_EventKind

func (*Event) GetMessage

func (m *Event) GetMessage() string

func (*Event) ProtoMessage

func (*Event) ProtoMessage()

func (*Event) Reset

func (m *Event) Reset()

func (*Event) String

func (m *Event) String() string

type Event_EventKind

type Event_EventKind int32
const (
	Event_ERROR    Event_EventKind = 1
	Event_WARNING  Event_EventKind = 2
	Event_INFO     Event_EventKind = 3
	Event_PROGRESS Event_EventKind = 4
)

func (Event_EventKind) Enum

func (x Event_EventKind) Enum() *Event_EventKind

func (Event_EventKind) EnumDescriptor

func (Event_EventKind) EnumDescriptor() ([]byte, []int)

func (Event_EventKind) String

func (x Event_EventKind) String() string

func (*Event_EventKind) UnmarshalJSON

func (x *Event_EventKind) UnmarshalJSON(data []byte) error

type FilesetEntry

type FilesetEntry struct {
	// The label pointing to the source target where files are copied from.
	Source *string `protobuf:"bytes,1,req,name=source" json:"source,omitempty"`
	// The relative path within the fileset rule where files will be mapped.
	DestinationDirectory *string `protobuf:"bytes,2,req,name=destination_directory,json=destinationDirectory" json:"destination_directory,omitempty"`
	// Whether the files= attribute was specified. This is necessary because
	// no files= attribute and files=[] mean different things.
	FilesPresent *bool `protobuf:"varint,7,opt,name=files_present,json=filesPresent" json:"files_present,omitempty"`
	// A list of file labels to include from the source directory.
	File []string `protobuf:"bytes,3,rep,name=file" json:"file,omitempty"`
	// If this is a fileset entry representing files within the rule
	// package, this lists relative paths to files that should be excluded from
	// the set.  This cannot contain values if 'file' also has values.
	Exclude []string `protobuf:"bytes,4,rep,name=exclude" json:"exclude,omitempty"`
	// This field is optional because there will be some time when the new
	// PB is used by tools depending on blaze query, but the new blaze version
	// is not yet released.
	// TODO(bazel-team): Make this field required once a version of Blaze is
	// released that outputs this field.
	SymlinkBehavior *FilesetEntry_SymlinkBehavior `` /* 152-byte string literal not displayed */
	// The prefix to strip from the path of the files in this FilesetEntry. Note
	// that no value and the empty string as the value mean different things here.
	StripPrefix      *string `protobuf:"bytes,6,opt,name=strip_prefix,json=stripPrefix" json:"strip_prefix,omitempty"`
	XXX_unrecognized []byte  `json:"-"`
}

Represents an entry attribute of a Fileset rule in a build file.

func (*FilesetEntry) Descriptor

func (*FilesetEntry) Descriptor() ([]byte, []int)

func (*FilesetEntry) GetDestinationDirectory

func (m *FilesetEntry) GetDestinationDirectory() string

func (*FilesetEntry) GetExclude

func (m *FilesetEntry) GetExclude() []string

func (*FilesetEntry) GetFile

func (m *FilesetEntry) GetFile() []string

func (*FilesetEntry) GetFilesPresent

func (m *FilesetEntry) GetFilesPresent() bool

func (*FilesetEntry) GetSource

func (m *FilesetEntry) GetSource() string

func (*FilesetEntry) GetStripPrefix

func (m *FilesetEntry) GetStripPrefix() string

func (*FilesetEntry) GetSymlinkBehavior

func (m *FilesetEntry) GetSymlinkBehavior() FilesetEntry_SymlinkBehavior

func (*FilesetEntry) ProtoMessage

func (*FilesetEntry) ProtoMessage()

func (*FilesetEntry) Reset

func (m *FilesetEntry) Reset()

func (*FilesetEntry) String

func (m *FilesetEntry) String() string

type FilesetEntry_SymlinkBehavior

type FilesetEntry_SymlinkBehavior int32

Indicates what to do when a source file is actually a symlink.

const (
	FilesetEntry_COPY        FilesetEntry_SymlinkBehavior = 1
	FilesetEntry_DEREFERENCE FilesetEntry_SymlinkBehavior = 2
)
const Default_FilesetEntry_SymlinkBehavior FilesetEntry_SymlinkBehavior = FilesetEntry_COPY

func (FilesetEntry_SymlinkBehavior) Enum

func (FilesetEntry_SymlinkBehavior) EnumDescriptor

func (FilesetEntry_SymlinkBehavior) EnumDescriptor() ([]byte, []int)

func (FilesetEntry_SymlinkBehavior) String

func (*FilesetEntry_SymlinkBehavior) UnmarshalJSON

func (x *FilesetEntry_SymlinkBehavior) UnmarshalJSON(data []byte) error

type GeneratedFile

type GeneratedFile struct {
	// The name of the generated file (a label).
	Name *string `protobuf:"bytes,1,req,name=name" json:"name,omitempty"`
	// The label of the target that generates the file.
	GeneratingRule *string `protobuf:"bytes,2,req,name=generating_rule,json=generatingRule" json:"generating_rule,omitempty"`
	// The path of the output file (not a label).
	Location         *string `protobuf:"bytes,3,opt,name=location" json:"location,omitempty"`
	XXX_unrecognized []byte  `json:"-"`
}

A file that is the output of a build rule.

func (*GeneratedFile) Descriptor

func (*GeneratedFile) Descriptor() ([]byte, []int)

func (*GeneratedFile) GetGeneratingRule

func (m *GeneratedFile) GetGeneratingRule() string

func (*GeneratedFile) GetLocation

func (m *GeneratedFile) GetLocation() string

func (*GeneratedFile) GetName

func (m *GeneratedFile) GetName() string

func (*GeneratedFile) ProtoMessage

func (*GeneratedFile) ProtoMessage()

func (*GeneratedFile) Reset

func (m *GeneratedFile) Reset()

func (*GeneratedFile) String

func (m *GeneratedFile) String() string

type GlobCriteria

type GlobCriteria struct {
	// List of includes (or items if this criteria did not come from a glob)
	Include []string `protobuf:"bytes,1,rep,name=include" json:"include,omitempty"`
	// List of exclude expressions
	Exclude []string `protobuf:"bytes,2,rep,name=exclude" json:"exclude,omitempty"`
	// Whether this message came from a glob
	Glob             *bool  `protobuf:"varint,3,opt,name=glob" json:"glob,omitempty"`
	XXX_unrecognized []byte `json:"-"`
}

func (*GlobCriteria) Descriptor

func (*GlobCriteria) Descriptor() ([]byte, []int)

func (*GlobCriteria) GetExclude

func (m *GlobCriteria) GetExclude() []string

func (*GlobCriteria) GetGlob

func (m *GlobCriteria) GetGlob() bool

func (*GlobCriteria) GetInclude

func (m *GlobCriteria) GetInclude() []string

func (*GlobCriteria) ProtoMessage

func (*GlobCriteria) ProtoMessage()

func (*GlobCriteria) Reset

func (m *GlobCriteria) Reset()

func (*GlobCriteria) String

func (m *GlobCriteria) String() string

type LabelDictUnaryEntry

type LabelDictUnaryEntry struct {
	Key              *string `protobuf:"bytes,1,req,name=key" json:"key,omitempty"`
	Value            *string `protobuf:"bytes,2,req,name=value" json:"value,omitempty"`
	XXX_unrecognized []byte  `json:"-"`
}

func (*LabelDictUnaryEntry) Descriptor

func (*LabelDictUnaryEntry) Descriptor() ([]byte, []int)

func (*LabelDictUnaryEntry) GetKey

func (m *LabelDictUnaryEntry) GetKey() string

func (*LabelDictUnaryEntry) GetValue

func (m *LabelDictUnaryEntry) GetValue() string

func (*LabelDictUnaryEntry) ProtoMessage

func (*LabelDictUnaryEntry) ProtoMessage()

func (*LabelDictUnaryEntry) Reset

func (m *LabelDictUnaryEntry) Reset()

func (*LabelDictUnaryEntry) String

func (m *LabelDictUnaryEntry) String() string

type LabelKeyedStringDictEntry

type LabelKeyedStringDictEntry struct {
	Key              *string `protobuf:"bytes,1,req,name=key" json:"key,omitempty"`
	Value            *string `protobuf:"bytes,2,req,name=value" json:"value,omitempty"`
	XXX_unrecognized []byte  `json:"-"`
}

func (*LabelKeyedStringDictEntry) Descriptor

func (*LabelKeyedStringDictEntry) Descriptor() ([]byte, []int)

func (*LabelKeyedStringDictEntry) GetKey

func (m *LabelKeyedStringDictEntry) GetKey() string

func (*LabelKeyedStringDictEntry) GetValue

func (m *LabelKeyedStringDictEntry) GetValue() string

func (*LabelKeyedStringDictEntry) ProtoMessage

func (*LabelKeyedStringDictEntry) ProtoMessage()

func (*LabelKeyedStringDictEntry) Reset

func (m *LabelKeyedStringDictEntry) Reset()

func (*LabelKeyedStringDictEntry) String

func (m *LabelKeyedStringDictEntry) String() string

type LabelListDictEntry

type LabelListDictEntry struct {
	Key              *string  `protobuf:"bytes,1,req,name=key" json:"key,omitempty"`
	Value            []string `protobuf:"bytes,2,rep,name=value" json:"value,omitempty"`
	XXX_unrecognized []byte   `json:"-"`
}

func (*LabelListDictEntry) Descriptor

func (*LabelListDictEntry) Descriptor() ([]byte, []int)

func (*LabelListDictEntry) GetKey

func (m *LabelListDictEntry) GetKey() string

func (*LabelListDictEntry) GetValue

func (m *LabelListDictEntry) GetValue() []string

func (*LabelListDictEntry) ProtoMessage

func (*LabelListDictEntry) ProtoMessage()

func (*LabelListDictEntry) Reset

func (m *LabelListDictEntry) Reset()

func (*LabelListDictEntry) String

func (m *LabelListDictEntry) String() string

type License

type License struct {
	LicenseType      []string `protobuf:"bytes,1,rep,name=license_type,json=licenseType" json:"license_type,omitempty"`
	Exception        []string `protobuf:"bytes,2,rep,name=exception" json:"exception,omitempty"`
	XXX_unrecognized []byte   `json:"-"`
}

func (*License) Descriptor

func (*License) Descriptor() ([]byte, []int)

func (*License) GetException

func (m *License) GetException() []string

func (*License) GetLicenseType

func (m *License) GetLicenseType() []string

func (*License) ProtoMessage

func (*License) ProtoMessage()

func (*License) Reset

func (m *License) Reset()

func (*License) String

func (m *License) String() string

type Location

type Location struct {
	StartOffset      *int32 `protobuf:"varint,1,opt,name=start_offset,json=startOffset" json:"start_offset,omitempty"`
	StartLine        *int32 `protobuf:"varint,2,opt,name=start_line,json=startLine" json:"start_line,omitempty"`
	StartColumn      *int32 `protobuf:"varint,3,opt,name=start_column,json=startColumn" json:"start_column,omitempty"`
	EndOffset        *int32 `protobuf:"varint,4,opt,name=end_offset,json=endOffset" json:"end_offset,omitempty"`
	EndLine          *int32 `protobuf:"varint,5,opt,name=end_line,json=endLine" json:"end_line,omitempty"`
	EndColumn        *int32 `protobuf:"varint,6,opt,name=end_column,json=endColumn" json:"end_column,omitempty"`
	XXX_unrecognized []byte `json:"-"`
}

func (*Location) Descriptor

func (*Location) Descriptor() ([]byte, []int)

func (*Location) GetEndColumn

func (m *Location) GetEndColumn() int32

func (*Location) GetEndLine

func (m *Location) GetEndLine() int32

func (*Location) GetEndOffset

func (m *Location) GetEndOffset() int32

func (*Location) GetStartColumn

func (m *Location) GetStartColumn() int32

func (*Location) GetStartLine

func (m *Location) GetStartLine() int32

func (*Location) GetStartOffset

func (m *Location) GetStartOffset() int32

func (*Location) ProtoMessage

func (*Location) ProtoMessage()

func (*Location) Reset

func (m *Location) Reset()

func (*Location) String

func (m *Location) String() string

type MakeVar

type MakeVar struct {
	Name             *string           `protobuf:"bytes,1,req,name=name" json:"name,omitempty"`
	Binding          []*MakeVarBinding `protobuf:"bytes,2,rep,name=binding" json:"binding,omitempty"`
	XXX_unrecognized []byte            `json:"-"`
}

func (*MakeVar) Descriptor

func (*MakeVar) Descriptor() ([]byte, []int)

func (*MakeVar) GetBinding

func (m *MakeVar) GetBinding() []*MakeVarBinding

func (*MakeVar) GetName

func (m *MakeVar) GetName() string

func (*MakeVar) ProtoMessage

func (*MakeVar) ProtoMessage()

func (*MakeVar) Reset

func (m *MakeVar) Reset()

func (*MakeVar) String

func (m *MakeVar) String() string

type MakeVarBinding

type MakeVarBinding struct {
	Value             *string `protobuf:"bytes,1,req,name=value" json:"value,omitempty"`
	PlatformSetRegexp *string `protobuf:"bytes,2,req,name=platform_set_regexp,json=platformSetRegexp" json:"platform_set_regexp,omitempty"`
	XXX_unrecognized  []byte  `json:"-"`
}

func (*MakeVarBinding) Descriptor

func (*MakeVarBinding) Descriptor() ([]byte, []int)

func (*MakeVarBinding) GetPlatformSetRegexp

func (m *MakeVarBinding) GetPlatformSetRegexp() string

func (*MakeVarBinding) GetValue

func (m *MakeVarBinding) GetValue() string

func (*MakeVarBinding) ProtoMessage

func (*MakeVarBinding) ProtoMessage()

func (*MakeVarBinding) Reset

func (m *MakeVarBinding) Reset()

func (*MakeVarBinding) String

func (m *MakeVarBinding) String() string

type PackageGroup

type PackageGroup struct {
	// The name of the package group
	Name *string `protobuf:"bytes,1,req,name=name" json:"name,omitempty"`
	// The list of packages as specified in the BUILD file. Currently this is
	// only a list of packages, but some time in the future, there might be
	// some type of wildcard mechanism.
	ContainedPackage []string `protobuf:"bytes,2,rep,name=contained_package,json=containedPackage" json:"contained_package,omitempty"`
	// The list of sub package groups included in this one.
	IncludedPackageGroup []string `protobuf:"bytes,3,rep,name=included_package_group,json=includedPackageGroup" json:"included_package_group,omitempty"`
	// The location of the target in the BUILD file in a machine-parseable form.
	DEPRECATEDParseableLocation *Location `` /* 137-byte string literal not displayed */
	XXX_unrecognized            []byte    `json:"-"`
}

A package group. Aside from the name, it contains the list of packages present in the group (as specified in the BUILD file).

func (*PackageGroup) Descriptor

func (*PackageGroup) Descriptor() ([]byte, []int)

func (*PackageGroup) GetContainedPackage

func (m *PackageGroup) GetContainedPackage() []string

func (*PackageGroup) GetDEPRECATEDParseableLocation

func (m *PackageGroup) GetDEPRECATEDParseableLocation() *Location

func (*PackageGroup) GetIncludedPackageGroup

func (m *PackageGroup) GetIncludedPackageGroup() []string

func (*PackageGroup) GetName

func (m *PackageGroup) GetName() string

func (*PackageGroup) ProtoMessage

func (*PackageGroup) ProtoMessage()

func (*PackageGroup) Reset

func (m *PackageGroup) Reset()

func (*PackageGroup) String

func (m *PackageGroup) String() string

type QueryResult

type QueryResult struct {
	// All of the targets returned by the blaze query.
	Target           []*Target `protobuf:"bytes,1,rep,name=target" json:"target,omitempty"`
	XXX_unrecognized []byte    `json:"-"`
}

Container for all of the blaze query results.

func (*QueryResult) Descriptor

func (*QueryResult) Descriptor() ([]byte, []int)

func (*QueryResult) GetTarget

func (m *QueryResult) GetTarget() []*Target

func (*QueryResult) ProtoMessage

func (*QueryResult) ProtoMessage()

func (*QueryResult) Reset

func (m *QueryResult) Reset()

func (*QueryResult) String

func (m *QueryResult) String() string

type Rule

type Rule struct {
	// The name of the rule
	Name *string `protobuf:"bytes,1,req,name=name" json:"name,omitempty"`
	// The rule class (e.g., java_library)
	RuleClass *string `protobuf:"bytes,2,req,name=rule_class,json=ruleClass" json:"rule_class,omitempty"`
	// The BUILD file and line number of the rule.
	Location *string `protobuf:"bytes,3,opt,name=location" json:"location,omitempty"`
	// All of the attributes that describe the rule.
	Attribute []*Attribute `protobuf:"bytes,4,rep,name=attribute" json:"attribute,omitempty"`
	// All of the inputs to the rule.  These are predecessors in the dependency
	// graph.  A rule_input for a rule should always be described as a
	// source_file in some package (either the rule's package or some other one).
	RuleInput []string `protobuf:"bytes,5,rep,name=rule_input,json=ruleInput" json:"rule_input,omitempty"`
	// All of the outputs of the rule.  These are the successors in the
	// dependency graph.
	RuleOutput []string `protobuf:"bytes,6,rep,name=rule_output,json=ruleOutput" json:"rule_output,omitempty"`
	// The set of all default settings affecting this rule. The name of a default
	// setting is "<setting type>_<setting name>". There currently defined setting
	// types are:
	//
	// - 'blaze': settings implemented in Blaze itself
	DefaultSetting []string `protobuf:"bytes,7,rep,name=default_setting,json=defaultSetting" json:"default_setting,omitempty"`
	// The location of the target in the BUILD file in a machine-parseable form.
	DEPRECATEDParseableLocation *Location `` /* 137-byte string literal not displayed */
	// The rule's class's public by default value.
	PublicByDefault *bool `protobuf:"varint,9,opt,name=public_by_default,json=publicByDefault" json:"public_by_default,omitempty"`
	// If this rule is of a skylark-defined RuleClass.
	IsSkylark *bool `protobuf:"varint,10,opt,name=is_skylark,json=isSkylark" json:"is_skylark,omitempty"`
	// List of Skylark aspects that this rule applies.
	SkylarkAttributeAspects []*AttributeAspect `` /* 126-byte string literal not displayed */
	// Hash encapsulating the behavior of this Skylark rule. Any change to this
	// rule's definition that could change its behavior will be reflected here.
	SkylarkEnvironmentHashCode *string `` /* 137-byte string literal not displayed */
	XXX_unrecognized           []byte  `json:"-"`
}

A rule from a BUILD file (e.g., cc_library, java_binary). The rule class is the actual name of the rule (e.g., cc_library) and the name is the full label of the rule (e.g., //foo/bar:baz).

func (*Rule) Descriptor

func (*Rule) Descriptor() ([]byte, []int)

func (*Rule) GetAttribute

func (m *Rule) GetAttribute() []*Attribute

func (*Rule) GetDEPRECATEDParseableLocation

func (m *Rule) GetDEPRECATEDParseableLocation() *Location

func (*Rule) GetDefaultSetting

func (m *Rule) GetDefaultSetting() []string

func (*Rule) GetIsSkylark

func (m *Rule) GetIsSkylark() bool

func (*Rule) GetLocation

func (m *Rule) GetLocation() string

func (*Rule) GetName

func (m *Rule) GetName() string

func (*Rule) GetPublicByDefault

func (m *Rule) GetPublicByDefault() bool

func (*Rule) GetRuleClass

func (m *Rule) GetRuleClass() string

func (*Rule) GetRuleInput

func (m *Rule) GetRuleInput() []string

func (*Rule) GetRuleOutput

func (m *Rule) GetRuleOutput() []string

func (*Rule) GetSkylarkAttributeAspects

func (m *Rule) GetSkylarkAttributeAspects() []*AttributeAspect

func (*Rule) GetSkylarkEnvironmentHashCode

func (m *Rule) GetSkylarkEnvironmentHashCode() string

func (*Rule) ProtoMessage

func (*Rule) ProtoMessage()

func (*Rule) Reset

func (m *Rule) Reset()

func (*Rule) String

func (m *Rule) String() string

type RuleDefinition

type RuleDefinition struct {
	Name *string `protobuf:"bytes,1,req,name=name" json:"name,omitempty"`
	// Only contains documented attributes
	Attribute     []*AttributeDefinition `protobuf:"bytes,2,rep,name=attribute" json:"attribute,omitempty"`
	Documentation *string                `protobuf:"bytes,3,opt,name=documentation" json:"documentation,omitempty"`
	// Only for build extensions: label to file that defines the extension
	Label            *string `protobuf:"bytes,4,opt,name=label" json:"label,omitempty"`
	XXX_unrecognized []byte  `json:"-"`
}

func (*RuleDefinition) Descriptor

func (*RuleDefinition) Descriptor() ([]byte, []int)

func (*RuleDefinition) GetAttribute

func (m *RuleDefinition) GetAttribute() []*AttributeDefinition

func (*RuleDefinition) GetDocumentation

func (m *RuleDefinition) GetDocumentation() string

func (*RuleDefinition) GetLabel

func (m *RuleDefinition) GetLabel() string

func (*RuleDefinition) GetName

func (m *RuleDefinition) GetName() string

func (*RuleDefinition) ProtoMessage

func (*RuleDefinition) ProtoMessage()

func (*RuleDefinition) Reset

func (m *RuleDefinition) Reset()

func (*RuleDefinition) String

func (m *RuleDefinition) String() string

type RuleSummary

type RuleSummary struct {
	Rule             *Rule   `protobuf:"bytes,1,req,name=rule" json:"rule,omitempty"`
	Dependency       []*Rule `protobuf:"bytes,2,rep,name=dependency" json:"dependency,omitempty"`
	Location         *string `protobuf:"bytes,3,opt,name=location" json:"location,omitempty"`
	XXX_unrecognized []byte  `json:"-"`
}

Summary of all transitive dependencies of 'rule,' where each dependent rule is included only once in the 'dependency' field. Gives complete information to analyze the single build target labeled rule.name, including optional location of target in BUILD file.

func (*RuleSummary) Descriptor

func (*RuleSummary) Descriptor() ([]byte, []int)

func (*RuleSummary) GetDependency

func (m *RuleSummary) GetDependency() []*Rule

func (*RuleSummary) GetLocation

func (m *RuleSummary) GetLocation() string

func (*RuleSummary) GetRule

func (m *RuleSummary) GetRule() *Rule

func (*RuleSummary) ProtoMessage

func (*RuleSummary) ProtoMessage()

func (*RuleSummary) Reset

func (m *RuleSummary) Reset()

func (*RuleSummary) String

func (m *RuleSummary) String() string

type SkylarkAspect

type SkylarkAspect struct {
	ExtensionFileLabel *string      `protobuf:"bytes,1,req,name=extension_file_label,json=extensionFileLabel" json:"extension_file_label,omitempty"`
	ExportedName       *string      `protobuf:"bytes,2,req,name=exported_name,json=exportedName" json:"exported_name,omitempty"`
	Attribute          []*Attribute `protobuf:"bytes,3,rep,name=attribute" json:"attribute,omitempty"`
	XXX_unrecognized   []byte       `json:"-"`
}

Aspect defined in Skylark.

func (*SkylarkAspect) Descriptor

func (*SkylarkAspect) Descriptor() ([]byte, []int)

func (*SkylarkAspect) GetAttribute

func (m *SkylarkAspect) GetAttribute() []*Attribute

func (*SkylarkAspect) GetExportedName

func (m *SkylarkAspect) GetExportedName() string

func (*SkylarkAspect) GetExtensionFileLabel

func (m *SkylarkAspect) GetExtensionFileLabel() string

func (*SkylarkAspect) ProtoMessage

func (*SkylarkAspect) ProtoMessage()

func (*SkylarkAspect) Reset

func (m *SkylarkAspect) Reset()

func (*SkylarkAspect) String

func (m *SkylarkAspect) String() string

type SourceFile

type SourceFile struct {
	// The name of the source file (a label).
	Name *string `protobuf:"bytes,1,req,name=name" json:"name,omitempty"`
	// The location of the source file.  This is a path with line numbers, not
	// a label in the build system.
	Location *string `protobuf:"bytes,2,opt,name=location" json:"location,omitempty"`
	// The location of the corresponding label in the BUILD file in a
	// machine-parseable form.
	DEPRECATEDParseableLocation *Location `` /* 137-byte string literal not displayed */
	// Labels of files that are transitively subincluded in this BUILD file. This
	// is present only when the SourceFile represents a BUILD file that
	// subincludes other files. The subincluded file can be either a Python
	// preprocessed build extension or a Skylark file.
	Subinclude []string `protobuf:"bytes,3,rep,name=subinclude" json:"subinclude,omitempty"`
	// Labels of package groups that are mentioned in the visibility declaration
	// for this source file.
	PackageGroup []string `protobuf:"bytes,4,rep,name=package_group,json=packageGroup" json:"package_group,omitempty"`
	// Labels mentioned in the visibility declaration (including :__pkg__ and
	// //visibility: ones)
	VisibilityLabel []string `protobuf:"bytes,5,rep,name=visibility_label,json=visibilityLabel" json:"visibility_label,omitempty"`
	// The package-level features enabled for this package. Only present if the
	// SourceFile represents a BUILD file.
	Feature []string `protobuf:"bytes,6,rep,name=feature" json:"feature,omitempty"`
	// License attribute for the file.
	License *License `protobuf:"bytes,8,opt,name=license" json:"license,omitempty"`
	// True if the package contains an error. Only present if the SourceFile
	// represents a BUILD file.
	PackageContainsErrors *bool  `protobuf:"varint,9,opt,name=package_contains_errors,json=packageContainsErrors" json:"package_contains_errors,omitempty"`
	XXX_unrecognized      []byte `json:"-"`
}

A file that is an input into the build system. Next-Id: 10

func (*SourceFile) Descriptor

func (*SourceFile) Descriptor() ([]byte, []int)

func (*SourceFile) GetDEPRECATEDParseableLocation

func (m *SourceFile) GetDEPRECATEDParseableLocation() *Location

func (*SourceFile) GetFeature

func (m *SourceFile) GetFeature() []string

func (*SourceFile) GetLicense

func (m *SourceFile) GetLicense() *License

func (*SourceFile) GetLocation

func (m *SourceFile) GetLocation() string

func (*SourceFile) GetName

func (m *SourceFile) GetName() string

func (*SourceFile) GetPackageContainsErrors

func (m *SourceFile) GetPackageContainsErrors() bool

func (*SourceFile) GetPackageGroup

func (m *SourceFile) GetPackageGroup() []string

func (*SourceFile) GetSubinclude

func (m *SourceFile) GetSubinclude() []string

func (*SourceFile) GetVisibilityLabel

func (m *SourceFile) GetVisibilityLabel() []string

func (*SourceFile) ProtoMessage

func (*SourceFile) ProtoMessage()

func (*SourceFile) Reset

func (m *SourceFile) Reset()

func (*SourceFile) String

func (m *SourceFile) String() string

type StringDictEntry

type StringDictEntry struct {
	Key              *string `protobuf:"bytes,1,req,name=key" json:"key,omitempty"`
	Value            *string `protobuf:"bytes,2,req,name=value" json:"value,omitempty"`
	XXX_unrecognized []byte  `json:"-"`
}

func (*StringDictEntry) Descriptor

func (*StringDictEntry) Descriptor() ([]byte, []int)

func (*StringDictEntry) GetKey

func (m *StringDictEntry) GetKey() string

func (*StringDictEntry) GetValue

func (m *StringDictEntry) GetValue() string

func (*StringDictEntry) ProtoMessage

func (*StringDictEntry) ProtoMessage()

func (*StringDictEntry) Reset

func (m *StringDictEntry) Reset()

func (*StringDictEntry) String

func (m *StringDictEntry) String() string

type StringListDictEntry

type StringListDictEntry struct {
	Key              *string  `protobuf:"bytes,1,req,name=key" json:"key,omitempty"`
	Value            []string `protobuf:"bytes,2,rep,name=value" json:"value,omitempty"`
	XXX_unrecognized []byte   `json:"-"`
}

func (*StringListDictEntry) Descriptor

func (*StringListDictEntry) Descriptor() ([]byte, []int)

func (*StringListDictEntry) GetKey

func (m *StringListDictEntry) GetKey() string

func (*StringListDictEntry) GetValue

func (m *StringListDictEntry) GetValue() []string

func (*StringListDictEntry) ProtoMessage

func (*StringListDictEntry) ProtoMessage()

func (*StringListDictEntry) Reset

func (m *StringListDictEntry) Reset()

func (*StringListDictEntry) String

func (m *StringListDictEntry) String() string

type Target

type Target struct {
	// The type of target contained in the message.
	Type *Target_Discriminator `protobuf:"varint,1,req,name=type,enum=blaze_query.Target_Discriminator" json:"type,omitempty"`
	// If this target represents a rule, the rule is stored here.
	Rule *Rule `protobuf:"bytes,2,opt,name=rule" json:"rule,omitempty"`
	// A file that is not generated by the build system (version controlled
	// or created by the test harness).
	SourceFile *SourceFile `protobuf:"bytes,3,opt,name=source_file,json=sourceFile" json:"source_file,omitempty"`
	// A generated file that is the output of a rule.
	GeneratedFile *GeneratedFile `protobuf:"bytes,4,opt,name=generated_file,json=generatedFile" json:"generated_file,omitempty"`
	// A package group.
	PackageGroup *PackageGroup `protobuf:"bytes,5,opt,name=package_group,json=packageGroup" json:"package_group,omitempty"`
	// An environment group.
	EnvironmentGroup *EnvironmentGroup `protobuf:"bytes,6,opt,name=environment_group,json=environmentGroup" json:"environment_group,omitempty"`
	XXX_unrecognized []byte            `json:"-"`
}

A target from a blaze query execution. Similar to the Attribute message, the Discriminator is used to determine which field contains information. For any given type, only one of these can be populated in a single Target.

func (*Target) Descriptor

func (*Target) Descriptor() ([]byte, []int)

func (*Target) GetEnvironmentGroup

func (m *Target) GetEnvironmentGroup() *EnvironmentGroup

func (*Target) GetGeneratedFile

func (m *Target) GetGeneratedFile() *GeneratedFile

func (*Target) GetPackageGroup

func (m *Target) GetPackageGroup() *PackageGroup

func (*Target) GetRule

func (m *Target) GetRule() *Rule

func (*Target) GetSourceFile

func (m *Target) GetSourceFile() *SourceFile

func (*Target) GetType

func (m *Target) GetType() Target_Discriminator

func (*Target) ProtoMessage

func (*Target) ProtoMessage()

func (*Target) Reset

func (m *Target) Reset()

func (*Target) String

func (m *Target) String() string

type Target_Discriminator

type Target_Discriminator int32
const (
	Target_RULE              Target_Discriminator = 1
	Target_SOURCE_FILE       Target_Discriminator = 2
	Target_GENERATED_FILE    Target_Discriminator = 3
	Target_PACKAGE_GROUP     Target_Discriminator = 4
	Target_ENVIRONMENT_GROUP Target_Discriminator = 5
)

func (Target_Discriminator) Enum

func (Target_Discriminator) EnumDescriptor

func (Target_Discriminator) EnumDescriptor() ([]byte, []int)

func (Target_Discriminator) String

func (x Target_Discriminator) String() string

func (*Target_Discriminator) UnmarshalJSON

func (x *Target_Discriminator) UnmarshalJSON(data []byte) error

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL