
wechat.protobuf.StatusNotifyResponse Maven / Gradle / Ivy
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: wechat.proto
package wechat.protobuf;
/**
* Protobuf type {@code wechat_proto.StatusNotifyResponse}
*/
public final class StatusNotifyResponse extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:wechat_proto.StatusNotifyResponse)
StatusNotifyResponseOrBuilder {
private static final long serialVersionUID = 0L;
// Use StatusNotifyResponse.newBuilder() to construct.
private StatusNotifyResponse(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private StatusNotifyResponse() {
chatContactList_ = java.util.Collections.emptyList();
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new StatusNotifyResponse();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private StatusNotifyResponse(
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.BaseResponse.Builder subBuilder = null;
if (((bitField0_ & 0x00000001) != 0)) {
subBuilder = baseResponse_.toBuilder();
}
baseResponse_ = input.readMessage(wechat.protobuf.BaseResponse.PARSER, extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(baseResponse_);
baseResponse_ = subBuilder.buildPartial();
}
bitField0_ |= 0x00000001;
break;
}
case 16: {
bitField0_ |= 0x00000002;
msgId_ = input.readUInt32();
break;
}
case 24: {
bitField0_ |= 0x00000004;
newMsgId_ = input.readUInt64();
break;
}
case 32: {
bitField0_ |= 0x00000008;
chatContactNum_ = input.readUInt32();
break;
}
case 42: {
if (!((mutable_bitField0_ & 0x00000010) != 0)) {
chatContactList_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00000010;
}
chatContactList_.add(
input.readMessage(wechat.protobuf.ChatContact.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_ & 0x00000010) != 0)) {
chatContactList_ = java.util.Collections.unmodifiableList(chatContactList_);
}
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return wechat.protobuf.Wechat.internal_static_wechat_proto_StatusNotifyResponse_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return wechat.protobuf.Wechat.internal_static_wechat_proto_StatusNotifyResponse_fieldAccessorTable
.ensureFieldAccessorsInitialized(
wechat.protobuf.StatusNotifyResponse.class, wechat.protobuf.StatusNotifyResponse.Builder.class);
}
private int bitField0_;
public static final int BASERESPONSE_FIELD_NUMBER = 1;
private wechat.protobuf.BaseResponse baseResponse_;
/**
* optional .wechat_proto.BaseResponse baseResponse = 1;
* @return Whether the baseResponse field is set.
*/
@java.lang.Override
public boolean hasBaseResponse() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
* optional .wechat_proto.BaseResponse baseResponse = 1;
* @return The baseResponse.
*/
@java.lang.Override
public wechat.protobuf.BaseResponse getBaseResponse() {
return baseResponse_ == null ? wechat.protobuf.BaseResponse.getDefaultInstance() : baseResponse_;
}
/**
* optional .wechat_proto.BaseResponse baseResponse = 1;
*/
@java.lang.Override
public wechat.protobuf.BaseResponseOrBuilder getBaseResponseOrBuilder() {
return baseResponse_ == null ? wechat.protobuf.BaseResponse.getDefaultInstance() : baseResponse_;
}
public static final int MSGID_FIELD_NUMBER = 2;
private int msgId_;
/**
* optional uint32 msgId = 2;
* @return Whether the msgId field is set.
*/
@java.lang.Override
public boolean hasMsgId() {
return ((bitField0_ & 0x00000002) != 0);
}
/**
* optional uint32 msgId = 2;
* @return The msgId.
*/
@java.lang.Override
public int getMsgId() {
return msgId_;
}
public static final int NEWMSGID_FIELD_NUMBER = 3;
private long newMsgId_;
/**
* optional uint64 newMsgId = 3;
* @return Whether the newMsgId field is set.
*/
@java.lang.Override
public boolean hasNewMsgId() {
return ((bitField0_ & 0x00000004) != 0);
}
/**
* optional uint64 newMsgId = 3;
* @return The newMsgId.
*/
@java.lang.Override
public long getNewMsgId() {
return newMsgId_;
}
public static final int CHATCONTACTNUM_FIELD_NUMBER = 4;
private int chatContactNum_;
/**
* optional uint32 chatContactNum = 4;
* @return Whether the chatContactNum field is set.
*/
@java.lang.Override
public boolean hasChatContactNum() {
return ((bitField0_ & 0x00000008) != 0);
}
/**
* optional uint32 chatContactNum = 4;
* @return The chatContactNum.
*/
@java.lang.Override
public int getChatContactNum() {
return chatContactNum_;
}
public static final int CHATCONTACTLIST_FIELD_NUMBER = 5;
private java.util.List chatContactList_;
/**
* repeated .wechat_proto.ChatContact chatContactList = 5;
*/
@java.lang.Override
public java.util.List getChatContactListList() {
return chatContactList_;
}
/**
* repeated .wechat_proto.ChatContact chatContactList = 5;
*/
@java.lang.Override
public java.util.List extends wechat.protobuf.ChatContactOrBuilder>
getChatContactListOrBuilderList() {
return chatContactList_;
}
/**
* repeated .wechat_proto.ChatContact chatContactList = 5;
*/
@java.lang.Override
public int getChatContactListCount() {
return chatContactList_.size();
}
/**
* repeated .wechat_proto.ChatContact chatContactList = 5;
*/
@java.lang.Override
public wechat.protobuf.ChatContact getChatContactList(int index) {
return chatContactList_.get(index);
}
/**
* repeated .wechat_proto.ChatContact chatContactList = 5;
*/
@java.lang.Override
public wechat.protobuf.ChatContactOrBuilder getChatContactListOrBuilder(
int index) {
return chatContactList_.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, getBaseResponse());
}
if (((bitField0_ & 0x00000002) != 0)) {
output.writeUInt32(2, msgId_);
}
if (((bitField0_ & 0x00000004) != 0)) {
output.writeUInt64(3, newMsgId_);
}
if (((bitField0_ & 0x00000008) != 0)) {
output.writeUInt32(4, chatContactNum_);
}
for (int i = 0; i < chatContactList_.size(); i++) {
output.writeMessage(5, chatContactList_.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, getBaseResponse());
}
if (((bitField0_ & 0x00000002) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeUInt32Size(2, msgId_);
}
if (((bitField0_ & 0x00000004) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeUInt64Size(3, newMsgId_);
}
if (((bitField0_ & 0x00000008) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeUInt32Size(4, chatContactNum_);
}
for (int i = 0; i < chatContactList_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(5, chatContactList_.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.StatusNotifyResponse)) {
return super.equals(obj);
}
wechat.protobuf.StatusNotifyResponse other = (wechat.protobuf.StatusNotifyResponse) obj;
if (hasBaseResponse() != other.hasBaseResponse()) return false;
if (hasBaseResponse()) {
if (!getBaseResponse()
.equals(other.getBaseResponse())) return false;
}
if (hasMsgId() != other.hasMsgId()) return false;
if (hasMsgId()) {
if (getMsgId()
!= other.getMsgId()) return false;
}
if (hasNewMsgId() != other.hasNewMsgId()) return false;
if (hasNewMsgId()) {
if (getNewMsgId()
!= other.getNewMsgId()) return false;
}
if (hasChatContactNum() != other.hasChatContactNum()) return false;
if (hasChatContactNum()) {
if (getChatContactNum()
!= other.getChatContactNum()) return false;
}
if (!getChatContactListList()
.equals(other.getChatContactListList())) 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 (hasBaseResponse()) {
hash = (37 * hash) + BASERESPONSE_FIELD_NUMBER;
hash = (53 * hash) + getBaseResponse().hashCode();
}
if (hasMsgId()) {
hash = (37 * hash) + MSGID_FIELD_NUMBER;
hash = (53 * hash) + getMsgId();
}
if (hasNewMsgId()) {
hash = (37 * hash) + NEWMSGID_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
getNewMsgId());
}
if (hasChatContactNum()) {
hash = (37 * hash) + CHATCONTACTNUM_FIELD_NUMBER;
hash = (53 * hash) + getChatContactNum();
}
if (getChatContactListCount() > 0) {
hash = (37 * hash) + CHATCONTACTLIST_FIELD_NUMBER;
hash = (53 * hash) + getChatContactListList().hashCode();
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static wechat.protobuf.StatusNotifyResponse parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static wechat.protobuf.StatusNotifyResponse parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static wechat.protobuf.StatusNotifyResponse parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static wechat.protobuf.StatusNotifyResponse 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.StatusNotifyResponse parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static wechat.protobuf.StatusNotifyResponse parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static wechat.protobuf.StatusNotifyResponse parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static wechat.protobuf.StatusNotifyResponse 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.StatusNotifyResponse parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static wechat.protobuf.StatusNotifyResponse 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.StatusNotifyResponse parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static wechat.protobuf.StatusNotifyResponse 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.StatusNotifyResponse 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.StatusNotifyResponse}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:wechat_proto.StatusNotifyResponse)
wechat.protobuf.StatusNotifyResponseOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return wechat.protobuf.Wechat.internal_static_wechat_proto_StatusNotifyResponse_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return wechat.protobuf.Wechat.internal_static_wechat_proto_StatusNotifyResponse_fieldAccessorTable
.ensureFieldAccessorsInitialized(
wechat.protobuf.StatusNotifyResponse.class, wechat.protobuf.StatusNotifyResponse.Builder.class);
}
// Construct using wechat.protobuf.StatusNotifyResponse.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
getBaseResponseFieldBuilder();
getChatContactListFieldBuilder();
}
}
@java.lang.Override
public Builder clear() {
super.clear();
if (baseResponseBuilder_ == null) {
baseResponse_ = null;
} else {
baseResponseBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000001);
msgId_ = 0;
bitField0_ = (bitField0_ & ~0x00000002);
newMsgId_ = 0L;
bitField0_ = (bitField0_ & ~0x00000004);
chatContactNum_ = 0;
bitField0_ = (bitField0_ & ~0x00000008);
if (chatContactListBuilder_ == null) {
chatContactList_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000010);
} else {
chatContactListBuilder_.clear();
}
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return wechat.protobuf.Wechat.internal_static_wechat_proto_StatusNotifyResponse_descriptor;
}
@java.lang.Override
public wechat.protobuf.StatusNotifyResponse getDefaultInstanceForType() {
return wechat.protobuf.StatusNotifyResponse.getDefaultInstance();
}
@java.lang.Override
public wechat.protobuf.StatusNotifyResponse build() {
wechat.protobuf.StatusNotifyResponse result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public wechat.protobuf.StatusNotifyResponse buildPartial() {
wechat.protobuf.StatusNotifyResponse result = new wechat.protobuf.StatusNotifyResponse(this);
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
if (((from_bitField0_ & 0x00000001) != 0)) {
if (baseResponseBuilder_ == null) {
result.baseResponse_ = baseResponse_;
} else {
result.baseResponse_ = baseResponseBuilder_.build();
}
to_bitField0_ |= 0x00000001;
}
if (((from_bitField0_ & 0x00000002) != 0)) {
result.msgId_ = msgId_;
to_bitField0_ |= 0x00000002;
}
if (((from_bitField0_ & 0x00000004) != 0)) {
result.newMsgId_ = newMsgId_;
to_bitField0_ |= 0x00000004;
}
if (((from_bitField0_ & 0x00000008) != 0)) {
result.chatContactNum_ = chatContactNum_;
to_bitField0_ |= 0x00000008;
}
if (chatContactListBuilder_ == null) {
if (((bitField0_ & 0x00000010) != 0)) {
chatContactList_ = java.util.Collections.unmodifiableList(chatContactList_);
bitField0_ = (bitField0_ & ~0x00000010);
}
result.chatContactList_ = chatContactList_;
} else {
result.chatContactList_ = chatContactListBuilder_.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.StatusNotifyResponse) {
return mergeFrom((wechat.protobuf.StatusNotifyResponse)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(wechat.protobuf.StatusNotifyResponse other) {
if (other == wechat.protobuf.StatusNotifyResponse.getDefaultInstance()) return this;
if (other.hasBaseResponse()) {
mergeBaseResponse(other.getBaseResponse());
}
if (other.hasMsgId()) {
setMsgId(other.getMsgId());
}
if (other.hasNewMsgId()) {
setNewMsgId(other.getNewMsgId());
}
if (other.hasChatContactNum()) {
setChatContactNum(other.getChatContactNum());
}
if (chatContactListBuilder_ == null) {
if (!other.chatContactList_.isEmpty()) {
if (chatContactList_.isEmpty()) {
chatContactList_ = other.chatContactList_;
bitField0_ = (bitField0_ & ~0x00000010);
} else {
ensureChatContactListIsMutable();
chatContactList_.addAll(other.chatContactList_);
}
onChanged();
}
} else {
if (!other.chatContactList_.isEmpty()) {
if (chatContactListBuilder_.isEmpty()) {
chatContactListBuilder_.dispose();
chatContactListBuilder_ = null;
chatContactList_ = other.chatContactList_;
bitField0_ = (bitField0_ & ~0x00000010);
chatContactListBuilder_ =
com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
getChatContactListFieldBuilder() : null;
} else {
chatContactListBuilder_.addAllMessages(other.chatContactList_);
}
}
}
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.StatusNotifyResponse parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (wechat.protobuf.StatusNotifyResponse) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
private wechat.protobuf.BaseResponse baseResponse_;
private com.google.protobuf.SingleFieldBuilderV3<
wechat.protobuf.BaseResponse, wechat.protobuf.BaseResponse.Builder, wechat.protobuf.BaseResponseOrBuilder> baseResponseBuilder_;
/**
* optional .wechat_proto.BaseResponse baseResponse = 1;
* @return Whether the baseResponse field is set.
*/
public boolean hasBaseResponse() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
* optional .wechat_proto.BaseResponse baseResponse = 1;
* @return The baseResponse.
*/
public wechat.protobuf.BaseResponse getBaseResponse() {
if (baseResponseBuilder_ == null) {
return baseResponse_ == null ? wechat.protobuf.BaseResponse.getDefaultInstance() : baseResponse_;
} else {
return baseResponseBuilder_.getMessage();
}
}
/**
* optional .wechat_proto.BaseResponse baseResponse = 1;
*/
public Builder setBaseResponse(wechat.protobuf.BaseResponse value) {
if (baseResponseBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
baseResponse_ = value;
onChanged();
} else {
baseResponseBuilder_.setMessage(value);
}
bitField0_ |= 0x00000001;
return this;
}
/**
* optional .wechat_proto.BaseResponse baseResponse = 1;
*/
public Builder setBaseResponse(
wechat.protobuf.BaseResponse.Builder builderForValue) {
if (baseResponseBuilder_ == null) {
baseResponse_ = builderForValue.build();
onChanged();
} else {
baseResponseBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000001;
return this;
}
/**
* optional .wechat_proto.BaseResponse baseResponse = 1;
*/
public Builder mergeBaseResponse(wechat.protobuf.BaseResponse value) {
if (baseResponseBuilder_ == null) {
if (((bitField0_ & 0x00000001) != 0) &&
baseResponse_ != null &&
baseResponse_ != wechat.protobuf.BaseResponse.getDefaultInstance()) {
baseResponse_ =
wechat.protobuf.BaseResponse.newBuilder(baseResponse_).mergeFrom(value).buildPartial();
} else {
baseResponse_ = value;
}
onChanged();
} else {
baseResponseBuilder_.mergeFrom(value);
}
bitField0_ |= 0x00000001;
return this;
}
/**
* optional .wechat_proto.BaseResponse baseResponse = 1;
*/
public Builder clearBaseResponse() {
if (baseResponseBuilder_ == null) {
baseResponse_ = null;
onChanged();
} else {
baseResponseBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000001);
return this;
}
/**
* optional .wechat_proto.BaseResponse baseResponse = 1;
*/
public wechat.protobuf.BaseResponse.Builder getBaseResponseBuilder() {
bitField0_ |= 0x00000001;
onChanged();
return getBaseResponseFieldBuilder().getBuilder();
}
/**
* optional .wechat_proto.BaseResponse baseResponse = 1;
*/
public wechat.protobuf.BaseResponseOrBuilder getBaseResponseOrBuilder() {
if (baseResponseBuilder_ != null) {
return baseResponseBuilder_.getMessageOrBuilder();
} else {
return baseResponse_ == null ?
wechat.protobuf.BaseResponse.getDefaultInstance() : baseResponse_;
}
}
/**
* optional .wechat_proto.BaseResponse baseResponse = 1;
*/
private com.google.protobuf.SingleFieldBuilderV3<
wechat.protobuf.BaseResponse, wechat.protobuf.BaseResponse.Builder, wechat.protobuf.BaseResponseOrBuilder>
getBaseResponseFieldBuilder() {
if (baseResponseBuilder_ == null) {
baseResponseBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
wechat.protobuf.BaseResponse, wechat.protobuf.BaseResponse.Builder, wechat.protobuf.BaseResponseOrBuilder>(
getBaseResponse(),
getParentForChildren(),
isClean());
baseResponse_ = null;
}
return baseResponseBuilder_;
}
private int msgId_ ;
/**
* optional uint32 msgId = 2;
* @return Whether the msgId field is set.
*/
@java.lang.Override
public boolean hasMsgId() {
return ((bitField0_ & 0x00000002) != 0);
}
/**
* optional uint32 msgId = 2;
* @return The msgId.
*/
@java.lang.Override
public int getMsgId() {
return msgId_;
}
/**
* optional uint32 msgId = 2;
* @param value The msgId to set.
* @return This builder for chaining.
*/
public Builder setMsgId(int value) {
bitField0_ |= 0x00000002;
msgId_ = value;
onChanged();
return this;
}
/**
* optional uint32 msgId = 2;
* @return This builder for chaining.
*/
public Builder clearMsgId() {
bitField0_ = (bitField0_ & ~0x00000002);
msgId_ = 0;
onChanged();
return this;
}
private long newMsgId_ ;
/**
* optional uint64 newMsgId = 3;
* @return Whether the newMsgId field is set.
*/
@java.lang.Override
public boolean hasNewMsgId() {
return ((bitField0_ & 0x00000004) != 0);
}
/**
* optional uint64 newMsgId = 3;
* @return The newMsgId.
*/
@java.lang.Override
public long getNewMsgId() {
return newMsgId_;
}
/**
* optional uint64 newMsgId = 3;
* @param value The newMsgId to set.
* @return This builder for chaining.
*/
public Builder setNewMsgId(long value) {
bitField0_ |= 0x00000004;
newMsgId_ = value;
onChanged();
return this;
}
/**
* optional uint64 newMsgId = 3;
* @return This builder for chaining.
*/
public Builder clearNewMsgId() {
bitField0_ = (bitField0_ & ~0x00000004);
newMsgId_ = 0L;
onChanged();
return this;
}
private int chatContactNum_ ;
/**
* optional uint32 chatContactNum = 4;
* @return Whether the chatContactNum field is set.
*/
@java.lang.Override
public boolean hasChatContactNum() {
return ((bitField0_ & 0x00000008) != 0);
}
/**
* optional uint32 chatContactNum = 4;
* @return The chatContactNum.
*/
@java.lang.Override
public int getChatContactNum() {
return chatContactNum_;
}
/**
* optional uint32 chatContactNum = 4;
* @param value The chatContactNum to set.
* @return This builder for chaining.
*/
public Builder setChatContactNum(int value) {
bitField0_ |= 0x00000008;
chatContactNum_ = value;
onChanged();
return this;
}
/**
* optional uint32 chatContactNum = 4;
* @return This builder for chaining.
*/
public Builder clearChatContactNum() {
bitField0_ = (bitField0_ & ~0x00000008);
chatContactNum_ = 0;
onChanged();
return this;
}
private java.util.List chatContactList_ =
java.util.Collections.emptyList();
private void ensureChatContactListIsMutable() {
if (!((bitField0_ & 0x00000010) != 0)) {
chatContactList_ = new java.util.ArrayList(chatContactList_);
bitField0_ |= 0x00000010;
}
}
private com.google.protobuf.RepeatedFieldBuilderV3<
wechat.protobuf.ChatContact, wechat.protobuf.ChatContact.Builder, wechat.protobuf.ChatContactOrBuilder> chatContactListBuilder_;
/**
* repeated .wechat_proto.ChatContact chatContactList = 5;
*/
public java.util.List getChatContactListList() {
if (chatContactListBuilder_ == null) {
return java.util.Collections.unmodifiableList(chatContactList_);
} else {
return chatContactListBuilder_.getMessageList();
}
}
/**
* repeated .wechat_proto.ChatContact chatContactList = 5;
*/
public int getChatContactListCount() {
if (chatContactListBuilder_ == null) {
return chatContactList_.size();
} else {
return chatContactListBuilder_.getCount();
}
}
/**
* repeated .wechat_proto.ChatContact chatContactList = 5;
*/
public wechat.protobuf.ChatContact getChatContactList(int index) {
if (chatContactListBuilder_ == null) {
return chatContactList_.get(index);
} else {
return chatContactListBuilder_.getMessage(index);
}
}
/**
* repeated .wechat_proto.ChatContact chatContactList = 5;
*/
public Builder setChatContactList(
int index, wechat.protobuf.ChatContact value) {
if (chatContactListBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureChatContactListIsMutable();
chatContactList_.set(index, value);
onChanged();
} else {
chatContactListBuilder_.setMessage(index, value);
}
return this;
}
/**
* repeated .wechat_proto.ChatContact chatContactList = 5;
*/
public Builder setChatContactList(
int index, wechat.protobuf.ChatContact.Builder builderForValue) {
if (chatContactListBuilder_ == null) {
ensureChatContactListIsMutable();
chatContactList_.set(index, builderForValue.build());
onChanged();
} else {
chatContactListBuilder_.setMessage(index, builderForValue.build());
}
return this;
}
/**
* repeated .wechat_proto.ChatContact chatContactList = 5;
*/
public Builder addChatContactList(wechat.protobuf.ChatContact value) {
if (chatContactListBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureChatContactListIsMutable();
chatContactList_.add(value);
onChanged();
} else {
chatContactListBuilder_.addMessage(value);
}
return this;
}
/**
* repeated .wechat_proto.ChatContact chatContactList = 5;
*/
public Builder addChatContactList(
int index, wechat.protobuf.ChatContact value) {
if (chatContactListBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureChatContactListIsMutable();
chatContactList_.add(index, value);
onChanged();
} else {
chatContactListBuilder_.addMessage(index, value);
}
return this;
}
/**
* repeated .wechat_proto.ChatContact chatContactList = 5;
*/
public Builder addChatContactList(
wechat.protobuf.ChatContact.Builder builderForValue) {
if (chatContactListBuilder_ == null) {
ensureChatContactListIsMutable();
chatContactList_.add(builderForValue.build());
onChanged();
} else {
chatContactListBuilder_.addMessage(builderForValue.build());
}
return this;
}
/**
* repeated .wechat_proto.ChatContact chatContactList = 5;
*/
public Builder addChatContactList(
int index, wechat.protobuf.ChatContact.Builder builderForValue) {
if (chatContactListBuilder_ == null) {
ensureChatContactListIsMutable();
chatContactList_.add(index, builderForValue.build());
onChanged();
} else {
chatContactListBuilder_.addMessage(index, builderForValue.build());
}
return this;
}
/**
* repeated .wechat_proto.ChatContact chatContactList = 5;
*/
public Builder addAllChatContactList(
java.lang.Iterable extends wechat.protobuf.ChatContact> values) {
if (chatContactListBuilder_ == null) {
ensureChatContactListIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, chatContactList_);
onChanged();
} else {
chatContactListBuilder_.addAllMessages(values);
}
return this;
}
/**
* repeated .wechat_proto.ChatContact chatContactList = 5;
*/
public Builder clearChatContactList() {
if (chatContactListBuilder_ == null) {
chatContactList_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000010);
onChanged();
} else {
chatContactListBuilder_.clear();
}
return this;
}
/**
* repeated .wechat_proto.ChatContact chatContactList = 5;
*/
public Builder removeChatContactList(int index) {
if (chatContactListBuilder_ == null) {
ensureChatContactListIsMutable();
chatContactList_.remove(index);
onChanged();
} else {
chatContactListBuilder_.remove(index);
}
return this;
}
/**
* repeated .wechat_proto.ChatContact chatContactList = 5;
*/
public wechat.protobuf.ChatContact.Builder getChatContactListBuilder(
int index) {
return getChatContactListFieldBuilder().getBuilder(index);
}
/**
* repeated .wechat_proto.ChatContact chatContactList = 5;
*/
public wechat.protobuf.ChatContactOrBuilder getChatContactListOrBuilder(
int index) {
if (chatContactListBuilder_ == null) {
return chatContactList_.get(index); } else {
return chatContactListBuilder_.getMessageOrBuilder(index);
}
}
/**
* repeated .wechat_proto.ChatContact chatContactList = 5;
*/
public java.util.List extends wechat.protobuf.ChatContactOrBuilder>
getChatContactListOrBuilderList() {
if (chatContactListBuilder_ != null) {
return chatContactListBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(chatContactList_);
}
}
/**
* repeated .wechat_proto.ChatContact chatContactList = 5;
*/
public wechat.protobuf.ChatContact.Builder addChatContactListBuilder() {
return getChatContactListFieldBuilder().addBuilder(
wechat.protobuf.ChatContact.getDefaultInstance());
}
/**
* repeated .wechat_proto.ChatContact chatContactList = 5;
*/
public wechat.protobuf.ChatContact.Builder addChatContactListBuilder(
int index) {
return getChatContactListFieldBuilder().addBuilder(
index, wechat.protobuf.ChatContact.getDefaultInstance());
}
/**
* repeated .wechat_proto.ChatContact chatContactList = 5;
*/
public java.util.List
getChatContactListBuilderList() {
return getChatContactListFieldBuilder().getBuilderList();
}
private com.google.protobuf.RepeatedFieldBuilderV3<
wechat.protobuf.ChatContact, wechat.protobuf.ChatContact.Builder, wechat.protobuf.ChatContactOrBuilder>
getChatContactListFieldBuilder() {
if (chatContactListBuilder_ == null) {
chatContactListBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
wechat.protobuf.ChatContact, wechat.protobuf.ChatContact.Builder, wechat.protobuf.ChatContactOrBuilder>(
chatContactList_,
((bitField0_ & 0x00000010) != 0),
getParentForChildren(),
isClean());
chatContactList_ = null;
}
return chatContactListBuilder_;
}
@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.StatusNotifyResponse)
}
// @@protoc_insertion_point(class_scope:wechat_proto.StatusNotifyResponse)
private static final wechat.protobuf.StatusNotifyResponse DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new wechat.protobuf.StatusNotifyResponse();
}
public static wechat.protobuf.StatusNotifyResponse getDefaultInstance() {
return DEFAULT_INSTANCE;
}
@java.lang.Deprecated public static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public StatusNotifyResponse parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new StatusNotifyResponse(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.StatusNotifyResponse getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy