github.com/cloudwan/edgelq-sdk@v1.15.4/monitoring/resources/v3/alert/alert.pb.fieldpathbuilder.go (about) 1 // Code generated by protoc-gen-goten-object 2 // File: edgelq/monitoring/proto/v3/alert.proto 3 // DO NOT EDIT!!! 4 5 package alert 6 7 // proto imports 8 import ( 9 alerting_condition "github.com/cloudwan/edgelq-sdk/monitoring/resources/v3/alerting_condition" 10 alerting_policy "github.com/cloudwan/edgelq-sdk/monitoring/resources/v3/alerting_policy" 11 common "github.com/cloudwan/edgelq-sdk/monitoring/resources/v3/common" 12 notification_channel "github.com/cloudwan/edgelq-sdk/monitoring/resources/v3/notification_channel" 13 project "github.com/cloudwan/edgelq-sdk/monitoring/resources/v3/project" 14 meta "github.com/cloudwan/goten-sdk/types/meta" 15 multi_region_policy "github.com/cloudwan/goten-sdk/types/multi_region_policy" 16 durationpb "google.golang.org/protobuf/types/known/durationpb" 17 timestamppb "google.golang.org/protobuf/types/known/timestamppb" 18 ) 19 20 // make sure we're using proto imports 21 var ( 22 _ = &alerting_condition.AlertingCondition{} 23 _ = &alerting_policy.AlertingPolicy{} 24 _ = &common.LabelDescriptor{} 25 _ = ¬ification_channel.NotificationChannel{} 26 _ = &project.Project{} 27 _ = &durationpb.Duration{} 28 _ = ×tamppb.Timestamp{} 29 _ = &meta.Meta{} 30 _ = &multi_region_policy.MultiRegionPolicy{} 31 ) 32 33 type AlertFieldPathBuilder struct{} 34 35 func NewAlertFieldPathBuilder() AlertFieldPathBuilder { 36 return AlertFieldPathBuilder{} 37 } 38 func (AlertFieldPathBuilder) Name() AlertPathSelectorName { 39 return AlertPathSelectorName{} 40 } 41 func (AlertFieldPathBuilder) Metadata() AlertPathSelectorMetadata { 42 return AlertPathSelectorMetadata{} 43 } 44 func (AlertFieldPathBuilder) DisplayName() AlertPathSelectorDisplayName { 45 return AlertPathSelectorDisplayName{} 46 } 47 func (AlertFieldPathBuilder) Info() AlertPathSelectorInfo { 48 return AlertPathSelectorInfo{} 49 } 50 func (AlertFieldPathBuilder) State() AlertPathSelectorState { 51 return AlertPathSelectorState{} 52 } 53 54 type AlertPathSelectorName struct{} 55 56 func (AlertPathSelectorName) FieldPath() *Alert_FieldTerminalPath { 57 return &Alert_FieldTerminalPath{selector: Alert_FieldPathSelectorName} 58 } 59 60 func (s AlertPathSelectorName) WithValue(value *Name) *Alert_FieldTerminalPathValue { 61 return s.FieldPath().WithIValue(value).(*Alert_FieldTerminalPathValue) 62 } 63 64 func (s AlertPathSelectorName) WithArrayOfValues(values []*Name) *Alert_FieldTerminalPathArrayOfValues { 65 return s.FieldPath().WithIArrayOfValues(values).(*Alert_FieldTerminalPathArrayOfValues) 66 } 67 68 type AlertPathSelectorMetadata struct{} 69 70 func (AlertPathSelectorMetadata) FieldPath() *Alert_FieldTerminalPath { 71 return &Alert_FieldTerminalPath{selector: Alert_FieldPathSelectorMetadata} 72 } 73 74 func (s AlertPathSelectorMetadata) WithValue(value *meta.Meta) *Alert_FieldTerminalPathValue { 75 return s.FieldPath().WithIValue(value).(*Alert_FieldTerminalPathValue) 76 } 77 78 func (s AlertPathSelectorMetadata) WithArrayOfValues(values []*meta.Meta) *Alert_FieldTerminalPathArrayOfValues { 79 return s.FieldPath().WithIArrayOfValues(values).(*Alert_FieldTerminalPathArrayOfValues) 80 } 81 82 func (AlertPathSelectorMetadata) WithSubPath(subPath meta.Meta_FieldPath) *Alert_FieldSubPath { 83 return &Alert_FieldSubPath{selector: Alert_FieldPathSelectorMetadata, subPath: subPath} 84 } 85 86 func (s AlertPathSelectorMetadata) WithSubValue(subPathValue meta.Meta_FieldPathValue) *Alert_FieldSubPathValue { 87 return &Alert_FieldSubPathValue{Alert_FieldPath: s.WithSubPath(subPathValue), subPathValue: subPathValue} 88 } 89 90 func (s AlertPathSelectorMetadata) WithSubArrayOfValues(subPathArrayOfValues meta.Meta_FieldPathArrayOfValues) *Alert_FieldSubPathArrayOfValues { 91 return &Alert_FieldSubPathArrayOfValues{Alert_FieldPath: s.WithSubPath(subPathArrayOfValues), subPathArrayOfValues: subPathArrayOfValues} 92 } 93 94 func (s AlertPathSelectorMetadata) WithSubArrayItemValue(subPathArrayItemValue meta.Meta_FieldPathArrayItemValue) *Alert_FieldSubPathArrayItemValue { 95 return &Alert_FieldSubPathArrayItemValue{Alert_FieldPath: s.WithSubPath(subPathArrayItemValue), subPathItemValue: subPathArrayItemValue} 96 } 97 98 func (AlertPathSelectorMetadata) CreateTime() AlertPathSelectorMetadataCreateTime { 99 return AlertPathSelectorMetadataCreateTime{} 100 } 101 102 func (AlertPathSelectorMetadata) UpdateTime() AlertPathSelectorMetadataUpdateTime { 103 return AlertPathSelectorMetadataUpdateTime{} 104 } 105 106 func (AlertPathSelectorMetadata) DeleteTime() AlertPathSelectorMetadataDeleteTime { 107 return AlertPathSelectorMetadataDeleteTime{} 108 } 109 110 func (AlertPathSelectorMetadata) Uuid() AlertPathSelectorMetadataUuid { 111 return AlertPathSelectorMetadataUuid{} 112 } 113 114 func (AlertPathSelectorMetadata) Tags() AlertPathSelectorMetadataTags { 115 return AlertPathSelectorMetadataTags{} 116 } 117 118 func (AlertPathSelectorMetadata) Labels() AlertPathSelectorMetadataLabels { 119 return AlertPathSelectorMetadataLabels{} 120 } 121 122 func (AlertPathSelectorMetadata) Annotations() AlertPathSelectorMetadataAnnotations { 123 return AlertPathSelectorMetadataAnnotations{} 124 } 125 126 func (AlertPathSelectorMetadata) Generation() AlertPathSelectorMetadataGeneration { 127 return AlertPathSelectorMetadataGeneration{} 128 } 129 130 func (AlertPathSelectorMetadata) ResourceVersion() AlertPathSelectorMetadataResourceVersion { 131 return AlertPathSelectorMetadataResourceVersion{} 132 } 133 134 func (AlertPathSelectorMetadata) OwnerReferences() AlertPathSelectorMetadataOwnerReferences { 135 return AlertPathSelectorMetadataOwnerReferences{} 136 } 137 138 func (AlertPathSelectorMetadata) Shards() AlertPathSelectorMetadataShards { 139 return AlertPathSelectorMetadataShards{} 140 } 141 142 func (AlertPathSelectorMetadata) Syncing() AlertPathSelectorMetadataSyncing { 143 return AlertPathSelectorMetadataSyncing{} 144 } 145 146 func (AlertPathSelectorMetadata) Lifecycle() AlertPathSelectorMetadataLifecycle { 147 return AlertPathSelectorMetadataLifecycle{} 148 } 149 150 func (AlertPathSelectorMetadata) Services() AlertPathSelectorMetadataServices { 151 return AlertPathSelectorMetadataServices{} 152 } 153 154 type AlertPathSelectorMetadataCreateTime struct{} 155 156 func (AlertPathSelectorMetadataCreateTime) FieldPath() *Alert_FieldSubPath { 157 return &Alert_FieldSubPath{ 158 selector: Alert_FieldPathSelectorMetadata, 159 subPath: meta.NewMetaFieldPathBuilder().CreateTime().FieldPath(), 160 } 161 } 162 163 func (s AlertPathSelectorMetadataCreateTime) WithValue(value *timestamppb.Timestamp) *Alert_FieldSubPathValue { 164 return s.FieldPath().WithIValue(value).(*Alert_FieldSubPathValue) 165 } 166 167 func (s AlertPathSelectorMetadataCreateTime) WithArrayOfValues(values []*timestamppb.Timestamp) *Alert_FieldSubPathArrayOfValues { 168 return s.FieldPath().WithIArrayOfValues(values).(*Alert_FieldSubPathArrayOfValues) 169 } 170 171 type AlertPathSelectorMetadataUpdateTime struct{} 172 173 func (AlertPathSelectorMetadataUpdateTime) FieldPath() *Alert_FieldSubPath { 174 return &Alert_FieldSubPath{ 175 selector: Alert_FieldPathSelectorMetadata, 176 subPath: meta.NewMetaFieldPathBuilder().UpdateTime().FieldPath(), 177 } 178 } 179 180 func (s AlertPathSelectorMetadataUpdateTime) WithValue(value *timestamppb.Timestamp) *Alert_FieldSubPathValue { 181 return s.FieldPath().WithIValue(value).(*Alert_FieldSubPathValue) 182 } 183 184 func (s AlertPathSelectorMetadataUpdateTime) WithArrayOfValues(values []*timestamppb.Timestamp) *Alert_FieldSubPathArrayOfValues { 185 return s.FieldPath().WithIArrayOfValues(values).(*Alert_FieldSubPathArrayOfValues) 186 } 187 188 type AlertPathSelectorMetadataDeleteTime struct{} 189 190 func (AlertPathSelectorMetadataDeleteTime) FieldPath() *Alert_FieldSubPath { 191 return &Alert_FieldSubPath{ 192 selector: Alert_FieldPathSelectorMetadata, 193 subPath: meta.NewMetaFieldPathBuilder().DeleteTime().FieldPath(), 194 } 195 } 196 197 func (s AlertPathSelectorMetadataDeleteTime) WithValue(value *timestamppb.Timestamp) *Alert_FieldSubPathValue { 198 return s.FieldPath().WithIValue(value).(*Alert_FieldSubPathValue) 199 } 200 201 func (s AlertPathSelectorMetadataDeleteTime) WithArrayOfValues(values []*timestamppb.Timestamp) *Alert_FieldSubPathArrayOfValues { 202 return s.FieldPath().WithIArrayOfValues(values).(*Alert_FieldSubPathArrayOfValues) 203 } 204 205 type AlertPathSelectorMetadataUuid struct{} 206 207 func (AlertPathSelectorMetadataUuid) FieldPath() *Alert_FieldSubPath { 208 return &Alert_FieldSubPath{ 209 selector: Alert_FieldPathSelectorMetadata, 210 subPath: meta.NewMetaFieldPathBuilder().Uuid().FieldPath(), 211 } 212 } 213 214 func (s AlertPathSelectorMetadataUuid) WithValue(value string) *Alert_FieldSubPathValue { 215 return s.FieldPath().WithIValue(value).(*Alert_FieldSubPathValue) 216 } 217 218 func (s AlertPathSelectorMetadataUuid) WithArrayOfValues(values []string) *Alert_FieldSubPathArrayOfValues { 219 return s.FieldPath().WithIArrayOfValues(values).(*Alert_FieldSubPathArrayOfValues) 220 } 221 222 type AlertPathSelectorMetadataTags struct{} 223 224 func (AlertPathSelectorMetadataTags) FieldPath() *Alert_FieldSubPath { 225 return &Alert_FieldSubPath{ 226 selector: Alert_FieldPathSelectorMetadata, 227 subPath: meta.NewMetaFieldPathBuilder().Tags().FieldPath(), 228 } 229 } 230 231 func (s AlertPathSelectorMetadataTags) WithValue(value []string) *Alert_FieldSubPathValue { 232 return s.FieldPath().WithIValue(value).(*Alert_FieldSubPathValue) 233 } 234 235 func (s AlertPathSelectorMetadataTags) WithArrayOfValues(values [][]string) *Alert_FieldSubPathArrayOfValues { 236 return s.FieldPath().WithIArrayOfValues(values).(*Alert_FieldSubPathArrayOfValues) 237 } 238 239 func (s AlertPathSelectorMetadataTags) WithItemValue(value string) *Alert_FieldSubPathArrayItemValue { 240 return s.FieldPath().WithIArrayItemValue(value).(*Alert_FieldSubPathArrayItemValue) 241 } 242 243 type AlertPathSelectorMetadataLabels struct{} 244 245 func (AlertPathSelectorMetadataLabels) FieldPath() *Alert_FieldSubPath { 246 return &Alert_FieldSubPath{ 247 selector: Alert_FieldPathSelectorMetadata, 248 subPath: meta.NewMetaFieldPathBuilder().Labels().FieldPath(), 249 } 250 } 251 252 func (s AlertPathSelectorMetadataLabels) WithValue(value map[string]string) *Alert_FieldSubPathValue { 253 return s.FieldPath().WithIValue(value).(*Alert_FieldSubPathValue) 254 } 255 256 func (s AlertPathSelectorMetadataLabels) WithArrayOfValues(values []map[string]string) *Alert_FieldSubPathArrayOfValues { 257 return s.FieldPath().WithIArrayOfValues(values).(*Alert_FieldSubPathArrayOfValues) 258 } 259 260 func (AlertPathSelectorMetadataLabels) WithKey(key string) AlertMapPathSelectorMetadataLabels { 261 return AlertMapPathSelectorMetadataLabels{key: key} 262 } 263 264 type AlertMapPathSelectorMetadataLabels struct { 265 key string 266 } 267 268 func (s AlertMapPathSelectorMetadataLabels) FieldPath() *Alert_FieldSubPath { 269 return &Alert_FieldSubPath{ 270 selector: Alert_FieldPathSelectorMetadata, 271 subPath: meta.NewMetaFieldPathBuilder().Labels().WithKey(s.key).FieldPath(), 272 } 273 } 274 275 func (s AlertMapPathSelectorMetadataLabels) WithValue(value string) *Alert_FieldSubPathValue { 276 return s.FieldPath().WithIValue(value).(*Alert_FieldSubPathValue) 277 } 278 279 func (s AlertMapPathSelectorMetadataLabels) WithArrayOfValues(values []string) *Alert_FieldSubPathArrayOfValues { 280 return s.FieldPath().WithIArrayOfValues(values).(*Alert_FieldSubPathArrayOfValues) 281 } 282 283 type AlertPathSelectorMetadataAnnotations struct{} 284 285 func (AlertPathSelectorMetadataAnnotations) FieldPath() *Alert_FieldSubPath { 286 return &Alert_FieldSubPath{ 287 selector: Alert_FieldPathSelectorMetadata, 288 subPath: meta.NewMetaFieldPathBuilder().Annotations().FieldPath(), 289 } 290 } 291 292 func (s AlertPathSelectorMetadataAnnotations) WithValue(value map[string]string) *Alert_FieldSubPathValue { 293 return s.FieldPath().WithIValue(value).(*Alert_FieldSubPathValue) 294 } 295 296 func (s AlertPathSelectorMetadataAnnotations) WithArrayOfValues(values []map[string]string) *Alert_FieldSubPathArrayOfValues { 297 return s.FieldPath().WithIArrayOfValues(values).(*Alert_FieldSubPathArrayOfValues) 298 } 299 300 func (AlertPathSelectorMetadataAnnotations) WithKey(key string) AlertMapPathSelectorMetadataAnnotations { 301 return AlertMapPathSelectorMetadataAnnotations{key: key} 302 } 303 304 type AlertMapPathSelectorMetadataAnnotations struct { 305 key string 306 } 307 308 func (s AlertMapPathSelectorMetadataAnnotations) FieldPath() *Alert_FieldSubPath { 309 return &Alert_FieldSubPath{ 310 selector: Alert_FieldPathSelectorMetadata, 311 subPath: meta.NewMetaFieldPathBuilder().Annotations().WithKey(s.key).FieldPath(), 312 } 313 } 314 315 func (s AlertMapPathSelectorMetadataAnnotations) WithValue(value string) *Alert_FieldSubPathValue { 316 return s.FieldPath().WithIValue(value).(*Alert_FieldSubPathValue) 317 } 318 319 func (s AlertMapPathSelectorMetadataAnnotations) WithArrayOfValues(values []string) *Alert_FieldSubPathArrayOfValues { 320 return s.FieldPath().WithIArrayOfValues(values).(*Alert_FieldSubPathArrayOfValues) 321 } 322 323 type AlertPathSelectorMetadataGeneration struct{} 324 325 func (AlertPathSelectorMetadataGeneration) FieldPath() *Alert_FieldSubPath { 326 return &Alert_FieldSubPath{ 327 selector: Alert_FieldPathSelectorMetadata, 328 subPath: meta.NewMetaFieldPathBuilder().Generation().FieldPath(), 329 } 330 } 331 332 func (s AlertPathSelectorMetadataGeneration) WithValue(value int64) *Alert_FieldSubPathValue { 333 return s.FieldPath().WithIValue(value).(*Alert_FieldSubPathValue) 334 } 335 336 func (s AlertPathSelectorMetadataGeneration) WithArrayOfValues(values []int64) *Alert_FieldSubPathArrayOfValues { 337 return s.FieldPath().WithIArrayOfValues(values).(*Alert_FieldSubPathArrayOfValues) 338 } 339 340 type AlertPathSelectorMetadataResourceVersion struct{} 341 342 func (AlertPathSelectorMetadataResourceVersion) FieldPath() *Alert_FieldSubPath { 343 return &Alert_FieldSubPath{ 344 selector: Alert_FieldPathSelectorMetadata, 345 subPath: meta.NewMetaFieldPathBuilder().ResourceVersion().FieldPath(), 346 } 347 } 348 349 func (s AlertPathSelectorMetadataResourceVersion) WithValue(value string) *Alert_FieldSubPathValue { 350 return s.FieldPath().WithIValue(value).(*Alert_FieldSubPathValue) 351 } 352 353 func (s AlertPathSelectorMetadataResourceVersion) WithArrayOfValues(values []string) *Alert_FieldSubPathArrayOfValues { 354 return s.FieldPath().WithIArrayOfValues(values).(*Alert_FieldSubPathArrayOfValues) 355 } 356 357 type AlertPathSelectorMetadataOwnerReferences struct{} 358 359 func (AlertPathSelectorMetadataOwnerReferences) FieldPath() *Alert_FieldSubPath { 360 return &Alert_FieldSubPath{ 361 selector: Alert_FieldPathSelectorMetadata, 362 subPath: meta.NewMetaFieldPathBuilder().OwnerReferences().FieldPath(), 363 } 364 } 365 366 func (s AlertPathSelectorMetadataOwnerReferences) WithValue(value []*meta.OwnerReference) *Alert_FieldSubPathValue { 367 return s.FieldPath().WithIValue(value).(*Alert_FieldSubPathValue) 368 } 369 370 func (s AlertPathSelectorMetadataOwnerReferences) WithArrayOfValues(values [][]*meta.OwnerReference) *Alert_FieldSubPathArrayOfValues { 371 return s.FieldPath().WithIArrayOfValues(values).(*Alert_FieldSubPathArrayOfValues) 372 } 373 374 func (s AlertPathSelectorMetadataOwnerReferences) WithItemValue(value *meta.OwnerReference) *Alert_FieldSubPathArrayItemValue { 375 return s.FieldPath().WithIArrayItemValue(value).(*Alert_FieldSubPathArrayItemValue) 376 } 377 378 func (AlertPathSelectorMetadataOwnerReferences) Kind() AlertPathSelectorMetadataOwnerReferencesKind { 379 return AlertPathSelectorMetadataOwnerReferencesKind{} 380 } 381 382 func (AlertPathSelectorMetadataOwnerReferences) Version() AlertPathSelectorMetadataOwnerReferencesVersion { 383 return AlertPathSelectorMetadataOwnerReferencesVersion{} 384 } 385 386 func (AlertPathSelectorMetadataOwnerReferences) Name() AlertPathSelectorMetadataOwnerReferencesName { 387 return AlertPathSelectorMetadataOwnerReferencesName{} 388 } 389 390 func (AlertPathSelectorMetadataOwnerReferences) Region() AlertPathSelectorMetadataOwnerReferencesRegion { 391 return AlertPathSelectorMetadataOwnerReferencesRegion{} 392 } 393 394 func (AlertPathSelectorMetadataOwnerReferences) Controller() AlertPathSelectorMetadataOwnerReferencesController { 395 return AlertPathSelectorMetadataOwnerReferencesController{} 396 } 397 398 func (AlertPathSelectorMetadataOwnerReferences) RequiresOwnerReference() AlertPathSelectorMetadataOwnerReferencesRequiresOwnerReference { 399 return AlertPathSelectorMetadataOwnerReferencesRequiresOwnerReference{} 400 } 401 402 func (AlertPathSelectorMetadataOwnerReferences) UnsetOnDelete() AlertPathSelectorMetadataOwnerReferencesUnsetOnDelete { 403 return AlertPathSelectorMetadataOwnerReferencesUnsetOnDelete{} 404 } 405 406 type AlertPathSelectorMetadataOwnerReferencesKind struct{} 407 408 func (AlertPathSelectorMetadataOwnerReferencesKind) FieldPath() *Alert_FieldSubPath { 409 return &Alert_FieldSubPath{ 410 selector: Alert_FieldPathSelectorMetadata, 411 subPath: meta.NewMetaFieldPathBuilder().OwnerReferences().Kind().FieldPath(), 412 } 413 } 414 415 func (s AlertPathSelectorMetadataOwnerReferencesKind) WithValue(value string) *Alert_FieldSubPathValue { 416 return s.FieldPath().WithIValue(value).(*Alert_FieldSubPathValue) 417 } 418 419 func (s AlertPathSelectorMetadataOwnerReferencesKind) WithArrayOfValues(values []string) *Alert_FieldSubPathArrayOfValues { 420 return s.FieldPath().WithIArrayOfValues(values).(*Alert_FieldSubPathArrayOfValues) 421 } 422 423 type AlertPathSelectorMetadataOwnerReferencesVersion struct{} 424 425 func (AlertPathSelectorMetadataOwnerReferencesVersion) FieldPath() *Alert_FieldSubPath { 426 return &Alert_FieldSubPath{ 427 selector: Alert_FieldPathSelectorMetadata, 428 subPath: meta.NewMetaFieldPathBuilder().OwnerReferences().Version().FieldPath(), 429 } 430 } 431 432 func (s AlertPathSelectorMetadataOwnerReferencesVersion) WithValue(value string) *Alert_FieldSubPathValue { 433 return s.FieldPath().WithIValue(value).(*Alert_FieldSubPathValue) 434 } 435 436 func (s AlertPathSelectorMetadataOwnerReferencesVersion) WithArrayOfValues(values []string) *Alert_FieldSubPathArrayOfValues { 437 return s.FieldPath().WithIArrayOfValues(values).(*Alert_FieldSubPathArrayOfValues) 438 } 439 440 type AlertPathSelectorMetadataOwnerReferencesName struct{} 441 442 func (AlertPathSelectorMetadataOwnerReferencesName) FieldPath() *Alert_FieldSubPath { 443 return &Alert_FieldSubPath{ 444 selector: Alert_FieldPathSelectorMetadata, 445 subPath: meta.NewMetaFieldPathBuilder().OwnerReferences().Name().FieldPath(), 446 } 447 } 448 449 func (s AlertPathSelectorMetadataOwnerReferencesName) WithValue(value string) *Alert_FieldSubPathValue { 450 return s.FieldPath().WithIValue(value).(*Alert_FieldSubPathValue) 451 } 452 453 func (s AlertPathSelectorMetadataOwnerReferencesName) WithArrayOfValues(values []string) *Alert_FieldSubPathArrayOfValues { 454 return s.FieldPath().WithIArrayOfValues(values).(*Alert_FieldSubPathArrayOfValues) 455 } 456 457 type AlertPathSelectorMetadataOwnerReferencesRegion struct{} 458 459 func (AlertPathSelectorMetadataOwnerReferencesRegion) FieldPath() *Alert_FieldSubPath { 460 return &Alert_FieldSubPath{ 461 selector: Alert_FieldPathSelectorMetadata, 462 subPath: meta.NewMetaFieldPathBuilder().OwnerReferences().Region().FieldPath(), 463 } 464 } 465 466 func (s AlertPathSelectorMetadataOwnerReferencesRegion) WithValue(value string) *Alert_FieldSubPathValue { 467 return s.FieldPath().WithIValue(value).(*Alert_FieldSubPathValue) 468 } 469 470 func (s AlertPathSelectorMetadataOwnerReferencesRegion) WithArrayOfValues(values []string) *Alert_FieldSubPathArrayOfValues { 471 return s.FieldPath().WithIArrayOfValues(values).(*Alert_FieldSubPathArrayOfValues) 472 } 473 474 type AlertPathSelectorMetadataOwnerReferencesController struct{} 475 476 func (AlertPathSelectorMetadataOwnerReferencesController) FieldPath() *Alert_FieldSubPath { 477 return &Alert_FieldSubPath{ 478 selector: Alert_FieldPathSelectorMetadata, 479 subPath: meta.NewMetaFieldPathBuilder().OwnerReferences().Controller().FieldPath(), 480 } 481 } 482 483 func (s AlertPathSelectorMetadataOwnerReferencesController) WithValue(value bool) *Alert_FieldSubPathValue { 484 return s.FieldPath().WithIValue(value).(*Alert_FieldSubPathValue) 485 } 486 487 func (s AlertPathSelectorMetadataOwnerReferencesController) WithArrayOfValues(values []bool) *Alert_FieldSubPathArrayOfValues { 488 return s.FieldPath().WithIArrayOfValues(values).(*Alert_FieldSubPathArrayOfValues) 489 } 490 491 type AlertPathSelectorMetadataOwnerReferencesRequiresOwnerReference struct{} 492 493 func (AlertPathSelectorMetadataOwnerReferencesRequiresOwnerReference) FieldPath() *Alert_FieldSubPath { 494 return &Alert_FieldSubPath{ 495 selector: Alert_FieldPathSelectorMetadata, 496 subPath: meta.NewMetaFieldPathBuilder().OwnerReferences().RequiresOwnerReference().FieldPath(), 497 } 498 } 499 500 func (s AlertPathSelectorMetadataOwnerReferencesRequiresOwnerReference) WithValue(value bool) *Alert_FieldSubPathValue { 501 return s.FieldPath().WithIValue(value).(*Alert_FieldSubPathValue) 502 } 503 504 func (s AlertPathSelectorMetadataOwnerReferencesRequiresOwnerReference) WithArrayOfValues(values []bool) *Alert_FieldSubPathArrayOfValues { 505 return s.FieldPath().WithIArrayOfValues(values).(*Alert_FieldSubPathArrayOfValues) 506 } 507 508 type AlertPathSelectorMetadataOwnerReferencesUnsetOnDelete struct{} 509 510 func (AlertPathSelectorMetadataOwnerReferencesUnsetOnDelete) FieldPath() *Alert_FieldSubPath { 511 return &Alert_FieldSubPath{ 512 selector: Alert_FieldPathSelectorMetadata, 513 subPath: meta.NewMetaFieldPathBuilder().OwnerReferences().UnsetOnDelete().FieldPath(), 514 } 515 } 516 517 func (s AlertPathSelectorMetadataOwnerReferencesUnsetOnDelete) WithValue(value bool) *Alert_FieldSubPathValue { 518 return s.FieldPath().WithIValue(value).(*Alert_FieldSubPathValue) 519 } 520 521 func (s AlertPathSelectorMetadataOwnerReferencesUnsetOnDelete) WithArrayOfValues(values []bool) *Alert_FieldSubPathArrayOfValues { 522 return s.FieldPath().WithIArrayOfValues(values).(*Alert_FieldSubPathArrayOfValues) 523 } 524 525 type AlertPathSelectorMetadataShards struct{} 526 527 func (AlertPathSelectorMetadataShards) FieldPath() *Alert_FieldSubPath { 528 return &Alert_FieldSubPath{ 529 selector: Alert_FieldPathSelectorMetadata, 530 subPath: meta.NewMetaFieldPathBuilder().Shards().FieldPath(), 531 } 532 } 533 534 func (s AlertPathSelectorMetadataShards) WithValue(value map[string]int64) *Alert_FieldSubPathValue { 535 return s.FieldPath().WithIValue(value).(*Alert_FieldSubPathValue) 536 } 537 538 func (s AlertPathSelectorMetadataShards) WithArrayOfValues(values []map[string]int64) *Alert_FieldSubPathArrayOfValues { 539 return s.FieldPath().WithIArrayOfValues(values).(*Alert_FieldSubPathArrayOfValues) 540 } 541 542 func (AlertPathSelectorMetadataShards) WithKey(key string) AlertMapPathSelectorMetadataShards { 543 return AlertMapPathSelectorMetadataShards{key: key} 544 } 545 546 type AlertMapPathSelectorMetadataShards struct { 547 key string 548 } 549 550 func (s AlertMapPathSelectorMetadataShards) FieldPath() *Alert_FieldSubPath { 551 return &Alert_FieldSubPath{ 552 selector: Alert_FieldPathSelectorMetadata, 553 subPath: meta.NewMetaFieldPathBuilder().Shards().WithKey(s.key).FieldPath(), 554 } 555 } 556 557 func (s AlertMapPathSelectorMetadataShards) WithValue(value int64) *Alert_FieldSubPathValue { 558 return s.FieldPath().WithIValue(value).(*Alert_FieldSubPathValue) 559 } 560 561 func (s AlertMapPathSelectorMetadataShards) WithArrayOfValues(values []int64) *Alert_FieldSubPathArrayOfValues { 562 return s.FieldPath().WithIArrayOfValues(values).(*Alert_FieldSubPathArrayOfValues) 563 } 564 565 type AlertPathSelectorMetadataSyncing struct{} 566 567 func (AlertPathSelectorMetadataSyncing) FieldPath() *Alert_FieldSubPath { 568 return &Alert_FieldSubPath{ 569 selector: Alert_FieldPathSelectorMetadata, 570 subPath: meta.NewMetaFieldPathBuilder().Syncing().FieldPath(), 571 } 572 } 573 574 func (s AlertPathSelectorMetadataSyncing) WithValue(value *meta.SyncingMeta) *Alert_FieldSubPathValue { 575 return s.FieldPath().WithIValue(value).(*Alert_FieldSubPathValue) 576 } 577 578 func (s AlertPathSelectorMetadataSyncing) WithArrayOfValues(values []*meta.SyncingMeta) *Alert_FieldSubPathArrayOfValues { 579 return s.FieldPath().WithIArrayOfValues(values).(*Alert_FieldSubPathArrayOfValues) 580 } 581 582 func (AlertPathSelectorMetadataSyncing) OwningRegion() AlertPathSelectorMetadataSyncingOwningRegion { 583 return AlertPathSelectorMetadataSyncingOwningRegion{} 584 } 585 586 func (AlertPathSelectorMetadataSyncing) Regions() AlertPathSelectorMetadataSyncingRegions { 587 return AlertPathSelectorMetadataSyncingRegions{} 588 } 589 590 type AlertPathSelectorMetadataSyncingOwningRegion struct{} 591 592 func (AlertPathSelectorMetadataSyncingOwningRegion) FieldPath() *Alert_FieldSubPath { 593 return &Alert_FieldSubPath{ 594 selector: Alert_FieldPathSelectorMetadata, 595 subPath: meta.NewMetaFieldPathBuilder().Syncing().OwningRegion().FieldPath(), 596 } 597 } 598 599 func (s AlertPathSelectorMetadataSyncingOwningRegion) WithValue(value string) *Alert_FieldSubPathValue { 600 return s.FieldPath().WithIValue(value).(*Alert_FieldSubPathValue) 601 } 602 603 func (s AlertPathSelectorMetadataSyncingOwningRegion) WithArrayOfValues(values []string) *Alert_FieldSubPathArrayOfValues { 604 return s.FieldPath().WithIArrayOfValues(values).(*Alert_FieldSubPathArrayOfValues) 605 } 606 607 type AlertPathSelectorMetadataSyncingRegions struct{} 608 609 func (AlertPathSelectorMetadataSyncingRegions) FieldPath() *Alert_FieldSubPath { 610 return &Alert_FieldSubPath{ 611 selector: Alert_FieldPathSelectorMetadata, 612 subPath: meta.NewMetaFieldPathBuilder().Syncing().Regions().FieldPath(), 613 } 614 } 615 616 func (s AlertPathSelectorMetadataSyncingRegions) WithValue(value []string) *Alert_FieldSubPathValue { 617 return s.FieldPath().WithIValue(value).(*Alert_FieldSubPathValue) 618 } 619 620 func (s AlertPathSelectorMetadataSyncingRegions) WithArrayOfValues(values [][]string) *Alert_FieldSubPathArrayOfValues { 621 return s.FieldPath().WithIArrayOfValues(values).(*Alert_FieldSubPathArrayOfValues) 622 } 623 624 func (s AlertPathSelectorMetadataSyncingRegions) WithItemValue(value string) *Alert_FieldSubPathArrayItemValue { 625 return s.FieldPath().WithIArrayItemValue(value).(*Alert_FieldSubPathArrayItemValue) 626 } 627 628 type AlertPathSelectorMetadataLifecycle struct{} 629 630 func (AlertPathSelectorMetadataLifecycle) FieldPath() *Alert_FieldSubPath { 631 return &Alert_FieldSubPath{ 632 selector: Alert_FieldPathSelectorMetadata, 633 subPath: meta.NewMetaFieldPathBuilder().Lifecycle().FieldPath(), 634 } 635 } 636 637 func (s AlertPathSelectorMetadataLifecycle) WithValue(value *meta.Lifecycle) *Alert_FieldSubPathValue { 638 return s.FieldPath().WithIValue(value).(*Alert_FieldSubPathValue) 639 } 640 641 func (s AlertPathSelectorMetadataLifecycle) WithArrayOfValues(values []*meta.Lifecycle) *Alert_FieldSubPathArrayOfValues { 642 return s.FieldPath().WithIArrayOfValues(values).(*Alert_FieldSubPathArrayOfValues) 643 } 644 645 func (AlertPathSelectorMetadataLifecycle) State() AlertPathSelectorMetadataLifecycleState { 646 return AlertPathSelectorMetadataLifecycleState{} 647 } 648 649 func (AlertPathSelectorMetadataLifecycle) BlockDeletion() AlertPathSelectorMetadataLifecycleBlockDeletion { 650 return AlertPathSelectorMetadataLifecycleBlockDeletion{} 651 } 652 653 type AlertPathSelectorMetadataLifecycleState struct{} 654 655 func (AlertPathSelectorMetadataLifecycleState) FieldPath() *Alert_FieldSubPath { 656 return &Alert_FieldSubPath{ 657 selector: Alert_FieldPathSelectorMetadata, 658 subPath: meta.NewMetaFieldPathBuilder().Lifecycle().State().FieldPath(), 659 } 660 } 661 662 func (s AlertPathSelectorMetadataLifecycleState) WithValue(value meta.Lifecycle_State) *Alert_FieldSubPathValue { 663 return s.FieldPath().WithIValue(value).(*Alert_FieldSubPathValue) 664 } 665 666 func (s AlertPathSelectorMetadataLifecycleState) WithArrayOfValues(values []meta.Lifecycle_State) *Alert_FieldSubPathArrayOfValues { 667 return s.FieldPath().WithIArrayOfValues(values).(*Alert_FieldSubPathArrayOfValues) 668 } 669 670 type AlertPathSelectorMetadataLifecycleBlockDeletion struct{} 671 672 func (AlertPathSelectorMetadataLifecycleBlockDeletion) FieldPath() *Alert_FieldSubPath { 673 return &Alert_FieldSubPath{ 674 selector: Alert_FieldPathSelectorMetadata, 675 subPath: meta.NewMetaFieldPathBuilder().Lifecycle().BlockDeletion().FieldPath(), 676 } 677 } 678 679 func (s AlertPathSelectorMetadataLifecycleBlockDeletion) WithValue(value bool) *Alert_FieldSubPathValue { 680 return s.FieldPath().WithIValue(value).(*Alert_FieldSubPathValue) 681 } 682 683 func (s AlertPathSelectorMetadataLifecycleBlockDeletion) WithArrayOfValues(values []bool) *Alert_FieldSubPathArrayOfValues { 684 return s.FieldPath().WithIArrayOfValues(values).(*Alert_FieldSubPathArrayOfValues) 685 } 686 687 type AlertPathSelectorMetadataServices struct{} 688 689 func (AlertPathSelectorMetadataServices) FieldPath() *Alert_FieldSubPath { 690 return &Alert_FieldSubPath{ 691 selector: Alert_FieldPathSelectorMetadata, 692 subPath: meta.NewMetaFieldPathBuilder().Services().FieldPath(), 693 } 694 } 695 696 func (s AlertPathSelectorMetadataServices) WithValue(value *meta.ServicesInfo) *Alert_FieldSubPathValue { 697 return s.FieldPath().WithIValue(value).(*Alert_FieldSubPathValue) 698 } 699 700 func (s AlertPathSelectorMetadataServices) WithArrayOfValues(values []*meta.ServicesInfo) *Alert_FieldSubPathArrayOfValues { 701 return s.FieldPath().WithIArrayOfValues(values).(*Alert_FieldSubPathArrayOfValues) 702 } 703 704 func (AlertPathSelectorMetadataServices) OwningService() AlertPathSelectorMetadataServicesOwningService { 705 return AlertPathSelectorMetadataServicesOwningService{} 706 } 707 708 func (AlertPathSelectorMetadataServices) AllowedServices() AlertPathSelectorMetadataServicesAllowedServices { 709 return AlertPathSelectorMetadataServicesAllowedServices{} 710 } 711 712 type AlertPathSelectorMetadataServicesOwningService struct{} 713 714 func (AlertPathSelectorMetadataServicesOwningService) FieldPath() *Alert_FieldSubPath { 715 return &Alert_FieldSubPath{ 716 selector: Alert_FieldPathSelectorMetadata, 717 subPath: meta.NewMetaFieldPathBuilder().Services().OwningService().FieldPath(), 718 } 719 } 720 721 func (s AlertPathSelectorMetadataServicesOwningService) WithValue(value string) *Alert_FieldSubPathValue { 722 return s.FieldPath().WithIValue(value).(*Alert_FieldSubPathValue) 723 } 724 725 func (s AlertPathSelectorMetadataServicesOwningService) WithArrayOfValues(values []string) *Alert_FieldSubPathArrayOfValues { 726 return s.FieldPath().WithIArrayOfValues(values).(*Alert_FieldSubPathArrayOfValues) 727 } 728 729 type AlertPathSelectorMetadataServicesAllowedServices struct{} 730 731 func (AlertPathSelectorMetadataServicesAllowedServices) FieldPath() *Alert_FieldSubPath { 732 return &Alert_FieldSubPath{ 733 selector: Alert_FieldPathSelectorMetadata, 734 subPath: meta.NewMetaFieldPathBuilder().Services().AllowedServices().FieldPath(), 735 } 736 } 737 738 func (s AlertPathSelectorMetadataServicesAllowedServices) WithValue(value []string) *Alert_FieldSubPathValue { 739 return s.FieldPath().WithIValue(value).(*Alert_FieldSubPathValue) 740 } 741 742 func (s AlertPathSelectorMetadataServicesAllowedServices) WithArrayOfValues(values [][]string) *Alert_FieldSubPathArrayOfValues { 743 return s.FieldPath().WithIArrayOfValues(values).(*Alert_FieldSubPathArrayOfValues) 744 } 745 746 func (s AlertPathSelectorMetadataServicesAllowedServices) WithItemValue(value string) *Alert_FieldSubPathArrayItemValue { 747 return s.FieldPath().WithIArrayItemValue(value).(*Alert_FieldSubPathArrayItemValue) 748 } 749 750 type AlertPathSelectorDisplayName struct{} 751 752 func (AlertPathSelectorDisplayName) FieldPath() *Alert_FieldTerminalPath { 753 return &Alert_FieldTerminalPath{selector: Alert_FieldPathSelectorDisplayName} 754 } 755 756 func (s AlertPathSelectorDisplayName) WithValue(value string) *Alert_FieldTerminalPathValue { 757 return s.FieldPath().WithIValue(value).(*Alert_FieldTerminalPathValue) 758 } 759 760 func (s AlertPathSelectorDisplayName) WithArrayOfValues(values []string) *Alert_FieldTerminalPathArrayOfValues { 761 return s.FieldPath().WithIArrayOfValues(values).(*Alert_FieldTerminalPathArrayOfValues) 762 } 763 764 type AlertPathSelectorInfo struct{} 765 766 func (AlertPathSelectorInfo) FieldPath() *Alert_FieldTerminalPath { 767 return &Alert_FieldTerminalPath{selector: Alert_FieldPathSelectorInfo} 768 } 769 770 func (s AlertPathSelectorInfo) WithValue(value *Alert_Info) *Alert_FieldTerminalPathValue { 771 return s.FieldPath().WithIValue(value).(*Alert_FieldTerminalPathValue) 772 } 773 774 func (s AlertPathSelectorInfo) WithArrayOfValues(values []*Alert_Info) *Alert_FieldTerminalPathArrayOfValues { 775 return s.FieldPath().WithIArrayOfValues(values).(*Alert_FieldTerminalPathArrayOfValues) 776 } 777 778 func (AlertPathSelectorInfo) WithSubPath(subPath AlertInfo_FieldPath) *Alert_FieldSubPath { 779 return &Alert_FieldSubPath{selector: Alert_FieldPathSelectorInfo, subPath: subPath} 780 } 781 782 func (s AlertPathSelectorInfo) WithSubValue(subPathValue AlertInfo_FieldPathValue) *Alert_FieldSubPathValue { 783 return &Alert_FieldSubPathValue{Alert_FieldPath: s.WithSubPath(subPathValue), subPathValue: subPathValue} 784 } 785 786 func (s AlertPathSelectorInfo) WithSubArrayOfValues(subPathArrayOfValues AlertInfo_FieldPathArrayOfValues) *Alert_FieldSubPathArrayOfValues { 787 return &Alert_FieldSubPathArrayOfValues{Alert_FieldPath: s.WithSubPath(subPathArrayOfValues), subPathArrayOfValues: subPathArrayOfValues} 788 } 789 790 func (s AlertPathSelectorInfo) WithSubArrayItemValue(subPathArrayItemValue AlertInfo_FieldPathArrayItemValue) *Alert_FieldSubPathArrayItemValue { 791 return &Alert_FieldSubPathArrayItemValue{Alert_FieldPath: s.WithSubPath(subPathArrayItemValue), subPathItemValue: subPathArrayItemValue} 792 } 793 794 func (AlertPathSelectorInfo) TimeSerie() AlertPathSelectorInfoTimeSerie { 795 return AlertPathSelectorInfoTimeSerie{} 796 } 797 798 func (AlertPathSelectorInfo) ObservedValues() AlertPathSelectorInfoObservedValues { 799 return AlertPathSelectorInfoObservedValues{} 800 } 801 802 type AlertPathSelectorInfoTimeSerie struct{} 803 804 func (AlertPathSelectorInfoTimeSerie) FieldPath() *Alert_FieldSubPath { 805 return &Alert_FieldSubPath{ 806 selector: Alert_FieldPathSelectorInfo, 807 subPath: NewAlertInfoFieldPathBuilder().TimeSerie().FieldPath(), 808 } 809 } 810 811 func (s AlertPathSelectorInfoTimeSerie) WithValue(value *Alert_Info_TimeSerie) *Alert_FieldSubPathValue { 812 return s.FieldPath().WithIValue(value).(*Alert_FieldSubPathValue) 813 } 814 815 func (s AlertPathSelectorInfoTimeSerie) WithArrayOfValues(values []*Alert_Info_TimeSerie) *Alert_FieldSubPathArrayOfValues { 816 return s.FieldPath().WithIArrayOfValues(values).(*Alert_FieldSubPathArrayOfValues) 817 } 818 819 func (AlertPathSelectorInfoTimeSerie) Key() AlertPathSelectorInfoTimeSerieKey { 820 return AlertPathSelectorInfoTimeSerieKey{} 821 } 822 823 func (AlertPathSelectorInfoTimeSerie) Metric() AlertPathSelectorInfoTimeSerieMetric { 824 return AlertPathSelectorInfoTimeSerieMetric{} 825 } 826 827 func (AlertPathSelectorInfoTimeSerie) MonitoredResource() AlertPathSelectorInfoTimeSerieMonitoredResource { 828 return AlertPathSelectorInfoTimeSerieMonitoredResource{} 829 } 830 831 type AlertPathSelectorInfoTimeSerieKey struct{} 832 833 func (AlertPathSelectorInfoTimeSerieKey) FieldPath() *Alert_FieldSubPath { 834 return &Alert_FieldSubPath{ 835 selector: Alert_FieldPathSelectorInfo, 836 subPath: NewAlertInfoFieldPathBuilder().TimeSerie().Key().FieldPath(), 837 } 838 } 839 840 func (s AlertPathSelectorInfoTimeSerieKey) WithValue(value []byte) *Alert_FieldSubPathValue { 841 return s.FieldPath().WithIValue(value).(*Alert_FieldSubPathValue) 842 } 843 844 func (s AlertPathSelectorInfoTimeSerieKey) WithArrayOfValues(values [][]byte) *Alert_FieldSubPathArrayOfValues { 845 return s.FieldPath().WithIArrayOfValues(values).(*Alert_FieldSubPathArrayOfValues) 846 } 847 848 type AlertPathSelectorInfoTimeSerieMetric struct{} 849 850 func (AlertPathSelectorInfoTimeSerieMetric) FieldPath() *Alert_FieldSubPath { 851 return &Alert_FieldSubPath{ 852 selector: Alert_FieldPathSelectorInfo, 853 subPath: NewAlertInfoFieldPathBuilder().TimeSerie().Metric().FieldPath(), 854 } 855 } 856 857 func (s AlertPathSelectorInfoTimeSerieMetric) WithValue(value *common.Metric) *Alert_FieldSubPathValue { 858 return s.FieldPath().WithIValue(value).(*Alert_FieldSubPathValue) 859 } 860 861 func (s AlertPathSelectorInfoTimeSerieMetric) WithArrayOfValues(values []*common.Metric) *Alert_FieldSubPathArrayOfValues { 862 return s.FieldPath().WithIArrayOfValues(values).(*Alert_FieldSubPathArrayOfValues) 863 } 864 865 func (AlertPathSelectorInfoTimeSerieMetric) Type() AlertPathSelectorInfoTimeSerieMetricType { 866 return AlertPathSelectorInfoTimeSerieMetricType{} 867 } 868 869 func (AlertPathSelectorInfoTimeSerieMetric) Labels() AlertPathSelectorInfoTimeSerieMetricLabels { 870 return AlertPathSelectorInfoTimeSerieMetricLabels{} 871 } 872 873 func (AlertPathSelectorInfoTimeSerieMetric) ReducedLabels() AlertPathSelectorInfoTimeSerieMetricReducedLabels { 874 return AlertPathSelectorInfoTimeSerieMetricReducedLabels{} 875 } 876 877 type AlertPathSelectorInfoTimeSerieMetricType struct{} 878 879 func (AlertPathSelectorInfoTimeSerieMetricType) FieldPath() *Alert_FieldSubPath { 880 return &Alert_FieldSubPath{ 881 selector: Alert_FieldPathSelectorInfo, 882 subPath: NewAlertInfoFieldPathBuilder().TimeSerie().Metric().Type().FieldPath(), 883 } 884 } 885 886 func (s AlertPathSelectorInfoTimeSerieMetricType) WithValue(value string) *Alert_FieldSubPathValue { 887 return s.FieldPath().WithIValue(value).(*Alert_FieldSubPathValue) 888 } 889 890 func (s AlertPathSelectorInfoTimeSerieMetricType) WithArrayOfValues(values []string) *Alert_FieldSubPathArrayOfValues { 891 return s.FieldPath().WithIArrayOfValues(values).(*Alert_FieldSubPathArrayOfValues) 892 } 893 894 type AlertPathSelectorInfoTimeSerieMetricLabels struct{} 895 896 func (AlertPathSelectorInfoTimeSerieMetricLabels) FieldPath() *Alert_FieldSubPath { 897 return &Alert_FieldSubPath{ 898 selector: Alert_FieldPathSelectorInfo, 899 subPath: NewAlertInfoFieldPathBuilder().TimeSerie().Metric().Labels().FieldPath(), 900 } 901 } 902 903 func (s AlertPathSelectorInfoTimeSerieMetricLabels) WithValue(value map[string]string) *Alert_FieldSubPathValue { 904 return s.FieldPath().WithIValue(value).(*Alert_FieldSubPathValue) 905 } 906 907 func (s AlertPathSelectorInfoTimeSerieMetricLabels) WithArrayOfValues(values []map[string]string) *Alert_FieldSubPathArrayOfValues { 908 return s.FieldPath().WithIArrayOfValues(values).(*Alert_FieldSubPathArrayOfValues) 909 } 910 911 func (AlertPathSelectorInfoTimeSerieMetricLabels) WithKey(key string) AlertMapPathSelectorInfoTimeSerieMetricLabels { 912 return AlertMapPathSelectorInfoTimeSerieMetricLabels{key: key} 913 } 914 915 type AlertMapPathSelectorInfoTimeSerieMetricLabels struct { 916 key string 917 } 918 919 func (s AlertMapPathSelectorInfoTimeSerieMetricLabels) FieldPath() *Alert_FieldSubPath { 920 return &Alert_FieldSubPath{ 921 selector: Alert_FieldPathSelectorInfo, 922 subPath: NewAlertInfoFieldPathBuilder().TimeSerie().Metric().Labels().WithKey(s.key).FieldPath(), 923 } 924 } 925 926 func (s AlertMapPathSelectorInfoTimeSerieMetricLabels) WithValue(value string) *Alert_FieldSubPathValue { 927 return s.FieldPath().WithIValue(value).(*Alert_FieldSubPathValue) 928 } 929 930 func (s AlertMapPathSelectorInfoTimeSerieMetricLabels) WithArrayOfValues(values []string) *Alert_FieldSubPathArrayOfValues { 931 return s.FieldPath().WithIArrayOfValues(values).(*Alert_FieldSubPathArrayOfValues) 932 } 933 934 type AlertPathSelectorInfoTimeSerieMetricReducedLabels struct{} 935 936 func (AlertPathSelectorInfoTimeSerieMetricReducedLabels) FieldPath() *Alert_FieldSubPath { 937 return &Alert_FieldSubPath{ 938 selector: Alert_FieldPathSelectorInfo, 939 subPath: NewAlertInfoFieldPathBuilder().TimeSerie().Metric().ReducedLabels().FieldPath(), 940 } 941 } 942 943 func (s AlertPathSelectorInfoTimeSerieMetricReducedLabels) WithValue(value []string) *Alert_FieldSubPathValue { 944 return s.FieldPath().WithIValue(value).(*Alert_FieldSubPathValue) 945 } 946 947 func (s AlertPathSelectorInfoTimeSerieMetricReducedLabels) WithArrayOfValues(values [][]string) *Alert_FieldSubPathArrayOfValues { 948 return s.FieldPath().WithIArrayOfValues(values).(*Alert_FieldSubPathArrayOfValues) 949 } 950 951 func (s AlertPathSelectorInfoTimeSerieMetricReducedLabels) WithItemValue(value string) *Alert_FieldSubPathArrayItemValue { 952 return s.FieldPath().WithIArrayItemValue(value).(*Alert_FieldSubPathArrayItemValue) 953 } 954 955 type AlertPathSelectorInfoTimeSerieMonitoredResource struct{} 956 957 func (AlertPathSelectorInfoTimeSerieMonitoredResource) FieldPath() *Alert_FieldSubPath { 958 return &Alert_FieldSubPath{ 959 selector: Alert_FieldPathSelectorInfo, 960 subPath: NewAlertInfoFieldPathBuilder().TimeSerie().MonitoredResource().FieldPath(), 961 } 962 } 963 964 func (s AlertPathSelectorInfoTimeSerieMonitoredResource) WithValue(value *common.MonitoredResource) *Alert_FieldSubPathValue { 965 return s.FieldPath().WithIValue(value).(*Alert_FieldSubPathValue) 966 } 967 968 func (s AlertPathSelectorInfoTimeSerieMonitoredResource) WithArrayOfValues(values []*common.MonitoredResource) *Alert_FieldSubPathArrayOfValues { 969 return s.FieldPath().WithIArrayOfValues(values).(*Alert_FieldSubPathArrayOfValues) 970 } 971 972 func (AlertPathSelectorInfoTimeSerieMonitoredResource) Type() AlertPathSelectorInfoTimeSerieMonitoredResourceType { 973 return AlertPathSelectorInfoTimeSerieMonitoredResourceType{} 974 } 975 976 func (AlertPathSelectorInfoTimeSerieMonitoredResource) Labels() AlertPathSelectorInfoTimeSerieMonitoredResourceLabels { 977 return AlertPathSelectorInfoTimeSerieMonitoredResourceLabels{} 978 } 979 980 func (AlertPathSelectorInfoTimeSerieMonitoredResource) ReducedLabels() AlertPathSelectorInfoTimeSerieMonitoredResourceReducedLabels { 981 return AlertPathSelectorInfoTimeSerieMonitoredResourceReducedLabels{} 982 } 983 984 type AlertPathSelectorInfoTimeSerieMonitoredResourceType struct{} 985 986 func (AlertPathSelectorInfoTimeSerieMonitoredResourceType) FieldPath() *Alert_FieldSubPath { 987 return &Alert_FieldSubPath{ 988 selector: Alert_FieldPathSelectorInfo, 989 subPath: NewAlertInfoFieldPathBuilder().TimeSerie().MonitoredResource().Type().FieldPath(), 990 } 991 } 992 993 func (s AlertPathSelectorInfoTimeSerieMonitoredResourceType) WithValue(value string) *Alert_FieldSubPathValue { 994 return s.FieldPath().WithIValue(value).(*Alert_FieldSubPathValue) 995 } 996 997 func (s AlertPathSelectorInfoTimeSerieMonitoredResourceType) WithArrayOfValues(values []string) *Alert_FieldSubPathArrayOfValues { 998 return s.FieldPath().WithIArrayOfValues(values).(*Alert_FieldSubPathArrayOfValues) 999 } 1000 1001 type AlertPathSelectorInfoTimeSerieMonitoredResourceLabels struct{} 1002 1003 func (AlertPathSelectorInfoTimeSerieMonitoredResourceLabels) FieldPath() *Alert_FieldSubPath { 1004 return &Alert_FieldSubPath{ 1005 selector: Alert_FieldPathSelectorInfo, 1006 subPath: NewAlertInfoFieldPathBuilder().TimeSerie().MonitoredResource().Labels().FieldPath(), 1007 } 1008 } 1009 1010 func (s AlertPathSelectorInfoTimeSerieMonitoredResourceLabels) WithValue(value map[string]string) *Alert_FieldSubPathValue { 1011 return s.FieldPath().WithIValue(value).(*Alert_FieldSubPathValue) 1012 } 1013 1014 func (s AlertPathSelectorInfoTimeSerieMonitoredResourceLabels) WithArrayOfValues(values []map[string]string) *Alert_FieldSubPathArrayOfValues { 1015 return s.FieldPath().WithIArrayOfValues(values).(*Alert_FieldSubPathArrayOfValues) 1016 } 1017 1018 func (AlertPathSelectorInfoTimeSerieMonitoredResourceLabels) WithKey(key string) AlertMapPathSelectorInfoTimeSerieMonitoredResourceLabels { 1019 return AlertMapPathSelectorInfoTimeSerieMonitoredResourceLabels{key: key} 1020 } 1021 1022 type AlertMapPathSelectorInfoTimeSerieMonitoredResourceLabels struct { 1023 key string 1024 } 1025 1026 func (s AlertMapPathSelectorInfoTimeSerieMonitoredResourceLabels) FieldPath() *Alert_FieldSubPath { 1027 return &Alert_FieldSubPath{ 1028 selector: Alert_FieldPathSelectorInfo, 1029 subPath: NewAlertInfoFieldPathBuilder().TimeSerie().MonitoredResource().Labels().WithKey(s.key).FieldPath(), 1030 } 1031 } 1032 1033 func (s AlertMapPathSelectorInfoTimeSerieMonitoredResourceLabels) WithValue(value string) *Alert_FieldSubPathValue { 1034 return s.FieldPath().WithIValue(value).(*Alert_FieldSubPathValue) 1035 } 1036 1037 func (s AlertMapPathSelectorInfoTimeSerieMonitoredResourceLabels) WithArrayOfValues(values []string) *Alert_FieldSubPathArrayOfValues { 1038 return s.FieldPath().WithIArrayOfValues(values).(*Alert_FieldSubPathArrayOfValues) 1039 } 1040 1041 type AlertPathSelectorInfoTimeSerieMonitoredResourceReducedLabels struct{} 1042 1043 func (AlertPathSelectorInfoTimeSerieMonitoredResourceReducedLabels) FieldPath() *Alert_FieldSubPath { 1044 return &Alert_FieldSubPath{ 1045 selector: Alert_FieldPathSelectorInfo, 1046 subPath: NewAlertInfoFieldPathBuilder().TimeSerie().MonitoredResource().ReducedLabels().FieldPath(), 1047 } 1048 } 1049 1050 func (s AlertPathSelectorInfoTimeSerieMonitoredResourceReducedLabels) WithValue(value []string) *Alert_FieldSubPathValue { 1051 return s.FieldPath().WithIValue(value).(*Alert_FieldSubPathValue) 1052 } 1053 1054 func (s AlertPathSelectorInfoTimeSerieMonitoredResourceReducedLabels) WithArrayOfValues(values [][]string) *Alert_FieldSubPathArrayOfValues { 1055 return s.FieldPath().WithIArrayOfValues(values).(*Alert_FieldSubPathArrayOfValues) 1056 } 1057 1058 func (s AlertPathSelectorInfoTimeSerieMonitoredResourceReducedLabels) WithItemValue(value string) *Alert_FieldSubPathArrayItemValue { 1059 return s.FieldPath().WithIArrayItemValue(value).(*Alert_FieldSubPathArrayItemValue) 1060 } 1061 1062 type AlertPathSelectorInfoObservedValues struct{} 1063 1064 func (AlertPathSelectorInfoObservedValues) FieldPath() *Alert_FieldSubPath { 1065 return &Alert_FieldSubPath{ 1066 selector: Alert_FieldPathSelectorInfo, 1067 subPath: NewAlertInfoFieldPathBuilder().ObservedValues().FieldPath(), 1068 } 1069 } 1070 1071 func (s AlertPathSelectorInfoObservedValues) WithValue(value *Alert_Info_ObservedValues) *Alert_FieldSubPathValue { 1072 return s.FieldPath().WithIValue(value).(*Alert_FieldSubPathValue) 1073 } 1074 1075 func (s AlertPathSelectorInfoObservedValues) WithArrayOfValues(values []*Alert_Info_ObservedValues) *Alert_FieldSubPathArrayOfValues { 1076 return s.FieldPath().WithIArrayOfValues(values).(*Alert_FieldSubPathArrayOfValues) 1077 } 1078 1079 func (AlertPathSelectorInfoObservedValues) ExampleValue() AlertPathSelectorInfoObservedValuesExampleValue { 1080 return AlertPathSelectorInfoObservedValuesExampleValue{} 1081 } 1082 1083 func (AlertPathSelectorInfoObservedValues) PerMetric() AlertPathSelectorInfoObservedValuesPerMetric { 1084 return AlertPathSelectorInfoObservedValuesPerMetric{} 1085 } 1086 1087 type AlertPathSelectorInfoObservedValuesExampleValue struct{} 1088 1089 func (AlertPathSelectorInfoObservedValuesExampleValue) FieldPath() *Alert_FieldSubPath { 1090 return &Alert_FieldSubPath{ 1091 selector: Alert_FieldPathSelectorInfo, 1092 subPath: NewAlertInfoFieldPathBuilder().ObservedValues().ExampleValue().FieldPath(), 1093 } 1094 } 1095 1096 func (s AlertPathSelectorInfoObservedValuesExampleValue) WithValue(value float64) *Alert_FieldSubPathValue { 1097 return s.FieldPath().WithIValue(value).(*Alert_FieldSubPathValue) 1098 } 1099 1100 func (s AlertPathSelectorInfoObservedValuesExampleValue) WithArrayOfValues(values []float64) *Alert_FieldSubPathArrayOfValues { 1101 return s.FieldPath().WithIArrayOfValues(values).(*Alert_FieldSubPathArrayOfValues) 1102 } 1103 1104 type AlertPathSelectorInfoObservedValuesPerMetric struct{} 1105 1106 func (AlertPathSelectorInfoObservedValuesPerMetric) FieldPath() *Alert_FieldSubPath { 1107 return &Alert_FieldSubPath{ 1108 selector: Alert_FieldPathSelectorInfo, 1109 subPath: NewAlertInfoFieldPathBuilder().ObservedValues().PerMetric().FieldPath(), 1110 } 1111 } 1112 1113 func (s AlertPathSelectorInfoObservedValuesPerMetric) WithValue(value map[string]float64) *Alert_FieldSubPathValue { 1114 return s.FieldPath().WithIValue(value).(*Alert_FieldSubPathValue) 1115 } 1116 1117 func (s AlertPathSelectorInfoObservedValuesPerMetric) WithArrayOfValues(values []map[string]float64) *Alert_FieldSubPathArrayOfValues { 1118 return s.FieldPath().WithIArrayOfValues(values).(*Alert_FieldSubPathArrayOfValues) 1119 } 1120 1121 func (AlertPathSelectorInfoObservedValuesPerMetric) WithKey(key string) AlertMapPathSelectorInfoObservedValuesPerMetric { 1122 return AlertMapPathSelectorInfoObservedValuesPerMetric{key: key} 1123 } 1124 1125 type AlertMapPathSelectorInfoObservedValuesPerMetric struct { 1126 key string 1127 } 1128 1129 func (s AlertMapPathSelectorInfoObservedValuesPerMetric) FieldPath() *Alert_FieldSubPath { 1130 return &Alert_FieldSubPath{ 1131 selector: Alert_FieldPathSelectorInfo, 1132 subPath: NewAlertInfoFieldPathBuilder().ObservedValues().PerMetric().WithKey(s.key).FieldPath(), 1133 } 1134 } 1135 1136 func (s AlertMapPathSelectorInfoObservedValuesPerMetric) WithValue(value float64) *Alert_FieldSubPathValue { 1137 return s.FieldPath().WithIValue(value).(*Alert_FieldSubPathValue) 1138 } 1139 1140 func (s AlertMapPathSelectorInfoObservedValuesPerMetric) WithArrayOfValues(values []float64) *Alert_FieldSubPathArrayOfValues { 1141 return s.FieldPath().WithIArrayOfValues(values).(*Alert_FieldSubPathArrayOfValues) 1142 } 1143 1144 type AlertPathSelectorState struct{} 1145 1146 func (AlertPathSelectorState) FieldPath() *Alert_FieldTerminalPath { 1147 return &Alert_FieldTerminalPath{selector: Alert_FieldPathSelectorState} 1148 } 1149 1150 func (s AlertPathSelectorState) WithValue(value *Alert_State) *Alert_FieldTerminalPathValue { 1151 return s.FieldPath().WithIValue(value).(*Alert_FieldTerminalPathValue) 1152 } 1153 1154 func (s AlertPathSelectorState) WithArrayOfValues(values []*Alert_State) *Alert_FieldTerminalPathArrayOfValues { 1155 return s.FieldPath().WithIArrayOfValues(values).(*Alert_FieldTerminalPathArrayOfValues) 1156 } 1157 1158 func (AlertPathSelectorState) WithSubPath(subPath AlertState_FieldPath) *Alert_FieldSubPath { 1159 return &Alert_FieldSubPath{selector: Alert_FieldPathSelectorState, subPath: subPath} 1160 } 1161 1162 func (s AlertPathSelectorState) WithSubValue(subPathValue AlertState_FieldPathValue) *Alert_FieldSubPathValue { 1163 return &Alert_FieldSubPathValue{Alert_FieldPath: s.WithSubPath(subPathValue), subPathValue: subPathValue} 1164 } 1165 1166 func (s AlertPathSelectorState) WithSubArrayOfValues(subPathArrayOfValues AlertState_FieldPathArrayOfValues) *Alert_FieldSubPathArrayOfValues { 1167 return &Alert_FieldSubPathArrayOfValues{Alert_FieldPath: s.WithSubPath(subPathArrayOfValues), subPathArrayOfValues: subPathArrayOfValues} 1168 } 1169 1170 func (s AlertPathSelectorState) WithSubArrayItemValue(subPathArrayItemValue AlertState_FieldPathArrayItemValue) *Alert_FieldSubPathArrayItemValue { 1171 return &Alert_FieldSubPathArrayItemValue{Alert_FieldPath: s.WithSubPath(subPathArrayItemValue), subPathItemValue: subPathArrayItemValue} 1172 } 1173 1174 func (AlertPathSelectorState) IsFiring() AlertPathSelectorStateIsFiring { 1175 return AlertPathSelectorStateIsFiring{} 1176 } 1177 1178 func (AlertPathSelectorState) IsAcknowledged() AlertPathSelectorStateIsAcknowledged { 1179 return AlertPathSelectorStateIsAcknowledged{} 1180 } 1181 1182 func (AlertPathSelectorState) IsSilenced() AlertPathSelectorStateIsSilenced { 1183 return AlertPathSelectorStateIsSilenced{} 1184 } 1185 1186 func (AlertPathSelectorState) Lifetime() AlertPathSelectorStateLifetime { 1187 return AlertPathSelectorStateLifetime{} 1188 } 1189 1190 func (AlertPathSelectorState) NeedsNotification() AlertPathSelectorStateNeedsNotification { 1191 return AlertPathSelectorStateNeedsNotification{} 1192 } 1193 1194 func (AlertPathSelectorState) NotificationCreated() AlertPathSelectorStateNotificationCreated { 1195 return AlertPathSelectorStateNotificationCreated{} 1196 } 1197 1198 func (AlertPathSelectorState) LifecycleCompleted() AlertPathSelectorStateLifecycleCompleted { 1199 return AlertPathSelectorStateLifecycleCompleted{} 1200 } 1201 1202 type AlertPathSelectorStateIsFiring struct{} 1203 1204 func (AlertPathSelectorStateIsFiring) FieldPath() *Alert_FieldSubPath { 1205 return &Alert_FieldSubPath{ 1206 selector: Alert_FieldPathSelectorState, 1207 subPath: NewAlertStateFieldPathBuilder().IsFiring().FieldPath(), 1208 } 1209 } 1210 1211 func (s AlertPathSelectorStateIsFiring) WithValue(value bool) *Alert_FieldSubPathValue { 1212 return s.FieldPath().WithIValue(value).(*Alert_FieldSubPathValue) 1213 } 1214 1215 func (s AlertPathSelectorStateIsFiring) WithArrayOfValues(values []bool) *Alert_FieldSubPathArrayOfValues { 1216 return s.FieldPath().WithIArrayOfValues(values).(*Alert_FieldSubPathArrayOfValues) 1217 } 1218 1219 type AlertPathSelectorStateIsAcknowledged struct{} 1220 1221 func (AlertPathSelectorStateIsAcknowledged) FieldPath() *Alert_FieldSubPath { 1222 return &Alert_FieldSubPath{ 1223 selector: Alert_FieldPathSelectorState, 1224 subPath: NewAlertStateFieldPathBuilder().IsAcknowledged().FieldPath(), 1225 } 1226 } 1227 1228 func (s AlertPathSelectorStateIsAcknowledged) WithValue(value bool) *Alert_FieldSubPathValue { 1229 return s.FieldPath().WithIValue(value).(*Alert_FieldSubPathValue) 1230 } 1231 1232 func (s AlertPathSelectorStateIsAcknowledged) WithArrayOfValues(values []bool) *Alert_FieldSubPathArrayOfValues { 1233 return s.FieldPath().WithIArrayOfValues(values).(*Alert_FieldSubPathArrayOfValues) 1234 } 1235 1236 type AlertPathSelectorStateIsSilenced struct{} 1237 1238 func (AlertPathSelectorStateIsSilenced) FieldPath() *Alert_FieldSubPath { 1239 return &Alert_FieldSubPath{ 1240 selector: Alert_FieldPathSelectorState, 1241 subPath: NewAlertStateFieldPathBuilder().IsSilenced().FieldPath(), 1242 } 1243 } 1244 1245 func (s AlertPathSelectorStateIsSilenced) WithValue(value bool) *Alert_FieldSubPathValue { 1246 return s.FieldPath().WithIValue(value).(*Alert_FieldSubPathValue) 1247 } 1248 1249 func (s AlertPathSelectorStateIsSilenced) WithArrayOfValues(values []bool) *Alert_FieldSubPathArrayOfValues { 1250 return s.FieldPath().WithIArrayOfValues(values).(*Alert_FieldSubPathArrayOfValues) 1251 } 1252 1253 type AlertPathSelectorStateLifetime struct{} 1254 1255 func (AlertPathSelectorStateLifetime) FieldPath() *Alert_FieldSubPath { 1256 return &Alert_FieldSubPath{ 1257 selector: Alert_FieldPathSelectorState, 1258 subPath: NewAlertStateFieldPathBuilder().Lifetime().FieldPath(), 1259 } 1260 } 1261 1262 func (s AlertPathSelectorStateLifetime) WithValue(value *common.TimeRange) *Alert_FieldSubPathValue { 1263 return s.FieldPath().WithIValue(value).(*Alert_FieldSubPathValue) 1264 } 1265 1266 func (s AlertPathSelectorStateLifetime) WithArrayOfValues(values []*common.TimeRange) *Alert_FieldSubPathArrayOfValues { 1267 return s.FieldPath().WithIArrayOfValues(values).(*Alert_FieldSubPathArrayOfValues) 1268 } 1269 1270 func (AlertPathSelectorStateLifetime) StartTime() AlertPathSelectorStateLifetimeStartTime { 1271 return AlertPathSelectorStateLifetimeStartTime{} 1272 } 1273 1274 func (AlertPathSelectorStateLifetime) EndTime() AlertPathSelectorStateLifetimeEndTime { 1275 return AlertPathSelectorStateLifetimeEndTime{} 1276 } 1277 1278 type AlertPathSelectorStateLifetimeStartTime struct{} 1279 1280 func (AlertPathSelectorStateLifetimeStartTime) FieldPath() *Alert_FieldSubPath { 1281 return &Alert_FieldSubPath{ 1282 selector: Alert_FieldPathSelectorState, 1283 subPath: NewAlertStateFieldPathBuilder().Lifetime().StartTime().FieldPath(), 1284 } 1285 } 1286 1287 func (s AlertPathSelectorStateLifetimeStartTime) WithValue(value *timestamppb.Timestamp) *Alert_FieldSubPathValue { 1288 return s.FieldPath().WithIValue(value).(*Alert_FieldSubPathValue) 1289 } 1290 1291 func (s AlertPathSelectorStateLifetimeStartTime) WithArrayOfValues(values []*timestamppb.Timestamp) *Alert_FieldSubPathArrayOfValues { 1292 return s.FieldPath().WithIArrayOfValues(values).(*Alert_FieldSubPathArrayOfValues) 1293 } 1294 1295 type AlertPathSelectorStateLifetimeEndTime struct{} 1296 1297 func (AlertPathSelectorStateLifetimeEndTime) FieldPath() *Alert_FieldSubPath { 1298 return &Alert_FieldSubPath{ 1299 selector: Alert_FieldPathSelectorState, 1300 subPath: NewAlertStateFieldPathBuilder().Lifetime().EndTime().FieldPath(), 1301 } 1302 } 1303 1304 func (s AlertPathSelectorStateLifetimeEndTime) WithValue(value *timestamppb.Timestamp) *Alert_FieldSubPathValue { 1305 return s.FieldPath().WithIValue(value).(*Alert_FieldSubPathValue) 1306 } 1307 1308 func (s AlertPathSelectorStateLifetimeEndTime) WithArrayOfValues(values []*timestamppb.Timestamp) *Alert_FieldSubPathArrayOfValues { 1309 return s.FieldPath().WithIArrayOfValues(values).(*Alert_FieldSubPathArrayOfValues) 1310 } 1311 1312 type AlertPathSelectorStateNeedsNotification struct{} 1313 1314 func (AlertPathSelectorStateNeedsNotification) FieldPath() *Alert_FieldSubPath { 1315 return &Alert_FieldSubPath{ 1316 selector: Alert_FieldPathSelectorState, 1317 subPath: NewAlertStateFieldPathBuilder().NeedsNotification().FieldPath(), 1318 } 1319 } 1320 1321 func (s AlertPathSelectorStateNeedsNotification) WithValue(value bool) *Alert_FieldSubPathValue { 1322 return s.FieldPath().WithIValue(value).(*Alert_FieldSubPathValue) 1323 } 1324 1325 func (s AlertPathSelectorStateNeedsNotification) WithArrayOfValues(values []bool) *Alert_FieldSubPathArrayOfValues { 1326 return s.FieldPath().WithIArrayOfValues(values).(*Alert_FieldSubPathArrayOfValues) 1327 } 1328 1329 type AlertPathSelectorStateNotificationCreated struct{} 1330 1331 func (AlertPathSelectorStateNotificationCreated) FieldPath() *Alert_FieldSubPath { 1332 return &Alert_FieldSubPath{ 1333 selector: Alert_FieldPathSelectorState, 1334 subPath: NewAlertStateFieldPathBuilder().NotificationCreated().FieldPath(), 1335 } 1336 } 1337 1338 func (s AlertPathSelectorStateNotificationCreated) WithValue(value bool) *Alert_FieldSubPathValue { 1339 return s.FieldPath().WithIValue(value).(*Alert_FieldSubPathValue) 1340 } 1341 1342 func (s AlertPathSelectorStateNotificationCreated) WithArrayOfValues(values []bool) *Alert_FieldSubPathArrayOfValues { 1343 return s.FieldPath().WithIArrayOfValues(values).(*Alert_FieldSubPathArrayOfValues) 1344 } 1345 1346 type AlertPathSelectorStateLifecycleCompleted struct{} 1347 1348 func (AlertPathSelectorStateLifecycleCompleted) FieldPath() *Alert_FieldSubPath { 1349 return &Alert_FieldSubPath{ 1350 selector: Alert_FieldPathSelectorState, 1351 subPath: NewAlertStateFieldPathBuilder().LifecycleCompleted().FieldPath(), 1352 } 1353 } 1354 1355 func (s AlertPathSelectorStateLifecycleCompleted) WithValue(value bool) *Alert_FieldSubPathValue { 1356 return s.FieldPath().WithIValue(value).(*Alert_FieldSubPathValue) 1357 } 1358 1359 func (s AlertPathSelectorStateLifecycleCompleted) WithArrayOfValues(values []bool) *Alert_FieldSubPathArrayOfValues { 1360 return s.FieldPath().WithIArrayOfValues(values).(*Alert_FieldSubPathArrayOfValues) 1361 } 1362 1363 type AlertInfoFieldPathBuilder struct{} 1364 1365 func NewAlertInfoFieldPathBuilder() AlertInfoFieldPathBuilder { 1366 return AlertInfoFieldPathBuilder{} 1367 } 1368 func (AlertInfoFieldPathBuilder) TimeSerie() Alert_InfoPathSelectorTimeSerie { 1369 return Alert_InfoPathSelectorTimeSerie{} 1370 } 1371 func (AlertInfoFieldPathBuilder) ObservedValues() Alert_InfoPathSelectorObservedValues { 1372 return Alert_InfoPathSelectorObservedValues{} 1373 } 1374 1375 type Alert_InfoPathSelectorTimeSerie struct{} 1376 1377 func (Alert_InfoPathSelectorTimeSerie) FieldPath() *AlertInfo_FieldTerminalPath { 1378 return &AlertInfo_FieldTerminalPath{selector: AlertInfo_FieldPathSelectorTimeSerie} 1379 } 1380 1381 func (s Alert_InfoPathSelectorTimeSerie) WithValue(value *Alert_Info_TimeSerie) *AlertInfo_FieldTerminalPathValue { 1382 return s.FieldPath().WithIValue(value).(*AlertInfo_FieldTerminalPathValue) 1383 } 1384 1385 func (s Alert_InfoPathSelectorTimeSerie) WithArrayOfValues(values []*Alert_Info_TimeSerie) *AlertInfo_FieldTerminalPathArrayOfValues { 1386 return s.FieldPath().WithIArrayOfValues(values).(*AlertInfo_FieldTerminalPathArrayOfValues) 1387 } 1388 1389 func (Alert_InfoPathSelectorTimeSerie) WithSubPath(subPath AlertInfoTimeSerie_FieldPath) *AlertInfo_FieldSubPath { 1390 return &AlertInfo_FieldSubPath{selector: AlertInfo_FieldPathSelectorTimeSerie, subPath: subPath} 1391 } 1392 1393 func (s Alert_InfoPathSelectorTimeSerie) WithSubValue(subPathValue AlertInfoTimeSerie_FieldPathValue) *AlertInfo_FieldSubPathValue { 1394 return &AlertInfo_FieldSubPathValue{AlertInfo_FieldPath: s.WithSubPath(subPathValue), subPathValue: subPathValue} 1395 } 1396 1397 func (s Alert_InfoPathSelectorTimeSerie) WithSubArrayOfValues(subPathArrayOfValues AlertInfoTimeSerie_FieldPathArrayOfValues) *AlertInfo_FieldSubPathArrayOfValues { 1398 return &AlertInfo_FieldSubPathArrayOfValues{AlertInfo_FieldPath: s.WithSubPath(subPathArrayOfValues), subPathArrayOfValues: subPathArrayOfValues} 1399 } 1400 1401 func (s Alert_InfoPathSelectorTimeSerie) WithSubArrayItemValue(subPathArrayItemValue AlertInfoTimeSerie_FieldPathArrayItemValue) *AlertInfo_FieldSubPathArrayItemValue { 1402 return &AlertInfo_FieldSubPathArrayItemValue{AlertInfo_FieldPath: s.WithSubPath(subPathArrayItemValue), subPathItemValue: subPathArrayItemValue} 1403 } 1404 1405 func (Alert_InfoPathSelectorTimeSerie) Key() Alert_InfoPathSelectorTimeSerieKey { 1406 return Alert_InfoPathSelectorTimeSerieKey{} 1407 } 1408 1409 func (Alert_InfoPathSelectorTimeSerie) Metric() Alert_InfoPathSelectorTimeSerieMetric { 1410 return Alert_InfoPathSelectorTimeSerieMetric{} 1411 } 1412 1413 func (Alert_InfoPathSelectorTimeSerie) MonitoredResource() Alert_InfoPathSelectorTimeSerieMonitoredResource { 1414 return Alert_InfoPathSelectorTimeSerieMonitoredResource{} 1415 } 1416 1417 type Alert_InfoPathSelectorTimeSerieKey struct{} 1418 1419 func (Alert_InfoPathSelectorTimeSerieKey) FieldPath() *AlertInfo_FieldSubPath { 1420 return &AlertInfo_FieldSubPath{ 1421 selector: AlertInfo_FieldPathSelectorTimeSerie, 1422 subPath: NewAlertInfoTimeSerieFieldPathBuilder().Key().FieldPath(), 1423 } 1424 } 1425 1426 func (s Alert_InfoPathSelectorTimeSerieKey) WithValue(value []byte) *AlertInfo_FieldSubPathValue { 1427 return s.FieldPath().WithIValue(value).(*AlertInfo_FieldSubPathValue) 1428 } 1429 1430 func (s Alert_InfoPathSelectorTimeSerieKey) WithArrayOfValues(values [][]byte) *AlertInfo_FieldSubPathArrayOfValues { 1431 return s.FieldPath().WithIArrayOfValues(values).(*AlertInfo_FieldSubPathArrayOfValues) 1432 } 1433 1434 type Alert_InfoPathSelectorTimeSerieMetric struct{} 1435 1436 func (Alert_InfoPathSelectorTimeSerieMetric) FieldPath() *AlertInfo_FieldSubPath { 1437 return &AlertInfo_FieldSubPath{ 1438 selector: AlertInfo_FieldPathSelectorTimeSerie, 1439 subPath: NewAlertInfoTimeSerieFieldPathBuilder().Metric().FieldPath(), 1440 } 1441 } 1442 1443 func (s Alert_InfoPathSelectorTimeSerieMetric) WithValue(value *common.Metric) *AlertInfo_FieldSubPathValue { 1444 return s.FieldPath().WithIValue(value).(*AlertInfo_FieldSubPathValue) 1445 } 1446 1447 func (s Alert_InfoPathSelectorTimeSerieMetric) WithArrayOfValues(values []*common.Metric) *AlertInfo_FieldSubPathArrayOfValues { 1448 return s.FieldPath().WithIArrayOfValues(values).(*AlertInfo_FieldSubPathArrayOfValues) 1449 } 1450 1451 func (Alert_InfoPathSelectorTimeSerieMetric) Type() Alert_InfoPathSelectorTimeSerieMetricType { 1452 return Alert_InfoPathSelectorTimeSerieMetricType{} 1453 } 1454 1455 func (Alert_InfoPathSelectorTimeSerieMetric) Labels() Alert_InfoPathSelectorTimeSerieMetricLabels { 1456 return Alert_InfoPathSelectorTimeSerieMetricLabels{} 1457 } 1458 1459 func (Alert_InfoPathSelectorTimeSerieMetric) ReducedLabels() Alert_InfoPathSelectorTimeSerieMetricReducedLabels { 1460 return Alert_InfoPathSelectorTimeSerieMetricReducedLabels{} 1461 } 1462 1463 type Alert_InfoPathSelectorTimeSerieMetricType struct{} 1464 1465 func (Alert_InfoPathSelectorTimeSerieMetricType) FieldPath() *AlertInfo_FieldSubPath { 1466 return &AlertInfo_FieldSubPath{ 1467 selector: AlertInfo_FieldPathSelectorTimeSerie, 1468 subPath: NewAlertInfoTimeSerieFieldPathBuilder().Metric().Type().FieldPath(), 1469 } 1470 } 1471 1472 func (s Alert_InfoPathSelectorTimeSerieMetricType) WithValue(value string) *AlertInfo_FieldSubPathValue { 1473 return s.FieldPath().WithIValue(value).(*AlertInfo_FieldSubPathValue) 1474 } 1475 1476 func (s Alert_InfoPathSelectorTimeSerieMetricType) WithArrayOfValues(values []string) *AlertInfo_FieldSubPathArrayOfValues { 1477 return s.FieldPath().WithIArrayOfValues(values).(*AlertInfo_FieldSubPathArrayOfValues) 1478 } 1479 1480 type Alert_InfoPathSelectorTimeSerieMetricLabels struct{} 1481 1482 func (Alert_InfoPathSelectorTimeSerieMetricLabels) FieldPath() *AlertInfo_FieldSubPath { 1483 return &AlertInfo_FieldSubPath{ 1484 selector: AlertInfo_FieldPathSelectorTimeSerie, 1485 subPath: NewAlertInfoTimeSerieFieldPathBuilder().Metric().Labels().FieldPath(), 1486 } 1487 } 1488 1489 func (s Alert_InfoPathSelectorTimeSerieMetricLabels) WithValue(value map[string]string) *AlertInfo_FieldSubPathValue { 1490 return s.FieldPath().WithIValue(value).(*AlertInfo_FieldSubPathValue) 1491 } 1492 1493 func (s Alert_InfoPathSelectorTimeSerieMetricLabels) WithArrayOfValues(values []map[string]string) *AlertInfo_FieldSubPathArrayOfValues { 1494 return s.FieldPath().WithIArrayOfValues(values).(*AlertInfo_FieldSubPathArrayOfValues) 1495 } 1496 1497 func (Alert_InfoPathSelectorTimeSerieMetricLabels) WithKey(key string) Alert_InfoMapPathSelectorTimeSerieMetricLabels { 1498 return Alert_InfoMapPathSelectorTimeSerieMetricLabels{key: key} 1499 } 1500 1501 type Alert_InfoMapPathSelectorTimeSerieMetricLabels struct { 1502 key string 1503 } 1504 1505 func (s Alert_InfoMapPathSelectorTimeSerieMetricLabels) FieldPath() *AlertInfo_FieldSubPath { 1506 return &AlertInfo_FieldSubPath{ 1507 selector: AlertInfo_FieldPathSelectorTimeSerie, 1508 subPath: NewAlertInfoTimeSerieFieldPathBuilder().Metric().Labels().WithKey(s.key).FieldPath(), 1509 } 1510 } 1511 1512 func (s Alert_InfoMapPathSelectorTimeSerieMetricLabels) WithValue(value string) *AlertInfo_FieldSubPathValue { 1513 return s.FieldPath().WithIValue(value).(*AlertInfo_FieldSubPathValue) 1514 } 1515 1516 func (s Alert_InfoMapPathSelectorTimeSerieMetricLabels) WithArrayOfValues(values []string) *AlertInfo_FieldSubPathArrayOfValues { 1517 return s.FieldPath().WithIArrayOfValues(values).(*AlertInfo_FieldSubPathArrayOfValues) 1518 } 1519 1520 type Alert_InfoPathSelectorTimeSerieMetricReducedLabels struct{} 1521 1522 func (Alert_InfoPathSelectorTimeSerieMetricReducedLabels) FieldPath() *AlertInfo_FieldSubPath { 1523 return &AlertInfo_FieldSubPath{ 1524 selector: AlertInfo_FieldPathSelectorTimeSerie, 1525 subPath: NewAlertInfoTimeSerieFieldPathBuilder().Metric().ReducedLabels().FieldPath(), 1526 } 1527 } 1528 1529 func (s Alert_InfoPathSelectorTimeSerieMetricReducedLabels) WithValue(value []string) *AlertInfo_FieldSubPathValue { 1530 return s.FieldPath().WithIValue(value).(*AlertInfo_FieldSubPathValue) 1531 } 1532 1533 func (s Alert_InfoPathSelectorTimeSerieMetricReducedLabels) WithArrayOfValues(values [][]string) *AlertInfo_FieldSubPathArrayOfValues { 1534 return s.FieldPath().WithIArrayOfValues(values).(*AlertInfo_FieldSubPathArrayOfValues) 1535 } 1536 1537 func (s Alert_InfoPathSelectorTimeSerieMetricReducedLabels) WithItemValue(value string) *AlertInfo_FieldSubPathArrayItemValue { 1538 return s.FieldPath().WithIArrayItemValue(value).(*AlertInfo_FieldSubPathArrayItemValue) 1539 } 1540 1541 type Alert_InfoPathSelectorTimeSerieMonitoredResource struct{} 1542 1543 func (Alert_InfoPathSelectorTimeSerieMonitoredResource) FieldPath() *AlertInfo_FieldSubPath { 1544 return &AlertInfo_FieldSubPath{ 1545 selector: AlertInfo_FieldPathSelectorTimeSerie, 1546 subPath: NewAlertInfoTimeSerieFieldPathBuilder().MonitoredResource().FieldPath(), 1547 } 1548 } 1549 1550 func (s Alert_InfoPathSelectorTimeSerieMonitoredResource) WithValue(value *common.MonitoredResource) *AlertInfo_FieldSubPathValue { 1551 return s.FieldPath().WithIValue(value).(*AlertInfo_FieldSubPathValue) 1552 } 1553 1554 func (s Alert_InfoPathSelectorTimeSerieMonitoredResource) WithArrayOfValues(values []*common.MonitoredResource) *AlertInfo_FieldSubPathArrayOfValues { 1555 return s.FieldPath().WithIArrayOfValues(values).(*AlertInfo_FieldSubPathArrayOfValues) 1556 } 1557 1558 func (Alert_InfoPathSelectorTimeSerieMonitoredResource) Type() Alert_InfoPathSelectorTimeSerieMonitoredResourceType { 1559 return Alert_InfoPathSelectorTimeSerieMonitoredResourceType{} 1560 } 1561 1562 func (Alert_InfoPathSelectorTimeSerieMonitoredResource) Labels() Alert_InfoPathSelectorTimeSerieMonitoredResourceLabels { 1563 return Alert_InfoPathSelectorTimeSerieMonitoredResourceLabels{} 1564 } 1565 1566 func (Alert_InfoPathSelectorTimeSerieMonitoredResource) ReducedLabels() Alert_InfoPathSelectorTimeSerieMonitoredResourceReducedLabels { 1567 return Alert_InfoPathSelectorTimeSerieMonitoredResourceReducedLabels{} 1568 } 1569 1570 type Alert_InfoPathSelectorTimeSerieMonitoredResourceType struct{} 1571 1572 func (Alert_InfoPathSelectorTimeSerieMonitoredResourceType) FieldPath() *AlertInfo_FieldSubPath { 1573 return &AlertInfo_FieldSubPath{ 1574 selector: AlertInfo_FieldPathSelectorTimeSerie, 1575 subPath: NewAlertInfoTimeSerieFieldPathBuilder().MonitoredResource().Type().FieldPath(), 1576 } 1577 } 1578 1579 func (s Alert_InfoPathSelectorTimeSerieMonitoredResourceType) WithValue(value string) *AlertInfo_FieldSubPathValue { 1580 return s.FieldPath().WithIValue(value).(*AlertInfo_FieldSubPathValue) 1581 } 1582 1583 func (s Alert_InfoPathSelectorTimeSerieMonitoredResourceType) WithArrayOfValues(values []string) *AlertInfo_FieldSubPathArrayOfValues { 1584 return s.FieldPath().WithIArrayOfValues(values).(*AlertInfo_FieldSubPathArrayOfValues) 1585 } 1586 1587 type Alert_InfoPathSelectorTimeSerieMonitoredResourceLabels struct{} 1588 1589 func (Alert_InfoPathSelectorTimeSerieMonitoredResourceLabels) FieldPath() *AlertInfo_FieldSubPath { 1590 return &AlertInfo_FieldSubPath{ 1591 selector: AlertInfo_FieldPathSelectorTimeSerie, 1592 subPath: NewAlertInfoTimeSerieFieldPathBuilder().MonitoredResource().Labels().FieldPath(), 1593 } 1594 } 1595 1596 func (s Alert_InfoPathSelectorTimeSerieMonitoredResourceLabels) WithValue(value map[string]string) *AlertInfo_FieldSubPathValue { 1597 return s.FieldPath().WithIValue(value).(*AlertInfo_FieldSubPathValue) 1598 } 1599 1600 func (s Alert_InfoPathSelectorTimeSerieMonitoredResourceLabels) WithArrayOfValues(values []map[string]string) *AlertInfo_FieldSubPathArrayOfValues { 1601 return s.FieldPath().WithIArrayOfValues(values).(*AlertInfo_FieldSubPathArrayOfValues) 1602 } 1603 1604 func (Alert_InfoPathSelectorTimeSerieMonitoredResourceLabels) WithKey(key string) Alert_InfoMapPathSelectorTimeSerieMonitoredResourceLabels { 1605 return Alert_InfoMapPathSelectorTimeSerieMonitoredResourceLabels{key: key} 1606 } 1607 1608 type Alert_InfoMapPathSelectorTimeSerieMonitoredResourceLabels struct { 1609 key string 1610 } 1611 1612 func (s Alert_InfoMapPathSelectorTimeSerieMonitoredResourceLabels) FieldPath() *AlertInfo_FieldSubPath { 1613 return &AlertInfo_FieldSubPath{ 1614 selector: AlertInfo_FieldPathSelectorTimeSerie, 1615 subPath: NewAlertInfoTimeSerieFieldPathBuilder().MonitoredResource().Labels().WithKey(s.key).FieldPath(), 1616 } 1617 } 1618 1619 func (s Alert_InfoMapPathSelectorTimeSerieMonitoredResourceLabels) WithValue(value string) *AlertInfo_FieldSubPathValue { 1620 return s.FieldPath().WithIValue(value).(*AlertInfo_FieldSubPathValue) 1621 } 1622 1623 func (s Alert_InfoMapPathSelectorTimeSerieMonitoredResourceLabels) WithArrayOfValues(values []string) *AlertInfo_FieldSubPathArrayOfValues { 1624 return s.FieldPath().WithIArrayOfValues(values).(*AlertInfo_FieldSubPathArrayOfValues) 1625 } 1626 1627 type Alert_InfoPathSelectorTimeSerieMonitoredResourceReducedLabels struct{} 1628 1629 func (Alert_InfoPathSelectorTimeSerieMonitoredResourceReducedLabels) FieldPath() *AlertInfo_FieldSubPath { 1630 return &AlertInfo_FieldSubPath{ 1631 selector: AlertInfo_FieldPathSelectorTimeSerie, 1632 subPath: NewAlertInfoTimeSerieFieldPathBuilder().MonitoredResource().ReducedLabels().FieldPath(), 1633 } 1634 } 1635 1636 func (s Alert_InfoPathSelectorTimeSerieMonitoredResourceReducedLabels) WithValue(value []string) *AlertInfo_FieldSubPathValue { 1637 return s.FieldPath().WithIValue(value).(*AlertInfo_FieldSubPathValue) 1638 } 1639 1640 func (s Alert_InfoPathSelectorTimeSerieMonitoredResourceReducedLabels) WithArrayOfValues(values [][]string) *AlertInfo_FieldSubPathArrayOfValues { 1641 return s.FieldPath().WithIArrayOfValues(values).(*AlertInfo_FieldSubPathArrayOfValues) 1642 } 1643 1644 func (s Alert_InfoPathSelectorTimeSerieMonitoredResourceReducedLabels) WithItemValue(value string) *AlertInfo_FieldSubPathArrayItemValue { 1645 return s.FieldPath().WithIArrayItemValue(value).(*AlertInfo_FieldSubPathArrayItemValue) 1646 } 1647 1648 type Alert_InfoPathSelectorObservedValues struct{} 1649 1650 func (Alert_InfoPathSelectorObservedValues) FieldPath() *AlertInfo_FieldTerminalPath { 1651 return &AlertInfo_FieldTerminalPath{selector: AlertInfo_FieldPathSelectorObservedValues} 1652 } 1653 1654 func (s Alert_InfoPathSelectorObservedValues) WithValue(value *Alert_Info_ObservedValues) *AlertInfo_FieldTerminalPathValue { 1655 return s.FieldPath().WithIValue(value).(*AlertInfo_FieldTerminalPathValue) 1656 } 1657 1658 func (s Alert_InfoPathSelectorObservedValues) WithArrayOfValues(values []*Alert_Info_ObservedValues) *AlertInfo_FieldTerminalPathArrayOfValues { 1659 return s.FieldPath().WithIArrayOfValues(values).(*AlertInfo_FieldTerminalPathArrayOfValues) 1660 } 1661 1662 func (Alert_InfoPathSelectorObservedValues) WithSubPath(subPath AlertInfoObservedValues_FieldPath) *AlertInfo_FieldSubPath { 1663 return &AlertInfo_FieldSubPath{selector: AlertInfo_FieldPathSelectorObservedValues, subPath: subPath} 1664 } 1665 1666 func (s Alert_InfoPathSelectorObservedValues) WithSubValue(subPathValue AlertInfoObservedValues_FieldPathValue) *AlertInfo_FieldSubPathValue { 1667 return &AlertInfo_FieldSubPathValue{AlertInfo_FieldPath: s.WithSubPath(subPathValue), subPathValue: subPathValue} 1668 } 1669 1670 func (s Alert_InfoPathSelectorObservedValues) WithSubArrayOfValues(subPathArrayOfValues AlertInfoObservedValues_FieldPathArrayOfValues) *AlertInfo_FieldSubPathArrayOfValues { 1671 return &AlertInfo_FieldSubPathArrayOfValues{AlertInfo_FieldPath: s.WithSubPath(subPathArrayOfValues), subPathArrayOfValues: subPathArrayOfValues} 1672 } 1673 1674 func (s Alert_InfoPathSelectorObservedValues) WithSubArrayItemValue(subPathArrayItemValue AlertInfoObservedValues_FieldPathArrayItemValue) *AlertInfo_FieldSubPathArrayItemValue { 1675 return &AlertInfo_FieldSubPathArrayItemValue{AlertInfo_FieldPath: s.WithSubPath(subPathArrayItemValue), subPathItemValue: subPathArrayItemValue} 1676 } 1677 1678 func (Alert_InfoPathSelectorObservedValues) ExampleValue() Alert_InfoPathSelectorObservedValuesExampleValue { 1679 return Alert_InfoPathSelectorObservedValuesExampleValue{} 1680 } 1681 1682 func (Alert_InfoPathSelectorObservedValues) PerMetric() Alert_InfoPathSelectorObservedValuesPerMetric { 1683 return Alert_InfoPathSelectorObservedValuesPerMetric{} 1684 } 1685 1686 type Alert_InfoPathSelectorObservedValuesExampleValue struct{} 1687 1688 func (Alert_InfoPathSelectorObservedValuesExampleValue) FieldPath() *AlertInfo_FieldSubPath { 1689 return &AlertInfo_FieldSubPath{ 1690 selector: AlertInfo_FieldPathSelectorObservedValues, 1691 subPath: NewAlertInfoObservedValuesFieldPathBuilder().ExampleValue().FieldPath(), 1692 } 1693 } 1694 1695 func (s Alert_InfoPathSelectorObservedValuesExampleValue) WithValue(value float64) *AlertInfo_FieldSubPathValue { 1696 return s.FieldPath().WithIValue(value).(*AlertInfo_FieldSubPathValue) 1697 } 1698 1699 func (s Alert_InfoPathSelectorObservedValuesExampleValue) WithArrayOfValues(values []float64) *AlertInfo_FieldSubPathArrayOfValues { 1700 return s.FieldPath().WithIArrayOfValues(values).(*AlertInfo_FieldSubPathArrayOfValues) 1701 } 1702 1703 type Alert_InfoPathSelectorObservedValuesPerMetric struct{} 1704 1705 func (Alert_InfoPathSelectorObservedValuesPerMetric) FieldPath() *AlertInfo_FieldSubPath { 1706 return &AlertInfo_FieldSubPath{ 1707 selector: AlertInfo_FieldPathSelectorObservedValues, 1708 subPath: NewAlertInfoObservedValuesFieldPathBuilder().PerMetric().FieldPath(), 1709 } 1710 } 1711 1712 func (s Alert_InfoPathSelectorObservedValuesPerMetric) WithValue(value map[string]float64) *AlertInfo_FieldSubPathValue { 1713 return s.FieldPath().WithIValue(value).(*AlertInfo_FieldSubPathValue) 1714 } 1715 1716 func (s Alert_InfoPathSelectorObservedValuesPerMetric) WithArrayOfValues(values []map[string]float64) *AlertInfo_FieldSubPathArrayOfValues { 1717 return s.FieldPath().WithIArrayOfValues(values).(*AlertInfo_FieldSubPathArrayOfValues) 1718 } 1719 1720 func (Alert_InfoPathSelectorObservedValuesPerMetric) WithKey(key string) Alert_InfoMapPathSelectorObservedValuesPerMetric { 1721 return Alert_InfoMapPathSelectorObservedValuesPerMetric{key: key} 1722 } 1723 1724 type Alert_InfoMapPathSelectorObservedValuesPerMetric struct { 1725 key string 1726 } 1727 1728 func (s Alert_InfoMapPathSelectorObservedValuesPerMetric) FieldPath() *AlertInfo_FieldSubPath { 1729 return &AlertInfo_FieldSubPath{ 1730 selector: AlertInfo_FieldPathSelectorObservedValues, 1731 subPath: NewAlertInfoObservedValuesFieldPathBuilder().PerMetric().WithKey(s.key).FieldPath(), 1732 } 1733 } 1734 1735 func (s Alert_InfoMapPathSelectorObservedValuesPerMetric) WithValue(value float64) *AlertInfo_FieldSubPathValue { 1736 return s.FieldPath().WithIValue(value).(*AlertInfo_FieldSubPathValue) 1737 } 1738 1739 func (s Alert_InfoMapPathSelectorObservedValuesPerMetric) WithArrayOfValues(values []float64) *AlertInfo_FieldSubPathArrayOfValues { 1740 return s.FieldPath().WithIArrayOfValues(values).(*AlertInfo_FieldSubPathArrayOfValues) 1741 } 1742 1743 type AlertStateFieldPathBuilder struct{} 1744 1745 func NewAlertStateFieldPathBuilder() AlertStateFieldPathBuilder { 1746 return AlertStateFieldPathBuilder{} 1747 } 1748 func (AlertStateFieldPathBuilder) IsFiring() Alert_StatePathSelectorIsFiring { 1749 return Alert_StatePathSelectorIsFiring{} 1750 } 1751 func (AlertStateFieldPathBuilder) IsAcknowledged() Alert_StatePathSelectorIsAcknowledged { 1752 return Alert_StatePathSelectorIsAcknowledged{} 1753 } 1754 func (AlertStateFieldPathBuilder) IsSilenced() Alert_StatePathSelectorIsSilenced { 1755 return Alert_StatePathSelectorIsSilenced{} 1756 } 1757 func (AlertStateFieldPathBuilder) Lifetime() Alert_StatePathSelectorLifetime { 1758 return Alert_StatePathSelectorLifetime{} 1759 } 1760 func (AlertStateFieldPathBuilder) NeedsNotification() Alert_StatePathSelectorNeedsNotification { 1761 return Alert_StatePathSelectorNeedsNotification{} 1762 } 1763 func (AlertStateFieldPathBuilder) NotificationCreated() Alert_StatePathSelectorNotificationCreated { 1764 return Alert_StatePathSelectorNotificationCreated{} 1765 } 1766 func (AlertStateFieldPathBuilder) LifecycleCompleted() Alert_StatePathSelectorLifecycleCompleted { 1767 return Alert_StatePathSelectorLifecycleCompleted{} 1768 } 1769 1770 type Alert_StatePathSelectorIsFiring struct{} 1771 1772 func (Alert_StatePathSelectorIsFiring) FieldPath() *AlertState_FieldTerminalPath { 1773 return &AlertState_FieldTerminalPath{selector: AlertState_FieldPathSelectorIsFiring} 1774 } 1775 1776 func (s Alert_StatePathSelectorIsFiring) WithValue(value bool) *AlertState_FieldTerminalPathValue { 1777 return s.FieldPath().WithIValue(value).(*AlertState_FieldTerminalPathValue) 1778 } 1779 1780 func (s Alert_StatePathSelectorIsFiring) WithArrayOfValues(values []bool) *AlertState_FieldTerminalPathArrayOfValues { 1781 return s.FieldPath().WithIArrayOfValues(values).(*AlertState_FieldTerminalPathArrayOfValues) 1782 } 1783 1784 type Alert_StatePathSelectorIsAcknowledged struct{} 1785 1786 func (Alert_StatePathSelectorIsAcknowledged) FieldPath() *AlertState_FieldTerminalPath { 1787 return &AlertState_FieldTerminalPath{selector: AlertState_FieldPathSelectorIsAcknowledged} 1788 } 1789 1790 func (s Alert_StatePathSelectorIsAcknowledged) WithValue(value bool) *AlertState_FieldTerminalPathValue { 1791 return s.FieldPath().WithIValue(value).(*AlertState_FieldTerminalPathValue) 1792 } 1793 1794 func (s Alert_StatePathSelectorIsAcknowledged) WithArrayOfValues(values []bool) *AlertState_FieldTerminalPathArrayOfValues { 1795 return s.FieldPath().WithIArrayOfValues(values).(*AlertState_FieldTerminalPathArrayOfValues) 1796 } 1797 1798 type Alert_StatePathSelectorIsSilenced struct{} 1799 1800 func (Alert_StatePathSelectorIsSilenced) FieldPath() *AlertState_FieldTerminalPath { 1801 return &AlertState_FieldTerminalPath{selector: AlertState_FieldPathSelectorIsSilenced} 1802 } 1803 1804 func (s Alert_StatePathSelectorIsSilenced) WithValue(value bool) *AlertState_FieldTerminalPathValue { 1805 return s.FieldPath().WithIValue(value).(*AlertState_FieldTerminalPathValue) 1806 } 1807 1808 func (s Alert_StatePathSelectorIsSilenced) WithArrayOfValues(values []bool) *AlertState_FieldTerminalPathArrayOfValues { 1809 return s.FieldPath().WithIArrayOfValues(values).(*AlertState_FieldTerminalPathArrayOfValues) 1810 } 1811 1812 type Alert_StatePathSelectorLifetime struct{} 1813 1814 func (Alert_StatePathSelectorLifetime) FieldPath() *AlertState_FieldTerminalPath { 1815 return &AlertState_FieldTerminalPath{selector: AlertState_FieldPathSelectorLifetime} 1816 } 1817 1818 func (s Alert_StatePathSelectorLifetime) WithValue(value *common.TimeRange) *AlertState_FieldTerminalPathValue { 1819 return s.FieldPath().WithIValue(value).(*AlertState_FieldTerminalPathValue) 1820 } 1821 1822 func (s Alert_StatePathSelectorLifetime) WithArrayOfValues(values []*common.TimeRange) *AlertState_FieldTerminalPathArrayOfValues { 1823 return s.FieldPath().WithIArrayOfValues(values).(*AlertState_FieldTerminalPathArrayOfValues) 1824 } 1825 1826 func (Alert_StatePathSelectorLifetime) WithSubPath(subPath common.TimeRange_FieldPath) *AlertState_FieldSubPath { 1827 return &AlertState_FieldSubPath{selector: AlertState_FieldPathSelectorLifetime, subPath: subPath} 1828 } 1829 1830 func (s Alert_StatePathSelectorLifetime) WithSubValue(subPathValue common.TimeRange_FieldPathValue) *AlertState_FieldSubPathValue { 1831 return &AlertState_FieldSubPathValue{AlertState_FieldPath: s.WithSubPath(subPathValue), subPathValue: subPathValue} 1832 } 1833 1834 func (s Alert_StatePathSelectorLifetime) WithSubArrayOfValues(subPathArrayOfValues common.TimeRange_FieldPathArrayOfValues) *AlertState_FieldSubPathArrayOfValues { 1835 return &AlertState_FieldSubPathArrayOfValues{AlertState_FieldPath: s.WithSubPath(subPathArrayOfValues), subPathArrayOfValues: subPathArrayOfValues} 1836 } 1837 1838 func (s Alert_StatePathSelectorLifetime) WithSubArrayItemValue(subPathArrayItemValue common.TimeRange_FieldPathArrayItemValue) *AlertState_FieldSubPathArrayItemValue { 1839 return &AlertState_FieldSubPathArrayItemValue{AlertState_FieldPath: s.WithSubPath(subPathArrayItemValue), subPathItemValue: subPathArrayItemValue} 1840 } 1841 1842 func (Alert_StatePathSelectorLifetime) StartTime() Alert_StatePathSelectorLifetimeStartTime { 1843 return Alert_StatePathSelectorLifetimeStartTime{} 1844 } 1845 1846 func (Alert_StatePathSelectorLifetime) EndTime() Alert_StatePathSelectorLifetimeEndTime { 1847 return Alert_StatePathSelectorLifetimeEndTime{} 1848 } 1849 1850 type Alert_StatePathSelectorLifetimeStartTime struct{} 1851 1852 func (Alert_StatePathSelectorLifetimeStartTime) FieldPath() *AlertState_FieldSubPath { 1853 return &AlertState_FieldSubPath{ 1854 selector: AlertState_FieldPathSelectorLifetime, 1855 subPath: common.NewTimeRangeFieldPathBuilder().StartTime().FieldPath(), 1856 } 1857 } 1858 1859 func (s Alert_StatePathSelectorLifetimeStartTime) WithValue(value *timestamppb.Timestamp) *AlertState_FieldSubPathValue { 1860 return s.FieldPath().WithIValue(value).(*AlertState_FieldSubPathValue) 1861 } 1862 1863 func (s Alert_StatePathSelectorLifetimeStartTime) WithArrayOfValues(values []*timestamppb.Timestamp) *AlertState_FieldSubPathArrayOfValues { 1864 return s.FieldPath().WithIArrayOfValues(values).(*AlertState_FieldSubPathArrayOfValues) 1865 } 1866 1867 type Alert_StatePathSelectorLifetimeEndTime struct{} 1868 1869 func (Alert_StatePathSelectorLifetimeEndTime) FieldPath() *AlertState_FieldSubPath { 1870 return &AlertState_FieldSubPath{ 1871 selector: AlertState_FieldPathSelectorLifetime, 1872 subPath: common.NewTimeRangeFieldPathBuilder().EndTime().FieldPath(), 1873 } 1874 } 1875 1876 func (s Alert_StatePathSelectorLifetimeEndTime) WithValue(value *timestamppb.Timestamp) *AlertState_FieldSubPathValue { 1877 return s.FieldPath().WithIValue(value).(*AlertState_FieldSubPathValue) 1878 } 1879 1880 func (s Alert_StatePathSelectorLifetimeEndTime) WithArrayOfValues(values []*timestamppb.Timestamp) *AlertState_FieldSubPathArrayOfValues { 1881 return s.FieldPath().WithIArrayOfValues(values).(*AlertState_FieldSubPathArrayOfValues) 1882 } 1883 1884 type Alert_StatePathSelectorNeedsNotification struct{} 1885 1886 func (Alert_StatePathSelectorNeedsNotification) FieldPath() *AlertState_FieldTerminalPath { 1887 return &AlertState_FieldTerminalPath{selector: AlertState_FieldPathSelectorNeedsNotification} 1888 } 1889 1890 func (s Alert_StatePathSelectorNeedsNotification) WithValue(value bool) *AlertState_FieldTerminalPathValue { 1891 return s.FieldPath().WithIValue(value).(*AlertState_FieldTerminalPathValue) 1892 } 1893 1894 func (s Alert_StatePathSelectorNeedsNotification) WithArrayOfValues(values []bool) *AlertState_FieldTerminalPathArrayOfValues { 1895 return s.FieldPath().WithIArrayOfValues(values).(*AlertState_FieldTerminalPathArrayOfValues) 1896 } 1897 1898 type Alert_StatePathSelectorNotificationCreated struct{} 1899 1900 func (Alert_StatePathSelectorNotificationCreated) FieldPath() *AlertState_FieldTerminalPath { 1901 return &AlertState_FieldTerminalPath{selector: AlertState_FieldPathSelectorNotificationCreated} 1902 } 1903 1904 func (s Alert_StatePathSelectorNotificationCreated) WithValue(value bool) *AlertState_FieldTerminalPathValue { 1905 return s.FieldPath().WithIValue(value).(*AlertState_FieldTerminalPathValue) 1906 } 1907 1908 func (s Alert_StatePathSelectorNotificationCreated) WithArrayOfValues(values []bool) *AlertState_FieldTerminalPathArrayOfValues { 1909 return s.FieldPath().WithIArrayOfValues(values).(*AlertState_FieldTerminalPathArrayOfValues) 1910 } 1911 1912 type Alert_StatePathSelectorLifecycleCompleted struct{} 1913 1914 func (Alert_StatePathSelectorLifecycleCompleted) FieldPath() *AlertState_FieldTerminalPath { 1915 return &AlertState_FieldTerminalPath{selector: AlertState_FieldPathSelectorLifecycleCompleted} 1916 } 1917 1918 func (s Alert_StatePathSelectorLifecycleCompleted) WithValue(value bool) *AlertState_FieldTerminalPathValue { 1919 return s.FieldPath().WithIValue(value).(*AlertState_FieldTerminalPathValue) 1920 } 1921 1922 func (s Alert_StatePathSelectorLifecycleCompleted) WithArrayOfValues(values []bool) *AlertState_FieldTerminalPathArrayOfValues { 1923 return s.FieldPath().WithIArrayOfValues(values).(*AlertState_FieldTerminalPathArrayOfValues) 1924 } 1925 1926 type AlertInfoTimeSerieFieldPathBuilder struct{} 1927 1928 func NewAlertInfoTimeSerieFieldPathBuilder() AlertInfoTimeSerieFieldPathBuilder { 1929 return AlertInfoTimeSerieFieldPathBuilder{} 1930 } 1931 func (AlertInfoTimeSerieFieldPathBuilder) Key() Alert_Info_TimeSeriePathSelectorKey { 1932 return Alert_Info_TimeSeriePathSelectorKey{} 1933 } 1934 func (AlertInfoTimeSerieFieldPathBuilder) Metric() Alert_Info_TimeSeriePathSelectorMetric { 1935 return Alert_Info_TimeSeriePathSelectorMetric{} 1936 } 1937 func (AlertInfoTimeSerieFieldPathBuilder) MonitoredResource() Alert_Info_TimeSeriePathSelectorMonitoredResource { 1938 return Alert_Info_TimeSeriePathSelectorMonitoredResource{} 1939 } 1940 1941 type Alert_Info_TimeSeriePathSelectorKey struct{} 1942 1943 func (Alert_Info_TimeSeriePathSelectorKey) FieldPath() *AlertInfoTimeSerie_FieldTerminalPath { 1944 return &AlertInfoTimeSerie_FieldTerminalPath{selector: AlertInfoTimeSerie_FieldPathSelectorKey} 1945 } 1946 1947 func (s Alert_Info_TimeSeriePathSelectorKey) WithValue(value []byte) *AlertInfoTimeSerie_FieldTerminalPathValue { 1948 return s.FieldPath().WithIValue(value).(*AlertInfoTimeSerie_FieldTerminalPathValue) 1949 } 1950 1951 func (s Alert_Info_TimeSeriePathSelectorKey) WithArrayOfValues(values [][]byte) *AlertInfoTimeSerie_FieldTerminalPathArrayOfValues { 1952 return s.FieldPath().WithIArrayOfValues(values).(*AlertInfoTimeSerie_FieldTerminalPathArrayOfValues) 1953 } 1954 1955 type Alert_Info_TimeSeriePathSelectorMetric struct{} 1956 1957 func (Alert_Info_TimeSeriePathSelectorMetric) FieldPath() *AlertInfoTimeSerie_FieldTerminalPath { 1958 return &AlertInfoTimeSerie_FieldTerminalPath{selector: AlertInfoTimeSerie_FieldPathSelectorMetric} 1959 } 1960 1961 func (s Alert_Info_TimeSeriePathSelectorMetric) WithValue(value *common.Metric) *AlertInfoTimeSerie_FieldTerminalPathValue { 1962 return s.FieldPath().WithIValue(value).(*AlertInfoTimeSerie_FieldTerminalPathValue) 1963 } 1964 1965 func (s Alert_Info_TimeSeriePathSelectorMetric) WithArrayOfValues(values []*common.Metric) *AlertInfoTimeSerie_FieldTerminalPathArrayOfValues { 1966 return s.FieldPath().WithIArrayOfValues(values).(*AlertInfoTimeSerie_FieldTerminalPathArrayOfValues) 1967 } 1968 1969 func (Alert_Info_TimeSeriePathSelectorMetric) WithSubPath(subPath common.Metric_FieldPath) *AlertInfoTimeSerie_FieldSubPath { 1970 return &AlertInfoTimeSerie_FieldSubPath{selector: AlertInfoTimeSerie_FieldPathSelectorMetric, subPath: subPath} 1971 } 1972 1973 func (s Alert_Info_TimeSeriePathSelectorMetric) WithSubValue(subPathValue common.Metric_FieldPathValue) *AlertInfoTimeSerie_FieldSubPathValue { 1974 return &AlertInfoTimeSerie_FieldSubPathValue{AlertInfoTimeSerie_FieldPath: s.WithSubPath(subPathValue), subPathValue: subPathValue} 1975 } 1976 1977 func (s Alert_Info_TimeSeriePathSelectorMetric) WithSubArrayOfValues(subPathArrayOfValues common.Metric_FieldPathArrayOfValues) *AlertInfoTimeSerie_FieldSubPathArrayOfValues { 1978 return &AlertInfoTimeSerie_FieldSubPathArrayOfValues{AlertInfoTimeSerie_FieldPath: s.WithSubPath(subPathArrayOfValues), subPathArrayOfValues: subPathArrayOfValues} 1979 } 1980 1981 func (s Alert_Info_TimeSeriePathSelectorMetric) WithSubArrayItemValue(subPathArrayItemValue common.Metric_FieldPathArrayItemValue) *AlertInfoTimeSerie_FieldSubPathArrayItemValue { 1982 return &AlertInfoTimeSerie_FieldSubPathArrayItemValue{AlertInfoTimeSerie_FieldPath: s.WithSubPath(subPathArrayItemValue), subPathItemValue: subPathArrayItemValue} 1983 } 1984 1985 func (Alert_Info_TimeSeriePathSelectorMetric) Type() Alert_Info_TimeSeriePathSelectorMetricType { 1986 return Alert_Info_TimeSeriePathSelectorMetricType{} 1987 } 1988 1989 func (Alert_Info_TimeSeriePathSelectorMetric) Labels() Alert_Info_TimeSeriePathSelectorMetricLabels { 1990 return Alert_Info_TimeSeriePathSelectorMetricLabels{} 1991 } 1992 1993 func (Alert_Info_TimeSeriePathSelectorMetric) ReducedLabels() Alert_Info_TimeSeriePathSelectorMetricReducedLabels { 1994 return Alert_Info_TimeSeriePathSelectorMetricReducedLabels{} 1995 } 1996 1997 type Alert_Info_TimeSeriePathSelectorMetricType struct{} 1998 1999 func (Alert_Info_TimeSeriePathSelectorMetricType) FieldPath() *AlertInfoTimeSerie_FieldSubPath { 2000 return &AlertInfoTimeSerie_FieldSubPath{ 2001 selector: AlertInfoTimeSerie_FieldPathSelectorMetric, 2002 subPath: common.NewMetricFieldPathBuilder().Type().FieldPath(), 2003 } 2004 } 2005 2006 func (s Alert_Info_TimeSeriePathSelectorMetricType) WithValue(value string) *AlertInfoTimeSerie_FieldSubPathValue { 2007 return s.FieldPath().WithIValue(value).(*AlertInfoTimeSerie_FieldSubPathValue) 2008 } 2009 2010 func (s Alert_Info_TimeSeriePathSelectorMetricType) WithArrayOfValues(values []string) *AlertInfoTimeSerie_FieldSubPathArrayOfValues { 2011 return s.FieldPath().WithIArrayOfValues(values).(*AlertInfoTimeSerie_FieldSubPathArrayOfValues) 2012 } 2013 2014 type Alert_Info_TimeSeriePathSelectorMetricLabels struct{} 2015 2016 func (Alert_Info_TimeSeriePathSelectorMetricLabels) FieldPath() *AlertInfoTimeSerie_FieldSubPath { 2017 return &AlertInfoTimeSerie_FieldSubPath{ 2018 selector: AlertInfoTimeSerie_FieldPathSelectorMetric, 2019 subPath: common.NewMetricFieldPathBuilder().Labels().FieldPath(), 2020 } 2021 } 2022 2023 func (s Alert_Info_TimeSeriePathSelectorMetricLabels) WithValue(value map[string]string) *AlertInfoTimeSerie_FieldSubPathValue { 2024 return s.FieldPath().WithIValue(value).(*AlertInfoTimeSerie_FieldSubPathValue) 2025 } 2026 2027 func (s Alert_Info_TimeSeriePathSelectorMetricLabels) WithArrayOfValues(values []map[string]string) *AlertInfoTimeSerie_FieldSubPathArrayOfValues { 2028 return s.FieldPath().WithIArrayOfValues(values).(*AlertInfoTimeSerie_FieldSubPathArrayOfValues) 2029 } 2030 2031 func (Alert_Info_TimeSeriePathSelectorMetricLabels) WithKey(key string) Alert_Info_TimeSerieMapPathSelectorMetricLabels { 2032 return Alert_Info_TimeSerieMapPathSelectorMetricLabels{key: key} 2033 } 2034 2035 type Alert_Info_TimeSerieMapPathSelectorMetricLabels struct { 2036 key string 2037 } 2038 2039 func (s Alert_Info_TimeSerieMapPathSelectorMetricLabels) FieldPath() *AlertInfoTimeSerie_FieldSubPath { 2040 return &AlertInfoTimeSerie_FieldSubPath{ 2041 selector: AlertInfoTimeSerie_FieldPathSelectorMetric, 2042 subPath: common.NewMetricFieldPathBuilder().Labels().WithKey(s.key).FieldPath(), 2043 } 2044 } 2045 2046 func (s Alert_Info_TimeSerieMapPathSelectorMetricLabels) WithValue(value string) *AlertInfoTimeSerie_FieldSubPathValue { 2047 return s.FieldPath().WithIValue(value).(*AlertInfoTimeSerie_FieldSubPathValue) 2048 } 2049 2050 func (s Alert_Info_TimeSerieMapPathSelectorMetricLabels) WithArrayOfValues(values []string) *AlertInfoTimeSerie_FieldSubPathArrayOfValues { 2051 return s.FieldPath().WithIArrayOfValues(values).(*AlertInfoTimeSerie_FieldSubPathArrayOfValues) 2052 } 2053 2054 type Alert_Info_TimeSeriePathSelectorMetricReducedLabels struct{} 2055 2056 func (Alert_Info_TimeSeriePathSelectorMetricReducedLabels) FieldPath() *AlertInfoTimeSerie_FieldSubPath { 2057 return &AlertInfoTimeSerie_FieldSubPath{ 2058 selector: AlertInfoTimeSerie_FieldPathSelectorMetric, 2059 subPath: common.NewMetricFieldPathBuilder().ReducedLabels().FieldPath(), 2060 } 2061 } 2062 2063 func (s Alert_Info_TimeSeriePathSelectorMetricReducedLabels) WithValue(value []string) *AlertInfoTimeSerie_FieldSubPathValue { 2064 return s.FieldPath().WithIValue(value).(*AlertInfoTimeSerie_FieldSubPathValue) 2065 } 2066 2067 func (s Alert_Info_TimeSeriePathSelectorMetricReducedLabels) WithArrayOfValues(values [][]string) *AlertInfoTimeSerie_FieldSubPathArrayOfValues { 2068 return s.FieldPath().WithIArrayOfValues(values).(*AlertInfoTimeSerie_FieldSubPathArrayOfValues) 2069 } 2070 2071 func (s Alert_Info_TimeSeriePathSelectorMetricReducedLabels) WithItemValue(value string) *AlertInfoTimeSerie_FieldSubPathArrayItemValue { 2072 return s.FieldPath().WithIArrayItemValue(value).(*AlertInfoTimeSerie_FieldSubPathArrayItemValue) 2073 } 2074 2075 type Alert_Info_TimeSeriePathSelectorMonitoredResource struct{} 2076 2077 func (Alert_Info_TimeSeriePathSelectorMonitoredResource) FieldPath() *AlertInfoTimeSerie_FieldTerminalPath { 2078 return &AlertInfoTimeSerie_FieldTerminalPath{selector: AlertInfoTimeSerie_FieldPathSelectorMonitoredResource} 2079 } 2080 2081 func (s Alert_Info_TimeSeriePathSelectorMonitoredResource) WithValue(value *common.MonitoredResource) *AlertInfoTimeSerie_FieldTerminalPathValue { 2082 return s.FieldPath().WithIValue(value).(*AlertInfoTimeSerie_FieldTerminalPathValue) 2083 } 2084 2085 func (s Alert_Info_TimeSeriePathSelectorMonitoredResource) WithArrayOfValues(values []*common.MonitoredResource) *AlertInfoTimeSerie_FieldTerminalPathArrayOfValues { 2086 return s.FieldPath().WithIArrayOfValues(values).(*AlertInfoTimeSerie_FieldTerminalPathArrayOfValues) 2087 } 2088 2089 func (Alert_Info_TimeSeriePathSelectorMonitoredResource) WithSubPath(subPath common.MonitoredResource_FieldPath) *AlertInfoTimeSerie_FieldSubPath { 2090 return &AlertInfoTimeSerie_FieldSubPath{selector: AlertInfoTimeSerie_FieldPathSelectorMonitoredResource, subPath: subPath} 2091 } 2092 2093 func (s Alert_Info_TimeSeriePathSelectorMonitoredResource) WithSubValue(subPathValue common.MonitoredResource_FieldPathValue) *AlertInfoTimeSerie_FieldSubPathValue { 2094 return &AlertInfoTimeSerie_FieldSubPathValue{AlertInfoTimeSerie_FieldPath: s.WithSubPath(subPathValue), subPathValue: subPathValue} 2095 } 2096 2097 func (s Alert_Info_TimeSeriePathSelectorMonitoredResource) WithSubArrayOfValues(subPathArrayOfValues common.MonitoredResource_FieldPathArrayOfValues) *AlertInfoTimeSerie_FieldSubPathArrayOfValues { 2098 return &AlertInfoTimeSerie_FieldSubPathArrayOfValues{AlertInfoTimeSerie_FieldPath: s.WithSubPath(subPathArrayOfValues), subPathArrayOfValues: subPathArrayOfValues} 2099 } 2100 2101 func (s Alert_Info_TimeSeriePathSelectorMonitoredResource) WithSubArrayItemValue(subPathArrayItemValue common.MonitoredResource_FieldPathArrayItemValue) *AlertInfoTimeSerie_FieldSubPathArrayItemValue { 2102 return &AlertInfoTimeSerie_FieldSubPathArrayItemValue{AlertInfoTimeSerie_FieldPath: s.WithSubPath(subPathArrayItemValue), subPathItemValue: subPathArrayItemValue} 2103 } 2104 2105 func (Alert_Info_TimeSeriePathSelectorMonitoredResource) Type() Alert_Info_TimeSeriePathSelectorMonitoredResourceType { 2106 return Alert_Info_TimeSeriePathSelectorMonitoredResourceType{} 2107 } 2108 2109 func (Alert_Info_TimeSeriePathSelectorMonitoredResource) Labels() Alert_Info_TimeSeriePathSelectorMonitoredResourceLabels { 2110 return Alert_Info_TimeSeriePathSelectorMonitoredResourceLabels{} 2111 } 2112 2113 func (Alert_Info_TimeSeriePathSelectorMonitoredResource) ReducedLabels() Alert_Info_TimeSeriePathSelectorMonitoredResourceReducedLabels { 2114 return Alert_Info_TimeSeriePathSelectorMonitoredResourceReducedLabels{} 2115 } 2116 2117 type Alert_Info_TimeSeriePathSelectorMonitoredResourceType struct{} 2118 2119 func (Alert_Info_TimeSeriePathSelectorMonitoredResourceType) FieldPath() *AlertInfoTimeSerie_FieldSubPath { 2120 return &AlertInfoTimeSerie_FieldSubPath{ 2121 selector: AlertInfoTimeSerie_FieldPathSelectorMonitoredResource, 2122 subPath: common.NewMonitoredResourceFieldPathBuilder().Type().FieldPath(), 2123 } 2124 } 2125 2126 func (s Alert_Info_TimeSeriePathSelectorMonitoredResourceType) WithValue(value string) *AlertInfoTimeSerie_FieldSubPathValue { 2127 return s.FieldPath().WithIValue(value).(*AlertInfoTimeSerie_FieldSubPathValue) 2128 } 2129 2130 func (s Alert_Info_TimeSeriePathSelectorMonitoredResourceType) WithArrayOfValues(values []string) *AlertInfoTimeSerie_FieldSubPathArrayOfValues { 2131 return s.FieldPath().WithIArrayOfValues(values).(*AlertInfoTimeSerie_FieldSubPathArrayOfValues) 2132 } 2133 2134 type Alert_Info_TimeSeriePathSelectorMonitoredResourceLabels struct{} 2135 2136 func (Alert_Info_TimeSeriePathSelectorMonitoredResourceLabels) FieldPath() *AlertInfoTimeSerie_FieldSubPath { 2137 return &AlertInfoTimeSerie_FieldSubPath{ 2138 selector: AlertInfoTimeSerie_FieldPathSelectorMonitoredResource, 2139 subPath: common.NewMonitoredResourceFieldPathBuilder().Labels().FieldPath(), 2140 } 2141 } 2142 2143 func (s Alert_Info_TimeSeriePathSelectorMonitoredResourceLabels) WithValue(value map[string]string) *AlertInfoTimeSerie_FieldSubPathValue { 2144 return s.FieldPath().WithIValue(value).(*AlertInfoTimeSerie_FieldSubPathValue) 2145 } 2146 2147 func (s Alert_Info_TimeSeriePathSelectorMonitoredResourceLabels) WithArrayOfValues(values []map[string]string) *AlertInfoTimeSerie_FieldSubPathArrayOfValues { 2148 return s.FieldPath().WithIArrayOfValues(values).(*AlertInfoTimeSerie_FieldSubPathArrayOfValues) 2149 } 2150 2151 func (Alert_Info_TimeSeriePathSelectorMonitoredResourceLabels) WithKey(key string) Alert_Info_TimeSerieMapPathSelectorMonitoredResourceLabels { 2152 return Alert_Info_TimeSerieMapPathSelectorMonitoredResourceLabels{key: key} 2153 } 2154 2155 type Alert_Info_TimeSerieMapPathSelectorMonitoredResourceLabels struct { 2156 key string 2157 } 2158 2159 func (s Alert_Info_TimeSerieMapPathSelectorMonitoredResourceLabels) FieldPath() *AlertInfoTimeSerie_FieldSubPath { 2160 return &AlertInfoTimeSerie_FieldSubPath{ 2161 selector: AlertInfoTimeSerie_FieldPathSelectorMonitoredResource, 2162 subPath: common.NewMonitoredResourceFieldPathBuilder().Labels().WithKey(s.key).FieldPath(), 2163 } 2164 } 2165 2166 func (s Alert_Info_TimeSerieMapPathSelectorMonitoredResourceLabels) WithValue(value string) *AlertInfoTimeSerie_FieldSubPathValue { 2167 return s.FieldPath().WithIValue(value).(*AlertInfoTimeSerie_FieldSubPathValue) 2168 } 2169 2170 func (s Alert_Info_TimeSerieMapPathSelectorMonitoredResourceLabels) WithArrayOfValues(values []string) *AlertInfoTimeSerie_FieldSubPathArrayOfValues { 2171 return s.FieldPath().WithIArrayOfValues(values).(*AlertInfoTimeSerie_FieldSubPathArrayOfValues) 2172 } 2173 2174 type Alert_Info_TimeSeriePathSelectorMonitoredResourceReducedLabels struct{} 2175 2176 func (Alert_Info_TimeSeriePathSelectorMonitoredResourceReducedLabels) FieldPath() *AlertInfoTimeSerie_FieldSubPath { 2177 return &AlertInfoTimeSerie_FieldSubPath{ 2178 selector: AlertInfoTimeSerie_FieldPathSelectorMonitoredResource, 2179 subPath: common.NewMonitoredResourceFieldPathBuilder().ReducedLabels().FieldPath(), 2180 } 2181 } 2182 2183 func (s Alert_Info_TimeSeriePathSelectorMonitoredResourceReducedLabels) WithValue(value []string) *AlertInfoTimeSerie_FieldSubPathValue { 2184 return s.FieldPath().WithIValue(value).(*AlertInfoTimeSerie_FieldSubPathValue) 2185 } 2186 2187 func (s Alert_Info_TimeSeriePathSelectorMonitoredResourceReducedLabels) WithArrayOfValues(values [][]string) *AlertInfoTimeSerie_FieldSubPathArrayOfValues { 2188 return s.FieldPath().WithIArrayOfValues(values).(*AlertInfoTimeSerie_FieldSubPathArrayOfValues) 2189 } 2190 2191 func (s Alert_Info_TimeSeriePathSelectorMonitoredResourceReducedLabels) WithItemValue(value string) *AlertInfoTimeSerie_FieldSubPathArrayItemValue { 2192 return s.FieldPath().WithIArrayItemValue(value).(*AlertInfoTimeSerie_FieldSubPathArrayItemValue) 2193 } 2194 2195 type AlertInfoObservedValuesFieldPathBuilder struct{} 2196 2197 func NewAlertInfoObservedValuesFieldPathBuilder() AlertInfoObservedValuesFieldPathBuilder { 2198 return AlertInfoObservedValuesFieldPathBuilder{} 2199 } 2200 func (AlertInfoObservedValuesFieldPathBuilder) ExampleValue() Alert_Info_ObservedValuesPathSelectorExampleValue { 2201 return Alert_Info_ObservedValuesPathSelectorExampleValue{} 2202 } 2203 func (AlertInfoObservedValuesFieldPathBuilder) PerMetric() Alert_Info_ObservedValuesPathSelectorPerMetric { 2204 return Alert_Info_ObservedValuesPathSelectorPerMetric{} 2205 } 2206 2207 type Alert_Info_ObservedValuesPathSelectorExampleValue struct{} 2208 2209 func (Alert_Info_ObservedValuesPathSelectorExampleValue) FieldPath() *AlertInfoObservedValues_FieldTerminalPath { 2210 return &AlertInfoObservedValues_FieldTerminalPath{selector: AlertInfoObservedValues_FieldPathSelectorExampleValue} 2211 } 2212 2213 func (s Alert_Info_ObservedValuesPathSelectorExampleValue) WithValue(value float64) *AlertInfoObservedValues_FieldTerminalPathValue { 2214 return s.FieldPath().WithIValue(value).(*AlertInfoObservedValues_FieldTerminalPathValue) 2215 } 2216 2217 func (s Alert_Info_ObservedValuesPathSelectorExampleValue) WithArrayOfValues(values []float64) *AlertInfoObservedValues_FieldTerminalPathArrayOfValues { 2218 return s.FieldPath().WithIArrayOfValues(values).(*AlertInfoObservedValues_FieldTerminalPathArrayOfValues) 2219 } 2220 2221 type Alert_Info_ObservedValuesPathSelectorPerMetric struct{} 2222 2223 func (Alert_Info_ObservedValuesPathSelectorPerMetric) FieldPath() *AlertInfoObservedValues_FieldTerminalPath { 2224 return &AlertInfoObservedValues_FieldTerminalPath{selector: AlertInfoObservedValues_FieldPathSelectorPerMetric} 2225 } 2226 2227 func (s Alert_Info_ObservedValuesPathSelectorPerMetric) WithValue(value map[string]float64) *AlertInfoObservedValues_FieldTerminalPathValue { 2228 return s.FieldPath().WithIValue(value).(*AlertInfoObservedValues_FieldTerminalPathValue) 2229 } 2230 2231 func (s Alert_Info_ObservedValuesPathSelectorPerMetric) WithArrayOfValues(values []map[string]float64) *AlertInfoObservedValues_FieldTerminalPathArrayOfValues { 2232 return s.FieldPath().WithIArrayOfValues(values).(*AlertInfoObservedValues_FieldTerminalPathArrayOfValues) 2233 } 2234 2235 func (Alert_Info_ObservedValuesPathSelectorPerMetric) WithKey(key string) Alert_Info_ObservedValuesMapPathSelectorPerMetric { 2236 return Alert_Info_ObservedValuesMapPathSelectorPerMetric{key: key} 2237 } 2238 2239 type Alert_Info_ObservedValuesMapPathSelectorPerMetric struct { 2240 key string 2241 } 2242 2243 func (s Alert_Info_ObservedValuesMapPathSelectorPerMetric) FieldPath() *AlertInfoObservedValues_FieldPathMap { 2244 return &AlertInfoObservedValues_FieldPathMap{selector: AlertInfoObservedValues_FieldPathSelectorPerMetric, key: s.key} 2245 } 2246 2247 func (s Alert_Info_ObservedValuesMapPathSelectorPerMetric) WithValue(value float64) *AlertInfoObservedValues_FieldPathMapValue { 2248 return s.FieldPath().WithIValue(value).(*AlertInfoObservedValues_FieldPathMapValue) 2249 } 2250 2251 func (s Alert_Info_ObservedValuesMapPathSelectorPerMetric) WithArrayOfValues(values []float64) *AlertInfoObservedValues_FieldPathMapArrayOfValues { 2252 return s.FieldPath().WithIArrayOfValues(values).(*AlertInfoObservedValues_FieldPathMapArrayOfValues) 2253 } 2254 2255 type AlertStateThresholdFieldPathBuilder struct{} 2256 2257 func NewAlertStateThresholdFieldPathBuilder() AlertStateThresholdFieldPathBuilder { 2258 return AlertStateThresholdFieldPathBuilder{} 2259 } 2260 func (AlertStateThresholdFieldPathBuilder) ObservedValue() Alert_State_ThresholdPathSelectorObservedValue { 2261 return Alert_State_ThresholdPathSelectorObservedValue{} 2262 } 2263 2264 type Alert_State_ThresholdPathSelectorObservedValue struct{} 2265 2266 func (Alert_State_ThresholdPathSelectorObservedValue) FieldPath() *AlertStateThreshold_FieldTerminalPath { 2267 return &AlertStateThreshold_FieldTerminalPath{selector: AlertStateThreshold_FieldPathSelectorObservedValue} 2268 } 2269 2270 func (s Alert_State_ThresholdPathSelectorObservedValue) WithValue(value float64) *AlertStateThreshold_FieldTerminalPathValue { 2271 return s.FieldPath().WithIValue(value).(*AlertStateThreshold_FieldTerminalPathValue) 2272 } 2273 2274 func (s Alert_State_ThresholdPathSelectorObservedValue) WithArrayOfValues(values []float64) *AlertStateThreshold_FieldTerminalPathArrayOfValues { 2275 return s.FieldPath().WithIArrayOfValues(values).(*AlertStateThreshold_FieldTerminalPathArrayOfValues) 2276 } 2277 2278 type AlertStateCombineThresholdFieldPathBuilder struct{} 2279 2280 func NewAlertStateCombineThresholdFieldPathBuilder() AlertStateCombineThresholdFieldPathBuilder { 2281 return AlertStateCombineThresholdFieldPathBuilder{} 2282 } 2283 2284 type AlertStateCombineThresholdPerMetricFieldPathBuilder struct{} 2285 2286 func NewAlertStateCombineThresholdPerMetricFieldPathBuilder() AlertStateCombineThresholdPerMetricFieldPathBuilder { 2287 return AlertStateCombineThresholdPerMetricFieldPathBuilder{} 2288 } 2289 func (AlertStateCombineThresholdPerMetricFieldPathBuilder) ObservedValues() Alert_State_CombineThreshold_PerMetricPathSelectorObservedValues { 2290 return Alert_State_CombineThreshold_PerMetricPathSelectorObservedValues{} 2291 } 2292 2293 type Alert_State_CombineThreshold_PerMetricPathSelectorObservedValues struct{} 2294 2295 func (Alert_State_CombineThreshold_PerMetricPathSelectorObservedValues) FieldPath() *AlertStateCombineThresholdPerMetric_FieldTerminalPath { 2296 return &AlertStateCombineThresholdPerMetric_FieldTerminalPath{selector: AlertStateCombineThresholdPerMetric_FieldPathSelectorObservedValues} 2297 } 2298 2299 func (s Alert_State_CombineThreshold_PerMetricPathSelectorObservedValues) WithValue(value map[string]float64) *AlertStateCombineThresholdPerMetric_FieldTerminalPathValue { 2300 return s.FieldPath().WithIValue(value).(*AlertStateCombineThresholdPerMetric_FieldTerminalPathValue) 2301 } 2302 2303 func (s Alert_State_CombineThreshold_PerMetricPathSelectorObservedValues) WithArrayOfValues(values []map[string]float64) *AlertStateCombineThresholdPerMetric_FieldTerminalPathArrayOfValues { 2304 return s.FieldPath().WithIArrayOfValues(values).(*AlertStateCombineThresholdPerMetric_FieldTerminalPathArrayOfValues) 2305 } 2306 2307 func (Alert_State_CombineThreshold_PerMetricPathSelectorObservedValues) WithKey(key string) Alert_State_CombineThreshold_PerMetricMapPathSelectorObservedValues { 2308 return Alert_State_CombineThreshold_PerMetricMapPathSelectorObservedValues{key: key} 2309 } 2310 2311 type Alert_State_CombineThreshold_PerMetricMapPathSelectorObservedValues struct { 2312 key string 2313 } 2314 2315 func (s Alert_State_CombineThreshold_PerMetricMapPathSelectorObservedValues) FieldPath() *AlertStateCombineThresholdPerMetric_FieldPathMap { 2316 return &AlertStateCombineThresholdPerMetric_FieldPathMap{selector: AlertStateCombineThresholdPerMetric_FieldPathSelectorObservedValues, key: s.key} 2317 } 2318 2319 func (s Alert_State_CombineThreshold_PerMetricMapPathSelectorObservedValues) WithValue(value float64) *AlertStateCombineThresholdPerMetric_FieldPathMapValue { 2320 return s.FieldPath().WithIValue(value).(*AlertStateCombineThresholdPerMetric_FieldPathMapValue) 2321 } 2322 2323 func (s Alert_State_CombineThreshold_PerMetricMapPathSelectorObservedValues) WithArrayOfValues(values []float64) *AlertStateCombineThresholdPerMetric_FieldPathMapArrayOfValues { 2324 return s.FieldPath().WithIArrayOfValues(values).(*AlertStateCombineThresholdPerMetric_FieldPathMapArrayOfValues) 2325 }