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