// 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 { /** *
* 每行数据包含的idList大小不能超过10000
*
*
* repeated .toutiao.dmp.IdItem idList = 1;
*/
java.util.List
* 每行数据包含的idList大小不能超过10000
*
*
* repeated .toutiao.dmp.IdItem idList = 1;
*/
toutiao.dmp.DmpDataProto.IdItem getIdList(int index);
/**
*
* 每行数据包含的idList大小不能超过10000
*
*
* repeated .toutiao.dmp.IdItem idList = 1;
*/
int getIdListCount();
/**
*
* 每行数据包含的idList大小不能超过10000
*
*
* repeated .toutiao.dmp.IdItem idList = 1;
*/
java.util.List extends toutiao.dmp.DmpDataProto.IdItemOrBuilder>
getIdListOrBuilderList();
/**
*
* 每行数据包含的idList大小不能超过10000
*
*
* repeated .toutiao.dmp.IdItem idList = 1;
*/
toutiao.dmp.DmpDataProto.IdItemOrBuilder getIdListOrBuilder(
int index);
}
/**
* *上传文件每行一个base64编码的字符串,每个字符串包含一个完整的DmpData消息二进制字节串 ** * 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
* 每行数据包含的idList大小不能超过10000
*
*
* repeated .toutiao.dmp.IdItem idList = 1;
*/
@java.lang.Override
public java.util.List
* 每行数据包含的idList大小不能超过10000
*
*
* repeated .toutiao.dmp.IdItem idList = 1;
*/
@java.lang.Override
public java.util.List extends toutiao.dmp.DmpDataProto.IdItemOrBuilder>
getIdListOrBuilderList() {
return idList_;
}
/**
*
* 每行数据包含的idList大小不能超过10000
*
*
* repeated .toutiao.dmp.IdItem idList = 1;
*/
@java.lang.Override
public int getIdListCount() {
return idList_.size();
}
/**
*
* 每行数据包含的idList大小不能超过10000
*
*
* repeated .toutiao.dmp.IdItem idList = 1;
*/
@java.lang.Override
public toutiao.dmp.DmpDataProto.IdItem getIdList(int index) {
return idList_.get(index);
}
/**
*
* 每行数据包含的idList大小不能超过10000
*
*
* repeated .toutiao.dmp.IdItem idList = 1;
*/
@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;
}
/**
*
*上传文件每行一个base64编码的字符串,每个字符串包含一个完整的DmpData消息二进制字节串
*
*
* Protobuf type {@code toutiao.dmp.DmpData}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder
* 每行数据包含的idList大小不能超过10000
*
*
* repeated .toutiao.dmp.IdItem idList = 1;
*/
public java.util.List
* 每行数据包含的idList大小不能超过10000
*
*
* repeated .toutiao.dmp.IdItem idList = 1;
*/
public int getIdListCount() {
if (idListBuilder_ == null) {
return idList_.size();
} else {
return idListBuilder_.getCount();
}
}
/**
*
* 每行数据包含的idList大小不能超过10000
*
*
* repeated .toutiao.dmp.IdItem idList = 1;
*/
public toutiao.dmp.DmpDataProto.IdItem getIdList(int index) {
if (idListBuilder_ == null) {
return idList_.get(index);
} else {
return idListBuilder_.getMessage(index);
}
}
/**
*
* 每行数据包含的idList大小不能超过10000
*
*
* repeated .toutiao.dmp.IdItem idList = 1;
*/
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;
}
/**
*
* 每行数据包含的idList大小不能超过10000
*
*
* repeated .toutiao.dmp.IdItem idList = 1;
*/
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;
}
/**
*
* 每行数据包含的idList大小不能超过10000
*
*
* repeated .toutiao.dmp.IdItem idList = 1;
*/
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;
}
/**
*
* 每行数据包含的idList大小不能超过10000
*
*
* repeated .toutiao.dmp.IdItem idList = 1;
*/
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;
}
/**
*
* 每行数据包含的idList大小不能超过10000
*
*
* repeated .toutiao.dmp.IdItem idList = 1;
*/
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;
}
/**
*
* 每行数据包含的idList大小不能超过10000
*
*
* repeated .toutiao.dmp.IdItem idList = 1;
*/
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;
}
/**
*
* 每行数据包含的idList大小不能超过10000
*
*
* repeated .toutiao.dmp.IdItem idList = 1;
*/
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;
}
/**
*
* 每行数据包含的idList大小不能超过10000
*
*
* repeated .toutiao.dmp.IdItem idList = 1;
*/
public Builder clearIdList() {
if (idListBuilder_ == null) {
idList_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000001);
onChanged();
} else {
idListBuilder_.clear();
}
return this;
}
/**
*
* 每行数据包含的idList大小不能超过10000
*
*
* repeated .toutiao.dmp.IdItem idList = 1;
*/
public Builder removeIdList(int index) {
if (idListBuilder_ == null) {
ensureIdListIsMutable();
idList_.remove(index);
onChanged();
} else {
idListBuilder_.remove(index);
}
return this;
}
/**
*
* 每行数据包含的idList大小不能超过10000
*
*
* repeated .toutiao.dmp.IdItem idList = 1;
*/
public toutiao.dmp.DmpDataProto.IdItem.Builder getIdListBuilder(
int index) {
return getIdListFieldBuilder().getBuilder(index);
}
/**
*
* 每行数据包含的idList大小不能超过10000
*
*
* repeated .toutiao.dmp.IdItem idList = 1;
*/
public toutiao.dmp.DmpDataProto.IdItemOrBuilder getIdListOrBuilder(
int index) {
if (idListBuilder_ == null) {
return idList_.get(index); } else {
return idListBuilder_.getMessageOrBuilder(index);
}
}
/**
*
* 每行数据包含的idList大小不能超过10000
*
*
* repeated .toutiao.dmp.IdItem idList = 1;
*/
public java.util.List extends toutiao.dmp.DmpDataProto.IdItemOrBuilder>
getIdListOrBuilderList() {
if (idListBuilder_ != null) {
return idListBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(idList_);
}
}
/**
*
* 每行数据包含的idList大小不能超过10000
*
*
* repeated .toutiao.dmp.IdItem idList = 1;
*/
public toutiao.dmp.DmpDataProto.IdItem.Builder addIdListBuilder() {
return getIdListFieldBuilder().addBuilder(
toutiao.dmp.DmpDataProto.IdItem.getDefaultInstance());
}
/**
*
* 每行数据包含的idList大小不能超过10000
*
*
* repeated .toutiao.dmp.IdItem idList = 1;
*/
public toutiao.dmp.DmpDataProto.IdItem.Builder addIdListBuilder(
int index) {
return getIdListFieldBuilder().addBuilder(
index, toutiao.dmp.DmpDataProto.IdItem.getDefaultInstance());
}
/**
*
* 每行数据包含的idList大小不能超过10000
*
*
* repeated .toutiao.dmp.IdItem idList = 1;
*/
public java.util.List
*若不设置,默认以上传文件的创建时间为此条记录的创建时间
*
*
* optional uint32 timestamp = 1;
* @return Whether the timestamp field is set.
*/
boolean hasTimestamp();
/**
*
*若不设置,默认以上传文件的创建时间为此条记录的创建时间
*
*
* optional uint32 timestamp = 1;
* @return The timestamp.
*/
int getTimestamp();
/**
*
*指定此id的类型,如IMEI、IDFA等
*
*
* required .toutiao.dmp.IdItem.DataType dataType = 2;
* @return Whether the dataType field is set.
*/
boolean hasDataType();
/**
*
*指定此id的类型,如IMEI、IDFA等
*
*
* required .toutiao.dmp.IdItem.DataType dataType = 2;
* @return The dataType.
*/
toutiao.dmp.DmpDataProto.IdItem.DataType getDataType();
/**
*
*根据dataType字段的类型,放置对应类型的id的字符串,需要小写
*
*
* required string id = 3;
* @return Whether the id field is set.
*/
boolean hasId();
/**
*
*根据dataType字段的类型,放置对应类型的id的字符串,需要小写
*
*
* required string id = 3;
* @return The id.
*/
java.lang.String getId();
/**
*
*根据dataType字段的类型,放置对应类型的id的字符串,需要小写
*
*
* required string id = 3;
* @return The bytes for id.
*/
com.google.protobuf.ByteString
getIdBytes();
/**
*
*标识此id的业务标签字符串
*
*
* repeated string tags = 4;
* @return A list containing the tags.
*/
java.util.List
*标识此id的业务标签字符串
*
*
* repeated string tags = 4;
* @return The count of tags.
*/
int getTagsCount();
/**
*
*标识此id的业务标签字符串
*
*
* repeated string tags = 4;
* @param index The index of the element to return.
* @return The tags at the given index.
*/
java.lang.String getTags(int index);
/**
*
*标识此id的业务标签字符串
*
*
* repeated string tags = 4;
* @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 {
/**
*
* 无加密 已经不可用
*
*
* IMEI = 0;
*/
IMEI(0),
/**
*
* 无加密 已经不可用
*
*
* IDFA = 1;
*/
IDFA(1),
/**
*
* 内部账号id 一般是内部数据使用
*
*
* UID = 2;
*/
UID(2),
/**
* IMEI_MD5 = 4;
*/
IMEI_MD5(4),
/**
* IDFA_MD5 = 5;
*/
IDFA_MD5(5),
/**
* MOBILE_HASH_SHA256 = 6;
*/
MOBILE_HASH_SHA256(6),
/**
*
* 无加密 已经不可用
*
*
* OAID = 7;
*/
OAID(7),
/**
* OAID_MD5 = 8;
*/
OAID_MD5(8),
;
/**
*
* 无加密 已经不可用
*
*
* IMEI = 0;
*/
public static final int IMEI_VALUE = 0;
/**
*
* 无加密 已经不可用
*
*
* IDFA = 1;
*/
public static final int IDFA_VALUE = 1;
/**
*
* 内部账号id 一般是内部数据使用
*
*
* UID = 2;
*/
public static final int UID_VALUE = 2;
/**
* IMEI_MD5 = 4;
*/
public static final int IMEI_MD5_VALUE = 4;
/**
* IDFA_MD5 = 5;
*/
public static final int IDFA_MD5_VALUE = 5;
/**
* MOBILE_HASH_SHA256 = 6;
*/
public static final int MOBILE_HASH_SHA256_VALUE = 6;
/**
*
* 无加密 已经不可用
*
*
* OAID = 7;
*/
public static final int OAID_VALUE = 7;
/**
* OAID_MD5 = 8;
*/
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
*若不设置,默认以上传文件的创建时间为此条记录的创建时间
*
*
* optional uint32 timestamp = 1;
* @return Whether the timestamp field is set.
*/
@java.lang.Override
public boolean hasTimestamp() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
*
*若不设置,默认以上传文件的创建时间为此条记录的创建时间
*
*
* optional uint32 timestamp = 1;
* @return The timestamp.
*/
@java.lang.Override
public int getTimestamp() {
return timestamp_;
}
public static final int DATATYPE_FIELD_NUMBER = 2;
private int dataType_ = 0;
/**
*
*指定此id的类型,如IMEI、IDFA等
*
*
* required .toutiao.dmp.IdItem.DataType dataType = 2;
* @return Whether the dataType field is set.
*/
@java.lang.Override public boolean hasDataType() {
return ((bitField0_ & 0x00000002) != 0);
}
/**
*
*指定此id的类型,如IMEI、IDFA等
*
*
* required .toutiao.dmp.IdItem.DataType dataType = 2;
* @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_ = "";
/**
*
*根据dataType字段的类型,放置对应类型的id的字符串,需要小写
*
*
* required string id = 3;
* @return Whether the id field is set.
*/
@java.lang.Override
public boolean hasId() {
return ((bitField0_ & 0x00000004) != 0);
}
/**
*
*根据dataType字段的类型,放置对应类型的id的字符串,需要小写
*
*
* required string id = 3;
* @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;
}
}
/**
*
*根据dataType字段的类型,放置对应类型的id的字符串,需要小写
*
*
* required string id = 3;
* @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();
/**
*
*标识此id的业务标签字符串
*
*
* repeated string tags = 4;
* @return A list containing the tags.
*/
public com.google.protobuf.ProtocolStringList
getTagsList() {
return tags_;
}
/**
*
*标识此id的业务标签字符串
*
*
* repeated string tags = 4;
* @return The count of tags.
*/
public int getTagsCount() {
return tags_.size();
}
/**
*
*标识此id的业务标签字符串
*
*
* repeated string tags = 4;
* @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);
}
/**
*
*标识此id的业务标签字符串
*
*
* repeated string tags = 4;
* @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
*若不设置,默认以上传文件的创建时间为此条记录的创建时间
*
*
* optional uint32 timestamp = 1;
* @return Whether the timestamp field is set.
*/
@java.lang.Override
public boolean hasTimestamp() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
*
*若不设置,默认以上传文件的创建时间为此条记录的创建时间
*
*
* optional uint32 timestamp = 1;
* @return The timestamp.
*/
@java.lang.Override
public int getTimestamp() {
return timestamp_;
}
/**
*
*若不设置,默认以上传文件的创建时间为此条记录的创建时间
*
*
* optional uint32 timestamp = 1;
* @param value The timestamp to set.
* @return This builder for chaining.
*/
public Builder setTimestamp(int value) {
timestamp_ = value;
bitField0_ |= 0x00000001;
onChanged();
return this;
}
/**
*
*若不设置,默认以上传文件的创建时间为此条记录的创建时间
*
*
* optional uint32 timestamp = 1;
* @return This builder for chaining.
*/
public Builder clearTimestamp() {
bitField0_ = (bitField0_ & ~0x00000001);
timestamp_ = 0;
onChanged();
return this;
}
private int dataType_ = 0;
/**
*
*指定此id的类型,如IMEI、IDFA等
*
*
* required .toutiao.dmp.IdItem.DataType dataType = 2;
* @return Whether the dataType field is set.
*/
@java.lang.Override public boolean hasDataType() {
return ((bitField0_ & 0x00000002) != 0);
}
/**
*
*指定此id的类型,如IMEI、IDFA等
*
*
* required .toutiao.dmp.IdItem.DataType dataType = 2;
* @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;
}
/**
*
*指定此id的类型,如IMEI、IDFA等
*
*
* required .toutiao.dmp.IdItem.DataType dataType = 2;
* @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;
}
/**
*
*指定此id的类型,如IMEI、IDFA等
*
*
* required .toutiao.dmp.IdItem.DataType dataType = 2;
* @return This builder for chaining.
*/
public Builder clearDataType() {
bitField0_ = (bitField0_ & ~0x00000002);
dataType_ = 0;
onChanged();
return this;
}
private java.lang.Object id_ = "";
/**
*
*根据dataType字段的类型,放置对应类型的id的字符串,需要小写
*
*
* required string id = 3;
* @return Whether the id field is set.
*/
public boolean hasId() {
return ((bitField0_ & 0x00000004) != 0);
}
/**
*
*根据dataType字段的类型,放置对应类型的id的字符串,需要小写
*
*
* required string id = 3;
* @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;
}
}
/**
*
*根据dataType字段的类型,放置对应类型的id的字符串,需要小写
*
*
* required string id = 3;
* @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;
}
}
/**
*
*根据dataType字段的类型,放置对应类型的id的字符串,需要小写
*
*
* required string id = 3;
* @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;
}
/**
*
*根据dataType字段的类型,放置对应类型的id的字符串,需要小写
*
*
* required string id = 3;
* @return This builder for chaining.
*/
public Builder clearId() {
id_ = getDefaultInstance().getId();
bitField0_ = (bitField0_ & ~0x00000004);
onChanged();
return this;
}
/**
*
*根据dataType字段的类型,放置对应类型的id的字符串,需要小写
*
*
* required string id = 3;
* @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;
}
/**
*
*标识此id的业务标签字符串
*
*
* repeated string tags = 4;
* @return A list containing the tags.
*/
public com.google.protobuf.ProtocolStringList
getTagsList() {
tags_.makeImmutable();
return tags_;
}
/**
*
*标识此id的业务标签字符串
*
*
* repeated string tags = 4;
* @return The count of tags.
*/
public int getTagsCount() {
return tags_.size();
}
/**
*
*标识此id的业务标签字符串
*
*
* repeated string tags = 4;
* @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);
}
/**
*
*标识此id的业务标签字符串
*
*
* repeated string tags = 4;
* @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);
}
/**
*
*标识此id的业务标签字符串
*
*
* repeated string tags = 4;
* @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;
}
/**
*
*标识此id的业务标签字符串
*
*
* repeated string tags = 4;
* @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;
}
/**
*
*标识此id的业务标签字符串
*
*
* repeated string tags = 4;
* @param values The tags to add.
* @return This builder for chaining.
*/
public Builder addAllTags(
java.lang.Iterable
*标识此id的业务标签字符串
*
*
* repeated string tags = 4;
* @return This builder for chaining.
*/
public Builder clearTags() {
tags_ =
com.google.protobuf.LazyStringArrayList.emptyList();
bitField0_ = (bitField0_ & ~0x00000008);;
onChanged();
return this;
}
/**
*
*标识此id的业务标签字符串
*
*
* repeated string tags = 4;
* @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