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

            if (Id.Length != 0)
            {
                hash ^= Id.GetHashCode();
            }
            if (FolderId.Length != 0)
            {
                hash ^= FolderId.GetHashCode();
            }
            if (createdAt_ != null)
            {
                hash ^= CreatedAt.GetHashCode();
            }
            if (SourceClusterId.Length != 0)
            {
                hash ^= SourceClusterId.GetHashCode();
            }
            if (startedAt_ != null)
            {
                hash ^= StartedAt.GetHashCode();
            }
            hash ^= sourceShardNames_.GetHashCode();
            if (_unknownFields != null)
            {
                hash ^= _unknownFields.GetHashCode();
            }
            return(hash);
        }
예제 #2
0
        public override int GetHashCode()
        {
            int hash = 1;

            if (Name.Length != 0)
            {
                hash ^= Name.GetHashCode();
            }
            if (Status != 0)
            {
                hash ^= Status.GetHashCode();
            }
            if (Info.Length != 0)
            {
                hash ^= Info.GetHashCode();
            }
            if (startedAt_ != null)
            {
                hash ^= StartedAt.GetHashCode();
            }
            if (completedAt_ != null)
            {
                hash ^= CompletedAt.GetHashCode();
            }
            if (_unknownFields != null)
            {
                hash ^= _unknownFields.GetHashCode();
            }
            return(hash);
        }
예제 #3
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 (Id != null)
                {
                    hashCode = hashCode * 59 + Id.GetHashCode();
                }
                if (StepId != null)
                {
                    hashCode = hashCode * 59 + StepId.GetHashCode();
                }
                if (PhaseId != null)
                {
                    hashCode = hashCode * 59 + PhaseId.GetHashCode();
                }
                if (Action != null)
                {
                    hashCode = hashCode * 59 + Action.GetHashCode();
                }
                if (Repository != null)
                {
                    hashCode = hashCode * 59 + Repository.GetHashCode();
                }
                if (Branch != null)
                {
                    hashCode = hashCode * 59 + Branch.GetHashCode();
                }
                if (Environment != null)
                {
                    hashCode = hashCode * 59 + Environment.GetHashCode();
                }
                if (EnvironmentType != null)
                {
                    hashCode = hashCode * 59 + EnvironmentType.GetHashCode();
                }
                if (StartedAt != null)
                {
                    hashCode = hashCode * 59 + StartedAt.GetHashCode();
                }
                if (FinishedAt != null)
                {
                    hashCode = hashCode * 59 + FinishedAt.GetHashCode();
                }
                if (Details != null)
                {
                    hashCode = hashCode * 59 + Details.GetHashCode();
                }

                hashCode = hashCode * 59 + Status.GetHashCode();
                if (Links != null)
                {
                    hashCode = hashCode * 59 + Links.GetHashCode();
                }
                return(hashCode);
            }
        }
예제 #4
0
        /// <summary>
        /// Override of the get hash code method.
        /// </summary>
        /// <returns></returns>
        public override int GetHashCode()
        {
            //Get hash code for the nullable fields.
            int hashHostName  = HostName == null ? 0 : HostName.GetHashCode();
            int hashPublicUri = PublicUri == null ? 0 : PublicUri.GetHashCode();
            int hashHubs      = Hubs == null ? 0 : Hubs.Distinct().Aggregate(0, (x, y) => x.GetHashCode() ^ y.GetHashCode());;

            //Calculate the hash code for the GPOPolicy.
            return(StartedAt.GetHashCode() ^ hashHostName ^ hashPublicUri ^ hashHubs);
        }
예제 #5
0
 public override int GetHashCode()
 {
     unchecked
     {
         var hashCode = (Text != null ? Text.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^
                    (Header != null ? Header.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ (int)State;
         hashCode = (hashCode * 397) ^ StartedAt.GetHashCode();
         hashCode = (hashCode * 397) ^ Duration.GetHashCode();
         return(hashCode);
     }
 }
 public override int GetHashCode()
 {
     unchecked
     {
         var hashCode = (FinishedAt != null ? FinishedAt.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ (Message != null ? Message.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ (RequestedOperation != null ? RequestedOperation.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ (Phase != null ? Phase.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ (RetryCount != null ? RetryCount.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ (StartedAt != null ? StartedAt.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ (SyncResult != null ? SyncResult.GetHashCode() : 0);
         return(hashCode);
     }
 }
예제 #7
0
 public override int GetHashCode()
 {
     unchecked
     {
         var hashCode = (Project != null ? Project.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ (ProjectConfiguration != null ? ProjectConfiguration.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ (Platform != null ? Platform.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ (SolutionConfiguration != null ? SolutionConfiguration.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ StartedAt.GetHashCode();
         hashCode = (hashCode * 397) ^ Duration.GetHashCode();
         hashCode = (hashCode * 397) ^ Successful.GetHashCode();
         return(hashCode);
     }
 }
예제 #8
0
 public override int GetHashCode()
 {
     unchecked
     {
         var hashCode = (int)BatchType;
         hashCode = (hashCode * 397) ^ (IndexesToWorkOn != null ? IndexesToWorkOn.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ TotalDocumentCount;
         hashCode = (hashCode * 397) ^ TotalDocumentSize.GetHashCode();
         hashCode = (hashCode * 397) ^ StartedAt.GetHashCode();
         hashCode = (hashCode * 397) ^ TotalDuration.GetHashCode();
         hashCode = (hashCode * 397) ^ (PerformanceStats != null ? PerformanceStats.GetHashCode() : 0);
         return(hashCode);
     }
 }
예제 #9
0
        public override int GetHashCode()
        {
            int hash = 1;

            if (startedAt_ != null)
            {
                hash ^= StartedAt.GetHashCode();
            }
            if (completedAt_ != null)
            {
                hash ^= CompletedAt.GetHashCode();
            }
            hash ^= results_.GetHashCode();
            if (_unknownFields != null)
            {
                hash ^= _unknownFields.GetHashCode();
            }
            return(hash);
        }
예제 #10
0
        public override int GetHashCode()
        {
            int hash = 1;

            if (Id.Length != 0)
            {
                hash ^= Id.GetHashCode();
            }
            if (FolderId.Length != 0)
            {
                hash ^= FolderId.GetHashCode();
            }
            if (createdAt_ != null)
            {
                hash ^= CreatedAt.GetHashCode();
            }
            if (SourceClusterId.Length != 0)
            {
                hash ^= SourceClusterId.GetHashCode();
            }
            if (startedAt_ != null)
            {
                hash ^= StartedAt.GetHashCode();
            }
            hash ^= sourceShardNames_.GetHashCode();
            if (Size != 0L)
            {
                hash ^= Size.GetHashCode();
            }
            if (Type != global::Yandex.Cloud.Mdb.Mongodb.V1.Backup.Types.BackupType.Unspecified)
            {
                hash ^= Type.GetHashCode();
            }
            if (_unknownFields != null)
            {
                hash ^= _unknownFields.GetHashCode();
            }
            return(hash);
        }