public void Read(Product structs, Protocol iprot) { String schemeStruct = iprot.ReadStructBegin(); if (schemeStruct != null) { while (true) { String schemeField = iprot.ReadFieldBegin(); if (schemeField == null) { break; } bool needSkip = true; if ("stock".Equals(schemeField.Trim())) { needSkip = false; vipapis.puma.Stock value; value = new vipapis.puma.Stock(); vipapis.puma.StockHelper.getInstance().Read(value, iprot); structs.SetStock(value); } if ("cps".Equals(schemeField.Trim())) { needSkip = false; vipapis.puma.Cps value; value = new vipapis.puma.Cps(); vipapis.puma.CpsHelper.getInstance().Read(value, iprot); structs.SetCps(value); } if ("price".Equals(schemeField.Trim())) { needSkip = false; vipapis.puma.Price value; value = new vipapis.puma.Price(); vipapis.puma.PriceHelper.getInstance().Read(value, iprot); structs.SetPrice(value); } if ("merchandise".Equals(schemeField.Trim())) { needSkip = false; vipapis.puma.Merchandise value; value = new vipapis.puma.Merchandise(); vipapis.puma.MerchandiseHelper.getInstance().Read(value, iprot); structs.SetMerchandise(value); } if ("vendor_product".Equals(schemeField.Trim())) { needSkip = false; vipapis.puma.VendorProduct value; value = new vipapis.puma.VendorProduct(); vipapis.puma.VendorProductHelper.getInstance().Read(value, iprot); structs.SetVendor_product(value); } if (needSkip) { ProtocolUtil.skip(iprot); } iprot.ReadFieldEnd(); } iprot.ReadStructEnd(); Validate(structs); } else { throw new OspException(); } }
public void SetMerchandise(vipapis.puma.Merchandise value) { this.merchandise_ = value; }