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: { BitsPerPixel = input.ReadInt32(); break; } case 18: { if (size_ == null) { size_ = new global::NydusNetwork.API.Protocol.Size2DI(); } input.ReadMessage(size_); break; } case 26: { Data = input.ReadBytes(); break; } } } }
public void MergeFrom(ImageData other) { if (other == null) { return; } if (other.BitsPerPixel != 0) { BitsPerPixel = other.BitsPerPixel; } if (other.size_ != null) { if (size_ == null) { size_ = new global::NydusNetwork.API.Protocol.Size2DI(); } Size.MergeFrom(other.Size); } if (other.Data.Length != 0) { Data = other.Data; } _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); }