WDeviceAuthRsp.java 71 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018
  1. // Generated by the protocol buffer compiler. DO NOT EDIT!
  2. // source: WDeviceAuthRsp.proto
  3. package Im.Scrm.Ww.Proto;
  4. public final class WDeviceAuthRsp {
  5. private WDeviceAuthRsp() {}
  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 DeviceAuthRspMessageOrBuilder extends
  15. // @@protoc_insertion_point(interface_extends:Im.Scrm.Ww.Proto.DeviceAuthRspMessage)
  16. com.google.protobuf.MessageOrBuilder {
  17. /**
  18. * <pre>
  19. *授权成功后颁发给客户端的accesstoken
  20. * </pre>
  21. *
  22. * <code>string AccessToken = 1;</code>
  23. * @return The accessToken.
  24. */
  25. java.lang.String getAccessToken();
  26. /**
  27. * <pre>
  28. *授权成功后颁发给客户端的accesstoken
  29. * </pre>
  30. *
  31. * <code>string AccessToken = 1;</code>
  32. * @return The bytes for accessToken.
  33. */
  34. com.google.protobuf.ByteString
  35. getAccessTokenBytes();
  36. /**
  37. * <code>.Im.Scrm.Ww.Proto.DeviceAuthRspMessage.ExtraMessage Extra = 2;</code>
  38. * @return Whether the extra field is set.
  39. */
  40. boolean hasExtra();
  41. /**
  42. * <code>.Im.Scrm.Ww.Proto.DeviceAuthRspMessage.ExtraMessage Extra = 2;</code>
  43. * @return The extra.
  44. */
  45. Im.Scrm.Ww.Proto.WDeviceAuthRsp.DeviceAuthRspMessage.ExtraMessage getExtra();
  46. /**
  47. * <code>.Im.Scrm.Ww.Proto.DeviceAuthRspMessage.ExtraMessage Extra = 2;</code>
  48. */
  49. Im.Scrm.Ww.Proto.WDeviceAuthRsp.DeviceAuthRspMessage.ExtraMessageOrBuilder getExtraOrBuilder();
  50. }
  51. /**
  52. * Protobuf type {@code Im.Scrm.Ww.Proto.DeviceAuthRspMessage}
  53. */
  54. public static final class DeviceAuthRspMessage extends
  55. com.google.protobuf.GeneratedMessageV3 implements
  56. // @@protoc_insertion_point(message_implements:Im.Scrm.Ww.Proto.DeviceAuthRspMessage)
  57. DeviceAuthRspMessageOrBuilder {
  58. private static final long serialVersionUID = 0L;
  59. // Use DeviceAuthRspMessage.newBuilder() to construct.
  60. private DeviceAuthRspMessage(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {
  61. super(builder);
  62. }
  63. private DeviceAuthRspMessage() {
  64. accessToken_ = "";
  65. }
  66. @java.lang.Override
  67. @SuppressWarnings({"unused"})
  68. protected java.lang.Object newInstance(
  69. UnusedPrivateParameter unused) {
  70. return new DeviceAuthRspMessage();
  71. }
  72. @java.lang.Override
  73. public final com.google.protobuf.UnknownFieldSet
  74. getUnknownFields() {
  75. return this.unknownFields;
  76. }
  77. private DeviceAuthRspMessage(
  78. com.google.protobuf.CodedInputStream input,
  79. com.google.protobuf.ExtensionRegistryLite extensionRegistry)
  80. throws com.google.protobuf.InvalidProtocolBufferException {
  81. this();
  82. if (extensionRegistry == null) {
  83. throw new java.lang.NullPointerException();
  84. }
  85. com.google.protobuf.UnknownFieldSet.Builder unknownFields =
  86. com.google.protobuf.UnknownFieldSet.newBuilder();
  87. try {
  88. boolean done = false;
  89. while (!done) {
  90. int tag = input.readTag();
  91. switch (tag) {
  92. case 0:
  93. done = true;
  94. break;
  95. case 10: {
  96. java.lang.String s = input.readStringRequireUtf8();
  97. accessToken_ = s;
  98. break;
  99. }
  100. case 18: {
  101. Im.Scrm.Ww.Proto.WDeviceAuthRsp.DeviceAuthRspMessage.ExtraMessage.Builder subBuilder = null;
  102. if (extra_ != null) {
  103. subBuilder = extra_.toBuilder();
  104. }
  105. extra_ = input.readMessage(Im.Scrm.Ww.Proto.WDeviceAuthRsp.DeviceAuthRspMessage.ExtraMessage.parser(), extensionRegistry);
  106. if (subBuilder != null) {
  107. subBuilder.mergeFrom(extra_);
  108. extra_ = subBuilder.buildPartial();
  109. }
  110. break;
  111. }
  112. default: {
  113. if (!parseUnknownField(
  114. input, unknownFields, extensionRegistry, tag)) {
  115. done = true;
  116. }
  117. break;
  118. }
  119. }
  120. }
  121. } catch (com.google.protobuf.InvalidProtocolBufferException e) {
  122. throw e.setUnfinishedMessage(this);
  123. } catch (java.io.IOException e) {
  124. throw new com.google.protobuf.InvalidProtocolBufferException(
  125. e).setUnfinishedMessage(this);
  126. } finally {
  127. this.unknownFields = unknownFields.build();
  128. makeExtensionsImmutable();
  129. }
  130. }
  131. public static final com.google.protobuf.Descriptors.Descriptor
  132. getDescriptor() {
  133. return Im.Scrm.Ww.Proto.WDeviceAuthRsp.internal_static_Im_Scrm_Ww_Proto_DeviceAuthRspMessage_descriptor;
  134. }
  135. @java.lang.Override
  136. protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
  137. internalGetFieldAccessorTable() {
  138. return Im.Scrm.Ww.Proto.WDeviceAuthRsp.internal_static_Im_Scrm_Ww_Proto_DeviceAuthRspMessage_fieldAccessorTable
  139. .ensureFieldAccessorsInitialized(
  140. Im.Scrm.Ww.Proto.WDeviceAuthRsp.DeviceAuthRspMessage.class, Im.Scrm.Ww.Proto.WDeviceAuthRsp.DeviceAuthRspMessage.Builder.class);
  141. }
  142. public interface ExtraMessageOrBuilder extends
  143. // @@protoc_insertion_point(interface_extends:Im.Scrm.Ww.Proto.DeviceAuthRspMessage.ExtraMessage)
  144. com.google.protobuf.MessageOrBuilder {
  145. /**
  146. * <code>int64 SupplierId = 1;</code>
  147. * @return The supplierId.
  148. */
  149. long getSupplierId();
  150. /**
  151. * <code>int64 UnionId = 2;</code>
  152. * @return The unionId.
  153. */
  154. long getUnionId();
  155. /**
  156. * <code>.Im.Scrm.Ww.Proto.EnumAccountType AccountType = 3;</code>
  157. * @return The enum numeric value on the wire for accountType.
  158. */
  159. int getAccountTypeValue();
  160. /**
  161. * <code>.Im.Scrm.Ww.Proto.EnumAccountType AccountType = 3;</code>
  162. * @return The accountType.
  163. */
  164. Im.Scrm.Ww.Proto.WTransport.EnumAccountType getAccountType();
  165. /**
  166. * <code>string SupplierName = 4;</code>
  167. * @return The supplierName.
  168. */
  169. java.lang.String getSupplierName();
  170. /**
  171. * <code>string SupplierName = 4;</code>
  172. * @return The bytes for supplierName.
  173. */
  174. com.google.protobuf.ByteString
  175. getSupplierNameBytes();
  176. /**
  177. * <code>string NickName = 5;</code>
  178. * @return The nickName.
  179. */
  180. java.lang.String getNickName();
  181. /**
  182. * <code>string NickName = 5;</code>
  183. * @return The bytes for nickName.
  184. */
  185. com.google.protobuf.ByteString
  186. getNickNameBytes();
  187. /**
  188. * <pre>
  189. * 访问www使用
  190. * </pre>
  191. *
  192. * <code>string Token = 6;</code>
  193. * @return The token.
  194. */
  195. java.lang.String getToken();
  196. /**
  197. * <pre>
  198. * 访问www使用
  199. * </pre>
  200. *
  201. * <code>string Token = 6;</code>
  202. * @return The bytes for token.
  203. */
  204. com.google.protobuf.ByteString
  205. getTokenBytes();
  206. }
  207. /**
  208. * <pre>
  209. * 扩展信息
  210. * </pre>
  211. *
  212. * Protobuf type {@code Im.Scrm.Ww.Proto.DeviceAuthRspMessage.ExtraMessage}
  213. */
  214. public static final class ExtraMessage extends
  215. com.google.protobuf.GeneratedMessageV3 implements
  216. // @@protoc_insertion_point(message_implements:Im.Scrm.Ww.Proto.DeviceAuthRspMessage.ExtraMessage)
  217. ExtraMessageOrBuilder {
  218. private static final long serialVersionUID = 0L;
  219. // Use ExtraMessage.newBuilder() to construct.
  220. private ExtraMessage(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {
  221. super(builder);
  222. }
  223. private ExtraMessage() {
  224. accountType_ = 0;
  225. supplierName_ = "";
  226. nickName_ = "";
  227. token_ = "";
  228. }
  229. @java.lang.Override
  230. @SuppressWarnings({"unused"})
  231. protected java.lang.Object newInstance(
  232. UnusedPrivateParameter unused) {
  233. return new ExtraMessage();
  234. }
  235. @java.lang.Override
  236. public final com.google.protobuf.UnknownFieldSet
  237. getUnknownFields() {
  238. return this.unknownFields;
  239. }
  240. private ExtraMessage(
  241. com.google.protobuf.CodedInputStream input,
  242. com.google.protobuf.ExtensionRegistryLite extensionRegistry)
  243. throws com.google.protobuf.InvalidProtocolBufferException {
  244. this();
  245. if (extensionRegistry == null) {
  246. throw new java.lang.NullPointerException();
  247. }
  248. com.google.protobuf.UnknownFieldSet.Builder unknownFields =
  249. com.google.protobuf.UnknownFieldSet.newBuilder();
  250. try {
  251. boolean done = false;
  252. while (!done) {
  253. int tag = input.readTag();
  254. switch (tag) {
  255. case 0:
  256. done = true;
  257. break;
  258. case 8: {
  259. supplierId_ = input.readInt64();
  260. break;
  261. }
  262. case 16: {
  263. unionId_ = input.readInt64();
  264. break;
  265. }
  266. case 24: {
  267. int rawValue = input.readEnum();
  268. accountType_ = rawValue;
  269. break;
  270. }
  271. case 34: {
  272. java.lang.String s = input.readStringRequireUtf8();
  273. supplierName_ = s;
  274. break;
  275. }
  276. case 42: {
  277. java.lang.String s = input.readStringRequireUtf8();
  278. nickName_ = s;
  279. break;
  280. }
  281. case 50: {
  282. java.lang.String s = input.readStringRequireUtf8();
  283. token_ = s;
  284. break;
  285. }
  286. default: {
  287. if (!parseUnknownField(
  288. input, unknownFields, extensionRegistry, tag)) {
  289. done = true;
  290. }
  291. break;
  292. }
  293. }
  294. }
  295. } catch (com.google.protobuf.InvalidProtocolBufferException e) {
  296. throw e.setUnfinishedMessage(this);
  297. } catch (java.io.IOException e) {
  298. throw new com.google.protobuf.InvalidProtocolBufferException(
  299. e).setUnfinishedMessage(this);
  300. } finally {
  301. this.unknownFields = unknownFields.build();
  302. makeExtensionsImmutable();
  303. }
  304. }
  305. public static final com.google.protobuf.Descriptors.Descriptor
  306. getDescriptor() {
  307. return Im.Scrm.Ww.Proto.WDeviceAuthRsp.internal_static_Im_Scrm_Ww_Proto_DeviceAuthRspMessage_ExtraMessage_descriptor;
  308. }
  309. @java.lang.Override
  310. protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
  311. internalGetFieldAccessorTable() {
  312. return Im.Scrm.Ww.Proto.WDeviceAuthRsp.internal_static_Im_Scrm_Ww_Proto_DeviceAuthRspMessage_ExtraMessage_fieldAccessorTable
  313. .ensureFieldAccessorsInitialized(
  314. Im.Scrm.Ww.Proto.WDeviceAuthRsp.DeviceAuthRspMessage.ExtraMessage.class, Im.Scrm.Ww.Proto.WDeviceAuthRsp.DeviceAuthRspMessage.ExtraMessage.Builder.class);
  315. }
  316. public static final int SUPPLIERID_FIELD_NUMBER = 1;
  317. private long supplierId_;
  318. /**
  319. * <code>int64 SupplierId = 1;</code>
  320. * @return The supplierId.
  321. */
  322. public long getSupplierId() {
  323. return supplierId_;
  324. }
  325. public static final int UNIONID_FIELD_NUMBER = 2;
  326. private long unionId_;
  327. /**
  328. * <code>int64 UnionId = 2;</code>
  329. * @return The unionId.
  330. */
  331. public long getUnionId() {
  332. return unionId_;
  333. }
  334. public static final int ACCOUNTTYPE_FIELD_NUMBER = 3;
  335. private int accountType_;
  336. /**
  337. * <code>.Im.Scrm.Ww.Proto.EnumAccountType AccountType = 3;</code>
  338. * @return The enum numeric value on the wire for accountType.
  339. */
  340. public int getAccountTypeValue() {
  341. return accountType_;
  342. }
  343. /**
  344. * <code>.Im.Scrm.Ww.Proto.EnumAccountType AccountType = 3;</code>
  345. * @return The accountType.
  346. */
  347. public Im.Scrm.Ww.Proto.WTransport.EnumAccountType getAccountType() {
  348. @SuppressWarnings("deprecation")
  349. Im.Scrm.Ww.Proto.WTransport.EnumAccountType result = Im.Scrm.Ww.Proto.WTransport.EnumAccountType.valueOf(accountType_);
  350. return result == null ? Im.Scrm.Ww.Proto.WTransport.EnumAccountType.UNRECOGNIZED : result;
  351. }
  352. public static final int SUPPLIERNAME_FIELD_NUMBER = 4;
  353. private volatile java.lang.Object supplierName_;
  354. /**
  355. * <code>string SupplierName = 4;</code>
  356. * @return The supplierName.
  357. */
  358. public java.lang.String getSupplierName() {
  359. java.lang.Object ref = supplierName_;
  360. if (ref instanceof java.lang.String) {
  361. return (java.lang.String) ref;
  362. } else {
  363. com.google.protobuf.ByteString bs =
  364. (com.google.protobuf.ByteString) ref;
  365. java.lang.String s = bs.toStringUtf8();
  366. supplierName_ = s;
  367. return s;
  368. }
  369. }
  370. /**
  371. * <code>string SupplierName = 4;</code>
  372. * @return The bytes for supplierName.
  373. */
  374. public com.google.protobuf.ByteString
  375. getSupplierNameBytes() {
  376. java.lang.Object ref = supplierName_;
  377. if (ref instanceof java.lang.String) {
  378. com.google.protobuf.ByteString b =
  379. com.google.protobuf.ByteString.copyFromUtf8(
  380. (java.lang.String) ref);
  381. supplierName_ = b;
  382. return b;
  383. } else {
  384. return (com.google.protobuf.ByteString) ref;
  385. }
  386. }
  387. public static final int NICKNAME_FIELD_NUMBER = 5;
  388. private volatile java.lang.Object nickName_;
  389. /**
  390. * <code>string NickName = 5;</code>
  391. * @return The nickName.
  392. */
  393. public java.lang.String getNickName() {
  394. java.lang.Object ref = nickName_;
  395. if (ref instanceof java.lang.String) {
  396. return (java.lang.String) ref;
  397. } else {
  398. com.google.protobuf.ByteString bs =
  399. (com.google.protobuf.ByteString) ref;
  400. java.lang.String s = bs.toStringUtf8();
  401. nickName_ = s;
  402. return s;
  403. }
  404. }
  405. /**
  406. * <code>string NickName = 5;</code>
  407. * @return The bytes for nickName.
  408. */
  409. public com.google.protobuf.ByteString
  410. getNickNameBytes() {
  411. java.lang.Object ref = nickName_;
  412. if (ref instanceof java.lang.String) {
  413. com.google.protobuf.ByteString b =
  414. com.google.protobuf.ByteString.copyFromUtf8(
  415. (java.lang.String) ref);
  416. nickName_ = b;
  417. return b;
  418. } else {
  419. return (com.google.protobuf.ByteString) ref;
  420. }
  421. }
  422. public static final int TOKEN_FIELD_NUMBER = 6;
  423. private volatile java.lang.Object token_;
  424. /**
  425. * <pre>
  426. * 访问www使用
  427. * </pre>
  428. *
  429. * <code>string Token = 6;</code>
  430. * @return The token.
  431. */
  432. public java.lang.String getToken() {
  433. java.lang.Object ref = token_;
  434. if (ref instanceof java.lang.String) {
  435. return (java.lang.String) ref;
  436. } else {
  437. com.google.protobuf.ByteString bs =
  438. (com.google.protobuf.ByteString) ref;
  439. java.lang.String s = bs.toStringUtf8();
  440. token_ = s;
  441. return s;
  442. }
  443. }
  444. /**
  445. * <pre>
  446. * 访问www使用
  447. * </pre>
  448. *
  449. * <code>string Token = 6;</code>
  450. * @return The bytes for token.
  451. */
  452. public com.google.protobuf.ByteString
  453. getTokenBytes() {
  454. java.lang.Object ref = token_;
  455. if (ref instanceof java.lang.String) {
  456. com.google.protobuf.ByteString b =
  457. com.google.protobuf.ByteString.copyFromUtf8(
  458. (java.lang.String) ref);
  459. token_ = b;
  460. return b;
  461. } else {
  462. return (com.google.protobuf.ByteString) ref;
  463. }
  464. }
  465. private byte memoizedIsInitialized = -1;
  466. @java.lang.Override
  467. public final boolean isInitialized() {
  468. byte isInitialized = memoizedIsInitialized;
  469. if (isInitialized == 1) return true;
  470. if (isInitialized == 0) return false;
  471. memoizedIsInitialized = 1;
  472. return true;
  473. }
  474. @java.lang.Override
  475. public void writeTo(com.google.protobuf.CodedOutputStream output)
  476. throws java.io.IOException {
  477. if (supplierId_ != 0L) {
  478. output.writeInt64(1, supplierId_);
  479. }
  480. if (unionId_ != 0L) {
  481. output.writeInt64(2, unionId_);
  482. }
  483. if (accountType_ != Im.Scrm.Ww.Proto.WTransport.EnumAccountType.UnknownAccountType.getNumber()) {
  484. output.writeEnum(3, accountType_);
  485. }
  486. if (!getSupplierNameBytes().isEmpty()) {
  487. com.google.protobuf.GeneratedMessageV3.writeString(output, 4, supplierName_);
  488. }
  489. if (!getNickNameBytes().isEmpty()) {
  490. com.google.protobuf.GeneratedMessageV3.writeString(output, 5, nickName_);
  491. }
  492. if (!getTokenBytes().isEmpty()) {
  493. com.google.protobuf.GeneratedMessageV3.writeString(output, 6, token_);
  494. }
  495. unknownFields.writeTo(output);
  496. }
  497. @java.lang.Override
  498. public int getSerializedSize() {
  499. int size = memoizedSize;
  500. if (size != -1) return size;
  501. size = 0;
  502. if (supplierId_ != 0L) {
  503. size += com.google.protobuf.CodedOutputStream
  504. .computeInt64Size(1, supplierId_);
  505. }
  506. if (unionId_ != 0L) {
  507. size += com.google.protobuf.CodedOutputStream
  508. .computeInt64Size(2, unionId_);
  509. }
  510. if (accountType_ != Im.Scrm.Ww.Proto.WTransport.EnumAccountType.UnknownAccountType.getNumber()) {
  511. size += com.google.protobuf.CodedOutputStream
  512. .computeEnumSize(3, accountType_);
  513. }
  514. if (!getSupplierNameBytes().isEmpty()) {
  515. size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, supplierName_);
  516. }
  517. if (!getNickNameBytes().isEmpty()) {
  518. size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, nickName_);
  519. }
  520. if (!getTokenBytes().isEmpty()) {
  521. size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, token_);
  522. }
  523. size += unknownFields.getSerializedSize();
  524. memoizedSize = size;
  525. return size;
  526. }
  527. @java.lang.Override
  528. public boolean equals(final java.lang.Object obj) {
  529. if (obj == this) {
  530. return true;
  531. }
  532. if (!(obj instanceof Im.Scrm.Ww.Proto.WDeviceAuthRsp.DeviceAuthRspMessage.ExtraMessage)) {
  533. return super.equals(obj);
  534. }
  535. Im.Scrm.Ww.Proto.WDeviceAuthRsp.DeviceAuthRspMessage.ExtraMessage other = (Im.Scrm.Ww.Proto.WDeviceAuthRsp.DeviceAuthRspMessage.ExtraMessage) obj;
  536. if (getSupplierId()
  537. != other.getSupplierId()) return false;
  538. if (getUnionId()
  539. != other.getUnionId()) return false;
  540. if (accountType_ != other.accountType_) return false;
  541. if (!getSupplierName()
  542. .equals(other.getSupplierName())) return false;
  543. if (!getNickName()
  544. .equals(other.getNickName())) return false;
  545. if (!getToken()
  546. .equals(other.getToken())) return false;
  547. if (!unknownFields.equals(other.unknownFields)) return false;
  548. return true;
  549. }
  550. @java.lang.Override
  551. public int hashCode() {
  552. if (memoizedHashCode != 0) {
  553. return memoizedHashCode;
  554. }
  555. int hash = 41;
  556. hash = (19 * hash) + getDescriptor().hashCode();
  557. hash = (37 * hash) + SUPPLIERID_FIELD_NUMBER;
  558. hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
  559. getSupplierId());
  560. hash = (37 * hash) + UNIONID_FIELD_NUMBER;
  561. hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
  562. getUnionId());
  563. hash = (37 * hash) + ACCOUNTTYPE_FIELD_NUMBER;
  564. hash = (53 * hash) + accountType_;
  565. hash = (37 * hash) + SUPPLIERNAME_FIELD_NUMBER;
  566. hash = (53 * hash) + getSupplierName().hashCode();
  567. hash = (37 * hash) + NICKNAME_FIELD_NUMBER;
  568. hash = (53 * hash) + getNickName().hashCode();
  569. hash = (37 * hash) + TOKEN_FIELD_NUMBER;
  570. hash = (53 * hash) + getToken().hashCode();
  571. hash = (29 * hash) + unknownFields.hashCode();
  572. memoizedHashCode = hash;
  573. return hash;
  574. }
  575. public static Im.Scrm.Ww.Proto.WDeviceAuthRsp.DeviceAuthRspMessage.ExtraMessage parseFrom(
  576. java.nio.ByteBuffer data)
  577. throws com.google.protobuf.InvalidProtocolBufferException {
  578. return PARSER.parseFrom(data);
  579. }
  580. public static Im.Scrm.Ww.Proto.WDeviceAuthRsp.DeviceAuthRspMessage.ExtraMessage parseFrom(
  581. java.nio.ByteBuffer data,
  582. com.google.protobuf.ExtensionRegistryLite extensionRegistry)
  583. throws com.google.protobuf.InvalidProtocolBufferException {
  584. return PARSER.parseFrom(data, extensionRegistry);
  585. }
  586. public static Im.Scrm.Ww.Proto.WDeviceAuthRsp.DeviceAuthRspMessage.ExtraMessage parseFrom(
  587. com.google.protobuf.ByteString data)
  588. throws com.google.protobuf.InvalidProtocolBufferException {
  589. return PARSER.parseFrom(data);
  590. }
  591. public static Im.Scrm.Ww.Proto.WDeviceAuthRsp.DeviceAuthRspMessage.ExtraMessage parseFrom(
  592. com.google.protobuf.ByteString data,
  593. com.google.protobuf.ExtensionRegistryLite extensionRegistry)
  594. throws com.google.protobuf.InvalidProtocolBufferException {
  595. return PARSER.parseFrom(data, extensionRegistry);
  596. }
  597. public static Im.Scrm.Ww.Proto.WDeviceAuthRsp.DeviceAuthRspMessage.ExtraMessage parseFrom(byte[] data)
  598. throws com.google.protobuf.InvalidProtocolBufferException {
  599. return PARSER.parseFrom(data);
  600. }
  601. public static Im.Scrm.Ww.Proto.WDeviceAuthRsp.DeviceAuthRspMessage.ExtraMessage parseFrom(
  602. byte[] data,
  603. com.google.protobuf.ExtensionRegistryLite extensionRegistry)
  604. throws com.google.protobuf.InvalidProtocolBufferException {
  605. return PARSER.parseFrom(data, extensionRegistry);
  606. }
  607. public static Im.Scrm.Ww.Proto.WDeviceAuthRsp.DeviceAuthRspMessage.ExtraMessage parseFrom(java.io.InputStream input)
  608. throws java.io.IOException {
  609. return com.google.protobuf.GeneratedMessageV3
  610. .parseWithIOException(PARSER, input);
  611. }
  612. public static Im.Scrm.Ww.Proto.WDeviceAuthRsp.DeviceAuthRspMessage.ExtraMessage parseFrom(
  613. java.io.InputStream input,
  614. com.google.protobuf.ExtensionRegistryLite extensionRegistry)
  615. throws java.io.IOException {
  616. return com.google.protobuf.GeneratedMessageV3
  617. .parseWithIOException(PARSER, input, extensionRegistry);
  618. }
  619. public static Im.Scrm.Ww.Proto.WDeviceAuthRsp.DeviceAuthRspMessage.ExtraMessage parseDelimitedFrom(java.io.InputStream input)
  620. throws java.io.IOException {
  621. return com.google.protobuf.GeneratedMessageV3
  622. .parseDelimitedWithIOException(PARSER, input);
  623. }
  624. public static Im.Scrm.Ww.Proto.WDeviceAuthRsp.DeviceAuthRspMessage.ExtraMessage parseDelimitedFrom(
  625. java.io.InputStream input,
  626. com.google.protobuf.ExtensionRegistryLite extensionRegistry)
  627. throws java.io.IOException {
  628. return com.google.protobuf.GeneratedMessageV3
  629. .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
  630. }
  631. public static Im.Scrm.Ww.Proto.WDeviceAuthRsp.DeviceAuthRspMessage.ExtraMessage parseFrom(
  632. com.google.protobuf.CodedInputStream input)
  633. throws java.io.IOException {
  634. return com.google.protobuf.GeneratedMessageV3
  635. .parseWithIOException(PARSER, input);
  636. }
  637. public static Im.Scrm.Ww.Proto.WDeviceAuthRsp.DeviceAuthRspMessage.ExtraMessage parseFrom(
  638. com.google.protobuf.CodedInputStream input,
  639. com.google.protobuf.ExtensionRegistryLite extensionRegistry)
  640. throws java.io.IOException {
  641. return com.google.protobuf.GeneratedMessageV3
  642. .parseWithIOException(PARSER, input, extensionRegistry);
  643. }
  644. @java.lang.Override
  645. public Builder newBuilderForType() { return newBuilder(); }
  646. public static Builder newBuilder() {
  647. return DEFAULT_INSTANCE.toBuilder();
  648. }
  649. public static Builder newBuilder(Im.Scrm.Ww.Proto.WDeviceAuthRsp.DeviceAuthRspMessage.ExtraMessage prototype) {
  650. return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
  651. }
  652. @java.lang.Override
  653. public Builder toBuilder() {
  654. return this == DEFAULT_INSTANCE
  655. ? new Builder() : new Builder().mergeFrom(this);
  656. }
  657. @java.lang.Override
  658. protected Builder newBuilderForType(
  659. com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
  660. Builder builder = new Builder(parent);
  661. return builder;
  662. }
  663. /**
  664. * <pre>
  665. * 扩展信息
  666. * </pre>
  667. *
  668. * Protobuf type {@code Im.Scrm.Ww.Proto.DeviceAuthRspMessage.ExtraMessage}
  669. */
  670. public static final class Builder extends
  671. com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements
  672. // @@protoc_insertion_point(builder_implements:Im.Scrm.Ww.Proto.DeviceAuthRspMessage.ExtraMessage)
  673. Im.Scrm.Ww.Proto.WDeviceAuthRsp.DeviceAuthRspMessage.ExtraMessageOrBuilder {
  674. public static final com.google.protobuf.Descriptors.Descriptor
  675. getDescriptor() {
  676. return Im.Scrm.Ww.Proto.WDeviceAuthRsp.internal_static_Im_Scrm_Ww_Proto_DeviceAuthRspMessage_ExtraMessage_descriptor;
  677. }
  678. @java.lang.Override
  679. protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
  680. internalGetFieldAccessorTable() {
  681. return Im.Scrm.Ww.Proto.WDeviceAuthRsp.internal_static_Im_Scrm_Ww_Proto_DeviceAuthRspMessage_ExtraMessage_fieldAccessorTable
  682. .ensureFieldAccessorsInitialized(
  683. Im.Scrm.Ww.Proto.WDeviceAuthRsp.DeviceAuthRspMessage.ExtraMessage.class, Im.Scrm.Ww.Proto.WDeviceAuthRsp.DeviceAuthRspMessage.ExtraMessage.Builder.class);
  684. }
  685. // Construct using Im.Scrm.Ww.Proto.WDeviceAuthRsp.DeviceAuthRspMessage.ExtraMessage.newBuilder()
  686. private Builder() {
  687. maybeForceBuilderInitialization();
  688. }
  689. private Builder(
  690. com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
  691. super(parent);
  692. maybeForceBuilderInitialization();
  693. }
  694. private void maybeForceBuilderInitialization() {
  695. if (com.google.protobuf.GeneratedMessageV3
  696. .alwaysUseFieldBuilders) {
  697. }
  698. }
  699. @java.lang.Override
  700. public Builder clear() {
  701. super.clear();
  702. supplierId_ = 0L;
  703. unionId_ = 0L;
  704. accountType_ = 0;
  705. supplierName_ = "";
  706. nickName_ = "";
  707. token_ = "";
  708. return this;
  709. }
  710. @java.lang.Override
  711. public com.google.protobuf.Descriptors.Descriptor
  712. getDescriptorForType() {
  713. return Im.Scrm.Ww.Proto.WDeviceAuthRsp.internal_static_Im_Scrm_Ww_Proto_DeviceAuthRspMessage_ExtraMessage_descriptor;
  714. }
  715. @java.lang.Override
  716. public Im.Scrm.Ww.Proto.WDeviceAuthRsp.DeviceAuthRspMessage.ExtraMessage getDefaultInstanceForType() {
  717. return Im.Scrm.Ww.Proto.WDeviceAuthRsp.DeviceAuthRspMessage.ExtraMessage.getDefaultInstance();
  718. }
  719. @java.lang.Override
  720. public Im.Scrm.Ww.Proto.WDeviceAuthRsp.DeviceAuthRspMessage.ExtraMessage build() {
  721. Im.Scrm.Ww.Proto.WDeviceAuthRsp.DeviceAuthRspMessage.ExtraMessage result = buildPartial();
  722. if (!result.isInitialized()) {
  723. throw newUninitializedMessageException(result);
  724. }
  725. return result;
  726. }
  727. @java.lang.Override
  728. public Im.Scrm.Ww.Proto.WDeviceAuthRsp.DeviceAuthRspMessage.ExtraMessage buildPartial() {
  729. Im.Scrm.Ww.Proto.WDeviceAuthRsp.DeviceAuthRspMessage.ExtraMessage result = new Im.Scrm.Ww.Proto.WDeviceAuthRsp.DeviceAuthRspMessage.ExtraMessage(this);
  730. result.supplierId_ = supplierId_;
  731. result.unionId_ = unionId_;
  732. result.accountType_ = accountType_;
  733. result.supplierName_ = supplierName_;
  734. result.nickName_ = nickName_;
  735. result.token_ = token_;
  736. onBuilt();
  737. return result;
  738. }
  739. @java.lang.Override
  740. public Builder clone() {
  741. return super.clone();
  742. }
  743. @java.lang.Override
  744. public Builder setField(
  745. com.google.protobuf.Descriptors.FieldDescriptor field,
  746. java.lang.Object value) {
  747. return super.setField(field, value);
  748. }
  749. @java.lang.Override
  750. public Builder clearField(
  751. com.google.protobuf.Descriptors.FieldDescriptor field) {
  752. return super.clearField(field);
  753. }
  754. @java.lang.Override
  755. public Builder clearOneof(
  756. com.google.protobuf.Descriptors.OneofDescriptor oneof) {
  757. return super.clearOneof(oneof);
  758. }
  759. @java.lang.Override
  760. public Builder setRepeatedField(
  761. com.google.protobuf.Descriptors.FieldDescriptor field,
  762. int index, java.lang.Object value) {
  763. return super.setRepeatedField(field, index, value);
  764. }
  765. @java.lang.Override
  766. public Builder addRepeatedField(
  767. com.google.protobuf.Descriptors.FieldDescriptor field,
  768. java.lang.Object value) {
  769. return super.addRepeatedField(field, value);
  770. }
  771. @java.lang.Override
  772. public Builder mergeFrom(com.google.protobuf.Message other) {
  773. if (other instanceof Im.Scrm.Ww.Proto.WDeviceAuthRsp.DeviceAuthRspMessage.ExtraMessage) {
  774. return mergeFrom((Im.Scrm.Ww.Proto.WDeviceAuthRsp.DeviceAuthRspMessage.ExtraMessage)other);
  775. } else {
  776. super.mergeFrom(other);
  777. return this;
  778. }
  779. }
  780. public Builder mergeFrom(Im.Scrm.Ww.Proto.WDeviceAuthRsp.DeviceAuthRspMessage.ExtraMessage other) {
  781. if (other == Im.Scrm.Ww.Proto.WDeviceAuthRsp.DeviceAuthRspMessage.ExtraMessage.getDefaultInstance()) return this;
  782. if (other.getSupplierId() != 0L) {
  783. setSupplierId(other.getSupplierId());
  784. }
  785. if (other.getUnionId() != 0L) {
  786. setUnionId(other.getUnionId());
  787. }
  788. if (other.accountType_ != 0) {
  789. setAccountTypeValue(other.getAccountTypeValue());
  790. }
  791. if (!other.getSupplierName().isEmpty()) {
  792. supplierName_ = other.supplierName_;
  793. onChanged();
  794. }
  795. if (!other.getNickName().isEmpty()) {
  796. nickName_ = other.nickName_;
  797. onChanged();
  798. }
  799. if (!other.getToken().isEmpty()) {
  800. token_ = other.token_;
  801. onChanged();
  802. }
  803. this.mergeUnknownFields(other.unknownFields);
  804. onChanged();
  805. return this;
  806. }
  807. @java.lang.Override
  808. public final boolean isInitialized() {
  809. return true;
  810. }
  811. @java.lang.Override
  812. public Builder mergeFrom(
  813. com.google.protobuf.CodedInputStream input,
  814. com.google.protobuf.ExtensionRegistryLite extensionRegistry)
  815. throws java.io.IOException {
  816. Im.Scrm.Ww.Proto.WDeviceAuthRsp.DeviceAuthRspMessage.ExtraMessage parsedMessage = null;
  817. try {
  818. parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
  819. } catch (com.google.protobuf.InvalidProtocolBufferException e) {
  820. parsedMessage = (Im.Scrm.Ww.Proto.WDeviceAuthRsp.DeviceAuthRspMessage.ExtraMessage) e.getUnfinishedMessage();
  821. throw e.unwrapIOException();
  822. } finally {
  823. if (parsedMessage != null) {
  824. mergeFrom(parsedMessage);
  825. }
  826. }
  827. return this;
  828. }
  829. private long supplierId_ ;
  830. /**
  831. * <code>int64 SupplierId = 1;</code>
  832. * @return The supplierId.
  833. */
  834. public long getSupplierId() {
  835. return supplierId_;
  836. }
  837. /**
  838. * <code>int64 SupplierId = 1;</code>
  839. * @param value The supplierId to set.
  840. * @return This builder for chaining.
  841. */
  842. public Builder setSupplierId(long value) {
  843. supplierId_ = value;
  844. onChanged();
  845. return this;
  846. }
  847. /**
  848. * <code>int64 SupplierId = 1;</code>
  849. * @return This builder for chaining.
  850. */
  851. public Builder clearSupplierId() {
  852. supplierId_ = 0L;
  853. onChanged();
  854. return this;
  855. }
  856. private long unionId_ ;
  857. /**
  858. * <code>int64 UnionId = 2;</code>
  859. * @return The unionId.
  860. */
  861. public long getUnionId() {
  862. return unionId_;
  863. }
  864. /**
  865. * <code>int64 UnionId = 2;</code>
  866. * @param value The unionId to set.
  867. * @return This builder for chaining.
  868. */
  869. public Builder setUnionId(long value) {
  870. unionId_ = value;
  871. onChanged();
  872. return this;
  873. }
  874. /**
  875. * <code>int64 UnionId = 2;</code>
  876. * @return This builder for chaining.
  877. */
  878. public Builder clearUnionId() {
  879. unionId_ = 0L;
  880. onChanged();
  881. return this;
  882. }
  883. private int accountType_ = 0;
  884. /**
  885. * <code>.Im.Scrm.Ww.Proto.EnumAccountType AccountType = 3;</code>
  886. * @return The enum numeric value on the wire for accountType.
  887. */
  888. public int getAccountTypeValue() {
  889. return accountType_;
  890. }
  891. /**
  892. * <code>.Im.Scrm.Ww.Proto.EnumAccountType AccountType = 3;</code>
  893. * @param value The enum numeric value on the wire for accountType to set.
  894. * @return This builder for chaining.
  895. */
  896. public Builder setAccountTypeValue(int value) {
  897. accountType_ = value;
  898. onChanged();
  899. return this;
  900. }
  901. /**
  902. * <code>.Im.Scrm.Ww.Proto.EnumAccountType AccountType = 3;</code>
  903. * @return The accountType.
  904. */
  905. public Im.Scrm.Ww.Proto.WTransport.EnumAccountType getAccountType() {
  906. @SuppressWarnings("deprecation")
  907. Im.Scrm.Ww.Proto.WTransport.EnumAccountType result = Im.Scrm.Ww.Proto.WTransport.EnumAccountType.valueOf(accountType_);
  908. return result == null ? Im.Scrm.Ww.Proto.WTransport.EnumAccountType.UNRECOGNIZED : result;
  909. }
  910. /**
  911. * <code>.Im.Scrm.Ww.Proto.EnumAccountType AccountType = 3;</code>
  912. * @param value The accountType to set.
  913. * @return This builder for chaining.
  914. */
  915. public Builder setAccountType(Im.Scrm.Ww.Proto.WTransport.EnumAccountType value) {
  916. if (value == null) {
  917. throw new NullPointerException();
  918. }
  919. accountType_ = value.getNumber();
  920. onChanged();
  921. return this;
  922. }
  923. /**
  924. * <code>.Im.Scrm.Ww.Proto.EnumAccountType AccountType = 3;</code>
  925. * @return This builder for chaining.
  926. */
  927. public Builder clearAccountType() {
  928. accountType_ = 0;
  929. onChanged();
  930. return this;
  931. }
  932. private java.lang.Object supplierName_ = "";
  933. /**
  934. * <code>string SupplierName = 4;</code>
  935. * @return The supplierName.
  936. */
  937. public java.lang.String getSupplierName() {
  938. java.lang.Object ref = supplierName_;
  939. if (!(ref instanceof java.lang.String)) {
  940. com.google.protobuf.ByteString bs =
  941. (com.google.protobuf.ByteString) ref;
  942. java.lang.String s = bs.toStringUtf8();
  943. supplierName_ = s;
  944. return s;
  945. } else {
  946. return (java.lang.String) ref;
  947. }
  948. }
  949. /**
  950. * <code>string SupplierName = 4;</code>
  951. * @return The bytes for supplierName.
  952. */
  953. public com.google.protobuf.ByteString
  954. getSupplierNameBytes() {
  955. java.lang.Object ref = supplierName_;
  956. if (ref instanceof String) {
  957. com.google.protobuf.ByteString b =
  958. com.google.protobuf.ByteString.copyFromUtf8(
  959. (java.lang.String) ref);
  960. supplierName_ = b;
  961. return b;
  962. } else {
  963. return (com.google.protobuf.ByteString) ref;
  964. }
  965. }
  966. /**
  967. * <code>string SupplierName = 4;</code>
  968. * @param value The supplierName to set.
  969. * @return This builder for chaining.
  970. */
  971. public Builder setSupplierName(
  972. java.lang.String value) {
  973. if (value == null) {
  974. throw new NullPointerException();
  975. }
  976. supplierName_ = value;
  977. onChanged();
  978. return this;
  979. }
  980. /**
  981. * <code>string SupplierName = 4;</code>
  982. * @return This builder for chaining.
  983. */
  984. public Builder clearSupplierName() {
  985. supplierName_ = getDefaultInstance().getSupplierName();
  986. onChanged();
  987. return this;
  988. }
  989. /**
  990. * <code>string SupplierName = 4;</code>
  991. * @param value The bytes for supplierName to set.
  992. * @return This builder for chaining.
  993. */
  994. public Builder setSupplierNameBytes(
  995. com.google.protobuf.ByteString value) {
  996. if (value == null) {
  997. throw new NullPointerException();
  998. }
  999. checkByteStringIsUtf8(value);
  1000. supplierName_ = value;
  1001. onChanged();
  1002. return this;
  1003. }
  1004. private java.lang.Object nickName_ = "";
  1005. /**
  1006. * <code>string NickName = 5;</code>
  1007. * @return The nickName.
  1008. */
  1009. public java.lang.String getNickName() {
  1010. java.lang.Object ref = nickName_;
  1011. if (!(ref instanceof java.lang.String)) {
  1012. com.google.protobuf.ByteString bs =
  1013. (com.google.protobuf.ByteString) ref;
  1014. java.lang.String s = bs.toStringUtf8();
  1015. nickName_ = s;
  1016. return s;
  1017. } else {
  1018. return (java.lang.String) ref;
  1019. }
  1020. }
  1021. /**
  1022. * <code>string NickName = 5;</code>
  1023. * @return The bytes for nickName.
  1024. */
  1025. public com.google.protobuf.ByteString
  1026. getNickNameBytes() {
  1027. java.lang.Object ref = nickName_;
  1028. if (ref instanceof String) {
  1029. com.google.protobuf.ByteString b =
  1030. com.google.protobuf.ByteString.copyFromUtf8(
  1031. (java.lang.String) ref);
  1032. nickName_ = b;
  1033. return b;
  1034. } else {
  1035. return (com.google.protobuf.ByteString) ref;
  1036. }
  1037. }
  1038. /**
  1039. * <code>string NickName = 5;</code>
  1040. * @param value The nickName to set.
  1041. * @return This builder for chaining.
  1042. */
  1043. public Builder setNickName(
  1044. java.lang.String value) {
  1045. if (value == null) {
  1046. throw new NullPointerException();
  1047. }
  1048. nickName_ = value;
  1049. onChanged();
  1050. return this;
  1051. }
  1052. /**
  1053. * <code>string NickName = 5;</code>
  1054. * @return This builder for chaining.
  1055. */
  1056. public Builder clearNickName() {
  1057. nickName_ = getDefaultInstance().getNickName();
  1058. onChanged();
  1059. return this;
  1060. }
  1061. /**
  1062. * <code>string NickName = 5;</code>
  1063. * @param value The bytes for nickName to set.
  1064. * @return This builder for chaining.
  1065. */
  1066. public Builder setNickNameBytes(
  1067. com.google.protobuf.ByteString value) {
  1068. if (value == null) {
  1069. throw new NullPointerException();
  1070. }
  1071. checkByteStringIsUtf8(value);
  1072. nickName_ = value;
  1073. onChanged();
  1074. return this;
  1075. }
  1076. private java.lang.Object token_ = "";
  1077. /**
  1078. * <pre>
  1079. * 访问www使用
  1080. * </pre>
  1081. *
  1082. * <code>string Token = 6;</code>
  1083. * @return The token.
  1084. */
  1085. public java.lang.String getToken() {
  1086. java.lang.Object ref = token_;
  1087. if (!(ref instanceof java.lang.String)) {
  1088. com.google.protobuf.ByteString bs =
  1089. (com.google.protobuf.ByteString) ref;
  1090. java.lang.String s = bs.toStringUtf8();
  1091. token_ = s;
  1092. return s;
  1093. } else {
  1094. return (java.lang.String) ref;
  1095. }
  1096. }
  1097. /**
  1098. * <pre>
  1099. * 访问www使用
  1100. * </pre>
  1101. *
  1102. * <code>string Token = 6;</code>
  1103. * @return The bytes for token.
  1104. */
  1105. public com.google.protobuf.ByteString
  1106. getTokenBytes() {
  1107. java.lang.Object ref = token_;
  1108. if (ref instanceof String) {
  1109. com.google.protobuf.ByteString b =
  1110. com.google.protobuf.ByteString.copyFromUtf8(
  1111. (java.lang.String) ref);
  1112. token_ = b;
  1113. return b;
  1114. } else {
  1115. return (com.google.protobuf.ByteString) ref;
  1116. }
  1117. }
  1118. /**
  1119. * <pre>
  1120. * 访问www使用
  1121. * </pre>
  1122. *
  1123. * <code>string Token = 6;</code>
  1124. * @param value The token to set.
  1125. * @return This builder for chaining.
  1126. */
  1127. public Builder setToken(
  1128. java.lang.String value) {
  1129. if (value == null) {
  1130. throw new NullPointerException();
  1131. }
  1132. token_ = value;
  1133. onChanged();
  1134. return this;
  1135. }
  1136. /**
  1137. * <pre>
  1138. * 访问www使用
  1139. * </pre>
  1140. *
  1141. * <code>string Token = 6;</code>
  1142. * @return This builder for chaining.
  1143. */
  1144. public Builder clearToken() {
  1145. token_ = getDefaultInstance().getToken();
  1146. onChanged();
  1147. return this;
  1148. }
  1149. /**
  1150. * <pre>
  1151. * 访问www使用
  1152. * </pre>
  1153. *
  1154. * <code>string Token = 6;</code>
  1155. * @param value The bytes for token to set.
  1156. * @return This builder for chaining.
  1157. */
  1158. public Builder setTokenBytes(
  1159. com.google.protobuf.ByteString value) {
  1160. if (value == null) {
  1161. throw new NullPointerException();
  1162. }
  1163. checkByteStringIsUtf8(value);
  1164. token_ = value;
  1165. onChanged();
  1166. return this;
  1167. }
  1168. @java.lang.Override
  1169. public final Builder setUnknownFields(
  1170. final com.google.protobuf.UnknownFieldSet unknownFields) {
  1171. return super.setUnknownFields(unknownFields);
  1172. }
  1173. @java.lang.Override
  1174. public final Builder mergeUnknownFields(
  1175. final com.google.protobuf.UnknownFieldSet unknownFields) {
  1176. return super.mergeUnknownFields(unknownFields);
  1177. }
  1178. // @@protoc_insertion_point(builder_scope:Im.Scrm.Ww.Proto.DeviceAuthRspMessage.ExtraMessage)
  1179. }
  1180. // @@protoc_insertion_point(class_scope:Im.Scrm.Ww.Proto.DeviceAuthRspMessage.ExtraMessage)
  1181. private static final Im.Scrm.Ww.Proto.WDeviceAuthRsp.DeviceAuthRspMessage.ExtraMessage DEFAULT_INSTANCE;
  1182. static {
  1183. DEFAULT_INSTANCE = new Im.Scrm.Ww.Proto.WDeviceAuthRsp.DeviceAuthRspMessage.ExtraMessage();
  1184. }
  1185. public static Im.Scrm.Ww.Proto.WDeviceAuthRsp.DeviceAuthRspMessage.ExtraMessage getDefaultInstance() {
  1186. return DEFAULT_INSTANCE;
  1187. }
  1188. private static final com.google.protobuf.Parser<ExtraMessage>
  1189. PARSER = new com.google.protobuf.AbstractParser<ExtraMessage>() {
  1190. @java.lang.Override
  1191. public ExtraMessage parsePartialFrom(
  1192. com.google.protobuf.CodedInputStream input,
  1193. com.google.protobuf.ExtensionRegistryLite extensionRegistry)
  1194. throws com.google.protobuf.InvalidProtocolBufferException {
  1195. return new ExtraMessage(input, extensionRegistry);
  1196. }
  1197. };
  1198. public static com.google.protobuf.Parser<ExtraMessage> parser() {
  1199. return PARSER;
  1200. }
  1201. @java.lang.Override
  1202. public com.google.protobuf.Parser<ExtraMessage> getParserForType() {
  1203. return PARSER;
  1204. }
  1205. @java.lang.Override
  1206. public Im.Scrm.Ww.Proto.WDeviceAuthRsp.DeviceAuthRspMessage.ExtraMessage getDefaultInstanceForType() {
  1207. return DEFAULT_INSTANCE;
  1208. }
  1209. }
  1210. public static final int ACCESSTOKEN_FIELD_NUMBER = 1;
  1211. private volatile java.lang.Object accessToken_;
  1212. /**
  1213. * <pre>
  1214. *授权成功后颁发给客户端的accesstoken
  1215. * </pre>
  1216. *
  1217. * <code>string AccessToken = 1;</code>
  1218. * @return The accessToken.
  1219. */
  1220. public java.lang.String getAccessToken() {
  1221. java.lang.Object ref = accessToken_;
  1222. if (ref instanceof java.lang.String) {
  1223. return (java.lang.String) ref;
  1224. } else {
  1225. com.google.protobuf.ByteString bs =
  1226. (com.google.protobuf.ByteString) ref;
  1227. java.lang.String s = bs.toStringUtf8();
  1228. accessToken_ = s;
  1229. return s;
  1230. }
  1231. }
  1232. /**
  1233. * <pre>
  1234. *授权成功后颁发给客户端的accesstoken
  1235. * </pre>
  1236. *
  1237. * <code>string AccessToken = 1;</code>
  1238. * @return The bytes for accessToken.
  1239. */
  1240. public com.google.protobuf.ByteString
  1241. getAccessTokenBytes() {
  1242. java.lang.Object ref = accessToken_;
  1243. if (ref instanceof java.lang.String) {
  1244. com.google.protobuf.ByteString b =
  1245. com.google.protobuf.ByteString.copyFromUtf8(
  1246. (java.lang.String) ref);
  1247. accessToken_ = b;
  1248. return b;
  1249. } else {
  1250. return (com.google.protobuf.ByteString) ref;
  1251. }
  1252. }
  1253. public static final int EXTRA_FIELD_NUMBER = 2;
  1254. private Im.Scrm.Ww.Proto.WDeviceAuthRsp.DeviceAuthRspMessage.ExtraMessage extra_;
  1255. /**
  1256. * <code>.Im.Scrm.Ww.Proto.DeviceAuthRspMessage.ExtraMessage Extra = 2;</code>
  1257. * @return Whether the extra field is set.
  1258. */
  1259. public boolean hasExtra() {
  1260. return extra_ != null;
  1261. }
  1262. /**
  1263. * <code>.Im.Scrm.Ww.Proto.DeviceAuthRspMessage.ExtraMessage Extra = 2;</code>
  1264. * @return The extra.
  1265. */
  1266. public Im.Scrm.Ww.Proto.WDeviceAuthRsp.DeviceAuthRspMessage.ExtraMessage getExtra() {
  1267. return extra_ == null ? Im.Scrm.Ww.Proto.WDeviceAuthRsp.DeviceAuthRspMessage.ExtraMessage.getDefaultInstance() : extra_;
  1268. }
  1269. /**
  1270. * <code>.Im.Scrm.Ww.Proto.DeviceAuthRspMessage.ExtraMessage Extra = 2;</code>
  1271. */
  1272. public Im.Scrm.Ww.Proto.WDeviceAuthRsp.DeviceAuthRspMessage.ExtraMessageOrBuilder getExtraOrBuilder() {
  1273. return getExtra();
  1274. }
  1275. private byte memoizedIsInitialized = -1;
  1276. @java.lang.Override
  1277. public final boolean isInitialized() {
  1278. byte isInitialized = memoizedIsInitialized;
  1279. if (isInitialized == 1) return true;
  1280. if (isInitialized == 0) return false;
  1281. memoizedIsInitialized = 1;
  1282. return true;
  1283. }
  1284. @java.lang.Override
  1285. public void writeTo(com.google.protobuf.CodedOutputStream output)
  1286. throws java.io.IOException {
  1287. if (!getAccessTokenBytes().isEmpty()) {
  1288. com.google.protobuf.GeneratedMessageV3.writeString(output, 1, accessToken_);
  1289. }
  1290. if (extra_ != null) {
  1291. output.writeMessage(2, getExtra());
  1292. }
  1293. unknownFields.writeTo(output);
  1294. }
  1295. @java.lang.Override
  1296. public int getSerializedSize() {
  1297. int size = memoizedSize;
  1298. if (size != -1) return size;
  1299. size = 0;
  1300. if (!getAccessTokenBytes().isEmpty()) {
  1301. size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, accessToken_);
  1302. }
  1303. if (extra_ != null) {
  1304. size += com.google.protobuf.CodedOutputStream
  1305. .computeMessageSize(2, getExtra());
  1306. }
  1307. size += unknownFields.getSerializedSize();
  1308. memoizedSize = size;
  1309. return size;
  1310. }
  1311. @java.lang.Override
  1312. public boolean equals(final java.lang.Object obj) {
  1313. if (obj == this) {
  1314. return true;
  1315. }
  1316. if (!(obj instanceof Im.Scrm.Ww.Proto.WDeviceAuthRsp.DeviceAuthRspMessage)) {
  1317. return super.equals(obj);
  1318. }
  1319. Im.Scrm.Ww.Proto.WDeviceAuthRsp.DeviceAuthRspMessage other = (Im.Scrm.Ww.Proto.WDeviceAuthRsp.DeviceAuthRspMessage) obj;
  1320. if (!getAccessToken()
  1321. .equals(other.getAccessToken())) return false;
  1322. if (hasExtra() != other.hasExtra()) return false;
  1323. if (hasExtra()) {
  1324. if (!getExtra()
  1325. .equals(other.getExtra())) return false;
  1326. }
  1327. if (!unknownFields.equals(other.unknownFields)) return false;
  1328. return true;
  1329. }
  1330. @java.lang.Override
  1331. public int hashCode() {
  1332. if (memoizedHashCode != 0) {
  1333. return memoizedHashCode;
  1334. }
  1335. int hash = 41;
  1336. hash = (19 * hash) + getDescriptor().hashCode();
  1337. hash = (37 * hash) + ACCESSTOKEN_FIELD_NUMBER;
  1338. hash = (53 * hash) + getAccessToken().hashCode();
  1339. if (hasExtra()) {
  1340. hash = (37 * hash) + EXTRA_FIELD_NUMBER;
  1341. hash = (53 * hash) + getExtra().hashCode();
  1342. }
  1343. hash = (29 * hash) + unknownFields.hashCode();
  1344. memoizedHashCode = hash;
  1345. return hash;
  1346. }
  1347. public static Im.Scrm.Ww.Proto.WDeviceAuthRsp.DeviceAuthRspMessage parseFrom(
  1348. java.nio.ByteBuffer data)
  1349. throws com.google.protobuf.InvalidProtocolBufferException {
  1350. return PARSER.parseFrom(data);
  1351. }
  1352. public static Im.Scrm.Ww.Proto.WDeviceAuthRsp.DeviceAuthRspMessage parseFrom(
  1353. java.nio.ByteBuffer data,
  1354. com.google.protobuf.ExtensionRegistryLite extensionRegistry)
  1355. throws com.google.protobuf.InvalidProtocolBufferException {
  1356. return PARSER.parseFrom(data, extensionRegistry);
  1357. }
  1358. public static Im.Scrm.Ww.Proto.WDeviceAuthRsp.DeviceAuthRspMessage parseFrom(
  1359. com.google.protobuf.ByteString data)
  1360. throws com.google.protobuf.InvalidProtocolBufferException {
  1361. return PARSER.parseFrom(data);
  1362. }
  1363. public static Im.Scrm.Ww.Proto.WDeviceAuthRsp.DeviceAuthRspMessage parseFrom(
  1364. com.google.protobuf.ByteString data,
  1365. com.google.protobuf.ExtensionRegistryLite extensionRegistry)
  1366. throws com.google.protobuf.InvalidProtocolBufferException {
  1367. return PARSER.parseFrom(data, extensionRegistry);
  1368. }
  1369. public static Im.Scrm.Ww.Proto.WDeviceAuthRsp.DeviceAuthRspMessage parseFrom(byte[] data)
  1370. throws com.google.protobuf.InvalidProtocolBufferException {
  1371. return PARSER.parseFrom(data);
  1372. }
  1373. public static Im.Scrm.Ww.Proto.WDeviceAuthRsp.DeviceAuthRspMessage parseFrom(
  1374. byte[] data,
  1375. com.google.protobuf.ExtensionRegistryLite extensionRegistry)
  1376. throws com.google.protobuf.InvalidProtocolBufferException {
  1377. return PARSER.parseFrom(data, extensionRegistry);
  1378. }
  1379. public static Im.Scrm.Ww.Proto.WDeviceAuthRsp.DeviceAuthRspMessage parseFrom(java.io.InputStream input)
  1380. throws java.io.IOException {
  1381. return com.google.protobuf.GeneratedMessageV3
  1382. .parseWithIOException(PARSER, input);
  1383. }
  1384. public static Im.Scrm.Ww.Proto.WDeviceAuthRsp.DeviceAuthRspMessage parseFrom(
  1385. java.io.InputStream input,
  1386. com.google.protobuf.ExtensionRegistryLite extensionRegistry)
  1387. throws java.io.IOException {
  1388. return com.google.protobuf.GeneratedMessageV3
  1389. .parseWithIOException(PARSER, input, extensionRegistry);
  1390. }
  1391. public static Im.Scrm.Ww.Proto.WDeviceAuthRsp.DeviceAuthRspMessage parseDelimitedFrom(java.io.InputStream input)
  1392. throws java.io.IOException {
  1393. return com.google.protobuf.GeneratedMessageV3
  1394. .parseDelimitedWithIOException(PARSER, input);
  1395. }
  1396. public static Im.Scrm.Ww.Proto.WDeviceAuthRsp.DeviceAuthRspMessage parseDelimitedFrom(
  1397. java.io.InputStream input,
  1398. com.google.protobuf.ExtensionRegistryLite extensionRegistry)
  1399. throws java.io.IOException {
  1400. return com.google.protobuf.GeneratedMessageV3
  1401. .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
  1402. }
  1403. public static Im.Scrm.Ww.Proto.WDeviceAuthRsp.DeviceAuthRspMessage parseFrom(
  1404. com.google.protobuf.CodedInputStream input)
  1405. throws java.io.IOException {
  1406. return com.google.protobuf.GeneratedMessageV3
  1407. .parseWithIOException(PARSER, input);
  1408. }
  1409. public static Im.Scrm.Ww.Proto.WDeviceAuthRsp.DeviceAuthRspMessage parseFrom(
  1410. com.google.protobuf.CodedInputStream input,
  1411. com.google.protobuf.ExtensionRegistryLite extensionRegistry)
  1412. throws java.io.IOException {
  1413. return com.google.protobuf.GeneratedMessageV3
  1414. .parseWithIOException(PARSER, input, extensionRegistry);
  1415. }
  1416. @java.lang.Override
  1417. public Builder newBuilderForType() { return newBuilder(); }
  1418. public static Builder newBuilder() {
  1419. return DEFAULT_INSTANCE.toBuilder();
  1420. }
  1421. public static Builder newBuilder(Im.Scrm.Ww.Proto.WDeviceAuthRsp.DeviceAuthRspMessage prototype) {
  1422. return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
  1423. }
  1424. @java.lang.Override
  1425. public Builder toBuilder() {
  1426. return this == DEFAULT_INSTANCE
  1427. ? new Builder() : new Builder().mergeFrom(this);
  1428. }
  1429. @java.lang.Override
  1430. protected Builder newBuilderForType(
  1431. com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
  1432. Builder builder = new Builder(parent);
  1433. return builder;
  1434. }
  1435. /**
  1436. * Protobuf type {@code Im.Scrm.Ww.Proto.DeviceAuthRspMessage}
  1437. */
  1438. public static final class Builder extends
  1439. com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements
  1440. // @@protoc_insertion_point(builder_implements:Im.Scrm.Ww.Proto.DeviceAuthRspMessage)
  1441. Im.Scrm.Ww.Proto.WDeviceAuthRsp.DeviceAuthRspMessageOrBuilder {
  1442. public static final com.google.protobuf.Descriptors.Descriptor
  1443. getDescriptor() {
  1444. return Im.Scrm.Ww.Proto.WDeviceAuthRsp.internal_static_Im_Scrm_Ww_Proto_DeviceAuthRspMessage_descriptor;
  1445. }
  1446. @java.lang.Override
  1447. protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
  1448. internalGetFieldAccessorTable() {
  1449. return Im.Scrm.Ww.Proto.WDeviceAuthRsp.internal_static_Im_Scrm_Ww_Proto_DeviceAuthRspMessage_fieldAccessorTable
  1450. .ensureFieldAccessorsInitialized(
  1451. Im.Scrm.Ww.Proto.WDeviceAuthRsp.DeviceAuthRspMessage.class, Im.Scrm.Ww.Proto.WDeviceAuthRsp.DeviceAuthRspMessage.Builder.class);
  1452. }
  1453. // Construct using Im.Scrm.Ww.Proto.WDeviceAuthRsp.DeviceAuthRspMessage.newBuilder()
  1454. private Builder() {
  1455. maybeForceBuilderInitialization();
  1456. }
  1457. private Builder(
  1458. com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
  1459. super(parent);
  1460. maybeForceBuilderInitialization();
  1461. }
  1462. private void maybeForceBuilderInitialization() {
  1463. if (com.google.protobuf.GeneratedMessageV3
  1464. .alwaysUseFieldBuilders) {
  1465. }
  1466. }
  1467. @java.lang.Override
  1468. public Builder clear() {
  1469. super.clear();
  1470. accessToken_ = "";
  1471. if (extraBuilder_ == null) {
  1472. extra_ = null;
  1473. } else {
  1474. extra_ = null;
  1475. extraBuilder_ = null;
  1476. }
  1477. return this;
  1478. }
  1479. @java.lang.Override
  1480. public com.google.protobuf.Descriptors.Descriptor
  1481. getDescriptorForType() {
  1482. return Im.Scrm.Ww.Proto.WDeviceAuthRsp.internal_static_Im_Scrm_Ww_Proto_DeviceAuthRspMessage_descriptor;
  1483. }
  1484. @java.lang.Override
  1485. public Im.Scrm.Ww.Proto.WDeviceAuthRsp.DeviceAuthRspMessage getDefaultInstanceForType() {
  1486. return Im.Scrm.Ww.Proto.WDeviceAuthRsp.DeviceAuthRspMessage.getDefaultInstance();
  1487. }
  1488. @java.lang.Override
  1489. public Im.Scrm.Ww.Proto.WDeviceAuthRsp.DeviceAuthRspMessage build() {
  1490. Im.Scrm.Ww.Proto.WDeviceAuthRsp.DeviceAuthRspMessage result = buildPartial();
  1491. if (!result.isInitialized()) {
  1492. throw newUninitializedMessageException(result);
  1493. }
  1494. return result;
  1495. }
  1496. @java.lang.Override
  1497. public Im.Scrm.Ww.Proto.WDeviceAuthRsp.DeviceAuthRspMessage buildPartial() {
  1498. Im.Scrm.Ww.Proto.WDeviceAuthRsp.DeviceAuthRspMessage result = new Im.Scrm.Ww.Proto.WDeviceAuthRsp.DeviceAuthRspMessage(this);
  1499. result.accessToken_ = accessToken_;
  1500. if (extraBuilder_ == null) {
  1501. result.extra_ = extra_;
  1502. } else {
  1503. result.extra_ = extraBuilder_.build();
  1504. }
  1505. onBuilt();
  1506. return result;
  1507. }
  1508. @java.lang.Override
  1509. public Builder clone() {
  1510. return super.clone();
  1511. }
  1512. @java.lang.Override
  1513. public Builder setField(
  1514. com.google.protobuf.Descriptors.FieldDescriptor field,
  1515. java.lang.Object value) {
  1516. return super.setField(field, value);
  1517. }
  1518. @java.lang.Override
  1519. public Builder clearField(
  1520. com.google.protobuf.Descriptors.FieldDescriptor field) {
  1521. return super.clearField(field);
  1522. }
  1523. @java.lang.Override
  1524. public Builder clearOneof(
  1525. com.google.protobuf.Descriptors.OneofDescriptor oneof) {
  1526. return super.clearOneof(oneof);
  1527. }
  1528. @java.lang.Override
  1529. public Builder setRepeatedField(
  1530. com.google.protobuf.Descriptors.FieldDescriptor field,
  1531. int index, java.lang.Object value) {
  1532. return super.setRepeatedField(field, index, value);
  1533. }
  1534. @java.lang.Override
  1535. public Builder addRepeatedField(
  1536. com.google.protobuf.Descriptors.FieldDescriptor field,
  1537. java.lang.Object value) {
  1538. return super.addRepeatedField(field, value);
  1539. }
  1540. @java.lang.Override
  1541. public Builder mergeFrom(com.google.protobuf.Message other) {
  1542. if (other instanceof Im.Scrm.Ww.Proto.WDeviceAuthRsp.DeviceAuthRspMessage) {
  1543. return mergeFrom((Im.Scrm.Ww.Proto.WDeviceAuthRsp.DeviceAuthRspMessage)other);
  1544. } else {
  1545. super.mergeFrom(other);
  1546. return this;
  1547. }
  1548. }
  1549. public Builder mergeFrom(Im.Scrm.Ww.Proto.WDeviceAuthRsp.DeviceAuthRspMessage other) {
  1550. if (other == Im.Scrm.Ww.Proto.WDeviceAuthRsp.DeviceAuthRspMessage.getDefaultInstance()) return this;
  1551. if (!other.getAccessToken().isEmpty()) {
  1552. accessToken_ = other.accessToken_;
  1553. onChanged();
  1554. }
  1555. if (other.hasExtra()) {
  1556. mergeExtra(other.getExtra());
  1557. }
  1558. this.mergeUnknownFields(other.unknownFields);
  1559. onChanged();
  1560. return this;
  1561. }
  1562. @java.lang.Override
  1563. public final boolean isInitialized() {
  1564. return true;
  1565. }
  1566. @java.lang.Override
  1567. public Builder mergeFrom(
  1568. com.google.protobuf.CodedInputStream input,
  1569. com.google.protobuf.ExtensionRegistryLite extensionRegistry)
  1570. throws java.io.IOException {
  1571. Im.Scrm.Ww.Proto.WDeviceAuthRsp.DeviceAuthRspMessage parsedMessage = null;
  1572. try {
  1573. parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
  1574. } catch (com.google.protobuf.InvalidProtocolBufferException e) {
  1575. parsedMessage = (Im.Scrm.Ww.Proto.WDeviceAuthRsp.DeviceAuthRspMessage) e.getUnfinishedMessage();
  1576. throw e.unwrapIOException();
  1577. } finally {
  1578. if (parsedMessage != null) {
  1579. mergeFrom(parsedMessage);
  1580. }
  1581. }
  1582. return this;
  1583. }
  1584. private java.lang.Object accessToken_ = "";
  1585. /**
  1586. * <pre>
  1587. *授权成功后颁发给客户端的accesstoken
  1588. * </pre>
  1589. *
  1590. * <code>string AccessToken = 1;</code>
  1591. * @return The accessToken.
  1592. */
  1593. public java.lang.String getAccessToken() {
  1594. java.lang.Object ref = accessToken_;
  1595. if (!(ref instanceof java.lang.String)) {
  1596. com.google.protobuf.ByteString bs =
  1597. (com.google.protobuf.ByteString) ref;
  1598. java.lang.String s = bs.toStringUtf8();
  1599. accessToken_ = s;
  1600. return s;
  1601. } else {
  1602. return (java.lang.String) ref;
  1603. }
  1604. }
  1605. /**
  1606. * <pre>
  1607. *授权成功后颁发给客户端的accesstoken
  1608. * </pre>
  1609. *
  1610. * <code>string AccessToken = 1;</code>
  1611. * @return The bytes for accessToken.
  1612. */
  1613. public com.google.protobuf.ByteString
  1614. getAccessTokenBytes() {
  1615. java.lang.Object ref = accessToken_;
  1616. if (ref instanceof String) {
  1617. com.google.protobuf.ByteString b =
  1618. com.google.protobuf.ByteString.copyFromUtf8(
  1619. (java.lang.String) ref);
  1620. accessToken_ = b;
  1621. return b;
  1622. } else {
  1623. return (com.google.protobuf.ByteString) ref;
  1624. }
  1625. }
  1626. /**
  1627. * <pre>
  1628. *授权成功后颁发给客户端的accesstoken
  1629. * </pre>
  1630. *
  1631. * <code>string AccessToken = 1;</code>
  1632. * @param value The accessToken to set.
  1633. * @return This builder for chaining.
  1634. */
  1635. public Builder setAccessToken(
  1636. java.lang.String value) {
  1637. if (value == null) {
  1638. throw new NullPointerException();
  1639. }
  1640. accessToken_ = value;
  1641. onChanged();
  1642. return this;
  1643. }
  1644. /**
  1645. * <pre>
  1646. *授权成功后颁发给客户端的accesstoken
  1647. * </pre>
  1648. *
  1649. * <code>string AccessToken = 1;</code>
  1650. * @return This builder for chaining.
  1651. */
  1652. public Builder clearAccessToken() {
  1653. accessToken_ = getDefaultInstance().getAccessToken();
  1654. onChanged();
  1655. return this;
  1656. }
  1657. /**
  1658. * <pre>
  1659. *授权成功后颁发给客户端的accesstoken
  1660. * </pre>
  1661. *
  1662. * <code>string AccessToken = 1;</code>
  1663. * @param value The bytes for accessToken to set.
  1664. * @return This builder for chaining.
  1665. */
  1666. public Builder setAccessTokenBytes(
  1667. com.google.protobuf.ByteString value) {
  1668. if (value == null) {
  1669. throw new NullPointerException();
  1670. }
  1671. checkByteStringIsUtf8(value);
  1672. accessToken_ = value;
  1673. onChanged();
  1674. return this;
  1675. }
  1676. private Im.Scrm.Ww.Proto.WDeviceAuthRsp.DeviceAuthRspMessage.ExtraMessage extra_;
  1677. private com.google.protobuf.SingleFieldBuilderV3<
  1678. Im.Scrm.Ww.Proto.WDeviceAuthRsp.DeviceAuthRspMessage.ExtraMessage, Im.Scrm.Ww.Proto.WDeviceAuthRsp.DeviceAuthRspMessage.ExtraMessage.Builder, Im.Scrm.Ww.Proto.WDeviceAuthRsp.DeviceAuthRspMessage.ExtraMessageOrBuilder> extraBuilder_;
  1679. /**
  1680. * <code>.Im.Scrm.Ww.Proto.DeviceAuthRspMessage.ExtraMessage Extra = 2;</code>
  1681. * @return Whether the extra field is set.
  1682. */
  1683. public boolean hasExtra() {
  1684. return extraBuilder_ != null || extra_ != null;
  1685. }
  1686. /**
  1687. * <code>.Im.Scrm.Ww.Proto.DeviceAuthRspMessage.ExtraMessage Extra = 2;</code>
  1688. * @return The extra.
  1689. */
  1690. public Im.Scrm.Ww.Proto.WDeviceAuthRsp.DeviceAuthRspMessage.ExtraMessage getExtra() {
  1691. if (extraBuilder_ == null) {
  1692. return extra_ == null ? Im.Scrm.Ww.Proto.WDeviceAuthRsp.DeviceAuthRspMessage.ExtraMessage.getDefaultInstance() : extra_;
  1693. } else {
  1694. return extraBuilder_.getMessage();
  1695. }
  1696. }
  1697. /**
  1698. * <code>.Im.Scrm.Ww.Proto.DeviceAuthRspMessage.ExtraMessage Extra = 2;</code>
  1699. */
  1700. public Builder setExtra(Im.Scrm.Ww.Proto.WDeviceAuthRsp.DeviceAuthRspMessage.ExtraMessage value) {
  1701. if (extraBuilder_ == null) {
  1702. if (value == null) {
  1703. throw new NullPointerException();
  1704. }
  1705. extra_ = value;
  1706. onChanged();
  1707. } else {
  1708. extraBuilder_.setMessage(value);
  1709. }
  1710. return this;
  1711. }
  1712. /**
  1713. * <code>.Im.Scrm.Ww.Proto.DeviceAuthRspMessage.ExtraMessage Extra = 2;</code>
  1714. */
  1715. public Builder setExtra(
  1716. Im.Scrm.Ww.Proto.WDeviceAuthRsp.DeviceAuthRspMessage.ExtraMessage.Builder builderForValue) {
  1717. if (extraBuilder_ == null) {
  1718. extra_ = builderForValue.build();
  1719. onChanged();
  1720. } else {
  1721. extraBuilder_.setMessage(builderForValue.build());
  1722. }
  1723. return this;
  1724. }
  1725. /**
  1726. * <code>.Im.Scrm.Ww.Proto.DeviceAuthRspMessage.ExtraMessage Extra = 2;</code>
  1727. */
  1728. public Builder mergeExtra(Im.Scrm.Ww.Proto.WDeviceAuthRsp.DeviceAuthRspMessage.ExtraMessage value) {
  1729. if (extraBuilder_ == null) {
  1730. if (extra_ != null) {
  1731. extra_ =
  1732. Im.Scrm.Ww.Proto.WDeviceAuthRsp.DeviceAuthRspMessage.ExtraMessage.newBuilder(extra_).mergeFrom(value).buildPartial();
  1733. } else {
  1734. extra_ = value;
  1735. }
  1736. onChanged();
  1737. } else {
  1738. extraBuilder_.mergeFrom(value);
  1739. }
  1740. return this;
  1741. }
  1742. /**
  1743. * <code>.Im.Scrm.Ww.Proto.DeviceAuthRspMessage.ExtraMessage Extra = 2;</code>
  1744. */
  1745. public Builder clearExtra() {
  1746. if (extraBuilder_ == null) {
  1747. extra_ = null;
  1748. onChanged();
  1749. } else {
  1750. extra_ = null;
  1751. extraBuilder_ = null;
  1752. }
  1753. return this;
  1754. }
  1755. /**
  1756. * <code>.Im.Scrm.Ww.Proto.DeviceAuthRspMessage.ExtraMessage Extra = 2;</code>
  1757. */
  1758. public Im.Scrm.Ww.Proto.WDeviceAuthRsp.DeviceAuthRspMessage.ExtraMessage.Builder getExtraBuilder() {
  1759. onChanged();
  1760. return getExtraFieldBuilder().getBuilder();
  1761. }
  1762. /**
  1763. * <code>.Im.Scrm.Ww.Proto.DeviceAuthRspMessage.ExtraMessage Extra = 2;</code>
  1764. */
  1765. public Im.Scrm.Ww.Proto.WDeviceAuthRsp.DeviceAuthRspMessage.ExtraMessageOrBuilder getExtraOrBuilder() {
  1766. if (extraBuilder_ != null) {
  1767. return extraBuilder_.getMessageOrBuilder();
  1768. } else {
  1769. return extra_ == null ?
  1770. Im.Scrm.Ww.Proto.WDeviceAuthRsp.DeviceAuthRspMessage.ExtraMessage.getDefaultInstance() : extra_;
  1771. }
  1772. }
  1773. /**
  1774. * <code>.Im.Scrm.Ww.Proto.DeviceAuthRspMessage.ExtraMessage Extra = 2;</code>
  1775. */
  1776. private com.google.protobuf.SingleFieldBuilderV3<
  1777. Im.Scrm.Ww.Proto.WDeviceAuthRsp.DeviceAuthRspMessage.ExtraMessage, Im.Scrm.Ww.Proto.WDeviceAuthRsp.DeviceAuthRspMessage.ExtraMessage.Builder, Im.Scrm.Ww.Proto.WDeviceAuthRsp.DeviceAuthRspMessage.ExtraMessageOrBuilder>
  1778. getExtraFieldBuilder() {
  1779. if (extraBuilder_ == null) {
  1780. extraBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
  1781. Im.Scrm.Ww.Proto.WDeviceAuthRsp.DeviceAuthRspMessage.ExtraMessage, Im.Scrm.Ww.Proto.WDeviceAuthRsp.DeviceAuthRspMessage.ExtraMessage.Builder, Im.Scrm.Ww.Proto.WDeviceAuthRsp.DeviceAuthRspMessage.ExtraMessageOrBuilder>(
  1782. getExtra(),
  1783. getParentForChildren(),
  1784. isClean());
  1785. extra_ = null;
  1786. }
  1787. return extraBuilder_;
  1788. }
  1789. @java.lang.Override
  1790. public final Builder setUnknownFields(
  1791. final com.google.protobuf.UnknownFieldSet unknownFields) {
  1792. return super.setUnknownFields(unknownFields);
  1793. }
  1794. @java.lang.Override
  1795. public final Builder mergeUnknownFields(
  1796. final com.google.protobuf.UnknownFieldSet unknownFields) {
  1797. return super.mergeUnknownFields(unknownFields);
  1798. }
  1799. // @@protoc_insertion_point(builder_scope:Im.Scrm.Ww.Proto.DeviceAuthRspMessage)
  1800. }
  1801. // @@protoc_insertion_point(class_scope:Im.Scrm.Ww.Proto.DeviceAuthRspMessage)
  1802. private static final Im.Scrm.Ww.Proto.WDeviceAuthRsp.DeviceAuthRspMessage DEFAULT_INSTANCE;
  1803. static {
  1804. DEFAULT_INSTANCE = new Im.Scrm.Ww.Proto.WDeviceAuthRsp.DeviceAuthRspMessage();
  1805. }
  1806. public static Im.Scrm.Ww.Proto.WDeviceAuthRsp.DeviceAuthRspMessage getDefaultInstance() {
  1807. return DEFAULT_INSTANCE;
  1808. }
  1809. private static final com.google.protobuf.Parser<DeviceAuthRspMessage>
  1810. PARSER = new com.google.protobuf.AbstractParser<DeviceAuthRspMessage>() {
  1811. @java.lang.Override
  1812. public DeviceAuthRspMessage parsePartialFrom(
  1813. com.google.protobuf.CodedInputStream input,
  1814. com.google.protobuf.ExtensionRegistryLite extensionRegistry)
  1815. throws com.google.protobuf.InvalidProtocolBufferException {
  1816. return new DeviceAuthRspMessage(input, extensionRegistry);
  1817. }
  1818. };
  1819. public static com.google.protobuf.Parser<DeviceAuthRspMessage> parser() {
  1820. return PARSER;
  1821. }
  1822. @java.lang.Override
  1823. public com.google.protobuf.Parser<DeviceAuthRspMessage> getParserForType() {
  1824. return PARSER;
  1825. }
  1826. @java.lang.Override
  1827. public Im.Scrm.Ww.Proto.WDeviceAuthRsp.DeviceAuthRspMessage getDefaultInstanceForType() {
  1828. return DEFAULT_INSTANCE;
  1829. }
  1830. }
  1831. private static final com.google.protobuf.Descriptors.Descriptor
  1832. internal_static_Im_Scrm_Ww_Proto_DeviceAuthRspMessage_descriptor;
  1833. private static final
  1834. com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
  1835. internal_static_Im_Scrm_Ww_Proto_DeviceAuthRspMessage_fieldAccessorTable;
  1836. private static final com.google.protobuf.Descriptors.Descriptor
  1837. internal_static_Im_Scrm_Ww_Proto_DeviceAuthRspMessage_ExtraMessage_descriptor;
  1838. private static final
  1839. com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
  1840. internal_static_Im_Scrm_Ww_Proto_DeviceAuthRspMessage_ExtraMessage_fieldAccessorTable;
  1841. public static com.google.protobuf.Descriptors.FileDescriptor
  1842. getDescriptor() {
  1843. return descriptor;
  1844. }
  1845. private static com.google.protobuf.Descriptors.FileDescriptor
  1846. descriptor;
  1847. static {
  1848. java.lang.String[] descriptorData = {
  1849. "\n\024WDeviceAuthRsp.proto\022\020Im.Scrm.Ww.Proto" +
  1850. "\032\020WTransport.proto\"\224\002\n\024DeviceAuthRspMess" +
  1851. "age\022\023\n\013AccessToken\030\001 \001(\t\022B\n\005Extra\030\002 \001(\0132" +
  1852. "3.Im.Scrm.Ww.Proto.DeviceAuthRspMessage." +
  1853. "ExtraMessage\032\242\001\n\014ExtraMessage\022\022\n\nSupplie" +
  1854. "rId\030\001 \001(\003\022\017\n\007UnionId\030\002 \001(\003\0226\n\013AccountTyp" +
  1855. "e\030\003 \001(\0162!.Im.Scrm.Ww.Proto.EnumAccountTy" +
  1856. "pe\022\024\n\014SupplierName\030\004 \001(\t\022\020\n\010NickName\030\005 \001" +
  1857. "(\t\022\r\n\005Token\030\006 \001(\tb\006proto3"
  1858. };
  1859. descriptor = com.google.protobuf.Descriptors.FileDescriptor
  1860. .internalBuildGeneratedFileFrom(descriptorData,
  1861. new com.google.protobuf.Descriptors.FileDescriptor[] {
  1862. Im.Scrm.Ww.Proto.WTransport.getDescriptor(),
  1863. });
  1864. internal_static_Im_Scrm_Ww_Proto_DeviceAuthRspMessage_descriptor =
  1865. getDescriptor().getMessageTypes().get(0);
  1866. internal_static_Im_Scrm_Ww_Proto_DeviceAuthRspMessage_fieldAccessorTable = new
  1867. com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
  1868. internal_static_Im_Scrm_Ww_Proto_DeviceAuthRspMessage_descriptor,
  1869. new java.lang.String[] { "AccessToken", "Extra", });
  1870. internal_static_Im_Scrm_Ww_Proto_DeviceAuthRspMessage_ExtraMessage_descriptor =
  1871. internal_static_Im_Scrm_Ww_Proto_DeviceAuthRspMessage_descriptor.getNestedTypes().get(0);
  1872. internal_static_Im_Scrm_Ww_Proto_DeviceAuthRspMessage_ExtraMessage_fieldAccessorTable = new
  1873. com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
  1874. internal_static_Im_Scrm_Ww_Proto_DeviceAuthRspMessage_ExtraMessage_descriptor,
  1875. new java.lang.String[] { "SupplierId", "UnionId", "AccountType", "SupplierName", "NickName", "Token", });
  1876. Im.Scrm.Ww.Proto.WTransport.getDescriptor();
  1877. }
  1878. // @@protoc_insertion_point(outer_class_scope)
  1879. }