github.com/cloudwan/edgelq-sdk@v1.15.4/alerting/resources/v1/policy/policy.pb.fieldpathbuilder.go (about) 1 // Code generated by protoc-gen-goten-object 2 // File: edgelq/alerting/proto/v1/policy.proto 3 // DO NOT EDIT!!! 4 5 package policy 6 7 // proto imports 8 import ( 9 rcommon "github.com/cloudwan/edgelq-sdk/alerting/resources/v1/common" 10 document "github.com/cloudwan/edgelq-sdk/alerting/resources/v1/document" 11 notification_channel "github.com/cloudwan/edgelq-sdk/alerting/resources/v1/notification_channel" 12 policy_template "github.com/cloudwan/edgelq-sdk/alerting/resources/v1/policy_template" 13 api "github.com/cloudwan/edgelq-sdk/common/api" 14 iam_iam_common "github.com/cloudwan/edgelq-sdk/iam/resources/v1/common" 15 iam_organization "github.com/cloudwan/edgelq-sdk/iam/resources/v1/organization" 16 iam_project "github.com/cloudwan/edgelq-sdk/iam/resources/v1/project" 17 logging_bucket "github.com/cloudwan/edgelq-sdk/logging/resources/v1/bucket" 18 logging_common "github.com/cloudwan/edgelq-sdk/logging/resources/v1/common" 19 logging_log "github.com/cloudwan/edgelq-sdk/logging/resources/v1/log" 20 logging_log_descriptor "github.com/cloudwan/edgelq-sdk/logging/resources/v1/log_descriptor" 21 monitoring_common "github.com/cloudwan/edgelq-sdk/monitoring/resources/v4/common" 22 monitoring_metric_descriptor "github.com/cloudwan/edgelq-sdk/monitoring/resources/v4/metric_descriptor" 23 monitoring_monitored_resource_descriptor "github.com/cloudwan/edgelq-sdk/monitoring/resources/v4/monitored_resource_descriptor" 24 monitoring_project "github.com/cloudwan/edgelq-sdk/monitoring/resources/v4/project" 25 monitoring_time_serie "github.com/cloudwan/edgelq-sdk/monitoring/resources/v4/time_serie" 26 meta_common "github.com/cloudwan/goten-sdk/meta-service/resources/v1/common" 27 meta_resource "github.com/cloudwan/goten-sdk/meta-service/resources/v1/resource" 28 meta_service "github.com/cloudwan/goten-sdk/meta-service/resources/v1/service" 29 meta "github.com/cloudwan/goten-sdk/types/meta" 30 multi_region_policy "github.com/cloudwan/goten-sdk/types/multi_region_policy" 31 anypb "google.golang.org/protobuf/types/known/anypb" 32 durationpb "google.golang.org/protobuf/types/known/durationpb" 33 fieldmaskpb "google.golang.org/protobuf/types/known/fieldmaskpb" 34 structpb "google.golang.org/protobuf/types/known/structpb" 35 timestamppb "google.golang.org/protobuf/types/known/timestamppb" 36 ) 37 38 // make sure we're using proto imports 39 var ( 40 _ = &document.Document{} 41 _ = ¬ification_channel.NotificationChannel{} 42 _ = &policy_template.PolicyTemplate{} 43 _ = &rcommon.LogCndSpec{} 44 _ = api.LaunchStage(0) 45 _ = &iam_iam_common.PCR{} 46 _ = &iam_organization.Organization{} 47 _ = &iam_project.Project{} 48 _ = &logging_bucket.Bucket{} 49 _ = &logging_common.LabelDescriptor{} 50 _ = &logging_log.Log{} 51 _ = &logging_log_descriptor.LogDescriptor{} 52 _ = &monitoring_common.LabelDescriptor{} 53 _ = &monitoring_metric_descriptor.MetricDescriptor{} 54 _ = &monitoring_monitored_resource_descriptor.MonitoredResourceDescriptor{} 55 _ = &monitoring_project.Project{} 56 _ = &monitoring_time_serie.Point{} 57 _ = &anypb.Any{} 58 _ = &durationpb.Duration{} 59 _ = &fieldmaskpb.FieldMask{} 60 _ = &structpb.Struct{} 61 _ = ×tamppb.Timestamp{} 62 _ = &meta_common.LabelledDomain{} 63 _ = &meta_resource.Resource{} 64 _ = &meta_service.Service{} 65 _ = &meta.Meta{} 66 _ = &multi_region_policy.MultiRegionPolicy{} 67 ) 68 69 type PolicyFieldPathBuilder struct{} 70 71 func NewPolicyFieldPathBuilder() PolicyFieldPathBuilder { 72 return PolicyFieldPathBuilder{} 73 } 74 func (PolicyFieldPathBuilder) Name() PolicyPathSelectorName { 75 return PolicyPathSelectorName{} 76 } 77 func (PolicyFieldPathBuilder) Metadata() PolicyPathSelectorMetadata { 78 return PolicyPathSelectorMetadata{} 79 } 80 func (PolicyFieldPathBuilder) DisplayName() PolicyPathSelectorDisplayName { 81 return PolicyPathSelectorDisplayName{} 82 } 83 func (PolicyFieldPathBuilder) Description() PolicyPathSelectorDescription { 84 return PolicyPathSelectorDescription{} 85 } 86 func (PolicyFieldPathBuilder) SupportingDocs() PolicyPathSelectorSupportingDocs { 87 return PolicyPathSelectorSupportingDocs{} 88 } 89 func (PolicyFieldPathBuilder) Spec() PolicyPathSelectorSpec { 90 return PolicyPathSelectorSpec{} 91 } 92 func (PolicyFieldPathBuilder) TemplateSource() PolicyPathSelectorTemplateSource { 93 return PolicyPathSelectorTemplateSource{} 94 } 95 func (PolicyFieldPathBuilder) NotificationChannels() PolicyPathSelectorNotificationChannels { 96 return PolicyPathSelectorNotificationChannels{} 97 } 98 99 type PolicyPathSelectorName struct{} 100 101 func (PolicyPathSelectorName) FieldPath() *Policy_FieldTerminalPath { 102 return &Policy_FieldTerminalPath{selector: Policy_FieldPathSelectorName} 103 } 104 105 func (s PolicyPathSelectorName) WithValue(value *Name) *Policy_FieldTerminalPathValue { 106 return s.FieldPath().WithIValue(value).(*Policy_FieldTerminalPathValue) 107 } 108 109 func (s PolicyPathSelectorName) WithArrayOfValues(values []*Name) *Policy_FieldTerminalPathArrayOfValues { 110 return s.FieldPath().WithIArrayOfValues(values).(*Policy_FieldTerminalPathArrayOfValues) 111 } 112 113 type PolicyPathSelectorMetadata struct{} 114 115 func (PolicyPathSelectorMetadata) FieldPath() *Policy_FieldTerminalPath { 116 return &Policy_FieldTerminalPath{selector: Policy_FieldPathSelectorMetadata} 117 } 118 119 func (s PolicyPathSelectorMetadata) WithValue(value *meta.Meta) *Policy_FieldTerminalPathValue { 120 return s.FieldPath().WithIValue(value).(*Policy_FieldTerminalPathValue) 121 } 122 123 func (s PolicyPathSelectorMetadata) WithArrayOfValues(values []*meta.Meta) *Policy_FieldTerminalPathArrayOfValues { 124 return s.FieldPath().WithIArrayOfValues(values).(*Policy_FieldTerminalPathArrayOfValues) 125 } 126 127 func (PolicyPathSelectorMetadata) WithSubPath(subPath meta.Meta_FieldPath) *Policy_FieldSubPath { 128 return &Policy_FieldSubPath{selector: Policy_FieldPathSelectorMetadata, subPath: subPath} 129 } 130 131 func (s PolicyPathSelectorMetadata) WithSubValue(subPathValue meta.Meta_FieldPathValue) *Policy_FieldSubPathValue { 132 return &Policy_FieldSubPathValue{Policy_FieldPath: s.WithSubPath(subPathValue), subPathValue: subPathValue} 133 } 134 135 func (s PolicyPathSelectorMetadata) WithSubArrayOfValues(subPathArrayOfValues meta.Meta_FieldPathArrayOfValues) *Policy_FieldSubPathArrayOfValues { 136 return &Policy_FieldSubPathArrayOfValues{Policy_FieldPath: s.WithSubPath(subPathArrayOfValues), subPathArrayOfValues: subPathArrayOfValues} 137 } 138 139 func (s PolicyPathSelectorMetadata) WithSubArrayItemValue(subPathArrayItemValue meta.Meta_FieldPathArrayItemValue) *Policy_FieldSubPathArrayItemValue { 140 return &Policy_FieldSubPathArrayItemValue{Policy_FieldPath: s.WithSubPath(subPathArrayItemValue), subPathItemValue: subPathArrayItemValue} 141 } 142 143 func (PolicyPathSelectorMetadata) CreateTime() PolicyPathSelectorMetadataCreateTime { 144 return PolicyPathSelectorMetadataCreateTime{} 145 } 146 147 func (PolicyPathSelectorMetadata) UpdateTime() PolicyPathSelectorMetadataUpdateTime { 148 return PolicyPathSelectorMetadataUpdateTime{} 149 } 150 151 func (PolicyPathSelectorMetadata) DeleteTime() PolicyPathSelectorMetadataDeleteTime { 152 return PolicyPathSelectorMetadataDeleteTime{} 153 } 154 155 func (PolicyPathSelectorMetadata) Uuid() PolicyPathSelectorMetadataUuid { 156 return PolicyPathSelectorMetadataUuid{} 157 } 158 159 func (PolicyPathSelectorMetadata) Tags() PolicyPathSelectorMetadataTags { 160 return PolicyPathSelectorMetadataTags{} 161 } 162 163 func (PolicyPathSelectorMetadata) Labels() PolicyPathSelectorMetadataLabels { 164 return PolicyPathSelectorMetadataLabels{} 165 } 166 167 func (PolicyPathSelectorMetadata) Annotations() PolicyPathSelectorMetadataAnnotations { 168 return PolicyPathSelectorMetadataAnnotations{} 169 } 170 171 func (PolicyPathSelectorMetadata) Generation() PolicyPathSelectorMetadataGeneration { 172 return PolicyPathSelectorMetadataGeneration{} 173 } 174 175 func (PolicyPathSelectorMetadata) ResourceVersion() PolicyPathSelectorMetadataResourceVersion { 176 return PolicyPathSelectorMetadataResourceVersion{} 177 } 178 179 func (PolicyPathSelectorMetadata) OwnerReferences() PolicyPathSelectorMetadataOwnerReferences { 180 return PolicyPathSelectorMetadataOwnerReferences{} 181 } 182 183 func (PolicyPathSelectorMetadata) Shards() PolicyPathSelectorMetadataShards { 184 return PolicyPathSelectorMetadataShards{} 185 } 186 187 func (PolicyPathSelectorMetadata) Syncing() PolicyPathSelectorMetadataSyncing { 188 return PolicyPathSelectorMetadataSyncing{} 189 } 190 191 func (PolicyPathSelectorMetadata) Lifecycle() PolicyPathSelectorMetadataLifecycle { 192 return PolicyPathSelectorMetadataLifecycle{} 193 } 194 195 func (PolicyPathSelectorMetadata) Services() PolicyPathSelectorMetadataServices { 196 return PolicyPathSelectorMetadataServices{} 197 } 198 199 type PolicyPathSelectorMetadataCreateTime struct{} 200 201 func (PolicyPathSelectorMetadataCreateTime) FieldPath() *Policy_FieldSubPath { 202 return &Policy_FieldSubPath{ 203 selector: Policy_FieldPathSelectorMetadata, 204 subPath: meta.NewMetaFieldPathBuilder().CreateTime().FieldPath(), 205 } 206 } 207 208 func (s PolicyPathSelectorMetadataCreateTime) WithValue(value *timestamppb.Timestamp) *Policy_FieldSubPathValue { 209 return s.FieldPath().WithIValue(value).(*Policy_FieldSubPathValue) 210 } 211 212 func (s PolicyPathSelectorMetadataCreateTime) WithArrayOfValues(values []*timestamppb.Timestamp) *Policy_FieldSubPathArrayOfValues { 213 return s.FieldPath().WithIArrayOfValues(values).(*Policy_FieldSubPathArrayOfValues) 214 } 215 216 type PolicyPathSelectorMetadataUpdateTime struct{} 217 218 func (PolicyPathSelectorMetadataUpdateTime) FieldPath() *Policy_FieldSubPath { 219 return &Policy_FieldSubPath{ 220 selector: Policy_FieldPathSelectorMetadata, 221 subPath: meta.NewMetaFieldPathBuilder().UpdateTime().FieldPath(), 222 } 223 } 224 225 func (s PolicyPathSelectorMetadataUpdateTime) WithValue(value *timestamppb.Timestamp) *Policy_FieldSubPathValue { 226 return s.FieldPath().WithIValue(value).(*Policy_FieldSubPathValue) 227 } 228 229 func (s PolicyPathSelectorMetadataUpdateTime) WithArrayOfValues(values []*timestamppb.Timestamp) *Policy_FieldSubPathArrayOfValues { 230 return s.FieldPath().WithIArrayOfValues(values).(*Policy_FieldSubPathArrayOfValues) 231 } 232 233 type PolicyPathSelectorMetadataDeleteTime struct{} 234 235 func (PolicyPathSelectorMetadataDeleteTime) FieldPath() *Policy_FieldSubPath { 236 return &Policy_FieldSubPath{ 237 selector: Policy_FieldPathSelectorMetadata, 238 subPath: meta.NewMetaFieldPathBuilder().DeleteTime().FieldPath(), 239 } 240 } 241 242 func (s PolicyPathSelectorMetadataDeleteTime) WithValue(value *timestamppb.Timestamp) *Policy_FieldSubPathValue { 243 return s.FieldPath().WithIValue(value).(*Policy_FieldSubPathValue) 244 } 245 246 func (s PolicyPathSelectorMetadataDeleteTime) WithArrayOfValues(values []*timestamppb.Timestamp) *Policy_FieldSubPathArrayOfValues { 247 return s.FieldPath().WithIArrayOfValues(values).(*Policy_FieldSubPathArrayOfValues) 248 } 249 250 type PolicyPathSelectorMetadataUuid struct{} 251 252 func (PolicyPathSelectorMetadataUuid) FieldPath() *Policy_FieldSubPath { 253 return &Policy_FieldSubPath{ 254 selector: Policy_FieldPathSelectorMetadata, 255 subPath: meta.NewMetaFieldPathBuilder().Uuid().FieldPath(), 256 } 257 } 258 259 func (s PolicyPathSelectorMetadataUuid) WithValue(value string) *Policy_FieldSubPathValue { 260 return s.FieldPath().WithIValue(value).(*Policy_FieldSubPathValue) 261 } 262 263 func (s PolicyPathSelectorMetadataUuid) WithArrayOfValues(values []string) *Policy_FieldSubPathArrayOfValues { 264 return s.FieldPath().WithIArrayOfValues(values).(*Policy_FieldSubPathArrayOfValues) 265 } 266 267 type PolicyPathSelectorMetadataTags struct{} 268 269 func (PolicyPathSelectorMetadataTags) FieldPath() *Policy_FieldSubPath { 270 return &Policy_FieldSubPath{ 271 selector: Policy_FieldPathSelectorMetadata, 272 subPath: meta.NewMetaFieldPathBuilder().Tags().FieldPath(), 273 } 274 } 275 276 func (s PolicyPathSelectorMetadataTags) WithValue(value []string) *Policy_FieldSubPathValue { 277 return s.FieldPath().WithIValue(value).(*Policy_FieldSubPathValue) 278 } 279 280 func (s PolicyPathSelectorMetadataTags) WithArrayOfValues(values [][]string) *Policy_FieldSubPathArrayOfValues { 281 return s.FieldPath().WithIArrayOfValues(values).(*Policy_FieldSubPathArrayOfValues) 282 } 283 284 func (s PolicyPathSelectorMetadataTags) WithItemValue(value string) *Policy_FieldSubPathArrayItemValue { 285 return s.FieldPath().WithIArrayItemValue(value).(*Policy_FieldSubPathArrayItemValue) 286 } 287 288 type PolicyPathSelectorMetadataLabels struct{} 289 290 func (PolicyPathSelectorMetadataLabels) FieldPath() *Policy_FieldSubPath { 291 return &Policy_FieldSubPath{ 292 selector: Policy_FieldPathSelectorMetadata, 293 subPath: meta.NewMetaFieldPathBuilder().Labels().FieldPath(), 294 } 295 } 296 297 func (s PolicyPathSelectorMetadataLabels) WithValue(value map[string]string) *Policy_FieldSubPathValue { 298 return s.FieldPath().WithIValue(value).(*Policy_FieldSubPathValue) 299 } 300 301 func (s PolicyPathSelectorMetadataLabels) WithArrayOfValues(values []map[string]string) *Policy_FieldSubPathArrayOfValues { 302 return s.FieldPath().WithIArrayOfValues(values).(*Policy_FieldSubPathArrayOfValues) 303 } 304 305 func (PolicyPathSelectorMetadataLabels) WithKey(key string) PolicyMapPathSelectorMetadataLabels { 306 return PolicyMapPathSelectorMetadataLabels{key: key} 307 } 308 309 type PolicyMapPathSelectorMetadataLabels struct { 310 key string 311 } 312 313 func (s PolicyMapPathSelectorMetadataLabels) FieldPath() *Policy_FieldSubPath { 314 return &Policy_FieldSubPath{ 315 selector: Policy_FieldPathSelectorMetadata, 316 subPath: meta.NewMetaFieldPathBuilder().Labels().WithKey(s.key).FieldPath(), 317 } 318 } 319 320 func (s PolicyMapPathSelectorMetadataLabels) WithValue(value string) *Policy_FieldSubPathValue { 321 return s.FieldPath().WithIValue(value).(*Policy_FieldSubPathValue) 322 } 323 324 func (s PolicyMapPathSelectorMetadataLabels) WithArrayOfValues(values []string) *Policy_FieldSubPathArrayOfValues { 325 return s.FieldPath().WithIArrayOfValues(values).(*Policy_FieldSubPathArrayOfValues) 326 } 327 328 type PolicyPathSelectorMetadataAnnotations struct{} 329 330 func (PolicyPathSelectorMetadataAnnotations) FieldPath() *Policy_FieldSubPath { 331 return &Policy_FieldSubPath{ 332 selector: Policy_FieldPathSelectorMetadata, 333 subPath: meta.NewMetaFieldPathBuilder().Annotations().FieldPath(), 334 } 335 } 336 337 func (s PolicyPathSelectorMetadataAnnotations) WithValue(value map[string]string) *Policy_FieldSubPathValue { 338 return s.FieldPath().WithIValue(value).(*Policy_FieldSubPathValue) 339 } 340 341 func (s PolicyPathSelectorMetadataAnnotations) WithArrayOfValues(values []map[string]string) *Policy_FieldSubPathArrayOfValues { 342 return s.FieldPath().WithIArrayOfValues(values).(*Policy_FieldSubPathArrayOfValues) 343 } 344 345 func (PolicyPathSelectorMetadataAnnotations) WithKey(key string) PolicyMapPathSelectorMetadataAnnotations { 346 return PolicyMapPathSelectorMetadataAnnotations{key: key} 347 } 348 349 type PolicyMapPathSelectorMetadataAnnotations struct { 350 key string 351 } 352 353 func (s PolicyMapPathSelectorMetadataAnnotations) FieldPath() *Policy_FieldSubPath { 354 return &Policy_FieldSubPath{ 355 selector: Policy_FieldPathSelectorMetadata, 356 subPath: meta.NewMetaFieldPathBuilder().Annotations().WithKey(s.key).FieldPath(), 357 } 358 } 359 360 func (s PolicyMapPathSelectorMetadataAnnotations) WithValue(value string) *Policy_FieldSubPathValue { 361 return s.FieldPath().WithIValue(value).(*Policy_FieldSubPathValue) 362 } 363 364 func (s PolicyMapPathSelectorMetadataAnnotations) WithArrayOfValues(values []string) *Policy_FieldSubPathArrayOfValues { 365 return s.FieldPath().WithIArrayOfValues(values).(*Policy_FieldSubPathArrayOfValues) 366 } 367 368 type PolicyPathSelectorMetadataGeneration struct{} 369 370 func (PolicyPathSelectorMetadataGeneration) FieldPath() *Policy_FieldSubPath { 371 return &Policy_FieldSubPath{ 372 selector: Policy_FieldPathSelectorMetadata, 373 subPath: meta.NewMetaFieldPathBuilder().Generation().FieldPath(), 374 } 375 } 376 377 func (s PolicyPathSelectorMetadataGeneration) WithValue(value int64) *Policy_FieldSubPathValue { 378 return s.FieldPath().WithIValue(value).(*Policy_FieldSubPathValue) 379 } 380 381 func (s PolicyPathSelectorMetadataGeneration) WithArrayOfValues(values []int64) *Policy_FieldSubPathArrayOfValues { 382 return s.FieldPath().WithIArrayOfValues(values).(*Policy_FieldSubPathArrayOfValues) 383 } 384 385 type PolicyPathSelectorMetadataResourceVersion struct{} 386 387 func (PolicyPathSelectorMetadataResourceVersion) FieldPath() *Policy_FieldSubPath { 388 return &Policy_FieldSubPath{ 389 selector: Policy_FieldPathSelectorMetadata, 390 subPath: meta.NewMetaFieldPathBuilder().ResourceVersion().FieldPath(), 391 } 392 } 393 394 func (s PolicyPathSelectorMetadataResourceVersion) WithValue(value string) *Policy_FieldSubPathValue { 395 return s.FieldPath().WithIValue(value).(*Policy_FieldSubPathValue) 396 } 397 398 func (s PolicyPathSelectorMetadataResourceVersion) WithArrayOfValues(values []string) *Policy_FieldSubPathArrayOfValues { 399 return s.FieldPath().WithIArrayOfValues(values).(*Policy_FieldSubPathArrayOfValues) 400 } 401 402 type PolicyPathSelectorMetadataOwnerReferences struct{} 403 404 func (PolicyPathSelectorMetadataOwnerReferences) FieldPath() *Policy_FieldSubPath { 405 return &Policy_FieldSubPath{ 406 selector: Policy_FieldPathSelectorMetadata, 407 subPath: meta.NewMetaFieldPathBuilder().OwnerReferences().FieldPath(), 408 } 409 } 410 411 func (s PolicyPathSelectorMetadataOwnerReferences) WithValue(value []*meta.OwnerReference) *Policy_FieldSubPathValue { 412 return s.FieldPath().WithIValue(value).(*Policy_FieldSubPathValue) 413 } 414 415 func (s PolicyPathSelectorMetadataOwnerReferences) WithArrayOfValues(values [][]*meta.OwnerReference) *Policy_FieldSubPathArrayOfValues { 416 return s.FieldPath().WithIArrayOfValues(values).(*Policy_FieldSubPathArrayOfValues) 417 } 418 419 func (s PolicyPathSelectorMetadataOwnerReferences) WithItemValue(value *meta.OwnerReference) *Policy_FieldSubPathArrayItemValue { 420 return s.FieldPath().WithIArrayItemValue(value).(*Policy_FieldSubPathArrayItemValue) 421 } 422 423 func (PolicyPathSelectorMetadataOwnerReferences) Kind() PolicyPathSelectorMetadataOwnerReferencesKind { 424 return PolicyPathSelectorMetadataOwnerReferencesKind{} 425 } 426 427 func (PolicyPathSelectorMetadataOwnerReferences) Version() PolicyPathSelectorMetadataOwnerReferencesVersion { 428 return PolicyPathSelectorMetadataOwnerReferencesVersion{} 429 } 430 431 func (PolicyPathSelectorMetadataOwnerReferences) Name() PolicyPathSelectorMetadataOwnerReferencesName { 432 return PolicyPathSelectorMetadataOwnerReferencesName{} 433 } 434 435 func (PolicyPathSelectorMetadataOwnerReferences) Region() PolicyPathSelectorMetadataOwnerReferencesRegion { 436 return PolicyPathSelectorMetadataOwnerReferencesRegion{} 437 } 438 439 func (PolicyPathSelectorMetadataOwnerReferences) Controller() PolicyPathSelectorMetadataOwnerReferencesController { 440 return PolicyPathSelectorMetadataOwnerReferencesController{} 441 } 442 443 func (PolicyPathSelectorMetadataOwnerReferences) RequiresOwnerReference() PolicyPathSelectorMetadataOwnerReferencesRequiresOwnerReference { 444 return PolicyPathSelectorMetadataOwnerReferencesRequiresOwnerReference{} 445 } 446 447 func (PolicyPathSelectorMetadataOwnerReferences) UnsetOnDelete() PolicyPathSelectorMetadataOwnerReferencesUnsetOnDelete { 448 return PolicyPathSelectorMetadataOwnerReferencesUnsetOnDelete{} 449 } 450 451 type PolicyPathSelectorMetadataOwnerReferencesKind struct{} 452 453 func (PolicyPathSelectorMetadataOwnerReferencesKind) FieldPath() *Policy_FieldSubPath { 454 return &Policy_FieldSubPath{ 455 selector: Policy_FieldPathSelectorMetadata, 456 subPath: meta.NewMetaFieldPathBuilder().OwnerReferences().Kind().FieldPath(), 457 } 458 } 459 460 func (s PolicyPathSelectorMetadataOwnerReferencesKind) WithValue(value string) *Policy_FieldSubPathValue { 461 return s.FieldPath().WithIValue(value).(*Policy_FieldSubPathValue) 462 } 463 464 func (s PolicyPathSelectorMetadataOwnerReferencesKind) WithArrayOfValues(values []string) *Policy_FieldSubPathArrayOfValues { 465 return s.FieldPath().WithIArrayOfValues(values).(*Policy_FieldSubPathArrayOfValues) 466 } 467 468 type PolicyPathSelectorMetadataOwnerReferencesVersion struct{} 469 470 func (PolicyPathSelectorMetadataOwnerReferencesVersion) FieldPath() *Policy_FieldSubPath { 471 return &Policy_FieldSubPath{ 472 selector: Policy_FieldPathSelectorMetadata, 473 subPath: meta.NewMetaFieldPathBuilder().OwnerReferences().Version().FieldPath(), 474 } 475 } 476 477 func (s PolicyPathSelectorMetadataOwnerReferencesVersion) WithValue(value string) *Policy_FieldSubPathValue { 478 return s.FieldPath().WithIValue(value).(*Policy_FieldSubPathValue) 479 } 480 481 func (s PolicyPathSelectorMetadataOwnerReferencesVersion) WithArrayOfValues(values []string) *Policy_FieldSubPathArrayOfValues { 482 return s.FieldPath().WithIArrayOfValues(values).(*Policy_FieldSubPathArrayOfValues) 483 } 484 485 type PolicyPathSelectorMetadataOwnerReferencesName struct{} 486 487 func (PolicyPathSelectorMetadataOwnerReferencesName) FieldPath() *Policy_FieldSubPath { 488 return &Policy_FieldSubPath{ 489 selector: Policy_FieldPathSelectorMetadata, 490 subPath: meta.NewMetaFieldPathBuilder().OwnerReferences().Name().FieldPath(), 491 } 492 } 493 494 func (s PolicyPathSelectorMetadataOwnerReferencesName) WithValue(value string) *Policy_FieldSubPathValue { 495 return s.FieldPath().WithIValue(value).(*Policy_FieldSubPathValue) 496 } 497 498 func (s PolicyPathSelectorMetadataOwnerReferencesName) WithArrayOfValues(values []string) *Policy_FieldSubPathArrayOfValues { 499 return s.FieldPath().WithIArrayOfValues(values).(*Policy_FieldSubPathArrayOfValues) 500 } 501 502 type PolicyPathSelectorMetadataOwnerReferencesRegion struct{} 503 504 func (PolicyPathSelectorMetadataOwnerReferencesRegion) FieldPath() *Policy_FieldSubPath { 505 return &Policy_FieldSubPath{ 506 selector: Policy_FieldPathSelectorMetadata, 507 subPath: meta.NewMetaFieldPathBuilder().OwnerReferences().Region().FieldPath(), 508 } 509 } 510 511 func (s PolicyPathSelectorMetadataOwnerReferencesRegion) WithValue(value string) *Policy_FieldSubPathValue { 512 return s.FieldPath().WithIValue(value).(*Policy_FieldSubPathValue) 513 } 514 515 func (s PolicyPathSelectorMetadataOwnerReferencesRegion) WithArrayOfValues(values []string) *Policy_FieldSubPathArrayOfValues { 516 return s.FieldPath().WithIArrayOfValues(values).(*Policy_FieldSubPathArrayOfValues) 517 } 518 519 type PolicyPathSelectorMetadataOwnerReferencesController struct{} 520 521 func (PolicyPathSelectorMetadataOwnerReferencesController) FieldPath() *Policy_FieldSubPath { 522 return &Policy_FieldSubPath{ 523 selector: Policy_FieldPathSelectorMetadata, 524 subPath: meta.NewMetaFieldPathBuilder().OwnerReferences().Controller().FieldPath(), 525 } 526 } 527 528 func (s PolicyPathSelectorMetadataOwnerReferencesController) WithValue(value bool) *Policy_FieldSubPathValue { 529 return s.FieldPath().WithIValue(value).(*Policy_FieldSubPathValue) 530 } 531 532 func (s PolicyPathSelectorMetadataOwnerReferencesController) WithArrayOfValues(values []bool) *Policy_FieldSubPathArrayOfValues { 533 return s.FieldPath().WithIArrayOfValues(values).(*Policy_FieldSubPathArrayOfValues) 534 } 535 536 type PolicyPathSelectorMetadataOwnerReferencesRequiresOwnerReference struct{} 537 538 func (PolicyPathSelectorMetadataOwnerReferencesRequiresOwnerReference) FieldPath() *Policy_FieldSubPath { 539 return &Policy_FieldSubPath{ 540 selector: Policy_FieldPathSelectorMetadata, 541 subPath: meta.NewMetaFieldPathBuilder().OwnerReferences().RequiresOwnerReference().FieldPath(), 542 } 543 } 544 545 func (s PolicyPathSelectorMetadataOwnerReferencesRequiresOwnerReference) WithValue(value bool) *Policy_FieldSubPathValue { 546 return s.FieldPath().WithIValue(value).(*Policy_FieldSubPathValue) 547 } 548 549 func (s PolicyPathSelectorMetadataOwnerReferencesRequiresOwnerReference) WithArrayOfValues(values []bool) *Policy_FieldSubPathArrayOfValues { 550 return s.FieldPath().WithIArrayOfValues(values).(*Policy_FieldSubPathArrayOfValues) 551 } 552 553 type PolicyPathSelectorMetadataOwnerReferencesUnsetOnDelete struct{} 554 555 func (PolicyPathSelectorMetadataOwnerReferencesUnsetOnDelete) FieldPath() *Policy_FieldSubPath { 556 return &Policy_FieldSubPath{ 557 selector: Policy_FieldPathSelectorMetadata, 558 subPath: meta.NewMetaFieldPathBuilder().OwnerReferences().UnsetOnDelete().FieldPath(), 559 } 560 } 561 562 func (s PolicyPathSelectorMetadataOwnerReferencesUnsetOnDelete) WithValue(value bool) *Policy_FieldSubPathValue { 563 return s.FieldPath().WithIValue(value).(*Policy_FieldSubPathValue) 564 } 565 566 func (s PolicyPathSelectorMetadataOwnerReferencesUnsetOnDelete) WithArrayOfValues(values []bool) *Policy_FieldSubPathArrayOfValues { 567 return s.FieldPath().WithIArrayOfValues(values).(*Policy_FieldSubPathArrayOfValues) 568 } 569 570 type PolicyPathSelectorMetadataShards struct{} 571 572 func (PolicyPathSelectorMetadataShards) FieldPath() *Policy_FieldSubPath { 573 return &Policy_FieldSubPath{ 574 selector: Policy_FieldPathSelectorMetadata, 575 subPath: meta.NewMetaFieldPathBuilder().Shards().FieldPath(), 576 } 577 } 578 579 func (s PolicyPathSelectorMetadataShards) WithValue(value map[string]int64) *Policy_FieldSubPathValue { 580 return s.FieldPath().WithIValue(value).(*Policy_FieldSubPathValue) 581 } 582 583 func (s PolicyPathSelectorMetadataShards) WithArrayOfValues(values []map[string]int64) *Policy_FieldSubPathArrayOfValues { 584 return s.FieldPath().WithIArrayOfValues(values).(*Policy_FieldSubPathArrayOfValues) 585 } 586 587 func (PolicyPathSelectorMetadataShards) WithKey(key string) PolicyMapPathSelectorMetadataShards { 588 return PolicyMapPathSelectorMetadataShards{key: key} 589 } 590 591 type PolicyMapPathSelectorMetadataShards struct { 592 key string 593 } 594 595 func (s PolicyMapPathSelectorMetadataShards) FieldPath() *Policy_FieldSubPath { 596 return &Policy_FieldSubPath{ 597 selector: Policy_FieldPathSelectorMetadata, 598 subPath: meta.NewMetaFieldPathBuilder().Shards().WithKey(s.key).FieldPath(), 599 } 600 } 601 602 func (s PolicyMapPathSelectorMetadataShards) WithValue(value int64) *Policy_FieldSubPathValue { 603 return s.FieldPath().WithIValue(value).(*Policy_FieldSubPathValue) 604 } 605 606 func (s PolicyMapPathSelectorMetadataShards) WithArrayOfValues(values []int64) *Policy_FieldSubPathArrayOfValues { 607 return s.FieldPath().WithIArrayOfValues(values).(*Policy_FieldSubPathArrayOfValues) 608 } 609 610 type PolicyPathSelectorMetadataSyncing struct{} 611 612 func (PolicyPathSelectorMetadataSyncing) FieldPath() *Policy_FieldSubPath { 613 return &Policy_FieldSubPath{ 614 selector: Policy_FieldPathSelectorMetadata, 615 subPath: meta.NewMetaFieldPathBuilder().Syncing().FieldPath(), 616 } 617 } 618 619 func (s PolicyPathSelectorMetadataSyncing) WithValue(value *meta.SyncingMeta) *Policy_FieldSubPathValue { 620 return s.FieldPath().WithIValue(value).(*Policy_FieldSubPathValue) 621 } 622 623 func (s PolicyPathSelectorMetadataSyncing) WithArrayOfValues(values []*meta.SyncingMeta) *Policy_FieldSubPathArrayOfValues { 624 return s.FieldPath().WithIArrayOfValues(values).(*Policy_FieldSubPathArrayOfValues) 625 } 626 627 func (PolicyPathSelectorMetadataSyncing) OwningRegion() PolicyPathSelectorMetadataSyncingOwningRegion { 628 return PolicyPathSelectorMetadataSyncingOwningRegion{} 629 } 630 631 func (PolicyPathSelectorMetadataSyncing) Regions() PolicyPathSelectorMetadataSyncingRegions { 632 return PolicyPathSelectorMetadataSyncingRegions{} 633 } 634 635 type PolicyPathSelectorMetadataSyncingOwningRegion struct{} 636 637 func (PolicyPathSelectorMetadataSyncingOwningRegion) FieldPath() *Policy_FieldSubPath { 638 return &Policy_FieldSubPath{ 639 selector: Policy_FieldPathSelectorMetadata, 640 subPath: meta.NewMetaFieldPathBuilder().Syncing().OwningRegion().FieldPath(), 641 } 642 } 643 644 func (s PolicyPathSelectorMetadataSyncingOwningRegion) WithValue(value string) *Policy_FieldSubPathValue { 645 return s.FieldPath().WithIValue(value).(*Policy_FieldSubPathValue) 646 } 647 648 func (s PolicyPathSelectorMetadataSyncingOwningRegion) WithArrayOfValues(values []string) *Policy_FieldSubPathArrayOfValues { 649 return s.FieldPath().WithIArrayOfValues(values).(*Policy_FieldSubPathArrayOfValues) 650 } 651 652 type PolicyPathSelectorMetadataSyncingRegions struct{} 653 654 func (PolicyPathSelectorMetadataSyncingRegions) FieldPath() *Policy_FieldSubPath { 655 return &Policy_FieldSubPath{ 656 selector: Policy_FieldPathSelectorMetadata, 657 subPath: meta.NewMetaFieldPathBuilder().Syncing().Regions().FieldPath(), 658 } 659 } 660 661 func (s PolicyPathSelectorMetadataSyncingRegions) WithValue(value []string) *Policy_FieldSubPathValue { 662 return s.FieldPath().WithIValue(value).(*Policy_FieldSubPathValue) 663 } 664 665 func (s PolicyPathSelectorMetadataSyncingRegions) WithArrayOfValues(values [][]string) *Policy_FieldSubPathArrayOfValues { 666 return s.FieldPath().WithIArrayOfValues(values).(*Policy_FieldSubPathArrayOfValues) 667 } 668 669 func (s PolicyPathSelectorMetadataSyncingRegions) WithItemValue(value string) *Policy_FieldSubPathArrayItemValue { 670 return s.FieldPath().WithIArrayItemValue(value).(*Policy_FieldSubPathArrayItemValue) 671 } 672 673 type PolicyPathSelectorMetadataLifecycle struct{} 674 675 func (PolicyPathSelectorMetadataLifecycle) FieldPath() *Policy_FieldSubPath { 676 return &Policy_FieldSubPath{ 677 selector: Policy_FieldPathSelectorMetadata, 678 subPath: meta.NewMetaFieldPathBuilder().Lifecycle().FieldPath(), 679 } 680 } 681 682 func (s PolicyPathSelectorMetadataLifecycle) WithValue(value *meta.Lifecycle) *Policy_FieldSubPathValue { 683 return s.FieldPath().WithIValue(value).(*Policy_FieldSubPathValue) 684 } 685 686 func (s PolicyPathSelectorMetadataLifecycle) WithArrayOfValues(values []*meta.Lifecycle) *Policy_FieldSubPathArrayOfValues { 687 return s.FieldPath().WithIArrayOfValues(values).(*Policy_FieldSubPathArrayOfValues) 688 } 689 690 func (PolicyPathSelectorMetadataLifecycle) State() PolicyPathSelectorMetadataLifecycleState { 691 return PolicyPathSelectorMetadataLifecycleState{} 692 } 693 694 func (PolicyPathSelectorMetadataLifecycle) BlockDeletion() PolicyPathSelectorMetadataLifecycleBlockDeletion { 695 return PolicyPathSelectorMetadataLifecycleBlockDeletion{} 696 } 697 698 type PolicyPathSelectorMetadataLifecycleState struct{} 699 700 func (PolicyPathSelectorMetadataLifecycleState) FieldPath() *Policy_FieldSubPath { 701 return &Policy_FieldSubPath{ 702 selector: Policy_FieldPathSelectorMetadata, 703 subPath: meta.NewMetaFieldPathBuilder().Lifecycle().State().FieldPath(), 704 } 705 } 706 707 func (s PolicyPathSelectorMetadataLifecycleState) WithValue(value meta.Lifecycle_State) *Policy_FieldSubPathValue { 708 return s.FieldPath().WithIValue(value).(*Policy_FieldSubPathValue) 709 } 710 711 func (s PolicyPathSelectorMetadataLifecycleState) WithArrayOfValues(values []meta.Lifecycle_State) *Policy_FieldSubPathArrayOfValues { 712 return s.FieldPath().WithIArrayOfValues(values).(*Policy_FieldSubPathArrayOfValues) 713 } 714 715 type PolicyPathSelectorMetadataLifecycleBlockDeletion struct{} 716 717 func (PolicyPathSelectorMetadataLifecycleBlockDeletion) FieldPath() *Policy_FieldSubPath { 718 return &Policy_FieldSubPath{ 719 selector: Policy_FieldPathSelectorMetadata, 720 subPath: meta.NewMetaFieldPathBuilder().Lifecycle().BlockDeletion().FieldPath(), 721 } 722 } 723 724 func (s PolicyPathSelectorMetadataLifecycleBlockDeletion) WithValue(value bool) *Policy_FieldSubPathValue { 725 return s.FieldPath().WithIValue(value).(*Policy_FieldSubPathValue) 726 } 727 728 func (s PolicyPathSelectorMetadataLifecycleBlockDeletion) WithArrayOfValues(values []bool) *Policy_FieldSubPathArrayOfValues { 729 return s.FieldPath().WithIArrayOfValues(values).(*Policy_FieldSubPathArrayOfValues) 730 } 731 732 type PolicyPathSelectorMetadataServices struct{} 733 734 func (PolicyPathSelectorMetadataServices) FieldPath() *Policy_FieldSubPath { 735 return &Policy_FieldSubPath{ 736 selector: Policy_FieldPathSelectorMetadata, 737 subPath: meta.NewMetaFieldPathBuilder().Services().FieldPath(), 738 } 739 } 740 741 func (s PolicyPathSelectorMetadataServices) WithValue(value *meta.ServicesInfo) *Policy_FieldSubPathValue { 742 return s.FieldPath().WithIValue(value).(*Policy_FieldSubPathValue) 743 } 744 745 func (s PolicyPathSelectorMetadataServices) WithArrayOfValues(values []*meta.ServicesInfo) *Policy_FieldSubPathArrayOfValues { 746 return s.FieldPath().WithIArrayOfValues(values).(*Policy_FieldSubPathArrayOfValues) 747 } 748 749 func (PolicyPathSelectorMetadataServices) OwningService() PolicyPathSelectorMetadataServicesOwningService { 750 return PolicyPathSelectorMetadataServicesOwningService{} 751 } 752 753 func (PolicyPathSelectorMetadataServices) AllowedServices() PolicyPathSelectorMetadataServicesAllowedServices { 754 return PolicyPathSelectorMetadataServicesAllowedServices{} 755 } 756 757 type PolicyPathSelectorMetadataServicesOwningService struct{} 758 759 func (PolicyPathSelectorMetadataServicesOwningService) FieldPath() *Policy_FieldSubPath { 760 return &Policy_FieldSubPath{ 761 selector: Policy_FieldPathSelectorMetadata, 762 subPath: meta.NewMetaFieldPathBuilder().Services().OwningService().FieldPath(), 763 } 764 } 765 766 func (s PolicyPathSelectorMetadataServicesOwningService) WithValue(value string) *Policy_FieldSubPathValue { 767 return s.FieldPath().WithIValue(value).(*Policy_FieldSubPathValue) 768 } 769 770 func (s PolicyPathSelectorMetadataServicesOwningService) WithArrayOfValues(values []string) *Policy_FieldSubPathArrayOfValues { 771 return s.FieldPath().WithIArrayOfValues(values).(*Policy_FieldSubPathArrayOfValues) 772 } 773 774 type PolicyPathSelectorMetadataServicesAllowedServices struct{} 775 776 func (PolicyPathSelectorMetadataServicesAllowedServices) FieldPath() *Policy_FieldSubPath { 777 return &Policy_FieldSubPath{ 778 selector: Policy_FieldPathSelectorMetadata, 779 subPath: meta.NewMetaFieldPathBuilder().Services().AllowedServices().FieldPath(), 780 } 781 } 782 783 func (s PolicyPathSelectorMetadataServicesAllowedServices) WithValue(value []string) *Policy_FieldSubPathValue { 784 return s.FieldPath().WithIValue(value).(*Policy_FieldSubPathValue) 785 } 786 787 func (s PolicyPathSelectorMetadataServicesAllowedServices) WithArrayOfValues(values [][]string) *Policy_FieldSubPathArrayOfValues { 788 return s.FieldPath().WithIArrayOfValues(values).(*Policy_FieldSubPathArrayOfValues) 789 } 790 791 func (s PolicyPathSelectorMetadataServicesAllowedServices) WithItemValue(value string) *Policy_FieldSubPathArrayItemValue { 792 return s.FieldPath().WithIArrayItemValue(value).(*Policy_FieldSubPathArrayItemValue) 793 } 794 795 type PolicyPathSelectorDisplayName struct{} 796 797 func (PolicyPathSelectorDisplayName) FieldPath() *Policy_FieldTerminalPath { 798 return &Policy_FieldTerminalPath{selector: Policy_FieldPathSelectorDisplayName} 799 } 800 801 func (s PolicyPathSelectorDisplayName) WithValue(value string) *Policy_FieldTerminalPathValue { 802 return s.FieldPath().WithIValue(value).(*Policy_FieldTerminalPathValue) 803 } 804 805 func (s PolicyPathSelectorDisplayName) WithArrayOfValues(values []string) *Policy_FieldTerminalPathArrayOfValues { 806 return s.FieldPath().WithIArrayOfValues(values).(*Policy_FieldTerminalPathArrayOfValues) 807 } 808 809 type PolicyPathSelectorDescription struct{} 810 811 func (PolicyPathSelectorDescription) FieldPath() *Policy_FieldTerminalPath { 812 return &Policy_FieldTerminalPath{selector: Policy_FieldPathSelectorDescription} 813 } 814 815 func (s PolicyPathSelectorDescription) WithValue(value string) *Policy_FieldTerminalPathValue { 816 return s.FieldPath().WithIValue(value).(*Policy_FieldTerminalPathValue) 817 } 818 819 func (s PolicyPathSelectorDescription) WithArrayOfValues(values []string) *Policy_FieldTerminalPathArrayOfValues { 820 return s.FieldPath().WithIArrayOfValues(values).(*Policy_FieldTerminalPathArrayOfValues) 821 } 822 823 type PolicyPathSelectorSupportingDocs struct{} 824 825 func (PolicyPathSelectorSupportingDocs) FieldPath() *Policy_FieldTerminalPath { 826 return &Policy_FieldTerminalPath{selector: Policy_FieldPathSelectorSupportingDocs} 827 } 828 829 func (s PolicyPathSelectorSupportingDocs) WithValue(value []*document.Reference) *Policy_FieldTerminalPathValue { 830 return s.FieldPath().WithIValue(value).(*Policy_FieldTerminalPathValue) 831 } 832 833 func (s PolicyPathSelectorSupportingDocs) WithArrayOfValues(values [][]*document.Reference) *Policy_FieldTerminalPathArrayOfValues { 834 return s.FieldPath().WithIArrayOfValues(values).(*Policy_FieldTerminalPathArrayOfValues) 835 } 836 837 func (s PolicyPathSelectorSupportingDocs) WithItemValue(value *document.Reference) *Policy_FieldTerminalPathArrayItemValue { 838 return s.FieldPath().WithIArrayItemValue(value).(*Policy_FieldTerminalPathArrayItemValue) 839 } 840 841 type PolicyPathSelectorSpec struct{} 842 843 func (PolicyPathSelectorSpec) FieldPath() *Policy_FieldTerminalPath { 844 return &Policy_FieldTerminalPath{selector: Policy_FieldPathSelectorSpec} 845 } 846 847 func (s PolicyPathSelectorSpec) WithValue(value *rcommon.PolicySpec) *Policy_FieldTerminalPathValue { 848 return s.FieldPath().WithIValue(value).(*Policy_FieldTerminalPathValue) 849 } 850 851 func (s PolicyPathSelectorSpec) WithArrayOfValues(values []*rcommon.PolicySpec) *Policy_FieldTerminalPathArrayOfValues { 852 return s.FieldPath().WithIArrayOfValues(values).(*Policy_FieldTerminalPathArrayOfValues) 853 } 854 855 func (PolicyPathSelectorSpec) WithSubPath(subPath rcommon.PolicySpec_FieldPath) *Policy_FieldSubPath { 856 return &Policy_FieldSubPath{selector: Policy_FieldPathSelectorSpec, subPath: subPath} 857 } 858 859 func (s PolicyPathSelectorSpec) WithSubValue(subPathValue rcommon.PolicySpec_FieldPathValue) *Policy_FieldSubPathValue { 860 return &Policy_FieldSubPathValue{Policy_FieldPath: s.WithSubPath(subPathValue), subPathValue: subPathValue} 861 } 862 863 func (s PolicyPathSelectorSpec) WithSubArrayOfValues(subPathArrayOfValues rcommon.PolicySpec_FieldPathArrayOfValues) *Policy_FieldSubPathArrayOfValues { 864 return &Policy_FieldSubPathArrayOfValues{Policy_FieldPath: s.WithSubPath(subPathArrayOfValues), subPathArrayOfValues: subPathArrayOfValues} 865 } 866 867 func (s PolicyPathSelectorSpec) WithSubArrayItemValue(subPathArrayItemValue rcommon.PolicySpec_FieldPathArrayItemValue) *Policy_FieldSubPathArrayItemValue { 868 return &Policy_FieldSubPathArrayItemValue{Policy_FieldPath: s.WithSubPath(subPathArrayItemValue), subPathItemValue: subPathArrayItemValue} 869 } 870 871 func (PolicyPathSelectorSpec) Enabled() PolicyPathSelectorSpecEnabled { 872 return PolicyPathSelectorSpecEnabled{} 873 } 874 875 func (PolicyPathSelectorSpec) ProcessingLocation() PolicyPathSelectorSpecProcessingLocation { 876 return PolicyPathSelectorSpecProcessingLocation{} 877 } 878 879 func (PolicyPathSelectorSpec) ResourceIdentity() PolicyPathSelectorSpecResourceIdentity { 880 return PolicyPathSelectorSpecResourceIdentity{} 881 } 882 883 func (PolicyPathSelectorSpec) SupportingQueries() PolicyPathSelectorSpecSupportingQueries { 884 return PolicyPathSelectorSpecSupportingQueries{} 885 } 886 887 func (PolicyPathSelectorSpec) AiAgent() PolicyPathSelectorSpecAiAgent { 888 return PolicyPathSelectorSpecAiAgent{} 889 } 890 891 type PolicyPathSelectorSpecEnabled struct{} 892 893 func (PolicyPathSelectorSpecEnabled) FieldPath() *Policy_FieldSubPath { 894 return &Policy_FieldSubPath{ 895 selector: Policy_FieldPathSelectorSpec, 896 subPath: rcommon.NewPolicySpecFieldPathBuilder().Enabled().FieldPath(), 897 } 898 } 899 900 func (s PolicyPathSelectorSpecEnabled) WithValue(value bool) *Policy_FieldSubPathValue { 901 return s.FieldPath().WithIValue(value).(*Policy_FieldSubPathValue) 902 } 903 904 func (s PolicyPathSelectorSpecEnabled) WithArrayOfValues(values []bool) *Policy_FieldSubPathArrayOfValues { 905 return s.FieldPath().WithIArrayOfValues(values).(*Policy_FieldSubPathArrayOfValues) 906 } 907 908 type PolicyPathSelectorSpecProcessingLocation struct{} 909 910 func (PolicyPathSelectorSpecProcessingLocation) FieldPath() *Policy_FieldSubPath { 911 return &Policy_FieldSubPath{ 912 selector: Policy_FieldPathSelectorSpec, 913 subPath: rcommon.NewPolicySpecFieldPathBuilder().ProcessingLocation().FieldPath(), 914 } 915 } 916 917 func (s PolicyPathSelectorSpecProcessingLocation) WithValue(value rcommon.PolicySpec_ProcessingLocation) *Policy_FieldSubPathValue { 918 return s.FieldPath().WithIValue(value).(*Policy_FieldSubPathValue) 919 } 920 921 func (s PolicyPathSelectorSpecProcessingLocation) WithArrayOfValues(values []rcommon.PolicySpec_ProcessingLocation) *Policy_FieldSubPathArrayOfValues { 922 return s.FieldPath().WithIArrayOfValues(values).(*Policy_FieldSubPathArrayOfValues) 923 } 924 925 type PolicyPathSelectorSpecResourceIdentity struct{} 926 927 func (PolicyPathSelectorSpecResourceIdentity) FieldPath() *Policy_FieldSubPath { 928 return &Policy_FieldSubPath{ 929 selector: Policy_FieldPathSelectorSpec, 930 subPath: rcommon.NewPolicySpecFieldPathBuilder().ResourceIdentity().FieldPath(), 931 } 932 } 933 934 func (s PolicyPathSelectorSpecResourceIdentity) WithValue(value *rcommon.PolicySpec_ResourceIdentity) *Policy_FieldSubPathValue { 935 return s.FieldPath().WithIValue(value).(*Policy_FieldSubPathValue) 936 } 937 938 func (s PolicyPathSelectorSpecResourceIdentity) WithArrayOfValues(values []*rcommon.PolicySpec_ResourceIdentity) *Policy_FieldSubPathArrayOfValues { 939 return s.FieldPath().WithIArrayOfValues(values).(*Policy_FieldSubPathArrayOfValues) 940 } 941 942 func (PolicyPathSelectorSpecResourceIdentity) AlertingResource() PolicyPathSelectorSpecResourceIdentityAlertingResource { 943 return PolicyPathSelectorSpecResourceIdentityAlertingResource{} 944 } 945 946 func (PolicyPathSelectorSpecResourceIdentity) Labels() PolicyPathSelectorSpecResourceIdentityLabels { 947 return PolicyPathSelectorSpecResourceIdentityLabels{} 948 } 949 950 func (PolicyPathSelectorSpecResourceIdentity) NamePatterns() PolicyPathSelectorSpecResourceIdentityNamePatterns { 951 return PolicyPathSelectorSpecResourceIdentityNamePatterns{} 952 } 953 954 type PolicyPathSelectorSpecResourceIdentityAlertingResource struct{} 955 956 func (PolicyPathSelectorSpecResourceIdentityAlertingResource) FieldPath() *Policy_FieldSubPath { 957 return &Policy_FieldSubPath{ 958 selector: Policy_FieldPathSelectorSpec, 959 subPath: rcommon.NewPolicySpecFieldPathBuilder().ResourceIdentity().AlertingResource().FieldPath(), 960 } 961 } 962 963 func (s PolicyPathSelectorSpecResourceIdentityAlertingResource) WithValue(value *meta_resource.Reference) *Policy_FieldSubPathValue { 964 return s.FieldPath().WithIValue(value).(*Policy_FieldSubPathValue) 965 } 966 967 func (s PolicyPathSelectorSpecResourceIdentityAlertingResource) WithArrayOfValues(values []*meta_resource.Reference) *Policy_FieldSubPathArrayOfValues { 968 return s.FieldPath().WithIArrayOfValues(values).(*Policy_FieldSubPathArrayOfValues) 969 } 970 971 type PolicyPathSelectorSpecResourceIdentityLabels struct{} 972 973 func (PolicyPathSelectorSpecResourceIdentityLabels) FieldPath() *Policy_FieldSubPath { 974 return &Policy_FieldSubPath{ 975 selector: Policy_FieldPathSelectorSpec, 976 subPath: rcommon.NewPolicySpecFieldPathBuilder().ResourceIdentity().Labels().FieldPath(), 977 } 978 } 979 980 func (s PolicyPathSelectorSpecResourceIdentityLabels) WithValue(value []*rcommon.PolicySpec_ResourceIdentity_LabelInfo) *Policy_FieldSubPathValue { 981 return s.FieldPath().WithIValue(value).(*Policy_FieldSubPathValue) 982 } 983 984 func (s PolicyPathSelectorSpecResourceIdentityLabels) WithArrayOfValues(values [][]*rcommon.PolicySpec_ResourceIdentity_LabelInfo) *Policy_FieldSubPathArrayOfValues { 985 return s.FieldPath().WithIArrayOfValues(values).(*Policy_FieldSubPathArrayOfValues) 986 } 987 988 func (s PolicyPathSelectorSpecResourceIdentityLabels) WithItemValue(value *rcommon.PolicySpec_ResourceIdentity_LabelInfo) *Policy_FieldSubPathArrayItemValue { 989 return s.FieldPath().WithIArrayItemValue(value).(*Policy_FieldSubPathArrayItemValue) 990 } 991 992 func (PolicyPathSelectorSpecResourceIdentityLabels) Key() PolicyPathSelectorSpecResourceIdentityLabelsKey { 993 return PolicyPathSelectorSpecResourceIdentityLabelsKey{} 994 } 995 996 func (PolicyPathSelectorSpecResourceIdentityLabels) Contexts() PolicyPathSelectorSpecResourceIdentityLabelsContexts { 997 return PolicyPathSelectorSpecResourceIdentityLabelsContexts{} 998 } 999 1000 func (PolicyPathSelectorSpecResourceIdentityLabels) MappedNameSegment() PolicyPathSelectorSpecResourceIdentityLabelsMappedNameSegment { 1001 return PolicyPathSelectorSpecResourceIdentityLabelsMappedNameSegment{} 1002 } 1003 1004 type PolicyPathSelectorSpecResourceIdentityLabelsKey struct{} 1005 1006 func (PolicyPathSelectorSpecResourceIdentityLabelsKey) FieldPath() *Policy_FieldSubPath { 1007 return &Policy_FieldSubPath{ 1008 selector: Policy_FieldPathSelectorSpec, 1009 subPath: rcommon.NewPolicySpecFieldPathBuilder().ResourceIdentity().Labels().Key().FieldPath(), 1010 } 1011 } 1012 1013 func (s PolicyPathSelectorSpecResourceIdentityLabelsKey) WithValue(value string) *Policy_FieldSubPathValue { 1014 return s.FieldPath().WithIValue(value).(*Policy_FieldSubPathValue) 1015 } 1016 1017 func (s PolicyPathSelectorSpecResourceIdentityLabelsKey) WithArrayOfValues(values []string) *Policy_FieldSubPathArrayOfValues { 1018 return s.FieldPath().WithIArrayOfValues(values).(*Policy_FieldSubPathArrayOfValues) 1019 } 1020 1021 type PolicyPathSelectorSpecResourceIdentityLabelsContexts struct{} 1022 1023 func (PolicyPathSelectorSpecResourceIdentityLabelsContexts) FieldPath() *Policy_FieldSubPath { 1024 return &Policy_FieldSubPath{ 1025 selector: Policy_FieldPathSelectorSpec, 1026 subPath: rcommon.NewPolicySpecFieldPathBuilder().ResourceIdentity().Labels().Contexts().FieldPath(), 1027 } 1028 } 1029 1030 func (s PolicyPathSelectorSpecResourceIdentityLabelsContexts) WithValue(value []rcommon.PolicySpec_ResourceIdentity_LabelInfo_UsageContext) *Policy_FieldSubPathValue { 1031 return s.FieldPath().WithIValue(value).(*Policy_FieldSubPathValue) 1032 } 1033 1034 func (s PolicyPathSelectorSpecResourceIdentityLabelsContexts) WithArrayOfValues(values [][]rcommon.PolicySpec_ResourceIdentity_LabelInfo_UsageContext) *Policy_FieldSubPathArrayOfValues { 1035 return s.FieldPath().WithIArrayOfValues(values).(*Policy_FieldSubPathArrayOfValues) 1036 } 1037 1038 func (s PolicyPathSelectorSpecResourceIdentityLabelsContexts) WithItemValue(value rcommon.PolicySpec_ResourceIdentity_LabelInfo_UsageContext) *Policy_FieldSubPathArrayItemValue { 1039 return s.FieldPath().WithIArrayItemValue(value).(*Policy_FieldSubPathArrayItemValue) 1040 } 1041 1042 type PolicyPathSelectorSpecResourceIdentityLabelsMappedNameSegment struct{} 1043 1044 func (PolicyPathSelectorSpecResourceIdentityLabelsMappedNameSegment) FieldPath() *Policy_FieldSubPath { 1045 return &Policy_FieldSubPath{ 1046 selector: Policy_FieldPathSelectorSpec, 1047 subPath: rcommon.NewPolicySpecFieldPathBuilder().ResourceIdentity().Labels().MappedNameSegment().FieldPath(), 1048 } 1049 } 1050 1051 func (s PolicyPathSelectorSpecResourceIdentityLabelsMappedNameSegment) WithValue(value string) *Policy_FieldSubPathValue { 1052 return s.FieldPath().WithIValue(value).(*Policy_FieldSubPathValue) 1053 } 1054 1055 func (s PolicyPathSelectorSpecResourceIdentityLabelsMappedNameSegment) WithArrayOfValues(values []string) *Policy_FieldSubPathArrayOfValues { 1056 return s.FieldPath().WithIArrayOfValues(values).(*Policy_FieldSubPathArrayOfValues) 1057 } 1058 1059 type PolicyPathSelectorSpecResourceIdentityNamePatterns struct{} 1060 1061 func (PolicyPathSelectorSpecResourceIdentityNamePatterns) FieldPath() *Policy_FieldSubPath { 1062 return &Policy_FieldSubPath{ 1063 selector: Policy_FieldPathSelectorSpec, 1064 subPath: rcommon.NewPolicySpecFieldPathBuilder().ResourceIdentity().NamePatterns().FieldPath(), 1065 } 1066 } 1067 1068 func (s PolicyPathSelectorSpecResourceIdentityNamePatterns) WithValue(value []string) *Policy_FieldSubPathValue { 1069 return s.FieldPath().WithIValue(value).(*Policy_FieldSubPathValue) 1070 } 1071 1072 func (s PolicyPathSelectorSpecResourceIdentityNamePatterns) WithArrayOfValues(values [][]string) *Policy_FieldSubPathArrayOfValues { 1073 return s.FieldPath().WithIArrayOfValues(values).(*Policy_FieldSubPathArrayOfValues) 1074 } 1075 1076 func (s PolicyPathSelectorSpecResourceIdentityNamePatterns) WithItemValue(value string) *Policy_FieldSubPathArrayItemValue { 1077 return s.FieldPath().WithIArrayItemValue(value).(*Policy_FieldSubPathArrayItemValue) 1078 } 1079 1080 type PolicyPathSelectorSpecSupportingQueries struct{} 1081 1082 func (PolicyPathSelectorSpecSupportingQueries) FieldPath() *Policy_FieldSubPath { 1083 return &Policy_FieldSubPath{ 1084 selector: Policy_FieldPathSelectorSpec, 1085 subPath: rcommon.NewPolicySpecFieldPathBuilder().SupportingQueries().FieldPath(), 1086 } 1087 } 1088 1089 func (s PolicyPathSelectorSpecSupportingQueries) WithValue(value []*rcommon.PolicySpec_SupportingAlertQuery) *Policy_FieldSubPathValue { 1090 return s.FieldPath().WithIValue(value).(*Policy_FieldSubPathValue) 1091 } 1092 1093 func (s PolicyPathSelectorSpecSupportingQueries) WithArrayOfValues(values [][]*rcommon.PolicySpec_SupportingAlertQuery) *Policy_FieldSubPathArrayOfValues { 1094 return s.FieldPath().WithIArrayOfValues(values).(*Policy_FieldSubPathArrayOfValues) 1095 } 1096 1097 func (s PolicyPathSelectorSpecSupportingQueries) WithItemValue(value *rcommon.PolicySpec_SupportingAlertQuery) *Policy_FieldSubPathArrayItemValue { 1098 return s.FieldPath().WithIArrayItemValue(value).(*Policy_FieldSubPathArrayItemValue) 1099 } 1100 1101 func (PolicyPathSelectorSpecSupportingQueries) TsQuery() PolicyPathSelectorSpecSupportingQueriesTsQuery { 1102 return PolicyPathSelectorSpecSupportingQueriesTsQuery{} 1103 } 1104 1105 func (PolicyPathSelectorSpecSupportingQueries) LogQuery() PolicyPathSelectorSpecSupportingQueriesLogQuery { 1106 return PolicyPathSelectorSpecSupportingQueriesLogQuery{} 1107 } 1108 1109 func (PolicyPathSelectorSpecSupportingQueries) RestGetQuery() PolicyPathSelectorSpecSupportingQueriesRestGetQuery { 1110 return PolicyPathSelectorSpecSupportingQueriesRestGetQuery{} 1111 } 1112 1113 func (PolicyPathSelectorSpecSupportingQueries) RestListQuery() PolicyPathSelectorSpecSupportingQueriesRestListQuery { 1114 return PolicyPathSelectorSpecSupportingQueriesRestListQuery{} 1115 } 1116 1117 type PolicyPathSelectorSpecSupportingQueriesTsQuery struct{} 1118 1119 func (PolicyPathSelectorSpecSupportingQueriesTsQuery) FieldPath() *Policy_FieldSubPath { 1120 return &Policy_FieldSubPath{ 1121 selector: Policy_FieldPathSelectorSpec, 1122 subPath: rcommon.NewPolicySpecFieldPathBuilder().SupportingQueries().TsQuery().FieldPath(), 1123 } 1124 } 1125 1126 func (s PolicyPathSelectorSpecSupportingQueriesTsQuery) WithValue(value *rcommon.PolicySpec_SupportingAlertQuery_TsQuery) *Policy_FieldSubPathValue { 1127 return s.FieldPath().WithIValue(value).(*Policy_FieldSubPathValue) 1128 } 1129 1130 func (s PolicyPathSelectorSpecSupportingQueriesTsQuery) WithArrayOfValues(values []*rcommon.PolicySpec_SupportingAlertQuery_TsQuery) *Policy_FieldSubPathArrayOfValues { 1131 return s.FieldPath().WithIArrayOfValues(values).(*Policy_FieldSubPathArrayOfValues) 1132 } 1133 1134 func (PolicyPathSelectorSpecSupportingQueriesTsQuery) Description() PolicyPathSelectorSpecSupportingQueriesTsQueryDescription { 1135 return PolicyPathSelectorSpecSupportingQueriesTsQueryDescription{} 1136 } 1137 1138 func (PolicyPathSelectorSpecSupportingQueriesTsQuery) FilterTemplate() PolicyPathSelectorSpecSupportingQueriesTsQueryFilterTemplate { 1139 return PolicyPathSelectorSpecSupportingQueriesTsQueryFilterTemplate{} 1140 } 1141 1142 func (PolicyPathSelectorSpecSupportingQueriesTsQuery) Aggregation() PolicyPathSelectorSpecSupportingQueriesTsQueryAggregation { 1143 return PolicyPathSelectorSpecSupportingQueriesTsQueryAggregation{} 1144 } 1145 1146 type PolicyPathSelectorSpecSupportingQueriesTsQueryDescription struct{} 1147 1148 func (PolicyPathSelectorSpecSupportingQueriesTsQueryDescription) FieldPath() *Policy_FieldSubPath { 1149 return &Policy_FieldSubPath{ 1150 selector: Policy_FieldPathSelectorSpec, 1151 subPath: rcommon.NewPolicySpecFieldPathBuilder().SupportingQueries().TsQuery().Description().FieldPath(), 1152 } 1153 } 1154 1155 func (s PolicyPathSelectorSpecSupportingQueriesTsQueryDescription) WithValue(value string) *Policy_FieldSubPathValue { 1156 return s.FieldPath().WithIValue(value).(*Policy_FieldSubPathValue) 1157 } 1158 1159 func (s PolicyPathSelectorSpecSupportingQueriesTsQueryDescription) WithArrayOfValues(values []string) *Policy_FieldSubPathArrayOfValues { 1160 return s.FieldPath().WithIArrayOfValues(values).(*Policy_FieldSubPathArrayOfValues) 1161 } 1162 1163 type PolicyPathSelectorSpecSupportingQueriesTsQueryFilterTemplate struct{} 1164 1165 func (PolicyPathSelectorSpecSupportingQueriesTsQueryFilterTemplate) FieldPath() *Policy_FieldSubPath { 1166 return &Policy_FieldSubPath{ 1167 selector: Policy_FieldPathSelectorSpec, 1168 subPath: rcommon.NewPolicySpecFieldPathBuilder().SupportingQueries().TsQuery().FilterTemplate().FieldPath(), 1169 } 1170 } 1171 1172 func (s PolicyPathSelectorSpecSupportingQueriesTsQueryFilterTemplate) WithValue(value string) *Policy_FieldSubPathValue { 1173 return s.FieldPath().WithIValue(value).(*Policy_FieldSubPathValue) 1174 } 1175 1176 func (s PolicyPathSelectorSpecSupportingQueriesTsQueryFilterTemplate) WithArrayOfValues(values []string) *Policy_FieldSubPathArrayOfValues { 1177 return s.FieldPath().WithIArrayOfValues(values).(*Policy_FieldSubPathArrayOfValues) 1178 } 1179 1180 type PolicyPathSelectorSpecSupportingQueriesTsQueryAggregation struct{} 1181 1182 func (PolicyPathSelectorSpecSupportingQueriesTsQueryAggregation) FieldPath() *Policy_FieldSubPath { 1183 return &Policy_FieldSubPath{ 1184 selector: Policy_FieldPathSelectorSpec, 1185 subPath: rcommon.NewPolicySpecFieldPathBuilder().SupportingQueries().TsQuery().Aggregation().FieldPath(), 1186 } 1187 } 1188 1189 func (s PolicyPathSelectorSpecSupportingQueriesTsQueryAggregation) WithValue(value *monitoring_common.Aggregation) *Policy_FieldSubPathValue { 1190 return s.FieldPath().WithIValue(value).(*Policy_FieldSubPathValue) 1191 } 1192 1193 func (s PolicyPathSelectorSpecSupportingQueriesTsQueryAggregation) WithArrayOfValues(values []*monitoring_common.Aggregation) *Policy_FieldSubPathArrayOfValues { 1194 return s.FieldPath().WithIArrayOfValues(values).(*Policy_FieldSubPathArrayOfValues) 1195 } 1196 1197 func (PolicyPathSelectorSpecSupportingQueriesTsQueryAggregation) AlignmentPeriod() PolicyPathSelectorSpecSupportingQueriesTsQueryAggregationAlignmentPeriod { 1198 return PolicyPathSelectorSpecSupportingQueriesTsQueryAggregationAlignmentPeriod{} 1199 } 1200 1201 func (PolicyPathSelectorSpecSupportingQueriesTsQueryAggregation) PerSeriesAligner() PolicyPathSelectorSpecSupportingQueriesTsQueryAggregationPerSeriesAligner { 1202 return PolicyPathSelectorSpecSupportingQueriesTsQueryAggregationPerSeriesAligner{} 1203 } 1204 1205 func (PolicyPathSelectorSpecSupportingQueriesTsQueryAggregation) CrossSeriesReducer() PolicyPathSelectorSpecSupportingQueriesTsQueryAggregationCrossSeriesReducer { 1206 return PolicyPathSelectorSpecSupportingQueriesTsQueryAggregationCrossSeriesReducer{} 1207 } 1208 1209 func (PolicyPathSelectorSpecSupportingQueriesTsQueryAggregation) GroupByFields() PolicyPathSelectorSpecSupportingQueriesTsQueryAggregationGroupByFields { 1210 return PolicyPathSelectorSpecSupportingQueriesTsQueryAggregationGroupByFields{} 1211 } 1212 1213 type PolicyPathSelectorSpecSupportingQueriesTsQueryAggregationAlignmentPeriod struct{} 1214 1215 func (PolicyPathSelectorSpecSupportingQueriesTsQueryAggregationAlignmentPeriod) FieldPath() *Policy_FieldSubPath { 1216 return &Policy_FieldSubPath{ 1217 selector: Policy_FieldPathSelectorSpec, 1218 subPath: rcommon.NewPolicySpecFieldPathBuilder().SupportingQueries().TsQuery().Aggregation().AlignmentPeriod().FieldPath(), 1219 } 1220 } 1221 1222 func (s PolicyPathSelectorSpecSupportingQueriesTsQueryAggregationAlignmentPeriod) WithValue(value *durationpb.Duration) *Policy_FieldSubPathValue { 1223 return s.FieldPath().WithIValue(value).(*Policy_FieldSubPathValue) 1224 } 1225 1226 func (s PolicyPathSelectorSpecSupportingQueriesTsQueryAggregationAlignmentPeriod) WithArrayOfValues(values []*durationpb.Duration) *Policy_FieldSubPathArrayOfValues { 1227 return s.FieldPath().WithIArrayOfValues(values).(*Policy_FieldSubPathArrayOfValues) 1228 } 1229 1230 type PolicyPathSelectorSpecSupportingQueriesTsQueryAggregationPerSeriesAligner struct{} 1231 1232 func (PolicyPathSelectorSpecSupportingQueriesTsQueryAggregationPerSeriesAligner) FieldPath() *Policy_FieldSubPath { 1233 return &Policy_FieldSubPath{ 1234 selector: Policy_FieldPathSelectorSpec, 1235 subPath: rcommon.NewPolicySpecFieldPathBuilder().SupportingQueries().TsQuery().Aggregation().PerSeriesAligner().FieldPath(), 1236 } 1237 } 1238 1239 func (s PolicyPathSelectorSpecSupportingQueriesTsQueryAggregationPerSeriesAligner) WithValue(value monitoring_common.Aggregation_Aligner) *Policy_FieldSubPathValue { 1240 return s.FieldPath().WithIValue(value).(*Policy_FieldSubPathValue) 1241 } 1242 1243 func (s PolicyPathSelectorSpecSupportingQueriesTsQueryAggregationPerSeriesAligner) WithArrayOfValues(values []monitoring_common.Aggregation_Aligner) *Policy_FieldSubPathArrayOfValues { 1244 return s.FieldPath().WithIArrayOfValues(values).(*Policy_FieldSubPathArrayOfValues) 1245 } 1246 1247 type PolicyPathSelectorSpecSupportingQueriesTsQueryAggregationCrossSeriesReducer struct{} 1248 1249 func (PolicyPathSelectorSpecSupportingQueriesTsQueryAggregationCrossSeriesReducer) FieldPath() *Policy_FieldSubPath { 1250 return &Policy_FieldSubPath{ 1251 selector: Policy_FieldPathSelectorSpec, 1252 subPath: rcommon.NewPolicySpecFieldPathBuilder().SupportingQueries().TsQuery().Aggregation().CrossSeriesReducer().FieldPath(), 1253 } 1254 } 1255 1256 func (s PolicyPathSelectorSpecSupportingQueriesTsQueryAggregationCrossSeriesReducer) WithValue(value monitoring_common.Aggregation_Reducer) *Policy_FieldSubPathValue { 1257 return s.FieldPath().WithIValue(value).(*Policy_FieldSubPathValue) 1258 } 1259 1260 func (s PolicyPathSelectorSpecSupportingQueriesTsQueryAggregationCrossSeriesReducer) WithArrayOfValues(values []monitoring_common.Aggregation_Reducer) *Policy_FieldSubPathArrayOfValues { 1261 return s.FieldPath().WithIArrayOfValues(values).(*Policy_FieldSubPathArrayOfValues) 1262 } 1263 1264 type PolicyPathSelectorSpecSupportingQueriesTsQueryAggregationGroupByFields struct{} 1265 1266 func (PolicyPathSelectorSpecSupportingQueriesTsQueryAggregationGroupByFields) FieldPath() *Policy_FieldSubPath { 1267 return &Policy_FieldSubPath{ 1268 selector: Policy_FieldPathSelectorSpec, 1269 subPath: rcommon.NewPolicySpecFieldPathBuilder().SupportingQueries().TsQuery().Aggregation().GroupByFields().FieldPath(), 1270 } 1271 } 1272 1273 func (s PolicyPathSelectorSpecSupportingQueriesTsQueryAggregationGroupByFields) WithValue(value []string) *Policy_FieldSubPathValue { 1274 return s.FieldPath().WithIValue(value).(*Policy_FieldSubPathValue) 1275 } 1276 1277 func (s PolicyPathSelectorSpecSupportingQueriesTsQueryAggregationGroupByFields) WithArrayOfValues(values [][]string) *Policy_FieldSubPathArrayOfValues { 1278 return s.FieldPath().WithIArrayOfValues(values).(*Policy_FieldSubPathArrayOfValues) 1279 } 1280 1281 func (s PolicyPathSelectorSpecSupportingQueriesTsQueryAggregationGroupByFields) WithItemValue(value string) *Policy_FieldSubPathArrayItemValue { 1282 return s.FieldPath().WithIArrayItemValue(value).(*Policy_FieldSubPathArrayItemValue) 1283 } 1284 1285 type PolicyPathSelectorSpecSupportingQueriesLogQuery struct{} 1286 1287 func (PolicyPathSelectorSpecSupportingQueriesLogQuery) FieldPath() *Policy_FieldSubPath { 1288 return &Policy_FieldSubPath{ 1289 selector: Policy_FieldPathSelectorSpec, 1290 subPath: rcommon.NewPolicySpecFieldPathBuilder().SupportingQueries().LogQuery().FieldPath(), 1291 } 1292 } 1293 1294 func (s PolicyPathSelectorSpecSupportingQueriesLogQuery) WithValue(value *rcommon.PolicySpec_SupportingAlertQuery_LogQuery) *Policy_FieldSubPathValue { 1295 return s.FieldPath().WithIValue(value).(*Policy_FieldSubPathValue) 1296 } 1297 1298 func (s PolicyPathSelectorSpecSupportingQueriesLogQuery) WithArrayOfValues(values []*rcommon.PolicySpec_SupportingAlertQuery_LogQuery) *Policy_FieldSubPathArrayOfValues { 1299 return s.FieldPath().WithIArrayOfValues(values).(*Policy_FieldSubPathArrayOfValues) 1300 } 1301 1302 func (PolicyPathSelectorSpecSupportingQueriesLogQuery) Description() PolicyPathSelectorSpecSupportingQueriesLogQueryDescription { 1303 return PolicyPathSelectorSpecSupportingQueriesLogQueryDescription{} 1304 } 1305 1306 func (PolicyPathSelectorSpecSupportingQueriesLogQuery) FilterTemplate() PolicyPathSelectorSpecSupportingQueriesLogQueryFilterTemplate { 1307 return PolicyPathSelectorSpecSupportingQueriesLogQueryFilterTemplate{} 1308 } 1309 1310 type PolicyPathSelectorSpecSupportingQueriesLogQueryDescription struct{} 1311 1312 func (PolicyPathSelectorSpecSupportingQueriesLogQueryDescription) FieldPath() *Policy_FieldSubPath { 1313 return &Policy_FieldSubPath{ 1314 selector: Policy_FieldPathSelectorSpec, 1315 subPath: rcommon.NewPolicySpecFieldPathBuilder().SupportingQueries().LogQuery().Description().FieldPath(), 1316 } 1317 } 1318 1319 func (s PolicyPathSelectorSpecSupportingQueriesLogQueryDescription) WithValue(value string) *Policy_FieldSubPathValue { 1320 return s.FieldPath().WithIValue(value).(*Policy_FieldSubPathValue) 1321 } 1322 1323 func (s PolicyPathSelectorSpecSupportingQueriesLogQueryDescription) WithArrayOfValues(values []string) *Policy_FieldSubPathArrayOfValues { 1324 return s.FieldPath().WithIArrayOfValues(values).(*Policy_FieldSubPathArrayOfValues) 1325 } 1326 1327 type PolicyPathSelectorSpecSupportingQueriesLogQueryFilterTemplate struct{} 1328 1329 func (PolicyPathSelectorSpecSupportingQueriesLogQueryFilterTemplate) FieldPath() *Policy_FieldSubPath { 1330 return &Policy_FieldSubPath{ 1331 selector: Policy_FieldPathSelectorSpec, 1332 subPath: rcommon.NewPolicySpecFieldPathBuilder().SupportingQueries().LogQuery().FilterTemplate().FieldPath(), 1333 } 1334 } 1335 1336 func (s PolicyPathSelectorSpecSupportingQueriesLogQueryFilterTemplate) WithValue(value string) *Policy_FieldSubPathValue { 1337 return s.FieldPath().WithIValue(value).(*Policy_FieldSubPathValue) 1338 } 1339 1340 func (s PolicyPathSelectorSpecSupportingQueriesLogQueryFilterTemplate) WithArrayOfValues(values []string) *Policy_FieldSubPathArrayOfValues { 1341 return s.FieldPath().WithIArrayOfValues(values).(*Policy_FieldSubPathArrayOfValues) 1342 } 1343 1344 type PolicyPathSelectorSpecSupportingQueriesRestGetQuery struct{} 1345 1346 func (PolicyPathSelectorSpecSupportingQueriesRestGetQuery) FieldPath() *Policy_FieldSubPath { 1347 return &Policy_FieldSubPath{ 1348 selector: Policy_FieldPathSelectorSpec, 1349 subPath: rcommon.NewPolicySpecFieldPathBuilder().SupportingQueries().RestGetQuery().FieldPath(), 1350 } 1351 } 1352 1353 func (s PolicyPathSelectorSpecSupportingQueriesRestGetQuery) WithValue(value *rcommon.PolicySpec_SupportingAlertQuery_RestGetQuery) *Policy_FieldSubPathValue { 1354 return s.FieldPath().WithIValue(value).(*Policy_FieldSubPathValue) 1355 } 1356 1357 func (s PolicyPathSelectorSpecSupportingQueriesRestGetQuery) WithArrayOfValues(values []*rcommon.PolicySpec_SupportingAlertQuery_RestGetQuery) *Policy_FieldSubPathArrayOfValues { 1358 return s.FieldPath().WithIArrayOfValues(values).(*Policy_FieldSubPathArrayOfValues) 1359 } 1360 1361 func (PolicyPathSelectorSpecSupportingQueriesRestGetQuery) Description() PolicyPathSelectorSpecSupportingQueriesRestGetQueryDescription { 1362 return PolicyPathSelectorSpecSupportingQueriesRestGetQueryDescription{} 1363 } 1364 1365 func (PolicyPathSelectorSpecSupportingQueriesRestGetQuery) Endpoint() PolicyPathSelectorSpecSupportingQueriesRestGetQueryEndpoint { 1366 return PolicyPathSelectorSpecSupportingQueriesRestGetQueryEndpoint{} 1367 } 1368 1369 func (PolicyPathSelectorSpecSupportingQueriesRestGetQuery) PathTemplate() PolicyPathSelectorSpecSupportingQueriesRestGetQueryPathTemplate { 1370 return PolicyPathSelectorSpecSupportingQueriesRestGetQueryPathTemplate{} 1371 } 1372 1373 func (PolicyPathSelectorSpecSupportingQueriesRestGetQuery) View() PolicyPathSelectorSpecSupportingQueriesRestGetQueryView { 1374 return PolicyPathSelectorSpecSupportingQueriesRestGetQueryView{} 1375 } 1376 1377 func (PolicyPathSelectorSpecSupportingQueriesRestGetQuery) FieldMask() PolicyPathSelectorSpecSupportingQueriesRestGetQueryFieldMask { 1378 return PolicyPathSelectorSpecSupportingQueriesRestGetQueryFieldMask{} 1379 } 1380 1381 type PolicyPathSelectorSpecSupportingQueriesRestGetQueryDescription struct{} 1382 1383 func (PolicyPathSelectorSpecSupportingQueriesRestGetQueryDescription) FieldPath() *Policy_FieldSubPath { 1384 return &Policy_FieldSubPath{ 1385 selector: Policy_FieldPathSelectorSpec, 1386 subPath: rcommon.NewPolicySpecFieldPathBuilder().SupportingQueries().RestGetQuery().Description().FieldPath(), 1387 } 1388 } 1389 1390 func (s PolicyPathSelectorSpecSupportingQueriesRestGetQueryDescription) WithValue(value string) *Policy_FieldSubPathValue { 1391 return s.FieldPath().WithIValue(value).(*Policy_FieldSubPathValue) 1392 } 1393 1394 func (s PolicyPathSelectorSpecSupportingQueriesRestGetQueryDescription) WithArrayOfValues(values []string) *Policy_FieldSubPathArrayOfValues { 1395 return s.FieldPath().WithIArrayOfValues(values).(*Policy_FieldSubPathArrayOfValues) 1396 } 1397 1398 type PolicyPathSelectorSpecSupportingQueriesRestGetQueryEndpoint struct{} 1399 1400 func (PolicyPathSelectorSpecSupportingQueriesRestGetQueryEndpoint) FieldPath() *Policy_FieldSubPath { 1401 return &Policy_FieldSubPath{ 1402 selector: Policy_FieldPathSelectorSpec, 1403 subPath: rcommon.NewPolicySpecFieldPathBuilder().SupportingQueries().RestGetQuery().Endpoint().FieldPath(), 1404 } 1405 } 1406 1407 func (s PolicyPathSelectorSpecSupportingQueriesRestGetQueryEndpoint) WithValue(value string) *Policy_FieldSubPathValue { 1408 return s.FieldPath().WithIValue(value).(*Policy_FieldSubPathValue) 1409 } 1410 1411 func (s PolicyPathSelectorSpecSupportingQueriesRestGetQueryEndpoint) WithArrayOfValues(values []string) *Policy_FieldSubPathArrayOfValues { 1412 return s.FieldPath().WithIArrayOfValues(values).(*Policy_FieldSubPathArrayOfValues) 1413 } 1414 1415 type PolicyPathSelectorSpecSupportingQueriesRestGetQueryPathTemplate struct{} 1416 1417 func (PolicyPathSelectorSpecSupportingQueriesRestGetQueryPathTemplate) FieldPath() *Policy_FieldSubPath { 1418 return &Policy_FieldSubPath{ 1419 selector: Policy_FieldPathSelectorSpec, 1420 subPath: rcommon.NewPolicySpecFieldPathBuilder().SupportingQueries().RestGetQuery().PathTemplate().FieldPath(), 1421 } 1422 } 1423 1424 func (s PolicyPathSelectorSpecSupportingQueriesRestGetQueryPathTemplate) WithValue(value string) *Policy_FieldSubPathValue { 1425 return s.FieldPath().WithIValue(value).(*Policy_FieldSubPathValue) 1426 } 1427 1428 func (s PolicyPathSelectorSpecSupportingQueriesRestGetQueryPathTemplate) WithArrayOfValues(values []string) *Policy_FieldSubPathArrayOfValues { 1429 return s.FieldPath().WithIArrayOfValues(values).(*Policy_FieldSubPathArrayOfValues) 1430 } 1431 1432 type PolicyPathSelectorSpecSupportingQueriesRestGetQueryView struct{} 1433 1434 func (PolicyPathSelectorSpecSupportingQueriesRestGetQueryView) FieldPath() *Policy_FieldSubPath { 1435 return &Policy_FieldSubPath{ 1436 selector: Policy_FieldPathSelectorSpec, 1437 subPath: rcommon.NewPolicySpecFieldPathBuilder().SupportingQueries().RestGetQuery().View().FieldPath(), 1438 } 1439 } 1440 1441 func (s PolicyPathSelectorSpecSupportingQueriesRestGetQueryView) WithValue(value string) *Policy_FieldSubPathValue { 1442 return s.FieldPath().WithIValue(value).(*Policy_FieldSubPathValue) 1443 } 1444 1445 func (s PolicyPathSelectorSpecSupportingQueriesRestGetQueryView) WithArrayOfValues(values []string) *Policy_FieldSubPathArrayOfValues { 1446 return s.FieldPath().WithIArrayOfValues(values).(*Policy_FieldSubPathArrayOfValues) 1447 } 1448 1449 type PolicyPathSelectorSpecSupportingQueriesRestGetQueryFieldMask struct{} 1450 1451 func (PolicyPathSelectorSpecSupportingQueriesRestGetQueryFieldMask) FieldPath() *Policy_FieldSubPath { 1452 return &Policy_FieldSubPath{ 1453 selector: Policy_FieldPathSelectorSpec, 1454 subPath: rcommon.NewPolicySpecFieldPathBuilder().SupportingQueries().RestGetQuery().FieldMask().FieldPath(), 1455 } 1456 } 1457 1458 func (s PolicyPathSelectorSpecSupportingQueriesRestGetQueryFieldMask) WithValue(value string) *Policy_FieldSubPathValue { 1459 return s.FieldPath().WithIValue(value).(*Policy_FieldSubPathValue) 1460 } 1461 1462 func (s PolicyPathSelectorSpecSupportingQueriesRestGetQueryFieldMask) WithArrayOfValues(values []string) *Policy_FieldSubPathArrayOfValues { 1463 return s.FieldPath().WithIArrayOfValues(values).(*Policy_FieldSubPathArrayOfValues) 1464 } 1465 1466 type PolicyPathSelectorSpecSupportingQueriesRestListQuery struct{} 1467 1468 func (PolicyPathSelectorSpecSupportingQueriesRestListQuery) FieldPath() *Policy_FieldSubPath { 1469 return &Policy_FieldSubPath{ 1470 selector: Policy_FieldPathSelectorSpec, 1471 subPath: rcommon.NewPolicySpecFieldPathBuilder().SupportingQueries().RestListQuery().FieldPath(), 1472 } 1473 } 1474 1475 func (s PolicyPathSelectorSpecSupportingQueriesRestListQuery) WithValue(value *rcommon.PolicySpec_SupportingAlertQuery_RestListQuery) *Policy_FieldSubPathValue { 1476 return s.FieldPath().WithIValue(value).(*Policy_FieldSubPathValue) 1477 } 1478 1479 func (s PolicyPathSelectorSpecSupportingQueriesRestListQuery) WithArrayOfValues(values []*rcommon.PolicySpec_SupportingAlertQuery_RestListQuery) *Policy_FieldSubPathArrayOfValues { 1480 return s.FieldPath().WithIArrayOfValues(values).(*Policy_FieldSubPathArrayOfValues) 1481 } 1482 1483 func (PolicyPathSelectorSpecSupportingQueriesRestListQuery) Description() PolicyPathSelectorSpecSupportingQueriesRestListQueryDescription { 1484 return PolicyPathSelectorSpecSupportingQueriesRestListQueryDescription{} 1485 } 1486 1487 func (PolicyPathSelectorSpecSupportingQueriesRestListQuery) Endpoint() PolicyPathSelectorSpecSupportingQueriesRestListQueryEndpoint { 1488 return PolicyPathSelectorSpecSupportingQueriesRestListQueryEndpoint{} 1489 } 1490 1491 func (PolicyPathSelectorSpecSupportingQueriesRestListQuery) PathTemplate() PolicyPathSelectorSpecSupportingQueriesRestListQueryPathTemplate { 1492 return PolicyPathSelectorSpecSupportingQueriesRestListQueryPathTemplate{} 1493 } 1494 1495 func (PolicyPathSelectorSpecSupportingQueriesRestListQuery) View() PolicyPathSelectorSpecSupportingQueriesRestListQueryView { 1496 return PolicyPathSelectorSpecSupportingQueriesRestListQueryView{} 1497 } 1498 1499 func (PolicyPathSelectorSpecSupportingQueriesRestListQuery) FieldMask() PolicyPathSelectorSpecSupportingQueriesRestListQueryFieldMask { 1500 return PolicyPathSelectorSpecSupportingQueriesRestListQueryFieldMask{} 1501 } 1502 1503 func (PolicyPathSelectorSpecSupportingQueriesRestListQuery) FilterTemplate() PolicyPathSelectorSpecSupportingQueriesRestListQueryFilterTemplate { 1504 return PolicyPathSelectorSpecSupportingQueriesRestListQueryFilterTemplate{} 1505 } 1506 1507 type PolicyPathSelectorSpecSupportingQueriesRestListQueryDescription struct{} 1508 1509 func (PolicyPathSelectorSpecSupportingQueriesRestListQueryDescription) FieldPath() *Policy_FieldSubPath { 1510 return &Policy_FieldSubPath{ 1511 selector: Policy_FieldPathSelectorSpec, 1512 subPath: rcommon.NewPolicySpecFieldPathBuilder().SupportingQueries().RestListQuery().Description().FieldPath(), 1513 } 1514 } 1515 1516 func (s PolicyPathSelectorSpecSupportingQueriesRestListQueryDescription) WithValue(value string) *Policy_FieldSubPathValue { 1517 return s.FieldPath().WithIValue(value).(*Policy_FieldSubPathValue) 1518 } 1519 1520 func (s PolicyPathSelectorSpecSupportingQueriesRestListQueryDescription) WithArrayOfValues(values []string) *Policy_FieldSubPathArrayOfValues { 1521 return s.FieldPath().WithIArrayOfValues(values).(*Policy_FieldSubPathArrayOfValues) 1522 } 1523 1524 type PolicyPathSelectorSpecSupportingQueriesRestListQueryEndpoint struct{} 1525 1526 func (PolicyPathSelectorSpecSupportingQueriesRestListQueryEndpoint) FieldPath() *Policy_FieldSubPath { 1527 return &Policy_FieldSubPath{ 1528 selector: Policy_FieldPathSelectorSpec, 1529 subPath: rcommon.NewPolicySpecFieldPathBuilder().SupportingQueries().RestListQuery().Endpoint().FieldPath(), 1530 } 1531 } 1532 1533 func (s PolicyPathSelectorSpecSupportingQueriesRestListQueryEndpoint) WithValue(value string) *Policy_FieldSubPathValue { 1534 return s.FieldPath().WithIValue(value).(*Policy_FieldSubPathValue) 1535 } 1536 1537 func (s PolicyPathSelectorSpecSupportingQueriesRestListQueryEndpoint) WithArrayOfValues(values []string) *Policy_FieldSubPathArrayOfValues { 1538 return s.FieldPath().WithIArrayOfValues(values).(*Policy_FieldSubPathArrayOfValues) 1539 } 1540 1541 type PolicyPathSelectorSpecSupportingQueriesRestListQueryPathTemplate struct{} 1542 1543 func (PolicyPathSelectorSpecSupportingQueriesRestListQueryPathTemplate) FieldPath() *Policy_FieldSubPath { 1544 return &Policy_FieldSubPath{ 1545 selector: Policy_FieldPathSelectorSpec, 1546 subPath: rcommon.NewPolicySpecFieldPathBuilder().SupportingQueries().RestListQuery().PathTemplate().FieldPath(), 1547 } 1548 } 1549 1550 func (s PolicyPathSelectorSpecSupportingQueriesRestListQueryPathTemplate) WithValue(value string) *Policy_FieldSubPathValue { 1551 return s.FieldPath().WithIValue(value).(*Policy_FieldSubPathValue) 1552 } 1553 1554 func (s PolicyPathSelectorSpecSupportingQueriesRestListQueryPathTemplate) WithArrayOfValues(values []string) *Policy_FieldSubPathArrayOfValues { 1555 return s.FieldPath().WithIArrayOfValues(values).(*Policy_FieldSubPathArrayOfValues) 1556 } 1557 1558 type PolicyPathSelectorSpecSupportingQueriesRestListQueryView struct{} 1559 1560 func (PolicyPathSelectorSpecSupportingQueriesRestListQueryView) FieldPath() *Policy_FieldSubPath { 1561 return &Policy_FieldSubPath{ 1562 selector: Policy_FieldPathSelectorSpec, 1563 subPath: rcommon.NewPolicySpecFieldPathBuilder().SupportingQueries().RestListQuery().View().FieldPath(), 1564 } 1565 } 1566 1567 func (s PolicyPathSelectorSpecSupportingQueriesRestListQueryView) WithValue(value string) *Policy_FieldSubPathValue { 1568 return s.FieldPath().WithIValue(value).(*Policy_FieldSubPathValue) 1569 } 1570 1571 func (s PolicyPathSelectorSpecSupportingQueriesRestListQueryView) WithArrayOfValues(values []string) *Policy_FieldSubPathArrayOfValues { 1572 return s.FieldPath().WithIArrayOfValues(values).(*Policy_FieldSubPathArrayOfValues) 1573 } 1574 1575 type PolicyPathSelectorSpecSupportingQueriesRestListQueryFieldMask struct{} 1576 1577 func (PolicyPathSelectorSpecSupportingQueriesRestListQueryFieldMask) FieldPath() *Policy_FieldSubPath { 1578 return &Policy_FieldSubPath{ 1579 selector: Policy_FieldPathSelectorSpec, 1580 subPath: rcommon.NewPolicySpecFieldPathBuilder().SupportingQueries().RestListQuery().FieldMask().FieldPath(), 1581 } 1582 } 1583 1584 func (s PolicyPathSelectorSpecSupportingQueriesRestListQueryFieldMask) WithValue(value string) *Policy_FieldSubPathValue { 1585 return s.FieldPath().WithIValue(value).(*Policy_FieldSubPathValue) 1586 } 1587 1588 func (s PolicyPathSelectorSpecSupportingQueriesRestListQueryFieldMask) WithArrayOfValues(values []string) *Policy_FieldSubPathArrayOfValues { 1589 return s.FieldPath().WithIArrayOfValues(values).(*Policy_FieldSubPathArrayOfValues) 1590 } 1591 1592 type PolicyPathSelectorSpecSupportingQueriesRestListQueryFilterTemplate struct{} 1593 1594 func (PolicyPathSelectorSpecSupportingQueriesRestListQueryFilterTemplate) FieldPath() *Policy_FieldSubPath { 1595 return &Policy_FieldSubPath{ 1596 selector: Policy_FieldPathSelectorSpec, 1597 subPath: rcommon.NewPolicySpecFieldPathBuilder().SupportingQueries().RestListQuery().FilterTemplate().FieldPath(), 1598 } 1599 } 1600 1601 func (s PolicyPathSelectorSpecSupportingQueriesRestListQueryFilterTemplate) WithValue(value string) *Policy_FieldSubPathValue { 1602 return s.FieldPath().WithIValue(value).(*Policy_FieldSubPathValue) 1603 } 1604 1605 func (s PolicyPathSelectorSpecSupportingQueriesRestListQueryFilterTemplate) WithArrayOfValues(values []string) *Policy_FieldSubPathArrayOfValues { 1606 return s.FieldPath().WithIArrayOfValues(values).(*Policy_FieldSubPathArrayOfValues) 1607 } 1608 1609 type PolicyPathSelectorSpecAiAgent struct{} 1610 1611 func (PolicyPathSelectorSpecAiAgent) FieldPath() *Policy_FieldSubPath { 1612 return &Policy_FieldSubPath{ 1613 selector: Policy_FieldPathSelectorSpec, 1614 subPath: rcommon.NewPolicySpecFieldPathBuilder().AiAgent().FieldPath(), 1615 } 1616 } 1617 1618 func (s PolicyPathSelectorSpecAiAgent) WithValue(value *rcommon.PolicySpec_AIAgentHandling) *Policy_FieldSubPathValue { 1619 return s.FieldPath().WithIValue(value).(*Policy_FieldSubPathValue) 1620 } 1621 1622 func (s PolicyPathSelectorSpecAiAgent) WithArrayOfValues(values []*rcommon.PolicySpec_AIAgentHandling) *Policy_FieldSubPathArrayOfValues { 1623 return s.FieldPath().WithIArrayOfValues(values).(*Policy_FieldSubPathArrayOfValues) 1624 } 1625 1626 func (PolicyPathSelectorSpecAiAgent) Enabled() PolicyPathSelectorSpecAiAgentEnabled { 1627 return PolicyPathSelectorSpecAiAgentEnabled{} 1628 } 1629 1630 func (PolicyPathSelectorSpecAiAgent) EnabledConnectivity() PolicyPathSelectorSpecAiAgentEnabledConnectivity { 1631 return PolicyPathSelectorSpecAiAgentEnabledConnectivity{} 1632 } 1633 1634 func (PolicyPathSelectorSpecAiAgent) AutoAcceptRemediation() PolicyPathSelectorSpecAiAgentAutoAcceptRemediation { 1635 return PolicyPathSelectorSpecAiAgentAutoAcceptRemediation{} 1636 } 1637 1638 func (PolicyPathSelectorSpecAiAgent) EdgeConnectivity() PolicyPathSelectorSpecAiAgentEdgeConnectivity { 1639 return PolicyPathSelectorSpecAiAgentEdgeConnectivity{} 1640 } 1641 1642 func (PolicyPathSelectorSpecAiAgent) RemediationOptions() PolicyPathSelectorSpecAiAgentRemediationOptions { 1643 return PolicyPathSelectorSpecAiAgentRemediationOptions{} 1644 } 1645 1646 type PolicyPathSelectorSpecAiAgentEnabled struct{} 1647 1648 func (PolicyPathSelectorSpecAiAgentEnabled) FieldPath() *Policy_FieldSubPath { 1649 return &Policy_FieldSubPath{ 1650 selector: Policy_FieldPathSelectorSpec, 1651 subPath: rcommon.NewPolicySpecFieldPathBuilder().AiAgent().Enabled().FieldPath(), 1652 } 1653 } 1654 1655 func (s PolicyPathSelectorSpecAiAgentEnabled) WithValue(value bool) *Policy_FieldSubPathValue { 1656 return s.FieldPath().WithIValue(value).(*Policy_FieldSubPathValue) 1657 } 1658 1659 func (s PolicyPathSelectorSpecAiAgentEnabled) WithArrayOfValues(values []bool) *Policy_FieldSubPathArrayOfValues { 1660 return s.FieldPath().WithIArrayOfValues(values).(*Policy_FieldSubPathArrayOfValues) 1661 } 1662 1663 type PolicyPathSelectorSpecAiAgentEnabledConnectivity struct{} 1664 1665 func (PolicyPathSelectorSpecAiAgentEnabledConnectivity) FieldPath() *Policy_FieldSubPath { 1666 return &Policy_FieldSubPath{ 1667 selector: Policy_FieldPathSelectorSpec, 1668 subPath: rcommon.NewPolicySpecFieldPathBuilder().AiAgent().EnabledConnectivity().FieldPath(), 1669 } 1670 } 1671 1672 func (s PolicyPathSelectorSpecAiAgentEnabledConnectivity) WithValue(value bool) *Policy_FieldSubPathValue { 1673 return s.FieldPath().WithIValue(value).(*Policy_FieldSubPathValue) 1674 } 1675 1676 func (s PolicyPathSelectorSpecAiAgentEnabledConnectivity) WithArrayOfValues(values []bool) *Policy_FieldSubPathArrayOfValues { 1677 return s.FieldPath().WithIArrayOfValues(values).(*Policy_FieldSubPathArrayOfValues) 1678 } 1679 1680 type PolicyPathSelectorSpecAiAgentAutoAcceptRemediation struct{} 1681 1682 func (PolicyPathSelectorSpecAiAgentAutoAcceptRemediation) FieldPath() *Policy_FieldSubPath { 1683 return &Policy_FieldSubPath{ 1684 selector: Policy_FieldPathSelectorSpec, 1685 subPath: rcommon.NewPolicySpecFieldPathBuilder().AiAgent().AutoAcceptRemediation().FieldPath(), 1686 } 1687 } 1688 1689 func (s PolicyPathSelectorSpecAiAgentAutoAcceptRemediation) WithValue(value bool) *Policy_FieldSubPathValue { 1690 return s.FieldPath().WithIValue(value).(*Policy_FieldSubPathValue) 1691 } 1692 1693 func (s PolicyPathSelectorSpecAiAgentAutoAcceptRemediation) WithArrayOfValues(values []bool) *Policy_FieldSubPathArrayOfValues { 1694 return s.FieldPath().WithIArrayOfValues(values).(*Policy_FieldSubPathArrayOfValues) 1695 } 1696 1697 type PolicyPathSelectorSpecAiAgentEdgeConnectivity struct{} 1698 1699 func (PolicyPathSelectorSpecAiAgentEdgeConnectivity) FieldPath() *Policy_FieldSubPath { 1700 return &Policy_FieldSubPath{ 1701 selector: Policy_FieldPathSelectorSpec, 1702 subPath: rcommon.NewPolicySpecFieldPathBuilder().AiAgent().EdgeConnectivity().FieldPath(), 1703 } 1704 } 1705 1706 func (s PolicyPathSelectorSpecAiAgentEdgeConnectivity) WithValue(value *rcommon.PolicySpec_AIAgentHandling_EdgeConnectivity) *Policy_FieldSubPathValue { 1707 return s.FieldPath().WithIValue(value).(*Policy_FieldSubPathValue) 1708 } 1709 1710 func (s PolicyPathSelectorSpecAiAgentEdgeConnectivity) WithArrayOfValues(values []*rcommon.PolicySpec_AIAgentHandling_EdgeConnectivity) *Policy_FieldSubPathArrayOfValues { 1711 return s.FieldPath().WithIArrayOfValues(values).(*Policy_FieldSubPathArrayOfValues) 1712 } 1713 1714 func (PolicyPathSelectorSpecAiAgentEdgeConnectivity) DeviceSsh() PolicyPathSelectorSpecAiAgentEdgeConnectivityDeviceSsh { 1715 return PolicyPathSelectorSpecAiAgentEdgeConnectivityDeviceSsh{} 1716 } 1717 1718 func (PolicyPathSelectorSpecAiAgentEdgeConnectivity) ProxiesSsh() PolicyPathSelectorSpecAiAgentEdgeConnectivityProxiesSsh { 1719 return PolicyPathSelectorSpecAiAgentEdgeConnectivityProxiesSsh{} 1720 } 1721 1722 func (PolicyPathSelectorSpecAiAgentEdgeConnectivity) PodSsh() PolicyPathSelectorSpecAiAgentEdgeConnectivityPodSsh { 1723 return PolicyPathSelectorSpecAiAgentEdgeConnectivityPodSsh{} 1724 } 1725 1726 func (PolicyPathSelectorSpecAiAgentEdgeConnectivity) AllowedBins() PolicyPathSelectorSpecAiAgentEdgeConnectivityAllowedBins { 1727 return PolicyPathSelectorSpecAiAgentEdgeConnectivityAllowedBins{} 1728 } 1729 1730 type PolicyPathSelectorSpecAiAgentEdgeConnectivityDeviceSsh struct{} 1731 1732 func (PolicyPathSelectorSpecAiAgentEdgeConnectivityDeviceSsh) FieldPath() *Policy_FieldSubPath { 1733 return &Policy_FieldSubPath{ 1734 selector: Policy_FieldPathSelectorSpec, 1735 subPath: rcommon.NewPolicySpecFieldPathBuilder().AiAgent().EdgeConnectivity().DeviceSsh().FieldPath(), 1736 } 1737 } 1738 1739 func (s PolicyPathSelectorSpecAiAgentEdgeConnectivityDeviceSsh) WithValue(value *rcommon.PolicySpec_AIAgentHandling_EdgeConnectivity_DeviceSSH) *Policy_FieldSubPathValue { 1740 return s.FieldPath().WithIValue(value).(*Policy_FieldSubPathValue) 1741 } 1742 1743 func (s PolicyPathSelectorSpecAiAgentEdgeConnectivityDeviceSsh) WithArrayOfValues(values []*rcommon.PolicySpec_AIAgentHandling_EdgeConnectivity_DeviceSSH) *Policy_FieldSubPathArrayOfValues { 1744 return s.FieldPath().WithIArrayOfValues(values).(*Policy_FieldSubPathArrayOfValues) 1745 } 1746 1747 func (PolicyPathSelectorSpecAiAgentEdgeConnectivityDeviceSsh) ClientName() PolicyPathSelectorSpecAiAgentEdgeConnectivityDeviceSshClientName { 1748 return PolicyPathSelectorSpecAiAgentEdgeConnectivityDeviceSshClientName{} 1749 } 1750 1751 type PolicyPathSelectorSpecAiAgentEdgeConnectivityDeviceSshClientName struct{} 1752 1753 func (PolicyPathSelectorSpecAiAgentEdgeConnectivityDeviceSshClientName) FieldPath() *Policy_FieldSubPath { 1754 return &Policy_FieldSubPath{ 1755 selector: Policy_FieldPathSelectorSpec, 1756 subPath: rcommon.NewPolicySpecFieldPathBuilder().AiAgent().EdgeConnectivity().DeviceSsh().ClientName().FieldPath(), 1757 } 1758 } 1759 1760 func (s PolicyPathSelectorSpecAiAgentEdgeConnectivityDeviceSshClientName) WithValue(value string) *Policy_FieldSubPathValue { 1761 return s.FieldPath().WithIValue(value).(*Policy_FieldSubPathValue) 1762 } 1763 1764 func (s PolicyPathSelectorSpecAiAgentEdgeConnectivityDeviceSshClientName) WithArrayOfValues(values []string) *Policy_FieldSubPathArrayOfValues { 1765 return s.FieldPath().WithIArrayOfValues(values).(*Policy_FieldSubPathArrayOfValues) 1766 } 1767 1768 type PolicyPathSelectorSpecAiAgentEdgeConnectivityProxiesSsh struct{} 1769 1770 func (PolicyPathSelectorSpecAiAgentEdgeConnectivityProxiesSsh) FieldPath() *Policy_FieldSubPath { 1771 return &Policy_FieldSubPath{ 1772 selector: Policy_FieldPathSelectorSpec, 1773 subPath: rcommon.NewPolicySpecFieldPathBuilder().AiAgent().EdgeConnectivity().ProxiesSsh().FieldPath(), 1774 } 1775 } 1776 1777 func (s PolicyPathSelectorSpecAiAgentEdgeConnectivityProxiesSsh) WithValue(value *rcommon.PolicySpec_AIAgentHandling_EdgeConnectivity_ProxiesSSH) *Policy_FieldSubPathValue { 1778 return s.FieldPath().WithIValue(value).(*Policy_FieldSubPathValue) 1779 } 1780 1781 func (s PolicyPathSelectorSpecAiAgentEdgeConnectivityProxiesSsh) WithArrayOfValues(values []*rcommon.PolicySpec_AIAgentHandling_EdgeConnectivity_ProxiesSSH) *Policy_FieldSubPathArrayOfValues { 1782 return s.FieldPath().WithIArrayOfValues(values).(*Policy_FieldSubPathArrayOfValues) 1783 } 1784 1785 func (PolicyPathSelectorSpecAiAgentEdgeConnectivityProxiesSsh) ServiceDomain() PolicyPathSelectorSpecAiAgentEdgeConnectivityProxiesSshServiceDomain { 1786 return PolicyPathSelectorSpecAiAgentEdgeConnectivityProxiesSshServiceDomain{} 1787 } 1788 1789 func (PolicyPathSelectorSpecAiAgentEdgeConnectivityProxiesSsh) ProviderNameTmpl() PolicyPathSelectorSpecAiAgentEdgeConnectivityProxiesSshProviderNameTmpl { 1790 return PolicyPathSelectorSpecAiAgentEdgeConnectivityProxiesSshProviderNameTmpl{} 1791 } 1792 1793 func (PolicyPathSelectorSpecAiAgentEdgeConnectivityProxiesSsh) ClientName() PolicyPathSelectorSpecAiAgentEdgeConnectivityProxiesSshClientName { 1794 return PolicyPathSelectorSpecAiAgentEdgeConnectivityProxiesSshClientName{} 1795 } 1796 1797 func (PolicyPathSelectorSpecAiAgentEdgeConnectivityProxiesSsh) ServiceName() PolicyPathSelectorSpecAiAgentEdgeConnectivityProxiesSshServiceName { 1798 return PolicyPathSelectorSpecAiAgentEdgeConnectivityProxiesSshServiceName{} 1799 } 1800 1801 type PolicyPathSelectorSpecAiAgentEdgeConnectivityProxiesSshServiceDomain struct{} 1802 1803 func (PolicyPathSelectorSpecAiAgentEdgeConnectivityProxiesSshServiceDomain) FieldPath() *Policy_FieldSubPath { 1804 return &Policy_FieldSubPath{ 1805 selector: Policy_FieldPathSelectorSpec, 1806 subPath: rcommon.NewPolicySpecFieldPathBuilder().AiAgent().EdgeConnectivity().ProxiesSsh().ServiceDomain().FieldPath(), 1807 } 1808 } 1809 1810 func (s PolicyPathSelectorSpecAiAgentEdgeConnectivityProxiesSshServiceDomain) WithValue(value string) *Policy_FieldSubPathValue { 1811 return s.FieldPath().WithIValue(value).(*Policy_FieldSubPathValue) 1812 } 1813 1814 func (s PolicyPathSelectorSpecAiAgentEdgeConnectivityProxiesSshServiceDomain) WithArrayOfValues(values []string) *Policy_FieldSubPathArrayOfValues { 1815 return s.FieldPath().WithIArrayOfValues(values).(*Policy_FieldSubPathArrayOfValues) 1816 } 1817 1818 type PolicyPathSelectorSpecAiAgentEdgeConnectivityProxiesSshProviderNameTmpl struct{} 1819 1820 func (PolicyPathSelectorSpecAiAgentEdgeConnectivityProxiesSshProviderNameTmpl) FieldPath() *Policy_FieldSubPath { 1821 return &Policy_FieldSubPath{ 1822 selector: Policy_FieldPathSelectorSpec, 1823 subPath: rcommon.NewPolicySpecFieldPathBuilder().AiAgent().EdgeConnectivity().ProxiesSsh().ProviderNameTmpl().FieldPath(), 1824 } 1825 } 1826 1827 func (s PolicyPathSelectorSpecAiAgentEdgeConnectivityProxiesSshProviderNameTmpl) WithValue(value string) *Policy_FieldSubPathValue { 1828 return s.FieldPath().WithIValue(value).(*Policy_FieldSubPathValue) 1829 } 1830 1831 func (s PolicyPathSelectorSpecAiAgentEdgeConnectivityProxiesSshProviderNameTmpl) WithArrayOfValues(values []string) *Policy_FieldSubPathArrayOfValues { 1832 return s.FieldPath().WithIArrayOfValues(values).(*Policy_FieldSubPathArrayOfValues) 1833 } 1834 1835 type PolicyPathSelectorSpecAiAgentEdgeConnectivityProxiesSshClientName struct{} 1836 1837 func (PolicyPathSelectorSpecAiAgentEdgeConnectivityProxiesSshClientName) FieldPath() *Policy_FieldSubPath { 1838 return &Policy_FieldSubPath{ 1839 selector: Policy_FieldPathSelectorSpec, 1840 subPath: rcommon.NewPolicySpecFieldPathBuilder().AiAgent().EdgeConnectivity().ProxiesSsh().ClientName().FieldPath(), 1841 } 1842 } 1843 1844 func (s PolicyPathSelectorSpecAiAgentEdgeConnectivityProxiesSshClientName) WithValue(value string) *Policy_FieldSubPathValue { 1845 return s.FieldPath().WithIValue(value).(*Policy_FieldSubPathValue) 1846 } 1847 1848 func (s PolicyPathSelectorSpecAiAgentEdgeConnectivityProxiesSshClientName) WithArrayOfValues(values []string) *Policy_FieldSubPathArrayOfValues { 1849 return s.FieldPath().WithIArrayOfValues(values).(*Policy_FieldSubPathArrayOfValues) 1850 } 1851 1852 type PolicyPathSelectorSpecAiAgentEdgeConnectivityProxiesSshServiceName struct{} 1853 1854 func (PolicyPathSelectorSpecAiAgentEdgeConnectivityProxiesSshServiceName) FieldPath() *Policy_FieldSubPath { 1855 return &Policy_FieldSubPath{ 1856 selector: Policy_FieldPathSelectorSpec, 1857 subPath: rcommon.NewPolicySpecFieldPathBuilder().AiAgent().EdgeConnectivity().ProxiesSsh().ServiceName().FieldPath(), 1858 } 1859 } 1860 1861 func (s PolicyPathSelectorSpecAiAgentEdgeConnectivityProxiesSshServiceName) WithValue(value string) *Policy_FieldSubPathValue { 1862 return s.FieldPath().WithIValue(value).(*Policy_FieldSubPathValue) 1863 } 1864 1865 func (s PolicyPathSelectorSpecAiAgentEdgeConnectivityProxiesSshServiceName) WithArrayOfValues(values []string) *Policy_FieldSubPathArrayOfValues { 1866 return s.FieldPath().WithIArrayOfValues(values).(*Policy_FieldSubPathArrayOfValues) 1867 } 1868 1869 type PolicyPathSelectorSpecAiAgentEdgeConnectivityPodSsh struct{} 1870 1871 func (PolicyPathSelectorSpecAiAgentEdgeConnectivityPodSsh) FieldPath() *Policy_FieldSubPath { 1872 return &Policy_FieldSubPath{ 1873 selector: Policy_FieldPathSelectorSpec, 1874 subPath: rcommon.NewPolicySpecFieldPathBuilder().AiAgent().EdgeConnectivity().PodSsh().FieldPath(), 1875 } 1876 } 1877 1878 func (s PolicyPathSelectorSpecAiAgentEdgeConnectivityPodSsh) WithValue(value *rcommon.PolicySpec_AIAgentHandling_EdgeConnectivity_PodSSH) *Policy_FieldSubPathValue { 1879 return s.FieldPath().WithIValue(value).(*Policy_FieldSubPathValue) 1880 } 1881 1882 func (s PolicyPathSelectorSpecAiAgentEdgeConnectivityPodSsh) WithArrayOfValues(values []*rcommon.PolicySpec_AIAgentHandling_EdgeConnectivity_PodSSH) *Policy_FieldSubPathArrayOfValues { 1883 return s.FieldPath().WithIArrayOfValues(values).(*Policy_FieldSubPathArrayOfValues) 1884 } 1885 1886 func (PolicyPathSelectorSpecAiAgentEdgeConnectivityPodSsh) ClientName() PolicyPathSelectorSpecAiAgentEdgeConnectivityPodSshClientName { 1887 return PolicyPathSelectorSpecAiAgentEdgeConnectivityPodSshClientName{} 1888 } 1889 1890 func (PolicyPathSelectorSpecAiAgentEdgeConnectivityPodSsh) Username() PolicyPathSelectorSpecAiAgentEdgeConnectivityPodSshUsername { 1891 return PolicyPathSelectorSpecAiAgentEdgeConnectivityPodSshUsername{} 1892 } 1893 1894 type PolicyPathSelectorSpecAiAgentEdgeConnectivityPodSshClientName struct{} 1895 1896 func (PolicyPathSelectorSpecAiAgentEdgeConnectivityPodSshClientName) FieldPath() *Policy_FieldSubPath { 1897 return &Policy_FieldSubPath{ 1898 selector: Policy_FieldPathSelectorSpec, 1899 subPath: rcommon.NewPolicySpecFieldPathBuilder().AiAgent().EdgeConnectivity().PodSsh().ClientName().FieldPath(), 1900 } 1901 } 1902 1903 func (s PolicyPathSelectorSpecAiAgentEdgeConnectivityPodSshClientName) WithValue(value string) *Policy_FieldSubPathValue { 1904 return s.FieldPath().WithIValue(value).(*Policy_FieldSubPathValue) 1905 } 1906 1907 func (s PolicyPathSelectorSpecAiAgentEdgeConnectivityPodSshClientName) WithArrayOfValues(values []string) *Policy_FieldSubPathArrayOfValues { 1908 return s.FieldPath().WithIArrayOfValues(values).(*Policy_FieldSubPathArrayOfValues) 1909 } 1910 1911 type PolicyPathSelectorSpecAiAgentEdgeConnectivityPodSshUsername struct{} 1912 1913 func (PolicyPathSelectorSpecAiAgentEdgeConnectivityPodSshUsername) FieldPath() *Policy_FieldSubPath { 1914 return &Policy_FieldSubPath{ 1915 selector: Policy_FieldPathSelectorSpec, 1916 subPath: rcommon.NewPolicySpecFieldPathBuilder().AiAgent().EdgeConnectivity().PodSsh().Username().FieldPath(), 1917 } 1918 } 1919 1920 func (s PolicyPathSelectorSpecAiAgentEdgeConnectivityPodSshUsername) WithValue(value string) *Policy_FieldSubPathValue { 1921 return s.FieldPath().WithIValue(value).(*Policy_FieldSubPathValue) 1922 } 1923 1924 func (s PolicyPathSelectorSpecAiAgentEdgeConnectivityPodSshUsername) WithArrayOfValues(values []string) *Policy_FieldSubPathArrayOfValues { 1925 return s.FieldPath().WithIArrayOfValues(values).(*Policy_FieldSubPathArrayOfValues) 1926 } 1927 1928 type PolicyPathSelectorSpecAiAgentEdgeConnectivityAllowedBins struct{} 1929 1930 func (PolicyPathSelectorSpecAiAgentEdgeConnectivityAllowedBins) FieldPath() *Policy_FieldSubPath { 1931 return &Policy_FieldSubPath{ 1932 selector: Policy_FieldPathSelectorSpec, 1933 subPath: rcommon.NewPolicySpecFieldPathBuilder().AiAgent().EdgeConnectivity().AllowedBins().FieldPath(), 1934 } 1935 } 1936 1937 func (s PolicyPathSelectorSpecAiAgentEdgeConnectivityAllowedBins) WithValue(value []string) *Policy_FieldSubPathValue { 1938 return s.FieldPath().WithIValue(value).(*Policy_FieldSubPathValue) 1939 } 1940 1941 func (s PolicyPathSelectorSpecAiAgentEdgeConnectivityAllowedBins) WithArrayOfValues(values [][]string) *Policy_FieldSubPathArrayOfValues { 1942 return s.FieldPath().WithIArrayOfValues(values).(*Policy_FieldSubPathArrayOfValues) 1943 } 1944 1945 func (s PolicyPathSelectorSpecAiAgentEdgeConnectivityAllowedBins) WithItemValue(value string) *Policy_FieldSubPathArrayItemValue { 1946 return s.FieldPath().WithIArrayItemValue(value).(*Policy_FieldSubPathArrayItemValue) 1947 } 1948 1949 type PolicyPathSelectorSpecAiAgentRemediationOptions struct{} 1950 1951 func (PolicyPathSelectorSpecAiAgentRemediationOptions) FieldPath() *Policy_FieldSubPath { 1952 return &Policy_FieldSubPath{ 1953 selector: Policy_FieldPathSelectorSpec, 1954 subPath: rcommon.NewPolicySpecFieldPathBuilder().AiAgent().RemediationOptions().FieldPath(), 1955 } 1956 } 1957 1958 func (s PolicyPathSelectorSpecAiAgentRemediationOptions) WithValue(value []*rcommon.PolicySpec_AIAgentHandling_Remediation) *Policy_FieldSubPathValue { 1959 return s.FieldPath().WithIValue(value).(*Policy_FieldSubPathValue) 1960 } 1961 1962 func (s PolicyPathSelectorSpecAiAgentRemediationOptions) WithArrayOfValues(values [][]*rcommon.PolicySpec_AIAgentHandling_Remediation) *Policy_FieldSubPathArrayOfValues { 1963 return s.FieldPath().WithIArrayOfValues(values).(*Policy_FieldSubPathArrayOfValues) 1964 } 1965 1966 func (s PolicyPathSelectorSpecAiAgentRemediationOptions) WithItemValue(value *rcommon.PolicySpec_AIAgentHandling_Remediation) *Policy_FieldSubPathArrayItemValue { 1967 return s.FieldPath().WithIArrayItemValue(value).(*Policy_FieldSubPathArrayItemValue) 1968 } 1969 1970 func (PolicyPathSelectorSpecAiAgentRemediationOptions) FixInSsh() PolicyPathSelectorSpecAiAgentRemediationOptionsFixInSsh { 1971 return PolicyPathSelectorSpecAiAgentRemediationOptionsFixInSsh{} 1972 } 1973 1974 func (PolicyPathSelectorSpecAiAgentRemediationOptions) Reboot() PolicyPathSelectorSpecAiAgentRemediationOptionsReboot { 1975 return PolicyPathSelectorSpecAiAgentRemediationOptionsReboot{} 1976 } 1977 1978 type PolicyPathSelectorSpecAiAgentRemediationOptionsFixInSsh struct{} 1979 1980 func (PolicyPathSelectorSpecAiAgentRemediationOptionsFixInSsh) FieldPath() *Policy_FieldSubPath { 1981 return &Policy_FieldSubPath{ 1982 selector: Policy_FieldPathSelectorSpec, 1983 subPath: rcommon.NewPolicySpecFieldPathBuilder().AiAgent().RemediationOptions().FixInSsh().FieldPath(), 1984 } 1985 } 1986 1987 func (s PolicyPathSelectorSpecAiAgentRemediationOptionsFixInSsh) WithValue(value *rcommon.PolicySpec_AIAgentHandling_Remediation_FixInSSH) *Policy_FieldSubPathValue { 1988 return s.FieldPath().WithIValue(value).(*Policy_FieldSubPathValue) 1989 } 1990 1991 func (s PolicyPathSelectorSpecAiAgentRemediationOptionsFixInSsh) WithArrayOfValues(values []*rcommon.PolicySpec_AIAgentHandling_Remediation_FixInSSH) *Policy_FieldSubPathArrayOfValues { 1992 return s.FieldPath().WithIArrayOfValues(values).(*Policy_FieldSubPathArrayOfValues) 1993 } 1994 1995 type PolicyPathSelectorSpecAiAgentRemediationOptionsReboot struct{} 1996 1997 func (PolicyPathSelectorSpecAiAgentRemediationOptionsReboot) FieldPath() *Policy_FieldSubPath { 1998 return &Policy_FieldSubPath{ 1999 selector: Policy_FieldPathSelectorSpec, 2000 subPath: rcommon.NewPolicySpecFieldPathBuilder().AiAgent().RemediationOptions().Reboot().FieldPath(), 2001 } 2002 } 2003 2004 func (s PolicyPathSelectorSpecAiAgentRemediationOptionsReboot) WithValue(value *rcommon.PolicySpec_AIAgentHandling_Remediation_Reboot) *Policy_FieldSubPathValue { 2005 return s.FieldPath().WithIValue(value).(*Policy_FieldSubPathValue) 2006 } 2007 2008 func (s PolicyPathSelectorSpecAiAgentRemediationOptionsReboot) WithArrayOfValues(values []*rcommon.PolicySpec_AIAgentHandling_Remediation_Reboot) *Policy_FieldSubPathArrayOfValues { 2009 return s.FieldPath().WithIArrayOfValues(values).(*Policy_FieldSubPathArrayOfValues) 2010 } 2011 2012 type PolicyPathSelectorTemplateSource struct{} 2013 2014 func (PolicyPathSelectorTemplateSource) FieldPath() *Policy_FieldTerminalPath { 2015 return &Policy_FieldTerminalPath{selector: Policy_FieldPathSelectorTemplateSource} 2016 } 2017 2018 func (s PolicyPathSelectorTemplateSource) WithValue(value *Policy_TemplateSource) *Policy_FieldTerminalPathValue { 2019 return s.FieldPath().WithIValue(value).(*Policy_FieldTerminalPathValue) 2020 } 2021 2022 func (s PolicyPathSelectorTemplateSource) WithArrayOfValues(values []*Policy_TemplateSource) *Policy_FieldTerminalPathArrayOfValues { 2023 return s.FieldPath().WithIArrayOfValues(values).(*Policy_FieldTerminalPathArrayOfValues) 2024 } 2025 2026 func (PolicyPathSelectorTemplateSource) WithSubPath(subPath PolicyTemplateSource_FieldPath) *Policy_FieldSubPath { 2027 return &Policy_FieldSubPath{selector: Policy_FieldPathSelectorTemplateSource, subPath: subPath} 2028 } 2029 2030 func (s PolicyPathSelectorTemplateSource) WithSubValue(subPathValue PolicyTemplateSource_FieldPathValue) *Policy_FieldSubPathValue { 2031 return &Policy_FieldSubPathValue{Policy_FieldPath: s.WithSubPath(subPathValue), subPathValue: subPathValue} 2032 } 2033 2034 func (s PolicyPathSelectorTemplateSource) WithSubArrayOfValues(subPathArrayOfValues PolicyTemplateSource_FieldPathArrayOfValues) *Policy_FieldSubPathArrayOfValues { 2035 return &Policy_FieldSubPathArrayOfValues{Policy_FieldPath: s.WithSubPath(subPathArrayOfValues), subPathArrayOfValues: subPathArrayOfValues} 2036 } 2037 2038 func (s PolicyPathSelectorTemplateSource) WithSubArrayItemValue(subPathArrayItemValue PolicyTemplateSource_FieldPathArrayItemValue) *Policy_FieldSubPathArrayItemValue { 2039 return &Policy_FieldSubPathArrayItemValue{Policy_FieldPath: s.WithSubPath(subPathArrayItemValue), subPathItemValue: subPathArrayItemValue} 2040 } 2041 2042 func (PolicyPathSelectorTemplateSource) Template() PolicyPathSelectorTemplateSourceTemplate { 2043 return PolicyPathSelectorTemplateSourceTemplate{} 2044 } 2045 2046 func (PolicyPathSelectorTemplateSource) UpdatedFields() PolicyPathSelectorTemplateSourceUpdatedFields { 2047 return PolicyPathSelectorTemplateSourceUpdatedFields{} 2048 } 2049 2050 type PolicyPathSelectorTemplateSourceTemplate struct{} 2051 2052 func (PolicyPathSelectorTemplateSourceTemplate) FieldPath() *Policy_FieldSubPath { 2053 return &Policy_FieldSubPath{ 2054 selector: Policy_FieldPathSelectorTemplateSource, 2055 subPath: NewPolicyTemplateSourceFieldPathBuilder().Template().FieldPath(), 2056 } 2057 } 2058 2059 func (s PolicyPathSelectorTemplateSourceTemplate) WithValue(value *policy_template.Reference) *Policy_FieldSubPathValue { 2060 return s.FieldPath().WithIValue(value).(*Policy_FieldSubPathValue) 2061 } 2062 2063 func (s PolicyPathSelectorTemplateSourceTemplate) WithArrayOfValues(values []*policy_template.Reference) *Policy_FieldSubPathArrayOfValues { 2064 return s.FieldPath().WithIArrayOfValues(values).(*Policy_FieldSubPathArrayOfValues) 2065 } 2066 2067 type PolicyPathSelectorTemplateSourceUpdatedFields struct{} 2068 2069 func (PolicyPathSelectorTemplateSourceUpdatedFields) FieldPath() *Policy_FieldSubPath { 2070 return &Policy_FieldSubPath{ 2071 selector: Policy_FieldPathSelectorTemplateSource, 2072 subPath: NewPolicyTemplateSourceFieldPathBuilder().UpdatedFields().FieldPath(), 2073 } 2074 } 2075 2076 func (s PolicyPathSelectorTemplateSourceUpdatedFields) WithValue(value *fieldmaskpb.FieldMask) *Policy_FieldSubPathValue { 2077 return s.FieldPath().WithIValue(value).(*Policy_FieldSubPathValue) 2078 } 2079 2080 func (s PolicyPathSelectorTemplateSourceUpdatedFields) WithArrayOfValues(values []*fieldmaskpb.FieldMask) *Policy_FieldSubPathArrayOfValues { 2081 return s.FieldPath().WithIArrayOfValues(values).(*Policy_FieldSubPathArrayOfValues) 2082 } 2083 2084 type PolicyPathSelectorNotificationChannels struct{} 2085 2086 func (PolicyPathSelectorNotificationChannels) FieldPath() *Policy_FieldTerminalPath { 2087 return &Policy_FieldTerminalPath{selector: Policy_FieldPathSelectorNotificationChannels} 2088 } 2089 2090 func (s PolicyPathSelectorNotificationChannels) WithValue(value []*notification_channel.Reference) *Policy_FieldTerminalPathValue { 2091 return s.FieldPath().WithIValue(value).(*Policy_FieldTerminalPathValue) 2092 } 2093 2094 func (s PolicyPathSelectorNotificationChannels) WithArrayOfValues(values [][]*notification_channel.Reference) *Policy_FieldTerminalPathArrayOfValues { 2095 return s.FieldPath().WithIArrayOfValues(values).(*Policy_FieldTerminalPathArrayOfValues) 2096 } 2097 2098 func (s PolicyPathSelectorNotificationChannels) WithItemValue(value *notification_channel.Reference) *Policy_FieldTerminalPathArrayItemValue { 2099 return s.FieldPath().WithIArrayItemValue(value).(*Policy_FieldTerminalPathArrayItemValue) 2100 } 2101 2102 type PolicyTemplateSourceFieldPathBuilder struct{} 2103 2104 func NewPolicyTemplateSourceFieldPathBuilder() PolicyTemplateSourceFieldPathBuilder { 2105 return PolicyTemplateSourceFieldPathBuilder{} 2106 } 2107 func (PolicyTemplateSourceFieldPathBuilder) Template() Policy_TemplateSourcePathSelectorTemplate { 2108 return Policy_TemplateSourcePathSelectorTemplate{} 2109 } 2110 func (PolicyTemplateSourceFieldPathBuilder) UpdatedFields() Policy_TemplateSourcePathSelectorUpdatedFields { 2111 return Policy_TemplateSourcePathSelectorUpdatedFields{} 2112 } 2113 2114 type Policy_TemplateSourcePathSelectorTemplate struct{} 2115 2116 func (Policy_TemplateSourcePathSelectorTemplate) FieldPath() *PolicyTemplateSource_FieldTerminalPath { 2117 return &PolicyTemplateSource_FieldTerminalPath{selector: PolicyTemplateSource_FieldPathSelectorTemplate} 2118 } 2119 2120 func (s Policy_TemplateSourcePathSelectorTemplate) WithValue(value *policy_template.Reference) *PolicyTemplateSource_FieldTerminalPathValue { 2121 return s.FieldPath().WithIValue(value).(*PolicyTemplateSource_FieldTerminalPathValue) 2122 } 2123 2124 func (s Policy_TemplateSourcePathSelectorTemplate) WithArrayOfValues(values []*policy_template.Reference) *PolicyTemplateSource_FieldTerminalPathArrayOfValues { 2125 return s.FieldPath().WithIArrayOfValues(values).(*PolicyTemplateSource_FieldTerminalPathArrayOfValues) 2126 } 2127 2128 type Policy_TemplateSourcePathSelectorUpdatedFields struct{} 2129 2130 func (Policy_TemplateSourcePathSelectorUpdatedFields) FieldPath() *PolicyTemplateSource_FieldTerminalPath { 2131 return &PolicyTemplateSource_FieldTerminalPath{selector: PolicyTemplateSource_FieldPathSelectorUpdatedFields} 2132 } 2133 2134 func (s Policy_TemplateSourcePathSelectorUpdatedFields) WithValue(value *fieldmaskpb.FieldMask) *PolicyTemplateSource_FieldTerminalPathValue { 2135 return s.FieldPath().WithIValue(value).(*PolicyTemplateSource_FieldTerminalPathValue) 2136 } 2137 2138 func (s Policy_TemplateSourcePathSelectorUpdatedFields) WithArrayOfValues(values []*fieldmaskpb.FieldMask) *PolicyTemplateSource_FieldTerminalPathArrayOfValues { 2139 return s.FieldPath().WithIArrayOfValues(values).(*PolicyTemplateSource_FieldTerminalPathArrayOfValues) 2140 }