public void MergeFrom(Policy other) { if (other == null) { return; } dropOverloads_.Add(other.dropOverloads_); if (other.overprovisioningFactor_ != null) { if (overprovisioningFactor_ == null || other.OverprovisioningFactor != 0) { OverprovisioningFactor = other.OverprovisioningFactor; } } if (other.endpointStaleAfter_ != null) { if (endpointStaleAfter_ == null) { EndpointStaleAfter = new global::Google.Protobuf.WellKnownTypes.Duration(); } EndpointStaleAfter.MergeFrom(other.EndpointStaleAfter); } if (other.DisableOverprovisioning != false) { DisableOverprovisioning = other.DisableOverprovisioning; } _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); }
public override int GetHashCode() { int hash = 1; hash ^= dropOverloads_.GetHashCode(); if (overprovisioningFactor_ != null) hash ^= OverprovisioningFactor.GetHashCode(); if (endpointStaleAfter_ != null) hash ^= EndpointStaleAfter.GetHashCode(); if (DisableOverprovisioning != false) hash ^= DisableOverprovisioning.GetHashCode(); if (_unknownFields != null) { hash ^= _unknownFields.GetHashCode(); } return hash; }