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

            if (Name.Length != 0)
            {
                hash ^= Name.GetHashCode();
            }
            if (UnlockedDescription.Length != 0)
            {
                hash ^= UnlockedDescription.GetHashCode();
            }
            if (Disabled != false)
            {
                hash ^= Disabled.GetHashCode();
            }
            if (ShowBadge != false)
            {
                hash ^= ShowBadge.GetHashCode();
            }
            if (visibilityConditions_ != null)
            {
                hash ^= VisibilityConditions.GetHashCode();
            }
            if (unlockConditions_ != null)
            {
                hash ^= UnlockConditions.GetHashCode();
            }
            if (_unknownFields != null)
            {
                hash ^= _unknownFields.GetHashCode();
            }
            return(hash);
        }
 /// <inheritdoc/>
 public override int GetHashCode()
 => (Role ?? string.Empty).GetHashCode() ^
 (Name ?? string.Empty).GetHashCode() ^
 (Value ?? string.Empty).GetHashCode() ^
 (Description ?? string.Empty).GetHashCode() ^
 (Keyshortcuts ?? string.Empty).GetHashCode() ^
 (Roledescription ?? string.Empty).GetHashCode() ^
 (Valuetext ?? string.Empty).GetHashCode() ^
 Disabled.GetHashCode() ^
 Expanded.GetHashCode() ^
 Focused.GetHashCode() ^
 Modal.GetHashCode() ^
 Multiline.GetHashCode() ^
 Multiselectable.GetHashCode() ^
 Readonly.GetHashCode() ^
 Required.GetHashCode() ^
 Selected.GetHashCode() ^
 Checked.GetHashCode() ^
 Pressed.GetHashCode() ^
 Level.GetHashCode() ^
 Valuemin.GetHashCode() ^
 Valuemax.GetHashCode() ^
 (Autocomplete ?? string.Empty).GetHashCode() ^
 (Haspopup ?? string.Empty).GetHashCode() ^
 (Invalid ?? string.Empty).GetHashCode() ^
 (Orientation ?? string.Empty).GetHashCode() ^
 Children.GetHashCode();
 /// <inheritdoc/>
 public override int GetHashCode()
 => Role.GetHashCode() ^
 Name.GetHashCode() ^
 Value.GetHashCode() ^
 Description.GetHashCode() ^
 KeyShortcuts.GetHashCode() ^
 RoleDescription.GetHashCode() ^
 ValueText.GetHashCode() ^
 AutoComplete.GetHashCode() ^
 HasPopup.GetHashCode() ^
 Orientation.GetHashCode() ^
 Disabled.GetHashCode() ^
 Expanded.GetHashCode() ^
 Focused.GetHashCode() ^
 Modal.GetHashCode() ^
 Multiline.GetHashCode() ^
 Multiselectable.GetHashCode() ^
 Readonly.GetHashCode() ^
 Required.GetHashCode() ^
 Selected.GetHashCode() ^
 Pressed.GetHashCode() ^
 Checked.GetHashCode() ^
 Level.GetHashCode() ^
 ValueMin.GetHashCode() ^
 ValueMax.GetHashCode() ^
 Children.GetHashCode();
Beispiel #4
0
        public override int GetHashCode()
        {
            int hash = 1;

            if (Id.Length != 0)
            {
                hash ^= Id.GetHashCode();
            }
            if (recipe_ != null)
            {
                hash ^= Recipe_.GetHashCode();
            }
            if (rewards_ != null)
            {
                hash ^= Rewards.GetHashCode();
            }
            if (TimeToCraft != 0L)
            {
                hash ^= TimeToCraft.GetHashCode();
            }
            hash ^= masterNoteGmtId_.GetHashCode();
            if (Disabled != false)
            {
                hash ^= Disabled.GetHashCode();
            }
            hash ^= unlockConditions_.GetHashCode();
            if (_unknownFields != null)
            {
                hash ^= _unknownFields.GetHashCode();
            }
            return(hash);
        }
 public override int GetHashCode()
 {
     unchecked
     {
         return((Disabled.GetHashCode() * 397) ^ DeleteFrequencyInSec.GetHashCode());
     }
 }
 public override int GetHashCode()
 {
     unchecked
     {
         var hashCode = Disabled.GetHashCode();
         hashCode = (hashCode * 397) ^ RefreshFrequencyInSec.GetHashCode();
         return(hashCode);
     }
 }
