1, 修改撤回逻辑

This commit is contained in:
heavyrain.lee
2019-08-09 09:00:14 +08:00
parent a6fd11a243
commit ff76622796
3 changed files with 288 additions and 120 deletions
@@ -235,6 +235,14 @@ abstract public class IMHandler<T> {
public void afterAction(String clientID, String fromUser, String topic, Qos1PublishHandler.IMCallback callback) { public void afterAction(String clientID, String fromUser, String topic, Qos1PublishHandler.IMCallback callback) {
} }
protected long publish(String username, String clientID, WFCMessage.Message message) {
Set<String> notifyReceivers = new LinkedHashSet<>();
WFCMessage.Message.Builder messageBuilder = message.toBuilder();
int pullType = m_messagesStore.getNotifyReceivers(username, messageBuilder, notifyReceivers);
this.publisher.publish2Receivers(messageBuilder.build(), notifyReceivers, clientID, pullType);
return notifyReceivers.size();
}
protected long saveAndPublish(String username, String clientID, WFCMessage.Message message) { protected long saveAndPublish(String username, String clientID, WFCMessage.Message message) {
Set<String> notifyReceivers = new LinkedHashSet<>(); Set<String> notifyReceivers = new LinkedHashSet<>();
@@ -33,6 +33,10 @@ public class RecallMessageHandler extends IMHandler<WFCMessage.INT64Buf> {
return ErrorCode.ERROR_CODE_NOT_EXIST; return ErrorCode.ERROR_CODE_NOT_EXIST;
} }
publish(fromUser, clientID, message);
//等待客户端实现根据撤回消息更新内容,之后可以删掉这段代码
m_messagesStore.getNotifyReceivers(fromUser, message.toBuilder(), notifyReceivers); m_messagesStore.getNotifyReceivers(fromUser, message.toBuilder(), notifyReceivers);
this.publisher.publishRecall2Receivers(int64Buf.getId(), fromUser, notifyReceivers, clientID); this.publisher.publishRecall2Receivers(int64Buf.getId(), fromUser, notifyReceivers, clientID);
@@ -11456,6 +11456,21 @@ public final class WFCMessage {
*/ */
com.google.protobuf.ByteString com.google.protobuf.ByteString
getMentionedTargetBytes(int index); getMentionedTargetBytes(int index);
// optional string extra = 12;
/**
* <code>optional string extra = 12;</code>
*/
boolean hasExtra();
/**
* <code>optional string extra = 12;</code>
*/
java.lang.String getExtra();
/**
* <code>optional string extra = 12;</code>
*/
com.google.protobuf.ByteString
getExtraBytes();
} }
/** /**
* Protobuf type {@code MessageContent} * Protobuf type {@code MessageContent}
@@ -11566,6 +11581,11 @@ public final class WFCMessage {
mentionedTarget_.add(input.readBytes()); mentionedTarget_.add(input.readBytes());
break; break;
} }
case 98: {
bitField0_ |= 0x00000400;
extra_ = input.readBytes();
break;
}
} }
} }
} catch (com.google.protobuf.InvalidProtocolBufferException e) { } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -11907,6 +11927,49 @@ public final class WFCMessage {
return mentionedTarget_.getByteString(index); return mentionedTarget_.getByteString(index);
} }
// optional string extra = 12;
public static final int EXTRA_FIELD_NUMBER = 12;
private java.lang.Object extra_;
/**
* <code>optional string extra = 12;</code>
*/
public boolean hasExtra() {
return ((bitField0_ & 0x00000400) == 0x00000400);
}
/**
* <code>optional string extra = 12;</code>
*/
public java.lang.String getExtra() {
java.lang.Object ref = extra_;
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
if (bs.isValidUtf8()) {
extra_ = s;
}
return s;
}
}
/**
* <code>optional string extra = 12;</code>
*/
public com.google.protobuf.ByteString
getExtraBytes() {
java.lang.Object ref = extra_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
extra_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
private void initFields() { private void initFields() {
type_ = 0; type_ = 0;
searchableContent_ = ""; searchableContent_ = "";
@@ -11919,6 +11982,7 @@ public final class WFCMessage {
expireDuration_ = 0; expireDuration_ = 0;
mentionedType_ = 0; mentionedType_ = 0;
mentionedTarget_ = com.google.protobuf.LazyStringArrayList.EMPTY; mentionedTarget_ = com.google.protobuf.LazyStringArrayList.EMPTY;
extra_ = "";
} }
private byte memoizedIsInitialized = -1; private byte memoizedIsInitialized = -1;
public final boolean isInitialized() { public final boolean isInitialized() {
@@ -11969,6 +12033,9 @@ public final class WFCMessage {
for (int i = 0; i < mentionedTarget_.size(); i++) { for (int i = 0; i < mentionedTarget_.size(); i++) {
output.writeBytes(11, mentionedTarget_.getByteString(i)); output.writeBytes(11, mentionedTarget_.getByteString(i));
} }
if (((bitField0_ & 0x00000400) == 0x00000400)) {
output.writeBytes(12, getExtraBytes());
}
getUnknownFields().writeTo(output); getUnknownFields().writeTo(output);
} }
@@ -12027,6 +12094,10 @@ public final class WFCMessage {
size += dataSize; size += dataSize;
size += 1 * getMentionedTargetList().size(); size += 1 * getMentionedTargetList().size();
} }
if (((bitField0_ & 0x00000400) == 0x00000400)) {
size += com.google.protobuf.CodedOutputStream
.computeBytesSize(12, getExtraBytes());
}
size += getUnknownFields().getSerializedSize(); size += getUnknownFields().getSerializedSize();
memoizedSerializedSize = size; memoizedSerializedSize = size;
return size; return size;
@@ -12165,6 +12236,8 @@ public final class WFCMessage {
bitField0_ = (bitField0_ & ~0x00000200); bitField0_ = (bitField0_ & ~0x00000200);
mentionedTarget_ = com.google.protobuf.LazyStringArrayList.EMPTY; mentionedTarget_ = com.google.protobuf.LazyStringArrayList.EMPTY;
bitField0_ = (bitField0_ & ~0x00000400); bitField0_ = (bitField0_ & ~0x00000400);
extra_ = "";
bitField0_ = (bitField0_ & ~0x00000800);
return this; return this;
} }
@@ -12239,6 +12312,10 @@ public final class WFCMessage {
bitField0_ = (bitField0_ & ~0x00000400); bitField0_ = (bitField0_ & ~0x00000400);
} }
result.mentionedTarget_ = mentionedTarget_; result.mentionedTarget_ = mentionedTarget_;
if (((from_bitField0_ & 0x00000800) == 0x00000800)) {
to_bitField0_ |= 0x00000400;
}
result.extra_ = extra_;
result.bitField0_ = to_bitField0_; result.bitField0_ = to_bitField0_;
onBuilt(); onBuilt();
return result; return result;
@@ -12303,6 +12380,11 @@ public final class WFCMessage {
} }
onChanged(); onChanged();
} }
if (other.hasExtra()) {
bitField0_ |= 0x00000800;
extra_ = other.extra_;
onChanged();
}
this.mergeUnknownFields(other.getUnknownFields()); this.mergeUnknownFields(other.getUnknownFields());
return this; return this;
} }
@@ -12924,6 +13006,80 @@ public final class WFCMessage {
return this; return this;
} }
// optional string extra = 12;
private java.lang.Object extra_ = "";
/**
* <code>optional string extra = 12;</code>
*/
public boolean hasExtra() {
return ((bitField0_ & 0x00000800) == 0x00000800);
}
/**
* <code>optional string extra = 12;</code>
*/
public java.lang.String getExtra() {
java.lang.Object ref = extra_;
if (!(ref instanceof java.lang.String)) {
java.lang.String s = ((com.google.protobuf.ByteString) ref)
.toStringUtf8();
extra_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* <code>optional string extra = 12;</code>
*/
public com.google.protobuf.ByteString
getExtraBytes() {
java.lang.Object ref = extra_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
extra_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* <code>optional string extra = 12;</code>
*/
public Builder setExtra(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000800;
extra_ = value;
onChanged();
return this;
}
/**
* <code>optional string extra = 12;</code>
*/
public Builder clearExtra() {
bitField0_ = (bitField0_ & ~0x00000800);
extra_ = getDefaultInstance().getExtra();
onChanged();
return this;
}
/**
* <code>optional string extra = 12;</code>
*/
public Builder setExtraBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000800;
extra_ = value;
onChanged();
return this;
}
// @@protoc_insertion_point(builder_scope:MessageContent) // @@protoc_insertion_point(builder_scope:MessageContent)
} }
@@ -59433,130 +59589,130 @@ public final class WFCMessage {
"\rListenChannel\022\022\n\nchannel_id\030\001 \002(\t\022\016\n\006li" + "\rListenChannel\022\022\n\nchannel_id\030\001 \002(\t\022\016\n\006li" +
"sten\030\002 \002(\005\"E\n\023SearchChannelResult\022\035\n\007cha" + "sten\030\002 \002(\005\"E\n\023SearchChannelResult\022\035\n\007cha" +
"nnel\030\001 \003(\0132\014.ChannelInfo\022\017\n\007keyword\030\002 \002(", "nnel\030\001 \003(\0132\014.ChannelInfo\022\017\n\007keyword\030\002 \002(",
"\t\"\373\001\n\016MessageContent\022\014\n\004type\030\001 \002(\005\022\032\n\022se" + "\t\"\212\002\n\016MessageContent\022\014\n\004type\030\001 \002(\005\022\032\n\022se" +
"archable_content\030\002 \001(\t\022\024\n\014push_content\030\003" + "archable_content\030\002 \001(\t\022\024\n\014push_content\030\003" +
" \001(\t\022\017\n\007content\030\004 \001(\t\022\014\n\004data\030\005 \001(\014\022\021\n\tm" + " \001(\t\022\017\n\007content\030\004 \001(\t\022\014\n\004data\030\005 \001(\014\022\021\n\tm" +
"ediaType\030\006 \001(\005\022\026\n\016remoteMediaUrl\030\007 \001(\t\022\024" + "ediaType\030\006 \001(\005\022\026\n\016remoteMediaUrl\030\007 \001(\t\022\024" +
"\n\014persist_flag\030\010 \001(\005\022\027\n\017expire_duration\030" + "\n\014persist_flag\030\010 \001(\005\022\027\n\017expire_duration\030" +
"\t \001(\005\022\026\n\016mentioned_type\030\n \001(\005\022\030\n\020mention" + "\t \001(\005\022\026\n\016mentioned_type\030\n \001(\005\022\030\n\020mention" +
"ed_target\030\013 \003(\t\"\207\001\n\025AddGroupMemberReques" + "ed_target\030\013 \003(\t\022\r\n\005extra\030\014 \001(\t\"\207\001\n\025AddGr" +
"t\022\020\n\010group_id\030\001 \002(\t\022\"\n\014added_member\030\002 \003(" + "oupMemberRequest\022\020\n\010group_id\030\001 \002(\t\022\"\n\014ad" +
"\0132\014.GroupMember\022\017\n\007to_line\030\003 \003(\005\022\'\n\016noti" + "ded_member\030\002 \003(\0132\014.GroupMember\022\017\n\007to_lin" +
"fy_content\030\004 \001(\0132\017.MessageContent\"e\n\022Cre", "e\030\003 \003(\005\022\'\n\016notify_content\030\004 \001(\0132\017.Messag",
"ateGroupRequest\022\025\n\005group\030\001 \002(\0132\006.Group\022\017" + "eContent\"e\n\022CreateGroupRequest\022\025\n\005group\030" +
"\n\007to_line\030\002 \003(\005\022\'\n\016notify_content\030\003 \001(\0132" + "\001 \002(\0132\006.Group\022\017\n\007to_line\030\002 \003(\005\022\'\n\016notify" +
"\017.MessageContent\"a\n\023DismissGroupRequest\022" + "_content\030\003 \001(\0132\017.MessageContent\"a\n\023Dismi" +
"\020\n\010group_id\030\001 \002(\t\022\017\n\007to_line\030\002 \003(\005\022\'\n\016no" + "ssGroupRequest\022\020\n\010group_id\030\001 \002(\t\022\017\n\007to_l" +
"tify_content\030\003 \001(\0132\017.MessageContent\"\226\001\n\r" + "ine\030\002 \003(\005\022\'\n\016notify_content\030\003 \001(\0132\017.Mess" +
"FriendRequest\022\020\n\010from_uid\030\001 \001(\t\022\016\n\006to_ui" + "ageContent\"\226\001\n\rFriendRequest\022\020\n\010from_uid" +
"d\030\002 \002(\t\022\016\n\006reason\030\003 \002(\t\022\016\n\006status\030\004 \001(\005\022" + "\030\001 \001(\t\022\016\n\006to_uid\030\002 \002(\t\022\016\n\006reason\030\003 \002(\t\022\016" +
"\021\n\tupdate_dt\030\005 \001(\003\022\030\n\020from_read_status\030\006" + "\n\006status\030\004 \001(\005\022\021\n\tupdate_dt\030\005 \001(\003\022\030\n\020fro" +
" \001(\010\022\026\n\016to_read_status\030\007 \001(\010\"#\n\rGeneralR" + "m_read_status\030\006 \001(\010\022\026\n\016to_read_status\030\007 " +
"esult\022\022\n\nerror_code\030\001 \002(\005\"S\n\024GetUploadTo", "\001(\010\"#\n\rGeneralResult\022\022\n\nerror_code\030\001 \002(\005",
"kenResult\022\016\n\006domain\030\001 \002(\t\022\r\n\005token\030\002 \002(\t" + "\"S\n\024GetUploadTokenResult\022\016\n\006domain\030\001 \002(\t" +
"\022\016\n\006server\030\003 \002(\t\022\014\n\004port\030\004 \001(\005\"9\n\023Handle" + "\022\r\n\005token\030\002 \002(\t\022\016\n\006server\030\003 \002(\t\022\014\n\004port\030" +
"FriendRequest\022\022\n\ntarget_uid\030\001 \002(\t\022\016\n\006sta" + "\004 \001(\005\"9\n\023HandleFriendRequest\022\022\n\ntarget_u" +
"tus\030\002 \002(\005\"\023\n\005IDBuf\022\n\n\002id\030\001 \002(\t\"\027\n\tIDList" + "id\030\001 \002(\t\022\016\n\006status\030\002 \002(\005\"\023\n\005IDBuf\022\n\n\002id\030" +
"Buf\022\n\n\002id\030\001 \003(\t\"\256\001\n\007Message\022#\n\014conversat" + "\001 \002(\t\"\027\n\tIDListBuf\022\n\n\002id\030\001 \003(\t\"\256\001\n\007Messa" +
"ion\030\001 \002(\0132\r.Conversation\022\021\n\tfrom_user\030\002 " + "ge\022#\n\014conversation\030\001 \002(\0132\r.Conversation\022" +
"\002(\t\022 \n\007content\030\003 \002(\0132\017.MessageContent\022\022\n" + "\021\n\tfrom_user\030\002 \002(\t\022 \n\007content\030\003 \002(\0132\017.Me" +
"\nmessage_id\030\004 \001(\003\022\030\n\020server_timestamp\030\005 " + "ssageContent\022\022\n\nmessage_id\030\004 \001(\003\022\030\n\020serv" +
"\001(\003\022\017\n\007to_user\030\006 \001(\t\022\n\n\002to\030\007 \003(\t\"\332\001\n\004Use" + "er_timestamp\030\005 \001(\003\022\017\n\007to_user\030\006 \001(\t\022\n\n\002t" +
"r\022\013\n\003uid\030\001 \002(\t\022\014\n\004name\030\002 \001(\t\022\024\n\014display_", "o\030\007 \003(\t\"\332\001\n\004User\022\013\n\003uid\030\001 \002(\t\022\014\n\004name\030\002 ",
"name\030\003 \001(\t\022\020\n\010portrait\030\004 \001(\t\022\016\n\006mobile\030\005" + "\001(\t\022\024\n\014display_name\030\003 \001(\t\022\020\n\010portrait\030\004 " +
" \001(\t\022\r\n\005email\030\006 \001(\t\022\017\n\007address\030\007 \001(\t\022\017\n\007" + "\001(\t\022\016\n\006mobile\030\005 \001(\t\022\r\n\005email\030\006 \001(\t\022\017\n\007ad" +
"company\030\010 \001(\t\022\r\n\005extra\030\t \001(\t\022\021\n\tupdate_d" + "dress\030\007 \001(\t\022\017\n\007company\030\010 \001(\t\022\r\n\005extra\030\t " +
"t\030\n \001(\003\022\016\n\006gender\030\013 \001(\005\022\016\n\006social\030\014 \001(\t\022" + "\001(\t\022\021\n\tupdate_dt\030\n \001(\003\022\016\n\006gender\030\013 \001(\005\022\016" +
"\014\n\004type\030\r \001(\005\"c\n\005Robot\022\013\n\003uid\030\001 \002(\t\022\r\n\005s" + "\n\006social\030\014 \001(\t\022\014\n\004type\030\r \001(\005\"c\n\005Robot\022\013\n" +
"tate\030\002 \002(\005\022\r\n\005owner\030\003 \001(\t\022\016\n\006secret\030\004 \001(" + "\003uid\030\001 \002(\t\022\r\n\005state\030\002 \002(\005\022\r\n\005owner\030\003 \001(\t" +
"\t\022\020\n\010callback\030\005 \001(\t\022\r\n\005extra\030\006 \001(\t\"(\n\017Ge" + "\022\016\n\006secret\030\004 \001(\t\022\020\n\010callback\030\005 \001(\t\022\r\n\005ex" +
"tRobotsResult\022\025\n\005entry\030\001 \003(\0132\006.Robot\"P\n\005" + "tra\030\006 \001(\t\"(\n\017GetRobotsResult\022\025\n\005entry\030\001 " +
"Thing\022\013\n\003uid\030\001 \002(\t\022\r\n\005state\030\002 \002(\005\022\r\n\005tok" + "\003(\0132\006.Robot\"P\n\005Thing\022\013\n\003uid\030\001 \002(\t\022\r\n\005sta" +
"en\030\003 \002(\t\022\r\n\005owner\030\004 \001(\t\022\r\n\005extra\030\005 \001(\t\"(", "te\030\002 \002(\005\022\r\n\005token\030\003 \002(\t\022\r\n\005owner\030\004 \001(\t\022\r",
"\n\017GetThingsResult\022\025\n\005entry\030\001 \003(\0132\006.Thing" + "\n\005extra\030\005 \001(\t\"(\n\017GetThingsResult\022\025\n\005entr" +
"\"g\n\030UploadDeviceTokenRequest\022\020\n\010platform" + "y\030\001 \003(\0132\006.Thing\"g\n\030UploadDeviceTokenRequ" +
"\030\001 \002(\005\022\020\n\010app_name\030\002 \002(\t\022\024\n\014device_token" + "est\022\020\n\010platform\030\001 \002(\005\022\020\n\010app_name\030\002 \002(\t\022" +
"\030\003 \002(\t\022\021\n\tpush_type\030\004 \002(\005\"\201\001\n\026ModifyGrou" + "\024\n\014device_token\030\003 \002(\t\022\021\n\tpush_type\030\004 \002(\005" +
"pInfoRequest\022\020\n\010group_id\030\001 \002(\t\022\014\n\004type\030\002" + "\"\201\001\n\026ModifyGroupInfoRequest\022\020\n\010group_id\030" +
" \002(\005\022\r\n\005value\030\003 \002(\t\022\017\n\007to_line\030\004 \003(\005\022\'\n\016" + "\001 \002(\t\022\014\n\004type\030\002 \002(\005\022\r\n\005value\030\003 \002(\t\022\017\n\007to" +
"notify_content\030\005 \001(\0132\017.MessageContent\"\203\001" + "_line\030\004 \003(\005\022\'\n\016notify_content\030\005 \001(\0132\017.Me" +
"\n\026SetGroupManagerRequest\022\020\n\010group_id\030\001 \002" + "ssageContent\"\203\001\n\026SetGroupManagerRequest\022" +
"(\t\022\014\n\004type\030\002 \002(\005\022\017\n\007user_id\030\003 \003(\t\022\017\n\007to_" + "\020\n\010group_id\030\001 \002(\t\022\014\n\004type\030\002 \002(\005\022\017\n\007user_" +
"line\030\004 \003(\005\022\'\n\016notify_content\030\005 \001(\0132\017.Mes", "id\030\003 \003(\t\022\017\n\007to_line\030\004 \003(\005\022\'\n\016notify_cont",
"sageContent\"(\n\tInfoEntry\022\014\n\004type\030\001 \002(\005\022\r" + "ent\030\005 \001(\0132\017.MessageContent\"(\n\tInfoEntry\022" +
"\n\005value\030\002 \002(\t\"0\n\023ModifyMyInfoRequest\022\031\n\005" + "\014\n\004type\030\001 \002(\005\022\r\n\005value\030\002 \002(\t\"0\n\023ModifyMy" +
"entry\030\001 \003(\0132\n.InfoEntry\";\n\rNotifyMessage" + "InfoRequest\022\031\n\005entry\030\001 \003(\0132\n.InfoEntry\";" +
"\022\014\n\004type\030\001 \002(\005\022\014\n\004head\030\002 \002(\003\022\016\n\006target\030\003" + "\n\rNotifyMessage\022\014\n\004type\030\001 \002(\005\022\014\n\004head\030\002 " +
" \001(\t\"=\n\022PullMessageRequest\022\n\n\002id\030\001 \002(\003\022\014" + "\002(\003\022\016\n\006target\030\003 \001(\t\"=\n\022PullMessageReques" +
"\n\004type\030\002 \002(\005\022\r\n\005delay\030\003 \001(\003\"M\n\021PullMessa" + "t\022\n\n\002id\030\001 \002(\003\022\014\n\004type\030\002 \002(\005\022\r\n\005delay\030\003 \001" +
"geResult\022\031\n\007message\030\001 \003(\0132\010.Message\022\017\n\007c" + "(\003\"M\n\021PullMessageResult\022\031\n\007message\030\001 \003(\013" +
"urrent\030\002 \002(\003\022\014\n\004head\030\003 \002(\003\"/\n\023PullGroupI" + "2\010.Message\022\017\n\007current\030\002 \002(\003\022\014\n\004head\030\003 \002(" +
"nfoResult\022\030\n\004info\030\001 \003(\0132\n.GroupInfo\"6\n\026P" + "\003\"/\n\023PullGroupInfoResult\022\030\n\004info\030\001 \003(\0132\n" +
"ullGroupMemberRequest\022\016\n\006target\030\001 \002(\t\022\014\n", ".GroupInfo\"6\n\026PullGroupMemberRequest\022\016\n\006",
"\004head\030\002 \002(\003\"5\n\025PullGroupMemberResult\022\034\n\006" + "target\030\001 \002(\t\022\014\n\004head\030\002 \002(\003\"5\n\025PullGroupM" +
"member\030\001 \003(\0132\014.GroupMember\"-\n\013UserReques" + "emberResult\022\034\n\006member\030\001 \003(\0132\014.GroupMembe" +
"t\022\013\n\003uid\030\001 \002(\t\022\021\n\tupdate_dt\030\002 \001(\003\"0\n\017Pul" + "r\"-\n\013UserRequest\022\013\n\003uid\030\001 \002(\t\022\021\n\tupdate_" +
"lUserRequest\022\035\n\007request\030\001 \003(\0132\014.UserRequ" + "dt\030\002 \001(\003\"0\n\017PullUserRequest\022\035\n\007request\030\001" +
"est\"/\n\nUserResult\022\023\n\004user\030\001 \002(\0132\005.User\022\014" + " \003(\0132\014.UserRequest\"/\n\nUserResult\022\023\n\004user" +
"\n\004code\030\002 \002(\005\"-\n\016PullUserResult\022\033\n\006result" + "\030\001 \002(\0132\005.User\022\014\n\004code\030\002 \002(\005\"-\n\016PullUserR" +
"\030\001 \003(\0132\013.UserResult\"^\n\020QuitGroupRequest\022" + "esult\022\033\n\006result\030\001 \003(\0132\013.UserResult\"^\n\020Qu" +
"\020\n\010group_id\030\001 \002(\t\022\017\n\007to_line\030\002 \003(\005\022\'\n\016no" + "itGroupRequest\022\020\n\010group_id\030\001 \002(\t\022\017\n\007to_l" +
"tify_content\030\003 \001(\0132\017.MessageContent\"~\n\030R" + "ine\030\002 \003(\005\022\'\n\016notify_content\030\003 \001(\0132\017.Mess" +
"emoveGroupMemberRequest\022\020\n\010group_id\030\001 \002(", "ageContent\"~\n\030RemoveGroupMemberRequest\022\020",
"\t\022\026\n\016removed_member\030\002 \003(\t\022\017\n\007to_line\030\003 \003" + "\n\010group_id\030\001 \002(\t\022\026\n\016removed_member\030\002 \003(\t" +
"(\005\022\'\n\016notify_content\030\004 \001(\0132\017.MessageCont" + "\022\017\n\007to_line\030\003 \003(\005\022\'\n\016notify_content\030\004 \001(" +
"ent\"u\n\024TransferGroupRequest\022\020\n\010group_id\030" + "\0132\017.MessageContent\"u\n\024TransferGroupReque" +
"\001 \002(\t\022\021\n\tnew_owner\030\002 \002(\t\022\017\n\007to_line\030\003 \003(" + "st\022\020\n\010group_id\030\001 \002(\t\022\021\n\tnew_owner\030\002 \002(\t\022" +
"\005\022\'\n\016notify_content\030\004 \001(\0132\017.MessageConte" + "\017\n\007to_line\030\003 \003(\005\022\'\n\016notify_content\030\004 \001(\013" +
"nt\"s\n\026ModifyGroupMemberAlias\022\020\n\010group_id" + "2\017.MessageContent\"s\n\026ModifyGroupMemberAl" +
"\030\001 \002(\t\022\r\n\005alias\030\002 \002(\t\022\017\n\007to_line\030\003 \003(\005\022\'" + "ias\022\020\n\010group_id\030\001 \002(\t\022\r\n\005alias\030\002 \002(\t\022\017\n\007" +
"\n\016notify_content\030\004 \001(\0132\017.MessageContent\"" + "to_line\030\003 \003(\005\022\'\n\016notify_content\030\004 \001(\0132\017." +
"P\n\020UserSettingEntry\022\r\n\005scope\030\001 \002(\005\022\013\n\003ke" + "MessageContent\"P\n\020UserSettingEntry\022\r\n\005sc" +
"y\030\002 \002(\t\022\r\n\005value\030\003 \002(\t\022\021\n\tupdate_dt\030\004 \002(", "ope\030\001 \002(\005\022\013\n\003key\030\002 \002(\t\022\r\n\005value\030\003 \002(\t\022\021\n",
"\003\"A\n\024ModifyUserSettingReq\022\r\n\005scope\030\001 \002(\005" + "\tupdate_dt\030\004 \002(\003\"A\n\024ModifyUserSettingReq" +
"\022\013\n\003key\030\002 \002(\t\022\r\n\005value\030\003 \002(\t\"\032\n\007Version\022" + "\022\r\n\005scope\030\001 \002(\005\022\013\n\003key\030\002 \002(\t\022\r\n\005value\030\003 " +
"\017\n\007version\030\001 \002(\003\"8\n\024GetUserSettingResult" + "\002(\t\"\032\n\007Version\022\017\n\007version\030\001 \002(\003\"8\n\024GetUs" +
"\022 \n\005entry\030\001 \003(\0132\021.UserSettingEntry\"F\n\006Fr" + "erSettingResult\022 \n\005entry\030\001 \003(\0132\021.UserSet" +
"iend\022\013\n\003uid\030\001 \002(\t\022\r\n\005state\030\002 \002(\005\022\021\n\tupda" + "tingEntry\"F\n\006Friend\022\013\n\003uid\030\001 \002(\t\022\r\n\005stat" +
"te_dt\030\003 \002(\003\022\r\n\005alias\030\004 \001(\t\"*\n\020GetFriends" + "e\030\002 \002(\005\022\021\n\tupdate_dt\030\003 \002(\003\022\r\n\005alias\030\004 \001(" +
"Result\022\026\n\005entry\030\001 \003(\0132\007.Friend\"7\n\026GetFri" + "\t\"*\n\020GetFriendsResult\022\026\n\005entry\030\001 \003(\0132\007.F" +
"endRequestResult\022\035\n\005entry\030\001 \003(\0132\016.Friend" + "riend\"7\n\026GetFriendRequestResult\022\035\n\005entry" +
"Request\"\243\001\n\021ConnectAckPayload\022\020\n\010msg_hea" + "\030\001 \003(\0132\016.FriendRequest\"\243\001\n\021ConnectAckPay" +
"d\030\001 \001(\003\022\023\n\013friend_head\030\002 \001(\003\022\026\n\016friend_r", "load\022\020\n\010msg_head\030\001 \001(\003\022\023\n\013friend_head\030\002 ",
"q_head\030\003 \001(\003\022\024\n\014setting_head\030\004 \001(\003\022\021\n\tno" + "\001(\003\022\026\n\016friend_rq_head\030\003 \001(\003\022\024\n\014setting_h" +
"de_addr\030\005 \001(\t\022\021\n\tnode_port\030\006 \001(\005\022\023\n\013serv" + "ead\030\004 \001(\003\022\021\n\tnode_addr\030\005 \001(\t\022\021\n\tnode_por" +
"er_time\030\007 \001(\003\"P\n\rIMHttpWrapper\022\r\n\005token\030" + "t\030\006 \001(\005\022\023\n\013server_time\030\007 \001(\003\"P\n\rIMHttpWr" +
"\001 \002(\t\022\021\n\tclient_id\030\002 \002(\t\022\017\n\007request\030\003 \002(" + "apper\022\r\n\005token\030\001 \002(\t\022\021\n\tclient_id\030\002 \002(\t\022" +
"\t\022\014\n\004data\030\004 \001(\014\"A\n\021SearchUserRequest\022\017\n\007" + "\017\n\007request\030\003 \002(\t\022\014\n\004data\030\004 \001(\014\"A\n\021Search" +
"keyword\030\001 \002(\t\022\r\n\005fuzzy\030\002 \001(\005\022\014\n\004page\030\003 \001" + "UserRequest\022\017\n\007keyword\030\001 \002(\t\022\r\n\005fuzzy\030\002 " +
"(\005\"(\n\020SearchUserResult\022\024\n\005entry\030\001 \003(\0132\005." + "\001(\005\022\014\n\004page\030\003 \001(\005\"(\n\020SearchUserResult\022\024\n" +
"User\"@\n\026GetChatroomInfoRequest\022\023\n\013chatro" + "\005entry\030\001 \003(\0132\005.User\"@\n\026GetChatroomInfoRe" +
"om_id\030\001 \002(\t\022\021\n\tupdate_dt\030\002 \001(\003\"\227\001\n\014Chatr" + "quest\022\023\n\013chatroom_id\030\001 \002(\t\022\021\n\tupdate_dt\030" +
"oomInfo\022\r\n\005title\030\001 \002(\t\022\014\n\004desc\030\002 \001(\t\022\020\n\010", "\002 \001(\003\"\227\001\n\014ChatroomInfo\022\r\n\005title\030\001 \002(\t\022\014\n",
"portrait\030\003 \001(\t\022\024\n\014member_count\030\004 \001(\005\022\021\n\t" + "\004desc\030\002 \001(\t\022\020\n\010portrait\030\003 \001(\t\022\024\n\014member_" +
"create_dt\030\005 \001(\003\022\021\n\tupdate_dt\030\006 \001(\003\022\r\n\005ex" + "count\030\004 \001(\005\022\021\n\tcreate_dt\030\005 \001(\003\022\021\n\tupdate" +
"tra\030\007 \001(\t\022\r\n\005state\030\010 \001(\005\"F\n\034GetChatroomM" + "_dt\030\006 \001(\003\022\r\n\005extra\030\007 \001(\t\022\r\n\005state\030\010 \001(\005\"" +
"emberInfoRequest\022\023\n\013chatroom_id\030\001 \002(\t\022\021\n" + "F\n\034GetChatroomMemberInfoRequest\022\023\n\013chatr" +
"\tmax_count\030\002 \001(\005\";\n\022ChatroomMemberInfo\022\024" + "oom_id\030\001 \002(\t\022\021\n\tmax_count\030\002 \001(\005\";\n\022Chatr" +
"\n\014member_count\030\001 \001(\005\022\017\n\007members\030\002 \003(\t\"\026\n" + "oomMemberInfo\022\024\n\014member_count\030\001 \001(\005\022\017\n\007m" +
"\010INT64Buf\022\n\n\002id\030\001 \002(\003\"4\n\023NotifyRecallMes" + "embers\030\002 \003(\t\"\026\n\010INT64Buf\022\n\n\002id\030\001 \002(\003\"4\n\023" +
"sage\022\n\n\002id\030\001 \002(\003\022\021\n\tfrom_user\030\002 \002(\t\"/\n\020B" + "NotifyRecallMessage\022\n\n\002id\030\001 \002(\003\022\021\n\tfrom_" +
"lackUserRequest\022\013\n\003uid\030\001 \002(\t\022\016\n\006status\030\002" + "user\030\002 \002(\t\"/\n\020BlackUserRequest\022\013\n\003uid\030\001 " +
" \002(\005\"\323\001\n\014RouteRequest\022\013\n\003app\030\001 \001(\t\022\020\n\010pl", "\002(\t\022\016\n\006status\030\002 \002(\005\"\323\001\n\014RouteRequest\022\013\n\003",
"atform\030\002 \001(\005\022\021\n\tpush_type\030\003 \001(\005\022\023\n\013devic" + "app\030\001 \001(\t\022\020\n\010platform\030\002 \001(\005\022\021\n\tpush_type" +
"e_name\030\004 \001(\t\022\026\n\016device_version\030\005 \001(\t\022\022\n\n" + "\030\003 \001(\005\022\023\n\013device_name\030\004 \001(\t\022\026\n\016device_ve" +
"phone_name\030\006 \001(\t\022\020\n\010language\030\007 \001(\t\022\024\n\014ca" + "rsion\030\005 \001(\t\022\022\n\nphone_name\030\006 \001(\t\022\020\n\010langu" +
"rrier_name\030\010 \001(\t\022\023\n\013app_version\030\t \001(\t\022\023\n" + "age\030\007 \001(\t\022\024\n\014carrier_name\030\010 \001(\t\022\023\n\013app_v" +
"\013sdk_version\030\n \001(\t\"D\n\rRouteResponse\022\014\n\004h" + "ersion\030\t \001(\t\022\023\n\013sdk_version\030\n \001(\t\"D\n\rRou" +
"ost\030\001 \002(\t\022\021\n\tlong_port\030\002 \002(\005\022\022\n\nshort_po" + "teResponse\022\014\n\004host\030\001 \002(\t\022\021\n\tlong_port\030\002 " +
"rt\030\003 \002(\005\"5\n\017GetTokenRequest\022\017\n\007user_id\030\001" + "\002(\005\022\022\n\nshort_port\030\003 \002(\005\"5\n\017GetTokenReque" +
" \002(\t\022\021\n\tclient_id\030\002 \002(\t\"\\\n\022LoadRemoteMes" + "st\022\017\n\007user_id\030\001 \002(\t\022\021\n\tclient_id\030\002 \002(\t\"\\" +
"sages\022#\n\014conversation\030\001 \002(\0132\r.Conversati" + "\n\022LoadRemoteMessages\022#\n\014conversation\030\001 \002" +
"on\022\022\n\nbefore_uid\030\002 \002(\003\022\r\n\005count\030\003 \002(\005\"a\n", "(\0132\r.Conversation\022\022\n\nbefore_uid\030\002 \002(\003\022\r\n",
"\020MultiCastMessage\022\021\n\tfrom_user\030\001 \002(\t\022 \n\007" + "\005count\030\003 \002(\005\"a\n\020MultiCastMessage\022\021\n\tfrom" +
"content\030\002 \002(\0132\017.MessageContent\022\n\n\002to\030\003 \003" + "_user\030\001 \002(\t\022 \n\007content\030\002 \002(\0132\017.MessageCo" +
"(\t\022\014\n\004line\030\004 \002(\005B#\n\025cn.wildfirechat.prot" + "ntent\022\n\n\002to\030\003 \003(\t\022\014\n\004line\030\004 \002(\005B#\n\025cn.wi" +
"oB\nWFCMessage" "ldfirechat.protoB\nWFCMessage"
}; };
com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner =
new com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner() { new com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner() {
@@ -59646,7 +59802,7 @@ public final class WFCMessage {
internal_static_MessageContent_fieldAccessorTable = new internal_static_MessageContent_fieldAccessorTable = new
com.google.protobuf.GeneratedMessage.FieldAccessorTable( com.google.protobuf.GeneratedMessage.FieldAccessorTable(
internal_static_MessageContent_descriptor, internal_static_MessageContent_descriptor,
new java.lang.String[] { "Type", "SearchableContent", "PushContent", "Content", "Data", "MediaType", "RemoteMediaUrl", "PersistFlag", "ExpireDuration", "MentionedType", "MentionedTarget", }); new java.lang.String[] { "Type", "SearchableContent", "PushContent", "Content", "Data", "MediaType", "RemoteMediaUrl", "PersistFlag", "ExpireDuration", "MentionedType", "MentionedTarget", "Extra", });
internal_static_AddGroupMemberRequest_descriptor = internal_static_AddGroupMemberRequest_descriptor =
getDescriptor().getMessageTypes().get(14); getDescriptor().getMessageTypes().get(14);
internal_static_AddGroupMemberRequest_fieldAccessorTable = new internal_static_AddGroupMemberRequest_fieldAccessorTable = new