github.com/cloudwan/edgelq-sdk@v1.15.4/alerting/resources/v1/alert/alert.pb.fieldpathbuilder.go (about) 1 // Code generated by protoc-gen-goten-object 2 // File: edgelq/alerting/proto/v1/alert.proto 3 // DO NOT EDIT!!! 4 5 package alert 6 7 // proto imports 8 import ( 9 rcommon "github.com/cloudwan/edgelq-sdk/alerting/resources/v1/common" 10 document "github.com/cloudwan/edgelq-sdk/alerting/resources/v1/document" 11 log_condition "github.com/cloudwan/edgelq-sdk/alerting/resources/v1/log_condition" 12 log_condition_template "github.com/cloudwan/edgelq-sdk/alerting/resources/v1/log_condition_template" 13 notification_channel "github.com/cloudwan/edgelq-sdk/alerting/resources/v1/notification_channel" 14 policy "github.com/cloudwan/edgelq-sdk/alerting/resources/v1/policy" 15 policy_template "github.com/cloudwan/edgelq-sdk/alerting/resources/v1/policy_template" 16 ts_condition "github.com/cloudwan/edgelq-sdk/alerting/resources/v1/ts_condition" 17 api "github.com/cloudwan/edgelq-sdk/common/api" 18 iam_iam_common "github.com/cloudwan/edgelq-sdk/iam/resources/v1/common" 19 iam_organization "github.com/cloudwan/edgelq-sdk/iam/resources/v1/organization" 20 iam_project "github.com/cloudwan/edgelq-sdk/iam/resources/v1/project" 21 logging_bucket "github.com/cloudwan/edgelq-sdk/logging/resources/v1/bucket" 22 logging_common "github.com/cloudwan/edgelq-sdk/logging/resources/v1/common" 23 logging_log "github.com/cloudwan/edgelq-sdk/logging/resources/v1/log" 24 logging_log_descriptor "github.com/cloudwan/edgelq-sdk/logging/resources/v1/log_descriptor" 25 monitoring_common "github.com/cloudwan/edgelq-sdk/monitoring/resources/v4/common" 26 monitoring_metric_descriptor "github.com/cloudwan/edgelq-sdk/monitoring/resources/v4/metric_descriptor" 27 monitoring_monitored_resource_descriptor "github.com/cloudwan/edgelq-sdk/monitoring/resources/v4/monitored_resource_descriptor" 28 monitoring_project "github.com/cloudwan/edgelq-sdk/monitoring/resources/v4/project" 29 monitoring_time_serie "github.com/cloudwan/edgelq-sdk/monitoring/resources/v4/time_serie" 30 meta_common "github.com/cloudwan/goten-sdk/meta-service/resources/v1/common" 31 meta_resource "github.com/cloudwan/goten-sdk/meta-service/resources/v1/resource" 32 meta_service "github.com/cloudwan/goten-sdk/meta-service/resources/v1/service" 33 meta "github.com/cloudwan/goten-sdk/types/meta" 34 multi_region_policy "github.com/cloudwan/goten-sdk/types/multi_region_policy" 35 anypb "google.golang.org/protobuf/types/known/anypb" 36 durationpb "google.golang.org/protobuf/types/known/durationpb" 37 fieldmaskpb "google.golang.org/protobuf/types/known/fieldmaskpb" 38 structpb "google.golang.org/protobuf/types/known/structpb" 39 timestamppb "google.golang.org/protobuf/types/known/timestamppb" 40 ) 41 42 // make sure we're using proto imports 43 var ( 44 _ = &document.Document{} 45 _ = &log_condition.LogCondition{} 46 _ = &log_condition_template.LogConditionTemplate{} 47 _ = ¬ification_channel.NotificationChannel{} 48 _ = &policy.Policy{} 49 _ = &policy_template.PolicyTemplate{} 50 _ = &rcommon.LogCndSpec{} 51 _ = &ts_condition.TsCondition{} 52 _ = api.LaunchStage(0) 53 _ = &iam_iam_common.PCR{} 54 _ = &iam_organization.Organization{} 55 _ = &iam_project.Project{} 56 _ = &logging_bucket.Bucket{} 57 _ = &logging_common.LabelDescriptor{} 58 _ = &logging_log.Log{} 59 _ = &logging_log_descriptor.LogDescriptor{} 60 _ = &monitoring_common.LabelDescriptor{} 61 _ = &monitoring_metric_descriptor.MetricDescriptor{} 62 _ = &monitoring_monitored_resource_descriptor.MonitoredResourceDescriptor{} 63 _ = &monitoring_project.Project{} 64 _ = &monitoring_time_serie.Point{} 65 _ = &anypb.Any{} 66 _ = &durationpb.Duration{} 67 _ = &fieldmaskpb.FieldMask{} 68 _ = &structpb.Struct{} 69 _ = ×tamppb.Timestamp{} 70 _ = &meta_common.LabelledDomain{} 71 _ = &meta_resource.Resource{} 72 _ = &meta_service.Service{} 73 _ = &meta.Meta{} 74 _ = &multi_region_policy.MultiRegionPolicy{} 75 ) 76 77 type AlertFieldPathBuilder struct{} 78 79 func NewAlertFieldPathBuilder() AlertFieldPathBuilder { 80 return AlertFieldPathBuilder{} 81 } 82 func (AlertFieldPathBuilder) Name() AlertPathSelectorName { 83 return AlertPathSelectorName{} 84 } 85 func (AlertFieldPathBuilder) Metadata() AlertPathSelectorMetadata { 86 return AlertPathSelectorMetadata{} 87 } 88 func (AlertFieldPathBuilder) DisplayName() AlertPathSelectorDisplayName { 89 return AlertPathSelectorDisplayName{} 90 } 91 func (AlertFieldPathBuilder) AlertingResource() AlertPathSelectorAlertingResource { 92 return AlertPathSelectorAlertingResource{} 93 } 94 func (AlertFieldPathBuilder) TsInfo() AlertPathSelectorTsInfo { 95 return AlertPathSelectorTsInfo{} 96 } 97 func (AlertFieldPathBuilder) LogInfo() AlertPathSelectorLogInfo { 98 return AlertPathSelectorLogInfo{} 99 } 100 func (AlertFieldPathBuilder) State() AlertPathSelectorState { 101 return AlertPathSelectorState{} 102 } 103 func (AlertFieldPathBuilder) Internal() AlertPathSelectorInternal { 104 return AlertPathSelectorInternal{} 105 } 106 107 type AlertPathSelectorName struct{} 108 109 func (AlertPathSelectorName) FieldPath() *Alert_FieldTerminalPath { 110 return &Alert_FieldTerminalPath{selector: Alert_FieldPathSelectorName} 111 } 112 113 func (s AlertPathSelectorName) WithValue(value *Name) *Alert_FieldTerminalPathValue { 114 return s.FieldPath().WithIValue(value).(*Alert_FieldTerminalPathValue) 115 } 116 117 func (s AlertPathSelectorName) WithArrayOfValues(values []*Name) *Alert_FieldTerminalPathArrayOfValues { 118 return s.FieldPath().WithIArrayOfValues(values).(*Alert_FieldTerminalPathArrayOfValues) 119 } 120 121 type AlertPathSelectorMetadata struct{} 122 123 func (AlertPathSelectorMetadata) FieldPath() *Alert_FieldTerminalPath { 124 return &Alert_FieldTerminalPath{selector: Alert_FieldPathSelectorMetadata} 125 } 126 127 func (s AlertPathSelectorMetadata) WithValue(value *meta.Meta) *Alert_FieldTerminalPathValue { 128 return s.FieldPath().WithIValue(value).(*Alert_FieldTerminalPathValue) 129 } 130 131 func (s AlertPathSelectorMetadata) WithArrayOfValues(values []*meta.Meta) *Alert_FieldTerminalPathArrayOfValues { 132 return s.FieldPath().WithIArrayOfValues(values).(*Alert_FieldTerminalPathArrayOfValues) 133 } 134 135 func (AlertPathSelectorMetadata) WithSubPath(subPath meta.Meta_FieldPath) *Alert_FieldSubPath { 136 return &Alert_FieldSubPath{selector: Alert_FieldPathSelectorMetadata, subPath: subPath} 137 } 138 139 func (s AlertPathSelectorMetadata) WithSubValue(subPathValue meta.Meta_FieldPathValue) *Alert_FieldSubPathValue { 140 return &Alert_FieldSubPathValue{Alert_FieldPath: s.WithSubPath(subPathValue), subPathValue: subPathValue} 141 } 142 143 func (s AlertPathSelectorMetadata) WithSubArrayOfValues(subPathArrayOfValues meta.Meta_FieldPathArrayOfValues) *Alert_FieldSubPathArrayOfValues { 144 return &Alert_FieldSubPathArrayOfValues{Alert_FieldPath: s.WithSubPath(subPathArrayOfValues), subPathArrayOfValues: subPathArrayOfValues} 145 } 146 147 func (s AlertPathSelectorMetadata) WithSubArrayItemValue(subPathArrayItemValue meta.Meta_FieldPathArrayItemValue) *Alert_FieldSubPathArrayItemValue { 148 return &Alert_FieldSubPathArrayItemValue{Alert_FieldPath: s.WithSubPath(subPathArrayItemValue), subPathItemValue: subPathArrayItemValue} 149 } 150 151 func (AlertPathSelectorMetadata) CreateTime() AlertPathSelectorMetadataCreateTime { 152 return AlertPathSelectorMetadataCreateTime{} 153 } 154 155 func (AlertPathSelectorMetadata) UpdateTime() AlertPathSelectorMetadataUpdateTime { 156 return AlertPathSelectorMetadataUpdateTime{} 157 } 158 159 func (AlertPathSelectorMetadata) DeleteTime() AlertPathSelectorMetadataDeleteTime { 160 return AlertPathSelectorMetadataDeleteTime{} 161 } 162 163 func (AlertPathSelectorMetadata) Uuid() AlertPathSelectorMetadataUuid { 164 return AlertPathSelectorMetadataUuid{} 165 } 166 167 func (AlertPathSelectorMetadata) Tags() AlertPathSelectorMetadataTags { 168 return AlertPathSelectorMetadataTags{} 169 } 170 171 func (AlertPathSelectorMetadata) Labels() AlertPathSelectorMetadataLabels { 172 return AlertPathSelectorMetadataLabels{} 173 } 174 175 func (AlertPathSelectorMetadata) Annotations() AlertPathSelectorMetadataAnnotations { 176 return AlertPathSelectorMetadataAnnotations{} 177 } 178 179 func (AlertPathSelectorMetadata) Generation() AlertPathSelectorMetadataGeneration { 180 return AlertPathSelectorMetadataGeneration{} 181 } 182 183 func (AlertPathSelectorMetadata) ResourceVersion() AlertPathSelectorMetadataResourceVersion { 184 return AlertPathSelectorMetadataResourceVersion{} 185 } 186 187 func (AlertPathSelectorMetadata) OwnerReferences() AlertPathSelectorMetadataOwnerReferences { 188 return AlertPathSelectorMetadataOwnerReferences{} 189 } 190 191 func (AlertPathSelectorMetadata) Shards() AlertPathSelectorMetadataShards { 192 return AlertPathSelectorMetadataShards{} 193 } 194 195 func (AlertPathSelectorMetadata) Syncing() AlertPathSelectorMetadataSyncing { 196 return AlertPathSelectorMetadataSyncing{} 197 } 198 199 func (AlertPathSelectorMetadata) Lifecycle() AlertPathSelectorMetadataLifecycle { 200 return AlertPathSelectorMetadataLifecycle{} 201 } 202 203 func (AlertPathSelectorMetadata) Services() AlertPathSelectorMetadataServices { 204 return AlertPathSelectorMetadataServices{} 205 } 206 207 type AlertPathSelectorMetadataCreateTime struct{} 208 209 func (AlertPathSelectorMetadataCreateTime) FieldPath() *Alert_FieldSubPath { 210 return &Alert_FieldSubPath{ 211 selector: Alert_FieldPathSelectorMetadata, 212 subPath: meta.NewMetaFieldPathBuilder().CreateTime().FieldPath(), 213 } 214 } 215 216 func (s AlertPathSelectorMetadataCreateTime) WithValue(value *timestamppb.Timestamp) *Alert_FieldSubPathValue { 217 return s.FieldPath().WithIValue(value).(*Alert_FieldSubPathValue) 218 } 219 220 func (s AlertPathSelectorMetadataCreateTime) WithArrayOfValues(values []*timestamppb.Timestamp) *Alert_FieldSubPathArrayOfValues { 221 return s.FieldPath().WithIArrayOfValues(values).(*Alert_FieldSubPathArrayOfValues) 222 } 223 224 type AlertPathSelectorMetadataUpdateTime struct{} 225 226 func (AlertPathSelectorMetadataUpdateTime) FieldPath() *Alert_FieldSubPath { 227 return &Alert_FieldSubPath{ 228 selector: Alert_FieldPathSelectorMetadata, 229 subPath: meta.NewMetaFieldPathBuilder().UpdateTime().FieldPath(), 230 } 231 } 232 233 func (s AlertPathSelectorMetadataUpdateTime) WithValue(value *timestamppb.Timestamp) *Alert_FieldSubPathValue { 234 return s.FieldPath().WithIValue(value).(*Alert_FieldSubPathValue) 235 } 236 237 func (s AlertPathSelectorMetadataUpdateTime) WithArrayOfValues(values []*timestamppb.Timestamp) *Alert_FieldSubPathArrayOfValues { 238 return s.FieldPath().WithIArrayOfValues(values).(*Alert_FieldSubPathArrayOfValues) 239 } 240 241 type AlertPathSelectorMetadataDeleteTime struct{} 242 243 func (AlertPathSelectorMetadataDeleteTime) FieldPath() *Alert_FieldSubPath { 244 return &Alert_FieldSubPath{ 245 selector: Alert_FieldPathSelectorMetadata, 246 subPath: meta.NewMetaFieldPathBuilder().DeleteTime().FieldPath(), 247 } 248 } 249 250 func (s AlertPathSelectorMetadataDeleteTime) WithValue(value *timestamppb.Timestamp) *Alert_FieldSubPathValue { 251 return s.FieldPath().WithIValue(value).(*Alert_FieldSubPathValue) 252 } 253 254 func (s AlertPathSelectorMetadataDeleteTime) WithArrayOfValues(values []*timestamppb.Timestamp) *Alert_FieldSubPathArrayOfValues { 255 return s.FieldPath().WithIArrayOfValues(values).(*Alert_FieldSubPathArrayOfValues) 256 } 257 258 type AlertPathSelectorMetadataUuid struct{} 259 260 func (AlertPathSelectorMetadataUuid) FieldPath() *Alert_FieldSubPath { 261 return &Alert_FieldSubPath{ 262 selector: Alert_FieldPathSelectorMetadata, 263 subPath: meta.NewMetaFieldPathBuilder().Uuid().FieldPath(), 264 } 265 } 266 267 func (s AlertPathSelectorMetadataUuid) WithValue(value string) *Alert_FieldSubPathValue { 268 return s.FieldPath().WithIValue(value).(*Alert_FieldSubPathValue) 269 } 270 271 func (s AlertPathSelectorMetadataUuid) WithArrayOfValues(values []string) *Alert_FieldSubPathArrayOfValues { 272 return s.FieldPath().WithIArrayOfValues(values).(*Alert_FieldSubPathArrayOfValues) 273 } 274 275 type AlertPathSelectorMetadataTags struct{} 276 277 func (AlertPathSelectorMetadataTags) FieldPath() *Alert_FieldSubPath { 278 return &Alert_FieldSubPath{ 279 selector: Alert_FieldPathSelectorMetadata, 280 subPath: meta.NewMetaFieldPathBuilder().Tags().FieldPath(), 281 } 282 } 283 284 func (s AlertPathSelectorMetadataTags) WithValue(value []string) *Alert_FieldSubPathValue { 285 return s.FieldPath().WithIValue(value).(*Alert_FieldSubPathValue) 286 } 287 288 func (s AlertPathSelectorMetadataTags) WithArrayOfValues(values [][]string) *Alert_FieldSubPathArrayOfValues { 289 return s.FieldPath().WithIArrayOfValues(values).(*Alert_FieldSubPathArrayOfValues) 290 } 291 292 func (s AlertPathSelectorMetadataTags) WithItemValue(value string) *Alert_FieldSubPathArrayItemValue { 293 return s.FieldPath().WithIArrayItemValue(value).(*Alert_FieldSubPathArrayItemValue) 294 } 295 296 type AlertPathSelectorMetadataLabels struct{} 297 298 func (AlertPathSelectorMetadataLabels) FieldPath() *Alert_FieldSubPath { 299 return &Alert_FieldSubPath{ 300 selector: Alert_FieldPathSelectorMetadata, 301 subPath: meta.NewMetaFieldPathBuilder().Labels().FieldPath(), 302 } 303 } 304 305 func (s AlertPathSelectorMetadataLabels) WithValue(value map[string]string) *Alert_FieldSubPathValue { 306 return s.FieldPath().WithIValue(value).(*Alert_FieldSubPathValue) 307 } 308 309 func (s AlertPathSelectorMetadataLabels) WithArrayOfValues(values []map[string]string) *Alert_FieldSubPathArrayOfValues { 310 return s.FieldPath().WithIArrayOfValues(values).(*Alert_FieldSubPathArrayOfValues) 311 } 312 313 func (AlertPathSelectorMetadataLabels) WithKey(key string) AlertMapPathSelectorMetadataLabels { 314 return AlertMapPathSelectorMetadataLabels{key: key} 315 } 316 317 type AlertMapPathSelectorMetadataLabels struct { 318 key string 319 } 320 321 func (s AlertMapPathSelectorMetadataLabels) FieldPath() *Alert_FieldSubPath { 322 return &Alert_FieldSubPath{ 323 selector: Alert_FieldPathSelectorMetadata, 324 subPath: meta.NewMetaFieldPathBuilder().Labels().WithKey(s.key).FieldPath(), 325 } 326 } 327 328 func (s AlertMapPathSelectorMetadataLabels) WithValue(value string) *Alert_FieldSubPathValue { 329 return s.FieldPath().WithIValue(value).(*Alert_FieldSubPathValue) 330 } 331 332 func (s AlertMapPathSelectorMetadataLabels) WithArrayOfValues(values []string) *Alert_FieldSubPathArrayOfValues { 333 return s.FieldPath().WithIArrayOfValues(values).(*Alert_FieldSubPathArrayOfValues) 334 } 335 336 type AlertPathSelectorMetadataAnnotations struct{} 337 338 func (AlertPathSelectorMetadataAnnotations) FieldPath() *Alert_FieldSubPath { 339 return &Alert_FieldSubPath{ 340 selector: Alert_FieldPathSelectorMetadata, 341 subPath: meta.NewMetaFieldPathBuilder().Annotations().FieldPath(), 342 } 343 } 344 345 func (s AlertPathSelectorMetadataAnnotations) WithValue(value map[string]string) *Alert_FieldSubPathValue { 346 return s.FieldPath().WithIValue(value).(*Alert_FieldSubPathValue) 347 } 348 349 func (s AlertPathSelectorMetadataAnnotations) WithArrayOfValues(values []map[string]string) *Alert_FieldSubPathArrayOfValues { 350 return s.FieldPath().WithIArrayOfValues(values).(*Alert_FieldSubPathArrayOfValues) 351 } 352 353 func (AlertPathSelectorMetadataAnnotations) WithKey(key string) AlertMapPathSelectorMetadataAnnotations { 354 return AlertMapPathSelectorMetadataAnnotations{key: key} 355 } 356 357 type AlertMapPathSelectorMetadataAnnotations struct { 358 key string 359 } 360 361 func (s AlertMapPathSelectorMetadataAnnotations) FieldPath() *Alert_FieldSubPath { 362 return &Alert_FieldSubPath{ 363 selector: Alert_FieldPathSelectorMetadata, 364 subPath: meta.NewMetaFieldPathBuilder().Annotations().WithKey(s.key).FieldPath(), 365 } 366 } 367 368 func (s AlertMapPathSelectorMetadataAnnotations) WithValue(value string) *Alert_FieldSubPathValue { 369 return s.FieldPath().WithIValue(value).(*Alert_FieldSubPathValue) 370 } 371 372 func (s AlertMapPathSelectorMetadataAnnotations) WithArrayOfValues(values []string) *Alert_FieldSubPathArrayOfValues { 373 return s.FieldPath().WithIArrayOfValues(values).(*Alert_FieldSubPathArrayOfValues) 374 } 375 376 type AlertPathSelectorMetadataGeneration struct{} 377 378 func (AlertPathSelectorMetadataGeneration) FieldPath() *Alert_FieldSubPath { 379 return &Alert_FieldSubPath{ 380 selector: Alert_FieldPathSelectorMetadata, 381 subPath: meta.NewMetaFieldPathBuilder().Generation().FieldPath(), 382 } 383 } 384 385 func (s AlertPathSelectorMetadataGeneration) WithValue(value int64) *Alert_FieldSubPathValue { 386 return s.FieldPath().WithIValue(value).(*Alert_FieldSubPathValue) 387 } 388 389 func (s AlertPathSelectorMetadataGeneration) WithArrayOfValues(values []int64) *Alert_FieldSubPathArrayOfValues { 390 return s.FieldPath().WithIArrayOfValues(values).(*Alert_FieldSubPathArrayOfValues) 391 } 392 393 type AlertPathSelectorMetadataResourceVersion struct{} 394 395 func (AlertPathSelectorMetadataResourceVersion) FieldPath() *Alert_FieldSubPath { 396 return &Alert_FieldSubPath{ 397 selector: Alert_FieldPathSelectorMetadata, 398 subPath: meta.NewMetaFieldPathBuilder().ResourceVersion().FieldPath(), 399 } 400 } 401 402 func (s AlertPathSelectorMetadataResourceVersion) WithValue(value string) *Alert_FieldSubPathValue { 403 return s.FieldPath().WithIValue(value).(*Alert_FieldSubPathValue) 404 } 405 406 func (s AlertPathSelectorMetadataResourceVersion) WithArrayOfValues(values []string) *Alert_FieldSubPathArrayOfValues { 407 return s.FieldPath().WithIArrayOfValues(values).(*Alert_FieldSubPathArrayOfValues) 408 } 409 410 type AlertPathSelectorMetadataOwnerReferences struct{} 411 412 func (AlertPathSelectorMetadataOwnerReferences) FieldPath() *Alert_FieldSubPath { 413 return &Alert_FieldSubPath{ 414 selector: Alert_FieldPathSelectorMetadata, 415 subPath: meta.NewMetaFieldPathBuilder().OwnerReferences().FieldPath(), 416 } 417 } 418 419 func (s AlertPathSelectorMetadataOwnerReferences) WithValue(value []*meta.OwnerReference) *Alert_FieldSubPathValue { 420 return s.FieldPath().WithIValue(value).(*Alert_FieldSubPathValue) 421 } 422 423 func (s AlertPathSelectorMetadataOwnerReferences) WithArrayOfValues(values [][]*meta.OwnerReference) *Alert_FieldSubPathArrayOfValues { 424 return s.FieldPath().WithIArrayOfValues(values).(*Alert_FieldSubPathArrayOfValues) 425 } 426 427 func (s AlertPathSelectorMetadataOwnerReferences) WithItemValue(value *meta.OwnerReference) *Alert_FieldSubPathArrayItemValue { 428 return s.FieldPath().WithIArrayItemValue(value).(*Alert_FieldSubPathArrayItemValue) 429 } 430 431 func (AlertPathSelectorMetadataOwnerReferences) Kind() AlertPathSelectorMetadataOwnerReferencesKind { 432 return AlertPathSelectorMetadataOwnerReferencesKind{} 433 } 434 435 func (AlertPathSelectorMetadataOwnerReferences) Version() AlertPathSelectorMetadataOwnerReferencesVersion { 436 return AlertPathSelectorMetadataOwnerReferencesVersion{} 437 } 438 439 func (AlertPathSelectorMetadataOwnerReferences) Name() AlertPathSelectorMetadataOwnerReferencesName { 440 return AlertPathSelectorMetadataOwnerReferencesName{} 441 } 442 443 func (AlertPathSelectorMetadataOwnerReferences) Region() AlertPathSelectorMetadataOwnerReferencesRegion { 444 return AlertPathSelectorMetadataOwnerReferencesRegion{} 445 } 446 447 func (AlertPathSelectorMetadataOwnerReferences) Controller() AlertPathSelectorMetadataOwnerReferencesController { 448 return AlertPathSelectorMetadataOwnerReferencesController{} 449 } 450 451 func (AlertPathSelectorMetadataOwnerReferences) RequiresOwnerReference() AlertPathSelectorMetadataOwnerReferencesRequiresOwnerReference { 452 return AlertPathSelectorMetadataOwnerReferencesRequiresOwnerReference{} 453 } 454 455 func (AlertPathSelectorMetadataOwnerReferences) UnsetOnDelete() AlertPathSelectorMetadataOwnerReferencesUnsetOnDelete { 456 return AlertPathSelectorMetadataOwnerReferencesUnsetOnDelete{} 457 } 458 459 type AlertPathSelectorMetadataOwnerReferencesKind struct{} 460 461 func (AlertPathSelectorMetadataOwnerReferencesKind) FieldPath() *Alert_FieldSubPath { 462 return &Alert_FieldSubPath{ 463 selector: Alert_FieldPathSelectorMetadata, 464 subPath: meta.NewMetaFieldPathBuilder().OwnerReferences().Kind().FieldPath(), 465 } 466 } 467 468 func (s AlertPathSelectorMetadataOwnerReferencesKind) WithValue(value string) *Alert_FieldSubPathValue { 469 return s.FieldPath().WithIValue(value).(*Alert_FieldSubPathValue) 470 } 471 472 func (s AlertPathSelectorMetadataOwnerReferencesKind) WithArrayOfValues(values []string) *Alert_FieldSubPathArrayOfValues { 473 return s.FieldPath().WithIArrayOfValues(values).(*Alert_FieldSubPathArrayOfValues) 474 } 475 476 type AlertPathSelectorMetadataOwnerReferencesVersion struct{} 477 478 func (AlertPathSelectorMetadataOwnerReferencesVersion) FieldPath() *Alert_FieldSubPath { 479 return &Alert_FieldSubPath{ 480 selector: Alert_FieldPathSelectorMetadata, 481 subPath: meta.NewMetaFieldPathBuilder().OwnerReferences().Version().FieldPath(), 482 } 483 } 484 485 func (s AlertPathSelectorMetadataOwnerReferencesVersion) WithValue(value string) *Alert_FieldSubPathValue { 486 return s.FieldPath().WithIValue(value).(*Alert_FieldSubPathValue) 487 } 488 489 func (s AlertPathSelectorMetadataOwnerReferencesVersion) WithArrayOfValues(values []string) *Alert_FieldSubPathArrayOfValues { 490 return s.FieldPath().WithIArrayOfValues(values).(*Alert_FieldSubPathArrayOfValues) 491 } 492 493 type AlertPathSelectorMetadataOwnerReferencesName struct{} 494 495 func (AlertPathSelectorMetadataOwnerReferencesName) FieldPath() *Alert_FieldSubPath { 496 return &Alert_FieldSubPath{ 497 selector: Alert_FieldPathSelectorMetadata, 498 subPath: meta.NewMetaFieldPathBuilder().OwnerReferences().Name().FieldPath(), 499 } 500 } 501 502 func (s AlertPathSelectorMetadataOwnerReferencesName) WithValue(value string) *Alert_FieldSubPathValue { 503 return s.FieldPath().WithIValue(value).(*Alert_FieldSubPathValue) 504 } 505 506 func (s AlertPathSelectorMetadataOwnerReferencesName) WithArrayOfValues(values []string) *Alert_FieldSubPathArrayOfValues { 507 return s.FieldPath().WithIArrayOfValues(values).(*Alert_FieldSubPathArrayOfValues) 508 } 509 510 type AlertPathSelectorMetadataOwnerReferencesRegion struct{} 511 512 func (AlertPathSelectorMetadataOwnerReferencesRegion) FieldPath() *Alert_FieldSubPath { 513 return &Alert_FieldSubPath{ 514 selector: Alert_FieldPathSelectorMetadata, 515 subPath: meta.NewMetaFieldPathBuilder().OwnerReferences().Region().FieldPath(), 516 } 517 } 518 519 func (s AlertPathSelectorMetadataOwnerReferencesRegion) WithValue(value string) *Alert_FieldSubPathValue { 520 return s.FieldPath().WithIValue(value).(*Alert_FieldSubPathValue) 521 } 522 523 func (s AlertPathSelectorMetadataOwnerReferencesRegion) WithArrayOfValues(values []string) *Alert_FieldSubPathArrayOfValues { 524 return s.FieldPath().WithIArrayOfValues(values).(*Alert_FieldSubPathArrayOfValues) 525 } 526 527 type AlertPathSelectorMetadataOwnerReferencesController struct{} 528 529 func (AlertPathSelectorMetadataOwnerReferencesController) FieldPath() *Alert_FieldSubPath { 530 return &Alert_FieldSubPath{ 531 selector: Alert_FieldPathSelectorMetadata, 532 subPath: meta.NewMetaFieldPathBuilder().OwnerReferences().Controller().FieldPath(), 533 } 534 } 535 536 func (s AlertPathSelectorMetadataOwnerReferencesController) WithValue(value bool) *Alert_FieldSubPathValue { 537 return s.FieldPath().WithIValue(value).(*Alert_FieldSubPathValue) 538 } 539 540 func (s AlertPathSelectorMetadataOwnerReferencesController) WithArrayOfValues(values []bool) *Alert_FieldSubPathArrayOfValues { 541 return s.FieldPath().WithIArrayOfValues(values).(*Alert_FieldSubPathArrayOfValues) 542 } 543 544 type AlertPathSelectorMetadataOwnerReferencesRequiresOwnerReference struct{} 545 546 func (AlertPathSelectorMetadataOwnerReferencesRequiresOwnerReference) FieldPath() *Alert_FieldSubPath { 547 return &Alert_FieldSubPath{ 548 selector: Alert_FieldPathSelectorMetadata, 549 subPath: meta.NewMetaFieldPathBuilder().OwnerReferences().RequiresOwnerReference().FieldPath(), 550 } 551 } 552 553 func (s AlertPathSelectorMetadataOwnerReferencesRequiresOwnerReference) WithValue(value bool) *Alert_FieldSubPathValue { 554 return s.FieldPath().WithIValue(value).(*Alert_FieldSubPathValue) 555 } 556 557 func (s AlertPathSelectorMetadataOwnerReferencesRequiresOwnerReference) WithArrayOfValues(values []bool) *Alert_FieldSubPathArrayOfValues { 558 return s.FieldPath().WithIArrayOfValues(values).(*Alert_FieldSubPathArrayOfValues) 559 } 560 561 type AlertPathSelectorMetadataOwnerReferencesUnsetOnDelete struct{} 562 563 func (AlertPathSelectorMetadataOwnerReferencesUnsetOnDelete) FieldPath() *Alert_FieldSubPath { 564 return &Alert_FieldSubPath{ 565 selector: Alert_FieldPathSelectorMetadata, 566 subPath: meta.NewMetaFieldPathBuilder().OwnerReferences().UnsetOnDelete().FieldPath(), 567 } 568 } 569 570 func (s AlertPathSelectorMetadataOwnerReferencesUnsetOnDelete) WithValue(value bool) *Alert_FieldSubPathValue { 571 return s.FieldPath().WithIValue(value).(*Alert_FieldSubPathValue) 572 } 573 574 func (s AlertPathSelectorMetadataOwnerReferencesUnsetOnDelete) WithArrayOfValues(values []bool) *Alert_FieldSubPathArrayOfValues { 575 return s.FieldPath().WithIArrayOfValues(values).(*Alert_FieldSubPathArrayOfValues) 576 } 577 578 type AlertPathSelectorMetadataShards struct{} 579 580 func (AlertPathSelectorMetadataShards) FieldPath() *Alert_FieldSubPath { 581 return &Alert_FieldSubPath{ 582 selector: Alert_FieldPathSelectorMetadata, 583 subPath: meta.NewMetaFieldPathBuilder().Shards().FieldPath(), 584 } 585 } 586 587 func (s AlertPathSelectorMetadataShards) WithValue(value map[string]int64) *Alert_FieldSubPathValue { 588 return s.FieldPath().WithIValue(value).(*Alert_FieldSubPathValue) 589 } 590 591 func (s AlertPathSelectorMetadataShards) WithArrayOfValues(values []map[string]int64) *Alert_FieldSubPathArrayOfValues { 592 return s.FieldPath().WithIArrayOfValues(values).(*Alert_FieldSubPathArrayOfValues) 593 } 594 595 func (AlertPathSelectorMetadataShards) WithKey(key string) AlertMapPathSelectorMetadataShards { 596 return AlertMapPathSelectorMetadataShards{key: key} 597 } 598 599 type AlertMapPathSelectorMetadataShards struct { 600 key string 601 } 602 603 func (s AlertMapPathSelectorMetadataShards) FieldPath() *Alert_FieldSubPath { 604 return &Alert_FieldSubPath{ 605 selector: Alert_FieldPathSelectorMetadata, 606 subPath: meta.NewMetaFieldPathBuilder().Shards().WithKey(s.key).FieldPath(), 607 } 608 } 609 610 func (s AlertMapPathSelectorMetadataShards) WithValue(value int64) *Alert_FieldSubPathValue { 611 return s.FieldPath().WithIValue(value).(*Alert_FieldSubPathValue) 612 } 613 614 func (s AlertMapPathSelectorMetadataShards) WithArrayOfValues(values []int64) *Alert_FieldSubPathArrayOfValues { 615 return s.FieldPath().WithIArrayOfValues(values).(*Alert_FieldSubPathArrayOfValues) 616 } 617 618 type AlertPathSelectorMetadataSyncing struct{} 619 620 func (AlertPathSelectorMetadataSyncing) FieldPath() *Alert_FieldSubPath { 621 return &Alert_FieldSubPath{ 622 selector: Alert_FieldPathSelectorMetadata, 623 subPath: meta.NewMetaFieldPathBuilder().Syncing().FieldPath(), 624 } 625 } 626 627 func (s AlertPathSelectorMetadataSyncing) WithValue(value *meta.SyncingMeta) *Alert_FieldSubPathValue { 628 return s.FieldPath().WithIValue(value).(*Alert_FieldSubPathValue) 629 } 630 631 func (s AlertPathSelectorMetadataSyncing) WithArrayOfValues(values []*meta.SyncingMeta) *Alert_FieldSubPathArrayOfValues { 632 return s.FieldPath().WithIArrayOfValues(values).(*Alert_FieldSubPathArrayOfValues) 633 } 634 635 func (AlertPathSelectorMetadataSyncing) OwningRegion() AlertPathSelectorMetadataSyncingOwningRegion { 636 return AlertPathSelectorMetadataSyncingOwningRegion{} 637 } 638 639 func (AlertPathSelectorMetadataSyncing) Regions() AlertPathSelectorMetadataSyncingRegions { 640 return AlertPathSelectorMetadataSyncingRegions{} 641 } 642 643 type AlertPathSelectorMetadataSyncingOwningRegion struct{} 644 645 func (AlertPathSelectorMetadataSyncingOwningRegion) FieldPath() *Alert_FieldSubPath { 646 return &Alert_FieldSubPath{ 647 selector: Alert_FieldPathSelectorMetadata, 648 subPath: meta.NewMetaFieldPathBuilder().Syncing().OwningRegion().FieldPath(), 649 } 650 } 651 652 func (s AlertPathSelectorMetadataSyncingOwningRegion) WithValue(value string) *Alert_FieldSubPathValue { 653 return s.FieldPath().WithIValue(value).(*Alert_FieldSubPathValue) 654 } 655 656 func (s AlertPathSelectorMetadataSyncingOwningRegion) WithArrayOfValues(values []string) *Alert_FieldSubPathArrayOfValues { 657 return s.FieldPath().WithIArrayOfValues(values).(*Alert_FieldSubPathArrayOfValues) 658 } 659 660 type AlertPathSelectorMetadataSyncingRegions struct{} 661 662 func (AlertPathSelectorMetadataSyncingRegions) FieldPath() *Alert_FieldSubPath { 663 return &Alert_FieldSubPath{ 664 selector: Alert_FieldPathSelectorMetadata, 665 subPath: meta.NewMetaFieldPathBuilder().Syncing().Regions().FieldPath(), 666 } 667 } 668 669 func (s AlertPathSelectorMetadataSyncingRegions) WithValue(value []string) *Alert_FieldSubPathValue { 670 return s.FieldPath().WithIValue(value).(*Alert_FieldSubPathValue) 671 } 672 673 func (s AlertPathSelectorMetadataSyncingRegions) WithArrayOfValues(values [][]string) *Alert_FieldSubPathArrayOfValues { 674 return s.FieldPath().WithIArrayOfValues(values).(*Alert_FieldSubPathArrayOfValues) 675 } 676 677 func (s AlertPathSelectorMetadataSyncingRegions) WithItemValue(value string) *Alert_FieldSubPathArrayItemValue { 678 return s.FieldPath().WithIArrayItemValue(value).(*Alert_FieldSubPathArrayItemValue) 679 } 680 681 type AlertPathSelectorMetadataLifecycle struct{} 682 683 func (AlertPathSelectorMetadataLifecycle) FieldPath() *Alert_FieldSubPath { 684 return &Alert_FieldSubPath{ 685 selector: Alert_FieldPathSelectorMetadata, 686 subPath: meta.NewMetaFieldPathBuilder().Lifecycle().FieldPath(), 687 } 688 } 689 690 func (s AlertPathSelectorMetadataLifecycle) WithValue(value *meta.Lifecycle) *Alert_FieldSubPathValue { 691 return s.FieldPath().WithIValue(value).(*Alert_FieldSubPathValue) 692 } 693 694 func (s AlertPathSelectorMetadataLifecycle) WithArrayOfValues(values []*meta.Lifecycle) *Alert_FieldSubPathArrayOfValues { 695 return s.FieldPath().WithIArrayOfValues(values).(*Alert_FieldSubPathArrayOfValues) 696 } 697 698 func (AlertPathSelectorMetadataLifecycle) State() AlertPathSelectorMetadataLifecycleState { 699 return AlertPathSelectorMetadataLifecycleState{} 700 } 701 702 func (AlertPathSelectorMetadataLifecycle) BlockDeletion() AlertPathSelectorMetadataLifecycleBlockDeletion { 703 return AlertPathSelectorMetadataLifecycleBlockDeletion{} 704 } 705 706 type AlertPathSelectorMetadataLifecycleState struct{} 707 708 func (AlertPathSelectorMetadataLifecycleState) FieldPath() *Alert_FieldSubPath { 709 return &Alert_FieldSubPath{ 710 selector: Alert_FieldPathSelectorMetadata, 711 subPath: meta.NewMetaFieldPathBuilder().Lifecycle().State().FieldPath(), 712 } 713 } 714 715 func (s AlertPathSelectorMetadataLifecycleState) WithValue(value meta.Lifecycle_State) *Alert_FieldSubPathValue { 716 return s.FieldPath().WithIValue(value).(*Alert_FieldSubPathValue) 717 } 718 719 func (s AlertPathSelectorMetadataLifecycleState) WithArrayOfValues(values []meta.Lifecycle_State) *Alert_FieldSubPathArrayOfValues { 720 return s.FieldPath().WithIArrayOfValues(values).(*Alert_FieldSubPathArrayOfValues) 721 } 722 723 type AlertPathSelectorMetadataLifecycleBlockDeletion struct{} 724 725 func (AlertPathSelectorMetadataLifecycleBlockDeletion) FieldPath() *Alert_FieldSubPath { 726 return &Alert_FieldSubPath{ 727 selector: Alert_FieldPathSelectorMetadata, 728 subPath: meta.NewMetaFieldPathBuilder().Lifecycle().BlockDeletion().FieldPath(), 729 } 730 } 731 732 func (s AlertPathSelectorMetadataLifecycleBlockDeletion) WithValue(value bool) *Alert_FieldSubPathValue { 733 return s.FieldPath().WithIValue(value).(*Alert_FieldSubPathValue) 734 } 735 736 func (s AlertPathSelectorMetadataLifecycleBlockDeletion) WithArrayOfValues(values []bool) *Alert_FieldSubPathArrayOfValues { 737 return s.FieldPath().WithIArrayOfValues(values).(*Alert_FieldSubPathArrayOfValues) 738 } 739 740 type AlertPathSelectorMetadataServices struct{} 741 742 func (AlertPathSelectorMetadataServices) FieldPath() *Alert_FieldSubPath { 743 return &Alert_FieldSubPath{ 744 selector: Alert_FieldPathSelectorMetadata, 745 subPath: meta.NewMetaFieldPathBuilder().Services().FieldPath(), 746 } 747 } 748 749 func (s AlertPathSelectorMetadataServices) WithValue(value *meta.ServicesInfo) *Alert_FieldSubPathValue { 750 return s.FieldPath().WithIValue(value).(*Alert_FieldSubPathValue) 751 } 752 753 func (s AlertPathSelectorMetadataServices) WithArrayOfValues(values []*meta.ServicesInfo) *Alert_FieldSubPathArrayOfValues { 754 return s.FieldPath().WithIArrayOfValues(values).(*Alert_FieldSubPathArrayOfValues) 755 } 756 757 func (AlertPathSelectorMetadataServices) OwningService() AlertPathSelectorMetadataServicesOwningService { 758 return AlertPathSelectorMetadataServicesOwningService{} 759 } 760 761 func (AlertPathSelectorMetadataServices) AllowedServices() AlertPathSelectorMetadataServicesAllowedServices { 762 return AlertPathSelectorMetadataServicesAllowedServices{} 763 } 764 765 type AlertPathSelectorMetadataServicesOwningService struct{} 766 767 func (AlertPathSelectorMetadataServicesOwningService) FieldPath() *Alert_FieldSubPath { 768 return &Alert_FieldSubPath{ 769 selector: Alert_FieldPathSelectorMetadata, 770 subPath: meta.NewMetaFieldPathBuilder().Services().OwningService().FieldPath(), 771 } 772 } 773 774 func (s AlertPathSelectorMetadataServicesOwningService) WithValue(value string) *Alert_FieldSubPathValue { 775 return s.FieldPath().WithIValue(value).(*Alert_FieldSubPathValue) 776 } 777 778 func (s AlertPathSelectorMetadataServicesOwningService) WithArrayOfValues(values []string) *Alert_FieldSubPathArrayOfValues { 779 return s.FieldPath().WithIArrayOfValues(values).(*Alert_FieldSubPathArrayOfValues) 780 } 781 782 type AlertPathSelectorMetadataServicesAllowedServices struct{} 783 784 func (AlertPathSelectorMetadataServicesAllowedServices) FieldPath() *Alert_FieldSubPath { 785 return &Alert_FieldSubPath{ 786 selector: Alert_FieldPathSelectorMetadata, 787 subPath: meta.NewMetaFieldPathBuilder().Services().AllowedServices().FieldPath(), 788 } 789 } 790 791 func (s AlertPathSelectorMetadataServicesAllowedServices) WithValue(value []string) *Alert_FieldSubPathValue { 792 return s.FieldPath().WithIValue(value).(*Alert_FieldSubPathValue) 793 } 794 795 func (s AlertPathSelectorMetadataServicesAllowedServices) WithArrayOfValues(values [][]string) *Alert_FieldSubPathArrayOfValues { 796 return s.FieldPath().WithIArrayOfValues(values).(*Alert_FieldSubPathArrayOfValues) 797 } 798 799 func (s AlertPathSelectorMetadataServicesAllowedServices) WithItemValue(value string) *Alert_FieldSubPathArrayItemValue { 800 return s.FieldPath().WithIArrayItemValue(value).(*Alert_FieldSubPathArrayItemValue) 801 } 802 803 type AlertPathSelectorDisplayName struct{} 804 805 func (AlertPathSelectorDisplayName) FieldPath() *Alert_FieldTerminalPath { 806 return &Alert_FieldTerminalPath{selector: Alert_FieldPathSelectorDisplayName} 807 } 808 809 func (s AlertPathSelectorDisplayName) WithValue(value string) *Alert_FieldTerminalPathValue { 810 return s.FieldPath().WithIValue(value).(*Alert_FieldTerminalPathValue) 811 } 812 813 func (s AlertPathSelectorDisplayName) WithArrayOfValues(values []string) *Alert_FieldTerminalPathArrayOfValues { 814 return s.FieldPath().WithIArrayOfValues(values).(*Alert_FieldTerminalPathArrayOfValues) 815 } 816 817 type AlertPathSelectorAlertingResource struct{} 818 819 func (AlertPathSelectorAlertingResource) FieldPath() *Alert_FieldTerminalPath { 820 return &Alert_FieldTerminalPath{selector: Alert_FieldPathSelectorAlertingResource} 821 } 822 823 func (s AlertPathSelectorAlertingResource) WithValue(value *meta.OwnerReference) *Alert_FieldTerminalPathValue { 824 return s.FieldPath().WithIValue(value).(*Alert_FieldTerminalPathValue) 825 } 826 827 func (s AlertPathSelectorAlertingResource) WithArrayOfValues(values []*meta.OwnerReference) *Alert_FieldTerminalPathArrayOfValues { 828 return s.FieldPath().WithIArrayOfValues(values).(*Alert_FieldTerminalPathArrayOfValues) 829 } 830 831 func (AlertPathSelectorAlertingResource) WithSubPath(subPath meta.OwnerReference_FieldPath) *Alert_FieldSubPath { 832 return &Alert_FieldSubPath{selector: Alert_FieldPathSelectorAlertingResource, subPath: subPath} 833 } 834 835 func (s AlertPathSelectorAlertingResource) WithSubValue(subPathValue meta.OwnerReference_FieldPathValue) *Alert_FieldSubPathValue { 836 return &Alert_FieldSubPathValue{Alert_FieldPath: s.WithSubPath(subPathValue), subPathValue: subPathValue} 837 } 838 839 func (s AlertPathSelectorAlertingResource) WithSubArrayOfValues(subPathArrayOfValues meta.OwnerReference_FieldPathArrayOfValues) *Alert_FieldSubPathArrayOfValues { 840 return &Alert_FieldSubPathArrayOfValues{Alert_FieldPath: s.WithSubPath(subPathArrayOfValues), subPathArrayOfValues: subPathArrayOfValues} 841 } 842 843 func (s AlertPathSelectorAlertingResource) WithSubArrayItemValue(subPathArrayItemValue meta.OwnerReference_FieldPathArrayItemValue) *Alert_FieldSubPathArrayItemValue { 844 return &Alert_FieldSubPathArrayItemValue{Alert_FieldPath: s.WithSubPath(subPathArrayItemValue), subPathItemValue: subPathArrayItemValue} 845 } 846 847 func (AlertPathSelectorAlertingResource) Kind() AlertPathSelectorAlertingResourceKind { 848 return AlertPathSelectorAlertingResourceKind{} 849 } 850 851 func (AlertPathSelectorAlertingResource) Version() AlertPathSelectorAlertingResourceVersion { 852 return AlertPathSelectorAlertingResourceVersion{} 853 } 854 855 func (AlertPathSelectorAlertingResource) Name() AlertPathSelectorAlertingResourceName { 856 return AlertPathSelectorAlertingResourceName{} 857 } 858 859 func (AlertPathSelectorAlertingResource) Region() AlertPathSelectorAlertingResourceRegion { 860 return AlertPathSelectorAlertingResourceRegion{} 861 } 862 863 func (AlertPathSelectorAlertingResource) Controller() AlertPathSelectorAlertingResourceController { 864 return AlertPathSelectorAlertingResourceController{} 865 } 866 867 func (AlertPathSelectorAlertingResource) RequiresOwnerReference() AlertPathSelectorAlertingResourceRequiresOwnerReference { 868 return AlertPathSelectorAlertingResourceRequiresOwnerReference{} 869 } 870 871 func (AlertPathSelectorAlertingResource) UnsetOnDelete() AlertPathSelectorAlertingResourceUnsetOnDelete { 872 return AlertPathSelectorAlertingResourceUnsetOnDelete{} 873 } 874 875 type AlertPathSelectorAlertingResourceKind struct{} 876 877 func (AlertPathSelectorAlertingResourceKind) FieldPath() *Alert_FieldSubPath { 878 return &Alert_FieldSubPath{ 879 selector: Alert_FieldPathSelectorAlertingResource, 880 subPath: meta.NewOwnerReferenceFieldPathBuilder().Kind().FieldPath(), 881 } 882 } 883 884 func (s AlertPathSelectorAlertingResourceKind) WithValue(value string) *Alert_FieldSubPathValue { 885 return s.FieldPath().WithIValue(value).(*Alert_FieldSubPathValue) 886 } 887 888 func (s AlertPathSelectorAlertingResourceKind) WithArrayOfValues(values []string) *Alert_FieldSubPathArrayOfValues { 889 return s.FieldPath().WithIArrayOfValues(values).(*Alert_FieldSubPathArrayOfValues) 890 } 891 892 type AlertPathSelectorAlertingResourceVersion struct{} 893 894 func (AlertPathSelectorAlertingResourceVersion) FieldPath() *Alert_FieldSubPath { 895 return &Alert_FieldSubPath{ 896 selector: Alert_FieldPathSelectorAlertingResource, 897 subPath: meta.NewOwnerReferenceFieldPathBuilder().Version().FieldPath(), 898 } 899 } 900 901 func (s AlertPathSelectorAlertingResourceVersion) WithValue(value string) *Alert_FieldSubPathValue { 902 return s.FieldPath().WithIValue(value).(*Alert_FieldSubPathValue) 903 } 904 905 func (s AlertPathSelectorAlertingResourceVersion) WithArrayOfValues(values []string) *Alert_FieldSubPathArrayOfValues { 906 return s.FieldPath().WithIArrayOfValues(values).(*Alert_FieldSubPathArrayOfValues) 907 } 908 909 type AlertPathSelectorAlertingResourceName struct{} 910 911 func (AlertPathSelectorAlertingResourceName) FieldPath() *Alert_FieldSubPath { 912 return &Alert_FieldSubPath{ 913 selector: Alert_FieldPathSelectorAlertingResource, 914 subPath: meta.NewOwnerReferenceFieldPathBuilder().Name().FieldPath(), 915 } 916 } 917 918 func (s AlertPathSelectorAlertingResourceName) WithValue(value string) *Alert_FieldSubPathValue { 919 return s.FieldPath().WithIValue(value).(*Alert_FieldSubPathValue) 920 } 921 922 func (s AlertPathSelectorAlertingResourceName) WithArrayOfValues(values []string) *Alert_FieldSubPathArrayOfValues { 923 return s.FieldPath().WithIArrayOfValues(values).(*Alert_FieldSubPathArrayOfValues) 924 } 925 926 type AlertPathSelectorAlertingResourceRegion struct{} 927 928 func (AlertPathSelectorAlertingResourceRegion) FieldPath() *Alert_FieldSubPath { 929 return &Alert_FieldSubPath{ 930 selector: Alert_FieldPathSelectorAlertingResource, 931 subPath: meta.NewOwnerReferenceFieldPathBuilder().Region().FieldPath(), 932 } 933 } 934 935 func (s AlertPathSelectorAlertingResourceRegion) WithValue(value string) *Alert_FieldSubPathValue { 936 return s.FieldPath().WithIValue(value).(*Alert_FieldSubPathValue) 937 } 938 939 func (s AlertPathSelectorAlertingResourceRegion) WithArrayOfValues(values []string) *Alert_FieldSubPathArrayOfValues { 940 return s.FieldPath().WithIArrayOfValues(values).(*Alert_FieldSubPathArrayOfValues) 941 } 942 943 type AlertPathSelectorAlertingResourceController struct{} 944 945 func (AlertPathSelectorAlertingResourceController) FieldPath() *Alert_FieldSubPath { 946 return &Alert_FieldSubPath{ 947 selector: Alert_FieldPathSelectorAlertingResource, 948 subPath: meta.NewOwnerReferenceFieldPathBuilder().Controller().FieldPath(), 949 } 950 } 951 952 func (s AlertPathSelectorAlertingResourceController) WithValue(value bool) *Alert_FieldSubPathValue { 953 return s.FieldPath().WithIValue(value).(*Alert_FieldSubPathValue) 954 } 955 956 func (s AlertPathSelectorAlertingResourceController) WithArrayOfValues(values []bool) *Alert_FieldSubPathArrayOfValues { 957 return s.FieldPath().WithIArrayOfValues(values).(*Alert_FieldSubPathArrayOfValues) 958 } 959 960 type AlertPathSelectorAlertingResourceRequiresOwnerReference struct{} 961 962 func (AlertPathSelectorAlertingResourceRequiresOwnerReference) FieldPath() *Alert_FieldSubPath { 963 return &Alert_FieldSubPath{ 964 selector: Alert_FieldPathSelectorAlertingResource, 965 subPath: meta.NewOwnerReferenceFieldPathBuilder().RequiresOwnerReference().FieldPath(), 966 } 967 } 968 969 func (s AlertPathSelectorAlertingResourceRequiresOwnerReference) WithValue(value bool) *Alert_FieldSubPathValue { 970 return s.FieldPath().WithIValue(value).(*Alert_FieldSubPathValue) 971 } 972 973 func (s AlertPathSelectorAlertingResourceRequiresOwnerReference) WithArrayOfValues(values []bool) *Alert_FieldSubPathArrayOfValues { 974 return s.FieldPath().WithIArrayOfValues(values).(*Alert_FieldSubPathArrayOfValues) 975 } 976 977 type AlertPathSelectorAlertingResourceUnsetOnDelete struct{} 978 979 func (AlertPathSelectorAlertingResourceUnsetOnDelete) FieldPath() *Alert_FieldSubPath { 980 return &Alert_FieldSubPath{ 981 selector: Alert_FieldPathSelectorAlertingResource, 982 subPath: meta.NewOwnerReferenceFieldPathBuilder().UnsetOnDelete().FieldPath(), 983 } 984 } 985 986 func (s AlertPathSelectorAlertingResourceUnsetOnDelete) WithValue(value bool) *Alert_FieldSubPathValue { 987 return s.FieldPath().WithIValue(value).(*Alert_FieldSubPathValue) 988 } 989 990 func (s AlertPathSelectorAlertingResourceUnsetOnDelete) WithArrayOfValues(values []bool) *Alert_FieldSubPathArrayOfValues { 991 return s.FieldPath().WithIArrayOfValues(values).(*Alert_FieldSubPathArrayOfValues) 992 } 993 994 type AlertPathSelectorTsInfo struct{} 995 996 func (AlertPathSelectorTsInfo) FieldPath() *Alert_FieldTerminalPath { 997 return &Alert_FieldTerminalPath{selector: Alert_FieldPathSelectorTsInfo} 998 } 999 1000 func (s AlertPathSelectorTsInfo) WithValue(value *Alert_TsInfo) *Alert_FieldTerminalPathValue { 1001 return s.FieldPath().WithIValue(value).(*Alert_FieldTerminalPathValue) 1002 } 1003 1004 func (s AlertPathSelectorTsInfo) WithArrayOfValues(values []*Alert_TsInfo) *Alert_FieldTerminalPathArrayOfValues { 1005 return s.FieldPath().WithIArrayOfValues(values).(*Alert_FieldTerminalPathArrayOfValues) 1006 } 1007 1008 func (AlertPathSelectorTsInfo) WithSubPath(subPath AlertTsInfo_FieldPath) *Alert_FieldSubPath { 1009 return &Alert_FieldSubPath{selector: Alert_FieldPathSelectorTsInfo, subPath: subPath} 1010 } 1011 1012 func (s AlertPathSelectorTsInfo) WithSubValue(subPathValue AlertTsInfo_FieldPathValue) *Alert_FieldSubPathValue { 1013 return &Alert_FieldSubPathValue{Alert_FieldPath: s.WithSubPath(subPathValue), subPathValue: subPathValue} 1014 } 1015 1016 func (s AlertPathSelectorTsInfo) WithSubArrayOfValues(subPathArrayOfValues AlertTsInfo_FieldPathArrayOfValues) *Alert_FieldSubPathArrayOfValues { 1017 return &Alert_FieldSubPathArrayOfValues{Alert_FieldPath: s.WithSubPath(subPathArrayOfValues), subPathArrayOfValues: subPathArrayOfValues} 1018 } 1019 1020 func (s AlertPathSelectorTsInfo) WithSubArrayItemValue(subPathArrayItemValue AlertTsInfo_FieldPathArrayItemValue) *Alert_FieldSubPathArrayItemValue { 1021 return &Alert_FieldSubPathArrayItemValue{Alert_FieldPath: s.WithSubPath(subPathArrayItemValue), subPathItemValue: subPathArrayItemValue} 1022 } 1023 1024 func (AlertPathSelectorTsInfo) Type() AlertPathSelectorTsInfoType { 1025 return AlertPathSelectorTsInfoType{} 1026 } 1027 1028 func (AlertPathSelectorTsInfo) AnomalyWindowSize() AlertPathSelectorTsInfoAnomalyWindowSize { 1029 return AlertPathSelectorTsInfoAnomalyWindowSize{} 1030 } 1031 1032 func (AlertPathSelectorTsInfo) CommonKey() AlertPathSelectorTsInfoCommonKey { 1033 return AlertPathSelectorTsInfoCommonKey{} 1034 } 1035 1036 func (AlertPathSelectorTsInfo) MetricTypes() AlertPathSelectorTsInfoMetricTypes { 1037 return AlertPathSelectorTsInfoMetricTypes{} 1038 } 1039 1040 func (AlertPathSelectorTsInfo) ResourceTypes() AlertPathSelectorTsInfoResourceTypes { 1041 return AlertPathSelectorTsInfoResourceTypes{} 1042 } 1043 1044 func (AlertPathSelectorTsInfo) CommonMetricLabels() AlertPathSelectorTsInfoCommonMetricLabels { 1045 return AlertPathSelectorTsInfoCommonMetricLabels{} 1046 } 1047 1048 func (AlertPathSelectorTsInfo) CommonResourceLabels() AlertPathSelectorTsInfoCommonResourceLabels { 1049 return AlertPathSelectorTsInfoCommonResourceLabels{} 1050 } 1051 1052 func (AlertPathSelectorTsInfo) TimeSeries() AlertPathSelectorTsInfoTimeSeries { 1053 return AlertPathSelectorTsInfoTimeSeries{} 1054 } 1055 1056 type AlertPathSelectorTsInfoType struct{} 1057 1058 func (AlertPathSelectorTsInfoType) FieldPath() *Alert_FieldSubPath { 1059 return &Alert_FieldSubPath{ 1060 selector: Alert_FieldPathSelectorTsInfo, 1061 subPath: NewAlertTsInfoFieldPathBuilder().Type().FieldPath(), 1062 } 1063 } 1064 1065 func (s AlertPathSelectorTsInfoType) WithValue(value Alert_TsInfo_Type) *Alert_FieldSubPathValue { 1066 return s.FieldPath().WithIValue(value).(*Alert_FieldSubPathValue) 1067 } 1068 1069 func (s AlertPathSelectorTsInfoType) WithArrayOfValues(values []Alert_TsInfo_Type) *Alert_FieldSubPathArrayOfValues { 1070 return s.FieldPath().WithIArrayOfValues(values).(*Alert_FieldSubPathArrayOfValues) 1071 } 1072 1073 type AlertPathSelectorTsInfoAnomalyWindowSize struct{} 1074 1075 func (AlertPathSelectorTsInfoAnomalyWindowSize) FieldPath() *Alert_FieldSubPath { 1076 return &Alert_FieldSubPath{ 1077 selector: Alert_FieldPathSelectorTsInfo, 1078 subPath: NewAlertTsInfoFieldPathBuilder().AnomalyWindowSize().FieldPath(), 1079 } 1080 } 1081 1082 func (s AlertPathSelectorTsInfoAnomalyWindowSize) WithValue(value *durationpb.Duration) *Alert_FieldSubPathValue { 1083 return s.FieldPath().WithIValue(value).(*Alert_FieldSubPathValue) 1084 } 1085 1086 func (s AlertPathSelectorTsInfoAnomalyWindowSize) WithArrayOfValues(values []*durationpb.Duration) *Alert_FieldSubPathArrayOfValues { 1087 return s.FieldPath().WithIArrayOfValues(values).(*Alert_FieldSubPathArrayOfValues) 1088 } 1089 1090 type AlertPathSelectorTsInfoCommonKey struct{} 1091 1092 func (AlertPathSelectorTsInfoCommonKey) FieldPath() *Alert_FieldSubPath { 1093 return &Alert_FieldSubPath{ 1094 selector: Alert_FieldPathSelectorTsInfo, 1095 subPath: NewAlertTsInfoFieldPathBuilder().CommonKey().FieldPath(), 1096 } 1097 } 1098 1099 func (s AlertPathSelectorTsInfoCommonKey) WithValue(value []byte) *Alert_FieldSubPathValue { 1100 return s.FieldPath().WithIValue(value).(*Alert_FieldSubPathValue) 1101 } 1102 1103 func (s AlertPathSelectorTsInfoCommonKey) WithArrayOfValues(values [][]byte) *Alert_FieldSubPathArrayOfValues { 1104 return s.FieldPath().WithIArrayOfValues(values).(*Alert_FieldSubPathArrayOfValues) 1105 } 1106 1107 type AlertPathSelectorTsInfoMetricTypes struct{} 1108 1109 func (AlertPathSelectorTsInfoMetricTypes) FieldPath() *Alert_FieldSubPath { 1110 return &Alert_FieldSubPath{ 1111 selector: Alert_FieldPathSelectorTsInfo, 1112 subPath: NewAlertTsInfoFieldPathBuilder().MetricTypes().FieldPath(), 1113 } 1114 } 1115 1116 func (s AlertPathSelectorTsInfoMetricTypes) WithValue(value []string) *Alert_FieldSubPathValue { 1117 return s.FieldPath().WithIValue(value).(*Alert_FieldSubPathValue) 1118 } 1119 1120 func (s AlertPathSelectorTsInfoMetricTypes) WithArrayOfValues(values [][]string) *Alert_FieldSubPathArrayOfValues { 1121 return s.FieldPath().WithIArrayOfValues(values).(*Alert_FieldSubPathArrayOfValues) 1122 } 1123 1124 func (s AlertPathSelectorTsInfoMetricTypes) WithItemValue(value string) *Alert_FieldSubPathArrayItemValue { 1125 return s.FieldPath().WithIArrayItemValue(value).(*Alert_FieldSubPathArrayItemValue) 1126 } 1127 1128 type AlertPathSelectorTsInfoResourceTypes struct{} 1129 1130 func (AlertPathSelectorTsInfoResourceTypes) FieldPath() *Alert_FieldSubPath { 1131 return &Alert_FieldSubPath{ 1132 selector: Alert_FieldPathSelectorTsInfo, 1133 subPath: NewAlertTsInfoFieldPathBuilder().ResourceTypes().FieldPath(), 1134 } 1135 } 1136 1137 func (s AlertPathSelectorTsInfoResourceTypes) WithValue(value []string) *Alert_FieldSubPathValue { 1138 return s.FieldPath().WithIValue(value).(*Alert_FieldSubPathValue) 1139 } 1140 1141 func (s AlertPathSelectorTsInfoResourceTypes) WithArrayOfValues(values [][]string) *Alert_FieldSubPathArrayOfValues { 1142 return s.FieldPath().WithIArrayOfValues(values).(*Alert_FieldSubPathArrayOfValues) 1143 } 1144 1145 func (s AlertPathSelectorTsInfoResourceTypes) WithItemValue(value string) *Alert_FieldSubPathArrayItemValue { 1146 return s.FieldPath().WithIArrayItemValue(value).(*Alert_FieldSubPathArrayItemValue) 1147 } 1148 1149 type AlertPathSelectorTsInfoCommonMetricLabels struct{} 1150 1151 func (AlertPathSelectorTsInfoCommonMetricLabels) FieldPath() *Alert_FieldSubPath { 1152 return &Alert_FieldSubPath{ 1153 selector: Alert_FieldPathSelectorTsInfo, 1154 subPath: NewAlertTsInfoFieldPathBuilder().CommonMetricLabels().FieldPath(), 1155 } 1156 } 1157 1158 func (s AlertPathSelectorTsInfoCommonMetricLabels) WithValue(value map[string]string) *Alert_FieldSubPathValue { 1159 return s.FieldPath().WithIValue(value).(*Alert_FieldSubPathValue) 1160 } 1161 1162 func (s AlertPathSelectorTsInfoCommonMetricLabels) WithArrayOfValues(values []map[string]string) *Alert_FieldSubPathArrayOfValues { 1163 return s.FieldPath().WithIArrayOfValues(values).(*Alert_FieldSubPathArrayOfValues) 1164 } 1165 1166 func (AlertPathSelectorTsInfoCommonMetricLabels) WithKey(key string) AlertMapPathSelectorTsInfoCommonMetricLabels { 1167 return AlertMapPathSelectorTsInfoCommonMetricLabels{key: key} 1168 } 1169 1170 type AlertMapPathSelectorTsInfoCommonMetricLabels struct { 1171 key string 1172 } 1173 1174 func (s AlertMapPathSelectorTsInfoCommonMetricLabels) FieldPath() *Alert_FieldSubPath { 1175 return &Alert_FieldSubPath{ 1176 selector: Alert_FieldPathSelectorTsInfo, 1177 subPath: NewAlertTsInfoFieldPathBuilder().CommonMetricLabels().WithKey(s.key).FieldPath(), 1178 } 1179 } 1180 1181 func (s AlertMapPathSelectorTsInfoCommonMetricLabels) WithValue(value string) *Alert_FieldSubPathValue { 1182 return s.FieldPath().WithIValue(value).(*Alert_FieldSubPathValue) 1183 } 1184 1185 func (s AlertMapPathSelectorTsInfoCommonMetricLabels) WithArrayOfValues(values []string) *Alert_FieldSubPathArrayOfValues { 1186 return s.FieldPath().WithIArrayOfValues(values).(*Alert_FieldSubPathArrayOfValues) 1187 } 1188 1189 type AlertPathSelectorTsInfoCommonResourceLabels struct{} 1190 1191 func (AlertPathSelectorTsInfoCommonResourceLabels) FieldPath() *Alert_FieldSubPath { 1192 return &Alert_FieldSubPath{ 1193 selector: Alert_FieldPathSelectorTsInfo, 1194 subPath: NewAlertTsInfoFieldPathBuilder().CommonResourceLabels().FieldPath(), 1195 } 1196 } 1197 1198 func (s AlertPathSelectorTsInfoCommonResourceLabels) WithValue(value map[string]string) *Alert_FieldSubPathValue { 1199 return s.FieldPath().WithIValue(value).(*Alert_FieldSubPathValue) 1200 } 1201 1202 func (s AlertPathSelectorTsInfoCommonResourceLabels) WithArrayOfValues(values []map[string]string) *Alert_FieldSubPathArrayOfValues { 1203 return s.FieldPath().WithIArrayOfValues(values).(*Alert_FieldSubPathArrayOfValues) 1204 } 1205 1206 func (AlertPathSelectorTsInfoCommonResourceLabels) WithKey(key string) AlertMapPathSelectorTsInfoCommonResourceLabels { 1207 return AlertMapPathSelectorTsInfoCommonResourceLabels{key: key} 1208 } 1209 1210 type AlertMapPathSelectorTsInfoCommonResourceLabels struct { 1211 key string 1212 } 1213 1214 func (s AlertMapPathSelectorTsInfoCommonResourceLabels) FieldPath() *Alert_FieldSubPath { 1215 return &Alert_FieldSubPath{ 1216 selector: Alert_FieldPathSelectorTsInfo, 1217 subPath: NewAlertTsInfoFieldPathBuilder().CommonResourceLabels().WithKey(s.key).FieldPath(), 1218 } 1219 } 1220 1221 func (s AlertMapPathSelectorTsInfoCommonResourceLabels) WithValue(value string) *Alert_FieldSubPathValue { 1222 return s.FieldPath().WithIValue(value).(*Alert_FieldSubPathValue) 1223 } 1224 1225 func (s AlertMapPathSelectorTsInfoCommonResourceLabels) WithArrayOfValues(values []string) *Alert_FieldSubPathArrayOfValues { 1226 return s.FieldPath().WithIArrayOfValues(values).(*Alert_FieldSubPathArrayOfValues) 1227 } 1228 1229 type AlertPathSelectorTsInfoTimeSeries struct{} 1230 1231 func (AlertPathSelectorTsInfoTimeSeries) FieldPath() *Alert_FieldSubPath { 1232 return &Alert_FieldSubPath{ 1233 selector: Alert_FieldPathSelectorTsInfo, 1234 subPath: NewAlertTsInfoFieldPathBuilder().TimeSeries().FieldPath(), 1235 } 1236 } 1237 1238 func (s AlertPathSelectorTsInfoTimeSeries) WithValue(value []*Alert_TsInfo_TimeSeries) *Alert_FieldSubPathValue { 1239 return s.FieldPath().WithIValue(value).(*Alert_FieldSubPathValue) 1240 } 1241 1242 func (s AlertPathSelectorTsInfoTimeSeries) WithArrayOfValues(values [][]*Alert_TsInfo_TimeSeries) *Alert_FieldSubPathArrayOfValues { 1243 return s.FieldPath().WithIArrayOfValues(values).(*Alert_FieldSubPathArrayOfValues) 1244 } 1245 1246 func (s AlertPathSelectorTsInfoTimeSeries) WithItemValue(value *Alert_TsInfo_TimeSeries) *Alert_FieldSubPathArrayItemValue { 1247 return s.FieldPath().WithIArrayItemValue(value).(*Alert_FieldSubPathArrayItemValue) 1248 } 1249 1250 func (AlertPathSelectorTsInfoTimeSeries) QueryName() AlertPathSelectorTsInfoTimeSeriesQueryName { 1251 return AlertPathSelectorTsInfoTimeSeriesQueryName{} 1252 } 1253 1254 func (AlertPathSelectorTsInfoTimeSeries) Values() AlertPathSelectorTsInfoTimeSeriesValues { 1255 return AlertPathSelectorTsInfoTimeSeriesValues{} 1256 } 1257 1258 func (AlertPathSelectorTsInfoTimeSeries) Anomalies() AlertPathSelectorTsInfoTimeSeriesAnomalies { 1259 return AlertPathSelectorTsInfoTimeSeriesAnomalies{} 1260 } 1261 1262 func (AlertPathSelectorTsInfoTimeSeries) UpperThreshold() AlertPathSelectorTsInfoTimeSeriesUpperThreshold { 1263 return AlertPathSelectorTsInfoTimeSeriesUpperThreshold{} 1264 } 1265 1266 func (AlertPathSelectorTsInfoTimeSeries) LowerThreshold() AlertPathSelectorTsInfoTimeSeriesLowerThreshold { 1267 return AlertPathSelectorTsInfoTimeSeriesLowerThreshold{} 1268 } 1269 1270 func (AlertPathSelectorTsInfoTimeSeries) AnomalyThreshold() AlertPathSelectorTsInfoTimeSeriesAnomalyThreshold { 1271 return AlertPathSelectorTsInfoTimeSeriesAnomalyThreshold{} 1272 } 1273 1274 func (AlertPathSelectorTsInfoTimeSeries) AfterDuration() AlertPathSelectorTsInfoTimeSeriesAfterDuration { 1275 return AlertPathSelectorTsInfoTimeSeriesAfterDuration{} 1276 } 1277 1278 type AlertPathSelectorTsInfoTimeSeriesQueryName struct{} 1279 1280 func (AlertPathSelectorTsInfoTimeSeriesQueryName) FieldPath() *Alert_FieldSubPath { 1281 return &Alert_FieldSubPath{ 1282 selector: Alert_FieldPathSelectorTsInfo, 1283 subPath: NewAlertTsInfoFieldPathBuilder().TimeSeries().QueryName().FieldPath(), 1284 } 1285 } 1286 1287 func (s AlertPathSelectorTsInfoTimeSeriesQueryName) WithValue(value string) *Alert_FieldSubPathValue { 1288 return s.FieldPath().WithIValue(value).(*Alert_FieldSubPathValue) 1289 } 1290 1291 func (s AlertPathSelectorTsInfoTimeSeriesQueryName) WithArrayOfValues(values []string) *Alert_FieldSubPathArrayOfValues { 1292 return s.FieldPath().WithIArrayOfValues(values).(*Alert_FieldSubPathArrayOfValues) 1293 } 1294 1295 type AlertPathSelectorTsInfoTimeSeriesValues struct{} 1296 1297 func (AlertPathSelectorTsInfoTimeSeriesValues) FieldPath() *Alert_FieldSubPath { 1298 return &Alert_FieldSubPath{ 1299 selector: Alert_FieldPathSelectorTsInfo, 1300 subPath: NewAlertTsInfoFieldPathBuilder().TimeSeries().Values().FieldPath(), 1301 } 1302 } 1303 1304 func (s AlertPathSelectorTsInfoTimeSeriesValues) WithValue(value []float64) *Alert_FieldSubPathValue { 1305 return s.FieldPath().WithIValue(value).(*Alert_FieldSubPathValue) 1306 } 1307 1308 func (s AlertPathSelectorTsInfoTimeSeriesValues) WithArrayOfValues(values [][]float64) *Alert_FieldSubPathArrayOfValues { 1309 return s.FieldPath().WithIArrayOfValues(values).(*Alert_FieldSubPathArrayOfValues) 1310 } 1311 1312 func (s AlertPathSelectorTsInfoTimeSeriesValues) WithItemValue(value float64) *Alert_FieldSubPathArrayItemValue { 1313 return s.FieldPath().WithIArrayItemValue(value).(*Alert_FieldSubPathArrayItemValue) 1314 } 1315 1316 type AlertPathSelectorTsInfoTimeSeriesAnomalies struct{} 1317 1318 func (AlertPathSelectorTsInfoTimeSeriesAnomalies) FieldPath() *Alert_FieldSubPath { 1319 return &Alert_FieldSubPath{ 1320 selector: Alert_FieldPathSelectorTsInfo, 1321 subPath: NewAlertTsInfoFieldPathBuilder().TimeSeries().Anomalies().FieldPath(), 1322 } 1323 } 1324 1325 func (s AlertPathSelectorTsInfoTimeSeriesAnomalies) WithValue(value []float64) *Alert_FieldSubPathValue { 1326 return s.FieldPath().WithIValue(value).(*Alert_FieldSubPathValue) 1327 } 1328 1329 func (s AlertPathSelectorTsInfoTimeSeriesAnomalies) WithArrayOfValues(values [][]float64) *Alert_FieldSubPathArrayOfValues { 1330 return s.FieldPath().WithIArrayOfValues(values).(*Alert_FieldSubPathArrayOfValues) 1331 } 1332 1333 func (s AlertPathSelectorTsInfoTimeSeriesAnomalies) WithItemValue(value float64) *Alert_FieldSubPathArrayItemValue { 1334 return s.FieldPath().WithIArrayItemValue(value).(*Alert_FieldSubPathArrayItemValue) 1335 } 1336 1337 type AlertPathSelectorTsInfoTimeSeriesUpperThreshold struct{} 1338 1339 func (AlertPathSelectorTsInfoTimeSeriesUpperThreshold) FieldPath() *Alert_FieldSubPath { 1340 return &Alert_FieldSubPath{ 1341 selector: Alert_FieldPathSelectorTsInfo, 1342 subPath: NewAlertTsInfoFieldPathBuilder().TimeSeries().UpperThreshold().FieldPath(), 1343 } 1344 } 1345 1346 func (s AlertPathSelectorTsInfoTimeSeriesUpperThreshold) WithValue(value *rcommon.AlertingThreshold) *Alert_FieldSubPathValue { 1347 return s.FieldPath().WithIValue(value).(*Alert_FieldSubPathValue) 1348 } 1349 1350 func (s AlertPathSelectorTsInfoTimeSeriesUpperThreshold) WithArrayOfValues(values []*rcommon.AlertingThreshold) *Alert_FieldSubPathArrayOfValues { 1351 return s.FieldPath().WithIArrayOfValues(values).(*Alert_FieldSubPathArrayOfValues) 1352 } 1353 1354 func (AlertPathSelectorTsInfoTimeSeriesUpperThreshold) Value() AlertPathSelectorTsInfoTimeSeriesUpperThresholdValue { 1355 return AlertPathSelectorTsInfoTimeSeriesUpperThresholdValue{} 1356 } 1357 1358 func (AlertPathSelectorTsInfoTimeSeriesUpperThreshold) IsInclusive() AlertPathSelectorTsInfoTimeSeriesUpperThresholdIsInclusive { 1359 return AlertPathSelectorTsInfoTimeSeriesUpperThresholdIsInclusive{} 1360 } 1361 1362 type AlertPathSelectorTsInfoTimeSeriesUpperThresholdValue struct{} 1363 1364 func (AlertPathSelectorTsInfoTimeSeriesUpperThresholdValue) FieldPath() *Alert_FieldSubPath { 1365 return &Alert_FieldSubPath{ 1366 selector: Alert_FieldPathSelectorTsInfo, 1367 subPath: NewAlertTsInfoFieldPathBuilder().TimeSeries().UpperThreshold().Value().FieldPath(), 1368 } 1369 } 1370 1371 func (s AlertPathSelectorTsInfoTimeSeriesUpperThresholdValue) WithValue(value float64) *Alert_FieldSubPathValue { 1372 return s.FieldPath().WithIValue(value).(*Alert_FieldSubPathValue) 1373 } 1374 1375 func (s AlertPathSelectorTsInfoTimeSeriesUpperThresholdValue) WithArrayOfValues(values []float64) *Alert_FieldSubPathArrayOfValues { 1376 return s.FieldPath().WithIArrayOfValues(values).(*Alert_FieldSubPathArrayOfValues) 1377 } 1378 1379 type AlertPathSelectorTsInfoTimeSeriesUpperThresholdIsInclusive struct{} 1380 1381 func (AlertPathSelectorTsInfoTimeSeriesUpperThresholdIsInclusive) FieldPath() *Alert_FieldSubPath { 1382 return &Alert_FieldSubPath{ 1383 selector: Alert_FieldPathSelectorTsInfo, 1384 subPath: NewAlertTsInfoFieldPathBuilder().TimeSeries().UpperThreshold().IsInclusive().FieldPath(), 1385 } 1386 } 1387 1388 func (s AlertPathSelectorTsInfoTimeSeriesUpperThresholdIsInclusive) WithValue(value bool) *Alert_FieldSubPathValue { 1389 return s.FieldPath().WithIValue(value).(*Alert_FieldSubPathValue) 1390 } 1391 1392 func (s AlertPathSelectorTsInfoTimeSeriesUpperThresholdIsInclusive) WithArrayOfValues(values []bool) *Alert_FieldSubPathArrayOfValues { 1393 return s.FieldPath().WithIArrayOfValues(values).(*Alert_FieldSubPathArrayOfValues) 1394 } 1395 1396 type AlertPathSelectorTsInfoTimeSeriesLowerThreshold struct{} 1397 1398 func (AlertPathSelectorTsInfoTimeSeriesLowerThreshold) FieldPath() *Alert_FieldSubPath { 1399 return &Alert_FieldSubPath{ 1400 selector: Alert_FieldPathSelectorTsInfo, 1401 subPath: NewAlertTsInfoFieldPathBuilder().TimeSeries().LowerThreshold().FieldPath(), 1402 } 1403 } 1404 1405 func (s AlertPathSelectorTsInfoTimeSeriesLowerThreshold) WithValue(value *rcommon.AlertingThreshold) *Alert_FieldSubPathValue { 1406 return s.FieldPath().WithIValue(value).(*Alert_FieldSubPathValue) 1407 } 1408 1409 func (s AlertPathSelectorTsInfoTimeSeriesLowerThreshold) WithArrayOfValues(values []*rcommon.AlertingThreshold) *Alert_FieldSubPathArrayOfValues { 1410 return s.FieldPath().WithIArrayOfValues(values).(*Alert_FieldSubPathArrayOfValues) 1411 } 1412 1413 func (AlertPathSelectorTsInfoTimeSeriesLowerThreshold) Value() AlertPathSelectorTsInfoTimeSeriesLowerThresholdValue { 1414 return AlertPathSelectorTsInfoTimeSeriesLowerThresholdValue{} 1415 } 1416 1417 func (AlertPathSelectorTsInfoTimeSeriesLowerThreshold) IsInclusive() AlertPathSelectorTsInfoTimeSeriesLowerThresholdIsInclusive { 1418 return AlertPathSelectorTsInfoTimeSeriesLowerThresholdIsInclusive{} 1419 } 1420 1421 type AlertPathSelectorTsInfoTimeSeriesLowerThresholdValue struct{} 1422 1423 func (AlertPathSelectorTsInfoTimeSeriesLowerThresholdValue) FieldPath() *Alert_FieldSubPath { 1424 return &Alert_FieldSubPath{ 1425 selector: Alert_FieldPathSelectorTsInfo, 1426 subPath: NewAlertTsInfoFieldPathBuilder().TimeSeries().LowerThreshold().Value().FieldPath(), 1427 } 1428 } 1429 1430 func (s AlertPathSelectorTsInfoTimeSeriesLowerThresholdValue) WithValue(value float64) *Alert_FieldSubPathValue { 1431 return s.FieldPath().WithIValue(value).(*Alert_FieldSubPathValue) 1432 } 1433 1434 func (s AlertPathSelectorTsInfoTimeSeriesLowerThresholdValue) WithArrayOfValues(values []float64) *Alert_FieldSubPathArrayOfValues { 1435 return s.FieldPath().WithIArrayOfValues(values).(*Alert_FieldSubPathArrayOfValues) 1436 } 1437 1438 type AlertPathSelectorTsInfoTimeSeriesLowerThresholdIsInclusive struct{} 1439 1440 func (AlertPathSelectorTsInfoTimeSeriesLowerThresholdIsInclusive) FieldPath() *Alert_FieldSubPath { 1441 return &Alert_FieldSubPath{ 1442 selector: Alert_FieldPathSelectorTsInfo, 1443 subPath: NewAlertTsInfoFieldPathBuilder().TimeSeries().LowerThreshold().IsInclusive().FieldPath(), 1444 } 1445 } 1446 1447 func (s AlertPathSelectorTsInfoTimeSeriesLowerThresholdIsInclusive) WithValue(value bool) *Alert_FieldSubPathValue { 1448 return s.FieldPath().WithIValue(value).(*Alert_FieldSubPathValue) 1449 } 1450 1451 func (s AlertPathSelectorTsInfoTimeSeriesLowerThresholdIsInclusive) WithArrayOfValues(values []bool) *Alert_FieldSubPathArrayOfValues { 1452 return s.FieldPath().WithIArrayOfValues(values).(*Alert_FieldSubPathArrayOfValues) 1453 } 1454 1455 type AlertPathSelectorTsInfoTimeSeriesAnomalyThreshold struct{} 1456 1457 func (AlertPathSelectorTsInfoTimeSeriesAnomalyThreshold) FieldPath() *Alert_FieldSubPath { 1458 return &Alert_FieldSubPath{ 1459 selector: Alert_FieldPathSelectorTsInfo, 1460 subPath: NewAlertTsInfoFieldPathBuilder().TimeSeries().AnomalyThreshold().FieldPath(), 1461 } 1462 } 1463 1464 func (s AlertPathSelectorTsInfoTimeSeriesAnomalyThreshold) WithValue(value float64) *Alert_FieldSubPathValue { 1465 return s.FieldPath().WithIValue(value).(*Alert_FieldSubPathValue) 1466 } 1467 1468 func (s AlertPathSelectorTsInfoTimeSeriesAnomalyThreshold) WithArrayOfValues(values []float64) *Alert_FieldSubPathArrayOfValues { 1469 return s.FieldPath().WithIArrayOfValues(values).(*Alert_FieldSubPathArrayOfValues) 1470 } 1471 1472 type AlertPathSelectorTsInfoTimeSeriesAfterDuration struct{} 1473 1474 func (AlertPathSelectorTsInfoTimeSeriesAfterDuration) FieldPath() *Alert_FieldSubPath { 1475 return &Alert_FieldSubPath{ 1476 selector: Alert_FieldPathSelectorTsInfo, 1477 subPath: NewAlertTsInfoFieldPathBuilder().TimeSeries().AfterDuration().FieldPath(), 1478 } 1479 } 1480 1481 func (s AlertPathSelectorTsInfoTimeSeriesAfterDuration) WithValue(value *durationpb.Duration) *Alert_FieldSubPathValue { 1482 return s.FieldPath().WithIValue(value).(*Alert_FieldSubPathValue) 1483 } 1484 1485 func (s AlertPathSelectorTsInfoTimeSeriesAfterDuration) WithArrayOfValues(values []*durationpb.Duration) *Alert_FieldSubPathArrayOfValues { 1486 return s.FieldPath().WithIArrayOfValues(values).(*Alert_FieldSubPathArrayOfValues) 1487 } 1488 1489 type AlertPathSelectorLogInfo struct{} 1490 1491 func (AlertPathSelectorLogInfo) FieldPath() *Alert_FieldTerminalPath { 1492 return &Alert_FieldTerminalPath{selector: Alert_FieldPathSelectorLogInfo} 1493 } 1494 1495 func (s AlertPathSelectorLogInfo) WithValue(value *Alert_LogInfo) *Alert_FieldTerminalPathValue { 1496 return s.FieldPath().WithIValue(value).(*Alert_FieldTerminalPathValue) 1497 } 1498 1499 func (s AlertPathSelectorLogInfo) WithArrayOfValues(values []*Alert_LogInfo) *Alert_FieldTerminalPathArrayOfValues { 1500 return s.FieldPath().WithIArrayOfValues(values).(*Alert_FieldTerminalPathArrayOfValues) 1501 } 1502 1503 func (AlertPathSelectorLogInfo) WithSubPath(subPath AlertLogInfo_FieldPath) *Alert_FieldSubPath { 1504 return &Alert_FieldSubPath{selector: Alert_FieldPathSelectorLogInfo, subPath: subPath} 1505 } 1506 1507 func (s AlertPathSelectorLogInfo) WithSubValue(subPathValue AlertLogInfo_FieldPathValue) *Alert_FieldSubPathValue { 1508 return &Alert_FieldSubPathValue{Alert_FieldPath: s.WithSubPath(subPathValue), subPathValue: subPathValue} 1509 } 1510 1511 func (s AlertPathSelectorLogInfo) WithSubArrayOfValues(subPathArrayOfValues AlertLogInfo_FieldPathArrayOfValues) *Alert_FieldSubPathArrayOfValues { 1512 return &Alert_FieldSubPathArrayOfValues{Alert_FieldPath: s.WithSubPath(subPathArrayOfValues), subPathArrayOfValues: subPathArrayOfValues} 1513 } 1514 1515 func (s AlertPathSelectorLogInfo) WithSubArrayItemValue(subPathArrayItemValue AlertLogInfo_FieldPathArrayItemValue) *Alert_FieldSubPathArrayItemValue { 1516 return &Alert_FieldSubPathArrayItemValue{Alert_FieldPath: s.WithSubPath(subPathArrayItemValue), subPathItemValue: subPathArrayItemValue} 1517 } 1518 1519 func (AlertPathSelectorLogInfo) CommonKey() AlertPathSelectorLogInfoCommonKey { 1520 return AlertPathSelectorLogInfoCommonKey{} 1521 } 1522 1523 func (AlertPathSelectorLogInfo) LogTypes() AlertPathSelectorLogInfoLogTypes { 1524 return AlertPathSelectorLogInfoLogTypes{} 1525 } 1526 1527 func (AlertPathSelectorLogInfo) CommonLogLabels() AlertPathSelectorLogInfoCommonLogLabels { 1528 return AlertPathSelectorLogInfoCommonLogLabels{} 1529 } 1530 1531 func (AlertPathSelectorLogInfo) ViolatingLog() AlertPathSelectorLogInfoViolatingLog { 1532 return AlertPathSelectorLogInfoViolatingLog{} 1533 } 1534 1535 type AlertPathSelectorLogInfoCommonKey struct{} 1536 1537 func (AlertPathSelectorLogInfoCommonKey) FieldPath() *Alert_FieldSubPath { 1538 return &Alert_FieldSubPath{ 1539 selector: Alert_FieldPathSelectorLogInfo, 1540 subPath: NewAlertLogInfoFieldPathBuilder().CommonKey().FieldPath(), 1541 } 1542 } 1543 1544 func (s AlertPathSelectorLogInfoCommonKey) WithValue(value []byte) *Alert_FieldSubPathValue { 1545 return s.FieldPath().WithIValue(value).(*Alert_FieldSubPathValue) 1546 } 1547 1548 func (s AlertPathSelectorLogInfoCommonKey) WithArrayOfValues(values [][]byte) *Alert_FieldSubPathArrayOfValues { 1549 return s.FieldPath().WithIArrayOfValues(values).(*Alert_FieldSubPathArrayOfValues) 1550 } 1551 1552 type AlertPathSelectorLogInfoLogTypes struct{} 1553 1554 func (AlertPathSelectorLogInfoLogTypes) FieldPath() *Alert_FieldSubPath { 1555 return &Alert_FieldSubPath{ 1556 selector: Alert_FieldPathSelectorLogInfo, 1557 subPath: NewAlertLogInfoFieldPathBuilder().LogTypes().FieldPath(), 1558 } 1559 } 1560 1561 func (s AlertPathSelectorLogInfoLogTypes) WithValue(value []string) *Alert_FieldSubPathValue { 1562 return s.FieldPath().WithIValue(value).(*Alert_FieldSubPathValue) 1563 } 1564 1565 func (s AlertPathSelectorLogInfoLogTypes) WithArrayOfValues(values [][]string) *Alert_FieldSubPathArrayOfValues { 1566 return s.FieldPath().WithIArrayOfValues(values).(*Alert_FieldSubPathArrayOfValues) 1567 } 1568 1569 func (s AlertPathSelectorLogInfoLogTypes) WithItemValue(value string) *Alert_FieldSubPathArrayItemValue { 1570 return s.FieldPath().WithIArrayItemValue(value).(*Alert_FieldSubPathArrayItemValue) 1571 } 1572 1573 type AlertPathSelectorLogInfoCommonLogLabels struct{} 1574 1575 func (AlertPathSelectorLogInfoCommonLogLabels) FieldPath() *Alert_FieldSubPath { 1576 return &Alert_FieldSubPath{ 1577 selector: Alert_FieldPathSelectorLogInfo, 1578 subPath: NewAlertLogInfoFieldPathBuilder().CommonLogLabels().FieldPath(), 1579 } 1580 } 1581 1582 func (s AlertPathSelectorLogInfoCommonLogLabels) WithValue(value map[string]string) *Alert_FieldSubPathValue { 1583 return s.FieldPath().WithIValue(value).(*Alert_FieldSubPathValue) 1584 } 1585 1586 func (s AlertPathSelectorLogInfoCommonLogLabels) WithArrayOfValues(values []map[string]string) *Alert_FieldSubPathArrayOfValues { 1587 return s.FieldPath().WithIArrayOfValues(values).(*Alert_FieldSubPathArrayOfValues) 1588 } 1589 1590 func (AlertPathSelectorLogInfoCommonLogLabels) WithKey(key string) AlertMapPathSelectorLogInfoCommonLogLabels { 1591 return AlertMapPathSelectorLogInfoCommonLogLabels{key: key} 1592 } 1593 1594 type AlertMapPathSelectorLogInfoCommonLogLabels struct { 1595 key string 1596 } 1597 1598 func (s AlertMapPathSelectorLogInfoCommonLogLabels) FieldPath() *Alert_FieldSubPath { 1599 return &Alert_FieldSubPath{ 1600 selector: Alert_FieldPathSelectorLogInfo, 1601 subPath: NewAlertLogInfoFieldPathBuilder().CommonLogLabels().WithKey(s.key).FieldPath(), 1602 } 1603 } 1604 1605 func (s AlertMapPathSelectorLogInfoCommonLogLabels) WithValue(value string) *Alert_FieldSubPathValue { 1606 return s.FieldPath().WithIValue(value).(*Alert_FieldSubPathValue) 1607 } 1608 1609 func (s AlertMapPathSelectorLogInfoCommonLogLabels) WithArrayOfValues(values []string) *Alert_FieldSubPathArrayOfValues { 1610 return s.FieldPath().WithIArrayOfValues(values).(*Alert_FieldSubPathArrayOfValues) 1611 } 1612 1613 type AlertPathSelectorLogInfoViolatingLog struct{} 1614 1615 func (AlertPathSelectorLogInfoViolatingLog) FieldPath() *Alert_FieldSubPath { 1616 return &Alert_FieldSubPath{ 1617 selector: Alert_FieldPathSelectorLogInfo, 1618 subPath: NewAlertLogInfoFieldPathBuilder().ViolatingLog().FieldPath(), 1619 } 1620 } 1621 1622 func (s AlertPathSelectorLogInfoViolatingLog) WithValue(value string) *Alert_FieldSubPathValue { 1623 return s.FieldPath().WithIValue(value).(*Alert_FieldSubPathValue) 1624 } 1625 1626 func (s AlertPathSelectorLogInfoViolatingLog) WithArrayOfValues(values []string) *Alert_FieldSubPathArrayOfValues { 1627 return s.FieldPath().WithIArrayOfValues(values).(*Alert_FieldSubPathArrayOfValues) 1628 } 1629 1630 type AlertPathSelectorState struct{} 1631 1632 func (AlertPathSelectorState) FieldPath() *Alert_FieldTerminalPath { 1633 return &Alert_FieldTerminalPath{selector: Alert_FieldPathSelectorState} 1634 } 1635 1636 func (s AlertPathSelectorState) WithValue(value *Alert_State) *Alert_FieldTerminalPathValue { 1637 return s.FieldPath().WithIValue(value).(*Alert_FieldTerminalPathValue) 1638 } 1639 1640 func (s AlertPathSelectorState) WithArrayOfValues(values []*Alert_State) *Alert_FieldTerminalPathArrayOfValues { 1641 return s.FieldPath().WithIArrayOfValues(values).(*Alert_FieldTerminalPathArrayOfValues) 1642 } 1643 1644 func (AlertPathSelectorState) WithSubPath(subPath AlertState_FieldPath) *Alert_FieldSubPath { 1645 return &Alert_FieldSubPath{selector: Alert_FieldPathSelectorState, subPath: subPath} 1646 } 1647 1648 func (s AlertPathSelectorState) WithSubValue(subPathValue AlertState_FieldPathValue) *Alert_FieldSubPathValue { 1649 return &Alert_FieldSubPathValue{Alert_FieldPath: s.WithSubPath(subPathValue), subPathValue: subPathValue} 1650 } 1651 1652 func (s AlertPathSelectorState) WithSubArrayOfValues(subPathArrayOfValues AlertState_FieldPathArrayOfValues) *Alert_FieldSubPathArrayOfValues { 1653 return &Alert_FieldSubPathArrayOfValues{Alert_FieldPath: s.WithSubPath(subPathArrayOfValues), subPathArrayOfValues: subPathArrayOfValues} 1654 } 1655 1656 func (s AlertPathSelectorState) WithSubArrayItemValue(subPathArrayItemValue AlertState_FieldPathArrayItemValue) *Alert_FieldSubPathArrayItemValue { 1657 return &Alert_FieldSubPathArrayItemValue{Alert_FieldPath: s.WithSubPath(subPathArrayItemValue), subPathItemValue: subPathArrayItemValue} 1658 } 1659 1660 func (AlertPathSelectorState) IsFiring() AlertPathSelectorStateIsFiring { 1661 return AlertPathSelectorStateIsFiring{} 1662 } 1663 1664 func (AlertPathSelectorState) StartTime() AlertPathSelectorStateStartTime { 1665 return AlertPathSelectorStateStartTime{} 1666 } 1667 1668 func (AlertPathSelectorState) EndTime() AlertPathSelectorStateEndTime { 1669 return AlertPathSelectorStateEndTime{} 1670 } 1671 1672 func (AlertPathSelectorState) NotificationStatuses() AlertPathSelectorStateNotificationStatuses { 1673 return AlertPathSelectorStateNotificationStatuses{} 1674 } 1675 1676 func (AlertPathSelectorState) EscalationLevel() AlertPathSelectorStateEscalationLevel { 1677 return AlertPathSelectorStateEscalationLevel{} 1678 } 1679 1680 func (AlertPathSelectorState) AiAgentHandlingState() AlertPathSelectorStateAiAgentHandlingState { 1681 return AlertPathSelectorStateAiAgentHandlingState{} 1682 } 1683 1684 func (AlertPathSelectorState) AiAgentLastStateChangeTime() AlertPathSelectorStateAiAgentLastStateChangeTime { 1685 return AlertPathSelectorStateAiAgentLastStateChangeTime{} 1686 } 1687 1688 func (AlertPathSelectorState) AiAgentDiagnosisNotes() AlertPathSelectorStateAiAgentDiagnosisNotes { 1689 return AlertPathSelectorStateAiAgentDiagnosisNotes{} 1690 } 1691 1692 func (AlertPathSelectorState) AiRemediationArg() AlertPathSelectorStateAiRemediationArg { 1693 return AlertPathSelectorStateAiRemediationArg{} 1694 } 1695 1696 func (AlertPathSelectorState) AiRemediation() AlertPathSelectorStateAiRemediation { 1697 return AlertPathSelectorStateAiRemediation{} 1698 } 1699 1700 func (AlertPathSelectorState) OperatorHandlingState() AlertPathSelectorStateOperatorHandlingState { 1701 return AlertPathSelectorStateOperatorHandlingState{} 1702 } 1703 1704 func (AlertPathSelectorState) OperatorLastStateChangeTime() AlertPathSelectorStateOperatorLastStateChangeTime { 1705 return AlertPathSelectorStateOperatorLastStateChangeTime{} 1706 } 1707 1708 func (AlertPathSelectorState) OperatorNotes() AlertPathSelectorStateOperatorNotes { 1709 return AlertPathSelectorStateOperatorNotes{} 1710 } 1711 1712 func (AlertPathSelectorState) LifecycleCompleted() AlertPathSelectorStateLifecycleCompleted { 1713 return AlertPathSelectorStateLifecycleCompleted{} 1714 } 1715 1716 type AlertPathSelectorStateIsFiring struct{} 1717 1718 func (AlertPathSelectorStateIsFiring) FieldPath() *Alert_FieldSubPath { 1719 return &Alert_FieldSubPath{ 1720 selector: Alert_FieldPathSelectorState, 1721 subPath: NewAlertStateFieldPathBuilder().IsFiring().FieldPath(), 1722 } 1723 } 1724 1725 func (s AlertPathSelectorStateIsFiring) WithValue(value bool) *Alert_FieldSubPathValue { 1726 return s.FieldPath().WithIValue(value).(*Alert_FieldSubPathValue) 1727 } 1728 1729 func (s AlertPathSelectorStateIsFiring) WithArrayOfValues(values []bool) *Alert_FieldSubPathArrayOfValues { 1730 return s.FieldPath().WithIArrayOfValues(values).(*Alert_FieldSubPathArrayOfValues) 1731 } 1732 1733 type AlertPathSelectorStateStartTime struct{} 1734 1735 func (AlertPathSelectorStateStartTime) FieldPath() *Alert_FieldSubPath { 1736 return &Alert_FieldSubPath{ 1737 selector: Alert_FieldPathSelectorState, 1738 subPath: NewAlertStateFieldPathBuilder().StartTime().FieldPath(), 1739 } 1740 } 1741 1742 func (s AlertPathSelectorStateStartTime) WithValue(value *timestamppb.Timestamp) *Alert_FieldSubPathValue { 1743 return s.FieldPath().WithIValue(value).(*Alert_FieldSubPathValue) 1744 } 1745 1746 func (s AlertPathSelectorStateStartTime) WithArrayOfValues(values []*timestamppb.Timestamp) *Alert_FieldSubPathArrayOfValues { 1747 return s.FieldPath().WithIArrayOfValues(values).(*Alert_FieldSubPathArrayOfValues) 1748 } 1749 1750 type AlertPathSelectorStateEndTime struct{} 1751 1752 func (AlertPathSelectorStateEndTime) FieldPath() *Alert_FieldSubPath { 1753 return &Alert_FieldSubPath{ 1754 selector: Alert_FieldPathSelectorState, 1755 subPath: NewAlertStateFieldPathBuilder().EndTime().FieldPath(), 1756 } 1757 } 1758 1759 func (s AlertPathSelectorStateEndTime) WithValue(value *timestamppb.Timestamp) *Alert_FieldSubPathValue { 1760 return s.FieldPath().WithIValue(value).(*Alert_FieldSubPathValue) 1761 } 1762 1763 func (s AlertPathSelectorStateEndTime) WithArrayOfValues(values []*timestamppb.Timestamp) *Alert_FieldSubPathArrayOfValues { 1764 return s.FieldPath().WithIArrayOfValues(values).(*Alert_FieldSubPathArrayOfValues) 1765 } 1766 1767 type AlertPathSelectorStateNotificationStatuses struct{} 1768 1769 func (AlertPathSelectorStateNotificationStatuses) FieldPath() *Alert_FieldSubPath { 1770 return &Alert_FieldSubPath{ 1771 selector: Alert_FieldPathSelectorState, 1772 subPath: NewAlertStateFieldPathBuilder().NotificationStatuses().FieldPath(), 1773 } 1774 } 1775 1776 func (s AlertPathSelectorStateNotificationStatuses) WithValue(value []*Alert_State_Notification) *Alert_FieldSubPathValue { 1777 return s.FieldPath().WithIValue(value).(*Alert_FieldSubPathValue) 1778 } 1779 1780 func (s AlertPathSelectorStateNotificationStatuses) WithArrayOfValues(values [][]*Alert_State_Notification) *Alert_FieldSubPathArrayOfValues { 1781 return s.FieldPath().WithIArrayOfValues(values).(*Alert_FieldSubPathArrayOfValues) 1782 } 1783 1784 func (s AlertPathSelectorStateNotificationStatuses) WithItemValue(value *Alert_State_Notification) *Alert_FieldSubPathArrayItemValue { 1785 return s.FieldPath().WithIArrayItemValue(value).(*Alert_FieldSubPathArrayItemValue) 1786 } 1787 1788 func (AlertPathSelectorStateNotificationStatuses) Kind() AlertPathSelectorStateNotificationStatusesKind { 1789 return AlertPathSelectorStateNotificationStatusesKind{} 1790 } 1791 1792 func (AlertPathSelectorStateNotificationStatuses) PendingChannels() AlertPathSelectorStateNotificationStatusesPendingChannels { 1793 return AlertPathSelectorStateNotificationStatusesPendingChannels{} 1794 } 1795 1796 type AlertPathSelectorStateNotificationStatusesKind struct{} 1797 1798 func (AlertPathSelectorStateNotificationStatusesKind) FieldPath() *Alert_FieldSubPath { 1799 return &Alert_FieldSubPath{ 1800 selector: Alert_FieldPathSelectorState, 1801 subPath: NewAlertStateFieldPathBuilder().NotificationStatuses().Kind().FieldPath(), 1802 } 1803 } 1804 1805 func (s AlertPathSelectorStateNotificationStatusesKind) WithValue(value rcommon.NotificationChannelSpec_EventKind) *Alert_FieldSubPathValue { 1806 return s.FieldPath().WithIValue(value).(*Alert_FieldSubPathValue) 1807 } 1808 1809 func (s AlertPathSelectorStateNotificationStatusesKind) WithArrayOfValues(values []rcommon.NotificationChannelSpec_EventKind) *Alert_FieldSubPathArrayOfValues { 1810 return s.FieldPath().WithIArrayOfValues(values).(*Alert_FieldSubPathArrayOfValues) 1811 } 1812 1813 type AlertPathSelectorStateNotificationStatusesPendingChannels struct{} 1814 1815 func (AlertPathSelectorStateNotificationStatusesPendingChannels) FieldPath() *Alert_FieldSubPath { 1816 return &Alert_FieldSubPath{ 1817 selector: Alert_FieldPathSelectorState, 1818 subPath: NewAlertStateFieldPathBuilder().NotificationStatuses().PendingChannels().FieldPath(), 1819 } 1820 } 1821 1822 func (s AlertPathSelectorStateNotificationStatusesPendingChannels) WithValue(value []*notification_channel.Reference) *Alert_FieldSubPathValue { 1823 return s.FieldPath().WithIValue(value).(*Alert_FieldSubPathValue) 1824 } 1825 1826 func (s AlertPathSelectorStateNotificationStatusesPendingChannels) WithArrayOfValues(values [][]*notification_channel.Reference) *Alert_FieldSubPathArrayOfValues { 1827 return s.FieldPath().WithIArrayOfValues(values).(*Alert_FieldSubPathArrayOfValues) 1828 } 1829 1830 func (s AlertPathSelectorStateNotificationStatusesPendingChannels) WithItemValue(value *notification_channel.Reference) *Alert_FieldSubPathArrayItemValue { 1831 return s.FieldPath().WithIArrayItemValue(value).(*Alert_FieldSubPathArrayItemValue) 1832 } 1833 1834 type AlertPathSelectorStateEscalationLevel struct{} 1835 1836 func (AlertPathSelectorStateEscalationLevel) FieldPath() *Alert_FieldSubPath { 1837 return &Alert_FieldSubPath{ 1838 selector: Alert_FieldPathSelectorState, 1839 subPath: NewAlertStateFieldPathBuilder().EscalationLevel().FieldPath(), 1840 } 1841 } 1842 1843 func (s AlertPathSelectorStateEscalationLevel) WithValue(value Alert_State_EscalationLevel) *Alert_FieldSubPathValue { 1844 return s.FieldPath().WithIValue(value).(*Alert_FieldSubPathValue) 1845 } 1846 1847 func (s AlertPathSelectorStateEscalationLevel) WithArrayOfValues(values []Alert_State_EscalationLevel) *Alert_FieldSubPathArrayOfValues { 1848 return s.FieldPath().WithIArrayOfValues(values).(*Alert_FieldSubPathArrayOfValues) 1849 } 1850 1851 type AlertPathSelectorStateAiAgentHandlingState struct{} 1852 1853 func (AlertPathSelectorStateAiAgentHandlingState) FieldPath() *Alert_FieldSubPath { 1854 return &Alert_FieldSubPath{ 1855 selector: Alert_FieldPathSelectorState, 1856 subPath: NewAlertStateFieldPathBuilder().AiAgentHandlingState().FieldPath(), 1857 } 1858 } 1859 1860 func (s AlertPathSelectorStateAiAgentHandlingState) WithValue(value Alert_State_AiHandlingState) *Alert_FieldSubPathValue { 1861 return s.FieldPath().WithIValue(value).(*Alert_FieldSubPathValue) 1862 } 1863 1864 func (s AlertPathSelectorStateAiAgentHandlingState) WithArrayOfValues(values []Alert_State_AiHandlingState) *Alert_FieldSubPathArrayOfValues { 1865 return s.FieldPath().WithIArrayOfValues(values).(*Alert_FieldSubPathArrayOfValues) 1866 } 1867 1868 type AlertPathSelectorStateAiAgentLastStateChangeTime struct{} 1869 1870 func (AlertPathSelectorStateAiAgentLastStateChangeTime) FieldPath() *Alert_FieldSubPath { 1871 return &Alert_FieldSubPath{ 1872 selector: Alert_FieldPathSelectorState, 1873 subPath: NewAlertStateFieldPathBuilder().AiAgentLastStateChangeTime().FieldPath(), 1874 } 1875 } 1876 1877 func (s AlertPathSelectorStateAiAgentLastStateChangeTime) WithValue(value *timestamppb.Timestamp) *Alert_FieldSubPathValue { 1878 return s.FieldPath().WithIValue(value).(*Alert_FieldSubPathValue) 1879 } 1880 1881 func (s AlertPathSelectorStateAiAgentLastStateChangeTime) WithArrayOfValues(values []*timestamppb.Timestamp) *Alert_FieldSubPathArrayOfValues { 1882 return s.FieldPath().WithIArrayOfValues(values).(*Alert_FieldSubPathArrayOfValues) 1883 } 1884 1885 type AlertPathSelectorStateAiAgentDiagnosisNotes struct{} 1886 1887 func (AlertPathSelectorStateAiAgentDiagnosisNotes) FieldPath() *Alert_FieldSubPath { 1888 return &Alert_FieldSubPath{ 1889 selector: Alert_FieldPathSelectorState, 1890 subPath: NewAlertStateFieldPathBuilder().AiAgentDiagnosisNotes().FieldPath(), 1891 } 1892 } 1893 1894 func (s AlertPathSelectorStateAiAgentDiagnosisNotes) WithValue(value string) *Alert_FieldSubPathValue { 1895 return s.FieldPath().WithIValue(value).(*Alert_FieldSubPathValue) 1896 } 1897 1898 func (s AlertPathSelectorStateAiAgentDiagnosisNotes) WithArrayOfValues(values []string) *Alert_FieldSubPathArrayOfValues { 1899 return s.FieldPath().WithIArrayOfValues(values).(*Alert_FieldSubPathArrayOfValues) 1900 } 1901 1902 type AlertPathSelectorStateAiRemediationArg struct{} 1903 1904 func (AlertPathSelectorStateAiRemediationArg) FieldPath() *Alert_FieldSubPath { 1905 return &Alert_FieldSubPath{ 1906 selector: Alert_FieldPathSelectorState, 1907 subPath: NewAlertStateFieldPathBuilder().AiRemediationArg().FieldPath(), 1908 } 1909 } 1910 1911 func (s AlertPathSelectorStateAiRemediationArg) WithValue(value string) *Alert_FieldSubPathValue { 1912 return s.FieldPath().WithIValue(value).(*Alert_FieldSubPathValue) 1913 } 1914 1915 func (s AlertPathSelectorStateAiRemediationArg) WithArrayOfValues(values []string) *Alert_FieldSubPathArrayOfValues { 1916 return s.FieldPath().WithIArrayOfValues(values).(*Alert_FieldSubPathArrayOfValues) 1917 } 1918 1919 type AlertPathSelectorStateAiRemediation struct{} 1920 1921 func (AlertPathSelectorStateAiRemediation) FieldPath() *Alert_FieldSubPath { 1922 return &Alert_FieldSubPath{ 1923 selector: Alert_FieldPathSelectorState, 1924 subPath: NewAlertStateFieldPathBuilder().AiRemediation().FieldPath(), 1925 } 1926 } 1927 1928 func (s AlertPathSelectorStateAiRemediation) WithValue(value *rcommon.PolicySpec_AIAgentHandling_Remediation) *Alert_FieldSubPathValue { 1929 return s.FieldPath().WithIValue(value).(*Alert_FieldSubPathValue) 1930 } 1931 1932 func (s AlertPathSelectorStateAiRemediation) WithArrayOfValues(values []*rcommon.PolicySpec_AIAgentHandling_Remediation) *Alert_FieldSubPathArrayOfValues { 1933 return s.FieldPath().WithIArrayOfValues(values).(*Alert_FieldSubPathArrayOfValues) 1934 } 1935 1936 func (AlertPathSelectorStateAiRemediation) FixInSsh() AlertPathSelectorStateAiRemediationFixInSsh { 1937 return AlertPathSelectorStateAiRemediationFixInSsh{} 1938 } 1939 1940 func (AlertPathSelectorStateAiRemediation) Reboot() AlertPathSelectorStateAiRemediationReboot { 1941 return AlertPathSelectorStateAiRemediationReboot{} 1942 } 1943 1944 type AlertPathSelectorStateAiRemediationFixInSsh struct{} 1945 1946 func (AlertPathSelectorStateAiRemediationFixInSsh) FieldPath() *Alert_FieldSubPath { 1947 return &Alert_FieldSubPath{ 1948 selector: Alert_FieldPathSelectorState, 1949 subPath: NewAlertStateFieldPathBuilder().AiRemediation().FixInSsh().FieldPath(), 1950 } 1951 } 1952 1953 func (s AlertPathSelectorStateAiRemediationFixInSsh) WithValue(value *rcommon.PolicySpec_AIAgentHandling_Remediation_FixInSSH) *Alert_FieldSubPathValue { 1954 return s.FieldPath().WithIValue(value).(*Alert_FieldSubPathValue) 1955 } 1956 1957 func (s AlertPathSelectorStateAiRemediationFixInSsh) WithArrayOfValues(values []*rcommon.PolicySpec_AIAgentHandling_Remediation_FixInSSH) *Alert_FieldSubPathArrayOfValues { 1958 return s.FieldPath().WithIArrayOfValues(values).(*Alert_FieldSubPathArrayOfValues) 1959 } 1960 1961 type AlertPathSelectorStateAiRemediationReboot struct{} 1962 1963 func (AlertPathSelectorStateAiRemediationReboot) FieldPath() *Alert_FieldSubPath { 1964 return &Alert_FieldSubPath{ 1965 selector: Alert_FieldPathSelectorState, 1966 subPath: NewAlertStateFieldPathBuilder().AiRemediation().Reboot().FieldPath(), 1967 } 1968 } 1969 1970 func (s AlertPathSelectorStateAiRemediationReboot) WithValue(value *rcommon.PolicySpec_AIAgentHandling_Remediation_Reboot) *Alert_FieldSubPathValue { 1971 return s.FieldPath().WithIValue(value).(*Alert_FieldSubPathValue) 1972 } 1973 1974 func (s AlertPathSelectorStateAiRemediationReboot) WithArrayOfValues(values []*rcommon.PolicySpec_AIAgentHandling_Remediation_Reboot) *Alert_FieldSubPathArrayOfValues { 1975 return s.FieldPath().WithIArrayOfValues(values).(*Alert_FieldSubPathArrayOfValues) 1976 } 1977 1978 type AlertPathSelectorStateOperatorHandlingState struct{} 1979 1980 func (AlertPathSelectorStateOperatorHandlingState) FieldPath() *Alert_FieldSubPath { 1981 return &Alert_FieldSubPath{ 1982 selector: Alert_FieldPathSelectorState, 1983 subPath: NewAlertStateFieldPathBuilder().OperatorHandlingState().FieldPath(), 1984 } 1985 } 1986 1987 func (s AlertPathSelectorStateOperatorHandlingState) WithValue(value Alert_State_OperatorHandlingState) *Alert_FieldSubPathValue { 1988 return s.FieldPath().WithIValue(value).(*Alert_FieldSubPathValue) 1989 } 1990 1991 func (s AlertPathSelectorStateOperatorHandlingState) WithArrayOfValues(values []Alert_State_OperatorHandlingState) *Alert_FieldSubPathArrayOfValues { 1992 return s.FieldPath().WithIArrayOfValues(values).(*Alert_FieldSubPathArrayOfValues) 1993 } 1994 1995 type AlertPathSelectorStateOperatorLastStateChangeTime struct{} 1996 1997 func (AlertPathSelectorStateOperatorLastStateChangeTime) FieldPath() *Alert_FieldSubPath { 1998 return &Alert_FieldSubPath{ 1999 selector: Alert_FieldPathSelectorState, 2000 subPath: NewAlertStateFieldPathBuilder().OperatorLastStateChangeTime().FieldPath(), 2001 } 2002 } 2003 2004 func (s AlertPathSelectorStateOperatorLastStateChangeTime) WithValue(value *timestamppb.Timestamp) *Alert_FieldSubPathValue { 2005 return s.FieldPath().WithIValue(value).(*Alert_FieldSubPathValue) 2006 } 2007 2008 func (s AlertPathSelectorStateOperatorLastStateChangeTime) WithArrayOfValues(values []*timestamppb.Timestamp) *Alert_FieldSubPathArrayOfValues { 2009 return s.FieldPath().WithIArrayOfValues(values).(*Alert_FieldSubPathArrayOfValues) 2010 } 2011 2012 type AlertPathSelectorStateOperatorNotes struct{} 2013 2014 func (AlertPathSelectorStateOperatorNotes) FieldPath() *Alert_FieldSubPath { 2015 return &Alert_FieldSubPath{ 2016 selector: Alert_FieldPathSelectorState, 2017 subPath: NewAlertStateFieldPathBuilder().OperatorNotes().FieldPath(), 2018 } 2019 } 2020 2021 func (s AlertPathSelectorStateOperatorNotes) WithValue(value string) *Alert_FieldSubPathValue { 2022 return s.FieldPath().WithIValue(value).(*Alert_FieldSubPathValue) 2023 } 2024 2025 func (s AlertPathSelectorStateOperatorNotes) WithArrayOfValues(values []string) *Alert_FieldSubPathArrayOfValues { 2026 return s.FieldPath().WithIArrayOfValues(values).(*Alert_FieldSubPathArrayOfValues) 2027 } 2028 2029 type AlertPathSelectorStateLifecycleCompleted struct{} 2030 2031 func (AlertPathSelectorStateLifecycleCompleted) FieldPath() *Alert_FieldSubPath { 2032 return &Alert_FieldSubPath{ 2033 selector: Alert_FieldPathSelectorState, 2034 subPath: NewAlertStateFieldPathBuilder().LifecycleCompleted().FieldPath(), 2035 } 2036 } 2037 2038 func (s AlertPathSelectorStateLifecycleCompleted) WithValue(value bool) *Alert_FieldSubPathValue { 2039 return s.FieldPath().WithIValue(value).(*Alert_FieldSubPathValue) 2040 } 2041 2042 func (s AlertPathSelectorStateLifecycleCompleted) WithArrayOfValues(values []bool) *Alert_FieldSubPathArrayOfValues { 2043 return s.FieldPath().WithIArrayOfValues(values).(*Alert_FieldSubPathArrayOfValues) 2044 } 2045 2046 type AlertPathSelectorInternal struct{} 2047 2048 func (AlertPathSelectorInternal) FieldPath() *Alert_FieldTerminalPath { 2049 return &Alert_FieldTerminalPath{selector: Alert_FieldPathSelectorInternal} 2050 } 2051 2052 func (s AlertPathSelectorInternal) WithValue(value *Alert_Internal) *Alert_FieldTerminalPathValue { 2053 return s.FieldPath().WithIValue(value).(*Alert_FieldTerminalPathValue) 2054 } 2055 2056 func (s AlertPathSelectorInternal) WithArrayOfValues(values []*Alert_Internal) *Alert_FieldTerminalPathArrayOfValues { 2057 return s.FieldPath().WithIArrayOfValues(values).(*Alert_FieldTerminalPathArrayOfValues) 2058 } 2059 2060 func (AlertPathSelectorInternal) WithSubPath(subPath AlertInternal_FieldPath) *Alert_FieldSubPath { 2061 return &Alert_FieldSubPath{selector: Alert_FieldPathSelectorInternal, subPath: subPath} 2062 } 2063 2064 func (s AlertPathSelectorInternal) WithSubValue(subPathValue AlertInternal_FieldPathValue) *Alert_FieldSubPathValue { 2065 return &Alert_FieldSubPathValue{Alert_FieldPath: s.WithSubPath(subPathValue), subPathValue: subPathValue} 2066 } 2067 2068 func (s AlertPathSelectorInternal) WithSubArrayOfValues(subPathArrayOfValues AlertInternal_FieldPathArrayOfValues) *Alert_FieldSubPathArrayOfValues { 2069 return &Alert_FieldSubPathArrayOfValues{Alert_FieldPath: s.WithSubPath(subPathArrayOfValues), subPathArrayOfValues: subPathArrayOfValues} 2070 } 2071 2072 func (s AlertPathSelectorInternal) WithSubArrayItemValue(subPathArrayItemValue AlertInternal_FieldPathArrayItemValue) *Alert_FieldSubPathArrayItemValue { 2073 return &Alert_FieldSubPathArrayItemValue{Alert_FieldPath: s.WithSubPath(subPathArrayItemValue), subPathItemValue: subPathArrayItemValue} 2074 } 2075 2076 func (AlertPathSelectorInternal) AlertingLocation() AlertPathSelectorInternalAlertingLocation { 2077 return AlertPathSelectorInternalAlertingLocation{} 2078 } 2079 2080 type AlertPathSelectorInternalAlertingLocation struct{} 2081 2082 func (AlertPathSelectorInternalAlertingLocation) FieldPath() *Alert_FieldSubPath { 2083 return &Alert_FieldSubPath{ 2084 selector: Alert_FieldPathSelectorInternal, 2085 subPath: NewAlertInternalFieldPathBuilder().AlertingLocation().FieldPath(), 2086 } 2087 } 2088 2089 func (s AlertPathSelectorInternalAlertingLocation) WithValue(value rcommon.PolicySpec_ProcessingLocation) *Alert_FieldSubPathValue { 2090 return s.FieldPath().WithIValue(value).(*Alert_FieldSubPathValue) 2091 } 2092 2093 func (s AlertPathSelectorInternalAlertingLocation) WithArrayOfValues(values []rcommon.PolicySpec_ProcessingLocation) *Alert_FieldSubPathArrayOfValues { 2094 return s.FieldPath().WithIArrayOfValues(values).(*Alert_FieldSubPathArrayOfValues) 2095 } 2096 2097 type AlertTsInfoFieldPathBuilder struct{} 2098 2099 func NewAlertTsInfoFieldPathBuilder() AlertTsInfoFieldPathBuilder { 2100 return AlertTsInfoFieldPathBuilder{} 2101 } 2102 func (AlertTsInfoFieldPathBuilder) Type() Alert_TsInfoPathSelectorType { 2103 return Alert_TsInfoPathSelectorType{} 2104 } 2105 func (AlertTsInfoFieldPathBuilder) AnomalyWindowSize() Alert_TsInfoPathSelectorAnomalyWindowSize { 2106 return Alert_TsInfoPathSelectorAnomalyWindowSize{} 2107 } 2108 func (AlertTsInfoFieldPathBuilder) CommonKey() Alert_TsInfoPathSelectorCommonKey { 2109 return Alert_TsInfoPathSelectorCommonKey{} 2110 } 2111 func (AlertTsInfoFieldPathBuilder) MetricTypes() Alert_TsInfoPathSelectorMetricTypes { 2112 return Alert_TsInfoPathSelectorMetricTypes{} 2113 } 2114 func (AlertTsInfoFieldPathBuilder) ResourceTypes() Alert_TsInfoPathSelectorResourceTypes { 2115 return Alert_TsInfoPathSelectorResourceTypes{} 2116 } 2117 func (AlertTsInfoFieldPathBuilder) CommonMetricLabels() Alert_TsInfoPathSelectorCommonMetricLabels { 2118 return Alert_TsInfoPathSelectorCommonMetricLabels{} 2119 } 2120 func (AlertTsInfoFieldPathBuilder) CommonResourceLabels() Alert_TsInfoPathSelectorCommonResourceLabels { 2121 return Alert_TsInfoPathSelectorCommonResourceLabels{} 2122 } 2123 func (AlertTsInfoFieldPathBuilder) TimeSeries() Alert_TsInfoPathSelectorTimeSeries { 2124 return Alert_TsInfoPathSelectorTimeSeries{} 2125 } 2126 2127 type Alert_TsInfoPathSelectorType struct{} 2128 2129 func (Alert_TsInfoPathSelectorType) FieldPath() *AlertTsInfo_FieldTerminalPath { 2130 return &AlertTsInfo_FieldTerminalPath{selector: AlertTsInfo_FieldPathSelectorType} 2131 } 2132 2133 func (s Alert_TsInfoPathSelectorType) WithValue(value Alert_TsInfo_Type) *AlertTsInfo_FieldTerminalPathValue { 2134 return s.FieldPath().WithIValue(value).(*AlertTsInfo_FieldTerminalPathValue) 2135 } 2136 2137 func (s Alert_TsInfoPathSelectorType) WithArrayOfValues(values []Alert_TsInfo_Type) *AlertTsInfo_FieldTerminalPathArrayOfValues { 2138 return s.FieldPath().WithIArrayOfValues(values).(*AlertTsInfo_FieldTerminalPathArrayOfValues) 2139 } 2140 2141 type Alert_TsInfoPathSelectorAnomalyWindowSize struct{} 2142 2143 func (Alert_TsInfoPathSelectorAnomalyWindowSize) FieldPath() *AlertTsInfo_FieldTerminalPath { 2144 return &AlertTsInfo_FieldTerminalPath{selector: AlertTsInfo_FieldPathSelectorAnomalyWindowSize} 2145 } 2146 2147 func (s Alert_TsInfoPathSelectorAnomalyWindowSize) WithValue(value *durationpb.Duration) *AlertTsInfo_FieldTerminalPathValue { 2148 return s.FieldPath().WithIValue(value).(*AlertTsInfo_FieldTerminalPathValue) 2149 } 2150 2151 func (s Alert_TsInfoPathSelectorAnomalyWindowSize) WithArrayOfValues(values []*durationpb.Duration) *AlertTsInfo_FieldTerminalPathArrayOfValues { 2152 return s.FieldPath().WithIArrayOfValues(values).(*AlertTsInfo_FieldTerminalPathArrayOfValues) 2153 } 2154 2155 type Alert_TsInfoPathSelectorCommonKey struct{} 2156 2157 func (Alert_TsInfoPathSelectorCommonKey) FieldPath() *AlertTsInfo_FieldTerminalPath { 2158 return &AlertTsInfo_FieldTerminalPath{selector: AlertTsInfo_FieldPathSelectorCommonKey} 2159 } 2160 2161 func (s Alert_TsInfoPathSelectorCommonKey) WithValue(value []byte) *AlertTsInfo_FieldTerminalPathValue { 2162 return s.FieldPath().WithIValue(value).(*AlertTsInfo_FieldTerminalPathValue) 2163 } 2164 2165 func (s Alert_TsInfoPathSelectorCommonKey) WithArrayOfValues(values [][]byte) *AlertTsInfo_FieldTerminalPathArrayOfValues { 2166 return s.FieldPath().WithIArrayOfValues(values).(*AlertTsInfo_FieldTerminalPathArrayOfValues) 2167 } 2168 2169 type Alert_TsInfoPathSelectorMetricTypes struct{} 2170 2171 func (Alert_TsInfoPathSelectorMetricTypes) FieldPath() *AlertTsInfo_FieldTerminalPath { 2172 return &AlertTsInfo_FieldTerminalPath{selector: AlertTsInfo_FieldPathSelectorMetricTypes} 2173 } 2174 2175 func (s Alert_TsInfoPathSelectorMetricTypes) WithValue(value []string) *AlertTsInfo_FieldTerminalPathValue { 2176 return s.FieldPath().WithIValue(value).(*AlertTsInfo_FieldTerminalPathValue) 2177 } 2178 2179 func (s Alert_TsInfoPathSelectorMetricTypes) WithArrayOfValues(values [][]string) *AlertTsInfo_FieldTerminalPathArrayOfValues { 2180 return s.FieldPath().WithIArrayOfValues(values).(*AlertTsInfo_FieldTerminalPathArrayOfValues) 2181 } 2182 2183 func (s Alert_TsInfoPathSelectorMetricTypes) WithItemValue(value string) *AlertTsInfo_FieldTerminalPathArrayItemValue { 2184 return s.FieldPath().WithIArrayItemValue(value).(*AlertTsInfo_FieldTerminalPathArrayItemValue) 2185 } 2186 2187 type Alert_TsInfoPathSelectorResourceTypes struct{} 2188 2189 func (Alert_TsInfoPathSelectorResourceTypes) FieldPath() *AlertTsInfo_FieldTerminalPath { 2190 return &AlertTsInfo_FieldTerminalPath{selector: AlertTsInfo_FieldPathSelectorResourceTypes} 2191 } 2192 2193 func (s Alert_TsInfoPathSelectorResourceTypes) WithValue(value []string) *AlertTsInfo_FieldTerminalPathValue { 2194 return s.FieldPath().WithIValue(value).(*AlertTsInfo_FieldTerminalPathValue) 2195 } 2196 2197 func (s Alert_TsInfoPathSelectorResourceTypes) WithArrayOfValues(values [][]string) *AlertTsInfo_FieldTerminalPathArrayOfValues { 2198 return s.FieldPath().WithIArrayOfValues(values).(*AlertTsInfo_FieldTerminalPathArrayOfValues) 2199 } 2200 2201 func (s Alert_TsInfoPathSelectorResourceTypes) WithItemValue(value string) *AlertTsInfo_FieldTerminalPathArrayItemValue { 2202 return s.FieldPath().WithIArrayItemValue(value).(*AlertTsInfo_FieldTerminalPathArrayItemValue) 2203 } 2204 2205 type Alert_TsInfoPathSelectorCommonMetricLabels struct{} 2206 2207 func (Alert_TsInfoPathSelectorCommonMetricLabels) FieldPath() *AlertTsInfo_FieldTerminalPath { 2208 return &AlertTsInfo_FieldTerminalPath{selector: AlertTsInfo_FieldPathSelectorCommonMetricLabels} 2209 } 2210 2211 func (s Alert_TsInfoPathSelectorCommonMetricLabels) WithValue(value map[string]string) *AlertTsInfo_FieldTerminalPathValue { 2212 return s.FieldPath().WithIValue(value).(*AlertTsInfo_FieldTerminalPathValue) 2213 } 2214 2215 func (s Alert_TsInfoPathSelectorCommonMetricLabels) WithArrayOfValues(values []map[string]string) *AlertTsInfo_FieldTerminalPathArrayOfValues { 2216 return s.FieldPath().WithIArrayOfValues(values).(*AlertTsInfo_FieldTerminalPathArrayOfValues) 2217 } 2218 2219 func (Alert_TsInfoPathSelectorCommonMetricLabels) WithKey(key string) Alert_TsInfoMapPathSelectorCommonMetricLabels { 2220 return Alert_TsInfoMapPathSelectorCommonMetricLabels{key: key} 2221 } 2222 2223 type Alert_TsInfoMapPathSelectorCommonMetricLabels struct { 2224 key string 2225 } 2226 2227 func (s Alert_TsInfoMapPathSelectorCommonMetricLabels) FieldPath() *AlertTsInfo_FieldPathMap { 2228 return &AlertTsInfo_FieldPathMap{selector: AlertTsInfo_FieldPathSelectorCommonMetricLabels, key: s.key} 2229 } 2230 2231 func (s Alert_TsInfoMapPathSelectorCommonMetricLabels) WithValue(value string) *AlertTsInfo_FieldPathMapValue { 2232 return s.FieldPath().WithIValue(value).(*AlertTsInfo_FieldPathMapValue) 2233 } 2234 2235 func (s Alert_TsInfoMapPathSelectorCommonMetricLabels) WithArrayOfValues(values []string) *AlertTsInfo_FieldPathMapArrayOfValues { 2236 return s.FieldPath().WithIArrayOfValues(values).(*AlertTsInfo_FieldPathMapArrayOfValues) 2237 } 2238 2239 type Alert_TsInfoPathSelectorCommonResourceLabels struct{} 2240 2241 func (Alert_TsInfoPathSelectorCommonResourceLabels) FieldPath() *AlertTsInfo_FieldTerminalPath { 2242 return &AlertTsInfo_FieldTerminalPath{selector: AlertTsInfo_FieldPathSelectorCommonResourceLabels} 2243 } 2244 2245 func (s Alert_TsInfoPathSelectorCommonResourceLabels) WithValue(value map[string]string) *AlertTsInfo_FieldTerminalPathValue { 2246 return s.FieldPath().WithIValue(value).(*AlertTsInfo_FieldTerminalPathValue) 2247 } 2248 2249 func (s Alert_TsInfoPathSelectorCommonResourceLabels) WithArrayOfValues(values []map[string]string) *AlertTsInfo_FieldTerminalPathArrayOfValues { 2250 return s.FieldPath().WithIArrayOfValues(values).(*AlertTsInfo_FieldTerminalPathArrayOfValues) 2251 } 2252 2253 func (Alert_TsInfoPathSelectorCommonResourceLabels) WithKey(key string) Alert_TsInfoMapPathSelectorCommonResourceLabels { 2254 return Alert_TsInfoMapPathSelectorCommonResourceLabels{key: key} 2255 } 2256 2257 type Alert_TsInfoMapPathSelectorCommonResourceLabels struct { 2258 key string 2259 } 2260 2261 func (s Alert_TsInfoMapPathSelectorCommonResourceLabels) FieldPath() *AlertTsInfo_FieldPathMap { 2262 return &AlertTsInfo_FieldPathMap{selector: AlertTsInfo_FieldPathSelectorCommonResourceLabels, key: s.key} 2263 } 2264 2265 func (s Alert_TsInfoMapPathSelectorCommonResourceLabels) WithValue(value string) *AlertTsInfo_FieldPathMapValue { 2266 return s.FieldPath().WithIValue(value).(*AlertTsInfo_FieldPathMapValue) 2267 } 2268 2269 func (s Alert_TsInfoMapPathSelectorCommonResourceLabels) WithArrayOfValues(values []string) *AlertTsInfo_FieldPathMapArrayOfValues { 2270 return s.FieldPath().WithIArrayOfValues(values).(*AlertTsInfo_FieldPathMapArrayOfValues) 2271 } 2272 2273 type Alert_TsInfoPathSelectorTimeSeries struct{} 2274 2275 func (Alert_TsInfoPathSelectorTimeSeries) FieldPath() *AlertTsInfo_FieldTerminalPath { 2276 return &AlertTsInfo_FieldTerminalPath{selector: AlertTsInfo_FieldPathSelectorTimeSeries} 2277 } 2278 2279 func (s Alert_TsInfoPathSelectorTimeSeries) WithValue(value []*Alert_TsInfo_TimeSeries) *AlertTsInfo_FieldTerminalPathValue { 2280 return s.FieldPath().WithIValue(value).(*AlertTsInfo_FieldTerminalPathValue) 2281 } 2282 2283 func (s Alert_TsInfoPathSelectorTimeSeries) WithArrayOfValues(values [][]*Alert_TsInfo_TimeSeries) *AlertTsInfo_FieldTerminalPathArrayOfValues { 2284 return s.FieldPath().WithIArrayOfValues(values).(*AlertTsInfo_FieldTerminalPathArrayOfValues) 2285 } 2286 2287 func (s Alert_TsInfoPathSelectorTimeSeries) WithItemValue(value *Alert_TsInfo_TimeSeries) *AlertTsInfo_FieldTerminalPathArrayItemValue { 2288 return s.FieldPath().WithIArrayItemValue(value).(*AlertTsInfo_FieldTerminalPathArrayItemValue) 2289 } 2290 func (Alert_TsInfoPathSelectorTimeSeries) WithSubPath(subPath AlertTsInfoTimeSeries_FieldPath) *AlertTsInfo_FieldSubPath { 2291 return &AlertTsInfo_FieldSubPath{selector: AlertTsInfo_FieldPathSelectorTimeSeries, subPath: subPath} 2292 } 2293 2294 func (s Alert_TsInfoPathSelectorTimeSeries) WithSubValue(subPathValue AlertTsInfoTimeSeries_FieldPathValue) *AlertTsInfo_FieldSubPathValue { 2295 return &AlertTsInfo_FieldSubPathValue{AlertTsInfo_FieldPath: s.WithSubPath(subPathValue), subPathValue: subPathValue} 2296 } 2297 2298 func (s Alert_TsInfoPathSelectorTimeSeries) WithSubArrayOfValues(subPathArrayOfValues AlertTsInfoTimeSeries_FieldPathArrayOfValues) *AlertTsInfo_FieldSubPathArrayOfValues { 2299 return &AlertTsInfo_FieldSubPathArrayOfValues{AlertTsInfo_FieldPath: s.WithSubPath(subPathArrayOfValues), subPathArrayOfValues: subPathArrayOfValues} 2300 } 2301 2302 func (s Alert_TsInfoPathSelectorTimeSeries) WithSubArrayItemValue(subPathArrayItemValue AlertTsInfoTimeSeries_FieldPathArrayItemValue) *AlertTsInfo_FieldSubPathArrayItemValue { 2303 return &AlertTsInfo_FieldSubPathArrayItemValue{AlertTsInfo_FieldPath: s.WithSubPath(subPathArrayItemValue), subPathItemValue: subPathArrayItemValue} 2304 } 2305 2306 func (Alert_TsInfoPathSelectorTimeSeries) QueryName() Alert_TsInfoPathSelectorTimeSeriesQueryName { 2307 return Alert_TsInfoPathSelectorTimeSeriesQueryName{} 2308 } 2309 2310 func (Alert_TsInfoPathSelectorTimeSeries) Values() Alert_TsInfoPathSelectorTimeSeriesValues { 2311 return Alert_TsInfoPathSelectorTimeSeriesValues{} 2312 } 2313 2314 func (Alert_TsInfoPathSelectorTimeSeries) Anomalies() Alert_TsInfoPathSelectorTimeSeriesAnomalies { 2315 return Alert_TsInfoPathSelectorTimeSeriesAnomalies{} 2316 } 2317 2318 func (Alert_TsInfoPathSelectorTimeSeries) UpperThreshold() Alert_TsInfoPathSelectorTimeSeriesUpperThreshold { 2319 return Alert_TsInfoPathSelectorTimeSeriesUpperThreshold{} 2320 } 2321 2322 func (Alert_TsInfoPathSelectorTimeSeries) LowerThreshold() Alert_TsInfoPathSelectorTimeSeriesLowerThreshold { 2323 return Alert_TsInfoPathSelectorTimeSeriesLowerThreshold{} 2324 } 2325 2326 func (Alert_TsInfoPathSelectorTimeSeries) AnomalyThreshold() Alert_TsInfoPathSelectorTimeSeriesAnomalyThreshold { 2327 return Alert_TsInfoPathSelectorTimeSeriesAnomalyThreshold{} 2328 } 2329 2330 func (Alert_TsInfoPathSelectorTimeSeries) AfterDuration() Alert_TsInfoPathSelectorTimeSeriesAfterDuration { 2331 return Alert_TsInfoPathSelectorTimeSeriesAfterDuration{} 2332 } 2333 2334 type Alert_TsInfoPathSelectorTimeSeriesQueryName struct{} 2335 2336 func (Alert_TsInfoPathSelectorTimeSeriesQueryName) FieldPath() *AlertTsInfo_FieldSubPath { 2337 return &AlertTsInfo_FieldSubPath{ 2338 selector: AlertTsInfo_FieldPathSelectorTimeSeries, 2339 subPath: NewAlertTsInfoTimeSeriesFieldPathBuilder().QueryName().FieldPath(), 2340 } 2341 } 2342 2343 func (s Alert_TsInfoPathSelectorTimeSeriesQueryName) WithValue(value string) *AlertTsInfo_FieldSubPathValue { 2344 return s.FieldPath().WithIValue(value).(*AlertTsInfo_FieldSubPathValue) 2345 } 2346 2347 func (s Alert_TsInfoPathSelectorTimeSeriesQueryName) WithArrayOfValues(values []string) *AlertTsInfo_FieldSubPathArrayOfValues { 2348 return s.FieldPath().WithIArrayOfValues(values).(*AlertTsInfo_FieldSubPathArrayOfValues) 2349 } 2350 2351 type Alert_TsInfoPathSelectorTimeSeriesValues struct{} 2352 2353 func (Alert_TsInfoPathSelectorTimeSeriesValues) FieldPath() *AlertTsInfo_FieldSubPath { 2354 return &AlertTsInfo_FieldSubPath{ 2355 selector: AlertTsInfo_FieldPathSelectorTimeSeries, 2356 subPath: NewAlertTsInfoTimeSeriesFieldPathBuilder().Values().FieldPath(), 2357 } 2358 } 2359 2360 func (s Alert_TsInfoPathSelectorTimeSeriesValues) WithValue(value []float64) *AlertTsInfo_FieldSubPathValue { 2361 return s.FieldPath().WithIValue(value).(*AlertTsInfo_FieldSubPathValue) 2362 } 2363 2364 func (s Alert_TsInfoPathSelectorTimeSeriesValues) WithArrayOfValues(values [][]float64) *AlertTsInfo_FieldSubPathArrayOfValues { 2365 return s.FieldPath().WithIArrayOfValues(values).(*AlertTsInfo_FieldSubPathArrayOfValues) 2366 } 2367 2368 func (s Alert_TsInfoPathSelectorTimeSeriesValues) WithItemValue(value float64) *AlertTsInfo_FieldSubPathArrayItemValue { 2369 return s.FieldPath().WithIArrayItemValue(value).(*AlertTsInfo_FieldSubPathArrayItemValue) 2370 } 2371 2372 type Alert_TsInfoPathSelectorTimeSeriesAnomalies struct{} 2373 2374 func (Alert_TsInfoPathSelectorTimeSeriesAnomalies) FieldPath() *AlertTsInfo_FieldSubPath { 2375 return &AlertTsInfo_FieldSubPath{ 2376 selector: AlertTsInfo_FieldPathSelectorTimeSeries, 2377 subPath: NewAlertTsInfoTimeSeriesFieldPathBuilder().Anomalies().FieldPath(), 2378 } 2379 } 2380 2381 func (s Alert_TsInfoPathSelectorTimeSeriesAnomalies) WithValue(value []float64) *AlertTsInfo_FieldSubPathValue { 2382 return s.FieldPath().WithIValue(value).(*AlertTsInfo_FieldSubPathValue) 2383 } 2384 2385 func (s Alert_TsInfoPathSelectorTimeSeriesAnomalies) WithArrayOfValues(values [][]float64) *AlertTsInfo_FieldSubPathArrayOfValues { 2386 return s.FieldPath().WithIArrayOfValues(values).(*AlertTsInfo_FieldSubPathArrayOfValues) 2387 } 2388 2389 func (s Alert_TsInfoPathSelectorTimeSeriesAnomalies) WithItemValue(value float64) *AlertTsInfo_FieldSubPathArrayItemValue { 2390 return s.FieldPath().WithIArrayItemValue(value).(*AlertTsInfo_FieldSubPathArrayItemValue) 2391 } 2392 2393 type Alert_TsInfoPathSelectorTimeSeriesUpperThreshold struct{} 2394 2395 func (Alert_TsInfoPathSelectorTimeSeriesUpperThreshold) FieldPath() *AlertTsInfo_FieldSubPath { 2396 return &AlertTsInfo_FieldSubPath{ 2397 selector: AlertTsInfo_FieldPathSelectorTimeSeries, 2398 subPath: NewAlertTsInfoTimeSeriesFieldPathBuilder().UpperThreshold().FieldPath(), 2399 } 2400 } 2401 2402 func (s Alert_TsInfoPathSelectorTimeSeriesUpperThreshold) WithValue(value *rcommon.AlertingThreshold) *AlertTsInfo_FieldSubPathValue { 2403 return s.FieldPath().WithIValue(value).(*AlertTsInfo_FieldSubPathValue) 2404 } 2405 2406 func (s Alert_TsInfoPathSelectorTimeSeriesUpperThreshold) WithArrayOfValues(values []*rcommon.AlertingThreshold) *AlertTsInfo_FieldSubPathArrayOfValues { 2407 return s.FieldPath().WithIArrayOfValues(values).(*AlertTsInfo_FieldSubPathArrayOfValues) 2408 } 2409 2410 func (Alert_TsInfoPathSelectorTimeSeriesUpperThreshold) Value() Alert_TsInfoPathSelectorTimeSeriesUpperThresholdValue { 2411 return Alert_TsInfoPathSelectorTimeSeriesUpperThresholdValue{} 2412 } 2413 2414 func (Alert_TsInfoPathSelectorTimeSeriesUpperThreshold) IsInclusive() Alert_TsInfoPathSelectorTimeSeriesUpperThresholdIsInclusive { 2415 return Alert_TsInfoPathSelectorTimeSeriesUpperThresholdIsInclusive{} 2416 } 2417 2418 type Alert_TsInfoPathSelectorTimeSeriesUpperThresholdValue struct{} 2419 2420 func (Alert_TsInfoPathSelectorTimeSeriesUpperThresholdValue) FieldPath() *AlertTsInfo_FieldSubPath { 2421 return &AlertTsInfo_FieldSubPath{ 2422 selector: AlertTsInfo_FieldPathSelectorTimeSeries, 2423 subPath: NewAlertTsInfoTimeSeriesFieldPathBuilder().UpperThreshold().Value().FieldPath(), 2424 } 2425 } 2426 2427 func (s Alert_TsInfoPathSelectorTimeSeriesUpperThresholdValue) WithValue(value float64) *AlertTsInfo_FieldSubPathValue { 2428 return s.FieldPath().WithIValue(value).(*AlertTsInfo_FieldSubPathValue) 2429 } 2430 2431 func (s Alert_TsInfoPathSelectorTimeSeriesUpperThresholdValue) WithArrayOfValues(values []float64) *AlertTsInfo_FieldSubPathArrayOfValues { 2432 return s.FieldPath().WithIArrayOfValues(values).(*AlertTsInfo_FieldSubPathArrayOfValues) 2433 } 2434 2435 type Alert_TsInfoPathSelectorTimeSeriesUpperThresholdIsInclusive struct{} 2436 2437 func (Alert_TsInfoPathSelectorTimeSeriesUpperThresholdIsInclusive) FieldPath() *AlertTsInfo_FieldSubPath { 2438 return &AlertTsInfo_FieldSubPath{ 2439 selector: AlertTsInfo_FieldPathSelectorTimeSeries, 2440 subPath: NewAlertTsInfoTimeSeriesFieldPathBuilder().UpperThreshold().IsInclusive().FieldPath(), 2441 } 2442 } 2443 2444 func (s Alert_TsInfoPathSelectorTimeSeriesUpperThresholdIsInclusive) WithValue(value bool) *AlertTsInfo_FieldSubPathValue { 2445 return s.FieldPath().WithIValue(value).(*AlertTsInfo_FieldSubPathValue) 2446 } 2447 2448 func (s Alert_TsInfoPathSelectorTimeSeriesUpperThresholdIsInclusive) WithArrayOfValues(values []bool) *AlertTsInfo_FieldSubPathArrayOfValues { 2449 return s.FieldPath().WithIArrayOfValues(values).(*AlertTsInfo_FieldSubPathArrayOfValues) 2450 } 2451 2452 type Alert_TsInfoPathSelectorTimeSeriesLowerThreshold struct{} 2453 2454 func (Alert_TsInfoPathSelectorTimeSeriesLowerThreshold) FieldPath() *AlertTsInfo_FieldSubPath { 2455 return &AlertTsInfo_FieldSubPath{ 2456 selector: AlertTsInfo_FieldPathSelectorTimeSeries, 2457 subPath: NewAlertTsInfoTimeSeriesFieldPathBuilder().LowerThreshold().FieldPath(), 2458 } 2459 } 2460 2461 func (s Alert_TsInfoPathSelectorTimeSeriesLowerThreshold) WithValue(value *rcommon.AlertingThreshold) *AlertTsInfo_FieldSubPathValue { 2462 return s.FieldPath().WithIValue(value).(*AlertTsInfo_FieldSubPathValue) 2463 } 2464 2465 func (s Alert_TsInfoPathSelectorTimeSeriesLowerThreshold) WithArrayOfValues(values []*rcommon.AlertingThreshold) *AlertTsInfo_FieldSubPathArrayOfValues { 2466 return s.FieldPath().WithIArrayOfValues(values).(*AlertTsInfo_FieldSubPathArrayOfValues) 2467 } 2468 2469 func (Alert_TsInfoPathSelectorTimeSeriesLowerThreshold) Value() Alert_TsInfoPathSelectorTimeSeriesLowerThresholdValue { 2470 return Alert_TsInfoPathSelectorTimeSeriesLowerThresholdValue{} 2471 } 2472 2473 func (Alert_TsInfoPathSelectorTimeSeriesLowerThreshold) IsInclusive() Alert_TsInfoPathSelectorTimeSeriesLowerThresholdIsInclusive { 2474 return Alert_TsInfoPathSelectorTimeSeriesLowerThresholdIsInclusive{} 2475 } 2476 2477 type Alert_TsInfoPathSelectorTimeSeriesLowerThresholdValue struct{} 2478 2479 func (Alert_TsInfoPathSelectorTimeSeriesLowerThresholdValue) FieldPath() *AlertTsInfo_FieldSubPath { 2480 return &AlertTsInfo_FieldSubPath{ 2481 selector: AlertTsInfo_FieldPathSelectorTimeSeries, 2482 subPath: NewAlertTsInfoTimeSeriesFieldPathBuilder().LowerThreshold().Value().FieldPath(), 2483 } 2484 } 2485 2486 func (s Alert_TsInfoPathSelectorTimeSeriesLowerThresholdValue) WithValue(value float64) *AlertTsInfo_FieldSubPathValue { 2487 return s.FieldPath().WithIValue(value).(*AlertTsInfo_FieldSubPathValue) 2488 } 2489 2490 func (s Alert_TsInfoPathSelectorTimeSeriesLowerThresholdValue) WithArrayOfValues(values []float64) *AlertTsInfo_FieldSubPathArrayOfValues { 2491 return s.FieldPath().WithIArrayOfValues(values).(*AlertTsInfo_FieldSubPathArrayOfValues) 2492 } 2493 2494 type Alert_TsInfoPathSelectorTimeSeriesLowerThresholdIsInclusive struct{} 2495 2496 func (Alert_TsInfoPathSelectorTimeSeriesLowerThresholdIsInclusive) FieldPath() *AlertTsInfo_FieldSubPath { 2497 return &AlertTsInfo_FieldSubPath{ 2498 selector: AlertTsInfo_FieldPathSelectorTimeSeries, 2499 subPath: NewAlertTsInfoTimeSeriesFieldPathBuilder().LowerThreshold().IsInclusive().FieldPath(), 2500 } 2501 } 2502 2503 func (s Alert_TsInfoPathSelectorTimeSeriesLowerThresholdIsInclusive) WithValue(value bool) *AlertTsInfo_FieldSubPathValue { 2504 return s.FieldPath().WithIValue(value).(*AlertTsInfo_FieldSubPathValue) 2505 } 2506 2507 func (s Alert_TsInfoPathSelectorTimeSeriesLowerThresholdIsInclusive) WithArrayOfValues(values []bool) *AlertTsInfo_FieldSubPathArrayOfValues { 2508 return s.FieldPath().WithIArrayOfValues(values).(*AlertTsInfo_FieldSubPathArrayOfValues) 2509 } 2510 2511 type Alert_TsInfoPathSelectorTimeSeriesAnomalyThreshold struct{} 2512 2513 func (Alert_TsInfoPathSelectorTimeSeriesAnomalyThreshold) FieldPath() *AlertTsInfo_FieldSubPath { 2514 return &AlertTsInfo_FieldSubPath{ 2515 selector: AlertTsInfo_FieldPathSelectorTimeSeries, 2516 subPath: NewAlertTsInfoTimeSeriesFieldPathBuilder().AnomalyThreshold().FieldPath(), 2517 } 2518 } 2519 2520 func (s Alert_TsInfoPathSelectorTimeSeriesAnomalyThreshold) WithValue(value float64) *AlertTsInfo_FieldSubPathValue { 2521 return s.FieldPath().WithIValue(value).(*AlertTsInfo_FieldSubPathValue) 2522 } 2523 2524 func (s Alert_TsInfoPathSelectorTimeSeriesAnomalyThreshold) WithArrayOfValues(values []float64) *AlertTsInfo_FieldSubPathArrayOfValues { 2525 return s.FieldPath().WithIArrayOfValues(values).(*AlertTsInfo_FieldSubPathArrayOfValues) 2526 } 2527 2528 type Alert_TsInfoPathSelectorTimeSeriesAfterDuration struct{} 2529 2530 func (Alert_TsInfoPathSelectorTimeSeriesAfterDuration) FieldPath() *AlertTsInfo_FieldSubPath { 2531 return &AlertTsInfo_FieldSubPath{ 2532 selector: AlertTsInfo_FieldPathSelectorTimeSeries, 2533 subPath: NewAlertTsInfoTimeSeriesFieldPathBuilder().AfterDuration().FieldPath(), 2534 } 2535 } 2536 2537 func (s Alert_TsInfoPathSelectorTimeSeriesAfterDuration) WithValue(value *durationpb.Duration) *AlertTsInfo_FieldSubPathValue { 2538 return s.FieldPath().WithIValue(value).(*AlertTsInfo_FieldSubPathValue) 2539 } 2540 2541 func (s Alert_TsInfoPathSelectorTimeSeriesAfterDuration) WithArrayOfValues(values []*durationpb.Duration) *AlertTsInfo_FieldSubPathArrayOfValues { 2542 return s.FieldPath().WithIArrayOfValues(values).(*AlertTsInfo_FieldSubPathArrayOfValues) 2543 } 2544 2545 type AlertLogInfoFieldPathBuilder struct{} 2546 2547 func NewAlertLogInfoFieldPathBuilder() AlertLogInfoFieldPathBuilder { 2548 return AlertLogInfoFieldPathBuilder{} 2549 } 2550 func (AlertLogInfoFieldPathBuilder) CommonKey() Alert_LogInfoPathSelectorCommonKey { 2551 return Alert_LogInfoPathSelectorCommonKey{} 2552 } 2553 func (AlertLogInfoFieldPathBuilder) LogTypes() Alert_LogInfoPathSelectorLogTypes { 2554 return Alert_LogInfoPathSelectorLogTypes{} 2555 } 2556 func (AlertLogInfoFieldPathBuilder) CommonLogLabels() Alert_LogInfoPathSelectorCommonLogLabels { 2557 return Alert_LogInfoPathSelectorCommonLogLabels{} 2558 } 2559 func (AlertLogInfoFieldPathBuilder) ViolatingLog() Alert_LogInfoPathSelectorViolatingLog { 2560 return Alert_LogInfoPathSelectorViolatingLog{} 2561 } 2562 2563 type Alert_LogInfoPathSelectorCommonKey struct{} 2564 2565 func (Alert_LogInfoPathSelectorCommonKey) FieldPath() *AlertLogInfo_FieldTerminalPath { 2566 return &AlertLogInfo_FieldTerminalPath{selector: AlertLogInfo_FieldPathSelectorCommonKey} 2567 } 2568 2569 func (s Alert_LogInfoPathSelectorCommonKey) WithValue(value []byte) *AlertLogInfo_FieldTerminalPathValue { 2570 return s.FieldPath().WithIValue(value).(*AlertLogInfo_FieldTerminalPathValue) 2571 } 2572 2573 func (s Alert_LogInfoPathSelectorCommonKey) WithArrayOfValues(values [][]byte) *AlertLogInfo_FieldTerminalPathArrayOfValues { 2574 return s.FieldPath().WithIArrayOfValues(values).(*AlertLogInfo_FieldTerminalPathArrayOfValues) 2575 } 2576 2577 type Alert_LogInfoPathSelectorLogTypes struct{} 2578 2579 func (Alert_LogInfoPathSelectorLogTypes) FieldPath() *AlertLogInfo_FieldTerminalPath { 2580 return &AlertLogInfo_FieldTerminalPath{selector: AlertLogInfo_FieldPathSelectorLogTypes} 2581 } 2582 2583 func (s Alert_LogInfoPathSelectorLogTypes) WithValue(value []string) *AlertLogInfo_FieldTerminalPathValue { 2584 return s.FieldPath().WithIValue(value).(*AlertLogInfo_FieldTerminalPathValue) 2585 } 2586 2587 func (s Alert_LogInfoPathSelectorLogTypes) WithArrayOfValues(values [][]string) *AlertLogInfo_FieldTerminalPathArrayOfValues { 2588 return s.FieldPath().WithIArrayOfValues(values).(*AlertLogInfo_FieldTerminalPathArrayOfValues) 2589 } 2590 2591 func (s Alert_LogInfoPathSelectorLogTypes) WithItemValue(value string) *AlertLogInfo_FieldTerminalPathArrayItemValue { 2592 return s.FieldPath().WithIArrayItemValue(value).(*AlertLogInfo_FieldTerminalPathArrayItemValue) 2593 } 2594 2595 type Alert_LogInfoPathSelectorCommonLogLabels struct{} 2596 2597 func (Alert_LogInfoPathSelectorCommonLogLabels) FieldPath() *AlertLogInfo_FieldTerminalPath { 2598 return &AlertLogInfo_FieldTerminalPath{selector: AlertLogInfo_FieldPathSelectorCommonLogLabels} 2599 } 2600 2601 func (s Alert_LogInfoPathSelectorCommonLogLabels) WithValue(value map[string]string) *AlertLogInfo_FieldTerminalPathValue { 2602 return s.FieldPath().WithIValue(value).(*AlertLogInfo_FieldTerminalPathValue) 2603 } 2604 2605 func (s Alert_LogInfoPathSelectorCommonLogLabels) WithArrayOfValues(values []map[string]string) *AlertLogInfo_FieldTerminalPathArrayOfValues { 2606 return s.FieldPath().WithIArrayOfValues(values).(*AlertLogInfo_FieldTerminalPathArrayOfValues) 2607 } 2608 2609 func (Alert_LogInfoPathSelectorCommonLogLabels) WithKey(key string) Alert_LogInfoMapPathSelectorCommonLogLabels { 2610 return Alert_LogInfoMapPathSelectorCommonLogLabels{key: key} 2611 } 2612 2613 type Alert_LogInfoMapPathSelectorCommonLogLabels struct { 2614 key string 2615 } 2616 2617 func (s Alert_LogInfoMapPathSelectorCommonLogLabels) FieldPath() *AlertLogInfo_FieldPathMap { 2618 return &AlertLogInfo_FieldPathMap{selector: AlertLogInfo_FieldPathSelectorCommonLogLabels, key: s.key} 2619 } 2620 2621 func (s Alert_LogInfoMapPathSelectorCommonLogLabels) WithValue(value string) *AlertLogInfo_FieldPathMapValue { 2622 return s.FieldPath().WithIValue(value).(*AlertLogInfo_FieldPathMapValue) 2623 } 2624 2625 func (s Alert_LogInfoMapPathSelectorCommonLogLabels) WithArrayOfValues(values []string) *AlertLogInfo_FieldPathMapArrayOfValues { 2626 return s.FieldPath().WithIArrayOfValues(values).(*AlertLogInfo_FieldPathMapArrayOfValues) 2627 } 2628 2629 type Alert_LogInfoPathSelectorViolatingLog struct{} 2630 2631 func (Alert_LogInfoPathSelectorViolatingLog) FieldPath() *AlertLogInfo_FieldTerminalPath { 2632 return &AlertLogInfo_FieldTerminalPath{selector: AlertLogInfo_FieldPathSelectorViolatingLog} 2633 } 2634 2635 func (s Alert_LogInfoPathSelectorViolatingLog) WithValue(value string) *AlertLogInfo_FieldTerminalPathValue { 2636 return s.FieldPath().WithIValue(value).(*AlertLogInfo_FieldTerminalPathValue) 2637 } 2638 2639 func (s Alert_LogInfoPathSelectorViolatingLog) WithArrayOfValues(values []string) *AlertLogInfo_FieldTerminalPathArrayOfValues { 2640 return s.FieldPath().WithIArrayOfValues(values).(*AlertLogInfo_FieldTerminalPathArrayOfValues) 2641 } 2642 2643 type AlertStateFieldPathBuilder struct{} 2644 2645 func NewAlertStateFieldPathBuilder() AlertStateFieldPathBuilder { 2646 return AlertStateFieldPathBuilder{} 2647 } 2648 func (AlertStateFieldPathBuilder) IsFiring() Alert_StatePathSelectorIsFiring { 2649 return Alert_StatePathSelectorIsFiring{} 2650 } 2651 func (AlertStateFieldPathBuilder) StartTime() Alert_StatePathSelectorStartTime { 2652 return Alert_StatePathSelectorStartTime{} 2653 } 2654 func (AlertStateFieldPathBuilder) EndTime() Alert_StatePathSelectorEndTime { 2655 return Alert_StatePathSelectorEndTime{} 2656 } 2657 func (AlertStateFieldPathBuilder) NotificationStatuses() Alert_StatePathSelectorNotificationStatuses { 2658 return Alert_StatePathSelectorNotificationStatuses{} 2659 } 2660 func (AlertStateFieldPathBuilder) EscalationLevel() Alert_StatePathSelectorEscalationLevel { 2661 return Alert_StatePathSelectorEscalationLevel{} 2662 } 2663 func (AlertStateFieldPathBuilder) AiAgentHandlingState() Alert_StatePathSelectorAiAgentHandlingState { 2664 return Alert_StatePathSelectorAiAgentHandlingState{} 2665 } 2666 func (AlertStateFieldPathBuilder) AiAgentLastStateChangeTime() Alert_StatePathSelectorAiAgentLastStateChangeTime { 2667 return Alert_StatePathSelectorAiAgentLastStateChangeTime{} 2668 } 2669 func (AlertStateFieldPathBuilder) AiAgentDiagnosisNotes() Alert_StatePathSelectorAiAgentDiagnosisNotes { 2670 return Alert_StatePathSelectorAiAgentDiagnosisNotes{} 2671 } 2672 func (AlertStateFieldPathBuilder) AiRemediationArg() Alert_StatePathSelectorAiRemediationArg { 2673 return Alert_StatePathSelectorAiRemediationArg{} 2674 } 2675 func (AlertStateFieldPathBuilder) AiRemediation() Alert_StatePathSelectorAiRemediation { 2676 return Alert_StatePathSelectorAiRemediation{} 2677 } 2678 func (AlertStateFieldPathBuilder) OperatorHandlingState() Alert_StatePathSelectorOperatorHandlingState { 2679 return Alert_StatePathSelectorOperatorHandlingState{} 2680 } 2681 func (AlertStateFieldPathBuilder) OperatorLastStateChangeTime() Alert_StatePathSelectorOperatorLastStateChangeTime { 2682 return Alert_StatePathSelectorOperatorLastStateChangeTime{} 2683 } 2684 func (AlertStateFieldPathBuilder) OperatorNotes() Alert_StatePathSelectorOperatorNotes { 2685 return Alert_StatePathSelectorOperatorNotes{} 2686 } 2687 func (AlertStateFieldPathBuilder) LifecycleCompleted() Alert_StatePathSelectorLifecycleCompleted { 2688 return Alert_StatePathSelectorLifecycleCompleted{} 2689 } 2690 2691 type Alert_StatePathSelectorIsFiring struct{} 2692 2693 func (Alert_StatePathSelectorIsFiring) FieldPath() *AlertState_FieldTerminalPath { 2694 return &AlertState_FieldTerminalPath{selector: AlertState_FieldPathSelectorIsFiring} 2695 } 2696 2697 func (s Alert_StatePathSelectorIsFiring) WithValue(value bool) *AlertState_FieldTerminalPathValue { 2698 return s.FieldPath().WithIValue(value).(*AlertState_FieldTerminalPathValue) 2699 } 2700 2701 func (s Alert_StatePathSelectorIsFiring) WithArrayOfValues(values []bool) *AlertState_FieldTerminalPathArrayOfValues { 2702 return s.FieldPath().WithIArrayOfValues(values).(*AlertState_FieldTerminalPathArrayOfValues) 2703 } 2704 2705 type Alert_StatePathSelectorStartTime struct{} 2706 2707 func (Alert_StatePathSelectorStartTime) FieldPath() *AlertState_FieldTerminalPath { 2708 return &AlertState_FieldTerminalPath{selector: AlertState_FieldPathSelectorStartTime} 2709 } 2710 2711 func (s Alert_StatePathSelectorStartTime) WithValue(value *timestamppb.Timestamp) *AlertState_FieldTerminalPathValue { 2712 return s.FieldPath().WithIValue(value).(*AlertState_FieldTerminalPathValue) 2713 } 2714 2715 func (s Alert_StatePathSelectorStartTime) WithArrayOfValues(values []*timestamppb.Timestamp) *AlertState_FieldTerminalPathArrayOfValues { 2716 return s.FieldPath().WithIArrayOfValues(values).(*AlertState_FieldTerminalPathArrayOfValues) 2717 } 2718 2719 type Alert_StatePathSelectorEndTime struct{} 2720 2721 func (Alert_StatePathSelectorEndTime) FieldPath() *AlertState_FieldTerminalPath { 2722 return &AlertState_FieldTerminalPath{selector: AlertState_FieldPathSelectorEndTime} 2723 } 2724 2725 func (s Alert_StatePathSelectorEndTime) WithValue(value *timestamppb.Timestamp) *AlertState_FieldTerminalPathValue { 2726 return s.FieldPath().WithIValue(value).(*AlertState_FieldTerminalPathValue) 2727 } 2728 2729 func (s Alert_StatePathSelectorEndTime) WithArrayOfValues(values []*timestamppb.Timestamp) *AlertState_FieldTerminalPathArrayOfValues { 2730 return s.FieldPath().WithIArrayOfValues(values).(*AlertState_FieldTerminalPathArrayOfValues) 2731 } 2732 2733 type Alert_StatePathSelectorNotificationStatuses struct{} 2734 2735 func (Alert_StatePathSelectorNotificationStatuses) FieldPath() *AlertState_FieldTerminalPath { 2736 return &AlertState_FieldTerminalPath{selector: AlertState_FieldPathSelectorNotificationStatuses} 2737 } 2738 2739 func (s Alert_StatePathSelectorNotificationStatuses) WithValue(value []*Alert_State_Notification) *AlertState_FieldTerminalPathValue { 2740 return s.FieldPath().WithIValue(value).(*AlertState_FieldTerminalPathValue) 2741 } 2742 2743 func (s Alert_StatePathSelectorNotificationStatuses) WithArrayOfValues(values [][]*Alert_State_Notification) *AlertState_FieldTerminalPathArrayOfValues { 2744 return s.FieldPath().WithIArrayOfValues(values).(*AlertState_FieldTerminalPathArrayOfValues) 2745 } 2746 2747 func (s Alert_StatePathSelectorNotificationStatuses) WithItemValue(value *Alert_State_Notification) *AlertState_FieldTerminalPathArrayItemValue { 2748 return s.FieldPath().WithIArrayItemValue(value).(*AlertState_FieldTerminalPathArrayItemValue) 2749 } 2750 func (Alert_StatePathSelectorNotificationStatuses) WithSubPath(subPath AlertStateNotification_FieldPath) *AlertState_FieldSubPath { 2751 return &AlertState_FieldSubPath{selector: AlertState_FieldPathSelectorNotificationStatuses, subPath: subPath} 2752 } 2753 2754 func (s Alert_StatePathSelectorNotificationStatuses) WithSubValue(subPathValue AlertStateNotification_FieldPathValue) *AlertState_FieldSubPathValue { 2755 return &AlertState_FieldSubPathValue{AlertState_FieldPath: s.WithSubPath(subPathValue), subPathValue: subPathValue} 2756 } 2757 2758 func (s Alert_StatePathSelectorNotificationStatuses) WithSubArrayOfValues(subPathArrayOfValues AlertStateNotification_FieldPathArrayOfValues) *AlertState_FieldSubPathArrayOfValues { 2759 return &AlertState_FieldSubPathArrayOfValues{AlertState_FieldPath: s.WithSubPath(subPathArrayOfValues), subPathArrayOfValues: subPathArrayOfValues} 2760 } 2761 2762 func (s Alert_StatePathSelectorNotificationStatuses) WithSubArrayItemValue(subPathArrayItemValue AlertStateNotification_FieldPathArrayItemValue) *AlertState_FieldSubPathArrayItemValue { 2763 return &AlertState_FieldSubPathArrayItemValue{AlertState_FieldPath: s.WithSubPath(subPathArrayItemValue), subPathItemValue: subPathArrayItemValue} 2764 } 2765 2766 func (Alert_StatePathSelectorNotificationStatuses) Kind() Alert_StatePathSelectorNotificationStatusesKind { 2767 return Alert_StatePathSelectorNotificationStatusesKind{} 2768 } 2769 2770 func (Alert_StatePathSelectorNotificationStatuses) PendingChannels() Alert_StatePathSelectorNotificationStatusesPendingChannels { 2771 return Alert_StatePathSelectorNotificationStatusesPendingChannels{} 2772 } 2773 2774 type Alert_StatePathSelectorNotificationStatusesKind struct{} 2775 2776 func (Alert_StatePathSelectorNotificationStatusesKind) FieldPath() *AlertState_FieldSubPath { 2777 return &AlertState_FieldSubPath{ 2778 selector: AlertState_FieldPathSelectorNotificationStatuses, 2779 subPath: NewAlertStateNotificationFieldPathBuilder().Kind().FieldPath(), 2780 } 2781 } 2782 2783 func (s Alert_StatePathSelectorNotificationStatusesKind) WithValue(value rcommon.NotificationChannelSpec_EventKind) *AlertState_FieldSubPathValue { 2784 return s.FieldPath().WithIValue(value).(*AlertState_FieldSubPathValue) 2785 } 2786 2787 func (s Alert_StatePathSelectorNotificationStatusesKind) WithArrayOfValues(values []rcommon.NotificationChannelSpec_EventKind) *AlertState_FieldSubPathArrayOfValues { 2788 return s.FieldPath().WithIArrayOfValues(values).(*AlertState_FieldSubPathArrayOfValues) 2789 } 2790 2791 type Alert_StatePathSelectorNotificationStatusesPendingChannels struct{} 2792 2793 func (Alert_StatePathSelectorNotificationStatusesPendingChannels) FieldPath() *AlertState_FieldSubPath { 2794 return &AlertState_FieldSubPath{ 2795 selector: AlertState_FieldPathSelectorNotificationStatuses, 2796 subPath: NewAlertStateNotificationFieldPathBuilder().PendingChannels().FieldPath(), 2797 } 2798 } 2799 2800 func (s Alert_StatePathSelectorNotificationStatusesPendingChannels) WithValue(value []*notification_channel.Reference) *AlertState_FieldSubPathValue { 2801 return s.FieldPath().WithIValue(value).(*AlertState_FieldSubPathValue) 2802 } 2803 2804 func (s Alert_StatePathSelectorNotificationStatusesPendingChannels) WithArrayOfValues(values [][]*notification_channel.Reference) *AlertState_FieldSubPathArrayOfValues { 2805 return s.FieldPath().WithIArrayOfValues(values).(*AlertState_FieldSubPathArrayOfValues) 2806 } 2807 2808 func (s Alert_StatePathSelectorNotificationStatusesPendingChannels) WithItemValue(value *notification_channel.Reference) *AlertState_FieldSubPathArrayItemValue { 2809 return s.FieldPath().WithIArrayItemValue(value).(*AlertState_FieldSubPathArrayItemValue) 2810 } 2811 2812 type Alert_StatePathSelectorEscalationLevel struct{} 2813 2814 func (Alert_StatePathSelectorEscalationLevel) FieldPath() *AlertState_FieldTerminalPath { 2815 return &AlertState_FieldTerminalPath{selector: AlertState_FieldPathSelectorEscalationLevel} 2816 } 2817 2818 func (s Alert_StatePathSelectorEscalationLevel) WithValue(value Alert_State_EscalationLevel) *AlertState_FieldTerminalPathValue { 2819 return s.FieldPath().WithIValue(value).(*AlertState_FieldTerminalPathValue) 2820 } 2821 2822 func (s Alert_StatePathSelectorEscalationLevel) WithArrayOfValues(values []Alert_State_EscalationLevel) *AlertState_FieldTerminalPathArrayOfValues { 2823 return s.FieldPath().WithIArrayOfValues(values).(*AlertState_FieldTerminalPathArrayOfValues) 2824 } 2825 2826 type Alert_StatePathSelectorAiAgentHandlingState struct{} 2827 2828 func (Alert_StatePathSelectorAiAgentHandlingState) FieldPath() *AlertState_FieldTerminalPath { 2829 return &AlertState_FieldTerminalPath{selector: AlertState_FieldPathSelectorAiAgentHandlingState} 2830 } 2831 2832 func (s Alert_StatePathSelectorAiAgentHandlingState) WithValue(value Alert_State_AiHandlingState) *AlertState_FieldTerminalPathValue { 2833 return s.FieldPath().WithIValue(value).(*AlertState_FieldTerminalPathValue) 2834 } 2835 2836 func (s Alert_StatePathSelectorAiAgentHandlingState) WithArrayOfValues(values []Alert_State_AiHandlingState) *AlertState_FieldTerminalPathArrayOfValues { 2837 return s.FieldPath().WithIArrayOfValues(values).(*AlertState_FieldTerminalPathArrayOfValues) 2838 } 2839 2840 type Alert_StatePathSelectorAiAgentLastStateChangeTime struct{} 2841 2842 func (Alert_StatePathSelectorAiAgentLastStateChangeTime) FieldPath() *AlertState_FieldTerminalPath { 2843 return &AlertState_FieldTerminalPath{selector: AlertState_FieldPathSelectorAiAgentLastStateChangeTime} 2844 } 2845 2846 func (s Alert_StatePathSelectorAiAgentLastStateChangeTime) WithValue(value *timestamppb.Timestamp) *AlertState_FieldTerminalPathValue { 2847 return s.FieldPath().WithIValue(value).(*AlertState_FieldTerminalPathValue) 2848 } 2849 2850 func (s Alert_StatePathSelectorAiAgentLastStateChangeTime) WithArrayOfValues(values []*timestamppb.Timestamp) *AlertState_FieldTerminalPathArrayOfValues { 2851 return s.FieldPath().WithIArrayOfValues(values).(*AlertState_FieldTerminalPathArrayOfValues) 2852 } 2853 2854 type Alert_StatePathSelectorAiAgentDiagnosisNotes struct{} 2855 2856 func (Alert_StatePathSelectorAiAgentDiagnosisNotes) FieldPath() *AlertState_FieldTerminalPath { 2857 return &AlertState_FieldTerminalPath{selector: AlertState_FieldPathSelectorAiAgentDiagnosisNotes} 2858 } 2859 2860 func (s Alert_StatePathSelectorAiAgentDiagnosisNotes) WithValue(value string) *AlertState_FieldTerminalPathValue { 2861 return s.FieldPath().WithIValue(value).(*AlertState_FieldTerminalPathValue) 2862 } 2863 2864 func (s Alert_StatePathSelectorAiAgentDiagnosisNotes) WithArrayOfValues(values []string) *AlertState_FieldTerminalPathArrayOfValues { 2865 return s.FieldPath().WithIArrayOfValues(values).(*AlertState_FieldTerminalPathArrayOfValues) 2866 } 2867 2868 type Alert_StatePathSelectorAiRemediationArg struct{} 2869 2870 func (Alert_StatePathSelectorAiRemediationArg) FieldPath() *AlertState_FieldTerminalPath { 2871 return &AlertState_FieldTerminalPath{selector: AlertState_FieldPathSelectorAiRemediationArg} 2872 } 2873 2874 func (s Alert_StatePathSelectorAiRemediationArg) WithValue(value string) *AlertState_FieldTerminalPathValue { 2875 return s.FieldPath().WithIValue(value).(*AlertState_FieldTerminalPathValue) 2876 } 2877 2878 func (s Alert_StatePathSelectorAiRemediationArg) WithArrayOfValues(values []string) *AlertState_FieldTerminalPathArrayOfValues { 2879 return s.FieldPath().WithIArrayOfValues(values).(*AlertState_FieldTerminalPathArrayOfValues) 2880 } 2881 2882 type Alert_StatePathSelectorAiRemediation struct{} 2883 2884 func (Alert_StatePathSelectorAiRemediation) FieldPath() *AlertState_FieldTerminalPath { 2885 return &AlertState_FieldTerminalPath{selector: AlertState_FieldPathSelectorAiRemediation} 2886 } 2887 2888 func (s Alert_StatePathSelectorAiRemediation) WithValue(value *rcommon.PolicySpec_AIAgentHandling_Remediation) *AlertState_FieldTerminalPathValue { 2889 return s.FieldPath().WithIValue(value).(*AlertState_FieldTerminalPathValue) 2890 } 2891 2892 func (s Alert_StatePathSelectorAiRemediation) WithArrayOfValues(values []*rcommon.PolicySpec_AIAgentHandling_Remediation) *AlertState_FieldTerminalPathArrayOfValues { 2893 return s.FieldPath().WithIArrayOfValues(values).(*AlertState_FieldTerminalPathArrayOfValues) 2894 } 2895 2896 func (Alert_StatePathSelectorAiRemediation) WithSubPath(subPath rcommon.PolicySpecAIAgentHandlingRemediation_FieldPath) *AlertState_FieldSubPath { 2897 return &AlertState_FieldSubPath{selector: AlertState_FieldPathSelectorAiRemediation, subPath: subPath} 2898 } 2899 2900 func (s Alert_StatePathSelectorAiRemediation) WithSubValue(subPathValue rcommon.PolicySpecAIAgentHandlingRemediation_FieldPathValue) *AlertState_FieldSubPathValue { 2901 return &AlertState_FieldSubPathValue{AlertState_FieldPath: s.WithSubPath(subPathValue), subPathValue: subPathValue} 2902 } 2903 2904 func (s Alert_StatePathSelectorAiRemediation) WithSubArrayOfValues(subPathArrayOfValues rcommon.PolicySpecAIAgentHandlingRemediation_FieldPathArrayOfValues) *AlertState_FieldSubPathArrayOfValues { 2905 return &AlertState_FieldSubPathArrayOfValues{AlertState_FieldPath: s.WithSubPath(subPathArrayOfValues), subPathArrayOfValues: subPathArrayOfValues} 2906 } 2907 2908 func (s Alert_StatePathSelectorAiRemediation) WithSubArrayItemValue(subPathArrayItemValue rcommon.PolicySpecAIAgentHandlingRemediation_FieldPathArrayItemValue) *AlertState_FieldSubPathArrayItemValue { 2909 return &AlertState_FieldSubPathArrayItemValue{AlertState_FieldPath: s.WithSubPath(subPathArrayItemValue), subPathItemValue: subPathArrayItemValue} 2910 } 2911 2912 func (Alert_StatePathSelectorAiRemediation) FixInSsh() Alert_StatePathSelectorAiRemediationFixInSsh { 2913 return Alert_StatePathSelectorAiRemediationFixInSsh{} 2914 } 2915 2916 func (Alert_StatePathSelectorAiRemediation) Reboot() Alert_StatePathSelectorAiRemediationReboot { 2917 return Alert_StatePathSelectorAiRemediationReboot{} 2918 } 2919 2920 type Alert_StatePathSelectorAiRemediationFixInSsh struct{} 2921 2922 func (Alert_StatePathSelectorAiRemediationFixInSsh) FieldPath() *AlertState_FieldSubPath { 2923 return &AlertState_FieldSubPath{ 2924 selector: AlertState_FieldPathSelectorAiRemediation, 2925 subPath: rcommon.NewPolicySpecAIAgentHandlingRemediationFieldPathBuilder().FixInSsh().FieldPath(), 2926 } 2927 } 2928 2929 func (s Alert_StatePathSelectorAiRemediationFixInSsh) WithValue(value *rcommon.PolicySpec_AIAgentHandling_Remediation_FixInSSH) *AlertState_FieldSubPathValue { 2930 return s.FieldPath().WithIValue(value).(*AlertState_FieldSubPathValue) 2931 } 2932 2933 func (s Alert_StatePathSelectorAiRemediationFixInSsh) WithArrayOfValues(values []*rcommon.PolicySpec_AIAgentHandling_Remediation_FixInSSH) *AlertState_FieldSubPathArrayOfValues { 2934 return s.FieldPath().WithIArrayOfValues(values).(*AlertState_FieldSubPathArrayOfValues) 2935 } 2936 2937 type Alert_StatePathSelectorAiRemediationReboot struct{} 2938 2939 func (Alert_StatePathSelectorAiRemediationReboot) FieldPath() *AlertState_FieldSubPath { 2940 return &AlertState_FieldSubPath{ 2941 selector: AlertState_FieldPathSelectorAiRemediation, 2942 subPath: rcommon.NewPolicySpecAIAgentHandlingRemediationFieldPathBuilder().Reboot().FieldPath(), 2943 } 2944 } 2945 2946 func (s Alert_StatePathSelectorAiRemediationReboot) WithValue(value *rcommon.PolicySpec_AIAgentHandling_Remediation_Reboot) *AlertState_FieldSubPathValue { 2947 return s.FieldPath().WithIValue(value).(*AlertState_FieldSubPathValue) 2948 } 2949 2950 func (s Alert_StatePathSelectorAiRemediationReboot) WithArrayOfValues(values []*rcommon.PolicySpec_AIAgentHandling_Remediation_Reboot) *AlertState_FieldSubPathArrayOfValues { 2951 return s.FieldPath().WithIArrayOfValues(values).(*AlertState_FieldSubPathArrayOfValues) 2952 } 2953 2954 type Alert_StatePathSelectorOperatorHandlingState struct{} 2955 2956 func (Alert_StatePathSelectorOperatorHandlingState) FieldPath() *AlertState_FieldTerminalPath { 2957 return &AlertState_FieldTerminalPath{selector: AlertState_FieldPathSelectorOperatorHandlingState} 2958 } 2959 2960 func (s Alert_StatePathSelectorOperatorHandlingState) WithValue(value Alert_State_OperatorHandlingState) *AlertState_FieldTerminalPathValue { 2961 return s.FieldPath().WithIValue(value).(*AlertState_FieldTerminalPathValue) 2962 } 2963 2964 func (s Alert_StatePathSelectorOperatorHandlingState) WithArrayOfValues(values []Alert_State_OperatorHandlingState) *AlertState_FieldTerminalPathArrayOfValues { 2965 return s.FieldPath().WithIArrayOfValues(values).(*AlertState_FieldTerminalPathArrayOfValues) 2966 } 2967 2968 type Alert_StatePathSelectorOperatorLastStateChangeTime struct{} 2969 2970 func (Alert_StatePathSelectorOperatorLastStateChangeTime) FieldPath() *AlertState_FieldTerminalPath { 2971 return &AlertState_FieldTerminalPath{selector: AlertState_FieldPathSelectorOperatorLastStateChangeTime} 2972 } 2973 2974 func (s Alert_StatePathSelectorOperatorLastStateChangeTime) WithValue(value *timestamppb.Timestamp) *AlertState_FieldTerminalPathValue { 2975 return s.FieldPath().WithIValue(value).(*AlertState_FieldTerminalPathValue) 2976 } 2977 2978 func (s Alert_StatePathSelectorOperatorLastStateChangeTime) WithArrayOfValues(values []*timestamppb.Timestamp) *AlertState_FieldTerminalPathArrayOfValues { 2979 return s.FieldPath().WithIArrayOfValues(values).(*AlertState_FieldTerminalPathArrayOfValues) 2980 } 2981 2982 type Alert_StatePathSelectorOperatorNotes struct{} 2983 2984 func (Alert_StatePathSelectorOperatorNotes) FieldPath() *AlertState_FieldTerminalPath { 2985 return &AlertState_FieldTerminalPath{selector: AlertState_FieldPathSelectorOperatorNotes} 2986 } 2987 2988 func (s Alert_StatePathSelectorOperatorNotes) WithValue(value string) *AlertState_FieldTerminalPathValue { 2989 return s.FieldPath().WithIValue(value).(*AlertState_FieldTerminalPathValue) 2990 } 2991 2992 func (s Alert_StatePathSelectorOperatorNotes) WithArrayOfValues(values []string) *AlertState_FieldTerminalPathArrayOfValues { 2993 return s.FieldPath().WithIArrayOfValues(values).(*AlertState_FieldTerminalPathArrayOfValues) 2994 } 2995 2996 type Alert_StatePathSelectorLifecycleCompleted struct{} 2997 2998 func (Alert_StatePathSelectorLifecycleCompleted) FieldPath() *AlertState_FieldTerminalPath { 2999 return &AlertState_FieldTerminalPath{selector: AlertState_FieldPathSelectorLifecycleCompleted} 3000 } 3001 3002 func (s Alert_StatePathSelectorLifecycleCompleted) WithValue(value bool) *AlertState_FieldTerminalPathValue { 3003 return s.FieldPath().WithIValue(value).(*AlertState_FieldTerminalPathValue) 3004 } 3005 3006 func (s Alert_StatePathSelectorLifecycleCompleted) WithArrayOfValues(values []bool) *AlertState_FieldTerminalPathArrayOfValues { 3007 return s.FieldPath().WithIArrayOfValues(values).(*AlertState_FieldTerminalPathArrayOfValues) 3008 } 3009 3010 type AlertInternalFieldPathBuilder struct{} 3011 3012 func NewAlertInternalFieldPathBuilder() AlertInternalFieldPathBuilder { 3013 return AlertInternalFieldPathBuilder{} 3014 } 3015 func (AlertInternalFieldPathBuilder) AlertingLocation() Alert_InternalPathSelectorAlertingLocation { 3016 return Alert_InternalPathSelectorAlertingLocation{} 3017 } 3018 3019 type Alert_InternalPathSelectorAlertingLocation struct{} 3020 3021 func (Alert_InternalPathSelectorAlertingLocation) FieldPath() *AlertInternal_FieldTerminalPath { 3022 return &AlertInternal_FieldTerminalPath{selector: AlertInternal_FieldPathSelectorAlertingLocation} 3023 } 3024 3025 func (s Alert_InternalPathSelectorAlertingLocation) WithValue(value rcommon.PolicySpec_ProcessingLocation) *AlertInternal_FieldTerminalPathValue { 3026 return s.FieldPath().WithIValue(value).(*AlertInternal_FieldTerminalPathValue) 3027 } 3028 3029 func (s Alert_InternalPathSelectorAlertingLocation) WithArrayOfValues(values []rcommon.PolicySpec_ProcessingLocation) *AlertInternal_FieldTerminalPathArrayOfValues { 3030 return s.FieldPath().WithIArrayOfValues(values).(*AlertInternal_FieldTerminalPathArrayOfValues) 3031 } 3032 3033 type AlertTsInfoTimeSeriesFieldPathBuilder struct{} 3034 3035 func NewAlertTsInfoTimeSeriesFieldPathBuilder() AlertTsInfoTimeSeriesFieldPathBuilder { 3036 return AlertTsInfoTimeSeriesFieldPathBuilder{} 3037 } 3038 func (AlertTsInfoTimeSeriesFieldPathBuilder) QueryName() Alert_TsInfo_TimeSeriesPathSelectorQueryName { 3039 return Alert_TsInfo_TimeSeriesPathSelectorQueryName{} 3040 } 3041 func (AlertTsInfoTimeSeriesFieldPathBuilder) Values() Alert_TsInfo_TimeSeriesPathSelectorValues { 3042 return Alert_TsInfo_TimeSeriesPathSelectorValues{} 3043 } 3044 func (AlertTsInfoTimeSeriesFieldPathBuilder) Anomalies() Alert_TsInfo_TimeSeriesPathSelectorAnomalies { 3045 return Alert_TsInfo_TimeSeriesPathSelectorAnomalies{} 3046 } 3047 func (AlertTsInfoTimeSeriesFieldPathBuilder) UpperThreshold() Alert_TsInfo_TimeSeriesPathSelectorUpperThreshold { 3048 return Alert_TsInfo_TimeSeriesPathSelectorUpperThreshold{} 3049 } 3050 func (AlertTsInfoTimeSeriesFieldPathBuilder) LowerThreshold() Alert_TsInfo_TimeSeriesPathSelectorLowerThreshold { 3051 return Alert_TsInfo_TimeSeriesPathSelectorLowerThreshold{} 3052 } 3053 func (AlertTsInfoTimeSeriesFieldPathBuilder) AnomalyThreshold() Alert_TsInfo_TimeSeriesPathSelectorAnomalyThreshold { 3054 return Alert_TsInfo_TimeSeriesPathSelectorAnomalyThreshold{} 3055 } 3056 func (AlertTsInfoTimeSeriesFieldPathBuilder) AfterDuration() Alert_TsInfo_TimeSeriesPathSelectorAfterDuration { 3057 return Alert_TsInfo_TimeSeriesPathSelectorAfterDuration{} 3058 } 3059 3060 type Alert_TsInfo_TimeSeriesPathSelectorQueryName struct{} 3061 3062 func (Alert_TsInfo_TimeSeriesPathSelectorQueryName) FieldPath() *AlertTsInfoTimeSeries_FieldTerminalPath { 3063 return &AlertTsInfoTimeSeries_FieldTerminalPath{selector: AlertTsInfoTimeSeries_FieldPathSelectorQueryName} 3064 } 3065 3066 func (s Alert_TsInfo_TimeSeriesPathSelectorQueryName) WithValue(value string) *AlertTsInfoTimeSeries_FieldTerminalPathValue { 3067 return s.FieldPath().WithIValue(value).(*AlertTsInfoTimeSeries_FieldTerminalPathValue) 3068 } 3069 3070 func (s Alert_TsInfo_TimeSeriesPathSelectorQueryName) WithArrayOfValues(values []string) *AlertTsInfoTimeSeries_FieldTerminalPathArrayOfValues { 3071 return s.FieldPath().WithIArrayOfValues(values).(*AlertTsInfoTimeSeries_FieldTerminalPathArrayOfValues) 3072 } 3073 3074 type Alert_TsInfo_TimeSeriesPathSelectorValues struct{} 3075 3076 func (Alert_TsInfo_TimeSeriesPathSelectorValues) FieldPath() *AlertTsInfoTimeSeries_FieldTerminalPath { 3077 return &AlertTsInfoTimeSeries_FieldTerminalPath{selector: AlertTsInfoTimeSeries_FieldPathSelectorValues} 3078 } 3079 3080 func (s Alert_TsInfo_TimeSeriesPathSelectorValues) WithValue(value []float64) *AlertTsInfoTimeSeries_FieldTerminalPathValue { 3081 return s.FieldPath().WithIValue(value).(*AlertTsInfoTimeSeries_FieldTerminalPathValue) 3082 } 3083 3084 func (s Alert_TsInfo_TimeSeriesPathSelectorValues) WithArrayOfValues(values [][]float64) *AlertTsInfoTimeSeries_FieldTerminalPathArrayOfValues { 3085 return s.FieldPath().WithIArrayOfValues(values).(*AlertTsInfoTimeSeries_FieldTerminalPathArrayOfValues) 3086 } 3087 3088 func (s Alert_TsInfo_TimeSeriesPathSelectorValues) WithItemValue(value float64) *AlertTsInfoTimeSeries_FieldTerminalPathArrayItemValue { 3089 return s.FieldPath().WithIArrayItemValue(value).(*AlertTsInfoTimeSeries_FieldTerminalPathArrayItemValue) 3090 } 3091 3092 type Alert_TsInfo_TimeSeriesPathSelectorAnomalies struct{} 3093 3094 func (Alert_TsInfo_TimeSeriesPathSelectorAnomalies) FieldPath() *AlertTsInfoTimeSeries_FieldTerminalPath { 3095 return &AlertTsInfoTimeSeries_FieldTerminalPath{selector: AlertTsInfoTimeSeries_FieldPathSelectorAnomalies} 3096 } 3097 3098 func (s Alert_TsInfo_TimeSeriesPathSelectorAnomalies) WithValue(value []float64) *AlertTsInfoTimeSeries_FieldTerminalPathValue { 3099 return s.FieldPath().WithIValue(value).(*AlertTsInfoTimeSeries_FieldTerminalPathValue) 3100 } 3101 3102 func (s Alert_TsInfo_TimeSeriesPathSelectorAnomalies) WithArrayOfValues(values [][]float64) *AlertTsInfoTimeSeries_FieldTerminalPathArrayOfValues { 3103 return s.FieldPath().WithIArrayOfValues(values).(*AlertTsInfoTimeSeries_FieldTerminalPathArrayOfValues) 3104 } 3105 3106 func (s Alert_TsInfo_TimeSeriesPathSelectorAnomalies) WithItemValue(value float64) *AlertTsInfoTimeSeries_FieldTerminalPathArrayItemValue { 3107 return s.FieldPath().WithIArrayItemValue(value).(*AlertTsInfoTimeSeries_FieldTerminalPathArrayItemValue) 3108 } 3109 3110 type Alert_TsInfo_TimeSeriesPathSelectorUpperThreshold struct{} 3111 3112 func (Alert_TsInfo_TimeSeriesPathSelectorUpperThreshold) FieldPath() *AlertTsInfoTimeSeries_FieldTerminalPath { 3113 return &AlertTsInfoTimeSeries_FieldTerminalPath{selector: AlertTsInfoTimeSeries_FieldPathSelectorUpperThreshold} 3114 } 3115 3116 func (s Alert_TsInfo_TimeSeriesPathSelectorUpperThreshold) WithValue(value *rcommon.AlertingThreshold) *AlertTsInfoTimeSeries_FieldTerminalPathValue { 3117 return s.FieldPath().WithIValue(value).(*AlertTsInfoTimeSeries_FieldTerminalPathValue) 3118 } 3119 3120 func (s Alert_TsInfo_TimeSeriesPathSelectorUpperThreshold) WithArrayOfValues(values []*rcommon.AlertingThreshold) *AlertTsInfoTimeSeries_FieldTerminalPathArrayOfValues { 3121 return s.FieldPath().WithIArrayOfValues(values).(*AlertTsInfoTimeSeries_FieldTerminalPathArrayOfValues) 3122 } 3123 3124 func (Alert_TsInfo_TimeSeriesPathSelectorUpperThreshold) WithSubPath(subPath rcommon.AlertingThreshold_FieldPath) *AlertTsInfoTimeSeries_FieldSubPath { 3125 return &AlertTsInfoTimeSeries_FieldSubPath{selector: AlertTsInfoTimeSeries_FieldPathSelectorUpperThreshold, subPath: subPath} 3126 } 3127 3128 func (s Alert_TsInfo_TimeSeriesPathSelectorUpperThreshold) WithSubValue(subPathValue rcommon.AlertingThreshold_FieldPathValue) *AlertTsInfoTimeSeries_FieldSubPathValue { 3129 return &AlertTsInfoTimeSeries_FieldSubPathValue{AlertTsInfoTimeSeries_FieldPath: s.WithSubPath(subPathValue), subPathValue: subPathValue} 3130 } 3131 3132 func (s Alert_TsInfo_TimeSeriesPathSelectorUpperThreshold) WithSubArrayOfValues(subPathArrayOfValues rcommon.AlertingThreshold_FieldPathArrayOfValues) *AlertTsInfoTimeSeries_FieldSubPathArrayOfValues { 3133 return &AlertTsInfoTimeSeries_FieldSubPathArrayOfValues{AlertTsInfoTimeSeries_FieldPath: s.WithSubPath(subPathArrayOfValues), subPathArrayOfValues: subPathArrayOfValues} 3134 } 3135 3136 func (s Alert_TsInfo_TimeSeriesPathSelectorUpperThreshold) WithSubArrayItemValue(subPathArrayItemValue rcommon.AlertingThreshold_FieldPathArrayItemValue) *AlertTsInfoTimeSeries_FieldSubPathArrayItemValue { 3137 return &AlertTsInfoTimeSeries_FieldSubPathArrayItemValue{AlertTsInfoTimeSeries_FieldPath: s.WithSubPath(subPathArrayItemValue), subPathItemValue: subPathArrayItemValue} 3138 } 3139 3140 func (Alert_TsInfo_TimeSeriesPathSelectorUpperThreshold) Value() Alert_TsInfo_TimeSeriesPathSelectorUpperThresholdValue { 3141 return Alert_TsInfo_TimeSeriesPathSelectorUpperThresholdValue{} 3142 } 3143 3144 func (Alert_TsInfo_TimeSeriesPathSelectorUpperThreshold) IsInclusive() Alert_TsInfo_TimeSeriesPathSelectorUpperThresholdIsInclusive { 3145 return Alert_TsInfo_TimeSeriesPathSelectorUpperThresholdIsInclusive{} 3146 } 3147 3148 type Alert_TsInfo_TimeSeriesPathSelectorUpperThresholdValue struct{} 3149 3150 func (Alert_TsInfo_TimeSeriesPathSelectorUpperThresholdValue) FieldPath() *AlertTsInfoTimeSeries_FieldSubPath { 3151 return &AlertTsInfoTimeSeries_FieldSubPath{ 3152 selector: AlertTsInfoTimeSeries_FieldPathSelectorUpperThreshold, 3153 subPath: rcommon.NewAlertingThresholdFieldPathBuilder().Value().FieldPath(), 3154 } 3155 } 3156 3157 func (s Alert_TsInfo_TimeSeriesPathSelectorUpperThresholdValue) WithValue(value float64) *AlertTsInfoTimeSeries_FieldSubPathValue { 3158 return s.FieldPath().WithIValue(value).(*AlertTsInfoTimeSeries_FieldSubPathValue) 3159 } 3160 3161 func (s Alert_TsInfo_TimeSeriesPathSelectorUpperThresholdValue) WithArrayOfValues(values []float64) *AlertTsInfoTimeSeries_FieldSubPathArrayOfValues { 3162 return s.FieldPath().WithIArrayOfValues(values).(*AlertTsInfoTimeSeries_FieldSubPathArrayOfValues) 3163 } 3164 3165 type Alert_TsInfo_TimeSeriesPathSelectorUpperThresholdIsInclusive struct{} 3166 3167 func (Alert_TsInfo_TimeSeriesPathSelectorUpperThresholdIsInclusive) FieldPath() *AlertTsInfoTimeSeries_FieldSubPath { 3168 return &AlertTsInfoTimeSeries_FieldSubPath{ 3169 selector: AlertTsInfoTimeSeries_FieldPathSelectorUpperThreshold, 3170 subPath: rcommon.NewAlertingThresholdFieldPathBuilder().IsInclusive().FieldPath(), 3171 } 3172 } 3173 3174 func (s Alert_TsInfo_TimeSeriesPathSelectorUpperThresholdIsInclusive) WithValue(value bool) *AlertTsInfoTimeSeries_FieldSubPathValue { 3175 return s.FieldPath().WithIValue(value).(*AlertTsInfoTimeSeries_FieldSubPathValue) 3176 } 3177 3178 func (s Alert_TsInfo_TimeSeriesPathSelectorUpperThresholdIsInclusive) WithArrayOfValues(values []bool) *AlertTsInfoTimeSeries_FieldSubPathArrayOfValues { 3179 return s.FieldPath().WithIArrayOfValues(values).(*AlertTsInfoTimeSeries_FieldSubPathArrayOfValues) 3180 } 3181 3182 type Alert_TsInfo_TimeSeriesPathSelectorLowerThreshold struct{} 3183 3184 func (Alert_TsInfo_TimeSeriesPathSelectorLowerThreshold) FieldPath() *AlertTsInfoTimeSeries_FieldTerminalPath { 3185 return &AlertTsInfoTimeSeries_FieldTerminalPath{selector: AlertTsInfoTimeSeries_FieldPathSelectorLowerThreshold} 3186 } 3187 3188 func (s Alert_TsInfo_TimeSeriesPathSelectorLowerThreshold) WithValue(value *rcommon.AlertingThreshold) *AlertTsInfoTimeSeries_FieldTerminalPathValue { 3189 return s.FieldPath().WithIValue(value).(*AlertTsInfoTimeSeries_FieldTerminalPathValue) 3190 } 3191 3192 func (s Alert_TsInfo_TimeSeriesPathSelectorLowerThreshold) WithArrayOfValues(values []*rcommon.AlertingThreshold) *AlertTsInfoTimeSeries_FieldTerminalPathArrayOfValues { 3193 return s.FieldPath().WithIArrayOfValues(values).(*AlertTsInfoTimeSeries_FieldTerminalPathArrayOfValues) 3194 } 3195 3196 func (Alert_TsInfo_TimeSeriesPathSelectorLowerThreshold) WithSubPath(subPath rcommon.AlertingThreshold_FieldPath) *AlertTsInfoTimeSeries_FieldSubPath { 3197 return &AlertTsInfoTimeSeries_FieldSubPath{selector: AlertTsInfoTimeSeries_FieldPathSelectorLowerThreshold, subPath: subPath} 3198 } 3199 3200 func (s Alert_TsInfo_TimeSeriesPathSelectorLowerThreshold) WithSubValue(subPathValue rcommon.AlertingThreshold_FieldPathValue) *AlertTsInfoTimeSeries_FieldSubPathValue { 3201 return &AlertTsInfoTimeSeries_FieldSubPathValue{AlertTsInfoTimeSeries_FieldPath: s.WithSubPath(subPathValue), subPathValue: subPathValue} 3202 } 3203 3204 func (s Alert_TsInfo_TimeSeriesPathSelectorLowerThreshold) WithSubArrayOfValues(subPathArrayOfValues rcommon.AlertingThreshold_FieldPathArrayOfValues) *AlertTsInfoTimeSeries_FieldSubPathArrayOfValues { 3205 return &AlertTsInfoTimeSeries_FieldSubPathArrayOfValues{AlertTsInfoTimeSeries_FieldPath: s.WithSubPath(subPathArrayOfValues), subPathArrayOfValues: subPathArrayOfValues} 3206 } 3207 3208 func (s Alert_TsInfo_TimeSeriesPathSelectorLowerThreshold) WithSubArrayItemValue(subPathArrayItemValue rcommon.AlertingThreshold_FieldPathArrayItemValue) *AlertTsInfoTimeSeries_FieldSubPathArrayItemValue { 3209 return &AlertTsInfoTimeSeries_FieldSubPathArrayItemValue{AlertTsInfoTimeSeries_FieldPath: s.WithSubPath(subPathArrayItemValue), subPathItemValue: subPathArrayItemValue} 3210 } 3211 3212 func (Alert_TsInfo_TimeSeriesPathSelectorLowerThreshold) Value() Alert_TsInfo_TimeSeriesPathSelectorLowerThresholdValue { 3213 return Alert_TsInfo_TimeSeriesPathSelectorLowerThresholdValue{} 3214 } 3215 3216 func (Alert_TsInfo_TimeSeriesPathSelectorLowerThreshold) IsInclusive() Alert_TsInfo_TimeSeriesPathSelectorLowerThresholdIsInclusive { 3217 return Alert_TsInfo_TimeSeriesPathSelectorLowerThresholdIsInclusive{} 3218 } 3219 3220 type Alert_TsInfo_TimeSeriesPathSelectorLowerThresholdValue struct{} 3221 3222 func (Alert_TsInfo_TimeSeriesPathSelectorLowerThresholdValue) FieldPath() *AlertTsInfoTimeSeries_FieldSubPath { 3223 return &AlertTsInfoTimeSeries_FieldSubPath{ 3224 selector: AlertTsInfoTimeSeries_FieldPathSelectorLowerThreshold, 3225 subPath: rcommon.NewAlertingThresholdFieldPathBuilder().Value().FieldPath(), 3226 } 3227 } 3228 3229 func (s Alert_TsInfo_TimeSeriesPathSelectorLowerThresholdValue) WithValue(value float64) *AlertTsInfoTimeSeries_FieldSubPathValue { 3230 return s.FieldPath().WithIValue(value).(*AlertTsInfoTimeSeries_FieldSubPathValue) 3231 } 3232 3233 func (s Alert_TsInfo_TimeSeriesPathSelectorLowerThresholdValue) WithArrayOfValues(values []float64) *AlertTsInfoTimeSeries_FieldSubPathArrayOfValues { 3234 return s.FieldPath().WithIArrayOfValues(values).(*AlertTsInfoTimeSeries_FieldSubPathArrayOfValues) 3235 } 3236 3237 type Alert_TsInfo_TimeSeriesPathSelectorLowerThresholdIsInclusive struct{} 3238 3239 func (Alert_TsInfo_TimeSeriesPathSelectorLowerThresholdIsInclusive) FieldPath() *AlertTsInfoTimeSeries_FieldSubPath { 3240 return &AlertTsInfoTimeSeries_FieldSubPath{ 3241 selector: AlertTsInfoTimeSeries_FieldPathSelectorLowerThreshold, 3242 subPath: rcommon.NewAlertingThresholdFieldPathBuilder().IsInclusive().FieldPath(), 3243 } 3244 } 3245 3246 func (s Alert_TsInfo_TimeSeriesPathSelectorLowerThresholdIsInclusive) WithValue(value bool) *AlertTsInfoTimeSeries_FieldSubPathValue { 3247 return s.FieldPath().WithIValue(value).(*AlertTsInfoTimeSeries_FieldSubPathValue) 3248 } 3249 3250 func (s Alert_TsInfo_TimeSeriesPathSelectorLowerThresholdIsInclusive) WithArrayOfValues(values []bool) *AlertTsInfoTimeSeries_FieldSubPathArrayOfValues { 3251 return s.FieldPath().WithIArrayOfValues(values).(*AlertTsInfoTimeSeries_FieldSubPathArrayOfValues) 3252 } 3253 3254 type Alert_TsInfo_TimeSeriesPathSelectorAnomalyThreshold struct{} 3255 3256 func (Alert_TsInfo_TimeSeriesPathSelectorAnomalyThreshold) FieldPath() *AlertTsInfoTimeSeries_FieldTerminalPath { 3257 return &AlertTsInfoTimeSeries_FieldTerminalPath{selector: AlertTsInfoTimeSeries_FieldPathSelectorAnomalyThreshold} 3258 } 3259 3260 func (s Alert_TsInfo_TimeSeriesPathSelectorAnomalyThreshold) WithValue(value float64) *AlertTsInfoTimeSeries_FieldTerminalPathValue { 3261 return s.FieldPath().WithIValue(value).(*AlertTsInfoTimeSeries_FieldTerminalPathValue) 3262 } 3263 3264 func (s Alert_TsInfo_TimeSeriesPathSelectorAnomalyThreshold) WithArrayOfValues(values []float64) *AlertTsInfoTimeSeries_FieldTerminalPathArrayOfValues { 3265 return s.FieldPath().WithIArrayOfValues(values).(*AlertTsInfoTimeSeries_FieldTerminalPathArrayOfValues) 3266 } 3267 3268 type Alert_TsInfo_TimeSeriesPathSelectorAfterDuration struct{} 3269 3270 func (Alert_TsInfo_TimeSeriesPathSelectorAfterDuration) FieldPath() *AlertTsInfoTimeSeries_FieldTerminalPath { 3271 return &AlertTsInfoTimeSeries_FieldTerminalPath{selector: AlertTsInfoTimeSeries_FieldPathSelectorAfterDuration} 3272 } 3273 3274 func (s Alert_TsInfo_TimeSeriesPathSelectorAfterDuration) WithValue(value *durationpb.Duration) *AlertTsInfoTimeSeries_FieldTerminalPathValue { 3275 return s.FieldPath().WithIValue(value).(*AlertTsInfoTimeSeries_FieldTerminalPathValue) 3276 } 3277 3278 func (s Alert_TsInfo_TimeSeriesPathSelectorAfterDuration) WithArrayOfValues(values []*durationpb.Duration) *AlertTsInfoTimeSeries_FieldTerminalPathArrayOfValues { 3279 return s.FieldPath().WithIArrayOfValues(values).(*AlertTsInfoTimeSeries_FieldTerminalPathArrayOfValues) 3280 } 3281 3282 type AlertStateNotificationFieldPathBuilder struct{} 3283 3284 func NewAlertStateNotificationFieldPathBuilder() AlertStateNotificationFieldPathBuilder { 3285 return AlertStateNotificationFieldPathBuilder{} 3286 } 3287 func (AlertStateNotificationFieldPathBuilder) Kind() Alert_State_NotificationPathSelectorKind { 3288 return Alert_State_NotificationPathSelectorKind{} 3289 } 3290 func (AlertStateNotificationFieldPathBuilder) PendingChannels() Alert_State_NotificationPathSelectorPendingChannels { 3291 return Alert_State_NotificationPathSelectorPendingChannels{} 3292 } 3293 3294 type Alert_State_NotificationPathSelectorKind struct{} 3295 3296 func (Alert_State_NotificationPathSelectorKind) FieldPath() *AlertStateNotification_FieldTerminalPath { 3297 return &AlertStateNotification_FieldTerminalPath{selector: AlertStateNotification_FieldPathSelectorKind} 3298 } 3299 3300 func (s Alert_State_NotificationPathSelectorKind) WithValue(value rcommon.NotificationChannelSpec_EventKind) *AlertStateNotification_FieldTerminalPathValue { 3301 return s.FieldPath().WithIValue(value).(*AlertStateNotification_FieldTerminalPathValue) 3302 } 3303 3304 func (s Alert_State_NotificationPathSelectorKind) WithArrayOfValues(values []rcommon.NotificationChannelSpec_EventKind) *AlertStateNotification_FieldTerminalPathArrayOfValues { 3305 return s.FieldPath().WithIArrayOfValues(values).(*AlertStateNotification_FieldTerminalPathArrayOfValues) 3306 } 3307 3308 type Alert_State_NotificationPathSelectorPendingChannels struct{} 3309 3310 func (Alert_State_NotificationPathSelectorPendingChannels) FieldPath() *AlertStateNotification_FieldTerminalPath { 3311 return &AlertStateNotification_FieldTerminalPath{selector: AlertStateNotification_FieldPathSelectorPendingChannels} 3312 } 3313 3314 func (s Alert_State_NotificationPathSelectorPendingChannels) WithValue(value []*notification_channel.Reference) *AlertStateNotification_FieldTerminalPathValue { 3315 return s.FieldPath().WithIValue(value).(*AlertStateNotification_FieldTerminalPathValue) 3316 } 3317 3318 func (s Alert_State_NotificationPathSelectorPendingChannels) WithArrayOfValues(values [][]*notification_channel.Reference) *AlertStateNotification_FieldTerminalPathArrayOfValues { 3319 return s.FieldPath().WithIArrayOfValues(values).(*AlertStateNotification_FieldTerminalPathArrayOfValues) 3320 } 3321 3322 func (s Alert_State_NotificationPathSelectorPendingChannels) WithItemValue(value *notification_channel.Reference) *AlertStateNotification_FieldTerminalPathArrayItemValue { 3323 return s.FieldPath().WithIArrayItemValue(value).(*AlertStateNotification_FieldTerminalPathArrayItemValue) 3324 }