WCommonResult.java 28 KB

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