Ejemplo n.º 1
0
 public void MergeFrom(ApplicantProfileReply other)
 {
     if (other == null)
     {
         return;
     }
     if (other.Id.Length != 0)
     {
         Id = other.Id;
     }
     if (other.Login.Length != 0)
     {
         Login = other.Login;
     }
     if (other.currentSalary_ != null)
     {
         if (currentSalary_ == null)
         {
             CurrentSalary = new global::CareerCloud.Grpc.Protos.DecimalValue();
         }
         CurrentSalary.MergeFrom(other.CurrentSalary);
     }
     if (other.currentRate_ != null)
     {
         if (currentRate_ == null)
         {
             CurrentRate = new global::CareerCloud.Grpc.Protos.DecimalValue();
         }
         CurrentRate.MergeFrom(other.CurrentRate);
     }
     if (other.Currency.Length != 0)
     {
         Currency = other.Currency;
     }
     if (other.Country.Length != 0)
     {
         Country = other.Country;
     }
     if (other.Province.Length != 0)
     {
         Province = other.Province;
     }
     if (other.Street.Length != 0)
     {
         Street = other.Street;
     }
     if (other.City.Length != 0)
     {
         City = other.City;
     }
     if (other.PostalCode.Length != 0)
     {
         PostalCode = other.PostalCode;
     }
     _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
 }
Ejemplo n.º 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 10: {
                    Id = input.ReadString();
                    break;
                }

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

                case 26: {
                    if (currentSalary_ == null)
                    {
                        CurrentSalary = new global::CareerCloud.Grpc.Protos.DecimalValue();
                    }
                    input.ReadMessage(CurrentSalary);
                    break;
                }

                case 34: {
                    if (currentRate_ == null)
                    {
                        CurrentRate = new global::CareerCloud.Grpc.Protos.DecimalValue();
                    }
                    input.ReadMessage(CurrentRate);
                    break;
                }

                case 42: {
                    Currency = input.ReadString();
                    break;
                }

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

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

                case 66: {
                    Street = input.ReadString();
                    break;
                }

                case 74: {
                    City = input.ReadString();
                    break;
                }

                case 82: {
                    PostalCode = input.ReadString();
                    break;
                }
                }
            }
        }