public void MergeFrom(UploadImgRequest other) { if (other == null) { return; } if (other.Name.Length != 0) { Name = other.Name; } if (other.Path.Length != 0) { Path = other.Path; } if (other.FileStream.Length != 0) { FileStream = other.FileStream; } if (other.Index != 0) { Index = other.Index; } if (other.ReturnType != global::Risfond.File.ServiceApi.Protos.ImgReturnType.Url) { ReturnType = other.ReturnType; } _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); }
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: { Name = input.ReadString(); break; } case 18: { Path = input.ReadString(); break; } case 26: { FileStream = input.ReadBytes(); break; } case 32: { Index = input.ReadInt32(); break; } case 40: { ReturnType = (global::Risfond.File.ServiceApi.Protos.ImgReturnType)input.ReadEnum(); break; } } } }