//go:build !ignore_autogenerated
// +build !ignore_autogenerated

// SPDX-License-Identifier: Apache-2.0
// Copyright Authors of Cilium

// Code generated by deepequal-gen. DO NOT EDIT.

package types

// DeepEqual is an autogenerated deepequal function, deeply comparing the
// receiver with other. in must be non-nil.
func (in *CiliumClusterConfig) DeepEqual(other *CiliumClusterConfig) bool {
	if other == nil {
		return false
	}

	if in.ID != other.ID {
		return false
	}
	if !in.Capabilities.DeepEqual(&other.Capabilities) {
		return false
	}

	return true
}

// DeepEqual is an autogenerated deepequal function, deeply comparing the
// receiver with other. in must be non-nil.
func (in *CiliumClusterConfigCapabilities) DeepEqual(other *CiliumClusterConfigCapabilities) bool {
	if other == nil {
		return false
	}

	if in.SyncedCanaries != other.SyncedCanaries {
		return false
	}
	if in.Cached != other.Cached {
		return false
	}
	if in.MaxConnectedClusters != other.MaxConnectedClusters {
		return false
	}
	if (in.ServiceExportsEnabled == nil) != (other.ServiceExportsEnabled == nil) {
		return false
	} else if in.ServiceExportsEnabled != nil {
		if *in.ServiceExportsEnabled != *other.ServiceExportsEnabled {
			return false
		}
	}

	if in.EndpointSlicesExportMode != other.EndpointSlicesExportMode {
		return false
	}

	return true
}
