public void MergeFrom(pb::CodedInputStream input) { uint tag; while ((tag = input.ReadTag()) != 0) { switch (tag) { default: input.SkipLastField(); break; case 10: { Query = input.ReadString(); break; } case 16: { PageNumber = input.ReadInt32(); break; } case 24: { ResultPerPage = input.ReadInt32(); break; } case 32: { corpus_ = (global::Google.Protobuf.Examples.AddressBook.Corpus)input.ReadEnum(); break; } } } }
public void MergeFrom(SearchRequest other) { if (other == null) { return; } if (other.Query.Length != 0) { Query = other.Query; } if (other.PageNumber != 0) { PageNumber = other.PageNumber; } if (other.ResultPerPage != 0) { ResultPerPage = other.ResultPerPage; } if (other.Corpus != 0) { Corpus = other.Corpus; } }