// Generated by the protocol buffer compiler. DO NOT EDIT! // source: core/push.proto package com.akaxin.proto.core; public final class PushProto { private PushProto() {} public static void registerAllExtensions( com.google.protobuf.ExtensionRegistryLite registry) { } public static void registerAllExtensions( com.google.protobuf.ExtensionRegistry registry) { registerAllExtensions( (com.google.protobuf.ExtensionRegistryLite) registry); } /** * Protobuf enum {@code core.PushType} */ public enum PushType implements com.google.protobuf.ProtocolMessageEnum { /** *
*系统通知 ** *
PUSH_NOTICE = 0;
*/
PUSH_NOTICE(0),
/**
* PUSH_MSG_STATUS = 1;
*/
PUSH_MSG_STATUS(1),
/**
* *这个不是废弃了么? ** *
PUSH_MSG_FINISH = 2;
*/
PUSH_MSG_FINISH(2),
/**
* PUSH_TEXT = 3;
*/
PUSH_TEXT(3),
/**
* PUSH_SECRET_TEXT = 4;
*/
PUSH_SECRET_TEXT(4),
/**
* PUSH_GROUP_TEXT = 5;
*/
PUSH_GROUP_TEXT(5),
/**
* PUSH_GROUP_SECRET_TEXT = 6;
*/
PUSH_GROUP_SECRET_TEXT(6),
/**
* PUSH_IMAGE = 7;
*/
PUSH_IMAGE(7),
/**
* PUSH_SECRET_IMAGE = 8;
*/
PUSH_SECRET_IMAGE(8),
/**
* PUSH_GROUP_IMAGE = 9;
*/
PUSH_GROUP_IMAGE(9),
/**
* PUSH_GROUP_SECRET_IMAGE = 10;
*/
PUSH_GROUP_SECRET_IMAGE(10),
/**
* PUSH_VOICE = 11;
*/
PUSH_VOICE(11),
/**
* PUSH_SECRET_VOICE = 12;
*/
PUSH_SECRET_VOICE(12),
/**
* PUSH_GROUP_VOICE = 13;
*/
PUSH_GROUP_VOICE(13),
/**
* PUSH_GROUP_SECRET_VOICE = 14;
*/
PUSH_GROUP_SECRET_VOICE(14),
/**
* PUSH_MAP = 15;
*/
PUSH_MAP(15),
/**
* PUSH_SECRET_MAP = 16;
*/
PUSH_SECRET_MAP(16),
/**
* PUSH_GROUP_MAP = 17;
*/
PUSH_GROUP_MAP(17),
/**
* PUSH_GROUP_SECRET_MAP = 18;
*/
PUSH_GROUP_SECRET_MAP(18),
/**
* *二人消息中的通知消息 ** *
PUSH_U2_NOTICE = 19;
*/
PUSH_U2_NOTICE(19),
/**
* *群消息中的通知消息 ** *
PUSH_GROUP_NOTICE = 20;
*/
PUSH_GROUP_NOTICE(20),
/**
* *申请添加好友通知 ** *
PUSH_APPLY_FRIEND_NOTICE = 100;
*/
PUSH_APPLY_FRIEND_NOTICE(100),
UNRECOGNIZED(-1),
;
/**
* *系统通知 ** *
PUSH_NOTICE = 0;
*/
public static final int PUSH_NOTICE_VALUE = 0;
/**
* PUSH_MSG_STATUS = 1;
*/
public static final int PUSH_MSG_STATUS_VALUE = 1;
/**
* *这个不是废弃了么? ** *
PUSH_MSG_FINISH = 2;
*/
public static final int PUSH_MSG_FINISH_VALUE = 2;
/**
* PUSH_TEXT = 3;
*/
public static final int PUSH_TEXT_VALUE = 3;
/**
* PUSH_SECRET_TEXT = 4;
*/
public static final int PUSH_SECRET_TEXT_VALUE = 4;
/**
* PUSH_GROUP_TEXT = 5;
*/
public static final int PUSH_GROUP_TEXT_VALUE = 5;
/**
* PUSH_GROUP_SECRET_TEXT = 6;
*/
public static final int PUSH_GROUP_SECRET_TEXT_VALUE = 6;
/**
* PUSH_IMAGE = 7;
*/
public static final int PUSH_IMAGE_VALUE = 7;
/**
* PUSH_SECRET_IMAGE = 8;
*/
public static final int PUSH_SECRET_IMAGE_VALUE = 8;
/**
* PUSH_GROUP_IMAGE = 9;
*/
public static final int PUSH_GROUP_IMAGE_VALUE = 9;
/**
* PUSH_GROUP_SECRET_IMAGE = 10;
*/
public static final int PUSH_GROUP_SECRET_IMAGE_VALUE = 10;
/**
* PUSH_VOICE = 11;
*/
public static final int PUSH_VOICE_VALUE = 11;
/**
* PUSH_SECRET_VOICE = 12;
*/
public static final int PUSH_SECRET_VOICE_VALUE = 12;
/**
* PUSH_GROUP_VOICE = 13;
*/
public static final int PUSH_GROUP_VOICE_VALUE = 13;
/**
* PUSH_GROUP_SECRET_VOICE = 14;
*/
public static final int PUSH_GROUP_SECRET_VOICE_VALUE = 14;
/**
* PUSH_MAP = 15;
*/
public static final int PUSH_MAP_VALUE = 15;
/**
* PUSH_SECRET_MAP = 16;
*/
public static final int PUSH_SECRET_MAP_VALUE = 16;
/**
* PUSH_GROUP_MAP = 17;
*/
public static final int PUSH_GROUP_MAP_VALUE = 17;
/**
* PUSH_GROUP_SECRET_MAP = 18;
*/
public static final int PUSH_GROUP_SECRET_MAP_VALUE = 18;
/**
* *二人消息中的通知消息 ** *
PUSH_U2_NOTICE = 19;
*/
public static final int PUSH_U2_NOTICE_VALUE = 19;
/**
* *群消息中的通知消息 ** *
PUSH_GROUP_NOTICE = 20;
*/
public static final int PUSH_GROUP_NOTICE_VALUE = 20;
/**
* *申请添加好友通知 ** *
PUSH_APPLY_FRIEND_NOTICE = 100;
*/
public static final int PUSH_APPLY_FRIEND_NOTICE_VALUE = 100;
public final int getNumber() {
if (this == UNRECOGNIZED) {
throw new java.lang.IllegalArgumentException(
"Can't get the number of an unknown enum value.");
}
return value;
}
/**
* @deprecated Use {@link #forNumber(int)} instead.
*/
@java.lang.Deprecated
public static PushType valueOf(int value) {
return forNumber(value);
}
public static PushType forNumber(int value) {
switch (value) {
case 0: return PUSH_NOTICE;
case 1: return PUSH_MSG_STATUS;
case 2: return PUSH_MSG_FINISH;
case 3: return PUSH_TEXT;
case 4: return PUSH_SECRET_TEXT;
case 5: return PUSH_GROUP_TEXT;
case 6: return PUSH_GROUP_SECRET_TEXT;
case 7: return PUSH_IMAGE;
case 8: return PUSH_SECRET_IMAGE;
case 9: return PUSH_GROUP_IMAGE;
case 10: return PUSH_GROUP_SECRET_IMAGE;
case 11: return PUSH_VOICE;
case 12: return PUSH_SECRET_VOICE;
case 13: return PUSH_GROUP_VOICE;
case 14: return PUSH_GROUP_SECRET_VOICE;
case 15: return PUSH_MAP;
case 16: return PUSH_SECRET_MAP;
case 17: return PUSH_GROUP_MAP;
case 18: return PUSH_GROUP_SECRET_MAP;
case 19: return PUSH_U2_NOTICE;
case 20: return PUSH_GROUP_NOTICE;
case 100: return PUSH_APPLY_FRIEND_NOTICE;
default: return null;
}
}
public static com.google.protobuf.Internal.EnumLiteMap*站点服务地址eg->127.0.0.1:2021 ** *
string site_server = 1;
*/
java.lang.String getSiteServer();
/**
* *站点服务地址eg->127.0.0.1:2021 ** *
string site_server = 1;
*/
com.google.protobuf.ByteString
getSiteServerBytes();
/**
* *站点服务名称 ** *
string push_title = 2;
*/
java.lang.String getPushTitle();
/**
* *站点服务名称 ** *
string push_title = 2;
*/
com.google.protobuf.ByteString
getPushTitleBytes();
/**
* *展示的内容 ** *
string push_alert = 3;
*/
java.lang.String getPushAlert();
/**
* *展示的内容 ** *
string push_alert = 3;
*/
com.google.protobuf.ByteString
getPushAlertBytes();
/**
* *Push跳转位置 ** *
string push_goto = 4;
*/
java.lang.String getPushGoto();
/**
* *Push跳转位置 ** *
string push_goto = 4;
*/
com.google.protobuf.ByteString
getPushGotoBytes();
/**
* *气泡展示个数,默认气泡数1 ** *
int32 push_badge = 5;
*/
int getPushBadge();
/**
* *声音 ** *
string push_sound = 6;
*/
java.lang.String getPushSound();
/**
* *声音 ** *
string push_sound = 6;
*/
com.google.protobuf.ByteString
getPushSoundBytes();
/**
* *用户id,这个地方需要使用Global User ID ** *
string user_id = 7;
*/
java.lang.String getUserId();
/**
* *用户id,这个地方需要使用Global User ID ** *
string user_id = 7;
*/
com.google.protobuf.ByteString
getUserIdBytes();
/**
* *接受者用户的token,给一个人发送使用 ** *
string user_token = 8;
*/
java.lang.String getUserToken();
/**
* *接受者用户的token,给一个人发送使用 ** *
string user_token = 8;
*/
com.google.protobuf.ByteString
getUserTokenBytes();
/**
* *push消息发送者或者群ID,这里使用站点siteUserId或者groupId ** *
string push_from_id = 9;
*/
java.lang.String getPushFromId();
/**
* *push消息发送者或者群ID,这里使用站点siteUserId或者groupId ** *
string push_from_id = 9;
*/
com.google.protobuf.ByteString
getPushFromIdBytes();
/**
* *发送着用户名称或者群名称 ** *
string push_from_name = 10;
*/
java.lang.String getPushFromName();
/**
* *发送着用户名称或者群名称 ** *
string push_from_name = 10;
*/
com.google.protobuf.ByteString
getPushFromNameBytes();
/**
* *接受者用户的tokens,给多人发送使用 ** *
repeated string user_tokens = 11;
*/
java.util.List*接受者用户的tokens,给多人发送使用 ** *
repeated string user_tokens = 11;
*/
int getUserTokensCount();
/**
* *接受者用户的tokens,给多人发送使用 ** *
repeated string user_tokens = 11;
*/
java.lang.String getUserTokens(int index);
/**
* *接受者用户的tokens,给多人发送使用 ** *
repeated string user_tokens = 11;
*/
com.google.protobuf.ByteString
getUserTokensBytes(int index);
}
/**
* *最简单的用户信息,用于给别人呈现 ** * Protobuf type {@code core.Notification} */ public static final class Notification extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:core.Notification) NotificationOrBuilder { private static final long serialVersionUID = 0L; // Use Notification.newBuilder() to construct. private Notification(com.google.protobuf.GeneratedMessageV3.Builder> builder) { super(builder); } private Notification() { siteServer_ = ""; pushTitle_ = ""; pushAlert_ = ""; pushGoto_ = ""; pushBadge_ = 0; pushSound_ = ""; userId_ = ""; userToken_ = ""; pushFromId_ = ""; pushFromName_ = ""; userTokens_ = com.google.protobuf.LazyStringArrayList.EMPTY; } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private Notification( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; default: { if (!parseUnknownFieldProto3( input, unknownFields, extensionRegistry, tag)) { done = true; } break; } case 10: { java.lang.String s = input.readStringRequireUtf8(); siteServer_ = s; break; } case 18: { java.lang.String s = input.readStringRequireUtf8(); pushTitle_ = s; break; } case 26: { java.lang.String s = input.readStringRequireUtf8(); pushAlert_ = s; break; } case 34: { java.lang.String s = input.readStringRequireUtf8(); pushGoto_ = s; break; } case 40: { pushBadge_ = input.readInt32(); break; } case 50: { java.lang.String s = input.readStringRequireUtf8(); pushSound_ = s; break; } case 58: { java.lang.String s = input.readStringRequireUtf8(); userId_ = s; break; } case 66: { java.lang.String s = input.readStringRequireUtf8(); userToken_ = s; break; } case 74: { java.lang.String s = input.readStringRequireUtf8(); pushFromId_ = s; break; } case 82: { java.lang.String s = input.readStringRequireUtf8(); pushFromName_ = s; break; } case 90: { java.lang.String s = input.readStringRequireUtf8(); if (!((mutable_bitField0_ & 0x00000400) == 0x00000400)) { userTokens_ = new com.google.protobuf.LazyStringArrayList(); mutable_bitField0_ |= 0x00000400; } userTokens_.add(s); break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000400) == 0x00000400)) { userTokens_ = userTokens_.getUnmodifiableView(); } this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.akaxin.proto.core.PushProto.internal_static_core_Notification_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.akaxin.proto.core.PushProto.internal_static_core_Notification_fieldAccessorTable .ensureFieldAccessorsInitialized( com.akaxin.proto.core.PushProto.Notification.class, com.akaxin.proto.core.PushProto.Notification.Builder.class); } private int bitField0_; public static final int SITE_SERVER_FIELD_NUMBER = 1; private volatile java.lang.Object siteServer_; /** *
*站点服务地址eg->127.0.0.1:2021 ** *
string site_server = 1;
*/
public java.lang.String getSiteServer() {
java.lang.Object ref = siteServer_;
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();
siteServer_ = s;
return s;
}
}
/**
* *站点服务地址eg->127.0.0.1:2021 ** *
string site_server = 1;
*/
public com.google.protobuf.ByteString
getSiteServerBytes() {
java.lang.Object ref = siteServer_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
siteServer_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int PUSH_TITLE_FIELD_NUMBER = 2;
private volatile java.lang.Object pushTitle_;
/**
* *站点服务名称 ** *
string push_title = 2;
*/
public java.lang.String getPushTitle() {
java.lang.Object ref = pushTitle_;
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();
pushTitle_ = s;
return s;
}
}
/**
* *站点服务名称 ** *
string push_title = 2;
*/
public com.google.protobuf.ByteString
getPushTitleBytes() {
java.lang.Object ref = pushTitle_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
pushTitle_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int PUSH_ALERT_FIELD_NUMBER = 3;
private volatile java.lang.Object pushAlert_;
/**
* *展示的内容 ** *
string push_alert = 3;
*/
public java.lang.String getPushAlert() {
java.lang.Object ref = pushAlert_;
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();
pushAlert_ = s;
return s;
}
}
/**
* *展示的内容 ** *
string push_alert = 3;
*/
public com.google.protobuf.ByteString
getPushAlertBytes() {
java.lang.Object ref = pushAlert_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
pushAlert_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int PUSH_GOTO_FIELD_NUMBER = 4;
private volatile java.lang.Object pushGoto_;
/**
* *Push跳转位置 ** *
string push_goto = 4;
*/
public java.lang.String getPushGoto() {
java.lang.Object ref = pushGoto_;
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();
pushGoto_ = s;
return s;
}
}
/**
* *Push跳转位置 ** *
string push_goto = 4;
*/
public com.google.protobuf.ByteString
getPushGotoBytes() {
java.lang.Object ref = pushGoto_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
pushGoto_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int PUSH_BADGE_FIELD_NUMBER = 5;
private int pushBadge_;
/**
* *气泡展示个数,默认气泡数1 ** *
int32 push_badge = 5;
*/
public int getPushBadge() {
return pushBadge_;
}
public static final int PUSH_SOUND_FIELD_NUMBER = 6;
private volatile java.lang.Object pushSound_;
/**
* *声音 ** *
string push_sound = 6;
*/
public java.lang.String getPushSound() {
java.lang.Object ref = pushSound_;
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();
pushSound_ = s;
return s;
}
}
/**
* *声音 ** *
string push_sound = 6;
*/
public com.google.protobuf.ByteString
getPushSoundBytes() {
java.lang.Object ref = pushSound_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
pushSound_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int USER_ID_FIELD_NUMBER = 7;
private volatile java.lang.Object userId_;
/**
* *用户id,这个地方需要使用Global User ID ** *
string user_id = 7;
*/
public java.lang.String getUserId() {
java.lang.Object ref = userId_;
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();
userId_ = s;
return s;
}
}
/**
* *用户id,这个地方需要使用Global User ID ** *
string user_id = 7;
*/
public com.google.protobuf.ByteString
getUserIdBytes() {
java.lang.Object ref = userId_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
userId_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int USER_TOKEN_FIELD_NUMBER = 8;
private volatile java.lang.Object userToken_;
/**
* *接受者用户的token,给一个人发送使用 ** *
string user_token = 8;
*/
public java.lang.String getUserToken() {
java.lang.Object ref = userToken_;
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();
userToken_ = s;
return s;
}
}
/**
* *接受者用户的token,给一个人发送使用 ** *
string user_token = 8;
*/
public com.google.protobuf.ByteString
getUserTokenBytes() {
java.lang.Object ref = userToken_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
userToken_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int PUSH_FROM_ID_FIELD_NUMBER = 9;
private volatile java.lang.Object pushFromId_;
/**
* *push消息发送者或者群ID,这里使用站点siteUserId或者groupId ** *
string push_from_id = 9;
*/
public java.lang.String getPushFromId() {
java.lang.Object ref = pushFromId_;
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();
pushFromId_ = s;
return s;
}
}
/**
* *push消息发送者或者群ID,这里使用站点siteUserId或者groupId ** *
string push_from_id = 9;
*/
public com.google.protobuf.ByteString
getPushFromIdBytes() {
java.lang.Object ref = pushFromId_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
pushFromId_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int PUSH_FROM_NAME_FIELD_NUMBER = 10;
private volatile java.lang.Object pushFromName_;
/**
* *发送着用户名称或者群名称 ** *
string push_from_name = 10;
*/
public java.lang.String getPushFromName() {
java.lang.Object ref = pushFromName_;
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();
pushFromName_ = s;
return s;
}
}
/**
* *发送着用户名称或者群名称 ** *
string push_from_name = 10;
*/
public com.google.protobuf.ByteString
getPushFromNameBytes() {
java.lang.Object ref = pushFromName_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
pushFromName_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int USER_TOKENS_FIELD_NUMBER = 11;
private com.google.protobuf.LazyStringList userTokens_;
/**
* *接受者用户的tokens,给多人发送使用 ** *
repeated string user_tokens = 11;
*/
public com.google.protobuf.ProtocolStringList
getUserTokensList() {
return userTokens_;
}
/**
* *接受者用户的tokens,给多人发送使用 ** *
repeated string user_tokens = 11;
*/
public int getUserTokensCount() {
return userTokens_.size();
}
/**
* *接受者用户的tokens,给多人发送使用 ** *
repeated string user_tokens = 11;
*/
public java.lang.String getUserTokens(int index) {
return userTokens_.get(index);
}
/**
* *接受者用户的tokens,给多人发送使用 ** *
repeated string user_tokens = 11;
*/
public com.google.protobuf.ByteString
getUserTokensBytes(int index) {
return userTokens_.getByteString(index);
}
private byte memoizedIsInitialized = -1;
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
if (!getSiteServerBytes().isEmpty()) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, siteServer_);
}
if (!getPushTitleBytes().isEmpty()) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 2, pushTitle_);
}
if (!getPushAlertBytes().isEmpty()) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 3, pushAlert_);
}
if (!getPushGotoBytes().isEmpty()) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 4, pushGoto_);
}
if (pushBadge_ != 0) {
output.writeInt32(5, pushBadge_);
}
if (!getPushSoundBytes().isEmpty()) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 6, pushSound_);
}
if (!getUserIdBytes().isEmpty()) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 7, userId_);
}
if (!getUserTokenBytes().isEmpty()) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 8, userToken_);
}
if (!getPushFromIdBytes().isEmpty()) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 9, pushFromId_);
}
if (!getPushFromNameBytes().isEmpty()) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 10, pushFromName_);
}
for (int i = 0; i < userTokens_.size(); i++) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 11, userTokens_.getRaw(i));
}
unknownFields.writeTo(output);
}
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (!getSiteServerBytes().isEmpty()) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, siteServer_);
}
if (!getPushTitleBytes().isEmpty()) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, pushTitle_);
}
if (!getPushAlertBytes().isEmpty()) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, pushAlert_);
}
if (!getPushGotoBytes().isEmpty()) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, pushGoto_);
}
if (pushBadge_ != 0) {
size += com.google.protobuf.CodedOutputStream
.computeInt32Size(5, pushBadge_);
}
if (!getPushSoundBytes().isEmpty()) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, pushSound_);
}
if (!getUserIdBytes().isEmpty()) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(7, userId_);
}
if (!getUserTokenBytes().isEmpty()) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(8, userToken_);
}
if (!getPushFromIdBytes().isEmpty()) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(9, pushFromId_);
}
if (!getPushFromNameBytes().isEmpty()) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(10, pushFromName_);
}
{
int dataSize = 0;
for (int i = 0; i < userTokens_.size(); i++) {
dataSize += computeStringSizeNoTag(userTokens_.getRaw(i));
}
size += dataSize;
size += 1 * getUserTokensList().size();
}
size += unknownFields.getSerializedSize();
memoizedSize = size;
return size;
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof com.akaxin.proto.core.PushProto.Notification)) {
return super.equals(obj);
}
com.akaxin.proto.core.PushProto.Notification other = (com.akaxin.proto.core.PushProto.Notification) obj;
boolean result = true;
result = result && getSiteServer()
.equals(other.getSiteServer());
result = result && getPushTitle()
.equals(other.getPushTitle());
result = result && getPushAlert()
.equals(other.getPushAlert());
result = result && getPushGoto()
.equals(other.getPushGoto());
result = result && (getPushBadge()
== other.getPushBadge());
result = result && getPushSound()
.equals(other.getPushSound());
result = result && getUserId()
.equals(other.getUserId());
result = result && getUserToken()
.equals(other.getUserToken());
result = result && getPushFromId()
.equals(other.getPushFromId());
result = result && getPushFromName()
.equals(other.getPushFromName());
result = result && getUserTokensList()
.equals(other.getUserTokensList());
result = result && unknownFields.equals(other.unknownFields);
return result;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
hash = (37 * hash) + SITE_SERVER_FIELD_NUMBER;
hash = (53 * hash) + getSiteServer().hashCode();
hash = (37 * hash) + PUSH_TITLE_FIELD_NUMBER;
hash = (53 * hash) + getPushTitle().hashCode();
hash = (37 * hash) + PUSH_ALERT_FIELD_NUMBER;
hash = (53 * hash) + getPushAlert().hashCode();
hash = (37 * hash) + PUSH_GOTO_FIELD_NUMBER;
hash = (53 * hash) + getPushGoto().hashCode();
hash = (37 * hash) + PUSH_BADGE_FIELD_NUMBER;
hash = (53 * hash) + getPushBadge();
hash = (37 * hash) + PUSH_SOUND_FIELD_NUMBER;
hash = (53 * hash) + getPushSound().hashCode();
hash = (37 * hash) + USER_ID_FIELD_NUMBER;
hash = (53 * hash) + getUserId().hashCode();
hash = (37 * hash) + USER_TOKEN_FIELD_NUMBER;
hash = (53 * hash) + getUserToken().hashCode();
hash = (37 * hash) + PUSH_FROM_ID_FIELD_NUMBER;
hash = (53 * hash) + getPushFromId().hashCode();
hash = (37 * hash) + PUSH_FROM_NAME_FIELD_NUMBER;
hash = (53 * hash) + getPushFromName().hashCode();
if (getUserTokensCount() > 0) {
hash = (37 * hash) + USER_TOKENS_FIELD_NUMBER;
hash = (53 * hash) + getUserTokensList().hashCode();
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static com.akaxin.proto.core.PushProto.Notification parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.akaxin.proto.core.PushProto.Notification parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.akaxin.proto.core.PushProto.Notification parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.akaxin.proto.core.PushProto.Notification parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.akaxin.proto.core.PushProto.Notification parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.akaxin.proto.core.PushProto.Notification parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.akaxin.proto.core.PushProto.Notification parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.akaxin.proto.core.PushProto.Notification 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 com.akaxin.proto.core.PushProto.Notification parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static com.akaxin.proto.core.PushProto.Notification 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 com.akaxin.proto.core.PushProto.Notification parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.akaxin.proto.core.PushProto.Notification parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
public static Builder newBuilder(com.akaxin.proto.core.PushProto.Notification prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
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 core.Notification} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
*站点服务地址eg->127.0.0.1:2021 ** *
string site_server = 1;
*/
public java.lang.String getSiteServer() {
java.lang.Object ref = siteServer_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
siteServer_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* *站点服务地址eg->127.0.0.1:2021 ** *
string site_server = 1;
*/
public com.google.protobuf.ByteString
getSiteServerBytes() {
java.lang.Object ref = siteServer_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
siteServer_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* *站点服务地址eg->127.0.0.1:2021 ** *
string site_server = 1;
*/
public Builder setSiteServer(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
siteServer_ = value;
onChanged();
return this;
}
/**
* *站点服务地址eg->127.0.0.1:2021 ** *
string site_server = 1;
*/
public Builder clearSiteServer() {
siteServer_ = getDefaultInstance().getSiteServer();
onChanged();
return this;
}
/**
* *站点服务地址eg->127.0.0.1:2021 ** *
string site_server = 1;
*/
public Builder setSiteServerBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
siteServer_ = value;
onChanged();
return this;
}
private java.lang.Object pushTitle_ = "";
/**
* *站点服务名称 ** *
string push_title = 2;
*/
public java.lang.String getPushTitle() {
java.lang.Object ref = pushTitle_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
pushTitle_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* *站点服务名称 ** *
string push_title = 2;
*/
public com.google.protobuf.ByteString
getPushTitleBytes() {
java.lang.Object ref = pushTitle_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
pushTitle_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* *站点服务名称 ** *
string push_title = 2;
*/
public Builder setPushTitle(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
pushTitle_ = value;
onChanged();
return this;
}
/**
* *站点服务名称 ** *
string push_title = 2;
*/
public Builder clearPushTitle() {
pushTitle_ = getDefaultInstance().getPushTitle();
onChanged();
return this;
}
/**
* *站点服务名称 ** *
string push_title = 2;
*/
public Builder setPushTitleBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
pushTitle_ = value;
onChanged();
return this;
}
private java.lang.Object pushAlert_ = "";
/**
* *展示的内容 ** *
string push_alert = 3;
*/
public java.lang.String getPushAlert() {
java.lang.Object ref = pushAlert_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
pushAlert_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* *展示的内容 ** *
string push_alert = 3;
*/
public com.google.protobuf.ByteString
getPushAlertBytes() {
java.lang.Object ref = pushAlert_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
pushAlert_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* *展示的内容 ** *
string push_alert = 3;
*/
public Builder setPushAlert(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
pushAlert_ = value;
onChanged();
return this;
}
/**
* *展示的内容 ** *
string push_alert = 3;
*/
public Builder clearPushAlert() {
pushAlert_ = getDefaultInstance().getPushAlert();
onChanged();
return this;
}
/**
* *展示的内容 ** *
string push_alert = 3;
*/
public Builder setPushAlertBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
pushAlert_ = value;
onChanged();
return this;
}
private java.lang.Object pushGoto_ = "";
/**
* *Push跳转位置 ** *
string push_goto = 4;
*/
public java.lang.String getPushGoto() {
java.lang.Object ref = pushGoto_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
pushGoto_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* *Push跳转位置 ** *
string push_goto = 4;
*/
public com.google.protobuf.ByteString
getPushGotoBytes() {
java.lang.Object ref = pushGoto_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
pushGoto_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* *Push跳转位置 ** *
string push_goto = 4;
*/
public Builder setPushGoto(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
pushGoto_ = value;
onChanged();
return this;
}
/**
* *Push跳转位置 ** *
string push_goto = 4;
*/
public Builder clearPushGoto() {
pushGoto_ = getDefaultInstance().getPushGoto();
onChanged();
return this;
}
/**
* *Push跳转位置 ** *
string push_goto = 4;
*/
public Builder setPushGotoBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
pushGoto_ = value;
onChanged();
return this;
}
private int pushBadge_ ;
/**
* *气泡展示个数,默认气泡数1 ** *
int32 push_badge = 5;
*/
public int getPushBadge() {
return pushBadge_;
}
/**
* *气泡展示个数,默认气泡数1 ** *
int32 push_badge = 5;
*/
public Builder setPushBadge(int value) {
pushBadge_ = value;
onChanged();
return this;
}
/**
* *气泡展示个数,默认气泡数1 ** *
int32 push_badge = 5;
*/
public Builder clearPushBadge() {
pushBadge_ = 0;
onChanged();
return this;
}
private java.lang.Object pushSound_ = "";
/**
* *声音 ** *
string push_sound = 6;
*/
public java.lang.String getPushSound() {
java.lang.Object ref = pushSound_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
pushSound_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* *声音 ** *
string push_sound = 6;
*/
public com.google.protobuf.ByteString
getPushSoundBytes() {
java.lang.Object ref = pushSound_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
pushSound_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* *声音 ** *
string push_sound = 6;
*/
public Builder setPushSound(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
pushSound_ = value;
onChanged();
return this;
}
/**
* *声音 ** *
string push_sound = 6;
*/
public Builder clearPushSound() {
pushSound_ = getDefaultInstance().getPushSound();
onChanged();
return this;
}
/**
* *声音 ** *
string push_sound = 6;
*/
public Builder setPushSoundBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
pushSound_ = value;
onChanged();
return this;
}
private java.lang.Object userId_ = "";
/**
* *用户id,这个地方需要使用Global User ID ** *
string user_id = 7;
*/
public java.lang.String getUserId() {
java.lang.Object ref = userId_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
userId_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* *用户id,这个地方需要使用Global User ID ** *
string user_id = 7;
*/
public com.google.protobuf.ByteString
getUserIdBytes() {
java.lang.Object ref = userId_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
userId_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* *用户id,这个地方需要使用Global User ID ** *
string user_id = 7;
*/
public Builder setUserId(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
userId_ = value;
onChanged();
return this;
}
/**
* *用户id,这个地方需要使用Global User ID ** *
string user_id = 7;
*/
public Builder clearUserId() {
userId_ = getDefaultInstance().getUserId();
onChanged();
return this;
}
/**
* *用户id,这个地方需要使用Global User ID ** *
string user_id = 7;
*/
public Builder setUserIdBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
userId_ = value;
onChanged();
return this;
}
private java.lang.Object userToken_ = "";
/**
* *接受者用户的token,给一个人发送使用 ** *
string user_token = 8;
*/
public java.lang.String getUserToken() {
java.lang.Object ref = userToken_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
userToken_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* *接受者用户的token,给一个人发送使用 ** *
string user_token = 8;
*/
public com.google.protobuf.ByteString
getUserTokenBytes() {
java.lang.Object ref = userToken_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
userToken_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* *接受者用户的token,给一个人发送使用 ** *
string user_token = 8;
*/
public Builder setUserToken(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
userToken_ = value;
onChanged();
return this;
}
/**
* *接受者用户的token,给一个人发送使用 ** *
string user_token = 8;
*/
public Builder clearUserToken() {
userToken_ = getDefaultInstance().getUserToken();
onChanged();
return this;
}
/**
* *接受者用户的token,给一个人发送使用 ** *
string user_token = 8;
*/
public Builder setUserTokenBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
userToken_ = value;
onChanged();
return this;
}
private java.lang.Object pushFromId_ = "";
/**
* *push消息发送者或者群ID,这里使用站点siteUserId或者groupId ** *
string push_from_id = 9;
*/
public java.lang.String getPushFromId() {
java.lang.Object ref = pushFromId_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
pushFromId_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* *push消息发送者或者群ID,这里使用站点siteUserId或者groupId ** *
string push_from_id = 9;
*/
public com.google.protobuf.ByteString
getPushFromIdBytes() {
java.lang.Object ref = pushFromId_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
pushFromId_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* *push消息发送者或者群ID,这里使用站点siteUserId或者groupId ** *
string push_from_id = 9;
*/
public Builder setPushFromId(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
pushFromId_ = value;
onChanged();
return this;
}
/**
* *push消息发送者或者群ID,这里使用站点siteUserId或者groupId ** *
string push_from_id = 9;
*/
public Builder clearPushFromId() {
pushFromId_ = getDefaultInstance().getPushFromId();
onChanged();
return this;
}
/**
* *push消息发送者或者群ID,这里使用站点siteUserId或者groupId ** *
string push_from_id = 9;
*/
public Builder setPushFromIdBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
pushFromId_ = value;
onChanged();
return this;
}
private java.lang.Object pushFromName_ = "";
/**
* *发送着用户名称或者群名称 ** *
string push_from_name = 10;
*/
public java.lang.String getPushFromName() {
java.lang.Object ref = pushFromName_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
pushFromName_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* *发送着用户名称或者群名称 ** *
string push_from_name = 10;
*/
public com.google.protobuf.ByteString
getPushFromNameBytes() {
java.lang.Object ref = pushFromName_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
pushFromName_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* *发送着用户名称或者群名称 ** *
string push_from_name = 10;
*/
public Builder setPushFromName(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
pushFromName_ = value;
onChanged();
return this;
}
/**
* *发送着用户名称或者群名称 ** *
string push_from_name = 10;
*/
public Builder clearPushFromName() {
pushFromName_ = getDefaultInstance().getPushFromName();
onChanged();
return this;
}
/**
* *发送着用户名称或者群名称 ** *
string push_from_name = 10;
*/
public Builder setPushFromNameBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
pushFromName_ = value;
onChanged();
return this;
}
private com.google.protobuf.LazyStringList userTokens_ = com.google.protobuf.LazyStringArrayList.EMPTY;
private void ensureUserTokensIsMutable() {
if (!((bitField0_ & 0x00000400) == 0x00000400)) {
userTokens_ = new com.google.protobuf.LazyStringArrayList(userTokens_);
bitField0_ |= 0x00000400;
}
}
/**
* *接受者用户的tokens,给多人发送使用 ** *
repeated string user_tokens = 11;
*/
public com.google.protobuf.ProtocolStringList
getUserTokensList() {
return userTokens_.getUnmodifiableView();
}
/**
* *接受者用户的tokens,给多人发送使用 ** *
repeated string user_tokens = 11;
*/
public int getUserTokensCount() {
return userTokens_.size();
}
/**
* *接受者用户的tokens,给多人发送使用 ** *
repeated string user_tokens = 11;
*/
public java.lang.String getUserTokens(int index) {
return userTokens_.get(index);
}
/**
* *接受者用户的tokens,给多人发送使用 ** *
repeated string user_tokens = 11;
*/
public com.google.protobuf.ByteString
getUserTokensBytes(int index) {
return userTokens_.getByteString(index);
}
/**
* *接受者用户的tokens,给多人发送使用 ** *
repeated string user_tokens = 11;
*/
public Builder setUserTokens(
int index, java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
ensureUserTokensIsMutable();
userTokens_.set(index, value);
onChanged();
return this;
}
/**
* *接受者用户的tokens,给多人发送使用 ** *
repeated string user_tokens = 11;
*/
public Builder addUserTokens(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
ensureUserTokensIsMutable();
userTokens_.add(value);
onChanged();
return this;
}
/**
* *接受者用户的tokens,给多人发送使用 ** *
repeated string user_tokens = 11;
*/
public Builder addAllUserTokens(
java.lang.Iterable*接受者用户的tokens,给多人发送使用 ** *
repeated string user_tokens = 11;
*/
public Builder clearUserTokens() {
userTokens_ = com.google.protobuf.LazyStringArrayList.EMPTY;
bitField0_ = (bitField0_ & ~0x00000400);
onChanged();
return this;
}
/**
* *接受者用户的tokens,给多人发送使用 ** *
repeated string user_tokens = 11;
*/
public Builder addUserTokensBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
ensureUserTokensIsMutable();
userTokens_.add(value);
onChanged();
return this;
}
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFieldsProto3(unknownFields);
}
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:core.Notification)
}
// @@protoc_insertion_point(class_scope:core.Notification)
private static final com.akaxin.proto.core.PushProto.Notification DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new com.akaxin.proto.core.PushProto.Notification();
}
public static com.akaxin.proto.core.PushProto.Notification getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser*站点服务地址eg->127.0.0.1:2021 ** *
string site_server = 1;
*/
java.lang.String getSiteServer();
/**
* *站点服务地址eg->127.0.0.1:2021 ** *
string site_server = 1;
*/
com.google.protobuf.ByteString
getSiteServerBytes();
/**
* *站点服务名称 ** *
string push_title = 2;
*/
java.lang.String getPushTitle();
/**
* *站点服务名称 ** *
string push_title = 2;
*/
com.google.protobuf.ByteString
getPushTitleBytes();
/**
* *push的副标题 ** *
string push_subtitle = 3;
*/
java.lang.String getPushSubtitle();
/**
* *push的副标题 ** *
string push_subtitle = 3;
*/
com.google.protobuf.ByteString
getPushSubtitleBytes();
/**
* *展示的内容 ** *
string push_alert = 4;
*/
java.lang.String getPushAlert();
/**
* *展示的内容 ** *
string push_alert = 4;
*/
com.google.protobuf.ByteString
getPushAlertBytes();
/**
* *Push跳转位置 ** *
string push_goto = 5;
*/
java.lang.String getPushGoto();
/**
* *Push跳转位置 ** *
string push_goto = 5;
*/
com.google.protobuf.ByteString
getPushGotoBytes();
/**
* *气泡展示个数,默认气泡数1 ** *
int32 push_badge = 6;
*/
int getPushBadge();
/**
* *声音 ** *
string push_sound = 7;
*/
java.lang.String getPushSound();
/**
* *声音 ** *
string push_sound = 7;
*/
com.google.protobuf.ByteString
getPushSoundBytes();
}
/**
* *支持站点批量发送push的功能 ** * Protobuf type {@code core.Notifications} */ public static final class Notifications extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:core.Notifications) NotificationsOrBuilder { private static final long serialVersionUID = 0L; // Use Notifications.newBuilder() to construct. private Notifications(com.google.protobuf.GeneratedMessageV3.Builder> builder) { super(builder); } private Notifications() { siteServer_ = ""; pushTitle_ = ""; pushSubtitle_ = ""; pushAlert_ = ""; pushGoto_ = ""; pushBadge_ = 0; pushSound_ = ""; } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private Notifications( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; default: { if (!parseUnknownFieldProto3( input, unknownFields, extensionRegistry, tag)) { done = true; } break; } case 10: { java.lang.String s = input.readStringRequireUtf8(); siteServer_ = s; break; } case 18: { java.lang.String s = input.readStringRequireUtf8(); pushTitle_ = s; break; } case 26: { java.lang.String s = input.readStringRequireUtf8(); pushSubtitle_ = s; break; } case 34: { java.lang.String s = input.readStringRequireUtf8(); pushAlert_ = s; break; } case 42: { java.lang.String s = input.readStringRequireUtf8(); pushGoto_ = s; break; } case 48: { pushBadge_ = input.readInt32(); break; } case 58: { java.lang.String s = input.readStringRequireUtf8(); pushSound_ = s; break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.akaxin.proto.core.PushProto.internal_static_core_Notifications_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.akaxin.proto.core.PushProto.internal_static_core_Notifications_fieldAccessorTable .ensureFieldAccessorsInitialized( com.akaxin.proto.core.PushProto.Notifications.class, com.akaxin.proto.core.PushProto.Notifications.Builder.class); } public static final int SITE_SERVER_FIELD_NUMBER = 1; private volatile java.lang.Object siteServer_; /** *
*站点服务地址eg->127.0.0.1:2021 ** *
string site_server = 1;
*/
public java.lang.String getSiteServer() {
java.lang.Object ref = siteServer_;
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();
siteServer_ = s;
return s;
}
}
/**
* *站点服务地址eg->127.0.0.1:2021 ** *
string site_server = 1;
*/
public com.google.protobuf.ByteString
getSiteServerBytes() {
java.lang.Object ref = siteServer_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
siteServer_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int PUSH_TITLE_FIELD_NUMBER = 2;
private volatile java.lang.Object pushTitle_;
/**
* *站点服务名称 ** *
string push_title = 2;
*/
public java.lang.String getPushTitle() {
java.lang.Object ref = pushTitle_;
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();
pushTitle_ = s;
return s;
}
}
/**
* *站点服务名称 ** *
string push_title = 2;
*/
public com.google.protobuf.ByteString
getPushTitleBytes() {
java.lang.Object ref = pushTitle_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
pushTitle_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int PUSH_SUBTITLE_FIELD_NUMBER = 3;
private volatile java.lang.Object pushSubtitle_;
/**
* *push的副标题 ** *
string push_subtitle = 3;
*/
public java.lang.String getPushSubtitle() {
java.lang.Object ref = pushSubtitle_;
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();
pushSubtitle_ = s;
return s;
}
}
/**
* *push的副标题 ** *
string push_subtitle = 3;
*/
public com.google.protobuf.ByteString
getPushSubtitleBytes() {
java.lang.Object ref = pushSubtitle_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
pushSubtitle_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int PUSH_ALERT_FIELD_NUMBER = 4;
private volatile java.lang.Object pushAlert_;
/**
* *展示的内容 ** *
string push_alert = 4;
*/
public java.lang.String getPushAlert() {
java.lang.Object ref = pushAlert_;
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();
pushAlert_ = s;
return s;
}
}
/**
* *展示的内容 ** *
string push_alert = 4;
*/
public com.google.protobuf.ByteString
getPushAlertBytes() {
java.lang.Object ref = pushAlert_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
pushAlert_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int PUSH_GOTO_FIELD_NUMBER = 5;
private volatile java.lang.Object pushGoto_;
/**
* *Push跳转位置 ** *
string push_goto = 5;
*/
public java.lang.String getPushGoto() {
java.lang.Object ref = pushGoto_;
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();
pushGoto_ = s;
return s;
}
}
/**
* *Push跳转位置 ** *
string push_goto = 5;
*/
public com.google.protobuf.ByteString
getPushGotoBytes() {
java.lang.Object ref = pushGoto_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
pushGoto_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int PUSH_BADGE_FIELD_NUMBER = 6;
private int pushBadge_;
/**
* *气泡展示个数,默认气泡数1 ** *
int32 push_badge = 6;
*/
public int getPushBadge() {
return pushBadge_;
}
public static final int PUSH_SOUND_FIELD_NUMBER = 7;
private volatile java.lang.Object pushSound_;
/**
* *声音 ** *
string push_sound = 7;
*/
public java.lang.String getPushSound() {
java.lang.Object ref = pushSound_;
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();
pushSound_ = s;
return s;
}
}
/**
* *声音 ** *
string push_sound = 7;
*/
public com.google.protobuf.ByteString
getPushSoundBytes() {
java.lang.Object ref = pushSound_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
pushSound_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
private byte memoizedIsInitialized = -1;
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
if (!getSiteServerBytes().isEmpty()) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, siteServer_);
}
if (!getPushTitleBytes().isEmpty()) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 2, pushTitle_);
}
if (!getPushSubtitleBytes().isEmpty()) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 3, pushSubtitle_);
}
if (!getPushAlertBytes().isEmpty()) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 4, pushAlert_);
}
if (!getPushGotoBytes().isEmpty()) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 5, pushGoto_);
}
if (pushBadge_ != 0) {
output.writeInt32(6, pushBadge_);
}
if (!getPushSoundBytes().isEmpty()) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 7, pushSound_);
}
unknownFields.writeTo(output);
}
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (!getSiteServerBytes().isEmpty()) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, siteServer_);
}
if (!getPushTitleBytes().isEmpty()) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, pushTitle_);
}
if (!getPushSubtitleBytes().isEmpty()) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, pushSubtitle_);
}
if (!getPushAlertBytes().isEmpty()) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, pushAlert_);
}
if (!getPushGotoBytes().isEmpty()) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, pushGoto_);
}
if (pushBadge_ != 0) {
size += com.google.protobuf.CodedOutputStream
.computeInt32Size(6, pushBadge_);
}
if (!getPushSoundBytes().isEmpty()) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(7, pushSound_);
}
size += unknownFields.getSerializedSize();
memoizedSize = size;
return size;
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof com.akaxin.proto.core.PushProto.Notifications)) {
return super.equals(obj);
}
com.akaxin.proto.core.PushProto.Notifications other = (com.akaxin.proto.core.PushProto.Notifications) obj;
boolean result = true;
result = result && getSiteServer()
.equals(other.getSiteServer());
result = result && getPushTitle()
.equals(other.getPushTitle());
result = result && getPushSubtitle()
.equals(other.getPushSubtitle());
result = result && getPushAlert()
.equals(other.getPushAlert());
result = result && getPushGoto()
.equals(other.getPushGoto());
result = result && (getPushBadge()
== other.getPushBadge());
result = result && getPushSound()
.equals(other.getPushSound());
result = result && unknownFields.equals(other.unknownFields);
return result;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
hash = (37 * hash) + SITE_SERVER_FIELD_NUMBER;
hash = (53 * hash) + getSiteServer().hashCode();
hash = (37 * hash) + PUSH_TITLE_FIELD_NUMBER;
hash = (53 * hash) + getPushTitle().hashCode();
hash = (37 * hash) + PUSH_SUBTITLE_FIELD_NUMBER;
hash = (53 * hash) + getPushSubtitle().hashCode();
hash = (37 * hash) + PUSH_ALERT_FIELD_NUMBER;
hash = (53 * hash) + getPushAlert().hashCode();
hash = (37 * hash) + PUSH_GOTO_FIELD_NUMBER;
hash = (53 * hash) + getPushGoto().hashCode();
hash = (37 * hash) + PUSH_BADGE_FIELD_NUMBER;
hash = (53 * hash) + getPushBadge();
hash = (37 * hash) + PUSH_SOUND_FIELD_NUMBER;
hash = (53 * hash) + getPushSound().hashCode();
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static com.akaxin.proto.core.PushProto.Notifications parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.akaxin.proto.core.PushProto.Notifications parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.akaxin.proto.core.PushProto.Notifications parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.akaxin.proto.core.PushProto.Notifications parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.akaxin.proto.core.PushProto.Notifications parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.akaxin.proto.core.PushProto.Notifications parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.akaxin.proto.core.PushProto.Notifications parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.akaxin.proto.core.PushProto.Notifications 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 com.akaxin.proto.core.PushProto.Notifications parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static com.akaxin.proto.core.PushProto.Notifications 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 com.akaxin.proto.core.PushProto.Notifications parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.akaxin.proto.core.PushProto.Notifications parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
public static Builder newBuilder(com.akaxin.proto.core.PushProto.Notifications prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
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;
}
/**
* *支持站点批量发送push的功能 ** * Protobuf type {@code core.Notifications} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
*站点服务地址eg->127.0.0.1:2021 ** *
string site_server = 1;
*/
public java.lang.String getSiteServer() {
java.lang.Object ref = siteServer_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
siteServer_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* *站点服务地址eg->127.0.0.1:2021 ** *
string site_server = 1;
*/
public com.google.protobuf.ByteString
getSiteServerBytes() {
java.lang.Object ref = siteServer_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
siteServer_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* *站点服务地址eg->127.0.0.1:2021 ** *
string site_server = 1;
*/
public Builder setSiteServer(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
siteServer_ = value;
onChanged();
return this;
}
/**
* *站点服务地址eg->127.0.0.1:2021 ** *
string site_server = 1;
*/
public Builder clearSiteServer() {
siteServer_ = getDefaultInstance().getSiteServer();
onChanged();
return this;
}
/**
* *站点服务地址eg->127.0.0.1:2021 ** *
string site_server = 1;
*/
public Builder setSiteServerBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
siteServer_ = value;
onChanged();
return this;
}
private java.lang.Object pushTitle_ = "";
/**
* *站点服务名称 ** *
string push_title = 2;
*/
public java.lang.String getPushTitle() {
java.lang.Object ref = pushTitle_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
pushTitle_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* *站点服务名称 ** *
string push_title = 2;
*/
public com.google.protobuf.ByteString
getPushTitleBytes() {
java.lang.Object ref = pushTitle_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
pushTitle_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* *站点服务名称 ** *
string push_title = 2;
*/
public Builder setPushTitle(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
pushTitle_ = value;
onChanged();
return this;
}
/**
* *站点服务名称 ** *
string push_title = 2;
*/
public Builder clearPushTitle() {
pushTitle_ = getDefaultInstance().getPushTitle();
onChanged();
return this;
}
/**
* *站点服务名称 ** *
string push_title = 2;
*/
public Builder setPushTitleBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
pushTitle_ = value;
onChanged();
return this;
}
private java.lang.Object pushSubtitle_ = "";
/**
* *push的副标题 ** *
string push_subtitle = 3;
*/
public java.lang.String getPushSubtitle() {
java.lang.Object ref = pushSubtitle_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
pushSubtitle_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* *push的副标题 ** *
string push_subtitle = 3;
*/
public com.google.protobuf.ByteString
getPushSubtitleBytes() {
java.lang.Object ref = pushSubtitle_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
pushSubtitle_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* *push的副标题 ** *
string push_subtitle = 3;
*/
public Builder setPushSubtitle(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
pushSubtitle_ = value;
onChanged();
return this;
}
/**
* *push的副标题 ** *
string push_subtitle = 3;
*/
public Builder clearPushSubtitle() {
pushSubtitle_ = getDefaultInstance().getPushSubtitle();
onChanged();
return this;
}
/**
* *push的副标题 ** *
string push_subtitle = 3;
*/
public Builder setPushSubtitleBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
pushSubtitle_ = value;
onChanged();
return this;
}
private java.lang.Object pushAlert_ = "";
/**
* *展示的内容 ** *
string push_alert = 4;
*/
public java.lang.String getPushAlert() {
java.lang.Object ref = pushAlert_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
pushAlert_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* *展示的内容 ** *
string push_alert = 4;
*/
public com.google.protobuf.ByteString
getPushAlertBytes() {
java.lang.Object ref = pushAlert_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
pushAlert_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* *展示的内容 ** *
string push_alert = 4;
*/
public Builder setPushAlert(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
pushAlert_ = value;
onChanged();
return this;
}
/**
* *展示的内容 ** *
string push_alert = 4;
*/
public Builder clearPushAlert() {
pushAlert_ = getDefaultInstance().getPushAlert();
onChanged();
return this;
}
/**
* *展示的内容 ** *
string push_alert = 4;
*/
public Builder setPushAlertBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
pushAlert_ = value;
onChanged();
return this;
}
private java.lang.Object pushGoto_ = "";
/**
* *Push跳转位置 ** *
string push_goto = 5;
*/
public java.lang.String getPushGoto() {
java.lang.Object ref = pushGoto_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
pushGoto_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* *Push跳转位置 ** *
string push_goto = 5;
*/
public com.google.protobuf.ByteString
getPushGotoBytes() {
java.lang.Object ref = pushGoto_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
pushGoto_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* *Push跳转位置 ** *
string push_goto = 5;
*/
public Builder setPushGoto(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
pushGoto_ = value;
onChanged();
return this;
}
/**
* *Push跳转位置 ** *
string push_goto = 5;
*/
public Builder clearPushGoto() {
pushGoto_ = getDefaultInstance().getPushGoto();
onChanged();
return this;
}
/**
* *Push跳转位置 ** *
string push_goto = 5;
*/
public Builder setPushGotoBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
pushGoto_ = value;
onChanged();
return this;
}
private int pushBadge_ ;
/**
* *气泡展示个数,默认气泡数1 ** *
int32 push_badge = 6;
*/
public int getPushBadge() {
return pushBadge_;
}
/**
* *气泡展示个数,默认气泡数1 ** *
int32 push_badge = 6;
*/
public Builder setPushBadge(int value) {
pushBadge_ = value;
onChanged();
return this;
}
/**
* *气泡展示个数,默认气泡数1 ** *
int32 push_badge = 6;
*/
public Builder clearPushBadge() {
pushBadge_ = 0;
onChanged();
return this;
}
private java.lang.Object pushSound_ = "";
/**
* *声音 ** *
string push_sound = 7;
*/
public java.lang.String getPushSound() {
java.lang.Object ref = pushSound_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
pushSound_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* *声音 ** *
string push_sound = 7;
*/
public com.google.protobuf.ByteString
getPushSoundBytes() {
java.lang.Object ref = pushSound_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
pushSound_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* *声音 ** *
string push_sound = 7;
*/
public Builder setPushSound(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
pushSound_ = value;
onChanged();
return this;
}
/**
* *声音 ** *
string push_sound = 7;
*/
public Builder clearPushSound() {
pushSound_ = getDefaultInstance().getPushSound();
onChanged();
return this;
}
/**
* *声音 ** *
string push_sound = 7;
*/
public Builder setPushSoundBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
pushSound_ = value;
onChanged();
return this;
}
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFieldsProto3(unknownFields);
}
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:core.Notifications)
}
// @@protoc_insertion_point(class_scope:core.Notifications)
private static final com.akaxin.proto.core.PushProto.Notifications DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new com.akaxin.proto.core.PushProto.Notifications();
}
public static com.akaxin.proto.core.PushProto.Notifications getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser*push发送者的globalUserId ** *
string global_user_id = 1;
*/
java.lang.String getGlobalUserId();
/**
* *push发送者的globalUserId ** *
string global_user_id = 1;
*/
com.google.protobuf.ByteString
getGlobalUserIdBytes();
/**
* *push消息发送者或者群ID,这里使用站点siteUserId ** *
string site_user_id = 2;
*/
java.lang.String getSiteUserId();
/**
* *push消息发送者或者群ID,这里使用站点siteUserId ** *
string site_user_id = 2;
*/
com.google.protobuf.ByteString
getSiteUserIdBytes();
/**
* *发送着用户名称,文案展示的一部分 ** *
string push_from_name = 3;
*/
java.lang.String getPushFromName();
/**
* *发送着用户名称,文案展示的一部分 ** *
string push_from_name = 3;
*/
com.google.protobuf.ByteString
getPushFromNameBytes();
}
/**
* Protobuf type {@code core.PushFromUser}
*/
public static final class PushFromUser extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:core.PushFromUser)
PushFromUserOrBuilder {
private static final long serialVersionUID = 0L;
// Use PushFromUser.newBuilder() to construct.
private PushFromUser(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private PushFromUser() {
globalUserId_ = "";
siteUserId_ = "";
pushFromName_ = "";
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private PushFromUser(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
this();
int mutable_bitField0_ = 0;
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
com.google.protobuf.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
default: {
if (!parseUnknownFieldProto3(
input, unknownFields, extensionRegistry, tag)) {
done = true;
}
break;
}
case 10: {
java.lang.String s = input.readStringRequireUtf8();
globalUserId_ = s;
break;
}
case 18: {
java.lang.String s = input.readStringRequireUtf8();
siteUserId_ = s;
break;
}
case 26: {
java.lang.String s = input.readStringRequireUtf8();
pushFromName_ = s;
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e).setUnfinishedMessage(this);
} finally {
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.akaxin.proto.core.PushProto.internal_static_core_PushFromUser_descriptor;
}
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.akaxin.proto.core.PushProto.internal_static_core_PushFromUser_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.akaxin.proto.core.PushProto.PushFromUser.class, com.akaxin.proto.core.PushProto.PushFromUser.Builder.class);
}
public static final int GLOBAL_USER_ID_FIELD_NUMBER = 1;
private volatile java.lang.Object globalUserId_;
/**
* *push发送者的globalUserId ** *
string global_user_id = 1;
*/
public java.lang.String getGlobalUserId() {
java.lang.Object ref = globalUserId_;
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();
globalUserId_ = s;
return s;
}
}
/**
* *push发送者的globalUserId ** *
string global_user_id = 1;
*/
public com.google.protobuf.ByteString
getGlobalUserIdBytes() {
java.lang.Object ref = globalUserId_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
globalUserId_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int SITE_USER_ID_FIELD_NUMBER = 2;
private volatile java.lang.Object siteUserId_;
/**
* *push消息发送者或者群ID,这里使用站点siteUserId ** *
string site_user_id = 2;
*/
public java.lang.String getSiteUserId() {
java.lang.Object ref = siteUserId_;
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();
siteUserId_ = s;
return s;
}
}
/**
* *push消息发送者或者群ID,这里使用站点siteUserId ** *
string site_user_id = 2;
*/
public com.google.protobuf.ByteString
getSiteUserIdBytes() {
java.lang.Object ref = siteUserId_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
siteUserId_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int PUSH_FROM_NAME_FIELD_NUMBER = 3;
private volatile java.lang.Object pushFromName_;
/**
* *发送着用户名称,文案展示的一部分 ** *
string push_from_name = 3;
*/
public java.lang.String getPushFromName() {
java.lang.Object ref = pushFromName_;
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();
pushFromName_ = s;
return s;
}
}
/**
* *发送着用户名称,文案展示的一部分 ** *
string push_from_name = 3;
*/
public com.google.protobuf.ByteString
getPushFromNameBytes() {
java.lang.Object ref = pushFromName_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
pushFromName_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
private byte memoizedIsInitialized = -1;
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
if (!getGlobalUserIdBytes().isEmpty()) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, globalUserId_);
}
if (!getSiteUserIdBytes().isEmpty()) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 2, siteUserId_);
}
if (!getPushFromNameBytes().isEmpty()) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 3, pushFromName_);
}
unknownFields.writeTo(output);
}
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (!getGlobalUserIdBytes().isEmpty()) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, globalUserId_);
}
if (!getSiteUserIdBytes().isEmpty()) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, siteUserId_);
}
if (!getPushFromNameBytes().isEmpty()) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, pushFromName_);
}
size += unknownFields.getSerializedSize();
memoizedSize = size;
return size;
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof com.akaxin.proto.core.PushProto.PushFromUser)) {
return super.equals(obj);
}
com.akaxin.proto.core.PushProto.PushFromUser other = (com.akaxin.proto.core.PushProto.PushFromUser) obj;
boolean result = true;
result = result && getGlobalUserId()
.equals(other.getGlobalUserId());
result = result && getSiteUserId()
.equals(other.getSiteUserId());
result = result && getPushFromName()
.equals(other.getPushFromName());
result = result && unknownFields.equals(other.unknownFields);
return result;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
hash = (37 * hash) + GLOBAL_USER_ID_FIELD_NUMBER;
hash = (53 * hash) + getGlobalUserId().hashCode();
hash = (37 * hash) + SITE_USER_ID_FIELD_NUMBER;
hash = (53 * hash) + getSiteUserId().hashCode();
hash = (37 * hash) + PUSH_FROM_NAME_FIELD_NUMBER;
hash = (53 * hash) + getPushFromName().hashCode();
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static com.akaxin.proto.core.PushProto.PushFromUser parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.akaxin.proto.core.PushProto.PushFromUser parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.akaxin.proto.core.PushProto.PushFromUser parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.akaxin.proto.core.PushProto.PushFromUser parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.akaxin.proto.core.PushProto.PushFromUser parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.akaxin.proto.core.PushProto.PushFromUser parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.akaxin.proto.core.PushProto.PushFromUser parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.akaxin.proto.core.PushProto.PushFromUser 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 com.akaxin.proto.core.PushProto.PushFromUser parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static com.akaxin.proto.core.PushProto.PushFromUser 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 com.akaxin.proto.core.PushProto.PushFromUser parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.akaxin.proto.core.PushProto.PushFromUser parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
public static Builder newBuilder(com.akaxin.proto.core.PushProto.PushFromUser prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
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 core.PushFromUser}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder*push发送者的globalUserId ** *
string global_user_id = 1;
*/
public java.lang.String getGlobalUserId() {
java.lang.Object ref = globalUserId_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
globalUserId_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* *push发送者的globalUserId ** *
string global_user_id = 1;
*/
public com.google.protobuf.ByteString
getGlobalUserIdBytes() {
java.lang.Object ref = globalUserId_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
globalUserId_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* *push发送者的globalUserId ** *
string global_user_id = 1;
*/
public Builder setGlobalUserId(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
globalUserId_ = value;
onChanged();
return this;
}
/**
* *push发送者的globalUserId ** *
string global_user_id = 1;
*/
public Builder clearGlobalUserId() {
globalUserId_ = getDefaultInstance().getGlobalUserId();
onChanged();
return this;
}
/**
* *push发送者的globalUserId ** *
string global_user_id = 1;
*/
public Builder setGlobalUserIdBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
globalUserId_ = value;
onChanged();
return this;
}
private java.lang.Object siteUserId_ = "";
/**
* *push消息发送者或者群ID,这里使用站点siteUserId ** *
string site_user_id = 2;
*/
public java.lang.String getSiteUserId() {
java.lang.Object ref = siteUserId_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
siteUserId_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* *push消息发送者或者群ID,这里使用站点siteUserId ** *
string site_user_id = 2;
*/
public com.google.protobuf.ByteString
getSiteUserIdBytes() {
java.lang.Object ref = siteUserId_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
siteUserId_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* *push消息发送者或者群ID,这里使用站点siteUserId ** *
string site_user_id = 2;
*/
public Builder setSiteUserId(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
siteUserId_ = value;
onChanged();
return this;
}
/**
* *push消息发送者或者群ID,这里使用站点siteUserId ** *
string site_user_id = 2;
*/
public Builder clearSiteUserId() {
siteUserId_ = getDefaultInstance().getSiteUserId();
onChanged();
return this;
}
/**
* *push消息发送者或者群ID,这里使用站点siteUserId ** *
string site_user_id = 2;
*/
public Builder setSiteUserIdBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
siteUserId_ = value;
onChanged();
return this;
}
private java.lang.Object pushFromName_ = "";
/**
* *发送着用户名称,文案展示的一部分 ** *
string push_from_name = 3;
*/
public java.lang.String getPushFromName() {
java.lang.Object ref = pushFromName_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
pushFromName_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* *发送着用户名称,文案展示的一部分 ** *
string push_from_name = 3;
*/
public com.google.protobuf.ByteString
getPushFromNameBytes() {
java.lang.Object ref = pushFromName_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
pushFromName_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* *发送着用户名称,文案展示的一部分 ** *
string push_from_name = 3;
*/
public Builder setPushFromName(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
pushFromName_ = value;
onChanged();
return this;
}
/**
* *发送着用户名称,文案展示的一部分 ** *
string push_from_name = 3;
*/
public Builder clearPushFromName() {
pushFromName_ = getDefaultInstance().getPushFromName();
onChanged();
return this;
}
/**
* *发送着用户名称,文案展示的一部分 ** *
string push_from_name = 3;
*/
public Builder setPushFromNameBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
pushFromName_ = value;
onChanged();
return this;
}
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFieldsProto3(unknownFields);
}
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:core.PushFromUser)
}
// @@protoc_insertion_point(class_scope:core.PushFromUser)
private static final com.akaxin.proto.core.PushProto.PushFromUser DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new com.akaxin.proto.core.PushProto.PushFromUser();
}
public static com.akaxin.proto.core.PushProto.PushFromUser getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser*接受者:globalUserID, ** *
string global_user_id = 1;
*/
java.lang.String getGlobalUserId();
/**
* *接受者:globalUserID, ** *
string global_user_id = 1;
*/
com.google.protobuf.ByteString
getGlobalUserIdBytes();
/**
* *接受者:单人用户的token ** *
string user_token = 2;
*/
java.lang.String getUserToken();
/**
* *接受者:单人用户的token ** *
string user_token = 2;
*/
com.google.protobuf.ByteString
getUserTokenBytes();
/**
* *接受者用户的tokens,给多人发送使用 ** *
repeated string user_tokens = 3;
*/
java.util.List*接受者用户的tokens,给多人发送使用 ** *
repeated string user_tokens = 3;
*/
int getUserTokensCount();
/**
* *接受者用户的tokens,给多人发送使用 ** *
repeated string user_tokens = 3;
*/
java.lang.String getUserTokens(int index);
/**
* *接受者用户的tokens,给多人发送使用 ** *
repeated string user_tokens = 3;
*/
com.google.protobuf.ByteString
getUserTokensBytes(int index);
}
/**
* Protobuf type {@code core.PushToUser}
*/
public static final class PushToUser extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:core.PushToUser)
PushToUserOrBuilder {
private static final long serialVersionUID = 0L;
// Use PushToUser.newBuilder() to construct.
private PushToUser(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private PushToUser() {
globalUserId_ = "";
userToken_ = "";
userTokens_ = com.google.protobuf.LazyStringArrayList.EMPTY;
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private PushToUser(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
this();
int mutable_bitField0_ = 0;
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
com.google.protobuf.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
default: {
if (!parseUnknownFieldProto3(
input, unknownFields, extensionRegistry, tag)) {
done = true;
}
break;
}
case 10: {
java.lang.String s = input.readStringRequireUtf8();
globalUserId_ = s;
break;
}
case 18: {
java.lang.String s = input.readStringRequireUtf8();
userToken_ = s;
break;
}
case 26: {
java.lang.String s = input.readStringRequireUtf8();
if (!((mutable_bitField0_ & 0x00000004) == 0x00000004)) {
userTokens_ = new com.google.protobuf.LazyStringArrayList();
mutable_bitField0_ |= 0x00000004;
}
userTokens_.add(s);
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e).setUnfinishedMessage(this);
} finally {
if (((mutable_bitField0_ & 0x00000004) == 0x00000004)) {
userTokens_ = userTokens_.getUnmodifiableView();
}
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.akaxin.proto.core.PushProto.internal_static_core_PushToUser_descriptor;
}
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.akaxin.proto.core.PushProto.internal_static_core_PushToUser_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.akaxin.proto.core.PushProto.PushToUser.class, com.akaxin.proto.core.PushProto.PushToUser.Builder.class);
}
private int bitField0_;
public static final int GLOBAL_USER_ID_FIELD_NUMBER = 1;
private volatile java.lang.Object globalUserId_;
/**
* *接受者:globalUserID, ** *
string global_user_id = 1;
*/
public java.lang.String getGlobalUserId() {
java.lang.Object ref = globalUserId_;
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();
globalUserId_ = s;
return s;
}
}
/**
* *接受者:globalUserID, ** *
string global_user_id = 1;
*/
public com.google.protobuf.ByteString
getGlobalUserIdBytes() {
java.lang.Object ref = globalUserId_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
globalUserId_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int USER_TOKEN_FIELD_NUMBER = 2;
private volatile java.lang.Object userToken_;
/**
* *接受者:单人用户的token ** *
string user_token = 2;
*/
public java.lang.String getUserToken() {
java.lang.Object ref = userToken_;
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();
userToken_ = s;
return s;
}
}
/**
* *接受者:单人用户的token ** *
string user_token = 2;
*/
public com.google.protobuf.ByteString
getUserTokenBytes() {
java.lang.Object ref = userToken_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
userToken_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int USER_TOKENS_FIELD_NUMBER = 3;
private com.google.protobuf.LazyStringList userTokens_;
/**
* *接受者用户的tokens,给多人发送使用 ** *
repeated string user_tokens = 3;
*/
public com.google.protobuf.ProtocolStringList
getUserTokensList() {
return userTokens_;
}
/**
* *接受者用户的tokens,给多人发送使用 ** *
repeated string user_tokens = 3;
*/
public int getUserTokensCount() {
return userTokens_.size();
}
/**
* *接受者用户的tokens,给多人发送使用 ** *
repeated string user_tokens = 3;
*/
public java.lang.String getUserTokens(int index) {
return userTokens_.get(index);
}
/**
* *接受者用户的tokens,给多人发送使用 ** *
repeated string user_tokens = 3;
*/
public com.google.protobuf.ByteString
getUserTokensBytes(int index) {
return userTokens_.getByteString(index);
}
private byte memoizedIsInitialized = -1;
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
if (!getGlobalUserIdBytes().isEmpty()) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, globalUserId_);
}
if (!getUserTokenBytes().isEmpty()) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 2, userToken_);
}
for (int i = 0; i < userTokens_.size(); i++) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 3, userTokens_.getRaw(i));
}
unknownFields.writeTo(output);
}
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (!getGlobalUserIdBytes().isEmpty()) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, globalUserId_);
}
if (!getUserTokenBytes().isEmpty()) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, userToken_);
}
{
int dataSize = 0;
for (int i = 0; i < userTokens_.size(); i++) {
dataSize += computeStringSizeNoTag(userTokens_.getRaw(i));
}
size += dataSize;
size += 1 * getUserTokensList().size();
}
size += unknownFields.getSerializedSize();
memoizedSize = size;
return size;
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof com.akaxin.proto.core.PushProto.PushToUser)) {
return super.equals(obj);
}
com.akaxin.proto.core.PushProto.PushToUser other = (com.akaxin.proto.core.PushProto.PushToUser) obj;
boolean result = true;
result = result && getGlobalUserId()
.equals(other.getGlobalUserId());
result = result && getUserToken()
.equals(other.getUserToken());
result = result && getUserTokensList()
.equals(other.getUserTokensList());
result = result && unknownFields.equals(other.unknownFields);
return result;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
hash = (37 * hash) + GLOBAL_USER_ID_FIELD_NUMBER;
hash = (53 * hash) + getGlobalUserId().hashCode();
hash = (37 * hash) + USER_TOKEN_FIELD_NUMBER;
hash = (53 * hash) + getUserToken().hashCode();
if (getUserTokensCount() > 0) {
hash = (37 * hash) + USER_TOKENS_FIELD_NUMBER;
hash = (53 * hash) + getUserTokensList().hashCode();
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static com.akaxin.proto.core.PushProto.PushToUser parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.akaxin.proto.core.PushProto.PushToUser parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.akaxin.proto.core.PushProto.PushToUser parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.akaxin.proto.core.PushProto.PushToUser parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.akaxin.proto.core.PushProto.PushToUser parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.akaxin.proto.core.PushProto.PushToUser parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.akaxin.proto.core.PushProto.PushToUser parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.akaxin.proto.core.PushProto.PushToUser 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 com.akaxin.proto.core.PushProto.PushToUser parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static com.akaxin.proto.core.PushProto.PushToUser 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 com.akaxin.proto.core.PushProto.PushToUser parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.akaxin.proto.core.PushProto.PushToUser parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
public static Builder newBuilder(com.akaxin.proto.core.PushProto.PushToUser prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
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 core.PushToUser}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder*接受者:globalUserID, ** *
string global_user_id = 1;
*/
public java.lang.String getGlobalUserId() {
java.lang.Object ref = globalUserId_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
globalUserId_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* *接受者:globalUserID, ** *
string global_user_id = 1;
*/
public com.google.protobuf.ByteString
getGlobalUserIdBytes() {
java.lang.Object ref = globalUserId_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
globalUserId_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* *接受者:globalUserID, ** *
string global_user_id = 1;
*/
public Builder setGlobalUserId(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
globalUserId_ = value;
onChanged();
return this;
}
/**
* *接受者:globalUserID, ** *
string global_user_id = 1;
*/
public Builder clearGlobalUserId() {
globalUserId_ = getDefaultInstance().getGlobalUserId();
onChanged();
return this;
}
/**
* *接受者:globalUserID, ** *
string global_user_id = 1;
*/
public Builder setGlobalUserIdBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
globalUserId_ = value;
onChanged();
return this;
}
private java.lang.Object userToken_ = "";
/**
* *接受者:单人用户的token ** *
string user_token = 2;
*/
public java.lang.String getUserToken() {
java.lang.Object ref = userToken_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
userToken_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* *接受者:单人用户的token ** *
string user_token = 2;
*/
public com.google.protobuf.ByteString
getUserTokenBytes() {
java.lang.Object ref = userToken_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
userToken_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* *接受者:单人用户的token ** *
string user_token = 2;
*/
public Builder setUserToken(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
userToken_ = value;
onChanged();
return this;
}
/**
* *接受者:单人用户的token ** *
string user_token = 2;
*/
public Builder clearUserToken() {
userToken_ = getDefaultInstance().getUserToken();
onChanged();
return this;
}
/**
* *接受者:单人用户的token ** *
string user_token = 2;
*/
public Builder setUserTokenBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
userToken_ = value;
onChanged();
return this;
}
private com.google.protobuf.LazyStringList userTokens_ = com.google.protobuf.LazyStringArrayList.EMPTY;
private void ensureUserTokensIsMutable() {
if (!((bitField0_ & 0x00000004) == 0x00000004)) {
userTokens_ = new com.google.protobuf.LazyStringArrayList(userTokens_);
bitField0_ |= 0x00000004;
}
}
/**
* *接受者用户的tokens,给多人发送使用 ** *
repeated string user_tokens = 3;
*/
public com.google.protobuf.ProtocolStringList
getUserTokensList() {
return userTokens_.getUnmodifiableView();
}
/**
* *接受者用户的tokens,给多人发送使用 ** *
repeated string user_tokens = 3;
*/
public int getUserTokensCount() {
return userTokens_.size();
}
/**
* *接受者用户的tokens,给多人发送使用 ** *
repeated string user_tokens = 3;
*/
public java.lang.String getUserTokens(int index) {
return userTokens_.get(index);
}
/**
* *接受者用户的tokens,给多人发送使用 ** *
repeated string user_tokens = 3;
*/
public com.google.protobuf.ByteString
getUserTokensBytes(int index) {
return userTokens_.getByteString(index);
}
/**
* *接受者用户的tokens,给多人发送使用 ** *
repeated string user_tokens = 3;
*/
public Builder setUserTokens(
int index, java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
ensureUserTokensIsMutable();
userTokens_.set(index, value);
onChanged();
return this;
}
/**
* *接受者用户的tokens,给多人发送使用 ** *
repeated string user_tokens = 3;
*/
public Builder addUserTokens(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
ensureUserTokensIsMutable();
userTokens_.add(value);
onChanged();
return this;
}
/**
* *接受者用户的tokens,给多人发送使用 ** *
repeated string user_tokens = 3;
*/
public Builder addAllUserTokens(
java.lang.Iterable*接受者用户的tokens,给多人发送使用 ** *
repeated string user_tokens = 3;
*/
public Builder clearUserTokens() {
userTokens_ = com.google.protobuf.LazyStringArrayList.EMPTY;
bitField0_ = (bitField0_ & ~0x00000004);
onChanged();
return this;
}
/**
* *接受者用户的tokens,给多人发送使用 ** *
repeated string user_tokens = 3;
*/
public Builder addUserTokensBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
ensureUserTokensIsMutable();
userTokens_.add(value);
onChanged();
return this;
}
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFieldsProto3(unknownFields);
}
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:core.PushToUser)
}
// @@protoc_insertion_point(class_scope:core.PushToUser)
private static final com.akaxin.proto.core.PushProto.PushToUser DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new com.akaxin.proto.core.PushProto.PushToUser();
}
public static com.akaxin.proto.core.PushProto.PushToUser getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser