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