WDownloadFileByUrlTask.java 47 KB

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