github.com/cloudwan/edgelq-sdk@v1.15.4/monitoring/resources/v4/alerting_policy/alerting_policy.pb.fieldpathbuilder.go (about) 1 // Code generated by protoc-gen-goten-object 2 // File: edgelq/monitoring/proto/v4/alerting_policy.proto 3 // DO NOT EDIT!!! 4 5 package alerting_policy 6 7 // proto imports 8 import ( 9 notification_channel "github.com/cloudwan/edgelq-sdk/monitoring/resources/v4/notification_channel" 10 project "github.com/cloudwan/edgelq-sdk/monitoring/resources/v4/project" 11 meta "github.com/cloudwan/goten-sdk/types/meta" 12 multi_region_policy "github.com/cloudwan/goten-sdk/types/multi_region_policy" 13 fieldmaskpb "google.golang.org/protobuf/types/known/fieldmaskpb" 14 timestamppb "google.golang.org/protobuf/types/known/timestamppb" 15 ) 16 17 // make sure we're using proto imports 18 var ( 19 _ = ¬ification_channel.NotificationChannel{} 20 _ = &project.Project{} 21 _ = &fieldmaskpb.FieldMask{} 22 _ = ×tamppb.Timestamp{} 23 _ = &meta.Meta{} 24 _ = &multi_region_policy.MultiRegionPolicy{} 25 ) 26 27 type AlertingPolicyFieldPathBuilder struct{} 28 29 func NewAlertingPolicyFieldPathBuilder() AlertingPolicyFieldPathBuilder { 30 return AlertingPolicyFieldPathBuilder{} 31 } 32 func (AlertingPolicyFieldPathBuilder) Name() AlertingPolicyPathSelectorName { 33 return AlertingPolicyPathSelectorName{} 34 } 35 func (AlertingPolicyFieldPathBuilder) Metadata() AlertingPolicyPathSelectorMetadata { 36 return AlertingPolicyPathSelectorMetadata{} 37 } 38 func (AlertingPolicyFieldPathBuilder) DisplayName() AlertingPolicyPathSelectorDisplayName { 39 return AlertingPolicyPathSelectorDisplayName{} 40 } 41 func (AlertingPolicyFieldPathBuilder) Description() AlertingPolicyPathSelectorDescription { 42 return AlertingPolicyPathSelectorDescription{} 43 } 44 func (AlertingPolicyFieldPathBuilder) Documentation() AlertingPolicyPathSelectorDocumentation { 45 return AlertingPolicyPathSelectorDocumentation{} 46 } 47 func (AlertingPolicyFieldPathBuilder) Spec() AlertingPolicyPathSelectorSpec { 48 return AlertingPolicyPathSelectorSpec{} 49 } 50 func (AlertingPolicyFieldPathBuilder) State() AlertingPolicyPathSelectorState { 51 return AlertingPolicyPathSelectorState{} 52 } 53 54 type AlertingPolicyPathSelectorName struct{} 55 56 func (AlertingPolicyPathSelectorName) FieldPath() *AlertingPolicy_FieldTerminalPath { 57 return &AlertingPolicy_FieldTerminalPath{selector: AlertingPolicy_FieldPathSelectorName} 58 } 59 60 func (s AlertingPolicyPathSelectorName) WithValue(value *Name) *AlertingPolicy_FieldTerminalPathValue { 61 return s.FieldPath().WithIValue(value).(*AlertingPolicy_FieldTerminalPathValue) 62 } 63 64 func (s AlertingPolicyPathSelectorName) WithArrayOfValues(values []*Name) *AlertingPolicy_FieldTerminalPathArrayOfValues { 65 return s.FieldPath().WithIArrayOfValues(values).(*AlertingPolicy_FieldTerminalPathArrayOfValues) 66 } 67 68 type AlertingPolicyPathSelectorMetadata struct{} 69 70 func (AlertingPolicyPathSelectorMetadata) FieldPath() *AlertingPolicy_FieldTerminalPath { 71 return &AlertingPolicy_FieldTerminalPath{selector: AlertingPolicy_FieldPathSelectorMetadata} 72 } 73 74 func (s AlertingPolicyPathSelectorMetadata) WithValue(value *meta.Meta) *AlertingPolicy_FieldTerminalPathValue { 75 return s.FieldPath().WithIValue(value).(*AlertingPolicy_FieldTerminalPathValue) 76 } 77 78 func (s AlertingPolicyPathSelectorMetadata) WithArrayOfValues(values []*meta.Meta) *AlertingPolicy_FieldTerminalPathArrayOfValues { 79 return s.FieldPath().WithIArrayOfValues(values).(*AlertingPolicy_FieldTerminalPathArrayOfValues) 80 } 81 82 func (AlertingPolicyPathSelectorMetadata) WithSubPath(subPath meta.Meta_FieldPath) *AlertingPolicy_FieldSubPath { 83 return &AlertingPolicy_FieldSubPath{selector: AlertingPolicy_FieldPathSelectorMetadata, subPath: subPath} 84 } 85 86 func (s AlertingPolicyPathSelectorMetadata) WithSubValue(subPathValue meta.Meta_FieldPathValue) *AlertingPolicy_FieldSubPathValue { 87 return &AlertingPolicy_FieldSubPathValue{AlertingPolicy_FieldPath: s.WithSubPath(subPathValue), subPathValue: subPathValue} 88 } 89 90 func (s AlertingPolicyPathSelectorMetadata) WithSubArrayOfValues(subPathArrayOfValues meta.Meta_FieldPathArrayOfValues) *AlertingPolicy_FieldSubPathArrayOfValues { 91 return &AlertingPolicy_FieldSubPathArrayOfValues{AlertingPolicy_FieldPath: s.WithSubPath(subPathArrayOfValues), subPathArrayOfValues: subPathArrayOfValues} 92 } 93 94 func (s AlertingPolicyPathSelectorMetadata) WithSubArrayItemValue(subPathArrayItemValue meta.Meta_FieldPathArrayItemValue) *AlertingPolicy_FieldSubPathArrayItemValue { 95 return &AlertingPolicy_FieldSubPathArrayItemValue{AlertingPolicy_FieldPath: s.WithSubPath(subPathArrayItemValue), subPathItemValue: subPathArrayItemValue} 96 } 97 98 func (AlertingPolicyPathSelectorMetadata) CreateTime() AlertingPolicyPathSelectorMetadataCreateTime { 99 return AlertingPolicyPathSelectorMetadataCreateTime{} 100 } 101 102 func (AlertingPolicyPathSelectorMetadata) UpdateTime() AlertingPolicyPathSelectorMetadataUpdateTime { 103 return AlertingPolicyPathSelectorMetadataUpdateTime{} 104 } 105 106 func (AlertingPolicyPathSelectorMetadata) DeleteTime() AlertingPolicyPathSelectorMetadataDeleteTime { 107 return AlertingPolicyPathSelectorMetadataDeleteTime{} 108 } 109 110 func (AlertingPolicyPathSelectorMetadata) Uuid() AlertingPolicyPathSelectorMetadataUuid { 111 return AlertingPolicyPathSelectorMetadataUuid{} 112 } 113 114 func (AlertingPolicyPathSelectorMetadata) Tags() AlertingPolicyPathSelectorMetadataTags { 115 return AlertingPolicyPathSelectorMetadataTags{} 116 } 117 118 func (AlertingPolicyPathSelectorMetadata) Labels() AlertingPolicyPathSelectorMetadataLabels { 119 return AlertingPolicyPathSelectorMetadataLabels{} 120 } 121 122 func (AlertingPolicyPathSelectorMetadata) Annotations() AlertingPolicyPathSelectorMetadataAnnotations { 123 return AlertingPolicyPathSelectorMetadataAnnotations{} 124 } 125 126 func (AlertingPolicyPathSelectorMetadata) Generation() AlertingPolicyPathSelectorMetadataGeneration { 127 return AlertingPolicyPathSelectorMetadataGeneration{} 128 } 129 130 func (AlertingPolicyPathSelectorMetadata) ResourceVersion() AlertingPolicyPathSelectorMetadataResourceVersion { 131 return AlertingPolicyPathSelectorMetadataResourceVersion{} 132 } 133 134 func (AlertingPolicyPathSelectorMetadata) OwnerReferences() AlertingPolicyPathSelectorMetadataOwnerReferences { 135 return AlertingPolicyPathSelectorMetadataOwnerReferences{} 136 } 137 138 func (AlertingPolicyPathSelectorMetadata) Shards() AlertingPolicyPathSelectorMetadataShards { 139 return AlertingPolicyPathSelectorMetadataShards{} 140 } 141 142 func (AlertingPolicyPathSelectorMetadata) Syncing() AlertingPolicyPathSelectorMetadataSyncing { 143 return AlertingPolicyPathSelectorMetadataSyncing{} 144 } 145 146 func (AlertingPolicyPathSelectorMetadata) Lifecycle() AlertingPolicyPathSelectorMetadataLifecycle { 147 return AlertingPolicyPathSelectorMetadataLifecycle{} 148 } 149 150 func (AlertingPolicyPathSelectorMetadata) Services() AlertingPolicyPathSelectorMetadataServices { 151 return AlertingPolicyPathSelectorMetadataServices{} 152 } 153 154 type AlertingPolicyPathSelectorMetadataCreateTime struct{} 155 156 func (AlertingPolicyPathSelectorMetadataCreateTime) FieldPath() *AlertingPolicy_FieldSubPath { 157 return &AlertingPolicy_FieldSubPath{ 158 selector: AlertingPolicy_FieldPathSelectorMetadata, 159 subPath: meta.NewMetaFieldPathBuilder().CreateTime().FieldPath(), 160 } 161 } 162 163 func (s AlertingPolicyPathSelectorMetadataCreateTime) WithValue(value *timestamppb.Timestamp) *AlertingPolicy_FieldSubPathValue { 164 return s.FieldPath().WithIValue(value).(*AlertingPolicy_FieldSubPathValue) 165 } 166 167 func (s AlertingPolicyPathSelectorMetadataCreateTime) WithArrayOfValues(values []*timestamppb.Timestamp) *AlertingPolicy_FieldSubPathArrayOfValues { 168 return s.FieldPath().WithIArrayOfValues(values).(*AlertingPolicy_FieldSubPathArrayOfValues) 169 } 170 171 type AlertingPolicyPathSelectorMetadataUpdateTime struct{} 172 173 func (AlertingPolicyPathSelectorMetadataUpdateTime) FieldPath() *AlertingPolicy_FieldSubPath { 174 return &AlertingPolicy_FieldSubPath{ 175 selector: AlertingPolicy_FieldPathSelectorMetadata, 176 subPath: meta.NewMetaFieldPathBuilder().UpdateTime().FieldPath(), 177 } 178 } 179 180 func (s AlertingPolicyPathSelectorMetadataUpdateTime) WithValue(value *timestamppb.Timestamp) *AlertingPolicy_FieldSubPathValue { 181 return s.FieldPath().WithIValue(value).(*AlertingPolicy_FieldSubPathValue) 182 } 183 184 func (s AlertingPolicyPathSelectorMetadataUpdateTime) WithArrayOfValues(values []*timestamppb.Timestamp) *AlertingPolicy_FieldSubPathArrayOfValues { 185 return s.FieldPath().WithIArrayOfValues(values).(*AlertingPolicy_FieldSubPathArrayOfValues) 186 } 187 188 type AlertingPolicyPathSelectorMetadataDeleteTime struct{} 189 190 func (AlertingPolicyPathSelectorMetadataDeleteTime) FieldPath() *AlertingPolicy_FieldSubPath { 191 return &AlertingPolicy_FieldSubPath{ 192 selector: AlertingPolicy_FieldPathSelectorMetadata, 193 subPath: meta.NewMetaFieldPathBuilder().DeleteTime().FieldPath(), 194 } 195 } 196 197 func (s AlertingPolicyPathSelectorMetadataDeleteTime) WithValue(value *timestamppb.Timestamp) *AlertingPolicy_FieldSubPathValue { 198 return s.FieldPath().WithIValue(value).(*AlertingPolicy_FieldSubPathValue) 199 } 200 201 func (s AlertingPolicyPathSelectorMetadataDeleteTime) WithArrayOfValues(values []*timestamppb.Timestamp) *AlertingPolicy_FieldSubPathArrayOfValues { 202 return s.FieldPath().WithIArrayOfValues(values).(*AlertingPolicy_FieldSubPathArrayOfValues) 203 } 204 205 type AlertingPolicyPathSelectorMetadataUuid struct{} 206 207 func (AlertingPolicyPathSelectorMetadataUuid) FieldPath() *AlertingPolicy_FieldSubPath { 208 return &AlertingPolicy_FieldSubPath{ 209 selector: AlertingPolicy_FieldPathSelectorMetadata, 210 subPath: meta.NewMetaFieldPathBuilder().Uuid().FieldPath(), 211 } 212 } 213 214 func (s AlertingPolicyPathSelectorMetadataUuid) WithValue(value string) *AlertingPolicy_FieldSubPathValue { 215 return s.FieldPath().WithIValue(value).(*AlertingPolicy_FieldSubPathValue) 216 } 217 218 func (s AlertingPolicyPathSelectorMetadataUuid) WithArrayOfValues(values []string) *AlertingPolicy_FieldSubPathArrayOfValues { 219 return s.FieldPath().WithIArrayOfValues(values).(*AlertingPolicy_FieldSubPathArrayOfValues) 220 } 221 222 type AlertingPolicyPathSelectorMetadataTags struct{} 223 224 func (AlertingPolicyPathSelectorMetadataTags) FieldPath() *AlertingPolicy_FieldSubPath { 225 return &AlertingPolicy_FieldSubPath{ 226 selector: AlertingPolicy_FieldPathSelectorMetadata, 227 subPath: meta.NewMetaFieldPathBuilder().Tags().FieldPath(), 228 } 229 } 230 231 func (s AlertingPolicyPathSelectorMetadataTags) WithValue(value []string) *AlertingPolicy_FieldSubPathValue { 232 return s.FieldPath().WithIValue(value).(*AlertingPolicy_FieldSubPathValue) 233 } 234 235 func (s AlertingPolicyPathSelectorMetadataTags) WithArrayOfValues(values [][]string) *AlertingPolicy_FieldSubPathArrayOfValues { 236 return s.FieldPath().WithIArrayOfValues(values).(*AlertingPolicy_FieldSubPathArrayOfValues) 237 } 238 239 func (s AlertingPolicyPathSelectorMetadataTags) WithItemValue(value string) *AlertingPolicy_FieldSubPathArrayItemValue { 240 return s.FieldPath().WithIArrayItemValue(value).(*AlertingPolicy_FieldSubPathArrayItemValue) 241 } 242 243 type AlertingPolicyPathSelectorMetadataLabels struct{} 244 245 func (AlertingPolicyPathSelectorMetadataLabels) FieldPath() *AlertingPolicy_FieldSubPath { 246 return &AlertingPolicy_FieldSubPath{ 247 selector: AlertingPolicy_FieldPathSelectorMetadata, 248 subPath: meta.NewMetaFieldPathBuilder().Labels().FieldPath(), 249 } 250 } 251 252 func (s AlertingPolicyPathSelectorMetadataLabels) WithValue(value map[string]string) *AlertingPolicy_FieldSubPathValue { 253 return s.FieldPath().WithIValue(value).(*AlertingPolicy_FieldSubPathValue) 254 } 255 256 func (s AlertingPolicyPathSelectorMetadataLabels) WithArrayOfValues(values []map[string]string) *AlertingPolicy_FieldSubPathArrayOfValues { 257 return s.FieldPath().WithIArrayOfValues(values).(*AlertingPolicy_FieldSubPathArrayOfValues) 258 } 259 260 func (AlertingPolicyPathSelectorMetadataLabels) WithKey(key string) AlertingPolicyMapPathSelectorMetadataLabels { 261 return AlertingPolicyMapPathSelectorMetadataLabels{key: key} 262 } 263 264 type AlertingPolicyMapPathSelectorMetadataLabels struct { 265 key string 266 } 267 268 func (s AlertingPolicyMapPathSelectorMetadataLabels) FieldPath() *AlertingPolicy_FieldSubPath { 269 return &AlertingPolicy_FieldSubPath{ 270 selector: AlertingPolicy_FieldPathSelectorMetadata, 271 subPath: meta.NewMetaFieldPathBuilder().Labels().WithKey(s.key).FieldPath(), 272 } 273 } 274 275 func (s AlertingPolicyMapPathSelectorMetadataLabels) WithValue(value string) *AlertingPolicy_FieldSubPathValue { 276 return s.FieldPath().WithIValue(value).(*AlertingPolicy_FieldSubPathValue) 277 } 278 279 func (s AlertingPolicyMapPathSelectorMetadataLabels) WithArrayOfValues(values []string) *AlertingPolicy_FieldSubPathArrayOfValues { 280 return s.FieldPath().WithIArrayOfValues(values).(*AlertingPolicy_FieldSubPathArrayOfValues) 281 } 282 283 type AlertingPolicyPathSelectorMetadataAnnotations struct{} 284 285 func (AlertingPolicyPathSelectorMetadataAnnotations) FieldPath() *AlertingPolicy_FieldSubPath { 286 return &AlertingPolicy_FieldSubPath{ 287 selector: AlertingPolicy_FieldPathSelectorMetadata, 288 subPath: meta.NewMetaFieldPathBuilder().Annotations().FieldPath(), 289 } 290 } 291 292 func (s AlertingPolicyPathSelectorMetadataAnnotations) WithValue(value map[string]string) *AlertingPolicy_FieldSubPathValue { 293 return s.FieldPath().WithIValue(value).(*AlertingPolicy_FieldSubPathValue) 294 } 295 296 func (s AlertingPolicyPathSelectorMetadataAnnotations) WithArrayOfValues(values []map[string]string) *AlertingPolicy_FieldSubPathArrayOfValues { 297 return s.FieldPath().WithIArrayOfValues(values).(*AlertingPolicy_FieldSubPathArrayOfValues) 298 } 299 300 func (AlertingPolicyPathSelectorMetadataAnnotations) WithKey(key string) AlertingPolicyMapPathSelectorMetadataAnnotations { 301 return AlertingPolicyMapPathSelectorMetadataAnnotations{key: key} 302 } 303 304 type AlertingPolicyMapPathSelectorMetadataAnnotations struct { 305 key string 306 } 307 308 func (s AlertingPolicyMapPathSelectorMetadataAnnotations) FieldPath() *AlertingPolicy_FieldSubPath { 309 return &AlertingPolicy_FieldSubPath{ 310 selector: AlertingPolicy_FieldPathSelectorMetadata, 311 subPath: meta.NewMetaFieldPathBuilder().Annotations().WithKey(s.key).FieldPath(), 312 } 313 } 314 315 func (s AlertingPolicyMapPathSelectorMetadataAnnotations) WithValue(value string) *AlertingPolicy_FieldSubPathValue { 316 return s.FieldPath().WithIValue(value).(*AlertingPolicy_FieldSubPathValue) 317 } 318 319 func (s AlertingPolicyMapPathSelectorMetadataAnnotations) WithArrayOfValues(values []string) *AlertingPolicy_FieldSubPathArrayOfValues { 320 return s.FieldPath().WithIArrayOfValues(values).(*AlertingPolicy_FieldSubPathArrayOfValues) 321 } 322 323 type AlertingPolicyPathSelectorMetadataGeneration struct{} 324 325 func (AlertingPolicyPathSelectorMetadataGeneration) FieldPath() *AlertingPolicy_FieldSubPath { 326 return &AlertingPolicy_FieldSubPath{ 327 selector: AlertingPolicy_FieldPathSelectorMetadata, 328 subPath: meta.NewMetaFieldPathBuilder().Generation().FieldPath(), 329 } 330 } 331 332 func (s AlertingPolicyPathSelectorMetadataGeneration) WithValue(value int64) *AlertingPolicy_FieldSubPathValue { 333 return s.FieldPath().WithIValue(value).(*AlertingPolicy_FieldSubPathValue) 334 } 335 336 func (s AlertingPolicyPathSelectorMetadataGeneration) WithArrayOfValues(values []int64) *AlertingPolicy_FieldSubPathArrayOfValues { 337 return s.FieldPath().WithIArrayOfValues(values).(*AlertingPolicy_FieldSubPathArrayOfValues) 338 } 339 340 type AlertingPolicyPathSelectorMetadataResourceVersion struct{} 341 342 func (AlertingPolicyPathSelectorMetadataResourceVersion) FieldPath() *AlertingPolicy_FieldSubPath { 343 return &AlertingPolicy_FieldSubPath{ 344 selector: AlertingPolicy_FieldPathSelectorMetadata, 345 subPath: meta.NewMetaFieldPathBuilder().ResourceVersion().FieldPath(), 346 } 347 } 348 349 func (s AlertingPolicyPathSelectorMetadataResourceVersion) WithValue(value string) *AlertingPolicy_FieldSubPathValue { 350 return s.FieldPath().WithIValue(value).(*AlertingPolicy_FieldSubPathValue) 351 } 352 353 func (s AlertingPolicyPathSelectorMetadataResourceVersion) WithArrayOfValues(values []string) *AlertingPolicy_FieldSubPathArrayOfValues { 354 return s.FieldPath().WithIArrayOfValues(values).(*AlertingPolicy_FieldSubPathArrayOfValues) 355 } 356 357 type AlertingPolicyPathSelectorMetadataOwnerReferences struct{} 358 359 func (AlertingPolicyPathSelectorMetadataOwnerReferences) FieldPath() *AlertingPolicy_FieldSubPath { 360 return &AlertingPolicy_FieldSubPath{ 361 selector: AlertingPolicy_FieldPathSelectorMetadata, 362 subPath: meta.NewMetaFieldPathBuilder().OwnerReferences().FieldPath(), 363 } 364 } 365 366 func (s AlertingPolicyPathSelectorMetadataOwnerReferences) WithValue(value []*meta.OwnerReference) *AlertingPolicy_FieldSubPathValue { 367 return s.FieldPath().WithIValue(value).(*AlertingPolicy_FieldSubPathValue) 368 } 369 370 func (s AlertingPolicyPathSelectorMetadataOwnerReferences) WithArrayOfValues(values [][]*meta.OwnerReference) *AlertingPolicy_FieldSubPathArrayOfValues { 371 return s.FieldPath().WithIArrayOfValues(values).(*AlertingPolicy_FieldSubPathArrayOfValues) 372 } 373 374 func (s AlertingPolicyPathSelectorMetadataOwnerReferences) WithItemValue(value *meta.OwnerReference) *AlertingPolicy_FieldSubPathArrayItemValue { 375 return s.FieldPath().WithIArrayItemValue(value).(*AlertingPolicy_FieldSubPathArrayItemValue) 376 } 377 378 func (AlertingPolicyPathSelectorMetadataOwnerReferences) Kind() AlertingPolicyPathSelectorMetadataOwnerReferencesKind { 379 return AlertingPolicyPathSelectorMetadataOwnerReferencesKind{} 380 } 381 382 func (AlertingPolicyPathSelectorMetadataOwnerReferences) Version() AlertingPolicyPathSelectorMetadataOwnerReferencesVersion { 383 return AlertingPolicyPathSelectorMetadataOwnerReferencesVersion{} 384 } 385 386 func (AlertingPolicyPathSelectorMetadataOwnerReferences) Name() AlertingPolicyPathSelectorMetadataOwnerReferencesName { 387 return AlertingPolicyPathSelectorMetadataOwnerReferencesName{} 388 } 389 390 func (AlertingPolicyPathSelectorMetadataOwnerReferences) Region() AlertingPolicyPathSelectorMetadataOwnerReferencesRegion { 391 return AlertingPolicyPathSelectorMetadataOwnerReferencesRegion{} 392 } 393 394 func (AlertingPolicyPathSelectorMetadataOwnerReferences) Controller() AlertingPolicyPathSelectorMetadataOwnerReferencesController { 395 return AlertingPolicyPathSelectorMetadataOwnerReferencesController{} 396 } 397 398 func (AlertingPolicyPathSelectorMetadataOwnerReferences) RequiresOwnerReference() AlertingPolicyPathSelectorMetadataOwnerReferencesRequiresOwnerReference { 399 return AlertingPolicyPathSelectorMetadataOwnerReferencesRequiresOwnerReference{} 400 } 401 402 func (AlertingPolicyPathSelectorMetadataOwnerReferences) UnsetOnDelete() AlertingPolicyPathSelectorMetadataOwnerReferencesUnsetOnDelete { 403 return AlertingPolicyPathSelectorMetadataOwnerReferencesUnsetOnDelete{} 404 } 405 406 type AlertingPolicyPathSelectorMetadataOwnerReferencesKind struct{} 407 408 func (AlertingPolicyPathSelectorMetadataOwnerReferencesKind) FieldPath() *AlertingPolicy_FieldSubPath { 409 return &AlertingPolicy_FieldSubPath{ 410 selector: AlertingPolicy_FieldPathSelectorMetadata, 411 subPath: meta.NewMetaFieldPathBuilder().OwnerReferences().Kind().FieldPath(), 412 } 413 } 414 415 func (s AlertingPolicyPathSelectorMetadataOwnerReferencesKind) WithValue(value string) *AlertingPolicy_FieldSubPathValue { 416 return s.FieldPath().WithIValue(value).(*AlertingPolicy_FieldSubPathValue) 417 } 418 419 func (s AlertingPolicyPathSelectorMetadataOwnerReferencesKind) WithArrayOfValues(values []string) *AlertingPolicy_FieldSubPathArrayOfValues { 420 return s.FieldPath().WithIArrayOfValues(values).(*AlertingPolicy_FieldSubPathArrayOfValues) 421 } 422 423 type AlertingPolicyPathSelectorMetadataOwnerReferencesVersion struct{} 424 425 func (AlertingPolicyPathSelectorMetadataOwnerReferencesVersion) FieldPath() *AlertingPolicy_FieldSubPath { 426 return &AlertingPolicy_FieldSubPath{ 427 selector: AlertingPolicy_FieldPathSelectorMetadata, 428 subPath: meta.NewMetaFieldPathBuilder().OwnerReferences().Version().FieldPath(), 429 } 430 } 431 432 func (s AlertingPolicyPathSelectorMetadataOwnerReferencesVersion) WithValue(value string) *AlertingPolicy_FieldSubPathValue { 433 return s.FieldPath().WithIValue(value).(*AlertingPolicy_FieldSubPathValue) 434 } 435 436 func (s AlertingPolicyPathSelectorMetadataOwnerReferencesVersion) WithArrayOfValues(values []string) *AlertingPolicy_FieldSubPathArrayOfValues { 437 return s.FieldPath().WithIArrayOfValues(values).(*AlertingPolicy_FieldSubPathArrayOfValues) 438 } 439 440 type AlertingPolicyPathSelectorMetadataOwnerReferencesName struct{} 441 442 func (AlertingPolicyPathSelectorMetadataOwnerReferencesName) FieldPath() *AlertingPolicy_FieldSubPath { 443 return &AlertingPolicy_FieldSubPath{ 444 selector: AlertingPolicy_FieldPathSelectorMetadata, 445 subPath: meta.NewMetaFieldPathBuilder().OwnerReferences().Name().FieldPath(), 446 } 447 } 448 449 func (s AlertingPolicyPathSelectorMetadataOwnerReferencesName) WithValue(value string) *AlertingPolicy_FieldSubPathValue { 450 return s.FieldPath().WithIValue(value).(*AlertingPolicy_FieldSubPathValue) 451 } 452 453 func (s AlertingPolicyPathSelectorMetadataOwnerReferencesName) WithArrayOfValues(values []string) *AlertingPolicy_FieldSubPathArrayOfValues { 454 return s.FieldPath().WithIArrayOfValues(values).(*AlertingPolicy_FieldSubPathArrayOfValues) 455 } 456 457 type AlertingPolicyPathSelectorMetadataOwnerReferencesRegion struct{} 458 459 func (AlertingPolicyPathSelectorMetadataOwnerReferencesRegion) FieldPath() *AlertingPolicy_FieldSubPath { 460 return &AlertingPolicy_FieldSubPath{ 461 selector: AlertingPolicy_FieldPathSelectorMetadata, 462 subPath: meta.NewMetaFieldPathBuilder().OwnerReferences().Region().FieldPath(), 463 } 464 } 465 466 func (s AlertingPolicyPathSelectorMetadataOwnerReferencesRegion) WithValue(value string) *AlertingPolicy_FieldSubPathValue { 467 return s.FieldPath().WithIValue(value).(*AlertingPolicy_FieldSubPathValue) 468 } 469 470 func (s AlertingPolicyPathSelectorMetadataOwnerReferencesRegion) WithArrayOfValues(values []string) *AlertingPolicy_FieldSubPathArrayOfValues { 471 return s.FieldPath().WithIArrayOfValues(values).(*AlertingPolicy_FieldSubPathArrayOfValues) 472 } 473 474 type AlertingPolicyPathSelectorMetadataOwnerReferencesController struct{} 475 476 func (AlertingPolicyPathSelectorMetadataOwnerReferencesController) FieldPath() *AlertingPolicy_FieldSubPath { 477 return &AlertingPolicy_FieldSubPath{ 478 selector: AlertingPolicy_FieldPathSelectorMetadata, 479 subPath: meta.NewMetaFieldPathBuilder().OwnerReferences().Controller().FieldPath(), 480 } 481 } 482 483 func (s AlertingPolicyPathSelectorMetadataOwnerReferencesController) WithValue(value bool) *AlertingPolicy_FieldSubPathValue { 484 return s.FieldPath().WithIValue(value).(*AlertingPolicy_FieldSubPathValue) 485 } 486 487 func (s AlertingPolicyPathSelectorMetadataOwnerReferencesController) WithArrayOfValues(values []bool) *AlertingPolicy_FieldSubPathArrayOfValues { 488 return s.FieldPath().WithIArrayOfValues(values).(*AlertingPolicy_FieldSubPathArrayOfValues) 489 } 490 491 type AlertingPolicyPathSelectorMetadataOwnerReferencesRequiresOwnerReference struct{} 492 493 func (AlertingPolicyPathSelectorMetadataOwnerReferencesRequiresOwnerReference) FieldPath() *AlertingPolicy_FieldSubPath { 494 return &AlertingPolicy_FieldSubPath{ 495 selector: AlertingPolicy_FieldPathSelectorMetadata, 496 subPath: meta.NewMetaFieldPathBuilder().OwnerReferences().RequiresOwnerReference().FieldPath(), 497 } 498 } 499 500 func (s AlertingPolicyPathSelectorMetadataOwnerReferencesRequiresOwnerReference) WithValue(value bool) *AlertingPolicy_FieldSubPathValue { 501 return s.FieldPath().WithIValue(value).(*AlertingPolicy_FieldSubPathValue) 502 } 503 504 func (s AlertingPolicyPathSelectorMetadataOwnerReferencesRequiresOwnerReference) WithArrayOfValues(values []bool) *AlertingPolicy_FieldSubPathArrayOfValues { 505 return s.FieldPath().WithIArrayOfValues(values).(*AlertingPolicy_FieldSubPathArrayOfValues) 506 } 507 508 type AlertingPolicyPathSelectorMetadataOwnerReferencesUnsetOnDelete struct{} 509 510 func (AlertingPolicyPathSelectorMetadataOwnerReferencesUnsetOnDelete) FieldPath() *AlertingPolicy_FieldSubPath { 511 return &AlertingPolicy_FieldSubPath{ 512 selector: AlertingPolicy_FieldPathSelectorMetadata, 513 subPath: meta.NewMetaFieldPathBuilder().OwnerReferences().UnsetOnDelete().FieldPath(), 514 } 515 } 516 517 func (s AlertingPolicyPathSelectorMetadataOwnerReferencesUnsetOnDelete) WithValue(value bool) *AlertingPolicy_FieldSubPathValue { 518 return s.FieldPath().WithIValue(value).(*AlertingPolicy_FieldSubPathValue) 519 } 520 521 func (s AlertingPolicyPathSelectorMetadataOwnerReferencesUnsetOnDelete) WithArrayOfValues(values []bool) *AlertingPolicy_FieldSubPathArrayOfValues { 522 return s.FieldPath().WithIArrayOfValues(values).(*AlertingPolicy_FieldSubPathArrayOfValues) 523 } 524 525 type AlertingPolicyPathSelectorMetadataShards struct{} 526 527 func (AlertingPolicyPathSelectorMetadataShards) FieldPath() *AlertingPolicy_FieldSubPath { 528 return &AlertingPolicy_FieldSubPath{ 529 selector: AlertingPolicy_FieldPathSelectorMetadata, 530 subPath: meta.NewMetaFieldPathBuilder().Shards().FieldPath(), 531 } 532 } 533 534 func (s AlertingPolicyPathSelectorMetadataShards) WithValue(value map[string]int64) *AlertingPolicy_FieldSubPathValue { 535 return s.FieldPath().WithIValue(value).(*AlertingPolicy_FieldSubPathValue) 536 } 537 538 func (s AlertingPolicyPathSelectorMetadataShards) WithArrayOfValues(values []map[string]int64) *AlertingPolicy_FieldSubPathArrayOfValues { 539 return s.FieldPath().WithIArrayOfValues(values).(*AlertingPolicy_FieldSubPathArrayOfValues) 540 } 541 542 func (AlertingPolicyPathSelectorMetadataShards) WithKey(key string) AlertingPolicyMapPathSelectorMetadataShards { 543 return AlertingPolicyMapPathSelectorMetadataShards{key: key} 544 } 545 546 type AlertingPolicyMapPathSelectorMetadataShards struct { 547 key string 548 } 549 550 func (s AlertingPolicyMapPathSelectorMetadataShards) FieldPath() *AlertingPolicy_FieldSubPath { 551 return &AlertingPolicy_FieldSubPath{ 552 selector: AlertingPolicy_FieldPathSelectorMetadata, 553 subPath: meta.NewMetaFieldPathBuilder().Shards().WithKey(s.key).FieldPath(), 554 } 555 } 556 557 func (s AlertingPolicyMapPathSelectorMetadataShards) WithValue(value int64) *AlertingPolicy_FieldSubPathValue { 558 return s.FieldPath().WithIValue(value).(*AlertingPolicy_FieldSubPathValue) 559 } 560 561 func (s AlertingPolicyMapPathSelectorMetadataShards) WithArrayOfValues(values []int64) *AlertingPolicy_FieldSubPathArrayOfValues { 562 return s.FieldPath().WithIArrayOfValues(values).(*AlertingPolicy_FieldSubPathArrayOfValues) 563 } 564 565 type AlertingPolicyPathSelectorMetadataSyncing struct{} 566 567 func (AlertingPolicyPathSelectorMetadataSyncing) FieldPath() *AlertingPolicy_FieldSubPath { 568 return &AlertingPolicy_FieldSubPath{ 569 selector: AlertingPolicy_FieldPathSelectorMetadata, 570 subPath: meta.NewMetaFieldPathBuilder().Syncing().FieldPath(), 571 } 572 } 573 574 func (s AlertingPolicyPathSelectorMetadataSyncing) WithValue(value *meta.SyncingMeta) *AlertingPolicy_FieldSubPathValue { 575 return s.FieldPath().WithIValue(value).(*AlertingPolicy_FieldSubPathValue) 576 } 577 578 func (s AlertingPolicyPathSelectorMetadataSyncing) WithArrayOfValues(values []*meta.SyncingMeta) *AlertingPolicy_FieldSubPathArrayOfValues { 579 return s.FieldPath().WithIArrayOfValues(values).(*AlertingPolicy_FieldSubPathArrayOfValues) 580 } 581 582 func (AlertingPolicyPathSelectorMetadataSyncing) OwningRegion() AlertingPolicyPathSelectorMetadataSyncingOwningRegion { 583 return AlertingPolicyPathSelectorMetadataSyncingOwningRegion{} 584 } 585 586 func (AlertingPolicyPathSelectorMetadataSyncing) Regions() AlertingPolicyPathSelectorMetadataSyncingRegions { 587 return AlertingPolicyPathSelectorMetadataSyncingRegions{} 588 } 589 590 type AlertingPolicyPathSelectorMetadataSyncingOwningRegion struct{} 591 592 func (AlertingPolicyPathSelectorMetadataSyncingOwningRegion) FieldPath() *AlertingPolicy_FieldSubPath { 593 return &AlertingPolicy_FieldSubPath{ 594 selector: AlertingPolicy_FieldPathSelectorMetadata, 595 subPath: meta.NewMetaFieldPathBuilder().Syncing().OwningRegion().FieldPath(), 596 } 597 } 598 599 func (s AlertingPolicyPathSelectorMetadataSyncingOwningRegion) WithValue(value string) *AlertingPolicy_FieldSubPathValue { 600 return s.FieldPath().WithIValue(value).(*AlertingPolicy_FieldSubPathValue) 601 } 602 603 func (s AlertingPolicyPathSelectorMetadataSyncingOwningRegion) WithArrayOfValues(values []string) *AlertingPolicy_FieldSubPathArrayOfValues { 604 return s.FieldPath().WithIArrayOfValues(values).(*AlertingPolicy_FieldSubPathArrayOfValues) 605 } 606 607 type AlertingPolicyPathSelectorMetadataSyncingRegions struct{} 608 609 func (AlertingPolicyPathSelectorMetadataSyncingRegions) FieldPath() *AlertingPolicy_FieldSubPath { 610 return &AlertingPolicy_FieldSubPath{ 611 selector: AlertingPolicy_FieldPathSelectorMetadata, 612 subPath: meta.NewMetaFieldPathBuilder().Syncing().Regions().FieldPath(), 613 } 614 } 615 616 func (s AlertingPolicyPathSelectorMetadataSyncingRegions) WithValue(value []string) *AlertingPolicy_FieldSubPathValue { 617 return s.FieldPath().WithIValue(value).(*AlertingPolicy_FieldSubPathValue) 618 } 619 620 func (s AlertingPolicyPathSelectorMetadataSyncingRegions) WithArrayOfValues(values [][]string) *AlertingPolicy_FieldSubPathArrayOfValues { 621 return s.FieldPath().WithIArrayOfValues(values).(*AlertingPolicy_FieldSubPathArrayOfValues) 622 } 623 624 func (s AlertingPolicyPathSelectorMetadataSyncingRegions) WithItemValue(value string) *AlertingPolicy_FieldSubPathArrayItemValue { 625 return s.FieldPath().WithIArrayItemValue(value).(*AlertingPolicy_FieldSubPathArrayItemValue) 626 } 627 628 type AlertingPolicyPathSelectorMetadataLifecycle struct{} 629 630 func (AlertingPolicyPathSelectorMetadataLifecycle) FieldPath() *AlertingPolicy_FieldSubPath { 631 return &AlertingPolicy_FieldSubPath{ 632 selector: AlertingPolicy_FieldPathSelectorMetadata, 633 subPath: meta.NewMetaFieldPathBuilder().Lifecycle().FieldPath(), 634 } 635 } 636 637 func (s AlertingPolicyPathSelectorMetadataLifecycle) WithValue(value *meta.Lifecycle) *AlertingPolicy_FieldSubPathValue { 638 return s.FieldPath().WithIValue(value).(*AlertingPolicy_FieldSubPathValue) 639 } 640 641 func (s AlertingPolicyPathSelectorMetadataLifecycle) WithArrayOfValues(values []*meta.Lifecycle) *AlertingPolicy_FieldSubPathArrayOfValues { 642 return s.FieldPath().WithIArrayOfValues(values).(*AlertingPolicy_FieldSubPathArrayOfValues) 643 } 644 645 func (AlertingPolicyPathSelectorMetadataLifecycle) State() AlertingPolicyPathSelectorMetadataLifecycleState { 646 return AlertingPolicyPathSelectorMetadataLifecycleState{} 647 } 648 649 func (AlertingPolicyPathSelectorMetadataLifecycle) BlockDeletion() AlertingPolicyPathSelectorMetadataLifecycleBlockDeletion { 650 return AlertingPolicyPathSelectorMetadataLifecycleBlockDeletion{} 651 } 652 653 type AlertingPolicyPathSelectorMetadataLifecycleState struct{} 654 655 func (AlertingPolicyPathSelectorMetadataLifecycleState) FieldPath() *AlertingPolicy_FieldSubPath { 656 return &AlertingPolicy_FieldSubPath{ 657 selector: AlertingPolicy_FieldPathSelectorMetadata, 658 subPath: meta.NewMetaFieldPathBuilder().Lifecycle().State().FieldPath(), 659 } 660 } 661 662 func (s AlertingPolicyPathSelectorMetadataLifecycleState) WithValue(value meta.Lifecycle_State) *AlertingPolicy_FieldSubPathValue { 663 return s.FieldPath().WithIValue(value).(*AlertingPolicy_FieldSubPathValue) 664 } 665 666 func (s AlertingPolicyPathSelectorMetadataLifecycleState) WithArrayOfValues(values []meta.Lifecycle_State) *AlertingPolicy_FieldSubPathArrayOfValues { 667 return s.FieldPath().WithIArrayOfValues(values).(*AlertingPolicy_FieldSubPathArrayOfValues) 668 } 669 670 type AlertingPolicyPathSelectorMetadataLifecycleBlockDeletion struct{} 671 672 func (AlertingPolicyPathSelectorMetadataLifecycleBlockDeletion) FieldPath() *AlertingPolicy_FieldSubPath { 673 return &AlertingPolicy_FieldSubPath{ 674 selector: AlertingPolicy_FieldPathSelectorMetadata, 675 subPath: meta.NewMetaFieldPathBuilder().Lifecycle().BlockDeletion().FieldPath(), 676 } 677 } 678 679 func (s AlertingPolicyPathSelectorMetadataLifecycleBlockDeletion) WithValue(value bool) *AlertingPolicy_FieldSubPathValue { 680 return s.FieldPath().WithIValue(value).(*AlertingPolicy_FieldSubPathValue) 681 } 682 683 func (s AlertingPolicyPathSelectorMetadataLifecycleBlockDeletion) WithArrayOfValues(values []bool) *AlertingPolicy_FieldSubPathArrayOfValues { 684 return s.FieldPath().WithIArrayOfValues(values).(*AlertingPolicy_FieldSubPathArrayOfValues) 685 } 686 687 type AlertingPolicyPathSelectorMetadataServices struct{} 688 689 func (AlertingPolicyPathSelectorMetadataServices) FieldPath() *AlertingPolicy_FieldSubPath { 690 return &AlertingPolicy_FieldSubPath{ 691 selector: AlertingPolicy_FieldPathSelectorMetadata, 692 subPath: meta.NewMetaFieldPathBuilder().Services().FieldPath(), 693 } 694 } 695 696 func (s AlertingPolicyPathSelectorMetadataServices) WithValue(value *meta.ServicesInfo) *AlertingPolicy_FieldSubPathValue { 697 return s.FieldPath().WithIValue(value).(*AlertingPolicy_FieldSubPathValue) 698 } 699 700 func (s AlertingPolicyPathSelectorMetadataServices) WithArrayOfValues(values []*meta.ServicesInfo) *AlertingPolicy_FieldSubPathArrayOfValues { 701 return s.FieldPath().WithIArrayOfValues(values).(*AlertingPolicy_FieldSubPathArrayOfValues) 702 } 703 704 func (AlertingPolicyPathSelectorMetadataServices) OwningService() AlertingPolicyPathSelectorMetadataServicesOwningService { 705 return AlertingPolicyPathSelectorMetadataServicesOwningService{} 706 } 707 708 func (AlertingPolicyPathSelectorMetadataServices) AllowedServices() AlertingPolicyPathSelectorMetadataServicesAllowedServices { 709 return AlertingPolicyPathSelectorMetadataServicesAllowedServices{} 710 } 711 712 type AlertingPolicyPathSelectorMetadataServicesOwningService struct{} 713 714 func (AlertingPolicyPathSelectorMetadataServicesOwningService) FieldPath() *AlertingPolicy_FieldSubPath { 715 return &AlertingPolicy_FieldSubPath{ 716 selector: AlertingPolicy_FieldPathSelectorMetadata, 717 subPath: meta.NewMetaFieldPathBuilder().Services().OwningService().FieldPath(), 718 } 719 } 720 721 func (s AlertingPolicyPathSelectorMetadataServicesOwningService) WithValue(value string) *AlertingPolicy_FieldSubPathValue { 722 return s.FieldPath().WithIValue(value).(*AlertingPolicy_FieldSubPathValue) 723 } 724 725 func (s AlertingPolicyPathSelectorMetadataServicesOwningService) WithArrayOfValues(values []string) *AlertingPolicy_FieldSubPathArrayOfValues { 726 return s.FieldPath().WithIArrayOfValues(values).(*AlertingPolicy_FieldSubPathArrayOfValues) 727 } 728 729 type AlertingPolicyPathSelectorMetadataServicesAllowedServices struct{} 730 731 func (AlertingPolicyPathSelectorMetadataServicesAllowedServices) FieldPath() *AlertingPolicy_FieldSubPath { 732 return &AlertingPolicy_FieldSubPath{ 733 selector: AlertingPolicy_FieldPathSelectorMetadata, 734 subPath: meta.NewMetaFieldPathBuilder().Services().AllowedServices().FieldPath(), 735 } 736 } 737 738 func (s AlertingPolicyPathSelectorMetadataServicesAllowedServices) WithValue(value []string) *AlertingPolicy_FieldSubPathValue { 739 return s.FieldPath().WithIValue(value).(*AlertingPolicy_FieldSubPathValue) 740 } 741 742 func (s AlertingPolicyPathSelectorMetadataServicesAllowedServices) WithArrayOfValues(values [][]string) *AlertingPolicy_FieldSubPathArrayOfValues { 743 return s.FieldPath().WithIArrayOfValues(values).(*AlertingPolicy_FieldSubPathArrayOfValues) 744 } 745 746 func (s AlertingPolicyPathSelectorMetadataServicesAllowedServices) WithItemValue(value string) *AlertingPolicy_FieldSubPathArrayItemValue { 747 return s.FieldPath().WithIArrayItemValue(value).(*AlertingPolicy_FieldSubPathArrayItemValue) 748 } 749 750 type AlertingPolicyPathSelectorDisplayName struct{} 751 752 func (AlertingPolicyPathSelectorDisplayName) FieldPath() *AlertingPolicy_FieldTerminalPath { 753 return &AlertingPolicy_FieldTerminalPath{selector: AlertingPolicy_FieldPathSelectorDisplayName} 754 } 755 756 func (s AlertingPolicyPathSelectorDisplayName) WithValue(value string) *AlertingPolicy_FieldTerminalPathValue { 757 return s.FieldPath().WithIValue(value).(*AlertingPolicy_FieldTerminalPathValue) 758 } 759 760 func (s AlertingPolicyPathSelectorDisplayName) WithArrayOfValues(values []string) *AlertingPolicy_FieldTerminalPathArrayOfValues { 761 return s.FieldPath().WithIArrayOfValues(values).(*AlertingPolicy_FieldTerminalPathArrayOfValues) 762 } 763 764 type AlertingPolicyPathSelectorDescription struct{} 765 766 func (AlertingPolicyPathSelectorDescription) FieldPath() *AlertingPolicy_FieldTerminalPath { 767 return &AlertingPolicy_FieldTerminalPath{selector: AlertingPolicy_FieldPathSelectorDescription} 768 } 769 770 func (s AlertingPolicyPathSelectorDescription) WithValue(value string) *AlertingPolicy_FieldTerminalPathValue { 771 return s.FieldPath().WithIValue(value).(*AlertingPolicy_FieldTerminalPathValue) 772 } 773 774 func (s AlertingPolicyPathSelectorDescription) WithArrayOfValues(values []string) *AlertingPolicy_FieldTerminalPathArrayOfValues { 775 return s.FieldPath().WithIArrayOfValues(values).(*AlertingPolicy_FieldTerminalPathArrayOfValues) 776 } 777 778 type AlertingPolicyPathSelectorDocumentation struct{} 779 780 func (AlertingPolicyPathSelectorDocumentation) FieldPath() *AlertingPolicy_FieldTerminalPath { 781 return &AlertingPolicy_FieldTerminalPath{selector: AlertingPolicy_FieldPathSelectorDocumentation} 782 } 783 784 func (s AlertingPolicyPathSelectorDocumentation) WithValue(value *AlertingPolicy_Documentation) *AlertingPolicy_FieldTerminalPathValue { 785 return s.FieldPath().WithIValue(value).(*AlertingPolicy_FieldTerminalPathValue) 786 } 787 788 func (s AlertingPolicyPathSelectorDocumentation) WithArrayOfValues(values []*AlertingPolicy_Documentation) *AlertingPolicy_FieldTerminalPathArrayOfValues { 789 return s.FieldPath().WithIArrayOfValues(values).(*AlertingPolicy_FieldTerminalPathArrayOfValues) 790 } 791 792 func (AlertingPolicyPathSelectorDocumentation) WithSubPath(subPath AlertingPolicyDocumentation_FieldPath) *AlertingPolicy_FieldSubPath { 793 return &AlertingPolicy_FieldSubPath{selector: AlertingPolicy_FieldPathSelectorDocumentation, subPath: subPath} 794 } 795 796 func (s AlertingPolicyPathSelectorDocumentation) WithSubValue(subPathValue AlertingPolicyDocumentation_FieldPathValue) *AlertingPolicy_FieldSubPathValue { 797 return &AlertingPolicy_FieldSubPathValue{AlertingPolicy_FieldPath: s.WithSubPath(subPathValue), subPathValue: subPathValue} 798 } 799 800 func (s AlertingPolicyPathSelectorDocumentation) WithSubArrayOfValues(subPathArrayOfValues AlertingPolicyDocumentation_FieldPathArrayOfValues) *AlertingPolicy_FieldSubPathArrayOfValues { 801 return &AlertingPolicy_FieldSubPathArrayOfValues{AlertingPolicy_FieldPath: s.WithSubPath(subPathArrayOfValues), subPathArrayOfValues: subPathArrayOfValues} 802 } 803 804 func (s AlertingPolicyPathSelectorDocumentation) WithSubArrayItemValue(subPathArrayItemValue AlertingPolicyDocumentation_FieldPathArrayItemValue) *AlertingPolicy_FieldSubPathArrayItemValue { 805 return &AlertingPolicy_FieldSubPathArrayItemValue{AlertingPolicy_FieldPath: s.WithSubPath(subPathArrayItemValue), subPathItemValue: subPathArrayItemValue} 806 } 807 808 func (AlertingPolicyPathSelectorDocumentation) Content() AlertingPolicyPathSelectorDocumentationContent { 809 return AlertingPolicyPathSelectorDocumentationContent{} 810 } 811 812 func (AlertingPolicyPathSelectorDocumentation) MimeType() AlertingPolicyPathSelectorDocumentationMimeType { 813 return AlertingPolicyPathSelectorDocumentationMimeType{} 814 } 815 816 type AlertingPolicyPathSelectorDocumentationContent struct{} 817 818 func (AlertingPolicyPathSelectorDocumentationContent) FieldPath() *AlertingPolicy_FieldSubPath { 819 return &AlertingPolicy_FieldSubPath{ 820 selector: AlertingPolicy_FieldPathSelectorDocumentation, 821 subPath: NewAlertingPolicyDocumentationFieldPathBuilder().Content().FieldPath(), 822 } 823 } 824 825 func (s AlertingPolicyPathSelectorDocumentationContent) WithValue(value string) *AlertingPolicy_FieldSubPathValue { 826 return s.FieldPath().WithIValue(value).(*AlertingPolicy_FieldSubPathValue) 827 } 828 829 func (s AlertingPolicyPathSelectorDocumentationContent) WithArrayOfValues(values []string) *AlertingPolicy_FieldSubPathArrayOfValues { 830 return s.FieldPath().WithIArrayOfValues(values).(*AlertingPolicy_FieldSubPathArrayOfValues) 831 } 832 833 type AlertingPolicyPathSelectorDocumentationMimeType struct{} 834 835 func (AlertingPolicyPathSelectorDocumentationMimeType) FieldPath() *AlertingPolicy_FieldSubPath { 836 return &AlertingPolicy_FieldSubPath{ 837 selector: AlertingPolicy_FieldPathSelectorDocumentation, 838 subPath: NewAlertingPolicyDocumentationFieldPathBuilder().MimeType().FieldPath(), 839 } 840 } 841 842 func (s AlertingPolicyPathSelectorDocumentationMimeType) WithValue(value string) *AlertingPolicy_FieldSubPathValue { 843 return s.FieldPath().WithIValue(value).(*AlertingPolicy_FieldSubPathValue) 844 } 845 846 func (s AlertingPolicyPathSelectorDocumentationMimeType) WithArrayOfValues(values []string) *AlertingPolicy_FieldSubPathArrayOfValues { 847 return s.FieldPath().WithIArrayOfValues(values).(*AlertingPolicy_FieldSubPathArrayOfValues) 848 } 849 850 type AlertingPolicyPathSelectorSpec struct{} 851 852 func (AlertingPolicyPathSelectorSpec) FieldPath() *AlertingPolicy_FieldTerminalPath { 853 return &AlertingPolicy_FieldTerminalPath{selector: AlertingPolicy_FieldPathSelectorSpec} 854 } 855 856 func (s AlertingPolicyPathSelectorSpec) WithValue(value *AlertingPolicy_Spec) *AlertingPolicy_FieldTerminalPathValue { 857 return s.FieldPath().WithIValue(value).(*AlertingPolicy_FieldTerminalPathValue) 858 } 859 860 func (s AlertingPolicyPathSelectorSpec) WithArrayOfValues(values []*AlertingPolicy_Spec) *AlertingPolicy_FieldTerminalPathArrayOfValues { 861 return s.FieldPath().WithIArrayOfValues(values).(*AlertingPolicy_FieldTerminalPathArrayOfValues) 862 } 863 864 func (AlertingPolicyPathSelectorSpec) WithSubPath(subPath AlertingPolicySpec_FieldPath) *AlertingPolicy_FieldSubPath { 865 return &AlertingPolicy_FieldSubPath{selector: AlertingPolicy_FieldPathSelectorSpec, subPath: subPath} 866 } 867 868 func (s AlertingPolicyPathSelectorSpec) WithSubValue(subPathValue AlertingPolicySpec_FieldPathValue) *AlertingPolicy_FieldSubPathValue { 869 return &AlertingPolicy_FieldSubPathValue{AlertingPolicy_FieldPath: s.WithSubPath(subPathValue), subPathValue: subPathValue} 870 } 871 872 func (s AlertingPolicyPathSelectorSpec) WithSubArrayOfValues(subPathArrayOfValues AlertingPolicySpec_FieldPathArrayOfValues) *AlertingPolicy_FieldSubPathArrayOfValues { 873 return &AlertingPolicy_FieldSubPathArrayOfValues{AlertingPolicy_FieldPath: s.WithSubPath(subPathArrayOfValues), subPathArrayOfValues: subPathArrayOfValues} 874 } 875 876 func (s AlertingPolicyPathSelectorSpec) WithSubArrayItemValue(subPathArrayItemValue AlertingPolicySpec_FieldPathArrayItemValue) *AlertingPolicy_FieldSubPathArrayItemValue { 877 return &AlertingPolicy_FieldSubPathArrayItemValue{AlertingPolicy_FieldPath: s.WithSubPath(subPathArrayItemValue), subPathItemValue: subPathArrayItemValue} 878 } 879 880 func (AlertingPolicyPathSelectorSpec) Enabled() AlertingPolicyPathSelectorSpecEnabled { 881 return AlertingPolicyPathSelectorSpecEnabled{} 882 } 883 884 func (AlertingPolicyPathSelectorSpec) ConditionCombiner() AlertingPolicyPathSelectorSpecConditionCombiner { 885 return AlertingPolicyPathSelectorSpecConditionCombiner{} 886 } 887 888 func (AlertingPolicyPathSelectorSpec) Notification() AlertingPolicyPathSelectorSpecNotification { 889 return AlertingPolicyPathSelectorSpecNotification{} 890 } 891 892 type AlertingPolicyPathSelectorSpecEnabled struct{} 893 894 func (AlertingPolicyPathSelectorSpecEnabled) FieldPath() *AlertingPolicy_FieldSubPath { 895 return &AlertingPolicy_FieldSubPath{ 896 selector: AlertingPolicy_FieldPathSelectorSpec, 897 subPath: NewAlertingPolicySpecFieldPathBuilder().Enabled().FieldPath(), 898 } 899 } 900 901 func (s AlertingPolicyPathSelectorSpecEnabled) WithValue(value bool) *AlertingPolicy_FieldSubPathValue { 902 return s.FieldPath().WithIValue(value).(*AlertingPolicy_FieldSubPathValue) 903 } 904 905 func (s AlertingPolicyPathSelectorSpecEnabled) WithArrayOfValues(values []bool) *AlertingPolicy_FieldSubPathArrayOfValues { 906 return s.FieldPath().WithIArrayOfValues(values).(*AlertingPolicy_FieldSubPathArrayOfValues) 907 } 908 909 type AlertingPolicyPathSelectorSpecConditionCombiner struct{} 910 911 func (AlertingPolicyPathSelectorSpecConditionCombiner) FieldPath() *AlertingPolicy_FieldSubPath { 912 return &AlertingPolicy_FieldSubPath{ 913 selector: AlertingPolicy_FieldPathSelectorSpec, 914 subPath: NewAlertingPolicySpecFieldPathBuilder().ConditionCombiner().FieldPath(), 915 } 916 } 917 918 func (s AlertingPolicyPathSelectorSpecConditionCombiner) WithValue(value AlertingPolicy_Spec_ConditionsCombiner) *AlertingPolicy_FieldSubPathValue { 919 return s.FieldPath().WithIValue(value).(*AlertingPolicy_FieldSubPathValue) 920 } 921 922 func (s AlertingPolicyPathSelectorSpecConditionCombiner) WithArrayOfValues(values []AlertingPolicy_Spec_ConditionsCombiner) *AlertingPolicy_FieldSubPathArrayOfValues { 923 return s.FieldPath().WithIArrayOfValues(values).(*AlertingPolicy_FieldSubPathArrayOfValues) 924 } 925 926 type AlertingPolicyPathSelectorSpecNotification struct{} 927 928 func (AlertingPolicyPathSelectorSpecNotification) FieldPath() *AlertingPolicy_FieldSubPath { 929 return &AlertingPolicy_FieldSubPath{ 930 selector: AlertingPolicy_FieldPathSelectorSpec, 931 subPath: NewAlertingPolicySpecFieldPathBuilder().Notification().FieldPath(), 932 } 933 } 934 935 func (s AlertingPolicyPathSelectorSpecNotification) WithValue(value *AlertingPolicy_Spec_Notification) *AlertingPolicy_FieldSubPathValue { 936 return s.FieldPath().WithIValue(value).(*AlertingPolicy_FieldSubPathValue) 937 } 938 939 func (s AlertingPolicyPathSelectorSpecNotification) WithArrayOfValues(values []*AlertingPolicy_Spec_Notification) *AlertingPolicy_FieldSubPathArrayOfValues { 940 return s.FieldPath().WithIArrayOfValues(values).(*AlertingPolicy_FieldSubPathArrayOfValues) 941 } 942 943 func (AlertingPolicyPathSelectorSpecNotification) Enabled() AlertingPolicyPathSelectorSpecNotificationEnabled { 944 return AlertingPolicyPathSelectorSpecNotificationEnabled{} 945 } 946 947 func (AlertingPolicyPathSelectorSpecNotification) Channels() AlertingPolicyPathSelectorSpecNotificationChannels { 948 return AlertingPolicyPathSelectorSpecNotificationChannels{} 949 } 950 951 type AlertingPolicyPathSelectorSpecNotificationEnabled struct{} 952 953 func (AlertingPolicyPathSelectorSpecNotificationEnabled) FieldPath() *AlertingPolicy_FieldSubPath { 954 return &AlertingPolicy_FieldSubPath{ 955 selector: AlertingPolicy_FieldPathSelectorSpec, 956 subPath: NewAlertingPolicySpecFieldPathBuilder().Notification().Enabled().FieldPath(), 957 } 958 } 959 960 func (s AlertingPolicyPathSelectorSpecNotificationEnabled) WithValue(value bool) *AlertingPolicy_FieldSubPathValue { 961 return s.FieldPath().WithIValue(value).(*AlertingPolicy_FieldSubPathValue) 962 } 963 964 func (s AlertingPolicyPathSelectorSpecNotificationEnabled) WithArrayOfValues(values []bool) *AlertingPolicy_FieldSubPathArrayOfValues { 965 return s.FieldPath().WithIArrayOfValues(values).(*AlertingPolicy_FieldSubPathArrayOfValues) 966 } 967 968 type AlertingPolicyPathSelectorSpecNotificationChannels struct{} 969 970 func (AlertingPolicyPathSelectorSpecNotificationChannels) FieldPath() *AlertingPolicy_FieldSubPath { 971 return &AlertingPolicy_FieldSubPath{ 972 selector: AlertingPolicy_FieldPathSelectorSpec, 973 subPath: NewAlertingPolicySpecFieldPathBuilder().Notification().Channels().FieldPath(), 974 } 975 } 976 977 func (s AlertingPolicyPathSelectorSpecNotificationChannels) WithValue(value []*notification_channel.Reference) *AlertingPolicy_FieldSubPathValue { 978 return s.FieldPath().WithIValue(value).(*AlertingPolicy_FieldSubPathValue) 979 } 980 981 func (s AlertingPolicyPathSelectorSpecNotificationChannels) WithArrayOfValues(values [][]*notification_channel.Reference) *AlertingPolicy_FieldSubPathArrayOfValues { 982 return s.FieldPath().WithIArrayOfValues(values).(*AlertingPolicy_FieldSubPathArrayOfValues) 983 } 984 985 func (s AlertingPolicyPathSelectorSpecNotificationChannels) WithItemValue(value *notification_channel.Reference) *AlertingPolicy_FieldSubPathArrayItemValue { 986 return s.FieldPath().WithIArrayItemValue(value).(*AlertingPolicy_FieldSubPathArrayItemValue) 987 } 988 989 type AlertingPolicyPathSelectorState struct{} 990 991 func (AlertingPolicyPathSelectorState) FieldPath() *AlertingPolicy_FieldTerminalPath { 992 return &AlertingPolicy_FieldTerminalPath{selector: AlertingPolicy_FieldPathSelectorState} 993 } 994 995 func (s AlertingPolicyPathSelectorState) WithValue(value *AlertingPolicy_State) *AlertingPolicy_FieldTerminalPathValue { 996 return s.FieldPath().WithIValue(value).(*AlertingPolicy_FieldTerminalPathValue) 997 } 998 999 func (s AlertingPolicyPathSelectorState) WithArrayOfValues(values []*AlertingPolicy_State) *AlertingPolicy_FieldTerminalPathArrayOfValues { 1000 return s.FieldPath().WithIArrayOfValues(values).(*AlertingPolicy_FieldTerminalPathArrayOfValues) 1001 } 1002 1003 func (AlertingPolicyPathSelectorState) WithSubPath(subPath AlertingPolicyState_FieldPath) *AlertingPolicy_FieldSubPath { 1004 return &AlertingPolicy_FieldSubPath{selector: AlertingPolicy_FieldPathSelectorState, subPath: subPath} 1005 } 1006 1007 func (s AlertingPolicyPathSelectorState) WithSubValue(subPathValue AlertingPolicyState_FieldPathValue) *AlertingPolicy_FieldSubPathValue { 1008 return &AlertingPolicy_FieldSubPathValue{AlertingPolicy_FieldPath: s.WithSubPath(subPathValue), subPathValue: subPathValue} 1009 } 1010 1011 func (s AlertingPolicyPathSelectorState) WithSubArrayOfValues(subPathArrayOfValues AlertingPolicyState_FieldPathArrayOfValues) *AlertingPolicy_FieldSubPathArrayOfValues { 1012 return &AlertingPolicy_FieldSubPathArrayOfValues{AlertingPolicy_FieldPath: s.WithSubPath(subPathArrayOfValues), subPathArrayOfValues: subPathArrayOfValues} 1013 } 1014 1015 func (s AlertingPolicyPathSelectorState) WithSubArrayItemValue(subPathArrayItemValue AlertingPolicyState_FieldPathArrayItemValue) *AlertingPolicy_FieldSubPathArrayItemValue { 1016 return &AlertingPolicy_FieldSubPathArrayItemValue{AlertingPolicy_FieldPath: s.WithSubPath(subPathArrayItemValue), subPathItemValue: subPathArrayItemValue} 1017 } 1018 1019 func (AlertingPolicyPathSelectorState) ActiveAlertsCount() AlertingPolicyPathSelectorStateActiveAlertsCount { 1020 return AlertingPolicyPathSelectorStateActiveAlertsCount{} 1021 } 1022 1023 type AlertingPolicyPathSelectorStateActiveAlertsCount struct{} 1024 1025 func (AlertingPolicyPathSelectorStateActiveAlertsCount) FieldPath() *AlertingPolicy_FieldSubPath { 1026 return &AlertingPolicy_FieldSubPath{ 1027 selector: AlertingPolicy_FieldPathSelectorState, 1028 subPath: NewAlertingPolicyStateFieldPathBuilder().ActiveAlertsCount().FieldPath(), 1029 } 1030 } 1031 1032 func (s AlertingPolicyPathSelectorStateActiveAlertsCount) WithValue(value int64) *AlertingPolicy_FieldSubPathValue { 1033 return s.FieldPath().WithIValue(value).(*AlertingPolicy_FieldSubPathValue) 1034 } 1035 1036 func (s AlertingPolicyPathSelectorStateActiveAlertsCount) WithArrayOfValues(values []int64) *AlertingPolicy_FieldSubPathArrayOfValues { 1037 return s.FieldPath().WithIArrayOfValues(values).(*AlertingPolicy_FieldSubPathArrayOfValues) 1038 } 1039 1040 type AlertingPolicyDocumentationFieldPathBuilder struct{} 1041 1042 func NewAlertingPolicyDocumentationFieldPathBuilder() AlertingPolicyDocumentationFieldPathBuilder { 1043 return AlertingPolicyDocumentationFieldPathBuilder{} 1044 } 1045 func (AlertingPolicyDocumentationFieldPathBuilder) Content() AlertingPolicy_DocumentationPathSelectorContent { 1046 return AlertingPolicy_DocumentationPathSelectorContent{} 1047 } 1048 func (AlertingPolicyDocumentationFieldPathBuilder) MimeType() AlertingPolicy_DocumentationPathSelectorMimeType { 1049 return AlertingPolicy_DocumentationPathSelectorMimeType{} 1050 } 1051 1052 type AlertingPolicy_DocumentationPathSelectorContent struct{} 1053 1054 func (AlertingPolicy_DocumentationPathSelectorContent) FieldPath() *AlertingPolicyDocumentation_FieldTerminalPath { 1055 return &AlertingPolicyDocumentation_FieldTerminalPath{selector: AlertingPolicyDocumentation_FieldPathSelectorContent} 1056 } 1057 1058 func (s AlertingPolicy_DocumentationPathSelectorContent) WithValue(value string) *AlertingPolicyDocumentation_FieldTerminalPathValue { 1059 return s.FieldPath().WithIValue(value).(*AlertingPolicyDocumentation_FieldTerminalPathValue) 1060 } 1061 1062 func (s AlertingPolicy_DocumentationPathSelectorContent) WithArrayOfValues(values []string) *AlertingPolicyDocumentation_FieldTerminalPathArrayOfValues { 1063 return s.FieldPath().WithIArrayOfValues(values).(*AlertingPolicyDocumentation_FieldTerminalPathArrayOfValues) 1064 } 1065 1066 type AlertingPolicy_DocumentationPathSelectorMimeType struct{} 1067 1068 func (AlertingPolicy_DocumentationPathSelectorMimeType) FieldPath() *AlertingPolicyDocumentation_FieldTerminalPath { 1069 return &AlertingPolicyDocumentation_FieldTerminalPath{selector: AlertingPolicyDocumentation_FieldPathSelectorMimeType} 1070 } 1071 1072 func (s AlertingPolicy_DocumentationPathSelectorMimeType) WithValue(value string) *AlertingPolicyDocumentation_FieldTerminalPathValue { 1073 return s.FieldPath().WithIValue(value).(*AlertingPolicyDocumentation_FieldTerminalPathValue) 1074 } 1075 1076 func (s AlertingPolicy_DocumentationPathSelectorMimeType) WithArrayOfValues(values []string) *AlertingPolicyDocumentation_FieldTerminalPathArrayOfValues { 1077 return s.FieldPath().WithIArrayOfValues(values).(*AlertingPolicyDocumentation_FieldTerminalPathArrayOfValues) 1078 } 1079 1080 type AlertingPolicySpecFieldPathBuilder struct{} 1081 1082 func NewAlertingPolicySpecFieldPathBuilder() AlertingPolicySpecFieldPathBuilder { 1083 return AlertingPolicySpecFieldPathBuilder{} 1084 } 1085 func (AlertingPolicySpecFieldPathBuilder) Enabled() AlertingPolicy_SpecPathSelectorEnabled { 1086 return AlertingPolicy_SpecPathSelectorEnabled{} 1087 } 1088 func (AlertingPolicySpecFieldPathBuilder) ConditionCombiner() AlertingPolicy_SpecPathSelectorConditionCombiner { 1089 return AlertingPolicy_SpecPathSelectorConditionCombiner{} 1090 } 1091 func (AlertingPolicySpecFieldPathBuilder) Notification() AlertingPolicy_SpecPathSelectorNotification { 1092 return AlertingPolicy_SpecPathSelectorNotification{} 1093 } 1094 1095 type AlertingPolicy_SpecPathSelectorEnabled struct{} 1096 1097 func (AlertingPolicy_SpecPathSelectorEnabled) FieldPath() *AlertingPolicySpec_FieldTerminalPath { 1098 return &AlertingPolicySpec_FieldTerminalPath{selector: AlertingPolicySpec_FieldPathSelectorEnabled} 1099 } 1100 1101 func (s AlertingPolicy_SpecPathSelectorEnabled) WithValue(value bool) *AlertingPolicySpec_FieldTerminalPathValue { 1102 return s.FieldPath().WithIValue(value).(*AlertingPolicySpec_FieldTerminalPathValue) 1103 } 1104 1105 func (s AlertingPolicy_SpecPathSelectorEnabled) WithArrayOfValues(values []bool) *AlertingPolicySpec_FieldTerminalPathArrayOfValues { 1106 return s.FieldPath().WithIArrayOfValues(values).(*AlertingPolicySpec_FieldTerminalPathArrayOfValues) 1107 } 1108 1109 type AlertingPolicy_SpecPathSelectorConditionCombiner struct{} 1110 1111 func (AlertingPolicy_SpecPathSelectorConditionCombiner) FieldPath() *AlertingPolicySpec_FieldTerminalPath { 1112 return &AlertingPolicySpec_FieldTerminalPath{selector: AlertingPolicySpec_FieldPathSelectorConditionCombiner} 1113 } 1114 1115 func (s AlertingPolicy_SpecPathSelectorConditionCombiner) WithValue(value AlertingPolicy_Spec_ConditionsCombiner) *AlertingPolicySpec_FieldTerminalPathValue { 1116 return s.FieldPath().WithIValue(value).(*AlertingPolicySpec_FieldTerminalPathValue) 1117 } 1118 1119 func (s AlertingPolicy_SpecPathSelectorConditionCombiner) WithArrayOfValues(values []AlertingPolicy_Spec_ConditionsCombiner) *AlertingPolicySpec_FieldTerminalPathArrayOfValues { 1120 return s.FieldPath().WithIArrayOfValues(values).(*AlertingPolicySpec_FieldTerminalPathArrayOfValues) 1121 } 1122 1123 type AlertingPolicy_SpecPathSelectorNotification struct{} 1124 1125 func (AlertingPolicy_SpecPathSelectorNotification) FieldPath() *AlertingPolicySpec_FieldTerminalPath { 1126 return &AlertingPolicySpec_FieldTerminalPath{selector: AlertingPolicySpec_FieldPathSelectorNotification} 1127 } 1128 1129 func (s AlertingPolicy_SpecPathSelectorNotification) WithValue(value *AlertingPolicy_Spec_Notification) *AlertingPolicySpec_FieldTerminalPathValue { 1130 return s.FieldPath().WithIValue(value).(*AlertingPolicySpec_FieldTerminalPathValue) 1131 } 1132 1133 func (s AlertingPolicy_SpecPathSelectorNotification) WithArrayOfValues(values []*AlertingPolicy_Spec_Notification) *AlertingPolicySpec_FieldTerminalPathArrayOfValues { 1134 return s.FieldPath().WithIArrayOfValues(values).(*AlertingPolicySpec_FieldTerminalPathArrayOfValues) 1135 } 1136 1137 func (AlertingPolicy_SpecPathSelectorNotification) WithSubPath(subPath AlertingPolicySpecNotification_FieldPath) *AlertingPolicySpec_FieldSubPath { 1138 return &AlertingPolicySpec_FieldSubPath{selector: AlertingPolicySpec_FieldPathSelectorNotification, subPath: subPath} 1139 } 1140 1141 func (s AlertingPolicy_SpecPathSelectorNotification) WithSubValue(subPathValue AlertingPolicySpecNotification_FieldPathValue) *AlertingPolicySpec_FieldSubPathValue { 1142 return &AlertingPolicySpec_FieldSubPathValue{AlertingPolicySpec_FieldPath: s.WithSubPath(subPathValue), subPathValue: subPathValue} 1143 } 1144 1145 func (s AlertingPolicy_SpecPathSelectorNotification) WithSubArrayOfValues(subPathArrayOfValues AlertingPolicySpecNotification_FieldPathArrayOfValues) *AlertingPolicySpec_FieldSubPathArrayOfValues { 1146 return &AlertingPolicySpec_FieldSubPathArrayOfValues{AlertingPolicySpec_FieldPath: s.WithSubPath(subPathArrayOfValues), subPathArrayOfValues: subPathArrayOfValues} 1147 } 1148 1149 func (s AlertingPolicy_SpecPathSelectorNotification) WithSubArrayItemValue(subPathArrayItemValue AlertingPolicySpecNotification_FieldPathArrayItemValue) *AlertingPolicySpec_FieldSubPathArrayItemValue { 1150 return &AlertingPolicySpec_FieldSubPathArrayItemValue{AlertingPolicySpec_FieldPath: s.WithSubPath(subPathArrayItemValue), subPathItemValue: subPathArrayItemValue} 1151 } 1152 1153 func (AlertingPolicy_SpecPathSelectorNotification) Enabled() AlertingPolicy_SpecPathSelectorNotificationEnabled { 1154 return AlertingPolicy_SpecPathSelectorNotificationEnabled{} 1155 } 1156 1157 func (AlertingPolicy_SpecPathSelectorNotification) Channels() AlertingPolicy_SpecPathSelectorNotificationChannels { 1158 return AlertingPolicy_SpecPathSelectorNotificationChannels{} 1159 } 1160 1161 type AlertingPolicy_SpecPathSelectorNotificationEnabled struct{} 1162 1163 func (AlertingPolicy_SpecPathSelectorNotificationEnabled) FieldPath() *AlertingPolicySpec_FieldSubPath { 1164 return &AlertingPolicySpec_FieldSubPath{ 1165 selector: AlertingPolicySpec_FieldPathSelectorNotification, 1166 subPath: NewAlertingPolicySpecNotificationFieldPathBuilder().Enabled().FieldPath(), 1167 } 1168 } 1169 1170 func (s AlertingPolicy_SpecPathSelectorNotificationEnabled) WithValue(value bool) *AlertingPolicySpec_FieldSubPathValue { 1171 return s.FieldPath().WithIValue(value).(*AlertingPolicySpec_FieldSubPathValue) 1172 } 1173 1174 func (s AlertingPolicy_SpecPathSelectorNotificationEnabled) WithArrayOfValues(values []bool) *AlertingPolicySpec_FieldSubPathArrayOfValues { 1175 return s.FieldPath().WithIArrayOfValues(values).(*AlertingPolicySpec_FieldSubPathArrayOfValues) 1176 } 1177 1178 type AlertingPolicy_SpecPathSelectorNotificationChannels struct{} 1179 1180 func (AlertingPolicy_SpecPathSelectorNotificationChannels) FieldPath() *AlertingPolicySpec_FieldSubPath { 1181 return &AlertingPolicySpec_FieldSubPath{ 1182 selector: AlertingPolicySpec_FieldPathSelectorNotification, 1183 subPath: NewAlertingPolicySpecNotificationFieldPathBuilder().Channels().FieldPath(), 1184 } 1185 } 1186 1187 func (s AlertingPolicy_SpecPathSelectorNotificationChannels) WithValue(value []*notification_channel.Reference) *AlertingPolicySpec_FieldSubPathValue { 1188 return s.FieldPath().WithIValue(value).(*AlertingPolicySpec_FieldSubPathValue) 1189 } 1190 1191 func (s AlertingPolicy_SpecPathSelectorNotificationChannels) WithArrayOfValues(values [][]*notification_channel.Reference) *AlertingPolicySpec_FieldSubPathArrayOfValues { 1192 return s.FieldPath().WithIArrayOfValues(values).(*AlertingPolicySpec_FieldSubPathArrayOfValues) 1193 } 1194 1195 func (s AlertingPolicy_SpecPathSelectorNotificationChannels) WithItemValue(value *notification_channel.Reference) *AlertingPolicySpec_FieldSubPathArrayItemValue { 1196 return s.FieldPath().WithIArrayItemValue(value).(*AlertingPolicySpec_FieldSubPathArrayItemValue) 1197 } 1198 1199 type AlertingPolicyStateFieldPathBuilder struct{} 1200 1201 func NewAlertingPolicyStateFieldPathBuilder() AlertingPolicyStateFieldPathBuilder { 1202 return AlertingPolicyStateFieldPathBuilder{} 1203 } 1204 func (AlertingPolicyStateFieldPathBuilder) ActiveAlertsCount() AlertingPolicy_StatePathSelectorActiveAlertsCount { 1205 return AlertingPolicy_StatePathSelectorActiveAlertsCount{} 1206 } 1207 1208 type AlertingPolicy_StatePathSelectorActiveAlertsCount struct{} 1209 1210 func (AlertingPolicy_StatePathSelectorActiveAlertsCount) FieldPath() *AlertingPolicyState_FieldTerminalPath { 1211 return &AlertingPolicyState_FieldTerminalPath{selector: AlertingPolicyState_FieldPathSelectorActiveAlertsCount} 1212 } 1213 1214 func (s AlertingPolicy_StatePathSelectorActiveAlertsCount) WithValue(value int64) *AlertingPolicyState_FieldTerminalPathValue { 1215 return s.FieldPath().WithIValue(value).(*AlertingPolicyState_FieldTerminalPathValue) 1216 } 1217 1218 func (s AlertingPolicy_StatePathSelectorActiveAlertsCount) WithArrayOfValues(values []int64) *AlertingPolicyState_FieldTerminalPathArrayOfValues { 1219 return s.FieldPath().WithIArrayOfValues(values).(*AlertingPolicyState_FieldTerminalPathArrayOfValues) 1220 } 1221 1222 type AlertingPolicySpecNotificationFieldPathBuilder struct{} 1223 1224 func NewAlertingPolicySpecNotificationFieldPathBuilder() AlertingPolicySpecNotificationFieldPathBuilder { 1225 return AlertingPolicySpecNotificationFieldPathBuilder{} 1226 } 1227 func (AlertingPolicySpecNotificationFieldPathBuilder) Enabled() AlertingPolicy_Spec_NotificationPathSelectorEnabled { 1228 return AlertingPolicy_Spec_NotificationPathSelectorEnabled{} 1229 } 1230 func (AlertingPolicySpecNotificationFieldPathBuilder) Channels() AlertingPolicy_Spec_NotificationPathSelectorChannels { 1231 return AlertingPolicy_Spec_NotificationPathSelectorChannels{} 1232 } 1233 1234 type AlertingPolicy_Spec_NotificationPathSelectorEnabled struct{} 1235 1236 func (AlertingPolicy_Spec_NotificationPathSelectorEnabled) FieldPath() *AlertingPolicySpecNotification_FieldTerminalPath { 1237 return &AlertingPolicySpecNotification_FieldTerminalPath{selector: AlertingPolicySpecNotification_FieldPathSelectorEnabled} 1238 } 1239 1240 func (s AlertingPolicy_Spec_NotificationPathSelectorEnabled) WithValue(value bool) *AlertingPolicySpecNotification_FieldTerminalPathValue { 1241 return s.FieldPath().WithIValue(value).(*AlertingPolicySpecNotification_FieldTerminalPathValue) 1242 } 1243 1244 func (s AlertingPolicy_Spec_NotificationPathSelectorEnabled) WithArrayOfValues(values []bool) *AlertingPolicySpecNotification_FieldTerminalPathArrayOfValues { 1245 return s.FieldPath().WithIArrayOfValues(values).(*AlertingPolicySpecNotification_FieldTerminalPathArrayOfValues) 1246 } 1247 1248 type AlertingPolicy_Spec_NotificationPathSelectorChannels struct{} 1249 1250 func (AlertingPolicy_Spec_NotificationPathSelectorChannels) FieldPath() *AlertingPolicySpecNotification_FieldTerminalPath { 1251 return &AlertingPolicySpecNotification_FieldTerminalPath{selector: AlertingPolicySpecNotification_FieldPathSelectorChannels} 1252 } 1253 1254 func (s AlertingPolicy_Spec_NotificationPathSelectorChannels) WithValue(value []*notification_channel.Reference) *AlertingPolicySpecNotification_FieldTerminalPathValue { 1255 return s.FieldPath().WithIValue(value).(*AlertingPolicySpecNotification_FieldTerminalPathValue) 1256 } 1257 1258 func (s AlertingPolicy_Spec_NotificationPathSelectorChannels) WithArrayOfValues(values [][]*notification_channel.Reference) *AlertingPolicySpecNotification_FieldTerminalPathArrayOfValues { 1259 return s.FieldPath().WithIArrayOfValues(values).(*AlertingPolicySpecNotification_FieldTerminalPathArrayOfValues) 1260 } 1261 1262 func (s AlertingPolicy_Spec_NotificationPathSelectorChannels) WithItemValue(value *notification_channel.Reference) *AlertingPolicySpecNotification_FieldTerminalPathArrayItemValue { 1263 return s.FieldPath().WithIArrayItemValue(value).(*AlertingPolicySpecNotification_FieldTerminalPathArrayItemValue) 1264 }