Ejemplo n.º 1
0
 public void MergeFrom(EmployeeResponse other)
 {
     if (other == null)
     {
         return;
     }
     if (other.employee_ != null)
     {
         if (employee_ == null)
         {
             Employee = new global::GrpcService.Web.Protos.Employee();
         }
         Employee.MergeFrom(other.Employee);
     }
     _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: {
                    if (employee_ == null)
                    {
                        Employee = new global::GrpcService.Web.Protos.Employee();
                    }
                    input.ReadMessage(Employee);
                    break;
                }
                }
            }
        }