| 1 |
/* |
| 2 |
Copyright 2023 The Kubernetes Authors. |
| 3 |
|
| 4 |
Licensed under the Apache License, Version 2.0 (the "License"); |
| 5 |
you may not use this file except in compliance with the License. |
| 6 |
You may obtain a copy of the License at |
| 7 |
|
| 8 |
http://www.apache.org/licenses/LICENSE-2.0 |
| 9 |
|
| 10 |
Unless required by applicable law or agreed to in writing, software |
| 11 |
distributed under the License is distributed on an "AS IS" BASIS, |
| 12 |
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 13 |
See the License for the specific language governing permissions and |
| 14 |
limitations under the License. |
| 15 |
*/ |
| 16 |
|
| 17 |
package wholepkg |
| 18 |
|
| 19 |
import ( |
| 20 |
"k8s.io/apimachinery/pkg/runtime" |
| 21 |
"k8s.io/apimachinery/pkg/runtime/schema" |
| 22 |
) |
| 23 |
|
| 24 |
// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. |
| 25 |
func (in *Struct_Everything) DeepCopyInto(out *Struct_Everything) { |
| 26 |
*out = *in |
| 27 |
out.TypeMeta = in.TypeMeta |
| 28 |
if in.BoolPtrField != nil { |
| 29 |
in, out := &in.BoolPtrField, &out.BoolPtrField |
| 30 |
*out = new(bool) |
| 31 |
**out = **in |
| 32 |
} |
| 33 |
if in.IntPtrField != nil { |
| 34 |
in, out := &in.IntPtrField, &out.IntPtrField |
| 35 |
*out = new(int) |
| 36 |
**out = **in |
| 37 |
} |
| 38 |
if in.StringPtrField != nil { |
| 39 |
in, out := &in.StringPtrField, &out.StringPtrField |
| 40 |
*out = new(string) |
| 41 |
**out = **in |
| 42 |
} |
| 43 |
if in.FloatPtrField != nil { |
| 44 |
in, out := &in.FloatPtrField, &out.FloatPtrField |
| 45 |
*out = new(float64) |
| 46 |
**out = **in |
| 47 |
} |
| 48 |
in.PointerStructField.DeepCopyInto(&out.PointerStructField) |
| 49 |
if in.SliceBoolField != nil { |
| 50 |
in, out := &in.SliceBoolField, &out.SliceBoolField |
| 51 |
*out = make([]bool, len(*in)) |
| 52 |
copy(*out, *in) |
| 53 |
} |
| 54 |
if in.SliceByteField != nil { |
| 55 |
in, out := &in.SliceByteField, &out.SliceByteField |
| 56 |
*out = make([]byte, len(*in)) |
| 57 |
copy(*out, *in) |
| 58 |
} |
| 59 |
if in.SliceIntField != nil { |
| 60 |
in, out := &in.SliceIntField, &out.SliceIntField |
| 61 |
*out = make([]int, len(*in)) |
| 62 |
copy(*out, *in) |
| 63 |
} |
| 64 |
if in.SliceStringField != nil { |
| 65 |
in, out := &in.SliceStringField, &out.SliceStringField |
| 66 |
*out = make([]string, len(*in)) |
| 67 |
copy(*out, *in) |
| 68 |
} |
| 69 |
if in.SliceFloatField != nil { |
| 70 |
in, out := &in.SliceFloatField, &out.SliceFloatField |
| 71 |
*out = make([]float64, len(*in)) |
| 72 |
copy(*out, *in) |
| 73 |
} |
| 74 |
in.SlicesStructField.DeepCopyInto(&out.SlicesStructField) |
| 75 |
return |
| 76 |
} |
| 77 |
|
| 78 |
// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Struct_Everything. |
| 79 |
func (in *Struct_Everything) DeepCopy() *Struct_Everything { |
| 80 |
if in == nil { |
| 81 |
return nil |
| 82 |
} |
| 83 |
out := new(Struct_Everything) |
| 84 |
in.DeepCopyInto(out) |
| 85 |
return out |
| 86 |
} |
| 87 |
|
| 88 |
func (in *Struct_Everything) DeepCopyObject() runtime.Object { |
| 89 |
if c := in.DeepCopy(); c != nil { |
| 90 |
return c |
| 91 |
} |
| 92 |
return nil |
| 93 |
} |
| 94 |
|
| 95 |
// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. |
| 96 |
func (in *Struct_Pointer) DeepCopyInto(out *Struct_Pointer) { |
| 97 |
*out = *in |
| 98 |
out.TypeMeta = in.TypeMeta |
| 99 |
in.PointerStructPrimitivesField.DeepCopyInto(&out.PointerStructPrimitivesField) |
| 100 |
if in.PointerPointerStructPrimitivesField != nil { |
| 101 |
in, out := &in.PointerPointerStructPrimitivesField, &out.PointerPointerStructPrimitivesField |
| 102 |
*out = new(Struct_Primitives) |
| 103 |
(*in).DeepCopyInto(*out) |
| 104 |
} |
| 105 |
in.PointerStructPrimitivesAliasField.DeepCopyInto(&out.PointerStructPrimitivesAliasField) |
| 106 |
in.PointerPointerStructPrimitivesAliasField.DeepCopyInto(&out.PointerPointerStructPrimitivesAliasField) |
| 107 |
in.PointerStructStructPrimitives.DeepCopyInto(&out.PointerStructStructPrimitives) |
| 108 |
if in.PointerPointerStructStructPrimitives != nil { |
| 109 |
in, out := &in.PointerPointerStructStructPrimitives, &out.PointerPointerStructStructPrimitives |
| 110 |
*out = new(Struct_Struct_Primitives) |
| 111 |
(*in).DeepCopyInto(*out) |
| 112 |
} |
| 113 |
return |
| 114 |
} |
| 115 |
|
| 116 |
// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Struct_Pointer. |
| 117 |
func (in *Struct_Pointer) DeepCopy() *Struct_Pointer { |
| 118 |
if in == nil { |
| 119 |
return nil |
| 120 |
} |
| 121 |
out := new(Struct_Pointer) |
| 122 |
in.DeepCopyInto(out) |
| 123 |
return out |
| 124 |
} |
| 125 |
|
| 126 |
func (in *Struct_Pointer) DeepCopyObject() runtime.Object { |
| 127 |
if c := in.DeepCopy(); c != nil { |
| 128 |
return c |
| 129 |
} |
| 130 |
return nil |
| 131 |
} |
| 132 |
|
| 133 |
// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. |
| 134 |
func (in *Struct_Primitives) DeepCopyInto(out *Struct_Primitives) { |
| 135 |
*out = *in |
| 136 |
out.TypeMeta = in.TypeMeta |
| 137 |
if in.BoolField != nil { |
| 138 |
in, out := &in.BoolField, &out.BoolField |
| 139 |
*out = new(bool) |
| 140 |
**out = **in |
| 141 |
} |
| 142 |
if in.IntField != nil { |
| 143 |
in, out := &in.IntField, &out.IntField |
| 144 |
*out = new(int) |
| 145 |
**out = **in |
| 146 |
} |
| 147 |
if in.StringField != nil { |
| 148 |
in, out := &in.StringField, &out.StringField |
| 149 |
*out = new(string) |
| 150 |
**out = **in |
| 151 |
} |
| 152 |
if in.FloatField != nil { |
| 153 |
in, out := &in.FloatField, &out.FloatField |
| 154 |
*out = new(float64) |
| 155 |
**out = **in |
| 156 |
} |
| 157 |
return |
| 158 |
} |
| 159 |
|
| 160 |
// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Struct_Primitives. |
| 161 |
func (in *Struct_Primitives) DeepCopy() *Struct_Primitives { |
| 162 |
if in == nil { |
| 163 |
return nil |
| 164 |
} |
| 165 |
out := new(Struct_Primitives) |
| 166 |
in.DeepCopyInto(out) |
| 167 |
return out |
| 168 |
} |
| 169 |
|
| 170 |
func (in *Struct_Primitives) DeepCopyObject() runtime.Object { |
| 171 |
if c := in.DeepCopy(); c != nil { |
| 172 |
return c |
| 173 |
} |
| 174 |
return nil |
| 175 |
} |
| 176 |
|
| 177 |
// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. |
| 178 |
func (in *Struct_Primitives_Alias) DeepCopyInto(out *Struct_Primitives_Alias) { |
| 179 |
*out = *in |
| 180 |
out.TypeMeta = in.TypeMeta |
| 181 |
if in.BoolField != nil { |
| 182 |
in, out := &in.BoolField, &out.BoolField |
| 183 |
*out = new(bool) |
| 184 |
**out = **in |
| 185 |
} |
| 186 |
if in.IntField != nil { |
| 187 |
in, out := &in.IntField, &out.IntField |
| 188 |
*out = new(int) |
| 189 |
**out = **in |
| 190 |
} |
| 191 |
if in.StringField != nil { |
| 192 |
in, out := &in.StringField, &out.StringField |
| 193 |
*out = new(string) |
| 194 |
**out = **in |
| 195 |
} |
| 196 |
if in.FloatField != nil { |
| 197 |
in, out := &in.FloatField, &out.FloatField |
| 198 |
*out = new(float64) |
| 199 |
**out = **in |
| 200 |
} |
| 201 |
return |
| 202 |
} |
| 203 |
|
| 204 |
// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Struct_Primitives_Alias. |
| 205 |
func (in *Struct_Primitives_Alias) DeepCopy() *Struct_Primitives_Alias { |
| 206 |
if in == nil { |
| 207 |
return nil |
| 208 |
} |
| 209 |
out := new(Struct_Primitives_Alias) |
| 210 |
in.DeepCopyInto(out) |
| 211 |
return out |
| 212 |
} |
| 213 |
|
| 214 |
// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. |
| 215 |
func (in *Struct_Slices) DeepCopyInto(out *Struct_Slices) { |
| 216 |
*out = *in |
| 217 |
out.TypeMeta = in.TypeMeta |
| 218 |
if in.SliceStructPrimitivesField != nil { |
| 219 |
in, out := &in.SliceStructPrimitivesField, &out.SliceStructPrimitivesField |
| 220 |
*out = make([]Struct_Primitives, len(*in)) |
| 221 |
for i := range *in { |
| 222 |
(*in)[i].DeepCopyInto(&(*out)[i]) |
| 223 |
} |
| 224 |
} |
| 225 |
if in.SlicePointerStructPrimitivesField != nil { |
| 226 |
in, out := &in.SlicePointerStructPrimitivesField, &out.SlicePointerStructPrimitivesField |
| 227 |
*out = make([]*Struct_Primitives, len(*in)) |
| 228 |
for i := range *in { |
| 229 |
if (*in)[i] != nil { |
| 230 |
in, out := &(*in)[i], &(*out)[i] |
| 231 |
*out = new(Struct_Primitives) |
| 232 |
(*in).DeepCopyInto(*out) |
| 233 |
} |
| 234 |
} |
| 235 |
} |
| 236 |
if in.SliceStructPrimitivesAliasField != nil { |
| 237 |
in, out := &in.SliceStructPrimitivesAliasField, &out.SliceStructPrimitivesAliasField |
| 238 |
*out = make([]Struct_Primitives_Alias, len(*in)) |
| 239 |
for i := range *in { |
| 240 |
(*in)[i].DeepCopyInto(&(*out)[i]) |
| 241 |
} |
| 242 |
} |
| 243 |
if in.SlicePointerStructPrimitivesAliasField != nil { |
| 244 |
in, out := &in.SlicePointerStructPrimitivesAliasField, &out.SlicePointerStructPrimitivesAliasField |
| 245 |
*out = make([]*Struct_Primitives_Alias, len(*in)) |
| 246 |
for i := range *in { |
| 247 |
if (*in)[i] != nil { |
| 248 |
in, out := &(*in)[i], &(*out)[i] |
| 249 |
*out = new(Struct_Primitives_Alias) |
| 250 |
(*in).DeepCopyInto(*out) |
| 251 |
} |
| 252 |
} |
| 253 |
} |
| 254 |
if in.SliceStructStructPrimitives != nil { |
| 255 |
in, out := &in.SliceStructStructPrimitives, &out.SliceStructStructPrimitives |
| 256 |
*out = make([]Struct_Struct_Primitives, len(*in)) |
| 257 |
for i := range *in { |
| 258 |
(*in)[i].DeepCopyInto(&(*out)[i]) |
| 259 |
} |
| 260 |
} |
| 261 |
if in.SlicePointerStructStructPrimitives != nil { |
| 262 |
in, out := &in.SlicePointerStructStructPrimitives, &out.SlicePointerStructStructPrimitives |
| 263 |
*out = make([]*Struct_Struct_Primitives, len(*in)) |
| 264 |
for i := range *in { |
| 265 |
if (*in)[i] != nil { |
| 266 |
in, out := &(*in)[i], &(*out)[i] |
| 267 |
*out = new(Struct_Struct_Primitives) |
| 268 |
(*in).DeepCopyInto(*out) |
| 269 |
} |
| 270 |
} |
| 271 |
} |
| 272 |
return |
| 273 |
} |
| 274 |
|
| 275 |
// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Struct_Slices. |
| 276 |
func (in *Struct_Slices) DeepCopy() *Struct_Slices { |
| 277 |
if in == nil { |
| 278 |
return nil |
| 279 |
} |
| 280 |
out := new(Struct_Slices) |
| 281 |
in.DeepCopyInto(out) |
| 282 |
return out |
| 283 |
} |
| 284 |
|
| 285 |
func (in *Struct_Slices) DeepCopyObject() runtime.Object { |
| 286 |
if c := in.DeepCopy(); c != nil { |
| 287 |
return c |
| 288 |
} |
| 289 |
return nil |
| 290 |
} |
| 291 |
|
| 292 |
// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. |
| 293 |
func (in *Struct_Struct_Primitives) DeepCopyInto(out *Struct_Struct_Primitives) { |
| 294 |
*out = *in |
| 295 |
out.TypeMeta = in.TypeMeta |
| 296 |
in.StructField.DeepCopyInto(&out.StructField) |
| 297 |
return |
| 298 |
} |
| 299 |
|
| 300 |
// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Struct_Struct_Primitives. |
| 301 |
func (in *Struct_Struct_Primitives) DeepCopy() *Struct_Struct_Primitives { |
| 302 |
if in == nil { |
| 303 |
return nil |
| 304 |
} |
| 305 |
out := new(Struct_Struct_Primitives) |
| 306 |
in.DeepCopyInto(out) |
| 307 |
return out |
| 308 |
} |
| 309 |
|
| 310 |
func (in *Struct_Struct_Primitives) DeepCopyObject() runtime.Object { |
| 311 |
if c := in.DeepCopy(); c != nil { |
| 312 |
return c |
| 313 |
} |
| 314 |
return nil |
| 315 |
} |
| 316 |
|
| 317 |
func (obj *Struct_Everything) GetObjectKind() schema.ObjectKind { return schema.EmptyObjectKind } |
| 318 |
func (obj *Struct_Pointer) GetObjectKind() schema.ObjectKind { return schema.EmptyObjectKind } |
| 319 |
func (obj *Struct_Primitives) GetObjectKind() schema.ObjectKind { return schema.EmptyObjectKind } |
| 320 |
func (obj *Struct_Slices) GetObjectKind() schema.ObjectKind { return schema.EmptyObjectKind } |
| 321 |
func (obj *Struct_Struct_Primitives) GetObjectKind() schema.ObjectKind { return schema.EmptyObjectKind } |