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

package com.ywt.gapi.taihe.outpaitent;

/**
 * <pre>
 *更新门诊单信息请求
 * </pre>
 *
 * Protobuf type {@code com.ywt.gapi.taihe.outpaitent.UpdateOutpatientRequest}
 */
public final class UpdateOutpatientRequest extends
    com.google.protobuf.GeneratedMessageV3 implements
    // @@protoc_insertion_point(message_implements:com.ywt.gapi.taihe.outpaitent.UpdateOutpatientRequest)
    UpdateOutpatientRequestOrBuilder {
private static final long serialVersionUID = 0L;
  // Use UpdateOutpatientRequest.newBuilder() to construct.
  private UpdateOutpatientRequest(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {
    super(builder);
  }
  private UpdateOutpatientRequest() {
    insureKey_ = "";
    insureBizType_ = "";
    insureTreatmentType_ = "";
  }

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

  @java.lang.Override
  public final com.google.protobuf.UnknownFieldSet
  getUnknownFields() {
    return this.unknownFields;
  }
  private UpdateOutpatientRequest(
      com.google.protobuf.CodedInputStream input,
      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
      throws com.google.protobuf.InvalidProtocolBufferException {
    this();
    if (extensionRegistry == null) {
      throw new java.lang.NullPointerException();
    }
    com.google.protobuf.UnknownFieldSet.Builder unknownFields =
        com.google.protobuf.UnknownFieldSet.newBuilder();
    try {
      boolean done = false;
      while (!done) {
        int tag = input.readTag();
        switch (tag) {
          case 0:
            done = true;
            break;
          case 8: {

            orderId_ = input.readInt32();
            break;
          }
          case 16: {

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

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

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

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

            insureTreatmentType_ = s;
            break;
          }
          case 56: {

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

            postage_ = input.readInt32();
            break;
          }
          default: {
            if (!parseUnknownField(
                input, unknownFields, extensionRegistry, tag)) {
              done = true;
            }
            break;
          }
        }
      }
    } catch (com.google.protobuf.InvalidProtocolBufferException e) {
      throw e.setUnfinishedMessage(this);
    } catch (java.io.IOException e) {
      throw new com.google.protobuf.InvalidProtocolBufferException(
          e).setUnfinishedMessage(this);
    } finally {
      this.unknownFields = unknownFields.build();
      makeExtensionsImmutable();
    }
  }
  public static final com.google.protobuf.Descriptors.Descriptor
      getDescriptor() {
    return com.ywt.gapi.taihe.outpaitent.TaiheOutpaitentProto.internal_static_com_ywt_gapi_taihe_outpaitent_UpdateOutpatientRequest_descriptor;
  }

  @java.lang.Override
  protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
      internalGetFieldAccessorTable() {
    return com.ywt.gapi.taihe.outpaitent.TaiheOutpaitentProto.internal_static_com_ywt_gapi_taihe_outpaitent_UpdateOutpatientRequest_fieldAccessorTable
        .ensureFieldAccessorsInitialized(
            com.ywt.gapi.taihe.outpaitent.UpdateOutpatientRequest.class, com.ywt.gapi.taihe.outpaitent.UpdateOutpatientRequest.Builder.class);
  }

  public static final int ORDERID_FIELD_NUMBER = 1;
  private int orderId_;
  /**
   * <code>int32 orderId = 1;</code>
   * @return The orderId.
   */
  @java.lang.Override
  public int getOrderId() {
    return orderId_;
  }

  public static final int INDIVIDUAL_FIELD_NUMBER = 2;
  private int individual_;
  /**
   * <code>int32 individual = 2;</code>
   * @return The individual.
   */
  @java.lang.Override
  public int getIndividual() {
    return individual_;
  }

  public static final int REIMBURSEMENT_FIELD_NUMBER = 3;
  private int reimbursement_;
  /**
   * <code>int32 reimbursement = 3;</code>
   * @return The reimbursement.
   */
  @java.lang.Override
  public int getReimbursement() {
    return reimbursement_;
  }

  public static final int INSUREKEY_FIELD_NUMBER = 4;
  private volatile java.lang.Object insureKey_;
  /**
   * <code>string insureKey = 4;</code>
   * @return The insureKey.
   */
  @java.lang.Override
  public java.lang.String getInsureKey() {
    java.lang.Object ref = insureKey_;
    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();
      insureKey_ = s;
      return s;
    }
  }
  /**
   * <code>string insureKey = 4;</code>
   * @return The bytes for insureKey.
   */
  @java.lang.Override
  public com.google.protobuf.ByteString
      getInsureKeyBytes() {
    java.lang.Object ref = insureKey_;
    if (ref instanceof java.lang.String) {
      com.google.protobuf.ByteString b = 
          com.google.protobuf.ByteString.copyFromUtf8(
              (java.lang.String) ref);
      insureKey_ = b;
      return b;
    } else {
      return (com.google.protobuf.ByteString) ref;
    }
  }

  public static final int INSUREBIZTYPE_FIELD_NUMBER = 5;
  private volatile java.lang.Object insureBizType_;
  /**
   * <code>string insureBizType = 5;</code>
   * @return The insureBizType.
   */
  @java.lang.Override
  public java.lang.String getInsureBizType() {
    java.lang.Object ref = insureBizType_;
    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();
      insureBizType_ = s;
      return s;
    }
  }
  /**
   * <code>string insureBizType = 5;</code>
   * @return The bytes for insureBizType.
   */
  @java.lang.Override
  public com.google.protobuf.ByteString
      getInsureBizTypeBytes() {
    java.lang.Object ref = insureBizType_;
    if (ref instanceof java.lang.String) {
      com.google.protobuf.ByteString b = 
          com.google.protobuf.ByteString.copyFromUtf8(
              (java.lang.String) ref);
      insureBizType_ = b;
      return b;
    } else {
      return (com.google.protobuf.ByteString) ref;
    }
  }

  public static final int INSURETREATMENTTYPE_FIELD_NUMBER = 6;
  private volatile java.lang.Object insureTreatmentType_;
  /**
   * <code>string insureTreatmentType = 6;</code>
   * @return The insureTreatmentType.
   */
  @java.lang.Override
  public java.lang.String getInsureTreatmentType() {
    java.lang.Object ref = insureTreatmentType_;
    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();
      insureTreatmentType_ = s;
      return s;
    }
  }
  /**
   * <code>string insureTreatmentType = 6;</code>
   * @return The bytes for insureTreatmentType.
   */
  @java.lang.Override
  public com.google.protobuf.ByteString
      getInsureTreatmentTypeBytes() {
    java.lang.Object ref = insureTreatmentType_;
    if (ref instanceof java.lang.String) {
      com.google.protobuf.ByteString b = 
          com.google.protobuf.ByteString.copyFromUtf8(
              (java.lang.String) ref);
      insureTreatmentType_ = b;
      return b;
    } else {
      return (com.google.protobuf.ByteString) ref;
    }
  }

  public static final int DELIVERYMETHOD_FIELD_NUMBER = 7;
  private int deliveryMethod_;
  /**
   * <code>int32 deliveryMethod = 7;</code>
   * @return The deliveryMethod.
   */
  @java.lang.Override
  public int getDeliveryMethod() {
    return deliveryMethod_;
  }

  public static final int POSTAGE_FIELD_NUMBER = 8;
  private int postage_;
  /**
   * <code>int32 postage = 8;</code>
   * @return The postage.
   */
  @java.lang.Override
  public int getPostage() {
    return postage_;
  }

  private byte memoizedIsInitialized = -1;
  @java.lang.Override
  public final boolean isInitialized() {
    byte isInitialized = memoizedIsInitialized;
    if (isInitialized == 1) return true;
    if (isInitialized == 0) return false;

    memoizedIsInitialized = 1;
    return true;
  }

  @java.lang.Override
  public void writeTo(com.google.protobuf.CodedOutputStream output)
                      throws java.io.IOException {
    if (orderId_ != 0) {
      output.writeInt32(1, orderId_);
    }
    if (individual_ != 0) {
      output.writeInt32(2, individual_);
    }
    if (reimbursement_ != 0) {
      output.writeInt32(3, reimbursement_);
    }
    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(insureKey_)) {
      com.google.protobuf.GeneratedMessageV3.writeString(output, 4, insureKey_);
    }
    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(insureBizType_)) {
      com.google.protobuf.GeneratedMessageV3.writeString(output, 5, insureBizType_);
    }
    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(insureTreatmentType_)) {
      com.google.protobuf.GeneratedMessageV3.writeString(output, 6, insureTreatmentType_);
    }
    if (deliveryMethod_ != 0) {
      output.writeInt32(7, deliveryMethod_);
    }
    if (postage_ != 0) {
      output.writeInt32(8, postage_);
    }
    unknownFields.writeTo(output);
  }

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

    size = 0;
    if (orderId_ != 0) {
      size += com.google.protobuf.CodedOutputStream
        .computeInt32Size(1, orderId_);
    }
    if (individual_ != 0) {
      size += com.google.protobuf.CodedOutputStream
        .computeInt32Size(2, individual_);
    }
    if (reimbursement_ != 0) {
      size += com.google.protobuf.CodedOutputStream
        .computeInt32Size(3, reimbursement_);
    }
    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(insureKey_)) {
      size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, insureKey_);
    }
    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(insureBizType_)) {
      size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, insureBizType_);
    }
    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(insureTreatmentType_)) {
      size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, insureTreatmentType_);
    }
    if (deliveryMethod_ != 0) {
      size += com.google.protobuf.CodedOutputStream
        .computeInt32Size(7, deliveryMethod_);
    }
    if (postage_ != 0) {
      size += com.google.protobuf.CodedOutputStream
        .computeInt32Size(8, postage_);
    }
    size += unknownFields.getSerializedSize();
    memoizedSize = size;
    return size;
  }

  @java.lang.Override
  public boolean equals(final java.lang.Object obj) {
    if (obj == this) {
     return true;
    }
    if (!(obj instanceof com.ywt.gapi.taihe.outpaitent.UpdateOutpatientRequest)) {
      return super.equals(obj);
    }
    com.ywt.gapi.taihe.outpaitent.UpdateOutpatientRequest other = (com.ywt.gapi.taihe.outpaitent.UpdateOutpatientRequest) obj;

    if (getOrderId()
        != other.getOrderId()) return false;
    if (getIndividual()
        != other.getIndividual()) return false;
    if (getReimbursement()
        != other.getReimbursement()) return false;
    if (!getInsureKey()
        .equals(other.getInsureKey())) return false;
    if (!getInsureBizType()
        .equals(other.getInsureBizType())) return false;
    if (!getInsureTreatmentType()
        .equals(other.getInsureTreatmentType())) return false;
    if (getDeliveryMethod()
        != other.getDeliveryMethod()) return false;
    if (getPostage()
        != other.getPostage()) return false;
    if (!unknownFields.equals(other.unknownFields)) return false;
    return true;
  }

  @java.lang.Override
  public int hashCode() {
    if (memoizedHashCode != 0) {
      return memoizedHashCode;
    }
    int hash = 41;
    hash = (19 * hash) + getDescriptor().hashCode();
    hash = (37 * hash) + ORDERID_FIELD_NUMBER;
    hash = (53 * hash) + getOrderId();
    hash = (37 * hash) + INDIVIDUAL_FIELD_NUMBER;
    hash = (53 * hash) + getIndividual();
    hash = (37 * hash) + REIMBURSEMENT_FIELD_NUMBER;
    hash = (53 * hash) + getReimbursement();
    hash = (37 * hash) + INSUREKEY_FIELD_NUMBER;
    hash = (53 * hash) + getInsureKey().hashCode();
    hash = (37 * hash) + INSUREBIZTYPE_FIELD_NUMBER;
    hash = (53 * hash) + getInsureBizType().hashCode();
    hash = (37 * hash) + INSURETREATMENTTYPE_FIELD_NUMBER;
    hash = (53 * hash) + getInsureTreatmentType().hashCode();
    hash = (37 * hash) + DELIVERYMETHOD_FIELD_NUMBER;
    hash = (53 * hash) + getDeliveryMethod();
    hash = (37 * hash) + POSTAGE_FIELD_NUMBER;
    hash = (53 * hash) + getPostage();
    hash = (29 * hash) + unknownFields.hashCode();
    memoizedHashCode = hash;
    return hash;
  }

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

  @java.lang.Override
  public Builder newBuilderForType() { return newBuilder(); }
  public static Builder newBuilder() {
    return DEFAULT_INSTANCE.toBuilder();
  }
  public static Builder newBuilder(com.ywt.gapi.taihe.outpaitent.UpdateOutpatientRequest prototype) {
    return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
  }
  @java.lang.Override
  public Builder toBuilder() {
    return this == DEFAULT_INSTANCE
        ? new Builder() : new Builder().mergeFrom(this);
  }

  @java.lang.Override
  protected Builder newBuilderForType(
      com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
    Builder builder = new Builder(parent);
    return builder;
  }
  /**
   * <pre>
   *更新门诊单信息请求
   * </pre>
   *
   * Protobuf type {@code com.ywt.gapi.taihe.outpaitent.UpdateOutpatientRequest}
   */
  public static final class Builder extends
      com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements
      // @@protoc_insertion_point(builder_implements:com.ywt.gapi.taihe.outpaitent.UpdateOutpatientRequest)
      com.ywt.gapi.taihe.outpaitent.UpdateOutpatientRequestOrBuilder {
    public static final com.google.protobuf.Descriptors.Descriptor
        getDescriptor() {
      return com.ywt.gapi.taihe.outpaitent.TaiheOutpaitentProto.internal_static_com_ywt_gapi_taihe_outpaitent_UpdateOutpatientRequest_descriptor;
    }

    @java.lang.Override
    protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
        internalGetFieldAccessorTable() {
      return com.ywt.gapi.taihe.outpaitent.TaiheOutpaitentProto.internal_static_com_ywt_gapi_taihe_outpaitent_UpdateOutpatientRequest_fieldAccessorTable
          .ensureFieldAccessorsInitialized(
              com.ywt.gapi.taihe.outpaitent.UpdateOutpatientRequest.class, com.ywt.gapi.taihe.outpaitent.UpdateOutpatientRequest.Builder.class);
    }

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

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

      individual_ = 0;

      reimbursement_ = 0;

      insureKey_ = "";

      insureBizType_ = "";

      insureTreatmentType_ = "";

      deliveryMethod_ = 0;

      postage_ = 0;

      return this;
    }

    @java.lang.Override
    public com.google.protobuf.Descriptors.Descriptor
        getDescriptorForType() {
      return com.ywt.gapi.taihe.outpaitent.TaiheOutpaitentProto.internal_static_com_ywt_gapi_taihe_outpaitent_UpdateOutpatientRequest_descriptor;
    }

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

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

    @java.lang.Override
    public com.ywt.gapi.taihe.outpaitent.UpdateOutpatientRequest buildPartial() {
      com.ywt.gapi.taihe.outpaitent.UpdateOutpatientRequest result = new com.ywt.gapi.taihe.outpaitent.UpdateOutpatientRequest(this);
      result.orderId_ = orderId_;
      result.individual_ = individual_;
      result.reimbursement_ = reimbursement_;
      result.insureKey_ = insureKey_;
      result.insureBizType_ = insureBizType_;
      result.insureTreatmentType_ = insureTreatmentType_;
      result.deliveryMethod_ = deliveryMethod_;
      result.postage_ = postage_;
      onBuilt();
      return result;
    }

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

    public Builder mergeFrom(com.ywt.gapi.taihe.outpaitent.UpdateOutpatientRequest other) {
      if (other == com.ywt.gapi.taihe.outpaitent.UpdateOutpatientRequest.getDefaultInstance()) return this;
      if (other.getOrderId() != 0) {
        setOrderId(other.getOrderId());
      }
      if (other.getIndividual() != 0) {
        setIndividual(other.getIndividual());
      }
      if (other.getReimbursement() != 0) {
        setReimbursement(other.getReimbursement());
      }
      if (!other.getInsureKey().isEmpty()) {
        insureKey_ = other.insureKey_;
        onChanged();
      }
      if (!other.getInsureBizType().isEmpty()) {
        insureBizType_ = other.insureBizType_;
        onChanged();
      }
      if (!other.getInsureTreatmentType().isEmpty()) {
        insureTreatmentType_ = other.insureTreatmentType_;
        onChanged();
      }
      if (other.getDeliveryMethod() != 0) {
        setDeliveryMethod(other.getDeliveryMethod());
      }
      if (other.getPostage() != 0) {
        setPostage(other.getPostage());
      }
      this.mergeUnknownFields(other.unknownFields);
      onChanged();
      return this;
    }

    @java.lang.Override
    public final boolean isInitialized() {
      return true;
    }

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

    private int orderId_ ;
    /**
     * <code>int32 orderId = 1;</code>
     * @return The orderId.
     */
    @java.lang.Override
    public int getOrderId() {
      return orderId_;
    }
    /**
     * <code>int32 orderId = 1;</code>
     * @param value The orderId to set.
     * @return This builder for chaining.
     */
    public Builder setOrderId(int value) {
      
      orderId_ = value;
      onChanged();
      return this;
    }
    /**
     * <code>int32 orderId = 1;</code>
     * @return This builder for chaining.
     */
    public Builder clearOrderId() {
      
      orderId_ = 0;
      onChanged();
      return this;
    }

    private int individual_ ;
    /**
     * <code>int32 individual = 2;</code>
     * @return The individual.
     */
    @java.lang.Override
    public int getIndividual() {
      return individual_;
    }
    /**
     * <code>int32 individual = 2;</code>
     * @param value The individual to set.
     * @return This builder for chaining.
     */
    public Builder setIndividual(int value) {
      
      individual_ = value;
      onChanged();
      return this;
    }
    /**
     * <code>int32 individual = 2;</code>
     * @return This builder for chaining.
     */
    public Builder clearIndividual() {
      
      individual_ = 0;
      onChanged();
      return this;
    }

    private int reimbursement_ ;
    /**
     * <code>int32 reimbursement = 3;</code>
     * @return The reimbursement.
     */
    @java.lang.Override
    public int getReimbursement() {
      return reimbursement_;
    }
    /**
     * <code>int32 reimbursement = 3;</code>
     * @param value The reimbursement to set.
     * @return This builder for chaining.
     */
    public Builder setReimbursement(int value) {
      
      reimbursement_ = value;
      onChanged();
      return this;
    }
    /**
     * <code>int32 reimbursement = 3;</code>
     * @return This builder for chaining.
     */
    public Builder clearReimbursement() {
      
      reimbursement_ = 0;
      onChanged();
      return this;
    }

    private java.lang.Object insureKey_ = "";
    /**
     * <code>string insureKey = 4;</code>
     * @return The insureKey.
     */
    public java.lang.String getInsureKey() {
      java.lang.Object ref = insureKey_;
      if (!(ref instanceof java.lang.String)) {
        com.google.protobuf.ByteString bs =
            (com.google.protobuf.ByteString) ref;
        java.lang.String s = bs.toStringUtf8();
        insureKey_ = s;
        return s;
      } else {
        return (java.lang.String) ref;
      }
    }
    /**
     * <code>string insureKey = 4;</code>
     * @return The bytes for insureKey.
     */
    public com.google.protobuf.ByteString
        getInsureKeyBytes() {
      java.lang.Object ref = insureKey_;
      if (ref instanceof String) {
        com.google.protobuf.ByteString b = 
            com.google.protobuf.ByteString.copyFromUtf8(
                (java.lang.String) ref);
        insureKey_ = b;
        return b;
      } else {
        return (com.google.protobuf.ByteString) ref;
      }
    }
    /**
     * <code>string insureKey = 4;</code>
     * @param value The insureKey to set.
     * @return This builder for chaining.
     */
    public Builder setInsureKey(
        java.lang.String value) {
      if (value == null) {
    throw new NullPointerException();
  }
  
      insureKey_ = value;
      onChanged();
      return this;
    }
    /**
     * <code>string insureKey = 4;</code>
     * @return This builder for chaining.
     */
    public Builder clearInsureKey() {
      
      insureKey_ = getDefaultInstance().getInsureKey();
      onChanged();
      return this;
    }
    /**
     * <code>string insureKey = 4;</code>
     * @param value The bytes for insureKey to set.
     * @return This builder for chaining.
     */
    public Builder setInsureKeyBytes(
        com.google.protobuf.ByteString value) {
      if (value == null) {
    throw new NullPointerException();
  }
  checkByteStringIsUtf8(value);
      
      insureKey_ = value;
      onChanged();
      return this;
    }

    private java.lang.Object insureBizType_ = "";
    /**
     * <code>string insureBizType = 5;</code>
     * @return The insureBizType.
     */
    public java.lang.String getInsureBizType() {
      java.lang.Object ref = insureBizType_;
      if (!(ref instanceof java.lang.String)) {
        com.google.protobuf.ByteString bs =
            (com.google.protobuf.ByteString) ref;
        java.lang.String s = bs.toStringUtf8();
        insureBizType_ = s;
        return s;
      } else {
        return (java.lang.String) ref;
      }
    }
    /**
     * <code>string insureBizType = 5;</code>
     * @return The bytes for insureBizType.
     */
    public com.google.protobuf.ByteString
        getInsureBizTypeBytes() {
      java.lang.Object ref = insureBizType_;
      if (ref instanceof String) {
        com.google.protobuf.ByteString b = 
            com.google.protobuf.ByteString.copyFromUtf8(
                (java.lang.String) ref);
        insureBizType_ = b;
        return b;
      } else {
        return (com.google.protobuf.ByteString) ref;
      }
    }
    /**
     * <code>string insureBizType = 5;</code>
     * @param value The insureBizType to set.
     * @return This builder for chaining.
     */
    public Builder setInsureBizType(
        java.lang.String value) {
      if (value == null) {
    throw new NullPointerException();
  }
  
      insureBizType_ = value;
      onChanged();
      return this;
    }
    /**
     * <code>string insureBizType = 5;</code>
     * @return This builder for chaining.
     */
    public Builder clearInsureBizType() {
      
      insureBizType_ = getDefaultInstance().getInsureBizType();
      onChanged();
      return this;
    }
    /**
     * <code>string insureBizType = 5;</code>
     * @param value The bytes for insureBizType to set.
     * @return This builder for chaining.
     */
    public Builder setInsureBizTypeBytes(
        com.google.protobuf.ByteString value) {
      if (value == null) {
    throw new NullPointerException();
  }
  checkByteStringIsUtf8(value);
      
      insureBizType_ = value;
      onChanged();
      return this;
    }

    private java.lang.Object insureTreatmentType_ = "";
    /**
     * <code>string insureTreatmentType = 6;</code>
     * @return The insureTreatmentType.
     */
    public java.lang.String getInsureTreatmentType() {
      java.lang.Object ref = insureTreatmentType_;
      if (!(ref instanceof java.lang.String)) {
        com.google.protobuf.ByteString bs =
            (com.google.protobuf.ByteString) ref;
        java.lang.String s = bs.toStringUtf8();
        insureTreatmentType_ = s;
        return s;
      } else {
        return (java.lang.String) ref;
      }
    }
    /**
     * <code>string insureTreatmentType = 6;</code>
     * @return The bytes for insureTreatmentType.
     */
    public com.google.protobuf.ByteString
        getInsureTreatmentTypeBytes() {
      java.lang.Object ref = insureTreatmentType_;
      if (ref instanceof String) {
        com.google.protobuf.ByteString b = 
            com.google.protobuf.ByteString.copyFromUtf8(
                (java.lang.String) ref);
        insureTreatmentType_ = b;
        return b;
      } else {
        return (com.google.protobuf.ByteString) ref;
      }
    }
    /**
     * <code>string insureTreatmentType = 6;</code>
     * @param value The insureTreatmentType to set.
     * @return This builder for chaining.
     */
    public Builder setInsureTreatmentType(
        java.lang.String value) {
      if (value == null) {
    throw new NullPointerException();
  }
  
      insureTreatmentType_ = value;
      onChanged();
      return this;
    }
    /**
     * <code>string insureTreatmentType = 6;</code>
     * @return This builder for chaining.
     */
    public Builder clearInsureTreatmentType() {
      
      insureTreatmentType_ = getDefaultInstance().getInsureTreatmentType();
      onChanged();
      return this;
    }
    /**
     * <code>string insureTreatmentType = 6;</code>
     * @param value The bytes for insureTreatmentType to set.
     * @return This builder for chaining.
     */
    public Builder setInsureTreatmentTypeBytes(
        com.google.protobuf.ByteString value) {
      if (value == null) {
    throw new NullPointerException();
  }
  checkByteStringIsUtf8(value);
      
      insureTreatmentType_ = value;
      onChanged();
      return this;
    }

    private int deliveryMethod_ ;
    /**
     * <code>int32 deliveryMethod = 7;</code>
     * @return The deliveryMethod.
     */
    @java.lang.Override
    public int getDeliveryMethod() {
      return deliveryMethod_;
    }
    /**
     * <code>int32 deliveryMethod = 7;</code>
     * @param value The deliveryMethod to set.
     * @return This builder for chaining.
     */
    public Builder setDeliveryMethod(int value) {
      
      deliveryMethod_ = value;
      onChanged();
      return this;
    }
    /**
     * <code>int32 deliveryMethod = 7;</code>
     * @return This builder for chaining.
     */
    public Builder clearDeliveryMethod() {
      
      deliveryMethod_ = 0;
      onChanged();
      return this;
    }

    private int postage_ ;
    /**
     * <code>int32 postage = 8;</code>
     * @return The postage.
     */
    @java.lang.Override
    public int getPostage() {
      return postage_;
    }
    /**
     * <code>int32 postage = 8;</code>
     * @param value The postage to set.
     * @return This builder for chaining.
     */
    public Builder setPostage(int value) {
      
      postage_ = value;
      onChanged();
      return this;
    }
    /**
     * <code>int32 postage = 8;</code>
     * @return This builder for chaining.
     */
    public Builder clearPostage() {
      
      postage_ = 0;
      onChanged();
      return this;
    }
    @java.lang.Override
    public final Builder setUnknownFields(
        final com.google.protobuf.UnknownFieldSet unknownFields) {
      return super.setUnknownFields(unknownFields);
    }

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


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

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

  public static com.ywt.gapi.taihe.outpaitent.UpdateOutpatientRequest getDefaultInstance() {
    return DEFAULT_INSTANCE;
  }

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

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

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

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

}

