All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.gettyio.gim.packet.MessageClass Maven / Gradle / Ivy

There is a newer version: 1.1.6-rc
Show newest version
// Generated by the protocol buffer compiler.  DO NOT EDIT!
// source: Message.proto
package com.gettyio.gim.packet;

public final class MessageClass {
  private MessageClass() {}
  public static void registerAllExtensions(
          com.google.protobuf.ExtensionRegistryLite registry) {
  }

  public static void registerAllExtensions(
          com.google.protobuf.ExtensionRegistry registry) {
    registerAllExtensions(
            (com.google.protobuf.ExtensionRegistryLite) registry);
  }
  public interface MessageOrBuilder extends
          // @@protoc_insertion_point(interface_extends:Message)
          com.google.protobuf.MessageOrBuilder {

    /**
     * 
     *消息唯一ID
     * 
* * optional string id = 1; */ String getId(); /** *
     *消息唯一ID
     * 
* * optional string id = 1; */ com.google.protobuf.ByteString getIdBytes(); /** *
     * 协议标志
     * 
* * optional string identify = 2; */ String getIdentify(); /** *
     * 协议标志
     * 
* * optional string identify = 2; */ com.google.protobuf.ByteString getIdentifyBytes(); /** *
     * 协议版本
     * 
* * optional string version = 3; */ String getVersion(); /** *
     * 协议版本
     * 
* * optional string version = 3; */ com.google.protobuf.ByteString getVersionBytes(); /** *
     * 请求类型
     * 
* * optional int32 reqType = 4; */ int getReqType(); /** *
     *消息时间
     * 
* * optional int64 msgTime = 5; */ long getMsgTime(); /** *
     *服务器标志
     * 
* * optional string serverId = 6; */ String getServerId(); /** *
     *服务器标志
     * 
* * optional string serverId = 6; */ com.google.protobuf.ByteString getServerIdBytes(); /** *
     *ack
     * 
* * optional string ack = 7; */ String getAck(); /** *
     *ack
     * 
* * optional string ack = 7; */ com.google.protobuf.ByteString getAckBytes(); /** *
     * 发送人ID
     * 
* * optional string senderId = 8; */ String getSenderId(); /** *
     * 发送人ID
     * 
* * optional string senderId = 8; */ com.google.protobuf.ByteString getSenderIdBytes(); /** *
     *发送人名称
     * 
* * optional string senderName = 9; */ String getSenderName(); /** *
     *发送人名称
     * 
* * optional string senderName = 9; */ com.google.protobuf.ByteString getSenderNameBytes(); /** *
     *发送人头像URL
     * 
* * optional string senderHeadImgUrl = 10; */ String getSenderHeadImgUrl(); /** *
     *发送人头像URL
     * 
* * optional string senderHeadImgUrl = 10; */ com.google.protobuf.ByteString getSenderHeadImgUrlBytes(); /** *
     * 接收人ID
     * 
* * optional string receiverId = 11; */ String getReceiverId(); /** *
     * 接收人ID
     * 
* * optional string receiverId = 11; */ com.google.protobuf.ByteString getReceiverIdBytes(); /** *
     * 接收人名称
     * 
* * optional string receiverName = 12; */ String getReceiverName(); /** *
     * 接收人名称
     * 
* * optional string receiverName = 12; */ com.google.protobuf.ByteString getReceiverNameBytes(); /** *
     * 接收人头像
     * 
* * optional string receiverHeadImgUrl = 13; */ String getReceiverHeadImgUrl(); /** *
     * 接收人头像
     * 
* * optional string receiverHeadImgUrl = 13; */ com.google.protobuf.ByteString getReceiverHeadImgUrlBytes(); /** *
     * 群ID
     * 
* * optional string groupId = 14; */ String getGroupId(); /** *
     * 群ID
     * 
* * optional string groupId = 14; */ com.google.protobuf.ByteString getGroupIdBytes(); /** *
     *需要@的人的id
     * 
* * optional string atUserId = 15; */ String getAtUserId(); /** *
     *需要@的人的id
     * 
* * optional string atUserId = 15; */ com.google.protobuf.ByteString getAtUserIdBytes(); /** *
     *消息体
     * 
* * optional string body = 16; */ String getBody(); /** *
     *消息体
     * 
* * optional string body = 16; */ com.google.protobuf.ByteString getBodyBytes(); /** *
     *消息类型
     * 
* * optional int32 bodyType = 17; */ int getBodyType(); /** *
     *消息体长度
     * 
* * optional int32 bodyLength = 18; */ int getBodyLength(); /** *
     *确认状态
     * 
* * optional int32 status = 19; */ int getStatus(); /** *
     *业务结果
     * 
* * optional int32 result = 20; */ int getResult(); /** * optional string field1 = 21; */ String getField1(); /** * optional string field1 = 21; */ com.google.protobuf.ByteString getField1Bytes(); /** * optional string field2 = 22; */ String getField2(); /** * optional string field2 = 22; */ com.google.protobuf.ByteString getField2Bytes(); /** * optional string field3 = 23; */ String getField3(); /** * optional string field3 = 23; */ com.google.protobuf.ByteString getField3Bytes(); } /** * Protobuf type {@code Message} */ public static final class Message extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:Message) MessageOrBuilder { // Use Message.newBuilder() to construct. private Message(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private Message() { id_ = ""; identify_ = ""; version_ = ""; reqType_ = 0; msgTime_ = 0L; serverId_ = ""; ack_ = ""; senderId_ = ""; senderName_ = ""; senderHeadImgUrl_ = ""; receiverId_ = ""; receiverName_ = ""; receiverHeadImgUrl_ = ""; groupId_ = ""; atUserId_ = ""; body_ = ""; bodyType_ = 0; bodyLength_ = 0; status_ = 0; result_ = 0; field1_ = ""; field2_ = ""; field3_ = ""; } @Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } private Message( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); int mutable_bitField0_ = 0; try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; default: { if (!input.skipField(tag)) { done = true; } break; } case 10: { String s = input.readStringRequireUtf8(); id_ = s; break; } case 18: { String s = input.readStringRequireUtf8(); identify_ = s; break; } case 26: { String s = input.readStringRequireUtf8(); version_ = s; break; } case 32: { reqType_ = input.readInt32(); break; } case 40: { msgTime_ = input.readInt64(); break; } case 50: { String s = input.readStringRequireUtf8(); serverId_ = s; break; } case 58: { String s = input.readStringRequireUtf8(); ack_ = s; break; } case 66: { String s = input.readStringRequireUtf8(); senderId_ = s; break; } case 74: { String s = input.readStringRequireUtf8(); senderName_ = s; break; } case 82: { String s = input.readStringRequireUtf8(); senderHeadImgUrl_ = s; break; } case 90: { String s = input.readStringRequireUtf8(); receiverId_ = s; break; } case 98: { String s = input.readStringRequireUtf8(); receiverName_ = s; break; } case 106: { String s = input.readStringRequireUtf8(); receiverHeadImgUrl_ = s; break; } case 114: { String s = input.readStringRequireUtf8(); groupId_ = s; break; } case 122: { String s = input.readStringRequireUtf8(); atUserId_ = s; break; } case 130: { String s = input.readStringRequireUtf8(); body_ = s; break; } case 136: { bodyType_ = input.readInt32(); break; } case 144: { bodyLength_ = input.readInt32(); break; } case 152: { status_ = input.readInt32(); break; } case 160: { result_ = input.readInt32(); break; } case 170: { String s = input.readStringRequireUtf8(); field1_ = s; break; } case 178: { String s = input.readStringRequireUtf8(); field2_ = s; break; } case 186: { String s = input.readStringRequireUtf8(); field3_ = s; 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 { makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return MessageClass.internal_static_Message_descriptor; } protected FieldAccessorTable internalGetFieldAccessorTable() { return MessageClass.internal_static_Message_fieldAccessorTable .ensureFieldAccessorsInitialized( MessageClass.Message.class, MessageClass.Message.Builder.class); } public static final int ID_FIELD_NUMBER = 1; private volatile Object id_; /** *
     *消息唯一ID
     * 
* * optional string id = 1; */ public String getId() { Object ref = id_; if (ref instanceof String) { return (String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; String s = bs.toStringUtf8(); id_ = s; return s; } } /** *
     *消息唯一ID
     * 
* * optional string id = 1; */ public com.google.protobuf.ByteString getIdBytes() { Object ref = id_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (String) ref); id_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int IDENTIFY_FIELD_NUMBER = 2; private volatile Object identify_; /** *
     * 协议标志
     * 
* * optional string identify = 2; */ public String getIdentify() { Object ref = identify_; if (ref instanceof String) { return (String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; String s = bs.toStringUtf8(); identify_ = s; return s; } } /** *
     * 协议标志
     * 
* * optional string identify = 2; */ public com.google.protobuf.ByteString getIdentifyBytes() { Object ref = identify_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (String) ref); identify_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int VERSION_FIELD_NUMBER = 3; private volatile Object version_; /** *
     * 协议版本
     * 
* * optional string version = 3; */ public String getVersion() { Object ref = version_; if (ref instanceof String) { return (String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; String s = bs.toStringUtf8(); version_ = s; return s; } } /** *
     * 协议版本
     * 
* * optional string version = 3; */ public com.google.protobuf.ByteString getVersionBytes() { Object ref = version_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (String) ref); version_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int REQTYPE_FIELD_NUMBER = 4; private int reqType_; /** *
     * 请求类型
     * 
* * optional int32 reqType = 4; */ public int getReqType() { return reqType_; } public static final int MSGTIME_FIELD_NUMBER = 5; private long msgTime_; /** *
     *消息时间
     * 
* * optional int64 msgTime = 5; */ public long getMsgTime() { return msgTime_; } public static final int SERVERID_FIELD_NUMBER = 6; private volatile Object serverId_; /** *
     *服务器标志
     * 
* * optional string serverId = 6; */ public String getServerId() { Object ref = serverId_; if (ref instanceof String) { return (String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; String s = bs.toStringUtf8(); serverId_ = s; return s; } } /** *
     *服务器标志
     * 
* * optional string serverId = 6; */ public com.google.protobuf.ByteString getServerIdBytes() { Object ref = serverId_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (String) ref); serverId_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int ACK_FIELD_NUMBER = 7; private volatile Object ack_; /** *
     *ack
     * 
* * optional string ack = 7; */ public String getAck() { Object ref = ack_; if (ref instanceof String) { return (String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; String s = bs.toStringUtf8(); ack_ = s; return s; } } /** *
     *ack
     * 
* * optional string ack = 7; */ public com.google.protobuf.ByteString getAckBytes() { Object ref = ack_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (String) ref); ack_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int SENDERID_FIELD_NUMBER = 8; private volatile Object senderId_; /** *
     * 发送人ID
     * 
* * optional string senderId = 8; */ public String getSenderId() { Object ref = senderId_; if (ref instanceof String) { return (String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; String s = bs.toStringUtf8(); senderId_ = s; return s; } } /** *
     * 发送人ID
     * 
* * optional string senderId = 8; */ public com.google.protobuf.ByteString getSenderIdBytes() { Object ref = senderId_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (String) ref); senderId_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int SENDERNAME_FIELD_NUMBER = 9; private volatile Object senderName_; /** *
     *发送人名称
     * 
* * optional string senderName = 9; */ public String getSenderName() { Object ref = senderName_; if (ref instanceof String) { return (String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; String s = bs.toStringUtf8(); senderName_ = s; return s; } } /** *
     *发送人名称
     * 
* * optional string senderName = 9; */ public com.google.protobuf.ByteString getSenderNameBytes() { Object ref = senderName_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (String) ref); senderName_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int SENDERHEADIMGURL_FIELD_NUMBER = 10; private volatile Object senderHeadImgUrl_; /** *
     *发送人头像URL
     * 
* * optional string senderHeadImgUrl = 10; */ public String getSenderHeadImgUrl() { Object ref = senderHeadImgUrl_; if (ref instanceof String) { return (String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; String s = bs.toStringUtf8(); senderHeadImgUrl_ = s; return s; } } /** *
     *发送人头像URL
     * 
* * optional string senderHeadImgUrl = 10; */ public com.google.protobuf.ByteString getSenderHeadImgUrlBytes() { Object ref = senderHeadImgUrl_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (String) ref); senderHeadImgUrl_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int RECEIVERID_FIELD_NUMBER = 11; private volatile Object receiverId_; /** *
     * 接收人ID
     * 
* * optional string receiverId = 11; */ public String getReceiverId() { Object ref = receiverId_; if (ref instanceof String) { return (String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; String s = bs.toStringUtf8(); receiverId_ = s; return s; } } /** *
     * 接收人ID
     * 
* * optional string receiverId = 11; */ public com.google.protobuf.ByteString getReceiverIdBytes() { Object ref = receiverId_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (String) ref); receiverId_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int RECEIVERNAME_FIELD_NUMBER = 12; private volatile Object receiverName_; /** *
     * 接收人名称
     * 
* * optional string receiverName = 12; */ public String getReceiverName() { Object ref = receiverName_; if (ref instanceof String) { return (String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; String s = bs.toStringUtf8(); receiverName_ = s; return s; } } /** *
     * 接收人名称
     * 
* * optional string receiverName = 12; */ public com.google.protobuf.ByteString getReceiverNameBytes() { Object ref = receiverName_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (String) ref); receiverName_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int RECEIVERHEADIMGURL_FIELD_NUMBER = 13; private volatile Object receiverHeadImgUrl_; /** *
     * 接收人头像
     * 
* * optional string receiverHeadImgUrl = 13; */ public String getReceiverHeadImgUrl() { Object ref = receiverHeadImgUrl_; if (ref instanceof String) { return (String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; String s = bs.toStringUtf8(); receiverHeadImgUrl_ = s; return s; } } /** *
     * 接收人头像
     * 
* * optional string receiverHeadImgUrl = 13; */ public com.google.protobuf.ByteString getReceiverHeadImgUrlBytes() { Object ref = receiverHeadImgUrl_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (String) ref); receiverHeadImgUrl_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int GROUPID_FIELD_NUMBER = 14; private volatile Object groupId_; /** *
     * 群ID
     * 
* * optional string groupId = 14; */ public String getGroupId() { Object ref = groupId_; if (ref instanceof String) { return (String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; String s = bs.toStringUtf8(); groupId_ = s; return s; } } /** *
     * 群ID
     * 
* * optional string groupId = 14; */ public com.google.protobuf.ByteString getGroupIdBytes() { Object ref = groupId_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (String) ref); groupId_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int ATUSERID_FIELD_NUMBER = 15; private volatile Object atUserId_; /** *
     *需要@的人的id
     * 
* * optional string atUserId = 15; */ public String getAtUserId() { Object ref = atUserId_; if (ref instanceof String) { return (String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; String s = bs.toStringUtf8(); atUserId_ = s; return s; } } /** *
     *需要@的人的id
     * 
* * optional string atUserId = 15; */ public com.google.protobuf.ByteString getAtUserIdBytes() { Object ref = atUserId_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (String) ref); atUserId_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int BODY_FIELD_NUMBER = 16; private volatile Object body_; /** *
     *消息体
     * 
* * optional string body = 16; */ public String getBody() { Object ref = body_; if (ref instanceof String) { return (String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; String s = bs.toStringUtf8(); body_ = s; return s; } } /** *
     *消息体
     * 
* * optional string body = 16; */ public com.google.protobuf.ByteString getBodyBytes() { Object ref = body_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (String) ref); body_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int BODYTYPE_FIELD_NUMBER = 17; private int bodyType_; /** *
     *消息类型
     * 
* * optional int32 bodyType = 17; */ public int getBodyType() { return bodyType_; } public static final int BODYLENGTH_FIELD_NUMBER = 18; private int bodyLength_; /** *
     *消息体长度
     * 
* * optional int32 bodyLength = 18; */ public int getBodyLength() { return bodyLength_; } public static final int STATUS_FIELD_NUMBER = 19; private int status_; /** *
     *确认状态
     * 
* * optional int32 status = 19; */ public int getStatus() { return status_; } public static final int RESULT_FIELD_NUMBER = 20; private int result_; /** *
     *业务结果
     * 
* * optional int32 result = 20; */ public int getResult() { return result_; } public static final int FIELD1_FIELD_NUMBER = 21; private volatile Object field1_; /** * optional string field1 = 21; */ public String getField1() { Object ref = field1_; if (ref instanceof String) { return (String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; String s = bs.toStringUtf8(); field1_ = s; return s; } } /** * optional string field1 = 21; */ public com.google.protobuf.ByteString getField1Bytes() { Object ref = field1_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (String) ref); field1_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int FIELD2_FIELD_NUMBER = 22; private volatile Object field2_; /** * optional string field2 = 22; */ public String getField2() { Object ref = field2_; if (ref instanceof String) { return (String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; String s = bs.toStringUtf8(); field2_ = s; return s; } } /** * optional string field2 = 22; */ public com.google.protobuf.ByteString getField2Bytes() { Object ref = field2_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (String) ref); field2_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int FIELD3_FIELD_NUMBER = 23; private volatile Object field3_; /** * optional string field3 = 23; */ public String getField3() { Object ref = field3_; if (ref instanceof String) { return (String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; String s = bs.toStringUtf8(); field3_ = s; return s; } } /** * optional string field3 = 23; */ public com.google.protobuf.ByteString getField3Bytes() { Object ref = field3_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (String) ref); field3_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } private byte memoizedIsInitialized = -1; public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!getIdBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, id_); } if (!getIdentifyBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, identify_); } if (!getVersionBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 3, version_); } if (reqType_ != 0) { output.writeInt32(4, reqType_); } if (msgTime_ != 0L) { output.writeInt64(5, msgTime_); } if (!getServerIdBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 6, serverId_); } if (!getAckBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 7, ack_); } if (!getSenderIdBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 8, senderId_); } if (!getSenderNameBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 9, senderName_); } if (!getSenderHeadImgUrlBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 10, senderHeadImgUrl_); } if (!getReceiverIdBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 11, receiverId_); } if (!getReceiverNameBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 12, receiverName_); } if (!getReceiverHeadImgUrlBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 13, receiverHeadImgUrl_); } if (!getGroupIdBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 14, groupId_); } if (!getAtUserIdBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 15, atUserId_); } if (!getBodyBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 16, body_); } if (bodyType_ != 0) { output.writeInt32(17, bodyType_); } if (bodyLength_ != 0) { output.writeInt32(18, bodyLength_); } if (status_ != 0) { output.writeInt32(19, status_); } if (result_ != 0) { output.writeInt32(20, result_); } if (!getField1Bytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 21, field1_); } if (!getField2Bytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 22, field2_); } if (!getField3Bytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 23, field3_); } } public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (!getIdBytes().isEmpty()) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, id_); } if (!getIdentifyBytes().isEmpty()) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, identify_); } if (!getVersionBytes().isEmpty()) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, version_); } if (reqType_ != 0) { size += com.google.protobuf.CodedOutputStream .computeInt32Size(4, reqType_); } if (msgTime_ != 0L) { size += com.google.protobuf.CodedOutputStream .computeInt64Size(5, msgTime_); } if (!getServerIdBytes().isEmpty()) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, serverId_); } if (!getAckBytes().isEmpty()) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(7, ack_); } if (!getSenderIdBytes().isEmpty()) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(8, senderId_); } if (!getSenderNameBytes().isEmpty()) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(9, senderName_); } if (!getSenderHeadImgUrlBytes().isEmpty()) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(10, senderHeadImgUrl_); } if (!getReceiverIdBytes().isEmpty()) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(11, receiverId_); } if (!getReceiverNameBytes().isEmpty()) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(12, receiverName_); } if (!getReceiverHeadImgUrlBytes().isEmpty()) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(13, receiverHeadImgUrl_); } if (!getGroupIdBytes().isEmpty()) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(14, groupId_); } if (!getAtUserIdBytes().isEmpty()) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(15, atUserId_); } if (!getBodyBytes().isEmpty()) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(16, body_); } if (bodyType_ != 0) { size += com.google.protobuf.CodedOutputStream .computeInt32Size(17, bodyType_); } if (bodyLength_ != 0) { size += com.google.protobuf.CodedOutputStream .computeInt32Size(18, bodyLength_); } if (status_ != 0) { size += com.google.protobuf.CodedOutputStream .computeInt32Size(19, status_); } if (result_ != 0) { size += com.google.protobuf.CodedOutputStream .computeInt32Size(20, result_); } if (!getField1Bytes().isEmpty()) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(21, field1_); } if (!getField2Bytes().isEmpty()) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(22, field2_); } if (!getField3Bytes().isEmpty()) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(23, field3_); } memoizedSize = size; return size; } private static final long serialVersionUID = 0L; @Override public boolean equals(final Object obj) { if (obj == this) { return true; } if (!(obj instanceof MessageClass.Message)) { return super.equals(obj); } MessageClass.Message other = (MessageClass.Message) obj; boolean result = true; result = result && getId() .equals(other.getId()); result = result && getIdentify() .equals(other.getIdentify()); result = result && getVersion() .equals(other.getVersion()); result = result && (getReqType() == other.getReqType()); result = result && (getMsgTime() == other.getMsgTime()); result = result && getServerId() .equals(other.getServerId()); result = result && getAck() .equals(other.getAck()); result = result && getSenderId() .equals(other.getSenderId()); result = result && getSenderName() .equals(other.getSenderName()); result = result && getSenderHeadImgUrl() .equals(other.getSenderHeadImgUrl()); result = result && getReceiverId() .equals(other.getReceiverId()); result = result && getReceiverName() .equals(other.getReceiverName()); result = result && getReceiverHeadImgUrl() .equals(other.getReceiverHeadImgUrl()); result = result && getGroupId() .equals(other.getGroupId()); result = result && getAtUserId() .equals(other.getAtUserId()); result = result && getBody() .equals(other.getBody()); result = result && (getBodyType() == other.getBodyType()); result = result && (getBodyLength() == other.getBodyLength()); result = result && (getStatus() == other.getStatus()); result = result && (getResult() == other.getResult()); result = result && getField1() .equals(other.getField1()); result = result && getField2() .equals(other.getField2()); result = result && getField3() .equals(other.getField3()); return result; } @Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptorForType().hashCode(); hash = (37 * hash) + ID_FIELD_NUMBER; hash = (53 * hash) + getId().hashCode(); hash = (37 * hash) + IDENTIFY_FIELD_NUMBER; hash = (53 * hash) + getIdentify().hashCode(); hash = (37 * hash) + VERSION_FIELD_NUMBER; hash = (53 * hash) + getVersion().hashCode(); hash = (37 * hash) + REQTYPE_FIELD_NUMBER; hash = (53 * hash) + getReqType(); hash = (37 * hash) + MSGTIME_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getMsgTime()); hash = (37 * hash) + SERVERID_FIELD_NUMBER; hash = (53 * hash) + getServerId().hashCode(); hash = (37 * hash) + ACK_FIELD_NUMBER; hash = (53 * hash) + getAck().hashCode(); hash = (37 * hash) + SENDERID_FIELD_NUMBER; hash = (53 * hash) + getSenderId().hashCode(); hash = (37 * hash) + SENDERNAME_FIELD_NUMBER; hash = (53 * hash) + getSenderName().hashCode(); hash = (37 * hash) + SENDERHEADIMGURL_FIELD_NUMBER; hash = (53 * hash) + getSenderHeadImgUrl().hashCode(); hash = (37 * hash) + RECEIVERID_FIELD_NUMBER; hash = (53 * hash) + getReceiverId().hashCode(); hash = (37 * hash) + RECEIVERNAME_FIELD_NUMBER; hash = (53 * hash) + getReceiverName().hashCode(); hash = (37 * hash) + RECEIVERHEADIMGURL_FIELD_NUMBER; hash = (53 * hash) + getReceiverHeadImgUrl().hashCode(); hash = (37 * hash) + GROUPID_FIELD_NUMBER; hash = (53 * hash) + getGroupId().hashCode(); hash = (37 * hash) + ATUSERID_FIELD_NUMBER; hash = (53 * hash) + getAtUserId().hashCode(); hash = (37 * hash) + BODY_FIELD_NUMBER; hash = (53 * hash) + getBody().hashCode(); hash = (37 * hash) + BODYTYPE_FIELD_NUMBER; hash = (53 * hash) + getBodyType(); hash = (37 * hash) + BODYLENGTH_FIELD_NUMBER; hash = (53 * hash) + getBodyLength(); hash = (37 * hash) + STATUS_FIELD_NUMBER; hash = (53 * hash) + getStatus(); hash = (37 * hash) + RESULT_FIELD_NUMBER; hash = (53 * hash) + getResult(); hash = (37 * hash) + FIELD1_FIELD_NUMBER; hash = (53 * hash) + getField1().hashCode(); hash = (37 * hash) + FIELD2_FIELD_NUMBER; hash = (53 * hash) + getField2().hashCode(); hash = (37 * hash) + FIELD3_FIELD_NUMBER; hash = (53 * hash) + getField3().hashCode(); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static MessageClass.Message parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static MessageClass.Message parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static MessageClass.Message parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static MessageClass.Message parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static MessageClass.Message parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static MessageClass.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 MessageClass.Message parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static MessageClass.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 MessageClass.Message parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static MessageClass.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); } public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(MessageClass.Message prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @Override protected Builder newBuilderForType( BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** * Protobuf type {@code Message} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:Message) MessageClass.MessageOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return MessageClass.internal_static_Message_descriptor; } protected FieldAccessorTable internalGetFieldAccessorTable() { return MessageClass.internal_static_Message_fieldAccessorTable .ensureFieldAccessorsInitialized( MessageClass.Message.class, MessageClass.Message.Builder.class); } // Construct using MessageClass.Message.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { } } public Builder clear() { super.clear(); id_ = ""; identify_ = ""; version_ = ""; reqType_ = 0; msgTime_ = 0L; serverId_ = ""; ack_ = ""; senderId_ = ""; senderName_ = ""; senderHeadImgUrl_ = ""; receiverId_ = ""; receiverName_ = ""; receiverHeadImgUrl_ = ""; groupId_ = ""; atUserId_ = ""; body_ = ""; bodyType_ = 0; bodyLength_ = 0; status_ = 0; result_ = 0; field1_ = ""; field2_ = ""; field3_ = ""; return this; } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return MessageClass.internal_static_Message_descriptor; } public MessageClass.Message getDefaultInstanceForType() { return MessageClass.Message.getDefaultInstance(); } public MessageClass.Message build() { MessageClass.Message result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public MessageClass.Message buildPartial() { MessageClass.Message result = new MessageClass.Message(this); result.id_ = id_; result.identify_ = identify_; result.version_ = version_; result.reqType_ = reqType_; result.msgTime_ = msgTime_; result.serverId_ = serverId_; result.ack_ = ack_; result.senderId_ = senderId_; result.senderName_ = senderName_; result.senderHeadImgUrl_ = senderHeadImgUrl_; result.receiverId_ = receiverId_; result.receiverName_ = receiverName_; result.receiverHeadImgUrl_ = receiverHeadImgUrl_; result.groupId_ = groupId_; result.atUserId_ = atUserId_; result.body_ = body_; result.bodyType_ = bodyType_; result.bodyLength_ = bodyLength_; result.status_ = status_; result.result_ = result_; result.field1_ = field1_; result.field2_ = field2_; result.field3_ = field3_; onBuilt(); return result; } public Builder clone() { return (Builder) super.clone(); } public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, Object value) { return (Builder) super.setField(field, value); } public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return (Builder) super.clearField(field); } public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return (Builder) super.clearOneof(oneof); } public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value) { return (Builder) super.setRepeatedField(field, index, value); } public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, Object value) { return (Builder) super.addRepeatedField(field, value); } public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof MessageClass.Message) { return mergeFrom((MessageClass.Message)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(MessageClass.Message other) { if (other == MessageClass.Message.getDefaultInstance()) return this; if (!other.getId().isEmpty()) { id_ = other.id_; onChanged(); } if (!other.getIdentify().isEmpty()) { identify_ = other.identify_; onChanged(); } if (!other.getVersion().isEmpty()) { version_ = other.version_; onChanged(); } if (other.getReqType() != 0) { setReqType(other.getReqType()); } if (other.getMsgTime() != 0L) { setMsgTime(other.getMsgTime()); } if (!other.getServerId().isEmpty()) { serverId_ = other.serverId_; onChanged(); } if (!other.getAck().isEmpty()) { ack_ = other.ack_; onChanged(); } if (!other.getSenderId().isEmpty()) { senderId_ = other.senderId_; onChanged(); } if (!other.getSenderName().isEmpty()) { senderName_ = other.senderName_; onChanged(); } if (!other.getSenderHeadImgUrl().isEmpty()) { senderHeadImgUrl_ = other.senderHeadImgUrl_; onChanged(); } if (!other.getReceiverId().isEmpty()) { receiverId_ = other.receiverId_; onChanged(); } if (!other.getReceiverName().isEmpty()) { receiverName_ = other.receiverName_; onChanged(); } if (!other.getReceiverHeadImgUrl().isEmpty()) { receiverHeadImgUrl_ = other.receiverHeadImgUrl_; onChanged(); } if (!other.getGroupId().isEmpty()) { groupId_ = other.groupId_; onChanged(); } if (!other.getAtUserId().isEmpty()) { atUserId_ = other.atUserId_; onChanged(); } if (!other.getBody().isEmpty()) { body_ = other.body_; onChanged(); } if (other.getBodyType() != 0) { setBodyType(other.getBodyType()); } if (other.getBodyLength() != 0) { setBodyLength(other.getBodyLength()); } if (other.getStatus() != 0) { setStatus(other.getStatus()); } if (other.getResult() != 0) { setResult(other.getResult()); } if (!other.getField1().isEmpty()) { field1_ = other.field1_; onChanged(); } if (!other.getField2().isEmpty()) { field2_ = other.field2_; onChanged(); } if (!other.getField3().isEmpty()) { field3_ = other.field3_; onChanged(); } onChanged(); return this; } public final boolean isInitialized() { return true; } public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { MessageClass.Message parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (MessageClass.Message) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private Object id_ = ""; /** *
       *消息唯一ID
       * 
