Generated deep copies for new proto types

This commit is contained in:
Clayton Coleman
2016-04-16 16:35:19 -04:00
parent 6586074e88
commit 86fb71aba7
2 changed files with 19 additions and 0 deletions

View File

@@ -40,3 +40,16 @@ func DeepCopy_resource_Quantity(in Quantity, out *Quantity, c *conversion.Cloner
out.Format = in.Format
return nil
}
func DeepCopy_resource_QuantityProto(in QuantityProto, out *QuantityProto, c *conversion.Cloner) error {
out.Format = in.Format
out.Scale = in.Scale
if in.Bigint != nil {
in, out := in.Bigint, &out.Bigint
*out = make([]byte, len(in))
copy(*out, in)
} else {
out.Bigint = nil
}
return nil
}