github.com/cloudwan/edgelq-sdk@v1.15.4/alerting/resources/v1/policy/policy.pb.filterbuilder.go (about) 1 // Code generated by protoc-gen-goten-resource 2 // Resource: Policy 3 // DO NOT EDIT!!! 4 5 package policy 6 7 import ( 8 gotenresource "github.com/cloudwan/goten-sdk/runtime/resource" 9 gotenfilter "github.com/cloudwan/goten-sdk/runtime/resource/filter" 10 ) 11 12 // proto imports 13 import ( 14 rcommon "github.com/cloudwan/edgelq-sdk/alerting/resources/v1/common" 15 document "github.com/cloudwan/edgelq-sdk/alerting/resources/v1/document" 16 notification_channel "github.com/cloudwan/edgelq-sdk/alerting/resources/v1/notification_channel" 17 policy_template "github.com/cloudwan/edgelq-sdk/alerting/resources/v1/policy_template" 18 api "github.com/cloudwan/edgelq-sdk/common/api" 19 iam_iam_common "github.com/cloudwan/edgelq-sdk/iam/resources/v1/common" 20 iam_organization "github.com/cloudwan/edgelq-sdk/iam/resources/v1/organization" 21 iam_project "github.com/cloudwan/edgelq-sdk/iam/resources/v1/project" 22 logging_bucket "github.com/cloudwan/edgelq-sdk/logging/resources/v1/bucket" 23 logging_common "github.com/cloudwan/edgelq-sdk/logging/resources/v1/common" 24 logging_log "github.com/cloudwan/edgelq-sdk/logging/resources/v1/log" 25 logging_log_descriptor "github.com/cloudwan/edgelq-sdk/logging/resources/v1/log_descriptor" 26 monitoring_common "github.com/cloudwan/edgelq-sdk/monitoring/resources/v4/common" 27 monitoring_metric_descriptor "github.com/cloudwan/edgelq-sdk/monitoring/resources/v4/metric_descriptor" 28 monitoring_monitored_resource_descriptor "github.com/cloudwan/edgelq-sdk/monitoring/resources/v4/monitored_resource_descriptor" 29 monitoring_project "github.com/cloudwan/edgelq-sdk/monitoring/resources/v4/project" 30 monitoring_time_serie "github.com/cloudwan/edgelq-sdk/monitoring/resources/v4/time_serie" 31 meta_common "github.com/cloudwan/goten-sdk/meta-service/resources/v1/common" 32 meta_resource "github.com/cloudwan/goten-sdk/meta-service/resources/v1/resource" 33 meta_service "github.com/cloudwan/goten-sdk/meta-service/resources/v1/service" 34 meta "github.com/cloudwan/goten-sdk/types/meta" 35 multi_region_policy "github.com/cloudwan/goten-sdk/types/multi_region_policy" 36 anypb "google.golang.org/protobuf/types/known/anypb" 37 durationpb "google.golang.org/protobuf/types/known/durationpb" 38 fieldmaskpb "google.golang.org/protobuf/types/known/fieldmaskpb" 39 structpb "google.golang.org/protobuf/types/known/structpb" 40 timestamppb "google.golang.org/protobuf/types/known/timestamppb" 41 ) 42 43 // ensure the imports are used 44 var ( 45 _ = gotenresource.ConditionContainsTypeAll 46 _ = gotenfilter.AND 47 ) 48 49 // make sure we're using proto imports 50 var ( 51 _ = &document.Document{} 52 _ = ¬ification_channel.NotificationChannel{} 53 _ = &policy_template.PolicyTemplate{} 54 _ = &rcommon.LogCndSpec{} 55 _ = api.LaunchStage(0) 56 _ = &iam_iam_common.PCR{} 57 _ = &iam_organization.Organization{} 58 _ = &iam_project.Project{} 59 _ = &logging_bucket.Bucket{} 60 _ = &logging_common.LabelDescriptor{} 61 _ = &logging_log.Log{} 62 _ = &logging_log_descriptor.LogDescriptor{} 63 _ = &monitoring_common.LabelDescriptor{} 64 _ = &monitoring_metric_descriptor.MetricDescriptor{} 65 _ = &monitoring_monitored_resource_descriptor.MonitoredResourceDescriptor{} 66 _ = &monitoring_project.Project{} 67 _ = &monitoring_time_serie.Point{} 68 _ = &anypb.Any{} 69 _ = &durationpb.Duration{} 70 _ = &fieldmaskpb.FieldMask{} 71 _ = &structpb.Struct{} 72 _ = ×tamppb.Timestamp{} 73 _ = &meta_common.LabelledDomain{} 74 _ = &meta_resource.Resource{} 75 _ = &meta_service.Service{} 76 _ = &meta.Meta{} 77 _ = &multi_region_policy.MultiRegionPolicy{} 78 ) 79 80 type FilterBuilderOrCondition interface { 81 _IsPolicyFilterBuilderOrCondition() 82 } 83 84 type FilterBuilder struct { 85 conds []FilterCondition 86 useNot bool 87 op gotenfilter.CompositeOperator 88 } 89 90 func NewFilterBuilder() *FilterBuilder { 91 return NewAndFilterBuilder() 92 } 93 94 func NewAndFilterBuilder() *FilterBuilder { 95 return &FilterBuilder{ 96 op: gotenfilter.AND, 97 } 98 } 99 100 func NewOrFilterBuilder() *FilterBuilder { 101 return &FilterBuilder{ 102 op: gotenfilter.OR, 103 } 104 } 105 106 func (b *FilterBuilder) _IsPolicyFilterBuilderOrCondition() {} 107 108 func (b *FilterBuilder) With(condOrBuilder FilterBuilderOrCondition, opts ...gotenfilter.FilterConditionOption) *FilterBuilder { 109 var cond FilterCondition 110 switch typedObj := condOrBuilder.(type) { 111 case *Filter: 112 cond = typedObj.GetCondition() 113 case *FilterBuilder: 114 cond = &FilterConditionComposite{Operator: typedObj.op, Conditions: typedObj.conds} 115 case FilterCondition: 116 cond = typedObj 117 default: 118 panic("Unknown condition or builder type") 119 } 120 cfg := gotenfilter.MakeFilterCondOptions(opts) 121 if cfg.IsNot() { 122 cond = &FilterConditionNot{cond} 123 } 124 b.conds = append(b.conds, cond) 125 return b 126 } 127 128 func (b *FilterBuilder) Where(opts ...gotenfilter.FilterConditionOption) *filterCndBuilder { 129 cfg := gotenfilter.MakeFilterCondOptions(opts) 130 b.useNot = cfg.IsNot() 131 return &filterCndBuilder{builder: b} 132 } 133 134 func (b *FilterBuilder) WherePath(fp Policy_FieldPath, opts ...gotenfilter.FilterConditionOption) *filterCndBuilderAnyPath { 135 cfg := gotenfilter.MakeFilterCondOptions(opts) 136 b.useNot = cfg.IsNot() 137 return &filterCndBuilderAnyPath{builder: b, fp: fp} 138 } 139 140 func (b *FilterBuilder) Filter() *Filter { 141 return &Filter{ 142 FilterCondition: &FilterConditionComposite{Operator: b.op, Conditions: b.conds}, 143 } 144 } 145 146 func (b *FilterBuilder) addCond(cond FilterCondition) *FilterBuilder { 147 if b.useNot { 148 cond = &FilterConditionNot{cond} 149 b.useNot = false 150 } 151 b.conds = append(b.conds, cond) 152 return b 153 } 154 155 type filterCndBuilderAnyPath struct { 156 builder *FilterBuilder 157 fp Policy_FieldPath 158 } 159 160 func (b *filterCndBuilderAnyPath) Eq(value interface{}) *FilterBuilder { 161 return b.compare(gotenfilter.Eq, value) 162 } 163 164 func (b *filterCndBuilderAnyPath) Neq(value interface{}) *FilterBuilder { 165 return b.compare(gotenfilter.Neq, value) 166 } 167 168 func (b *filterCndBuilderAnyPath) Gt(value interface{}) *FilterBuilder { 169 return b.compare(gotenfilter.Gt, value) 170 } 171 172 func (b *filterCndBuilderAnyPath) Gte(value interface{}) *FilterBuilder { 173 return b.compare(gotenfilter.Gte, value) 174 } 175 176 func (b *filterCndBuilderAnyPath) Lt(value interface{}) *FilterBuilder { 177 return b.compare(gotenfilter.Lt, value) 178 } 179 180 func (b *filterCndBuilderAnyPath) Lte(value interface{}) *FilterBuilder { 181 return b.compare(gotenfilter.Lte, value) 182 } 183 184 func (b *filterCndBuilderAnyPath) In(values interface{}) *FilterBuilder { 185 return b.builder.addCond(&FilterConditionIn{ 186 Policy_FieldPathArrayOfValues: b.fp.WithIArrayOfValues(values), 187 }) 188 } 189 190 func (b *filterCndBuilderAnyPath) NotIn(values interface{}) *FilterBuilder { 191 return b.builder.addCond(&FilterConditionNotIn{ 192 Policy_FieldPathArrayOfValues: b.fp.WithIArrayOfValues(values), 193 }) 194 } 195 196 func (b *filterCndBuilderAnyPath) IsNull() *FilterBuilder { 197 return b.builder.addCond(&FilterConditionIsNull{ 198 FieldPath: b.fp, 199 }) 200 } 201 202 func (b *filterCndBuilderAnyPath) IsNan() *FilterBuilder { 203 return b.builder.addCond(&FilterConditionIsNaN{ 204 FieldPath: b.fp, 205 }) 206 } 207 208 func (b *filterCndBuilderAnyPath) Contains(value interface{}) *FilterBuilder { 209 return b.builder.addCond(&FilterConditionContains{ 210 Type: gotenresource.ConditionContainsTypeValue, 211 FieldPath: b.fp, 212 Value: b.fp.WithIArrayItemValue(value), 213 }) 214 } 215 216 func (b *filterCndBuilderAnyPath) ContainsAnyOf(values []interface{}) *FilterBuilder { 217 itemValues := make([]Policy_FieldPathArrayItemValue, 0, len(values)) 218 for _, value := range values { 219 itemValues = append(itemValues, b.fp.WithIArrayItemValue(value)) 220 } 221 return b.builder.addCond(&FilterConditionContains{ 222 Type: gotenresource.ConditionContainsTypeAny, 223 FieldPath: b.fp, 224 Values: itemValues, 225 }) 226 } 227 228 func (b *filterCndBuilderAnyPath) ContainsAll(values []interface{}) *FilterBuilder { 229 itemValues := make([]Policy_FieldPathArrayItemValue, 0, len(values)) 230 for _, value := range values { 231 itemValues = append(itemValues, b.fp.WithIArrayItemValue(value)) 232 } 233 return b.builder.addCond(&FilterConditionContains{ 234 Type: gotenresource.ConditionContainsTypeAll, 235 FieldPath: b.fp, 236 Values: itemValues, 237 }) 238 } 239 240 func (b *filterCndBuilderAnyPath) compare(op gotenfilter.CompareOperator, value interface{}) *FilterBuilder { 241 return b.builder.addCond(&FilterConditionCompare{ 242 Operator: op, 243 Policy_FieldPathValue: b.fp.WithIValue(value), 244 }) 245 } 246 247 type filterCndBuilder struct { 248 builder *FilterBuilder 249 } 250 251 func (b *filterCndBuilder) Name() *filterCndBuilderName { 252 return &filterCndBuilderName{builder: b.builder} 253 } 254 255 func (b *filterCndBuilder) Metadata() *filterCndBuilderMetadata { 256 return &filterCndBuilderMetadata{builder: b.builder} 257 } 258 259 func (b *filterCndBuilder) DisplayName() *filterCndBuilderDisplayName { 260 return &filterCndBuilderDisplayName{builder: b.builder} 261 } 262 263 func (b *filterCndBuilder) Description() *filterCndBuilderDescription { 264 return &filterCndBuilderDescription{builder: b.builder} 265 } 266 267 func (b *filterCndBuilder) SupportingDocs() *filterCndBuilderSupportingDocs { 268 return &filterCndBuilderSupportingDocs{builder: b.builder} 269 } 270 271 func (b *filterCndBuilder) Spec() *filterCndBuilderSpec { 272 return &filterCndBuilderSpec{builder: b.builder} 273 } 274 275 func (b *filterCndBuilder) TemplateSource() *filterCndBuilderTemplateSource { 276 return &filterCndBuilderTemplateSource{builder: b.builder} 277 } 278 279 func (b *filterCndBuilder) NotificationChannels() *filterCndBuilderNotificationChannels { 280 return &filterCndBuilderNotificationChannels{builder: b.builder} 281 } 282 283 type filterCndBuilderName struct { 284 builder *FilterBuilder 285 } 286 287 func (b *filterCndBuilderName) Eq(value *Name) *FilterBuilder { 288 return b.compare(gotenfilter.Eq, value) 289 } 290 291 func (b *filterCndBuilderName) Neq(value *Name) *FilterBuilder { 292 return b.compare(gotenfilter.Neq, value) 293 } 294 295 func (b *filterCndBuilderName) Gt(value *Name) *FilterBuilder { 296 return b.compare(gotenfilter.Gt, value) 297 } 298 299 func (b *filterCndBuilderName) Gte(value *Name) *FilterBuilder { 300 return b.compare(gotenfilter.Gte, value) 301 } 302 303 func (b *filterCndBuilderName) Lt(value *Name) *FilterBuilder { 304 return b.compare(gotenfilter.Lt, value) 305 } 306 307 func (b *filterCndBuilderName) Lte(value *Name) *FilterBuilder { 308 return b.compare(gotenfilter.Lte, value) 309 } 310 311 func (b *filterCndBuilderName) In(values []*Name) *FilterBuilder { 312 return b.builder.addCond(&FilterConditionIn{ 313 Policy_FieldPathArrayOfValues: NewPolicyFieldPathBuilder().Name().WithArrayOfValues(values), 314 }) 315 } 316 317 func (b *filterCndBuilderName) NotIn(values []*Name) *FilterBuilder { 318 return b.builder.addCond(&FilterConditionNotIn{ 319 Policy_FieldPathArrayOfValues: NewPolicyFieldPathBuilder().Name().WithArrayOfValues(values), 320 }) 321 } 322 323 func (b *filterCndBuilderName) IsNull() *FilterBuilder { 324 return b.builder.addCond(&FilterConditionIsNull{ 325 FieldPath: NewPolicyFieldPathBuilder().Name().FieldPath(), 326 }) 327 } 328 329 func (b *filterCndBuilderName) IsNan() *FilterBuilder { 330 return b.builder.addCond(&FilterConditionIsNaN{ 331 FieldPath: NewPolicyFieldPathBuilder().Name().FieldPath(), 332 }) 333 } 334 335 func (b *filterCndBuilderName) compare(op gotenfilter.CompareOperator, value *Name) *FilterBuilder { 336 return b.builder.addCond(&FilterConditionCompare{ 337 Operator: op, 338 Policy_FieldPathValue: NewPolicyFieldPathBuilder().Name().WithValue(value), 339 }) 340 } 341 342 type filterCndBuilderMetadata struct { 343 builder *FilterBuilder 344 } 345 346 func (b *filterCndBuilderMetadata) Eq(value *meta.Meta) *FilterBuilder { 347 return b.compare(gotenfilter.Eq, value) 348 } 349 350 func (b *filterCndBuilderMetadata) Neq(value *meta.Meta) *FilterBuilder { 351 return b.compare(gotenfilter.Neq, value) 352 } 353 354 func (b *filterCndBuilderMetadata) Gt(value *meta.Meta) *FilterBuilder { 355 return b.compare(gotenfilter.Gt, value) 356 } 357 358 func (b *filterCndBuilderMetadata) Gte(value *meta.Meta) *FilterBuilder { 359 return b.compare(gotenfilter.Gte, value) 360 } 361 362 func (b *filterCndBuilderMetadata) Lt(value *meta.Meta) *FilterBuilder { 363 return b.compare(gotenfilter.Lt, value) 364 } 365 366 func (b *filterCndBuilderMetadata) Lte(value *meta.Meta) *FilterBuilder { 367 return b.compare(gotenfilter.Lte, value) 368 } 369 370 func (b *filterCndBuilderMetadata) In(values []*meta.Meta) *FilterBuilder { 371 return b.builder.addCond(&FilterConditionIn{ 372 Policy_FieldPathArrayOfValues: NewPolicyFieldPathBuilder().Metadata().WithArrayOfValues(values), 373 }) 374 } 375 376 func (b *filterCndBuilderMetadata) NotIn(values []*meta.Meta) *FilterBuilder { 377 return b.builder.addCond(&FilterConditionNotIn{ 378 Policy_FieldPathArrayOfValues: NewPolicyFieldPathBuilder().Metadata().WithArrayOfValues(values), 379 }) 380 } 381 382 func (b *filterCndBuilderMetadata) IsNull() *FilterBuilder { 383 return b.builder.addCond(&FilterConditionIsNull{ 384 FieldPath: NewPolicyFieldPathBuilder().Metadata().FieldPath(), 385 }) 386 } 387 388 func (b *filterCndBuilderMetadata) IsNan() *FilterBuilder { 389 return b.builder.addCond(&FilterConditionIsNaN{ 390 FieldPath: NewPolicyFieldPathBuilder().Metadata().FieldPath(), 391 }) 392 } 393 394 func (b *filterCndBuilderMetadata) compare(op gotenfilter.CompareOperator, value *meta.Meta) *FilterBuilder { 395 return b.builder.addCond(&FilterConditionCompare{ 396 Operator: op, 397 Policy_FieldPathValue: NewPolicyFieldPathBuilder().Metadata().WithValue(value), 398 }) 399 } 400 401 func (b *filterCndBuilderMetadata) CreateTime() *filterCndBuilderMetadataCreateTime { 402 return &filterCndBuilderMetadataCreateTime{builder: b.builder} 403 } 404 405 func (b *filterCndBuilderMetadata) UpdateTime() *filterCndBuilderMetadataUpdateTime { 406 return &filterCndBuilderMetadataUpdateTime{builder: b.builder} 407 } 408 409 func (b *filterCndBuilderMetadata) DeleteTime() *filterCndBuilderMetadataDeleteTime { 410 return &filterCndBuilderMetadataDeleteTime{builder: b.builder} 411 } 412 413 func (b *filterCndBuilderMetadata) Uuid() *filterCndBuilderMetadataUuid { 414 return &filterCndBuilderMetadataUuid{builder: b.builder} 415 } 416 417 func (b *filterCndBuilderMetadata) Tags() *filterCndBuilderMetadataTags { 418 return &filterCndBuilderMetadataTags{builder: b.builder} 419 } 420 421 func (b *filterCndBuilderMetadata) Labels() *filterCndBuilderMetadataLabels { 422 return &filterCndBuilderMetadataLabels{builder: b.builder} 423 } 424 425 func (b *filterCndBuilderMetadata) Annotations() *filterCndBuilderMetadataAnnotations { 426 return &filterCndBuilderMetadataAnnotations{builder: b.builder} 427 } 428 429 func (b *filterCndBuilderMetadata) Generation() *filterCndBuilderMetadataGeneration { 430 return &filterCndBuilderMetadataGeneration{builder: b.builder} 431 } 432 433 func (b *filterCndBuilderMetadata) ResourceVersion() *filterCndBuilderMetadataResourceVersion { 434 return &filterCndBuilderMetadataResourceVersion{builder: b.builder} 435 } 436 437 func (b *filterCndBuilderMetadata) OwnerReferences() *filterCndBuilderMetadataOwnerReferences { 438 return &filterCndBuilderMetadataOwnerReferences{builder: b.builder} 439 } 440 441 func (b *filterCndBuilderMetadata) Shards() *filterCndBuilderMetadataShards { 442 return &filterCndBuilderMetadataShards{builder: b.builder} 443 } 444 445 func (b *filterCndBuilderMetadata) Syncing() *filterCndBuilderMetadataSyncing { 446 return &filterCndBuilderMetadataSyncing{builder: b.builder} 447 } 448 449 func (b *filterCndBuilderMetadata) Lifecycle() *filterCndBuilderMetadataLifecycle { 450 return &filterCndBuilderMetadataLifecycle{builder: b.builder} 451 } 452 453 func (b *filterCndBuilderMetadata) Services() *filterCndBuilderMetadataServices { 454 return &filterCndBuilderMetadataServices{builder: b.builder} 455 } 456 457 type filterCndBuilderMetadataCreateTime struct { 458 builder *FilterBuilder 459 } 460 461 func (b *filterCndBuilderMetadataCreateTime) Eq(value *timestamppb.Timestamp) *FilterBuilder { 462 return b.compare(gotenfilter.Eq, value) 463 } 464 465 func (b *filterCndBuilderMetadataCreateTime) Neq(value *timestamppb.Timestamp) *FilterBuilder { 466 return b.compare(gotenfilter.Neq, value) 467 } 468 469 func (b *filterCndBuilderMetadataCreateTime) Gt(value *timestamppb.Timestamp) *FilterBuilder { 470 return b.compare(gotenfilter.Gt, value) 471 } 472 473 func (b *filterCndBuilderMetadataCreateTime) Gte(value *timestamppb.Timestamp) *FilterBuilder { 474 return b.compare(gotenfilter.Gte, value) 475 } 476 477 func (b *filterCndBuilderMetadataCreateTime) Lt(value *timestamppb.Timestamp) *FilterBuilder { 478 return b.compare(gotenfilter.Lt, value) 479 } 480 481 func (b *filterCndBuilderMetadataCreateTime) Lte(value *timestamppb.Timestamp) *FilterBuilder { 482 return b.compare(gotenfilter.Lte, value) 483 } 484 485 func (b *filterCndBuilderMetadataCreateTime) In(values []*timestamppb.Timestamp) *FilterBuilder { 486 return b.builder.addCond(&FilterConditionIn{ 487 Policy_FieldPathArrayOfValues: NewPolicyFieldPathBuilder().Metadata().CreateTime().WithArrayOfValues(values), 488 }) 489 } 490 491 func (b *filterCndBuilderMetadataCreateTime) NotIn(values []*timestamppb.Timestamp) *FilterBuilder { 492 return b.builder.addCond(&FilterConditionNotIn{ 493 Policy_FieldPathArrayOfValues: NewPolicyFieldPathBuilder().Metadata().CreateTime().WithArrayOfValues(values), 494 }) 495 } 496 497 func (b *filterCndBuilderMetadataCreateTime) IsNull() *FilterBuilder { 498 return b.builder.addCond(&FilterConditionIsNull{ 499 FieldPath: NewPolicyFieldPathBuilder().Metadata().CreateTime().FieldPath(), 500 }) 501 } 502 503 func (b *filterCndBuilderMetadataCreateTime) IsNan() *FilterBuilder { 504 return b.builder.addCond(&FilterConditionIsNaN{ 505 FieldPath: NewPolicyFieldPathBuilder().Metadata().CreateTime().FieldPath(), 506 }) 507 } 508 509 func (b *filterCndBuilderMetadataCreateTime) compare(op gotenfilter.CompareOperator, value *timestamppb.Timestamp) *FilterBuilder { 510 return b.builder.addCond(&FilterConditionCompare{ 511 Operator: op, 512 Policy_FieldPathValue: NewPolicyFieldPathBuilder().Metadata().CreateTime().WithValue(value), 513 }) 514 } 515 516 type filterCndBuilderMetadataUpdateTime struct { 517 builder *FilterBuilder 518 } 519 520 func (b *filterCndBuilderMetadataUpdateTime) Eq(value *timestamppb.Timestamp) *FilterBuilder { 521 return b.compare(gotenfilter.Eq, value) 522 } 523 524 func (b *filterCndBuilderMetadataUpdateTime) Neq(value *timestamppb.Timestamp) *FilterBuilder { 525 return b.compare(gotenfilter.Neq, value) 526 } 527 528 func (b *filterCndBuilderMetadataUpdateTime) Gt(value *timestamppb.Timestamp) *FilterBuilder { 529 return b.compare(gotenfilter.Gt, value) 530 } 531 532 func (b *filterCndBuilderMetadataUpdateTime) Gte(value *timestamppb.Timestamp) *FilterBuilder { 533 return b.compare(gotenfilter.Gte, value) 534 } 535 536 func (b *filterCndBuilderMetadataUpdateTime) Lt(value *timestamppb.Timestamp) *FilterBuilder { 537 return b.compare(gotenfilter.Lt, value) 538 } 539 540 func (b *filterCndBuilderMetadataUpdateTime) Lte(value *timestamppb.Timestamp) *FilterBuilder { 541 return b.compare(gotenfilter.Lte, value) 542 } 543 544 func (b *filterCndBuilderMetadataUpdateTime) In(values []*timestamppb.Timestamp) *FilterBuilder { 545 return b.builder.addCond(&FilterConditionIn{ 546 Policy_FieldPathArrayOfValues: NewPolicyFieldPathBuilder().Metadata().UpdateTime().WithArrayOfValues(values), 547 }) 548 } 549 550 func (b *filterCndBuilderMetadataUpdateTime) NotIn(values []*timestamppb.Timestamp) *FilterBuilder { 551 return b.builder.addCond(&FilterConditionNotIn{ 552 Policy_FieldPathArrayOfValues: NewPolicyFieldPathBuilder().Metadata().UpdateTime().WithArrayOfValues(values), 553 }) 554 } 555 556 func (b *filterCndBuilderMetadataUpdateTime) IsNull() *FilterBuilder { 557 return b.builder.addCond(&FilterConditionIsNull{ 558 FieldPath: NewPolicyFieldPathBuilder().Metadata().UpdateTime().FieldPath(), 559 }) 560 } 561 562 func (b *filterCndBuilderMetadataUpdateTime) IsNan() *FilterBuilder { 563 return b.builder.addCond(&FilterConditionIsNaN{ 564 FieldPath: NewPolicyFieldPathBuilder().Metadata().UpdateTime().FieldPath(), 565 }) 566 } 567 568 func (b *filterCndBuilderMetadataUpdateTime) compare(op gotenfilter.CompareOperator, value *timestamppb.Timestamp) *FilterBuilder { 569 return b.builder.addCond(&FilterConditionCompare{ 570 Operator: op, 571 Policy_FieldPathValue: NewPolicyFieldPathBuilder().Metadata().UpdateTime().WithValue(value), 572 }) 573 } 574 575 type filterCndBuilderMetadataDeleteTime struct { 576 builder *FilterBuilder 577 } 578 579 func (b *filterCndBuilderMetadataDeleteTime) Eq(value *timestamppb.Timestamp) *FilterBuilder { 580 return b.compare(gotenfilter.Eq, value) 581 } 582 583 func (b *filterCndBuilderMetadataDeleteTime) Neq(value *timestamppb.Timestamp) *FilterBuilder { 584 return b.compare(gotenfilter.Neq, value) 585 } 586 587 func (b *filterCndBuilderMetadataDeleteTime) Gt(value *timestamppb.Timestamp) *FilterBuilder { 588 return b.compare(gotenfilter.Gt, value) 589 } 590 591 func (b *filterCndBuilderMetadataDeleteTime) Gte(value *timestamppb.Timestamp) *FilterBuilder { 592 return b.compare(gotenfilter.Gte, value) 593 } 594 595 func (b *filterCndBuilderMetadataDeleteTime) Lt(value *timestamppb.Timestamp) *FilterBuilder { 596 return b.compare(gotenfilter.Lt, value) 597 } 598 599 func (b *filterCndBuilderMetadataDeleteTime) Lte(value *timestamppb.Timestamp) *FilterBuilder { 600 return b.compare(gotenfilter.Lte, value) 601 } 602 603 func (b *filterCndBuilderMetadataDeleteTime) In(values []*timestamppb.Timestamp) *FilterBuilder { 604 return b.builder.addCond(&FilterConditionIn{ 605 Policy_FieldPathArrayOfValues: NewPolicyFieldPathBuilder().Metadata().DeleteTime().WithArrayOfValues(values), 606 }) 607 } 608 609 func (b *filterCndBuilderMetadataDeleteTime) NotIn(values []*timestamppb.Timestamp) *FilterBuilder { 610 return b.builder.addCond(&FilterConditionNotIn{ 611 Policy_FieldPathArrayOfValues: NewPolicyFieldPathBuilder().Metadata().DeleteTime().WithArrayOfValues(values), 612 }) 613 } 614 615 func (b *filterCndBuilderMetadataDeleteTime) IsNull() *FilterBuilder { 616 return b.builder.addCond(&FilterConditionIsNull{ 617 FieldPath: NewPolicyFieldPathBuilder().Metadata().DeleteTime().FieldPath(), 618 }) 619 } 620 621 func (b *filterCndBuilderMetadataDeleteTime) IsNan() *FilterBuilder { 622 return b.builder.addCond(&FilterConditionIsNaN{ 623 FieldPath: NewPolicyFieldPathBuilder().Metadata().DeleteTime().FieldPath(), 624 }) 625 } 626 627 func (b *filterCndBuilderMetadataDeleteTime) compare(op gotenfilter.CompareOperator, value *timestamppb.Timestamp) *FilterBuilder { 628 return b.builder.addCond(&FilterConditionCompare{ 629 Operator: op, 630 Policy_FieldPathValue: NewPolicyFieldPathBuilder().Metadata().DeleteTime().WithValue(value), 631 }) 632 } 633 634 type filterCndBuilderMetadataUuid struct { 635 builder *FilterBuilder 636 } 637 638 func (b *filterCndBuilderMetadataUuid) Eq(value string) *FilterBuilder { 639 return b.compare(gotenfilter.Eq, value) 640 } 641 642 func (b *filterCndBuilderMetadataUuid) Neq(value string) *FilterBuilder { 643 return b.compare(gotenfilter.Neq, value) 644 } 645 646 func (b *filterCndBuilderMetadataUuid) Gt(value string) *FilterBuilder { 647 return b.compare(gotenfilter.Gt, value) 648 } 649 650 func (b *filterCndBuilderMetadataUuid) Gte(value string) *FilterBuilder { 651 return b.compare(gotenfilter.Gte, value) 652 } 653 654 func (b *filterCndBuilderMetadataUuid) Lt(value string) *FilterBuilder { 655 return b.compare(gotenfilter.Lt, value) 656 } 657 658 func (b *filterCndBuilderMetadataUuid) Lte(value string) *FilterBuilder { 659 return b.compare(gotenfilter.Lte, value) 660 } 661 662 func (b *filterCndBuilderMetadataUuid) In(values []string) *FilterBuilder { 663 return b.builder.addCond(&FilterConditionIn{ 664 Policy_FieldPathArrayOfValues: NewPolicyFieldPathBuilder().Metadata().Uuid().WithArrayOfValues(values), 665 }) 666 } 667 668 func (b *filterCndBuilderMetadataUuid) NotIn(values []string) *FilterBuilder { 669 return b.builder.addCond(&FilterConditionNotIn{ 670 Policy_FieldPathArrayOfValues: NewPolicyFieldPathBuilder().Metadata().Uuid().WithArrayOfValues(values), 671 }) 672 } 673 674 func (b *filterCndBuilderMetadataUuid) IsNull() *FilterBuilder { 675 return b.builder.addCond(&FilterConditionIsNull{ 676 FieldPath: NewPolicyFieldPathBuilder().Metadata().Uuid().FieldPath(), 677 }) 678 } 679 680 func (b *filterCndBuilderMetadataUuid) IsNan() *FilterBuilder { 681 return b.builder.addCond(&FilterConditionIsNaN{ 682 FieldPath: NewPolicyFieldPathBuilder().Metadata().Uuid().FieldPath(), 683 }) 684 } 685 686 func (b *filterCndBuilderMetadataUuid) compare(op gotenfilter.CompareOperator, value string) *FilterBuilder { 687 return b.builder.addCond(&FilterConditionCompare{ 688 Operator: op, 689 Policy_FieldPathValue: NewPolicyFieldPathBuilder().Metadata().Uuid().WithValue(value), 690 }) 691 } 692 693 type filterCndBuilderMetadataTags struct { 694 builder *FilterBuilder 695 } 696 697 func (b *filterCndBuilderMetadataTags) Eq(value []string) *FilterBuilder { 698 return b.compare(gotenfilter.Eq, value) 699 } 700 701 func (b *filterCndBuilderMetadataTags) Neq(value []string) *FilterBuilder { 702 return b.compare(gotenfilter.Neq, value) 703 } 704 705 func (b *filterCndBuilderMetadataTags) Gt(value []string) *FilterBuilder { 706 return b.compare(gotenfilter.Gt, value) 707 } 708 709 func (b *filterCndBuilderMetadataTags) Gte(value []string) *FilterBuilder { 710 return b.compare(gotenfilter.Gte, value) 711 } 712 713 func (b *filterCndBuilderMetadataTags) Lt(value []string) *FilterBuilder { 714 return b.compare(gotenfilter.Lt, value) 715 } 716 717 func (b *filterCndBuilderMetadataTags) Lte(value []string) *FilterBuilder { 718 return b.compare(gotenfilter.Lte, value) 719 } 720 721 func (b *filterCndBuilderMetadataTags) In(values [][]string) *FilterBuilder { 722 return b.builder.addCond(&FilterConditionIn{ 723 Policy_FieldPathArrayOfValues: NewPolicyFieldPathBuilder().Metadata().Tags().WithArrayOfValues(values), 724 }) 725 } 726 727 func (b *filterCndBuilderMetadataTags) NotIn(values [][]string) *FilterBuilder { 728 return b.builder.addCond(&FilterConditionNotIn{ 729 Policy_FieldPathArrayOfValues: NewPolicyFieldPathBuilder().Metadata().Tags().WithArrayOfValues(values), 730 }) 731 } 732 733 func (b *filterCndBuilderMetadataTags) IsNull() *FilterBuilder { 734 return b.builder.addCond(&FilterConditionIsNull{ 735 FieldPath: NewPolicyFieldPathBuilder().Metadata().Tags().FieldPath(), 736 }) 737 } 738 739 func (b *filterCndBuilderMetadataTags) IsNan() *FilterBuilder { 740 return b.builder.addCond(&FilterConditionIsNaN{ 741 FieldPath: NewPolicyFieldPathBuilder().Metadata().Tags().FieldPath(), 742 }) 743 } 744 745 func (b *filterCndBuilderMetadataTags) Contains(value string) *FilterBuilder { 746 return b.builder.addCond(&FilterConditionContains{ 747 Type: gotenresource.ConditionContainsTypeValue, 748 FieldPath: NewPolicyFieldPathBuilder().Metadata().Tags().FieldPath(), 749 Value: NewPolicyFieldPathBuilder().Metadata().Tags().WithItemValue(value), 750 }) 751 } 752 753 func (b *filterCndBuilderMetadataTags) ContainsAnyOf(values []string) *FilterBuilder { 754 pathSelector := NewPolicyFieldPathBuilder().Metadata().Tags() 755 itemValues := make([]Policy_FieldPathArrayItemValue, 0, len(values)) 756 for _, value := range values { 757 itemValues = append(itemValues, pathSelector.WithItemValue(value)) 758 } 759 return b.builder.addCond(&FilterConditionContains{ 760 Type: gotenresource.ConditionContainsTypeAny, 761 FieldPath: NewPolicyFieldPathBuilder().Metadata().Tags().FieldPath(), 762 Values: itemValues, 763 }) 764 } 765 766 func (b *filterCndBuilderMetadataTags) ContainsAll(values []string) *FilterBuilder { 767 pathSelector := NewPolicyFieldPathBuilder().Metadata().Tags() 768 itemValues := make([]Policy_FieldPathArrayItemValue, 0, len(values)) 769 for _, value := range values { 770 itemValues = append(itemValues, pathSelector.WithItemValue(value)) 771 } 772 return b.builder.addCond(&FilterConditionContains{ 773 Type: gotenresource.ConditionContainsTypeAll, 774 FieldPath: NewPolicyFieldPathBuilder().Metadata().Tags().FieldPath(), 775 Values: itemValues, 776 }) 777 } 778 779 func (b *filterCndBuilderMetadataTags) compare(op gotenfilter.CompareOperator, value []string) *FilterBuilder { 780 return b.builder.addCond(&FilterConditionCompare{ 781 Operator: op, 782 Policy_FieldPathValue: NewPolicyFieldPathBuilder().Metadata().Tags().WithValue(value), 783 }) 784 } 785 786 type filterCndBuilderMetadataLabels struct { 787 builder *FilterBuilder 788 } 789 790 func (b *filterCndBuilderMetadataLabels) Eq(value map[string]string) *FilterBuilder { 791 return b.compare(gotenfilter.Eq, value) 792 } 793 794 func (b *filterCndBuilderMetadataLabels) Neq(value map[string]string) *FilterBuilder { 795 return b.compare(gotenfilter.Neq, value) 796 } 797 798 func (b *filterCndBuilderMetadataLabels) Gt(value map[string]string) *FilterBuilder { 799 return b.compare(gotenfilter.Gt, value) 800 } 801 802 func (b *filterCndBuilderMetadataLabels) Gte(value map[string]string) *FilterBuilder { 803 return b.compare(gotenfilter.Gte, value) 804 } 805 806 func (b *filterCndBuilderMetadataLabels) Lt(value map[string]string) *FilterBuilder { 807 return b.compare(gotenfilter.Lt, value) 808 } 809 810 func (b *filterCndBuilderMetadataLabels) Lte(value map[string]string) *FilterBuilder { 811 return b.compare(gotenfilter.Lte, value) 812 } 813 814 func (b *filterCndBuilderMetadataLabels) In(values []map[string]string) *FilterBuilder { 815 return b.builder.addCond(&FilterConditionIn{ 816 Policy_FieldPathArrayOfValues: NewPolicyFieldPathBuilder().Metadata().Labels().WithArrayOfValues(values), 817 }) 818 } 819 820 func (b *filterCndBuilderMetadataLabels) NotIn(values []map[string]string) *FilterBuilder { 821 return b.builder.addCond(&FilterConditionNotIn{ 822 Policy_FieldPathArrayOfValues: NewPolicyFieldPathBuilder().Metadata().Labels().WithArrayOfValues(values), 823 }) 824 } 825 826 func (b *filterCndBuilderMetadataLabels) IsNull() *FilterBuilder { 827 return b.builder.addCond(&FilterConditionIsNull{ 828 FieldPath: NewPolicyFieldPathBuilder().Metadata().Labels().FieldPath(), 829 }) 830 } 831 832 func (b *filterCndBuilderMetadataLabels) IsNan() *FilterBuilder { 833 return b.builder.addCond(&FilterConditionIsNaN{ 834 FieldPath: NewPolicyFieldPathBuilder().Metadata().Labels().FieldPath(), 835 }) 836 } 837 838 func (b *filterCndBuilderMetadataLabels) compare(op gotenfilter.CompareOperator, value map[string]string) *FilterBuilder { 839 return b.builder.addCond(&FilterConditionCompare{ 840 Operator: op, 841 Policy_FieldPathValue: NewPolicyFieldPathBuilder().Metadata().Labels().WithValue(value), 842 }) 843 } 844 845 func (b *filterCndBuilderMetadataLabels) WithKey(key string) *mapFilterCndBuilderMetadataLabels { 846 return &mapFilterCndBuilderMetadataLabels{builder: b.builder, key: key} 847 } 848 849 type mapFilterCndBuilderMetadataLabels struct { 850 builder *FilterBuilder 851 key string 852 } 853 854 func (b *mapFilterCndBuilderMetadataLabels) Eq(value string) *FilterBuilder { 855 return b.compare(gotenfilter.Eq, value) 856 } 857 858 func (b *mapFilterCndBuilderMetadataLabels) Neq(value string) *FilterBuilder { 859 return b.compare(gotenfilter.Neq, value) 860 } 861 862 func (b *mapFilterCndBuilderMetadataLabels) Gt(value string) *FilterBuilder { 863 return b.compare(gotenfilter.Gt, value) 864 } 865 866 func (b *mapFilterCndBuilderMetadataLabels) Gte(value string) *FilterBuilder { 867 return b.compare(gotenfilter.Gte, value) 868 } 869 870 func (b *mapFilterCndBuilderMetadataLabels) Lt(value string) *FilterBuilder { 871 return b.compare(gotenfilter.Lt, value) 872 } 873 874 func (b *mapFilterCndBuilderMetadataLabels) Lte(value string) *FilterBuilder { 875 return b.compare(gotenfilter.Lte, value) 876 } 877 878 func (b *mapFilterCndBuilderMetadataLabels) In(values []string) *FilterBuilder { 879 return b.builder.addCond(&FilterConditionIn{ 880 Policy_FieldPathArrayOfValues: NewPolicyFieldPathBuilder().Metadata().Labels().WithKey(b.key).WithArrayOfValues(values), 881 }) 882 } 883 884 func (b *mapFilterCndBuilderMetadataLabels) NotIn(values []string) *FilterBuilder { 885 return b.builder.addCond(&FilterConditionNotIn{ 886 Policy_FieldPathArrayOfValues: NewPolicyFieldPathBuilder().Metadata().Labels().WithKey(b.key).WithArrayOfValues(values), 887 }) 888 } 889 890 func (b *mapFilterCndBuilderMetadataLabels) IsNull() *FilterBuilder { 891 return b.builder.addCond(&FilterConditionIsNull{ 892 FieldPath: NewPolicyFieldPathBuilder().Metadata().Labels().WithKey(b.key).FieldPath(), 893 }) 894 } 895 896 func (b *mapFilterCndBuilderMetadataLabels) IsNan() *FilterBuilder { 897 return b.builder.addCond(&FilterConditionIsNaN{ 898 FieldPath: NewPolicyFieldPathBuilder().Metadata().Labels().WithKey(b.key).FieldPath(), 899 }) 900 } 901 902 func (b *mapFilterCndBuilderMetadataLabels) compare(op gotenfilter.CompareOperator, value string) *FilterBuilder { 903 return b.builder.addCond(&FilterConditionCompare{ 904 Operator: op, 905 Policy_FieldPathValue: NewPolicyFieldPathBuilder().Metadata().Labels().WithKey(b.key).WithValue(value), 906 }) 907 } 908 909 type filterCndBuilderMetadataAnnotations struct { 910 builder *FilterBuilder 911 } 912 913 func (b *filterCndBuilderMetadataAnnotations) Eq(value map[string]string) *FilterBuilder { 914 return b.compare(gotenfilter.Eq, value) 915 } 916 917 func (b *filterCndBuilderMetadataAnnotations) Neq(value map[string]string) *FilterBuilder { 918 return b.compare(gotenfilter.Neq, value) 919 } 920 921 func (b *filterCndBuilderMetadataAnnotations) Gt(value map[string]string) *FilterBuilder { 922 return b.compare(gotenfilter.Gt, value) 923 } 924 925 func (b *filterCndBuilderMetadataAnnotations) Gte(value map[string]string) *FilterBuilder { 926 return b.compare(gotenfilter.Gte, value) 927 } 928 929 func (b *filterCndBuilderMetadataAnnotations) Lt(value map[string]string) *FilterBuilder { 930 return b.compare(gotenfilter.Lt, value) 931 } 932 933 func (b *filterCndBuilderMetadataAnnotations) Lte(value map[string]string) *FilterBuilder { 934 return b.compare(gotenfilter.Lte, value) 935 } 936 937 func (b *filterCndBuilderMetadataAnnotations) In(values []map[string]string) *FilterBuilder { 938 return b.builder.addCond(&FilterConditionIn{ 939 Policy_FieldPathArrayOfValues: NewPolicyFieldPathBuilder().Metadata().Annotations().WithArrayOfValues(values), 940 }) 941 } 942 943 func (b *filterCndBuilderMetadataAnnotations) NotIn(values []map[string]string) *FilterBuilder { 944 return b.builder.addCond(&FilterConditionNotIn{ 945 Policy_FieldPathArrayOfValues: NewPolicyFieldPathBuilder().Metadata().Annotations().WithArrayOfValues(values), 946 }) 947 } 948 949 func (b *filterCndBuilderMetadataAnnotations) IsNull() *FilterBuilder { 950 return b.builder.addCond(&FilterConditionIsNull{ 951 FieldPath: NewPolicyFieldPathBuilder().Metadata().Annotations().FieldPath(), 952 }) 953 } 954 955 func (b *filterCndBuilderMetadataAnnotations) IsNan() *FilterBuilder { 956 return b.builder.addCond(&FilterConditionIsNaN{ 957 FieldPath: NewPolicyFieldPathBuilder().Metadata().Annotations().FieldPath(), 958 }) 959 } 960 961 func (b *filterCndBuilderMetadataAnnotations) compare(op gotenfilter.CompareOperator, value map[string]string) *FilterBuilder { 962 return b.builder.addCond(&FilterConditionCompare{ 963 Operator: op, 964 Policy_FieldPathValue: NewPolicyFieldPathBuilder().Metadata().Annotations().WithValue(value), 965 }) 966 } 967 968 func (b *filterCndBuilderMetadataAnnotations) WithKey(key string) *mapFilterCndBuilderMetadataAnnotations { 969 return &mapFilterCndBuilderMetadataAnnotations{builder: b.builder, key: key} 970 } 971 972 type mapFilterCndBuilderMetadataAnnotations struct { 973 builder *FilterBuilder 974 key string 975 } 976 977 func (b *mapFilterCndBuilderMetadataAnnotations) Eq(value string) *FilterBuilder { 978 return b.compare(gotenfilter.Eq, value) 979 } 980 981 func (b *mapFilterCndBuilderMetadataAnnotations) Neq(value string) *FilterBuilder { 982 return b.compare(gotenfilter.Neq, value) 983 } 984 985 func (b *mapFilterCndBuilderMetadataAnnotations) Gt(value string) *FilterBuilder { 986 return b.compare(gotenfilter.Gt, value) 987 } 988 989 func (b *mapFilterCndBuilderMetadataAnnotations) Gte(value string) *FilterBuilder { 990 return b.compare(gotenfilter.Gte, value) 991 } 992 993 func (b *mapFilterCndBuilderMetadataAnnotations) Lt(value string) *FilterBuilder { 994 return b.compare(gotenfilter.Lt, value) 995 } 996 997 func (b *mapFilterCndBuilderMetadataAnnotations) Lte(value string) *FilterBuilder { 998 return b.compare(gotenfilter.Lte, value) 999 } 1000 1001 func (b *mapFilterCndBuilderMetadataAnnotations) In(values []string) *FilterBuilder { 1002 return b.builder.addCond(&FilterConditionIn{ 1003 Policy_FieldPathArrayOfValues: NewPolicyFieldPathBuilder().Metadata().Annotations().WithKey(b.key).WithArrayOfValues(values), 1004 }) 1005 } 1006 1007 func (b *mapFilterCndBuilderMetadataAnnotations) NotIn(values []string) *FilterBuilder { 1008 return b.builder.addCond(&FilterConditionNotIn{ 1009 Policy_FieldPathArrayOfValues: NewPolicyFieldPathBuilder().Metadata().Annotations().WithKey(b.key).WithArrayOfValues(values), 1010 }) 1011 } 1012 1013 func (b *mapFilterCndBuilderMetadataAnnotations) IsNull() *FilterBuilder { 1014 return b.builder.addCond(&FilterConditionIsNull{ 1015 FieldPath: NewPolicyFieldPathBuilder().Metadata().Annotations().WithKey(b.key).FieldPath(), 1016 }) 1017 } 1018 1019 func (b *mapFilterCndBuilderMetadataAnnotations) IsNan() *FilterBuilder { 1020 return b.builder.addCond(&FilterConditionIsNaN{ 1021 FieldPath: NewPolicyFieldPathBuilder().Metadata().Annotations().WithKey(b.key).FieldPath(), 1022 }) 1023 } 1024 1025 func (b *mapFilterCndBuilderMetadataAnnotations) compare(op gotenfilter.CompareOperator, value string) *FilterBuilder { 1026 return b.builder.addCond(&FilterConditionCompare{ 1027 Operator: op, 1028 Policy_FieldPathValue: NewPolicyFieldPathBuilder().Metadata().Annotations().WithKey(b.key).WithValue(value), 1029 }) 1030 } 1031 1032 type filterCndBuilderMetadataGeneration struct { 1033 builder *FilterBuilder 1034 } 1035 1036 func (b *filterCndBuilderMetadataGeneration) Eq(value int64) *FilterBuilder { 1037 return b.compare(gotenfilter.Eq, value) 1038 } 1039 1040 func (b *filterCndBuilderMetadataGeneration) Neq(value int64) *FilterBuilder { 1041 return b.compare(gotenfilter.Neq, value) 1042 } 1043 1044 func (b *filterCndBuilderMetadataGeneration) Gt(value int64) *FilterBuilder { 1045 return b.compare(gotenfilter.Gt, value) 1046 } 1047 1048 func (b *filterCndBuilderMetadataGeneration) Gte(value int64) *FilterBuilder { 1049 return b.compare(gotenfilter.Gte, value) 1050 } 1051 1052 func (b *filterCndBuilderMetadataGeneration) Lt(value int64) *FilterBuilder { 1053 return b.compare(gotenfilter.Lt, value) 1054 } 1055 1056 func (b *filterCndBuilderMetadataGeneration) Lte(value int64) *FilterBuilder { 1057 return b.compare(gotenfilter.Lte, value) 1058 } 1059 1060 func (b *filterCndBuilderMetadataGeneration) In(values []int64) *FilterBuilder { 1061 return b.builder.addCond(&FilterConditionIn{ 1062 Policy_FieldPathArrayOfValues: NewPolicyFieldPathBuilder().Metadata().Generation().WithArrayOfValues(values), 1063 }) 1064 } 1065 1066 func (b *filterCndBuilderMetadataGeneration) NotIn(values []int64) *FilterBuilder { 1067 return b.builder.addCond(&FilterConditionNotIn{ 1068 Policy_FieldPathArrayOfValues: NewPolicyFieldPathBuilder().Metadata().Generation().WithArrayOfValues(values), 1069 }) 1070 } 1071 1072 func (b *filterCndBuilderMetadataGeneration) IsNull() *FilterBuilder { 1073 return b.builder.addCond(&FilterConditionIsNull{ 1074 FieldPath: NewPolicyFieldPathBuilder().Metadata().Generation().FieldPath(), 1075 }) 1076 } 1077 1078 func (b *filterCndBuilderMetadataGeneration) IsNan() *FilterBuilder { 1079 return b.builder.addCond(&FilterConditionIsNaN{ 1080 FieldPath: NewPolicyFieldPathBuilder().Metadata().Generation().FieldPath(), 1081 }) 1082 } 1083 1084 func (b *filterCndBuilderMetadataGeneration) compare(op gotenfilter.CompareOperator, value int64) *FilterBuilder { 1085 return b.builder.addCond(&FilterConditionCompare{ 1086 Operator: op, 1087 Policy_FieldPathValue: NewPolicyFieldPathBuilder().Metadata().Generation().WithValue(value), 1088 }) 1089 } 1090 1091 type filterCndBuilderMetadataResourceVersion struct { 1092 builder *FilterBuilder 1093 } 1094 1095 func (b *filterCndBuilderMetadataResourceVersion) Eq(value string) *FilterBuilder { 1096 return b.compare(gotenfilter.Eq, value) 1097 } 1098 1099 func (b *filterCndBuilderMetadataResourceVersion) Neq(value string) *FilterBuilder { 1100 return b.compare(gotenfilter.Neq, value) 1101 } 1102 1103 func (b *filterCndBuilderMetadataResourceVersion) Gt(value string) *FilterBuilder { 1104 return b.compare(gotenfilter.Gt, value) 1105 } 1106 1107 func (b *filterCndBuilderMetadataResourceVersion) Gte(value string) *FilterBuilder { 1108 return b.compare(gotenfilter.Gte, value) 1109 } 1110 1111 func (b *filterCndBuilderMetadataResourceVersion) Lt(value string) *FilterBuilder { 1112 return b.compare(gotenfilter.Lt, value) 1113 } 1114 1115 func (b *filterCndBuilderMetadataResourceVersion) Lte(value string) *FilterBuilder { 1116 return b.compare(gotenfilter.Lte, value) 1117 } 1118 1119 func (b *filterCndBuilderMetadataResourceVersion) In(values []string) *FilterBuilder { 1120 return b.builder.addCond(&FilterConditionIn{ 1121 Policy_FieldPathArrayOfValues: NewPolicyFieldPathBuilder().Metadata().ResourceVersion().WithArrayOfValues(values), 1122 }) 1123 } 1124 1125 func (b *filterCndBuilderMetadataResourceVersion) NotIn(values []string) *FilterBuilder { 1126 return b.builder.addCond(&FilterConditionNotIn{ 1127 Policy_FieldPathArrayOfValues: NewPolicyFieldPathBuilder().Metadata().ResourceVersion().WithArrayOfValues(values), 1128 }) 1129 } 1130 1131 func (b *filterCndBuilderMetadataResourceVersion) IsNull() *FilterBuilder { 1132 return b.builder.addCond(&FilterConditionIsNull{ 1133 FieldPath: NewPolicyFieldPathBuilder().Metadata().ResourceVersion().FieldPath(), 1134 }) 1135 } 1136 1137 func (b *filterCndBuilderMetadataResourceVersion) IsNan() *FilterBuilder { 1138 return b.builder.addCond(&FilterConditionIsNaN{ 1139 FieldPath: NewPolicyFieldPathBuilder().Metadata().ResourceVersion().FieldPath(), 1140 }) 1141 } 1142 1143 func (b *filterCndBuilderMetadataResourceVersion) compare(op gotenfilter.CompareOperator, value string) *FilterBuilder { 1144 return b.builder.addCond(&FilterConditionCompare{ 1145 Operator: op, 1146 Policy_FieldPathValue: NewPolicyFieldPathBuilder().Metadata().ResourceVersion().WithValue(value), 1147 }) 1148 } 1149 1150 type filterCndBuilderMetadataOwnerReferences struct { 1151 builder *FilterBuilder 1152 } 1153 1154 func (b *filterCndBuilderMetadataOwnerReferences) Eq(value []*meta.OwnerReference) *FilterBuilder { 1155 return b.compare(gotenfilter.Eq, value) 1156 } 1157 1158 func (b *filterCndBuilderMetadataOwnerReferences) Neq(value []*meta.OwnerReference) *FilterBuilder { 1159 return b.compare(gotenfilter.Neq, value) 1160 } 1161 1162 func (b *filterCndBuilderMetadataOwnerReferences) Gt(value []*meta.OwnerReference) *FilterBuilder { 1163 return b.compare(gotenfilter.Gt, value) 1164 } 1165 1166 func (b *filterCndBuilderMetadataOwnerReferences) Gte(value []*meta.OwnerReference) *FilterBuilder { 1167 return b.compare(gotenfilter.Gte, value) 1168 } 1169 1170 func (b *filterCndBuilderMetadataOwnerReferences) Lt(value []*meta.OwnerReference) *FilterBuilder { 1171 return b.compare(gotenfilter.Lt, value) 1172 } 1173 1174 func (b *filterCndBuilderMetadataOwnerReferences) Lte(value []*meta.OwnerReference) *FilterBuilder { 1175 return b.compare(gotenfilter.Lte, value) 1176 } 1177 1178 func (b *filterCndBuilderMetadataOwnerReferences) In(values [][]*meta.OwnerReference) *FilterBuilder { 1179 return b.builder.addCond(&FilterConditionIn{ 1180 Policy_FieldPathArrayOfValues: NewPolicyFieldPathBuilder().Metadata().OwnerReferences().WithArrayOfValues(values), 1181 }) 1182 } 1183 1184 func (b *filterCndBuilderMetadataOwnerReferences) NotIn(values [][]*meta.OwnerReference) *FilterBuilder { 1185 return b.builder.addCond(&FilterConditionNotIn{ 1186 Policy_FieldPathArrayOfValues: NewPolicyFieldPathBuilder().Metadata().OwnerReferences().WithArrayOfValues(values), 1187 }) 1188 } 1189 1190 func (b *filterCndBuilderMetadataOwnerReferences) IsNull() *FilterBuilder { 1191 return b.builder.addCond(&FilterConditionIsNull{ 1192 FieldPath: NewPolicyFieldPathBuilder().Metadata().OwnerReferences().FieldPath(), 1193 }) 1194 } 1195 1196 func (b *filterCndBuilderMetadataOwnerReferences) IsNan() *FilterBuilder { 1197 return b.builder.addCond(&FilterConditionIsNaN{ 1198 FieldPath: NewPolicyFieldPathBuilder().Metadata().OwnerReferences().FieldPath(), 1199 }) 1200 } 1201 1202 func (b *filterCndBuilderMetadataOwnerReferences) Contains(value *meta.OwnerReference) *FilterBuilder { 1203 return b.builder.addCond(&FilterConditionContains{ 1204 Type: gotenresource.ConditionContainsTypeValue, 1205 FieldPath: NewPolicyFieldPathBuilder().Metadata().OwnerReferences().FieldPath(), 1206 Value: NewPolicyFieldPathBuilder().Metadata().OwnerReferences().WithItemValue(value), 1207 }) 1208 } 1209 1210 func (b *filterCndBuilderMetadataOwnerReferences) ContainsAnyOf(values []*meta.OwnerReference) *FilterBuilder { 1211 pathSelector := NewPolicyFieldPathBuilder().Metadata().OwnerReferences() 1212 itemValues := make([]Policy_FieldPathArrayItemValue, 0, len(values)) 1213 for _, value := range values { 1214 itemValues = append(itemValues, pathSelector.WithItemValue(value)) 1215 } 1216 return b.builder.addCond(&FilterConditionContains{ 1217 Type: gotenresource.ConditionContainsTypeAny, 1218 FieldPath: NewPolicyFieldPathBuilder().Metadata().OwnerReferences().FieldPath(), 1219 Values: itemValues, 1220 }) 1221 } 1222 1223 func (b *filterCndBuilderMetadataOwnerReferences) ContainsAll(values []*meta.OwnerReference) *FilterBuilder { 1224 pathSelector := NewPolicyFieldPathBuilder().Metadata().OwnerReferences() 1225 itemValues := make([]Policy_FieldPathArrayItemValue, 0, len(values)) 1226 for _, value := range values { 1227 itemValues = append(itemValues, pathSelector.WithItemValue(value)) 1228 } 1229 return b.builder.addCond(&FilterConditionContains{ 1230 Type: gotenresource.ConditionContainsTypeAll, 1231 FieldPath: NewPolicyFieldPathBuilder().Metadata().OwnerReferences().FieldPath(), 1232 Values: itemValues, 1233 }) 1234 } 1235 1236 func (b *filterCndBuilderMetadataOwnerReferences) compare(op gotenfilter.CompareOperator, value []*meta.OwnerReference) *FilterBuilder { 1237 return b.builder.addCond(&FilterConditionCompare{ 1238 Operator: op, 1239 Policy_FieldPathValue: NewPolicyFieldPathBuilder().Metadata().OwnerReferences().WithValue(value), 1240 }) 1241 } 1242 1243 func (b *filterCndBuilderMetadataOwnerReferences) Kind() *filterCndBuilderMetadataOwnerReferencesKind { 1244 return &filterCndBuilderMetadataOwnerReferencesKind{builder: b.builder} 1245 } 1246 1247 func (b *filterCndBuilderMetadataOwnerReferences) Version() *filterCndBuilderMetadataOwnerReferencesVersion { 1248 return &filterCndBuilderMetadataOwnerReferencesVersion{builder: b.builder} 1249 } 1250 1251 func (b *filterCndBuilderMetadataOwnerReferences) Name() *filterCndBuilderMetadataOwnerReferencesName { 1252 return &filterCndBuilderMetadataOwnerReferencesName{builder: b.builder} 1253 } 1254 1255 func (b *filterCndBuilderMetadataOwnerReferences) Region() *filterCndBuilderMetadataOwnerReferencesRegion { 1256 return &filterCndBuilderMetadataOwnerReferencesRegion{builder: b.builder} 1257 } 1258 1259 func (b *filterCndBuilderMetadataOwnerReferences) Controller() *filterCndBuilderMetadataOwnerReferencesController { 1260 return &filterCndBuilderMetadataOwnerReferencesController{builder: b.builder} 1261 } 1262 1263 func (b *filterCndBuilderMetadataOwnerReferences) RequiresOwnerReference() *filterCndBuilderMetadataOwnerReferencesRequiresOwnerReference { 1264 return &filterCndBuilderMetadataOwnerReferencesRequiresOwnerReference{builder: b.builder} 1265 } 1266 1267 func (b *filterCndBuilderMetadataOwnerReferences) UnsetOnDelete() *filterCndBuilderMetadataOwnerReferencesUnsetOnDelete { 1268 return &filterCndBuilderMetadataOwnerReferencesUnsetOnDelete{builder: b.builder} 1269 } 1270 1271 type filterCndBuilderMetadataOwnerReferencesKind struct { 1272 builder *FilterBuilder 1273 } 1274 1275 func (b *filterCndBuilderMetadataOwnerReferencesKind) Eq(value string) *FilterBuilder { 1276 return b.compare(gotenfilter.Eq, value) 1277 } 1278 1279 func (b *filterCndBuilderMetadataOwnerReferencesKind) Neq(value string) *FilterBuilder { 1280 return b.compare(gotenfilter.Neq, value) 1281 } 1282 1283 func (b *filterCndBuilderMetadataOwnerReferencesKind) Gt(value string) *FilterBuilder { 1284 return b.compare(gotenfilter.Gt, value) 1285 } 1286 1287 func (b *filterCndBuilderMetadataOwnerReferencesKind) Gte(value string) *FilterBuilder { 1288 return b.compare(gotenfilter.Gte, value) 1289 } 1290 1291 func (b *filterCndBuilderMetadataOwnerReferencesKind) Lt(value string) *FilterBuilder { 1292 return b.compare(gotenfilter.Lt, value) 1293 } 1294 1295 func (b *filterCndBuilderMetadataOwnerReferencesKind) Lte(value string) *FilterBuilder { 1296 return b.compare(gotenfilter.Lte, value) 1297 } 1298 1299 func (b *filterCndBuilderMetadataOwnerReferencesKind) In(values []string) *FilterBuilder { 1300 return b.builder.addCond(&FilterConditionIn{ 1301 Policy_FieldPathArrayOfValues: NewPolicyFieldPathBuilder().Metadata().OwnerReferences().Kind().WithArrayOfValues(values), 1302 }) 1303 } 1304 1305 func (b *filterCndBuilderMetadataOwnerReferencesKind) NotIn(values []string) *FilterBuilder { 1306 return b.builder.addCond(&FilterConditionNotIn{ 1307 Policy_FieldPathArrayOfValues: NewPolicyFieldPathBuilder().Metadata().OwnerReferences().Kind().WithArrayOfValues(values), 1308 }) 1309 } 1310 1311 func (b *filterCndBuilderMetadataOwnerReferencesKind) IsNull() *FilterBuilder { 1312 return b.builder.addCond(&FilterConditionIsNull{ 1313 FieldPath: NewPolicyFieldPathBuilder().Metadata().OwnerReferences().Kind().FieldPath(), 1314 }) 1315 } 1316 1317 func (b *filterCndBuilderMetadataOwnerReferencesKind) IsNan() *FilterBuilder { 1318 return b.builder.addCond(&FilterConditionIsNaN{ 1319 FieldPath: NewPolicyFieldPathBuilder().Metadata().OwnerReferences().Kind().FieldPath(), 1320 }) 1321 } 1322 1323 func (b *filterCndBuilderMetadataOwnerReferencesKind) compare(op gotenfilter.CompareOperator, value string) *FilterBuilder { 1324 return b.builder.addCond(&FilterConditionCompare{ 1325 Operator: op, 1326 Policy_FieldPathValue: NewPolicyFieldPathBuilder().Metadata().OwnerReferences().Kind().WithValue(value), 1327 }) 1328 } 1329 1330 type filterCndBuilderMetadataOwnerReferencesVersion struct { 1331 builder *FilterBuilder 1332 } 1333 1334 func (b *filterCndBuilderMetadataOwnerReferencesVersion) Eq(value string) *FilterBuilder { 1335 return b.compare(gotenfilter.Eq, value) 1336 } 1337 1338 func (b *filterCndBuilderMetadataOwnerReferencesVersion) Neq(value string) *FilterBuilder { 1339 return b.compare(gotenfilter.Neq, value) 1340 } 1341 1342 func (b *filterCndBuilderMetadataOwnerReferencesVersion) Gt(value string) *FilterBuilder { 1343 return b.compare(gotenfilter.Gt, value) 1344 } 1345 1346 func (b *filterCndBuilderMetadataOwnerReferencesVersion) Gte(value string) *FilterBuilder { 1347 return b.compare(gotenfilter.Gte, value) 1348 } 1349 1350 func (b *filterCndBuilderMetadataOwnerReferencesVersion) Lt(value string) *FilterBuilder { 1351 return b.compare(gotenfilter.Lt, value) 1352 } 1353 1354 func (b *filterCndBuilderMetadataOwnerReferencesVersion) Lte(value string) *FilterBuilder { 1355 return b.compare(gotenfilter.Lte, value) 1356 } 1357 1358 func (b *filterCndBuilderMetadataOwnerReferencesVersion) In(values []string) *FilterBuilder { 1359 return b.builder.addCond(&FilterConditionIn{ 1360 Policy_FieldPathArrayOfValues: NewPolicyFieldPathBuilder().Metadata().OwnerReferences().Version().WithArrayOfValues(values), 1361 }) 1362 } 1363 1364 func (b *filterCndBuilderMetadataOwnerReferencesVersion) NotIn(values []string) *FilterBuilder { 1365 return b.builder.addCond(&FilterConditionNotIn{ 1366 Policy_FieldPathArrayOfValues: NewPolicyFieldPathBuilder().Metadata().OwnerReferences().Version().WithArrayOfValues(values), 1367 }) 1368 } 1369 1370 func (b *filterCndBuilderMetadataOwnerReferencesVersion) IsNull() *FilterBuilder { 1371 return b.builder.addCond(&FilterConditionIsNull{ 1372 FieldPath: NewPolicyFieldPathBuilder().Metadata().OwnerReferences().Version().FieldPath(), 1373 }) 1374 } 1375 1376 func (b *filterCndBuilderMetadataOwnerReferencesVersion) IsNan() *FilterBuilder { 1377 return b.builder.addCond(&FilterConditionIsNaN{ 1378 FieldPath: NewPolicyFieldPathBuilder().Metadata().OwnerReferences().Version().FieldPath(), 1379 }) 1380 } 1381 1382 func (b *filterCndBuilderMetadataOwnerReferencesVersion) compare(op gotenfilter.CompareOperator, value string) *FilterBuilder { 1383 return b.builder.addCond(&FilterConditionCompare{ 1384 Operator: op, 1385 Policy_FieldPathValue: NewPolicyFieldPathBuilder().Metadata().OwnerReferences().Version().WithValue(value), 1386 }) 1387 } 1388 1389 type filterCndBuilderMetadataOwnerReferencesName struct { 1390 builder *FilterBuilder 1391 } 1392 1393 func (b *filterCndBuilderMetadataOwnerReferencesName) Eq(value string) *FilterBuilder { 1394 return b.compare(gotenfilter.Eq, value) 1395 } 1396 1397 func (b *filterCndBuilderMetadataOwnerReferencesName) Neq(value string) *FilterBuilder { 1398 return b.compare(gotenfilter.Neq, value) 1399 } 1400 1401 func (b *filterCndBuilderMetadataOwnerReferencesName) Gt(value string) *FilterBuilder { 1402 return b.compare(gotenfilter.Gt, value) 1403 } 1404 1405 func (b *filterCndBuilderMetadataOwnerReferencesName) Gte(value string) *FilterBuilder { 1406 return b.compare(gotenfilter.Gte, value) 1407 } 1408 1409 func (b *filterCndBuilderMetadataOwnerReferencesName) Lt(value string) *FilterBuilder { 1410 return b.compare(gotenfilter.Lt, value) 1411 } 1412 1413 func (b *filterCndBuilderMetadataOwnerReferencesName) Lte(value string) *FilterBuilder { 1414 return b.compare(gotenfilter.Lte, value) 1415 } 1416 1417 func (b *filterCndBuilderMetadataOwnerReferencesName) In(values []string) *FilterBuilder { 1418 return b.builder.addCond(&FilterConditionIn{ 1419 Policy_FieldPathArrayOfValues: NewPolicyFieldPathBuilder().Metadata().OwnerReferences().Name().WithArrayOfValues(values), 1420 }) 1421 } 1422 1423 func (b *filterCndBuilderMetadataOwnerReferencesName) NotIn(values []string) *FilterBuilder { 1424 return b.builder.addCond(&FilterConditionNotIn{ 1425 Policy_FieldPathArrayOfValues: NewPolicyFieldPathBuilder().Metadata().OwnerReferences().Name().WithArrayOfValues(values), 1426 }) 1427 } 1428 1429 func (b *filterCndBuilderMetadataOwnerReferencesName) IsNull() *FilterBuilder { 1430 return b.builder.addCond(&FilterConditionIsNull{ 1431 FieldPath: NewPolicyFieldPathBuilder().Metadata().OwnerReferences().Name().FieldPath(), 1432 }) 1433 } 1434 1435 func (b *filterCndBuilderMetadataOwnerReferencesName) IsNan() *FilterBuilder { 1436 return b.builder.addCond(&FilterConditionIsNaN{ 1437 FieldPath: NewPolicyFieldPathBuilder().Metadata().OwnerReferences().Name().FieldPath(), 1438 }) 1439 } 1440 1441 func (b *filterCndBuilderMetadataOwnerReferencesName) compare(op gotenfilter.CompareOperator, value string) *FilterBuilder { 1442 return b.builder.addCond(&FilterConditionCompare{ 1443 Operator: op, 1444 Policy_FieldPathValue: NewPolicyFieldPathBuilder().Metadata().OwnerReferences().Name().WithValue(value), 1445 }) 1446 } 1447 1448 type filterCndBuilderMetadataOwnerReferencesRegion struct { 1449 builder *FilterBuilder 1450 } 1451 1452 func (b *filterCndBuilderMetadataOwnerReferencesRegion) Eq(value string) *FilterBuilder { 1453 return b.compare(gotenfilter.Eq, value) 1454 } 1455 1456 func (b *filterCndBuilderMetadataOwnerReferencesRegion) Neq(value string) *FilterBuilder { 1457 return b.compare(gotenfilter.Neq, value) 1458 } 1459 1460 func (b *filterCndBuilderMetadataOwnerReferencesRegion) Gt(value string) *FilterBuilder { 1461 return b.compare(gotenfilter.Gt, value) 1462 } 1463 1464 func (b *filterCndBuilderMetadataOwnerReferencesRegion) Gte(value string) *FilterBuilder { 1465 return b.compare(gotenfilter.Gte, value) 1466 } 1467 1468 func (b *filterCndBuilderMetadataOwnerReferencesRegion) Lt(value string) *FilterBuilder { 1469 return b.compare(gotenfilter.Lt, value) 1470 } 1471 1472 func (b *filterCndBuilderMetadataOwnerReferencesRegion) Lte(value string) *FilterBuilder { 1473 return b.compare(gotenfilter.Lte, value) 1474 } 1475 1476 func (b *filterCndBuilderMetadataOwnerReferencesRegion) In(values []string) *FilterBuilder { 1477 return b.builder.addCond(&FilterConditionIn{ 1478 Policy_FieldPathArrayOfValues: NewPolicyFieldPathBuilder().Metadata().OwnerReferences().Region().WithArrayOfValues(values), 1479 }) 1480 } 1481 1482 func (b *filterCndBuilderMetadataOwnerReferencesRegion) NotIn(values []string) *FilterBuilder { 1483 return b.builder.addCond(&FilterConditionNotIn{ 1484 Policy_FieldPathArrayOfValues: NewPolicyFieldPathBuilder().Metadata().OwnerReferences().Region().WithArrayOfValues(values), 1485 }) 1486 } 1487 1488 func (b *filterCndBuilderMetadataOwnerReferencesRegion) IsNull() *FilterBuilder { 1489 return b.builder.addCond(&FilterConditionIsNull{ 1490 FieldPath: NewPolicyFieldPathBuilder().Metadata().OwnerReferences().Region().FieldPath(), 1491 }) 1492 } 1493 1494 func (b *filterCndBuilderMetadataOwnerReferencesRegion) IsNan() *FilterBuilder { 1495 return b.builder.addCond(&FilterConditionIsNaN{ 1496 FieldPath: NewPolicyFieldPathBuilder().Metadata().OwnerReferences().Region().FieldPath(), 1497 }) 1498 } 1499 1500 func (b *filterCndBuilderMetadataOwnerReferencesRegion) compare(op gotenfilter.CompareOperator, value string) *FilterBuilder { 1501 return b.builder.addCond(&FilterConditionCompare{ 1502 Operator: op, 1503 Policy_FieldPathValue: NewPolicyFieldPathBuilder().Metadata().OwnerReferences().Region().WithValue(value), 1504 }) 1505 } 1506 1507 type filterCndBuilderMetadataOwnerReferencesController struct { 1508 builder *FilterBuilder 1509 } 1510 1511 func (b *filterCndBuilderMetadataOwnerReferencesController) Eq(value bool) *FilterBuilder { 1512 return b.compare(gotenfilter.Eq, value) 1513 } 1514 1515 func (b *filterCndBuilderMetadataOwnerReferencesController) Neq(value bool) *FilterBuilder { 1516 return b.compare(gotenfilter.Neq, value) 1517 } 1518 1519 func (b *filterCndBuilderMetadataOwnerReferencesController) Gt(value bool) *FilterBuilder { 1520 return b.compare(gotenfilter.Gt, value) 1521 } 1522 1523 func (b *filterCndBuilderMetadataOwnerReferencesController) Gte(value bool) *FilterBuilder { 1524 return b.compare(gotenfilter.Gte, value) 1525 } 1526 1527 func (b *filterCndBuilderMetadataOwnerReferencesController) Lt(value bool) *FilterBuilder { 1528 return b.compare(gotenfilter.Lt, value) 1529 } 1530 1531 func (b *filterCndBuilderMetadataOwnerReferencesController) Lte(value bool) *FilterBuilder { 1532 return b.compare(gotenfilter.Lte, value) 1533 } 1534 1535 func (b *filterCndBuilderMetadataOwnerReferencesController) In(values []bool) *FilterBuilder { 1536 return b.builder.addCond(&FilterConditionIn{ 1537 Policy_FieldPathArrayOfValues: NewPolicyFieldPathBuilder().Metadata().OwnerReferences().Controller().WithArrayOfValues(values), 1538 }) 1539 } 1540 1541 func (b *filterCndBuilderMetadataOwnerReferencesController) NotIn(values []bool) *FilterBuilder { 1542 return b.builder.addCond(&FilterConditionNotIn{ 1543 Policy_FieldPathArrayOfValues: NewPolicyFieldPathBuilder().Metadata().OwnerReferences().Controller().WithArrayOfValues(values), 1544 }) 1545 } 1546 1547 func (b *filterCndBuilderMetadataOwnerReferencesController) IsNull() *FilterBuilder { 1548 return b.builder.addCond(&FilterConditionIsNull{ 1549 FieldPath: NewPolicyFieldPathBuilder().Metadata().OwnerReferences().Controller().FieldPath(), 1550 }) 1551 } 1552 1553 func (b *filterCndBuilderMetadataOwnerReferencesController) IsNan() *FilterBuilder { 1554 return b.builder.addCond(&FilterConditionIsNaN{ 1555 FieldPath: NewPolicyFieldPathBuilder().Metadata().OwnerReferences().Controller().FieldPath(), 1556 }) 1557 } 1558 1559 func (b *filterCndBuilderMetadataOwnerReferencesController) compare(op gotenfilter.CompareOperator, value bool) *FilterBuilder { 1560 return b.builder.addCond(&FilterConditionCompare{ 1561 Operator: op, 1562 Policy_FieldPathValue: NewPolicyFieldPathBuilder().Metadata().OwnerReferences().Controller().WithValue(value), 1563 }) 1564 } 1565 1566 type filterCndBuilderMetadataOwnerReferencesRequiresOwnerReference struct { 1567 builder *FilterBuilder 1568 } 1569 1570 func (b *filterCndBuilderMetadataOwnerReferencesRequiresOwnerReference) Eq(value bool) *FilterBuilder { 1571 return b.compare(gotenfilter.Eq, value) 1572 } 1573 1574 func (b *filterCndBuilderMetadataOwnerReferencesRequiresOwnerReference) Neq(value bool) *FilterBuilder { 1575 return b.compare(gotenfilter.Neq, value) 1576 } 1577 1578 func (b *filterCndBuilderMetadataOwnerReferencesRequiresOwnerReference) Gt(value bool) *FilterBuilder { 1579 return b.compare(gotenfilter.Gt, value) 1580 } 1581 1582 func (b *filterCndBuilderMetadataOwnerReferencesRequiresOwnerReference) Gte(value bool) *FilterBuilder { 1583 return b.compare(gotenfilter.Gte, value) 1584 } 1585 1586 func (b *filterCndBuilderMetadataOwnerReferencesRequiresOwnerReference) Lt(value bool) *FilterBuilder { 1587 return b.compare(gotenfilter.Lt, value) 1588 } 1589 1590 func (b *filterCndBuilderMetadataOwnerReferencesRequiresOwnerReference) Lte(value bool) *FilterBuilder { 1591 return b.compare(gotenfilter.Lte, value) 1592 } 1593 1594 func (b *filterCndBuilderMetadataOwnerReferencesRequiresOwnerReference) In(values []bool) *FilterBuilder { 1595 return b.builder.addCond(&FilterConditionIn{ 1596 Policy_FieldPathArrayOfValues: NewPolicyFieldPathBuilder().Metadata().OwnerReferences().RequiresOwnerReference().WithArrayOfValues(values), 1597 }) 1598 } 1599 1600 func (b *filterCndBuilderMetadataOwnerReferencesRequiresOwnerReference) NotIn(values []bool) *FilterBuilder { 1601 return b.builder.addCond(&FilterConditionNotIn{ 1602 Policy_FieldPathArrayOfValues: NewPolicyFieldPathBuilder().Metadata().OwnerReferences().RequiresOwnerReference().WithArrayOfValues(values), 1603 }) 1604 } 1605 1606 func (b *filterCndBuilderMetadataOwnerReferencesRequiresOwnerReference) IsNull() *FilterBuilder { 1607 return b.builder.addCond(&FilterConditionIsNull{ 1608 FieldPath: NewPolicyFieldPathBuilder().Metadata().OwnerReferences().RequiresOwnerReference().FieldPath(), 1609 }) 1610 } 1611 1612 func (b *filterCndBuilderMetadataOwnerReferencesRequiresOwnerReference) IsNan() *FilterBuilder { 1613 return b.builder.addCond(&FilterConditionIsNaN{ 1614 FieldPath: NewPolicyFieldPathBuilder().Metadata().OwnerReferences().RequiresOwnerReference().FieldPath(), 1615 }) 1616 } 1617 1618 func (b *filterCndBuilderMetadataOwnerReferencesRequiresOwnerReference) compare(op gotenfilter.CompareOperator, value bool) *FilterBuilder { 1619 return b.builder.addCond(&FilterConditionCompare{ 1620 Operator: op, 1621 Policy_FieldPathValue: NewPolicyFieldPathBuilder().Metadata().OwnerReferences().RequiresOwnerReference().WithValue(value), 1622 }) 1623 } 1624 1625 type filterCndBuilderMetadataOwnerReferencesUnsetOnDelete struct { 1626 builder *FilterBuilder 1627 } 1628 1629 func (b *filterCndBuilderMetadataOwnerReferencesUnsetOnDelete) Eq(value bool) *FilterBuilder { 1630 return b.compare(gotenfilter.Eq, value) 1631 } 1632 1633 func (b *filterCndBuilderMetadataOwnerReferencesUnsetOnDelete) Neq(value bool) *FilterBuilder { 1634 return b.compare(gotenfilter.Neq, value) 1635 } 1636 1637 func (b *filterCndBuilderMetadataOwnerReferencesUnsetOnDelete) Gt(value bool) *FilterBuilder { 1638 return b.compare(gotenfilter.Gt, value) 1639 } 1640 1641 func (b *filterCndBuilderMetadataOwnerReferencesUnsetOnDelete) Gte(value bool) *FilterBuilder { 1642 return b.compare(gotenfilter.Gte, value) 1643 } 1644 1645 func (b *filterCndBuilderMetadataOwnerReferencesUnsetOnDelete) Lt(value bool) *FilterBuilder { 1646 return b.compare(gotenfilter.Lt, value) 1647 } 1648 1649 func (b *filterCndBuilderMetadataOwnerReferencesUnsetOnDelete) Lte(value bool) *FilterBuilder { 1650 return b.compare(gotenfilter.Lte, value) 1651 } 1652 1653 func (b *filterCndBuilderMetadataOwnerReferencesUnsetOnDelete) In(values []bool) *FilterBuilder { 1654 return b.builder.addCond(&FilterConditionIn{ 1655 Policy_FieldPathArrayOfValues: NewPolicyFieldPathBuilder().Metadata().OwnerReferences().UnsetOnDelete().WithArrayOfValues(values), 1656 }) 1657 } 1658 1659 func (b *filterCndBuilderMetadataOwnerReferencesUnsetOnDelete) NotIn(values []bool) *FilterBuilder { 1660 return b.builder.addCond(&FilterConditionNotIn{ 1661 Policy_FieldPathArrayOfValues: NewPolicyFieldPathBuilder().Metadata().OwnerReferences().UnsetOnDelete().WithArrayOfValues(values), 1662 }) 1663 } 1664 1665 func (b *filterCndBuilderMetadataOwnerReferencesUnsetOnDelete) IsNull() *FilterBuilder { 1666 return b.builder.addCond(&FilterConditionIsNull{ 1667 FieldPath: NewPolicyFieldPathBuilder().Metadata().OwnerReferences().UnsetOnDelete().FieldPath(), 1668 }) 1669 } 1670 1671 func (b *filterCndBuilderMetadataOwnerReferencesUnsetOnDelete) IsNan() *FilterBuilder { 1672 return b.builder.addCond(&FilterConditionIsNaN{ 1673 FieldPath: NewPolicyFieldPathBuilder().Metadata().OwnerReferences().UnsetOnDelete().FieldPath(), 1674 }) 1675 } 1676 1677 func (b *filterCndBuilderMetadataOwnerReferencesUnsetOnDelete) compare(op gotenfilter.CompareOperator, value bool) *FilterBuilder { 1678 return b.builder.addCond(&FilterConditionCompare{ 1679 Operator: op, 1680 Policy_FieldPathValue: NewPolicyFieldPathBuilder().Metadata().OwnerReferences().UnsetOnDelete().WithValue(value), 1681 }) 1682 } 1683 1684 type filterCndBuilderMetadataShards struct { 1685 builder *FilterBuilder 1686 } 1687 1688 func (b *filterCndBuilderMetadataShards) Eq(value map[string]int64) *FilterBuilder { 1689 return b.compare(gotenfilter.Eq, value) 1690 } 1691 1692 func (b *filterCndBuilderMetadataShards) Neq(value map[string]int64) *FilterBuilder { 1693 return b.compare(gotenfilter.Neq, value) 1694 } 1695 1696 func (b *filterCndBuilderMetadataShards) Gt(value map[string]int64) *FilterBuilder { 1697 return b.compare(gotenfilter.Gt, value) 1698 } 1699 1700 func (b *filterCndBuilderMetadataShards) Gte(value map[string]int64) *FilterBuilder { 1701 return b.compare(gotenfilter.Gte, value) 1702 } 1703 1704 func (b *filterCndBuilderMetadataShards) Lt(value map[string]int64) *FilterBuilder { 1705 return b.compare(gotenfilter.Lt, value) 1706 } 1707 1708 func (b *filterCndBuilderMetadataShards) Lte(value map[string]int64) *FilterBuilder { 1709 return b.compare(gotenfilter.Lte, value) 1710 } 1711 1712 func (b *filterCndBuilderMetadataShards) In(values []map[string]int64) *FilterBuilder { 1713 return b.builder.addCond(&FilterConditionIn{ 1714 Policy_FieldPathArrayOfValues: NewPolicyFieldPathBuilder().Metadata().Shards().WithArrayOfValues(values), 1715 }) 1716 } 1717 1718 func (b *filterCndBuilderMetadataShards) NotIn(values []map[string]int64) *FilterBuilder { 1719 return b.builder.addCond(&FilterConditionNotIn{ 1720 Policy_FieldPathArrayOfValues: NewPolicyFieldPathBuilder().Metadata().Shards().WithArrayOfValues(values), 1721 }) 1722 } 1723 1724 func (b *filterCndBuilderMetadataShards) IsNull() *FilterBuilder { 1725 return b.builder.addCond(&FilterConditionIsNull{ 1726 FieldPath: NewPolicyFieldPathBuilder().Metadata().Shards().FieldPath(), 1727 }) 1728 } 1729 1730 func (b *filterCndBuilderMetadataShards) IsNan() *FilterBuilder { 1731 return b.builder.addCond(&FilterConditionIsNaN{ 1732 FieldPath: NewPolicyFieldPathBuilder().Metadata().Shards().FieldPath(), 1733 }) 1734 } 1735 1736 func (b *filterCndBuilderMetadataShards) compare(op gotenfilter.CompareOperator, value map[string]int64) *FilterBuilder { 1737 return b.builder.addCond(&FilterConditionCompare{ 1738 Operator: op, 1739 Policy_FieldPathValue: NewPolicyFieldPathBuilder().Metadata().Shards().WithValue(value), 1740 }) 1741 } 1742 1743 func (b *filterCndBuilderMetadataShards) WithKey(key string) *mapFilterCndBuilderMetadataShards { 1744 return &mapFilterCndBuilderMetadataShards{builder: b.builder, key: key} 1745 } 1746 1747 type mapFilterCndBuilderMetadataShards struct { 1748 builder *FilterBuilder 1749 key string 1750 } 1751 1752 func (b *mapFilterCndBuilderMetadataShards) Eq(value int64) *FilterBuilder { 1753 return b.compare(gotenfilter.Eq, value) 1754 } 1755 1756 func (b *mapFilterCndBuilderMetadataShards) Neq(value int64) *FilterBuilder { 1757 return b.compare(gotenfilter.Neq, value) 1758 } 1759 1760 func (b *mapFilterCndBuilderMetadataShards) Gt(value int64) *FilterBuilder { 1761 return b.compare(gotenfilter.Gt, value) 1762 } 1763 1764 func (b *mapFilterCndBuilderMetadataShards) Gte(value int64) *FilterBuilder { 1765 return b.compare(gotenfilter.Gte, value) 1766 } 1767 1768 func (b *mapFilterCndBuilderMetadataShards) Lt(value int64) *FilterBuilder { 1769 return b.compare(gotenfilter.Lt, value) 1770 } 1771 1772 func (b *mapFilterCndBuilderMetadataShards) Lte(value int64) *FilterBuilder { 1773 return b.compare(gotenfilter.Lte, value) 1774 } 1775 1776 func (b *mapFilterCndBuilderMetadataShards) In(values []int64) *FilterBuilder { 1777 return b.builder.addCond(&FilterConditionIn{ 1778 Policy_FieldPathArrayOfValues: NewPolicyFieldPathBuilder().Metadata().Shards().WithKey(b.key).WithArrayOfValues(values), 1779 }) 1780 } 1781 1782 func (b *mapFilterCndBuilderMetadataShards) NotIn(values []int64) *FilterBuilder { 1783 return b.builder.addCond(&FilterConditionNotIn{ 1784 Policy_FieldPathArrayOfValues: NewPolicyFieldPathBuilder().Metadata().Shards().WithKey(b.key).WithArrayOfValues(values), 1785 }) 1786 } 1787 1788 func (b *mapFilterCndBuilderMetadataShards) IsNull() *FilterBuilder { 1789 return b.builder.addCond(&FilterConditionIsNull{ 1790 FieldPath: NewPolicyFieldPathBuilder().Metadata().Shards().WithKey(b.key).FieldPath(), 1791 }) 1792 } 1793 1794 func (b *mapFilterCndBuilderMetadataShards) IsNan() *FilterBuilder { 1795 return b.builder.addCond(&FilterConditionIsNaN{ 1796 FieldPath: NewPolicyFieldPathBuilder().Metadata().Shards().WithKey(b.key).FieldPath(), 1797 }) 1798 } 1799 1800 func (b *mapFilterCndBuilderMetadataShards) compare(op gotenfilter.CompareOperator, value int64) *FilterBuilder { 1801 return b.builder.addCond(&FilterConditionCompare{ 1802 Operator: op, 1803 Policy_FieldPathValue: NewPolicyFieldPathBuilder().Metadata().Shards().WithKey(b.key).WithValue(value), 1804 }) 1805 } 1806 1807 type filterCndBuilderMetadataSyncing struct { 1808 builder *FilterBuilder 1809 } 1810 1811 func (b *filterCndBuilderMetadataSyncing) Eq(value *meta.SyncingMeta) *FilterBuilder { 1812 return b.compare(gotenfilter.Eq, value) 1813 } 1814 1815 func (b *filterCndBuilderMetadataSyncing) Neq(value *meta.SyncingMeta) *FilterBuilder { 1816 return b.compare(gotenfilter.Neq, value) 1817 } 1818 1819 func (b *filterCndBuilderMetadataSyncing) Gt(value *meta.SyncingMeta) *FilterBuilder { 1820 return b.compare(gotenfilter.Gt, value) 1821 } 1822 1823 func (b *filterCndBuilderMetadataSyncing) Gte(value *meta.SyncingMeta) *FilterBuilder { 1824 return b.compare(gotenfilter.Gte, value) 1825 } 1826 1827 func (b *filterCndBuilderMetadataSyncing) Lt(value *meta.SyncingMeta) *FilterBuilder { 1828 return b.compare(gotenfilter.Lt, value) 1829 } 1830 1831 func (b *filterCndBuilderMetadataSyncing) Lte(value *meta.SyncingMeta) *FilterBuilder { 1832 return b.compare(gotenfilter.Lte, value) 1833 } 1834 1835 func (b *filterCndBuilderMetadataSyncing) In(values []*meta.SyncingMeta) *FilterBuilder { 1836 return b.builder.addCond(&FilterConditionIn{ 1837 Policy_FieldPathArrayOfValues: NewPolicyFieldPathBuilder().Metadata().Syncing().WithArrayOfValues(values), 1838 }) 1839 } 1840 1841 func (b *filterCndBuilderMetadataSyncing) NotIn(values []*meta.SyncingMeta) *FilterBuilder { 1842 return b.builder.addCond(&FilterConditionNotIn{ 1843 Policy_FieldPathArrayOfValues: NewPolicyFieldPathBuilder().Metadata().Syncing().WithArrayOfValues(values), 1844 }) 1845 } 1846 1847 func (b *filterCndBuilderMetadataSyncing) IsNull() *FilterBuilder { 1848 return b.builder.addCond(&FilterConditionIsNull{ 1849 FieldPath: NewPolicyFieldPathBuilder().Metadata().Syncing().FieldPath(), 1850 }) 1851 } 1852 1853 func (b *filterCndBuilderMetadataSyncing) IsNan() *FilterBuilder { 1854 return b.builder.addCond(&FilterConditionIsNaN{ 1855 FieldPath: NewPolicyFieldPathBuilder().Metadata().Syncing().FieldPath(), 1856 }) 1857 } 1858 1859 func (b *filterCndBuilderMetadataSyncing) compare(op gotenfilter.CompareOperator, value *meta.SyncingMeta) *FilterBuilder { 1860 return b.builder.addCond(&FilterConditionCompare{ 1861 Operator: op, 1862 Policy_FieldPathValue: NewPolicyFieldPathBuilder().Metadata().Syncing().WithValue(value), 1863 }) 1864 } 1865 1866 func (b *filterCndBuilderMetadataSyncing) OwningRegion() *filterCndBuilderMetadataSyncingOwningRegion { 1867 return &filterCndBuilderMetadataSyncingOwningRegion{builder: b.builder} 1868 } 1869 1870 func (b *filterCndBuilderMetadataSyncing) Regions() *filterCndBuilderMetadataSyncingRegions { 1871 return &filterCndBuilderMetadataSyncingRegions{builder: b.builder} 1872 } 1873 1874 type filterCndBuilderMetadataSyncingOwningRegion struct { 1875 builder *FilterBuilder 1876 } 1877 1878 func (b *filterCndBuilderMetadataSyncingOwningRegion) Eq(value string) *FilterBuilder { 1879 return b.compare(gotenfilter.Eq, value) 1880 } 1881 1882 func (b *filterCndBuilderMetadataSyncingOwningRegion) Neq(value string) *FilterBuilder { 1883 return b.compare(gotenfilter.Neq, value) 1884 } 1885 1886 func (b *filterCndBuilderMetadataSyncingOwningRegion) Gt(value string) *FilterBuilder { 1887 return b.compare(gotenfilter.Gt, value) 1888 } 1889 1890 func (b *filterCndBuilderMetadataSyncingOwningRegion) Gte(value string) *FilterBuilder { 1891 return b.compare(gotenfilter.Gte, value) 1892 } 1893 1894 func (b *filterCndBuilderMetadataSyncingOwningRegion) Lt(value string) *FilterBuilder { 1895 return b.compare(gotenfilter.Lt, value) 1896 } 1897 1898 func (b *filterCndBuilderMetadataSyncingOwningRegion) Lte(value string) *FilterBuilder { 1899 return b.compare(gotenfilter.Lte, value) 1900 } 1901 1902 func (b *filterCndBuilderMetadataSyncingOwningRegion) In(values []string) *FilterBuilder { 1903 return b.builder.addCond(&FilterConditionIn{ 1904 Policy_FieldPathArrayOfValues: NewPolicyFieldPathBuilder().Metadata().Syncing().OwningRegion().WithArrayOfValues(values), 1905 }) 1906 } 1907 1908 func (b *filterCndBuilderMetadataSyncingOwningRegion) NotIn(values []string) *FilterBuilder { 1909 return b.builder.addCond(&FilterConditionNotIn{ 1910 Policy_FieldPathArrayOfValues: NewPolicyFieldPathBuilder().Metadata().Syncing().OwningRegion().WithArrayOfValues(values), 1911 }) 1912 } 1913 1914 func (b *filterCndBuilderMetadataSyncingOwningRegion) IsNull() *FilterBuilder { 1915 return b.builder.addCond(&FilterConditionIsNull{ 1916 FieldPath: NewPolicyFieldPathBuilder().Metadata().Syncing().OwningRegion().FieldPath(), 1917 }) 1918 } 1919 1920 func (b *filterCndBuilderMetadataSyncingOwningRegion) IsNan() *FilterBuilder { 1921 return b.builder.addCond(&FilterConditionIsNaN{ 1922 FieldPath: NewPolicyFieldPathBuilder().Metadata().Syncing().OwningRegion().FieldPath(), 1923 }) 1924 } 1925 1926 func (b *filterCndBuilderMetadataSyncingOwningRegion) compare(op gotenfilter.CompareOperator, value string) *FilterBuilder { 1927 return b.builder.addCond(&FilterConditionCompare{ 1928 Operator: op, 1929 Policy_FieldPathValue: NewPolicyFieldPathBuilder().Metadata().Syncing().OwningRegion().WithValue(value), 1930 }) 1931 } 1932 1933 type filterCndBuilderMetadataSyncingRegions struct { 1934 builder *FilterBuilder 1935 } 1936 1937 func (b *filterCndBuilderMetadataSyncingRegions) Eq(value []string) *FilterBuilder { 1938 return b.compare(gotenfilter.Eq, value) 1939 } 1940 1941 func (b *filterCndBuilderMetadataSyncingRegions) Neq(value []string) *FilterBuilder { 1942 return b.compare(gotenfilter.Neq, value) 1943 } 1944 1945 func (b *filterCndBuilderMetadataSyncingRegions) Gt(value []string) *FilterBuilder { 1946 return b.compare(gotenfilter.Gt, value) 1947 } 1948 1949 func (b *filterCndBuilderMetadataSyncingRegions) Gte(value []string) *FilterBuilder { 1950 return b.compare(gotenfilter.Gte, value) 1951 } 1952 1953 func (b *filterCndBuilderMetadataSyncingRegions) Lt(value []string) *FilterBuilder { 1954 return b.compare(gotenfilter.Lt, value) 1955 } 1956 1957 func (b *filterCndBuilderMetadataSyncingRegions) Lte(value []string) *FilterBuilder { 1958 return b.compare(gotenfilter.Lte, value) 1959 } 1960 1961 func (b *filterCndBuilderMetadataSyncingRegions) In(values [][]string) *FilterBuilder { 1962 return b.builder.addCond(&FilterConditionIn{ 1963 Policy_FieldPathArrayOfValues: NewPolicyFieldPathBuilder().Metadata().Syncing().Regions().WithArrayOfValues(values), 1964 }) 1965 } 1966 1967 func (b *filterCndBuilderMetadataSyncingRegions) NotIn(values [][]string) *FilterBuilder { 1968 return b.builder.addCond(&FilterConditionNotIn{ 1969 Policy_FieldPathArrayOfValues: NewPolicyFieldPathBuilder().Metadata().Syncing().Regions().WithArrayOfValues(values), 1970 }) 1971 } 1972 1973 func (b *filterCndBuilderMetadataSyncingRegions) IsNull() *FilterBuilder { 1974 return b.builder.addCond(&FilterConditionIsNull{ 1975 FieldPath: NewPolicyFieldPathBuilder().Metadata().Syncing().Regions().FieldPath(), 1976 }) 1977 } 1978 1979 func (b *filterCndBuilderMetadataSyncingRegions) IsNan() *FilterBuilder { 1980 return b.builder.addCond(&FilterConditionIsNaN{ 1981 FieldPath: NewPolicyFieldPathBuilder().Metadata().Syncing().Regions().FieldPath(), 1982 }) 1983 } 1984 1985 func (b *filterCndBuilderMetadataSyncingRegions) Contains(value string) *FilterBuilder { 1986 return b.builder.addCond(&FilterConditionContains{ 1987 Type: gotenresource.ConditionContainsTypeValue, 1988 FieldPath: NewPolicyFieldPathBuilder().Metadata().Syncing().Regions().FieldPath(), 1989 Value: NewPolicyFieldPathBuilder().Metadata().Syncing().Regions().WithItemValue(value), 1990 }) 1991 } 1992 1993 func (b *filterCndBuilderMetadataSyncingRegions) ContainsAnyOf(values []string) *FilterBuilder { 1994 pathSelector := NewPolicyFieldPathBuilder().Metadata().Syncing().Regions() 1995 itemValues := make([]Policy_FieldPathArrayItemValue, 0, len(values)) 1996 for _, value := range values { 1997 itemValues = append(itemValues, pathSelector.WithItemValue(value)) 1998 } 1999 return b.builder.addCond(&FilterConditionContains{ 2000 Type: gotenresource.ConditionContainsTypeAny, 2001 FieldPath: NewPolicyFieldPathBuilder().Metadata().Syncing().Regions().FieldPath(), 2002 Values: itemValues, 2003 }) 2004 } 2005 2006 func (b *filterCndBuilderMetadataSyncingRegions) ContainsAll(values []string) *FilterBuilder { 2007 pathSelector := NewPolicyFieldPathBuilder().Metadata().Syncing().Regions() 2008 itemValues := make([]Policy_FieldPathArrayItemValue, 0, len(values)) 2009 for _, value := range values { 2010 itemValues = append(itemValues, pathSelector.WithItemValue(value)) 2011 } 2012 return b.builder.addCond(&FilterConditionContains{ 2013 Type: gotenresource.ConditionContainsTypeAll, 2014 FieldPath: NewPolicyFieldPathBuilder().Metadata().Syncing().Regions().FieldPath(), 2015 Values: itemValues, 2016 }) 2017 } 2018 2019 func (b *filterCndBuilderMetadataSyncingRegions) compare(op gotenfilter.CompareOperator, value []string) *FilterBuilder { 2020 return b.builder.addCond(&FilterConditionCompare{ 2021 Operator: op, 2022 Policy_FieldPathValue: NewPolicyFieldPathBuilder().Metadata().Syncing().Regions().WithValue(value), 2023 }) 2024 } 2025 2026 type filterCndBuilderMetadataLifecycle struct { 2027 builder *FilterBuilder 2028 } 2029 2030 func (b *filterCndBuilderMetadataLifecycle) Eq(value *meta.Lifecycle) *FilterBuilder { 2031 return b.compare(gotenfilter.Eq, value) 2032 } 2033 2034 func (b *filterCndBuilderMetadataLifecycle) Neq(value *meta.Lifecycle) *FilterBuilder { 2035 return b.compare(gotenfilter.Neq, value) 2036 } 2037 2038 func (b *filterCndBuilderMetadataLifecycle) Gt(value *meta.Lifecycle) *FilterBuilder { 2039 return b.compare(gotenfilter.Gt, value) 2040 } 2041 2042 func (b *filterCndBuilderMetadataLifecycle) Gte(value *meta.Lifecycle) *FilterBuilder { 2043 return b.compare(gotenfilter.Gte, value) 2044 } 2045 2046 func (b *filterCndBuilderMetadataLifecycle) Lt(value *meta.Lifecycle) *FilterBuilder { 2047 return b.compare(gotenfilter.Lt, value) 2048 } 2049 2050 func (b *filterCndBuilderMetadataLifecycle) Lte(value *meta.Lifecycle) *FilterBuilder { 2051 return b.compare(gotenfilter.Lte, value) 2052 } 2053 2054 func (b *filterCndBuilderMetadataLifecycle) In(values []*meta.Lifecycle) *FilterBuilder { 2055 return b.builder.addCond(&FilterConditionIn{ 2056 Policy_FieldPathArrayOfValues: NewPolicyFieldPathBuilder().Metadata().Lifecycle().WithArrayOfValues(values), 2057 }) 2058 } 2059 2060 func (b *filterCndBuilderMetadataLifecycle) NotIn(values []*meta.Lifecycle) *FilterBuilder { 2061 return b.builder.addCond(&FilterConditionNotIn{ 2062 Policy_FieldPathArrayOfValues: NewPolicyFieldPathBuilder().Metadata().Lifecycle().WithArrayOfValues(values), 2063 }) 2064 } 2065 2066 func (b *filterCndBuilderMetadataLifecycle) IsNull() *FilterBuilder { 2067 return b.builder.addCond(&FilterConditionIsNull{ 2068 FieldPath: NewPolicyFieldPathBuilder().Metadata().Lifecycle().FieldPath(), 2069 }) 2070 } 2071 2072 func (b *filterCndBuilderMetadataLifecycle) IsNan() *FilterBuilder { 2073 return b.builder.addCond(&FilterConditionIsNaN{ 2074 FieldPath: NewPolicyFieldPathBuilder().Metadata().Lifecycle().FieldPath(), 2075 }) 2076 } 2077 2078 func (b *filterCndBuilderMetadataLifecycle) compare(op gotenfilter.CompareOperator, value *meta.Lifecycle) *FilterBuilder { 2079 return b.builder.addCond(&FilterConditionCompare{ 2080 Operator: op, 2081 Policy_FieldPathValue: NewPolicyFieldPathBuilder().Metadata().Lifecycle().WithValue(value), 2082 }) 2083 } 2084 2085 func (b *filterCndBuilderMetadataLifecycle) State() *filterCndBuilderMetadataLifecycleState { 2086 return &filterCndBuilderMetadataLifecycleState{builder: b.builder} 2087 } 2088 2089 func (b *filterCndBuilderMetadataLifecycle) BlockDeletion() *filterCndBuilderMetadataLifecycleBlockDeletion { 2090 return &filterCndBuilderMetadataLifecycleBlockDeletion{builder: b.builder} 2091 } 2092 2093 type filterCndBuilderMetadataLifecycleState struct { 2094 builder *FilterBuilder 2095 } 2096 2097 func (b *filterCndBuilderMetadataLifecycleState) Eq(value meta.Lifecycle_State) *FilterBuilder { 2098 return b.compare(gotenfilter.Eq, value) 2099 } 2100 2101 func (b *filterCndBuilderMetadataLifecycleState) Neq(value meta.Lifecycle_State) *FilterBuilder { 2102 return b.compare(gotenfilter.Neq, value) 2103 } 2104 2105 func (b *filterCndBuilderMetadataLifecycleState) Gt(value meta.Lifecycle_State) *FilterBuilder { 2106 return b.compare(gotenfilter.Gt, value) 2107 } 2108 2109 func (b *filterCndBuilderMetadataLifecycleState) Gte(value meta.Lifecycle_State) *FilterBuilder { 2110 return b.compare(gotenfilter.Gte, value) 2111 } 2112 2113 func (b *filterCndBuilderMetadataLifecycleState) Lt(value meta.Lifecycle_State) *FilterBuilder { 2114 return b.compare(gotenfilter.Lt, value) 2115 } 2116 2117 func (b *filterCndBuilderMetadataLifecycleState) Lte(value meta.Lifecycle_State) *FilterBuilder { 2118 return b.compare(gotenfilter.Lte, value) 2119 } 2120 2121 func (b *filterCndBuilderMetadataLifecycleState) In(values []meta.Lifecycle_State) *FilterBuilder { 2122 return b.builder.addCond(&FilterConditionIn{ 2123 Policy_FieldPathArrayOfValues: NewPolicyFieldPathBuilder().Metadata().Lifecycle().State().WithArrayOfValues(values), 2124 }) 2125 } 2126 2127 func (b *filterCndBuilderMetadataLifecycleState) NotIn(values []meta.Lifecycle_State) *FilterBuilder { 2128 return b.builder.addCond(&FilterConditionNotIn{ 2129 Policy_FieldPathArrayOfValues: NewPolicyFieldPathBuilder().Metadata().Lifecycle().State().WithArrayOfValues(values), 2130 }) 2131 } 2132 2133 func (b *filterCndBuilderMetadataLifecycleState) IsNull() *FilterBuilder { 2134 return b.builder.addCond(&FilterConditionIsNull{ 2135 FieldPath: NewPolicyFieldPathBuilder().Metadata().Lifecycle().State().FieldPath(), 2136 }) 2137 } 2138 2139 func (b *filterCndBuilderMetadataLifecycleState) IsNan() *FilterBuilder { 2140 return b.builder.addCond(&FilterConditionIsNaN{ 2141 FieldPath: NewPolicyFieldPathBuilder().Metadata().Lifecycle().State().FieldPath(), 2142 }) 2143 } 2144 2145 func (b *filterCndBuilderMetadataLifecycleState) compare(op gotenfilter.CompareOperator, value meta.Lifecycle_State) *FilterBuilder { 2146 return b.builder.addCond(&FilterConditionCompare{ 2147 Operator: op, 2148 Policy_FieldPathValue: NewPolicyFieldPathBuilder().Metadata().Lifecycle().State().WithValue(value), 2149 }) 2150 } 2151 2152 type filterCndBuilderMetadataLifecycleBlockDeletion struct { 2153 builder *FilterBuilder 2154 } 2155 2156 func (b *filterCndBuilderMetadataLifecycleBlockDeletion) Eq(value bool) *FilterBuilder { 2157 return b.compare(gotenfilter.Eq, value) 2158 } 2159 2160 func (b *filterCndBuilderMetadataLifecycleBlockDeletion) Neq(value bool) *FilterBuilder { 2161 return b.compare(gotenfilter.Neq, value) 2162 } 2163 2164 func (b *filterCndBuilderMetadataLifecycleBlockDeletion) Gt(value bool) *FilterBuilder { 2165 return b.compare(gotenfilter.Gt, value) 2166 } 2167 2168 func (b *filterCndBuilderMetadataLifecycleBlockDeletion) Gte(value bool) *FilterBuilder { 2169 return b.compare(gotenfilter.Gte, value) 2170 } 2171 2172 func (b *filterCndBuilderMetadataLifecycleBlockDeletion) Lt(value bool) *FilterBuilder { 2173 return b.compare(gotenfilter.Lt, value) 2174 } 2175 2176 func (b *filterCndBuilderMetadataLifecycleBlockDeletion) Lte(value bool) *FilterBuilder { 2177 return b.compare(gotenfilter.Lte, value) 2178 } 2179 2180 func (b *filterCndBuilderMetadataLifecycleBlockDeletion) In(values []bool) *FilterBuilder { 2181 return b.builder.addCond(&FilterConditionIn{ 2182 Policy_FieldPathArrayOfValues: NewPolicyFieldPathBuilder().Metadata().Lifecycle().BlockDeletion().WithArrayOfValues(values), 2183 }) 2184 } 2185 2186 func (b *filterCndBuilderMetadataLifecycleBlockDeletion) NotIn(values []bool) *FilterBuilder { 2187 return b.builder.addCond(&FilterConditionNotIn{ 2188 Policy_FieldPathArrayOfValues: NewPolicyFieldPathBuilder().Metadata().Lifecycle().BlockDeletion().WithArrayOfValues(values), 2189 }) 2190 } 2191 2192 func (b *filterCndBuilderMetadataLifecycleBlockDeletion) IsNull() *FilterBuilder { 2193 return b.builder.addCond(&FilterConditionIsNull{ 2194 FieldPath: NewPolicyFieldPathBuilder().Metadata().Lifecycle().BlockDeletion().FieldPath(), 2195 }) 2196 } 2197 2198 func (b *filterCndBuilderMetadataLifecycleBlockDeletion) IsNan() *FilterBuilder { 2199 return b.builder.addCond(&FilterConditionIsNaN{ 2200 FieldPath: NewPolicyFieldPathBuilder().Metadata().Lifecycle().BlockDeletion().FieldPath(), 2201 }) 2202 } 2203 2204 func (b *filterCndBuilderMetadataLifecycleBlockDeletion) compare(op gotenfilter.CompareOperator, value bool) *FilterBuilder { 2205 return b.builder.addCond(&FilterConditionCompare{ 2206 Operator: op, 2207 Policy_FieldPathValue: NewPolicyFieldPathBuilder().Metadata().Lifecycle().BlockDeletion().WithValue(value), 2208 }) 2209 } 2210 2211 type filterCndBuilderMetadataServices struct { 2212 builder *FilterBuilder 2213 } 2214 2215 func (b *filterCndBuilderMetadataServices) Eq(value *meta.ServicesInfo) *FilterBuilder { 2216 return b.compare(gotenfilter.Eq, value) 2217 } 2218 2219 func (b *filterCndBuilderMetadataServices) Neq(value *meta.ServicesInfo) *FilterBuilder { 2220 return b.compare(gotenfilter.Neq, value) 2221 } 2222 2223 func (b *filterCndBuilderMetadataServices) Gt(value *meta.ServicesInfo) *FilterBuilder { 2224 return b.compare(gotenfilter.Gt, value) 2225 } 2226 2227 func (b *filterCndBuilderMetadataServices) Gte(value *meta.ServicesInfo) *FilterBuilder { 2228 return b.compare(gotenfilter.Gte, value) 2229 } 2230 2231 func (b *filterCndBuilderMetadataServices) Lt(value *meta.ServicesInfo) *FilterBuilder { 2232 return b.compare(gotenfilter.Lt, value) 2233 } 2234 2235 func (b *filterCndBuilderMetadataServices) Lte(value *meta.ServicesInfo) *FilterBuilder { 2236 return b.compare(gotenfilter.Lte, value) 2237 } 2238 2239 func (b *filterCndBuilderMetadataServices) In(values []*meta.ServicesInfo) *FilterBuilder { 2240 return b.builder.addCond(&FilterConditionIn{ 2241 Policy_FieldPathArrayOfValues: NewPolicyFieldPathBuilder().Metadata().Services().WithArrayOfValues(values), 2242 }) 2243 } 2244 2245 func (b *filterCndBuilderMetadataServices) NotIn(values []*meta.ServicesInfo) *FilterBuilder { 2246 return b.builder.addCond(&FilterConditionNotIn{ 2247 Policy_FieldPathArrayOfValues: NewPolicyFieldPathBuilder().Metadata().Services().WithArrayOfValues(values), 2248 }) 2249 } 2250 2251 func (b *filterCndBuilderMetadataServices) IsNull() *FilterBuilder { 2252 return b.builder.addCond(&FilterConditionIsNull{ 2253 FieldPath: NewPolicyFieldPathBuilder().Metadata().Services().FieldPath(), 2254 }) 2255 } 2256 2257 func (b *filterCndBuilderMetadataServices) IsNan() *FilterBuilder { 2258 return b.builder.addCond(&FilterConditionIsNaN{ 2259 FieldPath: NewPolicyFieldPathBuilder().Metadata().Services().FieldPath(), 2260 }) 2261 } 2262 2263 func (b *filterCndBuilderMetadataServices) compare(op gotenfilter.CompareOperator, value *meta.ServicesInfo) *FilterBuilder { 2264 return b.builder.addCond(&FilterConditionCompare{ 2265 Operator: op, 2266 Policy_FieldPathValue: NewPolicyFieldPathBuilder().Metadata().Services().WithValue(value), 2267 }) 2268 } 2269 2270 func (b *filterCndBuilderMetadataServices) OwningService() *filterCndBuilderMetadataServicesOwningService { 2271 return &filterCndBuilderMetadataServicesOwningService{builder: b.builder} 2272 } 2273 2274 func (b *filterCndBuilderMetadataServices) AllowedServices() *filterCndBuilderMetadataServicesAllowedServices { 2275 return &filterCndBuilderMetadataServicesAllowedServices{builder: b.builder} 2276 } 2277 2278 type filterCndBuilderMetadataServicesOwningService struct { 2279 builder *FilterBuilder 2280 } 2281 2282 func (b *filterCndBuilderMetadataServicesOwningService) Eq(value string) *FilterBuilder { 2283 return b.compare(gotenfilter.Eq, value) 2284 } 2285 2286 func (b *filterCndBuilderMetadataServicesOwningService) Neq(value string) *FilterBuilder { 2287 return b.compare(gotenfilter.Neq, value) 2288 } 2289 2290 func (b *filterCndBuilderMetadataServicesOwningService) Gt(value string) *FilterBuilder { 2291 return b.compare(gotenfilter.Gt, value) 2292 } 2293 2294 func (b *filterCndBuilderMetadataServicesOwningService) Gte(value string) *FilterBuilder { 2295 return b.compare(gotenfilter.Gte, value) 2296 } 2297 2298 func (b *filterCndBuilderMetadataServicesOwningService) Lt(value string) *FilterBuilder { 2299 return b.compare(gotenfilter.Lt, value) 2300 } 2301 2302 func (b *filterCndBuilderMetadataServicesOwningService) Lte(value string) *FilterBuilder { 2303 return b.compare(gotenfilter.Lte, value) 2304 } 2305 2306 func (b *filterCndBuilderMetadataServicesOwningService) In(values []string) *FilterBuilder { 2307 return b.builder.addCond(&FilterConditionIn{ 2308 Policy_FieldPathArrayOfValues: NewPolicyFieldPathBuilder().Metadata().Services().OwningService().WithArrayOfValues(values), 2309 }) 2310 } 2311 2312 func (b *filterCndBuilderMetadataServicesOwningService) NotIn(values []string) *FilterBuilder { 2313 return b.builder.addCond(&FilterConditionNotIn{ 2314 Policy_FieldPathArrayOfValues: NewPolicyFieldPathBuilder().Metadata().Services().OwningService().WithArrayOfValues(values), 2315 }) 2316 } 2317 2318 func (b *filterCndBuilderMetadataServicesOwningService) IsNull() *FilterBuilder { 2319 return b.builder.addCond(&FilterConditionIsNull{ 2320 FieldPath: NewPolicyFieldPathBuilder().Metadata().Services().OwningService().FieldPath(), 2321 }) 2322 } 2323 2324 func (b *filterCndBuilderMetadataServicesOwningService) IsNan() *FilterBuilder { 2325 return b.builder.addCond(&FilterConditionIsNaN{ 2326 FieldPath: NewPolicyFieldPathBuilder().Metadata().Services().OwningService().FieldPath(), 2327 }) 2328 } 2329 2330 func (b *filterCndBuilderMetadataServicesOwningService) compare(op gotenfilter.CompareOperator, value string) *FilterBuilder { 2331 return b.builder.addCond(&FilterConditionCompare{ 2332 Operator: op, 2333 Policy_FieldPathValue: NewPolicyFieldPathBuilder().Metadata().Services().OwningService().WithValue(value), 2334 }) 2335 } 2336 2337 type filterCndBuilderMetadataServicesAllowedServices struct { 2338 builder *FilterBuilder 2339 } 2340 2341 func (b *filterCndBuilderMetadataServicesAllowedServices) Eq(value []string) *FilterBuilder { 2342 return b.compare(gotenfilter.Eq, value) 2343 } 2344 2345 func (b *filterCndBuilderMetadataServicesAllowedServices) Neq(value []string) *FilterBuilder { 2346 return b.compare(gotenfilter.Neq, value) 2347 } 2348 2349 func (b *filterCndBuilderMetadataServicesAllowedServices) Gt(value []string) *FilterBuilder { 2350 return b.compare(gotenfilter.Gt, value) 2351 } 2352 2353 func (b *filterCndBuilderMetadataServicesAllowedServices) Gte(value []string) *FilterBuilder { 2354 return b.compare(gotenfilter.Gte, value) 2355 } 2356 2357 func (b *filterCndBuilderMetadataServicesAllowedServices) Lt(value []string) *FilterBuilder { 2358 return b.compare(gotenfilter.Lt, value) 2359 } 2360 2361 func (b *filterCndBuilderMetadataServicesAllowedServices) Lte(value []string) *FilterBuilder { 2362 return b.compare(gotenfilter.Lte, value) 2363 } 2364 2365 func (b *filterCndBuilderMetadataServicesAllowedServices) In(values [][]string) *FilterBuilder { 2366 return b.builder.addCond(&FilterConditionIn{ 2367 Policy_FieldPathArrayOfValues: NewPolicyFieldPathBuilder().Metadata().Services().AllowedServices().WithArrayOfValues(values), 2368 }) 2369 } 2370 2371 func (b *filterCndBuilderMetadataServicesAllowedServices) NotIn(values [][]string) *FilterBuilder { 2372 return b.builder.addCond(&FilterConditionNotIn{ 2373 Policy_FieldPathArrayOfValues: NewPolicyFieldPathBuilder().Metadata().Services().AllowedServices().WithArrayOfValues(values), 2374 }) 2375 } 2376 2377 func (b *filterCndBuilderMetadataServicesAllowedServices) IsNull() *FilterBuilder { 2378 return b.builder.addCond(&FilterConditionIsNull{ 2379 FieldPath: NewPolicyFieldPathBuilder().Metadata().Services().AllowedServices().FieldPath(), 2380 }) 2381 } 2382 2383 func (b *filterCndBuilderMetadataServicesAllowedServices) IsNan() *FilterBuilder { 2384 return b.builder.addCond(&FilterConditionIsNaN{ 2385 FieldPath: NewPolicyFieldPathBuilder().Metadata().Services().AllowedServices().FieldPath(), 2386 }) 2387 } 2388 2389 func (b *filterCndBuilderMetadataServicesAllowedServices) Contains(value string) *FilterBuilder { 2390 return b.builder.addCond(&FilterConditionContains{ 2391 Type: gotenresource.ConditionContainsTypeValue, 2392 FieldPath: NewPolicyFieldPathBuilder().Metadata().Services().AllowedServices().FieldPath(), 2393 Value: NewPolicyFieldPathBuilder().Metadata().Services().AllowedServices().WithItemValue(value), 2394 }) 2395 } 2396 2397 func (b *filterCndBuilderMetadataServicesAllowedServices) ContainsAnyOf(values []string) *FilterBuilder { 2398 pathSelector := NewPolicyFieldPathBuilder().Metadata().Services().AllowedServices() 2399 itemValues := make([]Policy_FieldPathArrayItemValue, 0, len(values)) 2400 for _, value := range values { 2401 itemValues = append(itemValues, pathSelector.WithItemValue(value)) 2402 } 2403 return b.builder.addCond(&FilterConditionContains{ 2404 Type: gotenresource.ConditionContainsTypeAny, 2405 FieldPath: NewPolicyFieldPathBuilder().Metadata().Services().AllowedServices().FieldPath(), 2406 Values: itemValues, 2407 }) 2408 } 2409 2410 func (b *filterCndBuilderMetadataServicesAllowedServices) ContainsAll(values []string) *FilterBuilder { 2411 pathSelector := NewPolicyFieldPathBuilder().Metadata().Services().AllowedServices() 2412 itemValues := make([]Policy_FieldPathArrayItemValue, 0, len(values)) 2413 for _, value := range values { 2414 itemValues = append(itemValues, pathSelector.WithItemValue(value)) 2415 } 2416 return b.builder.addCond(&FilterConditionContains{ 2417 Type: gotenresource.ConditionContainsTypeAll, 2418 FieldPath: NewPolicyFieldPathBuilder().Metadata().Services().AllowedServices().FieldPath(), 2419 Values: itemValues, 2420 }) 2421 } 2422 2423 func (b *filterCndBuilderMetadataServicesAllowedServices) compare(op gotenfilter.CompareOperator, value []string) *FilterBuilder { 2424 return b.builder.addCond(&FilterConditionCompare{ 2425 Operator: op, 2426 Policy_FieldPathValue: NewPolicyFieldPathBuilder().Metadata().Services().AllowedServices().WithValue(value), 2427 }) 2428 } 2429 2430 type filterCndBuilderDisplayName struct { 2431 builder *FilterBuilder 2432 } 2433 2434 func (b *filterCndBuilderDisplayName) Eq(value string) *FilterBuilder { 2435 return b.compare(gotenfilter.Eq, value) 2436 } 2437 2438 func (b *filterCndBuilderDisplayName) Neq(value string) *FilterBuilder { 2439 return b.compare(gotenfilter.Neq, value) 2440 } 2441 2442 func (b *filterCndBuilderDisplayName) Gt(value string) *FilterBuilder { 2443 return b.compare(gotenfilter.Gt, value) 2444 } 2445 2446 func (b *filterCndBuilderDisplayName) Gte(value string) *FilterBuilder { 2447 return b.compare(gotenfilter.Gte, value) 2448 } 2449 2450 func (b *filterCndBuilderDisplayName) Lt(value string) *FilterBuilder { 2451 return b.compare(gotenfilter.Lt, value) 2452 } 2453 2454 func (b *filterCndBuilderDisplayName) Lte(value string) *FilterBuilder { 2455 return b.compare(gotenfilter.Lte, value) 2456 } 2457 2458 func (b *filterCndBuilderDisplayName) In(values []string) *FilterBuilder { 2459 return b.builder.addCond(&FilterConditionIn{ 2460 Policy_FieldPathArrayOfValues: NewPolicyFieldPathBuilder().DisplayName().WithArrayOfValues(values), 2461 }) 2462 } 2463 2464 func (b *filterCndBuilderDisplayName) NotIn(values []string) *FilterBuilder { 2465 return b.builder.addCond(&FilterConditionNotIn{ 2466 Policy_FieldPathArrayOfValues: NewPolicyFieldPathBuilder().DisplayName().WithArrayOfValues(values), 2467 }) 2468 } 2469 2470 func (b *filterCndBuilderDisplayName) IsNull() *FilterBuilder { 2471 return b.builder.addCond(&FilterConditionIsNull{ 2472 FieldPath: NewPolicyFieldPathBuilder().DisplayName().FieldPath(), 2473 }) 2474 } 2475 2476 func (b *filterCndBuilderDisplayName) IsNan() *FilterBuilder { 2477 return b.builder.addCond(&FilterConditionIsNaN{ 2478 FieldPath: NewPolicyFieldPathBuilder().DisplayName().FieldPath(), 2479 }) 2480 } 2481 2482 func (b *filterCndBuilderDisplayName) compare(op gotenfilter.CompareOperator, value string) *FilterBuilder { 2483 return b.builder.addCond(&FilterConditionCompare{ 2484 Operator: op, 2485 Policy_FieldPathValue: NewPolicyFieldPathBuilder().DisplayName().WithValue(value), 2486 }) 2487 } 2488 2489 type filterCndBuilderDescription struct { 2490 builder *FilterBuilder 2491 } 2492 2493 func (b *filterCndBuilderDescription) Eq(value string) *FilterBuilder { 2494 return b.compare(gotenfilter.Eq, value) 2495 } 2496 2497 func (b *filterCndBuilderDescription) Neq(value string) *FilterBuilder { 2498 return b.compare(gotenfilter.Neq, value) 2499 } 2500 2501 func (b *filterCndBuilderDescription) Gt(value string) *FilterBuilder { 2502 return b.compare(gotenfilter.Gt, value) 2503 } 2504 2505 func (b *filterCndBuilderDescription) Gte(value string) *FilterBuilder { 2506 return b.compare(gotenfilter.Gte, value) 2507 } 2508 2509 func (b *filterCndBuilderDescription) Lt(value string) *FilterBuilder { 2510 return b.compare(gotenfilter.Lt, value) 2511 } 2512 2513 func (b *filterCndBuilderDescription) Lte(value string) *FilterBuilder { 2514 return b.compare(gotenfilter.Lte, value) 2515 } 2516 2517 func (b *filterCndBuilderDescription) In(values []string) *FilterBuilder { 2518 return b.builder.addCond(&FilterConditionIn{ 2519 Policy_FieldPathArrayOfValues: NewPolicyFieldPathBuilder().Description().WithArrayOfValues(values), 2520 }) 2521 } 2522 2523 func (b *filterCndBuilderDescription) NotIn(values []string) *FilterBuilder { 2524 return b.builder.addCond(&FilterConditionNotIn{ 2525 Policy_FieldPathArrayOfValues: NewPolicyFieldPathBuilder().Description().WithArrayOfValues(values), 2526 }) 2527 } 2528 2529 func (b *filterCndBuilderDescription) IsNull() *FilterBuilder { 2530 return b.builder.addCond(&FilterConditionIsNull{ 2531 FieldPath: NewPolicyFieldPathBuilder().Description().FieldPath(), 2532 }) 2533 } 2534 2535 func (b *filterCndBuilderDescription) IsNan() *FilterBuilder { 2536 return b.builder.addCond(&FilterConditionIsNaN{ 2537 FieldPath: NewPolicyFieldPathBuilder().Description().FieldPath(), 2538 }) 2539 } 2540 2541 func (b *filterCndBuilderDescription) compare(op gotenfilter.CompareOperator, value string) *FilterBuilder { 2542 return b.builder.addCond(&FilterConditionCompare{ 2543 Operator: op, 2544 Policy_FieldPathValue: NewPolicyFieldPathBuilder().Description().WithValue(value), 2545 }) 2546 } 2547 2548 type filterCndBuilderSupportingDocs struct { 2549 builder *FilterBuilder 2550 } 2551 2552 func (b *filterCndBuilderSupportingDocs) Eq(value []*document.Reference) *FilterBuilder { 2553 return b.compare(gotenfilter.Eq, value) 2554 } 2555 2556 func (b *filterCndBuilderSupportingDocs) Neq(value []*document.Reference) *FilterBuilder { 2557 return b.compare(gotenfilter.Neq, value) 2558 } 2559 2560 func (b *filterCndBuilderSupportingDocs) Gt(value []*document.Reference) *FilterBuilder { 2561 return b.compare(gotenfilter.Gt, value) 2562 } 2563 2564 func (b *filterCndBuilderSupportingDocs) Gte(value []*document.Reference) *FilterBuilder { 2565 return b.compare(gotenfilter.Gte, value) 2566 } 2567 2568 func (b *filterCndBuilderSupportingDocs) Lt(value []*document.Reference) *FilterBuilder { 2569 return b.compare(gotenfilter.Lt, value) 2570 } 2571 2572 func (b *filterCndBuilderSupportingDocs) Lte(value []*document.Reference) *FilterBuilder { 2573 return b.compare(gotenfilter.Lte, value) 2574 } 2575 2576 func (b *filterCndBuilderSupportingDocs) In(values [][]*document.Reference) *FilterBuilder { 2577 return b.builder.addCond(&FilterConditionIn{ 2578 Policy_FieldPathArrayOfValues: NewPolicyFieldPathBuilder().SupportingDocs().WithArrayOfValues(values), 2579 }) 2580 } 2581 2582 func (b *filterCndBuilderSupportingDocs) NotIn(values [][]*document.Reference) *FilterBuilder { 2583 return b.builder.addCond(&FilterConditionNotIn{ 2584 Policy_FieldPathArrayOfValues: NewPolicyFieldPathBuilder().SupportingDocs().WithArrayOfValues(values), 2585 }) 2586 } 2587 2588 func (b *filterCndBuilderSupportingDocs) IsNull() *FilterBuilder { 2589 return b.builder.addCond(&FilterConditionIsNull{ 2590 FieldPath: NewPolicyFieldPathBuilder().SupportingDocs().FieldPath(), 2591 }) 2592 } 2593 2594 func (b *filterCndBuilderSupportingDocs) IsNan() *FilterBuilder { 2595 return b.builder.addCond(&FilterConditionIsNaN{ 2596 FieldPath: NewPolicyFieldPathBuilder().SupportingDocs().FieldPath(), 2597 }) 2598 } 2599 2600 func (b *filterCndBuilderSupportingDocs) Contains(value *document.Reference) *FilterBuilder { 2601 return b.builder.addCond(&FilterConditionContains{ 2602 Type: gotenresource.ConditionContainsTypeValue, 2603 FieldPath: NewPolicyFieldPathBuilder().SupportingDocs().FieldPath(), 2604 Value: NewPolicyFieldPathBuilder().SupportingDocs().WithItemValue(value), 2605 }) 2606 } 2607 2608 func (b *filterCndBuilderSupportingDocs) ContainsAnyOf(values []*document.Reference) *FilterBuilder { 2609 pathSelector := NewPolicyFieldPathBuilder().SupportingDocs() 2610 itemValues := make([]Policy_FieldPathArrayItemValue, 0, len(values)) 2611 for _, value := range values { 2612 itemValues = append(itemValues, pathSelector.WithItemValue(value)) 2613 } 2614 return b.builder.addCond(&FilterConditionContains{ 2615 Type: gotenresource.ConditionContainsTypeAny, 2616 FieldPath: NewPolicyFieldPathBuilder().SupportingDocs().FieldPath(), 2617 Values: itemValues, 2618 }) 2619 } 2620 2621 func (b *filterCndBuilderSupportingDocs) ContainsAll(values []*document.Reference) *FilterBuilder { 2622 pathSelector := NewPolicyFieldPathBuilder().SupportingDocs() 2623 itemValues := make([]Policy_FieldPathArrayItemValue, 0, len(values)) 2624 for _, value := range values { 2625 itemValues = append(itemValues, pathSelector.WithItemValue(value)) 2626 } 2627 return b.builder.addCond(&FilterConditionContains{ 2628 Type: gotenresource.ConditionContainsTypeAll, 2629 FieldPath: NewPolicyFieldPathBuilder().SupportingDocs().FieldPath(), 2630 Values: itemValues, 2631 }) 2632 } 2633 2634 func (b *filterCndBuilderSupportingDocs) compare(op gotenfilter.CompareOperator, value []*document.Reference) *FilterBuilder { 2635 return b.builder.addCond(&FilterConditionCompare{ 2636 Operator: op, 2637 Policy_FieldPathValue: NewPolicyFieldPathBuilder().SupportingDocs().WithValue(value), 2638 }) 2639 } 2640 2641 type filterCndBuilderSpec struct { 2642 builder *FilterBuilder 2643 } 2644 2645 func (b *filterCndBuilderSpec) Eq(value *rcommon.PolicySpec) *FilterBuilder { 2646 return b.compare(gotenfilter.Eq, value) 2647 } 2648 2649 func (b *filterCndBuilderSpec) Neq(value *rcommon.PolicySpec) *FilterBuilder { 2650 return b.compare(gotenfilter.Neq, value) 2651 } 2652 2653 func (b *filterCndBuilderSpec) Gt(value *rcommon.PolicySpec) *FilterBuilder { 2654 return b.compare(gotenfilter.Gt, value) 2655 } 2656 2657 func (b *filterCndBuilderSpec) Gte(value *rcommon.PolicySpec) *FilterBuilder { 2658 return b.compare(gotenfilter.Gte, value) 2659 } 2660 2661 func (b *filterCndBuilderSpec) Lt(value *rcommon.PolicySpec) *FilterBuilder { 2662 return b.compare(gotenfilter.Lt, value) 2663 } 2664 2665 func (b *filterCndBuilderSpec) Lte(value *rcommon.PolicySpec) *FilterBuilder { 2666 return b.compare(gotenfilter.Lte, value) 2667 } 2668 2669 func (b *filterCndBuilderSpec) In(values []*rcommon.PolicySpec) *FilterBuilder { 2670 return b.builder.addCond(&FilterConditionIn{ 2671 Policy_FieldPathArrayOfValues: NewPolicyFieldPathBuilder().Spec().WithArrayOfValues(values), 2672 }) 2673 } 2674 2675 func (b *filterCndBuilderSpec) NotIn(values []*rcommon.PolicySpec) *FilterBuilder { 2676 return b.builder.addCond(&FilterConditionNotIn{ 2677 Policy_FieldPathArrayOfValues: NewPolicyFieldPathBuilder().Spec().WithArrayOfValues(values), 2678 }) 2679 } 2680 2681 func (b *filterCndBuilderSpec) IsNull() *FilterBuilder { 2682 return b.builder.addCond(&FilterConditionIsNull{ 2683 FieldPath: NewPolicyFieldPathBuilder().Spec().FieldPath(), 2684 }) 2685 } 2686 2687 func (b *filterCndBuilderSpec) IsNan() *FilterBuilder { 2688 return b.builder.addCond(&FilterConditionIsNaN{ 2689 FieldPath: NewPolicyFieldPathBuilder().Spec().FieldPath(), 2690 }) 2691 } 2692 2693 func (b *filterCndBuilderSpec) compare(op gotenfilter.CompareOperator, value *rcommon.PolicySpec) *FilterBuilder { 2694 return b.builder.addCond(&FilterConditionCompare{ 2695 Operator: op, 2696 Policy_FieldPathValue: NewPolicyFieldPathBuilder().Spec().WithValue(value), 2697 }) 2698 } 2699 2700 func (b *filterCndBuilderSpec) Enabled() *filterCndBuilderSpecEnabled { 2701 return &filterCndBuilderSpecEnabled{builder: b.builder} 2702 } 2703 2704 func (b *filterCndBuilderSpec) ProcessingLocation() *filterCndBuilderSpecProcessingLocation { 2705 return &filterCndBuilderSpecProcessingLocation{builder: b.builder} 2706 } 2707 2708 func (b *filterCndBuilderSpec) ResourceIdentity() *filterCndBuilderSpecResourceIdentity { 2709 return &filterCndBuilderSpecResourceIdentity{builder: b.builder} 2710 } 2711 2712 func (b *filterCndBuilderSpec) SupportingQueries() *filterCndBuilderSpecSupportingQueries { 2713 return &filterCndBuilderSpecSupportingQueries{builder: b.builder} 2714 } 2715 2716 func (b *filterCndBuilderSpec) AiAgent() *filterCndBuilderSpecAiAgent { 2717 return &filterCndBuilderSpecAiAgent{builder: b.builder} 2718 } 2719 2720 type filterCndBuilderSpecEnabled struct { 2721 builder *FilterBuilder 2722 } 2723 2724 func (b *filterCndBuilderSpecEnabled) Eq(value bool) *FilterBuilder { 2725 return b.compare(gotenfilter.Eq, value) 2726 } 2727 2728 func (b *filterCndBuilderSpecEnabled) Neq(value bool) *FilterBuilder { 2729 return b.compare(gotenfilter.Neq, value) 2730 } 2731 2732 func (b *filterCndBuilderSpecEnabled) Gt(value bool) *FilterBuilder { 2733 return b.compare(gotenfilter.Gt, value) 2734 } 2735 2736 func (b *filterCndBuilderSpecEnabled) Gte(value bool) *FilterBuilder { 2737 return b.compare(gotenfilter.Gte, value) 2738 } 2739 2740 func (b *filterCndBuilderSpecEnabled) Lt(value bool) *FilterBuilder { 2741 return b.compare(gotenfilter.Lt, value) 2742 } 2743 2744 func (b *filterCndBuilderSpecEnabled) Lte(value bool) *FilterBuilder { 2745 return b.compare(gotenfilter.Lte, value) 2746 } 2747 2748 func (b *filterCndBuilderSpecEnabled) In(values []bool) *FilterBuilder { 2749 return b.builder.addCond(&FilterConditionIn{ 2750 Policy_FieldPathArrayOfValues: NewPolicyFieldPathBuilder().Spec().Enabled().WithArrayOfValues(values), 2751 }) 2752 } 2753 2754 func (b *filterCndBuilderSpecEnabled) NotIn(values []bool) *FilterBuilder { 2755 return b.builder.addCond(&FilterConditionNotIn{ 2756 Policy_FieldPathArrayOfValues: NewPolicyFieldPathBuilder().Spec().Enabled().WithArrayOfValues(values), 2757 }) 2758 } 2759 2760 func (b *filterCndBuilderSpecEnabled) IsNull() *FilterBuilder { 2761 return b.builder.addCond(&FilterConditionIsNull{ 2762 FieldPath: NewPolicyFieldPathBuilder().Spec().Enabled().FieldPath(), 2763 }) 2764 } 2765 2766 func (b *filterCndBuilderSpecEnabled) IsNan() *FilterBuilder { 2767 return b.builder.addCond(&FilterConditionIsNaN{ 2768 FieldPath: NewPolicyFieldPathBuilder().Spec().Enabled().FieldPath(), 2769 }) 2770 } 2771 2772 func (b *filterCndBuilderSpecEnabled) compare(op gotenfilter.CompareOperator, value bool) *FilterBuilder { 2773 return b.builder.addCond(&FilterConditionCompare{ 2774 Operator: op, 2775 Policy_FieldPathValue: NewPolicyFieldPathBuilder().Spec().Enabled().WithValue(value), 2776 }) 2777 } 2778 2779 type filterCndBuilderSpecProcessingLocation struct { 2780 builder *FilterBuilder 2781 } 2782 2783 func (b *filterCndBuilderSpecProcessingLocation) Eq(value rcommon.PolicySpec_ProcessingLocation) *FilterBuilder { 2784 return b.compare(gotenfilter.Eq, value) 2785 } 2786 2787 func (b *filterCndBuilderSpecProcessingLocation) Neq(value rcommon.PolicySpec_ProcessingLocation) *FilterBuilder { 2788 return b.compare(gotenfilter.Neq, value) 2789 } 2790 2791 func (b *filterCndBuilderSpecProcessingLocation) Gt(value rcommon.PolicySpec_ProcessingLocation) *FilterBuilder { 2792 return b.compare(gotenfilter.Gt, value) 2793 } 2794 2795 func (b *filterCndBuilderSpecProcessingLocation) Gte(value rcommon.PolicySpec_ProcessingLocation) *FilterBuilder { 2796 return b.compare(gotenfilter.Gte, value) 2797 } 2798 2799 func (b *filterCndBuilderSpecProcessingLocation) Lt(value rcommon.PolicySpec_ProcessingLocation) *FilterBuilder { 2800 return b.compare(gotenfilter.Lt, value) 2801 } 2802 2803 func (b *filterCndBuilderSpecProcessingLocation) Lte(value rcommon.PolicySpec_ProcessingLocation) *FilterBuilder { 2804 return b.compare(gotenfilter.Lte, value) 2805 } 2806 2807 func (b *filterCndBuilderSpecProcessingLocation) In(values []rcommon.PolicySpec_ProcessingLocation) *FilterBuilder { 2808 return b.builder.addCond(&FilterConditionIn{ 2809 Policy_FieldPathArrayOfValues: NewPolicyFieldPathBuilder().Spec().ProcessingLocation().WithArrayOfValues(values), 2810 }) 2811 } 2812 2813 func (b *filterCndBuilderSpecProcessingLocation) NotIn(values []rcommon.PolicySpec_ProcessingLocation) *FilterBuilder { 2814 return b.builder.addCond(&FilterConditionNotIn{ 2815 Policy_FieldPathArrayOfValues: NewPolicyFieldPathBuilder().Spec().ProcessingLocation().WithArrayOfValues(values), 2816 }) 2817 } 2818 2819 func (b *filterCndBuilderSpecProcessingLocation) IsNull() *FilterBuilder { 2820 return b.builder.addCond(&FilterConditionIsNull{ 2821 FieldPath: NewPolicyFieldPathBuilder().Spec().ProcessingLocation().FieldPath(), 2822 }) 2823 } 2824 2825 func (b *filterCndBuilderSpecProcessingLocation) IsNan() *FilterBuilder { 2826 return b.builder.addCond(&FilterConditionIsNaN{ 2827 FieldPath: NewPolicyFieldPathBuilder().Spec().ProcessingLocation().FieldPath(), 2828 }) 2829 } 2830 2831 func (b *filterCndBuilderSpecProcessingLocation) compare(op gotenfilter.CompareOperator, value rcommon.PolicySpec_ProcessingLocation) *FilterBuilder { 2832 return b.builder.addCond(&FilterConditionCompare{ 2833 Operator: op, 2834 Policy_FieldPathValue: NewPolicyFieldPathBuilder().Spec().ProcessingLocation().WithValue(value), 2835 }) 2836 } 2837 2838 type filterCndBuilderSpecResourceIdentity struct { 2839 builder *FilterBuilder 2840 } 2841 2842 func (b *filterCndBuilderSpecResourceIdentity) Eq(value *rcommon.PolicySpec_ResourceIdentity) *FilterBuilder { 2843 return b.compare(gotenfilter.Eq, value) 2844 } 2845 2846 func (b *filterCndBuilderSpecResourceIdentity) Neq(value *rcommon.PolicySpec_ResourceIdentity) *FilterBuilder { 2847 return b.compare(gotenfilter.Neq, value) 2848 } 2849 2850 func (b *filterCndBuilderSpecResourceIdentity) Gt(value *rcommon.PolicySpec_ResourceIdentity) *FilterBuilder { 2851 return b.compare(gotenfilter.Gt, value) 2852 } 2853 2854 func (b *filterCndBuilderSpecResourceIdentity) Gte(value *rcommon.PolicySpec_ResourceIdentity) *FilterBuilder { 2855 return b.compare(gotenfilter.Gte, value) 2856 } 2857 2858 func (b *filterCndBuilderSpecResourceIdentity) Lt(value *rcommon.PolicySpec_ResourceIdentity) *FilterBuilder { 2859 return b.compare(gotenfilter.Lt, value) 2860 } 2861 2862 func (b *filterCndBuilderSpecResourceIdentity) Lte(value *rcommon.PolicySpec_ResourceIdentity) *FilterBuilder { 2863 return b.compare(gotenfilter.Lte, value) 2864 } 2865 2866 func (b *filterCndBuilderSpecResourceIdentity) In(values []*rcommon.PolicySpec_ResourceIdentity) *FilterBuilder { 2867 return b.builder.addCond(&FilterConditionIn{ 2868 Policy_FieldPathArrayOfValues: NewPolicyFieldPathBuilder().Spec().ResourceIdentity().WithArrayOfValues(values), 2869 }) 2870 } 2871 2872 func (b *filterCndBuilderSpecResourceIdentity) NotIn(values []*rcommon.PolicySpec_ResourceIdentity) *FilterBuilder { 2873 return b.builder.addCond(&FilterConditionNotIn{ 2874 Policy_FieldPathArrayOfValues: NewPolicyFieldPathBuilder().Spec().ResourceIdentity().WithArrayOfValues(values), 2875 }) 2876 } 2877 2878 func (b *filterCndBuilderSpecResourceIdentity) IsNull() *FilterBuilder { 2879 return b.builder.addCond(&FilterConditionIsNull{ 2880 FieldPath: NewPolicyFieldPathBuilder().Spec().ResourceIdentity().FieldPath(), 2881 }) 2882 } 2883 2884 func (b *filterCndBuilderSpecResourceIdentity) IsNan() *FilterBuilder { 2885 return b.builder.addCond(&FilterConditionIsNaN{ 2886 FieldPath: NewPolicyFieldPathBuilder().Spec().ResourceIdentity().FieldPath(), 2887 }) 2888 } 2889 2890 func (b *filterCndBuilderSpecResourceIdentity) compare(op gotenfilter.CompareOperator, value *rcommon.PolicySpec_ResourceIdentity) *FilterBuilder { 2891 return b.builder.addCond(&FilterConditionCompare{ 2892 Operator: op, 2893 Policy_FieldPathValue: NewPolicyFieldPathBuilder().Spec().ResourceIdentity().WithValue(value), 2894 }) 2895 } 2896 2897 func (b *filterCndBuilderSpecResourceIdentity) AlertingResource() *filterCndBuilderSpecResourceIdentityAlertingResource { 2898 return &filterCndBuilderSpecResourceIdentityAlertingResource{builder: b.builder} 2899 } 2900 2901 func (b *filterCndBuilderSpecResourceIdentity) Labels() *filterCndBuilderSpecResourceIdentityLabels { 2902 return &filterCndBuilderSpecResourceIdentityLabels{builder: b.builder} 2903 } 2904 2905 func (b *filterCndBuilderSpecResourceIdentity) NamePatterns() *filterCndBuilderSpecResourceIdentityNamePatterns { 2906 return &filterCndBuilderSpecResourceIdentityNamePatterns{builder: b.builder} 2907 } 2908 2909 type filterCndBuilderSpecResourceIdentityAlertingResource struct { 2910 builder *FilterBuilder 2911 } 2912 2913 func (b *filterCndBuilderSpecResourceIdentityAlertingResource) Eq(value *meta_resource.Reference) *FilterBuilder { 2914 return b.compare(gotenfilter.Eq, value) 2915 } 2916 2917 func (b *filterCndBuilderSpecResourceIdentityAlertingResource) Neq(value *meta_resource.Reference) *FilterBuilder { 2918 return b.compare(gotenfilter.Neq, value) 2919 } 2920 2921 func (b *filterCndBuilderSpecResourceIdentityAlertingResource) Gt(value *meta_resource.Reference) *FilterBuilder { 2922 return b.compare(gotenfilter.Gt, value) 2923 } 2924 2925 func (b *filterCndBuilderSpecResourceIdentityAlertingResource) Gte(value *meta_resource.Reference) *FilterBuilder { 2926 return b.compare(gotenfilter.Gte, value) 2927 } 2928 2929 func (b *filterCndBuilderSpecResourceIdentityAlertingResource) Lt(value *meta_resource.Reference) *FilterBuilder { 2930 return b.compare(gotenfilter.Lt, value) 2931 } 2932 2933 func (b *filterCndBuilderSpecResourceIdentityAlertingResource) Lte(value *meta_resource.Reference) *FilterBuilder { 2934 return b.compare(gotenfilter.Lte, value) 2935 } 2936 2937 func (b *filterCndBuilderSpecResourceIdentityAlertingResource) In(values []*meta_resource.Reference) *FilterBuilder { 2938 return b.builder.addCond(&FilterConditionIn{ 2939 Policy_FieldPathArrayOfValues: NewPolicyFieldPathBuilder().Spec().ResourceIdentity().AlertingResource().WithArrayOfValues(values), 2940 }) 2941 } 2942 2943 func (b *filterCndBuilderSpecResourceIdentityAlertingResource) NotIn(values []*meta_resource.Reference) *FilterBuilder { 2944 return b.builder.addCond(&FilterConditionNotIn{ 2945 Policy_FieldPathArrayOfValues: NewPolicyFieldPathBuilder().Spec().ResourceIdentity().AlertingResource().WithArrayOfValues(values), 2946 }) 2947 } 2948 2949 func (b *filterCndBuilderSpecResourceIdentityAlertingResource) IsNull() *FilterBuilder { 2950 return b.builder.addCond(&FilterConditionIsNull{ 2951 FieldPath: NewPolicyFieldPathBuilder().Spec().ResourceIdentity().AlertingResource().FieldPath(), 2952 }) 2953 } 2954 2955 func (b *filterCndBuilderSpecResourceIdentityAlertingResource) IsNan() *FilterBuilder { 2956 return b.builder.addCond(&FilterConditionIsNaN{ 2957 FieldPath: NewPolicyFieldPathBuilder().Spec().ResourceIdentity().AlertingResource().FieldPath(), 2958 }) 2959 } 2960 2961 func (b *filterCndBuilderSpecResourceIdentityAlertingResource) compare(op gotenfilter.CompareOperator, value *meta_resource.Reference) *FilterBuilder { 2962 return b.builder.addCond(&FilterConditionCompare{ 2963 Operator: op, 2964 Policy_FieldPathValue: NewPolicyFieldPathBuilder().Spec().ResourceIdentity().AlertingResource().WithValue(value), 2965 }) 2966 } 2967 2968 type filterCndBuilderSpecResourceIdentityLabels struct { 2969 builder *FilterBuilder 2970 } 2971 2972 func (b *filterCndBuilderSpecResourceIdentityLabels) Eq(value []*rcommon.PolicySpec_ResourceIdentity_LabelInfo) *FilterBuilder { 2973 return b.compare(gotenfilter.Eq, value) 2974 } 2975 2976 func (b *filterCndBuilderSpecResourceIdentityLabels) Neq(value []*rcommon.PolicySpec_ResourceIdentity_LabelInfo) *FilterBuilder { 2977 return b.compare(gotenfilter.Neq, value) 2978 } 2979 2980 func (b *filterCndBuilderSpecResourceIdentityLabels) Gt(value []*rcommon.PolicySpec_ResourceIdentity_LabelInfo) *FilterBuilder { 2981 return b.compare(gotenfilter.Gt, value) 2982 } 2983 2984 func (b *filterCndBuilderSpecResourceIdentityLabels) Gte(value []*rcommon.PolicySpec_ResourceIdentity_LabelInfo) *FilterBuilder { 2985 return b.compare(gotenfilter.Gte, value) 2986 } 2987 2988 func (b *filterCndBuilderSpecResourceIdentityLabels) Lt(value []*rcommon.PolicySpec_ResourceIdentity_LabelInfo) *FilterBuilder { 2989 return b.compare(gotenfilter.Lt, value) 2990 } 2991 2992 func (b *filterCndBuilderSpecResourceIdentityLabels) Lte(value []*rcommon.PolicySpec_ResourceIdentity_LabelInfo) *FilterBuilder { 2993 return b.compare(gotenfilter.Lte, value) 2994 } 2995 2996 func (b *filterCndBuilderSpecResourceIdentityLabels) In(values [][]*rcommon.PolicySpec_ResourceIdentity_LabelInfo) *FilterBuilder { 2997 return b.builder.addCond(&FilterConditionIn{ 2998 Policy_FieldPathArrayOfValues: NewPolicyFieldPathBuilder().Spec().ResourceIdentity().Labels().WithArrayOfValues(values), 2999 }) 3000 } 3001 3002 func (b *filterCndBuilderSpecResourceIdentityLabels) NotIn(values [][]*rcommon.PolicySpec_ResourceIdentity_LabelInfo) *FilterBuilder { 3003 return b.builder.addCond(&FilterConditionNotIn{ 3004 Policy_FieldPathArrayOfValues: NewPolicyFieldPathBuilder().Spec().ResourceIdentity().Labels().WithArrayOfValues(values), 3005 }) 3006 } 3007 3008 func (b *filterCndBuilderSpecResourceIdentityLabels) IsNull() *FilterBuilder { 3009 return b.builder.addCond(&FilterConditionIsNull{ 3010 FieldPath: NewPolicyFieldPathBuilder().Spec().ResourceIdentity().Labels().FieldPath(), 3011 }) 3012 } 3013 3014 func (b *filterCndBuilderSpecResourceIdentityLabels) IsNan() *FilterBuilder { 3015 return b.builder.addCond(&FilterConditionIsNaN{ 3016 FieldPath: NewPolicyFieldPathBuilder().Spec().ResourceIdentity().Labels().FieldPath(), 3017 }) 3018 } 3019 3020 func (b *filterCndBuilderSpecResourceIdentityLabels) Contains(value *rcommon.PolicySpec_ResourceIdentity_LabelInfo) *FilterBuilder { 3021 return b.builder.addCond(&FilterConditionContains{ 3022 Type: gotenresource.ConditionContainsTypeValue, 3023 FieldPath: NewPolicyFieldPathBuilder().Spec().ResourceIdentity().Labels().FieldPath(), 3024 Value: NewPolicyFieldPathBuilder().Spec().ResourceIdentity().Labels().WithItemValue(value), 3025 }) 3026 } 3027 3028 func (b *filterCndBuilderSpecResourceIdentityLabels) ContainsAnyOf(values []*rcommon.PolicySpec_ResourceIdentity_LabelInfo) *FilterBuilder { 3029 pathSelector := NewPolicyFieldPathBuilder().Spec().ResourceIdentity().Labels() 3030 itemValues := make([]Policy_FieldPathArrayItemValue, 0, len(values)) 3031 for _, value := range values { 3032 itemValues = append(itemValues, pathSelector.WithItemValue(value)) 3033 } 3034 return b.builder.addCond(&FilterConditionContains{ 3035 Type: gotenresource.ConditionContainsTypeAny, 3036 FieldPath: NewPolicyFieldPathBuilder().Spec().ResourceIdentity().Labels().FieldPath(), 3037 Values: itemValues, 3038 }) 3039 } 3040 3041 func (b *filterCndBuilderSpecResourceIdentityLabels) ContainsAll(values []*rcommon.PolicySpec_ResourceIdentity_LabelInfo) *FilterBuilder { 3042 pathSelector := NewPolicyFieldPathBuilder().Spec().ResourceIdentity().Labels() 3043 itemValues := make([]Policy_FieldPathArrayItemValue, 0, len(values)) 3044 for _, value := range values { 3045 itemValues = append(itemValues, pathSelector.WithItemValue(value)) 3046 } 3047 return b.builder.addCond(&FilterConditionContains{ 3048 Type: gotenresource.ConditionContainsTypeAll, 3049 FieldPath: NewPolicyFieldPathBuilder().Spec().ResourceIdentity().Labels().FieldPath(), 3050 Values: itemValues, 3051 }) 3052 } 3053 3054 func (b *filterCndBuilderSpecResourceIdentityLabels) compare(op gotenfilter.CompareOperator, value []*rcommon.PolicySpec_ResourceIdentity_LabelInfo) *FilterBuilder { 3055 return b.builder.addCond(&FilterConditionCompare{ 3056 Operator: op, 3057 Policy_FieldPathValue: NewPolicyFieldPathBuilder().Spec().ResourceIdentity().Labels().WithValue(value), 3058 }) 3059 } 3060 3061 func (b *filterCndBuilderSpecResourceIdentityLabels) Key() *filterCndBuilderSpecResourceIdentityLabelsKey { 3062 return &filterCndBuilderSpecResourceIdentityLabelsKey{builder: b.builder} 3063 } 3064 3065 func (b *filterCndBuilderSpecResourceIdentityLabels) Contexts() *filterCndBuilderSpecResourceIdentityLabelsContexts { 3066 return &filterCndBuilderSpecResourceIdentityLabelsContexts{builder: b.builder} 3067 } 3068 3069 func (b *filterCndBuilderSpecResourceIdentityLabels) MappedNameSegment() *filterCndBuilderSpecResourceIdentityLabelsMappedNameSegment { 3070 return &filterCndBuilderSpecResourceIdentityLabelsMappedNameSegment{builder: b.builder} 3071 } 3072 3073 type filterCndBuilderSpecResourceIdentityLabelsKey struct { 3074 builder *FilterBuilder 3075 } 3076 3077 func (b *filterCndBuilderSpecResourceIdentityLabelsKey) Eq(value string) *FilterBuilder { 3078 return b.compare(gotenfilter.Eq, value) 3079 } 3080 3081 func (b *filterCndBuilderSpecResourceIdentityLabelsKey) Neq(value string) *FilterBuilder { 3082 return b.compare(gotenfilter.Neq, value) 3083 } 3084 3085 func (b *filterCndBuilderSpecResourceIdentityLabelsKey) Gt(value string) *FilterBuilder { 3086 return b.compare(gotenfilter.Gt, value) 3087 } 3088 3089 func (b *filterCndBuilderSpecResourceIdentityLabelsKey) Gte(value string) *FilterBuilder { 3090 return b.compare(gotenfilter.Gte, value) 3091 } 3092 3093 func (b *filterCndBuilderSpecResourceIdentityLabelsKey) Lt(value string) *FilterBuilder { 3094 return b.compare(gotenfilter.Lt, value) 3095 } 3096 3097 func (b *filterCndBuilderSpecResourceIdentityLabelsKey) Lte(value string) *FilterBuilder { 3098 return b.compare(gotenfilter.Lte, value) 3099 } 3100 3101 func (b *filterCndBuilderSpecResourceIdentityLabelsKey) In(values []string) *FilterBuilder { 3102 return b.builder.addCond(&FilterConditionIn{ 3103 Policy_FieldPathArrayOfValues: NewPolicyFieldPathBuilder().Spec().ResourceIdentity().Labels().Key().WithArrayOfValues(values), 3104 }) 3105 } 3106 3107 func (b *filterCndBuilderSpecResourceIdentityLabelsKey) NotIn(values []string) *FilterBuilder { 3108 return b.builder.addCond(&FilterConditionNotIn{ 3109 Policy_FieldPathArrayOfValues: NewPolicyFieldPathBuilder().Spec().ResourceIdentity().Labels().Key().WithArrayOfValues(values), 3110 }) 3111 } 3112 3113 func (b *filterCndBuilderSpecResourceIdentityLabelsKey) IsNull() *FilterBuilder { 3114 return b.builder.addCond(&FilterConditionIsNull{ 3115 FieldPath: NewPolicyFieldPathBuilder().Spec().ResourceIdentity().Labels().Key().FieldPath(), 3116 }) 3117 } 3118 3119 func (b *filterCndBuilderSpecResourceIdentityLabelsKey) IsNan() *FilterBuilder { 3120 return b.builder.addCond(&FilterConditionIsNaN{ 3121 FieldPath: NewPolicyFieldPathBuilder().Spec().ResourceIdentity().Labels().Key().FieldPath(), 3122 }) 3123 } 3124 3125 func (b *filterCndBuilderSpecResourceIdentityLabelsKey) compare(op gotenfilter.CompareOperator, value string) *FilterBuilder { 3126 return b.builder.addCond(&FilterConditionCompare{ 3127 Operator: op, 3128 Policy_FieldPathValue: NewPolicyFieldPathBuilder().Spec().ResourceIdentity().Labels().Key().WithValue(value), 3129 }) 3130 } 3131 3132 type filterCndBuilderSpecResourceIdentityLabelsContexts struct { 3133 builder *FilterBuilder 3134 } 3135 3136 func (b *filterCndBuilderSpecResourceIdentityLabelsContexts) Eq(value []rcommon.PolicySpec_ResourceIdentity_LabelInfo_UsageContext) *FilterBuilder { 3137 return b.compare(gotenfilter.Eq, value) 3138 } 3139 3140 func (b *filterCndBuilderSpecResourceIdentityLabelsContexts) Neq(value []rcommon.PolicySpec_ResourceIdentity_LabelInfo_UsageContext) *FilterBuilder { 3141 return b.compare(gotenfilter.Neq, value) 3142 } 3143 3144 func (b *filterCndBuilderSpecResourceIdentityLabelsContexts) Gt(value []rcommon.PolicySpec_ResourceIdentity_LabelInfo_UsageContext) *FilterBuilder { 3145 return b.compare(gotenfilter.Gt, value) 3146 } 3147 3148 func (b *filterCndBuilderSpecResourceIdentityLabelsContexts) Gte(value []rcommon.PolicySpec_ResourceIdentity_LabelInfo_UsageContext) *FilterBuilder { 3149 return b.compare(gotenfilter.Gte, value) 3150 } 3151 3152 func (b *filterCndBuilderSpecResourceIdentityLabelsContexts) Lt(value []rcommon.PolicySpec_ResourceIdentity_LabelInfo_UsageContext) *FilterBuilder { 3153 return b.compare(gotenfilter.Lt, value) 3154 } 3155 3156 func (b *filterCndBuilderSpecResourceIdentityLabelsContexts) Lte(value []rcommon.PolicySpec_ResourceIdentity_LabelInfo_UsageContext) *FilterBuilder { 3157 return b.compare(gotenfilter.Lte, value) 3158 } 3159 3160 func (b *filterCndBuilderSpecResourceIdentityLabelsContexts) In(values [][]rcommon.PolicySpec_ResourceIdentity_LabelInfo_UsageContext) *FilterBuilder { 3161 return b.builder.addCond(&FilterConditionIn{ 3162 Policy_FieldPathArrayOfValues: NewPolicyFieldPathBuilder().Spec().ResourceIdentity().Labels().Contexts().WithArrayOfValues(values), 3163 }) 3164 } 3165 3166 func (b *filterCndBuilderSpecResourceIdentityLabelsContexts) NotIn(values [][]rcommon.PolicySpec_ResourceIdentity_LabelInfo_UsageContext) *FilterBuilder { 3167 return b.builder.addCond(&FilterConditionNotIn{ 3168 Policy_FieldPathArrayOfValues: NewPolicyFieldPathBuilder().Spec().ResourceIdentity().Labels().Contexts().WithArrayOfValues(values), 3169 }) 3170 } 3171 3172 func (b *filterCndBuilderSpecResourceIdentityLabelsContexts) IsNull() *FilterBuilder { 3173 return b.builder.addCond(&FilterConditionIsNull{ 3174 FieldPath: NewPolicyFieldPathBuilder().Spec().ResourceIdentity().Labels().Contexts().FieldPath(), 3175 }) 3176 } 3177 3178 func (b *filterCndBuilderSpecResourceIdentityLabelsContexts) IsNan() *FilterBuilder { 3179 return b.builder.addCond(&FilterConditionIsNaN{ 3180 FieldPath: NewPolicyFieldPathBuilder().Spec().ResourceIdentity().Labels().Contexts().FieldPath(), 3181 }) 3182 } 3183 3184 func (b *filterCndBuilderSpecResourceIdentityLabelsContexts) Contains(value rcommon.PolicySpec_ResourceIdentity_LabelInfo_UsageContext) *FilterBuilder { 3185 return b.builder.addCond(&FilterConditionContains{ 3186 Type: gotenresource.ConditionContainsTypeValue, 3187 FieldPath: NewPolicyFieldPathBuilder().Spec().ResourceIdentity().Labels().Contexts().FieldPath(), 3188 Value: NewPolicyFieldPathBuilder().Spec().ResourceIdentity().Labels().Contexts().WithItemValue(value), 3189 }) 3190 } 3191 3192 func (b *filterCndBuilderSpecResourceIdentityLabelsContexts) ContainsAnyOf(values []rcommon.PolicySpec_ResourceIdentity_LabelInfo_UsageContext) *FilterBuilder { 3193 pathSelector := NewPolicyFieldPathBuilder().Spec().ResourceIdentity().Labels().Contexts() 3194 itemValues := make([]Policy_FieldPathArrayItemValue, 0, len(values)) 3195 for _, value := range values { 3196 itemValues = append(itemValues, pathSelector.WithItemValue(value)) 3197 } 3198 return b.builder.addCond(&FilterConditionContains{ 3199 Type: gotenresource.ConditionContainsTypeAny, 3200 FieldPath: NewPolicyFieldPathBuilder().Spec().ResourceIdentity().Labels().Contexts().FieldPath(), 3201 Values: itemValues, 3202 }) 3203 } 3204 3205 func (b *filterCndBuilderSpecResourceIdentityLabelsContexts) ContainsAll(values []rcommon.PolicySpec_ResourceIdentity_LabelInfo_UsageContext) *FilterBuilder { 3206 pathSelector := NewPolicyFieldPathBuilder().Spec().ResourceIdentity().Labels().Contexts() 3207 itemValues := make([]Policy_FieldPathArrayItemValue, 0, len(values)) 3208 for _, value := range values { 3209 itemValues = append(itemValues, pathSelector.WithItemValue(value)) 3210 } 3211 return b.builder.addCond(&FilterConditionContains{ 3212 Type: gotenresource.ConditionContainsTypeAll, 3213 FieldPath: NewPolicyFieldPathBuilder().Spec().ResourceIdentity().Labels().Contexts().FieldPath(), 3214 Values: itemValues, 3215 }) 3216 } 3217 3218 func (b *filterCndBuilderSpecResourceIdentityLabelsContexts) compare(op gotenfilter.CompareOperator, value []rcommon.PolicySpec_ResourceIdentity_LabelInfo_UsageContext) *FilterBuilder { 3219 return b.builder.addCond(&FilterConditionCompare{ 3220 Operator: op, 3221 Policy_FieldPathValue: NewPolicyFieldPathBuilder().Spec().ResourceIdentity().Labels().Contexts().WithValue(value), 3222 }) 3223 } 3224 3225 type filterCndBuilderSpecResourceIdentityLabelsMappedNameSegment struct { 3226 builder *FilterBuilder 3227 } 3228 3229 func (b *filterCndBuilderSpecResourceIdentityLabelsMappedNameSegment) Eq(value string) *FilterBuilder { 3230 return b.compare(gotenfilter.Eq, value) 3231 } 3232 3233 func (b *filterCndBuilderSpecResourceIdentityLabelsMappedNameSegment) Neq(value string) *FilterBuilder { 3234 return b.compare(gotenfilter.Neq, value) 3235 } 3236 3237 func (b *filterCndBuilderSpecResourceIdentityLabelsMappedNameSegment) Gt(value string) *FilterBuilder { 3238 return b.compare(gotenfilter.Gt, value) 3239 } 3240 3241 func (b *filterCndBuilderSpecResourceIdentityLabelsMappedNameSegment) Gte(value string) *FilterBuilder { 3242 return b.compare(gotenfilter.Gte, value) 3243 } 3244 3245 func (b *filterCndBuilderSpecResourceIdentityLabelsMappedNameSegment) Lt(value string) *FilterBuilder { 3246 return b.compare(gotenfilter.Lt, value) 3247 } 3248 3249 func (b *filterCndBuilderSpecResourceIdentityLabelsMappedNameSegment) Lte(value string) *FilterBuilder { 3250 return b.compare(gotenfilter.Lte, value) 3251 } 3252 3253 func (b *filterCndBuilderSpecResourceIdentityLabelsMappedNameSegment) In(values []string) *FilterBuilder { 3254 return b.builder.addCond(&FilterConditionIn{ 3255 Policy_FieldPathArrayOfValues: NewPolicyFieldPathBuilder().Spec().ResourceIdentity().Labels().MappedNameSegment().WithArrayOfValues(values), 3256 }) 3257 } 3258 3259 func (b *filterCndBuilderSpecResourceIdentityLabelsMappedNameSegment) NotIn(values []string) *FilterBuilder { 3260 return b.builder.addCond(&FilterConditionNotIn{ 3261 Policy_FieldPathArrayOfValues: NewPolicyFieldPathBuilder().Spec().ResourceIdentity().Labels().MappedNameSegment().WithArrayOfValues(values), 3262 }) 3263 } 3264 3265 func (b *filterCndBuilderSpecResourceIdentityLabelsMappedNameSegment) IsNull() *FilterBuilder { 3266 return b.builder.addCond(&FilterConditionIsNull{ 3267 FieldPath: NewPolicyFieldPathBuilder().Spec().ResourceIdentity().Labels().MappedNameSegment().FieldPath(), 3268 }) 3269 } 3270 3271 func (b *filterCndBuilderSpecResourceIdentityLabelsMappedNameSegment) IsNan() *FilterBuilder { 3272 return b.builder.addCond(&FilterConditionIsNaN{ 3273 FieldPath: NewPolicyFieldPathBuilder().Spec().ResourceIdentity().Labels().MappedNameSegment().FieldPath(), 3274 }) 3275 } 3276 3277 func (b *filterCndBuilderSpecResourceIdentityLabelsMappedNameSegment) compare(op gotenfilter.CompareOperator, value string) *FilterBuilder { 3278 return b.builder.addCond(&FilterConditionCompare{ 3279 Operator: op, 3280 Policy_FieldPathValue: NewPolicyFieldPathBuilder().Spec().ResourceIdentity().Labels().MappedNameSegment().WithValue(value), 3281 }) 3282 } 3283 3284 type filterCndBuilderSpecResourceIdentityNamePatterns struct { 3285 builder *FilterBuilder 3286 } 3287 3288 func (b *filterCndBuilderSpecResourceIdentityNamePatterns) Eq(value []string) *FilterBuilder { 3289 return b.compare(gotenfilter.Eq, value) 3290 } 3291 3292 func (b *filterCndBuilderSpecResourceIdentityNamePatterns) Neq(value []string) *FilterBuilder { 3293 return b.compare(gotenfilter.Neq, value) 3294 } 3295 3296 func (b *filterCndBuilderSpecResourceIdentityNamePatterns) Gt(value []string) *FilterBuilder { 3297 return b.compare(gotenfilter.Gt, value) 3298 } 3299 3300 func (b *filterCndBuilderSpecResourceIdentityNamePatterns) Gte(value []string) *FilterBuilder { 3301 return b.compare(gotenfilter.Gte, value) 3302 } 3303 3304 func (b *filterCndBuilderSpecResourceIdentityNamePatterns) Lt(value []string) *FilterBuilder { 3305 return b.compare(gotenfilter.Lt, value) 3306 } 3307 3308 func (b *filterCndBuilderSpecResourceIdentityNamePatterns) Lte(value []string) *FilterBuilder { 3309 return b.compare(gotenfilter.Lte, value) 3310 } 3311 3312 func (b *filterCndBuilderSpecResourceIdentityNamePatterns) In(values [][]string) *FilterBuilder { 3313 return b.builder.addCond(&FilterConditionIn{ 3314 Policy_FieldPathArrayOfValues: NewPolicyFieldPathBuilder().Spec().ResourceIdentity().NamePatterns().WithArrayOfValues(values), 3315 }) 3316 } 3317 3318 func (b *filterCndBuilderSpecResourceIdentityNamePatterns) NotIn(values [][]string) *FilterBuilder { 3319 return b.builder.addCond(&FilterConditionNotIn{ 3320 Policy_FieldPathArrayOfValues: NewPolicyFieldPathBuilder().Spec().ResourceIdentity().NamePatterns().WithArrayOfValues(values), 3321 }) 3322 } 3323 3324 func (b *filterCndBuilderSpecResourceIdentityNamePatterns) IsNull() *FilterBuilder { 3325 return b.builder.addCond(&FilterConditionIsNull{ 3326 FieldPath: NewPolicyFieldPathBuilder().Spec().ResourceIdentity().NamePatterns().FieldPath(), 3327 }) 3328 } 3329 3330 func (b *filterCndBuilderSpecResourceIdentityNamePatterns) IsNan() *FilterBuilder { 3331 return b.builder.addCond(&FilterConditionIsNaN{ 3332 FieldPath: NewPolicyFieldPathBuilder().Spec().ResourceIdentity().NamePatterns().FieldPath(), 3333 }) 3334 } 3335 3336 func (b *filterCndBuilderSpecResourceIdentityNamePatterns) Contains(value string) *FilterBuilder { 3337 return b.builder.addCond(&FilterConditionContains{ 3338 Type: gotenresource.ConditionContainsTypeValue, 3339 FieldPath: NewPolicyFieldPathBuilder().Spec().ResourceIdentity().NamePatterns().FieldPath(), 3340 Value: NewPolicyFieldPathBuilder().Spec().ResourceIdentity().NamePatterns().WithItemValue(value), 3341 }) 3342 } 3343 3344 func (b *filterCndBuilderSpecResourceIdentityNamePatterns) ContainsAnyOf(values []string) *FilterBuilder { 3345 pathSelector := NewPolicyFieldPathBuilder().Spec().ResourceIdentity().NamePatterns() 3346 itemValues := make([]Policy_FieldPathArrayItemValue, 0, len(values)) 3347 for _, value := range values { 3348 itemValues = append(itemValues, pathSelector.WithItemValue(value)) 3349 } 3350 return b.builder.addCond(&FilterConditionContains{ 3351 Type: gotenresource.ConditionContainsTypeAny, 3352 FieldPath: NewPolicyFieldPathBuilder().Spec().ResourceIdentity().NamePatterns().FieldPath(), 3353 Values: itemValues, 3354 }) 3355 } 3356 3357 func (b *filterCndBuilderSpecResourceIdentityNamePatterns) ContainsAll(values []string) *FilterBuilder { 3358 pathSelector := NewPolicyFieldPathBuilder().Spec().ResourceIdentity().NamePatterns() 3359 itemValues := make([]Policy_FieldPathArrayItemValue, 0, len(values)) 3360 for _, value := range values { 3361 itemValues = append(itemValues, pathSelector.WithItemValue(value)) 3362 } 3363 return b.builder.addCond(&FilterConditionContains{ 3364 Type: gotenresource.ConditionContainsTypeAll, 3365 FieldPath: NewPolicyFieldPathBuilder().Spec().ResourceIdentity().NamePatterns().FieldPath(), 3366 Values: itemValues, 3367 }) 3368 } 3369 3370 func (b *filterCndBuilderSpecResourceIdentityNamePatterns) compare(op gotenfilter.CompareOperator, value []string) *FilterBuilder { 3371 return b.builder.addCond(&FilterConditionCompare{ 3372 Operator: op, 3373 Policy_FieldPathValue: NewPolicyFieldPathBuilder().Spec().ResourceIdentity().NamePatterns().WithValue(value), 3374 }) 3375 } 3376 3377 type filterCndBuilderSpecSupportingQueries struct { 3378 builder *FilterBuilder 3379 } 3380 3381 func (b *filterCndBuilderSpecSupportingQueries) Eq(value []*rcommon.PolicySpec_SupportingAlertQuery) *FilterBuilder { 3382 return b.compare(gotenfilter.Eq, value) 3383 } 3384 3385 func (b *filterCndBuilderSpecSupportingQueries) Neq(value []*rcommon.PolicySpec_SupportingAlertQuery) *FilterBuilder { 3386 return b.compare(gotenfilter.Neq, value) 3387 } 3388 3389 func (b *filterCndBuilderSpecSupportingQueries) Gt(value []*rcommon.PolicySpec_SupportingAlertQuery) *FilterBuilder { 3390 return b.compare(gotenfilter.Gt, value) 3391 } 3392 3393 func (b *filterCndBuilderSpecSupportingQueries) Gte(value []*rcommon.PolicySpec_SupportingAlertQuery) *FilterBuilder { 3394 return b.compare(gotenfilter.Gte, value) 3395 } 3396 3397 func (b *filterCndBuilderSpecSupportingQueries) Lt(value []*rcommon.PolicySpec_SupportingAlertQuery) *FilterBuilder { 3398 return b.compare(gotenfilter.Lt, value) 3399 } 3400 3401 func (b *filterCndBuilderSpecSupportingQueries) Lte(value []*rcommon.PolicySpec_SupportingAlertQuery) *FilterBuilder { 3402 return b.compare(gotenfilter.Lte, value) 3403 } 3404 3405 func (b *filterCndBuilderSpecSupportingQueries) In(values [][]*rcommon.PolicySpec_SupportingAlertQuery) *FilterBuilder { 3406 return b.builder.addCond(&FilterConditionIn{ 3407 Policy_FieldPathArrayOfValues: NewPolicyFieldPathBuilder().Spec().SupportingQueries().WithArrayOfValues(values), 3408 }) 3409 } 3410 3411 func (b *filterCndBuilderSpecSupportingQueries) NotIn(values [][]*rcommon.PolicySpec_SupportingAlertQuery) *FilterBuilder { 3412 return b.builder.addCond(&FilterConditionNotIn{ 3413 Policy_FieldPathArrayOfValues: NewPolicyFieldPathBuilder().Spec().SupportingQueries().WithArrayOfValues(values), 3414 }) 3415 } 3416 3417 func (b *filterCndBuilderSpecSupportingQueries) IsNull() *FilterBuilder { 3418 return b.builder.addCond(&FilterConditionIsNull{ 3419 FieldPath: NewPolicyFieldPathBuilder().Spec().SupportingQueries().FieldPath(), 3420 }) 3421 } 3422 3423 func (b *filterCndBuilderSpecSupportingQueries) IsNan() *FilterBuilder { 3424 return b.builder.addCond(&FilterConditionIsNaN{ 3425 FieldPath: NewPolicyFieldPathBuilder().Spec().SupportingQueries().FieldPath(), 3426 }) 3427 } 3428 3429 func (b *filterCndBuilderSpecSupportingQueries) Contains(value *rcommon.PolicySpec_SupportingAlertQuery) *FilterBuilder { 3430 return b.builder.addCond(&FilterConditionContains{ 3431 Type: gotenresource.ConditionContainsTypeValue, 3432 FieldPath: NewPolicyFieldPathBuilder().Spec().SupportingQueries().FieldPath(), 3433 Value: NewPolicyFieldPathBuilder().Spec().SupportingQueries().WithItemValue(value), 3434 }) 3435 } 3436 3437 func (b *filterCndBuilderSpecSupportingQueries) ContainsAnyOf(values []*rcommon.PolicySpec_SupportingAlertQuery) *FilterBuilder { 3438 pathSelector := NewPolicyFieldPathBuilder().Spec().SupportingQueries() 3439 itemValues := make([]Policy_FieldPathArrayItemValue, 0, len(values)) 3440 for _, value := range values { 3441 itemValues = append(itemValues, pathSelector.WithItemValue(value)) 3442 } 3443 return b.builder.addCond(&FilterConditionContains{ 3444 Type: gotenresource.ConditionContainsTypeAny, 3445 FieldPath: NewPolicyFieldPathBuilder().Spec().SupportingQueries().FieldPath(), 3446 Values: itemValues, 3447 }) 3448 } 3449 3450 func (b *filterCndBuilderSpecSupportingQueries) ContainsAll(values []*rcommon.PolicySpec_SupportingAlertQuery) *FilterBuilder { 3451 pathSelector := NewPolicyFieldPathBuilder().Spec().SupportingQueries() 3452 itemValues := make([]Policy_FieldPathArrayItemValue, 0, len(values)) 3453 for _, value := range values { 3454 itemValues = append(itemValues, pathSelector.WithItemValue(value)) 3455 } 3456 return b.builder.addCond(&FilterConditionContains{ 3457 Type: gotenresource.ConditionContainsTypeAll, 3458 FieldPath: NewPolicyFieldPathBuilder().Spec().SupportingQueries().FieldPath(), 3459 Values: itemValues, 3460 }) 3461 } 3462 3463 func (b *filterCndBuilderSpecSupportingQueries) compare(op gotenfilter.CompareOperator, value []*rcommon.PolicySpec_SupportingAlertQuery) *FilterBuilder { 3464 return b.builder.addCond(&FilterConditionCompare{ 3465 Operator: op, 3466 Policy_FieldPathValue: NewPolicyFieldPathBuilder().Spec().SupportingQueries().WithValue(value), 3467 }) 3468 } 3469 3470 func (b *filterCndBuilderSpecSupportingQueries) TsQuery() *filterCndBuilderSpecSupportingQueriesTsQuery { 3471 return &filterCndBuilderSpecSupportingQueriesTsQuery{builder: b.builder} 3472 } 3473 3474 func (b *filterCndBuilderSpecSupportingQueries) LogQuery() *filterCndBuilderSpecSupportingQueriesLogQuery { 3475 return &filterCndBuilderSpecSupportingQueriesLogQuery{builder: b.builder} 3476 } 3477 3478 func (b *filterCndBuilderSpecSupportingQueries) RestGetQuery() *filterCndBuilderSpecSupportingQueriesRestGetQuery { 3479 return &filterCndBuilderSpecSupportingQueriesRestGetQuery{builder: b.builder} 3480 } 3481 3482 func (b *filterCndBuilderSpecSupportingQueries) RestListQuery() *filterCndBuilderSpecSupportingQueriesRestListQuery { 3483 return &filterCndBuilderSpecSupportingQueriesRestListQuery{builder: b.builder} 3484 } 3485 3486 type filterCndBuilderSpecSupportingQueriesTsQuery struct { 3487 builder *FilterBuilder 3488 } 3489 3490 func (b *filterCndBuilderSpecSupportingQueriesTsQuery) Eq(value *rcommon.PolicySpec_SupportingAlertQuery_TsQuery) *FilterBuilder { 3491 return b.compare(gotenfilter.Eq, value) 3492 } 3493 3494 func (b *filterCndBuilderSpecSupportingQueriesTsQuery) Neq(value *rcommon.PolicySpec_SupportingAlertQuery_TsQuery) *FilterBuilder { 3495 return b.compare(gotenfilter.Neq, value) 3496 } 3497 3498 func (b *filterCndBuilderSpecSupportingQueriesTsQuery) Gt(value *rcommon.PolicySpec_SupportingAlertQuery_TsQuery) *FilterBuilder { 3499 return b.compare(gotenfilter.Gt, value) 3500 } 3501 3502 func (b *filterCndBuilderSpecSupportingQueriesTsQuery) Gte(value *rcommon.PolicySpec_SupportingAlertQuery_TsQuery) *FilterBuilder { 3503 return b.compare(gotenfilter.Gte, value) 3504 } 3505 3506 func (b *filterCndBuilderSpecSupportingQueriesTsQuery) Lt(value *rcommon.PolicySpec_SupportingAlertQuery_TsQuery) *FilterBuilder { 3507 return b.compare(gotenfilter.Lt, value) 3508 } 3509 3510 func (b *filterCndBuilderSpecSupportingQueriesTsQuery) Lte(value *rcommon.PolicySpec_SupportingAlertQuery_TsQuery) *FilterBuilder { 3511 return b.compare(gotenfilter.Lte, value) 3512 } 3513 3514 func (b *filterCndBuilderSpecSupportingQueriesTsQuery) In(values []*rcommon.PolicySpec_SupportingAlertQuery_TsQuery) *FilterBuilder { 3515 return b.builder.addCond(&FilterConditionIn{ 3516 Policy_FieldPathArrayOfValues: NewPolicyFieldPathBuilder().Spec().SupportingQueries().TsQuery().WithArrayOfValues(values), 3517 }) 3518 } 3519 3520 func (b *filterCndBuilderSpecSupportingQueriesTsQuery) NotIn(values []*rcommon.PolicySpec_SupportingAlertQuery_TsQuery) *FilterBuilder { 3521 return b.builder.addCond(&FilterConditionNotIn{ 3522 Policy_FieldPathArrayOfValues: NewPolicyFieldPathBuilder().Spec().SupportingQueries().TsQuery().WithArrayOfValues(values), 3523 }) 3524 } 3525 3526 func (b *filterCndBuilderSpecSupportingQueriesTsQuery) IsNull() *FilterBuilder { 3527 return b.builder.addCond(&FilterConditionIsNull{ 3528 FieldPath: NewPolicyFieldPathBuilder().Spec().SupportingQueries().TsQuery().FieldPath(), 3529 }) 3530 } 3531 3532 func (b *filterCndBuilderSpecSupportingQueriesTsQuery) IsNan() *FilterBuilder { 3533 return b.builder.addCond(&FilterConditionIsNaN{ 3534 FieldPath: NewPolicyFieldPathBuilder().Spec().SupportingQueries().TsQuery().FieldPath(), 3535 }) 3536 } 3537 3538 func (b *filterCndBuilderSpecSupportingQueriesTsQuery) compare(op gotenfilter.CompareOperator, value *rcommon.PolicySpec_SupportingAlertQuery_TsQuery) *FilterBuilder { 3539 return b.builder.addCond(&FilterConditionCompare{ 3540 Operator: op, 3541 Policy_FieldPathValue: NewPolicyFieldPathBuilder().Spec().SupportingQueries().TsQuery().WithValue(value), 3542 }) 3543 } 3544 3545 func (b *filterCndBuilderSpecSupportingQueriesTsQuery) Description() *filterCndBuilderSpecSupportingQueriesTsQueryDescription { 3546 return &filterCndBuilderSpecSupportingQueriesTsQueryDescription{builder: b.builder} 3547 } 3548 3549 func (b *filterCndBuilderSpecSupportingQueriesTsQuery) FilterTemplate() *filterCndBuilderSpecSupportingQueriesTsQueryFilterTemplate { 3550 return &filterCndBuilderSpecSupportingQueriesTsQueryFilterTemplate{builder: b.builder} 3551 } 3552 3553 func (b *filterCndBuilderSpecSupportingQueriesTsQuery) Aggregation() *filterCndBuilderSpecSupportingQueriesTsQueryAggregation { 3554 return &filterCndBuilderSpecSupportingQueriesTsQueryAggregation{builder: b.builder} 3555 } 3556 3557 type filterCndBuilderSpecSupportingQueriesTsQueryDescription struct { 3558 builder *FilterBuilder 3559 } 3560 3561 func (b *filterCndBuilderSpecSupportingQueriesTsQueryDescription) Eq(value string) *FilterBuilder { 3562 return b.compare(gotenfilter.Eq, value) 3563 } 3564 3565 func (b *filterCndBuilderSpecSupportingQueriesTsQueryDescription) Neq(value string) *FilterBuilder { 3566 return b.compare(gotenfilter.Neq, value) 3567 } 3568 3569 func (b *filterCndBuilderSpecSupportingQueriesTsQueryDescription) Gt(value string) *FilterBuilder { 3570 return b.compare(gotenfilter.Gt, value) 3571 } 3572 3573 func (b *filterCndBuilderSpecSupportingQueriesTsQueryDescription) Gte(value string) *FilterBuilder { 3574 return b.compare(gotenfilter.Gte, value) 3575 } 3576 3577 func (b *filterCndBuilderSpecSupportingQueriesTsQueryDescription) Lt(value string) *FilterBuilder { 3578 return b.compare(gotenfilter.Lt, value) 3579 } 3580 3581 func (b *filterCndBuilderSpecSupportingQueriesTsQueryDescription) Lte(value string) *FilterBuilder { 3582 return b.compare(gotenfilter.Lte, value) 3583 } 3584 3585 func (b *filterCndBuilderSpecSupportingQueriesTsQueryDescription) In(values []string) *FilterBuilder { 3586 return b.builder.addCond(&FilterConditionIn{ 3587 Policy_FieldPathArrayOfValues: NewPolicyFieldPathBuilder().Spec().SupportingQueries().TsQuery().Description().WithArrayOfValues(values), 3588 }) 3589 } 3590 3591 func (b *filterCndBuilderSpecSupportingQueriesTsQueryDescription) NotIn(values []string) *FilterBuilder { 3592 return b.builder.addCond(&FilterConditionNotIn{ 3593 Policy_FieldPathArrayOfValues: NewPolicyFieldPathBuilder().Spec().SupportingQueries().TsQuery().Description().WithArrayOfValues(values), 3594 }) 3595 } 3596 3597 func (b *filterCndBuilderSpecSupportingQueriesTsQueryDescription) IsNull() *FilterBuilder { 3598 return b.builder.addCond(&FilterConditionIsNull{ 3599 FieldPath: NewPolicyFieldPathBuilder().Spec().SupportingQueries().TsQuery().Description().FieldPath(), 3600 }) 3601 } 3602 3603 func (b *filterCndBuilderSpecSupportingQueriesTsQueryDescription) IsNan() *FilterBuilder { 3604 return b.builder.addCond(&FilterConditionIsNaN{ 3605 FieldPath: NewPolicyFieldPathBuilder().Spec().SupportingQueries().TsQuery().Description().FieldPath(), 3606 }) 3607 } 3608 3609 func (b *filterCndBuilderSpecSupportingQueriesTsQueryDescription) compare(op gotenfilter.CompareOperator, value string) *FilterBuilder { 3610 return b.builder.addCond(&FilterConditionCompare{ 3611 Operator: op, 3612 Policy_FieldPathValue: NewPolicyFieldPathBuilder().Spec().SupportingQueries().TsQuery().Description().WithValue(value), 3613 }) 3614 } 3615 3616 type filterCndBuilderSpecSupportingQueriesTsQueryFilterTemplate struct { 3617 builder *FilterBuilder 3618 } 3619 3620 func (b *filterCndBuilderSpecSupportingQueriesTsQueryFilterTemplate) Eq(value string) *FilterBuilder { 3621 return b.compare(gotenfilter.Eq, value) 3622 } 3623 3624 func (b *filterCndBuilderSpecSupportingQueriesTsQueryFilterTemplate) Neq(value string) *FilterBuilder { 3625 return b.compare(gotenfilter.Neq, value) 3626 } 3627 3628 func (b *filterCndBuilderSpecSupportingQueriesTsQueryFilterTemplate) Gt(value string) *FilterBuilder { 3629 return b.compare(gotenfilter.Gt, value) 3630 } 3631 3632 func (b *filterCndBuilderSpecSupportingQueriesTsQueryFilterTemplate) Gte(value string) *FilterBuilder { 3633 return b.compare(gotenfilter.Gte, value) 3634 } 3635 3636 func (b *filterCndBuilderSpecSupportingQueriesTsQueryFilterTemplate) Lt(value string) *FilterBuilder { 3637 return b.compare(gotenfilter.Lt, value) 3638 } 3639 3640 func (b *filterCndBuilderSpecSupportingQueriesTsQueryFilterTemplate) Lte(value string) *FilterBuilder { 3641 return b.compare(gotenfilter.Lte, value) 3642 } 3643 3644 func (b *filterCndBuilderSpecSupportingQueriesTsQueryFilterTemplate) In(values []string) *FilterBuilder { 3645 return b.builder.addCond(&FilterConditionIn{ 3646 Policy_FieldPathArrayOfValues: NewPolicyFieldPathBuilder().Spec().SupportingQueries().TsQuery().FilterTemplate().WithArrayOfValues(values), 3647 }) 3648 } 3649 3650 func (b *filterCndBuilderSpecSupportingQueriesTsQueryFilterTemplate) NotIn(values []string) *FilterBuilder { 3651 return b.builder.addCond(&FilterConditionNotIn{ 3652 Policy_FieldPathArrayOfValues: NewPolicyFieldPathBuilder().Spec().SupportingQueries().TsQuery().FilterTemplate().WithArrayOfValues(values), 3653 }) 3654 } 3655 3656 func (b *filterCndBuilderSpecSupportingQueriesTsQueryFilterTemplate) IsNull() *FilterBuilder { 3657 return b.builder.addCond(&FilterConditionIsNull{ 3658 FieldPath: NewPolicyFieldPathBuilder().Spec().SupportingQueries().TsQuery().FilterTemplate().FieldPath(), 3659 }) 3660 } 3661 3662 func (b *filterCndBuilderSpecSupportingQueriesTsQueryFilterTemplate) IsNan() *FilterBuilder { 3663 return b.builder.addCond(&FilterConditionIsNaN{ 3664 FieldPath: NewPolicyFieldPathBuilder().Spec().SupportingQueries().TsQuery().FilterTemplate().FieldPath(), 3665 }) 3666 } 3667 3668 func (b *filterCndBuilderSpecSupportingQueriesTsQueryFilterTemplate) compare(op gotenfilter.CompareOperator, value string) *FilterBuilder { 3669 return b.builder.addCond(&FilterConditionCompare{ 3670 Operator: op, 3671 Policy_FieldPathValue: NewPolicyFieldPathBuilder().Spec().SupportingQueries().TsQuery().FilterTemplate().WithValue(value), 3672 }) 3673 } 3674 3675 type filterCndBuilderSpecSupportingQueriesTsQueryAggregation struct { 3676 builder *FilterBuilder 3677 } 3678 3679 func (b *filterCndBuilderSpecSupportingQueriesTsQueryAggregation) Eq(value *monitoring_common.Aggregation) *FilterBuilder { 3680 return b.compare(gotenfilter.Eq, value) 3681 } 3682 3683 func (b *filterCndBuilderSpecSupportingQueriesTsQueryAggregation) Neq(value *monitoring_common.Aggregation) *FilterBuilder { 3684 return b.compare(gotenfilter.Neq, value) 3685 } 3686 3687 func (b *filterCndBuilderSpecSupportingQueriesTsQueryAggregation) Gt(value *monitoring_common.Aggregation) *FilterBuilder { 3688 return b.compare(gotenfilter.Gt, value) 3689 } 3690 3691 func (b *filterCndBuilderSpecSupportingQueriesTsQueryAggregation) Gte(value *monitoring_common.Aggregation) *FilterBuilder { 3692 return b.compare(gotenfilter.Gte, value) 3693 } 3694 3695 func (b *filterCndBuilderSpecSupportingQueriesTsQueryAggregation) Lt(value *monitoring_common.Aggregation) *FilterBuilder { 3696 return b.compare(gotenfilter.Lt, value) 3697 } 3698 3699 func (b *filterCndBuilderSpecSupportingQueriesTsQueryAggregation) Lte(value *monitoring_common.Aggregation) *FilterBuilder { 3700 return b.compare(gotenfilter.Lte, value) 3701 } 3702 3703 func (b *filterCndBuilderSpecSupportingQueriesTsQueryAggregation) In(values []*monitoring_common.Aggregation) *FilterBuilder { 3704 return b.builder.addCond(&FilterConditionIn{ 3705 Policy_FieldPathArrayOfValues: NewPolicyFieldPathBuilder().Spec().SupportingQueries().TsQuery().Aggregation().WithArrayOfValues(values), 3706 }) 3707 } 3708 3709 func (b *filterCndBuilderSpecSupportingQueriesTsQueryAggregation) NotIn(values []*monitoring_common.Aggregation) *FilterBuilder { 3710 return b.builder.addCond(&FilterConditionNotIn{ 3711 Policy_FieldPathArrayOfValues: NewPolicyFieldPathBuilder().Spec().SupportingQueries().TsQuery().Aggregation().WithArrayOfValues(values), 3712 }) 3713 } 3714 3715 func (b *filterCndBuilderSpecSupportingQueriesTsQueryAggregation) IsNull() *FilterBuilder { 3716 return b.builder.addCond(&FilterConditionIsNull{ 3717 FieldPath: NewPolicyFieldPathBuilder().Spec().SupportingQueries().TsQuery().Aggregation().FieldPath(), 3718 }) 3719 } 3720 3721 func (b *filterCndBuilderSpecSupportingQueriesTsQueryAggregation) IsNan() *FilterBuilder { 3722 return b.builder.addCond(&FilterConditionIsNaN{ 3723 FieldPath: NewPolicyFieldPathBuilder().Spec().SupportingQueries().TsQuery().Aggregation().FieldPath(), 3724 }) 3725 } 3726 3727 func (b *filterCndBuilderSpecSupportingQueriesTsQueryAggregation) compare(op gotenfilter.CompareOperator, value *monitoring_common.Aggregation) *FilterBuilder { 3728 return b.builder.addCond(&FilterConditionCompare{ 3729 Operator: op, 3730 Policy_FieldPathValue: NewPolicyFieldPathBuilder().Spec().SupportingQueries().TsQuery().Aggregation().WithValue(value), 3731 }) 3732 } 3733 3734 func (b *filterCndBuilderSpecSupportingQueriesTsQueryAggregation) AlignmentPeriod() *filterCndBuilderSpecSupportingQueriesTsQueryAggregationAlignmentPeriod { 3735 return &filterCndBuilderSpecSupportingQueriesTsQueryAggregationAlignmentPeriod{builder: b.builder} 3736 } 3737 3738 func (b *filterCndBuilderSpecSupportingQueriesTsQueryAggregation) PerSeriesAligner() *filterCndBuilderSpecSupportingQueriesTsQueryAggregationPerSeriesAligner { 3739 return &filterCndBuilderSpecSupportingQueriesTsQueryAggregationPerSeriesAligner{builder: b.builder} 3740 } 3741 3742 func (b *filterCndBuilderSpecSupportingQueriesTsQueryAggregation) CrossSeriesReducer() *filterCndBuilderSpecSupportingQueriesTsQueryAggregationCrossSeriesReducer { 3743 return &filterCndBuilderSpecSupportingQueriesTsQueryAggregationCrossSeriesReducer{builder: b.builder} 3744 } 3745 3746 func (b *filterCndBuilderSpecSupportingQueriesTsQueryAggregation) GroupByFields() *filterCndBuilderSpecSupportingQueriesTsQueryAggregationGroupByFields { 3747 return &filterCndBuilderSpecSupportingQueriesTsQueryAggregationGroupByFields{builder: b.builder} 3748 } 3749 3750 type filterCndBuilderSpecSupportingQueriesTsQueryAggregationAlignmentPeriod struct { 3751 builder *FilterBuilder 3752 } 3753 3754 func (b *filterCndBuilderSpecSupportingQueriesTsQueryAggregationAlignmentPeriod) Eq(value *durationpb.Duration) *FilterBuilder { 3755 return b.compare(gotenfilter.Eq, value) 3756 } 3757 3758 func (b *filterCndBuilderSpecSupportingQueriesTsQueryAggregationAlignmentPeriod) Neq(value *durationpb.Duration) *FilterBuilder { 3759 return b.compare(gotenfilter.Neq, value) 3760 } 3761 3762 func (b *filterCndBuilderSpecSupportingQueriesTsQueryAggregationAlignmentPeriod) Gt(value *durationpb.Duration) *FilterBuilder { 3763 return b.compare(gotenfilter.Gt, value) 3764 } 3765 3766 func (b *filterCndBuilderSpecSupportingQueriesTsQueryAggregationAlignmentPeriod) Gte(value *durationpb.Duration) *FilterBuilder { 3767 return b.compare(gotenfilter.Gte, value) 3768 } 3769 3770 func (b *filterCndBuilderSpecSupportingQueriesTsQueryAggregationAlignmentPeriod) Lt(value *durationpb.Duration) *FilterBuilder { 3771 return b.compare(gotenfilter.Lt, value) 3772 } 3773 3774 func (b *filterCndBuilderSpecSupportingQueriesTsQueryAggregationAlignmentPeriod) Lte(value *durationpb.Duration) *FilterBuilder { 3775 return b.compare(gotenfilter.Lte, value) 3776 } 3777 3778 func (b *filterCndBuilderSpecSupportingQueriesTsQueryAggregationAlignmentPeriod) In(values []*durationpb.Duration) *FilterBuilder { 3779 return b.builder.addCond(&FilterConditionIn{ 3780 Policy_FieldPathArrayOfValues: NewPolicyFieldPathBuilder().Spec().SupportingQueries().TsQuery().Aggregation().AlignmentPeriod().WithArrayOfValues(values), 3781 }) 3782 } 3783 3784 func (b *filterCndBuilderSpecSupportingQueriesTsQueryAggregationAlignmentPeriod) NotIn(values []*durationpb.Duration) *FilterBuilder { 3785 return b.builder.addCond(&FilterConditionNotIn{ 3786 Policy_FieldPathArrayOfValues: NewPolicyFieldPathBuilder().Spec().SupportingQueries().TsQuery().Aggregation().AlignmentPeriod().WithArrayOfValues(values), 3787 }) 3788 } 3789 3790 func (b *filterCndBuilderSpecSupportingQueriesTsQueryAggregationAlignmentPeriod) IsNull() *FilterBuilder { 3791 return b.builder.addCond(&FilterConditionIsNull{ 3792 FieldPath: NewPolicyFieldPathBuilder().Spec().SupportingQueries().TsQuery().Aggregation().AlignmentPeriod().FieldPath(), 3793 }) 3794 } 3795 3796 func (b *filterCndBuilderSpecSupportingQueriesTsQueryAggregationAlignmentPeriod) IsNan() *FilterBuilder { 3797 return b.builder.addCond(&FilterConditionIsNaN{ 3798 FieldPath: NewPolicyFieldPathBuilder().Spec().SupportingQueries().TsQuery().Aggregation().AlignmentPeriod().FieldPath(), 3799 }) 3800 } 3801 3802 func (b *filterCndBuilderSpecSupportingQueriesTsQueryAggregationAlignmentPeriod) compare(op gotenfilter.CompareOperator, value *durationpb.Duration) *FilterBuilder { 3803 return b.builder.addCond(&FilterConditionCompare{ 3804 Operator: op, 3805 Policy_FieldPathValue: NewPolicyFieldPathBuilder().Spec().SupportingQueries().TsQuery().Aggregation().AlignmentPeriod().WithValue(value), 3806 }) 3807 } 3808 3809 type filterCndBuilderSpecSupportingQueriesTsQueryAggregationPerSeriesAligner struct { 3810 builder *FilterBuilder 3811 } 3812 3813 func (b *filterCndBuilderSpecSupportingQueriesTsQueryAggregationPerSeriesAligner) Eq(value monitoring_common.Aggregation_Aligner) *FilterBuilder { 3814 return b.compare(gotenfilter.Eq, value) 3815 } 3816 3817 func (b *filterCndBuilderSpecSupportingQueriesTsQueryAggregationPerSeriesAligner) Neq(value monitoring_common.Aggregation_Aligner) *FilterBuilder { 3818 return b.compare(gotenfilter.Neq, value) 3819 } 3820 3821 func (b *filterCndBuilderSpecSupportingQueriesTsQueryAggregationPerSeriesAligner) Gt(value monitoring_common.Aggregation_Aligner) *FilterBuilder { 3822 return b.compare(gotenfilter.Gt, value) 3823 } 3824 3825 func (b *filterCndBuilderSpecSupportingQueriesTsQueryAggregationPerSeriesAligner) Gte(value monitoring_common.Aggregation_Aligner) *FilterBuilder { 3826 return b.compare(gotenfilter.Gte, value) 3827 } 3828 3829 func (b *filterCndBuilderSpecSupportingQueriesTsQueryAggregationPerSeriesAligner) Lt(value monitoring_common.Aggregation_Aligner) *FilterBuilder { 3830 return b.compare(gotenfilter.Lt, value) 3831 } 3832 3833 func (b *filterCndBuilderSpecSupportingQueriesTsQueryAggregationPerSeriesAligner) Lte(value monitoring_common.Aggregation_Aligner) *FilterBuilder { 3834 return b.compare(gotenfilter.Lte, value) 3835 } 3836 3837 func (b *filterCndBuilderSpecSupportingQueriesTsQueryAggregationPerSeriesAligner) In(values []monitoring_common.Aggregation_Aligner) *FilterBuilder { 3838 return b.builder.addCond(&FilterConditionIn{ 3839 Policy_FieldPathArrayOfValues: NewPolicyFieldPathBuilder().Spec().SupportingQueries().TsQuery().Aggregation().PerSeriesAligner().WithArrayOfValues(values), 3840 }) 3841 } 3842 3843 func (b *filterCndBuilderSpecSupportingQueriesTsQueryAggregationPerSeriesAligner) NotIn(values []monitoring_common.Aggregation_Aligner) *FilterBuilder { 3844 return b.builder.addCond(&FilterConditionNotIn{ 3845 Policy_FieldPathArrayOfValues: NewPolicyFieldPathBuilder().Spec().SupportingQueries().TsQuery().Aggregation().PerSeriesAligner().WithArrayOfValues(values), 3846 }) 3847 } 3848 3849 func (b *filterCndBuilderSpecSupportingQueriesTsQueryAggregationPerSeriesAligner) IsNull() *FilterBuilder { 3850 return b.builder.addCond(&FilterConditionIsNull{ 3851 FieldPath: NewPolicyFieldPathBuilder().Spec().SupportingQueries().TsQuery().Aggregation().PerSeriesAligner().FieldPath(), 3852 }) 3853 } 3854 3855 func (b *filterCndBuilderSpecSupportingQueriesTsQueryAggregationPerSeriesAligner) IsNan() *FilterBuilder { 3856 return b.builder.addCond(&FilterConditionIsNaN{ 3857 FieldPath: NewPolicyFieldPathBuilder().Spec().SupportingQueries().TsQuery().Aggregation().PerSeriesAligner().FieldPath(), 3858 }) 3859 } 3860 3861 func (b *filterCndBuilderSpecSupportingQueriesTsQueryAggregationPerSeriesAligner) compare(op gotenfilter.CompareOperator, value monitoring_common.Aggregation_Aligner) *FilterBuilder { 3862 return b.builder.addCond(&FilterConditionCompare{ 3863 Operator: op, 3864 Policy_FieldPathValue: NewPolicyFieldPathBuilder().Spec().SupportingQueries().TsQuery().Aggregation().PerSeriesAligner().WithValue(value), 3865 }) 3866 } 3867 3868 type filterCndBuilderSpecSupportingQueriesTsQueryAggregationCrossSeriesReducer struct { 3869 builder *FilterBuilder 3870 } 3871 3872 func (b *filterCndBuilderSpecSupportingQueriesTsQueryAggregationCrossSeriesReducer) Eq(value monitoring_common.Aggregation_Reducer) *FilterBuilder { 3873 return b.compare(gotenfilter.Eq, value) 3874 } 3875 3876 func (b *filterCndBuilderSpecSupportingQueriesTsQueryAggregationCrossSeriesReducer) Neq(value monitoring_common.Aggregation_Reducer) *FilterBuilder { 3877 return b.compare(gotenfilter.Neq, value) 3878 } 3879 3880 func (b *filterCndBuilderSpecSupportingQueriesTsQueryAggregationCrossSeriesReducer) Gt(value monitoring_common.Aggregation_Reducer) *FilterBuilder { 3881 return b.compare(gotenfilter.Gt, value) 3882 } 3883 3884 func (b *filterCndBuilderSpecSupportingQueriesTsQueryAggregationCrossSeriesReducer) Gte(value monitoring_common.Aggregation_Reducer) *FilterBuilder { 3885 return b.compare(gotenfilter.Gte, value) 3886 } 3887 3888 func (b *filterCndBuilderSpecSupportingQueriesTsQueryAggregationCrossSeriesReducer) Lt(value monitoring_common.Aggregation_Reducer) *FilterBuilder { 3889 return b.compare(gotenfilter.Lt, value) 3890 } 3891 3892 func (b *filterCndBuilderSpecSupportingQueriesTsQueryAggregationCrossSeriesReducer) Lte(value monitoring_common.Aggregation_Reducer) *FilterBuilder { 3893 return b.compare(gotenfilter.Lte, value) 3894 } 3895 3896 func (b *filterCndBuilderSpecSupportingQueriesTsQueryAggregationCrossSeriesReducer) In(values []monitoring_common.Aggregation_Reducer) *FilterBuilder { 3897 return b.builder.addCond(&FilterConditionIn{ 3898 Policy_FieldPathArrayOfValues: NewPolicyFieldPathBuilder().Spec().SupportingQueries().TsQuery().Aggregation().CrossSeriesReducer().WithArrayOfValues(values), 3899 }) 3900 } 3901 3902 func (b *filterCndBuilderSpecSupportingQueriesTsQueryAggregationCrossSeriesReducer) NotIn(values []monitoring_common.Aggregation_Reducer) *FilterBuilder { 3903 return b.builder.addCond(&FilterConditionNotIn{ 3904 Policy_FieldPathArrayOfValues: NewPolicyFieldPathBuilder().Spec().SupportingQueries().TsQuery().Aggregation().CrossSeriesReducer().WithArrayOfValues(values), 3905 }) 3906 } 3907 3908 func (b *filterCndBuilderSpecSupportingQueriesTsQueryAggregationCrossSeriesReducer) IsNull() *FilterBuilder { 3909 return b.builder.addCond(&FilterConditionIsNull{ 3910 FieldPath: NewPolicyFieldPathBuilder().Spec().SupportingQueries().TsQuery().Aggregation().CrossSeriesReducer().FieldPath(), 3911 }) 3912 } 3913 3914 func (b *filterCndBuilderSpecSupportingQueriesTsQueryAggregationCrossSeriesReducer) IsNan() *FilterBuilder { 3915 return b.builder.addCond(&FilterConditionIsNaN{ 3916 FieldPath: NewPolicyFieldPathBuilder().Spec().SupportingQueries().TsQuery().Aggregation().CrossSeriesReducer().FieldPath(), 3917 }) 3918 } 3919 3920 func (b *filterCndBuilderSpecSupportingQueriesTsQueryAggregationCrossSeriesReducer) compare(op gotenfilter.CompareOperator, value monitoring_common.Aggregation_Reducer) *FilterBuilder { 3921 return b.builder.addCond(&FilterConditionCompare{ 3922 Operator: op, 3923 Policy_FieldPathValue: NewPolicyFieldPathBuilder().Spec().SupportingQueries().TsQuery().Aggregation().CrossSeriesReducer().WithValue(value), 3924 }) 3925 } 3926 3927 type filterCndBuilderSpecSupportingQueriesTsQueryAggregationGroupByFields struct { 3928 builder *FilterBuilder 3929 } 3930 3931 func (b *filterCndBuilderSpecSupportingQueriesTsQueryAggregationGroupByFields) Eq(value []string) *FilterBuilder { 3932 return b.compare(gotenfilter.Eq, value) 3933 } 3934 3935 func (b *filterCndBuilderSpecSupportingQueriesTsQueryAggregationGroupByFields) Neq(value []string) *FilterBuilder { 3936 return b.compare(gotenfilter.Neq, value) 3937 } 3938 3939 func (b *filterCndBuilderSpecSupportingQueriesTsQueryAggregationGroupByFields) Gt(value []string) *FilterBuilder { 3940 return b.compare(gotenfilter.Gt, value) 3941 } 3942 3943 func (b *filterCndBuilderSpecSupportingQueriesTsQueryAggregationGroupByFields) Gte(value []string) *FilterBuilder { 3944 return b.compare(gotenfilter.Gte, value) 3945 } 3946 3947 func (b *filterCndBuilderSpecSupportingQueriesTsQueryAggregationGroupByFields) Lt(value []string) *FilterBuilder { 3948 return b.compare(gotenfilter.Lt, value) 3949 } 3950 3951 func (b *filterCndBuilderSpecSupportingQueriesTsQueryAggregationGroupByFields) Lte(value []string) *FilterBuilder { 3952 return b.compare(gotenfilter.Lte, value) 3953 } 3954 3955 func (b *filterCndBuilderSpecSupportingQueriesTsQueryAggregationGroupByFields) In(values [][]string) *FilterBuilder { 3956 return b.builder.addCond(&FilterConditionIn{ 3957 Policy_FieldPathArrayOfValues: NewPolicyFieldPathBuilder().Spec().SupportingQueries().TsQuery().Aggregation().GroupByFields().WithArrayOfValues(values), 3958 }) 3959 } 3960 3961 func (b *filterCndBuilderSpecSupportingQueriesTsQueryAggregationGroupByFields) NotIn(values [][]string) *FilterBuilder { 3962 return b.builder.addCond(&FilterConditionNotIn{ 3963 Policy_FieldPathArrayOfValues: NewPolicyFieldPathBuilder().Spec().SupportingQueries().TsQuery().Aggregation().GroupByFields().WithArrayOfValues(values), 3964 }) 3965 } 3966 3967 func (b *filterCndBuilderSpecSupportingQueriesTsQueryAggregationGroupByFields) IsNull() *FilterBuilder { 3968 return b.builder.addCond(&FilterConditionIsNull{ 3969 FieldPath: NewPolicyFieldPathBuilder().Spec().SupportingQueries().TsQuery().Aggregation().GroupByFields().FieldPath(), 3970 }) 3971 } 3972 3973 func (b *filterCndBuilderSpecSupportingQueriesTsQueryAggregationGroupByFields) IsNan() *FilterBuilder { 3974 return b.builder.addCond(&FilterConditionIsNaN{ 3975 FieldPath: NewPolicyFieldPathBuilder().Spec().SupportingQueries().TsQuery().Aggregation().GroupByFields().FieldPath(), 3976 }) 3977 } 3978 3979 func (b *filterCndBuilderSpecSupportingQueriesTsQueryAggregationGroupByFields) Contains(value string) *FilterBuilder { 3980 return b.builder.addCond(&FilterConditionContains{ 3981 Type: gotenresource.ConditionContainsTypeValue, 3982 FieldPath: NewPolicyFieldPathBuilder().Spec().SupportingQueries().TsQuery().Aggregation().GroupByFields().FieldPath(), 3983 Value: NewPolicyFieldPathBuilder().Spec().SupportingQueries().TsQuery().Aggregation().GroupByFields().WithItemValue(value), 3984 }) 3985 } 3986 3987 func (b *filterCndBuilderSpecSupportingQueriesTsQueryAggregationGroupByFields) ContainsAnyOf(values []string) *FilterBuilder { 3988 pathSelector := NewPolicyFieldPathBuilder().Spec().SupportingQueries().TsQuery().Aggregation().GroupByFields() 3989 itemValues := make([]Policy_FieldPathArrayItemValue, 0, len(values)) 3990 for _, value := range values { 3991 itemValues = append(itemValues, pathSelector.WithItemValue(value)) 3992 } 3993 return b.builder.addCond(&FilterConditionContains{ 3994 Type: gotenresource.ConditionContainsTypeAny, 3995 FieldPath: NewPolicyFieldPathBuilder().Spec().SupportingQueries().TsQuery().Aggregation().GroupByFields().FieldPath(), 3996 Values: itemValues, 3997 }) 3998 } 3999 4000 func (b *filterCndBuilderSpecSupportingQueriesTsQueryAggregationGroupByFields) ContainsAll(values []string) *FilterBuilder { 4001 pathSelector := NewPolicyFieldPathBuilder().Spec().SupportingQueries().TsQuery().Aggregation().GroupByFields() 4002 itemValues := make([]Policy_FieldPathArrayItemValue, 0, len(values)) 4003 for _, value := range values { 4004 itemValues = append(itemValues, pathSelector.WithItemValue(value)) 4005 } 4006 return b.builder.addCond(&FilterConditionContains{ 4007 Type: gotenresource.ConditionContainsTypeAll, 4008 FieldPath: NewPolicyFieldPathBuilder().Spec().SupportingQueries().TsQuery().Aggregation().GroupByFields().FieldPath(), 4009 Values: itemValues, 4010 }) 4011 } 4012 4013 func (b *filterCndBuilderSpecSupportingQueriesTsQueryAggregationGroupByFields) compare(op gotenfilter.CompareOperator, value []string) *FilterBuilder { 4014 return b.builder.addCond(&FilterConditionCompare{ 4015 Operator: op, 4016 Policy_FieldPathValue: NewPolicyFieldPathBuilder().Spec().SupportingQueries().TsQuery().Aggregation().GroupByFields().WithValue(value), 4017 }) 4018 } 4019 4020 type filterCndBuilderSpecSupportingQueriesLogQuery struct { 4021 builder *FilterBuilder 4022 } 4023 4024 func (b *filterCndBuilderSpecSupportingQueriesLogQuery) Eq(value *rcommon.PolicySpec_SupportingAlertQuery_LogQuery) *FilterBuilder { 4025 return b.compare(gotenfilter.Eq, value) 4026 } 4027 4028 func (b *filterCndBuilderSpecSupportingQueriesLogQuery) Neq(value *rcommon.PolicySpec_SupportingAlertQuery_LogQuery) *FilterBuilder { 4029 return b.compare(gotenfilter.Neq, value) 4030 } 4031 4032 func (b *filterCndBuilderSpecSupportingQueriesLogQuery) Gt(value *rcommon.PolicySpec_SupportingAlertQuery_LogQuery) *FilterBuilder { 4033 return b.compare(gotenfilter.Gt, value) 4034 } 4035 4036 func (b *filterCndBuilderSpecSupportingQueriesLogQuery) Gte(value *rcommon.PolicySpec_SupportingAlertQuery_LogQuery) *FilterBuilder { 4037 return b.compare(gotenfilter.Gte, value) 4038 } 4039 4040 func (b *filterCndBuilderSpecSupportingQueriesLogQuery) Lt(value *rcommon.PolicySpec_SupportingAlertQuery_LogQuery) *FilterBuilder { 4041 return b.compare(gotenfilter.Lt, value) 4042 } 4043 4044 func (b *filterCndBuilderSpecSupportingQueriesLogQuery) Lte(value *rcommon.PolicySpec_SupportingAlertQuery_LogQuery) *FilterBuilder { 4045 return b.compare(gotenfilter.Lte, value) 4046 } 4047 4048 func (b *filterCndBuilderSpecSupportingQueriesLogQuery) In(values []*rcommon.PolicySpec_SupportingAlertQuery_LogQuery) *FilterBuilder { 4049 return b.builder.addCond(&FilterConditionIn{ 4050 Policy_FieldPathArrayOfValues: NewPolicyFieldPathBuilder().Spec().SupportingQueries().LogQuery().WithArrayOfValues(values), 4051 }) 4052 } 4053 4054 func (b *filterCndBuilderSpecSupportingQueriesLogQuery) NotIn(values []*rcommon.PolicySpec_SupportingAlertQuery_LogQuery) *FilterBuilder { 4055 return b.builder.addCond(&FilterConditionNotIn{ 4056 Policy_FieldPathArrayOfValues: NewPolicyFieldPathBuilder().Spec().SupportingQueries().LogQuery().WithArrayOfValues(values), 4057 }) 4058 } 4059 4060 func (b *filterCndBuilderSpecSupportingQueriesLogQuery) IsNull() *FilterBuilder { 4061 return b.builder.addCond(&FilterConditionIsNull{ 4062 FieldPath: NewPolicyFieldPathBuilder().Spec().SupportingQueries().LogQuery().FieldPath(), 4063 }) 4064 } 4065 4066 func (b *filterCndBuilderSpecSupportingQueriesLogQuery) IsNan() *FilterBuilder { 4067 return b.builder.addCond(&FilterConditionIsNaN{ 4068 FieldPath: NewPolicyFieldPathBuilder().Spec().SupportingQueries().LogQuery().FieldPath(), 4069 }) 4070 } 4071 4072 func (b *filterCndBuilderSpecSupportingQueriesLogQuery) compare(op gotenfilter.CompareOperator, value *rcommon.PolicySpec_SupportingAlertQuery_LogQuery) *FilterBuilder { 4073 return b.builder.addCond(&FilterConditionCompare{ 4074 Operator: op, 4075 Policy_FieldPathValue: NewPolicyFieldPathBuilder().Spec().SupportingQueries().LogQuery().WithValue(value), 4076 }) 4077 } 4078 4079 func (b *filterCndBuilderSpecSupportingQueriesLogQuery) Description() *filterCndBuilderSpecSupportingQueriesLogQueryDescription { 4080 return &filterCndBuilderSpecSupportingQueriesLogQueryDescription{builder: b.builder} 4081 } 4082 4083 func (b *filterCndBuilderSpecSupportingQueriesLogQuery) FilterTemplate() *filterCndBuilderSpecSupportingQueriesLogQueryFilterTemplate { 4084 return &filterCndBuilderSpecSupportingQueriesLogQueryFilterTemplate{builder: b.builder} 4085 } 4086 4087 type filterCndBuilderSpecSupportingQueriesLogQueryDescription struct { 4088 builder *FilterBuilder 4089 } 4090 4091 func (b *filterCndBuilderSpecSupportingQueriesLogQueryDescription) Eq(value string) *FilterBuilder { 4092 return b.compare(gotenfilter.Eq, value) 4093 } 4094 4095 func (b *filterCndBuilderSpecSupportingQueriesLogQueryDescription) Neq(value string) *FilterBuilder { 4096 return b.compare(gotenfilter.Neq, value) 4097 } 4098 4099 func (b *filterCndBuilderSpecSupportingQueriesLogQueryDescription) Gt(value string) *FilterBuilder { 4100 return b.compare(gotenfilter.Gt, value) 4101 } 4102 4103 func (b *filterCndBuilderSpecSupportingQueriesLogQueryDescription) Gte(value string) *FilterBuilder { 4104 return b.compare(gotenfilter.Gte, value) 4105 } 4106 4107 func (b *filterCndBuilderSpecSupportingQueriesLogQueryDescription) Lt(value string) *FilterBuilder { 4108 return b.compare(gotenfilter.Lt, value) 4109 } 4110 4111 func (b *filterCndBuilderSpecSupportingQueriesLogQueryDescription) Lte(value string) *FilterBuilder { 4112 return b.compare(gotenfilter.Lte, value) 4113 } 4114 4115 func (b *filterCndBuilderSpecSupportingQueriesLogQueryDescription) In(values []string) *FilterBuilder { 4116 return b.builder.addCond(&FilterConditionIn{ 4117 Policy_FieldPathArrayOfValues: NewPolicyFieldPathBuilder().Spec().SupportingQueries().LogQuery().Description().WithArrayOfValues(values), 4118 }) 4119 } 4120 4121 func (b *filterCndBuilderSpecSupportingQueriesLogQueryDescription) NotIn(values []string) *FilterBuilder { 4122 return b.builder.addCond(&FilterConditionNotIn{ 4123 Policy_FieldPathArrayOfValues: NewPolicyFieldPathBuilder().Spec().SupportingQueries().LogQuery().Description().WithArrayOfValues(values), 4124 }) 4125 } 4126 4127 func (b *filterCndBuilderSpecSupportingQueriesLogQueryDescription) IsNull() *FilterBuilder { 4128 return b.builder.addCond(&FilterConditionIsNull{ 4129 FieldPath: NewPolicyFieldPathBuilder().Spec().SupportingQueries().LogQuery().Description().FieldPath(), 4130 }) 4131 } 4132 4133 func (b *filterCndBuilderSpecSupportingQueriesLogQueryDescription) IsNan() *FilterBuilder { 4134 return b.builder.addCond(&FilterConditionIsNaN{ 4135 FieldPath: NewPolicyFieldPathBuilder().Spec().SupportingQueries().LogQuery().Description().FieldPath(), 4136 }) 4137 } 4138 4139 func (b *filterCndBuilderSpecSupportingQueriesLogQueryDescription) compare(op gotenfilter.CompareOperator, value string) *FilterBuilder { 4140 return b.builder.addCond(&FilterConditionCompare{ 4141 Operator: op, 4142 Policy_FieldPathValue: NewPolicyFieldPathBuilder().Spec().SupportingQueries().LogQuery().Description().WithValue(value), 4143 }) 4144 } 4145 4146 type filterCndBuilderSpecSupportingQueriesLogQueryFilterTemplate struct { 4147 builder *FilterBuilder 4148 } 4149 4150 func (b *filterCndBuilderSpecSupportingQueriesLogQueryFilterTemplate) Eq(value string) *FilterBuilder { 4151 return b.compare(gotenfilter.Eq, value) 4152 } 4153 4154 func (b *filterCndBuilderSpecSupportingQueriesLogQueryFilterTemplate) Neq(value string) *FilterBuilder { 4155 return b.compare(gotenfilter.Neq, value) 4156 } 4157 4158 func (b *filterCndBuilderSpecSupportingQueriesLogQueryFilterTemplate) Gt(value string) *FilterBuilder { 4159 return b.compare(gotenfilter.Gt, value) 4160 } 4161 4162 func (b *filterCndBuilderSpecSupportingQueriesLogQueryFilterTemplate) Gte(value string) *FilterBuilder { 4163 return b.compare(gotenfilter.Gte, value) 4164 } 4165 4166 func (b *filterCndBuilderSpecSupportingQueriesLogQueryFilterTemplate) Lt(value string) *FilterBuilder { 4167 return b.compare(gotenfilter.Lt, value) 4168 } 4169 4170 func (b *filterCndBuilderSpecSupportingQueriesLogQueryFilterTemplate) Lte(value string) *FilterBuilder { 4171 return b.compare(gotenfilter.Lte, value) 4172 } 4173 4174 func (b *filterCndBuilderSpecSupportingQueriesLogQueryFilterTemplate) In(values []string) *FilterBuilder { 4175 return b.builder.addCond(&FilterConditionIn{ 4176 Policy_FieldPathArrayOfValues: NewPolicyFieldPathBuilder().Spec().SupportingQueries().LogQuery().FilterTemplate().WithArrayOfValues(values), 4177 }) 4178 } 4179 4180 func (b *filterCndBuilderSpecSupportingQueriesLogQueryFilterTemplate) NotIn(values []string) *FilterBuilder { 4181 return b.builder.addCond(&FilterConditionNotIn{ 4182 Policy_FieldPathArrayOfValues: NewPolicyFieldPathBuilder().Spec().SupportingQueries().LogQuery().FilterTemplate().WithArrayOfValues(values), 4183 }) 4184 } 4185 4186 func (b *filterCndBuilderSpecSupportingQueriesLogQueryFilterTemplate) IsNull() *FilterBuilder { 4187 return b.builder.addCond(&FilterConditionIsNull{ 4188 FieldPath: NewPolicyFieldPathBuilder().Spec().SupportingQueries().LogQuery().FilterTemplate().FieldPath(), 4189 }) 4190 } 4191 4192 func (b *filterCndBuilderSpecSupportingQueriesLogQueryFilterTemplate) IsNan() *FilterBuilder { 4193 return b.builder.addCond(&FilterConditionIsNaN{ 4194 FieldPath: NewPolicyFieldPathBuilder().Spec().SupportingQueries().LogQuery().FilterTemplate().FieldPath(), 4195 }) 4196 } 4197 4198 func (b *filterCndBuilderSpecSupportingQueriesLogQueryFilterTemplate) compare(op gotenfilter.CompareOperator, value string) *FilterBuilder { 4199 return b.builder.addCond(&FilterConditionCompare{ 4200 Operator: op, 4201 Policy_FieldPathValue: NewPolicyFieldPathBuilder().Spec().SupportingQueries().LogQuery().FilterTemplate().WithValue(value), 4202 }) 4203 } 4204 4205 type filterCndBuilderSpecSupportingQueriesRestGetQuery struct { 4206 builder *FilterBuilder 4207 } 4208 4209 func (b *filterCndBuilderSpecSupportingQueriesRestGetQuery) Eq(value *rcommon.PolicySpec_SupportingAlertQuery_RestGetQuery) *FilterBuilder { 4210 return b.compare(gotenfilter.Eq, value) 4211 } 4212 4213 func (b *filterCndBuilderSpecSupportingQueriesRestGetQuery) Neq(value *rcommon.PolicySpec_SupportingAlertQuery_RestGetQuery) *FilterBuilder { 4214 return b.compare(gotenfilter.Neq, value) 4215 } 4216 4217 func (b *filterCndBuilderSpecSupportingQueriesRestGetQuery) Gt(value *rcommon.PolicySpec_SupportingAlertQuery_RestGetQuery) *FilterBuilder { 4218 return b.compare(gotenfilter.Gt, value) 4219 } 4220 4221 func (b *filterCndBuilderSpecSupportingQueriesRestGetQuery) Gte(value *rcommon.PolicySpec_SupportingAlertQuery_RestGetQuery) *FilterBuilder { 4222 return b.compare(gotenfilter.Gte, value) 4223 } 4224 4225 func (b *filterCndBuilderSpecSupportingQueriesRestGetQuery) Lt(value *rcommon.PolicySpec_SupportingAlertQuery_RestGetQuery) *FilterBuilder { 4226 return b.compare(gotenfilter.Lt, value) 4227 } 4228 4229 func (b *filterCndBuilderSpecSupportingQueriesRestGetQuery) Lte(value *rcommon.PolicySpec_SupportingAlertQuery_RestGetQuery) *FilterBuilder { 4230 return b.compare(gotenfilter.Lte, value) 4231 } 4232 4233 func (b *filterCndBuilderSpecSupportingQueriesRestGetQuery) In(values []*rcommon.PolicySpec_SupportingAlertQuery_RestGetQuery) *FilterBuilder { 4234 return b.builder.addCond(&FilterConditionIn{ 4235 Policy_FieldPathArrayOfValues: NewPolicyFieldPathBuilder().Spec().SupportingQueries().RestGetQuery().WithArrayOfValues(values), 4236 }) 4237 } 4238 4239 func (b *filterCndBuilderSpecSupportingQueriesRestGetQuery) NotIn(values []*rcommon.PolicySpec_SupportingAlertQuery_RestGetQuery) *FilterBuilder { 4240 return b.builder.addCond(&FilterConditionNotIn{ 4241 Policy_FieldPathArrayOfValues: NewPolicyFieldPathBuilder().Spec().SupportingQueries().RestGetQuery().WithArrayOfValues(values), 4242 }) 4243 } 4244 4245 func (b *filterCndBuilderSpecSupportingQueriesRestGetQuery) IsNull() *FilterBuilder { 4246 return b.builder.addCond(&FilterConditionIsNull{ 4247 FieldPath: NewPolicyFieldPathBuilder().Spec().SupportingQueries().RestGetQuery().FieldPath(), 4248 }) 4249 } 4250 4251 func (b *filterCndBuilderSpecSupportingQueriesRestGetQuery) IsNan() *FilterBuilder { 4252 return b.builder.addCond(&FilterConditionIsNaN{ 4253 FieldPath: NewPolicyFieldPathBuilder().Spec().SupportingQueries().RestGetQuery().FieldPath(), 4254 }) 4255 } 4256 4257 func (b *filterCndBuilderSpecSupportingQueriesRestGetQuery) compare(op gotenfilter.CompareOperator, value *rcommon.PolicySpec_SupportingAlertQuery_RestGetQuery) *FilterBuilder { 4258 return b.builder.addCond(&FilterConditionCompare{ 4259 Operator: op, 4260 Policy_FieldPathValue: NewPolicyFieldPathBuilder().Spec().SupportingQueries().RestGetQuery().WithValue(value), 4261 }) 4262 } 4263 4264 func (b *filterCndBuilderSpecSupportingQueriesRestGetQuery) Description() *filterCndBuilderSpecSupportingQueriesRestGetQueryDescription { 4265 return &filterCndBuilderSpecSupportingQueriesRestGetQueryDescription{builder: b.builder} 4266 } 4267 4268 func (b *filterCndBuilderSpecSupportingQueriesRestGetQuery) Endpoint() *filterCndBuilderSpecSupportingQueriesRestGetQueryEndpoint { 4269 return &filterCndBuilderSpecSupportingQueriesRestGetQueryEndpoint{builder: b.builder} 4270 } 4271 4272 func (b *filterCndBuilderSpecSupportingQueriesRestGetQuery) PathTemplate() *filterCndBuilderSpecSupportingQueriesRestGetQueryPathTemplate { 4273 return &filterCndBuilderSpecSupportingQueriesRestGetQueryPathTemplate{builder: b.builder} 4274 } 4275 4276 func (b *filterCndBuilderSpecSupportingQueriesRestGetQuery) View() *filterCndBuilderSpecSupportingQueriesRestGetQueryView { 4277 return &filterCndBuilderSpecSupportingQueriesRestGetQueryView{builder: b.builder} 4278 } 4279 4280 func (b *filterCndBuilderSpecSupportingQueriesRestGetQuery) FieldMask() *filterCndBuilderSpecSupportingQueriesRestGetQueryFieldMask { 4281 return &filterCndBuilderSpecSupportingQueriesRestGetQueryFieldMask{builder: b.builder} 4282 } 4283 4284 type filterCndBuilderSpecSupportingQueriesRestGetQueryDescription struct { 4285 builder *FilterBuilder 4286 } 4287 4288 func (b *filterCndBuilderSpecSupportingQueriesRestGetQueryDescription) Eq(value string) *FilterBuilder { 4289 return b.compare(gotenfilter.Eq, value) 4290 } 4291 4292 func (b *filterCndBuilderSpecSupportingQueriesRestGetQueryDescription) Neq(value string) *FilterBuilder { 4293 return b.compare(gotenfilter.Neq, value) 4294 } 4295 4296 func (b *filterCndBuilderSpecSupportingQueriesRestGetQueryDescription) Gt(value string) *FilterBuilder { 4297 return b.compare(gotenfilter.Gt, value) 4298 } 4299 4300 func (b *filterCndBuilderSpecSupportingQueriesRestGetQueryDescription) Gte(value string) *FilterBuilder { 4301 return b.compare(gotenfilter.Gte, value) 4302 } 4303 4304 func (b *filterCndBuilderSpecSupportingQueriesRestGetQueryDescription) Lt(value string) *FilterBuilder { 4305 return b.compare(gotenfilter.Lt, value) 4306 } 4307 4308 func (b *filterCndBuilderSpecSupportingQueriesRestGetQueryDescription) Lte(value string) *FilterBuilder { 4309 return b.compare(gotenfilter.Lte, value) 4310 } 4311 4312 func (b *filterCndBuilderSpecSupportingQueriesRestGetQueryDescription) In(values []string) *FilterBuilder { 4313 return b.builder.addCond(&FilterConditionIn{ 4314 Policy_FieldPathArrayOfValues: NewPolicyFieldPathBuilder().Spec().SupportingQueries().RestGetQuery().Description().WithArrayOfValues(values), 4315 }) 4316 } 4317 4318 func (b *filterCndBuilderSpecSupportingQueriesRestGetQueryDescription) NotIn(values []string) *FilterBuilder { 4319 return b.builder.addCond(&FilterConditionNotIn{ 4320 Policy_FieldPathArrayOfValues: NewPolicyFieldPathBuilder().Spec().SupportingQueries().RestGetQuery().Description().WithArrayOfValues(values), 4321 }) 4322 } 4323 4324 func (b *filterCndBuilderSpecSupportingQueriesRestGetQueryDescription) IsNull() *FilterBuilder { 4325 return b.builder.addCond(&FilterConditionIsNull{ 4326 FieldPath: NewPolicyFieldPathBuilder().Spec().SupportingQueries().RestGetQuery().Description().FieldPath(), 4327 }) 4328 } 4329 4330 func (b *filterCndBuilderSpecSupportingQueriesRestGetQueryDescription) IsNan() *FilterBuilder { 4331 return b.builder.addCond(&FilterConditionIsNaN{ 4332 FieldPath: NewPolicyFieldPathBuilder().Spec().SupportingQueries().RestGetQuery().Description().FieldPath(), 4333 }) 4334 } 4335 4336 func (b *filterCndBuilderSpecSupportingQueriesRestGetQueryDescription) compare(op gotenfilter.CompareOperator, value string) *FilterBuilder { 4337 return b.builder.addCond(&FilterConditionCompare{ 4338 Operator: op, 4339 Policy_FieldPathValue: NewPolicyFieldPathBuilder().Spec().SupportingQueries().RestGetQuery().Description().WithValue(value), 4340 }) 4341 } 4342 4343 type filterCndBuilderSpecSupportingQueriesRestGetQueryEndpoint struct { 4344 builder *FilterBuilder 4345 } 4346 4347 func (b *filterCndBuilderSpecSupportingQueriesRestGetQueryEndpoint) Eq(value string) *FilterBuilder { 4348 return b.compare(gotenfilter.Eq, value) 4349 } 4350 4351 func (b *filterCndBuilderSpecSupportingQueriesRestGetQueryEndpoint) Neq(value string) *FilterBuilder { 4352 return b.compare(gotenfilter.Neq, value) 4353 } 4354 4355 func (b *filterCndBuilderSpecSupportingQueriesRestGetQueryEndpoint) Gt(value string) *FilterBuilder { 4356 return b.compare(gotenfilter.Gt, value) 4357 } 4358 4359 func (b *filterCndBuilderSpecSupportingQueriesRestGetQueryEndpoint) Gte(value string) *FilterBuilder { 4360 return b.compare(gotenfilter.Gte, value) 4361 } 4362 4363 func (b *filterCndBuilderSpecSupportingQueriesRestGetQueryEndpoint) Lt(value string) *FilterBuilder { 4364 return b.compare(gotenfilter.Lt, value) 4365 } 4366 4367 func (b *filterCndBuilderSpecSupportingQueriesRestGetQueryEndpoint) Lte(value string) *FilterBuilder { 4368 return b.compare(gotenfilter.Lte, value) 4369 } 4370 4371 func (b *filterCndBuilderSpecSupportingQueriesRestGetQueryEndpoint) In(values []string) *FilterBuilder { 4372 return b.builder.addCond(&FilterConditionIn{ 4373 Policy_FieldPathArrayOfValues: NewPolicyFieldPathBuilder().Spec().SupportingQueries().RestGetQuery().Endpoint().WithArrayOfValues(values), 4374 }) 4375 } 4376 4377 func (b *filterCndBuilderSpecSupportingQueriesRestGetQueryEndpoint) NotIn(values []string) *FilterBuilder { 4378 return b.builder.addCond(&FilterConditionNotIn{ 4379 Policy_FieldPathArrayOfValues: NewPolicyFieldPathBuilder().Spec().SupportingQueries().RestGetQuery().Endpoint().WithArrayOfValues(values), 4380 }) 4381 } 4382 4383 func (b *filterCndBuilderSpecSupportingQueriesRestGetQueryEndpoint) IsNull() *FilterBuilder { 4384 return b.builder.addCond(&FilterConditionIsNull{ 4385 FieldPath: NewPolicyFieldPathBuilder().Spec().SupportingQueries().RestGetQuery().Endpoint().FieldPath(), 4386 }) 4387 } 4388 4389 func (b *filterCndBuilderSpecSupportingQueriesRestGetQueryEndpoint) IsNan() *FilterBuilder { 4390 return b.builder.addCond(&FilterConditionIsNaN{ 4391 FieldPath: NewPolicyFieldPathBuilder().Spec().SupportingQueries().RestGetQuery().Endpoint().FieldPath(), 4392 }) 4393 } 4394 4395 func (b *filterCndBuilderSpecSupportingQueriesRestGetQueryEndpoint) compare(op gotenfilter.CompareOperator, value string) *FilterBuilder { 4396 return b.builder.addCond(&FilterConditionCompare{ 4397 Operator: op, 4398 Policy_FieldPathValue: NewPolicyFieldPathBuilder().Spec().SupportingQueries().RestGetQuery().Endpoint().WithValue(value), 4399 }) 4400 } 4401 4402 type filterCndBuilderSpecSupportingQueriesRestGetQueryPathTemplate struct { 4403 builder *FilterBuilder 4404 } 4405 4406 func (b *filterCndBuilderSpecSupportingQueriesRestGetQueryPathTemplate) Eq(value string) *FilterBuilder { 4407 return b.compare(gotenfilter.Eq, value) 4408 } 4409 4410 func (b *filterCndBuilderSpecSupportingQueriesRestGetQueryPathTemplate) Neq(value string) *FilterBuilder { 4411 return b.compare(gotenfilter.Neq, value) 4412 } 4413 4414 func (b *filterCndBuilderSpecSupportingQueriesRestGetQueryPathTemplate) Gt(value string) *FilterBuilder { 4415 return b.compare(gotenfilter.Gt, value) 4416 } 4417 4418 func (b *filterCndBuilderSpecSupportingQueriesRestGetQueryPathTemplate) Gte(value string) *FilterBuilder { 4419 return b.compare(gotenfilter.Gte, value) 4420 } 4421 4422 func (b *filterCndBuilderSpecSupportingQueriesRestGetQueryPathTemplate) Lt(value string) *FilterBuilder { 4423 return b.compare(gotenfilter.Lt, value) 4424 } 4425 4426 func (b *filterCndBuilderSpecSupportingQueriesRestGetQueryPathTemplate) Lte(value string) *FilterBuilder { 4427 return b.compare(gotenfilter.Lte, value) 4428 } 4429 4430 func (b *filterCndBuilderSpecSupportingQueriesRestGetQueryPathTemplate) In(values []string) *FilterBuilder { 4431 return b.builder.addCond(&FilterConditionIn{ 4432 Policy_FieldPathArrayOfValues: NewPolicyFieldPathBuilder().Spec().SupportingQueries().RestGetQuery().PathTemplate().WithArrayOfValues(values), 4433 }) 4434 } 4435 4436 func (b *filterCndBuilderSpecSupportingQueriesRestGetQueryPathTemplate) NotIn(values []string) *FilterBuilder { 4437 return b.builder.addCond(&FilterConditionNotIn{ 4438 Policy_FieldPathArrayOfValues: NewPolicyFieldPathBuilder().Spec().SupportingQueries().RestGetQuery().PathTemplate().WithArrayOfValues(values), 4439 }) 4440 } 4441 4442 func (b *filterCndBuilderSpecSupportingQueriesRestGetQueryPathTemplate) IsNull() *FilterBuilder { 4443 return b.builder.addCond(&FilterConditionIsNull{ 4444 FieldPath: NewPolicyFieldPathBuilder().Spec().SupportingQueries().RestGetQuery().PathTemplate().FieldPath(), 4445 }) 4446 } 4447 4448 func (b *filterCndBuilderSpecSupportingQueriesRestGetQueryPathTemplate) IsNan() *FilterBuilder { 4449 return b.builder.addCond(&FilterConditionIsNaN{ 4450 FieldPath: NewPolicyFieldPathBuilder().Spec().SupportingQueries().RestGetQuery().PathTemplate().FieldPath(), 4451 }) 4452 } 4453 4454 func (b *filterCndBuilderSpecSupportingQueriesRestGetQueryPathTemplate) compare(op gotenfilter.CompareOperator, value string) *FilterBuilder { 4455 return b.builder.addCond(&FilterConditionCompare{ 4456 Operator: op, 4457 Policy_FieldPathValue: NewPolicyFieldPathBuilder().Spec().SupportingQueries().RestGetQuery().PathTemplate().WithValue(value), 4458 }) 4459 } 4460 4461 type filterCndBuilderSpecSupportingQueriesRestGetQueryView struct { 4462 builder *FilterBuilder 4463 } 4464 4465 func (b *filterCndBuilderSpecSupportingQueriesRestGetQueryView) Eq(value string) *FilterBuilder { 4466 return b.compare(gotenfilter.Eq, value) 4467 } 4468 4469 func (b *filterCndBuilderSpecSupportingQueriesRestGetQueryView) Neq(value string) *FilterBuilder { 4470 return b.compare(gotenfilter.Neq, value) 4471 } 4472 4473 func (b *filterCndBuilderSpecSupportingQueriesRestGetQueryView) Gt(value string) *FilterBuilder { 4474 return b.compare(gotenfilter.Gt, value) 4475 } 4476 4477 func (b *filterCndBuilderSpecSupportingQueriesRestGetQueryView) Gte(value string) *FilterBuilder { 4478 return b.compare(gotenfilter.Gte, value) 4479 } 4480 4481 func (b *filterCndBuilderSpecSupportingQueriesRestGetQueryView) Lt(value string) *FilterBuilder { 4482 return b.compare(gotenfilter.Lt, value) 4483 } 4484 4485 func (b *filterCndBuilderSpecSupportingQueriesRestGetQueryView) Lte(value string) *FilterBuilder { 4486 return b.compare(gotenfilter.Lte, value) 4487 } 4488 4489 func (b *filterCndBuilderSpecSupportingQueriesRestGetQueryView) In(values []string) *FilterBuilder { 4490 return b.builder.addCond(&FilterConditionIn{ 4491 Policy_FieldPathArrayOfValues: NewPolicyFieldPathBuilder().Spec().SupportingQueries().RestGetQuery().View().WithArrayOfValues(values), 4492 }) 4493 } 4494 4495 func (b *filterCndBuilderSpecSupportingQueriesRestGetQueryView) NotIn(values []string) *FilterBuilder { 4496 return b.builder.addCond(&FilterConditionNotIn{ 4497 Policy_FieldPathArrayOfValues: NewPolicyFieldPathBuilder().Spec().SupportingQueries().RestGetQuery().View().WithArrayOfValues(values), 4498 }) 4499 } 4500 4501 func (b *filterCndBuilderSpecSupportingQueriesRestGetQueryView) IsNull() *FilterBuilder { 4502 return b.builder.addCond(&FilterConditionIsNull{ 4503 FieldPath: NewPolicyFieldPathBuilder().Spec().SupportingQueries().RestGetQuery().View().FieldPath(), 4504 }) 4505 } 4506 4507 func (b *filterCndBuilderSpecSupportingQueriesRestGetQueryView) IsNan() *FilterBuilder { 4508 return b.builder.addCond(&FilterConditionIsNaN{ 4509 FieldPath: NewPolicyFieldPathBuilder().Spec().SupportingQueries().RestGetQuery().View().FieldPath(), 4510 }) 4511 } 4512 4513 func (b *filterCndBuilderSpecSupportingQueriesRestGetQueryView) compare(op gotenfilter.CompareOperator, value string) *FilterBuilder { 4514 return b.builder.addCond(&FilterConditionCompare{ 4515 Operator: op, 4516 Policy_FieldPathValue: NewPolicyFieldPathBuilder().Spec().SupportingQueries().RestGetQuery().View().WithValue(value), 4517 }) 4518 } 4519 4520 type filterCndBuilderSpecSupportingQueriesRestGetQueryFieldMask struct { 4521 builder *FilterBuilder 4522 } 4523 4524 func (b *filterCndBuilderSpecSupportingQueriesRestGetQueryFieldMask) Eq(value string) *FilterBuilder { 4525 return b.compare(gotenfilter.Eq, value) 4526 } 4527 4528 func (b *filterCndBuilderSpecSupportingQueriesRestGetQueryFieldMask) Neq(value string) *FilterBuilder { 4529 return b.compare(gotenfilter.Neq, value) 4530 } 4531 4532 func (b *filterCndBuilderSpecSupportingQueriesRestGetQueryFieldMask) Gt(value string) *FilterBuilder { 4533 return b.compare(gotenfilter.Gt, value) 4534 } 4535 4536 func (b *filterCndBuilderSpecSupportingQueriesRestGetQueryFieldMask) Gte(value string) *FilterBuilder { 4537 return b.compare(gotenfilter.Gte, value) 4538 } 4539 4540 func (b *filterCndBuilderSpecSupportingQueriesRestGetQueryFieldMask) Lt(value string) *FilterBuilder { 4541 return b.compare(gotenfilter.Lt, value) 4542 } 4543 4544 func (b *filterCndBuilderSpecSupportingQueriesRestGetQueryFieldMask) Lte(value string) *FilterBuilder { 4545 return b.compare(gotenfilter.Lte, value) 4546 } 4547 4548 func (b *filterCndBuilderSpecSupportingQueriesRestGetQueryFieldMask) In(values []string) *FilterBuilder { 4549 return b.builder.addCond(&FilterConditionIn{ 4550 Policy_FieldPathArrayOfValues: NewPolicyFieldPathBuilder().Spec().SupportingQueries().RestGetQuery().FieldMask().WithArrayOfValues(values), 4551 }) 4552 } 4553 4554 func (b *filterCndBuilderSpecSupportingQueriesRestGetQueryFieldMask) NotIn(values []string) *FilterBuilder { 4555 return b.builder.addCond(&FilterConditionNotIn{ 4556 Policy_FieldPathArrayOfValues: NewPolicyFieldPathBuilder().Spec().SupportingQueries().RestGetQuery().FieldMask().WithArrayOfValues(values), 4557 }) 4558 } 4559 4560 func (b *filterCndBuilderSpecSupportingQueriesRestGetQueryFieldMask) IsNull() *FilterBuilder { 4561 return b.builder.addCond(&FilterConditionIsNull{ 4562 FieldPath: NewPolicyFieldPathBuilder().Spec().SupportingQueries().RestGetQuery().FieldMask().FieldPath(), 4563 }) 4564 } 4565 4566 func (b *filterCndBuilderSpecSupportingQueriesRestGetQueryFieldMask) IsNan() *FilterBuilder { 4567 return b.builder.addCond(&FilterConditionIsNaN{ 4568 FieldPath: NewPolicyFieldPathBuilder().Spec().SupportingQueries().RestGetQuery().FieldMask().FieldPath(), 4569 }) 4570 } 4571 4572 func (b *filterCndBuilderSpecSupportingQueriesRestGetQueryFieldMask) compare(op gotenfilter.CompareOperator, value string) *FilterBuilder { 4573 return b.builder.addCond(&FilterConditionCompare{ 4574 Operator: op, 4575 Policy_FieldPathValue: NewPolicyFieldPathBuilder().Spec().SupportingQueries().RestGetQuery().FieldMask().WithValue(value), 4576 }) 4577 } 4578 4579 type filterCndBuilderSpecSupportingQueriesRestListQuery struct { 4580 builder *FilterBuilder 4581 } 4582 4583 func (b *filterCndBuilderSpecSupportingQueriesRestListQuery) Eq(value *rcommon.PolicySpec_SupportingAlertQuery_RestListQuery) *FilterBuilder { 4584 return b.compare(gotenfilter.Eq, value) 4585 } 4586 4587 func (b *filterCndBuilderSpecSupportingQueriesRestListQuery) Neq(value *rcommon.PolicySpec_SupportingAlertQuery_RestListQuery) *FilterBuilder { 4588 return b.compare(gotenfilter.Neq, value) 4589 } 4590 4591 func (b *filterCndBuilderSpecSupportingQueriesRestListQuery) Gt(value *rcommon.PolicySpec_SupportingAlertQuery_RestListQuery) *FilterBuilder { 4592 return b.compare(gotenfilter.Gt, value) 4593 } 4594 4595 func (b *filterCndBuilderSpecSupportingQueriesRestListQuery) Gte(value *rcommon.PolicySpec_SupportingAlertQuery_RestListQuery) *FilterBuilder { 4596 return b.compare(gotenfilter.Gte, value) 4597 } 4598 4599 func (b *filterCndBuilderSpecSupportingQueriesRestListQuery) Lt(value *rcommon.PolicySpec_SupportingAlertQuery_RestListQuery) *FilterBuilder { 4600 return b.compare(gotenfilter.Lt, value) 4601 } 4602 4603 func (b *filterCndBuilderSpecSupportingQueriesRestListQuery) Lte(value *rcommon.PolicySpec_SupportingAlertQuery_RestListQuery) *FilterBuilder { 4604 return b.compare(gotenfilter.Lte, value) 4605 } 4606 4607 func (b *filterCndBuilderSpecSupportingQueriesRestListQuery) In(values []*rcommon.PolicySpec_SupportingAlertQuery_RestListQuery) *FilterBuilder { 4608 return b.builder.addCond(&FilterConditionIn{ 4609 Policy_FieldPathArrayOfValues: NewPolicyFieldPathBuilder().Spec().SupportingQueries().RestListQuery().WithArrayOfValues(values), 4610 }) 4611 } 4612 4613 func (b *filterCndBuilderSpecSupportingQueriesRestListQuery) NotIn(values []*rcommon.PolicySpec_SupportingAlertQuery_RestListQuery) *FilterBuilder { 4614 return b.builder.addCond(&FilterConditionNotIn{ 4615 Policy_FieldPathArrayOfValues: NewPolicyFieldPathBuilder().Spec().SupportingQueries().RestListQuery().WithArrayOfValues(values), 4616 }) 4617 } 4618 4619 func (b *filterCndBuilderSpecSupportingQueriesRestListQuery) IsNull() *FilterBuilder { 4620 return b.builder.addCond(&FilterConditionIsNull{ 4621 FieldPath: NewPolicyFieldPathBuilder().Spec().SupportingQueries().RestListQuery().FieldPath(), 4622 }) 4623 } 4624 4625 func (b *filterCndBuilderSpecSupportingQueriesRestListQuery) IsNan() *FilterBuilder { 4626 return b.builder.addCond(&FilterConditionIsNaN{ 4627 FieldPath: NewPolicyFieldPathBuilder().Spec().SupportingQueries().RestListQuery().FieldPath(), 4628 }) 4629 } 4630 4631 func (b *filterCndBuilderSpecSupportingQueriesRestListQuery) compare(op gotenfilter.CompareOperator, value *rcommon.PolicySpec_SupportingAlertQuery_RestListQuery) *FilterBuilder { 4632 return b.builder.addCond(&FilterConditionCompare{ 4633 Operator: op, 4634 Policy_FieldPathValue: NewPolicyFieldPathBuilder().Spec().SupportingQueries().RestListQuery().WithValue(value), 4635 }) 4636 } 4637 4638 func (b *filterCndBuilderSpecSupportingQueriesRestListQuery) Description() *filterCndBuilderSpecSupportingQueriesRestListQueryDescription { 4639 return &filterCndBuilderSpecSupportingQueriesRestListQueryDescription{builder: b.builder} 4640 } 4641 4642 func (b *filterCndBuilderSpecSupportingQueriesRestListQuery) Endpoint() *filterCndBuilderSpecSupportingQueriesRestListQueryEndpoint { 4643 return &filterCndBuilderSpecSupportingQueriesRestListQueryEndpoint{builder: b.builder} 4644 } 4645 4646 func (b *filterCndBuilderSpecSupportingQueriesRestListQuery) PathTemplate() *filterCndBuilderSpecSupportingQueriesRestListQueryPathTemplate { 4647 return &filterCndBuilderSpecSupportingQueriesRestListQueryPathTemplate{builder: b.builder} 4648 } 4649 4650 func (b *filterCndBuilderSpecSupportingQueriesRestListQuery) View() *filterCndBuilderSpecSupportingQueriesRestListQueryView { 4651 return &filterCndBuilderSpecSupportingQueriesRestListQueryView{builder: b.builder} 4652 } 4653 4654 func (b *filterCndBuilderSpecSupportingQueriesRestListQuery) FieldMask() *filterCndBuilderSpecSupportingQueriesRestListQueryFieldMask { 4655 return &filterCndBuilderSpecSupportingQueriesRestListQueryFieldMask{builder: b.builder} 4656 } 4657 4658 func (b *filterCndBuilderSpecSupportingQueriesRestListQuery) FilterTemplate() *filterCndBuilderSpecSupportingQueriesRestListQueryFilterTemplate { 4659 return &filterCndBuilderSpecSupportingQueriesRestListQueryFilterTemplate{builder: b.builder} 4660 } 4661 4662 type filterCndBuilderSpecSupportingQueriesRestListQueryDescription struct { 4663 builder *FilterBuilder 4664 } 4665 4666 func (b *filterCndBuilderSpecSupportingQueriesRestListQueryDescription) Eq(value string) *FilterBuilder { 4667 return b.compare(gotenfilter.Eq, value) 4668 } 4669 4670 func (b *filterCndBuilderSpecSupportingQueriesRestListQueryDescription) Neq(value string) *FilterBuilder { 4671 return b.compare(gotenfilter.Neq, value) 4672 } 4673 4674 func (b *filterCndBuilderSpecSupportingQueriesRestListQueryDescription) Gt(value string) *FilterBuilder { 4675 return b.compare(gotenfilter.Gt, value) 4676 } 4677 4678 func (b *filterCndBuilderSpecSupportingQueriesRestListQueryDescription) Gte(value string) *FilterBuilder { 4679 return b.compare(gotenfilter.Gte, value) 4680 } 4681 4682 func (b *filterCndBuilderSpecSupportingQueriesRestListQueryDescription) Lt(value string) *FilterBuilder { 4683 return b.compare(gotenfilter.Lt, value) 4684 } 4685 4686 func (b *filterCndBuilderSpecSupportingQueriesRestListQueryDescription) Lte(value string) *FilterBuilder { 4687 return b.compare(gotenfilter.Lte, value) 4688 } 4689 4690 func (b *filterCndBuilderSpecSupportingQueriesRestListQueryDescription) In(values []string) *FilterBuilder { 4691 return b.builder.addCond(&FilterConditionIn{ 4692 Policy_FieldPathArrayOfValues: NewPolicyFieldPathBuilder().Spec().SupportingQueries().RestListQuery().Description().WithArrayOfValues(values), 4693 }) 4694 } 4695 4696 func (b *filterCndBuilderSpecSupportingQueriesRestListQueryDescription) NotIn(values []string) *FilterBuilder { 4697 return b.builder.addCond(&FilterConditionNotIn{ 4698 Policy_FieldPathArrayOfValues: NewPolicyFieldPathBuilder().Spec().SupportingQueries().RestListQuery().Description().WithArrayOfValues(values), 4699 }) 4700 } 4701 4702 func (b *filterCndBuilderSpecSupportingQueriesRestListQueryDescription) IsNull() *FilterBuilder { 4703 return b.builder.addCond(&FilterConditionIsNull{ 4704 FieldPath: NewPolicyFieldPathBuilder().Spec().SupportingQueries().RestListQuery().Description().FieldPath(), 4705 }) 4706 } 4707 4708 func (b *filterCndBuilderSpecSupportingQueriesRestListQueryDescription) IsNan() *FilterBuilder { 4709 return b.builder.addCond(&FilterConditionIsNaN{ 4710 FieldPath: NewPolicyFieldPathBuilder().Spec().SupportingQueries().RestListQuery().Description().FieldPath(), 4711 }) 4712 } 4713 4714 func (b *filterCndBuilderSpecSupportingQueriesRestListQueryDescription) compare(op gotenfilter.CompareOperator, value string) *FilterBuilder { 4715 return b.builder.addCond(&FilterConditionCompare{ 4716 Operator: op, 4717 Policy_FieldPathValue: NewPolicyFieldPathBuilder().Spec().SupportingQueries().RestListQuery().Description().WithValue(value), 4718 }) 4719 } 4720 4721 type filterCndBuilderSpecSupportingQueriesRestListQueryEndpoint struct { 4722 builder *FilterBuilder 4723 } 4724 4725 func (b *filterCndBuilderSpecSupportingQueriesRestListQueryEndpoint) Eq(value string) *FilterBuilder { 4726 return b.compare(gotenfilter.Eq, value) 4727 } 4728 4729 func (b *filterCndBuilderSpecSupportingQueriesRestListQueryEndpoint) Neq(value string) *FilterBuilder { 4730 return b.compare(gotenfilter.Neq, value) 4731 } 4732 4733 func (b *filterCndBuilderSpecSupportingQueriesRestListQueryEndpoint) Gt(value string) *FilterBuilder { 4734 return b.compare(gotenfilter.Gt, value) 4735 } 4736 4737 func (b *filterCndBuilderSpecSupportingQueriesRestListQueryEndpoint) Gte(value string) *FilterBuilder { 4738 return b.compare(gotenfilter.Gte, value) 4739 } 4740 4741 func (b *filterCndBuilderSpecSupportingQueriesRestListQueryEndpoint) Lt(value string) *FilterBuilder { 4742 return b.compare(gotenfilter.Lt, value) 4743 } 4744 4745 func (b *filterCndBuilderSpecSupportingQueriesRestListQueryEndpoint) Lte(value string) *FilterBuilder { 4746 return b.compare(gotenfilter.Lte, value) 4747 } 4748 4749 func (b *filterCndBuilderSpecSupportingQueriesRestListQueryEndpoint) In(values []string) *FilterBuilder { 4750 return b.builder.addCond(&FilterConditionIn{ 4751 Policy_FieldPathArrayOfValues: NewPolicyFieldPathBuilder().Spec().SupportingQueries().RestListQuery().Endpoint().WithArrayOfValues(values), 4752 }) 4753 } 4754 4755 func (b *filterCndBuilderSpecSupportingQueriesRestListQueryEndpoint) NotIn(values []string) *FilterBuilder { 4756 return b.builder.addCond(&FilterConditionNotIn{ 4757 Policy_FieldPathArrayOfValues: NewPolicyFieldPathBuilder().Spec().SupportingQueries().RestListQuery().Endpoint().WithArrayOfValues(values), 4758 }) 4759 } 4760 4761 func (b *filterCndBuilderSpecSupportingQueriesRestListQueryEndpoint) IsNull() *FilterBuilder { 4762 return b.builder.addCond(&FilterConditionIsNull{ 4763 FieldPath: NewPolicyFieldPathBuilder().Spec().SupportingQueries().RestListQuery().Endpoint().FieldPath(), 4764 }) 4765 } 4766 4767 func (b *filterCndBuilderSpecSupportingQueriesRestListQueryEndpoint) IsNan() *FilterBuilder { 4768 return b.builder.addCond(&FilterConditionIsNaN{ 4769 FieldPath: NewPolicyFieldPathBuilder().Spec().SupportingQueries().RestListQuery().Endpoint().FieldPath(), 4770 }) 4771 } 4772 4773 func (b *filterCndBuilderSpecSupportingQueriesRestListQueryEndpoint) compare(op gotenfilter.CompareOperator, value string) *FilterBuilder { 4774 return b.builder.addCond(&FilterConditionCompare{ 4775 Operator: op, 4776 Policy_FieldPathValue: NewPolicyFieldPathBuilder().Spec().SupportingQueries().RestListQuery().Endpoint().WithValue(value), 4777 }) 4778 } 4779 4780 type filterCndBuilderSpecSupportingQueriesRestListQueryPathTemplate struct { 4781 builder *FilterBuilder 4782 } 4783 4784 func (b *filterCndBuilderSpecSupportingQueriesRestListQueryPathTemplate) Eq(value string) *FilterBuilder { 4785 return b.compare(gotenfilter.Eq, value) 4786 } 4787 4788 func (b *filterCndBuilderSpecSupportingQueriesRestListQueryPathTemplate) Neq(value string) *FilterBuilder { 4789 return b.compare(gotenfilter.Neq, value) 4790 } 4791 4792 func (b *filterCndBuilderSpecSupportingQueriesRestListQueryPathTemplate) Gt(value string) *FilterBuilder { 4793 return b.compare(gotenfilter.Gt, value) 4794 } 4795 4796 func (b *filterCndBuilderSpecSupportingQueriesRestListQueryPathTemplate) Gte(value string) *FilterBuilder { 4797 return b.compare(gotenfilter.Gte, value) 4798 } 4799 4800 func (b *filterCndBuilderSpecSupportingQueriesRestListQueryPathTemplate) Lt(value string) *FilterBuilder { 4801 return b.compare(gotenfilter.Lt, value) 4802 } 4803 4804 func (b *filterCndBuilderSpecSupportingQueriesRestListQueryPathTemplate) Lte(value string) *FilterBuilder { 4805 return b.compare(gotenfilter.Lte, value) 4806 } 4807 4808 func (b *filterCndBuilderSpecSupportingQueriesRestListQueryPathTemplate) In(values []string) *FilterBuilder { 4809 return b.builder.addCond(&FilterConditionIn{ 4810 Policy_FieldPathArrayOfValues: NewPolicyFieldPathBuilder().Spec().SupportingQueries().RestListQuery().PathTemplate().WithArrayOfValues(values), 4811 }) 4812 } 4813 4814 func (b *filterCndBuilderSpecSupportingQueriesRestListQueryPathTemplate) NotIn(values []string) *FilterBuilder { 4815 return b.builder.addCond(&FilterConditionNotIn{ 4816 Policy_FieldPathArrayOfValues: NewPolicyFieldPathBuilder().Spec().SupportingQueries().RestListQuery().PathTemplate().WithArrayOfValues(values), 4817 }) 4818 } 4819 4820 func (b *filterCndBuilderSpecSupportingQueriesRestListQueryPathTemplate) IsNull() *FilterBuilder { 4821 return b.builder.addCond(&FilterConditionIsNull{ 4822 FieldPath: NewPolicyFieldPathBuilder().Spec().SupportingQueries().RestListQuery().PathTemplate().FieldPath(), 4823 }) 4824 } 4825 4826 func (b *filterCndBuilderSpecSupportingQueriesRestListQueryPathTemplate) IsNan() *FilterBuilder { 4827 return b.builder.addCond(&FilterConditionIsNaN{ 4828 FieldPath: NewPolicyFieldPathBuilder().Spec().SupportingQueries().RestListQuery().PathTemplate().FieldPath(), 4829 }) 4830 } 4831 4832 func (b *filterCndBuilderSpecSupportingQueriesRestListQueryPathTemplate) compare(op gotenfilter.CompareOperator, value string) *FilterBuilder { 4833 return b.builder.addCond(&FilterConditionCompare{ 4834 Operator: op, 4835 Policy_FieldPathValue: NewPolicyFieldPathBuilder().Spec().SupportingQueries().RestListQuery().PathTemplate().WithValue(value), 4836 }) 4837 } 4838 4839 type filterCndBuilderSpecSupportingQueriesRestListQueryView struct { 4840 builder *FilterBuilder 4841 } 4842 4843 func (b *filterCndBuilderSpecSupportingQueriesRestListQueryView) Eq(value string) *FilterBuilder { 4844 return b.compare(gotenfilter.Eq, value) 4845 } 4846 4847 func (b *filterCndBuilderSpecSupportingQueriesRestListQueryView) Neq(value string) *FilterBuilder { 4848 return b.compare(gotenfilter.Neq, value) 4849 } 4850 4851 func (b *filterCndBuilderSpecSupportingQueriesRestListQueryView) Gt(value string) *FilterBuilder { 4852 return b.compare(gotenfilter.Gt, value) 4853 } 4854 4855 func (b *filterCndBuilderSpecSupportingQueriesRestListQueryView) Gte(value string) *FilterBuilder { 4856 return b.compare(gotenfilter.Gte, value) 4857 } 4858 4859 func (b *filterCndBuilderSpecSupportingQueriesRestListQueryView) Lt(value string) *FilterBuilder { 4860 return b.compare(gotenfilter.Lt, value) 4861 } 4862 4863 func (b *filterCndBuilderSpecSupportingQueriesRestListQueryView) Lte(value string) *FilterBuilder { 4864 return b.compare(gotenfilter.Lte, value) 4865 } 4866 4867 func (b *filterCndBuilderSpecSupportingQueriesRestListQueryView) In(values []string) *FilterBuilder { 4868 return b.builder.addCond(&FilterConditionIn{ 4869 Policy_FieldPathArrayOfValues: NewPolicyFieldPathBuilder().Spec().SupportingQueries().RestListQuery().View().WithArrayOfValues(values), 4870 }) 4871 } 4872 4873 func (b *filterCndBuilderSpecSupportingQueriesRestListQueryView) NotIn(values []string) *FilterBuilder { 4874 return b.builder.addCond(&FilterConditionNotIn{ 4875 Policy_FieldPathArrayOfValues: NewPolicyFieldPathBuilder().Spec().SupportingQueries().RestListQuery().View().WithArrayOfValues(values), 4876 }) 4877 } 4878 4879 func (b *filterCndBuilderSpecSupportingQueriesRestListQueryView) IsNull() *FilterBuilder { 4880 return b.builder.addCond(&FilterConditionIsNull{ 4881 FieldPath: NewPolicyFieldPathBuilder().Spec().SupportingQueries().RestListQuery().View().FieldPath(), 4882 }) 4883 } 4884 4885 func (b *filterCndBuilderSpecSupportingQueriesRestListQueryView) IsNan() *FilterBuilder { 4886 return b.builder.addCond(&FilterConditionIsNaN{ 4887 FieldPath: NewPolicyFieldPathBuilder().Spec().SupportingQueries().RestListQuery().View().FieldPath(), 4888 }) 4889 } 4890 4891 func (b *filterCndBuilderSpecSupportingQueriesRestListQueryView) compare(op gotenfilter.CompareOperator, value string) *FilterBuilder { 4892 return b.builder.addCond(&FilterConditionCompare{ 4893 Operator: op, 4894 Policy_FieldPathValue: NewPolicyFieldPathBuilder().Spec().SupportingQueries().RestListQuery().View().WithValue(value), 4895 }) 4896 } 4897 4898 type filterCndBuilderSpecSupportingQueriesRestListQueryFieldMask struct { 4899 builder *FilterBuilder 4900 } 4901 4902 func (b *filterCndBuilderSpecSupportingQueriesRestListQueryFieldMask) Eq(value string) *FilterBuilder { 4903 return b.compare(gotenfilter.Eq, value) 4904 } 4905 4906 func (b *filterCndBuilderSpecSupportingQueriesRestListQueryFieldMask) Neq(value string) *FilterBuilder { 4907 return b.compare(gotenfilter.Neq, value) 4908 } 4909 4910 func (b *filterCndBuilderSpecSupportingQueriesRestListQueryFieldMask) Gt(value string) *FilterBuilder { 4911 return b.compare(gotenfilter.Gt, value) 4912 } 4913 4914 func (b *filterCndBuilderSpecSupportingQueriesRestListQueryFieldMask) Gte(value string) *FilterBuilder { 4915 return b.compare(gotenfilter.Gte, value) 4916 } 4917 4918 func (b *filterCndBuilderSpecSupportingQueriesRestListQueryFieldMask) Lt(value string) *FilterBuilder { 4919 return b.compare(gotenfilter.Lt, value) 4920 } 4921 4922 func (b *filterCndBuilderSpecSupportingQueriesRestListQueryFieldMask) Lte(value string) *FilterBuilder { 4923 return b.compare(gotenfilter.Lte, value) 4924 } 4925 4926 func (b *filterCndBuilderSpecSupportingQueriesRestListQueryFieldMask) In(values []string) *FilterBuilder { 4927 return b.builder.addCond(&FilterConditionIn{ 4928 Policy_FieldPathArrayOfValues: NewPolicyFieldPathBuilder().Spec().SupportingQueries().RestListQuery().FieldMask().WithArrayOfValues(values), 4929 }) 4930 } 4931 4932 func (b *filterCndBuilderSpecSupportingQueriesRestListQueryFieldMask) NotIn(values []string) *FilterBuilder { 4933 return b.builder.addCond(&FilterConditionNotIn{ 4934 Policy_FieldPathArrayOfValues: NewPolicyFieldPathBuilder().Spec().SupportingQueries().RestListQuery().FieldMask().WithArrayOfValues(values), 4935 }) 4936 } 4937 4938 func (b *filterCndBuilderSpecSupportingQueriesRestListQueryFieldMask) IsNull() *FilterBuilder { 4939 return b.builder.addCond(&FilterConditionIsNull{ 4940 FieldPath: NewPolicyFieldPathBuilder().Spec().SupportingQueries().RestListQuery().FieldMask().FieldPath(), 4941 }) 4942 } 4943 4944 func (b *filterCndBuilderSpecSupportingQueriesRestListQueryFieldMask) IsNan() *FilterBuilder { 4945 return b.builder.addCond(&FilterConditionIsNaN{ 4946 FieldPath: NewPolicyFieldPathBuilder().Spec().SupportingQueries().RestListQuery().FieldMask().FieldPath(), 4947 }) 4948 } 4949 4950 func (b *filterCndBuilderSpecSupportingQueriesRestListQueryFieldMask) compare(op gotenfilter.CompareOperator, value string) *FilterBuilder { 4951 return b.builder.addCond(&FilterConditionCompare{ 4952 Operator: op, 4953 Policy_FieldPathValue: NewPolicyFieldPathBuilder().Spec().SupportingQueries().RestListQuery().FieldMask().WithValue(value), 4954 }) 4955 } 4956 4957 type filterCndBuilderSpecSupportingQueriesRestListQueryFilterTemplate struct { 4958 builder *FilterBuilder 4959 } 4960 4961 func (b *filterCndBuilderSpecSupportingQueriesRestListQueryFilterTemplate) Eq(value string) *FilterBuilder { 4962 return b.compare(gotenfilter.Eq, value) 4963 } 4964 4965 func (b *filterCndBuilderSpecSupportingQueriesRestListQueryFilterTemplate) Neq(value string) *FilterBuilder { 4966 return b.compare(gotenfilter.Neq, value) 4967 } 4968 4969 func (b *filterCndBuilderSpecSupportingQueriesRestListQueryFilterTemplate) Gt(value string) *FilterBuilder { 4970 return b.compare(gotenfilter.Gt, value) 4971 } 4972 4973 func (b *filterCndBuilderSpecSupportingQueriesRestListQueryFilterTemplate) Gte(value string) *FilterBuilder { 4974 return b.compare(gotenfilter.Gte, value) 4975 } 4976 4977 func (b *filterCndBuilderSpecSupportingQueriesRestListQueryFilterTemplate) Lt(value string) *FilterBuilder { 4978 return b.compare(gotenfilter.Lt, value) 4979 } 4980 4981 func (b *filterCndBuilderSpecSupportingQueriesRestListQueryFilterTemplate) Lte(value string) *FilterBuilder { 4982 return b.compare(gotenfilter.Lte, value) 4983 } 4984 4985 func (b *filterCndBuilderSpecSupportingQueriesRestListQueryFilterTemplate) In(values []string) *FilterBuilder { 4986 return b.builder.addCond(&FilterConditionIn{ 4987 Policy_FieldPathArrayOfValues: NewPolicyFieldPathBuilder().Spec().SupportingQueries().RestListQuery().FilterTemplate().WithArrayOfValues(values), 4988 }) 4989 } 4990 4991 func (b *filterCndBuilderSpecSupportingQueriesRestListQueryFilterTemplate) NotIn(values []string) *FilterBuilder { 4992 return b.builder.addCond(&FilterConditionNotIn{ 4993 Policy_FieldPathArrayOfValues: NewPolicyFieldPathBuilder().Spec().SupportingQueries().RestListQuery().FilterTemplate().WithArrayOfValues(values), 4994 }) 4995 } 4996 4997 func (b *filterCndBuilderSpecSupportingQueriesRestListQueryFilterTemplate) IsNull() *FilterBuilder { 4998 return b.builder.addCond(&FilterConditionIsNull{ 4999 FieldPath: NewPolicyFieldPathBuilder().Spec().SupportingQueries().RestListQuery().FilterTemplate().FieldPath(), 5000 }) 5001 } 5002 5003 func (b *filterCndBuilderSpecSupportingQueriesRestListQueryFilterTemplate) IsNan() *FilterBuilder { 5004 return b.builder.addCond(&FilterConditionIsNaN{ 5005 FieldPath: NewPolicyFieldPathBuilder().Spec().SupportingQueries().RestListQuery().FilterTemplate().FieldPath(), 5006 }) 5007 } 5008 5009 func (b *filterCndBuilderSpecSupportingQueriesRestListQueryFilterTemplate) compare(op gotenfilter.CompareOperator, value string) *FilterBuilder { 5010 return b.builder.addCond(&FilterConditionCompare{ 5011 Operator: op, 5012 Policy_FieldPathValue: NewPolicyFieldPathBuilder().Spec().SupportingQueries().RestListQuery().FilterTemplate().WithValue(value), 5013 }) 5014 } 5015 5016 type filterCndBuilderSpecAiAgent struct { 5017 builder *FilterBuilder 5018 } 5019 5020 func (b *filterCndBuilderSpecAiAgent) Eq(value *rcommon.PolicySpec_AIAgentHandling) *FilterBuilder { 5021 return b.compare(gotenfilter.Eq, value) 5022 } 5023 5024 func (b *filterCndBuilderSpecAiAgent) Neq(value *rcommon.PolicySpec_AIAgentHandling) *FilterBuilder { 5025 return b.compare(gotenfilter.Neq, value) 5026 } 5027 5028 func (b *filterCndBuilderSpecAiAgent) Gt(value *rcommon.PolicySpec_AIAgentHandling) *FilterBuilder { 5029 return b.compare(gotenfilter.Gt, value) 5030 } 5031 5032 func (b *filterCndBuilderSpecAiAgent) Gte(value *rcommon.PolicySpec_AIAgentHandling) *FilterBuilder { 5033 return b.compare(gotenfilter.Gte, value) 5034 } 5035 5036 func (b *filterCndBuilderSpecAiAgent) Lt(value *rcommon.PolicySpec_AIAgentHandling) *FilterBuilder { 5037 return b.compare(gotenfilter.Lt, value) 5038 } 5039 5040 func (b *filterCndBuilderSpecAiAgent) Lte(value *rcommon.PolicySpec_AIAgentHandling) *FilterBuilder { 5041 return b.compare(gotenfilter.Lte, value) 5042 } 5043 5044 func (b *filterCndBuilderSpecAiAgent) In(values []*rcommon.PolicySpec_AIAgentHandling) *FilterBuilder { 5045 return b.builder.addCond(&FilterConditionIn{ 5046 Policy_FieldPathArrayOfValues: NewPolicyFieldPathBuilder().Spec().AiAgent().WithArrayOfValues(values), 5047 }) 5048 } 5049 5050 func (b *filterCndBuilderSpecAiAgent) NotIn(values []*rcommon.PolicySpec_AIAgentHandling) *FilterBuilder { 5051 return b.builder.addCond(&FilterConditionNotIn{ 5052 Policy_FieldPathArrayOfValues: NewPolicyFieldPathBuilder().Spec().AiAgent().WithArrayOfValues(values), 5053 }) 5054 } 5055 5056 func (b *filterCndBuilderSpecAiAgent) IsNull() *FilterBuilder { 5057 return b.builder.addCond(&FilterConditionIsNull{ 5058 FieldPath: NewPolicyFieldPathBuilder().Spec().AiAgent().FieldPath(), 5059 }) 5060 } 5061 5062 func (b *filterCndBuilderSpecAiAgent) IsNan() *FilterBuilder { 5063 return b.builder.addCond(&FilterConditionIsNaN{ 5064 FieldPath: NewPolicyFieldPathBuilder().Spec().AiAgent().FieldPath(), 5065 }) 5066 } 5067 5068 func (b *filterCndBuilderSpecAiAgent) compare(op gotenfilter.CompareOperator, value *rcommon.PolicySpec_AIAgentHandling) *FilterBuilder { 5069 return b.builder.addCond(&FilterConditionCompare{ 5070 Operator: op, 5071 Policy_FieldPathValue: NewPolicyFieldPathBuilder().Spec().AiAgent().WithValue(value), 5072 }) 5073 } 5074 5075 func (b *filterCndBuilderSpecAiAgent) Enabled() *filterCndBuilderSpecAiAgentEnabled { 5076 return &filterCndBuilderSpecAiAgentEnabled{builder: b.builder} 5077 } 5078 5079 func (b *filterCndBuilderSpecAiAgent) EnabledConnectivity() *filterCndBuilderSpecAiAgentEnabledConnectivity { 5080 return &filterCndBuilderSpecAiAgentEnabledConnectivity{builder: b.builder} 5081 } 5082 5083 func (b *filterCndBuilderSpecAiAgent) AutoAcceptRemediation() *filterCndBuilderSpecAiAgentAutoAcceptRemediation { 5084 return &filterCndBuilderSpecAiAgentAutoAcceptRemediation{builder: b.builder} 5085 } 5086 5087 func (b *filterCndBuilderSpecAiAgent) EdgeConnectivity() *filterCndBuilderSpecAiAgentEdgeConnectivity { 5088 return &filterCndBuilderSpecAiAgentEdgeConnectivity{builder: b.builder} 5089 } 5090 5091 func (b *filterCndBuilderSpecAiAgent) RemediationOptions() *filterCndBuilderSpecAiAgentRemediationOptions { 5092 return &filterCndBuilderSpecAiAgentRemediationOptions{builder: b.builder} 5093 } 5094 5095 type filterCndBuilderSpecAiAgentEnabled struct { 5096 builder *FilterBuilder 5097 } 5098 5099 func (b *filterCndBuilderSpecAiAgentEnabled) Eq(value bool) *FilterBuilder { 5100 return b.compare(gotenfilter.Eq, value) 5101 } 5102 5103 func (b *filterCndBuilderSpecAiAgentEnabled) Neq(value bool) *FilterBuilder { 5104 return b.compare(gotenfilter.Neq, value) 5105 } 5106 5107 func (b *filterCndBuilderSpecAiAgentEnabled) Gt(value bool) *FilterBuilder { 5108 return b.compare(gotenfilter.Gt, value) 5109 } 5110 5111 func (b *filterCndBuilderSpecAiAgentEnabled) Gte(value bool) *FilterBuilder { 5112 return b.compare(gotenfilter.Gte, value) 5113 } 5114 5115 func (b *filterCndBuilderSpecAiAgentEnabled) Lt(value bool) *FilterBuilder { 5116 return b.compare(gotenfilter.Lt, value) 5117 } 5118 5119 func (b *filterCndBuilderSpecAiAgentEnabled) Lte(value bool) *FilterBuilder { 5120 return b.compare(gotenfilter.Lte, value) 5121 } 5122 5123 func (b *filterCndBuilderSpecAiAgentEnabled) In(values []bool) *FilterBuilder { 5124 return b.builder.addCond(&FilterConditionIn{ 5125 Policy_FieldPathArrayOfValues: NewPolicyFieldPathBuilder().Spec().AiAgent().Enabled().WithArrayOfValues(values), 5126 }) 5127 } 5128 5129 func (b *filterCndBuilderSpecAiAgentEnabled) NotIn(values []bool) *FilterBuilder { 5130 return b.builder.addCond(&FilterConditionNotIn{ 5131 Policy_FieldPathArrayOfValues: NewPolicyFieldPathBuilder().Spec().AiAgent().Enabled().WithArrayOfValues(values), 5132 }) 5133 } 5134 5135 func (b *filterCndBuilderSpecAiAgentEnabled) IsNull() *FilterBuilder { 5136 return b.builder.addCond(&FilterConditionIsNull{ 5137 FieldPath: NewPolicyFieldPathBuilder().Spec().AiAgent().Enabled().FieldPath(), 5138 }) 5139 } 5140 5141 func (b *filterCndBuilderSpecAiAgentEnabled) IsNan() *FilterBuilder { 5142 return b.builder.addCond(&FilterConditionIsNaN{ 5143 FieldPath: NewPolicyFieldPathBuilder().Spec().AiAgent().Enabled().FieldPath(), 5144 }) 5145 } 5146 5147 func (b *filterCndBuilderSpecAiAgentEnabled) compare(op gotenfilter.CompareOperator, value bool) *FilterBuilder { 5148 return b.builder.addCond(&FilterConditionCompare{ 5149 Operator: op, 5150 Policy_FieldPathValue: NewPolicyFieldPathBuilder().Spec().AiAgent().Enabled().WithValue(value), 5151 }) 5152 } 5153 5154 type filterCndBuilderSpecAiAgentEnabledConnectivity struct { 5155 builder *FilterBuilder 5156 } 5157 5158 func (b *filterCndBuilderSpecAiAgentEnabledConnectivity) Eq(value bool) *FilterBuilder { 5159 return b.compare(gotenfilter.Eq, value) 5160 } 5161 5162 func (b *filterCndBuilderSpecAiAgentEnabledConnectivity) Neq(value bool) *FilterBuilder { 5163 return b.compare(gotenfilter.Neq, value) 5164 } 5165 5166 func (b *filterCndBuilderSpecAiAgentEnabledConnectivity) Gt(value bool) *FilterBuilder { 5167 return b.compare(gotenfilter.Gt, value) 5168 } 5169 5170 func (b *filterCndBuilderSpecAiAgentEnabledConnectivity) Gte(value bool) *FilterBuilder { 5171 return b.compare(gotenfilter.Gte, value) 5172 } 5173 5174 func (b *filterCndBuilderSpecAiAgentEnabledConnectivity) Lt(value bool) *FilterBuilder { 5175 return b.compare(gotenfilter.Lt, value) 5176 } 5177 5178 func (b *filterCndBuilderSpecAiAgentEnabledConnectivity) Lte(value bool) *FilterBuilder { 5179 return b.compare(gotenfilter.Lte, value) 5180 } 5181 5182 func (b *filterCndBuilderSpecAiAgentEnabledConnectivity) In(values []bool) *FilterBuilder { 5183 return b.builder.addCond(&FilterConditionIn{ 5184 Policy_FieldPathArrayOfValues: NewPolicyFieldPathBuilder().Spec().AiAgent().EnabledConnectivity().WithArrayOfValues(values), 5185 }) 5186 } 5187 5188 func (b *filterCndBuilderSpecAiAgentEnabledConnectivity) NotIn(values []bool) *FilterBuilder { 5189 return b.builder.addCond(&FilterConditionNotIn{ 5190 Policy_FieldPathArrayOfValues: NewPolicyFieldPathBuilder().Spec().AiAgent().EnabledConnectivity().WithArrayOfValues(values), 5191 }) 5192 } 5193 5194 func (b *filterCndBuilderSpecAiAgentEnabledConnectivity) IsNull() *FilterBuilder { 5195 return b.builder.addCond(&FilterConditionIsNull{ 5196 FieldPath: NewPolicyFieldPathBuilder().Spec().AiAgent().EnabledConnectivity().FieldPath(), 5197 }) 5198 } 5199 5200 func (b *filterCndBuilderSpecAiAgentEnabledConnectivity) IsNan() *FilterBuilder { 5201 return b.builder.addCond(&FilterConditionIsNaN{ 5202 FieldPath: NewPolicyFieldPathBuilder().Spec().AiAgent().EnabledConnectivity().FieldPath(), 5203 }) 5204 } 5205 5206 func (b *filterCndBuilderSpecAiAgentEnabledConnectivity) compare(op gotenfilter.CompareOperator, value bool) *FilterBuilder { 5207 return b.builder.addCond(&FilterConditionCompare{ 5208 Operator: op, 5209 Policy_FieldPathValue: NewPolicyFieldPathBuilder().Spec().AiAgent().EnabledConnectivity().WithValue(value), 5210 }) 5211 } 5212 5213 type filterCndBuilderSpecAiAgentAutoAcceptRemediation struct { 5214 builder *FilterBuilder 5215 } 5216 5217 func (b *filterCndBuilderSpecAiAgentAutoAcceptRemediation) Eq(value bool) *FilterBuilder { 5218 return b.compare(gotenfilter.Eq, value) 5219 } 5220 5221 func (b *filterCndBuilderSpecAiAgentAutoAcceptRemediation) Neq(value bool) *FilterBuilder { 5222 return b.compare(gotenfilter.Neq, value) 5223 } 5224 5225 func (b *filterCndBuilderSpecAiAgentAutoAcceptRemediation) Gt(value bool) *FilterBuilder { 5226 return b.compare(gotenfilter.Gt, value) 5227 } 5228 5229 func (b *filterCndBuilderSpecAiAgentAutoAcceptRemediation) Gte(value bool) *FilterBuilder { 5230 return b.compare(gotenfilter.Gte, value) 5231 } 5232 5233 func (b *filterCndBuilderSpecAiAgentAutoAcceptRemediation) Lt(value bool) *FilterBuilder { 5234 return b.compare(gotenfilter.Lt, value) 5235 } 5236 5237 func (b *filterCndBuilderSpecAiAgentAutoAcceptRemediation) Lte(value bool) *FilterBuilder { 5238 return b.compare(gotenfilter.Lte, value) 5239 } 5240 5241 func (b *filterCndBuilderSpecAiAgentAutoAcceptRemediation) In(values []bool) *FilterBuilder { 5242 return b.builder.addCond(&FilterConditionIn{ 5243 Policy_FieldPathArrayOfValues: NewPolicyFieldPathBuilder().Spec().AiAgent().AutoAcceptRemediation().WithArrayOfValues(values), 5244 }) 5245 } 5246 5247 func (b *filterCndBuilderSpecAiAgentAutoAcceptRemediation) NotIn(values []bool) *FilterBuilder { 5248 return b.builder.addCond(&FilterConditionNotIn{ 5249 Policy_FieldPathArrayOfValues: NewPolicyFieldPathBuilder().Spec().AiAgent().AutoAcceptRemediation().WithArrayOfValues(values), 5250 }) 5251 } 5252 5253 func (b *filterCndBuilderSpecAiAgentAutoAcceptRemediation) IsNull() *FilterBuilder { 5254 return b.builder.addCond(&FilterConditionIsNull{ 5255 FieldPath: NewPolicyFieldPathBuilder().Spec().AiAgent().AutoAcceptRemediation().FieldPath(), 5256 }) 5257 } 5258 5259 func (b *filterCndBuilderSpecAiAgentAutoAcceptRemediation) IsNan() *FilterBuilder { 5260 return b.builder.addCond(&FilterConditionIsNaN{ 5261 FieldPath: NewPolicyFieldPathBuilder().Spec().AiAgent().AutoAcceptRemediation().FieldPath(), 5262 }) 5263 } 5264 5265 func (b *filterCndBuilderSpecAiAgentAutoAcceptRemediation) compare(op gotenfilter.CompareOperator, value bool) *FilterBuilder { 5266 return b.builder.addCond(&FilterConditionCompare{ 5267 Operator: op, 5268 Policy_FieldPathValue: NewPolicyFieldPathBuilder().Spec().AiAgent().AutoAcceptRemediation().WithValue(value), 5269 }) 5270 } 5271 5272 type filterCndBuilderSpecAiAgentEdgeConnectivity struct { 5273 builder *FilterBuilder 5274 } 5275 5276 func (b *filterCndBuilderSpecAiAgentEdgeConnectivity) Eq(value *rcommon.PolicySpec_AIAgentHandling_EdgeConnectivity) *FilterBuilder { 5277 return b.compare(gotenfilter.Eq, value) 5278 } 5279 5280 func (b *filterCndBuilderSpecAiAgentEdgeConnectivity) Neq(value *rcommon.PolicySpec_AIAgentHandling_EdgeConnectivity) *FilterBuilder { 5281 return b.compare(gotenfilter.Neq, value) 5282 } 5283 5284 func (b *filterCndBuilderSpecAiAgentEdgeConnectivity) Gt(value *rcommon.PolicySpec_AIAgentHandling_EdgeConnectivity) *FilterBuilder { 5285 return b.compare(gotenfilter.Gt, value) 5286 } 5287 5288 func (b *filterCndBuilderSpecAiAgentEdgeConnectivity) Gte(value *rcommon.PolicySpec_AIAgentHandling_EdgeConnectivity) *FilterBuilder { 5289 return b.compare(gotenfilter.Gte, value) 5290 } 5291 5292 func (b *filterCndBuilderSpecAiAgentEdgeConnectivity) Lt(value *rcommon.PolicySpec_AIAgentHandling_EdgeConnectivity) *FilterBuilder { 5293 return b.compare(gotenfilter.Lt, value) 5294 } 5295 5296 func (b *filterCndBuilderSpecAiAgentEdgeConnectivity) Lte(value *rcommon.PolicySpec_AIAgentHandling_EdgeConnectivity) *FilterBuilder { 5297 return b.compare(gotenfilter.Lte, value) 5298 } 5299 5300 func (b *filterCndBuilderSpecAiAgentEdgeConnectivity) In(values []*rcommon.PolicySpec_AIAgentHandling_EdgeConnectivity) *FilterBuilder { 5301 return b.builder.addCond(&FilterConditionIn{ 5302 Policy_FieldPathArrayOfValues: NewPolicyFieldPathBuilder().Spec().AiAgent().EdgeConnectivity().WithArrayOfValues(values), 5303 }) 5304 } 5305 5306 func (b *filterCndBuilderSpecAiAgentEdgeConnectivity) NotIn(values []*rcommon.PolicySpec_AIAgentHandling_EdgeConnectivity) *FilterBuilder { 5307 return b.builder.addCond(&FilterConditionNotIn{ 5308 Policy_FieldPathArrayOfValues: NewPolicyFieldPathBuilder().Spec().AiAgent().EdgeConnectivity().WithArrayOfValues(values), 5309 }) 5310 } 5311 5312 func (b *filterCndBuilderSpecAiAgentEdgeConnectivity) IsNull() *FilterBuilder { 5313 return b.builder.addCond(&FilterConditionIsNull{ 5314 FieldPath: NewPolicyFieldPathBuilder().Spec().AiAgent().EdgeConnectivity().FieldPath(), 5315 }) 5316 } 5317 5318 func (b *filterCndBuilderSpecAiAgentEdgeConnectivity) IsNan() *FilterBuilder { 5319 return b.builder.addCond(&FilterConditionIsNaN{ 5320 FieldPath: NewPolicyFieldPathBuilder().Spec().AiAgent().EdgeConnectivity().FieldPath(), 5321 }) 5322 } 5323 5324 func (b *filterCndBuilderSpecAiAgentEdgeConnectivity) compare(op gotenfilter.CompareOperator, value *rcommon.PolicySpec_AIAgentHandling_EdgeConnectivity) *FilterBuilder { 5325 return b.builder.addCond(&FilterConditionCompare{ 5326 Operator: op, 5327 Policy_FieldPathValue: NewPolicyFieldPathBuilder().Spec().AiAgent().EdgeConnectivity().WithValue(value), 5328 }) 5329 } 5330 5331 func (b *filterCndBuilderSpecAiAgentEdgeConnectivity) DeviceSsh() *filterCndBuilderSpecAiAgentEdgeConnectivityDeviceSsh { 5332 return &filterCndBuilderSpecAiAgentEdgeConnectivityDeviceSsh{builder: b.builder} 5333 } 5334 5335 func (b *filterCndBuilderSpecAiAgentEdgeConnectivity) ProxiesSsh() *filterCndBuilderSpecAiAgentEdgeConnectivityProxiesSsh { 5336 return &filterCndBuilderSpecAiAgentEdgeConnectivityProxiesSsh{builder: b.builder} 5337 } 5338 5339 func (b *filterCndBuilderSpecAiAgentEdgeConnectivity) PodSsh() *filterCndBuilderSpecAiAgentEdgeConnectivityPodSsh { 5340 return &filterCndBuilderSpecAiAgentEdgeConnectivityPodSsh{builder: b.builder} 5341 } 5342 5343 func (b *filterCndBuilderSpecAiAgentEdgeConnectivity) AllowedBins() *filterCndBuilderSpecAiAgentEdgeConnectivityAllowedBins { 5344 return &filterCndBuilderSpecAiAgentEdgeConnectivityAllowedBins{builder: b.builder} 5345 } 5346 5347 type filterCndBuilderSpecAiAgentEdgeConnectivityDeviceSsh struct { 5348 builder *FilterBuilder 5349 } 5350 5351 func (b *filterCndBuilderSpecAiAgentEdgeConnectivityDeviceSsh) Eq(value *rcommon.PolicySpec_AIAgentHandling_EdgeConnectivity_DeviceSSH) *FilterBuilder { 5352 return b.compare(gotenfilter.Eq, value) 5353 } 5354 5355 func (b *filterCndBuilderSpecAiAgentEdgeConnectivityDeviceSsh) Neq(value *rcommon.PolicySpec_AIAgentHandling_EdgeConnectivity_DeviceSSH) *FilterBuilder { 5356 return b.compare(gotenfilter.Neq, value) 5357 } 5358 5359 func (b *filterCndBuilderSpecAiAgentEdgeConnectivityDeviceSsh) Gt(value *rcommon.PolicySpec_AIAgentHandling_EdgeConnectivity_DeviceSSH) *FilterBuilder { 5360 return b.compare(gotenfilter.Gt, value) 5361 } 5362 5363 func (b *filterCndBuilderSpecAiAgentEdgeConnectivityDeviceSsh) Gte(value *rcommon.PolicySpec_AIAgentHandling_EdgeConnectivity_DeviceSSH) *FilterBuilder { 5364 return b.compare(gotenfilter.Gte, value) 5365 } 5366 5367 func (b *filterCndBuilderSpecAiAgentEdgeConnectivityDeviceSsh) Lt(value *rcommon.PolicySpec_AIAgentHandling_EdgeConnectivity_DeviceSSH) *FilterBuilder { 5368 return b.compare(gotenfilter.Lt, value) 5369 } 5370 5371 func (b *filterCndBuilderSpecAiAgentEdgeConnectivityDeviceSsh) Lte(value *rcommon.PolicySpec_AIAgentHandling_EdgeConnectivity_DeviceSSH) *FilterBuilder { 5372 return b.compare(gotenfilter.Lte, value) 5373 } 5374 5375 func (b *filterCndBuilderSpecAiAgentEdgeConnectivityDeviceSsh) In(values []*rcommon.PolicySpec_AIAgentHandling_EdgeConnectivity_DeviceSSH) *FilterBuilder { 5376 return b.builder.addCond(&FilterConditionIn{ 5377 Policy_FieldPathArrayOfValues: NewPolicyFieldPathBuilder().Spec().AiAgent().EdgeConnectivity().DeviceSsh().WithArrayOfValues(values), 5378 }) 5379 } 5380 5381 func (b *filterCndBuilderSpecAiAgentEdgeConnectivityDeviceSsh) NotIn(values []*rcommon.PolicySpec_AIAgentHandling_EdgeConnectivity_DeviceSSH) *FilterBuilder { 5382 return b.builder.addCond(&FilterConditionNotIn{ 5383 Policy_FieldPathArrayOfValues: NewPolicyFieldPathBuilder().Spec().AiAgent().EdgeConnectivity().DeviceSsh().WithArrayOfValues(values), 5384 }) 5385 } 5386 5387 func (b *filterCndBuilderSpecAiAgentEdgeConnectivityDeviceSsh) IsNull() *FilterBuilder { 5388 return b.builder.addCond(&FilterConditionIsNull{ 5389 FieldPath: NewPolicyFieldPathBuilder().Spec().AiAgent().EdgeConnectivity().DeviceSsh().FieldPath(), 5390 }) 5391 } 5392 5393 func (b *filterCndBuilderSpecAiAgentEdgeConnectivityDeviceSsh) IsNan() *FilterBuilder { 5394 return b.builder.addCond(&FilterConditionIsNaN{ 5395 FieldPath: NewPolicyFieldPathBuilder().Spec().AiAgent().EdgeConnectivity().DeviceSsh().FieldPath(), 5396 }) 5397 } 5398 5399 func (b *filterCndBuilderSpecAiAgentEdgeConnectivityDeviceSsh) compare(op gotenfilter.CompareOperator, value *rcommon.PolicySpec_AIAgentHandling_EdgeConnectivity_DeviceSSH) *FilterBuilder { 5400 return b.builder.addCond(&FilterConditionCompare{ 5401 Operator: op, 5402 Policy_FieldPathValue: NewPolicyFieldPathBuilder().Spec().AiAgent().EdgeConnectivity().DeviceSsh().WithValue(value), 5403 }) 5404 } 5405 5406 func (b *filterCndBuilderSpecAiAgentEdgeConnectivityDeviceSsh) ClientName() *filterCndBuilderSpecAiAgentEdgeConnectivityDeviceSshClientName { 5407 return &filterCndBuilderSpecAiAgentEdgeConnectivityDeviceSshClientName{builder: b.builder} 5408 } 5409 5410 type filterCndBuilderSpecAiAgentEdgeConnectivityDeviceSshClientName struct { 5411 builder *FilterBuilder 5412 } 5413 5414 func (b *filterCndBuilderSpecAiAgentEdgeConnectivityDeviceSshClientName) Eq(value string) *FilterBuilder { 5415 return b.compare(gotenfilter.Eq, value) 5416 } 5417 5418 func (b *filterCndBuilderSpecAiAgentEdgeConnectivityDeviceSshClientName) Neq(value string) *FilterBuilder { 5419 return b.compare(gotenfilter.Neq, value) 5420 } 5421 5422 func (b *filterCndBuilderSpecAiAgentEdgeConnectivityDeviceSshClientName) Gt(value string) *FilterBuilder { 5423 return b.compare(gotenfilter.Gt, value) 5424 } 5425 5426 func (b *filterCndBuilderSpecAiAgentEdgeConnectivityDeviceSshClientName) Gte(value string) *FilterBuilder { 5427 return b.compare(gotenfilter.Gte, value) 5428 } 5429 5430 func (b *filterCndBuilderSpecAiAgentEdgeConnectivityDeviceSshClientName) Lt(value string) *FilterBuilder { 5431 return b.compare(gotenfilter.Lt, value) 5432 } 5433 5434 func (b *filterCndBuilderSpecAiAgentEdgeConnectivityDeviceSshClientName) Lte(value string) *FilterBuilder { 5435 return b.compare(gotenfilter.Lte, value) 5436 } 5437 5438 func (b *filterCndBuilderSpecAiAgentEdgeConnectivityDeviceSshClientName) In(values []string) *FilterBuilder { 5439 return b.builder.addCond(&FilterConditionIn{ 5440 Policy_FieldPathArrayOfValues: NewPolicyFieldPathBuilder().Spec().AiAgent().EdgeConnectivity().DeviceSsh().ClientName().WithArrayOfValues(values), 5441 }) 5442 } 5443 5444 func (b *filterCndBuilderSpecAiAgentEdgeConnectivityDeviceSshClientName) NotIn(values []string) *FilterBuilder { 5445 return b.builder.addCond(&FilterConditionNotIn{ 5446 Policy_FieldPathArrayOfValues: NewPolicyFieldPathBuilder().Spec().AiAgent().EdgeConnectivity().DeviceSsh().ClientName().WithArrayOfValues(values), 5447 }) 5448 } 5449 5450 func (b *filterCndBuilderSpecAiAgentEdgeConnectivityDeviceSshClientName) IsNull() *FilterBuilder { 5451 return b.builder.addCond(&FilterConditionIsNull{ 5452 FieldPath: NewPolicyFieldPathBuilder().Spec().AiAgent().EdgeConnectivity().DeviceSsh().ClientName().FieldPath(), 5453 }) 5454 } 5455 5456 func (b *filterCndBuilderSpecAiAgentEdgeConnectivityDeviceSshClientName) IsNan() *FilterBuilder { 5457 return b.builder.addCond(&FilterConditionIsNaN{ 5458 FieldPath: NewPolicyFieldPathBuilder().Spec().AiAgent().EdgeConnectivity().DeviceSsh().ClientName().FieldPath(), 5459 }) 5460 } 5461 5462 func (b *filterCndBuilderSpecAiAgentEdgeConnectivityDeviceSshClientName) compare(op gotenfilter.CompareOperator, value string) *FilterBuilder { 5463 return b.builder.addCond(&FilterConditionCompare{ 5464 Operator: op, 5465 Policy_FieldPathValue: NewPolicyFieldPathBuilder().Spec().AiAgent().EdgeConnectivity().DeviceSsh().ClientName().WithValue(value), 5466 }) 5467 } 5468 5469 type filterCndBuilderSpecAiAgentEdgeConnectivityProxiesSsh struct { 5470 builder *FilterBuilder 5471 } 5472 5473 func (b *filterCndBuilderSpecAiAgentEdgeConnectivityProxiesSsh) Eq(value *rcommon.PolicySpec_AIAgentHandling_EdgeConnectivity_ProxiesSSH) *FilterBuilder { 5474 return b.compare(gotenfilter.Eq, value) 5475 } 5476 5477 func (b *filterCndBuilderSpecAiAgentEdgeConnectivityProxiesSsh) Neq(value *rcommon.PolicySpec_AIAgentHandling_EdgeConnectivity_ProxiesSSH) *FilterBuilder { 5478 return b.compare(gotenfilter.Neq, value) 5479 } 5480 5481 func (b *filterCndBuilderSpecAiAgentEdgeConnectivityProxiesSsh) Gt(value *rcommon.PolicySpec_AIAgentHandling_EdgeConnectivity_ProxiesSSH) *FilterBuilder { 5482 return b.compare(gotenfilter.Gt, value) 5483 } 5484 5485 func (b *filterCndBuilderSpecAiAgentEdgeConnectivityProxiesSsh) Gte(value *rcommon.PolicySpec_AIAgentHandling_EdgeConnectivity_ProxiesSSH) *FilterBuilder { 5486 return b.compare(gotenfilter.Gte, value) 5487 } 5488 5489 func (b *filterCndBuilderSpecAiAgentEdgeConnectivityProxiesSsh) Lt(value *rcommon.PolicySpec_AIAgentHandling_EdgeConnectivity_ProxiesSSH) *FilterBuilder { 5490 return b.compare(gotenfilter.Lt, value) 5491 } 5492 5493 func (b *filterCndBuilderSpecAiAgentEdgeConnectivityProxiesSsh) Lte(value *rcommon.PolicySpec_AIAgentHandling_EdgeConnectivity_ProxiesSSH) *FilterBuilder { 5494 return b.compare(gotenfilter.Lte, value) 5495 } 5496 5497 func (b *filterCndBuilderSpecAiAgentEdgeConnectivityProxiesSsh) In(values []*rcommon.PolicySpec_AIAgentHandling_EdgeConnectivity_ProxiesSSH) *FilterBuilder { 5498 return b.builder.addCond(&FilterConditionIn{ 5499 Policy_FieldPathArrayOfValues: NewPolicyFieldPathBuilder().Spec().AiAgent().EdgeConnectivity().ProxiesSsh().WithArrayOfValues(values), 5500 }) 5501 } 5502 5503 func (b *filterCndBuilderSpecAiAgentEdgeConnectivityProxiesSsh) NotIn(values []*rcommon.PolicySpec_AIAgentHandling_EdgeConnectivity_ProxiesSSH) *FilterBuilder { 5504 return b.builder.addCond(&FilterConditionNotIn{ 5505 Policy_FieldPathArrayOfValues: NewPolicyFieldPathBuilder().Spec().AiAgent().EdgeConnectivity().ProxiesSsh().WithArrayOfValues(values), 5506 }) 5507 } 5508 5509 func (b *filterCndBuilderSpecAiAgentEdgeConnectivityProxiesSsh) IsNull() *FilterBuilder { 5510 return b.builder.addCond(&FilterConditionIsNull{ 5511 FieldPath: NewPolicyFieldPathBuilder().Spec().AiAgent().EdgeConnectivity().ProxiesSsh().FieldPath(), 5512 }) 5513 } 5514 5515 func (b *filterCndBuilderSpecAiAgentEdgeConnectivityProxiesSsh) IsNan() *FilterBuilder { 5516 return b.builder.addCond(&FilterConditionIsNaN{ 5517 FieldPath: NewPolicyFieldPathBuilder().Spec().AiAgent().EdgeConnectivity().ProxiesSsh().FieldPath(), 5518 }) 5519 } 5520 5521 func (b *filterCndBuilderSpecAiAgentEdgeConnectivityProxiesSsh) compare(op gotenfilter.CompareOperator, value *rcommon.PolicySpec_AIAgentHandling_EdgeConnectivity_ProxiesSSH) *FilterBuilder { 5522 return b.builder.addCond(&FilterConditionCompare{ 5523 Operator: op, 5524 Policy_FieldPathValue: NewPolicyFieldPathBuilder().Spec().AiAgent().EdgeConnectivity().ProxiesSsh().WithValue(value), 5525 }) 5526 } 5527 5528 func (b *filterCndBuilderSpecAiAgentEdgeConnectivityProxiesSsh) ServiceDomain() *filterCndBuilderSpecAiAgentEdgeConnectivityProxiesSshServiceDomain { 5529 return &filterCndBuilderSpecAiAgentEdgeConnectivityProxiesSshServiceDomain{builder: b.builder} 5530 } 5531 5532 func (b *filterCndBuilderSpecAiAgentEdgeConnectivityProxiesSsh) ProviderNameTmpl() *filterCndBuilderSpecAiAgentEdgeConnectivityProxiesSshProviderNameTmpl { 5533 return &filterCndBuilderSpecAiAgentEdgeConnectivityProxiesSshProviderNameTmpl{builder: b.builder} 5534 } 5535 5536 func (b *filterCndBuilderSpecAiAgentEdgeConnectivityProxiesSsh) ClientName() *filterCndBuilderSpecAiAgentEdgeConnectivityProxiesSshClientName { 5537 return &filterCndBuilderSpecAiAgentEdgeConnectivityProxiesSshClientName{builder: b.builder} 5538 } 5539 5540 func (b *filterCndBuilderSpecAiAgentEdgeConnectivityProxiesSsh) ServiceName() *filterCndBuilderSpecAiAgentEdgeConnectivityProxiesSshServiceName { 5541 return &filterCndBuilderSpecAiAgentEdgeConnectivityProxiesSshServiceName{builder: b.builder} 5542 } 5543 5544 type filterCndBuilderSpecAiAgentEdgeConnectivityProxiesSshServiceDomain struct { 5545 builder *FilterBuilder 5546 } 5547 5548 func (b *filterCndBuilderSpecAiAgentEdgeConnectivityProxiesSshServiceDomain) Eq(value string) *FilterBuilder { 5549 return b.compare(gotenfilter.Eq, value) 5550 } 5551 5552 func (b *filterCndBuilderSpecAiAgentEdgeConnectivityProxiesSshServiceDomain) Neq(value string) *FilterBuilder { 5553 return b.compare(gotenfilter.Neq, value) 5554 } 5555 5556 func (b *filterCndBuilderSpecAiAgentEdgeConnectivityProxiesSshServiceDomain) Gt(value string) *FilterBuilder { 5557 return b.compare(gotenfilter.Gt, value) 5558 } 5559 5560 func (b *filterCndBuilderSpecAiAgentEdgeConnectivityProxiesSshServiceDomain) Gte(value string) *FilterBuilder { 5561 return b.compare(gotenfilter.Gte, value) 5562 } 5563 5564 func (b *filterCndBuilderSpecAiAgentEdgeConnectivityProxiesSshServiceDomain) Lt(value string) *FilterBuilder { 5565 return b.compare(gotenfilter.Lt, value) 5566 } 5567 5568 func (b *filterCndBuilderSpecAiAgentEdgeConnectivityProxiesSshServiceDomain) Lte(value string) *FilterBuilder { 5569 return b.compare(gotenfilter.Lte, value) 5570 } 5571 5572 func (b *filterCndBuilderSpecAiAgentEdgeConnectivityProxiesSshServiceDomain) In(values []string) *FilterBuilder { 5573 return b.builder.addCond(&FilterConditionIn{ 5574 Policy_FieldPathArrayOfValues: NewPolicyFieldPathBuilder().Spec().AiAgent().EdgeConnectivity().ProxiesSsh().ServiceDomain().WithArrayOfValues(values), 5575 }) 5576 } 5577 5578 func (b *filterCndBuilderSpecAiAgentEdgeConnectivityProxiesSshServiceDomain) NotIn(values []string) *FilterBuilder { 5579 return b.builder.addCond(&FilterConditionNotIn{ 5580 Policy_FieldPathArrayOfValues: NewPolicyFieldPathBuilder().Spec().AiAgent().EdgeConnectivity().ProxiesSsh().ServiceDomain().WithArrayOfValues(values), 5581 }) 5582 } 5583 5584 func (b *filterCndBuilderSpecAiAgentEdgeConnectivityProxiesSshServiceDomain) IsNull() *FilterBuilder { 5585 return b.builder.addCond(&FilterConditionIsNull{ 5586 FieldPath: NewPolicyFieldPathBuilder().Spec().AiAgent().EdgeConnectivity().ProxiesSsh().ServiceDomain().FieldPath(), 5587 }) 5588 } 5589 5590 func (b *filterCndBuilderSpecAiAgentEdgeConnectivityProxiesSshServiceDomain) IsNan() *FilterBuilder { 5591 return b.builder.addCond(&FilterConditionIsNaN{ 5592 FieldPath: NewPolicyFieldPathBuilder().Spec().AiAgent().EdgeConnectivity().ProxiesSsh().ServiceDomain().FieldPath(), 5593 }) 5594 } 5595 5596 func (b *filterCndBuilderSpecAiAgentEdgeConnectivityProxiesSshServiceDomain) compare(op gotenfilter.CompareOperator, value string) *FilterBuilder { 5597 return b.builder.addCond(&FilterConditionCompare{ 5598 Operator: op, 5599 Policy_FieldPathValue: NewPolicyFieldPathBuilder().Spec().AiAgent().EdgeConnectivity().ProxiesSsh().ServiceDomain().WithValue(value), 5600 }) 5601 } 5602 5603 type filterCndBuilderSpecAiAgentEdgeConnectivityProxiesSshProviderNameTmpl struct { 5604 builder *FilterBuilder 5605 } 5606 5607 func (b *filterCndBuilderSpecAiAgentEdgeConnectivityProxiesSshProviderNameTmpl) Eq(value string) *FilterBuilder { 5608 return b.compare(gotenfilter.Eq, value) 5609 } 5610 5611 func (b *filterCndBuilderSpecAiAgentEdgeConnectivityProxiesSshProviderNameTmpl) Neq(value string) *FilterBuilder { 5612 return b.compare(gotenfilter.Neq, value) 5613 } 5614 5615 func (b *filterCndBuilderSpecAiAgentEdgeConnectivityProxiesSshProviderNameTmpl) Gt(value string) *FilterBuilder { 5616 return b.compare(gotenfilter.Gt, value) 5617 } 5618 5619 func (b *filterCndBuilderSpecAiAgentEdgeConnectivityProxiesSshProviderNameTmpl) Gte(value string) *FilterBuilder { 5620 return b.compare(gotenfilter.Gte, value) 5621 } 5622 5623 func (b *filterCndBuilderSpecAiAgentEdgeConnectivityProxiesSshProviderNameTmpl) Lt(value string) *FilterBuilder { 5624 return b.compare(gotenfilter.Lt, value) 5625 } 5626 5627 func (b *filterCndBuilderSpecAiAgentEdgeConnectivityProxiesSshProviderNameTmpl) Lte(value string) *FilterBuilder { 5628 return b.compare(gotenfilter.Lte, value) 5629 } 5630 5631 func (b *filterCndBuilderSpecAiAgentEdgeConnectivityProxiesSshProviderNameTmpl) In(values []string) *FilterBuilder { 5632 return b.builder.addCond(&FilterConditionIn{ 5633 Policy_FieldPathArrayOfValues: NewPolicyFieldPathBuilder().Spec().AiAgent().EdgeConnectivity().ProxiesSsh().ProviderNameTmpl().WithArrayOfValues(values), 5634 }) 5635 } 5636 5637 func (b *filterCndBuilderSpecAiAgentEdgeConnectivityProxiesSshProviderNameTmpl) NotIn(values []string) *FilterBuilder { 5638 return b.builder.addCond(&FilterConditionNotIn{ 5639 Policy_FieldPathArrayOfValues: NewPolicyFieldPathBuilder().Spec().AiAgent().EdgeConnectivity().ProxiesSsh().ProviderNameTmpl().WithArrayOfValues(values), 5640 }) 5641 } 5642 5643 func (b *filterCndBuilderSpecAiAgentEdgeConnectivityProxiesSshProviderNameTmpl) IsNull() *FilterBuilder { 5644 return b.builder.addCond(&FilterConditionIsNull{ 5645 FieldPath: NewPolicyFieldPathBuilder().Spec().AiAgent().EdgeConnectivity().ProxiesSsh().ProviderNameTmpl().FieldPath(), 5646 }) 5647 } 5648 5649 func (b *filterCndBuilderSpecAiAgentEdgeConnectivityProxiesSshProviderNameTmpl) IsNan() *FilterBuilder { 5650 return b.builder.addCond(&FilterConditionIsNaN{ 5651 FieldPath: NewPolicyFieldPathBuilder().Spec().AiAgent().EdgeConnectivity().ProxiesSsh().ProviderNameTmpl().FieldPath(), 5652 }) 5653 } 5654 5655 func (b *filterCndBuilderSpecAiAgentEdgeConnectivityProxiesSshProviderNameTmpl) compare(op gotenfilter.CompareOperator, value string) *FilterBuilder { 5656 return b.builder.addCond(&FilterConditionCompare{ 5657 Operator: op, 5658 Policy_FieldPathValue: NewPolicyFieldPathBuilder().Spec().AiAgent().EdgeConnectivity().ProxiesSsh().ProviderNameTmpl().WithValue(value), 5659 }) 5660 } 5661 5662 type filterCndBuilderSpecAiAgentEdgeConnectivityProxiesSshClientName struct { 5663 builder *FilterBuilder 5664 } 5665 5666 func (b *filterCndBuilderSpecAiAgentEdgeConnectivityProxiesSshClientName) Eq(value string) *FilterBuilder { 5667 return b.compare(gotenfilter.Eq, value) 5668 } 5669 5670 func (b *filterCndBuilderSpecAiAgentEdgeConnectivityProxiesSshClientName) Neq(value string) *FilterBuilder { 5671 return b.compare(gotenfilter.Neq, value) 5672 } 5673 5674 func (b *filterCndBuilderSpecAiAgentEdgeConnectivityProxiesSshClientName) Gt(value string) *FilterBuilder { 5675 return b.compare(gotenfilter.Gt, value) 5676 } 5677 5678 func (b *filterCndBuilderSpecAiAgentEdgeConnectivityProxiesSshClientName) Gte(value string) *FilterBuilder { 5679 return b.compare(gotenfilter.Gte, value) 5680 } 5681 5682 func (b *filterCndBuilderSpecAiAgentEdgeConnectivityProxiesSshClientName) Lt(value string) *FilterBuilder { 5683 return b.compare(gotenfilter.Lt, value) 5684 } 5685 5686 func (b *filterCndBuilderSpecAiAgentEdgeConnectivityProxiesSshClientName) Lte(value string) *FilterBuilder { 5687 return b.compare(gotenfilter.Lte, value) 5688 } 5689 5690 func (b *filterCndBuilderSpecAiAgentEdgeConnectivityProxiesSshClientName) In(values []string) *FilterBuilder { 5691 return b.builder.addCond(&FilterConditionIn{ 5692 Policy_FieldPathArrayOfValues: NewPolicyFieldPathBuilder().Spec().AiAgent().EdgeConnectivity().ProxiesSsh().ClientName().WithArrayOfValues(values), 5693 }) 5694 } 5695 5696 func (b *filterCndBuilderSpecAiAgentEdgeConnectivityProxiesSshClientName) NotIn(values []string) *FilterBuilder { 5697 return b.builder.addCond(&FilterConditionNotIn{ 5698 Policy_FieldPathArrayOfValues: NewPolicyFieldPathBuilder().Spec().AiAgent().EdgeConnectivity().ProxiesSsh().ClientName().WithArrayOfValues(values), 5699 }) 5700 } 5701 5702 func (b *filterCndBuilderSpecAiAgentEdgeConnectivityProxiesSshClientName) IsNull() *FilterBuilder { 5703 return b.builder.addCond(&FilterConditionIsNull{ 5704 FieldPath: NewPolicyFieldPathBuilder().Spec().AiAgent().EdgeConnectivity().ProxiesSsh().ClientName().FieldPath(), 5705 }) 5706 } 5707 5708 func (b *filterCndBuilderSpecAiAgentEdgeConnectivityProxiesSshClientName) IsNan() *FilterBuilder { 5709 return b.builder.addCond(&FilterConditionIsNaN{ 5710 FieldPath: NewPolicyFieldPathBuilder().Spec().AiAgent().EdgeConnectivity().ProxiesSsh().ClientName().FieldPath(), 5711 }) 5712 } 5713 5714 func (b *filterCndBuilderSpecAiAgentEdgeConnectivityProxiesSshClientName) compare(op gotenfilter.CompareOperator, value string) *FilterBuilder { 5715 return b.builder.addCond(&FilterConditionCompare{ 5716 Operator: op, 5717 Policy_FieldPathValue: NewPolicyFieldPathBuilder().Spec().AiAgent().EdgeConnectivity().ProxiesSsh().ClientName().WithValue(value), 5718 }) 5719 } 5720 5721 type filterCndBuilderSpecAiAgentEdgeConnectivityProxiesSshServiceName struct { 5722 builder *FilterBuilder 5723 } 5724 5725 func (b *filterCndBuilderSpecAiAgentEdgeConnectivityProxiesSshServiceName) Eq(value string) *FilterBuilder { 5726 return b.compare(gotenfilter.Eq, value) 5727 } 5728 5729 func (b *filterCndBuilderSpecAiAgentEdgeConnectivityProxiesSshServiceName) Neq(value string) *FilterBuilder { 5730 return b.compare(gotenfilter.Neq, value) 5731 } 5732 5733 func (b *filterCndBuilderSpecAiAgentEdgeConnectivityProxiesSshServiceName) Gt(value string) *FilterBuilder { 5734 return b.compare(gotenfilter.Gt, value) 5735 } 5736 5737 func (b *filterCndBuilderSpecAiAgentEdgeConnectivityProxiesSshServiceName) Gte(value string) *FilterBuilder { 5738 return b.compare(gotenfilter.Gte, value) 5739 } 5740 5741 func (b *filterCndBuilderSpecAiAgentEdgeConnectivityProxiesSshServiceName) Lt(value string) *FilterBuilder { 5742 return b.compare(gotenfilter.Lt, value) 5743 } 5744 5745 func (b *filterCndBuilderSpecAiAgentEdgeConnectivityProxiesSshServiceName) Lte(value string) *FilterBuilder { 5746 return b.compare(gotenfilter.Lte, value) 5747 } 5748 5749 func (b *filterCndBuilderSpecAiAgentEdgeConnectivityProxiesSshServiceName) In(values []string) *FilterBuilder { 5750 return b.builder.addCond(&FilterConditionIn{ 5751 Policy_FieldPathArrayOfValues: NewPolicyFieldPathBuilder().Spec().AiAgent().EdgeConnectivity().ProxiesSsh().ServiceName().WithArrayOfValues(values), 5752 }) 5753 } 5754 5755 func (b *filterCndBuilderSpecAiAgentEdgeConnectivityProxiesSshServiceName) NotIn(values []string) *FilterBuilder { 5756 return b.builder.addCond(&FilterConditionNotIn{ 5757 Policy_FieldPathArrayOfValues: NewPolicyFieldPathBuilder().Spec().AiAgent().EdgeConnectivity().ProxiesSsh().ServiceName().WithArrayOfValues(values), 5758 }) 5759 } 5760 5761 func (b *filterCndBuilderSpecAiAgentEdgeConnectivityProxiesSshServiceName) IsNull() *FilterBuilder { 5762 return b.builder.addCond(&FilterConditionIsNull{ 5763 FieldPath: NewPolicyFieldPathBuilder().Spec().AiAgent().EdgeConnectivity().ProxiesSsh().ServiceName().FieldPath(), 5764 }) 5765 } 5766 5767 func (b *filterCndBuilderSpecAiAgentEdgeConnectivityProxiesSshServiceName) IsNan() *FilterBuilder { 5768 return b.builder.addCond(&FilterConditionIsNaN{ 5769 FieldPath: NewPolicyFieldPathBuilder().Spec().AiAgent().EdgeConnectivity().ProxiesSsh().ServiceName().FieldPath(), 5770 }) 5771 } 5772 5773 func (b *filterCndBuilderSpecAiAgentEdgeConnectivityProxiesSshServiceName) compare(op gotenfilter.CompareOperator, value string) *FilterBuilder { 5774 return b.builder.addCond(&FilterConditionCompare{ 5775 Operator: op, 5776 Policy_FieldPathValue: NewPolicyFieldPathBuilder().Spec().AiAgent().EdgeConnectivity().ProxiesSsh().ServiceName().WithValue(value), 5777 }) 5778 } 5779 5780 type filterCndBuilderSpecAiAgentEdgeConnectivityPodSsh struct { 5781 builder *FilterBuilder 5782 } 5783 5784 func (b *filterCndBuilderSpecAiAgentEdgeConnectivityPodSsh) Eq(value *rcommon.PolicySpec_AIAgentHandling_EdgeConnectivity_PodSSH) *FilterBuilder { 5785 return b.compare(gotenfilter.Eq, value) 5786 } 5787 5788 func (b *filterCndBuilderSpecAiAgentEdgeConnectivityPodSsh) Neq(value *rcommon.PolicySpec_AIAgentHandling_EdgeConnectivity_PodSSH) *FilterBuilder { 5789 return b.compare(gotenfilter.Neq, value) 5790 } 5791 5792 func (b *filterCndBuilderSpecAiAgentEdgeConnectivityPodSsh) Gt(value *rcommon.PolicySpec_AIAgentHandling_EdgeConnectivity_PodSSH) *FilterBuilder { 5793 return b.compare(gotenfilter.Gt, value) 5794 } 5795 5796 func (b *filterCndBuilderSpecAiAgentEdgeConnectivityPodSsh) Gte(value *rcommon.PolicySpec_AIAgentHandling_EdgeConnectivity_PodSSH) *FilterBuilder { 5797 return b.compare(gotenfilter.Gte, value) 5798 } 5799 5800 func (b *filterCndBuilderSpecAiAgentEdgeConnectivityPodSsh) Lt(value *rcommon.PolicySpec_AIAgentHandling_EdgeConnectivity_PodSSH) *FilterBuilder { 5801 return b.compare(gotenfilter.Lt, value) 5802 } 5803 5804 func (b *filterCndBuilderSpecAiAgentEdgeConnectivityPodSsh) Lte(value *rcommon.PolicySpec_AIAgentHandling_EdgeConnectivity_PodSSH) *FilterBuilder { 5805 return b.compare(gotenfilter.Lte, value) 5806 } 5807 5808 func (b *filterCndBuilderSpecAiAgentEdgeConnectivityPodSsh) In(values []*rcommon.PolicySpec_AIAgentHandling_EdgeConnectivity_PodSSH) *FilterBuilder { 5809 return b.builder.addCond(&FilterConditionIn{ 5810 Policy_FieldPathArrayOfValues: NewPolicyFieldPathBuilder().Spec().AiAgent().EdgeConnectivity().PodSsh().WithArrayOfValues(values), 5811 }) 5812 } 5813 5814 func (b *filterCndBuilderSpecAiAgentEdgeConnectivityPodSsh) NotIn(values []*rcommon.PolicySpec_AIAgentHandling_EdgeConnectivity_PodSSH) *FilterBuilder { 5815 return b.builder.addCond(&FilterConditionNotIn{ 5816 Policy_FieldPathArrayOfValues: NewPolicyFieldPathBuilder().Spec().AiAgent().EdgeConnectivity().PodSsh().WithArrayOfValues(values), 5817 }) 5818 } 5819 5820 func (b *filterCndBuilderSpecAiAgentEdgeConnectivityPodSsh) IsNull() *FilterBuilder { 5821 return b.builder.addCond(&FilterConditionIsNull{ 5822 FieldPath: NewPolicyFieldPathBuilder().Spec().AiAgent().EdgeConnectivity().PodSsh().FieldPath(), 5823 }) 5824 } 5825 5826 func (b *filterCndBuilderSpecAiAgentEdgeConnectivityPodSsh) IsNan() *FilterBuilder { 5827 return b.builder.addCond(&FilterConditionIsNaN{ 5828 FieldPath: NewPolicyFieldPathBuilder().Spec().AiAgent().EdgeConnectivity().PodSsh().FieldPath(), 5829 }) 5830 } 5831 5832 func (b *filterCndBuilderSpecAiAgentEdgeConnectivityPodSsh) compare(op gotenfilter.CompareOperator, value *rcommon.PolicySpec_AIAgentHandling_EdgeConnectivity_PodSSH) *FilterBuilder { 5833 return b.builder.addCond(&FilterConditionCompare{ 5834 Operator: op, 5835 Policy_FieldPathValue: NewPolicyFieldPathBuilder().Spec().AiAgent().EdgeConnectivity().PodSsh().WithValue(value), 5836 }) 5837 } 5838 5839 func (b *filterCndBuilderSpecAiAgentEdgeConnectivityPodSsh) ClientName() *filterCndBuilderSpecAiAgentEdgeConnectivityPodSshClientName { 5840 return &filterCndBuilderSpecAiAgentEdgeConnectivityPodSshClientName{builder: b.builder} 5841 } 5842 5843 func (b *filterCndBuilderSpecAiAgentEdgeConnectivityPodSsh) Username() *filterCndBuilderSpecAiAgentEdgeConnectivityPodSshUsername { 5844 return &filterCndBuilderSpecAiAgentEdgeConnectivityPodSshUsername{builder: b.builder} 5845 } 5846 5847 type filterCndBuilderSpecAiAgentEdgeConnectivityPodSshClientName struct { 5848 builder *FilterBuilder 5849 } 5850 5851 func (b *filterCndBuilderSpecAiAgentEdgeConnectivityPodSshClientName) Eq(value string) *FilterBuilder { 5852 return b.compare(gotenfilter.Eq, value) 5853 } 5854 5855 func (b *filterCndBuilderSpecAiAgentEdgeConnectivityPodSshClientName) Neq(value string) *FilterBuilder { 5856 return b.compare(gotenfilter.Neq, value) 5857 } 5858 5859 func (b *filterCndBuilderSpecAiAgentEdgeConnectivityPodSshClientName) Gt(value string) *FilterBuilder { 5860 return b.compare(gotenfilter.Gt, value) 5861 } 5862 5863 func (b *filterCndBuilderSpecAiAgentEdgeConnectivityPodSshClientName) Gte(value string) *FilterBuilder { 5864 return b.compare(gotenfilter.Gte, value) 5865 } 5866 5867 func (b *filterCndBuilderSpecAiAgentEdgeConnectivityPodSshClientName) Lt(value string) *FilterBuilder { 5868 return b.compare(gotenfilter.Lt, value) 5869 } 5870 5871 func (b *filterCndBuilderSpecAiAgentEdgeConnectivityPodSshClientName) Lte(value string) *FilterBuilder { 5872 return b.compare(gotenfilter.Lte, value) 5873 } 5874 5875 func (b *filterCndBuilderSpecAiAgentEdgeConnectivityPodSshClientName) In(values []string) *FilterBuilder { 5876 return b.builder.addCond(&FilterConditionIn{ 5877 Policy_FieldPathArrayOfValues: NewPolicyFieldPathBuilder().Spec().AiAgent().EdgeConnectivity().PodSsh().ClientName().WithArrayOfValues(values), 5878 }) 5879 } 5880 5881 func (b *filterCndBuilderSpecAiAgentEdgeConnectivityPodSshClientName) NotIn(values []string) *FilterBuilder { 5882 return b.builder.addCond(&FilterConditionNotIn{ 5883 Policy_FieldPathArrayOfValues: NewPolicyFieldPathBuilder().Spec().AiAgent().EdgeConnectivity().PodSsh().ClientName().WithArrayOfValues(values), 5884 }) 5885 } 5886 5887 func (b *filterCndBuilderSpecAiAgentEdgeConnectivityPodSshClientName) IsNull() *FilterBuilder { 5888 return b.builder.addCond(&FilterConditionIsNull{ 5889 FieldPath: NewPolicyFieldPathBuilder().Spec().AiAgent().EdgeConnectivity().PodSsh().ClientName().FieldPath(), 5890 }) 5891 } 5892 5893 func (b *filterCndBuilderSpecAiAgentEdgeConnectivityPodSshClientName) IsNan() *FilterBuilder { 5894 return b.builder.addCond(&FilterConditionIsNaN{ 5895 FieldPath: NewPolicyFieldPathBuilder().Spec().AiAgent().EdgeConnectivity().PodSsh().ClientName().FieldPath(), 5896 }) 5897 } 5898 5899 func (b *filterCndBuilderSpecAiAgentEdgeConnectivityPodSshClientName) compare(op gotenfilter.CompareOperator, value string) *FilterBuilder { 5900 return b.builder.addCond(&FilterConditionCompare{ 5901 Operator: op, 5902 Policy_FieldPathValue: NewPolicyFieldPathBuilder().Spec().AiAgent().EdgeConnectivity().PodSsh().ClientName().WithValue(value), 5903 }) 5904 } 5905 5906 type filterCndBuilderSpecAiAgentEdgeConnectivityPodSshUsername struct { 5907 builder *FilterBuilder 5908 } 5909 5910 func (b *filterCndBuilderSpecAiAgentEdgeConnectivityPodSshUsername) Eq(value string) *FilterBuilder { 5911 return b.compare(gotenfilter.Eq, value) 5912 } 5913 5914 func (b *filterCndBuilderSpecAiAgentEdgeConnectivityPodSshUsername) Neq(value string) *FilterBuilder { 5915 return b.compare(gotenfilter.Neq, value) 5916 } 5917 5918 func (b *filterCndBuilderSpecAiAgentEdgeConnectivityPodSshUsername) Gt(value string) *FilterBuilder { 5919 return b.compare(gotenfilter.Gt, value) 5920 } 5921 5922 func (b *filterCndBuilderSpecAiAgentEdgeConnectivityPodSshUsername) Gte(value string) *FilterBuilder { 5923 return b.compare(gotenfilter.Gte, value) 5924 } 5925 5926 func (b *filterCndBuilderSpecAiAgentEdgeConnectivityPodSshUsername) Lt(value string) *FilterBuilder { 5927 return b.compare(gotenfilter.Lt, value) 5928 } 5929 5930 func (b *filterCndBuilderSpecAiAgentEdgeConnectivityPodSshUsername) Lte(value string) *FilterBuilder { 5931 return b.compare(gotenfilter.Lte, value) 5932 } 5933 5934 func (b *filterCndBuilderSpecAiAgentEdgeConnectivityPodSshUsername) In(values []string) *FilterBuilder { 5935 return b.builder.addCond(&FilterConditionIn{ 5936 Policy_FieldPathArrayOfValues: NewPolicyFieldPathBuilder().Spec().AiAgent().EdgeConnectivity().PodSsh().Username().WithArrayOfValues(values), 5937 }) 5938 } 5939 5940 func (b *filterCndBuilderSpecAiAgentEdgeConnectivityPodSshUsername) NotIn(values []string) *FilterBuilder { 5941 return b.builder.addCond(&FilterConditionNotIn{ 5942 Policy_FieldPathArrayOfValues: NewPolicyFieldPathBuilder().Spec().AiAgent().EdgeConnectivity().PodSsh().Username().WithArrayOfValues(values), 5943 }) 5944 } 5945 5946 func (b *filterCndBuilderSpecAiAgentEdgeConnectivityPodSshUsername) IsNull() *FilterBuilder { 5947 return b.builder.addCond(&FilterConditionIsNull{ 5948 FieldPath: NewPolicyFieldPathBuilder().Spec().AiAgent().EdgeConnectivity().PodSsh().Username().FieldPath(), 5949 }) 5950 } 5951 5952 func (b *filterCndBuilderSpecAiAgentEdgeConnectivityPodSshUsername) IsNan() *FilterBuilder { 5953 return b.builder.addCond(&FilterConditionIsNaN{ 5954 FieldPath: NewPolicyFieldPathBuilder().Spec().AiAgent().EdgeConnectivity().PodSsh().Username().FieldPath(), 5955 }) 5956 } 5957 5958 func (b *filterCndBuilderSpecAiAgentEdgeConnectivityPodSshUsername) compare(op gotenfilter.CompareOperator, value string) *FilterBuilder { 5959 return b.builder.addCond(&FilterConditionCompare{ 5960 Operator: op, 5961 Policy_FieldPathValue: NewPolicyFieldPathBuilder().Spec().AiAgent().EdgeConnectivity().PodSsh().Username().WithValue(value), 5962 }) 5963 } 5964 5965 type filterCndBuilderSpecAiAgentEdgeConnectivityAllowedBins struct { 5966 builder *FilterBuilder 5967 } 5968 5969 func (b *filterCndBuilderSpecAiAgentEdgeConnectivityAllowedBins) Eq(value []string) *FilterBuilder { 5970 return b.compare(gotenfilter.Eq, value) 5971 } 5972 5973 func (b *filterCndBuilderSpecAiAgentEdgeConnectivityAllowedBins) Neq(value []string) *FilterBuilder { 5974 return b.compare(gotenfilter.Neq, value) 5975 } 5976 5977 func (b *filterCndBuilderSpecAiAgentEdgeConnectivityAllowedBins) Gt(value []string) *FilterBuilder { 5978 return b.compare(gotenfilter.Gt, value) 5979 } 5980 5981 func (b *filterCndBuilderSpecAiAgentEdgeConnectivityAllowedBins) Gte(value []string) *FilterBuilder { 5982 return b.compare(gotenfilter.Gte, value) 5983 } 5984 5985 func (b *filterCndBuilderSpecAiAgentEdgeConnectivityAllowedBins) Lt(value []string) *FilterBuilder { 5986 return b.compare(gotenfilter.Lt, value) 5987 } 5988 5989 func (b *filterCndBuilderSpecAiAgentEdgeConnectivityAllowedBins) Lte(value []string) *FilterBuilder { 5990 return b.compare(gotenfilter.Lte, value) 5991 } 5992 5993 func (b *filterCndBuilderSpecAiAgentEdgeConnectivityAllowedBins) In(values [][]string) *FilterBuilder { 5994 return b.builder.addCond(&FilterConditionIn{ 5995 Policy_FieldPathArrayOfValues: NewPolicyFieldPathBuilder().Spec().AiAgent().EdgeConnectivity().AllowedBins().WithArrayOfValues(values), 5996 }) 5997 } 5998 5999 func (b *filterCndBuilderSpecAiAgentEdgeConnectivityAllowedBins) NotIn(values [][]string) *FilterBuilder { 6000 return b.builder.addCond(&FilterConditionNotIn{ 6001 Policy_FieldPathArrayOfValues: NewPolicyFieldPathBuilder().Spec().AiAgent().EdgeConnectivity().AllowedBins().WithArrayOfValues(values), 6002 }) 6003 } 6004 6005 func (b *filterCndBuilderSpecAiAgentEdgeConnectivityAllowedBins) IsNull() *FilterBuilder { 6006 return b.builder.addCond(&FilterConditionIsNull{ 6007 FieldPath: NewPolicyFieldPathBuilder().Spec().AiAgent().EdgeConnectivity().AllowedBins().FieldPath(), 6008 }) 6009 } 6010 6011 func (b *filterCndBuilderSpecAiAgentEdgeConnectivityAllowedBins) IsNan() *FilterBuilder { 6012 return b.builder.addCond(&FilterConditionIsNaN{ 6013 FieldPath: NewPolicyFieldPathBuilder().Spec().AiAgent().EdgeConnectivity().AllowedBins().FieldPath(), 6014 }) 6015 } 6016 6017 func (b *filterCndBuilderSpecAiAgentEdgeConnectivityAllowedBins) Contains(value string) *FilterBuilder { 6018 return b.builder.addCond(&FilterConditionContains{ 6019 Type: gotenresource.ConditionContainsTypeValue, 6020 FieldPath: NewPolicyFieldPathBuilder().Spec().AiAgent().EdgeConnectivity().AllowedBins().FieldPath(), 6021 Value: NewPolicyFieldPathBuilder().Spec().AiAgent().EdgeConnectivity().AllowedBins().WithItemValue(value), 6022 }) 6023 } 6024 6025 func (b *filterCndBuilderSpecAiAgentEdgeConnectivityAllowedBins) ContainsAnyOf(values []string) *FilterBuilder { 6026 pathSelector := NewPolicyFieldPathBuilder().Spec().AiAgent().EdgeConnectivity().AllowedBins() 6027 itemValues := make([]Policy_FieldPathArrayItemValue, 0, len(values)) 6028 for _, value := range values { 6029 itemValues = append(itemValues, pathSelector.WithItemValue(value)) 6030 } 6031 return b.builder.addCond(&FilterConditionContains{ 6032 Type: gotenresource.ConditionContainsTypeAny, 6033 FieldPath: NewPolicyFieldPathBuilder().Spec().AiAgent().EdgeConnectivity().AllowedBins().FieldPath(), 6034 Values: itemValues, 6035 }) 6036 } 6037 6038 func (b *filterCndBuilderSpecAiAgentEdgeConnectivityAllowedBins) ContainsAll(values []string) *FilterBuilder { 6039 pathSelector := NewPolicyFieldPathBuilder().Spec().AiAgent().EdgeConnectivity().AllowedBins() 6040 itemValues := make([]Policy_FieldPathArrayItemValue, 0, len(values)) 6041 for _, value := range values { 6042 itemValues = append(itemValues, pathSelector.WithItemValue(value)) 6043 } 6044 return b.builder.addCond(&FilterConditionContains{ 6045 Type: gotenresource.ConditionContainsTypeAll, 6046 FieldPath: NewPolicyFieldPathBuilder().Spec().AiAgent().EdgeConnectivity().AllowedBins().FieldPath(), 6047 Values: itemValues, 6048 }) 6049 } 6050 6051 func (b *filterCndBuilderSpecAiAgentEdgeConnectivityAllowedBins) compare(op gotenfilter.CompareOperator, value []string) *FilterBuilder { 6052 return b.builder.addCond(&FilterConditionCompare{ 6053 Operator: op, 6054 Policy_FieldPathValue: NewPolicyFieldPathBuilder().Spec().AiAgent().EdgeConnectivity().AllowedBins().WithValue(value), 6055 }) 6056 } 6057 6058 type filterCndBuilderSpecAiAgentRemediationOptions struct { 6059 builder *FilterBuilder 6060 } 6061 6062 func (b *filterCndBuilderSpecAiAgentRemediationOptions) Eq(value []*rcommon.PolicySpec_AIAgentHandling_Remediation) *FilterBuilder { 6063 return b.compare(gotenfilter.Eq, value) 6064 } 6065 6066 func (b *filterCndBuilderSpecAiAgentRemediationOptions) Neq(value []*rcommon.PolicySpec_AIAgentHandling_Remediation) *FilterBuilder { 6067 return b.compare(gotenfilter.Neq, value) 6068 } 6069 6070 func (b *filterCndBuilderSpecAiAgentRemediationOptions) Gt(value []*rcommon.PolicySpec_AIAgentHandling_Remediation) *FilterBuilder { 6071 return b.compare(gotenfilter.Gt, value) 6072 } 6073 6074 func (b *filterCndBuilderSpecAiAgentRemediationOptions) Gte(value []*rcommon.PolicySpec_AIAgentHandling_Remediation) *FilterBuilder { 6075 return b.compare(gotenfilter.Gte, value) 6076 } 6077 6078 func (b *filterCndBuilderSpecAiAgentRemediationOptions) Lt(value []*rcommon.PolicySpec_AIAgentHandling_Remediation) *FilterBuilder { 6079 return b.compare(gotenfilter.Lt, value) 6080 } 6081 6082 func (b *filterCndBuilderSpecAiAgentRemediationOptions) Lte(value []*rcommon.PolicySpec_AIAgentHandling_Remediation) *FilterBuilder { 6083 return b.compare(gotenfilter.Lte, value) 6084 } 6085 6086 func (b *filterCndBuilderSpecAiAgentRemediationOptions) In(values [][]*rcommon.PolicySpec_AIAgentHandling_Remediation) *FilterBuilder { 6087 return b.builder.addCond(&FilterConditionIn{ 6088 Policy_FieldPathArrayOfValues: NewPolicyFieldPathBuilder().Spec().AiAgent().RemediationOptions().WithArrayOfValues(values), 6089 }) 6090 } 6091 6092 func (b *filterCndBuilderSpecAiAgentRemediationOptions) NotIn(values [][]*rcommon.PolicySpec_AIAgentHandling_Remediation) *FilterBuilder { 6093 return b.builder.addCond(&FilterConditionNotIn{ 6094 Policy_FieldPathArrayOfValues: NewPolicyFieldPathBuilder().Spec().AiAgent().RemediationOptions().WithArrayOfValues(values), 6095 }) 6096 } 6097 6098 func (b *filterCndBuilderSpecAiAgentRemediationOptions) IsNull() *FilterBuilder { 6099 return b.builder.addCond(&FilterConditionIsNull{ 6100 FieldPath: NewPolicyFieldPathBuilder().Spec().AiAgent().RemediationOptions().FieldPath(), 6101 }) 6102 } 6103 6104 func (b *filterCndBuilderSpecAiAgentRemediationOptions) IsNan() *FilterBuilder { 6105 return b.builder.addCond(&FilterConditionIsNaN{ 6106 FieldPath: NewPolicyFieldPathBuilder().Spec().AiAgent().RemediationOptions().FieldPath(), 6107 }) 6108 } 6109 6110 func (b *filterCndBuilderSpecAiAgentRemediationOptions) Contains(value *rcommon.PolicySpec_AIAgentHandling_Remediation) *FilterBuilder { 6111 return b.builder.addCond(&FilterConditionContains{ 6112 Type: gotenresource.ConditionContainsTypeValue, 6113 FieldPath: NewPolicyFieldPathBuilder().Spec().AiAgent().RemediationOptions().FieldPath(), 6114 Value: NewPolicyFieldPathBuilder().Spec().AiAgent().RemediationOptions().WithItemValue(value), 6115 }) 6116 } 6117 6118 func (b *filterCndBuilderSpecAiAgentRemediationOptions) ContainsAnyOf(values []*rcommon.PolicySpec_AIAgentHandling_Remediation) *FilterBuilder { 6119 pathSelector := NewPolicyFieldPathBuilder().Spec().AiAgent().RemediationOptions() 6120 itemValues := make([]Policy_FieldPathArrayItemValue, 0, len(values)) 6121 for _, value := range values { 6122 itemValues = append(itemValues, pathSelector.WithItemValue(value)) 6123 } 6124 return b.builder.addCond(&FilterConditionContains{ 6125 Type: gotenresource.ConditionContainsTypeAny, 6126 FieldPath: NewPolicyFieldPathBuilder().Spec().AiAgent().RemediationOptions().FieldPath(), 6127 Values: itemValues, 6128 }) 6129 } 6130 6131 func (b *filterCndBuilderSpecAiAgentRemediationOptions) ContainsAll(values []*rcommon.PolicySpec_AIAgentHandling_Remediation) *FilterBuilder { 6132 pathSelector := NewPolicyFieldPathBuilder().Spec().AiAgent().RemediationOptions() 6133 itemValues := make([]Policy_FieldPathArrayItemValue, 0, len(values)) 6134 for _, value := range values { 6135 itemValues = append(itemValues, pathSelector.WithItemValue(value)) 6136 } 6137 return b.builder.addCond(&FilterConditionContains{ 6138 Type: gotenresource.ConditionContainsTypeAll, 6139 FieldPath: NewPolicyFieldPathBuilder().Spec().AiAgent().RemediationOptions().FieldPath(), 6140 Values: itemValues, 6141 }) 6142 } 6143 6144 func (b *filterCndBuilderSpecAiAgentRemediationOptions) compare(op gotenfilter.CompareOperator, value []*rcommon.PolicySpec_AIAgentHandling_Remediation) *FilterBuilder { 6145 return b.builder.addCond(&FilterConditionCompare{ 6146 Operator: op, 6147 Policy_FieldPathValue: NewPolicyFieldPathBuilder().Spec().AiAgent().RemediationOptions().WithValue(value), 6148 }) 6149 } 6150 6151 func (b *filterCndBuilderSpecAiAgentRemediationOptions) FixInSsh() *filterCndBuilderSpecAiAgentRemediationOptionsFixInSsh { 6152 return &filterCndBuilderSpecAiAgentRemediationOptionsFixInSsh{builder: b.builder} 6153 } 6154 6155 func (b *filterCndBuilderSpecAiAgentRemediationOptions) Reboot() *filterCndBuilderSpecAiAgentRemediationOptionsReboot { 6156 return &filterCndBuilderSpecAiAgentRemediationOptionsReboot{builder: b.builder} 6157 } 6158 6159 type filterCndBuilderSpecAiAgentRemediationOptionsFixInSsh struct { 6160 builder *FilterBuilder 6161 } 6162 6163 func (b *filterCndBuilderSpecAiAgentRemediationOptionsFixInSsh) Eq(value *rcommon.PolicySpec_AIAgentHandling_Remediation_FixInSSH) *FilterBuilder { 6164 return b.compare(gotenfilter.Eq, value) 6165 } 6166 6167 func (b *filterCndBuilderSpecAiAgentRemediationOptionsFixInSsh) Neq(value *rcommon.PolicySpec_AIAgentHandling_Remediation_FixInSSH) *FilterBuilder { 6168 return b.compare(gotenfilter.Neq, value) 6169 } 6170 6171 func (b *filterCndBuilderSpecAiAgentRemediationOptionsFixInSsh) Gt(value *rcommon.PolicySpec_AIAgentHandling_Remediation_FixInSSH) *FilterBuilder { 6172 return b.compare(gotenfilter.Gt, value) 6173 } 6174 6175 func (b *filterCndBuilderSpecAiAgentRemediationOptionsFixInSsh) Gte(value *rcommon.PolicySpec_AIAgentHandling_Remediation_FixInSSH) *FilterBuilder { 6176 return b.compare(gotenfilter.Gte, value) 6177 } 6178 6179 func (b *filterCndBuilderSpecAiAgentRemediationOptionsFixInSsh) Lt(value *rcommon.PolicySpec_AIAgentHandling_Remediation_FixInSSH) *FilterBuilder { 6180 return b.compare(gotenfilter.Lt, value) 6181 } 6182 6183 func (b *filterCndBuilderSpecAiAgentRemediationOptionsFixInSsh) Lte(value *rcommon.PolicySpec_AIAgentHandling_Remediation_FixInSSH) *FilterBuilder { 6184 return b.compare(gotenfilter.Lte, value) 6185 } 6186 6187 func (b *filterCndBuilderSpecAiAgentRemediationOptionsFixInSsh) In(values []*rcommon.PolicySpec_AIAgentHandling_Remediation_FixInSSH) *FilterBuilder { 6188 return b.builder.addCond(&FilterConditionIn{ 6189 Policy_FieldPathArrayOfValues: NewPolicyFieldPathBuilder().Spec().AiAgent().RemediationOptions().FixInSsh().WithArrayOfValues(values), 6190 }) 6191 } 6192 6193 func (b *filterCndBuilderSpecAiAgentRemediationOptionsFixInSsh) NotIn(values []*rcommon.PolicySpec_AIAgentHandling_Remediation_FixInSSH) *FilterBuilder { 6194 return b.builder.addCond(&FilterConditionNotIn{ 6195 Policy_FieldPathArrayOfValues: NewPolicyFieldPathBuilder().Spec().AiAgent().RemediationOptions().FixInSsh().WithArrayOfValues(values), 6196 }) 6197 } 6198 6199 func (b *filterCndBuilderSpecAiAgentRemediationOptionsFixInSsh) IsNull() *FilterBuilder { 6200 return b.builder.addCond(&FilterConditionIsNull{ 6201 FieldPath: NewPolicyFieldPathBuilder().Spec().AiAgent().RemediationOptions().FixInSsh().FieldPath(), 6202 }) 6203 } 6204 6205 func (b *filterCndBuilderSpecAiAgentRemediationOptionsFixInSsh) IsNan() *FilterBuilder { 6206 return b.builder.addCond(&FilterConditionIsNaN{ 6207 FieldPath: NewPolicyFieldPathBuilder().Spec().AiAgent().RemediationOptions().FixInSsh().FieldPath(), 6208 }) 6209 } 6210 6211 func (b *filterCndBuilderSpecAiAgentRemediationOptionsFixInSsh) compare(op gotenfilter.CompareOperator, value *rcommon.PolicySpec_AIAgentHandling_Remediation_FixInSSH) *FilterBuilder { 6212 return b.builder.addCond(&FilterConditionCompare{ 6213 Operator: op, 6214 Policy_FieldPathValue: NewPolicyFieldPathBuilder().Spec().AiAgent().RemediationOptions().FixInSsh().WithValue(value), 6215 }) 6216 } 6217 6218 type filterCndBuilderSpecAiAgentRemediationOptionsReboot struct { 6219 builder *FilterBuilder 6220 } 6221 6222 func (b *filterCndBuilderSpecAiAgentRemediationOptionsReboot) Eq(value *rcommon.PolicySpec_AIAgentHandling_Remediation_Reboot) *FilterBuilder { 6223 return b.compare(gotenfilter.Eq, value) 6224 } 6225 6226 func (b *filterCndBuilderSpecAiAgentRemediationOptionsReboot) Neq(value *rcommon.PolicySpec_AIAgentHandling_Remediation_Reboot) *FilterBuilder { 6227 return b.compare(gotenfilter.Neq, value) 6228 } 6229 6230 func (b *filterCndBuilderSpecAiAgentRemediationOptionsReboot) Gt(value *rcommon.PolicySpec_AIAgentHandling_Remediation_Reboot) *FilterBuilder { 6231 return b.compare(gotenfilter.Gt, value) 6232 } 6233 6234 func (b *filterCndBuilderSpecAiAgentRemediationOptionsReboot) Gte(value *rcommon.PolicySpec_AIAgentHandling_Remediation_Reboot) *FilterBuilder { 6235 return b.compare(gotenfilter.Gte, value) 6236 } 6237 6238 func (b *filterCndBuilderSpecAiAgentRemediationOptionsReboot) Lt(value *rcommon.PolicySpec_AIAgentHandling_Remediation_Reboot) *FilterBuilder { 6239 return b.compare(gotenfilter.Lt, value) 6240 } 6241 6242 func (b *filterCndBuilderSpecAiAgentRemediationOptionsReboot) Lte(value *rcommon.PolicySpec_AIAgentHandling_Remediation_Reboot) *FilterBuilder { 6243 return b.compare(gotenfilter.Lte, value) 6244 } 6245 6246 func (b *filterCndBuilderSpecAiAgentRemediationOptionsReboot) In(values []*rcommon.PolicySpec_AIAgentHandling_Remediation_Reboot) *FilterBuilder { 6247 return b.builder.addCond(&FilterConditionIn{ 6248 Policy_FieldPathArrayOfValues: NewPolicyFieldPathBuilder().Spec().AiAgent().RemediationOptions().Reboot().WithArrayOfValues(values), 6249 }) 6250 } 6251 6252 func (b *filterCndBuilderSpecAiAgentRemediationOptionsReboot) NotIn(values []*rcommon.PolicySpec_AIAgentHandling_Remediation_Reboot) *FilterBuilder { 6253 return b.builder.addCond(&FilterConditionNotIn{ 6254 Policy_FieldPathArrayOfValues: NewPolicyFieldPathBuilder().Spec().AiAgent().RemediationOptions().Reboot().WithArrayOfValues(values), 6255 }) 6256 } 6257 6258 func (b *filterCndBuilderSpecAiAgentRemediationOptionsReboot) IsNull() *FilterBuilder { 6259 return b.builder.addCond(&FilterConditionIsNull{ 6260 FieldPath: NewPolicyFieldPathBuilder().Spec().AiAgent().RemediationOptions().Reboot().FieldPath(), 6261 }) 6262 } 6263 6264 func (b *filterCndBuilderSpecAiAgentRemediationOptionsReboot) IsNan() *FilterBuilder { 6265 return b.builder.addCond(&FilterConditionIsNaN{ 6266 FieldPath: NewPolicyFieldPathBuilder().Spec().AiAgent().RemediationOptions().Reboot().FieldPath(), 6267 }) 6268 } 6269 6270 func (b *filterCndBuilderSpecAiAgentRemediationOptionsReboot) compare(op gotenfilter.CompareOperator, value *rcommon.PolicySpec_AIAgentHandling_Remediation_Reboot) *FilterBuilder { 6271 return b.builder.addCond(&FilterConditionCompare{ 6272 Operator: op, 6273 Policy_FieldPathValue: NewPolicyFieldPathBuilder().Spec().AiAgent().RemediationOptions().Reboot().WithValue(value), 6274 }) 6275 } 6276 6277 type filterCndBuilderTemplateSource struct { 6278 builder *FilterBuilder 6279 } 6280 6281 func (b *filterCndBuilderTemplateSource) Eq(value *Policy_TemplateSource) *FilterBuilder { 6282 return b.compare(gotenfilter.Eq, value) 6283 } 6284 6285 func (b *filterCndBuilderTemplateSource) Neq(value *Policy_TemplateSource) *FilterBuilder { 6286 return b.compare(gotenfilter.Neq, value) 6287 } 6288 6289 func (b *filterCndBuilderTemplateSource) Gt(value *Policy_TemplateSource) *FilterBuilder { 6290 return b.compare(gotenfilter.Gt, value) 6291 } 6292 6293 func (b *filterCndBuilderTemplateSource) Gte(value *Policy_TemplateSource) *FilterBuilder { 6294 return b.compare(gotenfilter.Gte, value) 6295 } 6296 6297 func (b *filterCndBuilderTemplateSource) Lt(value *Policy_TemplateSource) *FilterBuilder { 6298 return b.compare(gotenfilter.Lt, value) 6299 } 6300 6301 func (b *filterCndBuilderTemplateSource) Lte(value *Policy_TemplateSource) *FilterBuilder { 6302 return b.compare(gotenfilter.Lte, value) 6303 } 6304 6305 func (b *filterCndBuilderTemplateSource) In(values []*Policy_TemplateSource) *FilterBuilder { 6306 return b.builder.addCond(&FilterConditionIn{ 6307 Policy_FieldPathArrayOfValues: NewPolicyFieldPathBuilder().TemplateSource().WithArrayOfValues(values), 6308 }) 6309 } 6310 6311 func (b *filterCndBuilderTemplateSource) NotIn(values []*Policy_TemplateSource) *FilterBuilder { 6312 return b.builder.addCond(&FilterConditionNotIn{ 6313 Policy_FieldPathArrayOfValues: NewPolicyFieldPathBuilder().TemplateSource().WithArrayOfValues(values), 6314 }) 6315 } 6316 6317 func (b *filterCndBuilderTemplateSource) IsNull() *FilterBuilder { 6318 return b.builder.addCond(&FilterConditionIsNull{ 6319 FieldPath: NewPolicyFieldPathBuilder().TemplateSource().FieldPath(), 6320 }) 6321 } 6322 6323 func (b *filterCndBuilderTemplateSource) IsNan() *FilterBuilder { 6324 return b.builder.addCond(&FilterConditionIsNaN{ 6325 FieldPath: NewPolicyFieldPathBuilder().TemplateSource().FieldPath(), 6326 }) 6327 } 6328 6329 func (b *filterCndBuilderTemplateSource) compare(op gotenfilter.CompareOperator, value *Policy_TemplateSource) *FilterBuilder { 6330 return b.builder.addCond(&FilterConditionCompare{ 6331 Operator: op, 6332 Policy_FieldPathValue: NewPolicyFieldPathBuilder().TemplateSource().WithValue(value), 6333 }) 6334 } 6335 6336 func (b *filterCndBuilderTemplateSource) Template() *filterCndBuilderTemplateSourceTemplate { 6337 return &filterCndBuilderTemplateSourceTemplate{builder: b.builder} 6338 } 6339 6340 func (b *filterCndBuilderTemplateSource) UpdatedFields() *filterCndBuilderTemplateSourceUpdatedFields { 6341 return &filterCndBuilderTemplateSourceUpdatedFields{builder: b.builder} 6342 } 6343 6344 type filterCndBuilderTemplateSourceTemplate struct { 6345 builder *FilterBuilder 6346 } 6347 6348 func (b *filterCndBuilderTemplateSourceTemplate) Eq(value *policy_template.Reference) *FilterBuilder { 6349 return b.compare(gotenfilter.Eq, value) 6350 } 6351 6352 func (b *filterCndBuilderTemplateSourceTemplate) Neq(value *policy_template.Reference) *FilterBuilder { 6353 return b.compare(gotenfilter.Neq, value) 6354 } 6355 6356 func (b *filterCndBuilderTemplateSourceTemplate) Gt(value *policy_template.Reference) *FilterBuilder { 6357 return b.compare(gotenfilter.Gt, value) 6358 } 6359 6360 func (b *filterCndBuilderTemplateSourceTemplate) Gte(value *policy_template.Reference) *FilterBuilder { 6361 return b.compare(gotenfilter.Gte, value) 6362 } 6363 6364 func (b *filterCndBuilderTemplateSourceTemplate) Lt(value *policy_template.Reference) *FilterBuilder { 6365 return b.compare(gotenfilter.Lt, value) 6366 } 6367 6368 func (b *filterCndBuilderTemplateSourceTemplate) Lte(value *policy_template.Reference) *FilterBuilder { 6369 return b.compare(gotenfilter.Lte, value) 6370 } 6371 6372 func (b *filterCndBuilderTemplateSourceTemplate) In(values []*policy_template.Reference) *FilterBuilder { 6373 return b.builder.addCond(&FilterConditionIn{ 6374 Policy_FieldPathArrayOfValues: NewPolicyFieldPathBuilder().TemplateSource().Template().WithArrayOfValues(values), 6375 }) 6376 } 6377 6378 func (b *filterCndBuilderTemplateSourceTemplate) NotIn(values []*policy_template.Reference) *FilterBuilder { 6379 return b.builder.addCond(&FilterConditionNotIn{ 6380 Policy_FieldPathArrayOfValues: NewPolicyFieldPathBuilder().TemplateSource().Template().WithArrayOfValues(values), 6381 }) 6382 } 6383 6384 func (b *filterCndBuilderTemplateSourceTemplate) IsNull() *FilterBuilder { 6385 return b.builder.addCond(&FilterConditionIsNull{ 6386 FieldPath: NewPolicyFieldPathBuilder().TemplateSource().Template().FieldPath(), 6387 }) 6388 } 6389 6390 func (b *filterCndBuilderTemplateSourceTemplate) IsNan() *FilterBuilder { 6391 return b.builder.addCond(&FilterConditionIsNaN{ 6392 FieldPath: NewPolicyFieldPathBuilder().TemplateSource().Template().FieldPath(), 6393 }) 6394 } 6395 6396 func (b *filterCndBuilderTemplateSourceTemplate) compare(op gotenfilter.CompareOperator, value *policy_template.Reference) *FilterBuilder { 6397 return b.builder.addCond(&FilterConditionCompare{ 6398 Operator: op, 6399 Policy_FieldPathValue: NewPolicyFieldPathBuilder().TemplateSource().Template().WithValue(value), 6400 }) 6401 } 6402 6403 type filterCndBuilderTemplateSourceUpdatedFields struct { 6404 builder *FilterBuilder 6405 } 6406 6407 func (b *filterCndBuilderTemplateSourceUpdatedFields) Eq(value *fieldmaskpb.FieldMask) *FilterBuilder { 6408 return b.compare(gotenfilter.Eq, value) 6409 } 6410 6411 func (b *filterCndBuilderTemplateSourceUpdatedFields) Neq(value *fieldmaskpb.FieldMask) *FilterBuilder { 6412 return b.compare(gotenfilter.Neq, value) 6413 } 6414 6415 func (b *filterCndBuilderTemplateSourceUpdatedFields) Gt(value *fieldmaskpb.FieldMask) *FilterBuilder { 6416 return b.compare(gotenfilter.Gt, value) 6417 } 6418 6419 func (b *filterCndBuilderTemplateSourceUpdatedFields) Gte(value *fieldmaskpb.FieldMask) *FilterBuilder { 6420 return b.compare(gotenfilter.Gte, value) 6421 } 6422 6423 func (b *filterCndBuilderTemplateSourceUpdatedFields) Lt(value *fieldmaskpb.FieldMask) *FilterBuilder { 6424 return b.compare(gotenfilter.Lt, value) 6425 } 6426 6427 func (b *filterCndBuilderTemplateSourceUpdatedFields) Lte(value *fieldmaskpb.FieldMask) *FilterBuilder { 6428 return b.compare(gotenfilter.Lte, value) 6429 } 6430 6431 func (b *filterCndBuilderTemplateSourceUpdatedFields) In(values []*fieldmaskpb.FieldMask) *FilterBuilder { 6432 return b.builder.addCond(&FilterConditionIn{ 6433 Policy_FieldPathArrayOfValues: NewPolicyFieldPathBuilder().TemplateSource().UpdatedFields().WithArrayOfValues(values), 6434 }) 6435 } 6436 6437 func (b *filterCndBuilderTemplateSourceUpdatedFields) NotIn(values []*fieldmaskpb.FieldMask) *FilterBuilder { 6438 return b.builder.addCond(&FilterConditionNotIn{ 6439 Policy_FieldPathArrayOfValues: NewPolicyFieldPathBuilder().TemplateSource().UpdatedFields().WithArrayOfValues(values), 6440 }) 6441 } 6442 6443 func (b *filterCndBuilderTemplateSourceUpdatedFields) IsNull() *FilterBuilder { 6444 return b.builder.addCond(&FilterConditionIsNull{ 6445 FieldPath: NewPolicyFieldPathBuilder().TemplateSource().UpdatedFields().FieldPath(), 6446 }) 6447 } 6448 6449 func (b *filterCndBuilderTemplateSourceUpdatedFields) IsNan() *FilterBuilder { 6450 return b.builder.addCond(&FilterConditionIsNaN{ 6451 FieldPath: NewPolicyFieldPathBuilder().TemplateSource().UpdatedFields().FieldPath(), 6452 }) 6453 } 6454 6455 func (b *filterCndBuilderTemplateSourceUpdatedFields) compare(op gotenfilter.CompareOperator, value *fieldmaskpb.FieldMask) *FilterBuilder { 6456 return b.builder.addCond(&FilterConditionCompare{ 6457 Operator: op, 6458 Policy_FieldPathValue: NewPolicyFieldPathBuilder().TemplateSource().UpdatedFields().WithValue(value), 6459 }) 6460 } 6461 6462 type filterCndBuilderNotificationChannels struct { 6463 builder *FilterBuilder 6464 } 6465 6466 func (b *filterCndBuilderNotificationChannels) Eq(value []*notification_channel.Reference) *FilterBuilder { 6467 return b.compare(gotenfilter.Eq, value) 6468 } 6469 6470 func (b *filterCndBuilderNotificationChannels) Neq(value []*notification_channel.Reference) *FilterBuilder { 6471 return b.compare(gotenfilter.Neq, value) 6472 } 6473 6474 func (b *filterCndBuilderNotificationChannels) Gt(value []*notification_channel.Reference) *FilterBuilder { 6475 return b.compare(gotenfilter.Gt, value) 6476 } 6477 6478 func (b *filterCndBuilderNotificationChannels) Gte(value []*notification_channel.Reference) *FilterBuilder { 6479 return b.compare(gotenfilter.Gte, value) 6480 } 6481 6482 func (b *filterCndBuilderNotificationChannels) Lt(value []*notification_channel.Reference) *FilterBuilder { 6483 return b.compare(gotenfilter.Lt, value) 6484 } 6485 6486 func (b *filterCndBuilderNotificationChannels) Lte(value []*notification_channel.Reference) *FilterBuilder { 6487 return b.compare(gotenfilter.Lte, value) 6488 } 6489 6490 func (b *filterCndBuilderNotificationChannels) In(values [][]*notification_channel.Reference) *FilterBuilder { 6491 return b.builder.addCond(&FilterConditionIn{ 6492 Policy_FieldPathArrayOfValues: NewPolicyFieldPathBuilder().NotificationChannels().WithArrayOfValues(values), 6493 }) 6494 } 6495 6496 func (b *filterCndBuilderNotificationChannels) NotIn(values [][]*notification_channel.Reference) *FilterBuilder { 6497 return b.builder.addCond(&FilterConditionNotIn{ 6498 Policy_FieldPathArrayOfValues: NewPolicyFieldPathBuilder().NotificationChannels().WithArrayOfValues(values), 6499 }) 6500 } 6501 6502 func (b *filterCndBuilderNotificationChannels) IsNull() *FilterBuilder { 6503 return b.builder.addCond(&FilterConditionIsNull{ 6504 FieldPath: NewPolicyFieldPathBuilder().NotificationChannels().FieldPath(), 6505 }) 6506 } 6507 6508 func (b *filterCndBuilderNotificationChannels) IsNan() *FilterBuilder { 6509 return b.builder.addCond(&FilterConditionIsNaN{ 6510 FieldPath: NewPolicyFieldPathBuilder().NotificationChannels().FieldPath(), 6511 }) 6512 } 6513 6514 func (b *filterCndBuilderNotificationChannels) Contains(value *notification_channel.Reference) *FilterBuilder { 6515 return b.builder.addCond(&FilterConditionContains{ 6516 Type: gotenresource.ConditionContainsTypeValue, 6517 FieldPath: NewPolicyFieldPathBuilder().NotificationChannels().FieldPath(), 6518 Value: NewPolicyFieldPathBuilder().NotificationChannels().WithItemValue(value), 6519 }) 6520 } 6521 6522 func (b *filterCndBuilderNotificationChannels) ContainsAnyOf(values []*notification_channel.Reference) *FilterBuilder { 6523 pathSelector := NewPolicyFieldPathBuilder().NotificationChannels() 6524 itemValues := make([]Policy_FieldPathArrayItemValue, 0, len(values)) 6525 for _, value := range values { 6526 itemValues = append(itemValues, pathSelector.WithItemValue(value)) 6527 } 6528 return b.builder.addCond(&FilterConditionContains{ 6529 Type: gotenresource.ConditionContainsTypeAny, 6530 FieldPath: NewPolicyFieldPathBuilder().NotificationChannels().FieldPath(), 6531 Values: itemValues, 6532 }) 6533 } 6534 6535 func (b *filterCndBuilderNotificationChannels) ContainsAll(values []*notification_channel.Reference) *FilterBuilder { 6536 pathSelector := NewPolicyFieldPathBuilder().NotificationChannels() 6537 itemValues := make([]Policy_FieldPathArrayItemValue, 0, len(values)) 6538 for _, value := range values { 6539 itemValues = append(itemValues, pathSelector.WithItemValue(value)) 6540 } 6541 return b.builder.addCond(&FilterConditionContains{ 6542 Type: gotenresource.ConditionContainsTypeAll, 6543 FieldPath: NewPolicyFieldPathBuilder().NotificationChannels().FieldPath(), 6544 Values: itemValues, 6545 }) 6546 } 6547 6548 func (b *filterCndBuilderNotificationChannels) compare(op gotenfilter.CompareOperator, value []*notification_channel.Reference) *FilterBuilder { 6549 return b.builder.addCond(&FilterConditionCompare{ 6550 Operator: op, 6551 Policy_FieldPathValue: NewPolicyFieldPathBuilder().NotificationChannels().WithValue(value), 6552 }) 6553 }