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

package com.ywt.gapi.third.taihe;

/**
 * <pre>
 *查询门诊缴费记录明细请求
 * </pre>
 *
 * Protobuf type {@code com.ywt.gapi.third.taihe.GetPaymentDetailRequest}
 */
public final class GetPaymentDetailRequest extends
    com.google.protobuf.GeneratedMessageV3 implements
    // @@protoc_insertion_point(message_implements:com.ywt.gapi.third.taihe.GetPaymentDetailRequest)
    GetPaymentDetailRequestOrBuilder {
private static final long serialVersionUID = 0L;
  // Use GetPaymentDetailRequest.newBuilder() to construct.
  private GetPaymentDetailRequest(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {
    super(builder);
  }
  private GetPaymentDetailRequest() {
    patCardNo_ = "";
    hisOrdNum_ = "";
    type_ = "";
    clinicCode_ = "";
    invoiceNo_ = "";
    hisPatientId_ = "";
  }

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

  @java.lang.Override
  public final com.google.protobuf.UnknownFieldSet
  getUnknownFields() {
    return this.unknownFields;
  }
  private GetPaymentDetailRequest(
      com.google.protobuf.CodedInputStream input,
      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
      throws com.google.protobuf.InvalidProtocolBufferException {
    this();
    if (extensionRegistry == null) {
      throw new java.lang.NullPointerException();
    }
    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: {
            java.lang.String s = input.readStringRequireUtf8();

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

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

            type_ = s;
            break;
          }
          case 32: {

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

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

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

            hisPatientId_ = s;
            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 com.ywt.gapi.third.taihe.TaiheProto.internal_static_com_ywt_gapi_third_taihe_GetPaymentDetailRequest_descriptor;
  }

  @java.lang.Override
  protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
      internalGetFieldAccessorTable() {
    return com.ywt.gapi.third.taihe.TaiheProto.internal_static_com_ywt_gapi_third_taihe_GetPaymentDetailRequest_fieldAccessorTable
        .ensureFieldAccessorsInitialized(
            com.ywt.gapi.third.taihe.GetPaymentDetailRequest.class, com.ywt.gapi.third.taihe.GetPaymentDetailRequest.Builder.class);
  }

  public static final int PATCARDNO_FIELD_NUMBER = 1;
  private volatile java.lang.Object patCardNo_;
  /**
   * <pre>
   *诊疗卡号
   * </pre>
   *
   * <code>string patCardNo = 1;</code>
   * @return The patCardNo.
   */
  @java.lang.Override
  public java.lang.String getPatCardNo() {
    java.lang.Object ref = patCardNo_;
    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();
      patCardNo_ = s;
      return s;
    }
  }
  /**
   * <pre>
   *诊疗卡号
   * </pre>
   *
   * <code>string patCardNo = 1;</code>
   * @return The bytes for patCardNo.
   */
  @java.lang.Override
  public com.google.protobuf.ByteString
      getPatCardNoBytes() {
    java.lang.Object ref = patCardNo_;
    if (ref instanceof java.lang.String) {
      com.google.protobuf.ByteString b = 
          com.google.protobuf.ByteString.copyFromUtf8(
              (java.lang.String) ref);
      patCardNo_ = b;
      return b;
    } else {
      return (com.google.protobuf.ByteString) ref;
    }
  }

  public static final int HISORDNUM_FIELD_NUMBER = 2;
  private volatile java.lang.Object hisOrdNum_;
  /**
   * <pre>
   *医院订单号
   * </pre>
   *
   * <code>string hisOrdNum = 2;</code>
   * @return The hisOrdNum.
   */
  @java.lang.Override
  public java.lang.String getHisOrdNum() {
    java.lang.Object ref = hisOrdNum_;
    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();
      hisOrdNum_ = s;
      return s;
    }
  }
  /**
   * <pre>
   *医院订单号
   * </pre>
   *
   * <code>string hisOrdNum = 2;</code>
   * @return The bytes for hisOrdNum.
   */
  @java.lang.Override
  public com.google.protobuf.ByteString
      getHisOrdNumBytes() {
    java.lang.Object ref = hisOrdNum_;
    if (ref instanceof java.lang.String) {
      com.google.protobuf.ByteString b = 
          com.google.protobuf.ByteString.copyFromUtf8(
              (java.lang.String) ref);
      hisOrdNum_ = b;
      return b;
    } else {
      return (com.google.protobuf.ByteString) ref;
    }
  }

  public static final int TYPE_FIELD_NUMBER = 3;
  private volatile java.lang.Object type_;
  /**
   * <pre>
   *类型：1-门诊待缴费记录明细 2-门诊已缴费记录明细 3-门诊已退费记录明细
   * </pre>
   *
   * <code>string type = 3;</code>
   * @return The type.
   */
  @java.lang.Override
  public java.lang.String getType() {
    java.lang.Object ref = type_;
    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();
      type_ = s;
      return s;
    }
  }
  /**
   * <pre>
   *类型：1-门诊待缴费记录明细 2-门诊已缴费记录明细 3-门诊已退费记录明细
   * </pre>
   *
   * <code>string type = 3;</code>
   * @return The bytes for type.
   */
  @java.lang.Override
  public com.google.protobuf.ByteString
      getTypeBytes() {
    java.lang.Object ref = type_;
    if (ref instanceof java.lang.String) {
      com.google.protobuf.ByteString b = 
          com.google.protobuf.ByteString.copyFromUtf8(
              (java.lang.String) ref);
      type_ = b;
      return b;
    } else {
      return (com.google.protobuf.ByteString) ref;
    }
  }

  public static final int HOSPITALID_FIELD_NUMBER = 4;
  private int hospitalId_;
  /**
   * <code>int32 hospitalId = 4;</code>
   * @return The hospitalId.
   */
  @java.lang.Override
  public int getHospitalId() {
    return hospitalId_;
  }

  public static final int CLINICCODE_FIELD_NUMBER = 5;
  private volatile java.lang.Object clinicCode_;
  /**
   * <pre>
   *就诊号 可填基中一个 clinicCode invoiceNo
   * </pre>
   *
   * <code>string clinicCode = 5;</code>
   * @return The clinicCode.
   */
  @java.lang.Override
  public java.lang.String getClinicCode() {
    java.lang.Object ref = clinicCode_;
    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();
      clinicCode_ = s;
      return s;
    }
  }
  /**
   * <pre>
   *就诊号 可填基中一个 clinicCode invoiceNo
   * </pre>
   *
   * <code>string clinicCode = 5;</code>
   * @return The bytes for clinicCode.
   */
  @java.lang.Override
  public com.google.protobuf.ByteString
      getClinicCodeBytes() {
    java.lang.Object ref = clinicCode_;
    if (ref instanceof java.lang.String) {
      com.google.protobuf.ByteString b = 
          com.google.protobuf.ByteString.copyFromUtf8(
              (java.lang.String) ref);
      clinicCode_ = b;
      return b;
    } else {
      return (com.google.protobuf.ByteString) ref;
    }
  }

  public static final int INVOICENO_FIELD_NUMBER = 6;
  private volatile java.lang.Object invoiceNo_;
  /**
   * <pre>
   *发票号
   * </pre>
   *
   * <code>string invoiceNo = 6;</code>
   * @return The invoiceNo.
   */
  @java.lang.Override
  public java.lang.String getInvoiceNo() {
    java.lang.Object ref = invoiceNo_;
    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();
      invoiceNo_ = s;
      return s;
    }
  }
  /**
   * <pre>
   *发票号
   * </pre>
   *
   * <code>string invoiceNo = 6;</code>
   * @return The bytes for invoiceNo.
   */
  @java.lang.Override
  public com.google.protobuf.ByteString
      getInvoiceNoBytes() {
    java.lang.Object ref = invoiceNo_;
    if (ref instanceof java.lang.String) {
      com.google.protobuf.ByteString b = 
          com.google.protobuf.ByteString.copyFromUtf8(
              (java.lang.String) ref);
      invoiceNo_ = b;
      return b;
    } else {
      return (com.google.protobuf.ByteString) ref;
    }
  }

  public static final int HISPATIENTID_FIELD_NUMBER = 7;
  private volatile java.lang.Object hisPatientId_;
  /**
   * <code>string hisPatientId = 7;</code>
   * @return The hisPatientId.
   */
  @java.lang.Override
  public java.lang.String getHisPatientId() {
    java.lang.Object ref = hisPatientId_;
    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();
      hisPatientId_ = s;
      return s;
    }
  }
  /**
   * <code>string hisPatientId = 7;</code>
   * @return The bytes for hisPatientId.
   */
  @java.lang.Override
  public com.google.protobuf.ByteString
      getHisPatientIdBytes() {
    java.lang.Object ref = hisPatientId_;
    if (ref instanceof java.lang.String) {
      com.google.protobuf.ByteString b = 
          com.google.protobuf.ByteString.copyFromUtf8(
              (java.lang.String) ref);
      hisPatientId_ = 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 (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(patCardNo_)) {
      com.google.protobuf.GeneratedMessageV3.writeString(output, 1, patCardNo_);
    }
    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(hisOrdNum_)) {
      com.google.protobuf.GeneratedMessageV3.writeString(output, 2, hisOrdNum_);
    }
    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(type_)) {
      com.google.protobuf.GeneratedMessageV3.writeString(output, 3, type_);
    }
    if (hospitalId_ != 0) {
      output.writeInt32(4, hospitalId_);
    }
    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(clinicCode_)) {
      com.google.protobuf.GeneratedMessageV3.writeString(output, 5, clinicCode_);
    }
    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(invoiceNo_)) {
      com.google.protobuf.GeneratedMessageV3.writeString(output, 6, invoiceNo_);
    }
    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(hisPatientId_)) {
      com.google.protobuf.GeneratedMessageV3.writeString(output, 7, hisPatientId_);
    }
    unknownFields.writeTo(output);
  }

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

    size = 0;
    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(patCardNo_)) {
      size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, patCardNo_);
    }
    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(hisOrdNum_)) {
      size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, hisOrdNum_);
    }
    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(type_)) {
      size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, type_);
    }
    if (hospitalId_ != 0) {
      size += com.google.protobuf.CodedOutputStream
        .computeInt32Size(4, hospitalId_);
    }
    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(clinicCode_)) {
      size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, clinicCode_);
    }
    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(invoiceNo_)) {
      size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, invoiceNo_);
    }
    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(hisPatientId_)) {
      size += com.google.protobuf.GeneratedMessageV3.computeStringSize(7, hisPatientId_);
    }
    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 com.ywt.gapi.third.taihe.GetPaymentDetailRequest)) {
      return super.equals(obj);
    }
    com.ywt.gapi.third.taihe.GetPaymentDetailRequest other = (com.ywt.gapi.third.taihe.GetPaymentDetailRequest) obj;

    if (!getPatCardNo()
        .equals(other.getPatCardNo())) return false;
    if (!getHisOrdNum()
        .equals(other.getHisOrdNum())) return false;
    if (!getType()
        .equals(other.getType())) return false;
    if (getHospitalId()
        != other.getHospitalId()) return false;
    if (!getClinicCode()
        .equals(other.getClinicCode())) return false;
    if (!getInvoiceNo()
        .equals(other.getInvoiceNo())) return false;
    if (!getHisPatientId()
        .equals(other.getHisPatientId())) 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();
    hash = (37 * hash) + PATCARDNO_FIELD_NUMBER;
    hash = (53 * hash) + getPatCardNo().hashCode();
    hash = (37 * hash) + HISORDNUM_FIELD_NUMBER;
    hash = (53 * hash) + getHisOrdNum().hashCode();
    hash = (37 * hash) + TYPE_FIELD_NUMBER;
    hash = (53 * hash) + getType().hashCode();
    hash = (37 * hash) + HOSPITALID_FIELD_NUMBER;
    hash = (53 * hash) + getHospitalId();
    hash = (37 * hash) + CLINICCODE_FIELD_NUMBER;
    hash = (53 * hash) + getClinicCode().hashCode();
    hash = (37 * hash) + INVOICENO_FIELD_NUMBER;
    hash = (53 * hash) + getInvoiceNo().hashCode();
    hash = (37 * hash) + HISPATIENTID_FIELD_NUMBER;
    hash = (53 * hash) + getHisPatientId().hashCode();
    hash = (29 * hash) + unknownFields.hashCode();
    memoizedHashCode = hash;
    return hash;
  }

  public static com.ywt.gapi.third.taihe.GetPaymentDetailRequest parseFrom(
      java.nio.ByteBuffer data)
      throws com.google.protobuf.InvalidProtocolBufferException {
    return PARSER.parseFrom(data);
  }
  public static com.ywt.gapi.third.taihe.GetPaymentDetailRequest 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.third.taihe.GetPaymentDetailRequest parseFrom(
      com.google.protobuf.ByteString data)
      throws com.google.protobuf.InvalidProtocolBufferException {
    return PARSER.parseFrom(data);
  }
  public static com.ywt.gapi.third.taihe.GetPaymentDetailRequest 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.third.taihe.GetPaymentDetailRequest parseFrom(byte[] data)
      throws com.google.protobuf.InvalidProtocolBufferException {
    return PARSER.parseFrom(data);
  }
  public static com.ywt.gapi.third.taihe.GetPaymentDetailRequest parseFrom(
      byte[] data,
      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
      throws com.google.protobuf.InvalidProtocolBufferException {
    return PARSER.parseFrom(data, extensionRegistry);
  }
  public static com.ywt.gapi.third.taihe.GetPaymentDetailRequest parseFrom(java.io.InputStream input)
      throws java.io.IOException {
    return com.google.protobuf.GeneratedMessageV3
        .parseWithIOException(PARSER, input);
  }
  public static com.ywt.gapi.third.taihe.GetPaymentDetailRequest 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.third.taihe.GetPaymentDetailRequest parseDelimitedFrom(java.io.InputStream input)
      throws java.io.IOException {
    return com.google.protobuf.GeneratedMessageV3
        .parseDelimitedWithIOException(PARSER, input);
  }
  public static com.ywt.gapi.third.taihe.GetPaymentDetailRequest 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.third.taihe.GetPaymentDetailRequest parseFrom(
      com.google.protobuf.CodedInputStream input)
      throws java.io.IOException {
    return com.google.protobuf.GeneratedMessageV3
        .parseWithIOException(PARSER, input);
  }
  public static com.ywt.gapi.third.taihe.GetPaymentDetailRequest 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(com.ywt.gapi.third.taihe.GetPaymentDetailRequest 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;
  }
  /**
   * <pre>
   *查询门诊缴费记录明细请求
   * </pre>
   *
   * Protobuf type {@code com.ywt.gapi.third.taihe.GetPaymentDetailRequest}
   */
  public static final class Builder extends
      com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements
      // @@protoc_insertion_point(builder_implements:com.ywt.gapi.third.taihe.GetPaymentDetailRequest)
      com.ywt.gapi.third.taihe.GetPaymentDetailRequestOrBuilder {
    public static final com.google.protobuf.Descriptors.Descriptor
        getDescriptor() {
      return com.ywt.gapi.third.taihe.TaiheProto.internal_static_com_ywt_gapi_third_taihe_GetPaymentDetailRequest_descriptor;
    }

    @java.lang.Override
    protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
        internalGetFieldAccessorTable() {
      return com.ywt.gapi.third.taihe.TaiheProto.internal_static_com_ywt_gapi_third_taihe_GetPaymentDetailRequest_fieldAccessorTable
          .ensureFieldAccessorsInitialized(
              com.ywt.gapi.third.taihe.GetPaymentDetailRequest.class, com.ywt.gapi.third.taihe.GetPaymentDetailRequest.Builder.class);
    }

    // Construct using com.ywt.gapi.third.taihe.GetPaymentDetailRequest.newBuilder()
    private Builder() {
      maybeForceBuilderInitialization();
    }

    private Builder(
        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
      super(parent);
      maybeForceBuilderInitialization();
    }
    private void maybeForceBuilderInitialization() {
      if (com.google.protobuf.GeneratedMessageV3
              .alwaysUseFieldBuilders) {
      }
    }
    @java.lang.Override
    public Builder clear() {
      super.clear();
      patCardNo_ = "";

      hisOrdNum_ = "";

      type_ = "";

      hospitalId_ = 0;

      clinicCode_ = "";

      invoiceNo_ = "";

      hisPatientId_ = "";

      return this;
    }

    @java.lang.Override
    public com.google.protobuf.Descriptors.Descriptor
        getDescriptorForType() {
      return com.ywt.gapi.third.taihe.TaiheProto.internal_static_com_ywt_gapi_third_taihe_GetPaymentDetailRequest_descriptor;
    }

    @java.lang.Override
    public com.ywt.gapi.third.taihe.GetPaymentDetailRequest getDefaultInstanceForType() {
      return com.ywt.gapi.third.taihe.GetPaymentDetailRequest.getDefaultInstance();
    }

    @java.lang.Override
    public com.ywt.gapi.third.taihe.GetPaymentDetailRequest build() {
      com.ywt.gapi.third.taihe.GetPaymentDetailRequest result = buildPartial();
      if (!result.isInitialized()) {
        throw newUninitializedMessageException(result);
      }
      return result;
    }

    @java.lang.Override
    public com.ywt.gapi.third.taihe.GetPaymentDetailRequest buildPartial() {
      com.ywt.gapi.third.taihe.GetPaymentDetailRequest result = new com.ywt.gapi.third.taihe.GetPaymentDetailRequest(this);
      result.patCardNo_ = patCardNo_;
      result.hisOrdNum_ = hisOrdNum_;
      result.type_ = type_;
      result.hospitalId_ = hospitalId_;
      result.clinicCode_ = clinicCode_;
      result.invoiceNo_ = invoiceNo_;
      result.hisPatientId_ = hisPatientId_;
      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 com.ywt.gapi.third.taihe.GetPaymentDetailRequest) {
        return mergeFrom((com.ywt.gapi.third.taihe.GetPaymentDetailRequest)other);
      } else {
        super.mergeFrom(other);
        return this;
      }
    }

    public Builder mergeFrom(com.ywt.gapi.third.taihe.GetPaymentDetailRequest other) {
      if (other == com.ywt.gapi.third.taihe.GetPaymentDetailRequest.getDefaultInstance()) return this;
      if (!other.getPatCardNo().isEmpty()) {
        patCardNo_ = other.patCardNo_;
        onChanged();
      }
      if (!other.getHisOrdNum().isEmpty()) {
        hisOrdNum_ = other.hisOrdNum_;
        onChanged();
      }
      if (!other.getType().isEmpty()) {
        type_ = other.type_;
        onChanged();
      }
      if (other.getHospitalId() != 0) {
        setHospitalId(other.getHospitalId());
      }
      if (!other.getClinicCode().isEmpty()) {
        clinicCode_ = other.clinicCode_;
        onChanged();
      }
      if (!other.getInvoiceNo().isEmpty()) {
        invoiceNo_ = other.invoiceNo_;
        onChanged();
      }
      if (!other.getHisPatientId().isEmpty()) {
        hisPatientId_ = other.hisPatientId_;
        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 {
      com.ywt.gapi.third.taihe.GetPaymentDetailRequest parsedMessage = null;
      try {
        parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
      } catch (com.google.protobuf.InvalidProtocolBufferException e) {
        parsedMessage = (com.ywt.gapi.third.taihe.GetPaymentDetailRequest) e.getUnfinishedMessage();
        throw e.unwrapIOException();
      } finally {
        if (parsedMessage != null) {
          mergeFrom(parsedMessage);
        }
      }
      return this;
    }

    private java.lang.Object patCardNo_ = "";
    /**
     * <pre>
     *诊疗卡号
     * </pre>
     *
     * <code>string patCardNo = 1;</code>
     * @return The patCardNo.
     */
    public java.lang.String getPatCardNo() {
      java.lang.Object ref = patCardNo_;
      if (!(ref instanceof java.lang.String)) {
        com.google.protobuf.ByteString bs =
            (com.google.protobuf.ByteString) ref;
        java.lang.String s = bs.toStringUtf8();
        patCardNo_ = s;
        return s;
      } else {
        return (java.lang.String) ref;
      }
    }
    /**
     * <pre>
     *诊疗卡号
     * </pre>
     *
     * <code>string patCardNo = 1;</code>
     * @return The bytes for patCardNo.
     */
    public com.google.protobuf.ByteString
        getPatCardNoBytes() {
      java.lang.Object ref = patCardNo_;
      if (ref instanceof String) {
        com.google.protobuf.ByteString b = 
            com.google.protobuf.ByteString.copyFromUtf8(
                (java.lang.String) ref);
        patCardNo_ = b;
        return b;
      } else {
        return (com.google.protobuf.ByteString) ref;
      }
    }
    /**
     * <pre>
     *诊疗卡号
     * </pre>
     *
     * <code>string patCardNo = 1;</code>
     * @param value The patCardNo to set.
     * @return This builder for chaining.
     */
    public Builder setPatCardNo(
        java.lang.String value) {
      if (value == null) {
    throw new NullPointerException();
  }
  
      patCardNo_ = value;
      onChanged();
      return this;
    }
    /**
     * <pre>
     *诊疗卡号
     * </pre>
     *
     * <code>string patCardNo = 1;</code>
     * @return This builder for chaining.
     */
    public Builder clearPatCardNo() {
      
      patCardNo_ = getDefaultInstance().getPatCardNo();
      onChanged();
      return this;
    }
    /**
     * <pre>
     *诊疗卡号
     * </pre>
     *
     * <code>string patCardNo = 1;</code>
     * @param value The bytes for patCardNo to set.
     * @return This builder for chaining.
     */
    public Builder setPatCardNoBytes(
        com.google.protobuf.ByteString value) {
      if (value == null) {
    throw new NullPointerException();
  }
  checkByteStringIsUtf8(value);
      
      patCardNo_ = value;
      onChanged();
      return this;
    }

    private java.lang.Object hisOrdNum_ = "";
    /**
     * <pre>
     *医院订单号
     * </pre>
     *
     * <code>string hisOrdNum = 2;</code>
     * @return The hisOrdNum.
     */
    public java.lang.String getHisOrdNum() {
      java.lang.Object ref = hisOrdNum_;
      if (!(ref instanceof java.lang.String)) {
        com.google.protobuf.ByteString bs =
            (com.google.protobuf.ByteString) ref;
        java.lang.String s = bs.toStringUtf8();
        hisOrdNum_ = s;
        return s;
      } else {
        return (java.lang.String) ref;
      }
    }
    /**
     * <pre>
     *医院订单号
     * </pre>
     *
     * <code>string hisOrdNum = 2;</code>
     * @return The bytes for hisOrdNum.
     */
    public com.google.protobuf.ByteString
        getHisOrdNumBytes() {
      java.lang.Object ref = hisOrdNum_;
      if (ref instanceof String) {
        com.google.protobuf.ByteString b = 
            com.google.protobuf.ByteString.copyFromUtf8(
                (java.lang.String) ref);
        hisOrdNum_ = b;
        return b;
      } else {
        return (com.google.protobuf.ByteString) ref;
      }
    }
    /**
     * <pre>
     *医院订单号
     * </pre>
     *
     * <code>string hisOrdNum = 2;</code>
     * @param value The hisOrdNum to set.
     * @return This builder for chaining.
     */
    public Builder setHisOrdNum(
        java.lang.String value) {
      if (value == null) {
    throw new NullPointerException();
  }
  
      hisOrdNum_ = value;
      onChanged();
      return this;
    }
    /**
     * <pre>
     *医院订单号
     * </pre>
     *
     * <code>string hisOrdNum = 2;</code>
     * @return This builder for chaining.
     */
    public Builder clearHisOrdNum() {
      
      hisOrdNum_ = getDefaultInstance().getHisOrdNum();
      onChanged();
      return this;
    }
    /**
     * <pre>
     *医院订单号
     * </pre>
     *
     * <code>string hisOrdNum = 2;</code>
     * @param value The bytes for hisOrdNum to set.
     * @return This builder for chaining.
     */
    public Builder setHisOrdNumBytes(
        com.google.protobuf.ByteString value) {
      if (value == null) {
    throw new NullPointerException();
  }
  checkByteStringIsUtf8(value);
      
      hisOrdNum_ = value;
      onChanged();
      return this;
    }

    private java.lang.Object type_ = "";
    /**
     * <pre>
     *类型：1-门诊待缴费记录明细 2-门诊已缴费记录明细 3-门诊已退费记录明细
     * </pre>
     *
     * <code>string type = 3;</code>
     * @return The type.
     */
    public java.lang.String getType() {
      java.lang.Object ref = type_;
      if (!(ref instanceof java.lang.String)) {
        com.google.protobuf.ByteString bs =
            (com.google.protobuf.ByteString) ref;
        java.lang.String s = bs.toStringUtf8();
        type_ = s;
        return s;
      } else {
        return (java.lang.String) ref;
      }
    }
    /**
     * <pre>
     *类型：1-门诊待缴费记录明细 2-门诊已缴费记录明细 3-门诊已退费记录明细
     * </pre>
     *
     * <code>string type = 3;</code>
     * @return The bytes for type.
     */
    public com.google.protobuf.ByteString
        getTypeBytes() {
      java.lang.Object ref = type_;
      if (ref instanceof String) {
        com.google.protobuf.ByteString b = 
            com.google.protobuf.ByteString.copyFromUtf8(
                (java.lang.String) ref);
        type_ = b;
        return b;
      } else {
        return (com.google.protobuf.ByteString) ref;
      }
    }
    /**
     * <pre>
     *类型：1-门诊待缴费记录明细 2-门诊已缴费记录明细 3-门诊已退费记录明细
     * </pre>
     *
     * <code>string type = 3;</code>
     * @param value The type to set.
     * @return This builder for chaining.
     */
    public Builder setType(
        java.lang.String value) {
      if (value == null) {
    throw new NullPointerException();
  }
  
      type_ = value;
      onChanged();
      return this;
    }
    /**
     * <pre>
     *类型：1-门诊待缴费记录明细 2-门诊已缴费记录明细 3-门诊已退费记录明细
     * </pre>
     *
     * <code>string type = 3;</code>
     * @return This builder for chaining.
     */
    public Builder clearType() {
      
      type_ = getDefaultInstance().getType();
      onChanged();
      return this;
    }
    /**
     * <pre>
     *类型：1-门诊待缴费记录明细 2-门诊已缴费记录明细 3-门诊已退费记录明细
     * </pre>
     *
     * <code>string type = 3;</code>
     * @param value The bytes for type to set.
     * @return This builder for chaining.
     */
    public Builder setTypeBytes(
        com.google.protobuf.ByteString value) {
      if (value == null) {
    throw new NullPointerException();
  }
  checkByteStringIsUtf8(value);
      
      type_ = value;
      onChanged();
      return this;
    }

    private int hospitalId_ ;
    /**
     * <code>int32 hospitalId = 4;</code>
     * @return The hospitalId.
     */
    @java.lang.Override
    public int getHospitalId() {
      return hospitalId_;
    }
    /**
     * <code>int32 hospitalId = 4;</code>
     * @param value The hospitalId to set.
     * @return This builder for chaining.
     */
    public Builder setHospitalId(int value) {
      
      hospitalId_ = value;
      onChanged();
      return this;
    }
    /**
     * <code>int32 hospitalId = 4;</code>
     * @return This builder for chaining.
     */
    public Builder clearHospitalId() {
      
      hospitalId_ = 0;
      onChanged();
      return this;
    }

    private java.lang.Object clinicCode_ = "";
    /**
     * <pre>
     *就诊号 可填基中一个 clinicCode invoiceNo
     * </pre>
     *
     * <code>string clinicCode = 5;</code>
     * @return The clinicCode.
     */
    public java.lang.String getClinicCode() {
      java.lang.Object ref = clinicCode_;
      if (!(ref instanceof java.lang.String)) {
        com.google.protobuf.ByteString bs =
            (com.google.protobuf.ByteString) ref;
        java.lang.String s = bs.toStringUtf8();
        clinicCode_ = s;
        return s;
      } else {
        return (java.lang.String) ref;
      }
    }
    /**
     * <pre>
     *就诊号 可填基中一个 clinicCode invoiceNo
     * </pre>
     *
     * <code>string clinicCode = 5;</code>
     * @return The bytes for clinicCode.
     */
    public com.google.protobuf.ByteString
        getClinicCodeBytes() {
      java.lang.Object ref = clinicCode_;
      if (ref instanceof String) {
        com.google.protobuf.ByteString b = 
            com.google.protobuf.ByteString.copyFromUtf8(
                (java.lang.String) ref);
        clinicCode_ = b;
        return b;
      } else {
        return (com.google.protobuf.ByteString) ref;
      }
    }
    /**
     * <pre>
     *就诊号 可填基中一个 clinicCode invoiceNo
     * </pre>
     *
     * <code>string clinicCode = 5;</code>
     * @param value The clinicCode to set.
     * @return This builder for chaining.
     */
    public Builder setClinicCode(
        java.lang.String value) {
      if (value == null) {
    throw new NullPointerException();
  }
  
      clinicCode_ = value;
      onChanged();
      return this;
    }
    /**
     * <pre>
     *就诊号 可填基中一个 clinicCode invoiceNo
     * </pre>
     *
     * <code>string clinicCode = 5;</code>
     * @return This builder for chaining.
     */
    public Builder clearClinicCode() {
      
      clinicCode_ = getDefaultInstance().getClinicCode();
      onChanged();
      return this;
    }
    /**
     * <pre>
     *就诊号 可填基中一个 clinicCode invoiceNo
     * </pre>
     *
     * <code>string clinicCode = 5;</code>
     * @param value The bytes for clinicCode to set.
     * @return This builder for chaining.
     */
    public Builder setClinicCodeBytes(
        com.google.protobuf.ByteString value) {
      if (value == null) {
    throw new NullPointerException();
  }
  checkByteStringIsUtf8(value);
      
      clinicCode_ = value;
      onChanged();
      return this;
    }

    private java.lang.Object invoiceNo_ = "";
    /**
     * <pre>
     *发票号
     * </pre>
     *
     * <code>string invoiceNo = 6;</code>
     * @return The invoiceNo.
     */
    public java.lang.String getInvoiceNo() {
      java.lang.Object ref = invoiceNo_;
      if (!(ref instanceof java.lang.String)) {
        com.google.protobuf.ByteString bs =
            (com.google.protobuf.ByteString) ref;
        java.lang.String s = bs.toStringUtf8();
        invoiceNo_ = s;
        return s;
      } else {
        return (java.lang.String) ref;
      }
    }
    /**
     * <pre>
     *发票号
     * </pre>
     *
     * <code>string invoiceNo = 6;</code>
     * @return The bytes for invoiceNo.
     */
    public com.google.protobuf.ByteString
        getInvoiceNoBytes() {
      java.lang.Object ref = invoiceNo_;
      if (ref instanceof String) {
        com.google.protobuf.ByteString b = 
            com.google.protobuf.ByteString.copyFromUtf8(
                (java.lang.String) ref);
        invoiceNo_ = b;
        return b;
      } else {
        return (com.google.protobuf.ByteString) ref;
      }
    }
    /**
     * <pre>
     *发票号
     * </pre>
     *
     * <code>string invoiceNo = 6;</code>
     * @param value The invoiceNo to set.
     * @return This builder for chaining.
     */
    public Builder setInvoiceNo(
        java.lang.String value) {
      if (value == null) {
    throw new NullPointerException();
  }
  
      invoiceNo_ = value;
      onChanged();
      return this;
    }
    /**
     * <pre>
     *发票号
     * </pre>
     *
     * <code>string invoiceNo = 6;</code>
     * @return This builder for chaining.
     */
    public Builder clearInvoiceNo() {
      
      invoiceNo_ = getDefaultInstance().getInvoiceNo();
      onChanged();
      return this;
    }
    /**
     * <pre>
     *发票号
     * </pre>
     *
     * <code>string invoiceNo = 6;</code>
     * @param value The bytes for invoiceNo to set.
     * @return This builder for chaining.
     */
    public Builder setInvoiceNoBytes(
        com.google.protobuf.ByteString value) {
      if (value == null) {
    throw new NullPointerException();
  }
  checkByteStringIsUtf8(value);
      
      invoiceNo_ = value;
      onChanged();
      return this;
    }

    private java.lang.Object hisPatientId_ = "";
    /**
     * <code>string hisPatientId = 7;</code>
     * @return The hisPatientId.
     */
    public java.lang.String getHisPatientId() {
      java.lang.Object ref = hisPatientId_;
      if (!(ref instanceof java.lang.String)) {
        com.google.protobuf.ByteString bs =
            (com.google.protobuf.ByteString) ref;
        java.lang.String s = bs.toStringUtf8();
        hisPatientId_ = s;
        return s;
      } else {
        return (java.lang.String) ref;
      }
    }
    /**
     * <code>string hisPatientId = 7;</code>
     * @return The bytes for hisPatientId.
     */
    public com.google.protobuf.ByteString
        getHisPatientIdBytes() {
      java.lang.Object ref = hisPatientId_;
      if (ref instanceof String) {
        com.google.protobuf.ByteString b = 
            com.google.protobuf.ByteString.copyFromUtf8(
                (java.lang.String) ref);
        hisPatientId_ = b;
        return b;
      } else {
        return (com.google.protobuf.ByteString) ref;
      }
    }
    /**
     * <code>string hisPatientId = 7;</code>
     * @param value The hisPatientId to set.
     * @return This builder for chaining.
     */
    public Builder setHisPatientId(
        java.lang.String value) {
      if (value == null) {
    throw new NullPointerException();
  }
  
      hisPatientId_ = value;
      onChanged();
      return this;
    }
    /**
     * <code>string hisPatientId = 7;</code>
     * @return This builder for chaining.
     */
    public Builder clearHisPatientId() {
      
      hisPatientId_ = getDefaultInstance().getHisPatientId();
      onChanged();
      return this;
    }
    /**
     * <code>string hisPatientId = 7;</code>
     * @param value The bytes for hisPatientId to set.
     * @return This builder for chaining.
     */
    public Builder setHisPatientIdBytes(
        com.google.protobuf.ByteString value) {
      if (value == null) {
    throw new NullPointerException();
  }
  checkByteStringIsUtf8(value);
      
      hisPatientId_ = 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:com.ywt.gapi.third.taihe.GetPaymentDetailRequest)
  }

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

  public static com.ywt.gapi.third.taihe.GetPaymentDetailRequest getDefaultInstance() {
    return DEFAULT_INSTANCE;
  }

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

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

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

  @java.lang.Override
  public com.ywt.gapi.third.taihe.GetPaymentDetailRequest getDefaultInstanceForType() {
    return DEFAULT_INSTANCE;
  }

}

