public com.avos.avoscloud.Messages.BlacklistCommand buildPartial() { com.avos.avoscloud.Messages.BlacklistCommand result = new com.avos.avoscloud.Messages.BlacklistCommand(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0;
dataSize += computeStringSizeNoTag(toPids_.getRaw(i)); size += 1 * getToPidsList().size(); dataSize += computeStringSizeNoTag(toCids_.getRaw(i)); size += 1 * getToCidsList().size(); dataSize += computeStringSizeNoTag(blockedPids_.getRaw(i)); size += 1 * getBlockedPidsList().size(); dataSize += computeStringSizeNoTag(blockedCids_.getRaw(i)); size += 1 * getBlockedCidsList().size(); dataSize += computeStringSizeNoTag(allowedPids_.getRaw(i)); size += 1 * getAllowedPidsList().size();
hash = (19 * hash) + getDescriptor().hashCode(); if (hasSrcCid()) { hash = (37 * hash) + SRCCID_FIELD_NUMBER; hash = (53 * hash) + getSrcCid().hashCode(); if (getToPidsCount() > 0) { hash = (37 * hash) + TOPIDS_FIELD_NUMBER; hash = (53 * hash) + getToPidsList().hashCode(); if (hasSrcPid()) { hash = (37 * hash) + SRCPID_FIELD_NUMBER; hash = (53 * hash) + getSrcPid().hashCode(); if (getToCidsCount() > 0) { hash = (37 * hash) + TOCIDS_FIELD_NUMBER; hash = (53 * hash) + getToCidsList().hashCode(); if (hasLimit()) { hash = (37 * hash) + LIMIT_FIELD_NUMBER; hash = (53 * hash) + getLimit(); if (hasNext()) { hash = (37 * hash) + NEXT_FIELD_NUMBER; hash = (53 * hash) + getNext().hashCode(); if (getBlockedPidsCount() > 0) { hash = (37 * hash) + BLOCKEDPIDS_FIELD_NUMBER; hash = (53 * hash) + getBlockedPidsList().hashCode();
if (hasBlacklistMessage()) { result = result && getBlacklistMessage() .equals(other.getBlacklistMessage());
public Builder mergeFrom(com.avos.avoscloud.Messages.BlacklistCommand other) { if (other == com.avos.avoscloud.Messages.BlacklistCommand.getDefaultInstance()) return this; if (other.hasSrcCid()) { bitField0_ |= 0x00000001; srcCid_ = other.srcCid_; if (other.hasSrcPid()) { bitField0_ |= 0x00000004; srcPid_ = other.srcPid_; if (other.hasLimit()) { setLimit(other.getLimit()); if (other.hasNext()) { bitField0_ |= 0x00000020; next_ = other.next_; if (other.hasT()) { setT(other.getT()); if (other.hasN()) { bitField0_ |= 0x00000800; n_ = other.n_; onChanged(); if (other.hasS()) { bitField0_ |= 0x00001000; s_ = other.s_;
result = result && (hasSrcCid() == other.hasSrcCid()); if (hasSrcCid()) { result = result && getSrcCid() .equals(other.getSrcCid()); result = result && getToPidsList() .equals(other.getToPidsList()); result = result && (hasSrcPid() == other.hasSrcPid()); if (hasSrcPid()) { result = result && getSrcPid() .equals(other.getSrcPid()); result = result && getToCidsList() .equals(other.getToCidsList()); result = result && (hasLimit() == other.hasLimit()); if (hasLimit()) { result = result && (getLimit() == other.getLimit()); result = result && (hasNext() == other.hasNext()); if (hasNext()) { result = result && getNext() .equals(other.getNext()); result = result && getBlockedPidsList() .equals(other.getBlockedPidsList()); result = result && getBlockedCidsList() .equals(other.getBlockedCidsList()); result = result && getAllowedPidsList()
LogUtil.log.w("not found requestKey: " + requestKey); } else { List<String> result = blacklistCommand.getBlockedPidsList(); String[] resultArray = new String[null == result ? 0: result.size()]; if (null != result) { result.toArray(resultArray); String cid = blacklistCommand.getSrcCid(); Bundle bundle = new Bundle(); bundle.putStringArray(Conversation.callbackData, resultArray); || BlacklistCommandPacket.BlacklistCommandOp.UNBLOCKED.equals(operation)){ String conversationId = blacklistCommand.getSrcCid(); AVConversationHolder internalConversation = session.getConversationHolder(conversationId, Conversation.CONV_TYPE_NORMAL); Operation op = session.conversationOperationCache.poll(requestKey);
/** * <code>optional .com.avos.avoscloud.BlacklistCommand blacklistMessage = 116;</code> */ public Builder mergeBlacklistMessage(com.avos.avoscloud.Messages.BlacklistCommand value) { if (blacklistMessageBuilder_ == null) { if (((bitField0_ & 0x01000000) == 0x01000000) && blacklistMessage_ != null && blacklistMessage_ != com.avos.avoscloud.Messages.BlacklistCommand.getDefaultInstance()) { blacklistMessage_ = com.avos.avoscloud.Messages.BlacklistCommand.newBuilder(blacklistMessage_).mergeFrom(value).buildPartial(); } else { blacklistMessage_ = value; } onChanged(); } else { blacklistMessageBuilder_.mergeFrom(value); } bitField0_ |= 0x01000000; return this; } /**
public com.avos.avoscloud.Messages.BlacklistCommand getDefaultInstanceForType() { return com.avos.avoscloud.Messages.BlacklistCommand.getDefaultInstance(); }
void onResponse4MemberBlock(AVIMOperation imop, String operation, int reqeustId, Messages.BlacklistCommand blacklistCommand) { if (null == blacklistCommand) { return; } List<String> allowedList = blacklistCommand.getAllowedPidsList(); List<Messages.ErrorCommand> errorCommandList = blacklistCommand.getFailedPidsList(); Bundle bundle = genBundleFromPartiallyResult(allowedList, errorCommandList); BroadcastUtil.sendIMLocalBroadcast(session.getSelfPeerId(), blacklistCommand.getSrcCid(), reqeustId, bundle, imop); }
/** * <code>optional .com.avos.avoscloud.BlacklistCommand blacklistMessage = 116;</code> */ public com.avos.avoscloud.Messages.BlacklistCommandOrBuilder getBlacklistMessageOrBuilder() { if (blacklistMessageBuilder_ != null) { return blacklistMessageBuilder_.getMessageOrBuilder(); } else { return blacklistMessage_ == null ? com.avos.avoscloud.Messages.BlacklistCommand.getDefaultInstance() : blacklistMessage_; } } /**
/** * <code>optional .com.avos.avoscloud.BlacklistCommand blacklistMessage = 116;</code> */ public com.avos.avoscloud.Messages.BlacklistCommandOrBuilder getBlacklistMessageOrBuilder() { return blacklistMessage_ == null ? com.avos.avoscloud.Messages.BlacklistCommand.getDefaultInstance() : blacklistMessage_; }
/** * <code>optional string s = 14;</code> */ public Builder clearS() { bitField0_ = (bitField0_ & ~0x00001000); s_ = getDefaultInstance().getS(); onChanged(); return this; } /**
/** * <code>optional string srcPid = 3;</code> */ public Builder clearSrcPid() { bitField0_ = (bitField0_ & ~0x00000004); srcPid_ = getDefaultInstance().getSrcPid(); onChanged(); return this; } /**
/** * <code>optional .com.avos.avoscloud.BlacklistCommand blacklistMessage = 116;</code> */ public com.avos.avoscloud.Messages.BlacklistCommand getBlacklistMessage() { return blacklistMessage_ == null ? com.avos.avoscloud.Messages.BlacklistCommand.getDefaultInstance() : blacklistMessage_; } /**
/** * <code>optional string n = 13;</code> */ public Builder clearN() { bitField0_ = (bitField0_ & ~0x00000800); n_ = getDefaultInstance().getN(); onChanged(); return this; } /**
/** * <code>optional string next = 6;</code> */ public Builder clearNext() { bitField0_ = (bitField0_ & ~0x00000020); next_ = getDefaultInstance().getNext(); onChanged(); return this; } /**
/** * <code>optional string srcCid = 1;</code> */ public Builder clearSrcCid() { bitField0_ = (bitField0_ & ~0x00000001); srcCid_ = getDefaultInstance().getSrcCid(); onChanged(); return this; } /**
/** * <code>optional .com.avos.avoscloud.BlacklistCommand blacklistMessage = 116;</code> */ public com.avos.avoscloud.Messages.BlacklistCommand getBlacklistMessage() { if (blacklistMessageBuilder_ == null) { return blacklistMessage_ == null ? com.avos.avoscloud.Messages.BlacklistCommand.getDefaultInstance() : blacklistMessage_; } else { return blacklistMessageBuilder_.getMessage(); } } /**