Example #1
0
        public override int GetHashCode()
        {
            int hash = 1;

            if (address_ != null)
            {
                hash ^= Address.GetHashCode();
            }
            if (Port != 0)
            {
                hash ^= Port.GetHashCode();
            }
            if (networkList_ != null)
            {
                hash ^= NetworkList.GetHashCode();
            }
            hash ^= networks_.GetHashCode();
            if (Timeout != 0)
            {
                hash ^= Timeout.GetHashCode();
            }
            if (FollowRedirect != false)
            {
                hash ^= FollowRedirect.GetHashCode();
            }
            if (UserLevel != 0)
            {
                hash ^= UserLevel.GetHashCode();
            }
            if (_unknownFields != null)
            {
                hash ^= _unknownFields.GetHashCode();
            }
            return(hash);
        }
Example #2
0
        public override int GetHashCode()
        {
            int hash = 1;

            if (Path.Length != 0)
            {
                hash ^= Path.GetHashCode();
            }
            if (Method.Length != 0)
            {
                hash ^= Method.GetHashCode();
            }
            if (Description.Length != 0)
            {
                hash ^= Description.GetHashCode();
            }
            if (Timeout != 0)
            {
                hash ^= Timeout.GetHashCode();
            }
            if (Plugin.Length != 0)
            {
                hash ^= Plugin.GetHashCode();
            }
            return(hash);
        }
Example #3
0
 public override int GetHashCode()
 {
     unchecked
     {
         return((Timeout.GetHashCode() * 397) ^ MinCapacity);
     }
 }
Example #4
0
        public override int GetHashCode()
        {
            int hash = 1;

            if (DomainStrategy != 0)
            {
                hash ^= DomainStrategy.GetHashCode();
            }
            if (Timeout != 0)
            {
                hash ^= Timeout.GetHashCode();
            }
            if (destinationOverride_ != null)
            {
                hash ^= DestinationOverride.GetHashCode();
            }
            if (UserLevel != 0)
            {
                hash ^= UserLevel.GetHashCode();
            }
            if (_unknownFields != null)
            {
                hash ^= _unknownFields.GetHashCode();
            }
            return(hash);
        }
Example #5
0
        public override int GetHashCode()
        {
            int hash = 1;

            if (AuthType != global::V2Ray.Core.Proxy.Socks.AuthType.NoAuth)
            {
                hash ^= AuthType.GetHashCode();
            }
            hash ^= Accounts.GetHashCode();
            if (address_ != null)
            {
                hash ^= Address.GetHashCode();
            }
            if (UdpEnabled != false)
            {
                hash ^= UdpEnabled.GetHashCode();
            }
            if (Timeout != 0)
            {
                hash ^= Timeout.GetHashCode();
            }
            if (UserLevel != 0)
            {
                hash ^= UserLevel.GetHashCode();
            }
            if (_unknownFields != null)
            {
                hash ^= _unknownFields.GetHashCode();
            }
            return(hash);
        }
Example #6
0
        public override int GetHashCode()
        {
            int hash = 1;

            if (Path.Length != 0)
            {
                hash ^= Path.GetHashCode();
            }
            if (Method.Length != 0)
            {
                hash ^= Method.GetHashCode();
            }
            if (Description.Length != 0)
            {
                hash ^= Description.GetHashCode();
            }
            if (Timeout != 0)
            {
                hash ^= Timeout.GetHashCode();
            }
            if (Plugin.Length != 0)
            {
                hash ^= Plugin.GetHashCode();
            }
            if (Category.Length != 0)
            {
                hash ^= Category.GetHashCode();
            }
            if (_unknownFields != null)
            {
                hash ^= _unknownFields.GetHashCode();
            }
            return(hash);
        }
