예제 #1
0
 public void MergeFrom(MeteoriteLanding other)
 {
     if (other == null)
     {
         return;
     }
     if (other.Id != 0)
     {
         Id = other.Id;
     }
     if (other.Name.Length != 0)
     {
         Name = other.Name;
     }
     if (other.Fall.Length != 0)
     {
         Fall = other.Fall;
     }
     if (other.geolocation_ != null)
     {
         if (geolocation_ == null)
         {
             Geolocation = new global::GrpcService.GeoLocation();
         }
         Geolocation.MergeFrom(other.Geolocation);
     }
     if (other.Mass != 0D)
     {
         Mass = other.Mass;
     }
     if (other.Nametype.Length != 0)
     {
         Nametype = other.Nametype;
     }
     if (other.Recclass.Length != 0)
     {
         Recclass = other.Recclass;
     }
     if (other.Reclat != 0D)
     {
         Reclat = other.Reclat;
     }
     if (other.Reclong != 0D)
     {
         Reclong = other.Reclong;
     }
     if (other.year_ != null)
     {
         if (year_ == null)
         {
             Year = new global::Google.Protobuf.WellKnownTypes.Timestamp();
         }
         Year.MergeFrom(other.Year);
     }
     _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
 }