public void Read(OutRLHandleResult structs, Protocol iprot) { String schemeStruct = iprot.ReadStructBegin(); if (schemeStruct != null) { while (true) { String schemeField = iprot.ReadFieldBegin(); if (schemeField == null) { break; } bool needSkip = true; if ("header".Equals(schemeField.Trim())) { needSkip = false; com.vip.haitao.loading.osp.service.PostHeader value; value = new com.vip.haitao.loading.osp.service.PostHeader(); com.vip.haitao.loading.osp.service.PostHeaderHelper.getInstance().Read(value, iprot); structs.SetHeader(value); } if ("body".Equals(schemeField.Trim())) { needSkip = false; com.vip.haitao.loading.osp.service.GetBody value; value = new com.vip.haitao.loading.osp.service.GetBody(); com.vip.haitao.loading.osp.service.GetBodyHelper.getInstance().Read(value, iprot); structs.SetBody(value); } if (needSkip) { ProtocolUtil.skip(iprot); } iprot.ReadFieldEnd(); } iprot.ReadStructEnd(); Validate(structs); } else { throw new OspException(); } }
public void SetHeader(com.vip.haitao.loading.osp.service.PostHeader value) { this.header_ = value; }