Exemplo n.º 1
0
        public override int GetHashCode()
        {
            int hash = 1;

            if (Id.Length != 0)
            {
                hash ^= Id.GetHashCode();
            }
            if (Consumer.Length != 0)
            {
                hash ^= Consumer.GetHashCode();
            }
            if (DatasetName.Length != 0)
            {
                hash ^= DatasetName.GetHashCode();
            }
            if (DatasetType.Length != 0)
            {
                hash ^= DatasetType.GetHashCode();
            }
            if (DatasetId.Length != 0)
            {
                hash ^= DatasetId.GetHashCode();
            }
            hash ^= tags_.GetHashCode();
            if (data_ != null)
            {
                hash ^= Data.GetHashCode();
            }
            hash ^= targetValues_.GetHashCode();
            if (model_ != null)
            {
                hash ^= Model.GetHashCode();
            }
            hash ^= prediction_.GetHashCode();
            if (TimeAdded != 0UL)
            {
                hash ^= TimeAdded.GetHashCode();
            }
            if (_unknownFields != null)
            {
                hash ^= _unknownFields.GetHashCode();
            }
            return(hash);
        }
Exemplo n.º 2
0
        public override int GetHashCode()
        {
            int hash = 1;

            if (DatasetName.Length != 0)
            {
                hash ^= DatasetName.GetHashCode();
            }
            hash ^= inputs_.GetHashCode();
            if (options_ != null)
            {
                hash ^= Options.GetHashCode();
            }
            if (_unknownFields != null)
            {
                hash ^= _unknownFields.GetHashCode();
            }
            return(hash);
        }
Exemplo n.º 3
0
 /// <summary>
 /// Returns a hash code for this instance.
 /// </summary>
 /// <returns>
 /// A hash code for this instance, suitable for use in hashing algorithms and data structures like a hash table.
 /// </returns>
 public override int GetHashCode()
 {
     return(DatasetName.GetHashCode());
 }