WSnsMsgNotice.java 43 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525
  1. // Generated by the protocol buffer compiler. DO NOT EDIT!
  2. // source: WSnsMsgNotice.proto
  3. package Im.Scrm.Ww.Proto;
  4. public final class WSnsMsgNotice {
  5. private WSnsMsgNotice() {}
  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 SnsMsgNoticeMessageOrBuilder extends
  15. // @@protoc_insertion_point(interface_extends:Im.Scrm.Ww.Proto.SnsMsgNoticeMessage)
  16. com.google.protobuf.MessageOrBuilder {
  17. /**
  18. * <pre>
  19. * </pre>
  20. *
  21. * <code>int64 WxId = 1;</code>
  22. * @return The wxId.
  23. */
  24. long getWxId();
  25. /**
  26. * <pre>
  27. * 类型:1 评论,2 点赞
  28. * </pre>
  29. *
  30. * <code>int32 Type = 2;</code>
  31. * @return The type.
  32. */
  33. int getType();
  34. /**
  35. * <code>int64 SnsId = 3;</code>
  36. * @return The snsId.
  37. */
  38. long getSnsId();
  39. /**
  40. * <pre>
  41. * 评论人的微信号
  42. * </pre>
  43. *
  44. * <code>int64 FriendId = 4;</code>
  45. * @return The friendId.
  46. */
  47. long getFriendId();
  48. /**
  49. * <pre>
  50. * 评论内容
  51. * </pre>
  52. *
  53. * <code>string Content = 5;</code>
  54. * @return The content.
  55. */
  56. java.lang.String getContent();
  57. /**
  58. * <pre>
  59. * 评论内容
  60. * </pre>
  61. *
  62. * <code>string Content = 5;</code>
  63. * @return The bytes for content.
  64. */
  65. com.google.protobuf.ByteString
  66. getContentBytes();
  67. /**
  68. * <pre>
  69. * 微信本地数据库的id
  70. * </pre>
  71. *
  72. * <code>int64 CommentId = 6;</code>
  73. * @return The commentId.
  74. */
  75. long getCommentId();
  76. /**
  77. * <pre>
  78. * 回复的微信本地数据库的id
  79. * </pre>
  80. *
  81. * <code>int64 ReplyCommentId = 7;</code>
  82. * @return The replyCommentId.
  83. */
  84. long getReplyCommentId();
  85. /**
  86. * <pre>
  87. * 评论对象的微信号
  88. * </pre>
  89. *
  90. * <code>int64 ReplyWxId = 8;</code>
  91. * @return The replyWxId.
  92. */
  93. long getReplyWxId();
  94. /**
  95. * <pre>
  96. * 评论时间
  97. * </pre>
  98. *
  99. * <code>int32 Time = 9;</code>
  100. * @return The time.
  101. */
  102. int getTime();
  103. /**
  104. * <pre>
  105. * sns postid
  106. * </pre>
  107. *
  108. * <code>string PostId = 10;</code>
  109. * @return The postId.
  110. */
  111. java.lang.String getPostId();
  112. /**
  113. * <pre>
  114. * sns postid
  115. * </pre>
  116. *
  117. * <code>string PostId = 10;</code>
  118. * @return The bytes for postId.
  119. */
  120. com.google.protobuf.ByteString
  121. getPostIdBytes();
  122. }
  123. /**
  124. * Protobuf type {@code Im.Scrm.Ww.Proto.SnsMsgNoticeMessage}
  125. */
  126. public static final class SnsMsgNoticeMessage extends
  127. com.google.protobuf.GeneratedMessageV3 implements
  128. // @@protoc_insertion_point(message_implements:Im.Scrm.Ww.Proto.SnsMsgNoticeMessage)
  129. SnsMsgNoticeMessageOrBuilder {
  130. private static final long serialVersionUID = 0L;
  131. // Use SnsMsgNoticeMessage.newBuilder() to construct.
  132. private SnsMsgNoticeMessage(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {
  133. super(builder);
  134. }
  135. private SnsMsgNoticeMessage() {
  136. content_ = "";
  137. postId_ = "";
  138. }
  139. @java.lang.Override
  140. @SuppressWarnings({"unused"})
  141. protected java.lang.Object newInstance(
  142. UnusedPrivateParameter unused) {
  143. return new SnsMsgNoticeMessage();
  144. }
  145. @java.lang.Override
  146. public final com.google.protobuf.UnknownFieldSet
  147. getUnknownFields() {
  148. return this.unknownFields;
  149. }
  150. private SnsMsgNoticeMessage(
  151. com.google.protobuf.CodedInputStream input,
  152. com.google.protobuf.ExtensionRegistryLite extensionRegistry)
  153. throws com.google.protobuf.InvalidProtocolBufferException {
  154. this();
  155. if (extensionRegistry == null) {
  156. throw new java.lang.NullPointerException();
  157. }
  158. com.google.protobuf.UnknownFieldSet.Builder unknownFields =
  159. com.google.protobuf.UnknownFieldSet.newBuilder();
  160. try {
  161. boolean done = false;
  162. while (!done) {
  163. int tag = input.readTag();
  164. switch (tag) {
  165. case 0:
  166. done = true;
  167. break;
  168. case 8: {
  169. wxId_ = input.readInt64();
  170. break;
  171. }
  172. case 16: {
  173. type_ = input.readInt32();
  174. break;
  175. }
  176. case 24: {
  177. snsId_ = input.readInt64();
  178. break;
  179. }
  180. case 32: {
  181. friendId_ = input.readInt64();
  182. break;
  183. }
  184. case 42: {
  185. java.lang.String s = input.readStringRequireUtf8();
  186. content_ = s;
  187. break;
  188. }
  189. case 48: {
  190. commentId_ = input.readInt64();
  191. break;
  192. }
  193. case 56: {
  194. replyCommentId_ = input.readInt64();
  195. break;
  196. }
  197. case 64: {
  198. replyWxId_ = input.readInt64();
  199. break;
  200. }
  201. case 72: {
  202. time_ = input.readInt32();
  203. break;
  204. }
  205. case 82: {
  206. java.lang.String s = input.readStringRequireUtf8();
  207. postId_ = s;
  208. break;
  209. }
  210. default: {
  211. if (!parseUnknownField(
  212. input, unknownFields, extensionRegistry, tag)) {
  213. done = true;
  214. }
  215. break;
  216. }
  217. }
  218. }
  219. } catch (com.google.protobuf.InvalidProtocolBufferException e) {
  220. throw e.setUnfinishedMessage(this);
  221. } catch (java.io.IOException e) {
  222. throw new com.google.protobuf.InvalidProtocolBufferException(
  223. e).setUnfinishedMessage(this);
  224. } finally {
  225. this.unknownFields = unknownFields.build();
  226. makeExtensionsImmutable();
  227. }
  228. }
  229. public static final com.google.protobuf.Descriptors.Descriptor
  230. getDescriptor() {
  231. return Im.Scrm.Ww.Proto.WSnsMsgNotice.internal_static_Im_Scrm_Ww_Proto_SnsMsgNoticeMessage_descriptor;
  232. }
  233. @java.lang.Override
  234. protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
  235. internalGetFieldAccessorTable() {
  236. return Im.Scrm.Ww.Proto.WSnsMsgNotice.internal_static_Im_Scrm_Ww_Proto_SnsMsgNoticeMessage_fieldAccessorTable
  237. .ensureFieldAccessorsInitialized(
  238. Im.Scrm.Ww.Proto.WSnsMsgNotice.SnsMsgNoticeMessage.class, Im.Scrm.Ww.Proto.WSnsMsgNotice.SnsMsgNoticeMessage.Builder.class);
  239. }
  240. public static final int WXID_FIELD_NUMBER = 1;
  241. private long wxId_;
  242. /**
  243. * <pre>
  244. * </pre>
  245. *
  246. * <code>int64 WxId = 1;</code>
  247. * @return The wxId.
  248. */
  249. public long getWxId() {
  250. return wxId_;
  251. }
  252. public static final int TYPE_FIELD_NUMBER = 2;
  253. private int type_;
  254. /**
  255. * <pre>
  256. * 类型:1 评论,2 点赞
  257. * </pre>
  258. *
  259. * <code>int32 Type = 2;</code>
  260. * @return The type.
  261. */
  262. public int getType() {
  263. return type_;
  264. }
  265. public static final int SNSID_FIELD_NUMBER = 3;
  266. private long snsId_;
  267. /**
  268. * <code>int64 SnsId = 3;</code>
  269. * @return The snsId.
  270. */
  271. public long getSnsId() {
  272. return snsId_;
  273. }
  274. public static final int FRIENDID_FIELD_NUMBER = 4;
  275. private long friendId_;
  276. /**
  277. * <pre>
  278. * 评论人的微信号
  279. * </pre>
  280. *
  281. * <code>int64 FriendId = 4;</code>
  282. * @return The friendId.
  283. */
  284. public long getFriendId() {
  285. return friendId_;
  286. }
  287. public static final int CONTENT_FIELD_NUMBER = 5;
  288. private volatile java.lang.Object content_;
  289. /**
  290. * <pre>
  291. * 评论内容
  292. * </pre>
  293. *
  294. * <code>string Content = 5;</code>
  295. * @return The content.
  296. */
  297. public java.lang.String getContent() {
  298. java.lang.Object ref = content_;
  299. if (ref instanceof java.lang.String) {
  300. return (java.lang.String) ref;
  301. } else {
  302. com.google.protobuf.ByteString bs =
  303. (com.google.protobuf.ByteString) ref;
  304. java.lang.String s = bs.toStringUtf8();
  305. content_ = s;
  306. return s;
  307. }
  308. }
  309. /**
  310. * <pre>
  311. * 评论内容
  312. * </pre>
  313. *
  314. * <code>string Content = 5;</code>
  315. * @return The bytes for content.
  316. */
  317. public com.google.protobuf.ByteString
  318. getContentBytes() {
  319. java.lang.Object ref = content_;
  320. if (ref instanceof java.lang.String) {
  321. com.google.protobuf.ByteString b =
  322. com.google.protobuf.ByteString.copyFromUtf8(
  323. (java.lang.String) ref);
  324. content_ = b;
  325. return b;
  326. } else {
  327. return (com.google.protobuf.ByteString) ref;
  328. }
  329. }
  330. public static final int COMMENTID_FIELD_NUMBER = 6;
  331. private long commentId_;
  332. /**
  333. * <pre>
  334. * 微信本地数据库的id
  335. * </pre>
  336. *
  337. * <code>int64 CommentId = 6;</code>
  338. * @return The commentId.
  339. */
  340. public long getCommentId() {
  341. return commentId_;
  342. }
  343. public static final int REPLYCOMMENTID_FIELD_NUMBER = 7;
  344. private long replyCommentId_;
  345. /**
  346. * <pre>
  347. * 回复的微信本地数据库的id
  348. * </pre>
  349. *
  350. * <code>int64 ReplyCommentId = 7;</code>
  351. * @return The replyCommentId.
  352. */
  353. public long getReplyCommentId() {
  354. return replyCommentId_;
  355. }
  356. public static final int REPLYWXID_FIELD_NUMBER = 8;
  357. private long replyWxId_;
  358. /**
  359. * <pre>
  360. * 评论对象的微信号
  361. * </pre>
  362. *
  363. * <code>int64 ReplyWxId = 8;</code>
  364. * @return The replyWxId.
  365. */
  366. public long getReplyWxId() {
  367. return replyWxId_;
  368. }
  369. public static final int TIME_FIELD_NUMBER = 9;
  370. private int time_;
  371. /**
  372. * <pre>
  373. * 评论时间
  374. * </pre>
  375. *
  376. * <code>int32 Time = 9;</code>
  377. * @return The time.
  378. */
  379. public int getTime() {
  380. return time_;
  381. }
  382. public static final int POSTID_FIELD_NUMBER = 10;
  383. private volatile java.lang.Object postId_;
  384. /**
  385. * <pre>
  386. * sns postid
  387. * </pre>
  388. *
  389. * <code>string PostId = 10;</code>
  390. * @return The postId.
  391. */
  392. public java.lang.String getPostId() {
  393. java.lang.Object ref = postId_;
  394. if (ref instanceof java.lang.String) {
  395. return (java.lang.String) ref;
  396. } else {
  397. com.google.protobuf.ByteString bs =
  398. (com.google.protobuf.ByteString) ref;
  399. java.lang.String s = bs.toStringUtf8();
  400. postId_ = s;
  401. return s;
  402. }
  403. }
  404. /**
  405. * <pre>
  406. * sns postid
  407. * </pre>
  408. *
  409. * <code>string PostId = 10;</code>
  410. * @return The bytes for postId.
  411. */
  412. public com.google.protobuf.ByteString
  413. getPostIdBytes() {
  414. java.lang.Object ref = postId_;
  415. if (ref instanceof java.lang.String) {
  416. com.google.protobuf.ByteString b =
  417. com.google.protobuf.ByteString.copyFromUtf8(
  418. (java.lang.String) ref);
  419. postId_ = b;
  420. return b;
  421. } else {
  422. return (com.google.protobuf.ByteString) ref;
  423. }
  424. }
  425. private byte memoizedIsInitialized = -1;
  426. @java.lang.Override
  427. public final boolean isInitialized() {
  428. byte isInitialized = memoizedIsInitialized;
  429. if (isInitialized == 1) return true;
  430. if (isInitialized == 0) return false;
  431. memoizedIsInitialized = 1;
  432. return true;
  433. }
  434. @java.lang.Override
  435. public void writeTo(com.google.protobuf.CodedOutputStream output)
  436. throws java.io.IOException {
  437. if (wxId_ != 0L) {
  438. output.writeInt64(1, wxId_);
  439. }
  440. if (type_ != 0) {
  441. output.writeInt32(2, type_);
  442. }
  443. if (snsId_ != 0L) {
  444. output.writeInt64(3, snsId_);
  445. }
  446. if (friendId_ != 0L) {
  447. output.writeInt64(4, friendId_);
  448. }
  449. if (!getContentBytes().isEmpty()) {
  450. com.google.protobuf.GeneratedMessageV3.writeString(output, 5, content_);
  451. }
  452. if (commentId_ != 0L) {
  453. output.writeInt64(6, commentId_);
  454. }
  455. if (replyCommentId_ != 0L) {
  456. output.writeInt64(7, replyCommentId_);
  457. }
  458. if (replyWxId_ != 0L) {
  459. output.writeInt64(8, replyWxId_);
  460. }
  461. if (time_ != 0) {
  462. output.writeInt32(9, time_);
  463. }
  464. if (!getPostIdBytes().isEmpty()) {
  465. com.google.protobuf.GeneratedMessageV3.writeString(output, 10, postId_);
  466. }
  467. unknownFields.writeTo(output);
  468. }
  469. @java.lang.Override
  470. public int getSerializedSize() {
  471. int size = memoizedSize;
  472. if (size != -1) return size;
  473. size = 0;
  474. if (wxId_ != 0L) {
  475. size += com.google.protobuf.CodedOutputStream
  476. .computeInt64Size(1, wxId_);
  477. }
  478. if (type_ != 0) {
  479. size += com.google.protobuf.CodedOutputStream
  480. .computeInt32Size(2, type_);
  481. }
  482. if (snsId_ != 0L) {
  483. size += com.google.protobuf.CodedOutputStream
  484. .computeInt64Size(3, snsId_);
  485. }
  486. if (friendId_ != 0L) {
  487. size += com.google.protobuf.CodedOutputStream
  488. .computeInt64Size(4, friendId_);
  489. }
  490. if (!getContentBytes().isEmpty()) {
  491. size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, content_);
  492. }
  493. if (commentId_ != 0L) {
  494. size += com.google.protobuf.CodedOutputStream
  495. .computeInt64Size(6, commentId_);
  496. }
  497. if (replyCommentId_ != 0L) {
  498. size += com.google.protobuf.CodedOutputStream
  499. .computeInt64Size(7, replyCommentId_);
  500. }
  501. if (replyWxId_ != 0L) {
  502. size += com.google.protobuf.CodedOutputStream
  503. .computeInt64Size(8, replyWxId_);
  504. }
  505. if (time_ != 0) {
  506. size += com.google.protobuf.CodedOutputStream
  507. .computeInt32Size(9, time_);
  508. }
  509. if (!getPostIdBytes().isEmpty()) {
  510. size += com.google.protobuf.GeneratedMessageV3.computeStringSize(10, postId_);
  511. }
  512. size += unknownFields.getSerializedSize();
  513. memoizedSize = size;
  514. return size;
  515. }
  516. @java.lang.Override
  517. public boolean equals(final java.lang.Object obj) {
  518. if (obj == this) {
  519. return true;
  520. }
  521. if (!(obj instanceof Im.Scrm.Ww.Proto.WSnsMsgNotice.SnsMsgNoticeMessage)) {
  522. return super.equals(obj);
  523. }
  524. Im.Scrm.Ww.Proto.WSnsMsgNotice.SnsMsgNoticeMessage other = (Im.Scrm.Ww.Proto.WSnsMsgNotice.SnsMsgNoticeMessage) obj;
  525. if (getWxId()
  526. != other.getWxId()) return false;
  527. if (getType()
  528. != other.getType()) return false;
  529. if (getSnsId()
  530. != other.getSnsId()) return false;
  531. if (getFriendId()
  532. != other.getFriendId()) return false;
  533. if (!getContent()
  534. .equals(other.getContent())) return false;
  535. if (getCommentId()
  536. != other.getCommentId()) return false;
  537. if (getReplyCommentId()
  538. != other.getReplyCommentId()) return false;
  539. if (getReplyWxId()
  540. != other.getReplyWxId()) return false;
  541. if (getTime()
  542. != other.getTime()) return false;
  543. if (!getPostId()
  544. .equals(other.getPostId())) return false;
  545. if (!unknownFields.equals(other.unknownFields)) return false;
  546. return true;
  547. }
  548. @java.lang.Override
  549. public int hashCode() {
  550. if (memoizedHashCode != 0) {
  551. return memoizedHashCode;
  552. }
  553. int hash = 41;
  554. hash = (19 * hash) + getDescriptor().hashCode();
  555. hash = (37 * hash) + WXID_FIELD_NUMBER;
  556. hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
  557. getWxId());
  558. hash = (37 * hash) + TYPE_FIELD_NUMBER;
  559. hash = (53 * hash) + getType();
  560. hash = (37 * hash) + SNSID_FIELD_NUMBER;
  561. hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
  562. getSnsId());
  563. hash = (37 * hash) + FRIENDID_FIELD_NUMBER;
  564. hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
  565. getFriendId());
  566. hash = (37 * hash) + CONTENT_FIELD_NUMBER;
  567. hash = (53 * hash) + getContent().hashCode();
  568. hash = (37 * hash) + COMMENTID_FIELD_NUMBER;
  569. hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
  570. getCommentId());
  571. hash = (37 * hash) + REPLYCOMMENTID_FIELD_NUMBER;
  572. hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
  573. getReplyCommentId());
  574. hash = (37 * hash) + REPLYWXID_FIELD_NUMBER;
  575. hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
  576. getReplyWxId());
  577. hash = (37 * hash) + TIME_FIELD_NUMBER;
  578. hash = (53 * hash) + getTime();
  579. hash = (37 * hash) + POSTID_FIELD_NUMBER;
  580. hash = (53 * hash) + getPostId().hashCode();
  581. hash = (29 * hash) + unknownFields.hashCode();
  582. memoizedHashCode = hash;
  583. return hash;
  584. }
  585. public static Im.Scrm.Ww.Proto.WSnsMsgNotice.SnsMsgNoticeMessage parseFrom(
  586. java.nio.ByteBuffer data)
  587. throws com.google.protobuf.InvalidProtocolBufferException {
  588. return PARSER.parseFrom(data);
  589. }
  590. public static Im.Scrm.Ww.Proto.WSnsMsgNotice.SnsMsgNoticeMessage parseFrom(
  591. java.nio.ByteBuffer data,
  592. com.google.protobuf.ExtensionRegistryLite extensionRegistry)
  593. throws com.google.protobuf.InvalidProtocolBufferException {
  594. return PARSER.parseFrom(data, extensionRegistry);
  595. }
  596. public static Im.Scrm.Ww.Proto.WSnsMsgNotice.SnsMsgNoticeMessage parseFrom(
  597. com.google.protobuf.ByteString data)
  598. throws com.google.protobuf.InvalidProtocolBufferException {
  599. return PARSER.parseFrom(data);
  600. }
  601. public static Im.Scrm.Ww.Proto.WSnsMsgNotice.SnsMsgNoticeMessage parseFrom(
  602. com.google.protobuf.ByteString data,
  603. com.google.protobuf.ExtensionRegistryLite extensionRegistry)
  604. throws com.google.protobuf.InvalidProtocolBufferException {
  605. return PARSER.parseFrom(data, extensionRegistry);
  606. }
  607. public static Im.Scrm.Ww.Proto.WSnsMsgNotice.SnsMsgNoticeMessage parseFrom(byte[] data)
  608. throws com.google.protobuf.InvalidProtocolBufferException {
  609. return PARSER.parseFrom(data);
  610. }
  611. public static Im.Scrm.Ww.Proto.WSnsMsgNotice.SnsMsgNoticeMessage parseFrom(
  612. byte[] data,
  613. com.google.protobuf.ExtensionRegistryLite extensionRegistry)
  614. throws com.google.protobuf.InvalidProtocolBufferException {
  615. return PARSER.parseFrom(data, extensionRegistry);
  616. }
  617. public static Im.Scrm.Ww.Proto.WSnsMsgNotice.SnsMsgNoticeMessage parseFrom(java.io.InputStream input)
  618. throws java.io.IOException {
  619. return com.google.protobuf.GeneratedMessageV3
  620. .parseWithIOException(PARSER, input);
  621. }
  622. public static Im.Scrm.Ww.Proto.WSnsMsgNotice.SnsMsgNoticeMessage parseFrom(
  623. java.io.InputStream input,
  624. com.google.protobuf.ExtensionRegistryLite extensionRegistry)
  625. throws java.io.IOException {
  626. return com.google.protobuf.GeneratedMessageV3
  627. .parseWithIOException(PARSER, input, extensionRegistry);
  628. }
  629. public static Im.Scrm.Ww.Proto.WSnsMsgNotice.SnsMsgNoticeMessage parseDelimitedFrom(java.io.InputStream input)
  630. throws java.io.IOException {
  631. return com.google.protobuf.GeneratedMessageV3
  632. .parseDelimitedWithIOException(PARSER, input);
  633. }
  634. public static Im.Scrm.Ww.Proto.WSnsMsgNotice.SnsMsgNoticeMessage parseDelimitedFrom(
  635. java.io.InputStream input,
  636. com.google.protobuf.ExtensionRegistryLite extensionRegistry)
  637. throws java.io.IOException {
  638. return com.google.protobuf.GeneratedMessageV3
  639. .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
  640. }
  641. public static Im.Scrm.Ww.Proto.WSnsMsgNotice.SnsMsgNoticeMessage parseFrom(
  642. com.google.protobuf.CodedInputStream input)
  643. throws java.io.IOException {
  644. return com.google.protobuf.GeneratedMessageV3
  645. .parseWithIOException(PARSER, input);
  646. }
  647. public static Im.Scrm.Ww.Proto.WSnsMsgNotice.SnsMsgNoticeMessage parseFrom(
  648. com.google.protobuf.CodedInputStream input,
  649. com.google.protobuf.ExtensionRegistryLite extensionRegistry)
  650. throws java.io.IOException {
  651. return com.google.protobuf.GeneratedMessageV3
  652. .parseWithIOException(PARSER, input, extensionRegistry);
  653. }
  654. @java.lang.Override
  655. public Builder newBuilderForType() { return newBuilder(); }
  656. public static Builder newBuilder() {
  657. return DEFAULT_INSTANCE.toBuilder();
  658. }
  659. public static Builder newBuilder(Im.Scrm.Ww.Proto.WSnsMsgNotice.SnsMsgNoticeMessage prototype) {
  660. return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
  661. }
  662. @java.lang.Override
  663. public Builder toBuilder() {
  664. return this == DEFAULT_INSTANCE
  665. ? new Builder() : new Builder().mergeFrom(this);
  666. }
  667. @java.lang.Override
  668. protected Builder newBuilderForType(
  669. com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
  670. Builder builder = new Builder(parent);
  671. return builder;
  672. }
  673. /**
  674. * Protobuf type {@code Im.Scrm.Ww.Proto.SnsMsgNoticeMessage}
  675. */
  676. public static final class Builder extends
  677. com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements
  678. // @@protoc_insertion_point(builder_implements:Im.Scrm.Ww.Proto.SnsMsgNoticeMessage)
  679. Im.Scrm.Ww.Proto.WSnsMsgNotice.SnsMsgNoticeMessageOrBuilder {
  680. public static final com.google.protobuf.Descriptors.Descriptor
  681. getDescriptor() {
  682. return Im.Scrm.Ww.Proto.WSnsMsgNotice.internal_static_Im_Scrm_Ww_Proto_SnsMsgNoticeMessage_descriptor;
  683. }
  684. @java.lang.Override
  685. protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
  686. internalGetFieldAccessorTable() {
  687. return Im.Scrm.Ww.Proto.WSnsMsgNotice.internal_static_Im_Scrm_Ww_Proto_SnsMsgNoticeMessage_fieldAccessorTable
  688. .ensureFieldAccessorsInitialized(
  689. Im.Scrm.Ww.Proto.WSnsMsgNotice.SnsMsgNoticeMessage.class, Im.Scrm.Ww.Proto.WSnsMsgNotice.SnsMsgNoticeMessage.Builder.class);
  690. }
  691. // Construct using Im.Scrm.Ww.Proto.WSnsMsgNotice.SnsMsgNoticeMessage.newBuilder()
  692. private Builder() {
  693. maybeForceBuilderInitialization();
  694. }
  695. private Builder(
  696. com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
  697. super(parent);
  698. maybeForceBuilderInitialization();
  699. }
  700. private void maybeForceBuilderInitialization() {
  701. if (com.google.protobuf.GeneratedMessageV3
  702. .alwaysUseFieldBuilders) {
  703. }
  704. }
  705. @java.lang.Override
  706. public Builder clear() {
  707. super.clear();
  708. wxId_ = 0L;
  709. type_ = 0;
  710. snsId_ = 0L;
  711. friendId_ = 0L;
  712. content_ = "";
  713. commentId_ = 0L;
  714. replyCommentId_ = 0L;
  715. replyWxId_ = 0L;
  716. time_ = 0;
  717. postId_ = "";
  718. return this;
  719. }
  720. @java.lang.Override
  721. public com.google.protobuf.Descriptors.Descriptor
  722. getDescriptorForType() {
  723. return Im.Scrm.Ww.Proto.WSnsMsgNotice.internal_static_Im_Scrm_Ww_Proto_SnsMsgNoticeMessage_descriptor;
  724. }
  725. @java.lang.Override
  726. public Im.Scrm.Ww.Proto.WSnsMsgNotice.SnsMsgNoticeMessage getDefaultInstanceForType() {
  727. return Im.Scrm.Ww.Proto.WSnsMsgNotice.SnsMsgNoticeMessage.getDefaultInstance();
  728. }
  729. @java.lang.Override
  730. public Im.Scrm.Ww.Proto.WSnsMsgNotice.SnsMsgNoticeMessage build() {
  731. Im.Scrm.Ww.Proto.WSnsMsgNotice.SnsMsgNoticeMessage result = buildPartial();
  732. if (!result.isInitialized()) {
  733. throw newUninitializedMessageException(result);
  734. }
  735. return result;
  736. }
  737. @java.lang.Override
  738. public Im.Scrm.Ww.Proto.WSnsMsgNotice.SnsMsgNoticeMessage buildPartial() {
  739. Im.Scrm.Ww.Proto.WSnsMsgNotice.SnsMsgNoticeMessage result = new Im.Scrm.Ww.Proto.WSnsMsgNotice.SnsMsgNoticeMessage(this);
  740. result.wxId_ = wxId_;
  741. result.type_ = type_;
  742. result.snsId_ = snsId_;
  743. result.friendId_ = friendId_;
  744. result.content_ = content_;
  745. result.commentId_ = commentId_;
  746. result.replyCommentId_ = replyCommentId_;
  747. result.replyWxId_ = replyWxId_;
  748. result.time_ = time_;
  749. result.postId_ = postId_;
  750. onBuilt();
  751. return result;
  752. }
  753. @java.lang.Override
  754. public Builder clone() {
  755. return super.clone();
  756. }
  757. @java.lang.Override
  758. public Builder setField(
  759. com.google.protobuf.Descriptors.FieldDescriptor field,
  760. java.lang.Object value) {
  761. return super.setField(field, value);
  762. }
  763. @java.lang.Override
  764. public Builder clearField(
  765. com.google.protobuf.Descriptors.FieldDescriptor field) {
  766. return super.clearField(field);
  767. }
  768. @java.lang.Override
  769. public Builder clearOneof(
  770. com.google.protobuf.Descriptors.OneofDescriptor oneof) {
  771. return super.clearOneof(oneof);
  772. }
  773. @java.lang.Override
  774. public Builder setRepeatedField(
  775. com.google.protobuf.Descriptors.FieldDescriptor field,
  776. int index, java.lang.Object value) {
  777. return super.setRepeatedField(field, index, value);
  778. }
  779. @java.lang.Override
  780. public Builder addRepeatedField(
  781. com.google.protobuf.Descriptors.FieldDescriptor field,
  782. java.lang.Object value) {
  783. return super.addRepeatedField(field, value);
  784. }
  785. @java.lang.Override
  786. public Builder mergeFrom(com.google.protobuf.Message other) {
  787. if (other instanceof Im.Scrm.Ww.Proto.WSnsMsgNotice.SnsMsgNoticeMessage) {
  788. return mergeFrom((Im.Scrm.Ww.Proto.WSnsMsgNotice.SnsMsgNoticeMessage)other);
  789. } else {
  790. super.mergeFrom(other);
  791. return this;
  792. }
  793. }
  794. public Builder mergeFrom(Im.Scrm.Ww.Proto.WSnsMsgNotice.SnsMsgNoticeMessage other) {
  795. if (other == Im.Scrm.Ww.Proto.WSnsMsgNotice.SnsMsgNoticeMessage.getDefaultInstance()) return this;
  796. if (other.getWxId() != 0L) {
  797. setWxId(other.getWxId());
  798. }
  799. if (other.getType() != 0) {
  800. setType(other.getType());
  801. }
  802. if (other.getSnsId() != 0L) {
  803. setSnsId(other.getSnsId());
  804. }
  805. if (other.getFriendId() != 0L) {
  806. setFriendId(other.getFriendId());
  807. }
  808. if (!other.getContent().isEmpty()) {
  809. content_ = other.content_;
  810. onChanged();
  811. }
  812. if (other.getCommentId() != 0L) {
  813. setCommentId(other.getCommentId());
  814. }
  815. if (other.getReplyCommentId() != 0L) {
  816. setReplyCommentId(other.getReplyCommentId());
  817. }
  818. if (other.getReplyWxId() != 0L) {
  819. setReplyWxId(other.getReplyWxId());
  820. }
  821. if (other.getTime() != 0) {
  822. setTime(other.getTime());
  823. }
  824. if (!other.getPostId().isEmpty()) {
  825. postId_ = other.postId_;
  826. onChanged();
  827. }
  828. this.mergeUnknownFields(other.unknownFields);
  829. onChanged();
  830. return this;
  831. }
  832. @java.lang.Override
  833. public final boolean isInitialized() {
  834. return true;
  835. }
  836. @java.lang.Override
  837. public Builder mergeFrom(
  838. com.google.protobuf.CodedInputStream input,
  839. com.google.protobuf.ExtensionRegistryLite extensionRegistry)
  840. throws java.io.IOException {
  841. Im.Scrm.Ww.Proto.WSnsMsgNotice.SnsMsgNoticeMessage parsedMessage = null;
  842. try {
  843. parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
  844. } catch (com.google.protobuf.InvalidProtocolBufferException e) {
  845. parsedMessage = (Im.Scrm.Ww.Proto.WSnsMsgNotice.SnsMsgNoticeMessage) e.getUnfinishedMessage();
  846. throw e.unwrapIOException();
  847. } finally {
  848. if (parsedMessage != null) {
  849. mergeFrom(parsedMessage);
  850. }
  851. }
  852. return this;
  853. }
  854. private long wxId_ ;
  855. /**
  856. * <pre>
  857. * </pre>
  858. *
  859. * <code>int64 WxId = 1;</code>
  860. * @return The wxId.
  861. */
  862. public long getWxId() {
  863. return wxId_;
  864. }
  865. /**
  866. * <pre>
  867. * </pre>
  868. *
  869. * <code>int64 WxId = 1;</code>
  870. * @param value The wxId to set.
  871. * @return This builder for chaining.
  872. */
  873. public Builder setWxId(long value) {
  874. wxId_ = value;
  875. onChanged();
  876. return this;
  877. }
  878. /**
  879. * <pre>
  880. * </pre>
  881. *
  882. * <code>int64 WxId = 1;</code>
  883. * @return This builder for chaining.
  884. */
  885. public Builder clearWxId() {
  886. wxId_ = 0L;
  887. onChanged();
  888. return this;
  889. }
  890. private int type_ ;
  891. /**
  892. * <pre>
  893. * 类型:1 评论,2 点赞
  894. * </pre>
  895. *
  896. * <code>int32 Type = 2;</code>
  897. * @return The type.
  898. */
  899. public int getType() {
  900. return type_;
  901. }
  902. /**
  903. * <pre>
  904. * 类型:1 评论,2 点赞
  905. * </pre>
  906. *
  907. * <code>int32 Type = 2;</code>
  908. * @param value The type to set.
  909. * @return This builder for chaining.
  910. */
  911. public Builder setType(int value) {
  912. type_ = value;
  913. onChanged();
  914. return this;
  915. }
  916. /**
  917. * <pre>
  918. * 类型:1 评论,2 点赞
  919. * </pre>
  920. *
  921. * <code>int32 Type = 2;</code>
  922. * @return This builder for chaining.
  923. */
  924. public Builder clearType() {
  925. type_ = 0;
  926. onChanged();
  927. return this;
  928. }
  929. private long snsId_ ;
  930. /**
  931. * <code>int64 SnsId = 3;</code>
  932. * @return The snsId.
  933. */
  934. public long getSnsId() {
  935. return snsId_;
  936. }
  937. /**
  938. * <code>int64 SnsId = 3;</code>
  939. * @param value The snsId to set.
  940. * @return This builder for chaining.
  941. */
  942. public Builder setSnsId(long value) {
  943. snsId_ = value;
  944. onChanged();
  945. return this;
  946. }
  947. /**
  948. * <code>int64 SnsId = 3;</code>
  949. * @return This builder for chaining.
  950. */
  951. public Builder clearSnsId() {
  952. snsId_ = 0L;
  953. onChanged();
  954. return this;
  955. }
  956. private long friendId_ ;
  957. /**
  958. * <pre>
  959. * 评论人的微信号
  960. * </pre>
  961. *
  962. * <code>int64 FriendId = 4;</code>
  963. * @return The friendId.
  964. */
  965. public long getFriendId() {
  966. return friendId_;
  967. }
  968. /**
  969. * <pre>
  970. * 评论人的微信号
  971. * </pre>
  972. *
  973. * <code>int64 FriendId = 4;</code>
  974. * @param value The friendId to set.
  975. * @return This builder for chaining.
  976. */
  977. public Builder setFriendId(long value) {
  978. friendId_ = value;
  979. onChanged();
  980. return this;
  981. }
  982. /**
  983. * <pre>
  984. * 评论人的微信号
  985. * </pre>
  986. *
  987. * <code>int64 FriendId = 4;</code>
  988. * @return This builder for chaining.
  989. */
  990. public Builder clearFriendId() {
  991. friendId_ = 0L;
  992. onChanged();
  993. return this;
  994. }
  995. private java.lang.Object content_ = "";
  996. /**
  997. * <pre>
  998. * 评论内容
  999. * </pre>
  1000. *
  1001. * <code>string Content = 5;</code>
  1002. * @return The content.
  1003. */
  1004. public java.lang.String getContent() {
  1005. java.lang.Object ref = content_;
  1006. if (!(ref instanceof java.lang.String)) {
  1007. com.google.protobuf.ByteString bs =
  1008. (com.google.protobuf.ByteString) ref;
  1009. java.lang.String s = bs.toStringUtf8();
  1010. content_ = s;
  1011. return s;
  1012. } else {
  1013. return (java.lang.String) ref;
  1014. }
  1015. }
  1016. /**
  1017. * <pre>
  1018. * 评论内容
  1019. * </pre>
  1020. *
  1021. * <code>string Content = 5;</code>
  1022. * @return The bytes for content.
  1023. */
  1024. public com.google.protobuf.ByteString
  1025. getContentBytes() {
  1026. java.lang.Object ref = content_;
  1027. if (ref instanceof String) {
  1028. com.google.protobuf.ByteString b =
  1029. com.google.protobuf.ByteString.copyFromUtf8(
  1030. (java.lang.String) ref);
  1031. content_ = b;
  1032. return b;
  1033. } else {
  1034. return (com.google.protobuf.ByteString) ref;
  1035. }
  1036. }
  1037. /**
  1038. * <pre>
  1039. * 评论内容
  1040. * </pre>
  1041. *
  1042. * <code>string Content = 5;</code>
  1043. * @param value The content to set.
  1044. * @return This builder for chaining.
  1045. */
  1046. public Builder setContent(
  1047. java.lang.String value) {
  1048. if (value == null) {
  1049. throw new NullPointerException();
  1050. }
  1051. content_ = value;
  1052. onChanged();
  1053. return this;
  1054. }
  1055. /**
  1056. * <pre>
  1057. * 评论内容
  1058. * </pre>
  1059. *
  1060. * <code>string Content = 5;</code>
  1061. * @return This builder for chaining.
  1062. */
  1063. public Builder clearContent() {
  1064. content_ = getDefaultInstance().getContent();
  1065. onChanged();
  1066. return this;
  1067. }
  1068. /**
  1069. * <pre>
  1070. * 评论内容
  1071. * </pre>
  1072. *
  1073. * <code>string Content = 5;</code>
  1074. * @param value The bytes for content to set.
  1075. * @return This builder for chaining.
  1076. */
  1077. public Builder setContentBytes(
  1078. com.google.protobuf.ByteString value) {
  1079. if (value == null) {
  1080. throw new NullPointerException();
  1081. }
  1082. checkByteStringIsUtf8(value);
  1083. content_ = value;
  1084. onChanged();
  1085. return this;
  1086. }
  1087. private long commentId_ ;
  1088. /**
  1089. * <pre>
  1090. * 微信本地数据库的id
  1091. * </pre>
  1092. *
  1093. * <code>int64 CommentId = 6;</code>
  1094. * @return The commentId.
  1095. */
  1096. public long getCommentId() {
  1097. return commentId_;
  1098. }
  1099. /**
  1100. * <pre>
  1101. * 微信本地数据库的id
  1102. * </pre>
  1103. *
  1104. * <code>int64 CommentId = 6;</code>
  1105. * @param value The commentId to set.
  1106. * @return This builder for chaining.
  1107. */
  1108. public Builder setCommentId(long value) {
  1109. commentId_ = value;
  1110. onChanged();
  1111. return this;
  1112. }
  1113. /**
  1114. * <pre>
  1115. * 微信本地数据库的id
  1116. * </pre>
  1117. *
  1118. * <code>int64 CommentId = 6;</code>
  1119. * @return This builder for chaining.
  1120. */
  1121. public Builder clearCommentId() {
  1122. commentId_ = 0L;
  1123. onChanged();
  1124. return this;
  1125. }
  1126. private long replyCommentId_ ;
  1127. /**
  1128. * <pre>
  1129. * 回复的微信本地数据库的id
  1130. * </pre>
  1131. *
  1132. * <code>int64 ReplyCommentId = 7;</code>
  1133. * @return The replyCommentId.
  1134. */
  1135. public long getReplyCommentId() {
  1136. return replyCommentId_;
  1137. }
  1138. /**
  1139. * <pre>
  1140. * 回复的微信本地数据库的id
  1141. * </pre>
  1142. *
  1143. * <code>int64 ReplyCommentId = 7;</code>
  1144. * @param value The replyCommentId to set.
  1145. * @return This builder for chaining.
  1146. */
  1147. public Builder setReplyCommentId(long value) {
  1148. replyCommentId_ = value;
  1149. onChanged();
  1150. return this;
  1151. }
  1152. /**
  1153. * <pre>
  1154. * 回复的微信本地数据库的id
  1155. * </pre>
  1156. *
  1157. * <code>int64 ReplyCommentId = 7;</code>
  1158. * @return This builder for chaining.
  1159. */
  1160. public Builder clearReplyCommentId() {
  1161. replyCommentId_ = 0L;
  1162. onChanged();
  1163. return this;
  1164. }
  1165. private long replyWxId_ ;
  1166. /**
  1167. * <pre>
  1168. * 评论对象的微信号
  1169. * </pre>
  1170. *
  1171. * <code>int64 ReplyWxId = 8;</code>
  1172. * @return The replyWxId.
  1173. */
  1174. public long getReplyWxId() {
  1175. return replyWxId_;
  1176. }
  1177. /**
  1178. * <pre>
  1179. * 评论对象的微信号
  1180. * </pre>
  1181. *
  1182. * <code>int64 ReplyWxId = 8;</code>
  1183. * @param value The replyWxId to set.
  1184. * @return This builder for chaining.
  1185. */
  1186. public Builder setReplyWxId(long value) {
  1187. replyWxId_ = value;
  1188. onChanged();
  1189. return this;
  1190. }
  1191. /**
  1192. * <pre>
  1193. * 评论对象的微信号
  1194. * </pre>
  1195. *
  1196. * <code>int64 ReplyWxId = 8;</code>
  1197. * @return This builder for chaining.
  1198. */
  1199. public Builder clearReplyWxId() {
  1200. replyWxId_ = 0L;
  1201. onChanged();
  1202. return this;
  1203. }
  1204. private int time_ ;
  1205. /**
  1206. * <pre>
  1207. * 评论时间
  1208. * </pre>
  1209. *
  1210. * <code>int32 Time = 9;</code>
  1211. * @return The time.
  1212. */
  1213. public int getTime() {
  1214. return time_;
  1215. }
  1216. /**
  1217. * <pre>
  1218. * 评论时间
  1219. * </pre>
  1220. *
  1221. * <code>int32 Time = 9;</code>
  1222. * @param value The time to set.
  1223. * @return This builder for chaining.
  1224. */
  1225. public Builder setTime(int value) {
  1226. time_ = value;
  1227. onChanged();
  1228. return this;
  1229. }
  1230. /**
  1231. * <pre>
  1232. * 评论时间
  1233. * </pre>
  1234. *
  1235. * <code>int32 Time = 9;</code>
  1236. * @return This builder for chaining.
  1237. */
  1238. public Builder clearTime() {
  1239. time_ = 0;
  1240. onChanged();
  1241. return this;
  1242. }
  1243. private java.lang.Object postId_ = "";
  1244. /**
  1245. * <pre>
  1246. * sns postid
  1247. * </pre>
  1248. *
  1249. * <code>string PostId = 10;</code>
  1250. * @return The postId.
  1251. */
  1252. public java.lang.String getPostId() {
  1253. java.lang.Object ref = postId_;
  1254. if (!(ref instanceof java.lang.String)) {
  1255. com.google.protobuf.ByteString bs =
  1256. (com.google.protobuf.ByteString) ref;
  1257. java.lang.String s = bs.toStringUtf8();
  1258. postId_ = s;
  1259. return s;
  1260. } else {
  1261. return (java.lang.String) ref;
  1262. }
  1263. }
  1264. /**
  1265. * <pre>
  1266. * sns postid
  1267. * </pre>
  1268. *
  1269. * <code>string PostId = 10;</code>
  1270. * @return The bytes for postId.
  1271. */
  1272. public com.google.protobuf.ByteString
  1273. getPostIdBytes() {
  1274. java.lang.Object ref = postId_;
  1275. if (ref instanceof String) {
  1276. com.google.protobuf.ByteString b =
  1277. com.google.protobuf.ByteString.copyFromUtf8(
  1278. (java.lang.String) ref);
  1279. postId_ = b;
  1280. return b;
  1281. } else {
  1282. return (com.google.protobuf.ByteString) ref;
  1283. }
  1284. }
  1285. /**
  1286. * <pre>
  1287. * sns postid
  1288. * </pre>
  1289. *
  1290. * <code>string PostId = 10;</code>
  1291. * @param value The postId to set.
  1292. * @return This builder for chaining.
  1293. */
  1294. public Builder setPostId(
  1295. java.lang.String value) {
  1296. if (value == null) {
  1297. throw new NullPointerException();
  1298. }
  1299. postId_ = value;
  1300. onChanged();
  1301. return this;
  1302. }
  1303. /**
  1304. * <pre>
  1305. * sns postid
  1306. * </pre>
  1307. *
  1308. * <code>string PostId = 10;</code>
  1309. * @return This builder for chaining.
  1310. */
  1311. public Builder clearPostId() {
  1312. postId_ = getDefaultInstance().getPostId();
  1313. onChanged();
  1314. return this;
  1315. }
  1316. /**
  1317. * <pre>
  1318. * sns postid
  1319. * </pre>
  1320. *
  1321. * <code>string PostId = 10;</code>
  1322. * @param value The bytes for postId to set.
  1323. * @return This builder for chaining.
  1324. */
  1325. public Builder setPostIdBytes(
  1326. com.google.protobuf.ByteString value) {
  1327. if (value == null) {
  1328. throw new NullPointerException();
  1329. }
  1330. checkByteStringIsUtf8(value);
  1331. postId_ = value;
  1332. onChanged();
  1333. return this;
  1334. }
  1335. @java.lang.Override
  1336. public final Builder setUnknownFields(
  1337. final com.google.protobuf.UnknownFieldSet unknownFields) {
  1338. return super.setUnknownFields(unknownFields);
  1339. }
  1340. @java.lang.Override
  1341. public final Builder mergeUnknownFields(
  1342. final com.google.protobuf.UnknownFieldSet unknownFields) {
  1343. return super.mergeUnknownFields(unknownFields);
  1344. }
  1345. // @@protoc_insertion_point(builder_scope:Im.Scrm.Ww.Proto.SnsMsgNoticeMessage)
  1346. }
  1347. // @@protoc_insertion_point(class_scope:Im.Scrm.Ww.Proto.SnsMsgNoticeMessage)
  1348. private static final Im.Scrm.Ww.Proto.WSnsMsgNotice.SnsMsgNoticeMessage DEFAULT_INSTANCE;
  1349. static {
  1350. DEFAULT_INSTANCE = new Im.Scrm.Ww.Proto.WSnsMsgNotice.SnsMsgNoticeMessage();
  1351. }
  1352. public static Im.Scrm.Ww.Proto.WSnsMsgNotice.SnsMsgNoticeMessage getDefaultInstance() {
  1353. return DEFAULT_INSTANCE;
  1354. }
  1355. private static final com.google.protobuf.Parser<SnsMsgNoticeMessage>
  1356. PARSER = new com.google.protobuf.AbstractParser<SnsMsgNoticeMessage>() {
  1357. @java.lang.Override
  1358. public SnsMsgNoticeMessage parsePartialFrom(
  1359. com.google.protobuf.CodedInputStream input,
  1360. com.google.protobuf.ExtensionRegistryLite extensionRegistry)
  1361. throws com.google.protobuf.InvalidProtocolBufferException {
  1362. return new SnsMsgNoticeMessage(input, extensionRegistry);
  1363. }
  1364. };
  1365. public static com.google.protobuf.Parser<SnsMsgNoticeMessage> parser() {
  1366. return PARSER;
  1367. }
  1368. @java.lang.Override
  1369. public com.google.protobuf.Parser<SnsMsgNoticeMessage> getParserForType() {
  1370. return PARSER;
  1371. }
  1372. @java.lang.Override
  1373. public Im.Scrm.Ww.Proto.WSnsMsgNotice.SnsMsgNoticeMessage getDefaultInstanceForType() {
  1374. return DEFAULT_INSTANCE;
  1375. }
  1376. }
  1377. private static final com.google.protobuf.Descriptors.Descriptor
  1378. internal_static_Im_Scrm_Ww_Proto_SnsMsgNoticeMessage_descriptor;
  1379. private static final
  1380. com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
  1381. internal_static_Im_Scrm_Ww_Proto_SnsMsgNoticeMessage_fieldAccessorTable;
  1382. public static com.google.protobuf.Descriptors.FileDescriptor
  1383. getDescriptor() {
  1384. return descriptor;
  1385. }
  1386. private static com.google.protobuf.Descriptors.FileDescriptor
  1387. descriptor;
  1388. static {
  1389. java.lang.String[] descriptorData = {
  1390. "\n\023WSnsMsgNotice.proto\022\020Im.Scrm.Ww.Proto\032" +
  1391. "\020WTransport.proto\"\277\001\n\023SnsMsgNoticeMessag" +
  1392. "e\022\014\n\004WxId\030\001 \001(\003\022\014\n\004Type\030\002 \001(\005\022\r\n\005SnsId\030\003" +
  1393. " \001(\003\022\020\n\010FriendId\030\004 \001(\003\022\017\n\007Content\030\005 \001(\t\022" +
  1394. "\021\n\tCommentId\030\006 \001(\003\022\026\n\016ReplyCommentId\030\007 \001" +
  1395. "(\003\022\021\n\tReplyWxId\030\010 \001(\003\022\014\n\004Time\030\t \001(\005\022\016\n\006P" +
  1396. "ostId\030\n \001(\tb\006proto3"
  1397. };
  1398. descriptor = com.google.protobuf.Descriptors.FileDescriptor
  1399. .internalBuildGeneratedFileFrom(descriptorData,
  1400. new com.google.protobuf.Descriptors.FileDescriptor[] {
  1401. Im.Scrm.Ww.Proto.WTransport.getDescriptor(),
  1402. });
  1403. internal_static_Im_Scrm_Ww_Proto_SnsMsgNoticeMessage_descriptor =
  1404. getDescriptor().getMessageTypes().get(0);
  1405. internal_static_Im_Scrm_Ww_Proto_SnsMsgNoticeMessage_fieldAccessorTable = new
  1406. com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
  1407. internal_static_Im_Scrm_Ww_Proto_SnsMsgNoticeMessage_descriptor,
  1408. new java.lang.String[] { "WxId", "Type", "SnsId", "FriendId", "Content", "CommentId", "ReplyCommentId", "ReplyWxId", "Time", "PostId", });
  1409. Im.Scrm.Ww.Proto.WTransport.getDescriptor();
  1410. }
  1411. // @@protoc_insertion_point(outer_class_scope)
  1412. }