...

Source file src/github.com/bazelbuild/buildtools/deps_proto/deps.gen.pb.go

Documentation: github.com/bazelbuild/buildtools/deps_proto

     1  // Code generated by protoc-gen-go. DO NOT EDIT.
     2  // versions:
     3  // 	protoc-gen-go v1.31.0
     4  // 	protoc        v4.24.4
     5  // source: deps_proto/deps.proto
     6  
     7  package deps_proto
     8  
     9  import (
    10  	protoreflect "google.golang.org/protobuf/reflect/protoreflect"
    11  	protoimpl "google.golang.org/protobuf/runtime/protoimpl"
    12  	reflect "reflect"
    13  	sync "sync"
    14  )
    15  
    16  const (
    17  	// Verify that this generated code is sufficiently up-to-date.
    18  	_ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
    19  	// Verify that runtime/protoimpl is sufficiently up-to-date.
    20  	_ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
    21  )
    22  
    23  type Dependency_Kind int32
    24  
    25  const (
    26  	Dependency_EXPLICIT   Dependency_Kind = 0
    27  	Dependency_IMPLICIT   Dependency_Kind = 1
    28  	Dependency_UNUSED     Dependency_Kind = 2
    29  	Dependency_INCOMPLETE Dependency_Kind = 3
    30  )
    31  
    32  // Enum value maps for Dependency_Kind.
    33  var (
    34  	Dependency_Kind_name = map[int32]string{
    35  		0: "EXPLICIT",
    36  		1: "IMPLICIT",
    37  		2: "UNUSED",
    38  		3: "INCOMPLETE",
    39  	}
    40  	Dependency_Kind_value = map[string]int32{
    41  		"EXPLICIT":   0,
    42  		"IMPLICIT":   1,
    43  		"UNUSED":     2,
    44  		"INCOMPLETE": 3,
    45  	}
    46  )
    47  
    48  func (x Dependency_Kind) Enum() *Dependency_Kind {
    49  	p := new(Dependency_Kind)
    50  	*p = x
    51  	return p
    52  }
    53  
    54  func (x Dependency_Kind) String() string {
    55  	return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
    56  }
    57  
    58  func (Dependency_Kind) Descriptor() protoreflect.EnumDescriptor {
    59  	return file_deps_proto_deps_proto_enumTypes[0].Descriptor()
    60  }
    61  
    62  func (Dependency_Kind) Type() protoreflect.EnumType {
    63  	return &file_deps_proto_deps_proto_enumTypes[0]
    64  }
    65  
    66  func (x Dependency_Kind) Number() protoreflect.EnumNumber {
    67  	return protoreflect.EnumNumber(x)
    68  }
    69  
    70  // Deprecated: Do not use.
    71  func (x *Dependency_Kind) UnmarshalJSON(b []byte) error {
    72  	num, err := protoimpl.X.UnmarshalJSONEnum(x.Descriptor(), b)
    73  	if err != nil {
    74  		return err
    75  	}
    76  	*x = Dependency_Kind(num)
    77  	return nil
    78  }
    79  
    80  // Deprecated: Use Dependency_Kind.Descriptor instead.
    81  func (Dependency_Kind) EnumDescriptor() ([]byte, []int) {
    82  	return file_deps_proto_deps_proto_rawDescGZIP(), []int{1, 0}
    83  }
    84  
    85  type SourceLocation struct {
    86  	state         protoimpl.MessageState
    87  	sizeCache     protoimpl.SizeCache
    88  	unknownFields protoimpl.UnknownFields
    89  
    90  	Path   *string `protobuf:"bytes,1,req,name=path" json:"path,omitempty"`
    91  	Line   *int32  `protobuf:"varint,2,opt,name=line" json:"line,omitempty"`
    92  	Column *int32  `protobuf:"varint,3,opt,name=column" json:"column,omitempty"`
    93  }
    94  
    95  func (x *SourceLocation) Reset() {
    96  	*x = SourceLocation{}
    97  	if protoimpl.UnsafeEnabled {
    98  		mi := &file_deps_proto_deps_proto_msgTypes[0]
    99  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
   100  		ms.StoreMessageInfo(mi)
   101  	}
   102  }
   103  
   104  func (x *SourceLocation) String() string {
   105  	return protoimpl.X.MessageStringOf(x)
   106  }
   107  
   108  func (*SourceLocation) ProtoMessage() {}
   109  
   110  func (x *SourceLocation) ProtoReflect() protoreflect.Message {
   111  	mi := &file_deps_proto_deps_proto_msgTypes[0]
   112  	if protoimpl.UnsafeEnabled && x != nil {
   113  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
   114  		if ms.LoadMessageInfo() == nil {
   115  			ms.StoreMessageInfo(mi)
   116  		}
   117  		return ms
   118  	}
   119  	return mi.MessageOf(x)
   120  }
   121  
   122  // Deprecated: Use SourceLocation.ProtoReflect.Descriptor instead.
   123  func (*SourceLocation) Descriptor() ([]byte, []int) {
   124  	return file_deps_proto_deps_proto_rawDescGZIP(), []int{0}
   125  }
   126  
   127  func (x *SourceLocation) GetPath() string {
   128  	if x != nil && x.Path != nil {
   129  		return *x.Path
   130  	}
   131  	return ""
   132  }
   133  
   134  func (x *SourceLocation) GetLine() int32 {
   135  	if x != nil && x.Line != nil {
   136  		return *x.Line
   137  	}
   138  	return 0
   139  }
   140  
   141  func (x *SourceLocation) GetColumn() int32 {
   142  	if x != nil && x.Column != nil {
   143  		return *x.Column
   144  	}
   145  	return 0
   146  }
   147  
   148  type Dependency struct {
   149  	state         protoimpl.MessageState
   150  	sizeCache     protoimpl.SizeCache
   151  	unknownFields protoimpl.UnknownFields
   152  
   153  	Path     *string           `protobuf:"bytes,1,req,name=path" json:"path,omitempty"`
   154  	Kind     *Dependency_Kind  `protobuf:"varint,2,req,name=kind,enum=blaze_deps.Dependency_Kind" json:"kind,omitempty"`
   155  	Location []*SourceLocation `protobuf:"bytes,3,rep,name=location" json:"location,omitempty"`
   156  }
   157  
   158  func (x *Dependency) Reset() {
   159  	*x = Dependency{}
   160  	if protoimpl.UnsafeEnabled {
   161  		mi := &file_deps_proto_deps_proto_msgTypes[1]
   162  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
   163  		ms.StoreMessageInfo(mi)
   164  	}
   165  }
   166  
   167  func (x *Dependency) String() string {
   168  	return protoimpl.X.MessageStringOf(x)
   169  }
   170  
   171  func (*Dependency) ProtoMessage() {}
   172  
   173  func (x *Dependency) ProtoReflect() protoreflect.Message {
   174  	mi := &file_deps_proto_deps_proto_msgTypes[1]
   175  	if protoimpl.UnsafeEnabled && x != nil {
   176  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
   177  		if ms.LoadMessageInfo() == nil {
   178  			ms.StoreMessageInfo(mi)
   179  		}
   180  		return ms
   181  	}
   182  	return mi.MessageOf(x)
   183  }
   184  
   185  // Deprecated: Use Dependency.ProtoReflect.Descriptor instead.
   186  func (*Dependency) Descriptor() ([]byte, []int) {
   187  	return file_deps_proto_deps_proto_rawDescGZIP(), []int{1}
   188  }
   189  
   190  func (x *Dependency) GetPath() string {
   191  	if x != nil && x.Path != nil {
   192  		return *x.Path
   193  	}
   194  	return ""
   195  }
   196  
   197  func (x *Dependency) GetKind() Dependency_Kind {
   198  	if x != nil && x.Kind != nil {
   199  		return *x.Kind
   200  	}
   201  	return Dependency_EXPLICIT
   202  }
   203  
   204  func (x *Dependency) GetLocation() []*SourceLocation {
   205  	if x != nil {
   206  		return x.Location
   207  	}
   208  	return nil
   209  }
   210  
   211  type Dependencies struct {
   212  	state         protoimpl.MessageState
   213  	sizeCache     protoimpl.SizeCache
   214  	unknownFields protoimpl.UnknownFields
   215  
   216  	Dependency       []*Dependency `protobuf:"bytes,1,rep,name=dependency" json:"dependency,omitempty"`
   217  	RuleLabel        *string       `protobuf:"bytes,2,opt,name=rule_label,json=ruleLabel" json:"rule_label,omitempty"`
   218  	Success          *bool         `protobuf:"varint,3,opt,name=success" json:"success,omitempty"`
   219  	ContainedPackage []string      `protobuf:"bytes,4,rep,name=contained_package,json=containedPackage" json:"contained_package,omitempty"`
   220  }
   221  
   222  func (x *Dependencies) Reset() {
   223  	*x = Dependencies{}
   224  	if protoimpl.UnsafeEnabled {
   225  		mi := &file_deps_proto_deps_proto_msgTypes[2]
   226  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
   227  		ms.StoreMessageInfo(mi)
   228  	}
   229  }
   230  
   231  func (x *Dependencies) String() string {
   232  	return protoimpl.X.MessageStringOf(x)
   233  }
   234  
   235  func (*Dependencies) ProtoMessage() {}
   236  
   237  func (x *Dependencies) ProtoReflect() protoreflect.Message {
   238  	mi := &file_deps_proto_deps_proto_msgTypes[2]
   239  	if protoimpl.UnsafeEnabled && x != nil {
   240  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
   241  		if ms.LoadMessageInfo() == nil {
   242  			ms.StoreMessageInfo(mi)
   243  		}
   244  		return ms
   245  	}
   246  	return mi.MessageOf(x)
   247  }
   248  
   249  // Deprecated: Use Dependencies.ProtoReflect.Descriptor instead.
   250  func (*Dependencies) Descriptor() ([]byte, []int) {
   251  	return file_deps_proto_deps_proto_rawDescGZIP(), []int{2}
   252  }
   253  
   254  func (x *Dependencies) GetDependency() []*Dependency {
   255  	if x != nil {
   256  		return x.Dependency
   257  	}
   258  	return nil
   259  }
   260  
   261  func (x *Dependencies) GetRuleLabel() string {
   262  	if x != nil && x.RuleLabel != nil {
   263  		return *x.RuleLabel
   264  	}
   265  	return ""
   266  }
   267  
   268  func (x *Dependencies) GetSuccess() bool {
   269  	if x != nil && x.Success != nil {
   270  		return *x.Success
   271  	}
   272  	return false
   273  }
   274  
   275  func (x *Dependencies) GetContainedPackage() []string {
   276  	if x != nil {
   277  		return x.ContainedPackage
   278  	}
   279  	return nil
   280  }
   281  
   282  var File_deps_proto_deps_proto protoreflect.FileDescriptor
   283  
   284  var file_deps_proto_deps_proto_rawDesc = []byte{
   285  	0x0a, 0x15, 0x64, 0x65, 0x70, 0x73, 0x5f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x64, 0x65, 0x70,
   286  	0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x0a, 0x62, 0x6c, 0x61, 0x7a, 0x65, 0x5f, 0x64,
   287  	0x65, 0x70, 0x73, 0x22, 0x50, 0x0a, 0x0e, 0x53, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x4c, 0x6f, 0x63,
   288  	0x61, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x12, 0x0a, 0x04, 0x70, 0x61, 0x74, 0x68, 0x18, 0x01, 0x20,
   289  	0x02, 0x28, 0x09, 0x52, 0x04, 0x70, 0x61, 0x74, 0x68, 0x12, 0x12, 0x0a, 0x04, 0x6c, 0x69, 0x6e,
   290  	0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x05, 0x52, 0x04, 0x6c, 0x69, 0x6e, 0x65, 0x12, 0x16, 0x0a,
   291  	0x06, 0x63, 0x6f, 0x6c, 0x75, 0x6d, 0x6e, 0x18, 0x03, 0x20, 0x01, 0x28, 0x05, 0x52, 0x06, 0x63,
   292  	0x6f, 0x6c, 0x75, 0x6d, 0x6e, 0x22, 0xc9, 0x01, 0x0a, 0x0a, 0x44, 0x65, 0x70, 0x65, 0x6e, 0x64,
   293  	0x65, 0x6e, 0x63, 0x79, 0x12, 0x12, 0x0a, 0x04, 0x70, 0x61, 0x74, 0x68, 0x18, 0x01, 0x20, 0x02,
   294  	0x28, 0x09, 0x52, 0x04, 0x70, 0x61, 0x74, 0x68, 0x12, 0x2f, 0x0a, 0x04, 0x6b, 0x69, 0x6e, 0x64,
   295  	0x18, 0x02, 0x20, 0x02, 0x28, 0x0e, 0x32, 0x1b, 0x2e, 0x62, 0x6c, 0x61, 0x7a, 0x65, 0x5f, 0x64,
   296  	0x65, 0x70, 0x73, 0x2e, 0x44, 0x65, 0x70, 0x65, 0x6e, 0x64, 0x65, 0x6e, 0x63, 0x79, 0x2e, 0x4b,
   297  	0x69, 0x6e, 0x64, 0x52, 0x04, 0x6b, 0x69, 0x6e, 0x64, 0x12, 0x36, 0x0a, 0x08, 0x6c, 0x6f, 0x63,
   298  	0x61, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x03, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x62, 0x6c,
   299  	0x61, 0x7a, 0x65, 0x5f, 0x64, 0x65, 0x70, 0x73, 0x2e, 0x53, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x4c,
   300  	0x6f, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x08, 0x6c, 0x6f, 0x63, 0x61, 0x74, 0x69, 0x6f,
   301  	0x6e, 0x22, 0x3e, 0x0a, 0x04, 0x4b, 0x69, 0x6e, 0x64, 0x12, 0x0c, 0x0a, 0x08, 0x45, 0x58, 0x50,
   302  	0x4c, 0x49, 0x43, 0x49, 0x54, 0x10, 0x00, 0x12, 0x0c, 0x0a, 0x08, 0x49, 0x4d, 0x50, 0x4c, 0x49,
   303  	0x43, 0x49, 0x54, 0x10, 0x01, 0x12, 0x0a, 0x0a, 0x06, 0x55, 0x4e, 0x55, 0x53, 0x45, 0x44, 0x10,
   304  	0x02, 0x12, 0x0e, 0x0a, 0x0a, 0x49, 0x4e, 0x43, 0x4f, 0x4d, 0x50, 0x4c, 0x45, 0x54, 0x45, 0x10,
   305  	0x03, 0x22, 0xac, 0x01, 0x0a, 0x0c, 0x44, 0x65, 0x70, 0x65, 0x6e, 0x64, 0x65, 0x6e, 0x63, 0x69,
   306  	0x65, 0x73, 0x12, 0x36, 0x0a, 0x0a, 0x64, 0x65, 0x70, 0x65, 0x6e, 0x64, 0x65, 0x6e, 0x63, 0x79,
   307  	0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x16, 0x2e, 0x62, 0x6c, 0x61, 0x7a, 0x65, 0x5f, 0x64,
   308  	0x65, 0x70, 0x73, 0x2e, 0x44, 0x65, 0x70, 0x65, 0x6e, 0x64, 0x65, 0x6e, 0x63, 0x79, 0x52, 0x0a,
   309  	0x64, 0x65, 0x70, 0x65, 0x6e, 0x64, 0x65, 0x6e, 0x63, 0x79, 0x12, 0x1d, 0x0a, 0x0a, 0x72, 0x75,
   310  	0x6c, 0x65, 0x5f, 0x6c, 0x61, 0x62, 0x65, 0x6c, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09,
   311  	0x72, 0x75, 0x6c, 0x65, 0x4c, 0x61, 0x62, 0x65, 0x6c, 0x12, 0x18, 0x0a, 0x07, 0x73, 0x75, 0x63,
   312  	0x63, 0x65, 0x73, 0x73, 0x18, 0x03, 0x20, 0x01, 0x28, 0x08, 0x52, 0x07, 0x73, 0x75, 0x63, 0x63,
   313  	0x65, 0x73, 0x73, 0x12, 0x2b, 0x0a, 0x11, 0x63, 0x6f, 0x6e, 0x74, 0x61, 0x69, 0x6e, 0x65, 0x64,
   314  	0x5f, 0x70, 0x61, 0x63, 0x6b, 0x61, 0x67, 0x65, 0x18, 0x04, 0x20, 0x03, 0x28, 0x09, 0x52, 0x10,
   315  	0x63, 0x6f, 0x6e, 0x74, 0x61, 0x69, 0x6e, 0x65, 0x64, 0x50, 0x61, 0x63, 0x6b, 0x61, 0x67, 0x65,
   316  	0x42, 0x2a, 0x0a, 0x28, 0x63, 0x6f, 0x6d, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x64,
   317  	0x65, 0x76, 0x74, 0x6f, 0x6f, 0x6c, 0x73, 0x2e, 0x62, 0x75, 0x69, 0x6c, 0x64, 0x2e, 0x6c, 0x69,
   318  	0x62, 0x2e, 0x76, 0x69, 0x65, 0x77, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f,
   319  }
   320  
   321  var (
   322  	file_deps_proto_deps_proto_rawDescOnce sync.Once
   323  	file_deps_proto_deps_proto_rawDescData = file_deps_proto_deps_proto_rawDesc
   324  )
   325  
   326  func file_deps_proto_deps_proto_rawDescGZIP() []byte {
   327  	file_deps_proto_deps_proto_rawDescOnce.Do(func() {
   328  		file_deps_proto_deps_proto_rawDescData = protoimpl.X.CompressGZIP(file_deps_proto_deps_proto_rawDescData)
   329  	})
   330  	return file_deps_proto_deps_proto_rawDescData
   331  }
   332  
   333  var file_deps_proto_deps_proto_enumTypes = make([]protoimpl.EnumInfo, 1)
   334  var file_deps_proto_deps_proto_msgTypes = make([]protoimpl.MessageInfo, 3)
   335  var file_deps_proto_deps_proto_goTypes = []interface{}{
   336  	(Dependency_Kind)(0),   // 0: blaze_deps.Dependency.Kind
   337  	(*SourceLocation)(nil), // 1: blaze_deps.SourceLocation
   338  	(*Dependency)(nil),     // 2: blaze_deps.Dependency
   339  	(*Dependencies)(nil),   // 3: blaze_deps.Dependencies
   340  }
   341  var file_deps_proto_deps_proto_depIdxs = []int32{
   342  	0, // 0: blaze_deps.Dependency.kind:type_name -> blaze_deps.Dependency.Kind
   343  	1, // 1: blaze_deps.Dependency.location:type_name -> blaze_deps.SourceLocation
   344  	2, // 2: blaze_deps.Dependencies.dependency:type_name -> blaze_deps.Dependency
   345  	3, // [3:3] is the sub-list for method output_type
   346  	3, // [3:3] is the sub-list for method input_type
   347  	3, // [3:3] is the sub-list for extension type_name
   348  	3, // [3:3] is the sub-list for extension extendee
   349  	0, // [0:3] is the sub-list for field type_name
   350  }
   351  
   352  func init() { file_deps_proto_deps_proto_init() }
   353  func file_deps_proto_deps_proto_init() {
   354  	if File_deps_proto_deps_proto != nil {
   355  		return
   356  	}
   357  	if !protoimpl.UnsafeEnabled {
   358  		file_deps_proto_deps_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
   359  			switch v := v.(*SourceLocation); i {
   360  			case 0:
   361  				return &v.state
   362  			case 1:
   363  				return &v.sizeCache
   364  			case 2:
   365  				return &v.unknownFields
   366  			default:
   367  				return nil
   368  			}
   369  		}
   370  		file_deps_proto_deps_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {
   371  			switch v := v.(*Dependency); i {
   372  			case 0:
   373  				return &v.state
   374  			case 1:
   375  				return &v.sizeCache
   376  			case 2:
   377  				return &v.unknownFields
   378  			default:
   379  				return nil
   380  			}
   381  		}
   382  		file_deps_proto_deps_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} {
   383  			switch v := v.(*Dependencies); i {
   384  			case 0:
   385  				return &v.state
   386  			case 1:
   387  				return &v.sizeCache
   388  			case 2:
   389  				return &v.unknownFields
   390  			default:
   391  				return nil
   392  			}
   393  		}
   394  	}
   395  	type x struct{}
   396  	out := protoimpl.TypeBuilder{
   397  		File: protoimpl.DescBuilder{
   398  			GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
   399  			RawDescriptor: file_deps_proto_deps_proto_rawDesc,
   400  			NumEnums:      1,
   401  			NumMessages:   3,
   402  			NumExtensions: 0,
   403  			NumServices:   0,
   404  		},
   405  		GoTypes:           file_deps_proto_deps_proto_goTypes,
   406  		DependencyIndexes: file_deps_proto_deps_proto_depIdxs,
   407  		EnumInfos:         file_deps_proto_deps_proto_enumTypes,
   408  		MessageInfos:      file_deps_proto_deps_proto_msgTypes,
   409  	}.Build()
   410  	File_deps_proto_deps_proto = out.File
   411  	file_deps_proto_deps_proto_rawDesc = nil
   412  	file_deps_proto_deps_proto_goTypes = nil
   413  	file_deps_proto_deps_proto_depIdxs = nil
   414  }
   415  

View as plain text