Ejemplo n.º 1
0
Archivo: Wscv.cs Proyecto: Loulfy/wscv
        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: {
                    Width = input.ReadInt32();
                    break;
                }

                case 16: {
                    Height = input.ReadInt32();
                    break;
                }

                case 26: {
                    Content = input.ReadBytes();
                    break;
                }

                case 32: {
                    method_ = (global::Wscv.Request.Types.Method)input.ReadEnum();
                    break;
                }
                }
            }
        }
Ejemplo n.º 2
0
Archivo: Wscv.cs Proyecto: Loulfy/wscv
 public void MergeFrom(Request other)
 {
     if (other == null)
     {
         return;
     }
     if (other.Width != 0)
     {
         Width = other.Width;
     }
     if (other.Height != 0)
     {
         Height = other.Height;
     }
     if (other.Content.Length != 0)
     {
         Content = other.Content;
     }
     if (other.Method != 0)
     {
         Method = other.Method;
     }
     _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
 }