consul/proto-public/pbresource/annotations_deepcopy.gen.go
Ashwin Venkatesh c2a0d4f9ca
Create DeepCopy() and Json Marshal/Unmarshal for proto-public (#19015)
* Override Marshal/UnmarshalJSON for proto-public types
* Generate Deepcopy() for proto-public types for Kubernetes CRDs.
2023-10-13 14:55:58 +00:00

28 lines
873 B
Go

// Code generated by protoc-gen-deepcopy. DO NOT EDIT.
package pbresource
import (
proto "google.golang.org/protobuf/proto"
)
// DeepCopyInto supports using ResourceTypeSpec within kubernetes types, where deepcopy-gen is used.
func (in *ResourceTypeSpec) DeepCopyInto(out *ResourceTypeSpec) {
p := proto.Clone(in).(*ResourceTypeSpec)
*out = *p
}
// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ResourceTypeSpec. Required by controller-gen.
func (in *ResourceTypeSpec) DeepCopy() *ResourceTypeSpec {
if in == nil {
return nil
}
out := new(ResourceTypeSpec)
in.DeepCopyInto(out)
return out
}
// DeepCopyInterface is an autogenerated deepcopy function, copying the receiver, creating a new ResourceTypeSpec. Required by controller-gen.
func (in *ResourceTypeSpec) DeepCopyInterface() interface{} {
return in.DeepCopy()
}