Пример #1
0
                public override int GetHashCode()
                {
                    int hash = 1;

                    if (Code != global::Envoy.Service.Ratelimit.V2.RateLimitResponse.Types.Code.Unknown)
                    {
                        hash ^= Code.GetHashCode();
                    }
                    if (currentLimit_ != null)
                    {
                        hash ^= CurrentLimit.GetHashCode();
                    }
                    if (LimitRemaining != 0)
                    {
                        hash ^= LimitRemaining.GetHashCode();
                    }
                    if (_unknownFields != null)
                    {
                        hash ^= _unknownFields.GetHashCode();
                    }
                    return(hash);
                }
Пример #2
0
                public override int GetHashCode()
                {
                    int hash = 1;

                    if (Code != 0)
                    {
                        hash ^= Code.GetHashCode();
                    }
                    if (currentLimit_ != null)
                    {
                        hash ^= CurrentLimit.GetHashCode();
                    }
                    if (LimitRemaining != 0)
                    {
                        hash ^= LimitRemaining.GetHashCode();
                    }
                    if (_unknownFields != null)
                    {
                        hash ^= _unknownFields.GetHashCode();
                    }
                    return(hash);
                }