go.chromium.org/luci@v0.0.0-20240309015107-7cdc2e660f33/bisection/proto/v1/bugs.pb.go (about)

     1  // Copyright 2023 The LUCI Authors.
     2  //
     3  // Licensed under the Apache License, Version 2.0 (the "License");
     4  // you may not use this file except in compliance with the License.
     5  // You may obtain a copy of the License at
     6  //
     7  //      http://www.apache.org/licenses/LICENSE-2.0
     8  //
     9  // Unless required by applicable law or agreed to in writing, software
    10  // distributed under the License is distributed on an "AS IS" BASIS,
    11  // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
    12  // See the License for the specific language governing permissions and
    13  // limitations under the License.
    14  
    15  // Code generated by protoc-gen-go. DO NOT EDIT.
    16  // versions:
    17  // 	protoc-gen-go v1.31.0
    18  // 	protoc        v3.21.7
    19  // source: go.chromium.org/luci/bisection/proto/v1/bugs.proto
    20  
    21  package bisectionpb
    22  
    23  import (
    24  	protoreflect "google.golang.org/protobuf/reflect/protoreflect"
    25  	protoimpl "google.golang.org/protobuf/runtime/protoimpl"
    26  	reflect "reflect"
    27  	sync "sync"
    28  )
    29  
    30  const (
    31  	// Verify that this generated code is sufficiently up-to-date.
    32  	_ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
    33  	// Verify that runtime/protoimpl is sufficiently up-to-date.
    34  	_ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
    35  )
    36  
    37  // Information about a bug associated with a failure.
    38  type BugInfo struct {
    39  	state         protoimpl.MessageState
    40  	sizeCache     protoimpl.SizeCache
    41  	unknownFields protoimpl.UnknownFields
    42  
    43  	// Types that are assignable to Bug:
    44  	//
    45  	//	*BugInfo_MonorailBugInfo
    46  	//	*BugInfo_BuganizerBugInfo
    47  	Bug isBugInfo_Bug `protobuf_oneof:"bug"`
    48  }
    49  
    50  func (x *BugInfo) Reset() {
    51  	*x = BugInfo{}
    52  	if protoimpl.UnsafeEnabled {
    53  		mi := &file_go_chromium_org_luci_bisection_proto_v1_bugs_proto_msgTypes[0]
    54  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
    55  		ms.StoreMessageInfo(mi)
    56  	}
    57  }
    58  
    59  func (x *BugInfo) String() string {
    60  	return protoimpl.X.MessageStringOf(x)
    61  }
    62  
    63  func (*BugInfo) ProtoMessage() {}
    64  
    65  func (x *BugInfo) ProtoReflect() protoreflect.Message {
    66  	mi := &file_go_chromium_org_luci_bisection_proto_v1_bugs_proto_msgTypes[0]
    67  	if protoimpl.UnsafeEnabled && x != nil {
    68  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
    69  		if ms.LoadMessageInfo() == nil {
    70  			ms.StoreMessageInfo(mi)
    71  		}
    72  		return ms
    73  	}
    74  	return mi.MessageOf(x)
    75  }
    76  
    77  // Deprecated: Use BugInfo.ProtoReflect.Descriptor instead.
    78  func (*BugInfo) Descriptor() ([]byte, []int) {
    79  	return file_go_chromium_org_luci_bisection_proto_v1_bugs_proto_rawDescGZIP(), []int{0}
    80  }
    81  
    82  func (m *BugInfo) GetBug() isBugInfo_Bug {
    83  	if m != nil {
    84  		return m.Bug
    85  	}
    86  	return nil
    87  }
    88  
    89  func (x *BugInfo) GetMonorailBugInfo() *MonorailBugInfo {
    90  	if x, ok := x.GetBug().(*BugInfo_MonorailBugInfo); ok {
    91  		return x.MonorailBugInfo
    92  	}
    93  	return nil
    94  }
    95  
    96  func (x *BugInfo) GetBuganizerBugInfo() *BuganizerBugInfo {
    97  	if x, ok := x.GetBug().(*BugInfo_BuganizerBugInfo); ok {
    98  		return x.BuganizerBugInfo
    99  	}
   100  	return nil
   101  }
   102  
   103  type isBugInfo_Bug interface {
   104  	isBugInfo_Bug()
   105  }
   106  
   107  type BugInfo_MonorailBugInfo struct {
   108  	MonorailBugInfo *MonorailBugInfo `protobuf:"bytes,1,opt,name=monorail_bug_info,json=monorailBugInfo,proto3,oneof"`
   109  }
   110  
   111  type BugInfo_BuganizerBugInfo struct {
   112  	BuganizerBugInfo *BuganizerBugInfo `protobuf:"bytes,2,opt,name=buganizer_bug_info,json=buganizerBugInfo,proto3,oneof"`
   113  }
   114  
   115  func (*BugInfo_MonorailBugInfo) isBugInfo_Bug() {}
   116  
   117  func (*BugInfo_BuganizerBugInfo) isBugInfo_Bug() {}
   118  
   119  type MonorailBugInfo struct {
   120  	state         protoimpl.MessageState
   121  	sizeCache     protoimpl.SizeCache
   122  	unknownFields protoimpl.UnknownFields
   123  
   124  	// The project of the bug, e.g. "chromium".
   125  	Project string `protobuf:"bytes,1,opt,name=project,proto3" json:"project,omitempty"`
   126  	// Monorail bug ID.
   127  	BugId int32 `protobuf:"varint,2,opt,name=bug_id,json=bugId,proto3" json:"bug_id,omitempty"`
   128  }
   129  
   130  func (x *MonorailBugInfo) Reset() {
   131  	*x = MonorailBugInfo{}
   132  	if protoimpl.UnsafeEnabled {
   133  		mi := &file_go_chromium_org_luci_bisection_proto_v1_bugs_proto_msgTypes[1]
   134  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
   135  		ms.StoreMessageInfo(mi)
   136  	}
   137  }
   138  
   139  func (x *MonorailBugInfo) String() string {
   140  	return protoimpl.X.MessageStringOf(x)
   141  }
   142  
   143  func (*MonorailBugInfo) ProtoMessage() {}
   144  
   145  func (x *MonorailBugInfo) ProtoReflect() protoreflect.Message {
   146  	mi := &file_go_chromium_org_luci_bisection_proto_v1_bugs_proto_msgTypes[1]
   147  	if protoimpl.UnsafeEnabled && x != nil {
   148  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
   149  		if ms.LoadMessageInfo() == nil {
   150  			ms.StoreMessageInfo(mi)
   151  		}
   152  		return ms
   153  	}
   154  	return mi.MessageOf(x)
   155  }
   156  
   157  // Deprecated: Use MonorailBugInfo.ProtoReflect.Descriptor instead.
   158  func (*MonorailBugInfo) Descriptor() ([]byte, []int) {
   159  	return file_go_chromium_org_luci_bisection_proto_v1_bugs_proto_rawDescGZIP(), []int{1}
   160  }
   161  
   162  func (x *MonorailBugInfo) GetProject() string {
   163  	if x != nil {
   164  		return x.Project
   165  	}
   166  	return ""
   167  }
   168  
   169  func (x *MonorailBugInfo) GetBugId() int32 {
   170  	if x != nil {
   171  		return x.BugId
   172  	}
   173  	return 0
   174  }
   175  
   176  type BuganizerBugInfo struct {
   177  	state         protoimpl.MessageState
   178  	sizeCache     protoimpl.SizeCache
   179  	unknownFields protoimpl.UnknownFields
   180  
   181  	// Buganizer bug ID.
   182  	BugId int64 `protobuf:"varint,1,opt,name=bug_id,json=bugId,proto3" json:"bug_id,omitempty"`
   183  }
   184  
   185  func (x *BuganizerBugInfo) Reset() {
   186  	*x = BuganizerBugInfo{}
   187  	if protoimpl.UnsafeEnabled {
   188  		mi := &file_go_chromium_org_luci_bisection_proto_v1_bugs_proto_msgTypes[2]
   189  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
   190  		ms.StoreMessageInfo(mi)
   191  	}
   192  }
   193  
   194  func (x *BuganizerBugInfo) String() string {
   195  	return protoimpl.X.MessageStringOf(x)
   196  }
   197  
   198  func (*BuganizerBugInfo) ProtoMessage() {}
   199  
   200  func (x *BuganizerBugInfo) ProtoReflect() protoreflect.Message {
   201  	mi := &file_go_chromium_org_luci_bisection_proto_v1_bugs_proto_msgTypes[2]
   202  	if protoimpl.UnsafeEnabled && x != nil {
   203  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
   204  		if ms.LoadMessageInfo() == nil {
   205  			ms.StoreMessageInfo(mi)
   206  		}
   207  		return ms
   208  	}
   209  	return mi.MessageOf(x)
   210  }
   211  
   212  // Deprecated: Use BuganizerBugInfo.ProtoReflect.Descriptor instead.
   213  func (*BuganizerBugInfo) Descriptor() ([]byte, []int) {
   214  	return file_go_chromium_org_luci_bisection_proto_v1_bugs_proto_rawDescGZIP(), []int{2}
   215  }
   216  
   217  func (x *BuganizerBugInfo) GetBugId() int64 {
   218  	if x != nil {
   219  		return x.BugId
   220  	}
   221  	return 0
   222  }
   223  
   224  var File_go_chromium_org_luci_bisection_proto_v1_bugs_proto protoreflect.FileDescriptor
   225  
   226  var file_go_chromium_org_luci_bisection_proto_v1_bugs_proto_rawDesc = []byte{
   227  	0x0a, 0x32, 0x67, 0x6f, 0x2e, 0x63, 0x68, 0x72, 0x6f, 0x6d, 0x69, 0x75, 0x6d, 0x2e, 0x6f, 0x72,
   228  	0x67, 0x2f, 0x6c, 0x75, 0x63, 0x69, 0x2f, 0x62, 0x69, 0x73, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e,
   229  	0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x76, 0x31, 0x2f, 0x62, 0x75, 0x67, 0x73, 0x2e, 0x70,
   230  	0x72, 0x6f, 0x74, 0x6f, 0x12, 0x11, 0x6c, 0x75, 0x63, 0x69, 0x2e, 0x62, 0x69, 0x73, 0x65, 0x63,
   231  	0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x76, 0x31, 0x22, 0xb7, 0x01, 0x0a, 0x07, 0x42, 0x75, 0x67, 0x49,
   232  	0x6e, 0x66, 0x6f, 0x12, 0x50, 0x0a, 0x11, 0x6d, 0x6f, 0x6e, 0x6f, 0x72, 0x61, 0x69, 0x6c, 0x5f,
   233  	0x62, 0x75, 0x67, 0x5f, 0x69, 0x6e, 0x66, 0x6f, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x22,
   234  	0x2e, 0x6c, 0x75, 0x63, 0x69, 0x2e, 0x62, 0x69, 0x73, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x2e,
   235  	0x76, 0x31, 0x2e, 0x4d, 0x6f, 0x6e, 0x6f, 0x72, 0x61, 0x69, 0x6c, 0x42, 0x75, 0x67, 0x49, 0x6e,
   236  	0x66, 0x6f, 0x48, 0x00, 0x52, 0x0f, 0x6d, 0x6f, 0x6e, 0x6f, 0x72, 0x61, 0x69, 0x6c, 0x42, 0x75,
   237  	0x67, 0x49, 0x6e, 0x66, 0x6f, 0x12, 0x53, 0x0a, 0x12, 0x62, 0x75, 0x67, 0x61, 0x6e, 0x69, 0x7a,
   238  	0x65, 0x72, 0x5f, 0x62, 0x75, 0x67, 0x5f, 0x69, 0x6e, 0x66, 0x6f, 0x18, 0x02, 0x20, 0x01, 0x28,
   239  	0x0b, 0x32, 0x23, 0x2e, 0x6c, 0x75, 0x63, 0x69, 0x2e, 0x62, 0x69, 0x73, 0x65, 0x63, 0x74, 0x69,
   240  	0x6f, 0x6e, 0x2e, 0x76, 0x31, 0x2e, 0x42, 0x75, 0x67, 0x61, 0x6e, 0x69, 0x7a, 0x65, 0x72, 0x42,
   241  	0x75, 0x67, 0x49, 0x6e, 0x66, 0x6f, 0x48, 0x00, 0x52, 0x10, 0x62, 0x75, 0x67, 0x61, 0x6e, 0x69,
   242  	0x7a, 0x65, 0x72, 0x42, 0x75, 0x67, 0x49, 0x6e, 0x66, 0x6f, 0x42, 0x05, 0x0a, 0x03, 0x62, 0x75,
   243  	0x67, 0x22, 0x42, 0x0a, 0x0f, 0x4d, 0x6f, 0x6e, 0x6f, 0x72, 0x61, 0x69, 0x6c, 0x42, 0x75, 0x67,
   244  	0x49, 0x6e, 0x66, 0x6f, 0x12, 0x18, 0x0a, 0x07, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x18,
   245  	0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x12, 0x15,
   246  	0x0a, 0x06, 0x62, 0x75, 0x67, 0x5f, 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x05, 0x52, 0x05,
   247  	0x62, 0x75, 0x67, 0x49, 0x64, 0x22, 0x29, 0x0a, 0x10, 0x42, 0x75, 0x67, 0x61, 0x6e, 0x69, 0x7a,
   248  	0x65, 0x72, 0x42, 0x75, 0x67, 0x49, 0x6e, 0x66, 0x6f, 0x12, 0x15, 0x0a, 0x06, 0x62, 0x75, 0x67,
   249  	0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x03, 0x52, 0x05, 0x62, 0x75, 0x67, 0x49, 0x64,
   250  	0x42, 0x35, 0x5a, 0x33, 0x67, 0x6f, 0x2e, 0x63, 0x68, 0x72, 0x6f, 0x6d, 0x69, 0x75, 0x6d, 0x2e,
   251  	0x6f, 0x72, 0x67, 0x2f, 0x6c, 0x75, 0x63, 0x69, 0x2f, 0x62, 0x69, 0x73, 0x65, 0x63, 0x74, 0x69,
   252  	0x6f, 0x6e, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x76, 0x31, 0x3b, 0x62, 0x69, 0x73, 0x65,
   253  	0x63, 0x74, 0x69, 0x6f, 0x6e, 0x70, 0x62, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
   254  }
   255  
   256  var (
   257  	file_go_chromium_org_luci_bisection_proto_v1_bugs_proto_rawDescOnce sync.Once
   258  	file_go_chromium_org_luci_bisection_proto_v1_bugs_proto_rawDescData = file_go_chromium_org_luci_bisection_proto_v1_bugs_proto_rawDesc
   259  )
   260  
   261  func file_go_chromium_org_luci_bisection_proto_v1_bugs_proto_rawDescGZIP() []byte {
   262  	file_go_chromium_org_luci_bisection_proto_v1_bugs_proto_rawDescOnce.Do(func() {
   263  		file_go_chromium_org_luci_bisection_proto_v1_bugs_proto_rawDescData = protoimpl.X.CompressGZIP(file_go_chromium_org_luci_bisection_proto_v1_bugs_proto_rawDescData)
   264  	})
   265  	return file_go_chromium_org_luci_bisection_proto_v1_bugs_proto_rawDescData
   266  }
   267  
   268  var file_go_chromium_org_luci_bisection_proto_v1_bugs_proto_msgTypes = make([]protoimpl.MessageInfo, 3)
   269  var file_go_chromium_org_luci_bisection_proto_v1_bugs_proto_goTypes = []interface{}{
   270  	(*BugInfo)(nil),          // 0: luci.bisection.v1.BugInfo
   271  	(*MonorailBugInfo)(nil),  // 1: luci.bisection.v1.MonorailBugInfo
   272  	(*BuganizerBugInfo)(nil), // 2: luci.bisection.v1.BuganizerBugInfo
   273  }
   274  var file_go_chromium_org_luci_bisection_proto_v1_bugs_proto_depIdxs = []int32{
   275  	1, // 0: luci.bisection.v1.BugInfo.monorail_bug_info:type_name -> luci.bisection.v1.MonorailBugInfo
   276  	2, // 1: luci.bisection.v1.BugInfo.buganizer_bug_info:type_name -> luci.bisection.v1.BuganizerBugInfo
   277  	2, // [2:2] is the sub-list for method output_type
   278  	2, // [2:2] is the sub-list for method input_type
   279  	2, // [2:2] is the sub-list for extension type_name
   280  	2, // [2:2] is the sub-list for extension extendee
   281  	0, // [0:2] is the sub-list for field type_name
   282  }
   283  
   284  func init() { file_go_chromium_org_luci_bisection_proto_v1_bugs_proto_init() }
   285  func file_go_chromium_org_luci_bisection_proto_v1_bugs_proto_init() {
   286  	if File_go_chromium_org_luci_bisection_proto_v1_bugs_proto != nil {
   287  		return
   288  	}
   289  	if !protoimpl.UnsafeEnabled {
   290  		file_go_chromium_org_luci_bisection_proto_v1_bugs_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
   291  			switch v := v.(*BugInfo); i {
   292  			case 0:
   293  				return &v.state
   294  			case 1:
   295  				return &v.sizeCache
   296  			case 2:
   297  				return &v.unknownFields
   298  			default:
   299  				return nil
   300  			}
   301  		}
   302  		file_go_chromium_org_luci_bisection_proto_v1_bugs_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {
   303  			switch v := v.(*MonorailBugInfo); i {
   304  			case 0:
   305  				return &v.state
   306  			case 1:
   307  				return &v.sizeCache
   308  			case 2:
   309  				return &v.unknownFields
   310  			default:
   311  				return nil
   312  			}
   313  		}
   314  		file_go_chromium_org_luci_bisection_proto_v1_bugs_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} {
   315  			switch v := v.(*BuganizerBugInfo); i {
   316  			case 0:
   317  				return &v.state
   318  			case 1:
   319  				return &v.sizeCache
   320  			case 2:
   321  				return &v.unknownFields
   322  			default:
   323  				return nil
   324  			}
   325  		}
   326  	}
   327  	file_go_chromium_org_luci_bisection_proto_v1_bugs_proto_msgTypes[0].OneofWrappers = []interface{}{
   328  		(*BugInfo_MonorailBugInfo)(nil),
   329  		(*BugInfo_BuganizerBugInfo)(nil),
   330  	}
   331  	type x struct{}
   332  	out := protoimpl.TypeBuilder{
   333  		File: protoimpl.DescBuilder{
   334  			GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
   335  			RawDescriptor: file_go_chromium_org_luci_bisection_proto_v1_bugs_proto_rawDesc,
   336  			NumEnums:      0,
   337  			NumMessages:   3,
   338  			NumExtensions: 0,
   339  			NumServices:   0,
   340  		},
   341  		GoTypes:           file_go_chromium_org_luci_bisection_proto_v1_bugs_proto_goTypes,
   342  		DependencyIndexes: file_go_chromium_org_luci_bisection_proto_v1_bugs_proto_depIdxs,
   343  		MessageInfos:      file_go_chromium_org_luci_bisection_proto_v1_bugs_proto_msgTypes,
   344  	}.Build()
   345  	File_go_chromium_org_luci_bisection_proto_v1_bugs_proto = out.File
   346  	file_go_chromium_org_luci_bisection_proto_v1_bugs_proto_rawDesc = nil
   347  	file_go_chromium_org_luci_bisection_proto_v1_bugs_proto_goTypes = nil
   348  	file_go_chromium_org_luci_bisection_proto_v1_bugs_proto_depIdxs = nil
   349  }