Example #1
0
 public void MergeFrom(StorageGroup other)
 {
     if (other == null)
     {
         return;
     }
     if (other.ValidationDataSize != 0UL)
     {
         ValidationDataSize = other.ValidationDataSize;
     }
     if (other.validationHash_ != null)
     {
         if (validationHash_ == null)
         {
             ValidationHash = new global::NeoFS.API.v2.Refs.Checksum();
         }
         ValidationHash.MergeFrom(other.ValidationHash);
     }
     if (other.ExpirationEpoch != 0UL)
     {
         ExpirationEpoch = other.ExpirationEpoch;
     }
     members_.Add(other.members_);
     _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
 }
Example #2
0
        public override int GetHashCode()
        {
            int hash = 1;

            if (ValidationDataSize != 0UL)
            {
                hash ^= ValidationDataSize.GetHashCode();
            }
            if (ValidationHash.Length != 0)
            {
                hash ^= ValidationHash.GetHashCode();
            }
            if (lifetime_ != null)
            {
                hash ^= Lifetime.GetHashCode();
            }
            if (_unknownFields != null)
            {
                hash ^= _unknownFields.GetHashCode();
            }
            return(hash);
        }
Example #3
0
        public override int GetHashCode()
        {
            int hash = 1;

            if (ValidationDataSize != 0UL)
            {
                hash ^= ValidationDataSize.GetHashCode();
            }
            if (validationHash_ != null)
            {
                hash ^= ValidationHash.GetHashCode();
            }
            if (ExpirationEpoch != 0UL)
            {
                hash ^= ExpirationEpoch.GetHashCode();
            }
            hash ^= members_.GetHashCode();
            if (_unknownFields != null)
            {
                hash ^= _unknownFields.GetHashCode();
            }
            return(hash);
        }