Beispiel #7
0
        public override int GetHashCode()
        {
            // Use a different bit for bool fields: bool.GetHashCode() will return 0 (false) or 1 (true). So we would
            // end up having the same hash code for e.g. two instances where one has only noCache set and the other
            // only noStore.
            var result = Active.GetHashCode()
                         ^ (Disabled.GetHashCode() << 1); // increase shift by one for every bool field

            return(result);
        }
 public override int GetHashCode()
 {
     unchecked
     {
         var hashCode = MinimumRevisionsToKeep?.GetHashCode() ?? 0;
         hashCode = (hashCode * 397) ^ MinimumRevisionAgeToKeep?.GetHashCode() ?? 0;
         hashCode = (hashCode * 397) ^ Disabled.GetHashCode();
         hashCode = (hashCode * 397) ^ PurgeOnDelete.GetHashCode();
         return(hashCode);
     }
 }
Beispiel #9
0
 /// <summary>
 /// Gets the hash code
 /// </summary>
 /// <returns>Hash code</returns>
 public override int GetHashCode()
 {
     unchecked // Overflow is fine, just wrap
     {
         int hashCode = 41;
         if (Type != null)
         {
             hashCode = hashCode * 59 + Type.GetHashCode();
         }
         if (Inline != null)
         {
             hashCode = hashCode * 59 + Inline.GetHashCode();
         }
         if (Moveable != null)
         {
             hashCode = hashCode * 59 + Moveable.GetHashCode();
         }
         if (Disabled != null)
         {
             hashCode = hashCode * 59 + Disabled.GetHashCode();
         }
         if (Deletable != null)
         {
             hashCode = hashCode * 59 + Deletable.GetHashCode();
         }
         if (Editable != null)
         {
             hashCode = hashCode * 59 + Editable.GetHashCode();
         }
         if (Comment != null)
         {
             hashCode = hashCode * 59 + Comment.GetHashCode();
         }
         if (Mutation != null)
         {
             hashCode = hashCode * 59 + Mutation.GetHashCode();
         }
         if (Children != null)
         {
             hashCode = hashCode * 59 + Children.GetHashCode();
         }
         if (Fields != null)
         {
             hashCode = hashCode * 59 + Fields.GetHashCode();
         }
         if (Next != null)
         {
             hashCode = hashCode * 59 + Next.GetHashCode();
         }
         return(hashCode);
     }
 }
