ICBCRefundNotifyRequest.java 69 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224
  1. // Generated by the protocol buffer compiler. DO NOT EDIT!
  2. // source: ordercenter.proto
  3. package com.ywt.gapi.ordercenter;
  4. /**
  5. * <pre>
  6. *ICBC退款结果通知请求消息
  7. * </pre>
  8. *
  9. * Protobuf type {@code com.ywt.gapi.ordercenter.ICBCRefundNotifyRequest}
  10. */
  11. public final class ICBCRefundNotifyRequest extends
  12. com.google.protobuf.GeneratedMessageV3 implements
  13. // @@protoc_insertion_point(message_implements:com.ywt.gapi.ordercenter.ICBCRefundNotifyRequest)
  14. ICBCRefundNotifyRequestOrBuilder {
  15. // Use ICBCRefundNotifyRequest.newBuilder() to construct.
  16. private ICBCRefundNotifyRequest(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {
  17. super(builder);
  18. }
  19. private ICBCRefundNotifyRequest() {
  20. refundNo_ = "";
  21. outTradeNo_ = "";
  22. refundDate_ = 0L;
  23. refundFinishDate_ = 0L;
  24. refundSuccessTime_ = 0L;
  25. refundFee_ = 0;
  26. refundStatus_ = 0;
  27. subOrderList_ = java.util.Collections.emptyList();
  28. }
  29. @java.lang.Override
  30. public final com.google.protobuf.UnknownFieldSet
  31. getUnknownFields() {
  32. return com.google.protobuf.UnknownFieldSet.getDefaultInstance();
  33. }
  34. private ICBCRefundNotifyRequest(
  35. com.google.protobuf.CodedInputStream input,
  36. com.google.protobuf.ExtensionRegistryLite extensionRegistry)
  37. throws com.google.protobuf.InvalidProtocolBufferException {
  38. this();
  39. int mutable_bitField0_ = 0;
  40. try {
  41. boolean done = false;
  42. while (!done) {
  43. int tag = input.readTag();
  44. switch (tag) {
  45. case 0:
  46. done = true;
  47. break;
  48. default: {
  49. if (!input.skipField(tag)) {
  50. done = true;
  51. }
  52. break;
  53. }
  54. case 10: {
  55. java.lang.String s = input.readStringRequireUtf8();
  56. refundNo_ = s;
  57. break;
  58. }
  59. case 18: {
  60. java.lang.String s = input.readStringRequireUtf8();
  61. outTradeNo_ = s;
  62. break;
  63. }
  64. case 24: {
  65. refundDate_ = input.readInt64();
  66. break;
  67. }
  68. case 32: {
  69. refundFinishDate_ = input.readInt64();
  70. break;
  71. }
  72. case 40: {
  73. refundSuccessTime_ = input.readInt64();
  74. break;
  75. }
  76. case 48: {
  77. refundFee_ = input.readInt32();
  78. break;
  79. }
  80. case 56: {
  81. refundStatus_ = input.readInt32();
  82. break;
  83. }
  84. case 66: {
  85. if (!((mutable_bitField0_ & 0x00000080) == 0x00000080)) {
  86. subOrderList_ = new java.util.ArrayList<com.ywt.gapi.ordercenter.ICBCRefundNotifyRequest.SubOrder>();
  87. mutable_bitField0_ |= 0x00000080;
  88. }
  89. subOrderList_.add(
  90. input.readMessage(com.ywt.gapi.ordercenter.ICBCRefundNotifyRequest.SubOrder.parser(), extensionRegistry));
  91. break;
  92. }
  93. }
  94. }
  95. } catch (com.google.protobuf.InvalidProtocolBufferException e) {
  96. throw e.setUnfinishedMessage(this);
  97. } catch (java.io.IOException e) {
  98. throw new com.google.protobuf.InvalidProtocolBufferException(
  99. e).setUnfinishedMessage(this);
  100. } finally {
  101. if (((mutable_bitField0_ & 0x00000080) == 0x00000080)) {
  102. subOrderList_ = java.util.Collections.unmodifiableList(subOrderList_);
  103. }
  104. makeExtensionsImmutable();
  105. }
  106. }
  107. public static final com.google.protobuf.Descriptors.Descriptor
  108. getDescriptor() {
  109. return com.ywt.gapi.ordercenter.Ordercenter.internal_static_com_ywt_gapi_ordercenter_ICBCRefundNotifyRequest_descriptor;
  110. }
  111. protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
  112. internalGetFieldAccessorTable() {
  113. return com.ywt.gapi.ordercenter.Ordercenter.internal_static_com_ywt_gapi_ordercenter_ICBCRefundNotifyRequest_fieldAccessorTable
  114. .ensureFieldAccessorsInitialized(
  115. com.ywt.gapi.ordercenter.ICBCRefundNotifyRequest.class, com.ywt.gapi.ordercenter.ICBCRefundNotifyRequest.Builder.class);
  116. }
  117. public interface SubOrderOrBuilder extends
  118. // @@protoc_insertion_point(interface_extends:com.ywt.gapi.ordercenter.ICBCRefundNotifyRequest.SubOrder)
  119. com.google.protobuf.MessageOrBuilder {
  120. /**
  121. * <pre>
  122. *单位:分
  123. * </pre>
  124. *
  125. * <code>int32 refundFee = 1;</code>
  126. */
  127. int getRefundFee();
  128. /**
  129. * <pre>
  130. *订单ID
  131. * </pre>
  132. *
  133. * <code>int32 orderId = 2;</code>
  134. */
  135. int getOrderId();
  136. /**
  137. * <pre>
  138. *支付代码--支付中心统一编码
  139. * </pre>
  140. *
  141. * <code>string payCode = 3;</code>
  142. */
  143. java.lang.String getPayCode();
  144. /**
  145. * <pre>
  146. *支付代码--支付中心统一编码
  147. * </pre>
  148. *
  149. * <code>string payCode = 3;</code>
  150. */
  151. com.google.protobuf.ByteString
  152. getPayCodeBytes();
  153. /**
  154. * <pre>
  155. *退款日志ID
  156. * </pre>
  157. *
  158. * <code>int32 orderRefundLogId = 4;</code>
  159. */
  160. int getOrderRefundLogId();
  161. }
  162. /**
  163. * <pre>
  164. * 子订单
  165. * </pre>
  166. *
  167. * Protobuf type {@code com.ywt.gapi.ordercenter.ICBCRefundNotifyRequest.SubOrder}
  168. */
  169. public static final class SubOrder extends
  170. com.google.protobuf.GeneratedMessageV3 implements
  171. // @@protoc_insertion_point(message_implements:com.ywt.gapi.ordercenter.ICBCRefundNotifyRequest.SubOrder)
  172. SubOrderOrBuilder {
  173. // Use SubOrder.newBuilder() to construct.
  174. private SubOrder(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {
  175. super(builder);
  176. }
  177. private SubOrder() {
  178. refundFee_ = 0;
  179. orderId_ = 0;
  180. payCode_ = "";
  181. orderRefundLogId_ = 0;
  182. }
  183. @java.lang.Override
  184. public final com.google.protobuf.UnknownFieldSet
  185. getUnknownFields() {
  186. return com.google.protobuf.UnknownFieldSet.getDefaultInstance();
  187. }
  188. private SubOrder(
  189. com.google.protobuf.CodedInputStream input,
  190. com.google.protobuf.ExtensionRegistryLite extensionRegistry)
  191. throws com.google.protobuf.InvalidProtocolBufferException {
  192. this();
  193. int mutable_bitField0_ = 0;
  194. try {
  195. boolean done = false;
  196. while (!done) {
  197. int tag = input.readTag();
  198. switch (tag) {
  199. case 0:
  200. done = true;
  201. break;
  202. default: {
  203. if (!input.skipField(tag)) {
  204. done = true;
  205. }
  206. break;
  207. }
  208. case 8: {
  209. refundFee_ = input.readInt32();
  210. break;
  211. }
  212. case 16: {
  213. orderId_ = input.readInt32();
  214. break;
  215. }
  216. case 26: {
  217. java.lang.String s = input.readStringRequireUtf8();
  218. payCode_ = s;
  219. break;
  220. }
  221. case 32: {
  222. orderRefundLogId_ = input.readInt32();
  223. break;
  224. }
  225. }
  226. }
  227. } catch (com.google.protobuf.InvalidProtocolBufferException e) {
  228. throw e.setUnfinishedMessage(this);
  229. } catch (java.io.IOException e) {
  230. throw new com.google.protobuf.InvalidProtocolBufferException(
  231. e).setUnfinishedMessage(this);
  232. } finally {
  233. makeExtensionsImmutable();
  234. }
  235. }
  236. public static final com.google.protobuf.Descriptors.Descriptor
  237. getDescriptor() {
  238. return com.ywt.gapi.ordercenter.Ordercenter.internal_static_com_ywt_gapi_ordercenter_ICBCRefundNotifyRequest_SubOrder_descriptor;
  239. }
  240. protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
  241. internalGetFieldAccessorTable() {
  242. return com.ywt.gapi.ordercenter.Ordercenter.internal_static_com_ywt_gapi_ordercenter_ICBCRefundNotifyRequest_SubOrder_fieldAccessorTable
  243. .ensureFieldAccessorsInitialized(
  244. com.ywt.gapi.ordercenter.ICBCRefundNotifyRequest.SubOrder.class, com.ywt.gapi.ordercenter.ICBCRefundNotifyRequest.SubOrder.Builder.class);
  245. }
  246. public static final int REFUNDFEE_FIELD_NUMBER = 1;
  247. private int refundFee_;
  248. /**
  249. * <pre>
  250. *单位:分
  251. * </pre>
  252. *
  253. * <code>int32 refundFee = 1;</code>
  254. */
  255. public int getRefundFee() {
  256. return refundFee_;
  257. }
  258. public static final int ORDERID_FIELD_NUMBER = 2;
  259. private int orderId_;
  260. /**
  261. * <pre>
  262. *订单ID
  263. * </pre>
  264. *
  265. * <code>int32 orderId = 2;</code>
  266. */
  267. public int getOrderId() {
  268. return orderId_;
  269. }
  270. public static final int PAYCODE_FIELD_NUMBER = 3;
  271. private volatile java.lang.Object payCode_;
  272. /**
  273. * <pre>
  274. *支付代码--支付中心统一编码
  275. * </pre>
  276. *
  277. * <code>string payCode = 3;</code>
  278. */
  279. public java.lang.String getPayCode() {
  280. java.lang.Object ref = payCode_;
  281. if (ref instanceof java.lang.String) {
  282. return (java.lang.String) ref;
  283. } else {
  284. com.google.protobuf.ByteString bs =
  285. (com.google.protobuf.ByteString) ref;
  286. java.lang.String s = bs.toStringUtf8();
  287. payCode_ = s;
  288. return s;
  289. }
  290. }
  291. /**
  292. * <pre>
  293. *支付代码--支付中心统一编码
  294. * </pre>
  295. *
  296. * <code>string payCode = 3;</code>
  297. */
  298. public com.google.protobuf.ByteString
  299. getPayCodeBytes() {
  300. java.lang.Object ref = payCode_;
  301. if (ref instanceof java.lang.String) {
  302. com.google.protobuf.ByteString b =
  303. com.google.protobuf.ByteString.copyFromUtf8(
  304. (java.lang.String) ref);
  305. payCode_ = b;
  306. return b;
  307. } else {
  308. return (com.google.protobuf.ByteString) ref;
  309. }
  310. }
  311. public static final int ORDERREFUNDLOGID_FIELD_NUMBER = 4;
  312. private int orderRefundLogId_;
  313. /**
  314. * <pre>
  315. *退款日志ID
  316. * </pre>
  317. *
  318. * <code>int32 orderRefundLogId = 4;</code>
  319. */
  320. public int getOrderRefundLogId() {
  321. return orderRefundLogId_;
  322. }
  323. private byte memoizedIsInitialized = -1;
  324. public final boolean isInitialized() {
  325. byte isInitialized = memoizedIsInitialized;
  326. if (isInitialized == 1) return true;
  327. if (isInitialized == 0) return false;
  328. memoizedIsInitialized = 1;
  329. return true;
  330. }
  331. public void writeTo(com.google.protobuf.CodedOutputStream output)
  332. throws java.io.IOException {
  333. if (refundFee_ != 0) {
  334. output.writeInt32(1, refundFee_);
  335. }
  336. if (orderId_ != 0) {
  337. output.writeInt32(2, orderId_);
  338. }
  339. if (!getPayCodeBytes().isEmpty()) {
  340. com.google.protobuf.GeneratedMessageV3.writeString(output, 3, payCode_);
  341. }
  342. if (orderRefundLogId_ != 0) {
  343. output.writeInt32(4, orderRefundLogId_);
  344. }
  345. }
  346. public int getSerializedSize() {
  347. int size = memoizedSize;
  348. if (size != -1) return size;
  349. size = 0;
  350. if (refundFee_ != 0) {
  351. size += com.google.protobuf.CodedOutputStream
  352. .computeInt32Size(1, refundFee_);
  353. }
  354. if (orderId_ != 0) {
  355. size += com.google.protobuf.CodedOutputStream
  356. .computeInt32Size(2, orderId_);
  357. }
  358. if (!getPayCodeBytes().isEmpty()) {
  359. size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, payCode_);
  360. }
  361. if (orderRefundLogId_ != 0) {
  362. size += com.google.protobuf.CodedOutputStream
  363. .computeInt32Size(4, orderRefundLogId_);
  364. }
  365. memoizedSize = size;
  366. return size;
  367. }
  368. private static final long serialVersionUID = 0L;
  369. @java.lang.Override
  370. public boolean equals(final java.lang.Object obj) {
  371. if (obj == this) {
  372. return true;
  373. }
  374. if (!(obj instanceof com.ywt.gapi.ordercenter.ICBCRefundNotifyRequest.SubOrder)) {
  375. return super.equals(obj);
  376. }
  377. com.ywt.gapi.ordercenter.ICBCRefundNotifyRequest.SubOrder other = (com.ywt.gapi.ordercenter.ICBCRefundNotifyRequest.SubOrder) obj;
  378. boolean result = true;
  379. result = result && (getRefundFee()
  380. == other.getRefundFee());
  381. result = result && (getOrderId()
  382. == other.getOrderId());
  383. result = result && getPayCode()
  384. .equals(other.getPayCode());
  385. result = result && (getOrderRefundLogId()
  386. == other.getOrderRefundLogId());
  387. return result;
  388. }
  389. @java.lang.Override
  390. public int hashCode() {
  391. if (memoizedHashCode != 0) {
  392. return memoizedHashCode;
  393. }
  394. int hash = 41;
  395. hash = (19 * hash) + getDescriptor().hashCode();
  396. hash = (37 * hash) + REFUNDFEE_FIELD_NUMBER;
  397. hash = (53 * hash) + getRefundFee();
  398. hash = (37 * hash) + ORDERID_FIELD_NUMBER;
  399. hash = (53 * hash) + getOrderId();
  400. hash = (37 * hash) + PAYCODE_FIELD_NUMBER;
  401. hash = (53 * hash) + getPayCode().hashCode();
  402. hash = (37 * hash) + ORDERREFUNDLOGID_FIELD_NUMBER;
  403. hash = (53 * hash) + getOrderRefundLogId();
  404. hash = (29 * hash) + unknownFields.hashCode();
  405. memoizedHashCode = hash;
  406. return hash;
  407. }
  408. public static com.ywt.gapi.ordercenter.ICBCRefundNotifyRequest.SubOrder parseFrom(
  409. java.nio.ByteBuffer data)
  410. throws com.google.protobuf.InvalidProtocolBufferException {
  411. return PARSER.parseFrom(data);
  412. }
  413. public static com.ywt.gapi.ordercenter.ICBCRefundNotifyRequest.SubOrder parseFrom(
  414. java.nio.ByteBuffer data,
  415. com.google.protobuf.ExtensionRegistryLite extensionRegistry)
  416. throws com.google.protobuf.InvalidProtocolBufferException {
  417. return PARSER.parseFrom(data, extensionRegistry);
  418. }
  419. public static com.ywt.gapi.ordercenter.ICBCRefundNotifyRequest.SubOrder parseFrom(
  420. com.google.protobuf.ByteString data)
  421. throws com.google.protobuf.InvalidProtocolBufferException {
  422. return PARSER.parseFrom(data);
  423. }
  424. public static com.ywt.gapi.ordercenter.ICBCRefundNotifyRequest.SubOrder parseFrom(
  425. com.google.protobuf.ByteString data,
  426. com.google.protobuf.ExtensionRegistryLite extensionRegistry)
  427. throws com.google.protobuf.InvalidProtocolBufferException {
  428. return PARSER.parseFrom(data, extensionRegistry);
  429. }
  430. public static com.ywt.gapi.ordercenter.ICBCRefundNotifyRequest.SubOrder parseFrom(byte[] data)
  431. throws com.google.protobuf.InvalidProtocolBufferException {
  432. return PARSER.parseFrom(data);
  433. }
  434. public static com.ywt.gapi.ordercenter.ICBCRefundNotifyRequest.SubOrder parseFrom(
  435. byte[] data,
  436. com.google.protobuf.ExtensionRegistryLite extensionRegistry)
  437. throws com.google.protobuf.InvalidProtocolBufferException {
  438. return PARSER.parseFrom(data, extensionRegistry);
  439. }
  440. public static com.ywt.gapi.ordercenter.ICBCRefundNotifyRequest.SubOrder parseFrom(java.io.InputStream input)
  441. throws java.io.IOException {
  442. return com.google.protobuf.GeneratedMessageV3
  443. .parseWithIOException(PARSER, input);
  444. }
  445. public static com.ywt.gapi.ordercenter.ICBCRefundNotifyRequest.SubOrder parseFrom(
  446. java.io.InputStream input,
  447. com.google.protobuf.ExtensionRegistryLite extensionRegistry)
  448. throws java.io.IOException {
  449. return com.google.protobuf.GeneratedMessageV3
  450. .parseWithIOException(PARSER, input, extensionRegistry);
  451. }
  452. public static com.ywt.gapi.ordercenter.ICBCRefundNotifyRequest.SubOrder parseDelimitedFrom(java.io.InputStream input)
  453. throws java.io.IOException {
  454. return com.google.protobuf.GeneratedMessageV3
  455. .parseDelimitedWithIOException(PARSER, input);
  456. }
  457. public static com.ywt.gapi.ordercenter.ICBCRefundNotifyRequest.SubOrder parseDelimitedFrom(
  458. java.io.InputStream input,
  459. com.google.protobuf.ExtensionRegistryLite extensionRegistry)
  460. throws java.io.IOException {
  461. return com.google.protobuf.GeneratedMessageV3
  462. .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
  463. }
  464. public static com.ywt.gapi.ordercenter.ICBCRefundNotifyRequest.SubOrder parseFrom(
  465. com.google.protobuf.CodedInputStream input)
  466. throws java.io.IOException {
  467. return com.google.protobuf.GeneratedMessageV3
  468. .parseWithIOException(PARSER, input);
  469. }
  470. public static com.ywt.gapi.ordercenter.ICBCRefundNotifyRequest.SubOrder parseFrom(
  471. com.google.protobuf.CodedInputStream input,
  472. com.google.protobuf.ExtensionRegistryLite extensionRegistry)
  473. throws java.io.IOException {
  474. return com.google.protobuf.GeneratedMessageV3
  475. .parseWithIOException(PARSER, input, extensionRegistry);
  476. }
  477. public Builder newBuilderForType() { return newBuilder(); }
  478. public static Builder newBuilder() {
  479. return DEFAULT_INSTANCE.toBuilder();
  480. }
  481. public static Builder newBuilder(com.ywt.gapi.ordercenter.ICBCRefundNotifyRequest.SubOrder prototype) {
  482. return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
  483. }
  484. public Builder toBuilder() {
  485. return this == DEFAULT_INSTANCE
  486. ? new Builder() : new Builder().mergeFrom(this);
  487. }
  488. @java.lang.Override
  489. protected Builder newBuilderForType(
  490. com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
  491. Builder builder = new Builder(parent);
  492. return builder;
  493. }
  494. /**
  495. * <pre>
  496. * 子订单
  497. * </pre>
  498. *
  499. * Protobuf type {@code com.ywt.gapi.ordercenter.ICBCRefundNotifyRequest.SubOrder}
  500. */
  501. public static final class Builder extends
  502. com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements
  503. // @@protoc_insertion_point(builder_implements:com.ywt.gapi.ordercenter.ICBCRefundNotifyRequest.SubOrder)
  504. com.ywt.gapi.ordercenter.ICBCRefundNotifyRequest.SubOrderOrBuilder {
  505. public static final com.google.protobuf.Descriptors.Descriptor
  506. getDescriptor() {
  507. return com.ywt.gapi.ordercenter.Ordercenter.internal_static_com_ywt_gapi_ordercenter_ICBCRefundNotifyRequest_SubOrder_descriptor;
  508. }
  509. protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
  510. internalGetFieldAccessorTable() {
  511. return com.ywt.gapi.ordercenter.Ordercenter.internal_static_com_ywt_gapi_ordercenter_ICBCRefundNotifyRequest_SubOrder_fieldAccessorTable
  512. .ensureFieldAccessorsInitialized(
  513. com.ywt.gapi.ordercenter.ICBCRefundNotifyRequest.SubOrder.class, com.ywt.gapi.ordercenter.ICBCRefundNotifyRequest.SubOrder.Builder.class);
  514. }
  515. // Construct using com.ywt.gapi.ordercenter.ICBCRefundNotifyRequest.SubOrder.newBuilder()
  516. private Builder() {
  517. maybeForceBuilderInitialization();
  518. }
  519. private Builder(
  520. com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
  521. super(parent);
  522. maybeForceBuilderInitialization();
  523. }
  524. private void maybeForceBuilderInitialization() {
  525. if (com.google.protobuf.GeneratedMessageV3
  526. .alwaysUseFieldBuilders) {
  527. }
  528. }
  529. public Builder clear() {
  530. super.clear();
  531. refundFee_ = 0;
  532. orderId_ = 0;
  533. payCode_ = "";
  534. orderRefundLogId_ = 0;
  535. return this;
  536. }
  537. public com.google.protobuf.Descriptors.Descriptor
  538. getDescriptorForType() {
  539. return com.ywt.gapi.ordercenter.Ordercenter.internal_static_com_ywt_gapi_ordercenter_ICBCRefundNotifyRequest_SubOrder_descriptor;
  540. }
  541. public com.ywt.gapi.ordercenter.ICBCRefundNotifyRequest.SubOrder getDefaultInstanceForType() {
  542. return com.ywt.gapi.ordercenter.ICBCRefundNotifyRequest.SubOrder.getDefaultInstance();
  543. }
  544. public com.ywt.gapi.ordercenter.ICBCRefundNotifyRequest.SubOrder build() {
  545. com.ywt.gapi.ordercenter.ICBCRefundNotifyRequest.SubOrder result = buildPartial();
  546. if (!result.isInitialized()) {
  547. throw newUninitializedMessageException(result);
  548. }
  549. return result;
  550. }
  551. public com.ywt.gapi.ordercenter.ICBCRefundNotifyRequest.SubOrder buildPartial() {
  552. com.ywt.gapi.ordercenter.ICBCRefundNotifyRequest.SubOrder result = new com.ywt.gapi.ordercenter.ICBCRefundNotifyRequest.SubOrder(this);
  553. result.refundFee_ = refundFee_;
  554. result.orderId_ = orderId_;
  555. result.payCode_ = payCode_;
  556. result.orderRefundLogId_ = orderRefundLogId_;
  557. onBuilt();
  558. return result;
  559. }
  560. public Builder clone() {
  561. return (Builder) super.clone();
  562. }
  563. public Builder setField(
  564. com.google.protobuf.Descriptors.FieldDescriptor field,
  565. Object value) {
  566. return (Builder) super.setField(field, value);
  567. }
  568. public Builder clearField(
  569. com.google.protobuf.Descriptors.FieldDescriptor field) {
  570. return (Builder) super.clearField(field);
  571. }
  572. public Builder clearOneof(
  573. com.google.protobuf.Descriptors.OneofDescriptor oneof) {
  574. return (Builder) super.clearOneof(oneof);
  575. }
  576. public Builder setRepeatedField(
  577. com.google.protobuf.Descriptors.FieldDescriptor field,
  578. int index, Object value) {
  579. return (Builder) super.setRepeatedField(field, index, value);
  580. }
  581. public Builder addRepeatedField(
  582. com.google.protobuf.Descriptors.FieldDescriptor field,
  583. Object value) {
  584. return (Builder) super.addRepeatedField(field, value);
  585. }
  586. public Builder mergeFrom(com.google.protobuf.Message other) {
  587. if (other instanceof com.ywt.gapi.ordercenter.ICBCRefundNotifyRequest.SubOrder) {
  588. return mergeFrom((com.ywt.gapi.ordercenter.ICBCRefundNotifyRequest.SubOrder)other);
  589. } else {
  590. super.mergeFrom(other);
  591. return this;
  592. }
  593. }
  594. public Builder mergeFrom(com.ywt.gapi.ordercenter.ICBCRefundNotifyRequest.SubOrder other) {
  595. if (other == com.ywt.gapi.ordercenter.ICBCRefundNotifyRequest.SubOrder.getDefaultInstance()) return this;
  596. if (other.getRefundFee() != 0) {
  597. setRefundFee(other.getRefundFee());
  598. }
  599. if (other.getOrderId() != 0) {
  600. setOrderId(other.getOrderId());
  601. }
  602. if (!other.getPayCode().isEmpty()) {
  603. payCode_ = other.payCode_;
  604. onChanged();
  605. }
  606. if (other.getOrderRefundLogId() != 0) {
  607. setOrderRefundLogId(other.getOrderRefundLogId());
  608. }
  609. onChanged();
  610. return this;
  611. }
  612. public final boolean isInitialized() {
  613. return true;
  614. }
  615. public Builder mergeFrom(
  616. com.google.protobuf.CodedInputStream input,
  617. com.google.protobuf.ExtensionRegistryLite extensionRegistry)
  618. throws java.io.IOException {
  619. com.ywt.gapi.ordercenter.ICBCRefundNotifyRequest.SubOrder parsedMessage = null;
  620. try {
  621. parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
  622. } catch (com.google.protobuf.InvalidProtocolBufferException e) {
  623. parsedMessage = (com.ywt.gapi.ordercenter.ICBCRefundNotifyRequest.SubOrder) e.getUnfinishedMessage();
  624. throw e.unwrapIOException();
  625. } finally {
  626. if (parsedMessage != null) {
  627. mergeFrom(parsedMessage);
  628. }
  629. }
  630. return this;
  631. }
  632. private int refundFee_ ;
  633. /**
  634. * <pre>
  635. *单位:分
  636. * </pre>
  637. *
  638. * <code>int32 refundFee = 1;</code>
  639. */
  640. public int getRefundFee() {
  641. return refundFee_;
  642. }
  643. /**
  644. * <pre>
  645. *单位:分
  646. * </pre>
  647. *
  648. * <code>int32 refundFee = 1;</code>
  649. */
  650. public Builder setRefundFee(int value) {
  651. refundFee_ = value;
  652. onChanged();
  653. return this;
  654. }
  655. /**
  656. * <pre>
  657. *单位:分
  658. * </pre>
  659. *
  660. * <code>int32 refundFee = 1;</code>
  661. */
  662. public Builder clearRefundFee() {
  663. refundFee_ = 0;
  664. onChanged();
  665. return this;
  666. }
  667. private int orderId_ ;
  668. /**
  669. * <pre>
  670. *订单ID
  671. * </pre>
  672. *
  673. * <code>int32 orderId = 2;</code>
  674. */
  675. public int getOrderId() {
  676. return orderId_;
  677. }
  678. /**
  679. * <pre>
  680. *订单ID
  681. * </pre>
  682. *
  683. * <code>int32 orderId = 2;</code>
  684. */
  685. public Builder setOrderId(int value) {
  686. orderId_ = value;
  687. onChanged();
  688. return this;
  689. }
  690. /**
  691. * <pre>
  692. *订单ID
  693. * </pre>
  694. *
  695. * <code>int32 orderId = 2;</code>
  696. */
  697. public Builder clearOrderId() {
  698. orderId_ = 0;
  699. onChanged();
  700. return this;
  701. }
  702. private java.lang.Object payCode_ = "";
  703. /**
  704. * <pre>
  705. *支付代码--支付中心统一编码
  706. * </pre>
  707. *
  708. * <code>string payCode = 3;</code>
  709. */
  710. public java.lang.String getPayCode() {
  711. java.lang.Object ref = payCode_;
  712. if (!(ref instanceof java.lang.String)) {
  713. com.google.protobuf.ByteString bs =
  714. (com.google.protobuf.ByteString) ref;
  715. java.lang.String s = bs.toStringUtf8();
  716. payCode_ = s;
  717. return s;
  718. } else {
  719. return (java.lang.String) ref;
  720. }
  721. }
  722. /**
  723. * <pre>
  724. *支付代码--支付中心统一编码
  725. * </pre>
  726. *
  727. * <code>string payCode = 3;</code>
  728. */
  729. public com.google.protobuf.ByteString
  730. getPayCodeBytes() {
  731. java.lang.Object ref = payCode_;
  732. if (ref instanceof String) {
  733. com.google.protobuf.ByteString b =
  734. com.google.protobuf.ByteString.copyFromUtf8(
  735. (java.lang.String) ref);
  736. payCode_ = b;
  737. return b;
  738. } else {
  739. return (com.google.protobuf.ByteString) ref;
  740. }
  741. }
  742. /**
  743. * <pre>
  744. *支付代码--支付中心统一编码
  745. * </pre>
  746. *
  747. * <code>string payCode = 3;</code>
  748. */
  749. public Builder setPayCode(
  750. java.lang.String value) {
  751. if (value == null) {
  752. throw new NullPointerException();
  753. }
  754. payCode_ = value;
  755. onChanged();
  756. return this;
  757. }
  758. /**
  759. * <pre>
  760. *支付代码--支付中心统一编码
  761. * </pre>
  762. *
  763. * <code>string payCode = 3;</code>
  764. */
  765. public Builder clearPayCode() {
  766. payCode_ = getDefaultInstance().getPayCode();
  767. onChanged();
  768. return this;
  769. }
  770. /**
  771. * <pre>
  772. *支付代码--支付中心统一编码
  773. * </pre>
  774. *
  775. * <code>string payCode = 3;</code>
  776. */
  777. public Builder setPayCodeBytes(
  778. com.google.protobuf.ByteString value) {
  779. if (value == null) {
  780. throw new NullPointerException();
  781. }
  782. checkByteStringIsUtf8(value);
  783. payCode_ = value;
  784. onChanged();
  785. return this;
  786. }
  787. private int orderRefundLogId_ ;
  788. /**
  789. * <pre>
  790. *退款日志ID
  791. * </pre>
  792. *
  793. * <code>int32 orderRefundLogId = 4;</code>
  794. */
  795. public int getOrderRefundLogId() {
  796. return orderRefundLogId_;
  797. }
  798. /**
  799. * <pre>
  800. *退款日志ID
  801. * </pre>
  802. *
  803. * <code>int32 orderRefundLogId = 4;</code>
  804. */
  805. public Builder setOrderRefundLogId(int value) {
  806. orderRefundLogId_ = value;
  807. onChanged();
  808. return this;
  809. }
  810. /**
  811. * <pre>
  812. *退款日志ID
  813. * </pre>
  814. *
  815. * <code>int32 orderRefundLogId = 4;</code>
  816. */
  817. public Builder clearOrderRefundLogId() {
  818. orderRefundLogId_ = 0;
  819. onChanged();
  820. return this;
  821. }
  822. public final Builder setUnknownFields(
  823. final com.google.protobuf.UnknownFieldSet unknownFields) {
  824. return this;
  825. }
  826. public final Builder mergeUnknownFields(
  827. final com.google.protobuf.UnknownFieldSet unknownFields) {
  828. return this;
  829. }
  830. // @@protoc_insertion_point(builder_scope:com.ywt.gapi.ordercenter.ICBCRefundNotifyRequest.SubOrder)
  831. }
  832. // @@protoc_insertion_point(class_scope:com.ywt.gapi.ordercenter.ICBCRefundNotifyRequest.SubOrder)
  833. private static final com.ywt.gapi.ordercenter.ICBCRefundNotifyRequest.SubOrder DEFAULT_INSTANCE;
  834. static {
  835. DEFAULT_INSTANCE = new com.ywt.gapi.ordercenter.ICBCRefundNotifyRequest.SubOrder();
  836. }
  837. public static com.ywt.gapi.ordercenter.ICBCRefundNotifyRequest.SubOrder getDefaultInstance() {
  838. return DEFAULT_INSTANCE;
  839. }
  840. private static final com.google.protobuf.Parser<SubOrder>
  841. PARSER = new com.google.protobuf.AbstractParser<SubOrder>() {
  842. public SubOrder parsePartialFrom(
  843. com.google.protobuf.CodedInputStream input,
  844. com.google.protobuf.ExtensionRegistryLite extensionRegistry)
  845. throws com.google.protobuf.InvalidProtocolBufferException {
  846. return new SubOrder(input, extensionRegistry);
  847. }
  848. };
  849. public static com.google.protobuf.Parser<SubOrder> parser() {
  850. return PARSER;
  851. }
  852. @java.lang.Override
  853. public com.google.protobuf.Parser<SubOrder> getParserForType() {
  854. return PARSER;
  855. }
  856. public com.ywt.gapi.ordercenter.ICBCRefundNotifyRequest.SubOrder getDefaultInstanceForType() {
  857. return DEFAULT_INSTANCE;
  858. }
  859. }
  860. private int bitField0_;
  861. public static final int REFUNDNO_FIELD_NUMBER = 1;
  862. private volatile java.lang.Object refundNo_;
  863. /**
  864. * <pre>
  865. *商户退款单号
  866. * </pre>
  867. *
  868. * <code>string refundNo = 1;</code>
  869. */
  870. public java.lang.String getRefundNo() {
  871. java.lang.Object ref = refundNo_;
  872. if (ref instanceof java.lang.String) {
  873. return (java.lang.String) ref;
  874. } else {
  875. com.google.protobuf.ByteString bs =
  876. (com.google.protobuf.ByteString) ref;
  877. java.lang.String s = bs.toStringUtf8();
  878. refundNo_ = s;
  879. return s;
  880. }
  881. }
  882. /**
  883. * <pre>
  884. *商户退款单号
  885. * </pre>
  886. *
  887. * <code>string refundNo = 1;</code>
  888. */
  889. public com.google.protobuf.ByteString
  890. getRefundNoBytes() {
  891. java.lang.Object ref = refundNo_;
  892. if (ref instanceof java.lang.String) {
  893. com.google.protobuf.ByteString b =
  894. com.google.protobuf.ByteString.copyFromUtf8(
  895. (java.lang.String) ref);
  896. refundNo_ = b;
  897. return b;
  898. } else {
  899. return (com.google.protobuf.ByteString) ref;
  900. }
  901. }
  902. public static final int OUTTRADENO_FIELD_NUMBER = 2;
  903. private volatile java.lang.Object outTradeNo_;
  904. /**
  905. * <pre>
  906. *商户订单号
  907. * </pre>
  908. *
  909. * <code>string outTradeNo = 2;</code>
  910. */
  911. public java.lang.String getOutTradeNo() {
  912. java.lang.Object ref = outTradeNo_;
  913. if (ref instanceof java.lang.String) {
  914. return (java.lang.String) ref;
  915. } else {
  916. com.google.protobuf.ByteString bs =
  917. (com.google.protobuf.ByteString) ref;
  918. java.lang.String s = bs.toStringUtf8();
  919. outTradeNo_ = s;
  920. return s;
  921. }
  922. }
  923. /**
  924. * <pre>
  925. *商户订单号
  926. * </pre>
  927. *
  928. * <code>string outTradeNo = 2;</code>
  929. */
  930. public com.google.protobuf.ByteString
  931. getOutTradeNoBytes() {
  932. java.lang.Object ref = outTradeNo_;
  933. if (ref instanceof java.lang.String) {
  934. com.google.protobuf.ByteString b =
  935. com.google.protobuf.ByteString.copyFromUtf8(
  936. (java.lang.String) ref);
  937. outTradeNo_ = b;
  938. return b;
  939. } else {
  940. return (com.google.protobuf.ByteString) ref;
  941. }
  942. }
  943. public static final int REFUNDDATE_FIELD_NUMBER = 3;
  944. private long refundDate_;
  945. /**
  946. * <pre>
  947. *申请退款时间, 时间戳: 秒
  948. * </pre>
  949. *
  950. * <code>int64 refundDate = 3;</code>
  951. */
  952. public long getRefundDate() {
  953. return refundDate_;
  954. }
  955. public static final int REFUNDFINISHDATE_FIELD_NUMBER = 4;
  956. private long refundFinishDate_;
  957. /**
  958. * <pre>
  959. *退款处理完成时间, 时间戳: 秒
  960. * </pre>
  961. *
  962. * <code>int64 refundFinishDate = 4;</code>
  963. */
  964. public long getRefundFinishDate() {
  965. return refundFinishDate_;
  966. }
  967. public static final int REFUNDSUCCESSTIME_FIELD_NUMBER = 5;
  968. private long refundSuccessTime_;
  969. /**
  970. * <pre>
  971. *退款成功时间, 时间戳: 秒
  972. * </pre>
  973. *
  974. * <code>int64 refundSuccessTime = 5;</code>
  975. */
  976. public long getRefundSuccessTime() {
  977. return refundSuccessTime_;
  978. }
  979. public static final int REFUNDFEE_FIELD_NUMBER = 6;
  980. private int refundFee_;
  981. /**
  982. * <pre>
  983. *工行退款金额,单位为分
  984. * </pre>
  985. *
  986. * <code>int32 refundFee = 6;</code>
  987. */
  988. public int getRefundFee() {
  989. return refundFee_;
  990. }
  991. public static final int REFUNDSTATUS_FIELD_NUMBER = 7;
  992. private int refundStatus_;
  993. /**
  994. * <pre>
  995. *退款状态 1: 退款成功,2: 退款异常,3: 退款关闭
  996. * </pre>
  997. *
  998. * <code>int32 refundStatus = 7;</code>
  999. */
  1000. public int getRefundStatus() {
  1001. return refundStatus_;
  1002. }
  1003. public static final int SUBORDERLIST_FIELD_NUMBER = 8;
  1004. private java.util.List<com.ywt.gapi.ordercenter.ICBCRefundNotifyRequest.SubOrder> subOrderList_;
  1005. /**
  1006. * <code>repeated .com.ywt.gapi.ordercenter.ICBCRefundNotifyRequest.SubOrder subOrderList = 8;</code>
  1007. */
  1008. public java.util.List<com.ywt.gapi.ordercenter.ICBCRefundNotifyRequest.SubOrder> getSubOrderListList() {
  1009. return subOrderList_;
  1010. }
  1011. /**
  1012. * <code>repeated .com.ywt.gapi.ordercenter.ICBCRefundNotifyRequest.SubOrder subOrderList = 8;</code>
  1013. */
  1014. public java.util.List<? extends com.ywt.gapi.ordercenter.ICBCRefundNotifyRequest.SubOrderOrBuilder>
  1015. getSubOrderListOrBuilderList() {
  1016. return subOrderList_;
  1017. }
  1018. /**
  1019. * <code>repeated .com.ywt.gapi.ordercenter.ICBCRefundNotifyRequest.SubOrder subOrderList = 8;</code>
  1020. */
  1021. public int getSubOrderListCount() {
  1022. return subOrderList_.size();
  1023. }
  1024. /**
  1025. * <code>repeated .com.ywt.gapi.ordercenter.ICBCRefundNotifyRequest.SubOrder subOrderList = 8;</code>
  1026. */
  1027. public com.ywt.gapi.ordercenter.ICBCRefundNotifyRequest.SubOrder getSubOrderList(int index) {
  1028. return subOrderList_.get(index);
  1029. }
  1030. /**
  1031. * <code>repeated .com.ywt.gapi.ordercenter.ICBCRefundNotifyRequest.SubOrder subOrderList = 8;</code>
  1032. */
  1033. public com.ywt.gapi.ordercenter.ICBCRefundNotifyRequest.SubOrderOrBuilder getSubOrderListOrBuilder(
  1034. int index) {
  1035. return subOrderList_.get(index);
  1036. }
  1037. private byte memoizedIsInitialized = -1;
  1038. public final boolean isInitialized() {
  1039. byte isInitialized = memoizedIsInitialized;
  1040. if (isInitialized == 1) return true;
  1041. if (isInitialized == 0) return false;
  1042. memoizedIsInitialized = 1;
  1043. return true;
  1044. }
  1045. public void writeTo(com.google.protobuf.CodedOutputStream output)
  1046. throws java.io.IOException {
  1047. if (!getRefundNoBytes().isEmpty()) {
  1048. com.google.protobuf.GeneratedMessageV3.writeString(output, 1, refundNo_);
  1049. }
  1050. if (!getOutTradeNoBytes().isEmpty()) {
  1051. com.google.protobuf.GeneratedMessageV3.writeString(output, 2, outTradeNo_);
  1052. }
  1053. if (refundDate_ != 0L) {
  1054. output.writeInt64(3, refundDate_);
  1055. }
  1056. if (refundFinishDate_ != 0L) {
  1057. output.writeInt64(4, refundFinishDate_);
  1058. }
  1059. if (refundSuccessTime_ != 0L) {
  1060. output.writeInt64(5, refundSuccessTime_);
  1061. }
  1062. if (refundFee_ != 0) {
  1063. output.writeInt32(6, refundFee_);
  1064. }
  1065. if (refundStatus_ != 0) {
  1066. output.writeInt32(7, refundStatus_);
  1067. }
  1068. for (int i = 0; i < subOrderList_.size(); i++) {
  1069. output.writeMessage(8, subOrderList_.get(i));
  1070. }
  1071. }
  1072. public int getSerializedSize() {
  1073. int size = memoizedSize;
  1074. if (size != -1) return size;
  1075. size = 0;
  1076. if (!getRefundNoBytes().isEmpty()) {
  1077. size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, refundNo_);
  1078. }
  1079. if (!getOutTradeNoBytes().isEmpty()) {
  1080. size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, outTradeNo_);
  1081. }
  1082. if (refundDate_ != 0L) {
  1083. size += com.google.protobuf.CodedOutputStream
  1084. .computeInt64Size(3, refundDate_);
  1085. }
  1086. if (refundFinishDate_ != 0L) {
  1087. size += com.google.protobuf.CodedOutputStream
  1088. .computeInt64Size(4, refundFinishDate_);
  1089. }
  1090. if (refundSuccessTime_ != 0L) {
  1091. size += com.google.protobuf.CodedOutputStream
  1092. .computeInt64Size(5, refundSuccessTime_);
  1093. }
  1094. if (refundFee_ != 0) {
  1095. size += com.google.protobuf.CodedOutputStream
  1096. .computeInt32Size(6, refundFee_);
  1097. }
  1098. if (refundStatus_ != 0) {
  1099. size += com.google.protobuf.CodedOutputStream
  1100. .computeInt32Size(7, refundStatus_);
  1101. }
  1102. for (int i = 0; i < subOrderList_.size(); i++) {
  1103. size += com.google.protobuf.CodedOutputStream
  1104. .computeMessageSize(8, subOrderList_.get(i));
  1105. }
  1106. memoizedSize = size;
  1107. return size;
  1108. }
  1109. private static final long serialVersionUID = 0L;
  1110. @java.lang.Override
  1111. public boolean equals(final java.lang.Object obj) {
  1112. if (obj == this) {
  1113. return true;
  1114. }
  1115. if (!(obj instanceof com.ywt.gapi.ordercenter.ICBCRefundNotifyRequest)) {
  1116. return super.equals(obj);
  1117. }
  1118. com.ywt.gapi.ordercenter.ICBCRefundNotifyRequest other = (com.ywt.gapi.ordercenter.ICBCRefundNotifyRequest) obj;
  1119. boolean result = true;
  1120. result = result && getRefundNo()
  1121. .equals(other.getRefundNo());
  1122. result = result && getOutTradeNo()
  1123. .equals(other.getOutTradeNo());
  1124. result = result && (getRefundDate()
  1125. == other.getRefundDate());
  1126. result = result && (getRefundFinishDate()
  1127. == other.getRefundFinishDate());
  1128. result = result && (getRefundSuccessTime()
  1129. == other.getRefundSuccessTime());
  1130. result = result && (getRefundFee()
  1131. == other.getRefundFee());
  1132. result = result && (getRefundStatus()
  1133. == other.getRefundStatus());
  1134. result = result && getSubOrderListList()
  1135. .equals(other.getSubOrderListList());
  1136. return result;
  1137. }
  1138. @java.lang.Override
  1139. public int hashCode() {
  1140. if (memoizedHashCode != 0) {
  1141. return memoizedHashCode;
  1142. }
  1143. int hash = 41;
  1144. hash = (19 * hash) + getDescriptor().hashCode();
  1145. hash = (37 * hash) + REFUNDNO_FIELD_NUMBER;
  1146. hash = (53 * hash) + getRefundNo().hashCode();
  1147. hash = (37 * hash) + OUTTRADENO_FIELD_NUMBER;
  1148. hash = (53 * hash) + getOutTradeNo().hashCode();
  1149. hash = (37 * hash) + REFUNDDATE_FIELD_NUMBER;
  1150. hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
  1151. getRefundDate());
  1152. hash = (37 * hash) + REFUNDFINISHDATE_FIELD_NUMBER;
  1153. hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
  1154. getRefundFinishDate());
  1155. hash = (37 * hash) + REFUNDSUCCESSTIME_FIELD_NUMBER;
  1156. hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
  1157. getRefundSuccessTime());
  1158. hash = (37 * hash) + REFUNDFEE_FIELD_NUMBER;
  1159. hash = (53 * hash) + getRefundFee();
  1160. hash = (37 * hash) + REFUNDSTATUS_FIELD_NUMBER;
  1161. hash = (53 * hash) + getRefundStatus();
  1162. if (getSubOrderListCount() > 0) {
  1163. hash = (37 * hash) + SUBORDERLIST_FIELD_NUMBER;
  1164. hash = (53 * hash) + getSubOrderListList().hashCode();
  1165. }
  1166. hash = (29 * hash) + unknownFields.hashCode();
  1167. memoizedHashCode = hash;
  1168. return hash;
  1169. }
  1170. public static com.ywt.gapi.ordercenter.ICBCRefundNotifyRequest parseFrom(
  1171. java.nio.ByteBuffer data)
  1172. throws com.google.protobuf.InvalidProtocolBufferException {
  1173. return PARSER.parseFrom(data);
  1174. }
  1175. public static com.ywt.gapi.ordercenter.ICBCRefundNotifyRequest parseFrom(
  1176. java.nio.ByteBuffer data,
  1177. com.google.protobuf.ExtensionRegistryLite extensionRegistry)
  1178. throws com.google.protobuf.InvalidProtocolBufferException {
  1179. return PARSER.parseFrom(data, extensionRegistry);
  1180. }
  1181. public static com.ywt.gapi.ordercenter.ICBCRefundNotifyRequest parseFrom(
  1182. com.google.protobuf.ByteString data)
  1183. throws com.google.protobuf.InvalidProtocolBufferException {
  1184. return PARSER.parseFrom(data);
  1185. }
  1186. public static com.ywt.gapi.ordercenter.ICBCRefundNotifyRequest parseFrom(
  1187. com.google.protobuf.ByteString data,
  1188. com.google.protobuf.ExtensionRegistryLite extensionRegistry)
  1189. throws com.google.protobuf.InvalidProtocolBufferException {
  1190. return PARSER.parseFrom(data, extensionRegistry);
  1191. }
  1192. public static com.ywt.gapi.ordercenter.ICBCRefundNotifyRequest parseFrom(byte[] data)
  1193. throws com.google.protobuf.InvalidProtocolBufferException {
  1194. return PARSER.parseFrom(data);
  1195. }
  1196. public static com.ywt.gapi.ordercenter.ICBCRefundNotifyRequest parseFrom(
  1197. byte[] data,
  1198. com.google.protobuf.ExtensionRegistryLite extensionRegistry)
  1199. throws com.google.protobuf.InvalidProtocolBufferException {
  1200. return PARSER.parseFrom(data, extensionRegistry);
  1201. }
  1202. public static com.ywt.gapi.ordercenter.ICBCRefundNotifyRequest parseFrom(java.io.InputStream input)
  1203. throws java.io.IOException {
  1204. return com.google.protobuf.GeneratedMessageV3
  1205. .parseWithIOException(PARSER, input);
  1206. }
  1207. public static com.ywt.gapi.ordercenter.ICBCRefundNotifyRequest parseFrom(
  1208. java.io.InputStream input,
  1209. com.google.protobuf.ExtensionRegistryLite extensionRegistry)
  1210. throws java.io.IOException {
  1211. return com.google.protobuf.GeneratedMessageV3
  1212. .parseWithIOException(PARSER, input, extensionRegistry);
  1213. }
  1214. public static com.ywt.gapi.ordercenter.ICBCRefundNotifyRequest parseDelimitedFrom(java.io.InputStream input)
  1215. throws java.io.IOException {
  1216. return com.google.protobuf.GeneratedMessageV3
  1217. .parseDelimitedWithIOException(PARSER, input);
  1218. }
  1219. public static com.ywt.gapi.ordercenter.ICBCRefundNotifyRequest parseDelimitedFrom(
  1220. java.io.InputStream input,
  1221. com.google.protobuf.ExtensionRegistryLite extensionRegistry)
  1222. throws java.io.IOException {
  1223. return com.google.protobuf.GeneratedMessageV3
  1224. .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
  1225. }
  1226. public static com.ywt.gapi.ordercenter.ICBCRefundNotifyRequest parseFrom(
  1227. com.google.protobuf.CodedInputStream input)
  1228. throws java.io.IOException {
  1229. return com.google.protobuf.GeneratedMessageV3
  1230. .parseWithIOException(PARSER, input);
  1231. }
  1232. public static com.ywt.gapi.ordercenter.ICBCRefundNotifyRequest parseFrom(
  1233. com.google.protobuf.CodedInputStream input,
  1234. com.google.protobuf.ExtensionRegistryLite extensionRegistry)
  1235. throws java.io.IOException {
  1236. return com.google.protobuf.GeneratedMessageV3
  1237. .parseWithIOException(PARSER, input, extensionRegistry);
  1238. }
  1239. public Builder newBuilderForType() { return newBuilder(); }
  1240. public static Builder newBuilder() {
  1241. return DEFAULT_INSTANCE.toBuilder();
  1242. }
  1243. public static Builder newBuilder(com.ywt.gapi.ordercenter.ICBCRefundNotifyRequest prototype) {
  1244. return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
  1245. }
  1246. public Builder toBuilder() {
  1247. return this == DEFAULT_INSTANCE
  1248. ? new Builder() : new Builder().mergeFrom(this);
  1249. }
  1250. @java.lang.Override
  1251. protected Builder newBuilderForType(
  1252. com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
  1253. Builder builder = new Builder(parent);
  1254. return builder;
  1255. }
  1256. /**
  1257. * <pre>
  1258. *ICBC退款结果通知请求消息
  1259. * </pre>
  1260. *
  1261. * Protobuf type {@code com.ywt.gapi.ordercenter.ICBCRefundNotifyRequest}
  1262. */
  1263. public static final class Builder extends
  1264. com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements
  1265. // @@protoc_insertion_point(builder_implements:com.ywt.gapi.ordercenter.ICBCRefundNotifyRequest)
  1266. com.ywt.gapi.ordercenter.ICBCRefundNotifyRequestOrBuilder {
  1267. public static final com.google.protobuf.Descriptors.Descriptor
  1268. getDescriptor() {
  1269. return com.ywt.gapi.ordercenter.Ordercenter.internal_static_com_ywt_gapi_ordercenter_ICBCRefundNotifyRequest_descriptor;
  1270. }
  1271. protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
  1272. internalGetFieldAccessorTable() {
  1273. return com.ywt.gapi.ordercenter.Ordercenter.internal_static_com_ywt_gapi_ordercenter_ICBCRefundNotifyRequest_fieldAccessorTable
  1274. .ensureFieldAccessorsInitialized(
  1275. com.ywt.gapi.ordercenter.ICBCRefundNotifyRequest.class, com.ywt.gapi.ordercenter.ICBCRefundNotifyRequest.Builder.class);
  1276. }
  1277. // Construct using com.ywt.gapi.ordercenter.ICBCRefundNotifyRequest.newBuilder()
  1278. private Builder() {
  1279. maybeForceBuilderInitialization();
  1280. }
  1281. private Builder(
  1282. com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
  1283. super(parent);
  1284. maybeForceBuilderInitialization();
  1285. }
  1286. private void maybeForceBuilderInitialization() {
  1287. if (com.google.protobuf.GeneratedMessageV3
  1288. .alwaysUseFieldBuilders) {
  1289. getSubOrderListFieldBuilder();
  1290. }
  1291. }
  1292. public Builder clear() {
  1293. super.clear();
  1294. refundNo_ = "";
  1295. outTradeNo_ = "";
  1296. refundDate_ = 0L;
  1297. refundFinishDate_ = 0L;
  1298. refundSuccessTime_ = 0L;
  1299. refundFee_ = 0;
  1300. refundStatus_ = 0;
  1301. if (subOrderListBuilder_ == null) {
  1302. subOrderList_ = java.util.Collections.emptyList();
  1303. bitField0_ = (bitField0_ & ~0x00000080);
  1304. } else {
  1305. subOrderListBuilder_.clear();
  1306. }
  1307. return this;
  1308. }
  1309. public com.google.protobuf.Descriptors.Descriptor
  1310. getDescriptorForType() {
  1311. return com.ywt.gapi.ordercenter.Ordercenter.internal_static_com_ywt_gapi_ordercenter_ICBCRefundNotifyRequest_descriptor;
  1312. }
  1313. public com.ywt.gapi.ordercenter.ICBCRefundNotifyRequest getDefaultInstanceForType() {
  1314. return com.ywt.gapi.ordercenter.ICBCRefundNotifyRequest.getDefaultInstance();
  1315. }
  1316. public com.ywt.gapi.ordercenter.ICBCRefundNotifyRequest build() {
  1317. com.ywt.gapi.ordercenter.ICBCRefundNotifyRequest result = buildPartial();
  1318. if (!result.isInitialized()) {
  1319. throw newUninitializedMessageException(result);
  1320. }
  1321. return result;
  1322. }
  1323. public com.ywt.gapi.ordercenter.ICBCRefundNotifyRequest buildPartial() {
  1324. com.ywt.gapi.ordercenter.ICBCRefundNotifyRequest result = new com.ywt.gapi.ordercenter.ICBCRefundNotifyRequest(this);
  1325. int from_bitField0_ = bitField0_;
  1326. int to_bitField0_ = 0;
  1327. result.refundNo_ = refundNo_;
  1328. result.outTradeNo_ = outTradeNo_;
  1329. result.refundDate_ = refundDate_;
  1330. result.refundFinishDate_ = refundFinishDate_;
  1331. result.refundSuccessTime_ = refundSuccessTime_;
  1332. result.refundFee_ = refundFee_;
  1333. result.refundStatus_ = refundStatus_;
  1334. if (subOrderListBuilder_ == null) {
  1335. if (((bitField0_ & 0x00000080) == 0x00000080)) {
  1336. subOrderList_ = java.util.Collections.unmodifiableList(subOrderList_);
  1337. bitField0_ = (bitField0_ & ~0x00000080);
  1338. }
  1339. result.subOrderList_ = subOrderList_;
  1340. } else {
  1341. result.subOrderList_ = subOrderListBuilder_.build();
  1342. }
  1343. result.bitField0_ = to_bitField0_;
  1344. onBuilt();
  1345. return result;
  1346. }
  1347. public Builder clone() {
  1348. return (Builder) super.clone();
  1349. }
  1350. public Builder setField(
  1351. com.google.protobuf.Descriptors.FieldDescriptor field,
  1352. Object value) {
  1353. return (Builder) super.setField(field, value);
  1354. }
  1355. public Builder clearField(
  1356. com.google.protobuf.Descriptors.FieldDescriptor field) {
  1357. return (Builder) super.clearField(field);
  1358. }
  1359. public Builder clearOneof(
  1360. com.google.protobuf.Descriptors.OneofDescriptor oneof) {
  1361. return (Builder) super.clearOneof(oneof);
  1362. }
  1363. public Builder setRepeatedField(
  1364. com.google.protobuf.Descriptors.FieldDescriptor field,
  1365. int index, Object value) {
  1366. return (Builder) super.setRepeatedField(field, index, value);
  1367. }
  1368. public Builder addRepeatedField(
  1369. com.google.protobuf.Descriptors.FieldDescriptor field,
  1370. Object value) {
  1371. return (Builder) super.addRepeatedField(field, value);
  1372. }
  1373. public Builder mergeFrom(com.google.protobuf.Message other) {
  1374. if (other instanceof com.ywt.gapi.ordercenter.ICBCRefundNotifyRequest) {
  1375. return mergeFrom((com.ywt.gapi.ordercenter.ICBCRefundNotifyRequest)other);
  1376. } else {
  1377. super.mergeFrom(other);
  1378. return this;
  1379. }
  1380. }
  1381. public Builder mergeFrom(com.ywt.gapi.ordercenter.ICBCRefundNotifyRequest other) {
  1382. if (other == com.ywt.gapi.ordercenter.ICBCRefundNotifyRequest.getDefaultInstance()) return this;
  1383. if (!other.getRefundNo().isEmpty()) {
  1384. refundNo_ = other.refundNo_;
  1385. onChanged();
  1386. }
  1387. if (!other.getOutTradeNo().isEmpty()) {
  1388. outTradeNo_ = other.outTradeNo_;
  1389. onChanged();
  1390. }
  1391. if (other.getRefundDate() != 0L) {
  1392. setRefundDate(other.getRefundDate());
  1393. }
  1394. if (other.getRefundFinishDate() != 0L) {
  1395. setRefundFinishDate(other.getRefundFinishDate());
  1396. }
  1397. if (other.getRefundSuccessTime() != 0L) {
  1398. setRefundSuccessTime(other.getRefundSuccessTime());
  1399. }
  1400. if (other.getRefundFee() != 0) {
  1401. setRefundFee(other.getRefundFee());
  1402. }
  1403. if (other.getRefundStatus() != 0) {
  1404. setRefundStatus(other.getRefundStatus());
  1405. }
  1406. if (subOrderListBuilder_ == null) {
  1407. if (!other.subOrderList_.isEmpty()) {
  1408. if (subOrderList_.isEmpty()) {
  1409. subOrderList_ = other.subOrderList_;
  1410. bitField0_ = (bitField0_ & ~0x00000080);
  1411. } else {
  1412. ensureSubOrderListIsMutable();
  1413. subOrderList_.addAll(other.subOrderList_);
  1414. }
  1415. onChanged();
  1416. }
  1417. } else {
  1418. if (!other.subOrderList_.isEmpty()) {
  1419. if (subOrderListBuilder_.isEmpty()) {
  1420. subOrderListBuilder_.dispose();
  1421. subOrderListBuilder_ = null;
  1422. subOrderList_ = other.subOrderList_;
  1423. bitField0_ = (bitField0_ & ~0x00000080);
  1424. subOrderListBuilder_ =
  1425. com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
  1426. getSubOrderListFieldBuilder() : null;
  1427. } else {
  1428. subOrderListBuilder_.addAllMessages(other.subOrderList_);
  1429. }
  1430. }
  1431. }
  1432. onChanged();
  1433. return this;
  1434. }
  1435. public final boolean isInitialized() {
  1436. return true;
  1437. }
  1438. public Builder mergeFrom(
  1439. com.google.protobuf.CodedInputStream input,
  1440. com.google.protobuf.ExtensionRegistryLite extensionRegistry)
  1441. throws java.io.IOException {
  1442. com.ywt.gapi.ordercenter.ICBCRefundNotifyRequest parsedMessage = null;
  1443. try {
  1444. parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
  1445. } catch (com.google.protobuf.InvalidProtocolBufferException e) {
  1446. parsedMessage = (com.ywt.gapi.ordercenter.ICBCRefundNotifyRequest) e.getUnfinishedMessage();
  1447. throw e.unwrapIOException();
  1448. } finally {
  1449. if (parsedMessage != null) {
  1450. mergeFrom(parsedMessage);
  1451. }
  1452. }
  1453. return this;
  1454. }
  1455. private int bitField0_;
  1456. private java.lang.Object refundNo_ = "";
  1457. /**
  1458. * <pre>
  1459. *商户退款单号
  1460. * </pre>
  1461. *
  1462. * <code>string refundNo = 1;</code>
  1463. */
  1464. public java.lang.String getRefundNo() {
  1465. java.lang.Object ref = refundNo_;
  1466. if (!(ref instanceof java.lang.String)) {
  1467. com.google.protobuf.ByteString bs =
  1468. (com.google.protobuf.ByteString) ref;
  1469. java.lang.String s = bs.toStringUtf8();
  1470. refundNo_ = s;
  1471. return s;
  1472. } else {
  1473. return (java.lang.String) ref;
  1474. }
  1475. }
  1476. /**
  1477. * <pre>
  1478. *商户退款单号
  1479. * </pre>
  1480. *
  1481. * <code>string refundNo = 1;</code>
  1482. */
  1483. public com.google.protobuf.ByteString
  1484. getRefundNoBytes() {
  1485. java.lang.Object ref = refundNo_;
  1486. if (ref instanceof String) {
  1487. com.google.protobuf.ByteString b =
  1488. com.google.protobuf.ByteString.copyFromUtf8(
  1489. (java.lang.String) ref);
  1490. refundNo_ = b;
  1491. return b;
  1492. } else {
  1493. return (com.google.protobuf.ByteString) ref;
  1494. }
  1495. }
  1496. /**
  1497. * <pre>
  1498. *商户退款单号
  1499. * </pre>
  1500. *
  1501. * <code>string refundNo = 1;</code>
  1502. */
  1503. public Builder setRefundNo(
  1504. java.lang.String value) {
  1505. if (value == null) {
  1506. throw new NullPointerException();
  1507. }
  1508. refundNo_ = value;
  1509. onChanged();
  1510. return this;
  1511. }
  1512. /**
  1513. * <pre>
  1514. *商户退款单号
  1515. * </pre>
  1516. *
  1517. * <code>string refundNo = 1;</code>
  1518. */
  1519. public Builder clearRefundNo() {
  1520. refundNo_ = getDefaultInstance().getRefundNo();
  1521. onChanged();
  1522. return this;
  1523. }
  1524. /**
  1525. * <pre>
  1526. *商户退款单号
  1527. * </pre>
  1528. *
  1529. * <code>string refundNo = 1;</code>
  1530. */
  1531. public Builder setRefundNoBytes(
  1532. com.google.protobuf.ByteString value) {
  1533. if (value == null) {
  1534. throw new NullPointerException();
  1535. }
  1536. checkByteStringIsUtf8(value);
  1537. refundNo_ = value;
  1538. onChanged();
  1539. return this;
  1540. }
  1541. private java.lang.Object outTradeNo_ = "";
  1542. /**
  1543. * <pre>
  1544. *商户订单号
  1545. * </pre>
  1546. *
  1547. * <code>string outTradeNo = 2;</code>
  1548. */
  1549. public java.lang.String getOutTradeNo() {
  1550. java.lang.Object ref = outTradeNo_;
  1551. if (!(ref instanceof java.lang.String)) {
  1552. com.google.protobuf.ByteString bs =
  1553. (com.google.protobuf.ByteString) ref;
  1554. java.lang.String s = bs.toStringUtf8();
  1555. outTradeNo_ = s;
  1556. return s;
  1557. } else {
  1558. return (java.lang.String) ref;
  1559. }
  1560. }
  1561. /**
  1562. * <pre>
  1563. *商户订单号
  1564. * </pre>
  1565. *
  1566. * <code>string outTradeNo = 2;</code>
  1567. */
  1568. public com.google.protobuf.ByteString
  1569. getOutTradeNoBytes() {
  1570. java.lang.Object ref = outTradeNo_;
  1571. if (ref instanceof String) {
  1572. com.google.protobuf.ByteString b =
  1573. com.google.protobuf.ByteString.copyFromUtf8(
  1574. (java.lang.String) ref);
  1575. outTradeNo_ = b;
  1576. return b;
  1577. } else {
  1578. return (com.google.protobuf.ByteString) ref;
  1579. }
  1580. }
  1581. /**
  1582. * <pre>
  1583. *商户订单号
  1584. * </pre>
  1585. *
  1586. * <code>string outTradeNo = 2;</code>
  1587. */
  1588. public Builder setOutTradeNo(
  1589. java.lang.String value) {
  1590. if (value == null) {
  1591. throw new NullPointerException();
  1592. }
  1593. outTradeNo_ = value;
  1594. onChanged();
  1595. return this;
  1596. }
  1597. /**
  1598. * <pre>
  1599. *商户订单号
  1600. * </pre>
  1601. *
  1602. * <code>string outTradeNo = 2;</code>
  1603. */
  1604. public Builder clearOutTradeNo() {
  1605. outTradeNo_ = getDefaultInstance().getOutTradeNo();
  1606. onChanged();
  1607. return this;
  1608. }
  1609. /**
  1610. * <pre>
  1611. *商户订单号
  1612. * </pre>
  1613. *
  1614. * <code>string outTradeNo = 2;</code>
  1615. */
  1616. public Builder setOutTradeNoBytes(
  1617. com.google.protobuf.ByteString value) {
  1618. if (value == null) {
  1619. throw new NullPointerException();
  1620. }
  1621. checkByteStringIsUtf8(value);
  1622. outTradeNo_ = value;
  1623. onChanged();
  1624. return this;
  1625. }
  1626. private long refundDate_ ;
  1627. /**
  1628. * <pre>
  1629. *申请退款时间, 时间戳: 秒
  1630. * </pre>
  1631. *
  1632. * <code>int64 refundDate = 3;</code>
  1633. */
  1634. public long getRefundDate() {
  1635. return refundDate_;
  1636. }
  1637. /**
  1638. * <pre>
  1639. *申请退款时间, 时间戳: 秒
  1640. * </pre>
  1641. *
  1642. * <code>int64 refundDate = 3;</code>
  1643. */
  1644. public Builder setRefundDate(long value) {
  1645. refundDate_ = value;
  1646. onChanged();
  1647. return this;
  1648. }
  1649. /**
  1650. * <pre>
  1651. *申请退款时间, 时间戳: 秒
  1652. * </pre>
  1653. *
  1654. * <code>int64 refundDate = 3;</code>
  1655. */
  1656. public Builder clearRefundDate() {
  1657. refundDate_ = 0L;
  1658. onChanged();
  1659. return this;
  1660. }
  1661. private long refundFinishDate_ ;
  1662. /**
  1663. * <pre>
  1664. *退款处理完成时间, 时间戳: 秒
  1665. * </pre>
  1666. *
  1667. * <code>int64 refundFinishDate = 4;</code>
  1668. */
  1669. public long getRefundFinishDate() {
  1670. return refundFinishDate_;
  1671. }
  1672. /**
  1673. * <pre>
  1674. *退款处理完成时间, 时间戳: 秒
  1675. * </pre>
  1676. *
  1677. * <code>int64 refundFinishDate = 4;</code>
  1678. */
  1679. public Builder setRefundFinishDate(long value) {
  1680. refundFinishDate_ = value;
  1681. onChanged();
  1682. return this;
  1683. }
  1684. /**
  1685. * <pre>
  1686. *退款处理完成时间, 时间戳: 秒
  1687. * </pre>
  1688. *
  1689. * <code>int64 refundFinishDate = 4;</code>
  1690. */
  1691. public Builder clearRefundFinishDate() {
  1692. refundFinishDate_ = 0L;
  1693. onChanged();
  1694. return this;
  1695. }
  1696. private long refundSuccessTime_ ;
  1697. /**
  1698. * <pre>
  1699. *退款成功时间, 时间戳: 秒
  1700. * </pre>
  1701. *
  1702. * <code>int64 refundSuccessTime = 5;</code>
  1703. */
  1704. public long getRefundSuccessTime() {
  1705. return refundSuccessTime_;
  1706. }
  1707. /**
  1708. * <pre>
  1709. *退款成功时间, 时间戳: 秒
  1710. * </pre>
  1711. *
  1712. * <code>int64 refundSuccessTime = 5;</code>
  1713. */
  1714. public Builder setRefundSuccessTime(long value) {
  1715. refundSuccessTime_ = value;
  1716. onChanged();
  1717. return this;
  1718. }
  1719. /**
  1720. * <pre>
  1721. *退款成功时间, 时间戳: 秒
  1722. * </pre>
  1723. *
  1724. * <code>int64 refundSuccessTime = 5;</code>
  1725. */
  1726. public Builder clearRefundSuccessTime() {
  1727. refundSuccessTime_ = 0L;
  1728. onChanged();
  1729. return this;
  1730. }
  1731. private int refundFee_ ;
  1732. /**
  1733. * <pre>
  1734. *工行退款金额,单位为分
  1735. * </pre>
  1736. *
  1737. * <code>int32 refundFee = 6;</code>
  1738. */
  1739. public int getRefundFee() {
  1740. return refundFee_;
  1741. }
  1742. /**
  1743. * <pre>
  1744. *工行退款金额,单位为分
  1745. * </pre>
  1746. *
  1747. * <code>int32 refundFee = 6;</code>
  1748. */
  1749. public Builder setRefundFee(int value) {
  1750. refundFee_ = value;
  1751. onChanged();
  1752. return this;
  1753. }
  1754. /**
  1755. * <pre>
  1756. *工行退款金额,单位为分
  1757. * </pre>
  1758. *
  1759. * <code>int32 refundFee = 6;</code>
  1760. */
  1761. public Builder clearRefundFee() {
  1762. refundFee_ = 0;
  1763. onChanged();
  1764. return this;
  1765. }
  1766. private int refundStatus_ ;
  1767. /**
  1768. * <pre>
  1769. *退款状态 1: 退款成功,2: 退款异常,3: 退款关闭
  1770. * </pre>
  1771. *
  1772. * <code>int32 refundStatus = 7;</code>
  1773. */
  1774. public int getRefundStatus() {
  1775. return refundStatus_;
  1776. }
  1777. /**
  1778. * <pre>
  1779. *退款状态 1: 退款成功,2: 退款异常,3: 退款关闭
  1780. * </pre>
  1781. *
  1782. * <code>int32 refundStatus = 7;</code>
  1783. */
  1784. public Builder setRefundStatus(int value) {
  1785. refundStatus_ = value;
  1786. onChanged();
  1787. return this;
  1788. }
  1789. /**
  1790. * <pre>
  1791. *退款状态 1: 退款成功,2: 退款异常,3: 退款关闭
  1792. * </pre>
  1793. *
  1794. * <code>int32 refundStatus = 7;</code>
  1795. */
  1796. public Builder clearRefundStatus() {
  1797. refundStatus_ = 0;
  1798. onChanged();
  1799. return this;
  1800. }
  1801. private java.util.List<com.ywt.gapi.ordercenter.ICBCRefundNotifyRequest.SubOrder> subOrderList_ =
  1802. java.util.Collections.emptyList();
  1803. private void ensureSubOrderListIsMutable() {
  1804. if (!((bitField0_ & 0x00000080) == 0x00000080)) {
  1805. subOrderList_ = new java.util.ArrayList<com.ywt.gapi.ordercenter.ICBCRefundNotifyRequest.SubOrder>(subOrderList_);
  1806. bitField0_ |= 0x00000080;
  1807. }
  1808. }
  1809. private com.google.protobuf.RepeatedFieldBuilderV3<
  1810. com.ywt.gapi.ordercenter.ICBCRefundNotifyRequest.SubOrder, com.ywt.gapi.ordercenter.ICBCRefundNotifyRequest.SubOrder.Builder, com.ywt.gapi.ordercenter.ICBCRefundNotifyRequest.SubOrderOrBuilder> subOrderListBuilder_;
  1811. /**
  1812. * <code>repeated .com.ywt.gapi.ordercenter.ICBCRefundNotifyRequest.SubOrder subOrderList = 8;</code>
  1813. */
  1814. public java.util.List<com.ywt.gapi.ordercenter.ICBCRefundNotifyRequest.SubOrder> getSubOrderListList() {
  1815. if (subOrderListBuilder_ == null) {
  1816. return java.util.Collections.unmodifiableList(subOrderList_);
  1817. } else {
  1818. return subOrderListBuilder_.getMessageList();
  1819. }
  1820. }
  1821. /**
  1822. * <code>repeated .com.ywt.gapi.ordercenter.ICBCRefundNotifyRequest.SubOrder subOrderList = 8;</code>
  1823. */
  1824. public int getSubOrderListCount() {
  1825. if (subOrderListBuilder_ == null) {
  1826. return subOrderList_.size();
  1827. } else {
  1828. return subOrderListBuilder_.getCount();
  1829. }
  1830. }
  1831. /**
  1832. * <code>repeated .com.ywt.gapi.ordercenter.ICBCRefundNotifyRequest.SubOrder subOrderList = 8;</code>
  1833. */
  1834. public com.ywt.gapi.ordercenter.ICBCRefundNotifyRequest.SubOrder getSubOrderList(int index) {
  1835. if (subOrderListBuilder_ == null) {
  1836. return subOrderList_.get(index);
  1837. } else {
  1838. return subOrderListBuilder_.getMessage(index);
  1839. }
  1840. }
  1841. /**
  1842. * <code>repeated .com.ywt.gapi.ordercenter.ICBCRefundNotifyRequest.SubOrder subOrderList = 8;</code>
  1843. */
  1844. public Builder setSubOrderList(
  1845. int index, com.ywt.gapi.ordercenter.ICBCRefundNotifyRequest.SubOrder value) {
  1846. if (subOrderListBuilder_ == null) {
  1847. if (value == null) {
  1848. throw new NullPointerException();
  1849. }
  1850. ensureSubOrderListIsMutable();
  1851. subOrderList_.set(index, value);
  1852. onChanged();
  1853. } else {
  1854. subOrderListBuilder_.setMessage(index, value);
  1855. }
  1856. return this;
  1857. }
  1858. /**
  1859. * <code>repeated .com.ywt.gapi.ordercenter.ICBCRefundNotifyRequest.SubOrder subOrderList = 8;</code>
  1860. */
  1861. public Builder setSubOrderList(
  1862. int index, com.ywt.gapi.ordercenter.ICBCRefundNotifyRequest.SubOrder.Builder builderForValue) {
  1863. if (subOrderListBuilder_ == null) {
  1864. ensureSubOrderListIsMutable();
  1865. subOrderList_.set(index, builderForValue.build());
  1866. onChanged();
  1867. } else {
  1868. subOrderListBuilder_.setMessage(index, builderForValue.build());
  1869. }
  1870. return this;
  1871. }
  1872. /**
  1873. * <code>repeated .com.ywt.gapi.ordercenter.ICBCRefundNotifyRequest.SubOrder subOrderList = 8;</code>
  1874. */
  1875. public Builder addSubOrderList(com.ywt.gapi.ordercenter.ICBCRefundNotifyRequest.SubOrder value) {
  1876. if (subOrderListBuilder_ == null) {
  1877. if (value == null) {
  1878. throw new NullPointerException();
  1879. }
  1880. ensureSubOrderListIsMutable();
  1881. subOrderList_.add(value);
  1882. onChanged();
  1883. } else {
  1884. subOrderListBuilder_.addMessage(value);
  1885. }
  1886. return this;
  1887. }
  1888. /**
  1889. * <code>repeated .com.ywt.gapi.ordercenter.ICBCRefundNotifyRequest.SubOrder subOrderList = 8;</code>
  1890. */
  1891. public Builder addSubOrderList(
  1892. int index, com.ywt.gapi.ordercenter.ICBCRefundNotifyRequest.SubOrder value) {
  1893. if (subOrderListBuilder_ == null) {
  1894. if (value == null) {
  1895. throw new NullPointerException();
  1896. }
  1897. ensureSubOrderListIsMutable();
  1898. subOrderList_.add(index, value);
  1899. onChanged();
  1900. } else {
  1901. subOrderListBuilder_.addMessage(index, value);
  1902. }
  1903. return this;
  1904. }
  1905. /**
  1906. * <code>repeated .com.ywt.gapi.ordercenter.ICBCRefundNotifyRequest.SubOrder subOrderList = 8;</code>
  1907. */
  1908. public Builder addSubOrderList(
  1909. com.ywt.gapi.ordercenter.ICBCRefundNotifyRequest.SubOrder.Builder builderForValue) {
  1910. if (subOrderListBuilder_ == null) {
  1911. ensureSubOrderListIsMutable();
  1912. subOrderList_.add(builderForValue.build());
  1913. onChanged();
  1914. } else {
  1915. subOrderListBuilder_.addMessage(builderForValue.build());
  1916. }
  1917. return this;
  1918. }
  1919. /**
  1920. * <code>repeated .com.ywt.gapi.ordercenter.ICBCRefundNotifyRequest.SubOrder subOrderList = 8;</code>
  1921. */
  1922. public Builder addSubOrderList(
  1923. int index, com.ywt.gapi.ordercenter.ICBCRefundNotifyRequest.SubOrder.Builder builderForValue) {
  1924. if (subOrderListBuilder_ == null) {
  1925. ensureSubOrderListIsMutable();
  1926. subOrderList_.add(index, builderForValue.build());
  1927. onChanged();
  1928. } else {
  1929. subOrderListBuilder_.addMessage(index, builderForValue.build());
  1930. }
  1931. return this;
  1932. }
  1933. /**
  1934. * <code>repeated .com.ywt.gapi.ordercenter.ICBCRefundNotifyRequest.SubOrder subOrderList = 8;</code>
  1935. */
  1936. public Builder addAllSubOrderList(
  1937. java.lang.Iterable<? extends com.ywt.gapi.ordercenter.ICBCRefundNotifyRequest.SubOrder> values) {
  1938. if (subOrderListBuilder_ == null) {
  1939. ensureSubOrderListIsMutable();
  1940. com.google.protobuf.AbstractMessageLite.Builder.addAll(
  1941. values, subOrderList_);
  1942. onChanged();
  1943. } else {
  1944. subOrderListBuilder_.addAllMessages(values);
  1945. }
  1946. return this;
  1947. }
  1948. /**
  1949. * <code>repeated .com.ywt.gapi.ordercenter.ICBCRefundNotifyRequest.SubOrder subOrderList = 8;</code>
  1950. */
  1951. public Builder clearSubOrderList() {
  1952. if (subOrderListBuilder_ == null) {
  1953. subOrderList_ = java.util.Collections.emptyList();
  1954. bitField0_ = (bitField0_ & ~0x00000080);
  1955. onChanged();
  1956. } else {
  1957. subOrderListBuilder_.clear();
  1958. }
  1959. return this;
  1960. }
  1961. /**
  1962. * <code>repeated .com.ywt.gapi.ordercenter.ICBCRefundNotifyRequest.SubOrder subOrderList = 8;</code>
  1963. */
  1964. public Builder removeSubOrderList(int index) {
  1965. if (subOrderListBuilder_ == null) {
  1966. ensureSubOrderListIsMutable();
  1967. subOrderList_.remove(index);
  1968. onChanged();
  1969. } else {
  1970. subOrderListBuilder_.remove(index);
  1971. }
  1972. return this;
  1973. }
  1974. /**
  1975. * <code>repeated .com.ywt.gapi.ordercenter.ICBCRefundNotifyRequest.SubOrder subOrderList = 8;</code>
  1976. */
  1977. public com.ywt.gapi.ordercenter.ICBCRefundNotifyRequest.SubOrder.Builder getSubOrderListBuilder(
  1978. int index) {
  1979. return getSubOrderListFieldBuilder().getBuilder(index);
  1980. }
  1981. /**
  1982. * <code>repeated .com.ywt.gapi.ordercenter.ICBCRefundNotifyRequest.SubOrder subOrderList = 8;</code>
  1983. */
  1984. public com.ywt.gapi.ordercenter.ICBCRefundNotifyRequest.SubOrderOrBuilder getSubOrderListOrBuilder(
  1985. int index) {
  1986. if (subOrderListBuilder_ == null) {
  1987. return subOrderList_.get(index); } else {
  1988. return subOrderListBuilder_.getMessageOrBuilder(index);
  1989. }
  1990. }
  1991. /**
  1992. * <code>repeated .com.ywt.gapi.ordercenter.ICBCRefundNotifyRequest.SubOrder subOrderList = 8;</code>
  1993. */
  1994. public java.util.List<? extends com.ywt.gapi.ordercenter.ICBCRefundNotifyRequest.SubOrderOrBuilder>
  1995. getSubOrderListOrBuilderList() {
  1996. if (subOrderListBuilder_ != null) {
  1997. return subOrderListBuilder_.getMessageOrBuilderList();
  1998. } else {
  1999. return java.util.Collections.unmodifiableList(subOrderList_);
  2000. }
  2001. }
  2002. /**
  2003. * <code>repeated .com.ywt.gapi.ordercenter.ICBCRefundNotifyRequest.SubOrder subOrderList = 8;</code>
  2004. */
  2005. public com.ywt.gapi.ordercenter.ICBCRefundNotifyRequest.SubOrder.Builder addSubOrderListBuilder() {
  2006. return getSubOrderListFieldBuilder().addBuilder(
  2007. com.ywt.gapi.ordercenter.ICBCRefundNotifyRequest.SubOrder.getDefaultInstance());
  2008. }
  2009. /**
  2010. * <code>repeated .com.ywt.gapi.ordercenter.ICBCRefundNotifyRequest.SubOrder subOrderList = 8;</code>
  2011. */
  2012. public com.ywt.gapi.ordercenter.ICBCRefundNotifyRequest.SubOrder.Builder addSubOrderListBuilder(
  2013. int index) {
  2014. return getSubOrderListFieldBuilder().addBuilder(
  2015. index, com.ywt.gapi.ordercenter.ICBCRefundNotifyRequest.SubOrder.getDefaultInstance());
  2016. }
  2017. /**
  2018. * <code>repeated .com.ywt.gapi.ordercenter.ICBCRefundNotifyRequest.SubOrder subOrderList = 8;</code>
  2019. */
  2020. public java.util.List<com.ywt.gapi.ordercenter.ICBCRefundNotifyRequest.SubOrder.Builder>
  2021. getSubOrderListBuilderList() {
  2022. return getSubOrderListFieldBuilder().getBuilderList();
  2023. }
  2024. private com.google.protobuf.RepeatedFieldBuilderV3<
  2025. com.ywt.gapi.ordercenter.ICBCRefundNotifyRequest.SubOrder, com.ywt.gapi.ordercenter.ICBCRefundNotifyRequest.SubOrder.Builder, com.ywt.gapi.ordercenter.ICBCRefundNotifyRequest.SubOrderOrBuilder>
  2026. getSubOrderListFieldBuilder() {
  2027. if (subOrderListBuilder_ == null) {
  2028. subOrderListBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
  2029. com.ywt.gapi.ordercenter.ICBCRefundNotifyRequest.SubOrder, com.ywt.gapi.ordercenter.ICBCRefundNotifyRequest.SubOrder.Builder, com.ywt.gapi.ordercenter.ICBCRefundNotifyRequest.SubOrderOrBuilder>(
  2030. subOrderList_,
  2031. ((bitField0_ & 0x00000080) == 0x00000080),
  2032. getParentForChildren(),
  2033. isClean());
  2034. subOrderList_ = null;
  2035. }
  2036. return subOrderListBuilder_;
  2037. }
  2038. public final Builder setUnknownFields(
  2039. final com.google.protobuf.UnknownFieldSet unknownFields) {
  2040. return this;
  2041. }
  2042. public final Builder mergeUnknownFields(
  2043. final com.google.protobuf.UnknownFieldSet unknownFields) {
  2044. return this;
  2045. }
  2046. // @@protoc_insertion_point(builder_scope:com.ywt.gapi.ordercenter.ICBCRefundNotifyRequest)
  2047. }
  2048. // @@protoc_insertion_point(class_scope:com.ywt.gapi.ordercenter.ICBCRefundNotifyRequest)
  2049. private static final com.ywt.gapi.ordercenter.ICBCRefundNotifyRequest DEFAULT_INSTANCE;
  2050. static {
  2051. DEFAULT_INSTANCE = new com.ywt.gapi.ordercenter.ICBCRefundNotifyRequest();
  2052. }
  2053. public static com.ywt.gapi.ordercenter.ICBCRefundNotifyRequest getDefaultInstance() {
  2054. return DEFAULT_INSTANCE;
  2055. }
  2056. private static final com.google.protobuf.Parser<ICBCRefundNotifyRequest>
  2057. PARSER = new com.google.protobuf.AbstractParser<ICBCRefundNotifyRequest>() {
  2058. public ICBCRefundNotifyRequest parsePartialFrom(
  2059. com.google.protobuf.CodedInputStream input,
  2060. com.google.protobuf.ExtensionRegistryLite extensionRegistry)
  2061. throws com.google.protobuf.InvalidProtocolBufferException {
  2062. return new ICBCRefundNotifyRequest(input, extensionRegistry);
  2063. }
  2064. };
  2065. public static com.google.protobuf.Parser<ICBCRefundNotifyRequest> parser() {
  2066. return PARSER;
  2067. }
  2068. @java.lang.Override
  2069. public com.google.protobuf.Parser<ICBCRefundNotifyRequest> getParserForType() {
  2070. return PARSER;
  2071. }
  2072. public com.ywt.gapi.ordercenter.ICBCRefundNotifyRequest getDefaultInstanceForType() {
  2073. return DEFAULT_INSTANCE;
  2074. }
  2075. }