Ejemplo n.º 1
0
 public void MergeFrom(PackageDetails other)
 {
     if (other == null)
     {
         return;
     }
     if (other.PackageId.Length != 0)
     {
         PackageId = other.PackageId;
     }
     if (other.PackageSize != 0UL)
     {
         PackageSize = other.PackageSize;
     }
     if (other.knownSince_ != null)
     {
         if (knownSince_ == null)
         {
             KnownSince = new global::Google.Protobuf.WellKnownTypes.Timestamp();
         }
         KnownSince.MergeFrom(other.KnownSince);
     }
     if (other.SourceDescription.Length != 0)
     {
         SourceDescription = other.SourceDescription;
     }
     _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
 }
Ejemplo n.º 2
0
        public override int GetHashCode()
        {
            int hash = 1;

            if (PackageId.Length != 0)
            {
                hash ^= PackageId.GetHashCode();
            }
            if (PackageSize != 0UL)
            {
                hash ^= PackageSize.GetHashCode();
            }
            if (knownSince_ != null)
            {
                hash ^= KnownSince.GetHashCode();
            }
            if (SourceDescription.Length != 0)
            {
                hash ^= SourceDescription.GetHashCode();
            }
            if (_unknownFields != null)
            {
                hash ^= _unknownFields.GetHashCode();
            }
            return(hash);
        }