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

package com.ywt.gapi.taihe.register;

/**
 * Protobuf type {@code com.ywt.gapi.taihe.register.CalAdditionalFeeRequest}
 */
public final class CalAdditionalFeeRequest extends
    com.google.protobuf.GeneratedMessageV3 implements
    // @@protoc_insertion_point(message_implements:com.ywt.gapi.taihe.register.CalAdditionalFeeRequest)
    CalAdditionalFeeRequestOrBuilder {
private static final long serialVersionUID = 0L;
  // Use CalAdditionalFeeRequest.newBuilder() to construct.
  private CalAdditionalFeeRequest(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {
    super(builder);
  }
  private CalAdditionalFeeRequest() {
    doctorSessTypeCode_ = "";
    doctorSessTypeName_ = "";
  }

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

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

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

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

            registeredFee_ = input.readInt32();
            break;
          }
          case 32: {

            userId_ = input.readInt32();
            break;
          }
          case 40: {

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

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

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

            doctorSessTypeName_ = s;
            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.register.TaiheRegisterProto.internal_static_com_ywt_gapi_taihe_register_CalAdditionalFeeRequest_descriptor;
  }

  @java.lang.Override
  protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
      internalGetFieldAccessorTable() {
    return com.ywt.gapi.taihe.register.TaiheRegisterProto.internal_static_com_ywt_gapi_taihe_register_CalAdditionalFeeRequest_fieldAccessorTable
        .ensureFieldAccessorsInitialized(
            com.ywt.gapi.taihe.register.CalAdditionalFeeRequest.class, com.ywt.gapi.taihe.register.CalAdditionalFeeRequest.Builder.class);
  }

  public static final int MEDICALCARDID_FIELD_NUMBER = 1;
  private int medicalCardId_;
  /**
   * <code>int32 medicalCardId = 1;</code>
   * @return The medicalCardId.
   */
  @java.lang.Override
  public int getMedicalCardId() {
    return medicalCardId_;
  }

  public static final int MEDICALFEE_FIELD_NUMBER = 2;
  private int medicalFee_;
  /**
   * <code>int32 medicalFee = 2;</code>
   * @return The medicalFee.
   */
  @java.lang.Override
  public int getMedicalFee() {
    return medicalFee_;
  }

  public static final int REGISTEREDFEE_FIELD_NUMBER = 3;
  private int registeredFee_;
  /**
   * <code>int32 registeredFee = 3;</code>
   * @return The registeredFee.
   */
  @java.lang.Override
  public int getRegisteredFee() {
    return registeredFee_;
  }

  public static final int USERID_FIELD_NUMBER = 4;
  private int userId_;
  /**
   * <code>int32 userId = 4;</code>
   * @return The userId.
   */
  @java.lang.Override
  public int getUserId() {
    return userId_;
  }

  public static final int HOSPITALID_FIELD_NUMBER = 5;
  private int hospitalId_;
  /**
   * <code>int32 hospitalId = 5;</code>
   * @return The hospitalId.
   */
  @java.lang.Override
  public int getHospitalId() {
    return hospitalId_;
  }

  public static final int PERIOD_FIELD_NUMBER = 6;
  private int period_;
  /**
   * <code>int32 period = 6;</code>
   * @return The period.
   */
  @java.lang.Override
  public int getPeriod() {
    return period_;
  }

  public static final int DOCTORSESSTYPECODE_FIELD_NUMBER = 7;
  private volatile java.lang.Object doctorSessTypeCode_;
  /**
   * <pre>
   * 出诊级别code
   * </pre>
   *
   * <code>string doctorSessTypeCode = 7;</code>
   * @return The doctorSessTypeCode.
   */
  @java.lang.Override
  public java.lang.String getDoctorSessTypeCode() {
    java.lang.Object ref = doctorSessTypeCode_;
    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();
      doctorSessTypeCode_ = s;
      return s;
    }
  }
  /**
   * <pre>
   * 出诊级别code
   * </pre>
   *
   * <code>string doctorSessTypeCode = 7;</code>
   * @return The bytes for doctorSessTypeCode.
   */
  @java.lang.Override
  public com.google.protobuf.ByteString
      getDoctorSessTypeCodeBytes() {
    java.lang.Object ref = doctorSessTypeCode_;
    if (ref instanceof java.lang.String) {
      com.google.protobuf.ByteString b = 
          com.google.protobuf.ByteString.copyFromUtf8(
              (java.lang.String) ref);
      doctorSessTypeCode_ = b;
      return b;
    } else {
      return (com.google.protobuf.ByteString) ref;
    }
  }

  public static final int DOCTORSESSTYPENAME_FIELD_NUMBER = 8;
  private volatile java.lang.Object doctorSessTypeName_;
  /**
   * <pre>
   * 出诊级别name
   * </pre>
   *
   * <code>string doctorSessTypeName = 8;</code>
   * @return The doctorSessTypeName.
   */
  @java.lang.Override
  public java.lang.String getDoctorSessTypeName() {
    java.lang.Object ref = doctorSessTypeName_;
    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();
      doctorSessTypeName_ = s;
      return s;
    }
  }
  /**
   * <pre>
   * 出诊级别name
   * </pre>
   *
   * <code>string doctorSessTypeName = 8;</code>
   * @return The bytes for doctorSessTypeName.
   */
  @java.lang.Override
  public com.google.protobuf.ByteString
      getDoctorSessTypeNameBytes() {
    java.lang.Object ref = doctorSessTypeName_;
    if (ref instanceof java.lang.String) {
      com.google.protobuf.ByteString b = 
          com.google.protobuf.ByteString.copyFromUtf8(
              (java.lang.String) ref);
      doctorSessTypeName_ = b;
      return b;
    } else {
      return (com.google.protobuf.ByteString) ref;
    }
  }

  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 (medicalCardId_ != 0) {
      output.writeInt32(1, medicalCardId_);
    }
    if (medicalFee_ != 0) {
      output.writeInt32(2, medicalFee_);
    }
    if (registeredFee_ != 0) {
      output.writeInt32(3, registeredFee_);
    }
    if (userId_ != 0) {
      output.writeInt32(4, userId_);
    }
    if (hospitalId_ != 0) {
      output.writeInt32(5, hospitalId_);
    }
    if (period_ != 0) {
      output.writeInt32(6, period_);
    }
    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(doctorSessTypeCode_)) {
      com.google.protobuf.GeneratedMessageV3.writeString(output, 7, doctorSessTypeCode_);
    }
    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(doctorSessTypeName_)) {
      com.google.protobuf.GeneratedMessageV3.writeString(output, 8, doctorSessTypeName_);
    }
    unknownFields.writeTo(output);
  }

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

    size = 0;
    if (medicalCardId_ != 0) {
      size += com.google.protobuf.CodedOutputStream
        .computeInt32Size(1, medicalCardId_);
    }
    if (medicalFee_ != 0) {
      size += com.google.protobuf.CodedOutputStream
        .computeInt32Size(2, medicalFee_);
    }
    if (registeredFee_ != 0) {
      size += com.google.protobuf.CodedOutputStream
        .computeInt32Size(3, registeredFee_);
    }
    if (userId_ != 0) {
      size += com.google.protobuf.CodedOutputStream
        .computeInt32Size(4, userId_);
    }
    if (hospitalId_ != 0) {
      size += com.google.protobuf.CodedOutputStream
        .computeInt32Size(5, hospitalId_);
    }
    if (period_ != 0) {
      size += com.google.protobuf.CodedOutputStream
        .computeInt32Size(6, period_);
    }
    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(doctorSessTypeCode_)) {
      size += com.google.protobuf.GeneratedMessageV3.computeStringSize(7, doctorSessTypeCode_);
    }
    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(doctorSessTypeName_)) {
      size += com.google.protobuf.GeneratedMessageV3.computeStringSize(8, doctorSessTypeName_);
    }
    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.register.CalAdditionalFeeRequest)) {
      return super.equals(obj);
    }
    com.ywt.gapi.taihe.register.CalAdditionalFeeRequest other = (com.ywt.gapi.taihe.register.CalAdditionalFeeRequest) obj;

    if (getMedicalCardId()
        != other.getMedicalCardId()) return false;
    if (getMedicalFee()
        != other.getMedicalFee()) return false;
    if (getRegisteredFee()
        != other.getRegisteredFee()) return false;
    if (getUserId()
        != other.getUserId()) return false;
    if (getHospitalId()
        != other.getHospitalId()) return false;
    if (getPeriod()
        != other.getPeriod()) return false;
    if (!getDoctorSessTypeCode()
        .equals(other.getDoctorSessTypeCode())) return false;
    if (!getDoctorSessTypeName()
        .equals(other.getDoctorSessTypeName())) 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) + MEDICALCARDID_FIELD_NUMBER;
    hash = (53 * hash) + getMedicalCardId();
    hash = (37 * hash) + MEDICALFEE_FIELD_NUMBER;
    hash = (53 * hash) + getMedicalFee();
    hash = (37 * hash) + REGISTEREDFEE_FIELD_NUMBER;
    hash = (53 * hash) + getRegisteredFee();
    hash = (37 * hash) + USERID_FIELD_NUMBER;
    hash = (53 * hash) + getUserId();
    hash = (37 * hash) + HOSPITALID_FIELD_NUMBER;
    hash = (53 * hash) + getHospitalId();
    hash = (37 * hash) + PERIOD_FIELD_NUMBER;
    hash = (53 * hash) + getPeriod();
    hash = (37 * hash) + DOCTORSESSTYPECODE_FIELD_NUMBER;
    hash = (53 * hash) + getDoctorSessTypeCode().hashCode();
    hash = (37 * hash) + DOCTORSESSTYPENAME_FIELD_NUMBER;
    hash = (53 * hash) + getDoctorSessTypeName().hashCode();
    hash = (29 * hash) + unknownFields.hashCode();
    memoizedHashCode = hash;
    return hash;
  }

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

    @java.lang.Override
    protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
        internalGetFieldAccessorTable() {
      return com.ywt.gapi.taihe.register.TaiheRegisterProto.internal_static_com_ywt_gapi_taihe_register_CalAdditionalFeeRequest_fieldAccessorTable
          .ensureFieldAccessorsInitialized(
              com.ywt.gapi.taihe.register.CalAdditionalFeeRequest.class, com.ywt.gapi.taihe.register.CalAdditionalFeeRequest.Builder.class);
    }

    // Construct using com.ywt.gapi.taihe.register.CalAdditionalFeeRequest.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();
      medicalCardId_ = 0;

      medicalFee_ = 0;

      registeredFee_ = 0;

      userId_ = 0;

      hospitalId_ = 0;

      period_ = 0;

      doctorSessTypeCode_ = "";

      doctorSessTypeName_ = "";

      return this;
    }

    @java.lang.Override
    public com.google.protobuf.Descriptors.Descriptor
        getDescriptorForType() {
      return com.ywt.gapi.taihe.register.TaiheRegisterProto.internal_static_com_ywt_gapi_taihe_register_CalAdditionalFeeRequest_descriptor;
    }

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

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

    @java.lang.Override
    public com.ywt.gapi.taihe.register.CalAdditionalFeeRequest buildPartial() {
      com.ywt.gapi.taihe.register.CalAdditionalFeeRequest result = new com.ywt.gapi.taihe.register.CalAdditionalFeeRequest(this);
      result.medicalCardId_ = medicalCardId_;
      result.medicalFee_ = medicalFee_;
      result.registeredFee_ = registeredFee_;
      result.userId_ = userId_;
      result.hospitalId_ = hospitalId_;
      result.period_ = period_;
      result.doctorSessTypeCode_ = doctorSessTypeCode_;
      result.doctorSessTypeName_ = doctorSessTypeName_;
      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.register.CalAdditionalFeeRequest) {
        return mergeFrom((com.ywt.gapi.taihe.register.CalAdditionalFeeRequest)other);
      } else {
        super.mergeFrom(other);
        return this;
      }
    }

    public Builder mergeFrom(com.ywt.gapi.taihe.register.CalAdditionalFeeRequest other) {
      if (other == com.ywt.gapi.taihe.register.CalAdditionalFeeRequest.getDefaultInstance()) return this;
      if (other.getMedicalCardId() != 0) {
        setMedicalCardId(other.getMedicalCardId());
      }
      if (other.getMedicalFee() != 0) {
        setMedicalFee(other.getMedicalFee());
      }
      if (other.getRegisteredFee() != 0) {
        setRegisteredFee(other.getRegisteredFee());
      }
      if (other.getUserId() != 0) {
        setUserId(other.getUserId());
      }
      if (other.getHospitalId() != 0) {
        setHospitalId(other.getHospitalId());
      }
      if (other.getPeriod() != 0) {
        setPeriod(other.getPeriod());
      }
      if (!other.getDoctorSessTypeCode().isEmpty()) {
        doctorSessTypeCode_ = other.doctorSessTypeCode_;
        onChanged();
      }
      if (!other.getDoctorSessTypeName().isEmpty()) {
        doctorSessTypeName_ = other.doctorSessTypeName_;
        onChanged();
      }
      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.register.CalAdditionalFeeRequest parsedMessage = null;
      try {
        parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
      } catch (com.google.protobuf.InvalidProtocolBufferException e) {
        parsedMessage = (com.ywt.gapi.taihe.register.CalAdditionalFeeRequest) e.getUnfinishedMessage();
        throw e.unwrapIOException();
      } finally {
        if (parsedMessage != null) {
          mergeFrom(parsedMessage);
        }
      }
      return this;
    }

    private int medicalCardId_ ;
    /**
     * <code>int32 medicalCardId = 1;</code>
     * @return The medicalCardId.
     */
    @java.lang.Override
    public int getMedicalCardId() {
      return medicalCardId_;
    }
    /**
     * <code>int32 medicalCardId = 1;</code>
     * @param value The medicalCardId to set.
     * @return This builder for chaining.
     */
    public Builder setMedicalCardId(int value) {
      
      medicalCardId_ = value;
      onChanged();
      return this;
    }
    /**
     * <code>int32 medicalCardId = 1;</code>
     * @return This builder for chaining.
     */
    public Builder clearMedicalCardId() {
      
      medicalCardId_ = 0;
      onChanged();
      return this;
    }

    private int medicalFee_ ;
    /**
     * <code>int32 medicalFee = 2;</code>
     * @return The medicalFee.
     */
    @java.lang.Override
    public int getMedicalFee() {
      return medicalFee_;
    }
    /**
     * <code>int32 medicalFee = 2;</code>
     * @param value The medicalFee to set.
     * @return This builder for chaining.
     */
    public Builder setMedicalFee(int value) {
      
      medicalFee_ = value;
      onChanged();
      return this;
    }
    /**
     * <code>int32 medicalFee = 2;</code>
     * @return This builder for chaining.
     */
    public Builder clearMedicalFee() {
      
      medicalFee_ = 0;
      onChanged();
      return this;
    }

    private int registeredFee_ ;
    /**
     * <code>int32 registeredFee = 3;</code>
     * @return The registeredFee.
     */
    @java.lang.Override
    public int getRegisteredFee() {
      return registeredFee_;
    }
    /**
     * <code>int32 registeredFee = 3;</code>
     * @param value The registeredFee to set.
     * @return This builder for chaining.
     */
    public Builder setRegisteredFee(int value) {
      
      registeredFee_ = value;
      onChanged();
      return this;
    }
    /**
     * <code>int32 registeredFee = 3;</code>
     * @return This builder for chaining.
     */
    public Builder clearRegisteredFee() {
      
      registeredFee_ = 0;
      onChanged();
      return this;
    }

    private int userId_ ;
    /**
     * <code>int32 userId = 4;</code>
     * @return The userId.
     */
    @java.lang.Override
    public int getUserId() {
      return userId_;
    }
    /**
     * <code>int32 userId = 4;</code>
     * @param value The userId to set.
     * @return This builder for chaining.
     */
    public Builder setUserId(int value) {
      
      userId_ = value;
      onChanged();
      return this;
    }
    /**
     * <code>int32 userId = 4;</code>
     * @return This builder for chaining.
     */
    public Builder clearUserId() {
      
      userId_ = 0;
      onChanged();
      return this;
    }

    private int hospitalId_ ;
    /**
     * <code>int32 hospitalId = 5;</code>
     * @return The hospitalId.
     */
    @java.lang.Override
    public int getHospitalId() {
      return hospitalId_;
    }
    /**
     * <code>int32 hospitalId = 5;</code>
     * @param value The hospitalId to set.
     * @return This builder for chaining.
     */
    public Builder setHospitalId(int value) {
      
      hospitalId_ = value;
      onChanged();
      return this;
    }
    /**
     * <code>int32 hospitalId = 5;</code>
     * @return This builder for chaining.
     */
    public Builder clearHospitalId() {
      
      hospitalId_ = 0;
      onChanged();
      return this;
    }

    private int period_ ;
    /**
     * <code>int32 period = 6;</code>
     * @return The period.
     */
    @java.lang.Override
    public int getPeriod() {
      return period_;
    }
    /**
     * <code>int32 period = 6;</code>
     * @param value The period to set.
     * @return This builder for chaining.
     */
    public Builder setPeriod(int value) {
      
      period_ = value;
      onChanged();
      return this;
    }
    /**
     * <code>int32 period = 6;</code>
     * @return This builder for chaining.
     */
    public Builder clearPeriod() {
      
      period_ = 0;
      onChanged();
      return this;
    }

    private java.lang.Object doctorSessTypeCode_ = "";
    /**
     * <pre>
     * 出诊级别code
     * </pre>
     *
     * <code>string doctorSessTypeCode = 7;</code>
     * @return The doctorSessTypeCode.
     */
    public java.lang.String getDoctorSessTypeCode() {
      java.lang.Object ref = doctorSessTypeCode_;
      if (!(ref instanceof java.lang.String)) {
        com.google.protobuf.ByteString bs =
            (com.google.protobuf.ByteString) ref;
        java.lang.String s = bs.toStringUtf8();
        doctorSessTypeCode_ = s;
        return s;
      } else {
        return (java.lang.String) ref;
      }
    }
    /**
     * <pre>
     * 出诊级别code
     * </pre>
     *
     * <code>string doctorSessTypeCode = 7;</code>
     * @return The bytes for doctorSessTypeCode.
     */
    public com.google.protobuf.ByteString
        getDoctorSessTypeCodeBytes() {
      java.lang.Object ref = doctorSessTypeCode_;
      if (ref instanceof String) {
        com.google.protobuf.ByteString b = 
            com.google.protobuf.ByteString.copyFromUtf8(
                (java.lang.String) ref);
        doctorSessTypeCode_ = b;
        return b;
      } else {
        return (com.google.protobuf.ByteString) ref;
      }
    }
    /**
     * <pre>
     * 出诊级别code
     * </pre>
     *
     * <code>string doctorSessTypeCode = 7;</code>
     * @param value The doctorSessTypeCode to set.
     * @return This builder for chaining.
     */
    public Builder setDoctorSessTypeCode(
        java.lang.String value) {
      if (value == null) {
    throw new NullPointerException();
  }
  
      doctorSessTypeCode_ = value;
      onChanged();
      return this;
    }
    /**
     * <pre>
     * 出诊级别code
     * </pre>
     *
     * <code>string doctorSessTypeCode = 7;</code>
     * @return This builder for chaining.
     */
    public Builder clearDoctorSessTypeCode() {
      
      doctorSessTypeCode_ = getDefaultInstance().getDoctorSessTypeCode();
      onChanged();
      return this;
    }
    /**
     * <pre>
     * 出诊级别code
     * </pre>
     *
     * <code>string doctorSessTypeCode = 7;</code>
     * @param value The bytes for doctorSessTypeCode to set.
     * @return This builder for chaining.
     */
    public Builder setDoctorSessTypeCodeBytes(
        com.google.protobuf.ByteString value) {
      if (value == null) {
    throw new NullPointerException();
  }
  checkByteStringIsUtf8(value);
      
      doctorSessTypeCode_ = value;
      onChanged();
      return this;
    }

    private java.lang.Object doctorSessTypeName_ = "";
    /**
     * <pre>
     * 出诊级别name
     * </pre>
     *
     * <code>string doctorSessTypeName = 8;</code>
     * @return The doctorSessTypeName.
     */
    public java.lang.String getDoctorSessTypeName() {
      java.lang.Object ref = doctorSessTypeName_;
      if (!(ref instanceof java.lang.String)) {
        com.google.protobuf.ByteString bs =
            (com.google.protobuf.ByteString) ref;
        java.lang.String s = bs.toStringUtf8();
        doctorSessTypeName_ = s;
        return s;
      } else {
        return (java.lang.String) ref;
      }
    }
    /**
     * <pre>
     * 出诊级别name
     * </pre>
     *
     * <code>string doctorSessTypeName = 8;</code>
     * @return The bytes for doctorSessTypeName.
     */
    public com.google.protobuf.ByteString
        getDoctorSessTypeNameBytes() {
      java.lang.Object ref = doctorSessTypeName_;
      if (ref instanceof String) {
        com.google.protobuf.ByteString b = 
            com.google.protobuf.ByteString.copyFromUtf8(
                (java.lang.String) ref);
        doctorSessTypeName_ = b;
        return b;
      } else {
        return (com.google.protobuf.ByteString) ref;
      }
    }
    /**
     * <pre>
     * 出诊级别name
     * </pre>
     *
     * <code>string doctorSessTypeName = 8;</code>
     * @param value The doctorSessTypeName to set.
     * @return This builder for chaining.
     */
    public Builder setDoctorSessTypeName(
        java.lang.String value) {
      if (value == null) {
    throw new NullPointerException();
  }
  
      doctorSessTypeName_ = value;
      onChanged();
      return this;
    }
    /**
     * <pre>
     * 出诊级别name
     * </pre>
     *
     * <code>string doctorSessTypeName = 8;</code>
     * @return This builder for chaining.
     */
    public Builder clearDoctorSessTypeName() {
      
      doctorSessTypeName_ = getDefaultInstance().getDoctorSessTypeName();
      onChanged();
      return this;
    }
    /**
     * <pre>
     * 出诊级别name
     * </pre>
     *
     * <code>string doctorSessTypeName = 8;</code>
     * @param value The bytes for doctorSessTypeName to set.
     * @return This builder for chaining.
     */
    public Builder setDoctorSessTypeNameBytes(
        com.google.protobuf.ByteString value) {
      if (value == null) {
    throw new NullPointerException();
  }
  checkByteStringIsUtf8(value);
      
      doctorSessTypeName_ = value;
      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.register.CalAdditionalFeeRequest)
  }

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

  public static com.ywt.gapi.taihe.register.CalAdditionalFeeRequest getDefaultInstance() {
    return DEFAULT_INSTANCE;
  }

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

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

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

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

}

