go.chromium.org/luci@v0.0.0-20240309015107-7cdc2e660f33/analysis/proto/analyzedtestvariant/predicate.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/analysis/proto/analyzedtestvariant/predicate.proto
    20  
    21  package atvpb
    22  
    23  import (
    24  	v1 "go.chromium.org/luci/analysis/proto/v1"
    25  	protoreflect "google.golang.org/protobuf/reflect/protoreflect"
    26  	protoimpl "google.golang.org/protobuf/runtime/protoimpl"
    27  	reflect "reflect"
    28  	sync "sync"
    29  )
    30  
    31  const (
    32  	// Verify that this generated code is sufficiently up-to-date.
    33  	_ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
    34  	// Verify that runtime/protoimpl is sufficiently up-to-date.
    35  	_ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
    36  )
    37  
    38  // Deprecated. Retained only for config compatibility.
    39  // Can be deleted once chromium-m120 / chrome-m120 and all prior
    40  // versions have had their LUCI configs deleted.
    41  type Status int32
    42  
    43  const (
    44  	Status_STATUS_UNSPECIFIED      Status = 0
    45  	Status_HAS_UNEXPECTED_RESULTS  Status = 5
    46  	Status_FLAKY                   Status = 10
    47  	Status_CONSISTENTLY_UNEXPECTED Status = 20
    48  	Status_CONSISTENTLY_EXPECTED   Status = 30
    49  	Status_NO_NEW_RESULTS          Status = 40
    50  )
    51  
    52  // Enum value maps for Status.
    53  var (
    54  	Status_name = map[int32]string{
    55  		0:  "STATUS_UNSPECIFIED",
    56  		5:  "HAS_UNEXPECTED_RESULTS",
    57  		10: "FLAKY",
    58  		20: "CONSISTENTLY_UNEXPECTED",
    59  		30: "CONSISTENTLY_EXPECTED",
    60  		40: "NO_NEW_RESULTS",
    61  	}
    62  	Status_value = map[string]int32{
    63  		"STATUS_UNSPECIFIED":      0,
    64  		"HAS_UNEXPECTED_RESULTS":  5,
    65  		"FLAKY":                   10,
    66  		"CONSISTENTLY_UNEXPECTED": 20,
    67  		"CONSISTENTLY_EXPECTED":   30,
    68  		"NO_NEW_RESULTS":          40,
    69  	}
    70  )
    71  
    72  func (x Status) Enum() *Status {
    73  	p := new(Status)
    74  	*p = x
    75  	return p
    76  }
    77  
    78  func (x Status) String() string {
    79  	return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
    80  }
    81  
    82  func (Status) Descriptor() protoreflect.EnumDescriptor {
    83  	return file_go_chromium_org_luci_analysis_proto_analyzedtestvariant_predicate_proto_enumTypes[0].Descriptor()
    84  }
    85  
    86  func (Status) Type() protoreflect.EnumType {
    87  	return &file_go_chromium_org_luci_analysis_proto_analyzedtestvariant_predicate_proto_enumTypes[0]
    88  }
    89  
    90  func (x Status) Number() protoreflect.EnumNumber {
    91  	return protoreflect.EnumNumber(x)
    92  }
    93  
    94  // Deprecated: Use Status.Descriptor instead.
    95  func (Status) EnumDescriptor() ([]byte, []int) {
    96  	return file_go_chromium_org_luci_analysis_proto_analyzedtestvariant_predicate_proto_rawDescGZIP(), []int{0}
    97  }
    98  
    99  // Deprecated. Retained only for config compatibility.
   100  // Can be deleted once chromium-m120 / chrome-m120 and all prior
   101  // versions have had their LUCI configs deleted.
   102  type Predicate struct {
   103  	state         protoimpl.MessageState
   104  	sizeCache     protoimpl.SizeCache
   105  	unknownFields protoimpl.UnknownFields
   106  
   107  	TestIdRegexp string               `protobuf:"bytes,1,opt,name=test_id_regexp,json=testIdRegexp,proto3" json:"test_id_regexp,omitempty"`
   108  	Variant      *v1.VariantPredicate `protobuf:"bytes,2,opt,name=variant,proto3" json:"variant,omitempty"`
   109  	Status       Status               `protobuf:"varint,3,opt,name=status,proto3,enum=luci.analysis.analyzedtestvariant.Status" json:"status,omitempty"`
   110  }
   111  
   112  func (x *Predicate) Reset() {
   113  	*x = Predicate{}
   114  	if protoimpl.UnsafeEnabled {
   115  		mi := &file_go_chromium_org_luci_analysis_proto_analyzedtestvariant_predicate_proto_msgTypes[0]
   116  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
   117  		ms.StoreMessageInfo(mi)
   118  	}
   119  }
   120  
   121  func (x *Predicate) String() string {
   122  	return protoimpl.X.MessageStringOf(x)
   123  }
   124  
   125  func (*Predicate) ProtoMessage() {}
   126  
   127  func (x *Predicate) ProtoReflect() protoreflect.Message {
   128  	mi := &file_go_chromium_org_luci_analysis_proto_analyzedtestvariant_predicate_proto_msgTypes[0]
   129  	if protoimpl.UnsafeEnabled && x != nil {
   130  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
   131  		if ms.LoadMessageInfo() == nil {
   132  			ms.StoreMessageInfo(mi)
   133  		}
   134  		return ms
   135  	}
   136  	return mi.MessageOf(x)
   137  }
   138  
   139  // Deprecated: Use Predicate.ProtoReflect.Descriptor instead.
   140  func (*Predicate) Descriptor() ([]byte, []int) {
   141  	return file_go_chromium_org_luci_analysis_proto_analyzedtestvariant_predicate_proto_rawDescGZIP(), []int{0}
   142  }
   143  
   144  func (x *Predicate) GetTestIdRegexp() string {
   145  	if x != nil {
   146  		return x.TestIdRegexp
   147  	}
   148  	return ""
   149  }
   150  
   151  func (x *Predicate) GetVariant() *v1.VariantPredicate {
   152  	if x != nil {
   153  		return x.Variant
   154  	}
   155  	return nil
   156  }
   157  
   158  func (x *Predicate) GetStatus() Status {
   159  	if x != nil {
   160  		return x.Status
   161  	}
   162  	return Status_STATUS_UNSPECIFIED
   163  }
   164  
   165  var File_go_chromium_org_luci_analysis_proto_analyzedtestvariant_predicate_proto protoreflect.FileDescriptor
   166  
   167  var file_go_chromium_org_luci_analysis_proto_analyzedtestvariant_predicate_proto_rawDesc = []byte{
   168  	0x0a, 0x47, 0x67, 0x6f, 0x2e, 0x63, 0x68, 0x72, 0x6f, 0x6d, 0x69, 0x75, 0x6d, 0x2e, 0x6f, 0x72,
   169  	0x67, 0x2f, 0x6c, 0x75, 0x63, 0x69, 0x2f, 0x61, 0x6e, 0x61, 0x6c, 0x79, 0x73, 0x69, 0x73, 0x2f,
   170  	0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x61, 0x6e, 0x61, 0x6c, 0x79, 0x7a, 0x65, 0x64, 0x74, 0x65,
   171  	0x73, 0x74, 0x76, 0x61, 0x72, 0x69, 0x61, 0x6e, 0x74, 0x2f, 0x70, 0x72, 0x65, 0x64, 0x69, 0x63,
   172  	0x61, 0x74, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x21, 0x6c, 0x75, 0x63, 0x69, 0x2e,
   173  	0x61, 0x6e, 0x61, 0x6c, 0x79, 0x73, 0x69, 0x73, 0x2e, 0x61, 0x6e, 0x61, 0x6c, 0x79, 0x7a, 0x65,
   174  	0x64, 0x74, 0x65, 0x73, 0x74, 0x76, 0x61, 0x72, 0x69, 0x61, 0x6e, 0x74, 0x1a, 0x36, 0x67, 0x6f,
   175  	0x2e, 0x63, 0x68, 0x72, 0x6f, 0x6d, 0x69, 0x75, 0x6d, 0x2e, 0x6f, 0x72, 0x67, 0x2f, 0x6c, 0x75,
   176  	0x63, 0x69, 0x2f, 0x61, 0x6e, 0x61, 0x6c, 0x79, 0x73, 0x69, 0x73, 0x2f, 0x70, 0x72, 0x6f, 0x74,
   177  	0x6f, 0x2f, 0x76, 0x31, 0x2f, 0x70, 0x72, 0x65, 0x64, 0x69, 0x63, 0x61, 0x74, 0x65, 0x2e, 0x70,
   178  	0x72, 0x6f, 0x74, 0x6f, 0x22, 0xb2, 0x01, 0x0a, 0x09, 0x50, 0x72, 0x65, 0x64, 0x69, 0x63, 0x61,
   179  	0x74, 0x65, 0x12, 0x24, 0x0a, 0x0e, 0x74, 0x65, 0x73, 0x74, 0x5f, 0x69, 0x64, 0x5f, 0x72, 0x65,
   180  	0x67, 0x65, 0x78, 0x70, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0c, 0x74, 0x65, 0x73, 0x74,
   181  	0x49, 0x64, 0x52, 0x65, 0x67, 0x65, 0x78, 0x70, 0x12, 0x3c, 0x0a, 0x07, 0x76, 0x61, 0x72, 0x69,
   182  	0x61, 0x6e, 0x74, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x22, 0x2e, 0x6c, 0x75, 0x63, 0x69,
   183  	0x2e, 0x61, 0x6e, 0x61, 0x6c, 0x79, 0x73, 0x69, 0x73, 0x2e, 0x76, 0x31, 0x2e, 0x56, 0x61, 0x72,
   184  	0x69, 0x61, 0x6e, 0x74, 0x50, 0x72, 0x65, 0x64, 0x69, 0x63, 0x61, 0x74, 0x65, 0x52, 0x07, 0x76,
   185  	0x61, 0x72, 0x69, 0x61, 0x6e, 0x74, 0x12, 0x41, 0x0a, 0x06, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73,
   186  	0x18, 0x03, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x29, 0x2e, 0x6c, 0x75, 0x63, 0x69, 0x2e, 0x61, 0x6e,
   187  	0x61, 0x6c, 0x79, 0x73, 0x69, 0x73, 0x2e, 0x61, 0x6e, 0x61, 0x6c, 0x79, 0x7a, 0x65, 0x64, 0x74,
   188  	0x65, 0x73, 0x74, 0x76, 0x61, 0x72, 0x69, 0x61, 0x6e, 0x74, 0x2e, 0x53, 0x74, 0x61, 0x74, 0x75,
   189  	0x73, 0x52, 0x06, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x2a, 0x93, 0x01, 0x0a, 0x06, 0x53, 0x74,
   190  	0x61, 0x74, 0x75, 0x73, 0x12, 0x16, 0x0a, 0x12, 0x53, 0x54, 0x41, 0x54, 0x55, 0x53, 0x5f, 0x55,
   191  	0x4e, 0x53, 0x50, 0x45, 0x43, 0x49, 0x46, 0x49, 0x45, 0x44, 0x10, 0x00, 0x12, 0x1a, 0x0a, 0x16,
   192  	0x48, 0x41, 0x53, 0x5f, 0x55, 0x4e, 0x45, 0x58, 0x50, 0x45, 0x43, 0x54, 0x45, 0x44, 0x5f, 0x52,
   193  	0x45, 0x53, 0x55, 0x4c, 0x54, 0x53, 0x10, 0x05, 0x12, 0x09, 0x0a, 0x05, 0x46, 0x4c, 0x41, 0x4b,
   194  	0x59, 0x10, 0x0a, 0x12, 0x1b, 0x0a, 0x17, 0x43, 0x4f, 0x4e, 0x53, 0x49, 0x53, 0x54, 0x45, 0x4e,
   195  	0x54, 0x4c, 0x59, 0x5f, 0x55, 0x4e, 0x45, 0x58, 0x50, 0x45, 0x43, 0x54, 0x45, 0x44, 0x10, 0x14,
   196  	0x12, 0x19, 0x0a, 0x15, 0x43, 0x4f, 0x4e, 0x53, 0x49, 0x53, 0x54, 0x45, 0x4e, 0x54, 0x4c, 0x59,
   197  	0x5f, 0x45, 0x58, 0x50, 0x45, 0x43, 0x54, 0x45, 0x44, 0x10, 0x1e, 0x12, 0x12, 0x0a, 0x0e, 0x4e,
   198  	0x4f, 0x5f, 0x4e, 0x45, 0x57, 0x5f, 0x52, 0x45, 0x53, 0x55, 0x4c, 0x54, 0x53, 0x10, 0x28, 0x42,
   199  	0x3f, 0x5a, 0x3d, 0x67, 0x6f, 0x2e, 0x63, 0x68, 0x72, 0x6f, 0x6d, 0x69, 0x75, 0x6d, 0x2e, 0x6f,
   200  	0x72, 0x67, 0x2f, 0x6c, 0x75, 0x63, 0x69, 0x2f, 0x61, 0x6e, 0x61, 0x6c, 0x79, 0x73, 0x69, 0x73,
   201  	0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x61, 0x6e, 0x61, 0x6c, 0x79, 0x7a, 0x65, 0x64, 0x74,
   202  	0x65, 0x73, 0x74, 0x76, 0x61, 0x72, 0x69, 0x61, 0x6e, 0x74, 0x3b, 0x61, 0x74, 0x76, 0x70, 0x62,
   203  	0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
   204  }
   205  
   206  var (
   207  	file_go_chromium_org_luci_analysis_proto_analyzedtestvariant_predicate_proto_rawDescOnce sync.Once
   208  	file_go_chromium_org_luci_analysis_proto_analyzedtestvariant_predicate_proto_rawDescData = file_go_chromium_org_luci_analysis_proto_analyzedtestvariant_predicate_proto_rawDesc
   209  )
   210  
   211  func file_go_chromium_org_luci_analysis_proto_analyzedtestvariant_predicate_proto_rawDescGZIP() []byte {
   212  	file_go_chromium_org_luci_analysis_proto_analyzedtestvariant_predicate_proto_rawDescOnce.Do(func() {
   213  		file_go_chromium_org_luci_analysis_proto_analyzedtestvariant_predicate_proto_rawDescData = protoimpl.X.CompressGZIP(file_go_chromium_org_luci_analysis_proto_analyzedtestvariant_predicate_proto_rawDescData)
   214  	})
   215  	return file_go_chromium_org_luci_analysis_proto_analyzedtestvariant_predicate_proto_rawDescData
   216  }
   217  
   218  var file_go_chromium_org_luci_analysis_proto_analyzedtestvariant_predicate_proto_enumTypes = make([]protoimpl.EnumInfo, 1)
   219  var file_go_chromium_org_luci_analysis_proto_analyzedtestvariant_predicate_proto_msgTypes = make([]protoimpl.MessageInfo, 1)
   220  var file_go_chromium_org_luci_analysis_proto_analyzedtestvariant_predicate_proto_goTypes = []interface{}{
   221  	(Status)(0),                 // 0: luci.analysis.analyzedtestvariant.Status
   222  	(*Predicate)(nil),           // 1: luci.analysis.analyzedtestvariant.Predicate
   223  	(*v1.VariantPredicate)(nil), // 2: luci.analysis.v1.VariantPredicate
   224  }
   225  var file_go_chromium_org_luci_analysis_proto_analyzedtestvariant_predicate_proto_depIdxs = []int32{
   226  	2, // 0: luci.analysis.analyzedtestvariant.Predicate.variant:type_name -> luci.analysis.v1.VariantPredicate
   227  	0, // 1: luci.analysis.analyzedtestvariant.Predicate.status:type_name -> luci.analysis.analyzedtestvariant.Status
   228  	2, // [2:2] is the sub-list for method output_type
   229  	2, // [2:2] is the sub-list for method input_type
   230  	2, // [2:2] is the sub-list for extension type_name
   231  	2, // [2:2] is the sub-list for extension extendee
   232  	0, // [0:2] is the sub-list for field type_name
   233  }
   234  
   235  func init() { file_go_chromium_org_luci_analysis_proto_analyzedtestvariant_predicate_proto_init() }
   236  func file_go_chromium_org_luci_analysis_proto_analyzedtestvariant_predicate_proto_init() {
   237  	if File_go_chromium_org_luci_analysis_proto_analyzedtestvariant_predicate_proto != nil {
   238  		return
   239  	}
   240  	if !protoimpl.UnsafeEnabled {
   241  		file_go_chromium_org_luci_analysis_proto_analyzedtestvariant_predicate_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
   242  			switch v := v.(*Predicate); i {
   243  			case 0:
   244  				return &v.state
   245  			case 1:
   246  				return &v.sizeCache
   247  			case 2:
   248  				return &v.unknownFields
   249  			default:
   250  				return nil
   251  			}
   252  		}
   253  	}
   254  	type x struct{}
   255  	out := protoimpl.TypeBuilder{
   256  		File: protoimpl.DescBuilder{
   257  			GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
   258  			RawDescriptor: file_go_chromium_org_luci_analysis_proto_analyzedtestvariant_predicate_proto_rawDesc,
   259  			NumEnums:      1,
   260  			NumMessages:   1,
   261  			NumExtensions: 0,
   262  			NumServices:   0,
   263  		},
   264  		GoTypes:           file_go_chromium_org_luci_analysis_proto_analyzedtestvariant_predicate_proto_goTypes,
   265  		DependencyIndexes: file_go_chromium_org_luci_analysis_proto_analyzedtestvariant_predicate_proto_depIdxs,
   266  		EnumInfos:         file_go_chromium_org_luci_analysis_proto_analyzedtestvariant_predicate_proto_enumTypes,
   267  		MessageInfos:      file_go_chromium_org_luci_analysis_proto_analyzedtestvariant_predicate_proto_msgTypes,
   268  	}.Build()
   269  	File_go_chromium_org_luci_analysis_proto_analyzedtestvariant_predicate_proto = out.File
   270  	file_go_chromium_org_luci_analysis_proto_analyzedtestvariant_predicate_proto_rawDesc = nil
   271  	file_go_chromium_org_luci_analysis_proto_analyzedtestvariant_predicate_proto_goTypes = nil
   272  	file_go_chromium_org_luci_analysis_proto_analyzedtestvariant_predicate_proto_depIdxs = nil
   273  }