github.com/cloudwan/edgelq-sdk@v1.15.4/monitoring/resources/v3/notification_channel/notification_channel.pb.fieldpathbuilder.go (about) 1 // Code generated by protoc-gen-goten-object 2 // File: edgelq/monitoring/proto/v3/notification_channel.proto 3 // DO NOT EDIT!!! 4 5 package notification_channel 6 7 // proto imports 8 import ( 9 project "github.com/cloudwan/edgelq-sdk/monitoring/resources/v3/project" 10 meta "github.com/cloudwan/goten-sdk/types/meta" 11 multi_region_policy "github.com/cloudwan/goten-sdk/types/multi_region_policy" 12 timestamppb "google.golang.org/protobuf/types/known/timestamppb" 13 ) 14 15 // make sure we're using proto imports 16 var ( 17 _ = &project.Project{} 18 _ = ×tamppb.Timestamp{} 19 _ = &meta.Meta{} 20 _ = &multi_region_policy.MultiRegionPolicy{} 21 ) 22 23 type NotificationChannelFieldPathBuilder struct{} 24 25 func NewNotificationChannelFieldPathBuilder() NotificationChannelFieldPathBuilder { 26 return NotificationChannelFieldPathBuilder{} 27 } 28 func (NotificationChannelFieldPathBuilder) Name() NotificationChannelPathSelectorName { 29 return NotificationChannelPathSelectorName{} 30 } 31 func (NotificationChannelFieldPathBuilder) Metadata() NotificationChannelPathSelectorMetadata { 32 return NotificationChannelPathSelectorMetadata{} 33 } 34 func (NotificationChannelFieldPathBuilder) DisplayName() NotificationChannelPathSelectorDisplayName { 35 return NotificationChannelPathSelectorDisplayName{} 36 } 37 func (NotificationChannelFieldPathBuilder) Spec() NotificationChannelPathSelectorSpec { 38 return NotificationChannelPathSelectorSpec{} 39 } 40 func (NotificationChannelFieldPathBuilder) State() NotificationChannelPathSelectorState { 41 return NotificationChannelPathSelectorState{} 42 } 43 func (NotificationChannelFieldPathBuilder) Description() NotificationChannelPathSelectorDescription { 44 return NotificationChannelPathSelectorDescription{} 45 } 46 47 type NotificationChannelPathSelectorName struct{} 48 49 func (NotificationChannelPathSelectorName) FieldPath() *NotificationChannel_FieldTerminalPath { 50 return &NotificationChannel_FieldTerminalPath{selector: NotificationChannel_FieldPathSelectorName} 51 } 52 53 func (s NotificationChannelPathSelectorName) WithValue(value *Name) *NotificationChannel_FieldTerminalPathValue { 54 return s.FieldPath().WithIValue(value).(*NotificationChannel_FieldTerminalPathValue) 55 } 56 57 func (s NotificationChannelPathSelectorName) WithArrayOfValues(values []*Name) *NotificationChannel_FieldTerminalPathArrayOfValues { 58 return s.FieldPath().WithIArrayOfValues(values).(*NotificationChannel_FieldTerminalPathArrayOfValues) 59 } 60 61 type NotificationChannelPathSelectorMetadata struct{} 62 63 func (NotificationChannelPathSelectorMetadata) FieldPath() *NotificationChannel_FieldTerminalPath { 64 return &NotificationChannel_FieldTerminalPath{selector: NotificationChannel_FieldPathSelectorMetadata} 65 } 66 67 func (s NotificationChannelPathSelectorMetadata) WithValue(value *meta.Meta) *NotificationChannel_FieldTerminalPathValue { 68 return s.FieldPath().WithIValue(value).(*NotificationChannel_FieldTerminalPathValue) 69 } 70 71 func (s NotificationChannelPathSelectorMetadata) WithArrayOfValues(values []*meta.Meta) *NotificationChannel_FieldTerminalPathArrayOfValues { 72 return s.FieldPath().WithIArrayOfValues(values).(*NotificationChannel_FieldTerminalPathArrayOfValues) 73 } 74 75 func (NotificationChannelPathSelectorMetadata) WithSubPath(subPath meta.Meta_FieldPath) *NotificationChannel_FieldSubPath { 76 return &NotificationChannel_FieldSubPath{selector: NotificationChannel_FieldPathSelectorMetadata, subPath: subPath} 77 } 78 79 func (s NotificationChannelPathSelectorMetadata) WithSubValue(subPathValue meta.Meta_FieldPathValue) *NotificationChannel_FieldSubPathValue { 80 return &NotificationChannel_FieldSubPathValue{NotificationChannel_FieldPath: s.WithSubPath(subPathValue), subPathValue: subPathValue} 81 } 82 83 func (s NotificationChannelPathSelectorMetadata) WithSubArrayOfValues(subPathArrayOfValues meta.Meta_FieldPathArrayOfValues) *NotificationChannel_FieldSubPathArrayOfValues { 84 return &NotificationChannel_FieldSubPathArrayOfValues{NotificationChannel_FieldPath: s.WithSubPath(subPathArrayOfValues), subPathArrayOfValues: subPathArrayOfValues} 85 } 86 87 func (s NotificationChannelPathSelectorMetadata) WithSubArrayItemValue(subPathArrayItemValue meta.Meta_FieldPathArrayItemValue) *NotificationChannel_FieldSubPathArrayItemValue { 88 return &NotificationChannel_FieldSubPathArrayItemValue{NotificationChannel_FieldPath: s.WithSubPath(subPathArrayItemValue), subPathItemValue: subPathArrayItemValue} 89 } 90 91 func (NotificationChannelPathSelectorMetadata) CreateTime() NotificationChannelPathSelectorMetadataCreateTime { 92 return NotificationChannelPathSelectorMetadataCreateTime{} 93 } 94 95 func (NotificationChannelPathSelectorMetadata) UpdateTime() NotificationChannelPathSelectorMetadataUpdateTime { 96 return NotificationChannelPathSelectorMetadataUpdateTime{} 97 } 98 99 func (NotificationChannelPathSelectorMetadata) DeleteTime() NotificationChannelPathSelectorMetadataDeleteTime { 100 return NotificationChannelPathSelectorMetadataDeleteTime{} 101 } 102 103 func (NotificationChannelPathSelectorMetadata) Uuid() NotificationChannelPathSelectorMetadataUuid { 104 return NotificationChannelPathSelectorMetadataUuid{} 105 } 106 107 func (NotificationChannelPathSelectorMetadata) Tags() NotificationChannelPathSelectorMetadataTags { 108 return NotificationChannelPathSelectorMetadataTags{} 109 } 110 111 func (NotificationChannelPathSelectorMetadata) Labels() NotificationChannelPathSelectorMetadataLabels { 112 return NotificationChannelPathSelectorMetadataLabels{} 113 } 114 115 func (NotificationChannelPathSelectorMetadata) Annotations() NotificationChannelPathSelectorMetadataAnnotations { 116 return NotificationChannelPathSelectorMetadataAnnotations{} 117 } 118 119 func (NotificationChannelPathSelectorMetadata) Generation() NotificationChannelPathSelectorMetadataGeneration { 120 return NotificationChannelPathSelectorMetadataGeneration{} 121 } 122 123 func (NotificationChannelPathSelectorMetadata) ResourceVersion() NotificationChannelPathSelectorMetadataResourceVersion { 124 return NotificationChannelPathSelectorMetadataResourceVersion{} 125 } 126 127 func (NotificationChannelPathSelectorMetadata) OwnerReferences() NotificationChannelPathSelectorMetadataOwnerReferences { 128 return NotificationChannelPathSelectorMetadataOwnerReferences{} 129 } 130 131 func (NotificationChannelPathSelectorMetadata) Shards() NotificationChannelPathSelectorMetadataShards { 132 return NotificationChannelPathSelectorMetadataShards{} 133 } 134 135 func (NotificationChannelPathSelectorMetadata) Syncing() NotificationChannelPathSelectorMetadataSyncing { 136 return NotificationChannelPathSelectorMetadataSyncing{} 137 } 138 139 func (NotificationChannelPathSelectorMetadata) Lifecycle() NotificationChannelPathSelectorMetadataLifecycle { 140 return NotificationChannelPathSelectorMetadataLifecycle{} 141 } 142 143 func (NotificationChannelPathSelectorMetadata) Services() NotificationChannelPathSelectorMetadataServices { 144 return NotificationChannelPathSelectorMetadataServices{} 145 } 146 147 type NotificationChannelPathSelectorMetadataCreateTime struct{} 148 149 func (NotificationChannelPathSelectorMetadataCreateTime) FieldPath() *NotificationChannel_FieldSubPath { 150 return &NotificationChannel_FieldSubPath{ 151 selector: NotificationChannel_FieldPathSelectorMetadata, 152 subPath: meta.NewMetaFieldPathBuilder().CreateTime().FieldPath(), 153 } 154 } 155 156 func (s NotificationChannelPathSelectorMetadataCreateTime) WithValue(value *timestamppb.Timestamp) *NotificationChannel_FieldSubPathValue { 157 return s.FieldPath().WithIValue(value).(*NotificationChannel_FieldSubPathValue) 158 } 159 160 func (s NotificationChannelPathSelectorMetadataCreateTime) WithArrayOfValues(values []*timestamppb.Timestamp) *NotificationChannel_FieldSubPathArrayOfValues { 161 return s.FieldPath().WithIArrayOfValues(values).(*NotificationChannel_FieldSubPathArrayOfValues) 162 } 163 164 type NotificationChannelPathSelectorMetadataUpdateTime struct{} 165 166 func (NotificationChannelPathSelectorMetadataUpdateTime) FieldPath() *NotificationChannel_FieldSubPath { 167 return &NotificationChannel_FieldSubPath{ 168 selector: NotificationChannel_FieldPathSelectorMetadata, 169 subPath: meta.NewMetaFieldPathBuilder().UpdateTime().FieldPath(), 170 } 171 } 172 173 func (s NotificationChannelPathSelectorMetadataUpdateTime) WithValue(value *timestamppb.Timestamp) *NotificationChannel_FieldSubPathValue { 174 return s.FieldPath().WithIValue(value).(*NotificationChannel_FieldSubPathValue) 175 } 176 177 func (s NotificationChannelPathSelectorMetadataUpdateTime) WithArrayOfValues(values []*timestamppb.Timestamp) *NotificationChannel_FieldSubPathArrayOfValues { 178 return s.FieldPath().WithIArrayOfValues(values).(*NotificationChannel_FieldSubPathArrayOfValues) 179 } 180 181 type NotificationChannelPathSelectorMetadataDeleteTime struct{} 182 183 func (NotificationChannelPathSelectorMetadataDeleteTime) FieldPath() *NotificationChannel_FieldSubPath { 184 return &NotificationChannel_FieldSubPath{ 185 selector: NotificationChannel_FieldPathSelectorMetadata, 186 subPath: meta.NewMetaFieldPathBuilder().DeleteTime().FieldPath(), 187 } 188 } 189 190 func (s NotificationChannelPathSelectorMetadataDeleteTime) WithValue(value *timestamppb.Timestamp) *NotificationChannel_FieldSubPathValue { 191 return s.FieldPath().WithIValue(value).(*NotificationChannel_FieldSubPathValue) 192 } 193 194 func (s NotificationChannelPathSelectorMetadataDeleteTime) WithArrayOfValues(values []*timestamppb.Timestamp) *NotificationChannel_FieldSubPathArrayOfValues { 195 return s.FieldPath().WithIArrayOfValues(values).(*NotificationChannel_FieldSubPathArrayOfValues) 196 } 197 198 type NotificationChannelPathSelectorMetadataUuid struct{} 199 200 func (NotificationChannelPathSelectorMetadataUuid) FieldPath() *NotificationChannel_FieldSubPath { 201 return &NotificationChannel_FieldSubPath{ 202 selector: NotificationChannel_FieldPathSelectorMetadata, 203 subPath: meta.NewMetaFieldPathBuilder().Uuid().FieldPath(), 204 } 205 } 206 207 func (s NotificationChannelPathSelectorMetadataUuid) WithValue(value string) *NotificationChannel_FieldSubPathValue { 208 return s.FieldPath().WithIValue(value).(*NotificationChannel_FieldSubPathValue) 209 } 210 211 func (s NotificationChannelPathSelectorMetadataUuid) WithArrayOfValues(values []string) *NotificationChannel_FieldSubPathArrayOfValues { 212 return s.FieldPath().WithIArrayOfValues(values).(*NotificationChannel_FieldSubPathArrayOfValues) 213 } 214 215 type NotificationChannelPathSelectorMetadataTags struct{} 216 217 func (NotificationChannelPathSelectorMetadataTags) FieldPath() *NotificationChannel_FieldSubPath { 218 return &NotificationChannel_FieldSubPath{ 219 selector: NotificationChannel_FieldPathSelectorMetadata, 220 subPath: meta.NewMetaFieldPathBuilder().Tags().FieldPath(), 221 } 222 } 223 224 func (s NotificationChannelPathSelectorMetadataTags) WithValue(value []string) *NotificationChannel_FieldSubPathValue { 225 return s.FieldPath().WithIValue(value).(*NotificationChannel_FieldSubPathValue) 226 } 227 228 func (s NotificationChannelPathSelectorMetadataTags) WithArrayOfValues(values [][]string) *NotificationChannel_FieldSubPathArrayOfValues { 229 return s.FieldPath().WithIArrayOfValues(values).(*NotificationChannel_FieldSubPathArrayOfValues) 230 } 231 232 func (s NotificationChannelPathSelectorMetadataTags) WithItemValue(value string) *NotificationChannel_FieldSubPathArrayItemValue { 233 return s.FieldPath().WithIArrayItemValue(value).(*NotificationChannel_FieldSubPathArrayItemValue) 234 } 235 236 type NotificationChannelPathSelectorMetadataLabels struct{} 237 238 func (NotificationChannelPathSelectorMetadataLabels) FieldPath() *NotificationChannel_FieldSubPath { 239 return &NotificationChannel_FieldSubPath{ 240 selector: NotificationChannel_FieldPathSelectorMetadata, 241 subPath: meta.NewMetaFieldPathBuilder().Labels().FieldPath(), 242 } 243 } 244 245 func (s NotificationChannelPathSelectorMetadataLabels) WithValue(value map[string]string) *NotificationChannel_FieldSubPathValue { 246 return s.FieldPath().WithIValue(value).(*NotificationChannel_FieldSubPathValue) 247 } 248 249 func (s NotificationChannelPathSelectorMetadataLabels) WithArrayOfValues(values []map[string]string) *NotificationChannel_FieldSubPathArrayOfValues { 250 return s.FieldPath().WithIArrayOfValues(values).(*NotificationChannel_FieldSubPathArrayOfValues) 251 } 252 253 func (NotificationChannelPathSelectorMetadataLabels) WithKey(key string) NotificationChannelMapPathSelectorMetadataLabels { 254 return NotificationChannelMapPathSelectorMetadataLabels{key: key} 255 } 256 257 type NotificationChannelMapPathSelectorMetadataLabels struct { 258 key string 259 } 260 261 func (s NotificationChannelMapPathSelectorMetadataLabels) FieldPath() *NotificationChannel_FieldSubPath { 262 return &NotificationChannel_FieldSubPath{ 263 selector: NotificationChannel_FieldPathSelectorMetadata, 264 subPath: meta.NewMetaFieldPathBuilder().Labels().WithKey(s.key).FieldPath(), 265 } 266 } 267 268 func (s NotificationChannelMapPathSelectorMetadataLabels) WithValue(value string) *NotificationChannel_FieldSubPathValue { 269 return s.FieldPath().WithIValue(value).(*NotificationChannel_FieldSubPathValue) 270 } 271 272 func (s NotificationChannelMapPathSelectorMetadataLabels) WithArrayOfValues(values []string) *NotificationChannel_FieldSubPathArrayOfValues { 273 return s.FieldPath().WithIArrayOfValues(values).(*NotificationChannel_FieldSubPathArrayOfValues) 274 } 275 276 type NotificationChannelPathSelectorMetadataAnnotations struct{} 277 278 func (NotificationChannelPathSelectorMetadataAnnotations) FieldPath() *NotificationChannel_FieldSubPath { 279 return &NotificationChannel_FieldSubPath{ 280 selector: NotificationChannel_FieldPathSelectorMetadata, 281 subPath: meta.NewMetaFieldPathBuilder().Annotations().FieldPath(), 282 } 283 } 284 285 func (s NotificationChannelPathSelectorMetadataAnnotations) WithValue(value map[string]string) *NotificationChannel_FieldSubPathValue { 286 return s.FieldPath().WithIValue(value).(*NotificationChannel_FieldSubPathValue) 287 } 288 289 func (s NotificationChannelPathSelectorMetadataAnnotations) WithArrayOfValues(values []map[string]string) *NotificationChannel_FieldSubPathArrayOfValues { 290 return s.FieldPath().WithIArrayOfValues(values).(*NotificationChannel_FieldSubPathArrayOfValues) 291 } 292 293 func (NotificationChannelPathSelectorMetadataAnnotations) WithKey(key string) NotificationChannelMapPathSelectorMetadataAnnotations { 294 return NotificationChannelMapPathSelectorMetadataAnnotations{key: key} 295 } 296 297 type NotificationChannelMapPathSelectorMetadataAnnotations struct { 298 key string 299 } 300 301 func (s NotificationChannelMapPathSelectorMetadataAnnotations) FieldPath() *NotificationChannel_FieldSubPath { 302 return &NotificationChannel_FieldSubPath{ 303 selector: NotificationChannel_FieldPathSelectorMetadata, 304 subPath: meta.NewMetaFieldPathBuilder().Annotations().WithKey(s.key).FieldPath(), 305 } 306 } 307 308 func (s NotificationChannelMapPathSelectorMetadataAnnotations) WithValue(value string) *NotificationChannel_FieldSubPathValue { 309 return s.FieldPath().WithIValue(value).(*NotificationChannel_FieldSubPathValue) 310 } 311 312 func (s NotificationChannelMapPathSelectorMetadataAnnotations) WithArrayOfValues(values []string) *NotificationChannel_FieldSubPathArrayOfValues { 313 return s.FieldPath().WithIArrayOfValues(values).(*NotificationChannel_FieldSubPathArrayOfValues) 314 } 315 316 type NotificationChannelPathSelectorMetadataGeneration struct{} 317 318 func (NotificationChannelPathSelectorMetadataGeneration) FieldPath() *NotificationChannel_FieldSubPath { 319 return &NotificationChannel_FieldSubPath{ 320 selector: NotificationChannel_FieldPathSelectorMetadata, 321 subPath: meta.NewMetaFieldPathBuilder().Generation().FieldPath(), 322 } 323 } 324 325 func (s NotificationChannelPathSelectorMetadataGeneration) WithValue(value int64) *NotificationChannel_FieldSubPathValue { 326 return s.FieldPath().WithIValue(value).(*NotificationChannel_FieldSubPathValue) 327 } 328 329 func (s NotificationChannelPathSelectorMetadataGeneration) WithArrayOfValues(values []int64) *NotificationChannel_FieldSubPathArrayOfValues { 330 return s.FieldPath().WithIArrayOfValues(values).(*NotificationChannel_FieldSubPathArrayOfValues) 331 } 332 333 type NotificationChannelPathSelectorMetadataResourceVersion struct{} 334 335 func (NotificationChannelPathSelectorMetadataResourceVersion) FieldPath() *NotificationChannel_FieldSubPath { 336 return &NotificationChannel_FieldSubPath{ 337 selector: NotificationChannel_FieldPathSelectorMetadata, 338 subPath: meta.NewMetaFieldPathBuilder().ResourceVersion().FieldPath(), 339 } 340 } 341 342 func (s NotificationChannelPathSelectorMetadataResourceVersion) WithValue(value string) *NotificationChannel_FieldSubPathValue { 343 return s.FieldPath().WithIValue(value).(*NotificationChannel_FieldSubPathValue) 344 } 345 346 func (s NotificationChannelPathSelectorMetadataResourceVersion) WithArrayOfValues(values []string) *NotificationChannel_FieldSubPathArrayOfValues { 347 return s.FieldPath().WithIArrayOfValues(values).(*NotificationChannel_FieldSubPathArrayOfValues) 348 } 349 350 type NotificationChannelPathSelectorMetadataOwnerReferences struct{} 351 352 func (NotificationChannelPathSelectorMetadataOwnerReferences) FieldPath() *NotificationChannel_FieldSubPath { 353 return &NotificationChannel_FieldSubPath{ 354 selector: NotificationChannel_FieldPathSelectorMetadata, 355 subPath: meta.NewMetaFieldPathBuilder().OwnerReferences().FieldPath(), 356 } 357 } 358 359 func (s NotificationChannelPathSelectorMetadataOwnerReferences) WithValue(value []*meta.OwnerReference) *NotificationChannel_FieldSubPathValue { 360 return s.FieldPath().WithIValue(value).(*NotificationChannel_FieldSubPathValue) 361 } 362 363 func (s NotificationChannelPathSelectorMetadataOwnerReferences) WithArrayOfValues(values [][]*meta.OwnerReference) *NotificationChannel_FieldSubPathArrayOfValues { 364 return s.FieldPath().WithIArrayOfValues(values).(*NotificationChannel_FieldSubPathArrayOfValues) 365 } 366 367 func (s NotificationChannelPathSelectorMetadataOwnerReferences) WithItemValue(value *meta.OwnerReference) *NotificationChannel_FieldSubPathArrayItemValue { 368 return s.FieldPath().WithIArrayItemValue(value).(*NotificationChannel_FieldSubPathArrayItemValue) 369 } 370 371 func (NotificationChannelPathSelectorMetadataOwnerReferences) Kind() NotificationChannelPathSelectorMetadataOwnerReferencesKind { 372 return NotificationChannelPathSelectorMetadataOwnerReferencesKind{} 373 } 374 375 func (NotificationChannelPathSelectorMetadataOwnerReferences) Version() NotificationChannelPathSelectorMetadataOwnerReferencesVersion { 376 return NotificationChannelPathSelectorMetadataOwnerReferencesVersion{} 377 } 378 379 func (NotificationChannelPathSelectorMetadataOwnerReferences) Name() NotificationChannelPathSelectorMetadataOwnerReferencesName { 380 return NotificationChannelPathSelectorMetadataOwnerReferencesName{} 381 } 382 383 func (NotificationChannelPathSelectorMetadataOwnerReferences) Region() NotificationChannelPathSelectorMetadataOwnerReferencesRegion { 384 return NotificationChannelPathSelectorMetadataOwnerReferencesRegion{} 385 } 386 387 func (NotificationChannelPathSelectorMetadataOwnerReferences) Controller() NotificationChannelPathSelectorMetadataOwnerReferencesController { 388 return NotificationChannelPathSelectorMetadataOwnerReferencesController{} 389 } 390 391 func (NotificationChannelPathSelectorMetadataOwnerReferences) RequiresOwnerReference() NotificationChannelPathSelectorMetadataOwnerReferencesRequiresOwnerReference { 392 return NotificationChannelPathSelectorMetadataOwnerReferencesRequiresOwnerReference{} 393 } 394 395 func (NotificationChannelPathSelectorMetadataOwnerReferences) UnsetOnDelete() NotificationChannelPathSelectorMetadataOwnerReferencesUnsetOnDelete { 396 return NotificationChannelPathSelectorMetadataOwnerReferencesUnsetOnDelete{} 397 } 398 399 type NotificationChannelPathSelectorMetadataOwnerReferencesKind struct{} 400 401 func (NotificationChannelPathSelectorMetadataOwnerReferencesKind) FieldPath() *NotificationChannel_FieldSubPath { 402 return &NotificationChannel_FieldSubPath{ 403 selector: NotificationChannel_FieldPathSelectorMetadata, 404 subPath: meta.NewMetaFieldPathBuilder().OwnerReferences().Kind().FieldPath(), 405 } 406 } 407 408 func (s NotificationChannelPathSelectorMetadataOwnerReferencesKind) WithValue(value string) *NotificationChannel_FieldSubPathValue { 409 return s.FieldPath().WithIValue(value).(*NotificationChannel_FieldSubPathValue) 410 } 411 412 func (s NotificationChannelPathSelectorMetadataOwnerReferencesKind) WithArrayOfValues(values []string) *NotificationChannel_FieldSubPathArrayOfValues { 413 return s.FieldPath().WithIArrayOfValues(values).(*NotificationChannel_FieldSubPathArrayOfValues) 414 } 415 416 type NotificationChannelPathSelectorMetadataOwnerReferencesVersion struct{} 417 418 func (NotificationChannelPathSelectorMetadataOwnerReferencesVersion) FieldPath() *NotificationChannel_FieldSubPath { 419 return &NotificationChannel_FieldSubPath{ 420 selector: NotificationChannel_FieldPathSelectorMetadata, 421 subPath: meta.NewMetaFieldPathBuilder().OwnerReferences().Version().FieldPath(), 422 } 423 } 424 425 func (s NotificationChannelPathSelectorMetadataOwnerReferencesVersion) WithValue(value string) *NotificationChannel_FieldSubPathValue { 426 return s.FieldPath().WithIValue(value).(*NotificationChannel_FieldSubPathValue) 427 } 428 429 func (s NotificationChannelPathSelectorMetadataOwnerReferencesVersion) WithArrayOfValues(values []string) *NotificationChannel_FieldSubPathArrayOfValues { 430 return s.FieldPath().WithIArrayOfValues(values).(*NotificationChannel_FieldSubPathArrayOfValues) 431 } 432 433 type NotificationChannelPathSelectorMetadataOwnerReferencesName struct{} 434 435 func (NotificationChannelPathSelectorMetadataOwnerReferencesName) FieldPath() *NotificationChannel_FieldSubPath { 436 return &NotificationChannel_FieldSubPath{ 437 selector: NotificationChannel_FieldPathSelectorMetadata, 438 subPath: meta.NewMetaFieldPathBuilder().OwnerReferences().Name().FieldPath(), 439 } 440 } 441 442 func (s NotificationChannelPathSelectorMetadataOwnerReferencesName) WithValue(value string) *NotificationChannel_FieldSubPathValue { 443 return s.FieldPath().WithIValue(value).(*NotificationChannel_FieldSubPathValue) 444 } 445 446 func (s NotificationChannelPathSelectorMetadataOwnerReferencesName) WithArrayOfValues(values []string) *NotificationChannel_FieldSubPathArrayOfValues { 447 return s.FieldPath().WithIArrayOfValues(values).(*NotificationChannel_FieldSubPathArrayOfValues) 448 } 449 450 type NotificationChannelPathSelectorMetadataOwnerReferencesRegion struct{} 451 452 func (NotificationChannelPathSelectorMetadataOwnerReferencesRegion) FieldPath() *NotificationChannel_FieldSubPath { 453 return &NotificationChannel_FieldSubPath{ 454 selector: NotificationChannel_FieldPathSelectorMetadata, 455 subPath: meta.NewMetaFieldPathBuilder().OwnerReferences().Region().FieldPath(), 456 } 457 } 458 459 func (s NotificationChannelPathSelectorMetadataOwnerReferencesRegion) WithValue(value string) *NotificationChannel_FieldSubPathValue { 460 return s.FieldPath().WithIValue(value).(*NotificationChannel_FieldSubPathValue) 461 } 462 463 func (s NotificationChannelPathSelectorMetadataOwnerReferencesRegion) WithArrayOfValues(values []string) *NotificationChannel_FieldSubPathArrayOfValues { 464 return s.FieldPath().WithIArrayOfValues(values).(*NotificationChannel_FieldSubPathArrayOfValues) 465 } 466 467 type NotificationChannelPathSelectorMetadataOwnerReferencesController struct{} 468 469 func (NotificationChannelPathSelectorMetadataOwnerReferencesController) FieldPath() *NotificationChannel_FieldSubPath { 470 return &NotificationChannel_FieldSubPath{ 471 selector: NotificationChannel_FieldPathSelectorMetadata, 472 subPath: meta.NewMetaFieldPathBuilder().OwnerReferences().Controller().FieldPath(), 473 } 474 } 475 476 func (s NotificationChannelPathSelectorMetadataOwnerReferencesController) WithValue(value bool) *NotificationChannel_FieldSubPathValue { 477 return s.FieldPath().WithIValue(value).(*NotificationChannel_FieldSubPathValue) 478 } 479 480 func (s NotificationChannelPathSelectorMetadataOwnerReferencesController) WithArrayOfValues(values []bool) *NotificationChannel_FieldSubPathArrayOfValues { 481 return s.FieldPath().WithIArrayOfValues(values).(*NotificationChannel_FieldSubPathArrayOfValues) 482 } 483 484 type NotificationChannelPathSelectorMetadataOwnerReferencesRequiresOwnerReference struct{} 485 486 func (NotificationChannelPathSelectorMetadataOwnerReferencesRequiresOwnerReference) FieldPath() *NotificationChannel_FieldSubPath { 487 return &NotificationChannel_FieldSubPath{ 488 selector: NotificationChannel_FieldPathSelectorMetadata, 489 subPath: meta.NewMetaFieldPathBuilder().OwnerReferences().RequiresOwnerReference().FieldPath(), 490 } 491 } 492 493 func (s NotificationChannelPathSelectorMetadataOwnerReferencesRequiresOwnerReference) WithValue(value bool) *NotificationChannel_FieldSubPathValue { 494 return s.FieldPath().WithIValue(value).(*NotificationChannel_FieldSubPathValue) 495 } 496 497 func (s NotificationChannelPathSelectorMetadataOwnerReferencesRequiresOwnerReference) WithArrayOfValues(values []bool) *NotificationChannel_FieldSubPathArrayOfValues { 498 return s.FieldPath().WithIArrayOfValues(values).(*NotificationChannel_FieldSubPathArrayOfValues) 499 } 500 501 type NotificationChannelPathSelectorMetadataOwnerReferencesUnsetOnDelete struct{} 502 503 func (NotificationChannelPathSelectorMetadataOwnerReferencesUnsetOnDelete) FieldPath() *NotificationChannel_FieldSubPath { 504 return &NotificationChannel_FieldSubPath{ 505 selector: NotificationChannel_FieldPathSelectorMetadata, 506 subPath: meta.NewMetaFieldPathBuilder().OwnerReferences().UnsetOnDelete().FieldPath(), 507 } 508 } 509 510 func (s NotificationChannelPathSelectorMetadataOwnerReferencesUnsetOnDelete) WithValue(value bool) *NotificationChannel_FieldSubPathValue { 511 return s.FieldPath().WithIValue(value).(*NotificationChannel_FieldSubPathValue) 512 } 513 514 func (s NotificationChannelPathSelectorMetadataOwnerReferencesUnsetOnDelete) WithArrayOfValues(values []bool) *NotificationChannel_FieldSubPathArrayOfValues { 515 return s.FieldPath().WithIArrayOfValues(values).(*NotificationChannel_FieldSubPathArrayOfValues) 516 } 517 518 type NotificationChannelPathSelectorMetadataShards struct{} 519 520 func (NotificationChannelPathSelectorMetadataShards) FieldPath() *NotificationChannel_FieldSubPath { 521 return &NotificationChannel_FieldSubPath{ 522 selector: NotificationChannel_FieldPathSelectorMetadata, 523 subPath: meta.NewMetaFieldPathBuilder().Shards().FieldPath(), 524 } 525 } 526 527 func (s NotificationChannelPathSelectorMetadataShards) WithValue(value map[string]int64) *NotificationChannel_FieldSubPathValue { 528 return s.FieldPath().WithIValue(value).(*NotificationChannel_FieldSubPathValue) 529 } 530 531 func (s NotificationChannelPathSelectorMetadataShards) WithArrayOfValues(values []map[string]int64) *NotificationChannel_FieldSubPathArrayOfValues { 532 return s.FieldPath().WithIArrayOfValues(values).(*NotificationChannel_FieldSubPathArrayOfValues) 533 } 534 535 func (NotificationChannelPathSelectorMetadataShards) WithKey(key string) NotificationChannelMapPathSelectorMetadataShards { 536 return NotificationChannelMapPathSelectorMetadataShards{key: key} 537 } 538 539 type NotificationChannelMapPathSelectorMetadataShards struct { 540 key string 541 } 542 543 func (s NotificationChannelMapPathSelectorMetadataShards) FieldPath() *NotificationChannel_FieldSubPath { 544 return &NotificationChannel_FieldSubPath{ 545 selector: NotificationChannel_FieldPathSelectorMetadata, 546 subPath: meta.NewMetaFieldPathBuilder().Shards().WithKey(s.key).FieldPath(), 547 } 548 } 549 550 func (s NotificationChannelMapPathSelectorMetadataShards) WithValue(value int64) *NotificationChannel_FieldSubPathValue { 551 return s.FieldPath().WithIValue(value).(*NotificationChannel_FieldSubPathValue) 552 } 553 554 func (s NotificationChannelMapPathSelectorMetadataShards) WithArrayOfValues(values []int64) *NotificationChannel_FieldSubPathArrayOfValues { 555 return s.FieldPath().WithIArrayOfValues(values).(*NotificationChannel_FieldSubPathArrayOfValues) 556 } 557 558 type NotificationChannelPathSelectorMetadataSyncing struct{} 559 560 func (NotificationChannelPathSelectorMetadataSyncing) FieldPath() *NotificationChannel_FieldSubPath { 561 return &NotificationChannel_FieldSubPath{ 562 selector: NotificationChannel_FieldPathSelectorMetadata, 563 subPath: meta.NewMetaFieldPathBuilder().Syncing().FieldPath(), 564 } 565 } 566 567 func (s NotificationChannelPathSelectorMetadataSyncing) WithValue(value *meta.SyncingMeta) *NotificationChannel_FieldSubPathValue { 568 return s.FieldPath().WithIValue(value).(*NotificationChannel_FieldSubPathValue) 569 } 570 571 func (s NotificationChannelPathSelectorMetadataSyncing) WithArrayOfValues(values []*meta.SyncingMeta) *NotificationChannel_FieldSubPathArrayOfValues { 572 return s.FieldPath().WithIArrayOfValues(values).(*NotificationChannel_FieldSubPathArrayOfValues) 573 } 574 575 func (NotificationChannelPathSelectorMetadataSyncing) OwningRegion() NotificationChannelPathSelectorMetadataSyncingOwningRegion { 576 return NotificationChannelPathSelectorMetadataSyncingOwningRegion{} 577 } 578 579 func (NotificationChannelPathSelectorMetadataSyncing) Regions() NotificationChannelPathSelectorMetadataSyncingRegions { 580 return NotificationChannelPathSelectorMetadataSyncingRegions{} 581 } 582 583 type NotificationChannelPathSelectorMetadataSyncingOwningRegion struct{} 584 585 func (NotificationChannelPathSelectorMetadataSyncingOwningRegion) FieldPath() *NotificationChannel_FieldSubPath { 586 return &NotificationChannel_FieldSubPath{ 587 selector: NotificationChannel_FieldPathSelectorMetadata, 588 subPath: meta.NewMetaFieldPathBuilder().Syncing().OwningRegion().FieldPath(), 589 } 590 } 591 592 func (s NotificationChannelPathSelectorMetadataSyncingOwningRegion) WithValue(value string) *NotificationChannel_FieldSubPathValue { 593 return s.FieldPath().WithIValue(value).(*NotificationChannel_FieldSubPathValue) 594 } 595 596 func (s NotificationChannelPathSelectorMetadataSyncingOwningRegion) WithArrayOfValues(values []string) *NotificationChannel_FieldSubPathArrayOfValues { 597 return s.FieldPath().WithIArrayOfValues(values).(*NotificationChannel_FieldSubPathArrayOfValues) 598 } 599 600 type NotificationChannelPathSelectorMetadataSyncingRegions struct{} 601 602 func (NotificationChannelPathSelectorMetadataSyncingRegions) FieldPath() *NotificationChannel_FieldSubPath { 603 return &NotificationChannel_FieldSubPath{ 604 selector: NotificationChannel_FieldPathSelectorMetadata, 605 subPath: meta.NewMetaFieldPathBuilder().Syncing().Regions().FieldPath(), 606 } 607 } 608 609 func (s NotificationChannelPathSelectorMetadataSyncingRegions) WithValue(value []string) *NotificationChannel_FieldSubPathValue { 610 return s.FieldPath().WithIValue(value).(*NotificationChannel_FieldSubPathValue) 611 } 612 613 func (s NotificationChannelPathSelectorMetadataSyncingRegions) WithArrayOfValues(values [][]string) *NotificationChannel_FieldSubPathArrayOfValues { 614 return s.FieldPath().WithIArrayOfValues(values).(*NotificationChannel_FieldSubPathArrayOfValues) 615 } 616 617 func (s NotificationChannelPathSelectorMetadataSyncingRegions) WithItemValue(value string) *NotificationChannel_FieldSubPathArrayItemValue { 618 return s.FieldPath().WithIArrayItemValue(value).(*NotificationChannel_FieldSubPathArrayItemValue) 619 } 620 621 type NotificationChannelPathSelectorMetadataLifecycle struct{} 622 623 func (NotificationChannelPathSelectorMetadataLifecycle) FieldPath() *NotificationChannel_FieldSubPath { 624 return &NotificationChannel_FieldSubPath{ 625 selector: NotificationChannel_FieldPathSelectorMetadata, 626 subPath: meta.NewMetaFieldPathBuilder().Lifecycle().FieldPath(), 627 } 628 } 629 630 func (s NotificationChannelPathSelectorMetadataLifecycle) WithValue(value *meta.Lifecycle) *NotificationChannel_FieldSubPathValue { 631 return s.FieldPath().WithIValue(value).(*NotificationChannel_FieldSubPathValue) 632 } 633 634 func (s NotificationChannelPathSelectorMetadataLifecycle) WithArrayOfValues(values []*meta.Lifecycle) *NotificationChannel_FieldSubPathArrayOfValues { 635 return s.FieldPath().WithIArrayOfValues(values).(*NotificationChannel_FieldSubPathArrayOfValues) 636 } 637 638 func (NotificationChannelPathSelectorMetadataLifecycle) State() NotificationChannelPathSelectorMetadataLifecycleState { 639 return NotificationChannelPathSelectorMetadataLifecycleState{} 640 } 641 642 func (NotificationChannelPathSelectorMetadataLifecycle) BlockDeletion() NotificationChannelPathSelectorMetadataLifecycleBlockDeletion { 643 return NotificationChannelPathSelectorMetadataLifecycleBlockDeletion{} 644 } 645 646 type NotificationChannelPathSelectorMetadataLifecycleState struct{} 647 648 func (NotificationChannelPathSelectorMetadataLifecycleState) FieldPath() *NotificationChannel_FieldSubPath { 649 return &NotificationChannel_FieldSubPath{ 650 selector: NotificationChannel_FieldPathSelectorMetadata, 651 subPath: meta.NewMetaFieldPathBuilder().Lifecycle().State().FieldPath(), 652 } 653 } 654 655 func (s NotificationChannelPathSelectorMetadataLifecycleState) WithValue(value meta.Lifecycle_State) *NotificationChannel_FieldSubPathValue { 656 return s.FieldPath().WithIValue(value).(*NotificationChannel_FieldSubPathValue) 657 } 658 659 func (s NotificationChannelPathSelectorMetadataLifecycleState) WithArrayOfValues(values []meta.Lifecycle_State) *NotificationChannel_FieldSubPathArrayOfValues { 660 return s.FieldPath().WithIArrayOfValues(values).(*NotificationChannel_FieldSubPathArrayOfValues) 661 } 662 663 type NotificationChannelPathSelectorMetadataLifecycleBlockDeletion struct{} 664 665 func (NotificationChannelPathSelectorMetadataLifecycleBlockDeletion) FieldPath() *NotificationChannel_FieldSubPath { 666 return &NotificationChannel_FieldSubPath{ 667 selector: NotificationChannel_FieldPathSelectorMetadata, 668 subPath: meta.NewMetaFieldPathBuilder().Lifecycle().BlockDeletion().FieldPath(), 669 } 670 } 671 672 func (s NotificationChannelPathSelectorMetadataLifecycleBlockDeletion) WithValue(value bool) *NotificationChannel_FieldSubPathValue { 673 return s.FieldPath().WithIValue(value).(*NotificationChannel_FieldSubPathValue) 674 } 675 676 func (s NotificationChannelPathSelectorMetadataLifecycleBlockDeletion) WithArrayOfValues(values []bool) *NotificationChannel_FieldSubPathArrayOfValues { 677 return s.FieldPath().WithIArrayOfValues(values).(*NotificationChannel_FieldSubPathArrayOfValues) 678 } 679 680 type NotificationChannelPathSelectorMetadataServices struct{} 681 682 func (NotificationChannelPathSelectorMetadataServices) FieldPath() *NotificationChannel_FieldSubPath { 683 return &NotificationChannel_FieldSubPath{ 684 selector: NotificationChannel_FieldPathSelectorMetadata, 685 subPath: meta.NewMetaFieldPathBuilder().Services().FieldPath(), 686 } 687 } 688 689 func (s NotificationChannelPathSelectorMetadataServices) WithValue(value *meta.ServicesInfo) *NotificationChannel_FieldSubPathValue { 690 return s.FieldPath().WithIValue(value).(*NotificationChannel_FieldSubPathValue) 691 } 692 693 func (s NotificationChannelPathSelectorMetadataServices) WithArrayOfValues(values []*meta.ServicesInfo) *NotificationChannel_FieldSubPathArrayOfValues { 694 return s.FieldPath().WithIArrayOfValues(values).(*NotificationChannel_FieldSubPathArrayOfValues) 695 } 696 697 func (NotificationChannelPathSelectorMetadataServices) OwningService() NotificationChannelPathSelectorMetadataServicesOwningService { 698 return NotificationChannelPathSelectorMetadataServicesOwningService{} 699 } 700 701 func (NotificationChannelPathSelectorMetadataServices) AllowedServices() NotificationChannelPathSelectorMetadataServicesAllowedServices { 702 return NotificationChannelPathSelectorMetadataServicesAllowedServices{} 703 } 704 705 type NotificationChannelPathSelectorMetadataServicesOwningService struct{} 706 707 func (NotificationChannelPathSelectorMetadataServicesOwningService) FieldPath() *NotificationChannel_FieldSubPath { 708 return &NotificationChannel_FieldSubPath{ 709 selector: NotificationChannel_FieldPathSelectorMetadata, 710 subPath: meta.NewMetaFieldPathBuilder().Services().OwningService().FieldPath(), 711 } 712 } 713 714 func (s NotificationChannelPathSelectorMetadataServicesOwningService) WithValue(value string) *NotificationChannel_FieldSubPathValue { 715 return s.FieldPath().WithIValue(value).(*NotificationChannel_FieldSubPathValue) 716 } 717 718 func (s NotificationChannelPathSelectorMetadataServicesOwningService) WithArrayOfValues(values []string) *NotificationChannel_FieldSubPathArrayOfValues { 719 return s.FieldPath().WithIArrayOfValues(values).(*NotificationChannel_FieldSubPathArrayOfValues) 720 } 721 722 type NotificationChannelPathSelectorMetadataServicesAllowedServices struct{} 723 724 func (NotificationChannelPathSelectorMetadataServicesAllowedServices) FieldPath() *NotificationChannel_FieldSubPath { 725 return &NotificationChannel_FieldSubPath{ 726 selector: NotificationChannel_FieldPathSelectorMetadata, 727 subPath: meta.NewMetaFieldPathBuilder().Services().AllowedServices().FieldPath(), 728 } 729 } 730 731 func (s NotificationChannelPathSelectorMetadataServicesAllowedServices) WithValue(value []string) *NotificationChannel_FieldSubPathValue { 732 return s.FieldPath().WithIValue(value).(*NotificationChannel_FieldSubPathValue) 733 } 734 735 func (s NotificationChannelPathSelectorMetadataServicesAllowedServices) WithArrayOfValues(values [][]string) *NotificationChannel_FieldSubPathArrayOfValues { 736 return s.FieldPath().WithIArrayOfValues(values).(*NotificationChannel_FieldSubPathArrayOfValues) 737 } 738 739 func (s NotificationChannelPathSelectorMetadataServicesAllowedServices) WithItemValue(value string) *NotificationChannel_FieldSubPathArrayItemValue { 740 return s.FieldPath().WithIArrayItemValue(value).(*NotificationChannel_FieldSubPathArrayItemValue) 741 } 742 743 type NotificationChannelPathSelectorDisplayName struct{} 744 745 func (NotificationChannelPathSelectorDisplayName) FieldPath() *NotificationChannel_FieldTerminalPath { 746 return &NotificationChannel_FieldTerminalPath{selector: NotificationChannel_FieldPathSelectorDisplayName} 747 } 748 749 func (s NotificationChannelPathSelectorDisplayName) WithValue(value string) *NotificationChannel_FieldTerminalPathValue { 750 return s.FieldPath().WithIValue(value).(*NotificationChannel_FieldTerminalPathValue) 751 } 752 753 func (s NotificationChannelPathSelectorDisplayName) WithArrayOfValues(values []string) *NotificationChannel_FieldTerminalPathArrayOfValues { 754 return s.FieldPath().WithIArrayOfValues(values).(*NotificationChannel_FieldTerminalPathArrayOfValues) 755 } 756 757 type NotificationChannelPathSelectorSpec struct{} 758 759 func (NotificationChannelPathSelectorSpec) FieldPath() *NotificationChannel_FieldTerminalPath { 760 return &NotificationChannel_FieldTerminalPath{selector: NotificationChannel_FieldPathSelectorSpec} 761 } 762 763 func (s NotificationChannelPathSelectorSpec) WithValue(value *NotificationChannel_Spec) *NotificationChannel_FieldTerminalPathValue { 764 return s.FieldPath().WithIValue(value).(*NotificationChannel_FieldTerminalPathValue) 765 } 766 767 func (s NotificationChannelPathSelectorSpec) WithArrayOfValues(values []*NotificationChannel_Spec) *NotificationChannel_FieldTerminalPathArrayOfValues { 768 return s.FieldPath().WithIArrayOfValues(values).(*NotificationChannel_FieldTerminalPathArrayOfValues) 769 } 770 771 func (NotificationChannelPathSelectorSpec) WithSubPath(subPath NotificationChannelSpec_FieldPath) *NotificationChannel_FieldSubPath { 772 return &NotificationChannel_FieldSubPath{selector: NotificationChannel_FieldPathSelectorSpec, subPath: subPath} 773 } 774 775 func (s NotificationChannelPathSelectorSpec) WithSubValue(subPathValue NotificationChannelSpec_FieldPathValue) *NotificationChannel_FieldSubPathValue { 776 return &NotificationChannel_FieldSubPathValue{NotificationChannel_FieldPath: s.WithSubPath(subPathValue), subPathValue: subPathValue} 777 } 778 779 func (s NotificationChannelPathSelectorSpec) WithSubArrayOfValues(subPathArrayOfValues NotificationChannelSpec_FieldPathArrayOfValues) *NotificationChannel_FieldSubPathArrayOfValues { 780 return &NotificationChannel_FieldSubPathArrayOfValues{NotificationChannel_FieldPath: s.WithSubPath(subPathArrayOfValues), subPathArrayOfValues: subPathArrayOfValues} 781 } 782 783 func (s NotificationChannelPathSelectorSpec) WithSubArrayItemValue(subPathArrayItemValue NotificationChannelSpec_FieldPathArrayItemValue) *NotificationChannel_FieldSubPathArrayItemValue { 784 return &NotificationChannel_FieldSubPathArrayItemValue{NotificationChannel_FieldPath: s.WithSubPath(subPathArrayItemValue), subPathItemValue: subPathArrayItemValue} 785 } 786 787 func (NotificationChannelPathSelectorSpec) Enabled() NotificationChannelPathSelectorSpecEnabled { 788 return NotificationChannelPathSelectorSpecEnabled{} 789 } 790 791 func (NotificationChannelPathSelectorSpec) Type() NotificationChannelPathSelectorSpecType { 792 return NotificationChannelPathSelectorSpecType{} 793 } 794 795 func (NotificationChannelPathSelectorSpec) Email() NotificationChannelPathSelectorSpecEmail { 796 return NotificationChannelPathSelectorSpecEmail{} 797 } 798 799 func (NotificationChannelPathSelectorSpec) Slack() NotificationChannelPathSelectorSpecSlack { 800 return NotificationChannelPathSelectorSpecSlack{} 801 } 802 803 func (NotificationChannelPathSelectorSpec) Webhook() NotificationChannelPathSelectorSpecWebhook { 804 return NotificationChannelPathSelectorSpecWebhook{} 805 } 806 807 func (NotificationChannelPathSelectorSpec) NotificationLanguageCode() NotificationChannelPathSelectorSpecNotificationLanguageCode { 808 return NotificationChannelPathSelectorSpecNotificationLanguageCode{} 809 } 810 811 type NotificationChannelPathSelectorSpecEnabled struct{} 812 813 func (NotificationChannelPathSelectorSpecEnabled) FieldPath() *NotificationChannel_FieldSubPath { 814 return &NotificationChannel_FieldSubPath{ 815 selector: NotificationChannel_FieldPathSelectorSpec, 816 subPath: NewNotificationChannelSpecFieldPathBuilder().Enabled().FieldPath(), 817 } 818 } 819 820 func (s NotificationChannelPathSelectorSpecEnabled) WithValue(value bool) *NotificationChannel_FieldSubPathValue { 821 return s.FieldPath().WithIValue(value).(*NotificationChannel_FieldSubPathValue) 822 } 823 824 func (s NotificationChannelPathSelectorSpecEnabled) WithArrayOfValues(values []bool) *NotificationChannel_FieldSubPathArrayOfValues { 825 return s.FieldPath().WithIArrayOfValues(values).(*NotificationChannel_FieldSubPathArrayOfValues) 826 } 827 828 type NotificationChannelPathSelectorSpecType struct{} 829 830 func (NotificationChannelPathSelectorSpecType) FieldPath() *NotificationChannel_FieldSubPath { 831 return &NotificationChannel_FieldSubPath{ 832 selector: NotificationChannel_FieldPathSelectorSpec, 833 subPath: NewNotificationChannelSpecFieldPathBuilder().Type().FieldPath(), 834 } 835 } 836 837 func (s NotificationChannelPathSelectorSpecType) WithValue(value NotificationChannel_Spec_Type) *NotificationChannel_FieldSubPathValue { 838 return s.FieldPath().WithIValue(value).(*NotificationChannel_FieldSubPathValue) 839 } 840 841 func (s NotificationChannelPathSelectorSpecType) WithArrayOfValues(values []NotificationChannel_Spec_Type) *NotificationChannel_FieldSubPathArrayOfValues { 842 return s.FieldPath().WithIArrayOfValues(values).(*NotificationChannel_FieldSubPathArrayOfValues) 843 } 844 845 type NotificationChannelPathSelectorSpecEmail struct{} 846 847 func (NotificationChannelPathSelectorSpecEmail) FieldPath() *NotificationChannel_FieldSubPath { 848 return &NotificationChannel_FieldSubPath{ 849 selector: NotificationChannel_FieldPathSelectorSpec, 850 subPath: NewNotificationChannelSpecFieldPathBuilder().Email().FieldPath(), 851 } 852 } 853 854 func (s NotificationChannelPathSelectorSpecEmail) WithValue(value *NotificationChannel_Spec_Email) *NotificationChannel_FieldSubPathValue { 855 return s.FieldPath().WithIValue(value).(*NotificationChannel_FieldSubPathValue) 856 } 857 858 func (s NotificationChannelPathSelectorSpecEmail) WithArrayOfValues(values []*NotificationChannel_Spec_Email) *NotificationChannel_FieldSubPathArrayOfValues { 859 return s.FieldPath().WithIArrayOfValues(values).(*NotificationChannel_FieldSubPathArrayOfValues) 860 } 861 862 func (NotificationChannelPathSelectorSpecEmail) Addresses() NotificationChannelPathSelectorSpecEmailAddresses { 863 return NotificationChannelPathSelectorSpecEmailAddresses{} 864 } 865 866 type NotificationChannelPathSelectorSpecEmailAddresses struct{} 867 868 func (NotificationChannelPathSelectorSpecEmailAddresses) FieldPath() *NotificationChannel_FieldSubPath { 869 return &NotificationChannel_FieldSubPath{ 870 selector: NotificationChannel_FieldPathSelectorSpec, 871 subPath: NewNotificationChannelSpecFieldPathBuilder().Email().Addresses().FieldPath(), 872 } 873 } 874 875 func (s NotificationChannelPathSelectorSpecEmailAddresses) WithValue(value []string) *NotificationChannel_FieldSubPathValue { 876 return s.FieldPath().WithIValue(value).(*NotificationChannel_FieldSubPathValue) 877 } 878 879 func (s NotificationChannelPathSelectorSpecEmailAddresses) WithArrayOfValues(values [][]string) *NotificationChannel_FieldSubPathArrayOfValues { 880 return s.FieldPath().WithIArrayOfValues(values).(*NotificationChannel_FieldSubPathArrayOfValues) 881 } 882 883 func (s NotificationChannelPathSelectorSpecEmailAddresses) WithItemValue(value string) *NotificationChannel_FieldSubPathArrayItemValue { 884 return s.FieldPath().WithIArrayItemValue(value).(*NotificationChannel_FieldSubPathArrayItemValue) 885 } 886 887 type NotificationChannelPathSelectorSpecSlack struct{} 888 889 func (NotificationChannelPathSelectorSpecSlack) FieldPath() *NotificationChannel_FieldSubPath { 890 return &NotificationChannel_FieldSubPath{ 891 selector: NotificationChannel_FieldPathSelectorSpec, 892 subPath: NewNotificationChannelSpecFieldPathBuilder().Slack().FieldPath(), 893 } 894 } 895 896 func (s NotificationChannelPathSelectorSpecSlack) WithValue(value *NotificationChannel_Spec_Slack) *NotificationChannel_FieldSubPathValue { 897 return s.FieldPath().WithIValue(value).(*NotificationChannel_FieldSubPathValue) 898 } 899 900 func (s NotificationChannelPathSelectorSpecSlack) WithArrayOfValues(values []*NotificationChannel_Spec_Slack) *NotificationChannel_FieldSubPathArrayOfValues { 901 return s.FieldPath().WithIArrayOfValues(values).(*NotificationChannel_FieldSubPathArrayOfValues) 902 } 903 904 func (NotificationChannelPathSelectorSpecSlack) IncomingWebhook() NotificationChannelPathSelectorSpecSlackIncomingWebhook { 905 return NotificationChannelPathSelectorSpecSlackIncomingWebhook{} 906 } 907 908 type NotificationChannelPathSelectorSpecSlackIncomingWebhook struct{} 909 910 func (NotificationChannelPathSelectorSpecSlackIncomingWebhook) FieldPath() *NotificationChannel_FieldSubPath { 911 return &NotificationChannel_FieldSubPath{ 912 selector: NotificationChannel_FieldPathSelectorSpec, 913 subPath: NewNotificationChannelSpecFieldPathBuilder().Slack().IncomingWebhook().FieldPath(), 914 } 915 } 916 917 func (s NotificationChannelPathSelectorSpecSlackIncomingWebhook) WithValue(value string) *NotificationChannel_FieldSubPathValue { 918 return s.FieldPath().WithIValue(value).(*NotificationChannel_FieldSubPathValue) 919 } 920 921 func (s NotificationChannelPathSelectorSpecSlackIncomingWebhook) WithArrayOfValues(values []string) *NotificationChannel_FieldSubPathArrayOfValues { 922 return s.FieldPath().WithIArrayOfValues(values).(*NotificationChannel_FieldSubPathArrayOfValues) 923 } 924 925 type NotificationChannelPathSelectorSpecWebhook struct{} 926 927 func (NotificationChannelPathSelectorSpecWebhook) FieldPath() *NotificationChannel_FieldSubPath { 928 return &NotificationChannel_FieldSubPath{ 929 selector: NotificationChannel_FieldPathSelectorSpec, 930 subPath: NewNotificationChannelSpecFieldPathBuilder().Webhook().FieldPath(), 931 } 932 } 933 934 func (s NotificationChannelPathSelectorSpecWebhook) WithValue(value *NotificationChannel_Spec_Webhook) *NotificationChannel_FieldSubPathValue { 935 return s.FieldPath().WithIValue(value).(*NotificationChannel_FieldSubPathValue) 936 } 937 938 func (s NotificationChannelPathSelectorSpecWebhook) WithArrayOfValues(values []*NotificationChannel_Spec_Webhook) *NotificationChannel_FieldSubPathArrayOfValues { 939 return s.FieldPath().WithIArrayOfValues(values).(*NotificationChannel_FieldSubPathArrayOfValues) 940 } 941 942 func (NotificationChannelPathSelectorSpecWebhook) Url() NotificationChannelPathSelectorSpecWebhookUrl { 943 return NotificationChannelPathSelectorSpecWebhookUrl{} 944 } 945 946 func (NotificationChannelPathSelectorSpecWebhook) Headers() NotificationChannelPathSelectorSpecWebhookHeaders { 947 return NotificationChannelPathSelectorSpecWebhookHeaders{} 948 } 949 950 type NotificationChannelPathSelectorSpecWebhookUrl struct{} 951 952 func (NotificationChannelPathSelectorSpecWebhookUrl) FieldPath() *NotificationChannel_FieldSubPath { 953 return &NotificationChannel_FieldSubPath{ 954 selector: NotificationChannel_FieldPathSelectorSpec, 955 subPath: NewNotificationChannelSpecFieldPathBuilder().Webhook().Url().FieldPath(), 956 } 957 } 958 959 func (s NotificationChannelPathSelectorSpecWebhookUrl) WithValue(value string) *NotificationChannel_FieldSubPathValue { 960 return s.FieldPath().WithIValue(value).(*NotificationChannel_FieldSubPathValue) 961 } 962 963 func (s NotificationChannelPathSelectorSpecWebhookUrl) WithArrayOfValues(values []string) *NotificationChannel_FieldSubPathArrayOfValues { 964 return s.FieldPath().WithIArrayOfValues(values).(*NotificationChannel_FieldSubPathArrayOfValues) 965 } 966 967 type NotificationChannelPathSelectorSpecWebhookHeaders struct{} 968 969 func (NotificationChannelPathSelectorSpecWebhookHeaders) FieldPath() *NotificationChannel_FieldSubPath { 970 return &NotificationChannel_FieldSubPath{ 971 selector: NotificationChannel_FieldPathSelectorSpec, 972 subPath: NewNotificationChannelSpecFieldPathBuilder().Webhook().Headers().FieldPath(), 973 } 974 } 975 976 func (s NotificationChannelPathSelectorSpecWebhookHeaders) WithValue(value []*NotificationChannel_Spec_Webhook_Header) *NotificationChannel_FieldSubPathValue { 977 return s.FieldPath().WithIValue(value).(*NotificationChannel_FieldSubPathValue) 978 } 979 980 func (s NotificationChannelPathSelectorSpecWebhookHeaders) WithArrayOfValues(values [][]*NotificationChannel_Spec_Webhook_Header) *NotificationChannel_FieldSubPathArrayOfValues { 981 return s.FieldPath().WithIArrayOfValues(values).(*NotificationChannel_FieldSubPathArrayOfValues) 982 } 983 984 func (s NotificationChannelPathSelectorSpecWebhookHeaders) WithItemValue(value *NotificationChannel_Spec_Webhook_Header) *NotificationChannel_FieldSubPathArrayItemValue { 985 return s.FieldPath().WithIArrayItemValue(value).(*NotificationChannel_FieldSubPathArrayItemValue) 986 } 987 988 func (NotificationChannelPathSelectorSpecWebhookHeaders) Key() NotificationChannelPathSelectorSpecWebhookHeadersKey { 989 return NotificationChannelPathSelectorSpecWebhookHeadersKey{} 990 } 991 992 func (NotificationChannelPathSelectorSpecWebhookHeaders) Value() NotificationChannelPathSelectorSpecWebhookHeadersValue { 993 return NotificationChannelPathSelectorSpecWebhookHeadersValue{} 994 } 995 996 type NotificationChannelPathSelectorSpecWebhookHeadersKey struct{} 997 998 func (NotificationChannelPathSelectorSpecWebhookHeadersKey) FieldPath() *NotificationChannel_FieldSubPath { 999 return &NotificationChannel_FieldSubPath{ 1000 selector: NotificationChannel_FieldPathSelectorSpec, 1001 subPath: NewNotificationChannelSpecFieldPathBuilder().Webhook().Headers().Key().FieldPath(), 1002 } 1003 } 1004 1005 func (s NotificationChannelPathSelectorSpecWebhookHeadersKey) WithValue(value string) *NotificationChannel_FieldSubPathValue { 1006 return s.FieldPath().WithIValue(value).(*NotificationChannel_FieldSubPathValue) 1007 } 1008 1009 func (s NotificationChannelPathSelectorSpecWebhookHeadersKey) WithArrayOfValues(values []string) *NotificationChannel_FieldSubPathArrayOfValues { 1010 return s.FieldPath().WithIArrayOfValues(values).(*NotificationChannel_FieldSubPathArrayOfValues) 1011 } 1012 1013 type NotificationChannelPathSelectorSpecWebhookHeadersValue struct{} 1014 1015 func (NotificationChannelPathSelectorSpecWebhookHeadersValue) FieldPath() *NotificationChannel_FieldSubPath { 1016 return &NotificationChannel_FieldSubPath{ 1017 selector: NotificationChannel_FieldPathSelectorSpec, 1018 subPath: NewNotificationChannelSpecFieldPathBuilder().Webhook().Headers().Value().FieldPath(), 1019 } 1020 } 1021 1022 func (s NotificationChannelPathSelectorSpecWebhookHeadersValue) WithValue(value string) *NotificationChannel_FieldSubPathValue { 1023 return s.FieldPath().WithIValue(value).(*NotificationChannel_FieldSubPathValue) 1024 } 1025 1026 func (s NotificationChannelPathSelectorSpecWebhookHeadersValue) WithArrayOfValues(values []string) *NotificationChannel_FieldSubPathArrayOfValues { 1027 return s.FieldPath().WithIArrayOfValues(values).(*NotificationChannel_FieldSubPathArrayOfValues) 1028 } 1029 1030 type NotificationChannelPathSelectorSpecNotificationLanguageCode struct{} 1031 1032 func (NotificationChannelPathSelectorSpecNotificationLanguageCode) FieldPath() *NotificationChannel_FieldSubPath { 1033 return &NotificationChannel_FieldSubPath{ 1034 selector: NotificationChannel_FieldPathSelectorSpec, 1035 subPath: NewNotificationChannelSpecFieldPathBuilder().NotificationLanguageCode().FieldPath(), 1036 } 1037 } 1038 1039 func (s NotificationChannelPathSelectorSpecNotificationLanguageCode) WithValue(value string) *NotificationChannel_FieldSubPathValue { 1040 return s.FieldPath().WithIValue(value).(*NotificationChannel_FieldSubPathValue) 1041 } 1042 1043 func (s NotificationChannelPathSelectorSpecNotificationLanguageCode) WithArrayOfValues(values []string) *NotificationChannel_FieldSubPathArrayOfValues { 1044 return s.FieldPath().WithIArrayOfValues(values).(*NotificationChannel_FieldSubPathArrayOfValues) 1045 } 1046 1047 type NotificationChannelPathSelectorState struct{} 1048 1049 func (NotificationChannelPathSelectorState) FieldPath() *NotificationChannel_FieldTerminalPath { 1050 return &NotificationChannel_FieldTerminalPath{selector: NotificationChannel_FieldPathSelectorState} 1051 } 1052 1053 func (s NotificationChannelPathSelectorState) WithValue(value *NotificationChannel_State) *NotificationChannel_FieldTerminalPathValue { 1054 return s.FieldPath().WithIValue(value).(*NotificationChannel_FieldTerminalPathValue) 1055 } 1056 1057 func (s NotificationChannelPathSelectorState) WithArrayOfValues(values []*NotificationChannel_State) *NotificationChannel_FieldTerminalPathArrayOfValues { 1058 return s.FieldPath().WithIArrayOfValues(values).(*NotificationChannel_FieldTerminalPathArrayOfValues) 1059 } 1060 1061 func (NotificationChannelPathSelectorState) WithSubPath(subPath NotificationChannelState_FieldPath) *NotificationChannel_FieldSubPath { 1062 return &NotificationChannel_FieldSubPath{selector: NotificationChannel_FieldPathSelectorState, subPath: subPath} 1063 } 1064 1065 func (s NotificationChannelPathSelectorState) WithSubValue(subPathValue NotificationChannelState_FieldPathValue) *NotificationChannel_FieldSubPathValue { 1066 return &NotificationChannel_FieldSubPathValue{NotificationChannel_FieldPath: s.WithSubPath(subPathValue), subPathValue: subPathValue} 1067 } 1068 1069 func (s NotificationChannelPathSelectorState) WithSubArrayOfValues(subPathArrayOfValues NotificationChannelState_FieldPathArrayOfValues) *NotificationChannel_FieldSubPathArrayOfValues { 1070 return &NotificationChannel_FieldSubPathArrayOfValues{NotificationChannel_FieldPath: s.WithSubPath(subPathArrayOfValues), subPathArrayOfValues: subPathArrayOfValues} 1071 } 1072 1073 func (s NotificationChannelPathSelectorState) WithSubArrayItemValue(subPathArrayItemValue NotificationChannelState_FieldPathArrayItemValue) *NotificationChannel_FieldSubPathArrayItemValue { 1074 return &NotificationChannel_FieldSubPathArrayItemValue{NotificationChannel_FieldPath: s.WithSubPath(subPathArrayItemValue), subPathItemValue: subPathArrayItemValue} 1075 } 1076 1077 func (NotificationChannelPathSelectorState) Status() NotificationChannelPathSelectorStateStatus { 1078 return NotificationChannelPathSelectorStateStatus{} 1079 } 1080 1081 func (NotificationChannelPathSelectorState) Error() NotificationChannelPathSelectorStateError { 1082 return NotificationChannelPathSelectorStateError{} 1083 } 1084 1085 type NotificationChannelPathSelectorStateStatus struct{} 1086 1087 func (NotificationChannelPathSelectorStateStatus) FieldPath() *NotificationChannel_FieldSubPath { 1088 return &NotificationChannel_FieldSubPath{ 1089 selector: NotificationChannel_FieldPathSelectorState, 1090 subPath: NewNotificationChannelStateFieldPathBuilder().Status().FieldPath(), 1091 } 1092 } 1093 1094 func (s NotificationChannelPathSelectorStateStatus) WithValue(value NotificationChannel_State_Status) *NotificationChannel_FieldSubPathValue { 1095 return s.FieldPath().WithIValue(value).(*NotificationChannel_FieldSubPathValue) 1096 } 1097 1098 func (s NotificationChannelPathSelectorStateStatus) WithArrayOfValues(values []NotificationChannel_State_Status) *NotificationChannel_FieldSubPathArrayOfValues { 1099 return s.FieldPath().WithIArrayOfValues(values).(*NotificationChannel_FieldSubPathArrayOfValues) 1100 } 1101 1102 type NotificationChannelPathSelectorStateError struct{} 1103 1104 func (NotificationChannelPathSelectorStateError) FieldPath() *NotificationChannel_FieldSubPath { 1105 return &NotificationChannel_FieldSubPath{ 1106 selector: NotificationChannel_FieldPathSelectorState, 1107 subPath: NewNotificationChannelStateFieldPathBuilder().Error().FieldPath(), 1108 } 1109 } 1110 1111 func (s NotificationChannelPathSelectorStateError) WithValue(value *NotificationChannel_State_Error) *NotificationChannel_FieldSubPathValue { 1112 return s.FieldPath().WithIValue(value).(*NotificationChannel_FieldSubPathValue) 1113 } 1114 1115 func (s NotificationChannelPathSelectorStateError) WithArrayOfValues(values []*NotificationChannel_State_Error) *NotificationChannel_FieldSubPathArrayOfValues { 1116 return s.FieldPath().WithIArrayOfValues(values).(*NotificationChannel_FieldSubPathArrayOfValues) 1117 } 1118 1119 func (NotificationChannelPathSelectorStateError) Time() NotificationChannelPathSelectorStateErrorTime { 1120 return NotificationChannelPathSelectorStateErrorTime{} 1121 } 1122 1123 func (NotificationChannelPathSelectorStateError) Message() NotificationChannelPathSelectorStateErrorMessage { 1124 return NotificationChannelPathSelectorStateErrorMessage{} 1125 } 1126 1127 type NotificationChannelPathSelectorStateErrorTime struct{} 1128 1129 func (NotificationChannelPathSelectorStateErrorTime) FieldPath() *NotificationChannel_FieldSubPath { 1130 return &NotificationChannel_FieldSubPath{ 1131 selector: NotificationChannel_FieldPathSelectorState, 1132 subPath: NewNotificationChannelStateFieldPathBuilder().Error().Time().FieldPath(), 1133 } 1134 } 1135 1136 func (s NotificationChannelPathSelectorStateErrorTime) WithValue(value *timestamppb.Timestamp) *NotificationChannel_FieldSubPathValue { 1137 return s.FieldPath().WithIValue(value).(*NotificationChannel_FieldSubPathValue) 1138 } 1139 1140 func (s NotificationChannelPathSelectorStateErrorTime) WithArrayOfValues(values []*timestamppb.Timestamp) *NotificationChannel_FieldSubPathArrayOfValues { 1141 return s.FieldPath().WithIArrayOfValues(values).(*NotificationChannel_FieldSubPathArrayOfValues) 1142 } 1143 1144 type NotificationChannelPathSelectorStateErrorMessage struct{} 1145 1146 func (NotificationChannelPathSelectorStateErrorMessage) FieldPath() *NotificationChannel_FieldSubPath { 1147 return &NotificationChannel_FieldSubPath{ 1148 selector: NotificationChannel_FieldPathSelectorState, 1149 subPath: NewNotificationChannelStateFieldPathBuilder().Error().Message().FieldPath(), 1150 } 1151 } 1152 1153 func (s NotificationChannelPathSelectorStateErrorMessage) WithValue(value string) *NotificationChannel_FieldSubPathValue { 1154 return s.FieldPath().WithIValue(value).(*NotificationChannel_FieldSubPathValue) 1155 } 1156 1157 func (s NotificationChannelPathSelectorStateErrorMessage) WithArrayOfValues(values []string) *NotificationChannel_FieldSubPathArrayOfValues { 1158 return s.FieldPath().WithIArrayOfValues(values).(*NotificationChannel_FieldSubPathArrayOfValues) 1159 } 1160 1161 type NotificationChannelPathSelectorDescription struct{} 1162 1163 func (NotificationChannelPathSelectorDescription) FieldPath() *NotificationChannel_FieldTerminalPath { 1164 return &NotificationChannel_FieldTerminalPath{selector: NotificationChannel_FieldPathSelectorDescription} 1165 } 1166 1167 func (s NotificationChannelPathSelectorDescription) WithValue(value string) *NotificationChannel_FieldTerminalPathValue { 1168 return s.FieldPath().WithIValue(value).(*NotificationChannel_FieldTerminalPathValue) 1169 } 1170 1171 func (s NotificationChannelPathSelectorDescription) WithArrayOfValues(values []string) *NotificationChannel_FieldTerminalPathArrayOfValues { 1172 return s.FieldPath().WithIArrayOfValues(values).(*NotificationChannel_FieldTerminalPathArrayOfValues) 1173 } 1174 1175 type NotificationChannelSpecFieldPathBuilder struct{} 1176 1177 func NewNotificationChannelSpecFieldPathBuilder() NotificationChannelSpecFieldPathBuilder { 1178 return NotificationChannelSpecFieldPathBuilder{} 1179 } 1180 func (NotificationChannelSpecFieldPathBuilder) Enabled() NotificationChannel_SpecPathSelectorEnabled { 1181 return NotificationChannel_SpecPathSelectorEnabled{} 1182 } 1183 func (NotificationChannelSpecFieldPathBuilder) Type() NotificationChannel_SpecPathSelectorType { 1184 return NotificationChannel_SpecPathSelectorType{} 1185 } 1186 func (NotificationChannelSpecFieldPathBuilder) Email() NotificationChannel_SpecPathSelectorEmail { 1187 return NotificationChannel_SpecPathSelectorEmail{} 1188 } 1189 func (NotificationChannelSpecFieldPathBuilder) Slack() NotificationChannel_SpecPathSelectorSlack { 1190 return NotificationChannel_SpecPathSelectorSlack{} 1191 } 1192 func (NotificationChannelSpecFieldPathBuilder) Webhook() NotificationChannel_SpecPathSelectorWebhook { 1193 return NotificationChannel_SpecPathSelectorWebhook{} 1194 } 1195 func (NotificationChannelSpecFieldPathBuilder) NotificationLanguageCode() NotificationChannel_SpecPathSelectorNotificationLanguageCode { 1196 return NotificationChannel_SpecPathSelectorNotificationLanguageCode{} 1197 } 1198 1199 type NotificationChannel_SpecPathSelectorEnabled struct{} 1200 1201 func (NotificationChannel_SpecPathSelectorEnabled) FieldPath() *NotificationChannelSpec_FieldTerminalPath { 1202 return &NotificationChannelSpec_FieldTerminalPath{selector: NotificationChannelSpec_FieldPathSelectorEnabled} 1203 } 1204 1205 func (s NotificationChannel_SpecPathSelectorEnabled) WithValue(value bool) *NotificationChannelSpec_FieldTerminalPathValue { 1206 return s.FieldPath().WithIValue(value).(*NotificationChannelSpec_FieldTerminalPathValue) 1207 } 1208 1209 func (s NotificationChannel_SpecPathSelectorEnabled) WithArrayOfValues(values []bool) *NotificationChannelSpec_FieldTerminalPathArrayOfValues { 1210 return s.FieldPath().WithIArrayOfValues(values).(*NotificationChannelSpec_FieldTerminalPathArrayOfValues) 1211 } 1212 1213 type NotificationChannel_SpecPathSelectorType struct{} 1214 1215 func (NotificationChannel_SpecPathSelectorType) FieldPath() *NotificationChannelSpec_FieldTerminalPath { 1216 return &NotificationChannelSpec_FieldTerminalPath{selector: NotificationChannelSpec_FieldPathSelectorType} 1217 } 1218 1219 func (s NotificationChannel_SpecPathSelectorType) WithValue(value NotificationChannel_Spec_Type) *NotificationChannelSpec_FieldTerminalPathValue { 1220 return s.FieldPath().WithIValue(value).(*NotificationChannelSpec_FieldTerminalPathValue) 1221 } 1222 1223 func (s NotificationChannel_SpecPathSelectorType) WithArrayOfValues(values []NotificationChannel_Spec_Type) *NotificationChannelSpec_FieldTerminalPathArrayOfValues { 1224 return s.FieldPath().WithIArrayOfValues(values).(*NotificationChannelSpec_FieldTerminalPathArrayOfValues) 1225 } 1226 1227 type NotificationChannel_SpecPathSelectorEmail struct{} 1228 1229 func (NotificationChannel_SpecPathSelectorEmail) FieldPath() *NotificationChannelSpec_FieldTerminalPath { 1230 return &NotificationChannelSpec_FieldTerminalPath{selector: NotificationChannelSpec_FieldPathSelectorEmail} 1231 } 1232 1233 func (s NotificationChannel_SpecPathSelectorEmail) WithValue(value *NotificationChannel_Spec_Email) *NotificationChannelSpec_FieldTerminalPathValue { 1234 return s.FieldPath().WithIValue(value).(*NotificationChannelSpec_FieldTerminalPathValue) 1235 } 1236 1237 func (s NotificationChannel_SpecPathSelectorEmail) WithArrayOfValues(values []*NotificationChannel_Spec_Email) *NotificationChannelSpec_FieldTerminalPathArrayOfValues { 1238 return s.FieldPath().WithIArrayOfValues(values).(*NotificationChannelSpec_FieldTerminalPathArrayOfValues) 1239 } 1240 1241 func (NotificationChannel_SpecPathSelectorEmail) WithSubPath(subPath NotificationChannelSpecEmail_FieldPath) *NotificationChannelSpec_FieldSubPath { 1242 return &NotificationChannelSpec_FieldSubPath{selector: NotificationChannelSpec_FieldPathSelectorEmail, subPath: subPath} 1243 } 1244 1245 func (s NotificationChannel_SpecPathSelectorEmail) WithSubValue(subPathValue NotificationChannelSpecEmail_FieldPathValue) *NotificationChannelSpec_FieldSubPathValue { 1246 return &NotificationChannelSpec_FieldSubPathValue{NotificationChannelSpec_FieldPath: s.WithSubPath(subPathValue), subPathValue: subPathValue} 1247 } 1248 1249 func (s NotificationChannel_SpecPathSelectorEmail) WithSubArrayOfValues(subPathArrayOfValues NotificationChannelSpecEmail_FieldPathArrayOfValues) *NotificationChannelSpec_FieldSubPathArrayOfValues { 1250 return &NotificationChannelSpec_FieldSubPathArrayOfValues{NotificationChannelSpec_FieldPath: s.WithSubPath(subPathArrayOfValues), subPathArrayOfValues: subPathArrayOfValues} 1251 } 1252 1253 func (s NotificationChannel_SpecPathSelectorEmail) WithSubArrayItemValue(subPathArrayItemValue NotificationChannelSpecEmail_FieldPathArrayItemValue) *NotificationChannelSpec_FieldSubPathArrayItemValue { 1254 return &NotificationChannelSpec_FieldSubPathArrayItemValue{NotificationChannelSpec_FieldPath: s.WithSubPath(subPathArrayItemValue), subPathItemValue: subPathArrayItemValue} 1255 } 1256 1257 func (NotificationChannel_SpecPathSelectorEmail) Addresses() NotificationChannel_SpecPathSelectorEmailAddresses { 1258 return NotificationChannel_SpecPathSelectorEmailAddresses{} 1259 } 1260 1261 type NotificationChannel_SpecPathSelectorEmailAddresses struct{} 1262 1263 func (NotificationChannel_SpecPathSelectorEmailAddresses) FieldPath() *NotificationChannelSpec_FieldSubPath { 1264 return &NotificationChannelSpec_FieldSubPath{ 1265 selector: NotificationChannelSpec_FieldPathSelectorEmail, 1266 subPath: NewNotificationChannelSpecEmailFieldPathBuilder().Addresses().FieldPath(), 1267 } 1268 } 1269 1270 func (s NotificationChannel_SpecPathSelectorEmailAddresses) WithValue(value []string) *NotificationChannelSpec_FieldSubPathValue { 1271 return s.FieldPath().WithIValue(value).(*NotificationChannelSpec_FieldSubPathValue) 1272 } 1273 1274 func (s NotificationChannel_SpecPathSelectorEmailAddresses) WithArrayOfValues(values [][]string) *NotificationChannelSpec_FieldSubPathArrayOfValues { 1275 return s.FieldPath().WithIArrayOfValues(values).(*NotificationChannelSpec_FieldSubPathArrayOfValues) 1276 } 1277 1278 func (s NotificationChannel_SpecPathSelectorEmailAddresses) WithItemValue(value string) *NotificationChannelSpec_FieldSubPathArrayItemValue { 1279 return s.FieldPath().WithIArrayItemValue(value).(*NotificationChannelSpec_FieldSubPathArrayItemValue) 1280 } 1281 1282 type NotificationChannel_SpecPathSelectorSlack struct{} 1283 1284 func (NotificationChannel_SpecPathSelectorSlack) FieldPath() *NotificationChannelSpec_FieldTerminalPath { 1285 return &NotificationChannelSpec_FieldTerminalPath{selector: NotificationChannelSpec_FieldPathSelectorSlack} 1286 } 1287 1288 func (s NotificationChannel_SpecPathSelectorSlack) WithValue(value *NotificationChannel_Spec_Slack) *NotificationChannelSpec_FieldTerminalPathValue { 1289 return s.FieldPath().WithIValue(value).(*NotificationChannelSpec_FieldTerminalPathValue) 1290 } 1291 1292 func (s NotificationChannel_SpecPathSelectorSlack) WithArrayOfValues(values []*NotificationChannel_Spec_Slack) *NotificationChannelSpec_FieldTerminalPathArrayOfValues { 1293 return s.FieldPath().WithIArrayOfValues(values).(*NotificationChannelSpec_FieldTerminalPathArrayOfValues) 1294 } 1295 1296 func (NotificationChannel_SpecPathSelectorSlack) WithSubPath(subPath NotificationChannelSpecSlack_FieldPath) *NotificationChannelSpec_FieldSubPath { 1297 return &NotificationChannelSpec_FieldSubPath{selector: NotificationChannelSpec_FieldPathSelectorSlack, subPath: subPath} 1298 } 1299 1300 func (s NotificationChannel_SpecPathSelectorSlack) WithSubValue(subPathValue NotificationChannelSpecSlack_FieldPathValue) *NotificationChannelSpec_FieldSubPathValue { 1301 return &NotificationChannelSpec_FieldSubPathValue{NotificationChannelSpec_FieldPath: s.WithSubPath(subPathValue), subPathValue: subPathValue} 1302 } 1303 1304 func (s NotificationChannel_SpecPathSelectorSlack) WithSubArrayOfValues(subPathArrayOfValues NotificationChannelSpecSlack_FieldPathArrayOfValues) *NotificationChannelSpec_FieldSubPathArrayOfValues { 1305 return &NotificationChannelSpec_FieldSubPathArrayOfValues{NotificationChannelSpec_FieldPath: s.WithSubPath(subPathArrayOfValues), subPathArrayOfValues: subPathArrayOfValues} 1306 } 1307 1308 func (s NotificationChannel_SpecPathSelectorSlack) WithSubArrayItemValue(subPathArrayItemValue NotificationChannelSpecSlack_FieldPathArrayItemValue) *NotificationChannelSpec_FieldSubPathArrayItemValue { 1309 return &NotificationChannelSpec_FieldSubPathArrayItemValue{NotificationChannelSpec_FieldPath: s.WithSubPath(subPathArrayItemValue), subPathItemValue: subPathArrayItemValue} 1310 } 1311 1312 func (NotificationChannel_SpecPathSelectorSlack) IncomingWebhook() NotificationChannel_SpecPathSelectorSlackIncomingWebhook { 1313 return NotificationChannel_SpecPathSelectorSlackIncomingWebhook{} 1314 } 1315 1316 type NotificationChannel_SpecPathSelectorSlackIncomingWebhook struct{} 1317 1318 func (NotificationChannel_SpecPathSelectorSlackIncomingWebhook) FieldPath() *NotificationChannelSpec_FieldSubPath { 1319 return &NotificationChannelSpec_FieldSubPath{ 1320 selector: NotificationChannelSpec_FieldPathSelectorSlack, 1321 subPath: NewNotificationChannelSpecSlackFieldPathBuilder().IncomingWebhook().FieldPath(), 1322 } 1323 } 1324 1325 func (s NotificationChannel_SpecPathSelectorSlackIncomingWebhook) WithValue(value string) *NotificationChannelSpec_FieldSubPathValue { 1326 return s.FieldPath().WithIValue(value).(*NotificationChannelSpec_FieldSubPathValue) 1327 } 1328 1329 func (s NotificationChannel_SpecPathSelectorSlackIncomingWebhook) WithArrayOfValues(values []string) *NotificationChannelSpec_FieldSubPathArrayOfValues { 1330 return s.FieldPath().WithIArrayOfValues(values).(*NotificationChannelSpec_FieldSubPathArrayOfValues) 1331 } 1332 1333 type NotificationChannel_SpecPathSelectorWebhook struct{} 1334 1335 func (NotificationChannel_SpecPathSelectorWebhook) FieldPath() *NotificationChannelSpec_FieldTerminalPath { 1336 return &NotificationChannelSpec_FieldTerminalPath{selector: NotificationChannelSpec_FieldPathSelectorWebhook} 1337 } 1338 1339 func (s NotificationChannel_SpecPathSelectorWebhook) WithValue(value *NotificationChannel_Spec_Webhook) *NotificationChannelSpec_FieldTerminalPathValue { 1340 return s.FieldPath().WithIValue(value).(*NotificationChannelSpec_FieldTerminalPathValue) 1341 } 1342 1343 func (s NotificationChannel_SpecPathSelectorWebhook) WithArrayOfValues(values []*NotificationChannel_Spec_Webhook) *NotificationChannelSpec_FieldTerminalPathArrayOfValues { 1344 return s.FieldPath().WithIArrayOfValues(values).(*NotificationChannelSpec_FieldTerminalPathArrayOfValues) 1345 } 1346 1347 func (NotificationChannel_SpecPathSelectorWebhook) WithSubPath(subPath NotificationChannelSpecWebhook_FieldPath) *NotificationChannelSpec_FieldSubPath { 1348 return &NotificationChannelSpec_FieldSubPath{selector: NotificationChannelSpec_FieldPathSelectorWebhook, subPath: subPath} 1349 } 1350 1351 func (s NotificationChannel_SpecPathSelectorWebhook) WithSubValue(subPathValue NotificationChannelSpecWebhook_FieldPathValue) *NotificationChannelSpec_FieldSubPathValue { 1352 return &NotificationChannelSpec_FieldSubPathValue{NotificationChannelSpec_FieldPath: s.WithSubPath(subPathValue), subPathValue: subPathValue} 1353 } 1354 1355 func (s NotificationChannel_SpecPathSelectorWebhook) WithSubArrayOfValues(subPathArrayOfValues NotificationChannelSpecWebhook_FieldPathArrayOfValues) *NotificationChannelSpec_FieldSubPathArrayOfValues { 1356 return &NotificationChannelSpec_FieldSubPathArrayOfValues{NotificationChannelSpec_FieldPath: s.WithSubPath(subPathArrayOfValues), subPathArrayOfValues: subPathArrayOfValues} 1357 } 1358 1359 func (s NotificationChannel_SpecPathSelectorWebhook) WithSubArrayItemValue(subPathArrayItemValue NotificationChannelSpecWebhook_FieldPathArrayItemValue) *NotificationChannelSpec_FieldSubPathArrayItemValue { 1360 return &NotificationChannelSpec_FieldSubPathArrayItemValue{NotificationChannelSpec_FieldPath: s.WithSubPath(subPathArrayItemValue), subPathItemValue: subPathArrayItemValue} 1361 } 1362 1363 func (NotificationChannel_SpecPathSelectorWebhook) Url() NotificationChannel_SpecPathSelectorWebhookUrl { 1364 return NotificationChannel_SpecPathSelectorWebhookUrl{} 1365 } 1366 1367 func (NotificationChannel_SpecPathSelectorWebhook) Headers() NotificationChannel_SpecPathSelectorWebhookHeaders { 1368 return NotificationChannel_SpecPathSelectorWebhookHeaders{} 1369 } 1370 1371 type NotificationChannel_SpecPathSelectorWebhookUrl struct{} 1372 1373 func (NotificationChannel_SpecPathSelectorWebhookUrl) FieldPath() *NotificationChannelSpec_FieldSubPath { 1374 return &NotificationChannelSpec_FieldSubPath{ 1375 selector: NotificationChannelSpec_FieldPathSelectorWebhook, 1376 subPath: NewNotificationChannelSpecWebhookFieldPathBuilder().Url().FieldPath(), 1377 } 1378 } 1379 1380 func (s NotificationChannel_SpecPathSelectorWebhookUrl) WithValue(value string) *NotificationChannelSpec_FieldSubPathValue { 1381 return s.FieldPath().WithIValue(value).(*NotificationChannelSpec_FieldSubPathValue) 1382 } 1383 1384 func (s NotificationChannel_SpecPathSelectorWebhookUrl) WithArrayOfValues(values []string) *NotificationChannelSpec_FieldSubPathArrayOfValues { 1385 return s.FieldPath().WithIArrayOfValues(values).(*NotificationChannelSpec_FieldSubPathArrayOfValues) 1386 } 1387 1388 type NotificationChannel_SpecPathSelectorWebhookHeaders struct{} 1389 1390 func (NotificationChannel_SpecPathSelectorWebhookHeaders) FieldPath() *NotificationChannelSpec_FieldSubPath { 1391 return &NotificationChannelSpec_FieldSubPath{ 1392 selector: NotificationChannelSpec_FieldPathSelectorWebhook, 1393 subPath: NewNotificationChannelSpecWebhookFieldPathBuilder().Headers().FieldPath(), 1394 } 1395 } 1396 1397 func (s NotificationChannel_SpecPathSelectorWebhookHeaders) WithValue(value []*NotificationChannel_Spec_Webhook_Header) *NotificationChannelSpec_FieldSubPathValue { 1398 return s.FieldPath().WithIValue(value).(*NotificationChannelSpec_FieldSubPathValue) 1399 } 1400 1401 func (s NotificationChannel_SpecPathSelectorWebhookHeaders) WithArrayOfValues(values [][]*NotificationChannel_Spec_Webhook_Header) *NotificationChannelSpec_FieldSubPathArrayOfValues { 1402 return s.FieldPath().WithIArrayOfValues(values).(*NotificationChannelSpec_FieldSubPathArrayOfValues) 1403 } 1404 1405 func (s NotificationChannel_SpecPathSelectorWebhookHeaders) WithItemValue(value *NotificationChannel_Spec_Webhook_Header) *NotificationChannelSpec_FieldSubPathArrayItemValue { 1406 return s.FieldPath().WithIArrayItemValue(value).(*NotificationChannelSpec_FieldSubPathArrayItemValue) 1407 } 1408 1409 func (NotificationChannel_SpecPathSelectorWebhookHeaders) Key() NotificationChannel_SpecPathSelectorWebhookHeadersKey { 1410 return NotificationChannel_SpecPathSelectorWebhookHeadersKey{} 1411 } 1412 1413 func (NotificationChannel_SpecPathSelectorWebhookHeaders) Value() NotificationChannel_SpecPathSelectorWebhookHeadersValue { 1414 return NotificationChannel_SpecPathSelectorWebhookHeadersValue{} 1415 } 1416 1417 type NotificationChannel_SpecPathSelectorWebhookHeadersKey struct{} 1418 1419 func (NotificationChannel_SpecPathSelectorWebhookHeadersKey) FieldPath() *NotificationChannelSpec_FieldSubPath { 1420 return &NotificationChannelSpec_FieldSubPath{ 1421 selector: NotificationChannelSpec_FieldPathSelectorWebhook, 1422 subPath: NewNotificationChannelSpecWebhookFieldPathBuilder().Headers().Key().FieldPath(), 1423 } 1424 } 1425 1426 func (s NotificationChannel_SpecPathSelectorWebhookHeadersKey) WithValue(value string) *NotificationChannelSpec_FieldSubPathValue { 1427 return s.FieldPath().WithIValue(value).(*NotificationChannelSpec_FieldSubPathValue) 1428 } 1429 1430 func (s NotificationChannel_SpecPathSelectorWebhookHeadersKey) WithArrayOfValues(values []string) *NotificationChannelSpec_FieldSubPathArrayOfValues { 1431 return s.FieldPath().WithIArrayOfValues(values).(*NotificationChannelSpec_FieldSubPathArrayOfValues) 1432 } 1433 1434 type NotificationChannel_SpecPathSelectorWebhookHeadersValue struct{} 1435 1436 func (NotificationChannel_SpecPathSelectorWebhookHeadersValue) FieldPath() *NotificationChannelSpec_FieldSubPath { 1437 return &NotificationChannelSpec_FieldSubPath{ 1438 selector: NotificationChannelSpec_FieldPathSelectorWebhook, 1439 subPath: NewNotificationChannelSpecWebhookFieldPathBuilder().Headers().Value().FieldPath(), 1440 } 1441 } 1442 1443 func (s NotificationChannel_SpecPathSelectorWebhookHeadersValue) WithValue(value string) *NotificationChannelSpec_FieldSubPathValue { 1444 return s.FieldPath().WithIValue(value).(*NotificationChannelSpec_FieldSubPathValue) 1445 } 1446 1447 func (s NotificationChannel_SpecPathSelectorWebhookHeadersValue) WithArrayOfValues(values []string) *NotificationChannelSpec_FieldSubPathArrayOfValues { 1448 return s.FieldPath().WithIArrayOfValues(values).(*NotificationChannelSpec_FieldSubPathArrayOfValues) 1449 } 1450 1451 type NotificationChannel_SpecPathSelectorNotificationLanguageCode struct{} 1452 1453 func (NotificationChannel_SpecPathSelectorNotificationLanguageCode) FieldPath() *NotificationChannelSpec_FieldTerminalPath { 1454 return &NotificationChannelSpec_FieldTerminalPath{selector: NotificationChannelSpec_FieldPathSelectorNotificationLanguageCode} 1455 } 1456 1457 func (s NotificationChannel_SpecPathSelectorNotificationLanguageCode) WithValue(value string) *NotificationChannelSpec_FieldTerminalPathValue { 1458 return s.FieldPath().WithIValue(value).(*NotificationChannelSpec_FieldTerminalPathValue) 1459 } 1460 1461 func (s NotificationChannel_SpecPathSelectorNotificationLanguageCode) WithArrayOfValues(values []string) *NotificationChannelSpec_FieldTerminalPathArrayOfValues { 1462 return s.FieldPath().WithIArrayOfValues(values).(*NotificationChannelSpec_FieldTerminalPathArrayOfValues) 1463 } 1464 1465 type NotificationChannelStateFieldPathBuilder struct{} 1466 1467 func NewNotificationChannelStateFieldPathBuilder() NotificationChannelStateFieldPathBuilder { 1468 return NotificationChannelStateFieldPathBuilder{} 1469 } 1470 func (NotificationChannelStateFieldPathBuilder) Status() NotificationChannel_StatePathSelectorStatus { 1471 return NotificationChannel_StatePathSelectorStatus{} 1472 } 1473 func (NotificationChannelStateFieldPathBuilder) Error() NotificationChannel_StatePathSelectorError { 1474 return NotificationChannel_StatePathSelectorError{} 1475 } 1476 1477 type NotificationChannel_StatePathSelectorStatus struct{} 1478 1479 func (NotificationChannel_StatePathSelectorStatus) FieldPath() *NotificationChannelState_FieldTerminalPath { 1480 return &NotificationChannelState_FieldTerminalPath{selector: NotificationChannelState_FieldPathSelectorStatus} 1481 } 1482 1483 func (s NotificationChannel_StatePathSelectorStatus) WithValue(value NotificationChannel_State_Status) *NotificationChannelState_FieldTerminalPathValue { 1484 return s.FieldPath().WithIValue(value).(*NotificationChannelState_FieldTerminalPathValue) 1485 } 1486 1487 func (s NotificationChannel_StatePathSelectorStatus) WithArrayOfValues(values []NotificationChannel_State_Status) *NotificationChannelState_FieldTerminalPathArrayOfValues { 1488 return s.FieldPath().WithIArrayOfValues(values).(*NotificationChannelState_FieldTerminalPathArrayOfValues) 1489 } 1490 1491 type NotificationChannel_StatePathSelectorError struct{} 1492 1493 func (NotificationChannel_StatePathSelectorError) FieldPath() *NotificationChannelState_FieldTerminalPath { 1494 return &NotificationChannelState_FieldTerminalPath{selector: NotificationChannelState_FieldPathSelectorError} 1495 } 1496 1497 func (s NotificationChannel_StatePathSelectorError) WithValue(value *NotificationChannel_State_Error) *NotificationChannelState_FieldTerminalPathValue { 1498 return s.FieldPath().WithIValue(value).(*NotificationChannelState_FieldTerminalPathValue) 1499 } 1500 1501 func (s NotificationChannel_StatePathSelectorError) WithArrayOfValues(values []*NotificationChannel_State_Error) *NotificationChannelState_FieldTerminalPathArrayOfValues { 1502 return s.FieldPath().WithIArrayOfValues(values).(*NotificationChannelState_FieldTerminalPathArrayOfValues) 1503 } 1504 1505 func (NotificationChannel_StatePathSelectorError) WithSubPath(subPath NotificationChannelStateError_FieldPath) *NotificationChannelState_FieldSubPath { 1506 return &NotificationChannelState_FieldSubPath{selector: NotificationChannelState_FieldPathSelectorError, subPath: subPath} 1507 } 1508 1509 func (s NotificationChannel_StatePathSelectorError) WithSubValue(subPathValue NotificationChannelStateError_FieldPathValue) *NotificationChannelState_FieldSubPathValue { 1510 return &NotificationChannelState_FieldSubPathValue{NotificationChannelState_FieldPath: s.WithSubPath(subPathValue), subPathValue: subPathValue} 1511 } 1512 1513 func (s NotificationChannel_StatePathSelectorError) WithSubArrayOfValues(subPathArrayOfValues NotificationChannelStateError_FieldPathArrayOfValues) *NotificationChannelState_FieldSubPathArrayOfValues { 1514 return &NotificationChannelState_FieldSubPathArrayOfValues{NotificationChannelState_FieldPath: s.WithSubPath(subPathArrayOfValues), subPathArrayOfValues: subPathArrayOfValues} 1515 } 1516 1517 func (s NotificationChannel_StatePathSelectorError) WithSubArrayItemValue(subPathArrayItemValue NotificationChannelStateError_FieldPathArrayItemValue) *NotificationChannelState_FieldSubPathArrayItemValue { 1518 return &NotificationChannelState_FieldSubPathArrayItemValue{NotificationChannelState_FieldPath: s.WithSubPath(subPathArrayItemValue), subPathItemValue: subPathArrayItemValue} 1519 } 1520 1521 func (NotificationChannel_StatePathSelectorError) Time() NotificationChannel_StatePathSelectorErrorTime { 1522 return NotificationChannel_StatePathSelectorErrorTime{} 1523 } 1524 1525 func (NotificationChannel_StatePathSelectorError) Message() NotificationChannel_StatePathSelectorErrorMessage { 1526 return NotificationChannel_StatePathSelectorErrorMessage{} 1527 } 1528 1529 type NotificationChannel_StatePathSelectorErrorTime struct{} 1530 1531 func (NotificationChannel_StatePathSelectorErrorTime) FieldPath() *NotificationChannelState_FieldSubPath { 1532 return &NotificationChannelState_FieldSubPath{ 1533 selector: NotificationChannelState_FieldPathSelectorError, 1534 subPath: NewNotificationChannelStateErrorFieldPathBuilder().Time().FieldPath(), 1535 } 1536 } 1537 1538 func (s NotificationChannel_StatePathSelectorErrorTime) WithValue(value *timestamppb.Timestamp) *NotificationChannelState_FieldSubPathValue { 1539 return s.FieldPath().WithIValue(value).(*NotificationChannelState_FieldSubPathValue) 1540 } 1541 1542 func (s NotificationChannel_StatePathSelectorErrorTime) WithArrayOfValues(values []*timestamppb.Timestamp) *NotificationChannelState_FieldSubPathArrayOfValues { 1543 return s.FieldPath().WithIArrayOfValues(values).(*NotificationChannelState_FieldSubPathArrayOfValues) 1544 } 1545 1546 type NotificationChannel_StatePathSelectorErrorMessage struct{} 1547 1548 func (NotificationChannel_StatePathSelectorErrorMessage) FieldPath() *NotificationChannelState_FieldSubPath { 1549 return &NotificationChannelState_FieldSubPath{ 1550 selector: NotificationChannelState_FieldPathSelectorError, 1551 subPath: NewNotificationChannelStateErrorFieldPathBuilder().Message().FieldPath(), 1552 } 1553 } 1554 1555 func (s NotificationChannel_StatePathSelectorErrorMessage) WithValue(value string) *NotificationChannelState_FieldSubPathValue { 1556 return s.FieldPath().WithIValue(value).(*NotificationChannelState_FieldSubPathValue) 1557 } 1558 1559 func (s NotificationChannel_StatePathSelectorErrorMessage) WithArrayOfValues(values []string) *NotificationChannelState_FieldSubPathArrayOfValues { 1560 return s.FieldPath().WithIArrayOfValues(values).(*NotificationChannelState_FieldSubPathArrayOfValues) 1561 } 1562 1563 type NotificationChannelSpecEmailFieldPathBuilder struct{} 1564 1565 func NewNotificationChannelSpecEmailFieldPathBuilder() NotificationChannelSpecEmailFieldPathBuilder { 1566 return NotificationChannelSpecEmailFieldPathBuilder{} 1567 } 1568 func (NotificationChannelSpecEmailFieldPathBuilder) Addresses() NotificationChannel_Spec_EmailPathSelectorAddresses { 1569 return NotificationChannel_Spec_EmailPathSelectorAddresses{} 1570 } 1571 1572 type NotificationChannel_Spec_EmailPathSelectorAddresses struct{} 1573 1574 func (NotificationChannel_Spec_EmailPathSelectorAddresses) FieldPath() *NotificationChannelSpecEmail_FieldTerminalPath { 1575 return &NotificationChannelSpecEmail_FieldTerminalPath{selector: NotificationChannelSpecEmail_FieldPathSelectorAddresses} 1576 } 1577 1578 func (s NotificationChannel_Spec_EmailPathSelectorAddresses) WithValue(value []string) *NotificationChannelSpecEmail_FieldTerminalPathValue { 1579 return s.FieldPath().WithIValue(value).(*NotificationChannelSpecEmail_FieldTerminalPathValue) 1580 } 1581 1582 func (s NotificationChannel_Spec_EmailPathSelectorAddresses) WithArrayOfValues(values [][]string) *NotificationChannelSpecEmail_FieldTerminalPathArrayOfValues { 1583 return s.FieldPath().WithIArrayOfValues(values).(*NotificationChannelSpecEmail_FieldTerminalPathArrayOfValues) 1584 } 1585 1586 func (s NotificationChannel_Spec_EmailPathSelectorAddresses) WithItemValue(value string) *NotificationChannelSpecEmail_FieldTerminalPathArrayItemValue { 1587 return s.FieldPath().WithIArrayItemValue(value).(*NotificationChannelSpecEmail_FieldTerminalPathArrayItemValue) 1588 } 1589 1590 type NotificationChannelSpecSlackFieldPathBuilder struct{} 1591 1592 func NewNotificationChannelSpecSlackFieldPathBuilder() NotificationChannelSpecSlackFieldPathBuilder { 1593 return NotificationChannelSpecSlackFieldPathBuilder{} 1594 } 1595 func (NotificationChannelSpecSlackFieldPathBuilder) IncomingWebhook() NotificationChannel_Spec_SlackPathSelectorIncomingWebhook { 1596 return NotificationChannel_Spec_SlackPathSelectorIncomingWebhook{} 1597 } 1598 1599 type NotificationChannel_Spec_SlackPathSelectorIncomingWebhook struct{} 1600 1601 func (NotificationChannel_Spec_SlackPathSelectorIncomingWebhook) FieldPath() *NotificationChannelSpecSlack_FieldTerminalPath { 1602 return &NotificationChannelSpecSlack_FieldTerminalPath{selector: NotificationChannelSpecSlack_FieldPathSelectorIncomingWebhook} 1603 } 1604 1605 func (s NotificationChannel_Spec_SlackPathSelectorIncomingWebhook) WithValue(value string) *NotificationChannelSpecSlack_FieldTerminalPathValue { 1606 return s.FieldPath().WithIValue(value).(*NotificationChannelSpecSlack_FieldTerminalPathValue) 1607 } 1608 1609 func (s NotificationChannel_Spec_SlackPathSelectorIncomingWebhook) WithArrayOfValues(values []string) *NotificationChannelSpecSlack_FieldTerminalPathArrayOfValues { 1610 return s.FieldPath().WithIArrayOfValues(values).(*NotificationChannelSpecSlack_FieldTerminalPathArrayOfValues) 1611 } 1612 1613 type NotificationChannelSpecPagerDutyFieldPathBuilder struct{} 1614 1615 func NewNotificationChannelSpecPagerDutyFieldPathBuilder() NotificationChannelSpecPagerDutyFieldPathBuilder { 1616 return NotificationChannelSpecPagerDutyFieldPathBuilder{} 1617 } 1618 func (NotificationChannelSpecPagerDutyFieldPathBuilder) ServiceKey() NotificationChannel_Spec_PagerDutyPathSelectorServiceKey { 1619 return NotificationChannel_Spec_PagerDutyPathSelectorServiceKey{} 1620 } 1621 1622 type NotificationChannel_Spec_PagerDutyPathSelectorServiceKey struct{} 1623 1624 func (NotificationChannel_Spec_PagerDutyPathSelectorServiceKey) FieldPath() *NotificationChannelSpecPagerDuty_FieldTerminalPath { 1625 return &NotificationChannelSpecPagerDuty_FieldTerminalPath{selector: NotificationChannelSpecPagerDuty_FieldPathSelectorServiceKey} 1626 } 1627 1628 func (s NotificationChannel_Spec_PagerDutyPathSelectorServiceKey) WithValue(value string) *NotificationChannelSpecPagerDuty_FieldTerminalPathValue { 1629 return s.FieldPath().WithIValue(value).(*NotificationChannelSpecPagerDuty_FieldTerminalPathValue) 1630 } 1631 1632 func (s NotificationChannel_Spec_PagerDutyPathSelectorServiceKey) WithArrayOfValues(values []string) *NotificationChannelSpecPagerDuty_FieldTerminalPathArrayOfValues { 1633 return s.FieldPath().WithIArrayOfValues(values).(*NotificationChannelSpecPagerDuty_FieldTerminalPathArrayOfValues) 1634 } 1635 1636 type NotificationChannelSpecWebhookFieldPathBuilder struct{} 1637 1638 func NewNotificationChannelSpecWebhookFieldPathBuilder() NotificationChannelSpecWebhookFieldPathBuilder { 1639 return NotificationChannelSpecWebhookFieldPathBuilder{} 1640 } 1641 func (NotificationChannelSpecWebhookFieldPathBuilder) Url() NotificationChannel_Spec_WebhookPathSelectorUrl { 1642 return NotificationChannel_Spec_WebhookPathSelectorUrl{} 1643 } 1644 func (NotificationChannelSpecWebhookFieldPathBuilder) Headers() NotificationChannel_Spec_WebhookPathSelectorHeaders { 1645 return NotificationChannel_Spec_WebhookPathSelectorHeaders{} 1646 } 1647 1648 type NotificationChannel_Spec_WebhookPathSelectorUrl struct{} 1649 1650 func (NotificationChannel_Spec_WebhookPathSelectorUrl) FieldPath() *NotificationChannelSpecWebhook_FieldTerminalPath { 1651 return &NotificationChannelSpecWebhook_FieldTerminalPath{selector: NotificationChannelSpecWebhook_FieldPathSelectorUrl} 1652 } 1653 1654 func (s NotificationChannel_Spec_WebhookPathSelectorUrl) WithValue(value string) *NotificationChannelSpecWebhook_FieldTerminalPathValue { 1655 return s.FieldPath().WithIValue(value).(*NotificationChannelSpecWebhook_FieldTerminalPathValue) 1656 } 1657 1658 func (s NotificationChannel_Spec_WebhookPathSelectorUrl) WithArrayOfValues(values []string) *NotificationChannelSpecWebhook_FieldTerminalPathArrayOfValues { 1659 return s.FieldPath().WithIArrayOfValues(values).(*NotificationChannelSpecWebhook_FieldTerminalPathArrayOfValues) 1660 } 1661 1662 type NotificationChannel_Spec_WebhookPathSelectorHeaders struct{} 1663 1664 func (NotificationChannel_Spec_WebhookPathSelectorHeaders) FieldPath() *NotificationChannelSpecWebhook_FieldTerminalPath { 1665 return &NotificationChannelSpecWebhook_FieldTerminalPath{selector: NotificationChannelSpecWebhook_FieldPathSelectorHeaders} 1666 } 1667 1668 func (s NotificationChannel_Spec_WebhookPathSelectorHeaders) WithValue(value []*NotificationChannel_Spec_Webhook_Header) *NotificationChannelSpecWebhook_FieldTerminalPathValue { 1669 return s.FieldPath().WithIValue(value).(*NotificationChannelSpecWebhook_FieldTerminalPathValue) 1670 } 1671 1672 func (s NotificationChannel_Spec_WebhookPathSelectorHeaders) WithArrayOfValues(values [][]*NotificationChannel_Spec_Webhook_Header) *NotificationChannelSpecWebhook_FieldTerminalPathArrayOfValues { 1673 return s.FieldPath().WithIArrayOfValues(values).(*NotificationChannelSpecWebhook_FieldTerminalPathArrayOfValues) 1674 } 1675 1676 func (s NotificationChannel_Spec_WebhookPathSelectorHeaders) WithItemValue(value *NotificationChannel_Spec_Webhook_Header) *NotificationChannelSpecWebhook_FieldTerminalPathArrayItemValue { 1677 return s.FieldPath().WithIArrayItemValue(value).(*NotificationChannelSpecWebhook_FieldTerminalPathArrayItemValue) 1678 } 1679 func (NotificationChannel_Spec_WebhookPathSelectorHeaders) WithSubPath(subPath NotificationChannelSpecWebhookHeader_FieldPath) *NotificationChannelSpecWebhook_FieldSubPath { 1680 return &NotificationChannelSpecWebhook_FieldSubPath{selector: NotificationChannelSpecWebhook_FieldPathSelectorHeaders, subPath: subPath} 1681 } 1682 1683 func (s NotificationChannel_Spec_WebhookPathSelectorHeaders) WithSubValue(subPathValue NotificationChannelSpecWebhookHeader_FieldPathValue) *NotificationChannelSpecWebhook_FieldSubPathValue { 1684 return &NotificationChannelSpecWebhook_FieldSubPathValue{NotificationChannelSpecWebhook_FieldPath: s.WithSubPath(subPathValue), subPathValue: subPathValue} 1685 } 1686 1687 func (s NotificationChannel_Spec_WebhookPathSelectorHeaders) WithSubArrayOfValues(subPathArrayOfValues NotificationChannelSpecWebhookHeader_FieldPathArrayOfValues) *NotificationChannelSpecWebhook_FieldSubPathArrayOfValues { 1688 return &NotificationChannelSpecWebhook_FieldSubPathArrayOfValues{NotificationChannelSpecWebhook_FieldPath: s.WithSubPath(subPathArrayOfValues), subPathArrayOfValues: subPathArrayOfValues} 1689 } 1690 1691 func (s NotificationChannel_Spec_WebhookPathSelectorHeaders) WithSubArrayItemValue(subPathArrayItemValue NotificationChannelSpecWebhookHeader_FieldPathArrayItemValue) *NotificationChannelSpecWebhook_FieldSubPathArrayItemValue { 1692 return &NotificationChannelSpecWebhook_FieldSubPathArrayItemValue{NotificationChannelSpecWebhook_FieldPath: s.WithSubPath(subPathArrayItemValue), subPathItemValue: subPathArrayItemValue} 1693 } 1694 1695 func (NotificationChannel_Spec_WebhookPathSelectorHeaders) Key() NotificationChannel_Spec_WebhookPathSelectorHeadersKey { 1696 return NotificationChannel_Spec_WebhookPathSelectorHeadersKey{} 1697 } 1698 1699 func (NotificationChannel_Spec_WebhookPathSelectorHeaders) Value() NotificationChannel_Spec_WebhookPathSelectorHeadersValue { 1700 return NotificationChannel_Spec_WebhookPathSelectorHeadersValue{} 1701 } 1702 1703 type NotificationChannel_Spec_WebhookPathSelectorHeadersKey struct{} 1704 1705 func (NotificationChannel_Spec_WebhookPathSelectorHeadersKey) FieldPath() *NotificationChannelSpecWebhook_FieldSubPath { 1706 return &NotificationChannelSpecWebhook_FieldSubPath{ 1707 selector: NotificationChannelSpecWebhook_FieldPathSelectorHeaders, 1708 subPath: NewNotificationChannelSpecWebhookHeaderFieldPathBuilder().Key().FieldPath(), 1709 } 1710 } 1711 1712 func (s NotificationChannel_Spec_WebhookPathSelectorHeadersKey) WithValue(value string) *NotificationChannelSpecWebhook_FieldSubPathValue { 1713 return s.FieldPath().WithIValue(value).(*NotificationChannelSpecWebhook_FieldSubPathValue) 1714 } 1715 1716 func (s NotificationChannel_Spec_WebhookPathSelectorHeadersKey) WithArrayOfValues(values []string) *NotificationChannelSpecWebhook_FieldSubPathArrayOfValues { 1717 return s.FieldPath().WithIArrayOfValues(values).(*NotificationChannelSpecWebhook_FieldSubPathArrayOfValues) 1718 } 1719 1720 type NotificationChannel_Spec_WebhookPathSelectorHeadersValue struct{} 1721 1722 func (NotificationChannel_Spec_WebhookPathSelectorHeadersValue) FieldPath() *NotificationChannelSpecWebhook_FieldSubPath { 1723 return &NotificationChannelSpecWebhook_FieldSubPath{ 1724 selector: NotificationChannelSpecWebhook_FieldPathSelectorHeaders, 1725 subPath: NewNotificationChannelSpecWebhookHeaderFieldPathBuilder().Value().FieldPath(), 1726 } 1727 } 1728 1729 func (s NotificationChannel_Spec_WebhookPathSelectorHeadersValue) WithValue(value string) *NotificationChannelSpecWebhook_FieldSubPathValue { 1730 return s.FieldPath().WithIValue(value).(*NotificationChannelSpecWebhook_FieldSubPathValue) 1731 } 1732 1733 func (s NotificationChannel_Spec_WebhookPathSelectorHeadersValue) WithArrayOfValues(values []string) *NotificationChannelSpecWebhook_FieldSubPathArrayOfValues { 1734 return s.FieldPath().WithIArrayOfValues(values).(*NotificationChannelSpecWebhook_FieldSubPathArrayOfValues) 1735 } 1736 1737 type NotificationChannelSpecWebhookHeaderFieldPathBuilder struct{} 1738 1739 func NewNotificationChannelSpecWebhookHeaderFieldPathBuilder() NotificationChannelSpecWebhookHeaderFieldPathBuilder { 1740 return NotificationChannelSpecWebhookHeaderFieldPathBuilder{} 1741 } 1742 func (NotificationChannelSpecWebhookHeaderFieldPathBuilder) Key() NotificationChannel_Spec_Webhook_HeaderPathSelectorKey { 1743 return NotificationChannel_Spec_Webhook_HeaderPathSelectorKey{} 1744 } 1745 func (NotificationChannelSpecWebhookHeaderFieldPathBuilder) Value() NotificationChannel_Spec_Webhook_HeaderPathSelectorValue { 1746 return NotificationChannel_Spec_Webhook_HeaderPathSelectorValue{} 1747 } 1748 1749 type NotificationChannel_Spec_Webhook_HeaderPathSelectorKey struct{} 1750 1751 func (NotificationChannel_Spec_Webhook_HeaderPathSelectorKey) FieldPath() *NotificationChannelSpecWebhookHeader_FieldTerminalPath { 1752 return &NotificationChannelSpecWebhookHeader_FieldTerminalPath{selector: NotificationChannelSpecWebhookHeader_FieldPathSelectorKey} 1753 } 1754 1755 func (s NotificationChannel_Spec_Webhook_HeaderPathSelectorKey) WithValue(value string) *NotificationChannelSpecWebhookHeader_FieldTerminalPathValue { 1756 return s.FieldPath().WithIValue(value).(*NotificationChannelSpecWebhookHeader_FieldTerminalPathValue) 1757 } 1758 1759 func (s NotificationChannel_Spec_Webhook_HeaderPathSelectorKey) WithArrayOfValues(values []string) *NotificationChannelSpecWebhookHeader_FieldTerminalPathArrayOfValues { 1760 return s.FieldPath().WithIArrayOfValues(values).(*NotificationChannelSpecWebhookHeader_FieldTerminalPathArrayOfValues) 1761 } 1762 1763 type NotificationChannel_Spec_Webhook_HeaderPathSelectorValue struct{} 1764 1765 func (NotificationChannel_Spec_Webhook_HeaderPathSelectorValue) FieldPath() *NotificationChannelSpecWebhookHeader_FieldTerminalPath { 1766 return &NotificationChannelSpecWebhookHeader_FieldTerminalPath{selector: NotificationChannelSpecWebhookHeader_FieldPathSelectorValue} 1767 } 1768 1769 func (s NotificationChannel_Spec_Webhook_HeaderPathSelectorValue) WithValue(value string) *NotificationChannelSpecWebhookHeader_FieldTerminalPathValue { 1770 return s.FieldPath().WithIValue(value).(*NotificationChannelSpecWebhookHeader_FieldTerminalPathValue) 1771 } 1772 1773 func (s NotificationChannel_Spec_Webhook_HeaderPathSelectorValue) WithArrayOfValues(values []string) *NotificationChannelSpecWebhookHeader_FieldTerminalPathArrayOfValues { 1774 return s.FieldPath().WithIArrayOfValues(values).(*NotificationChannelSpecWebhookHeader_FieldTerminalPathArrayOfValues) 1775 } 1776 1777 type NotificationChannelStateErrorFieldPathBuilder struct{} 1778 1779 func NewNotificationChannelStateErrorFieldPathBuilder() NotificationChannelStateErrorFieldPathBuilder { 1780 return NotificationChannelStateErrorFieldPathBuilder{} 1781 } 1782 func (NotificationChannelStateErrorFieldPathBuilder) Time() NotificationChannel_State_ErrorPathSelectorTime { 1783 return NotificationChannel_State_ErrorPathSelectorTime{} 1784 } 1785 func (NotificationChannelStateErrorFieldPathBuilder) Message() NotificationChannel_State_ErrorPathSelectorMessage { 1786 return NotificationChannel_State_ErrorPathSelectorMessage{} 1787 } 1788 1789 type NotificationChannel_State_ErrorPathSelectorTime struct{} 1790 1791 func (NotificationChannel_State_ErrorPathSelectorTime) FieldPath() *NotificationChannelStateError_FieldTerminalPath { 1792 return &NotificationChannelStateError_FieldTerminalPath{selector: NotificationChannelStateError_FieldPathSelectorTime} 1793 } 1794 1795 func (s NotificationChannel_State_ErrorPathSelectorTime) WithValue(value *timestamppb.Timestamp) *NotificationChannelStateError_FieldTerminalPathValue { 1796 return s.FieldPath().WithIValue(value).(*NotificationChannelStateError_FieldTerminalPathValue) 1797 } 1798 1799 func (s NotificationChannel_State_ErrorPathSelectorTime) WithArrayOfValues(values []*timestamppb.Timestamp) *NotificationChannelStateError_FieldTerminalPathArrayOfValues { 1800 return s.FieldPath().WithIArrayOfValues(values).(*NotificationChannelStateError_FieldTerminalPathArrayOfValues) 1801 } 1802 1803 type NotificationChannel_State_ErrorPathSelectorMessage struct{} 1804 1805 func (NotificationChannel_State_ErrorPathSelectorMessage) FieldPath() *NotificationChannelStateError_FieldTerminalPath { 1806 return &NotificationChannelStateError_FieldTerminalPath{selector: NotificationChannelStateError_FieldPathSelectorMessage} 1807 } 1808 1809 func (s NotificationChannel_State_ErrorPathSelectorMessage) WithValue(value string) *NotificationChannelStateError_FieldTerminalPathValue { 1810 return s.FieldPath().WithIValue(value).(*NotificationChannelStateError_FieldTerminalPathValue) 1811 } 1812 1813 func (s NotificationChannel_State_ErrorPathSelectorMessage) WithArrayOfValues(values []string) *NotificationChannelStateError_FieldTerminalPathArrayOfValues { 1814 return s.FieldPath().WithIArrayOfValues(values).(*NotificationChannelStateError_FieldTerminalPathArrayOfValues) 1815 }