LOGIN_REQUEST = 0;
+ */
+ LOGIN_REQUEST(0),
+ /**
+ * LOGIN_RESPONSE = 1;
+ */
+ LOGIN_RESPONSE(1),
+ /**
+ * LOGOUT_REQUEST = 2;
+ */
+ LOGOUT_REQUEST(2),
+ /**
+ * LOGOUT_RESPONSE = 3;
+ */
+ LOGOUT_RESPONSE(3),
+ /**
+ * KEEPALIVE_REQUEST = 4;
+ */
+ KEEPALIVE_REQUEST(4),
+ /**
+ * KEEPALIVE_RESPONSE = 5;
+ */
+ KEEPALIVE_RESPONSE(5),
+ /**
+ * MESSAGE_REQUEST = 6;
+ */
+ MESSAGE_REQUEST(6),
+ /**
+ * MESSAGE_RESPONSE = 7;
+ */
+ MESSAGE_RESPONSE(7),
+ /**
+ * MESSAGE_NOTIFICATION = 8;
+ */
+ MESSAGE_NOTIFICATION(8),
+ UNRECOGNIZED(-1),
+ ;
+
+ /**
+ * LOGIN_REQUEST = 0;
+ */
+ public static final int LOGIN_REQUEST_VALUE = 0;
+ /**
+ * LOGIN_RESPONSE = 1;
+ */
+ public static final int LOGIN_RESPONSE_VALUE = 1;
+ /**
+ * LOGOUT_REQUEST = 2;
+ */
+ public static final int LOGOUT_REQUEST_VALUE = 2;
+ /**
+ * LOGOUT_RESPONSE = 3;
+ */
+ public static final int LOGOUT_RESPONSE_VALUE = 3;
+ /**
+ * KEEPALIVE_REQUEST = 4;
+ */
+ public static final int KEEPALIVE_REQUEST_VALUE = 4;
+ /**
+ * KEEPALIVE_RESPONSE = 5;
+ */
+ public static final int KEEPALIVE_RESPONSE_VALUE = 5;
+ /**
+ * MESSAGE_REQUEST = 6;
+ */
+ public static final int MESSAGE_REQUEST_VALUE = 6;
+ /**
+ * MESSAGE_RESPONSE = 7;
+ */
+ public static final int MESSAGE_RESPONSE_VALUE = 7;
+ /**
+ * MESSAGE_NOTIFICATION = 8;
+ */
+ public static final int MESSAGE_NOTIFICATION_VALUE = 8;
+
+
+ public final int getNumber() {
+ if (this == UNRECOGNIZED) {
+ throw new java.lang.IllegalArgumentException(
+ "Can't get the number of an unknown enum value.");
+ }
+ return value;
+ }
+
+ /**
+ * @deprecated Use {@link #forNumber(int)} instead.
+ */
+ @java.lang.Deprecated
+ public static HeadType valueOf(int value) {
+ return forNumber(value);
+ }
+
+ public static HeadType forNumber(int value) {
+ switch (value) {
+ case 0: return LOGIN_REQUEST;
+ case 1: return LOGIN_RESPONSE;
+ case 2: return LOGOUT_REQUEST;
+ case 3: return LOGOUT_RESPONSE;
+ case 4: return KEEPALIVE_REQUEST;
+ case 5: return KEEPALIVE_RESPONSE;
+ case 6: return MESSAGE_REQUEST;
+ case 7: return MESSAGE_RESPONSE;
+ case 8: return MESSAGE_NOTIFICATION;
+ default: return null;
+ }
+ }
+
+ public static com.google.protobuf.Internal.EnumLiteMapstring uid = 1;
+ */
+ java.lang.String getUid();
+ /**
+ * string uid = 1;
+ */
+ com.google.protobuf.ByteString
+ getUidBytes();
+
+ /**
+ * string deviceId = 2;
+ */
+ java.lang.String getDeviceId();
+ /**
+ * string deviceId = 2;
+ */
+ com.google.protobuf.ByteString
+ getDeviceIdBytes();
+
+ /**
+ * string token = 3;
+ */
+ java.lang.String getToken();
+ /**
+ * string token = 3;
+ */
+ com.google.protobuf.ByteString
+ getTokenBytes();
+
+ /**
+ * uint32 platform = 4;
+ */
+ int getPlatform();
+
+ /**
+ * string app_version = 5;
+ */
+ java.lang.String getAppVersion();
+ /**
+ * string app_version = 5;
+ */
+ com.google.protobuf.ByteString
+ getAppVersionBytes();
+ }
+ /**
+ * Protobuf type {@code com.zpf.im.common.bean.msg.LoginRequest}
+ */
+ public static final class LoginRequest extends
+ com.google.protobuf.GeneratedMessageV3 implements
+ // @@protoc_insertion_point(message_implements:com.zpf.im.common.bean.msg.LoginRequest)
+ LoginRequestOrBuilder {
+ private static final long serialVersionUID = 0L;
+ // Use LoginRequest.newBuilder() to construct.
+ private LoginRequest(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
+ super(builder);
+ }
+ private LoginRequest() {
+ uid_ = "";
+ deviceId_ = "";
+ token_ = "";
+ platform_ = 0;
+ appVersion_ = "";
+ }
+
+ @java.lang.Override
+ public final com.google.protobuf.UnknownFieldSet
+ getUnknownFields() {
+ return this.unknownFields;
+ }
+ private LoginRequest(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ this();
+ if (extensionRegistry == null) {
+ throw new java.lang.NullPointerException();
+ }
+ int mutable_bitField0_ = 0;
+ com.google.protobuf.UnknownFieldSet.Builder unknownFields =
+ com.google.protobuf.UnknownFieldSet.newBuilder();
+ try {
+ boolean done = false;
+ while (!done) {
+ int tag = input.readTag();
+ switch (tag) {
+ case 0:
+ done = true;
+ break;
+ case 10: {
+ java.lang.String s = input.readStringRequireUtf8();
+
+ uid_ = s;
+ break;
+ }
+ case 18: {
+ java.lang.String s = input.readStringRequireUtf8();
+
+ deviceId_ = s;
+ break;
+ }
+ case 26: {
+ java.lang.String s = input.readStringRequireUtf8();
+
+ token_ = s;
+ break;
+ }
+ case 32: {
+
+ platform_ = input.readUInt32();
+ break;
+ }
+ case 42: {
+ java.lang.String s = input.readStringRequireUtf8();
+
+ appVersion_ = s;
+ break;
+ }
+ default: {
+ if (!parseUnknownFieldProto3(
+ 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 com.zpf.im.common.bean.msg.ProtoMsg.internal_static_com_zpf_im_common_bean_msg_LoginRequest_descriptor;
+ }
+
+ @java.lang.Override
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internalGetFieldAccessorTable() {
+ return com.zpf.im.common.bean.msg.ProtoMsg.internal_static_com_zpf_im_common_bean_msg_LoginRequest_fieldAccessorTable
+ .ensureFieldAccessorsInitialized(
+ com.zpf.im.common.bean.msg.ProtoMsg.LoginRequest.class, com.zpf.im.common.bean.msg.ProtoMsg.LoginRequest.Builder.class);
+ }
+
+ public static final int UID_FIELD_NUMBER = 1;
+ private volatile java.lang.Object uid_;
+ /**
+ * 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();
+ uid_ = s;
+ return s;
+ }
+ }
+ /**
+ * 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;
+ }
+ }
+
+ public static final int DEVICEID_FIELD_NUMBER = 2;
+ private volatile java.lang.Object deviceId_;
+ /**
+ * string deviceId = 2;
+ */
+ public java.lang.String getDeviceId() {
+ java.lang.Object ref = deviceId_;
+ 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();
+ deviceId_ = s;
+ return s;
+ }
+ }
+ /**
+ * string deviceId = 2;
+ */
+ public com.google.protobuf.ByteString
+ getDeviceIdBytes() {
+ java.lang.Object ref = deviceId_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8(
+ (java.lang.String) ref);
+ deviceId_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ public static final int TOKEN_FIELD_NUMBER = 3;
+ private volatile java.lang.Object token_;
+ /**
+ * string token = 3;
+ */
+ 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();
+ token_ = s;
+ return s;
+ }
+ }
+ /**
+ * string token = 3;
+ */
+ 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;
+ }
+ }
+
+ public static final int PLATFORM_FIELD_NUMBER = 4;
+ private int platform_;
+ /**
+ * uint32 platform = 4;
+ */
+ public int getPlatform() {
+ return platform_;
+ }
+
+ public static final int APP_VERSION_FIELD_NUMBER = 5;
+ private volatile java.lang.Object appVersion_;
+ /**
+ * string app_version = 5;
+ */
+ public java.lang.String getAppVersion() {
+ java.lang.Object ref = appVersion_;
+ 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();
+ appVersion_ = s;
+ return s;
+ }
+ }
+ /**
+ * string app_version = 5;
+ */
+ public com.google.protobuf.ByteString
+ getAppVersionBytes() {
+ java.lang.Object ref = appVersion_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8(
+ (java.lang.String) ref);
+ appVersion_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ 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 (!getUidBytes().isEmpty()) {
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 1, uid_);
+ }
+ if (!getDeviceIdBytes().isEmpty()) {
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 2, deviceId_);
+ }
+ if (!getTokenBytes().isEmpty()) {
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 3, token_);
+ }
+ if (platform_ != 0) {
+ output.writeUInt32(4, platform_);
+ }
+ if (!getAppVersionBytes().isEmpty()) {
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 5, appVersion_);
+ }
+ unknownFields.writeTo(output);
+ }
+
+ @java.lang.Override
+ public int getSerializedSize() {
+ int size = memoizedSize;
+ if (size != -1) return size;
+
+ size = 0;
+ if (!getUidBytes().isEmpty()) {
+ size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, uid_);
+ }
+ if (!getDeviceIdBytes().isEmpty()) {
+ size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, deviceId_);
+ }
+ if (!getTokenBytes().isEmpty()) {
+ size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, token_);
+ }
+ if (platform_ != 0) {
+ size += com.google.protobuf.CodedOutputStream
+ .computeUInt32Size(4, platform_);
+ }
+ if (!getAppVersionBytes().isEmpty()) {
+ size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, appVersion_);
+ }
+ 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 com.zpf.im.common.bean.msg.ProtoMsg.LoginRequest)) {
+ return super.equals(obj);
+ }
+ com.zpf.im.common.bean.msg.ProtoMsg.LoginRequest other = (com.zpf.im.common.bean.msg.ProtoMsg.LoginRequest) obj;
+
+ boolean result = true;
+ result = result && getUid()
+ .equals(other.getUid());
+ result = result && getDeviceId()
+ .equals(other.getDeviceId());
+ result = result && getToken()
+ .equals(other.getToken());
+ result = result && (getPlatform()
+ == other.getPlatform());
+ result = result && getAppVersion()
+ .equals(other.getAppVersion());
+ result = result && unknownFields.equals(other.unknownFields);
+ return result;
+ }
+
+ @java.lang.Override
+ public int hashCode() {
+ if (memoizedHashCode != 0) {
+ return memoizedHashCode;
+ }
+ int hash = 41;
+ hash = (19 * hash) + getDescriptor().hashCode();
+ hash = (37 * hash) + UID_FIELD_NUMBER;
+ hash = (53 * hash) + getUid().hashCode();
+ hash = (37 * hash) + DEVICEID_FIELD_NUMBER;
+ hash = (53 * hash) + getDeviceId().hashCode();
+ hash = (37 * hash) + TOKEN_FIELD_NUMBER;
+ hash = (53 * hash) + getToken().hashCode();
+ hash = (37 * hash) + PLATFORM_FIELD_NUMBER;
+ hash = (53 * hash) + getPlatform();
+ hash = (37 * hash) + APP_VERSION_FIELD_NUMBER;
+ hash = (53 * hash) + getAppVersion().hashCode();
+ hash = (29 * hash) + unknownFields.hashCode();
+ memoizedHashCode = hash;
+ return hash;
+ }
+
+ public static com.zpf.im.common.bean.msg.ProtoMsg.LoginRequest parseFrom(
+ java.nio.ByteBuffer data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static com.zpf.im.common.bean.msg.ProtoMsg.LoginRequest parseFrom(
+ java.nio.ByteBuffer data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static com.zpf.im.common.bean.msg.ProtoMsg.LoginRequest parseFrom(
+ com.google.protobuf.ByteString data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static com.zpf.im.common.bean.msg.ProtoMsg.LoginRequest parseFrom(
+ com.google.protobuf.ByteString data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static com.zpf.im.common.bean.msg.ProtoMsg.LoginRequest parseFrom(byte[] data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static com.zpf.im.common.bean.msg.ProtoMsg.LoginRequest parseFrom(
+ byte[] data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static com.zpf.im.common.bean.msg.ProtoMsg.LoginRequest parseFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input);
+ }
+ public static com.zpf.im.common.bean.msg.ProtoMsg.LoginRequest 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 com.zpf.im.common.bean.msg.ProtoMsg.LoginRequest parseDelimitedFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseDelimitedWithIOException(PARSER, input);
+ }
+ public static com.zpf.im.common.bean.msg.ProtoMsg.LoginRequest 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 com.zpf.im.common.bean.msg.ProtoMsg.LoginRequest parseFrom(
+ com.google.protobuf.CodedInputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input);
+ }
+ public static com.zpf.im.common.bean.msg.ProtoMsg.LoginRequest 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(com.zpf.im.common.bean.msg.ProtoMsg.LoginRequest 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 com.zpf.im.common.bean.msg.LoginRequest}
+ */
+ public static final class Builder extends
+ com.google.protobuf.GeneratedMessageV3.Builderstring uid = 1;
+ */
+ public java.lang.String getUid() {
+ java.lang.Object ref = uid_;
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs =
+ (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ uid_ = s;
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+ /**
+ * 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;
+ }
+ }
+ /**
+ * string uid = 1;
+ */
+ public Builder setUid(
+ java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+
+ uid_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ * string uid = 1;
+ */
+ public Builder clearUid() {
+
+ uid_ = getDefaultInstance().getUid();
+ onChanged();
+ return this;
+ }
+ /**
+ * string uid = 1;
+ */
+ public Builder setUidBytes(
+ com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ checkByteStringIsUtf8(value);
+
+ uid_ = value;
+ onChanged();
+ return this;
+ }
+
+ private java.lang.Object deviceId_ = "";
+ /**
+ * string deviceId = 2;
+ */
+ public java.lang.String getDeviceId() {
+ java.lang.Object ref = deviceId_;
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs =
+ (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ deviceId_ = s;
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+ /**
+ * string deviceId = 2;
+ */
+ public com.google.protobuf.ByteString
+ getDeviceIdBytes() {
+ java.lang.Object ref = deviceId_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8(
+ (java.lang.String) ref);
+ deviceId_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+ /**
+ * string deviceId = 2;
+ */
+ public Builder setDeviceId(
+ java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+
+ deviceId_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ * string deviceId = 2;
+ */
+ public Builder clearDeviceId() {
+
+ deviceId_ = getDefaultInstance().getDeviceId();
+ onChanged();
+ return this;
+ }
+ /**
+ * string deviceId = 2;
+ */
+ public Builder setDeviceIdBytes(
+ com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ checkByteStringIsUtf8(value);
+
+ deviceId_ = value;
+ onChanged();
+ return this;
+ }
+
+ private java.lang.Object token_ = "";
+ /**
+ * string token = 3;
+ */
+ public java.lang.String getToken() {
+ java.lang.Object ref = token_;
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs =
+ (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ token_ = s;
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+ /**
+ * string token = 3;
+ */
+ 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;
+ }
+ }
+ /**
+ * string token = 3;
+ */
+ public Builder setToken(
+ java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+
+ token_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ * string token = 3;
+ */
+ public Builder clearToken() {
+
+ token_ = getDefaultInstance().getToken();
+ onChanged();
+ return this;
+ }
+ /**
+ * string token = 3;
+ */
+ public Builder setTokenBytes(
+ com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ checkByteStringIsUtf8(value);
+
+ token_ = value;
+ onChanged();
+ return this;
+ }
+
+ private int platform_ ;
+ /**
+ * uint32 platform = 4;
+ */
+ public int getPlatform() {
+ return platform_;
+ }
+ /**
+ * uint32 platform = 4;
+ */
+ public Builder setPlatform(int value) {
+
+ platform_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ * uint32 platform = 4;
+ */
+ public Builder clearPlatform() {
+
+ platform_ = 0;
+ onChanged();
+ return this;
+ }
+
+ private java.lang.Object appVersion_ = "";
+ /**
+ * string app_version = 5;
+ */
+ public java.lang.String getAppVersion() {
+ java.lang.Object ref = appVersion_;
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs =
+ (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ appVersion_ = s;
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+ /**
+ * string app_version = 5;
+ */
+ public com.google.protobuf.ByteString
+ getAppVersionBytes() {
+ java.lang.Object ref = appVersion_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8(
+ (java.lang.String) ref);
+ appVersion_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+ /**
+ * string app_version = 5;
+ */
+ public Builder setAppVersion(
+ java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+
+ appVersion_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ * string app_version = 5;
+ */
+ public Builder clearAppVersion() {
+
+ appVersion_ = getDefaultInstance().getAppVersion();
+ onChanged();
+ return this;
+ }
+ /**
+ * string app_version = 5;
+ */
+ public Builder setAppVersionBytes(
+ com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ checkByteStringIsUtf8(value);
+
+ appVersion_ = value;
+ onChanged();
+ return this;
+ }
+ @java.lang.Override
+ public final Builder setUnknownFields(
+ final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.setUnknownFieldsProto3(unknownFields);
+ }
+
+ @java.lang.Override
+ public final Builder mergeUnknownFields(
+ final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.mergeUnknownFields(unknownFields);
+ }
+
+
+ // @@protoc_insertion_point(builder_scope:com.zpf.im.common.bean.msg.LoginRequest)
+ }
+
+ // @@protoc_insertion_point(class_scope:com.zpf.im.common.bean.msg.LoginRequest)
+ private static final com.zpf.im.common.bean.msg.ProtoMsg.LoginRequest DEFAULT_INSTANCE;
+ static {
+ DEFAULT_INSTANCE = new com.zpf.im.common.bean.msg.ProtoMsg.LoginRequest();
+ }
+
+ public static com.zpf.im.common.bean.msg.ProtoMsg.LoginRequest getDefaultInstance() {
+ return DEFAULT_INSTANCE;
+ }
+
+ private static final com.google.protobuf.Parserbool result = 1;
+ */
+ boolean getResult();
+
+ /**
+ * uint32 code = 2;
+ */
+ int getCode();
+
+ /**
+ * string info = 3;
+ */
+ java.lang.String getInfo();
+ /**
+ * string info = 3;
+ */
+ com.google.protobuf.ByteString
+ getInfoBytes();
+
+ /**
+ * uint32 expose = 4;
+ */
+ int getExpose();
+ }
+ /**
+ * Protobuf type {@code com.zpf.im.common.bean.msg.LoginResponse}
+ */
+ public static final class LoginResponse extends
+ com.google.protobuf.GeneratedMessageV3 implements
+ // @@protoc_insertion_point(message_implements:com.zpf.im.common.bean.msg.LoginResponse)
+ LoginResponseOrBuilder {
+ private static final long serialVersionUID = 0L;
+ // Use LoginResponse.newBuilder() to construct.
+ private LoginResponse(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
+ super(builder);
+ }
+ private LoginResponse() {
+ result_ = false;
+ code_ = 0;
+ info_ = "";
+ expose_ = 0;
+ }
+
+ @java.lang.Override
+ public final com.google.protobuf.UnknownFieldSet
+ getUnknownFields() {
+ return this.unknownFields;
+ }
+ private LoginResponse(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ this();
+ if (extensionRegistry == null) {
+ throw new java.lang.NullPointerException();
+ }
+ int mutable_bitField0_ = 0;
+ com.google.protobuf.UnknownFieldSet.Builder unknownFields =
+ com.google.protobuf.UnknownFieldSet.newBuilder();
+ try {
+ boolean done = false;
+ while (!done) {
+ int tag = input.readTag();
+ switch (tag) {
+ case 0:
+ done = true;
+ break;
+ case 8: {
+
+ result_ = input.readBool();
+ break;
+ }
+ case 16: {
+
+ code_ = input.readUInt32();
+ break;
+ }
+ case 26: {
+ java.lang.String s = input.readStringRequireUtf8();
+
+ info_ = s;
+ break;
+ }
+ case 32: {
+
+ expose_ = input.readUInt32();
+ break;
+ }
+ default: {
+ if (!parseUnknownFieldProto3(
+ 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 com.zpf.im.common.bean.msg.ProtoMsg.internal_static_com_zpf_im_common_bean_msg_LoginResponse_descriptor;
+ }
+
+ @java.lang.Override
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internalGetFieldAccessorTable() {
+ return com.zpf.im.common.bean.msg.ProtoMsg.internal_static_com_zpf_im_common_bean_msg_LoginResponse_fieldAccessorTable
+ .ensureFieldAccessorsInitialized(
+ com.zpf.im.common.bean.msg.ProtoMsg.LoginResponse.class, com.zpf.im.common.bean.msg.ProtoMsg.LoginResponse.Builder.class);
+ }
+
+ public static final int RESULT_FIELD_NUMBER = 1;
+ private boolean result_;
+ /**
+ * bool result = 1;
+ */
+ public boolean getResult() {
+ return result_;
+ }
+
+ public static final int CODE_FIELD_NUMBER = 2;
+ private int code_;
+ /**
+ * uint32 code = 2;
+ */
+ public int getCode() {
+ return code_;
+ }
+
+ public static final int INFO_FIELD_NUMBER = 3;
+ private volatile java.lang.Object info_;
+ /**
+ * string info = 3;
+ */
+ public java.lang.String getInfo() {
+ java.lang.Object ref = info_;
+ 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();
+ info_ = s;
+ return s;
+ }
+ }
+ /**
+ * string info = 3;
+ */
+ public com.google.protobuf.ByteString
+ getInfoBytes() {
+ java.lang.Object ref = info_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8(
+ (java.lang.String) ref);
+ info_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ public static final int EXPOSE_FIELD_NUMBER = 4;
+ private int expose_;
+ /**
+ * uint32 expose = 4;
+ */
+ public int getExpose() {
+ return expose_;
+ }
+
+ 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 (result_ != false) {
+ output.writeBool(1, result_);
+ }
+ if (code_ != 0) {
+ output.writeUInt32(2, code_);
+ }
+ if (!getInfoBytes().isEmpty()) {
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 3, info_);
+ }
+ if (expose_ != 0) {
+ output.writeUInt32(4, expose_);
+ }
+ unknownFields.writeTo(output);
+ }
+
+ @java.lang.Override
+ public int getSerializedSize() {
+ int size = memoizedSize;
+ if (size != -1) return size;
+
+ size = 0;
+ if (result_ != false) {
+ size += com.google.protobuf.CodedOutputStream
+ .computeBoolSize(1, result_);
+ }
+ if (code_ != 0) {
+ size += com.google.protobuf.CodedOutputStream
+ .computeUInt32Size(2, code_);
+ }
+ if (!getInfoBytes().isEmpty()) {
+ size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, info_);
+ }
+ if (expose_ != 0) {
+ size += com.google.protobuf.CodedOutputStream
+ .computeUInt32Size(4, expose_);
+ }
+ 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 com.zpf.im.common.bean.msg.ProtoMsg.LoginResponse)) {
+ return super.equals(obj);
+ }
+ com.zpf.im.common.bean.msg.ProtoMsg.LoginResponse other = (com.zpf.im.common.bean.msg.ProtoMsg.LoginResponse) obj;
+
+ boolean result = true;
+ result = result && (getResult()
+ == other.getResult());
+ result = result && (getCode()
+ == other.getCode());
+ result = result && getInfo()
+ .equals(other.getInfo());
+ result = result && (getExpose()
+ == other.getExpose());
+ result = result && unknownFields.equals(other.unknownFields);
+ return result;
+ }
+
+ @java.lang.Override
+ public int hashCode() {
+ if (memoizedHashCode != 0) {
+ return memoizedHashCode;
+ }
+ int hash = 41;
+ hash = (19 * hash) + getDescriptor().hashCode();
+ hash = (37 * hash) + RESULT_FIELD_NUMBER;
+ hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
+ getResult());
+ hash = (37 * hash) + CODE_FIELD_NUMBER;
+ hash = (53 * hash) + getCode();
+ hash = (37 * hash) + INFO_FIELD_NUMBER;
+ hash = (53 * hash) + getInfo().hashCode();
+ hash = (37 * hash) + EXPOSE_FIELD_NUMBER;
+ hash = (53 * hash) + getExpose();
+ hash = (29 * hash) + unknownFields.hashCode();
+ memoizedHashCode = hash;
+ return hash;
+ }
+
+ public static com.zpf.im.common.bean.msg.ProtoMsg.LoginResponse parseFrom(
+ java.nio.ByteBuffer data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static com.zpf.im.common.bean.msg.ProtoMsg.LoginResponse parseFrom(
+ java.nio.ByteBuffer data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static com.zpf.im.common.bean.msg.ProtoMsg.LoginResponse parseFrom(
+ com.google.protobuf.ByteString data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static com.zpf.im.common.bean.msg.ProtoMsg.LoginResponse parseFrom(
+ com.google.protobuf.ByteString data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static com.zpf.im.common.bean.msg.ProtoMsg.LoginResponse parseFrom(byte[] data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static com.zpf.im.common.bean.msg.ProtoMsg.LoginResponse parseFrom(
+ byte[] data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static com.zpf.im.common.bean.msg.ProtoMsg.LoginResponse parseFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input);
+ }
+ public static com.zpf.im.common.bean.msg.ProtoMsg.LoginResponse 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 com.zpf.im.common.bean.msg.ProtoMsg.LoginResponse parseDelimitedFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseDelimitedWithIOException(PARSER, input);
+ }
+ public static com.zpf.im.common.bean.msg.ProtoMsg.LoginResponse 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 com.zpf.im.common.bean.msg.ProtoMsg.LoginResponse parseFrom(
+ com.google.protobuf.CodedInputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input);
+ }
+ public static com.zpf.im.common.bean.msg.ProtoMsg.LoginResponse 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(com.zpf.im.common.bean.msg.ProtoMsg.LoginResponse 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 com.zpf.im.common.bean.msg.LoginResponse}
+ */
+ public static final class Builder extends
+ com.google.protobuf.GeneratedMessageV3.Builderbool result = 1;
+ */
+ public boolean getResult() {
+ return result_;
+ }
+ /**
+ * bool result = 1;
+ */
+ public Builder setResult(boolean value) {
+
+ result_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ * bool result = 1;
+ */
+ public Builder clearResult() {
+
+ result_ = false;
+ onChanged();
+ return this;
+ }
+
+ private int code_ ;
+ /**
+ * uint32 code = 2;
+ */
+ public int getCode() {
+ return code_;
+ }
+ /**
+ * uint32 code = 2;
+ */
+ public Builder setCode(int value) {
+
+ code_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ * uint32 code = 2;
+ */
+ public Builder clearCode() {
+
+ code_ = 0;
+ onChanged();
+ return this;
+ }
+
+ private java.lang.Object info_ = "";
+ /**
+ * string info = 3;
+ */
+ public java.lang.String getInfo() {
+ java.lang.Object ref = info_;
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs =
+ (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ info_ = s;
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+ /**
+ * string info = 3;
+ */
+ public com.google.protobuf.ByteString
+ getInfoBytes() {
+ java.lang.Object ref = info_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8(
+ (java.lang.String) ref);
+ info_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+ /**
+ * string info = 3;
+ */
+ public Builder setInfo(
+ java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+
+ info_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ * string info = 3;
+ */
+ public Builder clearInfo() {
+
+ info_ = getDefaultInstance().getInfo();
+ onChanged();
+ return this;
+ }
+ /**
+ * string info = 3;
+ */
+ public Builder setInfoBytes(
+ com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ checkByteStringIsUtf8(value);
+
+ info_ = value;
+ onChanged();
+ return this;
+ }
+
+ private int expose_ ;
+ /**
+ * uint32 expose = 4;
+ */
+ public int getExpose() {
+ return expose_;
+ }
+ /**
+ * uint32 expose = 4;
+ */
+ public Builder setExpose(int value) {
+
+ expose_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ * uint32 expose = 4;
+ */
+ public Builder clearExpose() {
+
+ expose_ = 0;
+ onChanged();
+ return this;
+ }
+ @java.lang.Override
+ public final Builder setUnknownFields(
+ final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.setUnknownFieldsProto3(unknownFields);
+ }
+
+ @java.lang.Override
+ public final Builder mergeUnknownFields(
+ final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.mergeUnknownFields(unknownFields);
+ }
+
+
+ // @@protoc_insertion_point(builder_scope:com.zpf.im.common.bean.msg.LoginResponse)
+ }
+
+ // @@protoc_insertion_point(class_scope:com.zpf.im.common.bean.msg.LoginResponse)
+ private static final com.zpf.im.common.bean.msg.ProtoMsg.LoginResponse DEFAULT_INSTANCE;
+ static {
+ DEFAULT_INSTANCE = new com.zpf.im.common.bean.msg.ProtoMsg.LoginResponse();
+ }
+
+ public static com.zpf.im.common.bean.msg.ProtoMsg.LoginResponse getDefaultInstance() {
+ return DEFAULT_INSTANCE;
+ }
+
+ private static final com.google.protobuf.Parseruint64 msg_id = 1;
+ */
+ long getMsgId();
+
+ /**
+ * string from = 2;
+ */
+ java.lang.String getFrom();
+ /**
+ * string from = 2;
+ */
+ com.google.protobuf.ByteString
+ getFromBytes();
+
+ /**
+ * string to = 3;
+ */
+ java.lang.String getTo();
+ /**
+ * string to = 3;
+ */
+ com.google.protobuf.ByteString
+ getToBytes();
+
+ /**
+ * uint64 time = 4;
+ */
+ long getTime();
+
+ /**
+ * uint32 msg_type = 5;
+ */
+ int getMsgType();
+
+ /**
+ * string content = 6;
+ */
+ java.lang.String getContent();
+ /**
+ * string content = 6;
+ */
+ com.google.protobuf.ByteString
+ getContentBytes();
+
+ /**
+ * string url = 8;
+ */
+ java.lang.String getUrl();
+ /**
+ * string url = 8;
+ */
+ com.google.protobuf.ByteString
+ getUrlBytes();
+
+ /**
+ * string property = 9;
+ */
+ java.lang.String getProperty();
+ /**
+ * string property = 9;
+ */
+ com.google.protobuf.ByteString
+ getPropertyBytes();
+
+ /**
+ * string from_nick = 10;
+ */
+ java.lang.String getFromNick();
+ /**
+ * string from_nick = 10;
+ */
+ com.google.protobuf.ByteString
+ getFromNickBytes();
+
+ /**
+ * string json = 11;
+ */
+ java.lang.String getJson();
+ /**
+ * string json = 11;
+ */
+ com.google.protobuf.ByteString
+ getJsonBytes();
+ }
+ /**
+ * Protobuf type {@code com.zpf.im.common.bean.msg.MessageRequest}
+ */
+ public static final class MessageRequest extends
+ com.google.protobuf.GeneratedMessageV3 implements
+ // @@protoc_insertion_point(message_implements:com.zpf.im.common.bean.msg.MessageRequest)
+ MessageRequestOrBuilder {
+ private static final long serialVersionUID = 0L;
+ // Use MessageRequest.newBuilder() to construct.
+ private MessageRequest(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
+ super(builder);
+ }
+ private MessageRequest() {
+ msgId_ = 0L;
+ from_ = "";
+ to_ = "";
+ time_ = 0L;
+ msgType_ = 0;
+ content_ = "";
+ url_ = "";
+ property_ = "";
+ fromNick_ = "";
+ json_ = "";
+ }
+
+ @java.lang.Override
+ public final com.google.protobuf.UnknownFieldSet
+ getUnknownFields() {
+ return this.unknownFields;
+ }
+ private MessageRequest(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ this();
+ if (extensionRegistry == null) {
+ throw new java.lang.NullPointerException();
+ }
+ int mutable_bitField0_ = 0;
+ com.google.protobuf.UnknownFieldSet.Builder unknownFields =
+ com.google.protobuf.UnknownFieldSet.newBuilder();
+ try {
+ boolean done = false;
+ while (!done) {
+ int tag = input.readTag();
+ switch (tag) {
+ case 0:
+ done = true;
+ break;
+ case 8: {
+
+ msgId_ = input.readUInt64();
+ break;
+ }
+ case 18: {
+ java.lang.String s = input.readStringRequireUtf8();
+
+ from_ = s;
+ break;
+ }
+ case 26: {
+ java.lang.String s = input.readStringRequireUtf8();
+
+ to_ = s;
+ break;
+ }
+ case 32: {
+
+ time_ = input.readUInt64();
+ break;
+ }
+ case 40: {
+
+ msgType_ = input.readUInt32();
+ break;
+ }
+ case 50: {
+ java.lang.String s = input.readStringRequireUtf8();
+
+ content_ = s;
+ break;
+ }
+ case 66: {
+ java.lang.String s = input.readStringRequireUtf8();
+
+ url_ = s;
+ break;
+ }
+ case 74: {
+ java.lang.String s = input.readStringRequireUtf8();
+
+ property_ = s;
+ break;
+ }
+ case 82: {
+ java.lang.String s = input.readStringRequireUtf8();
+
+ fromNick_ = s;
+ break;
+ }
+ case 90: {
+ java.lang.String s = input.readStringRequireUtf8();
+
+ json_ = s;
+ break;
+ }
+ default: {
+ if (!parseUnknownFieldProto3(
+ 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 com.zpf.im.common.bean.msg.ProtoMsg.internal_static_com_zpf_im_common_bean_msg_MessageRequest_descriptor;
+ }
+
+ @java.lang.Override
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internalGetFieldAccessorTable() {
+ return com.zpf.im.common.bean.msg.ProtoMsg.internal_static_com_zpf_im_common_bean_msg_MessageRequest_fieldAccessorTable
+ .ensureFieldAccessorsInitialized(
+ com.zpf.im.common.bean.msg.ProtoMsg.MessageRequest.class, com.zpf.im.common.bean.msg.ProtoMsg.MessageRequest.Builder.class);
+ }
+
+ public static final int MSG_ID_FIELD_NUMBER = 1;
+ private long msgId_;
+ /**
+ * uint64 msg_id = 1;
+ */
+ public long getMsgId() {
+ return msgId_;
+ }
+
+ public static final int FROM_FIELD_NUMBER = 2;
+ private volatile java.lang.Object from_;
+ /**
+ * string from = 2;
+ */
+ public java.lang.String getFrom() {
+ java.lang.Object ref = from_;
+ 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();
+ from_ = s;
+ return s;
+ }
+ }
+ /**
+ * string from = 2;
+ */
+ public com.google.protobuf.ByteString
+ getFromBytes() {
+ java.lang.Object ref = from_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8(
+ (java.lang.String) ref);
+ from_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ public static final int TO_FIELD_NUMBER = 3;
+ private volatile java.lang.Object to_;
+ /**
+ * string to = 3;
+ */
+ public java.lang.String getTo() {
+ java.lang.Object ref = to_;
+ 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();
+ to_ = s;
+ return s;
+ }
+ }
+ /**
+ * string to = 3;
+ */
+ public com.google.protobuf.ByteString
+ getToBytes() {
+ java.lang.Object ref = to_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8(
+ (java.lang.String) ref);
+ to_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ public static final int TIME_FIELD_NUMBER = 4;
+ private long time_;
+ /**
+ * uint64 time = 4;
+ */
+ public long getTime() {
+ return time_;
+ }
+
+ public static final int MSG_TYPE_FIELD_NUMBER = 5;
+ private int msgType_;
+ /**
+ * uint32 msg_type = 5;
+ */
+ public int getMsgType() {
+ return msgType_;
+ }
+
+ public static final int CONTENT_FIELD_NUMBER = 6;
+ private volatile java.lang.Object content_;
+ /**
+ * string content = 6;
+ */
+ 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();
+ content_ = s;
+ return s;
+ }
+ }
+ /**
+ * string content = 6;
+ */
+ 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;
+ }
+ }
+
+ public static final int URL_FIELD_NUMBER = 8;
+ private volatile java.lang.Object url_;
+ /**
+ * string url = 8;
+ */
+ public java.lang.String getUrl() {
+ java.lang.Object ref = url_;
+ 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();
+ url_ = s;
+ return s;
+ }
+ }
+ /**
+ * string url = 8;
+ */
+ public com.google.protobuf.ByteString
+ getUrlBytes() {
+ java.lang.Object ref = url_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8(
+ (java.lang.String) ref);
+ url_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ public static final int PROPERTY_FIELD_NUMBER = 9;
+ private volatile java.lang.Object property_;
+ /**
+ * string property = 9;
+ */
+ public java.lang.String getProperty() {
+ java.lang.Object ref = property_;
+ 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();
+ property_ = s;
+ return s;
+ }
+ }
+ /**
+ * string property = 9;
+ */
+ public com.google.protobuf.ByteString
+ getPropertyBytes() {
+ java.lang.Object ref = property_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8(
+ (java.lang.String) ref);
+ property_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ public static final int FROM_NICK_FIELD_NUMBER = 10;
+ private volatile java.lang.Object fromNick_;
+ /**
+ * string from_nick = 10;
+ */
+ public java.lang.String getFromNick() {
+ java.lang.Object ref = fromNick_;
+ 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();
+ fromNick_ = s;
+ return s;
+ }
+ }
+ /**
+ * string from_nick = 10;
+ */
+ public com.google.protobuf.ByteString
+ getFromNickBytes() {
+ java.lang.Object ref = fromNick_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8(
+ (java.lang.String) ref);
+ fromNick_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ public static final int JSON_FIELD_NUMBER = 11;
+ private volatile java.lang.Object json_;
+ /**
+ * string json = 11;
+ */
+ public java.lang.String getJson() {
+ java.lang.Object ref = json_;
+ 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();
+ json_ = s;
+ return s;
+ }
+ }
+ /**
+ * string json = 11;
+ */
+ public com.google.protobuf.ByteString
+ getJsonBytes() {
+ java.lang.Object ref = json_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8(
+ (java.lang.String) ref);
+ json_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ 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 (msgId_ != 0L) {
+ output.writeUInt64(1, msgId_);
+ }
+ if (!getFromBytes().isEmpty()) {
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 2, from_);
+ }
+ if (!getToBytes().isEmpty()) {
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 3, to_);
+ }
+ if (time_ != 0L) {
+ output.writeUInt64(4, time_);
+ }
+ if (msgType_ != 0) {
+ output.writeUInt32(5, msgType_);
+ }
+ if (!getContentBytes().isEmpty()) {
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 6, content_);
+ }
+ if (!getUrlBytes().isEmpty()) {
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 8, url_);
+ }
+ if (!getPropertyBytes().isEmpty()) {
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 9, property_);
+ }
+ if (!getFromNickBytes().isEmpty()) {
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 10, fromNick_);
+ }
+ if (!getJsonBytes().isEmpty()) {
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 11, json_);
+ }
+ unknownFields.writeTo(output);
+ }
+
+ @java.lang.Override
+ public int getSerializedSize() {
+ int size = memoizedSize;
+ if (size != -1) return size;
+
+ size = 0;
+ if (msgId_ != 0L) {
+ size += com.google.protobuf.CodedOutputStream
+ .computeUInt64Size(1, msgId_);
+ }
+ if (!getFromBytes().isEmpty()) {
+ size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, from_);
+ }
+ if (!getToBytes().isEmpty()) {
+ size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, to_);
+ }
+ if (time_ != 0L) {
+ size += com.google.protobuf.CodedOutputStream
+ .computeUInt64Size(4, time_);
+ }
+ if (msgType_ != 0) {
+ size += com.google.protobuf.CodedOutputStream
+ .computeUInt32Size(5, msgType_);
+ }
+ if (!getContentBytes().isEmpty()) {
+ size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, content_);
+ }
+ if (!getUrlBytes().isEmpty()) {
+ size += com.google.protobuf.GeneratedMessageV3.computeStringSize(8, url_);
+ }
+ if (!getPropertyBytes().isEmpty()) {
+ size += com.google.protobuf.GeneratedMessageV3.computeStringSize(9, property_);
+ }
+ if (!getFromNickBytes().isEmpty()) {
+ size += com.google.protobuf.GeneratedMessageV3.computeStringSize(10, fromNick_);
+ }
+ if (!getJsonBytes().isEmpty()) {
+ size += com.google.protobuf.GeneratedMessageV3.computeStringSize(11, json_);
+ }
+ 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 com.zpf.im.common.bean.msg.ProtoMsg.MessageRequest)) {
+ return super.equals(obj);
+ }
+ com.zpf.im.common.bean.msg.ProtoMsg.MessageRequest other = (com.zpf.im.common.bean.msg.ProtoMsg.MessageRequest) obj;
+
+ boolean result = true;
+ result = result && (getMsgId()
+ == other.getMsgId());
+ result = result && getFrom()
+ .equals(other.getFrom());
+ result = result && getTo()
+ .equals(other.getTo());
+ result = result && (getTime()
+ == other.getTime());
+ result = result && (getMsgType()
+ == other.getMsgType());
+ result = result && getContent()
+ .equals(other.getContent());
+ result = result && getUrl()
+ .equals(other.getUrl());
+ result = result && getProperty()
+ .equals(other.getProperty());
+ result = result && getFromNick()
+ .equals(other.getFromNick());
+ result = result && getJson()
+ .equals(other.getJson());
+ result = result && unknownFields.equals(other.unknownFields);
+ return result;
+ }
+
+ @java.lang.Override
+ public int hashCode() {
+ if (memoizedHashCode != 0) {
+ return memoizedHashCode;
+ }
+ int hash = 41;
+ hash = (19 * hash) + getDescriptor().hashCode();
+ hash = (37 * hash) + MSG_ID_FIELD_NUMBER;
+ hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
+ getMsgId());
+ hash = (37 * hash) + FROM_FIELD_NUMBER;
+ hash = (53 * hash) + getFrom().hashCode();
+ hash = (37 * hash) + TO_FIELD_NUMBER;
+ hash = (53 * hash) + getTo().hashCode();
+ hash = (37 * hash) + TIME_FIELD_NUMBER;
+ hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
+ getTime());
+ hash = (37 * hash) + MSG_TYPE_FIELD_NUMBER;
+ hash = (53 * hash) + getMsgType();
+ hash = (37 * hash) + CONTENT_FIELD_NUMBER;
+ hash = (53 * hash) + getContent().hashCode();
+ hash = (37 * hash) + URL_FIELD_NUMBER;
+ hash = (53 * hash) + getUrl().hashCode();
+ hash = (37 * hash) + PROPERTY_FIELD_NUMBER;
+ hash = (53 * hash) + getProperty().hashCode();
+ hash = (37 * hash) + FROM_NICK_FIELD_NUMBER;
+ hash = (53 * hash) + getFromNick().hashCode();
+ hash = (37 * hash) + JSON_FIELD_NUMBER;
+ hash = (53 * hash) + getJson().hashCode();
+ hash = (29 * hash) + unknownFields.hashCode();
+ memoizedHashCode = hash;
+ return hash;
+ }
+
+ public static com.zpf.im.common.bean.msg.ProtoMsg.MessageRequest parseFrom(
+ java.nio.ByteBuffer data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static com.zpf.im.common.bean.msg.ProtoMsg.MessageRequest parseFrom(
+ java.nio.ByteBuffer data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static com.zpf.im.common.bean.msg.ProtoMsg.MessageRequest parseFrom(
+ com.google.protobuf.ByteString data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static com.zpf.im.common.bean.msg.ProtoMsg.MessageRequest parseFrom(
+ com.google.protobuf.ByteString data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static com.zpf.im.common.bean.msg.ProtoMsg.MessageRequest parseFrom(byte[] data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static com.zpf.im.common.bean.msg.ProtoMsg.MessageRequest parseFrom(
+ byte[] data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static com.zpf.im.common.bean.msg.ProtoMsg.MessageRequest parseFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input);
+ }
+ public static com.zpf.im.common.bean.msg.ProtoMsg.MessageRequest 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 com.zpf.im.common.bean.msg.ProtoMsg.MessageRequest parseDelimitedFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseDelimitedWithIOException(PARSER, input);
+ }
+ public static com.zpf.im.common.bean.msg.ProtoMsg.MessageRequest 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 com.zpf.im.common.bean.msg.ProtoMsg.MessageRequest parseFrom(
+ com.google.protobuf.CodedInputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input);
+ }
+ public static com.zpf.im.common.bean.msg.ProtoMsg.MessageRequest 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(com.zpf.im.common.bean.msg.ProtoMsg.MessageRequest 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 com.zpf.im.common.bean.msg.MessageRequest}
+ */
+ public static final class Builder extends
+ com.google.protobuf.GeneratedMessageV3.Builderuint64 msg_id = 1;
+ */
+ public long getMsgId() {
+ return msgId_;
+ }
+ /**
+ * uint64 msg_id = 1;
+ */
+ public Builder setMsgId(long value) {
+
+ msgId_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ * uint64 msg_id = 1;
+ */
+ public Builder clearMsgId() {
+
+ msgId_ = 0L;
+ onChanged();
+ return this;
+ }
+
+ private java.lang.Object from_ = "";
+ /**
+ * string from = 2;
+ */
+ public java.lang.String getFrom() {
+ java.lang.Object ref = from_;
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs =
+ (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ from_ = s;
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+ /**
+ * string from = 2;
+ */
+ public com.google.protobuf.ByteString
+ getFromBytes() {
+ java.lang.Object ref = from_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8(
+ (java.lang.String) ref);
+ from_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+ /**
+ * string from = 2;
+ */
+ public Builder setFrom(
+ java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+
+ from_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ * string from = 2;
+ */
+ public Builder clearFrom() {
+
+ from_ = getDefaultInstance().getFrom();
+ onChanged();
+ return this;
+ }
+ /**
+ * string from = 2;
+ */
+ public Builder setFromBytes(
+ com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ checkByteStringIsUtf8(value);
+
+ from_ = value;
+ onChanged();
+ return this;
+ }
+
+ private java.lang.Object to_ = "";
+ /**
+ * string to = 3;
+ */
+ public java.lang.String getTo() {
+ java.lang.Object ref = to_;
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs =
+ (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ to_ = s;
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+ /**
+ * string to = 3;
+ */
+ public com.google.protobuf.ByteString
+ getToBytes() {
+ java.lang.Object ref = to_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8(
+ (java.lang.String) ref);
+ to_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+ /**
+ * string to = 3;
+ */
+ public Builder setTo(
+ java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+
+ to_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ * string to = 3;
+ */
+ public Builder clearTo() {
+
+ to_ = getDefaultInstance().getTo();
+ onChanged();
+ return this;
+ }
+ /**
+ * string to = 3;
+ */
+ public Builder setToBytes(
+ com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ checkByteStringIsUtf8(value);
+
+ to_ = value;
+ onChanged();
+ return this;
+ }
+
+ private long time_ ;
+ /**
+ * uint64 time = 4;
+ */
+ public long getTime() {
+ return time_;
+ }
+ /**
+ * uint64 time = 4;
+ */
+ public Builder setTime(long value) {
+
+ time_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ * uint64 time = 4;
+ */
+ public Builder clearTime() {
+
+ time_ = 0L;
+ onChanged();
+ return this;
+ }
+
+ private int msgType_ ;
+ /**
+ * uint32 msg_type = 5;
+ */
+ public int getMsgType() {
+ return msgType_;
+ }
+ /**
+ * uint32 msg_type = 5;
+ */
+ public Builder setMsgType(int value) {
+
+ msgType_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ * uint32 msg_type = 5;
+ */
+ public Builder clearMsgType() {
+
+ msgType_ = 0;
+ onChanged();
+ return this;
+ }
+
+ private java.lang.Object content_ = "";
+ /**
+ * string content = 6;
+ */
+ public java.lang.String getContent() {
+ java.lang.Object ref = content_;
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs =
+ (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ content_ = s;
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+ /**
+ * string content = 6;
+ */
+ 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;
+ }
+ }
+ /**
+ * string content = 6;
+ */
+ public Builder setContent(
+ java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+
+ content_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ * string content = 6;
+ */
+ public Builder clearContent() {
+
+ content_ = getDefaultInstance().getContent();
+ onChanged();
+ return this;
+ }
+ /**
+ * string content = 6;
+ */
+ public Builder setContentBytes(
+ com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ checkByteStringIsUtf8(value);
+
+ content_ = value;
+ onChanged();
+ return this;
+ }
+
+ private java.lang.Object url_ = "";
+ /**
+ * string url = 8;
+ */
+ public java.lang.String getUrl() {
+ java.lang.Object ref = url_;
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs =
+ (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ url_ = s;
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+ /**
+ * string url = 8;
+ */
+ public com.google.protobuf.ByteString
+ getUrlBytes() {
+ java.lang.Object ref = url_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8(
+ (java.lang.String) ref);
+ url_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+ /**
+ * string url = 8;
+ */
+ public Builder setUrl(
+ java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+
+ url_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ * string url = 8;
+ */
+ public Builder clearUrl() {
+
+ url_ = getDefaultInstance().getUrl();
+ onChanged();
+ return this;
+ }
+ /**
+ * string url = 8;
+ */
+ public Builder setUrlBytes(
+ com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ checkByteStringIsUtf8(value);
+
+ url_ = value;
+ onChanged();
+ return this;
+ }
+
+ private java.lang.Object property_ = "";
+ /**
+ * string property = 9;
+ */
+ public java.lang.String getProperty() {
+ java.lang.Object ref = property_;
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs =
+ (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ property_ = s;
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+ /**
+ * string property = 9;
+ */
+ public com.google.protobuf.ByteString
+ getPropertyBytes() {
+ java.lang.Object ref = property_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8(
+ (java.lang.String) ref);
+ property_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+ /**
+ * string property = 9;
+ */
+ public Builder setProperty(
+ java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+
+ property_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ * string property = 9;
+ */
+ public Builder clearProperty() {
+
+ property_ = getDefaultInstance().getProperty();
+ onChanged();
+ return this;
+ }
+ /**
+ * string property = 9;
+ */
+ public Builder setPropertyBytes(
+ com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ checkByteStringIsUtf8(value);
+
+ property_ = value;
+ onChanged();
+ return this;
+ }
+
+ private java.lang.Object fromNick_ = "";
+ /**
+ * string from_nick = 10;
+ */
+ public java.lang.String getFromNick() {
+ java.lang.Object ref = fromNick_;
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs =
+ (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ fromNick_ = s;
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+ /**
+ * string from_nick = 10;
+ */
+ public com.google.protobuf.ByteString
+ getFromNickBytes() {
+ java.lang.Object ref = fromNick_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8(
+ (java.lang.String) ref);
+ fromNick_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+ /**
+ * string from_nick = 10;
+ */
+ public Builder setFromNick(
+ java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+
+ fromNick_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ * string from_nick = 10;
+ */
+ public Builder clearFromNick() {
+
+ fromNick_ = getDefaultInstance().getFromNick();
+ onChanged();
+ return this;
+ }
+ /**
+ * string from_nick = 10;
+ */
+ public Builder setFromNickBytes(
+ com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ checkByteStringIsUtf8(value);
+
+ fromNick_ = value;
+ onChanged();
+ return this;
+ }
+
+ private java.lang.Object json_ = "";
+ /**
+ * string json = 11;
+ */
+ public java.lang.String getJson() {
+ java.lang.Object ref = json_;
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs =
+ (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ json_ = s;
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+ /**
+ * string json = 11;
+ */
+ public com.google.protobuf.ByteString
+ getJsonBytes() {
+ java.lang.Object ref = json_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8(
+ (java.lang.String) ref);
+ json_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+ /**
+ * string json = 11;
+ */
+ public Builder setJson(
+ java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+
+ json_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ * string json = 11;
+ */
+ public Builder clearJson() {
+
+ json_ = getDefaultInstance().getJson();
+ onChanged();
+ return this;
+ }
+ /**
+ * string json = 11;
+ */
+ public Builder setJsonBytes(
+ com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ checkByteStringIsUtf8(value);
+
+ json_ = value;
+ onChanged();
+ return this;
+ }
+ @java.lang.Override
+ public final Builder setUnknownFields(
+ final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.setUnknownFieldsProto3(unknownFields);
+ }
+
+ @java.lang.Override
+ public final Builder mergeUnknownFields(
+ final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.mergeUnknownFields(unknownFields);
+ }
+
+
+ // @@protoc_insertion_point(builder_scope:com.zpf.im.common.bean.msg.MessageRequest)
+ }
+
+ // @@protoc_insertion_point(class_scope:com.zpf.im.common.bean.msg.MessageRequest)
+ private static final com.zpf.im.common.bean.msg.ProtoMsg.MessageRequest DEFAULT_INSTANCE;
+ static {
+ DEFAULT_INSTANCE = new com.zpf.im.common.bean.msg.ProtoMsg.MessageRequest();
+ }
+
+ public static com.zpf.im.common.bean.msg.ProtoMsg.MessageRequest getDefaultInstance() {
+ return DEFAULT_INSTANCE;
+ }
+
+ private static final com.google.protobuf.Parserbool result = 1;
+ */
+ boolean getResult();
+
+ /**
+ * uint32 code = 2;
+ */
+ int getCode();
+
+ /**
+ * string info = 3;
+ */
+ java.lang.String getInfo();
+ /**
+ * string info = 3;
+ */
+ com.google.protobuf.ByteString
+ getInfoBytes();
+
+ /**
+ * uint32 expose = 4;
+ */
+ int getExpose();
+
+ /**
+ * bool last_block = 5;
+ */
+ boolean getLastBlock();
+
+ /**
+ * fixed32 block_index = 6;
+ */
+ int getBlockIndex();
+ }
+ /**
+ * Protobuf type {@code com.zpf.im.common.bean.msg.MessageResponse}
+ */
+ public static final class MessageResponse extends
+ com.google.protobuf.GeneratedMessageV3 implements
+ // @@protoc_insertion_point(message_implements:com.zpf.im.common.bean.msg.MessageResponse)
+ MessageResponseOrBuilder {
+ private static final long serialVersionUID = 0L;
+ // Use MessageResponse.newBuilder() to construct.
+ private MessageResponse(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
+ super(builder);
+ }
+ private MessageResponse() {
+ result_ = false;
+ code_ = 0;
+ info_ = "";
+ expose_ = 0;
+ lastBlock_ = false;
+ blockIndex_ = 0;
+ }
+
+ @java.lang.Override
+ public final com.google.protobuf.UnknownFieldSet
+ getUnknownFields() {
+ return this.unknownFields;
+ }
+ private MessageResponse(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ this();
+ if (extensionRegistry == null) {
+ throw new java.lang.NullPointerException();
+ }
+ int mutable_bitField0_ = 0;
+ com.google.protobuf.UnknownFieldSet.Builder unknownFields =
+ com.google.protobuf.UnknownFieldSet.newBuilder();
+ try {
+ boolean done = false;
+ while (!done) {
+ int tag = input.readTag();
+ switch (tag) {
+ case 0:
+ done = true;
+ break;
+ case 8: {
+
+ result_ = input.readBool();
+ break;
+ }
+ case 16: {
+
+ code_ = input.readUInt32();
+ break;
+ }
+ case 26: {
+ java.lang.String s = input.readStringRequireUtf8();
+
+ info_ = s;
+ break;
+ }
+ case 32: {
+
+ expose_ = input.readUInt32();
+ break;
+ }
+ case 40: {
+
+ lastBlock_ = input.readBool();
+ break;
+ }
+ case 53: {
+
+ blockIndex_ = input.readFixed32();
+ break;
+ }
+ default: {
+ if (!parseUnknownFieldProto3(
+ 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 com.zpf.im.common.bean.msg.ProtoMsg.internal_static_com_zpf_im_common_bean_msg_MessageResponse_descriptor;
+ }
+
+ @java.lang.Override
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internalGetFieldAccessorTable() {
+ return com.zpf.im.common.bean.msg.ProtoMsg.internal_static_com_zpf_im_common_bean_msg_MessageResponse_fieldAccessorTable
+ .ensureFieldAccessorsInitialized(
+ com.zpf.im.common.bean.msg.ProtoMsg.MessageResponse.class, com.zpf.im.common.bean.msg.ProtoMsg.MessageResponse.Builder.class);
+ }
+
+ public static final int RESULT_FIELD_NUMBER = 1;
+ private boolean result_;
+ /**
+ * bool result = 1;
+ */
+ public boolean getResult() {
+ return result_;
+ }
+
+ public static final int CODE_FIELD_NUMBER = 2;
+ private int code_;
+ /**
+ * uint32 code = 2;
+ */
+ public int getCode() {
+ return code_;
+ }
+
+ public static final int INFO_FIELD_NUMBER = 3;
+ private volatile java.lang.Object info_;
+ /**
+ * string info = 3;
+ */
+ public java.lang.String getInfo() {
+ java.lang.Object ref = info_;
+ 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();
+ info_ = s;
+ return s;
+ }
+ }
+ /**
+ * string info = 3;
+ */
+ public com.google.protobuf.ByteString
+ getInfoBytes() {
+ java.lang.Object ref = info_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8(
+ (java.lang.String) ref);
+ info_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ public static final int EXPOSE_FIELD_NUMBER = 4;
+ private int expose_;
+ /**
+ * uint32 expose = 4;
+ */
+ public int getExpose() {
+ return expose_;
+ }
+
+ public static final int LAST_BLOCK_FIELD_NUMBER = 5;
+ private boolean lastBlock_;
+ /**
+ * bool last_block = 5;
+ */
+ public boolean getLastBlock() {
+ return lastBlock_;
+ }
+
+ public static final int BLOCK_INDEX_FIELD_NUMBER = 6;
+ private int blockIndex_;
+ /**
+ * fixed32 block_index = 6;
+ */
+ public int getBlockIndex() {
+ return blockIndex_;
+ }
+
+ 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 (result_ != false) {
+ output.writeBool(1, result_);
+ }
+ if (code_ != 0) {
+ output.writeUInt32(2, code_);
+ }
+ if (!getInfoBytes().isEmpty()) {
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 3, info_);
+ }
+ if (expose_ != 0) {
+ output.writeUInt32(4, expose_);
+ }
+ if (lastBlock_ != false) {
+ output.writeBool(5, lastBlock_);
+ }
+ if (blockIndex_ != 0) {
+ output.writeFixed32(6, blockIndex_);
+ }
+ unknownFields.writeTo(output);
+ }
+
+ @java.lang.Override
+ public int getSerializedSize() {
+ int size = memoizedSize;
+ if (size != -1) return size;
+
+ size = 0;
+ if (result_ != false) {
+ size += com.google.protobuf.CodedOutputStream
+ .computeBoolSize(1, result_);
+ }
+ if (code_ != 0) {
+ size += com.google.protobuf.CodedOutputStream
+ .computeUInt32Size(2, code_);
+ }
+ if (!getInfoBytes().isEmpty()) {
+ size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, info_);
+ }
+ if (expose_ != 0) {
+ size += com.google.protobuf.CodedOutputStream
+ .computeUInt32Size(4, expose_);
+ }
+ if (lastBlock_ != false) {
+ size += com.google.protobuf.CodedOutputStream
+ .computeBoolSize(5, lastBlock_);
+ }
+ if (blockIndex_ != 0) {
+ size += com.google.protobuf.CodedOutputStream
+ .computeFixed32Size(6, blockIndex_);
+ }
+ 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 com.zpf.im.common.bean.msg.ProtoMsg.MessageResponse)) {
+ return super.equals(obj);
+ }
+ com.zpf.im.common.bean.msg.ProtoMsg.MessageResponse other = (com.zpf.im.common.bean.msg.ProtoMsg.MessageResponse) obj;
+
+ boolean result = true;
+ result = result && (getResult()
+ == other.getResult());
+ result = result && (getCode()
+ == other.getCode());
+ result = result && getInfo()
+ .equals(other.getInfo());
+ result = result && (getExpose()
+ == other.getExpose());
+ result = result && (getLastBlock()
+ == other.getLastBlock());
+ result = result && (getBlockIndex()
+ == other.getBlockIndex());
+ result = result && unknownFields.equals(other.unknownFields);
+ return result;
+ }
+
+ @java.lang.Override
+ public int hashCode() {
+ if (memoizedHashCode != 0) {
+ return memoizedHashCode;
+ }
+ int hash = 41;
+ hash = (19 * hash) + getDescriptor().hashCode();
+ hash = (37 * hash) + RESULT_FIELD_NUMBER;
+ hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
+ getResult());
+ hash = (37 * hash) + CODE_FIELD_NUMBER;
+ hash = (53 * hash) + getCode();
+ hash = (37 * hash) + INFO_FIELD_NUMBER;
+ hash = (53 * hash) + getInfo().hashCode();
+ hash = (37 * hash) + EXPOSE_FIELD_NUMBER;
+ hash = (53 * hash) + getExpose();
+ hash = (37 * hash) + LAST_BLOCK_FIELD_NUMBER;
+ hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
+ getLastBlock());
+ hash = (37 * hash) + BLOCK_INDEX_FIELD_NUMBER;
+ hash = (53 * hash) + getBlockIndex();
+ hash = (29 * hash) + unknownFields.hashCode();
+ memoizedHashCode = hash;
+ return hash;
+ }
+
+ public static com.zpf.im.common.bean.msg.ProtoMsg.MessageResponse parseFrom(
+ java.nio.ByteBuffer data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static com.zpf.im.common.bean.msg.ProtoMsg.MessageResponse parseFrom(
+ java.nio.ByteBuffer data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static com.zpf.im.common.bean.msg.ProtoMsg.MessageResponse parseFrom(
+ com.google.protobuf.ByteString data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static com.zpf.im.common.bean.msg.ProtoMsg.MessageResponse parseFrom(
+ com.google.protobuf.ByteString data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static com.zpf.im.common.bean.msg.ProtoMsg.MessageResponse parseFrom(byte[] data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static com.zpf.im.common.bean.msg.ProtoMsg.MessageResponse parseFrom(
+ byte[] data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static com.zpf.im.common.bean.msg.ProtoMsg.MessageResponse parseFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input);
+ }
+ public static com.zpf.im.common.bean.msg.ProtoMsg.MessageResponse 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 com.zpf.im.common.bean.msg.ProtoMsg.MessageResponse parseDelimitedFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseDelimitedWithIOException(PARSER, input);
+ }
+ public static com.zpf.im.common.bean.msg.ProtoMsg.MessageResponse 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 com.zpf.im.common.bean.msg.ProtoMsg.MessageResponse parseFrom(
+ com.google.protobuf.CodedInputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input);
+ }
+ public static com.zpf.im.common.bean.msg.ProtoMsg.MessageResponse 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(com.zpf.im.common.bean.msg.ProtoMsg.MessageResponse 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 com.zpf.im.common.bean.msg.MessageResponse}
+ */
+ public static final class Builder extends
+ com.google.protobuf.GeneratedMessageV3.Builderbool result = 1;
+ */
+ public boolean getResult() {
+ return result_;
+ }
+ /**
+ * bool result = 1;
+ */
+ public Builder setResult(boolean value) {
+
+ result_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ * bool result = 1;
+ */
+ public Builder clearResult() {
+
+ result_ = false;
+ onChanged();
+ return this;
+ }
+
+ private int code_ ;
+ /**
+ * uint32 code = 2;
+ */
+ public int getCode() {
+ return code_;
+ }
+ /**
+ * uint32 code = 2;
+ */
+ public Builder setCode(int value) {
+
+ code_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ * uint32 code = 2;
+ */
+ public Builder clearCode() {
+
+ code_ = 0;
+ onChanged();
+ return this;
+ }
+
+ private java.lang.Object info_ = "";
+ /**
+ * string info = 3;
+ */
+ public java.lang.String getInfo() {
+ java.lang.Object ref = info_;
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs =
+ (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ info_ = s;
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+ /**
+ * string info = 3;
+ */
+ public com.google.protobuf.ByteString
+ getInfoBytes() {
+ java.lang.Object ref = info_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8(
+ (java.lang.String) ref);
+ info_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+ /**
+ * string info = 3;
+ */
+ public Builder setInfo(
+ java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+
+ info_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ * string info = 3;
+ */
+ public Builder clearInfo() {
+
+ info_ = getDefaultInstance().getInfo();
+ onChanged();
+ return this;
+ }
+ /**
+ * string info = 3;
+ */
+ public Builder setInfoBytes(
+ com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ checkByteStringIsUtf8(value);
+
+ info_ = value;
+ onChanged();
+ return this;
+ }
+
+ private int expose_ ;
+ /**
+ * uint32 expose = 4;
+ */
+ public int getExpose() {
+ return expose_;
+ }
+ /**
+ * uint32 expose = 4;
+ */
+ public Builder setExpose(int value) {
+
+ expose_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ * uint32 expose = 4;
+ */
+ public Builder clearExpose() {
+
+ expose_ = 0;
+ onChanged();
+ return this;
+ }
+
+ private boolean lastBlock_ ;
+ /**
+ * bool last_block = 5;
+ */
+ public boolean getLastBlock() {
+ return lastBlock_;
+ }
+ /**
+ * bool last_block = 5;
+ */
+ public Builder setLastBlock(boolean value) {
+
+ lastBlock_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ * bool last_block = 5;
+ */
+ public Builder clearLastBlock() {
+
+ lastBlock_ = false;
+ onChanged();
+ return this;
+ }
+
+ private int blockIndex_ ;
+ /**
+ * fixed32 block_index = 6;
+ */
+ public int getBlockIndex() {
+ return blockIndex_;
+ }
+ /**
+ * fixed32 block_index = 6;
+ */
+ public Builder setBlockIndex(int value) {
+
+ blockIndex_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ * fixed32 block_index = 6;
+ */
+ public Builder clearBlockIndex() {
+
+ blockIndex_ = 0;
+ onChanged();
+ return this;
+ }
+ @java.lang.Override
+ public final Builder setUnknownFields(
+ final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.setUnknownFieldsProto3(unknownFields);
+ }
+
+ @java.lang.Override
+ public final Builder mergeUnknownFields(
+ final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.mergeUnknownFields(unknownFields);
+ }
+
+
+ // @@protoc_insertion_point(builder_scope:com.zpf.im.common.bean.msg.MessageResponse)
+ }
+
+ // @@protoc_insertion_point(class_scope:com.zpf.im.common.bean.msg.MessageResponse)
+ private static final com.zpf.im.common.bean.msg.ProtoMsg.MessageResponse DEFAULT_INSTANCE;
+ static {
+ DEFAULT_INSTANCE = new com.zpf.im.common.bean.msg.ProtoMsg.MessageResponse();
+ }
+
+ public static com.zpf.im.common.bean.msg.ProtoMsg.MessageResponse getDefaultInstance() {
+ return DEFAULT_INSTANCE;
+ }
+
+ private static final com.google.protobuf.Parseruint32 msg_type = 1;
+ */
+ int getMsgType();
+
+ /**
+ * bytes sender = 2;
+ */
+ com.google.protobuf.ByteString getSender();
+
+ /**
+ * string json = 3;
+ */
+ java.lang.String getJson();
+ /**
+ * string json = 3;
+ */
+ com.google.protobuf.ByteString
+ getJsonBytes();
+
+ /**
+ * string timestamp = 4;
+ */
+ java.lang.String getTimestamp();
+ /**
+ * string timestamp = 4;
+ */
+ com.google.protobuf.ByteString
+ getTimestampBytes();
+ }
+ /**
+ * Protobuf type {@code com.zpf.im.common.bean.msg.MessageNotification}
+ */
+ public static final class MessageNotification extends
+ com.google.protobuf.GeneratedMessageV3 implements
+ // @@protoc_insertion_point(message_implements:com.zpf.im.common.bean.msg.MessageNotification)
+ MessageNotificationOrBuilder {
+ private static final long serialVersionUID = 0L;
+ // Use MessageNotification.newBuilder() to construct.
+ private MessageNotification(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
+ super(builder);
+ }
+ private MessageNotification() {
+ msgType_ = 0;
+ sender_ = com.google.protobuf.ByteString.EMPTY;
+ json_ = "";
+ timestamp_ = "";
+ }
+
+ @java.lang.Override
+ public final com.google.protobuf.UnknownFieldSet
+ getUnknownFields() {
+ return this.unknownFields;
+ }
+ private MessageNotification(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ this();
+ if (extensionRegistry == null) {
+ throw new java.lang.NullPointerException();
+ }
+ int mutable_bitField0_ = 0;
+ com.google.protobuf.UnknownFieldSet.Builder unknownFields =
+ com.google.protobuf.UnknownFieldSet.newBuilder();
+ try {
+ boolean done = false;
+ while (!done) {
+ int tag = input.readTag();
+ switch (tag) {
+ case 0:
+ done = true;
+ break;
+ case 8: {
+
+ msgType_ = input.readUInt32();
+ break;
+ }
+ case 18: {
+
+ sender_ = input.readBytes();
+ break;
+ }
+ case 26: {
+ java.lang.String s = input.readStringRequireUtf8();
+
+ json_ = s;
+ break;
+ }
+ case 34: {
+ java.lang.String s = input.readStringRequireUtf8();
+
+ timestamp_ = s;
+ break;
+ }
+ default: {
+ if (!parseUnknownFieldProto3(
+ 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 com.zpf.im.common.bean.msg.ProtoMsg.internal_static_com_zpf_im_common_bean_msg_MessageNotification_descriptor;
+ }
+
+ @java.lang.Override
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internalGetFieldAccessorTable() {
+ return com.zpf.im.common.bean.msg.ProtoMsg.internal_static_com_zpf_im_common_bean_msg_MessageNotification_fieldAccessorTable
+ .ensureFieldAccessorsInitialized(
+ com.zpf.im.common.bean.msg.ProtoMsg.MessageNotification.class, com.zpf.im.common.bean.msg.ProtoMsg.MessageNotification.Builder.class);
+ }
+
+ public static final int MSG_TYPE_FIELD_NUMBER = 1;
+ private int msgType_;
+ /**
+ * uint32 msg_type = 1;
+ */
+ public int getMsgType() {
+ return msgType_;
+ }
+
+ public static final int SENDER_FIELD_NUMBER = 2;
+ private com.google.protobuf.ByteString sender_;
+ /**
+ * bytes sender = 2;
+ */
+ public com.google.protobuf.ByteString getSender() {
+ return sender_;
+ }
+
+ public static final int JSON_FIELD_NUMBER = 3;
+ private volatile java.lang.Object json_;
+ /**
+ * string json = 3;
+ */
+ public java.lang.String getJson() {
+ java.lang.Object ref = json_;
+ 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();
+ json_ = s;
+ return s;
+ }
+ }
+ /**
+ * string json = 3;
+ */
+ public com.google.protobuf.ByteString
+ getJsonBytes() {
+ java.lang.Object ref = json_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8(
+ (java.lang.String) ref);
+ json_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ public static final int TIMESTAMP_FIELD_NUMBER = 4;
+ private volatile java.lang.Object timestamp_;
+ /**
+ * string timestamp = 4;
+ */
+ public java.lang.String getTimestamp() {
+ java.lang.Object ref = timestamp_;
+ 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();
+ timestamp_ = s;
+ return s;
+ }
+ }
+ /**
+ * string timestamp = 4;
+ */
+ public com.google.protobuf.ByteString
+ getTimestampBytes() {
+ java.lang.Object ref = timestamp_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8(
+ (java.lang.String) ref);
+ timestamp_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ 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 (msgType_ != 0) {
+ output.writeUInt32(1, msgType_);
+ }
+ if (!sender_.isEmpty()) {
+ output.writeBytes(2, sender_);
+ }
+ if (!getJsonBytes().isEmpty()) {
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 3, json_);
+ }
+ if (!getTimestampBytes().isEmpty()) {
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 4, timestamp_);
+ }
+ unknownFields.writeTo(output);
+ }
+
+ @java.lang.Override
+ public int getSerializedSize() {
+ int size = memoizedSize;
+ if (size != -1) return size;
+
+ size = 0;
+ if (msgType_ != 0) {
+ size += com.google.protobuf.CodedOutputStream
+ .computeUInt32Size(1, msgType_);
+ }
+ if (!sender_.isEmpty()) {
+ size += com.google.protobuf.CodedOutputStream
+ .computeBytesSize(2, sender_);
+ }
+ if (!getJsonBytes().isEmpty()) {
+ size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, json_);
+ }
+ if (!getTimestampBytes().isEmpty()) {
+ size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, timestamp_);
+ }
+ 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 com.zpf.im.common.bean.msg.ProtoMsg.MessageNotification)) {
+ return super.equals(obj);
+ }
+ com.zpf.im.common.bean.msg.ProtoMsg.MessageNotification other = (com.zpf.im.common.bean.msg.ProtoMsg.MessageNotification) obj;
+
+ boolean result = true;
+ result = result && (getMsgType()
+ == other.getMsgType());
+ result = result && getSender()
+ .equals(other.getSender());
+ result = result && getJson()
+ .equals(other.getJson());
+ result = result && getTimestamp()
+ .equals(other.getTimestamp());
+ result = result && unknownFields.equals(other.unknownFields);
+ return result;
+ }
+
+ @java.lang.Override
+ public int hashCode() {
+ if (memoizedHashCode != 0) {
+ return memoizedHashCode;
+ }
+ int hash = 41;
+ hash = (19 * hash) + getDescriptor().hashCode();
+ hash = (37 * hash) + MSG_TYPE_FIELD_NUMBER;
+ hash = (53 * hash) + getMsgType();
+ hash = (37 * hash) + SENDER_FIELD_NUMBER;
+ hash = (53 * hash) + getSender().hashCode();
+ hash = (37 * hash) + JSON_FIELD_NUMBER;
+ hash = (53 * hash) + getJson().hashCode();
+ hash = (37 * hash) + TIMESTAMP_FIELD_NUMBER;
+ hash = (53 * hash) + getTimestamp().hashCode();
+ hash = (29 * hash) + unknownFields.hashCode();
+ memoizedHashCode = hash;
+ return hash;
+ }
+
+ public static com.zpf.im.common.bean.msg.ProtoMsg.MessageNotification parseFrom(
+ java.nio.ByteBuffer data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static com.zpf.im.common.bean.msg.ProtoMsg.MessageNotification parseFrom(
+ java.nio.ByteBuffer data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static com.zpf.im.common.bean.msg.ProtoMsg.MessageNotification parseFrom(
+ com.google.protobuf.ByteString data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static com.zpf.im.common.bean.msg.ProtoMsg.MessageNotification parseFrom(
+ com.google.protobuf.ByteString data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static com.zpf.im.common.bean.msg.ProtoMsg.MessageNotification parseFrom(byte[] data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static com.zpf.im.common.bean.msg.ProtoMsg.MessageNotification parseFrom(
+ byte[] data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static com.zpf.im.common.bean.msg.ProtoMsg.MessageNotification parseFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input);
+ }
+ public static com.zpf.im.common.bean.msg.ProtoMsg.MessageNotification 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 com.zpf.im.common.bean.msg.ProtoMsg.MessageNotification parseDelimitedFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseDelimitedWithIOException(PARSER, input);
+ }
+ public static com.zpf.im.common.bean.msg.ProtoMsg.MessageNotification 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 com.zpf.im.common.bean.msg.ProtoMsg.MessageNotification parseFrom(
+ com.google.protobuf.CodedInputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input);
+ }
+ public static com.zpf.im.common.bean.msg.ProtoMsg.MessageNotification 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(com.zpf.im.common.bean.msg.ProtoMsg.MessageNotification 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 com.zpf.im.common.bean.msg.MessageNotification}
+ */
+ public static final class Builder extends
+ com.google.protobuf.GeneratedMessageV3.Builderuint32 msg_type = 1;
+ */
+ public int getMsgType() {
+ return msgType_;
+ }
+ /**
+ * uint32 msg_type = 1;
+ */
+ public Builder setMsgType(int value) {
+
+ msgType_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ * uint32 msg_type = 1;
+ */
+ public Builder clearMsgType() {
+
+ msgType_ = 0;
+ onChanged();
+ return this;
+ }
+
+ private com.google.protobuf.ByteString sender_ = com.google.protobuf.ByteString.EMPTY;
+ /**
+ * bytes sender = 2;
+ */
+ public com.google.protobuf.ByteString getSender() {
+ return sender_;
+ }
+ /**
+ * bytes sender = 2;
+ */
+ public Builder setSender(com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+
+ sender_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ * bytes sender = 2;
+ */
+ public Builder clearSender() {
+
+ sender_ = getDefaultInstance().getSender();
+ onChanged();
+ return this;
+ }
+
+ private java.lang.Object json_ = "";
+ /**
+ * string json = 3;
+ */
+ public java.lang.String getJson() {
+ java.lang.Object ref = json_;
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs =
+ (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ json_ = s;
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+ /**
+ * string json = 3;
+ */
+ public com.google.protobuf.ByteString
+ getJsonBytes() {
+ java.lang.Object ref = json_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8(
+ (java.lang.String) ref);
+ json_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+ /**
+ * string json = 3;
+ */
+ public Builder setJson(
+ java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+
+ json_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ * string json = 3;
+ */
+ public Builder clearJson() {
+
+ json_ = getDefaultInstance().getJson();
+ onChanged();
+ return this;
+ }
+ /**
+ * string json = 3;
+ */
+ public Builder setJsonBytes(
+ com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ checkByteStringIsUtf8(value);
+
+ json_ = value;
+ onChanged();
+ return this;
+ }
+
+ private java.lang.Object timestamp_ = "";
+ /**
+ * string timestamp = 4;
+ */
+ public java.lang.String getTimestamp() {
+ java.lang.Object ref = timestamp_;
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs =
+ (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ timestamp_ = s;
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+ /**
+ * string timestamp = 4;
+ */
+ public com.google.protobuf.ByteString
+ getTimestampBytes() {
+ java.lang.Object ref = timestamp_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8(
+ (java.lang.String) ref);
+ timestamp_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+ /**
+ * string timestamp = 4;
+ */
+ public Builder setTimestamp(
+ java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+
+ timestamp_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ * string timestamp = 4;
+ */
+ public Builder clearTimestamp() {
+
+ timestamp_ = getDefaultInstance().getTimestamp();
+ onChanged();
+ return this;
+ }
+ /**
+ * string timestamp = 4;
+ */
+ public Builder setTimestampBytes(
+ com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ checkByteStringIsUtf8(value);
+
+ timestamp_ = value;
+ onChanged();
+ return this;
+ }
+ @java.lang.Override
+ public final Builder setUnknownFields(
+ final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.setUnknownFieldsProto3(unknownFields);
+ }
+
+ @java.lang.Override
+ public final Builder mergeUnknownFields(
+ final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.mergeUnknownFields(unknownFields);
+ }
+
+
+ // @@protoc_insertion_point(builder_scope:com.zpf.im.common.bean.msg.MessageNotification)
+ }
+
+ // @@protoc_insertion_point(class_scope:com.zpf.im.common.bean.msg.MessageNotification)
+ private static final com.zpf.im.common.bean.msg.ProtoMsg.MessageNotification DEFAULT_INSTANCE;
+ static {
+ DEFAULT_INSTANCE = new com.zpf.im.common.bean.msg.ProtoMsg.MessageNotification();
+ }
+
+ public static com.zpf.im.common.bean.msg.ProtoMsg.MessageNotification getDefaultInstance() {
+ return DEFAULT_INSTANCE;
+ }
+
+ private static final com.google.protobuf.Parser.com.zpf.im.common.bean.msg.HeadType type = 1;
+ */
+ int getTypeValue();
+ /**
+ * .com.zpf.im.common.bean.msg.HeadType type = 1;
+ */
+ com.zpf.im.common.bean.msg.ProtoMsg.HeadType getType();
+
+ /**
+ * uint64 sequence = 2;
+ */
+ long getSequence();
+
+ /**
+ * string session_id = 3;
+ */
+ java.lang.String getSessionId();
+ /**
+ * string session_id = 3;
+ */
+ com.google.protobuf.ByteString
+ getSessionIdBytes();
+
+ /**
+ * .com.zpf.im.common.bean.msg.LoginRequest loginRequest = 4;
+ */
+ boolean hasLoginRequest();
+ /**
+ * .com.zpf.im.common.bean.msg.LoginRequest loginRequest = 4;
+ */
+ com.zpf.im.common.bean.msg.ProtoMsg.LoginRequest getLoginRequest();
+ /**
+ * .com.zpf.im.common.bean.msg.LoginRequest loginRequest = 4;
+ */
+ com.zpf.im.common.bean.msg.ProtoMsg.LoginRequestOrBuilder getLoginRequestOrBuilder();
+
+ /**
+ * .com.zpf.im.common.bean.msg.LoginResponse loginResponse = 5;
+ */
+ boolean hasLoginResponse();
+ /**
+ * .com.zpf.im.common.bean.msg.LoginResponse loginResponse = 5;
+ */
+ com.zpf.im.common.bean.msg.ProtoMsg.LoginResponse getLoginResponse();
+ /**
+ * .com.zpf.im.common.bean.msg.LoginResponse loginResponse = 5;
+ */
+ com.zpf.im.common.bean.msg.ProtoMsg.LoginResponseOrBuilder getLoginResponseOrBuilder();
+
+ /**
+ * .com.zpf.im.common.bean.msg.MessageRequest messageRequest = 6;
+ */
+ boolean hasMessageRequest();
+ /**
+ * .com.zpf.im.common.bean.msg.MessageRequest messageRequest = 6;
+ */
+ com.zpf.im.common.bean.msg.ProtoMsg.MessageRequest getMessageRequest();
+ /**
+ * .com.zpf.im.common.bean.msg.MessageRequest messageRequest = 6;
+ */
+ com.zpf.im.common.bean.msg.ProtoMsg.MessageRequestOrBuilder getMessageRequestOrBuilder();
+
+ /**
+ * .com.zpf.im.common.bean.msg.MessageResponse messageResponse = 7;
+ */
+ boolean hasMessageResponse();
+ /**
+ * .com.zpf.im.common.bean.msg.MessageResponse messageResponse = 7;
+ */
+ com.zpf.im.common.bean.msg.ProtoMsg.MessageResponse getMessageResponse();
+ /**
+ * .com.zpf.im.common.bean.msg.MessageResponse messageResponse = 7;
+ */
+ com.zpf.im.common.bean.msg.ProtoMsg.MessageResponseOrBuilder getMessageResponseOrBuilder();
+
+ /**
+ * .com.zpf.im.common.bean.msg.MessageNotification notification = 8;
+ */
+ boolean hasNotification();
+ /**
+ * .com.zpf.im.common.bean.msg.MessageNotification notification = 8;
+ */
+ com.zpf.im.common.bean.msg.ProtoMsg.MessageNotification getNotification();
+ /**
+ * .com.zpf.im.common.bean.msg.MessageNotification notification = 8;
+ */
+ com.zpf.im.common.bean.msg.ProtoMsg.MessageNotificationOrBuilder getNotificationOrBuilder();
+ }
+ /**
+ * Protobuf type {@code com.zpf.im.common.bean.msg.Message}
+ */
+ public static final class Message extends
+ com.google.protobuf.GeneratedMessageV3 implements
+ // @@protoc_insertion_point(message_implements:com.zpf.im.common.bean.msg.Message)
+ MessageOrBuilder {
+ private static final long serialVersionUID = 0L;
+ // Use Message.newBuilder() to construct.
+ private Message(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
+ super(builder);
+ }
+ private Message() {
+ type_ = 0;
+ sequence_ = 0L;
+ sessionId_ = "";
+ }
+
+ @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 {
+ this();
+ if (extensionRegistry == null) {
+ throw new java.lang.NullPointerException();
+ }
+ int mutable_bitField0_ = 0;
+ com.google.protobuf.UnknownFieldSet.Builder unknownFields =
+ com.google.protobuf.UnknownFieldSet.newBuilder();
+ try {
+ boolean done = false;
+ while (!done) {
+ int tag = input.readTag();
+ switch (tag) {
+ case 0:
+ done = true;
+ break;
+ case 8: {
+ int rawValue = input.readEnum();
+
+ type_ = rawValue;
+ break;
+ }
+ case 16: {
+
+ sequence_ = input.readUInt64();
+ break;
+ }
+ case 26: {
+ java.lang.String s = input.readStringRequireUtf8();
+
+ sessionId_ = s;
+ break;
+ }
+ case 34: {
+ com.zpf.im.common.bean.msg.ProtoMsg.LoginRequest.Builder subBuilder = null;
+ if (loginRequest_ != null) {
+ subBuilder = loginRequest_.toBuilder();
+ }
+ loginRequest_ = input.readMessage(com.zpf.im.common.bean.msg.ProtoMsg.LoginRequest.parser(), extensionRegistry);
+ if (subBuilder != null) {
+ subBuilder.mergeFrom(loginRequest_);
+ loginRequest_ = subBuilder.buildPartial();
+ }
+
+ break;
+ }
+ case 42: {
+ com.zpf.im.common.bean.msg.ProtoMsg.LoginResponse.Builder subBuilder = null;
+ if (loginResponse_ != null) {
+ subBuilder = loginResponse_.toBuilder();
+ }
+ loginResponse_ = input.readMessage(com.zpf.im.common.bean.msg.ProtoMsg.LoginResponse.parser(), extensionRegistry);
+ if (subBuilder != null) {
+ subBuilder.mergeFrom(loginResponse_);
+ loginResponse_ = subBuilder.buildPartial();
+ }
+
+ break;
+ }
+ case 50: {
+ com.zpf.im.common.bean.msg.ProtoMsg.MessageRequest.Builder subBuilder = null;
+ if (messageRequest_ != null) {
+ subBuilder = messageRequest_.toBuilder();
+ }
+ messageRequest_ = input.readMessage(com.zpf.im.common.bean.msg.ProtoMsg.MessageRequest.parser(), extensionRegistry);
+ if (subBuilder != null) {
+ subBuilder.mergeFrom(messageRequest_);
+ messageRequest_ = subBuilder.buildPartial();
+ }
+
+ break;
+ }
+ case 58: {
+ com.zpf.im.common.bean.msg.ProtoMsg.MessageResponse.Builder subBuilder = null;
+ if (messageResponse_ != null) {
+ subBuilder = messageResponse_.toBuilder();
+ }
+ messageResponse_ = input.readMessage(com.zpf.im.common.bean.msg.ProtoMsg.MessageResponse.parser(), extensionRegistry);
+ if (subBuilder != null) {
+ subBuilder.mergeFrom(messageResponse_);
+ messageResponse_ = subBuilder.buildPartial();
+ }
+
+ break;
+ }
+ case 66: {
+ com.zpf.im.common.bean.msg.ProtoMsg.MessageNotification.Builder subBuilder = null;
+ if (notification_ != null) {
+ subBuilder = notification_.toBuilder();
+ }
+ notification_ = input.readMessage(com.zpf.im.common.bean.msg.ProtoMsg.MessageNotification.parser(), extensionRegistry);
+ if (subBuilder != null) {
+ subBuilder.mergeFrom(notification_);
+ notification_ = subBuilder.buildPartial();
+ }
+
+ break;
+ }
+ default: {
+ if (!parseUnknownFieldProto3(
+ 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 com.zpf.im.common.bean.msg.ProtoMsg.internal_static_com_zpf_im_common_bean_msg_Message_descriptor;
+ }
+
+ @java.lang.Override
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internalGetFieldAccessorTable() {
+ return com.zpf.im.common.bean.msg.ProtoMsg.internal_static_com_zpf_im_common_bean_msg_Message_fieldAccessorTable
+ .ensureFieldAccessorsInitialized(
+ com.zpf.im.common.bean.msg.ProtoMsg.Message.class, com.zpf.im.common.bean.msg.ProtoMsg.Message.Builder.class);
+ }
+
+ public static final int TYPE_FIELD_NUMBER = 1;
+ private int type_;
+ /**
+ * .com.zpf.im.common.bean.msg.HeadType type = 1;
+ */
+ public int getTypeValue() {
+ return type_;
+ }
+ /**
+ * .com.zpf.im.common.bean.msg.HeadType type = 1;
+ */
+ public com.zpf.im.common.bean.msg.ProtoMsg.HeadType getType() {
+ @SuppressWarnings("deprecation")
+ com.zpf.im.common.bean.msg.ProtoMsg.HeadType result = com.zpf.im.common.bean.msg.ProtoMsg.HeadType.valueOf(type_);
+ return result == null ? com.zpf.im.common.bean.msg.ProtoMsg.HeadType.UNRECOGNIZED : result;
+ }
+
+ public static final int SEQUENCE_FIELD_NUMBER = 2;
+ private long sequence_;
+ /**
+ * uint64 sequence = 2;
+ */
+ public long getSequence() {
+ return sequence_;
+ }
+
+ public static final int SESSION_ID_FIELD_NUMBER = 3;
+ private volatile java.lang.Object sessionId_;
+ /**
+ * string session_id = 3;
+ */
+ public java.lang.String getSessionId() {
+ java.lang.Object ref = sessionId_;
+ 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();
+ sessionId_ = s;
+ return s;
+ }
+ }
+ /**
+ * string session_id = 3;
+ */
+ public com.google.protobuf.ByteString
+ getSessionIdBytes() {
+ java.lang.Object ref = sessionId_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8(
+ (java.lang.String) ref);
+ sessionId_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ public static final int LOGINREQUEST_FIELD_NUMBER = 4;
+ private com.zpf.im.common.bean.msg.ProtoMsg.LoginRequest loginRequest_;
+ /**
+ * .com.zpf.im.common.bean.msg.LoginRequest loginRequest = 4;
+ */
+ public boolean hasLoginRequest() {
+ return loginRequest_ != null;
+ }
+ /**
+ * .com.zpf.im.common.bean.msg.LoginRequest loginRequest = 4;
+ */
+ public com.zpf.im.common.bean.msg.ProtoMsg.LoginRequest getLoginRequest() {
+ return loginRequest_ == null ? com.zpf.im.common.bean.msg.ProtoMsg.LoginRequest.getDefaultInstance() : loginRequest_;
+ }
+ /**
+ * .com.zpf.im.common.bean.msg.LoginRequest loginRequest = 4;
+ */
+ public com.zpf.im.common.bean.msg.ProtoMsg.LoginRequestOrBuilder getLoginRequestOrBuilder() {
+ return getLoginRequest();
+ }
+
+ public static final int LOGINRESPONSE_FIELD_NUMBER = 5;
+ private com.zpf.im.common.bean.msg.ProtoMsg.LoginResponse loginResponse_;
+ /**
+ * .com.zpf.im.common.bean.msg.LoginResponse loginResponse = 5;
+ */
+ public boolean hasLoginResponse() {
+ return loginResponse_ != null;
+ }
+ /**
+ * .com.zpf.im.common.bean.msg.LoginResponse loginResponse = 5;
+ */
+ public com.zpf.im.common.bean.msg.ProtoMsg.LoginResponse getLoginResponse() {
+ return loginResponse_ == null ? com.zpf.im.common.bean.msg.ProtoMsg.LoginResponse.getDefaultInstance() : loginResponse_;
+ }
+ /**
+ * .com.zpf.im.common.bean.msg.LoginResponse loginResponse = 5;
+ */
+ public com.zpf.im.common.bean.msg.ProtoMsg.LoginResponseOrBuilder getLoginResponseOrBuilder() {
+ return getLoginResponse();
+ }
+
+ public static final int MESSAGEREQUEST_FIELD_NUMBER = 6;
+ private com.zpf.im.common.bean.msg.ProtoMsg.MessageRequest messageRequest_;
+ /**
+ * .com.zpf.im.common.bean.msg.MessageRequest messageRequest = 6;
+ */
+ public boolean hasMessageRequest() {
+ return messageRequest_ != null;
+ }
+ /**
+ * .com.zpf.im.common.bean.msg.MessageRequest messageRequest = 6;
+ */
+ public com.zpf.im.common.bean.msg.ProtoMsg.MessageRequest getMessageRequest() {
+ return messageRequest_ == null ? com.zpf.im.common.bean.msg.ProtoMsg.MessageRequest.getDefaultInstance() : messageRequest_;
+ }
+ /**
+ * .com.zpf.im.common.bean.msg.MessageRequest messageRequest = 6;
+ */
+ public com.zpf.im.common.bean.msg.ProtoMsg.MessageRequestOrBuilder getMessageRequestOrBuilder() {
+ return getMessageRequest();
+ }
+
+ public static final int MESSAGERESPONSE_FIELD_NUMBER = 7;
+ private com.zpf.im.common.bean.msg.ProtoMsg.MessageResponse messageResponse_;
+ /**
+ * .com.zpf.im.common.bean.msg.MessageResponse messageResponse = 7;
+ */
+ public boolean hasMessageResponse() {
+ return messageResponse_ != null;
+ }
+ /**
+ * .com.zpf.im.common.bean.msg.MessageResponse messageResponse = 7;
+ */
+ public com.zpf.im.common.bean.msg.ProtoMsg.MessageResponse getMessageResponse() {
+ return messageResponse_ == null ? com.zpf.im.common.bean.msg.ProtoMsg.MessageResponse.getDefaultInstance() : messageResponse_;
+ }
+ /**
+ * .com.zpf.im.common.bean.msg.MessageResponse messageResponse = 7;
+ */
+ public com.zpf.im.common.bean.msg.ProtoMsg.MessageResponseOrBuilder getMessageResponseOrBuilder() {
+ return getMessageResponse();
+ }
+
+ public static final int NOTIFICATION_FIELD_NUMBER = 8;
+ private com.zpf.im.common.bean.msg.ProtoMsg.MessageNotification notification_;
+ /**
+ * .com.zpf.im.common.bean.msg.MessageNotification notification = 8;
+ */
+ public boolean hasNotification() {
+ return notification_ != null;
+ }
+ /**
+ * .com.zpf.im.common.bean.msg.MessageNotification notification = 8;
+ */
+ public com.zpf.im.common.bean.msg.ProtoMsg.MessageNotification getNotification() {
+ return notification_ == null ? com.zpf.im.common.bean.msg.ProtoMsg.MessageNotification.getDefaultInstance() : notification_;
+ }
+ /**
+ * .com.zpf.im.common.bean.msg.MessageNotification notification = 8;
+ */
+ public com.zpf.im.common.bean.msg.ProtoMsg.MessageNotificationOrBuilder getNotificationOrBuilder() {
+ return getNotification();
+ }
+
+ 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 (type_ != com.zpf.im.common.bean.msg.ProtoMsg.HeadType.LOGIN_REQUEST.getNumber()) {
+ output.writeEnum(1, type_);
+ }
+ if (sequence_ != 0L) {
+ output.writeUInt64(2, sequence_);
+ }
+ if (!getSessionIdBytes().isEmpty()) {
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 3, sessionId_);
+ }
+ if (loginRequest_ != null) {
+ output.writeMessage(4, getLoginRequest());
+ }
+ if (loginResponse_ != null) {
+ output.writeMessage(5, getLoginResponse());
+ }
+ if (messageRequest_ != null) {
+ output.writeMessage(6, getMessageRequest());
+ }
+ if (messageResponse_ != null) {
+ output.writeMessage(7, getMessageResponse());
+ }
+ if (notification_ != null) {
+ output.writeMessage(8, getNotification());
+ }
+ unknownFields.writeTo(output);
+ }
+
+ @java.lang.Override
+ public int getSerializedSize() {
+ int size = memoizedSize;
+ if (size != -1) return size;
+
+ size = 0;
+ if (type_ != com.zpf.im.common.bean.msg.ProtoMsg.HeadType.LOGIN_REQUEST.getNumber()) {
+ size += com.google.protobuf.CodedOutputStream
+ .computeEnumSize(1, type_);
+ }
+ if (sequence_ != 0L) {
+ size += com.google.protobuf.CodedOutputStream
+ .computeUInt64Size(2, sequence_);
+ }
+ if (!getSessionIdBytes().isEmpty()) {
+ size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, sessionId_);
+ }
+ if (loginRequest_ != null) {
+ size += com.google.protobuf.CodedOutputStream
+ .computeMessageSize(4, getLoginRequest());
+ }
+ if (loginResponse_ != null) {
+ size += com.google.protobuf.CodedOutputStream
+ .computeMessageSize(5, getLoginResponse());
+ }
+ if (messageRequest_ != null) {
+ size += com.google.protobuf.CodedOutputStream
+ .computeMessageSize(6, getMessageRequest());
+ }
+ if (messageResponse_ != null) {
+ size += com.google.protobuf.CodedOutputStream
+ .computeMessageSize(7, getMessageResponse());
+ }
+ if (notification_ != null) {
+ size += com.google.protobuf.CodedOutputStream
+ .computeMessageSize(8, getNotification());
+ }
+ 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 com.zpf.im.common.bean.msg.ProtoMsg.Message)) {
+ return super.equals(obj);
+ }
+ com.zpf.im.common.bean.msg.ProtoMsg.Message other = (com.zpf.im.common.bean.msg.ProtoMsg.Message) obj;
+
+ boolean result = true;
+ result = result && type_ == other.type_;
+ result = result && (getSequence()
+ == other.getSequence());
+ result = result && getSessionId()
+ .equals(other.getSessionId());
+ result = result && (hasLoginRequest() == other.hasLoginRequest());
+ if (hasLoginRequest()) {
+ result = result && getLoginRequest()
+ .equals(other.getLoginRequest());
+ }
+ result = result && (hasLoginResponse() == other.hasLoginResponse());
+ if (hasLoginResponse()) {
+ result = result && getLoginResponse()
+ .equals(other.getLoginResponse());
+ }
+ result = result && (hasMessageRequest() == other.hasMessageRequest());
+ if (hasMessageRequest()) {
+ result = result && getMessageRequest()
+ .equals(other.getMessageRequest());
+ }
+ result = result && (hasMessageResponse() == other.hasMessageResponse());
+ if (hasMessageResponse()) {
+ result = result && getMessageResponse()
+ .equals(other.getMessageResponse());
+ }
+ result = result && (hasNotification() == other.hasNotification());
+ if (hasNotification()) {
+ result = result && getNotification()
+ .equals(other.getNotification());
+ }
+ result = result && unknownFields.equals(other.unknownFields);
+ return result;
+ }
+
+ @java.lang.Override
+ public int hashCode() {
+ if (memoizedHashCode != 0) {
+ return memoizedHashCode;
+ }
+ int hash = 41;
+ hash = (19 * hash) + getDescriptor().hashCode();
+ hash = (37 * hash) + TYPE_FIELD_NUMBER;
+ hash = (53 * hash) + type_;
+ hash = (37 * hash) + SEQUENCE_FIELD_NUMBER;
+ hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
+ getSequence());
+ hash = (37 * hash) + SESSION_ID_FIELD_NUMBER;
+ hash = (53 * hash) + getSessionId().hashCode();
+ if (hasLoginRequest()) {
+ hash = (37 * hash) + LOGINREQUEST_FIELD_NUMBER;
+ hash = (53 * hash) + getLoginRequest().hashCode();
+ }
+ if (hasLoginResponse()) {
+ hash = (37 * hash) + LOGINRESPONSE_FIELD_NUMBER;
+ hash = (53 * hash) + getLoginResponse().hashCode();
+ }
+ if (hasMessageRequest()) {
+ hash = (37 * hash) + MESSAGEREQUEST_FIELD_NUMBER;
+ hash = (53 * hash) + getMessageRequest().hashCode();
+ }
+ if (hasMessageResponse()) {
+ hash = (37 * hash) + MESSAGERESPONSE_FIELD_NUMBER;
+ hash = (53 * hash) + getMessageResponse().hashCode();
+ }
+ if (hasNotification()) {
+ hash = (37 * hash) + NOTIFICATION_FIELD_NUMBER;
+ hash = (53 * hash) + getNotification().hashCode();
+ }
+ hash = (29 * hash) + unknownFields.hashCode();
+ memoizedHashCode = hash;
+ return hash;
+ }
+
+ public static com.zpf.im.common.bean.msg.ProtoMsg.Message parseFrom(
+ java.nio.ByteBuffer data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static com.zpf.im.common.bean.msg.ProtoMsg.Message parseFrom(
+ java.nio.ByteBuffer data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static com.zpf.im.common.bean.msg.ProtoMsg.Message parseFrom(
+ com.google.protobuf.ByteString data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static com.zpf.im.common.bean.msg.ProtoMsg.Message parseFrom(
+ com.google.protobuf.ByteString data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static com.zpf.im.common.bean.msg.ProtoMsg.Message parseFrom(byte[] data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static com.zpf.im.common.bean.msg.ProtoMsg.Message parseFrom(
+ byte[] data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static com.zpf.im.common.bean.msg.ProtoMsg.Message parseFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input);
+ }
+ public static com.zpf.im.common.bean.msg.ProtoMsg.Message 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 com.zpf.im.common.bean.msg.ProtoMsg.Message parseDelimitedFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseDelimitedWithIOException(PARSER, input);
+ }
+ public static com.zpf.im.common.bean.msg.ProtoMsg.Message 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 com.zpf.im.common.bean.msg.ProtoMsg.Message parseFrom(
+ com.google.protobuf.CodedInputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input);
+ }
+ public static com.zpf.im.common.bean.msg.ProtoMsg.Message 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(com.zpf.im.common.bean.msg.ProtoMsg.Message 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 com.zpf.im.common.bean.msg.Message}
+ */
+ public static final class Builder extends
+ com.google.protobuf.GeneratedMessageV3.Builder.com.zpf.im.common.bean.msg.HeadType type = 1;
+ */
+ public int getTypeValue() {
+ return type_;
+ }
+ /**
+ * .com.zpf.im.common.bean.msg.HeadType type = 1;
+ */
+ public Builder setTypeValue(int value) {
+ type_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ * .com.zpf.im.common.bean.msg.HeadType type = 1;
+ */
+ public com.zpf.im.common.bean.msg.ProtoMsg.HeadType getType() {
+ @SuppressWarnings("deprecation")
+ com.zpf.im.common.bean.msg.ProtoMsg.HeadType result = com.zpf.im.common.bean.msg.ProtoMsg.HeadType.valueOf(type_);
+ return result == null ? com.zpf.im.common.bean.msg.ProtoMsg.HeadType.UNRECOGNIZED : result;
+ }
+ /**
+ * .com.zpf.im.common.bean.msg.HeadType type = 1;
+ */
+ public Builder setType(com.zpf.im.common.bean.msg.ProtoMsg.HeadType value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+
+ type_ = value.getNumber();
+ onChanged();
+ return this;
+ }
+ /**
+ * .com.zpf.im.common.bean.msg.HeadType type = 1;
+ */
+ public Builder clearType() {
+
+ type_ = 0;
+ onChanged();
+ return this;
+ }
+
+ private long sequence_ ;
+ /**
+ * uint64 sequence = 2;
+ */
+ public long getSequence() {
+ return sequence_;
+ }
+ /**
+ * uint64 sequence = 2;
+ */
+ public Builder setSequence(long value) {
+
+ sequence_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ * uint64 sequence = 2;
+ */
+ public Builder clearSequence() {
+
+ sequence_ = 0L;
+ onChanged();
+ return this;
+ }
+
+ private java.lang.Object sessionId_ = "";
+ /**
+ * string session_id = 3;
+ */
+ public java.lang.String getSessionId() {
+ java.lang.Object ref = sessionId_;
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs =
+ (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ sessionId_ = s;
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+ /**
+ * string session_id = 3;
+ */
+ public com.google.protobuf.ByteString
+ getSessionIdBytes() {
+ java.lang.Object ref = sessionId_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8(
+ (java.lang.String) ref);
+ sessionId_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+ /**
+ * string session_id = 3;
+ */
+ public Builder setSessionId(
+ java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+
+ sessionId_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ * string session_id = 3;
+ */
+ public Builder clearSessionId() {
+
+ sessionId_ = getDefaultInstance().getSessionId();
+ onChanged();
+ return this;
+ }
+ /**
+ * string session_id = 3;
+ */
+ public Builder setSessionIdBytes(
+ com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ checkByteStringIsUtf8(value);
+
+ sessionId_ = value;
+ onChanged();
+ return this;
+ }
+
+ private com.zpf.im.common.bean.msg.ProtoMsg.LoginRequest loginRequest_ = null;
+ private com.google.protobuf.SingleFieldBuilderV3<
+ com.zpf.im.common.bean.msg.ProtoMsg.LoginRequest, com.zpf.im.common.bean.msg.ProtoMsg.LoginRequest.Builder, com.zpf.im.common.bean.msg.ProtoMsg.LoginRequestOrBuilder> loginRequestBuilder_;
+ /**
+ * .com.zpf.im.common.bean.msg.LoginRequest loginRequest = 4;
+ */
+ public boolean hasLoginRequest() {
+ return loginRequestBuilder_ != null || loginRequest_ != null;
+ }
+ /**
+ * .com.zpf.im.common.bean.msg.LoginRequest loginRequest = 4;
+ */
+ public com.zpf.im.common.bean.msg.ProtoMsg.LoginRequest getLoginRequest() {
+ if (loginRequestBuilder_ == null) {
+ return loginRequest_ == null ? com.zpf.im.common.bean.msg.ProtoMsg.LoginRequest.getDefaultInstance() : loginRequest_;
+ } else {
+ return loginRequestBuilder_.getMessage();
+ }
+ }
+ /**
+ * .com.zpf.im.common.bean.msg.LoginRequest loginRequest = 4;
+ */
+ public Builder setLoginRequest(com.zpf.im.common.bean.msg.ProtoMsg.LoginRequest value) {
+ if (loginRequestBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ loginRequest_ = value;
+ onChanged();
+ } else {
+ loginRequestBuilder_.setMessage(value);
+ }
+
+ return this;
+ }
+ /**
+ * .com.zpf.im.common.bean.msg.LoginRequest loginRequest = 4;
+ */
+ public Builder setLoginRequest(
+ com.zpf.im.common.bean.msg.ProtoMsg.LoginRequest.Builder builderForValue) {
+ if (loginRequestBuilder_ == null) {
+ loginRequest_ = builderForValue.build();
+ onChanged();
+ } else {
+ loginRequestBuilder_.setMessage(builderForValue.build());
+ }
+
+ return this;
+ }
+ /**
+ * .com.zpf.im.common.bean.msg.LoginRequest loginRequest = 4;
+ */
+ public Builder mergeLoginRequest(com.zpf.im.common.bean.msg.ProtoMsg.LoginRequest value) {
+ if (loginRequestBuilder_ == null) {
+ if (loginRequest_ != null) {
+ loginRequest_ =
+ com.zpf.im.common.bean.msg.ProtoMsg.LoginRequest.newBuilder(loginRequest_).mergeFrom(value).buildPartial();
+ } else {
+ loginRequest_ = value;
+ }
+ onChanged();
+ } else {
+ loginRequestBuilder_.mergeFrom(value);
+ }
+
+ return this;
+ }
+ /**
+ * .com.zpf.im.common.bean.msg.LoginRequest loginRequest = 4;
+ */
+ public Builder clearLoginRequest() {
+ if (loginRequestBuilder_ == null) {
+ loginRequest_ = null;
+ onChanged();
+ } else {
+ loginRequest_ = null;
+ loginRequestBuilder_ = null;
+ }
+
+ return this;
+ }
+ /**
+ * .com.zpf.im.common.bean.msg.LoginRequest loginRequest = 4;
+ */
+ public com.zpf.im.common.bean.msg.ProtoMsg.LoginRequest.Builder getLoginRequestBuilder() {
+
+ onChanged();
+ return getLoginRequestFieldBuilder().getBuilder();
+ }
+ /**
+ * .com.zpf.im.common.bean.msg.LoginRequest loginRequest = 4;
+ */
+ public com.zpf.im.common.bean.msg.ProtoMsg.LoginRequestOrBuilder getLoginRequestOrBuilder() {
+ if (loginRequestBuilder_ != null) {
+ return loginRequestBuilder_.getMessageOrBuilder();
+ } else {
+ return loginRequest_ == null ?
+ com.zpf.im.common.bean.msg.ProtoMsg.LoginRequest.getDefaultInstance() : loginRequest_;
+ }
+ }
+ /**
+ * .com.zpf.im.common.bean.msg.LoginRequest loginRequest = 4;
+ */
+ private com.google.protobuf.SingleFieldBuilderV3<
+ com.zpf.im.common.bean.msg.ProtoMsg.LoginRequest, com.zpf.im.common.bean.msg.ProtoMsg.LoginRequest.Builder, com.zpf.im.common.bean.msg.ProtoMsg.LoginRequestOrBuilder>
+ getLoginRequestFieldBuilder() {
+ if (loginRequestBuilder_ == null) {
+ loginRequestBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
+ com.zpf.im.common.bean.msg.ProtoMsg.LoginRequest, com.zpf.im.common.bean.msg.ProtoMsg.LoginRequest.Builder, com.zpf.im.common.bean.msg.ProtoMsg.LoginRequestOrBuilder>(
+ getLoginRequest(),
+ getParentForChildren(),
+ isClean());
+ loginRequest_ = null;
+ }
+ return loginRequestBuilder_;
+ }
+
+ private com.zpf.im.common.bean.msg.ProtoMsg.LoginResponse loginResponse_ = null;
+ private com.google.protobuf.SingleFieldBuilderV3<
+ com.zpf.im.common.bean.msg.ProtoMsg.LoginResponse, com.zpf.im.common.bean.msg.ProtoMsg.LoginResponse.Builder, com.zpf.im.common.bean.msg.ProtoMsg.LoginResponseOrBuilder> loginResponseBuilder_;
+ /**
+ * .com.zpf.im.common.bean.msg.LoginResponse loginResponse = 5;
+ */
+ public boolean hasLoginResponse() {
+ return loginResponseBuilder_ != null || loginResponse_ != null;
+ }
+ /**
+ * .com.zpf.im.common.bean.msg.LoginResponse loginResponse = 5;
+ */
+ public com.zpf.im.common.bean.msg.ProtoMsg.LoginResponse getLoginResponse() {
+ if (loginResponseBuilder_ == null) {
+ return loginResponse_ == null ? com.zpf.im.common.bean.msg.ProtoMsg.LoginResponse.getDefaultInstance() : loginResponse_;
+ } else {
+ return loginResponseBuilder_.getMessage();
+ }
+ }
+ /**
+ * .com.zpf.im.common.bean.msg.LoginResponse loginResponse = 5;
+ */
+ public Builder setLoginResponse(com.zpf.im.common.bean.msg.ProtoMsg.LoginResponse value) {
+ if (loginResponseBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ loginResponse_ = value;
+ onChanged();
+ } else {
+ loginResponseBuilder_.setMessage(value);
+ }
+
+ return this;
+ }
+ /**
+ * .com.zpf.im.common.bean.msg.LoginResponse loginResponse = 5;
+ */
+ public Builder setLoginResponse(
+ com.zpf.im.common.bean.msg.ProtoMsg.LoginResponse.Builder builderForValue) {
+ if (loginResponseBuilder_ == null) {
+ loginResponse_ = builderForValue.build();
+ onChanged();
+ } else {
+ loginResponseBuilder_.setMessage(builderForValue.build());
+ }
+
+ return this;
+ }
+ /**
+ * .com.zpf.im.common.bean.msg.LoginResponse loginResponse = 5;
+ */
+ public Builder mergeLoginResponse(com.zpf.im.common.bean.msg.ProtoMsg.LoginResponse value) {
+ if (loginResponseBuilder_ == null) {
+ if (loginResponse_ != null) {
+ loginResponse_ =
+ com.zpf.im.common.bean.msg.ProtoMsg.LoginResponse.newBuilder(loginResponse_).mergeFrom(value).buildPartial();
+ } else {
+ loginResponse_ = value;
+ }
+ onChanged();
+ } else {
+ loginResponseBuilder_.mergeFrom(value);
+ }
+
+ return this;
+ }
+ /**
+ * .com.zpf.im.common.bean.msg.LoginResponse loginResponse = 5;
+ */
+ public Builder clearLoginResponse() {
+ if (loginResponseBuilder_ == null) {
+ loginResponse_ = null;
+ onChanged();
+ } else {
+ loginResponse_ = null;
+ loginResponseBuilder_ = null;
+ }
+
+ return this;
+ }
+ /**
+ * .com.zpf.im.common.bean.msg.LoginResponse loginResponse = 5;
+ */
+ public com.zpf.im.common.bean.msg.ProtoMsg.LoginResponse.Builder getLoginResponseBuilder() {
+
+ onChanged();
+ return getLoginResponseFieldBuilder().getBuilder();
+ }
+ /**
+ * .com.zpf.im.common.bean.msg.LoginResponse loginResponse = 5;
+ */
+ public com.zpf.im.common.bean.msg.ProtoMsg.LoginResponseOrBuilder getLoginResponseOrBuilder() {
+ if (loginResponseBuilder_ != null) {
+ return loginResponseBuilder_.getMessageOrBuilder();
+ } else {
+ return loginResponse_ == null ?
+ com.zpf.im.common.bean.msg.ProtoMsg.LoginResponse.getDefaultInstance() : loginResponse_;
+ }
+ }
+ /**
+ * .com.zpf.im.common.bean.msg.LoginResponse loginResponse = 5;
+ */
+ private com.google.protobuf.SingleFieldBuilderV3<
+ com.zpf.im.common.bean.msg.ProtoMsg.LoginResponse, com.zpf.im.common.bean.msg.ProtoMsg.LoginResponse.Builder, com.zpf.im.common.bean.msg.ProtoMsg.LoginResponseOrBuilder>
+ getLoginResponseFieldBuilder() {
+ if (loginResponseBuilder_ == null) {
+ loginResponseBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
+ com.zpf.im.common.bean.msg.ProtoMsg.LoginResponse, com.zpf.im.common.bean.msg.ProtoMsg.LoginResponse.Builder, com.zpf.im.common.bean.msg.ProtoMsg.LoginResponseOrBuilder>(
+ getLoginResponse(),
+ getParentForChildren(),
+ isClean());
+ loginResponse_ = null;
+ }
+ return loginResponseBuilder_;
+ }
+
+ private com.zpf.im.common.bean.msg.ProtoMsg.MessageRequest messageRequest_ = null;
+ private com.google.protobuf.SingleFieldBuilderV3<
+ com.zpf.im.common.bean.msg.ProtoMsg.MessageRequest, com.zpf.im.common.bean.msg.ProtoMsg.MessageRequest.Builder, com.zpf.im.common.bean.msg.ProtoMsg.MessageRequestOrBuilder> messageRequestBuilder_;
+ /**
+ * .com.zpf.im.common.bean.msg.MessageRequest messageRequest = 6;
+ */
+ public boolean hasMessageRequest() {
+ return messageRequestBuilder_ != null || messageRequest_ != null;
+ }
+ /**
+ * .com.zpf.im.common.bean.msg.MessageRequest messageRequest = 6;
+ */
+ public com.zpf.im.common.bean.msg.ProtoMsg.MessageRequest getMessageRequest() {
+ if (messageRequestBuilder_ == null) {
+ return messageRequest_ == null ? com.zpf.im.common.bean.msg.ProtoMsg.MessageRequest.getDefaultInstance() : messageRequest_;
+ } else {
+ return messageRequestBuilder_.getMessage();
+ }
+ }
+ /**
+ * .com.zpf.im.common.bean.msg.MessageRequest messageRequest = 6;
+ */
+ public Builder setMessageRequest(com.zpf.im.common.bean.msg.ProtoMsg.MessageRequest value) {
+ if (messageRequestBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ messageRequest_ = value;
+ onChanged();
+ } else {
+ messageRequestBuilder_.setMessage(value);
+ }
+
+ return this;
+ }
+ /**
+ * .com.zpf.im.common.bean.msg.MessageRequest messageRequest = 6;
+ */
+ public Builder setMessageRequest(
+ com.zpf.im.common.bean.msg.ProtoMsg.MessageRequest.Builder builderForValue) {
+ if (messageRequestBuilder_ == null) {
+ messageRequest_ = builderForValue.build();
+ onChanged();
+ } else {
+ messageRequestBuilder_.setMessage(builderForValue.build());
+ }
+
+ return this;
+ }
+ /**
+ * .com.zpf.im.common.bean.msg.MessageRequest messageRequest = 6;
+ */
+ public Builder mergeMessageRequest(com.zpf.im.common.bean.msg.ProtoMsg.MessageRequest value) {
+ if (messageRequestBuilder_ == null) {
+ if (messageRequest_ != null) {
+ messageRequest_ =
+ com.zpf.im.common.bean.msg.ProtoMsg.MessageRequest.newBuilder(messageRequest_).mergeFrom(value).buildPartial();
+ } else {
+ messageRequest_ = value;
+ }
+ onChanged();
+ } else {
+ messageRequestBuilder_.mergeFrom(value);
+ }
+
+ return this;
+ }
+ /**
+ * .com.zpf.im.common.bean.msg.MessageRequest messageRequest = 6;
+ */
+ public Builder clearMessageRequest() {
+ if (messageRequestBuilder_ == null) {
+ messageRequest_ = null;
+ onChanged();
+ } else {
+ messageRequest_ = null;
+ messageRequestBuilder_ = null;
+ }
+
+ return this;
+ }
+ /**
+ * .com.zpf.im.common.bean.msg.MessageRequest messageRequest = 6;
+ */
+ public com.zpf.im.common.bean.msg.ProtoMsg.MessageRequest.Builder getMessageRequestBuilder() {
+
+ onChanged();
+ return getMessageRequestFieldBuilder().getBuilder();
+ }
+ /**
+ * .com.zpf.im.common.bean.msg.MessageRequest messageRequest = 6;
+ */
+ public com.zpf.im.common.bean.msg.ProtoMsg.MessageRequestOrBuilder getMessageRequestOrBuilder() {
+ if (messageRequestBuilder_ != null) {
+ return messageRequestBuilder_.getMessageOrBuilder();
+ } else {
+ return messageRequest_ == null ?
+ com.zpf.im.common.bean.msg.ProtoMsg.MessageRequest.getDefaultInstance() : messageRequest_;
+ }
+ }
+ /**
+ * .com.zpf.im.common.bean.msg.MessageRequest messageRequest = 6;
+ */
+ private com.google.protobuf.SingleFieldBuilderV3<
+ com.zpf.im.common.bean.msg.ProtoMsg.MessageRequest, com.zpf.im.common.bean.msg.ProtoMsg.MessageRequest.Builder, com.zpf.im.common.bean.msg.ProtoMsg.MessageRequestOrBuilder>
+ getMessageRequestFieldBuilder() {
+ if (messageRequestBuilder_ == null) {
+ messageRequestBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
+ com.zpf.im.common.bean.msg.ProtoMsg.MessageRequest, com.zpf.im.common.bean.msg.ProtoMsg.MessageRequest.Builder, com.zpf.im.common.bean.msg.ProtoMsg.MessageRequestOrBuilder>(
+ getMessageRequest(),
+ getParentForChildren(),
+ isClean());
+ messageRequest_ = null;
+ }
+ return messageRequestBuilder_;
+ }
+
+ private com.zpf.im.common.bean.msg.ProtoMsg.MessageResponse messageResponse_ = null;
+ private com.google.protobuf.SingleFieldBuilderV3<
+ com.zpf.im.common.bean.msg.ProtoMsg.MessageResponse, com.zpf.im.common.bean.msg.ProtoMsg.MessageResponse.Builder, com.zpf.im.common.bean.msg.ProtoMsg.MessageResponseOrBuilder> messageResponseBuilder_;
+ /**
+ * .com.zpf.im.common.bean.msg.MessageResponse messageResponse = 7;
+ */
+ public boolean hasMessageResponse() {
+ return messageResponseBuilder_ != null || messageResponse_ != null;
+ }
+ /**
+ * .com.zpf.im.common.bean.msg.MessageResponse messageResponse = 7;
+ */
+ public com.zpf.im.common.bean.msg.ProtoMsg.MessageResponse getMessageResponse() {
+ if (messageResponseBuilder_ == null) {
+ return messageResponse_ == null ? com.zpf.im.common.bean.msg.ProtoMsg.MessageResponse.getDefaultInstance() : messageResponse_;
+ } else {
+ return messageResponseBuilder_.getMessage();
+ }
+ }
+ /**
+ * .com.zpf.im.common.bean.msg.MessageResponse messageResponse = 7;
+ */
+ public Builder setMessageResponse(com.zpf.im.common.bean.msg.ProtoMsg.MessageResponse value) {
+ if (messageResponseBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ messageResponse_ = value;
+ onChanged();
+ } else {
+ messageResponseBuilder_.setMessage(value);
+ }
+
+ return this;
+ }
+ /**
+ * .com.zpf.im.common.bean.msg.MessageResponse messageResponse = 7;
+ */
+ public Builder setMessageResponse(
+ com.zpf.im.common.bean.msg.ProtoMsg.MessageResponse.Builder builderForValue) {
+ if (messageResponseBuilder_ == null) {
+ messageResponse_ = builderForValue.build();
+ onChanged();
+ } else {
+ messageResponseBuilder_.setMessage(builderForValue.build());
+ }
+
+ return this;
+ }
+ /**
+ * .com.zpf.im.common.bean.msg.MessageResponse messageResponse = 7;
+ */
+ public Builder mergeMessageResponse(com.zpf.im.common.bean.msg.ProtoMsg.MessageResponse value) {
+ if (messageResponseBuilder_ == null) {
+ if (messageResponse_ != null) {
+ messageResponse_ =
+ com.zpf.im.common.bean.msg.ProtoMsg.MessageResponse.newBuilder(messageResponse_).mergeFrom(value).buildPartial();
+ } else {
+ messageResponse_ = value;
+ }
+ onChanged();
+ } else {
+ messageResponseBuilder_.mergeFrom(value);
+ }
+
+ return this;
+ }
+ /**
+ * .com.zpf.im.common.bean.msg.MessageResponse messageResponse = 7;
+ */
+ public Builder clearMessageResponse() {
+ if (messageResponseBuilder_ == null) {
+ messageResponse_ = null;
+ onChanged();
+ } else {
+ messageResponse_ = null;
+ messageResponseBuilder_ = null;
+ }
+
+ return this;
+ }
+ /**
+ * .com.zpf.im.common.bean.msg.MessageResponse messageResponse = 7;
+ */
+ public com.zpf.im.common.bean.msg.ProtoMsg.MessageResponse.Builder getMessageResponseBuilder() {
+
+ onChanged();
+ return getMessageResponseFieldBuilder().getBuilder();
+ }
+ /**
+ * .com.zpf.im.common.bean.msg.MessageResponse messageResponse = 7;
+ */
+ public com.zpf.im.common.bean.msg.ProtoMsg.MessageResponseOrBuilder getMessageResponseOrBuilder() {
+ if (messageResponseBuilder_ != null) {
+ return messageResponseBuilder_.getMessageOrBuilder();
+ } else {
+ return messageResponse_ == null ?
+ com.zpf.im.common.bean.msg.ProtoMsg.MessageResponse.getDefaultInstance() : messageResponse_;
+ }
+ }
+ /**
+ * .com.zpf.im.common.bean.msg.MessageResponse messageResponse = 7;
+ */
+ private com.google.protobuf.SingleFieldBuilderV3<
+ com.zpf.im.common.bean.msg.ProtoMsg.MessageResponse, com.zpf.im.common.bean.msg.ProtoMsg.MessageResponse.Builder, com.zpf.im.common.bean.msg.ProtoMsg.MessageResponseOrBuilder>
+ getMessageResponseFieldBuilder() {
+ if (messageResponseBuilder_ == null) {
+ messageResponseBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
+ com.zpf.im.common.bean.msg.ProtoMsg.MessageResponse, com.zpf.im.common.bean.msg.ProtoMsg.MessageResponse.Builder, com.zpf.im.common.bean.msg.ProtoMsg.MessageResponseOrBuilder>(
+ getMessageResponse(),
+ getParentForChildren(),
+ isClean());
+ messageResponse_ = null;
+ }
+ return messageResponseBuilder_;
+ }
+
+ private com.zpf.im.common.bean.msg.ProtoMsg.MessageNotification notification_ = null;
+ private com.google.protobuf.SingleFieldBuilderV3<
+ com.zpf.im.common.bean.msg.ProtoMsg.MessageNotification, com.zpf.im.common.bean.msg.ProtoMsg.MessageNotification.Builder, com.zpf.im.common.bean.msg.ProtoMsg.MessageNotificationOrBuilder> notificationBuilder_;
+ /**
+ * .com.zpf.im.common.bean.msg.MessageNotification notification = 8;
+ */
+ public boolean hasNotification() {
+ return notificationBuilder_ != null || notification_ != null;
+ }
+ /**
+ * .com.zpf.im.common.bean.msg.MessageNotification notification = 8;
+ */
+ public com.zpf.im.common.bean.msg.ProtoMsg.MessageNotification getNotification() {
+ if (notificationBuilder_ == null) {
+ return notification_ == null ? com.zpf.im.common.bean.msg.ProtoMsg.MessageNotification.getDefaultInstance() : notification_;
+ } else {
+ return notificationBuilder_.getMessage();
+ }
+ }
+ /**
+ * .com.zpf.im.common.bean.msg.MessageNotification notification = 8;
+ */
+ public Builder setNotification(com.zpf.im.common.bean.msg.ProtoMsg.MessageNotification value) {
+ if (notificationBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ notification_ = value;
+ onChanged();
+ } else {
+ notificationBuilder_.setMessage(value);
+ }
+
+ return this;
+ }
+ /**
+ * .com.zpf.im.common.bean.msg.MessageNotification notification = 8;
+ */
+ public Builder setNotification(
+ com.zpf.im.common.bean.msg.ProtoMsg.MessageNotification.Builder builderForValue) {
+ if (notificationBuilder_ == null) {
+ notification_ = builderForValue.build();
+ onChanged();
+ } else {
+ notificationBuilder_.setMessage(builderForValue.build());
+ }
+
+ return this;
+ }
+ /**
+ * .com.zpf.im.common.bean.msg.MessageNotification notification = 8;
+ */
+ public Builder mergeNotification(com.zpf.im.common.bean.msg.ProtoMsg.MessageNotification value) {
+ if (notificationBuilder_ == null) {
+ if (notification_ != null) {
+ notification_ =
+ com.zpf.im.common.bean.msg.ProtoMsg.MessageNotification.newBuilder(notification_).mergeFrom(value).buildPartial();
+ } else {
+ notification_ = value;
+ }
+ onChanged();
+ } else {
+ notificationBuilder_.mergeFrom(value);
+ }
+
+ return this;
+ }
+ /**
+ * .com.zpf.im.common.bean.msg.MessageNotification notification = 8;
+ */
+ public Builder clearNotification() {
+ if (notificationBuilder_ == null) {
+ notification_ = null;
+ onChanged();
+ } else {
+ notification_ = null;
+ notificationBuilder_ = null;
+ }
+
+ return this;
+ }
+ /**
+ * .com.zpf.im.common.bean.msg.MessageNotification notification = 8;
+ */
+ public com.zpf.im.common.bean.msg.ProtoMsg.MessageNotification.Builder getNotificationBuilder() {
+
+ onChanged();
+ return getNotificationFieldBuilder().getBuilder();
+ }
+ /**
+ * .com.zpf.im.common.bean.msg.MessageNotification notification = 8;
+ */
+ public com.zpf.im.common.bean.msg.ProtoMsg.MessageNotificationOrBuilder getNotificationOrBuilder() {
+ if (notificationBuilder_ != null) {
+ return notificationBuilder_.getMessageOrBuilder();
+ } else {
+ return notification_ == null ?
+ com.zpf.im.common.bean.msg.ProtoMsg.MessageNotification.getDefaultInstance() : notification_;
+ }
+ }
+ /**
+ * .com.zpf.im.common.bean.msg.MessageNotification notification = 8;
+ */
+ private com.google.protobuf.SingleFieldBuilderV3<
+ com.zpf.im.common.bean.msg.ProtoMsg.MessageNotification, com.zpf.im.common.bean.msg.ProtoMsg.MessageNotification.Builder, com.zpf.im.common.bean.msg.ProtoMsg.MessageNotificationOrBuilder>
+ getNotificationFieldBuilder() {
+ if (notificationBuilder_ == null) {
+ notificationBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
+ com.zpf.im.common.bean.msg.ProtoMsg.MessageNotification, com.zpf.im.common.bean.msg.ProtoMsg.MessageNotification.Builder, com.zpf.im.common.bean.msg.ProtoMsg.MessageNotificationOrBuilder>(
+ getNotification(),
+ getParentForChildren(),
+ isClean());
+ notification_ = null;
+ }
+ return notificationBuilder_;
+ }
+ @java.lang.Override
+ public final Builder setUnknownFields(
+ final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.setUnknownFieldsProto3(unknownFields);
+ }
+
+ @java.lang.Override
+ public final Builder mergeUnknownFields(
+ final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.mergeUnknownFields(unknownFields);
+ }
+
+
+ // @@protoc_insertion_point(builder_scope:com.zpf.im.common.bean.msg.Message)
+ }
+
+ // @@protoc_insertion_point(class_scope:com.zpf.im.common.bean.msg.Message)
+ private static final com.zpf.im.common.bean.msg.ProtoMsg.Message DEFAULT_INSTANCE;
+ static {
+ DEFAULT_INSTANCE = new com.zpf.im.common.bean.msg.ProtoMsg.Message();
+ }
+
+ public static com.zpf.im.common.bean.msg.ProtoMsg.Message getDefaultInstance() {
+ return DEFAULT_INSTANCE;
+ }
+
+ private static final com.google.protobuf.Parser