github.com/cloudwan/edgelq-sdk@v1.15.4/monitoring/resources/v3/alerting_condition/alerting_condition.pb.fieldpathbuilder.go (about) 1 // Code generated by protoc-gen-goten-object 2 // File: edgelq/monitoring/proto/v3/alerting_condition.proto 3 // DO NOT EDIT!!! 4 5 package alerting_condition 6 7 // proto imports 8 import ( 9 alerting_policy "github.com/cloudwan/edgelq-sdk/monitoring/resources/v3/alerting_policy" 10 common "github.com/cloudwan/edgelq-sdk/monitoring/resources/v3/common" 11 notification_channel "github.com/cloudwan/edgelq-sdk/monitoring/resources/v3/notification_channel" 12 project "github.com/cloudwan/edgelq-sdk/monitoring/resources/v3/project" 13 meta "github.com/cloudwan/goten-sdk/types/meta" 14 multi_region_policy "github.com/cloudwan/goten-sdk/types/multi_region_policy" 15 durationpb "google.golang.org/protobuf/types/known/durationpb" 16 timestamppb "google.golang.org/protobuf/types/known/timestamppb" 17 ) 18 19 // make sure we're using proto imports 20 var ( 21 _ = &alerting_policy.AlertingPolicy{} 22 _ = &common.LabelDescriptor{} 23 _ = ¬ification_channel.NotificationChannel{} 24 _ = &project.Project{} 25 _ = &durationpb.Duration{} 26 _ = ×tamppb.Timestamp{} 27 _ = &meta.Meta{} 28 _ = &multi_region_policy.MultiRegionPolicy{} 29 ) 30 31 type AlertingConditionFieldPathBuilder struct{} 32 33 func NewAlertingConditionFieldPathBuilder() AlertingConditionFieldPathBuilder { 34 return AlertingConditionFieldPathBuilder{} 35 } 36 func (AlertingConditionFieldPathBuilder) Name() AlertingConditionPathSelectorName { 37 return AlertingConditionPathSelectorName{} 38 } 39 func (AlertingConditionFieldPathBuilder) Metadata() AlertingConditionPathSelectorMetadata { 40 return AlertingConditionPathSelectorMetadata{} 41 } 42 func (AlertingConditionFieldPathBuilder) DisplayName() AlertingConditionPathSelectorDisplayName { 43 return AlertingConditionPathSelectorDisplayName{} 44 } 45 func (AlertingConditionFieldPathBuilder) Description() AlertingConditionPathSelectorDescription { 46 return AlertingConditionPathSelectorDescription{} 47 } 48 func (AlertingConditionFieldPathBuilder) Spec() AlertingConditionPathSelectorSpec { 49 return AlertingConditionPathSelectorSpec{} 50 } 51 func (AlertingConditionFieldPathBuilder) State() AlertingConditionPathSelectorState { 52 return AlertingConditionPathSelectorState{} 53 } 54 55 type AlertingConditionPathSelectorName struct{} 56 57 func (AlertingConditionPathSelectorName) FieldPath() *AlertingCondition_FieldTerminalPath { 58 return &AlertingCondition_FieldTerminalPath{selector: AlertingCondition_FieldPathSelectorName} 59 } 60 61 func (s AlertingConditionPathSelectorName) WithValue(value *Name) *AlertingCondition_FieldTerminalPathValue { 62 return s.FieldPath().WithIValue(value).(*AlertingCondition_FieldTerminalPathValue) 63 } 64 65 func (s AlertingConditionPathSelectorName) WithArrayOfValues(values []*Name) *AlertingCondition_FieldTerminalPathArrayOfValues { 66 return s.FieldPath().WithIArrayOfValues(values).(*AlertingCondition_FieldTerminalPathArrayOfValues) 67 } 68 69 type AlertingConditionPathSelectorMetadata struct{} 70 71 func (AlertingConditionPathSelectorMetadata) FieldPath() *AlertingCondition_FieldTerminalPath { 72 return &AlertingCondition_FieldTerminalPath{selector: AlertingCondition_FieldPathSelectorMetadata} 73 } 74 75 func (s AlertingConditionPathSelectorMetadata) WithValue(value *meta.Meta) *AlertingCondition_FieldTerminalPathValue { 76 return s.FieldPath().WithIValue(value).(*AlertingCondition_FieldTerminalPathValue) 77 } 78 79 func (s AlertingConditionPathSelectorMetadata) WithArrayOfValues(values []*meta.Meta) *AlertingCondition_FieldTerminalPathArrayOfValues { 80 return s.FieldPath().WithIArrayOfValues(values).(*AlertingCondition_FieldTerminalPathArrayOfValues) 81 } 82 83 func (AlertingConditionPathSelectorMetadata) WithSubPath(subPath meta.Meta_FieldPath) *AlertingCondition_FieldSubPath { 84 return &AlertingCondition_FieldSubPath{selector: AlertingCondition_FieldPathSelectorMetadata, subPath: subPath} 85 } 86 87 func (s AlertingConditionPathSelectorMetadata) WithSubValue(subPathValue meta.Meta_FieldPathValue) *AlertingCondition_FieldSubPathValue { 88 return &AlertingCondition_FieldSubPathValue{AlertingCondition_FieldPath: s.WithSubPath(subPathValue), subPathValue: subPathValue} 89 } 90 91 func (s AlertingConditionPathSelectorMetadata) WithSubArrayOfValues(subPathArrayOfValues meta.Meta_FieldPathArrayOfValues) *AlertingCondition_FieldSubPathArrayOfValues { 92 return &AlertingCondition_FieldSubPathArrayOfValues{AlertingCondition_FieldPath: s.WithSubPath(subPathArrayOfValues), subPathArrayOfValues: subPathArrayOfValues} 93 } 94 95 func (s AlertingConditionPathSelectorMetadata) WithSubArrayItemValue(subPathArrayItemValue meta.Meta_FieldPathArrayItemValue) *AlertingCondition_FieldSubPathArrayItemValue { 96 return &AlertingCondition_FieldSubPathArrayItemValue{AlertingCondition_FieldPath: s.WithSubPath(subPathArrayItemValue), subPathItemValue: subPathArrayItemValue} 97 } 98 99 func (AlertingConditionPathSelectorMetadata) CreateTime() AlertingConditionPathSelectorMetadataCreateTime { 100 return AlertingConditionPathSelectorMetadataCreateTime{} 101 } 102 103 func (AlertingConditionPathSelectorMetadata) UpdateTime() AlertingConditionPathSelectorMetadataUpdateTime { 104 return AlertingConditionPathSelectorMetadataUpdateTime{} 105 } 106 107 func (AlertingConditionPathSelectorMetadata) DeleteTime() AlertingConditionPathSelectorMetadataDeleteTime { 108 return AlertingConditionPathSelectorMetadataDeleteTime{} 109 } 110 111 func (AlertingConditionPathSelectorMetadata) Uuid() AlertingConditionPathSelectorMetadataUuid { 112 return AlertingConditionPathSelectorMetadataUuid{} 113 } 114 115 func (AlertingConditionPathSelectorMetadata) Tags() AlertingConditionPathSelectorMetadataTags { 116 return AlertingConditionPathSelectorMetadataTags{} 117 } 118 119 func (AlertingConditionPathSelectorMetadata) Labels() AlertingConditionPathSelectorMetadataLabels { 120 return AlertingConditionPathSelectorMetadataLabels{} 121 } 122 123 func (AlertingConditionPathSelectorMetadata) Annotations() AlertingConditionPathSelectorMetadataAnnotations { 124 return AlertingConditionPathSelectorMetadataAnnotations{} 125 } 126 127 func (AlertingConditionPathSelectorMetadata) Generation() AlertingConditionPathSelectorMetadataGeneration { 128 return AlertingConditionPathSelectorMetadataGeneration{} 129 } 130 131 func (AlertingConditionPathSelectorMetadata) ResourceVersion() AlertingConditionPathSelectorMetadataResourceVersion { 132 return AlertingConditionPathSelectorMetadataResourceVersion{} 133 } 134 135 func (AlertingConditionPathSelectorMetadata) OwnerReferences() AlertingConditionPathSelectorMetadataOwnerReferences { 136 return AlertingConditionPathSelectorMetadataOwnerReferences{} 137 } 138 139 func (AlertingConditionPathSelectorMetadata) Shards() AlertingConditionPathSelectorMetadataShards { 140 return AlertingConditionPathSelectorMetadataShards{} 141 } 142 143 func (AlertingConditionPathSelectorMetadata) Syncing() AlertingConditionPathSelectorMetadataSyncing { 144 return AlertingConditionPathSelectorMetadataSyncing{} 145 } 146 147 func (AlertingConditionPathSelectorMetadata) Lifecycle() AlertingConditionPathSelectorMetadataLifecycle { 148 return AlertingConditionPathSelectorMetadataLifecycle{} 149 } 150 151 func (AlertingConditionPathSelectorMetadata) Services() AlertingConditionPathSelectorMetadataServices { 152 return AlertingConditionPathSelectorMetadataServices{} 153 } 154 155 type AlertingConditionPathSelectorMetadataCreateTime struct{} 156 157 func (AlertingConditionPathSelectorMetadataCreateTime) FieldPath() *AlertingCondition_FieldSubPath { 158 return &AlertingCondition_FieldSubPath{ 159 selector: AlertingCondition_FieldPathSelectorMetadata, 160 subPath: meta.NewMetaFieldPathBuilder().CreateTime().FieldPath(), 161 } 162 } 163 164 func (s AlertingConditionPathSelectorMetadataCreateTime) WithValue(value *timestamppb.Timestamp) *AlertingCondition_FieldSubPathValue { 165 return s.FieldPath().WithIValue(value).(*AlertingCondition_FieldSubPathValue) 166 } 167 168 func (s AlertingConditionPathSelectorMetadataCreateTime) WithArrayOfValues(values []*timestamppb.Timestamp) *AlertingCondition_FieldSubPathArrayOfValues { 169 return s.FieldPath().WithIArrayOfValues(values).(*AlertingCondition_FieldSubPathArrayOfValues) 170 } 171 172 type AlertingConditionPathSelectorMetadataUpdateTime struct{} 173 174 func (AlertingConditionPathSelectorMetadataUpdateTime) FieldPath() *AlertingCondition_FieldSubPath { 175 return &AlertingCondition_FieldSubPath{ 176 selector: AlertingCondition_FieldPathSelectorMetadata, 177 subPath: meta.NewMetaFieldPathBuilder().UpdateTime().FieldPath(), 178 } 179 } 180 181 func (s AlertingConditionPathSelectorMetadataUpdateTime) WithValue(value *timestamppb.Timestamp) *AlertingCondition_FieldSubPathValue { 182 return s.FieldPath().WithIValue(value).(*AlertingCondition_FieldSubPathValue) 183 } 184 185 func (s AlertingConditionPathSelectorMetadataUpdateTime) WithArrayOfValues(values []*timestamppb.Timestamp) *AlertingCondition_FieldSubPathArrayOfValues { 186 return s.FieldPath().WithIArrayOfValues(values).(*AlertingCondition_FieldSubPathArrayOfValues) 187 } 188 189 type AlertingConditionPathSelectorMetadataDeleteTime struct{} 190 191 func (AlertingConditionPathSelectorMetadataDeleteTime) FieldPath() *AlertingCondition_FieldSubPath { 192 return &AlertingCondition_FieldSubPath{ 193 selector: AlertingCondition_FieldPathSelectorMetadata, 194 subPath: meta.NewMetaFieldPathBuilder().DeleteTime().FieldPath(), 195 } 196 } 197 198 func (s AlertingConditionPathSelectorMetadataDeleteTime) WithValue(value *timestamppb.Timestamp) *AlertingCondition_FieldSubPathValue { 199 return s.FieldPath().WithIValue(value).(*AlertingCondition_FieldSubPathValue) 200 } 201 202 func (s AlertingConditionPathSelectorMetadataDeleteTime) WithArrayOfValues(values []*timestamppb.Timestamp) *AlertingCondition_FieldSubPathArrayOfValues { 203 return s.FieldPath().WithIArrayOfValues(values).(*AlertingCondition_FieldSubPathArrayOfValues) 204 } 205 206 type AlertingConditionPathSelectorMetadataUuid struct{} 207 208 func (AlertingConditionPathSelectorMetadataUuid) FieldPath() *AlertingCondition_FieldSubPath { 209 return &AlertingCondition_FieldSubPath{ 210 selector: AlertingCondition_FieldPathSelectorMetadata, 211 subPath: meta.NewMetaFieldPathBuilder().Uuid().FieldPath(), 212 } 213 } 214 215 func (s AlertingConditionPathSelectorMetadataUuid) WithValue(value string) *AlertingCondition_FieldSubPathValue { 216 return s.FieldPath().WithIValue(value).(*AlertingCondition_FieldSubPathValue) 217 } 218 219 func (s AlertingConditionPathSelectorMetadataUuid) WithArrayOfValues(values []string) *AlertingCondition_FieldSubPathArrayOfValues { 220 return s.FieldPath().WithIArrayOfValues(values).(*AlertingCondition_FieldSubPathArrayOfValues) 221 } 222 223 type AlertingConditionPathSelectorMetadataTags struct{} 224 225 func (AlertingConditionPathSelectorMetadataTags) FieldPath() *AlertingCondition_FieldSubPath { 226 return &AlertingCondition_FieldSubPath{ 227 selector: AlertingCondition_FieldPathSelectorMetadata, 228 subPath: meta.NewMetaFieldPathBuilder().Tags().FieldPath(), 229 } 230 } 231 232 func (s AlertingConditionPathSelectorMetadataTags) WithValue(value []string) *AlertingCondition_FieldSubPathValue { 233 return s.FieldPath().WithIValue(value).(*AlertingCondition_FieldSubPathValue) 234 } 235 236 func (s AlertingConditionPathSelectorMetadataTags) WithArrayOfValues(values [][]string) *AlertingCondition_FieldSubPathArrayOfValues { 237 return s.FieldPath().WithIArrayOfValues(values).(*AlertingCondition_FieldSubPathArrayOfValues) 238 } 239 240 func (s AlertingConditionPathSelectorMetadataTags) WithItemValue(value string) *AlertingCondition_FieldSubPathArrayItemValue { 241 return s.FieldPath().WithIArrayItemValue(value).(*AlertingCondition_FieldSubPathArrayItemValue) 242 } 243 244 type AlertingConditionPathSelectorMetadataLabels struct{} 245 246 func (AlertingConditionPathSelectorMetadataLabels) FieldPath() *AlertingCondition_FieldSubPath { 247 return &AlertingCondition_FieldSubPath{ 248 selector: AlertingCondition_FieldPathSelectorMetadata, 249 subPath: meta.NewMetaFieldPathBuilder().Labels().FieldPath(), 250 } 251 } 252 253 func (s AlertingConditionPathSelectorMetadataLabels) WithValue(value map[string]string) *AlertingCondition_FieldSubPathValue { 254 return s.FieldPath().WithIValue(value).(*AlertingCondition_FieldSubPathValue) 255 } 256 257 func (s AlertingConditionPathSelectorMetadataLabels) WithArrayOfValues(values []map[string]string) *AlertingCondition_FieldSubPathArrayOfValues { 258 return s.FieldPath().WithIArrayOfValues(values).(*AlertingCondition_FieldSubPathArrayOfValues) 259 } 260 261 func (AlertingConditionPathSelectorMetadataLabels) WithKey(key string) AlertingConditionMapPathSelectorMetadataLabels { 262 return AlertingConditionMapPathSelectorMetadataLabels{key: key} 263 } 264 265 type AlertingConditionMapPathSelectorMetadataLabels struct { 266 key string 267 } 268 269 func (s AlertingConditionMapPathSelectorMetadataLabels) FieldPath() *AlertingCondition_FieldSubPath { 270 return &AlertingCondition_FieldSubPath{ 271 selector: AlertingCondition_FieldPathSelectorMetadata, 272 subPath: meta.NewMetaFieldPathBuilder().Labels().WithKey(s.key).FieldPath(), 273 } 274 } 275 276 func (s AlertingConditionMapPathSelectorMetadataLabels) WithValue(value string) *AlertingCondition_FieldSubPathValue { 277 return s.FieldPath().WithIValue(value).(*AlertingCondition_FieldSubPathValue) 278 } 279 280 func (s AlertingConditionMapPathSelectorMetadataLabels) WithArrayOfValues(values []string) *AlertingCondition_FieldSubPathArrayOfValues { 281 return s.FieldPath().WithIArrayOfValues(values).(*AlertingCondition_FieldSubPathArrayOfValues) 282 } 283 284 type AlertingConditionPathSelectorMetadataAnnotations struct{} 285 286 func (AlertingConditionPathSelectorMetadataAnnotations) FieldPath() *AlertingCondition_FieldSubPath { 287 return &AlertingCondition_FieldSubPath{ 288 selector: AlertingCondition_FieldPathSelectorMetadata, 289 subPath: meta.NewMetaFieldPathBuilder().Annotations().FieldPath(), 290 } 291 } 292 293 func (s AlertingConditionPathSelectorMetadataAnnotations) WithValue(value map[string]string) *AlertingCondition_FieldSubPathValue { 294 return s.FieldPath().WithIValue(value).(*AlertingCondition_FieldSubPathValue) 295 } 296 297 func (s AlertingConditionPathSelectorMetadataAnnotations) WithArrayOfValues(values []map[string]string) *AlertingCondition_FieldSubPathArrayOfValues { 298 return s.FieldPath().WithIArrayOfValues(values).(*AlertingCondition_FieldSubPathArrayOfValues) 299 } 300 301 func (AlertingConditionPathSelectorMetadataAnnotations) WithKey(key string) AlertingConditionMapPathSelectorMetadataAnnotations { 302 return AlertingConditionMapPathSelectorMetadataAnnotations{key: key} 303 } 304 305 type AlertingConditionMapPathSelectorMetadataAnnotations struct { 306 key string 307 } 308 309 func (s AlertingConditionMapPathSelectorMetadataAnnotations) FieldPath() *AlertingCondition_FieldSubPath { 310 return &AlertingCondition_FieldSubPath{ 311 selector: AlertingCondition_FieldPathSelectorMetadata, 312 subPath: meta.NewMetaFieldPathBuilder().Annotations().WithKey(s.key).FieldPath(), 313 } 314 } 315 316 func (s AlertingConditionMapPathSelectorMetadataAnnotations) WithValue(value string) *AlertingCondition_FieldSubPathValue { 317 return s.FieldPath().WithIValue(value).(*AlertingCondition_FieldSubPathValue) 318 } 319 320 func (s AlertingConditionMapPathSelectorMetadataAnnotations) WithArrayOfValues(values []string) *AlertingCondition_FieldSubPathArrayOfValues { 321 return s.FieldPath().WithIArrayOfValues(values).(*AlertingCondition_FieldSubPathArrayOfValues) 322 } 323 324 type AlertingConditionPathSelectorMetadataGeneration struct{} 325 326 func (AlertingConditionPathSelectorMetadataGeneration) FieldPath() *AlertingCondition_FieldSubPath { 327 return &AlertingCondition_FieldSubPath{ 328 selector: AlertingCondition_FieldPathSelectorMetadata, 329 subPath: meta.NewMetaFieldPathBuilder().Generation().FieldPath(), 330 } 331 } 332 333 func (s AlertingConditionPathSelectorMetadataGeneration) WithValue(value int64) *AlertingCondition_FieldSubPathValue { 334 return s.FieldPath().WithIValue(value).(*AlertingCondition_FieldSubPathValue) 335 } 336 337 func (s AlertingConditionPathSelectorMetadataGeneration) WithArrayOfValues(values []int64) *AlertingCondition_FieldSubPathArrayOfValues { 338 return s.FieldPath().WithIArrayOfValues(values).(*AlertingCondition_FieldSubPathArrayOfValues) 339 } 340 341 type AlertingConditionPathSelectorMetadataResourceVersion struct{} 342 343 func (AlertingConditionPathSelectorMetadataResourceVersion) FieldPath() *AlertingCondition_FieldSubPath { 344 return &AlertingCondition_FieldSubPath{ 345 selector: AlertingCondition_FieldPathSelectorMetadata, 346 subPath: meta.NewMetaFieldPathBuilder().ResourceVersion().FieldPath(), 347 } 348 } 349 350 func (s AlertingConditionPathSelectorMetadataResourceVersion) WithValue(value string) *AlertingCondition_FieldSubPathValue { 351 return s.FieldPath().WithIValue(value).(*AlertingCondition_FieldSubPathValue) 352 } 353 354 func (s AlertingConditionPathSelectorMetadataResourceVersion) WithArrayOfValues(values []string) *AlertingCondition_FieldSubPathArrayOfValues { 355 return s.FieldPath().WithIArrayOfValues(values).(*AlertingCondition_FieldSubPathArrayOfValues) 356 } 357 358 type AlertingConditionPathSelectorMetadataOwnerReferences struct{} 359 360 func (AlertingConditionPathSelectorMetadataOwnerReferences) FieldPath() *AlertingCondition_FieldSubPath { 361 return &AlertingCondition_FieldSubPath{ 362 selector: AlertingCondition_FieldPathSelectorMetadata, 363 subPath: meta.NewMetaFieldPathBuilder().OwnerReferences().FieldPath(), 364 } 365 } 366 367 func (s AlertingConditionPathSelectorMetadataOwnerReferences) WithValue(value []*meta.OwnerReference) *AlertingCondition_FieldSubPathValue { 368 return s.FieldPath().WithIValue(value).(*AlertingCondition_FieldSubPathValue) 369 } 370 371 func (s AlertingConditionPathSelectorMetadataOwnerReferences) WithArrayOfValues(values [][]*meta.OwnerReference) *AlertingCondition_FieldSubPathArrayOfValues { 372 return s.FieldPath().WithIArrayOfValues(values).(*AlertingCondition_FieldSubPathArrayOfValues) 373 } 374 375 func (s AlertingConditionPathSelectorMetadataOwnerReferences) WithItemValue(value *meta.OwnerReference) *AlertingCondition_FieldSubPathArrayItemValue { 376 return s.FieldPath().WithIArrayItemValue(value).(*AlertingCondition_FieldSubPathArrayItemValue) 377 } 378 379 func (AlertingConditionPathSelectorMetadataOwnerReferences) Kind() AlertingConditionPathSelectorMetadataOwnerReferencesKind { 380 return AlertingConditionPathSelectorMetadataOwnerReferencesKind{} 381 } 382 383 func (AlertingConditionPathSelectorMetadataOwnerReferences) Version() AlertingConditionPathSelectorMetadataOwnerReferencesVersion { 384 return AlertingConditionPathSelectorMetadataOwnerReferencesVersion{} 385 } 386 387 func (AlertingConditionPathSelectorMetadataOwnerReferences) Name() AlertingConditionPathSelectorMetadataOwnerReferencesName { 388 return AlertingConditionPathSelectorMetadataOwnerReferencesName{} 389 } 390 391 func (AlertingConditionPathSelectorMetadataOwnerReferences) Region() AlertingConditionPathSelectorMetadataOwnerReferencesRegion { 392 return AlertingConditionPathSelectorMetadataOwnerReferencesRegion{} 393 } 394 395 func (AlertingConditionPathSelectorMetadataOwnerReferences) Controller() AlertingConditionPathSelectorMetadataOwnerReferencesController { 396 return AlertingConditionPathSelectorMetadataOwnerReferencesController{} 397 } 398 399 func (AlertingConditionPathSelectorMetadataOwnerReferences) RequiresOwnerReference() AlertingConditionPathSelectorMetadataOwnerReferencesRequiresOwnerReference { 400 return AlertingConditionPathSelectorMetadataOwnerReferencesRequiresOwnerReference{} 401 } 402 403 func (AlertingConditionPathSelectorMetadataOwnerReferences) UnsetOnDelete() AlertingConditionPathSelectorMetadataOwnerReferencesUnsetOnDelete { 404 return AlertingConditionPathSelectorMetadataOwnerReferencesUnsetOnDelete{} 405 } 406 407 type AlertingConditionPathSelectorMetadataOwnerReferencesKind struct{} 408 409 func (AlertingConditionPathSelectorMetadataOwnerReferencesKind) FieldPath() *AlertingCondition_FieldSubPath { 410 return &AlertingCondition_FieldSubPath{ 411 selector: AlertingCondition_FieldPathSelectorMetadata, 412 subPath: meta.NewMetaFieldPathBuilder().OwnerReferences().Kind().FieldPath(), 413 } 414 } 415 416 func (s AlertingConditionPathSelectorMetadataOwnerReferencesKind) WithValue(value string) *AlertingCondition_FieldSubPathValue { 417 return s.FieldPath().WithIValue(value).(*AlertingCondition_FieldSubPathValue) 418 } 419 420 func (s AlertingConditionPathSelectorMetadataOwnerReferencesKind) WithArrayOfValues(values []string) *AlertingCondition_FieldSubPathArrayOfValues { 421 return s.FieldPath().WithIArrayOfValues(values).(*AlertingCondition_FieldSubPathArrayOfValues) 422 } 423 424 type AlertingConditionPathSelectorMetadataOwnerReferencesVersion struct{} 425 426 func (AlertingConditionPathSelectorMetadataOwnerReferencesVersion) FieldPath() *AlertingCondition_FieldSubPath { 427 return &AlertingCondition_FieldSubPath{ 428 selector: AlertingCondition_FieldPathSelectorMetadata, 429 subPath: meta.NewMetaFieldPathBuilder().OwnerReferences().Version().FieldPath(), 430 } 431 } 432 433 func (s AlertingConditionPathSelectorMetadataOwnerReferencesVersion) WithValue(value string) *AlertingCondition_FieldSubPathValue { 434 return s.FieldPath().WithIValue(value).(*AlertingCondition_FieldSubPathValue) 435 } 436 437 func (s AlertingConditionPathSelectorMetadataOwnerReferencesVersion) WithArrayOfValues(values []string) *AlertingCondition_FieldSubPathArrayOfValues { 438 return s.FieldPath().WithIArrayOfValues(values).(*AlertingCondition_FieldSubPathArrayOfValues) 439 } 440 441 type AlertingConditionPathSelectorMetadataOwnerReferencesName struct{} 442 443 func (AlertingConditionPathSelectorMetadataOwnerReferencesName) FieldPath() *AlertingCondition_FieldSubPath { 444 return &AlertingCondition_FieldSubPath{ 445 selector: AlertingCondition_FieldPathSelectorMetadata, 446 subPath: meta.NewMetaFieldPathBuilder().OwnerReferences().Name().FieldPath(), 447 } 448 } 449 450 func (s AlertingConditionPathSelectorMetadataOwnerReferencesName) WithValue(value string) *AlertingCondition_FieldSubPathValue { 451 return s.FieldPath().WithIValue(value).(*AlertingCondition_FieldSubPathValue) 452 } 453 454 func (s AlertingConditionPathSelectorMetadataOwnerReferencesName) WithArrayOfValues(values []string) *AlertingCondition_FieldSubPathArrayOfValues { 455 return s.FieldPath().WithIArrayOfValues(values).(*AlertingCondition_FieldSubPathArrayOfValues) 456 } 457 458 type AlertingConditionPathSelectorMetadataOwnerReferencesRegion struct{} 459 460 func (AlertingConditionPathSelectorMetadataOwnerReferencesRegion) FieldPath() *AlertingCondition_FieldSubPath { 461 return &AlertingCondition_FieldSubPath{ 462 selector: AlertingCondition_FieldPathSelectorMetadata, 463 subPath: meta.NewMetaFieldPathBuilder().OwnerReferences().Region().FieldPath(), 464 } 465 } 466 467 func (s AlertingConditionPathSelectorMetadataOwnerReferencesRegion) WithValue(value string) *AlertingCondition_FieldSubPathValue { 468 return s.FieldPath().WithIValue(value).(*AlertingCondition_FieldSubPathValue) 469 } 470 471 func (s AlertingConditionPathSelectorMetadataOwnerReferencesRegion) WithArrayOfValues(values []string) *AlertingCondition_FieldSubPathArrayOfValues { 472 return s.FieldPath().WithIArrayOfValues(values).(*AlertingCondition_FieldSubPathArrayOfValues) 473 } 474 475 type AlertingConditionPathSelectorMetadataOwnerReferencesController struct{} 476 477 func (AlertingConditionPathSelectorMetadataOwnerReferencesController) FieldPath() *AlertingCondition_FieldSubPath { 478 return &AlertingCondition_FieldSubPath{ 479 selector: AlertingCondition_FieldPathSelectorMetadata, 480 subPath: meta.NewMetaFieldPathBuilder().OwnerReferences().Controller().FieldPath(), 481 } 482 } 483 484 func (s AlertingConditionPathSelectorMetadataOwnerReferencesController) WithValue(value bool) *AlertingCondition_FieldSubPathValue { 485 return s.FieldPath().WithIValue(value).(*AlertingCondition_FieldSubPathValue) 486 } 487 488 func (s AlertingConditionPathSelectorMetadataOwnerReferencesController) WithArrayOfValues(values []bool) *AlertingCondition_FieldSubPathArrayOfValues { 489 return s.FieldPath().WithIArrayOfValues(values).(*AlertingCondition_FieldSubPathArrayOfValues) 490 } 491 492 type AlertingConditionPathSelectorMetadataOwnerReferencesRequiresOwnerReference struct{} 493 494 func (AlertingConditionPathSelectorMetadataOwnerReferencesRequiresOwnerReference) FieldPath() *AlertingCondition_FieldSubPath { 495 return &AlertingCondition_FieldSubPath{ 496 selector: AlertingCondition_FieldPathSelectorMetadata, 497 subPath: meta.NewMetaFieldPathBuilder().OwnerReferences().RequiresOwnerReference().FieldPath(), 498 } 499 } 500 501 func (s AlertingConditionPathSelectorMetadataOwnerReferencesRequiresOwnerReference) WithValue(value bool) *AlertingCondition_FieldSubPathValue { 502 return s.FieldPath().WithIValue(value).(*AlertingCondition_FieldSubPathValue) 503 } 504 505 func (s AlertingConditionPathSelectorMetadataOwnerReferencesRequiresOwnerReference) WithArrayOfValues(values []bool) *AlertingCondition_FieldSubPathArrayOfValues { 506 return s.FieldPath().WithIArrayOfValues(values).(*AlertingCondition_FieldSubPathArrayOfValues) 507 } 508 509 type AlertingConditionPathSelectorMetadataOwnerReferencesUnsetOnDelete struct{} 510 511 func (AlertingConditionPathSelectorMetadataOwnerReferencesUnsetOnDelete) FieldPath() *AlertingCondition_FieldSubPath { 512 return &AlertingCondition_FieldSubPath{ 513 selector: AlertingCondition_FieldPathSelectorMetadata, 514 subPath: meta.NewMetaFieldPathBuilder().OwnerReferences().UnsetOnDelete().FieldPath(), 515 } 516 } 517 518 func (s AlertingConditionPathSelectorMetadataOwnerReferencesUnsetOnDelete) WithValue(value bool) *AlertingCondition_FieldSubPathValue { 519 return s.FieldPath().WithIValue(value).(*AlertingCondition_FieldSubPathValue) 520 } 521 522 func (s AlertingConditionPathSelectorMetadataOwnerReferencesUnsetOnDelete) WithArrayOfValues(values []bool) *AlertingCondition_FieldSubPathArrayOfValues { 523 return s.FieldPath().WithIArrayOfValues(values).(*AlertingCondition_FieldSubPathArrayOfValues) 524 } 525 526 type AlertingConditionPathSelectorMetadataShards struct{} 527 528 func (AlertingConditionPathSelectorMetadataShards) FieldPath() *AlertingCondition_FieldSubPath { 529 return &AlertingCondition_FieldSubPath{ 530 selector: AlertingCondition_FieldPathSelectorMetadata, 531 subPath: meta.NewMetaFieldPathBuilder().Shards().FieldPath(), 532 } 533 } 534 535 func (s AlertingConditionPathSelectorMetadataShards) WithValue(value map[string]int64) *AlertingCondition_FieldSubPathValue { 536 return s.FieldPath().WithIValue(value).(*AlertingCondition_FieldSubPathValue) 537 } 538 539 func (s AlertingConditionPathSelectorMetadataShards) WithArrayOfValues(values []map[string]int64) *AlertingCondition_FieldSubPathArrayOfValues { 540 return s.FieldPath().WithIArrayOfValues(values).(*AlertingCondition_FieldSubPathArrayOfValues) 541 } 542 543 func (AlertingConditionPathSelectorMetadataShards) WithKey(key string) AlertingConditionMapPathSelectorMetadataShards { 544 return AlertingConditionMapPathSelectorMetadataShards{key: key} 545 } 546 547 type AlertingConditionMapPathSelectorMetadataShards struct { 548 key string 549 } 550 551 func (s AlertingConditionMapPathSelectorMetadataShards) FieldPath() *AlertingCondition_FieldSubPath { 552 return &AlertingCondition_FieldSubPath{ 553 selector: AlertingCondition_FieldPathSelectorMetadata, 554 subPath: meta.NewMetaFieldPathBuilder().Shards().WithKey(s.key).FieldPath(), 555 } 556 } 557 558 func (s AlertingConditionMapPathSelectorMetadataShards) WithValue(value int64) *AlertingCondition_FieldSubPathValue { 559 return s.FieldPath().WithIValue(value).(*AlertingCondition_FieldSubPathValue) 560 } 561 562 func (s AlertingConditionMapPathSelectorMetadataShards) WithArrayOfValues(values []int64) *AlertingCondition_FieldSubPathArrayOfValues { 563 return s.FieldPath().WithIArrayOfValues(values).(*AlertingCondition_FieldSubPathArrayOfValues) 564 } 565 566 type AlertingConditionPathSelectorMetadataSyncing struct{} 567 568 func (AlertingConditionPathSelectorMetadataSyncing) FieldPath() *AlertingCondition_FieldSubPath { 569 return &AlertingCondition_FieldSubPath{ 570 selector: AlertingCondition_FieldPathSelectorMetadata, 571 subPath: meta.NewMetaFieldPathBuilder().Syncing().FieldPath(), 572 } 573 } 574 575 func (s AlertingConditionPathSelectorMetadataSyncing) WithValue(value *meta.SyncingMeta) *AlertingCondition_FieldSubPathValue { 576 return s.FieldPath().WithIValue(value).(*AlertingCondition_FieldSubPathValue) 577 } 578 579 func (s AlertingConditionPathSelectorMetadataSyncing) WithArrayOfValues(values []*meta.SyncingMeta) *AlertingCondition_FieldSubPathArrayOfValues { 580 return s.FieldPath().WithIArrayOfValues(values).(*AlertingCondition_FieldSubPathArrayOfValues) 581 } 582 583 func (AlertingConditionPathSelectorMetadataSyncing) OwningRegion() AlertingConditionPathSelectorMetadataSyncingOwningRegion { 584 return AlertingConditionPathSelectorMetadataSyncingOwningRegion{} 585 } 586 587 func (AlertingConditionPathSelectorMetadataSyncing) Regions() AlertingConditionPathSelectorMetadataSyncingRegions { 588 return AlertingConditionPathSelectorMetadataSyncingRegions{} 589 } 590 591 type AlertingConditionPathSelectorMetadataSyncingOwningRegion struct{} 592 593 func (AlertingConditionPathSelectorMetadataSyncingOwningRegion) FieldPath() *AlertingCondition_FieldSubPath { 594 return &AlertingCondition_FieldSubPath{ 595 selector: AlertingCondition_FieldPathSelectorMetadata, 596 subPath: meta.NewMetaFieldPathBuilder().Syncing().OwningRegion().FieldPath(), 597 } 598 } 599 600 func (s AlertingConditionPathSelectorMetadataSyncingOwningRegion) WithValue(value string) *AlertingCondition_FieldSubPathValue { 601 return s.FieldPath().WithIValue(value).(*AlertingCondition_FieldSubPathValue) 602 } 603 604 func (s AlertingConditionPathSelectorMetadataSyncingOwningRegion) WithArrayOfValues(values []string) *AlertingCondition_FieldSubPathArrayOfValues { 605 return s.FieldPath().WithIArrayOfValues(values).(*AlertingCondition_FieldSubPathArrayOfValues) 606 } 607 608 type AlertingConditionPathSelectorMetadataSyncingRegions struct{} 609 610 func (AlertingConditionPathSelectorMetadataSyncingRegions) FieldPath() *AlertingCondition_FieldSubPath { 611 return &AlertingCondition_FieldSubPath{ 612 selector: AlertingCondition_FieldPathSelectorMetadata, 613 subPath: meta.NewMetaFieldPathBuilder().Syncing().Regions().FieldPath(), 614 } 615 } 616 617 func (s AlertingConditionPathSelectorMetadataSyncingRegions) WithValue(value []string) *AlertingCondition_FieldSubPathValue { 618 return s.FieldPath().WithIValue(value).(*AlertingCondition_FieldSubPathValue) 619 } 620 621 func (s AlertingConditionPathSelectorMetadataSyncingRegions) WithArrayOfValues(values [][]string) *AlertingCondition_FieldSubPathArrayOfValues { 622 return s.FieldPath().WithIArrayOfValues(values).(*AlertingCondition_FieldSubPathArrayOfValues) 623 } 624 625 func (s AlertingConditionPathSelectorMetadataSyncingRegions) WithItemValue(value string) *AlertingCondition_FieldSubPathArrayItemValue { 626 return s.FieldPath().WithIArrayItemValue(value).(*AlertingCondition_FieldSubPathArrayItemValue) 627 } 628 629 type AlertingConditionPathSelectorMetadataLifecycle struct{} 630 631 func (AlertingConditionPathSelectorMetadataLifecycle) FieldPath() *AlertingCondition_FieldSubPath { 632 return &AlertingCondition_FieldSubPath{ 633 selector: AlertingCondition_FieldPathSelectorMetadata, 634 subPath: meta.NewMetaFieldPathBuilder().Lifecycle().FieldPath(), 635 } 636 } 637 638 func (s AlertingConditionPathSelectorMetadataLifecycle) WithValue(value *meta.Lifecycle) *AlertingCondition_FieldSubPathValue { 639 return s.FieldPath().WithIValue(value).(*AlertingCondition_FieldSubPathValue) 640 } 641 642 func (s AlertingConditionPathSelectorMetadataLifecycle) WithArrayOfValues(values []*meta.Lifecycle) *AlertingCondition_FieldSubPathArrayOfValues { 643 return s.FieldPath().WithIArrayOfValues(values).(*AlertingCondition_FieldSubPathArrayOfValues) 644 } 645 646 func (AlertingConditionPathSelectorMetadataLifecycle) State() AlertingConditionPathSelectorMetadataLifecycleState { 647 return AlertingConditionPathSelectorMetadataLifecycleState{} 648 } 649 650 func (AlertingConditionPathSelectorMetadataLifecycle) BlockDeletion() AlertingConditionPathSelectorMetadataLifecycleBlockDeletion { 651 return AlertingConditionPathSelectorMetadataLifecycleBlockDeletion{} 652 } 653 654 type AlertingConditionPathSelectorMetadataLifecycleState struct{} 655 656 func (AlertingConditionPathSelectorMetadataLifecycleState) FieldPath() *AlertingCondition_FieldSubPath { 657 return &AlertingCondition_FieldSubPath{ 658 selector: AlertingCondition_FieldPathSelectorMetadata, 659 subPath: meta.NewMetaFieldPathBuilder().Lifecycle().State().FieldPath(), 660 } 661 } 662 663 func (s AlertingConditionPathSelectorMetadataLifecycleState) WithValue(value meta.Lifecycle_State) *AlertingCondition_FieldSubPathValue { 664 return s.FieldPath().WithIValue(value).(*AlertingCondition_FieldSubPathValue) 665 } 666 667 func (s AlertingConditionPathSelectorMetadataLifecycleState) WithArrayOfValues(values []meta.Lifecycle_State) *AlertingCondition_FieldSubPathArrayOfValues { 668 return s.FieldPath().WithIArrayOfValues(values).(*AlertingCondition_FieldSubPathArrayOfValues) 669 } 670 671 type AlertingConditionPathSelectorMetadataLifecycleBlockDeletion struct{} 672 673 func (AlertingConditionPathSelectorMetadataLifecycleBlockDeletion) FieldPath() *AlertingCondition_FieldSubPath { 674 return &AlertingCondition_FieldSubPath{ 675 selector: AlertingCondition_FieldPathSelectorMetadata, 676 subPath: meta.NewMetaFieldPathBuilder().Lifecycle().BlockDeletion().FieldPath(), 677 } 678 } 679 680 func (s AlertingConditionPathSelectorMetadataLifecycleBlockDeletion) WithValue(value bool) *AlertingCondition_FieldSubPathValue { 681 return s.FieldPath().WithIValue(value).(*AlertingCondition_FieldSubPathValue) 682 } 683 684 func (s AlertingConditionPathSelectorMetadataLifecycleBlockDeletion) WithArrayOfValues(values []bool) *AlertingCondition_FieldSubPathArrayOfValues { 685 return s.FieldPath().WithIArrayOfValues(values).(*AlertingCondition_FieldSubPathArrayOfValues) 686 } 687 688 type AlertingConditionPathSelectorMetadataServices struct{} 689 690 func (AlertingConditionPathSelectorMetadataServices) FieldPath() *AlertingCondition_FieldSubPath { 691 return &AlertingCondition_FieldSubPath{ 692 selector: AlertingCondition_FieldPathSelectorMetadata, 693 subPath: meta.NewMetaFieldPathBuilder().Services().FieldPath(), 694 } 695 } 696 697 func (s AlertingConditionPathSelectorMetadataServices) WithValue(value *meta.ServicesInfo) *AlertingCondition_FieldSubPathValue { 698 return s.FieldPath().WithIValue(value).(*AlertingCondition_FieldSubPathValue) 699 } 700 701 func (s AlertingConditionPathSelectorMetadataServices) WithArrayOfValues(values []*meta.ServicesInfo) *AlertingCondition_FieldSubPathArrayOfValues { 702 return s.FieldPath().WithIArrayOfValues(values).(*AlertingCondition_FieldSubPathArrayOfValues) 703 } 704 705 func (AlertingConditionPathSelectorMetadataServices) OwningService() AlertingConditionPathSelectorMetadataServicesOwningService { 706 return AlertingConditionPathSelectorMetadataServicesOwningService{} 707 } 708 709 func (AlertingConditionPathSelectorMetadataServices) AllowedServices() AlertingConditionPathSelectorMetadataServicesAllowedServices { 710 return AlertingConditionPathSelectorMetadataServicesAllowedServices{} 711 } 712 713 type AlertingConditionPathSelectorMetadataServicesOwningService struct{} 714 715 func (AlertingConditionPathSelectorMetadataServicesOwningService) FieldPath() *AlertingCondition_FieldSubPath { 716 return &AlertingCondition_FieldSubPath{ 717 selector: AlertingCondition_FieldPathSelectorMetadata, 718 subPath: meta.NewMetaFieldPathBuilder().Services().OwningService().FieldPath(), 719 } 720 } 721 722 func (s AlertingConditionPathSelectorMetadataServicesOwningService) WithValue(value string) *AlertingCondition_FieldSubPathValue { 723 return s.FieldPath().WithIValue(value).(*AlertingCondition_FieldSubPathValue) 724 } 725 726 func (s AlertingConditionPathSelectorMetadataServicesOwningService) WithArrayOfValues(values []string) *AlertingCondition_FieldSubPathArrayOfValues { 727 return s.FieldPath().WithIArrayOfValues(values).(*AlertingCondition_FieldSubPathArrayOfValues) 728 } 729 730 type AlertingConditionPathSelectorMetadataServicesAllowedServices struct{} 731 732 func (AlertingConditionPathSelectorMetadataServicesAllowedServices) FieldPath() *AlertingCondition_FieldSubPath { 733 return &AlertingCondition_FieldSubPath{ 734 selector: AlertingCondition_FieldPathSelectorMetadata, 735 subPath: meta.NewMetaFieldPathBuilder().Services().AllowedServices().FieldPath(), 736 } 737 } 738 739 func (s AlertingConditionPathSelectorMetadataServicesAllowedServices) WithValue(value []string) *AlertingCondition_FieldSubPathValue { 740 return s.FieldPath().WithIValue(value).(*AlertingCondition_FieldSubPathValue) 741 } 742 743 func (s AlertingConditionPathSelectorMetadataServicesAllowedServices) WithArrayOfValues(values [][]string) *AlertingCondition_FieldSubPathArrayOfValues { 744 return s.FieldPath().WithIArrayOfValues(values).(*AlertingCondition_FieldSubPathArrayOfValues) 745 } 746 747 func (s AlertingConditionPathSelectorMetadataServicesAllowedServices) WithItemValue(value string) *AlertingCondition_FieldSubPathArrayItemValue { 748 return s.FieldPath().WithIArrayItemValue(value).(*AlertingCondition_FieldSubPathArrayItemValue) 749 } 750 751 type AlertingConditionPathSelectorDisplayName struct{} 752 753 func (AlertingConditionPathSelectorDisplayName) FieldPath() *AlertingCondition_FieldTerminalPath { 754 return &AlertingCondition_FieldTerminalPath{selector: AlertingCondition_FieldPathSelectorDisplayName} 755 } 756 757 func (s AlertingConditionPathSelectorDisplayName) WithValue(value string) *AlertingCondition_FieldTerminalPathValue { 758 return s.FieldPath().WithIValue(value).(*AlertingCondition_FieldTerminalPathValue) 759 } 760 761 func (s AlertingConditionPathSelectorDisplayName) WithArrayOfValues(values []string) *AlertingCondition_FieldTerminalPathArrayOfValues { 762 return s.FieldPath().WithIArrayOfValues(values).(*AlertingCondition_FieldTerminalPathArrayOfValues) 763 } 764 765 type AlertingConditionPathSelectorDescription struct{} 766 767 func (AlertingConditionPathSelectorDescription) FieldPath() *AlertingCondition_FieldTerminalPath { 768 return &AlertingCondition_FieldTerminalPath{selector: AlertingCondition_FieldPathSelectorDescription} 769 } 770 771 func (s AlertingConditionPathSelectorDescription) WithValue(value string) *AlertingCondition_FieldTerminalPathValue { 772 return s.FieldPath().WithIValue(value).(*AlertingCondition_FieldTerminalPathValue) 773 } 774 775 func (s AlertingConditionPathSelectorDescription) WithArrayOfValues(values []string) *AlertingCondition_FieldTerminalPathArrayOfValues { 776 return s.FieldPath().WithIArrayOfValues(values).(*AlertingCondition_FieldTerminalPathArrayOfValues) 777 } 778 779 type AlertingConditionPathSelectorSpec struct{} 780 781 func (AlertingConditionPathSelectorSpec) FieldPath() *AlertingCondition_FieldTerminalPath { 782 return &AlertingCondition_FieldTerminalPath{selector: AlertingCondition_FieldPathSelectorSpec} 783 } 784 785 func (s AlertingConditionPathSelectorSpec) WithValue(value *AlertingCondition_Spec) *AlertingCondition_FieldTerminalPathValue { 786 return s.FieldPath().WithIValue(value).(*AlertingCondition_FieldTerminalPathValue) 787 } 788 789 func (s AlertingConditionPathSelectorSpec) WithArrayOfValues(values []*AlertingCondition_Spec) *AlertingCondition_FieldTerminalPathArrayOfValues { 790 return s.FieldPath().WithIArrayOfValues(values).(*AlertingCondition_FieldTerminalPathArrayOfValues) 791 } 792 793 func (AlertingConditionPathSelectorSpec) WithSubPath(subPath AlertingConditionSpec_FieldPath) *AlertingCondition_FieldSubPath { 794 return &AlertingCondition_FieldSubPath{selector: AlertingCondition_FieldPathSelectorSpec, subPath: subPath} 795 } 796 797 func (s AlertingConditionPathSelectorSpec) WithSubValue(subPathValue AlertingConditionSpec_FieldPathValue) *AlertingCondition_FieldSubPathValue { 798 return &AlertingCondition_FieldSubPathValue{AlertingCondition_FieldPath: s.WithSubPath(subPathValue), subPathValue: subPathValue} 799 } 800 801 func (s AlertingConditionPathSelectorSpec) WithSubArrayOfValues(subPathArrayOfValues AlertingConditionSpec_FieldPathArrayOfValues) *AlertingCondition_FieldSubPathArrayOfValues { 802 return &AlertingCondition_FieldSubPathArrayOfValues{AlertingCondition_FieldPath: s.WithSubPath(subPathArrayOfValues), subPathArrayOfValues: subPathArrayOfValues} 803 } 804 805 func (s AlertingConditionPathSelectorSpec) WithSubArrayItemValue(subPathArrayItemValue AlertingConditionSpec_FieldPathArrayItemValue) *AlertingCondition_FieldSubPathArrayItemValue { 806 return &AlertingCondition_FieldSubPathArrayItemValue{AlertingCondition_FieldPath: s.WithSubPath(subPathArrayItemValue), subPathItemValue: subPathArrayItemValue} 807 } 808 809 func (AlertingConditionPathSelectorSpec) TimeSeries() AlertingConditionPathSelectorSpecTimeSeries { 810 return AlertingConditionPathSelectorSpecTimeSeries{} 811 } 812 813 func (AlertingConditionPathSelectorSpec) Trigger() AlertingConditionPathSelectorSpecTrigger { 814 return AlertingConditionPathSelectorSpecTrigger{} 815 } 816 817 type AlertingConditionPathSelectorSpecTimeSeries struct{} 818 819 func (AlertingConditionPathSelectorSpecTimeSeries) FieldPath() *AlertingCondition_FieldSubPath { 820 return &AlertingCondition_FieldSubPath{ 821 selector: AlertingCondition_FieldPathSelectorSpec, 822 subPath: NewAlertingConditionSpecFieldPathBuilder().TimeSeries().FieldPath(), 823 } 824 } 825 826 func (s AlertingConditionPathSelectorSpecTimeSeries) WithValue(value *AlertingCondition_Spec_TimeSeries) *AlertingCondition_FieldSubPathValue { 827 return s.FieldPath().WithIValue(value).(*AlertingCondition_FieldSubPathValue) 828 } 829 830 func (s AlertingConditionPathSelectorSpecTimeSeries) WithArrayOfValues(values []*AlertingCondition_Spec_TimeSeries) *AlertingCondition_FieldSubPathArrayOfValues { 831 return s.FieldPath().WithIArrayOfValues(values).(*AlertingCondition_FieldSubPathArrayOfValues) 832 } 833 834 func (AlertingConditionPathSelectorSpecTimeSeries) Query() AlertingConditionPathSelectorSpecTimeSeriesQuery { 835 return AlertingConditionPathSelectorSpecTimeSeriesQuery{} 836 } 837 838 func (AlertingConditionPathSelectorSpecTimeSeries) Threshold() AlertingConditionPathSelectorSpecTimeSeriesThreshold { 839 return AlertingConditionPathSelectorSpecTimeSeriesThreshold{} 840 } 841 842 func (AlertingConditionPathSelectorSpecTimeSeries) CombineThreshold() AlertingConditionPathSelectorSpecTimeSeriesCombineThreshold { 843 return AlertingConditionPathSelectorSpecTimeSeriesCombineThreshold{} 844 } 845 846 func (AlertingConditionPathSelectorSpecTimeSeries) Duration() AlertingConditionPathSelectorSpecTimeSeriesDuration { 847 return AlertingConditionPathSelectorSpecTimeSeriesDuration{} 848 } 849 850 type AlertingConditionPathSelectorSpecTimeSeriesQuery struct{} 851 852 func (AlertingConditionPathSelectorSpecTimeSeriesQuery) FieldPath() *AlertingCondition_FieldSubPath { 853 return &AlertingCondition_FieldSubPath{ 854 selector: AlertingCondition_FieldPathSelectorSpec, 855 subPath: NewAlertingConditionSpecFieldPathBuilder().TimeSeries().Query().FieldPath(), 856 } 857 } 858 859 func (s AlertingConditionPathSelectorSpecTimeSeriesQuery) WithValue(value *AlertingCondition_Spec_TimeSeries_Query) *AlertingCondition_FieldSubPathValue { 860 return s.FieldPath().WithIValue(value).(*AlertingCondition_FieldSubPathValue) 861 } 862 863 func (s AlertingConditionPathSelectorSpecTimeSeriesQuery) WithArrayOfValues(values []*AlertingCondition_Spec_TimeSeries_Query) *AlertingCondition_FieldSubPathArrayOfValues { 864 return s.FieldPath().WithIArrayOfValues(values).(*AlertingCondition_FieldSubPathArrayOfValues) 865 } 866 867 func (AlertingConditionPathSelectorSpecTimeSeriesQuery) Selector() AlertingConditionPathSelectorSpecTimeSeriesQuerySelector { 868 return AlertingConditionPathSelectorSpecTimeSeriesQuerySelector{} 869 } 870 871 func (AlertingConditionPathSelectorSpecTimeSeriesQuery) Aggregation() AlertingConditionPathSelectorSpecTimeSeriesQueryAggregation { 872 return AlertingConditionPathSelectorSpecTimeSeriesQueryAggregation{} 873 } 874 875 type AlertingConditionPathSelectorSpecTimeSeriesQuerySelector struct{} 876 877 func (AlertingConditionPathSelectorSpecTimeSeriesQuerySelector) FieldPath() *AlertingCondition_FieldSubPath { 878 return &AlertingCondition_FieldSubPath{ 879 selector: AlertingCondition_FieldPathSelectorSpec, 880 subPath: NewAlertingConditionSpecFieldPathBuilder().TimeSeries().Query().Selector().FieldPath(), 881 } 882 } 883 884 func (s AlertingConditionPathSelectorSpecTimeSeriesQuerySelector) WithValue(value *common.TimeSeriesSelector) *AlertingCondition_FieldSubPathValue { 885 return s.FieldPath().WithIValue(value).(*AlertingCondition_FieldSubPathValue) 886 } 887 888 func (s AlertingConditionPathSelectorSpecTimeSeriesQuerySelector) WithArrayOfValues(values []*common.TimeSeriesSelector) *AlertingCondition_FieldSubPathArrayOfValues { 889 return s.FieldPath().WithIArrayOfValues(values).(*AlertingCondition_FieldSubPathArrayOfValues) 890 } 891 892 func (AlertingConditionPathSelectorSpecTimeSeriesQuerySelector) Metric() AlertingConditionPathSelectorSpecTimeSeriesQuerySelectorMetric { 893 return AlertingConditionPathSelectorSpecTimeSeriesQuerySelectorMetric{} 894 } 895 896 func (AlertingConditionPathSelectorSpecTimeSeriesQuerySelector) Resource() AlertingConditionPathSelectorSpecTimeSeriesQuerySelectorResource { 897 return AlertingConditionPathSelectorSpecTimeSeriesQuerySelectorResource{} 898 } 899 900 type AlertingConditionPathSelectorSpecTimeSeriesQuerySelectorMetric struct{} 901 902 func (AlertingConditionPathSelectorSpecTimeSeriesQuerySelectorMetric) FieldPath() *AlertingCondition_FieldSubPath { 903 return &AlertingCondition_FieldSubPath{ 904 selector: AlertingCondition_FieldPathSelectorSpec, 905 subPath: NewAlertingConditionSpecFieldPathBuilder().TimeSeries().Query().Selector().Metric().FieldPath(), 906 } 907 } 908 909 func (s AlertingConditionPathSelectorSpecTimeSeriesQuerySelectorMetric) WithValue(value *common.MetricSelector) *AlertingCondition_FieldSubPathValue { 910 return s.FieldPath().WithIValue(value).(*AlertingCondition_FieldSubPathValue) 911 } 912 913 func (s AlertingConditionPathSelectorSpecTimeSeriesQuerySelectorMetric) WithArrayOfValues(values []*common.MetricSelector) *AlertingCondition_FieldSubPathArrayOfValues { 914 return s.FieldPath().WithIArrayOfValues(values).(*AlertingCondition_FieldSubPathArrayOfValues) 915 } 916 917 func (AlertingConditionPathSelectorSpecTimeSeriesQuerySelectorMetric) Types() AlertingConditionPathSelectorSpecTimeSeriesQuerySelectorMetricTypes { 918 return AlertingConditionPathSelectorSpecTimeSeriesQuerySelectorMetricTypes{} 919 } 920 921 func (AlertingConditionPathSelectorSpecTimeSeriesQuerySelectorMetric) Labels() AlertingConditionPathSelectorSpecTimeSeriesQuerySelectorMetricLabels { 922 return AlertingConditionPathSelectorSpecTimeSeriesQuerySelectorMetricLabels{} 923 } 924 925 type AlertingConditionPathSelectorSpecTimeSeriesQuerySelectorMetricTypes struct{} 926 927 func (AlertingConditionPathSelectorSpecTimeSeriesQuerySelectorMetricTypes) FieldPath() *AlertingCondition_FieldSubPath { 928 return &AlertingCondition_FieldSubPath{ 929 selector: AlertingCondition_FieldPathSelectorSpec, 930 subPath: NewAlertingConditionSpecFieldPathBuilder().TimeSeries().Query().Selector().Metric().Types().FieldPath(), 931 } 932 } 933 934 func (s AlertingConditionPathSelectorSpecTimeSeriesQuerySelectorMetricTypes) WithValue(value []string) *AlertingCondition_FieldSubPathValue { 935 return s.FieldPath().WithIValue(value).(*AlertingCondition_FieldSubPathValue) 936 } 937 938 func (s AlertingConditionPathSelectorSpecTimeSeriesQuerySelectorMetricTypes) WithArrayOfValues(values [][]string) *AlertingCondition_FieldSubPathArrayOfValues { 939 return s.FieldPath().WithIArrayOfValues(values).(*AlertingCondition_FieldSubPathArrayOfValues) 940 } 941 942 func (s AlertingConditionPathSelectorSpecTimeSeriesQuerySelectorMetricTypes) WithItemValue(value string) *AlertingCondition_FieldSubPathArrayItemValue { 943 return s.FieldPath().WithIArrayItemValue(value).(*AlertingCondition_FieldSubPathArrayItemValue) 944 } 945 946 type AlertingConditionPathSelectorSpecTimeSeriesQuerySelectorMetricLabels struct{} 947 948 func (AlertingConditionPathSelectorSpecTimeSeriesQuerySelectorMetricLabels) FieldPath() *AlertingCondition_FieldSubPath { 949 return &AlertingCondition_FieldSubPath{ 950 selector: AlertingCondition_FieldPathSelectorSpec, 951 subPath: NewAlertingConditionSpecFieldPathBuilder().TimeSeries().Query().Selector().Metric().Labels().FieldPath(), 952 } 953 } 954 955 func (s AlertingConditionPathSelectorSpecTimeSeriesQuerySelectorMetricLabels) WithValue(value map[string]*common.Strings) *AlertingCondition_FieldSubPathValue { 956 return s.FieldPath().WithIValue(value).(*AlertingCondition_FieldSubPathValue) 957 } 958 959 func (s AlertingConditionPathSelectorSpecTimeSeriesQuerySelectorMetricLabels) WithArrayOfValues(values []map[string]*common.Strings) *AlertingCondition_FieldSubPathArrayOfValues { 960 return s.FieldPath().WithIArrayOfValues(values).(*AlertingCondition_FieldSubPathArrayOfValues) 961 } 962 963 func (AlertingConditionPathSelectorSpecTimeSeriesQuerySelectorMetricLabels) WithKey(key string) AlertingConditionMapPathSelectorSpecTimeSeriesQuerySelectorMetricLabels { 964 return AlertingConditionMapPathSelectorSpecTimeSeriesQuerySelectorMetricLabels{key: key} 965 } 966 967 type AlertingConditionMapPathSelectorSpecTimeSeriesQuerySelectorMetricLabels struct { 968 key string 969 } 970 971 func (s AlertingConditionMapPathSelectorSpecTimeSeriesQuerySelectorMetricLabels) FieldPath() *AlertingCondition_FieldSubPath { 972 return &AlertingCondition_FieldSubPath{ 973 selector: AlertingCondition_FieldPathSelectorSpec, 974 subPath: NewAlertingConditionSpecFieldPathBuilder().TimeSeries().Query().Selector().Metric().Labels().WithKey(s.key).FieldPath(), 975 } 976 } 977 978 func (s AlertingConditionMapPathSelectorSpecTimeSeriesQuerySelectorMetricLabels) WithValue(value *common.Strings) *AlertingCondition_FieldSubPathValue { 979 return s.FieldPath().WithIValue(value).(*AlertingCondition_FieldSubPathValue) 980 } 981 982 func (s AlertingConditionMapPathSelectorSpecTimeSeriesQuerySelectorMetricLabels) WithArrayOfValues(values []*common.Strings) *AlertingCondition_FieldSubPathArrayOfValues { 983 return s.FieldPath().WithIArrayOfValues(values).(*AlertingCondition_FieldSubPathArrayOfValues) 984 } 985 986 type AlertingConditionPathSelectorSpecTimeSeriesQuerySelectorResource struct{} 987 988 func (AlertingConditionPathSelectorSpecTimeSeriesQuerySelectorResource) FieldPath() *AlertingCondition_FieldSubPath { 989 return &AlertingCondition_FieldSubPath{ 990 selector: AlertingCondition_FieldPathSelectorSpec, 991 subPath: NewAlertingConditionSpecFieldPathBuilder().TimeSeries().Query().Selector().Resource().FieldPath(), 992 } 993 } 994 995 func (s AlertingConditionPathSelectorSpecTimeSeriesQuerySelectorResource) WithValue(value *common.MonitoredResourceSelector) *AlertingCondition_FieldSubPathValue { 996 return s.FieldPath().WithIValue(value).(*AlertingCondition_FieldSubPathValue) 997 } 998 999 func (s AlertingConditionPathSelectorSpecTimeSeriesQuerySelectorResource) WithArrayOfValues(values []*common.MonitoredResourceSelector) *AlertingCondition_FieldSubPathArrayOfValues { 1000 return s.FieldPath().WithIArrayOfValues(values).(*AlertingCondition_FieldSubPathArrayOfValues) 1001 } 1002 1003 func (AlertingConditionPathSelectorSpecTimeSeriesQuerySelectorResource) Types() AlertingConditionPathSelectorSpecTimeSeriesQuerySelectorResourceTypes { 1004 return AlertingConditionPathSelectorSpecTimeSeriesQuerySelectorResourceTypes{} 1005 } 1006 1007 func (AlertingConditionPathSelectorSpecTimeSeriesQuerySelectorResource) Labels() AlertingConditionPathSelectorSpecTimeSeriesQuerySelectorResourceLabels { 1008 return AlertingConditionPathSelectorSpecTimeSeriesQuerySelectorResourceLabels{} 1009 } 1010 1011 type AlertingConditionPathSelectorSpecTimeSeriesQuerySelectorResourceTypes struct{} 1012 1013 func (AlertingConditionPathSelectorSpecTimeSeriesQuerySelectorResourceTypes) FieldPath() *AlertingCondition_FieldSubPath { 1014 return &AlertingCondition_FieldSubPath{ 1015 selector: AlertingCondition_FieldPathSelectorSpec, 1016 subPath: NewAlertingConditionSpecFieldPathBuilder().TimeSeries().Query().Selector().Resource().Types().FieldPath(), 1017 } 1018 } 1019 1020 func (s AlertingConditionPathSelectorSpecTimeSeriesQuerySelectorResourceTypes) WithValue(value []string) *AlertingCondition_FieldSubPathValue { 1021 return s.FieldPath().WithIValue(value).(*AlertingCondition_FieldSubPathValue) 1022 } 1023 1024 func (s AlertingConditionPathSelectorSpecTimeSeriesQuerySelectorResourceTypes) WithArrayOfValues(values [][]string) *AlertingCondition_FieldSubPathArrayOfValues { 1025 return s.FieldPath().WithIArrayOfValues(values).(*AlertingCondition_FieldSubPathArrayOfValues) 1026 } 1027 1028 func (s AlertingConditionPathSelectorSpecTimeSeriesQuerySelectorResourceTypes) WithItemValue(value string) *AlertingCondition_FieldSubPathArrayItemValue { 1029 return s.FieldPath().WithIArrayItemValue(value).(*AlertingCondition_FieldSubPathArrayItemValue) 1030 } 1031 1032 type AlertingConditionPathSelectorSpecTimeSeriesQuerySelectorResourceLabels struct{} 1033 1034 func (AlertingConditionPathSelectorSpecTimeSeriesQuerySelectorResourceLabels) FieldPath() *AlertingCondition_FieldSubPath { 1035 return &AlertingCondition_FieldSubPath{ 1036 selector: AlertingCondition_FieldPathSelectorSpec, 1037 subPath: NewAlertingConditionSpecFieldPathBuilder().TimeSeries().Query().Selector().Resource().Labels().FieldPath(), 1038 } 1039 } 1040 1041 func (s AlertingConditionPathSelectorSpecTimeSeriesQuerySelectorResourceLabels) WithValue(value map[string]*common.Strings) *AlertingCondition_FieldSubPathValue { 1042 return s.FieldPath().WithIValue(value).(*AlertingCondition_FieldSubPathValue) 1043 } 1044 1045 func (s AlertingConditionPathSelectorSpecTimeSeriesQuerySelectorResourceLabels) WithArrayOfValues(values []map[string]*common.Strings) *AlertingCondition_FieldSubPathArrayOfValues { 1046 return s.FieldPath().WithIArrayOfValues(values).(*AlertingCondition_FieldSubPathArrayOfValues) 1047 } 1048 1049 func (AlertingConditionPathSelectorSpecTimeSeriesQuerySelectorResourceLabels) WithKey(key string) AlertingConditionMapPathSelectorSpecTimeSeriesQuerySelectorResourceLabels { 1050 return AlertingConditionMapPathSelectorSpecTimeSeriesQuerySelectorResourceLabels{key: key} 1051 } 1052 1053 type AlertingConditionMapPathSelectorSpecTimeSeriesQuerySelectorResourceLabels struct { 1054 key string 1055 } 1056 1057 func (s AlertingConditionMapPathSelectorSpecTimeSeriesQuerySelectorResourceLabels) FieldPath() *AlertingCondition_FieldSubPath { 1058 return &AlertingCondition_FieldSubPath{ 1059 selector: AlertingCondition_FieldPathSelectorSpec, 1060 subPath: NewAlertingConditionSpecFieldPathBuilder().TimeSeries().Query().Selector().Resource().Labels().WithKey(s.key).FieldPath(), 1061 } 1062 } 1063 1064 func (s AlertingConditionMapPathSelectorSpecTimeSeriesQuerySelectorResourceLabels) WithValue(value *common.Strings) *AlertingCondition_FieldSubPathValue { 1065 return s.FieldPath().WithIValue(value).(*AlertingCondition_FieldSubPathValue) 1066 } 1067 1068 func (s AlertingConditionMapPathSelectorSpecTimeSeriesQuerySelectorResourceLabels) WithArrayOfValues(values []*common.Strings) *AlertingCondition_FieldSubPathArrayOfValues { 1069 return s.FieldPath().WithIArrayOfValues(values).(*AlertingCondition_FieldSubPathArrayOfValues) 1070 } 1071 1072 type AlertingConditionPathSelectorSpecTimeSeriesQueryAggregation struct{} 1073 1074 func (AlertingConditionPathSelectorSpecTimeSeriesQueryAggregation) FieldPath() *AlertingCondition_FieldSubPath { 1075 return &AlertingCondition_FieldSubPath{ 1076 selector: AlertingCondition_FieldPathSelectorSpec, 1077 subPath: NewAlertingConditionSpecFieldPathBuilder().TimeSeries().Query().Aggregation().FieldPath(), 1078 } 1079 } 1080 1081 func (s AlertingConditionPathSelectorSpecTimeSeriesQueryAggregation) WithValue(value *common.Aggregation) *AlertingCondition_FieldSubPathValue { 1082 return s.FieldPath().WithIValue(value).(*AlertingCondition_FieldSubPathValue) 1083 } 1084 1085 func (s AlertingConditionPathSelectorSpecTimeSeriesQueryAggregation) WithArrayOfValues(values []*common.Aggregation) *AlertingCondition_FieldSubPathArrayOfValues { 1086 return s.FieldPath().WithIArrayOfValues(values).(*AlertingCondition_FieldSubPathArrayOfValues) 1087 } 1088 1089 func (AlertingConditionPathSelectorSpecTimeSeriesQueryAggregation) AlignmentPeriod() AlertingConditionPathSelectorSpecTimeSeriesQueryAggregationAlignmentPeriod { 1090 return AlertingConditionPathSelectorSpecTimeSeriesQueryAggregationAlignmentPeriod{} 1091 } 1092 1093 func (AlertingConditionPathSelectorSpecTimeSeriesQueryAggregation) PerSeriesAligner() AlertingConditionPathSelectorSpecTimeSeriesQueryAggregationPerSeriesAligner { 1094 return AlertingConditionPathSelectorSpecTimeSeriesQueryAggregationPerSeriesAligner{} 1095 } 1096 1097 func (AlertingConditionPathSelectorSpecTimeSeriesQueryAggregation) CrossSeriesReducer() AlertingConditionPathSelectorSpecTimeSeriesQueryAggregationCrossSeriesReducer { 1098 return AlertingConditionPathSelectorSpecTimeSeriesQueryAggregationCrossSeriesReducer{} 1099 } 1100 1101 func (AlertingConditionPathSelectorSpecTimeSeriesQueryAggregation) GroupByFields() AlertingConditionPathSelectorSpecTimeSeriesQueryAggregationGroupByFields { 1102 return AlertingConditionPathSelectorSpecTimeSeriesQueryAggregationGroupByFields{} 1103 } 1104 1105 type AlertingConditionPathSelectorSpecTimeSeriesQueryAggregationAlignmentPeriod struct{} 1106 1107 func (AlertingConditionPathSelectorSpecTimeSeriesQueryAggregationAlignmentPeriod) FieldPath() *AlertingCondition_FieldSubPath { 1108 return &AlertingCondition_FieldSubPath{ 1109 selector: AlertingCondition_FieldPathSelectorSpec, 1110 subPath: NewAlertingConditionSpecFieldPathBuilder().TimeSeries().Query().Aggregation().AlignmentPeriod().FieldPath(), 1111 } 1112 } 1113 1114 func (s AlertingConditionPathSelectorSpecTimeSeriesQueryAggregationAlignmentPeriod) WithValue(value *durationpb.Duration) *AlertingCondition_FieldSubPathValue { 1115 return s.FieldPath().WithIValue(value).(*AlertingCondition_FieldSubPathValue) 1116 } 1117 1118 func (s AlertingConditionPathSelectorSpecTimeSeriesQueryAggregationAlignmentPeriod) WithArrayOfValues(values []*durationpb.Duration) *AlertingCondition_FieldSubPathArrayOfValues { 1119 return s.FieldPath().WithIArrayOfValues(values).(*AlertingCondition_FieldSubPathArrayOfValues) 1120 } 1121 1122 type AlertingConditionPathSelectorSpecTimeSeriesQueryAggregationPerSeriesAligner struct{} 1123 1124 func (AlertingConditionPathSelectorSpecTimeSeriesQueryAggregationPerSeriesAligner) FieldPath() *AlertingCondition_FieldSubPath { 1125 return &AlertingCondition_FieldSubPath{ 1126 selector: AlertingCondition_FieldPathSelectorSpec, 1127 subPath: NewAlertingConditionSpecFieldPathBuilder().TimeSeries().Query().Aggregation().PerSeriesAligner().FieldPath(), 1128 } 1129 } 1130 1131 func (s AlertingConditionPathSelectorSpecTimeSeriesQueryAggregationPerSeriesAligner) WithValue(value common.Aggregation_Aligner) *AlertingCondition_FieldSubPathValue { 1132 return s.FieldPath().WithIValue(value).(*AlertingCondition_FieldSubPathValue) 1133 } 1134 1135 func (s AlertingConditionPathSelectorSpecTimeSeriesQueryAggregationPerSeriesAligner) WithArrayOfValues(values []common.Aggregation_Aligner) *AlertingCondition_FieldSubPathArrayOfValues { 1136 return s.FieldPath().WithIArrayOfValues(values).(*AlertingCondition_FieldSubPathArrayOfValues) 1137 } 1138 1139 type AlertingConditionPathSelectorSpecTimeSeriesQueryAggregationCrossSeriesReducer struct{} 1140 1141 func (AlertingConditionPathSelectorSpecTimeSeriesQueryAggregationCrossSeriesReducer) FieldPath() *AlertingCondition_FieldSubPath { 1142 return &AlertingCondition_FieldSubPath{ 1143 selector: AlertingCondition_FieldPathSelectorSpec, 1144 subPath: NewAlertingConditionSpecFieldPathBuilder().TimeSeries().Query().Aggregation().CrossSeriesReducer().FieldPath(), 1145 } 1146 } 1147 1148 func (s AlertingConditionPathSelectorSpecTimeSeriesQueryAggregationCrossSeriesReducer) WithValue(value common.Aggregation_Reducer) *AlertingCondition_FieldSubPathValue { 1149 return s.FieldPath().WithIValue(value).(*AlertingCondition_FieldSubPathValue) 1150 } 1151 1152 func (s AlertingConditionPathSelectorSpecTimeSeriesQueryAggregationCrossSeriesReducer) WithArrayOfValues(values []common.Aggregation_Reducer) *AlertingCondition_FieldSubPathArrayOfValues { 1153 return s.FieldPath().WithIArrayOfValues(values).(*AlertingCondition_FieldSubPathArrayOfValues) 1154 } 1155 1156 type AlertingConditionPathSelectorSpecTimeSeriesQueryAggregationGroupByFields struct{} 1157 1158 func (AlertingConditionPathSelectorSpecTimeSeriesQueryAggregationGroupByFields) FieldPath() *AlertingCondition_FieldSubPath { 1159 return &AlertingCondition_FieldSubPath{ 1160 selector: AlertingCondition_FieldPathSelectorSpec, 1161 subPath: NewAlertingConditionSpecFieldPathBuilder().TimeSeries().Query().Aggregation().GroupByFields().FieldPath(), 1162 } 1163 } 1164 1165 func (s AlertingConditionPathSelectorSpecTimeSeriesQueryAggregationGroupByFields) WithValue(value []string) *AlertingCondition_FieldSubPathValue { 1166 return s.FieldPath().WithIValue(value).(*AlertingCondition_FieldSubPathValue) 1167 } 1168 1169 func (s AlertingConditionPathSelectorSpecTimeSeriesQueryAggregationGroupByFields) WithArrayOfValues(values [][]string) *AlertingCondition_FieldSubPathArrayOfValues { 1170 return s.FieldPath().WithIArrayOfValues(values).(*AlertingCondition_FieldSubPathArrayOfValues) 1171 } 1172 1173 func (s AlertingConditionPathSelectorSpecTimeSeriesQueryAggregationGroupByFields) WithItemValue(value string) *AlertingCondition_FieldSubPathArrayItemValue { 1174 return s.FieldPath().WithIArrayItemValue(value).(*AlertingCondition_FieldSubPathArrayItemValue) 1175 } 1176 1177 type AlertingConditionPathSelectorSpecTimeSeriesThreshold struct{} 1178 1179 func (AlertingConditionPathSelectorSpecTimeSeriesThreshold) FieldPath() *AlertingCondition_FieldSubPath { 1180 return &AlertingCondition_FieldSubPath{ 1181 selector: AlertingCondition_FieldPathSelectorSpec, 1182 subPath: NewAlertingConditionSpecFieldPathBuilder().TimeSeries().Threshold().FieldPath(), 1183 } 1184 } 1185 1186 func (s AlertingConditionPathSelectorSpecTimeSeriesThreshold) WithValue(value *AlertingCondition_Spec_TimeSeries_Threshold) *AlertingCondition_FieldSubPathValue { 1187 return s.FieldPath().WithIValue(value).(*AlertingCondition_FieldSubPathValue) 1188 } 1189 1190 func (s AlertingConditionPathSelectorSpecTimeSeriesThreshold) WithArrayOfValues(values []*AlertingCondition_Spec_TimeSeries_Threshold) *AlertingCondition_FieldSubPathArrayOfValues { 1191 return s.FieldPath().WithIArrayOfValues(values).(*AlertingCondition_FieldSubPathArrayOfValues) 1192 } 1193 1194 func (AlertingConditionPathSelectorSpecTimeSeriesThreshold) Compare() AlertingConditionPathSelectorSpecTimeSeriesThresholdCompare { 1195 return AlertingConditionPathSelectorSpecTimeSeriesThresholdCompare{} 1196 } 1197 1198 func (AlertingConditionPathSelectorSpecTimeSeriesThreshold) Value() AlertingConditionPathSelectorSpecTimeSeriesThresholdValue { 1199 return AlertingConditionPathSelectorSpecTimeSeriesThresholdValue{} 1200 } 1201 1202 type AlertingConditionPathSelectorSpecTimeSeriesThresholdCompare struct{} 1203 1204 func (AlertingConditionPathSelectorSpecTimeSeriesThresholdCompare) FieldPath() *AlertingCondition_FieldSubPath { 1205 return &AlertingCondition_FieldSubPath{ 1206 selector: AlertingCondition_FieldPathSelectorSpec, 1207 subPath: NewAlertingConditionSpecFieldPathBuilder().TimeSeries().Threshold().Compare().FieldPath(), 1208 } 1209 } 1210 1211 func (s AlertingConditionPathSelectorSpecTimeSeriesThresholdCompare) WithValue(value AlertingCondition_Spec_TimeSeries_Threshold_Compare) *AlertingCondition_FieldSubPathValue { 1212 return s.FieldPath().WithIValue(value).(*AlertingCondition_FieldSubPathValue) 1213 } 1214 1215 func (s AlertingConditionPathSelectorSpecTimeSeriesThresholdCompare) WithArrayOfValues(values []AlertingCondition_Spec_TimeSeries_Threshold_Compare) *AlertingCondition_FieldSubPathArrayOfValues { 1216 return s.FieldPath().WithIArrayOfValues(values).(*AlertingCondition_FieldSubPathArrayOfValues) 1217 } 1218 1219 type AlertingConditionPathSelectorSpecTimeSeriesThresholdValue struct{} 1220 1221 func (AlertingConditionPathSelectorSpecTimeSeriesThresholdValue) FieldPath() *AlertingCondition_FieldSubPath { 1222 return &AlertingCondition_FieldSubPath{ 1223 selector: AlertingCondition_FieldPathSelectorSpec, 1224 subPath: NewAlertingConditionSpecFieldPathBuilder().TimeSeries().Threshold().Value().FieldPath(), 1225 } 1226 } 1227 1228 func (s AlertingConditionPathSelectorSpecTimeSeriesThresholdValue) WithValue(value float64) *AlertingCondition_FieldSubPathValue { 1229 return s.FieldPath().WithIValue(value).(*AlertingCondition_FieldSubPathValue) 1230 } 1231 1232 func (s AlertingConditionPathSelectorSpecTimeSeriesThresholdValue) WithArrayOfValues(values []float64) *AlertingCondition_FieldSubPathArrayOfValues { 1233 return s.FieldPath().WithIArrayOfValues(values).(*AlertingCondition_FieldSubPathArrayOfValues) 1234 } 1235 1236 type AlertingConditionPathSelectorSpecTimeSeriesCombineThreshold struct{} 1237 1238 func (AlertingConditionPathSelectorSpecTimeSeriesCombineThreshold) FieldPath() *AlertingCondition_FieldSubPath { 1239 return &AlertingCondition_FieldSubPath{ 1240 selector: AlertingCondition_FieldPathSelectorSpec, 1241 subPath: NewAlertingConditionSpecFieldPathBuilder().TimeSeries().CombineThreshold().FieldPath(), 1242 } 1243 } 1244 1245 func (s AlertingConditionPathSelectorSpecTimeSeriesCombineThreshold) WithValue(value *AlertingCondition_Spec_TimeSeries_CombineThreshold) *AlertingCondition_FieldSubPathValue { 1246 return s.FieldPath().WithIValue(value).(*AlertingCondition_FieldSubPathValue) 1247 } 1248 1249 func (s AlertingConditionPathSelectorSpecTimeSeriesCombineThreshold) WithArrayOfValues(values []*AlertingCondition_Spec_TimeSeries_CombineThreshold) *AlertingCondition_FieldSubPathArrayOfValues { 1250 return s.FieldPath().WithIArrayOfValues(values).(*AlertingCondition_FieldSubPathArrayOfValues) 1251 } 1252 1253 func (AlertingConditionPathSelectorSpecTimeSeriesCombineThreshold) PerMetric() AlertingConditionPathSelectorSpecTimeSeriesCombineThresholdPerMetric { 1254 return AlertingConditionPathSelectorSpecTimeSeriesCombineThresholdPerMetric{} 1255 } 1256 1257 func (AlertingConditionPathSelectorSpecTimeSeriesCombineThreshold) Combine() AlertingConditionPathSelectorSpecTimeSeriesCombineThresholdCombine { 1258 return AlertingConditionPathSelectorSpecTimeSeriesCombineThresholdCombine{} 1259 } 1260 1261 type AlertingConditionPathSelectorSpecTimeSeriesCombineThresholdPerMetric struct{} 1262 1263 func (AlertingConditionPathSelectorSpecTimeSeriesCombineThresholdPerMetric) FieldPath() *AlertingCondition_FieldSubPath { 1264 return &AlertingCondition_FieldSubPath{ 1265 selector: AlertingCondition_FieldPathSelectorSpec, 1266 subPath: NewAlertingConditionSpecFieldPathBuilder().TimeSeries().CombineThreshold().PerMetric().FieldPath(), 1267 } 1268 } 1269 1270 func (s AlertingConditionPathSelectorSpecTimeSeriesCombineThresholdPerMetric) WithValue(value map[string]*AlertingCondition_Spec_TimeSeries_Threshold) *AlertingCondition_FieldSubPathValue { 1271 return s.FieldPath().WithIValue(value).(*AlertingCondition_FieldSubPathValue) 1272 } 1273 1274 func (s AlertingConditionPathSelectorSpecTimeSeriesCombineThresholdPerMetric) WithArrayOfValues(values []map[string]*AlertingCondition_Spec_TimeSeries_Threshold) *AlertingCondition_FieldSubPathArrayOfValues { 1275 return s.FieldPath().WithIArrayOfValues(values).(*AlertingCondition_FieldSubPathArrayOfValues) 1276 } 1277 1278 func (AlertingConditionPathSelectorSpecTimeSeriesCombineThresholdPerMetric) WithKey(key string) AlertingConditionMapPathSelectorSpecTimeSeriesCombineThresholdPerMetric { 1279 return AlertingConditionMapPathSelectorSpecTimeSeriesCombineThresholdPerMetric{key: key} 1280 } 1281 1282 type AlertingConditionMapPathSelectorSpecTimeSeriesCombineThresholdPerMetric struct { 1283 key string 1284 } 1285 1286 func (s AlertingConditionMapPathSelectorSpecTimeSeriesCombineThresholdPerMetric) FieldPath() *AlertingCondition_FieldSubPath { 1287 return &AlertingCondition_FieldSubPath{ 1288 selector: AlertingCondition_FieldPathSelectorSpec, 1289 subPath: NewAlertingConditionSpecFieldPathBuilder().TimeSeries().CombineThreshold().PerMetric().WithKey(s.key).FieldPath(), 1290 } 1291 } 1292 1293 func (s AlertingConditionMapPathSelectorSpecTimeSeriesCombineThresholdPerMetric) WithValue(value *AlertingCondition_Spec_TimeSeries_Threshold) *AlertingCondition_FieldSubPathValue { 1294 return s.FieldPath().WithIValue(value).(*AlertingCondition_FieldSubPathValue) 1295 } 1296 1297 func (s AlertingConditionMapPathSelectorSpecTimeSeriesCombineThresholdPerMetric) WithArrayOfValues(values []*AlertingCondition_Spec_TimeSeries_Threshold) *AlertingCondition_FieldSubPathArrayOfValues { 1298 return s.FieldPath().WithIArrayOfValues(values).(*AlertingCondition_FieldSubPathArrayOfValues) 1299 } 1300 1301 type AlertingConditionPathSelectorSpecTimeSeriesCombineThresholdCombine struct{} 1302 1303 func (AlertingConditionPathSelectorSpecTimeSeriesCombineThresholdCombine) FieldPath() *AlertingCondition_FieldSubPath { 1304 return &AlertingCondition_FieldSubPath{ 1305 selector: AlertingCondition_FieldPathSelectorSpec, 1306 subPath: NewAlertingConditionSpecFieldPathBuilder().TimeSeries().CombineThreshold().Combine().FieldPath(), 1307 } 1308 } 1309 1310 func (s AlertingConditionPathSelectorSpecTimeSeriesCombineThresholdCombine) WithValue(value AlertingCondition_Spec_TimeSeries_CombineThreshold_CombineOperator) *AlertingCondition_FieldSubPathValue { 1311 return s.FieldPath().WithIValue(value).(*AlertingCondition_FieldSubPathValue) 1312 } 1313 1314 func (s AlertingConditionPathSelectorSpecTimeSeriesCombineThresholdCombine) WithArrayOfValues(values []AlertingCondition_Spec_TimeSeries_CombineThreshold_CombineOperator) *AlertingCondition_FieldSubPathArrayOfValues { 1315 return s.FieldPath().WithIArrayOfValues(values).(*AlertingCondition_FieldSubPathArrayOfValues) 1316 } 1317 1318 type AlertingConditionPathSelectorSpecTimeSeriesDuration struct{} 1319 1320 func (AlertingConditionPathSelectorSpecTimeSeriesDuration) FieldPath() *AlertingCondition_FieldSubPath { 1321 return &AlertingCondition_FieldSubPath{ 1322 selector: AlertingCondition_FieldPathSelectorSpec, 1323 subPath: NewAlertingConditionSpecFieldPathBuilder().TimeSeries().Duration().FieldPath(), 1324 } 1325 } 1326 1327 func (s AlertingConditionPathSelectorSpecTimeSeriesDuration) WithValue(value *durationpb.Duration) *AlertingCondition_FieldSubPathValue { 1328 return s.FieldPath().WithIValue(value).(*AlertingCondition_FieldSubPathValue) 1329 } 1330 1331 func (s AlertingConditionPathSelectorSpecTimeSeriesDuration) WithArrayOfValues(values []*durationpb.Duration) *AlertingCondition_FieldSubPathArrayOfValues { 1332 return s.FieldPath().WithIArrayOfValues(values).(*AlertingCondition_FieldSubPathArrayOfValues) 1333 } 1334 1335 type AlertingConditionPathSelectorSpecTrigger struct{} 1336 1337 func (AlertingConditionPathSelectorSpecTrigger) FieldPath() *AlertingCondition_FieldSubPath { 1338 return &AlertingCondition_FieldSubPath{ 1339 selector: AlertingCondition_FieldPathSelectorSpec, 1340 subPath: NewAlertingConditionSpecFieldPathBuilder().Trigger().FieldPath(), 1341 } 1342 } 1343 1344 func (s AlertingConditionPathSelectorSpecTrigger) WithValue(value *AlertingCondition_Spec_Trigger) *AlertingCondition_FieldSubPathValue { 1345 return s.FieldPath().WithIValue(value).(*AlertingCondition_FieldSubPathValue) 1346 } 1347 1348 func (s AlertingConditionPathSelectorSpecTrigger) WithArrayOfValues(values []*AlertingCondition_Spec_Trigger) *AlertingCondition_FieldSubPathArrayOfValues { 1349 return s.FieldPath().WithIArrayOfValues(values).(*AlertingCondition_FieldSubPathArrayOfValues) 1350 } 1351 1352 func (AlertingConditionPathSelectorSpecTrigger) Type() AlertingConditionPathSelectorSpecTriggerType { 1353 return AlertingConditionPathSelectorSpecTriggerType{} 1354 } 1355 1356 type AlertingConditionPathSelectorSpecTriggerType struct{} 1357 1358 func (AlertingConditionPathSelectorSpecTriggerType) FieldPath() *AlertingCondition_FieldSubPath { 1359 return &AlertingCondition_FieldSubPath{ 1360 selector: AlertingCondition_FieldPathSelectorSpec, 1361 subPath: NewAlertingConditionSpecFieldPathBuilder().Trigger().Type().FieldPath(), 1362 } 1363 } 1364 1365 func (s AlertingConditionPathSelectorSpecTriggerType) WithValue(value AlertingCondition_Spec_Trigger_Type) *AlertingCondition_FieldSubPathValue { 1366 return s.FieldPath().WithIValue(value).(*AlertingCondition_FieldSubPathValue) 1367 } 1368 1369 func (s AlertingConditionPathSelectorSpecTriggerType) WithArrayOfValues(values []AlertingCondition_Spec_Trigger_Type) *AlertingCondition_FieldSubPathArrayOfValues { 1370 return s.FieldPath().WithIArrayOfValues(values).(*AlertingCondition_FieldSubPathArrayOfValues) 1371 } 1372 1373 type AlertingConditionPathSelectorState struct{} 1374 1375 func (AlertingConditionPathSelectorState) FieldPath() *AlertingCondition_FieldTerminalPath { 1376 return &AlertingCondition_FieldTerminalPath{selector: AlertingCondition_FieldPathSelectorState} 1377 } 1378 1379 func (s AlertingConditionPathSelectorState) WithValue(value *AlertingCondition_State) *AlertingCondition_FieldTerminalPathValue { 1380 return s.FieldPath().WithIValue(value).(*AlertingCondition_FieldTerminalPathValue) 1381 } 1382 1383 func (s AlertingConditionPathSelectorState) WithArrayOfValues(values []*AlertingCondition_State) *AlertingCondition_FieldTerminalPathArrayOfValues { 1384 return s.FieldPath().WithIArrayOfValues(values).(*AlertingCondition_FieldTerminalPathArrayOfValues) 1385 } 1386 1387 func (AlertingConditionPathSelectorState) WithSubPath(subPath AlertingConditionState_FieldPath) *AlertingCondition_FieldSubPath { 1388 return &AlertingCondition_FieldSubPath{selector: AlertingCondition_FieldPathSelectorState, subPath: subPath} 1389 } 1390 1391 func (s AlertingConditionPathSelectorState) WithSubValue(subPathValue AlertingConditionState_FieldPathValue) *AlertingCondition_FieldSubPathValue { 1392 return &AlertingCondition_FieldSubPathValue{AlertingCondition_FieldPath: s.WithSubPath(subPathValue), subPathValue: subPathValue} 1393 } 1394 1395 func (s AlertingConditionPathSelectorState) WithSubArrayOfValues(subPathArrayOfValues AlertingConditionState_FieldPathArrayOfValues) *AlertingCondition_FieldSubPathArrayOfValues { 1396 return &AlertingCondition_FieldSubPathArrayOfValues{AlertingCondition_FieldPath: s.WithSubPath(subPathArrayOfValues), subPathArrayOfValues: subPathArrayOfValues} 1397 } 1398 1399 func (s AlertingConditionPathSelectorState) WithSubArrayItemValue(subPathArrayItemValue AlertingConditionState_FieldPathArrayItemValue) *AlertingCondition_FieldSubPathArrayItemValue { 1400 return &AlertingCondition_FieldSubPathArrayItemValue{AlertingCondition_FieldPath: s.WithSubPath(subPathArrayItemValue), subPathItemValue: subPathArrayItemValue} 1401 } 1402 1403 func (AlertingConditionPathSelectorState) FiringAlertsCount() AlertingConditionPathSelectorStateFiringAlertsCount { 1404 return AlertingConditionPathSelectorStateFiringAlertsCount{} 1405 } 1406 1407 type AlertingConditionPathSelectorStateFiringAlertsCount struct{} 1408 1409 func (AlertingConditionPathSelectorStateFiringAlertsCount) FieldPath() *AlertingCondition_FieldSubPath { 1410 return &AlertingCondition_FieldSubPath{ 1411 selector: AlertingCondition_FieldPathSelectorState, 1412 subPath: NewAlertingConditionStateFieldPathBuilder().FiringAlertsCount().FieldPath(), 1413 } 1414 } 1415 1416 func (s AlertingConditionPathSelectorStateFiringAlertsCount) WithValue(value int64) *AlertingCondition_FieldSubPathValue { 1417 return s.FieldPath().WithIValue(value).(*AlertingCondition_FieldSubPathValue) 1418 } 1419 1420 func (s AlertingConditionPathSelectorStateFiringAlertsCount) WithArrayOfValues(values []int64) *AlertingCondition_FieldSubPathArrayOfValues { 1421 return s.FieldPath().WithIArrayOfValues(values).(*AlertingCondition_FieldSubPathArrayOfValues) 1422 } 1423 1424 type AlertingConditionSpecFieldPathBuilder struct{} 1425 1426 func NewAlertingConditionSpecFieldPathBuilder() AlertingConditionSpecFieldPathBuilder { 1427 return AlertingConditionSpecFieldPathBuilder{} 1428 } 1429 func (AlertingConditionSpecFieldPathBuilder) TimeSeries() AlertingCondition_SpecPathSelectorTimeSeries { 1430 return AlertingCondition_SpecPathSelectorTimeSeries{} 1431 } 1432 func (AlertingConditionSpecFieldPathBuilder) Trigger() AlertingCondition_SpecPathSelectorTrigger { 1433 return AlertingCondition_SpecPathSelectorTrigger{} 1434 } 1435 1436 type AlertingCondition_SpecPathSelectorTimeSeries struct{} 1437 1438 func (AlertingCondition_SpecPathSelectorTimeSeries) FieldPath() *AlertingConditionSpec_FieldTerminalPath { 1439 return &AlertingConditionSpec_FieldTerminalPath{selector: AlertingConditionSpec_FieldPathSelectorTimeSeries} 1440 } 1441 1442 func (s AlertingCondition_SpecPathSelectorTimeSeries) WithValue(value *AlertingCondition_Spec_TimeSeries) *AlertingConditionSpec_FieldTerminalPathValue { 1443 return s.FieldPath().WithIValue(value).(*AlertingConditionSpec_FieldTerminalPathValue) 1444 } 1445 1446 func (s AlertingCondition_SpecPathSelectorTimeSeries) WithArrayOfValues(values []*AlertingCondition_Spec_TimeSeries) *AlertingConditionSpec_FieldTerminalPathArrayOfValues { 1447 return s.FieldPath().WithIArrayOfValues(values).(*AlertingConditionSpec_FieldTerminalPathArrayOfValues) 1448 } 1449 1450 func (AlertingCondition_SpecPathSelectorTimeSeries) WithSubPath(subPath AlertingConditionSpecTimeSeries_FieldPath) *AlertingConditionSpec_FieldSubPath { 1451 return &AlertingConditionSpec_FieldSubPath{selector: AlertingConditionSpec_FieldPathSelectorTimeSeries, subPath: subPath} 1452 } 1453 1454 func (s AlertingCondition_SpecPathSelectorTimeSeries) WithSubValue(subPathValue AlertingConditionSpecTimeSeries_FieldPathValue) *AlertingConditionSpec_FieldSubPathValue { 1455 return &AlertingConditionSpec_FieldSubPathValue{AlertingConditionSpec_FieldPath: s.WithSubPath(subPathValue), subPathValue: subPathValue} 1456 } 1457 1458 func (s AlertingCondition_SpecPathSelectorTimeSeries) WithSubArrayOfValues(subPathArrayOfValues AlertingConditionSpecTimeSeries_FieldPathArrayOfValues) *AlertingConditionSpec_FieldSubPathArrayOfValues { 1459 return &AlertingConditionSpec_FieldSubPathArrayOfValues{AlertingConditionSpec_FieldPath: s.WithSubPath(subPathArrayOfValues), subPathArrayOfValues: subPathArrayOfValues} 1460 } 1461 1462 func (s AlertingCondition_SpecPathSelectorTimeSeries) WithSubArrayItemValue(subPathArrayItemValue AlertingConditionSpecTimeSeries_FieldPathArrayItemValue) *AlertingConditionSpec_FieldSubPathArrayItemValue { 1463 return &AlertingConditionSpec_FieldSubPathArrayItemValue{AlertingConditionSpec_FieldPath: s.WithSubPath(subPathArrayItemValue), subPathItemValue: subPathArrayItemValue} 1464 } 1465 1466 func (AlertingCondition_SpecPathSelectorTimeSeries) Query() AlertingCondition_SpecPathSelectorTimeSeriesQuery { 1467 return AlertingCondition_SpecPathSelectorTimeSeriesQuery{} 1468 } 1469 1470 func (AlertingCondition_SpecPathSelectorTimeSeries) Threshold() AlertingCondition_SpecPathSelectorTimeSeriesThreshold { 1471 return AlertingCondition_SpecPathSelectorTimeSeriesThreshold{} 1472 } 1473 1474 func (AlertingCondition_SpecPathSelectorTimeSeries) CombineThreshold() AlertingCondition_SpecPathSelectorTimeSeriesCombineThreshold { 1475 return AlertingCondition_SpecPathSelectorTimeSeriesCombineThreshold{} 1476 } 1477 1478 func (AlertingCondition_SpecPathSelectorTimeSeries) Duration() AlertingCondition_SpecPathSelectorTimeSeriesDuration { 1479 return AlertingCondition_SpecPathSelectorTimeSeriesDuration{} 1480 } 1481 1482 type AlertingCondition_SpecPathSelectorTimeSeriesQuery struct{} 1483 1484 func (AlertingCondition_SpecPathSelectorTimeSeriesQuery) FieldPath() *AlertingConditionSpec_FieldSubPath { 1485 return &AlertingConditionSpec_FieldSubPath{ 1486 selector: AlertingConditionSpec_FieldPathSelectorTimeSeries, 1487 subPath: NewAlertingConditionSpecTimeSeriesFieldPathBuilder().Query().FieldPath(), 1488 } 1489 } 1490 1491 func (s AlertingCondition_SpecPathSelectorTimeSeriesQuery) WithValue(value *AlertingCondition_Spec_TimeSeries_Query) *AlertingConditionSpec_FieldSubPathValue { 1492 return s.FieldPath().WithIValue(value).(*AlertingConditionSpec_FieldSubPathValue) 1493 } 1494 1495 func (s AlertingCondition_SpecPathSelectorTimeSeriesQuery) WithArrayOfValues(values []*AlertingCondition_Spec_TimeSeries_Query) *AlertingConditionSpec_FieldSubPathArrayOfValues { 1496 return s.FieldPath().WithIArrayOfValues(values).(*AlertingConditionSpec_FieldSubPathArrayOfValues) 1497 } 1498 1499 func (AlertingCondition_SpecPathSelectorTimeSeriesQuery) Selector() AlertingCondition_SpecPathSelectorTimeSeriesQuerySelector { 1500 return AlertingCondition_SpecPathSelectorTimeSeriesQuerySelector{} 1501 } 1502 1503 func (AlertingCondition_SpecPathSelectorTimeSeriesQuery) Aggregation() AlertingCondition_SpecPathSelectorTimeSeriesQueryAggregation { 1504 return AlertingCondition_SpecPathSelectorTimeSeriesQueryAggregation{} 1505 } 1506 1507 type AlertingCondition_SpecPathSelectorTimeSeriesQuerySelector struct{} 1508 1509 func (AlertingCondition_SpecPathSelectorTimeSeriesQuerySelector) FieldPath() *AlertingConditionSpec_FieldSubPath { 1510 return &AlertingConditionSpec_FieldSubPath{ 1511 selector: AlertingConditionSpec_FieldPathSelectorTimeSeries, 1512 subPath: NewAlertingConditionSpecTimeSeriesFieldPathBuilder().Query().Selector().FieldPath(), 1513 } 1514 } 1515 1516 func (s AlertingCondition_SpecPathSelectorTimeSeriesQuerySelector) WithValue(value *common.TimeSeriesSelector) *AlertingConditionSpec_FieldSubPathValue { 1517 return s.FieldPath().WithIValue(value).(*AlertingConditionSpec_FieldSubPathValue) 1518 } 1519 1520 func (s AlertingCondition_SpecPathSelectorTimeSeriesQuerySelector) WithArrayOfValues(values []*common.TimeSeriesSelector) *AlertingConditionSpec_FieldSubPathArrayOfValues { 1521 return s.FieldPath().WithIArrayOfValues(values).(*AlertingConditionSpec_FieldSubPathArrayOfValues) 1522 } 1523 1524 func (AlertingCondition_SpecPathSelectorTimeSeriesQuerySelector) Metric() AlertingCondition_SpecPathSelectorTimeSeriesQuerySelectorMetric { 1525 return AlertingCondition_SpecPathSelectorTimeSeriesQuerySelectorMetric{} 1526 } 1527 1528 func (AlertingCondition_SpecPathSelectorTimeSeriesQuerySelector) Resource() AlertingCondition_SpecPathSelectorTimeSeriesQuerySelectorResource { 1529 return AlertingCondition_SpecPathSelectorTimeSeriesQuerySelectorResource{} 1530 } 1531 1532 type AlertingCondition_SpecPathSelectorTimeSeriesQuerySelectorMetric struct{} 1533 1534 func (AlertingCondition_SpecPathSelectorTimeSeriesQuerySelectorMetric) FieldPath() *AlertingConditionSpec_FieldSubPath { 1535 return &AlertingConditionSpec_FieldSubPath{ 1536 selector: AlertingConditionSpec_FieldPathSelectorTimeSeries, 1537 subPath: NewAlertingConditionSpecTimeSeriesFieldPathBuilder().Query().Selector().Metric().FieldPath(), 1538 } 1539 } 1540 1541 func (s AlertingCondition_SpecPathSelectorTimeSeriesQuerySelectorMetric) WithValue(value *common.MetricSelector) *AlertingConditionSpec_FieldSubPathValue { 1542 return s.FieldPath().WithIValue(value).(*AlertingConditionSpec_FieldSubPathValue) 1543 } 1544 1545 func (s AlertingCondition_SpecPathSelectorTimeSeriesQuerySelectorMetric) WithArrayOfValues(values []*common.MetricSelector) *AlertingConditionSpec_FieldSubPathArrayOfValues { 1546 return s.FieldPath().WithIArrayOfValues(values).(*AlertingConditionSpec_FieldSubPathArrayOfValues) 1547 } 1548 1549 func (AlertingCondition_SpecPathSelectorTimeSeriesQuerySelectorMetric) Types() AlertingCondition_SpecPathSelectorTimeSeriesQuerySelectorMetricTypes { 1550 return AlertingCondition_SpecPathSelectorTimeSeriesQuerySelectorMetricTypes{} 1551 } 1552 1553 func (AlertingCondition_SpecPathSelectorTimeSeriesQuerySelectorMetric) Labels() AlertingCondition_SpecPathSelectorTimeSeriesQuerySelectorMetricLabels { 1554 return AlertingCondition_SpecPathSelectorTimeSeriesQuerySelectorMetricLabels{} 1555 } 1556 1557 type AlertingCondition_SpecPathSelectorTimeSeriesQuerySelectorMetricTypes struct{} 1558 1559 func (AlertingCondition_SpecPathSelectorTimeSeriesQuerySelectorMetricTypes) FieldPath() *AlertingConditionSpec_FieldSubPath { 1560 return &AlertingConditionSpec_FieldSubPath{ 1561 selector: AlertingConditionSpec_FieldPathSelectorTimeSeries, 1562 subPath: NewAlertingConditionSpecTimeSeriesFieldPathBuilder().Query().Selector().Metric().Types().FieldPath(), 1563 } 1564 } 1565 1566 func (s AlertingCondition_SpecPathSelectorTimeSeriesQuerySelectorMetricTypes) WithValue(value []string) *AlertingConditionSpec_FieldSubPathValue { 1567 return s.FieldPath().WithIValue(value).(*AlertingConditionSpec_FieldSubPathValue) 1568 } 1569 1570 func (s AlertingCondition_SpecPathSelectorTimeSeriesQuerySelectorMetricTypes) WithArrayOfValues(values [][]string) *AlertingConditionSpec_FieldSubPathArrayOfValues { 1571 return s.FieldPath().WithIArrayOfValues(values).(*AlertingConditionSpec_FieldSubPathArrayOfValues) 1572 } 1573 1574 func (s AlertingCondition_SpecPathSelectorTimeSeriesQuerySelectorMetricTypes) WithItemValue(value string) *AlertingConditionSpec_FieldSubPathArrayItemValue { 1575 return s.FieldPath().WithIArrayItemValue(value).(*AlertingConditionSpec_FieldSubPathArrayItemValue) 1576 } 1577 1578 type AlertingCondition_SpecPathSelectorTimeSeriesQuerySelectorMetricLabels struct{} 1579 1580 func (AlertingCondition_SpecPathSelectorTimeSeriesQuerySelectorMetricLabels) FieldPath() *AlertingConditionSpec_FieldSubPath { 1581 return &AlertingConditionSpec_FieldSubPath{ 1582 selector: AlertingConditionSpec_FieldPathSelectorTimeSeries, 1583 subPath: NewAlertingConditionSpecTimeSeriesFieldPathBuilder().Query().Selector().Metric().Labels().FieldPath(), 1584 } 1585 } 1586 1587 func (s AlertingCondition_SpecPathSelectorTimeSeriesQuerySelectorMetricLabels) WithValue(value map[string]*common.Strings) *AlertingConditionSpec_FieldSubPathValue { 1588 return s.FieldPath().WithIValue(value).(*AlertingConditionSpec_FieldSubPathValue) 1589 } 1590 1591 func (s AlertingCondition_SpecPathSelectorTimeSeriesQuerySelectorMetricLabels) WithArrayOfValues(values []map[string]*common.Strings) *AlertingConditionSpec_FieldSubPathArrayOfValues { 1592 return s.FieldPath().WithIArrayOfValues(values).(*AlertingConditionSpec_FieldSubPathArrayOfValues) 1593 } 1594 1595 func (AlertingCondition_SpecPathSelectorTimeSeriesQuerySelectorMetricLabels) WithKey(key string) AlertingCondition_SpecMapPathSelectorTimeSeriesQuerySelectorMetricLabels { 1596 return AlertingCondition_SpecMapPathSelectorTimeSeriesQuerySelectorMetricLabels{key: key} 1597 } 1598 1599 type AlertingCondition_SpecMapPathSelectorTimeSeriesQuerySelectorMetricLabels struct { 1600 key string 1601 } 1602 1603 func (s AlertingCondition_SpecMapPathSelectorTimeSeriesQuerySelectorMetricLabels) FieldPath() *AlertingConditionSpec_FieldSubPath { 1604 return &AlertingConditionSpec_FieldSubPath{ 1605 selector: AlertingConditionSpec_FieldPathSelectorTimeSeries, 1606 subPath: NewAlertingConditionSpecTimeSeriesFieldPathBuilder().Query().Selector().Metric().Labels().WithKey(s.key).FieldPath(), 1607 } 1608 } 1609 1610 func (s AlertingCondition_SpecMapPathSelectorTimeSeriesQuerySelectorMetricLabels) WithValue(value *common.Strings) *AlertingConditionSpec_FieldSubPathValue { 1611 return s.FieldPath().WithIValue(value).(*AlertingConditionSpec_FieldSubPathValue) 1612 } 1613 1614 func (s AlertingCondition_SpecMapPathSelectorTimeSeriesQuerySelectorMetricLabels) WithArrayOfValues(values []*common.Strings) *AlertingConditionSpec_FieldSubPathArrayOfValues { 1615 return s.FieldPath().WithIArrayOfValues(values).(*AlertingConditionSpec_FieldSubPathArrayOfValues) 1616 } 1617 1618 type AlertingCondition_SpecPathSelectorTimeSeriesQuerySelectorResource struct{} 1619 1620 func (AlertingCondition_SpecPathSelectorTimeSeriesQuerySelectorResource) FieldPath() *AlertingConditionSpec_FieldSubPath { 1621 return &AlertingConditionSpec_FieldSubPath{ 1622 selector: AlertingConditionSpec_FieldPathSelectorTimeSeries, 1623 subPath: NewAlertingConditionSpecTimeSeriesFieldPathBuilder().Query().Selector().Resource().FieldPath(), 1624 } 1625 } 1626 1627 func (s AlertingCondition_SpecPathSelectorTimeSeriesQuerySelectorResource) WithValue(value *common.MonitoredResourceSelector) *AlertingConditionSpec_FieldSubPathValue { 1628 return s.FieldPath().WithIValue(value).(*AlertingConditionSpec_FieldSubPathValue) 1629 } 1630 1631 func (s AlertingCondition_SpecPathSelectorTimeSeriesQuerySelectorResource) WithArrayOfValues(values []*common.MonitoredResourceSelector) *AlertingConditionSpec_FieldSubPathArrayOfValues { 1632 return s.FieldPath().WithIArrayOfValues(values).(*AlertingConditionSpec_FieldSubPathArrayOfValues) 1633 } 1634 1635 func (AlertingCondition_SpecPathSelectorTimeSeriesQuerySelectorResource) Types() AlertingCondition_SpecPathSelectorTimeSeriesQuerySelectorResourceTypes { 1636 return AlertingCondition_SpecPathSelectorTimeSeriesQuerySelectorResourceTypes{} 1637 } 1638 1639 func (AlertingCondition_SpecPathSelectorTimeSeriesQuerySelectorResource) Labels() AlertingCondition_SpecPathSelectorTimeSeriesQuerySelectorResourceLabels { 1640 return AlertingCondition_SpecPathSelectorTimeSeriesQuerySelectorResourceLabels{} 1641 } 1642 1643 type AlertingCondition_SpecPathSelectorTimeSeriesQuerySelectorResourceTypes struct{} 1644 1645 func (AlertingCondition_SpecPathSelectorTimeSeriesQuerySelectorResourceTypes) FieldPath() *AlertingConditionSpec_FieldSubPath { 1646 return &AlertingConditionSpec_FieldSubPath{ 1647 selector: AlertingConditionSpec_FieldPathSelectorTimeSeries, 1648 subPath: NewAlertingConditionSpecTimeSeriesFieldPathBuilder().Query().Selector().Resource().Types().FieldPath(), 1649 } 1650 } 1651 1652 func (s AlertingCondition_SpecPathSelectorTimeSeriesQuerySelectorResourceTypes) WithValue(value []string) *AlertingConditionSpec_FieldSubPathValue { 1653 return s.FieldPath().WithIValue(value).(*AlertingConditionSpec_FieldSubPathValue) 1654 } 1655 1656 func (s AlertingCondition_SpecPathSelectorTimeSeriesQuerySelectorResourceTypes) WithArrayOfValues(values [][]string) *AlertingConditionSpec_FieldSubPathArrayOfValues { 1657 return s.FieldPath().WithIArrayOfValues(values).(*AlertingConditionSpec_FieldSubPathArrayOfValues) 1658 } 1659 1660 func (s AlertingCondition_SpecPathSelectorTimeSeriesQuerySelectorResourceTypes) WithItemValue(value string) *AlertingConditionSpec_FieldSubPathArrayItemValue { 1661 return s.FieldPath().WithIArrayItemValue(value).(*AlertingConditionSpec_FieldSubPathArrayItemValue) 1662 } 1663 1664 type AlertingCondition_SpecPathSelectorTimeSeriesQuerySelectorResourceLabels struct{} 1665 1666 func (AlertingCondition_SpecPathSelectorTimeSeriesQuerySelectorResourceLabels) FieldPath() *AlertingConditionSpec_FieldSubPath { 1667 return &AlertingConditionSpec_FieldSubPath{ 1668 selector: AlertingConditionSpec_FieldPathSelectorTimeSeries, 1669 subPath: NewAlertingConditionSpecTimeSeriesFieldPathBuilder().Query().Selector().Resource().Labels().FieldPath(), 1670 } 1671 } 1672 1673 func (s AlertingCondition_SpecPathSelectorTimeSeriesQuerySelectorResourceLabels) WithValue(value map[string]*common.Strings) *AlertingConditionSpec_FieldSubPathValue { 1674 return s.FieldPath().WithIValue(value).(*AlertingConditionSpec_FieldSubPathValue) 1675 } 1676 1677 func (s AlertingCondition_SpecPathSelectorTimeSeriesQuerySelectorResourceLabels) WithArrayOfValues(values []map[string]*common.Strings) *AlertingConditionSpec_FieldSubPathArrayOfValues { 1678 return s.FieldPath().WithIArrayOfValues(values).(*AlertingConditionSpec_FieldSubPathArrayOfValues) 1679 } 1680 1681 func (AlertingCondition_SpecPathSelectorTimeSeriesQuerySelectorResourceLabels) WithKey(key string) AlertingCondition_SpecMapPathSelectorTimeSeriesQuerySelectorResourceLabels { 1682 return AlertingCondition_SpecMapPathSelectorTimeSeriesQuerySelectorResourceLabels{key: key} 1683 } 1684 1685 type AlertingCondition_SpecMapPathSelectorTimeSeriesQuerySelectorResourceLabels struct { 1686 key string 1687 } 1688 1689 func (s AlertingCondition_SpecMapPathSelectorTimeSeriesQuerySelectorResourceLabels) FieldPath() *AlertingConditionSpec_FieldSubPath { 1690 return &AlertingConditionSpec_FieldSubPath{ 1691 selector: AlertingConditionSpec_FieldPathSelectorTimeSeries, 1692 subPath: NewAlertingConditionSpecTimeSeriesFieldPathBuilder().Query().Selector().Resource().Labels().WithKey(s.key).FieldPath(), 1693 } 1694 } 1695 1696 func (s AlertingCondition_SpecMapPathSelectorTimeSeriesQuerySelectorResourceLabels) WithValue(value *common.Strings) *AlertingConditionSpec_FieldSubPathValue { 1697 return s.FieldPath().WithIValue(value).(*AlertingConditionSpec_FieldSubPathValue) 1698 } 1699 1700 func (s AlertingCondition_SpecMapPathSelectorTimeSeriesQuerySelectorResourceLabels) WithArrayOfValues(values []*common.Strings) *AlertingConditionSpec_FieldSubPathArrayOfValues { 1701 return s.FieldPath().WithIArrayOfValues(values).(*AlertingConditionSpec_FieldSubPathArrayOfValues) 1702 } 1703 1704 type AlertingCondition_SpecPathSelectorTimeSeriesQueryAggregation struct{} 1705 1706 func (AlertingCondition_SpecPathSelectorTimeSeriesQueryAggregation) FieldPath() *AlertingConditionSpec_FieldSubPath { 1707 return &AlertingConditionSpec_FieldSubPath{ 1708 selector: AlertingConditionSpec_FieldPathSelectorTimeSeries, 1709 subPath: NewAlertingConditionSpecTimeSeriesFieldPathBuilder().Query().Aggregation().FieldPath(), 1710 } 1711 } 1712 1713 func (s AlertingCondition_SpecPathSelectorTimeSeriesQueryAggregation) WithValue(value *common.Aggregation) *AlertingConditionSpec_FieldSubPathValue { 1714 return s.FieldPath().WithIValue(value).(*AlertingConditionSpec_FieldSubPathValue) 1715 } 1716 1717 func (s AlertingCondition_SpecPathSelectorTimeSeriesQueryAggregation) WithArrayOfValues(values []*common.Aggregation) *AlertingConditionSpec_FieldSubPathArrayOfValues { 1718 return s.FieldPath().WithIArrayOfValues(values).(*AlertingConditionSpec_FieldSubPathArrayOfValues) 1719 } 1720 1721 func (AlertingCondition_SpecPathSelectorTimeSeriesQueryAggregation) AlignmentPeriod() AlertingCondition_SpecPathSelectorTimeSeriesQueryAggregationAlignmentPeriod { 1722 return AlertingCondition_SpecPathSelectorTimeSeriesQueryAggregationAlignmentPeriod{} 1723 } 1724 1725 func (AlertingCondition_SpecPathSelectorTimeSeriesQueryAggregation) PerSeriesAligner() AlertingCondition_SpecPathSelectorTimeSeriesQueryAggregationPerSeriesAligner { 1726 return AlertingCondition_SpecPathSelectorTimeSeriesQueryAggregationPerSeriesAligner{} 1727 } 1728 1729 func (AlertingCondition_SpecPathSelectorTimeSeriesQueryAggregation) CrossSeriesReducer() AlertingCondition_SpecPathSelectorTimeSeriesQueryAggregationCrossSeriesReducer { 1730 return AlertingCondition_SpecPathSelectorTimeSeriesQueryAggregationCrossSeriesReducer{} 1731 } 1732 1733 func (AlertingCondition_SpecPathSelectorTimeSeriesQueryAggregation) GroupByFields() AlertingCondition_SpecPathSelectorTimeSeriesQueryAggregationGroupByFields { 1734 return AlertingCondition_SpecPathSelectorTimeSeriesQueryAggregationGroupByFields{} 1735 } 1736 1737 type AlertingCondition_SpecPathSelectorTimeSeriesQueryAggregationAlignmentPeriod struct{} 1738 1739 func (AlertingCondition_SpecPathSelectorTimeSeriesQueryAggregationAlignmentPeriod) FieldPath() *AlertingConditionSpec_FieldSubPath { 1740 return &AlertingConditionSpec_FieldSubPath{ 1741 selector: AlertingConditionSpec_FieldPathSelectorTimeSeries, 1742 subPath: NewAlertingConditionSpecTimeSeriesFieldPathBuilder().Query().Aggregation().AlignmentPeriod().FieldPath(), 1743 } 1744 } 1745 1746 func (s AlertingCondition_SpecPathSelectorTimeSeriesQueryAggregationAlignmentPeriod) WithValue(value *durationpb.Duration) *AlertingConditionSpec_FieldSubPathValue { 1747 return s.FieldPath().WithIValue(value).(*AlertingConditionSpec_FieldSubPathValue) 1748 } 1749 1750 func (s AlertingCondition_SpecPathSelectorTimeSeriesQueryAggregationAlignmentPeriod) WithArrayOfValues(values []*durationpb.Duration) *AlertingConditionSpec_FieldSubPathArrayOfValues { 1751 return s.FieldPath().WithIArrayOfValues(values).(*AlertingConditionSpec_FieldSubPathArrayOfValues) 1752 } 1753 1754 type AlertingCondition_SpecPathSelectorTimeSeriesQueryAggregationPerSeriesAligner struct{} 1755 1756 func (AlertingCondition_SpecPathSelectorTimeSeriesQueryAggregationPerSeriesAligner) FieldPath() *AlertingConditionSpec_FieldSubPath { 1757 return &AlertingConditionSpec_FieldSubPath{ 1758 selector: AlertingConditionSpec_FieldPathSelectorTimeSeries, 1759 subPath: NewAlertingConditionSpecTimeSeriesFieldPathBuilder().Query().Aggregation().PerSeriesAligner().FieldPath(), 1760 } 1761 } 1762 1763 func (s AlertingCondition_SpecPathSelectorTimeSeriesQueryAggregationPerSeriesAligner) WithValue(value common.Aggregation_Aligner) *AlertingConditionSpec_FieldSubPathValue { 1764 return s.FieldPath().WithIValue(value).(*AlertingConditionSpec_FieldSubPathValue) 1765 } 1766 1767 func (s AlertingCondition_SpecPathSelectorTimeSeriesQueryAggregationPerSeriesAligner) WithArrayOfValues(values []common.Aggregation_Aligner) *AlertingConditionSpec_FieldSubPathArrayOfValues { 1768 return s.FieldPath().WithIArrayOfValues(values).(*AlertingConditionSpec_FieldSubPathArrayOfValues) 1769 } 1770 1771 type AlertingCondition_SpecPathSelectorTimeSeriesQueryAggregationCrossSeriesReducer struct{} 1772 1773 func (AlertingCondition_SpecPathSelectorTimeSeriesQueryAggregationCrossSeriesReducer) FieldPath() *AlertingConditionSpec_FieldSubPath { 1774 return &AlertingConditionSpec_FieldSubPath{ 1775 selector: AlertingConditionSpec_FieldPathSelectorTimeSeries, 1776 subPath: NewAlertingConditionSpecTimeSeriesFieldPathBuilder().Query().Aggregation().CrossSeriesReducer().FieldPath(), 1777 } 1778 } 1779 1780 func (s AlertingCondition_SpecPathSelectorTimeSeriesQueryAggregationCrossSeriesReducer) WithValue(value common.Aggregation_Reducer) *AlertingConditionSpec_FieldSubPathValue { 1781 return s.FieldPath().WithIValue(value).(*AlertingConditionSpec_FieldSubPathValue) 1782 } 1783 1784 func (s AlertingCondition_SpecPathSelectorTimeSeriesQueryAggregationCrossSeriesReducer) WithArrayOfValues(values []common.Aggregation_Reducer) *AlertingConditionSpec_FieldSubPathArrayOfValues { 1785 return s.FieldPath().WithIArrayOfValues(values).(*AlertingConditionSpec_FieldSubPathArrayOfValues) 1786 } 1787 1788 type AlertingCondition_SpecPathSelectorTimeSeriesQueryAggregationGroupByFields struct{} 1789 1790 func (AlertingCondition_SpecPathSelectorTimeSeriesQueryAggregationGroupByFields) FieldPath() *AlertingConditionSpec_FieldSubPath { 1791 return &AlertingConditionSpec_FieldSubPath{ 1792 selector: AlertingConditionSpec_FieldPathSelectorTimeSeries, 1793 subPath: NewAlertingConditionSpecTimeSeriesFieldPathBuilder().Query().Aggregation().GroupByFields().FieldPath(), 1794 } 1795 } 1796 1797 func (s AlertingCondition_SpecPathSelectorTimeSeriesQueryAggregationGroupByFields) WithValue(value []string) *AlertingConditionSpec_FieldSubPathValue { 1798 return s.FieldPath().WithIValue(value).(*AlertingConditionSpec_FieldSubPathValue) 1799 } 1800 1801 func (s AlertingCondition_SpecPathSelectorTimeSeriesQueryAggregationGroupByFields) WithArrayOfValues(values [][]string) *AlertingConditionSpec_FieldSubPathArrayOfValues { 1802 return s.FieldPath().WithIArrayOfValues(values).(*AlertingConditionSpec_FieldSubPathArrayOfValues) 1803 } 1804 1805 func (s AlertingCondition_SpecPathSelectorTimeSeriesQueryAggregationGroupByFields) WithItemValue(value string) *AlertingConditionSpec_FieldSubPathArrayItemValue { 1806 return s.FieldPath().WithIArrayItemValue(value).(*AlertingConditionSpec_FieldSubPathArrayItemValue) 1807 } 1808 1809 type AlertingCondition_SpecPathSelectorTimeSeriesThreshold struct{} 1810 1811 func (AlertingCondition_SpecPathSelectorTimeSeriesThreshold) FieldPath() *AlertingConditionSpec_FieldSubPath { 1812 return &AlertingConditionSpec_FieldSubPath{ 1813 selector: AlertingConditionSpec_FieldPathSelectorTimeSeries, 1814 subPath: NewAlertingConditionSpecTimeSeriesFieldPathBuilder().Threshold().FieldPath(), 1815 } 1816 } 1817 1818 func (s AlertingCondition_SpecPathSelectorTimeSeriesThreshold) WithValue(value *AlertingCondition_Spec_TimeSeries_Threshold) *AlertingConditionSpec_FieldSubPathValue { 1819 return s.FieldPath().WithIValue(value).(*AlertingConditionSpec_FieldSubPathValue) 1820 } 1821 1822 func (s AlertingCondition_SpecPathSelectorTimeSeriesThreshold) WithArrayOfValues(values []*AlertingCondition_Spec_TimeSeries_Threshold) *AlertingConditionSpec_FieldSubPathArrayOfValues { 1823 return s.FieldPath().WithIArrayOfValues(values).(*AlertingConditionSpec_FieldSubPathArrayOfValues) 1824 } 1825 1826 func (AlertingCondition_SpecPathSelectorTimeSeriesThreshold) Compare() AlertingCondition_SpecPathSelectorTimeSeriesThresholdCompare { 1827 return AlertingCondition_SpecPathSelectorTimeSeriesThresholdCompare{} 1828 } 1829 1830 func (AlertingCondition_SpecPathSelectorTimeSeriesThreshold) Value() AlertingCondition_SpecPathSelectorTimeSeriesThresholdValue { 1831 return AlertingCondition_SpecPathSelectorTimeSeriesThresholdValue{} 1832 } 1833 1834 type AlertingCondition_SpecPathSelectorTimeSeriesThresholdCompare struct{} 1835 1836 func (AlertingCondition_SpecPathSelectorTimeSeriesThresholdCompare) FieldPath() *AlertingConditionSpec_FieldSubPath { 1837 return &AlertingConditionSpec_FieldSubPath{ 1838 selector: AlertingConditionSpec_FieldPathSelectorTimeSeries, 1839 subPath: NewAlertingConditionSpecTimeSeriesFieldPathBuilder().Threshold().Compare().FieldPath(), 1840 } 1841 } 1842 1843 func (s AlertingCondition_SpecPathSelectorTimeSeriesThresholdCompare) WithValue(value AlertingCondition_Spec_TimeSeries_Threshold_Compare) *AlertingConditionSpec_FieldSubPathValue { 1844 return s.FieldPath().WithIValue(value).(*AlertingConditionSpec_FieldSubPathValue) 1845 } 1846 1847 func (s AlertingCondition_SpecPathSelectorTimeSeriesThresholdCompare) WithArrayOfValues(values []AlertingCondition_Spec_TimeSeries_Threshold_Compare) *AlertingConditionSpec_FieldSubPathArrayOfValues { 1848 return s.FieldPath().WithIArrayOfValues(values).(*AlertingConditionSpec_FieldSubPathArrayOfValues) 1849 } 1850 1851 type AlertingCondition_SpecPathSelectorTimeSeriesThresholdValue struct{} 1852 1853 func (AlertingCondition_SpecPathSelectorTimeSeriesThresholdValue) FieldPath() *AlertingConditionSpec_FieldSubPath { 1854 return &AlertingConditionSpec_FieldSubPath{ 1855 selector: AlertingConditionSpec_FieldPathSelectorTimeSeries, 1856 subPath: NewAlertingConditionSpecTimeSeriesFieldPathBuilder().Threshold().Value().FieldPath(), 1857 } 1858 } 1859 1860 func (s AlertingCondition_SpecPathSelectorTimeSeriesThresholdValue) WithValue(value float64) *AlertingConditionSpec_FieldSubPathValue { 1861 return s.FieldPath().WithIValue(value).(*AlertingConditionSpec_FieldSubPathValue) 1862 } 1863 1864 func (s AlertingCondition_SpecPathSelectorTimeSeriesThresholdValue) WithArrayOfValues(values []float64) *AlertingConditionSpec_FieldSubPathArrayOfValues { 1865 return s.FieldPath().WithIArrayOfValues(values).(*AlertingConditionSpec_FieldSubPathArrayOfValues) 1866 } 1867 1868 type AlertingCondition_SpecPathSelectorTimeSeriesCombineThreshold struct{} 1869 1870 func (AlertingCondition_SpecPathSelectorTimeSeriesCombineThreshold) FieldPath() *AlertingConditionSpec_FieldSubPath { 1871 return &AlertingConditionSpec_FieldSubPath{ 1872 selector: AlertingConditionSpec_FieldPathSelectorTimeSeries, 1873 subPath: NewAlertingConditionSpecTimeSeriesFieldPathBuilder().CombineThreshold().FieldPath(), 1874 } 1875 } 1876 1877 func (s AlertingCondition_SpecPathSelectorTimeSeriesCombineThreshold) WithValue(value *AlertingCondition_Spec_TimeSeries_CombineThreshold) *AlertingConditionSpec_FieldSubPathValue { 1878 return s.FieldPath().WithIValue(value).(*AlertingConditionSpec_FieldSubPathValue) 1879 } 1880 1881 func (s AlertingCondition_SpecPathSelectorTimeSeriesCombineThreshold) WithArrayOfValues(values []*AlertingCondition_Spec_TimeSeries_CombineThreshold) *AlertingConditionSpec_FieldSubPathArrayOfValues { 1882 return s.FieldPath().WithIArrayOfValues(values).(*AlertingConditionSpec_FieldSubPathArrayOfValues) 1883 } 1884 1885 func (AlertingCondition_SpecPathSelectorTimeSeriesCombineThreshold) PerMetric() AlertingCondition_SpecPathSelectorTimeSeriesCombineThresholdPerMetric { 1886 return AlertingCondition_SpecPathSelectorTimeSeriesCombineThresholdPerMetric{} 1887 } 1888 1889 func (AlertingCondition_SpecPathSelectorTimeSeriesCombineThreshold) Combine() AlertingCondition_SpecPathSelectorTimeSeriesCombineThresholdCombine { 1890 return AlertingCondition_SpecPathSelectorTimeSeriesCombineThresholdCombine{} 1891 } 1892 1893 type AlertingCondition_SpecPathSelectorTimeSeriesCombineThresholdPerMetric struct{} 1894 1895 func (AlertingCondition_SpecPathSelectorTimeSeriesCombineThresholdPerMetric) FieldPath() *AlertingConditionSpec_FieldSubPath { 1896 return &AlertingConditionSpec_FieldSubPath{ 1897 selector: AlertingConditionSpec_FieldPathSelectorTimeSeries, 1898 subPath: NewAlertingConditionSpecTimeSeriesFieldPathBuilder().CombineThreshold().PerMetric().FieldPath(), 1899 } 1900 } 1901 1902 func (s AlertingCondition_SpecPathSelectorTimeSeriesCombineThresholdPerMetric) WithValue(value map[string]*AlertingCondition_Spec_TimeSeries_Threshold) *AlertingConditionSpec_FieldSubPathValue { 1903 return s.FieldPath().WithIValue(value).(*AlertingConditionSpec_FieldSubPathValue) 1904 } 1905 1906 func (s AlertingCondition_SpecPathSelectorTimeSeriesCombineThresholdPerMetric) WithArrayOfValues(values []map[string]*AlertingCondition_Spec_TimeSeries_Threshold) *AlertingConditionSpec_FieldSubPathArrayOfValues { 1907 return s.FieldPath().WithIArrayOfValues(values).(*AlertingConditionSpec_FieldSubPathArrayOfValues) 1908 } 1909 1910 func (AlertingCondition_SpecPathSelectorTimeSeriesCombineThresholdPerMetric) WithKey(key string) AlertingCondition_SpecMapPathSelectorTimeSeriesCombineThresholdPerMetric { 1911 return AlertingCondition_SpecMapPathSelectorTimeSeriesCombineThresholdPerMetric{key: key} 1912 } 1913 1914 type AlertingCondition_SpecMapPathSelectorTimeSeriesCombineThresholdPerMetric struct { 1915 key string 1916 } 1917 1918 func (s AlertingCondition_SpecMapPathSelectorTimeSeriesCombineThresholdPerMetric) FieldPath() *AlertingConditionSpec_FieldSubPath { 1919 return &AlertingConditionSpec_FieldSubPath{ 1920 selector: AlertingConditionSpec_FieldPathSelectorTimeSeries, 1921 subPath: NewAlertingConditionSpecTimeSeriesFieldPathBuilder().CombineThreshold().PerMetric().WithKey(s.key).FieldPath(), 1922 } 1923 } 1924 1925 func (s AlertingCondition_SpecMapPathSelectorTimeSeriesCombineThresholdPerMetric) WithValue(value *AlertingCondition_Spec_TimeSeries_Threshold) *AlertingConditionSpec_FieldSubPathValue { 1926 return s.FieldPath().WithIValue(value).(*AlertingConditionSpec_FieldSubPathValue) 1927 } 1928 1929 func (s AlertingCondition_SpecMapPathSelectorTimeSeriesCombineThresholdPerMetric) WithArrayOfValues(values []*AlertingCondition_Spec_TimeSeries_Threshold) *AlertingConditionSpec_FieldSubPathArrayOfValues { 1930 return s.FieldPath().WithIArrayOfValues(values).(*AlertingConditionSpec_FieldSubPathArrayOfValues) 1931 } 1932 1933 type AlertingCondition_SpecPathSelectorTimeSeriesCombineThresholdCombine struct{} 1934 1935 func (AlertingCondition_SpecPathSelectorTimeSeriesCombineThresholdCombine) FieldPath() *AlertingConditionSpec_FieldSubPath { 1936 return &AlertingConditionSpec_FieldSubPath{ 1937 selector: AlertingConditionSpec_FieldPathSelectorTimeSeries, 1938 subPath: NewAlertingConditionSpecTimeSeriesFieldPathBuilder().CombineThreshold().Combine().FieldPath(), 1939 } 1940 } 1941 1942 func (s AlertingCondition_SpecPathSelectorTimeSeriesCombineThresholdCombine) WithValue(value AlertingCondition_Spec_TimeSeries_CombineThreshold_CombineOperator) *AlertingConditionSpec_FieldSubPathValue { 1943 return s.FieldPath().WithIValue(value).(*AlertingConditionSpec_FieldSubPathValue) 1944 } 1945 1946 func (s AlertingCondition_SpecPathSelectorTimeSeriesCombineThresholdCombine) WithArrayOfValues(values []AlertingCondition_Spec_TimeSeries_CombineThreshold_CombineOperator) *AlertingConditionSpec_FieldSubPathArrayOfValues { 1947 return s.FieldPath().WithIArrayOfValues(values).(*AlertingConditionSpec_FieldSubPathArrayOfValues) 1948 } 1949 1950 type AlertingCondition_SpecPathSelectorTimeSeriesDuration struct{} 1951 1952 func (AlertingCondition_SpecPathSelectorTimeSeriesDuration) FieldPath() *AlertingConditionSpec_FieldSubPath { 1953 return &AlertingConditionSpec_FieldSubPath{ 1954 selector: AlertingConditionSpec_FieldPathSelectorTimeSeries, 1955 subPath: NewAlertingConditionSpecTimeSeriesFieldPathBuilder().Duration().FieldPath(), 1956 } 1957 } 1958 1959 func (s AlertingCondition_SpecPathSelectorTimeSeriesDuration) WithValue(value *durationpb.Duration) *AlertingConditionSpec_FieldSubPathValue { 1960 return s.FieldPath().WithIValue(value).(*AlertingConditionSpec_FieldSubPathValue) 1961 } 1962 1963 func (s AlertingCondition_SpecPathSelectorTimeSeriesDuration) WithArrayOfValues(values []*durationpb.Duration) *AlertingConditionSpec_FieldSubPathArrayOfValues { 1964 return s.FieldPath().WithIArrayOfValues(values).(*AlertingConditionSpec_FieldSubPathArrayOfValues) 1965 } 1966 1967 type AlertingCondition_SpecPathSelectorTrigger struct{} 1968 1969 func (AlertingCondition_SpecPathSelectorTrigger) FieldPath() *AlertingConditionSpec_FieldTerminalPath { 1970 return &AlertingConditionSpec_FieldTerminalPath{selector: AlertingConditionSpec_FieldPathSelectorTrigger} 1971 } 1972 1973 func (s AlertingCondition_SpecPathSelectorTrigger) WithValue(value *AlertingCondition_Spec_Trigger) *AlertingConditionSpec_FieldTerminalPathValue { 1974 return s.FieldPath().WithIValue(value).(*AlertingConditionSpec_FieldTerminalPathValue) 1975 } 1976 1977 func (s AlertingCondition_SpecPathSelectorTrigger) WithArrayOfValues(values []*AlertingCondition_Spec_Trigger) *AlertingConditionSpec_FieldTerminalPathArrayOfValues { 1978 return s.FieldPath().WithIArrayOfValues(values).(*AlertingConditionSpec_FieldTerminalPathArrayOfValues) 1979 } 1980 1981 func (AlertingCondition_SpecPathSelectorTrigger) WithSubPath(subPath AlertingConditionSpecTrigger_FieldPath) *AlertingConditionSpec_FieldSubPath { 1982 return &AlertingConditionSpec_FieldSubPath{selector: AlertingConditionSpec_FieldPathSelectorTrigger, subPath: subPath} 1983 } 1984 1985 func (s AlertingCondition_SpecPathSelectorTrigger) WithSubValue(subPathValue AlertingConditionSpecTrigger_FieldPathValue) *AlertingConditionSpec_FieldSubPathValue { 1986 return &AlertingConditionSpec_FieldSubPathValue{AlertingConditionSpec_FieldPath: s.WithSubPath(subPathValue), subPathValue: subPathValue} 1987 } 1988 1989 func (s AlertingCondition_SpecPathSelectorTrigger) WithSubArrayOfValues(subPathArrayOfValues AlertingConditionSpecTrigger_FieldPathArrayOfValues) *AlertingConditionSpec_FieldSubPathArrayOfValues { 1990 return &AlertingConditionSpec_FieldSubPathArrayOfValues{AlertingConditionSpec_FieldPath: s.WithSubPath(subPathArrayOfValues), subPathArrayOfValues: subPathArrayOfValues} 1991 } 1992 1993 func (s AlertingCondition_SpecPathSelectorTrigger) WithSubArrayItemValue(subPathArrayItemValue AlertingConditionSpecTrigger_FieldPathArrayItemValue) *AlertingConditionSpec_FieldSubPathArrayItemValue { 1994 return &AlertingConditionSpec_FieldSubPathArrayItemValue{AlertingConditionSpec_FieldPath: s.WithSubPath(subPathArrayItemValue), subPathItemValue: subPathArrayItemValue} 1995 } 1996 1997 func (AlertingCondition_SpecPathSelectorTrigger) Type() AlertingCondition_SpecPathSelectorTriggerType { 1998 return AlertingCondition_SpecPathSelectorTriggerType{} 1999 } 2000 2001 type AlertingCondition_SpecPathSelectorTriggerType struct{} 2002 2003 func (AlertingCondition_SpecPathSelectorTriggerType) FieldPath() *AlertingConditionSpec_FieldSubPath { 2004 return &AlertingConditionSpec_FieldSubPath{ 2005 selector: AlertingConditionSpec_FieldPathSelectorTrigger, 2006 subPath: NewAlertingConditionSpecTriggerFieldPathBuilder().Type().FieldPath(), 2007 } 2008 } 2009 2010 func (s AlertingCondition_SpecPathSelectorTriggerType) WithValue(value AlertingCondition_Spec_Trigger_Type) *AlertingConditionSpec_FieldSubPathValue { 2011 return s.FieldPath().WithIValue(value).(*AlertingConditionSpec_FieldSubPathValue) 2012 } 2013 2014 func (s AlertingCondition_SpecPathSelectorTriggerType) WithArrayOfValues(values []AlertingCondition_Spec_Trigger_Type) *AlertingConditionSpec_FieldSubPathArrayOfValues { 2015 return s.FieldPath().WithIArrayOfValues(values).(*AlertingConditionSpec_FieldSubPathArrayOfValues) 2016 } 2017 2018 type AlertingConditionStateFieldPathBuilder struct{} 2019 2020 func NewAlertingConditionStateFieldPathBuilder() AlertingConditionStateFieldPathBuilder { 2021 return AlertingConditionStateFieldPathBuilder{} 2022 } 2023 func (AlertingConditionStateFieldPathBuilder) FiringAlertsCount() AlertingCondition_StatePathSelectorFiringAlertsCount { 2024 return AlertingCondition_StatePathSelectorFiringAlertsCount{} 2025 } 2026 2027 type AlertingCondition_StatePathSelectorFiringAlertsCount struct{} 2028 2029 func (AlertingCondition_StatePathSelectorFiringAlertsCount) FieldPath() *AlertingConditionState_FieldTerminalPath { 2030 return &AlertingConditionState_FieldTerminalPath{selector: AlertingConditionState_FieldPathSelectorFiringAlertsCount} 2031 } 2032 2033 func (s AlertingCondition_StatePathSelectorFiringAlertsCount) WithValue(value int64) *AlertingConditionState_FieldTerminalPathValue { 2034 return s.FieldPath().WithIValue(value).(*AlertingConditionState_FieldTerminalPathValue) 2035 } 2036 2037 func (s AlertingCondition_StatePathSelectorFiringAlertsCount) WithArrayOfValues(values []int64) *AlertingConditionState_FieldTerminalPathArrayOfValues { 2038 return s.FieldPath().WithIArrayOfValues(values).(*AlertingConditionState_FieldTerminalPathArrayOfValues) 2039 } 2040 2041 type AlertingConditionSpecTimeSeriesFieldPathBuilder struct{} 2042 2043 func NewAlertingConditionSpecTimeSeriesFieldPathBuilder() AlertingConditionSpecTimeSeriesFieldPathBuilder { 2044 return AlertingConditionSpecTimeSeriesFieldPathBuilder{} 2045 } 2046 func (AlertingConditionSpecTimeSeriesFieldPathBuilder) Query() AlertingCondition_Spec_TimeSeriesPathSelectorQuery { 2047 return AlertingCondition_Spec_TimeSeriesPathSelectorQuery{} 2048 } 2049 func (AlertingConditionSpecTimeSeriesFieldPathBuilder) Threshold() AlertingCondition_Spec_TimeSeriesPathSelectorThreshold { 2050 return AlertingCondition_Spec_TimeSeriesPathSelectorThreshold{} 2051 } 2052 func (AlertingConditionSpecTimeSeriesFieldPathBuilder) CombineThreshold() AlertingCondition_Spec_TimeSeriesPathSelectorCombineThreshold { 2053 return AlertingCondition_Spec_TimeSeriesPathSelectorCombineThreshold{} 2054 } 2055 func (AlertingConditionSpecTimeSeriesFieldPathBuilder) Duration() AlertingCondition_Spec_TimeSeriesPathSelectorDuration { 2056 return AlertingCondition_Spec_TimeSeriesPathSelectorDuration{} 2057 } 2058 2059 type AlertingCondition_Spec_TimeSeriesPathSelectorQuery struct{} 2060 2061 func (AlertingCondition_Spec_TimeSeriesPathSelectorQuery) FieldPath() *AlertingConditionSpecTimeSeries_FieldTerminalPath { 2062 return &AlertingConditionSpecTimeSeries_FieldTerminalPath{selector: AlertingConditionSpecTimeSeries_FieldPathSelectorQuery} 2063 } 2064 2065 func (s AlertingCondition_Spec_TimeSeriesPathSelectorQuery) WithValue(value *AlertingCondition_Spec_TimeSeries_Query) *AlertingConditionSpecTimeSeries_FieldTerminalPathValue { 2066 return s.FieldPath().WithIValue(value).(*AlertingConditionSpecTimeSeries_FieldTerminalPathValue) 2067 } 2068 2069 func (s AlertingCondition_Spec_TimeSeriesPathSelectorQuery) WithArrayOfValues(values []*AlertingCondition_Spec_TimeSeries_Query) *AlertingConditionSpecTimeSeries_FieldTerminalPathArrayOfValues { 2070 return s.FieldPath().WithIArrayOfValues(values).(*AlertingConditionSpecTimeSeries_FieldTerminalPathArrayOfValues) 2071 } 2072 2073 func (AlertingCondition_Spec_TimeSeriesPathSelectorQuery) WithSubPath(subPath AlertingConditionSpecTimeSeriesQuery_FieldPath) *AlertingConditionSpecTimeSeries_FieldSubPath { 2074 return &AlertingConditionSpecTimeSeries_FieldSubPath{selector: AlertingConditionSpecTimeSeries_FieldPathSelectorQuery, subPath: subPath} 2075 } 2076 2077 func (s AlertingCondition_Spec_TimeSeriesPathSelectorQuery) WithSubValue(subPathValue AlertingConditionSpecTimeSeriesQuery_FieldPathValue) *AlertingConditionSpecTimeSeries_FieldSubPathValue { 2078 return &AlertingConditionSpecTimeSeries_FieldSubPathValue{AlertingConditionSpecTimeSeries_FieldPath: s.WithSubPath(subPathValue), subPathValue: subPathValue} 2079 } 2080 2081 func (s AlertingCondition_Spec_TimeSeriesPathSelectorQuery) WithSubArrayOfValues(subPathArrayOfValues AlertingConditionSpecTimeSeriesQuery_FieldPathArrayOfValues) *AlertingConditionSpecTimeSeries_FieldSubPathArrayOfValues { 2082 return &AlertingConditionSpecTimeSeries_FieldSubPathArrayOfValues{AlertingConditionSpecTimeSeries_FieldPath: s.WithSubPath(subPathArrayOfValues), subPathArrayOfValues: subPathArrayOfValues} 2083 } 2084 2085 func (s AlertingCondition_Spec_TimeSeriesPathSelectorQuery) WithSubArrayItemValue(subPathArrayItemValue AlertingConditionSpecTimeSeriesQuery_FieldPathArrayItemValue) *AlertingConditionSpecTimeSeries_FieldSubPathArrayItemValue { 2086 return &AlertingConditionSpecTimeSeries_FieldSubPathArrayItemValue{AlertingConditionSpecTimeSeries_FieldPath: s.WithSubPath(subPathArrayItemValue), subPathItemValue: subPathArrayItemValue} 2087 } 2088 2089 func (AlertingCondition_Spec_TimeSeriesPathSelectorQuery) Selector() AlertingCondition_Spec_TimeSeriesPathSelectorQuerySelector { 2090 return AlertingCondition_Spec_TimeSeriesPathSelectorQuerySelector{} 2091 } 2092 2093 func (AlertingCondition_Spec_TimeSeriesPathSelectorQuery) Aggregation() AlertingCondition_Spec_TimeSeriesPathSelectorQueryAggregation { 2094 return AlertingCondition_Spec_TimeSeriesPathSelectorQueryAggregation{} 2095 } 2096 2097 type AlertingCondition_Spec_TimeSeriesPathSelectorQuerySelector struct{} 2098 2099 func (AlertingCondition_Spec_TimeSeriesPathSelectorQuerySelector) FieldPath() *AlertingConditionSpecTimeSeries_FieldSubPath { 2100 return &AlertingConditionSpecTimeSeries_FieldSubPath{ 2101 selector: AlertingConditionSpecTimeSeries_FieldPathSelectorQuery, 2102 subPath: NewAlertingConditionSpecTimeSeriesQueryFieldPathBuilder().Selector().FieldPath(), 2103 } 2104 } 2105 2106 func (s AlertingCondition_Spec_TimeSeriesPathSelectorQuerySelector) WithValue(value *common.TimeSeriesSelector) *AlertingConditionSpecTimeSeries_FieldSubPathValue { 2107 return s.FieldPath().WithIValue(value).(*AlertingConditionSpecTimeSeries_FieldSubPathValue) 2108 } 2109 2110 func (s AlertingCondition_Spec_TimeSeriesPathSelectorQuerySelector) WithArrayOfValues(values []*common.TimeSeriesSelector) *AlertingConditionSpecTimeSeries_FieldSubPathArrayOfValues { 2111 return s.FieldPath().WithIArrayOfValues(values).(*AlertingConditionSpecTimeSeries_FieldSubPathArrayOfValues) 2112 } 2113 2114 func (AlertingCondition_Spec_TimeSeriesPathSelectorQuerySelector) Metric() AlertingCondition_Spec_TimeSeriesPathSelectorQuerySelectorMetric { 2115 return AlertingCondition_Spec_TimeSeriesPathSelectorQuerySelectorMetric{} 2116 } 2117 2118 func (AlertingCondition_Spec_TimeSeriesPathSelectorQuerySelector) Resource() AlertingCondition_Spec_TimeSeriesPathSelectorQuerySelectorResource { 2119 return AlertingCondition_Spec_TimeSeriesPathSelectorQuerySelectorResource{} 2120 } 2121 2122 type AlertingCondition_Spec_TimeSeriesPathSelectorQuerySelectorMetric struct{} 2123 2124 func (AlertingCondition_Spec_TimeSeriesPathSelectorQuerySelectorMetric) FieldPath() *AlertingConditionSpecTimeSeries_FieldSubPath { 2125 return &AlertingConditionSpecTimeSeries_FieldSubPath{ 2126 selector: AlertingConditionSpecTimeSeries_FieldPathSelectorQuery, 2127 subPath: NewAlertingConditionSpecTimeSeriesQueryFieldPathBuilder().Selector().Metric().FieldPath(), 2128 } 2129 } 2130 2131 func (s AlertingCondition_Spec_TimeSeriesPathSelectorQuerySelectorMetric) WithValue(value *common.MetricSelector) *AlertingConditionSpecTimeSeries_FieldSubPathValue { 2132 return s.FieldPath().WithIValue(value).(*AlertingConditionSpecTimeSeries_FieldSubPathValue) 2133 } 2134 2135 func (s AlertingCondition_Spec_TimeSeriesPathSelectorQuerySelectorMetric) WithArrayOfValues(values []*common.MetricSelector) *AlertingConditionSpecTimeSeries_FieldSubPathArrayOfValues { 2136 return s.FieldPath().WithIArrayOfValues(values).(*AlertingConditionSpecTimeSeries_FieldSubPathArrayOfValues) 2137 } 2138 2139 func (AlertingCondition_Spec_TimeSeriesPathSelectorQuerySelectorMetric) Types() AlertingCondition_Spec_TimeSeriesPathSelectorQuerySelectorMetricTypes { 2140 return AlertingCondition_Spec_TimeSeriesPathSelectorQuerySelectorMetricTypes{} 2141 } 2142 2143 func (AlertingCondition_Spec_TimeSeriesPathSelectorQuerySelectorMetric) Labels() AlertingCondition_Spec_TimeSeriesPathSelectorQuerySelectorMetricLabels { 2144 return AlertingCondition_Spec_TimeSeriesPathSelectorQuerySelectorMetricLabels{} 2145 } 2146 2147 type AlertingCondition_Spec_TimeSeriesPathSelectorQuerySelectorMetricTypes struct{} 2148 2149 func (AlertingCondition_Spec_TimeSeriesPathSelectorQuerySelectorMetricTypes) FieldPath() *AlertingConditionSpecTimeSeries_FieldSubPath { 2150 return &AlertingConditionSpecTimeSeries_FieldSubPath{ 2151 selector: AlertingConditionSpecTimeSeries_FieldPathSelectorQuery, 2152 subPath: NewAlertingConditionSpecTimeSeriesQueryFieldPathBuilder().Selector().Metric().Types().FieldPath(), 2153 } 2154 } 2155 2156 func (s AlertingCondition_Spec_TimeSeriesPathSelectorQuerySelectorMetricTypes) WithValue(value []string) *AlertingConditionSpecTimeSeries_FieldSubPathValue { 2157 return s.FieldPath().WithIValue(value).(*AlertingConditionSpecTimeSeries_FieldSubPathValue) 2158 } 2159 2160 func (s AlertingCondition_Spec_TimeSeriesPathSelectorQuerySelectorMetricTypes) WithArrayOfValues(values [][]string) *AlertingConditionSpecTimeSeries_FieldSubPathArrayOfValues { 2161 return s.FieldPath().WithIArrayOfValues(values).(*AlertingConditionSpecTimeSeries_FieldSubPathArrayOfValues) 2162 } 2163 2164 func (s AlertingCondition_Spec_TimeSeriesPathSelectorQuerySelectorMetricTypes) WithItemValue(value string) *AlertingConditionSpecTimeSeries_FieldSubPathArrayItemValue { 2165 return s.FieldPath().WithIArrayItemValue(value).(*AlertingConditionSpecTimeSeries_FieldSubPathArrayItemValue) 2166 } 2167 2168 type AlertingCondition_Spec_TimeSeriesPathSelectorQuerySelectorMetricLabels struct{} 2169 2170 func (AlertingCondition_Spec_TimeSeriesPathSelectorQuerySelectorMetricLabels) FieldPath() *AlertingConditionSpecTimeSeries_FieldSubPath { 2171 return &AlertingConditionSpecTimeSeries_FieldSubPath{ 2172 selector: AlertingConditionSpecTimeSeries_FieldPathSelectorQuery, 2173 subPath: NewAlertingConditionSpecTimeSeriesQueryFieldPathBuilder().Selector().Metric().Labels().FieldPath(), 2174 } 2175 } 2176 2177 func (s AlertingCondition_Spec_TimeSeriesPathSelectorQuerySelectorMetricLabels) WithValue(value map[string]*common.Strings) *AlertingConditionSpecTimeSeries_FieldSubPathValue { 2178 return s.FieldPath().WithIValue(value).(*AlertingConditionSpecTimeSeries_FieldSubPathValue) 2179 } 2180 2181 func (s AlertingCondition_Spec_TimeSeriesPathSelectorQuerySelectorMetricLabels) WithArrayOfValues(values []map[string]*common.Strings) *AlertingConditionSpecTimeSeries_FieldSubPathArrayOfValues { 2182 return s.FieldPath().WithIArrayOfValues(values).(*AlertingConditionSpecTimeSeries_FieldSubPathArrayOfValues) 2183 } 2184 2185 func (AlertingCondition_Spec_TimeSeriesPathSelectorQuerySelectorMetricLabels) WithKey(key string) AlertingCondition_Spec_TimeSeriesMapPathSelectorQuerySelectorMetricLabels { 2186 return AlertingCondition_Spec_TimeSeriesMapPathSelectorQuerySelectorMetricLabels{key: key} 2187 } 2188 2189 type AlertingCondition_Spec_TimeSeriesMapPathSelectorQuerySelectorMetricLabels struct { 2190 key string 2191 } 2192 2193 func (s AlertingCondition_Spec_TimeSeriesMapPathSelectorQuerySelectorMetricLabels) FieldPath() *AlertingConditionSpecTimeSeries_FieldSubPath { 2194 return &AlertingConditionSpecTimeSeries_FieldSubPath{ 2195 selector: AlertingConditionSpecTimeSeries_FieldPathSelectorQuery, 2196 subPath: NewAlertingConditionSpecTimeSeriesQueryFieldPathBuilder().Selector().Metric().Labels().WithKey(s.key).FieldPath(), 2197 } 2198 } 2199 2200 func (s AlertingCondition_Spec_TimeSeriesMapPathSelectorQuerySelectorMetricLabels) WithValue(value *common.Strings) *AlertingConditionSpecTimeSeries_FieldSubPathValue { 2201 return s.FieldPath().WithIValue(value).(*AlertingConditionSpecTimeSeries_FieldSubPathValue) 2202 } 2203 2204 func (s AlertingCondition_Spec_TimeSeriesMapPathSelectorQuerySelectorMetricLabels) WithArrayOfValues(values []*common.Strings) *AlertingConditionSpecTimeSeries_FieldSubPathArrayOfValues { 2205 return s.FieldPath().WithIArrayOfValues(values).(*AlertingConditionSpecTimeSeries_FieldSubPathArrayOfValues) 2206 } 2207 2208 type AlertingCondition_Spec_TimeSeriesPathSelectorQuerySelectorResource struct{} 2209 2210 func (AlertingCondition_Spec_TimeSeriesPathSelectorQuerySelectorResource) FieldPath() *AlertingConditionSpecTimeSeries_FieldSubPath { 2211 return &AlertingConditionSpecTimeSeries_FieldSubPath{ 2212 selector: AlertingConditionSpecTimeSeries_FieldPathSelectorQuery, 2213 subPath: NewAlertingConditionSpecTimeSeriesQueryFieldPathBuilder().Selector().Resource().FieldPath(), 2214 } 2215 } 2216 2217 func (s AlertingCondition_Spec_TimeSeriesPathSelectorQuerySelectorResource) WithValue(value *common.MonitoredResourceSelector) *AlertingConditionSpecTimeSeries_FieldSubPathValue { 2218 return s.FieldPath().WithIValue(value).(*AlertingConditionSpecTimeSeries_FieldSubPathValue) 2219 } 2220 2221 func (s AlertingCondition_Spec_TimeSeriesPathSelectorQuerySelectorResource) WithArrayOfValues(values []*common.MonitoredResourceSelector) *AlertingConditionSpecTimeSeries_FieldSubPathArrayOfValues { 2222 return s.FieldPath().WithIArrayOfValues(values).(*AlertingConditionSpecTimeSeries_FieldSubPathArrayOfValues) 2223 } 2224 2225 func (AlertingCondition_Spec_TimeSeriesPathSelectorQuerySelectorResource) Types() AlertingCondition_Spec_TimeSeriesPathSelectorQuerySelectorResourceTypes { 2226 return AlertingCondition_Spec_TimeSeriesPathSelectorQuerySelectorResourceTypes{} 2227 } 2228 2229 func (AlertingCondition_Spec_TimeSeriesPathSelectorQuerySelectorResource) Labels() AlertingCondition_Spec_TimeSeriesPathSelectorQuerySelectorResourceLabels { 2230 return AlertingCondition_Spec_TimeSeriesPathSelectorQuerySelectorResourceLabels{} 2231 } 2232 2233 type AlertingCondition_Spec_TimeSeriesPathSelectorQuerySelectorResourceTypes struct{} 2234 2235 func (AlertingCondition_Spec_TimeSeriesPathSelectorQuerySelectorResourceTypes) FieldPath() *AlertingConditionSpecTimeSeries_FieldSubPath { 2236 return &AlertingConditionSpecTimeSeries_FieldSubPath{ 2237 selector: AlertingConditionSpecTimeSeries_FieldPathSelectorQuery, 2238 subPath: NewAlertingConditionSpecTimeSeriesQueryFieldPathBuilder().Selector().Resource().Types().FieldPath(), 2239 } 2240 } 2241 2242 func (s AlertingCondition_Spec_TimeSeriesPathSelectorQuerySelectorResourceTypes) WithValue(value []string) *AlertingConditionSpecTimeSeries_FieldSubPathValue { 2243 return s.FieldPath().WithIValue(value).(*AlertingConditionSpecTimeSeries_FieldSubPathValue) 2244 } 2245 2246 func (s AlertingCondition_Spec_TimeSeriesPathSelectorQuerySelectorResourceTypes) WithArrayOfValues(values [][]string) *AlertingConditionSpecTimeSeries_FieldSubPathArrayOfValues { 2247 return s.FieldPath().WithIArrayOfValues(values).(*AlertingConditionSpecTimeSeries_FieldSubPathArrayOfValues) 2248 } 2249 2250 func (s AlertingCondition_Spec_TimeSeriesPathSelectorQuerySelectorResourceTypes) WithItemValue(value string) *AlertingConditionSpecTimeSeries_FieldSubPathArrayItemValue { 2251 return s.FieldPath().WithIArrayItemValue(value).(*AlertingConditionSpecTimeSeries_FieldSubPathArrayItemValue) 2252 } 2253 2254 type AlertingCondition_Spec_TimeSeriesPathSelectorQuerySelectorResourceLabels struct{} 2255 2256 func (AlertingCondition_Spec_TimeSeriesPathSelectorQuerySelectorResourceLabels) FieldPath() *AlertingConditionSpecTimeSeries_FieldSubPath { 2257 return &AlertingConditionSpecTimeSeries_FieldSubPath{ 2258 selector: AlertingConditionSpecTimeSeries_FieldPathSelectorQuery, 2259 subPath: NewAlertingConditionSpecTimeSeriesQueryFieldPathBuilder().Selector().Resource().Labels().FieldPath(), 2260 } 2261 } 2262 2263 func (s AlertingCondition_Spec_TimeSeriesPathSelectorQuerySelectorResourceLabels) WithValue(value map[string]*common.Strings) *AlertingConditionSpecTimeSeries_FieldSubPathValue { 2264 return s.FieldPath().WithIValue(value).(*AlertingConditionSpecTimeSeries_FieldSubPathValue) 2265 } 2266 2267 func (s AlertingCondition_Spec_TimeSeriesPathSelectorQuerySelectorResourceLabels) WithArrayOfValues(values []map[string]*common.Strings) *AlertingConditionSpecTimeSeries_FieldSubPathArrayOfValues { 2268 return s.FieldPath().WithIArrayOfValues(values).(*AlertingConditionSpecTimeSeries_FieldSubPathArrayOfValues) 2269 } 2270 2271 func (AlertingCondition_Spec_TimeSeriesPathSelectorQuerySelectorResourceLabels) WithKey(key string) AlertingCondition_Spec_TimeSeriesMapPathSelectorQuerySelectorResourceLabels { 2272 return AlertingCondition_Spec_TimeSeriesMapPathSelectorQuerySelectorResourceLabels{key: key} 2273 } 2274 2275 type AlertingCondition_Spec_TimeSeriesMapPathSelectorQuerySelectorResourceLabels struct { 2276 key string 2277 } 2278 2279 func (s AlertingCondition_Spec_TimeSeriesMapPathSelectorQuerySelectorResourceLabels) FieldPath() *AlertingConditionSpecTimeSeries_FieldSubPath { 2280 return &AlertingConditionSpecTimeSeries_FieldSubPath{ 2281 selector: AlertingConditionSpecTimeSeries_FieldPathSelectorQuery, 2282 subPath: NewAlertingConditionSpecTimeSeriesQueryFieldPathBuilder().Selector().Resource().Labels().WithKey(s.key).FieldPath(), 2283 } 2284 } 2285 2286 func (s AlertingCondition_Spec_TimeSeriesMapPathSelectorQuerySelectorResourceLabels) WithValue(value *common.Strings) *AlertingConditionSpecTimeSeries_FieldSubPathValue { 2287 return s.FieldPath().WithIValue(value).(*AlertingConditionSpecTimeSeries_FieldSubPathValue) 2288 } 2289 2290 func (s AlertingCondition_Spec_TimeSeriesMapPathSelectorQuerySelectorResourceLabels) WithArrayOfValues(values []*common.Strings) *AlertingConditionSpecTimeSeries_FieldSubPathArrayOfValues { 2291 return s.FieldPath().WithIArrayOfValues(values).(*AlertingConditionSpecTimeSeries_FieldSubPathArrayOfValues) 2292 } 2293 2294 type AlertingCondition_Spec_TimeSeriesPathSelectorQueryAggregation struct{} 2295 2296 func (AlertingCondition_Spec_TimeSeriesPathSelectorQueryAggregation) FieldPath() *AlertingConditionSpecTimeSeries_FieldSubPath { 2297 return &AlertingConditionSpecTimeSeries_FieldSubPath{ 2298 selector: AlertingConditionSpecTimeSeries_FieldPathSelectorQuery, 2299 subPath: NewAlertingConditionSpecTimeSeriesQueryFieldPathBuilder().Aggregation().FieldPath(), 2300 } 2301 } 2302 2303 func (s AlertingCondition_Spec_TimeSeriesPathSelectorQueryAggregation) WithValue(value *common.Aggregation) *AlertingConditionSpecTimeSeries_FieldSubPathValue { 2304 return s.FieldPath().WithIValue(value).(*AlertingConditionSpecTimeSeries_FieldSubPathValue) 2305 } 2306 2307 func (s AlertingCondition_Spec_TimeSeriesPathSelectorQueryAggregation) WithArrayOfValues(values []*common.Aggregation) *AlertingConditionSpecTimeSeries_FieldSubPathArrayOfValues { 2308 return s.FieldPath().WithIArrayOfValues(values).(*AlertingConditionSpecTimeSeries_FieldSubPathArrayOfValues) 2309 } 2310 2311 func (AlertingCondition_Spec_TimeSeriesPathSelectorQueryAggregation) AlignmentPeriod() AlertingCondition_Spec_TimeSeriesPathSelectorQueryAggregationAlignmentPeriod { 2312 return AlertingCondition_Spec_TimeSeriesPathSelectorQueryAggregationAlignmentPeriod{} 2313 } 2314 2315 func (AlertingCondition_Spec_TimeSeriesPathSelectorQueryAggregation) PerSeriesAligner() AlertingCondition_Spec_TimeSeriesPathSelectorQueryAggregationPerSeriesAligner { 2316 return AlertingCondition_Spec_TimeSeriesPathSelectorQueryAggregationPerSeriesAligner{} 2317 } 2318 2319 func (AlertingCondition_Spec_TimeSeriesPathSelectorQueryAggregation) CrossSeriesReducer() AlertingCondition_Spec_TimeSeriesPathSelectorQueryAggregationCrossSeriesReducer { 2320 return AlertingCondition_Spec_TimeSeriesPathSelectorQueryAggregationCrossSeriesReducer{} 2321 } 2322 2323 func (AlertingCondition_Spec_TimeSeriesPathSelectorQueryAggregation) GroupByFields() AlertingCondition_Spec_TimeSeriesPathSelectorQueryAggregationGroupByFields { 2324 return AlertingCondition_Spec_TimeSeriesPathSelectorQueryAggregationGroupByFields{} 2325 } 2326 2327 type AlertingCondition_Spec_TimeSeriesPathSelectorQueryAggregationAlignmentPeriod struct{} 2328 2329 func (AlertingCondition_Spec_TimeSeriesPathSelectorQueryAggregationAlignmentPeriod) FieldPath() *AlertingConditionSpecTimeSeries_FieldSubPath { 2330 return &AlertingConditionSpecTimeSeries_FieldSubPath{ 2331 selector: AlertingConditionSpecTimeSeries_FieldPathSelectorQuery, 2332 subPath: NewAlertingConditionSpecTimeSeriesQueryFieldPathBuilder().Aggregation().AlignmentPeriod().FieldPath(), 2333 } 2334 } 2335 2336 func (s AlertingCondition_Spec_TimeSeriesPathSelectorQueryAggregationAlignmentPeriod) WithValue(value *durationpb.Duration) *AlertingConditionSpecTimeSeries_FieldSubPathValue { 2337 return s.FieldPath().WithIValue(value).(*AlertingConditionSpecTimeSeries_FieldSubPathValue) 2338 } 2339 2340 func (s AlertingCondition_Spec_TimeSeriesPathSelectorQueryAggregationAlignmentPeriod) WithArrayOfValues(values []*durationpb.Duration) *AlertingConditionSpecTimeSeries_FieldSubPathArrayOfValues { 2341 return s.FieldPath().WithIArrayOfValues(values).(*AlertingConditionSpecTimeSeries_FieldSubPathArrayOfValues) 2342 } 2343 2344 type AlertingCondition_Spec_TimeSeriesPathSelectorQueryAggregationPerSeriesAligner struct{} 2345 2346 func (AlertingCondition_Spec_TimeSeriesPathSelectorQueryAggregationPerSeriesAligner) FieldPath() *AlertingConditionSpecTimeSeries_FieldSubPath { 2347 return &AlertingConditionSpecTimeSeries_FieldSubPath{ 2348 selector: AlertingConditionSpecTimeSeries_FieldPathSelectorQuery, 2349 subPath: NewAlertingConditionSpecTimeSeriesQueryFieldPathBuilder().Aggregation().PerSeriesAligner().FieldPath(), 2350 } 2351 } 2352 2353 func (s AlertingCondition_Spec_TimeSeriesPathSelectorQueryAggregationPerSeriesAligner) WithValue(value common.Aggregation_Aligner) *AlertingConditionSpecTimeSeries_FieldSubPathValue { 2354 return s.FieldPath().WithIValue(value).(*AlertingConditionSpecTimeSeries_FieldSubPathValue) 2355 } 2356 2357 func (s AlertingCondition_Spec_TimeSeriesPathSelectorQueryAggregationPerSeriesAligner) WithArrayOfValues(values []common.Aggregation_Aligner) *AlertingConditionSpecTimeSeries_FieldSubPathArrayOfValues { 2358 return s.FieldPath().WithIArrayOfValues(values).(*AlertingConditionSpecTimeSeries_FieldSubPathArrayOfValues) 2359 } 2360 2361 type AlertingCondition_Spec_TimeSeriesPathSelectorQueryAggregationCrossSeriesReducer struct{} 2362 2363 func (AlertingCondition_Spec_TimeSeriesPathSelectorQueryAggregationCrossSeriesReducer) FieldPath() *AlertingConditionSpecTimeSeries_FieldSubPath { 2364 return &AlertingConditionSpecTimeSeries_FieldSubPath{ 2365 selector: AlertingConditionSpecTimeSeries_FieldPathSelectorQuery, 2366 subPath: NewAlertingConditionSpecTimeSeriesQueryFieldPathBuilder().Aggregation().CrossSeriesReducer().FieldPath(), 2367 } 2368 } 2369 2370 func (s AlertingCondition_Spec_TimeSeriesPathSelectorQueryAggregationCrossSeriesReducer) WithValue(value common.Aggregation_Reducer) *AlertingConditionSpecTimeSeries_FieldSubPathValue { 2371 return s.FieldPath().WithIValue(value).(*AlertingConditionSpecTimeSeries_FieldSubPathValue) 2372 } 2373 2374 func (s AlertingCondition_Spec_TimeSeriesPathSelectorQueryAggregationCrossSeriesReducer) WithArrayOfValues(values []common.Aggregation_Reducer) *AlertingConditionSpecTimeSeries_FieldSubPathArrayOfValues { 2375 return s.FieldPath().WithIArrayOfValues(values).(*AlertingConditionSpecTimeSeries_FieldSubPathArrayOfValues) 2376 } 2377 2378 type AlertingCondition_Spec_TimeSeriesPathSelectorQueryAggregationGroupByFields struct{} 2379 2380 func (AlertingCondition_Spec_TimeSeriesPathSelectorQueryAggregationGroupByFields) FieldPath() *AlertingConditionSpecTimeSeries_FieldSubPath { 2381 return &AlertingConditionSpecTimeSeries_FieldSubPath{ 2382 selector: AlertingConditionSpecTimeSeries_FieldPathSelectorQuery, 2383 subPath: NewAlertingConditionSpecTimeSeriesQueryFieldPathBuilder().Aggregation().GroupByFields().FieldPath(), 2384 } 2385 } 2386 2387 func (s AlertingCondition_Spec_TimeSeriesPathSelectorQueryAggregationGroupByFields) WithValue(value []string) *AlertingConditionSpecTimeSeries_FieldSubPathValue { 2388 return s.FieldPath().WithIValue(value).(*AlertingConditionSpecTimeSeries_FieldSubPathValue) 2389 } 2390 2391 func (s AlertingCondition_Spec_TimeSeriesPathSelectorQueryAggregationGroupByFields) WithArrayOfValues(values [][]string) *AlertingConditionSpecTimeSeries_FieldSubPathArrayOfValues { 2392 return s.FieldPath().WithIArrayOfValues(values).(*AlertingConditionSpecTimeSeries_FieldSubPathArrayOfValues) 2393 } 2394 2395 func (s AlertingCondition_Spec_TimeSeriesPathSelectorQueryAggregationGroupByFields) WithItemValue(value string) *AlertingConditionSpecTimeSeries_FieldSubPathArrayItemValue { 2396 return s.FieldPath().WithIArrayItemValue(value).(*AlertingConditionSpecTimeSeries_FieldSubPathArrayItemValue) 2397 } 2398 2399 type AlertingCondition_Spec_TimeSeriesPathSelectorThreshold struct{} 2400 2401 func (AlertingCondition_Spec_TimeSeriesPathSelectorThreshold) FieldPath() *AlertingConditionSpecTimeSeries_FieldTerminalPath { 2402 return &AlertingConditionSpecTimeSeries_FieldTerminalPath{selector: AlertingConditionSpecTimeSeries_FieldPathSelectorThreshold} 2403 } 2404 2405 func (s AlertingCondition_Spec_TimeSeriesPathSelectorThreshold) WithValue(value *AlertingCondition_Spec_TimeSeries_Threshold) *AlertingConditionSpecTimeSeries_FieldTerminalPathValue { 2406 return s.FieldPath().WithIValue(value).(*AlertingConditionSpecTimeSeries_FieldTerminalPathValue) 2407 } 2408 2409 func (s AlertingCondition_Spec_TimeSeriesPathSelectorThreshold) WithArrayOfValues(values []*AlertingCondition_Spec_TimeSeries_Threshold) *AlertingConditionSpecTimeSeries_FieldTerminalPathArrayOfValues { 2410 return s.FieldPath().WithIArrayOfValues(values).(*AlertingConditionSpecTimeSeries_FieldTerminalPathArrayOfValues) 2411 } 2412 2413 func (AlertingCondition_Spec_TimeSeriesPathSelectorThreshold) WithSubPath(subPath AlertingConditionSpecTimeSeriesThreshold_FieldPath) *AlertingConditionSpecTimeSeries_FieldSubPath { 2414 return &AlertingConditionSpecTimeSeries_FieldSubPath{selector: AlertingConditionSpecTimeSeries_FieldPathSelectorThreshold, subPath: subPath} 2415 } 2416 2417 func (s AlertingCondition_Spec_TimeSeriesPathSelectorThreshold) WithSubValue(subPathValue AlertingConditionSpecTimeSeriesThreshold_FieldPathValue) *AlertingConditionSpecTimeSeries_FieldSubPathValue { 2418 return &AlertingConditionSpecTimeSeries_FieldSubPathValue{AlertingConditionSpecTimeSeries_FieldPath: s.WithSubPath(subPathValue), subPathValue: subPathValue} 2419 } 2420 2421 func (s AlertingCondition_Spec_TimeSeriesPathSelectorThreshold) WithSubArrayOfValues(subPathArrayOfValues AlertingConditionSpecTimeSeriesThreshold_FieldPathArrayOfValues) *AlertingConditionSpecTimeSeries_FieldSubPathArrayOfValues { 2422 return &AlertingConditionSpecTimeSeries_FieldSubPathArrayOfValues{AlertingConditionSpecTimeSeries_FieldPath: s.WithSubPath(subPathArrayOfValues), subPathArrayOfValues: subPathArrayOfValues} 2423 } 2424 2425 func (s AlertingCondition_Spec_TimeSeriesPathSelectorThreshold) WithSubArrayItemValue(subPathArrayItemValue AlertingConditionSpecTimeSeriesThreshold_FieldPathArrayItemValue) *AlertingConditionSpecTimeSeries_FieldSubPathArrayItemValue { 2426 return &AlertingConditionSpecTimeSeries_FieldSubPathArrayItemValue{AlertingConditionSpecTimeSeries_FieldPath: s.WithSubPath(subPathArrayItemValue), subPathItemValue: subPathArrayItemValue} 2427 } 2428 2429 func (AlertingCondition_Spec_TimeSeriesPathSelectorThreshold) Compare() AlertingCondition_Spec_TimeSeriesPathSelectorThresholdCompare { 2430 return AlertingCondition_Spec_TimeSeriesPathSelectorThresholdCompare{} 2431 } 2432 2433 func (AlertingCondition_Spec_TimeSeriesPathSelectorThreshold) Value() AlertingCondition_Spec_TimeSeriesPathSelectorThresholdValue { 2434 return AlertingCondition_Spec_TimeSeriesPathSelectorThresholdValue{} 2435 } 2436 2437 type AlertingCondition_Spec_TimeSeriesPathSelectorThresholdCompare struct{} 2438 2439 func (AlertingCondition_Spec_TimeSeriesPathSelectorThresholdCompare) FieldPath() *AlertingConditionSpecTimeSeries_FieldSubPath { 2440 return &AlertingConditionSpecTimeSeries_FieldSubPath{ 2441 selector: AlertingConditionSpecTimeSeries_FieldPathSelectorThreshold, 2442 subPath: NewAlertingConditionSpecTimeSeriesThresholdFieldPathBuilder().Compare().FieldPath(), 2443 } 2444 } 2445 2446 func (s AlertingCondition_Spec_TimeSeriesPathSelectorThresholdCompare) WithValue(value AlertingCondition_Spec_TimeSeries_Threshold_Compare) *AlertingConditionSpecTimeSeries_FieldSubPathValue { 2447 return s.FieldPath().WithIValue(value).(*AlertingConditionSpecTimeSeries_FieldSubPathValue) 2448 } 2449 2450 func (s AlertingCondition_Spec_TimeSeriesPathSelectorThresholdCompare) WithArrayOfValues(values []AlertingCondition_Spec_TimeSeries_Threshold_Compare) *AlertingConditionSpecTimeSeries_FieldSubPathArrayOfValues { 2451 return s.FieldPath().WithIArrayOfValues(values).(*AlertingConditionSpecTimeSeries_FieldSubPathArrayOfValues) 2452 } 2453 2454 type AlertingCondition_Spec_TimeSeriesPathSelectorThresholdValue struct{} 2455 2456 func (AlertingCondition_Spec_TimeSeriesPathSelectorThresholdValue) FieldPath() *AlertingConditionSpecTimeSeries_FieldSubPath { 2457 return &AlertingConditionSpecTimeSeries_FieldSubPath{ 2458 selector: AlertingConditionSpecTimeSeries_FieldPathSelectorThreshold, 2459 subPath: NewAlertingConditionSpecTimeSeriesThresholdFieldPathBuilder().Value().FieldPath(), 2460 } 2461 } 2462 2463 func (s AlertingCondition_Spec_TimeSeriesPathSelectorThresholdValue) WithValue(value float64) *AlertingConditionSpecTimeSeries_FieldSubPathValue { 2464 return s.FieldPath().WithIValue(value).(*AlertingConditionSpecTimeSeries_FieldSubPathValue) 2465 } 2466 2467 func (s AlertingCondition_Spec_TimeSeriesPathSelectorThresholdValue) WithArrayOfValues(values []float64) *AlertingConditionSpecTimeSeries_FieldSubPathArrayOfValues { 2468 return s.FieldPath().WithIArrayOfValues(values).(*AlertingConditionSpecTimeSeries_FieldSubPathArrayOfValues) 2469 } 2470 2471 type AlertingCondition_Spec_TimeSeriesPathSelectorCombineThreshold struct{} 2472 2473 func (AlertingCondition_Spec_TimeSeriesPathSelectorCombineThreshold) FieldPath() *AlertingConditionSpecTimeSeries_FieldTerminalPath { 2474 return &AlertingConditionSpecTimeSeries_FieldTerminalPath{selector: AlertingConditionSpecTimeSeries_FieldPathSelectorCombineThreshold} 2475 } 2476 2477 func (s AlertingCondition_Spec_TimeSeriesPathSelectorCombineThreshold) WithValue(value *AlertingCondition_Spec_TimeSeries_CombineThreshold) *AlertingConditionSpecTimeSeries_FieldTerminalPathValue { 2478 return s.FieldPath().WithIValue(value).(*AlertingConditionSpecTimeSeries_FieldTerminalPathValue) 2479 } 2480 2481 func (s AlertingCondition_Spec_TimeSeriesPathSelectorCombineThreshold) WithArrayOfValues(values []*AlertingCondition_Spec_TimeSeries_CombineThreshold) *AlertingConditionSpecTimeSeries_FieldTerminalPathArrayOfValues { 2482 return s.FieldPath().WithIArrayOfValues(values).(*AlertingConditionSpecTimeSeries_FieldTerminalPathArrayOfValues) 2483 } 2484 2485 func (AlertingCondition_Spec_TimeSeriesPathSelectorCombineThreshold) WithSubPath(subPath AlertingConditionSpecTimeSeriesCombineThreshold_FieldPath) *AlertingConditionSpecTimeSeries_FieldSubPath { 2486 return &AlertingConditionSpecTimeSeries_FieldSubPath{selector: AlertingConditionSpecTimeSeries_FieldPathSelectorCombineThreshold, subPath: subPath} 2487 } 2488 2489 func (s AlertingCondition_Spec_TimeSeriesPathSelectorCombineThreshold) WithSubValue(subPathValue AlertingConditionSpecTimeSeriesCombineThreshold_FieldPathValue) *AlertingConditionSpecTimeSeries_FieldSubPathValue { 2490 return &AlertingConditionSpecTimeSeries_FieldSubPathValue{AlertingConditionSpecTimeSeries_FieldPath: s.WithSubPath(subPathValue), subPathValue: subPathValue} 2491 } 2492 2493 func (s AlertingCondition_Spec_TimeSeriesPathSelectorCombineThreshold) WithSubArrayOfValues(subPathArrayOfValues AlertingConditionSpecTimeSeriesCombineThreshold_FieldPathArrayOfValues) *AlertingConditionSpecTimeSeries_FieldSubPathArrayOfValues { 2494 return &AlertingConditionSpecTimeSeries_FieldSubPathArrayOfValues{AlertingConditionSpecTimeSeries_FieldPath: s.WithSubPath(subPathArrayOfValues), subPathArrayOfValues: subPathArrayOfValues} 2495 } 2496 2497 func (s AlertingCondition_Spec_TimeSeriesPathSelectorCombineThreshold) WithSubArrayItemValue(subPathArrayItemValue AlertingConditionSpecTimeSeriesCombineThreshold_FieldPathArrayItemValue) *AlertingConditionSpecTimeSeries_FieldSubPathArrayItemValue { 2498 return &AlertingConditionSpecTimeSeries_FieldSubPathArrayItemValue{AlertingConditionSpecTimeSeries_FieldPath: s.WithSubPath(subPathArrayItemValue), subPathItemValue: subPathArrayItemValue} 2499 } 2500 2501 func (AlertingCondition_Spec_TimeSeriesPathSelectorCombineThreshold) PerMetric() AlertingCondition_Spec_TimeSeriesPathSelectorCombineThresholdPerMetric { 2502 return AlertingCondition_Spec_TimeSeriesPathSelectorCombineThresholdPerMetric{} 2503 } 2504 2505 func (AlertingCondition_Spec_TimeSeriesPathSelectorCombineThreshold) Combine() AlertingCondition_Spec_TimeSeriesPathSelectorCombineThresholdCombine { 2506 return AlertingCondition_Spec_TimeSeriesPathSelectorCombineThresholdCombine{} 2507 } 2508 2509 type AlertingCondition_Spec_TimeSeriesPathSelectorCombineThresholdPerMetric struct{} 2510 2511 func (AlertingCondition_Spec_TimeSeriesPathSelectorCombineThresholdPerMetric) FieldPath() *AlertingConditionSpecTimeSeries_FieldSubPath { 2512 return &AlertingConditionSpecTimeSeries_FieldSubPath{ 2513 selector: AlertingConditionSpecTimeSeries_FieldPathSelectorCombineThreshold, 2514 subPath: NewAlertingConditionSpecTimeSeriesCombineThresholdFieldPathBuilder().PerMetric().FieldPath(), 2515 } 2516 } 2517 2518 func (s AlertingCondition_Spec_TimeSeriesPathSelectorCombineThresholdPerMetric) WithValue(value map[string]*AlertingCondition_Spec_TimeSeries_Threshold) *AlertingConditionSpecTimeSeries_FieldSubPathValue { 2519 return s.FieldPath().WithIValue(value).(*AlertingConditionSpecTimeSeries_FieldSubPathValue) 2520 } 2521 2522 func (s AlertingCondition_Spec_TimeSeriesPathSelectorCombineThresholdPerMetric) WithArrayOfValues(values []map[string]*AlertingCondition_Spec_TimeSeries_Threshold) *AlertingConditionSpecTimeSeries_FieldSubPathArrayOfValues { 2523 return s.FieldPath().WithIArrayOfValues(values).(*AlertingConditionSpecTimeSeries_FieldSubPathArrayOfValues) 2524 } 2525 2526 func (AlertingCondition_Spec_TimeSeriesPathSelectorCombineThresholdPerMetric) WithKey(key string) AlertingCondition_Spec_TimeSeriesMapPathSelectorCombineThresholdPerMetric { 2527 return AlertingCondition_Spec_TimeSeriesMapPathSelectorCombineThresholdPerMetric{key: key} 2528 } 2529 2530 type AlertingCondition_Spec_TimeSeriesMapPathSelectorCombineThresholdPerMetric struct { 2531 key string 2532 } 2533 2534 func (s AlertingCondition_Spec_TimeSeriesMapPathSelectorCombineThresholdPerMetric) FieldPath() *AlertingConditionSpecTimeSeries_FieldSubPath { 2535 return &AlertingConditionSpecTimeSeries_FieldSubPath{ 2536 selector: AlertingConditionSpecTimeSeries_FieldPathSelectorCombineThreshold, 2537 subPath: NewAlertingConditionSpecTimeSeriesCombineThresholdFieldPathBuilder().PerMetric().WithKey(s.key).FieldPath(), 2538 } 2539 } 2540 2541 func (s AlertingCondition_Spec_TimeSeriesMapPathSelectorCombineThresholdPerMetric) WithValue(value *AlertingCondition_Spec_TimeSeries_Threshold) *AlertingConditionSpecTimeSeries_FieldSubPathValue { 2542 return s.FieldPath().WithIValue(value).(*AlertingConditionSpecTimeSeries_FieldSubPathValue) 2543 } 2544 2545 func (s AlertingCondition_Spec_TimeSeriesMapPathSelectorCombineThresholdPerMetric) WithArrayOfValues(values []*AlertingCondition_Spec_TimeSeries_Threshold) *AlertingConditionSpecTimeSeries_FieldSubPathArrayOfValues { 2546 return s.FieldPath().WithIArrayOfValues(values).(*AlertingConditionSpecTimeSeries_FieldSubPathArrayOfValues) 2547 } 2548 2549 type AlertingCondition_Spec_TimeSeriesPathSelectorCombineThresholdCombine struct{} 2550 2551 func (AlertingCondition_Spec_TimeSeriesPathSelectorCombineThresholdCombine) FieldPath() *AlertingConditionSpecTimeSeries_FieldSubPath { 2552 return &AlertingConditionSpecTimeSeries_FieldSubPath{ 2553 selector: AlertingConditionSpecTimeSeries_FieldPathSelectorCombineThreshold, 2554 subPath: NewAlertingConditionSpecTimeSeriesCombineThresholdFieldPathBuilder().Combine().FieldPath(), 2555 } 2556 } 2557 2558 func (s AlertingCondition_Spec_TimeSeriesPathSelectorCombineThresholdCombine) WithValue(value AlertingCondition_Spec_TimeSeries_CombineThreshold_CombineOperator) *AlertingConditionSpecTimeSeries_FieldSubPathValue { 2559 return s.FieldPath().WithIValue(value).(*AlertingConditionSpecTimeSeries_FieldSubPathValue) 2560 } 2561 2562 func (s AlertingCondition_Spec_TimeSeriesPathSelectorCombineThresholdCombine) WithArrayOfValues(values []AlertingCondition_Spec_TimeSeries_CombineThreshold_CombineOperator) *AlertingConditionSpecTimeSeries_FieldSubPathArrayOfValues { 2563 return s.FieldPath().WithIArrayOfValues(values).(*AlertingConditionSpecTimeSeries_FieldSubPathArrayOfValues) 2564 } 2565 2566 type AlertingCondition_Spec_TimeSeriesPathSelectorDuration struct{} 2567 2568 func (AlertingCondition_Spec_TimeSeriesPathSelectorDuration) FieldPath() *AlertingConditionSpecTimeSeries_FieldTerminalPath { 2569 return &AlertingConditionSpecTimeSeries_FieldTerminalPath{selector: AlertingConditionSpecTimeSeries_FieldPathSelectorDuration} 2570 } 2571 2572 func (s AlertingCondition_Spec_TimeSeriesPathSelectorDuration) WithValue(value *durationpb.Duration) *AlertingConditionSpecTimeSeries_FieldTerminalPathValue { 2573 return s.FieldPath().WithIValue(value).(*AlertingConditionSpecTimeSeries_FieldTerminalPathValue) 2574 } 2575 2576 func (s AlertingCondition_Spec_TimeSeriesPathSelectorDuration) WithArrayOfValues(values []*durationpb.Duration) *AlertingConditionSpecTimeSeries_FieldTerminalPathArrayOfValues { 2577 return s.FieldPath().WithIArrayOfValues(values).(*AlertingConditionSpecTimeSeries_FieldTerminalPathArrayOfValues) 2578 } 2579 2580 type AlertingConditionSpecTriggerFieldPathBuilder struct{} 2581 2582 func NewAlertingConditionSpecTriggerFieldPathBuilder() AlertingConditionSpecTriggerFieldPathBuilder { 2583 return AlertingConditionSpecTriggerFieldPathBuilder{} 2584 } 2585 func (AlertingConditionSpecTriggerFieldPathBuilder) Type() AlertingCondition_Spec_TriggerPathSelectorType { 2586 return AlertingCondition_Spec_TriggerPathSelectorType{} 2587 } 2588 2589 type AlertingCondition_Spec_TriggerPathSelectorType struct{} 2590 2591 func (AlertingCondition_Spec_TriggerPathSelectorType) FieldPath() *AlertingConditionSpecTrigger_FieldTerminalPath { 2592 return &AlertingConditionSpecTrigger_FieldTerminalPath{selector: AlertingConditionSpecTrigger_FieldPathSelectorType} 2593 } 2594 2595 func (s AlertingCondition_Spec_TriggerPathSelectorType) WithValue(value AlertingCondition_Spec_Trigger_Type) *AlertingConditionSpecTrigger_FieldTerminalPathValue { 2596 return s.FieldPath().WithIValue(value).(*AlertingConditionSpecTrigger_FieldTerminalPathValue) 2597 } 2598 2599 func (s AlertingCondition_Spec_TriggerPathSelectorType) WithArrayOfValues(values []AlertingCondition_Spec_Trigger_Type) *AlertingConditionSpecTrigger_FieldTerminalPathArrayOfValues { 2600 return s.FieldPath().WithIArrayOfValues(values).(*AlertingConditionSpecTrigger_FieldTerminalPathArrayOfValues) 2601 } 2602 2603 type AlertingConditionSpecTimeSeriesQueryFieldPathBuilder struct{} 2604 2605 func NewAlertingConditionSpecTimeSeriesQueryFieldPathBuilder() AlertingConditionSpecTimeSeriesQueryFieldPathBuilder { 2606 return AlertingConditionSpecTimeSeriesQueryFieldPathBuilder{} 2607 } 2608 func (AlertingConditionSpecTimeSeriesQueryFieldPathBuilder) Selector() AlertingCondition_Spec_TimeSeries_QueryPathSelectorSelector { 2609 return AlertingCondition_Spec_TimeSeries_QueryPathSelectorSelector{} 2610 } 2611 func (AlertingConditionSpecTimeSeriesQueryFieldPathBuilder) Aggregation() AlertingCondition_Spec_TimeSeries_QueryPathSelectorAggregation { 2612 return AlertingCondition_Spec_TimeSeries_QueryPathSelectorAggregation{} 2613 } 2614 2615 type AlertingCondition_Spec_TimeSeries_QueryPathSelectorSelector struct{} 2616 2617 func (AlertingCondition_Spec_TimeSeries_QueryPathSelectorSelector) FieldPath() *AlertingConditionSpecTimeSeriesQuery_FieldTerminalPath { 2618 return &AlertingConditionSpecTimeSeriesQuery_FieldTerminalPath{selector: AlertingConditionSpecTimeSeriesQuery_FieldPathSelectorSelector} 2619 } 2620 2621 func (s AlertingCondition_Spec_TimeSeries_QueryPathSelectorSelector) WithValue(value *common.TimeSeriesSelector) *AlertingConditionSpecTimeSeriesQuery_FieldTerminalPathValue { 2622 return s.FieldPath().WithIValue(value).(*AlertingConditionSpecTimeSeriesQuery_FieldTerminalPathValue) 2623 } 2624 2625 func (s AlertingCondition_Spec_TimeSeries_QueryPathSelectorSelector) WithArrayOfValues(values []*common.TimeSeriesSelector) *AlertingConditionSpecTimeSeriesQuery_FieldTerminalPathArrayOfValues { 2626 return s.FieldPath().WithIArrayOfValues(values).(*AlertingConditionSpecTimeSeriesQuery_FieldTerminalPathArrayOfValues) 2627 } 2628 2629 func (AlertingCondition_Spec_TimeSeries_QueryPathSelectorSelector) WithSubPath(subPath common.TimeSeriesSelector_FieldPath) *AlertingConditionSpecTimeSeriesQuery_FieldSubPath { 2630 return &AlertingConditionSpecTimeSeriesQuery_FieldSubPath{selector: AlertingConditionSpecTimeSeriesQuery_FieldPathSelectorSelector, subPath: subPath} 2631 } 2632 2633 func (s AlertingCondition_Spec_TimeSeries_QueryPathSelectorSelector) WithSubValue(subPathValue common.TimeSeriesSelector_FieldPathValue) *AlertingConditionSpecTimeSeriesQuery_FieldSubPathValue { 2634 return &AlertingConditionSpecTimeSeriesQuery_FieldSubPathValue{AlertingConditionSpecTimeSeriesQuery_FieldPath: s.WithSubPath(subPathValue), subPathValue: subPathValue} 2635 } 2636 2637 func (s AlertingCondition_Spec_TimeSeries_QueryPathSelectorSelector) WithSubArrayOfValues(subPathArrayOfValues common.TimeSeriesSelector_FieldPathArrayOfValues) *AlertingConditionSpecTimeSeriesQuery_FieldSubPathArrayOfValues { 2638 return &AlertingConditionSpecTimeSeriesQuery_FieldSubPathArrayOfValues{AlertingConditionSpecTimeSeriesQuery_FieldPath: s.WithSubPath(subPathArrayOfValues), subPathArrayOfValues: subPathArrayOfValues} 2639 } 2640 2641 func (s AlertingCondition_Spec_TimeSeries_QueryPathSelectorSelector) WithSubArrayItemValue(subPathArrayItemValue common.TimeSeriesSelector_FieldPathArrayItemValue) *AlertingConditionSpecTimeSeriesQuery_FieldSubPathArrayItemValue { 2642 return &AlertingConditionSpecTimeSeriesQuery_FieldSubPathArrayItemValue{AlertingConditionSpecTimeSeriesQuery_FieldPath: s.WithSubPath(subPathArrayItemValue), subPathItemValue: subPathArrayItemValue} 2643 } 2644 2645 func (AlertingCondition_Spec_TimeSeries_QueryPathSelectorSelector) Metric() AlertingCondition_Spec_TimeSeries_QueryPathSelectorSelectorMetric { 2646 return AlertingCondition_Spec_TimeSeries_QueryPathSelectorSelectorMetric{} 2647 } 2648 2649 func (AlertingCondition_Spec_TimeSeries_QueryPathSelectorSelector) Resource() AlertingCondition_Spec_TimeSeries_QueryPathSelectorSelectorResource { 2650 return AlertingCondition_Spec_TimeSeries_QueryPathSelectorSelectorResource{} 2651 } 2652 2653 type AlertingCondition_Spec_TimeSeries_QueryPathSelectorSelectorMetric struct{} 2654 2655 func (AlertingCondition_Spec_TimeSeries_QueryPathSelectorSelectorMetric) FieldPath() *AlertingConditionSpecTimeSeriesQuery_FieldSubPath { 2656 return &AlertingConditionSpecTimeSeriesQuery_FieldSubPath{ 2657 selector: AlertingConditionSpecTimeSeriesQuery_FieldPathSelectorSelector, 2658 subPath: common.NewTimeSeriesSelectorFieldPathBuilder().Metric().FieldPath(), 2659 } 2660 } 2661 2662 func (s AlertingCondition_Spec_TimeSeries_QueryPathSelectorSelectorMetric) WithValue(value *common.MetricSelector) *AlertingConditionSpecTimeSeriesQuery_FieldSubPathValue { 2663 return s.FieldPath().WithIValue(value).(*AlertingConditionSpecTimeSeriesQuery_FieldSubPathValue) 2664 } 2665 2666 func (s AlertingCondition_Spec_TimeSeries_QueryPathSelectorSelectorMetric) WithArrayOfValues(values []*common.MetricSelector) *AlertingConditionSpecTimeSeriesQuery_FieldSubPathArrayOfValues { 2667 return s.FieldPath().WithIArrayOfValues(values).(*AlertingConditionSpecTimeSeriesQuery_FieldSubPathArrayOfValues) 2668 } 2669 2670 func (AlertingCondition_Spec_TimeSeries_QueryPathSelectorSelectorMetric) Types() AlertingCondition_Spec_TimeSeries_QueryPathSelectorSelectorMetricTypes { 2671 return AlertingCondition_Spec_TimeSeries_QueryPathSelectorSelectorMetricTypes{} 2672 } 2673 2674 func (AlertingCondition_Spec_TimeSeries_QueryPathSelectorSelectorMetric) Labels() AlertingCondition_Spec_TimeSeries_QueryPathSelectorSelectorMetricLabels { 2675 return AlertingCondition_Spec_TimeSeries_QueryPathSelectorSelectorMetricLabels{} 2676 } 2677 2678 type AlertingCondition_Spec_TimeSeries_QueryPathSelectorSelectorMetricTypes struct{} 2679 2680 func (AlertingCondition_Spec_TimeSeries_QueryPathSelectorSelectorMetricTypes) FieldPath() *AlertingConditionSpecTimeSeriesQuery_FieldSubPath { 2681 return &AlertingConditionSpecTimeSeriesQuery_FieldSubPath{ 2682 selector: AlertingConditionSpecTimeSeriesQuery_FieldPathSelectorSelector, 2683 subPath: common.NewTimeSeriesSelectorFieldPathBuilder().Metric().Types().FieldPath(), 2684 } 2685 } 2686 2687 func (s AlertingCondition_Spec_TimeSeries_QueryPathSelectorSelectorMetricTypes) WithValue(value []string) *AlertingConditionSpecTimeSeriesQuery_FieldSubPathValue { 2688 return s.FieldPath().WithIValue(value).(*AlertingConditionSpecTimeSeriesQuery_FieldSubPathValue) 2689 } 2690 2691 func (s AlertingCondition_Spec_TimeSeries_QueryPathSelectorSelectorMetricTypes) WithArrayOfValues(values [][]string) *AlertingConditionSpecTimeSeriesQuery_FieldSubPathArrayOfValues { 2692 return s.FieldPath().WithIArrayOfValues(values).(*AlertingConditionSpecTimeSeriesQuery_FieldSubPathArrayOfValues) 2693 } 2694 2695 func (s AlertingCondition_Spec_TimeSeries_QueryPathSelectorSelectorMetricTypes) WithItemValue(value string) *AlertingConditionSpecTimeSeriesQuery_FieldSubPathArrayItemValue { 2696 return s.FieldPath().WithIArrayItemValue(value).(*AlertingConditionSpecTimeSeriesQuery_FieldSubPathArrayItemValue) 2697 } 2698 2699 type AlertingCondition_Spec_TimeSeries_QueryPathSelectorSelectorMetricLabels struct{} 2700 2701 func (AlertingCondition_Spec_TimeSeries_QueryPathSelectorSelectorMetricLabels) FieldPath() *AlertingConditionSpecTimeSeriesQuery_FieldSubPath { 2702 return &AlertingConditionSpecTimeSeriesQuery_FieldSubPath{ 2703 selector: AlertingConditionSpecTimeSeriesQuery_FieldPathSelectorSelector, 2704 subPath: common.NewTimeSeriesSelectorFieldPathBuilder().Metric().Labels().FieldPath(), 2705 } 2706 } 2707 2708 func (s AlertingCondition_Spec_TimeSeries_QueryPathSelectorSelectorMetricLabels) WithValue(value map[string]*common.Strings) *AlertingConditionSpecTimeSeriesQuery_FieldSubPathValue { 2709 return s.FieldPath().WithIValue(value).(*AlertingConditionSpecTimeSeriesQuery_FieldSubPathValue) 2710 } 2711 2712 func (s AlertingCondition_Spec_TimeSeries_QueryPathSelectorSelectorMetricLabels) WithArrayOfValues(values []map[string]*common.Strings) *AlertingConditionSpecTimeSeriesQuery_FieldSubPathArrayOfValues { 2713 return s.FieldPath().WithIArrayOfValues(values).(*AlertingConditionSpecTimeSeriesQuery_FieldSubPathArrayOfValues) 2714 } 2715 2716 func (AlertingCondition_Spec_TimeSeries_QueryPathSelectorSelectorMetricLabels) WithKey(key string) AlertingCondition_Spec_TimeSeries_QueryMapPathSelectorSelectorMetricLabels { 2717 return AlertingCondition_Spec_TimeSeries_QueryMapPathSelectorSelectorMetricLabels{key: key} 2718 } 2719 2720 type AlertingCondition_Spec_TimeSeries_QueryMapPathSelectorSelectorMetricLabels struct { 2721 key string 2722 } 2723 2724 func (s AlertingCondition_Spec_TimeSeries_QueryMapPathSelectorSelectorMetricLabels) FieldPath() *AlertingConditionSpecTimeSeriesQuery_FieldSubPath { 2725 return &AlertingConditionSpecTimeSeriesQuery_FieldSubPath{ 2726 selector: AlertingConditionSpecTimeSeriesQuery_FieldPathSelectorSelector, 2727 subPath: common.NewTimeSeriesSelectorFieldPathBuilder().Metric().Labels().WithKey(s.key).FieldPath(), 2728 } 2729 } 2730 2731 func (s AlertingCondition_Spec_TimeSeries_QueryMapPathSelectorSelectorMetricLabels) WithValue(value *common.Strings) *AlertingConditionSpecTimeSeriesQuery_FieldSubPathValue { 2732 return s.FieldPath().WithIValue(value).(*AlertingConditionSpecTimeSeriesQuery_FieldSubPathValue) 2733 } 2734 2735 func (s AlertingCondition_Spec_TimeSeries_QueryMapPathSelectorSelectorMetricLabels) WithArrayOfValues(values []*common.Strings) *AlertingConditionSpecTimeSeriesQuery_FieldSubPathArrayOfValues { 2736 return s.FieldPath().WithIArrayOfValues(values).(*AlertingConditionSpecTimeSeriesQuery_FieldSubPathArrayOfValues) 2737 } 2738 2739 type AlertingCondition_Spec_TimeSeries_QueryPathSelectorSelectorResource struct{} 2740 2741 func (AlertingCondition_Spec_TimeSeries_QueryPathSelectorSelectorResource) FieldPath() *AlertingConditionSpecTimeSeriesQuery_FieldSubPath { 2742 return &AlertingConditionSpecTimeSeriesQuery_FieldSubPath{ 2743 selector: AlertingConditionSpecTimeSeriesQuery_FieldPathSelectorSelector, 2744 subPath: common.NewTimeSeriesSelectorFieldPathBuilder().Resource().FieldPath(), 2745 } 2746 } 2747 2748 func (s AlertingCondition_Spec_TimeSeries_QueryPathSelectorSelectorResource) WithValue(value *common.MonitoredResourceSelector) *AlertingConditionSpecTimeSeriesQuery_FieldSubPathValue { 2749 return s.FieldPath().WithIValue(value).(*AlertingConditionSpecTimeSeriesQuery_FieldSubPathValue) 2750 } 2751 2752 func (s AlertingCondition_Spec_TimeSeries_QueryPathSelectorSelectorResource) WithArrayOfValues(values []*common.MonitoredResourceSelector) *AlertingConditionSpecTimeSeriesQuery_FieldSubPathArrayOfValues { 2753 return s.FieldPath().WithIArrayOfValues(values).(*AlertingConditionSpecTimeSeriesQuery_FieldSubPathArrayOfValues) 2754 } 2755 2756 func (AlertingCondition_Spec_TimeSeries_QueryPathSelectorSelectorResource) Types() AlertingCondition_Spec_TimeSeries_QueryPathSelectorSelectorResourceTypes { 2757 return AlertingCondition_Spec_TimeSeries_QueryPathSelectorSelectorResourceTypes{} 2758 } 2759 2760 func (AlertingCondition_Spec_TimeSeries_QueryPathSelectorSelectorResource) Labels() AlertingCondition_Spec_TimeSeries_QueryPathSelectorSelectorResourceLabels { 2761 return AlertingCondition_Spec_TimeSeries_QueryPathSelectorSelectorResourceLabels{} 2762 } 2763 2764 type AlertingCondition_Spec_TimeSeries_QueryPathSelectorSelectorResourceTypes struct{} 2765 2766 func (AlertingCondition_Spec_TimeSeries_QueryPathSelectorSelectorResourceTypes) FieldPath() *AlertingConditionSpecTimeSeriesQuery_FieldSubPath { 2767 return &AlertingConditionSpecTimeSeriesQuery_FieldSubPath{ 2768 selector: AlertingConditionSpecTimeSeriesQuery_FieldPathSelectorSelector, 2769 subPath: common.NewTimeSeriesSelectorFieldPathBuilder().Resource().Types().FieldPath(), 2770 } 2771 } 2772 2773 func (s AlertingCondition_Spec_TimeSeries_QueryPathSelectorSelectorResourceTypes) WithValue(value []string) *AlertingConditionSpecTimeSeriesQuery_FieldSubPathValue { 2774 return s.FieldPath().WithIValue(value).(*AlertingConditionSpecTimeSeriesQuery_FieldSubPathValue) 2775 } 2776 2777 func (s AlertingCondition_Spec_TimeSeries_QueryPathSelectorSelectorResourceTypes) WithArrayOfValues(values [][]string) *AlertingConditionSpecTimeSeriesQuery_FieldSubPathArrayOfValues { 2778 return s.FieldPath().WithIArrayOfValues(values).(*AlertingConditionSpecTimeSeriesQuery_FieldSubPathArrayOfValues) 2779 } 2780 2781 func (s AlertingCondition_Spec_TimeSeries_QueryPathSelectorSelectorResourceTypes) WithItemValue(value string) *AlertingConditionSpecTimeSeriesQuery_FieldSubPathArrayItemValue { 2782 return s.FieldPath().WithIArrayItemValue(value).(*AlertingConditionSpecTimeSeriesQuery_FieldSubPathArrayItemValue) 2783 } 2784 2785 type AlertingCondition_Spec_TimeSeries_QueryPathSelectorSelectorResourceLabels struct{} 2786 2787 func (AlertingCondition_Spec_TimeSeries_QueryPathSelectorSelectorResourceLabels) FieldPath() *AlertingConditionSpecTimeSeriesQuery_FieldSubPath { 2788 return &AlertingConditionSpecTimeSeriesQuery_FieldSubPath{ 2789 selector: AlertingConditionSpecTimeSeriesQuery_FieldPathSelectorSelector, 2790 subPath: common.NewTimeSeriesSelectorFieldPathBuilder().Resource().Labels().FieldPath(), 2791 } 2792 } 2793 2794 func (s AlertingCondition_Spec_TimeSeries_QueryPathSelectorSelectorResourceLabels) WithValue(value map[string]*common.Strings) *AlertingConditionSpecTimeSeriesQuery_FieldSubPathValue { 2795 return s.FieldPath().WithIValue(value).(*AlertingConditionSpecTimeSeriesQuery_FieldSubPathValue) 2796 } 2797 2798 func (s AlertingCondition_Spec_TimeSeries_QueryPathSelectorSelectorResourceLabels) WithArrayOfValues(values []map[string]*common.Strings) *AlertingConditionSpecTimeSeriesQuery_FieldSubPathArrayOfValues { 2799 return s.FieldPath().WithIArrayOfValues(values).(*AlertingConditionSpecTimeSeriesQuery_FieldSubPathArrayOfValues) 2800 } 2801 2802 func (AlertingCondition_Spec_TimeSeries_QueryPathSelectorSelectorResourceLabels) WithKey(key string) AlertingCondition_Spec_TimeSeries_QueryMapPathSelectorSelectorResourceLabels { 2803 return AlertingCondition_Spec_TimeSeries_QueryMapPathSelectorSelectorResourceLabels{key: key} 2804 } 2805 2806 type AlertingCondition_Spec_TimeSeries_QueryMapPathSelectorSelectorResourceLabels struct { 2807 key string 2808 } 2809 2810 func (s AlertingCondition_Spec_TimeSeries_QueryMapPathSelectorSelectorResourceLabels) FieldPath() *AlertingConditionSpecTimeSeriesQuery_FieldSubPath { 2811 return &AlertingConditionSpecTimeSeriesQuery_FieldSubPath{ 2812 selector: AlertingConditionSpecTimeSeriesQuery_FieldPathSelectorSelector, 2813 subPath: common.NewTimeSeriesSelectorFieldPathBuilder().Resource().Labels().WithKey(s.key).FieldPath(), 2814 } 2815 } 2816 2817 func (s AlertingCondition_Spec_TimeSeries_QueryMapPathSelectorSelectorResourceLabels) WithValue(value *common.Strings) *AlertingConditionSpecTimeSeriesQuery_FieldSubPathValue { 2818 return s.FieldPath().WithIValue(value).(*AlertingConditionSpecTimeSeriesQuery_FieldSubPathValue) 2819 } 2820 2821 func (s AlertingCondition_Spec_TimeSeries_QueryMapPathSelectorSelectorResourceLabels) WithArrayOfValues(values []*common.Strings) *AlertingConditionSpecTimeSeriesQuery_FieldSubPathArrayOfValues { 2822 return s.FieldPath().WithIArrayOfValues(values).(*AlertingConditionSpecTimeSeriesQuery_FieldSubPathArrayOfValues) 2823 } 2824 2825 type AlertingCondition_Spec_TimeSeries_QueryPathSelectorAggregation struct{} 2826 2827 func (AlertingCondition_Spec_TimeSeries_QueryPathSelectorAggregation) FieldPath() *AlertingConditionSpecTimeSeriesQuery_FieldTerminalPath { 2828 return &AlertingConditionSpecTimeSeriesQuery_FieldTerminalPath{selector: AlertingConditionSpecTimeSeriesQuery_FieldPathSelectorAggregation} 2829 } 2830 2831 func (s AlertingCondition_Spec_TimeSeries_QueryPathSelectorAggregation) WithValue(value *common.Aggregation) *AlertingConditionSpecTimeSeriesQuery_FieldTerminalPathValue { 2832 return s.FieldPath().WithIValue(value).(*AlertingConditionSpecTimeSeriesQuery_FieldTerminalPathValue) 2833 } 2834 2835 func (s AlertingCondition_Spec_TimeSeries_QueryPathSelectorAggregation) WithArrayOfValues(values []*common.Aggregation) *AlertingConditionSpecTimeSeriesQuery_FieldTerminalPathArrayOfValues { 2836 return s.FieldPath().WithIArrayOfValues(values).(*AlertingConditionSpecTimeSeriesQuery_FieldTerminalPathArrayOfValues) 2837 } 2838 2839 func (AlertingCondition_Spec_TimeSeries_QueryPathSelectorAggregation) WithSubPath(subPath common.Aggregation_FieldPath) *AlertingConditionSpecTimeSeriesQuery_FieldSubPath { 2840 return &AlertingConditionSpecTimeSeriesQuery_FieldSubPath{selector: AlertingConditionSpecTimeSeriesQuery_FieldPathSelectorAggregation, subPath: subPath} 2841 } 2842 2843 func (s AlertingCondition_Spec_TimeSeries_QueryPathSelectorAggregation) WithSubValue(subPathValue common.Aggregation_FieldPathValue) *AlertingConditionSpecTimeSeriesQuery_FieldSubPathValue { 2844 return &AlertingConditionSpecTimeSeriesQuery_FieldSubPathValue{AlertingConditionSpecTimeSeriesQuery_FieldPath: s.WithSubPath(subPathValue), subPathValue: subPathValue} 2845 } 2846 2847 func (s AlertingCondition_Spec_TimeSeries_QueryPathSelectorAggregation) WithSubArrayOfValues(subPathArrayOfValues common.Aggregation_FieldPathArrayOfValues) *AlertingConditionSpecTimeSeriesQuery_FieldSubPathArrayOfValues { 2848 return &AlertingConditionSpecTimeSeriesQuery_FieldSubPathArrayOfValues{AlertingConditionSpecTimeSeriesQuery_FieldPath: s.WithSubPath(subPathArrayOfValues), subPathArrayOfValues: subPathArrayOfValues} 2849 } 2850 2851 func (s AlertingCondition_Spec_TimeSeries_QueryPathSelectorAggregation) WithSubArrayItemValue(subPathArrayItemValue common.Aggregation_FieldPathArrayItemValue) *AlertingConditionSpecTimeSeriesQuery_FieldSubPathArrayItemValue { 2852 return &AlertingConditionSpecTimeSeriesQuery_FieldSubPathArrayItemValue{AlertingConditionSpecTimeSeriesQuery_FieldPath: s.WithSubPath(subPathArrayItemValue), subPathItemValue: subPathArrayItemValue} 2853 } 2854 2855 func (AlertingCondition_Spec_TimeSeries_QueryPathSelectorAggregation) AlignmentPeriod() AlertingCondition_Spec_TimeSeries_QueryPathSelectorAggregationAlignmentPeriod { 2856 return AlertingCondition_Spec_TimeSeries_QueryPathSelectorAggregationAlignmentPeriod{} 2857 } 2858 2859 func (AlertingCondition_Spec_TimeSeries_QueryPathSelectorAggregation) PerSeriesAligner() AlertingCondition_Spec_TimeSeries_QueryPathSelectorAggregationPerSeriesAligner { 2860 return AlertingCondition_Spec_TimeSeries_QueryPathSelectorAggregationPerSeriesAligner{} 2861 } 2862 2863 func (AlertingCondition_Spec_TimeSeries_QueryPathSelectorAggregation) CrossSeriesReducer() AlertingCondition_Spec_TimeSeries_QueryPathSelectorAggregationCrossSeriesReducer { 2864 return AlertingCondition_Spec_TimeSeries_QueryPathSelectorAggregationCrossSeriesReducer{} 2865 } 2866 2867 func (AlertingCondition_Spec_TimeSeries_QueryPathSelectorAggregation) GroupByFields() AlertingCondition_Spec_TimeSeries_QueryPathSelectorAggregationGroupByFields { 2868 return AlertingCondition_Spec_TimeSeries_QueryPathSelectorAggregationGroupByFields{} 2869 } 2870 2871 type AlertingCondition_Spec_TimeSeries_QueryPathSelectorAggregationAlignmentPeriod struct{} 2872 2873 func (AlertingCondition_Spec_TimeSeries_QueryPathSelectorAggregationAlignmentPeriod) FieldPath() *AlertingConditionSpecTimeSeriesQuery_FieldSubPath { 2874 return &AlertingConditionSpecTimeSeriesQuery_FieldSubPath{ 2875 selector: AlertingConditionSpecTimeSeriesQuery_FieldPathSelectorAggregation, 2876 subPath: common.NewAggregationFieldPathBuilder().AlignmentPeriod().FieldPath(), 2877 } 2878 } 2879 2880 func (s AlertingCondition_Spec_TimeSeries_QueryPathSelectorAggregationAlignmentPeriod) WithValue(value *durationpb.Duration) *AlertingConditionSpecTimeSeriesQuery_FieldSubPathValue { 2881 return s.FieldPath().WithIValue(value).(*AlertingConditionSpecTimeSeriesQuery_FieldSubPathValue) 2882 } 2883 2884 func (s AlertingCondition_Spec_TimeSeries_QueryPathSelectorAggregationAlignmentPeriod) WithArrayOfValues(values []*durationpb.Duration) *AlertingConditionSpecTimeSeriesQuery_FieldSubPathArrayOfValues { 2885 return s.FieldPath().WithIArrayOfValues(values).(*AlertingConditionSpecTimeSeriesQuery_FieldSubPathArrayOfValues) 2886 } 2887 2888 type AlertingCondition_Spec_TimeSeries_QueryPathSelectorAggregationPerSeriesAligner struct{} 2889 2890 func (AlertingCondition_Spec_TimeSeries_QueryPathSelectorAggregationPerSeriesAligner) FieldPath() *AlertingConditionSpecTimeSeriesQuery_FieldSubPath { 2891 return &AlertingConditionSpecTimeSeriesQuery_FieldSubPath{ 2892 selector: AlertingConditionSpecTimeSeriesQuery_FieldPathSelectorAggregation, 2893 subPath: common.NewAggregationFieldPathBuilder().PerSeriesAligner().FieldPath(), 2894 } 2895 } 2896 2897 func (s AlertingCondition_Spec_TimeSeries_QueryPathSelectorAggregationPerSeriesAligner) WithValue(value common.Aggregation_Aligner) *AlertingConditionSpecTimeSeriesQuery_FieldSubPathValue { 2898 return s.FieldPath().WithIValue(value).(*AlertingConditionSpecTimeSeriesQuery_FieldSubPathValue) 2899 } 2900 2901 func (s AlertingCondition_Spec_TimeSeries_QueryPathSelectorAggregationPerSeriesAligner) WithArrayOfValues(values []common.Aggregation_Aligner) *AlertingConditionSpecTimeSeriesQuery_FieldSubPathArrayOfValues { 2902 return s.FieldPath().WithIArrayOfValues(values).(*AlertingConditionSpecTimeSeriesQuery_FieldSubPathArrayOfValues) 2903 } 2904 2905 type AlertingCondition_Spec_TimeSeries_QueryPathSelectorAggregationCrossSeriesReducer struct{} 2906 2907 func (AlertingCondition_Spec_TimeSeries_QueryPathSelectorAggregationCrossSeriesReducer) FieldPath() *AlertingConditionSpecTimeSeriesQuery_FieldSubPath { 2908 return &AlertingConditionSpecTimeSeriesQuery_FieldSubPath{ 2909 selector: AlertingConditionSpecTimeSeriesQuery_FieldPathSelectorAggregation, 2910 subPath: common.NewAggregationFieldPathBuilder().CrossSeriesReducer().FieldPath(), 2911 } 2912 } 2913 2914 func (s AlertingCondition_Spec_TimeSeries_QueryPathSelectorAggregationCrossSeriesReducer) WithValue(value common.Aggregation_Reducer) *AlertingConditionSpecTimeSeriesQuery_FieldSubPathValue { 2915 return s.FieldPath().WithIValue(value).(*AlertingConditionSpecTimeSeriesQuery_FieldSubPathValue) 2916 } 2917 2918 func (s AlertingCondition_Spec_TimeSeries_QueryPathSelectorAggregationCrossSeriesReducer) WithArrayOfValues(values []common.Aggregation_Reducer) *AlertingConditionSpecTimeSeriesQuery_FieldSubPathArrayOfValues { 2919 return s.FieldPath().WithIArrayOfValues(values).(*AlertingConditionSpecTimeSeriesQuery_FieldSubPathArrayOfValues) 2920 } 2921 2922 type AlertingCondition_Spec_TimeSeries_QueryPathSelectorAggregationGroupByFields struct{} 2923 2924 func (AlertingCondition_Spec_TimeSeries_QueryPathSelectorAggregationGroupByFields) FieldPath() *AlertingConditionSpecTimeSeriesQuery_FieldSubPath { 2925 return &AlertingConditionSpecTimeSeriesQuery_FieldSubPath{ 2926 selector: AlertingConditionSpecTimeSeriesQuery_FieldPathSelectorAggregation, 2927 subPath: common.NewAggregationFieldPathBuilder().GroupByFields().FieldPath(), 2928 } 2929 } 2930 2931 func (s AlertingCondition_Spec_TimeSeries_QueryPathSelectorAggregationGroupByFields) WithValue(value []string) *AlertingConditionSpecTimeSeriesQuery_FieldSubPathValue { 2932 return s.FieldPath().WithIValue(value).(*AlertingConditionSpecTimeSeriesQuery_FieldSubPathValue) 2933 } 2934 2935 func (s AlertingCondition_Spec_TimeSeries_QueryPathSelectorAggregationGroupByFields) WithArrayOfValues(values [][]string) *AlertingConditionSpecTimeSeriesQuery_FieldSubPathArrayOfValues { 2936 return s.FieldPath().WithIArrayOfValues(values).(*AlertingConditionSpecTimeSeriesQuery_FieldSubPathArrayOfValues) 2937 } 2938 2939 func (s AlertingCondition_Spec_TimeSeries_QueryPathSelectorAggregationGroupByFields) WithItemValue(value string) *AlertingConditionSpecTimeSeriesQuery_FieldSubPathArrayItemValue { 2940 return s.FieldPath().WithIArrayItemValue(value).(*AlertingConditionSpecTimeSeriesQuery_FieldSubPathArrayItemValue) 2941 } 2942 2943 type AlertingConditionSpecTimeSeriesThresholdFieldPathBuilder struct{} 2944 2945 func NewAlertingConditionSpecTimeSeriesThresholdFieldPathBuilder() AlertingConditionSpecTimeSeriesThresholdFieldPathBuilder { 2946 return AlertingConditionSpecTimeSeriesThresholdFieldPathBuilder{} 2947 } 2948 func (AlertingConditionSpecTimeSeriesThresholdFieldPathBuilder) Compare() AlertingCondition_Spec_TimeSeries_ThresholdPathSelectorCompare { 2949 return AlertingCondition_Spec_TimeSeries_ThresholdPathSelectorCompare{} 2950 } 2951 func (AlertingConditionSpecTimeSeriesThresholdFieldPathBuilder) Value() AlertingCondition_Spec_TimeSeries_ThresholdPathSelectorValue { 2952 return AlertingCondition_Spec_TimeSeries_ThresholdPathSelectorValue{} 2953 } 2954 2955 type AlertingCondition_Spec_TimeSeries_ThresholdPathSelectorCompare struct{} 2956 2957 func (AlertingCondition_Spec_TimeSeries_ThresholdPathSelectorCompare) FieldPath() *AlertingConditionSpecTimeSeriesThreshold_FieldTerminalPath { 2958 return &AlertingConditionSpecTimeSeriesThreshold_FieldTerminalPath{selector: AlertingConditionSpecTimeSeriesThreshold_FieldPathSelectorCompare} 2959 } 2960 2961 func (s AlertingCondition_Spec_TimeSeries_ThresholdPathSelectorCompare) WithValue(value AlertingCondition_Spec_TimeSeries_Threshold_Compare) *AlertingConditionSpecTimeSeriesThreshold_FieldTerminalPathValue { 2962 return s.FieldPath().WithIValue(value).(*AlertingConditionSpecTimeSeriesThreshold_FieldTerminalPathValue) 2963 } 2964 2965 func (s AlertingCondition_Spec_TimeSeries_ThresholdPathSelectorCompare) WithArrayOfValues(values []AlertingCondition_Spec_TimeSeries_Threshold_Compare) *AlertingConditionSpecTimeSeriesThreshold_FieldTerminalPathArrayOfValues { 2966 return s.FieldPath().WithIArrayOfValues(values).(*AlertingConditionSpecTimeSeriesThreshold_FieldTerminalPathArrayOfValues) 2967 } 2968 2969 type AlertingCondition_Spec_TimeSeries_ThresholdPathSelectorValue struct{} 2970 2971 func (AlertingCondition_Spec_TimeSeries_ThresholdPathSelectorValue) FieldPath() *AlertingConditionSpecTimeSeriesThreshold_FieldTerminalPath { 2972 return &AlertingConditionSpecTimeSeriesThreshold_FieldTerminalPath{selector: AlertingConditionSpecTimeSeriesThreshold_FieldPathSelectorValue} 2973 } 2974 2975 func (s AlertingCondition_Spec_TimeSeries_ThresholdPathSelectorValue) WithValue(value float64) *AlertingConditionSpecTimeSeriesThreshold_FieldTerminalPathValue { 2976 return s.FieldPath().WithIValue(value).(*AlertingConditionSpecTimeSeriesThreshold_FieldTerminalPathValue) 2977 } 2978 2979 func (s AlertingCondition_Spec_TimeSeries_ThresholdPathSelectorValue) WithArrayOfValues(values []float64) *AlertingConditionSpecTimeSeriesThreshold_FieldTerminalPathArrayOfValues { 2980 return s.FieldPath().WithIArrayOfValues(values).(*AlertingConditionSpecTimeSeriesThreshold_FieldTerminalPathArrayOfValues) 2981 } 2982 2983 type AlertingConditionSpecTimeSeriesCombineThresholdFieldPathBuilder struct{} 2984 2985 func NewAlertingConditionSpecTimeSeriesCombineThresholdFieldPathBuilder() AlertingConditionSpecTimeSeriesCombineThresholdFieldPathBuilder { 2986 return AlertingConditionSpecTimeSeriesCombineThresholdFieldPathBuilder{} 2987 } 2988 func (AlertingConditionSpecTimeSeriesCombineThresholdFieldPathBuilder) PerMetric() AlertingCondition_Spec_TimeSeries_CombineThresholdPathSelectorPerMetric { 2989 return AlertingCondition_Spec_TimeSeries_CombineThresholdPathSelectorPerMetric{} 2990 } 2991 func (AlertingConditionSpecTimeSeriesCombineThresholdFieldPathBuilder) Combine() AlertingCondition_Spec_TimeSeries_CombineThresholdPathSelectorCombine { 2992 return AlertingCondition_Spec_TimeSeries_CombineThresholdPathSelectorCombine{} 2993 } 2994 2995 type AlertingCondition_Spec_TimeSeries_CombineThresholdPathSelectorPerMetric struct{} 2996 2997 func (AlertingCondition_Spec_TimeSeries_CombineThresholdPathSelectorPerMetric) FieldPath() *AlertingConditionSpecTimeSeriesCombineThreshold_FieldTerminalPath { 2998 return &AlertingConditionSpecTimeSeriesCombineThreshold_FieldTerminalPath{selector: AlertingConditionSpecTimeSeriesCombineThreshold_FieldPathSelectorPerMetric} 2999 } 3000 3001 func (s AlertingCondition_Spec_TimeSeries_CombineThresholdPathSelectorPerMetric) WithValue(value map[string]*AlertingCondition_Spec_TimeSeries_Threshold) *AlertingConditionSpecTimeSeriesCombineThreshold_FieldTerminalPathValue { 3002 return s.FieldPath().WithIValue(value).(*AlertingConditionSpecTimeSeriesCombineThreshold_FieldTerminalPathValue) 3003 } 3004 3005 func (s AlertingCondition_Spec_TimeSeries_CombineThresholdPathSelectorPerMetric) WithArrayOfValues(values []map[string]*AlertingCondition_Spec_TimeSeries_Threshold) *AlertingConditionSpecTimeSeriesCombineThreshold_FieldTerminalPathArrayOfValues { 3006 return s.FieldPath().WithIArrayOfValues(values).(*AlertingConditionSpecTimeSeriesCombineThreshold_FieldTerminalPathArrayOfValues) 3007 } 3008 3009 func (AlertingCondition_Spec_TimeSeries_CombineThresholdPathSelectorPerMetric) WithKey(key string) AlertingCondition_Spec_TimeSeries_CombineThresholdMapPathSelectorPerMetric { 3010 return AlertingCondition_Spec_TimeSeries_CombineThresholdMapPathSelectorPerMetric{key: key} 3011 } 3012 3013 type AlertingCondition_Spec_TimeSeries_CombineThresholdMapPathSelectorPerMetric struct { 3014 key string 3015 } 3016 3017 func (s AlertingCondition_Spec_TimeSeries_CombineThresholdMapPathSelectorPerMetric) FieldPath() *AlertingConditionSpecTimeSeriesCombineThreshold_FieldPathMap { 3018 return &AlertingConditionSpecTimeSeriesCombineThreshold_FieldPathMap{selector: AlertingConditionSpecTimeSeriesCombineThreshold_FieldPathSelectorPerMetric, key: s.key} 3019 } 3020 3021 func (s AlertingCondition_Spec_TimeSeries_CombineThresholdMapPathSelectorPerMetric) WithValue(value *AlertingCondition_Spec_TimeSeries_Threshold) *AlertingConditionSpecTimeSeriesCombineThreshold_FieldPathMapValue { 3022 return s.FieldPath().WithIValue(value).(*AlertingConditionSpecTimeSeriesCombineThreshold_FieldPathMapValue) 3023 } 3024 3025 func (s AlertingCondition_Spec_TimeSeries_CombineThresholdMapPathSelectorPerMetric) WithArrayOfValues(values []*AlertingCondition_Spec_TimeSeries_Threshold) *AlertingConditionSpecTimeSeriesCombineThreshold_FieldPathMapArrayOfValues { 3026 return s.FieldPath().WithIArrayOfValues(values).(*AlertingConditionSpecTimeSeriesCombineThreshold_FieldPathMapArrayOfValues) 3027 } 3028 3029 type AlertingCondition_Spec_TimeSeries_CombineThresholdPathSelectorCombine struct{} 3030 3031 func (AlertingCondition_Spec_TimeSeries_CombineThresholdPathSelectorCombine) FieldPath() *AlertingConditionSpecTimeSeriesCombineThreshold_FieldTerminalPath { 3032 return &AlertingConditionSpecTimeSeriesCombineThreshold_FieldTerminalPath{selector: AlertingConditionSpecTimeSeriesCombineThreshold_FieldPathSelectorCombine} 3033 } 3034 3035 func (s AlertingCondition_Spec_TimeSeries_CombineThresholdPathSelectorCombine) WithValue(value AlertingCondition_Spec_TimeSeries_CombineThreshold_CombineOperator) *AlertingConditionSpecTimeSeriesCombineThreshold_FieldTerminalPathValue { 3036 return s.FieldPath().WithIValue(value).(*AlertingConditionSpecTimeSeriesCombineThreshold_FieldTerminalPathValue) 3037 } 3038 3039 func (s AlertingCondition_Spec_TimeSeries_CombineThresholdPathSelectorCombine) WithArrayOfValues(values []AlertingCondition_Spec_TimeSeries_CombineThreshold_CombineOperator) *AlertingConditionSpecTimeSeriesCombineThreshold_FieldTerminalPathArrayOfValues { 3040 return s.FieldPath().WithIArrayOfValues(values).(*AlertingConditionSpecTimeSeriesCombineThreshold_FieldTerminalPathArrayOfValues) 3041 }