DmpDataProto.java 74 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357
  1. // Generated by the protocol buffer compiler. DO NOT EDIT!
  2. // source: dmp_message.proto
  3. // Protobuf Java Version: 3.25.1
  4. package toutiao.dmp;
  5. public final class DmpDataProto {
  6. private DmpDataProto() {}
  7. public static void registerAllExtensions(
  8. com.google.protobuf.ExtensionRegistryLite registry) {
  9. }
  10. public static void registerAllExtensions(
  11. com.google.protobuf.ExtensionRegistry registry) {
  12. registerAllExtensions(
  13. (com.google.protobuf.ExtensionRegistryLite) registry);
  14. }
  15. public interface DmpDataOrBuilder extends
  16. // @@protoc_insertion_point(interface_extends:toutiao.dmp.DmpData)
  17. com.google.protobuf.MessageOrBuilder {
  18. /**
  19. * <pre>
  20. * 每行数据包含的idList大小不能超过10000
  21. * </pre>
  22. *
  23. * <code>repeated .toutiao.dmp.IdItem idList = 1;</code>
  24. */
  25. java.util.List<toutiao.dmp.DmpDataProto.IdItem>
  26. getIdListList();
  27. /**
  28. * <pre>
  29. * 每行数据包含的idList大小不能超过10000
  30. * </pre>
  31. *
  32. * <code>repeated .toutiao.dmp.IdItem idList = 1;</code>
  33. */
  34. toutiao.dmp.DmpDataProto.IdItem getIdList(int index);
  35. /**
  36. * <pre>
  37. * 每行数据包含的idList大小不能超过10000
  38. * </pre>
  39. *
  40. * <code>repeated .toutiao.dmp.IdItem idList = 1;</code>
  41. */
  42. int getIdListCount();
  43. /**
  44. * <pre>
  45. * 每行数据包含的idList大小不能超过10000
  46. * </pre>
  47. *
  48. * <code>repeated .toutiao.dmp.IdItem idList = 1;</code>
  49. */
  50. java.util.List<? extends toutiao.dmp.DmpDataProto.IdItemOrBuilder>
  51. getIdListOrBuilderList();
  52. /**
  53. * <pre>
  54. * 每行数据包含的idList大小不能超过10000
  55. * </pre>
  56. *
  57. * <code>repeated .toutiao.dmp.IdItem idList = 1;</code>
  58. */
  59. toutiao.dmp.DmpDataProto.IdItemOrBuilder getIdListOrBuilder(
  60. int index);
  61. }
  62. /**
  63. * <pre>
  64. *上传文件每行一个base64编码的字符串,每个字符串包含一个完整的DmpData消息二进制字节串
  65. * </pre>
  66. *
  67. * Protobuf type {@code toutiao.dmp.DmpData}
  68. */
  69. public static final class DmpData extends
  70. com.google.protobuf.GeneratedMessageV3 implements
  71. // @@protoc_insertion_point(message_implements:toutiao.dmp.DmpData)
  72. DmpDataOrBuilder {
  73. private static final long serialVersionUID = 0L;
  74. // Use DmpData.newBuilder() to construct.
  75. private DmpData(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {
  76. super(builder);
  77. }
  78. private DmpData() {
  79. idList_ = java.util.Collections.emptyList();
  80. }
  81. @java.lang.Override
  82. @SuppressWarnings({"unused"})
  83. protected java.lang.Object newInstance(
  84. UnusedPrivateParameter unused) {
  85. return new DmpData();
  86. }
  87. public static final com.google.protobuf.Descriptors.Descriptor
  88. getDescriptor() {
  89. return toutiao.dmp.DmpDataProto.internal_static_toutiao_dmp_DmpData_descriptor;
  90. }
  91. @java.lang.Override
  92. protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
  93. internalGetFieldAccessorTable() {
  94. return toutiao.dmp.DmpDataProto.internal_static_toutiao_dmp_DmpData_fieldAccessorTable
  95. .ensureFieldAccessorsInitialized(
  96. toutiao.dmp.DmpDataProto.DmpData.class, toutiao.dmp.DmpDataProto.DmpData.Builder.class);
  97. }
  98. public static final int IDLIST_FIELD_NUMBER = 1;
  99. @SuppressWarnings("serial")
  100. private java.util.List<toutiao.dmp.DmpDataProto.IdItem> idList_;
  101. /**
  102. * <pre>
  103. * 每行数据包含的idList大小不能超过10000
  104. * </pre>
  105. *
  106. * <code>repeated .toutiao.dmp.IdItem idList = 1;</code>
  107. */
  108. @java.lang.Override
  109. public java.util.List<toutiao.dmp.DmpDataProto.IdItem> getIdListList() {
  110. return idList_;
  111. }
  112. /**
  113. * <pre>
  114. * 每行数据包含的idList大小不能超过10000
  115. * </pre>
  116. *
  117. * <code>repeated .toutiao.dmp.IdItem idList = 1;</code>
  118. */
  119. @java.lang.Override
  120. public java.util.List<? extends toutiao.dmp.DmpDataProto.IdItemOrBuilder>
  121. getIdListOrBuilderList() {
  122. return idList_;
  123. }
  124. /**
  125. * <pre>
  126. * 每行数据包含的idList大小不能超过10000
  127. * </pre>
  128. *
  129. * <code>repeated .toutiao.dmp.IdItem idList = 1;</code>
  130. */
  131. @java.lang.Override
  132. public int getIdListCount() {
  133. return idList_.size();
  134. }
  135. /**
  136. * <pre>
  137. * 每行数据包含的idList大小不能超过10000
  138. * </pre>
  139. *
  140. * <code>repeated .toutiao.dmp.IdItem idList = 1;</code>
  141. */
  142. @java.lang.Override
  143. public toutiao.dmp.DmpDataProto.IdItem getIdList(int index) {
  144. return idList_.get(index);
  145. }
  146. /**
  147. * <pre>
  148. * 每行数据包含的idList大小不能超过10000
  149. * </pre>
  150. *
  151. * <code>repeated .toutiao.dmp.IdItem idList = 1;</code>
  152. */
  153. @java.lang.Override
  154. public toutiao.dmp.DmpDataProto.IdItemOrBuilder getIdListOrBuilder(
  155. int index) {
  156. return idList_.get(index);
  157. }
  158. private byte memoizedIsInitialized = -1;
  159. @java.lang.Override
  160. public final boolean isInitialized() {
  161. byte isInitialized = memoizedIsInitialized;
  162. if (isInitialized == 1) return true;
  163. if (isInitialized == 0) return false;
  164. for (int i = 0; i < getIdListCount(); i++) {
  165. if (!getIdList(i).isInitialized()) {
  166. memoizedIsInitialized = 0;
  167. return false;
  168. }
  169. }
  170. memoizedIsInitialized = 1;
  171. return true;
  172. }
  173. @java.lang.Override
  174. public void writeTo(com.google.protobuf.CodedOutputStream output)
  175. throws java.io.IOException {
  176. for (int i = 0; i < idList_.size(); i++) {
  177. output.writeMessage(1, idList_.get(i));
  178. }
  179. getUnknownFields().writeTo(output);
  180. }
  181. @java.lang.Override
  182. public int getSerializedSize() {
  183. int size = memoizedSize;
  184. if (size != -1) return size;
  185. size = 0;
  186. for (int i = 0; i < idList_.size(); i++) {
  187. size += com.google.protobuf.CodedOutputStream
  188. .computeMessageSize(1, idList_.get(i));
  189. }
  190. size += getUnknownFields().getSerializedSize();
  191. memoizedSize = size;
  192. return size;
  193. }
  194. @java.lang.Override
  195. public boolean equals(final java.lang.Object obj) {
  196. if (obj == this) {
  197. return true;
  198. }
  199. if (!(obj instanceof toutiao.dmp.DmpDataProto.DmpData)) {
  200. return super.equals(obj);
  201. }
  202. toutiao.dmp.DmpDataProto.DmpData other = (toutiao.dmp.DmpDataProto.DmpData) obj;
  203. if (!getIdListList()
  204. .equals(other.getIdListList())) return false;
  205. if (!getUnknownFields().equals(other.getUnknownFields())) return false;
  206. return true;
  207. }
  208. @java.lang.Override
  209. public int hashCode() {
  210. if (memoizedHashCode != 0) {
  211. return memoizedHashCode;
  212. }
  213. int hash = 41;
  214. hash = (19 * hash) + getDescriptor().hashCode();
  215. if (getIdListCount() > 0) {
  216. hash = (37 * hash) + IDLIST_FIELD_NUMBER;
  217. hash = (53 * hash) + getIdListList().hashCode();
  218. }
  219. hash = (29 * hash) + getUnknownFields().hashCode();
  220. memoizedHashCode = hash;
  221. return hash;
  222. }
  223. public static toutiao.dmp.DmpDataProto.DmpData parseFrom(
  224. java.nio.ByteBuffer data)
  225. throws com.google.protobuf.InvalidProtocolBufferException {
  226. return PARSER.parseFrom(data);
  227. }
  228. public static toutiao.dmp.DmpDataProto.DmpData parseFrom(
  229. java.nio.ByteBuffer data,
  230. com.google.protobuf.ExtensionRegistryLite extensionRegistry)
  231. throws com.google.protobuf.InvalidProtocolBufferException {
  232. return PARSER.parseFrom(data, extensionRegistry);
  233. }
  234. public static toutiao.dmp.DmpDataProto.DmpData parseFrom(
  235. com.google.protobuf.ByteString data)
  236. throws com.google.protobuf.InvalidProtocolBufferException {
  237. return PARSER.parseFrom(data);
  238. }
  239. public static toutiao.dmp.DmpDataProto.DmpData parseFrom(
  240. com.google.protobuf.ByteString data,
  241. com.google.protobuf.ExtensionRegistryLite extensionRegistry)
  242. throws com.google.protobuf.InvalidProtocolBufferException {
  243. return PARSER.parseFrom(data, extensionRegistry);
  244. }
  245. public static toutiao.dmp.DmpDataProto.DmpData parseFrom(byte[] data)
  246. throws com.google.protobuf.InvalidProtocolBufferException {
  247. return PARSER.parseFrom(data);
  248. }
  249. public static toutiao.dmp.DmpDataProto.DmpData parseFrom(
  250. byte[] data,
  251. com.google.protobuf.ExtensionRegistryLite extensionRegistry)
  252. throws com.google.protobuf.InvalidProtocolBufferException {
  253. return PARSER.parseFrom(data, extensionRegistry);
  254. }
  255. public static toutiao.dmp.DmpDataProto.DmpData parseFrom(java.io.InputStream input)
  256. throws java.io.IOException {
  257. return com.google.protobuf.GeneratedMessageV3
  258. .parseWithIOException(PARSER, input);
  259. }
  260. public static toutiao.dmp.DmpDataProto.DmpData parseFrom(
  261. java.io.InputStream input,
  262. com.google.protobuf.ExtensionRegistryLite extensionRegistry)
  263. throws java.io.IOException {
  264. return com.google.protobuf.GeneratedMessageV3
  265. .parseWithIOException(PARSER, input, extensionRegistry);
  266. }
  267. public static toutiao.dmp.DmpDataProto.DmpData parseDelimitedFrom(java.io.InputStream input)
  268. throws java.io.IOException {
  269. return com.google.protobuf.GeneratedMessageV3
  270. .parseDelimitedWithIOException(PARSER, input);
  271. }
  272. public static toutiao.dmp.DmpDataProto.DmpData parseDelimitedFrom(
  273. java.io.InputStream input,
  274. com.google.protobuf.ExtensionRegistryLite extensionRegistry)
  275. throws java.io.IOException {
  276. return com.google.protobuf.GeneratedMessageV3
  277. .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
  278. }
  279. public static toutiao.dmp.DmpDataProto.DmpData parseFrom(
  280. com.google.protobuf.CodedInputStream input)
  281. throws java.io.IOException {
  282. return com.google.protobuf.GeneratedMessageV3
  283. .parseWithIOException(PARSER, input);
  284. }
  285. public static toutiao.dmp.DmpDataProto.DmpData parseFrom(
  286. com.google.protobuf.CodedInputStream input,
  287. com.google.protobuf.ExtensionRegistryLite extensionRegistry)
  288. throws java.io.IOException {
  289. return com.google.protobuf.GeneratedMessageV3
  290. .parseWithIOException(PARSER, input, extensionRegistry);
  291. }
  292. @java.lang.Override
  293. public Builder newBuilderForType() { return newBuilder(); }
  294. public static Builder newBuilder() {
  295. return DEFAULT_INSTANCE.toBuilder();
  296. }
  297. public static Builder newBuilder(toutiao.dmp.DmpDataProto.DmpData prototype) {
  298. return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
  299. }
  300. @java.lang.Override
  301. public Builder toBuilder() {
  302. return this == DEFAULT_INSTANCE
  303. ? new Builder() : new Builder().mergeFrom(this);
  304. }
  305. @java.lang.Override
  306. protected Builder newBuilderForType(
  307. com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
  308. Builder builder = new Builder(parent);
  309. return builder;
  310. }
  311. /**
  312. * <pre>
  313. *上传文件每行一个base64编码的字符串,每个字符串包含一个完整的DmpData消息二进制字节串
  314. * </pre>
  315. *
  316. * Protobuf type {@code toutiao.dmp.DmpData}
  317. */
  318. public static final class Builder extends
  319. com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements
  320. // @@protoc_insertion_point(builder_implements:toutiao.dmp.DmpData)
  321. toutiao.dmp.DmpDataProto.DmpDataOrBuilder {
  322. public static final com.google.protobuf.Descriptors.Descriptor
  323. getDescriptor() {
  324. return toutiao.dmp.DmpDataProto.internal_static_toutiao_dmp_DmpData_descriptor;
  325. }
  326. @java.lang.Override
  327. protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
  328. internalGetFieldAccessorTable() {
  329. return toutiao.dmp.DmpDataProto.internal_static_toutiao_dmp_DmpData_fieldAccessorTable
  330. .ensureFieldAccessorsInitialized(
  331. toutiao.dmp.DmpDataProto.DmpData.class, toutiao.dmp.DmpDataProto.DmpData.Builder.class);
  332. }
  333. // Construct using toutiao.dmp.DmpDataProto.DmpData.newBuilder()
  334. private Builder() {
  335. }
  336. private Builder(
  337. com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
  338. super(parent);
  339. }
  340. @java.lang.Override
  341. public Builder clear() {
  342. super.clear();
  343. bitField0_ = 0;
  344. if (idListBuilder_ == null) {
  345. idList_ = java.util.Collections.emptyList();
  346. } else {
  347. idList_ = null;
  348. idListBuilder_.clear();
  349. }
  350. bitField0_ = (bitField0_ & ~0x00000001);
  351. return this;
  352. }
  353. @java.lang.Override
  354. public com.google.protobuf.Descriptors.Descriptor
  355. getDescriptorForType() {
  356. return toutiao.dmp.DmpDataProto.internal_static_toutiao_dmp_DmpData_descriptor;
  357. }
  358. @java.lang.Override
  359. public toutiao.dmp.DmpDataProto.DmpData getDefaultInstanceForType() {
  360. return toutiao.dmp.DmpDataProto.DmpData.getDefaultInstance();
  361. }
  362. @java.lang.Override
  363. public toutiao.dmp.DmpDataProto.DmpData build() {
  364. toutiao.dmp.DmpDataProto.DmpData result = buildPartial();
  365. if (!result.isInitialized()) {
  366. throw newUninitializedMessageException(result);
  367. }
  368. return result;
  369. }
  370. @java.lang.Override
  371. public toutiao.dmp.DmpDataProto.DmpData buildPartial() {
  372. toutiao.dmp.DmpDataProto.DmpData result = new toutiao.dmp.DmpDataProto.DmpData(this);
  373. buildPartialRepeatedFields(result);
  374. if (bitField0_ != 0) { buildPartial0(result); }
  375. onBuilt();
  376. return result;
  377. }
  378. private void buildPartialRepeatedFields(toutiao.dmp.DmpDataProto.DmpData result) {
  379. if (idListBuilder_ == null) {
  380. if (((bitField0_ & 0x00000001) != 0)) {
  381. idList_ = java.util.Collections.unmodifiableList(idList_);
  382. bitField0_ = (bitField0_ & ~0x00000001);
  383. }
  384. result.idList_ = idList_;
  385. } else {
  386. result.idList_ = idListBuilder_.build();
  387. }
  388. }
  389. private void buildPartial0(toutiao.dmp.DmpDataProto.DmpData result) {
  390. int from_bitField0_ = bitField0_;
  391. }
  392. @java.lang.Override
  393. public Builder clone() {
  394. return super.clone();
  395. }
  396. @java.lang.Override
  397. public Builder setField(
  398. com.google.protobuf.Descriptors.FieldDescriptor field,
  399. java.lang.Object value) {
  400. return super.setField(field, value);
  401. }
  402. @java.lang.Override
  403. public Builder clearField(
  404. com.google.protobuf.Descriptors.FieldDescriptor field) {
  405. return super.clearField(field);
  406. }
  407. @java.lang.Override
  408. public Builder clearOneof(
  409. com.google.protobuf.Descriptors.OneofDescriptor oneof) {
  410. return super.clearOneof(oneof);
  411. }
  412. @java.lang.Override
  413. public Builder setRepeatedField(
  414. com.google.protobuf.Descriptors.FieldDescriptor field,
  415. int index, java.lang.Object value) {
  416. return super.setRepeatedField(field, index, value);
  417. }
  418. @java.lang.Override
  419. public Builder addRepeatedField(
  420. com.google.protobuf.Descriptors.FieldDescriptor field,
  421. java.lang.Object value) {
  422. return super.addRepeatedField(field, value);
  423. }
  424. @java.lang.Override
  425. public Builder mergeFrom(com.google.protobuf.Message other) {
  426. if (other instanceof toutiao.dmp.DmpDataProto.DmpData) {
  427. return mergeFrom((toutiao.dmp.DmpDataProto.DmpData)other);
  428. } else {
  429. super.mergeFrom(other);
  430. return this;
  431. }
  432. }
  433. public Builder mergeFrom(toutiao.dmp.DmpDataProto.DmpData other) {
  434. if (other == toutiao.dmp.DmpDataProto.DmpData.getDefaultInstance()) return this;
  435. if (idListBuilder_ == null) {
  436. if (!other.idList_.isEmpty()) {
  437. if (idList_.isEmpty()) {
  438. idList_ = other.idList_;
  439. bitField0_ = (bitField0_ & ~0x00000001);
  440. } else {
  441. ensureIdListIsMutable();
  442. idList_.addAll(other.idList_);
  443. }
  444. onChanged();
  445. }
  446. } else {
  447. if (!other.idList_.isEmpty()) {
  448. if (idListBuilder_.isEmpty()) {
  449. idListBuilder_.dispose();
  450. idListBuilder_ = null;
  451. idList_ = other.idList_;
  452. bitField0_ = (bitField0_ & ~0x00000001);
  453. idListBuilder_ =
  454. com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
  455. getIdListFieldBuilder() : null;
  456. } else {
  457. idListBuilder_.addAllMessages(other.idList_);
  458. }
  459. }
  460. }
  461. this.mergeUnknownFields(other.getUnknownFields());
  462. onChanged();
  463. return this;
  464. }
  465. @java.lang.Override
  466. public final boolean isInitialized() {
  467. for (int i = 0; i < getIdListCount(); i++) {
  468. if (!getIdList(i).isInitialized()) {
  469. return false;
  470. }
  471. }
  472. return true;
  473. }
  474. @java.lang.Override
  475. public Builder mergeFrom(
  476. com.google.protobuf.CodedInputStream input,
  477. com.google.protobuf.ExtensionRegistryLite extensionRegistry)
  478. throws java.io.IOException {
  479. if (extensionRegistry == null) {
  480. throw new java.lang.NullPointerException();
  481. }
  482. try {
  483. boolean done = false;
  484. while (!done) {
  485. int tag = input.readTag();
  486. switch (tag) {
  487. case 0:
  488. done = true;
  489. break;
  490. case 10: {
  491. toutiao.dmp.DmpDataProto.IdItem m =
  492. input.readMessage(
  493. toutiao.dmp.DmpDataProto.IdItem.PARSER,
  494. extensionRegistry);
  495. if (idListBuilder_ == null) {
  496. ensureIdListIsMutable();
  497. idList_.add(m);
  498. } else {
  499. idListBuilder_.addMessage(m);
  500. }
  501. break;
  502. } // case 10
  503. default: {
  504. if (!super.parseUnknownField(input, extensionRegistry, tag)) {
  505. done = true; // was an endgroup tag
  506. }
  507. break;
  508. } // default:
  509. } // switch (tag)
  510. } // while (!done)
  511. } catch (com.google.protobuf.InvalidProtocolBufferException e) {
  512. throw e.unwrapIOException();
  513. } finally {
  514. onChanged();
  515. } // finally
  516. return this;
  517. }
  518. private int bitField0_;
  519. private java.util.List<toutiao.dmp.DmpDataProto.IdItem> idList_ =
  520. java.util.Collections.emptyList();
  521. private void ensureIdListIsMutable() {
  522. if (!((bitField0_ & 0x00000001) != 0)) {
  523. idList_ = new java.util.ArrayList<toutiao.dmp.DmpDataProto.IdItem>(idList_);
  524. bitField0_ |= 0x00000001;
  525. }
  526. }
  527. private com.google.protobuf.RepeatedFieldBuilderV3<
  528. toutiao.dmp.DmpDataProto.IdItem, toutiao.dmp.DmpDataProto.IdItem.Builder, toutiao.dmp.DmpDataProto.IdItemOrBuilder> idListBuilder_;
  529. /**
  530. * <pre>
  531. * 每行数据包含的idList大小不能超过10000
  532. * </pre>
  533. *
  534. * <code>repeated .toutiao.dmp.IdItem idList = 1;</code>
  535. */
  536. public java.util.List<toutiao.dmp.DmpDataProto.IdItem> getIdListList() {
  537. if (idListBuilder_ == null) {
  538. return java.util.Collections.unmodifiableList(idList_);
  539. } else {
  540. return idListBuilder_.getMessageList();
  541. }
  542. }
  543. /**
  544. * <pre>
  545. * 每行数据包含的idList大小不能超过10000
  546. * </pre>
  547. *
  548. * <code>repeated .toutiao.dmp.IdItem idList = 1;</code>
  549. */
  550. public int getIdListCount() {
  551. if (idListBuilder_ == null) {
  552. return idList_.size();
  553. } else {
  554. return idListBuilder_.getCount();
  555. }
  556. }
  557. /**
  558. * <pre>
  559. * 每行数据包含的idList大小不能超过10000
  560. * </pre>
  561. *
  562. * <code>repeated .toutiao.dmp.IdItem idList = 1;</code>
  563. */
  564. public toutiao.dmp.DmpDataProto.IdItem getIdList(int index) {
  565. if (idListBuilder_ == null) {
  566. return idList_.get(index);
  567. } else {
  568. return idListBuilder_.getMessage(index);
  569. }
  570. }
  571. /**
  572. * <pre>
  573. * 每行数据包含的idList大小不能超过10000
  574. * </pre>
  575. *
  576. * <code>repeated .toutiao.dmp.IdItem idList = 1;</code>
  577. */
  578. public Builder setIdList(
  579. int index, toutiao.dmp.DmpDataProto.IdItem value) {
  580. if (idListBuilder_ == null) {
  581. if (value == null) {
  582. throw new NullPointerException();
  583. }
  584. ensureIdListIsMutable();
  585. idList_.set(index, value);
  586. onChanged();
  587. } else {
  588. idListBuilder_.setMessage(index, value);
  589. }
  590. return this;
  591. }
  592. /**
  593. * <pre>
  594. * 每行数据包含的idList大小不能超过10000
  595. * </pre>
  596. *
  597. * <code>repeated .toutiao.dmp.IdItem idList = 1;</code>
  598. */
  599. public Builder setIdList(
  600. int index, toutiao.dmp.DmpDataProto.IdItem.Builder builderForValue) {
  601. if (idListBuilder_ == null) {
  602. ensureIdListIsMutable();
  603. idList_.set(index, builderForValue.build());
  604. onChanged();
  605. } else {
  606. idListBuilder_.setMessage(index, builderForValue.build());
  607. }
  608. return this;
  609. }
  610. /**
  611. * <pre>
  612. * 每行数据包含的idList大小不能超过10000
  613. * </pre>
  614. *
  615. * <code>repeated .toutiao.dmp.IdItem idList = 1;</code>
  616. */
  617. public Builder addIdList(toutiao.dmp.DmpDataProto.IdItem value) {
  618. if (idListBuilder_ == null) {
  619. if (value == null) {
  620. throw new NullPointerException();
  621. }
  622. ensureIdListIsMutable();
  623. idList_.add(value);
  624. onChanged();
  625. } else {
  626. idListBuilder_.addMessage(value);
  627. }
  628. return this;
  629. }
  630. /**
  631. * <pre>
  632. * 每行数据包含的idList大小不能超过10000
  633. * </pre>
  634. *
  635. * <code>repeated .toutiao.dmp.IdItem idList = 1;</code>
  636. */
  637. public Builder addIdList(
  638. int index, toutiao.dmp.DmpDataProto.IdItem value) {
  639. if (idListBuilder_ == null) {
  640. if (value == null) {
  641. throw new NullPointerException();
  642. }
  643. ensureIdListIsMutable();
  644. idList_.add(index, value);
  645. onChanged();
  646. } else {
  647. idListBuilder_.addMessage(index, value);
  648. }
  649. return this;
  650. }
  651. /**
  652. * <pre>
  653. * 每行数据包含的idList大小不能超过10000
  654. * </pre>
  655. *
  656. * <code>repeated .toutiao.dmp.IdItem idList = 1;</code>
  657. */
  658. public Builder addIdList(
  659. toutiao.dmp.DmpDataProto.IdItem.Builder builderForValue) {
  660. if (idListBuilder_ == null) {
  661. ensureIdListIsMutable();
  662. idList_.add(builderForValue.build());
  663. onChanged();
  664. } else {
  665. idListBuilder_.addMessage(builderForValue.build());
  666. }
  667. return this;
  668. }
  669. /**
  670. * <pre>
  671. * 每行数据包含的idList大小不能超过10000
  672. * </pre>
  673. *
  674. * <code>repeated .toutiao.dmp.IdItem idList = 1;</code>
  675. */
  676. public Builder addIdList(
  677. int index, toutiao.dmp.DmpDataProto.IdItem.Builder builderForValue) {
  678. if (idListBuilder_ == null) {
  679. ensureIdListIsMutable();
  680. idList_.add(index, builderForValue.build());
  681. onChanged();
  682. } else {
  683. idListBuilder_.addMessage(index, builderForValue.build());
  684. }
  685. return this;
  686. }
  687. /**
  688. * <pre>
  689. * 每行数据包含的idList大小不能超过10000
  690. * </pre>
  691. *
  692. * <code>repeated .toutiao.dmp.IdItem idList = 1;</code>
  693. */
  694. public Builder addAllIdList(
  695. java.lang.Iterable<? extends toutiao.dmp.DmpDataProto.IdItem> values) {
  696. if (idListBuilder_ == null) {
  697. ensureIdListIsMutable();
  698. com.google.protobuf.AbstractMessageLite.Builder.addAll(
  699. values, idList_);
  700. onChanged();
  701. } else {
  702. idListBuilder_.addAllMessages(values);
  703. }
  704. return this;
  705. }
  706. /**
  707. * <pre>
  708. * 每行数据包含的idList大小不能超过10000
  709. * </pre>
  710. *
  711. * <code>repeated .toutiao.dmp.IdItem idList = 1;</code>
  712. */
  713. public Builder clearIdList() {
  714. if (idListBuilder_ == null) {
  715. idList_ = java.util.Collections.emptyList();
  716. bitField0_ = (bitField0_ & ~0x00000001);
  717. onChanged();
  718. } else {
  719. idListBuilder_.clear();
  720. }
  721. return this;
  722. }
  723. /**
  724. * <pre>
  725. * 每行数据包含的idList大小不能超过10000
  726. * </pre>
  727. *
  728. * <code>repeated .toutiao.dmp.IdItem idList = 1;</code>
  729. */
  730. public Builder removeIdList(int index) {
  731. if (idListBuilder_ == null) {
  732. ensureIdListIsMutable();
  733. idList_.remove(index);
  734. onChanged();
  735. } else {
  736. idListBuilder_.remove(index);
  737. }
  738. return this;
  739. }
  740. /**
  741. * <pre>
  742. * 每行数据包含的idList大小不能超过10000
  743. * </pre>
  744. *
  745. * <code>repeated .toutiao.dmp.IdItem idList = 1;</code>
  746. */
  747. public toutiao.dmp.DmpDataProto.IdItem.Builder getIdListBuilder(
  748. int index) {
  749. return getIdListFieldBuilder().getBuilder(index);
  750. }
  751. /**
  752. * <pre>
  753. * 每行数据包含的idList大小不能超过10000
  754. * </pre>
  755. *
  756. * <code>repeated .toutiao.dmp.IdItem idList = 1;</code>
  757. */
  758. public toutiao.dmp.DmpDataProto.IdItemOrBuilder getIdListOrBuilder(
  759. int index) {
  760. if (idListBuilder_ == null) {
  761. return idList_.get(index); } else {
  762. return idListBuilder_.getMessageOrBuilder(index);
  763. }
  764. }
  765. /**
  766. * <pre>
  767. * 每行数据包含的idList大小不能超过10000
  768. * </pre>
  769. *
  770. * <code>repeated .toutiao.dmp.IdItem idList = 1;</code>
  771. */
  772. public java.util.List<? extends toutiao.dmp.DmpDataProto.IdItemOrBuilder>
  773. getIdListOrBuilderList() {
  774. if (idListBuilder_ != null) {
  775. return idListBuilder_.getMessageOrBuilderList();
  776. } else {
  777. return java.util.Collections.unmodifiableList(idList_);
  778. }
  779. }
  780. /**
  781. * <pre>
  782. * 每行数据包含的idList大小不能超过10000
  783. * </pre>
  784. *
  785. * <code>repeated .toutiao.dmp.IdItem idList = 1;</code>
  786. */
  787. public toutiao.dmp.DmpDataProto.IdItem.Builder addIdListBuilder() {
  788. return getIdListFieldBuilder().addBuilder(
  789. toutiao.dmp.DmpDataProto.IdItem.getDefaultInstance());
  790. }
  791. /**
  792. * <pre>
  793. * 每行数据包含的idList大小不能超过10000
  794. * </pre>
  795. *
  796. * <code>repeated .toutiao.dmp.IdItem idList = 1;</code>
  797. */
  798. public toutiao.dmp.DmpDataProto.IdItem.Builder addIdListBuilder(
  799. int index) {
  800. return getIdListFieldBuilder().addBuilder(
  801. index, toutiao.dmp.DmpDataProto.IdItem.getDefaultInstance());
  802. }
  803. /**
  804. * <pre>
  805. * 每行数据包含的idList大小不能超过10000
  806. * </pre>
  807. *
  808. * <code>repeated .toutiao.dmp.IdItem idList = 1;</code>
  809. */
  810. public java.util.List<toutiao.dmp.DmpDataProto.IdItem.Builder>
  811. getIdListBuilderList() {
  812. return getIdListFieldBuilder().getBuilderList();
  813. }
  814. private com.google.protobuf.RepeatedFieldBuilderV3<
  815. toutiao.dmp.DmpDataProto.IdItem, toutiao.dmp.DmpDataProto.IdItem.Builder, toutiao.dmp.DmpDataProto.IdItemOrBuilder>
  816. getIdListFieldBuilder() {
  817. if (idListBuilder_ == null) {
  818. idListBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
  819. toutiao.dmp.DmpDataProto.IdItem, toutiao.dmp.DmpDataProto.IdItem.Builder, toutiao.dmp.DmpDataProto.IdItemOrBuilder>(
  820. idList_,
  821. ((bitField0_ & 0x00000001) != 0),
  822. getParentForChildren(),
  823. isClean());
  824. idList_ = null;
  825. }
  826. return idListBuilder_;
  827. }
  828. @java.lang.Override
  829. public final Builder setUnknownFields(
  830. final com.google.protobuf.UnknownFieldSet unknownFields) {
  831. return super.setUnknownFields(unknownFields);
  832. }
  833. @java.lang.Override
  834. public final Builder mergeUnknownFields(
  835. final com.google.protobuf.UnknownFieldSet unknownFields) {
  836. return super.mergeUnknownFields(unknownFields);
  837. }
  838. // @@protoc_insertion_point(builder_scope:toutiao.dmp.DmpData)
  839. }
  840. // @@protoc_insertion_point(class_scope:toutiao.dmp.DmpData)
  841. private static final toutiao.dmp.DmpDataProto.DmpData DEFAULT_INSTANCE;
  842. static {
  843. DEFAULT_INSTANCE = new toutiao.dmp.DmpDataProto.DmpData();
  844. }
  845. public static toutiao.dmp.DmpDataProto.DmpData getDefaultInstance() {
  846. return DEFAULT_INSTANCE;
  847. }
  848. @java.lang.Deprecated public static final com.google.protobuf.Parser<DmpData>
  849. PARSER = new com.google.protobuf.AbstractParser<DmpData>() {
  850. @java.lang.Override
  851. public DmpData parsePartialFrom(
  852. com.google.protobuf.CodedInputStream input,
  853. com.google.protobuf.ExtensionRegistryLite extensionRegistry)
  854. throws com.google.protobuf.InvalidProtocolBufferException {
  855. Builder builder = newBuilder();
  856. try {
  857. builder.mergeFrom(input, extensionRegistry);
  858. } catch (com.google.protobuf.InvalidProtocolBufferException e) {
  859. throw e.setUnfinishedMessage(builder.buildPartial());
  860. } catch (com.google.protobuf.UninitializedMessageException e) {
  861. throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
  862. } catch (java.io.IOException e) {
  863. throw new com.google.protobuf.InvalidProtocolBufferException(e)
  864. .setUnfinishedMessage(builder.buildPartial());
  865. }
  866. return builder.buildPartial();
  867. }
  868. };
  869. public static com.google.protobuf.Parser<DmpData> parser() {
  870. return PARSER;
  871. }
  872. @java.lang.Override
  873. public com.google.protobuf.Parser<DmpData> getParserForType() {
  874. return PARSER;
  875. }
  876. @java.lang.Override
  877. public toutiao.dmp.DmpDataProto.DmpData getDefaultInstanceForType() {
  878. return DEFAULT_INSTANCE;
  879. }
  880. }
  881. public interface IdItemOrBuilder extends
  882. // @@protoc_insertion_point(interface_extends:toutiao.dmp.IdItem)
  883. com.google.protobuf.MessageOrBuilder {
  884. /**
  885. * <pre>
  886. *若不设置,默认以上传文件的创建时间为此条记录的创建时间
  887. * </pre>
  888. *
  889. * <code>optional uint32 timestamp = 1;</code>
  890. * @return Whether the timestamp field is set.
  891. */
  892. boolean hasTimestamp();
  893. /**
  894. * <pre>
  895. *若不设置,默认以上传文件的创建时间为此条记录的创建时间
  896. * </pre>
  897. *
  898. * <code>optional uint32 timestamp = 1;</code>
  899. * @return The timestamp.
  900. */
  901. int getTimestamp();
  902. /**
  903. * <pre>
  904. *指定此id的类型,如IMEI、IDFA等
  905. * </pre>
  906. *
  907. * <code>required .toutiao.dmp.IdItem.DataType dataType = 2;</code>
  908. * @return Whether the dataType field is set.
  909. */
  910. boolean hasDataType();
  911. /**
  912. * <pre>
  913. *指定此id的类型,如IMEI、IDFA等
  914. * </pre>
  915. *
  916. * <code>required .toutiao.dmp.IdItem.DataType dataType = 2;</code>
  917. * @return The dataType.
  918. */
  919. toutiao.dmp.DmpDataProto.IdItem.DataType getDataType();
  920. /**
  921. * <pre>
  922. *根据dataType字段的类型,放置对应类型的id的字符串,需要小写
  923. * </pre>
  924. *
  925. * <code>required string id = 3;</code>
  926. * @return Whether the id field is set.
  927. */
  928. boolean hasId();
  929. /**
  930. * <pre>
  931. *根据dataType字段的类型,放置对应类型的id的字符串,需要小写
  932. * </pre>
  933. *
  934. * <code>required string id = 3;</code>
  935. * @return The id.
  936. */
  937. java.lang.String getId();
  938. /**
  939. * <pre>
  940. *根据dataType字段的类型,放置对应类型的id的字符串,需要小写
  941. * </pre>
  942. *
  943. * <code>required string id = 3;</code>
  944. * @return The bytes for id.
  945. */
  946. com.google.protobuf.ByteString
  947. getIdBytes();
  948. /**
  949. * <pre>
  950. *标识此id的业务标签字符串
  951. * </pre>
  952. *
  953. * <code>repeated string tags = 4;</code>
  954. * @return A list containing the tags.
  955. */
  956. java.util.List<java.lang.String>
  957. getTagsList();
  958. /**
  959. * <pre>
  960. *标识此id的业务标签字符串
  961. * </pre>
  962. *
  963. * <code>repeated string tags = 4;</code>
  964. * @return The count of tags.
  965. */
  966. int getTagsCount();
  967. /**
  968. * <pre>
  969. *标识此id的业务标签字符串
  970. * </pre>
  971. *
  972. * <code>repeated string tags = 4;</code>
  973. * @param index The index of the element to return.
  974. * @return The tags at the given index.
  975. */
  976. java.lang.String getTags(int index);
  977. /**
  978. * <pre>
  979. *标识此id的业务标签字符串
  980. * </pre>
  981. *
  982. * <code>repeated string tags = 4;</code>
  983. * @param index The index of the value to return.
  984. * @return The bytes of the tags at the given index.
  985. */
  986. com.google.protobuf.ByteString
  987. getTagsBytes(int index);
  988. }
  989. /**
  990. * Protobuf type {@code toutiao.dmp.IdItem}
  991. */
  992. public static final class IdItem extends
  993. com.google.protobuf.GeneratedMessageV3 implements
  994. // @@protoc_insertion_point(message_implements:toutiao.dmp.IdItem)
  995. IdItemOrBuilder {
  996. private static final long serialVersionUID = 0L;
  997. // Use IdItem.newBuilder() to construct.
  998. private IdItem(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {
  999. super(builder);
  1000. }
  1001. private IdItem() {
  1002. dataType_ = 0;
  1003. id_ = "";
  1004. tags_ =
  1005. com.google.protobuf.LazyStringArrayList.emptyList();
  1006. }
  1007. @java.lang.Override
  1008. @SuppressWarnings({"unused"})
  1009. protected java.lang.Object newInstance(
  1010. UnusedPrivateParameter unused) {
  1011. return new IdItem();
  1012. }
  1013. public static final com.google.protobuf.Descriptors.Descriptor
  1014. getDescriptor() {
  1015. return toutiao.dmp.DmpDataProto.internal_static_toutiao_dmp_IdItem_descriptor;
  1016. }
  1017. @java.lang.Override
  1018. protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
  1019. internalGetFieldAccessorTable() {
  1020. return toutiao.dmp.DmpDataProto.internal_static_toutiao_dmp_IdItem_fieldAccessorTable
  1021. .ensureFieldAccessorsInitialized(
  1022. toutiao.dmp.DmpDataProto.IdItem.class, toutiao.dmp.DmpDataProto.IdItem.Builder.class);
  1023. }
  1024. /**
  1025. * Protobuf enum {@code toutiao.dmp.IdItem.DataType}
  1026. */
  1027. public enum DataType
  1028. implements com.google.protobuf.ProtocolMessageEnum {
  1029. /**
  1030. * <pre>
  1031. * 无加密 已经不可用
  1032. * </pre>
  1033. *
  1034. * <code>IMEI = 0;</code>
  1035. */
  1036. IMEI(0),
  1037. /**
  1038. * <pre>
  1039. * 无加密 已经不可用
  1040. * </pre>
  1041. *
  1042. * <code>IDFA = 1;</code>
  1043. */
  1044. IDFA(1),
  1045. /**
  1046. * <pre>
  1047. * 内部账号id 一般是内部数据使用
  1048. * </pre>
  1049. *
  1050. * <code>UID = 2;</code>
  1051. */
  1052. UID(2),
  1053. /**
  1054. * <code>IMEI_MD5 = 4;</code>
  1055. */
  1056. IMEI_MD5(4),
  1057. /**
  1058. * <code>IDFA_MD5 = 5;</code>
  1059. */
  1060. IDFA_MD5(5),
  1061. /**
  1062. * <code>MOBILE_HASH_SHA256 = 6;</code>
  1063. */
  1064. MOBILE_HASH_SHA256(6),
  1065. /**
  1066. * <pre>
  1067. * 无加密 已经不可用
  1068. * </pre>
  1069. *
  1070. * <code>OAID = 7;</code>
  1071. */
  1072. OAID(7),
  1073. /**
  1074. * <code>OAID_MD5 = 8;</code>
  1075. */
  1076. OAID_MD5(8),
  1077. ;
  1078. /**
  1079. * <pre>
  1080. * 无加密 已经不可用
  1081. * </pre>
  1082. *
  1083. * <code>IMEI = 0;</code>
  1084. */
  1085. public static final int IMEI_VALUE = 0;
  1086. /**
  1087. * <pre>
  1088. * 无加密 已经不可用
  1089. * </pre>
  1090. *
  1091. * <code>IDFA = 1;</code>
  1092. */
  1093. public static final int IDFA_VALUE = 1;
  1094. /**
  1095. * <pre>
  1096. * 内部账号id 一般是内部数据使用
  1097. * </pre>
  1098. *
  1099. * <code>UID = 2;</code>
  1100. */
  1101. public static final int UID_VALUE = 2;
  1102. /**
  1103. * <code>IMEI_MD5 = 4;</code>
  1104. */
  1105. public static final int IMEI_MD5_VALUE = 4;
  1106. /**
  1107. * <code>IDFA_MD5 = 5;</code>
  1108. */
  1109. public static final int IDFA_MD5_VALUE = 5;
  1110. /**
  1111. * <code>MOBILE_HASH_SHA256 = 6;</code>
  1112. */
  1113. public static final int MOBILE_HASH_SHA256_VALUE = 6;
  1114. /**
  1115. * <pre>
  1116. * 无加密 已经不可用
  1117. * </pre>
  1118. *
  1119. * <code>OAID = 7;</code>
  1120. */
  1121. public static final int OAID_VALUE = 7;
  1122. /**
  1123. * <code>OAID_MD5 = 8;</code>
  1124. */
  1125. public static final int OAID_MD5_VALUE = 8;
  1126. public final int getNumber() {
  1127. return value;
  1128. }
  1129. /**
  1130. * @param value The numeric wire value of the corresponding enum entry.
  1131. * @return The enum associated with the given numeric wire value.
  1132. * @deprecated Use {@link #forNumber(int)} instead.
  1133. */
  1134. @java.lang.Deprecated
  1135. public static DataType valueOf(int value) {
  1136. return forNumber(value);
  1137. }
  1138. /**
  1139. * @param value The numeric wire value of the corresponding enum entry.
  1140. * @return The enum associated with the given numeric wire value.
  1141. */
  1142. public static DataType forNumber(int value) {
  1143. switch (value) {
  1144. case 0: return IMEI;
  1145. case 1: return IDFA;
  1146. case 2: return UID;
  1147. case 4: return IMEI_MD5;
  1148. case 5: return IDFA_MD5;
  1149. case 6: return MOBILE_HASH_SHA256;
  1150. case 7: return OAID;
  1151. case 8: return OAID_MD5;
  1152. default: return null;
  1153. }
  1154. }
  1155. public static com.google.protobuf.Internal.EnumLiteMap<DataType>
  1156. internalGetValueMap() {
  1157. return internalValueMap;
  1158. }
  1159. private static final com.google.protobuf.Internal.EnumLiteMap<
  1160. DataType> internalValueMap =
  1161. new com.google.protobuf.Internal.EnumLiteMap<DataType>() {
  1162. public DataType findValueByNumber(int number) {
  1163. return DataType.forNumber(number);
  1164. }
  1165. };
  1166. public final com.google.protobuf.Descriptors.EnumValueDescriptor
  1167. getValueDescriptor() {
  1168. return getDescriptor().getValues().get(ordinal());
  1169. }
  1170. public final com.google.protobuf.Descriptors.EnumDescriptor
  1171. getDescriptorForType() {
  1172. return getDescriptor();
  1173. }
  1174. public static final com.google.protobuf.Descriptors.EnumDescriptor
  1175. getDescriptor() {
  1176. return toutiao.dmp.DmpDataProto.IdItem.getDescriptor().getEnumTypes().get(0);
  1177. }
  1178. private static final DataType[] VALUES = values();
  1179. public static DataType valueOf(
  1180. com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
  1181. if (desc.getType() != getDescriptor()) {
  1182. throw new java.lang.IllegalArgumentException(
  1183. "EnumValueDescriptor is not for this type.");
  1184. }
  1185. return VALUES[desc.getIndex()];
  1186. }
  1187. private final int value;
  1188. private DataType(int value) {
  1189. this.value = value;
  1190. }
  1191. // @@protoc_insertion_point(enum_scope:toutiao.dmp.IdItem.DataType)
  1192. }
  1193. private int bitField0_;
  1194. public static final int TIMESTAMP_FIELD_NUMBER = 1;
  1195. private int timestamp_ = 0;
  1196. /**
  1197. * <pre>
  1198. *若不设置,默认以上传文件的创建时间为此条记录的创建时间
  1199. * </pre>
  1200. *
  1201. * <code>optional uint32 timestamp = 1;</code>
  1202. * @return Whether the timestamp field is set.
  1203. */
  1204. @java.lang.Override
  1205. public boolean hasTimestamp() {
  1206. return ((bitField0_ & 0x00000001) != 0);
  1207. }
  1208. /**
  1209. * <pre>
  1210. *若不设置,默认以上传文件的创建时间为此条记录的创建时间
  1211. * </pre>
  1212. *
  1213. * <code>optional uint32 timestamp = 1;</code>
  1214. * @return The timestamp.
  1215. */
  1216. @java.lang.Override
  1217. public int getTimestamp() {
  1218. return timestamp_;
  1219. }
  1220. public static final int DATATYPE_FIELD_NUMBER = 2;
  1221. private int dataType_ = 0;
  1222. /**
  1223. * <pre>
  1224. *指定此id的类型,如IMEI、IDFA等
  1225. * </pre>
  1226. *
  1227. * <code>required .toutiao.dmp.IdItem.DataType dataType = 2;</code>
  1228. * @return Whether the dataType field is set.
  1229. */
  1230. @java.lang.Override public boolean hasDataType() {
  1231. return ((bitField0_ & 0x00000002) != 0);
  1232. }
  1233. /**
  1234. * <pre>
  1235. *指定此id的类型,如IMEI、IDFA等
  1236. * </pre>
  1237. *
  1238. * <code>required .toutiao.dmp.IdItem.DataType dataType = 2;</code>
  1239. * @return The dataType.
  1240. */
  1241. @java.lang.Override public toutiao.dmp.DmpDataProto.IdItem.DataType getDataType() {
  1242. toutiao.dmp.DmpDataProto.IdItem.DataType result = toutiao.dmp.DmpDataProto.IdItem.DataType.forNumber(dataType_);
  1243. return result == null ? toutiao.dmp.DmpDataProto.IdItem.DataType.IMEI : result;
  1244. }
  1245. public static final int ID_FIELD_NUMBER = 3;
  1246. @SuppressWarnings("serial")
  1247. private volatile java.lang.Object id_ = "";
  1248. /**
  1249. * <pre>
  1250. *根据dataType字段的类型,放置对应类型的id的字符串,需要小写
  1251. * </pre>
  1252. *
  1253. * <code>required string id = 3;</code>
  1254. * @return Whether the id field is set.
  1255. */
  1256. @java.lang.Override
  1257. public boolean hasId() {
  1258. return ((bitField0_ & 0x00000004) != 0);
  1259. }
  1260. /**
  1261. * <pre>
  1262. *根据dataType字段的类型,放置对应类型的id的字符串,需要小写
  1263. * </pre>
  1264. *
  1265. * <code>required string id = 3;</code>
  1266. * @return The id.
  1267. */
  1268. @java.lang.Override
  1269. public java.lang.String getId() {
  1270. java.lang.Object ref = id_;
  1271. if (ref instanceof java.lang.String) {
  1272. return (java.lang.String) ref;
  1273. } else {
  1274. com.google.protobuf.ByteString bs =
  1275. (com.google.protobuf.ByteString) ref;
  1276. java.lang.String s = bs.toStringUtf8();
  1277. if (bs.isValidUtf8()) {
  1278. id_ = s;
  1279. }
  1280. return s;
  1281. }
  1282. }
  1283. /**
  1284. * <pre>
  1285. *根据dataType字段的类型,放置对应类型的id的字符串,需要小写
  1286. * </pre>
  1287. *
  1288. * <code>required string id = 3;</code>
  1289. * @return The bytes for id.
  1290. */
  1291. @java.lang.Override
  1292. public com.google.protobuf.ByteString
  1293. getIdBytes() {
  1294. java.lang.Object ref = id_;
  1295. if (ref instanceof java.lang.String) {
  1296. com.google.protobuf.ByteString b =
  1297. com.google.protobuf.ByteString.copyFromUtf8(
  1298. (java.lang.String) ref);
  1299. id_ = b;
  1300. return b;
  1301. } else {
  1302. return (com.google.protobuf.ByteString) ref;
  1303. }
  1304. }
  1305. public static final int TAGS_FIELD_NUMBER = 4;
  1306. @SuppressWarnings("serial")
  1307. private com.google.protobuf.LazyStringArrayList tags_ =
  1308. com.google.protobuf.LazyStringArrayList.emptyList();
  1309. /**
  1310. * <pre>
  1311. *标识此id的业务标签字符串
  1312. * </pre>
  1313. *
  1314. * <code>repeated string tags = 4;</code>
  1315. * @return A list containing the tags.
  1316. */
  1317. public com.google.protobuf.ProtocolStringList
  1318. getTagsList() {
  1319. return tags_;
  1320. }
  1321. /**
  1322. * <pre>
  1323. *标识此id的业务标签字符串
  1324. * </pre>
  1325. *
  1326. * <code>repeated string tags = 4;</code>
  1327. * @return The count of tags.
  1328. */
  1329. public int getTagsCount() {
  1330. return tags_.size();
  1331. }
  1332. /**
  1333. * <pre>
  1334. *标识此id的业务标签字符串
  1335. * </pre>
  1336. *
  1337. * <code>repeated string tags = 4;</code>
  1338. * @param index The index of the element to return.
  1339. * @return The tags at the given index.
  1340. */
  1341. public java.lang.String getTags(int index) {
  1342. return tags_.get(index);
  1343. }
  1344. /**
  1345. * <pre>
  1346. *标识此id的业务标签字符串
  1347. * </pre>
  1348. *
  1349. * <code>repeated string tags = 4;</code>
  1350. * @param index The index of the value to return.
  1351. * @return The bytes of the tags at the given index.
  1352. */
  1353. public com.google.protobuf.ByteString
  1354. getTagsBytes(int index) {
  1355. return tags_.getByteString(index);
  1356. }
  1357. private byte memoizedIsInitialized = -1;
  1358. @java.lang.Override
  1359. public final boolean isInitialized() {
  1360. byte isInitialized = memoizedIsInitialized;
  1361. if (isInitialized == 1) return true;
  1362. if (isInitialized == 0) return false;
  1363. if (!hasDataType()) {
  1364. memoizedIsInitialized = 0;
  1365. return false;
  1366. }
  1367. if (!hasId()) {
  1368. memoizedIsInitialized = 0;
  1369. return false;
  1370. }
  1371. memoizedIsInitialized = 1;
  1372. return true;
  1373. }
  1374. @java.lang.Override
  1375. public void writeTo(com.google.protobuf.CodedOutputStream output)
  1376. throws java.io.IOException {
  1377. if (((bitField0_ & 0x00000001) != 0)) {
  1378. output.writeUInt32(1, timestamp_);
  1379. }
  1380. if (((bitField0_ & 0x00000002) != 0)) {
  1381. output.writeEnum(2, dataType_);
  1382. }
  1383. if (((bitField0_ & 0x00000004) != 0)) {
  1384. com.google.protobuf.GeneratedMessageV3.writeString(output, 3, id_);
  1385. }
  1386. for (int i = 0; i < tags_.size(); i++) {
  1387. com.google.protobuf.GeneratedMessageV3.writeString(output, 4, tags_.getRaw(i));
  1388. }
  1389. getUnknownFields().writeTo(output);
  1390. }
  1391. @java.lang.Override
  1392. public int getSerializedSize() {
  1393. int size = memoizedSize;
  1394. if (size != -1) return size;
  1395. size = 0;
  1396. if (((bitField0_ & 0x00000001) != 0)) {
  1397. size += com.google.protobuf.CodedOutputStream
  1398. .computeUInt32Size(1, timestamp_);
  1399. }
  1400. if (((bitField0_ & 0x00000002) != 0)) {
  1401. size += com.google.protobuf.CodedOutputStream
  1402. .computeEnumSize(2, dataType_);
  1403. }
  1404. if (((bitField0_ & 0x00000004) != 0)) {
  1405. size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, id_);
  1406. }
  1407. {
  1408. int dataSize = 0;
  1409. for (int i = 0; i < tags_.size(); i++) {
  1410. dataSize += computeStringSizeNoTag(tags_.getRaw(i));
  1411. }
  1412. size += dataSize;
  1413. size += 1 * getTagsList().size();
  1414. }
  1415. size += getUnknownFields().getSerializedSize();
  1416. memoizedSize = size;
  1417. return size;
  1418. }
  1419. @java.lang.Override
  1420. public boolean equals(final java.lang.Object obj) {
  1421. if (obj == this) {
  1422. return true;
  1423. }
  1424. if (!(obj instanceof toutiao.dmp.DmpDataProto.IdItem)) {
  1425. return super.equals(obj);
  1426. }
  1427. toutiao.dmp.DmpDataProto.IdItem other = (toutiao.dmp.DmpDataProto.IdItem) obj;
  1428. if (hasTimestamp() != other.hasTimestamp()) return false;
  1429. if (hasTimestamp()) {
  1430. if (getTimestamp()
  1431. != other.getTimestamp()) return false;
  1432. }
  1433. if (hasDataType() != other.hasDataType()) return false;
  1434. if (hasDataType()) {
  1435. if (dataType_ != other.dataType_) return false;
  1436. }
  1437. if (hasId() != other.hasId()) return false;
  1438. if (hasId()) {
  1439. if (!getId()
  1440. .equals(other.getId())) return false;
  1441. }
  1442. if (!getTagsList()
  1443. .equals(other.getTagsList())) return false;
  1444. if (!getUnknownFields().equals(other.getUnknownFields())) return false;
  1445. return true;
  1446. }
  1447. @java.lang.Override
  1448. public int hashCode() {
  1449. if (memoizedHashCode != 0) {
  1450. return memoizedHashCode;
  1451. }
  1452. int hash = 41;
  1453. hash = (19 * hash) + getDescriptor().hashCode();
  1454. if (hasTimestamp()) {
  1455. hash = (37 * hash) + TIMESTAMP_FIELD_NUMBER;
  1456. hash = (53 * hash) + getTimestamp();
  1457. }
  1458. if (hasDataType()) {
  1459. hash = (37 * hash) + DATATYPE_FIELD_NUMBER;
  1460. hash = (53 * hash) + dataType_;
  1461. }
  1462. if (hasId()) {
  1463. hash = (37 * hash) + ID_FIELD_NUMBER;
  1464. hash = (53 * hash) + getId().hashCode();
  1465. }
  1466. if (getTagsCount() > 0) {
  1467. hash = (37 * hash) + TAGS_FIELD_NUMBER;
  1468. hash = (53 * hash) + getTagsList().hashCode();
  1469. }
  1470. hash = (29 * hash) + getUnknownFields().hashCode();
  1471. memoizedHashCode = hash;
  1472. return hash;
  1473. }
  1474. public static toutiao.dmp.DmpDataProto.IdItem parseFrom(
  1475. java.nio.ByteBuffer data)
  1476. throws com.google.protobuf.InvalidProtocolBufferException {
  1477. return PARSER.parseFrom(data);
  1478. }
  1479. public static toutiao.dmp.DmpDataProto.IdItem parseFrom(
  1480. java.nio.ByteBuffer data,
  1481. com.google.protobuf.ExtensionRegistryLite extensionRegistry)
  1482. throws com.google.protobuf.InvalidProtocolBufferException {
  1483. return PARSER.parseFrom(data, extensionRegistry);
  1484. }
  1485. public static toutiao.dmp.DmpDataProto.IdItem parseFrom(
  1486. com.google.protobuf.ByteString data)
  1487. throws com.google.protobuf.InvalidProtocolBufferException {
  1488. return PARSER.parseFrom(data);
  1489. }
  1490. public static toutiao.dmp.DmpDataProto.IdItem parseFrom(
  1491. com.google.protobuf.ByteString data,
  1492. com.google.protobuf.ExtensionRegistryLite extensionRegistry)
  1493. throws com.google.protobuf.InvalidProtocolBufferException {
  1494. return PARSER.parseFrom(data, extensionRegistry);
  1495. }
  1496. public static toutiao.dmp.DmpDataProto.IdItem parseFrom(byte[] data)
  1497. throws com.google.protobuf.InvalidProtocolBufferException {
  1498. return PARSER.parseFrom(data);
  1499. }
  1500. public static toutiao.dmp.DmpDataProto.IdItem parseFrom(
  1501. byte[] data,
  1502. com.google.protobuf.ExtensionRegistryLite extensionRegistry)
  1503. throws com.google.protobuf.InvalidProtocolBufferException {
  1504. return PARSER.parseFrom(data, extensionRegistry);
  1505. }
  1506. public static toutiao.dmp.DmpDataProto.IdItem parseFrom(java.io.InputStream input)
  1507. throws java.io.IOException {
  1508. return com.google.protobuf.GeneratedMessageV3
  1509. .parseWithIOException(PARSER, input);
  1510. }
  1511. public static toutiao.dmp.DmpDataProto.IdItem parseFrom(
  1512. java.io.InputStream input,
  1513. com.google.protobuf.ExtensionRegistryLite extensionRegistry)
  1514. throws java.io.IOException {
  1515. return com.google.protobuf.GeneratedMessageV3
  1516. .parseWithIOException(PARSER, input, extensionRegistry);
  1517. }
  1518. public static toutiao.dmp.DmpDataProto.IdItem parseDelimitedFrom(java.io.InputStream input)
  1519. throws java.io.IOException {
  1520. return com.google.protobuf.GeneratedMessageV3
  1521. .parseDelimitedWithIOException(PARSER, input);
  1522. }
  1523. public static toutiao.dmp.DmpDataProto.IdItem parseDelimitedFrom(
  1524. java.io.InputStream input,
  1525. com.google.protobuf.ExtensionRegistryLite extensionRegistry)
  1526. throws java.io.IOException {
  1527. return com.google.protobuf.GeneratedMessageV3
  1528. .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
  1529. }
  1530. public static toutiao.dmp.DmpDataProto.IdItem parseFrom(
  1531. com.google.protobuf.CodedInputStream input)
  1532. throws java.io.IOException {
  1533. return com.google.protobuf.GeneratedMessageV3
  1534. .parseWithIOException(PARSER, input);
  1535. }
  1536. public static toutiao.dmp.DmpDataProto.IdItem parseFrom(
  1537. com.google.protobuf.CodedInputStream input,
  1538. com.google.protobuf.ExtensionRegistryLite extensionRegistry)
  1539. throws java.io.IOException {
  1540. return com.google.protobuf.GeneratedMessageV3
  1541. .parseWithIOException(PARSER, input, extensionRegistry);
  1542. }
  1543. @java.lang.Override
  1544. public Builder newBuilderForType() { return newBuilder(); }
  1545. public static Builder newBuilder() {
  1546. return DEFAULT_INSTANCE.toBuilder();
  1547. }
  1548. public static Builder newBuilder(toutiao.dmp.DmpDataProto.IdItem prototype) {
  1549. return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
  1550. }
  1551. @java.lang.Override
  1552. public Builder toBuilder() {
  1553. return this == DEFAULT_INSTANCE
  1554. ? new Builder() : new Builder().mergeFrom(this);
  1555. }
  1556. @java.lang.Override
  1557. protected Builder newBuilderForType(
  1558. com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
  1559. Builder builder = new Builder(parent);
  1560. return builder;
  1561. }
  1562. /**
  1563. * Protobuf type {@code toutiao.dmp.IdItem}
  1564. */
  1565. public static final class Builder extends
  1566. com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements
  1567. // @@protoc_insertion_point(builder_implements:toutiao.dmp.IdItem)
  1568. toutiao.dmp.DmpDataProto.IdItemOrBuilder {
  1569. public static final com.google.protobuf.Descriptors.Descriptor
  1570. getDescriptor() {
  1571. return toutiao.dmp.DmpDataProto.internal_static_toutiao_dmp_IdItem_descriptor;
  1572. }
  1573. @java.lang.Override
  1574. protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
  1575. internalGetFieldAccessorTable() {
  1576. return toutiao.dmp.DmpDataProto.internal_static_toutiao_dmp_IdItem_fieldAccessorTable
  1577. .ensureFieldAccessorsInitialized(
  1578. toutiao.dmp.DmpDataProto.IdItem.class, toutiao.dmp.DmpDataProto.IdItem.Builder.class);
  1579. }
  1580. // Construct using toutiao.dmp.DmpDataProto.IdItem.newBuilder()
  1581. private Builder() {
  1582. }
  1583. private Builder(
  1584. com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
  1585. super(parent);
  1586. }
  1587. @java.lang.Override
  1588. public Builder clear() {
  1589. super.clear();
  1590. bitField0_ = 0;
  1591. timestamp_ = 0;
  1592. dataType_ = 0;
  1593. id_ = "";
  1594. tags_ =
  1595. com.google.protobuf.LazyStringArrayList.emptyList();
  1596. return this;
  1597. }
  1598. @java.lang.Override
  1599. public com.google.protobuf.Descriptors.Descriptor
  1600. getDescriptorForType() {
  1601. return toutiao.dmp.DmpDataProto.internal_static_toutiao_dmp_IdItem_descriptor;
  1602. }
  1603. @java.lang.Override
  1604. public toutiao.dmp.DmpDataProto.IdItem getDefaultInstanceForType() {
  1605. return toutiao.dmp.DmpDataProto.IdItem.getDefaultInstance();
  1606. }
  1607. @java.lang.Override
  1608. public toutiao.dmp.DmpDataProto.IdItem build() {
  1609. toutiao.dmp.DmpDataProto.IdItem result = buildPartial();
  1610. if (!result.isInitialized()) {
  1611. throw newUninitializedMessageException(result);
  1612. }
  1613. return result;
  1614. }
  1615. @java.lang.Override
  1616. public toutiao.dmp.DmpDataProto.IdItem buildPartial() {
  1617. toutiao.dmp.DmpDataProto.IdItem result = new toutiao.dmp.DmpDataProto.IdItem(this);
  1618. if (bitField0_ != 0) { buildPartial0(result); }
  1619. onBuilt();
  1620. return result;
  1621. }
  1622. private void buildPartial0(toutiao.dmp.DmpDataProto.IdItem result) {
  1623. int from_bitField0_ = bitField0_;
  1624. int to_bitField0_ = 0;
  1625. if (((from_bitField0_ & 0x00000001) != 0)) {
  1626. result.timestamp_ = timestamp_;
  1627. to_bitField0_ |= 0x00000001;
  1628. }
  1629. if (((from_bitField0_ & 0x00000002) != 0)) {
  1630. result.dataType_ = dataType_;
  1631. to_bitField0_ |= 0x00000002;
  1632. }
  1633. if (((from_bitField0_ & 0x00000004) != 0)) {
  1634. result.id_ = id_;
  1635. to_bitField0_ |= 0x00000004;
  1636. }
  1637. if (((from_bitField0_ & 0x00000008) != 0)) {
  1638. tags_.makeImmutable();
  1639. result.tags_ = tags_;
  1640. }
  1641. result.bitField0_ |= to_bitField0_;
  1642. }
  1643. @java.lang.Override
  1644. public Builder clone() {
  1645. return super.clone();
  1646. }
  1647. @java.lang.Override
  1648. public Builder setField(
  1649. com.google.protobuf.Descriptors.FieldDescriptor field,
  1650. java.lang.Object value) {
  1651. return super.setField(field, value);
  1652. }
  1653. @java.lang.Override
  1654. public Builder clearField(
  1655. com.google.protobuf.Descriptors.FieldDescriptor field) {
  1656. return super.clearField(field);
  1657. }
  1658. @java.lang.Override
  1659. public Builder clearOneof(
  1660. com.google.protobuf.Descriptors.OneofDescriptor oneof) {
  1661. return super.clearOneof(oneof);
  1662. }
  1663. @java.lang.Override
  1664. public Builder setRepeatedField(
  1665. com.google.protobuf.Descriptors.FieldDescriptor field,
  1666. int index, java.lang.Object value) {
  1667. return super.setRepeatedField(field, index, value);
  1668. }
  1669. @java.lang.Override
  1670. public Builder addRepeatedField(
  1671. com.google.protobuf.Descriptors.FieldDescriptor field,
  1672. java.lang.Object value) {
  1673. return super.addRepeatedField(field, value);
  1674. }
  1675. @java.lang.Override
  1676. public Builder mergeFrom(com.google.protobuf.Message other) {
  1677. if (other instanceof toutiao.dmp.DmpDataProto.IdItem) {
  1678. return mergeFrom((toutiao.dmp.DmpDataProto.IdItem)other);
  1679. } else {
  1680. super.mergeFrom(other);
  1681. return this;
  1682. }
  1683. }
  1684. public Builder mergeFrom(toutiao.dmp.DmpDataProto.IdItem other) {
  1685. if (other == toutiao.dmp.DmpDataProto.IdItem.getDefaultInstance()) return this;
  1686. if (other.hasTimestamp()) {
  1687. setTimestamp(other.getTimestamp());
  1688. }
  1689. if (other.hasDataType()) {
  1690. setDataType(other.getDataType());
  1691. }
  1692. if (other.hasId()) {
  1693. id_ = other.id_;
  1694. bitField0_ |= 0x00000004;
  1695. onChanged();
  1696. }
  1697. if (!other.tags_.isEmpty()) {
  1698. if (tags_.isEmpty()) {
  1699. tags_ = other.tags_;
  1700. bitField0_ |= 0x00000008;
  1701. } else {
  1702. ensureTagsIsMutable();
  1703. tags_.addAll(other.tags_);
  1704. }
  1705. onChanged();
  1706. }
  1707. this.mergeUnknownFields(other.getUnknownFields());
  1708. onChanged();
  1709. return this;
  1710. }
  1711. @java.lang.Override
  1712. public final boolean isInitialized() {
  1713. if (!hasDataType()) {
  1714. return false;
  1715. }
  1716. if (!hasId()) {
  1717. return false;
  1718. }
  1719. return true;
  1720. }
  1721. @java.lang.Override
  1722. public Builder mergeFrom(
  1723. com.google.protobuf.CodedInputStream input,
  1724. com.google.protobuf.ExtensionRegistryLite extensionRegistry)
  1725. throws java.io.IOException {
  1726. if (extensionRegistry == null) {
  1727. throw new java.lang.NullPointerException();
  1728. }
  1729. try {
  1730. boolean done = false;
  1731. while (!done) {
  1732. int tag = input.readTag();
  1733. switch (tag) {
  1734. case 0:
  1735. done = true;
  1736. break;
  1737. case 8: {
  1738. timestamp_ = input.readUInt32();
  1739. bitField0_ |= 0x00000001;
  1740. break;
  1741. } // case 8
  1742. case 16: {
  1743. int tmpRaw = input.readEnum();
  1744. toutiao.dmp.DmpDataProto.IdItem.DataType tmpValue =
  1745. toutiao.dmp.DmpDataProto.IdItem.DataType.forNumber(tmpRaw);
  1746. if (tmpValue == null) {
  1747. mergeUnknownVarintField(2, tmpRaw);
  1748. } else {
  1749. dataType_ = tmpRaw;
  1750. bitField0_ |= 0x00000002;
  1751. }
  1752. break;
  1753. } // case 16
  1754. case 26: {
  1755. id_ = input.readBytes();
  1756. bitField0_ |= 0x00000004;
  1757. break;
  1758. } // case 26
  1759. case 34: {
  1760. com.google.protobuf.ByteString bs = input.readBytes();
  1761. ensureTagsIsMutable();
  1762. tags_.add(bs);
  1763. break;
  1764. } // case 34
  1765. default: {
  1766. if (!super.parseUnknownField(input, extensionRegistry, tag)) {
  1767. done = true; // was an endgroup tag
  1768. }
  1769. break;
  1770. } // default:
  1771. } // switch (tag)
  1772. } // while (!done)
  1773. } catch (com.google.protobuf.InvalidProtocolBufferException e) {
  1774. throw e.unwrapIOException();
  1775. } finally {
  1776. onChanged();
  1777. } // finally
  1778. return this;
  1779. }
  1780. private int bitField0_;
  1781. private int timestamp_ ;
  1782. /**
  1783. * <pre>
  1784. *若不设置,默认以上传文件的创建时间为此条记录的创建时间
  1785. * </pre>
  1786. *
  1787. * <code>optional uint32 timestamp = 1;</code>
  1788. * @return Whether the timestamp field is set.
  1789. */
  1790. @java.lang.Override
  1791. public boolean hasTimestamp() {
  1792. return ((bitField0_ & 0x00000001) != 0);
  1793. }
  1794. /**
  1795. * <pre>
  1796. *若不设置,默认以上传文件的创建时间为此条记录的创建时间
  1797. * </pre>
  1798. *
  1799. * <code>optional uint32 timestamp = 1;</code>
  1800. * @return The timestamp.
  1801. */
  1802. @java.lang.Override
  1803. public int getTimestamp() {
  1804. return timestamp_;
  1805. }
  1806. /**
  1807. * <pre>
  1808. *若不设置,默认以上传文件的创建时间为此条记录的创建时间
  1809. * </pre>
  1810. *
  1811. * <code>optional uint32 timestamp = 1;</code>
  1812. * @param value The timestamp to set.
  1813. * @return This builder for chaining.
  1814. */
  1815. public Builder setTimestamp(int value) {
  1816. timestamp_ = value;
  1817. bitField0_ |= 0x00000001;
  1818. onChanged();
  1819. return this;
  1820. }
  1821. /**
  1822. * <pre>
  1823. *若不设置,默认以上传文件的创建时间为此条记录的创建时间
  1824. * </pre>
  1825. *
  1826. * <code>optional uint32 timestamp = 1;</code>
  1827. * @return This builder for chaining.
  1828. */
  1829. public Builder clearTimestamp() {
  1830. bitField0_ = (bitField0_ & ~0x00000001);
  1831. timestamp_ = 0;
  1832. onChanged();
  1833. return this;
  1834. }
  1835. private int dataType_ = 0;
  1836. /**
  1837. * <pre>
  1838. *指定此id的类型,如IMEI、IDFA等
  1839. * </pre>
  1840. *
  1841. * <code>required .toutiao.dmp.IdItem.DataType dataType = 2;</code>
  1842. * @return Whether the dataType field is set.
  1843. */
  1844. @java.lang.Override public boolean hasDataType() {
  1845. return ((bitField0_ & 0x00000002) != 0);
  1846. }
  1847. /**
  1848. * <pre>
  1849. *指定此id的类型,如IMEI、IDFA等
  1850. * </pre>
  1851. *
  1852. * <code>required .toutiao.dmp.IdItem.DataType dataType = 2;</code>
  1853. * @return The dataType.
  1854. */
  1855. @java.lang.Override
  1856. public toutiao.dmp.DmpDataProto.IdItem.DataType getDataType() {
  1857. toutiao.dmp.DmpDataProto.IdItem.DataType result = toutiao.dmp.DmpDataProto.IdItem.DataType.forNumber(dataType_);
  1858. return result == null ? toutiao.dmp.DmpDataProto.IdItem.DataType.IMEI : result;
  1859. }
  1860. /**
  1861. * <pre>
  1862. *指定此id的类型,如IMEI、IDFA等
  1863. * </pre>
  1864. *
  1865. * <code>required .toutiao.dmp.IdItem.DataType dataType = 2;</code>
  1866. * @param value The dataType to set.
  1867. * @return This builder for chaining.
  1868. */
  1869. public Builder setDataType(toutiao.dmp.DmpDataProto.IdItem.DataType value) {
  1870. if (value == null) {
  1871. throw new NullPointerException();
  1872. }
  1873. bitField0_ |= 0x00000002;
  1874. dataType_ = value.getNumber();
  1875. onChanged();
  1876. return this;
  1877. }
  1878. /**
  1879. * <pre>
  1880. *指定此id的类型,如IMEI、IDFA等
  1881. * </pre>
  1882. *
  1883. * <code>required .toutiao.dmp.IdItem.DataType dataType = 2;</code>
  1884. * @return This builder for chaining.
  1885. */
  1886. public Builder clearDataType() {
  1887. bitField0_ = (bitField0_ & ~0x00000002);
  1888. dataType_ = 0;
  1889. onChanged();
  1890. return this;
  1891. }
  1892. private java.lang.Object id_ = "";
  1893. /**
  1894. * <pre>
  1895. *根据dataType字段的类型,放置对应类型的id的字符串,需要小写
  1896. * </pre>
  1897. *
  1898. * <code>required string id = 3;</code>
  1899. * @return Whether the id field is set.
  1900. */
  1901. public boolean hasId() {
  1902. return ((bitField0_ & 0x00000004) != 0);
  1903. }
  1904. /**
  1905. * <pre>
  1906. *根据dataType字段的类型,放置对应类型的id的字符串,需要小写
  1907. * </pre>
  1908. *
  1909. * <code>required string id = 3;</code>
  1910. * @return The id.
  1911. */
  1912. public java.lang.String getId() {
  1913. java.lang.Object ref = id_;
  1914. if (!(ref instanceof java.lang.String)) {
  1915. com.google.protobuf.ByteString bs =
  1916. (com.google.protobuf.ByteString) ref;
  1917. java.lang.String s = bs.toStringUtf8();
  1918. if (bs.isValidUtf8()) {
  1919. id_ = s;
  1920. }
  1921. return s;
  1922. } else {
  1923. return (java.lang.String) ref;
  1924. }
  1925. }
  1926. /**
  1927. * <pre>
  1928. *根据dataType字段的类型,放置对应类型的id的字符串,需要小写
  1929. * </pre>
  1930. *
  1931. * <code>required string id = 3;</code>
  1932. * @return The bytes for id.
  1933. */
  1934. public com.google.protobuf.ByteString
  1935. getIdBytes() {
  1936. java.lang.Object ref = id_;
  1937. if (ref instanceof String) {
  1938. com.google.protobuf.ByteString b =
  1939. com.google.protobuf.ByteString.copyFromUtf8(
  1940. (java.lang.String) ref);
  1941. id_ = b;
  1942. return b;
  1943. } else {
  1944. return (com.google.protobuf.ByteString) ref;
  1945. }
  1946. }
  1947. /**
  1948. * <pre>
  1949. *根据dataType字段的类型,放置对应类型的id的字符串,需要小写
  1950. * </pre>
  1951. *
  1952. * <code>required string id = 3;</code>
  1953. * @param value The id to set.
  1954. * @return This builder for chaining.
  1955. */
  1956. public Builder setId(
  1957. java.lang.String value) {
  1958. if (value == null) { throw new NullPointerException(); }
  1959. id_ = value;
  1960. bitField0_ |= 0x00000004;
  1961. onChanged();
  1962. return this;
  1963. }
  1964. /**
  1965. * <pre>
  1966. *根据dataType字段的类型,放置对应类型的id的字符串,需要小写
  1967. * </pre>
  1968. *
  1969. * <code>required string id = 3;</code>
  1970. * @return This builder for chaining.
  1971. */
  1972. public Builder clearId() {
  1973. id_ = getDefaultInstance().getId();
  1974. bitField0_ = (bitField0_ & ~0x00000004);
  1975. onChanged();
  1976. return this;
  1977. }
  1978. /**
  1979. * <pre>
  1980. *根据dataType字段的类型,放置对应类型的id的字符串,需要小写
  1981. * </pre>
  1982. *
  1983. * <code>required string id = 3;</code>
  1984. * @param value The bytes for id to set.
  1985. * @return This builder for chaining.
  1986. */
  1987. public Builder setIdBytes(
  1988. com.google.protobuf.ByteString value) {
  1989. if (value == null) { throw new NullPointerException(); }
  1990. id_ = value;
  1991. bitField0_ |= 0x00000004;
  1992. onChanged();
  1993. return this;
  1994. }
  1995. private com.google.protobuf.LazyStringArrayList tags_ =
  1996. com.google.protobuf.LazyStringArrayList.emptyList();
  1997. private void ensureTagsIsMutable() {
  1998. if (!tags_.isModifiable()) {
  1999. tags_ = new com.google.protobuf.LazyStringArrayList(tags_);
  2000. }
  2001. bitField0_ |= 0x00000008;
  2002. }
  2003. /**
  2004. * <pre>
  2005. *标识此id的业务标签字符串
  2006. * </pre>
  2007. *
  2008. * <code>repeated string tags = 4;</code>
  2009. * @return A list containing the tags.
  2010. */
  2011. public com.google.protobuf.ProtocolStringList
  2012. getTagsList() {
  2013. tags_.makeImmutable();
  2014. return tags_;
  2015. }
  2016. /**
  2017. * <pre>
  2018. *标识此id的业务标签字符串
  2019. * </pre>
  2020. *
  2021. * <code>repeated string tags = 4;</code>
  2022. * @return The count of tags.
  2023. */
  2024. public int getTagsCount() {
  2025. return tags_.size();
  2026. }
  2027. /**
  2028. * <pre>
  2029. *标识此id的业务标签字符串
  2030. * </pre>
  2031. *
  2032. * <code>repeated string tags = 4;</code>
  2033. * @param index The index of the element to return.
  2034. * @return The tags at the given index.
  2035. */
  2036. public java.lang.String getTags(int index) {
  2037. return tags_.get(index);
  2038. }
  2039. /**
  2040. * <pre>
  2041. *标识此id的业务标签字符串
  2042. * </pre>
  2043. *
  2044. * <code>repeated string tags = 4;</code>
  2045. * @param index The index of the value to return.
  2046. * @return The bytes of the tags at the given index.
  2047. */
  2048. public com.google.protobuf.ByteString
  2049. getTagsBytes(int index) {
  2050. return tags_.getByteString(index);
  2051. }
  2052. /**
  2053. * <pre>
  2054. *标识此id的业务标签字符串
  2055. * </pre>
  2056. *
  2057. * <code>repeated string tags = 4;</code>
  2058. * @param index The index to set the value at.
  2059. * @param value The tags to set.
  2060. * @return This builder for chaining.
  2061. */
  2062. public Builder setTags(
  2063. int index, java.lang.String value) {
  2064. if (value == null) { throw new NullPointerException(); }
  2065. ensureTagsIsMutable();
  2066. tags_.set(index, value);
  2067. bitField0_ |= 0x00000008;
  2068. onChanged();
  2069. return this;
  2070. }
  2071. /**
  2072. * <pre>
  2073. *标识此id的业务标签字符串
  2074. * </pre>
  2075. *
  2076. * <code>repeated string tags = 4;</code>
  2077. * @param value The tags to add.
  2078. * @return This builder for chaining.
  2079. */
  2080. public Builder addTags(
  2081. java.lang.String value) {
  2082. if (value == null) { throw new NullPointerException(); }
  2083. ensureTagsIsMutable();
  2084. tags_.add(value);
  2085. bitField0_ |= 0x00000008;
  2086. onChanged();
  2087. return this;
  2088. }
  2089. /**
  2090. * <pre>
  2091. *标识此id的业务标签字符串
  2092. * </pre>
  2093. *
  2094. * <code>repeated string tags = 4;</code>
  2095. * @param values The tags to add.
  2096. * @return This builder for chaining.
  2097. */
  2098. public Builder addAllTags(
  2099. java.lang.Iterable<java.lang.String> values) {
  2100. ensureTagsIsMutable();
  2101. com.google.protobuf.AbstractMessageLite.Builder.addAll(
  2102. values, tags_);
  2103. bitField0_ |= 0x00000008;
  2104. onChanged();
  2105. return this;
  2106. }
  2107. /**
  2108. * <pre>
  2109. *标识此id的业务标签字符串
  2110. * </pre>
  2111. *
  2112. * <code>repeated string tags = 4;</code>
  2113. * @return This builder for chaining.
  2114. */
  2115. public Builder clearTags() {
  2116. tags_ =
  2117. com.google.protobuf.LazyStringArrayList.emptyList();
  2118. bitField0_ = (bitField0_ & ~0x00000008);;
  2119. onChanged();
  2120. return this;
  2121. }
  2122. /**
  2123. * <pre>
  2124. *标识此id的业务标签字符串
  2125. * </pre>
  2126. *
  2127. * <code>repeated string tags = 4;</code>
  2128. * @param value The bytes of the tags to add.
  2129. * @return This builder for chaining.
  2130. */
  2131. public Builder addTagsBytes(
  2132. com.google.protobuf.ByteString value) {
  2133. if (value == null) { throw new NullPointerException(); }
  2134. ensureTagsIsMutable();
  2135. tags_.add(value);
  2136. bitField0_ |= 0x00000008;
  2137. onChanged();
  2138. return this;
  2139. }
  2140. @java.lang.Override
  2141. public final Builder setUnknownFields(
  2142. final com.google.protobuf.UnknownFieldSet unknownFields) {
  2143. return super.setUnknownFields(unknownFields);
  2144. }
  2145. @java.lang.Override
  2146. public final Builder mergeUnknownFields(
  2147. final com.google.protobuf.UnknownFieldSet unknownFields) {
  2148. return super.mergeUnknownFields(unknownFields);
  2149. }
  2150. // @@protoc_insertion_point(builder_scope:toutiao.dmp.IdItem)
  2151. }
  2152. // @@protoc_insertion_point(class_scope:toutiao.dmp.IdItem)
  2153. private static final toutiao.dmp.DmpDataProto.IdItem DEFAULT_INSTANCE;
  2154. static {
  2155. DEFAULT_INSTANCE = new toutiao.dmp.DmpDataProto.IdItem();
  2156. }
  2157. public static toutiao.dmp.DmpDataProto.IdItem getDefaultInstance() {
  2158. return DEFAULT_INSTANCE;
  2159. }
  2160. @java.lang.Deprecated public static final com.google.protobuf.Parser<IdItem>
  2161. PARSER = new com.google.protobuf.AbstractParser<IdItem>() {
  2162. @java.lang.Override
  2163. public IdItem parsePartialFrom(
  2164. com.google.protobuf.CodedInputStream input,
  2165. com.google.protobuf.ExtensionRegistryLite extensionRegistry)
  2166. throws com.google.protobuf.InvalidProtocolBufferException {
  2167. Builder builder = newBuilder();
  2168. try {
  2169. builder.mergeFrom(input, extensionRegistry);
  2170. } catch (com.google.protobuf.InvalidProtocolBufferException e) {
  2171. throw e.setUnfinishedMessage(builder.buildPartial());
  2172. } catch (com.google.protobuf.UninitializedMessageException e) {
  2173. throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
  2174. } catch (java.io.IOException e) {
  2175. throw new com.google.protobuf.InvalidProtocolBufferException(e)
  2176. .setUnfinishedMessage(builder.buildPartial());
  2177. }
  2178. return builder.buildPartial();
  2179. }
  2180. };
  2181. public static com.google.protobuf.Parser<IdItem> parser() {
  2182. return PARSER;
  2183. }
  2184. @java.lang.Override
  2185. public com.google.protobuf.Parser<IdItem> getParserForType() {
  2186. return PARSER;
  2187. }
  2188. @java.lang.Override
  2189. public toutiao.dmp.DmpDataProto.IdItem getDefaultInstanceForType() {
  2190. return DEFAULT_INSTANCE;
  2191. }
  2192. }
  2193. private static final com.google.protobuf.Descriptors.Descriptor
  2194. internal_static_toutiao_dmp_DmpData_descriptor;
  2195. private static final
  2196. com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
  2197. internal_static_toutiao_dmp_DmpData_fieldAccessorTable;
  2198. private static final com.google.protobuf.Descriptors.Descriptor
  2199. internal_static_toutiao_dmp_IdItem_descriptor;
  2200. private static final
  2201. com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
  2202. internal_static_toutiao_dmp_IdItem_fieldAccessorTable;
  2203. public static com.google.protobuf.Descriptors.FileDescriptor
  2204. getDescriptor() {
  2205. return descriptor;
  2206. }
  2207. private static com.google.protobuf.Descriptors.FileDescriptor
  2208. descriptor;
  2209. static {
  2210. java.lang.String[] descriptorData = {
  2211. "\n\021dmp_message.proto\022\013toutiao.dmp\".\n\007DmpD" +
  2212. "ata\022#\n\006idList\030\001 \003(\0132\023.toutiao.dmp.IdItem" +
  2213. "\"\332\001\n\006IdItem\022\021\n\ttimestamp\030\001 \001(\r\022.\n\010dataTy" +
  2214. "pe\030\002 \002(\0162\034.toutiao.dmp.IdItem.DataType\022\n" +
  2215. "\n\002id\030\003 \002(\t\022\014\n\004tags\030\004 \003(\t\"s\n\010DataType\022\010\n\004" +
  2216. "IMEI\020\000\022\010\n\004IDFA\020\001\022\007\n\003UID\020\002\022\014\n\010IMEI_MD5\020\004\022" +
  2217. "\014\n\010IDFA_MD5\020\005\022\026\n\022MOBILE_HASH_SHA256\020\006\022\010\n" +
  2218. "\004OAID\020\007\022\014\n\010OAID_MD5\020\010B\016B\014DmpDataProto"
  2219. };
  2220. descriptor = com.google.protobuf.Descriptors.FileDescriptor
  2221. .internalBuildGeneratedFileFrom(descriptorData,
  2222. new com.google.protobuf.Descriptors.FileDescriptor[] {
  2223. });
  2224. internal_static_toutiao_dmp_DmpData_descriptor =
  2225. getDescriptor().getMessageTypes().get(0);
  2226. internal_static_toutiao_dmp_DmpData_fieldAccessorTable = new
  2227. com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
  2228. internal_static_toutiao_dmp_DmpData_descriptor,
  2229. new java.lang.String[] { "IdList", });
  2230. internal_static_toutiao_dmp_IdItem_descriptor =
  2231. getDescriptor().getMessageTypes().get(1);
  2232. internal_static_toutiao_dmp_IdItem_fieldAccessorTable = new
  2233. com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
  2234. internal_static_toutiao_dmp_IdItem_descriptor,
  2235. new java.lang.String[] { "Timestamp", "DataType", "Id", "Tags", });
  2236. }
  2237. // @@protoc_insertion_point(outer_class_scope)
  2238. }