Exemplo n.º 1
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: {
                    pedidos_.AddEntriesFrom(input, _repeated_pedidos_codec);
                    break;
                }

                case 18: {
                    if (response_ == null)
                    {
                        response_ = new global::ServidorPedidos.PedidoResponse();
                    }
                    input.ReadMessage(response_);
                    break;
                }
                }
            }
        }
Exemplo n.º 2
0
 public void MergeFrom(Resultado other)
 {
     if (other == null)
     {
         return;
     }
     pedidos_.Add(other.pedidos_);
     if (other.response_ != null)
     {
         if (response_ == null)
         {
             response_ = new global::ServidorPedidos.PedidoResponse();
         }
         Response.MergeFrom(other.Response);
     }
     _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
 }