implements cn.wildfirechat.proto.WFCMessage.ChannelInfoOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return cn.wildfirechat.proto.WFCMessage.internal_static_ChannelInfo_descriptor;
}
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable() {
return cn.wildfirechat.proto.WFCMessage.internal_static_ChannelInfo_fieldAccessorTable
.ensureFieldAccessorsInitialized(
cn.wildfirechat.proto.WFCMessage.ChannelInfo.class, cn.wildfirechat.proto.WFCMessage.ChannelInfo.Builder.class);
}
// Construct using cn.wildfirechat.proto.WFCMessage.ChannelInfo.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessage.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) {
getMenuFieldBuilder();
}
}
private static Builder create() {
return new Builder();
}
public Builder clear() {
super.clear();
targetId_ = "";
bitField0_ = (bitField0_ & ~0x00000001);
name_ = "";
bitField0_ = (bitField0_ & ~0x00000002);
portrait_ = "";
bitField0_ = (bitField0_ & ~0x00000004);
owner_ = "";
bitField0_ = (bitField0_ & ~0x00000008);
status_ = 0;
bitField0_ = (bitField0_ & ~0x00000010);
desc_ = "";
bitField0_ = (bitField0_ & ~0x00000020);
extra_ = "";
bitField0_ = (bitField0_ & ~0x00000040);
updateDt_ = 0L;
bitField0_ = (bitField0_ & ~0x00000080);
secret_ = "";
bitField0_ = (bitField0_ & ~0x00000100);
callback_ = "";
bitField0_ = (bitField0_ & ~0x00000200);
automatic_ = 0;
bitField0_ = (bitField0_ & ~0x00000400);
if (menuBuilder_ == null) {
menu_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000800);
} else {
menuBuilder_.clear();
}
return this;
}
public Builder clone() {
return create().mergeFrom(buildPartial());
}
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return cn.wildfirechat.proto.WFCMessage.internal_static_ChannelInfo_descriptor;
}
public cn.wildfirechat.proto.WFCMessage.ChannelInfo getDefaultInstanceForType() {
return cn.wildfirechat.proto.WFCMessage.ChannelInfo.getDefaultInstance();
}
public cn.wildfirechat.proto.WFCMessage.ChannelInfo build() {
cn.wildfirechat.proto.WFCMessage.ChannelInfo result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
public cn.wildfirechat.proto.WFCMessage.ChannelInfo buildPartial() {
cn.wildfirechat.proto.WFCMessage.ChannelInfo result = new cn.wildfirechat.proto.WFCMessage.ChannelInfo(this);
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
if (((from_bitField0_ & 0x00000001) == 0x00000001)) {
to_bitField0_ |= 0x00000001;
}
result.targetId_ = targetId_;
if (((from_bitField0_ & 0x00000002) == 0x00000002)) {
to_bitField0_ |= 0x00000002;
}
result.name_ = name_;
if (((from_bitField0_ & 0x00000004) == 0x00000004)) {
to_bitField0_ |= 0x00000004;
}
result.portrait_ = portrait_;
if (((from_bitField0_ & 0x00000008) == 0x00000008)) {
to_bitField0_ |= 0x00000008;
}
result.owner_ = owner_;
if (((from_bitField0_ & 0x00000010) == 0x00000010)) {
to_bitField0_ |= 0x00000010;
}
result.status_ = status_;
if (((from_bitField0_ & 0x00000020) == 0x00000020)) {
to_bitField0_ |= 0x00000020;
}
result.desc_ = desc_;
if (((from_bitField0_ & 0x00000040) == 0x00000040)) {
to_bitField0_ |= 0x00000040;
}
result.extra_ = extra_;
if (((from_bitField0_ & 0x00000080) == 0x00000080)) {
to_bitField0_ |= 0x00000080;
}
result.updateDt_ = updateDt_;
if (((from_bitField0_ & 0x00000100) == 0x00000100)) {
to_bitField0_ |= 0x00000100;
}
result.secret_ = secret_;
if (((from_bitField0_ & 0x00000200) == 0x00000200)) {
to_bitField0_ |= 0x00000200;
}
result.callback_ = callback_;
if (((from_bitField0_ & 0x00000400) == 0x00000400)) {
to_bitField0_ |= 0x00000400;
}
result.automatic_ = automatic_;
if (menuBuilder_ == null) {
if (((bitField0_ & 0x00000800) == 0x00000800)) {
menu_ = java.util.Collections.unmodifiableList(menu_);
bitField0_ = (bitField0_ & ~0x00000800);
}
result.menu_ = menu_;
} else {
result.menu_ = menuBuilder_.build();
}
result.bitField0_ = to_bitField0_;
onBuilt();
return result;
}
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof cn.wildfirechat.proto.WFCMessage.ChannelInfo) {
return mergeFrom((cn.wildfirechat.proto.WFCMessage.ChannelInfo)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(cn.wildfirechat.proto.WFCMessage.ChannelInfo other) {
if (other == cn.wildfirechat.proto.WFCMessage.ChannelInfo.getDefaultInstance()) return this;
if (other.hasTargetId()) {
bitField0_ |= 0x00000001;
targetId_ = other.targetId_;
onChanged();
}
if (other.hasName()) {
bitField0_ |= 0x00000002;
name_ = other.name_;
onChanged();
}
if (other.hasPortrait()) {
bitField0_ |= 0x00000004;
portrait_ = other.portrait_;
onChanged();
}
if (other.hasOwner()) {
bitField0_ |= 0x00000008;
owner_ = other.owner_;
onChanged();
}
if (other.hasStatus()) {
setStatus(other.getStatus());
}
if (other.hasDesc()) {
bitField0_ |= 0x00000020;
desc_ = other.desc_;
onChanged();
}
if (other.hasExtra()) {
bitField0_ |= 0x00000040;
extra_ = other.extra_;
onChanged();
}
if (other.hasUpdateDt()) {
setUpdateDt(other.getUpdateDt());
}
if (other.hasSecret()) {
bitField0_ |= 0x00000100;
secret_ = other.secret_;
onChanged();
}
if (other.hasCallback()) {
bitField0_ |= 0x00000200;
callback_ = other.callback_;
onChanged();
}
if (other.hasAutomatic()) {
setAutomatic(other.getAutomatic());
}
if (menuBuilder_ == null) {
if (!other.menu_.isEmpty()) {
if (menu_.isEmpty()) {
menu_ = other.menu_;
bitField0_ = (bitField0_ & ~0x00000800);
} else {
ensureMenuIsMutable();
menu_.addAll(other.menu_);
}
onChanged();
}
} else {
if (!other.menu_.isEmpty()) {
if (menuBuilder_.isEmpty()) {
menuBuilder_.dispose();
menuBuilder_ = null;
menu_ = other.menu_;
bitField0_ = (bitField0_ & ~0x00000800);
menuBuilder_ =
com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ?
getMenuFieldBuilder() : null;
} else {
menuBuilder_.addAllMessages(other.menu_);
}
}
}
this.mergeUnknownFields(other.getUnknownFields());
return this;
}
public final boolean isInitialized() {
if (!hasName()) {
return false;
}
for (int i = 0; i < getMenuCount(); i++) {
if (!getMenu(i).isInitialized()) {
return false;
}
}
return true;
}
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
cn.wildfirechat.proto.WFCMessage.ChannelInfo parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (cn.wildfirechat.proto.WFCMessage.ChannelInfo) e.getUnfinishedMessage();
throw e;
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
// optional string target_id = 1;
private java.lang.Object targetId_ = "";
/**
* optional string target_id = 1;
*/
public boolean hasTargetId() {
return ((bitField0_ & 0x00000001) == 0x00000001);
}
/**
* optional string target_id = 1;
*/
public java.lang.String getTargetId() {
java.lang.Object ref = targetId_;
if (!(ref instanceof java.lang.String)) {
java.lang.String s = ((com.google.protobuf.ByteString) ref)
.toStringUtf8();
targetId_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* optional string target_id = 1;
*/
public com.google.protobuf.ByteString
getTargetIdBytes() {
java.lang.Object ref = targetId_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
targetId_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* optional string target_id = 1;
*/
public Builder setTargetId(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000001;
targetId_ = value;
onChanged();
return this;
}
/**
* optional string target_id = 1;
*/
public Builder clearTargetId() {
bitField0_ = (bitField0_ & ~0x00000001);
targetId_ = getDefaultInstance().getTargetId();
onChanged();
return this;
}
/**
* optional string target_id = 1;
*/
public Builder setTargetIdBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000001;
targetId_ = value;
onChanged();
return this;
}
// required string name = 2;
private java.lang.Object name_ = "";
/**
* required string name = 2;
*/
public boolean hasName() {
return ((bitField0_ & 0x00000002) == 0x00000002);
}
/**
* required string name = 2;
*/
public java.lang.String getName() {
java.lang.Object ref = name_;
if (!(ref instanceof java.lang.String)) {
java.lang.String s = ((com.google.protobuf.ByteString) ref)
.toStringUtf8();
name_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* required string name = 2;
*/
public com.google.protobuf.ByteString
getNameBytes() {
java.lang.Object ref = name_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
name_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* required string name = 2;
*/
public Builder setName(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000002;
name_ = value;
onChanged();
return this;
}
/**
* required string name = 2;
*/
public Builder clearName() {
bitField0_ = (bitField0_ & ~0x00000002);
name_ = getDefaultInstance().getName();
onChanged();
return this;
}
/**
* required string name = 2;
*/
public Builder setNameBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000002;
name_ = value;
onChanged();
return this;
}
// optional string portrait = 3;
private java.lang.Object portrait_ = "";
/**
* optional string portrait = 3;
*/
public boolean hasPortrait() {
return ((bitField0_ & 0x00000004) == 0x00000004);
}
/**
* optional string portrait = 3;
*/
public java.lang.String getPortrait() {
java.lang.Object ref = portrait_;
if (!(ref instanceof java.lang.String)) {
java.lang.String s = ((com.google.protobuf.ByteString) ref)
.toStringUtf8();
portrait_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* optional string portrait = 3;
*/
public com.google.protobuf.ByteString
getPortraitBytes() {
java.lang.Object ref = portrait_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
portrait_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* optional string portrait = 3;
*/
public Builder setPortrait(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000004;
portrait_ = value;
onChanged();
return this;
}
/**
* optional string portrait = 3;
*/
public Builder clearPortrait() {
bitField0_ = (bitField0_ & ~0x00000004);
portrait_ = getDefaultInstance().getPortrait();
onChanged();
return this;
}
/**
* optional string portrait = 3;
*/
public Builder setPortraitBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000004;
portrait_ = value;
onChanged();
return this;
}
// optional string owner = 4;
private java.lang.Object owner_ = "";
/**
* optional string owner = 4;
*/
public boolean hasOwner() {
return ((bitField0_ & 0x00000008) == 0x00000008);
}
/**
* optional string owner = 4;
*/
public java.lang.String getOwner() {
java.lang.Object ref = owner_;
if (!(ref instanceof java.lang.String)) {
java.lang.String s = ((com.google.protobuf.ByteString) ref)
.toStringUtf8();
owner_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* optional string owner = 4;
*/
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 = 4;
*/
public Builder setOwner(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000008;
owner_ = value;
onChanged();
return this;
}
/**
* optional string owner = 4;
*/
public Builder clearOwner() {
bitField0_ = (bitField0_ & ~0x00000008);
owner_ = getDefaultInstance().getOwner();
onChanged();
return this;
}
/**
* optional string owner = 4;
*/
public Builder setOwnerBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000008;
owner_ = value;
onChanged();
return this;
}
// optional int32 status = 5;
private int status_ ;
/**
* optional int32 status = 5;
*
*
*0, public; 1, private; 2 closed;
*
*/
public boolean hasStatus() {
return ((bitField0_ & 0x00000010) == 0x00000010);
}
/**
* optional int32 status = 5;
*
*
*0, public; 1, private; 2 closed;
*
*/
public int getStatus() {
return status_;
}
/**
* optional int32 status = 5;
*
*
*0, public; 1, private; 2 closed;
*
*/
public Builder setStatus(int value) {
bitField0_ |= 0x00000010;
status_ = value;
onChanged();
return this;
}
/**
* optional int32 status = 5;
*
*
*0, public; 1, private; 2 closed;
*
*/
public Builder clearStatus() {
bitField0_ = (bitField0_ & ~0x00000010);
status_ = 0;
onChanged();
return this;
}
// optional string desc = 6;
private java.lang.Object desc_ = "";
/**
* optional string desc = 6;
*/
public boolean hasDesc() {
return ((bitField0_ & 0x00000020) == 0x00000020);
}
/**
* optional string desc = 6;
*/
public java.lang.String getDesc() {
java.lang.Object ref = desc_;
if (!(ref instanceof java.lang.String)) {
java.lang.String s = ((com.google.protobuf.ByteString) ref)
.toStringUtf8();
desc_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* optional string desc = 6;
*/
public com.google.protobuf.ByteString
getDescBytes() {
java.lang.Object ref = desc_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
desc_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* optional string desc = 6;
*/
public Builder setDesc(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000020;
desc_ = value;
onChanged();
return this;
}
/**
* optional string desc = 6;
*/
public Builder clearDesc() {
bitField0_ = (bitField0_ & ~0x00000020);
desc_ = getDefaultInstance().getDesc();
onChanged();
return this;
}
/**
* optional string desc = 6;
*/
public Builder setDescBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000020;
desc_ = value;
onChanged();
return this;
}
// optional string extra = 7;
private java.lang.Object extra_ = "";
/**
* optional string extra = 7;
*/
public boolean hasExtra() {
return ((bitField0_ & 0x00000040) == 0x00000040);
}
/**
* optional string extra = 7;
*/
public java.lang.String getExtra() {
java.lang.Object ref = extra_;
if (!(ref instanceof java.lang.String)) {
java.lang.String s = ((com.google.protobuf.ByteString) ref)
.toStringUtf8();
extra_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* optional string extra = 7;
*/
public com.google.protobuf.ByteString
getExtraBytes() {
java.lang.Object ref = extra_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
extra_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* optional string extra = 7;
*/
public Builder setExtra(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000040;
extra_ = value;
onChanged();
return this;
}
/**
* optional string extra = 7;
*/
public Builder clearExtra() {
bitField0_ = (bitField0_ & ~0x00000040);
extra_ = getDefaultInstance().getExtra();
onChanged();
return this;
}
/**
* optional string extra = 7;
*/
public Builder setExtraBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000040;
extra_ = value;
onChanged();
return this;
}
// optional int64 update_dt = 8;
private long updateDt_ ;
/**
* optional int64 update_dt = 8;
*/
public boolean hasUpdateDt() {
return ((bitField0_ & 0x00000080) == 0x00000080);
}
/**
* optional int64 update_dt = 8;
*/
public long getUpdateDt() {
return updateDt_;
}
/**
* optional int64 update_dt = 8;
*/
public Builder setUpdateDt(long value) {
bitField0_ |= 0x00000080;
updateDt_ = value;
onChanged();
return this;
}
/**
* optional int64 update_dt = 8;
*/
public Builder clearUpdateDt() {
bitField0_ = (bitField0_ & ~0x00000080);
updateDt_ = 0L;
onChanged();
return this;
}
// optional string secret = 9;
private java.lang.Object secret_ = "";
/**
* optional string secret = 9;
*/
public boolean hasSecret() {
return ((bitField0_ & 0x00000100) == 0x00000100);
}
/**
* optional string secret = 9;
*/
public java.lang.String getSecret() {
java.lang.Object ref = secret_;
if (!(ref instanceof java.lang.String)) {
java.lang.String s = ((com.google.protobuf.ByteString) ref)
.toStringUtf8();
secret_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* optional string secret = 9;
*/
public com.google.protobuf.ByteString
getSecretBytes() {
java.lang.Object ref = secret_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
secret_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* optional string secret = 9;
*/
public Builder setSecret(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000100;
secret_ = value;
onChanged();
return this;
}
/**
* optional string secret = 9;
*/
public Builder clearSecret() {
bitField0_ = (bitField0_ & ~0x00000100);
secret_ = getDefaultInstance().getSecret();
onChanged();
return this;
}
/**
* optional string secret = 9;
*/
public Builder setSecretBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000100;
secret_ = value;
onChanged();
return this;
}
// optional string callback = 10;
private java.lang.Object callback_ = "";
/**
* optional string callback = 10;
*/
public boolean hasCallback() {
return ((bitField0_ & 0x00000200) == 0x00000200);
}
/**
* optional string callback = 10;
*/
public java.lang.String getCallback() {
java.lang.Object ref = callback_;
if (!(ref instanceof java.lang.String)) {
java.lang.String s = ((com.google.protobuf.ByteString) ref)
.toStringUtf8();
callback_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* optional string callback = 10;
*/
public com.google.protobuf.ByteString
getCallbackBytes() {
java.lang.Object ref = callback_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
callback_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* optional string callback = 10;
*/
public Builder setCallback(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000200;
callback_ = value;
onChanged();
return this;
}
/**
* optional string callback = 10;
*/
public Builder clearCallback() {
bitField0_ = (bitField0_ & ~0x00000200);
callback_ = getDefaultInstance().getCallback();
onChanged();
return this;
}
/**
* optional string callback = 10;
*/
public Builder setCallbackBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000200;
callback_ = value;
onChanged();
return this;
}
// optional int32 automatic = 11;
private int automatic_ ;
/**
* optional int32 automatic = 11;
*/
public boolean hasAutomatic() {
return ((bitField0_ & 0x00000400) == 0x00000400);
}
/**
* optional int32 automatic = 11;
*/
public int getAutomatic() {
return automatic_;
}
/**
* optional int32 automatic = 11;
*/
public Builder setAutomatic(int value) {
bitField0_ |= 0x00000400;
automatic_ = value;
onChanged();
return this;
}
/**
* optional int32 automatic = 11;
*/
public Builder clearAutomatic() {
bitField0_ = (bitField0_ & ~0x00000400);
automatic_ = 0;
onChanged();
return this;
}
// repeated .ChannelMenu menu = 12;
private java.util.List menu_ =
java.util.Collections.emptyList();
private void ensureMenuIsMutable() {
if (!((bitField0_ & 0x00000800) == 0x00000800)) {
menu_ = new java.util.ArrayList(menu_);
bitField0_ |= 0x00000800;
}
}
private com.google.protobuf.RepeatedFieldBuilder<
cn.wildfirechat.proto.WFCMessage.ChannelMenu, cn.wildfirechat.proto.WFCMessage.ChannelMenu.Builder, cn.wildfirechat.proto.WFCMessage.ChannelMenuOrBuilder> menuBuilder_;
/**
* repeated .ChannelMenu menu = 12;
*/
public java.util.List getMenuList() {
if (menuBuilder_ == null) {
return java.util.Collections.unmodifiableList(menu_);
} else {
return menuBuilder_.getMessageList();
}
}
/**
* repeated .ChannelMenu menu = 12;
*/
public int getMenuCount() {
if (menuBuilder_ == null) {
return menu_.size();
} else {
return menuBuilder_.getCount();
}
}
/**
* repeated .ChannelMenu menu = 12;
*/
public cn.wildfirechat.proto.WFCMessage.ChannelMenu getMenu(int index) {
if (menuBuilder_ == null) {
return menu_.get(index);
} else {
return menuBuilder_.getMessage(index);
}
}
/**
* repeated .ChannelMenu menu = 12;
*/
public Builder setMenu(
int index, cn.wildfirechat.proto.WFCMessage.ChannelMenu value) {
if (menuBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureMenuIsMutable();
menu_.set(index, value);
onChanged();
} else {
menuBuilder_.setMessage(index, value);
}
return this;
}
/**
* repeated .ChannelMenu menu = 12;
*/
public Builder setMenu(
int index, cn.wildfirechat.proto.WFCMessage.ChannelMenu.Builder builderForValue) {
if (menuBuilder_ == null) {
ensureMenuIsMutable();
menu_.set(index, builderForValue.build());
onChanged();
} else {
menuBuilder_.setMessage(index, builderForValue.build());
}
return this;
}
/**
* repeated .ChannelMenu menu = 12;
*/
public Builder addMenu(cn.wildfirechat.proto.WFCMessage.ChannelMenu value) {
if (menuBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureMenuIsMutable();
menu_.add(value);
onChanged();
} else {
menuBuilder_.addMessage(value);
}
return this;
}
/**
* repeated .ChannelMenu menu = 12;
*/
public Builder addMenu(
int index, cn.wildfirechat.proto.WFCMessage.ChannelMenu value) {
if (menuBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureMenuIsMutable();
menu_.add(index, value);
onChanged();
} else {
menuBuilder_.addMessage(index, value);
}
return this;
}
/**
* repeated .ChannelMenu menu = 12;
*/
public Builder addMenu(
cn.wildfirechat.proto.WFCMessage.ChannelMenu.Builder builderForValue) {
if (menuBuilder_ == null) {
ensureMenuIsMutable();
menu_.add(builderForValue.build());
onChanged();
} else {
menuBuilder_.addMessage(builderForValue.build());
}
return this;
}
/**
* repeated .ChannelMenu menu = 12;
*/
public Builder addMenu(
int index, cn.wildfirechat.proto.WFCMessage.ChannelMenu.Builder builderForValue) {
if (menuBuilder_ == null) {
ensureMenuIsMutable();
menu_.add(index, builderForValue.build());
onChanged();
} else {
menuBuilder_.addMessage(index, builderForValue.build());
}
return this;
}
/**
* repeated .ChannelMenu menu = 12;
*/
public Builder addAllMenu(
java.lang.Iterable extends cn.wildfirechat.proto.WFCMessage.ChannelMenu> values) {
if (menuBuilder_ == null) {
ensureMenuIsMutable();
super.addAll(values, menu_);
onChanged();
} else {
menuBuilder_.addAllMessages(values);
}
return this;
}
/**
* repeated .ChannelMenu menu = 12;
*/
public Builder clearMenu() {
if (menuBuilder_ == null) {
menu_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000800);
onChanged();
} else {
menuBuilder_.clear();
}
return this;
}
/**
* repeated .ChannelMenu menu = 12;
*/
public Builder removeMenu(int index) {
if (menuBuilder_ == null) {
ensureMenuIsMutable();
menu_.remove(index);
onChanged();
} else {
menuBuilder_.remove(index);
}
return this;
}
/**
* repeated .ChannelMenu menu = 12;
*/
public cn.wildfirechat.proto.WFCMessage.ChannelMenu.Builder getMenuBuilder(
int index) {
return getMenuFieldBuilder().getBuilder(index);
}
/**
* repeated .ChannelMenu menu = 12;
*/
public cn.wildfirechat.proto.WFCMessage.ChannelMenuOrBuilder getMenuOrBuilder(
int index) {
if (menuBuilder_ == null) {
return menu_.get(index); } else {
return menuBuilder_.getMessageOrBuilder(index);
}
}
/**
* repeated .ChannelMenu menu = 12;
*/
public java.util.List extends cn.wildfirechat.proto.WFCMessage.ChannelMenuOrBuilder>
getMenuOrBuilderList() {
if (menuBuilder_ != null) {
return menuBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(menu_);
}
}
/**
* repeated .ChannelMenu menu = 12;
*/
public cn.wildfirechat.proto.WFCMessage.ChannelMenu.Builder addMenuBuilder() {
return getMenuFieldBuilder().addBuilder(
cn.wildfirechat.proto.WFCMessage.ChannelMenu.getDefaultInstance());
}
/**
* repeated .ChannelMenu menu = 12;
*/
public cn.wildfirechat.proto.WFCMessage.ChannelMenu.Builder addMenuBuilder(
int index) {
return getMenuFieldBuilder().addBuilder(
index, cn.wildfirechat.proto.WFCMessage.ChannelMenu.getDefaultInstance());
}
/**
* repeated .ChannelMenu menu = 12;
*/
public java.util.List
getMenuBuilderList() {
return getMenuFieldBuilder().getBuilderList();
}
private com.google.protobuf.RepeatedFieldBuilder<
cn.wildfirechat.proto.WFCMessage.ChannelMenu, cn.wildfirechat.proto.WFCMessage.ChannelMenu.Builder, cn.wildfirechat.proto.WFCMessage.ChannelMenuOrBuilder>
getMenuFieldBuilder() {
if (menuBuilder_ == null) {
menuBuilder_ = new com.google.protobuf.RepeatedFieldBuilder<
cn.wildfirechat.proto.WFCMessage.ChannelMenu, cn.wildfirechat.proto.WFCMessage.ChannelMenu.Builder, cn.wildfirechat.proto.WFCMessage.ChannelMenuOrBuilder>(
menu_,
((bitField0_ & 0x00000800) == 0x00000800),
getParentForChildren(),
isClean());
menu_ = null;
}
return menuBuilder_;
}
// @@protoc_insertion_point(builder_scope:ChannelInfo)
}
static {
defaultInstance = new ChannelInfo(true);
defaultInstance.initFields();
}
// @@protoc_insertion_point(class_scope:ChannelInfo)
}
public interface ModifyChannelInfoOrBuilder
extends com.google.protobuf.MessageOrBuilder {
// required string channel_id = 1;
/**
* required string channel_id = 1;
*/
boolean hasChannelId();
/**
* required string channel_id = 1;
*/
java.lang.String getChannelId();
/**
* required string channel_id = 1;
*/
com.google.protobuf.ByteString
getChannelIdBytes();
// required int32 type = 2;
/**
* required int32 type = 2;
*/
boolean hasType();
/**
* required int32 type = 2;
*/
int getType();
// required string value = 3;
/**
* required string value = 3;
*/
boolean hasValue();
/**
* required string value = 3;
*/
java.lang.String getValue();
/**
* required string value = 3;
*/
com.google.protobuf.ByteString
getValueBytes();
}
/**
* Protobuf type {@code ModifyChannelInfo}
*/
public static final class ModifyChannelInfo extends
com.google.protobuf.GeneratedMessage
implements ModifyChannelInfoOrBuilder {
// Use ModifyChannelInfo.newBuilder() to construct.
private ModifyChannelInfo(com.google.protobuf.GeneratedMessage.Builder> builder) {
super(builder);
this.unknownFields = builder.getUnknownFields();
}
private ModifyChannelInfo(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); }
private static final ModifyChannelInfo defaultInstance;
public static ModifyChannelInfo getDefaultInstance() {
return defaultInstance;
}
public ModifyChannelInfo getDefaultInstanceForType() {
return defaultInstance;
}
private final com.google.protobuf.UnknownFieldSet unknownFields;
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private ModifyChannelInfo(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
initFields();
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;
default: {
if (!parseUnknownField(input, unknownFields,
extensionRegistry, tag)) {
done = true;
}
break;
}
case 10: {
bitField0_ |= 0x00000001;
channelId_ = input.readBytes();
break;
}
case 16: {
bitField0_ |= 0x00000002;
type_ = input.readInt32();
break;
}
case 26: {
bitField0_ |= 0x00000004;
value_ = input.readBytes();
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e.getMessage()).setUnfinishedMessage(this);
} finally {
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return cn.wildfirechat.proto.WFCMessage.internal_static_ModifyChannelInfo_descriptor;
}
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable() {
return cn.wildfirechat.proto.WFCMessage.internal_static_ModifyChannelInfo_fieldAccessorTable
.ensureFieldAccessorsInitialized(
cn.wildfirechat.proto.WFCMessage.ModifyChannelInfo.class, cn.wildfirechat.proto.WFCMessage.ModifyChannelInfo.Builder.class);
}
public static com.google.protobuf.Parser PARSER =
new com.google.protobuf.AbstractParser() {
public ModifyChannelInfo parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new ModifyChannelInfo(input, extensionRegistry);
}
};
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
private int bitField0_;
// required string channel_id = 1;
public static final int CHANNEL_ID_FIELD_NUMBER = 1;
private java.lang.Object channelId_;
/**
* required string channel_id = 1;
*/
public boolean hasChannelId() {
return ((bitField0_ & 0x00000001) == 0x00000001);
}
/**
* required string channel_id = 1;
*/
public java.lang.String getChannelId() {
java.lang.Object ref = channelId_;
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()) {
channelId_ = s;
}
return s;
}
}
/**
* required string channel_id = 1;
*/
public com.google.protobuf.ByteString
getChannelIdBytes() {
java.lang.Object ref = channelId_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
channelId_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
// required int32 type = 2;
public static final int TYPE_FIELD_NUMBER = 2;
private int type_;
/**
* required int32 type = 2;
*/
public boolean hasType() {
return ((bitField0_ & 0x00000002) == 0x00000002);
}
/**
* required int32 type = 2;
*/
public int getType() {
return type_;
}
// required string value = 3;
public static final int VALUE_FIELD_NUMBER = 3;
private java.lang.Object value_;
/**
* required string value = 3;
*/
public boolean hasValue() {
return ((bitField0_ & 0x00000004) == 0x00000004);
}
/**
* required string value = 3;
*/
public java.lang.String getValue() {
java.lang.Object ref = value_;
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()) {
value_ = s;
}
return s;
}
}
/**
* required string value = 3;
*/
public com.google.protobuf.ByteString
getValueBytes() {
java.lang.Object ref = value_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
value_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
private void initFields() {
channelId_ = "";
type_ = 0;
value_ = "";
}
private byte memoizedIsInitialized = -1;
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized != -1) return isInitialized == 1;
if (!hasChannelId()) {
memoizedIsInitialized = 0;
return false;
}
if (!hasType()) {
memoizedIsInitialized = 0;
return false;
}
if (!hasValue()) {
memoizedIsInitialized = 0;
return false;
}
memoizedIsInitialized = 1;
return true;
}
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
getSerializedSize();
if (((bitField0_ & 0x00000001) == 0x00000001)) {
output.writeBytes(1, getChannelIdBytes());
}
if (((bitField0_ & 0x00000002) == 0x00000002)) {
output.writeInt32(2, type_);
}
if (((bitField0_ & 0x00000004) == 0x00000004)) {
output.writeBytes(3, getValueBytes());
}
getUnknownFields().writeTo(output);
}
private int memoizedSerializedSize = -1;
public int getSerializedSize() {
int size = memoizedSerializedSize;
if (size != -1) return size;
size = 0;
if (((bitField0_ & 0x00000001) == 0x00000001)) {
size += com.google.protobuf.CodedOutputStream
.computeBytesSize(1, getChannelIdBytes());
}
if (((bitField0_ & 0x00000002) == 0x00000002)) {
size += com.google.protobuf.CodedOutputStream
.computeInt32Size(2, type_);
}
if (((bitField0_ & 0x00000004) == 0x00000004)) {
size += com.google.protobuf.CodedOutputStream
.computeBytesSize(3, getValueBytes());
}
size += getUnknownFields().getSerializedSize();
memoizedSerializedSize = size;
return size;
}
private static final long serialVersionUID = 0L;
@java.lang.Override
protected java.lang.Object writeReplace()
throws java.io.ObjectStreamException {
return super.writeReplace();
}
public static cn.wildfirechat.proto.WFCMessage.ModifyChannelInfo parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static cn.wildfirechat.proto.WFCMessage.ModifyChannelInfo parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static cn.wildfirechat.proto.WFCMessage.ModifyChannelInfo parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static cn.wildfirechat.proto.WFCMessage.ModifyChannelInfo parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static cn.wildfirechat.proto.WFCMessage.ModifyChannelInfo parseFrom(java.io.InputStream input)
throws java.io.IOException {
return PARSER.parseFrom(input);
}
public static cn.wildfirechat.proto.WFCMessage.ModifyChannelInfo parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return PARSER.parseFrom(input, extensionRegistry);
}
public static cn.wildfirechat.proto.WFCMessage.ModifyChannelInfo parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return PARSER.parseDelimitedFrom(input);
}
public static cn.wildfirechat.proto.WFCMessage.ModifyChannelInfo parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return PARSER.parseDelimitedFrom(input, extensionRegistry);
}
public static cn.wildfirechat.proto.WFCMessage.ModifyChannelInfo parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return PARSER.parseFrom(input);
}
public static cn.wildfirechat.proto.WFCMessage.ModifyChannelInfo parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return PARSER.parseFrom(input, extensionRegistry);
}
public static Builder newBuilder() { return Builder.create(); }
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder(cn.wildfirechat.proto.WFCMessage.ModifyChannelInfo prototype) {
return newBuilder().mergeFrom(prototype);
}
public Builder toBuilder() { return newBuilder(this); }
@java.lang.Override
protected Builder newBuilderForType(
com.google.protobuf.GeneratedMessage.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
* Protobuf type {@code ModifyChannelInfo}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessage.Builder
implements cn.wildfirechat.proto.WFCMessage.ModifyChannelInfoOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return cn.wildfirechat.proto.WFCMessage.internal_static_ModifyChannelInfo_descriptor;
}
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable() {
return cn.wildfirechat.proto.WFCMessage.internal_static_ModifyChannelInfo_fieldAccessorTable
.ensureFieldAccessorsInitialized(
cn.wildfirechat.proto.WFCMessage.ModifyChannelInfo.class, cn.wildfirechat.proto.WFCMessage.ModifyChannelInfo.Builder.class);
}
// Construct using cn.wildfirechat.proto.WFCMessage.ModifyChannelInfo.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessage.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) {
}
}
private static Builder create() {
return new Builder();
}
public Builder clear() {
super.clear();
channelId_ = "";
bitField0_ = (bitField0_ & ~0x00000001);
type_ = 0;
bitField0_ = (bitField0_ & ~0x00000002);
value_ = "";
bitField0_ = (bitField0_ & ~0x00000004);
return this;
}
public Builder clone() {
return create().mergeFrom(buildPartial());
}
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return cn.wildfirechat.proto.WFCMessage.internal_static_ModifyChannelInfo_descriptor;
}
public cn.wildfirechat.proto.WFCMessage.ModifyChannelInfo getDefaultInstanceForType() {
return cn.wildfirechat.proto.WFCMessage.ModifyChannelInfo.getDefaultInstance();
}
public cn.wildfirechat.proto.WFCMessage.ModifyChannelInfo build() {
cn.wildfirechat.proto.WFCMessage.ModifyChannelInfo result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
public cn.wildfirechat.proto.WFCMessage.ModifyChannelInfo buildPartial() {
cn.wildfirechat.proto.WFCMessage.ModifyChannelInfo result = new cn.wildfirechat.proto.WFCMessage.ModifyChannelInfo(this);
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
if (((from_bitField0_ & 0x00000001) == 0x00000001)) {
to_bitField0_ |= 0x00000001;
}
result.channelId_ = channelId_;
if (((from_bitField0_ & 0x00000002) == 0x00000002)) {
to_bitField0_ |= 0x00000002;
}
result.type_ = type_;
if (((from_bitField0_ & 0x00000004) == 0x00000004)) {
to_bitField0_ |= 0x00000004;
}
result.value_ = value_;
result.bitField0_ = to_bitField0_;
onBuilt();
return result;
}
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof cn.wildfirechat.proto.WFCMessage.ModifyChannelInfo) {
return mergeFrom((cn.wildfirechat.proto.WFCMessage.ModifyChannelInfo)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(cn.wildfirechat.proto.WFCMessage.ModifyChannelInfo other) {
if (other == cn.wildfirechat.proto.WFCMessage.ModifyChannelInfo.getDefaultInstance()) return this;
if (other.hasChannelId()) {
bitField0_ |= 0x00000001;
channelId_ = other.channelId_;
onChanged();
}
if (other.hasType()) {
setType(other.getType());
}
if (other.hasValue()) {
bitField0_ |= 0x00000004;
value_ = other.value_;
onChanged();
}
this.mergeUnknownFields(other.getUnknownFields());
return this;
}
public final boolean isInitialized() {
if (!hasChannelId()) {
return false;
}
if (!hasType()) {
return false;
}
if (!hasValue()) {
return false;
}
return true;
}
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
cn.wildfirechat.proto.WFCMessage.ModifyChannelInfo parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (cn.wildfirechat.proto.WFCMessage.ModifyChannelInfo) e.getUnfinishedMessage();
throw e;
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
// required string channel_id = 1;
private java.lang.Object channelId_ = "";
/**
* required string channel_id = 1;
*/
public boolean hasChannelId() {
return ((bitField0_ & 0x00000001) == 0x00000001);
}
/**
* required string channel_id = 1;
*/
public java.lang.String getChannelId() {
java.lang.Object ref = channelId_;
if (!(ref instanceof java.lang.String)) {
java.lang.String s = ((com.google.protobuf.ByteString) ref)
.toStringUtf8();
channelId_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* required string channel_id = 1;
*/
public com.google.protobuf.ByteString
getChannelIdBytes() {
java.lang.Object ref = channelId_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
channelId_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* required string channel_id = 1;
*/
public Builder setChannelId(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000001;
channelId_ = value;
onChanged();
return this;
}
/**
* required string channel_id = 1;
*/
public Builder clearChannelId() {
bitField0_ = (bitField0_ & ~0x00000001);
channelId_ = getDefaultInstance().getChannelId();
onChanged();
return this;
}
/**
* required string channel_id = 1;
*/
public Builder setChannelIdBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000001;
channelId_ = value;
onChanged();
return this;
}
// required int32 type = 2;
private int type_ ;
/**
* required int32 type = 2;
*/
public boolean hasType() {
return ((bitField0_ & 0x00000002) == 0x00000002);
}
/**
* required int32 type = 2;
*/
public int getType() {
return type_;
}
/**
* required int32 type = 2;
*/
public Builder setType(int value) {
bitField0_ |= 0x00000002;
type_ = value;
onChanged();
return this;
}
/**
* required int32 type = 2;
*/
public Builder clearType() {
bitField0_ = (bitField0_ & ~0x00000002);
type_ = 0;
onChanged();
return this;
}
// required string value = 3;
private java.lang.Object value_ = "";
/**
* required string value = 3;
*/
public boolean hasValue() {
return ((bitField0_ & 0x00000004) == 0x00000004);
}
/**
* required string value = 3;
*/
public java.lang.String getValue() {
java.lang.Object ref = value_;
if (!(ref instanceof java.lang.String)) {
java.lang.String s = ((com.google.protobuf.ByteString) ref)
.toStringUtf8();
value_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* required string value = 3;
*/
public com.google.protobuf.ByteString
getValueBytes() {
java.lang.Object ref = value_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
value_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* required string value = 3;
*/
public Builder setValue(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000004;
value_ = value;
onChanged();
return this;
}
/**
* required string value = 3;
*/
public Builder clearValue() {
bitField0_ = (bitField0_ & ~0x00000004);
value_ = getDefaultInstance().getValue();
onChanged();
return this;
}
/**
* required string value = 3;
*/
public Builder setValueBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000004;
value_ = value;
onChanged();
return this;
}
// @@protoc_insertion_point(builder_scope:ModifyChannelInfo)
}
static {
defaultInstance = new ModifyChannelInfo(true);
defaultInstance.initFields();
}
// @@protoc_insertion_point(class_scope:ModifyChannelInfo)
}
public interface TransferChannelOrBuilder
extends com.google.protobuf.MessageOrBuilder {
// required string channel_id = 1;
/**
* required string channel_id = 1;
*/
boolean hasChannelId();
/**
* required string channel_id = 1;
*/
java.lang.String getChannelId();
/**
* required string channel_id = 1;
*/
com.google.protobuf.ByteString
getChannelIdBytes();
// required string new_owner = 2;
/**
* required string new_owner = 2;
*/
boolean hasNewOwner();
/**
* required string new_owner = 2;
*/
java.lang.String getNewOwner();
/**
* required string new_owner = 2;
*/
com.google.protobuf.ByteString
getNewOwnerBytes();
}
/**
* Protobuf type {@code TransferChannel}
*/
public static final class TransferChannel extends
com.google.protobuf.GeneratedMessage
implements TransferChannelOrBuilder {
// Use TransferChannel.newBuilder() to construct.
private TransferChannel(com.google.protobuf.GeneratedMessage.Builder> builder) {
super(builder);
this.unknownFields = builder.getUnknownFields();
}
private TransferChannel(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); }
private static final TransferChannel defaultInstance;
public static TransferChannel getDefaultInstance() {
return defaultInstance;
}
public TransferChannel getDefaultInstanceForType() {
return defaultInstance;
}
private final com.google.protobuf.UnknownFieldSet unknownFields;
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private TransferChannel(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
initFields();
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;
default: {
if (!parseUnknownField(input, unknownFields,
extensionRegistry, tag)) {
done = true;
}
break;
}
case 10: {
bitField0_ |= 0x00000001;
channelId_ = input.readBytes();
break;
}
case 18: {
bitField0_ |= 0x00000002;
newOwner_ = input.readBytes();
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e.getMessage()).setUnfinishedMessage(this);
} finally {
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return cn.wildfirechat.proto.WFCMessage.internal_static_TransferChannel_descriptor;
}
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable() {
return cn.wildfirechat.proto.WFCMessage.internal_static_TransferChannel_fieldAccessorTable
.ensureFieldAccessorsInitialized(
cn.wildfirechat.proto.WFCMessage.TransferChannel.class, cn.wildfirechat.proto.WFCMessage.TransferChannel.Builder.class);
}
public static com.google.protobuf.Parser PARSER =
new com.google.protobuf.AbstractParser() {
public TransferChannel parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new TransferChannel(input, extensionRegistry);
}
};
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
private int bitField0_;
// required string channel_id = 1;
public static final int CHANNEL_ID_FIELD_NUMBER = 1;
private java.lang.Object channelId_;
/**
* required string channel_id = 1;
*/
public boolean hasChannelId() {
return ((bitField0_ & 0x00000001) == 0x00000001);
}
/**
* required string channel_id = 1;
*/
public java.lang.String getChannelId() {
java.lang.Object ref = channelId_;
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()) {
channelId_ = s;
}
return s;
}
}
/**
* required string channel_id = 1;
*/
public com.google.protobuf.ByteString
getChannelIdBytes() {
java.lang.Object ref = channelId_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
channelId_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
// required string new_owner = 2;
public static final int NEW_OWNER_FIELD_NUMBER = 2;
private java.lang.Object newOwner_;
/**
* required string new_owner = 2;
*/
public boolean hasNewOwner() {
return ((bitField0_ & 0x00000002) == 0x00000002);
}
/**
* required string new_owner = 2;
*/
public java.lang.String getNewOwner() {
java.lang.Object ref = newOwner_;
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()) {
newOwner_ = s;
}
return s;
}
}
/**
* required string new_owner = 2;
*/
public com.google.protobuf.ByteString
getNewOwnerBytes() {
java.lang.Object ref = newOwner_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
newOwner_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
private void initFields() {
channelId_ = "";
newOwner_ = "";
}
private byte memoizedIsInitialized = -1;
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized != -1) return isInitialized == 1;
if (!hasChannelId()) {
memoizedIsInitialized = 0;
return false;
}
if (!hasNewOwner()) {
memoizedIsInitialized = 0;
return false;
}
memoizedIsInitialized = 1;
return true;
}
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
getSerializedSize();
if (((bitField0_ & 0x00000001) == 0x00000001)) {
output.writeBytes(1, getChannelIdBytes());
}
if (((bitField0_ & 0x00000002) == 0x00000002)) {
output.writeBytes(2, getNewOwnerBytes());
}
getUnknownFields().writeTo(output);
}
private int memoizedSerializedSize = -1;
public int getSerializedSize() {
int size = memoizedSerializedSize;
if (size != -1) return size;
size = 0;
if (((bitField0_ & 0x00000001) == 0x00000001)) {
size += com.google.protobuf.CodedOutputStream
.computeBytesSize(1, getChannelIdBytes());
}
if (((bitField0_ & 0x00000002) == 0x00000002)) {
size += com.google.protobuf.CodedOutputStream
.computeBytesSize(2, getNewOwnerBytes());
}
size += getUnknownFields().getSerializedSize();
memoizedSerializedSize = size;
return size;
}
private static final long serialVersionUID = 0L;
@java.lang.Override
protected java.lang.Object writeReplace()
throws java.io.ObjectStreamException {
return super.writeReplace();
}
public static cn.wildfirechat.proto.WFCMessage.TransferChannel parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static cn.wildfirechat.proto.WFCMessage.TransferChannel parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static cn.wildfirechat.proto.WFCMessage.TransferChannel parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static cn.wildfirechat.proto.WFCMessage.TransferChannel parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static cn.wildfirechat.proto.WFCMessage.TransferChannel parseFrom(java.io.InputStream input)
throws java.io.IOException {
return PARSER.parseFrom(input);
}
public static cn.wildfirechat.proto.WFCMessage.TransferChannel parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return PARSER.parseFrom(input, extensionRegistry);
}
public static cn.wildfirechat.proto.WFCMessage.TransferChannel parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return PARSER.parseDelimitedFrom(input);
}
public static cn.wildfirechat.proto.WFCMessage.TransferChannel parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return PARSER.parseDelimitedFrom(input, extensionRegistry);
}
public static cn.wildfirechat.proto.WFCMessage.TransferChannel parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return PARSER.parseFrom(input);
}
public static cn.wildfirechat.proto.WFCMessage.TransferChannel parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return PARSER.parseFrom(input, extensionRegistry);
}
public static Builder newBuilder() { return Builder.create(); }
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder(cn.wildfirechat.proto.WFCMessage.TransferChannel prototype) {
return newBuilder().mergeFrom(prototype);
}
public Builder toBuilder() { return newBuilder(this); }
@java.lang.Override
protected Builder newBuilderForType(
com.google.protobuf.GeneratedMessage.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
* Protobuf type {@code TransferChannel}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessage.Builder
implements cn.wildfirechat.proto.WFCMessage.TransferChannelOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return cn.wildfirechat.proto.WFCMessage.internal_static_TransferChannel_descriptor;
}
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable() {
return cn.wildfirechat.proto.WFCMessage.internal_static_TransferChannel_fieldAccessorTable
.ensureFieldAccessorsInitialized(
cn.wildfirechat.proto.WFCMessage.TransferChannel.class, cn.wildfirechat.proto.WFCMessage.TransferChannel.Builder.class);
}
// Construct using cn.wildfirechat.proto.WFCMessage.TransferChannel.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessage.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) {
}
}
private static Builder create() {
return new Builder();
}
public Builder clear() {
super.clear();
channelId_ = "";
bitField0_ = (bitField0_ & ~0x00000001);
newOwner_ = "";
bitField0_ = (bitField0_ & ~0x00000002);
return this;
}
public Builder clone() {
return create().mergeFrom(buildPartial());
}
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return cn.wildfirechat.proto.WFCMessage.internal_static_TransferChannel_descriptor;
}
public cn.wildfirechat.proto.WFCMessage.TransferChannel getDefaultInstanceForType() {
return cn.wildfirechat.proto.WFCMessage.TransferChannel.getDefaultInstance();
}
public cn.wildfirechat.proto.WFCMessage.TransferChannel build() {
cn.wildfirechat.proto.WFCMessage.TransferChannel result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
public cn.wildfirechat.proto.WFCMessage.TransferChannel buildPartial() {
cn.wildfirechat.proto.WFCMessage.TransferChannel result = new cn.wildfirechat.proto.WFCMessage.TransferChannel(this);
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
if (((from_bitField0_ & 0x00000001) == 0x00000001)) {
to_bitField0_ |= 0x00000001;
}
result.channelId_ = channelId_;
if (((from_bitField0_ & 0x00000002) == 0x00000002)) {
to_bitField0_ |= 0x00000002;
}
result.newOwner_ = newOwner_;
result.bitField0_ = to_bitField0_;
onBuilt();
return result;
}
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof cn.wildfirechat.proto.WFCMessage.TransferChannel) {
return mergeFrom((cn.wildfirechat.proto.WFCMessage.TransferChannel)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(cn.wildfirechat.proto.WFCMessage.TransferChannel other) {
if (other == cn.wildfirechat.proto.WFCMessage.TransferChannel.getDefaultInstance()) return this;
if (other.hasChannelId()) {
bitField0_ |= 0x00000001;
channelId_ = other.channelId_;
onChanged();
}
if (other.hasNewOwner()) {
bitField0_ |= 0x00000002;
newOwner_ = other.newOwner_;
onChanged();
}
this.mergeUnknownFields(other.getUnknownFields());
return this;
}
public final boolean isInitialized() {
if (!hasChannelId()) {
return false;
}
if (!hasNewOwner()) {
return false;
}
return true;
}
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
cn.wildfirechat.proto.WFCMessage.TransferChannel parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (cn.wildfirechat.proto.WFCMessage.TransferChannel) e.getUnfinishedMessage();
throw e;
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
// required string channel_id = 1;
private java.lang.Object channelId_ = "";
/**
* required string channel_id = 1;
*/
public boolean hasChannelId() {
return ((bitField0_ & 0x00000001) == 0x00000001);
}
/**
* required string channel_id = 1;
*/
public java.lang.String getChannelId() {
java.lang.Object ref = channelId_;
if (!(ref instanceof java.lang.String)) {
java.lang.String s = ((com.google.protobuf.ByteString) ref)
.toStringUtf8();
channelId_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* required string channel_id = 1;
*/
public com.google.protobuf.ByteString
getChannelIdBytes() {
java.lang.Object ref = channelId_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
channelId_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* required string channel_id = 1;
*/
public Builder setChannelId(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000001;
channelId_ = value;
onChanged();
return this;
}
/**
* required string channel_id = 1;
*/
public Builder clearChannelId() {
bitField0_ = (bitField0_ & ~0x00000001);
channelId_ = getDefaultInstance().getChannelId();
onChanged();
return this;
}
/**
* required string channel_id = 1;
*/
public Builder setChannelIdBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000001;
channelId_ = value;
onChanged();
return this;
}
// required string new_owner = 2;
private java.lang.Object newOwner_ = "";
/**
* required string new_owner = 2;
*/
public boolean hasNewOwner() {
return ((bitField0_ & 0x00000002) == 0x00000002);
}
/**
* required string new_owner = 2;
*/
public java.lang.String getNewOwner() {
java.lang.Object ref = newOwner_;
if (!(ref instanceof java.lang.String)) {
java.lang.String s = ((com.google.protobuf.ByteString) ref)
.toStringUtf8();
newOwner_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* required string new_owner = 2;
*/
public com.google.protobuf.ByteString
getNewOwnerBytes() {
java.lang.Object ref = newOwner_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
newOwner_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* required string new_owner = 2;
*/
public Builder setNewOwner(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000002;
newOwner_ = value;
onChanged();
return this;
}
/**
* required string new_owner = 2;
*/
public Builder clearNewOwner() {
bitField0_ = (bitField0_ & ~0x00000002);
newOwner_ = getDefaultInstance().getNewOwner();
onChanged();
return this;
}
/**
* required string new_owner = 2;
*/
public Builder setNewOwnerBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000002;
newOwner_ = value;
onChanged();
return this;
}
// @@protoc_insertion_point(builder_scope:TransferChannel)
}
static {
defaultInstance = new TransferChannel(true);
defaultInstance.initFields();
}
// @@protoc_insertion_point(class_scope:TransferChannel)
}
public interface PullChannelInfoOrBuilder
extends com.google.protobuf.MessageOrBuilder {
// required string channel_id = 1;
/**
* required string channel_id = 1;
*/
boolean hasChannelId();
/**
* required string channel_id = 1;
*/
java.lang.String getChannelId();
/**
* required string channel_id = 1;
*/
com.google.protobuf.ByteString
getChannelIdBytes();
// required int64 head = 2;
/**
* required int64 head = 2;
*/
boolean hasHead();
/**
* required int64 head = 2;
*/
long getHead();
}
/**
* Protobuf type {@code PullChannelInfo}
*/
public static final class PullChannelInfo extends
com.google.protobuf.GeneratedMessage
implements PullChannelInfoOrBuilder {
// Use PullChannelInfo.newBuilder() to construct.
private PullChannelInfo(com.google.protobuf.GeneratedMessage.Builder> builder) {
super(builder);
this.unknownFields = builder.getUnknownFields();
}
private PullChannelInfo(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); }
private static final PullChannelInfo defaultInstance;
public static PullChannelInfo getDefaultInstance() {
return defaultInstance;
}
public PullChannelInfo getDefaultInstanceForType() {
return defaultInstance;
}
private final com.google.protobuf.UnknownFieldSet unknownFields;
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private PullChannelInfo(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
initFields();
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;
default: {
if (!parseUnknownField(input, unknownFields,
extensionRegistry, tag)) {
done = true;
}
break;
}
case 10: {
bitField0_ |= 0x00000001;
channelId_ = input.readBytes();
break;
}
case 16: {
bitField0_ |= 0x00000002;
head_ = input.readInt64();
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e.getMessage()).setUnfinishedMessage(this);
} finally {
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return cn.wildfirechat.proto.WFCMessage.internal_static_PullChannelInfo_descriptor;
}
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable() {
return cn.wildfirechat.proto.WFCMessage.internal_static_PullChannelInfo_fieldAccessorTable
.ensureFieldAccessorsInitialized(
cn.wildfirechat.proto.WFCMessage.PullChannelInfo.class, cn.wildfirechat.proto.WFCMessage.PullChannelInfo.Builder.class);
}
public static com.google.protobuf.Parser PARSER =
new com.google.protobuf.AbstractParser() {
public PullChannelInfo parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new PullChannelInfo(input, extensionRegistry);
}
};
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
private int bitField0_;
// required string channel_id = 1;
public static final int CHANNEL_ID_FIELD_NUMBER = 1;
private java.lang.Object channelId_;
/**
* required string channel_id = 1;
*/
public boolean hasChannelId() {
return ((bitField0_ & 0x00000001) == 0x00000001);
}
/**
* required string channel_id = 1;
*/
public java.lang.String getChannelId() {
java.lang.Object ref = channelId_;
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()) {
channelId_ = s;
}
return s;
}
}
/**
* required string channel_id = 1;
*/
public com.google.protobuf.ByteString
getChannelIdBytes() {
java.lang.Object ref = channelId_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
channelId_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
// required int64 head = 2;
public static final int HEAD_FIELD_NUMBER = 2;
private long head_;
/**
* required int64 head = 2;
*/
public boolean hasHead() {
return ((bitField0_ & 0x00000002) == 0x00000002);
}
/**
* required int64 head = 2;
*/
public long getHead() {
return head_;
}
private void initFields() {
channelId_ = "";
head_ = 0L;
}
private byte memoizedIsInitialized = -1;
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized != -1) return isInitialized == 1;
if (!hasChannelId()) {
memoizedIsInitialized = 0;
return false;
}
if (!hasHead()) {
memoizedIsInitialized = 0;
return false;
}
memoizedIsInitialized = 1;
return true;
}
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
getSerializedSize();
if (((bitField0_ & 0x00000001) == 0x00000001)) {
output.writeBytes(1, getChannelIdBytes());
}
if (((bitField0_ & 0x00000002) == 0x00000002)) {
output.writeInt64(2, head_);
}
getUnknownFields().writeTo(output);
}
private int memoizedSerializedSize = -1;
public int getSerializedSize() {
int size = memoizedSerializedSize;
if (size != -1) return size;
size = 0;
if (((bitField0_ & 0x00000001) == 0x00000001)) {
size += com.google.protobuf.CodedOutputStream
.computeBytesSize(1, getChannelIdBytes());
}
if (((bitField0_ & 0x00000002) == 0x00000002)) {
size += com.google.protobuf.CodedOutputStream
.computeInt64Size(2, head_);
}
size += getUnknownFields().getSerializedSize();
memoizedSerializedSize = size;
return size;
}
private static final long serialVersionUID = 0L;
@java.lang.Override
protected java.lang.Object writeReplace()
throws java.io.ObjectStreamException {
return super.writeReplace();
}
public static cn.wildfirechat.proto.WFCMessage.PullChannelInfo parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static cn.wildfirechat.proto.WFCMessage.PullChannelInfo parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static cn.wildfirechat.proto.WFCMessage.PullChannelInfo parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static cn.wildfirechat.proto.WFCMessage.PullChannelInfo parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static cn.wildfirechat.proto.WFCMessage.PullChannelInfo parseFrom(java.io.InputStream input)
throws java.io.IOException {
return PARSER.parseFrom(input);
}
public static cn.wildfirechat.proto.WFCMessage.PullChannelInfo parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return PARSER.parseFrom(input, extensionRegistry);
}
public static cn.wildfirechat.proto.WFCMessage.PullChannelInfo parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return PARSER.parseDelimitedFrom(input);
}
public static cn.wildfirechat.proto.WFCMessage.PullChannelInfo parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return PARSER.parseDelimitedFrom(input, extensionRegistry);
}
public static cn.wildfirechat.proto.WFCMessage.PullChannelInfo parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return PARSER.parseFrom(input);
}
public static cn.wildfirechat.proto.WFCMessage.PullChannelInfo parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return PARSER.parseFrom(input, extensionRegistry);
}
public static Builder newBuilder() { return Builder.create(); }
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder(cn.wildfirechat.proto.WFCMessage.PullChannelInfo prototype) {
return newBuilder().mergeFrom(prototype);
}
public Builder toBuilder() { return newBuilder(this); }
@java.lang.Override
protected Builder newBuilderForType(
com.google.protobuf.GeneratedMessage.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
* Protobuf type {@code PullChannelInfo}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessage.Builder
implements cn.wildfirechat.proto.WFCMessage.PullChannelInfoOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return cn.wildfirechat.proto.WFCMessage.internal_static_PullChannelInfo_descriptor;
}
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable() {
return cn.wildfirechat.proto.WFCMessage.internal_static_PullChannelInfo_fieldAccessorTable
.ensureFieldAccessorsInitialized(
cn.wildfirechat.proto.WFCMessage.PullChannelInfo.class, cn.wildfirechat.proto.WFCMessage.PullChannelInfo.Builder.class);
}
// Construct using cn.wildfirechat.proto.WFCMessage.PullChannelInfo.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessage.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) {
}
}
private static Builder create() {
return new Builder();
}
public Builder clear() {
super.clear();
channelId_ = "";
bitField0_ = (bitField0_ & ~0x00000001);
head_ = 0L;
bitField0_ = (bitField0_ & ~0x00000002);
return this;
}
public Builder clone() {
return create().mergeFrom(buildPartial());
}
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return cn.wildfirechat.proto.WFCMessage.internal_static_PullChannelInfo_descriptor;
}
public cn.wildfirechat.proto.WFCMessage.PullChannelInfo getDefaultInstanceForType() {
return cn.wildfirechat.proto.WFCMessage.PullChannelInfo.getDefaultInstance();
}
public cn.wildfirechat.proto.WFCMessage.PullChannelInfo build() {
cn.wildfirechat.proto.WFCMessage.PullChannelInfo result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
public cn.wildfirechat.proto.WFCMessage.PullChannelInfo buildPartial() {
cn.wildfirechat.proto.WFCMessage.PullChannelInfo result = new cn.wildfirechat.proto.WFCMessage.PullChannelInfo(this);
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
if (((from_bitField0_ & 0x00000001) == 0x00000001)) {
to_bitField0_ |= 0x00000001;
}
result.channelId_ = channelId_;
if (((from_bitField0_ & 0x00000002) == 0x00000002)) {
to_bitField0_ |= 0x00000002;
}
result.head_ = head_;
result.bitField0_ = to_bitField0_;
onBuilt();
return result;
}
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof cn.wildfirechat.proto.WFCMessage.PullChannelInfo) {
return mergeFrom((cn.wildfirechat.proto.WFCMessage.PullChannelInfo)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(cn.wildfirechat.proto.WFCMessage.PullChannelInfo other) {
if (other == cn.wildfirechat.proto.WFCMessage.PullChannelInfo.getDefaultInstance()) return this;
if (other.hasChannelId()) {
bitField0_ |= 0x00000001;
channelId_ = other.channelId_;
onChanged();
}
if (other.hasHead()) {
setHead(other.getHead());
}
this.mergeUnknownFields(other.getUnknownFields());
return this;
}
public final boolean isInitialized() {
if (!hasChannelId()) {
return false;
}
if (!hasHead()) {
return false;
}
return true;
}
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
cn.wildfirechat.proto.WFCMessage.PullChannelInfo parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (cn.wildfirechat.proto.WFCMessage.PullChannelInfo) e.getUnfinishedMessage();
throw e;
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
// required string channel_id = 1;
private java.lang.Object channelId_ = "";
/**
* required string channel_id = 1;
*/
public boolean hasChannelId() {
return ((bitField0_ & 0x00000001) == 0x00000001);
}
/**
* required string channel_id = 1;
*/
public java.lang.String getChannelId() {
java.lang.Object ref = channelId_;
if (!(ref instanceof java.lang.String)) {
java.lang.String s = ((com.google.protobuf.ByteString) ref)
.toStringUtf8();
channelId_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* required string channel_id = 1;
*/
public com.google.protobuf.ByteString
getChannelIdBytes() {
java.lang.Object ref = channelId_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
channelId_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* required string channel_id = 1;
*/
public Builder setChannelId(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000001;
channelId_ = value;
onChanged();
return this;
}
/**
* required string channel_id = 1;
*/
public Builder clearChannelId() {
bitField0_ = (bitField0_ & ~0x00000001);
channelId_ = getDefaultInstance().getChannelId();
onChanged();
return this;
}
/**
* required string channel_id = 1;
*/
public Builder setChannelIdBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000001;
channelId_ = value;
onChanged();
return this;
}
// required int64 head = 2;
private long head_ ;
/**
* required int64 head = 2;
*/
public boolean hasHead() {
return ((bitField0_ & 0x00000002) == 0x00000002);
}
/**
* required int64 head = 2;
*/
public long getHead() {
return head_;
}
/**
* required int64 head = 2;
*/
public Builder setHead(long value) {
bitField0_ |= 0x00000002;
head_ = value;
onChanged();
return this;
}
/**
* required int64 head = 2;
*/
public Builder clearHead() {
bitField0_ = (bitField0_ & ~0x00000002);
head_ = 0L;
onChanged();
return this;
}
// @@protoc_insertion_point(builder_scope:PullChannelInfo)
}
static {
defaultInstance = new PullChannelInfo(true);
defaultInstance.initFields();
}
// @@protoc_insertion_point(class_scope:PullChannelInfo)
}
public interface PullChannelListenerOrBuilder
extends com.google.protobuf.MessageOrBuilder {
// required string channel_id = 1;
/**
* required string channel_id = 1;
*/
boolean hasChannelId();
/**
* required string channel_id = 1;
*/
java.lang.String getChannelId();
/**
* required string channel_id = 1;
*/
com.google.protobuf.ByteString
getChannelIdBytes();
// required int32 offset = 2;
/**
* required int32 offset = 2;
*/
boolean hasOffset();
/**
* required int32 offset = 2;
*/
int getOffset();
// required int32 count = 3;
/**
* required int32 count = 3;
*/
boolean hasCount();
/**
* required int32 count = 3;
*/
int getCount();
}
/**
* Protobuf type {@code PullChannelListener}
*/
public static final class PullChannelListener extends
com.google.protobuf.GeneratedMessage
implements PullChannelListenerOrBuilder {
// Use PullChannelListener.newBuilder() to construct.
private PullChannelListener(com.google.protobuf.GeneratedMessage.Builder> builder) {
super(builder);
this.unknownFields = builder.getUnknownFields();
}
private PullChannelListener(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); }
private static final PullChannelListener defaultInstance;
public static PullChannelListener getDefaultInstance() {
return defaultInstance;
}
public PullChannelListener getDefaultInstanceForType() {
return defaultInstance;
}
private final com.google.protobuf.UnknownFieldSet unknownFields;
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private PullChannelListener(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
initFields();
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;
default: {
if (!parseUnknownField(input, unknownFields,
extensionRegistry, tag)) {
done = true;
}
break;
}
case 10: {
bitField0_ |= 0x00000001;
channelId_ = input.readBytes();
break;
}
case 16: {
bitField0_ |= 0x00000002;
offset_ = input.readInt32();
break;
}
case 24: {
bitField0_ |= 0x00000004;
count_ = input.readInt32();
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e.getMessage()).setUnfinishedMessage(this);
} finally {
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return cn.wildfirechat.proto.WFCMessage.internal_static_PullChannelListener_descriptor;
}
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable() {
return cn.wildfirechat.proto.WFCMessage.internal_static_PullChannelListener_fieldAccessorTable
.ensureFieldAccessorsInitialized(
cn.wildfirechat.proto.WFCMessage.PullChannelListener.class, cn.wildfirechat.proto.WFCMessage.PullChannelListener.Builder.class);
}
public static com.google.protobuf.Parser PARSER =
new com.google.protobuf.AbstractParser() {
public PullChannelListener parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new PullChannelListener(input, extensionRegistry);
}
};
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
private int bitField0_;
// required string channel_id = 1;
public static final int CHANNEL_ID_FIELD_NUMBER = 1;
private java.lang.Object channelId_;
/**
* required string channel_id = 1;
*/
public boolean hasChannelId() {
return ((bitField0_ & 0x00000001) == 0x00000001);
}
/**
* required string channel_id = 1;
*/
public java.lang.String getChannelId() {
java.lang.Object ref = channelId_;
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()) {
channelId_ = s;
}
return s;
}
}
/**
* required string channel_id = 1;
*/
public com.google.protobuf.ByteString
getChannelIdBytes() {
java.lang.Object ref = channelId_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
channelId_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
// required int32 offset = 2;
public static final int OFFSET_FIELD_NUMBER = 2;
private int offset_;
/**
* required int32 offset = 2;
*/
public boolean hasOffset() {
return ((bitField0_ & 0x00000002) == 0x00000002);
}
/**
* required int32 offset = 2;
*/
public int getOffset() {
return offset_;
}
// required int32 count = 3;
public static final int COUNT_FIELD_NUMBER = 3;
private int count_;
/**
* required int32 count = 3;
*/
public boolean hasCount() {
return ((bitField0_ & 0x00000004) == 0x00000004);
}
/**
* required int32 count = 3;
*/
public int getCount() {
return count_;
}
private void initFields() {
channelId_ = "";
offset_ = 0;
count_ = 0;
}
private byte memoizedIsInitialized = -1;
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized != -1) return isInitialized == 1;
if (!hasChannelId()) {
memoizedIsInitialized = 0;
return false;
}
if (!hasOffset()) {
memoizedIsInitialized = 0;
return false;
}
if (!hasCount()) {
memoizedIsInitialized = 0;
return false;
}
memoizedIsInitialized = 1;
return true;
}
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
getSerializedSize();
if (((bitField0_ & 0x00000001) == 0x00000001)) {
output.writeBytes(1, getChannelIdBytes());
}
if (((bitField0_ & 0x00000002) == 0x00000002)) {
output.writeInt32(2, offset_);
}
if (((bitField0_ & 0x00000004) == 0x00000004)) {
output.writeInt32(3, count_);
}
getUnknownFields().writeTo(output);
}
private int memoizedSerializedSize = -1;
public int getSerializedSize() {
int size = memoizedSerializedSize;
if (size != -1) return size;
size = 0;
if (((bitField0_ & 0x00000001) == 0x00000001)) {
size += com.google.protobuf.CodedOutputStream
.computeBytesSize(1, getChannelIdBytes());
}
if (((bitField0_ & 0x00000002) == 0x00000002)) {
size += com.google.protobuf.CodedOutputStream
.computeInt32Size(2, offset_);
}
if (((bitField0_ & 0x00000004) == 0x00000004)) {
size += com.google.protobuf.CodedOutputStream
.computeInt32Size(3, count_);
}
size += getUnknownFields().getSerializedSize();
memoizedSerializedSize = size;
return size;
}
private static final long serialVersionUID = 0L;
@java.lang.Override
protected java.lang.Object writeReplace()
throws java.io.ObjectStreamException {
return super.writeReplace();
}
public static cn.wildfirechat.proto.WFCMessage.PullChannelListener parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static cn.wildfirechat.proto.WFCMessage.PullChannelListener parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static cn.wildfirechat.proto.WFCMessage.PullChannelListener parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static cn.wildfirechat.proto.WFCMessage.PullChannelListener parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static cn.wildfirechat.proto.WFCMessage.PullChannelListener parseFrom(java.io.InputStream input)
throws java.io.IOException {
return PARSER.parseFrom(input);
}
public static cn.wildfirechat.proto.WFCMessage.PullChannelListener parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return PARSER.parseFrom(input, extensionRegistry);
}
public static cn.wildfirechat.proto.WFCMessage.PullChannelListener parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return PARSER.parseDelimitedFrom(input);
}
public static cn.wildfirechat.proto.WFCMessage.PullChannelListener parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return PARSER.parseDelimitedFrom(input, extensionRegistry);
}
public static cn.wildfirechat.proto.WFCMessage.PullChannelListener parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return PARSER.parseFrom(input);
}
public static cn.wildfirechat.proto.WFCMessage.PullChannelListener parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return PARSER.parseFrom(input, extensionRegistry);
}
public static Builder newBuilder() { return Builder.create(); }
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder(cn.wildfirechat.proto.WFCMessage.PullChannelListener prototype) {
return newBuilder().mergeFrom(prototype);
}
public Builder toBuilder() { return newBuilder(this); }
@java.lang.Override
protected Builder newBuilderForType(
com.google.protobuf.GeneratedMessage.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
* Protobuf type {@code PullChannelListener}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessage.Builder
implements cn.wildfirechat.proto.WFCMessage.PullChannelListenerOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return cn.wildfirechat.proto.WFCMessage.internal_static_PullChannelListener_descriptor;
}
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable() {
return cn.wildfirechat.proto.WFCMessage.internal_static_PullChannelListener_fieldAccessorTable
.ensureFieldAccessorsInitialized(
cn.wildfirechat.proto.WFCMessage.PullChannelListener.class, cn.wildfirechat.proto.WFCMessage.PullChannelListener.Builder.class);
}
// Construct using cn.wildfirechat.proto.WFCMessage.PullChannelListener.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessage.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) {
}
}
private static Builder create() {
return new Builder();
}
public Builder clear() {
super.clear();
channelId_ = "";
bitField0_ = (bitField0_ & ~0x00000001);
offset_ = 0;
bitField0_ = (bitField0_ & ~0x00000002);
count_ = 0;
bitField0_ = (bitField0_ & ~0x00000004);
return this;
}
public Builder clone() {
return create().mergeFrom(buildPartial());
}
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return cn.wildfirechat.proto.WFCMessage.internal_static_PullChannelListener_descriptor;
}
public cn.wildfirechat.proto.WFCMessage.PullChannelListener getDefaultInstanceForType() {
return cn.wildfirechat.proto.WFCMessage.PullChannelListener.getDefaultInstance();
}
public cn.wildfirechat.proto.WFCMessage.PullChannelListener build() {
cn.wildfirechat.proto.WFCMessage.PullChannelListener result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
public cn.wildfirechat.proto.WFCMessage.PullChannelListener buildPartial() {
cn.wildfirechat.proto.WFCMessage.PullChannelListener result = new cn.wildfirechat.proto.WFCMessage.PullChannelListener(this);
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
if (((from_bitField0_ & 0x00000001) == 0x00000001)) {
to_bitField0_ |= 0x00000001;
}
result.channelId_ = channelId_;
if (((from_bitField0_ & 0x00000002) == 0x00000002)) {
to_bitField0_ |= 0x00000002;
}
result.offset_ = offset_;
if (((from_bitField0_ & 0x00000004) == 0x00000004)) {
to_bitField0_ |= 0x00000004;
}
result.count_ = count_;
result.bitField0_ = to_bitField0_;
onBuilt();
return result;
}
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof cn.wildfirechat.proto.WFCMessage.PullChannelListener) {
return mergeFrom((cn.wildfirechat.proto.WFCMessage.PullChannelListener)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(cn.wildfirechat.proto.WFCMessage.PullChannelListener other) {
if (other == cn.wildfirechat.proto.WFCMessage.PullChannelListener.getDefaultInstance()) return this;
if (other.hasChannelId()) {
bitField0_ |= 0x00000001;
channelId_ = other.channelId_;
onChanged();
}
if (other.hasOffset()) {
setOffset(other.getOffset());
}
if (other.hasCount()) {
setCount(other.getCount());
}
this.mergeUnknownFields(other.getUnknownFields());
return this;
}
public final boolean isInitialized() {
if (!hasChannelId()) {
return false;
}
if (!hasOffset()) {
return false;
}
if (!hasCount()) {
return false;
}
return true;
}
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
cn.wildfirechat.proto.WFCMessage.PullChannelListener parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (cn.wildfirechat.proto.WFCMessage.PullChannelListener) e.getUnfinishedMessage();
throw e;
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
// required string channel_id = 1;
private java.lang.Object channelId_ = "";
/**
* required string channel_id = 1;
*/
public boolean hasChannelId() {
return ((bitField0_ & 0x00000001) == 0x00000001);
}
/**
* required string channel_id = 1;
*/
public java.lang.String getChannelId() {
java.lang.Object ref = channelId_;
if (!(ref instanceof java.lang.String)) {
java.lang.String s = ((com.google.protobuf.ByteString) ref)
.toStringUtf8();
channelId_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* required string channel_id = 1;
*/
public com.google.protobuf.ByteString
getChannelIdBytes() {
java.lang.Object ref = channelId_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
channelId_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* required string channel_id = 1;
*/
public Builder setChannelId(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000001;
channelId_ = value;
onChanged();
return this;
}
/**
* required string channel_id = 1;
*/
public Builder clearChannelId() {
bitField0_ = (bitField0_ & ~0x00000001);
channelId_ = getDefaultInstance().getChannelId();
onChanged();
return this;
}
/**
* required string channel_id = 1;
*/
public Builder setChannelIdBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000001;
channelId_ = value;
onChanged();
return this;
}
// required int32 offset = 2;
private int offset_ ;
/**
* required int32 offset = 2;
*/
public boolean hasOffset() {
return ((bitField0_ & 0x00000002) == 0x00000002);
}
/**
* required int32 offset = 2;
*/
public int getOffset() {
return offset_;
}
/**
* required int32 offset = 2;
*/
public Builder setOffset(int value) {
bitField0_ |= 0x00000002;
offset_ = value;
onChanged();
return this;
}
/**
* required int32 offset = 2;
*/
public Builder clearOffset() {
bitField0_ = (bitField0_ & ~0x00000002);
offset_ = 0;
onChanged();
return this;
}
// required int32 count = 3;
private int count_ ;
/**
* required int32 count = 3;
*/
public boolean hasCount() {
return ((bitField0_ & 0x00000004) == 0x00000004);
}
/**
* required int32 count = 3;
*/
public int getCount() {
return count_;
}
/**
* required int32 count = 3;
*/
public Builder setCount(int value) {
bitField0_ |= 0x00000004;
count_ = value;
onChanged();
return this;
}
/**
* required int32 count = 3;
*/
public Builder clearCount() {
bitField0_ = (bitField0_ & ~0x00000004);
count_ = 0;
onChanged();
return this;
}
// @@protoc_insertion_point(builder_scope:PullChannelListener)
}
static {
defaultInstance = new PullChannelListener(true);
defaultInstance.initFields();
}
// @@protoc_insertion_point(class_scope:PullChannelListener)
}
public interface PullChannelListenerResultOrBuilder
extends com.google.protobuf.MessageOrBuilder {
// required int32 total_count = 1;
/**
* required int32 total_count = 1;
*/
boolean hasTotalCount();
/**
* required int32 total_count = 1;
*/
int getTotalCount();
// required int32 offset = 2;
/**
* required int32 offset = 2;
*/
boolean hasOffset();
/**
* required int32 offset = 2;
*/
int getOffset();
// repeated string listener = 3;
/**
* repeated string listener = 3;
*/
java.util.List
getListenerList();
/**
* repeated string listener = 3;
*/
int getListenerCount();
/**
* repeated string listener = 3;
*/
java.lang.String getListener(int index);
/**
* repeated string listener = 3;
*/
com.google.protobuf.ByteString
getListenerBytes(int index);
}
/**
* Protobuf type {@code PullChannelListenerResult}
*/
public static final class PullChannelListenerResult extends
com.google.protobuf.GeneratedMessage
implements PullChannelListenerResultOrBuilder {
// Use PullChannelListenerResult.newBuilder() to construct.
private PullChannelListenerResult(com.google.protobuf.GeneratedMessage.Builder> builder) {
super(builder);
this.unknownFields = builder.getUnknownFields();
}
private PullChannelListenerResult(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); }
private static final PullChannelListenerResult defaultInstance;
public static PullChannelListenerResult getDefaultInstance() {
return defaultInstance;
}
public PullChannelListenerResult getDefaultInstanceForType() {
return defaultInstance;
}
private final com.google.protobuf.UnknownFieldSet unknownFields;
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private PullChannelListenerResult(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
initFields();
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;
default: {
if (!parseUnknownField(input, unknownFields,
extensionRegistry, tag)) {
done = true;
}
break;
}
case 8: {
bitField0_ |= 0x00000001;
totalCount_ = input.readInt32();
break;
}
case 16: {
bitField0_ |= 0x00000002;
offset_ = input.readInt32();
break;
}
case 26: {
if (!((mutable_bitField0_ & 0x00000004) == 0x00000004)) {
listener_ = new com.google.protobuf.LazyStringArrayList();
mutable_bitField0_ |= 0x00000004;
}
listener_.add(input.readBytes());
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e.getMessage()).setUnfinishedMessage(this);
} finally {
if (((mutable_bitField0_ & 0x00000004) == 0x00000004)) {
listener_ = new com.google.protobuf.UnmodifiableLazyStringList(listener_);
}
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return cn.wildfirechat.proto.WFCMessage.internal_static_PullChannelListenerResult_descriptor;
}
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable() {
return cn.wildfirechat.proto.WFCMessage.internal_static_PullChannelListenerResult_fieldAccessorTable
.ensureFieldAccessorsInitialized(
cn.wildfirechat.proto.WFCMessage.PullChannelListenerResult.class, cn.wildfirechat.proto.WFCMessage.PullChannelListenerResult.Builder.class);
}
public static com.google.protobuf.Parser PARSER =
new com.google.protobuf.AbstractParser() {
public PullChannelListenerResult parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new PullChannelListenerResult(input, extensionRegistry);
}
};
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
private int bitField0_;
// required int32 total_count = 1;
public static final int TOTAL_COUNT_FIELD_NUMBER = 1;
private int totalCount_;
/**
* required int32 total_count = 1;
*/
public boolean hasTotalCount() {
return ((bitField0_ & 0x00000001) == 0x00000001);
}
/**
* required int32 total_count = 1;
*/
public int getTotalCount() {
return totalCount_;
}
// required int32 offset = 2;
public static final int OFFSET_FIELD_NUMBER = 2;
private int offset_;
/**
* required int32 offset = 2;
*/
public boolean hasOffset() {
return ((bitField0_ & 0x00000002) == 0x00000002);
}
/**
* required int32 offset = 2;
*/
public int getOffset() {
return offset_;
}
// repeated string listener = 3;
public static final int LISTENER_FIELD_NUMBER = 3;
private com.google.protobuf.LazyStringList listener_;
/**
* repeated string listener = 3;
*/
public java.util.List
getListenerList() {
return listener_;
}
/**
* repeated string listener = 3;
*/
public int getListenerCount() {
return listener_.size();
}
/**
* repeated string listener = 3;
*/
public java.lang.String getListener(int index) {
return listener_.get(index);
}
/**
* repeated string listener = 3;
*/
public com.google.protobuf.ByteString
getListenerBytes(int index) {
return listener_.getByteString(index);
}
private void initFields() {
totalCount_ = 0;
offset_ = 0;
listener_ = com.google.protobuf.LazyStringArrayList.EMPTY;
}
private byte memoizedIsInitialized = -1;
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized != -1) return isInitialized == 1;
if (!hasTotalCount()) {
memoizedIsInitialized = 0;
return false;
}
if (!hasOffset()) {
memoizedIsInitialized = 0;
return false;
}
memoizedIsInitialized = 1;
return true;
}
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
getSerializedSize();
if (((bitField0_ & 0x00000001) == 0x00000001)) {
output.writeInt32(1, totalCount_);
}
if (((bitField0_ & 0x00000002) == 0x00000002)) {
output.writeInt32(2, offset_);
}
for (int i = 0; i < listener_.size(); i++) {
output.writeBytes(3, listener_.getByteString(i));
}
getUnknownFields().writeTo(output);
}
private int memoizedSerializedSize = -1;
public int getSerializedSize() {
int size = memoizedSerializedSize;
if (size != -1) return size;
size = 0;
if (((bitField0_ & 0x00000001) == 0x00000001)) {
size += com.google.protobuf.CodedOutputStream
.computeInt32Size(1, totalCount_);
}
if (((bitField0_ & 0x00000002) == 0x00000002)) {
size += com.google.protobuf.CodedOutputStream
.computeInt32Size(2, offset_);
}
{
int dataSize = 0;
for (int i = 0; i < listener_.size(); i++) {
dataSize += com.google.protobuf.CodedOutputStream
.computeBytesSizeNoTag(listener_.getByteString(i));
}
size += dataSize;
size += 1 * getListenerList().size();
}
size += getUnknownFields().getSerializedSize();
memoizedSerializedSize = size;
return size;
}
private static final long serialVersionUID = 0L;
@java.lang.Override
protected java.lang.Object writeReplace()
throws java.io.ObjectStreamException {
return super.writeReplace();
}
public static cn.wildfirechat.proto.WFCMessage.PullChannelListenerResult parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static cn.wildfirechat.proto.WFCMessage.PullChannelListenerResult parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static cn.wildfirechat.proto.WFCMessage.PullChannelListenerResult parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static cn.wildfirechat.proto.WFCMessage.PullChannelListenerResult parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static cn.wildfirechat.proto.WFCMessage.PullChannelListenerResult parseFrom(java.io.InputStream input)
throws java.io.IOException {
return PARSER.parseFrom(input);
}
public static cn.wildfirechat.proto.WFCMessage.PullChannelListenerResult parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return PARSER.parseFrom(input, extensionRegistry);
}
public static cn.wildfirechat.proto.WFCMessage.PullChannelListenerResult parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return PARSER.parseDelimitedFrom(input);
}
public static cn.wildfirechat.proto.WFCMessage.PullChannelListenerResult parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return PARSER.parseDelimitedFrom(input, extensionRegistry);
}
public static cn.wildfirechat.proto.WFCMessage.PullChannelListenerResult parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return PARSER.parseFrom(input);
}
public static cn.wildfirechat.proto.WFCMessage.PullChannelListenerResult parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return PARSER.parseFrom(input, extensionRegistry);
}
public static Builder newBuilder() { return Builder.create(); }
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder(cn.wildfirechat.proto.WFCMessage.PullChannelListenerResult prototype) {
return newBuilder().mergeFrom(prototype);
}
public Builder toBuilder() { return newBuilder(this); }
@java.lang.Override
protected Builder newBuilderForType(
com.google.protobuf.GeneratedMessage.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
* Protobuf type {@code PullChannelListenerResult}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessage.Builder
implements cn.wildfirechat.proto.WFCMessage.PullChannelListenerResultOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return cn.wildfirechat.proto.WFCMessage.internal_static_PullChannelListenerResult_descriptor;
}
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable() {
return cn.wildfirechat.proto.WFCMessage.internal_static_PullChannelListenerResult_fieldAccessorTable
.ensureFieldAccessorsInitialized(
cn.wildfirechat.proto.WFCMessage.PullChannelListenerResult.class, cn.wildfirechat.proto.WFCMessage.PullChannelListenerResult.Builder.class);
}
// Construct using cn.wildfirechat.proto.WFCMessage.PullChannelListenerResult.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessage.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) {
}
}
private static Builder create() {
return new Builder();
}
public Builder clear() {
super.clear();
totalCount_ = 0;
bitField0_ = (bitField0_ & ~0x00000001);
offset_ = 0;
bitField0_ = (bitField0_ & ~0x00000002);
listener_ = com.google.protobuf.LazyStringArrayList.EMPTY;
bitField0_ = (bitField0_ & ~0x00000004);
return this;
}
public Builder clone() {
return create().mergeFrom(buildPartial());
}
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return cn.wildfirechat.proto.WFCMessage.internal_static_PullChannelListenerResult_descriptor;
}
public cn.wildfirechat.proto.WFCMessage.PullChannelListenerResult getDefaultInstanceForType() {
return cn.wildfirechat.proto.WFCMessage.PullChannelListenerResult.getDefaultInstance();
}
public cn.wildfirechat.proto.WFCMessage.PullChannelListenerResult build() {
cn.wildfirechat.proto.WFCMessage.PullChannelListenerResult result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
public cn.wildfirechat.proto.WFCMessage.PullChannelListenerResult buildPartial() {
cn.wildfirechat.proto.WFCMessage.PullChannelListenerResult result = new cn.wildfirechat.proto.WFCMessage.PullChannelListenerResult(this);
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
if (((from_bitField0_ & 0x00000001) == 0x00000001)) {
to_bitField0_ |= 0x00000001;
}
result.totalCount_ = totalCount_;
if (((from_bitField0_ & 0x00000002) == 0x00000002)) {
to_bitField0_ |= 0x00000002;
}
result.offset_ = offset_;
if (((bitField0_ & 0x00000004) == 0x00000004)) {
listener_ = new com.google.protobuf.UnmodifiableLazyStringList(
listener_);
bitField0_ = (bitField0_ & ~0x00000004);
}
result.listener_ = listener_;
result.bitField0_ = to_bitField0_;
onBuilt();
return result;
}
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof cn.wildfirechat.proto.WFCMessage.PullChannelListenerResult) {
return mergeFrom((cn.wildfirechat.proto.WFCMessage.PullChannelListenerResult)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(cn.wildfirechat.proto.WFCMessage.PullChannelListenerResult other) {
if (other == cn.wildfirechat.proto.WFCMessage.PullChannelListenerResult.getDefaultInstance()) return this;
if (other.hasTotalCount()) {
setTotalCount(other.getTotalCount());
}
if (other.hasOffset()) {
setOffset(other.getOffset());
}
if (!other.listener_.isEmpty()) {
if (listener_.isEmpty()) {
listener_ = other.listener_;
bitField0_ = (bitField0_ & ~0x00000004);
} else {
ensureListenerIsMutable();
listener_.addAll(other.listener_);
}
onChanged();
}
this.mergeUnknownFields(other.getUnknownFields());
return this;
}
public final boolean isInitialized() {
if (!hasTotalCount()) {
return false;
}
if (!hasOffset()) {
return false;
}
return true;
}
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
cn.wildfirechat.proto.WFCMessage.PullChannelListenerResult parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (cn.wildfirechat.proto.WFCMessage.PullChannelListenerResult) e.getUnfinishedMessage();
throw e;
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
// required int32 total_count = 1;
private int totalCount_ ;
/**
* required int32 total_count = 1;
*/
public boolean hasTotalCount() {
return ((bitField0_ & 0x00000001) == 0x00000001);
}
/**
* required int32 total_count = 1;
*/
public int getTotalCount() {
return totalCount_;
}
/**
* required int32 total_count = 1;
*/
public Builder setTotalCount(int value) {
bitField0_ |= 0x00000001;
totalCount_ = value;
onChanged();
return this;
}
/**
* required int32 total_count = 1;
*/
public Builder clearTotalCount() {
bitField0_ = (bitField0_ & ~0x00000001);
totalCount_ = 0;
onChanged();
return this;
}
// required int32 offset = 2;
private int offset_ ;
/**
* required int32 offset = 2;
*/
public boolean hasOffset() {
return ((bitField0_ & 0x00000002) == 0x00000002);
}
/**
* required int32 offset = 2;
*/
public int getOffset() {
return offset_;
}
/**
* required int32 offset = 2;
*/
public Builder setOffset(int value) {
bitField0_ |= 0x00000002;
offset_ = value;
onChanged();
return this;
}
/**
* required int32 offset = 2;
*/
public Builder clearOffset() {
bitField0_ = (bitField0_ & ~0x00000002);
offset_ = 0;
onChanged();
return this;
}
// repeated string listener = 3;
private com.google.protobuf.LazyStringList listener_ = com.google.protobuf.LazyStringArrayList.EMPTY;
private void ensureListenerIsMutable() {
if (!((bitField0_ & 0x00000004) == 0x00000004)) {
listener_ = new com.google.protobuf.LazyStringArrayList(listener_);
bitField0_ |= 0x00000004;
}
}
/**
* repeated string listener = 3;
*/
public java.util.List
getListenerList() {
return java.util.Collections.unmodifiableList(listener_);
}
/**
* repeated string listener = 3;
*/
public int getListenerCount() {
return listener_.size();
}
/**
* repeated string listener = 3;
*/
public java.lang.String getListener(int index) {
return listener_.get(index);
}
/**
* repeated string listener = 3;
*/
public com.google.protobuf.ByteString
getListenerBytes(int index) {
return listener_.getByteString(index);
}
/**
* repeated string listener = 3;
*/
public Builder setListener(
int index, java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
ensureListenerIsMutable();
listener_.set(index, value);
onChanged();
return this;
}
/**
* repeated string listener = 3;
*/
public Builder addListener(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
ensureListenerIsMutable();
listener_.add(value);
onChanged();
return this;
}
/**
* repeated string listener = 3;
*/
public Builder addAllListener(
java.lang.Iterable values) {
ensureListenerIsMutable();
super.addAll(values, listener_);
onChanged();
return this;
}
/**
* repeated string listener = 3;
*/
public Builder clearListener() {
listener_ = com.google.protobuf.LazyStringArrayList.EMPTY;
bitField0_ = (bitField0_ & ~0x00000004);
onChanged();
return this;
}
/**
* repeated string listener = 3;
*/
public Builder addListenerBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
ensureListenerIsMutable();
listener_.add(value);
onChanged();
return this;
}
// @@protoc_insertion_point(builder_scope:PullChannelListenerResult)
}
static {
defaultInstance = new PullChannelListenerResult(true);
defaultInstance.initFields();
}
// @@protoc_insertion_point(class_scope:PullChannelListenerResult)
}
public interface ListenChannelOrBuilder
extends com.google.protobuf.MessageOrBuilder {
// required string channel_id = 1;
/**
* required string channel_id = 1;
*/
boolean hasChannelId();
/**
* required string channel_id = 1;
*/
java.lang.String getChannelId();
/**
* required string channel_id = 1;
*/
com.google.protobuf.ByteString
getChannelIdBytes();
// required int32 listen = 2;
/**
* required int32 listen = 2;
*/
boolean hasListen();
/**
* required int32 listen = 2;
*/
int getListen();
}
/**
* Protobuf type {@code ListenChannel}
*/
public static final class ListenChannel extends
com.google.protobuf.GeneratedMessage
implements ListenChannelOrBuilder {
// Use ListenChannel.newBuilder() to construct.
private ListenChannel(com.google.protobuf.GeneratedMessage.Builder> builder) {
super(builder);
this.unknownFields = builder.getUnknownFields();
}
private ListenChannel(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); }
private static final ListenChannel defaultInstance;
public static ListenChannel getDefaultInstance() {
return defaultInstance;
}
public ListenChannel getDefaultInstanceForType() {
return defaultInstance;
}
private final com.google.protobuf.UnknownFieldSet unknownFields;
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private ListenChannel(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
initFields();
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;
default: {
if (!parseUnknownField(input, unknownFields,
extensionRegistry, tag)) {
done = true;
}
break;
}
case 10: {
bitField0_ |= 0x00000001;
channelId_ = input.readBytes();
break;
}
case 16: {
bitField0_ |= 0x00000002;
listen_ = input.readInt32();
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e.getMessage()).setUnfinishedMessage(this);
} finally {
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return cn.wildfirechat.proto.WFCMessage.internal_static_ListenChannel_descriptor;
}
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable() {
return cn.wildfirechat.proto.WFCMessage.internal_static_ListenChannel_fieldAccessorTable
.ensureFieldAccessorsInitialized(
cn.wildfirechat.proto.WFCMessage.ListenChannel.class, cn.wildfirechat.proto.WFCMessage.ListenChannel.Builder.class);
}
public static com.google.protobuf.Parser PARSER =
new com.google.protobuf.AbstractParser() {
public ListenChannel parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new ListenChannel(input, extensionRegistry);
}
};
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
private int bitField0_;
// required string channel_id = 1;
public static final int CHANNEL_ID_FIELD_NUMBER = 1;
private java.lang.Object channelId_;
/**
* required string channel_id = 1;
*/
public boolean hasChannelId() {
return ((bitField0_ & 0x00000001) == 0x00000001);
}
/**
* required string channel_id = 1;
*/
public java.lang.String getChannelId() {
java.lang.Object ref = channelId_;
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()) {
channelId_ = s;
}
return s;
}
}
/**
* required string channel_id = 1;
*/
public com.google.protobuf.ByteString
getChannelIdBytes() {
java.lang.Object ref = channelId_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
channelId_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
// required int32 listen = 2;
public static final int LISTEN_FIELD_NUMBER = 2;
private int listen_;
/**
* required int32 listen = 2;
*/
public boolean hasListen() {
return ((bitField0_ & 0x00000002) == 0x00000002);
}
/**
* required int32 listen = 2;
*/
public int getListen() {
return listen_;
}
private void initFields() {
channelId_ = "";
listen_ = 0;
}
private byte memoizedIsInitialized = -1;
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized != -1) return isInitialized == 1;
if (!hasChannelId()) {
memoizedIsInitialized = 0;
return false;
}
if (!hasListen()) {
memoizedIsInitialized = 0;
return false;
}
memoizedIsInitialized = 1;
return true;
}
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
getSerializedSize();
if (((bitField0_ & 0x00000001) == 0x00000001)) {
output.writeBytes(1, getChannelIdBytes());
}
if (((bitField0_ & 0x00000002) == 0x00000002)) {
output.writeInt32(2, listen_);
}
getUnknownFields().writeTo(output);
}
private int memoizedSerializedSize = -1;
public int getSerializedSize() {
int size = memoizedSerializedSize;
if (size != -1) return size;
size = 0;
if (((bitField0_ & 0x00000001) == 0x00000001)) {
size += com.google.protobuf.CodedOutputStream
.computeBytesSize(1, getChannelIdBytes());
}
if (((bitField0_ & 0x00000002) == 0x00000002)) {
size += com.google.protobuf.CodedOutputStream
.computeInt32Size(2, listen_);
}
size += getUnknownFields().getSerializedSize();
memoizedSerializedSize = size;
return size;
}
private static final long serialVersionUID = 0L;
@java.lang.Override
protected java.lang.Object writeReplace()
throws java.io.ObjectStreamException {
return super.writeReplace();
}
public static cn.wildfirechat.proto.WFCMessage.ListenChannel parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static cn.wildfirechat.proto.WFCMessage.ListenChannel parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static cn.wildfirechat.proto.WFCMessage.ListenChannel parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static cn.wildfirechat.proto.WFCMessage.ListenChannel parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static cn.wildfirechat.proto.WFCMessage.ListenChannel parseFrom(java.io.InputStream input)
throws java.io.IOException {
return PARSER.parseFrom(input);
}
public static cn.wildfirechat.proto.WFCMessage.ListenChannel parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return PARSER.parseFrom(input, extensionRegistry);
}
public static cn.wildfirechat.proto.WFCMessage.ListenChannel parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return PARSER.parseDelimitedFrom(input);
}
public static cn.wildfirechat.proto.WFCMessage.ListenChannel parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return PARSER.parseDelimitedFrom(input, extensionRegistry);
}
public static cn.wildfirechat.proto.WFCMessage.ListenChannel parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return PARSER.parseFrom(input);
}
public static cn.wildfirechat.proto.WFCMessage.ListenChannel parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return PARSER.parseFrom(input, extensionRegistry);
}
public static Builder newBuilder() { return Builder.create(); }
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder(cn.wildfirechat.proto.WFCMessage.ListenChannel prototype) {
return newBuilder().mergeFrom(prototype);
}
public Builder toBuilder() { return newBuilder(this); }
@java.lang.Override
protected Builder newBuilderForType(
com.google.protobuf.GeneratedMessage.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
* Protobuf type {@code ListenChannel}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessage.Builder
implements cn.wildfirechat.proto.WFCMessage.ListenChannelOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return cn.wildfirechat.proto.WFCMessage.internal_static_ListenChannel_descriptor;
}
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable() {
return cn.wildfirechat.proto.WFCMessage.internal_static_ListenChannel_fieldAccessorTable
.ensureFieldAccessorsInitialized(
cn.wildfirechat.proto.WFCMessage.ListenChannel.class, cn.wildfirechat.proto.WFCMessage.ListenChannel.Builder.class);
}
// Construct using cn.wildfirechat.proto.WFCMessage.ListenChannel.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessage.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) {
}
}
private static Builder create() {
return new Builder();
}
public Builder clear() {
super.clear();
channelId_ = "";
bitField0_ = (bitField0_ & ~0x00000001);
listen_ = 0;
bitField0_ = (bitField0_ & ~0x00000002);
return this;
}
public Builder clone() {
return create().mergeFrom(buildPartial());
}
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return cn.wildfirechat.proto.WFCMessage.internal_static_ListenChannel_descriptor;
}
public cn.wildfirechat.proto.WFCMessage.ListenChannel getDefaultInstanceForType() {
return cn.wildfirechat.proto.WFCMessage.ListenChannel.getDefaultInstance();
}
public cn.wildfirechat.proto.WFCMessage.ListenChannel build() {
cn.wildfirechat.proto.WFCMessage.ListenChannel result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
public cn.wildfirechat.proto.WFCMessage.ListenChannel buildPartial() {
cn.wildfirechat.proto.WFCMessage.ListenChannel result = new cn.wildfirechat.proto.WFCMessage.ListenChannel(this);
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
if (((from_bitField0_ & 0x00000001) == 0x00000001)) {
to_bitField0_ |= 0x00000001;
}
result.channelId_ = channelId_;
if (((from_bitField0_ & 0x00000002) == 0x00000002)) {
to_bitField0_ |= 0x00000002;
}
result.listen_ = listen_;
result.bitField0_ = to_bitField0_;
onBuilt();
return result;
}
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof cn.wildfirechat.proto.WFCMessage.ListenChannel) {
return mergeFrom((cn.wildfirechat.proto.WFCMessage.ListenChannel)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(cn.wildfirechat.proto.WFCMessage.ListenChannel other) {
if (other == cn.wildfirechat.proto.WFCMessage.ListenChannel.getDefaultInstance()) return this;
if (other.hasChannelId()) {
bitField0_ |= 0x00000001;
channelId_ = other.channelId_;
onChanged();
}
if (other.hasListen()) {
setListen(other.getListen());
}
this.mergeUnknownFields(other.getUnknownFields());
return this;
}
public final boolean isInitialized() {
if (!hasChannelId()) {
return false;
}
if (!hasListen()) {
return false;
}
return true;
}
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
cn.wildfirechat.proto.WFCMessage.ListenChannel parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (cn.wildfirechat.proto.WFCMessage.ListenChannel) e.getUnfinishedMessage();
throw e;
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
// required string channel_id = 1;
private java.lang.Object channelId_ = "";
/**
* required string channel_id = 1;
*/
public boolean hasChannelId() {
return ((bitField0_ & 0x00000001) == 0x00000001);
}
/**
* required string channel_id = 1;
*/
public java.lang.String getChannelId() {
java.lang.Object ref = channelId_;
if (!(ref instanceof java.lang.String)) {
java.lang.String s = ((com.google.protobuf.ByteString) ref)
.toStringUtf8();
channelId_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* required string channel_id = 1;
*/
public com.google.protobuf.ByteString
getChannelIdBytes() {
java.lang.Object ref = channelId_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
channelId_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* required string channel_id = 1;
*/
public Builder setChannelId(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000001;
channelId_ = value;
onChanged();
return this;
}
/**
* required string channel_id = 1;
*/
public Builder clearChannelId() {
bitField0_ = (bitField0_ & ~0x00000001);
channelId_ = getDefaultInstance().getChannelId();
onChanged();
return this;
}
/**
* required string channel_id = 1;
*/
public Builder setChannelIdBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000001;
channelId_ = value;
onChanged();
return this;
}
// required int32 listen = 2;
private int listen_ ;
/**
* required int32 listen = 2;
*/
public boolean hasListen() {
return ((bitField0_ & 0x00000002) == 0x00000002);
}
/**
* required int32 listen = 2;
*/
public int getListen() {
return listen_;
}
/**
* required int32 listen = 2;
*/
public Builder setListen(int value) {
bitField0_ |= 0x00000002;
listen_ = value;
onChanged();
return this;
}
/**
* required int32 listen = 2;
*/
public Builder clearListen() {
bitField0_ = (bitField0_ & ~0x00000002);
listen_ = 0;
onChanged();
return this;
}
// @@protoc_insertion_point(builder_scope:ListenChannel)
}
static {
defaultInstance = new ListenChannel(true);
defaultInstance.initFields();
}
// @@protoc_insertion_point(class_scope:ListenChannel)
}
public interface SearchChannelResultOrBuilder
extends com.google.protobuf.MessageOrBuilder {
// repeated .ChannelInfo channel = 1;
/**
* repeated .ChannelInfo channel = 1;
*/
java.util.List
getChannelList();
/**
* repeated .ChannelInfo channel = 1;
*/
cn.wildfirechat.proto.WFCMessage.ChannelInfo getChannel(int index);
/**
* repeated .ChannelInfo channel = 1;
*/
int getChannelCount();
/**
* repeated .ChannelInfo channel = 1;
*/
java.util.List extends cn.wildfirechat.proto.WFCMessage.ChannelInfoOrBuilder>
getChannelOrBuilderList();
/**
* repeated .ChannelInfo channel = 1;
*/
cn.wildfirechat.proto.WFCMessage.ChannelInfoOrBuilder getChannelOrBuilder(
int index);
// required string keyword = 2;
/**
* required string keyword = 2;
*/
boolean hasKeyword();
/**
* required string keyword = 2;
*/
java.lang.String getKeyword();
/**
* required string keyword = 2;
*/
com.google.protobuf.ByteString
getKeywordBytes();
}
/**
* Protobuf type {@code SearchChannelResult}
*/
public static final class SearchChannelResult extends
com.google.protobuf.GeneratedMessage
implements SearchChannelResultOrBuilder {
// Use SearchChannelResult.newBuilder() to construct.
private SearchChannelResult(com.google.protobuf.GeneratedMessage.Builder> builder) {
super(builder);
this.unknownFields = builder.getUnknownFields();
}
private SearchChannelResult(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); }
private static final SearchChannelResult defaultInstance;
public static SearchChannelResult getDefaultInstance() {
return defaultInstance;
}
public SearchChannelResult getDefaultInstanceForType() {
return defaultInstance;
}
private final com.google.protobuf.UnknownFieldSet unknownFields;
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private SearchChannelResult(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
initFields();
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;
default: {
if (!parseUnknownField(input, unknownFields,
extensionRegistry, tag)) {
done = true;
}
break;
}
case 10: {
if (!((mutable_bitField0_ & 0x00000001) == 0x00000001)) {
channel_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00000001;
}
channel_.add(input.readMessage(cn.wildfirechat.proto.WFCMessage.ChannelInfo.PARSER, extensionRegistry));
break;
}
case 18: {
bitField0_ |= 0x00000001;
keyword_ = input.readBytes();
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e.getMessage()).setUnfinishedMessage(this);
} finally {
if (((mutable_bitField0_ & 0x00000001) == 0x00000001)) {
channel_ = java.util.Collections.unmodifiableList(channel_);
}
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return cn.wildfirechat.proto.WFCMessage.internal_static_SearchChannelResult_descriptor;
}
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable() {
return cn.wildfirechat.proto.WFCMessage.internal_static_SearchChannelResult_fieldAccessorTable
.ensureFieldAccessorsInitialized(
cn.wildfirechat.proto.WFCMessage.SearchChannelResult.class, cn.wildfirechat.proto.WFCMessage.SearchChannelResult.Builder.class);
}
public static com.google.protobuf.Parser PARSER =
new com.google.protobuf.AbstractParser() {
public SearchChannelResult parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new SearchChannelResult(input, extensionRegistry);
}
};
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
private int bitField0_;
// repeated .ChannelInfo channel = 1;
public static final int CHANNEL_FIELD_NUMBER = 1;
private java.util.List channel_;
/**
* repeated .ChannelInfo channel = 1;
*/
public java.util.List getChannelList() {
return channel_;
}
/**
* repeated .ChannelInfo channel = 1;
*/
public java.util.List extends cn.wildfirechat.proto.WFCMessage.ChannelInfoOrBuilder>
getChannelOrBuilderList() {
return channel_;
}
/**
* repeated .ChannelInfo channel = 1;
*/
public int getChannelCount() {
return channel_.size();
}
/**
* repeated .ChannelInfo channel = 1;
*/
public cn.wildfirechat.proto.WFCMessage.ChannelInfo getChannel(int index) {
return channel_.get(index);
}
/**
* repeated .ChannelInfo channel = 1;
*/
public cn.wildfirechat.proto.WFCMessage.ChannelInfoOrBuilder getChannelOrBuilder(
int index) {
return channel_.get(index);
}
// required string keyword = 2;
public static final int KEYWORD_FIELD_NUMBER = 2;
private java.lang.Object keyword_;
/**
* required string keyword = 2;
*/
public boolean hasKeyword() {
return ((bitField0_ & 0x00000001) == 0x00000001);
}
/**
* required string keyword = 2;
*/
public java.lang.String getKeyword() {
java.lang.Object ref = keyword_;
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()) {
keyword_ = s;
}
return s;
}
}
/**
* required string keyword = 2;
*/
public com.google.protobuf.ByteString
getKeywordBytes() {
java.lang.Object ref = keyword_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
keyword_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
private void initFields() {
channel_ = java.util.Collections.emptyList();
keyword_ = "";
}
private byte memoizedIsInitialized = -1;
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized != -1) return isInitialized == 1;
if (!hasKeyword()) {
memoizedIsInitialized = 0;
return false;
}
for (int i = 0; i < getChannelCount(); i++) {
if (!getChannel(i).isInitialized()) {
memoizedIsInitialized = 0;
return false;
}
}
memoizedIsInitialized = 1;
return true;
}
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
getSerializedSize();
for (int i = 0; i < channel_.size(); i++) {
output.writeMessage(1, channel_.get(i));
}
if (((bitField0_ & 0x00000001) == 0x00000001)) {
output.writeBytes(2, getKeywordBytes());
}
getUnknownFields().writeTo(output);
}
private int memoizedSerializedSize = -1;
public int getSerializedSize() {
int size = memoizedSerializedSize;
if (size != -1) return size;
size = 0;
for (int i = 0; i < channel_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(1, channel_.get(i));
}
if (((bitField0_ & 0x00000001) == 0x00000001)) {
size += com.google.protobuf.CodedOutputStream
.computeBytesSize(2, getKeywordBytes());
}
size += getUnknownFields().getSerializedSize();
memoizedSerializedSize = size;
return size;
}
private static final long serialVersionUID = 0L;
@java.lang.Override
protected java.lang.Object writeReplace()
throws java.io.ObjectStreamException {
return super.writeReplace();
}
public static cn.wildfirechat.proto.WFCMessage.SearchChannelResult parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static cn.wildfirechat.proto.WFCMessage.SearchChannelResult parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static cn.wildfirechat.proto.WFCMessage.SearchChannelResult parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static cn.wildfirechat.proto.WFCMessage.SearchChannelResult parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static cn.wildfirechat.proto.WFCMessage.SearchChannelResult parseFrom(java.io.InputStream input)
throws java.io.IOException {
return PARSER.parseFrom(input);
}
public static cn.wildfirechat.proto.WFCMessage.SearchChannelResult parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return PARSER.parseFrom(input, extensionRegistry);
}
public static cn.wildfirechat.proto.WFCMessage.SearchChannelResult parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return PARSER.parseDelimitedFrom(input);
}
public static cn.wildfirechat.proto.WFCMessage.SearchChannelResult parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return PARSER.parseDelimitedFrom(input, extensionRegistry);
}
public static cn.wildfirechat.proto.WFCMessage.SearchChannelResult parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return PARSER.parseFrom(input);
}
public static cn.wildfirechat.proto.WFCMessage.SearchChannelResult parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return PARSER.parseFrom(input, extensionRegistry);
}
public static Builder newBuilder() { return Builder.create(); }
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder(cn.wildfirechat.proto.WFCMessage.SearchChannelResult prototype) {
return newBuilder().mergeFrom(prototype);
}
public Builder toBuilder() { return newBuilder(this); }
@java.lang.Override
protected Builder newBuilderForType(
com.google.protobuf.GeneratedMessage.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
* Protobuf type {@code SearchChannelResult}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessage.Builder
implements cn.wildfirechat.proto.WFCMessage.SearchChannelResultOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return cn.wildfirechat.proto.WFCMessage.internal_static_SearchChannelResult_descriptor;
}
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable() {
return cn.wildfirechat.proto.WFCMessage.internal_static_SearchChannelResult_fieldAccessorTable
.ensureFieldAccessorsInitialized(
cn.wildfirechat.proto.WFCMessage.SearchChannelResult.class, cn.wildfirechat.proto.WFCMessage.SearchChannelResult.Builder.class);
}
// Construct using cn.wildfirechat.proto.WFCMessage.SearchChannelResult.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessage.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) {
getChannelFieldBuilder();
}
}
private static Builder create() {
return new Builder();
}
public Builder clear() {
super.clear();
if (channelBuilder_ == null) {
channel_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000001);
} else {
channelBuilder_.clear();
}
keyword_ = "";
bitField0_ = (bitField0_ & ~0x00000002);
return this;
}
public Builder clone() {
return create().mergeFrom(buildPartial());
}
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return cn.wildfirechat.proto.WFCMessage.internal_static_SearchChannelResult_descriptor;
}
public cn.wildfirechat.proto.WFCMessage.SearchChannelResult getDefaultInstanceForType() {
return cn.wildfirechat.proto.WFCMessage.SearchChannelResult.getDefaultInstance();
}
public cn.wildfirechat.proto.WFCMessage.SearchChannelResult build() {
cn.wildfirechat.proto.WFCMessage.SearchChannelResult result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
public cn.wildfirechat.proto.WFCMessage.SearchChannelResult buildPartial() {
cn.wildfirechat.proto.WFCMessage.SearchChannelResult result = new cn.wildfirechat.proto.WFCMessage.SearchChannelResult(this);
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
if (channelBuilder_ == null) {
if (((bitField0_ & 0x00000001) == 0x00000001)) {
channel_ = java.util.Collections.unmodifiableList(channel_);
bitField0_ = (bitField0_ & ~0x00000001);
}
result.channel_ = channel_;
} else {
result.channel_ = channelBuilder_.build();
}
if (((from_bitField0_ & 0x00000002) == 0x00000002)) {
to_bitField0_ |= 0x00000001;
}
result.keyword_ = keyword_;
result.bitField0_ = to_bitField0_;
onBuilt();
return result;
}
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof cn.wildfirechat.proto.WFCMessage.SearchChannelResult) {
return mergeFrom((cn.wildfirechat.proto.WFCMessage.SearchChannelResult)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(cn.wildfirechat.proto.WFCMessage.SearchChannelResult other) {
if (other == cn.wildfirechat.proto.WFCMessage.SearchChannelResult.getDefaultInstance()) return this;
if (channelBuilder_ == null) {
if (!other.channel_.isEmpty()) {
if (channel_.isEmpty()) {
channel_ = other.channel_;
bitField0_ = (bitField0_ & ~0x00000001);
} else {
ensureChannelIsMutable();
channel_.addAll(other.channel_);
}
onChanged();
}
} else {
if (!other.channel_.isEmpty()) {
if (channelBuilder_.isEmpty()) {
channelBuilder_.dispose();
channelBuilder_ = null;
channel_ = other.channel_;
bitField0_ = (bitField0_ & ~0x00000001);
channelBuilder_ =
com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ?
getChannelFieldBuilder() : null;
} else {
channelBuilder_.addAllMessages(other.channel_);
}
}
}
if (other.hasKeyword()) {
bitField0_ |= 0x00000002;
keyword_ = other.keyword_;
onChanged();
}
this.mergeUnknownFields(other.getUnknownFields());
return this;
}
public final boolean isInitialized() {
if (!hasKeyword()) {
return false;
}
for (int i = 0; i < getChannelCount(); i++) {
if (!getChannel(i).isInitialized()) {
return false;
}
}
return true;
}
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
cn.wildfirechat.proto.WFCMessage.SearchChannelResult parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (cn.wildfirechat.proto.WFCMessage.SearchChannelResult) e.getUnfinishedMessage();
throw e;
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
// repeated .ChannelInfo channel = 1;
private java.util.List channel_ =
java.util.Collections.emptyList();
private void ensureChannelIsMutable() {
if (!((bitField0_ & 0x00000001) == 0x00000001)) {
channel_ = new java.util.ArrayList(channel_);
bitField0_ |= 0x00000001;
}
}
private com.google.protobuf.RepeatedFieldBuilder<
cn.wildfirechat.proto.WFCMessage.ChannelInfo, cn.wildfirechat.proto.WFCMessage.ChannelInfo.Builder, cn.wildfirechat.proto.WFCMessage.ChannelInfoOrBuilder> channelBuilder_;
/**
* repeated .ChannelInfo channel = 1;
*/
public java.util.List getChannelList() {
if (channelBuilder_ == null) {
return java.util.Collections.unmodifiableList(channel_);
} else {
return channelBuilder_.getMessageList();
}
}
/**
* repeated .ChannelInfo channel = 1;
*/
public int getChannelCount() {
if (channelBuilder_ == null) {
return channel_.size();
} else {
return channelBuilder_.getCount();
}
}
/**
* repeated .ChannelInfo channel = 1;
*/
public cn.wildfirechat.proto.WFCMessage.ChannelInfo getChannel(int index) {
if (channelBuilder_ == null) {
return channel_.get(index);
} else {
return channelBuilder_.getMessage(index);
}
}
/**
* repeated .ChannelInfo channel = 1;
*/
public Builder setChannel(
int index, cn.wildfirechat.proto.WFCMessage.ChannelInfo value) {
if (channelBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureChannelIsMutable();
channel_.set(index, value);
onChanged();
} else {
channelBuilder_.setMessage(index, value);
}
return this;
}
/**
* repeated .ChannelInfo channel = 1;
*/
public Builder setChannel(
int index, cn.wildfirechat.proto.WFCMessage.ChannelInfo.Builder builderForValue) {
if (channelBuilder_ == null) {
ensureChannelIsMutable();
channel_.set(index, builderForValue.build());
onChanged();
} else {
channelBuilder_.setMessage(index, builderForValue.build());
}
return this;
}
/**
* repeated .ChannelInfo channel = 1;
*/
public Builder addChannel(cn.wildfirechat.proto.WFCMessage.ChannelInfo value) {
if (channelBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureChannelIsMutable();
channel_.add(value);
onChanged();
} else {
channelBuilder_.addMessage(value);
}
return this;
}
/**
* repeated .ChannelInfo channel = 1;
*/
public Builder addChannel(
int index, cn.wildfirechat.proto.WFCMessage.ChannelInfo value) {
if (channelBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureChannelIsMutable();
channel_.add(index, value);
onChanged();
} else {
channelBuilder_.addMessage(index, value);
}
return this;
}
/**
* repeated .ChannelInfo channel = 1;
*/
public Builder addChannel(
cn.wildfirechat.proto.WFCMessage.ChannelInfo.Builder builderForValue) {
if (channelBuilder_ == null) {
ensureChannelIsMutable();
channel_.add(builderForValue.build());
onChanged();
} else {
channelBuilder_.addMessage(builderForValue.build());
}
return this;
}
/**
* repeated .ChannelInfo channel = 1;
*/
public Builder addChannel(
int index, cn.wildfirechat.proto.WFCMessage.ChannelInfo.Builder builderForValue) {
if (channelBuilder_ == null) {
ensureChannelIsMutable();
channel_.add(index, builderForValue.build());
onChanged();
} else {
channelBuilder_.addMessage(index, builderForValue.build());
}
return this;
}
/**
* repeated .ChannelInfo channel = 1;
*/
public Builder addAllChannel(
java.lang.Iterable extends cn.wildfirechat.proto.WFCMessage.ChannelInfo> values) {
if (channelBuilder_ == null) {
ensureChannelIsMutable();
super.addAll(values, channel_);
onChanged();
} else {
channelBuilder_.addAllMessages(values);
}
return this;
}
/**
* repeated .ChannelInfo channel = 1;
*/
public Builder clearChannel() {
if (channelBuilder_ == null) {
channel_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000001);
onChanged();
} else {
channelBuilder_.clear();
}
return this;
}
/**
* repeated .ChannelInfo channel = 1;
*/
public Builder removeChannel(int index) {
if (channelBuilder_ == null) {
ensureChannelIsMutable();
channel_.remove(index);
onChanged();
} else {
channelBuilder_.remove(index);
}
return this;
}
/**
* repeated .ChannelInfo channel = 1;
*/
public cn.wildfirechat.proto.WFCMessage.ChannelInfo.Builder getChannelBuilder(
int index) {
return getChannelFieldBuilder().getBuilder(index);
}
/**
* repeated .ChannelInfo channel = 1;
*/
public cn.wildfirechat.proto.WFCMessage.ChannelInfoOrBuilder getChannelOrBuilder(
int index) {
if (channelBuilder_ == null) {
return channel_.get(index); } else {
return channelBuilder_.getMessageOrBuilder(index);
}
}
/**
* repeated .ChannelInfo channel = 1;
*/
public java.util.List extends cn.wildfirechat.proto.WFCMessage.ChannelInfoOrBuilder>
getChannelOrBuilderList() {
if (channelBuilder_ != null) {
return channelBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(channel_);
}
}
/**
* repeated .ChannelInfo channel = 1;
*/
public cn.wildfirechat.proto.WFCMessage.ChannelInfo.Builder addChannelBuilder() {
return getChannelFieldBuilder().addBuilder(
cn.wildfirechat.proto.WFCMessage.ChannelInfo.getDefaultInstance());
}
/**
* repeated .ChannelInfo channel = 1;
*/
public cn.wildfirechat.proto.WFCMessage.ChannelInfo.Builder addChannelBuilder(
int index) {
return getChannelFieldBuilder().addBuilder(
index, cn.wildfirechat.proto.WFCMessage.ChannelInfo.getDefaultInstance());
}
/**
* repeated .ChannelInfo channel = 1;
*/
public java.util.List
getChannelBuilderList() {
return getChannelFieldBuilder().getBuilderList();
}
private com.google.protobuf.RepeatedFieldBuilder<
cn.wildfirechat.proto.WFCMessage.ChannelInfo, cn.wildfirechat.proto.WFCMessage.ChannelInfo.Builder, cn.wildfirechat.proto.WFCMessage.ChannelInfoOrBuilder>
getChannelFieldBuilder() {
if (channelBuilder_ == null) {
channelBuilder_ = new com.google.protobuf.RepeatedFieldBuilder<
cn.wildfirechat.proto.WFCMessage.ChannelInfo, cn.wildfirechat.proto.WFCMessage.ChannelInfo.Builder, cn.wildfirechat.proto.WFCMessage.ChannelInfoOrBuilder>(
channel_,
((bitField0_ & 0x00000001) == 0x00000001),
getParentForChildren(),
isClean());
channel_ = null;
}
return channelBuilder_;
}
// required string keyword = 2;
private java.lang.Object keyword_ = "";
/**
* required string keyword = 2;
*/
public boolean hasKeyword() {
return ((bitField0_ & 0x00000002) == 0x00000002);
}
/**
* required string keyword = 2;
*/
public java.lang.String getKeyword() {
java.lang.Object ref = keyword_;
if (!(ref instanceof java.lang.String)) {
java.lang.String s = ((com.google.protobuf.ByteString) ref)
.toStringUtf8();
keyword_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* required string keyword = 2;
*/
public com.google.protobuf.ByteString
getKeywordBytes() {
java.lang.Object ref = keyword_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
keyword_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* required string keyword = 2;
*/
public Builder setKeyword(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000002;
keyword_ = value;
onChanged();
return this;
}
/**
* required string keyword = 2;
*/
public Builder clearKeyword() {
bitField0_ = (bitField0_ & ~0x00000002);
keyword_ = getDefaultInstance().getKeyword();
onChanged();
return this;
}
/**
* required string keyword = 2;
*/
public Builder setKeywordBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000002;
keyword_ = value;
onChanged();
return this;
}
// @@protoc_insertion_point(builder_scope:SearchChannelResult)
}
static {
defaultInstance = new SearchChannelResult(true);
defaultInstance.initFields();
}
// @@protoc_insertion_point(class_scope:SearchChannelResult)
}
public interface MessageContentOrBuilder
extends com.google.protobuf.MessageOrBuilder {
// required int32 type = 1;
/**
* required int32 type = 1;
*/
boolean hasType();
/**
* required int32 type = 1;
*/
int getType();
// optional string searchable_content = 2;
/**
* optional string searchable_content = 2;
*/
boolean hasSearchableContent();
/**
* optional string searchable_content = 2;
*/
java.lang.String getSearchableContent();
/**
* optional string searchable_content = 2;
*/
com.google.protobuf.ByteString
getSearchableContentBytes();
// optional string push_content = 3;
/**
* optional string push_content = 3;
*/
boolean hasPushContent();
/**
* optional string push_content = 3;
*/
java.lang.String getPushContent();
/**
* optional string push_content = 3;
*/
com.google.protobuf.ByteString
getPushContentBytes();
// optional string content = 4;
/**
* optional string content = 4;
*/
boolean hasContent();
/**
* optional string content = 4;
*/
java.lang.String getContent();
/**
* optional string content = 4;
*/
com.google.protobuf.ByteString
getContentBytes();
// optional bytes data = 5;
/**
* optional bytes data = 5;
*/
boolean hasData();
/**
* optional bytes data = 5;
*/
com.google.protobuf.ByteString getData();
// optional int32 mediaType = 6;
/**
* optional int32 mediaType = 6;
*/
boolean hasMediaType();
/**
* optional int32 mediaType = 6;
*/
int getMediaType();
// optional string remoteMediaUrl = 7;
/**
* optional string remoteMediaUrl = 7;
*/
boolean hasRemoteMediaUrl();
/**
* optional string remoteMediaUrl = 7;
*/
java.lang.String getRemoteMediaUrl();
/**
* optional string remoteMediaUrl = 7;
*/
com.google.protobuf.ByteString
getRemoteMediaUrlBytes();
// optional int32 persist_flag = 8;
/**
* optional int32 persist_flag = 8;
*/
boolean hasPersistFlag();
/**
* optional int32 persist_flag = 8;
*/
int getPersistFlag();
// optional int32 expire_duration = 9;
/**
* optional int32 expire_duration = 9;
*/
boolean hasExpireDuration();
/**
* optional int32 expire_duration = 9;
*/
int getExpireDuration();
// optional int32 mentioned_type = 10;
/**
* optional int32 mentioned_type = 10;
*/
boolean hasMentionedType();
/**
* optional int32 mentioned_type = 10;
*/
int getMentionedType();
// repeated string mentioned_target = 11;
/**
* repeated string mentioned_target = 11;
*/
java.util.List
getMentionedTargetList();
/**
* repeated string mentioned_target = 11;
*/
int getMentionedTargetCount();
/**
* repeated string mentioned_target = 11;
*/
java.lang.String getMentionedTarget(int index);
/**
* repeated string mentioned_target = 11;
*/
com.google.protobuf.ByteString
getMentionedTargetBytes(int index);
// optional string extra = 12;
/**
* optional string extra = 12;
*/
boolean hasExtra();
/**
* optional string extra = 12;
*/
java.lang.String getExtra();
/**
* optional string extra = 12;
*/
com.google.protobuf.ByteString
getExtraBytes();
// optional string push_data = 13;
/**
* optional string push_data = 13;
*/
boolean hasPushData();
/**
* optional string push_data = 13;
*/
java.lang.String getPushData();
/**
* optional string push_data = 13;
*/
com.google.protobuf.ByteString
getPushDataBytes();
}
/**
* Protobuf type {@code MessageContent}
*/
public static final class MessageContent extends
com.google.protobuf.GeneratedMessage
implements MessageContentOrBuilder {
// Use MessageContent.newBuilder() to construct.
private MessageContent(com.google.protobuf.GeneratedMessage.Builder> builder) {
super(builder);
this.unknownFields = builder.getUnknownFields();
}
private MessageContent(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); }
private static final MessageContent defaultInstance;
public static MessageContent getDefaultInstance() {
return defaultInstance;
}
public MessageContent getDefaultInstanceForType() {
return defaultInstance;
}
private final com.google.protobuf.UnknownFieldSet unknownFields;
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private MessageContent(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
initFields();
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;
default: {
if (!parseUnknownField(input, unknownFields,
extensionRegistry, tag)) {
done = true;
}
break;
}
case 8: {
bitField0_ |= 0x00000001;
type_ = input.readInt32();
break;
}
case 18: {
bitField0_ |= 0x00000002;
searchableContent_ = input.readBytes();
break;
}
case 26: {
bitField0_ |= 0x00000004;
pushContent_ = input.readBytes();
break;
}
case 34: {
bitField0_ |= 0x00000008;
content_ = input.readBytes();
break;
}
case 42: {
bitField0_ |= 0x00000010;
data_ = input.readBytes();
break;
}
case 48: {
bitField0_ |= 0x00000020;
mediaType_ = input.readInt32();
break;
}
case 58: {
bitField0_ |= 0x00000040;
remoteMediaUrl_ = input.readBytes();
break;
}
case 64: {
bitField0_ |= 0x00000080;
persistFlag_ = input.readInt32();
break;
}
case 72: {
bitField0_ |= 0x00000100;
expireDuration_ = input.readInt32();
break;
}
case 80: {
bitField0_ |= 0x00000200;
mentionedType_ = input.readInt32();
break;
}
case 90: {
if (!((mutable_bitField0_ & 0x00000400) == 0x00000400)) {
mentionedTarget_ = new com.google.protobuf.LazyStringArrayList();
mutable_bitField0_ |= 0x00000400;
}
mentionedTarget_.add(input.readBytes());
break;
}
case 98: {
bitField0_ |= 0x00000400;
extra_ = input.readBytes();
break;
}
case 106: {
bitField0_ |= 0x00000800;
pushData_ = input.readBytes();
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e.getMessage()).setUnfinishedMessage(this);
} finally {
if (((mutable_bitField0_ & 0x00000400) == 0x00000400)) {
mentionedTarget_ = new com.google.protobuf.UnmodifiableLazyStringList(mentionedTarget_);
}
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return cn.wildfirechat.proto.WFCMessage.internal_static_MessageContent_descriptor;
}
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable() {
return cn.wildfirechat.proto.WFCMessage.internal_static_MessageContent_fieldAccessorTable
.ensureFieldAccessorsInitialized(
cn.wildfirechat.proto.WFCMessage.MessageContent.class, cn.wildfirechat.proto.WFCMessage.MessageContent.Builder.class);
}
public static com.google.protobuf.Parser PARSER =
new com.google.protobuf.AbstractParser() {
public MessageContent parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new MessageContent(input, extensionRegistry);
}
};
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
private int bitField0_;
// required int32 type = 1;
public static final int TYPE_FIELD_NUMBER = 1;
private int type_;
/**
* required int32 type = 1;
*/
public boolean hasType() {
return ((bitField0_ & 0x00000001) == 0x00000001);
}
/**
* required int32 type = 1;
*/
public int getType() {
return type_;
}
// optional string searchable_content = 2;
public static final int SEARCHABLE_CONTENT_FIELD_NUMBER = 2;
private java.lang.Object searchableContent_;
/**
* optional string searchable_content = 2;
*/
public boolean hasSearchableContent() {
return ((bitField0_ & 0x00000002) == 0x00000002);
}
/**
* optional string searchable_content = 2;
*/
public java.lang.String getSearchableContent() {
java.lang.Object ref = searchableContent_;
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()) {
searchableContent_ = s;
}
return s;
}
}
/**
* optional string searchable_content = 2;
*/
public com.google.protobuf.ByteString
getSearchableContentBytes() {
java.lang.Object ref = searchableContent_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
searchableContent_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
// optional string push_content = 3;
public static final int PUSH_CONTENT_FIELD_NUMBER = 3;
private java.lang.Object pushContent_;
/**
* optional string push_content = 3;
*/
public boolean hasPushContent() {
return ((bitField0_ & 0x00000004) == 0x00000004);
}
/**
* optional string push_content = 3;
*/
public java.lang.String getPushContent() {
java.lang.Object ref = pushContent_;
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()) {
pushContent_ = s;
}
return s;
}
}
/**
* optional string push_content = 3;
*/
public com.google.protobuf.ByteString
getPushContentBytes() {
java.lang.Object ref = pushContent_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
pushContent_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
// optional string content = 4;
public static final int CONTENT_FIELD_NUMBER = 4;
private java.lang.Object content_;
/**
* optional string content = 4;
*/
public boolean hasContent() {
return ((bitField0_ & 0x00000008) == 0x00000008);
}
/**
* optional string content = 4;
*/
public java.lang.String getContent() {
java.lang.Object ref = content_;
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()) {
content_ = s;
}
return s;
}
}
/**
* optional string content = 4;
*/
public com.google.protobuf.ByteString
getContentBytes() {
java.lang.Object ref = content_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
content_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
// optional bytes data = 5;
public static final int DATA_FIELD_NUMBER = 5;
private com.google.protobuf.ByteString data_;
/**
* optional bytes data = 5;
*/
public boolean hasData() {
return ((bitField0_ & 0x00000010) == 0x00000010);
}
/**
* optional bytes data = 5;
*/
public com.google.protobuf.ByteString getData() {
return data_;
}
// optional int32 mediaType = 6;
public static final int MEDIATYPE_FIELD_NUMBER = 6;
private int mediaType_;
/**
* optional int32 mediaType = 6;
*/
public boolean hasMediaType() {
return ((bitField0_ & 0x00000020) == 0x00000020);
}
/**
* optional int32 mediaType = 6;
*/
public int getMediaType() {
return mediaType_;
}
// optional string remoteMediaUrl = 7;
public static final int REMOTEMEDIAURL_FIELD_NUMBER = 7;
private java.lang.Object remoteMediaUrl_;
/**
* optional string remoteMediaUrl = 7;
*/
public boolean hasRemoteMediaUrl() {
return ((bitField0_ & 0x00000040) == 0x00000040);
}
/**
* optional string remoteMediaUrl = 7;
*/
public java.lang.String getRemoteMediaUrl() {
java.lang.Object ref = remoteMediaUrl_;
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()) {
remoteMediaUrl_ = s;
}
return s;
}
}
/**
* optional string remoteMediaUrl = 7;
*/
public com.google.protobuf.ByteString
getRemoteMediaUrlBytes() {
java.lang.Object ref = remoteMediaUrl_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
remoteMediaUrl_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
// optional int32 persist_flag = 8;
public static final int PERSIST_FLAG_FIELD_NUMBER = 8;
private int persistFlag_;
/**
* optional int32 persist_flag = 8;
*/
public boolean hasPersistFlag() {
return ((bitField0_ & 0x00000080) == 0x00000080);
}
/**
* optional int32 persist_flag = 8;
*/
public int getPersistFlag() {
return persistFlag_;
}
// optional int32 expire_duration = 9;
public static final int EXPIRE_DURATION_FIELD_NUMBER = 9;
private int expireDuration_;
/**
* optional int32 expire_duration = 9;
*/
public boolean hasExpireDuration() {
return ((bitField0_ & 0x00000100) == 0x00000100);
}
/**
* optional int32 expire_duration = 9;
*/
public int getExpireDuration() {
return expireDuration_;
}
// optional int32 mentioned_type = 10;
public static final int MENTIONED_TYPE_FIELD_NUMBER = 10;
private int mentionedType_;
/**
* optional int32 mentioned_type = 10;
*/
public boolean hasMentionedType() {
return ((bitField0_ & 0x00000200) == 0x00000200);
}
/**
* optional int32 mentioned_type = 10;
*/
public int getMentionedType() {
return mentionedType_;
}
// repeated string mentioned_target = 11;
public static final int MENTIONED_TARGET_FIELD_NUMBER = 11;
private com.google.protobuf.LazyStringList mentionedTarget_;
/**
* repeated string mentioned_target = 11;
*/
public java.util.List
getMentionedTargetList() {
return mentionedTarget_;
}
/**
* repeated string mentioned_target = 11;
*/
public int getMentionedTargetCount() {
return mentionedTarget_.size();
}
/**
* repeated string mentioned_target = 11;
*/
public java.lang.String getMentionedTarget(int index) {
return mentionedTarget_.get(index);
}
/**
* repeated string mentioned_target = 11;
*/
public com.google.protobuf.ByteString
getMentionedTargetBytes(int index) {
return mentionedTarget_.getByteString(index);
}
// optional string extra = 12;
public static final int EXTRA_FIELD_NUMBER = 12;
private java.lang.Object extra_;
/**
* optional string extra = 12;
*/
public boolean hasExtra() {
return ((bitField0_ & 0x00000400) == 0x00000400);
}
/**
* optional string extra = 12;
*/
public java.lang.String getExtra() {
java.lang.Object ref = extra_;
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()) {
extra_ = s;
}
return s;
}
}
/**
* optional string extra = 12;
*/
public com.google.protobuf.ByteString
getExtraBytes() {
java.lang.Object ref = extra_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
extra_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
// optional string push_data = 13;
public static final int PUSH_DATA_FIELD_NUMBER = 13;
private java.lang.Object pushData_;
/**
* optional string push_data = 13;
*/
public boolean hasPushData() {
return ((bitField0_ & 0x00000800) == 0x00000800);
}
/**
* optional string push_data = 13;
*/
public java.lang.String getPushData() {
java.lang.Object ref = pushData_;
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()) {
pushData_ = s;
}
return s;
}
}
/**
* optional string push_data = 13;
*/
public com.google.protobuf.ByteString
getPushDataBytes() {
java.lang.Object ref = pushData_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
pushData_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
private void initFields() {
type_ = 0;
searchableContent_ = "";
pushContent_ = "";
content_ = "";
data_ = com.google.protobuf.ByteString.EMPTY;
mediaType_ = 0;
remoteMediaUrl_ = "";
persistFlag_ = 0;
expireDuration_ = 0;
mentionedType_ = 0;
mentionedTarget_ = com.google.protobuf.LazyStringArrayList.EMPTY;
extra_ = "";
pushData_ = "";
}
private byte memoizedIsInitialized = -1;
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized != -1) return isInitialized == 1;
if (!hasType()) {
memoizedIsInitialized = 0;
return false;
}
memoizedIsInitialized = 1;
return true;
}
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
getSerializedSize();
if (((bitField0_ & 0x00000001) == 0x00000001)) {
output.writeInt32(1, type_);
}
if (((bitField0_ & 0x00000002) == 0x00000002)) {
output.writeBytes(2, getSearchableContentBytes());
}
if (((bitField0_ & 0x00000004) == 0x00000004)) {
output.writeBytes(3, getPushContentBytes());
}
if (((bitField0_ & 0x00000008) == 0x00000008)) {
output.writeBytes(4, getContentBytes());
}
if (((bitField0_ & 0x00000010) == 0x00000010)) {
output.writeBytes(5, data_);
}
if (((bitField0_ & 0x00000020) == 0x00000020)) {
output.writeInt32(6, mediaType_);
}
if (((bitField0_ & 0x00000040) == 0x00000040)) {
output.writeBytes(7, getRemoteMediaUrlBytes());
}
if (((bitField0_ & 0x00000080) == 0x00000080)) {
output.writeInt32(8, persistFlag_);
}
if (((bitField0_ & 0x00000100) == 0x00000100)) {
output.writeInt32(9, expireDuration_);
}
if (((bitField0_ & 0x00000200) == 0x00000200)) {
output.writeInt32(10, mentionedType_);
}
for (int i = 0; i < mentionedTarget_.size(); i++) {
output.writeBytes(11, mentionedTarget_.getByteString(i));
}
if (((bitField0_ & 0x00000400) == 0x00000400)) {
output.writeBytes(12, getExtraBytes());
}
if (((bitField0_ & 0x00000800) == 0x00000800)) {
output.writeBytes(13, getPushDataBytes());
}
getUnknownFields().writeTo(output);
}
private int memoizedSerializedSize = -1;
public int getSerializedSize() {
int size = memoizedSerializedSize;
if (size != -1) return size;
size = 0;
if (((bitField0_ & 0x00000001) == 0x00000001)) {
size += com.google.protobuf.CodedOutputStream
.computeInt32Size(1, type_);
}
if (((bitField0_ & 0x00000002) == 0x00000002)) {
size += com.google.protobuf.CodedOutputStream
.computeBytesSize(2, getSearchableContentBytes());
}
if (((bitField0_ & 0x00000004) == 0x00000004)) {
size += com.google.protobuf.CodedOutputStream
.computeBytesSize(3, getPushContentBytes());
}
if (((bitField0_ & 0x00000008) == 0x00000008)) {
size += com.google.protobuf.CodedOutputStream
.computeBytesSize(4, getContentBytes());
}
if (((bitField0_ & 0x00000010) == 0x00000010)) {
size += com.google.protobuf.CodedOutputStream
.computeBytesSize(5, data_);
}
if (((bitField0_ & 0x00000020) == 0x00000020)) {
size += com.google.protobuf.CodedOutputStream
.computeInt32Size(6, mediaType_);
}
if (((bitField0_ & 0x00000040) == 0x00000040)) {
size += com.google.protobuf.CodedOutputStream
.computeBytesSize(7, getRemoteMediaUrlBytes());
}
if (((bitField0_ & 0x00000080) == 0x00000080)) {
size += com.google.protobuf.CodedOutputStream
.computeInt32Size(8, persistFlag_);
}
if (((bitField0_ & 0x00000100) == 0x00000100)) {
size += com.google.protobuf.CodedOutputStream
.computeInt32Size(9, expireDuration_);
}
if (((bitField0_ & 0x00000200) == 0x00000200)) {
size += com.google.protobuf.CodedOutputStream
.computeInt32Size(10, mentionedType_);
}
{
int dataSize = 0;
for (int i = 0; i < mentionedTarget_.size(); i++) {
dataSize += com.google.protobuf.CodedOutputStream
.computeBytesSizeNoTag(mentionedTarget_.getByteString(i));
}
size += dataSize;
size += 1 * getMentionedTargetList().size();
}
if (((bitField0_ & 0x00000400) == 0x00000400)) {
size += com.google.protobuf.CodedOutputStream
.computeBytesSize(12, getExtraBytes());
}
if (((bitField0_ & 0x00000800) == 0x00000800)) {
size += com.google.protobuf.CodedOutputStream
.computeBytesSize(13, getPushDataBytes());
}
size += getUnknownFields().getSerializedSize();
memoizedSerializedSize = size;
return size;
}
private static final long serialVersionUID = 0L;
@java.lang.Override
protected java.lang.Object writeReplace()
throws java.io.ObjectStreamException {
return super.writeReplace();
}
public static cn.wildfirechat.proto.WFCMessage.MessageContent parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static cn.wildfirechat.proto.WFCMessage.MessageContent parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static cn.wildfirechat.proto.WFCMessage.MessageContent parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static cn.wildfirechat.proto.WFCMessage.MessageContent parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static cn.wildfirechat.proto.WFCMessage.MessageContent parseFrom(java.io.InputStream input)
throws java.io.IOException {
return PARSER.parseFrom(input);
}
public static cn.wildfirechat.proto.WFCMessage.MessageContent parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return PARSER.parseFrom(input, extensionRegistry);
}
public static cn.wildfirechat.proto.WFCMessage.MessageContent parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return PARSER.parseDelimitedFrom(input);
}
public static cn.wildfirechat.proto.WFCMessage.MessageContent parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return PARSER.parseDelimitedFrom(input, extensionRegistry);
}
public static cn.wildfirechat.proto.WFCMessage.MessageContent parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return PARSER.parseFrom(input);
}
public static cn.wildfirechat.proto.WFCMessage.MessageContent parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return PARSER.parseFrom(input, extensionRegistry);
}
public static Builder newBuilder() { return Builder.create(); }
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder(cn.wildfirechat.proto.WFCMessage.MessageContent prototype) {
return newBuilder().mergeFrom(prototype);
}
public Builder toBuilder() { return newBuilder(this); }
@java.lang.Override
protected Builder newBuilderForType(
com.google.protobuf.GeneratedMessage.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
* Protobuf type {@code MessageContent}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessage.Builder
implements cn.wildfirechat.proto.WFCMessage.MessageContentOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return cn.wildfirechat.proto.WFCMessage.internal_static_MessageContent_descriptor;
}
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable() {
return cn.wildfirechat.proto.WFCMessage.internal_static_MessageContent_fieldAccessorTable
.ensureFieldAccessorsInitialized(
cn.wildfirechat.proto.WFCMessage.MessageContent.class, cn.wildfirechat.proto.WFCMessage.MessageContent.Builder.class);
}
// Construct using cn.wildfirechat.proto.WFCMessage.MessageContent.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessage.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) {
}
}
private static Builder create() {
return new Builder();
}
public Builder clear() {
super.clear();
type_ = 0;
bitField0_ = (bitField0_ & ~0x00000001);
searchableContent_ = "";
bitField0_ = (bitField0_ & ~0x00000002);
pushContent_ = "";
bitField0_ = (bitField0_ & ~0x00000004);
content_ = "";
bitField0_ = (bitField0_ & ~0x00000008);
data_ = com.google.protobuf.ByteString.EMPTY;
bitField0_ = (bitField0_ & ~0x00000010);
mediaType_ = 0;
bitField0_ = (bitField0_ & ~0x00000020);
remoteMediaUrl_ = "";
bitField0_ = (bitField0_ & ~0x00000040);
persistFlag_ = 0;
bitField0_ = (bitField0_ & ~0x00000080);
expireDuration_ = 0;
bitField0_ = (bitField0_ & ~0x00000100);
mentionedType_ = 0;
bitField0_ = (bitField0_ & ~0x00000200);
mentionedTarget_ = com.google.protobuf.LazyStringArrayList.EMPTY;
bitField0_ = (bitField0_ & ~0x00000400);
extra_ = "";
bitField0_ = (bitField0_ & ~0x00000800);
pushData_ = "";
bitField0_ = (bitField0_ & ~0x00001000);
return this;
}
public Builder clone() {
return create().mergeFrom(buildPartial());
}
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return cn.wildfirechat.proto.WFCMessage.internal_static_MessageContent_descriptor;
}
public cn.wildfirechat.proto.WFCMessage.MessageContent getDefaultInstanceForType() {
return cn.wildfirechat.proto.WFCMessage.MessageContent.getDefaultInstance();
}
public cn.wildfirechat.proto.WFCMessage.MessageContent build() {
cn.wildfirechat.proto.WFCMessage.MessageContent result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
public cn.wildfirechat.proto.WFCMessage.MessageContent buildPartial() {
cn.wildfirechat.proto.WFCMessage.MessageContent result = new cn.wildfirechat.proto.WFCMessage.MessageContent(this);
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
if (((from_bitField0_ & 0x00000001) == 0x00000001)) {
to_bitField0_ |= 0x00000001;
}
result.type_ = type_;
if (((from_bitField0_ & 0x00000002) == 0x00000002)) {
to_bitField0_ |= 0x00000002;
}
result.searchableContent_ = searchableContent_;
if (((from_bitField0_ & 0x00000004) == 0x00000004)) {
to_bitField0_ |= 0x00000004;
}
result.pushContent_ = pushContent_;
if (((from_bitField0_ & 0x00000008) == 0x00000008)) {
to_bitField0_ |= 0x00000008;
}
result.content_ = content_;
if (((from_bitField0_ & 0x00000010) == 0x00000010)) {
to_bitField0_ |= 0x00000010;
}
result.data_ = data_;
if (((from_bitField0_ & 0x00000020) == 0x00000020)) {
to_bitField0_ |= 0x00000020;
}
result.mediaType_ = mediaType_;
if (((from_bitField0_ & 0x00000040) == 0x00000040)) {
to_bitField0_ |= 0x00000040;
}
result.remoteMediaUrl_ = remoteMediaUrl_;
if (((from_bitField0_ & 0x00000080) == 0x00000080)) {
to_bitField0_ |= 0x00000080;
}
result.persistFlag_ = persistFlag_;
if (((from_bitField0_ & 0x00000100) == 0x00000100)) {
to_bitField0_ |= 0x00000100;
}
result.expireDuration_ = expireDuration_;
if (((from_bitField0_ & 0x00000200) == 0x00000200)) {
to_bitField0_ |= 0x00000200;
}
result.mentionedType_ = mentionedType_;
if (((bitField0_ & 0x00000400) == 0x00000400)) {
mentionedTarget_ = new com.google.protobuf.UnmodifiableLazyStringList(
mentionedTarget_);
bitField0_ = (bitField0_ & ~0x00000400);
}
result.mentionedTarget_ = mentionedTarget_;
if (((from_bitField0_ & 0x00000800) == 0x00000800)) {
to_bitField0_ |= 0x00000400;
}
result.extra_ = extra_;
if (((from_bitField0_ & 0x00001000) == 0x00001000)) {
to_bitField0_ |= 0x00000800;
}
result.pushData_ = pushData_;
result.bitField0_ = to_bitField0_;
onBuilt();
return result;
}
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof cn.wildfirechat.proto.WFCMessage.MessageContent) {
return mergeFrom((cn.wildfirechat.proto.WFCMessage.MessageContent)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(cn.wildfirechat.proto.WFCMessage.MessageContent other) {
if (other == cn.wildfirechat.proto.WFCMessage.MessageContent.getDefaultInstance()) return this;
if (other.hasType()) {
setType(other.getType());
}
if (other.hasSearchableContent()) {
bitField0_ |= 0x00000002;
searchableContent_ = other.searchableContent_;
onChanged();
}
if (other.hasPushContent()) {
bitField0_ |= 0x00000004;
pushContent_ = other.pushContent_;
onChanged();
}
if (other.hasContent()) {
bitField0_ |= 0x00000008;
content_ = other.content_;
onChanged();
}
if (other.hasData()) {
setData(other.getData());
}
if (other.hasMediaType()) {
setMediaType(other.getMediaType());
}
if (other.hasRemoteMediaUrl()) {
bitField0_ |= 0x00000040;
remoteMediaUrl_ = other.remoteMediaUrl_;
onChanged();
}
if (other.hasPersistFlag()) {
setPersistFlag(other.getPersistFlag());
}
if (other.hasExpireDuration()) {
setExpireDuration(other.getExpireDuration());
}
if (other.hasMentionedType()) {
setMentionedType(other.getMentionedType());
}
if (!other.mentionedTarget_.isEmpty()) {
if (mentionedTarget_.isEmpty()) {
mentionedTarget_ = other.mentionedTarget_;
bitField0_ = (bitField0_ & ~0x00000400);
} else {
ensureMentionedTargetIsMutable();
mentionedTarget_.addAll(other.mentionedTarget_);
}
onChanged();
}
if (other.hasExtra()) {
bitField0_ |= 0x00000800;
extra_ = other.extra_;
onChanged();
}
if (other.hasPushData()) {
bitField0_ |= 0x00001000;
pushData_ = other.pushData_;
onChanged();
}
this.mergeUnknownFields(other.getUnknownFields());
return this;
}
public final boolean isInitialized() {
if (!hasType()) {
return false;
}
return true;
}
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
cn.wildfirechat.proto.WFCMessage.MessageContent parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (cn.wildfirechat.proto.WFCMessage.MessageContent) e.getUnfinishedMessage();
throw e;
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
// required int32 type = 1;
private int type_ ;
/**
* required int32 type = 1;
*/
public boolean hasType() {
return ((bitField0_ & 0x00000001) == 0x00000001);
}
/**
* required int32 type = 1;
*/
public int getType() {
return type_;
}
/**
* required int32 type = 1;
*/
public Builder setType(int value) {
bitField0_ |= 0x00000001;
type_ = value;
onChanged();
return this;
}
/**
* required int32 type = 1;
*/
public Builder clearType() {
bitField0_ = (bitField0_ & ~0x00000001);
type_ = 0;
onChanged();
return this;
}
// optional string searchable_content = 2;
private java.lang.Object searchableContent_ = "";
/**
* optional string searchable_content = 2;
*/
public boolean hasSearchableContent() {
return ((bitField0_ & 0x00000002) == 0x00000002);
}
/**
* optional string searchable_content = 2;
*/
public java.lang.String getSearchableContent() {
java.lang.Object ref = searchableContent_;
if (!(ref instanceof java.lang.String)) {
java.lang.String s = ((com.google.protobuf.ByteString) ref)
.toStringUtf8();
searchableContent_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* optional string searchable_content = 2;
*/
public com.google.protobuf.ByteString
getSearchableContentBytes() {
java.lang.Object ref = searchableContent_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
searchableContent_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* optional string searchable_content = 2;
*/
public Builder setSearchableContent(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000002;
searchableContent_ = value;
onChanged();
return this;
}
/**
* optional string searchable_content = 2;
*/
public Builder clearSearchableContent() {
bitField0_ = (bitField0_ & ~0x00000002);
searchableContent_ = getDefaultInstance().getSearchableContent();
onChanged();
return this;
}
/**
* optional string searchable_content = 2;
*/
public Builder setSearchableContentBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000002;
searchableContent_ = value;
onChanged();
return this;
}
// optional string push_content = 3;
private java.lang.Object pushContent_ = "";
/**
* optional string push_content = 3;
*/
public boolean hasPushContent() {
return ((bitField0_ & 0x00000004) == 0x00000004);
}
/**
* optional string push_content = 3;
*/
public java.lang.String getPushContent() {
java.lang.Object ref = pushContent_;
if (!(ref instanceof java.lang.String)) {
java.lang.String s = ((com.google.protobuf.ByteString) ref)
.toStringUtf8();
pushContent_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* optional string push_content = 3;
*/
public com.google.protobuf.ByteString
getPushContentBytes() {
java.lang.Object ref = pushContent_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
pushContent_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* optional string push_content = 3;
*/
public Builder setPushContent(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000004;
pushContent_ = value;
onChanged();
return this;
}
/**
* optional string push_content = 3;
*/
public Builder clearPushContent() {
bitField0_ = (bitField0_ & ~0x00000004);
pushContent_ = getDefaultInstance().getPushContent();
onChanged();
return this;
}
/**
* optional string push_content = 3;
*/
public Builder setPushContentBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000004;
pushContent_ = value;
onChanged();
return this;
}
// optional string content = 4;
private java.lang.Object content_ = "";
/**
* optional string content = 4;
*/
public boolean hasContent() {
return ((bitField0_ & 0x00000008) == 0x00000008);
}
/**
* optional string content = 4;
*/
public java.lang.String getContent() {
java.lang.Object ref = content_;
if (!(ref instanceof java.lang.String)) {
java.lang.String s = ((com.google.protobuf.ByteString) ref)
.toStringUtf8();
content_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* optional string content = 4;
*/
public com.google.protobuf.ByteString
getContentBytes() {
java.lang.Object ref = content_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
content_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* optional string content = 4;
*/
public Builder setContent(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000008;
content_ = value;
onChanged();
return this;
}
/**
* optional string content = 4;
*/
public Builder clearContent() {
bitField0_ = (bitField0_ & ~0x00000008);
content_ = getDefaultInstance().getContent();
onChanged();
return this;
}
/**
* optional string content = 4;
*/
public Builder setContentBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000008;
content_ = value;
onChanged();
return this;
}
// optional bytes data = 5;
private com.google.protobuf.ByteString data_ = com.google.protobuf.ByteString.EMPTY;
/**
* optional bytes data = 5;
*/
public boolean hasData() {
return ((bitField0_ & 0x00000010) == 0x00000010);
}
/**
* optional bytes data = 5;
*/
public com.google.protobuf.ByteString getData() {
return data_;
}
/**
* optional bytes data = 5;
*/
public Builder setData(com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000010;
data_ = value;
onChanged();
return this;
}
/**
* optional bytes data = 5;
*/
public Builder clearData() {
bitField0_ = (bitField0_ & ~0x00000010);
data_ = getDefaultInstance().getData();
onChanged();
return this;
}
// optional int32 mediaType = 6;
private int mediaType_ ;
/**
* optional int32 mediaType = 6;
*/
public boolean hasMediaType() {
return ((bitField0_ & 0x00000020) == 0x00000020);
}
/**
* optional int32 mediaType = 6;
*/
public int getMediaType() {
return mediaType_;
}
/**
* optional int32 mediaType = 6;
*/
public Builder setMediaType(int value) {
bitField0_ |= 0x00000020;
mediaType_ = value;
onChanged();
return this;
}
/**
* optional int32 mediaType = 6;
*/
public Builder clearMediaType() {
bitField0_ = (bitField0_ & ~0x00000020);
mediaType_ = 0;
onChanged();
return this;
}
// optional string remoteMediaUrl = 7;
private java.lang.Object remoteMediaUrl_ = "";
/**
* optional string remoteMediaUrl = 7;
*/
public boolean hasRemoteMediaUrl() {
return ((bitField0_ & 0x00000040) == 0x00000040);
}
/**
* optional string remoteMediaUrl = 7;
*/
public java.lang.String getRemoteMediaUrl() {
java.lang.Object ref = remoteMediaUrl_;
if (!(ref instanceof java.lang.String)) {
java.lang.String s = ((com.google.protobuf.ByteString) ref)
.toStringUtf8();
remoteMediaUrl_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* optional string remoteMediaUrl = 7;
*/
public com.google.protobuf.ByteString
getRemoteMediaUrlBytes() {
java.lang.Object ref = remoteMediaUrl_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
remoteMediaUrl_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* optional string remoteMediaUrl = 7;
*/
public Builder setRemoteMediaUrl(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000040;
remoteMediaUrl_ = value;
onChanged();
return this;
}
/**
* optional string remoteMediaUrl = 7;
*/
public Builder clearRemoteMediaUrl() {
bitField0_ = (bitField0_ & ~0x00000040);
remoteMediaUrl_ = getDefaultInstance().getRemoteMediaUrl();
onChanged();
return this;
}
/**
* optional string remoteMediaUrl = 7;
*/
public Builder setRemoteMediaUrlBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000040;
remoteMediaUrl_ = value;
onChanged();
return this;
}
// optional int32 persist_flag = 8;
private int persistFlag_ ;
/**
* optional int32 persist_flag = 8;
*/
public boolean hasPersistFlag() {
return ((bitField0_ & 0x00000080) == 0x00000080);
}
/**
* optional int32 persist_flag = 8;
*/
public int getPersistFlag() {
return persistFlag_;
}
/**
* optional int32 persist_flag = 8;
*/
public Builder setPersistFlag(int value) {
bitField0_ |= 0x00000080;
persistFlag_ = value;
onChanged();
return this;
}
/**
* optional int32 persist_flag = 8;
*/
public Builder clearPersistFlag() {
bitField0_ = (bitField0_ & ~0x00000080);
persistFlag_ = 0;
onChanged();
return this;
}
// optional int32 expire_duration = 9;
private int expireDuration_ ;
/**
* optional int32 expire_duration = 9;
*/
public boolean hasExpireDuration() {
return ((bitField0_ & 0x00000100) == 0x00000100);
}
/**
* optional int32 expire_duration = 9;
*/
public int getExpireDuration() {
return expireDuration_;
}
/**
* optional int32 expire_duration = 9;
*/
public Builder setExpireDuration(int value) {
bitField0_ |= 0x00000100;
expireDuration_ = value;
onChanged();
return this;
}
/**
* optional int32 expire_duration = 9;
*/
public Builder clearExpireDuration() {
bitField0_ = (bitField0_ & ~0x00000100);
expireDuration_ = 0;
onChanged();
return this;
}
// optional int32 mentioned_type = 10;
private int mentionedType_ ;
/**
* optional int32 mentioned_type = 10;
*/
public boolean hasMentionedType() {
return ((bitField0_ & 0x00000200) == 0x00000200);
}
/**
* optional int32 mentioned_type = 10;
*/
public int getMentionedType() {
return mentionedType_;
}
/**
* optional int32 mentioned_type = 10;
*/
public Builder setMentionedType(int value) {
bitField0_ |= 0x00000200;
mentionedType_ = value;
onChanged();
return this;
}
/**
* optional int32 mentioned_type = 10;
*/
public Builder clearMentionedType() {
bitField0_ = (bitField0_ & ~0x00000200);
mentionedType_ = 0;
onChanged();
return this;
}
// repeated string mentioned_target = 11;
private com.google.protobuf.LazyStringList mentionedTarget_ = com.google.protobuf.LazyStringArrayList.EMPTY;
private void ensureMentionedTargetIsMutable() {
if (!((bitField0_ & 0x00000400) == 0x00000400)) {
mentionedTarget_ = new com.google.protobuf.LazyStringArrayList(mentionedTarget_);
bitField0_ |= 0x00000400;
}
}
/**
* repeated string mentioned_target = 11;
*/
public java.util.List
getMentionedTargetList() {
return java.util.Collections.unmodifiableList(mentionedTarget_);
}
/**
* repeated string mentioned_target = 11;
*/
public int getMentionedTargetCount() {
return mentionedTarget_.size();
}
/**
* repeated string mentioned_target = 11;
*/
public java.lang.String getMentionedTarget(int index) {
return mentionedTarget_.get(index);
}
/**
* repeated string mentioned_target = 11;
*/
public com.google.protobuf.ByteString
getMentionedTargetBytes(int index) {
return mentionedTarget_.getByteString(index);
}
/**
* repeated string mentioned_target = 11;
*/
public Builder setMentionedTarget(
int index, java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
ensureMentionedTargetIsMutable();
mentionedTarget_.set(index, value);
onChanged();
return this;
}
/**
* repeated string mentioned_target = 11;
*/
public Builder addMentionedTarget(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
ensureMentionedTargetIsMutable();
mentionedTarget_.add(value);
onChanged();
return this;
}
/**
* repeated string mentioned_target = 11;
*/
public Builder addAllMentionedTarget(
java.lang.Iterable values) {
ensureMentionedTargetIsMutable();
super.addAll(values, mentionedTarget_);
onChanged();
return this;
}
/**
* repeated string mentioned_target = 11;
*/
public Builder clearMentionedTarget() {
mentionedTarget_ = com.google.protobuf.LazyStringArrayList.EMPTY;
bitField0_ = (bitField0_ & ~0x00000400);
onChanged();
return this;
}
/**
* repeated string mentioned_target = 11;
*/
public Builder addMentionedTargetBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
ensureMentionedTargetIsMutable();
mentionedTarget_.add(value);
onChanged();
return this;
}
// optional string extra = 12;
private java.lang.Object extra_ = "";
/**
* optional string extra = 12;
*/
public boolean hasExtra() {
return ((bitField0_ & 0x00000800) == 0x00000800);
}
/**
* optional string extra = 12;
*/
public java.lang.String getExtra() {
java.lang.Object ref = extra_;
if (!(ref instanceof java.lang.String)) {
java.lang.String s = ((com.google.protobuf.ByteString) ref)
.toStringUtf8();
extra_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* optional string extra = 12;
*/
public com.google.protobuf.ByteString
getExtraBytes() {
java.lang.Object ref = extra_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
extra_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* optional string extra = 12;
*/
public Builder setExtra(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000800;
extra_ = value;
onChanged();
return this;
}
/**
* optional string extra = 12;
*/
public Builder clearExtra() {
bitField0_ = (bitField0_ & ~0x00000800);
extra_ = getDefaultInstance().getExtra();
onChanged();
return this;
}
/**
* optional string extra = 12;
*/
public Builder setExtraBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000800;
extra_ = value;
onChanged();
return this;
}
// optional string push_data = 13;
private java.lang.Object pushData_ = "";
/**
* optional string push_data = 13;
*/
public boolean hasPushData() {
return ((bitField0_ & 0x00001000) == 0x00001000);
}
/**
* optional string push_data = 13;
*/
public java.lang.String getPushData() {
java.lang.Object ref = pushData_;
if (!(ref instanceof java.lang.String)) {
java.lang.String s = ((com.google.protobuf.ByteString) ref)
.toStringUtf8();
pushData_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* optional string push_data = 13;
*/
public com.google.protobuf.ByteString
getPushDataBytes() {
java.lang.Object ref = pushData_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
pushData_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* optional string push_data = 13;
*/
public Builder setPushData(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00001000;
pushData_ = value;
onChanged();
return this;
}
/**
* optional string push_data = 13;
*/
public Builder clearPushData() {
bitField0_ = (bitField0_ & ~0x00001000);
pushData_ = getDefaultInstance().getPushData();
onChanged();
return this;
}
/**
* optional string push_data = 13;
*/
public Builder setPushDataBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00001000;
pushData_ = value;
onChanged();
return this;
}
// @@protoc_insertion_point(builder_scope:MessageContent)
}
static {
defaultInstance = new MessageContent(true);
defaultInstance.initFields();
}
// @@protoc_insertion_point(class_scope:MessageContent)
}
public interface AddGroupMemberRequestOrBuilder
extends com.google.protobuf.MessageOrBuilder {
// required string group_id = 1;
/**
* required string group_id = 1;
*/
boolean hasGroupId();
/**
* required string group_id = 1;
*/
java.lang.String getGroupId();
/**
* required string group_id = 1;
*/
com.google.protobuf.ByteString
getGroupIdBytes();
// repeated .GroupMember added_member = 2;
/**
* repeated .GroupMember added_member = 2;
*/
java.util.List
getAddedMemberList();
/**
* repeated .GroupMember added_member = 2;
*/
cn.wildfirechat.proto.WFCMessage.GroupMember getAddedMember(int index);
/**
* repeated .GroupMember added_member = 2;
*/
int getAddedMemberCount();
/**
* repeated .GroupMember added_member = 2;
*/
java.util.List extends cn.wildfirechat.proto.WFCMessage.GroupMemberOrBuilder>
getAddedMemberOrBuilderList();
/**
* repeated .GroupMember added_member = 2;
*/
cn.wildfirechat.proto.WFCMessage.GroupMemberOrBuilder getAddedMemberOrBuilder(
int index);
// repeated int32 to_line = 3;
/**
* repeated int32 to_line = 3;
*/
java.util.List getToLineList();
/**
* repeated int32 to_line = 3;
*/
int getToLineCount();
/**
* repeated int32 to_line = 3;
*/
int getToLine(int index);
// optional .MessageContent notify_content = 4;
/**
* optional .MessageContent notify_content = 4;
*/
boolean hasNotifyContent();
/**
* optional .MessageContent notify_content = 4;
*/
cn.wildfirechat.proto.WFCMessage.MessageContent getNotifyContent();
/**
* optional .MessageContent notify_content = 4;
*/
cn.wildfirechat.proto.WFCMessage.MessageContentOrBuilder getNotifyContentOrBuilder();
// optional string extra = 5;
/**
* optional string extra = 5;
*/
boolean hasExtra();
/**
* optional string extra = 5;
*/
java.lang.String getExtra();
/**
* optional string extra = 5;
*/
com.google.protobuf.ByteString
getExtraBytes();
}
/**
* Protobuf type {@code AddGroupMemberRequest}
*/
public static final class AddGroupMemberRequest extends
com.google.protobuf.GeneratedMessage
implements AddGroupMemberRequestOrBuilder {
// Use AddGroupMemberRequest.newBuilder() to construct.
private AddGroupMemberRequest(com.google.protobuf.GeneratedMessage.Builder> builder) {
super(builder);
this.unknownFields = builder.getUnknownFields();
}
private AddGroupMemberRequest(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); }
private static final AddGroupMemberRequest defaultInstance;
public static AddGroupMemberRequest getDefaultInstance() {
return defaultInstance;
}
public AddGroupMemberRequest getDefaultInstanceForType() {
return defaultInstance;
}
private final com.google.protobuf.UnknownFieldSet unknownFields;
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private AddGroupMemberRequest(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
initFields();
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;
default: {
if (!parseUnknownField(input, unknownFields,
extensionRegistry, tag)) {
done = true;
}
break;
}
case 10: {
bitField0_ |= 0x00000001;
groupId_ = input.readBytes();
break;
}
case 18: {
if (!((mutable_bitField0_ & 0x00000002) == 0x00000002)) {
addedMember_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00000002;
}
addedMember_.add(input.readMessage(cn.wildfirechat.proto.WFCMessage.GroupMember.PARSER, extensionRegistry));
break;
}
case 24: {
if (!((mutable_bitField0_ & 0x00000004) == 0x00000004)) {
toLine_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00000004;
}
toLine_.add(input.readInt32());
break;
}
case 26: {
int length = input.readRawVarint32();
int limit = input.pushLimit(length);
if (!((mutable_bitField0_ & 0x00000004) == 0x00000004) && input.getBytesUntilLimit() > 0) {
toLine_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00000004;
}
while (input.getBytesUntilLimit() > 0) {
toLine_.add(input.readInt32());
}
input.popLimit(limit);
break;
}
case 34: {
cn.wildfirechat.proto.WFCMessage.MessageContent.Builder subBuilder = null;
if (((bitField0_ & 0x00000002) == 0x00000002)) {
subBuilder = notifyContent_.toBuilder();
}
notifyContent_ = input.readMessage(cn.wildfirechat.proto.WFCMessage.MessageContent.PARSER, extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(notifyContent_);
notifyContent_ = subBuilder.buildPartial();
}
bitField0_ |= 0x00000002;
break;
}
case 42: {
bitField0_ |= 0x00000004;
extra_ = input.readBytes();
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e.getMessage()).setUnfinishedMessage(this);
} finally {
if (((mutable_bitField0_ & 0x00000002) == 0x00000002)) {
addedMember_ = java.util.Collections.unmodifiableList(addedMember_);
}
if (((mutable_bitField0_ & 0x00000004) == 0x00000004)) {
toLine_ = java.util.Collections.unmodifiableList(toLine_);
}
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return cn.wildfirechat.proto.WFCMessage.internal_static_AddGroupMemberRequest_descriptor;
}
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable() {
return cn.wildfirechat.proto.WFCMessage.internal_static_AddGroupMemberRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
cn.wildfirechat.proto.WFCMessage.AddGroupMemberRequest.class, cn.wildfirechat.proto.WFCMessage.AddGroupMemberRequest.Builder.class);
}
public static com.google.protobuf.Parser PARSER =
new com.google.protobuf.AbstractParser() {
public AddGroupMemberRequest parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new AddGroupMemberRequest(input, extensionRegistry);
}
};
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
private int bitField0_;
// required string group_id = 1;
public static final int GROUP_ID_FIELD_NUMBER = 1;
private java.lang.Object groupId_;
/**
* required string group_id = 1;
*/
public boolean hasGroupId() {
return ((bitField0_ & 0x00000001) == 0x00000001);
}
/**
* required string group_id = 1;
*/
public java.lang.String getGroupId() {
java.lang.Object ref = groupId_;
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()) {
groupId_ = s;
}
return s;
}
}
/**
* required string group_id = 1;
*/
public com.google.protobuf.ByteString
getGroupIdBytes() {
java.lang.Object ref = groupId_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
groupId_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
// repeated .GroupMember added_member = 2;
public static final int ADDED_MEMBER_FIELD_NUMBER = 2;
private java.util.List addedMember_;
/**
* repeated .GroupMember added_member = 2;
*/
public java.util.List getAddedMemberList() {
return addedMember_;
}
/**
* repeated .GroupMember added_member = 2;
*/
public java.util.List extends cn.wildfirechat.proto.WFCMessage.GroupMemberOrBuilder>
getAddedMemberOrBuilderList() {
return addedMember_;
}
/**
* repeated .GroupMember added_member = 2;
*/
public int getAddedMemberCount() {
return addedMember_.size();
}
/**
* repeated .GroupMember added_member = 2;
*/
public cn.wildfirechat.proto.WFCMessage.GroupMember getAddedMember(int index) {
return addedMember_.get(index);
}
/**
* repeated .GroupMember added_member = 2;
*/
public cn.wildfirechat.proto.WFCMessage.GroupMemberOrBuilder getAddedMemberOrBuilder(
int index) {
return addedMember_.get(index);
}
// repeated int32 to_line = 3;
public static final int TO_LINE_FIELD_NUMBER = 3;
private java.util.List toLine_;
/**
* repeated int32 to_line = 3;
*/
public java.util.List
getToLineList() {
return toLine_;
}
/**
* repeated int32 to_line = 3;
*/
public int getToLineCount() {
return toLine_.size();
}
/**
* repeated int32 to_line = 3;
*/
public int getToLine(int index) {
return toLine_.get(index);
}
// optional .MessageContent notify_content = 4;
public static final int NOTIFY_CONTENT_FIELD_NUMBER = 4;
private cn.wildfirechat.proto.WFCMessage.MessageContent notifyContent_;
/**
* optional .MessageContent notify_content = 4;
*/
public boolean hasNotifyContent() {
return ((bitField0_ & 0x00000002) == 0x00000002);
}
/**
* optional .MessageContent notify_content = 4;
*/
public cn.wildfirechat.proto.WFCMessage.MessageContent getNotifyContent() {
return notifyContent_;
}
/**
* optional .MessageContent notify_content = 4;
*/
public cn.wildfirechat.proto.WFCMessage.MessageContentOrBuilder getNotifyContentOrBuilder() {
return notifyContent_;
}
// optional string extra = 5;
public static final int EXTRA_FIELD_NUMBER = 5;
private java.lang.Object extra_;
/**
* optional string extra = 5;
*/
public boolean hasExtra() {
return ((bitField0_ & 0x00000004) == 0x00000004);
}
/**
* optional string extra = 5;
*/
public java.lang.String getExtra() {
java.lang.Object ref = extra_;
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()) {
extra_ = s;
}
return s;
}
}
/**
* optional string extra = 5;
*/
public com.google.protobuf.ByteString
getExtraBytes() {
java.lang.Object ref = extra_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
extra_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
private void initFields() {
groupId_ = "";
addedMember_ = java.util.Collections.emptyList();
toLine_ = java.util.Collections.emptyList();
notifyContent_ = cn.wildfirechat.proto.WFCMessage.MessageContent.getDefaultInstance();
extra_ = "";
}
private byte memoizedIsInitialized = -1;
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized != -1) return isInitialized == 1;
if (!hasGroupId()) {
memoizedIsInitialized = 0;
return false;
}
for (int i = 0; i < getAddedMemberCount(); i++) {
if (!getAddedMember(i).isInitialized()) {
memoizedIsInitialized = 0;
return false;
}
}
if (hasNotifyContent()) {
if (!getNotifyContent().isInitialized()) {
memoizedIsInitialized = 0;
return false;
}
}
memoizedIsInitialized = 1;
return true;
}
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
getSerializedSize();
if (((bitField0_ & 0x00000001) == 0x00000001)) {
output.writeBytes(1, getGroupIdBytes());
}
for (int i = 0; i < addedMember_.size(); i++) {
output.writeMessage(2, addedMember_.get(i));
}
for (int i = 0; i < toLine_.size(); i++) {
output.writeInt32(3, toLine_.get(i));
}
if (((bitField0_ & 0x00000002) == 0x00000002)) {
output.writeMessage(4, notifyContent_);
}
if (((bitField0_ & 0x00000004) == 0x00000004)) {
output.writeBytes(5, getExtraBytes());
}
getUnknownFields().writeTo(output);
}
private int memoizedSerializedSize = -1;
public int getSerializedSize() {
int size = memoizedSerializedSize;
if (size != -1) return size;
size = 0;
if (((bitField0_ & 0x00000001) == 0x00000001)) {
size += com.google.protobuf.CodedOutputStream
.computeBytesSize(1, getGroupIdBytes());
}
for (int i = 0; i < addedMember_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(2, addedMember_.get(i));
}
{
int dataSize = 0;
for (int i = 0; i < toLine_.size(); i++) {
dataSize += com.google.protobuf.CodedOutputStream
.computeInt32SizeNoTag(toLine_.get(i));
}
size += dataSize;
size += 1 * getToLineList().size();
}
if (((bitField0_ & 0x00000002) == 0x00000002)) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(4, notifyContent_);
}
if (((bitField0_ & 0x00000004) == 0x00000004)) {
size += com.google.protobuf.CodedOutputStream
.computeBytesSize(5, getExtraBytes());
}
size += getUnknownFields().getSerializedSize();
memoizedSerializedSize = size;
return size;
}
private static final long serialVersionUID = 0L;
@java.lang.Override
protected java.lang.Object writeReplace()
throws java.io.ObjectStreamException {
return super.writeReplace();
}
public static cn.wildfirechat.proto.WFCMessage.AddGroupMemberRequest parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static cn.wildfirechat.proto.WFCMessage.AddGroupMemberRequest parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static cn.wildfirechat.proto.WFCMessage.AddGroupMemberRequest parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static cn.wildfirechat.proto.WFCMessage.AddGroupMemberRequest parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static cn.wildfirechat.proto.WFCMessage.AddGroupMemberRequest parseFrom(java.io.InputStream input)
throws java.io.IOException {
return PARSER.parseFrom(input);
}
public static cn.wildfirechat.proto.WFCMessage.AddGroupMemberRequest parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return PARSER.parseFrom(input, extensionRegistry);
}
public static cn.wildfirechat.proto.WFCMessage.AddGroupMemberRequest parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return PARSER.parseDelimitedFrom(input);
}
public static cn.wildfirechat.proto.WFCMessage.AddGroupMemberRequest parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return PARSER.parseDelimitedFrom(input, extensionRegistry);
}
public static cn.wildfirechat.proto.WFCMessage.AddGroupMemberRequest parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return PARSER.parseFrom(input);
}
public static cn.wildfirechat.proto.WFCMessage.AddGroupMemberRequest parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return PARSER.parseFrom(input, extensionRegistry);
}
public static Builder newBuilder() { return Builder.create(); }
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder(cn.wildfirechat.proto.WFCMessage.AddGroupMemberRequest prototype) {
return newBuilder().mergeFrom(prototype);
}
public Builder toBuilder() { return newBuilder(this); }
@java.lang.Override
protected Builder newBuilderForType(
com.google.protobuf.GeneratedMessage.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
* Protobuf type {@code AddGroupMemberRequest}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessage.Builder
implements cn.wildfirechat.proto.WFCMessage.AddGroupMemberRequestOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return cn.wildfirechat.proto.WFCMessage.internal_static_AddGroupMemberRequest_descriptor;
}
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable() {
return cn.wildfirechat.proto.WFCMessage.internal_static_AddGroupMemberRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
cn.wildfirechat.proto.WFCMessage.AddGroupMemberRequest.class, cn.wildfirechat.proto.WFCMessage.AddGroupMemberRequest.Builder.class);
}
// Construct using cn.wildfirechat.proto.WFCMessage.AddGroupMemberRequest.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessage.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) {
getAddedMemberFieldBuilder();
getNotifyContentFieldBuilder();
}
}
private static Builder create() {
return new Builder();
}
public Builder clear() {
super.clear();
groupId_ = "";
bitField0_ = (bitField0_ & ~0x00000001);
if (addedMemberBuilder_ == null) {
addedMember_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000002);
} else {
addedMemberBuilder_.clear();
}
toLine_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000004);
if (notifyContentBuilder_ == null) {
notifyContent_ = cn.wildfirechat.proto.WFCMessage.MessageContent.getDefaultInstance();
} else {
notifyContentBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000008);
extra_ = "";
bitField0_ = (bitField0_ & ~0x00000010);
return this;
}
public Builder clone() {
return create().mergeFrom(buildPartial());
}
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return cn.wildfirechat.proto.WFCMessage.internal_static_AddGroupMemberRequest_descriptor;
}
public cn.wildfirechat.proto.WFCMessage.AddGroupMemberRequest getDefaultInstanceForType() {
return cn.wildfirechat.proto.WFCMessage.AddGroupMemberRequest.getDefaultInstance();
}
public cn.wildfirechat.proto.WFCMessage.AddGroupMemberRequest build() {
cn.wildfirechat.proto.WFCMessage.AddGroupMemberRequest result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
public cn.wildfirechat.proto.WFCMessage.AddGroupMemberRequest buildPartial() {
cn.wildfirechat.proto.WFCMessage.AddGroupMemberRequest result = new cn.wildfirechat.proto.WFCMessage.AddGroupMemberRequest(this);
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
if (((from_bitField0_ & 0x00000001) == 0x00000001)) {
to_bitField0_ |= 0x00000001;
}
result.groupId_ = groupId_;
if (addedMemberBuilder_ == null) {
if (((bitField0_ & 0x00000002) == 0x00000002)) {
addedMember_ = java.util.Collections.unmodifiableList(addedMember_);
bitField0_ = (bitField0_ & ~0x00000002);
}
result.addedMember_ = addedMember_;
} else {
result.addedMember_ = addedMemberBuilder_.build();
}
if (((bitField0_ & 0x00000004) == 0x00000004)) {
toLine_ = java.util.Collections.unmodifiableList(toLine_);
bitField0_ = (bitField0_ & ~0x00000004);
}
result.toLine_ = toLine_;
if (((from_bitField0_ & 0x00000008) == 0x00000008)) {
to_bitField0_ |= 0x00000002;
}
if (notifyContentBuilder_ == null) {
result.notifyContent_ = notifyContent_;
} else {
result.notifyContent_ = notifyContentBuilder_.build();
}
if (((from_bitField0_ & 0x00000010) == 0x00000010)) {
to_bitField0_ |= 0x00000004;
}
result.extra_ = extra_;
result.bitField0_ = to_bitField0_;
onBuilt();
return result;
}
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof cn.wildfirechat.proto.WFCMessage.AddGroupMemberRequest) {
return mergeFrom((cn.wildfirechat.proto.WFCMessage.AddGroupMemberRequest)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(cn.wildfirechat.proto.WFCMessage.AddGroupMemberRequest other) {
if (other == cn.wildfirechat.proto.WFCMessage.AddGroupMemberRequest.getDefaultInstance()) return this;
if (other.hasGroupId()) {
bitField0_ |= 0x00000001;
groupId_ = other.groupId_;
onChanged();
}
if (addedMemberBuilder_ == null) {
if (!other.addedMember_.isEmpty()) {
if (addedMember_.isEmpty()) {
addedMember_ = other.addedMember_;
bitField0_ = (bitField0_ & ~0x00000002);
} else {
ensureAddedMemberIsMutable();
addedMember_.addAll(other.addedMember_);
}
onChanged();
}
} else {
if (!other.addedMember_.isEmpty()) {
if (addedMemberBuilder_.isEmpty()) {
addedMemberBuilder_.dispose();
addedMemberBuilder_ = null;
addedMember_ = other.addedMember_;
bitField0_ = (bitField0_ & ~0x00000002);
addedMemberBuilder_ =
com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ?
getAddedMemberFieldBuilder() : null;
} else {
addedMemberBuilder_.addAllMessages(other.addedMember_);
}
}
}
if (!other.toLine_.isEmpty()) {
if (toLine_.isEmpty()) {
toLine_ = other.toLine_;
bitField0_ = (bitField0_ & ~0x00000004);
} else {
ensureToLineIsMutable();
toLine_.addAll(other.toLine_);
}
onChanged();
}
if (other.hasNotifyContent()) {
mergeNotifyContent(other.getNotifyContent());
}
if (other.hasExtra()) {
bitField0_ |= 0x00000010;
extra_ = other.extra_;
onChanged();
}
this.mergeUnknownFields(other.getUnknownFields());
return this;
}
public final boolean isInitialized() {
if (!hasGroupId()) {
return false;
}
for (int i = 0; i < getAddedMemberCount(); i++) {
if (!getAddedMember(i).isInitialized()) {
return false;
}
}
if (hasNotifyContent()) {
if (!getNotifyContent().isInitialized()) {
return false;
}
}
return true;
}
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
cn.wildfirechat.proto.WFCMessage.AddGroupMemberRequest parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (cn.wildfirechat.proto.WFCMessage.AddGroupMemberRequest) e.getUnfinishedMessage();
throw e;
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
// required string group_id = 1;
private java.lang.Object groupId_ = "";
/**
* required string group_id = 1;
*/
public boolean hasGroupId() {
return ((bitField0_ & 0x00000001) == 0x00000001);
}
/**
* required string group_id = 1;
*/
public java.lang.String getGroupId() {
java.lang.Object ref = groupId_;
if (!(ref instanceof java.lang.String)) {
java.lang.String s = ((com.google.protobuf.ByteString) ref)
.toStringUtf8();
groupId_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* required string group_id = 1;
*/
public com.google.protobuf.ByteString
getGroupIdBytes() {
java.lang.Object ref = groupId_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
groupId_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* required string group_id = 1;
*/
public Builder setGroupId(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000001;
groupId_ = value;
onChanged();
return this;
}
/**
* required string group_id = 1;
*/
public Builder clearGroupId() {
bitField0_ = (bitField0_ & ~0x00000001);
groupId_ = getDefaultInstance().getGroupId();
onChanged();
return this;
}
/**
* required string group_id = 1;
*/
public Builder setGroupIdBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000001;
groupId_ = value;
onChanged();
return this;
}
// repeated .GroupMember added_member = 2;
private java.util.List addedMember_ =
java.util.Collections.emptyList();
private void ensureAddedMemberIsMutable() {
if (!((bitField0_ & 0x00000002) == 0x00000002)) {
addedMember_ = new java.util.ArrayList(addedMember_);
bitField0_ |= 0x00000002;
}
}
private com.google.protobuf.RepeatedFieldBuilder<
cn.wildfirechat.proto.WFCMessage.GroupMember, cn.wildfirechat.proto.WFCMessage.GroupMember.Builder, cn.wildfirechat.proto.WFCMessage.GroupMemberOrBuilder> addedMemberBuilder_;
/**
* repeated .GroupMember added_member = 2;
*/
public java.util.List getAddedMemberList() {
if (addedMemberBuilder_ == null) {
return java.util.Collections.unmodifiableList(addedMember_);
} else {
return addedMemberBuilder_.getMessageList();
}
}
/**
* repeated .GroupMember added_member = 2;
*/
public int getAddedMemberCount() {
if (addedMemberBuilder_ == null) {
return addedMember_.size();
} else {
return addedMemberBuilder_.getCount();
}
}
/**
* repeated .GroupMember added_member = 2;
*/
public cn.wildfirechat.proto.WFCMessage.GroupMember getAddedMember(int index) {
if (addedMemberBuilder_ == null) {
return addedMember_.get(index);
} else {
return addedMemberBuilder_.getMessage(index);
}
}
/**
* repeated .GroupMember added_member = 2;
*/
public Builder setAddedMember(
int index, cn.wildfirechat.proto.WFCMessage.GroupMember value) {
if (addedMemberBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureAddedMemberIsMutable();
addedMember_.set(index, value);
onChanged();
} else {
addedMemberBuilder_.setMessage(index, value);
}
return this;
}
/**
* repeated .GroupMember added_member = 2;
*/
public Builder setAddedMember(
int index, cn.wildfirechat.proto.WFCMessage.GroupMember.Builder builderForValue) {
if (addedMemberBuilder_ == null) {
ensureAddedMemberIsMutable();
addedMember_.set(index, builderForValue.build());
onChanged();
} else {
addedMemberBuilder_.setMessage(index, builderForValue.build());
}
return this;
}
/**
* repeated .GroupMember added_member = 2;
*/
public Builder addAddedMember(cn.wildfirechat.proto.WFCMessage.GroupMember value) {
if (addedMemberBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureAddedMemberIsMutable();
addedMember_.add(value);
onChanged();
} else {
addedMemberBuilder_.addMessage(value);
}
return this;
}
/**
* repeated .GroupMember added_member = 2;
*/
public Builder addAddedMember(
int index, cn.wildfirechat.proto.WFCMessage.GroupMember value) {
if (addedMemberBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureAddedMemberIsMutable();
addedMember_.add(index, value);
onChanged();
} else {
addedMemberBuilder_.addMessage(index, value);
}
return this;
}
/**
* repeated .GroupMember added_member = 2;
*/
public Builder addAddedMember(
cn.wildfirechat.proto.WFCMessage.GroupMember.Builder builderForValue) {
if (addedMemberBuilder_ == null) {
ensureAddedMemberIsMutable();
addedMember_.add(builderForValue.build());
onChanged();
} else {
addedMemberBuilder_.addMessage(builderForValue.build());
}
return this;
}
/**
* repeated .GroupMember added_member = 2;
*/
public Builder addAddedMember(
int index, cn.wildfirechat.proto.WFCMessage.GroupMember.Builder builderForValue) {
if (addedMemberBuilder_ == null) {
ensureAddedMemberIsMutable();
addedMember_.add(index, builderForValue.build());
onChanged();
} else {
addedMemberBuilder_.addMessage(index, builderForValue.build());
}
return this;
}
/**
* repeated .GroupMember added_member = 2;
*/
public Builder addAllAddedMember(
java.lang.Iterable extends cn.wildfirechat.proto.WFCMessage.GroupMember> values) {
if (addedMemberBuilder_ == null) {
ensureAddedMemberIsMutable();
super.addAll(values, addedMember_);
onChanged();
} else {
addedMemberBuilder_.addAllMessages(values);
}
return this;
}
/**
* repeated .GroupMember added_member = 2;
*/
public Builder clearAddedMember() {
if (addedMemberBuilder_ == null) {
addedMember_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000002);
onChanged();
} else {
addedMemberBuilder_.clear();
}
return this;
}
/**
* repeated .GroupMember added_member = 2;
*/
public Builder removeAddedMember(int index) {
if (addedMemberBuilder_ == null) {
ensureAddedMemberIsMutable();
addedMember_.remove(index);
onChanged();
} else {
addedMemberBuilder_.remove(index);
}
return this;
}
/**
* repeated .GroupMember added_member = 2;
*/
public cn.wildfirechat.proto.WFCMessage.GroupMember.Builder getAddedMemberBuilder(
int index) {
return getAddedMemberFieldBuilder().getBuilder(index);
}
/**
* repeated .GroupMember added_member = 2;
*/
public cn.wildfirechat.proto.WFCMessage.GroupMemberOrBuilder getAddedMemberOrBuilder(
int index) {
if (addedMemberBuilder_ == null) {
return addedMember_.get(index); } else {
return addedMemberBuilder_.getMessageOrBuilder(index);
}
}
/**
* repeated .GroupMember added_member = 2;
*/
public java.util.List extends cn.wildfirechat.proto.WFCMessage.GroupMemberOrBuilder>
getAddedMemberOrBuilderList() {
if (addedMemberBuilder_ != null) {
return addedMemberBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(addedMember_);
}
}
/**
* repeated .GroupMember added_member = 2;
*/
public cn.wildfirechat.proto.WFCMessage.GroupMember.Builder addAddedMemberBuilder() {
return getAddedMemberFieldBuilder().addBuilder(
cn.wildfirechat.proto.WFCMessage.GroupMember.getDefaultInstance());
}
/**
* repeated .GroupMember added_member = 2;
*/
public cn.wildfirechat.proto.WFCMessage.GroupMember.Builder addAddedMemberBuilder(
int index) {
return getAddedMemberFieldBuilder().addBuilder(
index, cn.wildfirechat.proto.WFCMessage.GroupMember.getDefaultInstance());
}
/**
* repeated .GroupMember added_member = 2;
*/
public java.util.List
getAddedMemberBuilderList() {
return getAddedMemberFieldBuilder().getBuilderList();
}
private com.google.protobuf.RepeatedFieldBuilder<
cn.wildfirechat.proto.WFCMessage.GroupMember, cn.wildfirechat.proto.WFCMessage.GroupMember.Builder, cn.wildfirechat.proto.WFCMessage.GroupMemberOrBuilder>
getAddedMemberFieldBuilder() {
if (addedMemberBuilder_ == null) {
addedMemberBuilder_ = new com.google.protobuf.RepeatedFieldBuilder<
cn.wildfirechat.proto.WFCMessage.GroupMember, cn.wildfirechat.proto.WFCMessage.GroupMember.Builder, cn.wildfirechat.proto.WFCMessage.GroupMemberOrBuilder>(
addedMember_,
((bitField0_ & 0x00000002) == 0x00000002),
getParentForChildren(),
isClean());
addedMember_ = null;
}
return addedMemberBuilder_;
}
// repeated int32 to_line = 3;
private java.util.List toLine_ = java.util.Collections.emptyList();
private void ensureToLineIsMutable() {
if (!((bitField0_ & 0x00000004) == 0x00000004)) {
toLine_ = new java.util.ArrayList(toLine_);
bitField0_ |= 0x00000004;
}
}
/**
* repeated int32 to_line = 3;
*/
public java.util.List
getToLineList() {
return java.util.Collections.unmodifiableList(toLine_);
}
/**
* repeated int32 to_line = 3;
*/
public int getToLineCount() {
return toLine_.size();
}
/**
* repeated int32 to_line = 3;
*/
public int getToLine(int index) {
return toLine_.get(index);
}
/**
* repeated int32 to_line = 3;
*/
public Builder setToLine(
int index, int value) {
ensureToLineIsMutable();
toLine_.set(index, value);
onChanged();
return this;
}
/**
* repeated int32 to_line = 3;
*/
public Builder addToLine(int value) {
ensureToLineIsMutable();
toLine_.add(value);
onChanged();
return this;
}
/**
* repeated int32 to_line = 3;
*/
public Builder addAllToLine(
java.lang.Iterable extends java.lang.Integer> values) {
ensureToLineIsMutable();
super.addAll(values, toLine_);
onChanged();
return this;
}
/**
* repeated int32 to_line = 3;
*/
public Builder clearToLine() {
toLine_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000004);
onChanged();
return this;
}
// optional .MessageContent notify_content = 4;
private cn.wildfirechat.proto.WFCMessage.MessageContent notifyContent_ = cn.wildfirechat.proto.WFCMessage.MessageContent.getDefaultInstance();
private com.google.protobuf.SingleFieldBuilder<
cn.wildfirechat.proto.WFCMessage.MessageContent, cn.wildfirechat.proto.WFCMessage.MessageContent.Builder, cn.wildfirechat.proto.WFCMessage.MessageContentOrBuilder> notifyContentBuilder_;
/**
* optional .MessageContent notify_content = 4;
*/
public boolean hasNotifyContent() {
return ((bitField0_ & 0x00000008) == 0x00000008);
}
/**
* optional .MessageContent notify_content = 4;
*/
public cn.wildfirechat.proto.WFCMessage.MessageContent getNotifyContent() {
if (notifyContentBuilder_ == null) {
return notifyContent_;
} else {
return notifyContentBuilder_.getMessage();
}
}
/**
* optional .MessageContent notify_content = 4;
*/
public Builder setNotifyContent(cn.wildfirechat.proto.WFCMessage.MessageContent value) {
if (notifyContentBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
notifyContent_ = value;
onChanged();
} else {
notifyContentBuilder_.setMessage(value);
}
bitField0_ |= 0x00000008;
return this;
}
/**
* optional .MessageContent notify_content = 4;
*/
public Builder setNotifyContent(
cn.wildfirechat.proto.WFCMessage.MessageContent.Builder builderForValue) {
if (notifyContentBuilder_ == null) {
notifyContent_ = builderForValue.build();
onChanged();
} else {
notifyContentBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000008;
return this;
}
/**
* optional .MessageContent notify_content = 4;
*/
public Builder mergeNotifyContent(cn.wildfirechat.proto.WFCMessage.MessageContent value) {
if (notifyContentBuilder_ == null) {
if (((bitField0_ & 0x00000008) == 0x00000008) &&
notifyContent_ != cn.wildfirechat.proto.WFCMessage.MessageContent.getDefaultInstance()) {
notifyContent_ =
cn.wildfirechat.proto.WFCMessage.MessageContent.newBuilder(notifyContent_).mergeFrom(value).buildPartial();
} else {
notifyContent_ = value;
}
onChanged();
} else {
notifyContentBuilder_.mergeFrom(value);
}
bitField0_ |= 0x00000008;
return this;
}
/**
* optional .MessageContent notify_content = 4;
*/
public Builder clearNotifyContent() {
if (notifyContentBuilder_ == null) {
notifyContent_ = cn.wildfirechat.proto.WFCMessage.MessageContent.getDefaultInstance();
onChanged();
} else {
notifyContentBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000008);
return this;
}
/**
* optional .MessageContent notify_content = 4;
*/
public cn.wildfirechat.proto.WFCMessage.MessageContent.Builder getNotifyContentBuilder() {
bitField0_ |= 0x00000008;
onChanged();
return getNotifyContentFieldBuilder().getBuilder();
}
/**
* optional .MessageContent notify_content = 4;
*/
public cn.wildfirechat.proto.WFCMessage.MessageContentOrBuilder getNotifyContentOrBuilder() {
if (notifyContentBuilder_ != null) {
return notifyContentBuilder_.getMessageOrBuilder();
} else {
return notifyContent_;
}
}
/**
* optional .MessageContent notify_content = 4;
*/
private com.google.protobuf.SingleFieldBuilder<
cn.wildfirechat.proto.WFCMessage.MessageContent, cn.wildfirechat.proto.WFCMessage.MessageContent.Builder, cn.wildfirechat.proto.WFCMessage.MessageContentOrBuilder>
getNotifyContentFieldBuilder() {
if (notifyContentBuilder_ == null) {
notifyContentBuilder_ = new com.google.protobuf.SingleFieldBuilder<
cn.wildfirechat.proto.WFCMessage.MessageContent, cn.wildfirechat.proto.WFCMessage.MessageContent.Builder, cn.wildfirechat.proto.WFCMessage.MessageContentOrBuilder>(
notifyContent_,
getParentForChildren(),
isClean());
notifyContent_ = null;
}
return notifyContentBuilder_;
}
// optional string extra = 5;
private java.lang.Object extra_ = "";
/**
* optional string extra = 5;
*/
public boolean hasExtra() {
return ((bitField0_ & 0x00000010) == 0x00000010);
}
/**
* optional string extra = 5;
*/
public java.lang.String getExtra() {
java.lang.Object ref = extra_;
if (!(ref instanceof java.lang.String)) {
java.lang.String s = ((com.google.protobuf.ByteString) ref)
.toStringUtf8();
extra_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* optional string extra = 5;
*/
public com.google.protobuf.ByteString
getExtraBytes() {
java.lang.Object ref = extra_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
extra_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* optional string extra = 5;
*/
public Builder setExtra(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000010;
extra_ = value;
onChanged();
return this;
}
/**
* optional string extra = 5;
*/
public Builder clearExtra() {
bitField0_ = (bitField0_ & ~0x00000010);
extra_ = getDefaultInstance().getExtra();
onChanged();
return this;
}
/**
* optional string extra = 5;
*/
public Builder setExtraBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000010;
extra_ = value;
onChanged();
return this;
}
// @@protoc_insertion_point(builder_scope:AddGroupMemberRequest)
}
static {
defaultInstance = new AddGroupMemberRequest(true);
defaultInstance.initFields();
}
// @@protoc_insertion_point(class_scope:AddGroupMemberRequest)
}
public interface CreateGroupRequestOrBuilder
extends com.google.protobuf.MessageOrBuilder {
// required .Group group = 1;
/**
* required .Group group = 1;
*/
boolean hasGroup();
/**
* required .Group group = 1;
*/
cn.wildfirechat.proto.WFCMessage.Group getGroup();
/**
* required .Group group = 1;
*/
cn.wildfirechat.proto.WFCMessage.GroupOrBuilder getGroupOrBuilder();
// repeated int32 to_line = 2;
/**
* repeated int32 to_line = 2;
*/
java.util.List getToLineList();
/**
* repeated int32 to_line = 2;
*/
int getToLineCount();
/**
* repeated int32 to_line = 2;
*/
int getToLine(int index);
// optional .MessageContent notify_content = 3;
/**
* optional .MessageContent notify_content = 3;
*/
boolean hasNotifyContent();
/**
* optional .MessageContent notify_content = 3;
*/
cn.wildfirechat.proto.WFCMessage.MessageContent getNotifyContent();
/**
* optional .MessageContent notify_content = 3;
*/
cn.wildfirechat.proto.WFCMessage.MessageContentOrBuilder getNotifyContentOrBuilder();
// optional string member_extra = 4;
/**
* optional string member_extra = 4;
*/
boolean hasMemberExtra();
/**
* optional string member_extra = 4;
*/
java.lang.String getMemberExtra();
/**
* optional string member_extra = 4;
*/
com.google.protobuf.ByteString
getMemberExtraBytes();
}
/**
* Protobuf type {@code CreateGroupRequest}
*/
public static final class CreateGroupRequest extends
com.google.protobuf.GeneratedMessage
implements CreateGroupRequestOrBuilder {
// Use CreateGroupRequest.newBuilder() to construct.
private CreateGroupRequest(com.google.protobuf.GeneratedMessage.Builder> builder) {
super(builder);
this.unknownFields = builder.getUnknownFields();
}
private CreateGroupRequest(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); }
private static final CreateGroupRequest defaultInstance;
public static CreateGroupRequest getDefaultInstance() {
return defaultInstance;
}
public CreateGroupRequest getDefaultInstanceForType() {
return defaultInstance;
}
private final com.google.protobuf.UnknownFieldSet unknownFields;
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private CreateGroupRequest(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
initFields();
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;
default: {
if (!parseUnknownField(input, unknownFields,
extensionRegistry, tag)) {
done = true;
}
break;
}
case 10: {
cn.wildfirechat.proto.WFCMessage.Group.Builder subBuilder = null;
if (((bitField0_ & 0x00000001) == 0x00000001)) {
subBuilder = group_.toBuilder();
}
group_ = input.readMessage(cn.wildfirechat.proto.WFCMessage.Group.PARSER, extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(group_);
group_ = subBuilder.buildPartial();
}
bitField0_ |= 0x00000001;
break;
}
case 16: {
if (!((mutable_bitField0_ & 0x00000002) == 0x00000002)) {
toLine_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00000002;
}
toLine_.add(input.readInt32());
break;
}
case 18: {
int length = input.readRawVarint32();
int limit = input.pushLimit(length);
if (!((mutable_bitField0_ & 0x00000002) == 0x00000002) && input.getBytesUntilLimit() > 0) {
toLine_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00000002;
}
while (input.getBytesUntilLimit() > 0) {
toLine_.add(input.readInt32());
}
input.popLimit(limit);
break;
}
case 26: {
cn.wildfirechat.proto.WFCMessage.MessageContent.Builder subBuilder = null;
if (((bitField0_ & 0x00000002) == 0x00000002)) {
subBuilder = notifyContent_.toBuilder();
}
notifyContent_ = input.readMessage(cn.wildfirechat.proto.WFCMessage.MessageContent.PARSER, extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(notifyContent_);
notifyContent_ = subBuilder.buildPartial();
}
bitField0_ |= 0x00000002;
break;
}
case 34: {
bitField0_ |= 0x00000004;
memberExtra_ = input.readBytes();
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e.getMessage()).setUnfinishedMessage(this);
} finally {
if (((mutable_bitField0_ & 0x00000002) == 0x00000002)) {
toLine_ = java.util.Collections.unmodifiableList(toLine_);
}
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return cn.wildfirechat.proto.WFCMessage.internal_static_CreateGroupRequest_descriptor;
}
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable() {
return cn.wildfirechat.proto.WFCMessage.internal_static_CreateGroupRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
cn.wildfirechat.proto.WFCMessage.CreateGroupRequest.class, cn.wildfirechat.proto.WFCMessage.CreateGroupRequest.Builder.class);
}
public static com.google.protobuf.Parser PARSER =
new com.google.protobuf.AbstractParser() {
public CreateGroupRequest parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new CreateGroupRequest(input, extensionRegistry);
}
};
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
private int bitField0_;
// required .Group group = 1;
public static final int GROUP_FIELD_NUMBER = 1;
private cn.wildfirechat.proto.WFCMessage.Group group_;
/**
* required .Group group = 1;
*/
public boolean hasGroup() {
return ((bitField0_ & 0x00000001) == 0x00000001);
}
/**
* required .Group group = 1;
*/
public cn.wildfirechat.proto.WFCMessage.Group getGroup() {
return group_;
}
/**
* required .Group group = 1;
*/
public cn.wildfirechat.proto.WFCMessage.GroupOrBuilder getGroupOrBuilder() {
return group_;
}
// repeated int32 to_line = 2;
public static final int TO_LINE_FIELD_NUMBER = 2;
private java.util.List toLine_;
/**
* repeated int32 to_line = 2;
*/
public java.util.List
getToLineList() {
return toLine_;
}
/**
* repeated int32 to_line = 2;
*/
public int getToLineCount() {
return toLine_.size();
}
/**
* repeated int32 to_line = 2;
*/
public int getToLine(int index) {
return toLine_.get(index);
}
// optional .MessageContent notify_content = 3;
public static final int NOTIFY_CONTENT_FIELD_NUMBER = 3;
private cn.wildfirechat.proto.WFCMessage.MessageContent notifyContent_;
/**
* optional .MessageContent notify_content = 3;
*/
public boolean hasNotifyContent() {
return ((bitField0_ & 0x00000002) == 0x00000002);
}
/**
* optional .MessageContent notify_content = 3;
*/
public cn.wildfirechat.proto.WFCMessage.MessageContent getNotifyContent() {
return notifyContent_;
}
/**
* optional .MessageContent notify_content = 3;
*/
public cn.wildfirechat.proto.WFCMessage.MessageContentOrBuilder getNotifyContentOrBuilder() {
return notifyContent_;
}
// optional string member_extra = 4;
public static final int MEMBER_EXTRA_FIELD_NUMBER = 4;
private java.lang.Object memberExtra_;
/**
* optional string member_extra = 4;
*/
public boolean hasMemberExtra() {
return ((bitField0_ & 0x00000004) == 0x00000004);
}
/**
* optional string member_extra = 4;
*/
public java.lang.String getMemberExtra() {
java.lang.Object ref = memberExtra_;
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()) {
memberExtra_ = s;
}
return s;
}
}
/**
* optional string member_extra = 4;
*/
public com.google.protobuf.ByteString
getMemberExtraBytes() {
java.lang.Object ref = memberExtra_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
memberExtra_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
private void initFields() {
group_ = cn.wildfirechat.proto.WFCMessage.Group.getDefaultInstance();
toLine_ = java.util.Collections.emptyList();
notifyContent_ = cn.wildfirechat.proto.WFCMessage.MessageContent.getDefaultInstance();
memberExtra_ = "";
}
private byte memoizedIsInitialized = -1;
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized != -1) return isInitialized == 1;
if (!hasGroup()) {
memoizedIsInitialized = 0;
return false;
}
if (!getGroup().isInitialized()) {
memoizedIsInitialized = 0;
return false;
}
if (hasNotifyContent()) {
if (!getNotifyContent().isInitialized()) {
memoizedIsInitialized = 0;
return false;
}
}
memoizedIsInitialized = 1;
return true;
}
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
getSerializedSize();
if (((bitField0_ & 0x00000001) == 0x00000001)) {
output.writeMessage(1, group_);
}
for (int i = 0; i < toLine_.size(); i++) {
output.writeInt32(2, toLine_.get(i));
}
if (((bitField0_ & 0x00000002) == 0x00000002)) {
output.writeMessage(3, notifyContent_);
}
if (((bitField0_ & 0x00000004) == 0x00000004)) {
output.writeBytes(4, getMemberExtraBytes());
}
getUnknownFields().writeTo(output);
}
private int memoizedSerializedSize = -1;
public int getSerializedSize() {
int size = memoizedSerializedSize;
if (size != -1) return size;
size = 0;
if (((bitField0_ & 0x00000001) == 0x00000001)) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(1, group_);
}
{
int dataSize = 0;
for (int i = 0; i < toLine_.size(); i++) {
dataSize += com.google.protobuf.CodedOutputStream
.computeInt32SizeNoTag(toLine_.get(i));
}
size += dataSize;
size += 1 * getToLineList().size();
}
if (((bitField0_ & 0x00000002) == 0x00000002)) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(3, notifyContent_);
}
if (((bitField0_ & 0x00000004) == 0x00000004)) {
size += com.google.protobuf.CodedOutputStream
.computeBytesSize(4, getMemberExtraBytes());
}
size += getUnknownFields().getSerializedSize();
memoizedSerializedSize = size;
return size;
}
private static final long serialVersionUID = 0L;
@java.lang.Override
protected java.lang.Object writeReplace()
throws java.io.ObjectStreamException {
return super.writeReplace();
}
public static cn.wildfirechat.proto.WFCMessage.CreateGroupRequest parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static cn.wildfirechat.proto.WFCMessage.CreateGroupRequest parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static cn.wildfirechat.proto.WFCMessage.CreateGroupRequest parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static cn.wildfirechat.proto.WFCMessage.CreateGroupRequest parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static cn.wildfirechat.proto.WFCMessage.CreateGroupRequest parseFrom(java.io.InputStream input)
throws java.io.IOException {
return PARSER.parseFrom(input);
}
public static cn.wildfirechat.proto.WFCMessage.CreateGroupRequest parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return PARSER.parseFrom(input, extensionRegistry);
}
public static cn.wildfirechat.proto.WFCMessage.CreateGroupRequest parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return PARSER.parseDelimitedFrom(input);
}
public static cn.wildfirechat.proto.WFCMessage.CreateGroupRequest parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return PARSER.parseDelimitedFrom(input, extensionRegistry);
}
public static cn.wildfirechat.proto.WFCMessage.CreateGroupRequest parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return PARSER.parseFrom(input);
}
public static cn.wildfirechat.proto.WFCMessage.CreateGroupRequest parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return PARSER.parseFrom(input, extensionRegistry);
}
public static Builder newBuilder() { return Builder.create(); }
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder(cn.wildfirechat.proto.WFCMessage.CreateGroupRequest prototype) {
return newBuilder().mergeFrom(prototype);
}
public Builder toBuilder() { return newBuilder(this); }
@java.lang.Override
protected Builder newBuilderForType(
com.google.protobuf.GeneratedMessage.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
* Protobuf type {@code CreateGroupRequest}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessage.Builder
implements cn.wildfirechat.proto.WFCMessage.CreateGroupRequestOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return cn.wildfirechat.proto.WFCMessage.internal_static_CreateGroupRequest_descriptor;
}
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable() {
return cn.wildfirechat.proto.WFCMessage.internal_static_CreateGroupRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
cn.wildfirechat.proto.WFCMessage.CreateGroupRequest.class, cn.wildfirechat.proto.WFCMessage.CreateGroupRequest.Builder.class);
}
// Construct using cn.wildfirechat.proto.WFCMessage.CreateGroupRequest.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessage.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) {
getGroupFieldBuilder();
getNotifyContentFieldBuilder();
}
}
private static Builder create() {
return new Builder();
}
public Builder clear() {
super.clear();
if (groupBuilder_ == null) {
group_ = cn.wildfirechat.proto.WFCMessage.Group.getDefaultInstance();
} else {
groupBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000001);
toLine_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000002);
if (notifyContentBuilder_ == null) {
notifyContent_ = cn.wildfirechat.proto.WFCMessage.MessageContent.getDefaultInstance();
} else {
notifyContentBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000004);
memberExtra_ = "";
bitField0_ = (bitField0_ & ~0x00000008);
return this;
}
public Builder clone() {
return create().mergeFrom(buildPartial());
}
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return cn.wildfirechat.proto.WFCMessage.internal_static_CreateGroupRequest_descriptor;
}
public cn.wildfirechat.proto.WFCMessage.CreateGroupRequest getDefaultInstanceForType() {
return cn.wildfirechat.proto.WFCMessage.CreateGroupRequest.getDefaultInstance();
}
public cn.wildfirechat.proto.WFCMessage.CreateGroupRequest build() {
cn.wildfirechat.proto.WFCMessage.CreateGroupRequest result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
public cn.wildfirechat.proto.WFCMessage.CreateGroupRequest buildPartial() {
cn.wildfirechat.proto.WFCMessage.CreateGroupRequest result = new cn.wildfirechat.proto.WFCMessage.CreateGroupRequest(this);
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
if (((from_bitField0_ & 0x00000001) == 0x00000001)) {
to_bitField0_ |= 0x00000001;
}
if (groupBuilder_ == null) {
result.group_ = group_;
} else {
result.group_ = groupBuilder_.build();
}
if (((bitField0_ & 0x00000002) == 0x00000002)) {
toLine_ = java.util.Collections.unmodifiableList(toLine_);
bitField0_ = (bitField0_ & ~0x00000002);
}
result.toLine_ = toLine_;
if (((from_bitField0_ & 0x00000004) == 0x00000004)) {
to_bitField0_ |= 0x00000002;
}
if (notifyContentBuilder_ == null) {
result.notifyContent_ = notifyContent_;
} else {
result.notifyContent_ = notifyContentBuilder_.build();
}
if (((from_bitField0_ & 0x00000008) == 0x00000008)) {
to_bitField0_ |= 0x00000004;
}
result.memberExtra_ = memberExtra_;
result.bitField0_ = to_bitField0_;
onBuilt();
return result;
}
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof cn.wildfirechat.proto.WFCMessage.CreateGroupRequest) {
return mergeFrom((cn.wildfirechat.proto.WFCMessage.CreateGroupRequest)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(cn.wildfirechat.proto.WFCMessage.CreateGroupRequest other) {
if (other == cn.wildfirechat.proto.WFCMessage.CreateGroupRequest.getDefaultInstance()) return this;
if (other.hasGroup()) {
mergeGroup(other.getGroup());
}
if (!other.toLine_.isEmpty()) {
if (toLine_.isEmpty()) {
toLine_ = other.toLine_;
bitField0_ = (bitField0_ & ~0x00000002);
} else {
ensureToLineIsMutable();
toLine_.addAll(other.toLine_);
}
onChanged();
}
if (other.hasNotifyContent()) {
mergeNotifyContent(other.getNotifyContent());
}
if (other.hasMemberExtra()) {
bitField0_ |= 0x00000008;
memberExtra_ = other.memberExtra_;
onChanged();
}
this.mergeUnknownFields(other.getUnknownFields());
return this;
}
public final boolean isInitialized() {
if (!hasGroup()) {
return false;
}
if (!getGroup().isInitialized()) {
return false;
}
if (hasNotifyContent()) {
if (!getNotifyContent().isInitialized()) {
return false;
}
}
return true;
}
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
cn.wildfirechat.proto.WFCMessage.CreateGroupRequest parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (cn.wildfirechat.proto.WFCMessage.CreateGroupRequest) e.getUnfinishedMessage();
throw e;
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
// required .Group group = 1;
private cn.wildfirechat.proto.WFCMessage.Group group_ = cn.wildfirechat.proto.WFCMessage.Group.getDefaultInstance();
private com.google.protobuf.SingleFieldBuilder<
cn.wildfirechat.proto.WFCMessage.Group, cn.wildfirechat.proto.WFCMessage.Group.Builder, cn.wildfirechat.proto.WFCMessage.GroupOrBuilder> groupBuilder_;
/**
* required .Group group = 1;
*/
public boolean hasGroup() {
return ((bitField0_ & 0x00000001) == 0x00000001);
}
/**
* required .Group group = 1;
*/
public cn.wildfirechat.proto.WFCMessage.Group getGroup() {
if (groupBuilder_ == null) {
return group_;
} else {
return groupBuilder_.getMessage();
}
}
/**
* required .Group group = 1;
*/
public Builder setGroup(cn.wildfirechat.proto.WFCMessage.Group value) {
if (groupBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
group_ = value;
onChanged();
} else {
groupBuilder_.setMessage(value);
}
bitField0_ |= 0x00000001;
return this;
}
/**
* required .Group group = 1;
*/
public Builder setGroup(
cn.wildfirechat.proto.WFCMessage.Group.Builder builderForValue) {
if (groupBuilder_ == null) {
group_ = builderForValue.build();
onChanged();
} else {
groupBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000001;
return this;
}
/**
* required .Group group = 1;
*/
public Builder mergeGroup(cn.wildfirechat.proto.WFCMessage.Group value) {
if (groupBuilder_ == null) {
if (((bitField0_ & 0x00000001) == 0x00000001) &&
group_ != cn.wildfirechat.proto.WFCMessage.Group.getDefaultInstance()) {
group_ =
cn.wildfirechat.proto.WFCMessage.Group.newBuilder(group_).mergeFrom(value).buildPartial();
} else {
group_ = value;
}
onChanged();
} else {
groupBuilder_.mergeFrom(value);
}
bitField0_ |= 0x00000001;
return this;
}
/**
* required .Group group = 1;
*/
public Builder clearGroup() {
if (groupBuilder_ == null) {
group_ = cn.wildfirechat.proto.WFCMessage.Group.getDefaultInstance();
onChanged();
} else {
groupBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000001);
return this;
}
/**
* required .Group group = 1;
*/
public cn.wildfirechat.proto.WFCMessage.Group.Builder getGroupBuilder() {
bitField0_ |= 0x00000001;
onChanged();
return getGroupFieldBuilder().getBuilder();
}
/**
* required .Group group = 1;
*/
public cn.wildfirechat.proto.WFCMessage.GroupOrBuilder getGroupOrBuilder() {
if (groupBuilder_ != null) {
return groupBuilder_.getMessageOrBuilder();
} else {
return group_;
}
}
/**
* required .Group group = 1;
*/
private com.google.protobuf.SingleFieldBuilder<
cn.wildfirechat.proto.WFCMessage.Group, cn.wildfirechat.proto.WFCMessage.Group.Builder, cn.wildfirechat.proto.WFCMessage.GroupOrBuilder>
getGroupFieldBuilder() {
if (groupBuilder_ == null) {
groupBuilder_ = new com.google.protobuf.SingleFieldBuilder<
cn.wildfirechat.proto.WFCMessage.Group, cn.wildfirechat.proto.WFCMessage.Group.Builder, cn.wildfirechat.proto.WFCMessage.GroupOrBuilder>(
group_,
getParentForChildren(),
isClean());
group_ = null;
}
return groupBuilder_;
}
// repeated int32 to_line = 2;
private java.util.List toLine_ = java.util.Collections.emptyList();
private void ensureToLineIsMutable() {
if (!((bitField0_ & 0x00000002) == 0x00000002)) {
toLine_ = new java.util.ArrayList(toLine_);
bitField0_ |= 0x00000002;
}
}
/**
* repeated int32 to_line = 2;
*/
public java.util.List
getToLineList() {
return java.util.Collections.unmodifiableList(toLine_);
}
/**
* repeated int32 to_line = 2;
*/
public int getToLineCount() {
return toLine_.size();
}
/**
* repeated int32 to_line = 2;
*/
public int getToLine(int index) {
return toLine_.get(index);
}
/**
* repeated int32 to_line = 2;
*/
public Builder setToLine(
int index, int value) {
ensureToLineIsMutable();
toLine_.set(index, value);
onChanged();
return this;
}
/**
* repeated int32 to_line = 2;
*/
public Builder addToLine(int value) {
ensureToLineIsMutable();
toLine_.add(value);
onChanged();
return this;
}
/**
* repeated int32 to_line = 2;
*/
public Builder addAllToLine(
java.lang.Iterable extends java.lang.Integer> values) {
ensureToLineIsMutable();
super.addAll(values, toLine_);
onChanged();
return this;
}
/**
* repeated int32 to_line = 2;
*/
public Builder clearToLine() {
toLine_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000002);
onChanged();
return this;
}
// optional .MessageContent notify_content = 3;
private cn.wildfirechat.proto.WFCMessage.MessageContent notifyContent_ = cn.wildfirechat.proto.WFCMessage.MessageContent.getDefaultInstance();
private com.google.protobuf.SingleFieldBuilder<
cn.wildfirechat.proto.WFCMessage.MessageContent, cn.wildfirechat.proto.WFCMessage.MessageContent.Builder, cn.wildfirechat.proto.WFCMessage.MessageContentOrBuilder> notifyContentBuilder_;
/**
* optional .MessageContent notify_content = 3;
*/
public boolean hasNotifyContent() {
return ((bitField0_ & 0x00000004) == 0x00000004);
}
/**
* optional .MessageContent notify_content = 3;
*/
public cn.wildfirechat.proto.WFCMessage.MessageContent getNotifyContent() {
if (notifyContentBuilder_ == null) {
return notifyContent_;
} else {
return notifyContentBuilder_.getMessage();
}
}
/**
* optional .MessageContent notify_content = 3;
*/
public Builder setNotifyContent(cn.wildfirechat.proto.WFCMessage.MessageContent value) {
if (notifyContentBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
notifyContent_ = value;
onChanged();
} else {
notifyContentBuilder_.setMessage(value);
}
bitField0_ |= 0x00000004;
return this;
}
/**
* optional .MessageContent notify_content = 3;
*/
public Builder setNotifyContent(
cn.wildfirechat.proto.WFCMessage.MessageContent.Builder builderForValue) {
if (notifyContentBuilder_ == null) {
notifyContent_ = builderForValue.build();
onChanged();
} else {
notifyContentBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000004;
return this;
}
/**
* optional .MessageContent notify_content = 3;
*/
public Builder mergeNotifyContent(cn.wildfirechat.proto.WFCMessage.MessageContent value) {
if (notifyContentBuilder_ == null) {
if (((bitField0_ & 0x00000004) == 0x00000004) &&
notifyContent_ != cn.wildfirechat.proto.WFCMessage.MessageContent.getDefaultInstance()) {
notifyContent_ =
cn.wildfirechat.proto.WFCMessage.MessageContent.newBuilder(notifyContent_).mergeFrom(value).buildPartial();
} else {
notifyContent_ = value;
}
onChanged();
} else {
notifyContentBuilder_.mergeFrom(value);
}
bitField0_ |= 0x00000004;
return this;
}
/**
* optional .MessageContent notify_content = 3;
*/
public Builder clearNotifyContent() {
if (notifyContentBuilder_ == null) {
notifyContent_ = cn.wildfirechat.proto.WFCMessage.MessageContent.getDefaultInstance();
onChanged();
} else {
notifyContentBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000004);
return this;
}
/**
* optional .MessageContent notify_content = 3;
*/
public cn.wildfirechat.proto.WFCMessage.MessageContent.Builder getNotifyContentBuilder() {
bitField0_ |= 0x00000004;
onChanged();
return getNotifyContentFieldBuilder().getBuilder();
}
/**
* optional .MessageContent notify_content = 3;
*/
public cn.wildfirechat.proto.WFCMessage.MessageContentOrBuilder getNotifyContentOrBuilder() {
if (notifyContentBuilder_ != null) {
return notifyContentBuilder_.getMessageOrBuilder();
} else {
return notifyContent_;
}
}
/**
* optional .MessageContent notify_content = 3;
*/
private com.google.protobuf.SingleFieldBuilder<
cn.wildfirechat.proto.WFCMessage.MessageContent, cn.wildfirechat.proto.WFCMessage.MessageContent.Builder, cn.wildfirechat.proto.WFCMessage.MessageContentOrBuilder>
getNotifyContentFieldBuilder() {
if (notifyContentBuilder_ == null) {
notifyContentBuilder_ = new com.google.protobuf.SingleFieldBuilder<
cn.wildfirechat.proto.WFCMessage.MessageContent, cn.wildfirechat.proto.WFCMessage.MessageContent.Builder, cn.wildfirechat.proto.WFCMessage.MessageContentOrBuilder>(
notifyContent_,
getParentForChildren(),
isClean());
notifyContent_ = null;
}
return notifyContentBuilder_;
}
// optional string member_extra = 4;
private java.lang.Object memberExtra_ = "";
/**
* optional string member_extra = 4;
*/
public boolean hasMemberExtra() {
return ((bitField0_ & 0x00000008) == 0x00000008);
}
/**
* optional string member_extra = 4;
*/
public java.lang.String getMemberExtra() {
java.lang.Object ref = memberExtra_;
if (!(ref instanceof java.lang.String)) {
java.lang.String s = ((com.google.protobuf.ByteString) ref)
.toStringUtf8();
memberExtra_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* optional string member_extra = 4;
*/
public com.google.protobuf.ByteString
getMemberExtraBytes() {
java.lang.Object ref = memberExtra_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
memberExtra_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* optional string member_extra = 4;
*/
public Builder setMemberExtra(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000008;
memberExtra_ = value;
onChanged();
return this;
}
/**
* optional string member_extra = 4;
*/
public Builder clearMemberExtra() {
bitField0_ = (bitField0_ & ~0x00000008);
memberExtra_ = getDefaultInstance().getMemberExtra();
onChanged();
return this;
}
/**
* optional string member_extra = 4;
*/
public Builder setMemberExtraBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000008;
memberExtra_ = value;
onChanged();
return this;
}
// @@protoc_insertion_point(builder_scope:CreateGroupRequest)
}
static {
defaultInstance = new CreateGroupRequest(true);
defaultInstance.initFields();
}
// @@protoc_insertion_point(class_scope:CreateGroupRequest)
}
public interface DismissGroupRequestOrBuilder
extends com.google.protobuf.MessageOrBuilder {
// required string group_id = 1;
/**
* required string group_id = 1;
*/
boolean hasGroupId();
/**
* required string group_id = 1;
*/
java.lang.String getGroupId();
/**
* required string group_id = 1;
*/
com.google.protobuf.ByteString
getGroupIdBytes();
// repeated int32 to_line = 2;
/**
* repeated int32 to_line = 2;
*/
java.util.List getToLineList();
/**
* repeated int32 to_line = 2;
*/
int getToLineCount();
/**
* repeated int32 to_line = 2;
*/
int getToLine(int index);
// optional .MessageContent notify_content = 3;
/**
* optional .MessageContent notify_content = 3;
*/
boolean hasNotifyContent();
/**
* optional .MessageContent notify_content = 3;
*/
cn.wildfirechat.proto.WFCMessage.MessageContent getNotifyContent();
/**
* optional .MessageContent notify_content = 3;
*/
cn.wildfirechat.proto.WFCMessage.MessageContentOrBuilder getNotifyContentOrBuilder();
}
/**
* Protobuf type {@code DismissGroupRequest}
*/
public static final class DismissGroupRequest extends
com.google.protobuf.GeneratedMessage
implements DismissGroupRequestOrBuilder {
// Use DismissGroupRequest.newBuilder() to construct.
private DismissGroupRequest(com.google.protobuf.GeneratedMessage.Builder> builder) {
super(builder);
this.unknownFields = builder.getUnknownFields();
}
private DismissGroupRequest(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); }
private static final DismissGroupRequest defaultInstance;
public static DismissGroupRequest getDefaultInstance() {
return defaultInstance;
}
public DismissGroupRequest getDefaultInstanceForType() {
return defaultInstance;
}
private final com.google.protobuf.UnknownFieldSet unknownFields;
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private DismissGroupRequest(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
initFields();
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;
default: {
if (!parseUnknownField(input, unknownFields,
extensionRegistry, tag)) {
done = true;
}
break;
}
case 10: {
bitField0_ |= 0x00000001;
groupId_ = input.readBytes();
break;
}
case 16: {
if (!((mutable_bitField0_ & 0x00000002) == 0x00000002)) {
toLine_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00000002;
}
toLine_.add(input.readInt32());
break;
}
case 18: {
int length = input.readRawVarint32();
int limit = input.pushLimit(length);
if (!((mutable_bitField0_ & 0x00000002) == 0x00000002) && input.getBytesUntilLimit() > 0) {
toLine_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00000002;
}
while (input.getBytesUntilLimit() > 0) {
toLine_.add(input.readInt32());
}
input.popLimit(limit);
break;
}
case 26: {
cn.wildfirechat.proto.WFCMessage.MessageContent.Builder subBuilder = null;
if (((bitField0_ & 0x00000002) == 0x00000002)) {
subBuilder = notifyContent_.toBuilder();
}
notifyContent_ = input.readMessage(cn.wildfirechat.proto.WFCMessage.MessageContent.PARSER, extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(notifyContent_);
notifyContent_ = subBuilder.buildPartial();
}
bitField0_ |= 0x00000002;
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e.getMessage()).setUnfinishedMessage(this);
} finally {
if (((mutable_bitField0_ & 0x00000002) == 0x00000002)) {
toLine_ = java.util.Collections.unmodifiableList(toLine_);
}
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return cn.wildfirechat.proto.WFCMessage.internal_static_DismissGroupRequest_descriptor;
}
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable() {
return cn.wildfirechat.proto.WFCMessage.internal_static_DismissGroupRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
cn.wildfirechat.proto.WFCMessage.DismissGroupRequest.class, cn.wildfirechat.proto.WFCMessage.DismissGroupRequest.Builder.class);
}
public static com.google.protobuf.Parser PARSER =
new com.google.protobuf.AbstractParser() {
public DismissGroupRequest parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new DismissGroupRequest(input, extensionRegistry);
}
};
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
private int bitField0_;
// required string group_id = 1;
public static final int GROUP_ID_FIELD_NUMBER = 1;
private java.lang.Object groupId_;
/**
* required string group_id = 1;
*/
public boolean hasGroupId() {
return ((bitField0_ & 0x00000001) == 0x00000001);
}
/**
* required string group_id = 1;
*/
public java.lang.String getGroupId() {
java.lang.Object ref = groupId_;
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()) {
groupId_ = s;
}
return s;
}
}
/**
* required string group_id = 1;
*/
public com.google.protobuf.ByteString
getGroupIdBytes() {
java.lang.Object ref = groupId_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
groupId_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
// repeated int32 to_line = 2;
public static final int TO_LINE_FIELD_NUMBER = 2;
private java.util.List toLine_;
/**
* repeated int32 to_line = 2;
*/
public java.util.List
getToLineList() {
return toLine_;
}
/**
* repeated int32 to_line = 2;
*/
public int getToLineCount() {
return toLine_.size();
}
/**
* repeated int32 to_line = 2;
*/
public int getToLine(int index) {
return toLine_.get(index);
}
// optional .MessageContent notify_content = 3;
public static final int NOTIFY_CONTENT_FIELD_NUMBER = 3;
private cn.wildfirechat.proto.WFCMessage.MessageContent notifyContent_;
/**
* optional .MessageContent notify_content = 3;
*/
public boolean hasNotifyContent() {
return ((bitField0_ & 0x00000002) == 0x00000002);
}
/**
* optional .MessageContent notify_content = 3;
*/
public cn.wildfirechat.proto.WFCMessage.MessageContent getNotifyContent() {
return notifyContent_;
}
/**
* optional .MessageContent notify_content = 3;
*/
public cn.wildfirechat.proto.WFCMessage.MessageContentOrBuilder getNotifyContentOrBuilder() {
return notifyContent_;
}
private void initFields() {
groupId_ = "";
toLine_ = java.util.Collections.emptyList();
notifyContent_ = cn.wildfirechat.proto.WFCMessage.MessageContent.getDefaultInstance();
}
private byte memoizedIsInitialized = -1;
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized != -1) return isInitialized == 1;
if (!hasGroupId()) {
memoizedIsInitialized = 0;
return false;
}
if (hasNotifyContent()) {
if (!getNotifyContent().isInitialized()) {
memoizedIsInitialized = 0;
return false;
}
}
memoizedIsInitialized = 1;
return true;
}
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
getSerializedSize();
if (((bitField0_ & 0x00000001) == 0x00000001)) {
output.writeBytes(1, getGroupIdBytes());
}
for (int i = 0; i < toLine_.size(); i++) {
output.writeInt32(2, toLine_.get(i));
}
if (((bitField0_ & 0x00000002) == 0x00000002)) {
output.writeMessage(3, notifyContent_);
}
getUnknownFields().writeTo(output);
}
private int memoizedSerializedSize = -1;
public int getSerializedSize() {
int size = memoizedSerializedSize;
if (size != -1) return size;
size = 0;
if (((bitField0_ & 0x00000001) == 0x00000001)) {
size += com.google.protobuf.CodedOutputStream
.computeBytesSize(1, getGroupIdBytes());
}
{
int dataSize = 0;
for (int i = 0; i < toLine_.size(); i++) {
dataSize += com.google.protobuf.CodedOutputStream
.computeInt32SizeNoTag(toLine_.get(i));
}
size += dataSize;
size += 1 * getToLineList().size();
}
if (((bitField0_ & 0x00000002) == 0x00000002)) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(3, notifyContent_);
}
size += getUnknownFields().getSerializedSize();
memoizedSerializedSize = size;
return size;
}
private static final long serialVersionUID = 0L;
@java.lang.Override
protected java.lang.Object writeReplace()
throws java.io.ObjectStreamException {
return super.writeReplace();
}
public static cn.wildfirechat.proto.WFCMessage.DismissGroupRequest parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static cn.wildfirechat.proto.WFCMessage.DismissGroupRequest parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static cn.wildfirechat.proto.WFCMessage.DismissGroupRequest parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static cn.wildfirechat.proto.WFCMessage.DismissGroupRequest parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static cn.wildfirechat.proto.WFCMessage.DismissGroupRequest parseFrom(java.io.InputStream input)
throws java.io.IOException {
return PARSER.parseFrom(input);
}
public static cn.wildfirechat.proto.WFCMessage.DismissGroupRequest parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return PARSER.parseFrom(input, extensionRegistry);
}
public static cn.wildfirechat.proto.WFCMessage.DismissGroupRequest parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return PARSER.parseDelimitedFrom(input);
}
public static cn.wildfirechat.proto.WFCMessage.DismissGroupRequest parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return PARSER.parseDelimitedFrom(input, extensionRegistry);
}
public static cn.wildfirechat.proto.WFCMessage.DismissGroupRequest parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return PARSER.parseFrom(input);
}
public static cn.wildfirechat.proto.WFCMessage.DismissGroupRequest parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return PARSER.parseFrom(input, extensionRegistry);
}
public static Builder newBuilder() { return Builder.create(); }
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder(cn.wildfirechat.proto.WFCMessage.DismissGroupRequest prototype) {
return newBuilder().mergeFrom(prototype);
}
public Builder toBuilder() { return newBuilder(this); }
@java.lang.Override
protected Builder newBuilderForType(
com.google.protobuf.GeneratedMessage.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
* Protobuf type {@code DismissGroupRequest}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessage.Builder
implements cn.wildfirechat.proto.WFCMessage.DismissGroupRequestOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return cn.wildfirechat.proto.WFCMessage.internal_static_DismissGroupRequest_descriptor;
}
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable() {
return cn.wildfirechat.proto.WFCMessage.internal_static_DismissGroupRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
cn.wildfirechat.proto.WFCMessage.DismissGroupRequest.class, cn.wildfirechat.proto.WFCMessage.DismissGroupRequest.Builder.class);
}
// Construct using cn.wildfirechat.proto.WFCMessage.DismissGroupRequest.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessage.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) {
getNotifyContentFieldBuilder();
}
}
private static Builder create() {
return new Builder();
}
public Builder clear() {
super.clear();
groupId_ = "";
bitField0_ = (bitField0_ & ~0x00000001);
toLine_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000002);
if (notifyContentBuilder_ == null) {
notifyContent_ = cn.wildfirechat.proto.WFCMessage.MessageContent.getDefaultInstance();
} else {
notifyContentBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000004);
return this;
}
public Builder clone() {
return create().mergeFrom(buildPartial());
}
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return cn.wildfirechat.proto.WFCMessage.internal_static_DismissGroupRequest_descriptor;
}
public cn.wildfirechat.proto.WFCMessage.DismissGroupRequest getDefaultInstanceForType() {
return cn.wildfirechat.proto.WFCMessage.DismissGroupRequest.getDefaultInstance();
}
public cn.wildfirechat.proto.WFCMessage.DismissGroupRequest build() {
cn.wildfirechat.proto.WFCMessage.DismissGroupRequest result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
public cn.wildfirechat.proto.WFCMessage.DismissGroupRequest buildPartial() {
cn.wildfirechat.proto.WFCMessage.DismissGroupRequest result = new cn.wildfirechat.proto.WFCMessage.DismissGroupRequest(this);
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
if (((from_bitField0_ & 0x00000001) == 0x00000001)) {
to_bitField0_ |= 0x00000001;
}
result.groupId_ = groupId_;
if (((bitField0_ & 0x00000002) == 0x00000002)) {
toLine_ = java.util.Collections.unmodifiableList(toLine_);
bitField0_ = (bitField0_ & ~0x00000002);
}
result.toLine_ = toLine_;
if (((from_bitField0_ & 0x00000004) == 0x00000004)) {
to_bitField0_ |= 0x00000002;
}
if (notifyContentBuilder_ == null) {
result.notifyContent_ = notifyContent_;
} else {
result.notifyContent_ = notifyContentBuilder_.build();
}
result.bitField0_ = to_bitField0_;
onBuilt();
return result;
}
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof cn.wildfirechat.proto.WFCMessage.DismissGroupRequest) {
return mergeFrom((cn.wildfirechat.proto.WFCMessage.DismissGroupRequest)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(cn.wildfirechat.proto.WFCMessage.DismissGroupRequest other) {
if (other == cn.wildfirechat.proto.WFCMessage.DismissGroupRequest.getDefaultInstance()) return this;
if (other.hasGroupId()) {
bitField0_ |= 0x00000001;
groupId_ = other.groupId_;
onChanged();
}
if (!other.toLine_.isEmpty()) {
if (toLine_.isEmpty()) {
toLine_ = other.toLine_;
bitField0_ = (bitField0_ & ~0x00000002);
} else {
ensureToLineIsMutable();
toLine_.addAll(other.toLine_);
}
onChanged();
}
if (other.hasNotifyContent()) {
mergeNotifyContent(other.getNotifyContent());
}
this.mergeUnknownFields(other.getUnknownFields());
return this;
}
public final boolean isInitialized() {
if (!hasGroupId()) {
return false;
}
if (hasNotifyContent()) {
if (!getNotifyContent().isInitialized()) {
return false;
}
}
return true;
}
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
cn.wildfirechat.proto.WFCMessage.DismissGroupRequest parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (cn.wildfirechat.proto.WFCMessage.DismissGroupRequest) e.getUnfinishedMessage();
throw e;
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
// required string group_id = 1;
private java.lang.Object groupId_ = "";
/**
* required string group_id = 1;
*/
public boolean hasGroupId() {
return ((bitField0_ & 0x00000001) == 0x00000001);
}
/**
* required string group_id = 1;
*/
public java.lang.String getGroupId() {
java.lang.Object ref = groupId_;
if (!(ref instanceof java.lang.String)) {
java.lang.String s = ((com.google.protobuf.ByteString) ref)
.toStringUtf8();
groupId_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* required string group_id = 1;
*/
public com.google.protobuf.ByteString
getGroupIdBytes() {
java.lang.Object ref = groupId_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
groupId_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* required string group_id = 1;
*/
public Builder setGroupId(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000001;
groupId_ = value;
onChanged();
return this;
}
/**
* required string group_id = 1;
*/
public Builder clearGroupId() {
bitField0_ = (bitField0_ & ~0x00000001);
groupId_ = getDefaultInstance().getGroupId();
onChanged();
return this;
}
/**
* required string group_id = 1;
*/
public Builder setGroupIdBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000001;
groupId_ = value;
onChanged();
return this;
}
// repeated int32 to_line = 2;
private java.util.List toLine_ = java.util.Collections.emptyList();
private void ensureToLineIsMutable() {
if (!((bitField0_ & 0x00000002) == 0x00000002)) {
toLine_ = new java.util.ArrayList(toLine_);
bitField0_ |= 0x00000002;
}
}
/**
* repeated int32 to_line = 2;
*/
public java.util.List
getToLineList() {
return java.util.Collections.unmodifiableList(toLine_);
}
/**
* repeated int32 to_line = 2;
*/
public int getToLineCount() {
return toLine_.size();
}
/**
* repeated int32 to_line = 2;
*/
public int getToLine(int index) {
return toLine_.get(index);
}
/**
* repeated int32 to_line = 2;
*/
public Builder setToLine(
int index, int value) {
ensureToLineIsMutable();
toLine_.set(index, value);
onChanged();
return this;
}
/**
* repeated int32 to_line = 2;
*/
public Builder addToLine(int value) {
ensureToLineIsMutable();
toLine_.add(value);
onChanged();
return this;
}
/**
* repeated int32 to_line = 2;
*/
public Builder addAllToLine(
java.lang.Iterable extends java.lang.Integer> values) {
ensureToLineIsMutable();
super.addAll(values, toLine_);
onChanged();
return this;
}
/**
* repeated int32 to_line = 2;
*/
public Builder clearToLine() {
toLine_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000002);
onChanged();
return this;
}
// optional .MessageContent notify_content = 3;
private cn.wildfirechat.proto.WFCMessage.MessageContent notifyContent_ = cn.wildfirechat.proto.WFCMessage.MessageContent.getDefaultInstance();
private com.google.protobuf.SingleFieldBuilder<
cn.wildfirechat.proto.WFCMessage.MessageContent, cn.wildfirechat.proto.WFCMessage.MessageContent.Builder, cn.wildfirechat.proto.WFCMessage.MessageContentOrBuilder> notifyContentBuilder_;
/**
* optional .MessageContent notify_content = 3;
*/
public boolean hasNotifyContent() {
return ((bitField0_ & 0x00000004) == 0x00000004);
}
/**
* optional .MessageContent notify_content = 3;
*/
public cn.wildfirechat.proto.WFCMessage.MessageContent getNotifyContent() {
if (notifyContentBuilder_ == null) {
return notifyContent_;
} else {
return notifyContentBuilder_.getMessage();
}
}
/**
* optional .MessageContent notify_content = 3;
*/
public Builder setNotifyContent(cn.wildfirechat.proto.WFCMessage.MessageContent value) {
if (notifyContentBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
notifyContent_ = value;
onChanged();
} else {
notifyContentBuilder_.setMessage(value);
}
bitField0_ |= 0x00000004;
return this;
}
/**
* optional .MessageContent notify_content = 3;
*/
public Builder setNotifyContent(
cn.wildfirechat.proto.WFCMessage.MessageContent.Builder builderForValue) {
if (notifyContentBuilder_ == null) {
notifyContent_ = builderForValue.build();
onChanged();
} else {
notifyContentBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000004;
return this;
}
/**
* optional .MessageContent notify_content = 3;
*/
public Builder mergeNotifyContent(cn.wildfirechat.proto.WFCMessage.MessageContent value) {
if (notifyContentBuilder_ == null) {
if (((bitField0_ & 0x00000004) == 0x00000004) &&
notifyContent_ != cn.wildfirechat.proto.WFCMessage.MessageContent.getDefaultInstance()) {
notifyContent_ =
cn.wildfirechat.proto.WFCMessage.MessageContent.newBuilder(notifyContent_).mergeFrom(value).buildPartial();
} else {
notifyContent_ = value;
}
onChanged();
} else {
notifyContentBuilder_.mergeFrom(value);
}
bitField0_ |= 0x00000004;
return this;
}
/**
* optional .MessageContent notify_content = 3;
*/
public Builder clearNotifyContent() {
if (notifyContentBuilder_ == null) {
notifyContent_ = cn.wildfirechat.proto.WFCMessage.MessageContent.getDefaultInstance();
onChanged();
} else {
notifyContentBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000004);
return this;
}
/**
* optional .MessageContent notify_content = 3;
*/
public cn.wildfirechat.proto.WFCMessage.MessageContent.Builder getNotifyContentBuilder() {
bitField0_ |= 0x00000004;
onChanged();
return getNotifyContentFieldBuilder().getBuilder();
}
/**
* optional .MessageContent notify_content = 3;
*/
public cn.wildfirechat.proto.WFCMessage.MessageContentOrBuilder getNotifyContentOrBuilder() {
if (notifyContentBuilder_ != null) {
return notifyContentBuilder_.getMessageOrBuilder();
} else {
return notifyContent_;
}
}
/**
* optional .MessageContent notify_content = 3;
*/
private com.google.protobuf.SingleFieldBuilder<
cn.wildfirechat.proto.WFCMessage.MessageContent, cn.wildfirechat.proto.WFCMessage.MessageContent.Builder, cn.wildfirechat.proto.WFCMessage.MessageContentOrBuilder>
getNotifyContentFieldBuilder() {
if (notifyContentBuilder_ == null) {
notifyContentBuilder_ = new com.google.protobuf.SingleFieldBuilder<
cn.wildfirechat.proto.WFCMessage.MessageContent, cn.wildfirechat.proto.WFCMessage.MessageContent.Builder, cn.wildfirechat.proto.WFCMessage.MessageContentOrBuilder>(
notifyContent_,
getParentForChildren(),
isClean());
notifyContent_ = null;
}
return notifyContentBuilder_;
}
// @@protoc_insertion_point(builder_scope:DismissGroupRequest)
}
static {
defaultInstance = new DismissGroupRequest(true);
defaultInstance.initFields();
}
// @@protoc_insertion_point(class_scope:DismissGroupRequest)
}
public interface FriendRequestOrBuilder
extends com.google.protobuf.MessageOrBuilder {
// optional string from_uid = 1;
/**
* optional string from_uid = 1;
*/
boolean hasFromUid();
/**
* optional string from_uid = 1;
*/
java.lang.String getFromUid();
/**
* optional string from_uid = 1;
*/
com.google.protobuf.ByteString
getFromUidBytes();
// required string to_uid = 2;
/**
* required string to_uid = 2;
*/
boolean hasToUid();
/**
* required string to_uid = 2;
*/
java.lang.String getToUid();
/**
* required string to_uid = 2;
*/
com.google.protobuf.ByteString
getToUidBytes();
// required string reason = 3;
/**
* required string reason = 3;
*/
boolean hasReason();
/**
* required string reason = 3;
*/
java.lang.String getReason();
/**
* required string reason = 3;
*/
com.google.protobuf.ByteString
getReasonBytes();
// optional int32 status = 4;
/**
* optional int32 status = 4;
*/
boolean hasStatus();
/**
* optional int32 status = 4;
*/
int getStatus();
// optional int64 update_dt = 5;
/**
* optional int64 update_dt = 5;
*/
boolean hasUpdateDt();
/**
* optional int64 update_dt = 5;
*/
long getUpdateDt();
// optional bool from_read_status = 6;
/**
* optional bool from_read_status = 6;
*/
boolean hasFromReadStatus();
/**
* optional bool from_read_status = 6;
*/
boolean getFromReadStatus();
// optional bool to_read_status = 7;
/**
* optional bool to_read_status = 7;
*/
boolean hasToReadStatus();
/**
* optional bool to_read_status = 7;
*/
boolean getToReadStatus();
// optional string extra = 8;
/**
* optional string extra = 8;
*/
boolean hasExtra();
/**
* optional string extra = 8;
*/
java.lang.String getExtra();
/**
* optional string extra = 8;
*/
com.google.protobuf.ByteString
getExtraBytes();
}
/**
* Protobuf type {@code FriendRequest}
*/
public static final class FriendRequest extends
com.google.protobuf.GeneratedMessage
implements FriendRequestOrBuilder {
// Use FriendRequest.newBuilder() to construct.
private FriendRequest(com.google.protobuf.GeneratedMessage.Builder> builder) {
super(builder);
this.unknownFields = builder.getUnknownFields();
}
private FriendRequest(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); }
private static final FriendRequest defaultInstance;
public static FriendRequest getDefaultInstance() {
return defaultInstance;
}
public FriendRequest getDefaultInstanceForType() {
return defaultInstance;
}
private final com.google.protobuf.UnknownFieldSet unknownFields;
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private FriendRequest(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
initFields();
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;
default: {
if (!parseUnknownField(input, unknownFields,
extensionRegistry, tag)) {
done = true;
}
break;
}
case 10: {
bitField0_ |= 0x00000001;
fromUid_ = input.readBytes();
break;
}
case 18: {
bitField0_ |= 0x00000002;
toUid_ = input.readBytes();
break;
}
case 26: {
bitField0_ |= 0x00000004;
reason_ = input.readBytes();
break;
}
case 32: {
bitField0_ |= 0x00000008;
status_ = input.readInt32();
break;
}
case 40: {
bitField0_ |= 0x00000010;
updateDt_ = input.readInt64();
break;
}
case 48: {
bitField0_ |= 0x00000020;
fromReadStatus_ = input.readBool();
break;
}
case 56: {
bitField0_ |= 0x00000040;
toReadStatus_ = input.readBool();
break;
}
case 66: {
bitField0_ |= 0x00000080;
extra_ = input.readBytes();
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e.getMessage()).setUnfinishedMessage(this);
} finally {
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return cn.wildfirechat.proto.WFCMessage.internal_static_FriendRequest_descriptor;
}
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable() {
return cn.wildfirechat.proto.WFCMessage.internal_static_FriendRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
cn.wildfirechat.proto.WFCMessage.FriendRequest.class, cn.wildfirechat.proto.WFCMessage.FriendRequest.Builder.class);
}
public static com.google.protobuf.Parser PARSER =
new com.google.protobuf.AbstractParser() {
public FriendRequest parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new FriendRequest(input, extensionRegistry);
}
};
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
private int bitField0_;
// optional string from_uid = 1;
public static final int FROM_UID_FIELD_NUMBER = 1;
private java.lang.Object fromUid_;
/**
* optional string from_uid = 1;
*/
public boolean hasFromUid() {
return ((bitField0_ & 0x00000001) == 0x00000001);
}
/**
* optional string from_uid = 1;
*/
public java.lang.String getFromUid() {
java.lang.Object ref = fromUid_;
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()) {
fromUid_ = s;
}
return s;
}
}
/**
* optional string from_uid = 1;
*/
public com.google.protobuf.ByteString
getFromUidBytes() {
java.lang.Object ref = fromUid_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
fromUid_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
// required string to_uid = 2;
public static final int TO_UID_FIELD_NUMBER = 2;
private java.lang.Object toUid_;
/**
* required string to_uid = 2;
*/
public boolean hasToUid() {
return ((bitField0_ & 0x00000002) == 0x00000002);
}
/**
* required string to_uid = 2;
*/
public java.lang.String getToUid() {
java.lang.Object ref = toUid_;
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()) {
toUid_ = s;
}
return s;
}
}
/**
* required string to_uid = 2;
*/
public com.google.protobuf.ByteString
getToUidBytes() {
java.lang.Object ref = toUid_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
toUid_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
// required string reason = 3;
public static final int REASON_FIELD_NUMBER = 3;
private java.lang.Object reason_;
/**
* required string reason = 3;
*/
public boolean hasReason() {
return ((bitField0_ & 0x00000004) == 0x00000004);
}
/**
* required string reason = 3;
*/
public java.lang.String getReason() {
java.lang.Object ref = reason_;
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()) {
reason_ = s;
}
return s;
}
}
/**
* required string reason = 3;
*/
public com.google.protobuf.ByteString
getReasonBytes() {
java.lang.Object ref = reason_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
reason_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
// optional int32 status = 4;
public static final int STATUS_FIELD_NUMBER = 4;
private int status_;
/**
* optional int32 status = 4;
*/
public boolean hasStatus() {
return ((bitField0_ & 0x00000008) == 0x00000008);
}
/**
* optional int32 status = 4;
*/
public int getStatus() {
return status_;
}
// optional int64 update_dt = 5;
public static final int UPDATE_DT_FIELD_NUMBER = 5;
private long updateDt_;
/**
* optional int64 update_dt = 5;
*/
public boolean hasUpdateDt() {
return ((bitField0_ & 0x00000010) == 0x00000010);
}
/**
* optional int64 update_dt = 5;
*/
public long getUpdateDt() {
return updateDt_;
}
// optional bool from_read_status = 6;
public static final int FROM_READ_STATUS_FIELD_NUMBER = 6;
private boolean fromReadStatus_;
/**
* optional bool from_read_status = 6;
*/
public boolean hasFromReadStatus() {
return ((bitField0_ & 0x00000020) == 0x00000020);
}
/**
* optional bool from_read_status = 6;
*/
public boolean getFromReadStatus() {
return fromReadStatus_;
}
// optional bool to_read_status = 7;
public static final int TO_READ_STATUS_FIELD_NUMBER = 7;
private boolean toReadStatus_;
/**
* optional bool to_read_status = 7;
*/
public boolean hasToReadStatus() {
return ((bitField0_ & 0x00000040) == 0x00000040);
}
/**
* optional bool to_read_status = 7;
*/
public boolean getToReadStatus() {
return toReadStatus_;
}
// optional string extra = 8;
public static final int EXTRA_FIELD_NUMBER = 8;
private java.lang.Object extra_;
/**
* optional string extra = 8;
*/
public boolean hasExtra() {
return ((bitField0_ & 0x00000080) == 0x00000080);
}
/**
* optional string extra = 8;
*/
public java.lang.String getExtra() {
java.lang.Object ref = extra_;
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()) {
extra_ = s;
}
return s;
}
}
/**
* optional string extra = 8;
*/
public com.google.protobuf.ByteString
getExtraBytes() {
java.lang.Object ref = extra_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
extra_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
private void initFields() {
fromUid_ = "";
toUid_ = "";
reason_ = "";
status_ = 0;
updateDt_ = 0L;
fromReadStatus_ = false;
toReadStatus_ = false;
extra_ = "";
}
private byte memoizedIsInitialized = -1;
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized != -1) return isInitialized == 1;
if (!hasToUid()) {
memoizedIsInitialized = 0;
return false;
}
if (!hasReason()) {
memoizedIsInitialized = 0;
return false;
}
memoizedIsInitialized = 1;
return true;
}
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
getSerializedSize();
if (((bitField0_ & 0x00000001) == 0x00000001)) {
output.writeBytes(1, getFromUidBytes());
}
if (((bitField0_ & 0x00000002) == 0x00000002)) {
output.writeBytes(2, getToUidBytes());
}
if (((bitField0_ & 0x00000004) == 0x00000004)) {
output.writeBytes(3, getReasonBytes());
}
if (((bitField0_ & 0x00000008) == 0x00000008)) {
output.writeInt32(4, status_);
}
if (((bitField0_ & 0x00000010) == 0x00000010)) {
output.writeInt64(5, updateDt_);
}
if (((bitField0_ & 0x00000020) == 0x00000020)) {
output.writeBool(6, fromReadStatus_);
}
if (((bitField0_ & 0x00000040) == 0x00000040)) {
output.writeBool(7, toReadStatus_);
}
if (((bitField0_ & 0x00000080) == 0x00000080)) {
output.writeBytes(8, getExtraBytes());
}
getUnknownFields().writeTo(output);
}
private int memoizedSerializedSize = -1;
public int getSerializedSize() {
int size = memoizedSerializedSize;
if (size != -1) return size;
size = 0;
if (((bitField0_ & 0x00000001) == 0x00000001)) {
size += com.google.protobuf.CodedOutputStream
.computeBytesSize(1, getFromUidBytes());
}
if (((bitField0_ & 0x00000002) == 0x00000002)) {
size += com.google.protobuf.CodedOutputStream
.computeBytesSize(2, getToUidBytes());
}
if (((bitField0_ & 0x00000004) == 0x00000004)) {
size += com.google.protobuf.CodedOutputStream
.computeBytesSize(3, getReasonBytes());
}
if (((bitField0_ & 0x00000008) == 0x00000008)) {
size += com.google.protobuf.CodedOutputStream
.computeInt32Size(4, status_);
}
if (((bitField0_ & 0x00000010) == 0x00000010)) {
size += com.google.protobuf.CodedOutputStream
.computeInt64Size(5, updateDt_);
}
if (((bitField0_ & 0x00000020) == 0x00000020)) {
size += com.google.protobuf.CodedOutputStream
.computeBoolSize(6, fromReadStatus_);
}
if (((bitField0_ & 0x00000040) == 0x00000040)) {
size += com.google.protobuf.CodedOutputStream
.computeBoolSize(7, toReadStatus_);
}
if (((bitField0_ & 0x00000080) == 0x00000080)) {
size += com.google.protobuf.CodedOutputStream
.computeBytesSize(8, getExtraBytes());
}
size += getUnknownFields().getSerializedSize();
memoizedSerializedSize = size;
return size;
}
private static final long serialVersionUID = 0L;
@java.lang.Override
protected java.lang.Object writeReplace()
throws java.io.ObjectStreamException {
return super.writeReplace();
}
public static cn.wildfirechat.proto.WFCMessage.FriendRequest parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static cn.wildfirechat.proto.WFCMessage.FriendRequest parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static cn.wildfirechat.proto.WFCMessage.FriendRequest parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static cn.wildfirechat.proto.WFCMessage.FriendRequest parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static cn.wildfirechat.proto.WFCMessage.FriendRequest parseFrom(java.io.InputStream input)
throws java.io.IOException {
return PARSER.parseFrom(input);
}
public static cn.wildfirechat.proto.WFCMessage.FriendRequest parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return PARSER.parseFrom(input, extensionRegistry);
}
public static cn.wildfirechat.proto.WFCMessage.FriendRequest parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return PARSER.parseDelimitedFrom(input);
}
public static cn.wildfirechat.proto.WFCMessage.FriendRequest parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return PARSER.parseDelimitedFrom(input, extensionRegistry);
}
public static cn.wildfirechat.proto.WFCMessage.FriendRequest parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return PARSER.parseFrom(input);
}
public static cn.wildfirechat.proto.WFCMessage.FriendRequest parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return PARSER.parseFrom(input, extensionRegistry);
}
public static Builder newBuilder() { return Builder.create(); }
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder(cn.wildfirechat.proto.WFCMessage.FriendRequest prototype) {
return newBuilder().mergeFrom(prototype);
}
public Builder toBuilder() { return newBuilder(this); }
@java.lang.Override
protected Builder newBuilderForType(
com.google.protobuf.GeneratedMessage.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
* Protobuf type {@code FriendRequest}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessage.Builder
implements cn.wildfirechat.proto.WFCMessage.FriendRequestOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return cn.wildfirechat.proto.WFCMessage.internal_static_FriendRequest_descriptor;
}
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable() {
return cn.wildfirechat.proto.WFCMessage.internal_static_FriendRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
cn.wildfirechat.proto.WFCMessage.FriendRequest.class, cn.wildfirechat.proto.WFCMessage.FriendRequest.Builder.class);
}
// Construct using cn.wildfirechat.proto.WFCMessage.FriendRequest.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessage.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) {
}
}
private static Builder create() {
return new Builder();
}
public Builder clear() {
super.clear();
fromUid_ = "";
bitField0_ = (bitField0_ & ~0x00000001);
toUid_ = "";
bitField0_ = (bitField0_ & ~0x00000002);
reason_ = "";
bitField0_ = (bitField0_ & ~0x00000004);
status_ = 0;
bitField0_ = (bitField0_ & ~0x00000008);
updateDt_ = 0L;
bitField0_ = (bitField0_ & ~0x00000010);
fromReadStatus_ = false;
bitField0_ = (bitField0_ & ~0x00000020);
toReadStatus_ = false;
bitField0_ = (bitField0_ & ~0x00000040);
extra_ = "";
bitField0_ = (bitField0_ & ~0x00000080);
return this;
}
public Builder clone() {
return create().mergeFrom(buildPartial());
}
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return cn.wildfirechat.proto.WFCMessage.internal_static_FriendRequest_descriptor;
}
public cn.wildfirechat.proto.WFCMessage.FriendRequest getDefaultInstanceForType() {
return cn.wildfirechat.proto.WFCMessage.FriendRequest.getDefaultInstance();
}
public cn.wildfirechat.proto.WFCMessage.FriendRequest build() {
cn.wildfirechat.proto.WFCMessage.FriendRequest result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
public cn.wildfirechat.proto.WFCMessage.FriendRequest buildPartial() {
cn.wildfirechat.proto.WFCMessage.FriendRequest result = new cn.wildfirechat.proto.WFCMessage.FriendRequest(this);
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
if (((from_bitField0_ & 0x00000001) == 0x00000001)) {
to_bitField0_ |= 0x00000001;
}
result.fromUid_ = fromUid_;
if (((from_bitField0_ & 0x00000002) == 0x00000002)) {
to_bitField0_ |= 0x00000002;
}
result.toUid_ = toUid_;
if (((from_bitField0_ & 0x00000004) == 0x00000004)) {
to_bitField0_ |= 0x00000004;
}
result.reason_ = reason_;
if (((from_bitField0_ & 0x00000008) == 0x00000008)) {
to_bitField0_ |= 0x00000008;
}
result.status_ = status_;
if (((from_bitField0_ & 0x00000010) == 0x00000010)) {
to_bitField0_ |= 0x00000010;
}
result.updateDt_ = updateDt_;
if (((from_bitField0_ & 0x00000020) == 0x00000020)) {
to_bitField0_ |= 0x00000020;
}
result.fromReadStatus_ = fromReadStatus_;
if (((from_bitField0_ & 0x00000040) == 0x00000040)) {
to_bitField0_ |= 0x00000040;
}
result.toReadStatus_ = toReadStatus_;
if (((from_bitField0_ & 0x00000080) == 0x00000080)) {
to_bitField0_ |= 0x00000080;
}
result.extra_ = extra_;
result.bitField0_ = to_bitField0_;
onBuilt();
return result;
}
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof cn.wildfirechat.proto.WFCMessage.FriendRequest) {
return mergeFrom((cn.wildfirechat.proto.WFCMessage.FriendRequest)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(cn.wildfirechat.proto.WFCMessage.FriendRequest other) {
if (other == cn.wildfirechat.proto.WFCMessage.FriendRequest.getDefaultInstance()) return this;
if (other.hasFromUid()) {
bitField0_ |= 0x00000001;
fromUid_ = other.fromUid_;
onChanged();
}
if (other.hasToUid()) {
bitField0_ |= 0x00000002;
toUid_ = other.toUid_;
onChanged();
}
if (other.hasReason()) {
bitField0_ |= 0x00000004;
reason_ = other.reason_;
onChanged();
}
if (other.hasStatus()) {
setStatus(other.getStatus());
}
if (other.hasUpdateDt()) {
setUpdateDt(other.getUpdateDt());
}
if (other.hasFromReadStatus()) {
setFromReadStatus(other.getFromReadStatus());
}
if (other.hasToReadStatus()) {
setToReadStatus(other.getToReadStatus());
}
if (other.hasExtra()) {
bitField0_ |= 0x00000080;
extra_ = other.extra_;
onChanged();
}
this.mergeUnknownFields(other.getUnknownFields());
return this;
}
public final boolean isInitialized() {
if (!hasToUid()) {
return false;
}
if (!hasReason()) {
return false;
}
return true;
}
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
cn.wildfirechat.proto.WFCMessage.FriendRequest parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (cn.wildfirechat.proto.WFCMessage.FriendRequest) e.getUnfinishedMessage();
throw e;
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
// optional string from_uid = 1;
private java.lang.Object fromUid_ = "";
/**
* optional string from_uid = 1;
*/
public boolean hasFromUid() {
return ((bitField0_ & 0x00000001) == 0x00000001);
}
/**
* optional string from_uid = 1;
*/
public java.lang.String getFromUid() {
java.lang.Object ref = fromUid_;
if (!(ref instanceof java.lang.String)) {
java.lang.String s = ((com.google.protobuf.ByteString) ref)
.toStringUtf8();
fromUid_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* optional string from_uid = 1;
*/
public com.google.protobuf.ByteString
getFromUidBytes() {
java.lang.Object ref = fromUid_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
fromUid_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* optional string from_uid = 1;
*/
public Builder setFromUid(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000001;
fromUid_ = value;
onChanged();
return this;
}
/**
* optional string from_uid = 1;
*/
public Builder clearFromUid() {
bitField0_ = (bitField0_ & ~0x00000001);
fromUid_ = getDefaultInstance().getFromUid();
onChanged();
return this;
}
/**
* optional string from_uid = 1;
*/
public Builder setFromUidBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000001;
fromUid_ = value;
onChanged();
return this;
}
// required string to_uid = 2;
private java.lang.Object toUid_ = "";
/**
* required string to_uid = 2;
*/
public boolean hasToUid() {
return ((bitField0_ & 0x00000002) == 0x00000002);
}
/**
* required string to_uid = 2;
*/
public java.lang.String getToUid() {
java.lang.Object ref = toUid_;
if (!(ref instanceof java.lang.String)) {
java.lang.String s = ((com.google.protobuf.ByteString) ref)
.toStringUtf8();
toUid_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* required string to_uid = 2;
*/
public com.google.protobuf.ByteString
getToUidBytes() {
java.lang.Object ref = toUid_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
toUid_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* required string to_uid = 2;
*/
public Builder setToUid(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000002;
toUid_ = value;
onChanged();
return this;
}
/**
* required string to_uid = 2;
*/
public Builder clearToUid() {
bitField0_ = (bitField0_ & ~0x00000002);
toUid_ = getDefaultInstance().getToUid();
onChanged();
return this;
}
/**
* required string to_uid = 2;
*/
public Builder setToUidBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000002;
toUid_ = value;
onChanged();
return this;
}
// required string reason = 3;
private java.lang.Object reason_ = "";
/**
* required string reason = 3;
*/
public boolean hasReason() {
return ((bitField0_ & 0x00000004) == 0x00000004);
}
/**
* required string reason = 3;
*/
public java.lang.String getReason() {
java.lang.Object ref = reason_;
if (!(ref instanceof java.lang.String)) {
java.lang.String s = ((com.google.protobuf.ByteString) ref)
.toStringUtf8();
reason_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* required string reason = 3;
*/
public com.google.protobuf.ByteString
getReasonBytes() {
java.lang.Object ref = reason_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
reason_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* required string reason = 3;
*/
public Builder setReason(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000004;
reason_ = value;
onChanged();
return this;
}
/**
* required string reason = 3;
*/
public Builder clearReason() {
bitField0_ = (bitField0_ & ~0x00000004);
reason_ = getDefaultInstance().getReason();
onChanged();
return this;
}
/**
* required string reason = 3;
*/
public Builder setReasonBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000004;
reason_ = value;
onChanged();
return this;
}
// optional int32 status = 4;
private int status_ ;
/**
* optional int32 status = 4;
*/
public boolean hasStatus() {
return ((bitField0_ & 0x00000008) == 0x00000008);
}
/**
* optional int32 status = 4;
*/
public int getStatus() {
return status_;
}
/**
* optional int32 status = 4;
*/
public Builder setStatus(int value) {
bitField0_ |= 0x00000008;
status_ = value;
onChanged();
return this;
}
/**
* optional int32 status = 4;
*/
public Builder clearStatus() {
bitField0_ = (bitField0_ & ~0x00000008);
status_ = 0;
onChanged();
return this;
}
// optional int64 update_dt = 5;
private long updateDt_ ;
/**
* optional int64 update_dt = 5;
*/
public boolean hasUpdateDt() {
return ((bitField0_ & 0x00000010) == 0x00000010);
}
/**
* optional int64 update_dt = 5;
*/
public long getUpdateDt() {
return updateDt_;
}
/**
* optional int64 update_dt = 5;
*/
public Builder setUpdateDt(long value) {
bitField0_ |= 0x00000010;
updateDt_ = value;
onChanged();
return this;
}
/**
* optional int64 update_dt = 5;
*/
public Builder clearUpdateDt() {
bitField0_ = (bitField0_ & ~0x00000010);
updateDt_ = 0L;
onChanged();
return this;
}
// optional bool from_read_status = 6;
private boolean fromReadStatus_ ;
/**
* optional bool from_read_status = 6;
*/
public boolean hasFromReadStatus() {
return ((bitField0_ & 0x00000020) == 0x00000020);
}
/**
* optional bool from_read_status = 6;
*/
public boolean getFromReadStatus() {
return fromReadStatus_;
}
/**
* optional bool from_read_status = 6;
*/
public Builder setFromReadStatus(boolean value) {
bitField0_ |= 0x00000020;
fromReadStatus_ = value;
onChanged();
return this;
}
/**
* optional bool from_read_status = 6;
*/
public Builder clearFromReadStatus() {
bitField0_ = (bitField0_ & ~0x00000020);
fromReadStatus_ = false;
onChanged();
return this;
}
// optional bool to_read_status = 7;
private boolean toReadStatus_ ;
/**
* optional bool to_read_status = 7;
*/
public boolean hasToReadStatus() {
return ((bitField0_ & 0x00000040) == 0x00000040);
}
/**
* optional bool to_read_status = 7;
*/
public boolean getToReadStatus() {
return toReadStatus_;
}
/**
* optional bool to_read_status = 7;
*/
public Builder setToReadStatus(boolean value) {
bitField0_ |= 0x00000040;
toReadStatus_ = value;
onChanged();
return this;
}
/**
* optional bool to_read_status = 7;
*/
public Builder clearToReadStatus() {
bitField0_ = (bitField0_ & ~0x00000040);
toReadStatus_ = false;
onChanged();
return this;
}
// optional string extra = 8;
private java.lang.Object extra_ = "";
/**
* optional string extra = 8;
*/
public boolean hasExtra() {
return ((bitField0_ & 0x00000080) == 0x00000080);
}
/**
* optional string extra = 8;
*/
public java.lang.String getExtra() {
java.lang.Object ref = extra_;
if (!(ref instanceof java.lang.String)) {
java.lang.String s = ((com.google.protobuf.ByteString) ref)
.toStringUtf8();
extra_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* optional string extra = 8;
*/
public com.google.protobuf.ByteString
getExtraBytes() {
java.lang.Object ref = extra_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
extra_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* optional string extra = 8;
*/
public Builder setExtra(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000080;
extra_ = value;
onChanged();
return this;
}
/**
* optional string extra = 8;
*/
public Builder clearExtra() {
bitField0_ = (bitField0_ & ~0x00000080);
extra_ = getDefaultInstance().getExtra();
onChanged();
return this;
}
/**
* optional string extra = 8;
*/
public Builder setExtraBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000080;
extra_ = value;
onChanged();
return this;
}
// @@protoc_insertion_point(builder_scope:FriendRequest)
}
static {
defaultInstance = new FriendRequest(true);
defaultInstance.initFields();
}
// @@protoc_insertion_point(class_scope:FriendRequest)
}
public interface GeneralResultOrBuilder
extends com.google.protobuf.MessageOrBuilder {
// required int32 error_code = 1;
/**
* required int32 error_code = 1;
*/
boolean hasErrorCode();
/**
* required int32 error_code = 1;
*/
int getErrorCode();
}
/**
* Protobuf type {@code GeneralResult}
*/
public static final class GeneralResult extends
com.google.protobuf.GeneratedMessage
implements GeneralResultOrBuilder {
// Use GeneralResult.newBuilder() to construct.
private GeneralResult(com.google.protobuf.GeneratedMessage.Builder> builder) {
super(builder);
this.unknownFields = builder.getUnknownFields();
}
private GeneralResult(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); }
private static final GeneralResult defaultInstance;
public static GeneralResult getDefaultInstance() {
return defaultInstance;
}
public GeneralResult getDefaultInstanceForType() {
return defaultInstance;
}
private final com.google.protobuf.UnknownFieldSet unknownFields;
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private GeneralResult(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
initFields();
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;
default: {
if (!parseUnknownField(input, unknownFields,
extensionRegistry, tag)) {
done = true;
}
break;
}
case 8: {
bitField0_ |= 0x00000001;
errorCode_ = input.readInt32();
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e.getMessage()).setUnfinishedMessage(this);
} finally {
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return cn.wildfirechat.proto.WFCMessage.internal_static_GeneralResult_descriptor;
}
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable() {
return cn.wildfirechat.proto.WFCMessage.internal_static_GeneralResult_fieldAccessorTable
.ensureFieldAccessorsInitialized(
cn.wildfirechat.proto.WFCMessage.GeneralResult.class, cn.wildfirechat.proto.WFCMessage.GeneralResult.Builder.class);
}
public static com.google.protobuf.Parser PARSER =
new com.google.protobuf.AbstractParser() {
public GeneralResult parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new GeneralResult(input, extensionRegistry);
}
};
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
private int bitField0_;
// required int32 error_code = 1;
public static final int ERROR_CODE_FIELD_NUMBER = 1;
private int errorCode_;
/**
* required int32 error_code = 1;
*/
public boolean hasErrorCode() {
return ((bitField0_ & 0x00000001) == 0x00000001);
}
/**
* required int32 error_code = 1;
*/
public int getErrorCode() {
return errorCode_;
}
private void initFields() {
errorCode_ = 0;
}
private byte memoizedIsInitialized = -1;
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized != -1) return isInitialized == 1;
if (!hasErrorCode()) {
memoizedIsInitialized = 0;
return false;
}
memoizedIsInitialized = 1;
return true;
}
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
getSerializedSize();
if (((bitField0_ & 0x00000001) == 0x00000001)) {
output.writeInt32(1, errorCode_);
}
getUnknownFields().writeTo(output);
}
private int memoizedSerializedSize = -1;
public int getSerializedSize() {
int size = memoizedSerializedSize;
if (size != -1) return size;
size = 0;
if (((bitField0_ & 0x00000001) == 0x00000001)) {
size += com.google.protobuf.CodedOutputStream
.computeInt32Size(1, errorCode_);
}
size += getUnknownFields().getSerializedSize();
memoizedSerializedSize = size;
return size;
}
private static final long serialVersionUID = 0L;
@java.lang.Override
protected java.lang.Object writeReplace()
throws java.io.ObjectStreamException {
return super.writeReplace();
}
public static cn.wildfirechat.proto.WFCMessage.GeneralResult parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static cn.wildfirechat.proto.WFCMessage.GeneralResult parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static cn.wildfirechat.proto.WFCMessage.GeneralResult parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static cn.wildfirechat.proto.WFCMessage.GeneralResult parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static cn.wildfirechat.proto.WFCMessage.GeneralResult parseFrom(java.io.InputStream input)
throws java.io.IOException {
return PARSER.parseFrom(input);
}
public static cn.wildfirechat.proto.WFCMessage.GeneralResult parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return PARSER.parseFrom(input, extensionRegistry);
}
public static cn.wildfirechat.proto.WFCMessage.GeneralResult parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return PARSER.parseDelimitedFrom(input);
}
public static cn.wildfirechat.proto.WFCMessage.GeneralResult parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return PARSER.parseDelimitedFrom(input, extensionRegistry);
}
public static cn.wildfirechat.proto.WFCMessage.GeneralResult parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return PARSER.parseFrom(input);
}
public static cn.wildfirechat.proto.WFCMessage.GeneralResult parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return PARSER.parseFrom(input, extensionRegistry);
}
public static Builder newBuilder() { return Builder.create(); }
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder(cn.wildfirechat.proto.WFCMessage.GeneralResult prototype) {
return newBuilder().mergeFrom(prototype);
}
public Builder toBuilder() { return newBuilder(this); }
@java.lang.Override
protected Builder newBuilderForType(
com.google.protobuf.GeneratedMessage.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
* Protobuf type {@code GeneralResult}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessage.Builder
implements cn.wildfirechat.proto.WFCMessage.GeneralResultOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return cn.wildfirechat.proto.WFCMessage.internal_static_GeneralResult_descriptor;
}
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable() {
return cn.wildfirechat.proto.WFCMessage.internal_static_GeneralResult_fieldAccessorTable
.ensureFieldAccessorsInitialized(
cn.wildfirechat.proto.WFCMessage.GeneralResult.class, cn.wildfirechat.proto.WFCMessage.GeneralResult.Builder.class);
}
// Construct using cn.wildfirechat.proto.WFCMessage.GeneralResult.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessage.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) {
}
}
private static Builder create() {
return new Builder();
}
public Builder clear() {
super.clear();
errorCode_ = 0;
bitField0_ = (bitField0_ & ~0x00000001);
return this;
}
public Builder clone() {
return create().mergeFrom(buildPartial());
}
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return cn.wildfirechat.proto.WFCMessage.internal_static_GeneralResult_descriptor;
}
public cn.wildfirechat.proto.WFCMessage.GeneralResult getDefaultInstanceForType() {
return cn.wildfirechat.proto.WFCMessage.GeneralResult.getDefaultInstance();
}
public cn.wildfirechat.proto.WFCMessage.GeneralResult build() {
cn.wildfirechat.proto.WFCMessage.GeneralResult result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
public cn.wildfirechat.proto.WFCMessage.GeneralResult buildPartial() {
cn.wildfirechat.proto.WFCMessage.GeneralResult result = new cn.wildfirechat.proto.WFCMessage.GeneralResult(this);
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
if (((from_bitField0_ & 0x00000001) == 0x00000001)) {
to_bitField0_ |= 0x00000001;
}
result.errorCode_ = errorCode_;
result.bitField0_ = to_bitField0_;
onBuilt();
return result;
}
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof cn.wildfirechat.proto.WFCMessage.GeneralResult) {
return mergeFrom((cn.wildfirechat.proto.WFCMessage.GeneralResult)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(cn.wildfirechat.proto.WFCMessage.GeneralResult other) {
if (other == cn.wildfirechat.proto.WFCMessage.GeneralResult.getDefaultInstance()) return this;
if (other.hasErrorCode()) {
setErrorCode(other.getErrorCode());
}
this.mergeUnknownFields(other.getUnknownFields());
return this;
}
public final boolean isInitialized() {
if (!hasErrorCode()) {
return false;
}
return true;
}
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
cn.wildfirechat.proto.WFCMessage.GeneralResult parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (cn.wildfirechat.proto.WFCMessage.GeneralResult) e.getUnfinishedMessage();
throw e;
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
// required int32 error_code = 1;
private int errorCode_ ;
/**
* required int32 error_code = 1;
*/
public boolean hasErrorCode() {
return ((bitField0_ & 0x00000001) == 0x00000001);
}
/**
* required int32 error_code = 1;
*/
public int getErrorCode() {
return errorCode_;
}
/**
* required int32 error_code = 1;
*/
public Builder setErrorCode(int value) {
bitField0_ |= 0x00000001;
errorCode_ = value;
onChanged();
return this;
}
/**
* required int32 error_code = 1;
*/
public Builder clearErrorCode() {
bitField0_ = (bitField0_ & ~0x00000001);
errorCode_ = 0;
onChanged();
return this;
}
// @@protoc_insertion_point(builder_scope:GeneralResult)
}
static {
defaultInstance = new GeneralResult(true);
defaultInstance.initFields();
}
// @@protoc_insertion_point(class_scope:GeneralResult)
}
public interface GetUploadTokenRequestOrBuilder
extends com.google.protobuf.MessageOrBuilder {
// required int32 media_type = 1;
/**
* required int32 media_type = 1;
*/
boolean hasMediaType();
/**
* required int32 media_type = 1;
*/
int getMediaType();
// required string media_path = 2;
/**
* required string media_path = 2;
*/
boolean hasMediaPath();
/**
* required string media_path = 2;
*/
java.lang.String getMediaPath();
/**
* required string media_path = 2;
*/
com.google.protobuf.ByteString
getMediaPathBytes();
}
/**
* Protobuf type {@code GetUploadTokenRequest}
*/
public static final class GetUploadTokenRequest extends
com.google.protobuf.GeneratedMessage
implements GetUploadTokenRequestOrBuilder {
// Use GetUploadTokenRequest.newBuilder() to construct.
private GetUploadTokenRequest(com.google.protobuf.GeneratedMessage.Builder> builder) {
super(builder);
this.unknownFields = builder.getUnknownFields();
}
private GetUploadTokenRequest(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); }
private static final GetUploadTokenRequest defaultInstance;
public static GetUploadTokenRequest getDefaultInstance() {
return defaultInstance;
}
public GetUploadTokenRequest getDefaultInstanceForType() {
return defaultInstance;
}
private final com.google.protobuf.UnknownFieldSet unknownFields;
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private GetUploadTokenRequest(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
initFields();
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;
default: {
if (!parseUnknownField(input, unknownFields,
extensionRegistry, tag)) {
done = true;
}
break;
}
case 8: {
bitField0_ |= 0x00000001;
mediaType_ = input.readInt32();
break;
}
case 18: {
bitField0_ |= 0x00000002;
mediaPath_ = input.readBytes();
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e.getMessage()).setUnfinishedMessage(this);
} finally {
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return cn.wildfirechat.proto.WFCMessage.internal_static_GetUploadTokenRequest_descriptor;
}
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable() {
return cn.wildfirechat.proto.WFCMessage.internal_static_GetUploadTokenRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
cn.wildfirechat.proto.WFCMessage.GetUploadTokenRequest.class, cn.wildfirechat.proto.WFCMessage.GetUploadTokenRequest.Builder.class);
}
public static com.google.protobuf.Parser PARSER =
new com.google.protobuf.AbstractParser() {
public GetUploadTokenRequest parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new GetUploadTokenRequest(input, extensionRegistry);
}
};
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
private int bitField0_;
// required int32 media_type = 1;
public static final int MEDIA_TYPE_FIELD_NUMBER = 1;
private int mediaType_;
/**
* required int32 media_type = 1;
*/
public boolean hasMediaType() {
return ((bitField0_ & 0x00000001) == 0x00000001);
}
/**
* required int32 media_type = 1;
*/
public int getMediaType() {
return mediaType_;
}
// required string media_path = 2;
public static final int MEDIA_PATH_FIELD_NUMBER = 2;
private java.lang.Object mediaPath_;
/**
* required string media_path = 2;
*/
public boolean hasMediaPath() {
return ((bitField0_ & 0x00000002) == 0x00000002);
}
/**
* required string media_path = 2;
*/
public java.lang.String getMediaPath() {
java.lang.Object ref = mediaPath_;
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()) {
mediaPath_ = s;
}
return s;
}
}
/**
* required string media_path = 2;
*/
public com.google.protobuf.ByteString
getMediaPathBytes() {
java.lang.Object ref = mediaPath_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
mediaPath_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
private void initFields() {
mediaType_ = 0;
mediaPath_ = "";
}
private byte memoizedIsInitialized = -1;
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized != -1) return isInitialized == 1;
if (!hasMediaType()) {
memoizedIsInitialized = 0;
return false;
}
if (!hasMediaPath()) {
memoizedIsInitialized = 0;
return false;
}
memoizedIsInitialized = 1;
return true;
}
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
getSerializedSize();
if (((bitField0_ & 0x00000001) == 0x00000001)) {
output.writeInt32(1, mediaType_);
}
if (((bitField0_ & 0x00000002) == 0x00000002)) {
output.writeBytes(2, getMediaPathBytes());
}
getUnknownFields().writeTo(output);
}
private int memoizedSerializedSize = -1;
public int getSerializedSize() {
int size = memoizedSerializedSize;
if (size != -1) return size;
size = 0;
if (((bitField0_ & 0x00000001) == 0x00000001)) {
size += com.google.protobuf.CodedOutputStream
.computeInt32Size(1, mediaType_);
}
if (((bitField0_ & 0x00000002) == 0x00000002)) {
size += com.google.protobuf.CodedOutputStream
.computeBytesSize(2, getMediaPathBytes());
}
size += getUnknownFields().getSerializedSize();
memoizedSerializedSize = size;
return size;
}
private static final long serialVersionUID = 0L;
@java.lang.Override
protected java.lang.Object writeReplace()
throws java.io.ObjectStreamException {
return super.writeReplace();
}
public static cn.wildfirechat.proto.WFCMessage.GetUploadTokenRequest parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static cn.wildfirechat.proto.WFCMessage.GetUploadTokenRequest parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static cn.wildfirechat.proto.WFCMessage.GetUploadTokenRequest parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static cn.wildfirechat.proto.WFCMessage.GetUploadTokenRequest parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static cn.wildfirechat.proto.WFCMessage.GetUploadTokenRequest parseFrom(java.io.InputStream input)
throws java.io.IOException {
return PARSER.parseFrom(input);
}
public static cn.wildfirechat.proto.WFCMessage.GetUploadTokenRequest parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return PARSER.parseFrom(input, extensionRegistry);
}
public static cn.wildfirechat.proto.WFCMessage.GetUploadTokenRequest parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return PARSER.parseDelimitedFrom(input);
}
public static cn.wildfirechat.proto.WFCMessage.GetUploadTokenRequest parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return PARSER.parseDelimitedFrom(input, extensionRegistry);
}
public static cn.wildfirechat.proto.WFCMessage.GetUploadTokenRequest parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return PARSER.parseFrom(input);
}
public static cn.wildfirechat.proto.WFCMessage.GetUploadTokenRequest parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return PARSER.parseFrom(input, extensionRegistry);
}
public static Builder newBuilder() { return Builder.create(); }
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder(cn.wildfirechat.proto.WFCMessage.GetUploadTokenRequest prototype) {
return newBuilder().mergeFrom(prototype);
}
public Builder toBuilder() { return newBuilder(this); }
@java.lang.Override
protected Builder newBuilderForType(
com.google.protobuf.GeneratedMessage.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
* Protobuf type {@code GetUploadTokenRequest}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessage.Builder
implements cn.wildfirechat.proto.WFCMessage.GetUploadTokenRequestOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return cn.wildfirechat.proto.WFCMessage.internal_static_GetUploadTokenRequest_descriptor;
}
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable() {
return cn.wildfirechat.proto.WFCMessage.internal_static_GetUploadTokenRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
cn.wildfirechat.proto.WFCMessage.GetUploadTokenRequest.class, cn.wildfirechat.proto.WFCMessage.GetUploadTokenRequest.Builder.class);
}
// Construct using cn.wildfirechat.proto.WFCMessage.GetUploadTokenRequest.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessage.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) {
}
}
private static Builder create() {
return new Builder();
}
public Builder clear() {
super.clear();
mediaType_ = 0;
bitField0_ = (bitField0_ & ~0x00000001);
mediaPath_ = "";
bitField0_ = (bitField0_ & ~0x00000002);
return this;
}
public Builder clone() {
return create().mergeFrom(buildPartial());
}
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return cn.wildfirechat.proto.WFCMessage.internal_static_GetUploadTokenRequest_descriptor;
}
public cn.wildfirechat.proto.WFCMessage.GetUploadTokenRequest getDefaultInstanceForType() {
return cn.wildfirechat.proto.WFCMessage.GetUploadTokenRequest.getDefaultInstance();
}
public cn.wildfirechat.proto.WFCMessage.GetUploadTokenRequest build() {
cn.wildfirechat.proto.WFCMessage.GetUploadTokenRequest result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
public cn.wildfirechat.proto.WFCMessage.GetUploadTokenRequest buildPartial() {
cn.wildfirechat.proto.WFCMessage.GetUploadTokenRequest result = new cn.wildfirechat.proto.WFCMessage.GetUploadTokenRequest(this);
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
if (((from_bitField0_ & 0x00000001) == 0x00000001)) {
to_bitField0_ |= 0x00000001;
}
result.mediaType_ = mediaType_;
if (((from_bitField0_ & 0x00000002) == 0x00000002)) {
to_bitField0_ |= 0x00000002;
}
result.mediaPath_ = mediaPath_;
result.bitField0_ = to_bitField0_;
onBuilt();
return result;
}
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof cn.wildfirechat.proto.WFCMessage.GetUploadTokenRequest) {
return mergeFrom((cn.wildfirechat.proto.WFCMessage.GetUploadTokenRequest)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(cn.wildfirechat.proto.WFCMessage.GetUploadTokenRequest other) {
if (other == cn.wildfirechat.proto.WFCMessage.GetUploadTokenRequest.getDefaultInstance()) return this;
if (other.hasMediaType()) {
setMediaType(other.getMediaType());
}
if (other.hasMediaPath()) {
bitField0_ |= 0x00000002;
mediaPath_ = other.mediaPath_;
onChanged();
}
this.mergeUnknownFields(other.getUnknownFields());
return this;
}
public final boolean isInitialized() {
if (!hasMediaType()) {
return false;
}
if (!hasMediaPath()) {
return false;
}
return true;
}
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
cn.wildfirechat.proto.WFCMessage.GetUploadTokenRequest parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (cn.wildfirechat.proto.WFCMessage.GetUploadTokenRequest) e.getUnfinishedMessage();
throw e;
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
// required int32 media_type = 1;
private int mediaType_ ;
/**
* required int32 media_type = 1;
*/
public boolean hasMediaType() {
return ((bitField0_ & 0x00000001) == 0x00000001);
}
/**
* required int32 media_type = 1;
*/
public int getMediaType() {
return mediaType_;
}
/**
* required int32 media_type = 1;
*/
public Builder setMediaType(int value) {
bitField0_ |= 0x00000001;
mediaType_ = value;
onChanged();
return this;
}
/**
* required int32 media_type = 1;
*/
public Builder clearMediaType() {
bitField0_ = (bitField0_ & ~0x00000001);
mediaType_ = 0;
onChanged();
return this;
}
// required string media_path = 2;
private java.lang.Object mediaPath_ = "";
/**
* required string media_path = 2;
*/
public boolean hasMediaPath() {
return ((bitField0_ & 0x00000002) == 0x00000002);
}
/**
* required string media_path = 2;
*/
public java.lang.String getMediaPath() {
java.lang.Object ref = mediaPath_;
if (!(ref instanceof java.lang.String)) {
java.lang.String s = ((com.google.protobuf.ByteString) ref)
.toStringUtf8();
mediaPath_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* required string media_path = 2;
*/
public com.google.protobuf.ByteString
getMediaPathBytes() {
java.lang.Object ref = mediaPath_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
mediaPath_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* required string media_path = 2;
*/
public Builder setMediaPath(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000002;
mediaPath_ = value;
onChanged();
return this;
}
/**
* required string media_path = 2;
*/
public Builder clearMediaPath() {
bitField0_ = (bitField0_ & ~0x00000002);
mediaPath_ = getDefaultInstance().getMediaPath();
onChanged();
return this;
}
/**
* required string media_path = 2;
*/
public Builder setMediaPathBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000002;
mediaPath_ = value;
onChanged();
return this;
}
// @@protoc_insertion_point(builder_scope:GetUploadTokenRequest)
}
static {
defaultInstance = new GetUploadTokenRequest(true);
defaultInstance.initFields();
}
// @@protoc_insertion_point(class_scope:GetUploadTokenRequest)
}
public interface GetUploadTokenResultOrBuilder
extends com.google.protobuf.MessageOrBuilder {
// required string domain = 1;
/**
* required string domain = 1;
*/
boolean hasDomain();
/**
* required string domain = 1;
*/
java.lang.String getDomain();
/**
* required string domain = 1;
*/
com.google.protobuf.ByteString
getDomainBytes();
// required string token = 2;
/**
* required string token = 2;
*/
boolean hasToken();
/**
* required string token = 2;
*/
java.lang.String getToken();
/**
* required string token = 2;
*/
com.google.protobuf.ByteString
getTokenBytes();
// required string server = 3;
/**
* required string server = 3;
*/
boolean hasServer();
/**
* required string server = 3;
*/
java.lang.String getServer();
/**
* required string server = 3;
*/
com.google.protobuf.ByteString
getServerBytes();
// optional int32 port = 4;
/**
* optional int32 port = 4;
*/
boolean hasPort();
/**
* optional int32 port = 4;
*/
int getPort();
}
/**
* Protobuf type {@code GetUploadTokenResult}
*/
public static final class GetUploadTokenResult extends
com.google.protobuf.GeneratedMessage
implements GetUploadTokenResultOrBuilder {
// Use GetUploadTokenResult.newBuilder() to construct.
private GetUploadTokenResult(com.google.protobuf.GeneratedMessage.Builder> builder) {
super(builder);
this.unknownFields = builder.getUnknownFields();
}
private GetUploadTokenResult(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); }
private static final GetUploadTokenResult defaultInstance;
public static GetUploadTokenResult getDefaultInstance() {
return defaultInstance;
}
public GetUploadTokenResult getDefaultInstanceForType() {
return defaultInstance;
}
private final com.google.protobuf.UnknownFieldSet unknownFields;
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private GetUploadTokenResult(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
initFields();
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;
default: {
if (!parseUnknownField(input, unknownFields,
extensionRegistry, tag)) {
done = true;
}
break;
}
case 10: {
bitField0_ |= 0x00000001;
domain_ = input.readBytes();
break;
}
case 18: {
bitField0_ |= 0x00000002;
token_ = input.readBytes();
break;
}
case 26: {
bitField0_ |= 0x00000004;
server_ = input.readBytes();
break;
}
case 32: {
bitField0_ |= 0x00000008;
port_ = input.readInt32();
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e.getMessage()).setUnfinishedMessage(this);
} finally {
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return cn.wildfirechat.proto.WFCMessage.internal_static_GetUploadTokenResult_descriptor;
}
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable() {
return cn.wildfirechat.proto.WFCMessage.internal_static_GetUploadTokenResult_fieldAccessorTable
.ensureFieldAccessorsInitialized(
cn.wildfirechat.proto.WFCMessage.GetUploadTokenResult.class, cn.wildfirechat.proto.WFCMessage.GetUploadTokenResult.Builder.class);
}
public static com.google.protobuf.Parser PARSER =
new com.google.protobuf.AbstractParser() {
public GetUploadTokenResult parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new GetUploadTokenResult(input, extensionRegistry);
}
};
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
private int bitField0_;
// required string domain = 1;
public static final int DOMAIN_FIELD_NUMBER = 1;
private java.lang.Object domain_;
/**
* required string domain = 1;
*/
public boolean hasDomain() {
return ((bitField0_ & 0x00000001) == 0x00000001);
}
/**
* required string domain = 1;
*/
public java.lang.String getDomain() {
java.lang.Object ref = domain_;
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()) {
domain_ = s;
}
return s;
}
}
/**
* required string domain = 1;
*/
public com.google.protobuf.ByteString
getDomainBytes() {
java.lang.Object ref = domain_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
domain_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
// required string token = 2;
public static final int TOKEN_FIELD_NUMBER = 2;
private java.lang.Object token_;
/**
* required string token = 2;
*/
public boolean hasToken() {
return ((bitField0_ & 0x00000002) == 0x00000002);
}
/**
* required string token = 2;
*/
public java.lang.String getToken() {
java.lang.Object ref = token_;
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()) {
token_ = s;
}
return s;
}
}
/**
* required string token = 2;
*/
public com.google.protobuf.ByteString
getTokenBytes() {
java.lang.Object ref = token_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
token_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
// required string server = 3;
public static final int SERVER_FIELD_NUMBER = 3;
private java.lang.Object server_;
/**
* required string server = 3;
*/
public boolean hasServer() {
return ((bitField0_ & 0x00000004) == 0x00000004);
}
/**
* required string server = 3;
*/
public java.lang.String getServer() {
java.lang.Object ref = server_;
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()) {
server_ = s;
}
return s;
}
}
/**
* required string server = 3;
*/
public com.google.protobuf.ByteString
getServerBytes() {
java.lang.Object ref = server_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
server_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
// optional int32 port = 4;
public static final int PORT_FIELD_NUMBER = 4;
private int port_;
/**
* optional int32 port = 4;
*/
public boolean hasPort() {
return ((bitField0_ & 0x00000008) == 0x00000008);
}
/**
* optional int32 port = 4;
*/
public int getPort() {
return port_;
}
private void initFields() {
domain_ = "";
token_ = "";
server_ = "";
port_ = 0;
}
private byte memoizedIsInitialized = -1;
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized != -1) return isInitialized == 1;
if (!hasDomain()) {
memoizedIsInitialized = 0;
return false;
}
if (!hasToken()) {
memoizedIsInitialized = 0;
return false;
}
if (!hasServer()) {
memoizedIsInitialized = 0;
return false;
}
memoizedIsInitialized = 1;
return true;
}
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
getSerializedSize();
if (((bitField0_ & 0x00000001) == 0x00000001)) {
output.writeBytes(1, getDomainBytes());
}
if (((bitField0_ & 0x00000002) == 0x00000002)) {
output.writeBytes(2, getTokenBytes());
}
if (((bitField0_ & 0x00000004) == 0x00000004)) {
output.writeBytes(3, getServerBytes());
}
if (((bitField0_ & 0x00000008) == 0x00000008)) {
output.writeInt32(4, port_);
}
getUnknownFields().writeTo(output);
}
private int memoizedSerializedSize = -1;
public int getSerializedSize() {
int size = memoizedSerializedSize;
if (size != -1) return size;
size = 0;
if (((bitField0_ & 0x00000001) == 0x00000001)) {
size += com.google.protobuf.CodedOutputStream
.computeBytesSize(1, getDomainBytes());
}
if (((bitField0_ & 0x00000002) == 0x00000002)) {
size += com.google.protobuf.CodedOutputStream
.computeBytesSize(2, getTokenBytes());
}
if (((bitField0_ & 0x00000004) == 0x00000004)) {
size += com.google.protobuf.CodedOutputStream
.computeBytesSize(3, getServerBytes());
}
if (((bitField0_ & 0x00000008) == 0x00000008)) {
size += com.google.protobuf.CodedOutputStream
.computeInt32Size(4, port_);
}
size += getUnknownFields().getSerializedSize();
memoizedSerializedSize = size;
return size;
}
private static final long serialVersionUID = 0L;
@java.lang.Override
protected java.lang.Object writeReplace()
throws java.io.ObjectStreamException {
return super.writeReplace();
}
public static cn.wildfirechat.proto.WFCMessage.GetUploadTokenResult parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static cn.wildfirechat.proto.WFCMessage.GetUploadTokenResult parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static cn.wildfirechat.proto.WFCMessage.GetUploadTokenResult parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static cn.wildfirechat.proto.WFCMessage.GetUploadTokenResult parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static cn.wildfirechat.proto.WFCMessage.GetUploadTokenResult parseFrom(java.io.InputStream input)
throws java.io.IOException {
return PARSER.parseFrom(input);
}
public static cn.wildfirechat.proto.WFCMessage.GetUploadTokenResult parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return PARSER.parseFrom(input, extensionRegistry);
}
public static cn.wildfirechat.proto.WFCMessage.GetUploadTokenResult parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return PARSER.parseDelimitedFrom(input);
}
public static cn.wildfirechat.proto.WFCMessage.GetUploadTokenResult parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return PARSER.parseDelimitedFrom(input, extensionRegistry);
}
public static cn.wildfirechat.proto.WFCMessage.GetUploadTokenResult parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return PARSER.parseFrom(input);
}
public static cn.wildfirechat.proto.WFCMessage.GetUploadTokenResult parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return PARSER.parseFrom(input, extensionRegistry);
}
public static Builder newBuilder() { return Builder.create(); }
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder(cn.wildfirechat.proto.WFCMessage.GetUploadTokenResult prototype) {
return newBuilder().mergeFrom(prototype);
}
public Builder toBuilder() { return newBuilder(this); }
@java.lang.Override
protected Builder newBuilderForType(
com.google.protobuf.GeneratedMessage.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
* Protobuf type {@code GetUploadTokenResult}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessage.Builder
implements cn.wildfirechat.proto.WFCMessage.GetUploadTokenResultOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return cn.wildfirechat.proto.WFCMessage.internal_static_GetUploadTokenResult_descriptor;
}
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable() {
return cn.wildfirechat.proto.WFCMessage.internal_static_GetUploadTokenResult_fieldAccessorTable
.ensureFieldAccessorsInitialized(
cn.wildfirechat.proto.WFCMessage.GetUploadTokenResult.class, cn.wildfirechat.proto.WFCMessage.GetUploadTokenResult.Builder.class);
}
// Construct using cn.wildfirechat.proto.WFCMessage.GetUploadTokenResult.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessage.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) {
}
}
private static Builder create() {
return new Builder();
}
public Builder clear() {
super.clear();
domain_ = "";
bitField0_ = (bitField0_ & ~0x00000001);
token_ = "";
bitField0_ = (bitField0_ & ~0x00000002);
server_ = "";
bitField0_ = (bitField0_ & ~0x00000004);
port_ = 0;
bitField0_ = (bitField0_ & ~0x00000008);
return this;
}
public Builder clone() {
return create().mergeFrom(buildPartial());
}
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return cn.wildfirechat.proto.WFCMessage.internal_static_GetUploadTokenResult_descriptor;
}
public cn.wildfirechat.proto.WFCMessage.GetUploadTokenResult getDefaultInstanceForType() {
return cn.wildfirechat.proto.WFCMessage.GetUploadTokenResult.getDefaultInstance();
}
public cn.wildfirechat.proto.WFCMessage.GetUploadTokenResult build() {
cn.wildfirechat.proto.WFCMessage.GetUploadTokenResult result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
public cn.wildfirechat.proto.WFCMessage.GetUploadTokenResult buildPartial() {
cn.wildfirechat.proto.WFCMessage.GetUploadTokenResult result = new cn.wildfirechat.proto.WFCMessage.GetUploadTokenResult(this);
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
if (((from_bitField0_ & 0x00000001) == 0x00000001)) {
to_bitField0_ |= 0x00000001;
}
result.domain_ = domain_;
if (((from_bitField0_ & 0x00000002) == 0x00000002)) {
to_bitField0_ |= 0x00000002;
}
result.token_ = token_;
if (((from_bitField0_ & 0x00000004) == 0x00000004)) {
to_bitField0_ |= 0x00000004;
}
result.server_ = server_;
if (((from_bitField0_ & 0x00000008) == 0x00000008)) {
to_bitField0_ |= 0x00000008;
}
result.port_ = port_;
result.bitField0_ = to_bitField0_;
onBuilt();
return result;
}
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof cn.wildfirechat.proto.WFCMessage.GetUploadTokenResult) {
return mergeFrom((cn.wildfirechat.proto.WFCMessage.GetUploadTokenResult)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(cn.wildfirechat.proto.WFCMessage.GetUploadTokenResult other) {
if (other == cn.wildfirechat.proto.WFCMessage.GetUploadTokenResult.getDefaultInstance()) return this;
if (other.hasDomain()) {
bitField0_ |= 0x00000001;
domain_ = other.domain_;
onChanged();
}
if (other.hasToken()) {
bitField0_ |= 0x00000002;
token_ = other.token_;
onChanged();
}
if (other.hasServer()) {
bitField0_ |= 0x00000004;
server_ = other.server_;
onChanged();
}
if (other.hasPort()) {
setPort(other.getPort());
}
this.mergeUnknownFields(other.getUnknownFields());
return this;
}
public final boolean isInitialized() {
if (!hasDomain()) {
return false;
}
if (!hasToken()) {
return false;
}
if (!hasServer()) {
return false;
}
return true;
}
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
cn.wildfirechat.proto.WFCMessage.GetUploadTokenResult parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (cn.wildfirechat.proto.WFCMessage.GetUploadTokenResult) e.getUnfinishedMessage();
throw e;
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
// required string domain = 1;
private java.lang.Object domain_ = "";
/**
* required string domain = 1;
*/
public boolean hasDomain() {
return ((bitField0_ & 0x00000001) == 0x00000001);
}
/**
* required string domain = 1;
*/
public java.lang.String getDomain() {
java.lang.Object ref = domain_;
if (!(ref instanceof java.lang.String)) {
java.lang.String s = ((com.google.protobuf.ByteString) ref)
.toStringUtf8();
domain_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* required string domain = 1;
*/
public com.google.protobuf.ByteString
getDomainBytes() {
java.lang.Object ref = domain_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
domain_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* required string domain = 1;
*/
public Builder setDomain(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000001;
domain_ = value;
onChanged();
return this;
}
/**
* required string domain = 1;
*/
public Builder clearDomain() {
bitField0_ = (bitField0_ & ~0x00000001);
domain_ = getDefaultInstance().getDomain();
onChanged();
return this;
}
/**
* required string domain = 1;
*/
public Builder setDomainBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000001;
domain_ = value;
onChanged();
return this;
}
// required string token = 2;
private java.lang.Object token_ = "";
/**
* required string token = 2;
*/
public boolean hasToken() {
return ((bitField0_ & 0x00000002) == 0x00000002);
}
/**
* required string token = 2;
*/
public java.lang.String getToken() {
java.lang.Object ref = token_;
if (!(ref instanceof java.lang.String)) {
java.lang.String s = ((com.google.protobuf.ByteString) ref)
.toStringUtf8();
token_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* required string token = 2;
*/
public com.google.protobuf.ByteString
getTokenBytes() {
java.lang.Object ref = token_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
token_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* required string token = 2;
*/
public Builder setToken(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000002;
token_ = value;
onChanged();
return this;
}
/**
* required string token = 2;
*/
public Builder clearToken() {
bitField0_ = (bitField0_ & ~0x00000002);
token_ = getDefaultInstance().getToken();
onChanged();
return this;
}
/**
* required string token = 2;
*/
public Builder setTokenBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000002;
token_ = value;
onChanged();
return this;
}
// required string server = 3;
private java.lang.Object server_ = "";
/**
* required string server = 3;
*/
public boolean hasServer() {
return ((bitField0_ & 0x00000004) == 0x00000004);
}
/**
* required string server = 3;
*/
public java.lang.String getServer() {
java.lang.Object ref = server_;
if (!(ref instanceof java.lang.String)) {
java.lang.String s = ((com.google.protobuf.ByteString) ref)
.toStringUtf8();
server_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* required string server = 3;
*/
public com.google.protobuf.ByteString
getServerBytes() {
java.lang.Object ref = server_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
server_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* required string server = 3;
*/
public Builder setServer(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000004;
server_ = value;
onChanged();
return this;
}
/**
* required string server = 3;
*/
public Builder clearServer() {
bitField0_ = (bitField0_ & ~0x00000004);
server_ = getDefaultInstance().getServer();
onChanged();
return this;
}
/**
* required string server = 3;
*/
public Builder setServerBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000004;
server_ = value;
onChanged();
return this;
}
// optional int32 port = 4;
private int port_ ;
/**
* optional int32 port = 4;
*/
public boolean hasPort() {
return ((bitField0_ & 0x00000008) == 0x00000008);
}
/**
* optional int32 port = 4;
*/
public int getPort() {
return port_;
}
/**
* optional int32 port = 4;
*/
public Builder setPort(int value) {
bitField0_ |= 0x00000008;
port_ = value;
onChanged();
return this;
}
/**
* optional int32 port = 4;
*/
public Builder clearPort() {
bitField0_ = (bitField0_ & ~0x00000008);
port_ = 0;
onChanged();
return this;
}
// @@protoc_insertion_point(builder_scope:GetUploadTokenResult)
}
static {
defaultInstance = new GetUploadTokenResult(true);
defaultInstance.initFields();
}
// @@protoc_insertion_point(class_scope:GetUploadTokenResult)
}
public interface HandleFriendRequestOrBuilder
extends com.google.protobuf.MessageOrBuilder {
// required string target_uid = 1;
/**
* required string target_uid = 1;
*/
boolean hasTargetUid();
/**
* required string target_uid = 1;
*/
java.lang.String getTargetUid();
/**
* required string target_uid = 1;
*/
com.google.protobuf.ByteString
getTargetUidBytes();
// required int32 status = 2;
/**
* required int32 status = 2;
*/
boolean hasStatus();
/**
* required int32 status = 2;
*/
int getStatus();
// optional string extra = 3;
/**
* optional string extra = 3;
*/
boolean hasExtra();
/**
* optional string extra = 3;
*/
java.lang.String getExtra();
/**
* optional string extra = 3;
*/
com.google.protobuf.ByteString
getExtraBytes();
}
/**
* Protobuf type {@code HandleFriendRequest}
*/
public static final class HandleFriendRequest extends
com.google.protobuf.GeneratedMessage
implements HandleFriendRequestOrBuilder {
// Use HandleFriendRequest.newBuilder() to construct.
private HandleFriendRequest(com.google.protobuf.GeneratedMessage.Builder> builder) {
super(builder);
this.unknownFields = builder.getUnknownFields();
}
private HandleFriendRequest(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); }
private static final HandleFriendRequest defaultInstance;
public static HandleFriendRequest getDefaultInstance() {
return defaultInstance;
}
public HandleFriendRequest getDefaultInstanceForType() {
return defaultInstance;
}
private final com.google.protobuf.UnknownFieldSet unknownFields;
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private HandleFriendRequest(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
initFields();
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;
default: {
if (!parseUnknownField(input, unknownFields,
extensionRegistry, tag)) {
done = true;
}
break;
}
case 10: {
bitField0_ |= 0x00000001;
targetUid_ = input.readBytes();
break;
}
case 16: {
bitField0_ |= 0x00000002;
status_ = input.readInt32();
break;
}
case 26: {
bitField0_ |= 0x00000004;
extra_ = input.readBytes();
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e.getMessage()).setUnfinishedMessage(this);
} finally {
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return cn.wildfirechat.proto.WFCMessage.internal_static_HandleFriendRequest_descriptor;
}
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable() {
return cn.wildfirechat.proto.WFCMessage.internal_static_HandleFriendRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
cn.wildfirechat.proto.WFCMessage.HandleFriendRequest.class, cn.wildfirechat.proto.WFCMessage.HandleFriendRequest.Builder.class);
}
public static com.google.protobuf.Parser PARSER =
new com.google.protobuf.AbstractParser() {
public HandleFriendRequest parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new HandleFriendRequest(input, extensionRegistry);
}
};
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
private int bitField0_;
// required string target_uid = 1;
public static final int TARGET_UID_FIELD_NUMBER = 1;
private java.lang.Object targetUid_;
/**
* required string target_uid = 1;
*/
public boolean hasTargetUid() {
return ((bitField0_ & 0x00000001) == 0x00000001);
}
/**
* required string target_uid = 1;
*/
public java.lang.String getTargetUid() {
java.lang.Object ref = targetUid_;
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()) {
targetUid_ = s;
}
return s;
}
}
/**
* required string target_uid = 1;
*/
public com.google.protobuf.ByteString
getTargetUidBytes() {
java.lang.Object ref = targetUid_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
targetUid_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
// required int32 status = 2;
public static final int STATUS_FIELD_NUMBER = 2;
private int status_;
/**
* required int32 status = 2;
*/
public boolean hasStatus() {
return ((bitField0_ & 0x00000002) == 0x00000002);
}
/**
* required int32 status = 2;
*/
public int getStatus() {
return status_;
}
// optional string extra = 3;
public static final int EXTRA_FIELD_NUMBER = 3;
private java.lang.Object extra_;
/**
* optional string extra = 3;
*/
public boolean hasExtra() {
return ((bitField0_ & 0x00000004) == 0x00000004);
}
/**
* optional string extra = 3;
*/
public java.lang.String getExtra() {
java.lang.Object ref = extra_;
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()) {
extra_ = s;
}
return s;
}
}
/**
* optional string extra = 3;
*/
public com.google.protobuf.ByteString
getExtraBytes() {
java.lang.Object ref = extra_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
extra_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
private void initFields() {
targetUid_ = "";
status_ = 0;
extra_ = "";
}
private byte memoizedIsInitialized = -1;
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized != -1) return isInitialized == 1;
if (!hasTargetUid()) {
memoizedIsInitialized = 0;
return false;
}
if (!hasStatus()) {
memoizedIsInitialized = 0;
return false;
}
memoizedIsInitialized = 1;
return true;
}
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
getSerializedSize();
if (((bitField0_ & 0x00000001) == 0x00000001)) {
output.writeBytes(1, getTargetUidBytes());
}
if (((bitField0_ & 0x00000002) == 0x00000002)) {
output.writeInt32(2, status_);
}
if (((bitField0_ & 0x00000004) == 0x00000004)) {
output.writeBytes(3, getExtraBytes());
}
getUnknownFields().writeTo(output);
}
private int memoizedSerializedSize = -1;
public int getSerializedSize() {
int size = memoizedSerializedSize;
if (size != -1) return size;
size = 0;
if (((bitField0_ & 0x00000001) == 0x00000001)) {
size += com.google.protobuf.CodedOutputStream
.computeBytesSize(1, getTargetUidBytes());
}
if (((bitField0_ & 0x00000002) == 0x00000002)) {
size += com.google.protobuf.CodedOutputStream
.computeInt32Size(2, status_);
}
if (((bitField0_ & 0x00000004) == 0x00000004)) {
size += com.google.protobuf.CodedOutputStream
.computeBytesSize(3, getExtraBytes());
}
size += getUnknownFields().getSerializedSize();
memoizedSerializedSize = size;
return size;
}
private static final long serialVersionUID = 0L;
@java.lang.Override
protected java.lang.Object writeReplace()
throws java.io.ObjectStreamException {
return super.writeReplace();
}
public static cn.wildfirechat.proto.WFCMessage.HandleFriendRequest parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static cn.wildfirechat.proto.WFCMessage.HandleFriendRequest parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static cn.wildfirechat.proto.WFCMessage.HandleFriendRequest parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static cn.wildfirechat.proto.WFCMessage.HandleFriendRequest parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static cn.wildfirechat.proto.WFCMessage.HandleFriendRequest parseFrom(java.io.InputStream input)
throws java.io.IOException {
return PARSER.parseFrom(input);
}
public static cn.wildfirechat.proto.WFCMessage.HandleFriendRequest parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return PARSER.parseFrom(input, extensionRegistry);
}
public static cn.wildfirechat.proto.WFCMessage.HandleFriendRequest parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return PARSER.parseDelimitedFrom(input);
}
public static cn.wildfirechat.proto.WFCMessage.HandleFriendRequest parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return PARSER.parseDelimitedFrom(input, extensionRegistry);
}
public static cn.wildfirechat.proto.WFCMessage.HandleFriendRequest parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return PARSER.parseFrom(input);
}
public static cn.wildfirechat.proto.WFCMessage.HandleFriendRequest parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return PARSER.parseFrom(input, extensionRegistry);
}
public static Builder newBuilder() { return Builder.create(); }
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder(cn.wildfirechat.proto.WFCMessage.HandleFriendRequest prototype) {
return newBuilder().mergeFrom(prototype);
}
public Builder toBuilder() { return newBuilder(this); }
@java.lang.Override
protected Builder newBuilderForType(
com.google.protobuf.GeneratedMessage.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
* Protobuf type {@code HandleFriendRequest}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessage.Builder
implements cn.wildfirechat.proto.WFCMessage.HandleFriendRequestOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return cn.wildfirechat.proto.WFCMessage.internal_static_HandleFriendRequest_descriptor;
}
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable() {
return cn.wildfirechat.proto.WFCMessage.internal_static_HandleFriendRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
cn.wildfirechat.proto.WFCMessage.HandleFriendRequest.class, cn.wildfirechat.proto.WFCMessage.HandleFriendRequest.Builder.class);
}
// Construct using cn.wildfirechat.proto.WFCMessage.HandleFriendRequest.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessage.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) {
}
}
private static Builder create() {
return new Builder();
}
public Builder clear() {
super.clear();
targetUid_ = "";
bitField0_ = (bitField0_ & ~0x00000001);
status_ = 0;
bitField0_ = (bitField0_ & ~0x00000002);
extra_ = "";
bitField0_ = (bitField0_ & ~0x00000004);
return this;
}
public Builder clone() {
return create().mergeFrom(buildPartial());
}
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return cn.wildfirechat.proto.WFCMessage.internal_static_HandleFriendRequest_descriptor;
}
public cn.wildfirechat.proto.WFCMessage.HandleFriendRequest getDefaultInstanceForType() {
return cn.wildfirechat.proto.WFCMessage.HandleFriendRequest.getDefaultInstance();
}
public cn.wildfirechat.proto.WFCMessage.HandleFriendRequest build() {
cn.wildfirechat.proto.WFCMessage.HandleFriendRequest result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
public cn.wildfirechat.proto.WFCMessage.HandleFriendRequest buildPartial() {
cn.wildfirechat.proto.WFCMessage.HandleFriendRequest result = new cn.wildfirechat.proto.WFCMessage.HandleFriendRequest(this);
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
if (((from_bitField0_ & 0x00000001) == 0x00000001)) {
to_bitField0_ |= 0x00000001;
}
result.targetUid_ = targetUid_;
if (((from_bitField0_ & 0x00000002) == 0x00000002)) {
to_bitField0_ |= 0x00000002;
}
result.status_ = status_;
if (((from_bitField0_ & 0x00000004) == 0x00000004)) {
to_bitField0_ |= 0x00000004;
}
result.extra_ = extra_;
result.bitField0_ = to_bitField0_;
onBuilt();
return result;
}
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof cn.wildfirechat.proto.WFCMessage.HandleFriendRequest) {
return mergeFrom((cn.wildfirechat.proto.WFCMessage.HandleFriendRequest)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(cn.wildfirechat.proto.WFCMessage.HandleFriendRequest other) {
if (other == cn.wildfirechat.proto.WFCMessage.HandleFriendRequest.getDefaultInstance()) return this;
if (other.hasTargetUid()) {
bitField0_ |= 0x00000001;
targetUid_ = other.targetUid_;
onChanged();
}
if (other.hasStatus()) {
setStatus(other.getStatus());
}
if (other.hasExtra()) {
bitField0_ |= 0x00000004;
extra_ = other.extra_;
onChanged();
}
this.mergeUnknownFields(other.getUnknownFields());
return this;
}
public final boolean isInitialized() {
if (!hasTargetUid()) {
return false;
}
if (!hasStatus()) {
return false;
}
return true;
}
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
cn.wildfirechat.proto.WFCMessage.HandleFriendRequest parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (cn.wildfirechat.proto.WFCMessage.HandleFriendRequest) e.getUnfinishedMessage();
throw e;
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
// required string target_uid = 1;
private java.lang.Object targetUid_ = "";
/**
* required string target_uid = 1;
*/
public boolean hasTargetUid() {
return ((bitField0_ & 0x00000001) == 0x00000001);
}
/**
* required string target_uid = 1;
*/
public java.lang.String getTargetUid() {
java.lang.Object ref = targetUid_;
if (!(ref instanceof java.lang.String)) {
java.lang.String s = ((com.google.protobuf.ByteString) ref)
.toStringUtf8();
targetUid_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* required string target_uid = 1;
*/
public com.google.protobuf.ByteString
getTargetUidBytes() {
java.lang.Object ref = targetUid_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
targetUid_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* required string target_uid = 1;
*/
public Builder setTargetUid(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000001;
targetUid_ = value;
onChanged();
return this;
}
/**
* required string target_uid = 1;
*/
public Builder clearTargetUid() {
bitField0_ = (bitField0_ & ~0x00000001);
targetUid_ = getDefaultInstance().getTargetUid();
onChanged();
return this;
}
/**
* required string target_uid = 1;
*/
public Builder setTargetUidBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000001;
targetUid_ = value;
onChanged();
return this;
}
// required int32 status = 2;
private int status_ ;
/**
* required int32 status = 2;
*/
public boolean hasStatus() {
return ((bitField0_ & 0x00000002) == 0x00000002);
}
/**
* required int32 status = 2;
*/
public int getStatus() {
return status_;
}
/**
* required int32 status = 2;
*/
public Builder setStatus(int value) {
bitField0_ |= 0x00000002;
status_ = value;
onChanged();
return this;
}
/**
* required int32 status = 2;
*/
public Builder clearStatus() {
bitField0_ = (bitField0_ & ~0x00000002);
status_ = 0;
onChanged();
return this;
}
// optional string extra = 3;
private java.lang.Object extra_ = "";
/**
* optional string extra = 3;
*/
public boolean hasExtra() {
return ((bitField0_ & 0x00000004) == 0x00000004);
}
/**
* optional string extra = 3;
*/
public java.lang.String getExtra() {
java.lang.Object ref = extra_;
if (!(ref instanceof java.lang.String)) {
java.lang.String s = ((com.google.protobuf.ByteString) ref)
.toStringUtf8();
extra_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* optional string extra = 3;
*/
public com.google.protobuf.ByteString
getExtraBytes() {
java.lang.Object ref = extra_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
extra_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* optional string extra = 3;
*/
public Builder setExtra(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000004;
extra_ = value;
onChanged();
return this;
}
/**
* optional string extra = 3;
*/
public Builder clearExtra() {
bitField0_ = (bitField0_ & ~0x00000004);
extra_ = getDefaultInstance().getExtra();
onChanged();
return this;
}
/**
* optional string extra = 3;
*/
public Builder setExtraBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000004;
extra_ = value;
onChanged();
return this;
}
// @@protoc_insertion_point(builder_scope:HandleFriendRequest)
}
static {
defaultInstance = new HandleFriendRequest(true);
defaultInstance.initFields();
}
// @@protoc_insertion_point(class_scope:HandleFriendRequest)
}
public interface IDBufOrBuilder
extends com.google.protobuf.MessageOrBuilder {
// required string id = 1;
/**
* required string id = 1;
*/
boolean hasId();
/**
* required string id = 1;
*/
java.lang.String getId();
/**
* required string id = 1;
*/
com.google.protobuf.ByteString
getIdBytes();
}
/**
* Protobuf type {@code IDBuf}
*/
public static final class IDBuf extends
com.google.protobuf.GeneratedMessage
implements IDBufOrBuilder {
// Use IDBuf.newBuilder() to construct.
private IDBuf(com.google.protobuf.GeneratedMessage.Builder> builder) {
super(builder);
this.unknownFields = builder.getUnknownFields();
}
private IDBuf(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); }
private static final IDBuf defaultInstance;
public static IDBuf getDefaultInstance() {
return defaultInstance;
}
public IDBuf getDefaultInstanceForType() {
return defaultInstance;
}
private final com.google.protobuf.UnknownFieldSet unknownFields;
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private IDBuf(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
initFields();
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;
default: {
if (!parseUnknownField(input, unknownFields,
extensionRegistry, tag)) {
done = true;
}
break;
}
case 10: {
bitField0_ |= 0x00000001;
id_ = input.readBytes();
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e.getMessage()).setUnfinishedMessage(this);
} finally {
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return cn.wildfirechat.proto.WFCMessage.internal_static_IDBuf_descriptor;
}
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable() {
return cn.wildfirechat.proto.WFCMessage.internal_static_IDBuf_fieldAccessorTable
.ensureFieldAccessorsInitialized(
cn.wildfirechat.proto.WFCMessage.IDBuf.class, cn.wildfirechat.proto.WFCMessage.IDBuf.Builder.class);
}
public static com.google.protobuf.Parser PARSER =
new com.google.protobuf.AbstractParser() {
public IDBuf parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new IDBuf(input, extensionRegistry);
}
};
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
private int bitField0_;
// required string id = 1;
public static final int ID_FIELD_NUMBER = 1;
private java.lang.Object id_;
/**
* required string id = 1;
*/
public boolean hasId() {
return ((bitField0_ & 0x00000001) == 0x00000001);
}
/**
* required string id = 1;
*/
public java.lang.String getId() {
java.lang.Object ref = id_;
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()) {
id_ = s;
}
return s;
}
}
/**
* required string id = 1;
*/
public com.google.protobuf.ByteString
getIdBytes() {
java.lang.Object ref = id_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
id_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
private void initFields() {
id_ = "";
}
private byte memoizedIsInitialized = -1;
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized != -1) return isInitialized == 1;
if (!hasId()) {
memoizedIsInitialized = 0;
return false;
}
memoizedIsInitialized = 1;
return true;
}
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
getSerializedSize();
if (((bitField0_ & 0x00000001) == 0x00000001)) {
output.writeBytes(1, getIdBytes());
}
getUnknownFields().writeTo(output);
}
private int memoizedSerializedSize = -1;
public int getSerializedSize() {
int size = memoizedSerializedSize;
if (size != -1) return size;
size = 0;
if (((bitField0_ & 0x00000001) == 0x00000001)) {
size += com.google.protobuf.CodedOutputStream
.computeBytesSize(1, getIdBytes());
}
size += getUnknownFields().getSerializedSize();
memoizedSerializedSize = size;
return size;
}
private static final long serialVersionUID = 0L;
@java.lang.Override
protected java.lang.Object writeReplace()
throws java.io.ObjectStreamException {
return super.writeReplace();
}
public static cn.wildfirechat.proto.WFCMessage.IDBuf parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static cn.wildfirechat.proto.WFCMessage.IDBuf parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static cn.wildfirechat.proto.WFCMessage.IDBuf parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static cn.wildfirechat.proto.WFCMessage.IDBuf parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static cn.wildfirechat.proto.WFCMessage.IDBuf parseFrom(java.io.InputStream input)
throws java.io.IOException {
return PARSER.parseFrom(input);
}
public static cn.wildfirechat.proto.WFCMessage.IDBuf parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return PARSER.parseFrom(input, extensionRegistry);
}
public static cn.wildfirechat.proto.WFCMessage.IDBuf parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return PARSER.parseDelimitedFrom(input);
}
public static cn.wildfirechat.proto.WFCMessage.IDBuf parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return PARSER.parseDelimitedFrom(input, extensionRegistry);
}
public static cn.wildfirechat.proto.WFCMessage.IDBuf parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return PARSER.parseFrom(input);
}
public static cn.wildfirechat.proto.WFCMessage.IDBuf parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return PARSER.parseFrom(input, extensionRegistry);
}
public static Builder newBuilder() { return Builder.create(); }
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder(cn.wildfirechat.proto.WFCMessage.IDBuf prototype) {
return newBuilder().mergeFrom(prototype);
}
public Builder toBuilder() { return newBuilder(this); }
@java.lang.Override
protected Builder newBuilderForType(
com.google.protobuf.GeneratedMessage.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
* Protobuf type {@code IDBuf}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessage.Builder
implements cn.wildfirechat.proto.WFCMessage.IDBufOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return cn.wildfirechat.proto.WFCMessage.internal_static_IDBuf_descriptor;
}
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable() {
return cn.wildfirechat.proto.WFCMessage.internal_static_IDBuf_fieldAccessorTable
.ensureFieldAccessorsInitialized(
cn.wildfirechat.proto.WFCMessage.IDBuf.class, cn.wildfirechat.proto.WFCMessage.IDBuf.Builder.class);
}
// Construct using cn.wildfirechat.proto.WFCMessage.IDBuf.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessage.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) {
}
}
private static Builder create() {
return new Builder();
}
public Builder clear() {
super.clear();
id_ = "";
bitField0_ = (bitField0_ & ~0x00000001);
return this;
}
public Builder clone() {
return create().mergeFrom(buildPartial());
}
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return cn.wildfirechat.proto.WFCMessage.internal_static_IDBuf_descriptor;
}
public cn.wildfirechat.proto.WFCMessage.IDBuf getDefaultInstanceForType() {
return cn.wildfirechat.proto.WFCMessage.IDBuf.getDefaultInstance();
}
public cn.wildfirechat.proto.WFCMessage.IDBuf build() {
cn.wildfirechat.proto.WFCMessage.IDBuf result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
public cn.wildfirechat.proto.WFCMessage.IDBuf buildPartial() {
cn.wildfirechat.proto.WFCMessage.IDBuf result = new cn.wildfirechat.proto.WFCMessage.IDBuf(this);
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
if (((from_bitField0_ & 0x00000001) == 0x00000001)) {
to_bitField0_ |= 0x00000001;
}
result.id_ = id_;
result.bitField0_ = to_bitField0_;
onBuilt();
return result;
}
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof cn.wildfirechat.proto.WFCMessage.IDBuf) {
return mergeFrom((cn.wildfirechat.proto.WFCMessage.IDBuf)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(cn.wildfirechat.proto.WFCMessage.IDBuf other) {
if (other == cn.wildfirechat.proto.WFCMessage.IDBuf.getDefaultInstance()) return this;
if (other.hasId()) {
bitField0_ |= 0x00000001;
id_ = other.id_;
onChanged();
}
this.mergeUnknownFields(other.getUnknownFields());
return this;
}
public final boolean isInitialized() {
if (!hasId()) {
return false;
}
return true;
}
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
cn.wildfirechat.proto.WFCMessage.IDBuf parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (cn.wildfirechat.proto.WFCMessage.IDBuf) e.getUnfinishedMessage();
throw e;
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
// required string id = 1;
private java.lang.Object id_ = "";
/**
* required string id = 1;
*/
public boolean hasId() {
return ((bitField0_ & 0x00000001) == 0x00000001);
}
/**
* required string id = 1;
*/
public java.lang.String getId() {
java.lang.Object ref = id_;
if (!(ref instanceof java.lang.String)) {
java.lang.String s = ((com.google.protobuf.ByteString) ref)
.toStringUtf8();
id_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* required string id = 1;
*/
public com.google.protobuf.ByteString
getIdBytes() {
java.lang.Object ref = id_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
id_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* required string id = 1;
*/
public Builder setId(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000001;
id_ = value;
onChanged();
return this;
}
/**
* required string id = 1;
*/
public Builder clearId() {
bitField0_ = (bitField0_ & ~0x00000001);
id_ = getDefaultInstance().getId();
onChanged();
return this;
}
/**
* required string id = 1;
*/
public Builder setIdBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000001;
id_ = value;
onChanged();
return this;
}
// @@protoc_insertion_point(builder_scope:IDBuf)
}
static {
defaultInstance = new IDBuf(true);
defaultInstance.initFields();
}
// @@protoc_insertion_point(class_scope:IDBuf)
}
public interface IDListBufOrBuilder
extends com.google.protobuf.MessageOrBuilder {
// repeated string id = 1;
/**
* repeated string id = 1;
*/
java.util.List
getIdList();
/**
* repeated string id = 1;
*/
int getIdCount();
/**
* repeated string id = 1;
*/
java.lang.String getId(int index);
/**
* repeated string id = 1;
*/
com.google.protobuf.ByteString
getIdBytes(int index);
}
/**
* Protobuf type {@code IDListBuf}
*/
public static final class IDListBuf extends
com.google.protobuf.GeneratedMessage
implements IDListBufOrBuilder {
// Use IDListBuf.newBuilder() to construct.
private IDListBuf(com.google.protobuf.GeneratedMessage.Builder> builder) {
super(builder);
this.unknownFields = builder.getUnknownFields();
}
private IDListBuf(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); }
private static final IDListBuf defaultInstance;
public static IDListBuf getDefaultInstance() {
return defaultInstance;
}
public IDListBuf getDefaultInstanceForType() {
return defaultInstance;
}
private final com.google.protobuf.UnknownFieldSet unknownFields;
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private IDListBuf(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
initFields();
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;
default: {
if (!parseUnknownField(input, unknownFields,
extensionRegistry, tag)) {
done = true;
}
break;
}
case 10: {
if (!((mutable_bitField0_ & 0x00000001) == 0x00000001)) {
id_ = new com.google.protobuf.LazyStringArrayList();
mutable_bitField0_ |= 0x00000001;
}
id_.add(input.readBytes());
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e.getMessage()).setUnfinishedMessage(this);
} finally {
if (((mutable_bitField0_ & 0x00000001) == 0x00000001)) {
id_ = new com.google.protobuf.UnmodifiableLazyStringList(id_);
}
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return cn.wildfirechat.proto.WFCMessage.internal_static_IDListBuf_descriptor;
}
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable() {
return cn.wildfirechat.proto.WFCMessage.internal_static_IDListBuf_fieldAccessorTable
.ensureFieldAccessorsInitialized(
cn.wildfirechat.proto.WFCMessage.IDListBuf.class, cn.wildfirechat.proto.WFCMessage.IDListBuf.Builder.class);
}
public static com.google.protobuf.Parser PARSER =
new com.google.protobuf.AbstractParser() {
public IDListBuf parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new IDListBuf(input, extensionRegistry);
}
};
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
// repeated string id = 1;
public static final int ID_FIELD_NUMBER = 1;
private com.google.protobuf.LazyStringList id_;
/**
* repeated string id = 1;
*/
public java.util.List
getIdList() {
return id_;
}
/**
* repeated string id = 1;
*/
public int getIdCount() {
return id_.size();
}
/**
* repeated string id = 1;
*/
public java.lang.String getId(int index) {
return id_.get(index);
}
/**
* repeated string id = 1;
*/
public com.google.protobuf.ByteString
getIdBytes(int index) {
return id_.getByteString(index);
}
private void initFields() {
id_ = com.google.protobuf.LazyStringArrayList.EMPTY;
}
private byte memoizedIsInitialized = -1;
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized != -1) return isInitialized == 1;
memoizedIsInitialized = 1;
return true;
}
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
getSerializedSize();
for (int i = 0; i < id_.size(); i++) {
output.writeBytes(1, id_.getByteString(i));
}
getUnknownFields().writeTo(output);
}
private int memoizedSerializedSize = -1;
public int getSerializedSize() {
int size = memoizedSerializedSize;
if (size != -1) return size;
size = 0;
{
int dataSize = 0;
for (int i = 0; i < id_.size(); i++) {
dataSize += com.google.protobuf.CodedOutputStream
.computeBytesSizeNoTag(id_.getByteString(i));
}
size += dataSize;
size += 1 * getIdList().size();
}
size += getUnknownFields().getSerializedSize();
memoizedSerializedSize = size;
return size;
}
private static final long serialVersionUID = 0L;
@java.lang.Override
protected java.lang.Object writeReplace()
throws java.io.ObjectStreamException {
return super.writeReplace();
}
public static cn.wildfirechat.proto.WFCMessage.IDListBuf parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static cn.wildfirechat.proto.WFCMessage.IDListBuf parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static cn.wildfirechat.proto.WFCMessage.IDListBuf parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static cn.wildfirechat.proto.WFCMessage.IDListBuf parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static cn.wildfirechat.proto.WFCMessage.IDListBuf parseFrom(java.io.InputStream input)
throws java.io.IOException {
return PARSER.parseFrom(input);
}
public static cn.wildfirechat.proto.WFCMessage.IDListBuf parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return PARSER.parseFrom(input, extensionRegistry);
}
public static cn.wildfirechat.proto.WFCMessage.IDListBuf parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return PARSER.parseDelimitedFrom(input);
}
public static cn.wildfirechat.proto.WFCMessage.IDListBuf parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return PARSER.parseDelimitedFrom(input, extensionRegistry);
}
public static cn.wildfirechat.proto.WFCMessage.IDListBuf parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return PARSER.parseFrom(input);
}
public static cn.wildfirechat.proto.WFCMessage.IDListBuf parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return PARSER.parseFrom(input, extensionRegistry);
}
public static Builder newBuilder() { return Builder.create(); }
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder(cn.wildfirechat.proto.WFCMessage.IDListBuf prototype) {
return newBuilder().mergeFrom(prototype);
}
public Builder toBuilder() { return newBuilder(this); }
@java.lang.Override
protected Builder newBuilderForType(
com.google.protobuf.GeneratedMessage.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
* Protobuf type {@code IDListBuf}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessage.Builder
implements cn.wildfirechat.proto.WFCMessage.IDListBufOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return cn.wildfirechat.proto.WFCMessage.internal_static_IDListBuf_descriptor;
}
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable() {
return cn.wildfirechat.proto.WFCMessage.internal_static_IDListBuf_fieldAccessorTable
.ensureFieldAccessorsInitialized(
cn.wildfirechat.proto.WFCMessage.IDListBuf.class, cn.wildfirechat.proto.WFCMessage.IDListBuf.Builder.class);
}
// Construct using cn.wildfirechat.proto.WFCMessage.IDListBuf.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessage.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) {
}
}
private static Builder create() {
return new Builder();
}
public Builder clear() {
super.clear();
id_ = com.google.protobuf.LazyStringArrayList.EMPTY;
bitField0_ = (bitField0_ & ~0x00000001);
return this;
}
public Builder clone() {
return create().mergeFrom(buildPartial());
}
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return cn.wildfirechat.proto.WFCMessage.internal_static_IDListBuf_descriptor;
}
public cn.wildfirechat.proto.WFCMessage.IDListBuf getDefaultInstanceForType() {
return cn.wildfirechat.proto.WFCMessage.IDListBuf.getDefaultInstance();
}
public cn.wildfirechat.proto.WFCMessage.IDListBuf build() {
cn.wildfirechat.proto.WFCMessage.IDListBuf result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
public cn.wildfirechat.proto.WFCMessage.IDListBuf buildPartial() {
cn.wildfirechat.proto.WFCMessage.IDListBuf result = new cn.wildfirechat.proto.WFCMessage.IDListBuf(this);
int from_bitField0_ = bitField0_;
if (((bitField0_ & 0x00000001) == 0x00000001)) {
id_ = new com.google.protobuf.UnmodifiableLazyStringList(
id_);
bitField0_ = (bitField0_ & ~0x00000001);
}
result.id_ = id_;
onBuilt();
return result;
}
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof cn.wildfirechat.proto.WFCMessage.IDListBuf) {
return mergeFrom((cn.wildfirechat.proto.WFCMessage.IDListBuf)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(cn.wildfirechat.proto.WFCMessage.IDListBuf other) {
if (other == cn.wildfirechat.proto.WFCMessage.IDListBuf.getDefaultInstance()) return this;
if (!other.id_.isEmpty()) {
if (id_.isEmpty()) {
id_ = other.id_;
bitField0_ = (bitField0_ & ~0x00000001);
} else {
ensureIdIsMutable();
id_.addAll(other.id_);
}
onChanged();
}
this.mergeUnknownFields(other.getUnknownFields());
return this;
}
public final boolean isInitialized() {
return true;
}
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
cn.wildfirechat.proto.WFCMessage.IDListBuf parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (cn.wildfirechat.proto.WFCMessage.IDListBuf) e.getUnfinishedMessage();
throw e;
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
// repeated string id = 1;
private com.google.protobuf.LazyStringList id_ = com.google.protobuf.LazyStringArrayList.EMPTY;
private void ensureIdIsMutable() {
if (!((bitField0_ & 0x00000001) == 0x00000001)) {
id_ = new com.google.protobuf.LazyStringArrayList(id_);
bitField0_ |= 0x00000001;
}
}
/**
* repeated string id = 1;
*/
public java.util.List
getIdList() {
return java.util.Collections.unmodifiableList(id_);
}
/**
* repeated string id = 1;
*/
public int getIdCount() {
return id_.size();
}
/**
* repeated string id = 1;
*/
public java.lang.String getId(int index) {
return id_.get(index);
}
/**
* repeated string id = 1;
*/
public com.google.protobuf.ByteString
getIdBytes(int index) {
return id_.getByteString(index);
}
/**
* repeated string id = 1;
*/
public Builder setId(
int index, java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
ensureIdIsMutable();
id_.set(index, value);
onChanged();
return this;
}
/**
* repeated string id = 1;
*/
public Builder addId(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
ensureIdIsMutable();
id_.add(value);
onChanged();
return this;
}
/**
* repeated string id = 1;
*/
public Builder addAllId(
java.lang.Iterable values) {
ensureIdIsMutable();
super.addAll(values, id_);
onChanged();
return this;
}
/**
* repeated string id = 1;
*/
public Builder clearId() {
id_ = com.google.protobuf.LazyStringArrayList.EMPTY;
bitField0_ = (bitField0_ & ~0x00000001);
onChanged();
return this;
}
/**
* repeated string id = 1;
*/
public Builder addIdBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
ensureIdIsMutable();
id_.add(value);
onChanged();
return this;
}
// @@protoc_insertion_point(builder_scope:IDListBuf)
}
static {
defaultInstance = new IDListBuf(true);
defaultInstance.initFields();
}
// @@protoc_insertion_point(class_scope:IDListBuf)
}
public interface MessageOrBuilder
extends com.google.protobuf.MessageOrBuilder {
// required .Conversation conversation = 1;
/**
* required .Conversation conversation = 1;
*/
boolean hasConversation();
/**
* required .Conversation conversation = 1;
*/
cn.wildfirechat.proto.WFCMessage.Conversation getConversation();
/**
* required .Conversation conversation = 1;
*/
cn.wildfirechat.proto.WFCMessage.ConversationOrBuilder getConversationOrBuilder();
// required string from_user = 2;
/**
* required string from_user = 2;
*/
boolean hasFromUser();
/**
* required string from_user = 2;
*/
java.lang.String getFromUser();
/**
* required string from_user = 2;
*/
com.google.protobuf.ByteString
getFromUserBytes();
// required .MessageContent content = 3;
/**
* required .MessageContent content = 3;
*/
boolean hasContent();
/**
* required .MessageContent content = 3;
*/
cn.wildfirechat.proto.WFCMessage.MessageContent getContent();
/**
* required .MessageContent content = 3;
*/
cn.wildfirechat.proto.WFCMessage.MessageContentOrBuilder getContentOrBuilder();
// optional int64 message_id = 4;
/**
* optional int64 message_id = 4;
*/
boolean hasMessageId();
/**
* optional int64 message_id = 4;
*/
long getMessageId();
// optional int64 server_timestamp = 5;
/**
* optional int64 server_timestamp = 5;
*/
boolean hasServerTimestamp();
/**
* optional int64 server_timestamp = 5;
*/
long getServerTimestamp();
// optional string to_user = 6;
/**
* optional string to_user = 6;
*
*
*not use anymore
*
*/
boolean hasToUser();
/**
* optional string to_user = 6;
*
*
*not use anymore
*
*/
java.lang.String getToUser();
/**
* optional string to_user = 6;
*
*
*not use anymore
*
*/
com.google.protobuf.ByteString
getToUserBytes();
// repeated string to = 7;
/**
* repeated string to = 7;
*/
java.util.List
getToList();
/**
* repeated string to = 7;
*/
int getToCount();
/**
* repeated string to = 7;
*/
java.lang.String getTo(int index);
/**
* repeated string to = 7;
*/
com.google.protobuf.ByteString
getToBytes(int index);
}
/**
* Protobuf type {@code Message}
*/
public static final class Message extends
com.google.protobuf.GeneratedMessage
implements MessageOrBuilder {
// Use Message.newBuilder() to construct.
private Message(com.google.protobuf.GeneratedMessage.Builder> builder) {
super(builder);
this.unknownFields = builder.getUnknownFields();
}
private Message(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); }
private static final Message defaultInstance;
public static Message getDefaultInstance() {
return defaultInstance;
}
public Message getDefaultInstanceForType() {
return defaultInstance;
}
private final com.google.protobuf.UnknownFieldSet unknownFields;
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private Message(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
initFields();
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;
default: {
if (!parseUnknownField(input, unknownFields,
extensionRegistry, tag)) {
done = true;
}
break;
}
case 10: {
cn.wildfirechat.proto.WFCMessage.Conversation.Builder subBuilder = null;
if (((bitField0_ & 0x00000001) == 0x00000001)) {
subBuilder = conversation_.toBuilder();
}
conversation_ = input.readMessage(cn.wildfirechat.proto.WFCMessage.Conversation.PARSER, extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(conversation_);
conversation_ = subBuilder.buildPartial();
}
bitField0_ |= 0x00000001;
break;
}
case 18: {
bitField0_ |= 0x00000002;
fromUser_ = input.readBytes();
break;
}
case 26: {
cn.wildfirechat.proto.WFCMessage.MessageContent.Builder subBuilder = null;
if (((bitField0_ & 0x00000004) == 0x00000004)) {
subBuilder = content_.toBuilder();
}
content_ = input.readMessage(cn.wildfirechat.proto.WFCMessage.MessageContent.PARSER, extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(content_);
content_ = subBuilder.buildPartial();
}
bitField0_ |= 0x00000004;
break;
}
case 32: {
bitField0_ |= 0x00000008;
messageId_ = input.readInt64();
break;
}
case 40: {
bitField0_ |= 0x00000010;
serverTimestamp_ = input.readInt64();
break;
}
case 50: {
bitField0_ |= 0x00000020;
toUser_ = input.readBytes();
break;
}
case 58: {
if (!((mutable_bitField0_ & 0x00000040) == 0x00000040)) {
to_ = new com.google.protobuf.LazyStringArrayList();
mutable_bitField0_ |= 0x00000040;
}
to_.add(input.readBytes());
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e.getMessage()).setUnfinishedMessage(this);
} finally {
if (((mutable_bitField0_ & 0x00000040) == 0x00000040)) {
to_ = new com.google.protobuf.UnmodifiableLazyStringList(to_);
}
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return cn.wildfirechat.proto.WFCMessage.internal_static_Message_descriptor;
}
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable() {
return cn.wildfirechat.proto.WFCMessage.internal_static_Message_fieldAccessorTable
.ensureFieldAccessorsInitialized(
cn.wildfirechat.proto.WFCMessage.Message.class, cn.wildfirechat.proto.WFCMessage.Message.Builder.class);
}
public static com.google.protobuf.Parser PARSER =
new com.google.protobuf.AbstractParser() {
public Message parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new Message(input, extensionRegistry);
}
};
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
private int bitField0_;
// required .Conversation conversation = 1;
public static final int CONVERSATION_FIELD_NUMBER = 1;
private cn.wildfirechat.proto.WFCMessage.Conversation conversation_;
/**
* required .Conversation conversation = 1;
*/
public boolean hasConversation() {
return ((bitField0_ & 0x00000001) == 0x00000001);
}
/**
* required .Conversation conversation = 1;
*/
public cn.wildfirechat.proto.WFCMessage.Conversation getConversation() {
return conversation_;
}
/**
* required .Conversation conversation = 1;
*/
public cn.wildfirechat.proto.WFCMessage.ConversationOrBuilder getConversationOrBuilder() {
return conversation_;
}
// required string from_user = 2;
public static final int FROM_USER_FIELD_NUMBER = 2;
private java.lang.Object fromUser_;
/**
* required string from_user = 2;
*/
public boolean hasFromUser() {
return ((bitField0_ & 0x00000002) == 0x00000002);
}
/**
* required string from_user = 2;
*/
public java.lang.String getFromUser() {
java.lang.Object ref = fromUser_;
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()) {
fromUser_ = s;
}
return s;
}
}
/**
* required string from_user = 2;
*/
public com.google.protobuf.ByteString
getFromUserBytes() {
java.lang.Object ref = fromUser_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
fromUser_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
// required .MessageContent content = 3;
public static final int CONTENT_FIELD_NUMBER = 3;
private cn.wildfirechat.proto.WFCMessage.MessageContent content_;
/**
* required .MessageContent content = 3;
*/
public boolean hasContent() {
return ((bitField0_ & 0x00000004) == 0x00000004);
}
/**
* required .MessageContent content = 3;
*/
public cn.wildfirechat.proto.WFCMessage.MessageContent getContent() {
return content_;
}
/**
* required .MessageContent content = 3;
*/
public cn.wildfirechat.proto.WFCMessage.MessageContentOrBuilder getContentOrBuilder() {
return content_;
}
// optional int64 message_id = 4;
public static final int MESSAGE_ID_FIELD_NUMBER = 4;
private long messageId_;
/**
* optional int64 message_id = 4;
*/
public boolean hasMessageId() {
return ((bitField0_ & 0x00000008) == 0x00000008);
}
/**
* optional int64 message_id = 4;
*/
public long getMessageId() {
return messageId_;
}
// optional int64 server_timestamp = 5;
public static final int SERVER_TIMESTAMP_FIELD_NUMBER = 5;
private long serverTimestamp_;
/**
* optional int64 server_timestamp = 5;
*/
public boolean hasServerTimestamp() {
return ((bitField0_ & 0x00000010) == 0x00000010);
}
/**
* optional int64 server_timestamp = 5;
*/
public long getServerTimestamp() {
return serverTimestamp_;
}
// optional string to_user = 6;
public static final int TO_USER_FIELD_NUMBER = 6;
private java.lang.Object toUser_;
/**
* optional string to_user = 6;
*
*
*not use anymore
*
*/
public boolean hasToUser() {
return ((bitField0_ & 0x00000020) == 0x00000020);
}
/**
* optional string to_user = 6;
*
*
*not use anymore
*
*/
public java.lang.String getToUser() {
java.lang.Object ref = toUser_;
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()) {
toUser_ = s;
}
return s;
}
}
/**
* optional string to_user = 6;
*
*
*not use anymore
*
*/
public com.google.protobuf.ByteString
getToUserBytes() {
java.lang.Object ref = toUser_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
toUser_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
// repeated string to = 7;
public static final int TO_FIELD_NUMBER = 7;
private com.google.protobuf.LazyStringList to_;
/**
* repeated string to = 7;
*/
public java.util.List
getToList() {
return to_;
}
/**
* repeated string to = 7;
*/
public int getToCount() {
return to_.size();
}
/**
* repeated string to = 7;
*/
public java.lang.String getTo(int index) {
return to_.get(index);
}
/**
* repeated string to = 7;
*/
public com.google.protobuf.ByteString
getToBytes(int index) {
return to_.getByteString(index);
}
private void initFields() {
conversation_ = cn.wildfirechat.proto.WFCMessage.Conversation.getDefaultInstance();
fromUser_ = "";
content_ = cn.wildfirechat.proto.WFCMessage.MessageContent.getDefaultInstance();
messageId_ = 0L;
serverTimestamp_ = 0L;
toUser_ = "";
to_ = com.google.protobuf.LazyStringArrayList.EMPTY;
}
private byte memoizedIsInitialized = -1;
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized != -1) return isInitialized == 1;
if (!hasConversation()) {
memoizedIsInitialized = 0;
return false;
}
if (!hasFromUser()) {
memoizedIsInitialized = 0;
return false;
}
if (!hasContent()) {
memoizedIsInitialized = 0;
return false;
}
if (!getConversation().isInitialized()) {
memoizedIsInitialized = 0;
return false;
}
if (!getContent().isInitialized()) {
memoizedIsInitialized = 0;
return false;
}
memoizedIsInitialized = 1;
return true;
}
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
getSerializedSize();
if (((bitField0_ & 0x00000001) == 0x00000001)) {
output.writeMessage(1, conversation_);
}
if (((bitField0_ & 0x00000002) == 0x00000002)) {
output.writeBytes(2, getFromUserBytes());
}
if (((bitField0_ & 0x00000004) == 0x00000004)) {
output.writeMessage(3, content_);
}
if (((bitField0_ & 0x00000008) == 0x00000008)) {
output.writeInt64(4, messageId_);
}
if (((bitField0_ & 0x00000010) == 0x00000010)) {
output.writeInt64(5, serverTimestamp_);
}
if (((bitField0_ & 0x00000020) == 0x00000020)) {
output.writeBytes(6, getToUserBytes());
}
for (int i = 0; i < to_.size(); i++) {
output.writeBytes(7, to_.getByteString(i));
}
getUnknownFields().writeTo(output);
}
private int memoizedSerializedSize = -1;
public int getSerializedSize() {
int size = memoizedSerializedSize;
if (size != -1) return size;
size = 0;
if (((bitField0_ & 0x00000001) == 0x00000001)) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(1, conversation_);
}
if (((bitField0_ & 0x00000002) == 0x00000002)) {
size += com.google.protobuf.CodedOutputStream
.computeBytesSize(2, getFromUserBytes());
}
if (((bitField0_ & 0x00000004) == 0x00000004)) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(3, content_);
}
if (((bitField0_ & 0x00000008) == 0x00000008)) {
size += com.google.protobuf.CodedOutputStream
.computeInt64Size(4, messageId_);
}
if (((bitField0_ & 0x00000010) == 0x00000010)) {
size += com.google.protobuf.CodedOutputStream
.computeInt64Size(5, serverTimestamp_);
}
if (((bitField0_ & 0x00000020) == 0x00000020)) {
size += com.google.protobuf.CodedOutputStream
.computeBytesSize(6, getToUserBytes());
}
{
int dataSize = 0;
for (int i = 0; i < to_.size(); i++) {
dataSize += com.google.protobuf.CodedOutputStream
.computeBytesSizeNoTag(to_.getByteString(i));
}
size += dataSize;
size += 1 * getToList().size();
}
size += getUnknownFields().getSerializedSize();
memoizedSerializedSize = size;
return size;
}
private static final long serialVersionUID = 0L;
@java.lang.Override
protected java.lang.Object writeReplace()
throws java.io.ObjectStreamException {
return super.writeReplace();
}
public static cn.wildfirechat.proto.WFCMessage.Message parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static cn.wildfirechat.proto.WFCMessage.Message parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static cn.wildfirechat.proto.WFCMessage.Message parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static cn.wildfirechat.proto.WFCMessage.Message parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static cn.wildfirechat.proto.WFCMessage.Message parseFrom(java.io.InputStream input)
throws java.io.IOException {
return PARSER.parseFrom(input);
}
public static cn.wildfirechat.proto.WFCMessage.Message parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return PARSER.parseFrom(input, extensionRegistry);
}
public static cn.wildfirechat.proto.WFCMessage.Message parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return PARSER.parseDelimitedFrom(input);
}
public static cn.wildfirechat.proto.WFCMessage.Message parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return PARSER.parseDelimitedFrom(input, extensionRegistry);
}
public static cn.wildfirechat.proto.WFCMessage.Message parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return PARSER.parseFrom(input);
}
public static cn.wildfirechat.proto.WFCMessage.Message parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return PARSER.parseFrom(input, extensionRegistry);
}
public static Builder newBuilder() { return Builder.create(); }
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder(cn.wildfirechat.proto.WFCMessage.Message prototype) {
return newBuilder().mergeFrom(prototype);
}
public Builder toBuilder() { return newBuilder(this); }
@java.lang.Override
protected Builder newBuilderForType(
com.google.protobuf.GeneratedMessage.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
* Protobuf type {@code Message}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessage.Builder
implements cn.wildfirechat.proto.WFCMessage.MessageOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return cn.wildfirechat.proto.WFCMessage.internal_static_Message_descriptor;
}
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable() {
return cn.wildfirechat.proto.WFCMessage.internal_static_Message_fieldAccessorTable
.ensureFieldAccessorsInitialized(
cn.wildfirechat.proto.WFCMessage.Message.class, cn.wildfirechat.proto.WFCMessage.Message.Builder.class);
}
// Construct using cn.wildfirechat.proto.WFCMessage.Message.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessage.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) {
getConversationFieldBuilder();
getContentFieldBuilder();
}
}
private static Builder create() {
return new Builder();
}
public Builder clear() {
super.clear();
if (conversationBuilder_ == null) {
conversation_ = cn.wildfirechat.proto.WFCMessage.Conversation.getDefaultInstance();
} else {
conversationBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000001);
fromUser_ = "";
bitField0_ = (bitField0_ & ~0x00000002);
if (contentBuilder_ == null) {
content_ = cn.wildfirechat.proto.WFCMessage.MessageContent.getDefaultInstance();
} else {
contentBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000004);
messageId_ = 0L;
bitField0_ = (bitField0_ & ~0x00000008);
serverTimestamp_ = 0L;
bitField0_ = (bitField0_ & ~0x00000010);
toUser_ = "";
bitField0_ = (bitField0_ & ~0x00000020);
to_ = com.google.protobuf.LazyStringArrayList.EMPTY;
bitField0_ = (bitField0_ & ~0x00000040);
return this;
}
public Builder clone() {
return create().mergeFrom(buildPartial());
}
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return cn.wildfirechat.proto.WFCMessage.internal_static_Message_descriptor;
}
public cn.wildfirechat.proto.WFCMessage.Message getDefaultInstanceForType() {
return cn.wildfirechat.proto.WFCMessage.Message.getDefaultInstance();
}
public cn.wildfirechat.proto.WFCMessage.Message build() {
cn.wildfirechat.proto.WFCMessage.Message result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
public cn.wildfirechat.proto.WFCMessage.Message buildPartial() {
cn.wildfirechat.proto.WFCMessage.Message result = new cn.wildfirechat.proto.WFCMessage.Message(this);
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
if (((from_bitField0_ & 0x00000001) == 0x00000001)) {
to_bitField0_ |= 0x00000001;
}
if (conversationBuilder_ == null) {
result.conversation_ = conversation_;
} else {
result.conversation_ = conversationBuilder_.build();
}
if (((from_bitField0_ & 0x00000002) == 0x00000002)) {
to_bitField0_ |= 0x00000002;
}
result.fromUser_ = fromUser_;
if (((from_bitField0_ & 0x00000004) == 0x00000004)) {
to_bitField0_ |= 0x00000004;
}
if (contentBuilder_ == null) {
result.content_ = content_;
} else {
result.content_ = contentBuilder_.build();
}
if (((from_bitField0_ & 0x00000008) == 0x00000008)) {
to_bitField0_ |= 0x00000008;
}
result.messageId_ = messageId_;
if (((from_bitField0_ & 0x00000010) == 0x00000010)) {
to_bitField0_ |= 0x00000010;
}
result.serverTimestamp_ = serverTimestamp_;
if (((from_bitField0_ & 0x00000020) == 0x00000020)) {
to_bitField0_ |= 0x00000020;
}
result.toUser_ = toUser_;
if (((bitField0_ & 0x00000040) == 0x00000040)) {
to_ = new com.google.protobuf.UnmodifiableLazyStringList(
to_);
bitField0_ = (bitField0_ & ~0x00000040);
}
result.to_ = to_;
result.bitField0_ = to_bitField0_;
onBuilt();
return result;
}
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof cn.wildfirechat.proto.WFCMessage.Message) {
return mergeFrom((cn.wildfirechat.proto.WFCMessage.Message)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(cn.wildfirechat.proto.WFCMessage.Message other) {
if (other == cn.wildfirechat.proto.WFCMessage.Message.getDefaultInstance()) return this;
if (other.hasConversation()) {
mergeConversation(other.getConversation());
}
if (other.hasFromUser()) {
bitField0_ |= 0x00000002;
fromUser_ = other.fromUser_;
onChanged();
}
if (other.hasContent()) {
mergeContent(other.getContent());
}
if (other.hasMessageId()) {
setMessageId(other.getMessageId());
}
if (other.hasServerTimestamp()) {
setServerTimestamp(other.getServerTimestamp());
}
if (other.hasToUser()) {
bitField0_ |= 0x00000020;
toUser_ = other.toUser_;
onChanged();
}
if (!other.to_.isEmpty()) {
if (to_.isEmpty()) {
to_ = other.to_;
bitField0_ = (bitField0_ & ~0x00000040);
} else {
ensureToIsMutable();
to_.addAll(other.to_);
}
onChanged();
}
this.mergeUnknownFields(other.getUnknownFields());
return this;
}
public final boolean isInitialized() {
if (!hasConversation()) {
return false;
}
if (!hasFromUser()) {
return false;
}
if (!hasContent()) {
return false;
}
if (!getConversation().isInitialized()) {
return false;
}
if (!getContent().isInitialized()) {
return false;
}
return true;
}
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
cn.wildfirechat.proto.WFCMessage.Message parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (cn.wildfirechat.proto.WFCMessage.Message) e.getUnfinishedMessage();
throw e;
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
// required .Conversation conversation = 1;
private cn.wildfirechat.proto.WFCMessage.Conversation conversation_ = cn.wildfirechat.proto.WFCMessage.Conversation.getDefaultInstance();
private com.google.protobuf.SingleFieldBuilder<
cn.wildfirechat.proto.WFCMessage.Conversation, cn.wildfirechat.proto.WFCMessage.Conversation.Builder, cn.wildfirechat.proto.WFCMessage.ConversationOrBuilder> conversationBuilder_;
/**
* required .Conversation conversation = 1;
*/
public boolean hasConversation() {
return ((bitField0_ & 0x00000001) == 0x00000001);
}
/**
* required .Conversation conversation = 1;
*/
public cn.wildfirechat.proto.WFCMessage.Conversation getConversation() {
if (conversationBuilder_ == null) {
return conversation_;
} else {
return conversationBuilder_.getMessage();
}
}
/**
* required .Conversation conversation = 1;
*/
public Builder setConversation(cn.wildfirechat.proto.WFCMessage.Conversation value) {
if (conversationBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
conversation_ = value;
onChanged();
} else {
conversationBuilder_.setMessage(value);
}
bitField0_ |= 0x00000001;
return this;
}
/**
* required .Conversation conversation = 1;
*/
public Builder setConversation(
cn.wildfirechat.proto.WFCMessage.Conversation.Builder builderForValue) {
if (conversationBuilder_ == null) {
conversation_ = builderForValue.build();
onChanged();
} else {
conversationBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000001;
return this;
}
/**
* required .Conversation conversation = 1;
*/
public Builder mergeConversation(cn.wildfirechat.proto.WFCMessage.Conversation value) {
if (conversationBuilder_ == null) {
if (((bitField0_ & 0x00000001) == 0x00000001) &&
conversation_ != cn.wildfirechat.proto.WFCMessage.Conversation.getDefaultInstance()) {
conversation_ =
cn.wildfirechat.proto.WFCMessage.Conversation.newBuilder(conversation_).mergeFrom(value).buildPartial();
} else {
conversation_ = value;
}
onChanged();
} else {
conversationBuilder_.mergeFrom(value);
}
bitField0_ |= 0x00000001;
return this;
}
/**
* required .Conversation conversation = 1;
*/
public Builder clearConversation() {
if (conversationBuilder_ == null) {
conversation_ = cn.wildfirechat.proto.WFCMessage.Conversation.getDefaultInstance();
onChanged();
} else {
conversationBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000001);
return this;
}
/**
* required .Conversation conversation = 1;
*/
public cn.wildfirechat.proto.WFCMessage.Conversation.Builder getConversationBuilder() {
bitField0_ |= 0x00000001;
onChanged();
return getConversationFieldBuilder().getBuilder();
}
/**
* required .Conversation conversation = 1;
*/
public cn.wildfirechat.proto.WFCMessage.ConversationOrBuilder getConversationOrBuilder() {
if (conversationBuilder_ != null) {
return conversationBuilder_.getMessageOrBuilder();
} else {
return conversation_;
}
}
/**
* required .Conversation conversation = 1;
*/
private com.google.protobuf.SingleFieldBuilder<
cn.wildfirechat.proto.WFCMessage.Conversation, cn.wildfirechat.proto.WFCMessage.Conversation.Builder, cn.wildfirechat.proto.WFCMessage.ConversationOrBuilder>
getConversationFieldBuilder() {
if (conversationBuilder_ == null) {
conversationBuilder_ = new com.google.protobuf.SingleFieldBuilder<
cn.wildfirechat.proto.WFCMessage.Conversation, cn.wildfirechat.proto.WFCMessage.Conversation.Builder, cn.wildfirechat.proto.WFCMessage.ConversationOrBuilder>(
conversation_,
getParentForChildren(),
isClean());
conversation_ = null;
}
return conversationBuilder_;
}
// required string from_user = 2;
private java.lang.Object fromUser_ = "";
/**
* required string from_user = 2;
*/
public boolean hasFromUser() {
return ((bitField0_ & 0x00000002) == 0x00000002);
}
/**
* required string from_user = 2;
*/
public java.lang.String getFromUser() {
java.lang.Object ref = fromUser_;
if (!(ref instanceof java.lang.String)) {
java.lang.String s = ((com.google.protobuf.ByteString) ref)
.toStringUtf8();
fromUser_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* required string from_user = 2;
*/
public com.google.protobuf.ByteString
getFromUserBytes() {
java.lang.Object ref = fromUser_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
fromUser_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* required string from_user = 2;
*/
public Builder setFromUser(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000002;
fromUser_ = value;
onChanged();
return this;
}
/**
* required string from_user = 2;
*/
public Builder clearFromUser() {
bitField0_ = (bitField0_ & ~0x00000002);
fromUser_ = getDefaultInstance().getFromUser();
onChanged();
return this;
}
/**
* required string from_user = 2;
*/
public Builder setFromUserBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000002;
fromUser_ = value;
onChanged();
return this;
}
// required .MessageContent content = 3;
private cn.wildfirechat.proto.WFCMessage.MessageContent content_ = cn.wildfirechat.proto.WFCMessage.MessageContent.getDefaultInstance();
private com.google.protobuf.SingleFieldBuilder<
cn.wildfirechat.proto.WFCMessage.MessageContent, cn.wildfirechat.proto.WFCMessage.MessageContent.Builder, cn.wildfirechat.proto.WFCMessage.MessageContentOrBuilder> contentBuilder_;
/**
* required .MessageContent content = 3;
*/
public boolean hasContent() {
return ((bitField0_ & 0x00000004) == 0x00000004);
}
/**
* required .MessageContent content = 3;
*/
public cn.wildfirechat.proto.WFCMessage.MessageContent getContent() {
if (contentBuilder_ == null) {
return content_;
} else {
return contentBuilder_.getMessage();
}
}
/**
* required .MessageContent content = 3;
*/
public Builder setContent(cn.wildfirechat.proto.WFCMessage.MessageContent value) {
if (contentBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
content_ = value;
onChanged();
} else {
contentBuilder_.setMessage(value);
}
bitField0_ |= 0x00000004;
return this;
}
/**
* required .MessageContent content = 3;
*/
public Builder setContent(
cn.wildfirechat.proto.WFCMessage.MessageContent.Builder builderForValue) {
if (contentBuilder_ == null) {
content_ = builderForValue.build();
onChanged();
} else {
contentBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000004;
return this;
}
/**
* required .MessageContent content = 3;
*/
public Builder mergeContent(cn.wildfirechat.proto.WFCMessage.MessageContent value) {
if (contentBuilder_ == null) {
if (((bitField0_ & 0x00000004) == 0x00000004) &&
content_ != cn.wildfirechat.proto.WFCMessage.MessageContent.getDefaultInstance()) {
content_ =
cn.wildfirechat.proto.WFCMessage.MessageContent.newBuilder(content_).mergeFrom(value).buildPartial();
} else {
content_ = value;
}
onChanged();
} else {
contentBuilder_.mergeFrom(value);
}
bitField0_ |= 0x00000004;
return this;
}
/**
* required .MessageContent content = 3;
*/
public Builder clearContent() {
if (contentBuilder_ == null) {
content_ = cn.wildfirechat.proto.WFCMessage.MessageContent.getDefaultInstance();
onChanged();
} else {
contentBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000004);
return this;
}
/**
* required .MessageContent content = 3;
*/
public cn.wildfirechat.proto.WFCMessage.MessageContent.Builder getContentBuilder() {
bitField0_ |= 0x00000004;
onChanged();
return getContentFieldBuilder().getBuilder();
}
/**
* required .MessageContent content = 3;
*/
public cn.wildfirechat.proto.WFCMessage.MessageContentOrBuilder getContentOrBuilder() {
if (contentBuilder_ != null) {
return contentBuilder_.getMessageOrBuilder();
} else {
return content_;
}
}
/**
* required .MessageContent content = 3;
*/
private com.google.protobuf.SingleFieldBuilder<
cn.wildfirechat.proto.WFCMessage.MessageContent, cn.wildfirechat.proto.WFCMessage.MessageContent.Builder, cn.wildfirechat.proto.WFCMessage.MessageContentOrBuilder>
getContentFieldBuilder() {
if (contentBuilder_ == null) {
contentBuilder_ = new com.google.protobuf.SingleFieldBuilder<
cn.wildfirechat.proto.WFCMessage.MessageContent, cn.wildfirechat.proto.WFCMessage.MessageContent.Builder, cn.wildfirechat.proto.WFCMessage.MessageContentOrBuilder>(
content_,
getParentForChildren(),
isClean());
content_ = null;
}
return contentBuilder_;
}
// optional int64 message_id = 4;
private long messageId_ ;
/**
* optional int64 message_id = 4;
*/
public boolean hasMessageId() {
return ((bitField0_ & 0x00000008) == 0x00000008);
}
/**
* optional int64 message_id = 4;
*/
public long getMessageId() {
return messageId_;
}
/**
* optional int64 message_id = 4;
*/
public Builder setMessageId(long value) {
bitField0_ |= 0x00000008;
messageId_ = value;
onChanged();
return this;
}
/**
* optional int64 message_id = 4;
*/
public Builder clearMessageId() {
bitField0_ = (bitField0_ & ~0x00000008);
messageId_ = 0L;
onChanged();
return this;
}
// optional int64 server_timestamp = 5;
private long serverTimestamp_ ;
/**
* optional int64 server_timestamp = 5;
*/
public boolean hasServerTimestamp() {
return ((bitField0_ & 0x00000010) == 0x00000010);
}
/**
* optional int64 server_timestamp = 5;
*/
public long getServerTimestamp() {
return serverTimestamp_;
}
/**
* optional int64 server_timestamp = 5;
*/
public Builder setServerTimestamp(long value) {
bitField0_ |= 0x00000010;
serverTimestamp_ = value;
onChanged();
return this;
}
/**
* optional int64 server_timestamp = 5;
*/
public Builder clearServerTimestamp() {
bitField0_ = (bitField0_ & ~0x00000010);
serverTimestamp_ = 0L;
onChanged();
return this;
}
// optional string to_user = 6;
private java.lang.Object toUser_ = "";
/**
* optional string to_user = 6;
*
*
*not use anymore
*
*/
public boolean hasToUser() {
return ((bitField0_ & 0x00000020) == 0x00000020);
}
/**
* optional string to_user = 6;
*
*
*not use anymore
*
*/
public java.lang.String getToUser() {
java.lang.Object ref = toUser_;
if (!(ref instanceof java.lang.String)) {
java.lang.String s = ((com.google.protobuf.ByteString) ref)
.toStringUtf8();
toUser_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* optional string to_user = 6;
*
*
*not use anymore
*
*/
public com.google.protobuf.ByteString
getToUserBytes() {
java.lang.Object ref = toUser_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
toUser_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* optional string to_user = 6;
*
*
*not use anymore
*
*/
public Builder setToUser(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000020;
toUser_ = value;
onChanged();
return this;
}
/**
* optional string to_user = 6;
*
*
*not use anymore
*
*/
public Builder clearToUser() {
bitField0_ = (bitField0_ & ~0x00000020);
toUser_ = getDefaultInstance().getToUser();
onChanged();
return this;
}
/**
* optional string to_user = 6;
*
*
*not use anymore
*
*/
public Builder setToUserBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000020;
toUser_ = value;
onChanged();
return this;
}
// repeated string to = 7;
private com.google.protobuf.LazyStringList to_ = com.google.protobuf.LazyStringArrayList.EMPTY;
private void ensureToIsMutable() {
if (!((bitField0_ & 0x00000040) == 0x00000040)) {
to_ = new com.google.protobuf.LazyStringArrayList(to_);
bitField0_ |= 0x00000040;
}
}
/**
* repeated string to = 7;
*/
public java.util.List
getToList() {
return java.util.Collections.unmodifiableList(to_);
}
/**
* repeated string to = 7;
*/
public int getToCount() {
return to_.size();
}
/**
* repeated string to = 7;
*/
public java.lang.String getTo(int index) {
return to_.get(index);
}
/**
* repeated string to = 7;
*/
public com.google.protobuf.ByteString
getToBytes(int index) {
return to_.getByteString(index);
}
/**
* repeated string to = 7;
*/
public Builder setTo(
int index, java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
ensureToIsMutable();
to_.set(index, value);
onChanged();
return this;
}
/**
* repeated string to = 7;
*/
public Builder addTo(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
ensureToIsMutable();
to_.add(value);
onChanged();
return this;
}
/**
* repeated string to = 7;
*/
public Builder addAllTo(
java.lang.Iterable values) {
ensureToIsMutable();
super.addAll(values, to_);
onChanged();
return this;
}
/**
* repeated string to = 7;
*/
public Builder clearTo() {
to_ = com.google.protobuf.LazyStringArrayList.EMPTY;
bitField0_ = (bitField0_ & ~0x00000040);
onChanged();
return this;
}
/**
* repeated string to = 7;
*/
public Builder addToBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
ensureToIsMutable();
to_.add(value);
onChanged();
return this;
}
// @@protoc_insertion_point(builder_scope:Message)
}
static {
defaultInstance = new Message(true);
defaultInstance.initFields();
}
// @@protoc_insertion_point(class_scope:Message)
}
public interface UserOrBuilder
extends com.google.protobuf.MessageOrBuilder {
// required string uid = 1;
/**
* required string uid = 1;
*/
boolean hasUid();
/**
* required string uid = 1;
*/
java.lang.String getUid();
/**
* required string uid = 1;
*/
com.google.protobuf.ByteString
getUidBytes();
// optional string name = 2;
/**
* optional string name = 2;
*/
boolean hasName();
/**
* optional string name = 2;
*/
java.lang.String getName();
/**
* optional string name = 2;
*/
com.google.protobuf.ByteString
getNameBytes();
// optional string display_name = 3;
/**
* optional string display_name = 3;
*/
boolean hasDisplayName();
/**
* optional string display_name = 3;
*/
java.lang.String getDisplayName();
/**
* optional string display_name = 3;
*/
com.google.protobuf.ByteString
getDisplayNameBytes();
// optional string portrait = 4;
/**
* optional string portrait = 4;
*/
boolean hasPortrait();
/**
* optional string portrait = 4;
*/
java.lang.String getPortrait();
/**
* optional string portrait = 4;
*/
com.google.protobuf.ByteString
getPortraitBytes();
// optional string mobile = 5;
/**
* optional string mobile = 5;
*/
boolean hasMobile();
/**
* optional string mobile = 5;
*/
java.lang.String getMobile();
/**
* optional string mobile = 5;
*/
com.google.protobuf.ByteString
getMobileBytes();
// optional string email = 6;
/**
* optional string email = 6;
*/
boolean hasEmail();
/**
* optional string email = 6;
*/
java.lang.String getEmail();
/**
* optional string email = 6;
*/
com.google.protobuf.ByteString
getEmailBytes();
// optional string address = 7;
/**
* optional string address = 7;
*/
boolean hasAddress();
/**
* optional string address = 7;
*/
java.lang.String getAddress();
/**
* optional string address = 7;
*/
com.google.protobuf.ByteString
getAddressBytes();
// optional string company = 8;
/**
* optional string company = 8;
*/
boolean hasCompany();
/**
* optional string company = 8;
*/
java.lang.String getCompany();
/**
* optional string company = 8;
*/
com.google.protobuf.ByteString
getCompanyBytes();
// optional string extra = 9;
/**
* optional string extra = 9;
*/
boolean hasExtra();
/**
* optional string extra = 9;
*/
java.lang.String getExtra();
/**
* optional string extra = 9;
*/
com.google.protobuf.ByteString
getExtraBytes();
// optional int64 update_dt = 10;
/**
* optional int64 update_dt = 10;
*/
boolean hasUpdateDt();
/**
* optional int64 update_dt = 10;
*/
long getUpdateDt();
// optional int32 gender = 11;
/**
* optional int32 gender = 11;
*/
boolean hasGender();
/**
* optional int32 gender = 11;
*/
int getGender();
// optional string social = 12;
/**
* optional string social = 12;
*/
boolean hasSocial();
/**
* optional string social = 12;
*/
java.lang.String getSocial();
/**
* optional string social = 12;
*/
com.google.protobuf.ByteString
getSocialBytes();
// optional int32 type = 13;
/**
* optional int32 type = 13;
*
*
*0 normal user; 1 robot
*
*/
boolean hasType();
/**
* optional int32 type = 13;
*
*
*0 normal user; 1 robot
*
*/
int getType();
// optional int32 deleted = 14;
/**
* optional int32 deleted = 14;
*/
boolean hasDeleted();
/**
* optional int32 deleted = 14;
*/
int getDeleted();
}
/**
* Protobuf type {@code User}
*/
public static final class User extends
com.google.protobuf.GeneratedMessage
implements UserOrBuilder {
// Use User.newBuilder() to construct.
private User(com.google.protobuf.GeneratedMessage.Builder> builder) {
super(builder);
this.unknownFields = builder.getUnknownFields();
}
private User(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); }
private static final User defaultInstance;
public static User getDefaultInstance() {
return defaultInstance;
}
public User getDefaultInstanceForType() {
return defaultInstance;
}
private final com.google.protobuf.UnknownFieldSet unknownFields;
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private User(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
initFields();
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;
default: {
if (!parseUnknownField(input, unknownFields,
extensionRegistry, tag)) {
done = true;
}
break;
}
case 10: {
bitField0_ |= 0x00000001;
uid_ = input.readBytes();
break;
}
case 18: {
bitField0_ |= 0x00000002;
name_ = input.readBytes();
break;
}
case 26: {
bitField0_ |= 0x00000004;
displayName_ = input.readBytes();
break;
}
case 34: {
bitField0_ |= 0x00000008;
portrait_ = input.readBytes();
break;
}
case 42: {
bitField0_ |= 0x00000010;
mobile_ = input.readBytes();
break;
}
case 50: {
bitField0_ |= 0x00000020;
email_ = input.readBytes();
break;
}
case 58: {
bitField0_ |= 0x00000040;
address_ = input.readBytes();
break;
}
case 66: {
bitField0_ |= 0x00000080;
company_ = input.readBytes();
break;
}
case 74: {
bitField0_ |= 0x00000100;
extra_ = input.readBytes();
break;
}
case 80: {
bitField0_ |= 0x00000200;
updateDt_ = input.readInt64();
break;
}
case 88: {
bitField0_ |= 0x00000400;
gender_ = input.readInt32();
break;
}
case 98: {
bitField0_ |= 0x00000800;
social_ = input.readBytes();
break;
}
case 104: {
bitField0_ |= 0x00001000;
type_ = input.readInt32();
break;
}
case 112: {
bitField0_ |= 0x00002000;
deleted_ = input.readInt32();
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e.getMessage()).setUnfinishedMessage(this);
} finally {
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return cn.wildfirechat.proto.WFCMessage.internal_static_User_descriptor;
}
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable() {
return cn.wildfirechat.proto.WFCMessage.internal_static_User_fieldAccessorTable
.ensureFieldAccessorsInitialized(
cn.wildfirechat.proto.WFCMessage.User.class, cn.wildfirechat.proto.WFCMessage.User.Builder.class);
}
public static com.google.protobuf.Parser PARSER =
new com.google.protobuf.AbstractParser() {
public User parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new User(input, extensionRegistry);
}
};
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
private int bitField0_;
// required string uid = 1;
public static final int UID_FIELD_NUMBER = 1;
private java.lang.Object uid_;
/**
* required string uid = 1;
*/
public boolean hasUid() {
return ((bitField0_ & 0x00000001) == 0x00000001);
}
/**
* required string uid = 1;
*/
public java.lang.String getUid() {
java.lang.Object ref = uid_;
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()) {
uid_ = s;
}
return s;
}
}
/**
* required string uid = 1;
*/
public com.google.protobuf.ByteString
getUidBytes() {
java.lang.Object ref = uid_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
uid_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
// optional string name = 2;
public static final int NAME_FIELD_NUMBER = 2;
private java.lang.Object name_;
/**
* optional string name = 2;
*/
public boolean hasName() {
return ((bitField0_ & 0x00000002) == 0x00000002);
}
/**
* optional string name = 2;
*/
public java.lang.String getName() {
java.lang.Object ref = name_;
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()) {
name_ = s;
}
return s;
}
}
/**
* optional string name = 2;
*/
public com.google.protobuf.ByteString
getNameBytes() {
java.lang.Object ref = name_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
name_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
// optional string display_name = 3;
public static final int DISPLAY_NAME_FIELD_NUMBER = 3;
private java.lang.Object displayName_;
/**
* optional string display_name = 3;
*/
public boolean hasDisplayName() {
return ((bitField0_ & 0x00000004) == 0x00000004);
}
/**
* optional string display_name = 3;
*/
public java.lang.String getDisplayName() {
java.lang.Object ref = displayName_;
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()) {
displayName_ = s;
}
return s;
}
}
/**
* optional string display_name = 3;
*/
public com.google.protobuf.ByteString
getDisplayNameBytes() {
java.lang.Object ref = displayName_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
displayName_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
// optional string portrait = 4;
public static final int PORTRAIT_FIELD_NUMBER = 4;
private java.lang.Object portrait_;
/**
* optional string portrait = 4;
*/
public boolean hasPortrait() {
return ((bitField0_ & 0x00000008) == 0x00000008);
}
/**
* optional string portrait = 4;
*/
public java.lang.String getPortrait() {
java.lang.Object ref = portrait_;
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()) {
portrait_ = s;
}
return s;
}
}
/**
* optional string portrait = 4;
*/
public com.google.protobuf.ByteString
getPortraitBytes() {
java.lang.Object ref = portrait_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
portrait_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
// optional string mobile = 5;
public static final int MOBILE_FIELD_NUMBER = 5;
private java.lang.Object mobile_;
/**
* optional string mobile = 5;
*/
public boolean hasMobile() {
return ((bitField0_ & 0x00000010) == 0x00000010);
}
/**
* optional string mobile = 5;
*/
public java.lang.String getMobile() {
java.lang.Object ref = mobile_;
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()) {
mobile_ = s;
}
return s;
}
}
/**
* optional string mobile = 5;
*/
public com.google.protobuf.ByteString
getMobileBytes() {
java.lang.Object ref = mobile_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
mobile_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
// optional string email = 6;
public static final int EMAIL_FIELD_NUMBER = 6;
private java.lang.Object email_;
/**
* optional string email = 6;
*/
public boolean hasEmail() {
return ((bitField0_ & 0x00000020) == 0x00000020);
}
/**
* optional string email = 6;
*/
public java.lang.String getEmail() {
java.lang.Object ref = email_;
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()) {
email_ = s;
}
return s;
}
}
/**
* optional string email = 6;
*/
public com.google.protobuf.ByteString
getEmailBytes() {
java.lang.Object ref = email_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
email_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
// optional string address = 7;
public static final int ADDRESS_FIELD_NUMBER = 7;
private java.lang.Object address_;
/**
* optional string address = 7;
*/
public boolean hasAddress() {
return ((bitField0_ & 0x00000040) == 0x00000040);
}
/**
* optional string address = 7;
*/
public java.lang.String getAddress() {
java.lang.Object ref = address_;
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()) {
address_ = s;
}
return s;
}
}
/**
* optional string address = 7;
*/
public com.google.protobuf.ByteString
getAddressBytes() {
java.lang.Object ref = address_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
address_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
// optional string company = 8;
public static final int COMPANY_FIELD_NUMBER = 8;
private java.lang.Object company_;
/**
* optional string company = 8;
*/
public boolean hasCompany() {
return ((bitField0_ & 0x00000080) == 0x00000080);
}
/**
* optional string company = 8;
*/
public java.lang.String getCompany() {
java.lang.Object ref = company_;
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()) {
company_ = s;
}
return s;
}
}
/**
* optional string company = 8;
*/
public com.google.protobuf.ByteString
getCompanyBytes() {
java.lang.Object ref = company_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
company_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
// optional string extra = 9;
public static final int EXTRA_FIELD_NUMBER = 9;
private java.lang.Object extra_;
/**
* optional string extra = 9;
*/
public boolean hasExtra() {
return ((bitField0_ & 0x00000100) == 0x00000100);
}
/**
* optional string extra = 9;
*/
public java.lang.String getExtra() {
java.lang.Object ref = extra_;
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()) {
extra_ = s;
}
return s;
}
}
/**
* optional string extra = 9;
*/
public com.google.protobuf.ByteString
getExtraBytes() {
java.lang.Object ref = extra_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
extra_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
// optional int64 update_dt = 10;
public static final int UPDATE_DT_FIELD_NUMBER = 10;
private long updateDt_;
/**
* optional int64 update_dt = 10;
*/
public boolean hasUpdateDt() {
return ((bitField0_ & 0x00000200) == 0x00000200);
}
/**
* optional int64 update_dt = 10;
*/
public long getUpdateDt() {
return updateDt_;
}
// optional int32 gender = 11;
public static final int GENDER_FIELD_NUMBER = 11;
private int gender_;
/**
* optional int32 gender = 11;
*/
public boolean hasGender() {
return ((bitField0_ & 0x00000400) == 0x00000400);
}
/**
* optional int32 gender = 11;
*/
public int getGender() {
return gender_;
}
// optional string social = 12;
public static final int SOCIAL_FIELD_NUMBER = 12;
private java.lang.Object social_;
/**
* optional string social = 12;
*/
public boolean hasSocial() {
return ((bitField0_ & 0x00000800) == 0x00000800);
}
/**
* optional string social = 12;
*/
public java.lang.String getSocial() {
java.lang.Object ref = social_;
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()) {
social_ = s;
}
return s;
}
}
/**
* optional string social = 12;
*/
public com.google.protobuf.ByteString
getSocialBytes() {
java.lang.Object ref = social_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
social_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
// optional int32 type = 13;
public static final int TYPE_FIELD_NUMBER = 13;
private int type_;
/**
* optional int32 type = 13;
*
*
*0 normal user; 1 robot
*
*/
public boolean hasType() {
return ((bitField0_ & 0x00001000) == 0x00001000);
}
/**
* optional int32 type = 13;
*
*
*0 normal user; 1 robot
*
*/
public int getType() {
return type_;
}
// optional int32 deleted = 14;
public static final int DELETED_FIELD_NUMBER = 14;
private int deleted_;
/**
* optional int32 deleted = 14;
*/
public boolean hasDeleted() {
return ((bitField0_ & 0x00002000) == 0x00002000);
}
/**
* optional int32 deleted = 14;
*/
public int getDeleted() {
return deleted_;
}
private void initFields() {
uid_ = "";
name_ = "";
displayName_ = "";
portrait_ = "";
mobile_ = "";
email_ = "";
address_ = "";
company_ = "";
extra_ = "";
updateDt_ = 0L;
gender_ = 0;
social_ = "";
type_ = 0;
deleted_ = 0;
}
private byte memoizedIsInitialized = -1;
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized != -1) return isInitialized == 1;
if (!hasUid()) {
memoizedIsInitialized = 0;
return false;
}
memoizedIsInitialized = 1;
return true;
}
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
getSerializedSize();
if (((bitField0_ & 0x00000001) == 0x00000001)) {
output.writeBytes(1, getUidBytes());
}
if (((bitField0_ & 0x00000002) == 0x00000002)) {
output.writeBytes(2, getNameBytes());
}
if (((bitField0_ & 0x00000004) == 0x00000004)) {
output.writeBytes(3, getDisplayNameBytes());
}
if (((bitField0_ & 0x00000008) == 0x00000008)) {
output.writeBytes(4, getPortraitBytes());
}
if (((bitField0_ & 0x00000010) == 0x00000010)) {
output.writeBytes(5, getMobileBytes());
}
if (((bitField0_ & 0x00000020) == 0x00000020)) {
output.writeBytes(6, getEmailBytes());
}
if (((bitField0_ & 0x00000040) == 0x00000040)) {
output.writeBytes(7, getAddressBytes());
}
if (((bitField0_ & 0x00000080) == 0x00000080)) {
output.writeBytes(8, getCompanyBytes());
}
if (((bitField0_ & 0x00000100) == 0x00000100)) {
output.writeBytes(9, getExtraBytes());
}
if (((bitField0_ & 0x00000200) == 0x00000200)) {
output.writeInt64(10, updateDt_);
}
if (((bitField0_ & 0x00000400) == 0x00000400)) {
output.writeInt32(11, gender_);
}
if (((bitField0_ & 0x00000800) == 0x00000800)) {
output.writeBytes(12, getSocialBytes());
}
if (((bitField0_ & 0x00001000) == 0x00001000)) {
output.writeInt32(13, type_);
}
if (((bitField0_ & 0x00002000) == 0x00002000)) {
output.writeInt32(14, deleted_);
}
getUnknownFields().writeTo(output);
}
private int memoizedSerializedSize = -1;
public int getSerializedSize() {
int size = memoizedSerializedSize;
if (size != -1) return size;
size = 0;
if (((bitField0_ & 0x00000001) == 0x00000001)) {
size += com.google.protobuf.CodedOutputStream
.computeBytesSize(1, getUidBytes());
}
if (((bitField0_ & 0x00000002) == 0x00000002)) {
size += com.google.protobuf.CodedOutputStream
.computeBytesSize(2, getNameBytes());
}
if (((bitField0_ & 0x00000004) == 0x00000004)) {
size += com.google.protobuf.CodedOutputStream
.computeBytesSize(3, getDisplayNameBytes());
}
if (((bitField0_ & 0x00000008) == 0x00000008)) {
size += com.google.protobuf.CodedOutputStream
.computeBytesSize(4, getPortraitBytes());
}
if (((bitField0_ & 0x00000010) == 0x00000010)) {
size += com.google.protobuf.CodedOutputStream
.computeBytesSize(5, getMobileBytes());
}
if (((bitField0_ & 0x00000020) == 0x00000020)) {
size += com.google.protobuf.CodedOutputStream
.computeBytesSize(6, getEmailBytes());
}
if (((bitField0_ & 0x00000040) == 0x00000040)) {
size += com.google.protobuf.CodedOutputStream
.computeBytesSize(7, getAddressBytes());
}
if (((bitField0_ & 0x00000080) == 0x00000080)) {
size += com.google.protobuf.CodedOutputStream
.computeBytesSize(8, getCompanyBytes());
}
if (((bitField0_ & 0x00000100) == 0x00000100)) {
size += com.google.protobuf.CodedOutputStream
.computeBytesSize(9, getExtraBytes());
}
if (((bitField0_ & 0x00000200) == 0x00000200)) {
size += com.google.protobuf.CodedOutputStream
.computeInt64Size(10, updateDt_);
}
if (((bitField0_ & 0x00000400) == 0x00000400)) {
size += com.google.protobuf.CodedOutputStream
.computeInt32Size(11, gender_);
}
if (((bitField0_ & 0x00000800) == 0x00000800)) {
size += com.google.protobuf.CodedOutputStream
.computeBytesSize(12, getSocialBytes());
}
if (((bitField0_ & 0x00001000) == 0x00001000)) {
size += com.google.protobuf.CodedOutputStream
.computeInt32Size(13, type_);
}
if (((bitField0_ & 0x00002000) == 0x00002000)) {
size += com.google.protobuf.CodedOutputStream
.computeInt32Size(14, deleted_);
}
size += getUnknownFields().getSerializedSize();
memoizedSerializedSize = size;
return size;
}
private static final long serialVersionUID = 0L;
@java.lang.Override
protected java.lang.Object writeReplace()
throws java.io.ObjectStreamException {
return super.writeReplace();
}
public static cn.wildfirechat.proto.WFCMessage.User parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static cn.wildfirechat.proto.WFCMessage.User parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static cn.wildfirechat.proto.WFCMessage.User parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static cn.wildfirechat.proto.WFCMessage.User parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static cn.wildfirechat.proto.WFCMessage.User parseFrom(java.io.InputStream input)
throws java.io.IOException {
return PARSER.parseFrom(input);
}
public static cn.wildfirechat.proto.WFCMessage.User parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return PARSER.parseFrom(input, extensionRegistry);
}
public static cn.wildfirechat.proto.WFCMessage.User parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return PARSER.parseDelimitedFrom(input);
}
public static cn.wildfirechat.proto.WFCMessage.User parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return PARSER.parseDelimitedFrom(input, extensionRegistry);
}
public static cn.wildfirechat.proto.WFCMessage.User parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return PARSER.parseFrom(input);
}
public static cn.wildfirechat.proto.WFCMessage.User parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return PARSER.parseFrom(input, extensionRegistry);
}
public static Builder newBuilder() { return Builder.create(); }
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder(cn.wildfirechat.proto.WFCMessage.User prototype) {
return newBuilder().mergeFrom(prototype);
}
public Builder toBuilder() { return newBuilder(this); }
@java.lang.Override
protected Builder newBuilderForType(
com.google.protobuf.GeneratedMessage.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
* Protobuf type {@code User}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessage.Builder
implements cn.wildfirechat.proto.WFCMessage.UserOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return cn.wildfirechat.proto.WFCMessage.internal_static_User_descriptor;
}
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable() {
return cn.wildfirechat.proto.WFCMessage.internal_static_User_fieldAccessorTable
.ensureFieldAccessorsInitialized(
cn.wildfirechat.proto.WFCMessage.User.class, cn.wildfirechat.proto.WFCMessage.User.Builder.class);
}
// Construct using cn.wildfirechat.proto.WFCMessage.User.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessage.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) {
}
}
private static Builder create() {
return new Builder();
}
public Builder clear() {
super.clear();
uid_ = "";
bitField0_ = (bitField0_ & ~0x00000001);
name_ = "";
bitField0_ = (bitField0_ & ~0x00000002);
displayName_ = "";
bitField0_ = (bitField0_ & ~0x00000004);
portrait_ = "";
bitField0_ = (bitField0_ & ~0x00000008);
mobile_ = "";
bitField0_ = (bitField0_ & ~0x00000010);
email_ = "";
bitField0_ = (bitField0_ & ~0x00000020);
address_ = "";
bitField0_ = (bitField0_ & ~0x00000040);
company_ = "";
bitField0_ = (bitField0_ & ~0x00000080);
extra_ = "";
bitField0_ = (bitField0_ & ~0x00000100);
updateDt_ = 0L;
bitField0_ = (bitField0_ & ~0x00000200);
gender_ = 0;
bitField0_ = (bitField0_ & ~0x00000400);
social_ = "";
bitField0_ = (bitField0_ & ~0x00000800);
type_ = 0;
bitField0_ = (bitField0_ & ~0x00001000);
deleted_ = 0;
bitField0_ = (bitField0_ & ~0x00002000);
return this;
}
public Builder clone() {
return create().mergeFrom(buildPartial());
}
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return cn.wildfirechat.proto.WFCMessage.internal_static_User_descriptor;
}
public cn.wildfirechat.proto.WFCMessage.User getDefaultInstanceForType() {
return cn.wildfirechat.proto.WFCMessage.User.getDefaultInstance();
}
public cn.wildfirechat.proto.WFCMessage.User build() {
cn.wildfirechat.proto.WFCMessage.User result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
public cn.wildfirechat.proto.WFCMessage.User buildPartial() {
cn.wildfirechat.proto.WFCMessage.User result = new cn.wildfirechat.proto.WFCMessage.User(this);
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
if (((from_bitField0_ & 0x00000001) == 0x00000001)) {
to_bitField0_ |= 0x00000001;
}
result.uid_ = uid_;
if (((from_bitField0_ & 0x00000002) == 0x00000002)) {
to_bitField0_ |= 0x00000002;
}
result.name_ = name_;
if (((from_bitField0_ & 0x00000004) == 0x00000004)) {
to_bitField0_ |= 0x00000004;
}
result.displayName_ = displayName_;
if (((from_bitField0_ & 0x00000008) == 0x00000008)) {
to_bitField0_ |= 0x00000008;
}
result.portrait_ = portrait_;
if (((from_bitField0_ & 0x00000010) == 0x00000010)) {
to_bitField0_ |= 0x00000010;
}
result.mobile_ = mobile_;
if (((from_bitField0_ & 0x00000020) == 0x00000020)) {
to_bitField0_ |= 0x00000020;
}
result.email_ = email_;
if (((from_bitField0_ & 0x00000040) == 0x00000040)) {
to_bitField0_ |= 0x00000040;
}
result.address_ = address_;
if (((from_bitField0_ & 0x00000080) == 0x00000080)) {
to_bitField0_ |= 0x00000080;
}
result.company_ = company_;
if (((from_bitField0_ & 0x00000100) == 0x00000100)) {
to_bitField0_ |= 0x00000100;
}
result.extra_ = extra_;
if (((from_bitField0_ & 0x00000200) == 0x00000200)) {
to_bitField0_ |= 0x00000200;
}
result.updateDt_ = updateDt_;
if (((from_bitField0_ & 0x00000400) == 0x00000400)) {
to_bitField0_ |= 0x00000400;
}
result.gender_ = gender_;
if (((from_bitField0_ & 0x00000800) == 0x00000800)) {
to_bitField0_ |= 0x00000800;
}
result.social_ = social_;
if (((from_bitField0_ & 0x00001000) == 0x00001000)) {
to_bitField0_ |= 0x00001000;
}
result.type_ = type_;
if (((from_bitField0_ & 0x00002000) == 0x00002000)) {
to_bitField0_ |= 0x00002000;
}
result.deleted_ = deleted_;
result.bitField0_ = to_bitField0_;
onBuilt();
return result;
}
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof cn.wildfirechat.proto.WFCMessage.User) {
return mergeFrom((cn.wildfirechat.proto.WFCMessage.User)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(cn.wildfirechat.proto.WFCMessage.User other) {
if (other == cn.wildfirechat.proto.WFCMessage.User.getDefaultInstance()) return this;
if (other.hasUid()) {
bitField0_ |= 0x00000001;
uid_ = other.uid_;
onChanged();
}
if (other.hasName()) {
bitField0_ |= 0x00000002;
name_ = other.name_;
onChanged();
}
if (other.hasDisplayName()) {
bitField0_ |= 0x00000004;
displayName_ = other.displayName_;
onChanged();
}
if (other.hasPortrait()) {
bitField0_ |= 0x00000008;
portrait_ = other.portrait_;
onChanged();
}
if (other.hasMobile()) {
bitField0_ |= 0x00000010;
mobile_ = other.mobile_;
onChanged();
}
if (other.hasEmail()) {
bitField0_ |= 0x00000020;
email_ = other.email_;
onChanged();
}
if (other.hasAddress()) {
bitField0_ |= 0x00000040;
address_ = other.address_;
onChanged();
}
if (other.hasCompany()) {
bitField0_ |= 0x00000080;
company_ = other.company_;
onChanged();
}
if (other.hasExtra()) {
bitField0_ |= 0x00000100;
extra_ = other.extra_;
onChanged();
}
if (other.hasUpdateDt()) {
setUpdateDt(other.getUpdateDt());
}
if (other.hasGender()) {
setGender(other.getGender());
}
if (other.hasSocial()) {
bitField0_ |= 0x00000800;
social_ = other.social_;
onChanged();
}
if (other.hasType()) {
setType(other.getType());
}
if (other.hasDeleted()) {
setDeleted(other.getDeleted());
}
this.mergeUnknownFields(other.getUnknownFields());
return this;
}
public final boolean isInitialized() {
if (!hasUid()) {
return false;
}
return true;
}
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
cn.wildfirechat.proto.WFCMessage.User parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (cn.wildfirechat.proto.WFCMessage.User) e.getUnfinishedMessage();
throw e;
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
// required string uid = 1;
private java.lang.Object uid_ = "";
/**
* required string uid = 1;
*/
public boolean hasUid() {
return ((bitField0_ & 0x00000001) == 0x00000001);
}
/**
* required string uid = 1;
*/
public java.lang.String getUid() {
java.lang.Object ref = uid_;
if (!(ref instanceof java.lang.String)) {
java.lang.String s = ((com.google.protobuf.ByteString) ref)
.toStringUtf8();
uid_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* required string uid = 1;
*/
public com.google.protobuf.ByteString
getUidBytes() {
java.lang.Object ref = uid_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
uid_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* required string uid = 1;
*/
public Builder setUid(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000001;
uid_ = value;
onChanged();
return this;
}
/**
* required string uid = 1;
*/
public Builder clearUid() {
bitField0_ = (bitField0_ & ~0x00000001);
uid_ = getDefaultInstance().getUid();
onChanged();
return this;
}
/**
* required string uid = 1;
*/
public Builder setUidBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000001;
uid_ = value;
onChanged();
return this;
}
// optional string name = 2;
private java.lang.Object name_ = "";
/**
* optional string name = 2;
*/
public boolean hasName() {
return ((bitField0_ & 0x00000002) == 0x00000002);
}
/**
* optional string name = 2;
*/
public java.lang.String getName() {
java.lang.Object ref = name_;
if (!(ref instanceof java.lang.String)) {
java.lang.String s = ((com.google.protobuf.ByteString) ref)
.toStringUtf8();
name_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* optional string name = 2;
*/
public com.google.protobuf.ByteString
getNameBytes() {
java.lang.Object ref = name_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
name_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* optional string name = 2;
*/
public Builder setName(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000002;
name_ = value;
onChanged();
return this;
}
/**
* optional string name = 2;
*/
public Builder clearName() {
bitField0_ = (bitField0_ & ~0x00000002);
name_ = getDefaultInstance().getName();
onChanged();
return this;
}
/**
* optional string name = 2;
*/
public Builder setNameBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000002;
name_ = value;
onChanged();
return this;
}
// optional string display_name = 3;
private java.lang.Object displayName_ = "";
/**
* optional string display_name = 3;
*/
public boolean hasDisplayName() {
return ((bitField0_ & 0x00000004) == 0x00000004);
}
/**
* optional string display_name = 3;
*/
public java.lang.String getDisplayName() {
java.lang.Object ref = displayName_;
if (!(ref instanceof java.lang.String)) {
java.lang.String s = ((com.google.protobuf.ByteString) ref)
.toStringUtf8();
displayName_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* optional string display_name = 3;
*/
public com.google.protobuf.ByteString
getDisplayNameBytes() {
java.lang.Object ref = displayName_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
displayName_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* optional string display_name = 3;
*/
public Builder setDisplayName(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000004;
displayName_ = value;
onChanged();
return this;
}
/**
* optional string display_name = 3;
*/
public Builder clearDisplayName() {
bitField0_ = (bitField0_ & ~0x00000004);
displayName_ = getDefaultInstance().getDisplayName();
onChanged();
return this;
}
/**
* optional string display_name = 3;
*/
public Builder setDisplayNameBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000004;
displayName_ = value;
onChanged();
return this;
}
// optional string portrait = 4;
private java.lang.Object portrait_ = "";
/**
* optional string portrait = 4;
*/
public boolean hasPortrait() {
return ((bitField0_ & 0x00000008) == 0x00000008);
}
/**
* optional string portrait = 4;
*/
public java.lang.String getPortrait() {
java.lang.Object ref = portrait_;
if (!(ref instanceof java.lang.String)) {
java.lang.String s = ((com.google.protobuf.ByteString) ref)
.toStringUtf8();
portrait_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* optional string portrait = 4;
*/
public com.google.protobuf.ByteString
getPortraitBytes() {
java.lang.Object ref = portrait_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
portrait_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* optional string portrait = 4;
*/
public Builder setPortrait(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000008;
portrait_ = value;
onChanged();
return this;
}
/**
* optional string portrait = 4;
*/
public Builder clearPortrait() {
bitField0_ = (bitField0_ & ~0x00000008);
portrait_ = getDefaultInstance().getPortrait();
onChanged();
return this;
}
/**
* optional string portrait = 4;
*/
public Builder setPortraitBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000008;
portrait_ = value;
onChanged();
return this;
}
// optional string mobile = 5;
private java.lang.Object mobile_ = "";
/**
* optional string mobile = 5;
*/
public boolean hasMobile() {
return ((bitField0_ & 0x00000010) == 0x00000010);
}
/**
* optional string mobile = 5;
*/
public java.lang.String getMobile() {
java.lang.Object ref = mobile_;
if (!(ref instanceof java.lang.String)) {
java.lang.String s = ((com.google.protobuf.ByteString) ref)
.toStringUtf8();
mobile_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* optional string mobile = 5;
*/
public com.google.protobuf.ByteString
getMobileBytes() {
java.lang.Object ref = mobile_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
mobile_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* optional string mobile = 5;
*/
public Builder setMobile(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000010;
mobile_ = value;
onChanged();
return this;
}
/**
* optional string mobile = 5;
*/
public Builder clearMobile() {
bitField0_ = (bitField0_ & ~0x00000010);
mobile_ = getDefaultInstance().getMobile();
onChanged();
return this;
}
/**
* optional string mobile = 5;
*/
public Builder setMobileBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000010;
mobile_ = value;
onChanged();
return this;
}
// optional string email = 6;
private java.lang.Object email_ = "";
/**
* optional string email = 6;
*/
public boolean hasEmail() {
return ((bitField0_ & 0x00000020) == 0x00000020);
}
/**
* optional string email = 6;
*/
public java.lang.String getEmail() {
java.lang.Object ref = email_;
if (!(ref instanceof java.lang.String)) {
java.lang.String s = ((com.google.protobuf.ByteString) ref)
.toStringUtf8();
email_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* optional string email = 6;
*/
public com.google.protobuf.ByteString
getEmailBytes() {
java.lang.Object ref = email_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
email_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* optional string email = 6;
*/
public Builder setEmail(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000020;
email_ = value;
onChanged();
return this;
}
/**
* optional string email = 6;
*/
public Builder clearEmail() {
bitField0_ = (bitField0_ & ~0x00000020);
email_ = getDefaultInstance().getEmail();
onChanged();
return this;
}
/**
* optional string email = 6;
*/
public Builder setEmailBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000020;
email_ = value;
onChanged();
return this;
}
// optional string address = 7;
private java.lang.Object address_ = "";
/**
* optional string address = 7;
*/
public boolean hasAddress() {
return ((bitField0_ & 0x00000040) == 0x00000040);
}
/**
* optional string address = 7;
*/
public java.lang.String getAddress() {
java.lang.Object ref = address_;
if (!(ref instanceof java.lang.String)) {
java.lang.String s = ((com.google.protobuf.ByteString) ref)
.toStringUtf8();
address_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* optional string address = 7;
*/
public com.google.protobuf.ByteString
getAddressBytes() {
java.lang.Object ref = address_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
address_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* optional string address = 7;
*/
public Builder setAddress(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000040;
address_ = value;
onChanged();
return this;
}
/**
* optional string address = 7;
*/
public Builder clearAddress() {
bitField0_ = (bitField0_ & ~0x00000040);
address_ = getDefaultInstance().getAddress();
onChanged();
return this;
}
/**
* optional string address = 7;
*/
public Builder setAddressBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000040;
address_ = value;
onChanged();
return this;
}
// optional string company = 8;
private java.lang.Object company_ = "";
/**
* optional string company = 8;
*/
public boolean hasCompany() {
return ((bitField0_ & 0x00000080) == 0x00000080);
}
/**
* optional string company = 8;
*/
public java.lang.String getCompany() {
java.lang.Object ref = company_;
if (!(ref instanceof java.lang.String)) {
java.lang.String s = ((com.google.protobuf.ByteString) ref)
.toStringUtf8();
company_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* optional string company = 8;
*/
public com.google.protobuf.ByteString
getCompanyBytes() {
java.lang.Object ref = company_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
company_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* optional string company = 8;
*/
public Builder setCompany(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000080;
company_ = value;
onChanged();
return this;
}
/**
* optional string company = 8;
*/
public Builder clearCompany() {
bitField0_ = (bitField0_ & ~0x00000080);
company_ = getDefaultInstance().getCompany();
onChanged();
return this;
}
/**
* optional string company = 8;
*/
public Builder setCompanyBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000080;
company_ = value;
onChanged();
return this;
}
// optional string extra = 9;
private java.lang.Object extra_ = "";
/**
* optional string extra = 9;
*/
public boolean hasExtra() {
return ((bitField0_ & 0x00000100) == 0x00000100);
}
/**
* optional string extra = 9;
*/
public java.lang.String getExtra() {
java.lang.Object ref = extra_;
if (!(ref instanceof java.lang.String)) {
java.lang.String s = ((com.google.protobuf.ByteString) ref)
.toStringUtf8();
extra_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* optional string extra = 9;
*/
public com.google.protobuf.ByteString
getExtraBytes() {
java.lang.Object ref = extra_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
extra_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* optional string extra = 9;
*/
public Builder setExtra(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000100;
extra_ = value;
onChanged();
return this;
}
/**
* optional string extra = 9;
*/
public Builder clearExtra() {
bitField0_ = (bitField0_ & ~0x00000100);
extra_ = getDefaultInstance().getExtra();
onChanged();
return this;
}
/**
* optional string extra = 9;
*/
public Builder setExtraBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000100;
extra_ = value;
onChanged();
return this;
}
// optional int64 update_dt = 10;
private long updateDt_ ;
/**
* optional int64 update_dt = 10;
*/
public boolean hasUpdateDt() {
return ((bitField0_ & 0x00000200) == 0x00000200);
}
/**
* optional int64 update_dt = 10;
*/
public long getUpdateDt() {
return updateDt_;
}
/**
* optional int64 update_dt = 10;
*/
public Builder setUpdateDt(long value) {
bitField0_ |= 0x00000200;
updateDt_ = value;
onChanged();
return this;
}
/**
* optional int64 update_dt = 10;
*/
public Builder clearUpdateDt() {
bitField0_ = (bitField0_ & ~0x00000200);
updateDt_ = 0L;
onChanged();
return this;
}
// optional int32 gender = 11;
private int gender_ ;
/**
* optional int32 gender = 11;
*/
public boolean hasGender() {
return ((bitField0_ & 0x00000400) == 0x00000400);
}
/**
* optional int32 gender = 11;
*/
public int getGender() {
return gender_;
}
/**
* optional int32 gender = 11;
*/
public Builder setGender(int value) {
bitField0_ |= 0x00000400;
gender_ = value;
onChanged();
return this;
}
/**
* optional int32 gender = 11;
*/
public Builder clearGender() {
bitField0_ = (bitField0_ & ~0x00000400);
gender_ = 0;
onChanged();
return this;
}
// optional string social = 12;
private java.lang.Object social_ = "";
/**
* optional string social = 12;
*/
public boolean hasSocial() {
return ((bitField0_ & 0x00000800) == 0x00000800);
}
/**
* optional string social = 12;
*/
public java.lang.String getSocial() {
java.lang.Object ref = social_;
if (!(ref instanceof java.lang.String)) {
java.lang.String s = ((com.google.protobuf.ByteString) ref)
.toStringUtf8();
social_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* optional string social = 12;
*/
public com.google.protobuf.ByteString
getSocialBytes() {
java.lang.Object ref = social_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
social_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* optional string social = 12;
*/
public Builder setSocial(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000800;
social_ = value;
onChanged();
return this;
}
/**
* optional string social = 12;
*/
public Builder clearSocial() {
bitField0_ = (bitField0_ & ~0x00000800);
social_ = getDefaultInstance().getSocial();
onChanged();
return this;
}
/**
* optional string social = 12;
*/
public Builder setSocialBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000800;
social_ = value;
onChanged();
return this;
}
// optional int32 type = 13;
private int type_ ;
/**
* optional int32 type = 13;
*
*
*0 normal user; 1 robot
*
*/
public boolean hasType() {
return ((bitField0_ & 0x00001000) == 0x00001000);
}
/**
* optional int32 type = 13;
*
*
*0 normal user; 1 robot
*
*/
public int getType() {
return type_;
}
/**
* optional int32 type = 13;
*
*
*0 normal user; 1 robot
*
*/
public Builder setType(int value) {
bitField0_ |= 0x00001000;
type_ = value;
onChanged();
return this;
}
/**
* optional int32 type = 13;
*
*
*0 normal user; 1 robot
*
*/
public Builder clearType() {
bitField0_ = (bitField0_ & ~0x00001000);
type_ = 0;
onChanged();
return this;
}
// optional int32 deleted = 14;
private int deleted_ ;
/**
* optional int32 deleted = 14;
*/
public boolean hasDeleted() {
return ((bitField0_ & 0x00002000) == 0x00002000);
}
/**
* optional int32 deleted = 14;
*/
public int getDeleted() {
return deleted_;
}
/**
* optional int32 deleted = 14;
*/
public Builder setDeleted(int value) {
bitField0_ |= 0x00002000;
deleted_ = value;
onChanged();
return this;
}
/**
* optional int32 deleted = 14;
*/
public Builder clearDeleted() {
bitField0_ = (bitField0_ & ~0x00002000);
deleted_ = 0;
onChanged();
return this;
}
// @@protoc_insertion_point(builder_scope:User)
}
static {
defaultInstance = new User(true);
defaultInstance.initFields();
}
// @@protoc_insertion_point(class_scope:User)
}
public interface RobotOrBuilder
extends com.google.protobuf.MessageOrBuilder {
// required string uid = 1;
/**
* required string uid = 1;
*/
boolean hasUid();
/**
* required string uid = 1;
*/
java.lang.String getUid();
/**
* required string uid = 1;
*/
com.google.protobuf.ByteString
getUidBytes();
// required int32 state = 2;
/**
* required int32 state = 2;
*
*
*0 normal; 1 deleted;
*
*/
boolean hasState();
/**
* required int32 state = 2;
*
*
*0 normal; 1 deleted;
*
*/
int getState();
// optional string owner = 3;
/**
* optional string owner = 3;
*/
boolean hasOwner();
/**
* optional string owner = 3;
*/
java.lang.String getOwner();
/**
* optional string owner = 3;
*/
com.google.protobuf.ByteString
getOwnerBytes();
// optional string secret = 4;
/**
* optional string secret = 4;
*/
boolean hasSecret();
/**
* optional string secret = 4;
*/
java.lang.String getSecret();
/**
* optional string secret = 4;
*/
com.google.protobuf.ByteString
getSecretBytes();
// optional string callback = 5;
/**
* optional string callback = 5;
*/
boolean hasCallback();
/**
* optional string callback = 5;
*/
java.lang.String getCallback();
/**
* optional string callback = 5;
*/
com.google.protobuf.ByteString
getCallbackBytes();
// optional string extra = 6;
/**
* optional string extra = 6;
*/
boolean hasExtra();
/**
* optional string extra = 6;
*/
java.lang.String getExtra();
/**
* optional string extra = 6;
*/
com.google.protobuf.ByteString
getExtraBytes();
}
/**
* Protobuf type {@code Robot}
*/
public static final class Robot extends
com.google.protobuf.GeneratedMessage
implements RobotOrBuilder {
// Use Robot.newBuilder() to construct.
private Robot(com.google.protobuf.GeneratedMessage.Builder> builder) {
super(builder);
this.unknownFields = builder.getUnknownFields();
}
private Robot(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); }
private static final Robot defaultInstance;
public static Robot getDefaultInstance() {
return defaultInstance;
}
public Robot getDefaultInstanceForType() {
return defaultInstance;
}
private final com.google.protobuf.UnknownFieldSet unknownFields;
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private Robot(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
initFields();
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;
default: {
if (!parseUnknownField(input, unknownFields,
extensionRegistry, tag)) {
done = true;
}
break;
}
case 10: {
bitField0_ |= 0x00000001;
uid_ = input.readBytes();
break;
}
case 16: {
bitField0_ |= 0x00000002;
state_ = input.readInt32();
break;
}
case 26: {
bitField0_ |= 0x00000004;
owner_ = input.readBytes();
break;
}
case 34: {
bitField0_ |= 0x00000008;
secret_ = input.readBytes();
break;
}
case 42: {
bitField0_ |= 0x00000010;
callback_ = input.readBytes();
break;
}
case 50: {
bitField0_ |= 0x00000020;
extra_ = input.readBytes();
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e.getMessage()).setUnfinishedMessage(this);
} finally {
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return cn.wildfirechat.proto.WFCMessage.internal_static_Robot_descriptor;
}
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable() {
return cn.wildfirechat.proto.WFCMessage.internal_static_Robot_fieldAccessorTable
.ensureFieldAccessorsInitialized(
cn.wildfirechat.proto.WFCMessage.Robot.class, cn.wildfirechat.proto.WFCMessage.Robot.Builder.class);
}
public static com.google.protobuf.Parser PARSER =
new com.google.protobuf.AbstractParser() {
public Robot parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new Robot(input, extensionRegistry);
}
};
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
private int bitField0_;
// required string uid = 1;
public static final int UID_FIELD_NUMBER = 1;
private java.lang.Object uid_;
/**
* required string uid = 1;
*/
public boolean hasUid() {
return ((bitField0_ & 0x00000001) == 0x00000001);
}
/**
* required string uid = 1;
*/
public java.lang.String getUid() {
java.lang.Object ref = uid_;
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()) {
uid_ = s;
}
return s;
}
}
/**
* required string uid = 1;
*/
public com.google.protobuf.ByteString
getUidBytes() {
java.lang.Object ref = uid_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
uid_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
// required int32 state = 2;
public static final int STATE_FIELD_NUMBER = 2;
private int state_;
/**
* required int32 state = 2;
*
*
*0 normal; 1 deleted;
*
*/
public boolean hasState() {
return ((bitField0_ & 0x00000002) == 0x00000002);
}
/**
* required int32 state = 2;
*
*
*0 normal; 1 deleted;
*
*/
public int getState() {
return state_;
}
// optional string owner = 3;
public static final int OWNER_FIELD_NUMBER = 3;
private java.lang.Object owner_;
/**
* optional string owner = 3;
*/
public boolean hasOwner() {
return ((bitField0_ & 0x00000004) == 0x00000004);
}
/**
* optional string owner = 3;
*/
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 = 3;
*/
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;
}
}
// optional string secret = 4;
public static final int SECRET_FIELD_NUMBER = 4;
private java.lang.Object secret_;
/**
* optional string secret = 4;
*/
public boolean hasSecret() {
return ((bitField0_ & 0x00000008) == 0x00000008);
}
/**
* optional string secret = 4;
*/
public java.lang.String getSecret() {
java.lang.Object ref = secret_;
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()) {
secret_ = s;
}
return s;
}
}
/**
* optional string secret = 4;
*/
public com.google.protobuf.ByteString
getSecretBytes() {
java.lang.Object ref = secret_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
secret_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
// optional string callback = 5;
public static final int CALLBACK_FIELD_NUMBER = 5;
private java.lang.Object callback_;
/**
* optional string callback = 5;
*/
public boolean hasCallback() {
return ((bitField0_ & 0x00000010) == 0x00000010);
}
/**
* optional string callback = 5;
*/
public java.lang.String getCallback() {
java.lang.Object ref = callback_;
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()) {
callback_ = s;
}
return s;
}
}
/**
* optional string callback = 5;
*/
public com.google.protobuf.ByteString
getCallbackBytes() {
java.lang.Object ref = callback_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
callback_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
// optional string extra = 6;
public static final int EXTRA_FIELD_NUMBER = 6;
private java.lang.Object extra_;
/**
* optional string extra = 6;
*/
public boolean hasExtra() {
return ((bitField0_ & 0x00000020) == 0x00000020);
}
/**
* optional string extra = 6;
*/
public java.lang.String getExtra() {
java.lang.Object ref = extra_;
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()) {
extra_ = s;
}
return s;
}
}
/**
* optional string extra = 6;
*/
public com.google.protobuf.ByteString
getExtraBytes() {
java.lang.Object ref = extra_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
extra_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
private void initFields() {
uid_ = "";
state_ = 0;
owner_ = "";
secret_ = "";
callback_ = "";
extra_ = "";
}
private byte memoizedIsInitialized = -1;
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized != -1) return isInitialized == 1;
if (!hasUid()) {
memoizedIsInitialized = 0;
return false;
}
if (!hasState()) {
memoizedIsInitialized = 0;
return false;
}
memoizedIsInitialized = 1;
return true;
}
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
getSerializedSize();
if (((bitField0_ & 0x00000001) == 0x00000001)) {
output.writeBytes(1, getUidBytes());
}
if (((bitField0_ & 0x00000002) == 0x00000002)) {
output.writeInt32(2, state_);
}
if (((bitField0_ & 0x00000004) == 0x00000004)) {
output.writeBytes(3, getOwnerBytes());
}
if (((bitField0_ & 0x00000008) == 0x00000008)) {
output.writeBytes(4, getSecretBytes());
}
if (((bitField0_ & 0x00000010) == 0x00000010)) {
output.writeBytes(5, getCallbackBytes());
}
if (((bitField0_ & 0x00000020) == 0x00000020)) {
output.writeBytes(6, getExtraBytes());
}
getUnknownFields().writeTo(output);
}
private int memoizedSerializedSize = -1;
public int getSerializedSize() {
int size = memoizedSerializedSize;
if (size != -1) return size;
size = 0;
if (((bitField0_ & 0x00000001) == 0x00000001)) {
size += com.google.protobuf.CodedOutputStream
.computeBytesSize(1, getUidBytes());
}
if (((bitField0_ & 0x00000002) == 0x00000002)) {
size += com.google.protobuf.CodedOutputStream
.computeInt32Size(2, state_);
}
if (((bitField0_ & 0x00000004) == 0x00000004)) {
size += com.google.protobuf.CodedOutputStream
.computeBytesSize(3, getOwnerBytes());
}
if (((bitField0_ & 0x00000008) == 0x00000008)) {
size += com.google.protobuf.CodedOutputStream
.computeBytesSize(4, getSecretBytes());
}
if (((bitField0_ & 0x00000010) == 0x00000010)) {
size += com.google.protobuf.CodedOutputStream
.computeBytesSize(5, getCallbackBytes());
}
if (((bitField0_ & 0x00000020) == 0x00000020)) {
size += com.google.protobuf.CodedOutputStream
.computeBytesSize(6, getExtraBytes());
}
size += getUnknownFields().getSerializedSize();
memoizedSerializedSize = size;
return size;
}
private static final long serialVersionUID = 0L;
@java.lang.Override
protected java.lang.Object writeReplace()
throws java.io.ObjectStreamException {
return super.writeReplace();
}
public static cn.wildfirechat.proto.WFCMessage.Robot parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static cn.wildfirechat.proto.WFCMessage.Robot parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static cn.wildfirechat.proto.WFCMessage.Robot parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static cn.wildfirechat.proto.WFCMessage.Robot parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static cn.wildfirechat.proto.WFCMessage.Robot parseFrom(java.io.InputStream input)
throws java.io.IOException {
return PARSER.parseFrom(input);
}
public static cn.wildfirechat.proto.WFCMessage.Robot parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return PARSER.parseFrom(input, extensionRegistry);
}
public static cn.wildfirechat.proto.WFCMessage.Robot parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return PARSER.parseDelimitedFrom(input);
}
public static cn.wildfirechat.proto.WFCMessage.Robot parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return PARSER.parseDelimitedFrom(input, extensionRegistry);
}
public static cn.wildfirechat.proto.WFCMessage.Robot parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return PARSER.parseFrom(input);
}
public static cn.wildfirechat.proto.WFCMessage.Robot parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return PARSER.parseFrom(input, extensionRegistry);
}
public static Builder newBuilder() { return Builder.create(); }
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder(cn.wildfirechat.proto.WFCMessage.Robot prototype) {
return newBuilder().mergeFrom(prototype);
}
public Builder toBuilder() { return newBuilder(this); }
@java.lang.Override
protected Builder newBuilderForType(
com.google.protobuf.GeneratedMessage.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
* Protobuf type {@code Robot}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessage.Builder
implements cn.wildfirechat.proto.WFCMessage.RobotOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return cn.wildfirechat.proto.WFCMessage.internal_static_Robot_descriptor;
}
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable() {
return cn.wildfirechat.proto.WFCMessage.internal_static_Robot_fieldAccessorTable
.ensureFieldAccessorsInitialized(
cn.wildfirechat.proto.WFCMessage.Robot.class, cn.wildfirechat.proto.WFCMessage.Robot.Builder.class);
}
// Construct using cn.wildfirechat.proto.WFCMessage.Robot.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessage.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) {
}
}
private static Builder create() {
return new Builder();
}
public Builder clear() {
super.clear();
uid_ = "";
bitField0_ = (bitField0_ & ~0x00000001);
state_ = 0;
bitField0_ = (bitField0_ & ~0x00000002);
owner_ = "";
bitField0_ = (bitField0_ & ~0x00000004);
secret_ = "";
bitField0_ = (bitField0_ & ~0x00000008);
callback_ = "";
bitField0_ = (bitField0_ & ~0x00000010);
extra_ = "";
bitField0_ = (bitField0_ & ~0x00000020);
return this;
}
public Builder clone() {
return create().mergeFrom(buildPartial());
}
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return cn.wildfirechat.proto.WFCMessage.internal_static_Robot_descriptor;
}
public cn.wildfirechat.proto.WFCMessage.Robot getDefaultInstanceForType() {
return cn.wildfirechat.proto.WFCMessage.Robot.getDefaultInstance();
}
public cn.wildfirechat.proto.WFCMessage.Robot build() {
cn.wildfirechat.proto.WFCMessage.Robot result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
public cn.wildfirechat.proto.WFCMessage.Robot buildPartial() {
cn.wildfirechat.proto.WFCMessage.Robot result = new cn.wildfirechat.proto.WFCMessage.Robot(this);
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
if (((from_bitField0_ & 0x00000001) == 0x00000001)) {
to_bitField0_ |= 0x00000001;
}
result.uid_ = uid_;
if (((from_bitField0_ & 0x00000002) == 0x00000002)) {
to_bitField0_ |= 0x00000002;
}
result.state_ = state_;
if (((from_bitField0_ & 0x00000004) == 0x00000004)) {
to_bitField0_ |= 0x00000004;
}
result.owner_ = owner_;
if (((from_bitField0_ & 0x00000008) == 0x00000008)) {
to_bitField0_ |= 0x00000008;
}
result.secret_ = secret_;
if (((from_bitField0_ & 0x00000010) == 0x00000010)) {
to_bitField0_ |= 0x00000010;
}
result.callback_ = callback_;
if (((from_bitField0_ & 0x00000020) == 0x00000020)) {
to_bitField0_ |= 0x00000020;
}
result.extra_ = extra_;
result.bitField0_ = to_bitField0_;
onBuilt();
return result;
}
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof cn.wildfirechat.proto.WFCMessage.Robot) {
return mergeFrom((cn.wildfirechat.proto.WFCMessage.Robot)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(cn.wildfirechat.proto.WFCMessage.Robot other) {
if (other == cn.wildfirechat.proto.WFCMessage.Robot.getDefaultInstance()) return this;
if (other.hasUid()) {
bitField0_ |= 0x00000001;
uid_ = other.uid_;
onChanged();
}
if (other.hasState()) {
setState(other.getState());
}
if (other.hasOwner()) {
bitField0_ |= 0x00000004;
owner_ = other.owner_;
onChanged();
}
if (other.hasSecret()) {
bitField0_ |= 0x00000008;
secret_ = other.secret_;
onChanged();
}
if (other.hasCallback()) {
bitField0_ |= 0x00000010;
callback_ = other.callback_;
onChanged();
}
if (other.hasExtra()) {
bitField0_ |= 0x00000020;
extra_ = other.extra_;
onChanged();
}
this.mergeUnknownFields(other.getUnknownFields());
return this;
}
public final boolean isInitialized() {
if (!hasUid()) {
return false;
}
if (!hasState()) {
return false;
}
return true;
}
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
cn.wildfirechat.proto.WFCMessage.Robot parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (cn.wildfirechat.proto.WFCMessage.Robot) e.getUnfinishedMessage();
throw e;
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
// required string uid = 1;
private java.lang.Object uid_ = "";
/**
* required string uid = 1;
*/
public boolean hasUid() {
return ((bitField0_ & 0x00000001) == 0x00000001);
}
/**
* required string uid = 1;
*/
public java.lang.String getUid() {
java.lang.Object ref = uid_;
if (!(ref instanceof java.lang.String)) {
java.lang.String s = ((com.google.protobuf.ByteString) ref)
.toStringUtf8();
uid_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* required string uid = 1;
*/
public com.google.protobuf.ByteString
getUidBytes() {
java.lang.Object ref = uid_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
uid_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* required string uid = 1;
*/
public Builder setUid(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000001;
uid_ = value;
onChanged();
return this;
}
/**
* required string uid = 1;
*/
public Builder clearUid() {
bitField0_ = (bitField0_ & ~0x00000001);
uid_ = getDefaultInstance().getUid();
onChanged();
return this;
}
/**
* required string uid = 1;
*/
public Builder setUidBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000001;
uid_ = value;
onChanged();
return this;
}
// required int32 state = 2;
private int state_ ;
/**
* required int32 state = 2;
*
*
*0 normal; 1 deleted;
*
*/
public boolean hasState() {
return ((bitField0_ & 0x00000002) == 0x00000002);
}
/**
* required int32 state = 2;
*
*
*0 normal; 1 deleted;
*
*/
public int getState() {
return state_;
}
/**
* required int32 state = 2;
*
*
*0 normal; 1 deleted;
*
*/
public Builder setState(int value) {
bitField0_ |= 0x00000002;
state_ = value;
onChanged();
return this;
}
/**
* required int32 state = 2;
*
*
*0 normal; 1 deleted;
*
*/
public Builder clearState() {
bitField0_ = (bitField0_ & ~0x00000002);
state_ = 0;
onChanged();
return this;
}
// optional string owner = 3;
private java.lang.Object owner_ = "";
/**
* optional string owner = 3;
*/
public boolean hasOwner() {
return ((bitField0_ & 0x00000004) == 0x00000004);
}
/**
* optional string owner = 3;
*/
public java.lang.String getOwner() {
java.lang.Object ref = owner_;
if (!(ref instanceof java.lang.String)) {
java.lang.String s = ((com.google.protobuf.ByteString) ref)
.toStringUtf8();
owner_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* optional string owner = 3;
*/
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 = 3;
*/
public Builder setOwner(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000004;
owner_ = value;
onChanged();
return this;
}
/**
* optional string owner = 3;
*/
public Builder clearOwner() {
bitField0_ = (bitField0_ & ~0x00000004);
owner_ = getDefaultInstance().getOwner();
onChanged();
return this;
}
/**
* optional string owner = 3;
*/
public Builder setOwnerBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000004;
owner_ = value;
onChanged();
return this;
}
// optional string secret = 4;
private java.lang.Object secret_ = "";
/**
* optional string secret = 4;
*/
public boolean hasSecret() {
return ((bitField0_ & 0x00000008) == 0x00000008);
}
/**
* optional string secret = 4;
*/
public java.lang.String getSecret() {
java.lang.Object ref = secret_;
if (!(ref instanceof java.lang.String)) {
java.lang.String s = ((com.google.protobuf.ByteString) ref)
.toStringUtf8();
secret_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* optional string secret = 4;
*/
public com.google.protobuf.ByteString
getSecretBytes() {
java.lang.Object ref = secret_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
secret_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* optional string secret = 4;
*/
public Builder setSecret(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000008;
secret_ = value;
onChanged();
return this;
}
/**
* optional string secret = 4;
*/
public Builder clearSecret() {
bitField0_ = (bitField0_ & ~0x00000008);
secret_ = getDefaultInstance().getSecret();
onChanged();
return this;
}
/**
* optional string secret = 4;
*/
public Builder setSecretBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000008;
secret_ = value;
onChanged();
return this;
}
// optional string callback = 5;
private java.lang.Object callback_ = "";
/**
* optional string callback = 5;
*/
public boolean hasCallback() {
return ((bitField0_ & 0x00000010) == 0x00000010);
}
/**
* optional string callback = 5;
*/
public java.lang.String getCallback() {
java.lang.Object ref = callback_;
if (!(ref instanceof java.lang.String)) {
java.lang.String s = ((com.google.protobuf.ByteString) ref)
.toStringUtf8();
callback_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* optional string callback = 5;
*/
public com.google.protobuf.ByteString
getCallbackBytes() {
java.lang.Object ref = callback_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
callback_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* optional string callback = 5;
*/
public Builder setCallback(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000010;
callback_ = value;
onChanged();
return this;
}
/**
* optional string callback = 5;
*/
public Builder clearCallback() {
bitField0_ = (bitField0_ & ~0x00000010);
callback_ = getDefaultInstance().getCallback();
onChanged();
return this;
}
/**
* optional string callback = 5;
*/
public Builder setCallbackBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000010;
callback_ = value;
onChanged();
return this;
}
// optional string extra = 6;
private java.lang.Object extra_ = "";
/**
* optional string extra = 6;
*/
public boolean hasExtra() {
return ((bitField0_ & 0x00000020) == 0x00000020);
}
/**
* optional string extra = 6;
*/
public java.lang.String getExtra() {
java.lang.Object ref = extra_;
if (!(ref instanceof java.lang.String)) {
java.lang.String s = ((com.google.protobuf.ByteString) ref)
.toStringUtf8();
extra_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* optional string extra = 6;
*/
public com.google.protobuf.ByteString
getExtraBytes() {
java.lang.Object ref = extra_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
extra_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* optional string extra = 6;
*/
public Builder setExtra(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000020;
extra_ = value;
onChanged();
return this;
}
/**
* optional string extra = 6;
*/
public Builder clearExtra() {
bitField0_ = (bitField0_ & ~0x00000020);
extra_ = getDefaultInstance().getExtra();
onChanged();
return this;
}
/**
* optional string extra = 6;
*/
public Builder setExtraBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000020;
extra_ = value;
onChanged();
return this;
}
// @@protoc_insertion_point(builder_scope:Robot)
}
static {
defaultInstance = new Robot(true);
defaultInstance.initFields();
}
// @@protoc_insertion_point(class_scope:Robot)
}
public interface GetRobotsResultOrBuilder
extends com.google.protobuf.MessageOrBuilder {
// repeated .Robot entry = 1;
/**
* repeated .Robot entry = 1;
*/
java.util.List
getEntryList();
/**
* repeated .Robot entry = 1;
*/
cn.wildfirechat.proto.WFCMessage.Robot getEntry(int index);
/**
* repeated .Robot entry = 1;
*/
int getEntryCount();
/**
* repeated .Robot entry = 1;
*/
java.util.List extends cn.wildfirechat.proto.WFCMessage.RobotOrBuilder>
getEntryOrBuilderList();
/**
* repeated .Robot entry = 1;
*/
cn.wildfirechat.proto.WFCMessage.RobotOrBuilder getEntryOrBuilder(
int index);
}
/**
* Protobuf type {@code GetRobotsResult}
*/
public static final class GetRobotsResult extends
com.google.protobuf.GeneratedMessage
implements GetRobotsResultOrBuilder {
// Use GetRobotsResult.newBuilder() to construct.
private GetRobotsResult(com.google.protobuf.GeneratedMessage.Builder> builder) {
super(builder);
this.unknownFields = builder.getUnknownFields();
}
private GetRobotsResult(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); }
private static final GetRobotsResult defaultInstance;
public static GetRobotsResult getDefaultInstance() {
return defaultInstance;
}
public GetRobotsResult getDefaultInstanceForType() {
return defaultInstance;
}
private final com.google.protobuf.UnknownFieldSet unknownFields;
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private GetRobotsResult(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
initFields();
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;
default: {
if (!parseUnknownField(input, unknownFields,
extensionRegistry, tag)) {
done = true;
}
break;
}
case 10: {
if (!((mutable_bitField0_ & 0x00000001) == 0x00000001)) {
entry_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00000001;
}
entry_.add(input.readMessage(cn.wildfirechat.proto.WFCMessage.Robot.PARSER, extensionRegistry));
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e.getMessage()).setUnfinishedMessage(this);
} finally {
if (((mutable_bitField0_ & 0x00000001) == 0x00000001)) {
entry_ = java.util.Collections.unmodifiableList(entry_);
}
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return cn.wildfirechat.proto.WFCMessage.internal_static_GetRobotsResult_descriptor;
}
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable() {
return cn.wildfirechat.proto.WFCMessage.internal_static_GetRobotsResult_fieldAccessorTable
.ensureFieldAccessorsInitialized(
cn.wildfirechat.proto.WFCMessage.GetRobotsResult.class, cn.wildfirechat.proto.WFCMessage.GetRobotsResult.Builder.class);
}
public static com.google.protobuf.Parser PARSER =
new com.google.protobuf.AbstractParser() {
public GetRobotsResult parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new GetRobotsResult(input, extensionRegistry);
}
};
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
// repeated .Robot entry = 1;
public static final int ENTRY_FIELD_NUMBER = 1;
private java.util.List entry_;
/**
* repeated .Robot entry = 1;
*/
public java.util.List getEntryList() {
return entry_;
}
/**
* repeated .Robot entry = 1;
*/
public java.util.List extends cn.wildfirechat.proto.WFCMessage.RobotOrBuilder>
getEntryOrBuilderList() {
return entry_;
}
/**
* repeated .Robot entry = 1;
*/
public int getEntryCount() {
return entry_.size();
}
/**
* repeated .Robot entry = 1;
*/
public cn.wildfirechat.proto.WFCMessage.Robot getEntry(int index) {
return entry_.get(index);
}
/**
* repeated .Robot entry = 1;
*/
public cn.wildfirechat.proto.WFCMessage.RobotOrBuilder getEntryOrBuilder(
int index) {
return entry_.get(index);
}
private void initFields() {
entry_ = java.util.Collections.emptyList();
}
private byte memoizedIsInitialized = -1;
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized != -1) return isInitialized == 1;
for (int i = 0; i < getEntryCount(); i++) {
if (!getEntry(i).isInitialized()) {
memoizedIsInitialized = 0;
return false;
}
}
memoizedIsInitialized = 1;
return true;
}
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
getSerializedSize();
for (int i = 0; i < entry_.size(); i++) {
output.writeMessage(1, entry_.get(i));
}
getUnknownFields().writeTo(output);
}
private int memoizedSerializedSize = -1;
public int getSerializedSize() {
int size = memoizedSerializedSize;
if (size != -1) return size;
size = 0;
for (int i = 0; i < entry_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(1, entry_.get(i));
}
size += getUnknownFields().getSerializedSize();
memoizedSerializedSize = size;
return size;
}
private static final long serialVersionUID = 0L;
@java.lang.Override
protected java.lang.Object writeReplace()
throws java.io.ObjectStreamException {
return super.writeReplace();
}
public static cn.wildfirechat.proto.WFCMessage.GetRobotsResult parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static cn.wildfirechat.proto.WFCMessage.GetRobotsResult parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static cn.wildfirechat.proto.WFCMessage.GetRobotsResult parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static cn.wildfirechat.proto.WFCMessage.GetRobotsResult parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static cn.wildfirechat.proto.WFCMessage.GetRobotsResult parseFrom(java.io.InputStream input)
throws java.io.IOException {
return PARSER.parseFrom(input);
}
public static cn.wildfirechat.proto.WFCMessage.GetRobotsResult parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return PARSER.parseFrom(input, extensionRegistry);
}
public static cn.wildfirechat.proto.WFCMessage.GetRobotsResult parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return PARSER.parseDelimitedFrom(input);
}
public static cn.wildfirechat.proto.WFCMessage.GetRobotsResult parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return PARSER.parseDelimitedFrom(input, extensionRegistry);
}
public static cn.wildfirechat.proto.WFCMessage.GetRobotsResult parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return PARSER.parseFrom(input);
}
public static cn.wildfirechat.proto.WFCMessage.GetRobotsResult parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return PARSER.parseFrom(input, extensionRegistry);
}
public static Builder newBuilder() { return Builder.create(); }
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder(cn.wildfirechat.proto.WFCMessage.GetRobotsResult prototype) {
return newBuilder().mergeFrom(prototype);
}
public Builder toBuilder() { return newBuilder(this); }
@java.lang.Override
protected Builder newBuilderForType(
com.google.protobuf.GeneratedMessage.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
* Protobuf type {@code GetRobotsResult}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessage.Builder
implements cn.wildfirechat.proto.WFCMessage.GetRobotsResultOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return cn.wildfirechat.proto.WFCMessage.internal_static_GetRobotsResult_descriptor;
}
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable() {
return cn.wildfirechat.proto.WFCMessage.internal_static_GetRobotsResult_fieldAccessorTable
.ensureFieldAccessorsInitialized(
cn.wildfirechat.proto.WFCMessage.GetRobotsResult.class, cn.wildfirechat.proto.WFCMessage.GetRobotsResult.Builder.class);
}
// Construct using cn.wildfirechat.proto.WFCMessage.GetRobotsResult.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessage.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) {
getEntryFieldBuilder();
}
}
private static Builder create() {
return new Builder();
}
public Builder clear() {
super.clear();
if (entryBuilder_ == null) {
entry_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000001);
} else {
entryBuilder_.clear();
}
return this;
}
public Builder clone() {
return create().mergeFrom(buildPartial());
}
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return cn.wildfirechat.proto.WFCMessage.internal_static_GetRobotsResult_descriptor;
}
public cn.wildfirechat.proto.WFCMessage.GetRobotsResult getDefaultInstanceForType() {
return cn.wildfirechat.proto.WFCMessage.GetRobotsResult.getDefaultInstance();
}
public cn.wildfirechat.proto.WFCMessage.GetRobotsResult build() {
cn.wildfirechat.proto.WFCMessage.GetRobotsResult result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
public cn.wildfirechat.proto.WFCMessage.GetRobotsResult buildPartial() {
cn.wildfirechat.proto.WFCMessage.GetRobotsResult result = new cn.wildfirechat.proto.WFCMessage.GetRobotsResult(this);
int from_bitField0_ = bitField0_;
if (entryBuilder_ == null) {
if (((bitField0_ & 0x00000001) == 0x00000001)) {
entry_ = java.util.Collections.unmodifiableList(entry_);
bitField0_ = (bitField0_ & ~0x00000001);
}
result.entry_ = entry_;
} else {
result.entry_ = entryBuilder_.build();
}
onBuilt();
return result;
}
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof cn.wildfirechat.proto.WFCMessage.GetRobotsResult) {
return mergeFrom((cn.wildfirechat.proto.WFCMessage.GetRobotsResult)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(cn.wildfirechat.proto.WFCMessage.GetRobotsResult other) {
if (other == cn.wildfirechat.proto.WFCMessage.GetRobotsResult.getDefaultInstance()) return this;
if (entryBuilder_ == null) {
if (!other.entry_.isEmpty()) {
if (entry_.isEmpty()) {
entry_ = other.entry_;
bitField0_ = (bitField0_ & ~0x00000001);
} else {
ensureEntryIsMutable();
entry_.addAll(other.entry_);
}
onChanged();
}
} else {
if (!other.entry_.isEmpty()) {
if (entryBuilder_.isEmpty()) {
entryBuilder_.dispose();
entryBuilder_ = null;
entry_ = other.entry_;
bitField0_ = (bitField0_ & ~0x00000001);
entryBuilder_ =
com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ?
getEntryFieldBuilder() : null;
} else {
entryBuilder_.addAllMessages(other.entry_);
}
}
}
this.mergeUnknownFields(other.getUnknownFields());
return this;
}
public final boolean isInitialized() {
for (int i = 0; i < getEntryCount(); i++) {
if (!getEntry(i).isInitialized()) {
return false;
}
}
return true;
}
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
cn.wildfirechat.proto.WFCMessage.GetRobotsResult parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (cn.wildfirechat.proto.WFCMessage.GetRobotsResult) e.getUnfinishedMessage();
throw e;
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
// repeated .Robot entry = 1;
private java.util.List entry_ =
java.util.Collections.emptyList();
private void ensureEntryIsMutable() {
if (!((bitField0_ & 0x00000001) == 0x00000001)) {
entry_ = new java.util.ArrayList(entry_);
bitField0_ |= 0x00000001;
}
}
private com.google.protobuf.RepeatedFieldBuilder<
cn.wildfirechat.proto.WFCMessage.Robot, cn.wildfirechat.proto.WFCMessage.Robot.Builder, cn.wildfirechat.proto.WFCMessage.RobotOrBuilder> entryBuilder_;
/**
* repeated .Robot entry = 1;
*/
public java.util.List getEntryList() {
if (entryBuilder_ == null) {
return java.util.Collections.unmodifiableList(entry_);
} else {
return entryBuilder_.getMessageList();
}
}
/**
* repeated .Robot entry = 1;
*/
public int getEntryCount() {
if (entryBuilder_ == null) {
return entry_.size();
} else {
return entryBuilder_.getCount();
}
}
/**
* repeated .Robot entry = 1;
*/
public cn.wildfirechat.proto.WFCMessage.Robot getEntry(int index) {
if (entryBuilder_ == null) {
return entry_.get(index);
} else {
return entryBuilder_.getMessage(index);
}
}
/**
* repeated .Robot entry = 1;
*/
public Builder setEntry(
int index, cn.wildfirechat.proto.WFCMessage.Robot value) {
if (entryBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureEntryIsMutable();
entry_.set(index, value);
onChanged();
} else {
entryBuilder_.setMessage(index, value);
}
return this;
}
/**
* repeated .Robot entry = 1;
*/
public Builder setEntry(
int index, cn.wildfirechat.proto.WFCMessage.Robot.Builder builderForValue) {
if (entryBuilder_ == null) {
ensureEntryIsMutable();
entry_.set(index, builderForValue.build());
onChanged();
} else {
entryBuilder_.setMessage(index, builderForValue.build());
}
return this;
}
/**
* repeated .Robot entry = 1;
*/
public Builder addEntry(cn.wildfirechat.proto.WFCMessage.Robot value) {
if (entryBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureEntryIsMutable();
entry_.add(value);
onChanged();
} else {
entryBuilder_.addMessage(value);
}
return this;
}
/**
* repeated .Robot entry = 1;
*/
public Builder addEntry(
int index, cn.wildfirechat.proto.WFCMessage.Robot value) {
if (entryBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureEntryIsMutable();
entry_.add(index, value);
onChanged();
} else {
entryBuilder_.addMessage(index, value);
}
return this;
}
/**
* repeated .Robot entry = 1;
*/
public Builder addEntry(
cn.wildfirechat.proto.WFCMessage.Robot.Builder builderForValue) {
if (entryBuilder_ == null) {
ensureEntryIsMutable();
entry_.add(builderForValue.build());
onChanged();
} else {
entryBuilder_.addMessage(builderForValue.build());
}
return this;
}
/**
* repeated .Robot entry = 1;
*/
public Builder addEntry(
int index, cn.wildfirechat.proto.WFCMessage.Robot.Builder builderForValue) {
if (entryBuilder_ == null) {
ensureEntryIsMutable();
entry_.add(index, builderForValue.build());
onChanged();
} else {
entryBuilder_.addMessage(index, builderForValue.build());
}
return this;
}
/**
* repeated .Robot entry = 1;
*/
public Builder addAllEntry(
java.lang.Iterable extends cn.wildfirechat.proto.WFCMessage.Robot> values) {
if (entryBuilder_ == null) {
ensureEntryIsMutable();
super.addAll(values, entry_);
onChanged();
} else {
entryBuilder_.addAllMessages(values);
}
return this;
}
/**
* repeated .Robot entry = 1;
*/
public Builder clearEntry() {
if (entryBuilder_ == null) {
entry_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000001);
onChanged();
} else {
entryBuilder_.clear();
}
return this;
}
/**
* repeated .Robot entry = 1;
*/
public Builder removeEntry(int index) {
if (entryBuilder_ == null) {
ensureEntryIsMutable();
entry_.remove(index);
onChanged();
} else {
entryBuilder_.remove(index);
}
return this;
}
/**
* repeated .Robot entry = 1;
*/
public cn.wildfirechat.proto.WFCMessage.Robot.Builder getEntryBuilder(
int index) {
return getEntryFieldBuilder().getBuilder(index);
}
/**
* repeated .Robot entry = 1;
*/
public cn.wildfirechat.proto.WFCMessage.RobotOrBuilder getEntryOrBuilder(
int index) {
if (entryBuilder_ == null) {
return entry_.get(index); } else {
return entryBuilder_.getMessageOrBuilder(index);
}
}
/**
* repeated .Robot entry = 1;
*/
public java.util.List extends cn.wildfirechat.proto.WFCMessage.RobotOrBuilder>
getEntryOrBuilderList() {
if (entryBuilder_ != null) {
return entryBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(entry_);
}
}
/**
* repeated .Robot entry = 1;
*/
public cn.wildfirechat.proto.WFCMessage.Robot.Builder addEntryBuilder() {
return getEntryFieldBuilder().addBuilder(
cn.wildfirechat.proto.WFCMessage.Robot.getDefaultInstance());
}
/**
* repeated .Robot entry = 1;
*/
public cn.wildfirechat.proto.WFCMessage.Robot.Builder addEntryBuilder(
int index) {
return getEntryFieldBuilder().addBuilder(
index, cn.wildfirechat.proto.WFCMessage.Robot.getDefaultInstance());
}
/**
* repeated .Robot entry = 1;
*/
public java.util.List
getEntryBuilderList() {
return getEntryFieldBuilder().getBuilderList();
}
private com.google.protobuf.RepeatedFieldBuilder<
cn.wildfirechat.proto.WFCMessage.Robot, cn.wildfirechat.proto.WFCMessage.Robot.Builder, cn.wildfirechat.proto.WFCMessage.RobotOrBuilder>
getEntryFieldBuilder() {
if (entryBuilder_ == null) {
entryBuilder_ = new com.google.protobuf.RepeatedFieldBuilder<
cn.wildfirechat.proto.WFCMessage.Robot, cn.wildfirechat.proto.WFCMessage.Robot.Builder, cn.wildfirechat.proto.WFCMessage.RobotOrBuilder>(
entry_,
((bitField0_ & 0x00000001) == 0x00000001),
getParentForChildren(),
isClean());
entry_ = null;
}
return entryBuilder_;
}
// @@protoc_insertion_point(builder_scope:GetRobotsResult)
}
static {
defaultInstance = new GetRobotsResult(true);
defaultInstance.initFields();
}
// @@protoc_insertion_point(class_scope:GetRobotsResult)
}
public interface UploadDeviceTokenRequestOrBuilder
extends com.google.protobuf.MessageOrBuilder {
// required int32 platform = 1;
/**
* required int32 platform = 1;
*/
boolean hasPlatform();
/**
* required int32 platform = 1;
*/
int getPlatform();
// required string app_name = 2;
/**
* required string app_name = 2;
*/
boolean hasAppName();
/**
* required string app_name = 2;
*/
java.lang.String getAppName();
/**
* required string app_name = 2;
*/
com.google.protobuf.ByteString
getAppNameBytes();
// required string device_token = 3;
/**
* required string device_token = 3;
*/
boolean hasDeviceToken();
/**
* required string device_token = 3;
*/
java.lang.String getDeviceToken();
/**
* required string device_token = 3;
*/
com.google.protobuf.ByteString
getDeviceTokenBytes();
// required int32 push_type = 4;
/**
* required int32 push_type = 4;
*/
boolean hasPushType();
/**
* required int32 push_type = 4;
*/
int getPushType();
}
/**
* Protobuf type {@code UploadDeviceTokenRequest}
*/
public static final class UploadDeviceTokenRequest extends
com.google.protobuf.GeneratedMessage
implements UploadDeviceTokenRequestOrBuilder {
// Use UploadDeviceTokenRequest.newBuilder() to construct.
private UploadDeviceTokenRequest(com.google.protobuf.GeneratedMessage.Builder> builder) {
super(builder);
this.unknownFields = builder.getUnknownFields();
}
private UploadDeviceTokenRequest(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); }
private static final UploadDeviceTokenRequest defaultInstance;
public static UploadDeviceTokenRequest getDefaultInstance() {
return defaultInstance;
}
public UploadDeviceTokenRequest getDefaultInstanceForType() {
return defaultInstance;
}
private final com.google.protobuf.UnknownFieldSet unknownFields;
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private UploadDeviceTokenRequest(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
initFields();
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;
default: {
if (!parseUnknownField(input, unknownFields,
extensionRegistry, tag)) {
done = true;
}
break;
}
case 8: {
bitField0_ |= 0x00000001;
platform_ = input.readInt32();
break;
}
case 18: {
bitField0_ |= 0x00000002;
appName_ = input.readBytes();
break;
}
case 26: {
bitField0_ |= 0x00000004;
deviceToken_ = input.readBytes();
break;
}
case 32: {
bitField0_ |= 0x00000008;
pushType_ = input.readInt32();
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e.getMessage()).setUnfinishedMessage(this);
} finally {
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return cn.wildfirechat.proto.WFCMessage.internal_static_UploadDeviceTokenRequest_descriptor;
}
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable() {
return cn.wildfirechat.proto.WFCMessage.internal_static_UploadDeviceTokenRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
cn.wildfirechat.proto.WFCMessage.UploadDeviceTokenRequest.class, cn.wildfirechat.proto.WFCMessage.UploadDeviceTokenRequest.Builder.class);
}
public static com.google.protobuf.Parser PARSER =
new com.google.protobuf.AbstractParser() {
public UploadDeviceTokenRequest parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new UploadDeviceTokenRequest(input, extensionRegistry);
}
};
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
private int bitField0_;
// required int32 platform = 1;
public static final int PLATFORM_FIELD_NUMBER = 1;
private int platform_;
/**
* required int32 platform = 1;
*/
public boolean hasPlatform() {
return ((bitField0_ & 0x00000001) == 0x00000001);
}
/**
* required int32 platform = 1;
*/
public int getPlatform() {
return platform_;
}
// required string app_name = 2;
public static final int APP_NAME_FIELD_NUMBER = 2;
private java.lang.Object appName_;
/**
* required string app_name = 2;
*/
public boolean hasAppName() {
return ((bitField0_ & 0x00000002) == 0x00000002);
}
/**
* required string app_name = 2;
*/
public java.lang.String getAppName() {
java.lang.Object ref = appName_;
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()) {
appName_ = s;
}
return s;
}
}
/**
* required string app_name = 2;
*/
public com.google.protobuf.ByteString
getAppNameBytes() {
java.lang.Object ref = appName_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
appName_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
// required string device_token = 3;
public static final int DEVICE_TOKEN_FIELD_NUMBER = 3;
private java.lang.Object deviceToken_;
/**
* required string device_token = 3;
*/
public boolean hasDeviceToken() {
return ((bitField0_ & 0x00000004) == 0x00000004);
}
/**
* required string device_token = 3;
*/
public java.lang.String getDeviceToken() {
java.lang.Object ref = deviceToken_;
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()) {
deviceToken_ = s;
}
return s;
}
}
/**
* required string device_token = 3;
*/
public com.google.protobuf.ByteString
getDeviceTokenBytes() {
java.lang.Object ref = deviceToken_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
deviceToken_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
// required int32 push_type = 4;
public static final int PUSH_TYPE_FIELD_NUMBER = 4;
private int pushType_;
/**
* required int32 push_type = 4;
*/
public boolean hasPushType() {
return ((bitField0_ & 0x00000008) == 0x00000008);
}
/**
* required int32 push_type = 4;
*/
public int getPushType() {
return pushType_;
}
private void initFields() {
platform_ = 0;
appName_ = "";
deviceToken_ = "";
pushType_ = 0;
}
private byte memoizedIsInitialized = -1;
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized != -1) return isInitialized == 1;
if (!hasPlatform()) {
memoizedIsInitialized = 0;
return false;
}
if (!hasAppName()) {
memoizedIsInitialized = 0;
return false;
}
if (!hasDeviceToken()) {
memoizedIsInitialized = 0;
return false;
}
if (!hasPushType()) {
memoizedIsInitialized = 0;
return false;
}
memoizedIsInitialized = 1;
return true;
}
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
getSerializedSize();
if (((bitField0_ & 0x00000001) == 0x00000001)) {
output.writeInt32(1, platform_);
}
if (((bitField0_ & 0x00000002) == 0x00000002)) {
output.writeBytes(2, getAppNameBytes());
}
if (((bitField0_ & 0x00000004) == 0x00000004)) {
output.writeBytes(3, getDeviceTokenBytes());
}
if (((bitField0_ & 0x00000008) == 0x00000008)) {
output.writeInt32(4, pushType_);
}
getUnknownFields().writeTo(output);
}
private int memoizedSerializedSize = -1;
public int getSerializedSize() {
int size = memoizedSerializedSize;
if (size != -1) return size;
size = 0;
if (((bitField0_ & 0x00000001) == 0x00000001)) {
size += com.google.protobuf.CodedOutputStream
.computeInt32Size(1, platform_);
}
if (((bitField0_ & 0x00000002) == 0x00000002)) {
size += com.google.protobuf.CodedOutputStream
.computeBytesSize(2, getAppNameBytes());
}
if (((bitField0_ & 0x00000004) == 0x00000004)) {
size += com.google.protobuf.CodedOutputStream
.computeBytesSize(3, getDeviceTokenBytes());
}
if (((bitField0_ & 0x00000008) == 0x00000008)) {
size += com.google.protobuf.CodedOutputStream
.computeInt32Size(4, pushType_);
}
size += getUnknownFields().getSerializedSize();
memoizedSerializedSize = size;
return size;
}
private static final long serialVersionUID = 0L;
@java.lang.Override
protected java.lang.Object writeReplace()
throws java.io.ObjectStreamException {
return super.writeReplace();
}
public static cn.wildfirechat.proto.WFCMessage.UploadDeviceTokenRequest parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static cn.wildfirechat.proto.WFCMessage.UploadDeviceTokenRequest parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static cn.wildfirechat.proto.WFCMessage.UploadDeviceTokenRequest parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static cn.wildfirechat.proto.WFCMessage.UploadDeviceTokenRequest parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static cn.wildfirechat.proto.WFCMessage.UploadDeviceTokenRequest parseFrom(java.io.InputStream input)
throws java.io.IOException {
return PARSER.parseFrom(input);
}
public static cn.wildfirechat.proto.WFCMessage.UploadDeviceTokenRequest parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return PARSER.parseFrom(input, extensionRegistry);
}
public static cn.wildfirechat.proto.WFCMessage.UploadDeviceTokenRequest parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return PARSER.parseDelimitedFrom(input);
}
public static cn.wildfirechat.proto.WFCMessage.UploadDeviceTokenRequest parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return PARSER.parseDelimitedFrom(input, extensionRegistry);
}
public static cn.wildfirechat.proto.WFCMessage.UploadDeviceTokenRequest parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return PARSER.parseFrom(input);
}
public static cn.wildfirechat.proto.WFCMessage.UploadDeviceTokenRequest parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return PARSER.parseFrom(input, extensionRegistry);
}
public static Builder newBuilder() { return Builder.create(); }
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder(cn.wildfirechat.proto.WFCMessage.UploadDeviceTokenRequest prototype) {
return newBuilder().mergeFrom(prototype);
}
public Builder toBuilder() { return newBuilder(this); }
@java.lang.Override
protected Builder newBuilderForType(
com.google.protobuf.GeneratedMessage.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
* Protobuf type {@code UploadDeviceTokenRequest}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessage.Builder
implements cn.wildfirechat.proto.WFCMessage.UploadDeviceTokenRequestOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return cn.wildfirechat.proto.WFCMessage.internal_static_UploadDeviceTokenRequest_descriptor;
}
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable() {
return cn.wildfirechat.proto.WFCMessage.internal_static_UploadDeviceTokenRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
cn.wildfirechat.proto.WFCMessage.UploadDeviceTokenRequest.class, cn.wildfirechat.proto.WFCMessage.UploadDeviceTokenRequest.Builder.class);
}
// Construct using cn.wildfirechat.proto.WFCMessage.UploadDeviceTokenRequest.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessage.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) {
}
}
private static Builder create() {
return new Builder();
}
public Builder clear() {
super.clear();
platform_ = 0;
bitField0_ = (bitField0_ & ~0x00000001);
appName_ = "";
bitField0_ = (bitField0_ & ~0x00000002);
deviceToken_ = "";
bitField0_ = (bitField0_ & ~0x00000004);
pushType_ = 0;
bitField0_ = (bitField0_ & ~0x00000008);
return this;
}
public Builder clone() {
return create().mergeFrom(buildPartial());
}
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return cn.wildfirechat.proto.WFCMessage.internal_static_UploadDeviceTokenRequest_descriptor;
}
public cn.wildfirechat.proto.WFCMessage.UploadDeviceTokenRequest getDefaultInstanceForType() {
return cn.wildfirechat.proto.WFCMessage.UploadDeviceTokenRequest.getDefaultInstance();
}
public cn.wildfirechat.proto.WFCMessage.UploadDeviceTokenRequest build() {
cn.wildfirechat.proto.WFCMessage.UploadDeviceTokenRequest result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
public cn.wildfirechat.proto.WFCMessage.UploadDeviceTokenRequest buildPartial() {
cn.wildfirechat.proto.WFCMessage.UploadDeviceTokenRequest result = new cn.wildfirechat.proto.WFCMessage.UploadDeviceTokenRequest(this);
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
if (((from_bitField0_ & 0x00000001) == 0x00000001)) {
to_bitField0_ |= 0x00000001;
}
result.platform_ = platform_;
if (((from_bitField0_ & 0x00000002) == 0x00000002)) {
to_bitField0_ |= 0x00000002;
}
result.appName_ = appName_;
if (((from_bitField0_ & 0x00000004) == 0x00000004)) {
to_bitField0_ |= 0x00000004;
}
result.deviceToken_ = deviceToken_;
if (((from_bitField0_ & 0x00000008) == 0x00000008)) {
to_bitField0_ |= 0x00000008;
}
result.pushType_ = pushType_;
result.bitField0_ = to_bitField0_;
onBuilt();
return result;
}
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof cn.wildfirechat.proto.WFCMessage.UploadDeviceTokenRequest) {
return mergeFrom((cn.wildfirechat.proto.WFCMessage.UploadDeviceTokenRequest)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(cn.wildfirechat.proto.WFCMessage.UploadDeviceTokenRequest other) {
if (other == cn.wildfirechat.proto.WFCMessage.UploadDeviceTokenRequest.getDefaultInstance()) return this;
if (other.hasPlatform()) {
setPlatform(other.getPlatform());
}
if (other.hasAppName()) {
bitField0_ |= 0x00000002;
appName_ = other.appName_;
onChanged();
}
if (other.hasDeviceToken()) {
bitField0_ |= 0x00000004;
deviceToken_ = other.deviceToken_;
onChanged();
}
if (other.hasPushType()) {
setPushType(other.getPushType());
}
this.mergeUnknownFields(other.getUnknownFields());
return this;
}
public final boolean isInitialized() {
if (!hasPlatform()) {
return false;
}
if (!hasAppName()) {
return false;
}
if (!hasDeviceToken()) {
return false;
}
if (!hasPushType()) {
return false;
}
return true;
}
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
cn.wildfirechat.proto.WFCMessage.UploadDeviceTokenRequest parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (cn.wildfirechat.proto.WFCMessage.UploadDeviceTokenRequest) e.getUnfinishedMessage();
throw e;
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
// required int32 platform = 1;
private int platform_ ;
/**
* required int32 platform = 1;
*/
public boolean hasPlatform() {
return ((bitField0_ & 0x00000001) == 0x00000001);
}
/**
* required int32 platform = 1;
*/
public int getPlatform() {
return platform_;
}
/**
* required int32 platform = 1;
*/
public Builder setPlatform(int value) {
bitField0_ |= 0x00000001;
platform_ = value;
onChanged();
return this;
}
/**
* required int32 platform = 1;
*/
public Builder clearPlatform() {
bitField0_ = (bitField0_ & ~0x00000001);
platform_ = 0;
onChanged();
return this;
}
// required string app_name = 2;
private java.lang.Object appName_ = "";
/**
* required string app_name = 2;
*/
public boolean hasAppName() {
return ((bitField0_ & 0x00000002) == 0x00000002);
}
/**
* required string app_name = 2;
*/
public java.lang.String getAppName() {
java.lang.Object ref = appName_;
if (!(ref instanceof java.lang.String)) {
java.lang.String s = ((com.google.protobuf.ByteString) ref)
.toStringUtf8();
appName_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* required string app_name = 2;
*/
public com.google.protobuf.ByteString
getAppNameBytes() {
java.lang.Object ref = appName_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
appName_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* required string app_name = 2;
*/
public Builder setAppName(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000002;
appName_ = value;
onChanged();
return this;
}
/**
* required string app_name = 2;
*/
public Builder clearAppName() {
bitField0_ = (bitField0_ & ~0x00000002);
appName_ = getDefaultInstance().getAppName();
onChanged();
return this;
}
/**
* required string app_name = 2;
*/
public Builder setAppNameBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000002;
appName_ = value;
onChanged();
return this;
}
// required string device_token = 3;
private java.lang.Object deviceToken_ = "";
/**
* required string device_token = 3;
*/
public boolean hasDeviceToken() {
return ((bitField0_ & 0x00000004) == 0x00000004);
}
/**
* required string device_token = 3;
*/
public java.lang.String getDeviceToken() {
java.lang.Object ref = deviceToken_;
if (!(ref instanceof java.lang.String)) {
java.lang.String s = ((com.google.protobuf.ByteString) ref)
.toStringUtf8();
deviceToken_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* required string device_token = 3;
*/
public com.google.protobuf.ByteString
getDeviceTokenBytes() {
java.lang.Object ref = deviceToken_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
deviceToken_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* required string device_token = 3;
*/
public Builder setDeviceToken(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000004;
deviceToken_ = value;
onChanged();
return this;
}
/**
* required string device_token = 3;
*/
public Builder clearDeviceToken() {
bitField0_ = (bitField0_ & ~0x00000004);
deviceToken_ = getDefaultInstance().getDeviceToken();
onChanged();
return this;
}
/**
* required string device_token = 3;
*/
public Builder setDeviceTokenBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000004;
deviceToken_ = value;
onChanged();
return this;
}
// required int32 push_type = 4;
private int pushType_ ;
/**
* required int32 push_type = 4;
*/
public boolean hasPushType() {
return ((bitField0_ & 0x00000008) == 0x00000008);
}
/**
* required int32 push_type = 4;
*/
public int getPushType() {
return pushType_;
}
/**
* required int32 push_type = 4;
*/
public Builder setPushType(int value) {
bitField0_ |= 0x00000008;
pushType_ = value;
onChanged();
return this;
}
/**
* required int32 push_type = 4;
*/
public Builder clearPushType() {
bitField0_ = (bitField0_ & ~0x00000008);
pushType_ = 0;
onChanged();
return this;
}
// @@protoc_insertion_point(builder_scope:UploadDeviceTokenRequest)
}
static {
defaultInstance = new UploadDeviceTokenRequest(true);
defaultInstance.initFields();
}
// @@protoc_insertion_point(class_scope:UploadDeviceTokenRequest)
}
public interface ModifyGroupInfoRequestOrBuilder
extends com.google.protobuf.MessageOrBuilder {
// required string group_id = 1;
/**
* required string group_id = 1;
*/
boolean hasGroupId();
/**
* required string group_id = 1;
*/
java.lang.String getGroupId();
/**
* required string group_id = 1;
*/
com.google.protobuf.ByteString
getGroupIdBytes();
// required int32 type = 2;
/**
* required int32 type = 2;
*/
boolean hasType();
/**
* required int32 type = 2;
*/
int getType();
// required string value = 3;
/**
* required string value = 3;
*/
boolean hasValue();
/**
* required string value = 3;
*/
java.lang.String getValue();
/**
* required string value = 3;
*/
com.google.protobuf.ByteString
getValueBytes();
// repeated int32 to_line = 4;
/**
* repeated int32 to_line = 4;
*/
java.util.List getToLineList();
/**
* repeated int32 to_line = 4;
*/
int getToLineCount();
/**
* repeated int32 to_line = 4;
*/
int getToLine(int index);
// optional .MessageContent notify_content = 5;
/**
* optional .MessageContent notify_content = 5;
*/
boolean hasNotifyContent();
/**
* optional .MessageContent notify_content = 5;
*/
cn.wildfirechat.proto.WFCMessage.MessageContent getNotifyContent();
/**
* optional .MessageContent notify_content = 5;
*/
cn.wildfirechat.proto.WFCMessage.MessageContentOrBuilder getNotifyContentOrBuilder();
}
/**
* Protobuf type {@code ModifyGroupInfoRequest}
*/
public static final class ModifyGroupInfoRequest extends
com.google.protobuf.GeneratedMessage
implements ModifyGroupInfoRequestOrBuilder {
// Use ModifyGroupInfoRequest.newBuilder() to construct.
private ModifyGroupInfoRequest(com.google.protobuf.GeneratedMessage.Builder> builder) {
super(builder);
this.unknownFields = builder.getUnknownFields();
}
private ModifyGroupInfoRequest(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); }
private static final ModifyGroupInfoRequest defaultInstance;
public static ModifyGroupInfoRequest getDefaultInstance() {
return defaultInstance;
}
public ModifyGroupInfoRequest getDefaultInstanceForType() {
return defaultInstance;
}
private final com.google.protobuf.UnknownFieldSet unknownFields;
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private ModifyGroupInfoRequest(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
initFields();
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;
default: {
if (!parseUnknownField(input, unknownFields,
extensionRegistry, tag)) {
done = true;
}
break;
}
case 10: {
bitField0_ |= 0x00000001;
groupId_ = input.readBytes();
break;
}
case 16: {
bitField0_ |= 0x00000002;
type_ = input.readInt32();
break;
}
case 26: {
bitField0_ |= 0x00000004;
value_ = input.readBytes();
break;
}
case 32: {
if (!((mutable_bitField0_ & 0x00000008) == 0x00000008)) {
toLine_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00000008;
}
toLine_.add(input.readInt32());
break;
}
case 34: {
int length = input.readRawVarint32();
int limit = input.pushLimit(length);
if (!((mutable_bitField0_ & 0x00000008) == 0x00000008) && input.getBytesUntilLimit() > 0) {
toLine_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00000008;
}
while (input.getBytesUntilLimit() > 0) {
toLine_.add(input.readInt32());
}
input.popLimit(limit);
break;
}
case 42: {
cn.wildfirechat.proto.WFCMessage.MessageContent.Builder subBuilder = null;
if (((bitField0_ & 0x00000008) == 0x00000008)) {
subBuilder = notifyContent_.toBuilder();
}
notifyContent_ = input.readMessage(cn.wildfirechat.proto.WFCMessage.MessageContent.PARSER, extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(notifyContent_);
notifyContent_ = subBuilder.buildPartial();
}
bitField0_ |= 0x00000008;
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e.getMessage()).setUnfinishedMessage(this);
} finally {
if (((mutable_bitField0_ & 0x00000008) == 0x00000008)) {
toLine_ = java.util.Collections.unmodifiableList(toLine_);
}
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return cn.wildfirechat.proto.WFCMessage.internal_static_ModifyGroupInfoRequest_descriptor;
}
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable() {
return cn.wildfirechat.proto.WFCMessage.internal_static_ModifyGroupInfoRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
cn.wildfirechat.proto.WFCMessage.ModifyGroupInfoRequest.class, cn.wildfirechat.proto.WFCMessage.ModifyGroupInfoRequest.Builder.class);
}
public static com.google.protobuf.Parser PARSER =
new com.google.protobuf.AbstractParser() {
public ModifyGroupInfoRequest parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new ModifyGroupInfoRequest(input, extensionRegistry);
}
};
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
private int bitField0_;
// required string group_id = 1;
public static final int GROUP_ID_FIELD_NUMBER = 1;
private java.lang.Object groupId_;
/**
* required string group_id = 1;
*/
public boolean hasGroupId() {
return ((bitField0_ & 0x00000001) == 0x00000001);
}
/**
* required string group_id = 1;
*/
public java.lang.String getGroupId() {
java.lang.Object ref = groupId_;
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()) {
groupId_ = s;
}
return s;
}
}
/**
* required string group_id = 1;
*/
public com.google.protobuf.ByteString
getGroupIdBytes() {
java.lang.Object ref = groupId_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
groupId_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
// required int32 type = 2;
public static final int TYPE_FIELD_NUMBER = 2;
private int type_;
/**
* required int32 type = 2;
*/
public boolean hasType() {
return ((bitField0_ & 0x00000002) == 0x00000002);
}
/**
* required int32 type = 2;
*/
public int getType() {
return type_;
}
// required string value = 3;
public static final int VALUE_FIELD_NUMBER = 3;
private java.lang.Object value_;
/**
* required string value = 3;
*/
public boolean hasValue() {
return ((bitField0_ & 0x00000004) == 0x00000004);
}
/**
* required string value = 3;
*/
public java.lang.String getValue() {
java.lang.Object ref = value_;
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()) {
value_ = s;
}
return s;
}
}
/**
* required string value = 3;
*/
public com.google.protobuf.ByteString
getValueBytes() {
java.lang.Object ref = value_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
value_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
// repeated int32 to_line = 4;
public static final int TO_LINE_FIELD_NUMBER = 4;
private java.util.List toLine_;
/**
* repeated int32 to_line = 4;
*/
public java.util.List
getToLineList() {
return toLine_;
}
/**
* repeated int32 to_line = 4;
*/
public int getToLineCount() {
return toLine_.size();
}
/**
* repeated int32 to_line = 4;
*/
public int getToLine(int index) {
return toLine_.get(index);
}
// optional .MessageContent notify_content = 5;
public static final int NOTIFY_CONTENT_FIELD_NUMBER = 5;
private cn.wildfirechat.proto.WFCMessage.MessageContent notifyContent_;
/**
* optional .MessageContent notify_content = 5;
*/
public boolean hasNotifyContent() {
return ((bitField0_ & 0x00000008) == 0x00000008);
}
/**
* optional .MessageContent notify_content = 5;
*/
public cn.wildfirechat.proto.WFCMessage.MessageContent getNotifyContent() {
return notifyContent_;
}
/**
* optional .MessageContent notify_content = 5;
*/
public cn.wildfirechat.proto.WFCMessage.MessageContentOrBuilder getNotifyContentOrBuilder() {
return notifyContent_;
}
private void initFields() {
groupId_ = "";
type_ = 0;
value_ = "";
toLine_ = java.util.Collections.emptyList();
notifyContent_ = cn.wildfirechat.proto.WFCMessage.MessageContent.getDefaultInstance();
}
private byte memoizedIsInitialized = -1;
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized != -1) return isInitialized == 1;
if (!hasGroupId()) {
memoizedIsInitialized = 0;
return false;
}
if (!hasType()) {
memoizedIsInitialized = 0;
return false;
}
if (!hasValue()) {
memoizedIsInitialized = 0;
return false;
}
if (hasNotifyContent()) {
if (!getNotifyContent().isInitialized()) {
memoizedIsInitialized = 0;
return false;
}
}
memoizedIsInitialized = 1;
return true;
}
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
getSerializedSize();
if (((bitField0_ & 0x00000001) == 0x00000001)) {
output.writeBytes(1, getGroupIdBytes());
}
if (((bitField0_ & 0x00000002) == 0x00000002)) {
output.writeInt32(2, type_);
}
if (((bitField0_ & 0x00000004) == 0x00000004)) {
output.writeBytes(3, getValueBytes());
}
for (int i = 0; i < toLine_.size(); i++) {
output.writeInt32(4, toLine_.get(i));
}
if (((bitField0_ & 0x00000008) == 0x00000008)) {
output.writeMessage(5, notifyContent_);
}
getUnknownFields().writeTo(output);
}
private int memoizedSerializedSize = -1;
public int getSerializedSize() {
int size = memoizedSerializedSize;
if (size != -1) return size;
size = 0;
if (((bitField0_ & 0x00000001) == 0x00000001)) {
size += com.google.protobuf.CodedOutputStream
.computeBytesSize(1, getGroupIdBytes());
}
if (((bitField0_ & 0x00000002) == 0x00000002)) {
size += com.google.protobuf.CodedOutputStream
.computeInt32Size(2, type_);
}
if (((bitField0_ & 0x00000004) == 0x00000004)) {
size += com.google.protobuf.CodedOutputStream
.computeBytesSize(3, getValueBytes());
}
{
int dataSize = 0;
for (int i = 0; i < toLine_.size(); i++) {
dataSize += com.google.protobuf.CodedOutputStream
.computeInt32SizeNoTag(toLine_.get(i));
}
size += dataSize;
size += 1 * getToLineList().size();
}
if (((bitField0_ & 0x00000008) == 0x00000008)) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(5, notifyContent_);
}
size += getUnknownFields().getSerializedSize();
memoizedSerializedSize = size;
return size;
}
private static final long serialVersionUID = 0L;
@java.lang.Override
protected java.lang.Object writeReplace()
throws java.io.ObjectStreamException {
return super.writeReplace();
}
public static cn.wildfirechat.proto.WFCMessage.ModifyGroupInfoRequest parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static cn.wildfirechat.proto.WFCMessage.ModifyGroupInfoRequest parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static cn.wildfirechat.proto.WFCMessage.ModifyGroupInfoRequest parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static cn.wildfirechat.proto.WFCMessage.ModifyGroupInfoRequest parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static cn.wildfirechat.proto.WFCMessage.ModifyGroupInfoRequest parseFrom(java.io.InputStream input)
throws java.io.IOException {
return PARSER.parseFrom(input);
}
public static cn.wildfirechat.proto.WFCMessage.ModifyGroupInfoRequest parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return PARSER.parseFrom(input, extensionRegistry);
}
public static cn.wildfirechat.proto.WFCMessage.ModifyGroupInfoRequest parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return PARSER.parseDelimitedFrom(input);
}
public static cn.wildfirechat.proto.WFCMessage.ModifyGroupInfoRequest parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return PARSER.parseDelimitedFrom(input, extensionRegistry);
}
public static cn.wildfirechat.proto.WFCMessage.ModifyGroupInfoRequest parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return PARSER.parseFrom(input);
}
public static cn.wildfirechat.proto.WFCMessage.ModifyGroupInfoRequest parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return PARSER.parseFrom(input, extensionRegistry);
}
public static Builder newBuilder() { return Builder.create(); }
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder(cn.wildfirechat.proto.WFCMessage.ModifyGroupInfoRequest prototype) {
return newBuilder().mergeFrom(prototype);
}
public Builder toBuilder() { return newBuilder(this); }
@java.lang.Override
protected Builder newBuilderForType(
com.google.protobuf.GeneratedMessage.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
* Protobuf type {@code ModifyGroupInfoRequest}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessage.Builder
implements cn.wildfirechat.proto.WFCMessage.ModifyGroupInfoRequestOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return cn.wildfirechat.proto.WFCMessage.internal_static_ModifyGroupInfoRequest_descriptor;
}
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable() {
return cn.wildfirechat.proto.WFCMessage.internal_static_ModifyGroupInfoRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
cn.wildfirechat.proto.WFCMessage.ModifyGroupInfoRequest.class, cn.wildfirechat.proto.WFCMessage.ModifyGroupInfoRequest.Builder.class);
}
// Construct using cn.wildfirechat.proto.WFCMessage.ModifyGroupInfoRequest.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessage.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) {
getNotifyContentFieldBuilder();
}
}
private static Builder create() {
return new Builder();
}
public Builder clear() {
super.clear();
groupId_ = "";
bitField0_ = (bitField0_ & ~0x00000001);
type_ = 0;
bitField0_ = (bitField0_ & ~0x00000002);
value_ = "";
bitField0_ = (bitField0_ & ~0x00000004);
toLine_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000008);
if (notifyContentBuilder_ == null) {
notifyContent_ = cn.wildfirechat.proto.WFCMessage.MessageContent.getDefaultInstance();
} else {
notifyContentBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000010);
return this;
}
public Builder clone() {
return create().mergeFrom(buildPartial());
}
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return cn.wildfirechat.proto.WFCMessage.internal_static_ModifyGroupInfoRequest_descriptor;
}
public cn.wildfirechat.proto.WFCMessage.ModifyGroupInfoRequest getDefaultInstanceForType() {
return cn.wildfirechat.proto.WFCMessage.ModifyGroupInfoRequest.getDefaultInstance();
}
public cn.wildfirechat.proto.WFCMessage.ModifyGroupInfoRequest build() {
cn.wildfirechat.proto.WFCMessage.ModifyGroupInfoRequest result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
public cn.wildfirechat.proto.WFCMessage.ModifyGroupInfoRequest buildPartial() {
cn.wildfirechat.proto.WFCMessage.ModifyGroupInfoRequest result = new cn.wildfirechat.proto.WFCMessage.ModifyGroupInfoRequest(this);
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
if (((from_bitField0_ & 0x00000001) == 0x00000001)) {
to_bitField0_ |= 0x00000001;
}
result.groupId_ = groupId_;
if (((from_bitField0_ & 0x00000002) == 0x00000002)) {
to_bitField0_ |= 0x00000002;
}
result.type_ = type_;
if (((from_bitField0_ & 0x00000004) == 0x00000004)) {
to_bitField0_ |= 0x00000004;
}
result.value_ = value_;
if (((bitField0_ & 0x00000008) == 0x00000008)) {
toLine_ = java.util.Collections.unmodifiableList(toLine_);
bitField0_ = (bitField0_ & ~0x00000008);
}
result.toLine_ = toLine_;
if (((from_bitField0_ & 0x00000010) == 0x00000010)) {
to_bitField0_ |= 0x00000008;
}
if (notifyContentBuilder_ == null) {
result.notifyContent_ = notifyContent_;
} else {
result.notifyContent_ = notifyContentBuilder_.build();
}
result.bitField0_ = to_bitField0_;
onBuilt();
return result;
}
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof cn.wildfirechat.proto.WFCMessage.ModifyGroupInfoRequest) {
return mergeFrom((cn.wildfirechat.proto.WFCMessage.ModifyGroupInfoRequest)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(cn.wildfirechat.proto.WFCMessage.ModifyGroupInfoRequest other) {
if (other == cn.wildfirechat.proto.WFCMessage.ModifyGroupInfoRequest.getDefaultInstance()) return this;
if (other.hasGroupId()) {
bitField0_ |= 0x00000001;
groupId_ = other.groupId_;
onChanged();
}
if (other.hasType()) {
setType(other.getType());
}
if (other.hasValue()) {
bitField0_ |= 0x00000004;
value_ = other.value_;
onChanged();
}
if (!other.toLine_.isEmpty()) {
if (toLine_.isEmpty()) {
toLine_ = other.toLine_;
bitField0_ = (bitField0_ & ~0x00000008);
} else {
ensureToLineIsMutable();
toLine_.addAll(other.toLine_);
}
onChanged();
}
if (other.hasNotifyContent()) {
mergeNotifyContent(other.getNotifyContent());
}
this.mergeUnknownFields(other.getUnknownFields());
return this;
}
public final boolean isInitialized() {
if (!hasGroupId()) {
return false;
}
if (!hasType()) {
return false;
}
if (!hasValue()) {
return false;
}
if (hasNotifyContent()) {
if (!getNotifyContent().isInitialized()) {
return false;
}
}
return true;
}
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
cn.wildfirechat.proto.WFCMessage.ModifyGroupInfoRequest parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (cn.wildfirechat.proto.WFCMessage.ModifyGroupInfoRequest) e.getUnfinishedMessage();
throw e;
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
// required string group_id = 1;
private java.lang.Object groupId_ = "";
/**
* required string group_id = 1;
*/
public boolean hasGroupId() {
return ((bitField0_ & 0x00000001) == 0x00000001);
}
/**
* required string group_id = 1;
*/
public java.lang.String getGroupId() {
java.lang.Object ref = groupId_;
if (!(ref instanceof java.lang.String)) {
java.lang.String s = ((com.google.protobuf.ByteString) ref)
.toStringUtf8();
groupId_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* required string group_id = 1;
*/
public com.google.protobuf.ByteString
getGroupIdBytes() {
java.lang.Object ref = groupId_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
groupId_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* required string group_id = 1;
*/
public Builder setGroupId(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000001;
groupId_ = value;
onChanged();
return this;
}
/**
* required string group_id = 1;
*/
public Builder clearGroupId() {
bitField0_ = (bitField0_ & ~0x00000001);
groupId_ = getDefaultInstance().getGroupId();
onChanged();
return this;
}
/**
* required string group_id = 1;
*/
public Builder setGroupIdBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000001;
groupId_ = value;
onChanged();
return this;
}
// required int32 type = 2;
private int type_ ;
/**
* required int32 type = 2;
*/
public boolean hasType() {
return ((bitField0_ & 0x00000002) == 0x00000002);
}
/**
* required int32 type = 2;
*/
public int getType() {
return type_;
}
/**
* required int32 type = 2;
*/
public Builder setType(int value) {
bitField0_ |= 0x00000002;
type_ = value;
onChanged();
return this;
}
/**
* required int32 type = 2;
*/
public Builder clearType() {
bitField0_ = (bitField0_ & ~0x00000002);
type_ = 0;
onChanged();
return this;
}
// required string value = 3;
private java.lang.Object value_ = "";
/**
* required string value = 3;
*/
public boolean hasValue() {
return ((bitField0_ & 0x00000004) == 0x00000004);
}
/**
* required string value = 3;
*/
public java.lang.String getValue() {
java.lang.Object ref = value_;
if (!(ref instanceof java.lang.String)) {
java.lang.String s = ((com.google.protobuf.ByteString) ref)
.toStringUtf8();
value_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* required string value = 3;
*/
public com.google.protobuf.ByteString
getValueBytes() {
java.lang.Object ref = value_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
value_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* required string value = 3;
*/
public Builder setValue(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000004;
value_ = value;
onChanged();
return this;
}
/**
* required string value = 3;
*/
public Builder clearValue() {
bitField0_ = (bitField0_ & ~0x00000004);
value_ = getDefaultInstance().getValue();
onChanged();
return this;
}
/**
* required string value = 3;
*/
public Builder setValueBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000004;
value_ = value;
onChanged();
return this;
}
// repeated int32 to_line = 4;
private java.util.List toLine_ = java.util.Collections.emptyList();
private void ensureToLineIsMutable() {
if (!((bitField0_ & 0x00000008) == 0x00000008)) {
toLine_ = new java.util.ArrayList(toLine_);
bitField0_ |= 0x00000008;
}
}
/**
* repeated int32 to_line = 4;
*/
public java.util.List
getToLineList() {
return java.util.Collections.unmodifiableList(toLine_);
}
/**
* repeated int32 to_line = 4;
*/
public int getToLineCount() {
return toLine_.size();
}
/**
* repeated int32 to_line = 4;
*/
public int getToLine(int index) {
return toLine_.get(index);
}
/**
* repeated int32 to_line = 4;
*/
public Builder setToLine(
int index, int value) {
ensureToLineIsMutable();
toLine_.set(index, value);
onChanged();
return this;
}
/**
* repeated int32 to_line = 4;
*/
public Builder addToLine(int value) {
ensureToLineIsMutable();
toLine_.add(value);
onChanged();
return this;
}
/**
* repeated int32 to_line = 4;
*/
public Builder addAllToLine(
java.lang.Iterable extends java.lang.Integer> values) {
ensureToLineIsMutable();
super.addAll(values, toLine_);
onChanged();
return this;
}
/**
* repeated int32 to_line = 4;
*/
public Builder clearToLine() {
toLine_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000008);
onChanged();
return this;
}
// optional .MessageContent notify_content = 5;
private cn.wildfirechat.proto.WFCMessage.MessageContent notifyContent_ = cn.wildfirechat.proto.WFCMessage.MessageContent.getDefaultInstance();
private com.google.protobuf.SingleFieldBuilder<
cn.wildfirechat.proto.WFCMessage.MessageContent, cn.wildfirechat.proto.WFCMessage.MessageContent.Builder, cn.wildfirechat.proto.WFCMessage.MessageContentOrBuilder> notifyContentBuilder_;
/**
* optional .MessageContent notify_content = 5;
*/
public boolean hasNotifyContent() {
return ((bitField0_ & 0x00000010) == 0x00000010);
}
/**
* optional .MessageContent notify_content = 5;
*/
public cn.wildfirechat.proto.WFCMessage.MessageContent getNotifyContent() {
if (notifyContentBuilder_ == null) {
return notifyContent_;
} else {
return notifyContentBuilder_.getMessage();
}
}
/**
* optional .MessageContent notify_content = 5;
*/
public Builder setNotifyContent(cn.wildfirechat.proto.WFCMessage.MessageContent value) {
if (notifyContentBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
notifyContent_ = value;
onChanged();
} else {
notifyContentBuilder_.setMessage(value);
}
bitField0_ |= 0x00000010;
return this;
}
/**
* optional .MessageContent notify_content = 5;
*/
public Builder setNotifyContent(
cn.wildfirechat.proto.WFCMessage.MessageContent.Builder builderForValue) {
if (notifyContentBuilder_ == null) {
notifyContent_ = builderForValue.build();
onChanged();
} else {
notifyContentBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000010;
return this;
}
/**
* optional .MessageContent notify_content = 5;
*/
public Builder mergeNotifyContent(cn.wildfirechat.proto.WFCMessage.MessageContent value) {
if (notifyContentBuilder_ == null) {
if (((bitField0_ & 0x00000010) == 0x00000010) &&
notifyContent_ != cn.wildfirechat.proto.WFCMessage.MessageContent.getDefaultInstance()) {
notifyContent_ =
cn.wildfirechat.proto.WFCMessage.MessageContent.newBuilder(notifyContent_).mergeFrom(value).buildPartial();
} else {
notifyContent_ = value;
}
onChanged();
} else {
notifyContentBuilder_.mergeFrom(value);
}
bitField0_ |= 0x00000010;
return this;
}
/**
* optional .MessageContent notify_content = 5;
*/
public Builder clearNotifyContent() {
if (notifyContentBuilder_ == null) {
notifyContent_ = cn.wildfirechat.proto.WFCMessage.MessageContent.getDefaultInstance();
onChanged();
} else {
notifyContentBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000010);
return this;
}
/**
* optional .MessageContent notify_content = 5;
*/
public cn.wildfirechat.proto.WFCMessage.MessageContent.Builder getNotifyContentBuilder() {
bitField0_ |= 0x00000010;
onChanged();
return getNotifyContentFieldBuilder().getBuilder();
}
/**
* optional .MessageContent notify_content = 5;
*/
public cn.wildfirechat.proto.WFCMessage.MessageContentOrBuilder getNotifyContentOrBuilder() {
if (notifyContentBuilder_ != null) {
return notifyContentBuilder_.getMessageOrBuilder();
} else {
return notifyContent_;
}
}
/**
* optional .MessageContent notify_content = 5;
*/
private com.google.protobuf.SingleFieldBuilder<
cn.wildfirechat.proto.WFCMessage.MessageContent, cn.wildfirechat.proto.WFCMessage.MessageContent.Builder, cn.wildfirechat.proto.WFCMessage.MessageContentOrBuilder>
getNotifyContentFieldBuilder() {
if (notifyContentBuilder_ == null) {
notifyContentBuilder_ = new com.google.protobuf.SingleFieldBuilder<
cn.wildfirechat.proto.WFCMessage.MessageContent, cn.wildfirechat.proto.WFCMessage.MessageContent.Builder, cn.wildfirechat.proto.WFCMessage.MessageContentOrBuilder>(
notifyContent_,
getParentForChildren(),
isClean());
notifyContent_ = null;
}
return notifyContentBuilder_;
}
// @@protoc_insertion_point(builder_scope:ModifyGroupInfoRequest)
}
static {
defaultInstance = new ModifyGroupInfoRequest(true);
defaultInstance.initFields();
}
// @@protoc_insertion_point(class_scope:ModifyGroupInfoRequest)
}
public interface SetGroupManagerRequestOrBuilder
extends com.google.protobuf.MessageOrBuilder {
// required string group_id = 1;
/**
* required string group_id = 1;
*/
boolean hasGroupId();
/**
* required string group_id = 1;
*/
java.lang.String getGroupId();
/**
* required string group_id = 1;
*/
com.google.protobuf.ByteString
getGroupIdBytes();
// required int32 type = 2;
/**
* required int32 type = 2;
*/
boolean hasType();
/**
* required int32 type = 2;
*/
int getType();
// repeated string user_id = 3;
/**
* repeated string user_id = 3;
*/
java.util.List
getUserIdList();
/**
* repeated string user_id = 3;
*/
int getUserIdCount();
/**
* repeated string user_id = 3;
*/
java.lang.String getUserId(int index);
/**
* repeated string user_id = 3;
*/
com.google.protobuf.ByteString
getUserIdBytes(int index);
// repeated int32 to_line = 4;
/**
* repeated int32 to_line = 4;
*/
java.util.List getToLineList();
/**
* repeated int32 to_line = 4;
*/
int getToLineCount();
/**
* repeated int32 to_line = 4;
*/
int getToLine(int index);
// optional .MessageContent notify_content = 5;
/**
* optional .MessageContent notify_content = 5;
*/
boolean hasNotifyContent();
/**
* optional .MessageContent notify_content = 5;
*/
cn.wildfirechat.proto.WFCMessage.MessageContent getNotifyContent();
/**
* optional .MessageContent notify_content = 5;
*/
cn.wildfirechat.proto.WFCMessage.MessageContentOrBuilder getNotifyContentOrBuilder();
}
/**
* Protobuf type {@code SetGroupManagerRequest}
*/
public static final class SetGroupManagerRequest extends
com.google.protobuf.GeneratedMessage
implements SetGroupManagerRequestOrBuilder {
// Use SetGroupManagerRequest.newBuilder() to construct.
private SetGroupManagerRequest(com.google.protobuf.GeneratedMessage.Builder> builder) {
super(builder);
this.unknownFields = builder.getUnknownFields();
}
private SetGroupManagerRequest(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); }
private static final SetGroupManagerRequest defaultInstance;
public static SetGroupManagerRequest getDefaultInstance() {
return defaultInstance;
}
public SetGroupManagerRequest getDefaultInstanceForType() {
return defaultInstance;
}
private final com.google.protobuf.UnknownFieldSet unknownFields;
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private SetGroupManagerRequest(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
initFields();
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;
default: {
if (!parseUnknownField(input, unknownFields,
extensionRegistry, tag)) {
done = true;
}
break;
}
case 10: {
bitField0_ |= 0x00000001;
groupId_ = input.readBytes();
break;
}
case 16: {
bitField0_ |= 0x00000002;
type_ = input.readInt32();
break;
}
case 26: {
if (!((mutable_bitField0_ & 0x00000004) == 0x00000004)) {
userId_ = new com.google.protobuf.LazyStringArrayList();
mutable_bitField0_ |= 0x00000004;
}
userId_.add(input.readBytes());
break;
}
case 32: {
if (!((mutable_bitField0_ & 0x00000008) == 0x00000008)) {
toLine_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00000008;
}
toLine_.add(input.readInt32());
break;
}
case 34: {
int length = input.readRawVarint32();
int limit = input.pushLimit(length);
if (!((mutable_bitField0_ & 0x00000008) == 0x00000008) && input.getBytesUntilLimit() > 0) {
toLine_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00000008;
}
while (input.getBytesUntilLimit() > 0) {
toLine_.add(input.readInt32());
}
input.popLimit(limit);
break;
}
case 42: {
cn.wildfirechat.proto.WFCMessage.MessageContent.Builder subBuilder = null;
if (((bitField0_ & 0x00000004) == 0x00000004)) {
subBuilder = notifyContent_.toBuilder();
}
notifyContent_ = input.readMessage(cn.wildfirechat.proto.WFCMessage.MessageContent.PARSER, extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(notifyContent_);
notifyContent_ = subBuilder.buildPartial();
}
bitField0_ |= 0x00000004;
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e.getMessage()).setUnfinishedMessage(this);
} finally {
if (((mutable_bitField0_ & 0x00000004) == 0x00000004)) {
userId_ = new com.google.protobuf.UnmodifiableLazyStringList(userId_);
}
if (((mutable_bitField0_ & 0x00000008) == 0x00000008)) {
toLine_ = java.util.Collections.unmodifiableList(toLine_);
}
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return cn.wildfirechat.proto.WFCMessage.internal_static_SetGroupManagerRequest_descriptor;
}
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable() {
return cn.wildfirechat.proto.WFCMessage.internal_static_SetGroupManagerRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
cn.wildfirechat.proto.WFCMessage.SetGroupManagerRequest.class, cn.wildfirechat.proto.WFCMessage.SetGroupManagerRequest.Builder.class);
}
public static com.google.protobuf.Parser PARSER =
new com.google.protobuf.AbstractParser() {
public SetGroupManagerRequest parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new SetGroupManagerRequest(input, extensionRegistry);
}
};
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
private int bitField0_;
// required string group_id = 1;
public static final int GROUP_ID_FIELD_NUMBER = 1;
private java.lang.Object groupId_;
/**
* required string group_id = 1;
*/
public boolean hasGroupId() {
return ((bitField0_ & 0x00000001) == 0x00000001);
}
/**
* required string group_id = 1;
*/
public java.lang.String getGroupId() {
java.lang.Object ref = groupId_;
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()) {
groupId_ = s;
}
return s;
}
}
/**
* required string group_id = 1;
*/
public com.google.protobuf.ByteString
getGroupIdBytes() {
java.lang.Object ref = groupId_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
groupId_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
// required int32 type = 2;
public static final int TYPE_FIELD_NUMBER = 2;
private int type_;
/**
* required int32 type = 2;
*/
public boolean hasType() {
return ((bitField0_ & 0x00000002) == 0x00000002);
}
/**
* required int32 type = 2;
*/
public int getType() {
return type_;
}
// repeated string user_id = 3;
public static final int USER_ID_FIELD_NUMBER = 3;
private com.google.protobuf.LazyStringList userId_;
/**
* repeated string user_id = 3;
*/
public java.util.List
getUserIdList() {
return userId_;
}
/**
* repeated string user_id = 3;
*/
public int getUserIdCount() {
return userId_.size();
}
/**
* repeated string user_id = 3;
*/
public java.lang.String getUserId(int index) {
return userId_.get(index);
}
/**
* repeated string user_id = 3;
*/
public com.google.protobuf.ByteString
getUserIdBytes(int index) {
return userId_.getByteString(index);
}
// repeated int32 to_line = 4;
public static final int TO_LINE_FIELD_NUMBER = 4;
private java.util.List toLine_;
/**
* repeated int32 to_line = 4;
*/
public java.util.List
getToLineList() {
return toLine_;
}
/**
* repeated int32 to_line = 4;
*/
public int getToLineCount() {
return toLine_.size();
}
/**
* repeated int32 to_line = 4;
*/
public int getToLine(int index) {
return toLine_.get(index);
}
// optional .MessageContent notify_content = 5;
public static final int NOTIFY_CONTENT_FIELD_NUMBER = 5;
private cn.wildfirechat.proto.WFCMessage.MessageContent notifyContent_;
/**
* optional .MessageContent notify_content = 5;
*/
public boolean hasNotifyContent() {
return ((bitField0_ & 0x00000004) == 0x00000004);
}
/**
* optional .MessageContent notify_content = 5;
*/
public cn.wildfirechat.proto.WFCMessage.MessageContent getNotifyContent() {
return notifyContent_;
}
/**
* optional .MessageContent notify_content = 5;
*/
public cn.wildfirechat.proto.WFCMessage.MessageContentOrBuilder getNotifyContentOrBuilder() {
return notifyContent_;
}
private void initFields() {
groupId_ = "";
type_ = 0;
userId_ = com.google.protobuf.LazyStringArrayList.EMPTY;
toLine_ = java.util.Collections.emptyList();
notifyContent_ = cn.wildfirechat.proto.WFCMessage.MessageContent.getDefaultInstance();
}
private byte memoizedIsInitialized = -1;
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized != -1) return isInitialized == 1;
if (!hasGroupId()) {
memoizedIsInitialized = 0;
return false;
}
if (!hasType()) {
memoizedIsInitialized = 0;
return false;
}
if (hasNotifyContent()) {
if (!getNotifyContent().isInitialized()) {
memoizedIsInitialized = 0;
return false;
}
}
memoizedIsInitialized = 1;
return true;
}
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
getSerializedSize();
if (((bitField0_ & 0x00000001) == 0x00000001)) {
output.writeBytes(1, getGroupIdBytes());
}
if (((bitField0_ & 0x00000002) == 0x00000002)) {
output.writeInt32(2, type_);
}
for (int i = 0; i < userId_.size(); i++) {
output.writeBytes(3, userId_.getByteString(i));
}
for (int i = 0; i < toLine_.size(); i++) {
output.writeInt32(4, toLine_.get(i));
}
if (((bitField0_ & 0x00000004) == 0x00000004)) {
output.writeMessage(5, notifyContent_);
}
getUnknownFields().writeTo(output);
}
private int memoizedSerializedSize = -1;
public int getSerializedSize() {
int size = memoizedSerializedSize;
if (size != -1) return size;
size = 0;
if (((bitField0_ & 0x00000001) == 0x00000001)) {
size += com.google.protobuf.CodedOutputStream
.computeBytesSize(1, getGroupIdBytes());
}
if (((bitField0_ & 0x00000002) == 0x00000002)) {
size += com.google.protobuf.CodedOutputStream
.computeInt32Size(2, type_);
}
{
int dataSize = 0;
for (int i = 0; i < userId_.size(); i++) {
dataSize += com.google.protobuf.CodedOutputStream
.computeBytesSizeNoTag(userId_.getByteString(i));
}
size += dataSize;
size += 1 * getUserIdList().size();
}
{
int dataSize = 0;
for (int i = 0; i < toLine_.size(); i++) {
dataSize += com.google.protobuf.CodedOutputStream
.computeInt32SizeNoTag(toLine_.get(i));
}
size += dataSize;
size += 1 * getToLineList().size();
}
if (((bitField0_ & 0x00000004) == 0x00000004)) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(5, notifyContent_);
}
size += getUnknownFields().getSerializedSize();
memoizedSerializedSize = size;
return size;
}
private static final long serialVersionUID = 0L;
@java.lang.Override
protected java.lang.Object writeReplace()
throws java.io.ObjectStreamException {
return super.writeReplace();
}
public static cn.wildfirechat.proto.WFCMessage.SetGroupManagerRequest parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static cn.wildfirechat.proto.WFCMessage.SetGroupManagerRequest parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static cn.wildfirechat.proto.WFCMessage.SetGroupManagerRequest parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static cn.wildfirechat.proto.WFCMessage.SetGroupManagerRequest parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static cn.wildfirechat.proto.WFCMessage.SetGroupManagerRequest parseFrom(java.io.InputStream input)
throws java.io.IOException {
return PARSER.parseFrom(input);
}
public static cn.wildfirechat.proto.WFCMessage.SetGroupManagerRequest parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return PARSER.parseFrom(input, extensionRegistry);
}
public static cn.wildfirechat.proto.WFCMessage.SetGroupManagerRequest parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return PARSER.parseDelimitedFrom(input);
}
public static cn.wildfirechat.proto.WFCMessage.SetGroupManagerRequest parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return PARSER.parseDelimitedFrom(input, extensionRegistry);
}
public static cn.wildfirechat.proto.WFCMessage.SetGroupManagerRequest parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return PARSER.parseFrom(input);
}
public static cn.wildfirechat.proto.WFCMessage.SetGroupManagerRequest parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return PARSER.parseFrom(input, extensionRegistry);
}
public static Builder newBuilder() { return Builder.create(); }
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder(cn.wildfirechat.proto.WFCMessage.SetGroupManagerRequest prototype) {
return newBuilder().mergeFrom(prototype);
}
public Builder toBuilder() { return newBuilder(this); }
@java.lang.Override
protected Builder newBuilderForType(
com.google.protobuf.GeneratedMessage.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
* Protobuf type {@code SetGroupManagerRequest}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessage.Builder
implements cn.wildfirechat.proto.WFCMessage.SetGroupManagerRequestOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return cn.wildfirechat.proto.WFCMessage.internal_static_SetGroupManagerRequest_descriptor;
}
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable() {
return cn.wildfirechat.proto.WFCMessage.internal_static_SetGroupManagerRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
cn.wildfirechat.proto.WFCMessage.SetGroupManagerRequest.class, cn.wildfirechat.proto.WFCMessage.SetGroupManagerRequest.Builder.class);
}
// Construct using cn.wildfirechat.proto.WFCMessage.SetGroupManagerRequest.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessage.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) {
getNotifyContentFieldBuilder();
}
}
private static Builder create() {
return new Builder();
}
public Builder clear() {
super.clear();
groupId_ = "";
bitField0_ = (bitField0_ & ~0x00000001);
type_ = 0;
bitField0_ = (bitField0_ & ~0x00000002);
userId_ = com.google.protobuf.LazyStringArrayList.EMPTY;
bitField0_ = (bitField0_ & ~0x00000004);
toLine_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000008);
if (notifyContentBuilder_ == null) {
notifyContent_ = cn.wildfirechat.proto.WFCMessage.MessageContent.getDefaultInstance();
} else {
notifyContentBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000010);
return this;
}
public Builder clone() {
return create().mergeFrom(buildPartial());
}
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return cn.wildfirechat.proto.WFCMessage.internal_static_SetGroupManagerRequest_descriptor;
}
public cn.wildfirechat.proto.WFCMessage.SetGroupManagerRequest getDefaultInstanceForType() {
return cn.wildfirechat.proto.WFCMessage.SetGroupManagerRequest.getDefaultInstance();
}
public cn.wildfirechat.proto.WFCMessage.SetGroupManagerRequest build() {
cn.wildfirechat.proto.WFCMessage.SetGroupManagerRequest result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
public cn.wildfirechat.proto.WFCMessage.SetGroupManagerRequest buildPartial() {
cn.wildfirechat.proto.WFCMessage.SetGroupManagerRequest result = new cn.wildfirechat.proto.WFCMessage.SetGroupManagerRequest(this);
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
if (((from_bitField0_ & 0x00000001) == 0x00000001)) {
to_bitField0_ |= 0x00000001;
}
result.groupId_ = groupId_;
if (((from_bitField0_ & 0x00000002) == 0x00000002)) {
to_bitField0_ |= 0x00000002;
}
result.type_ = type_;
if (((bitField0_ & 0x00000004) == 0x00000004)) {
userId_ = new com.google.protobuf.UnmodifiableLazyStringList(
userId_);
bitField0_ = (bitField0_ & ~0x00000004);
}
result.userId_ = userId_;
if (((bitField0_ & 0x00000008) == 0x00000008)) {
toLine_ = java.util.Collections.unmodifiableList(toLine_);
bitField0_ = (bitField0_ & ~0x00000008);
}
result.toLine_ = toLine_;
if (((from_bitField0_ & 0x00000010) == 0x00000010)) {
to_bitField0_ |= 0x00000004;
}
if (notifyContentBuilder_ == null) {
result.notifyContent_ = notifyContent_;
} else {
result.notifyContent_ = notifyContentBuilder_.build();
}
result.bitField0_ = to_bitField0_;
onBuilt();
return result;
}
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof cn.wildfirechat.proto.WFCMessage.SetGroupManagerRequest) {
return mergeFrom((cn.wildfirechat.proto.WFCMessage.SetGroupManagerRequest)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(cn.wildfirechat.proto.WFCMessage.SetGroupManagerRequest other) {
if (other == cn.wildfirechat.proto.WFCMessage.SetGroupManagerRequest.getDefaultInstance()) return this;
if (other.hasGroupId()) {
bitField0_ |= 0x00000001;
groupId_ = other.groupId_;
onChanged();
}
if (other.hasType()) {
setType(other.getType());
}
if (!other.userId_.isEmpty()) {
if (userId_.isEmpty()) {
userId_ = other.userId_;
bitField0_ = (bitField0_ & ~0x00000004);
} else {
ensureUserIdIsMutable();
userId_.addAll(other.userId_);
}
onChanged();
}
if (!other.toLine_.isEmpty()) {
if (toLine_.isEmpty()) {
toLine_ = other.toLine_;
bitField0_ = (bitField0_ & ~0x00000008);
} else {
ensureToLineIsMutable();
toLine_.addAll(other.toLine_);
}
onChanged();
}
if (other.hasNotifyContent()) {
mergeNotifyContent(other.getNotifyContent());
}
this.mergeUnknownFields(other.getUnknownFields());
return this;
}
public final boolean isInitialized() {
if (!hasGroupId()) {
return false;
}
if (!hasType()) {
return false;
}
if (hasNotifyContent()) {
if (!getNotifyContent().isInitialized()) {
return false;
}
}
return true;
}
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
cn.wildfirechat.proto.WFCMessage.SetGroupManagerRequest parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (cn.wildfirechat.proto.WFCMessage.SetGroupManagerRequest) e.getUnfinishedMessage();
throw e;
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
// required string group_id = 1;
private java.lang.Object groupId_ = "";
/**
* required string group_id = 1;
*/
public boolean hasGroupId() {
return ((bitField0_ & 0x00000001) == 0x00000001);
}
/**
* required string group_id = 1;
*/
public java.lang.String getGroupId() {
java.lang.Object ref = groupId_;
if (!(ref instanceof java.lang.String)) {
java.lang.String s = ((com.google.protobuf.ByteString) ref)
.toStringUtf8();
groupId_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* required string group_id = 1;
*/
public com.google.protobuf.ByteString
getGroupIdBytes() {
java.lang.Object ref = groupId_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
groupId_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* required string group_id = 1;
*/
public Builder setGroupId(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000001;
groupId_ = value;
onChanged();
return this;
}
/**
* required string group_id = 1;
*/
public Builder clearGroupId() {
bitField0_ = (bitField0_ & ~0x00000001);
groupId_ = getDefaultInstance().getGroupId();
onChanged();
return this;
}
/**
* required string group_id = 1;
*/
public Builder setGroupIdBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000001;
groupId_ = value;
onChanged();
return this;
}
// required int32 type = 2;
private int type_ ;
/**
* required int32 type = 2;
*/
public boolean hasType() {
return ((bitField0_ & 0x00000002) == 0x00000002);
}
/**
* required int32 type = 2;
*/
public int getType() {
return type_;
}
/**
* required int32 type = 2;
*/
public Builder setType(int value) {
bitField0_ |= 0x00000002;
type_ = value;
onChanged();
return this;
}
/**
* required int32 type = 2;
*/
public Builder clearType() {
bitField0_ = (bitField0_ & ~0x00000002);
type_ = 0;
onChanged();
return this;
}
// repeated string user_id = 3;
private com.google.protobuf.LazyStringList userId_ = com.google.protobuf.LazyStringArrayList.EMPTY;
private void ensureUserIdIsMutable() {
if (!((bitField0_ & 0x00000004) == 0x00000004)) {
userId_ = new com.google.protobuf.LazyStringArrayList(userId_);
bitField0_ |= 0x00000004;
}
}
/**
* repeated string user_id = 3;
*/
public java.util.List
getUserIdList() {
return java.util.Collections.unmodifiableList(userId_);
}
/**
* repeated string user_id = 3;
*/
public int getUserIdCount() {
return userId_.size();
}
/**
* repeated string user_id = 3;
*/
public java.lang.String getUserId(int index) {
return userId_.get(index);
}
/**
* repeated string user_id = 3;
*/
public com.google.protobuf.ByteString
getUserIdBytes(int index) {
return userId_.getByteString(index);
}
/**
* repeated string user_id = 3;
*/
public Builder setUserId(
int index, java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
ensureUserIdIsMutable();
userId_.set(index, value);
onChanged();
return this;
}
/**
* repeated string user_id = 3;
*/
public Builder addUserId(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
ensureUserIdIsMutable();
userId_.add(value);
onChanged();
return this;
}
/**
* repeated string user_id = 3;
*/
public Builder addAllUserId(
java.lang.Iterable values) {
ensureUserIdIsMutable();
super.addAll(values, userId_);
onChanged();
return this;
}
/**
* repeated string user_id = 3;
*/
public Builder clearUserId() {
userId_ = com.google.protobuf.LazyStringArrayList.EMPTY;
bitField0_ = (bitField0_ & ~0x00000004);
onChanged();
return this;
}
/**
* repeated string user_id = 3;
*/
public Builder addUserIdBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
ensureUserIdIsMutable();
userId_.add(value);
onChanged();
return this;
}
// repeated int32 to_line = 4;
private java.util.List toLine_ = java.util.Collections.emptyList();
private void ensureToLineIsMutable() {
if (!((bitField0_ & 0x00000008) == 0x00000008)) {
toLine_ = new java.util.ArrayList(toLine_);
bitField0_ |= 0x00000008;
}
}
/**
* repeated int32 to_line = 4;
*/
public java.util.List
getToLineList() {
return java.util.Collections.unmodifiableList(toLine_);
}
/**
* repeated int32 to_line = 4;
*/
public int getToLineCount() {
return toLine_.size();
}
/**
* repeated int32 to_line = 4;
*/
public int getToLine(int index) {
return toLine_.get(index);
}
/**
* repeated int32 to_line = 4;
*/
public Builder setToLine(
int index, int value) {
ensureToLineIsMutable();
toLine_.set(index, value);
onChanged();
return this;
}
/**
* repeated int32 to_line = 4;
*/
public Builder addToLine(int value) {
ensureToLineIsMutable();
toLine_.add(value);
onChanged();
return this;
}
/**
* repeated int32 to_line = 4;
*/
public Builder addAllToLine(
java.lang.Iterable extends java.lang.Integer> values) {
ensureToLineIsMutable();
super.addAll(values, toLine_);
onChanged();
return this;
}
/**
* repeated int32 to_line = 4;
*/
public Builder clearToLine() {
toLine_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000008);
onChanged();
return this;
}
// optional .MessageContent notify_content = 5;
private cn.wildfirechat.proto.WFCMessage.MessageContent notifyContent_ = cn.wildfirechat.proto.WFCMessage.MessageContent.getDefaultInstance();
private com.google.protobuf.SingleFieldBuilder<
cn.wildfirechat.proto.WFCMessage.MessageContent, cn.wildfirechat.proto.WFCMessage.MessageContent.Builder, cn.wildfirechat.proto.WFCMessage.MessageContentOrBuilder> notifyContentBuilder_;
/**
* optional .MessageContent notify_content = 5;
*/
public boolean hasNotifyContent() {
return ((bitField0_ & 0x00000010) == 0x00000010);
}
/**
* optional .MessageContent notify_content = 5;
*/
public cn.wildfirechat.proto.WFCMessage.MessageContent getNotifyContent() {
if (notifyContentBuilder_ == null) {
return notifyContent_;
} else {
return notifyContentBuilder_.getMessage();
}
}
/**
* optional .MessageContent notify_content = 5;
*/
public Builder setNotifyContent(cn.wildfirechat.proto.WFCMessage.MessageContent value) {
if (notifyContentBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
notifyContent_ = value;
onChanged();
} else {
notifyContentBuilder_.setMessage(value);
}
bitField0_ |= 0x00000010;
return this;
}
/**
* optional .MessageContent notify_content = 5;
*/
public Builder setNotifyContent(
cn.wildfirechat.proto.WFCMessage.MessageContent.Builder builderForValue) {
if (notifyContentBuilder_ == null) {
notifyContent_ = builderForValue.build();
onChanged();
} else {
notifyContentBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000010;
return this;
}
/**
* optional .MessageContent notify_content = 5;
*/
public Builder mergeNotifyContent(cn.wildfirechat.proto.WFCMessage.MessageContent value) {
if (notifyContentBuilder_ == null) {
if (((bitField0_ & 0x00000010) == 0x00000010) &&
notifyContent_ != cn.wildfirechat.proto.WFCMessage.MessageContent.getDefaultInstance()) {
notifyContent_ =
cn.wildfirechat.proto.WFCMessage.MessageContent.newBuilder(notifyContent_).mergeFrom(value).buildPartial();
} else {
notifyContent_ = value;
}
onChanged();
} else {
notifyContentBuilder_.mergeFrom(value);
}
bitField0_ |= 0x00000010;
return this;
}
/**
* optional .MessageContent notify_content = 5;
*/
public Builder clearNotifyContent() {
if (notifyContentBuilder_ == null) {
notifyContent_ = cn.wildfirechat.proto.WFCMessage.MessageContent.getDefaultInstance();
onChanged();
} else {
notifyContentBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000010);
return this;
}
/**
* optional .MessageContent notify_content = 5;
*/
public cn.wildfirechat.proto.WFCMessage.MessageContent.Builder getNotifyContentBuilder() {
bitField0_ |= 0x00000010;
onChanged();
return getNotifyContentFieldBuilder().getBuilder();
}
/**
* optional .MessageContent notify_content = 5;
*/
public cn.wildfirechat.proto.WFCMessage.MessageContentOrBuilder getNotifyContentOrBuilder() {
if (notifyContentBuilder_ != null) {
return notifyContentBuilder_.getMessageOrBuilder();
} else {
return notifyContent_;
}
}
/**
* optional .MessageContent notify_content = 5;
*/
private com.google.protobuf.SingleFieldBuilder<
cn.wildfirechat.proto.WFCMessage.MessageContent, cn.wildfirechat.proto.WFCMessage.MessageContent.Builder, cn.wildfirechat.proto.WFCMessage.MessageContentOrBuilder>
getNotifyContentFieldBuilder() {
if (notifyContentBuilder_ == null) {
notifyContentBuilder_ = new com.google.protobuf.SingleFieldBuilder<
cn.wildfirechat.proto.WFCMessage.MessageContent, cn.wildfirechat.proto.WFCMessage.MessageContent.Builder, cn.wildfirechat.proto.WFCMessage.MessageContentOrBuilder>(
notifyContent_,
getParentForChildren(),
isClean());
notifyContent_ = null;
}
return notifyContentBuilder_;
}
// @@protoc_insertion_point(builder_scope:SetGroupManagerRequest)
}
static {
defaultInstance = new SetGroupManagerRequest(true);
defaultInstance.initFields();
}
// @@protoc_insertion_point(class_scope:SetGroupManagerRequest)
}
public interface InfoEntryOrBuilder
extends com.google.protobuf.MessageOrBuilder {
// required int32 type = 1;
/**
* required int32 type = 1;
*/
boolean hasType();
/**
* required int32 type = 1;
*/
int getType();
// required string value = 2;
/**
* required string value = 2;
*/
boolean hasValue();
/**
* required string value = 2;
*/
java.lang.String getValue();
/**
* required string value = 2;
*/
com.google.protobuf.ByteString
getValueBytes();
}
/**
* Protobuf type {@code InfoEntry}
*/
public static final class InfoEntry extends
com.google.protobuf.GeneratedMessage
implements InfoEntryOrBuilder {
// Use InfoEntry.newBuilder() to construct.
private InfoEntry(com.google.protobuf.GeneratedMessage.Builder> builder) {
super(builder);
this.unknownFields = builder.getUnknownFields();
}
private InfoEntry(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); }
private static final InfoEntry defaultInstance;
public static InfoEntry getDefaultInstance() {
return defaultInstance;
}
public InfoEntry getDefaultInstanceForType() {
return defaultInstance;
}
private final com.google.protobuf.UnknownFieldSet unknownFields;
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private InfoEntry(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
initFields();
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;
default: {
if (!parseUnknownField(input, unknownFields,
extensionRegistry, tag)) {
done = true;
}
break;
}
case 8: {
bitField0_ |= 0x00000001;
type_ = input.readInt32();
break;
}
case 18: {
bitField0_ |= 0x00000002;
value_ = input.readBytes();
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e.getMessage()).setUnfinishedMessage(this);
} finally {
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return cn.wildfirechat.proto.WFCMessage.internal_static_InfoEntry_descriptor;
}
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable() {
return cn.wildfirechat.proto.WFCMessage.internal_static_InfoEntry_fieldAccessorTable
.ensureFieldAccessorsInitialized(
cn.wildfirechat.proto.WFCMessage.InfoEntry.class, cn.wildfirechat.proto.WFCMessage.InfoEntry.Builder.class);
}
public static com.google.protobuf.Parser PARSER =
new com.google.protobuf.AbstractParser() {
public InfoEntry parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new InfoEntry(input, extensionRegistry);
}
};
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
private int bitField0_;
// required int32 type = 1;
public static final int TYPE_FIELD_NUMBER = 1;
private int type_;
/**
* required int32 type = 1;
*/
public boolean hasType() {
return ((bitField0_ & 0x00000001) == 0x00000001);
}
/**
* required int32 type = 1;
*/
public int getType() {
return type_;
}
// required string value = 2;
public static final int VALUE_FIELD_NUMBER = 2;
private java.lang.Object value_;
/**
* required string value = 2;
*/
public boolean hasValue() {
return ((bitField0_ & 0x00000002) == 0x00000002);
}
/**
* required string value = 2;
*/
public java.lang.String getValue() {
java.lang.Object ref = value_;
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()) {
value_ = s;
}
return s;
}
}
/**
* required string value = 2;
*/
public com.google.protobuf.ByteString
getValueBytes() {
java.lang.Object ref = value_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
value_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
private void initFields() {
type_ = 0;
value_ = "";
}
private byte memoizedIsInitialized = -1;
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized != -1) return isInitialized == 1;
if (!hasType()) {
memoizedIsInitialized = 0;
return false;
}
if (!hasValue()) {
memoizedIsInitialized = 0;
return false;
}
memoizedIsInitialized = 1;
return true;
}
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
getSerializedSize();
if (((bitField0_ & 0x00000001) == 0x00000001)) {
output.writeInt32(1, type_);
}
if (((bitField0_ & 0x00000002) == 0x00000002)) {
output.writeBytes(2, getValueBytes());
}
getUnknownFields().writeTo(output);
}
private int memoizedSerializedSize = -1;
public int getSerializedSize() {
int size = memoizedSerializedSize;
if (size != -1) return size;
size = 0;
if (((bitField0_ & 0x00000001) == 0x00000001)) {
size += com.google.protobuf.CodedOutputStream
.computeInt32Size(1, type_);
}
if (((bitField0_ & 0x00000002) == 0x00000002)) {
size += com.google.protobuf.CodedOutputStream
.computeBytesSize(2, getValueBytes());
}
size += getUnknownFields().getSerializedSize();
memoizedSerializedSize = size;
return size;
}
private static final long serialVersionUID = 0L;
@java.lang.Override
protected java.lang.Object writeReplace()
throws java.io.ObjectStreamException {
return super.writeReplace();
}
public static cn.wildfirechat.proto.WFCMessage.InfoEntry parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static cn.wildfirechat.proto.WFCMessage.InfoEntry parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static cn.wildfirechat.proto.WFCMessage.InfoEntry parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static cn.wildfirechat.proto.WFCMessage.InfoEntry parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static cn.wildfirechat.proto.WFCMessage.InfoEntry parseFrom(java.io.InputStream input)
throws java.io.IOException {
return PARSER.parseFrom(input);
}
public static cn.wildfirechat.proto.WFCMessage.InfoEntry parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return PARSER.parseFrom(input, extensionRegistry);
}
public static cn.wildfirechat.proto.WFCMessage.InfoEntry parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return PARSER.parseDelimitedFrom(input);
}
public static cn.wildfirechat.proto.WFCMessage.InfoEntry parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return PARSER.parseDelimitedFrom(input, extensionRegistry);
}
public static cn.wildfirechat.proto.WFCMessage.InfoEntry parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return PARSER.parseFrom(input);
}
public static cn.wildfirechat.proto.WFCMessage.InfoEntry parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return PARSER.parseFrom(input, extensionRegistry);
}
public static Builder newBuilder() { return Builder.create(); }
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder(cn.wildfirechat.proto.WFCMessage.InfoEntry prototype) {
return newBuilder().mergeFrom(prototype);
}
public Builder toBuilder() { return newBuilder(this); }
@java.lang.Override
protected Builder newBuilderForType(
com.google.protobuf.GeneratedMessage.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
* Protobuf type {@code InfoEntry}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessage.Builder
implements cn.wildfirechat.proto.WFCMessage.InfoEntryOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return cn.wildfirechat.proto.WFCMessage.internal_static_InfoEntry_descriptor;
}
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable() {
return cn.wildfirechat.proto.WFCMessage.internal_static_InfoEntry_fieldAccessorTable
.ensureFieldAccessorsInitialized(
cn.wildfirechat.proto.WFCMessage.InfoEntry.class, cn.wildfirechat.proto.WFCMessage.InfoEntry.Builder.class);
}
// Construct using cn.wildfirechat.proto.WFCMessage.InfoEntry.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessage.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) {
}
}
private static Builder create() {
return new Builder();
}
public Builder clear() {
super.clear();
type_ = 0;
bitField0_ = (bitField0_ & ~0x00000001);
value_ = "";
bitField0_ = (bitField0_ & ~0x00000002);
return this;
}
public Builder clone() {
return create().mergeFrom(buildPartial());
}
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return cn.wildfirechat.proto.WFCMessage.internal_static_InfoEntry_descriptor;
}
public cn.wildfirechat.proto.WFCMessage.InfoEntry getDefaultInstanceForType() {
return cn.wildfirechat.proto.WFCMessage.InfoEntry.getDefaultInstance();
}
public cn.wildfirechat.proto.WFCMessage.InfoEntry build() {
cn.wildfirechat.proto.WFCMessage.InfoEntry result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
public cn.wildfirechat.proto.WFCMessage.InfoEntry buildPartial() {
cn.wildfirechat.proto.WFCMessage.InfoEntry result = new cn.wildfirechat.proto.WFCMessage.InfoEntry(this);
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
if (((from_bitField0_ & 0x00000001) == 0x00000001)) {
to_bitField0_ |= 0x00000001;
}
result.type_ = type_;
if (((from_bitField0_ & 0x00000002) == 0x00000002)) {
to_bitField0_ |= 0x00000002;
}
result.value_ = value_;
result.bitField0_ = to_bitField0_;
onBuilt();
return result;
}
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof cn.wildfirechat.proto.WFCMessage.InfoEntry) {
return mergeFrom((cn.wildfirechat.proto.WFCMessage.InfoEntry)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(cn.wildfirechat.proto.WFCMessage.InfoEntry other) {
if (other == cn.wildfirechat.proto.WFCMessage.InfoEntry.getDefaultInstance()) return this;
if (other.hasType()) {
setType(other.getType());
}
if (other.hasValue()) {
bitField0_ |= 0x00000002;
value_ = other.value_;
onChanged();
}
this.mergeUnknownFields(other.getUnknownFields());
return this;
}
public final boolean isInitialized() {
if (!hasType()) {
return false;
}
if (!hasValue()) {
return false;
}
return true;
}
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
cn.wildfirechat.proto.WFCMessage.InfoEntry parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (cn.wildfirechat.proto.WFCMessage.InfoEntry) e.getUnfinishedMessage();
throw e;
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
// required int32 type = 1;
private int type_ ;
/**
* required int32 type = 1;
*/
public boolean hasType() {
return ((bitField0_ & 0x00000001) == 0x00000001);
}
/**
* required int32 type = 1;
*/
public int getType() {
return type_;
}
/**
* required int32 type = 1;
*/
public Builder setType(int value) {
bitField0_ |= 0x00000001;
type_ = value;
onChanged();
return this;
}
/**
* required int32 type = 1;
*/
public Builder clearType() {
bitField0_ = (bitField0_ & ~0x00000001);
type_ = 0;
onChanged();
return this;
}
// required string value = 2;
private java.lang.Object value_ = "";
/**
* required string value = 2;
*/
public boolean hasValue() {
return ((bitField0_ & 0x00000002) == 0x00000002);
}
/**
* required string value = 2;
*/
public java.lang.String getValue() {
java.lang.Object ref = value_;
if (!(ref instanceof java.lang.String)) {
java.lang.String s = ((com.google.protobuf.ByteString) ref)
.toStringUtf8();
value_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* required string value = 2;
*/
public com.google.protobuf.ByteString
getValueBytes() {
java.lang.Object ref = value_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
value_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* required string value = 2;
*/
public Builder setValue(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000002;
value_ = value;
onChanged();
return this;
}
/**
* required string value = 2;
*/
public Builder clearValue() {
bitField0_ = (bitField0_ & ~0x00000002);
value_ = getDefaultInstance().getValue();
onChanged();
return this;
}
/**
* required string value = 2;
*/
public Builder setValueBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000002;
value_ = value;
onChanged();
return this;
}
// @@protoc_insertion_point(builder_scope:InfoEntry)
}
static {
defaultInstance = new InfoEntry(true);
defaultInstance.initFields();
}
// @@protoc_insertion_point(class_scope:InfoEntry)
}
public interface ModifyMyInfoRequestOrBuilder
extends com.google.protobuf.MessageOrBuilder {
// repeated .InfoEntry entry = 1;
/**
* repeated .InfoEntry entry = 1;
*/
java.util.List
getEntryList();
/**
* repeated .InfoEntry entry = 1;
*/
cn.wildfirechat.proto.WFCMessage.InfoEntry getEntry(int index);
/**
* repeated .InfoEntry entry = 1;
*/
int getEntryCount();
/**
* repeated .InfoEntry entry = 1;
*/
java.util.List extends cn.wildfirechat.proto.WFCMessage.InfoEntryOrBuilder>
getEntryOrBuilderList();
/**
* repeated .InfoEntry entry = 1;
*/
cn.wildfirechat.proto.WFCMessage.InfoEntryOrBuilder getEntryOrBuilder(
int index);
}
/**
* Protobuf type {@code ModifyMyInfoRequest}
*/
public static final class ModifyMyInfoRequest extends
com.google.protobuf.GeneratedMessage
implements ModifyMyInfoRequestOrBuilder {
// Use ModifyMyInfoRequest.newBuilder() to construct.
private ModifyMyInfoRequest(com.google.protobuf.GeneratedMessage.Builder> builder) {
super(builder);
this.unknownFields = builder.getUnknownFields();
}
private ModifyMyInfoRequest(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); }
private static final ModifyMyInfoRequest defaultInstance;
public static ModifyMyInfoRequest getDefaultInstance() {
return defaultInstance;
}
public ModifyMyInfoRequest getDefaultInstanceForType() {
return defaultInstance;
}
private final com.google.protobuf.UnknownFieldSet unknownFields;
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private ModifyMyInfoRequest(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
initFields();
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;
default: {
if (!parseUnknownField(input, unknownFields,
extensionRegistry, tag)) {
done = true;
}
break;
}
case 10: {
if (!((mutable_bitField0_ & 0x00000001) == 0x00000001)) {
entry_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00000001;
}
entry_.add(input.readMessage(cn.wildfirechat.proto.WFCMessage.InfoEntry.PARSER, extensionRegistry));
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e.getMessage()).setUnfinishedMessage(this);
} finally {
if (((mutable_bitField0_ & 0x00000001) == 0x00000001)) {
entry_ = java.util.Collections.unmodifiableList(entry_);
}
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return cn.wildfirechat.proto.WFCMessage.internal_static_ModifyMyInfoRequest_descriptor;
}
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable() {
return cn.wildfirechat.proto.WFCMessage.internal_static_ModifyMyInfoRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
cn.wildfirechat.proto.WFCMessage.ModifyMyInfoRequest.class, cn.wildfirechat.proto.WFCMessage.ModifyMyInfoRequest.Builder.class);
}
public static com.google.protobuf.Parser