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 8: {
                status_ = (global::ClientBatchGetResponse.Types.Status)input.ReadEnum();
                break;
            }

            case 18: {
                if (batch_ == null)
                {
                    batch_ = new global::Batch();
                }
                input.ReadMessage(batch_);
                break;
            }
            }
        }
    }
Exemplo n.º 2
0
 public void MergeFrom(ClientBatchGetResponse other)
 {
     if (other == null)
     {
         return;
     }
     if (other.Status != 0)
     {
         Status = other.Status;
     }
     if (other.batch_ != null)
     {
         if (batch_ == null)
         {
             batch_ = new global::Batch();
         }
         Batch.MergeFrom(other.Batch);
     }
     _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
 }