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

wechat.protobuf.SendAppMsgRequest 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.SendAppMsgRequest}
 */
public final class SendAppMsgRequest extends
    com.google.protobuf.GeneratedMessageV3 implements
    // @@protoc_insertion_point(message_implements:wechat_proto.SendAppMsgRequest)
    SendAppMsgRequestOrBuilder {
private static final long serialVersionUID = 0L;
  // Use SendAppMsgRequest.newBuilder() to construct.
  private SendAppMsgRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) {
    super(builder);
  }
  private SendAppMsgRequest() {
    commentUrl_ = "";
    md5_ = "";
    signature_ = "";
    fromScene_ = "";
    sendMsgTicket_ = "";
  }

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

  @java.lang.Override
  public final com.google.protobuf.UnknownFieldSet
  getUnknownFields() {
    return this.unknownFields;
  }
  private SendAppMsgRequest(
      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.BaseRequest.Builder subBuilder = null;
            if (((bitField0_ & 0x00000001) != 0)) {
              subBuilder = baseRequest_.toBuilder();
            }
            baseRequest_ = input.readMessage(wechat.protobuf.BaseRequest.PARSER, extensionRegistry);
            if (subBuilder != null) {
              subBuilder.mergeFrom(baseRequest_);
              baseRequest_ = subBuilder.buildPartial();
            }
            bitField0_ |= 0x00000001;
            break;
          }
          case 18: {
            wechat.protobuf.AppMsg.Builder subBuilder = null;
            if (((bitField0_ & 0x00000002) != 0)) {
              subBuilder = msg_.toBuilder();
            }
            msg_ = input.readMessage(wechat.protobuf.AppMsg.PARSER, extensionRegistry);
            if (subBuilder != null) {
              subBuilder.mergeFrom(msg_);
              msg_ = subBuilder.buildPartial();
            }
            bitField0_ |= 0x00000002;
            break;
          }
          case 26: {
            com.google.protobuf.ByteString bs = input.readBytes();
            bitField0_ |= 0x00000004;
            commentUrl_ = bs;
            break;
          }
          case 32: {
            bitField0_ |= 0x00000008;
            reqTime_ = input.readInt32();
            break;
          }
          case 42: {
            com.google.protobuf.ByteString bs = input.readBytes();
            bitField0_ |= 0x00000010;
            md5_ = bs;
            break;
          }
          case 48: {
            bitField0_ |= 0x00000020;
            fileType_ = input.readInt32();
            break;
          }
          case 58: {
            com.google.protobuf.ByteString bs = input.readBytes();
            bitField0_ |= 0x00000040;
            signature_ = bs;
            break;
          }
          case 66: {
            com.google.protobuf.ByteString bs = input.readBytes();
            bitField0_ |= 0x00000080;
            fromScene_ = bs;
            break;
          }
          case 72: {
            bitField0_ |= 0x00000100;
            hitMd5_ = input.readInt32();
            break;
          }
          case 80: {
            bitField0_ |= 0x00000200;
            crc32_ = input.readInt32();
            break;
          }
          case 88: {
            bitField0_ |= 0x00000400;
            msgForwardType_ = input.readInt32();
            break;
          }
          case 96: {
            bitField0_ |= 0x00000800;
            directShare_ = input.readInt32();
            break;
          }
          case 106: {
            com.google.protobuf.ByteString bs = input.readBytes();
            bitField0_ |= 0x00001000;
            sendMsgTicket_ = bs;
            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_SendAppMsgRequest_descriptor;
  }

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

  private int bitField0_;
  public static final int BASEREQUEST_FIELD_NUMBER = 1;
  private wechat.protobuf.BaseRequest baseRequest_;
  /**
   * optional .wechat_proto.BaseRequest BaseRequest = 1;
   * @return Whether the baseRequest field is set.
   */
  @java.lang.Override
  public boolean hasBaseRequest() {
    return ((bitField0_ & 0x00000001) != 0);
  }
  /**
   * optional .wechat_proto.BaseRequest BaseRequest = 1;
   * @return The baseRequest.
   */
  @java.lang.Override
  public wechat.protobuf.BaseRequest getBaseRequest() {
    return baseRequest_ == null ? wechat.protobuf.BaseRequest.getDefaultInstance() : baseRequest_;
  }
  /**
   * optional .wechat_proto.BaseRequest BaseRequest = 1;
   */
  @java.lang.Override
  public wechat.protobuf.BaseRequestOrBuilder getBaseRequestOrBuilder() {
    return baseRequest_ == null ? wechat.protobuf.BaseRequest.getDefaultInstance() : baseRequest_;
  }

  public static final int MSG_FIELD_NUMBER = 2;
  private wechat.protobuf.AppMsg msg_;
  /**
   * optional .wechat_proto.AppMsg msg = 2;
   * @return Whether the msg field is set.
   */
  @java.lang.Override
  public boolean hasMsg() {
    return ((bitField0_ & 0x00000002) != 0);
  }
  /**
   * optional .wechat_proto.AppMsg msg = 2;
   * @return The msg.
   */
  @java.lang.Override
  public wechat.protobuf.AppMsg getMsg() {
    return msg_ == null ? wechat.protobuf.AppMsg.getDefaultInstance() : msg_;
  }
  /**
   * optional .wechat_proto.AppMsg msg = 2;
   */
  @java.lang.Override
  public wechat.protobuf.AppMsgOrBuilder getMsgOrBuilder() {
    return msg_ == null ? wechat.protobuf.AppMsg.getDefaultInstance() : msg_;
  }

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

  public static final int REQTIME_FIELD_NUMBER = 4;
  private int reqTime_;
  /**
   * optional int32 reqTime = 4;
   * @return Whether the reqTime field is set.
   */
  @java.lang.Override
  public boolean hasReqTime() {
    return ((bitField0_ & 0x00000008) != 0);
  }
  /**
   * optional int32 reqTime = 4;
   * @return The reqTime.
   */
  @java.lang.Override
  public int getReqTime() {
    return reqTime_;
  }

  public static final int MD5_FIELD_NUMBER = 5;
  private volatile java.lang.Object md5_;
  /**
   * optional string md5 = 5;
   * @return Whether the md5 field is set.
   */
  @java.lang.Override
  public boolean hasMd5() {
    return ((bitField0_ & 0x00000010) != 0);
  }
  /**
   * optional string md5 = 5;
   * @return The md5.
   */
  @java.lang.Override
  public java.lang.String getMd5() {
    java.lang.Object ref = md5_;
    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()) {
        md5_ = s;
      }
      return s;
    }
  }
  /**
   * optional string md5 = 5;
   * @return The bytes for md5.
   */
  @java.lang.Override
  public com.google.protobuf.ByteString
      getMd5Bytes() {
    java.lang.Object ref = md5_;
    if (ref instanceof java.lang.String) {
      com.google.protobuf.ByteString b = 
          com.google.protobuf.ByteString.copyFromUtf8(
              (java.lang.String) ref);
      md5_ = b;
      return b;
    } else {
      return (com.google.protobuf.ByteString) ref;
    }
  }

  public static final int FILETYPE_FIELD_NUMBER = 6;
  private int fileType_;
  /**
   * optional int32 fileType = 6;
   * @return Whether the fileType field is set.
   */
  @java.lang.Override
  public boolean hasFileType() {
    return ((bitField0_ & 0x00000020) != 0);
  }
  /**
   * optional int32 fileType = 6;
   * @return The fileType.
   */
  @java.lang.Override
  public int getFileType() {
    return fileType_;
  }

  public static final int SIGNATURE_FIELD_NUMBER = 7;
  private volatile java.lang.Object signature_;
  /**
   * optional string signature = 7;
   * @return Whether the signature field is set.
   */
  @java.lang.Override
  public boolean hasSignature() {
    return ((bitField0_ & 0x00000040) != 0);
  }
  /**
   * optional string signature = 7;
   * @return The signature.
   */
  @java.lang.Override
  public java.lang.String getSignature() {
    java.lang.Object ref = signature_;
    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()) {
        signature_ = s;
      }
      return s;
    }
  }
  /**
   * optional string signature = 7;
   * @return The bytes for signature.
   */
  @java.lang.Override
  public com.google.protobuf.ByteString
      getSignatureBytes() {
    java.lang.Object ref = signature_;
    if (ref instanceof java.lang.String) {
      com.google.protobuf.ByteString b = 
          com.google.protobuf.ByteString.copyFromUtf8(
              (java.lang.String) ref);
      signature_ = b;
      return b;
    } else {
      return (com.google.protobuf.ByteString) ref;
    }
  }

  public static final int FROMSCENE_FIELD_NUMBER = 8;
  private volatile java.lang.Object fromScene_;
  /**
   * optional string fromScene = 8;
   * @return Whether the fromScene field is set.
   */
  @java.lang.Override
  public boolean hasFromScene() {
    return ((bitField0_ & 0x00000080) != 0);
  }
  /**
   * optional string fromScene = 8;
   * @return The fromScene.
   */
  @java.lang.Override
  public java.lang.String getFromScene() {
    java.lang.Object ref = fromScene_;
    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()) {
        fromScene_ = s;
      }
      return s;
    }
  }
  /**
   * optional string fromScene = 8;
   * @return The bytes for fromScene.
   */
  @java.lang.Override
  public com.google.protobuf.ByteString
      getFromSceneBytes() {
    java.lang.Object ref = fromScene_;
    if (ref instanceof java.lang.String) {
      com.google.protobuf.ByteString b = 
          com.google.protobuf.ByteString.copyFromUtf8(
              (java.lang.String) ref);
      fromScene_ = b;
      return b;
    } else {
      return (com.google.protobuf.ByteString) ref;
    }
  }

  public static final int HITMD5_FIELD_NUMBER = 9;
  private int hitMd5_;
  /**
   * optional int32 hitMd5 = 9;
   * @return Whether the hitMd5 field is set.
   */
  @java.lang.Override
  public boolean hasHitMd5() {
    return ((bitField0_ & 0x00000100) != 0);
  }
  /**
   * optional int32 hitMd5 = 9;
   * @return The hitMd5.
   */
  @java.lang.Override
  public int getHitMd5() {
    return hitMd5_;
  }

  public static final int CRC32_FIELD_NUMBER = 10;
  private int crc32_;
  /**
   * optional int32 crc32 = 10;
   * @return Whether the crc32 field is set.
   */
  @java.lang.Override
  public boolean hasCrc32() {
    return ((bitField0_ & 0x00000200) != 0);
  }
  /**
   * optional int32 crc32 = 10;
   * @return The crc32.
   */
  @java.lang.Override
  public int getCrc32() {
    return crc32_;
  }

  public static final int MSGFORWARDTYPE_FIELD_NUMBER = 11;
  private int msgForwardType_;
  /**
   * optional int32 msgForwardType = 11;
   * @return Whether the msgForwardType field is set.
   */
  @java.lang.Override
  public boolean hasMsgForwardType() {
    return ((bitField0_ & 0x00000400) != 0);
  }
  /**
   * optional int32 msgForwardType = 11;
   * @return The msgForwardType.
   */
  @java.lang.Override
  public int getMsgForwardType() {
    return msgForwardType_;
  }

  public static final int DIRECTSHARE_FIELD_NUMBER = 12;
  private int directShare_;
  /**
   * optional int32 directShare = 12;
   * @return Whether the directShare field is set.
   */
  @java.lang.Override
  public boolean hasDirectShare() {
    return ((bitField0_ & 0x00000800) != 0);
  }
  /**
   * optional int32 directShare = 12;
   * @return The directShare.
   */
  @java.lang.Override
  public int getDirectShare() {
    return directShare_;
  }

  public static final int SENDMSGTICKET_FIELD_NUMBER = 13;
  private volatile java.lang.Object sendMsgTicket_;
  /**
   * optional string sendMsgTicket = 13;
   * @return Whether the sendMsgTicket field is set.
   */
  @java.lang.Override
  public boolean hasSendMsgTicket() {
    return ((bitField0_ & 0x00001000) != 0);
  }
  /**
   * optional string sendMsgTicket = 13;
   * @return The sendMsgTicket.
   */
  @java.lang.Override
  public java.lang.String getSendMsgTicket() {
    java.lang.Object ref = sendMsgTicket_;
    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()) {
        sendMsgTicket_ = s;
      }
      return s;
    }
  }
  /**
   * optional string sendMsgTicket = 13;
   * @return The bytes for sendMsgTicket.
   */
  @java.lang.Override
  public com.google.protobuf.ByteString
      getSendMsgTicketBytes() {
    java.lang.Object ref = sendMsgTicket_;
    if (ref instanceof java.lang.String) {
      com.google.protobuf.ByteString b = 
          com.google.protobuf.ByteString.copyFromUtf8(
              (java.lang.String) ref);
      sendMsgTicket_ = b;
      return b;
    } else {
      return (com.google.protobuf.ByteString) ref;
    }
  }

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

    memoizedIsInitialized = 1;
    return true;
  }

  @java.lang.Override
  public void writeTo(com.google.protobuf.CodedOutputStream output)
                      throws java.io.IOException {
    if (((bitField0_ & 0x00000001) != 0)) {
      output.writeMessage(1, getBaseRequest());
    }
    if (((bitField0_ & 0x00000002) != 0)) {
      output.writeMessage(2, getMsg());
    }
    if (((bitField0_ & 0x00000004) != 0)) {
      com.google.protobuf.GeneratedMessageV3.writeString(output, 3, commentUrl_);
    }
    if (((bitField0_ & 0x00000008) != 0)) {
      output.writeInt32(4, reqTime_);
    }
    if (((bitField0_ & 0x00000010) != 0)) {
      com.google.protobuf.GeneratedMessageV3.writeString(output, 5, md5_);
    }
    if (((bitField0_ & 0x00000020) != 0)) {
      output.writeInt32(6, fileType_);
    }
    if (((bitField0_ & 0x00000040) != 0)) {
      com.google.protobuf.GeneratedMessageV3.writeString(output, 7, signature_);
    }
    if (((bitField0_ & 0x00000080) != 0)) {
      com.google.protobuf.GeneratedMessageV3.writeString(output, 8, fromScene_);
    }
    if (((bitField0_ & 0x00000100) != 0)) {
      output.writeInt32(9, hitMd5_);
    }
    if (((bitField0_ & 0x00000200) != 0)) {
      output.writeInt32(10, crc32_);
    }
    if (((bitField0_ & 0x00000400) != 0)) {
      output.writeInt32(11, msgForwardType_);
    }
    if (((bitField0_ & 0x00000800) != 0)) {
      output.writeInt32(12, directShare_);
    }
    if (((bitField0_ & 0x00001000) != 0)) {
      com.google.protobuf.GeneratedMessageV3.writeString(output, 13, sendMsgTicket_);
    }
    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, getBaseRequest());
    }
    if (((bitField0_ & 0x00000002) != 0)) {
      size += com.google.protobuf.CodedOutputStream
        .computeMessageSize(2, getMsg());
    }
    if (((bitField0_ & 0x00000004) != 0)) {
      size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, commentUrl_);
    }
    if (((bitField0_ & 0x00000008) != 0)) {
      size += com.google.protobuf.CodedOutputStream
        .computeInt32Size(4, reqTime_);
    }
    if (((bitField0_ & 0x00000010) != 0)) {
      size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, md5_);
    }
    if (((bitField0_ & 0x00000020) != 0)) {
      size += com.google.protobuf.CodedOutputStream
        .computeInt32Size(6, fileType_);
    }
    if (((bitField0_ & 0x00000040) != 0)) {
      size += com.google.protobuf.GeneratedMessageV3.computeStringSize(7, signature_);
    }
    if (((bitField0_ & 0x00000080) != 0)) {
      size += com.google.protobuf.GeneratedMessageV3.computeStringSize(8, fromScene_);
    }
    if (((bitField0_ & 0x00000100) != 0)) {
      size += com.google.protobuf.CodedOutputStream
        .computeInt32Size(9, hitMd5_);
    }
    if (((bitField0_ & 0x00000200) != 0)) {
      size += com.google.protobuf.CodedOutputStream
        .computeInt32Size(10, crc32_);
    }
    if (((bitField0_ & 0x00000400) != 0)) {
      size += com.google.protobuf.CodedOutputStream
        .computeInt32Size(11, msgForwardType_);
    }
    if (((bitField0_ & 0x00000800) != 0)) {
      size += com.google.protobuf.CodedOutputStream
        .computeInt32Size(12, directShare_);
    }
    if (((bitField0_ & 0x00001000) != 0)) {
      size += com.google.protobuf.GeneratedMessageV3.computeStringSize(13, sendMsgTicket_);
    }
    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.SendAppMsgRequest)) {
      return super.equals(obj);
    }
    wechat.protobuf.SendAppMsgRequest other = (wechat.protobuf.SendAppMsgRequest) obj;

    if (hasBaseRequest() != other.hasBaseRequest()) return false;
    if (hasBaseRequest()) {
      if (!getBaseRequest()
          .equals(other.getBaseRequest())) return false;
    }
    if (hasMsg() != other.hasMsg()) return false;
    if (hasMsg()) {
      if (!getMsg()
          .equals(other.getMsg())) return false;
    }
    if (hasCommentUrl() != other.hasCommentUrl()) return false;
    if (hasCommentUrl()) {
      if (!getCommentUrl()
          .equals(other.getCommentUrl())) return false;
    }
    if (hasReqTime() != other.hasReqTime()) return false;
    if (hasReqTime()) {
      if (getReqTime()
          != other.getReqTime()) return false;
    }
    if (hasMd5() != other.hasMd5()) return false;
    if (hasMd5()) {
      if (!getMd5()
          .equals(other.getMd5())) return false;
    }
    if (hasFileType() != other.hasFileType()) return false;
    if (hasFileType()) {
      if (getFileType()
          != other.getFileType()) return false;
    }
    if (hasSignature() != other.hasSignature()) return false;
    if (hasSignature()) {
      if (!getSignature()
          .equals(other.getSignature())) return false;
    }
    if (hasFromScene() != other.hasFromScene()) return false;
    if (hasFromScene()) {
      if (!getFromScene()
          .equals(other.getFromScene())) return false;
    }
    if (hasHitMd5() != other.hasHitMd5()) return false;
    if (hasHitMd5()) {
      if (getHitMd5()
          != other.getHitMd5()) return false;
    }
    if (hasCrc32() != other.hasCrc32()) return false;
    if (hasCrc32()) {
      if (getCrc32()
          != other.getCrc32()) return false;
    }
    if (hasMsgForwardType() != other.hasMsgForwardType()) return false;
    if (hasMsgForwardType()) {
      if (getMsgForwardType()
          != other.getMsgForwardType()) return false;
    }
    if (hasDirectShare() != other.hasDirectShare()) return false;
    if (hasDirectShare()) {
      if (getDirectShare()
          != other.getDirectShare()) return false;
    }
    if (hasSendMsgTicket() != other.hasSendMsgTicket()) return false;
    if (hasSendMsgTicket()) {
      if (!getSendMsgTicket()
          .equals(other.getSendMsgTicket())) 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 (hasBaseRequest()) {
      hash = (37 * hash) + BASEREQUEST_FIELD_NUMBER;
      hash = (53 * hash) + getBaseRequest().hashCode();
    }
    if (hasMsg()) {
      hash = (37 * hash) + MSG_FIELD_NUMBER;
      hash = (53 * hash) + getMsg().hashCode();
    }
    if (hasCommentUrl()) {
      hash = (37 * hash) + COMMENTURL_FIELD_NUMBER;
      hash = (53 * hash) + getCommentUrl().hashCode();
    }
    if (hasReqTime()) {
      hash = (37 * hash) + REQTIME_FIELD_NUMBER;
      hash = (53 * hash) + getReqTime();
    }
    if (hasMd5()) {
      hash = (37 * hash) + MD5_FIELD_NUMBER;
      hash = (53 * hash) + getMd5().hashCode();
    }
    if (hasFileType()) {
      hash = (37 * hash) + FILETYPE_FIELD_NUMBER;
      hash = (53 * hash) + getFileType();
    }
    if (hasSignature()) {
      hash = (37 * hash) + SIGNATURE_FIELD_NUMBER;
      hash = (53 * hash) + getSignature().hashCode();
    }
    if (hasFromScene()) {
      hash = (37 * hash) + FROMSCENE_FIELD_NUMBER;
      hash = (53 * hash) + getFromScene().hashCode();
    }
    if (hasHitMd5()) {
      hash = (37 * hash) + HITMD5_FIELD_NUMBER;
      hash = (53 * hash) + getHitMd5();
    }
    if (hasCrc32()) {
      hash = (37 * hash) + CRC32_FIELD_NUMBER;
      hash = (53 * hash) + getCrc32();
    }
    if (hasMsgForwardType()) {
      hash = (37 * hash) + MSGFORWARDTYPE_FIELD_NUMBER;
      hash = (53 * hash) + getMsgForwardType();
    }
    if (hasDirectShare()) {
      hash = (37 * hash) + DIRECTSHARE_FIELD_NUMBER;
      hash = (53 * hash) + getDirectShare();
    }
    if (hasSendMsgTicket()) {
      hash = (37 * hash) + SENDMSGTICKET_FIELD_NUMBER;
      hash = (53 * hash) + getSendMsgTicket().hashCode();
    }
    hash = (29 * hash) + unknownFields.hashCode();
    memoizedHashCode = hash;
    return hash;
  }

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

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

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

    private Builder(
        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
      super(parent);
      maybeForceBuilderInitialization();
    }
    private void maybeForceBuilderInitialization() {
      if (com.google.protobuf.GeneratedMessageV3
              .alwaysUseFieldBuilders) {
        getBaseRequestFieldBuilder();
        getMsgFieldBuilder();
      }
    }
    @java.lang.Override
    public Builder clear() {
      super.clear();
      if (baseRequestBuilder_ == null) {
        baseRequest_ = null;
      } else {
        baseRequestBuilder_.clear();
      }
      bitField0_ = (bitField0_ & ~0x00000001);
      if (msgBuilder_ == null) {
        msg_ = null;
      } else {
        msgBuilder_.clear();
      }
      bitField0_ = (bitField0_ & ~0x00000002);
      commentUrl_ = "";
      bitField0_ = (bitField0_ & ~0x00000004);
      reqTime_ = 0;
      bitField0_ = (bitField0_ & ~0x00000008);
      md5_ = "";
      bitField0_ = (bitField0_ & ~0x00000010);
      fileType_ = 0;
      bitField0_ = (bitField0_ & ~0x00000020);
      signature_ = "";
      bitField0_ = (bitField0_ & ~0x00000040);
      fromScene_ = "";
      bitField0_ = (bitField0_ & ~0x00000080);
      hitMd5_ = 0;
      bitField0_ = (bitField0_ & ~0x00000100);
      crc32_ = 0;
      bitField0_ = (bitField0_ & ~0x00000200);
      msgForwardType_ = 0;
      bitField0_ = (bitField0_ & ~0x00000400);
      directShare_ = 0;
      bitField0_ = (bitField0_ & ~0x00000800);
      sendMsgTicket_ = "";
      bitField0_ = (bitField0_ & ~0x00001000);
      return this;
    }

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

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

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

    @java.lang.Override
    public wechat.protobuf.SendAppMsgRequest buildPartial() {
      wechat.protobuf.SendAppMsgRequest result = new wechat.protobuf.SendAppMsgRequest(this);
      int from_bitField0_ = bitField0_;
      int to_bitField0_ = 0;
      if (((from_bitField0_ & 0x00000001) != 0)) {
        if (baseRequestBuilder_ == null) {
          result.baseRequest_ = baseRequest_;
        } else {
          result.baseRequest_ = baseRequestBuilder_.build();
        }
        to_bitField0_ |= 0x00000001;
      }
      if (((from_bitField0_ & 0x00000002) != 0)) {
        if (msgBuilder_ == null) {
          result.msg_ = msg_;
        } else {
          result.msg_ = msgBuilder_.build();
        }
        to_bitField0_ |= 0x00000002;
      }
      if (((from_bitField0_ & 0x00000004) != 0)) {
        to_bitField0_ |= 0x00000004;
      }
      result.commentUrl_ = commentUrl_;
      if (((from_bitField0_ & 0x00000008) != 0)) {
        result.reqTime_ = reqTime_;
        to_bitField0_ |= 0x00000008;
      }
      if (((from_bitField0_ & 0x00000010) != 0)) {
        to_bitField0_ |= 0x00000010;
      }
      result.md5_ = md5_;
      if (((from_bitField0_ & 0x00000020) != 0)) {
        result.fileType_ = fileType_;
        to_bitField0_ |= 0x00000020;
      }
      if (((from_bitField0_ & 0x00000040) != 0)) {
        to_bitField0_ |= 0x00000040;
      }
      result.signature_ = signature_;
      if (((from_bitField0_ & 0x00000080) != 0)) {
        to_bitField0_ |= 0x00000080;
      }
      result.fromScene_ = fromScene_;
      if (((from_bitField0_ & 0x00000100) != 0)) {
        result.hitMd5_ = hitMd5_;
        to_bitField0_ |= 0x00000100;
      }
      if (((from_bitField0_ & 0x00000200) != 0)) {
        result.crc32_ = crc32_;
        to_bitField0_ |= 0x00000200;
      }
      if (((from_bitField0_ & 0x00000400) != 0)) {
        result.msgForwardType_ = msgForwardType_;
        to_bitField0_ |= 0x00000400;
      }
      if (((from_bitField0_ & 0x00000800) != 0)) {
        result.directShare_ = directShare_;
        to_bitField0_ |= 0x00000800;
      }
      if (((from_bitField0_ & 0x00001000) != 0)) {
        to_bitField0_ |= 0x00001000;
      }
      result.sendMsgTicket_ = sendMsgTicket_;
      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.SendAppMsgRequest) {
        return mergeFrom((wechat.protobuf.SendAppMsgRequest)other);
      } else {
        super.mergeFrom(other);
        return this;
      }
    }

    public Builder mergeFrom(wechat.protobuf.SendAppMsgRequest other) {
      if (other == wechat.protobuf.SendAppMsgRequest.getDefaultInstance()) return this;
      if (other.hasBaseRequest()) {
        mergeBaseRequest(other.getBaseRequest());
      }
      if (other.hasMsg()) {
        mergeMsg(other.getMsg());
      }
      if (other.hasCommentUrl()) {
        bitField0_ |= 0x00000004;
        commentUrl_ = other.commentUrl_;
        onChanged();
      }
      if (other.hasReqTime()) {
        setReqTime(other.getReqTime());
      }
      if (other.hasMd5()) {
        bitField0_ |= 0x00000010;
        md5_ = other.md5_;
        onChanged();
      }
      if (other.hasFileType()) {
        setFileType(other.getFileType());
      }
      if (other.hasSignature()) {
        bitField0_ |= 0x00000040;
        signature_ = other.signature_;
        onChanged();
      }
      if (other.hasFromScene()) {
        bitField0_ |= 0x00000080;
        fromScene_ = other.fromScene_;
        onChanged();
      }
      if (other.hasHitMd5()) {
        setHitMd5(other.getHitMd5());
      }
      if (other.hasCrc32()) {
        setCrc32(other.getCrc32());
      }
      if (other.hasMsgForwardType()) {
        setMsgForwardType(other.getMsgForwardType());
      }
      if (other.hasDirectShare()) {
        setDirectShare(other.getDirectShare());
      }
      if (other.hasSendMsgTicket()) {
        bitField0_ |= 0x00001000;
        sendMsgTicket_ = other.sendMsgTicket_;
        onChanged();
      }
      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.SendAppMsgRequest parsedMessage = null;
      try {
        parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
      } catch (com.google.protobuf.InvalidProtocolBufferException e) {
        parsedMessage = (wechat.protobuf.SendAppMsgRequest) e.getUnfinishedMessage();
        throw e.unwrapIOException();
      } finally {
        if (parsedMessage != null) {
          mergeFrom(parsedMessage);
        }
      }
      return this;
    }
    private int bitField0_;

    private wechat.protobuf.BaseRequest baseRequest_;
    private com.google.protobuf.SingleFieldBuilderV3<
        wechat.protobuf.BaseRequest, wechat.protobuf.BaseRequest.Builder, wechat.protobuf.BaseRequestOrBuilder> baseRequestBuilder_;
    /**
     * optional .wechat_proto.BaseRequest BaseRequest = 1;
     * @return Whether the baseRequest field is set.
     */
    public boolean hasBaseRequest() {
      return ((bitField0_ & 0x00000001) != 0);
    }
    /**
     * optional .wechat_proto.BaseRequest BaseRequest = 1;
     * @return The baseRequest.
     */
    public wechat.protobuf.BaseRequest getBaseRequest() {
      if (baseRequestBuilder_ == null) {
        return baseRequest_ == null ? wechat.protobuf.BaseRequest.getDefaultInstance() : baseRequest_;
      } else {
        return baseRequestBuilder_.getMessage();
      }
    }
    /**
     * optional .wechat_proto.BaseRequest BaseRequest = 1;
     */
    public Builder setBaseRequest(wechat.protobuf.BaseRequest value) {
      if (baseRequestBuilder_ == null) {
        if (value == null) {
          throw new NullPointerException();
        }
        baseRequest_ = value;
        onChanged();
      } else {
        baseRequestBuilder_.setMessage(value);
      }
      bitField0_ |= 0x00000001;
      return this;
    }
    /**
     * optional .wechat_proto.BaseRequest BaseRequest = 1;
     */
    public Builder setBaseRequest(
        wechat.protobuf.BaseRequest.Builder builderForValue) {
      if (baseRequestBuilder_ == null) {
        baseRequest_ = builderForValue.build();
        onChanged();
      } else {
        baseRequestBuilder_.setMessage(builderForValue.build());
      }
      bitField0_ |= 0x00000001;
      return this;
    }
    /**
     * optional .wechat_proto.BaseRequest BaseRequest = 1;
     */
    public Builder mergeBaseRequest(wechat.protobuf.BaseRequest value) {
      if (baseRequestBuilder_ == null) {
        if (((bitField0_ & 0x00000001) != 0) &&
            baseRequest_ != null &&
            baseRequest_ != wechat.protobuf.BaseRequest.getDefaultInstance()) {
          baseRequest_ =
            wechat.protobuf.BaseRequest.newBuilder(baseRequest_).mergeFrom(value).buildPartial();
        } else {
          baseRequest_ = value;
        }
        onChanged();
      } else {
        baseRequestBuilder_.mergeFrom(value);
      }
      bitField0_ |= 0x00000001;
      return this;
    }
    /**
     * optional .wechat_proto.BaseRequest BaseRequest = 1;
     */
    public Builder clearBaseRequest() {
      if (baseRequestBuilder_ == null) {
        baseRequest_ = null;
        onChanged();
      } else {
        baseRequestBuilder_.clear();
      }
      bitField0_ = (bitField0_ & ~0x00000001);
      return this;
    }
    /**
     * optional .wechat_proto.BaseRequest BaseRequest = 1;
     */
    public wechat.protobuf.BaseRequest.Builder getBaseRequestBuilder() {
      bitField0_ |= 0x00000001;
      onChanged();
      return getBaseRequestFieldBuilder().getBuilder();
    }
    /**
     * optional .wechat_proto.BaseRequest BaseRequest = 1;
     */
    public wechat.protobuf.BaseRequestOrBuilder getBaseRequestOrBuilder() {
      if (baseRequestBuilder_ != null) {
        return baseRequestBuilder_.getMessageOrBuilder();
      } else {
        return baseRequest_ == null ?
            wechat.protobuf.BaseRequest.getDefaultInstance() : baseRequest_;
      }
    }
    /**
     * optional .wechat_proto.BaseRequest BaseRequest = 1;
     */
    private com.google.protobuf.SingleFieldBuilderV3<
        wechat.protobuf.BaseRequest, wechat.protobuf.BaseRequest.Builder, wechat.protobuf.BaseRequestOrBuilder> 
        getBaseRequestFieldBuilder() {
      if (baseRequestBuilder_ == null) {
        baseRequestBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
            wechat.protobuf.BaseRequest, wechat.protobuf.BaseRequest.Builder, wechat.protobuf.BaseRequestOrBuilder>(
                getBaseRequest(),
                getParentForChildren(),
                isClean());
        baseRequest_ = null;
      }
      return baseRequestBuilder_;
    }

    private wechat.protobuf.AppMsg msg_;
    private com.google.protobuf.SingleFieldBuilderV3<
        wechat.protobuf.AppMsg, wechat.protobuf.AppMsg.Builder, wechat.protobuf.AppMsgOrBuilder> msgBuilder_;
    /**
     * optional .wechat_proto.AppMsg msg = 2;
     * @return Whether the msg field is set.
     */
    public boolean hasMsg() {
      return ((bitField0_ & 0x00000002) != 0);
    }
    /**
     * optional .wechat_proto.AppMsg msg = 2;
     * @return The msg.
     */
    public wechat.protobuf.AppMsg getMsg() {
      if (msgBuilder_ == null) {
        return msg_ == null ? wechat.protobuf.AppMsg.getDefaultInstance() : msg_;
      } else {
        return msgBuilder_.getMessage();
      }
    }
    /**
     * optional .wechat_proto.AppMsg msg = 2;
     */
    public Builder setMsg(wechat.protobuf.AppMsg value) {
      if (msgBuilder_ == null) {
        if (value == null) {
          throw new NullPointerException();
        }
        msg_ = value;
        onChanged();
      } else {
        msgBuilder_.setMessage(value);
      }
      bitField0_ |= 0x00000002;
      return this;
    }
    /**
     * optional .wechat_proto.AppMsg msg = 2;
     */
    public Builder setMsg(
        wechat.protobuf.AppMsg.Builder builderForValue) {
      if (msgBuilder_ == null) {
        msg_ = builderForValue.build();
        onChanged();
      } else {
        msgBuilder_.setMessage(builderForValue.build());
      }
      bitField0_ |= 0x00000002;
      return this;
    }
    /**
     * optional .wechat_proto.AppMsg msg = 2;
     */
    public Builder mergeMsg(wechat.protobuf.AppMsg value) {
      if (msgBuilder_ == null) {
        if (((bitField0_ & 0x00000002) != 0) &&
            msg_ != null &&
            msg_ != wechat.protobuf.AppMsg.getDefaultInstance()) {
          msg_ =
            wechat.protobuf.AppMsg.newBuilder(msg_).mergeFrom(value).buildPartial();
        } else {
          msg_ = value;
        }
        onChanged();
      } else {
        msgBuilder_.mergeFrom(value);
      }
      bitField0_ |= 0x00000002;
      return this;
    }
    /**
     * optional .wechat_proto.AppMsg msg = 2;
     */
    public Builder clearMsg() {
      if (msgBuilder_ == null) {
        msg_ = null;
        onChanged();
      } else {
        msgBuilder_.clear();
      }
      bitField0_ = (bitField0_ & ~0x00000002);
      return this;
    }
    /**
     * optional .wechat_proto.AppMsg msg = 2;
     */
    public wechat.protobuf.AppMsg.Builder getMsgBuilder() {
      bitField0_ |= 0x00000002;
      onChanged();
      return getMsgFieldBuilder().getBuilder();
    }
    /**
     * optional .wechat_proto.AppMsg msg = 2;
     */
    public wechat.protobuf.AppMsgOrBuilder getMsgOrBuilder() {
      if (msgBuilder_ != null) {
        return msgBuilder_.getMessageOrBuilder();
      } else {
        return msg_ == null ?
            wechat.protobuf.AppMsg.getDefaultInstance() : msg_;
      }
    }
    /**
     * optional .wechat_proto.AppMsg msg = 2;
     */
    private com.google.protobuf.SingleFieldBuilderV3<
        wechat.protobuf.AppMsg, wechat.protobuf.AppMsg.Builder, wechat.protobuf.AppMsgOrBuilder> 
        getMsgFieldBuilder() {
      if (msgBuilder_ == null) {
        msgBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
            wechat.protobuf.AppMsg, wechat.protobuf.AppMsg.Builder, wechat.protobuf.AppMsgOrBuilder>(
                getMsg(),
                getParentForChildren(),
                isClean());
        msg_ = null;
      }
      return msgBuilder_;
    }

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

    private int reqTime_ ;
    /**
     * optional int32 reqTime = 4;
     * @return Whether the reqTime field is set.
     */
    @java.lang.Override
    public boolean hasReqTime() {
      return ((bitField0_ & 0x00000008) != 0);
    }
    /**
     * optional int32 reqTime = 4;
     * @return The reqTime.
     */
    @java.lang.Override
    public int getReqTime() {
      return reqTime_;
    }
    /**
     * optional int32 reqTime = 4;
     * @param value The reqTime to set.
     * @return This builder for chaining.
     */
    public Builder setReqTime(int value) {
      bitField0_ |= 0x00000008;
      reqTime_ = value;
      onChanged();
      return this;
    }
    /**
     * optional int32 reqTime = 4;
     * @return This builder for chaining.
     */
    public Builder clearReqTime() {
      bitField0_ = (bitField0_ & ~0x00000008);
      reqTime_ = 0;
      onChanged();
      return this;
    }

    private java.lang.Object md5_ = "";
    /**
     * optional string md5 = 5;
     * @return Whether the md5 field is set.
     */
    public boolean hasMd5() {
      return ((bitField0_ & 0x00000010) != 0);
    }
    /**
     * optional string md5 = 5;
     * @return The md5.
     */
    public java.lang.String getMd5() {
      java.lang.Object ref = md5_;
      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()) {
          md5_ = s;
        }
        return s;
      } else {
        return (java.lang.String) ref;
      }
    }
    /**
     * optional string md5 = 5;
     * @return The bytes for md5.
     */
    public com.google.protobuf.ByteString
        getMd5Bytes() {
      java.lang.Object ref = md5_;
      if (ref instanceof String) {
        com.google.protobuf.ByteString b = 
            com.google.protobuf.ByteString.copyFromUtf8(
                (java.lang.String) ref);
        md5_ = b;
        return b;
      } else {
        return (com.google.protobuf.ByteString) ref;
      }
    }
    /**
     * optional string md5 = 5;
     * @param value The md5 to set.
     * @return This builder for chaining.
     */
    public Builder setMd5(
        java.lang.String value) {
      if (value == null) {
    throw new NullPointerException();
  }
  bitField0_ |= 0x00000010;
      md5_ = value;
      onChanged();
      return this;
    }
    /**
     * optional string md5 = 5;
     * @return This builder for chaining.
     */
    public Builder clearMd5() {
      bitField0_ = (bitField0_ & ~0x00000010);
      md5_ = getDefaultInstance().getMd5();
      onChanged();
      return this;
    }
    /**
     * optional string md5 = 5;
     * @param value The bytes for md5 to set.
     * @return This builder for chaining.
     */
    public Builder setMd5Bytes(
        com.google.protobuf.ByteString value) {
      if (value == null) {
    throw new NullPointerException();
  }
  bitField0_ |= 0x00000010;
      md5_ = value;
      onChanged();
      return this;
    }

    private int fileType_ ;
    /**
     * optional int32 fileType = 6;
     * @return Whether the fileType field is set.
     */
    @java.lang.Override
    public boolean hasFileType() {
      return ((bitField0_ & 0x00000020) != 0);
    }
    /**
     * optional int32 fileType = 6;
     * @return The fileType.
     */
    @java.lang.Override
    public int getFileType() {
      return fileType_;
    }
    /**
     * optional int32 fileType = 6;
     * @param value The fileType to set.
     * @return This builder for chaining.
     */
    public Builder setFileType(int value) {
      bitField0_ |= 0x00000020;
      fileType_ = value;
      onChanged();
      return this;
    }
    /**
     * optional int32 fileType = 6;
     * @return This builder for chaining.
     */
    public Builder clearFileType() {
      bitField0_ = (bitField0_ & ~0x00000020);
      fileType_ = 0;
      onChanged();
      return this;
    }

    private java.lang.Object signature_ = "";
    /**
     * optional string signature = 7;
     * @return Whether the signature field is set.
     */
    public boolean hasSignature() {
      return ((bitField0_ & 0x00000040) != 0);
    }
    /**
     * optional string signature = 7;
     * @return The signature.
     */
    public java.lang.String getSignature() {
      java.lang.Object ref = signature_;
      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()) {
          signature_ = s;
        }
        return s;
      } else {
        return (java.lang.String) ref;
      }
    }
    /**
     * optional string signature = 7;
     * @return The bytes for signature.
     */
    public com.google.protobuf.ByteString
        getSignatureBytes() {
      java.lang.Object ref = signature_;
      if (ref instanceof String) {
        com.google.protobuf.ByteString b = 
            com.google.protobuf.ByteString.copyFromUtf8(
                (java.lang.String) ref);
        signature_ = b;
        return b;
      } else {
        return (com.google.protobuf.ByteString) ref;
      }
    }
    /**
     * optional string signature = 7;
     * @param value The signature to set.
     * @return This builder for chaining.
     */
    public Builder setSignature(
        java.lang.String value) {
      if (value == null) {
    throw new NullPointerException();
  }
  bitField0_ |= 0x00000040;
      signature_ = value;
      onChanged();
      return this;
    }
    /**
     * optional string signature = 7;
     * @return This builder for chaining.
     */
    public Builder clearSignature() {
      bitField0_ = (bitField0_ & ~0x00000040);
      signature_ = getDefaultInstance().getSignature();
      onChanged();
      return this;
    }
    /**
     * optional string signature = 7;
     * @param value The bytes for signature to set.
     * @return This builder for chaining.
     */
    public Builder setSignatureBytes(
        com.google.protobuf.ByteString value) {
      if (value == null) {
    throw new NullPointerException();
  }
  bitField0_ |= 0x00000040;
      signature_ = value;
      onChanged();
      return this;
    }

    private java.lang.Object fromScene_ = "";
    /**
     * optional string fromScene = 8;
     * @return Whether the fromScene field is set.
     */
    public boolean hasFromScene() {
      return ((bitField0_ & 0x00000080) != 0);
    }
    /**
     * optional string fromScene = 8;
     * @return The fromScene.
     */
    public java.lang.String getFromScene() {
      java.lang.Object ref = fromScene_;
      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()) {
          fromScene_ = s;
        }
        return s;
      } else {
        return (java.lang.String) ref;
      }
    }
    /**
     * optional string fromScene = 8;
     * @return The bytes for fromScene.
     */
    public com.google.protobuf.ByteString
        getFromSceneBytes() {
      java.lang.Object ref = fromScene_;
      if (ref instanceof String) {
        com.google.protobuf.ByteString b = 
            com.google.protobuf.ByteString.copyFromUtf8(
                (java.lang.String) ref);
        fromScene_ = b;
        return b;
      } else {
        return (com.google.protobuf.ByteString) ref;
      }
    }
    /**
     * optional string fromScene = 8;
     * @param value The fromScene to set.
     * @return This builder for chaining.
     */
    public Builder setFromScene(
        java.lang.String value) {
      if (value == null) {
    throw new NullPointerException();
  }
  bitField0_ |= 0x00000080;
      fromScene_ = value;
      onChanged();
      return this;
    }
    /**
     * optional string fromScene = 8;
     * @return This builder for chaining.
     */
    public Builder clearFromScene() {
      bitField0_ = (bitField0_ & ~0x00000080);
      fromScene_ = getDefaultInstance().getFromScene();
      onChanged();
      return this;
    }
    /**
     * optional string fromScene = 8;
     * @param value The bytes for fromScene to set.
     * @return This builder for chaining.
     */
    public Builder setFromSceneBytes(
        com.google.protobuf.ByteString value) {
      if (value == null) {
    throw new NullPointerException();
  }
  bitField0_ |= 0x00000080;
      fromScene_ = value;
      onChanged();
      return this;
    }

    private int hitMd5_ ;
    /**
     * optional int32 hitMd5 = 9;
     * @return Whether the hitMd5 field is set.
     */
    @java.lang.Override
    public boolean hasHitMd5() {
      return ((bitField0_ & 0x00000100) != 0);
    }
    /**
     * optional int32 hitMd5 = 9;
     * @return The hitMd5.
     */
    @java.lang.Override
    public int getHitMd5() {
      return hitMd5_;
    }
    /**
     * optional int32 hitMd5 = 9;
     * @param value The hitMd5 to set.
     * @return This builder for chaining.
     */
    public Builder setHitMd5(int value) {
      bitField0_ |= 0x00000100;
      hitMd5_ = value;
      onChanged();
      return this;
    }
    /**
     * optional int32 hitMd5 = 9;
     * @return This builder for chaining.
     */
    public Builder clearHitMd5() {
      bitField0_ = (bitField0_ & ~0x00000100);
      hitMd5_ = 0;
      onChanged();
      return this;
    }

    private int crc32_ ;
    /**
     * optional int32 crc32 = 10;
     * @return Whether the crc32 field is set.
     */
    @java.lang.Override
    public boolean hasCrc32() {
      return ((bitField0_ & 0x00000200) != 0);
    }
    /**
     * optional int32 crc32 = 10;
     * @return The crc32.
     */
    @java.lang.Override
    public int getCrc32() {
      return crc32_;
    }
    /**
     * optional int32 crc32 = 10;
     * @param value The crc32 to set.
     * @return This builder for chaining.
     */
    public Builder setCrc32(int value) {
      bitField0_ |= 0x00000200;
      crc32_ = value;
      onChanged();
      return this;
    }
    /**
     * optional int32 crc32 = 10;
     * @return This builder for chaining.
     */
    public Builder clearCrc32() {
      bitField0_ = (bitField0_ & ~0x00000200);
      crc32_ = 0;
      onChanged();
      return this;
    }

    private int msgForwardType_ ;
    /**
     * optional int32 msgForwardType = 11;
     * @return Whether the msgForwardType field is set.
     */
    @java.lang.Override
    public boolean hasMsgForwardType() {
      return ((bitField0_ & 0x00000400) != 0);
    }
    /**
     * optional int32 msgForwardType = 11;
     * @return The msgForwardType.
     */
    @java.lang.Override
    public int getMsgForwardType() {
      return msgForwardType_;
    }
    /**
     * optional int32 msgForwardType = 11;
     * @param value The msgForwardType to set.
     * @return This builder for chaining.
     */
    public Builder setMsgForwardType(int value) {
      bitField0_ |= 0x00000400;
      msgForwardType_ = value;
      onChanged();
      return this;
    }
    /**
     * optional int32 msgForwardType = 11;
     * @return This builder for chaining.
     */
    public Builder clearMsgForwardType() {
      bitField0_ = (bitField0_ & ~0x00000400);
      msgForwardType_ = 0;
      onChanged();
      return this;
    }

    private int directShare_ ;
    /**
     * optional int32 directShare = 12;
     * @return Whether the directShare field is set.
     */
    @java.lang.Override
    public boolean hasDirectShare() {
      return ((bitField0_ & 0x00000800) != 0);
    }
    /**
     * optional int32 directShare = 12;
     * @return The directShare.
     */
    @java.lang.Override
    public int getDirectShare() {
      return directShare_;
    }
    /**
     * optional int32 directShare = 12;
     * @param value The directShare to set.
     * @return This builder for chaining.
     */
    public Builder setDirectShare(int value) {
      bitField0_ |= 0x00000800;
      directShare_ = value;
      onChanged();
      return this;
    }
    /**
     * optional int32 directShare = 12;
     * @return This builder for chaining.
     */
    public Builder clearDirectShare() {
      bitField0_ = (bitField0_ & ~0x00000800);
      directShare_ = 0;
      onChanged();
      return this;
    }

    private java.lang.Object sendMsgTicket_ = "";
    /**
     * optional string sendMsgTicket = 13;
     * @return Whether the sendMsgTicket field is set.
     */
    public boolean hasSendMsgTicket() {
      return ((bitField0_ & 0x00001000) != 0);
    }
    /**
     * optional string sendMsgTicket = 13;
     * @return The sendMsgTicket.
     */
    public java.lang.String getSendMsgTicket() {
      java.lang.Object ref = sendMsgTicket_;
      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()) {
          sendMsgTicket_ = s;
        }
        return s;
      } else {
        return (java.lang.String) ref;
      }
    }
    /**
     * optional string sendMsgTicket = 13;
     * @return The bytes for sendMsgTicket.
     */
    public com.google.protobuf.ByteString
        getSendMsgTicketBytes() {
      java.lang.Object ref = sendMsgTicket_;
      if (ref instanceof String) {
        com.google.protobuf.ByteString b = 
            com.google.protobuf.ByteString.copyFromUtf8(
                (java.lang.String) ref);
        sendMsgTicket_ = b;
        return b;
      } else {
        return (com.google.protobuf.ByteString) ref;
      }
    }
    /**
     * optional string sendMsgTicket = 13;
     * @param value The sendMsgTicket to set.
     * @return This builder for chaining.
     */
    public Builder setSendMsgTicket(
        java.lang.String value) {
      if (value == null) {
    throw new NullPointerException();
  }
  bitField0_ |= 0x00001000;
      sendMsgTicket_ = value;
      onChanged();
      return this;
    }
    /**
     * optional string sendMsgTicket = 13;
     * @return This builder for chaining.
     */
    public Builder clearSendMsgTicket() {
      bitField0_ = (bitField0_ & ~0x00001000);
      sendMsgTicket_ = getDefaultInstance().getSendMsgTicket();
      onChanged();
      return this;
    }
    /**
     * optional string sendMsgTicket = 13;
     * @param value The bytes for sendMsgTicket to set.
     * @return This builder for chaining.
     */
    public Builder setSendMsgTicketBytes(
        com.google.protobuf.ByteString value) {
      if (value == null) {
    throw new NullPointerException();
  }
  bitField0_ |= 0x00001000;
      sendMsgTicket_ = value;
      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.SendAppMsgRequest)
  }

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

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

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

}





© 2015 - 2025 Weber Informatics LLC | Privacy Policy