Example #7
0
        public override int GetHashCode()
        {
            int hash = 1;

            if (StatPrefix.Length != 0)
            {
                hash ^= StatPrefix.GetHashCode();
            }
            if (Domain.Length != 0)
            {
                hash ^= Domain.GetHashCode();
            }
            hash ^= descriptors_.GetHashCode();
            if (timeout_ != null)
            {
                hash ^= Timeout.GetHashCode();
            }
            if (FailureModeDeny != false)
            {
                hash ^= FailureModeDeny.GetHashCode();
            }
            if (rateLimitService_ != null)
            {
                hash ^= RateLimitService.GetHashCode();
            }
            if (_unknownFields != null)
            {
                hash ^= _unknownFields.GetHashCode();
            }
            return(hash);
        }
Example #8
0
 /// <summary>
 /// Gets the hash code
 /// </summary>
 /// <returns>Hash code</returns>
 public override int GetHashCode()
 {
     unchecked // Overflow is fine, just wrap
     {
         var hashCode = 41;
         // Suitable nullity checks etc, of course :)
         if (Timeout != null)
         {
             hashCode = hashCode * 59 + Timeout.GetHashCode();
         }
         if (TargetStartLevel != null)
         {
             hashCode = hashCode * 59 + TargetStartLevel.GetHashCode();
         }
         if (TargetStartLevelPropName != null)
         {
             hashCode = hashCode * 59 + TargetStartLevelPropName.GetHashCode();
         }
         if (Type != null)
         {
             hashCode = hashCode * 59 + Type.GetHashCode();
         }
         return(hashCode);
     }
 }
Example #9
0
 /// <inheritdoc/>
 public override int GetHashCode()
 {
     unchecked
     {
         var initial = Timeout.GetHashCode();
         return((initial * 397) ^ Mode.GetHashCode());
     }
 }
Example #10
0
        public override int GetHashCode()
        {
            int hash = 1;

            if (Timestamp != 0L)
            {
                hash ^= Timestamp.GetHashCode();
            }
            if (GlobalTxId.Length != 0)
            {
                hash ^= GlobalTxId.GetHashCode();
            }
            if (LocalTxId.Length != 0)
            {
                hash ^= LocalTxId.GetHashCode();
            }
            if (ParentTxId.Length != 0)
            {
                hash ^= ParentTxId.GetHashCode();
            }
            if (Type.Length != 0)
            {
                hash ^= Type.GetHashCode();
            }
            if (CompensationMethod.Length != 0)
            {
                hash ^= CompensationMethod.GetHashCode();
            }
            if (Payloads.Length != 0)
            {
                hash ^= Payloads.GetHashCode();
            }
            if (ServiceName.Length != 0)
            {
                hash ^= ServiceName.GetHashCode();
            }
            if (InstanceId.Length != 0)
            {
                hash ^= InstanceId.GetHashCode();
            }
            if (Timeout != 0)
            {
                hash ^= Timeout.GetHashCode();
            }
            if (Retries != 0)
            {
                hash ^= Retries.GetHashCode();
            }
            if (RetryMethod.Length != 0)
            {
                hash ^= RetryMethod.GetHashCode();
            }
            if (_unknownFields != null)
            {
                hash ^= _unknownFields.GetHashCode();
            }
            return(hash);
        }
Example #11
0
 /// <inheritdoc />
 public override int GetHashCode()
 {
     unchecked {
         var hashCode = Timeout.GetHashCode();
         hashCode = (hashCode * 397) ^ Acks.GetHashCode();
         hashCode = (hashCode * 397) ^ (Payloads?.GetHashCode() ?? 0);
         return(hashCode);
     }
 }
Example #12
0
 /// <inheritdoc/>
 public override int GetHashCode()
 {
     unchecked
     {
         var hashCode = DependsOn?.GetHashCode() ?? 0;
         hashCode = (hashCode * 397) ^ Timeout.GetHashCode();
         hashCode = (hashCode * 397) ^ Recover.GetHashCode();
         return(hashCode);
     }
 }
