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

package com.ywt.gapi.third.taihe;

/**
 * Protobuf type {@code com.ywt.gapi.third.taihe.PayConfirmRequest}
 */
public final class PayConfirmRequest extends
    com.google.protobuf.GeneratedMessageV3 implements
    // @@protoc_insertion_point(message_implements:com.ywt.gapi.third.taihe.PayConfirmRequest)
    PayConfirmRequestOrBuilder {
private static final long serialVersionUID = 0L;
  // Use PayConfirmRequest.newBuilder() to construct.
  private PayConfirmRequest(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {
    super(builder);
  }
  private PayConfirmRequest() {
    insuDivId_ = "";
    ownPayPMDr_ = "";
    ownPayAmt_ = "";
    payAuthNo_ = "";
  }

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

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

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

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

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

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

            payAuthNo_ = 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.third.taihe.TaiheProto.internal_static_com_ywt_gapi_third_taihe_PayConfirmRequest_descriptor;
  }

  @java.lang.Override
  protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
      internalGetFieldAccessorTable() {
    return com.ywt.gapi.third.taihe.TaiheProto.internal_static_com_ywt_gapi_third_taihe_PayConfirmRequest_fieldAccessorTable
        .ensureFieldAccessorsInitialized(
            com.ywt.gapi.third.taihe.PayConfirmRequest.class, com.ywt.gapi.third.taihe.PayConfirmRequest.Builder.class);
  }

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

  public static final int INSUDIVID_FIELD_NUMBER = 2;
  private volatile java.lang.Object insuDivId_;
  /**
   * <pre>
   * 医保结算表id，HI6202接口返回中的insuDivId字段
   * </pre>
   *
   * <code>string insuDivId = 2;</code>
   * @return The insuDivId.
   */
  @java.lang.Override
  public java.lang.String getInsuDivId() {
    java.lang.Object ref = insuDivId_;
    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();
      insuDivId_ = s;
      return s;
    }
  }
  /**
   * <pre>
   * 医保结算表id，HI6202接口返回中的insuDivId字段
   * </pre>
   *
   * <code>string insuDivId = 2;</code>
   * @return The bytes for insuDivId.
   */
  @java.lang.Override
  public com.google.protobuf.ByteString
      getInsuDivIdBytes() {
    java.lang.Object ref = insuDivId_;
    if (ref instanceof java.lang.String) {
      com.google.protobuf.ByteString b = 
          com.google.protobuf.ByteString.copyFromUtf8(
              (java.lang.String) ref);
      insuDivId_ = b;
      return b;
    } else {
      return (com.google.protobuf.ByteString) ref;
    }
  }

  public static final int OWNPAYPMDR_FIELD_NUMBER = 3;
  private volatile java.lang.Object ownPayPMDr_;
  /**
   * <pre>
   * 自付部分支付，第三方，见各项目维护的自付部分支付方式id
   * </pre>
   *
   * <code>string ownPayPMDr = 3;</code>
   * @return The ownPayPMDr.
   */
  @java.lang.Override
  public java.lang.String getOwnPayPMDr() {
    java.lang.Object ref = ownPayPMDr_;
    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();
      ownPayPMDr_ = s;
      return s;
    }
  }
  /**
   * <pre>
   * 自付部分支付，第三方，见各项目维护的自付部分支付方式id
   * </pre>
   *
   * <code>string ownPayPMDr = 3;</code>
   * @return The bytes for ownPayPMDr.
   */
  @java.lang.Override
  public com.google.protobuf.ByteString
      getOwnPayPMDrBytes() {
    java.lang.Object ref = ownPayPMDr_;
    if (ref instanceof java.lang.String) {
      com.google.protobuf.ByteString b = 
          com.google.protobuf.ByteString.copyFromUtf8(
              (java.lang.String) ref);
      ownPayPMDr_ = b;
      return b;
    } else {
      return (com.google.protobuf.ByteString) ref;
    }
  }

  public static final int OWNPAYAMT_FIELD_NUMBER = 4;
  private volatile java.lang.Object ownPayAmt_;
  /**
   * <pre>
   * 自付部分金额，医保返回的需第三方扣除的患者自付部分金额。单位：元
   * </pre>
   *
   * <code>string ownPayAmt = 4;</code>
   * @return The ownPayAmt.
   */
  @java.lang.Override
  public java.lang.String getOwnPayAmt() {
    java.lang.Object ref = ownPayAmt_;
    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();
      ownPayAmt_ = s;
      return s;
    }
  }
  /**
   * <pre>
   * 自付部分金额，医保返回的需第三方扣除的患者自付部分金额。单位：元
   * </pre>
   *
   * <code>string ownPayAmt = 4;</code>
   * @return The bytes for ownPayAmt.
   */
  @java.lang.Override
  public com.google.protobuf.ByteString
      getOwnPayAmtBytes() {
    java.lang.Object ref = ownPayAmt_;
    if (ref instanceof java.lang.String) {
      com.google.protobuf.ByteString b = 
          com.google.protobuf.ByteString.copyFromUtf8(
              (java.lang.String) ref);
      ownPayAmt_ = b;
      return b;
    } else {
      return (com.google.protobuf.ByteString) ref;
    }
  }

  public static final int PAYAUTHNO_FIELD_NUMBER = 5;
  private volatile java.lang.Object payAuthNo_;
  /**
   * <pre>
   * 支付授权码，His医保确认失败时，使用此字段撤销医保结算使用
   * </pre>
   *
   * <code>string payAuthNo = 5;</code>
   * @return The payAuthNo.
   */
  @java.lang.Override
  public java.lang.String getPayAuthNo() {
    java.lang.Object ref = payAuthNo_;
    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();
      payAuthNo_ = s;
      return s;
    }
  }
  /**
   * <pre>
   * 支付授权码，His医保确认失败时，使用此字段撤销医保结算使用
   * </pre>
   *
   * <code>string payAuthNo = 5;</code>
   * @return The bytes for payAuthNo.
   */
  @java.lang.Override
  public com.google.protobuf.ByteString
      getPayAuthNoBytes() {
    java.lang.Object ref = payAuthNo_;
    if (ref instanceof java.lang.String) {
      com.google.protobuf.ByteString b = 
          com.google.protobuf.ByteString.copyFromUtf8(
              (java.lang.String) ref);
      payAuthNo_ = 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 (hospitalId_ != 0) {
      output.writeInt32(1, hospitalId_);
    }
    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(insuDivId_)) {
      com.google.protobuf.GeneratedMessageV3.writeString(output, 2, insuDivId_);
    }
    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(ownPayPMDr_)) {
      com.google.protobuf.GeneratedMessageV3.writeString(output, 3, ownPayPMDr_);
    }
    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(ownPayAmt_)) {
      com.google.protobuf.GeneratedMessageV3.writeString(output, 4, ownPayAmt_);
    }
    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(payAuthNo_)) {
      com.google.protobuf.GeneratedMessageV3.writeString(output, 5, payAuthNo_);
    }
    unknownFields.writeTo(output);
  }

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

    size = 0;
    if (hospitalId_ != 0) {
      size += com.google.protobuf.CodedOutputStream
        .computeInt32Size(1, hospitalId_);
    }
    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(insuDivId_)) {
      size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, insuDivId_);
    }
    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(ownPayPMDr_)) {
      size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, ownPayPMDr_);
    }
    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(ownPayAmt_)) {
      size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, ownPayAmt_);
    }
    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(payAuthNo_)) {
      size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, payAuthNo_);
    }
    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.third.taihe.PayConfirmRequest)) {
      return super.equals(obj);
    }
    com.ywt.gapi.third.taihe.PayConfirmRequest other = (com.ywt.gapi.third.taihe.PayConfirmRequest) obj;

    if (getHospitalId()
        != other.getHospitalId()) return false;
    if (!getInsuDivId()
        .equals(other.getInsuDivId())) return false;
    if (!getOwnPayPMDr()
        .equals(other.getOwnPayPMDr())) return false;
    if (!getOwnPayAmt()
        .equals(other.getOwnPayAmt())) return false;
    if (!getPayAuthNo()
        .equals(other.getPayAuthNo())) 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) + HOSPITALID_FIELD_NUMBER;
    hash = (53 * hash) + getHospitalId();
    hash = (37 * hash) + INSUDIVID_FIELD_NUMBER;
    hash = (53 * hash) + getInsuDivId().hashCode();
    hash = (37 * hash) + OWNPAYPMDR_FIELD_NUMBER;
    hash = (53 * hash) + getOwnPayPMDr().hashCode();
    hash = (37 * hash) + OWNPAYAMT_FIELD_NUMBER;
    hash = (53 * hash) + getOwnPayAmt().hashCode();
    hash = (37 * hash) + PAYAUTHNO_FIELD_NUMBER;
    hash = (53 * hash) + getPayAuthNo().hashCode();
    hash = (29 * hash) + unknownFields.hashCode();
    memoizedHashCode = hash;
    return hash;
  }

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

    @java.lang.Override
    protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
        internalGetFieldAccessorTable() {
      return com.ywt.gapi.third.taihe.TaiheProto.internal_static_com_ywt_gapi_third_taihe_PayConfirmRequest_fieldAccessorTable
          .ensureFieldAccessorsInitialized(
              com.ywt.gapi.third.taihe.PayConfirmRequest.class, com.ywt.gapi.third.taihe.PayConfirmRequest.Builder.class);
    }

    // Construct using com.ywt.gapi.third.taihe.PayConfirmRequest.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();
      hospitalId_ = 0;

      insuDivId_ = "";

      ownPayPMDr_ = "";

      ownPayAmt_ = "";

      payAuthNo_ = "";

      return this;
    }

    @java.lang.Override
    public com.google.protobuf.Descriptors.Descriptor
        getDescriptorForType() {
      return com.ywt.gapi.third.taihe.TaiheProto.internal_static_com_ywt_gapi_third_taihe_PayConfirmRequest_descriptor;
    }

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

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

    @java.lang.Override
    public com.ywt.gapi.third.taihe.PayConfirmRequest buildPartial() {
      com.ywt.gapi.third.taihe.PayConfirmRequest result = new com.ywt.gapi.third.taihe.PayConfirmRequest(this);
      result.hospitalId_ = hospitalId_;
      result.insuDivId_ = insuDivId_;
      result.ownPayPMDr_ = ownPayPMDr_;
      result.ownPayAmt_ = ownPayAmt_;
      result.payAuthNo_ = payAuthNo_;
      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.third.taihe.PayConfirmRequest) {
        return mergeFrom((com.ywt.gapi.third.taihe.PayConfirmRequest)other);
      } else {
        super.mergeFrom(other);
        return this;
      }
    }

    public Builder mergeFrom(com.ywt.gapi.third.taihe.PayConfirmRequest other) {
      if (other == com.ywt.gapi.third.taihe.PayConfirmRequest.getDefaultInstance()) return this;
      if (other.getHospitalId() != 0) {
        setHospitalId(other.getHospitalId());
      }
      if (!other.getInsuDivId().isEmpty()) {
        insuDivId_ = other.insuDivId_;
        onChanged();
      }
      if (!other.getOwnPayPMDr().isEmpty()) {
        ownPayPMDr_ = other.ownPayPMDr_;
        onChanged();
      }
      if (!other.getOwnPayAmt().isEmpty()) {
        ownPayAmt_ = other.ownPayAmt_;
        onChanged();
      }
      if (!other.getPayAuthNo().isEmpty()) {
        payAuthNo_ = other.payAuthNo_;
        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.third.taihe.PayConfirmRequest parsedMessage = null;
      try {
        parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
      } catch (com.google.protobuf.InvalidProtocolBufferException e) {
        parsedMessage = (com.ywt.gapi.third.taihe.PayConfirmRequest) e.getUnfinishedMessage();
        throw e.unwrapIOException();
      } finally {
        if (parsedMessage != null) {
          mergeFrom(parsedMessage);
        }
      }
      return this;
    }

    private int hospitalId_ ;
    /**
     * <code>int32 hospitalId = 1;</code>
     * @return The hospitalId.
     */
    @java.lang.Override
    public int getHospitalId() {
      return hospitalId_;
    }
    /**
     * <code>int32 hospitalId = 1;</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 = 1;</code>
     * @return This builder for chaining.
     */
    public Builder clearHospitalId() {
      
      hospitalId_ = 0;
      onChanged();
      return this;
    }

    private java.lang.Object insuDivId_ = "";
    /**
     * <pre>
     * 医保结算表id，HI6202接口返回中的insuDivId字段
     * </pre>
     *
     * <code>string insuDivId = 2;</code>
     * @return The insuDivId.
     */
    public java.lang.String getInsuDivId() {
      java.lang.Object ref = insuDivId_;
      if (!(ref instanceof java.lang.String)) {
        com.google.protobuf.ByteString bs =
            (com.google.protobuf.ByteString) ref;
        java.lang.String s = bs.toStringUtf8();
        insuDivId_ = s;
        return s;
      } else {
        return (java.lang.String) ref;
      }
    }
    /**
     * <pre>
     * 医保结算表id，HI6202接口返回中的insuDivId字段
     * </pre>
     *
     * <code>string insuDivId = 2;</code>
     * @return The bytes for insuDivId.
     */
    public com.google.protobuf.ByteString
        getInsuDivIdBytes() {
      java.lang.Object ref = insuDivId_;
      if (ref instanceof String) {
        com.google.protobuf.ByteString b = 
            com.google.protobuf.ByteString.copyFromUtf8(
                (java.lang.String) ref);
        insuDivId_ = b;
        return b;
      } else {
        return (com.google.protobuf.ByteString) ref;
      }
    }
    /**
     * <pre>
     * 医保结算表id，HI6202接口返回中的insuDivId字段
     * </pre>
     *
     * <code>string insuDivId = 2;</code>
     * @param value The insuDivId to set.
     * @return This builder for chaining.
     */
    public Builder setInsuDivId(
        java.lang.String value) {
      if (value == null) {
    throw new NullPointerException();
  }
  
      insuDivId_ = value;
      onChanged();
      return this;
    }
    /**
     * <pre>
     * 医保结算表id，HI6202接口返回中的insuDivId字段
     * </pre>
     *
     * <code>string insuDivId = 2;</code>
     * @return This builder for chaining.
     */
    public Builder clearInsuDivId() {
      
      insuDivId_ = getDefaultInstance().getInsuDivId();
      onChanged();
      return this;
    }
    /**
     * <pre>
     * 医保结算表id，HI6202接口返回中的insuDivId字段
     * </pre>
     *
     * <code>string insuDivId = 2;</code>
     * @param value The bytes for insuDivId to set.
     * @return This builder for chaining.
     */
    public Builder setInsuDivIdBytes(
        com.google.protobuf.ByteString value) {
      if (value == null) {
    throw new NullPointerException();
  }
  checkByteStringIsUtf8(value);
      
      insuDivId_ = value;
      onChanged();
      return this;
    }

    private java.lang.Object ownPayPMDr_ = "";
    /**
     * <pre>
     * 自付部分支付，第三方，见各项目维护的自付部分支付方式id
     * </pre>
     *
     * <code>string ownPayPMDr = 3;</code>
     * @return The ownPayPMDr.
     */
    public java.lang.String getOwnPayPMDr() {
      java.lang.Object ref = ownPayPMDr_;
      if (!(ref instanceof java.lang.String)) {
        com.google.protobuf.ByteString bs =
            (com.google.protobuf.ByteString) ref;
        java.lang.String s = bs.toStringUtf8();
        ownPayPMDr_ = s;
        return s;
      } else {
        return (java.lang.String) ref;
      }
    }
    /**
     * <pre>
     * 自付部分支付，第三方，见各项目维护的自付部分支付方式id
     * </pre>
     *
     * <code>string ownPayPMDr = 3;</code>
     * @return The bytes for ownPayPMDr.
     */
    public com.google.protobuf.ByteString
        getOwnPayPMDrBytes() {
      java.lang.Object ref = ownPayPMDr_;
      if (ref instanceof String) {
        com.google.protobuf.ByteString b = 
            com.google.protobuf.ByteString.copyFromUtf8(
                (java.lang.String) ref);
        ownPayPMDr_ = b;
        return b;
      } else {
        return (com.google.protobuf.ByteString) ref;
      }
    }
    /**
     * <pre>
     * 自付部分支付，第三方，见各项目维护的自付部分支付方式id
     * </pre>
     *
     * <code>string ownPayPMDr = 3;</code>
     * @param value The ownPayPMDr to set.
     * @return This builder for chaining.
     */
    public Builder setOwnPayPMDr(
        java.lang.String value) {
      if (value == null) {
    throw new NullPointerException();
  }
  
      ownPayPMDr_ = value;
      onChanged();
      return this;
    }
    /**
     * <pre>
     * 自付部分支付，第三方，见各项目维护的自付部分支付方式id
     * </pre>
     *
     * <code>string ownPayPMDr = 3;</code>
     * @return This builder for chaining.
     */
    public Builder clearOwnPayPMDr() {
      
      ownPayPMDr_ = getDefaultInstance().getOwnPayPMDr();
      onChanged();
      return this;
    }
    /**
     * <pre>
     * 自付部分支付，第三方，见各项目维护的自付部分支付方式id
     * </pre>
     *
     * <code>string ownPayPMDr = 3;</code>
     * @param value The bytes for ownPayPMDr to set.
     * @return This builder for chaining.
     */
    public Builder setOwnPayPMDrBytes(
        com.google.protobuf.ByteString value) {
      if (value == null) {
    throw new NullPointerException();
  }
  checkByteStringIsUtf8(value);
      
      ownPayPMDr_ = value;
      onChanged();
      return this;
    }

    private java.lang.Object ownPayAmt_ = "";
    /**
     * <pre>
     * 自付部分金额，医保返回的需第三方扣除的患者自付部分金额。单位：元
     * </pre>
     *
     * <code>string ownPayAmt = 4;</code>
     * @return The ownPayAmt.
     */
    public java.lang.String getOwnPayAmt() {
      java.lang.Object ref = ownPayAmt_;
      if (!(ref instanceof java.lang.String)) {
        com.google.protobuf.ByteString bs =
            (com.google.protobuf.ByteString) ref;
        java.lang.String s = bs.toStringUtf8();
        ownPayAmt_ = s;
        return s;
      } else {
        return (java.lang.String) ref;
      }
    }
    /**
     * <pre>
     * 自付部分金额，医保返回的需第三方扣除的患者自付部分金额。单位：元
     * </pre>
     *
     * <code>string ownPayAmt = 4;</code>
     * @return The bytes for ownPayAmt.
     */
    public com.google.protobuf.ByteString
        getOwnPayAmtBytes() {
      java.lang.Object ref = ownPayAmt_;
      if (ref instanceof String) {
        com.google.protobuf.ByteString b = 
            com.google.protobuf.ByteString.copyFromUtf8(
                (java.lang.String) ref);
        ownPayAmt_ = b;
        return b;
      } else {
        return (com.google.protobuf.ByteString) ref;
      }
    }
    /**
     * <pre>
     * 自付部分金额，医保返回的需第三方扣除的患者自付部分金额。单位：元
     * </pre>
     *
     * <code>string ownPayAmt = 4;</code>
     * @param value The ownPayAmt to set.
     * @return This builder for chaining.
     */
    public Builder setOwnPayAmt(
        java.lang.String value) {
      if (value == null) {
    throw new NullPointerException();
  }
  
      ownPayAmt_ = value;
      onChanged();
      return this;
    }
    /**
     * <pre>
     * 自付部分金额，医保返回的需第三方扣除的患者自付部分金额。单位：元
     * </pre>
     *
     * <code>string ownPayAmt = 4;</code>
     * @return This builder for chaining.
     */
    public Builder clearOwnPayAmt() {
      
      ownPayAmt_ = getDefaultInstance().getOwnPayAmt();
      onChanged();
      return this;
    }
    /**
     * <pre>
     * 自付部分金额，医保返回的需第三方扣除的患者自付部分金额。单位：元
     * </pre>
     *
     * <code>string ownPayAmt = 4;</code>
     * @param value The bytes for ownPayAmt to set.
     * @return This builder for chaining.
     */
    public Builder setOwnPayAmtBytes(
        com.google.protobuf.ByteString value) {
      if (value == null) {
    throw new NullPointerException();
  }
  checkByteStringIsUtf8(value);
      
      ownPayAmt_ = value;
      onChanged();
      return this;
    }

    private java.lang.Object payAuthNo_ = "";
    /**
     * <pre>
     * 支付授权码，His医保确认失败时，使用此字段撤销医保结算使用
     * </pre>
     *
     * <code>string payAuthNo = 5;</code>
     * @return The payAuthNo.
     */
    public java.lang.String getPayAuthNo() {
      java.lang.Object ref = payAuthNo_;
      if (!(ref instanceof java.lang.String)) {
        com.google.protobuf.ByteString bs =
            (com.google.protobuf.ByteString) ref;
        java.lang.String s = bs.toStringUtf8();
        payAuthNo_ = s;
        return s;
      } else {
        return (java.lang.String) ref;
      }
    }
    /**
     * <pre>
     * 支付授权码，His医保确认失败时，使用此字段撤销医保结算使用
     * </pre>
     *
     * <code>string payAuthNo = 5;</code>
     * @return The bytes for payAuthNo.
     */
    public com.google.protobuf.ByteString
        getPayAuthNoBytes() {
      java.lang.Object ref = payAuthNo_;
      if (ref instanceof String) {
        com.google.protobuf.ByteString b = 
            com.google.protobuf.ByteString.copyFromUtf8(
                (java.lang.String) ref);
        payAuthNo_ = b;
        return b;
      } else {
        return (com.google.protobuf.ByteString) ref;
      }
    }
    /**
     * <pre>
     * 支付授权码，His医保确认失败时，使用此字段撤销医保结算使用
     * </pre>
     *
     * <code>string payAuthNo = 5;</code>
     * @param value The payAuthNo to set.
     * @return This builder for chaining.
     */
    public Builder setPayAuthNo(
        java.lang.String value) {
      if (value == null) {
    throw new NullPointerException();
  }
  
      payAuthNo_ = value;
      onChanged();
      return this;
    }
    /**
     * <pre>
     * 支付授权码，His医保确认失败时，使用此字段撤销医保结算使用
     * </pre>
     *
     * <code>string payAuthNo = 5;</code>
     * @return This builder for chaining.
     */
    public Builder clearPayAuthNo() {
      
      payAuthNo_ = getDefaultInstance().getPayAuthNo();
      onChanged();
      return this;
    }
    /**
     * <pre>
     * 支付授权码，His医保确认失败时，使用此字段撤销医保结算使用
     * </pre>
     *
     * <code>string payAuthNo = 5;</code>
     * @param value The bytes for payAuthNo to set.
     * @return This builder for chaining.
     */
    public Builder setPayAuthNoBytes(
        com.google.protobuf.ByteString value) {
      if (value == null) {
    throw new NullPointerException();
  }
  checkByteStringIsUtf8(value);
      
      payAuthNo_ = 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.third.taihe.PayConfirmRequest)
  }

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

  public static com.ywt.gapi.third.taihe.PayConfirmRequest getDefaultInstance() {
    return DEFAULT_INSTANCE;
  }

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

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

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

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

}

