/
proto_deepcopy.go
43 lines (37 loc) · 1.03 KB
/
proto_deepcopy.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
// Code generated by skv2. DO NOT EDIT.
// This file contains generated Deepcopy methods for proto-based Spec and Status fields
package v1
import (
proto "github.com/golang/protobuf/proto"
"github.com/solo-io/protoc-gen-ext/pkg/clone"
)
// DeepCopyInto for the Paint.Spec
func (in *PaintSpec) DeepCopyInto(out *PaintSpec) {
var p *PaintSpec
if h, ok := interface{}(in).(clone.Cloner); ok {
p = h.Clone().(*PaintSpec)
} else {
p = proto.Clone(in).(*PaintSpec)
}
*out = *p
}
// DeepCopyInto for the Paint.Status
func (in *PaintStatus) DeepCopyInto(out *PaintStatus) {
var p *PaintStatus
if h, ok := interface{}(in).(clone.Cloner); ok {
p = h.Clone().(*PaintStatus)
} else {
p = proto.Clone(in).(*PaintStatus)
}
*out = *p
}
// DeepCopyInto for the ClusterResource.Spec
func (in *ClusterResourceSpec) DeepCopyInto(out *ClusterResourceSpec) {
var p *ClusterResourceSpec
if h, ok := interface{}(in).(clone.Cloner); ok {
p = h.Clone().(*ClusterResourceSpec)
} else {
p = proto.Clone(in).(*ClusterResourceSpec)
}
*out = *p
}