github.com/jingruilea/kubeedge@v1.2.0-beta.0.0.20200410162146-4bb8902b3879/cloud/pkg/apis/devices/v1alpha1/zz_generated.deepcopy.go (about) 1 // +build !ignore_autogenerated 2 3 /* 4 Copyright 2020 The KubeEdge Authors. 5 6 Licensed under the Apache License, Version 2.0 (the "License"); 7 you may not use this file except in compliance with the License. 8 You may obtain a copy of the License at 9 10 http://www.apache.org/licenses/LICENSE-2.0 11 12 Unless required by applicable law or agreed to in writing, software 13 distributed under the License is distributed on an "AS IS" BASIS, 14 WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 15 See the License for the specific language governing permissions and 16 limitations under the License. 17 */ 18 // Code generated by deepcopy-gen. DO NOT EDIT. 19 20 package v1alpha1 21 22 import ( 23 v1 "k8s.io/api/core/v1" 24 runtime "k8s.io/apimachinery/pkg/runtime" 25 ) 26 27 // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. 28 func (in *BluetoothOperations) DeepCopyInto(out *BluetoothOperations) { 29 *out = *in 30 return 31 } 32 33 // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new BluetoothOperations. 34 func (in *BluetoothOperations) DeepCopy() *BluetoothOperations { 35 if in == nil { 36 return nil 37 } 38 out := new(BluetoothOperations) 39 in.DeepCopyInto(out) 40 return out 41 } 42 43 // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. 44 func (in *BluetoothReadConverter) DeepCopyInto(out *BluetoothReadConverter) { 45 *out = *in 46 if in.OrderOfOperations != nil { 47 in, out := &in.OrderOfOperations, &out.OrderOfOperations 48 *out = make([]BluetoothOperations, len(*in)) 49 copy(*out, *in) 50 } 51 return 52 } 53 54 // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new BluetoothReadConverter. 55 func (in *BluetoothReadConverter) DeepCopy() *BluetoothReadConverter { 56 if in == nil { 57 return nil 58 } 59 out := new(BluetoothReadConverter) 60 in.DeepCopyInto(out) 61 return out 62 } 63 64 // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. 65 func (in *Device) DeepCopyInto(out *Device) { 66 *out = *in 67 out.TypeMeta = in.TypeMeta 68 in.ObjectMeta.DeepCopyInto(&out.ObjectMeta) 69 in.Spec.DeepCopyInto(&out.Spec) 70 in.Status.DeepCopyInto(&out.Status) 71 return 72 } 73 74 // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Device. 75 func (in *Device) DeepCopy() *Device { 76 if in == nil { 77 return nil 78 } 79 out := new(Device) 80 in.DeepCopyInto(out) 81 return out 82 } 83 84 // DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. 85 func (in *Device) DeepCopyObject() runtime.Object { 86 if c := in.DeepCopy(); c != nil { 87 return c 88 } 89 return nil 90 } 91 92 // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. 93 func (in *DeviceList) DeepCopyInto(out *DeviceList) { 94 *out = *in 95 out.TypeMeta = in.TypeMeta 96 in.ListMeta.DeepCopyInto(&out.ListMeta) 97 if in.Items != nil { 98 in, out := &in.Items, &out.Items 99 *out = make([]Device, len(*in)) 100 for i := range *in { 101 (*in)[i].DeepCopyInto(&(*out)[i]) 102 } 103 } 104 return 105 } 106 107 // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DeviceList. 108 func (in *DeviceList) DeepCopy() *DeviceList { 109 if in == nil { 110 return nil 111 } 112 out := new(DeviceList) 113 in.DeepCopyInto(out) 114 return out 115 } 116 117 // DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. 118 func (in *DeviceList) DeepCopyObject() runtime.Object { 119 if c := in.DeepCopy(); c != nil { 120 return c 121 } 122 return nil 123 } 124 125 // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. 126 func (in *DeviceModel) DeepCopyInto(out *DeviceModel) { 127 *out = *in 128 out.TypeMeta = in.TypeMeta 129 in.ObjectMeta.DeepCopyInto(&out.ObjectMeta) 130 in.Spec.DeepCopyInto(&out.Spec) 131 return 132 } 133 134 // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DeviceModel. 135 func (in *DeviceModel) DeepCopy() *DeviceModel { 136 if in == nil { 137 return nil 138 } 139 out := new(DeviceModel) 140 in.DeepCopyInto(out) 141 return out 142 } 143 144 // DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. 145 func (in *DeviceModel) DeepCopyObject() runtime.Object { 146 if c := in.DeepCopy(); c != nil { 147 return c 148 } 149 return nil 150 } 151 152 // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. 153 func (in *DeviceModelList) DeepCopyInto(out *DeviceModelList) { 154 *out = *in 155 out.TypeMeta = in.TypeMeta 156 in.ListMeta.DeepCopyInto(&out.ListMeta) 157 if in.Items != nil { 158 in, out := &in.Items, &out.Items 159 *out = make([]DeviceModel, len(*in)) 160 for i := range *in { 161 (*in)[i].DeepCopyInto(&(*out)[i]) 162 } 163 } 164 return 165 } 166 167 // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DeviceModelList. 168 func (in *DeviceModelList) DeepCopy() *DeviceModelList { 169 if in == nil { 170 return nil 171 } 172 out := new(DeviceModelList) 173 in.DeepCopyInto(out) 174 return out 175 } 176 177 // DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. 178 func (in *DeviceModelList) DeepCopyObject() runtime.Object { 179 if c := in.DeepCopy(); c != nil { 180 return c 181 } 182 return nil 183 } 184 185 // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. 186 func (in *DeviceModelSpec) DeepCopyInto(out *DeviceModelSpec) { 187 *out = *in 188 if in.Properties != nil { 189 in, out := &in.Properties, &out.Properties 190 *out = make([]DeviceProperty, len(*in)) 191 for i := range *in { 192 (*in)[i].DeepCopyInto(&(*out)[i]) 193 } 194 } 195 if in.PropertyVisitors != nil { 196 in, out := &in.PropertyVisitors, &out.PropertyVisitors 197 *out = make([]DevicePropertyVisitor, len(*in)) 198 for i := range *in { 199 (*in)[i].DeepCopyInto(&(*out)[i]) 200 } 201 } 202 return 203 } 204 205 // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DeviceModelSpec. 206 func (in *DeviceModelSpec) DeepCopy() *DeviceModelSpec { 207 if in == nil { 208 return nil 209 } 210 out := new(DeviceModelSpec) 211 in.DeepCopyInto(out) 212 return out 213 } 214 215 // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. 216 func (in *DeviceProperty) DeepCopyInto(out *DeviceProperty) { 217 *out = *in 218 in.Type.DeepCopyInto(&out.Type) 219 return 220 } 221 222 // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DeviceProperty. 223 func (in *DeviceProperty) DeepCopy() *DeviceProperty { 224 if in == nil { 225 return nil 226 } 227 out := new(DeviceProperty) 228 in.DeepCopyInto(out) 229 return out 230 } 231 232 // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. 233 func (in *DevicePropertyVisitor) DeepCopyInto(out *DevicePropertyVisitor) { 234 *out = *in 235 in.VisitorConfig.DeepCopyInto(&out.VisitorConfig) 236 return 237 } 238 239 // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DevicePropertyVisitor. 240 func (in *DevicePropertyVisitor) DeepCopy() *DevicePropertyVisitor { 241 if in == nil { 242 return nil 243 } 244 out := new(DevicePropertyVisitor) 245 in.DeepCopyInto(out) 246 return out 247 } 248 249 // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. 250 func (in *DeviceSpec) DeepCopyInto(out *DeviceSpec) { 251 *out = *in 252 if in.DeviceModelRef != nil { 253 in, out := &in.DeviceModelRef, &out.DeviceModelRef 254 *out = new(v1.LocalObjectReference) 255 **out = **in 256 } 257 in.Protocol.DeepCopyInto(&out.Protocol) 258 if in.NodeSelector != nil { 259 in, out := &in.NodeSelector, &out.NodeSelector 260 *out = new(v1.NodeSelector) 261 (*in).DeepCopyInto(*out) 262 } 263 return 264 } 265 266 // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DeviceSpec. 267 func (in *DeviceSpec) DeepCopy() *DeviceSpec { 268 if in == nil { 269 return nil 270 } 271 out := new(DeviceSpec) 272 in.DeepCopyInto(out) 273 return out 274 } 275 276 // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. 277 func (in *DeviceStatus) DeepCopyInto(out *DeviceStatus) { 278 *out = *in 279 if in.Twins != nil { 280 in, out := &in.Twins, &out.Twins 281 *out = make([]Twin, len(*in)) 282 for i := range *in { 283 (*in)[i].DeepCopyInto(&(*out)[i]) 284 } 285 } 286 return 287 } 288 289 // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DeviceStatus. 290 func (in *DeviceStatus) DeepCopy() *DeviceStatus { 291 if in == nil { 292 return nil 293 } 294 out := new(DeviceStatus) 295 in.DeepCopyInto(out) 296 return out 297 } 298 299 // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. 300 func (in *PropertyType) DeepCopyInto(out *PropertyType) { 301 *out = *in 302 if in.Int != nil { 303 in, out := &in.Int, &out.Int 304 *out = new(PropertyTypeInt64) 305 **out = **in 306 } 307 if in.String != nil { 308 in, out := &in.String, &out.String 309 *out = new(PropertyTypeString) 310 **out = **in 311 } 312 return 313 } 314 315 // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new PropertyType. 316 func (in *PropertyType) DeepCopy() *PropertyType { 317 if in == nil { 318 return nil 319 } 320 out := new(PropertyType) 321 in.DeepCopyInto(out) 322 return out 323 } 324 325 // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. 326 func (in *PropertyTypeInt64) DeepCopyInto(out *PropertyTypeInt64) { 327 *out = *in 328 return 329 } 330 331 // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new PropertyTypeInt64. 332 func (in *PropertyTypeInt64) DeepCopy() *PropertyTypeInt64 { 333 if in == nil { 334 return nil 335 } 336 out := new(PropertyTypeInt64) 337 in.DeepCopyInto(out) 338 return out 339 } 340 341 // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. 342 func (in *PropertyTypeString) DeepCopyInto(out *PropertyTypeString) { 343 *out = *in 344 return 345 } 346 347 // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new PropertyTypeString. 348 func (in *PropertyTypeString) DeepCopy() *PropertyTypeString { 349 if in == nil { 350 return nil 351 } 352 out := new(PropertyTypeString) 353 in.DeepCopyInto(out) 354 return out 355 } 356 357 // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. 358 func (in *ProtocolConfig) DeepCopyInto(out *ProtocolConfig) { 359 *out = *in 360 if in.OpcUA != nil { 361 in, out := &in.OpcUA, &out.OpcUA 362 *out = new(ProtocolConfigOpcUA) 363 **out = **in 364 } 365 if in.Modbus != nil { 366 in, out := &in.Modbus, &out.Modbus 367 *out = new(ProtocolConfigModbus) 368 (*in).DeepCopyInto(*out) 369 } 370 if in.Bluetooth != nil { 371 in, out := &in.Bluetooth, &out.Bluetooth 372 *out = new(ProtocolConfigBluetooth) 373 **out = **in 374 } 375 return 376 } 377 378 // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ProtocolConfig. 379 func (in *ProtocolConfig) DeepCopy() *ProtocolConfig { 380 if in == nil { 381 return nil 382 } 383 out := new(ProtocolConfig) 384 in.DeepCopyInto(out) 385 return out 386 } 387 388 // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. 389 func (in *ProtocolConfigBluetooth) DeepCopyInto(out *ProtocolConfigBluetooth) { 390 *out = *in 391 return 392 } 393 394 // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ProtocolConfigBluetooth. 395 func (in *ProtocolConfigBluetooth) DeepCopy() *ProtocolConfigBluetooth { 396 if in == nil { 397 return nil 398 } 399 out := new(ProtocolConfigBluetooth) 400 in.DeepCopyInto(out) 401 return out 402 } 403 404 // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. 405 func (in *ProtocolConfigModbus) DeepCopyInto(out *ProtocolConfigModbus) { 406 *out = *in 407 if in.RTU != nil { 408 in, out := &in.RTU, &out.RTU 409 *out = new(ProtocolConfigModbusRTU) 410 **out = **in 411 } 412 if in.TCP != nil { 413 in, out := &in.TCP, &out.TCP 414 *out = new(ProtocolConfigModbusTCP) 415 **out = **in 416 } 417 return 418 } 419 420 // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ProtocolConfigModbus. 421 func (in *ProtocolConfigModbus) DeepCopy() *ProtocolConfigModbus { 422 if in == nil { 423 return nil 424 } 425 out := new(ProtocolConfigModbus) 426 in.DeepCopyInto(out) 427 return out 428 } 429 430 // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. 431 func (in *ProtocolConfigModbusRTU) DeepCopyInto(out *ProtocolConfigModbusRTU) { 432 *out = *in 433 return 434 } 435 436 // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ProtocolConfigModbusRTU. 437 func (in *ProtocolConfigModbusRTU) DeepCopy() *ProtocolConfigModbusRTU { 438 if in == nil { 439 return nil 440 } 441 out := new(ProtocolConfigModbusRTU) 442 in.DeepCopyInto(out) 443 return out 444 } 445 446 // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. 447 func (in *ProtocolConfigModbusTCP) DeepCopyInto(out *ProtocolConfigModbusTCP) { 448 *out = *in 449 return 450 } 451 452 // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ProtocolConfigModbusTCP. 453 func (in *ProtocolConfigModbusTCP) DeepCopy() *ProtocolConfigModbusTCP { 454 if in == nil { 455 return nil 456 } 457 out := new(ProtocolConfigModbusTCP) 458 in.DeepCopyInto(out) 459 return out 460 } 461 462 // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. 463 func (in *ProtocolConfigOpcUA) DeepCopyInto(out *ProtocolConfigOpcUA) { 464 *out = *in 465 return 466 } 467 468 // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ProtocolConfigOpcUA. 469 func (in *ProtocolConfigOpcUA) DeepCopy() *ProtocolConfigOpcUA { 470 if in == nil { 471 return nil 472 } 473 out := new(ProtocolConfigOpcUA) 474 in.DeepCopyInto(out) 475 return out 476 } 477 478 // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. 479 func (in *Twin) DeepCopyInto(out *Twin) { 480 *out = *in 481 in.Desired.DeepCopyInto(&out.Desired) 482 in.Reported.DeepCopyInto(&out.Reported) 483 return 484 } 485 486 // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Twin. 487 func (in *Twin) DeepCopy() *Twin { 488 if in == nil { 489 return nil 490 } 491 out := new(Twin) 492 in.DeepCopyInto(out) 493 return out 494 } 495 496 // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. 497 func (in *TwinProperty) DeepCopyInto(out *TwinProperty) { 498 *out = *in 499 if in.Metadata != nil { 500 in, out := &in.Metadata, &out.Metadata 501 *out = make(map[string]string, len(*in)) 502 for key, val := range *in { 503 (*out)[key] = val 504 } 505 } 506 return 507 } 508 509 // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new TwinProperty. 510 func (in *TwinProperty) DeepCopy() *TwinProperty { 511 if in == nil { 512 return nil 513 } 514 out := new(TwinProperty) 515 in.DeepCopyInto(out) 516 return out 517 } 518 519 // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. 520 func (in *VisitorConfig) DeepCopyInto(out *VisitorConfig) { 521 *out = *in 522 if in.OpcUA != nil { 523 in, out := &in.OpcUA, &out.OpcUA 524 *out = new(VisitorConfigOPCUA) 525 **out = **in 526 } 527 if in.Modbus != nil { 528 in, out := &in.Modbus, &out.Modbus 529 *out = new(VisitorConfigModbus) 530 **out = **in 531 } 532 if in.Bluetooth != nil { 533 in, out := &in.Bluetooth, &out.Bluetooth 534 *out = new(VisitorConfigBluetooth) 535 (*in).DeepCopyInto(*out) 536 } 537 return 538 } 539 540 // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new VisitorConfig. 541 func (in *VisitorConfig) DeepCopy() *VisitorConfig { 542 if in == nil { 543 return nil 544 } 545 out := new(VisitorConfig) 546 in.DeepCopyInto(out) 547 return out 548 } 549 550 // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. 551 func (in *VisitorConfigBluetooth) DeepCopyInto(out *VisitorConfigBluetooth) { 552 *out = *in 553 if in.DataWriteToBluetooth != nil { 554 in, out := &in.DataWriteToBluetooth, &out.DataWriteToBluetooth 555 *out = make(map[string][]byte, len(*in)) 556 for key, val := range *in { 557 var outVal []byte 558 if val == nil { 559 (*out)[key] = nil 560 } else { 561 in, out := &val, &outVal 562 *out = make([]byte, len(*in)) 563 copy(*out, *in) 564 } 565 (*out)[key] = outVal 566 } 567 } 568 in.BluetoothDataConverter.DeepCopyInto(&out.BluetoothDataConverter) 569 return 570 } 571 572 // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new VisitorConfigBluetooth. 573 func (in *VisitorConfigBluetooth) DeepCopy() *VisitorConfigBluetooth { 574 if in == nil { 575 return nil 576 } 577 out := new(VisitorConfigBluetooth) 578 in.DeepCopyInto(out) 579 return out 580 } 581 582 // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. 583 func (in *VisitorConfigModbus) DeepCopyInto(out *VisitorConfigModbus) { 584 *out = *in 585 return 586 } 587 588 // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new VisitorConfigModbus. 589 func (in *VisitorConfigModbus) DeepCopy() *VisitorConfigModbus { 590 if in == nil { 591 return nil 592 } 593 out := new(VisitorConfigModbus) 594 in.DeepCopyInto(out) 595 return out 596 } 597 598 // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. 599 func (in *VisitorConfigOPCUA) DeepCopyInto(out *VisitorConfigOPCUA) { 600 *out = *in 601 return 602 } 603 604 // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new VisitorConfigOPCUA. 605 func (in *VisitorConfigOPCUA) DeepCopy() *VisitorConfigOPCUA { 606 if in == nil { 607 return nil 608 } 609 out := new(VisitorConfigOPCUA) 610 in.DeepCopyInto(out) 611 return out 612 }