CreateAlipayOrderResponse.java 27 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911
  1. // Generated by the protocol buffer compiler. DO NOT EDIT!
  2. // source: ordercenter.proto
  3. package com.ywt.gapi.ordercenter;
  4. /**
  5. * <pre>
  6. * 支付宝下单响应
  7. * </pre>
  8. *
  9. * Protobuf type {@code com.ywt.gapi.ordercenter.CreateAlipayOrderResponse}
  10. */
  11. public final class CreateAlipayOrderResponse extends
  12. com.google.protobuf.GeneratedMessageV3 implements
  13. // @@protoc_insertion_point(message_implements:com.ywt.gapi.ordercenter.CreateAlipayOrderResponse)
  14. CreateAlipayOrderResponseOrBuilder {
  15. // Use CreateAlipayOrderResponse.newBuilder() to construct.
  16. private CreateAlipayOrderResponse(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {
  17. super(builder);
  18. }
  19. private CreateAlipayOrderResponse() {
  20. code_ = 0;
  21. info_ = "";
  22. tradeNo_ = "";
  23. orderId_ = 0;
  24. orderNo_ = "";
  25. }
  26. @java.lang.Override
  27. public final com.google.protobuf.UnknownFieldSet
  28. getUnknownFields() {
  29. return com.google.protobuf.UnknownFieldSet.getDefaultInstance();
  30. }
  31. private CreateAlipayOrderResponse(
  32. com.google.protobuf.CodedInputStream input,
  33. com.google.protobuf.ExtensionRegistryLite extensionRegistry)
  34. throws com.google.protobuf.InvalidProtocolBufferException {
  35. this();
  36. int mutable_bitField0_ = 0;
  37. try {
  38. boolean done = false;
  39. while (!done) {
  40. int tag = input.readTag();
  41. switch (tag) {
  42. case 0:
  43. done = true;
  44. break;
  45. default: {
  46. if (!input.skipField(tag)) {
  47. done = true;
  48. }
  49. break;
  50. }
  51. case 8: {
  52. code_ = input.readInt32();
  53. break;
  54. }
  55. case 18: {
  56. java.lang.String s = input.readStringRequireUtf8();
  57. info_ = s;
  58. break;
  59. }
  60. case 26: {
  61. java.lang.String s = input.readStringRequireUtf8();
  62. tradeNo_ = s;
  63. break;
  64. }
  65. case 32: {
  66. orderId_ = input.readInt32();
  67. break;
  68. }
  69. case 42: {
  70. java.lang.String s = input.readStringRequireUtf8();
  71. orderNo_ = s;
  72. break;
  73. }
  74. }
  75. }
  76. } catch (com.google.protobuf.InvalidProtocolBufferException e) {
  77. throw e.setUnfinishedMessage(this);
  78. } catch (java.io.IOException e) {
  79. throw new com.google.protobuf.InvalidProtocolBufferException(
  80. e).setUnfinishedMessage(this);
  81. } finally {
  82. makeExtensionsImmutable();
  83. }
  84. }
  85. public static final com.google.protobuf.Descriptors.Descriptor
  86. getDescriptor() {
  87. return com.ywt.gapi.ordercenter.Ordercenter.internal_static_com_ywt_gapi_ordercenter_CreateAlipayOrderResponse_descriptor;
  88. }
  89. protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
  90. internalGetFieldAccessorTable() {
  91. return com.ywt.gapi.ordercenter.Ordercenter.internal_static_com_ywt_gapi_ordercenter_CreateAlipayOrderResponse_fieldAccessorTable
  92. .ensureFieldAccessorsInitialized(
  93. com.ywt.gapi.ordercenter.CreateAlipayOrderResponse.class, com.ywt.gapi.ordercenter.CreateAlipayOrderResponse.Builder.class);
  94. }
  95. public static final int CODE_FIELD_NUMBER = 1;
  96. private int code_;
  97. /**
  98. * <code>int32 code = 1;</code>
  99. */
  100. public int getCode() {
  101. return code_;
  102. }
  103. public static final int INFO_FIELD_NUMBER = 2;
  104. private volatile java.lang.Object info_;
  105. /**
  106. * <code>string info = 2;</code>
  107. */
  108. public java.lang.String getInfo() {
  109. java.lang.Object ref = info_;
  110. if (ref instanceof java.lang.String) {
  111. return (java.lang.String) ref;
  112. } else {
  113. com.google.protobuf.ByteString bs =
  114. (com.google.protobuf.ByteString) ref;
  115. java.lang.String s = bs.toStringUtf8();
  116. info_ = s;
  117. return s;
  118. }
  119. }
  120. /**
  121. * <code>string info = 2;</code>
  122. */
  123. public com.google.protobuf.ByteString
  124. getInfoBytes() {
  125. java.lang.Object ref = info_;
  126. if (ref instanceof java.lang.String) {
  127. com.google.protobuf.ByteString b =
  128. com.google.protobuf.ByteString.copyFromUtf8(
  129. (java.lang.String) ref);
  130. info_ = b;
  131. return b;
  132. } else {
  133. return (com.google.protobuf.ByteString) ref;
  134. }
  135. }
  136. public static final int TRADENO_FIELD_NUMBER = 3;
  137. private volatile java.lang.Object tradeNo_;
  138. /**
  139. * <pre>
  140. * 支付宝交易号
  141. * </pre>
  142. *
  143. * <code>string tradeNo = 3;</code>
  144. */
  145. public java.lang.String getTradeNo() {
  146. java.lang.Object ref = tradeNo_;
  147. if (ref instanceof java.lang.String) {
  148. return (java.lang.String) ref;
  149. } else {
  150. com.google.protobuf.ByteString bs =
  151. (com.google.protobuf.ByteString) ref;
  152. java.lang.String s = bs.toStringUtf8();
  153. tradeNo_ = s;
  154. return s;
  155. }
  156. }
  157. /**
  158. * <pre>
  159. * 支付宝交易号
  160. * </pre>
  161. *
  162. * <code>string tradeNo = 3;</code>
  163. */
  164. public com.google.protobuf.ByteString
  165. getTradeNoBytes() {
  166. java.lang.Object ref = tradeNo_;
  167. if (ref instanceof java.lang.String) {
  168. com.google.protobuf.ByteString b =
  169. com.google.protobuf.ByteString.copyFromUtf8(
  170. (java.lang.String) ref);
  171. tradeNo_ = b;
  172. return b;
  173. } else {
  174. return (com.google.protobuf.ByteString) ref;
  175. }
  176. }
  177. public static final int ORDERID_FIELD_NUMBER = 4;
  178. private int orderId_;
  179. /**
  180. * <code>int32 orderId = 4;</code>
  181. */
  182. public int getOrderId() {
  183. return orderId_;
  184. }
  185. public static final int ORDERNO_FIELD_NUMBER = 5;
  186. private volatile java.lang.Object orderNo_;
  187. /**
  188. * <code>string orderNo = 5;</code>
  189. */
  190. public java.lang.String getOrderNo() {
  191. java.lang.Object ref = orderNo_;
  192. if (ref instanceof java.lang.String) {
  193. return (java.lang.String) ref;
  194. } else {
  195. com.google.protobuf.ByteString bs =
  196. (com.google.protobuf.ByteString) ref;
  197. java.lang.String s = bs.toStringUtf8();
  198. orderNo_ = s;
  199. return s;
  200. }
  201. }
  202. /**
  203. * <code>string orderNo = 5;</code>
  204. */
  205. public com.google.protobuf.ByteString
  206. getOrderNoBytes() {
  207. java.lang.Object ref = orderNo_;
  208. if (ref instanceof java.lang.String) {
  209. com.google.protobuf.ByteString b =
  210. com.google.protobuf.ByteString.copyFromUtf8(
  211. (java.lang.String) ref);
  212. orderNo_ = b;
  213. return b;
  214. } else {
  215. return (com.google.protobuf.ByteString) ref;
  216. }
  217. }
  218. private byte memoizedIsInitialized = -1;
  219. public final boolean isInitialized() {
  220. byte isInitialized = memoizedIsInitialized;
  221. if (isInitialized == 1) return true;
  222. if (isInitialized == 0) return false;
  223. memoizedIsInitialized = 1;
  224. return true;
  225. }
  226. public void writeTo(com.google.protobuf.CodedOutputStream output)
  227. throws java.io.IOException {
  228. if (code_ != 0) {
  229. output.writeInt32(1, code_);
  230. }
  231. if (!getInfoBytes().isEmpty()) {
  232. com.google.protobuf.GeneratedMessageV3.writeString(output, 2, info_);
  233. }
  234. if (!getTradeNoBytes().isEmpty()) {
  235. com.google.protobuf.GeneratedMessageV3.writeString(output, 3, tradeNo_);
  236. }
  237. if (orderId_ != 0) {
  238. output.writeInt32(4, orderId_);
  239. }
  240. if (!getOrderNoBytes().isEmpty()) {
  241. com.google.protobuf.GeneratedMessageV3.writeString(output, 5, orderNo_);
  242. }
  243. }
  244. public int getSerializedSize() {
  245. int size = memoizedSize;
  246. if (size != -1) return size;
  247. size = 0;
  248. if (code_ != 0) {
  249. size += com.google.protobuf.CodedOutputStream
  250. .computeInt32Size(1, code_);
  251. }
  252. if (!getInfoBytes().isEmpty()) {
  253. size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, info_);
  254. }
  255. if (!getTradeNoBytes().isEmpty()) {
  256. size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, tradeNo_);
  257. }
  258. if (orderId_ != 0) {
  259. size += com.google.protobuf.CodedOutputStream
  260. .computeInt32Size(4, orderId_);
  261. }
  262. if (!getOrderNoBytes().isEmpty()) {
  263. size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, orderNo_);
  264. }
  265. memoizedSize = size;
  266. return size;
  267. }
  268. private static final long serialVersionUID = 0L;
  269. @java.lang.Override
  270. public boolean equals(final java.lang.Object obj) {
  271. if (obj == this) {
  272. return true;
  273. }
  274. if (!(obj instanceof com.ywt.gapi.ordercenter.CreateAlipayOrderResponse)) {
  275. return super.equals(obj);
  276. }
  277. com.ywt.gapi.ordercenter.CreateAlipayOrderResponse other = (com.ywt.gapi.ordercenter.CreateAlipayOrderResponse) obj;
  278. boolean result = true;
  279. result = result && (getCode()
  280. == other.getCode());
  281. result = result && getInfo()
  282. .equals(other.getInfo());
  283. result = result && getTradeNo()
  284. .equals(other.getTradeNo());
  285. result = result && (getOrderId()
  286. == other.getOrderId());
  287. result = result && getOrderNo()
  288. .equals(other.getOrderNo());
  289. return result;
  290. }
  291. @java.lang.Override
  292. public int hashCode() {
  293. if (memoizedHashCode != 0) {
  294. return memoizedHashCode;
  295. }
  296. int hash = 41;
  297. hash = (19 * hash) + getDescriptor().hashCode();
  298. hash = (37 * hash) + CODE_FIELD_NUMBER;
  299. hash = (53 * hash) + getCode();
  300. hash = (37 * hash) + INFO_FIELD_NUMBER;
  301. hash = (53 * hash) + getInfo().hashCode();
  302. hash = (37 * hash) + TRADENO_FIELD_NUMBER;
  303. hash = (53 * hash) + getTradeNo().hashCode();
  304. hash = (37 * hash) + ORDERID_FIELD_NUMBER;
  305. hash = (53 * hash) + getOrderId();
  306. hash = (37 * hash) + ORDERNO_FIELD_NUMBER;
  307. hash = (53 * hash) + getOrderNo().hashCode();
  308. hash = (29 * hash) + unknownFields.hashCode();
  309. memoizedHashCode = hash;
  310. return hash;
  311. }
  312. public static com.ywt.gapi.ordercenter.CreateAlipayOrderResponse parseFrom(
  313. java.nio.ByteBuffer data)
  314. throws com.google.protobuf.InvalidProtocolBufferException {
  315. return PARSER.parseFrom(data);
  316. }
  317. public static com.ywt.gapi.ordercenter.CreateAlipayOrderResponse parseFrom(
  318. java.nio.ByteBuffer data,
  319. com.google.protobuf.ExtensionRegistryLite extensionRegistry)
  320. throws com.google.protobuf.InvalidProtocolBufferException {
  321. return PARSER.parseFrom(data, extensionRegistry);
  322. }
  323. public static com.ywt.gapi.ordercenter.CreateAlipayOrderResponse parseFrom(
  324. com.google.protobuf.ByteString data)
  325. throws com.google.protobuf.InvalidProtocolBufferException {
  326. return PARSER.parseFrom(data);
  327. }
  328. public static com.ywt.gapi.ordercenter.CreateAlipayOrderResponse parseFrom(
  329. com.google.protobuf.ByteString data,
  330. com.google.protobuf.ExtensionRegistryLite extensionRegistry)
  331. throws com.google.protobuf.InvalidProtocolBufferException {
  332. return PARSER.parseFrom(data, extensionRegistry);
  333. }
  334. public static com.ywt.gapi.ordercenter.CreateAlipayOrderResponse parseFrom(byte[] data)
  335. throws com.google.protobuf.InvalidProtocolBufferException {
  336. return PARSER.parseFrom(data);
  337. }
  338. public static com.ywt.gapi.ordercenter.CreateAlipayOrderResponse parseFrom(
  339. byte[] data,
  340. com.google.protobuf.ExtensionRegistryLite extensionRegistry)
  341. throws com.google.protobuf.InvalidProtocolBufferException {
  342. return PARSER.parseFrom(data, extensionRegistry);
  343. }
  344. public static com.ywt.gapi.ordercenter.CreateAlipayOrderResponse parseFrom(java.io.InputStream input)
  345. throws java.io.IOException {
  346. return com.google.protobuf.GeneratedMessageV3
  347. .parseWithIOException(PARSER, input);
  348. }
  349. public static com.ywt.gapi.ordercenter.CreateAlipayOrderResponse parseFrom(
  350. java.io.InputStream input,
  351. com.google.protobuf.ExtensionRegistryLite extensionRegistry)
  352. throws java.io.IOException {
  353. return com.google.protobuf.GeneratedMessageV3
  354. .parseWithIOException(PARSER, input, extensionRegistry);
  355. }
  356. public static com.ywt.gapi.ordercenter.CreateAlipayOrderResponse parseDelimitedFrom(java.io.InputStream input)
  357. throws java.io.IOException {
  358. return com.google.protobuf.GeneratedMessageV3
  359. .parseDelimitedWithIOException(PARSER, input);
  360. }
  361. public static com.ywt.gapi.ordercenter.CreateAlipayOrderResponse parseDelimitedFrom(
  362. java.io.InputStream input,
  363. com.google.protobuf.ExtensionRegistryLite extensionRegistry)
  364. throws java.io.IOException {
  365. return com.google.protobuf.GeneratedMessageV3
  366. .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
  367. }
  368. public static com.ywt.gapi.ordercenter.CreateAlipayOrderResponse parseFrom(
  369. com.google.protobuf.CodedInputStream input)
  370. throws java.io.IOException {
  371. return com.google.protobuf.GeneratedMessageV3
  372. .parseWithIOException(PARSER, input);
  373. }
  374. public static com.ywt.gapi.ordercenter.CreateAlipayOrderResponse parseFrom(
  375. com.google.protobuf.CodedInputStream input,
  376. com.google.protobuf.ExtensionRegistryLite extensionRegistry)
  377. throws java.io.IOException {
  378. return com.google.protobuf.GeneratedMessageV3
  379. .parseWithIOException(PARSER, input, extensionRegistry);
  380. }
  381. public Builder newBuilderForType() { return newBuilder(); }
  382. public static Builder newBuilder() {
  383. return DEFAULT_INSTANCE.toBuilder();
  384. }
  385. public static Builder newBuilder(com.ywt.gapi.ordercenter.CreateAlipayOrderResponse prototype) {
  386. return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
  387. }
  388. public Builder toBuilder() {
  389. return this == DEFAULT_INSTANCE
  390. ? new Builder() : new Builder().mergeFrom(this);
  391. }
  392. @java.lang.Override
  393. protected Builder newBuilderForType(
  394. com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
  395. Builder builder = new Builder(parent);
  396. return builder;
  397. }
  398. /**
  399. * <pre>
  400. * 支付宝下单响应
  401. * </pre>
  402. *
  403. * Protobuf type {@code com.ywt.gapi.ordercenter.CreateAlipayOrderResponse}
  404. */
  405. public static final class Builder extends
  406. com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements
  407. // @@protoc_insertion_point(builder_implements:com.ywt.gapi.ordercenter.CreateAlipayOrderResponse)
  408. com.ywt.gapi.ordercenter.CreateAlipayOrderResponseOrBuilder {
  409. public static final com.google.protobuf.Descriptors.Descriptor
  410. getDescriptor() {
  411. return com.ywt.gapi.ordercenter.Ordercenter.internal_static_com_ywt_gapi_ordercenter_CreateAlipayOrderResponse_descriptor;
  412. }
  413. protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
  414. internalGetFieldAccessorTable() {
  415. return com.ywt.gapi.ordercenter.Ordercenter.internal_static_com_ywt_gapi_ordercenter_CreateAlipayOrderResponse_fieldAccessorTable
  416. .ensureFieldAccessorsInitialized(
  417. com.ywt.gapi.ordercenter.CreateAlipayOrderResponse.class, com.ywt.gapi.ordercenter.CreateAlipayOrderResponse.Builder.class);
  418. }
  419. // Construct using com.ywt.gapi.ordercenter.CreateAlipayOrderResponse.newBuilder()
  420. private Builder() {
  421. maybeForceBuilderInitialization();
  422. }
  423. private Builder(
  424. com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
  425. super(parent);
  426. maybeForceBuilderInitialization();
  427. }
  428. private void maybeForceBuilderInitialization() {
  429. if (com.google.protobuf.GeneratedMessageV3
  430. .alwaysUseFieldBuilders) {
  431. }
  432. }
  433. public Builder clear() {
  434. super.clear();
  435. code_ = 0;
  436. info_ = "";
  437. tradeNo_ = "";
  438. orderId_ = 0;
  439. orderNo_ = "";
  440. return this;
  441. }
  442. public com.google.protobuf.Descriptors.Descriptor
  443. getDescriptorForType() {
  444. return com.ywt.gapi.ordercenter.Ordercenter.internal_static_com_ywt_gapi_ordercenter_CreateAlipayOrderResponse_descriptor;
  445. }
  446. public com.ywt.gapi.ordercenter.CreateAlipayOrderResponse getDefaultInstanceForType() {
  447. return com.ywt.gapi.ordercenter.CreateAlipayOrderResponse.getDefaultInstance();
  448. }
  449. public com.ywt.gapi.ordercenter.CreateAlipayOrderResponse build() {
  450. com.ywt.gapi.ordercenter.CreateAlipayOrderResponse result = buildPartial();
  451. if (!result.isInitialized()) {
  452. throw newUninitializedMessageException(result);
  453. }
  454. return result;
  455. }
  456. public com.ywt.gapi.ordercenter.CreateAlipayOrderResponse buildPartial() {
  457. com.ywt.gapi.ordercenter.CreateAlipayOrderResponse result = new com.ywt.gapi.ordercenter.CreateAlipayOrderResponse(this);
  458. result.code_ = code_;
  459. result.info_ = info_;
  460. result.tradeNo_ = tradeNo_;
  461. result.orderId_ = orderId_;
  462. result.orderNo_ = orderNo_;
  463. onBuilt();
  464. return result;
  465. }
  466. public Builder clone() {
  467. return (Builder) super.clone();
  468. }
  469. public Builder setField(
  470. com.google.protobuf.Descriptors.FieldDescriptor field,
  471. Object value) {
  472. return (Builder) super.setField(field, value);
  473. }
  474. public Builder clearField(
  475. com.google.protobuf.Descriptors.FieldDescriptor field) {
  476. return (Builder) super.clearField(field);
  477. }
  478. public Builder clearOneof(
  479. com.google.protobuf.Descriptors.OneofDescriptor oneof) {
  480. return (Builder) super.clearOneof(oneof);
  481. }
  482. public Builder setRepeatedField(
  483. com.google.protobuf.Descriptors.FieldDescriptor field,
  484. int index, Object value) {
  485. return (Builder) super.setRepeatedField(field, index, value);
  486. }
  487. public Builder addRepeatedField(
  488. com.google.protobuf.Descriptors.FieldDescriptor field,
  489. Object value) {
  490. return (Builder) super.addRepeatedField(field, value);
  491. }
  492. public Builder mergeFrom(com.google.protobuf.Message other) {
  493. if (other instanceof com.ywt.gapi.ordercenter.CreateAlipayOrderResponse) {
  494. return mergeFrom((com.ywt.gapi.ordercenter.CreateAlipayOrderResponse)other);
  495. } else {
  496. super.mergeFrom(other);
  497. return this;
  498. }
  499. }
  500. public Builder mergeFrom(com.ywt.gapi.ordercenter.CreateAlipayOrderResponse other) {
  501. if (other == com.ywt.gapi.ordercenter.CreateAlipayOrderResponse.getDefaultInstance()) return this;
  502. if (other.getCode() != 0) {
  503. setCode(other.getCode());
  504. }
  505. if (!other.getInfo().isEmpty()) {
  506. info_ = other.info_;
  507. onChanged();
  508. }
  509. if (!other.getTradeNo().isEmpty()) {
  510. tradeNo_ = other.tradeNo_;
  511. onChanged();
  512. }
  513. if (other.getOrderId() != 0) {
  514. setOrderId(other.getOrderId());
  515. }
  516. if (!other.getOrderNo().isEmpty()) {
  517. orderNo_ = other.orderNo_;
  518. onChanged();
  519. }
  520. onChanged();
  521. return this;
  522. }
  523. public final boolean isInitialized() {
  524. return true;
  525. }
  526. public Builder mergeFrom(
  527. com.google.protobuf.CodedInputStream input,
  528. com.google.protobuf.ExtensionRegistryLite extensionRegistry)
  529. throws java.io.IOException {
  530. com.ywt.gapi.ordercenter.CreateAlipayOrderResponse parsedMessage = null;
  531. try {
  532. parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
  533. } catch (com.google.protobuf.InvalidProtocolBufferException e) {
  534. parsedMessage = (com.ywt.gapi.ordercenter.CreateAlipayOrderResponse) e.getUnfinishedMessage();
  535. throw e.unwrapIOException();
  536. } finally {
  537. if (parsedMessage != null) {
  538. mergeFrom(parsedMessage);
  539. }
  540. }
  541. return this;
  542. }
  543. private int code_ ;
  544. /**
  545. * <code>int32 code = 1;</code>
  546. */
  547. public int getCode() {
  548. return code_;
  549. }
  550. /**
  551. * <code>int32 code = 1;</code>
  552. */
  553. public Builder setCode(int value) {
  554. code_ = value;
  555. onChanged();
  556. return this;
  557. }
  558. /**
  559. * <code>int32 code = 1;</code>
  560. */
  561. public Builder clearCode() {
  562. code_ = 0;
  563. onChanged();
  564. return this;
  565. }
  566. private java.lang.Object info_ = "";
  567. /**
  568. * <code>string info = 2;</code>
  569. */
  570. public java.lang.String getInfo() {
  571. java.lang.Object ref = info_;
  572. if (!(ref instanceof java.lang.String)) {
  573. com.google.protobuf.ByteString bs =
  574. (com.google.protobuf.ByteString) ref;
  575. java.lang.String s = bs.toStringUtf8();
  576. info_ = s;
  577. return s;
  578. } else {
  579. return (java.lang.String) ref;
  580. }
  581. }
  582. /**
  583. * <code>string info = 2;</code>
  584. */
  585. public com.google.protobuf.ByteString
  586. getInfoBytes() {
  587. java.lang.Object ref = info_;
  588. if (ref instanceof String) {
  589. com.google.protobuf.ByteString b =
  590. com.google.protobuf.ByteString.copyFromUtf8(
  591. (java.lang.String) ref);
  592. info_ = b;
  593. return b;
  594. } else {
  595. return (com.google.protobuf.ByteString) ref;
  596. }
  597. }
  598. /**
  599. * <code>string info = 2;</code>
  600. */
  601. public Builder setInfo(
  602. java.lang.String value) {
  603. if (value == null) {
  604. throw new NullPointerException();
  605. }
  606. info_ = value;
  607. onChanged();
  608. return this;
  609. }
  610. /**
  611. * <code>string info = 2;</code>
  612. */
  613. public Builder clearInfo() {
  614. info_ = getDefaultInstance().getInfo();
  615. onChanged();
  616. return this;
  617. }
  618. /**
  619. * <code>string info = 2;</code>
  620. */
  621. public Builder setInfoBytes(
  622. com.google.protobuf.ByteString value) {
  623. if (value == null) {
  624. throw new NullPointerException();
  625. }
  626. checkByteStringIsUtf8(value);
  627. info_ = value;
  628. onChanged();
  629. return this;
  630. }
  631. private java.lang.Object tradeNo_ = "";
  632. /**
  633. * <pre>
  634. * 支付宝交易号
  635. * </pre>
  636. *
  637. * <code>string tradeNo = 3;</code>
  638. */
  639. public java.lang.String getTradeNo() {
  640. java.lang.Object ref = tradeNo_;
  641. if (!(ref instanceof java.lang.String)) {
  642. com.google.protobuf.ByteString bs =
  643. (com.google.protobuf.ByteString) ref;
  644. java.lang.String s = bs.toStringUtf8();
  645. tradeNo_ = s;
  646. return s;
  647. } else {
  648. return (java.lang.String) ref;
  649. }
  650. }
  651. /**
  652. * <pre>
  653. * 支付宝交易号
  654. * </pre>
  655. *
  656. * <code>string tradeNo = 3;</code>
  657. */
  658. public com.google.protobuf.ByteString
  659. getTradeNoBytes() {
  660. java.lang.Object ref = tradeNo_;
  661. if (ref instanceof String) {
  662. com.google.protobuf.ByteString b =
  663. com.google.protobuf.ByteString.copyFromUtf8(
  664. (java.lang.String) ref);
  665. tradeNo_ = b;
  666. return b;
  667. } else {
  668. return (com.google.protobuf.ByteString) ref;
  669. }
  670. }
  671. /**
  672. * <pre>
  673. * 支付宝交易号
  674. * </pre>
  675. *
  676. * <code>string tradeNo = 3;</code>
  677. */
  678. public Builder setTradeNo(
  679. java.lang.String value) {
  680. if (value == null) {
  681. throw new NullPointerException();
  682. }
  683. tradeNo_ = value;
  684. onChanged();
  685. return this;
  686. }
  687. /**
  688. * <pre>
  689. * 支付宝交易号
  690. * </pre>
  691. *
  692. * <code>string tradeNo = 3;</code>
  693. */
  694. public Builder clearTradeNo() {
  695. tradeNo_ = getDefaultInstance().getTradeNo();
  696. onChanged();
  697. return this;
  698. }
  699. /**
  700. * <pre>
  701. * 支付宝交易号
  702. * </pre>
  703. *
  704. * <code>string tradeNo = 3;</code>
  705. */
  706. public Builder setTradeNoBytes(
  707. com.google.protobuf.ByteString value) {
  708. if (value == null) {
  709. throw new NullPointerException();
  710. }
  711. checkByteStringIsUtf8(value);
  712. tradeNo_ = value;
  713. onChanged();
  714. return this;
  715. }
  716. private int orderId_ ;
  717. /**
  718. * <code>int32 orderId = 4;</code>
  719. */
  720. public int getOrderId() {
  721. return orderId_;
  722. }
  723. /**
  724. * <code>int32 orderId = 4;</code>
  725. */
  726. public Builder setOrderId(int value) {
  727. orderId_ = value;
  728. onChanged();
  729. return this;
  730. }
  731. /**
  732. * <code>int32 orderId = 4;</code>
  733. */
  734. public Builder clearOrderId() {
  735. orderId_ = 0;
  736. onChanged();
  737. return this;
  738. }
  739. private java.lang.Object orderNo_ = "";
  740. /**
  741. * <code>string orderNo = 5;</code>
  742. */
  743. public java.lang.String getOrderNo() {
  744. java.lang.Object ref = orderNo_;
  745. if (!(ref instanceof java.lang.String)) {
  746. com.google.protobuf.ByteString bs =
  747. (com.google.protobuf.ByteString) ref;
  748. java.lang.String s = bs.toStringUtf8();
  749. orderNo_ = s;
  750. return s;
  751. } else {
  752. return (java.lang.String) ref;
  753. }
  754. }
  755. /**
  756. * <code>string orderNo = 5;</code>
  757. */
  758. public com.google.protobuf.ByteString
  759. getOrderNoBytes() {
  760. java.lang.Object ref = orderNo_;
  761. if (ref instanceof String) {
  762. com.google.protobuf.ByteString b =
  763. com.google.protobuf.ByteString.copyFromUtf8(
  764. (java.lang.String) ref);
  765. orderNo_ = b;
  766. return b;
  767. } else {
  768. return (com.google.protobuf.ByteString) ref;
  769. }
  770. }
  771. /**
  772. * <code>string orderNo = 5;</code>
  773. */
  774. public Builder setOrderNo(
  775. java.lang.String value) {
  776. if (value == null) {
  777. throw new NullPointerException();
  778. }
  779. orderNo_ = value;
  780. onChanged();
  781. return this;
  782. }
  783. /**
  784. * <code>string orderNo = 5;</code>
  785. */
  786. public Builder clearOrderNo() {
  787. orderNo_ = getDefaultInstance().getOrderNo();
  788. onChanged();
  789. return this;
  790. }
  791. /**
  792. * <code>string orderNo = 5;</code>
  793. */
  794. public Builder setOrderNoBytes(
  795. com.google.protobuf.ByteString value) {
  796. if (value == null) {
  797. throw new NullPointerException();
  798. }
  799. checkByteStringIsUtf8(value);
  800. orderNo_ = value;
  801. onChanged();
  802. return this;
  803. }
  804. public final Builder setUnknownFields(
  805. final com.google.protobuf.UnknownFieldSet unknownFields) {
  806. return this;
  807. }
  808. public final Builder mergeUnknownFields(
  809. final com.google.protobuf.UnknownFieldSet unknownFields) {
  810. return this;
  811. }
  812. // @@protoc_insertion_point(builder_scope:com.ywt.gapi.ordercenter.CreateAlipayOrderResponse)
  813. }
  814. // @@protoc_insertion_point(class_scope:com.ywt.gapi.ordercenter.CreateAlipayOrderResponse)
  815. private static final com.ywt.gapi.ordercenter.CreateAlipayOrderResponse DEFAULT_INSTANCE;
  816. static {
  817. DEFAULT_INSTANCE = new com.ywt.gapi.ordercenter.CreateAlipayOrderResponse();
  818. }
  819. public static com.ywt.gapi.ordercenter.CreateAlipayOrderResponse getDefaultInstance() {
  820. return DEFAULT_INSTANCE;
  821. }
  822. private static final com.google.protobuf.Parser<CreateAlipayOrderResponse>
  823. PARSER = new com.google.protobuf.AbstractParser<CreateAlipayOrderResponse>() {
  824. public CreateAlipayOrderResponse parsePartialFrom(
  825. com.google.protobuf.CodedInputStream input,
  826. com.google.protobuf.ExtensionRegistryLite extensionRegistry)
  827. throws com.google.protobuf.InvalidProtocolBufferException {
  828. return new CreateAlipayOrderResponse(input, extensionRegistry);
  829. }
  830. };
  831. public static com.google.protobuf.Parser<CreateAlipayOrderResponse> parser() {
  832. return PARSER;
  833. }
  834. @java.lang.Override
  835. public com.google.protobuf.Parser<CreateAlipayOrderResponse> getParserForType() {
  836. return PARSER;
  837. }
  838. public com.ywt.gapi.ordercenter.CreateAlipayOrderResponse getDefaultInstanceForType() {
  839. return DEFAULT_INSTANCE;
  840. }
  841. }