// 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.PrePayConfirm}
 */
public final class PrePayConfirm extends
    com.google.protobuf.GeneratedMessageV3 implements
    // @@protoc_insertion_point(message_implements:com.ywt.gapi.third.taihe.PrePayConfirm)
    PrePayConfirmOrBuilder {
private static final long serialVersionUID = 0L;
  // Use PrePayConfirm.newBuilder() to construct.
  private PrePayConfirm(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {
    super(builder);
  }
  private PrePayConfirm() {
    invoiceNo_ = "";
    insuFlag_ = "";
    outInsuInfo_ = "";
    hisInsuInfo_ = "";
    insuOutTradeNo_ = "";
  }

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

  @java.lang.Override
  public final com.google.protobuf.UnknownFieldSet
  getUnknownFields() {
    return this.unknownFields;
  }
  private PrePayConfirm(
      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 10: {
            java.lang.String s = input.readStringRequireUtf8();

            invoiceNo_ = s;
            break;
          }
          case 16: {

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

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

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

            hisInsuInfo_ = s;
            break;
          }
          case 48: {

            invoiceInsuAmt_ = input.readInt32();
            break;
          }
          case 56: {

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

            insuOutTradeNo_ = 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_PrePayConfirm_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_PrePayConfirm_fieldAccessorTable
        .ensureFieldAccessorsInitialized(
            com.ywt.gapi.third.taihe.PrePayConfirm.class, com.ywt.gapi.third.taihe.PrePayConfirm.Builder.class);
  }

  public static final int INVOICENO_FIELD_NUMBER = 1;
  private volatile java.lang.Object invoiceNo_;
  /**
   * <pre>
   * 票据唯一流水号
   * </pre>
   *
   * <code>string invoiceNo = 1;</code>
   * @return The invoiceNo.
   */
  @java.lang.Override
  public java.lang.String getInvoiceNo() {
    java.lang.Object ref = invoiceNo_;
    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();
      invoiceNo_ = s;
      return s;
    }
  }
  /**
   * <pre>
   * 票据唯一流水号
   * </pre>
   *
   * <code>string invoiceNo = 1;</code>
   * @return The bytes for invoiceNo.
   */
  @java.lang.Override
  public com.google.protobuf.ByteString
      getInvoiceNoBytes() {
    java.lang.Object ref = invoiceNo_;
    if (ref instanceof java.lang.String) {
      com.google.protobuf.ByteString b = 
          com.google.protobuf.ByteString.copyFromUtf8(
              (java.lang.String) ref);
      invoiceNo_ = b;
      return b;
    } else {
      return (com.google.protobuf.ByteString) ref;
    }
  }

  public static final int INVOICEAMT_FIELD_NUMBER = 2;
  private int invoiceAmt_;
  /**
   * <pre>
   * 票据金额，单位分
   * </pre>
   *
   * <code>int32 invoiceAmt = 2;</code>
   * @return The invoiceAmt.
   */
  @java.lang.Override
  public int getInvoiceAmt() {
    return invoiceAmt_;
  }

  public static final int INSUFLAG_FIELD_NUMBER = 3;
  private volatile java.lang.Object insuFlag_;
  /**
   * <pre>
   * 调用医保标志（Y调用,N不调用）
   * </pre>
   *
   * <code>string insuFlag = 3;</code>
   * @return The insuFlag.
   */
  @java.lang.Override
  public java.lang.String getInsuFlag() {
    java.lang.Object ref = insuFlag_;
    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();
      insuFlag_ = s;
      return s;
    }
  }
  /**
   * <pre>
   * 调用医保标志（Y调用,N不调用）
   * </pre>
   *
   * <code>string insuFlag = 3;</code>
   * @return The bytes for insuFlag.
   */
  @java.lang.Override
  public com.google.protobuf.ByteString
      getInsuFlagBytes() {
    java.lang.Object ref = insuFlag_;
    if (ref instanceof java.lang.String) {
      com.google.protobuf.ByteString b = 
          com.google.protobuf.ByteString.copyFromUtf8(
              (java.lang.String) ref);
      insuFlag_ = b;
      return b;
    } else {
      return (com.google.protobuf.ByteString) ref;
    }
  }

  public static final int OUTINSUINFO_FIELD_NUMBER = 4;
  private volatile java.lang.Object outInsuInfo_;
  /**
   * <pre>
   * 第三方医保分解上传明细
   * </pre>
   *
   * <code>string outInsuInfo = 4;</code>
   * @return The outInsuInfo.
   */
  @java.lang.Override
  public java.lang.String getOutInsuInfo() {
    java.lang.Object ref = outInsuInfo_;
    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();
      outInsuInfo_ = s;
      return s;
    }
  }
  /**
   * <pre>
   * 第三方医保分解上传明细
   * </pre>
   *
   * <code>string outInsuInfo = 4;</code>
   * @return The bytes for outInsuInfo.
   */
  @java.lang.Override
  public com.google.protobuf.ByteString
      getOutInsuInfoBytes() {
    java.lang.Object ref = outInsuInfo_;
    if (ref instanceof java.lang.String) {
      com.google.protobuf.ByteString b = 
          com.google.protobuf.ByteString.copyFromUtf8(
              (java.lang.String) ref);
      outInsuInfo_ = b;
      return b;
    } else {
      return (com.google.protobuf.ByteString) ref;
    }
  }

  public static final int HISINSUINFO_FIELD_NUMBER = 5;
  private volatile java.lang.Object hisInsuInfo_;
  /**
   * <pre>
   * HIS动态库医保分解参数(&amp; strInvprtDr &amp; UserId &amp; ExpStr)
   * </pre>
   *
   * <code>string hisInsuInfo = 5;</code>
   * @return The hisInsuInfo.
   */
  @java.lang.Override
  public java.lang.String getHisInsuInfo() {
    java.lang.Object ref = hisInsuInfo_;
    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();
      hisInsuInfo_ = s;
      return s;
    }
  }
  /**
   * <pre>
   * HIS动态库医保分解参数(&amp; strInvprtDr &amp; UserId &amp; ExpStr)
   * </pre>
   *
   * <code>string hisInsuInfo = 5;</code>
   * @return The bytes for hisInsuInfo.
   */
  @java.lang.Override
  public com.google.protobuf.ByteString
      getHisInsuInfoBytes() {
    java.lang.Object ref = hisInsuInfo_;
    if (ref instanceof java.lang.String) {
      com.google.protobuf.ByteString b = 
          com.google.protobuf.ByteString.copyFromUtf8(
              (java.lang.String) ref);
      hisInsuInfo_ = b;
      return b;
    } else {
      return (com.google.protobuf.ByteString) ref;
    }
  }

  public static final int INVOICEINSUAMT_FIELD_NUMBER = 6;
  private int invoiceInsuAmt_;
  /**
   * <pre>
   * 票据金额，单位分
   * </pre>
   *
   * <code>int32 invoiceInsuAmt = 6;</code>
   * @return The invoiceInsuAmt.
   */
  @java.lang.Override
  public int getInvoiceInsuAmt() {
    return invoiceInsuAmt_;
  }

  public static final int INVOICESELFAMT_FIELD_NUMBER = 7;
  private int invoiceSelfAmt_;
  /**
   * <pre>
   * 票据金额，单位分
   * </pre>
   *
   * <code>int32 invoiceSelfAmt = 7;</code>
   * @return The invoiceSelfAmt.
   */
  @java.lang.Override
  public int getInvoiceSelfAmt() {
    return invoiceSelfAmt_;
  }

  public static final int INSUOUTTRADENO_FIELD_NUMBER = 8;
  private volatile java.lang.Object insuOutTradeNo_;
  /**
   * <pre>
   * 第三方医保分解上传明细
   * </pre>
   *
   * <code>string insuOutTradeNo = 8;</code>
   * @return The insuOutTradeNo.
   */
  @java.lang.Override
  public java.lang.String getInsuOutTradeNo() {
    java.lang.Object ref = insuOutTradeNo_;
    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();
      insuOutTradeNo_ = s;
      return s;
    }
  }
  /**
   * <pre>
   * 第三方医保分解上传明细
   * </pre>
   *
   * <code>string insuOutTradeNo = 8;</code>
   * @return The bytes for insuOutTradeNo.
   */
  @java.lang.Override
  public com.google.protobuf.ByteString
      getInsuOutTradeNoBytes() {
    java.lang.Object ref = insuOutTradeNo_;
    if (ref instanceof java.lang.String) {
      com.google.protobuf.ByteString b = 
          com.google.protobuf.ByteString.copyFromUtf8(
              (java.lang.String) ref);
      insuOutTradeNo_ = 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 (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(invoiceNo_)) {
      com.google.protobuf.GeneratedMessageV3.writeString(output, 1, invoiceNo_);
    }
    if (invoiceAmt_ != 0) {
      output.writeInt32(2, invoiceAmt_);
    }
    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(insuFlag_)) {
      com.google.protobuf.GeneratedMessageV3.writeString(output, 3, insuFlag_);
    }
    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(outInsuInfo_)) {
      com.google.protobuf.GeneratedMessageV3.writeString(output, 4, outInsuInfo_);
    }
    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(hisInsuInfo_)) {
      com.google.protobuf.GeneratedMessageV3.writeString(output, 5, hisInsuInfo_);
    }
    if (invoiceInsuAmt_ != 0) {
      output.writeInt32(6, invoiceInsuAmt_);
    }
    if (invoiceSelfAmt_ != 0) {
      output.writeInt32(7, invoiceSelfAmt_);
    }
    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(insuOutTradeNo_)) {
      com.google.protobuf.GeneratedMessageV3.writeString(output, 8, insuOutTradeNo_);
    }
    unknownFields.writeTo(output);
  }

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

    size = 0;
    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(invoiceNo_)) {
      size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, invoiceNo_);
    }
    if (invoiceAmt_ != 0) {
      size += com.google.protobuf.CodedOutputStream
        .computeInt32Size(2, invoiceAmt_);
    }
    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(insuFlag_)) {
      size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, insuFlag_);
    }
    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(outInsuInfo_)) {
      size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, outInsuInfo_);
    }
    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(hisInsuInfo_)) {
      size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, hisInsuInfo_);
    }
    if (invoiceInsuAmt_ != 0) {
      size += com.google.protobuf.CodedOutputStream
        .computeInt32Size(6, invoiceInsuAmt_);
    }
    if (invoiceSelfAmt_ != 0) {
      size += com.google.protobuf.CodedOutputStream
        .computeInt32Size(7, invoiceSelfAmt_);
    }
    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(insuOutTradeNo_)) {
      size += com.google.protobuf.GeneratedMessageV3.computeStringSize(8, insuOutTradeNo_);
    }
    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.PrePayConfirm)) {
      return super.equals(obj);
    }
    com.ywt.gapi.third.taihe.PrePayConfirm other = (com.ywt.gapi.third.taihe.PrePayConfirm) obj;

    if (!getInvoiceNo()
        .equals(other.getInvoiceNo())) return false;
    if (getInvoiceAmt()
        != other.getInvoiceAmt()) return false;
    if (!getInsuFlag()
        .equals(other.getInsuFlag())) return false;
    if (!getOutInsuInfo()
        .equals(other.getOutInsuInfo())) return false;
    if (!getHisInsuInfo()
        .equals(other.getHisInsuInfo())) return false;
    if (getInvoiceInsuAmt()
        != other.getInvoiceInsuAmt()) return false;
    if (getInvoiceSelfAmt()
        != other.getInvoiceSelfAmt()) return false;
    if (!getInsuOutTradeNo()
        .equals(other.getInsuOutTradeNo())) 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) + INVOICENO_FIELD_NUMBER;
    hash = (53 * hash) + getInvoiceNo().hashCode();
    hash = (37 * hash) + INVOICEAMT_FIELD_NUMBER;
    hash = (53 * hash) + getInvoiceAmt();
    hash = (37 * hash) + INSUFLAG_FIELD_NUMBER;
    hash = (53 * hash) + getInsuFlag().hashCode();
    hash = (37 * hash) + OUTINSUINFO_FIELD_NUMBER;
    hash = (53 * hash) + getOutInsuInfo().hashCode();
    hash = (37 * hash) + HISINSUINFO_FIELD_NUMBER;
    hash = (53 * hash) + getHisInsuInfo().hashCode();
    hash = (37 * hash) + INVOICEINSUAMT_FIELD_NUMBER;
    hash = (53 * hash) + getInvoiceInsuAmt();
    hash = (37 * hash) + INVOICESELFAMT_FIELD_NUMBER;
    hash = (53 * hash) + getInvoiceSelfAmt();
    hash = (37 * hash) + INSUOUTTRADENO_FIELD_NUMBER;
    hash = (53 * hash) + getInsuOutTradeNo().hashCode();
    hash = (29 * hash) + unknownFields.hashCode();
    memoizedHashCode = hash;
    return hash;
  }

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

    // Construct using com.ywt.gapi.third.taihe.PrePayConfirm.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();
      invoiceNo_ = "";

      invoiceAmt_ = 0;

      insuFlag_ = "";

      outInsuInfo_ = "";

      hisInsuInfo_ = "";

      invoiceInsuAmt_ = 0;

      invoiceSelfAmt_ = 0;

      insuOutTradeNo_ = "";

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

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

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

    @java.lang.Override
    public com.ywt.gapi.third.taihe.PrePayConfirm buildPartial() {
      com.ywt.gapi.third.taihe.PrePayConfirm result = new com.ywt.gapi.third.taihe.PrePayConfirm(this);
      result.invoiceNo_ = invoiceNo_;
      result.invoiceAmt_ = invoiceAmt_;
      result.insuFlag_ = insuFlag_;
      result.outInsuInfo_ = outInsuInfo_;
      result.hisInsuInfo_ = hisInsuInfo_;
      result.invoiceInsuAmt_ = invoiceInsuAmt_;
      result.invoiceSelfAmt_ = invoiceSelfAmt_;
      result.insuOutTradeNo_ = insuOutTradeNo_;
      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.PrePayConfirm) {
        return mergeFrom((com.ywt.gapi.third.taihe.PrePayConfirm)other);
      } else {
        super.mergeFrom(other);
        return this;
      }
    }

    public Builder mergeFrom(com.ywt.gapi.third.taihe.PrePayConfirm other) {
      if (other == com.ywt.gapi.third.taihe.PrePayConfirm.getDefaultInstance()) return this;
      if (!other.getInvoiceNo().isEmpty()) {
        invoiceNo_ = other.invoiceNo_;
        onChanged();
      }
      if (other.getInvoiceAmt() != 0) {
        setInvoiceAmt(other.getInvoiceAmt());
      }
      if (!other.getInsuFlag().isEmpty()) {
        insuFlag_ = other.insuFlag_;
        onChanged();
      }
      if (!other.getOutInsuInfo().isEmpty()) {
        outInsuInfo_ = other.outInsuInfo_;
        onChanged();
      }
      if (!other.getHisInsuInfo().isEmpty()) {
        hisInsuInfo_ = other.hisInsuInfo_;
        onChanged();
      }
      if (other.getInvoiceInsuAmt() != 0) {
        setInvoiceInsuAmt(other.getInvoiceInsuAmt());
      }
      if (other.getInvoiceSelfAmt() != 0) {
        setInvoiceSelfAmt(other.getInvoiceSelfAmt());
      }
      if (!other.getInsuOutTradeNo().isEmpty()) {
        insuOutTradeNo_ = other.insuOutTradeNo_;
        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.PrePayConfirm parsedMessage = null;
      try {
        parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
      } catch (com.google.protobuf.InvalidProtocolBufferException e) {
        parsedMessage = (com.ywt.gapi.third.taihe.PrePayConfirm) e.getUnfinishedMessage();
        throw e.unwrapIOException();
      } finally {
        if (parsedMessage != null) {
          mergeFrom(parsedMessage);
        }
      }
      return this;
    }

    private java.lang.Object invoiceNo_ = "";
    /**
     * <pre>
     * 票据唯一流水号
     * </pre>
     *
     * <code>string invoiceNo = 1;</code>
     * @return The invoiceNo.
     */
    public java.lang.String getInvoiceNo() {
      java.lang.Object ref = invoiceNo_;
      if (!(ref instanceof java.lang.String)) {
        com.google.protobuf.ByteString bs =
            (com.google.protobuf.ByteString) ref;
        java.lang.String s = bs.toStringUtf8();
        invoiceNo_ = s;
        return s;
      } else {
        return (java.lang.String) ref;
      }
    }
    /**
     * <pre>
     * 票据唯一流水号
     * </pre>
     *
     * <code>string invoiceNo = 1;</code>
     * @return The bytes for invoiceNo.
     */
    public com.google.protobuf.ByteString
        getInvoiceNoBytes() {
      java.lang.Object ref = invoiceNo_;
      if (ref instanceof String) {
        com.google.protobuf.ByteString b = 
            com.google.protobuf.ByteString.copyFromUtf8(
                (java.lang.String) ref);
        invoiceNo_ = b;
        return b;
      } else {
        return (com.google.protobuf.ByteString) ref;
      }
    }
    /**
     * <pre>
     * 票据唯一流水号
     * </pre>
     *
     * <code>string invoiceNo = 1;</code>
     * @param value The invoiceNo to set.
     * @return This builder for chaining.
     */
    public Builder setInvoiceNo(
        java.lang.String value) {
      if (value == null) {
    throw new NullPointerException();
  }
  
      invoiceNo_ = value;
      onChanged();
      return this;
    }
    /**
     * <pre>
     * 票据唯一流水号
     * </pre>
     *
     * <code>string invoiceNo = 1;</code>
     * @return This builder for chaining.
     */
    public Builder clearInvoiceNo() {
      
      invoiceNo_ = getDefaultInstance().getInvoiceNo();
      onChanged();
      return this;
    }
    /**
     * <pre>
     * 票据唯一流水号
     * </pre>
     *
     * <code>string invoiceNo = 1;</code>
     * @param value The bytes for invoiceNo to set.
     * @return This builder for chaining.
     */
    public Builder setInvoiceNoBytes(
        com.google.protobuf.ByteString value) {
      if (value == null) {
    throw new NullPointerException();
  }
  checkByteStringIsUtf8(value);
      
      invoiceNo_ = value;
      onChanged();
      return this;
    }

    private int invoiceAmt_ ;
    /**
     * <pre>
     * 票据金额，单位分
     * </pre>
     *
     * <code>int32 invoiceAmt = 2;</code>
     * @return The invoiceAmt.
     */
    @java.lang.Override
    public int getInvoiceAmt() {
      return invoiceAmt_;
    }
    /**
     * <pre>
     * 票据金额，单位分
     * </pre>
     *
     * <code>int32 invoiceAmt = 2;</code>
     * @param value The invoiceAmt to set.
     * @return This builder for chaining.
     */
    public Builder setInvoiceAmt(int value) {
      
      invoiceAmt_ = value;
      onChanged();
      return this;
    }
    /**
     * <pre>
     * 票据金额，单位分
     * </pre>
     *
     * <code>int32 invoiceAmt = 2;</code>
     * @return This builder for chaining.
     */
    public Builder clearInvoiceAmt() {
      
      invoiceAmt_ = 0;
      onChanged();
      return this;
    }

    private java.lang.Object insuFlag_ = "";
    /**
     * <pre>
     * 调用医保标志（Y调用,N不调用）
     * </pre>
     *
     * <code>string insuFlag = 3;</code>
     * @return The insuFlag.
     */
    public java.lang.String getInsuFlag() {
      java.lang.Object ref = insuFlag_;
      if (!(ref instanceof java.lang.String)) {
        com.google.protobuf.ByteString bs =
            (com.google.protobuf.ByteString) ref;
        java.lang.String s = bs.toStringUtf8();
        insuFlag_ = s;
        return s;
      } else {
        return (java.lang.String) ref;
      }
    }
    /**
     * <pre>
     * 调用医保标志（Y调用,N不调用）
     * </pre>
     *
     * <code>string insuFlag = 3;</code>
     * @return The bytes for insuFlag.
     */
    public com.google.protobuf.ByteString
        getInsuFlagBytes() {
      java.lang.Object ref = insuFlag_;
      if (ref instanceof String) {
        com.google.protobuf.ByteString b = 
            com.google.protobuf.ByteString.copyFromUtf8(
                (java.lang.String) ref);
        insuFlag_ = b;
        return b;
      } else {
        return (com.google.protobuf.ByteString) ref;
      }
    }
    /**
     * <pre>
     * 调用医保标志（Y调用,N不调用）
     * </pre>
     *
     * <code>string insuFlag = 3;</code>
     * @param value The insuFlag to set.
     * @return This builder for chaining.
     */
    public Builder setInsuFlag(
        java.lang.String value) {
      if (value == null) {
    throw new NullPointerException();
  }
  
      insuFlag_ = value;
      onChanged();
      return this;
    }
    /**
     * <pre>
     * 调用医保标志（Y调用,N不调用）
     * </pre>
     *
     * <code>string insuFlag = 3;</code>
     * @return This builder for chaining.
     */
    public Builder clearInsuFlag() {
      
      insuFlag_ = getDefaultInstance().getInsuFlag();
      onChanged();
      return this;
    }
    /**
     * <pre>
     * 调用医保标志（Y调用,N不调用）
     * </pre>
     *
     * <code>string insuFlag = 3;</code>
     * @param value The bytes for insuFlag to set.
     * @return This builder for chaining.
     */
    public Builder setInsuFlagBytes(
        com.google.protobuf.ByteString value) {
      if (value == null) {
    throw new NullPointerException();
  }
  checkByteStringIsUtf8(value);
      
      insuFlag_ = value;
      onChanged();
      return this;
    }

    private java.lang.Object outInsuInfo_ = "";
    /**
     * <pre>
     * 第三方医保分解上传明细
     * </pre>
     *
     * <code>string outInsuInfo = 4;</code>
     * @return The outInsuInfo.
     */
    public java.lang.String getOutInsuInfo() {
      java.lang.Object ref = outInsuInfo_;
      if (!(ref instanceof java.lang.String)) {
        com.google.protobuf.ByteString bs =
            (com.google.protobuf.ByteString) ref;
        java.lang.String s = bs.toStringUtf8();
        outInsuInfo_ = s;
        return s;
      } else {
        return (java.lang.String) ref;
      }
    }
    /**
     * <pre>
     * 第三方医保分解上传明细
     * </pre>
     *
     * <code>string outInsuInfo = 4;</code>
     * @return The bytes for outInsuInfo.
     */
    public com.google.protobuf.ByteString
        getOutInsuInfoBytes() {
      java.lang.Object ref = outInsuInfo_;
      if (ref instanceof String) {
        com.google.protobuf.ByteString b = 
            com.google.protobuf.ByteString.copyFromUtf8(
                (java.lang.String) ref);
        outInsuInfo_ = b;
        return b;
      } else {
        return (com.google.protobuf.ByteString) ref;
      }
    }
    /**
     * <pre>
     * 第三方医保分解上传明细
     * </pre>
     *
     * <code>string outInsuInfo = 4;</code>
     * @param value The outInsuInfo to set.
     * @return This builder for chaining.
     */
    public Builder setOutInsuInfo(
        java.lang.String value) {
      if (value == null) {
    throw new NullPointerException();
  }
  
      outInsuInfo_ = value;
      onChanged();
      return this;
    }
    /**
     * <pre>
     * 第三方医保分解上传明细
     * </pre>
     *
     * <code>string outInsuInfo = 4;</code>
     * @return This builder for chaining.
     */
    public Builder clearOutInsuInfo() {
      
      outInsuInfo_ = getDefaultInstance().getOutInsuInfo();
      onChanged();
      return this;
    }
    /**
     * <pre>
     * 第三方医保分解上传明细
     * </pre>
     *
     * <code>string outInsuInfo = 4;</code>
     * @param value The bytes for outInsuInfo to set.
     * @return This builder for chaining.
     */
    public Builder setOutInsuInfoBytes(
        com.google.protobuf.ByteString value) {
      if (value == null) {
    throw new NullPointerException();
  }
  checkByteStringIsUtf8(value);
      
      outInsuInfo_ = value;
      onChanged();
      return this;
    }

    private java.lang.Object hisInsuInfo_ = "";
    /**
     * <pre>
     * HIS动态库医保分解参数(&amp; strInvprtDr &amp; UserId &amp; ExpStr)
     * </pre>
     *
     * <code>string hisInsuInfo = 5;</code>
     * @return The hisInsuInfo.
     */
    public java.lang.String getHisInsuInfo() {
      java.lang.Object ref = hisInsuInfo_;
      if (!(ref instanceof java.lang.String)) {
        com.google.protobuf.ByteString bs =
            (com.google.protobuf.ByteString) ref;
        java.lang.String s = bs.toStringUtf8();
        hisInsuInfo_ = s;
        return s;
      } else {
        return (java.lang.String) ref;
      }
    }
    /**
     * <pre>
     * HIS动态库医保分解参数(&amp; strInvprtDr &amp; UserId &amp; ExpStr)
     * </pre>
     *
     * <code>string hisInsuInfo = 5;</code>
     * @return The bytes for hisInsuInfo.
     */
    public com.google.protobuf.ByteString
        getHisInsuInfoBytes() {
      java.lang.Object ref = hisInsuInfo_;
      if (ref instanceof String) {
        com.google.protobuf.ByteString b = 
            com.google.protobuf.ByteString.copyFromUtf8(
                (java.lang.String) ref);
        hisInsuInfo_ = b;
        return b;
      } else {
        return (com.google.protobuf.ByteString) ref;
      }
    }
    /**
     * <pre>
     * HIS动态库医保分解参数(&amp; strInvprtDr &amp; UserId &amp; ExpStr)
     * </pre>
     *
     * <code>string hisInsuInfo = 5;</code>
     * @param value The hisInsuInfo to set.
     * @return This builder for chaining.
     */
    public Builder setHisInsuInfo(
        java.lang.String value) {
      if (value == null) {
    throw new NullPointerException();
  }
  
      hisInsuInfo_ = value;
      onChanged();
      return this;
    }
    /**
     * <pre>
     * HIS动态库医保分解参数(&amp; strInvprtDr &amp; UserId &amp; ExpStr)
     * </pre>
     *
     * <code>string hisInsuInfo = 5;</code>
     * @return This builder for chaining.
     */
    public Builder clearHisInsuInfo() {
      
      hisInsuInfo_ = getDefaultInstance().getHisInsuInfo();
      onChanged();
      return this;
    }
    /**
     * <pre>
     * HIS动态库医保分解参数(&amp; strInvprtDr &amp; UserId &amp; ExpStr)
     * </pre>
     *
     * <code>string hisInsuInfo = 5;</code>
     * @param value The bytes for hisInsuInfo to set.
     * @return This builder for chaining.
     */
    public Builder setHisInsuInfoBytes(
        com.google.protobuf.ByteString value) {
      if (value == null) {
    throw new NullPointerException();
  }
  checkByteStringIsUtf8(value);
      
      hisInsuInfo_ = value;
      onChanged();
      return this;
    }

    private int invoiceInsuAmt_ ;
    /**
     * <pre>
     * 票据金额，单位分
     * </pre>
     *
     * <code>int32 invoiceInsuAmt = 6;</code>
     * @return The invoiceInsuAmt.
     */
    @java.lang.Override
    public int getInvoiceInsuAmt() {
      return invoiceInsuAmt_;
    }
    /**
     * <pre>
     * 票据金额，单位分
     * </pre>
     *
     * <code>int32 invoiceInsuAmt = 6;</code>
     * @param value The invoiceInsuAmt to set.
     * @return This builder for chaining.
     */
    public Builder setInvoiceInsuAmt(int value) {
      
      invoiceInsuAmt_ = value;
      onChanged();
      return this;
    }
    /**
     * <pre>
     * 票据金额，单位分
     * </pre>
     *
     * <code>int32 invoiceInsuAmt = 6;</code>
     * @return This builder for chaining.
     */
    public Builder clearInvoiceInsuAmt() {
      
      invoiceInsuAmt_ = 0;
      onChanged();
      return this;
    }

    private int invoiceSelfAmt_ ;
    /**
     * <pre>
     * 票据金额，单位分
     * </pre>
     *
     * <code>int32 invoiceSelfAmt = 7;</code>
     * @return The invoiceSelfAmt.
     */
    @java.lang.Override
    public int getInvoiceSelfAmt() {
      return invoiceSelfAmt_;
    }
    /**
     * <pre>
     * 票据金额，单位分
     * </pre>
     *
     * <code>int32 invoiceSelfAmt = 7;</code>
     * @param value The invoiceSelfAmt to set.
     * @return This builder for chaining.
     */
    public Builder setInvoiceSelfAmt(int value) {
      
      invoiceSelfAmt_ = value;
      onChanged();
      return this;
    }
    /**
     * <pre>
     * 票据金额，单位分
     * </pre>
     *
     * <code>int32 invoiceSelfAmt = 7;</code>
     * @return This builder for chaining.
     */
    public Builder clearInvoiceSelfAmt() {
      
      invoiceSelfAmt_ = 0;
      onChanged();
      return this;
    }

    private java.lang.Object insuOutTradeNo_ = "";
    /**
     * <pre>
     * 第三方医保分解上传明细
     * </pre>
     *
     * <code>string insuOutTradeNo = 8;</code>
     * @return The insuOutTradeNo.
     */
    public java.lang.String getInsuOutTradeNo() {
      java.lang.Object ref = insuOutTradeNo_;
      if (!(ref instanceof java.lang.String)) {
        com.google.protobuf.ByteString bs =
            (com.google.protobuf.ByteString) ref;
        java.lang.String s = bs.toStringUtf8();
        insuOutTradeNo_ = s;
        return s;
      } else {
        return (java.lang.String) ref;
      }
    }
    /**
     * <pre>
     * 第三方医保分解上传明细
     * </pre>
     *
     * <code>string insuOutTradeNo = 8;</code>
     * @return The bytes for insuOutTradeNo.
     */
    public com.google.protobuf.ByteString
        getInsuOutTradeNoBytes() {
      java.lang.Object ref = insuOutTradeNo_;
      if (ref instanceof String) {
        com.google.protobuf.ByteString b = 
            com.google.protobuf.ByteString.copyFromUtf8(
                (java.lang.String) ref);
        insuOutTradeNo_ = b;
        return b;
      } else {
        return (com.google.protobuf.ByteString) ref;
      }
    }
    /**
     * <pre>
     * 第三方医保分解上传明细
     * </pre>
     *
     * <code>string insuOutTradeNo = 8;</code>
     * @param value The insuOutTradeNo to set.
     * @return This builder for chaining.
     */
    public Builder setInsuOutTradeNo(
        java.lang.String value) {
      if (value == null) {
    throw new NullPointerException();
  }
  
      insuOutTradeNo_ = value;
      onChanged();
      return this;
    }
    /**
     * <pre>
     * 第三方医保分解上传明细
     * </pre>
     *
     * <code>string insuOutTradeNo = 8;</code>
     * @return This builder for chaining.
     */
    public Builder clearInsuOutTradeNo() {
      
      insuOutTradeNo_ = getDefaultInstance().getInsuOutTradeNo();
      onChanged();
      return this;
    }
    /**
     * <pre>
     * 第三方医保分解上传明细
     * </pre>
     *
     * <code>string insuOutTradeNo = 8;</code>
     * @param value The bytes for insuOutTradeNo to set.
     * @return This builder for chaining.
     */
    public Builder setInsuOutTradeNoBytes(
        com.google.protobuf.ByteString value) {
      if (value == null) {
    throw new NullPointerException();
  }
  checkByteStringIsUtf8(value);
      
      insuOutTradeNo_ = 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.PrePayConfirm)
  }

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

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

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

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

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

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

}

