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

package com.ywt.gapi.order;

/**
 * Protobuf type {@code com.ywt.gapi.order.CreateOutpatientOrderRequest}
 */
public  final class CreateOutpatientOrderRequest extends
    com.google.protobuf.GeneratedMessageV3 implements
    // @@protoc_insertion_point(message_implements:com.ywt.gapi.order.CreateOutpatientOrderRequest)
    CreateOutpatientOrderRequestOrBuilder {
  // Use CreateOutpatientOrderRequest.newBuilder() to construct.
  private CreateOutpatientOrderRequest(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {
    super(builder);
  }
  private CreateOutpatientOrderRequest() {
    deptCode_ = "";
    deptName_ = "";
    doctorCode_ = "";
    doctorName_ = "";
    total_ = 0;
    reimbursement_ = 0;
    individual_ = 0;
    hisPatientId_ = "";
    hisClinicCode_ = "";
    hisOrderNo_ = "";
    payName_ = "";
    prescriptionDate_ = 0L;
    patientName_ = "";
    patientAge_ = 0;
    patientSex_ = 0;
    orderInsType_ = "";
    invoiceNo_ = "";
    payInsType_ = 0;
    hospitalId_ = 0;
    insuAdmDr_ = "";
    insUploadFeeResp_ = "";
    terminal_ = 0;
  }

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

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

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

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

            doctorName_ = s;
            break;
          }
          case 40: {

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

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

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

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

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

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

            payName_ = s;
            break;
          }
          case 96: {

            prescriptionDate_ = input.readInt64();
            break;
          }
          case 106: {
            java.lang.String s = input.readStringRequireUtf8();

            patientName_ = s;
            break;
          }
          case 112: {

            patientAge_ = input.readInt32();
            break;
          }
          case 120: {

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

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

            invoiceNo_ = s;
            break;
          }
          case 144: {

            payInsType_ = input.readInt32();
            break;
          }
          case 152: {

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

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

            insUploadFeeResp_ = s;
            break;
          }
          case 176: {

            terminal_ = input.readInt32();
            break;
          }
        }
      }
    } catch (com.google.protobuf.InvalidProtocolBufferException e) {
      throw e.setUnfinishedMessage(this);
    } catch (java.io.IOException e) {
      throw new com.google.protobuf.InvalidProtocolBufferException(
          e).setUnfinishedMessage(this);
    } finally {
      makeExtensionsImmutable();
    }
  }
  public static final com.google.protobuf.Descriptors.Descriptor
      getDescriptor() {
    return com.ywt.gapi.order.OrderOuterClass.internal_static_com_ywt_gapi_order_CreateOutpatientOrderRequest_descriptor;
  }

  protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
      internalGetFieldAccessorTable() {
    return com.ywt.gapi.order.OrderOuterClass.internal_static_com_ywt_gapi_order_CreateOutpatientOrderRequest_fieldAccessorTable
        .ensureFieldAccessorsInitialized(
            com.ywt.gapi.order.CreateOutpatientOrderRequest.class, com.ywt.gapi.order.CreateOutpatientOrderRequest.Builder.class);
  }

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

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

  public static final int DOCTORCODE_FIELD_NUMBER = 3;
  private volatile java.lang.Object doctorCode_;
  /**
   * <code>string doctorCode = 3;</code>
   */
  public java.lang.String getDoctorCode() {
    java.lang.Object ref = doctorCode_;
    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();
      doctorCode_ = s;
      return s;
    }
  }
  /**
   * <code>string doctorCode = 3;</code>
   */
  public com.google.protobuf.ByteString
      getDoctorCodeBytes() {
    java.lang.Object ref = doctorCode_;
    if (ref instanceof java.lang.String) {
      com.google.protobuf.ByteString b = 
          com.google.protobuf.ByteString.copyFromUtf8(
              (java.lang.String) ref);
      doctorCode_ = b;
      return b;
    } else {
      return (com.google.protobuf.ByteString) ref;
    }
  }

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

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

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

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

  public static final int HISPATIENTID_FIELD_NUMBER = 8;
  private volatile java.lang.Object hisPatientId_;
  /**
   * <code>string hisPatientId = 8;</code>
   */
  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 = 8;</code>
   */
  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;
    }
  }

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

  public static final int HISORDERNO_FIELD_NUMBER = 10;
  private volatile java.lang.Object hisOrderNo_;
  /**
   * <code>string hisOrderNo = 10;</code>
   */
  public java.lang.String getHisOrderNo() {
    java.lang.Object ref = hisOrderNo_;
    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();
      hisOrderNo_ = s;
      return s;
    }
  }
  /**
   * <code>string hisOrderNo = 10;</code>
   */
  public com.google.protobuf.ByteString
      getHisOrderNoBytes() {
    java.lang.Object ref = hisOrderNo_;
    if (ref instanceof java.lang.String) {
      com.google.protobuf.ByteString b = 
          com.google.protobuf.ByteString.copyFromUtf8(
              (java.lang.String) ref);
      hisOrderNo_ = b;
      return b;
    } else {
      return (com.google.protobuf.ByteString) ref;
    }
  }

  public static final int PAYNAME_FIELD_NUMBER = 11;
  private volatile java.lang.Object payName_;
  /**
   * <code>string payName = 11;</code>
   */
  public java.lang.String getPayName() {
    java.lang.Object ref = payName_;
    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();
      payName_ = s;
      return s;
    }
  }
  /**
   * <code>string payName = 11;</code>
   */
  public com.google.protobuf.ByteString
      getPayNameBytes() {
    java.lang.Object ref = payName_;
    if (ref instanceof java.lang.String) {
      com.google.protobuf.ByteString b = 
          com.google.protobuf.ByteString.copyFromUtf8(
              (java.lang.String) ref);
      payName_ = b;
      return b;
    } else {
      return (com.google.protobuf.ByteString) ref;
    }
  }

  public static final int PRESCRIPTIONDATE_FIELD_NUMBER = 12;
  private long prescriptionDate_;
  /**
   * <code>int64 prescriptionDate = 12;</code>
   */
  public long getPrescriptionDate() {
    return prescriptionDate_;
  }

  public static final int PATIENTNAME_FIELD_NUMBER = 13;
  private volatile java.lang.Object patientName_;
  /**
   * <code>string patientName = 13;</code>
   */
  public java.lang.String getPatientName() {
    java.lang.Object ref = patientName_;
    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();
      patientName_ = s;
      return s;
    }
  }
  /**
   * <code>string patientName = 13;</code>
   */
  public com.google.protobuf.ByteString
      getPatientNameBytes() {
    java.lang.Object ref = patientName_;
    if (ref instanceof java.lang.String) {
      com.google.protobuf.ByteString b = 
          com.google.protobuf.ByteString.copyFromUtf8(
              (java.lang.String) ref);
      patientName_ = b;
      return b;
    } else {
      return (com.google.protobuf.ByteString) ref;
    }
  }

  public static final int PATIENTAGE_FIELD_NUMBER = 14;
  private int patientAge_;
  /**
   * <code>int32 patientAge = 14;</code>
   */
  public int getPatientAge() {
    return patientAge_;
  }

  public static final int PATIENTSEX_FIELD_NUMBER = 15;
  private int patientSex_;
  /**
   * <code>int32 patientSex = 15;</code>
   */
  public int getPatientSex() {
    return patientSex_;
  }

  public static final int ORDERINSTYPE_FIELD_NUMBER = 16;
  private volatile java.lang.Object orderInsType_;
  /**
   * <code>string orderInsType = 16;</code>
   */
  public java.lang.String getOrderInsType() {
    java.lang.Object ref = orderInsType_;
    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();
      orderInsType_ = s;
      return s;
    }
  }
  /**
   * <code>string orderInsType = 16;</code>
   */
  public com.google.protobuf.ByteString
      getOrderInsTypeBytes() {
    java.lang.Object ref = orderInsType_;
    if (ref instanceof java.lang.String) {
      com.google.protobuf.ByteString b = 
          com.google.protobuf.ByteString.copyFromUtf8(
              (java.lang.String) ref);
      orderInsType_ = b;
      return b;
    } else {
      return (com.google.protobuf.ByteString) ref;
    }
  }

  public static final int INVOICENO_FIELD_NUMBER = 17;
  private volatile java.lang.Object invoiceNo_;
  /**
   * <code>string invoiceNo = 17;</code>
   */
  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;
    }
  }
  /**
   * <code>string invoiceNo = 17;</code>
   */
  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 PAYINSTYPE_FIELD_NUMBER = 18;
  private int payInsType_;
  /**
   * <pre>
   * 医保支付类型：1-自费，2-医保
   * </pre>
   *
   * <code>int32 payInsType = 18;</code>
   */
  public int getPayInsType() {
    return payInsType_;
  }

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

  public static final int INSUADMDR_FIELD_NUMBER = 20;
  private volatile java.lang.Object insuAdmDr_;
  /**
   * <pre>
   * 医保登记RowiD
   * </pre>
   *
   * <code>string insuAdmDr = 20;</code>
   */
  public java.lang.String getInsuAdmDr() {
    java.lang.Object ref = insuAdmDr_;
    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();
      insuAdmDr_ = s;
      return s;
    }
  }
  /**
   * <pre>
   * 医保登记RowiD
   * </pre>
   *
   * <code>string insuAdmDr = 20;</code>
   */
  public com.google.protobuf.ByteString
      getInsuAdmDrBytes() {
    java.lang.Object ref = insuAdmDr_;
    if (ref instanceof java.lang.String) {
      com.google.protobuf.ByteString b = 
          com.google.protobuf.ByteString.copyFromUtf8(
              (java.lang.String) ref);
      insuAdmDr_ = b;
      return b;
    } else {
      return (com.google.protobuf.ByteString) ref;
    }
  }

  public static final int INSUPLOADFEERESP_FIELD_NUMBER = 21;
  private volatile java.lang.Object insUploadFeeResp_;
  /**
   * <pre>
   * 上传费用接口返回数据
   * </pre>
   *
   * <code>string insUploadFeeResp = 21;</code>
   */
  public java.lang.String getInsUploadFeeResp() {
    java.lang.Object ref = insUploadFeeResp_;
    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();
      insUploadFeeResp_ = s;
      return s;
    }
  }
  /**
   * <pre>
   * 上传费用接口返回数据
   * </pre>
   *
   * <code>string insUploadFeeResp = 21;</code>
   */
  public com.google.protobuf.ByteString
      getInsUploadFeeRespBytes() {
    java.lang.Object ref = insUploadFeeResp_;
    if (ref instanceof java.lang.String) {
      com.google.protobuf.ByteString b = 
          com.google.protobuf.ByteString.copyFromUtf8(
              (java.lang.String) ref);
      insUploadFeeResp_ = b;
      return b;
    } else {
      return (com.google.protobuf.ByteString) ref;
    }
  }

  public static final int TERMINAL_FIELD_NUMBER = 22;
  private int terminal_;
  /**
   * <pre>
   *下单列表
   * </pre>
   *
   * <code>int32 terminal = 22;</code>
   */
  public int getTerminal() {
    return terminal_;
  }

  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 (!getDeptCodeBytes().isEmpty()) {
      com.google.protobuf.GeneratedMessageV3.writeString(output, 1, deptCode_);
    }
    if (!getDeptNameBytes().isEmpty()) {
      com.google.protobuf.GeneratedMessageV3.writeString(output, 2, deptName_);
    }
    if (!getDoctorCodeBytes().isEmpty()) {
      com.google.protobuf.GeneratedMessageV3.writeString(output, 3, doctorCode_);
    }
    if (!getDoctorNameBytes().isEmpty()) {
      com.google.protobuf.GeneratedMessageV3.writeString(output, 4, doctorName_);
    }
    if (total_ != 0) {
      output.writeInt32(5, total_);
    }
    if (reimbursement_ != 0) {
      output.writeInt32(6, reimbursement_);
    }
    if (individual_ != 0) {
      output.writeInt32(7, individual_);
    }
    if (!getHisPatientIdBytes().isEmpty()) {
      com.google.protobuf.GeneratedMessageV3.writeString(output, 8, hisPatientId_);
    }
    if (!getHisClinicCodeBytes().isEmpty()) {
      com.google.protobuf.GeneratedMessageV3.writeString(output, 9, hisClinicCode_);
    }
    if (!getHisOrderNoBytes().isEmpty()) {
      com.google.protobuf.GeneratedMessageV3.writeString(output, 10, hisOrderNo_);
    }
    if (!getPayNameBytes().isEmpty()) {
      com.google.protobuf.GeneratedMessageV3.writeString(output, 11, payName_);
    }
    if (prescriptionDate_ != 0L) {
      output.writeInt64(12, prescriptionDate_);
    }
    if (!getPatientNameBytes().isEmpty()) {
      com.google.protobuf.GeneratedMessageV3.writeString(output, 13, patientName_);
    }
    if (patientAge_ != 0) {
      output.writeInt32(14, patientAge_);
    }
    if (patientSex_ != 0) {
      output.writeInt32(15, patientSex_);
    }
    if (!getOrderInsTypeBytes().isEmpty()) {
      com.google.protobuf.GeneratedMessageV3.writeString(output, 16, orderInsType_);
    }
    if (!getInvoiceNoBytes().isEmpty()) {
      com.google.protobuf.GeneratedMessageV3.writeString(output, 17, invoiceNo_);
    }
    if (payInsType_ != 0) {
      output.writeInt32(18, payInsType_);
    }
    if (hospitalId_ != 0) {
      output.writeInt32(19, hospitalId_);
    }
    if (!getInsuAdmDrBytes().isEmpty()) {
      com.google.protobuf.GeneratedMessageV3.writeString(output, 20, insuAdmDr_);
    }
    if (!getInsUploadFeeRespBytes().isEmpty()) {
      com.google.protobuf.GeneratedMessageV3.writeString(output, 21, insUploadFeeResp_);
    }
    if (terminal_ != 0) {
      output.writeInt32(22, terminal_);
    }
  }

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

    size = 0;
    if (!getDeptCodeBytes().isEmpty()) {
      size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, deptCode_);
    }
    if (!getDeptNameBytes().isEmpty()) {
      size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, deptName_);
    }
    if (!getDoctorCodeBytes().isEmpty()) {
      size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, doctorCode_);
    }
    if (!getDoctorNameBytes().isEmpty()) {
      size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, doctorName_);
    }
    if (total_ != 0) {
      size += com.google.protobuf.CodedOutputStream
        .computeInt32Size(5, total_);
    }
    if (reimbursement_ != 0) {
      size += com.google.protobuf.CodedOutputStream
        .computeInt32Size(6, reimbursement_);
    }
    if (individual_ != 0) {
      size += com.google.protobuf.CodedOutputStream
        .computeInt32Size(7, individual_);
    }
    if (!getHisPatientIdBytes().isEmpty()) {
      size += com.google.protobuf.GeneratedMessageV3.computeStringSize(8, hisPatientId_);
    }
    if (!getHisClinicCodeBytes().isEmpty()) {
      size += com.google.protobuf.GeneratedMessageV3.computeStringSize(9, hisClinicCode_);
    }
    if (!getHisOrderNoBytes().isEmpty()) {
      size += com.google.protobuf.GeneratedMessageV3.computeStringSize(10, hisOrderNo_);
    }
    if (!getPayNameBytes().isEmpty()) {
      size += com.google.protobuf.GeneratedMessageV3.computeStringSize(11, payName_);
    }
    if (prescriptionDate_ != 0L) {
      size += com.google.protobuf.CodedOutputStream
        .computeInt64Size(12, prescriptionDate_);
    }
    if (!getPatientNameBytes().isEmpty()) {
      size += com.google.protobuf.GeneratedMessageV3.computeStringSize(13, patientName_);
    }
    if (patientAge_ != 0) {
      size += com.google.protobuf.CodedOutputStream
        .computeInt32Size(14, patientAge_);
    }
    if (patientSex_ != 0) {
      size += com.google.protobuf.CodedOutputStream
        .computeInt32Size(15, patientSex_);
    }
    if (!getOrderInsTypeBytes().isEmpty()) {
      size += com.google.protobuf.GeneratedMessageV3.computeStringSize(16, orderInsType_);
    }
    if (!getInvoiceNoBytes().isEmpty()) {
      size += com.google.protobuf.GeneratedMessageV3.computeStringSize(17, invoiceNo_);
    }
    if (payInsType_ != 0) {
      size += com.google.protobuf.CodedOutputStream
        .computeInt32Size(18, payInsType_);
    }
    if (hospitalId_ != 0) {
      size += com.google.protobuf.CodedOutputStream
        .computeInt32Size(19, hospitalId_);
    }
    if (!getInsuAdmDrBytes().isEmpty()) {
      size += com.google.protobuf.GeneratedMessageV3.computeStringSize(20, insuAdmDr_);
    }
    if (!getInsUploadFeeRespBytes().isEmpty()) {
      size += com.google.protobuf.GeneratedMessageV3.computeStringSize(21, insUploadFeeResp_);
    }
    if (terminal_ != 0) {
      size += com.google.protobuf.CodedOutputStream
        .computeInt32Size(22, terminal_);
    }
    memoizedSize = size;
    return size;
  }

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

    boolean result = true;
    result = result && getDeptCode()
        .equals(other.getDeptCode());
    result = result && getDeptName()
        .equals(other.getDeptName());
    result = result && getDoctorCode()
        .equals(other.getDoctorCode());
    result = result && getDoctorName()
        .equals(other.getDoctorName());
    result = result && (getTotal()
        == other.getTotal());
    result = result && (getReimbursement()
        == other.getReimbursement());
    result = result && (getIndividual()
        == other.getIndividual());
    result = result && getHisPatientId()
        .equals(other.getHisPatientId());
    result = result && getHisClinicCode()
        .equals(other.getHisClinicCode());
    result = result && getHisOrderNo()
        .equals(other.getHisOrderNo());
    result = result && getPayName()
        .equals(other.getPayName());
    result = result && (getPrescriptionDate()
        == other.getPrescriptionDate());
    result = result && getPatientName()
        .equals(other.getPatientName());
    result = result && (getPatientAge()
        == other.getPatientAge());
    result = result && (getPatientSex()
        == other.getPatientSex());
    result = result && getOrderInsType()
        .equals(other.getOrderInsType());
    result = result && getInvoiceNo()
        .equals(other.getInvoiceNo());
    result = result && (getPayInsType()
        == other.getPayInsType());
    result = result && (getHospitalId()
        == other.getHospitalId());
    result = result && getInsuAdmDr()
        .equals(other.getInsuAdmDr());
    result = result && getInsUploadFeeResp()
        .equals(other.getInsUploadFeeResp());
    result = result && (getTerminal()
        == other.getTerminal());
    return result;
  }

  @java.lang.Override
  public int hashCode() {
    if (memoizedHashCode != 0) {
      return memoizedHashCode;
    }
    int hash = 41;
    hash = (19 * hash) + getDescriptor().hashCode();
    hash = (37 * hash) + DEPTCODE_FIELD_NUMBER;
    hash = (53 * hash) + getDeptCode().hashCode();
    hash = (37 * hash) + DEPTNAME_FIELD_NUMBER;
    hash = (53 * hash) + getDeptName().hashCode();
    hash = (37 * hash) + DOCTORCODE_FIELD_NUMBER;
    hash = (53 * hash) + getDoctorCode().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) + 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) + PAYNAME_FIELD_NUMBER;
    hash = (53 * hash) + getPayName().hashCode();
    hash = (37 * hash) + PRESCRIPTIONDATE_FIELD_NUMBER;
    hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
        getPrescriptionDate());
    hash = (37 * hash) + PATIENTNAME_FIELD_NUMBER;
    hash = (53 * hash) + getPatientName().hashCode();
    hash = (37 * hash) + PATIENTAGE_FIELD_NUMBER;
    hash = (53 * hash) + getPatientAge();
    hash = (37 * hash) + PATIENTSEX_FIELD_NUMBER;
    hash = (53 * hash) + getPatientSex();
    hash = (37 * hash) + ORDERINSTYPE_FIELD_NUMBER;
    hash = (53 * hash) + getOrderInsType().hashCode();
    hash = (37 * hash) + INVOICENO_FIELD_NUMBER;
    hash = (53 * hash) + getInvoiceNo().hashCode();
    hash = (37 * hash) + PAYINSTYPE_FIELD_NUMBER;
    hash = (53 * hash) + getPayInsType();
    hash = (37 * hash) + HOSPITALID_FIELD_NUMBER;
    hash = (53 * hash) + getHospitalId();
    hash = (37 * hash) + INSUADMDR_FIELD_NUMBER;
    hash = (53 * hash) + getInsuAdmDr().hashCode();
    hash = (37 * hash) + INSUPLOADFEERESP_FIELD_NUMBER;
    hash = (53 * hash) + getInsUploadFeeResp().hashCode();
    hash = (37 * hash) + TERMINAL_FIELD_NUMBER;
    hash = (53 * hash) + getTerminal();
    hash = (29 * hash) + unknownFields.hashCode();
    memoizedHashCode = hash;
    return hash;
  }

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

  public Builder newBuilderForType() { return newBuilder(); }
  public static Builder newBuilder() {
    return DEFAULT_INSTANCE.toBuilder();
  }
  public static Builder newBuilder(com.ywt.gapi.order.CreateOutpatientOrderRequest prototype) {
    return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
  }
  public Builder toBuilder() {
    return this == DEFAULT_INSTANCE
        ? new Builder() : new Builder().mergeFrom(this);
  }

  @java.lang.Override
  protected Builder newBuilderForType(
      com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
    Builder builder = new Builder(parent);
    return builder;
  }
  /**
   * Protobuf type {@code com.ywt.gapi.order.CreateOutpatientOrderRequest}
   */
  public static final class Builder extends
      com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements
      // @@protoc_insertion_point(builder_implements:com.ywt.gapi.order.CreateOutpatientOrderRequest)
      com.ywt.gapi.order.CreateOutpatientOrderRequestOrBuilder {
    public static final com.google.protobuf.Descriptors.Descriptor
        getDescriptor() {
      return com.ywt.gapi.order.OrderOuterClass.internal_static_com_ywt_gapi_order_CreateOutpatientOrderRequest_descriptor;
    }

    protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
        internalGetFieldAccessorTable() {
      return com.ywt.gapi.order.OrderOuterClass.internal_static_com_ywt_gapi_order_CreateOutpatientOrderRequest_fieldAccessorTable
          .ensureFieldAccessorsInitialized(
              com.ywt.gapi.order.CreateOutpatientOrderRequest.class, com.ywt.gapi.order.CreateOutpatientOrderRequest.Builder.class);
    }

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

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

      deptName_ = "";

      doctorCode_ = "";

      doctorName_ = "";

      total_ = 0;

      reimbursement_ = 0;

      individual_ = 0;

      hisPatientId_ = "";

      hisClinicCode_ = "";

      hisOrderNo_ = "";

      payName_ = "";

      prescriptionDate_ = 0L;

      patientName_ = "";

      patientAge_ = 0;

      patientSex_ = 0;

      orderInsType_ = "";

      invoiceNo_ = "";

      payInsType_ = 0;

      hospitalId_ = 0;

      insuAdmDr_ = "";

      insUploadFeeResp_ = "";

      terminal_ = 0;

      return this;
    }

    public com.google.protobuf.Descriptors.Descriptor
        getDescriptorForType() {
      return com.ywt.gapi.order.OrderOuterClass.internal_static_com_ywt_gapi_order_CreateOutpatientOrderRequest_descriptor;
    }

    public com.ywt.gapi.order.CreateOutpatientOrderRequest getDefaultInstanceForType() {
      return com.ywt.gapi.order.CreateOutpatientOrderRequest.getDefaultInstance();
    }

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

    public com.ywt.gapi.order.CreateOutpatientOrderRequest buildPartial() {
      com.ywt.gapi.order.CreateOutpatientOrderRequest result = new com.ywt.gapi.order.CreateOutpatientOrderRequest(this);
      result.deptCode_ = deptCode_;
      result.deptName_ = deptName_;
      result.doctorCode_ = doctorCode_;
      result.doctorName_ = doctorName_;
      result.total_ = total_;
      result.reimbursement_ = reimbursement_;
      result.individual_ = individual_;
      result.hisPatientId_ = hisPatientId_;
      result.hisClinicCode_ = hisClinicCode_;
      result.hisOrderNo_ = hisOrderNo_;
      result.payName_ = payName_;
      result.prescriptionDate_ = prescriptionDate_;
      result.patientName_ = patientName_;
      result.patientAge_ = patientAge_;
      result.patientSex_ = patientSex_;
      result.orderInsType_ = orderInsType_;
      result.invoiceNo_ = invoiceNo_;
      result.payInsType_ = payInsType_;
      result.hospitalId_ = hospitalId_;
      result.insuAdmDr_ = insuAdmDr_;
      result.insUploadFeeResp_ = insUploadFeeResp_;
      result.terminal_ = terminal_;
      onBuilt();
      return result;
    }

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

    public Builder mergeFrom(com.ywt.gapi.order.CreateOutpatientOrderRequest other) {
      if (other == com.ywt.gapi.order.CreateOutpatientOrderRequest.getDefaultInstance()) return this;
      if (!other.getDeptCode().isEmpty()) {
        deptCode_ = other.deptCode_;
        onChanged();
      }
      if (!other.getDeptName().isEmpty()) {
        deptName_ = other.deptName_;
        onChanged();
      }
      if (!other.getDoctorCode().isEmpty()) {
        doctorCode_ = other.doctorCode_;
        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.getHisPatientId().isEmpty()) {
        hisPatientId_ = other.hisPatientId_;
        onChanged();
      }
      if (!other.getHisClinicCode().isEmpty()) {
        hisClinicCode_ = other.hisClinicCode_;
        onChanged();
      }
      if (!other.getHisOrderNo().isEmpty()) {
        hisOrderNo_ = other.hisOrderNo_;
        onChanged();
      }
      if (!other.getPayName().isEmpty()) {
        payName_ = other.payName_;
        onChanged();
      }
      if (other.getPrescriptionDate() != 0L) {
        setPrescriptionDate(other.getPrescriptionDate());
      }
      if (!other.getPatientName().isEmpty()) {
        patientName_ = other.patientName_;
        onChanged();
      }
      if (other.getPatientAge() != 0) {
        setPatientAge(other.getPatientAge());
      }
      if (other.getPatientSex() != 0) {
        setPatientSex(other.getPatientSex());
      }
      if (!other.getOrderInsType().isEmpty()) {
        orderInsType_ = other.orderInsType_;
        onChanged();
      }
      if (!other.getInvoiceNo().isEmpty()) {
        invoiceNo_ = other.invoiceNo_;
        onChanged();
      }
      if (other.getPayInsType() != 0) {
        setPayInsType(other.getPayInsType());
      }
      if (other.getHospitalId() != 0) {
        setHospitalId(other.getHospitalId());
      }
      if (!other.getInsuAdmDr().isEmpty()) {
        insuAdmDr_ = other.insuAdmDr_;
        onChanged();
      }
      if (!other.getInsUploadFeeResp().isEmpty()) {
        insUploadFeeResp_ = other.insUploadFeeResp_;
        onChanged();
      }
      if (other.getTerminal() != 0) {
        setTerminal(other.getTerminal());
      }
      onChanged();
      return this;
    }

    public final boolean isInitialized() {
      return true;
    }

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

    private java.lang.Object deptCode_ = "";
    /**
     * <code>string deptCode = 1;</code>
     */
    public java.lang.String getDeptCode() {
      java.lang.Object ref = deptCode_;
      if (!(ref instanceof java.lang.String)) {
        com.google.protobuf.ByteString bs =
            (com.google.protobuf.ByteString) ref;
        java.lang.String s = bs.toStringUtf8();
        deptCode_ = s;
        return s;
      } else {
        return (java.lang.String) ref;
      }
    }
    /**
     * <code>string deptCode = 1;</code>
     */
    public com.google.protobuf.ByteString
        getDeptCodeBytes() {
      java.lang.Object ref = deptCode_;
      if (ref instanceof String) {
        com.google.protobuf.ByteString b = 
            com.google.protobuf.ByteString.copyFromUtf8(
                (java.lang.String) ref);
        deptCode_ = b;
        return b;
      } else {
        return (com.google.protobuf.ByteString) ref;
      }
    }
    /**
     * <code>string deptCode = 1;</code>
     */
    public Builder setDeptCode(
        java.lang.String value) {
      if (value == null) {
    throw new NullPointerException();
  }
  
      deptCode_ = value;
      onChanged();
      return this;
    }
    /**
     * <code>string deptCode = 1;</code>
     */
    public Builder clearDeptCode() {
      
      deptCode_ = getDefaultInstance().getDeptCode();
      onChanged();
      return this;
    }
    /**
     * <code>string deptCode = 1;</code>
     */
    public Builder setDeptCodeBytes(
        com.google.protobuf.ByteString value) {
      if (value == null) {
    throw new NullPointerException();
  }
  checkByteStringIsUtf8(value);
      
      deptCode_ = value;
      onChanged();
      return this;
    }

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

    private java.lang.Object doctorCode_ = "";
    /**
     * <code>string doctorCode = 3;</code>
     */
    public java.lang.String getDoctorCode() {
      java.lang.Object ref = doctorCode_;
      if (!(ref instanceof java.lang.String)) {
        com.google.protobuf.ByteString bs =
            (com.google.protobuf.ByteString) ref;
        java.lang.String s = bs.toStringUtf8();
        doctorCode_ = s;
        return s;
      } else {
        return (java.lang.String) ref;
      }
    }
    /**
     * <code>string doctorCode = 3;</code>
     */
    public com.google.protobuf.ByteString
        getDoctorCodeBytes() {
      java.lang.Object ref = doctorCode_;
      if (ref instanceof String) {
        com.google.protobuf.ByteString b = 
            com.google.protobuf.ByteString.copyFromUtf8(
                (java.lang.String) ref);
        doctorCode_ = b;
        return b;
      } else {
        return (com.google.protobuf.ByteString) ref;
      }
    }
    /**
     * <code>string doctorCode = 3;</code>
     */
    public Builder setDoctorCode(
        java.lang.String value) {
      if (value == null) {
    throw new NullPointerException();
  }
  
      doctorCode_ = value;
      onChanged();
      return this;
    }
    /**
     * <code>string doctorCode = 3;</code>
     */
    public Builder clearDoctorCode() {
      
      doctorCode_ = getDefaultInstance().getDoctorCode();
      onChanged();
      return this;
    }
    /**
     * <code>string doctorCode = 3;</code>
     */
    public Builder setDoctorCodeBytes(
        com.google.protobuf.ByteString value) {
      if (value == null) {
    throw new NullPointerException();
  }
  checkByteStringIsUtf8(value);
      
      doctorCode_ = value;
      onChanged();
      return this;
    }

    private java.lang.Object doctorName_ = "";
    /**
     * <code>string doctorName = 4;</code>
     */
    public java.lang.String getDoctorName() {
      java.lang.Object ref = doctorName_;
      if (!(ref instanceof java.lang.String)) {
        com.google.protobuf.ByteString bs =
            (com.google.protobuf.ByteString) ref;
        java.lang.String s = bs.toStringUtf8();
        doctorName_ = s;
        return s;
      } else {
        return (java.lang.String) ref;
      }
    }
    /**
     * <code>string doctorName = 4;</code>
     */
    public com.google.protobuf.ByteString
        getDoctorNameBytes() {
      java.lang.Object ref = doctorName_;
      if (ref instanceof String) {
        com.google.protobuf.ByteString b = 
            com.google.protobuf.ByteString.copyFromUtf8(
                (java.lang.String) ref);
        doctorName_ = b;
        return b;
      } else {
        return (com.google.protobuf.ByteString) ref;
      }
    }
    /**
     * <code>string doctorName = 4;</code>
     */
    public Builder setDoctorName(
        java.lang.String value) {
      if (value == null) {
    throw new NullPointerException();
  }
  
      doctorName_ = value;
      onChanged();
      return this;
    }
    /**
     * <code>string doctorName = 4;</code>
     */
    public Builder clearDoctorName() {
      
      doctorName_ = getDefaultInstance().getDoctorName();
      onChanged();
      return this;
    }
    /**
     * <code>string doctorName = 4;</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 = 5;</code>
     */
    public int getTotal() {
      return total_;
    }
    /**
     * <code>int32 total = 5;</code>
     */
    public Builder setTotal(int value) {
      
      total_ = value;
      onChanged();
      return this;
    }
    /**
     * <code>int32 total = 5;</code>
     */
    public Builder clearTotal() {
      
      total_ = 0;
      onChanged();
      return this;
    }

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

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

    private java.lang.Object hisPatientId_ = "";
    /**
     * <code>string hisPatientId = 8;</code>
     */
    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 = 8;</code>
     */
    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 = 8;</code>
     */
    public Builder setHisPatientId(
        java.lang.String value) {
      if (value == null) {
    throw new NullPointerException();
  }
  
      hisPatientId_ = value;
      onChanged();
      return this;
    }
    /**
     * <code>string hisPatientId = 8;</code>
     */
    public Builder clearHisPatientId() {
      
      hisPatientId_ = getDefaultInstance().getHisPatientId();
      onChanged();
      return this;
    }
    /**
     * <code>string hisPatientId = 8;</code>
     */
    public Builder setHisPatientIdBytes(
        com.google.protobuf.ByteString value) {
      if (value == null) {
    throw new NullPointerException();
  }
  checkByteStringIsUtf8(value);
      
      hisPatientId_ = value;
      onChanged();
      return this;
    }

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

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

    private java.lang.Object payName_ = "";
    /**
     * <code>string payName = 11;</code>
     */
    public java.lang.String getPayName() {
      java.lang.Object ref = payName_;
      if (!(ref instanceof java.lang.String)) {
        com.google.protobuf.ByteString bs =
            (com.google.protobuf.ByteString) ref;
        java.lang.String s = bs.toStringUtf8();
        payName_ = s;
        return s;
      } else {
        return (java.lang.String) ref;
      }
    }
    /**
     * <code>string payName = 11;</code>
     */
    public com.google.protobuf.ByteString
        getPayNameBytes() {
      java.lang.Object ref = payName_;
      if (ref instanceof String) {
        com.google.protobuf.ByteString b = 
            com.google.protobuf.ByteString.copyFromUtf8(
                (java.lang.String) ref);
        payName_ = b;
        return b;
      } else {
        return (com.google.protobuf.ByteString) ref;
      }
    }
    /**
     * <code>string payName = 11;</code>
     */
    public Builder setPayName(
        java.lang.String value) {
      if (value == null) {
    throw new NullPointerException();
  }
  
      payName_ = value;
      onChanged();
      return this;
    }
    /**
     * <code>string payName = 11;</code>
     */
    public Builder clearPayName() {
      
      payName_ = getDefaultInstance().getPayName();
      onChanged();
      return this;
    }
    /**
     * <code>string payName = 11;</code>
     */
    public Builder setPayNameBytes(
        com.google.protobuf.ByteString value) {
      if (value == null) {
    throw new NullPointerException();
  }
  checkByteStringIsUtf8(value);
      
      payName_ = value;
      onChanged();
      return this;
    }

    private long prescriptionDate_ ;
    /**
     * <code>int64 prescriptionDate = 12;</code>
     */
    public long getPrescriptionDate() {
      return prescriptionDate_;
    }
    /**
     * <code>int64 prescriptionDate = 12;</code>
     */
    public Builder setPrescriptionDate(long value) {
      
      prescriptionDate_ = value;
      onChanged();
      return this;
    }
    /**
     * <code>int64 prescriptionDate = 12;</code>
     */
    public Builder clearPrescriptionDate() {
      
      prescriptionDate_ = 0L;
      onChanged();
      return this;
    }

    private java.lang.Object patientName_ = "";
    /**
     * <code>string patientName = 13;</code>
     */
    public java.lang.String getPatientName() {
      java.lang.Object ref = patientName_;
      if (!(ref instanceof java.lang.String)) {
        com.google.protobuf.ByteString bs =
            (com.google.protobuf.ByteString) ref;
        java.lang.String s = bs.toStringUtf8();
        patientName_ = s;
        return s;
      } else {
        return (java.lang.String) ref;
      }
    }
    /**
     * <code>string patientName = 13;</code>
     */
    public com.google.protobuf.ByteString
        getPatientNameBytes() {
      java.lang.Object ref = patientName_;
      if (ref instanceof String) {
        com.google.protobuf.ByteString b = 
            com.google.protobuf.ByteString.copyFromUtf8(
                (java.lang.String) ref);
        patientName_ = b;
        return b;
      } else {
        return (com.google.protobuf.ByteString) ref;
      }
    }
    /**
     * <code>string patientName = 13;</code>
     */
    public Builder setPatientName(
        java.lang.String value) {
      if (value == null) {
    throw new NullPointerException();
  }
  
      patientName_ = value;
      onChanged();
      return this;
    }
    /**
     * <code>string patientName = 13;</code>
     */
    public Builder clearPatientName() {
      
      patientName_ = getDefaultInstance().getPatientName();
      onChanged();
      return this;
    }
    /**
     * <code>string patientName = 13;</code>
     */
    public Builder setPatientNameBytes(
        com.google.protobuf.ByteString value) {
      if (value == null) {
    throw new NullPointerException();
  }
  checkByteStringIsUtf8(value);
      
      patientName_ = value;
      onChanged();
      return this;
    }

    private int patientAge_ ;
    /**
     * <code>int32 patientAge = 14;</code>
     */
    public int getPatientAge() {
      return patientAge_;
    }
    /**
     * <code>int32 patientAge = 14;</code>
     */
    public Builder setPatientAge(int value) {
      
      patientAge_ = value;
      onChanged();
      return this;
    }
    /**
     * <code>int32 patientAge = 14;</code>
     */
    public Builder clearPatientAge() {
      
      patientAge_ = 0;
      onChanged();
      return this;
    }

    private int patientSex_ ;
    /**
     * <code>int32 patientSex = 15;</code>
     */
    public int getPatientSex() {
      return patientSex_;
    }
    /**
     * <code>int32 patientSex = 15;</code>
     */
    public Builder setPatientSex(int value) {
      
      patientSex_ = value;
      onChanged();
      return this;
    }
    /**
     * <code>int32 patientSex = 15;</code>
     */
    public Builder clearPatientSex() {
      
      patientSex_ = 0;
      onChanged();
      return this;
    }

    private java.lang.Object orderInsType_ = "";
    /**
     * <code>string orderInsType = 16;</code>
     */
    public java.lang.String getOrderInsType() {
      java.lang.Object ref = orderInsType_;
      if (!(ref instanceof java.lang.String)) {
        com.google.protobuf.ByteString bs =
            (com.google.protobuf.ByteString) ref;
        java.lang.String s = bs.toStringUtf8();
        orderInsType_ = s;
        return s;
      } else {
        return (java.lang.String) ref;
      }
    }
    /**
     * <code>string orderInsType = 16;</code>
     */
    public com.google.protobuf.ByteString
        getOrderInsTypeBytes() {
      java.lang.Object ref = orderInsType_;
      if (ref instanceof String) {
        com.google.protobuf.ByteString b = 
            com.google.protobuf.ByteString.copyFromUtf8(
                (java.lang.String) ref);
        orderInsType_ = b;
        return b;
      } else {
        return (com.google.protobuf.ByteString) ref;
      }
    }
    /**
     * <code>string orderInsType = 16;</code>
     */
    public Builder setOrderInsType(
        java.lang.String value) {
      if (value == null) {
    throw new NullPointerException();
  }
  
      orderInsType_ = value;
      onChanged();
      return this;
    }
    /**
     * <code>string orderInsType = 16;</code>
     */
    public Builder clearOrderInsType() {
      
      orderInsType_ = getDefaultInstance().getOrderInsType();
      onChanged();
      return this;
    }
    /**
     * <code>string orderInsType = 16;</code>
     */
    public Builder setOrderInsTypeBytes(
        com.google.protobuf.ByteString value) {
      if (value == null) {
    throw new NullPointerException();
  }
  checkByteStringIsUtf8(value);
      
      orderInsType_ = value;
      onChanged();
      return this;
    }

    private java.lang.Object invoiceNo_ = "";
    /**
     * <code>string invoiceNo = 17;</code>
     */
    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;
      }
    }
    /**
     * <code>string invoiceNo = 17;</code>
     */
    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;
      }
    }
    /**
     * <code>string invoiceNo = 17;</code>
     */
    public Builder setInvoiceNo(
        java.lang.String value) {
      if (value == null) {
    throw new NullPointerException();
  }
  
      invoiceNo_ = value;
      onChanged();
      return this;
    }
    /**
     * <code>string invoiceNo = 17;</code>
     */
    public Builder clearInvoiceNo() {
      
      invoiceNo_ = getDefaultInstance().getInvoiceNo();
      onChanged();
      return this;
    }
    /**
     * <code>string invoiceNo = 17;</code>
     */
    public Builder setInvoiceNoBytes(
        com.google.protobuf.ByteString value) {
      if (value == null) {
    throw new NullPointerException();
  }
  checkByteStringIsUtf8(value);
      
      invoiceNo_ = value;
      onChanged();
      return this;
    }

    private int payInsType_ ;
    /**
     * <pre>
     * 医保支付类型：1-自费，2-医保
     * </pre>
     *
     * <code>int32 payInsType = 18;</code>
     */
    public int getPayInsType() {
      return payInsType_;
    }
    /**
     * <pre>
     * 医保支付类型：1-自费，2-医保
     * </pre>
     *
     * <code>int32 payInsType = 18;</code>
     */
    public Builder setPayInsType(int value) {
      
      payInsType_ = value;
      onChanged();
      return this;
    }
    /**
     * <pre>
     * 医保支付类型：1-自费，2-医保
     * </pre>
     *
     * <code>int32 payInsType = 18;</code>
     */
    public Builder clearPayInsType() {
      
      payInsType_ = 0;
      onChanged();
      return this;
    }

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

    private java.lang.Object insuAdmDr_ = "";
    /**
     * <pre>
     * 医保登记RowiD
     * </pre>
     *
     * <code>string insuAdmDr = 20;</code>
     */
    public java.lang.String getInsuAdmDr() {
      java.lang.Object ref = insuAdmDr_;
      if (!(ref instanceof java.lang.String)) {
        com.google.protobuf.ByteString bs =
            (com.google.protobuf.ByteString) ref;
        java.lang.String s = bs.toStringUtf8();
        insuAdmDr_ = s;
        return s;
      } else {
        return (java.lang.String) ref;
      }
    }
    /**
     * <pre>
     * 医保登记RowiD
     * </pre>
     *
     * <code>string insuAdmDr = 20;</code>
     */
    public com.google.protobuf.ByteString
        getInsuAdmDrBytes() {
      java.lang.Object ref = insuAdmDr_;
      if (ref instanceof String) {
        com.google.protobuf.ByteString b = 
            com.google.protobuf.ByteString.copyFromUtf8(
                (java.lang.String) ref);
        insuAdmDr_ = b;
        return b;
      } else {
        return (com.google.protobuf.ByteString) ref;
      }
    }
    /**
     * <pre>
     * 医保登记RowiD
     * </pre>
     *
     * <code>string insuAdmDr = 20;</code>
     */
    public Builder setInsuAdmDr(
        java.lang.String value) {
      if (value == null) {
    throw new NullPointerException();
  }
  
      insuAdmDr_ = value;
      onChanged();
      return this;
    }
    /**
     * <pre>
     * 医保登记RowiD
     * </pre>
     *
     * <code>string insuAdmDr = 20;</code>
     */
    public Builder clearInsuAdmDr() {
      
      insuAdmDr_ = getDefaultInstance().getInsuAdmDr();
      onChanged();
      return this;
    }
    /**
     * <pre>
     * 医保登记RowiD
     * </pre>
     *
     * <code>string insuAdmDr = 20;</code>
     */
    public Builder setInsuAdmDrBytes(
        com.google.protobuf.ByteString value) {
      if (value == null) {
    throw new NullPointerException();
  }
  checkByteStringIsUtf8(value);
      
      insuAdmDr_ = value;
      onChanged();
      return this;
    }

    private java.lang.Object insUploadFeeResp_ = "";
    /**
     * <pre>
     * 上传费用接口返回数据
     * </pre>
     *
     * <code>string insUploadFeeResp = 21;</code>
     */
    public java.lang.String getInsUploadFeeResp() {
      java.lang.Object ref = insUploadFeeResp_;
      if (!(ref instanceof java.lang.String)) {
        com.google.protobuf.ByteString bs =
            (com.google.protobuf.ByteString) ref;
        java.lang.String s = bs.toStringUtf8();
        insUploadFeeResp_ = s;
        return s;
      } else {
        return (java.lang.String) ref;
      }
    }
    /**
     * <pre>
     * 上传费用接口返回数据
     * </pre>
     *
     * <code>string insUploadFeeResp = 21;</code>
     */
    public com.google.protobuf.ByteString
        getInsUploadFeeRespBytes() {
      java.lang.Object ref = insUploadFeeResp_;
      if (ref instanceof String) {
        com.google.protobuf.ByteString b = 
            com.google.protobuf.ByteString.copyFromUtf8(
                (java.lang.String) ref);
        insUploadFeeResp_ = b;
        return b;
      } else {
        return (com.google.protobuf.ByteString) ref;
      }
    }
    /**
     * <pre>
     * 上传费用接口返回数据
     * </pre>
     *
     * <code>string insUploadFeeResp = 21;</code>
     */
    public Builder setInsUploadFeeResp(
        java.lang.String value) {
      if (value == null) {
    throw new NullPointerException();
  }
  
      insUploadFeeResp_ = value;
      onChanged();
      return this;
    }
    /**
     * <pre>
     * 上传费用接口返回数据
     * </pre>
     *
     * <code>string insUploadFeeResp = 21;</code>
     */
    public Builder clearInsUploadFeeResp() {
      
      insUploadFeeResp_ = getDefaultInstance().getInsUploadFeeResp();
      onChanged();
      return this;
    }
    /**
     * <pre>
     * 上传费用接口返回数据
     * </pre>
     *
     * <code>string insUploadFeeResp = 21;</code>
     */
    public Builder setInsUploadFeeRespBytes(
        com.google.protobuf.ByteString value) {
      if (value == null) {
    throw new NullPointerException();
  }
  checkByteStringIsUtf8(value);
      
      insUploadFeeResp_ = value;
      onChanged();
      return this;
    }

    private int terminal_ ;
    /**
     * <pre>
     *下单列表
     * </pre>
     *
     * <code>int32 terminal = 22;</code>
     */
    public int getTerminal() {
      return terminal_;
    }
    /**
     * <pre>
     *下单列表
     * </pre>
     *
     * <code>int32 terminal = 22;</code>
     */
    public Builder setTerminal(int value) {
      
      terminal_ = value;
      onChanged();
      return this;
    }
    /**
     * <pre>
     *下单列表
     * </pre>
     *
     * <code>int32 terminal = 22;</code>
     */
    public Builder clearTerminal() {
      
      terminal_ = 0;
      onChanged();
      return this;
    }
    public final Builder setUnknownFields(
        final com.google.protobuf.UnknownFieldSet unknownFields) {
      return this;
    }

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


    // @@protoc_insertion_point(builder_scope:com.ywt.gapi.order.CreateOutpatientOrderRequest)
  }

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

  public static com.ywt.gapi.order.CreateOutpatientOrderRequest getDefaultInstance() {
    return DEFAULT_INSTANCE;
  }

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

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

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

  public com.ywt.gapi.order.CreateOutpatientOrderRequest getDefaultInstanceForType() {
    return DEFAULT_INSTANCE;
  }

}

