WOneWayCustomerPushNotice.java 29 KB

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