
wechat.protobuf.OpenIMChatRoomData Maven / Gradle / Ivy
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: wechat.proto
package wechat.protobuf;
/**
* Protobuf type {@code wechat_proto.OpenIMChatRoomData}
*/
public final class OpenIMChatRoomData extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:wechat_proto.OpenIMChatRoomData)
OpenIMChatRoomDataOrBuilder {
private static final long serialVersionUID = 0L;
// Use OpenIMChatRoomData.newBuilder() to construct.
private OpenIMChatRoomData(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private OpenIMChatRoomData() {
owner_ = "";
bigHeadimg_ = "";
smallHeadimg_ = "";
topic_ = "";
topicPyinit_ = "";
topicQuanpin_ = "";
announcement_ = "";
announcementEditor_ = "";
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new OpenIMChatRoomData();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private OpenIMChatRoomData(
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: {
com.google.protobuf.ByteString bs = input.readBytes();
bitField0_ |= 0x00000001;
owner_ = bs;
break;
}
case 18: {
com.google.protobuf.ByteString bs = input.readBytes();
bitField0_ |= 0x00000002;
bigHeadimg_ = bs;
break;
}
case 26: {
com.google.protobuf.ByteString bs = input.readBytes();
bitField0_ |= 0x00000004;
smallHeadimg_ = bs;
break;
}
case 32: {
bitField0_ |= 0x00000008;
imgFlag_ = input.readUInt32();
break;
}
case 42: {
com.google.protobuf.ByteString bs = input.readBytes();
bitField0_ |= 0x00000010;
topic_ = bs;
break;
}
case 50: {
com.google.protobuf.ByteString bs = input.readBytes();
bitField0_ |= 0x00000020;
topicPyinit_ = bs;
break;
}
case 58: {
com.google.protobuf.ByteString bs = input.readBytes();
bitField0_ |= 0x00000040;
topicQuanpin_ = bs;
break;
}
case 66: {
com.google.protobuf.ByteString bs = input.readBytes();
bitField0_ |= 0x00000080;
announcement_ = bs;
break;
}
case 74: {
com.google.protobuf.ByteString bs = input.readBytes();
bitField0_ |= 0x00000100;
announcementEditor_ = bs;
break;
}
case 80: {
bitField0_ |= 0x00000200;
announcementPublishTime_ = input.readUInt32();
break;
}
case 88: {
bitField0_ |= 0x00000400;
chatRoomMaxCount_ = input.readUInt32();
break;
}
case 96: {
bitField0_ |= 0x00000800;
extFlag_ = input.readUInt32();
break;
}
default: {
if (!parseUnknownField(
input, unknownFields, extensionRegistry, tag)) {
done = true;
}
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e).setUnfinishedMessage(this);
} finally {
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return wechat.protobuf.Wechat.internal_static_wechat_proto_OpenIMChatRoomData_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return wechat.protobuf.Wechat.internal_static_wechat_proto_OpenIMChatRoomData_fieldAccessorTable
.ensureFieldAccessorsInitialized(
wechat.protobuf.OpenIMChatRoomData.class, wechat.protobuf.OpenIMChatRoomData.Builder.class);
}
private int bitField0_;
public static final int OWNER_FIELD_NUMBER = 1;
private volatile java.lang.Object owner_;
/**
* optional string owner = 1;
* @return Whether the owner field is set.
*/
@java.lang.Override
public boolean hasOwner() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
* optional string owner = 1;
* @return The owner.
*/
@java.lang.Override
public java.lang.String getOwner() {
java.lang.Object ref = owner_;
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()) {
owner_ = s;
}
return s;
}
}
/**
* optional string owner = 1;
* @return The bytes for owner.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getOwnerBytes() {
java.lang.Object ref = owner_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
owner_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int BIG_HEADIMG_FIELD_NUMBER = 2;
private volatile java.lang.Object bigHeadimg_;
/**
* optional string big_headimg = 2;
* @return Whether the bigHeadimg field is set.
*/
@java.lang.Override
public boolean hasBigHeadimg() {
return ((bitField0_ & 0x00000002) != 0);
}
/**
* optional string big_headimg = 2;
* @return The bigHeadimg.
*/
@java.lang.Override
public java.lang.String getBigHeadimg() {
java.lang.Object ref = bigHeadimg_;
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()) {
bigHeadimg_ = s;
}
return s;
}
}
/**
* optional string big_headimg = 2;
* @return The bytes for bigHeadimg.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getBigHeadimgBytes() {
java.lang.Object ref = bigHeadimg_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
bigHeadimg_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int SMALL_HEADIMG_FIELD_NUMBER = 3;
private volatile java.lang.Object smallHeadimg_;
/**
* optional string small_headimg = 3;
* @return Whether the smallHeadimg field is set.
*/
@java.lang.Override
public boolean hasSmallHeadimg() {
return ((bitField0_ & 0x00000004) != 0);
}
/**
* optional string small_headimg = 3;
* @return The smallHeadimg.
*/
@java.lang.Override
public java.lang.String getSmallHeadimg() {
java.lang.Object ref = smallHeadimg_;
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()) {
smallHeadimg_ = s;
}
return s;
}
}
/**
* optional string small_headimg = 3;
* @return The bytes for smallHeadimg.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getSmallHeadimgBytes() {
java.lang.Object ref = smallHeadimg_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
smallHeadimg_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int IMG_FLAG_FIELD_NUMBER = 4;
private int imgFlag_;
/**
* optional uint32 img_flag = 4;
* @return Whether the imgFlag field is set.
*/
@java.lang.Override
public boolean hasImgFlag() {
return ((bitField0_ & 0x00000008) != 0);
}
/**
* optional uint32 img_flag = 4;
* @return The imgFlag.
*/
@java.lang.Override
public int getImgFlag() {
return imgFlag_;
}
public static final int TOPIC_FIELD_NUMBER = 5;
private volatile java.lang.Object topic_;
/**
* optional string topic = 5;
* @return Whether the topic field is set.
*/
@java.lang.Override
public boolean hasTopic() {
return ((bitField0_ & 0x00000010) != 0);
}
/**
* optional string topic = 5;
* @return The topic.
*/
@java.lang.Override
public java.lang.String getTopic() {
java.lang.Object ref = topic_;
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()) {
topic_ = s;
}
return s;
}
}
/**
* optional string topic = 5;
* @return The bytes for topic.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getTopicBytes() {
java.lang.Object ref = topic_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
topic_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int TOPIC_PYINIT_FIELD_NUMBER = 6;
private volatile java.lang.Object topicPyinit_;
/**
* optional string topic_pyinit = 6;
* @return Whether the topicPyinit field is set.
*/
@java.lang.Override
public boolean hasTopicPyinit() {
return ((bitField0_ & 0x00000020) != 0);
}
/**
* optional string topic_pyinit = 6;
* @return The topicPyinit.
*/
@java.lang.Override
public java.lang.String getTopicPyinit() {
java.lang.Object ref = topicPyinit_;
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()) {
topicPyinit_ = s;
}
return s;
}
}
/**
* optional string topic_pyinit = 6;
* @return The bytes for topicPyinit.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getTopicPyinitBytes() {
java.lang.Object ref = topicPyinit_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
topicPyinit_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int TOPIC_QUANPIN_FIELD_NUMBER = 7;
private volatile java.lang.Object topicQuanpin_;
/**
* optional string topic_quanpin = 7;
* @return Whether the topicQuanpin field is set.
*/
@java.lang.Override
public boolean hasTopicQuanpin() {
return ((bitField0_ & 0x00000040) != 0);
}
/**
* optional string topic_quanpin = 7;
* @return The topicQuanpin.
*/
@java.lang.Override
public java.lang.String getTopicQuanpin() {
java.lang.Object ref = topicQuanpin_;
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()) {
topicQuanpin_ = s;
}
return s;
}
}
/**
* optional string topic_quanpin = 7;
* @return The bytes for topicQuanpin.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getTopicQuanpinBytes() {
java.lang.Object ref = topicQuanpin_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
topicQuanpin_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int ANNOUNCEMENT_FIELD_NUMBER = 8;
private volatile java.lang.Object announcement_;
/**
* optional string announcement = 8;
* @return Whether the announcement field is set.
*/
@java.lang.Override
public boolean hasAnnouncement() {
return ((bitField0_ & 0x00000080) != 0);
}
/**
* optional string announcement = 8;
* @return The announcement.
*/
@java.lang.Override
public java.lang.String getAnnouncement() {
java.lang.Object ref = announcement_;
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()) {
announcement_ = s;
}
return s;
}
}
/**
* optional string announcement = 8;
* @return The bytes for announcement.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getAnnouncementBytes() {
java.lang.Object ref = announcement_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
announcement_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int ANNOUNCEMENT_EDITOR_FIELD_NUMBER = 9;
private volatile java.lang.Object announcementEditor_;
/**
* optional string announcement_editor = 9;
* @return Whether the announcementEditor field is set.
*/
@java.lang.Override
public boolean hasAnnouncementEditor() {
return ((bitField0_ & 0x00000100) != 0);
}
/**
* optional string announcement_editor = 9;
* @return The announcementEditor.
*/
@java.lang.Override
public java.lang.String getAnnouncementEditor() {
java.lang.Object ref = announcementEditor_;
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()) {
announcementEditor_ = s;
}
return s;
}
}
/**
* optional string announcement_editor = 9;
* @return The bytes for announcementEditor.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getAnnouncementEditorBytes() {
java.lang.Object ref = announcementEditor_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
announcementEditor_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int ANNOUNCEMENT_PUBLISH_TIME_FIELD_NUMBER = 10;
private int announcementPublishTime_;
/**
* optional uint32 announcement_publish_time = 10;
* @return Whether the announcementPublishTime field is set.
*/
@java.lang.Override
public boolean hasAnnouncementPublishTime() {
return ((bitField0_ & 0x00000200) != 0);
}
/**
* optional uint32 announcement_publish_time = 10;
* @return The announcementPublishTime.
*/
@java.lang.Override
public int getAnnouncementPublishTime() {
return announcementPublishTime_;
}
public static final int CHATROOM_MAX_COUNT_FIELD_NUMBER = 11;
private int chatRoomMaxCount_;
/**
* optional uint32 chatRoom_max_count = 11;
* @return Whether the chatRoomMaxCount field is set.
*/
@java.lang.Override
public boolean hasChatRoomMaxCount() {
return ((bitField0_ & 0x00000400) != 0);
}
/**
* optional uint32 chatRoom_max_count = 11;
* @return The chatRoomMaxCount.
*/
@java.lang.Override
public int getChatRoomMaxCount() {
return chatRoomMaxCount_;
}
public static final int EXT_FLAG_FIELD_NUMBER = 12;
private int extFlag_;
/**
* optional uint32 ext_flag = 12;
* @return Whether the extFlag field is set.
*/
@java.lang.Override
public boolean hasExtFlag() {
return ((bitField0_ & 0x00000800) != 0);
}
/**
* optional uint32 ext_flag = 12;
* @return The extFlag.
*/
@java.lang.Override
public int getExtFlag() {
return extFlag_;
}
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)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, owner_);
}
if (((bitField0_ & 0x00000002) != 0)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 2, bigHeadimg_);
}
if (((bitField0_ & 0x00000004) != 0)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 3, smallHeadimg_);
}
if (((bitField0_ & 0x00000008) != 0)) {
output.writeUInt32(4, imgFlag_);
}
if (((bitField0_ & 0x00000010) != 0)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 5, topic_);
}
if (((bitField0_ & 0x00000020) != 0)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 6, topicPyinit_);
}
if (((bitField0_ & 0x00000040) != 0)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 7, topicQuanpin_);
}
if (((bitField0_ & 0x00000080) != 0)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 8, announcement_);
}
if (((bitField0_ & 0x00000100) != 0)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 9, announcementEditor_);
}
if (((bitField0_ & 0x00000200) != 0)) {
output.writeUInt32(10, announcementPublishTime_);
}
if (((bitField0_ & 0x00000400) != 0)) {
output.writeUInt32(11, chatRoomMaxCount_);
}
if (((bitField0_ & 0x00000800) != 0)) {
output.writeUInt32(12, extFlag_);
}
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.GeneratedMessageV3.computeStringSize(1, owner_);
}
if (((bitField0_ & 0x00000002) != 0)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, bigHeadimg_);
}
if (((bitField0_ & 0x00000004) != 0)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, smallHeadimg_);
}
if (((bitField0_ & 0x00000008) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeUInt32Size(4, imgFlag_);
}
if (((bitField0_ & 0x00000010) != 0)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, topic_);
}
if (((bitField0_ & 0x00000020) != 0)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, topicPyinit_);
}
if (((bitField0_ & 0x00000040) != 0)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(7, topicQuanpin_);
}
if (((bitField0_ & 0x00000080) != 0)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(8, announcement_);
}
if (((bitField0_ & 0x00000100) != 0)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(9, announcementEditor_);
}
if (((bitField0_ & 0x00000200) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeUInt32Size(10, announcementPublishTime_);
}
if (((bitField0_ & 0x00000400) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeUInt32Size(11, chatRoomMaxCount_);
}
if (((bitField0_ & 0x00000800) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeUInt32Size(12, extFlag_);
}
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.OpenIMChatRoomData)) {
return super.equals(obj);
}
wechat.protobuf.OpenIMChatRoomData other = (wechat.protobuf.OpenIMChatRoomData) obj;
if (hasOwner() != other.hasOwner()) return false;
if (hasOwner()) {
if (!getOwner()
.equals(other.getOwner())) return false;
}
if (hasBigHeadimg() != other.hasBigHeadimg()) return false;
if (hasBigHeadimg()) {
if (!getBigHeadimg()
.equals(other.getBigHeadimg())) return false;
}
if (hasSmallHeadimg() != other.hasSmallHeadimg()) return false;
if (hasSmallHeadimg()) {
if (!getSmallHeadimg()
.equals(other.getSmallHeadimg())) return false;
}
if (hasImgFlag() != other.hasImgFlag()) return false;
if (hasImgFlag()) {
if (getImgFlag()
!= other.getImgFlag()) return false;
}
if (hasTopic() != other.hasTopic()) return false;
if (hasTopic()) {
if (!getTopic()
.equals(other.getTopic())) return false;
}
if (hasTopicPyinit() != other.hasTopicPyinit()) return false;
if (hasTopicPyinit()) {
if (!getTopicPyinit()
.equals(other.getTopicPyinit())) return false;
}
if (hasTopicQuanpin() != other.hasTopicQuanpin()) return false;
if (hasTopicQuanpin()) {
if (!getTopicQuanpin()
.equals(other.getTopicQuanpin())) return false;
}
if (hasAnnouncement() != other.hasAnnouncement()) return false;
if (hasAnnouncement()) {
if (!getAnnouncement()
.equals(other.getAnnouncement())) return false;
}
if (hasAnnouncementEditor() != other.hasAnnouncementEditor()) return false;
if (hasAnnouncementEditor()) {
if (!getAnnouncementEditor()
.equals(other.getAnnouncementEditor())) return false;
}
if (hasAnnouncementPublishTime() != other.hasAnnouncementPublishTime()) return false;
if (hasAnnouncementPublishTime()) {
if (getAnnouncementPublishTime()
!= other.getAnnouncementPublishTime()) return false;
}
if (hasChatRoomMaxCount() != other.hasChatRoomMaxCount()) return false;
if (hasChatRoomMaxCount()) {
if (getChatRoomMaxCount()
!= other.getChatRoomMaxCount()) return false;
}
if (hasExtFlag() != other.hasExtFlag()) return false;
if (hasExtFlag()) {
if (getExtFlag()
!= other.getExtFlag()) 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 (hasOwner()) {
hash = (37 * hash) + OWNER_FIELD_NUMBER;
hash = (53 * hash) + getOwner().hashCode();
}
if (hasBigHeadimg()) {
hash = (37 * hash) + BIG_HEADIMG_FIELD_NUMBER;
hash = (53 * hash) + getBigHeadimg().hashCode();
}
if (hasSmallHeadimg()) {
hash = (37 * hash) + SMALL_HEADIMG_FIELD_NUMBER;
hash = (53 * hash) + getSmallHeadimg().hashCode();
}
if (hasImgFlag()) {
hash = (37 * hash) + IMG_FLAG_FIELD_NUMBER;
hash = (53 * hash) + getImgFlag();
}
if (hasTopic()) {
hash = (37 * hash) + TOPIC_FIELD_NUMBER;
hash = (53 * hash) + getTopic().hashCode();
}
if (hasTopicPyinit()) {
hash = (37 * hash) + TOPIC_PYINIT_FIELD_NUMBER;
hash = (53 * hash) + getTopicPyinit().hashCode();
}
if (hasTopicQuanpin()) {
hash = (37 * hash) + TOPIC_QUANPIN_FIELD_NUMBER;
hash = (53 * hash) + getTopicQuanpin().hashCode();
}
if (hasAnnouncement()) {
hash = (37 * hash) + ANNOUNCEMENT_FIELD_NUMBER;
hash = (53 * hash) + getAnnouncement().hashCode();
}
if (hasAnnouncementEditor()) {
hash = (37 * hash) + ANNOUNCEMENT_EDITOR_FIELD_NUMBER;
hash = (53 * hash) + getAnnouncementEditor().hashCode();
}
if (hasAnnouncementPublishTime()) {
hash = (37 * hash) + ANNOUNCEMENT_PUBLISH_TIME_FIELD_NUMBER;
hash = (53 * hash) + getAnnouncementPublishTime();
}
if (hasChatRoomMaxCount()) {
hash = (37 * hash) + CHATROOM_MAX_COUNT_FIELD_NUMBER;
hash = (53 * hash) + getChatRoomMaxCount();
}
if (hasExtFlag()) {
hash = (37 * hash) + EXT_FLAG_FIELD_NUMBER;
hash = (53 * hash) + getExtFlag();
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static wechat.protobuf.OpenIMChatRoomData parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static wechat.protobuf.OpenIMChatRoomData parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static wechat.protobuf.OpenIMChatRoomData parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static wechat.protobuf.OpenIMChatRoomData 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.OpenIMChatRoomData parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static wechat.protobuf.OpenIMChatRoomData parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static wechat.protobuf.OpenIMChatRoomData parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static wechat.protobuf.OpenIMChatRoomData 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.OpenIMChatRoomData parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static wechat.protobuf.OpenIMChatRoomData 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.OpenIMChatRoomData parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static wechat.protobuf.OpenIMChatRoomData 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.OpenIMChatRoomData 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.OpenIMChatRoomData}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:wechat_proto.OpenIMChatRoomData)
wechat.protobuf.OpenIMChatRoomDataOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return wechat.protobuf.Wechat.internal_static_wechat_proto_OpenIMChatRoomData_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return wechat.protobuf.Wechat.internal_static_wechat_proto_OpenIMChatRoomData_fieldAccessorTable
.ensureFieldAccessorsInitialized(
wechat.protobuf.OpenIMChatRoomData.class, wechat.protobuf.OpenIMChatRoomData.Builder.class);
}
// Construct using wechat.protobuf.OpenIMChatRoomData.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
}
}
@java.lang.Override
public Builder clear() {
super.clear();
owner_ = "";
bitField0_ = (bitField0_ & ~0x00000001);
bigHeadimg_ = "";
bitField0_ = (bitField0_ & ~0x00000002);
smallHeadimg_ = "";
bitField0_ = (bitField0_ & ~0x00000004);
imgFlag_ = 0;
bitField0_ = (bitField0_ & ~0x00000008);
topic_ = "";
bitField0_ = (bitField0_ & ~0x00000010);
topicPyinit_ = "";
bitField0_ = (bitField0_ & ~0x00000020);
topicQuanpin_ = "";
bitField0_ = (bitField0_ & ~0x00000040);
announcement_ = "";
bitField0_ = (bitField0_ & ~0x00000080);
announcementEditor_ = "";
bitField0_ = (bitField0_ & ~0x00000100);
announcementPublishTime_ = 0;
bitField0_ = (bitField0_ & ~0x00000200);
chatRoomMaxCount_ = 0;
bitField0_ = (bitField0_ & ~0x00000400);
extFlag_ = 0;
bitField0_ = (bitField0_ & ~0x00000800);
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return wechat.protobuf.Wechat.internal_static_wechat_proto_OpenIMChatRoomData_descriptor;
}
@java.lang.Override
public wechat.protobuf.OpenIMChatRoomData getDefaultInstanceForType() {
return wechat.protobuf.OpenIMChatRoomData.getDefaultInstance();
}
@java.lang.Override
public wechat.protobuf.OpenIMChatRoomData build() {
wechat.protobuf.OpenIMChatRoomData result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public wechat.protobuf.OpenIMChatRoomData buildPartial() {
wechat.protobuf.OpenIMChatRoomData result = new wechat.protobuf.OpenIMChatRoomData(this);
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
if (((from_bitField0_ & 0x00000001) != 0)) {
to_bitField0_ |= 0x00000001;
}
result.owner_ = owner_;
if (((from_bitField0_ & 0x00000002) != 0)) {
to_bitField0_ |= 0x00000002;
}
result.bigHeadimg_ = bigHeadimg_;
if (((from_bitField0_ & 0x00000004) != 0)) {
to_bitField0_ |= 0x00000004;
}
result.smallHeadimg_ = smallHeadimg_;
if (((from_bitField0_ & 0x00000008) != 0)) {
result.imgFlag_ = imgFlag_;
to_bitField0_ |= 0x00000008;
}
if (((from_bitField0_ & 0x00000010) != 0)) {
to_bitField0_ |= 0x00000010;
}
result.topic_ = topic_;
if (((from_bitField0_ & 0x00000020) != 0)) {
to_bitField0_ |= 0x00000020;
}
result.topicPyinit_ = topicPyinit_;
if (((from_bitField0_ & 0x00000040) != 0)) {
to_bitField0_ |= 0x00000040;
}
result.topicQuanpin_ = topicQuanpin_;
if (((from_bitField0_ & 0x00000080) != 0)) {
to_bitField0_ |= 0x00000080;
}
result.announcement_ = announcement_;
if (((from_bitField0_ & 0x00000100) != 0)) {
to_bitField0_ |= 0x00000100;
}
result.announcementEditor_ = announcementEditor_;
if (((from_bitField0_ & 0x00000200) != 0)) {
result.announcementPublishTime_ = announcementPublishTime_;
to_bitField0_ |= 0x00000200;
}
if (((from_bitField0_ & 0x00000400) != 0)) {
result.chatRoomMaxCount_ = chatRoomMaxCount_;
to_bitField0_ |= 0x00000400;
}
if (((from_bitField0_ & 0x00000800) != 0)) {
result.extFlag_ = extFlag_;
to_bitField0_ |= 0x00000800;
}
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.OpenIMChatRoomData) {
return mergeFrom((wechat.protobuf.OpenIMChatRoomData)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(wechat.protobuf.OpenIMChatRoomData other) {
if (other == wechat.protobuf.OpenIMChatRoomData.getDefaultInstance()) return this;
if (other.hasOwner()) {
bitField0_ |= 0x00000001;
owner_ = other.owner_;
onChanged();
}
if (other.hasBigHeadimg()) {
bitField0_ |= 0x00000002;
bigHeadimg_ = other.bigHeadimg_;
onChanged();
}
if (other.hasSmallHeadimg()) {
bitField0_ |= 0x00000004;
smallHeadimg_ = other.smallHeadimg_;
onChanged();
}
if (other.hasImgFlag()) {
setImgFlag(other.getImgFlag());
}
if (other.hasTopic()) {
bitField0_ |= 0x00000010;
topic_ = other.topic_;
onChanged();
}
if (other.hasTopicPyinit()) {
bitField0_ |= 0x00000020;
topicPyinit_ = other.topicPyinit_;
onChanged();
}
if (other.hasTopicQuanpin()) {
bitField0_ |= 0x00000040;
topicQuanpin_ = other.topicQuanpin_;
onChanged();
}
if (other.hasAnnouncement()) {
bitField0_ |= 0x00000080;
announcement_ = other.announcement_;
onChanged();
}
if (other.hasAnnouncementEditor()) {
bitField0_ |= 0x00000100;
announcementEditor_ = other.announcementEditor_;
onChanged();
}
if (other.hasAnnouncementPublishTime()) {
setAnnouncementPublishTime(other.getAnnouncementPublishTime());
}
if (other.hasChatRoomMaxCount()) {
setChatRoomMaxCount(other.getChatRoomMaxCount());
}
if (other.hasExtFlag()) {
setExtFlag(other.getExtFlag());
}
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.OpenIMChatRoomData parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (wechat.protobuf.OpenIMChatRoomData) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
private java.lang.Object owner_ = "";
/**
* optional string owner = 1;
* @return Whether the owner field is set.
*/
public boolean hasOwner() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
* optional string owner = 1;
* @return The owner.
*/
public java.lang.String getOwner() {
java.lang.Object ref = owner_;
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()) {
owner_ = s;
}
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* optional string owner = 1;
* @return The bytes for owner.
*/
public com.google.protobuf.ByteString
getOwnerBytes() {
java.lang.Object ref = owner_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
owner_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* optional string owner = 1;
* @param value The owner to set.
* @return This builder for chaining.
*/
public Builder setOwner(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000001;
owner_ = value;
onChanged();
return this;
}
/**
* optional string owner = 1;
* @return This builder for chaining.
*/
public Builder clearOwner() {
bitField0_ = (bitField0_ & ~0x00000001);
owner_ = getDefaultInstance().getOwner();
onChanged();
return this;
}
/**
* optional string owner = 1;
* @param value The bytes for owner to set.
* @return This builder for chaining.
*/
public Builder setOwnerBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000001;
owner_ = value;
onChanged();
return this;
}
private java.lang.Object bigHeadimg_ = "";
/**
* optional string big_headimg = 2;
* @return Whether the bigHeadimg field is set.
*/
public boolean hasBigHeadimg() {
return ((bitField0_ & 0x00000002) != 0);
}
/**
* optional string big_headimg = 2;
* @return The bigHeadimg.
*/
public java.lang.String getBigHeadimg() {
java.lang.Object ref = bigHeadimg_;
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()) {
bigHeadimg_ = s;
}
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* optional string big_headimg = 2;
* @return The bytes for bigHeadimg.
*/
public com.google.protobuf.ByteString
getBigHeadimgBytes() {
java.lang.Object ref = bigHeadimg_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
bigHeadimg_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* optional string big_headimg = 2;
* @param value The bigHeadimg to set.
* @return This builder for chaining.
*/
public Builder setBigHeadimg(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000002;
bigHeadimg_ = value;
onChanged();
return this;
}
/**
* optional string big_headimg = 2;
* @return This builder for chaining.
*/
public Builder clearBigHeadimg() {
bitField0_ = (bitField0_ & ~0x00000002);
bigHeadimg_ = getDefaultInstance().getBigHeadimg();
onChanged();
return this;
}
/**
* optional string big_headimg = 2;
* @param value The bytes for bigHeadimg to set.
* @return This builder for chaining.
*/
public Builder setBigHeadimgBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000002;
bigHeadimg_ = value;
onChanged();
return this;
}
private java.lang.Object smallHeadimg_ = "";
/**
* optional string small_headimg = 3;
* @return Whether the smallHeadimg field is set.
*/
public boolean hasSmallHeadimg() {
return ((bitField0_ & 0x00000004) != 0);
}
/**
* optional string small_headimg = 3;
* @return The smallHeadimg.
*/
public java.lang.String getSmallHeadimg() {
java.lang.Object ref = smallHeadimg_;
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()) {
smallHeadimg_ = s;
}
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* optional string small_headimg = 3;
* @return The bytes for smallHeadimg.
*/
public com.google.protobuf.ByteString
getSmallHeadimgBytes() {
java.lang.Object ref = smallHeadimg_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
smallHeadimg_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* optional string small_headimg = 3;
* @param value The smallHeadimg to set.
* @return This builder for chaining.
*/
public Builder setSmallHeadimg(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000004;
smallHeadimg_ = value;
onChanged();
return this;
}
/**
* optional string small_headimg = 3;
* @return This builder for chaining.
*/
public Builder clearSmallHeadimg() {
bitField0_ = (bitField0_ & ~0x00000004);
smallHeadimg_ = getDefaultInstance().getSmallHeadimg();
onChanged();
return this;
}
/**
* optional string small_headimg = 3;
* @param value The bytes for smallHeadimg to set.
* @return This builder for chaining.
*/
public Builder setSmallHeadimgBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000004;
smallHeadimg_ = value;
onChanged();
return this;
}
private int imgFlag_ ;
/**
* optional uint32 img_flag = 4;
* @return Whether the imgFlag field is set.
*/
@java.lang.Override
public boolean hasImgFlag() {
return ((bitField0_ & 0x00000008) != 0);
}
/**
* optional uint32 img_flag = 4;
* @return The imgFlag.
*/
@java.lang.Override
public int getImgFlag() {
return imgFlag_;
}
/**
* optional uint32 img_flag = 4;
* @param value The imgFlag to set.
* @return This builder for chaining.
*/
public Builder setImgFlag(int value) {
bitField0_ |= 0x00000008;
imgFlag_ = value;
onChanged();
return this;
}
/**
* optional uint32 img_flag = 4;
* @return This builder for chaining.
*/
public Builder clearImgFlag() {
bitField0_ = (bitField0_ & ~0x00000008);
imgFlag_ = 0;
onChanged();
return this;
}
private java.lang.Object topic_ = "";
/**
* optional string topic = 5;
* @return Whether the topic field is set.
*/
public boolean hasTopic() {
return ((bitField0_ & 0x00000010) != 0);
}
/**
* optional string topic = 5;
* @return The topic.
*/
public java.lang.String getTopic() {
java.lang.Object ref = topic_;
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()) {
topic_ = s;
}
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* optional string topic = 5;
* @return The bytes for topic.
*/
public com.google.protobuf.ByteString
getTopicBytes() {
java.lang.Object ref = topic_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
topic_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* optional string topic = 5;
* @param value The topic to set.
* @return This builder for chaining.
*/
public Builder setTopic(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000010;
topic_ = value;
onChanged();
return this;
}
/**
* optional string topic = 5;
* @return This builder for chaining.
*/
public Builder clearTopic() {
bitField0_ = (bitField0_ & ~0x00000010);
topic_ = getDefaultInstance().getTopic();
onChanged();
return this;
}
/**
* optional string topic = 5;
* @param value The bytes for topic to set.
* @return This builder for chaining.
*/
public Builder setTopicBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000010;
topic_ = value;
onChanged();
return this;
}
private java.lang.Object topicPyinit_ = "";
/**
* optional string topic_pyinit = 6;
* @return Whether the topicPyinit field is set.
*/
public boolean hasTopicPyinit() {
return ((bitField0_ & 0x00000020) != 0);
}
/**
* optional string topic_pyinit = 6;
* @return The topicPyinit.
*/
public java.lang.String getTopicPyinit() {
java.lang.Object ref = topicPyinit_;
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()) {
topicPyinit_ = s;
}
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* optional string topic_pyinit = 6;
* @return The bytes for topicPyinit.
*/
public com.google.protobuf.ByteString
getTopicPyinitBytes() {
java.lang.Object ref = topicPyinit_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
topicPyinit_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* optional string topic_pyinit = 6;
* @param value The topicPyinit to set.
* @return This builder for chaining.
*/
public Builder setTopicPyinit(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000020;
topicPyinit_ = value;
onChanged();
return this;
}
/**
* optional string topic_pyinit = 6;
* @return This builder for chaining.
*/
public Builder clearTopicPyinit() {
bitField0_ = (bitField0_ & ~0x00000020);
topicPyinit_ = getDefaultInstance().getTopicPyinit();
onChanged();
return this;
}
/**
* optional string topic_pyinit = 6;
* @param value The bytes for topicPyinit to set.
* @return This builder for chaining.
*/
public Builder setTopicPyinitBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000020;
topicPyinit_ = value;
onChanged();
return this;
}
private java.lang.Object topicQuanpin_ = "";
/**
* optional string topic_quanpin = 7;
* @return Whether the topicQuanpin field is set.
*/
public boolean hasTopicQuanpin() {
return ((bitField0_ & 0x00000040) != 0);
}
/**
* optional string topic_quanpin = 7;
* @return The topicQuanpin.
*/
public java.lang.String getTopicQuanpin() {
java.lang.Object ref = topicQuanpin_;
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()) {
topicQuanpin_ = s;
}
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* optional string topic_quanpin = 7;
* @return The bytes for topicQuanpin.
*/
public com.google.protobuf.ByteString
getTopicQuanpinBytes() {
java.lang.Object ref = topicQuanpin_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
topicQuanpin_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* optional string topic_quanpin = 7;
* @param value The topicQuanpin to set.
* @return This builder for chaining.
*/
public Builder setTopicQuanpin(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000040;
topicQuanpin_ = value;
onChanged();
return this;
}
/**
* optional string topic_quanpin = 7;
* @return This builder for chaining.
*/
public Builder clearTopicQuanpin() {
bitField0_ = (bitField0_ & ~0x00000040);
topicQuanpin_ = getDefaultInstance().getTopicQuanpin();
onChanged();
return this;
}
/**
* optional string topic_quanpin = 7;
* @param value The bytes for topicQuanpin to set.
* @return This builder for chaining.
*/
public Builder setTopicQuanpinBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000040;
topicQuanpin_ = value;
onChanged();
return this;
}
private java.lang.Object announcement_ = "";
/**
* optional string announcement = 8;
* @return Whether the announcement field is set.
*/
public boolean hasAnnouncement() {
return ((bitField0_ & 0x00000080) != 0);
}
/**
* optional string announcement = 8;
* @return The announcement.
*/
public java.lang.String getAnnouncement() {
java.lang.Object ref = announcement_;
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()) {
announcement_ = s;
}
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* optional string announcement = 8;
* @return The bytes for announcement.
*/
public com.google.protobuf.ByteString
getAnnouncementBytes() {
java.lang.Object ref = announcement_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
announcement_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* optional string announcement = 8;
* @param value The announcement to set.
* @return This builder for chaining.
*/
public Builder setAnnouncement(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000080;
announcement_ = value;
onChanged();
return this;
}
/**
* optional string announcement = 8;
* @return This builder for chaining.
*/
public Builder clearAnnouncement() {
bitField0_ = (bitField0_ & ~0x00000080);
announcement_ = getDefaultInstance().getAnnouncement();
onChanged();
return this;
}
/**
* optional string announcement = 8;
* @param value The bytes for announcement to set.
* @return This builder for chaining.
*/
public Builder setAnnouncementBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000080;
announcement_ = value;
onChanged();
return this;
}
private java.lang.Object announcementEditor_ = "";
/**
* optional string announcement_editor = 9;
* @return Whether the announcementEditor field is set.
*/
public boolean hasAnnouncementEditor() {
return ((bitField0_ & 0x00000100) != 0);
}
/**
* optional string announcement_editor = 9;
* @return The announcementEditor.
*/
public java.lang.String getAnnouncementEditor() {
java.lang.Object ref = announcementEditor_;
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()) {
announcementEditor_ = s;
}
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* optional string announcement_editor = 9;
* @return The bytes for announcementEditor.
*/
public com.google.protobuf.ByteString
getAnnouncementEditorBytes() {
java.lang.Object ref = announcementEditor_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
announcementEditor_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* optional string announcement_editor = 9;
* @param value The announcementEditor to set.
* @return This builder for chaining.
*/
public Builder setAnnouncementEditor(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000100;
announcementEditor_ = value;
onChanged();
return this;
}
/**
* optional string announcement_editor = 9;
* @return This builder for chaining.
*/
public Builder clearAnnouncementEditor() {
bitField0_ = (bitField0_ & ~0x00000100);
announcementEditor_ = getDefaultInstance().getAnnouncementEditor();
onChanged();
return this;
}
/**
* optional string announcement_editor = 9;
* @param value The bytes for announcementEditor to set.
* @return This builder for chaining.
*/
public Builder setAnnouncementEditorBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000100;
announcementEditor_ = value;
onChanged();
return this;
}
private int announcementPublishTime_ ;
/**
* optional uint32 announcement_publish_time = 10;
* @return Whether the announcementPublishTime field is set.
*/
@java.lang.Override
public boolean hasAnnouncementPublishTime() {
return ((bitField0_ & 0x00000200) != 0);
}
/**
* optional uint32 announcement_publish_time = 10;
* @return The announcementPublishTime.
*/
@java.lang.Override
public int getAnnouncementPublishTime() {
return announcementPublishTime_;
}
/**
* optional uint32 announcement_publish_time = 10;
* @param value The announcementPublishTime to set.
* @return This builder for chaining.
*/
public Builder setAnnouncementPublishTime(int value) {
bitField0_ |= 0x00000200;
announcementPublishTime_ = value;
onChanged();
return this;
}
/**
* optional uint32 announcement_publish_time = 10;
* @return This builder for chaining.
*/
public Builder clearAnnouncementPublishTime() {
bitField0_ = (bitField0_ & ~0x00000200);
announcementPublishTime_ = 0;
onChanged();
return this;
}
private int chatRoomMaxCount_ ;
/**
* optional uint32 chatRoom_max_count = 11;
* @return Whether the chatRoomMaxCount field is set.
*/
@java.lang.Override
public boolean hasChatRoomMaxCount() {
return ((bitField0_ & 0x00000400) != 0);
}
/**
* optional uint32 chatRoom_max_count = 11;
* @return The chatRoomMaxCount.
*/
@java.lang.Override
public int getChatRoomMaxCount() {
return chatRoomMaxCount_;
}
/**
* optional uint32 chatRoom_max_count = 11;
* @param value The chatRoomMaxCount to set.
* @return This builder for chaining.
*/
public Builder setChatRoomMaxCount(int value) {
bitField0_ |= 0x00000400;
chatRoomMaxCount_ = value;
onChanged();
return this;
}
/**
* optional uint32 chatRoom_max_count = 11;
* @return This builder for chaining.
*/
public Builder clearChatRoomMaxCount() {
bitField0_ = (bitField0_ & ~0x00000400);
chatRoomMaxCount_ = 0;
onChanged();
return this;
}
private int extFlag_ ;
/**
* optional uint32 ext_flag = 12;
* @return Whether the extFlag field is set.
*/
@java.lang.Override
public boolean hasExtFlag() {
return ((bitField0_ & 0x00000800) != 0);
}
/**
* optional uint32 ext_flag = 12;
* @return The extFlag.
*/
@java.lang.Override
public int getExtFlag() {
return extFlag_;
}
/**
* optional uint32 ext_flag = 12;
* @param value The extFlag to set.
* @return This builder for chaining.
*/
public Builder setExtFlag(int value) {
bitField0_ |= 0x00000800;
extFlag_ = value;
onChanged();
return this;
}
/**
* optional uint32 ext_flag = 12;
* @return This builder for chaining.
*/
public Builder clearExtFlag() {
bitField0_ = (bitField0_ & ~0x00000800);
extFlag_ = 0;
onChanged();
return this;
}
@java.lang.Override
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
}
@java.lang.Override
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:wechat_proto.OpenIMChatRoomData)
}
// @@protoc_insertion_point(class_scope:wechat_proto.OpenIMChatRoomData)
private static final wechat.protobuf.OpenIMChatRoomData DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new wechat.protobuf.OpenIMChatRoomData();
}
public static wechat.protobuf.OpenIMChatRoomData getDefaultInstance() {
return DEFAULT_INSTANCE;
}
@java.lang.Deprecated public static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public OpenIMChatRoomData parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new OpenIMChatRoomData(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.OpenIMChatRoomData getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy