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

package com.ywt.gapi.order;

/**
 * Protobuf type {@code com.ywt.gapi.order.CreateCheckUpOrderRequest}
 */
public  final class CreateCheckUpOrderRequest extends
    com.google.protobuf.GeneratedMessageV3 implements
    // @@protoc_insertion_point(message_implements:com.ywt.gapi.order.CreateCheckUpOrderRequest)
    CreateCheckUpOrderRequestOrBuilder {
  // Use CreateCheckUpOrderRequest.newBuilder() to construct.
  private CreateCheckUpOrderRequest(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {
    super(builder);
  }
  private CreateCheckUpOrderRequest() {
    userId_ = 0;
    patientName_ = "";
    sex_ = "";
    regNo_ = "";
    admId_ = "";
    amount_ = 0;
    checkDate_ = "";
    setsDesc_ = "";
    hospitalId_ = 0;
  }

  @java.lang.Override
  public final com.google.protobuf.UnknownFieldSet
  getUnknownFields() {
    return com.google.protobuf.UnknownFieldSet.getDefaultInstance();
  }
  private CreateCheckUpOrderRequest(
      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 8: {

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

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

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

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

            admId_ = s;
            break;
          }
          case 48: {

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

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

            setsDesc_ = s;
            break;
          }
          case 72: {

            hospitalId_ = 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_CreateCheckUpOrderRequest_descriptor;
  }

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

  public static final int USERID_FIELD_NUMBER = 1;
  private int userId_;
  /**
   * <pre>
   * 用户ID
   * </pre>
   *
   * <code>int32 userId = 1;</code>
   */
  public int getUserId() {
    return userId_;
  }

  public static final int PATIENTNAME_FIELD_NUMBER = 2;
  private volatile java.lang.Object patientName_;
  /**
   * <pre>
   * 患者姓名
   * </pre>
   *
   * <code>string patientName = 2;</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;
    }
  }
  /**
   * <pre>
   * 患者姓名
   * </pre>
   *
   * <code>string patientName = 2;</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 SEX_FIELD_NUMBER = 3;
  private volatile java.lang.Object sex_;
  /**
   * <pre>
   * 性别
   * </pre>
   *
   * <code>string sex = 3;</code>
   */
  public java.lang.String getSex() {
    java.lang.Object ref = sex_;
    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();
      sex_ = s;
      return s;
    }
  }
  /**
   * <pre>
   * 性别
   * </pre>
   *
   * <code>string sex = 3;</code>
   */
  public com.google.protobuf.ByteString
      getSexBytes() {
    java.lang.Object ref = sex_;
    if (ref instanceof java.lang.String) {
      com.google.protobuf.ByteString b = 
          com.google.protobuf.ByteString.copyFromUtf8(
              (java.lang.String) ref);
      sex_ = b;
      return b;
    } else {
      return (com.google.protobuf.ByteString) ref;
    }
  }

  public static final int REGNO_FIELD_NUMBER = 4;
  private volatile java.lang.Object regNo_;
  /**
   * <pre>
   * 登记号
   * </pre>
   *
   * <code>string regNo = 4;</code>
   */
  public java.lang.String getRegNo() {
    java.lang.Object ref = regNo_;
    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();
      regNo_ = s;
      return s;
    }
  }
  /**
   * <pre>
   * 登记号
   * </pre>
   *
   * <code>string regNo = 4;</code>
   */
  public com.google.protobuf.ByteString
      getRegNoBytes() {
    java.lang.Object ref = regNo_;
    if (ref instanceof java.lang.String) {
      com.google.protobuf.ByteString b = 
          com.google.protobuf.ByteString.copyFromUtf8(
              (java.lang.String) ref);
      regNo_ = b;
      return b;
    } else {
      return (com.google.protobuf.ByteString) ref;
    }
  }

  public static final int ADMID_FIELD_NUMBER = 5;
  private volatile java.lang.Object admId_;
  /**
   * <pre>
   * 就诊ID
   * </pre>
   *
   * <code>string admId = 5;</code>
   */
  public java.lang.String getAdmId() {
    java.lang.Object ref = admId_;
    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();
      admId_ = s;
      return s;
    }
  }
  /**
   * <pre>
   * 就诊ID
   * </pre>
   *
   * <code>string admId = 5;</code>
   */
  public com.google.protobuf.ByteString
      getAdmIdBytes() {
    java.lang.Object ref = admId_;
    if (ref instanceof java.lang.String) {
      com.google.protobuf.ByteString b = 
          com.google.protobuf.ByteString.copyFromUtf8(
              (java.lang.String) ref);
      admId_ = b;
      return b;
    } else {
      return (com.google.protobuf.ByteString) ref;
    }
  }

  public static final int AMOUNT_FIELD_NUMBER = 6;
  private int amount_;
  /**
   * <pre>
   * 订单金额
   * </pre>
   *
   * <code>int32 amount = 6;</code>
   */
  public int getAmount() {
    return amount_;
  }

  public static final int CHECKDATE_FIELD_NUMBER = 7;
  private volatile java.lang.Object checkDate_;
  /**
   * <pre>
   *体检日期
   * </pre>
   *
   * <code>string checkDate = 7;</code>
   */
  public java.lang.String getCheckDate() {
    java.lang.Object ref = checkDate_;
    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();
      checkDate_ = s;
      return s;
    }
  }
  /**
   * <pre>
   *体检日期
   * </pre>
   *
   * <code>string checkDate = 7;</code>
   */
  public com.google.protobuf.ByteString
      getCheckDateBytes() {
    java.lang.Object ref = checkDate_;
    if (ref instanceof java.lang.String) {
      com.google.protobuf.ByteString b = 
          com.google.protobuf.ByteString.copyFromUtf8(
              (java.lang.String) ref);
      checkDate_ = b;
      return b;
    } else {
      return (com.google.protobuf.ByteString) ref;
    }
  }

  public static final int SETSDESC_FIELD_NUMBER = 8;
  private volatile java.lang.Object setsDesc_;
  /**
   * <pre>
   *套餐描述
   * </pre>
   *
   * <code>string setsDesc = 8;</code>
   */
  public java.lang.String getSetsDesc() {
    java.lang.Object ref = setsDesc_;
    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();
      setsDesc_ = s;
      return s;
    }
  }
  /**
   * <pre>
   *套餐描述
   * </pre>
   *
   * <code>string setsDesc = 8;</code>
   */
  public com.google.protobuf.ByteString
      getSetsDescBytes() {
    java.lang.Object ref = setsDesc_;
    if (ref instanceof java.lang.String) {
      com.google.protobuf.ByteString b = 
          com.google.protobuf.ByteString.copyFromUtf8(
              (java.lang.String) ref);
      setsDesc_ = b;
      return b;
    } else {
      return (com.google.protobuf.ByteString) ref;
    }
  }

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

  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 (userId_ != 0) {
      output.writeInt32(1, userId_);
    }
    if (!getPatientNameBytes().isEmpty()) {
      com.google.protobuf.GeneratedMessageV3.writeString(output, 2, patientName_);
    }
    if (!getSexBytes().isEmpty()) {
      com.google.protobuf.GeneratedMessageV3.writeString(output, 3, sex_);
    }
    if (!getRegNoBytes().isEmpty()) {
      com.google.protobuf.GeneratedMessageV3.writeString(output, 4, regNo_);
    }
    if (!getAdmIdBytes().isEmpty()) {
      com.google.protobuf.GeneratedMessageV3.writeString(output, 5, admId_);
    }
    if (amount_ != 0) {
      output.writeInt32(6, amount_);
    }
    if (!getCheckDateBytes().isEmpty()) {
      com.google.protobuf.GeneratedMessageV3.writeString(output, 7, checkDate_);
    }
    if (!getSetsDescBytes().isEmpty()) {
      com.google.protobuf.GeneratedMessageV3.writeString(output, 8, setsDesc_);
    }
    if (hospitalId_ != 0) {
      output.writeInt32(9, hospitalId_);
    }
  }

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

    size = 0;
    if (userId_ != 0) {
      size += com.google.protobuf.CodedOutputStream
        .computeInt32Size(1, userId_);
    }
    if (!getPatientNameBytes().isEmpty()) {
      size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, patientName_);
    }
    if (!getSexBytes().isEmpty()) {
      size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, sex_);
    }
    if (!getRegNoBytes().isEmpty()) {
      size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, regNo_);
    }
    if (!getAdmIdBytes().isEmpty()) {
      size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, admId_);
    }
    if (amount_ != 0) {
      size += com.google.protobuf.CodedOutputStream
        .computeInt32Size(6, amount_);
    }
    if (!getCheckDateBytes().isEmpty()) {
      size += com.google.protobuf.GeneratedMessageV3.computeStringSize(7, checkDate_);
    }
    if (!getSetsDescBytes().isEmpty()) {
      size += com.google.protobuf.GeneratedMessageV3.computeStringSize(8, setsDesc_);
    }
    if (hospitalId_ != 0) {
      size += com.google.protobuf.CodedOutputStream
        .computeInt32Size(9, hospitalId_);
    }
    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.CreateCheckUpOrderRequest)) {
      return super.equals(obj);
    }
    com.ywt.gapi.order.CreateCheckUpOrderRequest other = (com.ywt.gapi.order.CreateCheckUpOrderRequest) obj;

    boolean result = true;
    result = result && (getUserId()
        == other.getUserId());
    result = result && getPatientName()
        .equals(other.getPatientName());
    result = result && getSex()
        .equals(other.getSex());
    result = result && getRegNo()
        .equals(other.getRegNo());
    result = result && getAdmId()
        .equals(other.getAdmId());
    result = result && (getAmount()
        == other.getAmount());
    result = result && getCheckDate()
        .equals(other.getCheckDate());
    result = result && getSetsDesc()
        .equals(other.getSetsDesc());
    result = result && (getHospitalId()
        == other.getHospitalId());
    return result;
  }

  @java.lang.Override
  public int hashCode() {
    if (memoizedHashCode != 0) {
      return memoizedHashCode;
    }
    int hash = 41;
    hash = (19 * hash) + getDescriptor().hashCode();
    hash = (37 * hash) + USERID_FIELD_NUMBER;
    hash = (53 * hash) + getUserId();
    hash = (37 * hash) + PATIENTNAME_FIELD_NUMBER;
    hash = (53 * hash) + getPatientName().hashCode();
    hash = (37 * hash) + SEX_FIELD_NUMBER;
    hash = (53 * hash) + getSex().hashCode();
    hash = (37 * hash) + REGNO_FIELD_NUMBER;
    hash = (53 * hash) + getRegNo().hashCode();
    hash = (37 * hash) + ADMID_FIELD_NUMBER;
    hash = (53 * hash) + getAdmId().hashCode();
    hash = (37 * hash) + AMOUNT_FIELD_NUMBER;
    hash = (53 * hash) + getAmount();
    hash = (37 * hash) + CHECKDATE_FIELD_NUMBER;
    hash = (53 * hash) + getCheckDate().hashCode();
    hash = (37 * hash) + SETSDESC_FIELD_NUMBER;
    hash = (53 * hash) + getSetsDesc().hashCode();
    hash = (37 * hash) + HOSPITALID_FIELD_NUMBER;
    hash = (53 * hash) + getHospitalId();
    hash = (29 * hash) + unknownFields.hashCode();
    memoizedHashCode = hash;
    return hash;
  }

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

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

    // Construct using com.ywt.gapi.order.CreateCheckUpOrderRequest.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();
      userId_ = 0;

      patientName_ = "";

      sex_ = "";

      regNo_ = "";

      admId_ = "";

      amount_ = 0;

      checkDate_ = "";

      setsDesc_ = "";

      hospitalId_ = 0;

      return this;
    }

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

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

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

    public com.ywt.gapi.order.CreateCheckUpOrderRequest buildPartial() {
      com.ywt.gapi.order.CreateCheckUpOrderRequest result = new com.ywt.gapi.order.CreateCheckUpOrderRequest(this);
      result.userId_ = userId_;
      result.patientName_ = patientName_;
      result.sex_ = sex_;
      result.regNo_ = regNo_;
      result.admId_ = admId_;
      result.amount_ = amount_;
      result.checkDate_ = checkDate_;
      result.setsDesc_ = setsDesc_;
      result.hospitalId_ = hospitalId_;
      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.CreateCheckUpOrderRequest) {
        return mergeFrom((com.ywt.gapi.order.CreateCheckUpOrderRequest)other);
      } else {
        super.mergeFrom(other);
        return this;
      }
    }

    public Builder mergeFrom(com.ywt.gapi.order.CreateCheckUpOrderRequest other) {
      if (other == com.ywt.gapi.order.CreateCheckUpOrderRequest.getDefaultInstance()) return this;
      if (other.getUserId() != 0) {
        setUserId(other.getUserId());
      }
      if (!other.getPatientName().isEmpty()) {
        patientName_ = other.patientName_;
        onChanged();
      }
      if (!other.getSex().isEmpty()) {
        sex_ = other.sex_;
        onChanged();
      }
      if (!other.getRegNo().isEmpty()) {
        regNo_ = other.regNo_;
        onChanged();
      }
      if (!other.getAdmId().isEmpty()) {
        admId_ = other.admId_;
        onChanged();
      }
      if (other.getAmount() != 0) {
        setAmount(other.getAmount());
      }
      if (!other.getCheckDate().isEmpty()) {
        checkDate_ = other.checkDate_;
        onChanged();
      }
      if (!other.getSetsDesc().isEmpty()) {
        setsDesc_ = other.setsDesc_;
        onChanged();
      }
      if (other.getHospitalId() != 0) {
        setHospitalId(other.getHospitalId());
      }
      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.CreateCheckUpOrderRequest parsedMessage = null;
      try {
        parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
      } catch (com.google.protobuf.InvalidProtocolBufferException e) {
        parsedMessage = (com.ywt.gapi.order.CreateCheckUpOrderRequest) e.getUnfinishedMessage();
        throw e.unwrapIOException();
      } finally {
        if (parsedMessage != null) {
          mergeFrom(parsedMessage);
        }
      }
      return this;
    }

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

    private java.lang.Object patientName_ = "";
    /**
     * <pre>
     * 患者姓名
     * </pre>
     *
     * <code>string patientName = 2;</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;
      }
    }
    /**
     * <pre>
     * 患者姓名
     * </pre>
     *
     * <code>string patientName = 2;</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;
      }
    }
    /**
     * <pre>
     * 患者姓名
     * </pre>
     *
     * <code>string patientName = 2;</code>
     */
    public Builder setPatientName(
        java.lang.String value) {
      if (value == null) {
    throw new NullPointerException();
  }
  
      patientName_ = value;
      onChanged();
      return this;
    }
    /**
     * <pre>
     * 患者姓名
     * </pre>
     *
     * <code>string patientName = 2;</code>
     */
    public Builder clearPatientName() {
      
      patientName_ = getDefaultInstance().getPatientName();
      onChanged();
      return this;
    }
    /**
     * <pre>
     * 患者姓名
     * </pre>
     *
     * <code>string patientName = 2;</code>
     */
    public Builder setPatientNameBytes(
        com.google.protobuf.ByteString value) {
      if (value == null) {
    throw new NullPointerException();
  }
  checkByteStringIsUtf8(value);
      
      patientName_ = value;
      onChanged();
      return this;
    }

    private java.lang.Object sex_ = "";
    /**
     * <pre>
     * 性别
     * </pre>
     *
     * <code>string sex = 3;</code>
     */
    public java.lang.String getSex() {
      java.lang.Object ref = sex_;
      if (!(ref instanceof java.lang.String)) {
        com.google.protobuf.ByteString bs =
            (com.google.protobuf.ByteString) ref;
        java.lang.String s = bs.toStringUtf8();
        sex_ = s;
        return s;
      } else {
        return (java.lang.String) ref;
      }
    }
    /**
     * <pre>
     * 性别
     * </pre>
     *
     * <code>string sex = 3;</code>
     */
    public com.google.protobuf.ByteString
        getSexBytes() {
      java.lang.Object ref = sex_;
      if (ref instanceof String) {
        com.google.protobuf.ByteString b = 
            com.google.protobuf.ByteString.copyFromUtf8(
                (java.lang.String) ref);
        sex_ = b;
        return b;
      } else {
        return (com.google.protobuf.ByteString) ref;
      }
    }
    /**
     * <pre>
     * 性别
     * </pre>
     *
     * <code>string sex = 3;</code>
     */
    public Builder setSex(
        java.lang.String value) {
      if (value == null) {
    throw new NullPointerException();
  }
  
      sex_ = value;
      onChanged();
      return this;
    }
    /**
     * <pre>
     * 性别
     * </pre>
     *
     * <code>string sex = 3;</code>
     */
    public Builder clearSex() {
      
      sex_ = getDefaultInstance().getSex();
      onChanged();
      return this;
    }
    /**
     * <pre>
     * 性别
     * </pre>
     *
     * <code>string sex = 3;</code>
     */
    public Builder setSexBytes(
        com.google.protobuf.ByteString value) {
      if (value == null) {
    throw new NullPointerException();
  }
  checkByteStringIsUtf8(value);
      
      sex_ = value;
      onChanged();
      return this;
    }

    private java.lang.Object regNo_ = "";
    /**
     * <pre>
     * 登记号
     * </pre>
     *
     * <code>string regNo = 4;</code>
     */
    public java.lang.String getRegNo() {
      java.lang.Object ref = regNo_;
      if (!(ref instanceof java.lang.String)) {
        com.google.protobuf.ByteString bs =
            (com.google.protobuf.ByteString) ref;
        java.lang.String s = bs.toStringUtf8();
        regNo_ = s;
        return s;
      } else {
        return (java.lang.String) ref;
      }
    }
    /**
     * <pre>
     * 登记号
     * </pre>
     *
     * <code>string regNo = 4;</code>
     */
    public com.google.protobuf.ByteString
        getRegNoBytes() {
      java.lang.Object ref = regNo_;
      if (ref instanceof String) {
        com.google.protobuf.ByteString b = 
            com.google.protobuf.ByteString.copyFromUtf8(
                (java.lang.String) ref);
        regNo_ = b;
        return b;
      } else {
        return (com.google.protobuf.ByteString) ref;
      }
    }
    /**
     * <pre>
     * 登记号
     * </pre>
     *
     * <code>string regNo = 4;</code>
     */
    public Builder setRegNo(
        java.lang.String value) {
      if (value == null) {
    throw new NullPointerException();
  }
  
      regNo_ = value;
      onChanged();
      return this;
    }
    /**
     * <pre>
     * 登记号
     * </pre>
     *
     * <code>string regNo = 4;</code>
     */
    public Builder clearRegNo() {
      
      regNo_ = getDefaultInstance().getRegNo();
      onChanged();
      return this;
    }
    /**
     * <pre>
     * 登记号
     * </pre>
     *
     * <code>string regNo = 4;</code>
     */
    public Builder setRegNoBytes(
        com.google.protobuf.ByteString value) {
      if (value == null) {
    throw new NullPointerException();
  }
  checkByteStringIsUtf8(value);
      
      regNo_ = value;
      onChanged();
      return this;
    }

    private java.lang.Object admId_ = "";
    /**
     * <pre>
     * 就诊ID
     * </pre>
     *
     * <code>string admId = 5;</code>
     */
    public java.lang.String getAdmId() {
      java.lang.Object ref = admId_;
      if (!(ref instanceof java.lang.String)) {
        com.google.protobuf.ByteString bs =
            (com.google.protobuf.ByteString) ref;
        java.lang.String s = bs.toStringUtf8();
        admId_ = s;
        return s;
      } else {
        return (java.lang.String) ref;
      }
    }
    /**
     * <pre>
     * 就诊ID
     * </pre>
     *
     * <code>string admId = 5;</code>
     */
    public com.google.protobuf.ByteString
        getAdmIdBytes() {
      java.lang.Object ref = admId_;
      if (ref instanceof String) {
        com.google.protobuf.ByteString b = 
            com.google.protobuf.ByteString.copyFromUtf8(
                (java.lang.String) ref);
        admId_ = b;
        return b;
      } else {
        return (com.google.protobuf.ByteString) ref;
      }
    }
    /**
     * <pre>
     * 就诊ID
     * </pre>
     *
     * <code>string admId = 5;</code>
     */
    public Builder setAdmId(
        java.lang.String value) {
      if (value == null) {
    throw new NullPointerException();
  }
  
      admId_ = value;
      onChanged();
      return this;
    }
    /**
     * <pre>
     * 就诊ID
     * </pre>
     *
     * <code>string admId = 5;</code>
     */
    public Builder clearAdmId() {
      
      admId_ = getDefaultInstance().getAdmId();
      onChanged();
      return this;
    }
    /**
     * <pre>
     * 就诊ID
     * </pre>
     *
     * <code>string admId = 5;</code>
     */
    public Builder setAdmIdBytes(
        com.google.protobuf.ByteString value) {
      if (value == null) {
    throw new NullPointerException();
  }
  checkByteStringIsUtf8(value);
      
      admId_ = value;
      onChanged();
      return this;
    }

    private int amount_ ;
    /**
     * <pre>
     * 订单金额
     * </pre>
     *
     * <code>int32 amount = 6;</code>
     */
    public int getAmount() {
      return amount_;
    }
    /**
     * <pre>
     * 订单金额
     * </pre>
     *
     * <code>int32 amount = 6;</code>
     */
    public Builder setAmount(int value) {
      
      amount_ = value;
      onChanged();
      return this;
    }
    /**
     * <pre>
     * 订单金额
     * </pre>
     *
     * <code>int32 amount = 6;</code>
     */
    public Builder clearAmount() {
      
      amount_ = 0;
      onChanged();
      return this;
    }

    private java.lang.Object checkDate_ = "";
    /**
     * <pre>
     *体检日期
     * </pre>
     *
     * <code>string checkDate = 7;</code>
     */
    public java.lang.String getCheckDate() {
      java.lang.Object ref = checkDate_;
      if (!(ref instanceof java.lang.String)) {
        com.google.protobuf.ByteString bs =
            (com.google.protobuf.ByteString) ref;
        java.lang.String s = bs.toStringUtf8();
        checkDate_ = s;
        return s;
      } else {
        return (java.lang.String) ref;
      }
    }
    /**
     * <pre>
     *体检日期
     * </pre>
     *
     * <code>string checkDate = 7;</code>
     */
    public com.google.protobuf.ByteString
        getCheckDateBytes() {
      java.lang.Object ref = checkDate_;
      if (ref instanceof String) {
        com.google.protobuf.ByteString b = 
            com.google.protobuf.ByteString.copyFromUtf8(
                (java.lang.String) ref);
        checkDate_ = b;
        return b;
      } else {
        return (com.google.protobuf.ByteString) ref;
      }
    }
    /**
     * <pre>
     *体检日期
     * </pre>
     *
     * <code>string checkDate = 7;</code>
     */
    public Builder setCheckDate(
        java.lang.String value) {
      if (value == null) {
    throw new NullPointerException();
  }
  
      checkDate_ = value;
      onChanged();
      return this;
    }
    /**
     * <pre>
     *体检日期
     * </pre>
     *
     * <code>string checkDate = 7;</code>
     */
    public Builder clearCheckDate() {
      
      checkDate_ = getDefaultInstance().getCheckDate();
      onChanged();
      return this;
    }
    /**
     * <pre>
     *体检日期
     * </pre>
     *
     * <code>string checkDate = 7;</code>
     */
    public Builder setCheckDateBytes(
        com.google.protobuf.ByteString value) {
      if (value == null) {
    throw new NullPointerException();
  }
  checkByteStringIsUtf8(value);
      
      checkDate_ = value;
      onChanged();
      return this;
    }

    private java.lang.Object setsDesc_ = "";
    /**
     * <pre>
     *套餐描述
     * </pre>
     *
     * <code>string setsDesc = 8;</code>
     */
    public java.lang.String getSetsDesc() {
      java.lang.Object ref = setsDesc_;
      if (!(ref instanceof java.lang.String)) {
        com.google.protobuf.ByteString bs =
            (com.google.protobuf.ByteString) ref;
        java.lang.String s = bs.toStringUtf8();
        setsDesc_ = s;
        return s;
      } else {
        return (java.lang.String) ref;
      }
    }
    /**
     * <pre>
     *套餐描述
     * </pre>
     *
     * <code>string setsDesc = 8;</code>
     */
    public com.google.protobuf.ByteString
        getSetsDescBytes() {
      java.lang.Object ref = setsDesc_;
      if (ref instanceof String) {
        com.google.protobuf.ByteString b = 
            com.google.protobuf.ByteString.copyFromUtf8(
                (java.lang.String) ref);
        setsDesc_ = b;
        return b;
      } else {
        return (com.google.protobuf.ByteString) ref;
      }
    }
    /**
     * <pre>
     *套餐描述
     * </pre>
     *
     * <code>string setsDesc = 8;</code>
     */
    public Builder setSetsDesc(
        java.lang.String value) {
      if (value == null) {
    throw new NullPointerException();
  }
  
      setsDesc_ = value;
      onChanged();
      return this;
    }
    /**
     * <pre>
     *套餐描述
     * </pre>
     *
     * <code>string setsDesc = 8;</code>
     */
    public Builder clearSetsDesc() {
      
      setsDesc_ = getDefaultInstance().getSetsDesc();
      onChanged();
      return this;
    }
    /**
     * <pre>
     *套餐描述
     * </pre>
     *
     * <code>string setsDesc = 8;</code>
     */
    public Builder setSetsDescBytes(
        com.google.protobuf.ByteString value) {
      if (value == null) {
    throw new NullPointerException();
  }
  checkByteStringIsUtf8(value);
      
      setsDesc_ = value;
      onChanged();
      return this;
    }

    private int hospitalId_ ;
    /**
     * <code>int32 hospitalId = 9;</code>
     */
    public int getHospitalId() {
      return hospitalId_;
    }
    /**
     * <code>int32 hospitalId = 9;</code>
     */
    public Builder setHospitalId(int value) {
      
      hospitalId_ = value;
      onChanged();
      return this;
    }
    /**
     * <code>int32 hospitalId = 9;</code>
     */
    public Builder clearHospitalId() {
      
      hospitalId_ = 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.CreateCheckUpOrderRequest)
  }

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

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

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

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

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

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

}

