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