* * optional string id = 1; */ public String getId() { Object ref = id_; if (!(ref instanceof String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; String s = bs.toStringUtf8(); id_ = s; return s; } else { return (String) ref; } } /** *
       *消息唯一ID
       * 
* * optional string id = 1; */ public com.google.protobuf.ByteString getIdBytes() { Object ref = id_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (String) ref); id_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
       *消息唯一ID
       * 
* * optional string id = 1; */ public Builder setId( String value) { if (value == null) { throw new NullPointerException(); } id_ = value; onChanged(); return this; } /** *
       *消息唯一ID
       * 
* * optional string id = 1; */ public Builder clearId() { id_ = getDefaultInstance().getId(); onChanged(); return this; } /** *
       *消息唯一ID
       * 
* * optional string id = 1; */ public Builder setIdBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); id_ = value; onChanged(); return this; } private Object identify_ = ""; /** *
       * 协议标志
       * 
* * optional string identify = 2; */ public String getIdentify() { Object ref = identify_; if (!(ref instanceof String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; String s = bs.toStringUtf8(); identify_ = s; return s; } else { return (String) ref; } } /** *
       * 协议标志
       * 
* * optional string identify = 2; */ public com.google.protobuf.ByteString getIdentifyBytes() { Object ref = identify_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (String) ref); identify_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
       * 协议标志
       * 
* * optional string identify = 2; */ public Builder setIdentify( String value) { if (value == null) { throw new NullPointerException(); } identify_ = value; onChanged(); return this; } /** *
       * 协议标志
       * 
* * optional string identify = 2; */ public Builder clearIdentify() { identify_ = getDefaultInstance().getIdentify(); onChanged(); return this; } /** *
       * 协议标志
       * 
* * optional string identify = 2; */ public Builder setIdentifyBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); identify_ = value; onChanged(); return this; } private Object version_ = ""; /** *
       * 协议版本
       * 
* * optional string version = 3; */ public String getVersion() { Object ref = version_; if (!(ref instanceof String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; String s = bs.toStringUtf8(); version_ = s; return s; } else { return (String) ref; } } /** *
       * 协议版本
       * 
* * optional string version = 3; */ public com.google.protobuf.ByteString getVersionBytes() { Object ref = version_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (String) ref); version_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
       * 协议版本
       * 
* * optional string version = 3; */ public Builder setVersion( String value) { if (value == null) { throw new NullPointerException(); } version_ = value; onChanged(); return this; } /** *
       * 协议版本
       * 
* * optional string version = 3; */ public Builder clearVersion() { version_ = getDefaultInstance().getVersion(); onChanged(); return this; } /** *
       * 协议版本
       * 
* * optional string version = 3; */ public Builder setVersionBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); version_ = value; onChanged(); return this; } private int reqType_ ; /** *
       * 请求类型
       * 
* * optional int32 reqType = 4; */ public int getReqType() { return reqType_; } /** *
       * 请求类型
       * 
* * optional int32 reqType = 4; */ public Builder setReqType(int value) { reqType_ = value; onChanged(); return this; } /** *
       * 请求类型
       * 
* * optional int32 reqType = 4; */ public Builder clearReqType() { reqType_ = 0; onChanged(); return this; } private long msgTime_ ; /** *
       *消息时间
       * 
* * optional int64 msgTime = 5; */ public long getMsgTime() { return msgTime_; } /** *
       *消息时间
       * 
* * optional int64 msgTime = 5; */ public Builder setMsgTime(long value) { msgTime_ = value; onChanged(); return this; } /** *
       *消息时间
       * 
* * optional int64 msgTime = 5; */ public Builder clearMsgTime() { msgTime_ = 0L; onChanged(); return this; } private Object serverId_ = ""; /** *
       *服务器标志
       * 
* * optional string serverId = 6; */ public String getServerId() { Object ref = serverId_; if (!(ref instanceof String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; String s = bs.toStringUtf8(); serverId_ = s; return s; } else { return (String) ref; } } /** *
       *服务器标志
       * 
* * optional string serverId = 6; */ public com.google.protobuf.ByteString getServerIdBytes() { Object ref = serverId_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (String) ref); serverId_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
       *服务器标志
       * 
* * optional string serverId = 6; */ public Builder setServerId( String value) { if (value == null) { throw new NullPointerException(); } serverId_ = value; onChanged(); return this; } /** *
       *服务器标志
       * 
* * optional string serverId = 6; */ public Builder clearServerId() { serverId_ = getDefaultInstance().getServerId(); onChanged(); return this; } /** *
       *服务器标志
       * 
* * optional string serverId = 6; */ public Builder setServerIdBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); serverId_ = value; onChanged(); return this; } private Object ack_ = ""; /** *
       *ack
       * 
* * optional string ack = 7; */ public String getAck() { Object ref = ack_; if (!(ref instanceof String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; String s = bs.toStringUtf8(); ack_ = s; return s; } else { return (String) ref; } } /** *
       *ack
       * 
* * optional string ack = 7; */ public com.google.protobuf.ByteString getAckBytes() { Object ref = ack_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (String) ref); ack_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
       *ack
       * 
* * optional string ack = 7; */ public Builder setAck( String value) { if (value == null) { throw new NullPointerException(); } ack_ = value; onChanged(); return this; } /** *
       *ack
       * 
* * optional string ack = 7; */ public Builder clearAck() { ack_ = getDefaultInstance().getAck(); onChanged(); return this; } /** *
       *ack
       * 
* * optional string ack = 7; */ public Builder setAckBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); ack_ = value; onChanged(); return this; } private Object senderId_ = ""; /** *
       * 发送人ID
       * 
* * optional string senderId = 8; */ public String getSenderId() { Object ref = senderId_; if (!(ref instanceof String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; String s = bs.toStringUtf8(); senderId_ = s; return s; } else { return (String) ref; } } /** *
       * 发送人ID
       * 
* * optional string senderId = 8; */ public com.google.protobuf.ByteString getSenderIdBytes() { Object ref = senderId_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (String) ref); senderId_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
       * 发送人ID
       * 
* * optional string senderId = 8; */ public Builder setSenderId( String value) { if (value == null) { throw new NullPointerException(); } senderId_ = value; onChanged(); return this; } /** *
       * 发送人ID
       * 
* * optional string senderId = 8; */ public Builder clearSenderId() { senderId_ = getDefaultInstance().getSenderId(); onChanged(); return this; } /** *
       * 发送人ID
       * 
* * optional string senderId = 8; */ public Builder setSenderIdBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); senderId_ = value; onChanged(); return this; } private Object senderName_ = ""; /** *
       *发送人名称
       * 
* * optional string senderName = 9; */ public String getSenderName() { Object ref = senderName_; if (!(ref instanceof String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; String s = bs.toStringUtf8(); senderName_ = s; return s; } else { return (String) ref; } } /** *
       *发送人名称
       * 
* * optional string senderName = 9; */ public com.google.protobuf.ByteString getSenderNameBytes() { Object ref = senderName_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (String) ref); senderName_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
       *发送人名称
       * 
* * optional string senderName = 9; */ public Builder setSenderName( String value) { if (value == null) { throw new NullPointerException(); } senderName_ = value; onChanged(); return this; } /** *
       *发送人名称
       * 
* * optional string senderName = 9; */ public Builder clearSenderName() { senderName_ = getDefaultInstance().getSenderName(); onChanged(); return this; } /** *
       *发送人名称
       * 
* * optional string senderName = 9; */ public Builder setSenderNameBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); senderName_ = value; onChanged(); return this; } private Object senderHeadImgUrl_ = ""; /** *
       *发送人头像URL
       * 
* * optional string senderHeadImgUrl = 10; */ public String getSenderHeadImgUrl() { Object ref = senderHeadImgUrl_; if (!(ref instanceof String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; String s = bs.toStringUtf8(); senderHeadImgUrl_ = s; return s; } else { return (String) ref; } } /** *
       *发送人头像URL
       * 
* * optional string senderHeadImgUrl = 10; */ public com.google.protobuf.ByteString getSenderHeadImgUrlBytes() { Object ref = senderHeadImgUrl_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (String) ref); senderHeadImgUrl_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
       *发送人头像URL
       * 
* * optional string senderHeadImgUrl = 10; */ public Builder setSenderHeadImgUrl( String value) { if (value == null) { throw new NullPointerException(); } senderHeadImgUrl_ = value; onChanged(); return this; } /** *
       *发送人头像URL
       * 
* * optional string senderHeadImgUrl = 10; */ public Builder clearSenderHeadImgUrl() { senderHeadImgUrl_ = getDefaultInstance().getSenderHeadImgUrl(); onChanged(); return this; } /** *
       *发送人头像URL
       * 
* * optional string senderHeadImgUrl = 10; */ public Builder setSenderHeadImgUrlBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); senderHeadImgUrl_ = value; onChanged(); return this; } private Object receiverId_ = ""; /** *
       * 接收人ID
       * 
* * optional string receiverId = 11; */ public String getReceiverId() { Object ref = receiverId_; if (!(ref instanceof String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; String s = bs.toStringUtf8(); receiverId_ = s; return s; } else { return (String) ref; } } /** *
       * 接收人ID
       * 
* * optional string receiverId = 11; */ public com.google.protobuf.ByteString getReceiverIdBytes() { Object ref = receiverId_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (String) ref); receiverId_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
       * 接收人ID
       * 
* * optional string receiverId = 11; */ public Builder setReceiverId( String value) { if (value == null) { throw new NullPointerException(); } receiverId_ = value; onChanged(); return this; } /** *
       * 接收人ID
       * 
* * optional string receiverId = 11; */ public Builder clearReceiverId() { receiverId_ = getDefaultInstance().getReceiverId(); onChanged(); return this; } /** *
       * 接收人ID
       * 
* * optional string receiverId = 11; */ public Builder setReceiverIdBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); receiverId_ = value; onChanged(); return this; } private Object receiverName_ = ""; /** *
       * 接收人名称
       * 
* * optional string receiverName = 12; */ public String getReceiverName() { Object ref = receiverName_; if (!(ref instanceof String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; String s = bs.toStringUtf8(); receiverName_ = s; return s; } else { return (String) ref; } } /** *
       * 接收人名称
       * 
* * optional string receiverName = 12; */ public com.google.protobuf.ByteString getReceiverNameBytes() { Object ref = receiverName_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (String) ref); receiverName_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
       * 接收人名称
       * 
* * optional string receiverName = 12; */ public Builder setReceiverName( String value) { if (value == null) { throw new NullPointerException(); } receiverName_ = value; onChanged(); return this; } /** *
       * 接收人名称
       * 
* * optional string receiverName = 12; */ public Builder clearReceiverName() { receiverName_ = getDefaultInstance().getReceiverName(); onChanged(); return this; } /** *
       * 接收人名称
       * 
* * optional string receiverName = 12; */ public Builder setReceiverNameBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); receiverName_ = value; onChanged(); return this; } private Object receiverHeadImgUrl_ = ""; /** *
       * 接收人头像
       * 
* * optional string receiverHeadImgUrl = 13; */ public String getReceiverHeadImgUrl() { Object ref = receiverHeadImgUrl_; if (!(ref instanceof String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; String s = bs.toStringUtf8(); receiverHeadImgUrl_ = s; return s; } else { return (String) ref; } } /** *
       * 接收人头像
       * 
* * optional string receiverHeadImgUrl = 13; */ public com.google.protobuf.ByteString getReceiverHeadImgUrlBytes() { Object ref = receiverHeadImgUrl_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (String) ref); receiverHeadImgUrl_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
       * 接收人头像
       * 
* * optional string receiverHeadImgUrl = 13; */ public Builder setReceiverHeadImgUrl( String value) { if (value == null) { throw new NullPointerException(); } receiverHeadImgUrl_ = value; onChanged(); return this; } /** *
       * 接收人头像
       * 
* * optional string receiverHeadImgUrl = 13; */ public Builder clearReceiverHeadImgUrl() { receiverHeadImgUrl_ = getDefaultInstance().getReceiverHeadImgUrl(); onChanged(); return this; } /** *
       * 接收人头像
       * 
* * optional string receiverHeadImgUrl = 13; */ public Builder setReceiverHeadImgUrlBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); receiverHeadImgUrl_ = value; onChanged(); return this; } private Object groupId_ = ""; /** *
       * 群ID
       * 
* * optional string groupId = 14; */ public String getGroupId() { Object ref = groupId_; if (!(ref instanceof String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; String s = bs.toStringUtf8(); groupId_ = s; return s; } else { return (String) ref; } } /** *
       * 群ID
       * 
* * optional string groupId = 14; */ public com.google.protobuf.ByteString getGroupIdBytes() { Object ref = groupId_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (String) ref); groupId_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
       * 群ID
       * 
* * optional string groupId = 14; */ public Builder setGroupId( String value) { if (value == null) { throw new NullPointerException(); } groupId_ = value; onChanged(); return this; } /** *
       * 群ID
       * 
* * optional string groupId = 14; */ public Builder clearGroupId() { groupId_ = getDefaultInstance().getGroupId(); onChanged(); return this; } /** *
       * 群ID
       * 
* * optional string groupId = 14; */ public Builder setGroupIdBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); groupId_ = value; onChanged(); return this; } private Object atUserId_ = ""; /** *
       *需要@的人的id
       * 
* * optional string atUserId = 15; */ public String getAtUserId() { Object ref = atUserId_; if (!(ref instanceof String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; String s = bs.toStringUtf8(); atUserId_ = s; return s; } else { return (String) ref; } } /** *
       *需要@的人的id
       * 
* * optional string atUserId = 15; */ public com.google.protobuf.ByteString getAtUserIdBytes() { Object ref = atUserId_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (String) ref); atUserId_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
       *需要@的人的id
       * 
* * optional string atUserId = 15; */ public Builder setAtUserId( String value) { if (value == null) { throw new NullPointerException(); } atUserId_ = value; onChanged(); return this; } /** *
       *需要@的人的id
       * 
* * optional string atUserId = 15; */ public Builder clearAtUserId() { atUserId_ = getDefaultInstance().getAtUserId(); onChanged(); return this; } /** *
       *需要@的人的id
       * 
* * optional string atUserId = 15; */ public Builder setAtUserIdBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); atUserId_ = value; onChanged(); return this; } private Object body_ = ""; /** *
       *消息体
       * 
* * optional string body = 16; */ public String getBody() { Object ref = body_; if (!(ref instanceof String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; String s = bs.toStringUtf8(); body_ = s; return s; } else { return (String) ref; } } /** *
       *消息体
       * 
* * optional string body = 16; */ public com.google.protobuf.ByteString getBodyBytes() { Object ref = body_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (String) ref); body_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
       *消息体
       * 
* * optional string body = 16; */ public Builder setBody( String value) { if (value == null) { throw new NullPointerException(); } body_ = value; onChanged(); return this; } /** *
       *消息体
       * 
* * optional string body = 16; */ public Builder clearBody() { body_ = getDefaultInstance().getBody(); onChanged(); return this; } /** *
       *消息体
       * 
* * optional string body = 16; */ public Builder setBodyBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); body_ = value; onChanged(); return this; } private int bodyType_ ; /** *
       *消息类型
       * 
* * optional int32 bodyType = 17; */ public int getBodyType() { return bodyType_; } /** *
       *消息类型
       * 
* * optional int32 bodyType = 17; */ public Builder setBodyType(int value) { bodyType_ = value; onChanged(); return this; } /** *
       *消息类型
       * 
* * optional int32 bodyType = 17; */ public Builder clearBodyType() { bodyType_ = 0; onChanged(); return this; } private int bodyLength_ ; /** *
       *消息体长度
       * 
* * optional int32 bodyLength = 18; */ public int getBodyLength() { return bodyLength_; } /** *
       *消息体长度
       * 
* * optional int32 bodyLength = 18; */ public Builder setBodyLength(int value) { bodyLength_ = value; onChanged(); return this; } /** *
       *消息体长度
       * 
* * optional int32 bodyLength = 18; */ public Builder clearBodyLength() { bodyLength_ = 0; onChanged(); return this; } private int status_ ; /** *
       *确认状态
       * 
* * optional int32 status = 19; */ public int getStatus() { return status_; } /** *
       *确认状态
       * 
* * optional int32 status = 19; */ public Builder setStatus(int value) { status_ = value; onChanged(); return this; } /** *
       *确认状态
       * 
* * optional int32 status = 19; */ public Builder clearStatus() { status_ = 0; onChanged(); return this; } private int result_ ; /** *
       *业务结果
       * 
* * optional int32 result = 20; */ public int getResult() { return result_; } /** *
       *业务结果
       * 
* * optional int32 result = 20; */ public Builder setResult(int value) { result_ = value; onChanged(); return this; } /** *
       *业务结果
       * 
* * optional int32 result = 20; */ public Builder clearResult() { result_ = 0; onChanged(); return this; } private Object field1_ = ""; /** * optional string field1 = 21; */ public String getField1() { Object ref = field1_; if (!(ref instanceof String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; String s = bs.toStringUtf8(); field1_ = s; return s; } else { return (String) ref; } } /** * optional string field1 = 21; */ public com.google.protobuf.ByteString getField1Bytes() { Object ref = field1_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (String) ref); field1_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * optional string field1 = 21; */ public Builder setField1( String value) { if (value == null) { throw new NullPointerException(); } field1_ = value; onChanged(); return this; } /** * optional string field1 = 21; */ public Builder clearField1() { field1_ = getDefaultInstance().getField1(); onChanged(); return this; } /** * optional string field1 = 21; */ public Builder setField1Bytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); field1_ = value; onChanged(); return this; } private Object field2_ = ""; /** * optional string field2 = 22; */ public String getField2() { Object ref = field2_; if (!(ref instanceof String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; String s = bs.toStringUtf8(); field2_ = s; return s; } else { return (String) ref; } } /** * optional string field2 = 22; */ public com.google.protobuf.ByteString getField2Bytes() { Object ref = field2_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (String) ref); field2_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * optional string field2 = 22; */ public Builder setField2( String value) { if (value == null) { throw new NullPointerException(); } field2_ = value; onChanged(); return this; } /** * optional string field2 = 22; */ public Builder clearField2() { field2_ = getDefaultInstance().getField2(); onChanged(); return this; } /** * optional string field2 = 22; */ public Builder setField2Bytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); field2_ = value; onChanged(); return this; } private Object field3_ = ""; /** * optional string field3 = 23; */ public String getField3() { Object ref = field3_; if (!(ref instanceof String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; String s = bs.toStringUtf8(); field3_ = s; return s; } else { return (String) ref; } } /** * optional string field3 = 23; */ public com.google.protobuf.ByteString getField3Bytes() { Object ref = field3_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (String) ref); field3_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * optional string field3 = 23; */ public Builder setField3( String value) { if (value == null) { throw new NullPointerException(); } field3_ = value; onChanged(); return this; } /** * optional string field3 = 23; */ public Builder clearField3() { field3_ = getDefaultInstance().getField3(); onChanged(); return this; } /** * optional string field3 = 23; */ public Builder setField3Bytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); field3_ = value; onChanged(); return this; } public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return this; } public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return this; } // @@protoc_insertion_point(builder_scope:Message) } // @@protoc_insertion_point(class_scope:Message) private static final MessageClass.Message DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new MessageClass.Message(); } public static MessageClass.Message getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { public Message parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new Message(input, extensionRegistry); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @Override public com.google.protobuf.Parser getParserForType() { return PARSER; } public MessageClass.Message getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } private static final com.google.protobuf.Descriptors.Descriptor internal_static_Message_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_Message_fieldAccessorTable; public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { return descriptor; } private static com.google.protobuf.Descriptors.FileDescriptor descriptor; static { String[] descriptorData = { "\n\rMessage.proto\"\246\003\n\007Message\022\n\n\002id\030\001 \001(\t\022" + "\020\n\010identify\030\002 \001(\t\022\017\n\007version\030\003 \001(\t\022\017\n\007re" + "qType\030\004 \001(\005\022\017\n\007msgTime\030\005 \001(\003\022\020\n\010serverId" + "\030\006 \001(\t\022\013\n\003ack\030\007 \001(\t\022\020\n\010senderId\030\010 \001(\t\022\022\n" + "\nsenderName\030\t \001(\t\022\030\n\020senderHeadImgUrl\030\n " + "\001(\t\022\022\n\nreceiverId\030\013 \001(\t\022\024\n\014receiverName\030" + "\014 \001(\t\022\032\n\022receiverHeadImgUrl\030\r \001(\t\022\017\n\007gro" + "upId\030\016 \001(\t\022\020\n\010atUserId\030\017 \001(\t\022\014\n\004body\030\020 \001" + "(\t\022\020\n\010bodyType\030\021 \001(\005\022\022\n\nbodyLength\030\022 \001(\005" + "\022\016\n\006status\030\023 \001(\005\022\016\n\006result\030\024 \001(\005\022\016\n\006fiel", "d1\030\025 \001(\t\022\016\n\006field2\030\026 \001(\t\022\016\n\006field3\030\027 \001(\t" + "B\016B\014MessageClassb\006proto3" }; com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() { public com.google.protobuf.ExtensionRegistry assignDescriptors( com.google.protobuf.Descriptors.FileDescriptor root) { descriptor = root; return null; } }; com.google.protobuf.Descriptors.FileDescriptor .internalBuildGeneratedFileFrom(descriptorData, new com.google.protobuf.Descriptors.FileDescriptor[] { }, assigner); internal_static_Message_descriptor = getDescriptor().getMessageTypes().get(0); internal_static_Message_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_Message_descriptor, new String[] { "Id", "Identify", "Version", "ReqType", "MsgTime", "ServerId", "Ack", "SenderId", "SenderName", "SenderHeadImgUrl", "ReceiverId", "ReceiverName", "ReceiverHeadImgUrl", "GroupId", "AtUserId", "Body", "BodyType", "BodyLength", "Status", "Result", "Field1", "Field2", "Field3", }); } // @@protoc_insertion_point(outer_class_scope) }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy