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

     1  // Copyright 2022 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/config/config.proto
    20  
    21  package configpb
    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  // Config is the service-wide configuration data for LUCI Bisection
    38  // TODO(beining): Remove this global config, use the project_config.proto for project-specific config.
    39  type Config struct {
    40  	state         protoimpl.MessageState
    41  	sizeCache     protoimpl.SizeCache
    42  	unknownFields protoimpl.UnknownFields
    43  
    44  	// Configuration data for Gerrit integration for compile failures.
    45  	// TODO (nqmtuan): Rename this to make clear that this is only used for
    46  	// compile failures.
    47  	GerritConfig *GerritConfig `protobuf:"bytes,1,opt,name=gerrit_config,json=gerritConfig,proto3" json:"gerrit_config,omitempty"`
    48  	// Configuration data for compile failure analysis.
    49  	// TODO (nqmtuan): Rename this to CompileFailureAnalysisConfig.
    50  	AnalysisConfig *AnalysisConfig `protobuf:"bytes,2,opt,name=analysis_config,json=analysisConfig,proto3" json:"analysis_config,omitempty"`
    51  	// Configuration data for test failure analysis.
    52  	TestAnalysisConfig *TestAnalysisConfig `protobuf:"bytes,3,opt,name=test_analysis_config,json=testAnalysisConfig,proto3" json:"test_analysis_config,omitempty"`
    53  }
    54  
    55  func (x *Config) Reset() {
    56  	*x = Config{}
    57  	if protoimpl.UnsafeEnabled {
    58  		mi := &file_go_chromium_org_luci_bisection_proto_config_config_proto_msgTypes[0]
    59  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
    60  		ms.StoreMessageInfo(mi)
    61  	}
    62  }
    63  
    64  func (x *Config) String() string {
    65  	return protoimpl.X.MessageStringOf(x)
    66  }
    67  
    68  func (*Config) ProtoMessage() {}
    69  
    70  func (x *Config) ProtoReflect() protoreflect.Message {
    71  	mi := &file_go_chromium_org_luci_bisection_proto_config_config_proto_msgTypes[0]
    72  	if protoimpl.UnsafeEnabled && x != nil {
    73  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
    74  		if ms.LoadMessageInfo() == nil {
    75  			ms.StoreMessageInfo(mi)
    76  		}
    77  		return ms
    78  	}
    79  	return mi.MessageOf(x)
    80  }
    81  
    82  // Deprecated: Use Config.ProtoReflect.Descriptor instead.
    83  func (*Config) Descriptor() ([]byte, []int) {
    84  	return file_go_chromium_org_luci_bisection_proto_config_config_proto_rawDescGZIP(), []int{0}
    85  }
    86  
    87  func (x *Config) GetGerritConfig() *GerritConfig {
    88  	if x != nil {
    89  		return x.GerritConfig
    90  	}
    91  	return nil
    92  }
    93  
    94  func (x *Config) GetAnalysisConfig() *AnalysisConfig {
    95  	if x != nil {
    96  		return x.AnalysisConfig
    97  	}
    98  	return nil
    99  }
   100  
   101  func (x *Config) GetTestAnalysisConfig() *TestAnalysisConfig {
   102  	if x != nil {
   103  		return x.TestAnalysisConfig
   104  	}
   105  	return nil
   106  }
   107  
   108  // GerritConfig is the configuration data for running analysis
   109  type AnalysisConfig struct {
   110  	state         protoimpl.MessageState
   111  	sizeCache     protoimpl.SizeCache
   112  	unknownFields protoimpl.UnknownFields
   113  
   114  	// Whether we should run culprit verification
   115  	CulpritVerificationEnabled bool `protobuf:"varint,1,opt,name=culprit_verification_enabled,json=culpritVerificationEnabled,proto3" json:"culprit_verification_enabled,omitempty"`
   116  	// Whether we should run nthsection analysis
   117  	NthsectionEnabled bool `protobuf:"varint,2,opt,name=nthsection_enabled,json=nthsectionEnabled,proto3" json:"nthsection_enabled,omitempty"`
   118  }
   119  
   120  func (x *AnalysisConfig) Reset() {
   121  	*x = AnalysisConfig{}
   122  	if protoimpl.UnsafeEnabled {
   123  		mi := &file_go_chromium_org_luci_bisection_proto_config_config_proto_msgTypes[1]
   124  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
   125  		ms.StoreMessageInfo(mi)
   126  	}
   127  }
   128  
   129  func (x *AnalysisConfig) String() string {
   130  	return protoimpl.X.MessageStringOf(x)
   131  }
   132  
   133  func (*AnalysisConfig) ProtoMessage() {}
   134  
   135  func (x *AnalysisConfig) ProtoReflect() protoreflect.Message {
   136  	mi := &file_go_chromium_org_luci_bisection_proto_config_config_proto_msgTypes[1]
   137  	if protoimpl.UnsafeEnabled && x != nil {
   138  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
   139  		if ms.LoadMessageInfo() == nil {
   140  			ms.StoreMessageInfo(mi)
   141  		}
   142  		return ms
   143  	}
   144  	return mi.MessageOf(x)
   145  }
   146  
   147  // Deprecated: Use AnalysisConfig.ProtoReflect.Descriptor instead.
   148  func (*AnalysisConfig) Descriptor() ([]byte, []int) {
   149  	return file_go_chromium_org_luci_bisection_proto_config_config_proto_rawDescGZIP(), []int{1}
   150  }
   151  
   152  func (x *AnalysisConfig) GetCulpritVerificationEnabled() bool {
   153  	if x != nil {
   154  		return x.CulpritVerificationEnabled
   155  	}
   156  	return false
   157  }
   158  
   159  func (x *AnalysisConfig) GetNthsectionEnabled() bool {
   160  	if x != nil {
   161  		return x.NthsectionEnabled
   162  	}
   163  	return false
   164  }
   165  
   166  var File_go_chromium_org_luci_bisection_proto_config_config_proto protoreflect.FileDescriptor
   167  
   168  var file_go_chromium_org_luci_bisection_proto_config_config_proto_rawDesc = []byte{
   169  	0x0a, 0x38, 0x67, 0x6f, 0x2e, 0x63, 0x68, 0x72, 0x6f, 0x6d, 0x69, 0x75, 0x6d, 0x2e, 0x6f, 0x72,
   170  	0x67, 0x2f, 0x6c, 0x75, 0x63, 0x69, 0x2f, 0x62, 0x69, 0x73, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e,
   171  	0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x2f, 0x63, 0x6f,
   172  	0x6e, 0x66, 0x69, 0x67, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x15, 0x6c, 0x75, 0x63, 0x69,
   173  	0x2e, 0x62, 0x69, 0x73, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x63, 0x6f, 0x6e, 0x66, 0x69,
   174  	0x67, 0x1a, 0x40, 0x67, 0x6f, 0x2e, 0x63, 0x68, 0x72, 0x6f, 0x6d, 0x69, 0x75, 0x6d, 0x2e, 0x6f,
   175  	0x72, 0x67, 0x2f, 0x6c, 0x75, 0x63, 0x69, 0x2f, 0x62, 0x69, 0x73, 0x65, 0x63, 0x74, 0x69, 0x6f,
   176  	0x6e, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x2f, 0x70,
   177  	0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x5f, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x2e, 0x70, 0x72,
   178  	0x6f, 0x74, 0x6f, 0x22, 0xff, 0x01, 0x0a, 0x06, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x12, 0x48,
   179  	0x0a, 0x0d, 0x67, 0x65, 0x72, 0x72, 0x69, 0x74, 0x5f, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x18,
   180  	0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x23, 0x2e, 0x6c, 0x75, 0x63, 0x69, 0x2e, 0x62, 0x69, 0x73,
   181  	0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x2e, 0x47, 0x65,
   182  	0x72, 0x72, 0x69, 0x74, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x52, 0x0c, 0x67, 0x65, 0x72, 0x72,
   183  	0x69, 0x74, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x12, 0x4e, 0x0a, 0x0f, 0x61, 0x6e, 0x61, 0x6c,
   184  	0x79, 0x73, 0x69, 0x73, 0x5f, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x18, 0x02, 0x20, 0x01, 0x28,
   185  	0x0b, 0x32, 0x25, 0x2e, 0x6c, 0x75, 0x63, 0x69, 0x2e, 0x62, 0x69, 0x73, 0x65, 0x63, 0x74, 0x69,
   186  	0x6f, 0x6e, 0x2e, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x2e, 0x41, 0x6e, 0x61, 0x6c, 0x79, 0x73,
   187  	0x69, 0x73, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x52, 0x0e, 0x61, 0x6e, 0x61, 0x6c, 0x79, 0x73,
   188  	0x69, 0x73, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x12, 0x5b, 0x0a, 0x14, 0x74, 0x65, 0x73, 0x74,
   189  	0x5f, 0x61, 0x6e, 0x61, 0x6c, 0x79, 0x73, 0x69, 0x73, 0x5f, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67,
   190  	0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x29, 0x2e, 0x6c, 0x75, 0x63, 0x69, 0x2e, 0x62, 0x69,
   191  	0x73, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x2e, 0x54,
   192  	0x65, 0x73, 0x74, 0x41, 0x6e, 0x61, 0x6c, 0x79, 0x73, 0x69, 0x73, 0x43, 0x6f, 0x6e, 0x66, 0x69,
   193  	0x67, 0x52, 0x12, 0x74, 0x65, 0x73, 0x74, 0x41, 0x6e, 0x61, 0x6c, 0x79, 0x73, 0x69, 0x73, 0x43,
   194  	0x6f, 0x6e, 0x66, 0x69, 0x67, 0x22, 0x81, 0x01, 0x0a, 0x0e, 0x41, 0x6e, 0x61, 0x6c, 0x79, 0x73,
   195  	0x69, 0x73, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x12, 0x40, 0x0a, 0x1c, 0x63, 0x75, 0x6c, 0x70,
   196  	0x72, 0x69, 0x74, 0x5f, 0x76, 0x65, 0x72, 0x69, 0x66, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e,
   197  	0x5f, 0x65, 0x6e, 0x61, 0x62, 0x6c, 0x65, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x08, 0x52, 0x1a,
   198  	0x63, 0x75, 0x6c, 0x70, 0x72, 0x69, 0x74, 0x56, 0x65, 0x72, 0x69, 0x66, 0x69, 0x63, 0x61, 0x74,
   199  	0x69, 0x6f, 0x6e, 0x45, 0x6e, 0x61, 0x62, 0x6c, 0x65, 0x64, 0x12, 0x2d, 0x0a, 0x12, 0x6e, 0x74,
   200  	0x68, 0x73, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x65, 0x6e, 0x61, 0x62, 0x6c, 0x65, 0x64,
   201  	0x18, 0x02, 0x20, 0x01, 0x28, 0x08, 0x52, 0x11, 0x6e, 0x74, 0x68, 0x73, 0x65, 0x63, 0x74, 0x69,
   202  	0x6f, 0x6e, 0x45, 0x6e, 0x61, 0x62, 0x6c, 0x65, 0x64, 0x42, 0x36, 0x5a, 0x34, 0x67, 0x6f, 0x2e,
   203  	0x63, 0x68, 0x72, 0x6f, 0x6d, 0x69, 0x75, 0x6d, 0x2e, 0x6f, 0x72, 0x67, 0x2f, 0x6c, 0x75, 0x63,
   204  	0x69, 0x2f, 0x62, 0x69, 0x73, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x2f, 0x70, 0x72, 0x6f, 0x74,
   205  	0x6f, 0x2f, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x3b, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x70,
   206  	0x62, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
   207  }
   208  
   209  var (
   210  	file_go_chromium_org_luci_bisection_proto_config_config_proto_rawDescOnce sync.Once
   211  	file_go_chromium_org_luci_bisection_proto_config_config_proto_rawDescData = file_go_chromium_org_luci_bisection_proto_config_config_proto_rawDesc
   212  )
   213  
   214  func file_go_chromium_org_luci_bisection_proto_config_config_proto_rawDescGZIP() []byte {
   215  	file_go_chromium_org_luci_bisection_proto_config_config_proto_rawDescOnce.Do(func() {
   216  		file_go_chromium_org_luci_bisection_proto_config_config_proto_rawDescData = protoimpl.X.CompressGZIP(file_go_chromium_org_luci_bisection_proto_config_config_proto_rawDescData)
   217  	})
   218  	return file_go_chromium_org_luci_bisection_proto_config_config_proto_rawDescData
   219  }
   220  
   221  var file_go_chromium_org_luci_bisection_proto_config_config_proto_msgTypes = make([]protoimpl.MessageInfo, 2)
   222  var file_go_chromium_org_luci_bisection_proto_config_config_proto_goTypes = []interface{}{
   223  	(*Config)(nil),             // 0: luci.bisection.config.Config
   224  	(*AnalysisConfig)(nil),     // 1: luci.bisection.config.AnalysisConfig
   225  	(*GerritConfig)(nil),       // 2: luci.bisection.config.GerritConfig
   226  	(*TestAnalysisConfig)(nil), // 3: luci.bisection.config.TestAnalysisConfig
   227  }
   228  var file_go_chromium_org_luci_bisection_proto_config_config_proto_depIdxs = []int32{
   229  	2, // 0: luci.bisection.config.Config.gerrit_config:type_name -> luci.bisection.config.GerritConfig
   230  	1, // 1: luci.bisection.config.Config.analysis_config:type_name -> luci.bisection.config.AnalysisConfig
   231  	3, // 2: luci.bisection.config.Config.test_analysis_config:type_name -> luci.bisection.config.TestAnalysisConfig
   232  	3, // [3:3] is the sub-list for method output_type
   233  	3, // [3:3] is the sub-list for method input_type
   234  	3, // [3:3] is the sub-list for extension type_name
   235  	3, // [3:3] is the sub-list for extension extendee
   236  	0, // [0:3] is the sub-list for field type_name
   237  }
   238  
   239  func init() { file_go_chromium_org_luci_bisection_proto_config_config_proto_init() }
   240  func file_go_chromium_org_luci_bisection_proto_config_config_proto_init() {
   241  	if File_go_chromium_org_luci_bisection_proto_config_config_proto != nil {
   242  		return
   243  	}
   244  	file_go_chromium_org_luci_bisection_proto_config_project_config_proto_init()
   245  	if !protoimpl.UnsafeEnabled {
   246  		file_go_chromium_org_luci_bisection_proto_config_config_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
   247  			switch v := v.(*Config); i {
   248  			case 0:
   249  				return &v.state
   250  			case 1:
   251  				return &v.sizeCache
   252  			case 2:
   253  				return &v.unknownFields
   254  			default:
   255  				return nil
   256  			}
   257  		}
   258  		file_go_chromium_org_luci_bisection_proto_config_config_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {
   259  			switch v := v.(*AnalysisConfig); i {
   260  			case 0:
   261  				return &v.state
   262  			case 1:
   263  				return &v.sizeCache
   264  			case 2:
   265  				return &v.unknownFields
   266  			default:
   267  				return nil
   268  			}
   269  		}
   270  	}
   271  	type x struct{}
   272  	out := protoimpl.TypeBuilder{
   273  		File: protoimpl.DescBuilder{
   274  			GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
   275  			RawDescriptor: file_go_chromium_org_luci_bisection_proto_config_config_proto_rawDesc,
   276  			NumEnums:      0,
   277  			NumMessages:   2,
   278  			NumExtensions: 0,
   279  			NumServices:   0,
   280  		},
   281  		GoTypes:           file_go_chromium_org_luci_bisection_proto_config_config_proto_goTypes,
   282  		DependencyIndexes: file_go_chromium_org_luci_bisection_proto_config_config_proto_depIdxs,
   283  		MessageInfos:      file_go_chromium_org_luci_bisection_proto_config_config_proto_msgTypes,
   284  	}.Build()
   285  	File_go_chromium_org_luci_bisection_proto_config_config_proto = out.File
   286  	file_go_chromium_org_luci_bisection_proto_config_config_proto_rawDesc = nil
   287  	file_go_chromium_org_luci_bisection_proto_config_config_proto_goTypes = nil
   288  	file_go_chromium_org_luci_bisection_proto_config_config_proto_depIdxs = nil
   289  }