Skip to content

Instantly share code, notes, and snippets.

@purkhusid
Created January 20, 2020 16:21
Show Gist options
  • Save purkhusid/ad7cc87ad98548a1c5f6a9c999dda5ee to your computer and use it in GitHub Desktop.
Save purkhusid/ad7cc87ad98548a1c5f6a9c999dda5ee to your computer and use it in GitHub Desktop.
Bazel - Transitive hashes for targets
# -*- coding: utf-8 -*-
# Generated by the protocol buffer compiler. DO NOT EDIT!
# source: deployment/scripts/util/bazel-affected-targets/query.proto
import sys
_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1'))
from google.protobuf import descriptor as _descriptor
from google.protobuf import message as _message
from google.protobuf import reflection as _reflection
from google.protobuf import symbol_database as _symbol_database
# @@protoc_insertion_point(imports)
_sym_db = _symbol_database.Default()
DESCRIPTOR = _descriptor.FileDescriptor(
name='deployment/scripts/util/bazel-affected-targets/query.proto',
package='blaze_query',
syntax='proto2',
serialized_options=_b('\n4com.google.devtools.build.lib.query2.proto.proto2api'),
serialized_pb=_b('\n:deployment/scripts/util/bazel-affected-targets/query.proto\x12\x0b\x62laze_query\"2\n\x07License\x12\x14\n\x0clicense_type\x18\x01 \x03(\t\x12\x11\n\texception\x18\x02 \x03(\t\"-\n\x0fStringDictEntry\x12\x0b\n\x03key\x18\x01 \x02(\t\x12\r\n\x05value\x18\x02 \x02(\t\"1\n\x13LabelDictUnaryEntry\x12\x0b\n\x03key\x18\x01 \x02(\t\x12\r\n\x05value\x18\x02 \x02(\t\"0\n\x12LabelListDictEntry\x12\x0b\n\x03key\x18\x01 \x02(\t\x12\r\n\x05value\x18\x02 \x03(\t\"7\n\x19LabelKeyedStringDictEntry\x12\x0b\n\x03key\x18\x01 \x02(\t\x12\r\n\x05value\x18\x02 \x02(\t\"1\n\x13StringListDictEntry\x12\x0b\n\x03key\x18\x01 \x02(\t\x12\r\n\x05value\x18\x02 \x03(\t\"\x82\x02\n\x0c\x46ilesetEntry\x12\x0e\n\x06source\x18\x01 \x02(\t\x12\x1d\n\x15\x64\x65stination_directory\x18\x02 \x02(\t\x12\x15\n\rfiles_present\x18\x07 \x01(\x08\x12\x0c\n\x04\x66ile\x18\x03 \x03(\t\x12\x0f\n\x07\x65xclude\x18\x04 \x03(\t\x12I\n\x10symlink_behavior\x18\x05 \x01(\x0e\x32).blaze_query.FilesetEntry.SymlinkBehavior:\x04\x43OPY\x12\x14\n\x0cstrip_prefix\x18\x06 \x01(\t\",\n\x0fSymlinkBehavior\x12\x08\n\x04\x43OPY\x10\x01\x12\x0f\n\x0b\x44\x45REFERENCE\x10\x02\"\xa8\x11\n\tAttribute\x12\x0c\n\x04name\x18\x01 \x02(\t\x12\x1c\n\x14\x65xplicitly_specified\x18\r \x01(\x08\x12\r\n\x05nodep\x18\x14 \x01(\x08\x12\x32\n\x04type\x18\x02 \x02(\x0e\x32$.blaze_query.Attribute.Discriminator\x12\x11\n\tint_value\x18\x03 \x01(\x05\x12\x14\n\x0cstring_value\x18\x05 \x01(\t\x12\x15\n\rboolean_value\x18\x0e \x01(\x08\x12\x37\n\x0etristate_value\x18\x0f \x01(\x0e\x32\x1f.blaze_query.Attribute.Tristate\x12\x19\n\x11string_list_value\x18\x06 \x03(\t\x12%\n\x07license\x18\x07 \x01(\x0b\x32\x14.blaze_query.License\x12\x37\n\x11string_dict_value\x18\x08 \x03(\x0b\x32\x1c.blaze_query.StringDictEntry\x12\x35\n\x12\x66ileset_list_value\x18\t \x03(\x0b\x32\x19.blaze_query.FilesetEntry\x12>\n\x15label_list_dict_value\x18\n \x03(\x0b\x32\x1f.blaze_query.LabelListDictEntry\x12@\n\x16string_list_dict_value\x18\x0b \x03(\x0b\x32 .blaze_query.StringListDictEntry\x12\x16\n\x0eint_list_value\x18\x11 \x03(\x05\x12@\n\x16label_dict_unary_value\x18\x13 \x03(\x0b\x32 .blaze_query.LabelDictUnaryEntry\x12M\n\x1dlabel_keyed_string_dict_value\x18\x16 \x03(\x0b\x32&.blaze_query.LabelKeyedStringDictEntry\x12:\n\rselector_list\x18\x15 \x01(\x0b\x32#.blaze_query.Attribute.SelectorList\x12*\n\"DEPRECATED_string_dict_unary_value\x18\x12 \x03(\x0c\x1a\xc0\x05\n\rSelectorEntry\x12\r\n\x05label\x18\x01 \x01(\t\x12\x18\n\x10is_default_value\x18\x10 \x01(\x08\x12\x11\n\tint_value\x18\x02 \x01(\x05\x12\x14\n\x0cstring_value\x18\x03 \x01(\t\x12\x15\n\rboolean_value\x18\x04 \x01(\x08\x12\x37\n\x0etristate_value\x18\x05 \x01(\x0e\x32\x1f.blaze_query.Attribute.Tristate\x12\x19\n\x11string_list_value\x18\x06 \x03(\t\x12%\n\x07license\x18\x07 \x01(\x0b\x32\x14.blaze_query.License\x12\x37\n\x11string_dict_value\x18\x08 \x03(\x0b\x32\x1c.blaze_query.StringDictEntry\x12\x35\n\x12\x66ileset_list_value\x18\t \x03(\x0b\x32\x19.blaze_query.FilesetEntry\x12>\n\x15label_list_dict_value\x18\n \x03(\x0b\x32\x1f.blaze_query.LabelListDictEntry\x12@\n\x16string_list_dict_value\x18\x0b \x03(\x0b\x32 .blaze_query.StringListDictEntry\x12\x16\n\x0eint_list_value\x18\r \x03(\x05\x12@\n\x16label_dict_unary_value\x18\x0f \x03(\x0b\x32 .blaze_query.LabelDictUnaryEntry\x12M\n\x1dlabel_keyed_string_dict_value\x18\x11 \x03(\x0b\x32&.blaze_query.LabelKeyedStringDictEntry\x12*\n\"DEPRECATED_string_dict_unary_value\x18\x0e \x03(\x0cJ\x04\x08\x0c\x10\r\x1at\n\x08Selector\x12\x35\n\x07\x65ntries\x18\x01 \x03(\x0b\x32$.blaze_query.Attribute.SelectorEntry\x12\x19\n\x11has_default_value\x18\x02 \x01(\x08\x12\x16\n\x0eno_match_error\x18\x03 \x01(\t\x1au\n\x0cSelectorList\x12\x32\n\x04type\x18\x01 \x01(\x0e\x32$.blaze_query.Attribute.Discriminator\x12\x31\n\x08\x65lements\x18\x02 \x03(\x0b\x32\x1f.blaze_query.Attribute.Selector\"\x8a\x03\n\rDiscriminator\x12\x0b\n\x07INTEGER\x10\x01\x12\n\n\x06STRING\x10\x02\x12\t\n\x05LABEL\x10\x03\x12\n\n\x06OUTPUT\x10\x04\x12\x0f\n\x0bSTRING_LIST\x10\x05\x12\x0e\n\nLABEL_LIST\x10\x06\x12\x0f\n\x0bOUTPUT_LIST\x10\x07\x12\x14\n\x10\x44ISTRIBUTION_SET\x10\x08\x12\x0b\n\x07LICENSE\x10\t\x12\x0f\n\x0bSTRING_DICT\x10\n\x12\x16\n\x12\x46ILESET_ENTRY_LIST\x10\x0b\x12\x13\n\x0fLABEL_LIST_DICT\x10\x0c\x12\x14\n\x10STRING_LIST_DICT\x10\r\x12\x0b\n\x07\x42OOLEAN\x10\x0e\x12\x0c\n\x08TRISTATE\x10\x0f\x12\x10\n\x0cINTEGER_LIST\x10\x10\x12\x0b\n\x07UNKNOWN\x10\x12\x12\x14\n\x10LABEL_DICT_UNARY\x10\x13\x12\x11\n\rSELECTOR_LIST\x10\x14\x12\x1b\n\x17LABEL_KEYED_STRING_DICT\x10\x15\x12 \n\x1c\x44\x45PRECATED_STRING_DICT_UNARY\x10\x11\"%\n\x08Tristate\x12\x06\n\x02NO\x10\x00\x12\x07\n\x03YES\x10\x01\x12\x08\n\x04\x41UTO\x10\x02J\x04\x08\x0c\x10\rJ\x04\x08\x10\x10\x11\"\x89\x02\n\x04Rule\x12\x0c\n\x04name\x18\x01 \x02(\t\x12\x12\n\nrule_class\x18\x02 \x02(\t\x12\x10\n\x08location\x18\x03 \x01(\t\x12)\n\tattribute\x18\x04 \x03(\x0b\x32\x16.blaze_query.Attribute\x12\x12\n\nrule_input\x18\x05 \x03(\t\x12\x13\n\x0brule_output\x18\x06 \x03(\t\x12\x17\n\x0f\x64\x65\x66\x61ult_setting\x18\x07 \x03(\t\x12\x19\n\x11public_by_default\x18\t \x01(\x08\x12\x12\n\nis_skylark\x18\n \x01(\x08\x12%\n\x1dskylark_environment_hash_code\x18\x0c \x01(\tJ\x04\x08\x08\x10\tJ\x04\x08\x0b\x10\x0c\"g\n\x0bRuleSummary\x12\x1f\n\x04rule\x18\x01 \x02(\x0b\x32\x11.blaze_query.Rule\x12%\n\ndependency\x18\x02 \x03(\x0b\x32\x11.blaze_query.Rule\x12\x10\n\x08location\x18\x03 \x01(\t\"]\n\x0cPackageGroup\x12\x0c\n\x04name\x18\x01 \x02(\t\x12\x19\n\x11\x63ontained_package\x18\x02 \x03(\t\x12\x1e\n\x16included_package_group\x18\x03 \x03(\tJ\x04\x08\x04\x10\x05\"F\n\x10\x45nvironmentGroup\x12\x0c\n\x04name\x18\x01 \x02(\t\x12\x13\n\x0b\x65nvironment\x18\x02 \x03(\t\x12\x0f\n\x07\x64\x65\x66\x61ult\x18\x03 \x03(\t\"\xd0\x01\n\nSourceFile\x12\x0c\n\x04name\x18\x01 \x02(\t\x12\x10\n\x08location\x18\x02 \x01(\t\x12\x12\n\nsubinclude\x18\x03 \x03(\t\x12\x15\n\rpackage_group\x18\x04 \x03(\t\x12\x18\n\x10visibility_label\x18\x05 \x03(\t\x12\x0f\n\x07\x66\x65\x61ture\x18\x06 \x03(\t\x12%\n\x07license\x18\x08 \x01(\x0b\x32\x14.blaze_query.License\x12\x1f\n\x17package_contains_errors\x18\t \x01(\x08J\x04\x08\x07\x10\x08\"H\n\rGeneratedFile\x12\x0c\n\x04name\x18\x01 \x02(\t\x12\x17\n\x0fgenerating_rule\x18\x02 \x02(\t\x12\x10\n\x08location\x18\x03 \x01(\t\"\x92\x03\n\x06Target\x12/\n\x04type\x18\x01 \x02(\x0e\x32!.blaze_query.Target.Discriminator\x12\x1f\n\x04rule\x18\x02 \x01(\x0b\x32\x11.blaze_query.Rule\x12,\n\x0bsource_file\x18\x03 \x01(\x0b\x32\x17.blaze_query.SourceFile\x12\x32\n\x0egenerated_file\x18\x04 \x01(\x0b\x32\x1a.blaze_query.GeneratedFile\x12\x30\n\rpackage_group\x18\x05 \x01(\x0b\x32\x19.blaze_query.PackageGroup\x12\x38\n\x11\x65nvironment_group\x18\x06 \x01(\x0b\x32\x1d.blaze_query.EnvironmentGroup\"h\n\rDiscriminator\x12\x08\n\x04RULE\x10\x01\x12\x0f\n\x0bSOURCE_FILE\x10\x02\x12\x12\n\x0eGENERATED_FILE\x10\x03\x12\x11\n\rPACKAGE_GROUP\x10\x04\x12\x15\n\x11\x45NVIRONMENT_GROUP\x10\x05\"2\n\x0bQueryResult\x12#\n\x06target\x18\x01 \x03(\x0b\x32\x13.blaze_query.Target\"\xa6\x01\n\x14\x41llowedRuleClassInfo\x12\x44\n\x06policy\x18\x01 \x02(\x0e\x32\x34.blaze_query.AllowedRuleClassInfo.AllowedRuleClasses\x12\x1a\n\x12\x61llowed_rule_class\x18\x02 \x03(\t\",\n\x12\x41llowedRuleClasses\x12\x07\n\x03\x41NY\x10\x01\x12\r\n\tSPECIFIED\x10\x02\"\xee\x02\n\x13\x41ttributeDefinition\x12\x0c\n\x04name\x18\x01 \x02(\t\x12\x32\n\x04type\x18\x02 \x02(\x0e\x32$.blaze_query.Attribute.Discriminator\x12\x11\n\tmandatory\x18\x03 \x01(\x08\x12?\n\x14\x61llowed_rule_classes\x18\x04 \x01(\x0b\x32!.blaze_query.AllowedRuleClassInfo\x12\x15\n\rdocumentation\x18\x05 \x01(\t\x12\x13\n\x0b\x61llow_empty\x18\x06 \x01(\x08\x12\x19\n\x11\x61llow_single_file\x18\x07 \x01(\x08\x12,\n\x07\x64\x65\x66\x61ult\x18\t \x01(\x0b\x32\x1b.blaze_query.AttributeValue\x12\x12\n\nexecutable\x18\n \x01(\x08\x12\x14\n\x0c\x63onfigurable\x18\x0b \x01(\x08\x12\r\n\x05nodep\x18\x0c \x01(\x08\x12\x13\n\x0b\x63\x66g_is_host\x18\r \x01(\x08\"\xe1\x01\n\x0e\x41ttributeValue\x12\x0b\n\x03int\x18\x01 \x01(\x05\x12\x0e\n\x06string\x18\x02 \x01(\t\x12\x0c\n\x04\x62ool\x18\x03 \x01(\x08\x12)\n\x04list\x18\x04 \x03(\x0b\x32\x1b.blaze_query.AttributeValue\x12\x33\n\x04\x64ict\x18\x05 \x03(\x0b\x32%.blaze_query.AttributeValue.DictEntry\x1a\x44\n\tDictEntry\x12\x0b\n\x03key\x18\x01 \x02(\t\x12*\n\x05value\x18\x02 \x02(\x0b\x32\x1b.blaze_query.AttributeValue\"y\n\x0eRuleDefinition\x12\x0c\n\x04name\x18\x01 \x02(\t\x12\x33\n\tattribute\x18\x02 \x03(\x0b\x32 .blaze_query.AttributeDefinition\x12\x15\n\rdocumentation\x18\x03 \x01(\t\x12\r\n\x05label\x18\x04 \x01(\t\":\n\rBuildLanguage\x12)\n\x04rule\x18\x01 \x03(\x0b\x32\x1b.blaze_query.RuleDefinitionB6\n4com.google.devtools.build.lib.query2.proto.proto2api')
)
_FILESETENTRY_SYMLINKBEHAVIOR = _descriptor.EnumDescriptor(
name='SymlinkBehavior',
full_name='blaze_query.FilesetEntry.SymlinkBehavior',
filename=None,
file=DESCRIPTOR,
values=[
_descriptor.EnumValueDescriptor(
name='COPY', index=0, number=1,
serialized_options=None,
type=None),
_descriptor.EnumValueDescriptor(
name='DEREFERENCE', index=1, number=2,
serialized_options=None,
type=None),
],
containing_type=None,
serialized_options=None,
serialized_start=598,
serialized_end=642,
)
_sym_db.RegisterEnumDescriptor(_FILESETENTRY_SYMLINKBEHAVIOR)
_ATTRIBUTE_DISCRIMINATOR = _descriptor.EnumDescriptor(
name='Discriminator',
full_name='blaze_query.Attribute.Discriminator',
filename=None,
file=DESCRIPTOR,
values=[
_descriptor.EnumValueDescriptor(
name='INTEGER', index=0, number=1,
serialized_options=None,
type=None),
_descriptor.EnumValueDescriptor(
name='STRING', index=1, number=2,
serialized_options=None,
type=None),
_descriptor.EnumValueDescriptor(
name='LABEL', index=2, number=3,
serialized_options=None,
type=None),
_descriptor.EnumValueDescriptor(
name='OUTPUT', index=3, number=4,
serialized_options=None,
type=None),
_descriptor.EnumValueDescriptor(
name='STRING_LIST', index=4, number=5,
serialized_options=None,
type=None),
_descriptor.EnumValueDescriptor(
name='LABEL_LIST', index=5, number=6,
serialized_options=None,
type=None),
_descriptor.EnumValueDescriptor(
name='OUTPUT_LIST', index=6, number=7,
serialized_options=None,
type=None),
_descriptor.EnumValueDescriptor(
name='DISTRIBUTION_SET', index=7, number=8,
serialized_options=None,
type=None),
_descriptor.EnumValueDescriptor(
name='LICENSE', index=8, number=9,
serialized_options=None,
type=None),
_descriptor.EnumValueDescriptor(
name='STRING_DICT', index=9, number=10,
serialized_options=None,
type=None),
_descriptor.EnumValueDescriptor(
name='FILESET_ENTRY_LIST', index=10, number=11,
serialized_options=None,
type=None),
_descriptor.EnumValueDescriptor(
name='LABEL_LIST_DICT', index=11, number=12,
serialized_options=None,
type=None),
_descriptor.EnumValueDescriptor(
name='STRING_LIST_DICT', index=12, number=13,
serialized_options=None,
type=None),
_descriptor.EnumValueDescriptor(
name='BOOLEAN', index=13, number=14,
serialized_options=None,
type=None),
_descriptor.EnumValueDescriptor(
name='TRISTATE', index=14, number=15,
serialized_options=None,
type=None),
_descriptor.EnumValueDescriptor(
name='INTEGER_LIST', index=15, number=16,
serialized_options=None,
type=None),
_descriptor.EnumValueDescriptor(
name='UNKNOWN', index=16, number=18,
serialized_options=None,
type=None),
_descriptor.EnumValueDescriptor(
name='LABEL_DICT_UNARY', index=17, number=19,
serialized_options=None,
type=None),
_descriptor.EnumValueDescriptor(
name='SELECTOR_LIST', index=18, number=20,
serialized_options=None,
type=None),
_descriptor.EnumValueDescriptor(
name='LABEL_KEYED_STRING_DICT', index=19, number=21,
serialized_options=None,
type=None),
_descriptor.EnumValueDescriptor(
name='DEPRECATED_STRING_DICT_UNARY', index=20, number=17,
serialized_options=None,
type=None),
],
containing_type=None,
serialized_options=None,
serialized_start=2416,
serialized_end=2810,
)
_sym_db.RegisterEnumDescriptor(_ATTRIBUTE_DISCRIMINATOR)
_ATTRIBUTE_TRISTATE = _descriptor.EnumDescriptor(
name='Tristate',
full_name='blaze_query.Attribute.Tristate',
filename=None,
file=DESCRIPTOR,
values=[
_descriptor.EnumValueDescriptor(
name='NO', index=0, number=0,
serialized_options=None,
type=None),
_descriptor.EnumValueDescriptor(
name='YES', index=1, number=1,
serialized_options=None,
type=None),
_descriptor.EnumValueDescriptor(
name='AUTO', index=2, number=2,
serialized_options=None,
type=None),
],
containing_type=None,
serialized_options=None,
serialized_start=2812,
serialized_end=2849,
)
_sym_db.RegisterEnumDescriptor(_ATTRIBUTE_TRISTATE)
_TARGET_DISCRIMINATOR = _descriptor.EnumDescriptor(
name='Discriminator',
full_name='blaze_query.Target.Discriminator',
filename=None,
file=DESCRIPTOR,
values=[
_descriptor.EnumValueDescriptor(
name='RULE', index=0, number=1,
serialized_options=None,
type=None),
_descriptor.EnumValueDescriptor(
name='SOURCE_FILE', index=1, number=2,
serialized_options=None,
type=None),
_descriptor.EnumValueDescriptor(
name='GENERATED_FILE', index=2, number=3,
serialized_options=None,
type=None),
_descriptor.EnumValueDescriptor(
name='PACKAGE_GROUP', index=3, number=4,
serialized_options=None,
type=None),
_descriptor.EnumValueDescriptor(
name='ENVIRONMENT_GROUP', index=4, number=5,
serialized_options=None,
type=None),
],
containing_type=None,
serialized_options=None,
serialized_start=3987,
serialized_end=4091,
)
_sym_db.RegisterEnumDescriptor(_TARGET_DISCRIMINATOR)
_ALLOWEDRULECLASSINFO_ALLOWEDRULECLASSES = _descriptor.EnumDescriptor(
name='AllowedRuleClasses',
full_name='blaze_query.AllowedRuleClassInfo.AllowedRuleClasses',
filename=None,
file=DESCRIPTOR,
values=[
_descriptor.EnumValueDescriptor(
name='ANY', index=0, number=1,
serialized_options=None,
type=None),
_descriptor.EnumValueDescriptor(
name='SPECIFIED', index=1, number=2,
serialized_options=None,
type=None),
],
containing_type=None,
serialized_options=None,
serialized_start=4268,
serialized_end=4312,
)
_sym_db.RegisterEnumDescriptor(_ALLOWEDRULECLASSINFO_ALLOWEDRULECLASSES)
_LICENSE = _descriptor.Descriptor(
name='License',
full_name='blaze_query.License',
filename=None,
file=DESCRIPTOR,
containing_type=None,
fields=[
_descriptor.FieldDescriptor(
name='license_type', full_name='blaze_query.License.license_type', index=0,
number=1, type=9, cpp_type=9, label=3,
has_default_value=False, default_value=[],
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR),
_descriptor.FieldDescriptor(
name='exception', full_name='blaze_query.License.exception', index=1,
number=2, type=9, cpp_type=9, label=3,
has_default_value=False, default_value=[],
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR),
],
extensions=[
],
nested_types=[],
enum_types=[
],
serialized_options=None,
is_extendable=False,
syntax='proto2',
extension_ranges=[],
oneofs=[
],
serialized_start=75,
serialized_end=125,
)
_STRINGDICTENTRY = _descriptor.Descriptor(
name='StringDictEntry',
full_name='blaze_query.StringDictEntry',
filename=None,
file=DESCRIPTOR,
containing_type=None,
fields=[
_descriptor.FieldDescriptor(
name='key', full_name='blaze_query.StringDictEntry.key', index=0,
number=1, type=9, cpp_type=9, label=2,
has_default_value=False, default_value=_b("").decode('utf-8'),
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR),
_descriptor.FieldDescriptor(
name='value', full_name='blaze_query.StringDictEntry.value', index=1,
number=2, type=9, cpp_type=9, label=2,
has_default_value=False, default_value=_b("").decode('utf-8'),
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR),
],
extensions=[
],
nested_types=[],
enum_types=[
],
serialized_options=None,
is_extendable=False,
syntax='proto2',
extension_ranges=[],
oneofs=[
],
serialized_start=127,
serialized_end=172,
)
_LABELDICTUNARYENTRY = _descriptor.Descriptor(
name='LabelDictUnaryEntry',
full_name='blaze_query.LabelDictUnaryEntry',
filename=None,
file=DESCRIPTOR,
containing_type=None,
fields=[
_descriptor.FieldDescriptor(
name='key', full_name='blaze_query.LabelDictUnaryEntry.key', index=0,
number=1, type=9, cpp_type=9, label=2,
has_default_value=False, default_value=_b("").decode('utf-8'),
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR),
_descriptor.FieldDescriptor(
name='value', full_name='blaze_query.LabelDictUnaryEntry.value', index=1,
number=2, type=9, cpp_type=9, label=2,
has_default_value=False, default_value=_b("").decode('utf-8'),
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR),
],
extensions=[
],
nested_types=[],
enum_types=[
],
serialized_options=None,
is_extendable=False,
syntax='proto2',
extension_ranges=[],
oneofs=[
],
serialized_start=174,
serialized_end=223,
)
_LABELLISTDICTENTRY = _descriptor.Descriptor(
name='LabelListDictEntry',
full_name='blaze_query.LabelListDictEntry',
filename=None,
file=DESCRIPTOR,
containing_type=None,
fields=[
_descriptor.FieldDescriptor(
name='key', full_name='blaze_query.LabelListDictEntry.key', index=0,
number=1, type=9, cpp_type=9, label=2,
has_default_value=False, default_value=_b("").decode('utf-8'),
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR),
_descriptor.FieldDescriptor(
name='value', full_name='blaze_query.LabelListDictEntry.value', index=1,
number=2, type=9, cpp_type=9, label=3,
has_default_value=False, default_value=[],
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR),
],
extensions=[
],
nested_types=[],
enum_types=[
],
serialized_options=None,
is_extendable=False,
syntax='proto2',
extension_ranges=[],
oneofs=[
],
serialized_start=225,
serialized_end=273,
)
_LABELKEYEDSTRINGDICTENTRY = _descriptor.Descriptor(
name='LabelKeyedStringDictEntry',
full_name='blaze_query.LabelKeyedStringDictEntry',
filename=None,
file=DESCRIPTOR,
containing_type=None,
fields=[
_descriptor.FieldDescriptor(
name='key', full_name='blaze_query.LabelKeyedStringDictEntry.key', index=0,
number=1, type=9, cpp_type=9, label=2,
has_default_value=False, default_value=_b("").decode('utf-8'),
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR),
_descriptor.FieldDescriptor(
name='value', full_name='blaze_query.LabelKeyedStringDictEntry.value', index=1,
number=2, type=9, cpp_type=9, label=2,
has_default_value=False, default_value=_b("").decode('utf-8'),
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR),
],
extensions=[
],
nested_types=[],
enum_types=[
],
serialized_options=None,
is_extendable=False,
syntax='proto2',
extension_ranges=[],
oneofs=[
],
serialized_start=275,
serialized_end=330,
)
_STRINGLISTDICTENTRY = _descriptor.Descriptor(
name='StringListDictEntry',
full_name='blaze_query.StringListDictEntry',
filename=None,
file=DESCRIPTOR,
containing_type=None,
fields=[
_descriptor.FieldDescriptor(
name='key', full_name='blaze_query.StringListDictEntry.key', index=0,
number=1, type=9, cpp_type=9, label=2,
has_default_value=False, default_value=_b("").decode('utf-8'),
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR),
_descriptor.FieldDescriptor(
name='value', full_name='blaze_query.StringListDictEntry.value', index=1,
number=2, type=9, cpp_type=9, label=3,
has_default_value=False, default_value=[],
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR),
],
extensions=[
],
nested_types=[],
enum_types=[
],
serialized_options=None,
is_extendable=False,
syntax='proto2',
extension_ranges=[],
oneofs=[
],
serialized_start=332,
serialized_end=381,
)
_FILESETENTRY = _descriptor.Descriptor(
name='FilesetEntry',
full_name='blaze_query.FilesetEntry',
filename=None,
file=DESCRIPTOR,
containing_type=None,
fields=[
_descriptor.FieldDescriptor(
name='source', full_name='blaze_query.FilesetEntry.source', index=0,
number=1, type=9, cpp_type=9, label=2,
has_default_value=False, default_value=_b("").decode('utf-8'),
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR),
_descriptor.FieldDescriptor(
name='destination_directory', full_name='blaze_query.FilesetEntry.destination_directory', index=1,
number=2, type=9, cpp_type=9, label=2,
has_default_value=False, default_value=_b("").decode('utf-8'),
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR),
_descriptor.FieldDescriptor(
name='files_present', full_name='blaze_query.FilesetEntry.files_present', index=2,
number=7, type=8, cpp_type=7, label=1,
has_default_value=False, default_value=False,
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR),
_descriptor.FieldDescriptor(
name='file', full_name='blaze_query.FilesetEntry.file', index=3,
number=3, type=9, cpp_type=9, label=3,
has_default_value=False, default_value=[],
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR),
_descriptor.FieldDescriptor(
name='exclude', full_name='blaze_query.FilesetEntry.exclude', index=4,
number=4, type=9, cpp_type=9, label=3,
has_default_value=False, default_value=[],
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR),
_descriptor.FieldDescriptor(
name='symlink_behavior', full_name='blaze_query.FilesetEntry.symlink_behavior', index=5,
number=5, type=14, cpp_type=8, label=1,
has_default_value=True, default_value=1,
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR),
_descriptor.FieldDescriptor(
name='strip_prefix', full_name='blaze_query.FilesetEntry.strip_prefix', index=6,
number=6, type=9, cpp_type=9, label=1,
has_default_value=False, default_value=_b("").decode('utf-8'),
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR),
],
extensions=[
],
nested_types=[],
enum_types=[
_FILESETENTRY_SYMLINKBEHAVIOR,
],
serialized_options=None,
is_extendable=False,
syntax='proto2',
extension_ranges=[],
oneofs=[
],
serialized_start=384,
serialized_end=642,
)
_ATTRIBUTE_SELECTORENTRY = _descriptor.Descriptor(
name='SelectorEntry',
full_name='blaze_query.Attribute.SelectorEntry',
filename=None,
file=DESCRIPTOR,
containing_type=None,
fields=[
_descriptor.FieldDescriptor(
name='label', full_name='blaze_query.Attribute.SelectorEntry.label', index=0,
number=1, type=9, cpp_type=9, label=1,
has_default_value=False, default_value=_b("").decode('utf-8'),
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR),
_descriptor.FieldDescriptor(
name='is_default_value', full_name='blaze_query.Attribute.SelectorEntry.is_default_value', index=1,
number=16, type=8, cpp_type=7, label=1,
has_default_value=False, default_value=False,
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR),
_descriptor.FieldDescriptor(
name='int_value', full_name='blaze_query.Attribute.SelectorEntry.int_value', index=2,
number=2, type=5, cpp_type=1, label=1,
has_default_value=False, default_value=0,
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR),
_descriptor.FieldDescriptor(
name='string_value', full_name='blaze_query.Attribute.SelectorEntry.string_value', index=3,
number=3, type=9, cpp_type=9, label=1,
has_default_value=False, default_value=_b("").decode('utf-8'),
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR),
_descriptor.FieldDescriptor(
name='boolean_value', full_name='blaze_query.Attribute.SelectorEntry.boolean_value', index=4,
number=4, type=8, cpp_type=7, label=1,
has_default_value=False, default_value=False,
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR),
_descriptor.FieldDescriptor(
name='tristate_value', full_name='blaze_query.Attribute.SelectorEntry.tristate_value', index=5,
number=5, type=14, cpp_type=8, label=1,
has_default_value=False, default_value=0,
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR),
_descriptor.FieldDescriptor(
name='string_list_value', full_name='blaze_query.Attribute.SelectorEntry.string_list_value', index=6,
number=6, type=9, cpp_type=9, label=3,
has_default_value=False, default_value=[],
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR),
_descriptor.FieldDescriptor(
name='license', full_name='blaze_query.Attribute.SelectorEntry.license', index=7,
number=7, type=11, cpp_type=10, label=1,
has_default_value=False, default_value=None,
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR),
_descriptor.FieldDescriptor(
name='string_dict_value', full_name='blaze_query.Attribute.SelectorEntry.string_dict_value', index=8,
number=8, type=11, cpp_type=10, label=3,
has_default_value=False, default_value=[],
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR),
_descriptor.FieldDescriptor(
name='fileset_list_value', full_name='blaze_query.Attribute.SelectorEntry.fileset_list_value', index=9,
number=9, type=11, cpp_type=10, label=3,
has_default_value=False, default_value=[],
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR),
_descriptor.FieldDescriptor(
name='label_list_dict_value', full_name='blaze_query.Attribute.SelectorEntry.label_list_dict_value', index=10,
number=10, type=11, cpp_type=10, label=3,
has_default_value=False, default_value=[],
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR),
_descriptor.FieldDescriptor(
name='string_list_dict_value', full_name='blaze_query.Attribute.SelectorEntry.string_list_dict_value', index=11,
number=11, type=11, cpp_type=10, label=3,
has_default_value=False, default_value=[],
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR),
_descriptor.FieldDescriptor(
name='int_list_value', full_name='blaze_query.Attribute.SelectorEntry.int_list_value', index=12,
number=13, type=5, cpp_type=1, label=3,
has_default_value=False, default_value=[],
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR),
_descriptor.FieldDescriptor(
name='label_dict_unary_value', full_name='blaze_query.Attribute.SelectorEntry.label_dict_unary_value', index=13,
number=15, type=11, cpp_type=10, label=3,
has_default_value=False, default_value=[],
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR),
_descriptor.FieldDescriptor(
name='label_keyed_string_dict_value', full_name='blaze_query.Attribute.SelectorEntry.label_keyed_string_dict_value', index=14,
number=17, type=11, cpp_type=10, label=3,
has_default_value=False, default_value=[],
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR),
_descriptor.FieldDescriptor(
name='DEPRECATED_string_dict_unary_value', full_name='blaze_query.Attribute.SelectorEntry.DEPRECATED_string_dict_unary_value', index=15,
number=14, type=12, cpp_type=9, label=3,
has_default_value=False, default_value=[],
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR),
],
extensions=[
],
nested_types=[],
enum_types=[
],
serialized_options=None,
is_extendable=False,
syntax='proto2',
extension_ranges=[],
oneofs=[
],
serialized_start=1472,
serialized_end=2176,
)
_ATTRIBUTE_SELECTOR = _descriptor.Descriptor(
name='Selector',
full_name='blaze_query.Attribute.Selector',
filename=None,
file=DESCRIPTOR,
containing_type=None,
fields=[
_descriptor.FieldDescriptor(
name='entries', full_name='blaze_query.Attribute.Selector.entries', index=0,
number=1, type=11, cpp_type=10, label=3,
has_default_value=False, default_value=[],
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR),
_descriptor.FieldDescriptor(
name='has_default_value', full_name='blaze_query.Attribute.Selector.has_default_value', index=1,
number=2, type=8, cpp_type=7, label=1,
has_default_value=False, default_value=False,
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR),
_descriptor.FieldDescriptor(
name='no_match_error', full_name='blaze_query.Attribute.Selector.no_match_error', index=2,
number=3, type=9, cpp_type=9, label=1,
has_default_value=False, default_value=_b("").decode('utf-8'),
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR),
],
extensions=[
],
nested_types=[],
enum_types=[
],
serialized_options=None,
is_extendable=False,
syntax='proto2',
extension_ranges=[],
oneofs=[
],
serialized_start=2178,
serialized_end=2294,
)
_ATTRIBUTE_SELECTORLIST = _descriptor.Descriptor(
name='SelectorList',
full_name='blaze_query.Attribute.SelectorList',
filename=None,
file=DESCRIPTOR,
containing_type=None,
fields=[
_descriptor.FieldDescriptor(
name='type', full_name='blaze_query.Attribute.SelectorList.type', index=0,
number=1, type=14, cpp_type=8, label=1,
has_default_value=False, default_value=1,
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR),
_descriptor.FieldDescriptor(
name='elements', full_name='blaze_query.Attribute.SelectorList.elements', index=1,
number=2, type=11, cpp_type=10, label=3,
has_default_value=False, default_value=[],
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR),
],
extensions=[
],
nested_types=[],
enum_types=[
],
serialized_options=None,
is_extendable=False,
syntax='proto2',
extension_ranges=[],
oneofs=[
],
serialized_start=2296,
serialized_end=2413,
)
_ATTRIBUTE = _descriptor.Descriptor(
name='Attribute',
full_name='blaze_query.Attribute',
filename=None,
file=DESCRIPTOR,
containing_type=None,
fields=[
_descriptor.FieldDescriptor(
name='name', full_name='blaze_query.Attribute.name', index=0,
number=1, type=9, cpp_type=9, label=2,
has_default_value=False, default_value=_b("").decode('utf-8'),
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR),
_descriptor.FieldDescriptor(
name='explicitly_specified', full_name='blaze_query.Attribute.explicitly_specified', index=1,
number=13, type=8, cpp_type=7, label=1,
has_default_value=False, default_value=False,
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR),
_descriptor.FieldDescriptor(
name='nodep', full_name='blaze_query.Attribute.nodep', index=2,
number=20, type=8, cpp_type=7, label=1,
has_default_value=False, default_value=False,
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR),
_descriptor.FieldDescriptor(
name='type', full_name='blaze_query.Attribute.type', index=3,
number=2, type=14, cpp_type=8, label=2,
has_default_value=False, default_value=1,
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR),
_descriptor.FieldDescriptor(
name='int_value', full_name='blaze_query.Attribute.int_value', index=4,
number=3, type=5, cpp_type=1, label=1,
has_default_value=False, default_value=0,
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR),
_descriptor.FieldDescriptor(
name='string_value', full_name='blaze_query.Attribute.string_value', index=5,
number=5, type=9, cpp_type=9, label=1,
has_default_value=False, default_value=_b("").decode('utf-8'),
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR),
_descriptor.FieldDescriptor(
name='boolean_value', full_name='blaze_query.Attribute.boolean_value', index=6,
number=14, type=8, cpp_type=7, label=1,
has_default_value=False, default_value=False,
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR),
_descriptor.FieldDescriptor(
name='tristate_value', full_name='blaze_query.Attribute.tristate_value', index=7,
number=15, type=14, cpp_type=8, label=1,
has_default_value=False, default_value=0,
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR),
_descriptor.FieldDescriptor(
name='string_list_value', full_name='blaze_query.Attribute.string_list_value', index=8,
number=6, type=9, cpp_type=9, label=3,
has_default_value=False, default_value=[],
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR),
_descriptor.FieldDescriptor(
name='license', full_name='blaze_query.Attribute.license', index=9,
number=7, type=11, cpp_type=10, label=1,
has_default_value=False, default_value=None,
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR),
_descriptor.FieldDescriptor(
name='string_dict_value', full_name='blaze_query.Attribute.string_dict_value', index=10,
number=8, type=11, cpp_type=10, label=3,
has_default_value=False, default_value=[],
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR),
_descriptor.FieldDescriptor(
name='fileset_list_value', full_name='blaze_query.Attribute.fileset_list_value', index=11,
number=9, type=11, cpp_type=10, label=3,
has_default_value=False, default_value=[],
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR),
_descriptor.FieldDescriptor(
name='label_list_dict_value', full_name='blaze_query.Attribute.label_list_dict_value', index=12,
number=10, type=11, cpp_type=10, label=3,
has_default_value=False, default_value=[],
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR),
_descriptor.FieldDescriptor(
name='string_list_dict_value', full_name='blaze_query.Attribute.string_list_dict_value', index=13,
number=11, type=11, cpp_type=10, label=3,
has_default_value=False, default_value=[],
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR),
_descriptor.FieldDescriptor(
name='int_list_value', full_name='blaze_query.Attribute.int_list_value', index=14,
number=17, type=5, cpp_type=1, label=3,
has_default_value=False, default_value=[],
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR),
_descriptor.FieldDescriptor(
name='label_dict_unary_value', full_name='blaze_query.Attribute.label_dict_unary_value', index=15,
number=19, type=11, cpp_type=10, label=3,
has_default_value=False, default_value=[],
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR),
_descriptor.FieldDescriptor(
name='label_keyed_string_dict_value', full_name='blaze_query.Attribute.label_keyed_string_dict_value', index=16,
number=22, type=11, cpp_type=10, label=3,
has_default_value=False, default_value=[],
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR),
_descriptor.FieldDescriptor(
name='selector_list', full_name='blaze_query.Attribute.selector_list', index=17,
number=21, type=11, cpp_type=10, label=1,
has_default_value=False, default_value=None,
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR),
_descriptor.FieldDescriptor(
name='DEPRECATED_string_dict_unary_value', full_name='blaze_query.Attribute.DEPRECATED_string_dict_unary_value', index=18,
number=18, type=12, cpp_type=9, label=3,
has_default_value=False, default_value=[],
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR),
],
extensions=[
],
nested_types=[_ATTRIBUTE_SELECTORENTRY, _ATTRIBUTE_SELECTOR, _ATTRIBUTE_SELECTORLIST, ],
enum_types=[
_ATTRIBUTE_DISCRIMINATOR,
_ATTRIBUTE_TRISTATE,
],
serialized_options=None,
is_extendable=False,
syntax='proto2',
extension_ranges=[],
oneofs=[
],
serialized_start=645,
serialized_end=2861,
)
_RULE = _descriptor.Descriptor(
name='Rule',
full_name='blaze_query.Rule',
filename=None,
file=DESCRIPTOR,
containing_type=None,
fields=[
_descriptor.FieldDescriptor(
name='name', full_name='blaze_query.Rule.name', index=0,
number=1, type=9, cpp_type=9, label=2,
has_default_value=False, default_value=_b("").decode('utf-8'),
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR),
_descriptor.FieldDescriptor(
name='rule_class', full_name='blaze_query.Rule.rule_class', index=1,
number=2, type=9, cpp_type=9, label=2,
has_default_value=False, default_value=_b("").decode('utf-8'),
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR),
_descriptor.FieldDescriptor(
name='location', full_name='blaze_query.Rule.location', index=2,
number=3, type=9, cpp_type=9, label=1,
has_default_value=False, default_value=_b("").decode('utf-8'),
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR),
_descriptor.FieldDescriptor(
name='attribute', full_name='blaze_query.Rule.attribute', index=3,
number=4, type=11, cpp_type=10, label=3,
has_default_value=False, default_value=[],
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR),
_descriptor.FieldDescriptor(
name='rule_input', full_name='blaze_query.Rule.rule_input', index=4,
number=5, type=9, cpp_type=9, label=3,
has_default_value=False, default_value=[],
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR),
_descriptor.FieldDescriptor(
name='rule_output', full_name='blaze_query.Rule.rule_output', index=5,
number=6, type=9, cpp_type=9, label=3,
has_default_value=False, default_value=[],
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR),
_descriptor.FieldDescriptor(
name='default_setting', full_name='blaze_query.Rule.default_setting', index=6,
number=7, type=9, cpp_type=9, label=3,
has_default_value=False, default_value=[],
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR),
_descriptor.FieldDescriptor(
name='public_by_default', full_name='blaze_query.Rule.public_by_default', index=7,
number=9, type=8, cpp_type=7, label=1,
has_default_value=False, default_value=False,
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR),
_descriptor.FieldDescriptor(
name='is_skylark', full_name='blaze_query.Rule.is_skylark', index=8,
number=10, type=8, cpp_type=7, label=1,
has_default_value=False, default_value=False,
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR),
_descriptor.FieldDescriptor(
name='skylark_environment_hash_code', full_name='blaze_query.Rule.skylark_environment_hash_code', index=9,
number=12, type=9, cpp_type=9, label=1,
has_default_value=False, default_value=_b("").decode('utf-8'),
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR),
],
extensions=[
],
nested_types=[],
enum_types=[
],
serialized_options=None,
is_extendable=False,
syntax='proto2',
extension_ranges=[],
oneofs=[
],
serialized_start=2864,
serialized_end=3129,
)
_RULESUMMARY = _descriptor.Descriptor(
name='RuleSummary',
full_name='blaze_query.RuleSummary',
filename=None,
file=DESCRIPTOR,
containing_type=None,
fields=[
_descriptor.FieldDescriptor(
name='rule', full_name='blaze_query.RuleSummary.rule', index=0,
number=1, type=11, cpp_type=10, label=2,
has_default_value=False, default_value=None,
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR),
_descriptor.FieldDescriptor(
name='dependency', full_name='blaze_query.RuleSummary.dependency', index=1,
number=2, type=11, cpp_type=10, label=3,
has_default_value=False, default_value=[],
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR),
_descriptor.FieldDescriptor(
name='location', full_name='blaze_query.RuleSummary.location', index=2,
number=3, type=9, cpp_type=9, label=1,
has_default_value=False, default_value=_b("").decode('utf-8'),
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR),
],
extensions=[
],
nested_types=[],
enum_types=[
],
serialized_options=None,
is_extendable=False,
syntax='proto2',
extension_ranges=[],
oneofs=[
],
serialized_start=3131,
serialized_end=3234,
)
_PACKAGEGROUP = _descriptor.Descriptor(
name='PackageGroup',
full_name='blaze_query.PackageGroup',
filename=None,
file=DESCRIPTOR,
containing_type=None,
fields=[
_descriptor.FieldDescriptor(
name='name', full_name='blaze_query.PackageGroup.name', index=0,
number=1, type=9, cpp_type=9, label=2,
has_default_value=False, default_value=_b("").decode('utf-8'),
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR),
_descriptor.FieldDescriptor(
name='contained_package', full_name='blaze_query.PackageGroup.contained_package', index=1,
number=2, type=9, cpp_type=9, label=3,
has_default_value=False, default_value=[],
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR),
_descriptor.FieldDescriptor(
name='included_package_group', full_name='blaze_query.PackageGroup.included_package_group', index=2,
number=3, type=9, cpp_type=9, label=3,
has_default_value=False, default_value=[],
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR),
],
extensions=[
],
nested_types=[],
enum_types=[
],
serialized_options=None,
is_extendable=False,
syntax='proto2',
extension_ranges=[],
oneofs=[
],
serialized_start=3236,
serialized_end=3329,
)
_ENVIRONMENTGROUP = _descriptor.Descriptor(
name='EnvironmentGroup',
full_name='blaze_query.EnvironmentGroup',
filename=None,
file=DESCRIPTOR,
containing_type=None,
fields=[
_descriptor.FieldDescriptor(
name='name', full_name='blaze_query.EnvironmentGroup.name', index=0,
number=1, type=9, cpp_type=9, label=2,
has_default_value=False, default_value=_b("").decode('utf-8'),
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR),
_descriptor.FieldDescriptor(
name='environment', full_name='blaze_query.EnvironmentGroup.environment', index=1,
number=2, type=9, cpp_type=9, label=3,
has_default_value=False, default_value=[],
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR),
_descriptor.FieldDescriptor(
name='default', full_name='blaze_query.EnvironmentGroup.default', index=2,
number=3, type=9, cpp_type=9, label=3,
has_default_value=False, default_value=[],
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR),
],
extensions=[
],
nested_types=[],
enum_types=[
],
serialized_options=None,
is_extendable=False,
syntax='proto2',
extension_ranges=[],
oneofs=[
],
serialized_start=3331,
serialized_end=3401,
)
_SOURCEFILE = _descriptor.Descriptor(
name='SourceFile',
full_name='blaze_query.SourceFile',
filename=None,
file=DESCRIPTOR,
containing_type=None,
fields=[
_descriptor.FieldDescriptor(
name='name', full_name='blaze_query.SourceFile.name', index=0,
number=1, type=9, cpp_type=9, label=2,
has_default_value=False, default_value=_b("").decode('utf-8'),
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR),
_descriptor.FieldDescriptor(
name='location', full_name='blaze_query.SourceFile.location', index=1,
number=2, type=9, cpp_type=9, label=1,
has_default_value=False, default_value=_b("").decode('utf-8'),
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR),
_descriptor.FieldDescriptor(
name='subinclude', full_name='blaze_query.SourceFile.subinclude', index=2,
number=3, type=9, cpp_type=9, label=3,
has_default_value=False, default_value=[],
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR),
_descriptor.FieldDescriptor(
name='package_group', full_name='blaze_query.SourceFile.package_group', index=3,
number=4, type=9, cpp_type=9, label=3,
has_default_value=False, default_value=[],
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR),
_descriptor.FieldDescriptor(
name='visibility_label', full_name='blaze_query.SourceFile.visibility_label', index=4,
number=5, type=9, cpp_type=9, label=3,
has_default_value=False, default_value=[],
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR),
_descriptor.FieldDescriptor(
name='feature', full_name='blaze_query.SourceFile.feature', index=5,
number=6, type=9, cpp_type=9, label=3,
has_default_value=False, default_value=[],
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR),
_descriptor.FieldDescriptor(
name='license', full_name='blaze_query.SourceFile.license', index=6,
number=8, type=11, cpp_type=10, label=1,
has_default_value=False, default_value=None,
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR),
_descriptor.FieldDescriptor(
name='package_contains_errors', full_name='blaze_query.SourceFile.package_contains_errors', index=7,
number=9, type=8, cpp_type=7, label=1,
has_default_value=False, default_value=False,
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR),
],
extensions=[
],
nested_types=[],
enum_types=[
],
serialized_options=None,
is_extendable=False,
syntax='proto2',
extension_ranges=[],
oneofs=[
],
serialized_start=3404,
serialized_end=3612,
)
_GENERATEDFILE = _descriptor.Descriptor(
name='GeneratedFile',
full_name='blaze_query.GeneratedFile',
filename=None,
file=DESCRIPTOR,
containing_type=None,
fields=[
_descriptor.FieldDescriptor(
name='name', full_name='blaze_query.GeneratedFile.name', index=0,
number=1, type=9, cpp_type=9, label=2,
has_default_value=False, default_value=_b("").decode('utf-8'),
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR),
_descriptor.FieldDescriptor(
name='generating_rule', full_name='blaze_query.GeneratedFile.generating_rule', index=1,
number=2, type=9, cpp_type=9, label=2,
has_default_value=False, default_value=_b("").decode('utf-8'),
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR),
_descriptor.FieldDescriptor(
name='location', full_name='blaze_query.GeneratedFile.location', index=2,
number=3, type=9, cpp_type=9, label=1,
has_default_value=False, default_value=_b("").decode('utf-8'),
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR),
],
extensions=[
],
nested_types=[],
enum_types=[
],
serialized_options=None,
is_extendable=False,
syntax='proto2',
extension_ranges=[],
oneofs=[
],
serialized_start=3614,
serialized_end=3686,
)
_TARGET = _descriptor.Descriptor(
name='Target',
full_name='blaze_query.Target',
filename=None,
file=DESCRIPTOR,
containing_type=None,
fields=[
_descriptor.FieldDescriptor(
name='type', full_name='blaze_query.Target.type', index=0,
number=1, type=14, cpp_type=8, label=2,
has_default_value=False, default_value=1,
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR),
_descriptor.FieldDescriptor(
name='rule', full_name='blaze_query.Target.rule', index=1,
number=2, type=11, cpp_type=10, label=1,
has_default_value=False, default_value=None,
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR),
_descriptor.FieldDescriptor(
name='source_file', full_name='blaze_query.Target.source_file', index=2,
number=3, type=11, cpp_type=10, label=1,
has_default_value=False, default_value=None,
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR),
_descriptor.FieldDescriptor(
name='generated_file', full_name='blaze_query.Target.generated_file', index=3,
number=4, type=11, cpp_type=10, label=1,
has_default_value=False, default_value=None,
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR),
_descriptor.FieldDescriptor(
name='package_group', full_name='blaze_query.Target.package_group', index=4,
number=5, type=11, cpp_type=10, label=1,
has_default_value=False, default_value=None,
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR),
_descriptor.FieldDescriptor(
name='environment_group', full_name='blaze_query.Target.environment_group', index=5,
number=6, type=11, cpp_type=10, label=1,
has_default_value=False, default_value=None,
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR),
],
extensions=[
],
nested_types=[],
enum_types=[
_TARGET_DISCRIMINATOR,
],
serialized_options=None,
is_extendable=False,
syntax='proto2',
extension_ranges=[],
oneofs=[
],
serialized_start=3689,
serialized_end=4091,
)
_QUERYRESULT = _descriptor.Descriptor(
name='QueryResult',
full_name='blaze_query.QueryResult',
filename=None,
file=DESCRIPTOR,
containing_type=None,
fields=[
_descriptor.FieldDescriptor(
name='target', full_name='blaze_query.QueryResult.target', index=0,
number=1, type=11, cpp_type=10, label=3,
has_default_value=False, default_value=[],
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR),
],
extensions=[
],
nested_types=[],
enum_types=[
],
serialized_options=None,
is_extendable=False,
syntax='proto2',
extension_ranges=[],
oneofs=[
],
serialized_start=4093,
serialized_end=4143,
)
_ALLOWEDRULECLASSINFO = _descriptor.Descriptor(
name='AllowedRuleClassInfo',
full_name='blaze_query.AllowedRuleClassInfo',
filename=None,
file=DESCRIPTOR,
containing_type=None,
fields=[
_descriptor.FieldDescriptor(
name='policy', full_name='blaze_query.AllowedRuleClassInfo.policy', index=0,
number=1, type=14, cpp_type=8, label=2,
has_default_value=False, default_value=1,
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR),
_descriptor.FieldDescriptor(
name='allowed_rule_class', full_name='blaze_query.AllowedRuleClassInfo.allowed_rule_class', index=1,
number=2, type=9, cpp_type=9, label=3,
has_default_value=False, default_value=[],
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR),
],
extensions=[
],
nested_types=[],
enum_types=[
_ALLOWEDRULECLASSINFO_ALLOWEDRULECLASSES,
],
serialized_options=None,
is_extendable=False,
syntax='proto2',
extension_ranges=[],
oneofs=[
],
serialized_start=4146,
serialized_end=4312,
)
_ATTRIBUTEDEFINITION = _descriptor.Descriptor(
name='AttributeDefinition',
full_name='blaze_query.AttributeDefinition',
filename=None,
file=DESCRIPTOR,
containing_type=None,
fields=[
_descriptor.FieldDescriptor(
name='name', full_name='blaze_query.AttributeDefinition.name', index=0,
number=1, type=9, cpp_type=9, label=2,
has_default_value=False, default_value=_b("").decode('utf-8'),
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR),
_descriptor.FieldDescriptor(
name='type', full_name='blaze_query.AttributeDefinition.type', index=1,
number=2, type=14, cpp_type=8, label=2,
has_default_value=False, default_value=1,
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR),
_descriptor.FieldDescriptor(
name='mandatory', full_name='blaze_query.AttributeDefinition.mandatory', index=2,
number=3, type=8, cpp_type=7, label=1,
has_default_value=False, default_value=False,
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR),
_descriptor.FieldDescriptor(
name='allowed_rule_classes', full_name='blaze_query.AttributeDefinition.allowed_rule_classes', index=3,
number=4, type=11, cpp_type=10, label=1,
has_default_value=False, default_value=None,
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR),
_descriptor.FieldDescriptor(
name='documentation', full_name='blaze_query.AttributeDefinition.documentation', index=4,
number=5, type=9, cpp_type=9, label=1,
has_default_value=False, default_value=_b("").decode('utf-8'),
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR),
_descriptor.FieldDescriptor(
name='allow_empty', full_name='blaze_query.AttributeDefinition.allow_empty', index=5,
number=6, type=8, cpp_type=7, label=1,
has_default_value=False, default_value=False,
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR),
_descriptor.FieldDescriptor(
name='allow_single_file', full_name='blaze_query.AttributeDefinition.allow_single_file', index=6,
number=7, type=8, cpp_type=7, label=1,
has_default_value=False, default_value=False,
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR),
_descriptor.FieldDescriptor(
name='default', full_name='blaze_query.AttributeDefinition.default', index=7,
number=9, type=11, cpp_type=10, label=1,
has_default_value=False, default_value=None,
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR),
_descriptor.FieldDescriptor(
name='executable', full_name='blaze_query.AttributeDefinition.executable', index=8,
number=10, type=8, cpp_type=7, label=1,
has_default_value=False, default_value=False,
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR),
_descriptor.FieldDescriptor(
name='configurable', full_name='blaze_query.AttributeDefinition.configurable', index=9,
number=11, type=8, cpp_type=7, label=1,
has_default_value=False, default_value=False,
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR),
_descriptor.FieldDescriptor(
name='nodep', full_name='blaze_query.AttributeDefinition.nodep', index=10,
number=12, type=8, cpp_type=7, label=1,
has_default_value=False, default_value=False,
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR),
_descriptor.FieldDescriptor(
name='cfg_is_host', full_name='blaze_query.AttributeDefinition.cfg_is_host', index=11,
number=13, type=8, cpp_type=7, label=1,
has_default_value=False, default_value=False,
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR),
],
extensions=[
],
nested_types=[],
enum_types=[
],
serialized_options=None,
is_extendable=False,
syntax='proto2',
extension_ranges=[],
oneofs=[
],
serialized_start=4315,
serialized_end=4681,
)
_ATTRIBUTEVALUE_DICTENTRY = _descriptor.Descriptor(
name='DictEntry',
full_name='blaze_query.AttributeValue.DictEntry',
filename=None,
file=DESCRIPTOR,
containing_type=None,
fields=[
_descriptor.FieldDescriptor(
name='key', full_name='blaze_query.AttributeValue.DictEntry.key', index=0,
number=1, type=9, cpp_type=9, label=2,
has_default_value=False, default_value=_b("").decode('utf-8'),
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR),
_descriptor.FieldDescriptor(
name='value', full_name='blaze_query.AttributeValue.DictEntry.value', index=1,
number=2, type=11, cpp_type=10, label=2,
has_default_value=False, default_value=None,
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR),
],
extensions=[
],
nested_types=[],
enum_types=[
],
serialized_options=None,
is_extendable=False,
syntax='proto2',
extension_ranges=[],
oneofs=[
],
serialized_start=4841,
serialized_end=4909,
)
_ATTRIBUTEVALUE = _descriptor.Descriptor(
name='AttributeValue',
full_name='blaze_query.AttributeValue',
filename=None,
file=DESCRIPTOR,
containing_type=None,
fields=[
_descriptor.FieldDescriptor(
name='int', full_name='blaze_query.AttributeValue.int', index=0,
number=1, type=5, cpp_type=1, label=1,
has_default_value=False, default_value=0,
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR),
_descriptor.FieldDescriptor(
name='string', full_name='blaze_query.AttributeValue.string', index=1,
number=2, type=9, cpp_type=9, label=1,
has_default_value=False, default_value=_b("").decode('utf-8'),
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR),
_descriptor.FieldDescriptor(
name='bool', full_name='blaze_query.AttributeValue.bool', index=2,
number=3, type=8, cpp_type=7, label=1,
has_default_value=False, default_value=False,
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR),
_descriptor.FieldDescriptor(
name='list', full_name='blaze_query.AttributeValue.list', index=3,
number=4, type=11, cpp_type=10, label=3,
has_default_value=False, default_value=[],
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR),
_descriptor.FieldDescriptor(
name='dict', full_name='blaze_query.AttributeValue.dict', index=4,
number=5, type=11, cpp_type=10, label=3,
has_default_value=False, default_value=[],
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR),
],
extensions=[
],
nested_types=[_ATTRIBUTEVALUE_DICTENTRY, ],
enum_types=[
],
serialized_options=None,
is_extendable=False,
syntax='proto2',
extension_ranges=[],
oneofs=[
],
serialized_start=4684,
serialized_end=4909,
)
_RULEDEFINITION = _descriptor.Descriptor(
name='RuleDefinition',
full_name='blaze_query.RuleDefinition',
filename=None,
file=DESCRIPTOR,
containing_type=None,
fields=[
_descriptor.FieldDescriptor(
name='name', full_name='blaze_query.RuleDefinition.name', index=0,
number=1, type=9, cpp_type=9, label=2,
has_default_value=False, default_value=_b("").decode('utf-8'),
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR),
_descriptor.FieldDescriptor(
name='attribute', full_name='blaze_query.RuleDefinition.attribute', index=1,
number=2, type=11, cpp_type=10, label=3,
has_default_value=False, default_value=[],
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR),
_descriptor.FieldDescriptor(
name='documentation', full_name='blaze_query.RuleDefinition.documentation', index=2,
number=3, type=9, cpp_type=9, label=1,
has_default_value=False, default_value=_b("").decode('utf-8'),
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR),
_descriptor.FieldDescriptor(
name='label', full_name='blaze_query.RuleDefinition.label', index=3,
number=4, type=9, cpp_type=9, label=1,
has_default_value=False, default_value=_b("").decode('utf-8'),
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR),
],
extensions=[
],
nested_types=[],
enum_types=[
],
serialized_options=None,
is_extendable=False,
syntax='proto2',
extension_ranges=[],
oneofs=[
],
serialized_start=4911,
serialized_end=5032,
)
_BUILDLANGUAGE = _descriptor.Descriptor(
name='BuildLanguage',
full_name='blaze_query.BuildLanguage',
filename=None,
file=DESCRIPTOR,
containing_type=None,
fields=[
_descriptor.FieldDescriptor(
name='rule', full_name='blaze_query.BuildLanguage.rule', index=0,
number=1, type=11, cpp_type=10, label=3,
has_default_value=False, default_value=[],
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR),
],
extensions=[
],
nested_types=[],
enum_types=[
],
serialized_options=None,
is_extendable=False,
syntax='proto2',
extension_ranges=[],
oneofs=[
],
serialized_start=5034,
serialized_end=5092,
)
_FILESETENTRY.fields_by_name['symlink_behavior'].enum_type = _FILESETENTRY_SYMLINKBEHAVIOR
_FILESETENTRY_SYMLINKBEHAVIOR.containing_type = _FILESETENTRY
_ATTRIBUTE_SELECTORENTRY.fields_by_name['tristate_value'].enum_type = _ATTRIBUTE_TRISTATE
_ATTRIBUTE_SELECTORENTRY.fields_by_name['license'].message_type = _LICENSE
_ATTRIBUTE_SELECTORENTRY.fields_by_name['string_dict_value'].message_type = _STRINGDICTENTRY
_ATTRIBUTE_SELECTORENTRY.fields_by_name['fileset_list_value'].message_type = _FILESETENTRY
_ATTRIBUTE_SELECTORENTRY.fields_by_name['label_list_dict_value'].message_type = _LABELLISTDICTENTRY
_ATTRIBUTE_SELECTORENTRY.fields_by_name['string_list_dict_value'].message_type = _STRINGLISTDICTENTRY
_ATTRIBUTE_SELECTORENTRY.fields_by_name['label_dict_unary_value'].message_type = _LABELDICTUNARYENTRY
_ATTRIBUTE_SELECTORENTRY.fields_by_name['label_keyed_string_dict_value'].message_type = _LABELKEYEDSTRINGDICTENTRY
_ATTRIBUTE_SELECTORENTRY.containing_type = _ATTRIBUTE
_ATTRIBUTE_SELECTOR.fields_by_name['entries'].message_type = _ATTRIBUTE_SELECTORENTRY
_ATTRIBUTE_SELECTOR.containing_type = _ATTRIBUTE
_ATTRIBUTE_SELECTORLIST.fields_by_name['type'].enum_type = _ATTRIBUTE_DISCRIMINATOR
_ATTRIBUTE_SELECTORLIST.fields_by_name['elements'].message_type = _ATTRIBUTE_SELECTOR
_ATTRIBUTE_SELECTORLIST.containing_type = _ATTRIBUTE
_ATTRIBUTE.fields_by_name['type'].enum_type = _ATTRIBUTE_DISCRIMINATOR
_ATTRIBUTE.fields_by_name['tristate_value'].enum_type = _ATTRIBUTE_TRISTATE
_ATTRIBUTE.fields_by_name['license'].message_type = _LICENSE
_ATTRIBUTE.fields_by_name['string_dict_value'].message_type = _STRINGDICTENTRY
_ATTRIBUTE.fields_by_name['fileset_list_value'].message_type = _FILESETENTRY
_ATTRIBUTE.fields_by_name['label_list_dict_value'].message_type = _LABELLISTDICTENTRY
_ATTRIBUTE.fields_by_name['string_list_dict_value'].message_type = _STRINGLISTDICTENTRY
_ATTRIBUTE.fields_by_name['label_dict_unary_value'].message_type = _LABELDICTUNARYENTRY
_ATTRIBUTE.fields_by_name['label_keyed_string_dict_value'].message_type = _LABELKEYEDSTRINGDICTENTRY
_ATTRIBUTE.fields_by_name['selector_list'].message_type = _ATTRIBUTE_SELECTORLIST
_ATTRIBUTE_DISCRIMINATOR.containing_type = _ATTRIBUTE
_ATTRIBUTE_TRISTATE.containing_type = _ATTRIBUTE
_RULE.fields_by_name['attribute'].message_type = _ATTRIBUTE
_RULESUMMARY.fields_by_name['rule'].message_type = _RULE
_RULESUMMARY.fields_by_name['dependency'].message_type = _RULE
_SOURCEFILE.fields_by_name['license'].message_type = _LICENSE
_TARGET.fields_by_name['type'].enum_type = _TARGET_DISCRIMINATOR
_TARGET.fields_by_name['rule'].message_type = _RULE
_TARGET.fields_by_name['source_file'].message_type = _SOURCEFILE
_TARGET.fields_by_name['generated_file'].message_type = _GENERATEDFILE
_TARGET.fields_by_name['package_group'].message_type = _PACKAGEGROUP
_TARGET.fields_by_name['environment_group'].message_type = _ENVIRONMENTGROUP
_TARGET_DISCRIMINATOR.containing_type = _TARGET
_QUERYRESULT.fields_by_name['target'].message_type = _TARGET
_ALLOWEDRULECLASSINFO.fields_by_name['policy'].enum_type = _ALLOWEDRULECLASSINFO_ALLOWEDRULECLASSES
_ALLOWEDRULECLASSINFO_ALLOWEDRULECLASSES.containing_type = _ALLOWEDRULECLASSINFO
_ATTRIBUTEDEFINITION.fields_by_name['type'].enum_type = _ATTRIBUTE_DISCRIMINATOR
_ATTRIBUTEDEFINITION.fields_by_name['allowed_rule_classes'].message_type = _ALLOWEDRULECLASSINFO
_ATTRIBUTEDEFINITION.fields_by_name['default'].message_type = _ATTRIBUTEVALUE
_ATTRIBUTEVALUE_DICTENTRY.fields_by_name['value'].message_type = _ATTRIBUTEVALUE
_ATTRIBUTEVALUE_DICTENTRY.containing_type = _ATTRIBUTEVALUE
_ATTRIBUTEVALUE.fields_by_name['list'].message_type = _ATTRIBUTEVALUE
_ATTRIBUTEVALUE.fields_by_name['dict'].message_type = _ATTRIBUTEVALUE_DICTENTRY
_RULEDEFINITION.fields_by_name['attribute'].message_type = _ATTRIBUTEDEFINITION
_BUILDLANGUAGE.fields_by_name['rule'].message_type = _RULEDEFINITION
DESCRIPTOR.message_types_by_name['License'] = _LICENSE
DESCRIPTOR.message_types_by_name['StringDictEntry'] = _STRINGDICTENTRY
DESCRIPTOR.message_types_by_name['LabelDictUnaryEntry'] = _LABELDICTUNARYENTRY
DESCRIPTOR.message_types_by_name['LabelListDictEntry'] = _LABELLISTDICTENTRY
DESCRIPTOR.message_types_by_name['LabelKeyedStringDictEntry'] = _LABELKEYEDSTRINGDICTENTRY
DESCRIPTOR.message_types_by_name['StringListDictEntry'] = _STRINGLISTDICTENTRY
DESCRIPTOR.message_types_by_name['FilesetEntry'] = _FILESETENTRY
DESCRIPTOR.message_types_by_name['Attribute'] = _ATTRIBUTE
DESCRIPTOR.message_types_by_name['Rule'] = _RULE
DESCRIPTOR.message_types_by_name['RuleSummary'] = _RULESUMMARY
DESCRIPTOR.message_types_by_name['PackageGroup'] = _PACKAGEGROUP
DESCRIPTOR.message_types_by_name['EnvironmentGroup'] = _ENVIRONMENTGROUP
DESCRIPTOR.message_types_by_name['SourceFile'] = _SOURCEFILE
DESCRIPTOR.message_types_by_name['GeneratedFile'] = _GENERATEDFILE
DESCRIPTOR.message_types_by_name['Target'] = _TARGET
DESCRIPTOR.message_types_by_name['QueryResult'] = _QUERYRESULT
DESCRIPTOR.message_types_by_name['AllowedRuleClassInfo'] = _ALLOWEDRULECLASSINFO
DESCRIPTOR.message_types_by_name['AttributeDefinition'] = _ATTRIBUTEDEFINITION
DESCRIPTOR.message_types_by_name['AttributeValue'] = _ATTRIBUTEVALUE
DESCRIPTOR.message_types_by_name['RuleDefinition'] = _RULEDEFINITION
DESCRIPTOR.message_types_by_name['BuildLanguage'] = _BUILDLANGUAGE
_sym_db.RegisterFileDescriptor(DESCRIPTOR)
License = _reflection.GeneratedProtocolMessageType('License', (_message.Message,), {
'DESCRIPTOR' : _LICENSE,
'__module__' : 'deployment.scripts.util.bazel_affected_targets.query_pb2'
# @@protoc_insertion_point(class_scope:blaze_query.License)
})
_sym_db.RegisterMessage(License)
StringDictEntry = _reflection.GeneratedProtocolMessageType('StringDictEntry', (_message.Message,), {
'DESCRIPTOR' : _STRINGDICTENTRY,
'__module__' : 'deployment.scripts.util.bazel_affected_targets.query_pb2'
# @@protoc_insertion_point(class_scope:blaze_query.StringDictEntry)
})
_sym_db.RegisterMessage(StringDictEntry)
LabelDictUnaryEntry = _reflection.GeneratedProtocolMessageType('LabelDictUnaryEntry', (_message.Message,), {
'DESCRIPTOR' : _LABELDICTUNARYENTRY,
'__module__' : 'deployment.scripts.util.bazel_affected_targets.query_pb2'
# @@protoc_insertion_point(class_scope:blaze_query.LabelDictUnaryEntry)
})
_sym_db.RegisterMessage(LabelDictUnaryEntry)
LabelListDictEntry = _reflection.GeneratedProtocolMessageType('LabelListDictEntry', (_message.Message,), {
'DESCRIPTOR' : _LABELLISTDICTENTRY,
'__module__' : 'deployment.scripts.util.bazel_affected_targets.query_pb2'
# @@protoc_insertion_point(class_scope:blaze_query.LabelListDictEntry)
})
_sym_db.RegisterMessage(LabelListDictEntry)
LabelKeyedStringDictEntry = _reflection.GeneratedProtocolMessageType('LabelKeyedStringDictEntry', (_message.Message,), {
'DESCRIPTOR' : _LABELKEYEDSTRINGDICTENTRY,
'__module__' : 'deployment.scripts.util.bazel_affected_targets.query_pb2'
# @@protoc_insertion_point(class_scope:blaze_query.LabelKeyedStringDictEntry)
})
_sym_db.RegisterMessage(LabelKeyedStringDictEntry)
StringListDictEntry = _reflection.GeneratedProtocolMessageType('StringListDictEntry', (_message.Message,), {
'DESCRIPTOR' : _STRINGLISTDICTENTRY,
'__module__' : 'deployment.scripts.util.bazel_affected_targets.query_pb2'
# @@protoc_insertion_point(class_scope:blaze_query.StringListDictEntry)
})
_sym_db.RegisterMessage(StringListDictEntry)
FilesetEntry = _reflection.GeneratedProtocolMessageType('FilesetEntry', (_message.Message,), {
'DESCRIPTOR' : _FILESETENTRY,
'__module__' : 'deployment.scripts.util.bazel_affected_targets.query_pb2'
# @@protoc_insertion_point(class_scope:blaze_query.FilesetEntry)
})
_sym_db.RegisterMessage(FilesetEntry)
Attribute = _reflection.GeneratedProtocolMessageType('Attribute', (_message.Message,), {
'SelectorEntry' : _reflection.GeneratedProtocolMessageType('SelectorEntry', (_message.Message,), {
'DESCRIPTOR' : _ATTRIBUTE_SELECTORENTRY,
'__module__' : 'deployment.scripts.util.bazel_affected_targets.query_pb2'
# @@protoc_insertion_point(class_scope:blaze_query.Attribute.SelectorEntry)
})
,
'Selector' : _reflection.GeneratedProtocolMessageType('Selector', (_message.Message,), {
'DESCRIPTOR' : _ATTRIBUTE_SELECTOR,
'__module__' : 'deployment.scripts.util.bazel_affected_targets.query_pb2'
# @@protoc_insertion_point(class_scope:blaze_query.Attribute.Selector)
})
,
'SelectorList' : _reflection.GeneratedProtocolMessageType('SelectorList', (_message.Message,), {
'DESCRIPTOR' : _ATTRIBUTE_SELECTORLIST,
'__module__' : 'deployment.scripts.util.bazel_affected_targets.query_pb2'
# @@protoc_insertion_point(class_scope:blaze_query.Attribute.SelectorList)
})
,
'DESCRIPTOR' : _ATTRIBUTE,
'__module__' : 'deployment.scripts.util.bazel_affected_targets.query_pb2'
# @@protoc_insertion_point(class_scope:blaze_query.Attribute)
})
_sym_db.RegisterMessage(Attribute)
_sym_db.RegisterMessage(Attribute.SelectorEntry)
_sym_db.RegisterMessage(Attribute.Selector)
_sym_db.RegisterMessage(Attribute.SelectorList)
Rule = _reflection.GeneratedProtocolMessageType('Rule', (_message.Message,), {
'DESCRIPTOR' : _RULE,
'__module__' : 'deployment.scripts.util.bazel_affected_targets.query_pb2'
# @@protoc_insertion_point(class_scope:blaze_query.Rule)
})
_sym_db.RegisterMessage(Rule)
RuleSummary = _reflection.GeneratedProtocolMessageType('RuleSummary', (_message.Message,), {
'DESCRIPTOR' : _RULESUMMARY,
'__module__' : 'deployment.scripts.util.bazel_affected_targets.query_pb2'
# @@protoc_insertion_point(class_scope:blaze_query.RuleSummary)
})
_sym_db.RegisterMessage(RuleSummary)
PackageGroup = _reflection.GeneratedProtocolMessageType('PackageGroup', (_message.Message,), {
'DESCRIPTOR' : _PACKAGEGROUP,
'__module__' : 'deployment.scripts.util.bazel_affected_targets.query_pb2'
# @@protoc_insertion_point(class_scope:blaze_query.PackageGroup)
})
_sym_db.RegisterMessage(PackageGroup)
EnvironmentGroup = _reflection.GeneratedProtocolMessageType('EnvironmentGroup', (_message.Message,), {
'DESCRIPTOR' : _ENVIRONMENTGROUP,
'__module__' : 'deployment.scripts.util.bazel_affected_targets.query_pb2'
# @@protoc_insertion_point(class_scope:blaze_query.EnvironmentGroup)
})
_sym_db.RegisterMessage(EnvironmentGroup)
SourceFile = _reflection.GeneratedProtocolMessageType('SourceFile', (_message.Message,), {
'DESCRIPTOR' : _SOURCEFILE,
'__module__' : 'deployment.scripts.util.bazel_affected_targets.query_pb2'
# @@protoc_insertion_point(class_scope:blaze_query.SourceFile)
})
_sym_db.RegisterMessage(SourceFile)
GeneratedFile = _reflection.GeneratedProtocolMessageType('GeneratedFile', (_message.Message,), {
'DESCRIPTOR' : _GENERATEDFILE,
'__module__' : 'deployment.scripts.util.bazel_affected_targets.query_pb2'
# @@protoc_insertion_point(class_scope:blaze_query.GeneratedFile)
})
_sym_db.RegisterMessage(GeneratedFile)
Target = _reflection.GeneratedProtocolMessageType('Target', (_message.Message,), {
'DESCRIPTOR' : _TARGET,
'__module__' : 'deployment.scripts.util.bazel_affected_targets.query_pb2'
# @@protoc_insertion_point(class_scope:blaze_query.Target)
})
_sym_db.RegisterMessage(Target)
QueryResult = _reflection.GeneratedProtocolMessageType('QueryResult', (_message.Message,), {
'DESCRIPTOR' : _QUERYRESULT,
'__module__' : 'deployment.scripts.util.bazel_affected_targets.query_pb2'
# @@protoc_insertion_point(class_scope:blaze_query.QueryResult)
})
_sym_db.RegisterMessage(QueryResult)
AllowedRuleClassInfo = _reflection.GeneratedProtocolMessageType('AllowedRuleClassInfo', (_message.Message,), {
'DESCRIPTOR' : _ALLOWEDRULECLASSINFO,
'__module__' : 'deployment.scripts.util.bazel_affected_targets.query_pb2'
# @@protoc_insertion_point(class_scope:blaze_query.AllowedRuleClassInfo)
})
_sym_db.RegisterMessage(AllowedRuleClassInfo)
AttributeDefinition = _reflection.GeneratedProtocolMessageType('AttributeDefinition', (_message.Message,), {
'DESCRIPTOR' : _ATTRIBUTEDEFINITION,
'__module__' : 'deployment.scripts.util.bazel_affected_targets.query_pb2'
# @@protoc_insertion_point(class_scope:blaze_query.AttributeDefinition)
})
_sym_db.RegisterMessage(AttributeDefinition)
AttributeValue = _reflection.GeneratedProtocolMessageType('AttributeValue', (_message.Message,), {
'DictEntry' : _reflection.GeneratedProtocolMessageType('DictEntry', (_message.Message,), {
'DESCRIPTOR' : _ATTRIBUTEVALUE_DICTENTRY,
'__module__' : 'deployment.scripts.util.bazel_affected_targets.query_pb2'
# @@protoc_insertion_point(class_scope:blaze_query.AttributeValue.DictEntry)
})
,
'DESCRIPTOR' : _ATTRIBUTEVALUE,
'__module__' : 'deployment.scripts.util.bazel_affected_targets.query_pb2'
# @@protoc_insertion_point(class_scope:blaze_query.AttributeValue)
})
_sym_db.RegisterMessage(AttributeValue)
_sym_db.RegisterMessage(AttributeValue.DictEntry)
RuleDefinition = _reflection.GeneratedProtocolMessageType('RuleDefinition', (_message.Message,), {
'DESCRIPTOR' : _RULEDEFINITION,
'__module__' : 'deployment.scripts.util.bazel_affected_targets.query_pb2'
# @@protoc_insertion_point(class_scope:blaze_query.RuleDefinition)
})
_sym_db.RegisterMessage(RuleDefinition)
BuildLanguage = _reflection.GeneratedProtocolMessageType('BuildLanguage', (_message.Message,), {
'DESCRIPTOR' : _BUILDLANGUAGE,
'__module__' : 'deployment.scripts.util.bazel_affected_targets.query_pb2'
# @@protoc_insertion_point(class_scope:blaze_query.BuildLanguage)
})
_sym_db.RegisterMessage(BuildLanguage)
DESCRIPTOR._options = None
# @@protoc_insertion_point(module_scope)
import query_pb2
import json
import os
import hashlib
import binascii
# Run /bazel query --output=proto --order_output=full "//external:all-targets + deps(//...:all-targets)" > test_output
def get_label(target):
if target.type == 1:
return target.rule.name
if target.type == 2:
return target.source_file.name
if target.type == 3:
return target.generated_file.name
def create_target_map(targets):
target_map = {}
for target in targets:
label = get_label(target)
target_map[label] = target
return target_map
def get_rule_attributes(rule):
attributes = []
for a in rule.attribute:
if (a.name != "generator_location" and
a.name != "path" and
a.name != "build_file"):
attributes.append(a)
return attributes
def get_source_file_location(source_file):
path_to_target = os.path.dirname(source_file.location.split(":")[0])
path_from_target = source_file.name.replace("//", '').split(":")[-1]
combined_path = os.path.join(path_to_target, path_from_target)
if not os.path.exists(combined_path):
print("File %s does not exist on disk" % combined_path)
print(source_file.location)
print(source_file.name)
return ""
return combined_path
def calculate_hash_for_rule(rule, target_map):
sha256 = hashlib.sha256()
for a in get_rule_attributes(rule):
sha256.update(a.SerializeToString())
for i in rule.rule_input:
input_target = target_map.get(i)
if input_target is None:
print("%s not found in target map" % i)
else:
sha256.update(calculate_hash(i, target_map[i], target_map))
return sha256.digest()
def calculate_hash_for_source_file(source_file):
sha256 = hashlib.sha256()
file_location = get_source_file_location(source_file)
if file_location == "":
return sha256.digest()
with open(file_location, "rb") as f:
file_bytes = f.read() # read entire file as bytes
sha256.update(file_bytes)
return sha256.digest()
hashed_targets = {}
def calculate_hash(label, target, target_map):
cached_target = hashed_targets.get(label)
if cached_target is not None:
return cached_target
sha256 = hashlib.sha256()
if target.type == 1:
sha256.update(calculate_hash_for_rule(target.rule, target_map))
if target.type == 2:
sha256.update(calculate_hash_for_source_file(target.source_file))
if target.type == 3:
sha256.update(
calculate_hash(label,
target_map[target.generated_file.generating_rule],
target_map))
digest = sha256.digest()
hashed_targets[label] = digest
return digest
# TODO: External workspaces(https://www.youtube.com/watch?v=9Dk7mtIm7_A&list=PLxNYxgaZ8Rsf-7g43Z8LyXct9ax6egdSj&index=9&t=1582s)
with open("test_output", "rb") as f:
query_output = query_pb2.QueryResult()
query_output.ParseFromString(f.read())
target_map = create_target_map(query_output.target)
output = {
"targets": []
}
for label, target in target_map.items():
if target.type == 1:
hash_bytes = calculate_hash(label, target, target_map)
digest = binascii.hexlify(bytearray(hash_bytes))
output["targets"].append({
"label": label,
"rule_class": target.rule.rule_class,
"digest": str(digest, "ascii")
})
print(json.dumps(output))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment