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

wechat.protobuf.AddMsg Maven / Gradle / Ivy

There is a newer version: 8.0.48.01
Show newest version
// Generated by the protocol buffer compiler.  DO NOT EDIT!
// source: wechat.proto

package wechat.protobuf;

/**
 * Protobuf type {@code wechat_proto.AddMsg}
 */
public final class AddMsg extends
    com.google.protobuf.GeneratedMessageV3 implements
    // @@protoc_insertion_point(message_implements:wechat_proto.AddMsg)
    AddMsgOrBuilder {
private static final long serialVersionUID = 0L;
  // Use AddMsg.newBuilder() to construct.
  private AddMsg(com.google.protobuf.GeneratedMessageV3.Builder builder) {
    super(builder);
  }
  private AddMsg() {
    msgSource_ = "";
    pushContent_ = "";
  }

  @java.lang.Override
  @SuppressWarnings({"unused"})
  protected java.lang.Object newInstance(
      UnusedPrivateParameter unused) {
    return new AddMsg();
  }

  @java.lang.Override
  public final com.google.protobuf.UnknownFieldSet
  getUnknownFields() {
    return this.unknownFields;
  }
  private AddMsg(
      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: {
            bitField0_ |= 0x00000001;
            msgId_ = input.readUInt32();
            break;
          }
          case 18: {
            wechat.protobuf.SKBuiltinString.Builder subBuilder = null;
            if (((bitField0_ & 0x00000002) != 0)) {
              subBuilder = fromUserName_.toBuilder();
            }
            fromUserName_ = input.readMessage(wechat.protobuf.SKBuiltinString.PARSER, extensionRegistry);
            if (subBuilder != null) {
              subBuilder.mergeFrom(fromUserName_);
              fromUserName_ = subBuilder.buildPartial();
            }
            bitField0_ |= 0x00000002;
            break;
          }
          case 26: {
            wechat.protobuf.SKBuiltinString.Builder subBuilder = null;
            if (((bitField0_ & 0x00000004) != 0)) {
              subBuilder = toUserName_.toBuilder();
            }
            toUserName_ = input.readMessage(wechat.protobuf.SKBuiltinString.PARSER, extensionRegistry);
            if (subBuilder != null) {
              subBuilder.mergeFrom(toUserName_);
              toUserName_ = subBuilder.buildPartial();
            }
            bitField0_ |= 0x00000004;
            break;
          }
          case 32: {
            bitField0_ |= 0x00000008;
            msgType_ = input.readUInt32();
            break;
          }
          case 42: {
            wechat.protobuf.SKBuiltinString.Builder subBuilder = null;
            if (((bitField0_ & 0x00000010) != 0)) {
              subBuilder = content_.toBuilder();
            }
            content_ = input.readMessage(wechat.protobuf.SKBuiltinString.PARSER, extensionRegistry);
            if (subBuilder != null) {
              subBuilder.mergeFrom(content_);
              content_ = subBuilder.buildPartial();
            }
            bitField0_ |= 0x00000010;
            break;
          }
          case 48: {
            bitField0_ |= 0x00000020;
            status_ = input.readUInt32();
            break;
          }
          case 56: {
            bitField0_ |= 0x00000040;
            imgStatus_ = input.readUInt32();
            break;
          }
          case 66: {
            wechat.protobuf.SKBuiltinString_.Builder subBuilder = null;
            if (((bitField0_ & 0x00000080) != 0)) {
              subBuilder = imgBuf_.toBuilder();
            }
            imgBuf_ = input.readMessage(wechat.protobuf.SKBuiltinString_.PARSER, extensionRegistry);
            if (subBuilder != null) {
              subBuilder.mergeFrom(imgBuf_);
              imgBuf_ = subBuilder.buildPartial();
            }
            bitField0_ |= 0x00000080;
            break;
          }
          case 72: {
            bitField0_ |= 0x00000100;
            createTime_ = input.readUInt32();
            break;
          }
          case 82: {
            com.google.protobuf.ByteString bs = input.readBytes();
            bitField0_ |= 0x00000200;
            msgSource_ = bs;
            break;
          }
          case 90: {
            com.google.protobuf.ByteString bs = input.readBytes();
            bitField0_ |= 0x00000400;
            pushContent_ = bs;
            break;
          }
          case 96: {
            bitField0_ |= 0x00000800;
            newMsgId_ = input.readInt64();
            break;
          }
          default: {
            if (!parseUnknownField(
                input, unknownFields, extensionRegistry, tag)) {
              done = true;
            }
            break;
          }
        }
      }
    } catch (com.google.protobuf.InvalidProtocolBufferException e) {
      throw e.setUnfinishedMessage(this);
    } catch (java.io.IOException e) {
      throw new com.google.protobuf.InvalidProtocolBufferException(
          e).setUnfinishedMessage(this);
    } finally {
      this.unknownFields = unknownFields.build();
      makeExtensionsImmutable();
    }
  }
  public static final com.google.protobuf.Descriptors.Descriptor
      getDescriptor() {
    return wechat.protobuf.Wechat.internal_static_wechat_proto_AddMsg_descriptor;
  }

  @java.lang.Override
  protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
      internalGetFieldAccessorTable() {
    return wechat.protobuf.Wechat.internal_static_wechat_proto_AddMsg_fieldAccessorTable
        .ensureFieldAccessorsInitialized(
            wechat.protobuf.AddMsg.class, wechat.protobuf.AddMsg.Builder.class);
  }

  private int bitField0_;
  public static final int MSG_ID_FIELD_NUMBER = 1;
  private int msgId_;
  /**
   * optional uint32 msg_id = 1;
   * @return Whether the msgId field is set.
   */
  @java.lang.Override
  public boolean hasMsgId() {
    return ((bitField0_ & 0x00000001) != 0);
  }
  /**
   * optional uint32 msg_id = 1;
   * @return The msgId.
   */
  @java.lang.Override
  public int getMsgId() {
    return msgId_;
  }

  public static final int FROM_USER_NAME_FIELD_NUMBER = 2;
  private wechat.protobuf.SKBuiltinString fromUserName_;
  /**
   * optional .wechat_proto.SKBuiltinString from_user_name = 2;
   * @return Whether the fromUserName field is set.
   */
  @java.lang.Override
  public boolean hasFromUserName() {
    return ((bitField0_ & 0x00000002) != 0);
  }
  /**
   * optional .wechat_proto.SKBuiltinString from_user_name = 2;
   * @return The fromUserName.
   */
  @java.lang.Override
  public wechat.protobuf.SKBuiltinString getFromUserName() {
    return fromUserName_ == null ? wechat.protobuf.SKBuiltinString.getDefaultInstance() : fromUserName_;
  }
  /**
   * optional .wechat_proto.SKBuiltinString from_user_name = 2;
   */
  @java.lang.Override
  public wechat.protobuf.SKBuiltinStringOrBuilder getFromUserNameOrBuilder() {
    return fromUserName_ == null ? wechat.protobuf.SKBuiltinString.getDefaultInstance() : fromUserName_;
  }

  public static final int TO_USER_NAME_FIELD_NUMBER = 3;
  private wechat.protobuf.SKBuiltinString toUserName_;
  /**
   * optional .wechat_proto.SKBuiltinString to_user_name = 3;
   * @return Whether the toUserName field is set.
   */
  @java.lang.Override
  public boolean hasToUserName() {
    return ((bitField0_ & 0x00000004) != 0);
  }
  /**
   * optional .wechat_proto.SKBuiltinString to_user_name = 3;
   * @return The toUserName.
   */
  @java.lang.Override
  public wechat.protobuf.SKBuiltinString getToUserName() {
    return toUserName_ == null ? wechat.protobuf.SKBuiltinString.getDefaultInstance() : toUserName_;
  }
  /**
   * optional .wechat_proto.SKBuiltinString to_user_name = 3;
   */
  @java.lang.Override
  public wechat.protobuf.SKBuiltinStringOrBuilder getToUserNameOrBuilder() {
    return toUserName_ == null ? wechat.protobuf.SKBuiltinString.getDefaultInstance() : toUserName_;
  }

  public static final int MSG_TYPE_FIELD_NUMBER = 4;
  private int msgType_;
  /**
   * optional uint32 msg_type = 4;
   * @return Whether the msgType field is set.
   */
  @java.lang.Override
  public boolean hasMsgType() {
    return ((bitField0_ & 0x00000008) != 0);
  }
  /**
   * optional uint32 msg_type = 4;
   * @return The msgType.
   */
  @java.lang.Override
  public int getMsgType() {
    return msgType_;
  }

  public static final int CONTENT_FIELD_NUMBER = 5;
  private wechat.protobuf.SKBuiltinString content_;
  /**
   * optional .wechat_proto.SKBuiltinString content = 5;
   * @return Whether the content field is set.
   */
  @java.lang.Override
  public boolean hasContent() {
    return ((bitField0_ & 0x00000010) != 0);
  }
  /**
   * optional .wechat_proto.SKBuiltinString content = 5;
   * @return The content.
   */
  @java.lang.Override
  public wechat.protobuf.SKBuiltinString getContent() {
    return content_ == null ? wechat.protobuf.SKBuiltinString.getDefaultInstance() : content_;
  }
  /**
   * optional .wechat_proto.SKBuiltinString content = 5;
   */
  @java.lang.Override
  public wechat.protobuf.SKBuiltinStringOrBuilder getContentOrBuilder() {
    return content_ == null ? wechat.protobuf.SKBuiltinString.getDefaultInstance() : content_;
  }

  public static final int STATUS_FIELD_NUMBER = 6;
  private int status_;
  /**
   * optional uint32 status = 6;
   * @return Whether the status field is set.
   */
  @java.lang.Override
  public boolean hasStatus() {
    return ((bitField0_ & 0x00000020) != 0);
  }
  /**
   * optional uint32 status = 6;
   * @return The status.
   */
  @java.lang.Override
  public int getStatus() {
    return status_;
  }

  public static final int IMG_STATUS_FIELD_NUMBER = 7;
  private int imgStatus_;
  /**
   * optional uint32 img_status = 7;
   * @return Whether the imgStatus field is set.
   */
  @java.lang.Override
  public boolean hasImgStatus() {
    return ((bitField0_ & 0x00000040) != 0);
  }
  /**
   * optional uint32 img_status = 7;
   * @return The imgStatus.
   */
  @java.lang.Override
  public int getImgStatus() {
    return imgStatus_;
  }

  public static final int IMG_BUF_FIELD_NUMBER = 8;
  private wechat.protobuf.SKBuiltinString_ imgBuf_;
  /**
   * optional .wechat_proto.SKBuiltinString_ img_buf = 8;
   * @return Whether the imgBuf field is set.
   */
  @java.lang.Override
  public boolean hasImgBuf() {
    return ((bitField0_ & 0x00000080) != 0);
  }
  /**
   * optional .wechat_proto.SKBuiltinString_ img_buf = 8;
   * @return The imgBuf.
   */
  @java.lang.Override
  public wechat.protobuf.SKBuiltinString_ getImgBuf() {
    return imgBuf_ == null ? wechat.protobuf.SKBuiltinString_.getDefaultInstance() : imgBuf_;
  }
  /**
   * optional .wechat_proto.SKBuiltinString_ img_buf = 8;
   */
  @java.lang.Override
  public wechat.protobuf.SKBuiltinString_OrBuilder getImgBufOrBuilder() {
    return imgBuf_ == null ? wechat.protobuf.SKBuiltinString_.getDefaultInstance() : imgBuf_;
  }

  public static final int CREATE_TIME_FIELD_NUMBER = 9;
  private int createTime_;
  /**
   * optional uint32 create_time = 9;
   * @return Whether the createTime field is set.
   */
  @java.lang.Override
  public boolean hasCreateTime() {
    return ((bitField0_ & 0x00000100) != 0);
  }
  /**
   * optional uint32 create_time = 9;
   * @return The createTime.
   */
  @java.lang.Override
  public int getCreateTime() {
    return createTime_;
  }

  public static final int MSG_SOURCE_FIELD_NUMBER = 10;
  private volatile java.lang.Object msgSource_;
  /**
   * optional string msg_source = 10;
   * @return Whether the msgSource field is set.
   */
  @java.lang.Override
  public boolean hasMsgSource() {
    return ((bitField0_ & 0x00000200) != 0);
  }
  /**
   * optional string msg_source = 10;
   * @return The msgSource.
   */
  @java.lang.Override
  public java.lang.String getMsgSource() {
    java.lang.Object ref = msgSource_;
    if (ref instanceof java.lang.String) {
      return (java.lang.String) ref;
    } else {
      com.google.protobuf.ByteString bs = 
          (com.google.protobuf.ByteString) ref;
      java.lang.String s = bs.toStringUtf8();
      if (bs.isValidUtf8()) {
        msgSource_ = s;
      }
      return s;
    }
  }
  /**
   * optional string msg_source = 10;
   * @return The bytes for msgSource.
   */
  @java.lang.Override
  public com.google.protobuf.ByteString
      getMsgSourceBytes() {
    java.lang.Object ref = msgSource_;
    if (ref instanceof java.lang.String) {
      com.google.protobuf.ByteString b = 
          com.google.protobuf.ByteString.copyFromUtf8(
              (java.lang.String) ref);
      msgSource_ = b;
      return b;
    } else {
      return (com.google.protobuf.ByteString) ref;
    }
  }

  public static final int PUSH_CONTENT_FIELD_NUMBER = 11;
  private volatile java.lang.Object pushContent_;
  /**
   * optional string push_content = 11;
   * @return Whether the pushContent field is set.
   */
  @java.lang.Override
  public boolean hasPushContent() {
    return ((bitField0_ & 0x00000400) != 0);
  }
  /**
   * optional string push_content = 11;
   * @return The pushContent.
   */
  @java.lang.Override
  public java.lang.String getPushContent() {
    java.lang.Object ref = pushContent_;
    if (ref instanceof java.lang.String) {
      return (java.lang.String) ref;
    } else {
      com.google.protobuf.ByteString bs = 
          (com.google.protobuf.ByteString) ref;
      java.lang.String s = bs.toStringUtf8();
      if (bs.isValidUtf8()) {
        pushContent_ = s;
      }
      return s;
    }
  }
  /**
   * optional string push_content = 11;
   * @return The bytes for pushContent.
   */
  @java.lang.Override
  public com.google.protobuf.ByteString
      getPushContentBytes() {
    java.lang.Object ref = pushContent_;
    if (ref instanceof java.lang.String) {
      com.google.protobuf.ByteString b = 
          com.google.protobuf.ByteString.copyFromUtf8(
              (java.lang.String) ref);
      pushContent_ = b;
      return b;
    } else {
      return (com.google.protobuf.ByteString) ref;
    }
  }

  public static final int NEW_MSG_ID_FIELD_NUMBER = 12;
  private long newMsgId_;
  /**
   * optional int64 new_msg_id = 12;
   * @return Whether the newMsgId field is set.
   */
  @java.lang.Override
  public boolean hasNewMsgId() {
    return ((bitField0_ & 0x00000800) != 0);
  }
  /**
   * optional int64 new_msg_id = 12;
   * @return The newMsgId.
   */
  @java.lang.Override
  public long getNewMsgId() {
    return newMsgId_;
  }

  private byte memoizedIsInitialized = -1;
  @java.lang.Override
  public final boolean isInitialized() {
    byte isInitialized = memoizedIsInitialized;
    if (isInitialized == 1) return true;
    if (isInitialized == 0) return false;

    memoizedIsInitialized = 1;
    return true;
  }

  @java.lang.Override
  public void writeTo(com.google.protobuf.CodedOutputStream output)
                      throws java.io.IOException {
    if (((bitField0_ & 0x00000001) != 0)) {
      output.writeUInt32(1, msgId_);
    }
    if (((bitField0_ & 0x00000002) != 0)) {
      output.writeMessage(2, getFromUserName());
    }
    if (((bitField0_ & 0x00000004) != 0)) {
      output.writeMessage(3, getToUserName());
    }
    if (((bitField0_ & 0x00000008) != 0)) {
      output.writeUInt32(4, msgType_);
    }
    if (((bitField0_ & 0x00000010) != 0)) {
      output.writeMessage(5, getContent());
    }
    if (((bitField0_ & 0x00000020) != 0)) {
      output.writeUInt32(6, status_);
    }
    if (((bitField0_ & 0x00000040) != 0)) {
      output.writeUInt32(7, imgStatus_);
    }
    if (((bitField0_ & 0x00000080) != 0)) {
      output.writeMessage(8, getImgBuf());
    }
    if (((bitField0_ & 0x00000100) != 0)) {
      output.writeUInt32(9, createTime_);
    }
    if (((bitField0_ & 0x00000200) != 0)) {
      com.google.protobuf.GeneratedMessageV3.writeString(output, 10, msgSource_);
    }
    if (((bitField0_ & 0x00000400) != 0)) {
      com.google.protobuf.GeneratedMessageV3.writeString(output, 11, pushContent_);
    }
    if (((bitField0_ & 0x00000800) != 0)) {
      output.writeInt64(12, newMsgId_);
    }
    unknownFields.writeTo(output);
  }

  @java.lang.Override
  public int getSerializedSize() {
    int size = memoizedSize;
    if (size != -1) return size;

    size = 0;
    if (((bitField0_ & 0x00000001) != 0)) {
      size += com.google.protobuf.CodedOutputStream
        .computeUInt32Size(1, msgId_);
    }
    if (((bitField0_ & 0x00000002) != 0)) {
      size += com.google.protobuf.CodedOutputStream
        .computeMessageSize(2, getFromUserName());
    }
    if (((bitField0_ & 0x00000004) != 0)) {
      size += com.google.protobuf.CodedOutputStream
        .computeMessageSize(3, getToUserName());
    }
    if (((bitField0_ & 0x00000008) != 0)) {
      size += com.google.protobuf.CodedOutputStream
        .computeUInt32Size(4, msgType_);
    }
    if (((bitField0_ & 0x00000010) != 0)) {
      size += com.google.protobuf.CodedOutputStream
        .computeMessageSize(5, getContent());
    }
    if (((bitField0_ & 0x00000020) != 0)) {
      size += com.google.protobuf.CodedOutputStream
        .computeUInt32Size(6, status_);
    }
    if (((bitField0_ & 0x00000040) != 0)) {
      size += com.google.protobuf.CodedOutputStream
        .computeUInt32Size(7, imgStatus_);
    }
    if (((bitField0_ & 0x00000080) != 0)) {
      size += com.google.protobuf.CodedOutputStream
        .computeMessageSize(8, getImgBuf());
    }
    if (((bitField0_ & 0x00000100) != 0)) {
      size += com.google.protobuf.CodedOutputStream
        .computeUInt32Size(9, createTime_);
    }
    if (((bitField0_ & 0x00000200) != 0)) {
      size += com.google.protobuf.GeneratedMessageV3.computeStringSize(10, msgSource_);
    }
    if (((bitField0_ & 0x00000400) != 0)) {
      size += com.google.protobuf.GeneratedMessageV3.computeStringSize(11, pushContent_);
    }
    if (((bitField0_ & 0x00000800) != 0)) {
      size += com.google.protobuf.CodedOutputStream
        .computeInt64Size(12, newMsgId_);
    }
    size += unknownFields.getSerializedSize();
    memoizedSize = size;
    return size;
  }

  @java.lang.Override
  public boolean equals(final java.lang.Object obj) {
    if (obj == this) {
     return true;
    }
    if (!(obj instanceof wechat.protobuf.AddMsg)) {
      return super.equals(obj);
    }
    wechat.protobuf.AddMsg other = (wechat.protobuf.AddMsg) obj;

    if (hasMsgId() != other.hasMsgId()) return false;
    if (hasMsgId()) {
      if (getMsgId()
          != other.getMsgId()) return false;
    }
    if (hasFromUserName() != other.hasFromUserName()) return false;
    if (hasFromUserName()) {
      if (!getFromUserName()
          .equals(other.getFromUserName())) return false;
    }
    if (hasToUserName() != other.hasToUserName()) return false;
    if (hasToUserName()) {
      if (!getToUserName()
          .equals(other.getToUserName())) return false;
    }
    if (hasMsgType() != other.hasMsgType()) return false;
    if (hasMsgType()) {
      if (getMsgType()
          != other.getMsgType()) return false;
    }
    if (hasContent() != other.hasContent()) return false;
    if (hasContent()) {
      if (!getContent()
          .equals(other.getContent())) return false;
    }
    if (hasStatus() != other.hasStatus()) return false;
    if (hasStatus()) {
      if (getStatus()
          != other.getStatus()) return false;
    }
    if (hasImgStatus() != other.hasImgStatus()) return false;
    if (hasImgStatus()) {
      if (getImgStatus()
          != other.getImgStatus()) return false;
    }
    if (hasImgBuf() != other.hasImgBuf()) return false;
    if (hasImgBuf()) {
      if (!getImgBuf()
          .equals(other.getImgBuf())) return false;
    }
    if (hasCreateTime() != other.hasCreateTime()) return false;
    if (hasCreateTime()) {
      if (getCreateTime()
          != other.getCreateTime()) return false;
    }
    if (hasMsgSource() != other.hasMsgSource()) return false;
    if (hasMsgSource()) {
      if (!getMsgSource()
          .equals(other.getMsgSource())) return false;
    }
    if (hasPushContent() != other.hasPushContent()) return false;
    if (hasPushContent()) {
      if (!getPushContent()
          .equals(other.getPushContent())) return false;
    }
    if (hasNewMsgId() != other.hasNewMsgId()) return false;
    if (hasNewMsgId()) {
      if (getNewMsgId()
          != other.getNewMsgId()) return false;
    }
    if (!unknownFields.equals(other.unknownFields)) return false;
    return true;
  }

  @java.lang.Override
  public int hashCode() {
    if (memoizedHashCode != 0) {
      return memoizedHashCode;
    }
    int hash = 41;
    hash = (19 * hash) + getDescriptor().hashCode();
    if (hasMsgId()) {
      hash = (37 * hash) + MSG_ID_FIELD_NUMBER;
      hash = (53 * hash) + getMsgId();
    }
    if (hasFromUserName()) {
      hash = (37 * hash) + FROM_USER_NAME_FIELD_NUMBER;
      hash = (53 * hash) + getFromUserName().hashCode();
    }
    if (hasToUserName()) {
      hash = (37 * hash) + TO_USER_NAME_FIELD_NUMBER;
      hash = (53 * hash) + getToUserName().hashCode();
    }
    if (hasMsgType()) {
      hash = (37 * hash) + MSG_TYPE_FIELD_NUMBER;
      hash = (53 * hash) + getMsgType();
    }
    if (hasContent()) {
      hash = (37 * hash) + CONTENT_FIELD_NUMBER;
      hash = (53 * hash) + getContent().hashCode();
    }
    if (hasStatus()) {
      hash = (37 * hash) + STATUS_FIELD_NUMBER;
      hash = (53 * hash) + getStatus();
    }
    if (hasImgStatus()) {
      hash = (37 * hash) + IMG_STATUS_FIELD_NUMBER;
      hash = (53 * hash) + getImgStatus();
    }
    if (hasImgBuf()) {
      hash = (37 * hash) + IMG_BUF_FIELD_NUMBER;
      hash = (53 * hash) + getImgBuf().hashCode();
    }
    if (hasCreateTime()) {
      hash = (37 * hash) + CREATE_TIME_FIELD_NUMBER;
      hash = (53 * hash) + getCreateTime();
    }
    if (hasMsgSource()) {
      hash = (37 * hash) + MSG_SOURCE_FIELD_NUMBER;
      hash = (53 * hash) + getMsgSource().hashCode();
    }
    if (hasPushContent()) {
      hash = (37 * hash) + PUSH_CONTENT_FIELD_NUMBER;
      hash = (53 * hash) + getPushContent().hashCode();
    }
    if (hasNewMsgId()) {
      hash = (37 * hash) + NEW_MSG_ID_FIELD_NUMBER;
      hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
          getNewMsgId());
    }
    hash = (29 * hash) + unknownFields.hashCode();
    memoizedHashCode = hash;
    return hash;
  }

  public static wechat.protobuf.AddMsg parseFrom(
      java.nio.ByteBuffer data)
      throws com.google.protobuf.InvalidProtocolBufferException {
    return PARSER.parseFrom(data);
  }
  public static wechat.protobuf.AddMsg parseFrom(
      java.nio.ByteBuffer data,
      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
      throws com.google.protobuf.InvalidProtocolBufferException {
    return PARSER.parseFrom(data, extensionRegistry);
  }
  public static wechat.protobuf.AddMsg parseFrom(
      com.google.protobuf.ByteString data)
      throws com.google.protobuf.InvalidProtocolBufferException {
    return PARSER.parseFrom(data);
  }
  public static wechat.protobuf.AddMsg parseFrom(
      com.google.protobuf.ByteString data,
      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
      throws com.google.protobuf.InvalidProtocolBufferException {
    return PARSER.parseFrom(data, extensionRegistry);
  }
  public static wechat.protobuf.AddMsg parseFrom(byte[] data)
      throws com.google.protobuf.InvalidProtocolBufferException {
    return PARSER.parseFrom(data);
  }
  public static wechat.protobuf.AddMsg parseFrom(
      byte[] data,
      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
      throws com.google.protobuf.InvalidProtocolBufferException {
    return PARSER.parseFrom(data, extensionRegistry);
  }
  public static wechat.protobuf.AddMsg parseFrom(java.io.InputStream input)
      throws java.io.IOException {
    return com.google.protobuf.GeneratedMessageV3
        .parseWithIOException(PARSER, input);
  }
  public static wechat.protobuf.AddMsg parseFrom(
      java.io.InputStream input,
      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
      throws java.io.IOException {
    return com.google.protobuf.GeneratedMessageV3
        .parseWithIOException(PARSER, input, extensionRegistry);
  }
  public static wechat.protobuf.AddMsg parseDelimitedFrom(java.io.InputStream input)
      throws java.io.IOException {
    return com.google.protobuf.GeneratedMessageV3
        .parseDelimitedWithIOException(PARSER, input);
  }
  public static wechat.protobuf.AddMsg parseDelimitedFrom(
      java.io.InputStream input,
      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
      throws java.io.IOException {
    return com.google.protobuf.GeneratedMessageV3
        .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
  }
  public static wechat.protobuf.AddMsg parseFrom(
      com.google.protobuf.CodedInputStream input)
      throws java.io.IOException {
    return com.google.protobuf.GeneratedMessageV3
        .parseWithIOException(PARSER, input);
  }
  public static wechat.protobuf.AddMsg parseFrom(
      com.google.protobuf.CodedInputStream input,
      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
      throws java.io.IOException {
    return com.google.protobuf.GeneratedMessageV3
        .parseWithIOException(PARSER, input, extensionRegistry);
  }

  @java.lang.Override
  public Builder newBuilderForType() { return newBuilder(); }
  public static Builder newBuilder() {
    return DEFAULT_INSTANCE.toBuilder();
  }
  public static Builder newBuilder(wechat.protobuf.AddMsg prototype) {
    return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
  }
  @java.lang.Override
  public Builder toBuilder() {
    return this == DEFAULT_INSTANCE
        ? new Builder() : new Builder().mergeFrom(this);
  }

  @java.lang.Override
  protected Builder newBuilderForType(
      com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
    Builder builder = new Builder(parent);
    return builder;
  }
  /**
   * Protobuf type {@code wechat_proto.AddMsg}
   */
  public static final class Builder extends
      com.google.protobuf.GeneratedMessageV3.Builder implements
      // @@protoc_insertion_point(builder_implements:wechat_proto.AddMsg)
      wechat.protobuf.AddMsgOrBuilder {
    public static final com.google.protobuf.Descriptors.Descriptor
        getDescriptor() {
      return wechat.protobuf.Wechat.internal_static_wechat_proto_AddMsg_descriptor;
    }

    @java.lang.Override
    protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
        internalGetFieldAccessorTable() {
      return wechat.protobuf.Wechat.internal_static_wechat_proto_AddMsg_fieldAccessorTable
          .ensureFieldAccessorsInitialized(
              wechat.protobuf.AddMsg.class, wechat.protobuf.AddMsg.Builder.class);
    }

    // Construct using wechat.protobuf.AddMsg.newBuilder()
    private Builder() {
      maybeForceBuilderInitialization();
    }

    private Builder(
        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
      super(parent);
      maybeForceBuilderInitialization();
    }
    private void maybeForceBuilderInitialization() {
      if (com.google.protobuf.GeneratedMessageV3
              .alwaysUseFieldBuilders) {
        getFromUserNameFieldBuilder();
        getToUserNameFieldBuilder();
        getContentFieldBuilder();
        getImgBufFieldBuilder();
      }
    }
    @java.lang.Override
    public Builder clear() {
      super.clear();
      msgId_ = 0;
      bitField0_ = (bitField0_ & ~0x00000001);
      if (fromUserNameBuilder_ == null) {
        fromUserName_ = null;
      } else {
        fromUserNameBuilder_.clear();
      }
      bitField0_ = (bitField0_ & ~0x00000002);
      if (toUserNameBuilder_ == null) {
        toUserName_ = null;
      } else {
        toUserNameBuilder_.clear();
      }
      bitField0_ = (bitField0_ & ~0x00000004);
      msgType_ = 0;
      bitField0_ = (bitField0_ & ~0x00000008);
      if (contentBuilder_ == null) {
        content_ = null;
      } else {
        contentBuilder_.clear();
      }
      bitField0_ = (bitField0_ & ~0x00000010);
      status_ = 0;
      bitField0_ = (bitField0_ & ~0x00000020);
      imgStatus_ = 0;
      bitField0_ = (bitField0_ & ~0x00000040);
      if (imgBufBuilder_ == null) {
        imgBuf_ = null;
      } else {
        imgBufBuilder_.clear();
      }
      bitField0_ = (bitField0_ & ~0x00000080);
      createTime_ = 0;
      bitField0_ = (bitField0_ & ~0x00000100);
      msgSource_ = "";
      bitField0_ = (bitField0_ & ~0x00000200);
      pushContent_ = "";
      bitField0_ = (bitField0_ & ~0x00000400);
      newMsgId_ = 0L;
      bitField0_ = (bitField0_ & ~0x00000800);
      return this;
    }

    @java.lang.Override
    public com.google.protobuf.Descriptors.Descriptor
        getDescriptorForType() {
      return wechat.protobuf.Wechat.internal_static_wechat_proto_AddMsg_descriptor;
    }

    @java.lang.Override
    public wechat.protobuf.AddMsg getDefaultInstanceForType() {
      return wechat.protobuf.AddMsg.getDefaultInstance();
    }

    @java.lang.Override
    public wechat.protobuf.AddMsg build() {
      wechat.protobuf.AddMsg result = buildPartial();
      if (!result.isInitialized()) {
        throw newUninitializedMessageException(result);
      }
      return result;
    }

    @java.lang.Override
    public wechat.protobuf.AddMsg buildPartial() {
      wechat.protobuf.AddMsg result = new wechat.protobuf.AddMsg(this);
      int from_bitField0_ = bitField0_;
      int to_bitField0_ = 0;
      if (((from_bitField0_ & 0x00000001) != 0)) {
        result.msgId_ = msgId_;
        to_bitField0_ |= 0x00000001;
      }
      if (((from_bitField0_ & 0x00000002) != 0)) {
        if (fromUserNameBuilder_ == null) {
          result.fromUserName_ = fromUserName_;
        } else {
          result.fromUserName_ = fromUserNameBuilder_.build();
        }
        to_bitField0_ |= 0x00000002;
      }
      if (((from_bitField0_ & 0x00000004) != 0)) {
        if (toUserNameBuilder_ == null) {
          result.toUserName_ = toUserName_;
        } else {
          result.toUserName_ = toUserNameBuilder_.build();
        }
        to_bitField0_ |= 0x00000004;
      }
      if (((from_bitField0_ & 0x00000008) != 0)) {
        result.msgType_ = msgType_;
        to_bitField0_ |= 0x00000008;
      }
      if (((from_bitField0_ & 0x00000010) != 0)) {
        if (contentBuilder_ == null) {
          result.content_ = content_;
        } else {
          result.content_ = contentBuilder_.build();
        }
        to_bitField0_ |= 0x00000010;
      }
      if (((from_bitField0_ & 0x00000020) != 0)) {
        result.status_ = status_;
        to_bitField0_ |= 0x00000020;
      }
      if (((from_bitField0_ & 0x00000040) != 0)) {
        result.imgStatus_ = imgStatus_;
        to_bitField0_ |= 0x00000040;
      }
      if (((from_bitField0_ & 0x00000080) != 0)) {
        if (imgBufBuilder_ == null) {
          result.imgBuf_ = imgBuf_;
        } else {
          result.imgBuf_ = imgBufBuilder_.build();
        }
        to_bitField0_ |= 0x00000080;
      }
      if (((from_bitField0_ & 0x00000100) != 0)) {
        result.createTime_ = createTime_;
        to_bitField0_ |= 0x00000100;
      }
      if (((from_bitField0_ & 0x00000200) != 0)) {
        to_bitField0_ |= 0x00000200;
      }
      result.msgSource_ = msgSource_;
      if (((from_bitField0_ & 0x00000400) != 0)) {
        to_bitField0_ |= 0x00000400;
      }
      result.pushContent_ = pushContent_;
      if (((from_bitField0_ & 0x00000800) != 0)) {
        result.newMsgId_ = newMsgId_;
        to_bitField0_ |= 0x00000800;
      }
      result.bitField0_ = to_bitField0_;
      onBuilt();
      return result;
    }

    @java.lang.Override
    public Builder clone() {
      return super.clone();
    }
    @java.lang.Override
    public Builder setField(
        com.google.protobuf.Descriptors.FieldDescriptor field,
        java.lang.Object value) {
      return super.setField(field, value);
    }
    @java.lang.Override
    public Builder clearField(
        com.google.protobuf.Descriptors.FieldDescriptor field) {
      return super.clearField(field);
    }
    @java.lang.Override
    public Builder clearOneof(
        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
      return super.clearOneof(oneof);
    }
    @java.lang.Override
    public Builder setRepeatedField(
        com.google.protobuf.Descriptors.FieldDescriptor field,
        int index, java.lang.Object value) {
      return super.setRepeatedField(field, index, value);
    }
    @java.lang.Override
    public Builder addRepeatedField(
        com.google.protobuf.Descriptors.FieldDescriptor field,
        java.lang.Object value) {
      return super.addRepeatedField(field, value);
    }
    @java.lang.Override
    public Builder mergeFrom(com.google.protobuf.Message other) {
      if (other instanceof wechat.protobuf.AddMsg) {
        return mergeFrom((wechat.protobuf.AddMsg)other);
      } else {
        super.mergeFrom(other);
        return this;
      }
    }

    public Builder mergeFrom(wechat.protobuf.AddMsg other) {
      if (other == wechat.protobuf.AddMsg.getDefaultInstance()) return this;
      if (other.hasMsgId()) {
        setMsgId(other.getMsgId());
      }
      if (other.hasFromUserName()) {
        mergeFromUserName(other.getFromUserName());
      }
      if (other.hasToUserName()) {
        mergeToUserName(other.getToUserName());
      }
      if (other.hasMsgType()) {
        setMsgType(other.getMsgType());
      }
      if (other.hasContent()) {
        mergeContent(other.getContent());
      }
      if (other.hasStatus()) {
        setStatus(other.getStatus());
      }
      if (other.hasImgStatus()) {
        setImgStatus(other.getImgStatus());
      }
      if (other.hasImgBuf()) {
        mergeImgBuf(other.getImgBuf());
      }
      if (other.hasCreateTime()) {
        setCreateTime(other.getCreateTime());
      }
      if (other.hasMsgSource()) {
        bitField0_ |= 0x00000200;
        msgSource_ = other.msgSource_;
        onChanged();
      }
      if (other.hasPushContent()) {
        bitField0_ |= 0x00000400;
        pushContent_ = other.pushContent_;
        onChanged();
      }
      if (other.hasNewMsgId()) {
        setNewMsgId(other.getNewMsgId());
      }
      this.mergeUnknownFields(other.unknownFields);
      onChanged();
      return this;
    }

    @java.lang.Override
    public final boolean isInitialized() {
      return true;
    }

    @java.lang.Override
    public Builder mergeFrom(
        com.google.protobuf.CodedInputStream input,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws java.io.IOException {
      wechat.protobuf.AddMsg parsedMessage = null;
      try {
        parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
      } catch (com.google.protobuf.InvalidProtocolBufferException e) {
        parsedMessage = (wechat.protobuf.AddMsg) e.getUnfinishedMessage();
        throw e.unwrapIOException();
      } finally {
        if (parsedMessage != null) {
          mergeFrom(parsedMessage);
        }
      }
      return this;
    }
    private int bitField0_;

    private int msgId_ ;
    /**
     * optional uint32 msg_id = 1;
     * @return Whether the msgId field is set.
     */
    @java.lang.Override
    public boolean hasMsgId() {
      return ((bitField0_ & 0x00000001) != 0);
    }
    /**
     * optional uint32 msg_id = 1;
     * @return The msgId.
     */
    @java.lang.Override
    public int getMsgId() {
      return msgId_;
    }
    /**
     * optional uint32 msg_id = 1;
     * @param value The msgId to set.
     * @return This builder for chaining.
     */
    public Builder setMsgId(int value) {
      bitField0_ |= 0x00000001;
      msgId_ = value;
      onChanged();
      return this;
    }
    /**
     * optional uint32 msg_id = 1;
     * @return This builder for chaining.
     */
    public Builder clearMsgId() {
      bitField0_ = (bitField0_ & ~0x00000001);
      msgId_ = 0;
      onChanged();
      return this;
    }

    private wechat.protobuf.SKBuiltinString fromUserName_;
    private com.google.protobuf.SingleFieldBuilderV3<
        wechat.protobuf.SKBuiltinString, wechat.protobuf.SKBuiltinString.Builder, wechat.protobuf.SKBuiltinStringOrBuilder> fromUserNameBuilder_;
    /**
     * optional .wechat_proto.SKBuiltinString from_user_name = 2;
     * @return Whether the fromUserName field is set.
     */
    public boolean hasFromUserName() {
      return ((bitField0_ & 0x00000002) != 0);
    }
    /**
     * optional .wechat_proto.SKBuiltinString from_user_name = 2;
     * @return The fromUserName.
     */
    public wechat.protobuf.SKBuiltinString getFromUserName() {
      if (fromUserNameBuilder_ == null) {
        return fromUserName_ == null ? wechat.protobuf.SKBuiltinString.getDefaultInstance() : fromUserName_;
      } else {
        return fromUserNameBuilder_.getMessage();
      }
    }
    /**
     * optional .wechat_proto.SKBuiltinString from_user_name = 2;
     */
    public Builder setFromUserName(wechat.protobuf.SKBuiltinString value) {
      if (fromUserNameBuilder_ == null) {
        if (value == null) {
          throw new NullPointerException();
        }
        fromUserName_ = value;
        onChanged();
      } else {
        fromUserNameBuilder_.setMessage(value);
      }
      bitField0_ |= 0x00000002;
      return this;
    }
    /**
     * optional .wechat_proto.SKBuiltinString from_user_name = 2;
     */
    public Builder setFromUserName(
        wechat.protobuf.SKBuiltinString.Builder builderForValue) {
      if (fromUserNameBuilder_ == null) {
        fromUserName_ = builderForValue.build();
        onChanged();
      } else {
        fromUserNameBuilder_.setMessage(builderForValue.build());
      }
      bitField0_ |= 0x00000002;
      return this;
    }
    /**
     * optional .wechat_proto.SKBuiltinString from_user_name = 2;
     */
    public Builder mergeFromUserName(wechat.protobuf.SKBuiltinString value) {
      if (fromUserNameBuilder_ == null) {
        if (((bitField0_ & 0x00000002) != 0) &&
            fromUserName_ != null &&
            fromUserName_ != wechat.protobuf.SKBuiltinString.getDefaultInstance()) {
          fromUserName_ =
            wechat.protobuf.SKBuiltinString.newBuilder(fromUserName_).mergeFrom(value).buildPartial();
        } else {
          fromUserName_ = value;
        }
        onChanged();
      } else {
        fromUserNameBuilder_.mergeFrom(value);
      }
      bitField0_ |= 0x00000002;
      return this;
    }
    /**
     * optional .wechat_proto.SKBuiltinString from_user_name = 2;
     */
    public Builder clearFromUserName() {
      if (fromUserNameBuilder_ == null) {
        fromUserName_ = null;
        onChanged();
      } else {
        fromUserNameBuilder_.clear();
      }
      bitField0_ = (bitField0_ & ~0x00000002);
      return this;
    }
    /**
     * optional .wechat_proto.SKBuiltinString from_user_name = 2;
     */
    public wechat.protobuf.SKBuiltinString.Builder getFromUserNameBuilder() {
      bitField0_ |= 0x00000002;
      onChanged();
      return getFromUserNameFieldBuilder().getBuilder();
    }
    /**
     * optional .wechat_proto.SKBuiltinString from_user_name = 2;
     */
    public wechat.protobuf.SKBuiltinStringOrBuilder getFromUserNameOrBuilder() {
      if (fromUserNameBuilder_ != null) {
        return fromUserNameBuilder_.getMessageOrBuilder();
      } else {
        return fromUserName_ == null ?
            wechat.protobuf.SKBuiltinString.getDefaultInstance() : fromUserName_;
      }
    }
    /**
     * optional .wechat_proto.SKBuiltinString from_user_name = 2;
     */
    private com.google.protobuf.SingleFieldBuilderV3<
        wechat.protobuf.SKBuiltinString, wechat.protobuf.SKBuiltinString.Builder, wechat.protobuf.SKBuiltinStringOrBuilder> 
        getFromUserNameFieldBuilder() {
      if (fromUserNameBuilder_ == null) {
        fromUserNameBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
            wechat.protobuf.SKBuiltinString, wechat.protobuf.SKBuiltinString.Builder, wechat.protobuf.SKBuiltinStringOrBuilder>(
                getFromUserName(),
                getParentForChildren(),
                isClean());
        fromUserName_ = null;
      }
      return fromUserNameBuilder_;
    }

    private wechat.protobuf.SKBuiltinString toUserName_;
    private com.google.protobuf.SingleFieldBuilderV3<
        wechat.protobuf.SKBuiltinString, wechat.protobuf.SKBuiltinString.Builder, wechat.protobuf.SKBuiltinStringOrBuilder> toUserNameBuilder_;
    /**
     * optional .wechat_proto.SKBuiltinString to_user_name = 3;
     * @return Whether the toUserName field is set.
     */
    public boolean hasToUserName() {
      return ((bitField0_ & 0x00000004) != 0);
    }
    /**
     * optional .wechat_proto.SKBuiltinString to_user_name = 3;
     * @return The toUserName.
     */
    public wechat.protobuf.SKBuiltinString getToUserName() {
      if (toUserNameBuilder_ == null) {
        return toUserName_ == null ? wechat.protobuf.SKBuiltinString.getDefaultInstance() : toUserName_;
      } else {
        return toUserNameBuilder_.getMessage();
      }
    }
    /**
     * optional .wechat_proto.SKBuiltinString to_user_name = 3;
     */
    public Builder setToUserName(wechat.protobuf.SKBuiltinString value) {
      if (toUserNameBuilder_ == null) {
        if (value == null) {
          throw new NullPointerException();
        }
        toUserName_ = value;
        onChanged();
      } else {
        toUserNameBuilder_.setMessage(value);
      }
      bitField0_ |= 0x00000004;
      return this;
    }
    /**
     * optional .wechat_proto.SKBuiltinString to_user_name = 3;
     */
    public Builder setToUserName(
        wechat.protobuf.SKBuiltinString.Builder builderForValue) {
      if (toUserNameBuilder_ == null) {
        toUserName_ = builderForValue.build();
        onChanged();
      } else {
        toUserNameBuilder_.setMessage(builderForValue.build());
      }
      bitField0_ |= 0x00000004;
      return this;
    }
    /**
     * optional .wechat_proto.SKBuiltinString to_user_name = 3;
     */
    public Builder mergeToUserName(wechat.protobuf.SKBuiltinString value) {
      if (toUserNameBuilder_ == null) {
        if (((bitField0_ & 0x00000004) != 0) &&
            toUserName_ != null &&
            toUserName_ != wechat.protobuf.SKBuiltinString.getDefaultInstance()) {
          toUserName_ =
            wechat.protobuf.SKBuiltinString.newBuilder(toUserName_).mergeFrom(value).buildPartial();
        } else {
          toUserName_ = value;
        }
        onChanged();
      } else {
        toUserNameBuilder_.mergeFrom(value);
      }
      bitField0_ |= 0x00000004;
      return this;
    }
    /**
     * optional .wechat_proto.SKBuiltinString to_user_name = 3;
     */
    public Builder clearToUserName() {
      if (toUserNameBuilder_ == null) {
        toUserName_ = null;
        onChanged();
      } else {
        toUserNameBuilder_.clear();
      }
      bitField0_ = (bitField0_ & ~0x00000004);
      return this;
    }
    /**
     * optional .wechat_proto.SKBuiltinString to_user_name = 3;
     */
    public wechat.protobuf.SKBuiltinString.Builder getToUserNameBuilder() {
      bitField0_ |= 0x00000004;
      onChanged();
      return getToUserNameFieldBuilder().getBuilder();
    }
    /**
     * optional .wechat_proto.SKBuiltinString to_user_name = 3;
     */
    public wechat.protobuf.SKBuiltinStringOrBuilder getToUserNameOrBuilder() {
      if (toUserNameBuilder_ != null) {
        return toUserNameBuilder_.getMessageOrBuilder();
      } else {
        return toUserName_ == null ?
            wechat.protobuf.SKBuiltinString.getDefaultInstance() : toUserName_;
      }
    }
    /**
     * optional .wechat_proto.SKBuiltinString to_user_name = 3;
     */
    private com.google.protobuf.SingleFieldBuilderV3<
        wechat.protobuf.SKBuiltinString, wechat.protobuf.SKBuiltinString.Builder, wechat.protobuf.SKBuiltinStringOrBuilder> 
        getToUserNameFieldBuilder() {
      if (toUserNameBuilder_ == null) {
        toUserNameBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
            wechat.protobuf.SKBuiltinString, wechat.protobuf.SKBuiltinString.Builder, wechat.protobuf.SKBuiltinStringOrBuilder>(
                getToUserName(),
                getParentForChildren(),
                isClean());
        toUserName_ = null;
      }
      return toUserNameBuilder_;
    }

    private int msgType_ ;
    /**
     * optional uint32 msg_type = 4;
     * @return Whether the msgType field is set.
     */
    @java.lang.Override
    public boolean hasMsgType() {
      return ((bitField0_ & 0x00000008) != 0);
    }
    /**
     * optional uint32 msg_type = 4;
     * @return The msgType.
     */
    @java.lang.Override
    public int getMsgType() {
      return msgType_;
    }
    /**
     * optional uint32 msg_type = 4;
     * @param value The msgType to set.
     * @return This builder for chaining.
     */
    public Builder setMsgType(int value) {
      bitField0_ |= 0x00000008;
      msgType_ = value;
      onChanged();
      return this;
    }
    /**
     * optional uint32 msg_type = 4;
     * @return This builder for chaining.
     */
    public Builder clearMsgType() {
      bitField0_ = (bitField0_ & ~0x00000008);
      msgType_ = 0;
      onChanged();
      return this;
    }

    private wechat.protobuf.SKBuiltinString content_;
    private com.google.protobuf.SingleFieldBuilderV3<
        wechat.protobuf.SKBuiltinString, wechat.protobuf.SKBuiltinString.Builder, wechat.protobuf.SKBuiltinStringOrBuilder> contentBuilder_;
    /**
     * optional .wechat_proto.SKBuiltinString content = 5;
     * @return Whether the content field is set.
     */
    public boolean hasContent() {
      return ((bitField0_ & 0x00000010) != 0);
    }
    /**
     * optional .wechat_proto.SKBuiltinString content = 5;
     * @return The content.
     */
    public wechat.protobuf.SKBuiltinString getContent() {
      if (contentBuilder_ == null) {
        return content_ == null ? wechat.protobuf.SKBuiltinString.getDefaultInstance() : content_;
      } else {
        return contentBuilder_.getMessage();
      }
    }
    /**
     * optional .wechat_proto.SKBuiltinString content = 5;
     */
    public Builder setContent(wechat.protobuf.SKBuiltinString value) {
      if (contentBuilder_ == null) {
        if (value == null) {
          throw new NullPointerException();
        }
        content_ = value;
        onChanged();
      } else {
        contentBuilder_.setMessage(value);
      }
      bitField0_ |= 0x00000010;
      return this;
    }
    /**
     * optional .wechat_proto.SKBuiltinString content = 5;
     */
    public Builder setContent(
        wechat.protobuf.SKBuiltinString.Builder builderForValue) {
      if (contentBuilder_ == null) {
        content_ = builderForValue.build();
        onChanged();
      } else {
        contentBuilder_.setMessage(builderForValue.build());
      }
      bitField0_ |= 0x00000010;
      return this;
    }
    /**
     * optional .wechat_proto.SKBuiltinString content = 5;
     */
    public Builder mergeContent(wechat.protobuf.SKBuiltinString value) {
      if (contentBuilder_ == null) {
        if (((bitField0_ & 0x00000010) != 0) &&
            content_ != null &&
            content_ != wechat.protobuf.SKBuiltinString.getDefaultInstance()) {
          content_ =
            wechat.protobuf.SKBuiltinString.newBuilder(content_).mergeFrom(value).buildPartial();
        } else {
          content_ = value;
        }
        onChanged();
      } else {
        contentBuilder_.mergeFrom(value);
      }
      bitField0_ |= 0x00000010;
      return this;
    }
    /**
     * optional .wechat_proto.SKBuiltinString content = 5;
     */
    public Builder clearContent() {
      if (contentBuilder_ == null) {
        content_ = null;
        onChanged();
      } else {
        contentBuilder_.clear();
      }
      bitField0_ = (bitField0_ & ~0x00000010);
      return this;
    }
    /**
     * optional .wechat_proto.SKBuiltinString content = 5;
     */
    public wechat.protobuf.SKBuiltinString.Builder getContentBuilder() {
      bitField0_ |= 0x00000010;
      onChanged();
      return getContentFieldBuilder().getBuilder();
    }
    /**
     * optional .wechat_proto.SKBuiltinString content = 5;
     */
    public wechat.protobuf.SKBuiltinStringOrBuilder getContentOrBuilder() {
      if (contentBuilder_ != null) {
        return contentBuilder_.getMessageOrBuilder();
      } else {
        return content_ == null ?
            wechat.protobuf.SKBuiltinString.getDefaultInstance() : content_;
      }
    }
    /**
     * optional .wechat_proto.SKBuiltinString content = 5;
     */
    private com.google.protobuf.SingleFieldBuilderV3<
        wechat.protobuf.SKBuiltinString, wechat.protobuf.SKBuiltinString.Builder, wechat.protobuf.SKBuiltinStringOrBuilder> 
        getContentFieldBuilder() {
      if (contentBuilder_ == null) {
        contentBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
            wechat.protobuf.SKBuiltinString, wechat.protobuf.SKBuiltinString.Builder, wechat.protobuf.SKBuiltinStringOrBuilder>(
                getContent(),
                getParentForChildren(),
                isClean());
        content_ = null;
      }
      return contentBuilder_;
    }

    private int status_ ;
    /**
     * optional uint32 status = 6;
     * @return Whether the status field is set.
     */
    @java.lang.Override
    public boolean hasStatus() {
      return ((bitField0_ & 0x00000020) != 0);
    }
    /**
     * optional uint32 status = 6;
     * @return The status.
     */
    @java.lang.Override
    public int getStatus() {
      return status_;
    }
    /**
     * optional uint32 status = 6;
     * @param value The status to set.
     * @return This builder for chaining.
     */
    public Builder setStatus(int value) {
      bitField0_ |= 0x00000020;
      status_ = value;
      onChanged();
      return this;
    }
    /**
     * optional uint32 status = 6;
     * @return This builder for chaining.
     */
    public Builder clearStatus() {
      bitField0_ = (bitField0_ & ~0x00000020);
      status_ = 0;
      onChanged();
      return this;
    }

    private int imgStatus_ ;
    /**
     * optional uint32 img_status = 7;
     * @return Whether the imgStatus field is set.
     */
    @java.lang.Override
    public boolean hasImgStatus() {
      return ((bitField0_ & 0x00000040) != 0);
    }
    /**
     * optional uint32 img_status = 7;
     * @return The imgStatus.
     */
    @java.lang.Override
    public int getImgStatus() {
      return imgStatus_;
    }
    /**
     * optional uint32 img_status = 7;
     * @param value The imgStatus to set.
     * @return This builder for chaining.
     */
    public Builder setImgStatus(int value) {
      bitField0_ |= 0x00000040;
      imgStatus_ = value;
      onChanged();
      return this;
    }
    /**
     * optional uint32 img_status = 7;
     * @return This builder for chaining.
     */
    public Builder clearImgStatus() {
      bitField0_ = (bitField0_ & ~0x00000040);
      imgStatus_ = 0;
      onChanged();
      return this;
    }

    private wechat.protobuf.SKBuiltinString_ imgBuf_;
    private com.google.protobuf.SingleFieldBuilderV3<
        wechat.protobuf.SKBuiltinString_, wechat.protobuf.SKBuiltinString_.Builder, wechat.protobuf.SKBuiltinString_OrBuilder> imgBufBuilder_;
    /**
     * optional .wechat_proto.SKBuiltinString_ img_buf = 8;
     * @return Whether the imgBuf field is set.
     */
    public boolean hasImgBuf() {
      return ((bitField0_ & 0x00000080) != 0);
    }
    /**
     * optional .wechat_proto.SKBuiltinString_ img_buf = 8;
     * @return The imgBuf.
     */
    public wechat.protobuf.SKBuiltinString_ getImgBuf() {
      if (imgBufBuilder_ == null) {
        return imgBuf_ == null ? wechat.protobuf.SKBuiltinString_.getDefaultInstance() : imgBuf_;
      } else {
        return imgBufBuilder_.getMessage();
      }
    }
    /**
     * optional .wechat_proto.SKBuiltinString_ img_buf = 8;
     */
    public Builder setImgBuf(wechat.protobuf.SKBuiltinString_ value) {
      if (imgBufBuilder_ == null) {
        if (value == null) {
          throw new NullPointerException();
        }
        imgBuf_ = value;
        onChanged();
      } else {
        imgBufBuilder_.setMessage(value);
      }
      bitField0_ |= 0x00000080;
      return this;
    }
    /**
     * optional .wechat_proto.SKBuiltinString_ img_buf = 8;
     */
    public Builder setImgBuf(
        wechat.protobuf.SKBuiltinString_.Builder builderForValue) {
      if (imgBufBuilder_ == null) {
        imgBuf_ = builderForValue.build();
        onChanged();
      } else {
        imgBufBuilder_.setMessage(builderForValue.build());
      }
      bitField0_ |= 0x00000080;
      return this;
    }
    /**
     * optional .wechat_proto.SKBuiltinString_ img_buf = 8;
     */
    public Builder mergeImgBuf(wechat.protobuf.SKBuiltinString_ value) {
      if (imgBufBuilder_ == null) {
        if (((bitField0_ & 0x00000080) != 0) &&
            imgBuf_ != null &&
            imgBuf_ != wechat.protobuf.SKBuiltinString_.getDefaultInstance()) {
          imgBuf_ =
            wechat.protobuf.SKBuiltinString_.newBuilder(imgBuf_).mergeFrom(value).buildPartial();
        } else {
          imgBuf_ = value;
        }
        onChanged();
      } else {
        imgBufBuilder_.mergeFrom(value);
      }
      bitField0_ |= 0x00000080;
      return this;
    }
    /**
     * optional .wechat_proto.SKBuiltinString_ img_buf = 8;
     */
    public Builder clearImgBuf() {
      if (imgBufBuilder_ == null) {
        imgBuf_ = null;
        onChanged();
      } else {
        imgBufBuilder_.clear();
      }
      bitField0_ = (bitField0_ & ~0x00000080);
      return this;
    }
    /**
     * optional .wechat_proto.SKBuiltinString_ img_buf = 8;
     */
    public wechat.protobuf.SKBuiltinString_.Builder getImgBufBuilder() {
      bitField0_ |= 0x00000080;
      onChanged();
      return getImgBufFieldBuilder().getBuilder();
    }
    /**
     * optional .wechat_proto.SKBuiltinString_ img_buf = 8;
     */
    public wechat.protobuf.SKBuiltinString_OrBuilder getImgBufOrBuilder() {
      if (imgBufBuilder_ != null) {
        return imgBufBuilder_.getMessageOrBuilder();
      } else {
        return imgBuf_ == null ?
            wechat.protobuf.SKBuiltinString_.getDefaultInstance() : imgBuf_;
      }
    }
    /**
     * optional .wechat_proto.SKBuiltinString_ img_buf = 8;
     */
    private com.google.protobuf.SingleFieldBuilderV3<
        wechat.protobuf.SKBuiltinString_, wechat.protobuf.SKBuiltinString_.Builder, wechat.protobuf.SKBuiltinString_OrBuilder> 
        getImgBufFieldBuilder() {
      if (imgBufBuilder_ == null) {
        imgBufBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
            wechat.protobuf.SKBuiltinString_, wechat.protobuf.SKBuiltinString_.Builder, wechat.protobuf.SKBuiltinString_OrBuilder>(
                getImgBuf(),
                getParentForChildren(),
                isClean());
        imgBuf_ = null;
      }
      return imgBufBuilder_;
    }

    private int createTime_ ;
    /**
     * optional uint32 create_time = 9;
     * @return Whether the createTime field is set.
     */
    @java.lang.Override
    public boolean hasCreateTime() {
      return ((bitField0_ & 0x00000100) != 0);
    }
    /**
     * optional uint32 create_time = 9;
     * @return The createTime.
     */
    @java.lang.Override
    public int getCreateTime() {
      return createTime_;
    }
    /**
     * optional uint32 create_time = 9;
     * @param value The createTime to set.
     * @return This builder for chaining.
     */
    public Builder setCreateTime(int value) {
      bitField0_ |= 0x00000100;
      createTime_ = value;
      onChanged();
      return this;
    }
    /**
     * optional uint32 create_time = 9;
     * @return This builder for chaining.
     */
    public Builder clearCreateTime() {
      bitField0_ = (bitField0_ & ~0x00000100);
      createTime_ = 0;
      onChanged();
      return this;
    }

    private java.lang.Object msgSource_ = "";
    /**
     * optional string msg_source = 10;
     * @return Whether the msgSource field is set.
     */
    public boolean hasMsgSource() {
      return ((bitField0_ & 0x00000200) != 0);
    }
    /**
     * optional string msg_source = 10;
     * @return The msgSource.
     */
    public java.lang.String getMsgSource() {
      java.lang.Object ref = msgSource_;
      if (!(ref instanceof java.lang.String)) {
        com.google.protobuf.ByteString bs =
            (com.google.protobuf.ByteString) ref;
        java.lang.String s = bs.toStringUtf8();
        if (bs.isValidUtf8()) {
          msgSource_ = s;
        }
        return s;
      } else {
        return (java.lang.String) ref;
      }
    }
    /**
     * optional string msg_source = 10;
     * @return The bytes for msgSource.
     */
    public com.google.protobuf.ByteString
        getMsgSourceBytes() {
      java.lang.Object ref = msgSource_;
      if (ref instanceof String) {
        com.google.protobuf.ByteString b = 
            com.google.protobuf.ByteString.copyFromUtf8(
                (java.lang.String) ref);
        msgSource_ = b;
        return b;
      } else {
        return (com.google.protobuf.ByteString) ref;
      }
    }
    /**
     * optional string msg_source = 10;
     * @param value The msgSource to set.
     * @return This builder for chaining.
     */
    public Builder setMsgSource(
        java.lang.String value) {
      if (value == null) {
    throw new NullPointerException();
  }
  bitField0_ |= 0x00000200;
      msgSource_ = value;
      onChanged();
      return this;
    }
    /**
     * optional string msg_source = 10;
     * @return This builder for chaining.
     */
    public Builder clearMsgSource() {
      bitField0_ = (bitField0_ & ~0x00000200);
      msgSource_ = getDefaultInstance().getMsgSource();
      onChanged();
      return this;
    }
    /**
     * optional string msg_source = 10;
     * @param value The bytes for msgSource to set.
     * @return This builder for chaining.
     */
    public Builder setMsgSourceBytes(
        com.google.protobuf.ByteString value) {
      if (value == null) {
    throw new NullPointerException();
  }
  bitField0_ |= 0x00000200;
      msgSource_ = value;
      onChanged();
      return this;
    }

    private java.lang.Object pushContent_ = "";
    /**
     * optional string push_content = 11;
     * @return Whether the pushContent field is set.
     */
    public boolean hasPushContent() {
      return ((bitField0_ & 0x00000400) != 0);
    }
    /**
     * optional string push_content = 11;
     * @return The pushContent.
     */
    public java.lang.String getPushContent() {
      java.lang.Object ref = pushContent_;
      if (!(ref instanceof java.lang.String)) {
        com.google.protobuf.ByteString bs =
            (com.google.protobuf.ByteString) ref;
        java.lang.String s = bs.toStringUtf8();
        if (bs.isValidUtf8()) {
          pushContent_ = s;
        }
        return s;
      } else {
        return (java.lang.String) ref;
      }
    }
    /**
     * optional string push_content = 11;
     * @return The bytes for pushContent.
     */
    public com.google.protobuf.ByteString
        getPushContentBytes() {
      java.lang.Object ref = pushContent_;
      if (ref instanceof String) {
        com.google.protobuf.ByteString b = 
            com.google.protobuf.ByteString.copyFromUtf8(
                (java.lang.String) ref);
        pushContent_ = b;
        return b;
      } else {
        return (com.google.protobuf.ByteString) ref;
      }
    }
    /**
     * optional string push_content = 11;
     * @param value The pushContent to set.
     * @return This builder for chaining.
     */
    public Builder setPushContent(
        java.lang.String value) {
      if (value == null) {
    throw new NullPointerException();
  }
  bitField0_ |= 0x00000400;
      pushContent_ = value;
      onChanged();
      return this;
    }
    /**
     * optional string push_content = 11;
     * @return This builder for chaining.
     */
    public Builder clearPushContent() {
      bitField0_ = (bitField0_ & ~0x00000400);
      pushContent_ = getDefaultInstance().getPushContent();
      onChanged();
      return this;
    }
    /**
     * optional string push_content = 11;
     * @param value The bytes for pushContent to set.
     * @return This builder for chaining.
     */
    public Builder setPushContentBytes(
        com.google.protobuf.ByteString value) {
      if (value == null) {
    throw new NullPointerException();
  }
  bitField0_ |= 0x00000400;
      pushContent_ = value;
      onChanged();
      return this;
    }

    private long newMsgId_ ;
    /**
     * optional int64 new_msg_id = 12;
     * @return Whether the newMsgId field is set.
     */
    @java.lang.Override
    public boolean hasNewMsgId() {
      return ((bitField0_ & 0x00000800) != 0);
    }
    /**
     * optional int64 new_msg_id = 12;
     * @return The newMsgId.
     */
    @java.lang.Override
    public long getNewMsgId() {
      return newMsgId_;
    }
    /**
     * optional int64 new_msg_id = 12;
     * @param value The newMsgId to set.
     * @return This builder for chaining.
     */
    public Builder setNewMsgId(long value) {
      bitField0_ |= 0x00000800;
      newMsgId_ = value;
      onChanged();
      return this;
    }
    /**
     * optional int64 new_msg_id = 12;
     * @return This builder for chaining.
     */
    public Builder clearNewMsgId() {
      bitField0_ = (bitField0_ & ~0x00000800);
      newMsgId_ = 0L;
      onChanged();
      return this;
    }
    @java.lang.Override
    public final Builder setUnknownFields(
        final com.google.protobuf.UnknownFieldSet unknownFields) {
      return super.setUnknownFields(unknownFields);
    }

    @java.lang.Override
    public final Builder mergeUnknownFields(
        final com.google.protobuf.UnknownFieldSet unknownFields) {
      return super.mergeUnknownFields(unknownFields);
    }


    // @@protoc_insertion_point(builder_scope:wechat_proto.AddMsg)
  }

  // @@protoc_insertion_point(class_scope:wechat_proto.AddMsg)
  private static final wechat.protobuf.AddMsg DEFAULT_INSTANCE;
  static {
    DEFAULT_INSTANCE = new wechat.protobuf.AddMsg();
  }

  public static wechat.protobuf.AddMsg getDefaultInstance() {
    return DEFAULT_INSTANCE;
  }

  @java.lang.Deprecated public static final com.google.protobuf.Parser
      PARSER = new com.google.protobuf.AbstractParser() {
    @java.lang.Override
    public AddMsg parsePartialFrom(
        com.google.protobuf.CodedInputStream input,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return new AddMsg(input, extensionRegistry);
    }
  };

  public static com.google.protobuf.Parser parser() {
    return PARSER;
  }

  @java.lang.Override
  public com.google.protobuf.Parser getParserForType() {
    return PARSER;
  }

  @java.lang.Override
  public wechat.protobuf.AddMsg getDefaultInstanceForType() {
    return DEFAULT_INSTANCE;
  }

}





© 2015 - 2025 Weber Informatics LLC | Privacy Policy