Beispiel #10
0
        public override int GetHashCode()
        {
            // Use a different bit for bool fields: bool.GetHashCode() will return 0 (false) or 1 (true). So we would
            // end up having the same hash code for e.g. two instances where one has only noCache set and the other
            // only noStore.
            var result = Visible.GetHashCode()
                         ^ (RightAligned.GetHashCode() << 1)
                         ^ (Disabled.GetHashCode() << 2); // increase shift by one for every bool field

            result = result
                     ^ (Direction.GetHashCode() ^ 1); // power of two for every other field(^1, ^2, ^4, ^8, ^16, ...)

            return(result);
        }
 public override int GetHashCode()
 {
     unchecked
     {
         var hashCode = Disabled.GetHashCode();
         hashCode = (hashCode * 397) ^ (GlacierVaultName != null ? GlacierVaultName.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ (S3BucketName != null ? S3BucketName.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ (AwsRegionEndpoint != null ? AwsRegionEndpoint.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ (AzureStorageContainer != null ? AzureStorageContainer.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ (LocalFolderName != null ? LocalFolderName.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ IntervalMilliseconds.GetValueOrDefault();
         hashCode = (hashCode * 397) ^ FullBackupIntervalMilliseconds.GetValueOrDefault();
         return(hashCode);
     }
 }
Beispiel #12
0
 public override int GetHashCode()
 {
     unchecked
     {
         var hashCode = (Username != null ? Username.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ (Password != null ? Password.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ (Domain != null ? Domain.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ (ApiKey != null ? ApiKey.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ (Database != null ? Database.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ (int)TransitiveReplicationBehavior;
         hashCode = (hashCode * 397) ^ IgnoredClient.GetHashCode();
         hashCode = (hashCode * 397) ^ Disabled.GetHashCode();
         hashCode = (hashCode * 397) ^ (ClientVisibleUrl != null ? ClientVisibleUrl.GetHashCode() : 0);
         return(hashCode);
     }
 }
Beispiel #13
0
        public override int GetHashCode()
        {
            int hash = 1;

            if (Uid.Length != 0)
            {
                hash ^= Uid.GetHashCode();
            }
            if (Email.Length != 0)
            {
                hash ^= Email.GetHashCode();
            }
            if (EmailVerified != false)
            {
                hash ^= EmailVerified.GetHashCode();
            }
            if (DisplayName.Length != 0)
            {
                hash ^= DisplayName.GetHashCode();
            }
            if (PhotoURL.Length != 0)
            {
                hash ^= PhotoURL.GetHashCode();
            }
            if (Disabled != false)
            {
                hash ^= Disabled.GetHashCode();
            }
            if (metadata_ != null)
            {
                hash ^= Metadata.GetHashCode();
            }
            hash ^= providerData_.GetHashCode();
            if (PhoneNumber.Length != 0)
            {
                hash ^= PhoneNumber.GetHashCode();
            }
            if (customClaims_ != null)
            {
                hash ^= CustomClaims.GetHashCode();
            }
            if (_unknownFields != null)
            {
                hash ^= _unknownFields.GetHashCode();
            }
            return(hash);
        }
Beispiel #14
0
 public override int GetHashCode()
 {
     unchecked
     {
         var hashCode = Id?.GetHashCode() ?? 0;
         hashCode = (hashCode * 397) ^ (Value?.GetHashCode() ?? 0);
         hashCode = (hashCode * 397) ^ Disabled.GetHashCode();
         hashCode = (hashCode * 397) ^ (UserName?.GetHashCode() ?? 0);
         hashCode = (hashCode * 397) ^ (Password?.GetHashCode() ?? 0);
         hashCode = (hashCode * 397) ^ Priority;
         hashCode = (hashCode * 397) ^ (Certificate?.GetHashCode() ?? 0);
         hashCode = (hashCode * 397) ^ (CertificatePassword?.GetHashCode() ?? 0);
         hashCode = (hashCode * 397) ^ BypassProxy.GetHashCode();
         hashCode = (hashCode * 397) ^ AllowSelfService.GetHashCode();
         hashCode = (hashCode * 397) ^ VisibleToAdminsOnly.GetHashCode();
         return(hashCode);
     }
 }
Beispiel #15
0
        public override int GetHashCode()
        {
            int hash = 1;

            if (overrideCase_ == OverrideOneofCase.Disabled)
            {
                hash ^= Disabled.GetHashCode();
            }
            if (overrideCase_ == OverrideOneofCase.Buffer)
            {
                hash ^= Buffer.GetHashCode();
            }
            hash ^= (int)overrideCase_;
            if (_unknownFields != null)
            {
                hash ^= _unknownFields.GetHashCode();
            }
            return(hash);
        }
Beispiel #16
0
        public override int GetHashCode()
        {
            unchecked
            {
                var hashCode = Name != null?Name.GetHashCode() : 0;

                hashCode = (hashCode * 397) ^ (int)Type;
                hashCode = (hashCode * 397) ^ (From != null ? From.GetHashCode() : 0);
                hashCode = (hashCode * 397) ^ (int)Rel;
                hashCode = (hashCode * 397) ^ (int)Scope;
                hashCode = (hashCode * 397) ^ (Default != null ? Default.GetHashCode() : 0);
                hashCode = (hashCode * 397) ^ Nullable.GetHashCode();
                hashCode = (hashCode * 397) ^ Required.GetHashCode();
                hashCode = (hashCode * 397) ^ Disabled.GetHashCode();
                hashCode = (hashCode * 397) ^ Protected.GetHashCode();
                hashCode = (hashCode * 397) ^ Personal.GetHashCode();
                hashCode = (hashCode * 397) ^ (Annotations != null ? Annotations.GetHashCode() : 0);
                hashCode = (hashCode * 397) ^ (Description != null ? Description.GetHashCode() : 0);
                return(hashCode);
            }
        }
Beispiel #17
0
        public override int GetHashCode()
        {
            unchecked
            {
                var hashCode = Disabled.GetHashCode();
                if (RawPolicy != null)
                {
                    hashCode = (hashCode * 397) ^ RawPolicy.GetHashCode();
                }

                if (Policies != null)
                {
                    foreach (var policy in Policies)
                    {
                        hashCode = (hashCode * 397) ^ policy.GetHashCode();
                    }
                }

                return(hashCode);
            }
        }
 /// <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 (ServletPath != null)
         {
             hashCode = hashCode * 59 + ServletPath.GetHashCode();
         }
         if (Disabled != null)
         {
             hashCode = hashCode * 59 + Disabled.GetHashCode();
         }
         if (CorsAccessControlAllowOrigin != null)
         {
             hashCode = hashCode * 59 + CorsAccessControlAllowOrigin.GetHashCode();
         }
         return(hashCode);
     }
 }
 /// <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 (Disabled != null)
         {
             hashCode = hashCode * 59 + Disabled.GetHashCode();
         }
         if (Debug != null)
         {
             hashCode = hashCode * 59 + Debug.GetHashCode();
         }
         if (LocalIndexDir != null)
         {
             hashCode = hashCode * 59 + LocalIndexDir.GetHashCode();
         }
         if (EnableOpenIndexAsync != null)
         {
             hashCode = hashCode * 59 + EnableOpenIndexAsync.GetHashCode();
         }
         if (ThreadPoolSize != null)
         {
             hashCode = hashCode * 59 + ThreadPoolSize.GetHashCode();
         }
         if (PrefetchIndexFiles != null)
         {
             hashCode = hashCode * 59 + PrefetchIndexFiles.GetHashCode();
         }
         if (ExtractedTextCacheSizeInMB != null)
         {
             hashCode = hashCode * 59 + ExtractedTextCacheSizeInMB.GetHashCode();
         }
         if (ExtractedTextCacheExpiryInSecs != null)
         {
             hashCode = hashCode * 59 + ExtractedTextCacheExpiryInSecs.GetHashCode();
         }
         if (AlwaysUsePreExtractedCache != null)
         {
             hashCode = hashCode * 59 + AlwaysUsePreExtractedCache.GetHashCode();
         }
         if (BooleanClauseLimit != null)
         {
             hashCode = hashCode * 59 + BooleanClauseLimit.GetHashCode();
         }
         if (EnableHybridIndexing != null)
         {
             hashCode = hashCode * 59 + EnableHybridIndexing.GetHashCode();
         }
         if (HybridQueueSize != null)
         {
             hashCode = hashCode * 59 + HybridQueueSize.GetHashCode();
         }
         if (DisableStoredIndexDefinition != null)
         {
             hashCode = hashCode * 59 + DisableStoredIndexDefinition.GetHashCode();
         }
         if (DeletedBlobsCollectionEnabled != null)
         {
             hashCode = hashCode * 59 + DeletedBlobsCollectionEnabled.GetHashCode();
         }
         if (PropIndexCleanerIntervalInSecs != null)
         {
             hashCode = hashCode * 59 + PropIndexCleanerIntervalInSecs.GetHashCode();
         }
         if (EnableSingleBlobIndexFiles != null)
         {
             hashCode = hashCode * 59 + EnableSingleBlobIndexFiles.GetHashCode();
         }
         return(hashCode);
     }
 }