github.com/cloudwan/edgelq-sdk@v1.15.4/applications/resources/v1alpha2/pod/pod.pb.object_ext.go (about) 1 // Code generated by protoc-gen-goten-object 2 // File: edgelq/applications/proto/v1alpha2/pod.proto 3 // DO NOT EDIT!!! 4 5 package pod 6 7 import ( 8 "fmt" 9 "sort" 10 11 "google.golang.org/protobuf/proto" 12 googlefieldmaskpb "google.golang.org/protobuf/types/known/fieldmaskpb" 13 14 gotenobject "github.com/cloudwan/goten-sdk/runtime/object" 15 ) 16 17 // proto imports 18 import ( 19 common "github.com/cloudwan/edgelq-sdk/applications/resources/v1alpha2/common" 20 distribution "github.com/cloudwan/edgelq-sdk/applications/resources/v1alpha2/distribution" 21 project "github.com/cloudwan/edgelq-sdk/applications/resources/v1alpha2/project" 22 meta "github.com/cloudwan/goten-sdk/types/meta" 23 timestamppb "google.golang.org/protobuf/types/known/timestamppb" 24 ) 25 26 // ensure the imports are used 27 var ( 28 _ = new(fmt.Stringer) 29 _ = new(sort.Interface) 30 31 _ = new(proto.Message) 32 _ = googlefieldmaskpb.FieldMask{} 33 34 _ = new(gotenobject.FieldPath) 35 ) 36 37 // make sure we're using proto imports 38 var ( 39 _ = &common.PodSpec{} 40 _ = &distribution.Distribution{} 41 _ = &project.Project{} 42 _ = ×tamppb.Timestamp{} 43 _ = &meta.Meta{} 44 ) 45 46 func (o *Pod) GotenObjectExt() {} 47 48 func (o *Pod) MakeFullFieldMask() *Pod_FieldMask { 49 return FullPod_FieldMask() 50 } 51 52 func (o *Pod) MakeRawFullFieldMask() gotenobject.FieldMask { 53 return FullPod_FieldMask() 54 } 55 56 func (o *Pod) MakeDiffFieldMask(other *Pod) *Pod_FieldMask { 57 if o == nil && other == nil { 58 return &Pod_FieldMask{} 59 } 60 if o == nil || other == nil { 61 return FullPod_FieldMask() 62 } 63 64 res := &Pod_FieldMask{} 65 if o.GetName().String() != other.GetName().String() { 66 res.Paths = append(res.Paths, &Pod_FieldTerminalPath{selector: Pod_FieldPathSelectorName}) 67 } 68 if o.GetDisplayName() != other.GetDisplayName() { 69 res.Paths = append(res.Paths, &Pod_FieldTerminalPath{selector: Pod_FieldPathSelectorDisplayName}) 70 } 71 { 72 subMask := o.GetMetadata().MakeDiffFieldMask(other.GetMetadata()) 73 if subMask.IsFull() { 74 res.Paths = append(res.Paths, &Pod_FieldTerminalPath{selector: Pod_FieldPathSelectorMetadata}) 75 } else { 76 for _, subpath := range subMask.Paths { 77 res.Paths = append(res.Paths, &Pod_FieldSubPath{selector: Pod_FieldPathSelectorMetadata, subPath: subpath}) 78 } 79 } 80 } 81 { 82 subMask := o.GetSpec().MakeDiffFieldMask(other.GetSpec()) 83 if subMask.IsFull() { 84 res.Paths = append(res.Paths, &Pod_FieldTerminalPath{selector: Pod_FieldPathSelectorSpec}) 85 } else { 86 for _, subpath := range subMask.Paths { 87 res.Paths = append(res.Paths, &Pod_FieldSubPath{selector: Pod_FieldPathSelectorSpec, subPath: subpath}) 88 } 89 } 90 } 91 if o.GetDistribution().String() != other.GetDistribution().String() { 92 res.Paths = append(res.Paths, &Pod_FieldTerminalPath{selector: Pod_FieldPathSelectorDistribution}) 93 } 94 { 95 subMask := o.GetStatus().MakeDiffFieldMask(other.GetStatus()) 96 if subMask.IsFull() { 97 res.Paths = append(res.Paths, &Pod_FieldTerminalPath{selector: Pod_FieldPathSelectorStatus}) 98 } else { 99 for _, subpath := range subMask.Paths { 100 res.Paths = append(res.Paths, &Pod_FieldSubPath{selector: Pod_FieldPathSelectorStatus, subPath: subpath}) 101 } 102 } 103 } 104 return res 105 } 106 107 func (o *Pod) MakeRawDiffFieldMask(other gotenobject.GotenObjectExt) gotenobject.FieldMask { 108 return o.MakeDiffFieldMask(other.(*Pod)) 109 } 110 111 func (o *Pod) Clone() *Pod { 112 if o == nil { 113 return nil 114 } 115 result := &Pod{} 116 if o.Name == nil { 117 result.Name = nil 118 } else if data, err := o.Name.ProtoString(); err != nil { 119 panic(err) 120 } else { 121 result.Name = &Name{} 122 if err := result.Name.ParseProtoString(data); err != nil { 123 panic(err) 124 } 125 } 126 result.DisplayName = o.DisplayName 127 result.Metadata = o.Metadata.Clone() 128 result.Spec = o.Spec.Clone() 129 if o.Distribution == nil { 130 result.Distribution = nil 131 } else if data, err := o.Distribution.ProtoString(); err != nil { 132 panic(err) 133 } else { 134 result.Distribution = &distribution.Reference{} 135 if err := result.Distribution.ParseProtoString(data); err != nil { 136 panic(err) 137 } 138 } 139 result.Status = o.Status.Clone() 140 return result 141 } 142 143 func (o *Pod) CloneRaw() gotenobject.GotenObjectExt { 144 return o.Clone() 145 } 146 147 func (o *Pod) Merge(source *Pod) { 148 if source.GetName() != nil { 149 if data, err := source.GetName().ProtoString(); err != nil { 150 panic(err) 151 } else { 152 o.Name = &Name{} 153 if err := o.Name.ParseProtoString(data); err != nil { 154 panic(err) 155 } 156 } 157 } else { 158 o.Name = nil 159 } 160 o.DisplayName = source.GetDisplayName() 161 if source.GetMetadata() != nil { 162 if o.Metadata == nil { 163 o.Metadata = new(meta.Meta) 164 } 165 o.Metadata.Merge(source.GetMetadata()) 166 } 167 if source.GetSpec() != nil { 168 if o.Spec == nil { 169 o.Spec = new(common.PodSpec) 170 } 171 o.Spec.Merge(source.GetSpec()) 172 } 173 if source.GetDistribution() != nil { 174 if data, err := source.GetDistribution().ProtoString(); err != nil { 175 panic(err) 176 } else { 177 o.Distribution = &distribution.Reference{} 178 if err := o.Distribution.ParseProtoString(data); err != nil { 179 panic(err) 180 } 181 } 182 } else { 183 o.Distribution = nil 184 } 185 if source.GetStatus() != nil { 186 if o.Status == nil { 187 o.Status = new(Pod_Status) 188 } 189 o.Status.Merge(source.GetStatus()) 190 } 191 } 192 193 func (o *Pod) MergeRaw(source gotenobject.GotenObjectExt) { 194 o.Merge(source.(*Pod)) 195 } 196 197 func (o *Pod_Status) GotenObjectExt() {} 198 199 func (o *Pod_Status) MakeFullFieldMask() *Pod_Status_FieldMask { 200 return FullPod_Status_FieldMask() 201 } 202 203 func (o *Pod_Status) MakeRawFullFieldMask() gotenobject.FieldMask { 204 return FullPod_Status_FieldMask() 205 } 206 207 func (o *Pod_Status) MakeDiffFieldMask(other *Pod_Status) *Pod_Status_FieldMask { 208 if o == nil && other == nil { 209 return &Pod_Status_FieldMask{} 210 } 211 if o == nil || other == nil { 212 return FullPod_Status_FieldMask() 213 } 214 215 res := &Pod_Status_FieldMask{} 216 if o.GetPhase() != other.GetPhase() { 217 res.Paths = append(res.Paths, &PodStatus_FieldTerminalPath{selector: PodStatus_FieldPathSelectorPhase}) 218 } 219 220 if len(o.GetContainerStatuses()) == len(other.GetContainerStatuses()) { 221 for i, lValue := range o.GetContainerStatuses() { 222 rValue := other.GetContainerStatuses()[i] 223 if len(lValue.MakeDiffFieldMask(rValue).Paths) > 0 { 224 res.Paths = append(res.Paths, &PodStatus_FieldTerminalPath{selector: PodStatus_FieldPathSelectorContainerStatuses}) 225 break 226 } 227 } 228 } else { 229 res.Paths = append(res.Paths, &PodStatus_FieldTerminalPath{selector: PodStatus_FieldPathSelectorContainerStatuses}) 230 } 231 if o.GetError() != other.GetError() { 232 res.Paths = append(res.Paths, &PodStatus_FieldTerminalPath{selector: PodStatus_FieldPathSelectorError}) 233 } 234 return res 235 } 236 237 func (o *Pod_Status) MakeRawDiffFieldMask(other gotenobject.GotenObjectExt) gotenobject.FieldMask { 238 return o.MakeDiffFieldMask(other.(*Pod_Status)) 239 } 240 241 func (o *Pod_Status) Clone() *Pod_Status { 242 if o == nil { 243 return nil 244 } 245 result := &Pod_Status{} 246 result.Phase = o.Phase 247 result.ContainerStatuses = make([]*Pod_Status_Container, len(o.ContainerStatuses)) 248 for i, sourceValue := range o.ContainerStatuses { 249 result.ContainerStatuses[i] = sourceValue.Clone() 250 } 251 result.Error = o.Error 252 return result 253 } 254 255 func (o *Pod_Status) CloneRaw() gotenobject.GotenObjectExt { 256 return o.Clone() 257 } 258 259 func (o *Pod_Status) Merge(source *Pod_Status) { 260 o.Phase = source.GetPhase() 261 for _, sourceValue := range source.GetContainerStatuses() { 262 exists := false 263 for _, currentValue := range o.ContainerStatuses { 264 if proto.Equal(sourceValue, currentValue) { 265 exists = true 266 break 267 } 268 } 269 if !exists { 270 var newDstElement *Pod_Status_Container 271 if sourceValue != nil { 272 newDstElement = new(Pod_Status_Container) 273 newDstElement.Merge(sourceValue) 274 } 275 o.ContainerStatuses = append(o.ContainerStatuses, newDstElement) 276 } 277 } 278 279 o.Error = source.GetError() 280 } 281 282 func (o *Pod_Status) MergeRaw(source gotenobject.GotenObjectExt) { 283 o.Merge(source.(*Pod_Status)) 284 } 285 286 func (o *Pod_Status_Container) GotenObjectExt() {} 287 288 func (o *Pod_Status_Container) MakeFullFieldMask() *Pod_Status_Container_FieldMask { 289 return FullPod_Status_Container_FieldMask() 290 } 291 292 func (o *Pod_Status_Container) MakeRawFullFieldMask() gotenobject.FieldMask { 293 return FullPod_Status_Container_FieldMask() 294 } 295 296 func (o *Pod_Status_Container) MakeDiffFieldMask(other *Pod_Status_Container) *Pod_Status_Container_FieldMask { 297 if o == nil && other == nil { 298 return &Pod_Status_Container_FieldMask{} 299 } 300 if o == nil || other == nil { 301 return FullPod_Status_Container_FieldMask() 302 } 303 304 res := &Pod_Status_Container_FieldMask{} 305 if o.GetName() != other.GetName() { 306 res.Paths = append(res.Paths, &PodStatusContainer_FieldTerminalPath{selector: PodStatusContainer_FieldPathSelectorName}) 307 } 308 if o.GetState() != other.GetState() { 309 res.Paths = append(res.Paths, &PodStatusContainer_FieldTerminalPath{selector: PodStatusContainer_FieldPathSelectorState}) 310 } 311 { 312 subMask := o.GetWaiting().MakeDiffFieldMask(other.GetWaiting()) 313 if subMask.IsFull() { 314 res.Paths = append(res.Paths, &PodStatusContainer_FieldTerminalPath{selector: PodStatusContainer_FieldPathSelectorWaiting}) 315 } else { 316 for _, subpath := range subMask.Paths { 317 res.Paths = append(res.Paths, &PodStatusContainer_FieldSubPath{selector: PodStatusContainer_FieldPathSelectorWaiting, subPath: subpath}) 318 } 319 } 320 } 321 { 322 subMask := o.GetRunning().MakeDiffFieldMask(other.GetRunning()) 323 if subMask.IsFull() { 324 res.Paths = append(res.Paths, &PodStatusContainer_FieldTerminalPath{selector: PodStatusContainer_FieldPathSelectorRunning}) 325 } else { 326 for _, subpath := range subMask.Paths { 327 res.Paths = append(res.Paths, &PodStatusContainer_FieldSubPath{selector: PodStatusContainer_FieldPathSelectorRunning, subPath: subpath}) 328 } 329 } 330 } 331 { 332 subMask := o.GetTerminated().MakeDiffFieldMask(other.GetTerminated()) 333 if subMask.IsFull() { 334 res.Paths = append(res.Paths, &PodStatusContainer_FieldTerminalPath{selector: PodStatusContainer_FieldPathSelectorTerminated}) 335 } else { 336 for _, subpath := range subMask.Paths { 337 res.Paths = append(res.Paths, &PodStatusContainer_FieldSubPath{selector: PodStatusContainer_FieldPathSelectorTerminated, subPath: subpath}) 338 } 339 } 340 } 341 return res 342 } 343 344 func (o *Pod_Status_Container) MakeRawDiffFieldMask(other gotenobject.GotenObjectExt) gotenobject.FieldMask { 345 return o.MakeDiffFieldMask(other.(*Pod_Status_Container)) 346 } 347 348 func (o *Pod_Status_Container) Clone() *Pod_Status_Container { 349 if o == nil { 350 return nil 351 } 352 result := &Pod_Status_Container{} 353 result.Name = o.Name 354 result.State = o.State 355 result.Waiting = o.Waiting.Clone() 356 result.Running = o.Running.Clone() 357 result.Terminated = o.Terminated.Clone() 358 return result 359 } 360 361 func (o *Pod_Status_Container) CloneRaw() gotenobject.GotenObjectExt { 362 return o.Clone() 363 } 364 365 func (o *Pod_Status_Container) Merge(source *Pod_Status_Container) { 366 o.Name = source.GetName() 367 o.State = source.GetState() 368 if source.GetWaiting() != nil { 369 if o.Waiting == nil { 370 o.Waiting = new(Pod_Status_Container_StateWaiting) 371 } 372 o.Waiting.Merge(source.GetWaiting()) 373 } 374 if source.GetRunning() != nil { 375 if o.Running == nil { 376 o.Running = new(Pod_Status_Container_StateRunning) 377 } 378 o.Running.Merge(source.GetRunning()) 379 } 380 if source.GetTerminated() != nil { 381 if o.Terminated == nil { 382 o.Terminated = new(Pod_Status_Container_StateTerminated) 383 } 384 o.Terminated.Merge(source.GetTerminated()) 385 } 386 } 387 388 func (o *Pod_Status_Container) MergeRaw(source gotenobject.GotenObjectExt) { 389 o.Merge(source.(*Pod_Status_Container)) 390 } 391 392 func (o *Pod_Status_Container_StateWaiting) GotenObjectExt() {} 393 394 func (o *Pod_Status_Container_StateWaiting) MakeFullFieldMask() *Pod_Status_Container_StateWaiting_FieldMask { 395 return FullPod_Status_Container_StateWaiting_FieldMask() 396 } 397 398 func (o *Pod_Status_Container_StateWaiting) MakeRawFullFieldMask() gotenobject.FieldMask { 399 return FullPod_Status_Container_StateWaiting_FieldMask() 400 } 401 402 func (o *Pod_Status_Container_StateWaiting) MakeDiffFieldMask(other *Pod_Status_Container_StateWaiting) *Pod_Status_Container_StateWaiting_FieldMask { 403 if o == nil && other == nil { 404 return &Pod_Status_Container_StateWaiting_FieldMask{} 405 } 406 if o == nil || other == nil { 407 return FullPod_Status_Container_StateWaiting_FieldMask() 408 } 409 410 res := &Pod_Status_Container_StateWaiting_FieldMask{} 411 if o.GetReason() != other.GetReason() { 412 res.Paths = append(res.Paths, &PodStatusContainerStateWaiting_FieldTerminalPath{selector: PodStatusContainerStateWaiting_FieldPathSelectorReason}) 413 } 414 if o.GetMessage() != other.GetMessage() { 415 res.Paths = append(res.Paths, &PodStatusContainerStateWaiting_FieldTerminalPath{selector: PodStatusContainerStateWaiting_FieldPathSelectorMessage}) 416 } 417 return res 418 } 419 420 func (o *Pod_Status_Container_StateWaiting) MakeRawDiffFieldMask(other gotenobject.GotenObjectExt) gotenobject.FieldMask { 421 return o.MakeDiffFieldMask(other.(*Pod_Status_Container_StateWaiting)) 422 } 423 424 func (o *Pod_Status_Container_StateWaiting) Clone() *Pod_Status_Container_StateWaiting { 425 if o == nil { 426 return nil 427 } 428 result := &Pod_Status_Container_StateWaiting{} 429 result.Reason = o.Reason 430 result.Message = o.Message 431 return result 432 } 433 434 func (o *Pod_Status_Container_StateWaiting) CloneRaw() gotenobject.GotenObjectExt { 435 return o.Clone() 436 } 437 438 func (o *Pod_Status_Container_StateWaiting) Merge(source *Pod_Status_Container_StateWaiting) { 439 o.Reason = source.GetReason() 440 o.Message = source.GetMessage() 441 } 442 443 func (o *Pod_Status_Container_StateWaiting) MergeRaw(source gotenobject.GotenObjectExt) { 444 o.Merge(source.(*Pod_Status_Container_StateWaiting)) 445 } 446 447 func (o *Pod_Status_Container_StateRunning) GotenObjectExt() {} 448 449 func (o *Pod_Status_Container_StateRunning) MakeFullFieldMask() *Pod_Status_Container_StateRunning_FieldMask { 450 return FullPod_Status_Container_StateRunning_FieldMask() 451 } 452 453 func (o *Pod_Status_Container_StateRunning) MakeRawFullFieldMask() gotenobject.FieldMask { 454 return FullPod_Status_Container_StateRunning_FieldMask() 455 } 456 457 func (o *Pod_Status_Container_StateRunning) MakeDiffFieldMask(other *Pod_Status_Container_StateRunning) *Pod_Status_Container_StateRunning_FieldMask { 458 if o == nil && other == nil { 459 return &Pod_Status_Container_StateRunning_FieldMask{} 460 } 461 if o == nil || other == nil { 462 return FullPod_Status_Container_StateRunning_FieldMask() 463 } 464 465 res := &Pod_Status_Container_StateRunning_FieldMask{} 466 if !proto.Equal(o.GetStartedAt(), other.GetStartedAt()) { 467 res.Paths = append(res.Paths, &PodStatusContainerStateRunning_FieldTerminalPath{selector: PodStatusContainerStateRunning_FieldPathSelectorStartedAt}) 468 } 469 return res 470 } 471 472 func (o *Pod_Status_Container_StateRunning) MakeRawDiffFieldMask(other gotenobject.GotenObjectExt) gotenobject.FieldMask { 473 return o.MakeDiffFieldMask(other.(*Pod_Status_Container_StateRunning)) 474 } 475 476 func (o *Pod_Status_Container_StateRunning) Clone() *Pod_Status_Container_StateRunning { 477 if o == nil { 478 return nil 479 } 480 result := &Pod_Status_Container_StateRunning{} 481 result.StartedAt = proto.Clone(o.StartedAt).(*timestamppb.Timestamp) 482 return result 483 } 484 485 func (o *Pod_Status_Container_StateRunning) CloneRaw() gotenobject.GotenObjectExt { 486 return o.Clone() 487 } 488 489 func (o *Pod_Status_Container_StateRunning) Merge(source *Pod_Status_Container_StateRunning) { 490 if source.GetStartedAt() != nil { 491 if o.StartedAt == nil { 492 o.StartedAt = new(timestamppb.Timestamp) 493 } 494 proto.Merge(o.StartedAt, source.GetStartedAt()) 495 } 496 } 497 498 func (o *Pod_Status_Container_StateRunning) MergeRaw(source gotenobject.GotenObjectExt) { 499 o.Merge(source.(*Pod_Status_Container_StateRunning)) 500 } 501 502 func (o *Pod_Status_Container_StateTerminated) GotenObjectExt() {} 503 504 func (o *Pod_Status_Container_StateTerminated) MakeFullFieldMask() *Pod_Status_Container_StateTerminated_FieldMask { 505 return FullPod_Status_Container_StateTerminated_FieldMask() 506 } 507 508 func (o *Pod_Status_Container_StateTerminated) MakeRawFullFieldMask() gotenobject.FieldMask { 509 return FullPod_Status_Container_StateTerminated_FieldMask() 510 } 511 512 func (o *Pod_Status_Container_StateTerminated) MakeDiffFieldMask(other *Pod_Status_Container_StateTerminated) *Pod_Status_Container_StateTerminated_FieldMask { 513 if o == nil && other == nil { 514 return &Pod_Status_Container_StateTerminated_FieldMask{} 515 } 516 if o == nil || other == nil { 517 return FullPod_Status_Container_StateTerminated_FieldMask() 518 } 519 520 res := &Pod_Status_Container_StateTerminated_FieldMask{} 521 if o.GetExitCode() != other.GetExitCode() { 522 res.Paths = append(res.Paths, &PodStatusContainerStateTerminated_FieldTerminalPath{selector: PodStatusContainerStateTerminated_FieldPathSelectorExitCode}) 523 } 524 if o.GetSignal() != other.GetSignal() { 525 res.Paths = append(res.Paths, &PodStatusContainerStateTerminated_FieldTerminalPath{selector: PodStatusContainerStateTerminated_FieldPathSelectorSignal}) 526 } 527 if o.GetReason() != other.GetReason() { 528 res.Paths = append(res.Paths, &PodStatusContainerStateTerminated_FieldTerminalPath{selector: PodStatusContainerStateTerminated_FieldPathSelectorReason}) 529 } 530 if o.GetMessage() != other.GetMessage() { 531 res.Paths = append(res.Paths, &PodStatusContainerStateTerminated_FieldTerminalPath{selector: PodStatusContainerStateTerminated_FieldPathSelectorMessage}) 532 } 533 if !proto.Equal(o.GetStartedAt(), other.GetStartedAt()) { 534 res.Paths = append(res.Paths, &PodStatusContainerStateTerminated_FieldTerminalPath{selector: PodStatusContainerStateTerminated_FieldPathSelectorStartedAt}) 535 } 536 if !proto.Equal(o.GetFinishedAt(), other.GetFinishedAt()) { 537 res.Paths = append(res.Paths, &PodStatusContainerStateTerminated_FieldTerminalPath{selector: PodStatusContainerStateTerminated_FieldPathSelectorFinishedAt}) 538 } 539 if o.GetContainerId() != other.GetContainerId() { 540 res.Paths = append(res.Paths, &PodStatusContainerStateTerminated_FieldTerminalPath{selector: PodStatusContainerStateTerminated_FieldPathSelectorContainerId}) 541 } 542 return res 543 } 544 545 func (o *Pod_Status_Container_StateTerminated) MakeRawDiffFieldMask(other gotenobject.GotenObjectExt) gotenobject.FieldMask { 546 return o.MakeDiffFieldMask(other.(*Pod_Status_Container_StateTerminated)) 547 } 548 549 func (o *Pod_Status_Container_StateTerminated) Clone() *Pod_Status_Container_StateTerminated { 550 if o == nil { 551 return nil 552 } 553 result := &Pod_Status_Container_StateTerminated{} 554 result.ExitCode = o.ExitCode 555 result.Signal = o.Signal 556 result.Reason = o.Reason 557 result.Message = o.Message 558 result.StartedAt = proto.Clone(o.StartedAt).(*timestamppb.Timestamp) 559 result.FinishedAt = proto.Clone(o.FinishedAt).(*timestamppb.Timestamp) 560 result.ContainerId = o.ContainerId 561 return result 562 } 563 564 func (o *Pod_Status_Container_StateTerminated) CloneRaw() gotenobject.GotenObjectExt { 565 return o.Clone() 566 } 567 568 func (o *Pod_Status_Container_StateTerminated) Merge(source *Pod_Status_Container_StateTerminated) { 569 o.ExitCode = source.GetExitCode() 570 o.Signal = source.GetSignal() 571 o.Reason = source.GetReason() 572 o.Message = source.GetMessage() 573 if source.GetStartedAt() != nil { 574 if o.StartedAt == nil { 575 o.StartedAt = new(timestamppb.Timestamp) 576 } 577 proto.Merge(o.StartedAt, source.GetStartedAt()) 578 } 579 if source.GetFinishedAt() != nil { 580 if o.FinishedAt == nil { 581 o.FinishedAt = new(timestamppb.Timestamp) 582 } 583 proto.Merge(o.FinishedAt, source.GetFinishedAt()) 584 } 585 o.ContainerId = source.GetContainerId() 586 } 587 588 func (o *Pod_Status_Container_StateTerminated) MergeRaw(source gotenobject.GotenObjectExt) { 589 o.Merge(source.(*Pod_Status_Container_StateTerminated)) 590 }