GetOrderBillRequest.java 18 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541
  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.GetOrderBillRequest}
  10. */
  11. public final class GetOrderBillRequest extends
  12. com.google.protobuf.GeneratedMessageV3 implements
  13. // @@protoc_insertion_point(message_implements:com.ywt.gapi.ordercenter.GetOrderBillRequest)
  14. GetOrderBillRequestOrBuilder {
  15. // Use GetOrderBillRequest.newBuilder() to construct.
  16. private GetOrderBillRequest(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {
  17. super(builder);
  18. }
  19. private GetOrderBillRequest() {
  20. billDate_ = "";
  21. }
  22. @java.lang.Override
  23. public final com.google.protobuf.UnknownFieldSet
  24. getUnknownFields() {
  25. return com.google.protobuf.UnknownFieldSet.getDefaultInstance();
  26. }
  27. private GetOrderBillRequest(
  28. com.google.protobuf.CodedInputStream input,
  29. com.google.protobuf.ExtensionRegistryLite extensionRegistry)
  30. throws com.google.protobuf.InvalidProtocolBufferException {
  31. this();
  32. int mutable_bitField0_ = 0;
  33. try {
  34. boolean done = false;
  35. while (!done) {
  36. int tag = input.readTag();
  37. switch (tag) {
  38. case 0:
  39. done = true;
  40. break;
  41. default: {
  42. if (!input.skipField(tag)) {
  43. done = true;
  44. }
  45. break;
  46. }
  47. case 10: {
  48. java.lang.String s = input.readStringRequireUtf8();
  49. billDate_ = s;
  50. break;
  51. }
  52. }
  53. }
  54. } catch (com.google.protobuf.InvalidProtocolBufferException e) {
  55. throw e.setUnfinishedMessage(this);
  56. } catch (java.io.IOException e) {
  57. throw new com.google.protobuf.InvalidProtocolBufferException(
  58. e).setUnfinishedMessage(this);
  59. } finally {
  60. makeExtensionsImmutable();
  61. }
  62. }
  63. public static final com.google.protobuf.Descriptors.Descriptor
  64. getDescriptor() {
  65. return com.ywt.gapi.ordercenter.Ordercenter.internal_static_com_ywt_gapi_ordercenter_GetOrderBillRequest_descriptor;
  66. }
  67. protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
  68. internalGetFieldAccessorTable() {
  69. return com.ywt.gapi.ordercenter.Ordercenter.internal_static_com_ywt_gapi_ordercenter_GetOrderBillRequest_fieldAccessorTable
  70. .ensureFieldAccessorsInitialized(
  71. com.ywt.gapi.ordercenter.GetOrderBillRequest.class, com.ywt.gapi.ordercenter.GetOrderBillRequest.Builder.class);
  72. }
  73. public static final int BILLDATE_FIELD_NUMBER = 1;
  74. private volatile java.lang.Object billDate_;
  75. /**
  76. * <pre>
  77. *下载对账单的日期,格式:20180603
  78. * </pre>
  79. *
  80. * <code>string billDate = 1;</code>
  81. */
  82. public java.lang.String getBillDate() {
  83. java.lang.Object ref = billDate_;
  84. if (ref instanceof java.lang.String) {
  85. return (java.lang.String) ref;
  86. } else {
  87. com.google.protobuf.ByteString bs =
  88. (com.google.protobuf.ByteString) ref;
  89. java.lang.String s = bs.toStringUtf8();
  90. billDate_ = s;
  91. return s;
  92. }
  93. }
  94. /**
  95. * <pre>
  96. *下载对账单的日期,格式:20180603
  97. * </pre>
  98. *
  99. * <code>string billDate = 1;</code>
  100. */
  101. public com.google.protobuf.ByteString
  102. getBillDateBytes() {
  103. java.lang.Object ref = billDate_;
  104. if (ref instanceof java.lang.String) {
  105. com.google.protobuf.ByteString b =
  106. com.google.protobuf.ByteString.copyFromUtf8(
  107. (java.lang.String) ref);
  108. billDate_ = b;
  109. return b;
  110. } else {
  111. return (com.google.protobuf.ByteString) ref;
  112. }
  113. }
  114. private byte memoizedIsInitialized = -1;
  115. public final boolean isInitialized() {
  116. byte isInitialized = memoizedIsInitialized;
  117. if (isInitialized == 1) return true;
  118. if (isInitialized == 0) return false;
  119. memoizedIsInitialized = 1;
  120. return true;
  121. }
  122. public void writeTo(com.google.protobuf.CodedOutputStream output)
  123. throws java.io.IOException {
  124. if (!getBillDateBytes().isEmpty()) {
  125. com.google.protobuf.GeneratedMessageV3.writeString(output, 1, billDate_);
  126. }
  127. }
  128. public int getSerializedSize() {
  129. int size = memoizedSize;
  130. if (size != -1) return size;
  131. size = 0;
  132. if (!getBillDateBytes().isEmpty()) {
  133. size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, billDate_);
  134. }
  135. memoizedSize = size;
  136. return size;
  137. }
  138. private static final long serialVersionUID = 0L;
  139. @java.lang.Override
  140. public boolean equals(final java.lang.Object obj) {
  141. if (obj == this) {
  142. return true;
  143. }
  144. if (!(obj instanceof com.ywt.gapi.ordercenter.GetOrderBillRequest)) {
  145. return super.equals(obj);
  146. }
  147. com.ywt.gapi.ordercenter.GetOrderBillRequest other = (com.ywt.gapi.ordercenter.GetOrderBillRequest) obj;
  148. boolean result = true;
  149. result = result && getBillDate()
  150. .equals(other.getBillDate());
  151. return result;
  152. }
  153. @java.lang.Override
  154. public int hashCode() {
  155. if (memoizedHashCode != 0) {
  156. return memoizedHashCode;
  157. }
  158. int hash = 41;
  159. hash = (19 * hash) + getDescriptor().hashCode();
  160. hash = (37 * hash) + BILLDATE_FIELD_NUMBER;
  161. hash = (53 * hash) + getBillDate().hashCode();
  162. hash = (29 * hash) + unknownFields.hashCode();
  163. memoizedHashCode = hash;
  164. return hash;
  165. }
  166. public static com.ywt.gapi.ordercenter.GetOrderBillRequest parseFrom(
  167. java.nio.ByteBuffer data)
  168. throws com.google.protobuf.InvalidProtocolBufferException {
  169. return PARSER.parseFrom(data);
  170. }
  171. public static com.ywt.gapi.ordercenter.GetOrderBillRequest parseFrom(
  172. java.nio.ByteBuffer data,
  173. com.google.protobuf.ExtensionRegistryLite extensionRegistry)
  174. throws com.google.protobuf.InvalidProtocolBufferException {
  175. return PARSER.parseFrom(data, extensionRegistry);
  176. }
  177. public static com.ywt.gapi.ordercenter.GetOrderBillRequest parseFrom(
  178. com.google.protobuf.ByteString data)
  179. throws com.google.protobuf.InvalidProtocolBufferException {
  180. return PARSER.parseFrom(data);
  181. }
  182. public static com.ywt.gapi.ordercenter.GetOrderBillRequest parseFrom(
  183. com.google.protobuf.ByteString data,
  184. com.google.protobuf.ExtensionRegistryLite extensionRegistry)
  185. throws com.google.protobuf.InvalidProtocolBufferException {
  186. return PARSER.parseFrom(data, extensionRegistry);
  187. }
  188. public static com.ywt.gapi.ordercenter.GetOrderBillRequest parseFrom(byte[] data)
  189. throws com.google.protobuf.InvalidProtocolBufferException {
  190. return PARSER.parseFrom(data);
  191. }
  192. public static com.ywt.gapi.ordercenter.GetOrderBillRequest parseFrom(
  193. byte[] data,
  194. com.google.protobuf.ExtensionRegistryLite extensionRegistry)
  195. throws com.google.protobuf.InvalidProtocolBufferException {
  196. return PARSER.parseFrom(data, extensionRegistry);
  197. }
  198. public static com.ywt.gapi.ordercenter.GetOrderBillRequest parseFrom(java.io.InputStream input)
  199. throws java.io.IOException {
  200. return com.google.protobuf.GeneratedMessageV3
  201. .parseWithIOException(PARSER, input);
  202. }
  203. public static com.ywt.gapi.ordercenter.GetOrderBillRequest parseFrom(
  204. java.io.InputStream input,
  205. com.google.protobuf.ExtensionRegistryLite extensionRegistry)
  206. throws java.io.IOException {
  207. return com.google.protobuf.GeneratedMessageV3
  208. .parseWithIOException(PARSER, input, extensionRegistry);
  209. }
  210. public static com.ywt.gapi.ordercenter.GetOrderBillRequest parseDelimitedFrom(java.io.InputStream input)
  211. throws java.io.IOException {
  212. return com.google.protobuf.GeneratedMessageV3
  213. .parseDelimitedWithIOException(PARSER, input);
  214. }
  215. public static com.ywt.gapi.ordercenter.GetOrderBillRequest parseDelimitedFrom(
  216. java.io.InputStream input,
  217. com.google.protobuf.ExtensionRegistryLite extensionRegistry)
  218. throws java.io.IOException {
  219. return com.google.protobuf.GeneratedMessageV3
  220. .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
  221. }
  222. public static com.ywt.gapi.ordercenter.GetOrderBillRequest parseFrom(
  223. com.google.protobuf.CodedInputStream input)
  224. throws java.io.IOException {
  225. return com.google.protobuf.GeneratedMessageV3
  226. .parseWithIOException(PARSER, input);
  227. }
  228. public static com.ywt.gapi.ordercenter.GetOrderBillRequest parseFrom(
  229. com.google.protobuf.CodedInputStream input,
  230. com.google.protobuf.ExtensionRegistryLite extensionRegistry)
  231. throws java.io.IOException {
  232. return com.google.protobuf.GeneratedMessageV3
  233. .parseWithIOException(PARSER, input, extensionRegistry);
  234. }
  235. public Builder newBuilderForType() { return newBuilder(); }
  236. public static Builder newBuilder() {
  237. return DEFAULT_INSTANCE.toBuilder();
  238. }
  239. public static Builder newBuilder(com.ywt.gapi.ordercenter.GetOrderBillRequest prototype) {
  240. return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
  241. }
  242. public Builder toBuilder() {
  243. return this == DEFAULT_INSTANCE
  244. ? new Builder() : new Builder().mergeFrom(this);
  245. }
  246. @java.lang.Override
  247. protected Builder newBuilderForType(
  248. com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
  249. Builder builder = new Builder(parent);
  250. return builder;
  251. }
  252. /**
  253. * <pre>
  254. *获取订单中心账单请求消息
  255. * </pre>
  256. *
  257. * Protobuf type {@code com.ywt.gapi.ordercenter.GetOrderBillRequest}
  258. */
  259. public static final class Builder extends
  260. com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements
  261. // @@protoc_insertion_point(builder_implements:com.ywt.gapi.ordercenter.GetOrderBillRequest)
  262. com.ywt.gapi.ordercenter.GetOrderBillRequestOrBuilder {
  263. public static final com.google.protobuf.Descriptors.Descriptor
  264. getDescriptor() {
  265. return com.ywt.gapi.ordercenter.Ordercenter.internal_static_com_ywt_gapi_ordercenter_GetOrderBillRequest_descriptor;
  266. }
  267. protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
  268. internalGetFieldAccessorTable() {
  269. return com.ywt.gapi.ordercenter.Ordercenter.internal_static_com_ywt_gapi_ordercenter_GetOrderBillRequest_fieldAccessorTable
  270. .ensureFieldAccessorsInitialized(
  271. com.ywt.gapi.ordercenter.GetOrderBillRequest.class, com.ywt.gapi.ordercenter.GetOrderBillRequest.Builder.class);
  272. }
  273. // Construct using com.ywt.gapi.ordercenter.GetOrderBillRequest.newBuilder()
  274. private Builder() {
  275. maybeForceBuilderInitialization();
  276. }
  277. private Builder(
  278. com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
  279. super(parent);
  280. maybeForceBuilderInitialization();
  281. }
  282. private void maybeForceBuilderInitialization() {
  283. if (com.google.protobuf.GeneratedMessageV3
  284. .alwaysUseFieldBuilders) {
  285. }
  286. }
  287. public Builder clear() {
  288. super.clear();
  289. billDate_ = "";
  290. return this;
  291. }
  292. public com.google.protobuf.Descriptors.Descriptor
  293. getDescriptorForType() {
  294. return com.ywt.gapi.ordercenter.Ordercenter.internal_static_com_ywt_gapi_ordercenter_GetOrderBillRequest_descriptor;
  295. }
  296. public com.ywt.gapi.ordercenter.GetOrderBillRequest getDefaultInstanceForType() {
  297. return com.ywt.gapi.ordercenter.GetOrderBillRequest.getDefaultInstance();
  298. }
  299. public com.ywt.gapi.ordercenter.GetOrderBillRequest build() {
  300. com.ywt.gapi.ordercenter.GetOrderBillRequest result = buildPartial();
  301. if (!result.isInitialized()) {
  302. throw newUninitializedMessageException(result);
  303. }
  304. return result;
  305. }
  306. public com.ywt.gapi.ordercenter.GetOrderBillRequest buildPartial() {
  307. com.ywt.gapi.ordercenter.GetOrderBillRequest result = new com.ywt.gapi.ordercenter.GetOrderBillRequest(this);
  308. result.billDate_ = billDate_;
  309. onBuilt();
  310. return result;
  311. }
  312. public Builder clone() {
  313. return (Builder) super.clone();
  314. }
  315. public Builder setField(
  316. com.google.protobuf.Descriptors.FieldDescriptor field,
  317. Object value) {
  318. return (Builder) super.setField(field, value);
  319. }
  320. public Builder clearField(
  321. com.google.protobuf.Descriptors.FieldDescriptor field) {
  322. return (Builder) super.clearField(field);
  323. }
  324. public Builder clearOneof(
  325. com.google.protobuf.Descriptors.OneofDescriptor oneof) {
  326. return (Builder) super.clearOneof(oneof);
  327. }
  328. public Builder setRepeatedField(
  329. com.google.protobuf.Descriptors.FieldDescriptor field,
  330. int index, Object value) {
  331. return (Builder) super.setRepeatedField(field, index, value);
  332. }
  333. public Builder addRepeatedField(
  334. com.google.protobuf.Descriptors.FieldDescriptor field,
  335. Object value) {
  336. return (Builder) super.addRepeatedField(field, value);
  337. }
  338. public Builder mergeFrom(com.google.protobuf.Message other) {
  339. if (other instanceof com.ywt.gapi.ordercenter.GetOrderBillRequest) {
  340. return mergeFrom((com.ywt.gapi.ordercenter.GetOrderBillRequest)other);
  341. } else {
  342. super.mergeFrom(other);
  343. return this;
  344. }
  345. }
  346. public Builder mergeFrom(com.ywt.gapi.ordercenter.GetOrderBillRequest other) {
  347. if (other == com.ywt.gapi.ordercenter.GetOrderBillRequest.getDefaultInstance()) return this;
  348. if (!other.getBillDate().isEmpty()) {
  349. billDate_ = other.billDate_;
  350. onChanged();
  351. }
  352. onChanged();
  353. return this;
  354. }
  355. public final boolean isInitialized() {
  356. return true;
  357. }
  358. public Builder mergeFrom(
  359. com.google.protobuf.CodedInputStream input,
  360. com.google.protobuf.ExtensionRegistryLite extensionRegistry)
  361. throws java.io.IOException {
  362. com.ywt.gapi.ordercenter.GetOrderBillRequest parsedMessage = null;
  363. try {
  364. parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
  365. } catch (com.google.protobuf.InvalidProtocolBufferException e) {
  366. parsedMessage = (com.ywt.gapi.ordercenter.GetOrderBillRequest) e.getUnfinishedMessage();
  367. throw e.unwrapIOException();
  368. } finally {
  369. if (parsedMessage != null) {
  370. mergeFrom(parsedMessage);
  371. }
  372. }
  373. return this;
  374. }
  375. private java.lang.Object billDate_ = "";
  376. /**
  377. * <pre>
  378. *下载对账单的日期,格式:20180603
  379. * </pre>
  380. *
  381. * <code>string billDate = 1;</code>
  382. */
  383. public java.lang.String getBillDate() {
  384. java.lang.Object ref = billDate_;
  385. if (!(ref instanceof java.lang.String)) {
  386. com.google.protobuf.ByteString bs =
  387. (com.google.protobuf.ByteString) ref;
  388. java.lang.String s = bs.toStringUtf8();
  389. billDate_ = s;
  390. return s;
  391. } else {
  392. return (java.lang.String) ref;
  393. }
  394. }
  395. /**
  396. * <pre>
  397. *下载对账单的日期,格式:20180603
  398. * </pre>
  399. *
  400. * <code>string billDate = 1;</code>
  401. */
  402. public com.google.protobuf.ByteString
  403. getBillDateBytes() {
  404. java.lang.Object ref = billDate_;
  405. if (ref instanceof String) {
  406. com.google.protobuf.ByteString b =
  407. com.google.protobuf.ByteString.copyFromUtf8(
  408. (java.lang.String) ref);
  409. billDate_ = b;
  410. return b;
  411. } else {
  412. return (com.google.protobuf.ByteString) ref;
  413. }
  414. }
  415. /**
  416. * <pre>
  417. *下载对账单的日期,格式:20180603
  418. * </pre>
  419. *
  420. * <code>string billDate = 1;</code>
  421. */
  422. public Builder setBillDate(
  423. java.lang.String value) {
  424. if (value == null) {
  425. throw new NullPointerException();
  426. }
  427. billDate_ = value;
  428. onChanged();
  429. return this;
  430. }
  431. /**
  432. * <pre>
  433. *下载对账单的日期,格式:20180603
  434. * </pre>
  435. *
  436. * <code>string billDate = 1;</code>
  437. */
  438. public Builder clearBillDate() {
  439. billDate_ = getDefaultInstance().getBillDate();
  440. onChanged();
  441. return this;
  442. }
  443. /**
  444. * <pre>
  445. *下载对账单的日期,格式:20180603
  446. * </pre>
  447. *
  448. * <code>string billDate = 1;</code>
  449. */
  450. public Builder setBillDateBytes(
  451. com.google.protobuf.ByteString value) {
  452. if (value == null) {
  453. throw new NullPointerException();
  454. }
  455. checkByteStringIsUtf8(value);
  456. billDate_ = value;
  457. onChanged();
  458. return this;
  459. }
  460. public final Builder setUnknownFields(
  461. final com.google.protobuf.UnknownFieldSet unknownFields) {
  462. return this;
  463. }
  464. public final Builder mergeUnknownFields(
  465. final com.google.protobuf.UnknownFieldSet unknownFields) {
  466. return this;
  467. }
  468. // @@protoc_insertion_point(builder_scope:com.ywt.gapi.ordercenter.GetOrderBillRequest)
  469. }
  470. // @@protoc_insertion_point(class_scope:com.ywt.gapi.ordercenter.GetOrderBillRequest)
  471. private static final com.ywt.gapi.ordercenter.GetOrderBillRequest DEFAULT_INSTANCE;
  472. static {
  473. DEFAULT_INSTANCE = new com.ywt.gapi.ordercenter.GetOrderBillRequest();
  474. }
  475. public static com.ywt.gapi.ordercenter.GetOrderBillRequest getDefaultInstance() {
  476. return DEFAULT_INSTANCE;
  477. }
  478. private static final com.google.protobuf.Parser<GetOrderBillRequest>
  479. PARSER = new com.google.protobuf.AbstractParser<GetOrderBillRequest>() {
  480. public GetOrderBillRequest parsePartialFrom(
  481. com.google.protobuf.CodedInputStream input,
  482. com.google.protobuf.ExtensionRegistryLite extensionRegistry)
  483. throws com.google.protobuf.InvalidProtocolBufferException {
  484. return new GetOrderBillRequest(input, extensionRegistry);
  485. }
  486. };
  487. public static com.google.protobuf.Parser<GetOrderBillRequest> parser() {
  488. return PARSER;
  489. }
  490. @java.lang.Override
  491. public com.google.protobuf.Parser<GetOrderBillRequest> getParserForType() {
  492. return PARSER;
  493. }
  494. public com.ywt.gapi.ordercenter.GetOrderBillRequest getDefaultInstanceForType() {
  495. return DEFAULT_INSTANCE;
  496. }
  497. }