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

wechat.protobuf.CDNUploadMsgImgPrepareResponse Maven / Gradle / Ivy

// Generated by the protocol buffer compiler.  DO NOT EDIT!
// source: wechat.proto

package wechat.protobuf;

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

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

  @java.lang.Override
  public final com.google.protobuf.UnknownFieldSet
  getUnknownFields() {
    return this.unknownFields;
  }
  private CDNUploadMsgImgPrepareResponse(
      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 26: {
            com.google.protobuf.ByteString bs = input.readBytes();
            bitField0_ |= 0x00000002;
            clientImgId_ = bs;
            break;
          }
          case 34: {
            com.google.protobuf.ByteString bs = input.readBytes();
            bitField0_ |= 0x00000004;
            fromUserName_ = bs;
            break;
          }
          case 42: {
            com.google.protobuf.ByteString bs = input.readBytes();
            bitField0_ |= 0x00000008;
            toUserName_ = bs;
            break;
          }
          case 72: {
            bitField0_ |= 0x00000010;
            createTime_ = input.readUInt32();
            break;
          }
          case 80: {
            bitField0_ |= 0x00000020;
            newMsgId_ = input.readUInt64();
            break;
          }
          case 90: {
            com.google.protobuf.ByteString bs = input.readBytes();
            bitField0_ |= 0x00000040;
            aeskey_ = bs;
            break;
          }
          case 98: {
            com.google.protobuf.ByteString bs = input.readBytes();
            bitField0_ |= 0x00000080;
            fileId_ = bs;
            break;
          }
          case 106: {
            com.google.protobuf.ByteString bs = input.readBytes();
            bitField0_ |= 0x00000100;
            msgSource_ = 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_CDNUploadMsgImgPrepareResponse_descriptor;
  }

  @java.lang.Override
  protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
      internalGetFieldAccessorTable() {
    return wechat.protobuf.Wechat.internal_static_wechat_proto_CDNUploadMsgImgPrepareResponse_fieldAccessorTable
        .ensureFieldAccessorsInitialized(
            wechat.protobuf.CDNUploadMsgImgPrepareResponse.class, wechat.protobuf.CDNUploadMsgImgPrepareResponse.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 CLIENTIMGID_FIELD_NUMBER = 3;
  private volatile java.lang.Object clientImgId_;
  /**
   * optional string clientImgId = 3;
   * @return Whether the clientImgId field is set.
   */
  @java.lang.Override
  public boolean hasClientImgId() {
    return ((bitField0_ & 0x00000002) != 0);
  }
  /**
   * optional string clientImgId = 3;
   * @return The clientImgId.
   */
  @java.lang.Override
  public java.lang.String getClientImgId() {
    java.lang.Object ref = clientImgId_;
    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()) {
        clientImgId_ = s;
      }
      return s;
    }
  }
  /**
   * optional string clientImgId = 3;
   * @return The bytes for clientImgId.
   */
  @java.lang.Override
  public com.google.protobuf.ByteString
      getClientImgIdBytes() {
    java.lang.Object ref = clientImgId_;
    if (ref instanceof java.lang.String) {
      com.google.protobuf.ByteString b = 
          com.google.protobuf.ByteString.copyFromUtf8(
              (java.lang.String) ref);
      clientImgId_ = b;
      return b;
    } else {
      return (com.google.protobuf.ByteString) ref;
    }
  }

  public static final int FROMUSERNAME_FIELD_NUMBER = 4;
  private volatile java.lang.Object fromUserName_;
  /**
   * optional string fromUserName = 4;
   * @return Whether the fromUserName field is set.
   */
  @java.lang.Override
  public boolean hasFromUserName() {
    return ((bitField0_ & 0x00000004) != 0);
  }
  /**
   * optional string fromUserName = 4;
   * @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 = 4;
   * @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 = 5;
  private volatile java.lang.Object toUserName_;
  /**
   * optional string toUserName = 5;
   * @return Whether the toUserName field is set.
   */
  @java.lang.Override
  public boolean hasToUserName() {
    return ((bitField0_ & 0x00000008) != 0);
  }
  /**
   * optional string toUserName = 5;
   * @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 = 5;
   * @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 CREATETIME_FIELD_NUMBER = 9;
  private int createTime_;
  /**
   * optional uint32 createTime = 9;
   * @return Whether the createTime field is set.
   */
  @java.lang.Override
  public boolean hasCreateTime() {
    return ((bitField0_ & 0x00000010) != 0);
  }
  /**
   * optional uint32 createTime = 9;
   * @return The createTime.
   */
  @java.lang.Override
  public int getCreateTime() {
    return createTime_;
  }

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

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

  public static final int MSGSOURCE_FIELD_NUMBER = 13;
  private volatile java.lang.Object msgSource_;
  /**
   * optional string msgSource = 13;
   * @return Whether the msgSource field is set.
   */
  @java.lang.Override
  public boolean hasMsgSource() {
    return ((bitField0_ & 0x00000100) != 0);
  }
  /**
   * optional string msgSource = 13;
   * @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 = 13;
   * @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;
    }
  }

  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, 3, clientImgId_);
    }
    if (((bitField0_ & 0x00000004) != 0)) {
      com.google.protobuf.GeneratedMessageV3.writeString(output, 4, fromUserName_);
    }
    if (((bitField0_ & 0x00000008) != 0)) {
      com.google.protobuf.GeneratedMessageV3.writeString(output, 5, toUserName_);
    }
    if (((bitField0_ & 0x00000010) != 0)) {
      output.writeUInt32(9, createTime_);
    }
    if (((bitField0_ & 0x00000020) != 0)) {
      output.writeUInt64(10, newMsgId_);
    }
    if (((bitField0_ & 0x00000040) != 0)) {
      com.google.protobuf.GeneratedMessageV3.writeString(output, 11, aeskey_);
    }
    if (((bitField0_ & 0x00000080) != 0)) {
      com.google.protobuf.GeneratedMessageV3.writeString(output, 12, fileId_);
    }
    if (((bitField0_ & 0x00000100) != 0)) {
      com.google.protobuf.GeneratedMessageV3.writeString(output, 13, msgSource_);
    }
    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(3, clientImgId_);
    }
    if (((bitField0_ & 0x00000004) != 0)) {
      size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, fromUserName_);
    }
    if (((bitField0_ & 0x00000008) != 0)) {
      size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, toUserName_);
    }
    if (((bitField0_ & 0x00000010) != 0)) {
      size += com.google.protobuf.CodedOutputStream
        .computeUInt32Size(9, createTime_);
    }
    if (((bitField0_ & 0x00000020) != 0)) {
      size += com.google.protobuf.CodedOutputStream
        .computeUInt64Size(10, newMsgId_);
    }
    if (((bitField0_ & 0x00000040) != 0)) {
      size += com.google.protobuf.GeneratedMessageV3.computeStringSize(11, aeskey_);
    }
    if (((bitField0_ & 0x00000080) != 0)) {
      size += com.google.protobuf.GeneratedMessageV3.computeStringSize(12, fileId_);
    }
    if (((bitField0_ & 0x00000100) != 0)) {
      size += com.google.protobuf.GeneratedMessageV3.computeStringSize(13, msgSource_);
    }
    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.CDNUploadMsgImgPrepareResponse)) {
      return super.equals(obj);
    }
    wechat.protobuf.CDNUploadMsgImgPrepareResponse other = (wechat.protobuf.CDNUploadMsgImgPrepareResponse) obj;

    if (hasBaseResponse() != other.hasBaseResponse()) return false;
    if (hasBaseResponse()) {
      if (!getBaseResponse()
          .equals(other.getBaseResponse())) return false;
    }
    if (hasClientImgId() != other.hasClientImgId()) return false;
    if (hasClientImgId()) {
      if (!getClientImgId()
          .equals(other.getClientImgId())) 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 (hasCreateTime() != other.hasCreateTime()) return false;
    if (hasCreateTime()) {
      if (getCreateTime()
          != other.getCreateTime()) 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 (hasFileId() != other.hasFileId()) return false;
    if (hasFileId()) {
      if (!getFileId()
          .equals(other.getFileId())) return false;
    }
    if (hasMsgSource() != other.hasMsgSource()) return false;
    if (hasMsgSource()) {
      if (!getMsgSource()
          .equals(other.getMsgSource())) 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 (hasClientImgId()) {
      hash = (37 * hash) + CLIENTIMGID_FIELD_NUMBER;
      hash = (53 * hash) + getClientImgId().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 (hasCreateTime()) {
      hash = (37 * hash) + CREATETIME_FIELD_NUMBER;
      hash = (53 * hash) + getCreateTime();
    }
    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 (hasFileId()) {
      hash = (37 * hash) + FILEID_FIELD_NUMBER;
      hash = (53 * hash) + getFileId().hashCode();
    }
    if (hasMsgSource()) {
      hash = (37 * hash) + MSGSOURCE_FIELD_NUMBER;
      hash = (53 * hash) + getMsgSource().hashCode();
    }
    hash = (29 * hash) + unknownFields.hashCode();
    memoizedHashCode = hash;
    return hash;
  }

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

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

    // Construct using wechat.protobuf.CDNUploadMsgImgPrepareResponse.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);
      clientImgId_ = "";
      bitField0_ = (bitField0_ & ~0x00000002);
      fromUserName_ = "";
      bitField0_ = (bitField0_ & ~0x00000004);
      toUserName_ = "";
      bitField0_ = (bitField0_ & ~0x00000008);
      createTime_ = 0;
      bitField0_ = (bitField0_ & ~0x00000010);
      newMsgId_ = 0L;
      bitField0_ = (bitField0_ & ~0x00000020);
      aeskey_ = "";
      bitField0_ = (bitField0_ & ~0x00000040);
      fileId_ = "";
      bitField0_ = (bitField0_ & ~0x00000080);
      msgSource_ = "";
      bitField0_ = (bitField0_ & ~0x00000100);
      return this;
    }

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

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

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

    @java.lang.Override
    public wechat.protobuf.CDNUploadMsgImgPrepareResponse buildPartial() {
      wechat.protobuf.CDNUploadMsgImgPrepareResponse result = new wechat.protobuf.CDNUploadMsgImgPrepareResponse(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.clientImgId_ = clientImgId_;
      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.createTime_ = createTime_;
        to_bitField0_ |= 0x00000010;
      }
      if (((from_bitField0_ & 0x00000020) != 0)) {
        result.newMsgId_ = newMsgId_;
        to_bitField0_ |= 0x00000020;
      }
      if (((from_bitField0_ & 0x00000040) != 0)) {
        to_bitField0_ |= 0x00000040;
      }
      result.aeskey_ = aeskey_;
      if (((from_bitField0_ & 0x00000080) != 0)) {
        to_bitField0_ |= 0x00000080;
      }
      result.fileId_ = fileId_;
      if (((from_bitField0_ & 0x00000100) != 0)) {
        to_bitField0_ |= 0x00000100;
      }
      result.msgSource_ = msgSource_;
      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.CDNUploadMsgImgPrepareResponse) {
        return mergeFrom((wechat.protobuf.CDNUploadMsgImgPrepareResponse)other);
      } else {
        super.mergeFrom(other);
        return this;
      }
    }

    public Builder mergeFrom(wechat.protobuf.CDNUploadMsgImgPrepareResponse other) {
      if (other == wechat.protobuf.CDNUploadMsgImgPrepareResponse.getDefaultInstance()) return this;
      if (other.hasBaseResponse()) {
        mergeBaseResponse(other.getBaseResponse());
      }
      if (other.hasClientImgId()) {
        bitField0_ |= 0x00000002;
        clientImgId_ = other.clientImgId_;
        onChanged();
      }
      if (other.hasFromUserName()) {
        bitField0_ |= 0x00000004;
        fromUserName_ = other.fromUserName_;
        onChanged();
      }
      if (other.hasToUserName()) {
        bitField0_ |= 0x00000008;
        toUserName_ = other.toUserName_;
        onChanged();
      }
      if (other.hasCreateTime()) {
        setCreateTime(other.getCreateTime());
      }
      if (other.hasNewMsgId()) {
        setNewMsgId(other.getNewMsgId());
      }
      if (other.hasAeskey()) {
        bitField0_ |= 0x00000040;
        aeskey_ = other.aeskey_;
        onChanged();
      }
      if (other.hasFileId()) {
        bitField0_ |= 0x00000080;
        fileId_ = other.fileId_;
        onChanged();
      }
      if (other.hasMsgSource()) {
        bitField0_ |= 0x00000100;
        msgSource_ = other.msgSource_;
        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.CDNUploadMsgImgPrepareResponse parsedMessage = null;
      try {
        parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
      } catch (com.google.protobuf.InvalidProtocolBufferException e) {
        parsedMessage = (wechat.protobuf.CDNUploadMsgImgPrepareResponse) 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 clientImgId_ = "";
    /**
     * optional string clientImgId = 3;
     * @return Whether the clientImgId field is set.
     */
    public boolean hasClientImgId() {
      return ((bitField0_ & 0x00000002) != 0);
    }
    /**
     * optional string clientImgId = 3;
     * @return The clientImgId.
     */
    public java.lang.String getClientImgId() {
      java.lang.Object ref = clientImgId_;
      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()) {
          clientImgId_ = s;
        }
        return s;
      } else {
        return (java.lang.String) ref;
      }
    }
    /**
     * optional string clientImgId = 3;
     * @return The bytes for clientImgId.
     */
    public com.google.protobuf.ByteString
        getClientImgIdBytes() {
      java.lang.Object ref = clientImgId_;
      if (ref instanceof String) {
        com.google.protobuf.ByteString b = 
            com.google.protobuf.ByteString.copyFromUtf8(
                (java.lang.String) ref);
        clientImgId_ = b;
        return b;
      } else {
        return (com.google.protobuf.ByteString) ref;
      }
    }
    /**
     * optional string clientImgId = 3;
     * @param value The clientImgId to set.
     * @return This builder for chaining.
     */
    public Builder setClientImgId(
        java.lang.String value) {
      if (value == null) {
    throw new NullPointerException();
  }
  bitField0_ |= 0x00000002;
      clientImgId_ = value;
      onChanged();
      return this;
    }
    /**
     * optional string clientImgId = 3;
     * @return This builder for chaining.
     */
    public Builder clearClientImgId() {
      bitField0_ = (bitField0_ & ~0x00000002);
      clientImgId_ = getDefaultInstance().getClientImgId();
      onChanged();
      return this;
    }
    /**
     * optional string clientImgId = 3;
     * @param value The bytes for clientImgId to set.
     * @return This builder for chaining.
     */
    public Builder setClientImgIdBytes(
        com.google.protobuf.ByteString value) {
      if (value == null) {
    throw new NullPointerException();
  }
  bitField0_ |= 0x00000002;
      clientImgId_ = value;
      onChanged();
      return this;
    }

    private java.lang.Object fromUserName_ = "";
    /**
     * optional string fromUserName = 4;
     * @return Whether the fromUserName field is set.
     */
    public boolean hasFromUserName() {
      return ((bitField0_ & 0x00000004) != 0);
    }
    /**
     * optional string fromUserName = 4;
     * @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 = 4;
     * @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 = 4;
     * @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 = 4;
     * @return This builder for chaining.
     */
    public Builder clearFromUserName() {
      bitField0_ = (bitField0_ & ~0x00000004);
      fromUserName_ = getDefaultInstance().getFromUserName();
      onChanged();
      return this;
    }
    /**
     * optional string fromUserName = 4;
     * @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 = 5;
     * @return Whether the toUserName field is set.
     */
    public boolean hasToUserName() {
      return ((bitField0_ & 0x00000008) != 0);
    }
    /**
     * optional string toUserName = 5;
     * @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 = 5;
     * @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 = 5;
     * @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 = 5;
     * @return This builder for chaining.
     */
    public Builder clearToUserName() {
      bitField0_ = (bitField0_ & ~0x00000008);
      toUserName_ = getDefaultInstance().getToUserName();
      onChanged();
      return this;
    }
    /**
     * optional string toUserName = 5;
     * @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 createTime_ ;
    /**
     * optional uint32 createTime = 9;
     * @return Whether the createTime field is set.
     */
    @java.lang.Override
    public boolean hasCreateTime() {
      return ((bitField0_ & 0x00000010) != 0);
    }
    /**
     * optional uint32 createTime = 9;
     * @return The createTime.
     */
    @java.lang.Override
    public int getCreateTime() {
      return createTime_;
    }
    /**
     * optional uint32 createTime = 9;
     * @param value The createTime to set.
     * @return This builder for chaining.
     */
    public Builder setCreateTime(int value) {
      bitField0_ |= 0x00000010;
      createTime_ = value;
      onChanged();
      return this;
    }
    /**
     * optional uint32 createTime = 9;
     * @return This builder for chaining.
     */
    public Builder clearCreateTime() {
      bitField0_ = (bitField0_ & ~0x00000010);
      createTime_ = 0;
      onChanged();
      return this;
    }

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

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

    private java.lang.Object fileId_ = "";
    /**
     * optional string fileId = 12;
     * @return Whether the fileId field is set.
     */
    public boolean hasFileId() {
      return ((bitField0_ & 0x00000080) != 0);
    }
    /**
     * optional string fileId = 12;
     * @return The fileId.
     */
    public java.lang.String getFileId() {
      java.lang.Object ref = fileId_;
      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()) {
          fileId_ = s;
        }
        return s;
      } else {
        return (java.lang.String) ref;
      }
    }
    /**
     * optional string fileId = 12;
     * @return The bytes for fileId.
     */
    public com.google.protobuf.ByteString
        getFileIdBytes() {
      java.lang.Object ref = fileId_;
      if (ref instanceof String) {
        com.google.protobuf.ByteString b = 
            com.google.protobuf.ByteString.copyFromUtf8(
                (java.lang.String) ref);
        fileId_ = b;
        return b;
      } else {
        return (com.google.protobuf.ByteString) ref;
      }
    }
    /**
     * optional string fileId = 12;
     * @param value The fileId to set.
     * @return This builder for chaining.
     */
    public Builder setFileId(
        java.lang.String value) {
      if (value == null) {
    throw new NullPointerException();
  }
  bitField0_ |= 0x00000080;
      fileId_ = value;
      onChanged();
      return this;
    }
    /**
     * optional string fileId = 12;
     * @return This builder for chaining.
     */
    public Builder clearFileId() {
      bitField0_ = (bitField0_ & ~0x00000080);
      fileId_ = getDefaultInstance().getFileId();
      onChanged();
      return this;
    }
    /**
     * optional string fileId = 12;
     * @param value The bytes for fileId to set.
     * @return This builder for chaining.
     */
    public Builder setFileIdBytes(
        com.google.protobuf.ByteString value) {
      if (value == null) {
    throw new NullPointerException();
  }
  bitField0_ |= 0x00000080;
      fileId_ = value;
      onChanged();
      return this;
    }

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

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

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

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

}





© 2015 - 2025 Weber Informatics LLC | Privacy Policy