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: { PageIndex = input.ReadInt32(); break; } case 16: { PageSize = input.ReadInt32(); break; } case 26: case 24: { items_.AddEntriesFrom(input, _repeated_items_codec); break; } case 32: { pType_ = (global::Built.Grpc.ContractsSample1.ProductBasic.ProductBasicGetsRequest.Types.PhoneType)input.ReadEnum(); break; } } } }
public void MergeFrom(ProductBasicGetsRequest other) { if (other == null) { return; } if (other.PageIndex != 0) { PageIndex = other.PageIndex; } if (other.PageSize != 0) { PageSize = other.PageSize; } items_.Add(other.items_); if (other.PType != 0) { PType = other.PType; } _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); }