// Generated by the protocol buffer compiler. DO NOT EDIT! // source: WAccountForceOfflineNotice.proto package Im.Scrm.Ww.Proto; public final class WAccountForceOfflineNotice { private WAccountForceOfflineNotice() {} public static void registerAllExtensions( com.google.protobuf.ExtensionRegistryLite registry) { } public static void registerAllExtensions( com.google.protobuf.ExtensionRegistry registry) { registerAllExtensions( (com.google.protobuf.ExtensionRegistryLite) registry); } public interface AccountForceOfflineNoticeMessageOrBuilder extends // @@protoc_insertion_point(interface_extends:Im.Scrm.Ww.Proto.AccountForceOfflineNoticeMessage) com.google.protobuf.MessageOrBuilder { /** *
*被强制下线的原因 ** *
.Im.Scrm.Ww.Proto.EnumForceOfflineReason Reason = 1;
* @return The enum numeric value on the wire for reason.
*/
int getReasonValue();
/**
* *被强制下线的原因 ** *
.Im.Scrm.Ww.Proto.EnumForceOfflineReason Reason = 1;
* @return The reason.
*/
Im.Scrm.Ww.Proto.WTransport.EnumForceOfflineReason getReason();
/**
* *补充文字描述 ** *
string Message = 2;
* @return The message.
*/
java.lang.String getMessage();
/**
* *补充文字描述 ** *
string Message = 2;
* @return The bytes for message.
*/
com.google.protobuf.ByteString
getMessageBytes();
/**
* * 设备企业WX号 ** *
int64 WxId = 3;
* @return The wxId.
*/
long getWxId();
}
/**
* Protobuf type {@code Im.Scrm.Ww.Proto.AccountForceOfflineNoticeMessage}
*/
public static final class AccountForceOfflineNoticeMessage extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:Im.Scrm.Ww.Proto.AccountForceOfflineNoticeMessage)
AccountForceOfflineNoticeMessageOrBuilder {
private static final long serialVersionUID = 0L;
// Use AccountForceOfflineNoticeMessage.newBuilder() to construct.
private AccountForceOfflineNoticeMessage(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private AccountForceOfflineNoticeMessage() {
reason_ = 0;
message_ = "";
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new AccountForceOfflineNoticeMessage();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private AccountForceOfflineNoticeMessage(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
this();
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
com.google.protobuf.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 8: {
int rawValue = input.readEnum();
reason_ = rawValue;
break;
}
case 18: {
java.lang.String s = input.readStringRequireUtf8();
message_ = s;
break;
}
case 24: {
wxId_ = input.readInt64();
break;
}
default: {
if (!parseUnknownField(
input, unknownFields, extensionRegistry, tag)) {
done = true;
}
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e).setUnfinishedMessage(this);
} finally {
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return Im.Scrm.Ww.Proto.WAccountForceOfflineNotice.internal_static_Im_Scrm_Ww_Proto_AccountForceOfflineNoticeMessage_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return Im.Scrm.Ww.Proto.WAccountForceOfflineNotice.internal_static_Im_Scrm_Ww_Proto_AccountForceOfflineNoticeMessage_fieldAccessorTable
.ensureFieldAccessorsInitialized(
Im.Scrm.Ww.Proto.WAccountForceOfflineNotice.AccountForceOfflineNoticeMessage.class, Im.Scrm.Ww.Proto.WAccountForceOfflineNotice.AccountForceOfflineNoticeMessage.Builder.class);
}
public static final int REASON_FIELD_NUMBER = 1;
private int reason_;
/**
* *被强制下线的原因 ** *
.Im.Scrm.Ww.Proto.EnumForceOfflineReason Reason = 1;
* @return The enum numeric value on the wire for reason.
*/
public int getReasonValue() {
return reason_;
}
/**
* *被强制下线的原因 ** *
.Im.Scrm.Ww.Proto.EnumForceOfflineReason Reason = 1;
* @return The reason.
*/
public Im.Scrm.Ww.Proto.WTransport.EnumForceOfflineReason getReason() {
@SuppressWarnings("deprecation")
Im.Scrm.Ww.Proto.WTransport.EnumForceOfflineReason result = Im.Scrm.Ww.Proto.WTransport.EnumForceOfflineReason.valueOf(reason_);
return result == null ? Im.Scrm.Ww.Proto.WTransport.EnumForceOfflineReason.UNRECOGNIZED : result;
}
public static final int MESSAGE_FIELD_NUMBER = 2;
private volatile java.lang.Object message_;
/**
* *补充文字描述 ** *
string Message = 2;
* @return The message.
*/
public java.lang.String getMessage() {
java.lang.Object ref = message_;
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();
message_ = s;
return s;
}
}
/**
* *补充文字描述 ** *
string Message = 2;
* @return The bytes for message.
*/
public com.google.protobuf.ByteString
getMessageBytes() {
java.lang.Object ref = message_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
message_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int WXID_FIELD_NUMBER = 3;
private long wxId_;
/**
* * 设备企业WX号 ** *
int64 WxId = 3;
* @return The wxId.
*/
public long getWxId() {
return wxId_;
}
private byte memoizedIsInitialized = -1;
@java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
if (reason_ != Im.Scrm.Ww.Proto.WTransport.EnumForceOfflineReason.NoReason.getNumber()) {
output.writeEnum(1, reason_);
}
if (!getMessageBytes().isEmpty()) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 2, message_);
}
if (wxId_ != 0L) {
output.writeInt64(3, wxId_);
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (reason_ != Im.Scrm.Ww.Proto.WTransport.EnumForceOfflineReason.NoReason.getNumber()) {
size += com.google.protobuf.CodedOutputStream
.computeEnumSize(1, reason_);
}
if (!getMessageBytes().isEmpty()) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, message_);
}
if (wxId_ != 0L) {
size += com.google.protobuf.CodedOutputStream
.computeInt64Size(3, wxId_);
}
size += unknownFields.getSerializedSize();
memoizedSize = size;
return size;
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof Im.Scrm.Ww.Proto.WAccountForceOfflineNotice.AccountForceOfflineNoticeMessage)) {
return super.equals(obj);
}
Im.Scrm.Ww.Proto.WAccountForceOfflineNotice.AccountForceOfflineNoticeMessage other = (Im.Scrm.Ww.Proto.WAccountForceOfflineNotice.AccountForceOfflineNoticeMessage) obj;
if (reason_ != other.reason_) return false;
if (!getMessage()
.equals(other.getMessage())) return false;
if (getWxId()
!= other.getWxId()) return false;
if (!unknownFields.equals(other.unknownFields)) return false;
return true;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
hash = (37 * hash) + REASON_FIELD_NUMBER;
hash = (53 * hash) + reason_;
hash = (37 * hash) + MESSAGE_FIELD_NUMBER;
hash = (53 * hash) + getMessage().hashCode();
hash = (37 * hash) + WXID_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
getWxId());
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static Im.Scrm.Ww.Proto.WAccountForceOfflineNotice.AccountForceOfflineNoticeMessage parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static Im.Scrm.Ww.Proto.WAccountForceOfflineNotice.AccountForceOfflineNoticeMessage parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static Im.Scrm.Ww.Proto.WAccountForceOfflineNotice.AccountForceOfflineNoticeMessage parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static Im.Scrm.Ww.Proto.WAccountForceOfflineNotice.AccountForceOfflineNoticeMessage parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static Im.Scrm.Ww.Proto.WAccountForceOfflineNotice.AccountForceOfflineNoticeMessage parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static Im.Scrm.Ww.Proto.WAccountForceOfflineNotice.AccountForceOfflineNoticeMessage parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static Im.Scrm.Ww.Proto.WAccountForceOfflineNotice.AccountForceOfflineNoticeMessage parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static Im.Scrm.Ww.Proto.WAccountForceOfflineNotice.AccountForceOfflineNoticeMessage parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public static Im.Scrm.Ww.Proto.WAccountForceOfflineNotice.AccountForceOfflineNoticeMessage parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static Im.Scrm.Ww.Proto.WAccountForceOfflineNotice.AccountForceOfflineNoticeMessage parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static Im.Scrm.Ww.Proto.WAccountForceOfflineNotice.AccountForceOfflineNoticeMessage parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static Im.Scrm.Ww.Proto.WAccountForceOfflineNotice.AccountForceOfflineNoticeMessage parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
@java.lang.Override
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
public static Builder newBuilder(Im.Scrm.Ww.Proto.WAccountForceOfflineNotice.AccountForceOfflineNoticeMessage prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
@java.lang.Override
public Builder toBuilder() {
return this == DEFAULT_INSTANCE
? new Builder() : new Builder().mergeFrom(this);
}
@java.lang.Override
protected Builder newBuilderForType(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
* Protobuf type {@code Im.Scrm.Ww.Proto.AccountForceOfflineNoticeMessage}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder*被强制下线的原因 ** *
.Im.Scrm.Ww.Proto.EnumForceOfflineReason Reason = 1;
* @return The enum numeric value on the wire for reason.
*/
public int getReasonValue() {
return reason_;
}
/**
* *被强制下线的原因 ** *
.Im.Scrm.Ww.Proto.EnumForceOfflineReason Reason = 1;
* @param value The enum numeric value on the wire for reason to set.
* @return This builder for chaining.
*/
public Builder setReasonValue(int value) {
reason_ = value;
onChanged();
return this;
}
/**
* *被强制下线的原因 ** *
.Im.Scrm.Ww.Proto.EnumForceOfflineReason Reason = 1;
* @return The reason.
*/
public Im.Scrm.Ww.Proto.WTransport.EnumForceOfflineReason getReason() {
@SuppressWarnings("deprecation")
Im.Scrm.Ww.Proto.WTransport.EnumForceOfflineReason result = Im.Scrm.Ww.Proto.WTransport.EnumForceOfflineReason.valueOf(reason_);
return result == null ? Im.Scrm.Ww.Proto.WTransport.EnumForceOfflineReason.UNRECOGNIZED : result;
}
/**
* *被强制下线的原因 ** *
.Im.Scrm.Ww.Proto.EnumForceOfflineReason Reason = 1;
* @param value The reason to set.
* @return This builder for chaining.
*/
public Builder setReason(Im.Scrm.Ww.Proto.WTransport.EnumForceOfflineReason value) {
if (value == null) {
throw new NullPointerException();
}
reason_ = value.getNumber();
onChanged();
return this;
}
/**
* *被强制下线的原因 ** *
.Im.Scrm.Ww.Proto.EnumForceOfflineReason Reason = 1;
* @return This builder for chaining.
*/
public Builder clearReason() {
reason_ = 0;
onChanged();
return this;
}
private java.lang.Object message_ = "";
/**
* *补充文字描述 ** *
string Message = 2;
* @return The message.
*/
public java.lang.String getMessage() {
java.lang.Object ref = message_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
message_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* *补充文字描述 ** *
string Message = 2;
* @return The bytes for message.
*/
public com.google.protobuf.ByteString
getMessageBytes() {
java.lang.Object ref = message_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
message_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* *补充文字描述 ** *
string Message = 2;
* @param value The message to set.
* @return This builder for chaining.
*/
public Builder setMessage(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
message_ = value;
onChanged();
return this;
}
/**
* *补充文字描述 ** *
string Message = 2;
* @return This builder for chaining.
*/
public Builder clearMessage() {
message_ = getDefaultInstance().getMessage();
onChanged();
return this;
}
/**
* *补充文字描述 ** *
string Message = 2;
* @param value The bytes for message to set.
* @return This builder for chaining.
*/
public Builder setMessageBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
message_ = value;
onChanged();
return this;
}
private long wxId_ ;
/**
* * 设备企业WX号 ** *
int64 WxId = 3;
* @return The wxId.
*/
public long getWxId() {
return wxId_;
}
/**
* * 设备企业WX号 ** *
int64 WxId = 3;
* @param value The wxId to set.
* @return This builder for chaining.
*/
public Builder setWxId(long value) {
wxId_ = value;
onChanged();
return this;
}
/**
* * 设备企业WX号 ** *
int64 WxId = 3;
* @return This builder for chaining.
*/
public Builder clearWxId() {
wxId_ = 0L;
onChanged();
return this;
}
@java.lang.Override
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
}
@java.lang.Override
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:Im.Scrm.Ww.Proto.AccountForceOfflineNoticeMessage)
}
// @@protoc_insertion_point(class_scope:Im.Scrm.Ww.Proto.AccountForceOfflineNoticeMessage)
private static final Im.Scrm.Ww.Proto.WAccountForceOfflineNotice.AccountForceOfflineNoticeMessage DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new Im.Scrm.Ww.Proto.WAccountForceOfflineNotice.AccountForceOfflineNoticeMessage();
}
public static Im.Scrm.Ww.Proto.WAccountForceOfflineNotice.AccountForceOfflineNoticeMessage getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser