// 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_ = "";
  }

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

  @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 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: {
            String s = input.readStringRequireUtf8();

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

            insureBizType_ = s;
            break;
          }
          case 50: {
            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 TaiheOutpaitentProto.internal_static_com_ywt_gapi_taihe_outpaitent_UpdateOutpatientRequest_descriptor;
  }

  @Override
  protected FieldAccessorTable
      internalGetFieldAccessorTable() {
    return TaiheOutpaitentProto.internal_static_com_ywt_gapi_taihe_outpaitent_UpdateOutpatientRequest_fieldAccessorTable
        .ensureFieldAccessorsInitialized(
            UpdateOutpatientRequest.class, Builder.class);
  }

  public static final int ORDERID_FIELD_NUMBER = 1;
  private int orderId_;
  /**
   * <code>int32 orderId = 1;</code>
   * @return The orderId.
   */
  @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.
   */
  @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.
   */
  @Override
  public int getReimbursement() {
    return reimbursement_;
  }

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

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

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

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

    memoizedIsInitialized = 1;
    return true;
  }

  @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);
  }

  @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;
  }

  @Override
  public boolean equals(final Object obj) {
    if (obj == this) {
     return true;
    }
    if (!(obj instanceof UpdateOutpatientRequest)) {
      return super.equals(obj);
    }
    UpdateOutpatientRequest other = (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;
  }

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

  @Override
  public Builder newBuilderForType() { return newBuilder(); }
  public static Builder newBuilder() {
    return DEFAULT_INSTANCE.toBuilder();
  }
  public static Builder newBuilder(UpdateOutpatientRequest prototype) {
    return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
  }
  @Override
  public Builder toBuilder() {
    return this == DEFAULT_INSTANCE
        ? new Builder() : new Builder().mergeFrom(this);
  }

  @Override
  protected Builder newBuilderForType(
      BuilderParent parent) {
    Builder builder = new Builder(parent);
    return builder;
  }
  /**
   * <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 TaiheOutpaitentProto.internal_static_com_ywt_gapi_taihe_outpaitent_UpdateOutpatientRequest_descriptor;
    }

    @Override
    protected FieldAccessorTable
        internalGetFieldAccessorTable() {
      return TaiheOutpaitentProto.internal_static_com_ywt_gapi_taihe_outpaitent_UpdateOutpatientRequest_fieldAccessorTable
          .ensureFieldAccessorsInitialized(
              UpdateOutpatientRequest.class, Builder.class);
    }

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

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

      individual_ = 0;

      reimbursement_ = 0;

      insureKey_ = "";

      insureBizType_ = "";

      insureTreatmentType_ = "";

      deliveryMethod_ = 0;

      postage_ = 0;

      return this;
    }

    @Override
    public com.google.protobuf.Descriptors.Descriptor
        getDescriptorForType() {
      return TaiheOutpaitentProto.internal_static_com_ywt_gapi_taihe_outpaitent_UpdateOutpatientRequest_descriptor;
    }

    @Override
    public UpdateOutpatientRequest getDefaultInstanceForType() {
      return UpdateOutpatientRequest.getDefaultInstance();
    }

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

    @Override
    public UpdateOutpatientRequest buildPartial() {
      UpdateOutpatientRequest result = new 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;
    }

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

    public Builder mergeFrom(UpdateOutpatientRequest other) {
      if (other == 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;
    }

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

    @Override
    public Builder mergeFrom(
        com.google.protobuf.CodedInputStream input,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws java.io.IOException {
      UpdateOutpatientRequest parsedMessage = null;
      try {
        parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
      } catch (com.google.protobuf.InvalidProtocolBufferException e) {
        parsedMessage = (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.
     */
    @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.
     */
    @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.
     */
    @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 Object insureKey_ = "";
    /**
     * <code>string insureKey = 4;</code>
     * @return The insureKey.
     */
    public String getInsureKey() {
      Object ref = insureKey_;
      if (!(ref instanceof String)) {
        com.google.protobuf.ByteString bs =
            (com.google.protobuf.ByteString) ref;
        String s = bs.toStringUtf8();
        insureKey_ = s;
        return s;
      } else {
        return (String) ref;
      }
    }
    /**
     * <code>string insureKey = 4;</code>
     * @return The bytes for insureKey.
     */
    public com.google.protobuf.ByteString
        getInsureKeyBytes() {
      Object ref = insureKey_;
      if (ref instanceof String) {
        com.google.protobuf.ByteString b = 
            com.google.protobuf.ByteString.copyFromUtf8(
                (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(
        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 Object insureBizType_ = "";
    /**
     * <code>string insureBizType = 5;</code>
     * @return The insureBizType.
     */
    public String getInsureBizType() {
      Object ref = insureBizType_;
      if (!(ref instanceof String)) {
        com.google.protobuf.ByteString bs =
            (com.google.protobuf.ByteString) ref;
        String s = bs.toStringUtf8();
        insureBizType_ = s;
        return s;
      } else {
        return (String) ref;
      }
    }
    /**
     * <code>string insureBizType = 5;</code>
     * @return The bytes for insureBizType.
     */
    public com.google.protobuf.ByteString
        getInsureBizTypeBytes() {
      Object ref = insureBizType_;
      if (ref instanceof String) {
        com.google.protobuf.ByteString b = 
            com.google.protobuf.ByteString.copyFromUtf8(
                (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(
        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 Object insureTreatmentType_ = "";
    /**
     * <code>string insureTreatmentType = 6;</code>
     * @return The insureTreatmentType.
     */
    public String getInsureTreatmentType() {
      Object ref = insureTreatmentType_;
      if (!(ref instanceof String)) {
        com.google.protobuf.ByteString bs =
            (com.google.protobuf.ByteString) ref;
        String s = bs.toStringUtf8();
        insureTreatmentType_ = s;
        return s;
      } else {
        return (String) ref;
      }
    }
    /**
     * <code>string insureTreatmentType = 6;</code>
     * @return The bytes for insureTreatmentType.
     */
    public com.google.protobuf.ByteString
        getInsureTreatmentTypeBytes() {
      Object ref = insureTreatmentType_;
      if (ref instanceof String) {
        com.google.protobuf.ByteString b = 
            com.google.protobuf.ByteString.copyFromUtf8(
                (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(
        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.
     */
    @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.
     */
    @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;
    }
    @Override
    public final Builder setUnknownFields(
        final com.google.protobuf.UnknownFieldSet unknownFields) {
      return super.setUnknownFields(unknownFields);
    }

    @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 UpdateOutpatientRequest DEFAULT_INSTANCE;
  static {
    DEFAULT_INSTANCE = new UpdateOutpatientRequest();
  }

  public static UpdateOutpatientRequest getDefaultInstance() {
    return DEFAULT_INSTANCE;
  }

  private static final com.google.protobuf.Parser<UpdateOutpatientRequest>
      PARSER = new com.google.protobuf.AbstractParser<UpdateOutpatientRequest>() {
    @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;
  }

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

  @Override
  public UpdateOutpatientRequest getDefaultInstanceForType() {
    return DEFAULT_INSTANCE;
  }

}

