github.com/cilium/cilium@v1.16.2/pkg/k8s/apis/cilium.io/v2/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 v2
    10  
    11  // DeepEqual is an autogenerated deepequal function, deeply comparing the
    12  // receiver with other. in must be non-nil.
    13  func (in *AddressPair) DeepEqual(other *AddressPair) bool {
    14  	if other == nil {
    15  		return false
    16  	}
    17  
    18  	if in.IPV4 != other.IPV4 {
    19  		return false
    20  	}
    21  	if in.IPV6 != other.IPV6 {
    22  		return false
    23  	}
    24  
    25  	return true
    26  }
    27  
    28  // DeepEqual is an autogenerated deepequal function, deeply comparing the
    29  // receiver with other. in must be non-nil.
    30  func (in *AddressPairList) DeepEqual(other *AddressPairList) bool {
    31  	if other == nil {
    32  		return false
    33  	}
    34  
    35  	if len(*in) != len(*other) {
    36  		return false
    37  	} else {
    38  		for i, inElement := range *in {
    39  			if !inElement.DeepEqual((*other)[i]) {
    40  				return false
    41  			}
    42  		}
    43  	}
    44  
    45  	return true
    46  }
    47  
    48  // DeepEqual is an autogenerated deepequal function, deeply comparing the
    49  // receiver with other. in must be non-nil.
    50  func (in *AllowedIdentityList) DeepEqual(other *AllowedIdentityList) bool {
    51  	if other == nil {
    52  		return false
    53  	}
    54  
    55  	if len(*in) != len(*other) {
    56  		return false
    57  	} else {
    58  		for i, inElement := range *in {
    59  			if !inElement.DeepEqual(&(*other)[i]) {
    60  				return false
    61  			}
    62  		}
    63  	}
    64  
    65  	return true
    66  }
    67  
    68  // DeepEqual is an autogenerated deepequal function, deeply comparing the
    69  // receiver with other. in must be non-nil.
    70  func (in *CiliumClusterwideEnvoyConfig) DeepEqual(other *CiliumClusterwideEnvoyConfig) bool {
    71  	if other == nil {
    72  		return false
    73  	}
    74  
    75  	if !in.Spec.DeepEqual(&other.Spec) {
    76  		return false
    77  	}
    78  
    79  	return true
    80  }
    81  
    82  // deepEqual is an autogenerated deepequal function, deeply comparing the
    83  // receiver with other. in must be non-nil.
    84  func (in *CiliumClusterwideNetworkPolicy) deepEqual(other *CiliumClusterwideNetworkPolicy) bool {
    85  	if other == nil {
    86  		return false
    87  	}
    88  
    89  	if (in.Spec == nil) != (other.Spec == nil) {
    90  		return false
    91  	} else if in.Spec != nil {
    92  		if !in.Spec.DeepEqual(other.Spec) {
    93  			return false
    94  		}
    95  	}
    96  
    97  	if ((in.Specs != nil) && (other.Specs != nil)) || ((in.Specs == nil) != (other.Specs == nil)) {
    98  		in, other := &in.Specs, &other.Specs
    99  		if other == nil || !in.DeepEqual(other) {
   100  			return false
   101  		}
   102  	}
   103  
   104  	if !in.Status.DeepEqual(&other.Status) {
   105  		return false
   106  	}
   107  
   108  	return true
   109  }
   110  
   111  // DeepEqual is an autogenerated deepequal function, deeply comparing the
   112  // receiver with other. in must be non-nil.
   113  func (in *CiliumEgressGatewayPolicy) DeepEqual(other *CiliumEgressGatewayPolicy) bool {
   114  	if other == nil {
   115  		return false
   116  	}
   117  
   118  	if !in.Spec.DeepEqual(&other.Spec) {
   119  		return false
   120  	}
   121  
   122  	return true
   123  }
   124  
   125  // DeepEqual is an autogenerated deepequal function, deeply comparing the
   126  // receiver with other. in must be non-nil.
   127  func (in *CiliumEgressGatewayPolicySpec) DeepEqual(other *CiliumEgressGatewayPolicySpec) bool {
   128  	if other == nil {
   129  		return false
   130  	}
   131  
   132  	if ((in.Selectors != nil) && (other.Selectors != nil)) || ((in.Selectors == nil) != (other.Selectors == nil)) {
   133  		in, other := &in.Selectors, &other.Selectors
   134  		if other == nil {
   135  			return false
   136  		}
   137  
   138  		if len(*in) != len(*other) {
   139  			return false
   140  		} else {
   141  			for i, inElement := range *in {
   142  				if !inElement.DeepEqual(&(*other)[i]) {
   143  					return false
   144  				}
   145  			}
   146  		}
   147  	}
   148  
   149  	if ((in.DestinationCIDRs != nil) && (other.DestinationCIDRs != nil)) || ((in.DestinationCIDRs == nil) != (other.DestinationCIDRs == nil)) {
   150  		in, other := &in.DestinationCIDRs, &other.DestinationCIDRs
   151  		if other == nil {
   152  			return false
   153  		}
   154  
   155  		if len(*in) != len(*other) {
   156  			return false
   157  		} else {
   158  			for i, inElement := range *in {
   159  				if inElement != (*other)[i] {
   160  					return false
   161  				}
   162  			}
   163  		}
   164  	}
   165  
   166  	if ((in.ExcludedCIDRs != nil) && (other.ExcludedCIDRs != nil)) || ((in.ExcludedCIDRs == nil) != (other.ExcludedCIDRs == nil)) {
   167  		in, other := &in.ExcludedCIDRs, &other.ExcludedCIDRs
   168  		if other == nil {
   169  			return false
   170  		}
   171  
   172  		if len(*in) != len(*other) {
   173  			return false
   174  		} else {
   175  			for i, inElement := range *in {
   176  				if inElement != (*other)[i] {
   177  					return false
   178  				}
   179  			}
   180  		}
   181  	}
   182  
   183  	if (in.EgressGateway == nil) != (other.EgressGateway == nil) {
   184  		return false
   185  	} else if in.EgressGateway != nil {
   186  		if !in.EgressGateway.DeepEqual(other.EgressGateway) {
   187  			return false
   188  		}
   189  	}
   190  
   191  	return true
   192  }
   193  
   194  // DeepEqual is an autogenerated deepequal function, deeply comparing the
   195  // receiver with other. in must be non-nil.
   196  func (in *CiliumEndpoint) DeepEqual(other *CiliumEndpoint) bool {
   197  	if other == nil {
   198  		return false
   199  	}
   200  
   201  	if !in.Status.DeepEqual(&other.Status) {
   202  		return false
   203  	}
   204  
   205  	return true
   206  }
   207  
   208  // DeepEqual is an autogenerated deepequal function, deeply comparing the
   209  // receiver with other. in must be non-nil.
   210  func (in *CiliumEnvoyConfig) DeepEqual(other *CiliumEnvoyConfig) bool {
   211  	if other == nil {
   212  		return false
   213  	}
   214  
   215  	if !in.Spec.DeepEqual(&other.Spec) {
   216  		return false
   217  	}
   218  
   219  	return true
   220  }
   221  
   222  // DeepEqual is an autogenerated deepequal function, deeply comparing the
   223  // receiver with other. in must be non-nil.
   224  func (in *CiliumEnvoyConfigSpec) DeepEqual(other *CiliumEnvoyConfigSpec) bool {
   225  	if other == nil {
   226  		return false
   227  	}
   228  
   229  	if ((in.Services != nil) && (other.Services != nil)) || ((in.Services == nil) != (other.Services == nil)) {
   230  		in, other := &in.Services, &other.Services
   231  		if other == nil {
   232  			return false
   233  		}
   234  
   235  		if len(*in) != len(*other) {
   236  			return false
   237  		} else {
   238  			for i, inElement := range *in {
   239  				if !inElement.DeepEqual((*other)[i]) {
   240  					return false
   241  				}
   242  			}
   243  		}
   244  	}
   245  
   246  	if ((in.BackendServices != nil) && (other.BackendServices != nil)) || ((in.BackendServices == nil) != (other.BackendServices == nil)) {
   247  		in, other := &in.BackendServices, &other.BackendServices
   248  		if other == nil {
   249  			return false
   250  		}
   251  
   252  		if len(*in) != len(*other) {
   253  			return false
   254  		} else {
   255  			for i, inElement := range *in {
   256  				if !inElement.DeepEqual((*other)[i]) {
   257  					return false
   258  				}
   259  			}
   260  		}
   261  	}
   262  
   263  	if ((in.Resources != nil) && (other.Resources != nil)) || ((in.Resources == nil) != (other.Resources == nil)) {
   264  		in, other := &in.Resources, &other.Resources
   265  		if other == nil {
   266  			return false
   267  		}
   268  
   269  		if len(*in) != len(*other) {
   270  			return false
   271  		} else {
   272  			for i, inElement := range *in {
   273  				if !inElement.DeepEqual(&(*other)[i]) {
   274  					return false
   275  				}
   276  			}
   277  		}
   278  	}
   279  
   280  	if (in.NodeSelector == nil) != (other.NodeSelector == nil) {
   281  		return false
   282  	} else if in.NodeSelector != nil {
   283  		if !in.NodeSelector.DeepEqual(other.NodeSelector) {
   284  			return false
   285  		}
   286  	}
   287  
   288  	return true
   289  }
   290  
   291  // DeepEqual is an autogenerated deepequal function, deeply comparing the
   292  // receiver with other. in must be non-nil.
   293  func (in *CiliumExternalWorkload) DeepEqual(other *CiliumExternalWorkload) bool {
   294  	if other == nil {
   295  		return false
   296  	}
   297  
   298  	if in.Spec != other.Spec {
   299  		return false
   300  	}
   301  
   302  	return true
   303  }
   304  
   305  // DeepEqual is an autogenerated deepequal function, deeply comparing the
   306  // receiver with other. in must be non-nil.
   307  func (in *CiliumExternalWorkloadSpec) DeepEqual(other *CiliumExternalWorkloadSpec) bool {
   308  	if other == nil {
   309  		return false
   310  	}
   311  
   312  	if in.IPv4AllocCIDR != other.IPv4AllocCIDR {
   313  		return false
   314  	}
   315  	if in.IPv6AllocCIDR != other.IPv6AllocCIDR {
   316  		return false
   317  	}
   318  
   319  	return true
   320  }
   321  
   322  // DeepEqual is an autogenerated deepequal function, deeply comparing the
   323  // receiver with other. in must be non-nil.
   324  func (in *CiliumExternalWorkloadStatus) DeepEqual(other *CiliumExternalWorkloadStatus) bool {
   325  	if other == nil {
   326  		return false
   327  	}
   328  
   329  	if in.ID != other.ID {
   330  		return false
   331  	}
   332  	if in.IP != other.IP {
   333  		return false
   334  	}
   335  
   336  	return true
   337  }
   338  
   339  // DeepEqual is an autogenerated deepequal function, deeply comparing the
   340  // receiver with other. in must be non-nil.
   341  func (in *CiliumIdentity) DeepEqual(other *CiliumIdentity) bool {
   342  	if other == nil {
   343  		return false
   344  	}
   345  
   346  	if ((in.SecurityLabels != nil) && (other.SecurityLabels != nil)) || ((in.SecurityLabels == nil) != (other.SecurityLabels == nil)) {
   347  		in, other := &in.SecurityLabels, &other.SecurityLabels
   348  		if other == nil {
   349  			return false
   350  		}
   351  
   352  		if len(*in) != len(*other) {
   353  			return false
   354  		} else {
   355  			for key, inValue := range *in {
   356  				if otherValue, present := (*other)[key]; !present {
   357  					return false
   358  				} else {
   359  					if inValue != otherValue {
   360  						return false
   361  					}
   362  				}
   363  			}
   364  		}
   365  	}
   366  
   367  	return true
   368  }
   369  
   370  // DeepEqual is an autogenerated deepequal function, deeply comparing the
   371  // receiver with other. in must be non-nil.
   372  func (in *CiliumLocalRedirectPolicy) DeepEqual(other *CiliumLocalRedirectPolicy) bool {
   373  	if other == nil {
   374  		return false
   375  	}
   376  
   377  	if !in.Spec.DeepEqual(&other.Spec) {
   378  		return false
   379  	}
   380  
   381  	return true
   382  }
   383  
   384  // DeepEqual is an autogenerated deepequal function, deeply comparing the
   385  // receiver with other. in must be non-nil.
   386  func (in *CiliumLocalRedirectPolicySpec) DeepEqual(other *CiliumLocalRedirectPolicySpec) bool {
   387  	if other == nil {
   388  		return false
   389  	}
   390  
   391  	if !in.RedirectFrontend.DeepEqual(&other.RedirectFrontend) {
   392  		return false
   393  	}
   394  
   395  	if !in.RedirectBackend.DeepEqual(&other.RedirectBackend) {
   396  		return false
   397  	}
   398  
   399  	if in.SkipRedirectFromBackend != other.SkipRedirectFromBackend {
   400  		return false
   401  	}
   402  	if in.Description != other.Description {
   403  		return false
   404  	}
   405  
   406  	return true
   407  }
   408  
   409  // DeepEqual is an autogenerated deepequal function, deeply comparing the
   410  // receiver with other. in must be non-nil.
   411  func (in *CiliumLocalRedirectPolicyStatus) DeepEqual(other *CiliumLocalRedirectPolicyStatus) bool {
   412  	if other == nil {
   413  		return false
   414  	}
   415  
   416  	if in.OK != other.OK {
   417  		return false
   418  	}
   419  
   420  	return true
   421  }
   422  
   423  // deepEqual is an autogenerated deepequal function, deeply comparing the
   424  // receiver with other. in must be non-nil.
   425  func (in *CiliumNetworkPolicy) deepEqual(other *CiliumNetworkPolicy) bool {
   426  	if other == nil {
   427  		return false
   428  	}
   429  
   430  	if (in.Spec == nil) != (other.Spec == nil) {
   431  		return false
   432  	} else if in.Spec != nil {
   433  		if !in.Spec.DeepEqual(other.Spec) {
   434  			return false
   435  		}
   436  	}
   437  
   438  	if ((in.Specs != nil) && (other.Specs != nil)) || ((in.Specs == nil) != (other.Specs == nil)) {
   439  		in, other := &in.Specs, &other.Specs
   440  		if other == nil || !in.DeepEqual(other) {
   441  			return false
   442  		}
   443  	}
   444  
   445  	return true
   446  }
   447  
   448  // DeepEqual is an autogenerated deepequal function, deeply comparing the
   449  // receiver with other. in must be non-nil.
   450  func (in *CiliumNetworkPolicyNodeStatus) DeepEqual(other *CiliumNetworkPolicyNodeStatus) bool {
   451  	if other == nil {
   452  		return false
   453  	}
   454  
   455  	if in.OK != other.OK {
   456  		return false
   457  	}
   458  	if in.Error != other.Error {
   459  		return false
   460  	}
   461  	if !in.LastUpdated.DeepEqual(&other.LastUpdated) {
   462  		return false
   463  	}
   464  
   465  	if in.Revision != other.Revision {
   466  		return false
   467  	}
   468  	if in.Enforcing != other.Enforcing {
   469  		return false
   470  	}
   471  	if ((in.Annotations != nil) && (other.Annotations != nil)) || ((in.Annotations == nil) != (other.Annotations == nil)) {
   472  		in, other := &in.Annotations, &other.Annotations
   473  		if other == nil {
   474  			return false
   475  		}
   476  
   477  		if len(*in) != len(*other) {
   478  			return false
   479  		} else {
   480  			for key, inValue := range *in {
   481  				if otherValue, present := (*other)[key]; !present {
   482  					return false
   483  				} else {
   484  					if inValue != otherValue {
   485  						return false
   486  					}
   487  				}
   488  			}
   489  		}
   490  	}
   491  
   492  	return true
   493  }
   494  
   495  // DeepEqual is an autogenerated deepequal function, deeply comparing the
   496  // receiver with other. in must be non-nil.
   497  func (in *CiliumNetworkPolicyStatus) DeepEqual(other *CiliumNetworkPolicyStatus) bool {
   498  	if other == nil {
   499  		return false
   500  	}
   501  
   502  	if ((in.DerivativePolicies != nil) && (other.DerivativePolicies != nil)) || ((in.DerivativePolicies == nil) != (other.DerivativePolicies == nil)) {
   503  		in, other := &in.DerivativePolicies, &other.DerivativePolicies
   504  		if other == nil {
   505  			return false
   506  		}
   507  
   508  		if len(*in) != len(*other) {
   509  			return false
   510  		} else {
   511  			for key, inValue := range *in {
   512  				if otherValue, present := (*other)[key]; !present {
   513  					return false
   514  				} else {
   515  					if !inValue.DeepEqual(&otherValue) {
   516  						return false
   517  					}
   518  				}
   519  			}
   520  		}
   521  	}
   522  
   523  	if ((in.Conditions != nil) && (other.Conditions != nil)) || ((in.Conditions == nil) != (other.Conditions == nil)) {
   524  		in, other := &in.Conditions, &other.Conditions
   525  		if other == nil {
   526  			return false
   527  		}
   528  
   529  		if len(*in) != len(*other) {
   530  			return false
   531  		} else {
   532  			for i, inElement := range *in {
   533  				if !inElement.DeepEqual(&(*other)[i]) {
   534  					return false
   535  				}
   536  			}
   537  		}
   538  	}
   539  
   540  	return true
   541  }
   542  
   543  // DeepEqual is an autogenerated deepequal function, deeply comparing the
   544  // receiver with other. in must be non-nil.
   545  func (in *CiliumNode) DeepEqual(other *CiliumNode) bool {
   546  	if other == nil {
   547  		return false
   548  	}
   549  
   550  	if !in.Spec.DeepEqual(&other.Spec) {
   551  		return false
   552  	}
   553  
   554  	if !in.Status.DeepEqual(&other.Status) {
   555  		return false
   556  	}
   557  
   558  	return true
   559  }
   560  
   561  // DeepEqual is an autogenerated deepequal function, deeply comparing the
   562  // receiver with other. in must be non-nil.
   563  func (in *ControllerList) DeepEqual(other *ControllerList) bool {
   564  	if other == nil {
   565  		return false
   566  	}
   567  
   568  	if len(*in) != len(*other) {
   569  		return false
   570  	} else {
   571  		for i, inElement := range *in {
   572  			if !inElement.DeepEqual(&(*other)[i]) {
   573  				return false
   574  			}
   575  		}
   576  	}
   577  
   578  	return true
   579  }
   580  
   581  // DeepEqual is an autogenerated deepequal function, deeply comparing the
   582  // receiver with other. in must be non-nil.
   583  func (in *ControllerStatus) DeepEqual(other *ControllerStatus) bool {
   584  	if other == nil {
   585  		return false
   586  	}
   587  
   588  	if in.Name != other.Name {
   589  		return false
   590  	}
   591  	if (in.Configuration == nil) != (other.Configuration == nil) {
   592  		return false
   593  	} else if in.Configuration != nil {
   594  		if !in.Configuration.DeepEqual(other.Configuration) {
   595  			return false
   596  		}
   597  	}
   598  
   599  	if in.Status != other.Status {
   600  		return false
   601  	}
   602  
   603  	if in.UUID != other.UUID {
   604  		return false
   605  	}
   606  
   607  	return true
   608  }
   609  
   610  // DeepEqual is an autogenerated deepequal function, deeply comparing the
   611  // receiver with other. in must be non-nil.
   612  func (in *ControllerStatusStatus) DeepEqual(other *ControllerStatusStatus) bool {
   613  	if other == nil {
   614  		return false
   615  	}
   616  
   617  	if in.ConsecutiveFailureCount != other.ConsecutiveFailureCount {
   618  		return false
   619  	}
   620  	if in.FailureCount != other.FailureCount {
   621  		return false
   622  	}
   623  	if in.LastFailureMsg != other.LastFailureMsg {
   624  		return false
   625  	}
   626  	if in.LastFailureTimestamp != other.LastFailureTimestamp {
   627  		return false
   628  	}
   629  	if in.LastSuccessTimestamp != other.LastSuccessTimestamp {
   630  		return false
   631  	}
   632  	if in.SuccessCount != other.SuccessCount {
   633  		return false
   634  	}
   635  
   636  	return true
   637  }
   638  
   639  // DeepEqual is an autogenerated deepequal function, deeply comparing the
   640  // receiver with other. in must be non-nil.
   641  func (in *DenyIdentityList) DeepEqual(other *DenyIdentityList) bool {
   642  	if other == nil {
   643  		return false
   644  	}
   645  
   646  	if len(*in) != len(*other) {
   647  		return false
   648  	} else {
   649  		for i, inElement := range *in {
   650  			if !inElement.DeepEqual(&(*other)[i]) {
   651  				return false
   652  			}
   653  		}
   654  	}
   655  
   656  	return true
   657  }
   658  
   659  // DeepEqual is an autogenerated deepequal function, deeply comparing the
   660  // receiver with other. in must be non-nil.
   661  func (in *EgressGateway) DeepEqual(other *EgressGateway) bool {
   662  	if other == nil {
   663  		return false
   664  	}
   665  
   666  	if (in.NodeSelector == nil) != (other.NodeSelector == nil) {
   667  		return false
   668  	} else if in.NodeSelector != nil {
   669  		if !in.NodeSelector.DeepEqual(other.NodeSelector) {
   670  			return false
   671  		}
   672  	}
   673  
   674  	if in.Interface != other.Interface {
   675  		return false
   676  	}
   677  	if in.EgressIP != other.EgressIP {
   678  		return false
   679  	}
   680  
   681  	return true
   682  }
   683  
   684  // DeepEqual is an autogenerated deepequal function, deeply comparing the
   685  // receiver with other. in must be non-nil.
   686  func (in *EgressRule) DeepEqual(other *EgressRule) bool {
   687  	if other == nil {
   688  		return false
   689  	}
   690  
   691  	if (in.NamespaceSelector == nil) != (other.NamespaceSelector == nil) {
   692  		return false
   693  	} else if in.NamespaceSelector != nil {
   694  		if !in.NamespaceSelector.DeepEqual(other.NamespaceSelector) {
   695  			return false
   696  		}
   697  	}
   698  
   699  	if (in.PodSelector == nil) != (other.PodSelector == nil) {
   700  		return false
   701  	} else if in.PodSelector != nil {
   702  		if !in.PodSelector.DeepEqual(other.PodSelector) {
   703  			return false
   704  		}
   705  	}
   706  
   707  	return true
   708  }
   709  
   710  // DeepEqual is an autogenerated deepequal function, deeply comparing the
   711  // receiver with other. in must be non-nil.
   712  func (in *EncryptionSpec) DeepEqual(other *EncryptionSpec) bool {
   713  	if other == nil {
   714  		return false
   715  	}
   716  
   717  	if in.Key != other.Key {
   718  		return false
   719  	}
   720  
   721  	return true
   722  }
   723  
   724  // DeepEqual is an autogenerated deepequal function, deeply comparing the
   725  // receiver with other. in must be non-nil.
   726  func (in *EndpointIdentity) DeepEqual(other *EndpointIdentity) bool {
   727  	if other == nil {
   728  		return false
   729  	}
   730  
   731  	if in.ID != other.ID {
   732  		return false
   733  	}
   734  	if ((in.Labels != nil) && (other.Labels != nil)) || ((in.Labels == nil) != (other.Labels == nil)) {
   735  		in, other := &in.Labels, &other.Labels
   736  		if other == nil {
   737  			return false
   738  		}
   739  
   740  		if len(*in) != len(*other) {
   741  			return false
   742  		} else {
   743  			for i, inElement := range *in {
   744  				if inElement != (*other)[i] {
   745  					return false
   746  				}
   747  			}
   748  		}
   749  	}
   750  
   751  	return true
   752  }
   753  
   754  // DeepEqual is an autogenerated deepequal function, deeply comparing the
   755  // receiver with other. in must be non-nil.
   756  func (in *EndpointNetworking) DeepEqual(other *EndpointNetworking) bool {
   757  	if other == nil {
   758  		return false
   759  	}
   760  
   761  	if ((in.Addressing != nil) && (other.Addressing != nil)) || ((in.Addressing == nil) != (other.Addressing == nil)) {
   762  		in, other := &in.Addressing, &other.Addressing
   763  		if other == nil || !in.DeepEqual(other) {
   764  			return false
   765  		}
   766  	}
   767  
   768  	if in.NodeIP != other.NodeIP {
   769  		return false
   770  	}
   771  
   772  	return true
   773  }
   774  
   775  // DeepEqual is an autogenerated deepequal function, deeply comparing the
   776  // receiver with other. in must be non-nil.
   777  func (in *EndpointPolicy) DeepEqual(other *EndpointPolicy) bool {
   778  	if other == nil {
   779  		return false
   780  	}
   781  
   782  	if (in.Ingress == nil) != (other.Ingress == nil) {
   783  		return false
   784  	} else if in.Ingress != nil {
   785  		if !in.Ingress.DeepEqual(other.Ingress) {
   786  			return false
   787  		}
   788  	}
   789  
   790  	if (in.Egress == nil) != (other.Egress == nil) {
   791  		return false
   792  	} else if in.Egress != nil {
   793  		if !in.Egress.DeepEqual(other.Egress) {
   794  			return false
   795  		}
   796  	}
   797  
   798  	return true
   799  }
   800  
   801  // DeepEqual is an autogenerated deepequal function, deeply comparing the
   802  // receiver with other. in must be non-nil.
   803  func (in *EndpointPolicyDirection) DeepEqual(other *EndpointPolicyDirection) bool {
   804  	if other == nil {
   805  		return false
   806  	}
   807  
   808  	if in.Enforcing != other.Enforcing {
   809  		return false
   810  	}
   811  	if ((in.Allowed != nil) && (other.Allowed != nil)) || ((in.Allowed == nil) != (other.Allowed == nil)) {
   812  		in, other := &in.Allowed, &other.Allowed
   813  		if other == nil || !in.DeepEqual(other) {
   814  			return false
   815  		}
   816  	}
   817  
   818  	if ((in.Denied != nil) && (other.Denied != nil)) || ((in.Denied == nil) != (other.Denied == nil)) {
   819  		in, other := &in.Denied, &other.Denied
   820  		if other == nil || !in.DeepEqual(other) {
   821  			return false
   822  		}
   823  	}
   824  
   825  	if ((in.Removing != nil) && (other.Removing != nil)) || ((in.Removing == nil) != (other.Removing == nil)) {
   826  		in, other := &in.Removing, &other.Removing
   827  		if other == nil || !in.DeepEqual(other) {
   828  			return false
   829  		}
   830  	}
   831  
   832  	if ((in.Adding != nil) && (other.Adding != nil)) || ((in.Adding == nil) != (other.Adding == nil)) {
   833  		in, other := &in.Adding, &other.Adding
   834  		if other == nil || !in.DeepEqual(other) {
   835  			return false
   836  		}
   837  	}
   838  
   839  	if in.State != other.State {
   840  		return false
   841  	}
   842  
   843  	return true
   844  }
   845  
   846  // DeepEqual is an autogenerated deepequal function, deeply comparing the
   847  // receiver with other. in must be non-nil.
   848  func (in *EndpointStatus) DeepEqual(other *EndpointStatus) bool {
   849  	if other == nil {
   850  		return false
   851  	}
   852  
   853  	if in.ID != other.ID {
   854  		return false
   855  	}
   856  	if ((in.Controllers != nil) && (other.Controllers != nil)) || ((in.Controllers == nil) != (other.Controllers == nil)) {
   857  		in, other := &in.Controllers, &other.Controllers
   858  		if other == nil || !in.DeepEqual(other) {
   859  			return false
   860  		}
   861  	}
   862  
   863  	if (in.ExternalIdentifiers == nil) != (other.ExternalIdentifiers == nil) {
   864  		return false
   865  	} else if in.ExternalIdentifiers != nil {
   866  		if !in.ExternalIdentifiers.DeepEqual(other.ExternalIdentifiers) {
   867  			return false
   868  		}
   869  	}
   870  
   871  	if (in.Health == nil) != (other.Health == nil) {
   872  		return false
   873  	} else if in.Health != nil {
   874  		if !in.Health.DeepEqual(other.Health) {
   875  			return false
   876  		}
   877  	}
   878  
   879  	if (in.Identity == nil) != (other.Identity == nil) {
   880  		return false
   881  	} else if in.Identity != nil {
   882  		if !in.Identity.DeepEqual(other.Identity) {
   883  			return false
   884  		}
   885  	}
   886  
   887  	if ((in.Log != nil) && (other.Log != nil)) || ((in.Log == nil) != (other.Log == nil)) {
   888  		in, other := &in.Log, &other.Log
   889  		if other == nil {
   890  			return false
   891  		}
   892  
   893  		if len(*in) != len(*other) {
   894  			return false
   895  		} else {
   896  			for i, inElement := range *in {
   897  				if !inElement.DeepEqual((*other)[i]) {
   898  					return false
   899  				}
   900  			}
   901  		}
   902  	}
   903  
   904  	if (in.Networking == nil) != (other.Networking == nil) {
   905  		return false
   906  	} else if in.Networking != nil {
   907  		if !in.Networking.DeepEqual(other.Networking) {
   908  			return false
   909  		}
   910  	}
   911  
   912  	if in.Encryption != other.Encryption {
   913  		return false
   914  	}
   915  
   916  	if (in.Policy == nil) != (other.Policy == nil) {
   917  		return false
   918  	} else if in.Policy != nil {
   919  		if !in.Policy.DeepEqual(other.Policy) {
   920  			return false
   921  		}
   922  	}
   923  
   924  	if (in.VisibilityPolicyStatus == nil) != (other.VisibilityPolicyStatus == nil) {
   925  		return false
   926  	} else if in.VisibilityPolicyStatus != nil {
   927  		if *in.VisibilityPolicyStatus != *other.VisibilityPolicyStatus {
   928  			return false
   929  		}
   930  	}
   931  
   932  	if in.State != other.State {
   933  		return false
   934  	}
   935  	if ((in.NamedPorts != nil) && (other.NamedPorts != nil)) || ((in.NamedPorts == nil) != (other.NamedPorts == nil)) {
   936  		in, other := &in.NamedPorts, &other.NamedPorts
   937  		if other == nil || !in.DeepEqual(other) {
   938  			return false
   939  		}
   940  	}
   941  
   942  	return true
   943  }
   944  
   945  // DeepEqual is an autogenerated deepequal function, deeply comparing the
   946  // receiver with other. in must be non-nil.
   947  func (in *Frontend) DeepEqual(other *Frontend) bool {
   948  	if other == nil {
   949  		return false
   950  	}
   951  
   952  	if in.IP != other.IP {
   953  		return false
   954  	}
   955  	if ((in.ToPorts != nil) && (other.ToPorts != nil)) || ((in.ToPorts == nil) != (other.ToPorts == nil)) {
   956  		in, other := &in.ToPorts, &other.ToPorts
   957  		if other == nil {
   958  			return false
   959  		}
   960  
   961  		if len(*in) != len(*other) {
   962  			return false
   963  		} else {
   964  			for i, inElement := range *in {
   965  				if !inElement.DeepEqual(&(*other)[i]) {
   966  					return false
   967  				}
   968  			}
   969  		}
   970  	}
   971  
   972  	return true
   973  }
   974  
   975  // DeepEqual is an autogenerated deepequal function, deeply comparing the
   976  // receiver with other. in must be non-nil.
   977  func (in *HealthAddressingSpec) DeepEqual(other *HealthAddressingSpec) bool {
   978  	if other == nil {
   979  		return false
   980  	}
   981  
   982  	if in.IPv4 != other.IPv4 {
   983  		return false
   984  	}
   985  	if in.IPv6 != other.IPv6 {
   986  		return false
   987  	}
   988  
   989  	return true
   990  }
   991  
   992  // DeepEqual is an autogenerated deepequal function, deeply comparing the
   993  // receiver with other. in must be non-nil.
   994  func (in *IdentityList) DeepEqual(other *IdentityList) bool {
   995  	if other == nil {
   996  		return false
   997  	}
   998  
   999  	if len(*in) != len(*other) {
  1000  		return false
  1001  	} else {
  1002  		for i, inElement := range *in {
  1003  			if !inElement.DeepEqual(&(*other)[i]) {
  1004  				return false
  1005  			}
  1006  		}
  1007  	}
  1008  
  1009  	return true
  1010  }
  1011  
  1012  // DeepEqual is an autogenerated deepequal function, deeply comparing the
  1013  // receiver with other. in must be non-nil.
  1014  func (in *IdentityTuple) DeepEqual(other *IdentityTuple) bool {
  1015  	if other == nil {
  1016  		return false
  1017  	}
  1018  
  1019  	if in.Identity != other.Identity {
  1020  		return false
  1021  	}
  1022  	if ((in.IdentityLabels != nil) && (other.IdentityLabels != nil)) || ((in.IdentityLabels == nil) != (other.IdentityLabels == nil)) {
  1023  		in, other := &in.IdentityLabels, &other.IdentityLabels
  1024  		if other == nil {
  1025  			return false
  1026  		}
  1027  
  1028  		if len(*in) != len(*other) {
  1029  			return false
  1030  		} else {
  1031  			for key, inValue := range *in {
  1032  				if otherValue, present := (*other)[key]; !present {
  1033  					return false
  1034  				} else {
  1035  					if inValue != otherValue {
  1036  						return false
  1037  					}
  1038  				}
  1039  			}
  1040  		}
  1041  	}
  1042  
  1043  	if in.DestPort != other.DestPort {
  1044  		return false
  1045  	}
  1046  	if in.Protocol != other.Protocol {
  1047  		return false
  1048  	}
  1049  
  1050  	return true
  1051  }
  1052  
  1053  // DeepEqual is an autogenerated deepequal function, deeply comparing the
  1054  // receiver with other. in must be non-nil.
  1055  func (in *NetworkPolicyCondition) DeepEqual(other *NetworkPolicyCondition) bool {
  1056  	if other == nil {
  1057  		return false
  1058  	}
  1059  
  1060  	if in.Type != other.Type {
  1061  		return false
  1062  	}
  1063  	if in.Status != other.Status {
  1064  		return false
  1065  	}
  1066  	if !in.LastTransitionTime.DeepEqual(&other.LastTransitionTime) {
  1067  		return false
  1068  	}
  1069  
  1070  	if in.Reason != other.Reason {
  1071  		return false
  1072  	}
  1073  	if in.Message != other.Message {
  1074  		return false
  1075  	}
  1076  
  1077  	return true
  1078  }
  1079  
  1080  // DeepEqual is an autogenerated deepequal function, deeply comparing the
  1081  // receiver with other. in must be non-nil.
  1082  func (in *NodeAddress) DeepEqual(other *NodeAddress) bool {
  1083  	if other == nil {
  1084  		return false
  1085  	}
  1086  
  1087  	if in.Type != other.Type {
  1088  		return false
  1089  	}
  1090  	if in.IP != other.IP {
  1091  		return false
  1092  	}
  1093  
  1094  	return true
  1095  }
  1096  
  1097  // DeepEqual is an autogenerated deepequal function, deeply comparing the
  1098  // receiver with other. in must be non-nil.
  1099  func (in *NodeSpec) DeepEqual(other *NodeSpec) bool {
  1100  	if other == nil {
  1101  		return false
  1102  	}
  1103  
  1104  	if in.InstanceID != other.InstanceID {
  1105  		return false
  1106  	}
  1107  	if in.BootID != other.BootID {
  1108  		return false
  1109  	}
  1110  	if ((in.Addresses != nil) && (other.Addresses != nil)) || ((in.Addresses == nil) != (other.Addresses == nil)) {
  1111  		in, other := &in.Addresses, &other.Addresses
  1112  		if other == nil {
  1113  			return false
  1114  		}
  1115  
  1116  		if len(*in) != len(*other) {
  1117  			return false
  1118  		} else {
  1119  			for i, inElement := range *in {
  1120  				if !inElement.DeepEqual(&(*other)[i]) {
  1121  					return false
  1122  				}
  1123  			}
  1124  		}
  1125  	}
  1126  
  1127  	if in.HealthAddressing != other.HealthAddressing {
  1128  		return false
  1129  	}
  1130  
  1131  	if in.IngressAddressing != other.IngressAddressing {
  1132  		return false
  1133  	}
  1134  
  1135  	if in.Encryption != other.Encryption {
  1136  		return false
  1137  	}
  1138  
  1139  	if !in.ENI.DeepEqual(&other.ENI) {
  1140  		return false
  1141  	}
  1142  
  1143  	if in.Azure != other.Azure {
  1144  		return false
  1145  	}
  1146  
  1147  	if !in.AlibabaCloud.DeepEqual(&other.AlibabaCloud) {
  1148  		return false
  1149  	}
  1150  
  1151  	if !in.IPAM.DeepEqual(&other.IPAM) {
  1152  		return false
  1153  	}
  1154  
  1155  	if in.NodeIdentity != other.NodeIdentity {
  1156  		return false
  1157  	}
  1158  
  1159  	return true
  1160  }
  1161  
  1162  // DeepEqual is an autogenerated deepequal function, deeply comparing the
  1163  // receiver with other. in must be non-nil.
  1164  func (in *NodeStatus) DeepEqual(other *NodeStatus) bool {
  1165  	if other == nil {
  1166  		return false
  1167  	}
  1168  
  1169  	if !in.ENI.DeepEqual(&other.ENI) {
  1170  		return false
  1171  	}
  1172  
  1173  	if !in.Azure.DeepEqual(&other.Azure) {
  1174  		return false
  1175  	}
  1176  
  1177  	if !in.IPAM.DeepEqual(&other.IPAM) {
  1178  		return false
  1179  	}
  1180  
  1181  	if !in.AlibabaCloud.DeepEqual(&other.AlibabaCloud) {
  1182  		return false
  1183  	}
  1184  
  1185  	return true
  1186  }
  1187  
  1188  // DeepEqual is an autogenerated deepequal function, deeply comparing the
  1189  // receiver with other. in must be non-nil.
  1190  func (in *PortInfo) DeepEqual(other *PortInfo) bool {
  1191  	if other == nil {
  1192  		return false
  1193  	}
  1194  
  1195  	if in.Port != other.Port {
  1196  		return false
  1197  	}
  1198  	if in.Protocol != other.Protocol {
  1199  		return false
  1200  	}
  1201  	if in.Name != other.Name {
  1202  		return false
  1203  	}
  1204  
  1205  	return true
  1206  }
  1207  
  1208  // DeepEqual is an autogenerated deepequal function, deeply comparing the
  1209  // receiver with other. in must be non-nil.
  1210  func (in *RedirectBackend) DeepEqual(other *RedirectBackend) bool {
  1211  	if other == nil {
  1212  		return false
  1213  	}
  1214  
  1215  	if !in.LocalEndpointSelector.DeepEqual(&other.LocalEndpointSelector) {
  1216  		return false
  1217  	}
  1218  
  1219  	if ((in.ToPorts != nil) && (other.ToPorts != nil)) || ((in.ToPorts == nil) != (other.ToPorts == nil)) {
  1220  		in, other := &in.ToPorts, &other.ToPorts
  1221  		if other == nil {
  1222  			return false
  1223  		}
  1224  
  1225  		if len(*in) != len(*other) {
  1226  			return false
  1227  		} else {
  1228  			for i, inElement := range *in {
  1229  				if !inElement.DeepEqual(&(*other)[i]) {
  1230  					return false
  1231  				}
  1232  			}
  1233  		}
  1234  	}
  1235  
  1236  	return true
  1237  }
  1238  
  1239  // DeepEqual is an autogenerated deepequal function, deeply comparing the
  1240  // receiver with other. in must be non-nil.
  1241  func (in *RedirectFrontend) DeepEqual(other *RedirectFrontend) bool {
  1242  	if other == nil {
  1243  		return false
  1244  	}
  1245  
  1246  	if (in.AddressMatcher == nil) != (other.AddressMatcher == nil) {
  1247  		return false
  1248  	} else if in.AddressMatcher != nil {
  1249  		if !in.AddressMatcher.DeepEqual(other.AddressMatcher) {
  1250  			return false
  1251  		}
  1252  	}
  1253  
  1254  	if (in.ServiceMatcher == nil) != (other.ServiceMatcher == nil) {
  1255  		return false
  1256  	} else if in.ServiceMatcher != nil {
  1257  		if !in.ServiceMatcher.DeepEqual(other.ServiceMatcher) {
  1258  			return false
  1259  		}
  1260  	}
  1261  
  1262  	return true
  1263  }
  1264  
  1265  // DeepEqual is an autogenerated deepequal function, deeply comparing the
  1266  // receiver with other. in must be non-nil.
  1267  func (in *Service) DeepEqual(other *Service) bool {
  1268  	if other == nil {
  1269  		return false
  1270  	}
  1271  
  1272  	if in.Name != other.Name {
  1273  		return false
  1274  	}
  1275  	if in.Namespace != other.Namespace {
  1276  		return false
  1277  	}
  1278  	if ((in.Ports != nil) && (other.Ports != nil)) || ((in.Ports == nil) != (other.Ports == nil)) {
  1279  		in, other := &in.Ports, &other.Ports
  1280  		if other == nil {
  1281  			return false
  1282  		}
  1283  
  1284  		if len(*in) != len(*other) {
  1285  			return false
  1286  		} else {
  1287  			for i, inElement := range *in {
  1288  				if inElement != (*other)[i] {
  1289  					return false
  1290  				}
  1291  			}
  1292  		}
  1293  	}
  1294  
  1295  	return true
  1296  }
  1297  
  1298  // DeepEqual is an autogenerated deepequal function, deeply comparing the
  1299  // receiver with other. in must be non-nil.
  1300  func (in *ServiceInfo) DeepEqual(other *ServiceInfo) bool {
  1301  	if other == nil {
  1302  		return false
  1303  	}
  1304  
  1305  	if in.Name != other.Name {
  1306  		return false
  1307  	}
  1308  	if in.Namespace != other.Namespace {
  1309  		return false
  1310  	}
  1311  	if ((in.ToPorts != nil) && (other.ToPorts != nil)) || ((in.ToPorts == nil) != (other.ToPorts == nil)) {
  1312  		in, other := &in.ToPorts, &other.ToPorts
  1313  		if other == nil {
  1314  			return false
  1315  		}
  1316  
  1317  		if len(*in) != len(*other) {
  1318  			return false
  1319  		} else {
  1320  			for i, inElement := range *in {
  1321  				if !inElement.DeepEqual(&(*other)[i]) {
  1322  					return false
  1323  				}
  1324  			}
  1325  		}
  1326  	}
  1327  
  1328  	return true
  1329  }
  1330  
  1331  // DeepEqual is an autogenerated deepequal function, deeply comparing the
  1332  // receiver with other. in must be non-nil.
  1333  func (in *ServiceListener) DeepEqual(other *ServiceListener) bool {
  1334  	if other == nil {
  1335  		return false
  1336  	}
  1337  
  1338  	if in.Name != other.Name {
  1339  		return false
  1340  	}
  1341  	if in.Namespace != other.Namespace {
  1342  		return false
  1343  	}
  1344  	if ((in.Ports != nil) && (other.Ports != nil)) || ((in.Ports == nil) != (other.Ports == nil)) {
  1345  		in, other := &in.Ports, &other.Ports
  1346  		if other == nil {
  1347  			return false
  1348  		}
  1349  
  1350  		if len(*in) != len(*other) {
  1351  			return false
  1352  		} else {
  1353  			for i, inElement := range *in {
  1354  				if inElement != (*other)[i] {
  1355  					return false
  1356  				}
  1357  			}
  1358  		}
  1359  	}
  1360  
  1361  	if in.Listener != other.Listener {
  1362  		return false
  1363  	}
  1364  
  1365  	return true
  1366  }