WContactPushNotice.java 106 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798279928002801280228032804280528062807280828092810281128122813281428152816281728182819282028212822282328242825282628272828282928302831283228332834283528362837283828392840284128422843284428452846284728482849285028512852285328542855285628572858285928602861286228632864286528662867286828692870287128722873287428752876287728782879288028812882288328842885288628872888288928902891289228932894289528962897289828992900290129022903290429052906290729082909291029112912291329142915291629172918291929202921292229232924292529262927292829292930293129322933293429352936293729382939294029412942294329442945294629472948294929502951295229532954295529562957295829592960296129622963296429652966296729682969297029712972297329742975297629772978297929802981298229832984298529862987298829892990299129922993299429952996299729982999300030013002300330043005300630073008300930103011301230133014301530163017301830193020302130223023302430253026302730283029303030313032303330343035303630373038303930403041304230433044304530463047304830493050305130523053305430553056305730583059306030613062306330643065306630673068306930703071307230733074307530763077307830793080308130823083308430853086308730883089309030913092309330943095309630973098309931003101310231033104310531063107310831093110311131123113311431153116311731183119312031213122312331243125312631273128312931303131313231333134313531363137313831393140314131423143314431453146314731483149315031513152315331543155315631573158315931603161316231633164316531663167316831693170317131723173317431753176317731783179318031813182318331843185318631873188318931903191319231933194319531963197319831993200320132023203320432053206320732083209321032113212321332143215321632173218321932203221322232233224322532263227322832293230323132323233323432353236323732383239324032413242324332443245324632473248324932503251325232533254325532563257325832593260326132623263326432653266326732683269327032713272327332743275327632773278327932803281328232833284328532863287328832893290329132923293329432953296329732983299330033013302330333043305330633073308330933103311331233133314331533163317331833193320332133223323332433253326332733283329333033313332333333343335333633373338333933403341334233433344334533463347334833493350335133523353335433553356335733583359336033613362336333643365336633673368336933703371337233733374337533763377337833793380338133823383338433853386338733883389339033913392339333943395339633973398339934003401340234033404340534063407340834093410341134123413341434153416341734183419342034213422342334243425342634273428342934303431343234333434343534363437343834393440344134423443344434453446344734483449345034513452345334543455345634573458345934603461
  1. // Generated by the protocol buffer compiler. DO NOT EDIT!
  2. // source: WContactPushNotice.proto
  3. package Im.Scrm.Ww.Proto;
  4. public final class WContactPushNotice {
  5. private WContactPushNotice() {}
  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 ContactPushNoticeMessageOrBuilder extends
  15. // @@protoc_insertion_point(interface_extends:Im.Scrm.Ww.Proto.ContactPushNoticeMessage)
  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>repeated .Im.Scrm.Ww.Proto.ContactMessage Contacts = 2;</code>
  32. */
  33. java.util.List<Im.Scrm.Ww.Proto.WContactPushNotice.ContactMessage>
  34. getContactsList();
  35. /**
  36. * <pre>
  37. * 好友信息模型 多个
  38. * </pre>
  39. *
  40. * <code>repeated .Im.Scrm.Ww.Proto.ContactMessage Contacts = 2;</code>
  41. */
  42. Im.Scrm.Ww.Proto.WContactPushNotice.ContactMessage getContacts(int index);
  43. /**
  44. * <pre>
  45. * 好友信息模型 多个
  46. * </pre>
  47. *
  48. * <code>repeated .Im.Scrm.Ww.Proto.ContactMessage Contacts = 2;</code>
  49. */
  50. int getContactsCount();
  51. /**
  52. * <pre>
  53. * 好友信息模型 多个
  54. * </pre>
  55. *
  56. * <code>repeated .Im.Scrm.Ww.Proto.ContactMessage Contacts = 2;</code>
  57. */
  58. java.util.List<? extends Im.Scrm.Ww.Proto.WContactPushNotice.ContactMessageOrBuilder>
  59. getContactsOrBuilderList();
  60. /**
  61. * <pre>
  62. * 好友信息模型 多个
  63. * </pre>
  64. *
  65. * <code>repeated .Im.Scrm.Ww.Proto.ContactMessage Contacts = 2;</code>
  66. */
  67. Im.Scrm.Ww.Proto.WContactPushNotice.ContactMessageOrBuilder getContactsOrBuilder(
  68. int index);
  69. /**
  70. * <code>int32 Size = 3;</code>
  71. * @return The size.
  72. */
  73. int getSize();
  74. /**
  75. * <code>int32 Count = 4;</code>
  76. * @return The count.
  77. */
  78. int getCount();
  79. /**
  80. * <code>int32 Page = 5;</code>
  81. * @return The page.
  82. */
  83. int getPage();
  84. /**
  85. * <code>int64 TaskId = 6;</code>
  86. * @return The taskId.
  87. */
  88. long getTaskId();
  89. }
  90. /**
  91. * Protobuf type {@code Im.Scrm.Ww.Proto.ContactPushNoticeMessage}
  92. */
  93. public static final class ContactPushNoticeMessage extends
  94. com.google.protobuf.GeneratedMessageV3 implements
  95. // @@protoc_insertion_point(message_implements:Im.Scrm.Ww.Proto.ContactPushNoticeMessage)
  96. ContactPushNoticeMessageOrBuilder {
  97. private static final long serialVersionUID = 0L;
  98. // Use ContactPushNoticeMessage.newBuilder() to construct.
  99. private ContactPushNoticeMessage(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {
  100. super(builder);
  101. }
  102. private ContactPushNoticeMessage() {
  103. contacts_ = java.util.Collections.emptyList();
  104. }
  105. @java.lang.Override
  106. @SuppressWarnings({"unused"})
  107. protected java.lang.Object newInstance(
  108. UnusedPrivateParameter unused) {
  109. return new ContactPushNoticeMessage();
  110. }
  111. @java.lang.Override
  112. public final com.google.protobuf.UnknownFieldSet
  113. getUnknownFields() {
  114. return this.unknownFields;
  115. }
  116. private ContactPushNoticeMessage(
  117. com.google.protobuf.CodedInputStream input,
  118. com.google.protobuf.ExtensionRegistryLite extensionRegistry)
  119. throws com.google.protobuf.InvalidProtocolBufferException {
  120. this();
  121. if (extensionRegistry == null) {
  122. throw new java.lang.NullPointerException();
  123. }
  124. int mutable_bitField0_ = 0;
  125. com.google.protobuf.UnknownFieldSet.Builder unknownFields =
  126. com.google.protobuf.UnknownFieldSet.newBuilder();
  127. try {
  128. boolean done = false;
  129. while (!done) {
  130. int tag = input.readTag();
  131. switch (tag) {
  132. case 0:
  133. done = true;
  134. break;
  135. case 8: {
  136. wxId_ = input.readInt64();
  137. break;
  138. }
  139. case 18: {
  140. if (!((mutable_bitField0_ & 0x00000001) != 0)) {
  141. contacts_ = new java.util.ArrayList<Im.Scrm.Ww.Proto.WContactPushNotice.ContactMessage>();
  142. mutable_bitField0_ |= 0x00000001;
  143. }
  144. contacts_.add(
  145. input.readMessage(Im.Scrm.Ww.Proto.WContactPushNotice.ContactMessage.parser(), extensionRegistry));
  146. break;
  147. }
  148. case 24: {
  149. size_ = input.readInt32();
  150. break;
  151. }
  152. case 32: {
  153. count_ = input.readInt32();
  154. break;
  155. }
  156. case 40: {
  157. page_ = input.readInt32();
  158. break;
  159. }
  160. case 48: {
  161. taskId_ = input.readInt64();
  162. break;
  163. }
  164. default: {
  165. if (!parseUnknownField(
  166. input, unknownFields, extensionRegistry, tag)) {
  167. done = true;
  168. }
  169. break;
  170. }
  171. }
  172. }
  173. } catch (com.google.protobuf.InvalidProtocolBufferException e) {
  174. throw e.setUnfinishedMessage(this);
  175. } catch (java.io.IOException e) {
  176. throw new com.google.protobuf.InvalidProtocolBufferException(
  177. e).setUnfinishedMessage(this);
  178. } finally {
  179. if (((mutable_bitField0_ & 0x00000001) != 0)) {
  180. contacts_ = java.util.Collections.unmodifiableList(contacts_);
  181. }
  182. this.unknownFields = unknownFields.build();
  183. makeExtensionsImmutable();
  184. }
  185. }
  186. public static final com.google.protobuf.Descriptors.Descriptor
  187. getDescriptor() {
  188. return Im.Scrm.Ww.Proto.WContactPushNotice.internal_static_Im_Scrm_Ww_Proto_ContactPushNoticeMessage_descriptor;
  189. }
  190. @java.lang.Override
  191. protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
  192. internalGetFieldAccessorTable() {
  193. return Im.Scrm.Ww.Proto.WContactPushNotice.internal_static_Im_Scrm_Ww_Proto_ContactPushNoticeMessage_fieldAccessorTable
  194. .ensureFieldAccessorsInitialized(
  195. Im.Scrm.Ww.Proto.WContactPushNotice.ContactPushNoticeMessage.class, Im.Scrm.Ww.Proto.WContactPushNotice.ContactPushNoticeMessage.Builder.class);
  196. }
  197. public static final int WXID_FIELD_NUMBER = 1;
  198. private long wxId_;
  199. /**
  200. * <pre>
  201. * 设备企业WX号
  202. * </pre>
  203. *
  204. * <code>int64 WxId = 1;</code>
  205. * @return The wxId.
  206. */
  207. public long getWxId() {
  208. return wxId_;
  209. }
  210. public static final int CONTACTS_FIELD_NUMBER = 2;
  211. private java.util.List<Im.Scrm.Ww.Proto.WContactPushNotice.ContactMessage> contacts_;
  212. /**
  213. * <pre>
  214. * 好友信息模型 多个
  215. * </pre>
  216. *
  217. * <code>repeated .Im.Scrm.Ww.Proto.ContactMessage Contacts = 2;</code>
  218. */
  219. public java.util.List<Im.Scrm.Ww.Proto.WContactPushNotice.ContactMessage> getContactsList() {
  220. return contacts_;
  221. }
  222. /**
  223. * <pre>
  224. * 好友信息模型 多个
  225. * </pre>
  226. *
  227. * <code>repeated .Im.Scrm.Ww.Proto.ContactMessage Contacts = 2;</code>
  228. */
  229. public java.util.List<? extends Im.Scrm.Ww.Proto.WContactPushNotice.ContactMessageOrBuilder>
  230. getContactsOrBuilderList() {
  231. return contacts_;
  232. }
  233. /**
  234. * <pre>
  235. * 好友信息模型 多个
  236. * </pre>
  237. *
  238. * <code>repeated .Im.Scrm.Ww.Proto.ContactMessage Contacts = 2;</code>
  239. */
  240. public int getContactsCount() {
  241. return contacts_.size();
  242. }
  243. /**
  244. * <pre>
  245. * 好友信息模型 多个
  246. * </pre>
  247. *
  248. * <code>repeated .Im.Scrm.Ww.Proto.ContactMessage Contacts = 2;</code>
  249. */
  250. public Im.Scrm.Ww.Proto.WContactPushNotice.ContactMessage getContacts(int index) {
  251. return contacts_.get(index);
  252. }
  253. /**
  254. * <pre>
  255. * 好友信息模型 多个
  256. * </pre>
  257. *
  258. * <code>repeated .Im.Scrm.Ww.Proto.ContactMessage Contacts = 2;</code>
  259. */
  260. public Im.Scrm.Ww.Proto.WContactPushNotice.ContactMessageOrBuilder getContactsOrBuilder(
  261. int index) {
  262. return contacts_.get(index);
  263. }
  264. public static final int SIZE_FIELD_NUMBER = 3;
  265. private int size_;
  266. /**
  267. * <code>int32 Size = 3;</code>
  268. * @return The size.
  269. */
  270. public int getSize() {
  271. return size_;
  272. }
  273. public static final int COUNT_FIELD_NUMBER = 4;
  274. private int count_;
  275. /**
  276. * <code>int32 Count = 4;</code>
  277. * @return The count.
  278. */
  279. public int getCount() {
  280. return count_;
  281. }
  282. public static final int PAGE_FIELD_NUMBER = 5;
  283. private int page_;
  284. /**
  285. * <code>int32 Page = 5;</code>
  286. * @return The page.
  287. */
  288. public int getPage() {
  289. return page_;
  290. }
  291. public static final int TASKID_FIELD_NUMBER = 6;
  292. private long taskId_;
  293. /**
  294. * <code>int64 TaskId = 6;</code>
  295. * @return The taskId.
  296. */
  297. public long getTaskId() {
  298. return taskId_;
  299. }
  300. private byte memoizedIsInitialized = -1;
  301. @java.lang.Override
  302. public final boolean isInitialized() {
  303. byte isInitialized = memoizedIsInitialized;
  304. if (isInitialized == 1) return true;
  305. if (isInitialized == 0) return false;
  306. memoizedIsInitialized = 1;
  307. return true;
  308. }
  309. @java.lang.Override
  310. public void writeTo(com.google.protobuf.CodedOutputStream output)
  311. throws java.io.IOException {
  312. if (wxId_ != 0L) {
  313. output.writeInt64(1, wxId_);
  314. }
  315. for (int i = 0; i < contacts_.size(); i++) {
  316. output.writeMessage(2, contacts_.get(i));
  317. }
  318. if (size_ != 0) {
  319. output.writeInt32(3, size_);
  320. }
  321. if (count_ != 0) {
  322. output.writeInt32(4, count_);
  323. }
  324. if (page_ != 0) {
  325. output.writeInt32(5, page_);
  326. }
  327. if (taskId_ != 0L) {
  328. output.writeInt64(6, taskId_);
  329. }
  330. unknownFields.writeTo(output);
  331. }
  332. @java.lang.Override
  333. public int getSerializedSize() {
  334. int size = memoizedSize;
  335. if (size != -1) return size;
  336. size = 0;
  337. if (wxId_ != 0L) {
  338. size += com.google.protobuf.CodedOutputStream
  339. .computeInt64Size(1, wxId_);
  340. }
  341. for (int i = 0; i < contacts_.size(); i++) {
  342. size += com.google.protobuf.CodedOutputStream
  343. .computeMessageSize(2, contacts_.get(i));
  344. }
  345. if (size_ != 0) {
  346. size += com.google.protobuf.CodedOutputStream
  347. .computeInt32Size(3, size_);
  348. }
  349. if (count_ != 0) {
  350. size += com.google.protobuf.CodedOutputStream
  351. .computeInt32Size(4, count_);
  352. }
  353. if (page_ != 0) {
  354. size += com.google.protobuf.CodedOutputStream
  355. .computeInt32Size(5, page_);
  356. }
  357. if (taskId_ != 0L) {
  358. size += com.google.protobuf.CodedOutputStream
  359. .computeInt64Size(6, taskId_);
  360. }
  361. size += unknownFields.getSerializedSize();
  362. memoizedSize = size;
  363. return size;
  364. }
  365. @java.lang.Override
  366. public boolean equals(final java.lang.Object obj) {
  367. if (obj == this) {
  368. return true;
  369. }
  370. if (!(obj instanceof Im.Scrm.Ww.Proto.WContactPushNotice.ContactPushNoticeMessage)) {
  371. return super.equals(obj);
  372. }
  373. Im.Scrm.Ww.Proto.WContactPushNotice.ContactPushNoticeMessage other = (Im.Scrm.Ww.Proto.WContactPushNotice.ContactPushNoticeMessage) obj;
  374. if (getWxId()
  375. != other.getWxId()) return false;
  376. if (!getContactsList()
  377. .equals(other.getContactsList())) return false;
  378. if (getSize()
  379. != other.getSize()) return false;
  380. if (getCount()
  381. != other.getCount()) return false;
  382. if (getPage()
  383. != other.getPage()) return false;
  384. if (getTaskId()
  385. != other.getTaskId()) return false;
  386. if (!unknownFields.equals(other.unknownFields)) return false;
  387. return true;
  388. }
  389. @java.lang.Override
  390. public int hashCode() {
  391. if (memoizedHashCode != 0) {
  392. return memoizedHashCode;
  393. }
  394. int hash = 41;
  395. hash = (19 * hash) + getDescriptor().hashCode();
  396. hash = (37 * hash) + WXID_FIELD_NUMBER;
  397. hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
  398. getWxId());
  399. if (getContactsCount() > 0) {
  400. hash = (37 * hash) + CONTACTS_FIELD_NUMBER;
  401. hash = (53 * hash) + getContactsList().hashCode();
  402. }
  403. hash = (37 * hash) + SIZE_FIELD_NUMBER;
  404. hash = (53 * hash) + getSize();
  405. hash = (37 * hash) + COUNT_FIELD_NUMBER;
  406. hash = (53 * hash) + getCount();
  407. hash = (37 * hash) + PAGE_FIELD_NUMBER;
  408. hash = (53 * hash) + getPage();
  409. hash = (37 * hash) + TASKID_FIELD_NUMBER;
  410. hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
  411. getTaskId());
  412. hash = (29 * hash) + unknownFields.hashCode();
  413. memoizedHashCode = hash;
  414. return hash;
  415. }
  416. public static Im.Scrm.Ww.Proto.WContactPushNotice.ContactPushNoticeMessage parseFrom(
  417. java.nio.ByteBuffer data)
  418. throws com.google.protobuf.InvalidProtocolBufferException {
  419. return PARSER.parseFrom(data);
  420. }
  421. public static Im.Scrm.Ww.Proto.WContactPushNotice.ContactPushNoticeMessage parseFrom(
  422. java.nio.ByteBuffer data,
  423. com.google.protobuf.ExtensionRegistryLite extensionRegistry)
  424. throws com.google.protobuf.InvalidProtocolBufferException {
  425. return PARSER.parseFrom(data, extensionRegistry);
  426. }
  427. public static Im.Scrm.Ww.Proto.WContactPushNotice.ContactPushNoticeMessage parseFrom(
  428. com.google.protobuf.ByteString data)
  429. throws com.google.protobuf.InvalidProtocolBufferException {
  430. return PARSER.parseFrom(data);
  431. }
  432. public static Im.Scrm.Ww.Proto.WContactPushNotice.ContactPushNoticeMessage parseFrom(
  433. com.google.protobuf.ByteString data,
  434. com.google.protobuf.ExtensionRegistryLite extensionRegistry)
  435. throws com.google.protobuf.InvalidProtocolBufferException {
  436. return PARSER.parseFrom(data, extensionRegistry);
  437. }
  438. public static Im.Scrm.Ww.Proto.WContactPushNotice.ContactPushNoticeMessage parseFrom(byte[] data)
  439. throws com.google.protobuf.InvalidProtocolBufferException {
  440. return PARSER.parseFrom(data);
  441. }
  442. public static Im.Scrm.Ww.Proto.WContactPushNotice.ContactPushNoticeMessage parseFrom(
  443. byte[] data,
  444. com.google.protobuf.ExtensionRegistryLite extensionRegistry)
  445. throws com.google.protobuf.InvalidProtocolBufferException {
  446. return PARSER.parseFrom(data, extensionRegistry);
  447. }
  448. public static Im.Scrm.Ww.Proto.WContactPushNotice.ContactPushNoticeMessage parseFrom(java.io.InputStream input)
  449. throws java.io.IOException {
  450. return com.google.protobuf.GeneratedMessageV3
  451. .parseWithIOException(PARSER, input);
  452. }
  453. public static Im.Scrm.Ww.Proto.WContactPushNotice.ContactPushNoticeMessage parseFrom(
  454. java.io.InputStream input,
  455. com.google.protobuf.ExtensionRegistryLite extensionRegistry)
  456. throws java.io.IOException {
  457. return com.google.protobuf.GeneratedMessageV3
  458. .parseWithIOException(PARSER, input, extensionRegistry);
  459. }
  460. public static Im.Scrm.Ww.Proto.WContactPushNotice.ContactPushNoticeMessage parseDelimitedFrom(java.io.InputStream input)
  461. throws java.io.IOException {
  462. return com.google.protobuf.GeneratedMessageV3
  463. .parseDelimitedWithIOException(PARSER, input);
  464. }
  465. public static Im.Scrm.Ww.Proto.WContactPushNotice.ContactPushNoticeMessage parseDelimitedFrom(
  466. java.io.InputStream input,
  467. com.google.protobuf.ExtensionRegistryLite extensionRegistry)
  468. throws java.io.IOException {
  469. return com.google.protobuf.GeneratedMessageV3
  470. .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
  471. }
  472. public static Im.Scrm.Ww.Proto.WContactPushNotice.ContactPushNoticeMessage parseFrom(
  473. com.google.protobuf.CodedInputStream input)
  474. throws java.io.IOException {
  475. return com.google.protobuf.GeneratedMessageV3
  476. .parseWithIOException(PARSER, input);
  477. }
  478. public static Im.Scrm.Ww.Proto.WContactPushNotice.ContactPushNoticeMessage parseFrom(
  479. com.google.protobuf.CodedInputStream input,
  480. com.google.protobuf.ExtensionRegistryLite extensionRegistry)
  481. throws java.io.IOException {
  482. return com.google.protobuf.GeneratedMessageV3
  483. .parseWithIOException(PARSER, input, extensionRegistry);
  484. }
  485. @java.lang.Override
  486. public Builder newBuilderForType() { return newBuilder(); }
  487. public static Builder newBuilder() {
  488. return DEFAULT_INSTANCE.toBuilder();
  489. }
  490. public static Builder newBuilder(Im.Scrm.Ww.Proto.WContactPushNotice.ContactPushNoticeMessage prototype) {
  491. return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
  492. }
  493. @java.lang.Override
  494. public Builder toBuilder() {
  495. return this == DEFAULT_INSTANCE
  496. ? new Builder() : new Builder().mergeFrom(this);
  497. }
  498. @java.lang.Override
  499. protected Builder newBuilderForType(
  500. com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
  501. Builder builder = new Builder(parent);
  502. return builder;
  503. }
  504. /**
  505. * Protobuf type {@code Im.Scrm.Ww.Proto.ContactPushNoticeMessage}
  506. */
  507. public static final class Builder extends
  508. com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements
  509. // @@protoc_insertion_point(builder_implements:Im.Scrm.Ww.Proto.ContactPushNoticeMessage)
  510. Im.Scrm.Ww.Proto.WContactPushNotice.ContactPushNoticeMessageOrBuilder {
  511. public static final com.google.protobuf.Descriptors.Descriptor
  512. getDescriptor() {
  513. return Im.Scrm.Ww.Proto.WContactPushNotice.internal_static_Im_Scrm_Ww_Proto_ContactPushNoticeMessage_descriptor;
  514. }
  515. @java.lang.Override
  516. protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
  517. internalGetFieldAccessorTable() {
  518. return Im.Scrm.Ww.Proto.WContactPushNotice.internal_static_Im_Scrm_Ww_Proto_ContactPushNoticeMessage_fieldAccessorTable
  519. .ensureFieldAccessorsInitialized(
  520. Im.Scrm.Ww.Proto.WContactPushNotice.ContactPushNoticeMessage.class, Im.Scrm.Ww.Proto.WContactPushNotice.ContactPushNoticeMessage.Builder.class);
  521. }
  522. // Construct using Im.Scrm.Ww.Proto.WContactPushNotice.ContactPushNoticeMessage.newBuilder()
  523. private Builder() {
  524. maybeForceBuilderInitialization();
  525. }
  526. private Builder(
  527. com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
  528. super(parent);
  529. maybeForceBuilderInitialization();
  530. }
  531. private void maybeForceBuilderInitialization() {
  532. if (com.google.protobuf.GeneratedMessageV3
  533. .alwaysUseFieldBuilders) {
  534. getContactsFieldBuilder();
  535. }
  536. }
  537. @java.lang.Override
  538. public Builder clear() {
  539. super.clear();
  540. wxId_ = 0L;
  541. if (contactsBuilder_ == null) {
  542. contacts_ = java.util.Collections.emptyList();
  543. bitField0_ = (bitField0_ & ~0x00000001);
  544. } else {
  545. contactsBuilder_.clear();
  546. }
  547. size_ = 0;
  548. count_ = 0;
  549. page_ = 0;
  550. taskId_ = 0L;
  551. return this;
  552. }
  553. @java.lang.Override
  554. public com.google.protobuf.Descriptors.Descriptor
  555. getDescriptorForType() {
  556. return Im.Scrm.Ww.Proto.WContactPushNotice.internal_static_Im_Scrm_Ww_Proto_ContactPushNoticeMessage_descriptor;
  557. }
  558. @java.lang.Override
  559. public Im.Scrm.Ww.Proto.WContactPushNotice.ContactPushNoticeMessage getDefaultInstanceForType() {
  560. return Im.Scrm.Ww.Proto.WContactPushNotice.ContactPushNoticeMessage.getDefaultInstance();
  561. }
  562. @java.lang.Override
  563. public Im.Scrm.Ww.Proto.WContactPushNotice.ContactPushNoticeMessage build() {
  564. Im.Scrm.Ww.Proto.WContactPushNotice.ContactPushNoticeMessage result = buildPartial();
  565. if (!result.isInitialized()) {
  566. throw newUninitializedMessageException(result);
  567. }
  568. return result;
  569. }
  570. @java.lang.Override
  571. public Im.Scrm.Ww.Proto.WContactPushNotice.ContactPushNoticeMessage buildPartial() {
  572. Im.Scrm.Ww.Proto.WContactPushNotice.ContactPushNoticeMessage result = new Im.Scrm.Ww.Proto.WContactPushNotice.ContactPushNoticeMessage(this);
  573. int from_bitField0_ = bitField0_;
  574. result.wxId_ = wxId_;
  575. if (contactsBuilder_ == null) {
  576. if (((bitField0_ & 0x00000001) != 0)) {
  577. contacts_ = java.util.Collections.unmodifiableList(contacts_);
  578. bitField0_ = (bitField0_ & ~0x00000001);
  579. }
  580. result.contacts_ = contacts_;
  581. } else {
  582. result.contacts_ = contactsBuilder_.build();
  583. }
  584. result.size_ = size_;
  585. result.count_ = count_;
  586. result.page_ = page_;
  587. result.taskId_ = taskId_;
  588. onBuilt();
  589. return result;
  590. }
  591. @java.lang.Override
  592. public Builder clone() {
  593. return super.clone();
  594. }
  595. @java.lang.Override
  596. public Builder setField(
  597. com.google.protobuf.Descriptors.FieldDescriptor field,
  598. java.lang.Object value) {
  599. return super.setField(field, value);
  600. }
  601. @java.lang.Override
  602. public Builder clearField(
  603. com.google.protobuf.Descriptors.FieldDescriptor field) {
  604. return super.clearField(field);
  605. }
  606. @java.lang.Override
  607. public Builder clearOneof(
  608. com.google.protobuf.Descriptors.OneofDescriptor oneof) {
  609. return super.clearOneof(oneof);
  610. }
  611. @java.lang.Override
  612. public Builder setRepeatedField(
  613. com.google.protobuf.Descriptors.FieldDescriptor field,
  614. int index, java.lang.Object value) {
  615. return super.setRepeatedField(field, index, value);
  616. }
  617. @java.lang.Override
  618. public Builder addRepeatedField(
  619. com.google.protobuf.Descriptors.FieldDescriptor field,
  620. java.lang.Object value) {
  621. return super.addRepeatedField(field, value);
  622. }
  623. @java.lang.Override
  624. public Builder mergeFrom(com.google.protobuf.Message other) {
  625. if (other instanceof Im.Scrm.Ww.Proto.WContactPushNotice.ContactPushNoticeMessage) {
  626. return mergeFrom((Im.Scrm.Ww.Proto.WContactPushNotice.ContactPushNoticeMessage)other);
  627. } else {
  628. super.mergeFrom(other);
  629. return this;
  630. }
  631. }
  632. public Builder mergeFrom(Im.Scrm.Ww.Proto.WContactPushNotice.ContactPushNoticeMessage other) {
  633. if (other == Im.Scrm.Ww.Proto.WContactPushNotice.ContactPushNoticeMessage.getDefaultInstance()) return this;
  634. if (other.getWxId() != 0L) {
  635. setWxId(other.getWxId());
  636. }
  637. if (contactsBuilder_ == null) {
  638. if (!other.contacts_.isEmpty()) {
  639. if (contacts_.isEmpty()) {
  640. contacts_ = other.contacts_;
  641. bitField0_ = (bitField0_ & ~0x00000001);
  642. } else {
  643. ensureContactsIsMutable();
  644. contacts_.addAll(other.contacts_);
  645. }
  646. onChanged();
  647. }
  648. } else {
  649. if (!other.contacts_.isEmpty()) {
  650. if (contactsBuilder_.isEmpty()) {
  651. contactsBuilder_.dispose();
  652. contactsBuilder_ = null;
  653. contacts_ = other.contacts_;
  654. bitField0_ = (bitField0_ & ~0x00000001);
  655. contactsBuilder_ =
  656. com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
  657. getContactsFieldBuilder() : null;
  658. } else {
  659. contactsBuilder_.addAllMessages(other.contacts_);
  660. }
  661. }
  662. }
  663. if (other.getSize() != 0) {
  664. setSize(other.getSize());
  665. }
  666. if (other.getCount() != 0) {
  667. setCount(other.getCount());
  668. }
  669. if (other.getPage() != 0) {
  670. setPage(other.getPage());
  671. }
  672. if (other.getTaskId() != 0L) {
  673. setTaskId(other.getTaskId());
  674. }
  675. this.mergeUnknownFields(other.unknownFields);
  676. onChanged();
  677. return this;
  678. }
  679. @java.lang.Override
  680. public final boolean isInitialized() {
  681. return true;
  682. }
  683. @java.lang.Override
  684. public Builder mergeFrom(
  685. com.google.protobuf.CodedInputStream input,
  686. com.google.protobuf.ExtensionRegistryLite extensionRegistry)
  687. throws java.io.IOException {
  688. Im.Scrm.Ww.Proto.WContactPushNotice.ContactPushNoticeMessage parsedMessage = null;
  689. try {
  690. parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
  691. } catch (com.google.protobuf.InvalidProtocolBufferException e) {
  692. parsedMessage = (Im.Scrm.Ww.Proto.WContactPushNotice.ContactPushNoticeMessage) e.getUnfinishedMessage();
  693. throw e.unwrapIOException();
  694. } finally {
  695. if (parsedMessage != null) {
  696. mergeFrom(parsedMessage);
  697. }
  698. }
  699. return this;
  700. }
  701. private int bitField0_;
  702. private long wxId_ ;
  703. /**
  704. * <pre>
  705. * 设备企业WX号
  706. * </pre>
  707. *
  708. * <code>int64 WxId = 1;</code>
  709. * @return The wxId.
  710. */
  711. public long getWxId() {
  712. return wxId_;
  713. }
  714. /**
  715. * <pre>
  716. * 设备企业WX号
  717. * </pre>
  718. *
  719. * <code>int64 WxId = 1;</code>
  720. * @param value The wxId to set.
  721. * @return This builder for chaining.
  722. */
  723. public Builder setWxId(long value) {
  724. wxId_ = value;
  725. onChanged();
  726. return this;
  727. }
  728. /**
  729. * <pre>
  730. * 设备企业WX号
  731. * </pre>
  732. *
  733. * <code>int64 WxId = 1;</code>
  734. * @return This builder for chaining.
  735. */
  736. public Builder clearWxId() {
  737. wxId_ = 0L;
  738. onChanged();
  739. return this;
  740. }
  741. private java.util.List<Im.Scrm.Ww.Proto.WContactPushNotice.ContactMessage> contacts_ =
  742. java.util.Collections.emptyList();
  743. private void ensureContactsIsMutable() {
  744. if (!((bitField0_ & 0x00000001) != 0)) {
  745. contacts_ = new java.util.ArrayList<Im.Scrm.Ww.Proto.WContactPushNotice.ContactMessage>(contacts_);
  746. bitField0_ |= 0x00000001;
  747. }
  748. }
  749. private com.google.protobuf.RepeatedFieldBuilderV3<
  750. Im.Scrm.Ww.Proto.WContactPushNotice.ContactMessage, Im.Scrm.Ww.Proto.WContactPushNotice.ContactMessage.Builder, Im.Scrm.Ww.Proto.WContactPushNotice.ContactMessageOrBuilder> contactsBuilder_;
  751. /**
  752. * <pre>
  753. * 好友信息模型 多个
  754. * </pre>
  755. *
  756. * <code>repeated .Im.Scrm.Ww.Proto.ContactMessage Contacts = 2;</code>
  757. */
  758. public java.util.List<Im.Scrm.Ww.Proto.WContactPushNotice.ContactMessage> getContactsList() {
  759. if (contactsBuilder_ == null) {
  760. return java.util.Collections.unmodifiableList(contacts_);
  761. } else {
  762. return contactsBuilder_.getMessageList();
  763. }
  764. }
  765. /**
  766. * <pre>
  767. * 好友信息模型 多个
  768. * </pre>
  769. *
  770. * <code>repeated .Im.Scrm.Ww.Proto.ContactMessage Contacts = 2;</code>
  771. */
  772. public int getContactsCount() {
  773. if (contactsBuilder_ == null) {
  774. return contacts_.size();
  775. } else {
  776. return contactsBuilder_.getCount();
  777. }
  778. }
  779. /**
  780. * <pre>
  781. * 好友信息模型 多个
  782. * </pre>
  783. *
  784. * <code>repeated .Im.Scrm.Ww.Proto.ContactMessage Contacts = 2;</code>
  785. */
  786. public Im.Scrm.Ww.Proto.WContactPushNotice.ContactMessage getContacts(int index) {
  787. if (contactsBuilder_ == null) {
  788. return contacts_.get(index);
  789. } else {
  790. return contactsBuilder_.getMessage(index);
  791. }
  792. }
  793. /**
  794. * <pre>
  795. * 好友信息模型 多个
  796. * </pre>
  797. *
  798. * <code>repeated .Im.Scrm.Ww.Proto.ContactMessage Contacts = 2;</code>
  799. */
  800. public Builder setContacts(
  801. int index, Im.Scrm.Ww.Proto.WContactPushNotice.ContactMessage value) {
  802. if (contactsBuilder_ == null) {
  803. if (value == null) {
  804. throw new NullPointerException();
  805. }
  806. ensureContactsIsMutable();
  807. contacts_.set(index, value);
  808. onChanged();
  809. } else {
  810. contactsBuilder_.setMessage(index, value);
  811. }
  812. return this;
  813. }
  814. /**
  815. * <pre>
  816. * 好友信息模型 多个
  817. * </pre>
  818. *
  819. * <code>repeated .Im.Scrm.Ww.Proto.ContactMessage Contacts = 2;</code>
  820. */
  821. public Builder setContacts(
  822. int index, Im.Scrm.Ww.Proto.WContactPushNotice.ContactMessage.Builder builderForValue) {
  823. if (contactsBuilder_ == null) {
  824. ensureContactsIsMutable();
  825. contacts_.set(index, builderForValue.build());
  826. onChanged();
  827. } else {
  828. contactsBuilder_.setMessage(index, builderForValue.build());
  829. }
  830. return this;
  831. }
  832. /**
  833. * <pre>
  834. * 好友信息模型 多个
  835. * </pre>
  836. *
  837. * <code>repeated .Im.Scrm.Ww.Proto.ContactMessage Contacts = 2;</code>
  838. */
  839. public Builder addContacts(Im.Scrm.Ww.Proto.WContactPushNotice.ContactMessage value) {
  840. if (contactsBuilder_ == null) {
  841. if (value == null) {
  842. throw new NullPointerException();
  843. }
  844. ensureContactsIsMutable();
  845. contacts_.add(value);
  846. onChanged();
  847. } else {
  848. contactsBuilder_.addMessage(value);
  849. }
  850. return this;
  851. }
  852. /**
  853. * <pre>
  854. * 好友信息模型 多个
  855. * </pre>
  856. *
  857. * <code>repeated .Im.Scrm.Ww.Proto.ContactMessage Contacts = 2;</code>
  858. */
  859. public Builder addContacts(
  860. int index, Im.Scrm.Ww.Proto.WContactPushNotice.ContactMessage value) {
  861. if (contactsBuilder_ == null) {
  862. if (value == null) {
  863. throw new NullPointerException();
  864. }
  865. ensureContactsIsMutable();
  866. contacts_.add(index, value);
  867. onChanged();
  868. } else {
  869. contactsBuilder_.addMessage(index, value);
  870. }
  871. return this;
  872. }
  873. /**
  874. * <pre>
  875. * 好友信息模型 多个
  876. * </pre>
  877. *
  878. * <code>repeated .Im.Scrm.Ww.Proto.ContactMessage Contacts = 2;</code>
  879. */
  880. public Builder addContacts(
  881. Im.Scrm.Ww.Proto.WContactPushNotice.ContactMessage.Builder builderForValue) {
  882. if (contactsBuilder_ == null) {
  883. ensureContactsIsMutable();
  884. contacts_.add(builderForValue.build());
  885. onChanged();
  886. } else {
  887. contactsBuilder_.addMessage(builderForValue.build());
  888. }
  889. return this;
  890. }
  891. /**
  892. * <pre>
  893. * 好友信息模型 多个
  894. * </pre>
  895. *
  896. * <code>repeated .Im.Scrm.Ww.Proto.ContactMessage Contacts = 2;</code>
  897. */
  898. public Builder addContacts(
  899. int index, Im.Scrm.Ww.Proto.WContactPushNotice.ContactMessage.Builder builderForValue) {
  900. if (contactsBuilder_ == null) {
  901. ensureContactsIsMutable();
  902. contacts_.add(index, builderForValue.build());
  903. onChanged();
  904. } else {
  905. contactsBuilder_.addMessage(index, builderForValue.build());
  906. }
  907. return this;
  908. }
  909. /**
  910. * <pre>
  911. * 好友信息模型 多个
  912. * </pre>
  913. *
  914. * <code>repeated .Im.Scrm.Ww.Proto.ContactMessage Contacts = 2;</code>
  915. */
  916. public Builder addAllContacts(
  917. java.lang.Iterable<? extends Im.Scrm.Ww.Proto.WContactPushNotice.ContactMessage> values) {
  918. if (contactsBuilder_ == null) {
  919. ensureContactsIsMutable();
  920. com.google.protobuf.AbstractMessageLite.Builder.addAll(
  921. values, contacts_);
  922. onChanged();
  923. } else {
  924. contactsBuilder_.addAllMessages(values);
  925. }
  926. return this;
  927. }
  928. /**
  929. * <pre>
  930. * 好友信息模型 多个
  931. * </pre>
  932. *
  933. * <code>repeated .Im.Scrm.Ww.Proto.ContactMessage Contacts = 2;</code>
  934. */
  935. public Builder clearContacts() {
  936. if (contactsBuilder_ == null) {
  937. contacts_ = java.util.Collections.emptyList();
  938. bitField0_ = (bitField0_ & ~0x00000001);
  939. onChanged();
  940. } else {
  941. contactsBuilder_.clear();
  942. }
  943. return this;
  944. }
  945. /**
  946. * <pre>
  947. * 好友信息模型 多个
  948. * </pre>
  949. *
  950. * <code>repeated .Im.Scrm.Ww.Proto.ContactMessage Contacts = 2;</code>
  951. */
  952. public Builder removeContacts(int index) {
  953. if (contactsBuilder_ == null) {
  954. ensureContactsIsMutable();
  955. contacts_.remove(index);
  956. onChanged();
  957. } else {
  958. contactsBuilder_.remove(index);
  959. }
  960. return this;
  961. }
  962. /**
  963. * <pre>
  964. * 好友信息模型 多个
  965. * </pre>
  966. *
  967. * <code>repeated .Im.Scrm.Ww.Proto.ContactMessage Contacts = 2;</code>
  968. */
  969. public Im.Scrm.Ww.Proto.WContactPushNotice.ContactMessage.Builder getContactsBuilder(
  970. int index) {
  971. return getContactsFieldBuilder().getBuilder(index);
  972. }
  973. /**
  974. * <pre>
  975. * 好友信息模型 多个
  976. * </pre>
  977. *
  978. * <code>repeated .Im.Scrm.Ww.Proto.ContactMessage Contacts = 2;</code>
  979. */
  980. public Im.Scrm.Ww.Proto.WContactPushNotice.ContactMessageOrBuilder getContactsOrBuilder(
  981. int index) {
  982. if (contactsBuilder_ == null) {
  983. return contacts_.get(index); } else {
  984. return contactsBuilder_.getMessageOrBuilder(index);
  985. }
  986. }
  987. /**
  988. * <pre>
  989. * 好友信息模型 多个
  990. * </pre>
  991. *
  992. * <code>repeated .Im.Scrm.Ww.Proto.ContactMessage Contacts = 2;</code>
  993. */
  994. public java.util.List<? extends Im.Scrm.Ww.Proto.WContactPushNotice.ContactMessageOrBuilder>
  995. getContactsOrBuilderList() {
  996. if (contactsBuilder_ != null) {
  997. return contactsBuilder_.getMessageOrBuilderList();
  998. } else {
  999. return java.util.Collections.unmodifiableList(contacts_);
  1000. }
  1001. }
  1002. /**
  1003. * <pre>
  1004. * 好友信息模型 多个
  1005. * </pre>
  1006. *
  1007. * <code>repeated .Im.Scrm.Ww.Proto.ContactMessage Contacts = 2;</code>
  1008. */
  1009. public Im.Scrm.Ww.Proto.WContactPushNotice.ContactMessage.Builder addContactsBuilder() {
  1010. return getContactsFieldBuilder().addBuilder(
  1011. Im.Scrm.Ww.Proto.WContactPushNotice.ContactMessage.getDefaultInstance());
  1012. }
  1013. /**
  1014. * <pre>
  1015. * 好友信息模型 多个
  1016. * </pre>
  1017. *
  1018. * <code>repeated .Im.Scrm.Ww.Proto.ContactMessage Contacts = 2;</code>
  1019. */
  1020. public Im.Scrm.Ww.Proto.WContactPushNotice.ContactMessage.Builder addContactsBuilder(
  1021. int index) {
  1022. return getContactsFieldBuilder().addBuilder(
  1023. index, Im.Scrm.Ww.Proto.WContactPushNotice.ContactMessage.getDefaultInstance());
  1024. }
  1025. /**
  1026. * <pre>
  1027. * 好友信息模型 多个
  1028. * </pre>
  1029. *
  1030. * <code>repeated .Im.Scrm.Ww.Proto.ContactMessage Contacts = 2;</code>
  1031. */
  1032. public java.util.List<Im.Scrm.Ww.Proto.WContactPushNotice.ContactMessage.Builder>
  1033. getContactsBuilderList() {
  1034. return getContactsFieldBuilder().getBuilderList();
  1035. }
  1036. private com.google.protobuf.RepeatedFieldBuilderV3<
  1037. Im.Scrm.Ww.Proto.WContactPushNotice.ContactMessage, Im.Scrm.Ww.Proto.WContactPushNotice.ContactMessage.Builder, Im.Scrm.Ww.Proto.WContactPushNotice.ContactMessageOrBuilder>
  1038. getContactsFieldBuilder() {
  1039. if (contactsBuilder_ == null) {
  1040. contactsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
  1041. Im.Scrm.Ww.Proto.WContactPushNotice.ContactMessage, Im.Scrm.Ww.Proto.WContactPushNotice.ContactMessage.Builder, Im.Scrm.Ww.Proto.WContactPushNotice.ContactMessageOrBuilder>(
  1042. contacts_,
  1043. ((bitField0_ & 0x00000001) != 0),
  1044. getParentForChildren(),
  1045. isClean());
  1046. contacts_ = null;
  1047. }
  1048. return contactsBuilder_;
  1049. }
  1050. private int size_ ;
  1051. /**
  1052. * <code>int32 Size = 3;</code>
  1053. * @return The size.
  1054. */
  1055. public int getSize() {
  1056. return size_;
  1057. }
  1058. /**
  1059. * <code>int32 Size = 3;</code>
  1060. * @param value The size to set.
  1061. * @return This builder for chaining.
  1062. */
  1063. public Builder setSize(int value) {
  1064. size_ = value;
  1065. onChanged();
  1066. return this;
  1067. }
  1068. /**
  1069. * <code>int32 Size = 3;</code>
  1070. * @return This builder for chaining.
  1071. */
  1072. public Builder clearSize() {
  1073. size_ = 0;
  1074. onChanged();
  1075. return this;
  1076. }
  1077. private int count_ ;
  1078. /**
  1079. * <code>int32 Count = 4;</code>
  1080. * @return The count.
  1081. */
  1082. public int getCount() {
  1083. return count_;
  1084. }
  1085. /**
  1086. * <code>int32 Count = 4;</code>
  1087. * @param value The count to set.
  1088. * @return This builder for chaining.
  1089. */
  1090. public Builder setCount(int value) {
  1091. count_ = value;
  1092. onChanged();
  1093. return this;
  1094. }
  1095. /**
  1096. * <code>int32 Count = 4;</code>
  1097. * @return This builder for chaining.
  1098. */
  1099. public Builder clearCount() {
  1100. count_ = 0;
  1101. onChanged();
  1102. return this;
  1103. }
  1104. private int page_ ;
  1105. /**
  1106. * <code>int32 Page = 5;</code>
  1107. * @return The page.
  1108. */
  1109. public int getPage() {
  1110. return page_;
  1111. }
  1112. /**
  1113. * <code>int32 Page = 5;</code>
  1114. * @param value The page to set.
  1115. * @return This builder for chaining.
  1116. */
  1117. public Builder setPage(int value) {
  1118. page_ = value;
  1119. onChanged();
  1120. return this;
  1121. }
  1122. /**
  1123. * <code>int32 Page = 5;</code>
  1124. * @return This builder for chaining.
  1125. */
  1126. public Builder clearPage() {
  1127. page_ = 0;
  1128. onChanged();
  1129. return this;
  1130. }
  1131. private long taskId_ ;
  1132. /**
  1133. * <code>int64 TaskId = 6;</code>
  1134. * @return The taskId.
  1135. */
  1136. public long getTaskId() {
  1137. return taskId_;
  1138. }
  1139. /**
  1140. * <code>int64 TaskId = 6;</code>
  1141. * @param value The taskId to set.
  1142. * @return This builder for chaining.
  1143. */
  1144. public Builder setTaskId(long value) {
  1145. taskId_ = value;
  1146. onChanged();
  1147. return this;
  1148. }
  1149. /**
  1150. * <code>int64 TaskId = 6;</code>
  1151. * @return This builder for chaining.
  1152. */
  1153. public Builder clearTaskId() {
  1154. taskId_ = 0L;
  1155. onChanged();
  1156. return this;
  1157. }
  1158. @java.lang.Override
  1159. public final Builder setUnknownFields(
  1160. final com.google.protobuf.UnknownFieldSet unknownFields) {
  1161. return super.setUnknownFields(unknownFields);
  1162. }
  1163. @java.lang.Override
  1164. public final Builder mergeUnknownFields(
  1165. final com.google.protobuf.UnknownFieldSet unknownFields) {
  1166. return super.mergeUnknownFields(unknownFields);
  1167. }
  1168. // @@protoc_insertion_point(builder_scope:Im.Scrm.Ww.Proto.ContactPushNoticeMessage)
  1169. }
  1170. // @@protoc_insertion_point(class_scope:Im.Scrm.Ww.Proto.ContactPushNoticeMessage)
  1171. private static final Im.Scrm.Ww.Proto.WContactPushNotice.ContactPushNoticeMessage DEFAULT_INSTANCE;
  1172. static {
  1173. DEFAULT_INSTANCE = new Im.Scrm.Ww.Proto.WContactPushNotice.ContactPushNoticeMessage();
  1174. }
  1175. public static Im.Scrm.Ww.Proto.WContactPushNotice.ContactPushNoticeMessage getDefaultInstance() {
  1176. return DEFAULT_INSTANCE;
  1177. }
  1178. private static final com.google.protobuf.Parser<ContactPushNoticeMessage>
  1179. PARSER = new com.google.protobuf.AbstractParser<ContactPushNoticeMessage>() {
  1180. @java.lang.Override
  1181. public ContactPushNoticeMessage parsePartialFrom(
  1182. com.google.protobuf.CodedInputStream input,
  1183. com.google.protobuf.ExtensionRegistryLite extensionRegistry)
  1184. throws com.google.protobuf.InvalidProtocolBufferException {
  1185. return new ContactPushNoticeMessage(input, extensionRegistry);
  1186. }
  1187. };
  1188. public static com.google.protobuf.Parser<ContactPushNoticeMessage> parser() {
  1189. return PARSER;
  1190. }
  1191. @java.lang.Override
  1192. public com.google.protobuf.Parser<ContactPushNoticeMessage> getParserForType() {
  1193. return PARSER;
  1194. }
  1195. @java.lang.Override
  1196. public Im.Scrm.Ww.Proto.WContactPushNotice.ContactPushNoticeMessage getDefaultInstanceForType() {
  1197. return DEFAULT_INSTANCE;
  1198. }
  1199. }
  1200. public interface ContactMessageOrBuilder extends
  1201. // @@protoc_insertion_point(interface_extends:Im.Scrm.Ww.Proto.ContactMessage)
  1202. com.google.protobuf.MessageOrBuilder {
  1203. /**
  1204. * <pre>
  1205. *唯一id
  1206. * </pre>
  1207. *
  1208. * <code>int64 RemoteId = 1;</code>
  1209. * @return The remoteId.
  1210. */
  1211. long getRemoteId();
  1212. /**
  1213. * <pre>
  1214. * RemoteId&gt;&gt;48==20 App;
  1215. * RemoteId&gt;&gt;48==28 微信用户;
  1216. * RemoteId&gt;&gt;48==33,34 外部客户;
  1217. * RemoteId&gt;&gt;48==39 群机器人;
  1218. * RemoteId&gt;&gt;48==30 内部客服;
  1219. * RemoteId&gt;&gt;48==32 VIP客户;
  1220. * </pre>
  1221. *
  1222. * <code>string AcctId = 2;</code>
  1223. * @return The acctId.
  1224. */
  1225. java.lang.String getAcctId();
  1226. /**
  1227. * <pre>
  1228. * RemoteId&gt;&gt;48==20 App;
  1229. * RemoteId&gt;&gt;48==28 微信用户;
  1230. * RemoteId&gt;&gt;48==33,34 外部客户;
  1231. * RemoteId&gt;&gt;48==39 群机器人;
  1232. * RemoteId&gt;&gt;48==30 内部客服;
  1233. * RemoteId&gt;&gt;48==32 VIP客户;
  1234. * </pre>
  1235. *
  1236. * <code>string AcctId = 2;</code>
  1237. * @return The bytes for acctId.
  1238. */
  1239. com.google.protobuf.ByteString
  1240. getAcctIdBytes();
  1241. /**
  1242. * <pre>
  1243. * </pre>
  1244. *
  1245. * <code>string Name = 3;</code>
  1246. * @return The name.
  1247. */
  1248. java.lang.String getName();
  1249. /**
  1250. * <pre>
  1251. * </pre>
  1252. *
  1253. * <code>string Name = 3;</code>
  1254. * @return The bytes for name.
  1255. */
  1256. com.google.protobuf.ByteString
  1257. getNameBytes();
  1258. /**
  1259. * <code>string Alias = 4;</code>
  1260. * @return The alias.
  1261. */
  1262. java.lang.String getAlias();
  1263. /**
  1264. * <code>string Alias = 4;</code>
  1265. * @return The bytes for alias.
  1266. */
  1267. com.google.protobuf.ByteString
  1268. getAliasBytes();
  1269. /**
  1270. * <code>string Avatar = 5;</code>
  1271. * @return The avatar.
  1272. */
  1273. java.lang.String getAvatar();
  1274. /**
  1275. * <code>string Avatar = 5;</code>
  1276. * @return The bytes for avatar.
  1277. */
  1278. com.google.protobuf.ByteString
  1279. getAvatarBytes();
  1280. /**
  1281. * <pre>
  1282. * 职位
  1283. * </pre>
  1284. *
  1285. * <code>string Job = 6;</code>
  1286. * @return The job.
  1287. */
  1288. java.lang.String getJob();
  1289. /**
  1290. * <pre>
  1291. * 职位
  1292. * </pre>
  1293. *
  1294. * <code>string Job = 6;</code>
  1295. * @return The bytes for job.
  1296. */
  1297. com.google.protobuf.ByteString
  1298. getJobBytes();
  1299. /**
  1300. * <code>string Mobile = 7;</code>
  1301. * @return The mobile.
  1302. */
  1303. java.lang.String getMobile();
  1304. /**
  1305. * <code>string Mobile = 7;</code>
  1306. * @return The bytes for mobile.
  1307. */
  1308. com.google.protobuf.ByteString
  1309. getMobileBytes();
  1310. /**
  1311. * <code>string UnionId = 8;</code>
  1312. * @return The unionId.
  1313. */
  1314. java.lang.String getUnionId();
  1315. /**
  1316. * <code>string UnionId = 8;</code>
  1317. * @return The bytes for unionId.
  1318. */
  1319. com.google.protobuf.ByteString
  1320. getUnionIdBytes();
  1321. /**
  1322. * <code>.Im.Scrm.Ww.Proto.EnumGender Gender = 9;</code>
  1323. * @return The enum numeric value on the wire for gender.
  1324. */
  1325. int getGenderValue();
  1326. /**
  1327. * <code>.Im.Scrm.Ww.Proto.EnumGender Gender = 9;</code>
  1328. * @return The gender.
  1329. */
  1330. Im.Scrm.Ww.Proto.WTransport.EnumGender getGender();
  1331. /**
  1332. * <pre>
  1333. * 所属部门id
  1334. * </pre>
  1335. *
  1336. * <code>repeated int64 DepartIds = 10;</code>
  1337. * @return A list containing the departIds.
  1338. */
  1339. java.util.List<java.lang.Long> getDepartIdsList();
  1340. /**
  1341. * <pre>
  1342. * 所属部门id
  1343. * </pre>
  1344. *
  1345. * <code>repeated int64 DepartIds = 10;</code>
  1346. * @return The count of departIds.
  1347. */
  1348. int getDepartIdsCount();
  1349. /**
  1350. * <pre>
  1351. * 所属部门id
  1352. * </pre>
  1353. *
  1354. * <code>repeated int64 DepartIds = 10;</code>
  1355. * @param index The index of the element to return.
  1356. * @return The departIds at the given index.
  1357. */
  1358. long getDepartIds(int index);
  1359. /**
  1360. * <pre>
  1361. * 属性 (attr &amp; 64) == 64 || (attr &amp; 33554432) == 33554432 已激活企业微信
  1362. * </pre>
  1363. *
  1364. * <code>int64 Attr = 11;</code>
  1365. * @return The attr.
  1366. */
  1367. long getAttr();
  1368. }
  1369. /**
  1370. * Protobuf type {@code Im.Scrm.Ww.Proto.ContactMessage}
  1371. */
  1372. public static final class ContactMessage extends
  1373. com.google.protobuf.GeneratedMessageV3 implements
  1374. // @@protoc_insertion_point(message_implements:Im.Scrm.Ww.Proto.ContactMessage)
  1375. ContactMessageOrBuilder {
  1376. private static final long serialVersionUID = 0L;
  1377. // Use ContactMessage.newBuilder() to construct.
  1378. private ContactMessage(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {
  1379. super(builder);
  1380. }
  1381. private ContactMessage() {
  1382. acctId_ = "";
  1383. name_ = "";
  1384. alias_ = "";
  1385. avatar_ = "";
  1386. job_ = "";
  1387. mobile_ = "";
  1388. unionId_ = "";
  1389. gender_ = 0;
  1390. departIds_ = emptyLongList();
  1391. }
  1392. @java.lang.Override
  1393. @SuppressWarnings({"unused"})
  1394. protected java.lang.Object newInstance(
  1395. UnusedPrivateParameter unused) {
  1396. return new ContactMessage();
  1397. }
  1398. @java.lang.Override
  1399. public final com.google.protobuf.UnknownFieldSet
  1400. getUnknownFields() {
  1401. return this.unknownFields;
  1402. }
  1403. private ContactMessage(
  1404. com.google.protobuf.CodedInputStream input,
  1405. com.google.protobuf.ExtensionRegistryLite extensionRegistry)
  1406. throws com.google.protobuf.InvalidProtocolBufferException {
  1407. this();
  1408. if (extensionRegistry == null) {
  1409. throw new java.lang.NullPointerException();
  1410. }
  1411. int mutable_bitField0_ = 0;
  1412. com.google.protobuf.UnknownFieldSet.Builder unknownFields =
  1413. com.google.protobuf.UnknownFieldSet.newBuilder();
  1414. try {
  1415. boolean done = false;
  1416. while (!done) {
  1417. int tag = input.readTag();
  1418. switch (tag) {
  1419. case 0:
  1420. done = true;
  1421. break;
  1422. case 8: {
  1423. remoteId_ = input.readInt64();
  1424. break;
  1425. }
  1426. case 18: {
  1427. java.lang.String s = input.readStringRequireUtf8();
  1428. acctId_ = s;
  1429. break;
  1430. }
  1431. case 26: {
  1432. java.lang.String s = input.readStringRequireUtf8();
  1433. name_ = s;
  1434. break;
  1435. }
  1436. case 34: {
  1437. java.lang.String s = input.readStringRequireUtf8();
  1438. alias_ = s;
  1439. break;
  1440. }
  1441. case 42: {
  1442. java.lang.String s = input.readStringRequireUtf8();
  1443. avatar_ = s;
  1444. break;
  1445. }
  1446. case 50: {
  1447. java.lang.String s = input.readStringRequireUtf8();
  1448. job_ = s;
  1449. break;
  1450. }
  1451. case 58: {
  1452. java.lang.String s = input.readStringRequireUtf8();
  1453. mobile_ = s;
  1454. break;
  1455. }
  1456. case 66: {
  1457. java.lang.String s = input.readStringRequireUtf8();
  1458. unionId_ = s;
  1459. break;
  1460. }
  1461. case 72: {
  1462. int rawValue = input.readEnum();
  1463. gender_ = rawValue;
  1464. break;
  1465. }
  1466. case 80: {
  1467. if (!((mutable_bitField0_ & 0x00000001) != 0)) {
  1468. departIds_ = newLongList();
  1469. mutable_bitField0_ |= 0x00000001;
  1470. }
  1471. departIds_.addLong(input.readInt64());
  1472. break;
  1473. }
  1474. case 82: {
  1475. int length = input.readRawVarint32();
  1476. int limit = input.pushLimit(length);
  1477. if (!((mutable_bitField0_ & 0x00000001) != 0) && input.getBytesUntilLimit() > 0) {
  1478. departIds_ = newLongList();
  1479. mutable_bitField0_ |= 0x00000001;
  1480. }
  1481. while (input.getBytesUntilLimit() > 0) {
  1482. departIds_.addLong(input.readInt64());
  1483. }
  1484. input.popLimit(limit);
  1485. break;
  1486. }
  1487. case 88: {
  1488. attr_ = input.readInt64();
  1489. break;
  1490. }
  1491. default: {
  1492. if (!parseUnknownField(
  1493. input, unknownFields, extensionRegistry, tag)) {
  1494. done = true;
  1495. }
  1496. break;
  1497. }
  1498. }
  1499. }
  1500. } catch (com.google.protobuf.InvalidProtocolBufferException e) {
  1501. throw e.setUnfinishedMessage(this);
  1502. } catch (java.io.IOException e) {
  1503. throw new com.google.protobuf.InvalidProtocolBufferException(
  1504. e).setUnfinishedMessage(this);
  1505. } finally {
  1506. if (((mutable_bitField0_ & 0x00000001) != 0)) {
  1507. departIds_.makeImmutable(); // C
  1508. }
  1509. this.unknownFields = unknownFields.build();
  1510. makeExtensionsImmutable();
  1511. }
  1512. }
  1513. public static final com.google.protobuf.Descriptors.Descriptor
  1514. getDescriptor() {
  1515. return Im.Scrm.Ww.Proto.WContactPushNotice.internal_static_Im_Scrm_Ww_Proto_ContactMessage_descriptor;
  1516. }
  1517. @java.lang.Override
  1518. protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
  1519. internalGetFieldAccessorTable() {
  1520. return Im.Scrm.Ww.Proto.WContactPushNotice.internal_static_Im_Scrm_Ww_Proto_ContactMessage_fieldAccessorTable
  1521. .ensureFieldAccessorsInitialized(
  1522. Im.Scrm.Ww.Proto.WContactPushNotice.ContactMessage.class, Im.Scrm.Ww.Proto.WContactPushNotice.ContactMessage.Builder.class);
  1523. }
  1524. public static final int REMOTEID_FIELD_NUMBER = 1;
  1525. private long remoteId_;
  1526. /**
  1527. * <pre>
  1528. *唯一id
  1529. * </pre>
  1530. *
  1531. * <code>int64 RemoteId = 1;</code>
  1532. * @return The remoteId.
  1533. */
  1534. public long getRemoteId() {
  1535. return remoteId_;
  1536. }
  1537. public static final int ACCTID_FIELD_NUMBER = 2;
  1538. private volatile java.lang.Object acctId_;
  1539. /**
  1540. * <pre>
  1541. * RemoteId&gt;&gt;48==20 App;
  1542. * RemoteId&gt;&gt;48==28 微信用户;
  1543. * RemoteId&gt;&gt;48==33,34 外部客户;
  1544. * RemoteId&gt;&gt;48==39 群机器人;
  1545. * RemoteId&gt;&gt;48==30 内部客服;
  1546. * RemoteId&gt;&gt;48==32 VIP客户;
  1547. * </pre>
  1548. *
  1549. * <code>string AcctId = 2;</code>
  1550. * @return The acctId.
  1551. */
  1552. public java.lang.String getAcctId() {
  1553. java.lang.Object ref = acctId_;
  1554. if (ref instanceof java.lang.String) {
  1555. return (java.lang.String) ref;
  1556. } else {
  1557. com.google.protobuf.ByteString bs =
  1558. (com.google.protobuf.ByteString) ref;
  1559. java.lang.String s = bs.toStringUtf8();
  1560. acctId_ = s;
  1561. return s;
  1562. }
  1563. }
  1564. /**
  1565. * <pre>
  1566. * RemoteId&gt;&gt;48==20 App;
  1567. * RemoteId&gt;&gt;48==28 微信用户;
  1568. * RemoteId&gt;&gt;48==33,34 外部客户;
  1569. * RemoteId&gt;&gt;48==39 群机器人;
  1570. * RemoteId&gt;&gt;48==30 内部客服;
  1571. * RemoteId&gt;&gt;48==32 VIP客户;
  1572. * </pre>
  1573. *
  1574. * <code>string AcctId = 2;</code>
  1575. * @return The bytes for acctId.
  1576. */
  1577. public com.google.protobuf.ByteString
  1578. getAcctIdBytes() {
  1579. java.lang.Object ref = acctId_;
  1580. if (ref instanceof java.lang.String) {
  1581. com.google.protobuf.ByteString b =
  1582. com.google.protobuf.ByteString.copyFromUtf8(
  1583. (java.lang.String) ref);
  1584. acctId_ = b;
  1585. return b;
  1586. } else {
  1587. return (com.google.protobuf.ByteString) ref;
  1588. }
  1589. }
  1590. public static final int NAME_FIELD_NUMBER = 3;
  1591. private volatile java.lang.Object name_;
  1592. /**
  1593. * <pre>
  1594. * </pre>
  1595. *
  1596. * <code>string Name = 3;</code>
  1597. * @return The name.
  1598. */
  1599. public java.lang.String getName() {
  1600. java.lang.Object ref = name_;
  1601. if (ref instanceof java.lang.String) {
  1602. return (java.lang.String) ref;
  1603. } else {
  1604. com.google.protobuf.ByteString bs =
  1605. (com.google.protobuf.ByteString) ref;
  1606. java.lang.String s = bs.toStringUtf8();
  1607. name_ = s;
  1608. return s;
  1609. }
  1610. }
  1611. /**
  1612. * <pre>
  1613. * </pre>
  1614. *
  1615. * <code>string Name = 3;</code>
  1616. * @return The bytes for name.
  1617. */
  1618. public com.google.protobuf.ByteString
  1619. getNameBytes() {
  1620. java.lang.Object ref = name_;
  1621. if (ref instanceof java.lang.String) {
  1622. com.google.protobuf.ByteString b =
  1623. com.google.protobuf.ByteString.copyFromUtf8(
  1624. (java.lang.String) ref);
  1625. name_ = b;
  1626. return b;
  1627. } else {
  1628. return (com.google.protobuf.ByteString) ref;
  1629. }
  1630. }
  1631. public static final int ALIAS_FIELD_NUMBER = 4;
  1632. private volatile java.lang.Object alias_;
  1633. /**
  1634. * <code>string Alias = 4;</code>
  1635. * @return The alias.
  1636. */
  1637. public java.lang.String getAlias() {
  1638. java.lang.Object ref = alias_;
  1639. if (ref instanceof java.lang.String) {
  1640. return (java.lang.String) ref;
  1641. } else {
  1642. com.google.protobuf.ByteString bs =
  1643. (com.google.protobuf.ByteString) ref;
  1644. java.lang.String s = bs.toStringUtf8();
  1645. alias_ = s;
  1646. return s;
  1647. }
  1648. }
  1649. /**
  1650. * <code>string Alias = 4;</code>
  1651. * @return The bytes for alias.
  1652. */
  1653. public com.google.protobuf.ByteString
  1654. getAliasBytes() {
  1655. java.lang.Object ref = alias_;
  1656. if (ref instanceof java.lang.String) {
  1657. com.google.protobuf.ByteString b =
  1658. com.google.protobuf.ByteString.copyFromUtf8(
  1659. (java.lang.String) ref);
  1660. alias_ = b;
  1661. return b;
  1662. } else {
  1663. return (com.google.protobuf.ByteString) ref;
  1664. }
  1665. }
  1666. public static final int AVATAR_FIELD_NUMBER = 5;
  1667. private volatile java.lang.Object avatar_;
  1668. /**
  1669. * <code>string Avatar = 5;</code>
  1670. * @return The avatar.
  1671. */
  1672. public java.lang.String getAvatar() {
  1673. java.lang.Object ref = avatar_;
  1674. if (ref instanceof java.lang.String) {
  1675. return (java.lang.String) ref;
  1676. } else {
  1677. com.google.protobuf.ByteString bs =
  1678. (com.google.protobuf.ByteString) ref;
  1679. java.lang.String s = bs.toStringUtf8();
  1680. avatar_ = s;
  1681. return s;
  1682. }
  1683. }
  1684. /**
  1685. * <code>string Avatar = 5;</code>
  1686. * @return The bytes for avatar.
  1687. */
  1688. public com.google.protobuf.ByteString
  1689. getAvatarBytes() {
  1690. java.lang.Object ref = avatar_;
  1691. if (ref instanceof java.lang.String) {
  1692. com.google.protobuf.ByteString b =
  1693. com.google.protobuf.ByteString.copyFromUtf8(
  1694. (java.lang.String) ref);
  1695. avatar_ = b;
  1696. return b;
  1697. } else {
  1698. return (com.google.protobuf.ByteString) ref;
  1699. }
  1700. }
  1701. public static final int JOB_FIELD_NUMBER = 6;
  1702. private volatile java.lang.Object job_;
  1703. /**
  1704. * <pre>
  1705. * 职位
  1706. * </pre>
  1707. *
  1708. * <code>string Job = 6;</code>
  1709. * @return The job.
  1710. */
  1711. public java.lang.String getJob() {
  1712. java.lang.Object ref = job_;
  1713. if (ref instanceof java.lang.String) {
  1714. return (java.lang.String) ref;
  1715. } else {
  1716. com.google.protobuf.ByteString bs =
  1717. (com.google.protobuf.ByteString) ref;
  1718. java.lang.String s = bs.toStringUtf8();
  1719. job_ = s;
  1720. return s;
  1721. }
  1722. }
  1723. /**
  1724. * <pre>
  1725. * 职位
  1726. * </pre>
  1727. *
  1728. * <code>string Job = 6;</code>
  1729. * @return The bytes for job.
  1730. */
  1731. public com.google.protobuf.ByteString
  1732. getJobBytes() {
  1733. java.lang.Object ref = job_;
  1734. if (ref instanceof java.lang.String) {
  1735. com.google.protobuf.ByteString b =
  1736. com.google.protobuf.ByteString.copyFromUtf8(
  1737. (java.lang.String) ref);
  1738. job_ = b;
  1739. return b;
  1740. } else {
  1741. return (com.google.protobuf.ByteString) ref;
  1742. }
  1743. }
  1744. public static final int MOBILE_FIELD_NUMBER = 7;
  1745. private volatile java.lang.Object mobile_;
  1746. /**
  1747. * <code>string Mobile = 7;</code>
  1748. * @return The mobile.
  1749. */
  1750. public java.lang.String getMobile() {
  1751. java.lang.Object ref = mobile_;
  1752. if (ref instanceof java.lang.String) {
  1753. return (java.lang.String) ref;
  1754. } else {
  1755. com.google.protobuf.ByteString bs =
  1756. (com.google.protobuf.ByteString) ref;
  1757. java.lang.String s = bs.toStringUtf8();
  1758. mobile_ = s;
  1759. return s;
  1760. }
  1761. }
  1762. /**
  1763. * <code>string Mobile = 7;</code>
  1764. * @return The bytes for mobile.
  1765. */
  1766. public com.google.protobuf.ByteString
  1767. getMobileBytes() {
  1768. java.lang.Object ref = mobile_;
  1769. if (ref instanceof java.lang.String) {
  1770. com.google.protobuf.ByteString b =
  1771. com.google.protobuf.ByteString.copyFromUtf8(
  1772. (java.lang.String) ref);
  1773. mobile_ = b;
  1774. return b;
  1775. } else {
  1776. return (com.google.protobuf.ByteString) ref;
  1777. }
  1778. }
  1779. public static final int UNIONID_FIELD_NUMBER = 8;
  1780. private volatile java.lang.Object unionId_;
  1781. /**
  1782. * <code>string UnionId = 8;</code>
  1783. * @return The unionId.
  1784. */
  1785. public java.lang.String getUnionId() {
  1786. java.lang.Object ref = unionId_;
  1787. if (ref instanceof java.lang.String) {
  1788. return (java.lang.String) ref;
  1789. } else {
  1790. com.google.protobuf.ByteString bs =
  1791. (com.google.protobuf.ByteString) ref;
  1792. java.lang.String s = bs.toStringUtf8();
  1793. unionId_ = s;
  1794. return s;
  1795. }
  1796. }
  1797. /**
  1798. * <code>string UnionId = 8;</code>
  1799. * @return The bytes for unionId.
  1800. */
  1801. public com.google.protobuf.ByteString
  1802. getUnionIdBytes() {
  1803. java.lang.Object ref = unionId_;
  1804. if (ref instanceof java.lang.String) {
  1805. com.google.protobuf.ByteString b =
  1806. com.google.protobuf.ByteString.copyFromUtf8(
  1807. (java.lang.String) ref);
  1808. unionId_ = b;
  1809. return b;
  1810. } else {
  1811. return (com.google.protobuf.ByteString) ref;
  1812. }
  1813. }
  1814. public static final int GENDER_FIELD_NUMBER = 9;
  1815. private int gender_;
  1816. /**
  1817. * <code>.Im.Scrm.Ww.Proto.EnumGender Gender = 9;</code>
  1818. * @return The enum numeric value on the wire for gender.
  1819. */
  1820. public int getGenderValue() {
  1821. return gender_;
  1822. }
  1823. /**
  1824. * <code>.Im.Scrm.Ww.Proto.EnumGender Gender = 9;</code>
  1825. * @return The gender.
  1826. */
  1827. public Im.Scrm.Ww.Proto.WTransport.EnumGender getGender() {
  1828. @SuppressWarnings("deprecation")
  1829. Im.Scrm.Ww.Proto.WTransport.EnumGender result = Im.Scrm.Ww.Proto.WTransport.EnumGender.valueOf(gender_);
  1830. return result == null ? Im.Scrm.Ww.Proto.WTransport.EnumGender.UNRECOGNIZED : result;
  1831. }
  1832. public static final int DEPARTIDS_FIELD_NUMBER = 10;
  1833. private com.google.protobuf.Internal.LongList departIds_;
  1834. /**
  1835. * <pre>
  1836. * 所属部门id
  1837. * </pre>
  1838. *
  1839. * <code>repeated int64 DepartIds = 10;</code>
  1840. * @return A list containing the departIds.
  1841. */
  1842. public java.util.List<java.lang.Long>
  1843. getDepartIdsList() {
  1844. return departIds_;
  1845. }
  1846. /**
  1847. * <pre>
  1848. * 所属部门id
  1849. * </pre>
  1850. *
  1851. * <code>repeated int64 DepartIds = 10;</code>
  1852. * @return The count of departIds.
  1853. */
  1854. public int getDepartIdsCount() {
  1855. return departIds_.size();
  1856. }
  1857. /**
  1858. * <pre>
  1859. * 所属部门id
  1860. * </pre>
  1861. *
  1862. * <code>repeated int64 DepartIds = 10;</code>
  1863. * @param index The index of the element to return.
  1864. * @return The departIds at the given index.
  1865. */
  1866. public long getDepartIds(int index) {
  1867. return departIds_.getLong(index);
  1868. }
  1869. private int departIdsMemoizedSerializedSize = -1;
  1870. public static final int ATTR_FIELD_NUMBER = 11;
  1871. private long attr_;
  1872. /**
  1873. * <pre>
  1874. * 属性 (attr &amp; 64) == 64 || (attr &amp; 33554432) == 33554432 已激活企业微信
  1875. * </pre>
  1876. *
  1877. * <code>int64 Attr = 11;</code>
  1878. * @return The attr.
  1879. */
  1880. public long getAttr() {
  1881. return attr_;
  1882. }
  1883. private byte memoizedIsInitialized = -1;
  1884. @java.lang.Override
  1885. public final boolean isInitialized() {
  1886. byte isInitialized = memoizedIsInitialized;
  1887. if (isInitialized == 1) return true;
  1888. if (isInitialized == 0) return false;
  1889. memoizedIsInitialized = 1;
  1890. return true;
  1891. }
  1892. @java.lang.Override
  1893. public void writeTo(com.google.protobuf.CodedOutputStream output)
  1894. throws java.io.IOException {
  1895. getSerializedSize();
  1896. if (remoteId_ != 0L) {
  1897. output.writeInt64(1, remoteId_);
  1898. }
  1899. if (!getAcctIdBytes().isEmpty()) {
  1900. com.google.protobuf.GeneratedMessageV3.writeString(output, 2, acctId_);
  1901. }
  1902. if (!getNameBytes().isEmpty()) {
  1903. com.google.protobuf.GeneratedMessageV3.writeString(output, 3, name_);
  1904. }
  1905. if (!getAliasBytes().isEmpty()) {
  1906. com.google.protobuf.GeneratedMessageV3.writeString(output, 4, alias_);
  1907. }
  1908. if (!getAvatarBytes().isEmpty()) {
  1909. com.google.protobuf.GeneratedMessageV3.writeString(output, 5, avatar_);
  1910. }
  1911. if (!getJobBytes().isEmpty()) {
  1912. com.google.protobuf.GeneratedMessageV3.writeString(output, 6, job_);
  1913. }
  1914. if (!getMobileBytes().isEmpty()) {
  1915. com.google.protobuf.GeneratedMessageV3.writeString(output, 7, mobile_);
  1916. }
  1917. if (!getUnionIdBytes().isEmpty()) {
  1918. com.google.protobuf.GeneratedMessageV3.writeString(output, 8, unionId_);
  1919. }
  1920. if (gender_ != Im.Scrm.Ww.Proto.WTransport.EnumGender.UnknownGender.getNumber()) {
  1921. output.writeEnum(9, gender_);
  1922. }
  1923. if (getDepartIdsList().size() > 0) {
  1924. output.writeUInt32NoTag(82);
  1925. output.writeUInt32NoTag(departIdsMemoizedSerializedSize);
  1926. }
  1927. for (int i = 0; i < departIds_.size(); i++) {
  1928. output.writeInt64NoTag(departIds_.getLong(i));
  1929. }
  1930. if (attr_ != 0L) {
  1931. output.writeInt64(11, attr_);
  1932. }
  1933. unknownFields.writeTo(output);
  1934. }
  1935. @java.lang.Override
  1936. public int getSerializedSize() {
  1937. int size = memoizedSize;
  1938. if (size != -1) return size;
  1939. size = 0;
  1940. if (remoteId_ != 0L) {
  1941. size += com.google.protobuf.CodedOutputStream
  1942. .computeInt64Size(1, remoteId_);
  1943. }
  1944. if (!getAcctIdBytes().isEmpty()) {
  1945. size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, acctId_);
  1946. }
  1947. if (!getNameBytes().isEmpty()) {
  1948. size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, name_);
  1949. }
  1950. if (!getAliasBytes().isEmpty()) {
  1951. size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, alias_);
  1952. }
  1953. if (!getAvatarBytes().isEmpty()) {
  1954. size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, avatar_);
  1955. }
  1956. if (!getJobBytes().isEmpty()) {
  1957. size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, job_);
  1958. }
  1959. if (!getMobileBytes().isEmpty()) {
  1960. size += com.google.protobuf.GeneratedMessageV3.computeStringSize(7, mobile_);
  1961. }
  1962. if (!getUnionIdBytes().isEmpty()) {
  1963. size += com.google.protobuf.GeneratedMessageV3.computeStringSize(8, unionId_);
  1964. }
  1965. if (gender_ != Im.Scrm.Ww.Proto.WTransport.EnumGender.UnknownGender.getNumber()) {
  1966. size += com.google.protobuf.CodedOutputStream
  1967. .computeEnumSize(9, gender_);
  1968. }
  1969. {
  1970. int dataSize = 0;
  1971. for (int i = 0; i < departIds_.size(); i++) {
  1972. dataSize += com.google.protobuf.CodedOutputStream
  1973. .computeInt64SizeNoTag(departIds_.getLong(i));
  1974. }
  1975. size += dataSize;
  1976. if (!getDepartIdsList().isEmpty()) {
  1977. size += 1;
  1978. size += com.google.protobuf.CodedOutputStream
  1979. .computeInt32SizeNoTag(dataSize);
  1980. }
  1981. departIdsMemoizedSerializedSize = dataSize;
  1982. }
  1983. if (attr_ != 0L) {
  1984. size += com.google.protobuf.CodedOutputStream
  1985. .computeInt64Size(11, attr_);
  1986. }
  1987. size += unknownFields.getSerializedSize();
  1988. memoizedSize = size;
  1989. return size;
  1990. }
  1991. @java.lang.Override
  1992. public boolean equals(final java.lang.Object obj) {
  1993. if (obj == this) {
  1994. return true;
  1995. }
  1996. if (!(obj instanceof Im.Scrm.Ww.Proto.WContactPushNotice.ContactMessage)) {
  1997. return super.equals(obj);
  1998. }
  1999. Im.Scrm.Ww.Proto.WContactPushNotice.ContactMessage other = (Im.Scrm.Ww.Proto.WContactPushNotice.ContactMessage) obj;
  2000. if (getRemoteId()
  2001. != other.getRemoteId()) return false;
  2002. if (!getAcctId()
  2003. .equals(other.getAcctId())) return false;
  2004. if (!getName()
  2005. .equals(other.getName())) return false;
  2006. if (!getAlias()
  2007. .equals(other.getAlias())) return false;
  2008. if (!getAvatar()
  2009. .equals(other.getAvatar())) return false;
  2010. if (!getJob()
  2011. .equals(other.getJob())) return false;
  2012. if (!getMobile()
  2013. .equals(other.getMobile())) return false;
  2014. if (!getUnionId()
  2015. .equals(other.getUnionId())) return false;
  2016. if (gender_ != other.gender_) return false;
  2017. if (!getDepartIdsList()
  2018. .equals(other.getDepartIdsList())) return false;
  2019. if (getAttr()
  2020. != other.getAttr()) return false;
  2021. if (!unknownFields.equals(other.unknownFields)) return false;
  2022. return true;
  2023. }
  2024. @java.lang.Override
  2025. public int hashCode() {
  2026. if (memoizedHashCode != 0) {
  2027. return memoizedHashCode;
  2028. }
  2029. int hash = 41;
  2030. hash = (19 * hash) + getDescriptor().hashCode();
  2031. hash = (37 * hash) + REMOTEID_FIELD_NUMBER;
  2032. hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
  2033. getRemoteId());
  2034. hash = (37 * hash) + ACCTID_FIELD_NUMBER;
  2035. hash = (53 * hash) + getAcctId().hashCode();
  2036. hash = (37 * hash) + NAME_FIELD_NUMBER;
  2037. hash = (53 * hash) + getName().hashCode();
  2038. hash = (37 * hash) + ALIAS_FIELD_NUMBER;
  2039. hash = (53 * hash) + getAlias().hashCode();
  2040. hash = (37 * hash) + AVATAR_FIELD_NUMBER;
  2041. hash = (53 * hash) + getAvatar().hashCode();
  2042. hash = (37 * hash) + JOB_FIELD_NUMBER;
  2043. hash = (53 * hash) + getJob().hashCode();
  2044. hash = (37 * hash) + MOBILE_FIELD_NUMBER;
  2045. hash = (53 * hash) + getMobile().hashCode();
  2046. hash = (37 * hash) + UNIONID_FIELD_NUMBER;
  2047. hash = (53 * hash) + getUnionId().hashCode();
  2048. hash = (37 * hash) + GENDER_FIELD_NUMBER;
  2049. hash = (53 * hash) + gender_;
  2050. if (getDepartIdsCount() > 0) {
  2051. hash = (37 * hash) + DEPARTIDS_FIELD_NUMBER;
  2052. hash = (53 * hash) + getDepartIdsList().hashCode();
  2053. }
  2054. hash = (37 * hash) + ATTR_FIELD_NUMBER;
  2055. hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
  2056. getAttr());
  2057. hash = (29 * hash) + unknownFields.hashCode();
  2058. memoizedHashCode = hash;
  2059. return hash;
  2060. }
  2061. public static Im.Scrm.Ww.Proto.WContactPushNotice.ContactMessage parseFrom(
  2062. java.nio.ByteBuffer data)
  2063. throws com.google.protobuf.InvalidProtocolBufferException {
  2064. return PARSER.parseFrom(data);
  2065. }
  2066. public static Im.Scrm.Ww.Proto.WContactPushNotice.ContactMessage parseFrom(
  2067. java.nio.ByteBuffer data,
  2068. com.google.protobuf.ExtensionRegistryLite extensionRegistry)
  2069. throws com.google.protobuf.InvalidProtocolBufferException {
  2070. return PARSER.parseFrom(data, extensionRegistry);
  2071. }
  2072. public static Im.Scrm.Ww.Proto.WContactPushNotice.ContactMessage parseFrom(
  2073. com.google.protobuf.ByteString data)
  2074. throws com.google.protobuf.InvalidProtocolBufferException {
  2075. return PARSER.parseFrom(data);
  2076. }
  2077. public static Im.Scrm.Ww.Proto.WContactPushNotice.ContactMessage parseFrom(
  2078. com.google.protobuf.ByteString data,
  2079. com.google.protobuf.ExtensionRegistryLite extensionRegistry)
  2080. throws com.google.protobuf.InvalidProtocolBufferException {
  2081. return PARSER.parseFrom(data, extensionRegistry);
  2082. }
  2083. public static Im.Scrm.Ww.Proto.WContactPushNotice.ContactMessage parseFrom(byte[] data)
  2084. throws com.google.protobuf.InvalidProtocolBufferException {
  2085. return PARSER.parseFrom(data);
  2086. }
  2087. public static Im.Scrm.Ww.Proto.WContactPushNotice.ContactMessage parseFrom(
  2088. byte[] data,
  2089. com.google.protobuf.ExtensionRegistryLite extensionRegistry)
  2090. throws com.google.protobuf.InvalidProtocolBufferException {
  2091. return PARSER.parseFrom(data, extensionRegistry);
  2092. }
  2093. public static Im.Scrm.Ww.Proto.WContactPushNotice.ContactMessage parseFrom(java.io.InputStream input)
  2094. throws java.io.IOException {
  2095. return com.google.protobuf.GeneratedMessageV3
  2096. .parseWithIOException(PARSER, input);
  2097. }
  2098. public static Im.Scrm.Ww.Proto.WContactPushNotice.ContactMessage parseFrom(
  2099. java.io.InputStream input,
  2100. com.google.protobuf.ExtensionRegistryLite extensionRegistry)
  2101. throws java.io.IOException {
  2102. return com.google.protobuf.GeneratedMessageV3
  2103. .parseWithIOException(PARSER, input, extensionRegistry);
  2104. }
  2105. public static Im.Scrm.Ww.Proto.WContactPushNotice.ContactMessage parseDelimitedFrom(java.io.InputStream input)
  2106. throws java.io.IOException {
  2107. return com.google.protobuf.GeneratedMessageV3
  2108. .parseDelimitedWithIOException(PARSER, input);
  2109. }
  2110. public static Im.Scrm.Ww.Proto.WContactPushNotice.ContactMessage parseDelimitedFrom(
  2111. java.io.InputStream input,
  2112. com.google.protobuf.ExtensionRegistryLite extensionRegistry)
  2113. throws java.io.IOException {
  2114. return com.google.protobuf.GeneratedMessageV3
  2115. .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
  2116. }
  2117. public static Im.Scrm.Ww.Proto.WContactPushNotice.ContactMessage parseFrom(
  2118. com.google.protobuf.CodedInputStream input)
  2119. throws java.io.IOException {
  2120. return com.google.protobuf.GeneratedMessageV3
  2121. .parseWithIOException(PARSER, input);
  2122. }
  2123. public static Im.Scrm.Ww.Proto.WContactPushNotice.ContactMessage parseFrom(
  2124. com.google.protobuf.CodedInputStream input,
  2125. com.google.protobuf.ExtensionRegistryLite extensionRegistry)
  2126. throws java.io.IOException {
  2127. return com.google.protobuf.GeneratedMessageV3
  2128. .parseWithIOException(PARSER, input, extensionRegistry);
  2129. }
  2130. @java.lang.Override
  2131. public Builder newBuilderForType() { return newBuilder(); }
  2132. public static Builder newBuilder() {
  2133. return DEFAULT_INSTANCE.toBuilder();
  2134. }
  2135. public static Builder newBuilder(Im.Scrm.Ww.Proto.WContactPushNotice.ContactMessage prototype) {
  2136. return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
  2137. }
  2138. @java.lang.Override
  2139. public Builder toBuilder() {
  2140. return this == DEFAULT_INSTANCE
  2141. ? new Builder() : new Builder().mergeFrom(this);
  2142. }
  2143. @java.lang.Override
  2144. protected Builder newBuilderForType(
  2145. com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
  2146. Builder builder = new Builder(parent);
  2147. return builder;
  2148. }
  2149. /**
  2150. * Protobuf type {@code Im.Scrm.Ww.Proto.ContactMessage}
  2151. */
  2152. public static final class Builder extends
  2153. com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements
  2154. // @@protoc_insertion_point(builder_implements:Im.Scrm.Ww.Proto.ContactMessage)
  2155. Im.Scrm.Ww.Proto.WContactPushNotice.ContactMessageOrBuilder {
  2156. public static final com.google.protobuf.Descriptors.Descriptor
  2157. getDescriptor() {
  2158. return Im.Scrm.Ww.Proto.WContactPushNotice.internal_static_Im_Scrm_Ww_Proto_ContactMessage_descriptor;
  2159. }
  2160. @java.lang.Override
  2161. protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
  2162. internalGetFieldAccessorTable() {
  2163. return Im.Scrm.Ww.Proto.WContactPushNotice.internal_static_Im_Scrm_Ww_Proto_ContactMessage_fieldAccessorTable
  2164. .ensureFieldAccessorsInitialized(
  2165. Im.Scrm.Ww.Proto.WContactPushNotice.ContactMessage.class, Im.Scrm.Ww.Proto.WContactPushNotice.ContactMessage.Builder.class);
  2166. }
  2167. // Construct using Im.Scrm.Ww.Proto.WContactPushNotice.ContactMessage.newBuilder()
  2168. private Builder() {
  2169. maybeForceBuilderInitialization();
  2170. }
  2171. private Builder(
  2172. com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
  2173. super(parent);
  2174. maybeForceBuilderInitialization();
  2175. }
  2176. private void maybeForceBuilderInitialization() {
  2177. if (com.google.protobuf.GeneratedMessageV3
  2178. .alwaysUseFieldBuilders) {
  2179. }
  2180. }
  2181. @java.lang.Override
  2182. public Builder clear() {
  2183. super.clear();
  2184. remoteId_ = 0L;
  2185. acctId_ = "";
  2186. name_ = "";
  2187. alias_ = "";
  2188. avatar_ = "";
  2189. job_ = "";
  2190. mobile_ = "";
  2191. unionId_ = "";
  2192. gender_ = 0;
  2193. departIds_ = emptyLongList();
  2194. bitField0_ = (bitField0_ & ~0x00000001);
  2195. attr_ = 0L;
  2196. return this;
  2197. }
  2198. @java.lang.Override
  2199. public com.google.protobuf.Descriptors.Descriptor
  2200. getDescriptorForType() {
  2201. return Im.Scrm.Ww.Proto.WContactPushNotice.internal_static_Im_Scrm_Ww_Proto_ContactMessage_descriptor;
  2202. }
  2203. @java.lang.Override
  2204. public Im.Scrm.Ww.Proto.WContactPushNotice.ContactMessage getDefaultInstanceForType() {
  2205. return Im.Scrm.Ww.Proto.WContactPushNotice.ContactMessage.getDefaultInstance();
  2206. }
  2207. @java.lang.Override
  2208. public Im.Scrm.Ww.Proto.WContactPushNotice.ContactMessage build() {
  2209. Im.Scrm.Ww.Proto.WContactPushNotice.ContactMessage result = buildPartial();
  2210. if (!result.isInitialized()) {
  2211. throw newUninitializedMessageException(result);
  2212. }
  2213. return result;
  2214. }
  2215. @java.lang.Override
  2216. public Im.Scrm.Ww.Proto.WContactPushNotice.ContactMessage buildPartial() {
  2217. Im.Scrm.Ww.Proto.WContactPushNotice.ContactMessage result = new Im.Scrm.Ww.Proto.WContactPushNotice.ContactMessage(this);
  2218. int from_bitField0_ = bitField0_;
  2219. result.remoteId_ = remoteId_;
  2220. result.acctId_ = acctId_;
  2221. result.name_ = name_;
  2222. result.alias_ = alias_;
  2223. result.avatar_ = avatar_;
  2224. result.job_ = job_;
  2225. result.mobile_ = mobile_;
  2226. result.unionId_ = unionId_;
  2227. result.gender_ = gender_;
  2228. if (((bitField0_ & 0x00000001) != 0)) {
  2229. departIds_.makeImmutable();
  2230. bitField0_ = (bitField0_ & ~0x00000001);
  2231. }
  2232. result.departIds_ = departIds_;
  2233. result.attr_ = attr_;
  2234. onBuilt();
  2235. return result;
  2236. }
  2237. @java.lang.Override
  2238. public Builder clone() {
  2239. return super.clone();
  2240. }
  2241. @java.lang.Override
  2242. public Builder setField(
  2243. com.google.protobuf.Descriptors.FieldDescriptor field,
  2244. java.lang.Object value) {
  2245. return super.setField(field, value);
  2246. }
  2247. @java.lang.Override
  2248. public Builder clearField(
  2249. com.google.protobuf.Descriptors.FieldDescriptor field) {
  2250. return super.clearField(field);
  2251. }
  2252. @java.lang.Override
  2253. public Builder clearOneof(
  2254. com.google.protobuf.Descriptors.OneofDescriptor oneof) {
  2255. return super.clearOneof(oneof);
  2256. }
  2257. @java.lang.Override
  2258. public Builder setRepeatedField(
  2259. com.google.protobuf.Descriptors.FieldDescriptor field,
  2260. int index, java.lang.Object value) {
  2261. return super.setRepeatedField(field, index, value);
  2262. }
  2263. @java.lang.Override
  2264. public Builder addRepeatedField(
  2265. com.google.protobuf.Descriptors.FieldDescriptor field,
  2266. java.lang.Object value) {
  2267. return super.addRepeatedField(field, value);
  2268. }
  2269. @java.lang.Override
  2270. public Builder mergeFrom(com.google.protobuf.Message other) {
  2271. if (other instanceof Im.Scrm.Ww.Proto.WContactPushNotice.ContactMessage) {
  2272. return mergeFrom((Im.Scrm.Ww.Proto.WContactPushNotice.ContactMessage)other);
  2273. } else {
  2274. super.mergeFrom(other);
  2275. return this;
  2276. }
  2277. }
  2278. public Builder mergeFrom(Im.Scrm.Ww.Proto.WContactPushNotice.ContactMessage other) {
  2279. if (other == Im.Scrm.Ww.Proto.WContactPushNotice.ContactMessage.getDefaultInstance()) return this;
  2280. if (other.getRemoteId() != 0L) {
  2281. setRemoteId(other.getRemoteId());
  2282. }
  2283. if (!other.getAcctId().isEmpty()) {
  2284. acctId_ = other.acctId_;
  2285. onChanged();
  2286. }
  2287. if (!other.getName().isEmpty()) {
  2288. name_ = other.name_;
  2289. onChanged();
  2290. }
  2291. if (!other.getAlias().isEmpty()) {
  2292. alias_ = other.alias_;
  2293. onChanged();
  2294. }
  2295. if (!other.getAvatar().isEmpty()) {
  2296. avatar_ = other.avatar_;
  2297. onChanged();
  2298. }
  2299. if (!other.getJob().isEmpty()) {
  2300. job_ = other.job_;
  2301. onChanged();
  2302. }
  2303. if (!other.getMobile().isEmpty()) {
  2304. mobile_ = other.mobile_;
  2305. onChanged();
  2306. }
  2307. if (!other.getUnionId().isEmpty()) {
  2308. unionId_ = other.unionId_;
  2309. onChanged();
  2310. }
  2311. if (other.gender_ != 0) {
  2312. setGenderValue(other.getGenderValue());
  2313. }
  2314. if (!other.departIds_.isEmpty()) {
  2315. if (departIds_.isEmpty()) {
  2316. departIds_ = other.departIds_;
  2317. bitField0_ = (bitField0_ & ~0x00000001);
  2318. } else {
  2319. ensureDepartIdsIsMutable();
  2320. departIds_.addAll(other.departIds_);
  2321. }
  2322. onChanged();
  2323. }
  2324. if (other.getAttr() != 0L) {
  2325. setAttr(other.getAttr());
  2326. }
  2327. this.mergeUnknownFields(other.unknownFields);
  2328. onChanged();
  2329. return this;
  2330. }
  2331. @java.lang.Override
  2332. public final boolean isInitialized() {
  2333. return true;
  2334. }
  2335. @java.lang.Override
  2336. public Builder mergeFrom(
  2337. com.google.protobuf.CodedInputStream input,
  2338. com.google.protobuf.ExtensionRegistryLite extensionRegistry)
  2339. throws java.io.IOException {
  2340. Im.Scrm.Ww.Proto.WContactPushNotice.ContactMessage parsedMessage = null;
  2341. try {
  2342. parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
  2343. } catch (com.google.protobuf.InvalidProtocolBufferException e) {
  2344. parsedMessage = (Im.Scrm.Ww.Proto.WContactPushNotice.ContactMessage) e.getUnfinishedMessage();
  2345. throw e.unwrapIOException();
  2346. } finally {
  2347. if (parsedMessage != null) {
  2348. mergeFrom(parsedMessage);
  2349. }
  2350. }
  2351. return this;
  2352. }
  2353. private int bitField0_;
  2354. private long remoteId_ ;
  2355. /**
  2356. * <pre>
  2357. *唯一id
  2358. * </pre>
  2359. *
  2360. * <code>int64 RemoteId = 1;</code>
  2361. * @return The remoteId.
  2362. */
  2363. public long getRemoteId() {
  2364. return remoteId_;
  2365. }
  2366. /**
  2367. * <pre>
  2368. *唯一id
  2369. * </pre>
  2370. *
  2371. * <code>int64 RemoteId = 1;</code>
  2372. * @param value The remoteId to set.
  2373. * @return This builder for chaining.
  2374. */
  2375. public Builder setRemoteId(long value) {
  2376. remoteId_ = value;
  2377. onChanged();
  2378. return this;
  2379. }
  2380. /**
  2381. * <pre>
  2382. *唯一id
  2383. * </pre>
  2384. *
  2385. * <code>int64 RemoteId = 1;</code>
  2386. * @return This builder for chaining.
  2387. */
  2388. public Builder clearRemoteId() {
  2389. remoteId_ = 0L;
  2390. onChanged();
  2391. return this;
  2392. }
  2393. private java.lang.Object acctId_ = "";
  2394. /**
  2395. * <pre>
  2396. * RemoteId&gt;&gt;48==20 App;
  2397. * RemoteId&gt;&gt;48==28 微信用户;
  2398. * RemoteId&gt;&gt;48==33,34 外部客户;
  2399. * RemoteId&gt;&gt;48==39 群机器人;
  2400. * RemoteId&gt;&gt;48==30 内部客服;
  2401. * RemoteId&gt;&gt;48==32 VIP客户;
  2402. * </pre>
  2403. *
  2404. * <code>string AcctId = 2;</code>
  2405. * @return The acctId.
  2406. */
  2407. public java.lang.String getAcctId() {
  2408. java.lang.Object ref = acctId_;
  2409. if (!(ref instanceof java.lang.String)) {
  2410. com.google.protobuf.ByteString bs =
  2411. (com.google.protobuf.ByteString) ref;
  2412. java.lang.String s = bs.toStringUtf8();
  2413. acctId_ = s;
  2414. return s;
  2415. } else {
  2416. return (java.lang.String) ref;
  2417. }
  2418. }
  2419. /**
  2420. * <pre>
  2421. * RemoteId&gt;&gt;48==20 App;
  2422. * RemoteId&gt;&gt;48==28 微信用户;
  2423. * RemoteId&gt;&gt;48==33,34 外部客户;
  2424. * RemoteId&gt;&gt;48==39 群机器人;
  2425. * RemoteId&gt;&gt;48==30 内部客服;
  2426. * RemoteId&gt;&gt;48==32 VIP客户;
  2427. * </pre>
  2428. *
  2429. * <code>string AcctId = 2;</code>
  2430. * @return The bytes for acctId.
  2431. */
  2432. public com.google.protobuf.ByteString
  2433. getAcctIdBytes() {
  2434. java.lang.Object ref = acctId_;
  2435. if (ref instanceof String) {
  2436. com.google.protobuf.ByteString b =
  2437. com.google.protobuf.ByteString.copyFromUtf8(
  2438. (java.lang.String) ref);
  2439. acctId_ = b;
  2440. return b;
  2441. } else {
  2442. return (com.google.protobuf.ByteString) ref;
  2443. }
  2444. }
  2445. /**
  2446. * <pre>
  2447. * RemoteId&gt;&gt;48==20 App;
  2448. * RemoteId&gt;&gt;48==28 微信用户;
  2449. * RemoteId&gt;&gt;48==33,34 外部客户;
  2450. * RemoteId&gt;&gt;48==39 群机器人;
  2451. * RemoteId&gt;&gt;48==30 内部客服;
  2452. * RemoteId&gt;&gt;48==32 VIP客户;
  2453. * </pre>
  2454. *
  2455. * <code>string AcctId = 2;</code>
  2456. * @param value The acctId to set.
  2457. * @return This builder for chaining.
  2458. */
  2459. public Builder setAcctId(
  2460. java.lang.String value) {
  2461. if (value == null) {
  2462. throw new NullPointerException();
  2463. }
  2464. acctId_ = value;
  2465. onChanged();
  2466. return this;
  2467. }
  2468. /**
  2469. * <pre>
  2470. * RemoteId&gt;&gt;48==20 App;
  2471. * RemoteId&gt;&gt;48==28 微信用户;
  2472. * RemoteId&gt;&gt;48==33,34 外部客户;
  2473. * RemoteId&gt;&gt;48==39 群机器人;
  2474. * RemoteId&gt;&gt;48==30 内部客服;
  2475. * RemoteId&gt;&gt;48==32 VIP客户;
  2476. * </pre>
  2477. *
  2478. * <code>string AcctId = 2;</code>
  2479. * @return This builder for chaining.
  2480. */
  2481. public Builder clearAcctId() {
  2482. acctId_ = getDefaultInstance().getAcctId();
  2483. onChanged();
  2484. return this;
  2485. }
  2486. /**
  2487. * <pre>
  2488. * RemoteId&gt;&gt;48==20 App;
  2489. * RemoteId&gt;&gt;48==28 微信用户;
  2490. * RemoteId&gt;&gt;48==33,34 外部客户;
  2491. * RemoteId&gt;&gt;48==39 群机器人;
  2492. * RemoteId&gt;&gt;48==30 内部客服;
  2493. * RemoteId&gt;&gt;48==32 VIP客户;
  2494. * </pre>
  2495. *
  2496. * <code>string AcctId = 2;</code>
  2497. * @param value The bytes for acctId to set.
  2498. * @return This builder for chaining.
  2499. */
  2500. public Builder setAcctIdBytes(
  2501. com.google.protobuf.ByteString value) {
  2502. if (value == null) {
  2503. throw new NullPointerException();
  2504. }
  2505. checkByteStringIsUtf8(value);
  2506. acctId_ = value;
  2507. onChanged();
  2508. return this;
  2509. }
  2510. private java.lang.Object name_ = "";
  2511. /**
  2512. * <pre>
  2513. * </pre>
  2514. *
  2515. * <code>string Name = 3;</code>
  2516. * @return The name.
  2517. */
  2518. public java.lang.String getName() {
  2519. java.lang.Object ref = name_;
  2520. if (!(ref instanceof java.lang.String)) {
  2521. com.google.protobuf.ByteString bs =
  2522. (com.google.protobuf.ByteString) ref;
  2523. java.lang.String s = bs.toStringUtf8();
  2524. name_ = s;
  2525. return s;
  2526. } else {
  2527. return (java.lang.String) ref;
  2528. }
  2529. }
  2530. /**
  2531. * <pre>
  2532. * </pre>
  2533. *
  2534. * <code>string Name = 3;</code>
  2535. * @return The bytes for name.
  2536. */
  2537. public com.google.protobuf.ByteString
  2538. getNameBytes() {
  2539. java.lang.Object ref = name_;
  2540. if (ref instanceof String) {
  2541. com.google.protobuf.ByteString b =
  2542. com.google.protobuf.ByteString.copyFromUtf8(
  2543. (java.lang.String) ref);
  2544. name_ = b;
  2545. return b;
  2546. } else {
  2547. return (com.google.protobuf.ByteString) ref;
  2548. }
  2549. }
  2550. /**
  2551. * <pre>
  2552. * </pre>
  2553. *
  2554. * <code>string Name = 3;</code>
  2555. * @param value The name to set.
  2556. * @return This builder for chaining.
  2557. */
  2558. public Builder setName(
  2559. java.lang.String value) {
  2560. if (value == null) {
  2561. throw new NullPointerException();
  2562. }
  2563. name_ = value;
  2564. onChanged();
  2565. return this;
  2566. }
  2567. /**
  2568. * <pre>
  2569. * </pre>
  2570. *
  2571. * <code>string Name = 3;</code>
  2572. * @return This builder for chaining.
  2573. */
  2574. public Builder clearName() {
  2575. name_ = getDefaultInstance().getName();
  2576. onChanged();
  2577. return this;
  2578. }
  2579. /**
  2580. * <pre>
  2581. * </pre>
  2582. *
  2583. * <code>string Name = 3;</code>
  2584. * @param value The bytes for name to set.
  2585. * @return This builder for chaining.
  2586. */
  2587. public Builder setNameBytes(
  2588. com.google.protobuf.ByteString value) {
  2589. if (value == null) {
  2590. throw new NullPointerException();
  2591. }
  2592. checkByteStringIsUtf8(value);
  2593. name_ = value;
  2594. onChanged();
  2595. return this;
  2596. }
  2597. private java.lang.Object alias_ = "";
  2598. /**
  2599. * <code>string Alias = 4;</code>
  2600. * @return The alias.
  2601. */
  2602. public java.lang.String getAlias() {
  2603. java.lang.Object ref = alias_;
  2604. if (!(ref instanceof java.lang.String)) {
  2605. com.google.protobuf.ByteString bs =
  2606. (com.google.protobuf.ByteString) ref;
  2607. java.lang.String s = bs.toStringUtf8();
  2608. alias_ = s;
  2609. return s;
  2610. } else {
  2611. return (java.lang.String) ref;
  2612. }
  2613. }
  2614. /**
  2615. * <code>string Alias = 4;</code>
  2616. * @return The bytes for alias.
  2617. */
  2618. public com.google.protobuf.ByteString
  2619. getAliasBytes() {
  2620. java.lang.Object ref = alias_;
  2621. if (ref instanceof String) {
  2622. com.google.protobuf.ByteString b =
  2623. com.google.protobuf.ByteString.copyFromUtf8(
  2624. (java.lang.String) ref);
  2625. alias_ = b;
  2626. return b;
  2627. } else {
  2628. return (com.google.protobuf.ByteString) ref;
  2629. }
  2630. }
  2631. /**
  2632. * <code>string Alias = 4;</code>
  2633. * @param value The alias to set.
  2634. * @return This builder for chaining.
  2635. */
  2636. public Builder setAlias(
  2637. java.lang.String value) {
  2638. if (value == null) {
  2639. throw new NullPointerException();
  2640. }
  2641. alias_ = value;
  2642. onChanged();
  2643. return this;
  2644. }
  2645. /**
  2646. * <code>string Alias = 4;</code>
  2647. * @return This builder for chaining.
  2648. */
  2649. public Builder clearAlias() {
  2650. alias_ = getDefaultInstance().getAlias();
  2651. onChanged();
  2652. return this;
  2653. }
  2654. /**
  2655. * <code>string Alias = 4;</code>
  2656. * @param value The bytes for alias to set.
  2657. * @return This builder for chaining.
  2658. */
  2659. public Builder setAliasBytes(
  2660. com.google.protobuf.ByteString value) {
  2661. if (value == null) {
  2662. throw new NullPointerException();
  2663. }
  2664. checkByteStringIsUtf8(value);
  2665. alias_ = value;
  2666. onChanged();
  2667. return this;
  2668. }
  2669. private java.lang.Object avatar_ = "";
  2670. /**
  2671. * <code>string Avatar = 5;</code>
  2672. * @return The avatar.
  2673. */
  2674. public java.lang.String getAvatar() {
  2675. java.lang.Object ref = avatar_;
  2676. if (!(ref instanceof java.lang.String)) {
  2677. com.google.protobuf.ByteString bs =
  2678. (com.google.protobuf.ByteString) ref;
  2679. java.lang.String s = bs.toStringUtf8();
  2680. avatar_ = s;
  2681. return s;
  2682. } else {
  2683. return (java.lang.String) ref;
  2684. }
  2685. }
  2686. /**
  2687. * <code>string Avatar = 5;</code>
  2688. * @return The bytes for avatar.
  2689. */
  2690. public com.google.protobuf.ByteString
  2691. getAvatarBytes() {
  2692. java.lang.Object ref = avatar_;
  2693. if (ref instanceof String) {
  2694. com.google.protobuf.ByteString b =
  2695. com.google.protobuf.ByteString.copyFromUtf8(
  2696. (java.lang.String) ref);
  2697. avatar_ = b;
  2698. return b;
  2699. } else {
  2700. return (com.google.protobuf.ByteString) ref;
  2701. }
  2702. }
  2703. /**
  2704. * <code>string Avatar = 5;</code>
  2705. * @param value The avatar to set.
  2706. * @return This builder for chaining.
  2707. */
  2708. public Builder setAvatar(
  2709. java.lang.String value) {
  2710. if (value == null) {
  2711. throw new NullPointerException();
  2712. }
  2713. avatar_ = value;
  2714. onChanged();
  2715. return this;
  2716. }
  2717. /**
  2718. * <code>string Avatar = 5;</code>
  2719. * @return This builder for chaining.
  2720. */
  2721. public Builder clearAvatar() {
  2722. avatar_ = getDefaultInstance().getAvatar();
  2723. onChanged();
  2724. return this;
  2725. }
  2726. /**
  2727. * <code>string Avatar = 5;</code>
  2728. * @param value The bytes for avatar to set.
  2729. * @return This builder for chaining.
  2730. */
  2731. public Builder setAvatarBytes(
  2732. com.google.protobuf.ByteString value) {
  2733. if (value == null) {
  2734. throw new NullPointerException();
  2735. }
  2736. checkByteStringIsUtf8(value);
  2737. avatar_ = value;
  2738. onChanged();
  2739. return this;
  2740. }
  2741. private java.lang.Object job_ = "";
  2742. /**
  2743. * <pre>
  2744. * 职位
  2745. * </pre>
  2746. *
  2747. * <code>string Job = 6;</code>
  2748. * @return The job.
  2749. */
  2750. public java.lang.String getJob() {
  2751. java.lang.Object ref = job_;
  2752. if (!(ref instanceof java.lang.String)) {
  2753. com.google.protobuf.ByteString bs =
  2754. (com.google.protobuf.ByteString) ref;
  2755. java.lang.String s = bs.toStringUtf8();
  2756. job_ = s;
  2757. return s;
  2758. } else {
  2759. return (java.lang.String) ref;
  2760. }
  2761. }
  2762. /**
  2763. * <pre>
  2764. * 职位
  2765. * </pre>
  2766. *
  2767. * <code>string Job = 6;</code>
  2768. * @return The bytes for job.
  2769. */
  2770. public com.google.protobuf.ByteString
  2771. getJobBytes() {
  2772. java.lang.Object ref = job_;
  2773. if (ref instanceof String) {
  2774. com.google.protobuf.ByteString b =
  2775. com.google.protobuf.ByteString.copyFromUtf8(
  2776. (java.lang.String) ref);
  2777. job_ = b;
  2778. return b;
  2779. } else {
  2780. return (com.google.protobuf.ByteString) ref;
  2781. }
  2782. }
  2783. /**
  2784. * <pre>
  2785. * 职位
  2786. * </pre>
  2787. *
  2788. * <code>string Job = 6;</code>
  2789. * @param value The job to set.
  2790. * @return This builder for chaining.
  2791. */
  2792. public Builder setJob(
  2793. java.lang.String value) {
  2794. if (value == null) {
  2795. throw new NullPointerException();
  2796. }
  2797. job_ = value;
  2798. onChanged();
  2799. return this;
  2800. }
  2801. /**
  2802. * <pre>
  2803. * 职位
  2804. * </pre>
  2805. *
  2806. * <code>string Job = 6;</code>
  2807. * @return This builder for chaining.
  2808. */
  2809. public Builder clearJob() {
  2810. job_ = getDefaultInstance().getJob();
  2811. onChanged();
  2812. return this;
  2813. }
  2814. /**
  2815. * <pre>
  2816. * 职位
  2817. * </pre>
  2818. *
  2819. * <code>string Job = 6;</code>
  2820. * @param value The bytes for job to set.
  2821. * @return This builder for chaining.
  2822. */
  2823. public Builder setJobBytes(
  2824. com.google.protobuf.ByteString value) {
  2825. if (value == null) {
  2826. throw new NullPointerException();
  2827. }
  2828. checkByteStringIsUtf8(value);
  2829. job_ = value;
  2830. onChanged();
  2831. return this;
  2832. }
  2833. private java.lang.Object mobile_ = "";
  2834. /**
  2835. * <code>string Mobile = 7;</code>
  2836. * @return The mobile.
  2837. */
  2838. public java.lang.String getMobile() {
  2839. java.lang.Object ref = mobile_;
  2840. if (!(ref instanceof java.lang.String)) {
  2841. com.google.protobuf.ByteString bs =
  2842. (com.google.protobuf.ByteString) ref;
  2843. java.lang.String s = bs.toStringUtf8();
  2844. mobile_ = s;
  2845. return s;
  2846. } else {
  2847. return (java.lang.String) ref;
  2848. }
  2849. }
  2850. /**
  2851. * <code>string Mobile = 7;</code>
  2852. * @return The bytes for mobile.
  2853. */
  2854. public com.google.protobuf.ByteString
  2855. getMobileBytes() {
  2856. java.lang.Object ref = mobile_;
  2857. if (ref instanceof String) {
  2858. com.google.protobuf.ByteString b =
  2859. com.google.protobuf.ByteString.copyFromUtf8(
  2860. (java.lang.String) ref);
  2861. mobile_ = b;
  2862. return b;
  2863. } else {
  2864. return (com.google.protobuf.ByteString) ref;
  2865. }
  2866. }
  2867. /**
  2868. * <code>string Mobile = 7;</code>
  2869. * @param value The mobile to set.
  2870. * @return This builder for chaining.
  2871. */
  2872. public Builder setMobile(
  2873. java.lang.String value) {
  2874. if (value == null) {
  2875. throw new NullPointerException();
  2876. }
  2877. mobile_ = value;
  2878. onChanged();
  2879. return this;
  2880. }
  2881. /**
  2882. * <code>string Mobile = 7;</code>
  2883. * @return This builder for chaining.
  2884. */
  2885. public Builder clearMobile() {
  2886. mobile_ = getDefaultInstance().getMobile();
  2887. onChanged();
  2888. return this;
  2889. }
  2890. /**
  2891. * <code>string Mobile = 7;</code>
  2892. * @param value The bytes for mobile to set.
  2893. * @return This builder for chaining.
  2894. */
  2895. public Builder setMobileBytes(
  2896. com.google.protobuf.ByteString value) {
  2897. if (value == null) {
  2898. throw new NullPointerException();
  2899. }
  2900. checkByteStringIsUtf8(value);
  2901. mobile_ = value;
  2902. onChanged();
  2903. return this;
  2904. }
  2905. private java.lang.Object unionId_ = "";
  2906. /**
  2907. * <code>string UnionId = 8;</code>
  2908. * @return The unionId.
  2909. */
  2910. public java.lang.String getUnionId() {
  2911. java.lang.Object ref = unionId_;
  2912. if (!(ref instanceof java.lang.String)) {
  2913. com.google.protobuf.ByteString bs =
  2914. (com.google.protobuf.ByteString) ref;
  2915. java.lang.String s = bs.toStringUtf8();
  2916. unionId_ = s;
  2917. return s;
  2918. } else {
  2919. return (java.lang.String) ref;
  2920. }
  2921. }
  2922. /**
  2923. * <code>string UnionId = 8;</code>
  2924. * @return The bytes for unionId.
  2925. */
  2926. public com.google.protobuf.ByteString
  2927. getUnionIdBytes() {
  2928. java.lang.Object ref = unionId_;
  2929. if (ref instanceof String) {
  2930. com.google.protobuf.ByteString b =
  2931. com.google.protobuf.ByteString.copyFromUtf8(
  2932. (java.lang.String) ref);
  2933. unionId_ = b;
  2934. return b;
  2935. } else {
  2936. return (com.google.protobuf.ByteString) ref;
  2937. }
  2938. }
  2939. /**
  2940. * <code>string UnionId = 8;</code>
  2941. * @param value The unionId to set.
  2942. * @return This builder for chaining.
  2943. */
  2944. public Builder setUnionId(
  2945. java.lang.String value) {
  2946. if (value == null) {
  2947. throw new NullPointerException();
  2948. }
  2949. unionId_ = value;
  2950. onChanged();
  2951. return this;
  2952. }
  2953. /**
  2954. * <code>string UnionId = 8;</code>
  2955. * @return This builder for chaining.
  2956. */
  2957. public Builder clearUnionId() {
  2958. unionId_ = getDefaultInstance().getUnionId();
  2959. onChanged();
  2960. return this;
  2961. }
  2962. /**
  2963. * <code>string UnionId = 8;</code>
  2964. * @param value The bytes for unionId to set.
  2965. * @return This builder for chaining.
  2966. */
  2967. public Builder setUnionIdBytes(
  2968. com.google.protobuf.ByteString value) {
  2969. if (value == null) {
  2970. throw new NullPointerException();
  2971. }
  2972. checkByteStringIsUtf8(value);
  2973. unionId_ = value;
  2974. onChanged();
  2975. return this;
  2976. }
  2977. private int gender_ = 0;
  2978. /**
  2979. * <code>.Im.Scrm.Ww.Proto.EnumGender Gender = 9;</code>
  2980. * @return The enum numeric value on the wire for gender.
  2981. */
  2982. public int getGenderValue() {
  2983. return gender_;
  2984. }
  2985. /**
  2986. * <code>.Im.Scrm.Ww.Proto.EnumGender Gender = 9;</code>
  2987. * @param value The enum numeric value on the wire for gender to set.
  2988. * @return This builder for chaining.
  2989. */
  2990. public Builder setGenderValue(int value) {
  2991. gender_ = value;
  2992. onChanged();
  2993. return this;
  2994. }
  2995. /**
  2996. * <code>.Im.Scrm.Ww.Proto.EnumGender Gender = 9;</code>
  2997. * @return The gender.
  2998. */
  2999. public Im.Scrm.Ww.Proto.WTransport.EnumGender getGender() {
  3000. @SuppressWarnings("deprecation")
  3001. Im.Scrm.Ww.Proto.WTransport.EnumGender result = Im.Scrm.Ww.Proto.WTransport.EnumGender.valueOf(gender_);
  3002. return result == null ? Im.Scrm.Ww.Proto.WTransport.EnumGender.UNRECOGNIZED : result;
  3003. }
  3004. /**
  3005. * <code>.Im.Scrm.Ww.Proto.EnumGender Gender = 9;</code>
  3006. * @param value The gender to set.
  3007. * @return This builder for chaining.
  3008. */
  3009. public Builder setGender(Im.Scrm.Ww.Proto.WTransport.EnumGender value) {
  3010. if (value == null) {
  3011. throw new NullPointerException();
  3012. }
  3013. gender_ = value.getNumber();
  3014. onChanged();
  3015. return this;
  3016. }
  3017. /**
  3018. * <code>.Im.Scrm.Ww.Proto.EnumGender Gender = 9;</code>
  3019. * @return This builder for chaining.
  3020. */
  3021. public Builder clearGender() {
  3022. gender_ = 0;
  3023. onChanged();
  3024. return this;
  3025. }
  3026. private com.google.protobuf.Internal.LongList departIds_ = emptyLongList();
  3027. private void ensureDepartIdsIsMutable() {
  3028. if (!((bitField0_ & 0x00000001) != 0)) {
  3029. departIds_ = mutableCopy(departIds_);
  3030. bitField0_ |= 0x00000001;
  3031. }
  3032. }
  3033. /**
  3034. * <pre>
  3035. * 所属部门id
  3036. * </pre>
  3037. *
  3038. * <code>repeated int64 DepartIds = 10;</code>
  3039. * @return A list containing the departIds.
  3040. */
  3041. public java.util.List<java.lang.Long>
  3042. getDepartIdsList() {
  3043. return ((bitField0_ & 0x00000001) != 0) ?
  3044. java.util.Collections.unmodifiableList(departIds_) : departIds_;
  3045. }
  3046. /**
  3047. * <pre>
  3048. * 所属部门id
  3049. * </pre>
  3050. *
  3051. * <code>repeated int64 DepartIds = 10;</code>
  3052. * @return The count of departIds.
  3053. */
  3054. public int getDepartIdsCount() {
  3055. return departIds_.size();
  3056. }
  3057. /**
  3058. * <pre>
  3059. * 所属部门id
  3060. * </pre>
  3061. *
  3062. * <code>repeated int64 DepartIds = 10;</code>
  3063. * @param index The index of the element to return.
  3064. * @return The departIds at the given index.
  3065. */
  3066. public long getDepartIds(int index) {
  3067. return departIds_.getLong(index);
  3068. }
  3069. /**
  3070. * <pre>
  3071. * 所属部门id
  3072. * </pre>
  3073. *
  3074. * <code>repeated int64 DepartIds = 10;</code>
  3075. * @param index The index to set the value at.
  3076. * @param value The departIds to set.
  3077. * @return This builder for chaining.
  3078. */
  3079. public Builder setDepartIds(
  3080. int index, long value) {
  3081. ensureDepartIdsIsMutable();
  3082. departIds_.setLong(index, value);
  3083. onChanged();
  3084. return this;
  3085. }
  3086. /**
  3087. * <pre>
  3088. * 所属部门id
  3089. * </pre>
  3090. *
  3091. * <code>repeated int64 DepartIds = 10;</code>
  3092. * @param value The departIds to add.
  3093. * @return This builder for chaining.
  3094. */
  3095. public Builder addDepartIds(long value) {
  3096. ensureDepartIdsIsMutable();
  3097. departIds_.addLong(value);
  3098. onChanged();
  3099. return this;
  3100. }
  3101. /**
  3102. * <pre>
  3103. * 所属部门id
  3104. * </pre>
  3105. *
  3106. * <code>repeated int64 DepartIds = 10;</code>
  3107. * @param values The departIds to add.
  3108. * @return This builder for chaining.
  3109. */
  3110. public Builder addAllDepartIds(
  3111. java.lang.Iterable<? extends java.lang.Long> values) {
  3112. ensureDepartIdsIsMutable();
  3113. com.google.protobuf.AbstractMessageLite.Builder.addAll(
  3114. values, departIds_);
  3115. onChanged();
  3116. return this;
  3117. }
  3118. /**
  3119. * <pre>
  3120. * 所属部门id
  3121. * </pre>
  3122. *
  3123. * <code>repeated int64 DepartIds = 10;</code>
  3124. * @return This builder for chaining.
  3125. */
  3126. public Builder clearDepartIds() {
  3127. departIds_ = emptyLongList();
  3128. bitField0_ = (bitField0_ & ~0x00000001);
  3129. onChanged();
  3130. return this;
  3131. }
  3132. private long attr_ ;
  3133. /**
  3134. * <pre>
  3135. * 属性 (attr &amp; 64) == 64 || (attr &amp; 33554432) == 33554432 已激活企业微信
  3136. * </pre>
  3137. *
  3138. * <code>int64 Attr = 11;</code>
  3139. * @return The attr.
  3140. */
  3141. public long getAttr() {
  3142. return attr_;
  3143. }
  3144. /**
  3145. * <pre>
  3146. * 属性 (attr &amp; 64) == 64 || (attr &amp; 33554432) == 33554432 已激活企业微信
  3147. * </pre>
  3148. *
  3149. * <code>int64 Attr = 11;</code>
  3150. * @param value The attr to set.
  3151. * @return This builder for chaining.
  3152. */
  3153. public Builder setAttr(long value) {
  3154. attr_ = value;
  3155. onChanged();
  3156. return this;
  3157. }
  3158. /**
  3159. * <pre>
  3160. * 属性 (attr &amp; 64) == 64 || (attr &amp; 33554432) == 33554432 已激活企业微信
  3161. * </pre>
  3162. *
  3163. * <code>int64 Attr = 11;</code>
  3164. * @return This builder for chaining.
  3165. */
  3166. public Builder clearAttr() {
  3167. attr_ = 0L;
  3168. onChanged();
  3169. return this;
  3170. }
  3171. @java.lang.Override
  3172. public final Builder setUnknownFields(
  3173. final com.google.protobuf.UnknownFieldSet unknownFields) {
  3174. return super.setUnknownFields(unknownFields);
  3175. }
  3176. @java.lang.Override
  3177. public final Builder mergeUnknownFields(
  3178. final com.google.protobuf.UnknownFieldSet unknownFields) {
  3179. return super.mergeUnknownFields(unknownFields);
  3180. }
  3181. // @@protoc_insertion_point(builder_scope:Im.Scrm.Ww.Proto.ContactMessage)
  3182. }
  3183. // @@protoc_insertion_point(class_scope:Im.Scrm.Ww.Proto.ContactMessage)
  3184. private static final Im.Scrm.Ww.Proto.WContactPushNotice.ContactMessage DEFAULT_INSTANCE;
  3185. static {
  3186. DEFAULT_INSTANCE = new Im.Scrm.Ww.Proto.WContactPushNotice.ContactMessage();
  3187. }
  3188. public static Im.Scrm.Ww.Proto.WContactPushNotice.ContactMessage getDefaultInstance() {
  3189. return DEFAULT_INSTANCE;
  3190. }
  3191. private static final com.google.protobuf.Parser<ContactMessage>
  3192. PARSER = new com.google.protobuf.AbstractParser<ContactMessage>() {
  3193. @java.lang.Override
  3194. public ContactMessage parsePartialFrom(
  3195. com.google.protobuf.CodedInputStream input,
  3196. com.google.protobuf.ExtensionRegistryLite extensionRegistry)
  3197. throws com.google.protobuf.InvalidProtocolBufferException {
  3198. return new ContactMessage(input, extensionRegistry);
  3199. }
  3200. };
  3201. public static com.google.protobuf.Parser<ContactMessage> parser() {
  3202. return PARSER;
  3203. }
  3204. @java.lang.Override
  3205. public com.google.protobuf.Parser<ContactMessage> getParserForType() {
  3206. return PARSER;
  3207. }
  3208. @java.lang.Override
  3209. public Im.Scrm.Ww.Proto.WContactPushNotice.ContactMessage getDefaultInstanceForType() {
  3210. return DEFAULT_INSTANCE;
  3211. }
  3212. }
  3213. private static final com.google.protobuf.Descriptors.Descriptor
  3214. internal_static_Im_Scrm_Ww_Proto_ContactPushNoticeMessage_descriptor;
  3215. private static final
  3216. com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
  3217. internal_static_Im_Scrm_Ww_Proto_ContactPushNoticeMessage_fieldAccessorTable;
  3218. private static final com.google.protobuf.Descriptors.Descriptor
  3219. internal_static_Im_Scrm_Ww_Proto_ContactMessage_descriptor;
  3220. private static final
  3221. com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
  3222. internal_static_Im_Scrm_Ww_Proto_ContactMessage_fieldAccessorTable;
  3223. public static com.google.protobuf.Descriptors.FileDescriptor
  3224. getDescriptor() {
  3225. return descriptor;
  3226. }
  3227. private static com.google.protobuf.Descriptors.FileDescriptor
  3228. descriptor;
  3229. static {
  3230. java.lang.String[] descriptorData = {
  3231. "\n\030WContactPushNotice.proto\022\020Im.Scrm.Ww.P" +
  3232. "roto\032\020WTransport.proto\"\227\001\n\030ContactPushNo" +
  3233. "ticeMessage\022\014\n\004WxId\030\001 \001(\003\0222\n\010Contacts\030\002 " +
  3234. "\003(\0132 .Im.Scrm.Ww.Proto.ContactMessage\022\014\n" +
  3235. "\004Size\030\003 \001(\005\022\r\n\005Count\030\004 \001(\005\022\014\n\004Page\030\005 \001(\005" +
  3236. "\022\016\n\006TaskId\030\006 \001(\003\"\334\001\n\016ContactMessage\022\020\n\010R" +
  3237. "emoteId\030\001 \001(\003\022\016\n\006AcctId\030\002 \001(\t\022\014\n\004Name\030\003 " +
  3238. "\001(\t\022\r\n\005Alias\030\004 \001(\t\022\016\n\006Avatar\030\005 \001(\t\022\013\n\003Jo" +
  3239. "b\030\006 \001(\t\022\016\n\006Mobile\030\007 \001(\t\022\017\n\007UnionId\030\010 \001(\t" +
  3240. "\022,\n\006Gender\030\t \001(\0162\034.Im.Scrm.Ww.Proto.Enum" +
  3241. "Gender\022\021\n\tDepartIds\030\n \003(\003\022\014\n\004Attr\030\013 \001(\003b" +
  3242. "\006proto3"
  3243. };
  3244. descriptor = com.google.protobuf.Descriptors.FileDescriptor
  3245. .internalBuildGeneratedFileFrom(descriptorData,
  3246. new com.google.protobuf.Descriptors.FileDescriptor[] {
  3247. Im.Scrm.Ww.Proto.WTransport.getDescriptor(),
  3248. });
  3249. internal_static_Im_Scrm_Ww_Proto_ContactPushNoticeMessage_descriptor =
  3250. getDescriptor().getMessageTypes().get(0);
  3251. internal_static_Im_Scrm_Ww_Proto_ContactPushNoticeMessage_fieldAccessorTable = new
  3252. com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
  3253. internal_static_Im_Scrm_Ww_Proto_ContactPushNoticeMessage_descriptor,
  3254. new java.lang.String[] { "WxId", "Contacts", "Size", "Count", "Page", "TaskId", });
  3255. internal_static_Im_Scrm_Ww_Proto_ContactMessage_descriptor =
  3256. getDescriptor().getMessageTypes().get(1);
  3257. internal_static_Im_Scrm_Ww_Proto_ContactMessage_fieldAccessorTable = new
  3258. com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
  3259. internal_static_Im_Scrm_Ww_Proto_ContactMessage_descriptor,
  3260. new java.lang.String[] { "RemoteId", "AcctId", "Name", "Alias", "Avatar", "Job", "Mobile", "UnionId", "Gender", "DepartIds", "Attr", });
  3261. Im.Scrm.Ww.Proto.WTransport.getDescriptor();
  3262. }
  3263. // @@protoc_insertion_point(outer_class_scope)
  3264. }