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

            if (Cluster.Length != 0)
            {
                hash ^= Cluster.GetHashCode();
            }
            if (attachmentTemplate_ != null)
            {
                hash ^= AttachmentTemplate.GetHashCode();
            }
            if (requestTimeout_ != null)
            {
                hash ^= RequestTimeout.GetHashCode();
            }
            if (attachmentTimeout_ != null)
            {
                hash ^= AttachmentTimeout.GetHashCode();
            }
            if (attachmentPollPeriod_ != null)
            {
                hash ^= AttachmentPollPeriod.GetHashCode();
            }
            if (_unknownFields != null)
            {
                hash ^= _unknownFields.GetHashCode();
            }
            return(hash);
        }
        public override int GetHashCode()
        {
            int hash = 1;

            if (ApiType != global::Envoy.Api.V2.Core.ApiConfigSource.Types.ApiType.UnsupportedRestLegacy)
            {
                hash ^= ApiType.GetHashCode();
            }
            hash ^= clusterNames_.GetHashCode();
            hash ^= grpcServices_.GetHashCode();
            if (refreshDelay_ != null)
            {
                hash ^= RefreshDelay.GetHashCode();
            }
            if (requestTimeout_ != null)
            {
                hash ^= RequestTimeout.GetHashCode();
            }
            if (rateLimitSettings_ != null)
            {
                hash ^= RateLimitSettings.GetHashCode();
            }
            if (SetNodeOnFirstMessageOnly != false)
            {
                hash ^= SetNodeOnFirstMessageOnly.GetHashCode();
            }
            if (_unknownFields != null)
            {
                hash ^= _unknownFields.GetHashCode();
            }
            return(hash);
        }
 /// <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 (MaxConnections != null)
         {
             hashCode = hashCode * 59 + MaxConnections.GetHashCode();
         }
         if (MaxRequests != null)
         {
             hashCode = hashCode * 59 + MaxRequests.GetHashCode();
         }
         if (RequestTimeout != null)
         {
             hashCode = hashCode * 59 + RequestTimeout.GetHashCode();
         }
         if (LogDir != null)
         {
             hashCode = hashCode * 59 + LogDir.GetHashCode();
         }
         return(hashCode);
     }
 }
 public override int GetHashCode()
 {
     unchecked
     {
         var hashCode = Scope.GetHashCode();
         hashCode = (hashCode * 397) ^ RequestTimeout.GetHashCode();
         hashCode = (hashCode * 397) ^ FirstAttemptDelaySeconds.GetHashCode();
         hashCode = (hashCode * 397) ^ MaxAttemptDelaySeconds.GetHashCode();
         hashCode = (hashCode * 397) ^ DelayMultiplier.GetHashCode();
         hashCode = (hashCode * 397) ^ Source.GetHashCode();
         hashCode = (hashCode * 397) ^ (Hosts != null ? Hosts.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ DefaultPort.GetHashCode();
         hashCode = (hashCode * 397) ^ DefaultSlotNumber.GetHashCode();
         hashCode = (hashCode * 397) ^ UseHttpsOverride.GetHashCode();
         hashCode = (hashCode * 397) ^ (SecurityRole != null ? SecurityRole.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ (CachingPolicy != null ? CachingPolicy.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ SuppressHealthCheckAfterServiceUnused.GetHashCode();
         return(hashCode);
     }
 }
Пример #5
0
 public override int GetHashCode()
 {
     unchecked
     {
         var hashCode = RequestTimeout.GetHashCode();
         hashCode = (hashCode * 397) ^ PingTimeout.GetHashCode();
         hashCode = (hashCode * 397) ^ KeepAliveTime;
         hashCode = (hashCode * 397) ^ KeepAliveInterval;
         hashCode = (hashCode * 397) ^ Pipelined.GetHashCode();
         hashCode = (hashCode * 397) ^ HttpCompression.GetHashCode();
         hashCode = (hashCode * 397) ^ (Headers?.GetHashCode() ?? 0);
         hashCode = (hashCode * 397) ^ (ProxyAddress?.GetHashCode() ?? 0);
         hashCode = (hashCode * 397) ^ (ProxyUsername?.GetHashCode() ?? 0);
         hashCode = (hashCode * 397) ^ (ProxyPassword?.GetHashCode() ?? 0);
         hashCode = (hashCode * 397) ^ DisableAutomaticProxyDetection.GetHashCode();
         hashCode = (hashCode * 397) ^ (BasicAuthorizationCredentials?.GetHashCode() ?? 0);
         hashCode = (hashCode * 397) ^ (ConnectionSettings?.GetHashCode() ?? 0);
         hashCode = (hashCode * 397) ^ (MemoryStreamFactory?.GetHashCode() ?? 0);
         return(hashCode);
     }
 }
Пример #6
0
        public override int GetHashCode()
        {
            int hash = 1;

            hash ^= additionalMetricDims_.GetHashCode();
            if (AggregationEnabled != false)
            {
                hash ^= AggregationEnabled.GetHashCode();
            }
            if (AggregationMaxCount != 0UL)
            {
                hash ^= AggregationMaxCount.GetHashCode();
            }
            if (AggregationMaxSize != 0UL)
            {
                hash ^= AggregationMaxSize.GetHashCode();
            }
            if (CloudwatchEndpoint.Length != 0)
            {
                hash ^= CloudwatchEndpoint.GetHashCode();
            }
            if (CloudwatchPort != 0UL)
            {
                hash ^= CloudwatchPort.GetHashCode();
            }
            if (CollectionMaxCount != 0UL)
            {
                hash ^= CollectionMaxCount.GetHashCode();
            }
            if (CollectionMaxSize != 0UL)
            {
                hash ^= CollectionMaxSize.GetHashCode();
            }
            if (ConnectTimeout != 0UL)
            {
                hash ^= ConnectTimeout.GetHashCode();
            }
            if (EnableCoreDumps != false)
            {
                hash ^= EnableCoreDumps.GetHashCode();
            }
            if (FailIfThrottled != false)
            {
                hash ^= FailIfThrottled.GetHashCode();
            }
            if (KinesisEndpoint.Length != 0)
            {
                hash ^= KinesisEndpoint.GetHashCode();
            }
            if (KinesisPort != 0UL)
            {
                hash ^= KinesisPort.GetHashCode();
            }
            if (LogLevel.Length != 0)
            {
                hash ^= LogLevel.GetHashCode();
            }
            if (MaxConnections != 0UL)
            {
                hash ^= MaxConnections.GetHashCode();
            }
            if (MetricsGranularity.Length != 0)
            {
                hash ^= MetricsGranularity.GetHashCode();
            }
            if (MetricsLevel.Length != 0)
            {
                hash ^= MetricsLevel.GetHashCode();
            }
            if (MetricsNamespace.Length != 0)
            {
                hash ^= MetricsNamespace.GetHashCode();
            }
            if (MetricsUploadDelay != 0UL)
            {
                hash ^= MetricsUploadDelay.GetHashCode();
            }
            if (MinConnections != 0UL)
            {
                hash ^= MinConnections.GetHashCode();
            }
            if (RateLimit != 0UL)
            {
                hash ^= RateLimit.GetHashCode();
            }
            if (RecordMaxBufferedTime != 0UL)
            {
                hash ^= RecordMaxBufferedTime.GetHashCode();
            }
            if (RecordTtl != 0UL)
            {
                hash ^= RecordTtl.GetHashCode();
            }
            if (Region.Length != 0)
            {
                hash ^= Region.GetHashCode();
            }
            if (RequestTimeout != 0UL)
            {
                hash ^= RequestTimeout.GetHashCode();
            }
            if (VerifyCertificate != false)
            {
                hash ^= VerifyCertificate.GetHashCode();
            }
            return(hash);
        }