
wechat.protobuf.StatusNotifyRequest Maven / Gradle / Ivy
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: wechat.proto
package wechat.protobuf;
/**
* Protobuf type {@code wechat_proto.StatusNotifyRequest}
*/
public final class StatusNotifyRequest extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:wechat_proto.StatusNotifyRequest)
StatusNotifyRequestOrBuilder {
private static final long serialVersionUID = 0L;
// Use StatusNotifyRequest.newBuilder() to construct.
private StatusNotifyRequest(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private StatusNotifyRequest() {
fromUserName_ = "";
toUserName_ = "";
clientMsgId_ = "";
unreadChatList_ = java.util.Collections.emptyList();
unreadFunctionList_ = java.util.Collections.emptyList();
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new StatusNotifyRequest();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private StatusNotifyRequest(
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 10: {
wechat.protobuf.BaseRequest.Builder subBuilder = null;
if (((bitField0_ & 0x00000001) != 0)) {
subBuilder = baseRequest_.toBuilder();
}
baseRequest_ = input.readMessage(wechat.protobuf.BaseRequest.PARSER, extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(baseRequest_);
baseRequest_ = subBuilder.buildPartial();
}
bitField0_ |= 0x00000001;
break;
}
case 16: {
bitField0_ |= 0x00000002;
code_ = input.readUInt32();
break;
}
case 26: {
com.google.protobuf.ByteString bs = input.readBytes();
bitField0_ |= 0x00000004;
fromUserName_ = bs;
break;
}
case 34: {
com.google.protobuf.ByteString bs = input.readBytes();
bitField0_ |= 0x00000008;
toUserName_ = bs;
break;
}
case 42: {
com.google.protobuf.ByteString bs = input.readBytes();
bitField0_ |= 0x00000010;
clientMsgId_ = bs;
break;
}
case 48: {
bitField0_ |= 0x00000020;
unreadChatListNum_ = input.readUInt32();
break;
}
case 58: {
if (!((mutable_bitField0_ & 0x00000040) != 0)) {
unreadChatList_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00000040;
}
unreadChatList_.add(
input.readMessage(wechat.protobuf.StatusNotifyUnreadChat.PARSER, extensionRegistry));
break;
}
case 66: {
wechat.protobuf.StatusNotifyFunction.Builder subBuilder = null;
if (((bitField0_ & 0x00000040) != 0)) {
subBuilder = function_.toBuilder();
}
function_ = input.readMessage(wechat.protobuf.StatusNotifyFunction.PARSER, extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(function_);
function_ = subBuilder.buildPartial();
}
bitField0_ |= 0x00000040;
break;
}
case 72: {
bitField0_ |= 0x00000080;
unreadFunctionNum_ = input.readUInt32();
break;
}
case 82: {
if (!((mutable_bitField0_ & 0x00000200) != 0)) {
unreadFunctionList_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00000200;
}
unreadFunctionList_.add(
input.readMessage(wechat.protobuf.StatusNotifyFunction.PARSER, extensionRegistry));
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 {
if (((mutable_bitField0_ & 0x00000040) != 0)) {
unreadChatList_ = java.util.Collections.unmodifiableList(unreadChatList_);
}
if (((mutable_bitField0_ & 0x00000200) != 0)) {
unreadFunctionList_ = java.util.Collections.unmodifiableList(unreadFunctionList_);
}
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return wechat.protobuf.Wechat.internal_static_wechat_proto_StatusNotifyRequest_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return wechat.protobuf.Wechat.internal_static_wechat_proto_StatusNotifyRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
wechat.protobuf.StatusNotifyRequest.class, wechat.protobuf.StatusNotifyRequest.Builder.class);
}
private int bitField0_;
public static final int BASEREQUEST_FIELD_NUMBER = 1;
private wechat.protobuf.BaseRequest baseRequest_;
/**
* optional .wechat_proto.BaseRequest baseRequest = 1;
* @return Whether the baseRequest field is set.
*/
@java.lang.Override
public boolean hasBaseRequest() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
* optional .wechat_proto.BaseRequest baseRequest = 1;
* @return The baseRequest.
*/
@java.lang.Override
public wechat.protobuf.BaseRequest getBaseRequest() {
return baseRequest_ == null ? wechat.protobuf.BaseRequest.getDefaultInstance() : baseRequest_;
}
/**
* optional .wechat_proto.BaseRequest baseRequest = 1;
*/
@java.lang.Override
public wechat.protobuf.BaseRequestOrBuilder getBaseRequestOrBuilder() {
return baseRequest_ == null ? wechat.protobuf.BaseRequest.getDefaultInstance() : baseRequest_;
}
public static final int CODE_FIELD_NUMBER = 2;
private int code_;
/**
* optional uint32 code = 2;
* @return Whether the code field is set.
*/
@java.lang.Override
public boolean hasCode() {
return ((bitField0_ & 0x00000002) != 0);
}
/**
* optional uint32 code = 2;
* @return The code.
*/
@java.lang.Override
public int getCode() {
return code_;
}
public static final int FROMUSERNAME_FIELD_NUMBER = 3;
private volatile java.lang.Object fromUserName_;
/**
* optional string fromUserName = 3;
* @return Whether the fromUserName field is set.
*/
@java.lang.Override
public boolean hasFromUserName() {
return ((bitField0_ & 0x00000004) != 0);
}
/**
* optional string fromUserName = 3;
* @return The fromUserName.
*/
@java.lang.Override
public java.lang.String getFromUserName() {
java.lang.Object ref = fromUserName_;
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()) {
fromUserName_ = s;
}
return s;
}
}
/**
* optional string fromUserName = 3;
* @return The bytes for fromUserName.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getFromUserNameBytes() {
java.lang.Object ref = fromUserName_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
fromUserName_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int TOUSERNAME_FIELD_NUMBER = 4;
private volatile java.lang.Object toUserName_;
/**
* optional string toUserName = 4;
* @return Whether the toUserName field is set.
*/
@java.lang.Override
public boolean hasToUserName() {
return ((bitField0_ & 0x00000008) != 0);
}
/**
* optional string toUserName = 4;
* @return The toUserName.
*/
@java.lang.Override
public java.lang.String getToUserName() {
java.lang.Object ref = toUserName_;
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()) {
toUserName_ = s;
}
return s;
}
}
/**
* optional string toUserName = 4;
* @return The bytes for toUserName.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getToUserNameBytes() {
java.lang.Object ref = toUserName_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
toUserName_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int CLIENTMSGID_FIELD_NUMBER = 5;
private volatile java.lang.Object clientMsgId_;
/**
* optional string clientMsgId = 5;
* @return Whether the clientMsgId field is set.
*/
@java.lang.Override
public boolean hasClientMsgId() {
return ((bitField0_ & 0x00000010) != 0);
}
/**
* optional string clientMsgId = 5;
* @return The clientMsgId.
*/
@java.lang.Override
public java.lang.String getClientMsgId() {
java.lang.Object ref = clientMsgId_;
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()) {
clientMsgId_ = s;
}
return s;
}
}
/**
* optional string clientMsgId = 5;
* @return The bytes for clientMsgId.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getClientMsgIdBytes() {
java.lang.Object ref = clientMsgId_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
clientMsgId_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int UNREADCHATLISTNUM_FIELD_NUMBER = 6;
private int unreadChatListNum_;
/**
* optional uint32 unreadChatListNum = 6;
* @return Whether the unreadChatListNum field is set.
*/
@java.lang.Override
public boolean hasUnreadChatListNum() {
return ((bitField0_ & 0x00000020) != 0);
}
/**
* optional uint32 unreadChatListNum = 6;
* @return The unreadChatListNum.
*/
@java.lang.Override
public int getUnreadChatListNum() {
return unreadChatListNum_;
}
public static final int UNREADCHATLIST_FIELD_NUMBER = 7;
private java.util.List unreadChatList_;
/**
* repeated .wechat_proto.StatusNotifyUnreadChat unreadChatList = 7;
*/
@java.lang.Override
public java.util.List getUnreadChatListList() {
return unreadChatList_;
}
/**
* repeated .wechat_proto.StatusNotifyUnreadChat unreadChatList = 7;
*/
@java.lang.Override
public java.util.List extends wechat.protobuf.StatusNotifyUnreadChatOrBuilder>
getUnreadChatListOrBuilderList() {
return unreadChatList_;
}
/**
* repeated .wechat_proto.StatusNotifyUnreadChat unreadChatList = 7;
*/
@java.lang.Override
public int getUnreadChatListCount() {
return unreadChatList_.size();
}
/**
* repeated .wechat_proto.StatusNotifyUnreadChat unreadChatList = 7;
*/
@java.lang.Override
public wechat.protobuf.StatusNotifyUnreadChat getUnreadChatList(int index) {
return unreadChatList_.get(index);
}
/**
* repeated .wechat_proto.StatusNotifyUnreadChat unreadChatList = 7;
*/
@java.lang.Override
public wechat.protobuf.StatusNotifyUnreadChatOrBuilder getUnreadChatListOrBuilder(
int index) {
return unreadChatList_.get(index);
}
public static final int FUNCTION_FIELD_NUMBER = 8;
private wechat.protobuf.StatusNotifyFunction function_;
/**
* optional .wechat_proto.StatusNotifyFunction function = 8;
* @return Whether the function field is set.
*/
@java.lang.Override
public boolean hasFunction() {
return ((bitField0_ & 0x00000040) != 0);
}
/**
* optional .wechat_proto.StatusNotifyFunction function = 8;
* @return The function.
*/
@java.lang.Override
public wechat.protobuf.StatusNotifyFunction getFunction() {
return function_ == null ? wechat.protobuf.StatusNotifyFunction.getDefaultInstance() : function_;
}
/**
* optional .wechat_proto.StatusNotifyFunction function = 8;
*/
@java.lang.Override
public wechat.protobuf.StatusNotifyFunctionOrBuilder getFunctionOrBuilder() {
return function_ == null ? wechat.protobuf.StatusNotifyFunction.getDefaultInstance() : function_;
}
public static final int UNREADFUNCTIONNUM_FIELD_NUMBER = 9;
private int unreadFunctionNum_;
/**
* optional uint32 unreadFunctionNum = 9;
* @return Whether the unreadFunctionNum field is set.
*/
@java.lang.Override
public boolean hasUnreadFunctionNum() {
return ((bitField0_ & 0x00000080) != 0);
}
/**
* optional uint32 unreadFunctionNum = 9;
* @return The unreadFunctionNum.
*/
@java.lang.Override
public int getUnreadFunctionNum() {
return unreadFunctionNum_;
}
public static final int UNREADFUNCTIONLIST_FIELD_NUMBER = 10;
private java.util.List unreadFunctionList_;
/**
* repeated .wechat_proto.StatusNotifyFunction unreadFunctionList = 10;
*/
@java.lang.Override
public java.util.List getUnreadFunctionListList() {
return unreadFunctionList_;
}
/**
* repeated .wechat_proto.StatusNotifyFunction unreadFunctionList = 10;
*/
@java.lang.Override
public java.util.List extends wechat.protobuf.StatusNotifyFunctionOrBuilder>
getUnreadFunctionListOrBuilderList() {
return unreadFunctionList_;
}
/**
* repeated .wechat_proto.StatusNotifyFunction unreadFunctionList = 10;
*/
@java.lang.Override
public int getUnreadFunctionListCount() {
return unreadFunctionList_.size();
}
/**
* repeated .wechat_proto.StatusNotifyFunction unreadFunctionList = 10;
*/
@java.lang.Override
public wechat.protobuf.StatusNotifyFunction getUnreadFunctionList(int index) {
return unreadFunctionList_.get(index);
}
/**
* repeated .wechat_proto.StatusNotifyFunction unreadFunctionList = 10;
*/
@java.lang.Override
public wechat.protobuf.StatusNotifyFunctionOrBuilder getUnreadFunctionListOrBuilder(
int index) {
return unreadFunctionList_.get(index);
}
private byte memoizedIsInitialized = -1;
@java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
if (((bitField0_ & 0x00000001) != 0)) {
output.writeMessage(1, getBaseRequest());
}
if (((bitField0_ & 0x00000002) != 0)) {
output.writeUInt32(2, code_);
}
if (((bitField0_ & 0x00000004) != 0)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 3, fromUserName_);
}
if (((bitField0_ & 0x00000008) != 0)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 4, toUserName_);
}
if (((bitField0_ & 0x00000010) != 0)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 5, clientMsgId_);
}
if (((bitField0_ & 0x00000020) != 0)) {
output.writeUInt32(6, unreadChatListNum_);
}
for (int i = 0; i < unreadChatList_.size(); i++) {
output.writeMessage(7, unreadChatList_.get(i));
}
if (((bitField0_ & 0x00000040) != 0)) {
output.writeMessage(8, getFunction());
}
if (((bitField0_ & 0x00000080) != 0)) {
output.writeUInt32(9, unreadFunctionNum_);
}
for (int i = 0; i < unreadFunctionList_.size(); i++) {
output.writeMessage(10, unreadFunctionList_.get(i));
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (((bitField0_ & 0x00000001) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(1, getBaseRequest());
}
if (((bitField0_ & 0x00000002) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeUInt32Size(2, code_);
}
if (((bitField0_ & 0x00000004) != 0)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, fromUserName_);
}
if (((bitField0_ & 0x00000008) != 0)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, toUserName_);
}
if (((bitField0_ & 0x00000010) != 0)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, clientMsgId_);
}
if (((bitField0_ & 0x00000020) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeUInt32Size(6, unreadChatListNum_);
}
for (int i = 0; i < unreadChatList_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(7, unreadChatList_.get(i));
}
if (((bitField0_ & 0x00000040) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(8, getFunction());
}
if (((bitField0_ & 0x00000080) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeUInt32Size(9, unreadFunctionNum_);
}
for (int i = 0; i < unreadFunctionList_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(10, unreadFunctionList_.get(i));
}
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 wechat.protobuf.StatusNotifyRequest)) {
return super.equals(obj);
}
wechat.protobuf.StatusNotifyRequest other = (wechat.protobuf.StatusNotifyRequest) obj;
if (hasBaseRequest() != other.hasBaseRequest()) return false;
if (hasBaseRequest()) {
if (!getBaseRequest()
.equals(other.getBaseRequest())) return false;
}
if (hasCode() != other.hasCode()) return false;
if (hasCode()) {
if (getCode()
!= other.getCode()) return false;
}
if (hasFromUserName() != other.hasFromUserName()) return false;
if (hasFromUserName()) {
if (!getFromUserName()
.equals(other.getFromUserName())) return false;
}
if (hasToUserName() != other.hasToUserName()) return false;
if (hasToUserName()) {
if (!getToUserName()
.equals(other.getToUserName())) return false;
}
if (hasClientMsgId() != other.hasClientMsgId()) return false;
if (hasClientMsgId()) {
if (!getClientMsgId()
.equals(other.getClientMsgId())) return false;
}
if (hasUnreadChatListNum() != other.hasUnreadChatListNum()) return false;
if (hasUnreadChatListNum()) {
if (getUnreadChatListNum()
!= other.getUnreadChatListNum()) return false;
}
if (!getUnreadChatListList()
.equals(other.getUnreadChatListList())) return false;
if (hasFunction() != other.hasFunction()) return false;
if (hasFunction()) {
if (!getFunction()
.equals(other.getFunction())) return false;
}
if (hasUnreadFunctionNum() != other.hasUnreadFunctionNum()) return false;
if (hasUnreadFunctionNum()) {
if (getUnreadFunctionNum()
!= other.getUnreadFunctionNum()) return false;
}
if (!getUnreadFunctionListList()
.equals(other.getUnreadFunctionListList())) 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();
if (hasBaseRequest()) {
hash = (37 * hash) + BASEREQUEST_FIELD_NUMBER;
hash = (53 * hash) + getBaseRequest().hashCode();
}
if (hasCode()) {
hash = (37 * hash) + CODE_FIELD_NUMBER;
hash = (53 * hash) + getCode();
}
if (hasFromUserName()) {
hash = (37 * hash) + FROMUSERNAME_FIELD_NUMBER;
hash = (53 * hash) + getFromUserName().hashCode();
}
if (hasToUserName()) {
hash = (37 * hash) + TOUSERNAME_FIELD_NUMBER;
hash = (53 * hash) + getToUserName().hashCode();
}
if (hasClientMsgId()) {
hash = (37 * hash) + CLIENTMSGID_FIELD_NUMBER;
hash = (53 * hash) + getClientMsgId().hashCode();
}
if (hasUnreadChatListNum()) {
hash = (37 * hash) + UNREADCHATLISTNUM_FIELD_NUMBER;
hash = (53 * hash) + getUnreadChatListNum();
}
if (getUnreadChatListCount() > 0) {
hash = (37 * hash) + UNREADCHATLIST_FIELD_NUMBER;
hash = (53 * hash) + getUnreadChatListList().hashCode();
}
if (hasFunction()) {
hash = (37 * hash) + FUNCTION_FIELD_NUMBER;
hash = (53 * hash) + getFunction().hashCode();
}
if (hasUnreadFunctionNum()) {
hash = (37 * hash) + UNREADFUNCTIONNUM_FIELD_NUMBER;
hash = (53 * hash) + getUnreadFunctionNum();
}
if (getUnreadFunctionListCount() > 0) {
hash = (37 * hash) + UNREADFUNCTIONLIST_FIELD_NUMBER;
hash = (53 * hash) + getUnreadFunctionListList().hashCode();
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static wechat.protobuf.StatusNotifyRequest parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static wechat.protobuf.StatusNotifyRequest parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static wechat.protobuf.StatusNotifyRequest parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static wechat.protobuf.StatusNotifyRequest parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static wechat.protobuf.StatusNotifyRequest parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static wechat.protobuf.StatusNotifyRequest parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static wechat.protobuf.StatusNotifyRequest parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static wechat.protobuf.StatusNotifyRequest 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 wechat.protobuf.StatusNotifyRequest parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static wechat.protobuf.StatusNotifyRequest 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 wechat.protobuf.StatusNotifyRequest parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static wechat.protobuf.StatusNotifyRequest 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(wechat.protobuf.StatusNotifyRequest 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 wechat_proto.StatusNotifyRequest}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:wechat_proto.StatusNotifyRequest)
wechat.protobuf.StatusNotifyRequestOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return wechat.protobuf.Wechat.internal_static_wechat_proto_StatusNotifyRequest_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return wechat.protobuf.Wechat.internal_static_wechat_proto_StatusNotifyRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
wechat.protobuf.StatusNotifyRequest.class, wechat.protobuf.StatusNotifyRequest.Builder.class);
}
// Construct using wechat.protobuf.StatusNotifyRequest.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
getBaseRequestFieldBuilder();
getUnreadChatListFieldBuilder();
getFunctionFieldBuilder();
getUnreadFunctionListFieldBuilder();
}
}
@java.lang.Override
public Builder clear() {
super.clear();
if (baseRequestBuilder_ == null) {
baseRequest_ = null;
} else {
baseRequestBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000001);
code_ = 0;
bitField0_ = (bitField0_ & ~0x00000002);
fromUserName_ = "";
bitField0_ = (bitField0_ & ~0x00000004);
toUserName_ = "";
bitField0_ = (bitField0_ & ~0x00000008);
clientMsgId_ = "";
bitField0_ = (bitField0_ & ~0x00000010);
unreadChatListNum_ = 0;
bitField0_ = (bitField0_ & ~0x00000020);
if (unreadChatListBuilder_ == null) {
unreadChatList_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000040);
} else {
unreadChatListBuilder_.clear();
}
if (functionBuilder_ == null) {
function_ = null;
} else {
functionBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000080);
unreadFunctionNum_ = 0;
bitField0_ = (bitField0_ & ~0x00000100);
if (unreadFunctionListBuilder_ == null) {
unreadFunctionList_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000200);
} else {
unreadFunctionListBuilder_.clear();
}
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return wechat.protobuf.Wechat.internal_static_wechat_proto_StatusNotifyRequest_descriptor;
}
@java.lang.Override
public wechat.protobuf.StatusNotifyRequest getDefaultInstanceForType() {
return wechat.protobuf.StatusNotifyRequest.getDefaultInstance();
}
@java.lang.Override
public wechat.protobuf.StatusNotifyRequest build() {
wechat.protobuf.StatusNotifyRequest result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public wechat.protobuf.StatusNotifyRequest buildPartial() {
wechat.protobuf.StatusNotifyRequest result = new wechat.protobuf.StatusNotifyRequest(this);
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
if (((from_bitField0_ & 0x00000001) != 0)) {
if (baseRequestBuilder_ == null) {
result.baseRequest_ = baseRequest_;
} else {
result.baseRequest_ = baseRequestBuilder_.build();
}
to_bitField0_ |= 0x00000001;
}
if (((from_bitField0_ & 0x00000002) != 0)) {
result.code_ = code_;
to_bitField0_ |= 0x00000002;
}
if (((from_bitField0_ & 0x00000004) != 0)) {
to_bitField0_ |= 0x00000004;
}
result.fromUserName_ = fromUserName_;
if (((from_bitField0_ & 0x00000008) != 0)) {
to_bitField0_ |= 0x00000008;
}
result.toUserName_ = toUserName_;
if (((from_bitField0_ & 0x00000010) != 0)) {
to_bitField0_ |= 0x00000010;
}
result.clientMsgId_ = clientMsgId_;
if (((from_bitField0_ & 0x00000020) != 0)) {
result.unreadChatListNum_ = unreadChatListNum_;
to_bitField0_ |= 0x00000020;
}
if (unreadChatListBuilder_ == null) {
if (((bitField0_ & 0x00000040) != 0)) {
unreadChatList_ = java.util.Collections.unmodifiableList(unreadChatList_);
bitField0_ = (bitField0_ & ~0x00000040);
}
result.unreadChatList_ = unreadChatList_;
} else {
result.unreadChatList_ = unreadChatListBuilder_.build();
}
if (((from_bitField0_ & 0x00000080) != 0)) {
if (functionBuilder_ == null) {
result.function_ = function_;
} else {
result.function_ = functionBuilder_.build();
}
to_bitField0_ |= 0x00000040;
}
if (((from_bitField0_ & 0x00000100) != 0)) {
result.unreadFunctionNum_ = unreadFunctionNum_;
to_bitField0_ |= 0x00000080;
}
if (unreadFunctionListBuilder_ == null) {
if (((bitField0_ & 0x00000200) != 0)) {
unreadFunctionList_ = java.util.Collections.unmodifiableList(unreadFunctionList_);
bitField0_ = (bitField0_ & ~0x00000200);
}
result.unreadFunctionList_ = unreadFunctionList_;
} else {
result.unreadFunctionList_ = unreadFunctionListBuilder_.build();
}
result.bitField0_ = to_bitField0_;
onBuilt();
return result;
}
@java.lang.Override
public Builder clone() {
return super.clone();
}
@java.lang.Override
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.setField(field, value);
}
@java.lang.Override
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return super.clearField(field);
}
@java.lang.Override
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return super.clearOneof(oneof);
}
@java.lang.Override
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return super.setRepeatedField(field, index, value);
}
@java.lang.Override
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.addRepeatedField(field, value);
}
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof wechat.protobuf.StatusNotifyRequest) {
return mergeFrom((wechat.protobuf.StatusNotifyRequest)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(wechat.protobuf.StatusNotifyRequest other) {
if (other == wechat.protobuf.StatusNotifyRequest.getDefaultInstance()) return this;
if (other.hasBaseRequest()) {
mergeBaseRequest(other.getBaseRequest());
}
if (other.hasCode()) {
setCode(other.getCode());
}
if (other.hasFromUserName()) {
bitField0_ |= 0x00000004;
fromUserName_ = other.fromUserName_;
onChanged();
}
if (other.hasToUserName()) {
bitField0_ |= 0x00000008;
toUserName_ = other.toUserName_;
onChanged();
}
if (other.hasClientMsgId()) {
bitField0_ |= 0x00000010;
clientMsgId_ = other.clientMsgId_;
onChanged();
}
if (other.hasUnreadChatListNum()) {
setUnreadChatListNum(other.getUnreadChatListNum());
}
if (unreadChatListBuilder_ == null) {
if (!other.unreadChatList_.isEmpty()) {
if (unreadChatList_.isEmpty()) {
unreadChatList_ = other.unreadChatList_;
bitField0_ = (bitField0_ & ~0x00000040);
} else {
ensureUnreadChatListIsMutable();
unreadChatList_.addAll(other.unreadChatList_);
}
onChanged();
}
} else {
if (!other.unreadChatList_.isEmpty()) {
if (unreadChatListBuilder_.isEmpty()) {
unreadChatListBuilder_.dispose();
unreadChatListBuilder_ = null;
unreadChatList_ = other.unreadChatList_;
bitField0_ = (bitField0_ & ~0x00000040);
unreadChatListBuilder_ =
com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
getUnreadChatListFieldBuilder() : null;
} else {
unreadChatListBuilder_.addAllMessages(other.unreadChatList_);
}
}
}
if (other.hasFunction()) {
mergeFunction(other.getFunction());
}
if (other.hasUnreadFunctionNum()) {
setUnreadFunctionNum(other.getUnreadFunctionNum());
}
if (unreadFunctionListBuilder_ == null) {
if (!other.unreadFunctionList_.isEmpty()) {
if (unreadFunctionList_.isEmpty()) {
unreadFunctionList_ = other.unreadFunctionList_;
bitField0_ = (bitField0_ & ~0x00000200);
} else {
ensureUnreadFunctionListIsMutable();
unreadFunctionList_.addAll(other.unreadFunctionList_);
}
onChanged();
}
} else {
if (!other.unreadFunctionList_.isEmpty()) {
if (unreadFunctionListBuilder_.isEmpty()) {
unreadFunctionListBuilder_.dispose();
unreadFunctionListBuilder_ = null;
unreadFunctionList_ = other.unreadFunctionList_;
bitField0_ = (bitField0_ & ~0x00000200);
unreadFunctionListBuilder_ =
com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
getUnreadFunctionListFieldBuilder() : null;
} else {
unreadFunctionListBuilder_.addAllMessages(other.unreadFunctionList_);
}
}
}
this.mergeUnknownFields(other.unknownFields);
onChanged();
return this;
}
@java.lang.Override
public final boolean isInitialized() {
return true;
}
@java.lang.Override
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
wechat.protobuf.StatusNotifyRequest parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (wechat.protobuf.StatusNotifyRequest) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
private wechat.protobuf.BaseRequest baseRequest_;
private com.google.protobuf.SingleFieldBuilderV3<
wechat.protobuf.BaseRequest, wechat.protobuf.BaseRequest.Builder, wechat.protobuf.BaseRequestOrBuilder> baseRequestBuilder_;
/**
* optional .wechat_proto.BaseRequest baseRequest = 1;
* @return Whether the baseRequest field is set.
*/
public boolean hasBaseRequest() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
* optional .wechat_proto.BaseRequest baseRequest = 1;
* @return The baseRequest.
*/
public wechat.protobuf.BaseRequest getBaseRequest() {
if (baseRequestBuilder_ == null) {
return baseRequest_ == null ? wechat.protobuf.BaseRequest.getDefaultInstance() : baseRequest_;
} else {
return baseRequestBuilder_.getMessage();
}
}
/**
* optional .wechat_proto.BaseRequest baseRequest = 1;
*/
public Builder setBaseRequest(wechat.protobuf.BaseRequest value) {
if (baseRequestBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
baseRequest_ = value;
onChanged();
} else {
baseRequestBuilder_.setMessage(value);
}
bitField0_ |= 0x00000001;
return this;
}
/**
* optional .wechat_proto.BaseRequest baseRequest = 1;
*/
public Builder setBaseRequest(
wechat.protobuf.BaseRequest.Builder builderForValue) {
if (baseRequestBuilder_ == null) {
baseRequest_ = builderForValue.build();
onChanged();
} else {
baseRequestBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000001;
return this;
}
/**
* optional .wechat_proto.BaseRequest baseRequest = 1;
*/
public Builder mergeBaseRequest(wechat.protobuf.BaseRequest value) {
if (baseRequestBuilder_ == null) {
if (((bitField0_ & 0x00000001) != 0) &&
baseRequest_ != null &&
baseRequest_ != wechat.protobuf.BaseRequest.getDefaultInstance()) {
baseRequest_ =
wechat.protobuf.BaseRequest.newBuilder(baseRequest_).mergeFrom(value).buildPartial();
} else {
baseRequest_ = value;
}
onChanged();
} else {
baseRequestBuilder_.mergeFrom(value);
}
bitField0_ |= 0x00000001;
return this;
}
/**
* optional .wechat_proto.BaseRequest baseRequest = 1;
*/
public Builder clearBaseRequest() {
if (baseRequestBuilder_ == null) {
baseRequest_ = null;
onChanged();
} else {
baseRequestBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000001);
return this;
}
/**
* optional .wechat_proto.BaseRequest baseRequest = 1;
*/
public wechat.protobuf.BaseRequest.Builder getBaseRequestBuilder() {
bitField0_ |= 0x00000001;
onChanged();
return getBaseRequestFieldBuilder().getBuilder();
}
/**
* optional .wechat_proto.BaseRequest baseRequest = 1;
*/
public wechat.protobuf.BaseRequestOrBuilder getBaseRequestOrBuilder() {
if (baseRequestBuilder_ != null) {
return baseRequestBuilder_.getMessageOrBuilder();
} else {
return baseRequest_ == null ?
wechat.protobuf.BaseRequest.getDefaultInstance() : baseRequest_;
}
}
/**
* optional .wechat_proto.BaseRequest baseRequest = 1;
*/
private com.google.protobuf.SingleFieldBuilderV3<
wechat.protobuf.BaseRequest, wechat.protobuf.BaseRequest.Builder, wechat.protobuf.BaseRequestOrBuilder>
getBaseRequestFieldBuilder() {
if (baseRequestBuilder_ == null) {
baseRequestBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
wechat.protobuf.BaseRequest, wechat.protobuf.BaseRequest.Builder, wechat.protobuf.BaseRequestOrBuilder>(
getBaseRequest(),
getParentForChildren(),
isClean());
baseRequest_ = null;
}
return baseRequestBuilder_;
}
private int code_ ;
/**
* optional uint32 code = 2;
* @return Whether the code field is set.
*/
@java.lang.Override
public boolean hasCode() {
return ((bitField0_ & 0x00000002) != 0);
}
/**
* optional uint32 code = 2;
* @return The code.
*/
@java.lang.Override
public int getCode() {
return code_;
}
/**
* optional uint32 code = 2;
* @param value The code to set.
* @return This builder for chaining.
*/
public Builder setCode(int value) {
bitField0_ |= 0x00000002;
code_ = value;
onChanged();
return this;
}
/**
* optional uint32 code = 2;
* @return This builder for chaining.
*/
public Builder clearCode() {
bitField0_ = (bitField0_ & ~0x00000002);
code_ = 0;
onChanged();
return this;
}
private java.lang.Object fromUserName_ = "";
/**
* optional string fromUserName = 3;
* @return Whether the fromUserName field is set.
*/
public boolean hasFromUserName() {
return ((bitField0_ & 0x00000004) != 0);
}
/**
* optional string fromUserName = 3;
* @return The fromUserName.
*/
public java.lang.String getFromUserName() {
java.lang.Object ref = fromUserName_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
if (bs.isValidUtf8()) {
fromUserName_ = s;
}
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* optional string fromUserName = 3;
* @return The bytes for fromUserName.
*/
public com.google.protobuf.ByteString
getFromUserNameBytes() {
java.lang.Object ref = fromUserName_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
fromUserName_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* optional string fromUserName = 3;
* @param value The fromUserName to set.
* @return This builder for chaining.
*/
public Builder setFromUserName(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000004;
fromUserName_ = value;
onChanged();
return this;
}
/**
* optional string fromUserName = 3;
* @return This builder for chaining.
*/
public Builder clearFromUserName() {
bitField0_ = (bitField0_ & ~0x00000004);
fromUserName_ = getDefaultInstance().getFromUserName();
onChanged();
return this;
}
/**
* optional string fromUserName = 3;
* @param value The bytes for fromUserName to set.
* @return This builder for chaining.
*/
public Builder setFromUserNameBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000004;
fromUserName_ = value;
onChanged();
return this;
}
private java.lang.Object toUserName_ = "";
/**
* optional string toUserName = 4;
* @return Whether the toUserName field is set.
*/
public boolean hasToUserName() {
return ((bitField0_ & 0x00000008) != 0);
}
/**
* optional string toUserName = 4;
* @return The toUserName.
*/
public java.lang.String getToUserName() {
java.lang.Object ref = toUserName_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
if (bs.isValidUtf8()) {
toUserName_ = s;
}
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* optional string toUserName = 4;
* @return The bytes for toUserName.
*/
public com.google.protobuf.ByteString
getToUserNameBytes() {
java.lang.Object ref = toUserName_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
toUserName_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* optional string toUserName = 4;
* @param value The toUserName to set.
* @return This builder for chaining.
*/
public Builder setToUserName(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000008;
toUserName_ = value;
onChanged();
return this;
}
/**
* optional string toUserName = 4;
* @return This builder for chaining.
*/
public Builder clearToUserName() {
bitField0_ = (bitField0_ & ~0x00000008);
toUserName_ = getDefaultInstance().getToUserName();
onChanged();
return this;
}
/**
* optional string toUserName = 4;
* @param value The bytes for toUserName to set.
* @return This builder for chaining.
*/
public Builder setToUserNameBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000008;
toUserName_ = value;
onChanged();
return this;
}
private java.lang.Object clientMsgId_ = "";
/**
* optional string clientMsgId = 5;
* @return Whether the clientMsgId field is set.
*/
public boolean hasClientMsgId() {
return ((bitField0_ & 0x00000010) != 0);
}
/**
* optional string clientMsgId = 5;
* @return The clientMsgId.
*/
public java.lang.String getClientMsgId() {
java.lang.Object ref = clientMsgId_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
if (bs.isValidUtf8()) {
clientMsgId_ = s;
}
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* optional string clientMsgId = 5;
* @return The bytes for clientMsgId.
*/
public com.google.protobuf.ByteString
getClientMsgIdBytes() {
java.lang.Object ref = clientMsgId_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
clientMsgId_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* optional string clientMsgId = 5;
* @param value The clientMsgId to set.
* @return This builder for chaining.
*/
public Builder setClientMsgId(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000010;
clientMsgId_ = value;
onChanged();
return this;
}
/**
* optional string clientMsgId = 5;
* @return This builder for chaining.
*/
public Builder clearClientMsgId() {
bitField0_ = (bitField0_ & ~0x00000010);
clientMsgId_ = getDefaultInstance().getClientMsgId();
onChanged();
return this;
}
/**
* optional string clientMsgId = 5;
* @param value The bytes for clientMsgId to set.
* @return This builder for chaining.
*/
public Builder setClientMsgIdBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000010;
clientMsgId_ = value;
onChanged();
return this;
}
private int unreadChatListNum_ ;
/**
* optional uint32 unreadChatListNum = 6;
* @return Whether the unreadChatListNum field is set.
*/
@java.lang.Override
public boolean hasUnreadChatListNum() {
return ((bitField0_ & 0x00000020) != 0);
}
/**
* optional uint32 unreadChatListNum = 6;
* @return The unreadChatListNum.
*/
@java.lang.Override
public int getUnreadChatListNum() {
return unreadChatListNum_;
}
/**
* optional uint32 unreadChatListNum = 6;
* @param value The unreadChatListNum to set.
* @return This builder for chaining.
*/
public Builder setUnreadChatListNum(int value) {
bitField0_ |= 0x00000020;
unreadChatListNum_ = value;
onChanged();
return this;
}
/**
* optional uint32 unreadChatListNum = 6;
* @return This builder for chaining.
*/
public Builder clearUnreadChatListNum() {
bitField0_ = (bitField0_ & ~0x00000020);
unreadChatListNum_ = 0;
onChanged();
return this;
}
private java.util.List unreadChatList_ =
java.util.Collections.emptyList();
private void ensureUnreadChatListIsMutable() {
if (!((bitField0_ & 0x00000040) != 0)) {
unreadChatList_ = new java.util.ArrayList(unreadChatList_);
bitField0_ |= 0x00000040;
}
}
private com.google.protobuf.RepeatedFieldBuilderV3<
wechat.protobuf.StatusNotifyUnreadChat, wechat.protobuf.StatusNotifyUnreadChat.Builder, wechat.protobuf.StatusNotifyUnreadChatOrBuilder> unreadChatListBuilder_;
/**
* repeated .wechat_proto.StatusNotifyUnreadChat unreadChatList = 7;
*/
public java.util.List getUnreadChatListList() {
if (unreadChatListBuilder_ == null) {
return java.util.Collections.unmodifiableList(unreadChatList_);
} else {
return unreadChatListBuilder_.getMessageList();
}
}
/**
* repeated .wechat_proto.StatusNotifyUnreadChat unreadChatList = 7;
*/
public int getUnreadChatListCount() {
if (unreadChatListBuilder_ == null) {
return unreadChatList_.size();
} else {
return unreadChatListBuilder_.getCount();
}
}
/**
* repeated .wechat_proto.StatusNotifyUnreadChat unreadChatList = 7;
*/
public wechat.protobuf.StatusNotifyUnreadChat getUnreadChatList(int index) {
if (unreadChatListBuilder_ == null) {
return unreadChatList_.get(index);
} else {
return unreadChatListBuilder_.getMessage(index);
}
}
/**
* repeated .wechat_proto.StatusNotifyUnreadChat unreadChatList = 7;
*/
public Builder setUnreadChatList(
int index, wechat.protobuf.StatusNotifyUnreadChat value) {
if (unreadChatListBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureUnreadChatListIsMutable();
unreadChatList_.set(index, value);
onChanged();
} else {
unreadChatListBuilder_.setMessage(index, value);
}
return this;
}
/**
* repeated .wechat_proto.StatusNotifyUnreadChat unreadChatList = 7;
*/
public Builder setUnreadChatList(
int index, wechat.protobuf.StatusNotifyUnreadChat.Builder builderForValue) {
if (unreadChatListBuilder_ == null) {
ensureUnreadChatListIsMutable();
unreadChatList_.set(index, builderForValue.build());
onChanged();
} else {
unreadChatListBuilder_.setMessage(index, builderForValue.build());
}
return this;
}
/**
* repeated .wechat_proto.StatusNotifyUnreadChat unreadChatList = 7;
*/
public Builder addUnreadChatList(wechat.protobuf.StatusNotifyUnreadChat value) {
if (unreadChatListBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureUnreadChatListIsMutable();
unreadChatList_.add(value);
onChanged();
} else {
unreadChatListBuilder_.addMessage(value);
}
return this;
}
/**
* repeated .wechat_proto.StatusNotifyUnreadChat unreadChatList = 7;
*/
public Builder addUnreadChatList(
int index, wechat.protobuf.StatusNotifyUnreadChat value) {
if (unreadChatListBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureUnreadChatListIsMutable();
unreadChatList_.add(index, value);
onChanged();
} else {
unreadChatListBuilder_.addMessage(index, value);
}
return this;
}
/**
* repeated .wechat_proto.StatusNotifyUnreadChat unreadChatList = 7;
*/
public Builder addUnreadChatList(
wechat.protobuf.StatusNotifyUnreadChat.Builder builderForValue) {
if (unreadChatListBuilder_ == null) {
ensureUnreadChatListIsMutable();
unreadChatList_.add(builderForValue.build());
onChanged();
} else {
unreadChatListBuilder_.addMessage(builderForValue.build());
}
return this;
}
/**
* repeated .wechat_proto.StatusNotifyUnreadChat unreadChatList = 7;
*/
public Builder addUnreadChatList(
int index, wechat.protobuf.StatusNotifyUnreadChat.Builder builderForValue) {
if (unreadChatListBuilder_ == null) {
ensureUnreadChatListIsMutable();
unreadChatList_.add(index, builderForValue.build());
onChanged();
} else {
unreadChatListBuilder_.addMessage(index, builderForValue.build());
}
return this;
}
/**
* repeated .wechat_proto.StatusNotifyUnreadChat unreadChatList = 7;
*/
public Builder addAllUnreadChatList(
java.lang.Iterable extends wechat.protobuf.StatusNotifyUnreadChat> values) {
if (unreadChatListBuilder_ == null) {
ensureUnreadChatListIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, unreadChatList_);
onChanged();
} else {
unreadChatListBuilder_.addAllMessages(values);
}
return this;
}
/**
* repeated .wechat_proto.StatusNotifyUnreadChat unreadChatList = 7;
*/
public Builder clearUnreadChatList() {
if (unreadChatListBuilder_ == null) {
unreadChatList_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000040);
onChanged();
} else {
unreadChatListBuilder_.clear();
}
return this;
}
/**
* repeated .wechat_proto.StatusNotifyUnreadChat unreadChatList = 7;
*/
public Builder removeUnreadChatList(int index) {
if (unreadChatListBuilder_ == null) {
ensureUnreadChatListIsMutable();
unreadChatList_.remove(index);
onChanged();
} else {
unreadChatListBuilder_.remove(index);
}
return this;
}
/**
* repeated .wechat_proto.StatusNotifyUnreadChat unreadChatList = 7;
*/
public wechat.protobuf.StatusNotifyUnreadChat.Builder getUnreadChatListBuilder(
int index) {
return getUnreadChatListFieldBuilder().getBuilder(index);
}
/**
* repeated .wechat_proto.StatusNotifyUnreadChat unreadChatList = 7;
*/
public wechat.protobuf.StatusNotifyUnreadChatOrBuilder getUnreadChatListOrBuilder(
int index) {
if (unreadChatListBuilder_ == null) {
return unreadChatList_.get(index); } else {
return unreadChatListBuilder_.getMessageOrBuilder(index);
}
}
/**
* repeated .wechat_proto.StatusNotifyUnreadChat unreadChatList = 7;
*/
public java.util.List extends wechat.protobuf.StatusNotifyUnreadChatOrBuilder>
getUnreadChatListOrBuilderList() {
if (unreadChatListBuilder_ != null) {
return unreadChatListBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(unreadChatList_);
}
}
/**
* repeated .wechat_proto.StatusNotifyUnreadChat unreadChatList = 7;
*/
public wechat.protobuf.StatusNotifyUnreadChat.Builder addUnreadChatListBuilder() {
return getUnreadChatListFieldBuilder().addBuilder(
wechat.protobuf.StatusNotifyUnreadChat.getDefaultInstance());
}
/**
* repeated .wechat_proto.StatusNotifyUnreadChat unreadChatList = 7;
*/
public wechat.protobuf.StatusNotifyUnreadChat.Builder addUnreadChatListBuilder(
int index) {
return getUnreadChatListFieldBuilder().addBuilder(
index, wechat.protobuf.StatusNotifyUnreadChat.getDefaultInstance());
}
/**
* repeated .wechat_proto.StatusNotifyUnreadChat unreadChatList = 7;
*/
public java.util.List
getUnreadChatListBuilderList() {
return getUnreadChatListFieldBuilder().getBuilderList();
}
private com.google.protobuf.RepeatedFieldBuilderV3<
wechat.protobuf.StatusNotifyUnreadChat, wechat.protobuf.StatusNotifyUnreadChat.Builder, wechat.protobuf.StatusNotifyUnreadChatOrBuilder>
getUnreadChatListFieldBuilder() {
if (unreadChatListBuilder_ == null) {
unreadChatListBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
wechat.protobuf.StatusNotifyUnreadChat, wechat.protobuf.StatusNotifyUnreadChat.Builder, wechat.protobuf.StatusNotifyUnreadChatOrBuilder>(
unreadChatList_,
((bitField0_ & 0x00000040) != 0),
getParentForChildren(),
isClean());
unreadChatList_ = null;
}
return unreadChatListBuilder_;
}
private wechat.protobuf.StatusNotifyFunction function_;
private com.google.protobuf.SingleFieldBuilderV3<
wechat.protobuf.StatusNotifyFunction, wechat.protobuf.StatusNotifyFunction.Builder, wechat.protobuf.StatusNotifyFunctionOrBuilder> functionBuilder_;
/**
* optional .wechat_proto.StatusNotifyFunction function = 8;
* @return Whether the function field is set.
*/
public boolean hasFunction() {
return ((bitField0_ & 0x00000080) != 0);
}
/**
* optional .wechat_proto.StatusNotifyFunction function = 8;
* @return The function.
*/
public wechat.protobuf.StatusNotifyFunction getFunction() {
if (functionBuilder_ == null) {
return function_ == null ? wechat.protobuf.StatusNotifyFunction.getDefaultInstance() : function_;
} else {
return functionBuilder_.getMessage();
}
}
/**
* optional .wechat_proto.StatusNotifyFunction function = 8;
*/
public Builder setFunction(wechat.protobuf.StatusNotifyFunction value) {
if (functionBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
function_ = value;
onChanged();
} else {
functionBuilder_.setMessage(value);
}
bitField0_ |= 0x00000080;
return this;
}
/**
* optional .wechat_proto.StatusNotifyFunction function = 8;
*/
public Builder setFunction(
wechat.protobuf.StatusNotifyFunction.Builder builderForValue) {
if (functionBuilder_ == null) {
function_ = builderForValue.build();
onChanged();
} else {
functionBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000080;
return this;
}
/**
* optional .wechat_proto.StatusNotifyFunction function = 8;
*/
public Builder mergeFunction(wechat.protobuf.StatusNotifyFunction value) {
if (functionBuilder_ == null) {
if (((bitField0_ & 0x00000080) != 0) &&
function_ != null &&
function_ != wechat.protobuf.StatusNotifyFunction.getDefaultInstance()) {
function_ =
wechat.protobuf.StatusNotifyFunction.newBuilder(function_).mergeFrom(value).buildPartial();
} else {
function_ = value;
}
onChanged();
} else {
functionBuilder_.mergeFrom(value);
}
bitField0_ |= 0x00000080;
return this;
}
/**
* optional .wechat_proto.StatusNotifyFunction function = 8;
*/
public Builder clearFunction() {
if (functionBuilder_ == null) {
function_ = null;
onChanged();
} else {
functionBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000080);
return this;
}
/**
* optional .wechat_proto.StatusNotifyFunction function = 8;
*/
public wechat.protobuf.StatusNotifyFunction.Builder getFunctionBuilder() {
bitField0_ |= 0x00000080;
onChanged();
return getFunctionFieldBuilder().getBuilder();
}
/**
* optional .wechat_proto.StatusNotifyFunction function = 8;
*/
public wechat.protobuf.StatusNotifyFunctionOrBuilder getFunctionOrBuilder() {
if (functionBuilder_ != null) {
return functionBuilder_.getMessageOrBuilder();
} else {
return function_ == null ?
wechat.protobuf.StatusNotifyFunction.getDefaultInstance() : function_;
}
}
/**
* optional .wechat_proto.StatusNotifyFunction function = 8;
*/
private com.google.protobuf.SingleFieldBuilderV3<
wechat.protobuf.StatusNotifyFunction, wechat.protobuf.StatusNotifyFunction.Builder, wechat.protobuf.StatusNotifyFunctionOrBuilder>
getFunctionFieldBuilder() {
if (functionBuilder_ == null) {
functionBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
wechat.protobuf.StatusNotifyFunction, wechat.protobuf.StatusNotifyFunction.Builder, wechat.protobuf.StatusNotifyFunctionOrBuilder>(
getFunction(),
getParentForChildren(),
isClean());
function_ = null;
}
return functionBuilder_;
}
private int unreadFunctionNum_ ;
/**
* optional uint32 unreadFunctionNum = 9;
* @return Whether the unreadFunctionNum field is set.
*/
@java.lang.Override
public boolean hasUnreadFunctionNum() {
return ((bitField0_ & 0x00000100) != 0);
}
/**
* optional uint32 unreadFunctionNum = 9;
* @return The unreadFunctionNum.
*/
@java.lang.Override
public int getUnreadFunctionNum() {
return unreadFunctionNum_;
}
/**
* optional uint32 unreadFunctionNum = 9;
* @param value The unreadFunctionNum to set.
* @return This builder for chaining.
*/
public Builder setUnreadFunctionNum(int value) {
bitField0_ |= 0x00000100;
unreadFunctionNum_ = value;
onChanged();
return this;
}
/**
* optional uint32 unreadFunctionNum = 9;
* @return This builder for chaining.
*/
public Builder clearUnreadFunctionNum() {
bitField0_ = (bitField0_ & ~0x00000100);
unreadFunctionNum_ = 0;
onChanged();
return this;
}
private java.util.List unreadFunctionList_ =
java.util.Collections.emptyList();
private void ensureUnreadFunctionListIsMutable() {
if (!((bitField0_ & 0x00000200) != 0)) {
unreadFunctionList_ = new java.util.ArrayList(unreadFunctionList_);
bitField0_ |= 0x00000200;
}
}
private com.google.protobuf.RepeatedFieldBuilderV3<
wechat.protobuf.StatusNotifyFunction, wechat.protobuf.StatusNotifyFunction.Builder, wechat.protobuf.StatusNotifyFunctionOrBuilder> unreadFunctionListBuilder_;
/**
* repeated .wechat_proto.StatusNotifyFunction unreadFunctionList = 10;
*/
public java.util.List getUnreadFunctionListList() {
if (unreadFunctionListBuilder_ == null) {
return java.util.Collections.unmodifiableList(unreadFunctionList_);
} else {
return unreadFunctionListBuilder_.getMessageList();
}
}
/**
* repeated .wechat_proto.StatusNotifyFunction unreadFunctionList = 10;
*/
public int getUnreadFunctionListCount() {
if (unreadFunctionListBuilder_ == null) {
return unreadFunctionList_.size();
} else {
return unreadFunctionListBuilder_.getCount();
}
}
/**
* repeated .wechat_proto.StatusNotifyFunction unreadFunctionList = 10;
*/
public wechat.protobuf.StatusNotifyFunction getUnreadFunctionList(int index) {
if (unreadFunctionListBuilder_ == null) {
return unreadFunctionList_.get(index);
} else {
return unreadFunctionListBuilder_.getMessage(index);
}
}
/**
* repeated .wechat_proto.StatusNotifyFunction unreadFunctionList = 10;
*/
public Builder setUnreadFunctionList(
int index, wechat.protobuf.StatusNotifyFunction value) {
if (unreadFunctionListBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureUnreadFunctionListIsMutable();
unreadFunctionList_.set(index, value);
onChanged();
} else {
unreadFunctionListBuilder_.setMessage(index, value);
}
return this;
}
/**
* repeated .wechat_proto.StatusNotifyFunction unreadFunctionList = 10;
*/
public Builder setUnreadFunctionList(
int index, wechat.protobuf.StatusNotifyFunction.Builder builderForValue) {
if (unreadFunctionListBuilder_ == null) {
ensureUnreadFunctionListIsMutable();
unreadFunctionList_.set(index, builderForValue.build());
onChanged();
} else {
unreadFunctionListBuilder_.setMessage(index, builderForValue.build());
}
return this;
}
/**
* repeated .wechat_proto.StatusNotifyFunction unreadFunctionList = 10;
*/
public Builder addUnreadFunctionList(wechat.protobuf.StatusNotifyFunction value) {
if (unreadFunctionListBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureUnreadFunctionListIsMutable();
unreadFunctionList_.add(value);
onChanged();
} else {
unreadFunctionListBuilder_.addMessage(value);
}
return this;
}
/**
* repeated .wechat_proto.StatusNotifyFunction unreadFunctionList = 10;
*/
public Builder addUnreadFunctionList(
int index, wechat.protobuf.StatusNotifyFunction value) {
if (unreadFunctionListBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureUnreadFunctionListIsMutable();
unreadFunctionList_.add(index, value);
onChanged();
} else {
unreadFunctionListBuilder_.addMessage(index, value);
}
return this;
}
/**
* repeated .wechat_proto.StatusNotifyFunction unreadFunctionList = 10;
*/
public Builder addUnreadFunctionList(
wechat.protobuf.StatusNotifyFunction.Builder builderForValue) {
if (unreadFunctionListBuilder_ == null) {
ensureUnreadFunctionListIsMutable();
unreadFunctionList_.add(builderForValue.build());
onChanged();
} else {
unreadFunctionListBuilder_.addMessage(builderForValue.build());
}
return this;
}
/**
* repeated .wechat_proto.StatusNotifyFunction unreadFunctionList = 10;
*/
public Builder addUnreadFunctionList(
int index, wechat.protobuf.StatusNotifyFunction.Builder builderForValue) {
if (unreadFunctionListBuilder_ == null) {
ensureUnreadFunctionListIsMutable();
unreadFunctionList_.add(index, builderForValue.build());
onChanged();
} else {
unreadFunctionListBuilder_.addMessage(index, builderForValue.build());
}
return this;
}
/**
* repeated .wechat_proto.StatusNotifyFunction unreadFunctionList = 10;
*/
public Builder addAllUnreadFunctionList(
java.lang.Iterable extends wechat.protobuf.StatusNotifyFunction> values) {
if (unreadFunctionListBuilder_ == null) {
ensureUnreadFunctionListIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, unreadFunctionList_);
onChanged();
} else {
unreadFunctionListBuilder_.addAllMessages(values);
}
return this;
}
/**
* repeated .wechat_proto.StatusNotifyFunction unreadFunctionList = 10;
*/
public Builder clearUnreadFunctionList() {
if (unreadFunctionListBuilder_ == null) {
unreadFunctionList_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000200);
onChanged();
} else {
unreadFunctionListBuilder_.clear();
}
return this;
}
/**
* repeated .wechat_proto.StatusNotifyFunction unreadFunctionList = 10;
*/
public Builder removeUnreadFunctionList(int index) {
if (unreadFunctionListBuilder_ == null) {
ensureUnreadFunctionListIsMutable();
unreadFunctionList_.remove(index);
onChanged();
} else {
unreadFunctionListBuilder_.remove(index);
}
return this;
}
/**
* repeated .wechat_proto.StatusNotifyFunction unreadFunctionList = 10;
*/
public wechat.protobuf.StatusNotifyFunction.Builder getUnreadFunctionListBuilder(
int index) {
return getUnreadFunctionListFieldBuilder().getBuilder(index);
}
/**
* repeated .wechat_proto.StatusNotifyFunction unreadFunctionList = 10;
*/
public wechat.protobuf.StatusNotifyFunctionOrBuilder getUnreadFunctionListOrBuilder(
int index) {
if (unreadFunctionListBuilder_ == null) {
return unreadFunctionList_.get(index); } else {
return unreadFunctionListBuilder_.getMessageOrBuilder(index);
}
}
/**
* repeated .wechat_proto.StatusNotifyFunction unreadFunctionList = 10;
*/
public java.util.List extends wechat.protobuf.StatusNotifyFunctionOrBuilder>
getUnreadFunctionListOrBuilderList() {
if (unreadFunctionListBuilder_ != null) {
return unreadFunctionListBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(unreadFunctionList_);
}
}
/**
* repeated .wechat_proto.StatusNotifyFunction unreadFunctionList = 10;
*/
public wechat.protobuf.StatusNotifyFunction.Builder addUnreadFunctionListBuilder() {
return getUnreadFunctionListFieldBuilder().addBuilder(
wechat.protobuf.StatusNotifyFunction.getDefaultInstance());
}
/**
* repeated .wechat_proto.StatusNotifyFunction unreadFunctionList = 10;
*/
public wechat.protobuf.StatusNotifyFunction.Builder addUnreadFunctionListBuilder(
int index) {
return getUnreadFunctionListFieldBuilder().addBuilder(
index, wechat.protobuf.StatusNotifyFunction.getDefaultInstance());
}
/**
* repeated .wechat_proto.StatusNotifyFunction unreadFunctionList = 10;
*/
public java.util.List
getUnreadFunctionListBuilderList() {
return getUnreadFunctionListFieldBuilder().getBuilderList();
}
private com.google.protobuf.RepeatedFieldBuilderV3<
wechat.protobuf.StatusNotifyFunction, wechat.protobuf.StatusNotifyFunction.Builder, wechat.protobuf.StatusNotifyFunctionOrBuilder>
getUnreadFunctionListFieldBuilder() {
if (unreadFunctionListBuilder_ == null) {
unreadFunctionListBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
wechat.protobuf.StatusNotifyFunction, wechat.protobuf.StatusNotifyFunction.Builder, wechat.protobuf.StatusNotifyFunctionOrBuilder>(
unreadFunctionList_,
((bitField0_ & 0x00000200) != 0),
getParentForChildren(),
isClean());
unreadFunctionList_ = null;
}
return unreadFunctionListBuilder_;
}
@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:wechat_proto.StatusNotifyRequest)
}
// @@protoc_insertion_point(class_scope:wechat_proto.StatusNotifyRequest)
private static final wechat.protobuf.StatusNotifyRequest DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new wechat.protobuf.StatusNotifyRequest();
}
public static wechat.protobuf.StatusNotifyRequest getDefaultInstance() {
return DEFAULT_INSTANCE;
}
@java.lang.Deprecated public static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public StatusNotifyRequest parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new StatusNotifyRequest(input, extensionRegistry);
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
@java.lang.Override
public wechat.protobuf.StatusNotifyRequest getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy