go.chromium.org/luci@v0.0.0-20240309015107-7cdc2e660f33/analysis/proto/v1/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.32.0 18 // protoc v3.21.7 19 // source: go.chromium.org/luci/analysis/proto/v1/predicate.proto 20 21 package analysispb 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 // Represents a function Variant -> bool. 38 type VariantPredicate struct { 39 state protoimpl.MessageState 40 sizeCache protoimpl.SizeCache 41 unknownFields protoimpl.UnknownFields 42 43 // Types that are assignable to Predicate: 44 // 45 // *VariantPredicate_Equals 46 // *VariantPredicate_Contains 47 // *VariantPredicate_HashEquals 48 Predicate isVariantPredicate_Predicate `protobuf_oneof:"predicate"` 49 } 50 51 func (x *VariantPredicate) Reset() { 52 *x = VariantPredicate{} 53 if protoimpl.UnsafeEnabled { 54 mi := &file_go_chromium_org_luci_analysis_proto_v1_predicate_proto_msgTypes[0] 55 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 56 ms.StoreMessageInfo(mi) 57 } 58 } 59 60 func (x *VariantPredicate) String() string { 61 return protoimpl.X.MessageStringOf(x) 62 } 63 64 func (*VariantPredicate) ProtoMessage() {} 65 66 func (x *VariantPredicate) ProtoReflect() protoreflect.Message { 67 mi := &file_go_chromium_org_luci_analysis_proto_v1_predicate_proto_msgTypes[0] 68 if protoimpl.UnsafeEnabled && x != nil { 69 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 70 if ms.LoadMessageInfo() == nil { 71 ms.StoreMessageInfo(mi) 72 } 73 return ms 74 } 75 return mi.MessageOf(x) 76 } 77 78 // Deprecated: Use VariantPredicate.ProtoReflect.Descriptor instead. 79 func (*VariantPredicate) Descriptor() ([]byte, []int) { 80 return file_go_chromium_org_luci_analysis_proto_v1_predicate_proto_rawDescGZIP(), []int{0} 81 } 82 83 func (m *VariantPredicate) GetPredicate() isVariantPredicate_Predicate { 84 if m != nil { 85 return m.Predicate 86 } 87 return nil 88 } 89 90 func (x *VariantPredicate) GetEquals() *Variant { 91 if x, ok := x.GetPredicate().(*VariantPredicate_Equals); ok { 92 return x.Equals 93 } 94 return nil 95 } 96 97 func (x *VariantPredicate) GetContains() *Variant { 98 if x, ok := x.GetPredicate().(*VariantPredicate_Contains); ok { 99 return x.Contains 100 } 101 return nil 102 } 103 104 func (x *VariantPredicate) GetHashEquals() string { 105 if x, ok := x.GetPredicate().(*VariantPredicate_HashEquals); ok { 106 return x.HashEquals 107 } 108 return "" 109 } 110 111 type isVariantPredicate_Predicate interface { 112 isVariantPredicate_Predicate() 113 } 114 115 type VariantPredicate_Equals struct { 116 // A variant must be equal this definition exactly. 117 Equals *Variant `protobuf:"bytes,1,opt,name=equals,proto3,oneof"` 118 } 119 120 type VariantPredicate_Contains struct { 121 // A variant's key-value pairs must contain those in this one. 122 Contains *Variant `protobuf:"bytes,2,opt,name=contains,proto3,oneof"` 123 } 124 125 type VariantPredicate_HashEquals struct { 126 // A variant's hash must equal this value exactly. 127 HashEquals string `protobuf:"bytes,3,opt,name=hash_equals,json=hashEquals,proto3,oneof"` 128 } 129 130 func (*VariantPredicate_Equals) isVariantPredicate_Predicate() {} 131 132 func (*VariantPredicate_Contains) isVariantPredicate_Predicate() {} 133 134 func (*VariantPredicate_HashEquals) isVariantPredicate_Predicate() {} 135 136 // Represents a function TestVerdict -> bool. 137 type TestVerdictPredicate struct { 138 state protoimpl.MessageState 139 sizeCache protoimpl.SizeCache 140 unknownFields protoimpl.UnknownFields 141 142 // Optional. The project-scoped realm to query the history from. 143 // This is the realm without the "<project>:" prefix. 144 // 145 // When specified, only the test history entries found in the matching realm 146 // will be returned. 147 SubRealm string `protobuf:"bytes,1,opt,name=sub_realm,json=subRealm,proto3" json:"sub_realm,omitempty"` 148 // Optional. The subset of test variants to request history for. 149 VariantPredicate *VariantPredicate `protobuf:"bytes,2,opt,name=variant_predicate,json=variantPredicate,proto3" json:"variant_predicate,omitempty"` 150 // Optional. Whether test verdicts generated by code with unsubmitted changes 151 // (e.g. Gerrit changes) should be included in the response. 152 // 153 // If no filter is specified, all verdicts are returned (regardless of 154 // submitted status). 155 SubmittedFilter SubmittedFilter `protobuf:"varint,3,opt,name=submitted_filter,json=submittedFilter,proto3,enum=luci.analysis.v1.SubmittedFilter" json:"submitted_filter,omitempty"` 156 // Optional. Specify a range of timestamps to query the test history from. 157 // 158 // Test history older than the configured TTL (90 days) will not be returned. 159 // When omitted, return all available test history. 160 PartitionTimeRange *TimeRange `protobuf:"bytes,4,opt,name=partition_time_range,json=partitionTimeRange,proto3" json:"partition_time_range,omitempty"` 161 // Optional. Whether to include the test results from LUCI Bisection. 162 // Results from LUCI Bisection are only return if this is true. 163 // LUCI Bisection results are excluded by default. 164 IncludeBisectionResults bool `protobuf:"varint,5,opt,name=include_bisection_results,json=includeBisectionResults,proto3" json:"include_bisection_results,omitempty"` 165 } 166 167 func (x *TestVerdictPredicate) Reset() { 168 *x = TestVerdictPredicate{} 169 if protoimpl.UnsafeEnabled { 170 mi := &file_go_chromium_org_luci_analysis_proto_v1_predicate_proto_msgTypes[1] 171 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 172 ms.StoreMessageInfo(mi) 173 } 174 } 175 176 func (x *TestVerdictPredicate) String() string { 177 return protoimpl.X.MessageStringOf(x) 178 } 179 180 func (*TestVerdictPredicate) ProtoMessage() {} 181 182 func (x *TestVerdictPredicate) ProtoReflect() protoreflect.Message { 183 mi := &file_go_chromium_org_luci_analysis_proto_v1_predicate_proto_msgTypes[1] 184 if protoimpl.UnsafeEnabled && x != nil { 185 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 186 if ms.LoadMessageInfo() == nil { 187 ms.StoreMessageInfo(mi) 188 } 189 return ms 190 } 191 return mi.MessageOf(x) 192 } 193 194 // Deprecated: Use TestVerdictPredicate.ProtoReflect.Descriptor instead. 195 func (*TestVerdictPredicate) Descriptor() ([]byte, []int) { 196 return file_go_chromium_org_luci_analysis_proto_v1_predicate_proto_rawDescGZIP(), []int{1} 197 } 198 199 func (x *TestVerdictPredicate) GetSubRealm() string { 200 if x != nil { 201 return x.SubRealm 202 } 203 return "" 204 } 205 206 func (x *TestVerdictPredicate) GetVariantPredicate() *VariantPredicate { 207 if x != nil { 208 return x.VariantPredicate 209 } 210 return nil 211 } 212 213 func (x *TestVerdictPredicate) GetSubmittedFilter() SubmittedFilter { 214 if x != nil { 215 return x.SubmittedFilter 216 } 217 return SubmittedFilter_SUBMITTED_FILTER_UNSPECIFIED 218 } 219 220 func (x *TestVerdictPredicate) GetPartitionTimeRange() *TimeRange { 221 if x != nil { 222 return x.PartitionTimeRange 223 } 224 return nil 225 } 226 227 func (x *TestVerdictPredicate) GetIncludeBisectionResults() bool { 228 if x != nil { 229 return x.IncludeBisectionResults 230 } 231 return false 232 } 233 234 var File_go_chromium_org_luci_analysis_proto_v1_predicate_proto protoreflect.FileDescriptor 235 236 var file_go_chromium_org_luci_analysis_proto_v1_predicate_proto_rawDesc = []byte{ 237 0x0a, 0x36, 0x67, 0x6f, 0x2e, 0x63, 0x68, 0x72, 0x6f, 0x6d, 0x69, 0x75, 0x6d, 0x2e, 0x6f, 0x72, 238 0x67, 0x2f, 0x6c, 0x75, 0x63, 0x69, 0x2f, 0x61, 0x6e, 0x61, 0x6c, 0x79, 0x73, 0x69, 0x73, 0x2f, 239 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x76, 0x31, 0x2f, 0x70, 0x72, 0x65, 0x64, 0x69, 0x63, 0x61, 240 0x74, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x10, 0x6c, 0x75, 0x63, 0x69, 0x2e, 0x61, 241 0x6e, 0x61, 0x6c, 0x79, 0x73, 0x69, 0x73, 0x2e, 0x76, 0x31, 0x1a, 0x33, 0x67, 0x6f, 0x2e, 0x63, 242 0x68, 0x72, 0x6f, 0x6d, 0x69, 0x75, 0x6d, 0x2e, 0x6f, 0x72, 0x67, 0x2f, 0x6c, 0x75, 0x63, 0x69, 243 0x2f, 0x61, 0x6e, 0x61, 0x6c, 0x79, 0x73, 0x69, 0x73, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 244 0x76, 0x31, 0x2f, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 245 0xb0, 0x01, 0x0a, 0x10, 0x56, 0x61, 0x72, 0x69, 0x61, 0x6e, 0x74, 0x50, 0x72, 0x65, 0x64, 0x69, 246 0x63, 0x61, 0x74, 0x65, 0x12, 0x33, 0x0a, 0x06, 0x65, 0x71, 0x75, 0x61, 0x6c, 0x73, 0x18, 0x01, 247 0x20, 0x01, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x6c, 0x75, 0x63, 0x69, 0x2e, 0x61, 0x6e, 0x61, 0x6c, 248 0x79, 0x73, 0x69, 0x73, 0x2e, 0x76, 0x31, 0x2e, 0x56, 0x61, 0x72, 0x69, 0x61, 0x6e, 0x74, 0x48, 249 0x00, 0x52, 0x06, 0x65, 0x71, 0x75, 0x61, 0x6c, 0x73, 0x12, 0x37, 0x0a, 0x08, 0x63, 0x6f, 0x6e, 250 0x74, 0x61, 0x69, 0x6e, 0x73, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x6c, 0x75, 251 0x63, 0x69, 0x2e, 0x61, 0x6e, 0x61, 0x6c, 0x79, 0x73, 0x69, 0x73, 0x2e, 0x76, 0x31, 0x2e, 0x56, 252 0x61, 0x72, 0x69, 0x61, 0x6e, 0x74, 0x48, 0x00, 0x52, 0x08, 0x63, 0x6f, 0x6e, 0x74, 0x61, 0x69, 253 0x6e, 0x73, 0x12, 0x21, 0x0a, 0x0b, 0x68, 0x61, 0x73, 0x68, 0x5f, 0x65, 0x71, 0x75, 0x61, 0x6c, 254 0x73, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x48, 0x00, 0x52, 0x0a, 0x68, 0x61, 0x73, 0x68, 0x45, 255 0x71, 0x75, 0x61, 0x6c, 0x73, 0x42, 0x0b, 0x0a, 0x09, 0x70, 0x72, 0x65, 0x64, 0x69, 0x63, 0x61, 256 0x74, 0x65, 0x22, 0xdd, 0x02, 0x0a, 0x14, 0x54, 0x65, 0x73, 0x74, 0x56, 0x65, 0x72, 0x64, 0x69, 257 0x63, 0x74, 0x50, 0x72, 0x65, 0x64, 0x69, 0x63, 0x61, 0x74, 0x65, 0x12, 0x1b, 0x0a, 0x09, 0x73, 258 0x75, 0x62, 0x5f, 0x72, 0x65, 0x61, 0x6c, 0x6d, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 259 0x73, 0x75, 0x62, 0x52, 0x65, 0x61, 0x6c, 0x6d, 0x12, 0x4f, 0x0a, 0x11, 0x76, 0x61, 0x72, 0x69, 260 0x61, 0x6e, 0x74, 0x5f, 0x70, 0x72, 0x65, 0x64, 0x69, 0x63, 0x61, 0x74, 0x65, 0x18, 0x02, 0x20, 261 0x01, 0x28, 0x0b, 0x32, 0x22, 0x2e, 0x6c, 0x75, 0x63, 0x69, 0x2e, 0x61, 0x6e, 0x61, 0x6c, 0x79, 262 0x73, 0x69, 0x73, 0x2e, 0x76, 0x31, 0x2e, 0x56, 0x61, 0x72, 0x69, 0x61, 0x6e, 0x74, 0x50, 0x72, 263 0x65, 0x64, 0x69, 0x63, 0x61, 0x74, 0x65, 0x52, 0x10, 0x76, 0x61, 0x72, 0x69, 0x61, 0x6e, 0x74, 264 0x50, 0x72, 0x65, 0x64, 0x69, 0x63, 0x61, 0x74, 0x65, 0x12, 0x4c, 0x0a, 0x10, 0x73, 0x75, 0x62, 265 0x6d, 0x69, 0x74, 0x74, 0x65, 0x64, 0x5f, 0x66, 0x69, 0x6c, 0x74, 0x65, 0x72, 0x18, 0x03, 0x20, 266 0x01, 0x28, 0x0e, 0x32, 0x21, 0x2e, 0x6c, 0x75, 0x63, 0x69, 0x2e, 0x61, 0x6e, 0x61, 0x6c, 0x79, 267 0x73, 0x69, 0x73, 0x2e, 0x76, 0x31, 0x2e, 0x53, 0x75, 0x62, 0x6d, 0x69, 0x74, 0x74, 0x65, 0x64, 268 0x46, 0x69, 0x6c, 0x74, 0x65, 0x72, 0x52, 0x0f, 0x73, 0x75, 0x62, 0x6d, 0x69, 0x74, 0x74, 0x65, 269 0x64, 0x46, 0x69, 0x6c, 0x74, 0x65, 0x72, 0x12, 0x4d, 0x0a, 0x14, 0x70, 0x61, 0x72, 0x74, 0x69, 270 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x74, 0x69, 0x6d, 0x65, 0x5f, 0x72, 0x61, 0x6e, 0x67, 0x65, 0x18, 271 0x04, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1b, 0x2e, 0x6c, 0x75, 0x63, 0x69, 0x2e, 0x61, 0x6e, 0x61, 272 0x6c, 0x79, 0x73, 0x69, 0x73, 0x2e, 0x76, 0x31, 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x52, 0x61, 0x6e, 273 0x67, 0x65, 0x52, 0x12, 0x70, 0x61, 0x72, 0x74, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x54, 0x69, 0x6d, 274 0x65, 0x52, 0x61, 0x6e, 0x67, 0x65, 0x12, 0x3a, 0x0a, 0x19, 0x69, 0x6e, 0x63, 0x6c, 0x75, 0x64, 275 0x65, 0x5f, 0x62, 0x69, 0x73, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x72, 0x65, 0x73, 0x75, 276 0x6c, 0x74, 0x73, 0x18, 0x05, 0x20, 0x01, 0x28, 0x08, 0x52, 0x17, 0x69, 0x6e, 0x63, 0x6c, 0x75, 277 0x64, 0x65, 0x42, 0x69, 0x73, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x73, 0x75, 0x6c, 278 0x74, 0x73, 0x42, 0x33, 0x5a, 0x31, 0x67, 0x6f, 0x2e, 0x63, 0x68, 0x72, 0x6f, 0x6d, 0x69, 0x75, 279 0x6d, 0x2e, 0x6f, 0x72, 0x67, 0x2f, 0x6c, 0x75, 0x63, 0x69, 0x2f, 0x61, 0x6e, 0x61, 0x6c, 0x79, 280 0x73, 0x69, 0x73, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x76, 0x31, 0x3b, 0x61, 0x6e, 0x61, 281 0x6c, 0x79, 0x73, 0x69, 0x73, 0x70, 0x62, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, 282 } 283 284 var ( 285 file_go_chromium_org_luci_analysis_proto_v1_predicate_proto_rawDescOnce sync.Once 286 file_go_chromium_org_luci_analysis_proto_v1_predicate_proto_rawDescData = file_go_chromium_org_luci_analysis_proto_v1_predicate_proto_rawDesc 287 ) 288 289 func file_go_chromium_org_luci_analysis_proto_v1_predicate_proto_rawDescGZIP() []byte { 290 file_go_chromium_org_luci_analysis_proto_v1_predicate_proto_rawDescOnce.Do(func() { 291 file_go_chromium_org_luci_analysis_proto_v1_predicate_proto_rawDescData = protoimpl.X.CompressGZIP(file_go_chromium_org_luci_analysis_proto_v1_predicate_proto_rawDescData) 292 }) 293 return file_go_chromium_org_luci_analysis_proto_v1_predicate_proto_rawDescData 294 } 295 296 var file_go_chromium_org_luci_analysis_proto_v1_predicate_proto_msgTypes = make([]protoimpl.MessageInfo, 2) 297 var file_go_chromium_org_luci_analysis_proto_v1_predicate_proto_goTypes = []interface{}{ 298 (*VariantPredicate)(nil), // 0: luci.analysis.v1.VariantPredicate 299 (*TestVerdictPredicate)(nil), // 1: luci.analysis.v1.TestVerdictPredicate 300 (*Variant)(nil), // 2: luci.analysis.v1.Variant 301 (SubmittedFilter)(0), // 3: luci.analysis.v1.SubmittedFilter 302 (*TimeRange)(nil), // 4: luci.analysis.v1.TimeRange 303 } 304 var file_go_chromium_org_luci_analysis_proto_v1_predicate_proto_depIdxs = []int32{ 305 2, // 0: luci.analysis.v1.VariantPredicate.equals:type_name -> luci.analysis.v1.Variant 306 2, // 1: luci.analysis.v1.VariantPredicate.contains:type_name -> luci.analysis.v1.Variant 307 0, // 2: luci.analysis.v1.TestVerdictPredicate.variant_predicate:type_name -> luci.analysis.v1.VariantPredicate 308 3, // 3: luci.analysis.v1.TestVerdictPredicate.submitted_filter:type_name -> luci.analysis.v1.SubmittedFilter 309 4, // 4: luci.analysis.v1.TestVerdictPredicate.partition_time_range:type_name -> luci.analysis.v1.TimeRange 310 5, // [5:5] is the sub-list for method output_type 311 5, // [5:5] is the sub-list for method input_type 312 5, // [5:5] is the sub-list for extension type_name 313 5, // [5:5] is the sub-list for extension extendee 314 0, // [0:5] is the sub-list for field type_name 315 } 316 317 func init() { file_go_chromium_org_luci_analysis_proto_v1_predicate_proto_init() } 318 func file_go_chromium_org_luci_analysis_proto_v1_predicate_proto_init() { 319 if File_go_chromium_org_luci_analysis_proto_v1_predicate_proto != nil { 320 return 321 } 322 file_go_chromium_org_luci_analysis_proto_v1_common_proto_init() 323 if !protoimpl.UnsafeEnabled { 324 file_go_chromium_org_luci_analysis_proto_v1_predicate_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { 325 switch v := v.(*VariantPredicate); i { 326 case 0: 327 return &v.state 328 case 1: 329 return &v.sizeCache 330 case 2: 331 return &v.unknownFields 332 default: 333 return nil 334 } 335 } 336 file_go_chromium_org_luci_analysis_proto_v1_predicate_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { 337 switch v := v.(*TestVerdictPredicate); i { 338 case 0: 339 return &v.state 340 case 1: 341 return &v.sizeCache 342 case 2: 343 return &v.unknownFields 344 default: 345 return nil 346 } 347 } 348 } 349 file_go_chromium_org_luci_analysis_proto_v1_predicate_proto_msgTypes[0].OneofWrappers = []interface{}{ 350 (*VariantPredicate_Equals)(nil), 351 (*VariantPredicate_Contains)(nil), 352 (*VariantPredicate_HashEquals)(nil), 353 } 354 type x struct{} 355 out := protoimpl.TypeBuilder{ 356 File: protoimpl.DescBuilder{ 357 GoPackagePath: reflect.TypeOf(x{}).PkgPath(), 358 RawDescriptor: file_go_chromium_org_luci_analysis_proto_v1_predicate_proto_rawDesc, 359 NumEnums: 0, 360 NumMessages: 2, 361 NumExtensions: 0, 362 NumServices: 0, 363 }, 364 GoTypes: file_go_chromium_org_luci_analysis_proto_v1_predicate_proto_goTypes, 365 DependencyIndexes: file_go_chromium_org_luci_analysis_proto_v1_predicate_proto_depIdxs, 366 MessageInfos: file_go_chromium_org_luci_analysis_proto_v1_predicate_proto_msgTypes, 367 }.Build() 368 File_go_chromium_org_luci_analysis_proto_v1_predicate_proto = out.File 369 file_go_chromium_org_luci_analysis_proto_v1_predicate_proto_rawDesc = nil 370 file_go_chromium_org_luci_analysis_proto_v1_predicate_proto_goTypes = nil 371 file_go_chromium_org_luci_analysis_proto_v1_predicate_proto_depIdxs = nil 372 }