| 12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357 |
- // Generated by the protocol buffer compiler. DO NOT EDIT!
- // source: dmp_message.proto
- // Protobuf Java Version: 3.25.1
- package toutiao.dmp;
- public final class DmpDataProto {
- private DmpDataProto() {}
- public static void registerAllExtensions(
- com.google.protobuf.ExtensionRegistryLite registry) {
- }
- public static void registerAllExtensions(
- com.google.protobuf.ExtensionRegistry registry) {
- registerAllExtensions(
- (com.google.protobuf.ExtensionRegistryLite) registry);
- }
- public interface DmpDataOrBuilder extends
- // @@protoc_insertion_point(interface_extends:toutiao.dmp.DmpData)
- com.google.protobuf.MessageOrBuilder {
- /**
- * <pre>
- * 每行数据包含的idList大小不能超过10000
- * </pre>
- *
- * <code>repeated .toutiao.dmp.IdItem idList = 1;</code>
- */
- java.util.List<toutiao.dmp.DmpDataProto.IdItem>
- getIdListList();
- /**
- * <pre>
- * 每行数据包含的idList大小不能超过10000
- * </pre>
- *
- * <code>repeated .toutiao.dmp.IdItem idList = 1;</code>
- */
- toutiao.dmp.DmpDataProto.IdItem getIdList(int index);
- /**
- * <pre>
- * 每行数据包含的idList大小不能超过10000
- * </pre>
- *
- * <code>repeated .toutiao.dmp.IdItem idList = 1;</code>
- */
- int getIdListCount();
- /**
- * <pre>
- * 每行数据包含的idList大小不能超过10000
- * </pre>
- *
- * <code>repeated .toutiao.dmp.IdItem idList = 1;</code>
- */
- java.util.List<? extends toutiao.dmp.DmpDataProto.IdItemOrBuilder>
- getIdListOrBuilderList();
- /**
- * <pre>
- * 每行数据包含的idList大小不能超过10000
- * </pre>
- *
- * <code>repeated .toutiao.dmp.IdItem idList = 1;</code>
- */
- toutiao.dmp.DmpDataProto.IdItemOrBuilder getIdListOrBuilder(
- int index);
- }
- /**
- * <pre>
- *上传文件每行一个base64编码的字符串,每个字符串包含一个完整的DmpData消息二进制字节串
- * </pre>
- *
- * Protobuf type {@code toutiao.dmp.DmpData}
- */
- public static final class DmpData extends
- com.google.protobuf.GeneratedMessageV3 implements
- // @@protoc_insertion_point(message_implements:toutiao.dmp.DmpData)
- DmpDataOrBuilder {
- private static final long serialVersionUID = 0L;
- // Use DmpData.newBuilder() to construct.
- private DmpData(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {
- super(builder);
- }
- private DmpData() {
- idList_ = java.util.Collections.emptyList();
- }
- @java.lang.Override
- @SuppressWarnings({"unused"})
- protected java.lang.Object newInstance(
- UnusedPrivateParameter unused) {
- return new DmpData();
- }
- public static final com.google.protobuf.Descriptors.Descriptor
- getDescriptor() {
- return toutiao.dmp.DmpDataProto.internal_static_toutiao_dmp_DmpData_descriptor;
- }
- @java.lang.Override
- protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
- internalGetFieldAccessorTable() {
- return toutiao.dmp.DmpDataProto.internal_static_toutiao_dmp_DmpData_fieldAccessorTable
- .ensureFieldAccessorsInitialized(
- toutiao.dmp.DmpDataProto.DmpData.class, toutiao.dmp.DmpDataProto.DmpData.Builder.class);
- }
- public static final int IDLIST_FIELD_NUMBER = 1;
- @SuppressWarnings("serial")
- private java.util.List<toutiao.dmp.DmpDataProto.IdItem> idList_;
- /**
- * <pre>
- * 每行数据包含的idList大小不能超过10000
- * </pre>
- *
- * <code>repeated .toutiao.dmp.IdItem idList = 1;</code>
- */
- @java.lang.Override
- public java.util.List<toutiao.dmp.DmpDataProto.IdItem> getIdListList() {
- return idList_;
- }
- /**
- * <pre>
- * 每行数据包含的idList大小不能超过10000
- * </pre>
- *
- * <code>repeated .toutiao.dmp.IdItem idList = 1;</code>
- */
- @java.lang.Override
- public java.util.List<? extends toutiao.dmp.DmpDataProto.IdItemOrBuilder>
- getIdListOrBuilderList() {
- return idList_;
- }
- /**
- * <pre>
- * 每行数据包含的idList大小不能超过10000
- * </pre>
- *
- * <code>repeated .toutiao.dmp.IdItem idList = 1;</code>
- */
- @java.lang.Override
- public int getIdListCount() {
- return idList_.size();
- }
- /**
- * <pre>
- * 每行数据包含的idList大小不能超过10000
- * </pre>
- *
- * <code>repeated .toutiao.dmp.IdItem idList = 1;</code>
- */
- @java.lang.Override
- public toutiao.dmp.DmpDataProto.IdItem getIdList(int index) {
- return idList_.get(index);
- }
- /**
- * <pre>
- * 每行数据包含的idList大小不能超过10000
- * </pre>
- *
- * <code>repeated .toutiao.dmp.IdItem idList = 1;</code>
- */
- @java.lang.Override
- public toutiao.dmp.DmpDataProto.IdItemOrBuilder getIdListOrBuilder(
- int index) {
- return idList_.get(index);
- }
- private byte memoizedIsInitialized = -1;
- @java.lang.Override
- public final boolean isInitialized() {
- byte isInitialized = memoizedIsInitialized;
- if (isInitialized == 1) return true;
- if (isInitialized == 0) return false;
- for (int i = 0; i < getIdListCount(); i++) {
- if (!getIdList(i).isInitialized()) {
- memoizedIsInitialized = 0;
- return false;
- }
- }
- memoizedIsInitialized = 1;
- return true;
- }
- @java.lang.Override
- public void writeTo(com.google.protobuf.CodedOutputStream output)
- throws java.io.IOException {
- for (int i = 0; i < idList_.size(); i++) {
- output.writeMessage(1, idList_.get(i));
- }
- getUnknownFields().writeTo(output);
- }
- @java.lang.Override
- public int getSerializedSize() {
- int size = memoizedSize;
- if (size != -1) return size;
- size = 0;
- for (int i = 0; i < idList_.size(); i++) {
- size += com.google.protobuf.CodedOutputStream
- .computeMessageSize(1, idList_.get(i));
- }
- size += getUnknownFields().getSerializedSize();
- memoizedSize = size;
- return size;
- }
- @java.lang.Override
- public boolean equals(final java.lang.Object obj) {
- if (obj == this) {
- return true;
- }
- if (!(obj instanceof toutiao.dmp.DmpDataProto.DmpData)) {
- return super.equals(obj);
- }
- toutiao.dmp.DmpDataProto.DmpData other = (toutiao.dmp.DmpDataProto.DmpData) obj;
- if (!getIdListList()
- .equals(other.getIdListList())) return false;
- if (!getUnknownFields().equals(other.getUnknownFields())) return false;
- return true;
- }
- @java.lang.Override
- public int hashCode() {
- if (memoizedHashCode != 0) {
- return memoizedHashCode;
- }
- int hash = 41;
- hash = (19 * hash) + getDescriptor().hashCode();
- if (getIdListCount() > 0) {
- hash = (37 * hash) + IDLIST_FIELD_NUMBER;
- hash = (53 * hash) + getIdListList().hashCode();
- }
- hash = (29 * hash) + getUnknownFields().hashCode();
- memoizedHashCode = hash;
- return hash;
- }
- public static toutiao.dmp.DmpDataProto.DmpData parseFrom(
- java.nio.ByteBuffer data)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data);
- }
- public static toutiao.dmp.DmpDataProto.DmpData parseFrom(
- java.nio.ByteBuffer data,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data, extensionRegistry);
- }
- public static toutiao.dmp.DmpDataProto.DmpData parseFrom(
- com.google.protobuf.ByteString data)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data);
- }
- public static toutiao.dmp.DmpDataProto.DmpData parseFrom(
- com.google.protobuf.ByteString data,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data, extensionRegistry);
- }
- public static toutiao.dmp.DmpDataProto.DmpData parseFrom(byte[] data)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data);
- }
- public static toutiao.dmp.DmpDataProto.DmpData parseFrom(
- byte[] data,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data, extensionRegistry);
- }
- public static toutiao.dmp.DmpDataProto.DmpData parseFrom(java.io.InputStream input)
- throws java.io.IOException {
- return com.google.protobuf.GeneratedMessageV3
- .parseWithIOException(PARSER, input);
- }
- public static toutiao.dmp.DmpDataProto.DmpData parseFrom(
- java.io.InputStream input,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws java.io.IOException {
- return com.google.protobuf.GeneratedMessageV3
- .parseWithIOException(PARSER, input, extensionRegistry);
- }
- public static toutiao.dmp.DmpDataProto.DmpData parseDelimitedFrom(java.io.InputStream input)
- throws java.io.IOException {
- return com.google.protobuf.GeneratedMessageV3
- .parseDelimitedWithIOException(PARSER, input);
- }
- public static toutiao.dmp.DmpDataProto.DmpData parseDelimitedFrom(
- java.io.InputStream input,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws java.io.IOException {
- return com.google.protobuf.GeneratedMessageV3
- .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
- }
- public static toutiao.dmp.DmpDataProto.DmpData parseFrom(
- com.google.protobuf.CodedInputStream input)
- throws java.io.IOException {
- return com.google.protobuf.GeneratedMessageV3
- .parseWithIOException(PARSER, input);
- }
- public static toutiao.dmp.DmpDataProto.DmpData parseFrom(
- com.google.protobuf.CodedInputStream input,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws java.io.IOException {
- return com.google.protobuf.GeneratedMessageV3
- .parseWithIOException(PARSER, input, extensionRegistry);
- }
- @java.lang.Override
- public Builder newBuilderForType() { return newBuilder(); }
- public static Builder newBuilder() {
- return DEFAULT_INSTANCE.toBuilder();
- }
- public static Builder newBuilder(toutiao.dmp.DmpDataProto.DmpData prototype) {
- return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
- }
- @java.lang.Override
- public Builder toBuilder() {
- return this == DEFAULT_INSTANCE
- ? new Builder() : new Builder().mergeFrom(this);
- }
- @java.lang.Override
- protected Builder newBuilderForType(
- com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
- Builder builder = new Builder(parent);
- return builder;
- }
- /**
- * <pre>
- *上传文件每行一个base64编码的字符串,每个字符串包含一个完整的DmpData消息二进制字节串
- * </pre>
- *
- * Protobuf type {@code toutiao.dmp.DmpData}
- */
- public static final class Builder extends
- com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements
- // @@protoc_insertion_point(builder_implements:toutiao.dmp.DmpData)
- toutiao.dmp.DmpDataProto.DmpDataOrBuilder {
- public static final com.google.protobuf.Descriptors.Descriptor
- getDescriptor() {
- return toutiao.dmp.DmpDataProto.internal_static_toutiao_dmp_DmpData_descriptor;
- }
- @java.lang.Override
- protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
- internalGetFieldAccessorTable() {
- return toutiao.dmp.DmpDataProto.internal_static_toutiao_dmp_DmpData_fieldAccessorTable
- .ensureFieldAccessorsInitialized(
- toutiao.dmp.DmpDataProto.DmpData.class, toutiao.dmp.DmpDataProto.DmpData.Builder.class);
- }
- // Construct using toutiao.dmp.DmpDataProto.DmpData.newBuilder()
- private Builder() {
- }
- private Builder(
- com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
- super(parent);
- }
- @java.lang.Override
- public Builder clear() {
- super.clear();
- bitField0_ = 0;
- if (idListBuilder_ == null) {
- idList_ = java.util.Collections.emptyList();
- } else {
- idList_ = null;
- idListBuilder_.clear();
- }
- bitField0_ = (bitField0_ & ~0x00000001);
- return this;
- }
- @java.lang.Override
- public com.google.protobuf.Descriptors.Descriptor
- getDescriptorForType() {
- return toutiao.dmp.DmpDataProto.internal_static_toutiao_dmp_DmpData_descriptor;
- }
- @java.lang.Override
- public toutiao.dmp.DmpDataProto.DmpData getDefaultInstanceForType() {
- return toutiao.dmp.DmpDataProto.DmpData.getDefaultInstance();
- }
- @java.lang.Override
- public toutiao.dmp.DmpDataProto.DmpData build() {
- toutiao.dmp.DmpDataProto.DmpData result = buildPartial();
- if (!result.isInitialized()) {
- throw newUninitializedMessageException(result);
- }
- return result;
- }
- @java.lang.Override
- public toutiao.dmp.DmpDataProto.DmpData buildPartial() {
- toutiao.dmp.DmpDataProto.DmpData result = new toutiao.dmp.DmpDataProto.DmpData(this);
- buildPartialRepeatedFields(result);
- if (bitField0_ != 0) { buildPartial0(result); }
- onBuilt();
- return result;
- }
- private void buildPartialRepeatedFields(toutiao.dmp.DmpDataProto.DmpData result) {
- if (idListBuilder_ == null) {
- if (((bitField0_ & 0x00000001) != 0)) {
- idList_ = java.util.Collections.unmodifiableList(idList_);
- bitField0_ = (bitField0_ & ~0x00000001);
- }
- result.idList_ = idList_;
- } else {
- result.idList_ = idListBuilder_.build();
- }
- }
- private void buildPartial0(toutiao.dmp.DmpDataProto.DmpData result) {
- int from_bitField0_ = bitField0_;
- }
- @java.lang.Override
- public Builder clone() {
- return super.clone();
- }
- @java.lang.Override
- public Builder setField(
- com.google.protobuf.Descriptors.FieldDescriptor field,
- java.lang.Object value) {
- return super.setField(field, value);
- }
- @java.lang.Override
- public Builder clearField(
- com.google.protobuf.Descriptors.FieldDescriptor field) {
- return super.clearField(field);
- }
- @java.lang.Override
- public Builder clearOneof(
- com.google.protobuf.Descriptors.OneofDescriptor oneof) {
- return super.clearOneof(oneof);
- }
- @java.lang.Override
- public Builder setRepeatedField(
- com.google.protobuf.Descriptors.FieldDescriptor field,
- int index, java.lang.Object value) {
- return super.setRepeatedField(field, index, value);
- }
- @java.lang.Override
- public Builder addRepeatedField(
- com.google.protobuf.Descriptors.FieldDescriptor field,
- java.lang.Object value) {
- return super.addRepeatedField(field, value);
- }
- @java.lang.Override
- public Builder mergeFrom(com.google.protobuf.Message other) {
- if (other instanceof toutiao.dmp.DmpDataProto.DmpData) {
- return mergeFrom((toutiao.dmp.DmpDataProto.DmpData)other);
- } else {
- super.mergeFrom(other);
- return this;
- }
- }
- public Builder mergeFrom(toutiao.dmp.DmpDataProto.DmpData other) {
- if (other == toutiao.dmp.DmpDataProto.DmpData.getDefaultInstance()) return this;
- if (idListBuilder_ == null) {
- if (!other.idList_.isEmpty()) {
- if (idList_.isEmpty()) {
- idList_ = other.idList_;
- bitField0_ = (bitField0_ & ~0x00000001);
- } else {
- ensureIdListIsMutable();
- idList_.addAll(other.idList_);
- }
- onChanged();
- }
- } else {
- if (!other.idList_.isEmpty()) {
- if (idListBuilder_.isEmpty()) {
- idListBuilder_.dispose();
- idListBuilder_ = null;
- idList_ = other.idList_;
- bitField0_ = (bitField0_ & ~0x00000001);
- idListBuilder_ =
- com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
- getIdListFieldBuilder() : null;
- } else {
- idListBuilder_.addAllMessages(other.idList_);
- }
- }
- }
- this.mergeUnknownFields(other.getUnknownFields());
- onChanged();
- return this;
- }
- @java.lang.Override
- public final boolean isInitialized() {
- for (int i = 0; i < getIdListCount(); i++) {
- if (!getIdList(i).isInitialized()) {
- return false;
- }
- }
- return true;
- }
- @java.lang.Override
- public Builder mergeFrom(
- com.google.protobuf.CodedInputStream input,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws java.io.IOException {
- if (extensionRegistry == null) {
- throw new java.lang.NullPointerException();
- }
- try {
- boolean done = false;
- while (!done) {
- int tag = input.readTag();
- switch (tag) {
- case 0:
- done = true;
- break;
- case 10: {
- toutiao.dmp.DmpDataProto.IdItem m =
- input.readMessage(
- toutiao.dmp.DmpDataProto.IdItem.PARSER,
- extensionRegistry);
- if (idListBuilder_ == null) {
- ensureIdListIsMutable();
- idList_.add(m);
- } else {
- idListBuilder_.addMessage(m);
- }
- break;
- } // case 10
- default: {
- if (!super.parseUnknownField(input, extensionRegistry, tag)) {
- done = true; // was an endgroup tag
- }
- break;
- } // default:
- } // switch (tag)
- } // while (!done)
- } catch (com.google.protobuf.InvalidProtocolBufferException e) {
- throw e.unwrapIOException();
- } finally {
- onChanged();
- } // finally
- return this;
- }
- private int bitField0_;
- private java.util.List<toutiao.dmp.DmpDataProto.IdItem> idList_ =
- java.util.Collections.emptyList();
- private void ensureIdListIsMutable() {
- if (!((bitField0_ & 0x00000001) != 0)) {
- idList_ = new java.util.ArrayList<toutiao.dmp.DmpDataProto.IdItem>(idList_);
- bitField0_ |= 0x00000001;
- }
- }
- private com.google.protobuf.RepeatedFieldBuilderV3<
- toutiao.dmp.DmpDataProto.IdItem, toutiao.dmp.DmpDataProto.IdItem.Builder, toutiao.dmp.DmpDataProto.IdItemOrBuilder> idListBuilder_;
- /**
- * <pre>
- * 每行数据包含的idList大小不能超过10000
- * </pre>
- *
- * <code>repeated .toutiao.dmp.IdItem idList = 1;</code>
- */
- public java.util.List<toutiao.dmp.DmpDataProto.IdItem> getIdListList() {
- if (idListBuilder_ == null) {
- return java.util.Collections.unmodifiableList(idList_);
- } else {
- return idListBuilder_.getMessageList();
- }
- }
- /**
- * <pre>
- * 每行数据包含的idList大小不能超过10000
- * </pre>
- *
- * <code>repeated .toutiao.dmp.IdItem idList = 1;</code>
- */
- public int getIdListCount() {
- if (idListBuilder_ == null) {
- return idList_.size();
- } else {
- return idListBuilder_.getCount();
- }
- }
- /**
- * <pre>
- * 每行数据包含的idList大小不能超过10000
- * </pre>
- *
- * <code>repeated .toutiao.dmp.IdItem idList = 1;</code>
- */
- public toutiao.dmp.DmpDataProto.IdItem getIdList(int index) {
- if (idListBuilder_ == null) {
- return idList_.get(index);
- } else {
- return idListBuilder_.getMessage(index);
- }
- }
- /**
- * <pre>
- * 每行数据包含的idList大小不能超过10000
- * </pre>
- *
- * <code>repeated .toutiao.dmp.IdItem idList = 1;</code>
- */
- public Builder setIdList(
- int index, toutiao.dmp.DmpDataProto.IdItem value) {
- if (idListBuilder_ == null) {
- if (value == null) {
- throw new NullPointerException();
- }
- ensureIdListIsMutable();
- idList_.set(index, value);
- onChanged();
- } else {
- idListBuilder_.setMessage(index, value);
- }
- return this;
- }
- /**
- * <pre>
- * 每行数据包含的idList大小不能超过10000
- * </pre>
- *
- * <code>repeated .toutiao.dmp.IdItem idList = 1;</code>
- */
- public Builder setIdList(
- int index, toutiao.dmp.DmpDataProto.IdItem.Builder builderForValue) {
- if (idListBuilder_ == null) {
- ensureIdListIsMutable();
- idList_.set(index, builderForValue.build());
- onChanged();
- } else {
- idListBuilder_.setMessage(index, builderForValue.build());
- }
- return this;
- }
- /**
- * <pre>
- * 每行数据包含的idList大小不能超过10000
- * </pre>
- *
- * <code>repeated .toutiao.dmp.IdItem idList = 1;</code>
- */
- public Builder addIdList(toutiao.dmp.DmpDataProto.IdItem value) {
- if (idListBuilder_ == null) {
- if (value == null) {
- throw new NullPointerException();
- }
- ensureIdListIsMutable();
- idList_.add(value);
- onChanged();
- } else {
- idListBuilder_.addMessage(value);
- }
- return this;
- }
- /**
- * <pre>
- * 每行数据包含的idList大小不能超过10000
- * </pre>
- *
- * <code>repeated .toutiao.dmp.IdItem idList = 1;</code>
- */
- public Builder addIdList(
- int index, toutiao.dmp.DmpDataProto.IdItem value) {
- if (idListBuilder_ == null) {
- if (value == null) {
- throw new NullPointerException();
- }
- ensureIdListIsMutable();
- idList_.add(index, value);
- onChanged();
- } else {
- idListBuilder_.addMessage(index, value);
- }
- return this;
- }
- /**
- * <pre>
- * 每行数据包含的idList大小不能超过10000
- * </pre>
- *
- * <code>repeated .toutiao.dmp.IdItem idList = 1;</code>
- */
- public Builder addIdList(
- toutiao.dmp.DmpDataProto.IdItem.Builder builderForValue) {
- if (idListBuilder_ == null) {
- ensureIdListIsMutable();
- idList_.add(builderForValue.build());
- onChanged();
- } else {
- idListBuilder_.addMessage(builderForValue.build());
- }
- return this;
- }
- /**
- * <pre>
- * 每行数据包含的idList大小不能超过10000
- * </pre>
- *
- * <code>repeated .toutiao.dmp.IdItem idList = 1;</code>
- */
- public Builder addIdList(
- int index, toutiao.dmp.DmpDataProto.IdItem.Builder builderForValue) {
- if (idListBuilder_ == null) {
- ensureIdListIsMutable();
- idList_.add(index, builderForValue.build());
- onChanged();
- } else {
- idListBuilder_.addMessage(index, builderForValue.build());
- }
- return this;
- }
- /**
- * <pre>
- * 每行数据包含的idList大小不能超过10000
- * </pre>
- *
- * <code>repeated .toutiao.dmp.IdItem idList = 1;</code>
- */
- public Builder addAllIdList(
- java.lang.Iterable<? extends toutiao.dmp.DmpDataProto.IdItem> values) {
- if (idListBuilder_ == null) {
- ensureIdListIsMutable();
- com.google.protobuf.AbstractMessageLite.Builder.addAll(
- values, idList_);
- onChanged();
- } else {
- idListBuilder_.addAllMessages(values);
- }
- return this;
- }
- /**
- * <pre>
- * 每行数据包含的idList大小不能超过10000
- * </pre>
- *
- * <code>repeated .toutiao.dmp.IdItem idList = 1;</code>
- */
- public Builder clearIdList() {
- if (idListBuilder_ == null) {
- idList_ = java.util.Collections.emptyList();
- bitField0_ = (bitField0_ & ~0x00000001);
- onChanged();
- } else {
- idListBuilder_.clear();
- }
- return this;
- }
- /**
- * <pre>
- * 每行数据包含的idList大小不能超过10000
- * </pre>
- *
- * <code>repeated .toutiao.dmp.IdItem idList = 1;</code>
- */
- public Builder removeIdList(int index) {
- if (idListBuilder_ == null) {
- ensureIdListIsMutable();
- idList_.remove(index);
- onChanged();
- } else {
- idListBuilder_.remove(index);
- }
- return this;
- }
- /**
- * <pre>
- * 每行数据包含的idList大小不能超过10000
- * </pre>
- *
- * <code>repeated .toutiao.dmp.IdItem idList = 1;</code>
- */
- public toutiao.dmp.DmpDataProto.IdItem.Builder getIdListBuilder(
- int index) {
- return getIdListFieldBuilder().getBuilder(index);
- }
- /**
- * <pre>
- * 每行数据包含的idList大小不能超过10000
- * </pre>
- *
- * <code>repeated .toutiao.dmp.IdItem idList = 1;</code>
- */
- public toutiao.dmp.DmpDataProto.IdItemOrBuilder getIdListOrBuilder(
- int index) {
- if (idListBuilder_ == null) {
- return idList_.get(index); } else {
- return idListBuilder_.getMessageOrBuilder(index);
- }
- }
- /**
- * <pre>
- * 每行数据包含的idList大小不能超过10000
- * </pre>
- *
- * <code>repeated .toutiao.dmp.IdItem idList = 1;</code>
- */
- public java.util.List<? extends toutiao.dmp.DmpDataProto.IdItemOrBuilder>
- getIdListOrBuilderList() {
- if (idListBuilder_ != null) {
- return idListBuilder_.getMessageOrBuilderList();
- } else {
- return java.util.Collections.unmodifiableList(idList_);
- }
- }
- /**
- * <pre>
- * 每行数据包含的idList大小不能超过10000
- * </pre>
- *
- * <code>repeated .toutiao.dmp.IdItem idList = 1;</code>
- */
- public toutiao.dmp.DmpDataProto.IdItem.Builder addIdListBuilder() {
- return getIdListFieldBuilder().addBuilder(
- toutiao.dmp.DmpDataProto.IdItem.getDefaultInstance());
- }
- /**
- * <pre>
- * 每行数据包含的idList大小不能超过10000
- * </pre>
- *
- * <code>repeated .toutiao.dmp.IdItem idList = 1;</code>
- */
- public toutiao.dmp.DmpDataProto.IdItem.Builder addIdListBuilder(
- int index) {
- return getIdListFieldBuilder().addBuilder(
- index, toutiao.dmp.DmpDataProto.IdItem.getDefaultInstance());
- }
- /**
- * <pre>
- * 每行数据包含的idList大小不能超过10000
- * </pre>
- *
- * <code>repeated .toutiao.dmp.IdItem idList = 1;</code>
- */
- public java.util.List<toutiao.dmp.DmpDataProto.IdItem.Builder>
- getIdListBuilderList() {
- return getIdListFieldBuilder().getBuilderList();
- }
- private com.google.protobuf.RepeatedFieldBuilderV3<
- toutiao.dmp.DmpDataProto.IdItem, toutiao.dmp.DmpDataProto.IdItem.Builder, toutiao.dmp.DmpDataProto.IdItemOrBuilder>
- getIdListFieldBuilder() {
- if (idListBuilder_ == null) {
- idListBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
- toutiao.dmp.DmpDataProto.IdItem, toutiao.dmp.DmpDataProto.IdItem.Builder, toutiao.dmp.DmpDataProto.IdItemOrBuilder>(
- idList_,
- ((bitField0_ & 0x00000001) != 0),
- getParentForChildren(),
- isClean());
- idList_ = null;
- }
- return idListBuilder_;
- }
- @java.lang.Override
- public final Builder setUnknownFields(
- final com.google.protobuf.UnknownFieldSet unknownFields) {
- return super.setUnknownFields(unknownFields);
- }
- @java.lang.Override
- public final Builder mergeUnknownFields(
- final com.google.protobuf.UnknownFieldSet unknownFields) {
- return super.mergeUnknownFields(unknownFields);
- }
- // @@protoc_insertion_point(builder_scope:toutiao.dmp.DmpData)
- }
- // @@protoc_insertion_point(class_scope:toutiao.dmp.DmpData)
- private static final toutiao.dmp.DmpDataProto.DmpData DEFAULT_INSTANCE;
- static {
- DEFAULT_INSTANCE = new toutiao.dmp.DmpDataProto.DmpData();
- }
- public static toutiao.dmp.DmpDataProto.DmpData getDefaultInstance() {
- return DEFAULT_INSTANCE;
- }
- @java.lang.Deprecated public static final com.google.protobuf.Parser<DmpData>
- PARSER = new com.google.protobuf.AbstractParser<DmpData>() {
- @java.lang.Override
- public DmpData parsePartialFrom(
- com.google.protobuf.CodedInputStream input,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws com.google.protobuf.InvalidProtocolBufferException {
- Builder builder = newBuilder();
- try {
- builder.mergeFrom(input, extensionRegistry);
- } catch (com.google.protobuf.InvalidProtocolBufferException e) {
- throw e.setUnfinishedMessage(builder.buildPartial());
- } catch (com.google.protobuf.UninitializedMessageException e) {
- throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
- } catch (java.io.IOException e) {
- throw new com.google.protobuf.InvalidProtocolBufferException(e)
- .setUnfinishedMessage(builder.buildPartial());
- }
- return builder.buildPartial();
- }
- };
- public static com.google.protobuf.Parser<DmpData> parser() {
- return PARSER;
- }
- @java.lang.Override
- public com.google.protobuf.Parser<DmpData> getParserForType() {
- return PARSER;
- }
- @java.lang.Override
- public toutiao.dmp.DmpDataProto.DmpData getDefaultInstanceForType() {
- return DEFAULT_INSTANCE;
- }
- }
- public interface IdItemOrBuilder extends
- // @@protoc_insertion_point(interface_extends:toutiao.dmp.IdItem)
- com.google.protobuf.MessageOrBuilder {
- /**
- * <pre>
- *若不设置,默认以上传文件的创建时间为此条记录的创建时间
- * </pre>
- *
- * <code>optional uint32 timestamp = 1;</code>
- * @return Whether the timestamp field is set.
- */
- boolean hasTimestamp();
- /**
- * <pre>
- *若不设置,默认以上传文件的创建时间为此条记录的创建时间
- * </pre>
- *
- * <code>optional uint32 timestamp = 1;</code>
- * @return The timestamp.
- */
- int getTimestamp();
- /**
- * <pre>
- *指定此id的类型,如IMEI、IDFA等
- * </pre>
- *
- * <code>required .toutiao.dmp.IdItem.DataType dataType = 2;</code>
- * @return Whether the dataType field is set.
- */
- boolean hasDataType();
- /**
- * <pre>
- *指定此id的类型,如IMEI、IDFA等
- * </pre>
- *
- * <code>required .toutiao.dmp.IdItem.DataType dataType = 2;</code>
- * @return The dataType.
- */
- toutiao.dmp.DmpDataProto.IdItem.DataType getDataType();
- /**
- * <pre>
- *根据dataType字段的类型,放置对应类型的id的字符串,需要小写
- * </pre>
- *
- * <code>required string id = 3;</code>
- * @return Whether the id field is set.
- */
- boolean hasId();
- /**
- * <pre>
- *根据dataType字段的类型,放置对应类型的id的字符串,需要小写
- * </pre>
- *
- * <code>required string id = 3;</code>
- * @return The id.
- */
- java.lang.String getId();
- /**
- * <pre>
- *根据dataType字段的类型,放置对应类型的id的字符串,需要小写
- * </pre>
- *
- * <code>required string id = 3;</code>
- * @return The bytes for id.
- */
- com.google.protobuf.ByteString
- getIdBytes();
- /**
- * <pre>
- *标识此id的业务标签字符串
- * </pre>
- *
- * <code>repeated string tags = 4;</code>
- * @return A list containing the tags.
- */
- java.util.List<java.lang.String>
- getTagsList();
- /**
- * <pre>
- *标识此id的业务标签字符串
- * </pre>
- *
- * <code>repeated string tags = 4;</code>
- * @return The count of tags.
- */
- int getTagsCount();
- /**
- * <pre>
- *标识此id的业务标签字符串
- * </pre>
- *
- * <code>repeated string tags = 4;</code>
- * @param index The index of the element to return.
- * @return The tags at the given index.
- */
- java.lang.String getTags(int index);
- /**
- * <pre>
- *标识此id的业务标签字符串
- * </pre>
- *
- * <code>repeated string tags = 4;</code>
- * @param index The index of the value to return.
- * @return The bytes of the tags at the given index.
- */
- com.google.protobuf.ByteString
- getTagsBytes(int index);
- }
- /**
- * Protobuf type {@code toutiao.dmp.IdItem}
- */
- public static final class IdItem extends
- com.google.protobuf.GeneratedMessageV3 implements
- // @@protoc_insertion_point(message_implements:toutiao.dmp.IdItem)
- IdItemOrBuilder {
- private static final long serialVersionUID = 0L;
- // Use IdItem.newBuilder() to construct.
- private IdItem(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {
- super(builder);
- }
- private IdItem() {
- dataType_ = 0;
- id_ = "";
- tags_ =
- com.google.protobuf.LazyStringArrayList.emptyList();
- }
- @java.lang.Override
- @SuppressWarnings({"unused"})
- protected java.lang.Object newInstance(
- UnusedPrivateParameter unused) {
- return new IdItem();
- }
- public static final com.google.protobuf.Descriptors.Descriptor
- getDescriptor() {
- return toutiao.dmp.DmpDataProto.internal_static_toutiao_dmp_IdItem_descriptor;
- }
- @java.lang.Override
- protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
- internalGetFieldAccessorTable() {
- return toutiao.dmp.DmpDataProto.internal_static_toutiao_dmp_IdItem_fieldAccessorTable
- .ensureFieldAccessorsInitialized(
- toutiao.dmp.DmpDataProto.IdItem.class, toutiao.dmp.DmpDataProto.IdItem.Builder.class);
- }
- /**
- * Protobuf enum {@code toutiao.dmp.IdItem.DataType}
- */
- public enum DataType
- implements com.google.protobuf.ProtocolMessageEnum {
- /**
- * <pre>
- * 无加密 已经不可用
- * </pre>
- *
- * <code>IMEI = 0;</code>
- */
- IMEI(0),
- /**
- * <pre>
- * 无加密 已经不可用
- * </pre>
- *
- * <code>IDFA = 1;</code>
- */
- IDFA(1),
- /**
- * <pre>
- * 内部账号id 一般是内部数据使用
- * </pre>
- *
- * <code>UID = 2;</code>
- */
- UID(2),
- /**
- * <code>IMEI_MD5 = 4;</code>
- */
- IMEI_MD5(4),
- /**
- * <code>IDFA_MD5 = 5;</code>
- */
- IDFA_MD5(5),
- /**
- * <code>MOBILE_HASH_SHA256 = 6;</code>
- */
- MOBILE_HASH_SHA256(6),
- /**
- * <pre>
- * 无加密 已经不可用
- * </pre>
- *
- * <code>OAID = 7;</code>
- */
- OAID(7),
- /**
- * <code>OAID_MD5 = 8;</code>
- */
- OAID_MD5(8),
- ;
- /**
- * <pre>
- * 无加密 已经不可用
- * </pre>
- *
- * <code>IMEI = 0;</code>
- */
- public static final int IMEI_VALUE = 0;
- /**
- * <pre>
- * 无加密 已经不可用
- * </pre>
- *
- * <code>IDFA = 1;</code>
- */
- public static final int IDFA_VALUE = 1;
- /**
- * <pre>
- * 内部账号id 一般是内部数据使用
- * </pre>
- *
- * <code>UID = 2;</code>
- */
- public static final int UID_VALUE = 2;
- /**
- * <code>IMEI_MD5 = 4;</code>
- */
- public static final int IMEI_MD5_VALUE = 4;
- /**
- * <code>IDFA_MD5 = 5;</code>
- */
- public static final int IDFA_MD5_VALUE = 5;
- /**
- * <code>MOBILE_HASH_SHA256 = 6;</code>
- */
- public static final int MOBILE_HASH_SHA256_VALUE = 6;
- /**
- * <pre>
- * 无加密 已经不可用
- * </pre>
- *
- * <code>OAID = 7;</code>
- */
- public static final int OAID_VALUE = 7;
- /**
- * <code>OAID_MD5 = 8;</code>
- */
- public static final int OAID_MD5_VALUE = 8;
- public final int getNumber() {
- return value;
- }
- /**
- * @param value The numeric wire value of the corresponding enum entry.
- * @return The enum associated with the given numeric wire value.
- * @deprecated Use {@link #forNumber(int)} instead.
- */
- @java.lang.Deprecated
- public static DataType valueOf(int value) {
- return forNumber(value);
- }
- /**
- * @param value The numeric wire value of the corresponding enum entry.
- * @return The enum associated with the given numeric wire value.
- */
- public static DataType forNumber(int value) {
- switch (value) {
- case 0: return IMEI;
- case 1: return IDFA;
- case 2: return UID;
- case 4: return IMEI_MD5;
- case 5: return IDFA_MD5;
- case 6: return MOBILE_HASH_SHA256;
- case 7: return OAID;
- case 8: return OAID_MD5;
- default: return null;
- }
- }
- public static com.google.protobuf.Internal.EnumLiteMap<DataType>
- internalGetValueMap() {
- return internalValueMap;
- }
- private static final com.google.protobuf.Internal.EnumLiteMap<
- DataType> internalValueMap =
- new com.google.protobuf.Internal.EnumLiteMap<DataType>() {
- public DataType findValueByNumber(int number) {
- return DataType.forNumber(number);
- }
- };
- public final com.google.protobuf.Descriptors.EnumValueDescriptor
- getValueDescriptor() {
- return getDescriptor().getValues().get(ordinal());
- }
- public final com.google.protobuf.Descriptors.EnumDescriptor
- getDescriptorForType() {
- return getDescriptor();
- }
- public static final com.google.protobuf.Descriptors.EnumDescriptor
- getDescriptor() {
- return toutiao.dmp.DmpDataProto.IdItem.getDescriptor().getEnumTypes().get(0);
- }
- private static final DataType[] VALUES = values();
- public static DataType valueOf(
- com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
- if (desc.getType() != getDescriptor()) {
- throw new java.lang.IllegalArgumentException(
- "EnumValueDescriptor is not for this type.");
- }
- return VALUES[desc.getIndex()];
- }
- private final int value;
- private DataType(int value) {
- this.value = value;
- }
- // @@protoc_insertion_point(enum_scope:toutiao.dmp.IdItem.DataType)
- }
- private int bitField0_;
- public static final int TIMESTAMP_FIELD_NUMBER = 1;
- private int timestamp_ = 0;
- /**
- * <pre>
- *若不设置,默认以上传文件的创建时间为此条记录的创建时间
- * </pre>
- *
- * <code>optional uint32 timestamp = 1;</code>
- * @return Whether the timestamp field is set.
- */
- @java.lang.Override
- public boolean hasTimestamp() {
- return ((bitField0_ & 0x00000001) != 0);
- }
- /**
- * <pre>
- *若不设置,默认以上传文件的创建时间为此条记录的创建时间
- * </pre>
- *
- * <code>optional uint32 timestamp = 1;</code>
- * @return The timestamp.
- */
- @java.lang.Override
- public int getTimestamp() {
- return timestamp_;
- }
- public static final int DATATYPE_FIELD_NUMBER = 2;
- private int dataType_ = 0;
- /**
- * <pre>
- *指定此id的类型,如IMEI、IDFA等
- * </pre>
- *
- * <code>required .toutiao.dmp.IdItem.DataType dataType = 2;</code>
- * @return Whether the dataType field is set.
- */
- @java.lang.Override public boolean hasDataType() {
- return ((bitField0_ & 0x00000002) != 0);
- }
- /**
- * <pre>
- *指定此id的类型,如IMEI、IDFA等
- * </pre>
- *
- * <code>required .toutiao.dmp.IdItem.DataType dataType = 2;</code>
- * @return The dataType.
- */
- @java.lang.Override public toutiao.dmp.DmpDataProto.IdItem.DataType getDataType() {
- toutiao.dmp.DmpDataProto.IdItem.DataType result = toutiao.dmp.DmpDataProto.IdItem.DataType.forNumber(dataType_);
- return result == null ? toutiao.dmp.DmpDataProto.IdItem.DataType.IMEI : result;
- }
- public static final int ID_FIELD_NUMBER = 3;
- @SuppressWarnings("serial")
- private volatile java.lang.Object id_ = "";
- /**
- * <pre>
- *根据dataType字段的类型,放置对应类型的id的字符串,需要小写
- * </pre>
- *
- * <code>required string id = 3;</code>
- * @return Whether the id field is set.
- */
- @java.lang.Override
- public boolean hasId() {
- return ((bitField0_ & 0x00000004) != 0);
- }
- /**
- * <pre>
- *根据dataType字段的类型,放置对应类型的id的字符串,需要小写
- * </pre>
- *
- * <code>required string id = 3;</code>
- * @return The id.
- */
- @java.lang.Override
- public java.lang.String getId() {
- java.lang.Object ref = id_;
- if (ref instanceof java.lang.String) {
- return (java.lang.String) ref;
- } else {
- com.google.protobuf.ByteString bs =
- (com.google.protobuf.ByteString) ref;
- java.lang.String s = bs.toStringUtf8();
- if (bs.isValidUtf8()) {
- id_ = s;
- }
- return s;
- }
- }
- /**
- * <pre>
- *根据dataType字段的类型,放置对应类型的id的字符串,需要小写
- * </pre>
- *
- * <code>required string id = 3;</code>
- * @return The bytes for id.
- */
- @java.lang.Override
- public com.google.protobuf.ByteString
- getIdBytes() {
- java.lang.Object ref = id_;
- if (ref instanceof java.lang.String) {
- com.google.protobuf.ByteString b =
- com.google.protobuf.ByteString.copyFromUtf8(
- (java.lang.String) ref);
- id_ = b;
- return b;
- } else {
- return (com.google.protobuf.ByteString) ref;
- }
- }
- public static final int TAGS_FIELD_NUMBER = 4;
- @SuppressWarnings("serial")
- private com.google.protobuf.LazyStringArrayList tags_ =
- com.google.protobuf.LazyStringArrayList.emptyList();
- /**
- * <pre>
- *标识此id的业务标签字符串
- * </pre>
- *
- * <code>repeated string tags = 4;</code>
- * @return A list containing the tags.
- */
- public com.google.protobuf.ProtocolStringList
- getTagsList() {
- return tags_;
- }
- /**
- * <pre>
- *标识此id的业务标签字符串
- * </pre>
- *
- * <code>repeated string tags = 4;</code>
- * @return The count of tags.
- */
- public int getTagsCount() {
- return tags_.size();
- }
- /**
- * <pre>
- *标识此id的业务标签字符串
- * </pre>
- *
- * <code>repeated string tags = 4;</code>
- * @param index The index of the element to return.
- * @return The tags at the given index.
- */
- public java.lang.String getTags(int index) {
- return tags_.get(index);
- }
- /**
- * <pre>
- *标识此id的业务标签字符串
- * </pre>
- *
- * <code>repeated string tags = 4;</code>
- * @param index The index of the value to return.
- * @return The bytes of the tags at the given index.
- */
- public com.google.protobuf.ByteString
- getTagsBytes(int index) {
- return tags_.getByteString(index);
- }
- private byte memoizedIsInitialized = -1;
- @java.lang.Override
- public final boolean isInitialized() {
- byte isInitialized = memoizedIsInitialized;
- if (isInitialized == 1) return true;
- if (isInitialized == 0) return false;
- if (!hasDataType()) {
- memoizedIsInitialized = 0;
- return false;
- }
- if (!hasId()) {
- memoizedIsInitialized = 0;
- return false;
- }
- memoizedIsInitialized = 1;
- return true;
- }
- @java.lang.Override
- public void writeTo(com.google.protobuf.CodedOutputStream output)
- throws java.io.IOException {
- if (((bitField0_ & 0x00000001) != 0)) {
- output.writeUInt32(1, timestamp_);
- }
- if (((bitField0_ & 0x00000002) != 0)) {
- output.writeEnum(2, dataType_);
- }
- if (((bitField0_ & 0x00000004) != 0)) {
- com.google.protobuf.GeneratedMessageV3.writeString(output, 3, id_);
- }
- for (int i = 0; i < tags_.size(); i++) {
- com.google.protobuf.GeneratedMessageV3.writeString(output, 4, tags_.getRaw(i));
- }
- getUnknownFields().writeTo(output);
- }
- @java.lang.Override
- public int getSerializedSize() {
- int size = memoizedSize;
- if (size != -1) return size;
- size = 0;
- if (((bitField0_ & 0x00000001) != 0)) {
- size += com.google.protobuf.CodedOutputStream
- .computeUInt32Size(1, timestamp_);
- }
- if (((bitField0_ & 0x00000002) != 0)) {
- size += com.google.protobuf.CodedOutputStream
- .computeEnumSize(2, dataType_);
- }
- if (((bitField0_ & 0x00000004) != 0)) {
- size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, id_);
- }
- {
- int dataSize = 0;
- for (int i = 0; i < tags_.size(); i++) {
- dataSize += computeStringSizeNoTag(tags_.getRaw(i));
- }
- size += dataSize;
- size += 1 * getTagsList().size();
- }
- size += getUnknownFields().getSerializedSize();
- memoizedSize = size;
- return size;
- }
- @java.lang.Override
- public boolean equals(final java.lang.Object obj) {
- if (obj == this) {
- return true;
- }
- if (!(obj instanceof toutiao.dmp.DmpDataProto.IdItem)) {
- return super.equals(obj);
- }
- toutiao.dmp.DmpDataProto.IdItem other = (toutiao.dmp.DmpDataProto.IdItem) obj;
- if (hasTimestamp() != other.hasTimestamp()) return false;
- if (hasTimestamp()) {
- if (getTimestamp()
- != other.getTimestamp()) return false;
- }
- if (hasDataType() != other.hasDataType()) return false;
- if (hasDataType()) {
- if (dataType_ != other.dataType_) return false;
- }
- if (hasId() != other.hasId()) return false;
- if (hasId()) {
- if (!getId()
- .equals(other.getId())) return false;
- }
- if (!getTagsList()
- .equals(other.getTagsList())) return false;
- if (!getUnknownFields().equals(other.getUnknownFields())) return false;
- return true;
- }
- @java.lang.Override
- public int hashCode() {
- if (memoizedHashCode != 0) {
- return memoizedHashCode;
- }
- int hash = 41;
- hash = (19 * hash) + getDescriptor().hashCode();
- if (hasTimestamp()) {
- hash = (37 * hash) + TIMESTAMP_FIELD_NUMBER;
- hash = (53 * hash) + getTimestamp();
- }
- if (hasDataType()) {
- hash = (37 * hash) + DATATYPE_FIELD_NUMBER;
- hash = (53 * hash) + dataType_;
- }
- if (hasId()) {
- hash = (37 * hash) + ID_FIELD_NUMBER;
- hash = (53 * hash) + getId().hashCode();
- }
- if (getTagsCount() > 0) {
- hash = (37 * hash) + TAGS_FIELD_NUMBER;
- hash = (53 * hash) + getTagsList().hashCode();
- }
- hash = (29 * hash) + getUnknownFields().hashCode();
- memoizedHashCode = hash;
- return hash;
- }
- public static toutiao.dmp.DmpDataProto.IdItem parseFrom(
- java.nio.ByteBuffer data)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data);
- }
- public static toutiao.dmp.DmpDataProto.IdItem parseFrom(
- java.nio.ByteBuffer data,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data, extensionRegistry);
- }
- public static toutiao.dmp.DmpDataProto.IdItem parseFrom(
- com.google.protobuf.ByteString data)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data);
- }
- public static toutiao.dmp.DmpDataProto.IdItem parseFrom(
- com.google.protobuf.ByteString data,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data, extensionRegistry);
- }
- public static toutiao.dmp.DmpDataProto.IdItem parseFrom(byte[] data)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data);
- }
- public static toutiao.dmp.DmpDataProto.IdItem parseFrom(
- byte[] data,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data, extensionRegistry);
- }
- public static toutiao.dmp.DmpDataProto.IdItem parseFrom(java.io.InputStream input)
- throws java.io.IOException {
- return com.google.protobuf.GeneratedMessageV3
- .parseWithIOException(PARSER, input);
- }
- public static toutiao.dmp.DmpDataProto.IdItem parseFrom(
- java.io.InputStream input,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws java.io.IOException {
- return com.google.protobuf.GeneratedMessageV3
- .parseWithIOException(PARSER, input, extensionRegistry);
- }
- public static toutiao.dmp.DmpDataProto.IdItem parseDelimitedFrom(java.io.InputStream input)
- throws java.io.IOException {
- return com.google.protobuf.GeneratedMessageV3
- .parseDelimitedWithIOException(PARSER, input);
- }
- public static toutiao.dmp.DmpDataProto.IdItem parseDelimitedFrom(
- java.io.InputStream input,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws java.io.IOException {
- return com.google.protobuf.GeneratedMessageV3
- .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
- }
- public static toutiao.dmp.DmpDataProto.IdItem parseFrom(
- com.google.protobuf.CodedInputStream input)
- throws java.io.IOException {
- return com.google.protobuf.GeneratedMessageV3
- .parseWithIOException(PARSER, input);
- }
- public static toutiao.dmp.DmpDataProto.IdItem parseFrom(
- com.google.protobuf.CodedInputStream input,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws java.io.IOException {
- return com.google.protobuf.GeneratedMessageV3
- .parseWithIOException(PARSER, input, extensionRegistry);
- }
- @java.lang.Override
- public Builder newBuilderForType() { return newBuilder(); }
- public static Builder newBuilder() {
- return DEFAULT_INSTANCE.toBuilder();
- }
- public static Builder newBuilder(toutiao.dmp.DmpDataProto.IdItem prototype) {
- return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
- }
- @java.lang.Override
- public Builder toBuilder() {
- return this == DEFAULT_INSTANCE
- ? new Builder() : new Builder().mergeFrom(this);
- }
- @java.lang.Override
- protected Builder newBuilderForType(
- com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
- Builder builder = new Builder(parent);
- return builder;
- }
- /**
- * Protobuf type {@code toutiao.dmp.IdItem}
- */
- public static final class Builder extends
- com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements
- // @@protoc_insertion_point(builder_implements:toutiao.dmp.IdItem)
- toutiao.dmp.DmpDataProto.IdItemOrBuilder {
- public static final com.google.protobuf.Descriptors.Descriptor
- getDescriptor() {
- return toutiao.dmp.DmpDataProto.internal_static_toutiao_dmp_IdItem_descriptor;
- }
- @java.lang.Override
- protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
- internalGetFieldAccessorTable() {
- return toutiao.dmp.DmpDataProto.internal_static_toutiao_dmp_IdItem_fieldAccessorTable
- .ensureFieldAccessorsInitialized(
- toutiao.dmp.DmpDataProto.IdItem.class, toutiao.dmp.DmpDataProto.IdItem.Builder.class);
- }
- // Construct using toutiao.dmp.DmpDataProto.IdItem.newBuilder()
- private Builder() {
- }
- private Builder(
- com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
- super(parent);
- }
- @java.lang.Override
- public Builder clear() {
- super.clear();
- bitField0_ = 0;
- timestamp_ = 0;
- dataType_ = 0;
- id_ = "";
- tags_ =
- com.google.protobuf.LazyStringArrayList.emptyList();
- return this;
- }
- @java.lang.Override
- public com.google.protobuf.Descriptors.Descriptor
- getDescriptorForType() {
- return toutiao.dmp.DmpDataProto.internal_static_toutiao_dmp_IdItem_descriptor;
- }
- @java.lang.Override
- public toutiao.dmp.DmpDataProto.IdItem getDefaultInstanceForType() {
- return toutiao.dmp.DmpDataProto.IdItem.getDefaultInstance();
- }
- @java.lang.Override
- public toutiao.dmp.DmpDataProto.IdItem build() {
- toutiao.dmp.DmpDataProto.IdItem result = buildPartial();
- if (!result.isInitialized()) {
- throw newUninitializedMessageException(result);
- }
- return result;
- }
- @java.lang.Override
- public toutiao.dmp.DmpDataProto.IdItem buildPartial() {
- toutiao.dmp.DmpDataProto.IdItem result = new toutiao.dmp.DmpDataProto.IdItem(this);
- if (bitField0_ != 0) { buildPartial0(result); }
- onBuilt();
- return result;
- }
- private void buildPartial0(toutiao.dmp.DmpDataProto.IdItem result) {
- int from_bitField0_ = bitField0_;
- int to_bitField0_ = 0;
- if (((from_bitField0_ & 0x00000001) != 0)) {
- result.timestamp_ = timestamp_;
- to_bitField0_ |= 0x00000001;
- }
- if (((from_bitField0_ & 0x00000002) != 0)) {
- result.dataType_ = dataType_;
- to_bitField0_ |= 0x00000002;
- }
- if (((from_bitField0_ & 0x00000004) != 0)) {
- result.id_ = id_;
- to_bitField0_ |= 0x00000004;
- }
- if (((from_bitField0_ & 0x00000008) != 0)) {
- tags_.makeImmutable();
- result.tags_ = tags_;
- }
- result.bitField0_ |= to_bitField0_;
- }
- @java.lang.Override
- public Builder clone() {
- return super.clone();
- }
- @java.lang.Override
- public Builder setField(
- com.google.protobuf.Descriptors.FieldDescriptor field,
- java.lang.Object value) {
- return super.setField(field, value);
- }
- @java.lang.Override
- public Builder clearField(
- com.google.protobuf.Descriptors.FieldDescriptor field) {
- return super.clearField(field);
- }
- @java.lang.Override
- public Builder clearOneof(
- com.google.protobuf.Descriptors.OneofDescriptor oneof) {
- return super.clearOneof(oneof);
- }
- @java.lang.Override
- public Builder setRepeatedField(
- com.google.protobuf.Descriptors.FieldDescriptor field,
- int index, java.lang.Object value) {
- return super.setRepeatedField(field, index, value);
- }
- @java.lang.Override
- public Builder addRepeatedField(
- com.google.protobuf.Descriptors.FieldDescriptor field,
- java.lang.Object value) {
- return super.addRepeatedField(field, value);
- }
- @java.lang.Override
- public Builder mergeFrom(com.google.protobuf.Message other) {
- if (other instanceof toutiao.dmp.DmpDataProto.IdItem) {
- return mergeFrom((toutiao.dmp.DmpDataProto.IdItem)other);
- } else {
- super.mergeFrom(other);
- return this;
- }
- }
- public Builder mergeFrom(toutiao.dmp.DmpDataProto.IdItem other) {
- if (other == toutiao.dmp.DmpDataProto.IdItem.getDefaultInstance()) return this;
- if (other.hasTimestamp()) {
- setTimestamp(other.getTimestamp());
- }
- if (other.hasDataType()) {
- setDataType(other.getDataType());
- }
- if (other.hasId()) {
- id_ = other.id_;
- bitField0_ |= 0x00000004;
- onChanged();
- }
- if (!other.tags_.isEmpty()) {
- if (tags_.isEmpty()) {
- tags_ = other.tags_;
- bitField0_ |= 0x00000008;
- } else {
- ensureTagsIsMutable();
- tags_.addAll(other.tags_);
- }
- onChanged();
- }
- this.mergeUnknownFields(other.getUnknownFields());
- onChanged();
- return this;
- }
- @java.lang.Override
- public final boolean isInitialized() {
- if (!hasDataType()) {
- return false;
- }
- if (!hasId()) {
- return false;
- }
- return true;
- }
- @java.lang.Override
- public Builder mergeFrom(
- com.google.protobuf.CodedInputStream input,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws java.io.IOException {
- if (extensionRegistry == null) {
- throw new java.lang.NullPointerException();
- }
- try {
- boolean done = false;
- while (!done) {
- int tag = input.readTag();
- switch (tag) {
- case 0:
- done = true;
- break;
- case 8: {
- timestamp_ = input.readUInt32();
- bitField0_ |= 0x00000001;
- break;
- } // case 8
- case 16: {
- int tmpRaw = input.readEnum();
- toutiao.dmp.DmpDataProto.IdItem.DataType tmpValue =
- toutiao.dmp.DmpDataProto.IdItem.DataType.forNumber(tmpRaw);
- if (tmpValue == null) {
- mergeUnknownVarintField(2, tmpRaw);
- } else {
- dataType_ = tmpRaw;
- bitField0_ |= 0x00000002;
- }
- break;
- } // case 16
- case 26: {
- id_ = input.readBytes();
- bitField0_ |= 0x00000004;
- break;
- } // case 26
- case 34: {
- com.google.protobuf.ByteString bs = input.readBytes();
- ensureTagsIsMutable();
- tags_.add(bs);
- break;
- } // case 34
- default: {
- if (!super.parseUnknownField(input, extensionRegistry, tag)) {
- done = true; // was an endgroup tag
- }
- break;
- } // default:
- } // switch (tag)
- } // while (!done)
- } catch (com.google.protobuf.InvalidProtocolBufferException e) {
- throw e.unwrapIOException();
- } finally {
- onChanged();
- } // finally
- return this;
- }
- private int bitField0_;
- private int timestamp_ ;
- /**
- * <pre>
- *若不设置,默认以上传文件的创建时间为此条记录的创建时间
- * </pre>
- *
- * <code>optional uint32 timestamp = 1;</code>
- * @return Whether the timestamp field is set.
- */
- @java.lang.Override
- public boolean hasTimestamp() {
- return ((bitField0_ & 0x00000001) != 0);
- }
- /**
- * <pre>
- *若不设置,默认以上传文件的创建时间为此条记录的创建时间
- * </pre>
- *
- * <code>optional uint32 timestamp = 1;</code>
- * @return The timestamp.
- */
- @java.lang.Override
- public int getTimestamp() {
- return timestamp_;
- }
- /**
- * <pre>
- *若不设置,默认以上传文件的创建时间为此条记录的创建时间
- * </pre>
- *
- * <code>optional uint32 timestamp = 1;</code>
- * @param value The timestamp to set.
- * @return This builder for chaining.
- */
- public Builder setTimestamp(int value) {
- timestamp_ = value;
- bitField0_ |= 0x00000001;
- onChanged();
- return this;
- }
- /**
- * <pre>
- *若不设置,默认以上传文件的创建时间为此条记录的创建时间
- * </pre>
- *
- * <code>optional uint32 timestamp = 1;</code>
- * @return This builder for chaining.
- */
- public Builder clearTimestamp() {
- bitField0_ = (bitField0_ & ~0x00000001);
- timestamp_ = 0;
- onChanged();
- return this;
- }
- private int dataType_ = 0;
- /**
- * <pre>
- *指定此id的类型,如IMEI、IDFA等
- * </pre>
- *
- * <code>required .toutiao.dmp.IdItem.DataType dataType = 2;</code>
- * @return Whether the dataType field is set.
- */
- @java.lang.Override public boolean hasDataType() {
- return ((bitField0_ & 0x00000002) != 0);
- }
- /**
- * <pre>
- *指定此id的类型,如IMEI、IDFA等
- * </pre>
- *
- * <code>required .toutiao.dmp.IdItem.DataType dataType = 2;</code>
- * @return The dataType.
- */
- @java.lang.Override
- public toutiao.dmp.DmpDataProto.IdItem.DataType getDataType() {
- toutiao.dmp.DmpDataProto.IdItem.DataType result = toutiao.dmp.DmpDataProto.IdItem.DataType.forNumber(dataType_);
- return result == null ? toutiao.dmp.DmpDataProto.IdItem.DataType.IMEI : result;
- }
- /**
- * <pre>
- *指定此id的类型,如IMEI、IDFA等
- * </pre>
- *
- * <code>required .toutiao.dmp.IdItem.DataType dataType = 2;</code>
- * @param value The dataType to set.
- * @return This builder for chaining.
- */
- public Builder setDataType(toutiao.dmp.DmpDataProto.IdItem.DataType value) {
- if (value == null) {
- throw new NullPointerException();
- }
- bitField0_ |= 0x00000002;
- dataType_ = value.getNumber();
- onChanged();
- return this;
- }
- /**
- * <pre>
- *指定此id的类型,如IMEI、IDFA等
- * </pre>
- *
- * <code>required .toutiao.dmp.IdItem.DataType dataType = 2;</code>
- * @return This builder for chaining.
- */
- public Builder clearDataType() {
- bitField0_ = (bitField0_ & ~0x00000002);
- dataType_ = 0;
- onChanged();
- return this;
- }
- private java.lang.Object id_ = "";
- /**
- * <pre>
- *根据dataType字段的类型,放置对应类型的id的字符串,需要小写
- * </pre>
- *
- * <code>required string id = 3;</code>
- * @return Whether the id field is set.
- */
- public boolean hasId() {
- return ((bitField0_ & 0x00000004) != 0);
- }
- /**
- * <pre>
- *根据dataType字段的类型,放置对应类型的id的字符串,需要小写
- * </pre>
- *
- * <code>required string id = 3;</code>
- * @return The id.
- */
- public java.lang.String getId() {
- java.lang.Object ref = id_;
- if (!(ref instanceof java.lang.String)) {
- com.google.protobuf.ByteString bs =
- (com.google.protobuf.ByteString) ref;
- java.lang.String s = bs.toStringUtf8();
- if (bs.isValidUtf8()) {
- id_ = s;
- }
- return s;
- } else {
- return (java.lang.String) ref;
- }
- }
- /**
- * <pre>
- *根据dataType字段的类型,放置对应类型的id的字符串,需要小写
- * </pre>
- *
- * <code>required string id = 3;</code>
- * @return The bytes for id.
- */
- public com.google.protobuf.ByteString
- getIdBytes() {
- java.lang.Object ref = id_;
- if (ref instanceof String) {
- com.google.protobuf.ByteString b =
- com.google.protobuf.ByteString.copyFromUtf8(
- (java.lang.String) ref);
- id_ = b;
- return b;
- } else {
- return (com.google.protobuf.ByteString) ref;
- }
- }
- /**
- * <pre>
- *根据dataType字段的类型,放置对应类型的id的字符串,需要小写
- * </pre>
- *
- * <code>required string id = 3;</code>
- * @param value The id to set.
- * @return This builder for chaining.
- */
- public Builder setId(
- java.lang.String value) {
- if (value == null) { throw new NullPointerException(); }
- id_ = value;
- bitField0_ |= 0x00000004;
- onChanged();
- return this;
- }
- /**
- * <pre>
- *根据dataType字段的类型,放置对应类型的id的字符串,需要小写
- * </pre>
- *
- * <code>required string id = 3;</code>
- * @return This builder for chaining.
- */
- public Builder clearId() {
- id_ = getDefaultInstance().getId();
- bitField0_ = (bitField0_ & ~0x00000004);
- onChanged();
- return this;
- }
- /**
- * <pre>
- *根据dataType字段的类型,放置对应类型的id的字符串,需要小写
- * </pre>
- *
- * <code>required string id = 3;</code>
- * @param value The bytes for id to set.
- * @return This builder for chaining.
- */
- public Builder setIdBytes(
- com.google.protobuf.ByteString value) {
- if (value == null) { throw new NullPointerException(); }
- id_ = value;
- bitField0_ |= 0x00000004;
- onChanged();
- return this;
- }
- private com.google.protobuf.LazyStringArrayList tags_ =
- com.google.protobuf.LazyStringArrayList.emptyList();
- private void ensureTagsIsMutable() {
- if (!tags_.isModifiable()) {
- tags_ = new com.google.protobuf.LazyStringArrayList(tags_);
- }
- bitField0_ |= 0x00000008;
- }
- /**
- * <pre>
- *标识此id的业务标签字符串
- * </pre>
- *
- * <code>repeated string tags = 4;</code>
- * @return A list containing the tags.
- */
- public com.google.protobuf.ProtocolStringList
- getTagsList() {
- tags_.makeImmutable();
- return tags_;
- }
- /**
- * <pre>
- *标识此id的业务标签字符串
- * </pre>
- *
- * <code>repeated string tags = 4;</code>
- * @return The count of tags.
- */
- public int getTagsCount() {
- return tags_.size();
- }
- /**
- * <pre>
- *标识此id的业务标签字符串
- * </pre>
- *
- * <code>repeated string tags = 4;</code>
- * @param index The index of the element to return.
- * @return The tags at the given index.
- */
- public java.lang.String getTags(int index) {
- return tags_.get(index);
- }
- /**
- * <pre>
- *标识此id的业务标签字符串
- * </pre>
- *
- * <code>repeated string tags = 4;</code>
- * @param index The index of the value to return.
- * @return The bytes of the tags at the given index.
- */
- public com.google.protobuf.ByteString
- getTagsBytes(int index) {
- return tags_.getByteString(index);
- }
- /**
- * <pre>
- *标识此id的业务标签字符串
- * </pre>
- *
- * <code>repeated string tags = 4;</code>
- * @param index The index to set the value at.
- * @param value The tags to set.
- * @return This builder for chaining.
- */
- public Builder setTags(
- int index, java.lang.String value) {
- if (value == null) { throw new NullPointerException(); }
- ensureTagsIsMutable();
- tags_.set(index, value);
- bitField0_ |= 0x00000008;
- onChanged();
- return this;
- }
- /**
- * <pre>
- *标识此id的业务标签字符串
- * </pre>
- *
- * <code>repeated string tags = 4;</code>
- * @param value The tags to add.
- * @return This builder for chaining.
- */
- public Builder addTags(
- java.lang.String value) {
- if (value == null) { throw new NullPointerException(); }
- ensureTagsIsMutable();
- tags_.add(value);
- bitField0_ |= 0x00000008;
- onChanged();
- return this;
- }
- /**
- * <pre>
- *标识此id的业务标签字符串
- * </pre>
- *
- * <code>repeated string tags = 4;</code>
- * @param values The tags to add.
- * @return This builder for chaining.
- */
- public Builder addAllTags(
- java.lang.Iterable<java.lang.String> values) {
- ensureTagsIsMutable();
- com.google.protobuf.AbstractMessageLite.Builder.addAll(
- values, tags_);
- bitField0_ |= 0x00000008;
- onChanged();
- return this;
- }
- /**
- * <pre>
- *标识此id的业务标签字符串
- * </pre>
- *
- * <code>repeated string tags = 4;</code>
- * @return This builder for chaining.
- */
- public Builder clearTags() {
- tags_ =
- com.google.protobuf.LazyStringArrayList.emptyList();
- bitField0_ = (bitField0_ & ~0x00000008);;
- onChanged();
- return this;
- }
- /**
- * <pre>
- *标识此id的业务标签字符串
- * </pre>
- *
- * <code>repeated string tags = 4;</code>
- * @param value The bytes of the tags to add.
- * @return This builder for chaining.
- */
- public Builder addTagsBytes(
- com.google.protobuf.ByteString value) {
- if (value == null) { throw new NullPointerException(); }
- ensureTagsIsMutable();
- tags_.add(value);
- bitField0_ |= 0x00000008;
- onChanged();
- return this;
- }
- @java.lang.Override
- public final Builder setUnknownFields(
- final com.google.protobuf.UnknownFieldSet unknownFields) {
- return super.setUnknownFields(unknownFields);
- }
- @java.lang.Override
- public final Builder mergeUnknownFields(
- final com.google.protobuf.UnknownFieldSet unknownFields) {
- return super.mergeUnknownFields(unknownFields);
- }
- // @@protoc_insertion_point(builder_scope:toutiao.dmp.IdItem)
- }
- // @@protoc_insertion_point(class_scope:toutiao.dmp.IdItem)
- private static final toutiao.dmp.DmpDataProto.IdItem DEFAULT_INSTANCE;
- static {
- DEFAULT_INSTANCE = new toutiao.dmp.DmpDataProto.IdItem();
- }
- public static toutiao.dmp.DmpDataProto.IdItem getDefaultInstance() {
- return DEFAULT_INSTANCE;
- }
- @java.lang.Deprecated public static final com.google.protobuf.Parser<IdItem>
- PARSER = new com.google.protobuf.AbstractParser<IdItem>() {
- @java.lang.Override
- public IdItem parsePartialFrom(
- com.google.protobuf.CodedInputStream input,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws com.google.protobuf.InvalidProtocolBufferException {
- Builder builder = newBuilder();
- try {
- builder.mergeFrom(input, extensionRegistry);
- } catch (com.google.protobuf.InvalidProtocolBufferException e) {
- throw e.setUnfinishedMessage(builder.buildPartial());
- } catch (com.google.protobuf.UninitializedMessageException e) {
- throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
- } catch (java.io.IOException e) {
- throw new com.google.protobuf.InvalidProtocolBufferException(e)
- .setUnfinishedMessage(builder.buildPartial());
- }
- return builder.buildPartial();
- }
- };
- public static com.google.protobuf.Parser<IdItem> parser() {
- return PARSER;
- }
- @java.lang.Override
- public com.google.protobuf.Parser<IdItem> getParserForType() {
- return PARSER;
- }
- @java.lang.Override
- public toutiao.dmp.DmpDataProto.IdItem getDefaultInstanceForType() {
- return DEFAULT_INSTANCE;
- }
- }
- private static final com.google.protobuf.Descriptors.Descriptor
- internal_static_toutiao_dmp_DmpData_descriptor;
- private static final
- com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
- internal_static_toutiao_dmp_DmpData_fieldAccessorTable;
- private static final com.google.protobuf.Descriptors.Descriptor
- internal_static_toutiao_dmp_IdItem_descriptor;
- private static final
- com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
- internal_static_toutiao_dmp_IdItem_fieldAccessorTable;
- public static com.google.protobuf.Descriptors.FileDescriptor
- getDescriptor() {
- return descriptor;
- }
- private static com.google.protobuf.Descriptors.FileDescriptor
- descriptor;
- static {
- java.lang.String[] descriptorData = {
- "\n\021dmp_message.proto\022\013toutiao.dmp\".\n\007DmpD" +
- "ata\022#\n\006idList\030\001 \003(\0132\023.toutiao.dmp.IdItem" +
- "\"\332\001\n\006IdItem\022\021\n\ttimestamp\030\001 \001(\r\022.\n\010dataTy" +
- "pe\030\002 \002(\0162\034.toutiao.dmp.IdItem.DataType\022\n" +
- "\n\002id\030\003 \002(\t\022\014\n\004tags\030\004 \003(\t\"s\n\010DataType\022\010\n\004" +
- "IMEI\020\000\022\010\n\004IDFA\020\001\022\007\n\003UID\020\002\022\014\n\010IMEI_MD5\020\004\022" +
- "\014\n\010IDFA_MD5\020\005\022\026\n\022MOBILE_HASH_SHA256\020\006\022\010\n" +
- "\004OAID\020\007\022\014\n\010OAID_MD5\020\010B\016B\014DmpDataProto"
- };
- descriptor = com.google.protobuf.Descriptors.FileDescriptor
- .internalBuildGeneratedFileFrom(descriptorData,
- new com.google.protobuf.Descriptors.FileDescriptor[] {
- });
- internal_static_toutiao_dmp_DmpData_descriptor =
- getDescriptor().getMessageTypes().get(0);
- internal_static_toutiao_dmp_DmpData_fieldAccessorTable = new
- com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
- internal_static_toutiao_dmp_DmpData_descriptor,
- new java.lang.String[] { "IdList", });
- internal_static_toutiao_dmp_IdItem_descriptor =
- getDescriptor().getMessageTypes().get(1);
- internal_static_toutiao_dmp_IdItem_fieldAccessorTable = new
- com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
- internal_static_toutiao_dmp_IdItem_descriptor,
- new java.lang.String[] { "Timestamp", "DataType", "Id", "Tags", });
- }
- // @@protoc_insertion_point(outer_class_scope)
- }
|