// Generated by the protocol buffer compiler. DO NOT EDIT! // source: WHistoryMsgPushNotice.proto package Im.Scrm.Ww.Proto; public final class WHistoryMsgPushNotice { private WHistoryMsgPushNotice() {} public static void registerAllExtensions( com.google.protobuf.ExtensionRegistryLite registry) { } public static void registerAllExtensions( com.google.protobuf.ExtensionRegistry registry) { registerAllExtensions( (com.google.protobuf.ExtensionRegistryLite) registry); } public interface ChatMessageOrBuilder extends // @@protoc_insertion_point(interface_extends:Im.Scrm.Ww.Proto.ChatMessage) com.google.protobuf.MessageOrBuilder { /** *
* 会话RemoteId ** *
int64 ConvId = 1;
* @return The convId.
*/
long getConvId();
/**
* * 消息发送者Id ** *
int64 SenderId = 2;
* @return The senderId.
*/
long getSenderId();
/**
* * 发送的消息内容类型 ** *
.Im.Scrm.Ww.Proto.EnumContentType ContentType = 3;
* @return The enum numeric value on the wire for contentType.
*/
int getContentTypeValue();
/**
* * 发送的消息内容类型 ** *
.Im.Scrm.Ww.Proto.EnumContentType ContentType = 3;
* @return The contentType.
*/
Im.Scrm.Ww.Proto.WTransport.EnumContentType getContentType();
/**
* * 内容 二进制流 ** *
bytes Content = 4;
* @return The content.
*/
com.google.protobuf.ByteString getContent();
/**
* *服务端的主键id ** *
int64 MsgId = 5;
* @return The msgId.
*/
long getMsgId();
/**
* * 消息唯一id ** *
int64 MsgRemoteId = 6;
* @return The msgRemoteId.
*/
long getMsgRemoteId();
/**
* * 消息时间 ** *
int64 CreateTime = 7;
* @return The createTime.
*/
long getCreateTime();
/**
* * 消息发送者名称 ** *
string SenderName = 8;
* @return The senderName.
*/
java.lang.String getSenderName();
/**
* * 消息发送者名称 ** *
string SenderName = 8;
* @return The bytes for senderName.
*/
com.google.protobuf.ByteString
getSenderNameBytes();
/**
* * 引用消息的id ** *
int64 RefId = 9;
* @return The refId.
*/
long getRefId();
/**
* int32 Flag = 10;
* @return The flag.
*/
int getFlag();
/**
* bool IsRevoke = 11;
* @return The isRevoke.
*/
boolean getIsRevoke();
/**
* * 会话的LocalId ** *
int64 ConvLocalId = 12;
* @return The convLocalId.
*/
long getConvLocalId();
}
/**
* Protobuf type {@code Im.Scrm.Ww.Proto.ChatMessage}
*/
public static final class ChatMessage extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:Im.Scrm.Ww.Proto.ChatMessage)
ChatMessageOrBuilder {
private static final long serialVersionUID = 0L;
// Use ChatMessage.newBuilder() to construct.
private ChatMessage(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private ChatMessage() {
contentType_ = 0;
content_ = com.google.protobuf.ByteString.EMPTY;
senderName_ = "";
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new ChatMessage();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private ChatMessage(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
this();
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
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;
case 8: {
convId_ = input.readInt64();
break;
}
case 16: {
senderId_ = input.readInt64();
break;
}
case 24: {
int rawValue = input.readEnum();
contentType_ = rawValue;
break;
}
case 34: {
content_ = input.readBytes();
break;
}
case 40: {
msgId_ = input.readInt64();
break;
}
case 48: {
msgRemoteId_ = input.readInt64();
break;
}
case 56: {
createTime_ = input.readInt64();
break;
}
case 66: {
java.lang.String s = input.readStringRequireUtf8();
senderName_ = s;
break;
}
case 72: {
refId_ = input.readInt64();
break;
}
case 80: {
flag_ = input.readInt32();
break;
}
case 88: {
isRevoke_ = input.readBool();
break;
}
case 96: {
convLocalId_ = input.readInt64();
break;
}
default: {
if (!parseUnknownField(
input, unknownFields, extensionRegistry, tag)) {
done = true;
}
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 Im.Scrm.Ww.Proto.WHistoryMsgPushNotice.internal_static_Im_Scrm_Ww_Proto_ChatMessage_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return Im.Scrm.Ww.Proto.WHistoryMsgPushNotice.internal_static_Im_Scrm_Ww_Proto_ChatMessage_fieldAccessorTable
.ensureFieldAccessorsInitialized(
Im.Scrm.Ww.Proto.WHistoryMsgPushNotice.ChatMessage.class, Im.Scrm.Ww.Proto.WHistoryMsgPushNotice.ChatMessage.Builder.class);
}
public static final int CONVID_FIELD_NUMBER = 1;
private long convId_;
/**
* * 会话RemoteId ** *
int64 ConvId = 1;
* @return The convId.
*/
public long getConvId() {
return convId_;
}
public static final int SENDERID_FIELD_NUMBER = 2;
private long senderId_;
/**
* * 消息发送者Id ** *
int64 SenderId = 2;
* @return The senderId.
*/
public long getSenderId() {
return senderId_;
}
public static final int CONTENTTYPE_FIELD_NUMBER = 3;
private int contentType_;
/**
* * 发送的消息内容类型 ** *
.Im.Scrm.Ww.Proto.EnumContentType ContentType = 3;
* @return The enum numeric value on the wire for contentType.
*/
public int getContentTypeValue() {
return contentType_;
}
/**
* * 发送的消息内容类型 ** *
.Im.Scrm.Ww.Proto.EnumContentType ContentType = 3;
* @return The contentType.
*/
public Im.Scrm.Ww.Proto.WTransport.EnumContentType getContentType() {
@SuppressWarnings("deprecation")
Im.Scrm.Ww.Proto.WTransport.EnumContentType result = Im.Scrm.Ww.Proto.WTransport.EnumContentType.valueOf(contentType_);
return result == null ? Im.Scrm.Ww.Proto.WTransport.EnumContentType.UNRECOGNIZED : result;
}
public static final int CONTENT_FIELD_NUMBER = 4;
private com.google.protobuf.ByteString content_;
/**
* * 内容 二进制流 ** *
bytes Content = 4;
* @return The content.
*/
public com.google.protobuf.ByteString getContent() {
return content_;
}
public static final int MSGID_FIELD_NUMBER = 5;
private long msgId_;
/**
* *服务端的主键id ** *
int64 MsgId = 5;
* @return The msgId.
*/
public long getMsgId() {
return msgId_;
}
public static final int MSGREMOTEID_FIELD_NUMBER = 6;
private long msgRemoteId_;
/**
* * 消息唯一id ** *
int64 MsgRemoteId = 6;
* @return The msgRemoteId.
*/
public long getMsgRemoteId() {
return msgRemoteId_;
}
public static final int CREATETIME_FIELD_NUMBER = 7;
private long createTime_;
/**
* * 消息时间 ** *
int64 CreateTime = 7;
* @return The createTime.
*/
public long getCreateTime() {
return createTime_;
}
public static final int SENDERNAME_FIELD_NUMBER = 8;
private volatile java.lang.Object senderName_;
/**
* * 消息发送者名称 ** *
string SenderName = 8;
* @return The senderName.
*/
public java.lang.String getSenderName() {
java.lang.Object ref = senderName_;
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();
senderName_ = s;
return s;
}
}
/**
* * 消息发送者名称 ** *
string SenderName = 8;
* @return The bytes for senderName.
*/
public com.google.protobuf.ByteString
getSenderNameBytes() {
java.lang.Object ref = senderName_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
senderName_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int REFID_FIELD_NUMBER = 9;
private long refId_;
/**
* * 引用消息的id ** *
int64 RefId = 9;
* @return The refId.
*/
public long getRefId() {
return refId_;
}
public static final int FLAG_FIELD_NUMBER = 10;
private int flag_;
/**
* int32 Flag = 10;
* @return The flag.
*/
public int getFlag() {
return flag_;
}
public static final int ISREVOKE_FIELD_NUMBER = 11;
private boolean isRevoke_;
/**
* bool IsRevoke = 11;
* @return The isRevoke.
*/
public boolean getIsRevoke() {
return isRevoke_;
}
public static final int CONVLOCALID_FIELD_NUMBER = 12;
private long convLocalId_;
/**
* * 会话的LocalId ** *
int64 ConvLocalId = 12;
* @return The convLocalId.
*/
public long getConvLocalId() {
return convLocalId_;
}
private byte memoizedIsInitialized = -1;
@java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
if (convId_ != 0L) {
output.writeInt64(1, convId_);
}
if (senderId_ != 0L) {
output.writeInt64(2, senderId_);
}
if (contentType_ != Im.Scrm.Ww.Proto.WTransport.EnumContentType.UnknownContent.getNumber()) {
output.writeEnum(3, contentType_);
}
if (!content_.isEmpty()) {
output.writeBytes(4, content_);
}
if (msgId_ != 0L) {
output.writeInt64(5, msgId_);
}
if (msgRemoteId_ != 0L) {
output.writeInt64(6, msgRemoteId_);
}
if (createTime_ != 0L) {
output.writeInt64(7, createTime_);
}
if (!getSenderNameBytes().isEmpty()) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 8, senderName_);
}
if (refId_ != 0L) {
output.writeInt64(9, refId_);
}
if (flag_ != 0) {
output.writeInt32(10, flag_);
}
if (isRevoke_ != false) {
output.writeBool(11, isRevoke_);
}
if (convLocalId_ != 0L) {
output.writeInt64(12, convLocalId_);
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (convId_ != 0L) {
size += com.google.protobuf.CodedOutputStream
.computeInt64Size(1, convId_);
}
if (senderId_ != 0L) {
size += com.google.protobuf.CodedOutputStream
.computeInt64Size(2, senderId_);
}
if (contentType_ != Im.Scrm.Ww.Proto.WTransport.EnumContentType.UnknownContent.getNumber()) {
size += com.google.protobuf.CodedOutputStream
.computeEnumSize(3, contentType_);
}
if (!content_.isEmpty()) {
size += com.google.protobuf.CodedOutputStream
.computeBytesSize(4, content_);
}
if (msgId_ != 0L) {
size += com.google.protobuf.CodedOutputStream
.computeInt64Size(5, msgId_);
}
if (msgRemoteId_ != 0L) {
size += com.google.protobuf.CodedOutputStream
.computeInt64Size(6, msgRemoteId_);
}
if (createTime_ != 0L) {
size += com.google.protobuf.CodedOutputStream
.computeInt64Size(7, createTime_);
}
if (!getSenderNameBytes().isEmpty()) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(8, senderName_);
}
if (refId_ != 0L) {
size += com.google.protobuf.CodedOutputStream
.computeInt64Size(9, refId_);
}
if (flag_ != 0) {
size += com.google.protobuf.CodedOutputStream
.computeInt32Size(10, flag_);
}
if (isRevoke_ != false) {
size += com.google.protobuf.CodedOutputStream
.computeBoolSize(11, isRevoke_);
}
if (convLocalId_ != 0L) {
size += com.google.protobuf.CodedOutputStream
.computeInt64Size(12, convLocalId_);
}
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 Im.Scrm.Ww.Proto.WHistoryMsgPushNotice.ChatMessage)) {
return super.equals(obj);
}
Im.Scrm.Ww.Proto.WHistoryMsgPushNotice.ChatMessage other = (Im.Scrm.Ww.Proto.WHistoryMsgPushNotice.ChatMessage) obj;
if (getConvId()
!= other.getConvId()) return false;
if (getSenderId()
!= other.getSenderId()) return false;
if (contentType_ != other.contentType_) return false;
if (!getContent()
.equals(other.getContent())) return false;
if (getMsgId()
!= other.getMsgId()) return false;
if (getMsgRemoteId()
!= other.getMsgRemoteId()) return false;
if (getCreateTime()
!= other.getCreateTime()) return false;
if (!getSenderName()
.equals(other.getSenderName())) return false;
if (getRefId()
!= other.getRefId()) return false;
if (getFlag()
!= other.getFlag()) return false;
if (getIsRevoke()
!= other.getIsRevoke()) return false;
if (getConvLocalId()
!= other.getConvLocalId()) return false;
if (!unknownFields.equals(other.unknownFields)) return false;
return true;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
hash = (37 * hash) + CONVID_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
getConvId());
hash = (37 * hash) + SENDERID_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
getSenderId());
hash = (37 * hash) + CONTENTTYPE_FIELD_NUMBER;
hash = (53 * hash) + contentType_;
hash = (37 * hash) + CONTENT_FIELD_NUMBER;
hash = (53 * hash) + getContent().hashCode();
hash = (37 * hash) + MSGID_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
getMsgId());
hash = (37 * hash) + MSGREMOTEID_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
getMsgRemoteId());
hash = (37 * hash) + CREATETIME_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
getCreateTime());
hash = (37 * hash) + SENDERNAME_FIELD_NUMBER;
hash = (53 * hash) + getSenderName().hashCode();
hash = (37 * hash) + REFID_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
getRefId());
hash = (37 * hash) + FLAG_FIELD_NUMBER;
hash = (53 * hash) + getFlag();
hash = (37 * hash) + ISREVOKE_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
getIsRevoke());
hash = (37 * hash) + CONVLOCALID_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
getConvLocalId());
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static Im.Scrm.Ww.Proto.WHistoryMsgPushNotice.ChatMessage parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static Im.Scrm.Ww.Proto.WHistoryMsgPushNotice.ChatMessage parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static Im.Scrm.Ww.Proto.WHistoryMsgPushNotice.ChatMessage parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static Im.Scrm.Ww.Proto.WHistoryMsgPushNotice.ChatMessage parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static Im.Scrm.Ww.Proto.WHistoryMsgPushNotice.ChatMessage parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static Im.Scrm.Ww.Proto.WHistoryMsgPushNotice.ChatMessage parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static Im.Scrm.Ww.Proto.WHistoryMsgPushNotice.ChatMessage parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static Im.Scrm.Ww.Proto.WHistoryMsgPushNotice.ChatMessage 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 Im.Scrm.Ww.Proto.WHistoryMsgPushNotice.ChatMessage parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static Im.Scrm.Ww.Proto.WHistoryMsgPushNotice.ChatMessage 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 Im.Scrm.Ww.Proto.WHistoryMsgPushNotice.ChatMessage parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static Im.Scrm.Ww.Proto.WHistoryMsgPushNotice.ChatMessage parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
@java.lang.Override
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
public static Builder newBuilder(Im.Scrm.Ww.Proto.WHistoryMsgPushNotice.ChatMessage prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
@java.lang.Override
public Builder toBuilder() {
return this == DEFAULT_INSTANCE
? new Builder() : new Builder().mergeFrom(this);
}
@java.lang.Override
protected Builder newBuilderForType(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
* Protobuf type {@code Im.Scrm.Ww.Proto.ChatMessage}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder* 会话RemoteId ** *
int64 ConvId = 1;
* @return The convId.
*/
public long getConvId() {
return convId_;
}
/**
* * 会话RemoteId ** *
int64 ConvId = 1;
* @param value The convId to set.
* @return This builder for chaining.
*/
public Builder setConvId(long value) {
convId_ = value;
onChanged();
return this;
}
/**
* * 会话RemoteId ** *
int64 ConvId = 1;
* @return This builder for chaining.
*/
public Builder clearConvId() {
convId_ = 0L;
onChanged();
return this;
}
private long senderId_ ;
/**
* * 消息发送者Id ** *
int64 SenderId = 2;
* @return The senderId.
*/
public long getSenderId() {
return senderId_;
}
/**
* * 消息发送者Id ** *
int64 SenderId = 2;
* @param value The senderId to set.
* @return This builder for chaining.
*/
public Builder setSenderId(long value) {
senderId_ = value;
onChanged();
return this;
}
/**
* * 消息发送者Id ** *
int64 SenderId = 2;
* @return This builder for chaining.
*/
public Builder clearSenderId() {
senderId_ = 0L;
onChanged();
return this;
}
private int contentType_ = 0;
/**
* * 发送的消息内容类型 ** *
.Im.Scrm.Ww.Proto.EnumContentType ContentType = 3;
* @return The enum numeric value on the wire for contentType.
*/
public int getContentTypeValue() {
return contentType_;
}
/**
* * 发送的消息内容类型 ** *
.Im.Scrm.Ww.Proto.EnumContentType ContentType = 3;
* @param value The enum numeric value on the wire for contentType to set.
* @return This builder for chaining.
*/
public Builder setContentTypeValue(int value) {
contentType_ = value;
onChanged();
return this;
}
/**
* * 发送的消息内容类型 ** *
.Im.Scrm.Ww.Proto.EnumContentType ContentType = 3;
* @return The contentType.
*/
public Im.Scrm.Ww.Proto.WTransport.EnumContentType getContentType() {
@SuppressWarnings("deprecation")
Im.Scrm.Ww.Proto.WTransport.EnumContentType result = Im.Scrm.Ww.Proto.WTransport.EnumContentType.valueOf(contentType_);
return result == null ? Im.Scrm.Ww.Proto.WTransport.EnumContentType.UNRECOGNIZED : result;
}
/**
* * 发送的消息内容类型 ** *
.Im.Scrm.Ww.Proto.EnumContentType ContentType = 3;
* @param value The contentType to set.
* @return This builder for chaining.
*/
public Builder setContentType(Im.Scrm.Ww.Proto.WTransport.EnumContentType value) {
if (value == null) {
throw new NullPointerException();
}
contentType_ = value.getNumber();
onChanged();
return this;
}
/**
* * 发送的消息内容类型 ** *
.Im.Scrm.Ww.Proto.EnumContentType ContentType = 3;
* @return This builder for chaining.
*/
public Builder clearContentType() {
contentType_ = 0;
onChanged();
return this;
}
private com.google.protobuf.ByteString content_ = com.google.protobuf.ByteString.EMPTY;
/**
* * 内容 二进制流 ** *
bytes Content = 4;
* @return The content.
*/
public com.google.protobuf.ByteString getContent() {
return content_;
}
/**
* * 内容 二进制流 ** *
bytes Content = 4;
* @param value The content to set.
* @return This builder for chaining.
*/
public Builder setContent(com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
content_ = value;
onChanged();
return this;
}
/**
* * 内容 二进制流 ** *
bytes Content = 4;
* @return This builder for chaining.
*/
public Builder clearContent() {
content_ = getDefaultInstance().getContent();
onChanged();
return this;
}
private long msgId_ ;
/**
* *服务端的主键id ** *
int64 MsgId = 5;
* @return The msgId.
*/
public long getMsgId() {
return msgId_;
}
/**
* *服务端的主键id ** *
int64 MsgId = 5;
* @param value The msgId to set.
* @return This builder for chaining.
*/
public Builder setMsgId(long value) {
msgId_ = value;
onChanged();
return this;
}
/**
* *服务端的主键id ** *
int64 MsgId = 5;
* @return This builder for chaining.
*/
public Builder clearMsgId() {
msgId_ = 0L;
onChanged();
return this;
}
private long msgRemoteId_ ;
/**
* * 消息唯一id ** *
int64 MsgRemoteId = 6;
* @return The msgRemoteId.
*/
public long getMsgRemoteId() {
return msgRemoteId_;
}
/**
* * 消息唯一id ** *
int64 MsgRemoteId = 6;
* @param value The msgRemoteId to set.
* @return This builder for chaining.
*/
public Builder setMsgRemoteId(long value) {
msgRemoteId_ = value;
onChanged();
return this;
}
/**
* * 消息唯一id ** *
int64 MsgRemoteId = 6;
* @return This builder for chaining.
*/
public Builder clearMsgRemoteId() {
msgRemoteId_ = 0L;
onChanged();
return this;
}
private long createTime_ ;
/**
* * 消息时间 ** *
int64 CreateTime = 7;
* @return The createTime.
*/
public long getCreateTime() {
return createTime_;
}
/**
* * 消息时间 ** *
int64 CreateTime = 7;
* @param value The createTime to set.
* @return This builder for chaining.
*/
public Builder setCreateTime(long value) {
createTime_ = value;
onChanged();
return this;
}
/**
* * 消息时间 ** *
int64 CreateTime = 7;
* @return This builder for chaining.
*/
public Builder clearCreateTime() {
createTime_ = 0L;
onChanged();
return this;
}
private java.lang.Object senderName_ = "";
/**
* * 消息发送者名称 ** *
string SenderName = 8;
* @return The senderName.
*/
public java.lang.String getSenderName() {
java.lang.Object ref = senderName_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
senderName_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* * 消息发送者名称 ** *
string SenderName = 8;
* @return The bytes for senderName.
*/
public com.google.protobuf.ByteString
getSenderNameBytes() {
java.lang.Object ref = senderName_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
senderName_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* * 消息发送者名称 ** *
string SenderName = 8;
* @param value The senderName to set.
* @return This builder for chaining.
*/
public Builder setSenderName(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
senderName_ = value;
onChanged();
return this;
}
/**
* * 消息发送者名称 ** *
string SenderName = 8;
* @return This builder for chaining.
*/
public Builder clearSenderName() {
senderName_ = getDefaultInstance().getSenderName();
onChanged();
return this;
}
/**
* * 消息发送者名称 ** *
string SenderName = 8;
* @param value The bytes for senderName to set.
* @return This builder for chaining.
*/
public Builder setSenderNameBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
senderName_ = value;
onChanged();
return this;
}
private long refId_ ;
/**
* * 引用消息的id ** *
int64 RefId = 9;
* @return The refId.
*/
public long getRefId() {
return refId_;
}
/**
* * 引用消息的id ** *
int64 RefId = 9;
* @param value The refId to set.
* @return This builder for chaining.
*/
public Builder setRefId(long value) {
refId_ = value;
onChanged();
return this;
}
/**
* * 引用消息的id ** *
int64 RefId = 9;
* @return This builder for chaining.
*/
public Builder clearRefId() {
refId_ = 0L;
onChanged();
return this;
}
private int flag_ ;
/**
* int32 Flag = 10;
* @return The flag.
*/
public int getFlag() {
return flag_;
}
/**
* int32 Flag = 10;
* @param value The flag to set.
* @return This builder for chaining.
*/
public Builder setFlag(int value) {
flag_ = value;
onChanged();
return this;
}
/**
* int32 Flag = 10;
* @return This builder for chaining.
*/
public Builder clearFlag() {
flag_ = 0;
onChanged();
return this;
}
private boolean isRevoke_ ;
/**
* bool IsRevoke = 11;
* @return The isRevoke.
*/
public boolean getIsRevoke() {
return isRevoke_;
}
/**
* bool IsRevoke = 11;
* @param value The isRevoke to set.
* @return This builder for chaining.
*/
public Builder setIsRevoke(boolean value) {
isRevoke_ = value;
onChanged();
return this;
}
/**
* bool IsRevoke = 11;
* @return This builder for chaining.
*/
public Builder clearIsRevoke() {
isRevoke_ = false;
onChanged();
return this;
}
private long convLocalId_ ;
/**
* * 会话的LocalId ** *
int64 ConvLocalId = 12;
* @return The convLocalId.
*/
public long getConvLocalId() {
return convLocalId_;
}
/**
* * 会话的LocalId ** *
int64 ConvLocalId = 12;
* @param value The convLocalId to set.
* @return This builder for chaining.
*/
public Builder setConvLocalId(long value) {
convLocalId_ = value;
onChanged();
return this;
}
/**
* * 会话的LocalId ** *
int64 ConvLocalId = 12;
* @return This builder for chaining.
*/
public Builder clearConvLocalId() {
convLocalId_ = 0L;
onChanged();
return this;
}
@java.lang.Override
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
}
@java.lang.Override
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:Im.Scrm.Ww.Proto.ChatMessage)
}
// @@protoc_insertion_point(class_scope:Im.Scrm.Ww.Proto.ChatMessage)
private static final Im.Scrm.Ww.Proto.WHistoryMsgPushNotice.ChatMessage DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new Im.Scrm.Ww.Proto.WHistoryMsgPushNotice.ChatMessage();
}
public static Im.Scrm.Ww.Proto.WHistoryMsgPushNotice.ChatMessage getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser* 设备企业WX号 ** *
int64 WxId = 1;
* @return The wxId.
*/
long getWxId();
/**
* repeated .Im.Scrm.Ww.Proto.ChatMessage Messages = 2;
*/
java.util.Listrepeated .Im.Scrm.Ww.Proto.ChatMessage Messages = 2;
*/
Im.Scrm.Ww.Proto.WHistoryMsgPushNotice.ChatMessage getMessages(int index);
/**
* repeated .Im.Scrm.Ww.Proto.ChatMessage Messages = 2;
*/
int getMessagesCount();
/**
* repeated .Im.Scrm.Ww.Proto.ChatMessage Messages = 2;
*/
java.util.List extends Im.Scrm.Ww.Proto.WHistoryMsgPushNotice.ChatMessageOrBuilder>
getMessagesOrBuilderList();
/**
* repeated .Im.Scrm.Ww.Proto.ChatMessage Messages = 2;
*/
Im.Scrm.Ww.Proto.WHistoryMsgPushNotice.ChatMessageOrBuilder getMessagesOrBuilder(
int index);
/**
* *int32 Size = 3; // 页大小,固定20 ** *
int32 Count = 4;
* @return The count.
*/
int getCount();
/**
* *int32 Page = 5; // 页码,从0开始 ** *
int64 ConvId = 6;
* @return The convId.
*/
long getConvId();
/**
* ** *
bool HasMore = 7;
* @return The hasMore.
*/
boolean getHasMore();
/**
* * 会话的LocalId ** *
int64 ConvLocalId = 8;
* @return The convLocalId.
*/
long getConvLocalId();
/**
* int64 TaskId = 9;
* @return The taskId.
*/
long getTaskId();
}
/**
* Protobuf type {@code Im.Scrm.Ww.Proto.HistoryMsgPushNoticeMessage}
*/
public static final class HistoryMsgPushNoticeMessage extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:Im.Scrm.Ww.Proto.HistoryMsgPushNoticeMessage)
HistoryMsgPushNoticeMessageOrBuilder {
private static final long serialVersionUID = 0L;
// Use HistoryMsgPushNoticeMessage.newBuilder() to construct.
private HistoryMsgPushNoticeMessage(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private HistoryMsgPushNoticeMessage() {
messages_ = java.util.Collections.emptyList();
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new HistoryMsgPushNoticeMessage();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private HistoryMsgPushNoticeMessage(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
this();
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
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;
case 8: {
wxId_ = input.readInt64();
break;
}
case 18: {
if (!((mutable_bitField0_ & 0x00000001) != 0)) {
messages_ = new java.util.ArrayList* 设备企业WX号 ** *
int64 WxId = 1;
* @return The wxId.
*/
public long getWxId() {
return wxId_;
}
public static final int MESSAGES_FIELD_NUMBER = 2;
private java.util.Listrepeated .Im.Scrm.Ww.Proto.ChatMessage Messages = 2;
*/
public java.util.Listrepeated .Im.Scrm.Ww.Proto.ChatMessage Messages = 2;
*/
public java.util.List extends Im.Scrm.Ww.Proto.WHistoryMsgPushNotice.ChatMessageOrBuilder>
getMessagesOrBuilderList() {
return messages_;
}
/**
* repeated .Im.Scrm.Ww.Proto.ChatMessage Messages = 2;
*/
public int getMessagesCount() {
return messages_.size();
}
/**
* repeated .Im.Scrm.Ww.Proto.ChatMessage Messages = 2;
*/
public Im.Scrm.Ww.Proto.WHistoryMsgPushNotice.ChatMessage getMessages(int index) {
return messages_.get(index);
}
/**
* repeated .Im.Scrm.Ww.Proto.ChatMessage Messages = 2;
*/
public Im.Scrm.Ww.Proto.WHistoryMsgPushNotice.ChatMessageOrBuilder getMessagesOrBuilder(
int index) {
return messages_.get(index);
}
public static final int COUNT_FIELD_NUMBER = 4;
private int count_;
/**
* *int32 Size = 3; // 页大小,固定20 ** *
int32 Count = 4;
* @return The count.
*/
public int getCount() {
return count_;
}
public static final int CONVID_FIELD_NUMBER = 6;
private long convId_;
/**
* *int32 Page = 5; // 页码,从0开始 ** *
int64 ConvId = 6;
* @return The convId.
*/
public long getConvId() {
return convId_;
}
public static final int HASMORE_FIELD_NUMBER = 7;
private boolean hasMore_;
/**
* ** *
bool HasMore = 7;
* @return The hasMore.
*/
public boolean getHasMore() {
return hasMore_;
}
public static final int CONVLOCALID_FIELD_NUMBER = 8;
private long convLocalId_;
/**
* * 会话的LocalId ** *
int64 ConvLocalId = 8;
* @return The convLocalId.
*/
public long getConvLocalId() {
return convLocalId_;
}
public static final int TASKID_FIELD_NUMBER = 9;
private long taskId_;
/**
* int64 TaskId = 9;
* @return The taskId.
*/
public long getTaskId() {
return taskId_;
}
private byte memoizedIsInitialized = -1;
@java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
if (wxId_ != 0L) {
output.writeInt64(1, wxId_);
}
for (int i = 0; i < messages_.size(); i++) {
output.writeMessage(2, messages_.get(i));
}
if (count_ != 0) {
output.writeInt32(4, count_);
}
if (convId_ != 0L) {
output.writeInt64(6, convId_);
}
if (hasMore_ != false) {
output.writeBool(7, hasMore_);
}
if (convLocalId_ != 0L) {
output.writeInt64(8, convLocalId_);
}
if (taskId_ != 0L) {
output.writeInt64(9, taskId_);
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (wxId_ != 0L) {
size += com.google.protobuf.CodedOutputStream
.computeInt64Size(1, wxId_);
}
for (int i = 0; i < messages_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(2, messages_.get(i));
}
if (count_ != 0) {
size += com.google.protobuf.CodedOutputStream
.computeInt32Size(4, count_);
}
if (convId_ != 0L) {
size += com.google.protobuf.CodedOutputStream
.computeInt64Size(6, convId_);
}
if (hasMore_ != false) {
size += com.google.protobuf.CodedOutputStream
.computeBoolSize(7, hasMore_);
}
if (convLocalId_ != 0L) {
size += com.google.protobuf.CodedOutputStream
.computeInt64Size(8, convLocalId_);
}
if (taskId_ != 0L) {
size += com.google.protobuf.CodedOutputStream
.computeInt64Size(9, taskId_);
}
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 Im.Scrm.Ww.Proto.WHistoryMsgPushNotice.HistoryMsgPushNoticeMessage)) {
return super.equals(obj);
}
Im.Scrm.Ww.Proto.WHistoryMsgPushNotice.HistoryMsgPushNoticeMessage other = (Im.Scrm.Ww.Proto.WHistoryMsgPushNotice.HistoryMsgPushNoticeMessage) obj;
if (getWxId()
!= other.getWxId()) return false;
if (!getMessagesList()
.equals(other.getMessagesList())) return false;
if (getCount()
!= other.getCount()) return false;
if (getConvId()
!= other.getConvId()) return false;
if (getHasMore()
!= other.getHasMore()) return false;
if (getConvLocalId()
!= other.getConvLocalId()) return false;
if (getTaskId()
!= other.getTaskId()) return false;
if (!unknownFields.equals(other.unknownFields)) return false;
return true;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
hash = (37 * hash) + WXID_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
getWxId());
if (getMessagesCount() > 0) {
hash = (37 * hash) + MESSAGES_FIELD_NUMBER;
hash = (53 * hash) + getMessagesList().hashCode();
}
hash = (37 * hash) + COUNT_FIELD_NUMBER;
hash = (53 * hash) + getCount();
hash = (37 * hash) + CONVID_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
getConvId());
hash = (37 * hash) + HASMORE_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
getHasMore());
hash = (37 * hash) + CONVLOCALID_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
getConvLocalId());
hash = (37 * hash) + TASKID_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
getTaskId());
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static Im.Scrm.Ww.Proto.WHistoryMsgPushNotice.HistoryMsgPushNoticeMessage parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static Im.Scrm.Ww.Proto.WHistoryMsgPushNotice.HistoryMsgPushNoticeMessage parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static Im.Scrm.Ww.Proto.WHistoryMsgPushNotice.HistoryMsgPushNoticeMessage parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static Im.Scrm.Ww.Proto.WHistoryMsgPushNotice.HistoryMsgPushNoticeMessage parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static Im.Scrm.Ww.Proto.WHistoryMsgPushNotice.HistoryMsgPushNoticeMessage parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static Im.Scrm.Ww.Proto.WHistoryMsgPushNotice.HistoryMsgPushNoticeMessage parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static Im.Scrm.Ww.Proto.WHistoryMsgPushNotice.HistoryMsgPushNoticeMessage parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static Im.Scrm.Ww.Proto.WHistoryMsgPushNotice.HistoryMsgPushNoticeMessage 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 Im.Scrm.Ww.Proto.WHistoryMsgPushNotice.HistoryMsgPushNoticeMessage parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static Im.Scrm.Ww.Proto.WHistoryMsgPushNotice.HistoryMsgPushNoticeMessage 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 Im.Scrm.Ww.Proto.WHistoryMsgPushNotice.HistoryMsgPushNoticeMessage parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static Im.Scrm.Ww.Proto.WHistoryMsgPushNotice.HistoryMsgPushNoticeMessage parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
@java.lang.Override
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
public static Builder newBuilder(Im.Scrm.Ww.Proto.WHistoryMsgPushNotice.HistoryMsgPushNoticeMessage prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
@java.lang.Override
public Builder toBuilder() {
return this == DEFAULT_INSTANCE
? new Builder() : new Builder().mergeFrom(this);
}
@java.lang.Override
protected Builder newBuilderForType(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
* Protobuf type {@code Im.Scrm.Ww.Proto.HistoryMsgPushNoticeMessage}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder* 设备企业WX号 ** *
int64 WxId = 1;
* @return The wxId.
*/
public long getWxId() {
return wxId_;
}
/**
* * 设备企业WX号 ** *
int64 WxId = 1;
* @param value The wxId to set.
* @return This builder for chaining.
*/
public Builder setWxId(long value) {
wxId_ = value;
onChanged();
return this;
}
/**
* * 设备企业WX号 ** *
int64 WxId = 1;
* @return This builder for chaining.
*/
public Builder clearWxId() {
wxId_ = 0L;
onChanged();
return this;
}
private java.util.Listrepeated .Im.Scrm.Ww.Proto.ChatMessage Messages = 2;
*/
public java.util.Listrepeated .Im.Scrm.Ww.Proto.ChatMessage Messages = 2;
*/
public int getMessagesCount() {
if (messagesBuilder_ == null) {
return messages_.size();
} else {
return messagesBuilder_.getCount();
}
}
/**
* repeated .Im.Scrm.Ww.Proto.ChatMessage Messages = 2;
*/
public Im.Scrm.Ww.Proto.WHistoryMsgPushNotice.ChatMessage getMessages(int index) {
if (messagesBuilder_ == null) {
return messages_.get(index);
} else {
return messagesBuilder_.getMessage(index);
}
}
/**
* repeated .Im.Scrm.Ww.Proto.ChatMessage Messages = 2;
*/
public Builder setMessages(
int index, Im.Scrm.Ww.Proto.WHistoryMsgPushNotice.ChatMessage value) {
if (messagesBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureMessagesIsMutable();
messages_.set(index, value);
onChanged();
} else {
messagesBuilder_.setMessage(index, value);
}
return this;
}
/**
* repeated .Im.Scrm.Ww.Proto.ChatMessage Messages = 2;
*/
public Builder setMessages(
int index, Im.Scrm.Ww.Proto.WHistoryMsgPushNotice.ChatMessage.Builder builderForValue) {
if (messagesBuilder_ == null) {
ensureMessagesIsMutable();
messages_.set(index, builderForValue.build());
onChanged();
} else {
messagesBuilder_.setMessage(index, builderForValue.build());
}
return this;
}
/**
* repeated .Im.Scrm.Ww.Proto.ChatMessage Messages = 2;
*/
public Builder addMessages(Im.Scrm.Ww.Proto.WHistoryMsgPushNotice.ChatMessage value) {
if (messagesBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureMessagesIsMutable();
messages_.add(value);
onChanged();
} else {
messagesBuilder_.addMessage(value);
}
return this;
}
/**
* repeated .Im.Scrm.Ww.Proto.ChatMessage Messages = 2;
*/
public Builder addMessages(
int index, Im.Scrm.Ww.Proto.WHistoryMsgPushNotice.ChatMessage value) {
if (messagesBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureMessagesIsMutable();
messages_.add(index, value);
onChanged();
} else {
messagesBuilder_.addMessage(index, value);
}
return this;
}
/**
* repeated .Im.Scrm.Ww.Proto.ChatMessage Messages = 2;
*/
public Builder addMessages(
Im.Scrm.Ww.Proto.WHistoryMsgPushNotice.ChatMessage.Builder builderForValue) {
if (messagesBuilder_ == null) {
ensureMessagesIsMutable();
messages_.add(builderForValue.build());
onChanged();
} else {
messagesBuilder_.addMessage(builderForValue.build());
}
return this;
}
/**
* repeated .Im.Scrm.Ww.Proto.ChatMessage Messages = 2;
*/
public Builder addMessages(
int index, Im.Scrm.Ww.Proto.WHistoryMsgPushNotice.ChatMessage.Builder builderForValue) {
if (messagesBuilder_ == null) {
ensureMessagesIsMutable();
messages_.add(index, builderForValue.build());
onChanged();
} else {
messagesBuilder_.addMessage(index, builderForValue.build());
}
return this;
}
/**
* repeated .Im.Scrm.Ww.Proto.ChatMessage Messages = 2;
*/
public Builder addAllMessages(
java.lang.Iterable extends Im.Scrm.Ww.Proto.WHistoryMsgPushNotice.ChatMessage> values) {
if (messagesBuilder_ == null) {
ensureMessagesIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, messages_);
onChanged();
} else {
messagesBuilder_.addAllMessages(values);
}
return this;
}
/**
* repeated .Im.Scrm.Ww.Proto.ChatMessage Messages = 2;
*/
public Builder clearMessages() {
if (messagesBuilder_ == null) {
messages_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000001);
onChanged();
} else {
messagesBuilder_.clear();
}
return this;
}
/**
* repeated .Im.Scrm.Ww.Proto.ChatMessage Messages = 2;
*/
public Builder removeMessages(int index) {
if (messagesBuilder_ == null) {
ensureMessagesIsMutable();
messages_.remove(index);
onChanged();
} else {
messagesBuilder_.remove(index);
}
return this;
}
/**
* repeated .Im.Scrm.Ww.Proto.ChatMessage Messages = 2;
*/
public Im.Scrm.Ww.Proto.WHistoryMsgPushNotice.ChatMessage.Builder getMessagesBuilder(
int index) {
return getMessagesFieldBuilder().getBuilder(index);
}
/**
* repeated .Im.Scrm.Ww.Proto.ChatMessage Messages = 2;
*/
public Im.Scrm.Ww.Proto.WHistoryMsgPushNotice.ChatMessageOrBuilder getMessagesOrBuilder(
int index) {
if (messagesBuilder_ == null) {
return messages_.get(index); } else {
return messagesBuilder_.getMessageOrBuilder(index);
}
}
/**
* repeated .Im.Scrm.Ww.Proto.ChatMessage Messages = 2;
*/
public java.util.List extends Im.Scrm.Ww.Proto.WHistoryMsgPushNotice.ChatMessageOrBuilder>
getMessagesOrBuilderList() {
if (messagesBuilder_ != null) {
return messagesBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(messages_);
}
}
/**
* repeated .Im.Scrm.Ww.Proto.ChatMessage Messages = 2;
*/
public Im.Scrm.Ww.Proto.WHistoryMsgPushNotice.ChatMessage.Builder addMessagesBuilder() {
return getMessagesFieldBuilder().addBuilder(
Im.Scrm.Ww.Proto.WHistoryMsgPushNotice.ChatMessage.getDefaultInstance());
}
/**
* repeated .Im.Scrm.Ww.Proto.ChatMessage Messages = 2;
*/
public Im.Scrm.Ww.Proto.WHistoryMsgPushNotice.ChatMessage.Builder addMessagesBuilder(
int index) {
return getMessagesFieldBuilder().addBuilder(
index, Im.Scrm.Ww.Proto.WHistoryMsgPushNotice.ChatMessage.getDefaultInstance());
}
/**
* repeated .Im.Scrm.Ww.Proto.ChatMessage Messages = 2;
*/
public java.util.List*int32 Size = 3; // 页大小,固定20 ** *
int32 Count = 4;
* @return The count.
*/
public int getCount() {
return count_;
}
/**
* *int32 Size = 3; // 页大小,固定20 ** *
int32 Count = 4;
* @param value The count to set.
* @return This builder for chaining.
*/
public Builder setCount(int value) {
count_ = value;
onChanged();
return this;
}
/**
* *int32 Size = 3; // 页大小,固定20 ** *
int32 Count = 4;
* @return This builder for chaining.
*/
public Builder clearCount() {
count_ = 0;
onChanged();
return this;
}
private long convId_ ;
/**
* *int32 Page = 5; // 页码,从0开始 ** *
int64 ConvId = 6;
* @return The convId.
*/
public long getConvId() {
return convId_;
}
/**
* *int32 Page = 5; // 页码,从0开始 ** *
int64 ConvId = 6;
* @param value The convId to set.
* @return This builder for chaining.
*/
public Builder setConvId(long value) {
convId_ = value;
onChanged();
return this;
}
/**
* *int32 Page = 5; // 页码,从0开始 ** *
int64 ConvId = 6;
* @return This builder for chaining.
*/
public Builder clearConvId() {
convId_ = 0L;
onChanged();
return this;
}
private boolean hasMore_ ;
/**
* ** *
bool HasMore = 7;
* @return The hasMore.
*/
public boolean getHasMore() {
return hasMore_;
}
/**
* ** *
bool HasMore = 7;
* @param value The hasMore to set.
* @return This builder for chaining.
*/
public Builder setHasMore(boolean value) {
hasMore_ = value;
onChanged();
return this;
}
/**
* ** *
bool HasMore = 7;
* @return This builder for chaining.
*/
public Builder clearHasMore() {
hasMore_ = false;
onChanged();
return this;
}
private long convLocalId_ ;
/**
* * 会话的LocalId ** *
int64 ConvLocalId = 8;
* @return The convLocalId.
*/
public long getConvLocalId() {
return convLocalId_;
}
/**
* * 会话的LocalId ** *
int64 ConvLocalId = 8;
* @param value The convLocalId to set.
* @return This builder for chaining.
*/
public Builder setConvLocalId(long value) {
convLocalId_ = value;
onChanged();
return this;
}
/**
* * 会话的LocalId ** *
int64 ConvLocalId = 8;
* @return This builder for chaining.
*/
public Builder clearConvLocalId() {
convLocalId_ = 0L;
onChanged();
return this;
}
private long taskId_ ;
/**
* int64 TaskId = 9;
* @return The taskId.
*/
public long getTaskId() {
return taskId_;
}
/**
* int64 TaskId = 9;
* @param value The taskId to set.
* @return This builder for chaining.
*/
public Builder setTaskId(long value) {
taskId_ = value;
onChanged();
return this;
}
/**
* int64 TaskId = 9;
* @return This builder for chaining.
*/
public Builder clearTaskId() {
taskId_ = 0L;
onChanged();
return this;
}
@java.lang.Override
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
}
@java.lang.Override
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:Im.Scrm.Ww.Proto.HistoryMsgPushNoticeMessage)
}
// @@protoc_insertion_point(class_scope:Im.Scrm.Ww.Proto.HistoryMsgPushNoticeMessage)
private static final Im.Scrm.Ww.Proto.WHistoryMsgPushNotice.HistoryMsgPushNoticeMessage DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new Im.Scrm.Ww.Proto.WHistoryMsgPushNotice.HistoryMsgPushNoticeMessage();
}
public static Im.Scrm.Ww.Proto.WHistoryMsgPushNotice.HistoryMsgPushNoticeMessage getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser