Example #1
0
        public override int GetHashCode()
        {
            int result = ProtocolType.GetHashCode();

            result = 31 * result + (this.CSharpType != null ? CSharpType.GetHashCode() : 0);
            return(result);
        }
Example #2
0
 /// <inheritdoc />
 public override int GetHashCode()
 {
     unchecked {
         var hashCode = (int)ApiKey;
         hashCode = (hashCode * 397) ^ (ProtocolType?.GetHashCode() ?? 0);
         return(hashCode);
     }
 }
 /// <inheritdoc />
 public override int GetHashCode()
 {
     unchecked {
         var hashCode = (int)ErrorCode;
         hashCode = (hashCode * 397) ^ (GroupId?.GetHashCode() ?? 0);
         hashCode = (hashCode * 397) ^ (State?.GetHashCode() ?? 0);
         hashCode = (hashCode * 397) ^ (ProtocolType?.GetHashCode() ?? 0);
         hashCode = (hashCode * 397) ^ (Protocol?.GetHashCode() ?? 0);
         hashCode = (hashCode * 397) ^ (Members?.GetHashCode() ?? 0);
         return(hashCode);
     }
 }
        public override int GetHashCode()
        {
            int hash = 1;

            if (StatPrefix.Length != 0)
            {
                hash ^= StatPrefix.GetHashCode();
            }
            if (ProtocolType != global::Envoy.Config.Filter.Network.DubboProxy.V3Alpha.ProtocolType.Dubbo)
            {
                hash ^= ProtocolType.GetHashCode();
            }
            if (SerializationType != global::Envoy.Config.Filter.Network.DubboProxy.V3Alpha.SerializationType.Hessian2)
            {
                hash ^= SerializationType.GetHashCode();
            }
            hash ^= routeConfig_.GetHashCode();
            hash ^= dubboFilters_.GetHashCode();
            if (_unknownFields != null)
            {
                hash ^= _unknownFields.GetHashCode();
            }
            return(hash);
        }
Example #5
0
 public override int GetHashCode()
 {
     return(ProtocolType.GetHashCode() ^ base.GetHashCode());
 }
Example #6
0
 public override int GetHashCode()
 {
     return(Protocol.GetHashCode() ^ Source.GetHashCode() ^ Destination.GetHashCode());
 }