public void MergeFrom(Request other) { if (other == null) { return; } if (other.Type != global::Request.Types.Type.Unknown) { Type = other.Type; } if (other.volunteer_ != null) { if (volunteer_ == null) { Volunteer = new global::Volunteer(); } Volunteer.MergeFrom(other.Volunteer); } if (other.DonorId != 0) { DonorId = other.DonorId; } if (other.Name.Length != 0) { Name = other.Name; } if (other.Address.Length != 0) { Address = other.Address; } if (other.Telephone.Length != 0) { Telephone = other.Telephone; } if (other.Sum != 0D) { Sum = other.Sum; } if (other.CaseId != 0) { CaseId = other.CaseId; } if (other.Substring.Length != 0) { Substring = other.Substring; } _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 8: { Type = (global::Request.Types.Type)input.ReadEnum(); break; } case 18: { if (volunteer_ == null) { Volunteer = new global::Volunteer(); } input.ReadMessage(Volunteer); break; } case 24: { DonorId = input.ReadInt32(); break; } case 34: { Name = input.ReadString(); break; } case 42: { Address = input.ReadString(); break; } case 50: { Telephone = input.ReadString(); break; } case 57: { Sum = input.ReadDouble(); break; } case 64: { CaseId = input.ReadInt32(); break; } case 74: { Substring = input.ReadString(); break; } } } }