// Equals checks whether a given ACName is equal to this one.
186760
func (n ACName) Equals(o ACName) bool {
	return strings.ToLower(string(n)) == strings.ToLower(string(o))
}
1065287
func (xs *Affinities) Equals(ys *Affinities) bool {
	if xs == ys {
		return true
	}
	if xs == nil || ys == nil {
		return false
	}
	if len(*xs) != len(*ys) {
		return false
	}
SETEQUALS:
	for _, x := range *xs {
		for _, y := range *ys {
			if x.Equals(y) {
				continue SETEQUALS
			}
		}
		return false
	}
	return true
}
1310760
func (row *NuagePortTableRow) Equals(otherRow interface{}) bool {

	nuagePortTableRow, ok := otherRow.(NuagePortTableRow)

	if !ok {
		return false
	}

	if strings.Compare(row.Name, nuagePortTableRow.Name) != 0 {
		return false
	}

	if strings.Compare(row.Mac, nuagePortTableRow.Mac) != 0 {
		return false
	}

	if strings.Compare(row.IPAddr, nuagePortTableRow.IPAddr) != 0 {
		return false
	}

	if strings.Compare(row.SubnetMask, nuagePortTableRow.SubnetMask) != 0 {
		return false
	}

	if strings.Compare(row.Gateway, nuagePortTableRow.Gateway) != 0 {
		return false
	}

	if strings.Compare(row.Bridge, nuagePortTableRow.Bridge) != 0 {
		return false
	}

	if strings.Compare(row.Alias, nuagePortTableRow.Alias) != 0 {
		return false
	}

	if strings.Compare(row.NuageDomain, nuagePortTableRow.NuageDomain) != 0 {
		return false
	}

	if strings.Compare(row.NuageNetwork, nuagePortTableRow.NuageNetwork) != 0 {
		return false
	}

	if strings.Compare(row.NuageNetworkType, nuagePortTableRow.NuageNetworkType) != 0 {
		return false
	}

	if strings.Compare(row.NuageZone, nuagePortTableRow.NuageZone) != 0 {
		return false
	}

	if row.EVPNId != nuagePortTableRow.EVPNId {
		return false
	}

	if row.VRFId != nuagePortTableRow.VRFId {
		return false
	}

	if row.VMDomain != nuagePortTableRow.VMDomain {
		return false
	}

	if !reflect.DeepEqual(row.Metadata, nuagePortTableRow.Metadata) {
		return false
	}

	if row.Dirty != nuagePortTableRow.Dirty {
		return false
	}

	return true
}
1286088
func (h *Host) equals(other *Host) bool {
	return h.Name == other.Name && h.Port == other.Port
}
834336
func (dest ApplicationDestination) Equals(other ApplicationDestination) bool {
	return reflect.DeepEqual(dest, other)
}
780577
func (v *NestedListsI32x2) Equals(rhs *NestedListsI32x2) bool {
	if v == nil {
		return rhs == nil
	} else if rhs == nil {
		return false
	}
	if !((v.Integerlist == nil && rhs.Integerlist == nil) || (v.Integerlist != nil && rhs.Integerlist != nil && _List_List_I32_Equals(v.Integerlist, rhs.Integerlist))) {
		return false
	}

	return true
}
139060
func (data *SignedCDSData) Equals(other *SignedCDSData) bool {
	return other != nil &&
		bytes.Equal(data.CodeHash, other.CodeHash) &&
		bytes.Equal(data.MetaDataHash, other.MetaDataHash) &&
		bytes.Equal(data.SignatureHash, other.SignatureHash)
}
359152
func (v *Bonk) Equals(rhs *Bonk) bool {
	if v == nil {
		return rhs == nil
	} else if rhs == nil {
		return false
	}
	if !_String_EqualsPtr(v.Message, rhs.Message) {
		return false
	}
	if !_I32_EqualsPtr(v.Type, rhs.Type) {
		return false
	}

	return true
}
6216
func (v *Bools) Equals(rhs *Bools) bool {
	if v == nil {
		return rhs == nil
	} else if rhs == nil {
		return false
	}
	if !_Bool_EqualsPtr(v.ImTrue, rhs.ImTrue) {
		return false
	}
	if !_Bool_EqualsPtr(v.ImFalse, rhs.ImFalse) {
		return false
	}

	return true
}
149599
func (v *ResourceDoesNotExist) Equals(rhs *ResourceDoesNotExist) bool {
	if v == nil {
		return rhs == nil
	} else if rhs == nil {
		return false
	}
	if !(v.Key == rhs.Key) {
		return false
	}
	if !_String_EqualsPtr(v.Message, rhs.Message) {
		return false
	}

	return true
}
268064
func (v *KeyValue_GetValue_Result) Equals(rhs *KeyValue_GetValue_Result) bool {
	if v == nil {
		return rhs == nil
	} else if rhs == nil {
		return false
	}
	if !_String_EqualsPtr(v.Success, rhs.Success) {
		return false
	}
	if !((v.DoesNotExist == nil && rhs.DoesNotExist == nil) || (v.DoesNotExist != nil && rhs.DoesNotExist != nil && v.DoesNotExist.Equals(rhs.DoesNotExist))) {
		return false
	}

	return true
}
5069
func IsEqualName(val reflect.Value, tname string) bool {
	return nameof(val.Type()) == tname
}
316571
func (v Version) Equals(o *Version) bool {
	if o == nil {
		return v.IsZero()
	}

	if v.Scalar == o.Scalar && v.PID == o.PID {
		return true
	}
	return false
}
1244689
func (v *BoolTest) Equals(rhs *BoolTest) bool {
	if v == nil {
		return rhs == nil
	} else if rhs == nil {
		return false
	}
	if !_Bool_EqualsPtr(v.B, rhs.B) {
		return false
	}
	if !_String_EqualsPtr(v.S, rhs.S) {
		return false
	}

	return true
}
388413
func (i *ExternalIdentity) Equals(other *ExternalIdentity) bool {
	return i.ConnectorID == other.ConnectorID && i.Username == other.Username
}
91483
func (c *Constraint) Equals(o *Constraint) bool {
	return c == o ||
		c.LTarget == o.LTarget &&
			c.RTarget == o.RTarget &&
			c.Operand == o.Operand
}
663247
func (m Machine) Equals(other Machine) bool {
	if m.Id == other.Id && m.Name == other.Name && m.Type == other.Type && m.Dataset == other.Dataset &&
		m.Memory == other.Memory && m.Disk == other.Disk && m.Package == other.Package && m.Image == other.Image &&
		m.compareIPs(other) && m.compareMetadata(other) {
		return true
	}
	return false
}