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

wechat.protobuf.SendAppMsgResponse 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.SendAppMsgResponse}
 */
public final class SendAppMsgResponse extends
    com.google.protobuf.GeneratedMessageV3 implements
    // @@protoc_insertion_point(message_implements:wechat_proto.SendAppMsgResponse)
    SendAppMsgResponseOrBuilder {
private static final long serialVersionUID = 0L;
  // Use SendAppMsgResponse.newBuilder() to construct.
  private SendAppMsgResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) {
    super(builder);
  }
  private SendAppMsgResponse() {
    appId_ = "";
    fromUserName_ = "";
    toUserName_ = "";
    clientMsgId_ = "";
    aeskey_ = "";
    msgSource_ = "";
  }

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

  @java.lang.Override
  public final com.google.protobuf.UnknownFieldSet
  getUnknownFields() {
    return this.unknownFields;
  }
  private SendAppMsgResponse(
      com.google.protobuf.CodedInputStream input,
      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
      throws com.google.protobuf.InvalidProtocolBufferException {
    this();
    if (extensionRegistry == null) {
      throw new java.lang.NullPointerException();
    }
    int mutable_bitField0_ = 0;
    com.google.protobuf.UnknownFieldSet.Builder unknownFields =
        com.google.protobuf.UnknownFieldSet.newBuilder();
    try {
      boolean done = false;
      while (!done) {
        int tag = input.readTag();
        switch (tag) {
          case 0:
            done = true;
            break;
          case 10: {
            wechat.protobuf.BaseResponse.Builder subBuilder = null;
            if (((bitField0_ & 0x00000001) != 0)) {
              subBuilder = baseResponse_.toBuilder();
            }
            baseResponse_ = input.readMessage(wechat.protobuf.BaseResponse.PARSER, extensionRegistry);
            if (subBuilder != null) {
              subBuilder.mergeFrom(baseResponse_);
              baseResponse_ = subBuilder.buildPartial();
            }
            bitField0_ |= 0x00000001;
            break;
          }
          case 18: {
            com.google.protobuf.ByteString bs = input.readBytes();
            bitField0_ |= 0x00000002;
            appId_ = bs;
            break;
          }
          case 26: {
            com.google.protobuf.ByteString bs = input.readBytes();
            bitField0_ |= 0x00000004;
            fromUserName_ = bs;
            break;
          }
          case 34: {
            com.google.protobuf.ByteString bs = input.readBytes();
            bitField0_ |= 0x00000008;
            toUserName_ = bs;
            break;
          }
          case 40: {
            bitField0_ |= 0x00000010;
            msgId_ = input.readInt32();
            break;
          }
          case 50: {
            com.google.protobuf.ByteString bs = input.readBytes();
            bitField0_ |= 0x00000020;
            clientMsgId_ = bs;
            break;
          }
          case 56: {
            bitField0_ |= 0x00000040;
            createTime_ = input.readInt32();
            break;
          }
          case 64: {
            bitField0_ |= 0x00000080;
            type_ = input.readInt32();
            break;
          }
          case 72: {
            bitField0_ |= 0x00000100;
            newMsgId_ = input.readInt64();
            break;
          }
          case 82: {
            com.google.protobuf.ByteString bs = input.readBytes();
            bitField0_ |= 0x00000200;
            aeskey_ = bs;
            break;
          }
          case 90: {
            com.google.protobuf.ByteString bs = input.readBytes();
            bitField0_ |= 0x00000400;
            msgSource_ = bs;
            break;
          }
          case 96: {
            bitField0_ |= 0x00000800;
            actionFlag_ = input.readInt32();
            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_SendAppMsgResponse_descriptor;
  }

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

  private int bitField0_;
  public static final int BASERESPONSE_FIELD_NUMBER = 1;
  private wechat.protobuf.BaseResponse baseResponse_;
  /**
   * optional .wechat_proto.BaseResponse BaseResponse = 1;
   * @return Whether the baseResponse field is set.
   */
  @java.lang.Override
  public boolean hasBaseResponse() {
    return ((bitField0_ & 0x00000001) != 0);
  }
  /**
   * optional .wechat_proto.BaseResponse BaseResponse = 1;
   * @return The baseResponse.
   */
  @java.lang.Override
  public wechat.protobuf.BaseResponse getBaseResponse() {
    return baseResponse_ == null ? wechat.protobuf.BaseResponse.getDefaultInstance() : baseResponse_;
  }
  /**
   * optional .wechat_proto.BaseResponse BaseResponse = 1;
   */
  @java.lang.Override
  public wechat.protobuf.BaseResponseOrBuilder getBaseResponseOrBuilder() {
    return baseResponse_ == null ? wechat.protobuf.BaseResponse.getDefaultInstance() : baseResponse_;
  }

  public static final int APPID_FIELD_NUMBER = 2;
  private volatile java.lang.Object appId_;
  /**
   * optional string appId = 2;
   * @return Whether the appId field is set.
   */
  @java.lang.Override
  public boolean hasAppId() {
    return ((bitField0_ & 0x00000002) != 0);
  }
  /**
   * optional string appId = 2;
   * @return The appId.
   */
  @java.lang.Override
  public java.lang.String getAppId() {
    java.lang.Object ref = appId_;
    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()) {
        appId_ = s;
      }
      return s;
    }
  }
  /**
   * optional string appId = 2;
   * @return The bytes for appId.
   */
  @java.lang.Override
  public com.google.protobuf.ByteString
      getAppIdBytes() {
    java.lang.Object ref = appId_;
    if (ref instanceof java.lang.String) {
      com.google.protobuf.ByteString b = 
          com.google.protobuf.ByteString.copyFromUtf8(
              (java.lang.String) ref);
      appId_ = b;
      return b;
    } else {
      return (com.google.protobuf.ByteString) ref;
    }
  }

  public static final int FROMUSERNAME_FIELD_NUMBER = 3;
  private volatile java.lang.Object fromUserName_;
  /**
   * optional string fromUserName = 3;
   * @return Whether the fromUserName field is set.
   */
  @java.lang.Override
  public boolean hasFromUserName() {
    return ((bitField0_ & 0x00000004) != 0);
  }
  /**
   * optional string fromUserName = 3;
   * @return The fromUserName.
   */
  @java.lang.Override
  public java.lang.String getFromUserName() {
    java.lang.Object ref = fromUserName_;
    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()) {
        fromUserName_ = s;
      }
      return s;
    }
  }
  /**
   * optional string fromUserName = 3;
   * @return The bytes for fromUserName.
   */
  @java.lang.Override
  public com.google.protobuf.ByteString
      getFromUserNameBytes() {
    java.lang.Object ref = fromUserName_;
    if (ref instanceof java.lang.String) {
      com.google.protobuf.ByteString b = 
          com.google.protobuf.ByteString.copyFromUtf8(
              (java.lang.String) ref);
      fromUserName_ = b;
      return b;
    } else {
      return (com.google.protobuf.ByteString) ref;
    }
  }

  public static final int TOUSERNAME_FIELD_NUMBER = 4;
  private volatile java.lang.Object toUserName_;
  /**
   * optional string toUserName = 4;
   * @return Whether the toUserName field is set.
   */
  @java.lang.Override
  public boolean hasToUserName() {
    return ((bitField0_ & 0x00000008) != 0);
  }
  /**
   * optional string toUserName = 4;
   * @return The toUserName.
   */
  @java.lang.Override
  public java.lang.String getToUserName() {
    java.lang.Object ref = toUserName_;
    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()) {
        toUserName_ = s;
      }
      return s;
    }
  }
  /**
   * optional string toUserName = 4;
   * @return The bytes for toUserName.
   */
  @java.lang.Override
  public com.google.protobuf.ByteString
      getToUserNameBytes() {
    java.lang.Object ref = toUserName_;
    if (ref instanceof java.lang.String) {
      com.google.protobuf.ByteString b = 
          com.google.protobuf.ByteString.copyFromUtf8(
              (java.lang.String) ref);
      toUserName_ = b;
      return b;
    } else {
      return (com.google.protobuf.ByteString) ref;
    }
  }

  public static final int MSGID_FIELD_NUMBER = 5;
  private int msgId_;
  /**
   * optional int32 msgId = 5;
   * @return Whether the msgId field is set.
   */
  @java.lang.Override
  public boolean hasMsgId() {
    return ((bitField0_ & 0x00000010) != 0);
  }
  /**
   * optional int32 msgId = 5;
   * @return The msgId.
   */
  @java.lang.Override
  public int getMsgId() {
    return msgId_;
  }

  public static final int CLIENTMSGID_FIELD_NUMBER = 6;
  private volatile java.lang.Object clientMsgId_;
  /**
   * optional string clientMsgId = 6;
   * @return Whether the clientMsgId field is set.
   */
  @java.lang.Override
  public boolean hasClientMsgId() {
    return ((bitField0_ & 0x00000020) != 0);
  }
  /**
   * optional string clientMsgId = 6;
   * @return The clientMsgId.
   */
  @java.lang.Override
  public java.lang.String getClientMsgId() {
    java.lang.Object ref = clientMsgId_;
    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()) {
        clientMsgId_ = s;
      }
      return s;
    }
  }
  /**
   * optional string clientMsgId = 6;
   * @return The bytes for clientMsgId.
   */
  @java.lang.Override
  public com.google.protobuf.ByteString
      getClientMsgIdBytes() {
    java.lang.Object ref = clientMsgId_;
    if (ref instanceof java.lang.String) {
      com.google.protobuf.ByteString b = 
          com.google.protobuf.ByteString.copyFromUtf8(
              (java.lang.String) ref);
      clientMsgId_ = b;
      return b;
    } else {
      return (com.google.protobuf.ByteString) ref;
    }
  }

  public static final int CREATETIME_FIELD_NUMBER = 7;
  private int createTime_;
  /**
   * optional int32 createTime = 7;
   * @return Whether the createTime field is set.
   */
  @java.lang.Override
  public boolean hasCreateTime() {
    return ((bitField0_ & 0x00000040) != 0);
  }
  /**
   * optional int32 createTime = 7;
   * @return The createTime.
   */
  @java.lang.Override
  public int getCreateTime() {
    return createTime_;
  }

  public static final int TYPE_FIELD_NUMBER = 8;
  private int type_;
  /**
   * optional int32 type = 8;
   * @return Whether the type field is set.
   */
  @java.lang.Override
  public boolean hasType() {
    return ((bitField0_ & 0x00000080) != 0);
  }
  /**
   * optional int32 type = 8;
   * @return The type.
   */
  @java.lang.Override
  public int getType() {
    return type_;
  }

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

  public static final int AESKEY_FIELD_NUMBER = 10;
  private volatile java.lang.Object aeskey_;
  /**
   * optional string aeskey = 10;
   * @return Whether the aeskey field is set.
   */
  @java.lang.Override
  public boolean hasAeskey() {
    return ((bitField0_ & 0x00000200) != 0);
  }
  /**
   * optional string aeskey = 10;
   * @return The aeskey.
   */
  @java.lang.Override
  public java.lang.String getAeskey() {
    java.lang.Object ref = aeskey_;
    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()) {
        aeskey_ = s;
      }
      return s;
    }
  }
  /**
   * optional string aeskey = 10;
   * @return The bytes for aeskey.
   */
  @java.lang.Override
  public com.google.protobuf.ByteString
      getAeskeyBytes() {
    java.lang.Object ref = aeskey_;
    if (ref instanceof java.lang.String) {
      com.google.protobuf.ByteString b = 
          com.google.protobuf.ByteString.copyFromUtf8(
              (java.lang.String) ref);
      aeskey_ = b;
      return b;
    } else {
      return (com.google.protobuf.ByteString) ref;
    }
  }

  public static final int MSGSOURCE_FIELD_NUMBER = 11;
  private volatile java.lang.Object msgSource_;
  /**
   * optional string msgSource = 11;
   * @return Whether the msgSource field is set.
   */
  @java.lang.Override
  public boolean hasMsgSource() {
    return ((bitField0_ & 0x00000400) != 0);
  }
  /**
   * optional string msgSource = 11;
   * @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 msgSource = 11;
   * @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 ACTIONFLAG_FIELD_NUMBER = 12;
  private int actionFlag_;
  /**
   * optional int32 actionFlag = 12;
   * @return Whether the actionFlag field is set.
   */
  @java.lang.Override
  public boolean hasActionFlag() {
    return ((bitField0_ & 0x00000800) != 0);
  }
  /**
   * optional int32 actionFlag = 12;
   * @return The actionFlag.
   */
  @java.lang.Override
  public int getActionFlag() {
    return actionFlag_;
  }

  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.writeMessage(1, getBaseResponse());
    }
    if (((bitField0_ & 0x00000002) != 0)) {
      com.google.protobuf.GeneratedMessageV3.writeString(output, 2, appId_);
    }
    if (((bitField0_ & 0x00000004) != 0)) {
      com.google.protobuf.GeneratedMessageV3.writeString(output, 3, fromUserName_);
    }
    if (((bitField0_ & 0x00000008) != 0)) {
      com.google.protobuf.GeneratedMessageV3.writeString(output, 4, toUserName_);
    }
    if (((bitField0_ & 0x00000010) != 0)) {
      output.writeInt32(5, msgId_);
    }
    if (((bitField0_ & 0x00000020) != 0)) {
      com.google.protobuf.GeneratedMessageV3.writeString(output, 6, clientMsgId_);
    }
    if (((bitField0_ & 0x00000040) != 0)) {
      output.writeInt32(7, createTime_);
    }
    if (((bitField0_ & 0x00000080) != 0)) {
      output.writeInt32(8, type_);
    }
    if (((bitField0_ & 0x00000100) != 0)) {
      output.writeInt64(9, newMsgId_);
    }
    if (((bitField0_ & 0x00000200) != 0)) {
      com.google.protobuf.GeneratedMessageV3.writeString(output, 10, aeskey_);
    }
    if (((bitField0_ & 0x00000400) != 0)) {
      com.google.protobuf.GeneratedMessageV3.writeString(output, 11, msgSource_);
    }
    if (((bitField0_ & 0x00000800) != 0)) {
      output.writeInt32(12, actionFlag_);
    }
    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
        .computeMessageSize(1, getBaseResponse());
    }
    if (((bitField0_ & 0x00000002) != 0)) {
      size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, appId_);
    }
    if (((bitField0_ & 0x00000004) != 0)) {
      size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, fromUserName_);
    }
    if (((bitField0_ & 0x00000008) != 0)) {
      size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, toUserName_);
    }
    if (((bitField0_ & 0x00000010) != 0)) {
      size += com.google.protobuf.CodedOutputStream
        .computeInt32Size(5, msgId_);
    }
    if (((bitField0_ & 0x00000020) != 0)) {
      size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, clientMsgId_);
    }
    if (((bitField0_ & 0x00000040) != 0)) {
      size += com.google.protobuf.CodedOutputStream
        .computeInt32Size(7, createTime_);
    }
    if (((bitField0_ & 0x00000080) != 0)) {
      size += com.google.protobuf.CodedOutputStream
        .computeInt32Size(8, type_);
    }
    if (((bitField0_ & 0x00000100) != 0)) {
      size += com.google.protobuf.CodedOutputStream
        .computeInt64Size(9, newMsgId_);
    }
    if (((bitField0_ & 0x00000200) != 0)) {
      size += com.google.protobuf.GeneratedMessageV3.computeStringSize(10, aeskey_);
    }
    if (((bitField0_ & 0x00000400) != 0)) {
      size += com.google.protobuf.GeneratedMessageV3.computeStringSize(11, msgSource_);
    }
    if (((bitField0_ & 0x00000800) != 0)) {
      size += com.google.protobuf.CodedOutputStream
        .computeInt32Size(12, actionFlag_);
    }
    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.SendAppMsgResponse)) {
      return super.equals(obj);
    }
    wechat.protobuf.SendAppMsgResponse other = (wechat.protobuf.SendAppMsgResponse) obj;

    if (hasBaseResponse() != other.hasBaseResponse()) return false;
    if (hasBaseResponse()) {
      if (!getBaseResponse()
          .equals(other.getBaseResponse())) return false;
    }
    if (hasAppId() != other.hasAppId()) return false;
    if (hasAppId()) {
      if (!getAppId()
          .equals(other.getAppId())) 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 (hasMsgId() != other.hasMsgId()) return false;
    if (hasMsgId()) {
      if (getMsgId()
          != other.getMsgId()) return false;
    }
    if (hasClientMsgId() != other.hasClientMsgId()) return false;
    if (hasClientMsgId()) {
      if (!getClientMsgId()
          .equals(other.getClientMsgId())) return false;
    }
    if (hasCreateTime() != other.hasCreateTime()) return false;
    if (hasCreateTime()) {
      if (getCreateTime()
          != other.getCreateTime()) return false;
    }
    if (hasType() != other.hasType()) return false;
    if (hasType()) {
      if (getType()
          != other.getType()) return false;
    }
    if (hasNewMsgId() != other.hasNewMsgId()) return false;
    if (hasNewMsgId()) {
      if (getNewMsgId()
          != other.getNewMsgId()) return false;
    }
    if (hasAeskey() != other.hasAeskey()) return false;
    if (hasAeskey()) {
      if (!getAeskey()
          .equals(other.getAeskey())) return false;
    }
    if (hasMsgSource() != other.hasMsgSource()) return false;
    if (hasMsgSource()) {
      if (!getMsgSource()
          .equals(other.getMsgSource())) return false;
    }
    if (hasActionFlag() != other.hasActionFlag()) return false;
    if (hasActionFlag()) {
      if (getActionFlag()
          != other.getActionFlag()) 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 (hasBaseResponse()) {
      hash = (37 * hash) + BASERESPONSE_FIELD_NUMBER;
      hash = (53 * hash) + getBaseResponse().hashCode();
    }
    if (hasAppId()) {
      hash = (37 * hash) + APPID_FIELD_NUMBER;
      hash = (53 * hash) + getAppId().hashCode();
    }
    if (hasFromUserName()) {
      hash = (37 * hash) + FROMUSERNAME_FIELD_NUMBER;
      hash = (53 * hash) + getFromUserName().hashCode();
    }
    if (hasToUserName()) {
      hash = (37 * hash) + TOUSERNAME_FIELD_NUMBER;
      hash = (53 * hash) + getToUserName().hashCode();
    }
    if (hasMsgId()) {
      hash = (37 * hash) + MSGID_FIELD_NUMBER;
      hash = (53 * hash) + getMsgId();
    }
    if (hasClientMsgId()) {
      hash = (37 * hash) + CLIENTMSGID_FIELD_NUMBER;
      hash = (53 * hash) + getClientMsgId().hashCode();
    }
    if (hasCreateTime()) {
      hash = (37 * hash) + CREATETIME_FIELD_NUMBER;
      hash = (53 * hash) + getCreateTime();
    }
    if (hasType()) {
      hash = (37 * hash) + TYPE_FIELD_NUMBER;
      hash = (53 * hash) + getType();
    }
    if (hasNewMsgId()) {
      hash = (37 * hash) + NEWMSGID_FIELD_NUMBER;
      hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
          getNewMsgId());
    }
    if (hasAeskey()) {
      hash = (37 * hash) + AESKEY_FIELD_NUMBER;
      hash = (53 * hash) + getAeskey().hashCode();
    }
    if (hasMsgSource()) {
      hash = (37 * hash) + MSGSOURCE_FIELD_NUMBER;
      hash = (53 * hash) + getMsgSource().hashCode();
    }
    if (hasActionFlag()) {
      hash = (37 * hash) + ACTIONFLAG_FIELD_NUMBER;
      hash = (53 * hash) + getActionFlag();
    }
    hash = (29 * hash) + unknownFields.hashCode();
    memoizedHashCode = hash;
    return hash;
  }

  public static wechat.protobuf.SendAppMsgResponse parseFrom(
      java.nio.ByteBuffer data)
      throws com.google.protobuf.InvalidProtocolBufferException {
    return PARSER.parseFrom(data);
  }
  public static wechat.protobuf.SendAppMsgResponse parseFrom(
      java.nio.ByteBuffer data,
      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
      throws com.google.protobuf.InvalidProtocolBufferException {
    return PARSER.parseFrom(data, extensionRegistry);
  }
  public static wechat.protobuf.SendAppMsgResponse parseFrom(
      com.google.protobuf.ByteString data)
      throws com.google.protobuf.InvalidProtocolBufferException {
    return PARSER.parseFrom(data);
  }
  public static wechat.protobuf.SendAppMsgResponse 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.SendAppMsgResponse parseFrom(byte[] data)
      throws com.google.protobuf.InvalidProtocolBufferException {
    return PARSER.parseFrom(data);
  }
  public static wechat.protobuf.SendAppMsgResponse parseFrom(
      byte[] data,
      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
      throws com.google.protobuf.InvalidProtocolBufferException {
    return PARSER.parseFrom(data, extensionRegistry);
  }
  public static wechat.protobuf.SendAppMsgResponse parseFrom(java.io.InputStream input)
      throws java.io.IOException {
    return com.google.protobuf.GeneratedMessageV3
        .parseWithIOException(PARSER, input);
  }
  public static wechat.protobuf.SendAppMsgResponse 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.SendAppMsgResponse parseDelimitedFrom(java.io.InputStream input)
      throws java.io.IOException {
    return com.google.protobuf.GeneratedMessageV3
        .parseDelimitedWithIOException(PARSER, input);
  }
  public static wechat.protobuf.SendAppMsgResponse 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.SendAppMsgResponse parseFrom(
      com.google.protobuf.CodedInputStream input)
      throws java.io.IOException {
    return com.google.protobuf.GeneratedMessageV3
        .parseWithIOException(PARSER, input);
  }
  public static wechat.protobuf.SendAppMsgResponse 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.SendAppMsgResponse 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.SendAppMsgResponse}
   */
  public static final class Builder extends
      com.google.protobuf.GeneratedMessageV3.Builder implements
      // @@protoc_insertion_point(builder_implements:wechat_proto.SendAppMsgResponse)
      wechat.protobuf.SendAppMsgResponseOrBuilder {
    public static final com.google.protobuf.Descriptors.Descriptor
        getDescriptor() {
      return wechat.protobuf.Wechat.internal_static_wechat_proto_SendAppMsgResponse_descriptor;
    }

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

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

    private Builder(
        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
      super(parent);
      maybeForceBuilderInitialization();
    }
    private void maybeForceBuilderInitialization() {
      if (com.google.protobuf.GeneratedMessageV3
              .alwaysUseFieldBuilders) {
        getBaseResponseFieldBuilder();
      }
    }
    @java.lang.Override
    public Builder clear() {
      super.clear();
      if (baseResponseBuilder_ == null) {
        baseResponse_ = null;
      } else {
        baseResponseBuilder_.clear();
      }
      bitField0_ = (bitField0_ & ~0x00000001);
      appId_ = "";
      bitField0_ = (bitField0_ & ~0x00000002);
      fromUserName_ = "";
      bitField0_ = (bitField0_ & ~0x00000004);
      toUserName_ = "";
      bitField0_ = (bitField0_ & ~0x00000008);
      msgId_ = 0;
      bitField0_ = (bitField0_ & ~0x00000010);
      clientMsgId_ = "";
      bitField0_ = (bitField0_ & ~0x00000020);
      createTime_ = 0;
      bitField0_ = (bitField0_ & ~0x00000040);
      type_ = 0;
      bitField0_ = (bitField0_ & ~0x00000080);
      newMsgId_ = 0L;
      bitField0_ = (bitField0_ & ~0x00000100);
      aeskey_ = "";
      bitField0_ = (bitField0_ & ~0x00000200);
      msgSource_ = "";
      bitField0_ = (bitField0_ & ~0x00000400);
      actionFlag_ = 0;
      bitField0_ = (bitField0_ & ~0x00000800);
      return this;
    }

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

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

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

    @java.lang.Override
    public wechat.protobuf.SendAppMsgResponse buildPartial() {
      wechat.protobuf.SendAppMsgResponse result = new wechat.protobuf.SendAppMsgResponse(this);
      int from_bitField0_ = bitField0_;
      int to_bitField0_ = 0;
      if (((from_bitField0_ & 0x00000001) != 0)) {
        if (baseResponseBuilder_ == null) {
          result.baseResponse_ = baseResponse_;
        } else {
          result.baseResponse_ = baseResponseBuilder_.build();
        }
        to_bitField0_ |= 0x00000001;
      }
      if (((from_bitField0_ & 0x00000002) != 0)) {
        to_bitField0_ |= 0x00000002;
      }
      result.appId_ = appId_;
      if (((from_bitField0_ & 0x00000004) != 0)) {
        to_bitField0_ |= 0x00000004;
      }
      result.fromUserName_ = fromUserName_;
      if (((from_bitField0_ & 0x00000008) != 0)) {
        to_bitField0_ |= 0x00000008;
      }
      result.toUserName_ = toUserName_;
      if (((from_bitField0_ & 0x00000010) != 0)) {
        result.msgId_ = msgId_;
        to_bitField0_ |= 0x00000010;
      }
      if (((from_bitField0_ & 0x00000020) != 0)) {
        to_bitField0_ |= 0x00000020;
      }
      result.clientMsgId_ = clientMsgId_;
      if (((from_bitField0_ & 0x00000040) != 0)) {
        result.createTime_ = createTime_;
        to_bitField0_ |= 0x00000040;
      }
      if (((from_bitField0_ & 0x00000080) != 0)) {
        result.type_ = type_;
        to_bitField0_ |= 0x00000080;
      }
      if (((from_bitField0_ & 0x00000100) != 0)) {
        result.newMsgId_ = newMsgId_;
        to_bitField0_ |= 0x00000100;
      }
      if (((from_bitField0_ & 0x00000200) != 0)) {
        to_bitField0_ |= 0x00000200;
      }
      result.aeskey_ = aeskey_;
      if (((from_bitField0_ & 0x00000400) != 0)) {
        to_bitField0_ |= 0x00000400;
      }
      result.msgSource_ = msgSource_;
      if (((from_bitField0_ & 0x00000800) != 0)) {
        result.actionFlag_ = actionFlag_;
        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.SendAppMsgResponse) {
        return mergeFrom((wechat.protobuf.SendAppMsgResponse)other);
      } else {
        super.mergeFrom(other);
        return this;
      }
    }

    public Builder mergeFrom(wechat.protobuf.SendAppMsgResponse other) {
      if (other == wechat.protobuf.SendAppMsgResponse.getDefaultInstance()) return this;
      if (other.hasBaseResponse()) {
        mergeBaseResponse(other.getBaseResponse());
      }
      if (other.hasAppId()) {
        bitField0_ |= 0x00000002;
        appId_ = other.appId_;
        onChanged();
      }
      if (other.hasFromUserName()) {
        bitField0_ |= 0x00000004;
        fromUserName_ = other.fromUserName_;
        onChanged();
      }
      if (other.hasToUserName()) {
        bitField0_ |= 0x00000008;
        toUserName_ = other.toUserName_;
        onChanged();
      }
      if (other.hasMsgId()) {
        setMsgId(other.getMsgId());
      }
      if (other.hasClientMsgId()) {
        bitField0_ |= 0x00000020;
        clientMsgId_ = other.clientMsgId_;
        onChanged();
      }
      if (other.hasCreateTime()) {
        setCreateTime(other.getCreateTime());
      }
      if (other.hasType()) {
        setType(other.getType());
      }
      if (other.hasNewMsgId()) {
        setNewMsgId(other.getNewMsgId());
      }
      if (other.hasAeskey()) {
        bitField0_ |= 0x00000200;
        aeskey_ = other.aeskey_;
        onChanged();
      }
      if (other.hasMsgSource()) {
        bitField0_ |= 0x00000400;
        msgSource_ = other.msgSource_;
        onChanged();
      }
      if (other.hasActionFlag()) {
        setActionFlag(other.getActionFlag());
      }
      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.SendAppMsgResponse parsedMessage = null;
      try {
        parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
      } catch (com.google.protobuf.InvalidProtocolBufferException e) {
        parsedMessage = (wechat.protobuf.SendAppMsgResponse) e.getUnfinishedMessage();
        throw e.unwrapIOException();
      } finally {
        if (parsedMessage != null) {
          mergeFrom(parsedMessage);
        }
      }
      return this;
    }
    private int bitField0_;

    private wechat.protobuf.BaseResponse baseResponse_;
    private com.google.protobuf.SingleFieldBuilderV3<
        wechat.protobuf.BaseResponse, wechat.protobuf.BaseResponse.Builder, wechat.protobuf.BaseResponseOrBuilder> baseResponseBuilder_;
    /**
     * optional .wechat_proto.BaseResponse BaseResponse = 1;
     * @return Whether the baseResponse field is set.
     */
    public boolean hasBaseResponse() {
      return ((bitField0_ & 0x00000001) != 0);
    }
    /**
     * optional .wechat_proto.BaseResponse BaseResponse = 1;
     * @return The baseResponse.
     */
    public wechat.protobuf.BaseResponse getBaseResponse() {
      if (baseResponseBuilder_ == null) {
        return baseResponse_ == null ? wechat.protobuf.BaseResponse.getDefaultInstance() : baseResponse_;
      } else {
        return baseResponseBuilder_.getMessage();
      }
    }
    /**
     * optional .wechat_proto.BaseResponse BaseResponse = 1;
     */
    public Builder setBaseResponse(wechat.protobuf.BaseResponse value) {
      if (baseResponseBuilder_ == null) {
        if (value == null) {
          throw new NullPointerException();
        }
        baseResponse_ = value;
        onChanged();
      } else {
        baseResponseBuilder_.setMessage(value);
      }
      bitField0_ |= 0x00000001;
      return this;
    }
    /**
     * optional .wechat_proto.BaseResponse BaseResponse = 1;
     */
    public Builder setBaseResponse(
        wechat.protobuf.BaseResponse.Builder builderForValue) {
      if (baseResponseBuilder_ == null) {
        baseResponse_ = builderForValue.build();
        onChanged();
      } else {
        baseResponseBuilder_.setMessage(builderForValue.build());
      }
      bitField0_ |= 0x00000001;
      return this;
    }
    /**
     * optional .wechat_proto.BaseResponse BaseResponse = 1;
     */
    public Builder mergeBaseResponse(wechat.protobuf.BaseResponse value) {
      if (baseResponseBuilder_ == null) {
        if (((bitField0_ & 0x00000001) != 0) &&
            baseResponse_ != null &&
            baseResponse_ != wechat.protobuf.BaseResponse.getDefaultInstance()) {
          baseResponse_ =
            wechat.protobuf.BaseResponse.newBuilder(baseResponse_).mergeFrom(value).buildPartial();
        } else {
          baseResponse_ = value;
        }
        onChanged();
      } else {
        baseResponseBuilder_.mergeFrom(value);
      }
      bitField0_ |= 0x00000001;
      return this;
    }
    /**
     * optional .wechat_proto.BaseResponse BaseResponse = 1;
     */
    public Builder clearBaseResponse() {
      if (baseResponseBuilder_ == null) {
        baseResponse_ = null;
        onChanged();
      } else {
        baseResponseBuilder_.clear();
      }
      bitField0_ = (bitField0_ & ~0x00000001);
      return this;
    }
    /**
     * optional .wechat_proto.BaseResponse BaseResponse = 1;
     */
    public wechat.protobuf.BaseResponse.Builder getBaseResponseBuilder() {
      bitField0_ |= 0x00000001;
      onChanged();
      return getBaseResponseFieldBuilder().getBuilder();
    }
    /**
     * optional .wechat_proto.BaseResponse BaseResponse = 1;
     */
    public wechat.protobuf.BaseResponseOrBuilder getBaseResponseOrBuilder() {
      if (baseResponseBuilder_ != null) {
        return baseResponseBuilder_.getMessageOrBuilder();
      } else {
        return baseResponse_ == null ?
            wechat.protobuf.BaseResponse.getDefaultInstance() : baseResponse_;
      }
    }
    /**
     * optional .wechat_proto.BaseResponse BaseResponse = 1;
     */
    private com.google.protobuf.SingleFieldBuilderV3<
        wechat.protobuf.BaseResponse, wechat.protobuf.BaseResponse.Builder, wechat.protobuf.BaseResponseOrBuilder> 
        getBaseResponseFieldBuilder() {
      if (baseResponseBuilder_ == null) {
        baseResponseBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
            wechat.protobuf.BaseResponse, wechat.protobuf.BaseResponse.Builder, wechat.protobuf.BaseResponseOrBuilder>(
                getBaseResponse(),
                getParentForChildren(),
                isClean());
        baseResponse_ = null;
      }
      return baseResponseBuilder_;
    }

    private java.lang.Object appId_ = "";
    /**
     * optional string appId = 2;
     * @return Whether the appId field is set.
     */
    public boolean hasAppId() {
      return ((bitField0_ & 0x00000002) != 0);
    }
    /**
     * optional string appId = 2;
     * @return The appId.
     */
    public java.lang.String getAppId() {
      java.lang.Object ref = appId_;
      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()) {
          appId_ = s;
        }
        return s;
      } else {
        return (java.lang.String) ref;
      }
    }
    /**
     * optional string appId = 2;
     * @return The bytes for appId.
     */
    public com.google.protobuf.ByteString
        getAppIdBytes() {
      java.lang.Object ref = appId_;
      if (ref instanceof String) {
        com.google.protobuf.ByteString b = 
            com.google.protobuf.ByteString.copyFromUtf8(
                (java.lang.String) ref);
        appId_ = b;
        return b;
      } else {
        return (com.google.protobuf.ByteString) ref;
      }
    }
    /**
     * optional string appId = 2;
     * @param value The appId to set.
     * @return This builder for chaining.
     */
    public Builder setAppId(
        java.lang.String value) {
      if (value == null) {
    throw new NullPointerException();
  }
  bitField0_ |= 0x00000002;
      appId_ = value;
      onChanged();
      return this;
    }
    /**
     * optional string appId = 2;
     * @return This builder for chaining.
     */
    public Builder clearAppId() {
      bitField0_ = (bitField0_ & ~0x00000002);
      appId_ = getDefaultInstance().getAppId();
      onChanged();
      return this;
    }
    /**
     * optional string appId = 2;
     * @param value The bytes for appId to set.
     * @return This builder for chaining.
     */
    public Builder setAppIdBytes(
        com.google.protobuf.ByteString value) {
      if (value == null) {
    throw new NullPointerException();
  }
  bitField0_ |= 0x00000002;
      appId_ = value;
      onChanged();
      return this;
    }

    private java.lang.Object fromUserName_ = "";
    /**
     * optional string fromUserName = 3;
     * @return Whether the fromUserName field is set.
     */
    public boolean hasFromUserName() {
      return ((bitField0_ & 0x00000004) != 0);
    }
    /**
     * optional string fromUserName = 3;
     * @return The fromUserName.
     */
    public java.lang.String getFromUserName() {
      java.lang.Object ref = fromUserName_;
      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()) {
          fromUserName_ = s;
        }
        return s;
      } else {
        return (java.lang.String) ref;
      }
    }
    /**
     * optional string fromUserName = 3;
     * @return The bytes for fromUserName.
     */
    public com.google.protobuf.ByteString
        getFromUserNameBytes() {
      java.lang.Object ref = fromUserName_;
      if (ref instanceof String) {
        com.google.protobuf.ByteString b = 
            com.google.protobuf.ByteString.copyFromUtf8(
                (java.lang.String) ref);
        fromUserName_ = b;
        return b;
      } else {
        return (com.google.protobuf.ByteString) ref;
      }
    }
    /**
     * optional string fromUserName = 3;
     * @param value The fromUserName to set.
     * @return This builder for chaining.
     */
    public Builder setFromUserName(
        java.lang.String value) {
      if (value == null) {
    throw new NullPointerException();
  }
  bitField0_ |= 0x00000004;
      fromUserName_ = value;
      onChanged();
      return this;
    }
    /**
     * optional string fromUserName = 3;
     * @return This builder for chaining.
     */
    public Builder clearFromUserName() {
      bitField0_ = (bitField0_ & ~0x00000004);
      fromUserName_ = getDefaultInstance().getFromUserName();
      onChanged();
      return this;
    }
    /**
     * optional string fromUserName = 3;
     * @param value The bytes for fromUserName to set.
     * @return This builder for chaining.
     */
    public Builder setFromUserNameBytes(
        com.google.protobuf.ByteString value) {
      if (value == null) {
    throw new NullPointerException();
  }
  bitField0_ |= 0x00000004;
      fromUserName_ = value;
      onChanged();
      return this;
    }

    private java.lang.Object toUserName_ = "";
    /**
     * optional string toUserName = 4;
     * @return Whether the toUserName field is set.
     */
    public boolean hasToUserName() {
      return ((bitField0_ & 0x00000008) != 0);
    }
    /**
     * optional string toUserName = 4;
     * @return The toUserName.
     */
    public java.lang.String getToUserName() {
      java.lang.Object ref = toUserName_;
      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()) {
          toUserName_ = s;
        }
        return s;
      } else {
        return (java.lang.String) ref;
      }
    }
    /**
     * optional string toUserName = 4;
     * @return The bytes for toUserName.
     */
    public com.google.protobuf.ByteString
        getToUserNameBytes() {
      java.lang.Object ref = toUserName_;
      if (ref instanceof String) {
        com.google.protobuf.ByteString b = 
            com.google.protobuf.ByteString.copyFromUtf8(
                (java.lang.String) ref);
        toUserName_ = b;
        return b;
      } else {
        return (com.google.protobuf.ByteString) ref;
      }
    }
    /**
     * optional string toUserName = 4;
     * @param value The toUserName to set.
     * @return This builder for chaining.
     */
    public Builder setToUserName(
        java.lang.String value) {
      if (value == null) {
    throw new NullPointerException();
  }
  bitField0_ |= 0x00000008;
      toUserName_ = value;
      onChanged();
      return this;
    }
    /**
     * optional string toUserName = 4;
     * @return This builder for chaining.
     */
    public Builder clearToUserName() {
      bitField0_ = (bitField0_ & ~0x00000008);
      toUserName_ = getDefaultInstance().getToUserName();
      onChanged();
      return this;
    }
    /**
     * optional string toUserName = 4;
     * @param value The bytes for toUserName to set.
     * @return This builder for chaining.
     */
    public Builder setToUserNameBytes(
        com.google.protobuf.ByteString value) {
      if (value == null) {
    throw new NullPointerException();
  }
  bitField0_ |= 0x00000008;
      toUserName_ = value;
      onChanged();
      return this;
    }

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

    private java.lang.Object clientMsgId_ = "";
    /**
     * optional string clientMsgId = 6;
     * @return Whether the clientMsgId field is set.
     */
    public boolean hasClientMsgId() {
      return ((bitField0_ & 0x00000020) != 0);
    }
    /**
     * optional string clientMsgId = 6;
     * @return The clientMsgId.
     */
    public java.lang.String getClientMsgId() {
      java.lang.Object ref = clientMsgId_;
      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()) {
          clientMsgId_ = s;
        }
        return s;
      } else {
        return (java.lang.String) ref;
      }
    }
    /**
     * optional string clientMsgId = 6;
     * @return The bytes for clientMsgId.
     */
    public com.google.protobuf.ByteString
        getClientMsgIdBytes() {
      java.lang.Object ref = clientMsgId_;
      if (ref instanceof String) {
        com.google.protobuf.ByteString b = 
            com.google.protobuf.ByteString.copyFromUtf8(
                (java.lang.String) ref);
        clientMsgId_ = b;
        return b;
      } else {
        return (com.google.protobuf.ByteString) ref;
      }
    }
    /**
     * optional string clientMsgId = 6;
     * @param value The clientMsgId to set.
     * @return This builder for chaining.
     */
    public Builder setClientMsgId(
        java.lang.String value) {
      if (value == null) {
    throw new NullPointerException();
  }
  bitField0_ |= 0x00000020;
      clientMsgId_ = value;
      onChanged();
      return this;
    }
    /**
     * optional string clientMsgId = 6;
     * @return This builder for chaining.
     */
    public Builder clearClientMsgId() {
      bitField0_ = (bitField0_ & ~0x00000020);
      clientMsgId_ = getDefaultInstance().getClientMsgId();
      onChanged();
      return this;
    }
    /**
     * optional string clientMsgId = 6;
     * @param value The bytes for clientMsgId to set.
     * @return This builder for chaining.
     */
    public Builder setClientMsgIdBytes(
        com.google.protobuf.ByteString value) {
      if (value == null) {
    throw new NullPointerException();
  }
  bitField0_ |= 0x00000020;
      clientMsgId_ = value;
      onChanged();
      return this;
    }

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

    private int type_ ;
    /**
     * optional int32 type = 8;
     * @return Whether the type field is set.
     */
    @java.lang.Override
    public boolean hasType() {
      return ((bitField0_ & 0x00000080) != 0);
    }
    /**
     * optional int32 type = 8;
     * @return The type.
     */
    @java.lang.Override
    public int getType() {
      return type_;
    }
    /**
     * optional int32 type = 8;
     * @param value The type to set.
     * @return This builder for chaining.
     */
    public Builder setType(int value) {
      bitField0_ |= 0x00000080;
      type_ = value;
      onChanged();
      return this;
    }
    /**
     * optional int32 type = 8;
     * @return This builder for chaining.
     */
    public Builder clearType() {
      bitField0_ = (bitField0_ & ~0x00000080);
      type_ = 0;
      onChanged();
      return this;
    }

    private long newMsgId_ ;
    /**
     * optional int64 newMsgId = 9;
     * @return Whether the newMsgId field is set.
     */
    @java.lang.Override
    public boolean hasNewMsgId() {
      return ((bitField0_ & 0x00000100) != 0);
    }
    /**
     * optional int64 newMsgId = 9;
     * @return The newMsgId.
     */
    @java.lang.Override
    public long getNewMsgId() {
      return newMsgId_;
    }
    /**
     * optional int64 newMsgId = 9;
     * @param value The newMsgId to set.
     * @return This builder for chaining.
     */
    public Builder setNewMsgId(long value) {
      bitField0_ |= 0x00000100;
      newMsgId_ = value;
      onChanged();
      return this;
    }
    /**
     * optional int64 newMsgId = 9;
     * @return This builder for chaining.
     */
    public Builder clearNewMsgId() {
      bitField0_ = (bitField0_ & ~0x00000100);
      newMsgId_ = 0L;
      onChanged();
      return this;
    }

    private java.lang.Object aeskey_ = "";
    /**
     * optional string aeskey = 10;
     * @return Whether the aeskey field is set.
     */
    public boolean hasAeskey() {
      return ((bitField0_ & 0x00000200) != 0);
    }
    /**
     * optional string aeskey = 10;
     * @return The aeskey.
     */
    public java.lang.String getAeskey() {
      java.lang.Object ref = aeskey_;
      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()) {
          aeskey_ = s;
        }
        return s;
      } else {
        return (java.lang.String) ref;
      }
    }
    /**
     * optional string aeskey = 10;
     * @return The bytes for aeskey.
     */
    public com.google.protobuf.ByteString
        getAeskeyBytes() {
      java.lang.Object ref = aeskey_;
      if (ref instanceof String) {
        com.google.protobuf.ByteString b = 
            com.google.protobuf.ByteString.copyFromUtf8(
                (java.lang.String) ref);
        aeskey_ = b;
        return b;
      } else {
        return (com.google.protobuf.ByteString) ref;
      }
    }
    /**
     * optional string aeskey = 10;
     * @param value The aeskey to set.
     * @return This builder for chaining.
     */
    public Builder setAeskey(
        java.lang.String value) {
      if (value == null) {
    throw new NullPointerException();
  }
  bitField0_ |= 0x00000200;
      aeskey_ = value;
      onChanged();
      return this;
    }
    /**
     * optional string aeskey = 10;
     * @return This builder for chaining.
     */
    public Builder clearAeskey() {
      bitField0_ = (bitField0_ & ~0x00000200);
      aeskey_ = getDefaultInstance().getAeskey();
      onChanged();
      return this;
    }
    /**
     * optional string aeskey = 10;
     * @param value The bytes for aeskey to set.
     * @return This builder for chaining.
     */
    public Builder setAeskeyBytes(
        com.google.protobuf.ByteString value) {
      if (value == null) {
    throw new NullPointerException();
  }
  bitField0_ |= 0x00000200;
      aeskey_ = value;
      onChanged();
      return this;
    }

    private java.lang.Object msgSource_ = "";
    /**
     * optional string msgSource = 11;
     * @return Whether the msgSource field is set.
     */
    public boolean hasMsgSource() {
      return ((bitField0_ & 0x00000400) != 0);
    }
    /**
     * optional string msgSource = 11;
     * @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 msgSource = 11;
     * @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 msgSource = 11;
     * @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_ |= 0x00000400;
      msgSource_ = value;
      onChanged();
      return this;
    }
    /**
     * optional string msgSource = 11;
     * @return This builder for chaining.
     */
    public Builder clearMsgSource() {
      bitField0_ = (bitField0_ & ~0x00000400);
      msgSource_ = getDefaultInstance().getMsgSource();
      onChanged();
      return this;
    }
    /**
     * optional string msgSource = 11;
     * @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_ |= 0x00000400;
      msgSource_ = value;
      onChanged();
      return this;
    }

    private int actionFlag_ ;
    /**
     * optional int32 actionFlag = 12;
     * @return Whether the actionFlag field is set.
     */
    @java.lang.Override
    public boolean hasActionFlag() {
      return ((bitField0_ & 0x00000800) != 0);
    }
    /**
     * optional int32 actionFlag = 12;
     * @return The actionFlag.
     */
    @java.lang.Override
    public int getActionFlag() {
      return actionFlag_;
    }
    /**
     * optional int32 actionFlag = 12;
     * @param value The actionFlag to set.
     * @return This builder for chaining.
     */
    public Builder setActionFlag(int value) {
      bitField0_ |= 0x00000800;
      actionFlag_ = value;
      onChanged();
      return this;
    }
    /**
     * optional int32 actionFlag = 12;
     * @return This builder for chaining.
     */
    public Builder clearActionFlag() {
      bitField0_ = (bitField0_ & ~0x00000800);
      actionFlag_ = 0;
      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.SendAppMsgResponse)
  }

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

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

  @java.lang.Deprecated public static final com.google.protobuf.Parser
      PARSER = new com.google.protobuf.AbstractParser() {
    @java.lang.Override
    public SendAppMsgResponse parsePartialFrom(
        com.google.protobuf.CodedInputStream input,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return new SendAppMsgResponse(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.SendAppMsgResponse getDefaultInstanceForType() {
    return DEFAULT_INSTANCE;
  }

}





© 2015 - 2025 Weber Informatics LLC | Privacy Policy