Ejemplo n.º 1
0
 public override int GetHashCode()
 {
     unchecked
     {
         var hashCode = (ClusterName != null ? ClusterName.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ (Address != null ? Address.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ (Roles != null ? Roles.GetHashCode() : 0);
         return(hashCode);
     }
 }
Ejemplo n.º 2
0
 public override int GetHashCode() {
   int hash = 1;
   if (ClusterName.Length != 0) hash ^= ClusterName.GetHashCode();
   hash ^= endpoints_.GetHashCode();
   hash ^= NamedEndpoints.GetHashCode();
   if (policy_ != null) hash ^= Policy.GetHashCode();
   if (_unknownFields != null) {
     hash ^= _unknownFields.GetHashCode();
   }
   return hash;
 }
        public override int GetHashCode()
        {
            int hash = 1;

            if (Type != global::Envoy.Data.Cluster.V3Alpha.OutlierEjectionType.Consecutive5Xx)
            {
                hash ^= Type.GetHashCode();
            }
            if (timestamp_ != null)
            {
                hash ^= Timestamp.GetHashCode();
            }
            if (secsSinceLastAction_ != null)
            {
                hash ^= SecsSinceLastAction.GetHashCode();
            }
            if (ClusterName.Length != 0)
            {
                hash ^= ClusterName.GetHashCode();
            }
            if (UpstreamUrl.Length != 0)
            {
                hash ^= UpstreamUrl.GetHashCode();
            }
            if (Action != global::Envoy.Data.Cluster.V3Alpha.Action.Eject)
            {
                hash ^= Action.GetHashCode();
            }
            if (NumEjections != 0)
            {
                hash ^= NumEjections.GetHashCode();
            }
            if (Enforced != false)
            {
                hash ^= Enforced.GetHashCode();
            }
            if (eventCase_ == EventOneofCase.EjectSuccessRateEvent)
            {
                hash ^= EjectSuccessRateEvent.GetHashCode();
            }
            if (eventCase_ == EventOneofCase.EjectConsecutiveEvent)
            {
                hash ^= EjectConsecutiveEvent.GetHashCode();
            }
            hash ^= (int)eventCase_;
            if (_unknownFields != null)
            {
                hash ^= _unknownFields.GetHashCode();
            }
            return(hash);
        }
        public override int GetHashCode()
        {
            int hash = 1;

            if (serviceSpecifierCase_ == ServiceSpecifierOneofCase.ClusterName)
            {
                hash ^= ClusterName.GetHashCode();
            }
            if (serviceSpecifierCase_ == ServiceSpecifierOneofCase.GrpcService)
            {
                hash ^= GrpcService.GetHashCode();
            }
            hash ^= (int)serviceSpecifierCase_;
            if (_unknownFields != null)
            {
                hash ^= _unknownFields.GetHashCode();
            }
            return(hash);
        }
        public override int GetHashCode()
        {
            int hash = 1;

            if (ClusterName.Length != 0)
            {
                hash ^= ClusterName.GetHashCode();
            }
            hash ^= upstreamLocalityStats_.GetHashCode();
            if (TotalDroppedRequests != 0UL)
            {
                hash ^= TotalDroppedRequests.GetHashCode();
            }
            if (_unknownFields != null)
            {
                hash ^= _unknownFields.GetHashCode();
            }
            return(hash);
        }