Example #13
0
 /// <inheritdoc/>
 public override int GetHashCode()
 {
     unchecked
     {
         int hashCode = 13;
         hashCode = (hashCode * 397) ^ Timeout.GetHashCode();
         hashCode = (hashCode * 397) ^ Additional.GetHashCode();
         hashCode = (hashCode * 397) ^ MinCapacity.GetHashCode();
         return(hashCode);
     }
 }
Example #14
0
 public override int GetHashCode()
 {
     unchecked
     {
         int hashCode = (ApiKey != null ? ApiKey.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ (Credentials != null ? Credentials.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ Timeout.GetHashCode();
         hashCode = (hashCode * 397) ^ AuthenticationDisabled.GetHashCode();
         return(hashCode);
     }
 }
Example #15
0
 /// <summary>
 /// Returns a hash code for the current object.
 /// Uses a combination of the public properties to generate a unique hash code.
 /// </summary>
 /// <returns>A hash code for the current object.</returns>
 public override int GetHashCode()
 {
     unchecked
     {
         int result = bucketType.GetHashCode();
         result = (result * 397) ^ bucket.GetHashCode();
         result = (result * 397) ^ (key != null ? key.GetHashCode() : 0);
         result = (result * 397) ^ timeout.GetHashCode();
         return(result);
     }
 }
Example #16
0
File: FSM.cs Project: ongbe/tqapi
        public override int GetHashCode()
        {
            unchecked
            {
                var hashCode = EqualityComparer <TS> .Default.GetHashCode(StateName);

                hashCode = (hashCode * 397) ^ EqualityComparer <TD> .Default.GetHashCode(StateData);

                hashCode = (hashCode * 397) ^ Timeout.GetHashCode();
                hashCode = (hashCode * 397) ^ (StopReason != null ? StopReason.GetHashCode() : 0);
                return(hashCode);
            }
        }
Example #17
0
 public override int GetHashCode() {
   int hash = 1;
   if (Ip.Length != 0) hash ^= Ip.GetHashCode();
   if (Port != 0) hash ^= Port.GetHashCode();
   if (Timeout != 0) hash ^= Timeout.GetHashCode();
   if (Name.Length != 0) hash ^= Name.GetHashCode();
   if (Nickname.Length != 0) hash ^= Nickname.GetHashCode();
   if (Weight != 0) hash ^= Weight.GetHashCode();
   if (_unknownFields != null) {
     hash ^= _unknownFields.GetHashCode();
   }
   return hash;
 }
Example #18
0
 /// <summary>
 ///     Serves as a hash function for a particular type.
 /// </summary>
 /// <returns>
 ///     A hash code for the current <see cref = "T:System.Object" />.
 /// </returns>
 /// <filterpriority>2</filterpriority>
 public override int GetHashCode()
 {
     unchecked
     {
         var result = IsolationLevel.GetHashCode();
         result = (result * 397) ^ Mode.GetHashCode();
         result = (result * 397) ^ Fork.GetHashCode();
         result = (result * 397) ^ Timeout.GetHashCode();
         result = (result * 397) ^ _CustomContext.GetHashCode();
         result = (result * 397) ^ AsyncRollback.GetHashCode();
         result = (result * 397) ^ AsyncCommit.GetHashCode();
         result = (result * 397) ^ DependentOption.GetHashCode();
         return(result);
     }
 }
Example #19
0
        public override int GetHashCode()
        {
            int hash = 1;

            if (ID.Length != 0)
            {
                hash ^= ID.GetHashCode();
            }
            if (Channel.Length != 0)
            {
                hash ^= Channel.GetHashCode();
            }
            if (Metadata.Length != 0)
            {
                hash ^= Metadata.GetHashCode();
            }
            if (Body.Length != 0)
            {
                hash ^= Body.GetHashCode();
            }
            if (ReplyChannel.Length != 0)
            {
                hash ^= ReplyChannel.GetHashCode();
            }
            if (Timeout != 0)
            {
                hash ^= Timeout.GetHashCode();
            }
            if (CacheKey.Length != 0)
            {
                hash ^= CacheKey.GetHashCode();
            }
            if (CacheTTL != 0)
            {
                hash ^= CacheTTL.GetHashCode();
            }
            if (Context.Length != 0)
            {
                hash ^= Context.GetHashCode();
            }
            if (_unknownFields != null)
            {
                hash ^= _unknownFields.GetHashCode();
            }
            return(hash);
        }
Example #20
0
        public override int GetHashCode()
        {
            int hash = 1;

            if (ServiceId != 0)
            {
                hash ^= ServiceId.GetHashCode();
            }
            if (MethodId != 0)
            {
                hash ^= MethodId.GetHashCode();
            }
            if (Token != 0)
            {
                hash ^= Token.GetHashCode();
            }
            if (ObjectId != 0UL)
            {
                hash ^= ObjectId.GetHashCode();
            }
            if (Size != 0)
            {
                hash ^= Size.GetHashCode();
            }
            if (Status != 0)
            {
                hash ^= Status.GetHashCode();
            }
            hash ^= error_.GetHashCode();
            if (Timeout != 0UL)
            {
                hash ^= Timeout.GetHashCode();
            }
            if (IsResponse != false)
            {
                hash ^= IsResponse.GetHashCode();
            }
            hash ^= forwardTargets_.GetHashCode();
            if (ServiceHash != 0)
            {
                hash ^= ServiceHash.GetHashCode();
            }
            return(hash);
        }
Example #21
0
        public override int GetHashCode()
        {
            int hash = 1;

            if (Name.Length != 0)
            {
                hash ^= Name.GetHashCode();
            }
            if (ClientSecret.Length != 0)
            {
                hash ^= ClientSecret.GetHashCode();
            }
            if (MaxServices != 0)
            {
                hash ^= MaxServices.GetHashCode();
            }
            if (RegIntervalSeconds != 0)
            {
                hash ^= RegIntervalSeconds.GetHashCode();
            }
            if (Timeout != 0)
            {
                hash ^= Timeout.GetHashCode();
            }
            if (LogUserRequest != false)
            {
                hash ^= LogUserRequest.GetHashCode();
            }
            if (LogUserPayload != false)
            {
                hash ^= LogUserPayload.GetHashCode();
            }
            if (LogRolling != false)
            {
                hash ^= LogRolling.GetHashCode();
            }
            hash ^= loadBalancerConfigurations_.GetHashCode();
            if (_unknownFields != null)
            {
                hash ^= _unknownFields.GetHashCode();
            }
            return(hash);
        }
Example #22
0
 /// <summary>
 /// Serves as a hash function for a particular type.
 /// </summary>
 /// <returns>
 /// A hash code for the current <see cref="T:System.Object"/>.
 /// </returns>
 /// <filterpriority>2</filterpriority>
 public override int GetHashCode()
 {
     unchecked
     {
         int result = Id;
         result = (result * 397) ^ (State != null ? State.GetHashCode() : 0);
         result = (result * 397) ^ StateEnum.GetHashCode();
         result = (result * 397) ^ Project;
         result = (result * 397) ^ Run;
         result = (result * 397) ^ Clone;
         result = (result * 397) ^ Gen;
         result = (result * 397) ^ (Core != null ? Core.GetHashCode() : 0);
         result = (result * 397) ^ (UnitId != null ? UnitId.GetHashCode() : 0);
         result = (result * 397) ^ (PercentDone != null ? PercentDone.GetHashCode() : 0);
         result = (result * 397) ^ TotalFrames;
         result = (result * 397) ^ FramesDone;
         result = (result * 397) ^ (Assigned != null ? Assigned.GetHashCode() : 0);
         result = (result * 397) ^ (AssignedDateTime.HasValue ? AssignedDateTime.Value.GetHashCode() : 0);
         result = (result * 397) ^ (Timeout != null ? Timeout.GetHashCode() : 0);
         result = (result * 397) ^ (TimeoutDateTime.HasValue ? TimeoutDateTime.Value.GetHashCode() : 0);
         result = (result * 397) ^ (Deadline != null ? Deadline.GetHashCode() : 0);
         result = (result * 397) ^ (DeadlineDateTime.HasValue ? DeadlineDateTime.Value.GetHashCode() : 0);
         result = (result * 397) ^ (WorkServer != null ? WorkServer.GetHashCode() : 0);
         result = (result * 397) ^ (WorkServerIPAddress != null ? WorkServerIPAddress.GetHashCode() : 0);
         result = (result * 397) ^ (CollectionServer != null ? CollectionServer.GetHashCode() : 0);
         result = (result * 397) ^ (CollectionServerIPAddress != null ? CollectionServerIPAddress.GetHashCode() : 0);
         result = (result * 397) ^ (WaitingOn != null ? WaitingOn.GetHashCode() : 0);
         result = (result * 397) ^ Attempts;
         result = (result * 397) ^ (NextAttempt != null ? NextAttempt.GetHashCode() : 0);
         result = (result * 397) ^ (NextAttemptTimeSpan.HasValue ? NextAttemptTimeSpan.Value.GetHashCode() : 0);
         result = (result * 397) ^ Slot;
         result = (result * 397) ^ (Eta != null ? Eta.GetHashCode() : 0);
         result = (result * 397) ^ (EtaTimeSpan.HasValue ? EtaTimeSpan.Value.GetHashCode() : 0);
         result = (result * 397) ^ Ppd.GetHashCode();
         result = (result * 397) ^ (Tpf != null ? Tpf.GetHashCode() : 0);
         result = (result * 397) ^ (TpfTimeSpan.HasValue ? TpfTimeSpan.Value.GetHashCode() : 0);
         result = (result * 397) ^ BaseCredit.GetHashCode();
         result = (result * 397) ^ CreditEstimate.GetHashCode();
         result = (result * 397) ^ (Description != null ? Description.GetHashCode() : 0);
         return(result);
     }
 }
 public override int GetHashCode()
 {
     unchecked
     {
         var hashCode = base.GetHashCode();
         hashCode = (hashCode * 397) ^ (InputMappings != null ? InputMappings.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ (Database != null ? Database.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ (TableName != null ? TableName.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ (Result != null ? Result.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ CheckConstraints.GetHashCode();
         hashCode = (hashCode * 397) ^ FireTriggers.GetHashCode();
         hashCode = (hashCode * 397) ^ UseInternalTransaction.GetHashCode();
         hashCode = (hashCode * 397) ^ KeepIdentity.GetHashCode();
         hashCode = (hashCode * 397) ^ KeepTableLock.GetHashCode();
         hashCode = (hashCode * 397) ^ (Timeout != null ? Timeout.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ (BatchSize != null ? BatchSize.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ IgnoreBlankRows.GetHashCode();
         return(hashCode);
     }
 }
 /// <summary>
 /// Gets the hash code
 /// </summary>
 /// <returns>Hash code</returns>
 public override int GetHashCode()
 {
     unchecked // Overflow is fine, just wrap
     {
         int hashCode = 41;
         if (Id != null)
         {
             hashCode = hashCode * 59 + Id.GetHashCode();
         }
         if (Title != null)
         {
             hashCode = hashCode * 59 + Title.GetHashCode();
         }
         if (Icon != null)
         {
             hashCode = hashCode * 59 + Icon.GetHashCode();
         }
         if (Link != null)
         {
             hashCode = hashCode * 59 + Link.GetHashCode();
         }
         if (Parent != null)
         {
             hashCode = hashCode * 59 + Parent.GetHashCode();
         }
         if (Leaf != null)
         {
             hashCode = hashCode * 59 + Leaf.GetHashCode();
         }
         if (Timeout != null)
         {
             hashCode = hashCode * 59 + Timeout.GetHashCode();
         }
         if (Widgets != null)
         {
             hashCode = hashCode * 59 + Widgets.GetHashCode();
         }
         return(hashCode);
     }
 }
Example #25
0
        public override int GetHashCode()
        {
            int hash = 1;

            if (MaxmemoryPolicy != global::Yandex.Cloud.Mdb.Redis.V1.Config.RedisConfig5_0.Types.MaxmemoryPolicy.Unspecified)
            {
                hash ^= MaxmemoryPolicy.GetHashCode();
            }
            if (timeout_ != null)
            {
                hash ^= Timeout.GetHashCode();
            }
            if (Password.Length != 0)
            {
                hash ^= Password.GetHashCode();
            }
            if (_unknownFields != null)
            {
                hash ^= _unknownFields.GetHashCode();
            }
            return(hash);
        }
Example #26
0
        public override int GetHashCode()
        {
            int hash = 1;

            if (Name.Length != 0)
            {
                hash ^= Name.GetHashCode();
            }
            if (interval_ != null)
            {
                hash ^= Interval.GetHashCode();
            }
            if (timeout_ != null)
            {
                hash ^= Timeout.GetHashCode();
            }
            if (UnhealthyThreshold != 0L)
            {
                hash ^= UnhealthyThreshold.GetHashCode();
            }
            if (HealthyThreshold != 0L)
            {
                hash ^= HealthyThreshold.GetHashCode();
            }
            if (optionsCase_ == OptionsOneofCase.TcpOptions)
            {
                hash ^= TcpOptions.GetHashCode();
            }
            if (optionsCase_ == OptionsOneofCase.HttpOptions)
            {
                hash ^= HttpOptions.GetHashCode();
            }
            hash ^= (int)optionsCase_;
            if (_unknownFields != null)
            {
                hash ^= _unknownFields.GetHashCode();
            }
            return(hash);
        }
        public override int GetHashCode()
        {
            int hash = 1;

            if (Domain.Length != 0)
            {
                hash ^= Domain.GetHashCode();
            }
            if (Stage != 0)
            {
                hash ^= Stage.GetHashCode();
            }
            if (RequestType.Length != 0)
            {
                hash ^= RequestType.GetHashCode();
            }
            if (timeout_ != null)
            {
                hash ^= Timeout.GetHashCode();
            }
            if (FailureModeDeny != false)
            {
                hash ^= FailureModeDeny.GetHashCode();
            }
            if (RateLimitedAsResourceExhausted != false)
            {
                hash ^= RateLimitedAsResourceExhausted.GetHashCode();
            }
            if (rateLimitService_ != null)
            {
                hash ^= RateLimitService.GetHashCode();
            }
            if (_unknownFields != null)
            {
                hash ^= _unknownFields.GetHashCode();
            }
            return(hash);
        }
Example #28
0
        public override int GetHashCode()
        {
            int hash = 1;

            if (Uri.Length != 0)
            {
                hash ^= Uri.GetHashCode();
            }
            if (httpUpstreamTypeCase_ == HttpUpstreamTypeOneofCase.Cluster)
            {
                hash ^= Cluster.GetHashCode();
            }
            if (timeout_ != null)
            {
                hash ^= Timeout.GetHashCode();
            }
            hash ^= (int)httpUpstreamTypeCase_;
            if (_unknownFields != null)
            {
                hash ^= _unknownFields.GetHashCode();
            }
            return(hash);
        }
Example #29
0
        public override int GetHashCode()
        {
            int hash = 1;

            if (Timeout != 0)
            {
                hash ^= Timeout.GetHashCode();
            }
            hash ^= Accounts.GetHashCode();
            if (AllowTransparent != false)
            {
                hash ^= AllowTransparent.GetHashCode();
            }
            if (UserLevel != 0)
            {
                hash ^= UserLevel.GetHashCode();
            }
            if (_unknownFields != null)
            {
                hash ^= _unknownFields.GetHashCode();
            }
            return(hash);
        }
 /// <summary>
 /// Returns a hash code for the current object.
 /// Uses a combination of the public properties to generate a unique hash code.
 /// </summary>
 /// <returns>A hash code for the current object.</returns>
 public override int GetHashCode()
 {
     return(commandTimeout.GetHashCode());
 }