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

package com.ywt.gapi.taihe.outpaitent;

/**
 * Protobuf type {@code com.ywt.gapi.taihe.outpaitent.GetOutpatientOrderByHisOrderNoResponse}
 */
public  final class GetOutpatientOrderByHisOrderNoResponse extends
    com.google.protobuf.GeneratedMessageV3 implements
    // @@protoc_insertion_point(message_implements:com.ywt.gapi.taihe.outpaitent.GetOutpatientOrderByHisOrderNoResponse)
    GetOutpatientOrderByHisOrderNoResponseOrBuilder {
private static final long serialVersionUID = 0L;
  // Use GetOutpatientOrderByHisOrderNoResponse.newBuilder() to construct.
  private GetOutpatientOrderByHisOrderNoResponse(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {
    super(builder);
  }
  private GetOutpatientOrderByHisOrderNoResponse() {
    code_ = 0;
    msg_ = "";
    hospitalId_ = 0;
    hospitalName_ = "";
    deptName_ = "";
    doctorName_ = "";
    total_ = 0;
    reimbursement_ = 0;
    individual_ = 0;
    paymentStatus_ = 0;
    outpatientStatus_ = 0;
    userId_ = 0;
    hisPatientId_ = "";
    hisClinicCode_ = "";
    hisOrderNo_ = "";
    orderNo_ = "";
    orderId_ = 0;
    payUrl_ = "";
    medTransId_ = "";
    payAppId_ = "";
  }

  @Override
  public final com.google.protobuf.UnknownFieldSet
  getUnknownFields() {
    return this.unknownFields;
  }
  private GetOutpatientOrderByHisOrderNoResponse(
      com.google.protobuf.CodedInputStream input,
      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
      throws com.google.protobuf.InvalidProtocolBufferException {
    this();
    if (extensionRegistry == null) {
      throw new 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;
          default: {
            if (!parseUnknownFieldProto3(
                input, unknownFields, extensionRegistry, tag)) {
              done = true;
            }
            break;
          }
          case 8: {

            code_ = input.readInt32();
            break;
          }
          case 18: {
            String s = input.readStringRequireUtf8();

            msg_ = s;
            break;
          }
          case 24: {

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

            hospitalName_ = s;
            break;
          }
          case 42: {
            String s = input.readStringRequireUtf8();

            deptName_ = s;
            break;
          }
          case 50: {
            String s = input.readStringRequireUtf8();

            doctorName_ = s;
            break;
          }
          case 56: {

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

            reimbursement_ = input.readInt32();
            break;
          }
          case 72: {

            individual_ = input.readInt32();
            break;
          }
          case 80: {

            paymentStatus_ = input.readInt32();
            break;
          }
          case 88: {

            outpatientStatus_ = input.readInt32();
            break;
          }
          case 96: {

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

            hisPatientId_ = s;
            break;
          }
          case 114: {
            String s = input.readStringRequireUtf8();

            hisClinicCode_ = s;
            break;
          }
          case 122: {
            String s = input.readStringRequireUtf8();

            hisOrderNo_ = s;
            break;
          }
          case 130: {
            String s = input.readStringRequireUtf8();

            orderNo_ = s;
            break;
          }
          case 136: {

            orderId_ = input.readInt32();
            break;
          }
          case 146: {
            String s = input.readStringRequireUtf8();

            payUrl_ = s;
            break;
          }
          case 154: {
            String s = input.readStringRequireUtf8();

            medTransId_ = s;
            break;
          }
          case 162: {
            String s = input.readStringRequireUtf8();

            payAppId_ = 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 {
      this.unknownFields = unknownFields.build();
      makeExtensionsImmutable();
    }
  }
  public static final com.google.protobuf.Descriptors.Descriptor
      getDescriptor() {
    return TaiheOutpatient.internal_static_com_ywt_gapi_taihe_outpaitent_GetOutpatientOrderByHisOrderNoResponse_descriptor;
  }

  protected FieldAccessorTable
      internalGetFieldAccessorTable() {
    return TaiheOutpatient.internal_static_com_ywt_gapi_taihe_outpaitent_GetOutpatientOrderByHisOrderNoResponse_fieldAccessorTable
        .ensureFieldAccessorsInitialized(
            GetOutpatientOrderByHisOrderNoResponse.class, Builder.class);
  }

  public static final int CODE_FIELD_NUMBER = 1;
  private int code_;
  /**
   * <code>int32 code = 1;</code>
   */
  public int getCode() {
    return code_;
  }

  public static final int MSG_FIELD_NUMBER = 2;
  private volatile Object msg_;
  /**
   * <code>string msg = 2;</code>
   */
  public String getMsg() {
    Object ref = msg_;
    if (ref instanceof String) {
      return (String) ref;
    } else {
      com.google.protobuf.ByteString bs = 
          (com.google.protobuf.ByteString) ref;
      String s = bs.toStringUtf8();
      msg_ = s;
      return s;
    }
  }
  /**
   * <code>string msg = 2;</code>
   */
  public com.google.protobuf.ByteString
      getMsgBytes() {
    Object ref = msg_;
    if (ref instanceof String) {
      com.google.protobuf.ByteString b = 
          com.google.protobuf.ByteString.copyFromUtf8(
              (String) ref);
      msg_ = b;
      return b;
    } else {
      return (com.google.protobuf.ByteString) ref;
    }
  }

  public static final int HOSPITALID_FIELD_NUMBER = 3;
  private int hospitalId_;
  /**
   * <code>int32 hospitalId = 3;</code>
   */
  public int getHospitalId() {
    return hospitalId_;
  }

  public static final int HOSPITALNAME_FIELD_NUMBER = 4;
  private volatile Object hospitalName_;
  /**
   * <code>string hospitalName = 4;</code>
   */
  public String getHospitalName() {
    Object ref = hospitalName_;
    if (ref instanceof String) {
      return (String) ref;
    } else {
      com.google.protobuf.ByteString bs = 
          (com.google.protobuf.ByteString) ref;
      String s = bs.toStringUtf8();
      hospitalName_ = s;
      return s;
    }
  }
  /**
   * <code>string hospitalName = 4;</code>
   */
  public com.google.protobuf.ByteString
      getHospitalNameBytes() {
    Object ref = hospitalName_;
    if (ref instanceof String) {
      com.google.protobuf.ByteString b = 
          com.google.protobuf.ByteString.copyFromUtf8(
              (String) ref);
      hospitalName_ = b;
      return b;
    } else {
      return (com.google.protobuf.ByteString) ref;
    }
  }

  public static final int DEPTNAME_FIELD_NUMBER = 5;
  private volatile Object deptName_;
  /**
   * <code>string deptName = 5;</code>
   */
  public String getDeptName() {
    Object ref = deptName_;
    if (ref instanceof String) {
      return (String) ref;
    } else {
      com.google.protobuf.ByteString bs = 
          (com.google.protobuf.ByteString) ref;
      String s = bs.toStringUtf8();
      deptName_ = s;
      return s;
    }
  }
  /**
   * <code>string deptName = 5;</code>
   */
  public com.google.protobuf.ByteString
      getDeptNameBytes() {
    Object ref = deptName_;
    if (ref instanceof String) {
      com.google.protobuf.ByteString b = 
          com.google.protobuf.ByteString.copyFromUtf8(
              (String) ref);
      deptName_ = b;
      return b;
    } else {
      return (com.google.protobuf.ByteString) ref;
    }
  }

  public static final int DOCTORNAME_FIELD_NUMBER = 6;
  private volatile Object doctorName_;
  /**
   * <code>string doctorName = 6;</code>
   */
  public String getDoctorName() {
    Object ref = doctorName_;
    if (ref instanceof String) {
      return (String) ref;
    } else {
      com.google.protobuf.ByteString bs = 
          (com.google.protobuf.ByteString) ref;
      String s = bs.toStringUtf8();
      doctorName_ = s;
      return s;
    }
  }
  /**
   * <code>string doctorName = 6;</code>
   */
  public com.google.protobuf.ByteString
      getDoctorNameBytes() {
    Object ref = doctorName_;
    if (ref instanceof String) {
      com.google.protobuf.ByteString b = 
          com.google.protobuf.ByteString.copyFromUtf8(
              (String) ref);
      doctorName_ = b;
      return b;
    } else {
      return (com.google.protobuf.ByteString) ref;
    }
  }

  public static final int TOTAL_FIELD_NUMBER = 7;
  private int total_;
  /**
   * <code>int32 total = 7;</code>
   */
  public int getTotal() {
    return total_;
  }

  public static final int REIMBURSEMENT_FIELD_NUMBER = 8;
  private int reimbursement_;
  /**
   * <code>int32 reimbursement = 8;</code>
   */
  public int getReimbursement() {
    return reimbursement_;
  }

  public static final int INDIVIDUAL_FIELD_NUMBER = 9;
  private int individual_;
  /**
   * <code>int32 individual = 9;</code>
   */
  public int getIndividual() {
    return individual_;
  }

  public static final int PAYMENTSTATUS_FIELD_NUMBER = 10;
  private int paymentStatus_;
  /**
   * <code>int32 paymentStatus = 10;</code>
   */
  public int getPaymentStatus() {
    return paymentStatus_;
  }

  public static final int OUTPATIENTSTATUS_FIELD_NUMBER = 11;
  private int outpatientStatus_;
  /**
   * <code>int32 outpatientStatus = 11;</code>
   */
  public int getOutpatientStatus() {
    return outpatientStatus_;
  }

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

  public static final int HISPATIENTID_FIELD_NUMBER = 13;
  private volatile Object hisPatientId_;
  /**
   * <code>string hisPatientId = 13;</code>
   */
  public String getHisPatientId() {
    Object ref = hisPatientId_;
    if (ref instanceof String) {
      return (String) ref;
    } else {
      com.google.protobuf.ByteString bs = 
          (com.google.protobuf.ByteString) ref;
      String s = bs.toStringUtf8();
      hisPatientId_ = s;
      return s;
    }
  }
  /**
   * <code>string hisPatientId = 13;</code>
   */
  public com.google.protobuf.ByteString
      getHisPatientIdBytes() {
    Object ref = hisPatientId_;
    if (ref instanceof String) {
      com.google.protobuf.ByteString b = 
          com.google.protobuf.ByteString.copyFromUtf8(
              (String) ref);
      hisPatientId_ = b;
      return b;
    } else {
      return (com.google.protobuf.ByteString) ref;
    }
  }

  public static final int HISCLINICCODE_FIELD_NUMBER = 14;
  private volatile Object hisClinicCode_;
  /**
   * <code>string hisClinicCode = 14;</code>
   */
  public String getHisClinicCode() {
    Object ref = hisClinicCode_;
    if (ref instanceof String) {
      return (String) ref;
    } else {
      com.google.protobuf.ByteString bs = 
          (com.google.protobuf.ByteString) ref;
      String s = bs.toStringUtf8();
      hisClinicCode_ = s;
      return s;
    }
  }
  /**
   * <code>string hisClinicCode = 14;</code>
   */
  public com.google.protobuf.ByteString
      getHisClinicCodeBytes() {
    Object ref = hisClinicCode_;
    if (ref instanceof String) {
      com.google.protobuf.ByteString b = 
          com.google.protobuf.ByteString.copyFromUtf8(
              (String) ref);
      hisClinicCode_ = b;
      return b;
    } else {
      return (com.google.protobuf.ByteString) ref;
    }
  }

  public static final int HISORDERNO_FIELD_NUMBER = 15;
  private volatile Object hisOrderNo_;
  /**
   * <code>string hisOrderNo = 15;</code>
   */
  public String getHisOrderNo() {
    Object ref = hisOrderNo_;
    if (ref instanceof String) {
      return (String) ref;
    } else {
      com.google.protobuf.ByteString bs = 
          (com.google.protobuf.ByteString) ref;
      String s = bs.toStringUtf8();
      hisOrderNo_ = s;
      return s;
    }
  }
  /**
   * <code>string hisOrderNo = 15;</code>
   */
  public com.google.protobuf.ByteString
      getHisOrderNoBytes() {
    Object ref = hisOrderNo_;
    if (ref instanceof String) {
      com.google.protobuf.ByteString b = 
          com.google.protobuf.ByteString.copyFromUtf8(
              (String) ref);
      hisOrderNo_ = b;
      return b;
    } else {
      return (com.google.protobuf.ByteString) ref;
    }
  }

  public static final int ORDERNO_FIELD_NUMBER = 16;
  private volatile Object orderNo_;
  /**
   * <code>string orderNo = 16;</code>
   */
  public String getOrderNo() {
    Object ref = orderNo_;
    if (ref instanceof String) {
      return (String) ref;
    } else {
      com.google.protobuf.ByteString bs = 
          (com.google.protobuf.ByteString) ref;
      String s = bs.toStringUtf8();
      orderNo_ = s;
      return s;
    }
  }
  /**
   * <code>string orderNo = 16;</code>
   */
  public com.google.protobuf.ByteString
      getOrderNoBytes() {
    Object ref = orderNo_;
    if (ref instanceof String) {
      com.google.protobuf.ByteString b = 
          com.google.protobuf.ByteString.copyFromUtf8(
              (String) ref);
      orderNo_ = b;
      return b;
    } else {
      return (com.google.protobuf.ByteString) ref;
    }
  }

  public static final int ORDERID_FIELD_NUMBER = 17;
  private int orderId_;
  /**
   * <code>int32 orderId = 17;</code>
   */
  public int getOrderId() {
    return orderId_;
  }

  public static final int PAYURL_FIELD_NUMBER = 18;
  private volatile Object payUrl_;
  /**
   * <code>string payUrl = 18;</code>
   */
  public String getPayUrl() {
    Object ref = payUrl_;
    if (ref instanceof String) {
      return (String) ref;
    } else {
      com.google.protobuf.ByteString bs = 
          (com.google.protobuf.ByteString) ref;
      String s = bs.toStringUtf8();
      payUrl_ = s;
      return s;
    }
  }
  /**
   * <code>string payUrl = 18;</code>
   */
  public com.google.protobuf.ByteString
      getPayUrlBytes() {
    Object ref = payUrl_;
    if (ref instanceof String) {
      com.google.protobuf.ByteString b = 
          com.google.protobuf.ByteString.copyFromUtf8(
              (String) ref);
      payUrl_ = b;
      return b;
    } else {
      return (com.google.protobuf.ByteString) ref;
    }
  }

  public static final int MEDTRANSID_FIELD_NUMBER = 19;
  private volatile Object medTransId_;
  /**
   * <code>string medTransId = 19;</code>
   */
  public String getMedTransId() {
    Object ref = medTransId_;
    if (ref instanceof String) {
      return (String) ref;
    } else {
      com.google.protobuf.ByteString bs = 
          (com.google.protobuf.ByteString) ref;
      String s = bs.toStringUtf8();
      medTransId_ = s;
      return s;
    }
  }
  /**
   * <code>string medTransId = 19;</code>
   */
  public com.google.protobuf.ByteString
      getMedTransIdBytes() {
    Object ref = medTransId_;
    if (ref instanceof String) {
      com.google.protobuf.ByteString b = 
          com.google.protobuf.ByteString.copyFromUtf8(
              (String) ref);
      medTransId_ = b;
      return b;
    } else {
      return (com.google.protobuf.ByteString) ref;
    }
  }

  public static final int PAYAPPID_FIELD_NUMBER = 20;
  private volatile Object payAppId_;
  /**
   * <code>string payAppId = 20;</code>
   */
  public String getPayAppId() {
    Object ref = payAppId_;
    if (ref instanceof String) {
      return (String) ref;
    } else {
      com.google.protobuf.ByteString bs = 
          (com.google.protobuf.ByteString) ref;
      String s = bs.toStringUtf8();
      payAppId_ = s;
      return s;
    }
  }
  /**
   * <code>string payAppId = 20;</code>
   */
  public com.google.protobuf.ByteString
      getPayAppIdBytes() {
    Object ref = payAppId_;
    if (ref instanceof String) {
      com.google.protobuf.ByteString b = 
          com.google.protobuf.ByteString.copyFromUtf8(
              (String) ref);
      payAppId_ = 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 (code_ != 0) {
      output.writeInt32(1, code_);
    }
    if (!getMsgBytes().isEmpty()) {
      com.google.protobuf.GeneratedMessageV3.writeString(output, 2, msg_);
    }
    if (hospitalId_ != 0) {
      output.writeInt32(3, hospitalId_);
    }
    if (!getHospitalNameBytes().isEmpty()) {
      com.google.protobuf.GeneratedMessageV3.writeString(output, 4, hospitalName_);
    }
    if (!getDeptNameBytes().isEmpty()) {
      com.google.protobuf.GeneratedMessageV3.writeString(output, 5, deptName_);
    }
    if (!getDoctorNameBytes().isEmpty()) {
      com.google.protobuf.GeneratedMessageV3.writeString(output, 6, doctorName_);
    }
    if (total_ != 0) {
      output.writeInt32(7, total_);
    }
    if (reimbursement_ != 0) {
      output.writeInt32(8, reimbursement_);
    }
    if (individual_ != 0) {
      output.writeInt32(9, individual_);
    }
    if (paymentStatus_ != 0) {
      output.writeInt32(10, paymentStatus_);
    }
    if (outpatientStatus_ != 0) {
      output.writeInt32(11, outpatientStatus_);
    }
    if (userId_ != 0) {
      output.writeInt32(12, userId_);
    }
    if (!getHisPatientIdBytes().isEmpty()) {
      com.google.protobuf.GeneratedMessageV3.writeString(output, 13, hisPatientId_);
    }
    if (!getHisClinicCodeBytes().isEmpty()) {
      com.google.protobuf.GeneratedMessageV3.writeString(output, 14, hisClinicCode_);
    }
    if (!getHisOrderNoBytes().isEmpty()) {
      com.google.protobuf.GeneratedMessageV3.writeString(output, 15, hisOrderNo_);
    }
    if (!getOrderNoBytes().isEmpty()) {
      com.google.protobuf.GeneratedMessageV3.writeString(output, 16, orderNo_);
    }
    if (orderId_ != 0) {
      output.writeInt32(17, orderId_);
    }
    if (!getPayUrlBytes().isEmpty()) {
      com.google.protobuf.GeneratedMessageV3.writeString(output, 18, payUrl_);
    }
    if (!getMedTransIdBytes().isEmpty()) {
      com.google.protobuf.GeneratedMessageV3.writeString(output, 19, medTransId_);
    }
    if (!getPayAppIdBytes().isEmpty()) {
      com.google.protobuf.GeneratedMessageV3.writeString(output, 20, payAppId_);
    }
    unknownFields.writeTo(output);
  }

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

    size = 0;
    if (code_ != 0) {
      size += com.google.protobuf.CodedOutputStream
        .computeInt32Size(1, code_);
    }
    if (!getMsgBytes().isEmpty()) {
      size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, msg_);
    }
    if (hospitalId_ != 0) {
      size += com.google.protobuf.CodedOutputStream
        .computeInt32Size(3, hospitalId_);
    }
    if (!getHospitalNameBytes().isEmpty()) {
      size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, hospitalName_);
    }
    if (!getDeptNameBytes().isEmpty()) {
      size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, deptName_);
    }
    if (!getDoctorNameBytes().isEmpty()) {
      size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, doctorName_);
    }
    if (total_ != 0) {
      size += com.google.protobuf.CodedOutputStream
        .computeInt32Size(7, total_);
    }
    if (reimbursement_ != 0) {
      size += com.google.protobuf.CodedOutputStream
        .computeInt32Size(8, reimbursement_);
    }
    if (individual_ != 0) {
      size += com.google.protobuf.CodedOutputStream
        .computeInt32Size(9, individual_);
    }
    if (paymentStatus_ != 0) {
      size += com.google.protobuf.CodedOutputStream
        .computeInt32Size(10, paymentStatus_);
    }
    if (outpatientStatus_ != 0) {
      size += com.google.protobuf.CodedOutputStream
        .computeInt32Size(11, outpatientStatus_);
    }
    if (userId_ != 0) {
      size += com.google.protobuf.CodedOutputStream
        .computeInt32Size(12, userId_);
    }
    if (!getHisPatientIdBytes().isEmpty()) {
      size += com.google.protobuf.GeneratedMessageV3.computeStringSize(13, hisPatientId_);
    }
    if (!getHisClinicCodeBytes().isEmpty()) {
      size += com.google.protobuf.GeneratedMessageV3.computeStringSize(14, hisClinicCode_);
    }
    if (!getHisOrderNoBytes().isEmpty()) {
      size += com.google.protobuf.GeneratedMessageV3.computeStringSize(15, hisOrderNo_);
    }
    if (!getOrderNoBytes().isEmpty()) {
      size += com.google.protobuf.GeneratedMessageV3.computeStringSize(16, orderNo_);
    }
    if (orderId_ != 0) {
      size += com.google.protobuf.CodedOutputStream
        .computeInt32Size(17, orderId_);
    }
    if (!getPayUrlBytes().isEmpty()) {
      size += com.google.protobuf.GeneratedMessageV3.computeStringSize(18, payUrl_);
    }
    if (!getMedTransIdBytes().isEmpty()) {
      size += com.google.protobuf.GeneratedMessageV3.computeStringSize(19, medTransId_);
    }
    if (!getPayAppIdBytes().isEmpty()) {
      size += com.google.protobuf.GeneratedMessageV3.computeStringSize(20, payAppId_);
    }
    size += unknownFields.getSerializedSize();
    memoizedSize = size;
    return size;
  }

  @Override
  public boolean equals(final Object obj) {
    if (obj == this) {
     return true;
    }
    if (!(obj instanceof GetOutpatientOrderByHisOrderNoResponse)) {
      return super.equals(obj);
    }
    GetOutpatientOrderByHisOrderNoResponse other = (GetOutpatientOrderByHisOrderNoResponse) obj;

    boolean result = true;
    result = result && (getCode()
        == other.getCode());
    result = result && getMsg()
        .equals(other.getMsg());
    result = result && (getHospitalId()
        == other.getHospitalId());
    result = result && getHospitalName()
        .equals(other.getHospitalName());
    result = result && getDeptName()
        .equals(other.getDeptName());
    result = result && getDoctorName()
        .equals(other.getDoctorName());
    result = result && (getTotal()
        == other.getTotal());
    result = result && (getReimbursement()
        == other.getReimbursement());
    result = result && (getIndividual()
        == other.getIndividual());
    result = result && (getPaymentStatus()
        == other.getPaymentStatus());
    result = result && (getOutpatientStatus()
        == other.getOutpatientStatus());
    result = result && (getUserId()
        == other.getUserId());
    result = result && getHisPatientId()
        .equals(other.getHisPatientId());
    result = result && getHisClinicCode()
        .equals(other.getHisClinicCode());
    result = result && getHisOrderNo()
        .equals(other.getHisOrderNo());
    result = result && getOrderNo()
        .equals(other.getOrderNo());
    result = result && (getOrderId()
        == other.getOrderId());
    result = result && getPayUrl()
        .equals(other.getPayUrl());
    result = result && getMedTransId()
        .equals(other.getMedTransId());
    result = result && getPayAppId()
        .equals(other.getPayAppId());
    result = result && unknownFields.equals(other.unknownFields);
    return result;
  }

  @Override
  public int hashCode() {
    if (memoizedHashCode != 0) {
      return memoizedHashCode;
    }
    int hash = 41;
    hash = (19 * hash) + getDescriptor().hashCode();
    hash = (37 * hash) + CODE_FIELD_NUMBER;
    hash = (53 * hash) + getCode();
    hash = (37 * hash) + MSG_FIELD_NUMBER;
    hash = (53 * hash) + getMsg().hashCode();
    hash = (37 * hash) + HOSPITALID_FIELD_NUMBER;
    hash = (53 * hash) + getHospitalId();
    hash = (37 * hash) + HOSPITALNAME_FIELD_NUMBER;
    hash = (53 * hash) + getHospitalName().hashCode();
    hash = (37 * hash) + DEPTNAME_FIELD_NUMBER;
    hash = (53 * hash) + getDeptName().hashCode();
    hash = (37 * hash) + DOCTORNAME_FIELD_NUMBER;
    hash = (53 * hash) + getDoctorName().hashCode();
    hash = (37 * hash) + TOTAL_FIELD_NUMBER;
    hash = (53 * hash) + getTotal();
    hash = (37 * hash) + REIMBURSEMENT_FIELD_NUMBER;
    hash = (53 * hash) + getReimbursement();
    hash = (37 * hash) + INDIVIDUAL_FIELD_NUMBER;
    hash = (53 * hash) + getIndividual();
    hash = (37 * hash) + PAYMENTSTATUS_FIELD_NUMBER;
    hash = (53 * hash) + getPaymentStatus();
    hash = (37 * hash) + OUTPATIENTSTATUS_FIELD_NUMBER;
    hash = (53 * hash) + getOutpatientStatus();
    hash = (37 * hash) + USERID_FIELD_NUMBER;
    hash = (53 * hash) + getUserId();
    hash = (37 * hash) + HISPATIENTID_FIELD_NUMBER;
    hash = (53 * hash) + getHisPatientId().hashCode();
    hash = (37 * hash) + HISCLINICCODE_FIELD_NUMBER;
    hash = (53 * hash) + getHisClinicCode().hashCode();
    hash = (37 * hash) + HISORDERNO_FIELD_NUMBER;
    hash = (53 * hash) + getHisOrderNo().hashCode();
    hash = (37 * hash) + ORDERNO_FIELD_NUMBER;
    hash = (53 * hash) + getOrderNo().hashCode();
    hash = (37 * hash) + ORDERID_FIELD_NUMBER;
    hash = (53 * hash) + getOrderId();
    hash = (37 * hash) + PAYURL_FIELD_NUMBER;
    hash = (53 * hash) + getPayUrl().hashCode();
    hash = (37 * hash) + MEDTRANSID_FIELD_NUMBER;
    hash = (53 * hash) + getMedTransId().hashCode();
    hash = (37 * hash) + PAYAPPID_FIELD_NUMBER;
    hash = (53 * hash) + getPayAppId().hashCode();
    hash = (29 * hash) + unknownFields.hashCode();
    memoizedHashCode = hash;
    return hash;
  }

  public static GetOutpatientOrderByHisOrderNoResponse parseFrom(
      java.nio.ByteBuffer data)
      throws com.google.protobuf.InvalidProtocolBufferException {
    return PARSER.parseFrom(data);
  }
  public static GetOutpatientOrderByHisOrderNoResponse parseFrom(
      java.nio.ByteBuffer data,
      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
      throws com.google.protobuf.InvalidProtocolBufferException {
    return PARSER.parseFrom(data, extensionRegistry);
  }
  public static GetOutpatientOrderByHisOrderNoResponse parseFrom(
      com.google.protobuf.ByteString data)
      throws com.google.protobuf.InvalidProtocolBufferException {
    return PARSER.parseFrom(data);
  }
  public static GetOutpatientOrderByHisOrderNoResponse parseFrom(
      com.google.protobuf.ByteString data,
      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
      throws com.google.protobuf.InvalidProtocolBufferException {
    return PARSER.parseFrom(data, extensionRegistry);
  }
  public static GetOutpatientOrderByHisOrderNoResponse parseFrom(byte[] data)
      throws com.google.protobuf.InvalidProtocolBufferException {
    return PARSER.parseFrom(data);
  }
  public static GetOutpatientOrderByHisOrderNoResponse parseFrom(
      byte[] data,
      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
      throws com.google.protobuf.InvalidProtocolBufferException {
    return PARSER.parseFrom(data, extensionRegistry);
  }
  public static GetOutpatientOrderByHisOrderNoResponse parseFrom(java.io.InputStream input)
      throws java.io.IOException {
    return com.google.protobuf.GeneratedMessageV3
        .parseWithIOException(PARSER, input);
  }
  public static GetOutpatientOrderByHisOrderNoResponse 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 GetOutpatientOrderByHisOrderNoResponse parseDelimitedFrom(java.io.InputStream input)
      throws java.io.IOException {
    return com.google.protobuf.GeneratedMessageV3
        .parseDelimitedWithIOException(PARSER, input);
  }
  public static GetOutpatientOrderByHisOrderNoResponse 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 GetOutpatientOrderByHisOrderNoResponse parseFrom(
      com.google.protobuf.CodedInputStream input)
      throws java.io.IOException {
    return com.google.protobuf.GeneratedMessageV3
        .parseWithIOException(PARSER, input);
  }
  public static GetOutpatientOrderByHisOrderNoResponse 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(GetOutpatientOrderByHisOrderNoResponse prototype) {
    return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
  }
  public Builder toBuilder() {
    return this == DEFAULT_INSTANCE
        ? new Builder() : new Builder().mergeFrom(this);
  }

  @Override
  protected Builder newBuilderForType(
      BuilderParent parent) {
    Builder builder = new Builder(parent);
    return builder;
  }
  /**
   * Protobuf type {@code com.ywt.gapi.taihe.outpaitent.GetOutpatientOrderByHisOrderNoResponse}
   */
  public static final class Builder extends
      com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements
      // @@protoc_insertion_point(builder_implements:com.ywt.gapi.taihe.outpaitent.GetOutpatientOrderByHisOrderNoResponse)
      GetOutpatientOrderByHisOrderNoResponseOrBuilder {
    public static final com.google.protobuf.Descriptors.Descriptor
        getDescriptor() {
      return TaiheOutpatient.internal_static_com_ywt_gapi_taihe_outpaitent_GetOutpatientOrderByHisOrderNoResponse_descriptor;
    }

    protected FieldAccessorTable
        internalGetFieldAccessorTable() {
      return TaiheOutpatient.internal_static_com_ywt_gapi_taihe_outpaitent_GetOutpatientOrderByHisOrderNoResponse_fieldAccessorTable
          .ensureFieldAccessorsInitialized(
              GetOutpatientOrderByHisOrderNoResponse.class, Builder.class);
    }

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

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

      msg_ = "";

      hospitalId_ = 0;

      hospitalName_ = "";

      deptName_ = "";

      doctorName_ = "";

      total_ = 0;

      reimbursement_ = 0;

      individual_ = 0;

      paymentStatus_ = 0;

      outpatientStatus_ = 0;

      userId_ = 0;

      hisPatientId_ = "";

      hisClinicCode_ = "";

      hisOrderNo_ = "";

      orderNo_ = "";

      orderId_ = 0;

      payUrl_ = "";

      medTransId_ = "";

      payAppId_ = "";

      return this;
    }

    public com.google.protobuf.Descriptors.Descriptor
        getDescriptorForType() {
      return TaiheOutpatient.internal_static_com_ywt_gapi_taihe_outpaitent_GetOutpatientOrderByHisOrderNoResponse_descriptor;
    }

    public GetOutpatientOrderByHisOrderNoResponse getDefaultInstanceForType() {
      return GetOutpatientOrderByHisOrderNoResponse.getDefaultInstance();
    }

    public GetOutpatientOrderByHisOrderNoResponse build() {
      GetOutpatientOrderByHisOrderNoResponse result = buildPartial();
      if (!result.isInitialized()) {
        throw newUninitializedMessageException(result);
      }
      return result;
    }

    public GetOutpatientOrderByHisOrderNoResponse buildPartial() {
      GetOutpatientOrderByHisOrderNoResponse result = new GetOutpatientOrderByHisOrderNoResponse(this);
      result.code_ = code_;
      result.msg_ = msg_;
      result.hospitalId_ = hospitalId_;
      result.hospitalName_ = hospitalName_;
      result.deptName_ = deptName_;
      result.doctorName_ = doctorName_;
      result.total_ = total_;
      result.reimbursement_ = reimbursement_;
      result.individual_ = individual_;
      result.paymentStatus_ = paymentStatus_;
      result.outpatientStatus_ = outpatientStatus_;
      result.userId_ = userId_;
      result.hisPatientId_ = hisPatientId_;
      result.hisClinicCode_ = hisClinicCode_;
      result.hisOrderNo_ = hisOrderNo_;
      result.orderNo_ = orderNo_;
      result.orderId_ = orderId_;
      result.payUrl_ = payUrl_;
      result.medTransId_ = medTransId_;
      result.payAppId_ = payAppId_;
      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 GetOutpatientOrderByHisOrderNoResponse) {
        return mergeFrom((GetOutpatientOrderByHisOrderNoResponse)other);
      } else {
        super.mergeFrom(other);
        return this;
      }
    }

    public Builder mergeFrom(GetOutpatientOrderByHisOrderNoResponse other) {
      if (other == GetOutpatientOrderByHisOrderNoResponse.getDefaultInstance()) return this;
      if (other.getCode() != 0) {
        setCode(other.getCode());
      }
      if (!other.getMsg().isEmpty()) {
        msg_ = other.msg_;
        onChanged();
      }
      if (other.getHospitalId() != 0) {
        setHospitalId(other.getHospitalId());
      }
      if (!other.getHospitalName().isEmpty()) {
        hospitalName_ = other.hospitalName_;
        onChanged();
      }
      if (!other.getDeptName().isEmpty()) {
        deptName_ = other.deptName_;
        onChanged();
      }
      if (!other.getDoctorName().isEmpty()) {
        doctorName_ = other.doctorName_;
        onChanged();
      }
      if (other.getTotal() != 0) {
        setTotal(other.getTotal());
      }
      if (other.getReimbursement() != 0) {
        setReimbursement(other.getReimbursement());
      }
      if (other.getIndividual() != 0) {
        setIndividual(other.getIndividual());
      }
      if (other.getPaymentStatus() != 0) {
        setPaymentStatus(other.getPaymentStatus());
      }
      if (other.getOutpatientStatus() != 0) {
        setOutpatientStatus(other.getOutpatientStatus());
      }
      if (other.getUserId() != 0) {
        setUserId(other.getUserId());
      }
      if (!other.getHisPatientId().isEmpty()) {
        hisPatientId_ = other.hisPatientId_;
        onChanged();
      }
      if (!other.getHisClinicCode().isEmpty()) {
        hisClinicCode_ = other.hisClinicCode_;
        onChanged();
      }
      if (!other.getHisOrderNo().isEmpty()) {
        hisOrderNo_ = other.hisOrderNo_;
        onChanged();
      }
      if (!other.getOrderNo().isEmpty()) {
        orderNo_ = other.orderNo_;
        onChanged();
      }
      if (other.getOrderId() != 0) {
        setOrderId(other.getOrderId());
      }
      if (!other.getPayUrl().isEmpty()) {
        payUrl_ = other.payUrl_;
        onChanged();
      }
      if (!other.getMedTransId().isEmpty()) {
        medTransId_ = other.medTransId_;
        onChanged();
      }
      if (!other.getPayAppId().isEmpty()) {
        payAppId_ = other.payAppId_;
        onChanged();
      }
      this.mergeUnknownFields(other.unknownFields);
      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 {
      GetOutpatientOrderByHisOrderNoResponse parsedMessage = null;
      try {
        parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
      } catch (com.google.protobuf.InvalidProtocolBufferException e) {
        parsedMessage = (GetOutpatientOrderByHisOrderNoResponse) e.getUnfinishedMessage();
        throw e.unwrapIOException();
      } finally {
        if (parsedMessage != null) {
          mergeFrom(parsedMessage);
        }
      }
      return this;
    }

    private int code_ ;
    /**
     * <code>int32 code = 1;</code>
     */
    public int getCode() {
      return code_;
    }
    /**
     * <code>int32 code = 1;</code>
     */
    public Builder setCode(int value) {
      
      code_ = value;
      onChanged();
      return this;
    }
    /**
     * <code>int32 code = 1;</code>
     */
    public Builder clearCode() {
      
      code_ = 0;
      onChanged();
      return this;
    }

    private Object msg_ = "";
    /**
     * <code>string msg = 2;</code>
     */
    public String getMsg() {
      Object ref = msg_;
      if (!(ref instanceof String)) {
        com.google.protobuf.ByteString bs =
            (com.google.protobuf.ByteString) ref;
        String s = bs.toStringUtf8();
        msg_ = s;
        return s;
      } else {
        return (String) ref;
      }
    }
    /**
     * <code>string msg = 2;</code>
     */
    public com.google.protobuf.ByteString
        getMsgBytes() {
      Object ref = msg_;
      if (ref instanceof String) {
        com.google.protobuf.ByteString b = 
            com.google.protobuf.ByteString.copyFromUtf8(
                (String) ref);
        msg_ = b;
        return b;
      } else {
        return (com.google.protobuf.ByteString) ref;
      }
    }
    /**
     * <code>string msg = 2;</code>
     */
    public Builder setMsg(
        String value) {
      if (value == null) {
    throw new NullPointerException();
  }
  
      msg_ = value;
      onChanged();
      return this;
    }
    /**
     * <code>string msg = 2;</code>
     */
    public Builder clearMsg() {
      
      msg_ = getDefaultInstance().getMsg();
      onChanged();
      return this;
    }
    /**
     * <code>string msg = 2;</code>
     */
    public Builder setMsgBytes(
        com.google.protobuf.ByteString value) {
      if (value == null) {
    throw new NullPointerException();
  }
  checkByteStringIsUtf8(value);
      
      msg_ = value;
      onChanged();
      return this;
    }

    private int hospitalId_ ;
    /**
     * <code>int32 hospitalId = 3;</code>
     */
    public int getHospitalId() {
      return hospitalId_;
    }
    /**
     * <code>int32 hospitalId = 3;</code>
     */
    public Builder setHospitalId(int value) {
      
      hospitalId_ = value;
      onChanged();
      return this;
    }
    /**
     * <code>int32 hospitalId = 3;</code>
     */
    public Builder clearHospitalId() {
      
      hospitalId_ = 0;
      onChanged();
      return this;
    }

    private Object hospitalName_ = "";
    /**
     * <code>string hospitalName = 4;</code>
     */
    public String getHospitalName() {
      Object ref = hospitalName_;
      if (!(ref instanceof String)) {
        com.google.protobuf.ByteString bs =
            (com.google.protobuf.ByteString) ref;
        String s = bs.toStringUtf8();
        hospitalName_ = s;
        return s;
      } else {
        return (String) ref;
      }
    }
    /**
     * <code>string hospitalName = 4;</code>
     */
    public com.google.protobuf.ByteString
        getHospitalNameBytes() {
      Object ref = hospitalName_;
      if (ref instanceof String) {
        com.google.protobuf.ByteString b = 
            com.google.protobuf.ByteString.copyFromUtf8(
                (String) ref);
        hospitalName_ = b;
        return b;
      } else {
        return (com.google.protobuf.ByteString) ref;
      }
    }
    /**
     * <code>string hospitalName = 4;</code>
     */
    public Builder setHospitalName(
        String value) {
      if (value == null) {
    throw new NullPointerException();
  }
  
      hospitalName_ = value;
      onChanged();
      return this;
    }
    /**
     * <code>string hospitalName = 4;</code>
     */
    public Builder clearHospitalName() {
      
      hospitalName_ = getDefaultInstance().getHospitalName();
      onChanged();
      return this;
    }
    /**
     * <code>string hospitalName = 4;</code>
     */
    public Builder setHospitalNameBytes(
        com.google.protobuf.ByteString value) {
      if (value == null) {
    throw new NullPointerException();
  }
  checkByteStringIsUtf8(value);
      
      hospitalName_ = value;
      onChanged();
      return this;
    }

    private Object deptName_ = "";
    /**
     * <code>string deptName = 5;</code>
     */
    public String getDeptName() {
      Object ref = deptName_;
      if (!(ref instanceof String)) {
        com.google.protobuf.ByteString bs =
            (com.google.protobuf.ByteString) ref;
        String s = bs.toStringUtf8();
        deptName_ = s;
        return s;
      } else {
        return (String) ref;
      }
    }
    /**
     * <code>string deptName = 5;</code>
     */
    public com.google.protobuf.ByteString
        getDeptNameBytes() {
      Object ref = deptName_;
      if (ref instanceof String) {
        com.google.protobuf.ByteString b = 
            com.google.protobuf.ByteString.copyFromUtf8(
                (String) ref);
        deptName_ = b;
        return b;
      } else {
        return (com.google.protobuf.ByteString) ref;
      }
    }
    /**
     * <code>string deptName = 5;</code>
     */
    public Builder setDeptName(
        String value) {
      if (value == null) {
    throw new NullPointerException();
  }
  
      deptName_ = value;
      onChanged();
      return this;
    }
    /**
     * <code>string deptName = 5;</code>
     */
    public Builder clearDeptName() {
      
      deptName_ = getDefaultInstance().getDeptName();
      onChanged();
      return this;
    }
    /**
     * <code>string deptName = 5;</code>
     */
    public Builder setDeptNameBytes(
        com.google.protobuf.ByteString value) {
      if (value == null) {
    throw new NullPointerException();
  }
  checkByteStringIsUtf8(value);
      
      deptName_ = value;
      onChanged();
      return this;
    }

    private Object doctorName_ = "";
    /**
     * <code>string doctorName = 6;</code>
     */
    public String getDoctorName() {
      Object ref = doctorName_;
      if (!(ref instanceof String)) {
        com.google.protobuf.ByteString bs =
            (com.google.protobuf.ByteString) ref;
        String s = bs.toStringUtf8();
        doctorName_ = s;
        return s;
      } else {
        return (String) ref;
      }
    }
    /**
     * <code>string doctorName = 6;</code>
     */
    public com.google.protobuf.ByteString
        getDoctorNameBytes() {
      Object ref = doctorName_;
      if (ref instanceof String) {
        com.google.protobuf.ByteString b = 
            com.google.protobuf.ByteString.copyFromUtf8(
                (String) ref);
        doctorName_ = b;
        return b;
      } else {
        return (com.google.protobuf.ByteString) ref;
      }
    }
    /**
     * <code>string doctorName = 6;</code>
     */
    public Builder setDoctorName(
        String value) {
      if (value == null) {
    throw new NullPointerException();
  }
  
      doctorName_ = value;
      onChanged();
      return this;
    }
    /**
     * <code>string doctorName = 6;</code>
     */
    public Builder clearDoctorName() {
      
      doctorName_ = getDefaultInstance().getDoctorName();
      onChanged();
      return this;
    }
    /**
     * <code>string doctorName = 6;</code>
     */
    public Builder setDoctorNameBytes(
        com.google.protobuf.ByteString value) {
      if (value == null) {
    throw new NullPointerException();
  }
  checkByteStringIsUtf8(value);
      
      doctorName_ = value;
      onChanged();
      return this;
    }

    private int total_ ;
    /**
     * <code>int32 total = 7;</code>
     */
    public int getTotal() {
      return total_;
    }
    /**
     * <code>int32 total = 7;</code>
     */
    public Builder setTotal(int value) {
      
      total_ = value;
      onChanged();
      return this;
    }
    /**
     * <code>int32 total = 7;</code>
     */
    public Builder clearTotal() {
      
      total_ = 0;
      onChanged();
      return this;
    }

    private int reimbursement_ ;
    /**
     * <code>int32 reimbursement = 8;</code>
     */
    public int getReimbursement() {
      return reimbursement_;
    }
    /**
     * <code>int32 reimbursement = 8;</code>
     */
    public Builder setReimbursement(int value) {
      
      reimbursement_ = value;
      onChanged();
      return this;
    }
    /**
     * <code>int32 reimbursement = 8;</code>
     */
    public Builder clearReimbursement() {
      
      reimbursement_ = 0;
      onChanged();
      return this;
    }

    private int individual_ ;
    /**
     * <code>int32 individual = 9;</code>
     */
    public int getIndividual() {
      return individual_;
    }
    /**
     * <code>int32 individual = 9;</code>
     */
    public Builder setIndividual(int value) {
      
      individual_ = value;
      onChanged();
      return this;
    }
    /**
     * <code>int32 individual = 9;</code>
     */
    public Builder clearIndividual() {
      
      individual_ = 0;
      onChanged();
      return this;
    }

    private int paymentStatus_ ;
    /**
     * <code>int32 paymentStatus = 10;</code>
     */
    public int getPaymentStatus() {
      return paymentStatus_;
    }
    /**
     * <code>int32 paymentStatus = 10;</code>
     */
    public Builder setPaymentStatus(int value) {
      
      paymentStatus_ = value;
      onChanged();
      return this;
    }
    /**
     * <code>int32 paymentStatus = 10;</code>
     */
    public Builder clearPaymentStatus() {
      
      paymentStatus_ = 0;
      onChanged();
      return this;
    }

    private int outpatientStatus_ ;
    /**
     * <code>int32 outpatientStatus = 11;</code>
     */
    public int getOutpatientStatus() {
      return outpatientStatus_;
    }
    /**
     * <code>int32 outpatientStatus = 11;</code>
     */
    public Builder setOutpatientStatus(int value) {
      
      outpatientStatus_ = value;
      onChanged();
      return this;
    }
    /**
     * <code>int32 outpatientStatus = 11;</code>
     */
    public Builder clearOutpatientStatus() {
      
      outpatientStatus_ = 0;
      onChanged();
      return this;
    }

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

    private Object hisPatientId_ = "";
    /**
     * <code>string hisPatientId = 13;</code>
     */
    public String getHisPatientId() {
      Object ref = hisPatientId_;
      if (!(ref instanceof String)) {
        com.google.protobuf.ByteString bs =
            (com.google.protobuf.ByteString) ref;
        String s = bs.toStringUtf8();
        hisPatientId_ = s;
        return s;
      } else {
        return (String) ref;
      }
    }
    /**
     * <code>string hisPatientId = 13;</code>
     */
    public com.google.protobuf.ByteString
        getHisPatientIdBytes() {
      Object ref = hisPatientId_;
      if (ref instanceof String) {
        com.google.protobuf.ByteString b = 
            com.google.protobuf.ByteString.copyFromUtf8(
                (String) ref);
        hisPatientId_ = b;
        return b;
      } else {
        return (com.google.protobuf.ByteString) ref;
      }
    }
    /**
     * <code>string hisPatientId = 13;</code>
     */
    public Builder setHisPatientId(
        String value) {
      if (value == null) {
    throw new NullPointerException();
  }
  
      hisPatientId_ = value;
      onChanged();
      return this;
    }
    /**
     * <code>string hisPatientId = 13;</code>
     */
    public Builder clearHisPatientId() {
      
      hisPatientId_ = getDefaultInstance().getHisPatientId();
      onChanged();
      return this;
    }
    /**
     * <code>string hisPatientId = 13;</code>
     */
    public Builder setHisPatientIdBytes(
        com.google.protobuf.ByteString value) {
      if (value == null) {
    throw new NullPointerException();
  }
  checkByteStringIsUtf8(value);
      
      hisPatientId_ = value;
      onChanged();
      return this;
    }

    private Object hisClinicCode_ = "";
    /**
     * <code>string hisClinicCode = 14;</code>
     */
    public String getHisClinicCode() {
      Object ref = hisClinicCode_;
      if (!(ref instanceof String)) {
        com.google.protobuf.ByteString bs =
            (com.google.protobuf.ByteString) ref;
        String s = bs.toStringUtf8();
        hisClinicCode_ = s;
        return s;
      } else {
        return (String) ref;
      }
    }
    /**
     * <code>string hisClinicCode = 14;</code>
     */
    public com.google.protobuf.ByteString
        getHisClinicCodeBytes() {
      Object ref = hisClinicCode_;
      if (ref instanceof String) {
        com.google.protobuf.ByteString b = 
            com.google.protobuf.ByteString.copyFromUtf8(
                (String) ref);
        hisClinicCode_ = b;
        return b;
      } else {
        return (com.google.protobuf.ByteString) ref;
      }
    }
    /**
     * <code>string hisClinicCode = 14;</code>
     */
    public Builder setHisClinicCode(
        String value) {
      if (value == null) {
    throw new NullPointerException();
  }
  
      hisClinicCode_ = value;
      onChanged();
      return this;
    }
    /**
     * <code>string hisClinicCode = 14;</code>
     */
    public Builder clearHisClinicCode() {
      
      hisClinicCode_ = getDefaultInstance().getHisClinicCode();
      onChanged();
      return this;
    }
    /**
     * <code>string hisClinicCode = 14;</code>
     */
    public Builder setHisClinicCodeBytes(
        com.google.protobuf.ByteString value) {
      if (value == null) {
    throw new NullPointerException();
  }
  checkByteStringIsUtf8(value);
      
      hisClinicCode_ = value;
      onChanged();
      return this;
    }

    private Object hisOrderNo_ = "";
    /**
     * <code>string hisOrderNo = 15;</code>
     */
    public String getHisOrderNo() {
      Object ref = hisOrderNo_;
      if (!(ref instanceof String)) {
        com.google.protobuf.ByteString bs =
            (com.google.protobuf.ByteString) ref;
        String s = bs.toStringUtf8();
        hisOrderNo_ = s;
        return s;
      } else {
        return (String) ref;
      }
    }
    /**
     * <code>string hisOrderNo = 15;</code>
     */
    public com.google.protobuf.ByteString
        getHisOrderNoBytes() {
      Object ref = hisOrderNo_;
      if (ref instanceof String) {
        com.google.protobuf.ByteString b = 
            com.google.protobuf.ByteString.copyFromUtf8(
                (String) ref);
        hisOrderNo_ = b;
        return b;
      } else {
        return (com.google.protobuf.ByteString) ref;
      }
    }
    /**
     * <code>string hisOrderNo = 15;</code>
     */
    public Builder setHisOrderNo(
        String value) {
      if (value == null) {
    throw new NullPointerException();
  }
  
      hisOrderNo_ = value;
      onChanged();
      return this;
    }
    /**
     * <code>string hisOrderNo = 15;</code>
     */
    public Builder clearHisOrderNo() {
      
      hisOrderNo_ = getDefaultInstance().getHisOrderNo();
      onChanged();
      return this;
    }
    /**
     * <code>string hisOrderNo = 15;</code>
     */
    public Builder setHisOrderNoBytes(
        com.google.protobuf.ByteString value) {
      if (value == null) {
    throw new NullPointerException();
  }
  checkByteStringIsUtf8(value);
      
      hisOrderNo_ = value;
      onChanged();
      return this;
    }

    private Object orderNo_ = "";
    /**
     * <code>string orderNo = 16;</code>
     */
    public String getOrderNo() {
      Object ref = orderNo_;
      if (!(ref instanceof String)) {
        com.google.protobuf.ByteString bs =
            (com.google.protobuf.ByteString) ref;
        String s = bs.toStringUtf8();
        orderNo_ = s;
        return s;
      } else {
        return (String) ref;
      }
    }
    /**
     * <code>string orderNo = 16;</code>
     */
    public com.google.protobuf.ByteString
        getOrderNoBytes() {
      Object ref = orderNo_;
      if (ref instanceof String) {
        com.google.protobuf.ByteString b = 
            com.google.protobuf.ByteString.copyFromUtf8(
                (String) ref);
        orderNo_ = b;
        return b;
      } else {
        return (com.google.protobuf.ByteString) ref;
      }
    }
    /**
     * <code>string orderNo = 16;</code>
     */
    public Builder setOrderNo(
        String value) {
      if (value == null) {
    throw new NullPointerException();
  }
  
      orderNo_ = value;
      onChanged();
      return this;
    }
    /**
     * <code>string orderNo = 16;</code>
     */
    public Builder clearOrderNo() {
      
      orderNo_ = getDefaultInstance().getOrderNo();
      onChanged();
      return this;
    }
    /**
     * <code>string orderNo = 16;</code>
     */
    public Builder setOrderNoBytes(
        com.google.protobuf.ByteString value) {
      if (value == null) {
    throw new NullPointerException();
  }
  checkByteStringIsUtf8(value);
      
      orderNo_ = value;
      onChanged();
      return this;
    }

    private int orderId_ ;
    /**
     * <code>int32 orderId = 17;</code>
     */
    public int getOrderId() {
      return orderId_;
    }
    /**
     * <code>int32 orderId = 17;</code>
     */
    public Builder setOrderId(int value) {
      
      orderId_ = value;
      onChanged();
      return this;
    }
    /**
     * <code>int32 orderId = 17;</code>
     */
    public Builder clearOrderId() {
      
      orderId_ = 0;
      onChanged();
      return this;
    }

    private Object payUrl_ = "";
    /**
     * <code>string payUrl = 18;</code>
     */
    public String getPayUrl() {
      Object ref = payUrl_;
      if (!(ref instanceof String)) {
        com.google.protobuf.ByteString bs =
            (com.google.protobuf.ByteString) ref;
        String s = bs.toStringUtf8();
        payUrl_ = s;
        return s;
      } else {
        return (String) ref;
      }
    }
    /**
     * <code>string payUrl = 18;</code>
     */
    public com.google.protobuf.ByteString
        getPayUrlBytes() {
      Object ref = payUrl_;
      if (ref instanceof String) {
        com.google.protobuf.ByteString b = 
            com.google.protobuf.ByteString.copyFromUtf8(
                (String) ref);
        payUrl_ = b;
        return b;
      } else {
        return (com.google.protobuf.ByteString) ref;
      }
    }
    /**
     * <code>string payUrl = 18;</code>
     */
    public Builder setPayUrl(
        String value) {
      if (value == null) {
    throw new NullPointerException();
  }
  
      payUrl_ = value;
      onChanged();
      return this;
    }
    /**
     * <code>string payUrl = 18;</code>
     */
    public Builder clearPayUrl() {
      
      payUrl_ = getDefaultInstance().getPayUrl();
      onChanged();
      return this;
    }
    /**
     * <code>string payUrl = 18;</code>
     */
    public Builder setPayUrlBytes(
        com.google.protobuf.ByteString value) {
      if (value == null) {
    throw new NullPointerException();
  }
  checkByteStringIsUtf8(value);
      
      payUrl_ = value;
      onChanged();
      return this;
    }

    private Object medTransId_ = "";
    /**
     * <code>string medTransId = 19;</code>
     */
    public String getMedTransId() {
      Object ref = medTransId_;
      if (!(ref instanceof String)) {
        com.google.protobuf.ByteString bs =
            (com.google.protobuf.ByteString) ref;
        String s = bs.toStringUtf8();
        medTransId_ = s;
        return s;
      } else {
        return (String) ref;
      }
    }
    /**
     * <code>string medTransId = 19;</code>
     */
    public com.google.protobuf.ByteString
        getMedTransIdBytes() {
      Object ref = medTransId_;
      if (ref instanceof String) {
        com.google.protobuf.ByteString b = 
            com.google.protobuf.ByteString.copyFromUtf8(
                (String) ref);
        medTransId_ = b;
        return b;
      } else {
        return (com.google.protobuf.ByteString) ref;
      }
    }
    /**
     * <code>string medTransId = 19;</code>
     */
    public Builder setMedTransId(
        String value) {
      if (value == null) {
    throw new NullPointerException();
  }
  
      medTransId_ = value;
      onChanged();
      return this;
    }
    /**
     * <code>string medTransId = 19;</code>
     */
    public Builder clearMedTransId() {
      
      medTransId_ = getDefaultInstance().getMedTransId();
      onChanged();
      return this;
    }
    /**
     * <code>string medTransId = 19;</code>
     */
    public Builder setMedTransIdBytes(
        com.google.protobuf.ByteString value) {
      if (value == null) {
    throw new NullPointerException();
  }
  checkByteStringIsUtf8(value);
      
      medTransId_ = value;
      onChanged();
      return this;
    }

    private Object payAppId_ = "";
    /**
     * <code>string payAppId = 20;</code>
     */
    public String getPayAppId() {
      Object ref = payAppId_;
      if (!(ref instanceof String)) {
        com.google.protobuf.ByteString bs =
            (com.google.protobuf.ByteString) ref;
        String s = bs.toStringUtf8();
        payAppId_ = s;
        return s;
      } else {
        return (String) ref;
      }
    }
    /**
     * <code>string payAppId = 20;</code>
     */
    public com.google.protobuf.ByteString
        getPayAppIdBytes() {
      Object ref = payAppId_;
      if (ref instanceof String) {
        com.google.protobuf.ByteString b = 
            com.google.protobuf.ByteString.copyFromUtf8(
                (String) ref);
        payAppId_ = b;
        return b;
      } else {
        return (com.google.protobuf.ByteString) ref;
      }
    }
    /**
     * <code>string payAppId = 20;</code>
     */
    public Builder setPayAppId(
        String value) {
      if (value == null) {
    throw new NullPointerException();
  }
  
      payAppId_ = value;
      onChanged();
      return this;
    }
    /**
     * <code>string payAppId = 20;</code>
     */
    public Builder clearPayAppId() {
      
      payAppId_ = getDefaultInstance().getPayAppId();
      onChanged();
      return this;
    }
    /**
     * <code>string payAppId = 20;</code>
     */
    public Builder setPayAppIdBytes(
        com.google.protobuf.ByteString value) {
      if (value == null) {
    throw new NullPointerException();
  }
  checkByteStringIsUtf8(value);
      
      payAppId_ = value;
      onChanged();
      return this;
    }
    public final Builder setUnknownFields(
        final com.google.protobuf.UnknownFieldSet unknownFields) {
      return super.setUnknownFieldsProto3(unknownFields);
    }

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


    // @@protoc_insertion_point(builder_scope:com.ywt.gapi.taihe.outpaitent.GetOutpatientOrderByHisOrderNoResponse)
  }

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

  public static GetOutpatientOrderByHisOrderNoResponse getDefaultInstance() {
    return DEFAULT_INSTANCE;
  }

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

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

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

  public GetOutpatientOrderByHisOrderNoResponse getDefaultInstanceForType() {
    return DEFAULT_INSTANCE;
  }

}

