示例#1
0
 public void MergeFrom(Distribution other)
 {
     if (other == null)
     {
         return;
     }
     if (other.CpeUri.Length != 0)
     {
         CpeUri = other.CpeUri;
     }
     if (other.Architecture != 0)
     {
         Architecture = other.Architecture;
     }
     if (other.latestVersion_ != null)
     {
         if (latestVersion_ == null)
         {
             latestVersion_ = new global::Grafeas.V1.Version();
         }
         LatestVersion.MergeFrom(other.LatestVersion);
     }
     if (other.Maintainer.Length != 0)
     {
         Maintainer = other.Maintainer;
     }
     if (other.Url.Length != 0)
     {
         Url = other.Url;
     }
     if (other.Description.Length != 0)
     {
         Description = other.Description;
     }
     _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
 }