public override int GetHashCode()
        {
            int hash = 1;

            if (hostIdentifierCase_ == HostIdentifierOneofCase.Endpoint)
            {
                hash ^= Endpoint.GetHashCode();
            }
            if (hostIdentifierCase_ == HostIdentifierOneofCase.EndpointName)
            {
                hash ^= EndpointName.GetHashCode();
            }
            if (HealthStatus != global::Envoy.Api.V2.Core.HealthStatus.Unknown)
            {
                hash ^= HealthStatus.GetHashCode();
            }
            if (metadata_ != null)
            {
                hash ^= Metadata.GetHashCode();
            }
            if (loadBalancingWeight_ != null)
            {
                hash ^= LoadBalancingWeight.GetHashCode();
            }
            hash ^= (int)hostIdentifierCase_;
            if (_unknownFields != null)
            {
                hash ^= _unknownFields.GetHashCode();
            }
            return(hash);
        }
        public override int GetHashCode()
        {
            int hash = 1;

            if (locality_ != null)
            {
                hash ^= Locality.GetHashCode();
            }
            hash ^= lbEndpoints_.GetHashCode();
            if (loadBalancingWeight_ != null)
            {
                hash ^= LoadBalancingWeight.GetHashCode();
            }
            if (Priority != 0)
            {
                hash ^= Priority.GetHashCode();
            }
            if (proximity_ != null)
            {
                hash ^= Proximity.GetHashCode();
            }
            if (_unknownFields != null)
            {
                hash ^= _unknownFields.GetHashCode();
            }
            return(hash);
        }