github.com/cilium/cilium@v1.16.2/pkg/azure/types/zz_generated.deepequal.go (about) 1 //go:build !ignore_autogenerated 2 // +build !ignore_autogenerated 3 4 // SPDX-License-Identifier: Apache-2.0 5 // Copyright Authors of Cilium 6 7 // Code generated by deepequal-gen. DO NOT EDIT. 8 9 package types 10 11 // DeepEqual is an autogenerated deepequal function, deeply comparing the 12 // receiver with other. in must be non-nil. 13 func (in *AzureAddress) DeepEqual(other *AzureAddress) bool { 14 if other == nil { 15 return false 16 } 17 18 if in.IP != other.IP { 19 return false 20 } 21 if in.Subnet != other.Subnet { 22 return false 23 } 24 if in.State != other.State { 25 return false 26 } 27 28 return true 29 } 30 31 // DeepEqual is an autogenerated deepequal function, deeply comparing the 32 // receiver with other. in must be non-nil. 33 func (in *AzureInterface) DeepEqual(other *AzureInterface) bool { 34 if other == nil { 35 return false 36 } 37 38 if in.ID != other.ID { 39 return false 40 } 41 if in.Name != other.Name { 42 return false 43 } 44 if in.MAC != other.MAC { 45 return false 46 } 47 if in.State != other.State { 48 return false 49 } 50 if ((in.Addresses != nil) && (other.Addresses != nil)) || ((in.Addresses == nil) != (other.Addresses == nil)) { 51 in, other := &in.Addresses, &other.Addresses 52 if other == nil { 53 return false 54 } 55 56 if len(*in) != len(*other) { 57 return false 58 } else { 59 for i, inElement := range *in { 60 if !inElement.DeepEqual(&(*other)[i]) { 61 return false 62 } 63 } 64 } 65 } 66 67 if in.SecurityGroup != other.SecurityGroup { 68 return false 69 } 70 if in.GatewayIP != other.GatewayIP { 71 return false 72 } 73 if in.Gateway != other.Gateway { 74 return false 75 } 76 if in.CIDR != other.CIDR { 77 return false 78 } 79 if in.vmssName != other.vmssName { 80 return false 81 } 82 if in.vmID != other.vmID { 83 return false 84 } 85 if in.resourceGroup != other.resourceGroup { 86 return false 87 } 88 89 return true 90 } 91 92 // DeepEqual is an autogenerated deepequal function, deeply comparing the 93 // receiver with other. in must be non-nil. 94 func (in *AzureSpec) DeepEqual(other *AzureSpec) bool { 95 if other == nil { 96 return false 97 } 98 99 if in.InterfaceName != other.InterfaceName { 100 return false 101 } 102 103 return true 104 } 105 106 // DeepEqual is an autogenerated deepequal function, deeply comparing the 107 // receiver with other. in must be non-nil. 108 func (in *AzureStatus) DeepEqual(other *AzureStatus) bool { 109 if other == nil { 110 return false 111 } 112 113 if ((in.Interfaces != nil) && (other.Interfaces != nil)) || ((in.Interfaces == nil) != (other.Interfaces == nil)) { 114 in, other := &in.Interfaces, &other.Interfaces 115 if other == nil { 116 return false 117 } 118 119 if len(*in) != len(*other) { 120 return false 121 } else { 122 for i, inElement := range *in { 123 if !inElement.DeepEqual(&(*other)[i]) { 124 return false 125 } 126 } 127 } 128 } 129 130 return true 131 }