WDeviceAuthReq.java 32 KB

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