public void MergeFrom(TicketFile other) { if (other == null) { return; } if (other.File.Length != 0) { File = other.File; } if (other.Type != global::G2Rail.Protobuf.TicketFile.Types.TicketType.PdfTicket) { Type = other.Type; } _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: { File = input.ReadString(); break; } case 16: { Type = (global::G2Rail.Protobuf.TicketFile.Types.TicketType)input.ReadEnum(); break; } } } }