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

package com.ywt.gapi.drug;

/**
 * Protobuf type {@code com.ywt.gapi.drug.SavePrescriptionPaymentRequest}
 */
public  final class SavePrescriptionPaymentRequest extends
    com.google.protobuf.GeneratedMessageV3 implements
    // @@protoc_insertion_point(message_implements:com.ywt.gapi.drug.SavePrescriptionPaymentRequest)
    SavePrescriptionPaymentRequestOrBuilder {
  // Use SavePrescriptionPaymentRequest.newBuilder() to construct.
  private SavePrescriptionPaymentRequest(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {
    super(builder);
  }
  private SavePrescriptionPaymentRequest() {
    paymentNo_ = "";
    preBizNo_ = "";
    userId_ = 0;
    openId_ = "";
    userKeyId_ = "";
    userType_ = 0;
    payType_ = 0;
    paymentAmount_ = 0;
    wxPrepayId_ = "";
  }

  @java.lang.Override
  public final com.google.protobuf.UnknownFieldSet
  getUnknownFields() {
    return com.google.protobuf.UnknownFieldSet.getDefaultInstance();
  }
  private SavePrescriptionPaymentRequest(
      com.google.protobuf.CodedInputStream input,
      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
      throws com.google.protobuf.InvalidProtocolBufferException {
    this();
    int mutable_bitField0_ = 0;
    try {
      boolean done = false;
      while (!done) {
        int tag = input.readTag();
        switch (tag) {
          case 0:
            done = true;
            break;
          default: {
            if (!input.skipField(tag)) {
              done = true;
            }
            break;
          }
          case 10: {
            java.lang.String s = input.readStringRequireUtf8();

            paymentNo_ = s;
            break;
          }
          case 18: {
            java.lang.String s = input.readStringRequireUtf8();

            preBizNo_ = s;
            break;
          }
          case 24: {

            userId_ = input.readInt32();
            break;
          }
          case 34: {
            java.lang.String s = input.readStringRequireUtf8();

            openId_ = s;
            break;
          }
          case 42: {
            java.lang.String s = input.readStringRequireUtf8();

            userKeyId_ = s;
            break;
          }
          case 48: {

            userType_ = input.readInt32();
            break;
          }
          case 56: {

            payType_ = input.readInt32();
            break;
          }
          case 64: {

            paymentAmount_ = input.readInt32();
            break;
          }
          case 74: {
            java.lang.String s = input.readStringRequireUtf8();

            wxPrepayId_ = s;
            break;
          }
        }
      }
    } catch (com.google.protobuf.InvalidProtocolBufferException e) {
      throw e.setUnfinishedMessage(this);
    } catch (java.io.IOException e) {
      throw new com.google.protobuf.InvalidProtocolBufferException(
          e).setUnfinishedMessage(this);
    } finally {
      makeExtensionsImmutable();
    }
  }
  public static final com.google.protobuf.Descriptors.Descriptor
      getDescriptor() {
    return com.ywt.gapi.drug.DrugOuterClass.internal_static_com_ywt_gapi_drug_SavePrescriptionPaymentRequest_descriptor;
  }

  protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
      internalGetFieldAccessorTable() {
    return com.ywt.gapi.drug.DrugOuterClass.internal_static_com_ywt_gapi_drug_SavePrescriptionPaymentRequest_fieldAccessorTable
        .ensureFieldAccessorsInitialized(
            com.ywt.gapi.drug.SavePrescriptionPaymentRequest.class, com.ywt.gapi.drug.SavePrescriptionPaymentRequest.Builder.class);
  }

  public static final int PAYMENTNO_FIELD_NUMBER = 1;
  private volatile java.lang.Object paymentNo_;
  /**
   * <code>string paymentNo = 1;</code>
   */
  public java.lang.String getPaymentNo() {
    java.lang.Object ref = paymentNo_;
    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();
      paymentNo_ = s;
      return s;
    }
  }
  /**
   * <code>string paymentNo = 1;</code>
   */
  public com.google.protobuf.ByteString
      getPaymentNoBytes() {
    java.lang.Object ref = paymentNo_;
    if (ref instanceof java.lang.String) {
      com.google.protobuf.ByteString b = 
          com.google.protobuf.ByteString.copyFromUtf8(
              (java.lang.String) ref);
      paymentNo_ = b;
      return b;
    } else {
      return (com.google.protobuf.ByteString) ref;
    }
  }

  public static final int PREBIZNO_FIELD_NUMBER = 2;
  private volatile java.lang.Object preBizNo_;
  /**
   * <code>string preBizNo = 2;</code>
   */
  public java.lang.String getPreBizNo() {
    java.lang.Object ref = preBizNo_;
    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();
      preBizNo_ = s;
      return s;
    }
  }
  /**
   * <code>string preBizNo = 2;</code>
   */
  public com.google.protobuf.ByteString
      getPreBizNoBytes() {
    java.lang.Object ref = preBizNo_;
    if (ref instanceof java.lang.String) {
      com.google.protobuf.ByteString b = 
          com.google.protobuf.ByteString.copyFromUtf8(
              (java.lang.String) ref);
      preBizNo_ = b;
      return b;
    } else {
      return (com.google.protobuf.ByteString) ref;
    }
  }

  public static final int USERID_FIELD_NUMBER = 3;
  private int userId_;
  /**
   * <code>int32 userId = 3;</code>
   */
  public int getUserId() {
    return userId_;
  }

  public static final int OPENID_FIELD_NUMBER = 4;
  private volatile java.lang.Object openId_;
  /**
   * <code>string openId = 4;</code>
   */
  public java.lang.String getOpenId() {
    java.lang.Object ref = openId_;
    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();
      openId_ = s;
      return s;
    }
  }
  /**
   * <code>string openId = 4;</code>
   */
  public com.google.protobuf.ByteString
      getOpenIdBytes() {
    java.lang.Object ref = openId_;
    if (ref instanceof java.lang.String) {
      com.google.protobuf.ByteString b = 
          com.google.protobuf.ByteString.copyFromUtf8(
              (java.lang.String) ref);
      openId_ = b;
      return b;
    } else {
      return (com.google.protobuf.ByteString) ref;
    }
  }

  public static final int USERKEYID_FIELD_NUMBER = 5;
  private volatile java.lang.Object userKeyId_;
  /**
   * <code>string userKeyId = 5;</code>
   */
  public java.lang.String getUserKeyId() {
    java.lang.Object ref = userKeyId_;
    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();
      userKeyId_ = s;
      return s;
    }
  }
  /**
   * <code>string userKeyId = 5;</code>
   */
  public com.google.protobuf.ByteString
      getUserKeyIdBytes() {
    java.lang.Object ref = userKeyId_;
    if (ref instanceof java.lang.String) {
      com.google.protobuf.ByteString b = 
          com.google.protobuf.ByteString.copyFromUtf8(
              (java.lang.String) ref);
      userKeyId_ = b;
      return b;
    } else {
      return (com.google.protobuf.ByteString) ref;
    }
  }

  public static final int USERTYPE_FIELD_NUMBER = 6;
  private int userType_;
  /**
   * <code>int32 userType = 6;</code>
   */
  public int getUserType() {
    return userType_;
  }

  public static final int PAYTYPE_FIELD_NUMBER = 7;
  private int payType_;
  /**
   * <code>int32 payType = 7;</code>
   */
  public int getPayType() {
    return payType_;
  }

  public static final int PAYMENTAMOUNT_FIELD_NUMBER = 8;
  private int paymentAmount_;
  /**
   * <code>int32 paymentAmount = 8;</code>
   */
  public int getPaymentAmount() {
    return paymentAmount_;
  }

  public static final int WXPREPAYID_FIELD_NUMBER = 9;
  private volatile java.lang.Object wxPrepayId_;
  /**
   * <code>string wxPrepayId = 9;</code>
   */
  public java.lang.String getWxPrepayId() {
    java.lang.Object ref = wxPrepayId_;
    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();
      wxPrepayId_ = s;
      return s;
    }
  }
  /**
   * <code>string wxPrepayId = 9;</code>
   */
  public com.google.protobuf.ByteString
      getWxPrepayIdBytes() {
    java.lang.Object ref = wxPrepayId_;
    if (ref instanceof java.lang.String) {
      com.google.protobuf.ByteString b = 
          com.google.protobuf.ByteString.copyFromUtf8(
              (java.lang.String) ref);
      wxPrepayId_ = b;
      return b;
    } else {
      return (com.google.protobuf.ByteString) ref;
    }
  }

  private byte memoizedIsInitialized = -1;
  public final boolean isInitialized() {
    byte isInitialized = memoizedIsInitialized;
    if (isInitialized == 1) return true;
    if (isInitialized == 0) return false;

    memoizedIsInitialized = 1;
    return true;
  }

  public void writeTo(com.google.protobuf.CodedOutputStream output)
                      throws java.io.IOException {
    if (!getPaymentNoBytes().isEmpty()) {
      com.google.protobuf.GeneratedMessageV3.writeString(output, 1, paymentNo_);
    }
    if (!getPreBizNoBytes().isEmpty()) {
      com.google.protobuf.GeneratedMessageV3.writeString(output, 2, preBizNo_);
    }
    if (userId_ != 0) {
      output.writeInt32(3, userId_);
    }
    if (!getOpenIdBytes().isEmpty()) {
      com.google.protobuf.GeneratedMessageV3.writeString(output, 4, openId_);
    }
    if (!getUserKeyIdBytes().isEmpty()) {
      com.google.protobuf.GeneratedMessageV3.writeString(output, 5, userKeyId_);
    }
    if (userType_ != 0) {
      output.writeInt32(6, userType_);
    }
    if (payType_ != 0) {
      output.writeInt32(7, payType_);
    }
    if (paymentAmount_ != 0) {
      output.writeInt32(8, paymentAmount_);
    }
    if (!getWxPrepayIdBytes().isEmpty()) {
      com.google.protobuf.GeneratedMessageV3.writeString(output, 9, wxPrepayId_);
    }
  }

  public int getSerializedSize() {
    int size = memoizedSize;
    if (size != -1) return size;

    size = 0;
    if (!getPaymentNoBytes().isEmpty()) {
      size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, paymentNo_);
    }
    if (!getPreBizNoBytes().isEmpty()) {
      size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, preBizNo_);
    }
    if (userId_ != 0) {
      size += com.google.protobuf.CodedOutputStream
        .computeInt32Size(3, userId_);
    }
    if (!getOpenIdBytes().isEmpty()) {
      size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, openId_);
    }
    if (!getUserKeyIdBytes().isEmpty()) {
      size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, userKeyId_);
    }
    if (userType_ != 0) {
      size += com.google.protobuf.CodedOutputStream
        .computeInt32Size(6, userType_);
    }
    if (payType_ != 0) {
      size += com.google.protobuf.CodedOutputStream
        .computeInt32Size(7, payType_);
    }
    if (paymentAmount_ != 0) {
      size += com.google.protobuf.CodedOutputStream
        .computeInt32Size(8, paymentAmount_);
    }
    if (!getWxPrepayIdBytes().isEmpty()) {
      size += com.google.protobuf.GeneratedMessageV3.computeStringSize(9, wxPrepayId_);
    }
    memoizedSize = size;
    return size;
  }

  private static final long serialVersionUID = 0L;
  @java.lang.Override
  public boolean equals(final java.lang.Object obj) {
    if (obj == this) {
     return true;
    }
    if (!(obj instanceof com.ywt.gapi.drug.SavePrescriptionPaymentRequest)) {
      return super.equals(obj);
    }
    com.ywt.gapi.drug.SavePrescriptionPaymentRequest other = (com.ywt.gapi.drug.SavePrescriptionPaymentRequest) obj;

    boolean result = true;
    result = result && getPaymentNo()
        .equals(other.getPaymentNo());
    result = result && getPreBizNo()
        .equals(other.getPreBizNo());
    result = result && (getUserId()
        == other.getUserId());
    result = result && getOpenId()
        .equals(other.getOpenId());
    result = result && getUserKeyId()
        .equals(other.getUserKeyId());
    result = result && (getUserType()
        == other.getUserType());
    result = result && (getPayType()
        == other.getPayType());
    result = result && (getPaymentAmount()
        == other.getPaymentAmount());
    result = result && getWxPrepayId()
        .equals(other.getWxPrepayId());
    return result;
  }

  @java.lang.Override
  public int hashCode() {
    if (memoizedHashCode != 0) {
      return memoizedHashCode;
    }
    int hash = 41;
    hash = (19 * hash) + getDescriptor().hashCode();
    hash = (37 * hash) + PAYMENTNO_FIELD_NUMBER;
    hash = (53 * hash) + getPaymentNo().hashCode();
    hash = (37 * hash) + PREBIZNO_FIELD_NUMBER;
    hash = (53 * hash) + getPreBizNo().hashCode();
    hash = (37 * hash) + USERID_FIELD_NUMBER;
    hash = (53 * hash) + getUserId();
    hash = (37 * hash) + OPENID_FIELD_NUMBER;
    hash = (53 * hash) + getOpenId().hashCode();
    hash = (37 * hash) + USERKEYID_FIELD_NUMBER;
    hash = (53 * hash) + getUserKeyId().hashCode();
    hash = (37 * hash) + USERTYPE_FIELD_NUMBER;
    hash = (53 * hash) + getUserType();
    hash = (37 * hash) + PAYTYPE_FIELD_NUMBER;
    hash = (53 * hash) + getPayType();
    hash = (37 * hash) + PAYMENTAMOUNT_FIELD_NUMBER;
    hash = (53 * hash) + getPaymentAmount();
    hash = (37 * hash) + WXPREPAYID_FIELD_NUMBER;
    hash = (53 * hash) + getWxPrepayId().hashCode();
    hash = (29 * hash) + unknownFields.hashCode();
    memoizedHashCode = hash;
    return hash;
  }

  public static com.ywt.gapi.drug.SavePrescriptionPaymentRequest parseFrom(
      java.nio.ByteBuffer data)
      throws com.google.protobuf.InvalidProtocolBufferException {
    return PARSER.parseFrom(data);
  }
  public static com.ywt.gapi.drug.SavePrescriptionPaymentRequest parseFrom(
      java.nio.ByteBuffer data,
      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
      throws com.google.protobuf.InvalidProtocolBufferException {
    return PARSER.parseFrom(data, extensionRegistry);
  }
  public static com.ywt.gapi.drug.SavePrescriptionPaymentRequest parseFrom(
      com.google.protobuf.ByteString data)
      throws com.google.protobuf.InvalidProtocolBufferException {
    return PARSER.parseFrom(data);
  }
  public static com.ywt.gapi.drug.SavePrescriptionPaymentRequest parseFrom(
      com.google.protobuf.ByteString data,
      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
      throws com.google.protobuf.InvalidProtocolBufferException {
    return PARSER.parseFrom(data, extensionRegistry);
  }
  public static com.ywt.gapi.drug.SavePrescriptionPaymentRequest parseFrom(byte[] data)
      throws com.google.protobuf.InvalidProtocolBufferException {
    return PARSER.parseFrom(data);
  }
  public static com.ywt.gapi.drug.SavePrescriptionPaymentRequest parseFrom(
      byte[] data,
      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
      throws com.google.protobuf.InvalidProtocolBufferException {
    return PARSER.parseFrom(data, extensionRegistry);
  }
  public static com.ywt.gapi.drug.SavePrescriptionPaymentRequest parseFrom(java.io.InputStream input)
      throws java.io.IOException {
    return com.google.protobuf.GeneratedMessageV3
        .parseWithIOException(PARSER, input);
  }
  public static com.ywt.gapi.drug.SavePrescriptionPaymentRequest 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 com.ywt.gapi.drug.SavePrescriptionPaymentRequest parseDelimitedFrom(java.io.InputStream input)
      throws java.io.IOException {
    return com.google.protobuf.GeneratedMessageV3
        .parseDelimitedWithIOException(PARSER, input);
  }
  public static com.ywt.gapi.drug.SavePrescriptionPaymentRequest 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 com.ywt.gapi.drug.SavePrescriptionPaymentRequest parseFrom(
      com.google.protobuf.CodedInputStream input)
      throws java.io.IOException {
    return com.google.protobuf.GeneratedMessageV3
        .parseWithIOException(PARSER, input);
  }
  public static com.ywt.gapi.drug.SavePrescriptionPaymentRequest parseFrom(
      com.google.protobuf.CodedInputStream input,
      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
      throws java.io.IOException {
    return com.google.protobuf.GeneratedMessageV3
        .parseWithIOException(PARSER, input, extensionRegistry);
  }

  public Builder newBuilderForType() { return newBuilder(); }
  public static Builder newBuilder() {
    return DEFAULT_INSTANCE.toBuilder();
  }
  public static Builder newBuilder(com.ywt.gapi.drug.SavePrescriptionPaymentRequest prototype) {
    return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
  }
  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 com.ywt.gapi.drug.SavePrescriptionPaymentRequest}
   */
  public static final class Builder extends
      com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements
      // @@protoc_insertion_point(builder_implements:com.ywt.gapi.drug.SavePrescriptionPaymentRequest)
      com.ywt.gapi.drug.SavePrescriptionPaymentRequestOrBuilder {
    public static final com.google.protobuf.Descriptors.Descriptor
        getDescriptor() {
      return com.ywt.gapi.drug.DrugOuterClass.internal_static_com_ywt_gapi_drug_SavePrescriptionPaymentRequest_descriptor;
    }

    protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
        internalGetFieldAccessorTable() {
      return com.ywt.gapi.drug.DrugOuterClass.internal_static_com_ywt_gapi_drug_SavePrescriptionPaymentRequest_fieldAccessorTable
          .ensureFieldAccessorsInitialized(
              com.ywt.gapi.drug.SavePrescriptionPaymentRequest.class, com.ywt.gapi.drug.SavePrescriptionPaymentRequest.Builder.class);
    }

    // Construct using com.ywt.gapi.drug.SavePrescriptionPaymentRequest.newBuilder()
    private Builder() {
      maybeForceBuilderInitialization();
    }

    private Builder(
        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
      super(parent);
      maybeForceBuilderInitialization();
    }
    private void maybeForceBuilderInitialization() {
      if (com.google.protobuf.GeneratedMessageV3
              .alwaysUseFieldBuilders) {
      }
    }
    public Builder clear() {
      super.clear();
      paymentNo_ = "";

      preBizNo_ = "";

      userId_ = 0;

      openId_ = "";

      userKeyId_ = "";

      userType_ = 0;

      payType_ = 0;

      paymentAmount_ = 0;

      wxPrepayId_ = "";

      return this;
    }

    public com.google.protobuf.Descriptors.Descriptor
        getDescriptorForType() {
      return com.ywt.gapi.drug.DrugOuterClass.internal_static_com_ywt_gapi_drug_SavePrescriptionPaymentRequest_descriptor;
    }

    public com.ywt.gapi.drug.SavePrescriptionPaymentRequest getDefaultInstanceForType() {
      return com.ywt.gapi.drug.SavePrescriptionPaymentRequest.getDefaultInstance();
    }

    public com.ywt.gapi.drug.SavePrescriptionPaymentRequest build() {
      com.ywt.gapi.drug.SavePrescriptionPaymentRequest result = buildPartial();
      if (!result.isInitialized()) {
        throw newUninitializedMessageException(result);
      }
      return result;
    }

    public com.ywt.gapi.drug.SavePrescriptionPaymentRequest buildPartial() {
      com.ywt.gapi.drug.SavePrescriptionPaymentRequest result = new com.ywt.gapi.drug.SavePrescriptionPaymentRequest(this);
      result.paymentNo_ = paymentNo_;
      result.preBizNo_ = preBizNo_;
      result.userId_ = userId_;
      result.openId_ = openId_;
      result.userKeyId_ = userKeyId_;
      result.userType_ = userType_;
      result.payType_ = payType_;
      result.paymentAmount_ = paymentAmount_;
      result.wxPrepayId_ = wxPrepayId_;
      onBuilt();
      return result;
    }

    public Builder clone() {
      return (Builder) super.clone();
    }
    public Builder setField(
        com.google.protobuf.Descriptors.FieldDescriptor field,
        Object value) {
      return (Builder) super.setField(field, value);
    }
    public Builder clearField(
        com.google.protobuf.Descriptors.FieldDescriptor field) {
      return (Builder) super.clearField(field);
    }
    public Builder clearOneof(
        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
      return (Builder) super.clearOneof(oneof);
    }
    public Builder setRepeatedField(
        com.google.protobuf.Descriptors.FieldDescriptor field,
        int index, Object value) {
      return (Builder) super.setRepeatedField(field, index, value);
    }
    public Builder addRepeatedField(
        com.google.protobuf.Descriptors.FieldDescriptor field,
        Object value) {
      return (Builder) super.addRepeatedField(field, value);
    }
    public Builder mergeFrom(com.google.protobuf.Message other) {
      if (other instanceof com.ywt.gapi.drug.SavePrescriptionPaymentRequest) {
        return mergeFrom((com.ywt.gapi.drug.SavePrescriptionPaymentRequest)other);
      } else {
        super.mergeFrom(other);
        return this;
      }
    }

    public Builder mergeFrom(com.ywt.gapi.drug.SavePrescriptionPaymentRequest other) {
      if (other == com.ywt.gapi.drug.SavePrescriptionPaymentRequest.getDefaultInstance()) return this;
      if (!other.getPaymentNo().isEmpty()) {
        paymentNo_ = other.paymentNo_;
        onChanged();
      }
      if (!other.getPreBizNo().isEmpty()) {
        preBizNo_ = other.preBizNo_;
        onChanged();
      }
      if (other.getUserId() != 0) {
        setUserId(other.getUserId());
      }
      if (!other.getOpenId().isEmpty()) {
        openId_ = other.openId_;
        onChanged();
      }
      if (!other.getUserKeyId().isEmpty()) {
        userKeyId_ = other.userKeyId_;
        onChanged();
      }
      if (other.getUserType() != 0) {
        setUserType(other.getUserType());
      }
      if (other.getPayType() != 0) {
        setPayType(other.getPayType());
      }
      if (other.getPaymentAmount() != 0) {
        setPaymentAmount(other.getPaymentAmount());
      }
      if (!other.getWxPrepayId().isEmpty()) {
        wxPrepayId_ = other.wxPrepayId_;
        onChanged();
      }
      onChanged();
      return this;
    }

    public final boolean isInitialized() {
      return true;
    }

    public Builder mergeFrom(
        com.google.protobuf.CodedInputStream input,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws java.io.IOException {
      com.ywt.gapi.drug.SavePrescriptionPaymentRequest parsedMessage = null;
      try {
        parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
      } catch (com.google.protobuf.InvalidProtocolBufferException e) {
        parsedMessage = (com.ywt.gapi.drug.SavePrescriptionPaymentRequest) e.getUnfinishedMessage();
        throw e.unwrapIOException();
      } finally {
        if (parsedMessage != null) {
          mergeFrom(parsedMessage);
        }
      }
      return this;
    }

    private java.lang.Object paymentNo_ = "";
    /**
     * <code>string paymentNo = 1;</code>
     */
    public java.lang.String getPaymentNo() {
      java.lang.Object ref = paymentNo_;
      if (!(ref instanceof java.lang.String)) {
        com.google.protobuf.ByteString bs =
            (com.google.protobuf.ByteString) ref;
        java.lang.String s = bs.toStringUtf8();
        paymentNo_ = s;
        return s;
      } else {
        return (java.lang.String) ref;
      }
    }
    /**
     * <code>string paymentNo = 1;</code>
     */
    public com.google.protobuf.ByteString
        getPaymentNoBytes() {
      java.lang.Object ref = paymentNo_;
      if (ref instanceof String) {
        com.google.protobuf.ByteString b = 
            com.google.protobuf.ByteString.copyFromUtf8(
                (java.lang.String) ref);
        paymentNo_ = b;
        return b;
      } else {
        return (com.google.protobuf.ByteString) ref;
      }
    }
    /**
     * <code>string paymentNo = 1;</code>
     */
    public Builder setPaymentNo(
        java.lang.String value) {
      if (value == null) {
    throw new NullPointerException();
  }
  
      paymentNo_ = value;
      onChanged();
      return this;
    }
    /**
     * <code>string paymentNo = 1;</code>
     */
    public Builder clearPaymentNo() {
      
      paymentNo_ = getDefaultInstance().getPaymentNo();
      onChanged();
      return this;
    }
    /**
     * <code>string paymentNo = 1;</code>
     */
    public Builder setPaymentNoBytes(
        com.google.protobuf.ByteString value) {
      if (value == null) {
    throw new NullPointerException();
  }
  checkByteStringIsUtf8(value);
      
      paymentNo_ = value;
      onChanged();
      return this;
    }

    private java.lang.Object preBizNo_ = "";
    /**
     * <code>string preBizNo = 2;</code>
     */
    public java.lang.String getPreBizNo() {
      java.lang.Object ref = preBizNo_;
      if (!(ref instanceof java.lang.String)) {
        com.google.protobuf.ByteString bs =
            (com.google.protobuf.ByteString) ref;
        java.lang.String s = bs.toStringUtf8();
        preBizNo_ = s;
        return s;
      } else {
        return (java.lang.String) ref;
      }
    }
    /**
     * <code>string preBizNo = 2;</code>
     */
    public com.google.protobuf.ByteString
        getPreBizNoBytes() {
      java.lang.Object ref = preBizNo_;
      if (ref instanceof String) {
        com.google.protobuf.ByteString b = 
            com.google.protobuf.ByteString.copyFromUtf8(
                (java.lang.String) ref);
        preBizNo_ = b;
        return b;
      } else {
        return (com.google.protobuf.ByteString) ref;
      }
    }
    /**
     * <code>string preBizNo = 2;</code>
     */
    public Builder setPreBizNo(
        java.lang.String value) {
      if (value == null) {
    throw new NullPointerException();
  }
  
      preBizNo_ = value;
      onChanged();
      return this;
    }
    /**
     * <code>string preBizNo = 2;</code>
     */
    public Builder clearPreBizNo() {
      
      preBizNo_ = getDefaultInstance().getPreBizNo();
      onChanged();
      return this;
    }
    /**
     * <code>string preBizNo = 2;</code>
     */
    public Builder setPreBizNoBytes(
        com.google.protobuf.ByteString value) {
      if (value == null) {
    throw new NullPointerException();
  }
  checkByteStringIsUtf8(value);
      
      preBizNo_ = value;
      onChanged();
      return this;
    }

    private int userId_ ;
    /**
     * <code>int32 userId = 3;</code>
     */
    public int getUserId() {
      return userId_;
    }
    /**
     * <code>int32 userId = 3;</code>
     */
    public Builder setUserId(int value) {
      
      userId_ = value;
      onChanged();
      return this;
    }
    /**
     * <code>int32 userId = 3;</code>
     */
    public Builder clearUserId() {
      
      userId_ = 0;
      onChanged();
      return this;
    }

    private java.lang.Object openId_ = "";
    /**
     * <code>string openId = 4;</code>
     */
    public java.lang.String getOpenId() {
      java.lang.Object ref = openId_;
      if (!(ref instanceof java.lang.String)) {
        com.google.protobuf.ByteString bs =
            (com.google.protobuf.ByteString) ref;
        java.lang.String s = bs.toStringUtf8();
        openId_ = s;
        return s;
      } else {
        return (java.lang.String) ref;
      }
    }
    /**
     * <code>string openId = 4;</code>
     */
    public com.google.protobuf.ByteString
        getOpenIdBytes() {
      java.lang.Object ref = openId_;
      if (ref instanceof String) {
        com.google.protobuf.ByteString b = 
            com.google.protobuf.ByteString.copyFromUtf8(
                (java.lang.String) ref);
        openId_ = b;
        return b;
      } else {
        return (com.google.protobuf.ByteString) ref;
      }
    }
    /**
     * <code>string openId = 4;</code>
     */
    public Builder setOpenId(
        java.lang.String value) {
      if (value == null) {
    throw new NullPointerException();
  }
  
      openId_ = value;
      onChanged();
      return this;
    }
    /**
     * <code>string openId = 4;</code>
     */
    public Builder clearOpenId() {
      
      openId_ = getDefaultInstance().getOpenId();
      onChanged();
      return this;
    }
    /**
     * <code>string openId = 4;</code>
     */
    public Builder setOpenIdBytes(
        com.google.protobuf.ByteString value) {
      if (value == null) {
    throw new NullPointerException();
  }
  checkByteStringIsUtf8(value);
      
      openId_ = value;
      onChanged();
      return this;
    }

    private java.lang.Object userKeyId_ = "";
    /**
     * <code>string userKeyId = 5;</code>
     */
    public java.lang.String getUserKeyId() {
      java.lang.Object ref = userKeyId_;
      if (!(ref instanceof java.lang.String)) {
        com.google.protobuf.ByteString bs =
            (com.google.protobuf.ByteString) ref;
        java.lang.String s = bs.toStringUtf8();
        userKeyId_ = s;
        return s;
      } else {
        return (java.lang.String) ref;
      }
    }
    /**
     * <code>string userKeyId = 5;</code>
     */
    public com.google.protobuf.ByteString
        getUserKeyIdBytes() {
      java.lang.Object ref = userKeyId_;
      if (ref instanceof String) {
        com.google.protobuf.ByteString b = 
            com.google.protobuf.ByteString.copyFromUtf8(
                (java.lang.String) ref);
        userKeyId_ = b;
        return b;
      } else {
        return (com.google.protobuf.ByteString) ref;
      }
    }
    /**
     * <code>string userKeyId = 5;</code>
     */
    public Builder setUserKeyId(
        java.lang.String value) {
      if (value == null) {
    throw new NullPointerException();
  }
  
      userKeyId_ = value;
      onChanged();
      return this;
    }
    /**
     * <code>string userKeyId = 5;</code>
     */
    public Builder clearUserKeyId() {
      
      userKeyId_ = getDefaultInstance().getUserKeyId();
      onChanged();
      return this;
    }
    /**
     * <code>string userKeyId = 5;</code>
     */
    public Builder setUserKeyIdBytes(
        com.google.protobuf.ByteString value) {
      if (value == null) {
    throw new NullPointerException();
  }
  checkByteStringIsUtf8(value);
      
      userKeyId_ = value;
      onChanged();
      return this;
    }

    private int userType_ ;
    /**
     * <code>int32 userType = 6;</code>
     */
    public int getUserType() {
      return userType_;
    }
    /**
     * <code>int32 userType = 6;</code>
     */
    public Builder setUserType(int value) {
      
      userType_ = value;
      onChanged();
      return this;
    }
    /**
     * <code>int32 userType = 6;</code>
     */
    public Builder clearUserType() {
      
      userType_ = 0;
      onChanged();
      return this;
    }

    private int payType_ ;
    /**
     * <code>int32 payType = 7;</code>
     */
    public int getPayType() {
      return payType_;
    }
    /**
     * <code>int32 payType = 7;</code>
     */
    public Builder setPayType(int value) {
      
      payType_ = value;
      onChanged();
      return this;
    }
    /**
     * <code>int32 payType = 7;</code>
     */
    public Builder clearPayType() {
      
      payType_ = 0;
      onChanged();
      return this;
    }

    private int paymentAmount_ ;
    /**
     * <code>int32 paymentAmount = 8;</code>
     */
    public int getPaymentAmount() {
      return paymentAmount_;
    }
    /**
     * <code>int32 paymentAmount = 8;</code>
     */
    public Builder setPaymentAmount(int value) {
      
      paymentAmount_ = value;
      onChanged();
      return this;
    }
    /**
     * <code>int32 paymentAmount = 8;</code>
     */
    public Builder clearPaymentAmount() {
      
      paymentAmount_ = 0;
      onChanged();
      return this;
    }

    private java.lang.Object wxPrepayId_ = "";
    /**
     * <code>string wxPrepayId = 9;</code>
     */
    public java.lang.String getWxPrepayId() {
      java.lang.Object ref = wxPrepayId_;
      if (!(ref instanceof java.lang.String)) {
        com.google.protobuf.ByteString bs =
            (com.google.protobuf.ByteString) ref;
        java.lang.String s = bs.toStringUtf8();
        wxPrepayId_ = s;
        return s;
      } else {
        return (java.lang.String) ref;
      }
    }
    /**
     * <code>string wxPrepayId = 9;</code>
     */
    public com.google.protobuf.ByteString
        getWxPrepayIdBytes() {
      java.lang.Object ref = wxPrepayId_;
      if (ref instanceof String) {
        com.google.protobuf.ByteString b = 
            com.google.protobuf.ByteString.copyFromUtf8(
                (java.lang.String) ref);
        wxPrepayId_ = b;
        return b;
      } else {
        return (com.google.protobuf.ByteString) ref;
      }
    }
    /**
     * <code>string wxPrepayId = 9;</code>
     */
    public Builder setWxPrepayId(
        java.lang.String value) {
      if (value == null) {
    throw new NullPointerException();
  }
  
      wxPrepayId_ = value;
      onChanged();
      return this;
    }
    /**
     * <code>string wxPrepayId = 9;</code>
     */
    public Builder clearWxPrepayId() {
      
      wxPrepayId_ = getDefaultInstance().getWxPrepayId();
      onChanged();
      return this;
    }
    /**
     * <code>string wxPrepayId = 9;</code>
     */
    public Builder setWxPrepayIdBytes(
        com.google.protobuf.ByteString value) {
      if (value == null) {
    throw new NullPointerException();
  }
  checkByteStringIsUtf8(value);
      
      wxPrepayId_ = value;
      onChanged();
      return this;
    }
    public final Builder setUnknownFields(
        final com.google.protobuf.UnknownFieldSet unknownFields) {
      return this;
    }

    public final Builder mergeUnknownFields(
        final com.google.protobuf.UnknownFieldSet unknownFields) {
      return this;
    }


    // @@protoc_insertion_point(builder_scope:com.ywt.gapi.drug.SavePrescriptionPaymentRequest)
  }

  // @@protoc_insertion_point(class_scope:com.ywt.gapi.drug.SavePrescriptionPaymentRequest)
  private static final com.ywt.gapi.drug.SavePrescriptionPaymentRequest DEFAULT_INSTANCE;
  static {
    DEFAULT_INSTANCE = new com.ywt.gapi.drug.SavePrescriptionPaymentRequest();
  }

  public static com.ywt.gapi.drug.SavePrescriptionPaymentRequest getDefaultInstance() {
    return DEFAULT_INSTANCE;
  }

  private static final com.google.protobuf.Parser<SavePrescriptionPaymentRequest>
      PARSER = new com.google.protobuf.AbstractParser<SavePrescriptionPaymentRequest>() {
    public SavePrescriptionPaymentRequest parsePartialFrom(
        com.google.protobuf.CodedInputStream input,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws com.google.protobuf.InvalidProtocolBufferException {
        return new SavePrescriptionPaymentRequest(input, extensionRegistry);
    }
  };

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

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

  public com.ywt.gapi.drug.SavePrescriptionPaymentRequest getDefaultInstanceForType() {
    return DEFAULT_INSTANCE;
  }

}

