Beispiel #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);
 }
Beispiel #2
0
        public void MergeFrom(pb::CodedInputStream input)
        {
            uint tag;

            while ((tag = input.ReadTag()) != 0)
            {
                switch (tag)
                {
                default:
                    _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
                    break;

                case 8: {
                    Id = input.ReadUInt32();
                    break;
                }

                case 18: {
                    Name = input.ReadString();
                    break;
                }

                case 26: {
                    Fall = input.ReadString();
                    break;
                }

                case 34: {
                    if (geolocation_ == null)
                    {
                        Geolocation = new global::GrpcService.GeoLocation();
                    }
                    input.ReadMessage(Geolocation);
                    break;
                }

                case 41: {
                    Mass = input.ReadDouble();
                    break;
                }

                case 50: {
                    Nametype = input.ReadString();
                    break;
                }

                case 58: {
                    Recclass = input.ReadString();
                    break;
                }

                case 65: {
                    Reclat = input.ReadDouble();
                    break;
                }

                case 73: {
                    Reclong = input.ReadDouble();
                    break;
                }

                case 82: {
                    if (year_ == null)
                    {
                        Year = new global::Google.Protobuf.WellKnownTypes.Timestamp();
                    }
                    input.ReadMessage(Year);
                    break;
                }
                }
            }
        }