github.com/cloudwan/edgelq-sdk@v1.15.4/secrets/resources/v1/crypto_key/crypto_key.pb.fieldpathbuilder.go (about) 1 // Code generated by protoc-gen-goten-object 2 // File: edgelq/secrets/proto/v1/crypto_key.proto 3 // DO NOT EDIT!!! 4 5 package crypto_key 6 7 // proto imports 8 import ( 9 project "github.com/cloudwan/edgelq-sdk/secrets/resources/v1/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 CryptoKeyFieldPathBuilder struct{} 24 25 func NewCryptoKeyFieldPathBuilder() CryptoKeyFieldPathBuilder { 26 return CryptoKeyFieldPathBuilder{} 27 } 28 func (CryptoKeyFieldPathBuilder) Name() CryptoKeyPathSelectorName { 29 return CryptoKeyPathSelectorName{} 30 } 31 func (CryptoKeyFieldPathBuilder) Metadata() CryptoKeyPathSelectorMetadata { 32 return CryptoKeyPathSelectorMetadata{} 33 } 34 func (CryptoKeyFieldPathBuilder) Key() CryptoKeyPathSelectorKey { 35 return CryptoKeyPathSelectorKey{} 36 } 37 38 type CryptoKeyPathSelectorName struct{} 39 40 func (CryptoKeyPathSelectorName) FieldPath() *CryptoKey_FieldTerminalPath { 41 return &CryptoKey_FieldTerminalPath{selector: CryptoKey_FieldPathSelectorName} 42 } 43 44 func (s CryptoKeyPathSelectorName) WithValue(value *Name) *CryptoKey_FieldTerminalPathValue { 45 return s.FieldPath().WithIValue(value).(*CryptoKey_FieldTerminalPathValue) 46 } 47 48 func (s CryptoKeyPathSelectorName) WithArrayOfValues(values []*Name) *CryptoKey_FieldTerminalPathArrayOfValues { 49 return s.FieldPath().WithIArrayOfValues(values).(*CryptoKey_FieldTerminalPathArrayOfValues) 50 } 51 52 type CryptoKeyPathSelectorMetadata struct{} 53 54 func (CryptoKeyPathSelectorMetadata) FieldPath() *CryptoKey_FieldTerminalPath { 55 return &CryptoKey_FieldTerminalPath{selector: CryptoKey_FieldPathSelectorMetadata} 56 } 57 58 func (s CryptoKeyPathSelectorMetadata) WithValue(value *meta.Meta) *CryptoKey_FieldTerminalPathValue { 59 return s.FieldPath().WithIValue(value).(*CryptoKey_FieldTerminalPathValue) 60 } 61 62 func (s CryptoKeyPathSelectorMetadata) WithArrayOfValues(values []*meta.Meta) *CryptoKey_FieldTerminalPathArrayOfValues { 63 return s.FieldPath().WithIArrayOfValues(values).(*CryptoKey_FieldTerminalPathArrayOfValues) 64 } 65 66 func (CryptoKeyPathSelectorMetadata) WithSubPath(subPath meta.Meta_FieldPath) *CryptoKey_FieldSubPath { 67 return &CryptoKey_FieldSubPath{selector: CryptoKey_FieldPathSelectorMetadata, subPath: subPath} 68 } 69 70 func (s CryptoKeyPathSelectorMetadata) WithSubValue(subPathValue meta.Meta_FieldPathValue) *CryptoKey_FieldSubPathValue { 71 return &CryptoKey_FieldSubPathValue{CryptoKey_FieldPath: s.WithSubPath(subPathValue), subPathValue: subPathValue} 72 } 73 74 func (s CryptoKeyPathSelectorMetadata) WithSubArrayOfValues(subPathArrayOfValues meta.Meta_FieldPathArrayOfValues) *CryptoKey_FieldSubPathArrayOfValues { 75 return &CryptoKey_FieldSubPathArrayOfValues{CryptoKey_FieldPath: s.WithSubPath(subPathArrayOfValues), subPathArrayOfValues: subPathArrayOfValues} 76 } 77 78 func (s CryptoKeyPathSelectorMetadata) WithSubArrayItemValue(subPathArrayItemValue meta.Meta_FieldPathArrayItemValue) *CryptoKey_FieldSubPathArrayItemValue { 79 return &CryptoKey_FieldSubPathArrayItemValue{CryptoKey_FieldPath: s.WithSubPath(subPathArrayItemValue), subPathItemValue: subPathArrayItemValue} 80 } 81 82 func (CryptoKeyPathSelectorMetadata) CreateTime() CryptoKeyPathSelectorMetadataCreateTime { 83 return CryptoKeyPathSelectorMetadataCreateTime{} 84 } 85 86 func (CryptoKeyPathSelectorMetadata) UpdateTime() CryptoKeyPathSelectorMetadataUpdateTime { 87 return CryptoKeyPathSelectorMetadataUpdateTime{} 88 } 89 90 func (CryptoKeyPathSelectorMetadata) DeleteTime() CryptoKeyPathSelectorMetadataDeleteTime { 91 return CryptoKeyPathSelectorMetadataDeleteTime{} 92 } 93 94 func (CryptoKeyPathSelectorMetadata) Uuid() CryptoKeyPathSelectorMetadataUuid { 95 return CryptoKeyPathSelectorMetadataUuid{} 96 } 97 98 func (CryptoKeyPathSelectorMetadata) Tags() CryptoKeyPathSelectorMetadataTags { 99 return CryptoKeyPathSelectorMetadataTags{} 100 } 101 102 func (CryptoKeyPathSelectorMetadata) Labels() CryptoKeyPathSelectorMetadataLabels { 103 return CryptoKeyPathSelectorMetadataLabels{} 104 } 105 106 func (CryptoKeyPathSelectorMetadata) Annotations() CryptoKeyPathSelectorMetadataAnnotations { 107 return CryptoKeyPathSelectorMetadataAnnotations{} 108 } 109 110 func (CryptoKeyPathSelectorMetadata) Generation() CryptoKeyPathSelectorMetadataGeneration { 111 return CryptoKeyPathSelectorMetadataGeneration{} 112 } 113 114 func (CryptoKeyPathSelectorMetadata) ResourceVersion() CryptoKeyPathSelectorMetadataResourceVersion { 115 return CryptoKeyPathSelectorMetadataResourceVersion{} 116 } 117 118 func (CryptoKeyPathSelectorMetadata) OwnerReferences() CryptoKeyPathSelectorMetadataOwnerReferences { 119 return CryptoKeyPathSelectorMetadataOwnerReferences{} 120 } 121 122 func (CryptoKeyPathSelectorMetadata) Shards() CryptoKeyPathSelectorMetadataShards { 123 return CryptoKeyPathSelectorMetadataShards{} 124 } 125 126 func (CryptoKeyPathSelectorMetadata) Syncing() CryptoKeyPathSelectorMetadataSyncing { 127 return CryptoKeyPathSelectorMetadataSyncing{} 128 } 129 130 func (CryptoKeyPathSelectorMetadata) Lifecycle() CryptoKeyPathSelectorMetadataLifecycle { 131 return CryptoKeyPathSelectorMetadataLifecycle{} 132 } 133 134 func (CryptoKeyPathSelectorMetadata) Services() CryptoKeyPathSelectorMetadataServices { 135 return CryptoKeyPathSelectorMetadataServices{} 136 } 137 138 type CryptoKeyPathSelectorMetadataCreateTime struct{} 139 140 func (CryptoKeyPathSelectorMetadataCreateTime) FieldPath() *CryptoKey_FieldSubPath { 141 return &CryptoKey_FieldSubPath{ 142 selector: CryptoKey_FieldPathSelectorMetadata, 143 subPath: meta.NewMetaFieldPathBuilder().CreateTime().FieldPath(), 144 } 145 } 146 147 func (s CryptoKeyPathSelectorMetadataCreateTime) WithValue(value *timestamppb.Timestamp) *CryptoKey_FieldSubPathValue { 148 return s.FieldPath().WithIValue(value).(*CryptoKey_FieldSubPathValue) 149 } 150 151 func (s CryptoKeyPathSelectorMetadataCreateTime) WithArrayOfValues(values []*timestamppb.Timestamp) *CryptoKey_FieldSubPathArrayOfValues { 152 return s.FieldPath().WithIArrayOfValues(values).(*CryptoKey_FieldSubPathArrayOfValues) 153 } 154 155 type CryptoKeyPathSelectorMetadataUpdateTime struct{} 156 157 func (CryptoKeyPathSelectorMetadataUpdateTime) FieldPath() *CryptoKey_FieldSubPath { 158 return &CryptoKey_FieldSubPath{ 159 selector: CryptoKey_FieldPathSelectorMetadata, 160 subPath: meta.NewMetaFieldPathBuilder().UpdateTime().FieldPath(), 161 } 162 } 163 164 func (s CryptoKeyPathSelectorMetadataUpdateTime) WithValue(value *timestamppb.Timestamp) *CryptoKey_FieldSubPathValue { 165 return s.FieldPath().WithIValue(value).(*CryptoKey_FieldSubPathValue) 166 } 167 168 func (s CryptoKeyPathSelectorMetadataUpdateTime) WithArrayOfValues(values []*timestamppb.Timestamp) *CryptoKey_FieldSubPathArrayOfValues { 169 return s.FieldPath().WithIArrayOfValues(values).(*CryptoKey_FieldSubPathArrayOfValues) 170 } 171 172 type CryptoKeyPathSelectorMetadataDeleteTime struct{} 173 174 func (CryptoKeyPathSelectorMetadataDeleteTime) FieldPath() *CryptoKey_FieldSubPath { 175 return &CryptoKey_FieldSubPath{ 176 selector: CryptoKey_FieldPathSelectorMetadata, 177 subPath: meta.NewMetaFieldPathBuilder().DeleteTime().FieldPath(), 178 } 179 } 180 181 func (s CryptoKeyPathSelectorMetadataDeleteTime) WithValue(value *timestamppb.Timestamp) *CryptoKey_FieldSubPathValue { 182 return s.FieldPath().WithIValue(value).(*CryptoKey_FieldSubPathValue) 183 } 184 185 func (s CryptoKeyPathSelectorMetadataDeleteTime) WithArrayOfValues(values []*timestamppb.Timestamp) *CryptoKey_FieldSubPathArrayOfValues { 186 return s.FieldPath().WithIArrayOfValues(values).(*CryptoKey_FieldSubPathArrayOfValues) 187 } 188 189 type CryptoKeyPathSelectorMetadataUuid struct{} 190 191 func (CryptoKeyPathSelectorMetadataUuid) FieldPath() *CryptoKey_FieldSubPath { 192 return &CryptoKey_FieldSubPath{ 193 selector: CryptoKey_FieldPathSelectorMetadata, 194 subPath: meta.NewMetaFieldPathBuilder().Uuid().FieldPath(), 195 } 196 } 197 198 func (s CryptoKeyPathSelectorMetadataUuid) WithValue(value string) *CryptoKey_FieldSubPathValue { 199 return s.FieldPath().WithIValue(value).(*CryptoKey_FieldSubPathValue) 200 } 201 202 func (s CryptoKeyPathSelectorMetadataUuid) WithArrayOfValues(values []string) *CryptoKey_FieldSubPathArrayOfValues { 203 return s.FieldPath().WithIArrayOfValues(values).(*CryptoKey_FieldSubPathArrayOfValues) 204 } 205 206 type CryptoKeyPathSelectorMetadataTags struct{} 207 208 func (CryptoKeyPathSelectorMetadataTags) FieldPath() *CryptoKey_FieldSubPath { 209 return &CryptoKey_FieldSubPath{ 210 selector: CryptoKey_FieldPathSelectorMetadata, 211 subPath: meta.NewMetaFieldPathBuilder().Tags().FieldPath(), 212 } 213 } 214 215 func (s CryptoKeyPathSelectorMetadataTags) WithValue(value []string) *CryptoKey_FieldSubPathValue { 216 return s.FieldPath().WithIValue(value).(*CryptoKey_FieldSubPathValue) 217 } 218 219 func (s CryptoKeyPathSelectorMetadataTags) WithArrayOfValues(values [][]string) *CryptoKey_FieldSubPathArrayOfValues { 220 return s.FieldPath().WithIArrayOfValues(values).(*CryptoKey_FieldSubPathArrayOfValues) 221 } 222 223 func (s CryptoKeyPathSelectorMetadataTags) WithItemValue(value string) *CryptoKey_FieldSubPathArrayItemValue { 224 return s.FieldPath().WithIArrayItemValue(value).(*CryptoKey_FieldSubPathArrayItemValue) 225 } 226 227 type CryptoKeyPathSelectorMetadataLabels struct{} 228 229 func (CryptoKeyPathSelectorMetadataLabels) FieldPath() *CryptoKey_FieldSubPath { 230 return &CryptoKey_FieldSubPath{ 231 selector: CryptoKey_FieldPathSelectorMetadata, 232 subPath: meta.NewMetaFieldPathBuilder().Labels().FieldPath(), 233 } 234 } 235 236 func (s CryptoKeyPathSelectorMetadataLabels) WithValue(value map[string]string) *CryptoKey_FieldSubPathValue { 237 return s.FieldPath().WithIValue(value).(*CryptoKey_FieldSubPathValue) 238 } 239 240 func (s CryptoKeyPathSelectorMetadataLabels) WithArrayOfValues(values []map[string]string) *CryptoKey_FieldSubPathArrayOfValues { 241 return s.FieldPath().WithIArrayOfValues(values).(*CryptoKey_FieldSubPathArrayOfValues) 242 } 243 244 func (CryptoKeyPathSelectorMetadataLabels) WithKey(key string) CryptoKeyMapPathSelectorMetadataLabels { 245 return CryptoKeyMapPathSelectorMetadataLabels{key: key} 246 } 247 248 type CryptoKeyMapPathSelectorMetadataLabels struct { 249 key string 250 } 251 252 func (s CryptoKeyMapPathSelectorMetadataLabels) FieldPath() *CryptoKey_FieldSubPath { 253 return &CryptoKey_FieldSubPath{ 254 selector: CryptoKey_FieldPathSelectorMetadata, 255 subPath: meta.NewMetaFieldPathBuilder().Labels().WithKey(s.key).FieldPath(), 256 } 257 } 258 259 func (s CryptoKeyMapPathSelectorMetadataLabels) WithValue(value string) *CryptoKey_FieldSubPathValue { 260 return s.FieldPath().WithIValue(value).(*CryptoKey_FieldSubPathValue) 261 } 262 263 func (s CryptoKeyMapPathSelectorMetadataLabels) WithArrayOfValues(values []string) *CryptoKey_FieldSubPathArrayOfValues { 264 return s.FieldPath().WithIArrayOfValues(values).(*CryptoKey_FieldSubPathArrayOfValues) 265 } 266 267 type CryptoKeyPathSelectorMetadataAnnotations struct{} 268 269 func (CryptoKeyPathSelectorMetadataAnnotations) FieldPath() *CryptoKey_FieldSubPath { 270 return &CryptoKey_FieldSubPath{ 271 selector: CryptoKey_FieldPathSelectorMetadata, 272 subPath: meta.NewMetaFieldPathBuilder().Annotations().FieldPath(), 273 } 274 } 275 276 func (s CryptoKeyPathSelectorMetadataAnnotations) WithValue(value map[string]string) *CryptoKey_FieldSubPathValue { 277 return s.FieldPath().WithIValue(value).(*CryptoKey_FieldSubPathValue) 278 } 279 280 func (s CryptoKeyPathSelectorMetadataAnnotations) WithArrayOfValues(values []map[string]string) *CryptoKey_FieldSubPathArrayOfValues { 281 return s.FieldPath().WithIArrayOfValues(values).(*CryptoKey_FieldSubPathArrayOfValues) 282 } 283 284 func (CryptoKeyPathSelectorMetadataAnnotations) WithKey(key string) CryptoKeyMapPathSelectorMetadataAnnotations { 285 return CryptoKeyMapPathSelectorMetadataAnnotations{key: key} 286 } 287 288 type CryptoKeyMapPathSelectorMetadataAnnotations struct { 289 key string 290 } 291 292 func (s CryptoKeyMapPathSelectorMetadataAnnotations) FieldPath() *CryptoKey_FieldSubPath { 293 return &CryptoKey_FieldSubPath{ 294 selector: CryptoKey_FieldPathSelectorMetadata, 295 subPath: meta.NewMetaFieldPathBuilder().Annotations().WithKey(s.key).FieldPath(), 296 } 297 } 298 299 func (s CryptoKeyMapPathSelectorMetadataAnnotations) WithValue(value string) *CryptoKey_FieldSubPathValue { 300 return s.FieldPath().WithIValue(value).(*CryptoKey_FieldSubPathValue) 301 } 302 303 func (s CryptoKeyMapPathSelectorMetadataAnnotations) WithArrayOfValues(values []string) *CryptoKey_FieldSubPathArrayOfValues { 304 return s.FieldPath().WithIArrayOfValues(values).(*CryptoKey_FieldSubPathArrayOfValues) 305 } 306 307 type CryptoKeyPathSelectorMetadataGeneration struct{} 308 309 func (CryptoKeyPathSelectorMetadataGeneration) FieldPath() *CryptoKey_FieldSubPath { 310 return &CryptoKey_FieldSubPath{ 311 selector: CryptoKey_FieldPathSelectorMetadata, 312 subPath: meta.NewMetaFieldPathBuilder().Generation().FieldPath(), 313 } 314 } 315 316 func (s CryptoKeyPathSelectorMetadataGeneration) WithValue(value int64) *CryptoKey_FieldSubPathValue { 317 return s.FieldPath().WithIValue(value).(*CryptoKey_FieldSubPathValue) 318 } 319 320 func (s CryptoKeyPathSelectorMetadataGeneration) WithArrayOfValues(values []int64) *CryptoKey_FieldSubPathArrayOfValues { 321 return s.FieldPath().WithIArrayOfValues(values).(*CryptoKey_FieldSubPathArrayOfValues) 322 } 323 324 type CryptoKeyPathSelectorMetadataResourceVersion struct{} 325 326 func (CryptoKeyPathSelectorMetadataResourceVersion) FieldPath() *CryptoKey_FieldSubPath { 327 return &CryptoKey_FieldSubPath{ 328 selector: CryptoKey_FieldPathSelectorMetadata, 329 subPath: meta.NewMetaFieldPathBuilder().ResourceVersion().FieldPath(), 330 } 331 } 332 333 func (s CryptoKeyPathSelectorMetadataResourceVersion) WithValue(value string) *CryptoKey_FieldSubPathValue { 334 return s.FieldPath().WithIValue(value).(*CryptoKey_FieldSubPathValue) 335 } 336 337 func (s CryptoKeyPathSelectorMetadataResourceVersion) WithArrayOfValues(values []string) *CryptoKey_FieldSubPathArrayOfValues { 338 return s.FieldPath().WithIArrayOfValues(values).(*CryptoKey_FieldSubPathArrayOfValues) 339 } 340 341 type CryptoKeyPathSelectorMetadataOwnerReferences struct{} 342 343 func (CryptoKeyPathSelectorMetadataOwnerReferences) FieldPath() *CryptoKey_FieldSubPath { 344 return &CryptoKey_FieldSubPath{ 345 selector: CryptoKey_FieldPathSelectorMetadata, 346 subPath: meta.NewMetaFieldPathBuilder().OwnerReferences().FieldPath(), 347 } 348 } 349 350 func (s CryptoKeyPathSelectorMetadataOwnerReferences) WithValue(value []*meta.OwnerReference) *CryptoKey_FieldSubPathValue { 351 return s.FieldPath().WithIValue(value).(*CryptoKey_FieldSubPathValue) 352 } 353 354 func (s CryptoKeyPathSelectorMetadataOwnerReferences) WithArrayOfValues(values [][]*meta.OwnerReference) *CryptoKey_FieldSubPathArrayOfValues { 355 return s.FieldPath().WithIArrayOfValues(values).(*CryptoKey_FieldSubPathArrayOfValues) 356 } 357 358 func (s CryptoKeyPathSelectorMetadataOwnerReferences) WithItemValue(value *meta.OwnerReference) *CryptoKey_FieldSubPathArrayItemValue { 359 return s.FieldPath().WithIArrayItemValue(value).(*CryptoKey_FieldSubPathArrayItemValue) 360 } 361 362 func (CryptoKeyPathSelectorMetadataOwnerReferences) Kind() CryptoKeyPathSelectorMetadataOwnerReferencesKind { 363 return CryptoKeyPathSelectorMetadataOwnerReferencesKind{} 364 } 365 366 func (CryptoKeyPathSelectorMetadataOwnerReferences) Version() CryptoKeyPathSelectorMetadataOwnerReferencesVersion { 367 return CryptoKeyPathSelectorMetadataOwnerReferencesVersion{} 368 } 369 370 func (CryptoKeyPathSelectorMetadataOwnerReferences) Name() CryptoKeyPathSelectorMetadataOwnerReferencesName { 371 return CryptoKeyPathSelectorMetadataOwnerReferencesName{} 372 } 373 374 func (CryptoKeyPathSelectorMetadataOwnerReferences) Region() CryptoKeyPathSelectorMetadataOwnerReferencesRegion { 375 return CryptoKeyPathSelectorMetadataOwnerReferencesRegion{} 376 } 377 378 func (CryptoKeyPathSelectorMetadataOwnerReferences) Controller() CryptoKeyPathSelectorMetadataOwnerReferencesController { 379 return CryptoKeyPathSelectorMetadataOwnerReferencesController{} 380 } 381 382 func (CryptoKeyPathSelectorMetadataOwnerReferences) RequiresOwnerReference() CryptoKeyPathSelectorMetadataOwnerReferencesRequiresOwnerReference { 383 return CryptoKeyPathSelectorMetadataOwnerReferencesRequiresOwnerReference{} 384 } 385 386 func (CryptoKeyPathSelectorMetadataOwnerReferences) UnsetOnDelete() CryptoKeyPathSelectorMetadataOwnerReferencesUnsetOnDelete { 387 return CryptoKeyPathSelectorMetadataOwnerReferencesUnsetOnDelete{} 388 } 389 390 type CryptoKeyPathSelectorMetadataOwnerReferencesKind struct{} 391 392 func (CryptoKeyPathSelectorMetadataOwnerReferencesKind) FieldPath() *CryptoKey_FieldSubPath { 393 return &CryptoKey_FieldSubPath{ 394 selector: CryptoKey_FieldPathSelectorMetadata, 395 subPath: meta.NewMetaFieldPathBuilder().OwnerReferences().Kind().FieldPath(), 396 } 397 } 398 399 func (s CryptoKeyPathSelectorMetadataOwnerReferencesKind) WithValue(value string) *CryptoKey_FieldSubPathValue { 400 return s.FieldPath().WithIValue(value).(*CryptoKey_FieldSubPathValue) 401 } 402 403 func (s CryptoKeyPathSelectorMetadataOwnerReferencesKind) WithArrayOfValues(values []string) *CryptoKey_FieldSubPathArrayOfValues { 404 return s.FieldPath().WithIArrayOfValues(values).(*CryptoKey_FieldSubPathArrayOfValues) 405 } 406 407 type CryptoKeyPathSelectorMetadataOwnerReferencesVersion struct{} 408 409 func (CryptoKeyPathSelectorMetadataOwnerReferencesVersion) FieldPath() *CryptoKey_FieldSubPath { 410 return &CryptoKey_FieldSubPath{ 411 selector: CryptoKey_FieldPathSelectorMetadata, 412 subPath: meta.NewMetaFieldPathBuilder().OwnerReferences().Version().FieldPath(), 413 } 414 } 415 416 func (s CryptoKeyPathSelectorMetadataOwnerReferencesVersion) WithValue(value string) *CryptoKey_FieldSubPathValue { 417 return s.FieldPath().WithIValue(value).(*CryptoKey_FieldSubPathValue) 418 } 419 420 func (s CryptoKeyPathSelectorMetadataOwnerReferencesVersion) WithArrayOfValues(values []string) *CryptoKey_FieldSubPathArrayOfValues { 421 return s.FieldPath().WithIArrayOfValues(values).(*CryptoKey_FieldSubPathArrayOfValues) 422 } 423 424 type CryptoKeyPathSelectorMetadataOwnerReferencesName struct{} 425 426 func (CryptoKeyPathSelectorMetadataOwnerReferencesName) FieldPath() *CryptoKey_FieldSubPath { 427 return &CryptoKey_FieldSubPath{ 428 selector: CryptoKey_FieldPathSelectorMetadata, 429 subPath: meta.NewMetaFieldPathBuilder().OwnerReferences().Name().FieldPath(), 430 } 431 } 432 433 func (s CryptoKeyPathSelectorMetadataOwnerReferencesName) WithValue(value string) *CryptoKey_FieldSubPathValue { 434 return s.FieldPath().WithIValue(value).(*CryptoKey_FieldSubPathValue) 435 } 436 437 func (s CryptoKeyPathSelectorMetadataOwnerReferencesName) WithArrayOfValues(values []string) *CryptoKey_FieldSubPathArrayOfValues { 438 return s.FieldPath().WithIArrayOfValues(values).(*CryptoKey_FieldSubPathArrayOfValues) 439 } 440 441 type CryptoKeyPathSelectorMetadataOwnerReferencesRegion struct{} 442 443 func (CryptoKeyPathSelectorMetadataOwnerReferencesRegion) FieldPath() *CryptoKey_FieldSubPath { 444 return &CryptoKey_FieldSubPath{ 445 selector: CryptoKey_FieldPathSelectorMetadata, 446 subPath: meta.NewMetaFieldPathBuilder().OwnerReferences().Region().FieldPath(), 447 } 448 } 449 450 func (s CryptoKeyPathSelectorMetadataOwnerReferencesRegion) WithValue(value string) *CryptoKey_FieldSubPathValue { 451 return s.FieldPath().WithIValue(value).(*CryptoKey_FieldSubPathValue) 452 } 453 454 func (s CryptoKeyPathSelectorMetadataOwnerReferencesRegion) WithArrayOfValues(values []string) *CryptoKey_FieldSubPathArrayOfValues { 455 return s.FieldPath().WithIArrayOfValues(values).(*CryptoKey_FieldSubPathArrayOfValues) 456 } 457 458 type CryptoKeyPathSelectorMetadataOwnerReferencesController struct{} 459 460 func (CryptoKeyPathSelectorMetadataOwnerReferencesController) FieldPath() *CryptoKey_FieldSubPath { 461 return &CryptoKey_FieldSubPath{ 462 selector: CryptoKey_FieldPathSelectorMetadata, 463 subPath: meta.NewMetaFieldPathBuilder().OwnerReferences().Controller().FieldPath(), 464 } 465 } 466 467 func (s CryptoKeyPathSelectorMetadataOwnerReferencesController) WithValue(value bool) *CryptoKey_FieldSubPathValue { 468 return s.FieldPath().WithIValue(value).(*CryptoKey_FieldSubPathValue) 469 } 470 471 func (s CryptoKeyPathSelectorMetadataOwnerReferencesController) WithArrayOfValues(values []bool) *CryptoKey_FieldSubPathArrayOfValues { 472 return s.FieldPath().WithIArrayOfValues(values).(*CryptoKey_FieldSubPathArrayOfValues) 473 } 474 475 type CryptoKeyPathSelectorMetadataOwnerReferencesRequiresOwnerReference struct{} 476 477 func (CryptoKeyPathSelectorMetadataOwnerReferencesRequiresOwnerReference) FieldPath() *CryptoKey_FieldSubPath { 478 return &CryptoKey_FieldSubPath{ 479 selector: CryptoKey_FieldPathSelectorMetadata, 480 subPath: meta.NewMetaFieldPathBuilder().OwnerReferences().RequiresOwnerReference().FieldPath(), 481 } 482 } 483 484 func (s CryptoKeyPathSelectorMetadataOwnerReferencesRequiresOwnerReference) WithValue(value bool) *CryptoKey_FieldSubPathValue { 485 return s.FieldPath().WithIValue(value).(*CryptoKey_FieldSubPathValue) 486 } 487 488 func (s CryptoKeyPathSelectorMetadataOwnerReferencesRequiresOwnerReference) WithArrayOfValues(values []bool) *CryptoKey_FieldSubPathArrayOfValues { 489 return s.FieldPath().WithIArrayOfValues(values).(*CryptoKey_FieldSubPathArrayOfValues) 490 } 491 492 type CryptoKeyPathSelectorMetadataOwnerReferencesUnsetOnDelete struct{} 493 494 func (CryptoKeyPathSelectorMetadataOwnerReferencesUnsetOnDelete) FieldPath() *CryptoKey_FieldSubPath { 495 return &CryptoKey_FieldSubPath{ 496 selector: CryptoKey_FieldPathSelectorMetadata, 497 subPath: meta.NewMetaFieldPathBuilder().OwnerReferences().UnsetOnDelete().FieldPath(), 498 } 499 } 500 501 func (s CryptoKeyPathSelectorMetadataOwnerReferencesUnsetOnDelete) WithValue(value bool) *CryptoKey_FieldSubPathValue { 502 return s.FieldPath().WithIValue(value).(*CryptoKey_FieldSubPathValue) 503 } 504 505 func (s CryptoKeyPathSelectorMetadataOwnerReferencesUnsetOnDelete) WithArrayOfValues(values []bool) *CryptoKey_FieldSubPathArrayOfValues { 506 return s.FieldPath().WithIArrayOfValues(values).(*CryptoKey_FieldSubPathArrayOfValues) 507 } 508 509 type CryptoKeyPathSelectorMetadataShards struct{} 510 511 func (CryptoKeyPathSelectorMetadataShards) FieldPath() *CryptoKey_FieldSubPath { 512 return &CryptoKey_FieldSubPath{ 513 selector: CryptoKey_FieldPathSelectorMetadata, 514 subPath: meta.NewMetaFieldPathBuilder().Shards().FieldPath(), 515 } 516 } 517 518 func (s CryptoKeyPathSelectorMetadataShards) WithValue(value map[string]int64) *CryptoKey_FieldSubPathValue { 519 return s.FieldPath().WithIValue(value).(*CryptoKey_FieldSubPathValue) 520 } 521 522 func (s CryptoKeyPathSelectorMetadataShards) WithArrayOfValues(values []map[string]int64) *CryptoKey_FieldSubPathArrayOfValues { 523 return s.FieldPath().WithIArrayOfValues(values).(*CryptoKey_FieldSubPathArrayOfValues) 524 } 525 526 func (CryptoKeyPathSelectorMetadataShards) WithKey(key string) CryptoKeyMapPathSelectorMetadataShards { 527 return CryptoKeyMapPathSelectorMetadataShards{key: key} 528 } 529 530 type CryptoKeyMapPathSelectorMetadataShards struct { 531 key string 532 } 533 534 func (s CryptoKeyMapPathSelectorMetadataShards) FieldPath() *CryptoKey_FieldSubPath { 535 return &CryptoKey_FieldSubPath{ 536 selector: CryptoKey_FieldPathSelectorMetadata, 537 subPath: meta.NewMetaFieldPathBuilder().Shards().WithKey(s.key).FieldPath(), 538 } 539 } 540 541 func (s CryptoKeyMapPathSelectorMetadataShards) WithValue(value int64) *CryptoKey_FieldSubPathValue { 542 return s.FieldPath().WithIValue(value).(*CryptoKey_FieldSubPathValue) 543 } 544 545 func (s CryptoKeyMapPathSelectorMetadataShards) WithArrayOfValues(values []int64) *CryptoKey_FieldSubPathArrayOfValues { 546 return s.FieldPath().WithIArrayOfValues(values).(*CryptoKey_FieldSubPathArrayOfValues) 547 } 548 549 type CryptoKeyPathSelectorMetadataSyncing struct{} 550 551 func (CryptoKeyPathSelectorMetadataSyncing) FieldPath() *CryptoKey_FieldSubPath { 552 return &CryptoKey_FieldSubPath{ 553 selector: CryptoKey_FieldPathSelectorMetadata, 554 subPath: meta.NewMetaFieldPathBuilder().Syncing().FieldPath(), 555 } 556 } 557 558 func (s CryptoKeyPathSelectorMetadataSyncing) WithValue(value *meta.SyncingMeta) *CryptoKey_FieldSubPathValue { 559 return s.FieldPath().WithIValue(value).(*CryptoKey_FieldSubPathValue) 560 } 561 562 func (s CryptoKeyPathSelectorMetadataSyncing) WithArrayOfValues(values []*meta.SyncingMeta) *CryptoKey_FieldSubPathArrayOfValues { 563 return s.FieldPath().WithIArrayOfValues(values).(*CryptoKey_FieldSubPathArrayOfValues) 564 } 565 566 func (CryptoKeyPathSelectorMetadataSyncing) OwningRegion() CryptoKeyPathSelectorMetadataSyncingOwningRegion { 567 return CryptoKeyPathSelectorMetadataSyncingOwningRegion{} 568 } 569 570 func (CryptoKeyPathSelectorMetadataSyncing) Regions() CryptoKeyPathSelectorMetadataSyncingRegions { 571 return CryptoKeyPathSelectorMetadataSyncingRegions{} 572 } 573 574 type CryptoKeyPathSelectorMetadataSyncingOwningRegion struct{} 575 576 func (CryptoKeyPathSelectorMetadataSyncingOwningRegion) FieldPath() *CryptoKey_FieldSubPath { 577 return &CryptoKey_FieldSubPath{ 578 selector: CryptoKey_FieldPathSelectorMetadata, 579 subPath: meta.NewMetaFieldPathBuilder().Syncing().OwningRegion().FieldPath(), 580 } 581 } 582 583 func (s CryptoKeyPathSelectorMetadataSyncingOwningRegion) WithValue(value string) *CryptoKey_FieldSubPathValue { 584 return s.FieldPath().WithIValue(value).(*CryptoKey_FieldSubPathValue) 585 } 586 587 func (s CryptoKeyPathSelectorMetadataSyncingOwningRegion) WithArrayOfValues(values []string) *CryptoKey_FieldSubPathArrayOfValues { 588 return s.FieldPath().WithIArrayOfValues(values).(*CryptoKey_FieldSubPathArrayOfValues) 589 } 590 591 type CryptoKeyPathSelectorMetadataSyncingRegions struct{} 592 593 func (CryptoKeyPathSelectorMetadataSyncingRegions) FieldPath() *CryptoKey_FieldSubPath { 594 return &CryptoKey_FieldSubPath{ 595 selector: CryptoKey_FieldPathSelectorMetadata, 596 subPath: meta.NewMetaFieldPathBuilder().Syncing().Regions().FieldPath(), 597 } 598 } 599 600 func (s CryptoKeyPathSelectorMetadataSyncingRegions) WithValue(value []string) *CryptoKey_FieldSubPathValue { 601 return s.FieldPath().WithIValue(value).(*CryptoKey_FieldSubPathValue) 602 } 603 604 func (s CryptoKeyPathSelectorMetadataSyncingRegions) WithArrayOfValues(values [][]string) *CryptoKey_FieldSubPathArrayOfValues { 605 return s.FieldPath().WithIArrayOfValues(values).(*CryptoKey_FieldSubPathArrayOfValues) 606 } 607 608 func (s CryptoKeyPathSelectorMetadataSyncingRegions) WithItemValue(value string) *CryptoKey_FieldSubPathArrayItemValue { 609 return s.FieldPath().WithIArrayItemValue(value).(*CryptoKey_FieldSubPathArrayItemValue) 610 } 611 612 type CryptoKeyPathSelectorMetadataLifecycle struct{} 613 614 func (CryptoKeyPathSelectorMetadataLifecycle) FieldPath() *CryptoKey_FieldSubPath { 615 return &CryptoKey_FieldSubPath{ 616 selector: CryptoKey_FieldPathSelectorMetadata, 617 subPath: meta.NewMetaFieldPathBuilder().Lifecycle().FieldPath(), 618 } 619 } 620 621 func (s CryptoKeyPathSelectorMetadataLifecycle) WithValue(value *meta.Lifecycle) *CryptoKey_FieldSubPathValue { 622 return s.FieldPath().WithIValue(value).(*CryptoKey_FieldSubPathValue) 623 } 624 625 func (s CryptoKeyPathSelectorMetadataLifecycle) WithArrayOfValues(values []*meta.Lifecycle) *CryptoKey_FieldSubPathArrayOfValues { 626 return s.FieldPath().WithIArrayOfValues(values).(*CryptoKey_FieldSubPathArrayOfValues) 627 } 628 629 func (CryptoKeyPathSelectorMetadataLifecycle) State() CryptoKeyPathSelectorMetadataLifecycleState { 630 return CryptoKeyPathSelectorMetadataLifecycleState{} 631 } 632 633 func (CryptoKeyPathSelectorMetadataLifecycle) BlockDeletion() CryptoKeyPathSelectorMetadataLifecycleBlockDeletion { 634 return CryptoKeyPathSelectorMetadataLifecycleBlockDeletion{} 635 } 636 637 type CryptoKeyPathSelectorMetadataLifecycleState struct{} 638 639 func (CryptoKeyPathSelectorMetadataLifecycleState) FieldPath() *CryptoKey_FieldSubPath { 640 return &CryptoKey_FieldSubPath{ 641 selector: CryptoKey_FieldPathSelectorMetadata, 642 subPath: meta.NewMetaFieldPathBuilder().Lifecycle().State().FieldPath(), 643 } 644 } 645 646 func (s CryptoKeyPathSelectorMetadataLifecycleState) WithValue(value meta.Lifecycle_State) *CryptoKey_FieldSubPathValue { 647 return s.FieldPath().WithIValue(value).(*CryptoKey_FieldSubPathValue) 648 } 649 650 func (s CryptoKeyPathSelectorMetadataLifecycleState) WithArrayOfValues(values []meta.Lifecycle_State) *CryptoKey_FieldSubPathArrayOfValues { 651 return s.FieldPath().WithIArrayOfValues(values).(*CryptoKey_FieldSubPathArrayOfValues) 652 } 653 654 type CryptoKeyPathSelectorMetadataLifecycleBlockDeletion struct{} 655 656 func (CryptoKeyPathSelectorMetadataLifecycleBlockDeletion) FieldPath() *CryptoKey_FieldSubPath { 657 return &CryptoKey_FieldSubPath{ 658 selector: CryptoKey_FieldPathSelectorMetadata, 659 subPath: meta.NewMetaFieldPathBuilder().Lifecycle().BlockDeletion().FieldPath(), 660 } 661 } 662 663 func (s CryptoKeyPathSelectorMetadataLifecycleBlockDeletion) WithValue(value bool) *CryptoKey_FieldSubPathValue { 664 return s.FieldPath().WithIValue(value).(*CryptoKey_FieldSubPathValue) 665 } 666 667 func (s CryptoKeyPathSelectorMetadataLifecycleBlockDeletion) WithArrayOfValues(values []bool) *CryptoKey_FieldSubPathArrayOfValues { 668 return s.FieldPath().WithIArrayOfValues(values).(*CryptoKey_FieldSubPathArrayOfValues) 669 } 670 671 type CryptoKeyPathSelectorMetadataServices struct{} 672 673 func (CryptoKeyPathSelectorMetadataServices) FieldPath() *CryptoKey_FieldSubPath { 674 return &CryptoKey_FieldSubPath{ 675 selector: CryptoKey_FieldPathSelectorMetadata, 676 subPath: meta.NewMetaFieldPathBuilder().Services().FieldPath(), 677 } 678 } 679 680 func (s CryptoKeyPathSelectorMetadataServices) WithValue(value *meta.ServicesInfo) *CryptoKey_FieldSubPathValue { 681 return s.FieldPath().WithIValue(value).(*CryptoKey_FieldSubPathValue) 682 } 683 684 func (s CryptoKeyPathSelectorMetadataServices) WithArrayOfValues(values []*meta.ServicesInfo) *CryptoKey_FieldSubPathArrayOfValues { 685 return s.FieldPath().WithIArrayOfValues(values).(*CryptoKey_FieldSubPathArrayOfValues) 686 } 687 688 func (CryptoKeyPathSelectorMetadataServices) OwningService() CryptoKeyPathSelectorMetadataServicesOwningService { 689 return CryptoKeyPathSelectorMetadataServicesOwningService{} 690 } 691 692 func (CryptoKeyPathSelectorMetadataServices) AllowedServices() CryptoKeyPathSelectorMetadataServicesAllowedServices { 693 return CryptoKeyPathSelectorMetadataServicesAllowedServices{} 694 } 695 696 type CryptoKeyPathSelectorMetadataServicesOwningService struct{} 697 698 func (CryptoKeyPathSelectorMetadataServicesOwningService) FieldPath() *CryptoKey_FieldSubPath { 699 return &CryptoKey_FieldSubPath{ 700 selector: CryptoKey_FieldPathSelectorMetadata, 701 subPath: meta.NewMetaFieldPathBuilder().Services().OwningService().FieldPath(), 702 } 703 } 704 705 func (s CryptoKeyPathSelectorMetadataServicesOwningService) WithValue(value string) *CryptoKey_FieldSubPathValue { 706 return s.FieldPath().WithIValue(value).(*CryptoKey_FieldSubPathValue) 707 } 708 709 func (s CryptoKeyPathSelectorMetadataServicesOwningService) WithArrayOfValues(values []string) *CryptoKey_FieldSubPathArrayOfValues { 710 return s.FieldPath().WithIArrayOfValues(values).(*CryptoKey_FieldSubPathArrayOfValues) 711 } 712 713 type CryptoKeyPathSelectorMetadataServicesAllowedServices struct{} 714 715 func (CryptoKeyPathSelectorMetadataServicesAllowedServices) FieldPath() *CryptoKey_FieldSubPath { 716 return &CryptoKey_FieldSubPath{ 717 selector: CryptoKey_FieldPathSelectorMetadata, 718 subPath: meta.NewMetaFieldPathBuilder().Services().AllowedServices().FieldPath(), 719 } 720 } 721 722 func (s CryptoKeyPathSelectorMetadataServicesAllowedServices) WithValue(value []string) *CryptoKey_FieldSubPathValue { 723 return s.FieldPath().WithIValue(value).(*CryptoKey_FieldSubPathValue) 724 } 725 726 func (s CryptoKeyPathSelectorMetadataServicesAllowedServices) WithArrayOfValues(values [][]string) *CryptoKey_FieldSubPathArrayOfValues { 727 return s.FieldPath().WithIArrayOfValues(values).(*CryptoKey_FieldSubPathArrayOfValues) 728 } 729 730 func (s CryptoKeyPathSelectorMetadataServicesAllowedServices) WithItemValue(value string) *CryptoKey_FieldSubPathArrayItemValue { 731 return s.FieldPath().WithIArrayItemValue(value).(*CryptoKey_FieldSubPathArrayItemValue) 732 } 733 734 type CryptoKeyPathSelectorKey struct{} 735 736 func (CryptoKeyPathSelectorKey) FieldPath() *CryptoKey_FieldTerminalPath { 737 return &CryptoKey_FieldTerminalPath{selector: CryptoKey_FieldPathSelectorKey} 738 } 739 740 func (s CryptoKeyPathSelectorKey) WithValue(value string) *CryptoKey_FieldTerminalPathValue { 741 return s.FieldPath().WithIValue(value).(*CryptoKey_FieldTerminalPathValue) 742 } 743 744 func (s CryptoKeyPathSelectorKey) WithArrayOfValues(values []string) *CryptoKey_FieldTerminalPathArrayOfValues { 745 return s.FieldPath().WithIArrayOfValues(values).(*CryptoKey_FieldTerminalPathArrayOfValues) 746 }