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

package com.ywt.gapi.third.taihe;

/**
 * <pre>
 *缴费记录明细
 * </pre>
 *
 * Protobuf type {@code com.ywt.gapi.third.taihe.PaymentDetail}
 */
public final class PaymentDetail extends
    com.google.protobuf.GeneratedMessageV3 implements
    // @@protoc_insertion_point(message_implements:com.ywt.gapi.third.taihe.PaymentDetail)
    PaymentDetailOrBuilder {
private static final long serialVersionUID = 0L;
  // Use PaymentDetail.newBuilder() to construct.
  private PaymentDetail(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {
    super(builder);
  }
  private PaymentDetail() {
    itemName_ = "";
    itemType_ = "";
    itemUnit_ = "";
    itemSpec_ = "";
    itemCode_ = "";
  }

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

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

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

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

            itemUnit_ = s;
            break;
          }
          case 32: {

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

            itemSpec_ = s;
            break;
          }
          case 48: {

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

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

            itemCode_ = 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_PaymentDetail_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_PaymentDetail_fieldAccessorTable
        .ensureFieldAccessorsInitialized(
            com.ywt.gapi.third.taihe.PaymentDetail.class, com.ywt.gapi.third.taihe.PaymentDetail.Builder.class);
  }

  public static final int ITEMNAME_FIELD_NUMBER = 1;
  private volatile java.lang.Object itemName_;
  /**
   * <pre>
   *项目名称
   * </pre>
   *
   * <code>string itemName = 1;</code>
   * @return The itemName.
   */
  @java.lang.Override
  public java.lang.String getItemName() {
    java.lang.Object ref = itemName_;
    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();
      itemName_ = s;
      return s;
    }
  }
  /**
   * <pre>
   *项目名称
   * </pre>
   *
   * <code>string itemName = 1;</code>
   * @return The bytes for itemName.
   */
  @java.lang.Override
  public com.google.protobuf.ByteString
      getItemNameBytes() {
    java.lang.Object ref = itemName_;
    if (ref instanceof java.lang.String) {
      com.google.protobuf.ByteString b = 
          com.google.protobuf.ByteString.copyFromUtf8(
              (java.lang.String) ref);
      itemName_ = b;
      return b;
    } else {
      return (com.google.protobuf.ByteString) ref;
    }
  }

  public static final int ITEMTYPE_FIELD_NUMBER = 2;
  private volatile java.lang.Object itemType_;
  /**
   * <pre>
   *项目类别/费别（ 如：药费、检查费、材料费）
   * </pre>
   *
   * <code>string itemType = 2;</code>
   * @return The itemType.
   */
  @java.lang.Override
  public java.lang.String getItemType() {
    java.lang.Object ref = itemType_;
    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();
      itemType_ = s;
      return s;
    }
  }
  /**
   * <pre>
   *项目类别/费别（ 如：药费、检查费、材料费）
   * </pre>
   *
   * <code>string itemType = 2;</code>
   * @return The bytes for itemType.
   */
  @java.lang.Override
  public com.google.protobuf.ByteString
      getItemTypeBytes() {
    java.lang.Object ref = itemType_;
    if (ref instanceof java.lang.String) {
      com.google.protobuf.ByteString b = 
          com.google.protobuf.ByteString.copyFromUtf8(
              (java.lang.String) ref);
      itemType_ = b;
      return b;
    } else {
      return (com.google.protobuf.ByteString) ref;
    }
  }

  public static final int ITEMUNIT_FIELD_NUMBER = 3;
  private volatile java.lang.Object itemUnit_;
  /**
   * <pre>
   *单位
   * </pre>
   *
   * <code>string itemUnit = 3;</code>
   * @return The itemUnit.
   */
  @java.lang.Override
  public java.lang.String getItemUnit() {
    java.lang.Object ref = itemUnit_;
    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();
      itemUnit_ = s;
      return s;
    }
  }
  /**
   * <pre>
   *单位
   * </pre>
   *
   * <code>string itemUnit = 3;</code>
   * @return The bytes for itemUnit.
   */
  @java.lang.Override
  public com.google.protobuf.ByteString
      getItemUnitBytes() {
    java.lang.Object ref = itemUnit_;
    if (ref instanceof java.lang.String) {
      com.google.protobuf.ByteString b = 
          com.google.protobuf.ByteString.copyFromUtf8(
              (java.lang.String) ref);
      itemUnit_ = b;
      return b;
    } else {
      return (com.google.protobuf.ByteString) ref;
    }
  }

  public static final int ITEMPRICE_FIELD_NUMBER = 4;
  private int itemPrice_;
  /**
   * <pre>
   *单价（单位：分）
   * </pre>
   *
   * <code>int32 itemPrice = 4;</code>
   * @return The itemPrice.
   */
  @java.lang.Override
  public int getItemPrice() {
    return itemPrice_;
  }

  public static final int ITEMSPEC_FIELD_NUMBER = 5;
  private volatile java.lang.Object itemSpec_;
  /**
   * <pre>
   *规格
   * </pre>
   *
   * <code>string itemSpec = 5;</code>
   * @return The itemSpec.
   */
  @java.lang.Override
  public java.lang.String getItemSpec() {
    java.lang.Object ref = itemSpec_;
    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();
      itemSpec_ = s;
      return s;
    }
  }
  /**
   * <pre>
   *规格
   * </pre>
   *
   * <code>string itemSpec = 5;</code>
   * @return The bytes for itemSpec.
   */
  @java.lang.Override
  public com.google.protobuf.ByteString
      getItemSpecBytes() {
    java.lang.Object ref = itemSpec_;
    if (ref instanceof java.lang.String) {
      com.google.protobuf.ByteString b = 
          com.google.protobuf.ByteString.copyFromUtf8(
              (java.lang.String) ref);
      itemSpec_ = b;
      return b;
    } else {
      return (com.google.protobuf.ByteString) ref;
    }
  }

  public static final int ITEMNUMBER_FIELD_NUMBER = 6;
  private int itemNumber_;
  /**
   * <pre>
   *数量
   * </pre>
   *
   * <code>int32 itemNumber = 6;</code>
   * @return The itemNumber.
   */
  @java.lang.Override
  public int getItemNumber() {
    return itemNumber_;
  }

  public static final int ITEMTOTALFEE_FIELD_NUMBER = 7;
  private int itemTotalFee_;
  /**
   * <pre>
   *项目价格合计（单位：分， 单价*数量）
   * </pre>
   *
   * <code>int32 itemTotalFee = 7;</code>
   * @return The itemTotalFee.
   */
  @java.lang.Override
  public int getItemTotalFee() {
    return itemTotalFee_;
  }

  public static final int ITEMCODE_FIELD_NUMBER = 8;
  private volatile java.lang.Object itemCode_;
  /**
   * <code>string itemCode = 8;</code>
   * @return The itemCode.
   */
  @java.lang.Override
  public java.lang.String getItemCode() {
    java.lang.Object ref = itemCode_;
    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();
      itemCode_ = s;
      return s;
    }
  }
  /**
   * <code>string itemCode = 8;</code>
   * @return The bytes for itemCode.
   */
  @java.lang.Override
  public com.google.protobuf.ByteString
      getItemCodeBytes() {
    java.lang.Object ref = itemCode_;
    if (ref instanceof java.lang.String) {
      com.google.protobuf.ByteString b = 
          com.google.protobuf.ByteString.copyFromUtf8(
              (java.lang.String) ref);
      itemCode_ = 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(itemName_)) {
      com.google.protobuf.GeneratedMessageV3.writeString(output, 1, itemName_);
    }
    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(itemType_)) {
      com.google.protobuf.GeneratedMessageV3.writeString(output, 2, itemType_);
    }
    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(itemUnit_)) {
      com.google.protobuf.GeneratedMessageV3.writeString(output, 3, itemUnit_);
    }
    if (itemPrice_ != 0) {
      output.writeInt32(4, itemPrice_);
    }
    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(itemSpec_)) {
      com.google.protobuf.GeneratedMessageV3.writeString(output, 5, itemSpec_);
    }
    if (itemNumber_ != 0) {
      output.writeInt32(6, itemNumber_);
    }
    if (itemTotalFee_ != 0) {
      output.writeInt32(7, itemTotalFee_);
    }
    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(itemCode_)) {
      com.google.protobuf.GeneratedMessageV3.writeString(output, 8, itemCode_);
    }
    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(itemName_)) {
      size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, itemName_);
    }
    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(itemType_)) {
      size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, itemType_);
    }
    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(itemUnit_)) {
      size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, itemUnit_);
    }
    if (itemPrice_ != 0) {
      size += com.google.protobuf.CodedOutputStream
        .computeInt32Size(4, itemPrice_);
    }
    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(itemSpec_)) {
      size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, itemSpec_);
    }
    if (itemNumber_ != 0) {
      size += com.google.protobuf.CodedOutputStream
        .computeInt32Size(6, itemNumber_);
    }
    if (itemTotalFee_ != 0) {
      size += com.google.protobuf.CodedOutputStream
        .computeInt32Size(7, itemTotalFee_);
    }
    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(itemCode_)) {
      size += com.google.protobuf.GeneratedMessageV3.computeStringSize(8, itemCode_);
    }
    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.PaymentDetail)) {
      return super.equals(obj);
    }
    com.ywt.gapi.third.taihe.PaymentDetail other = (com.ywt.gapi.third.taihe.PaymentDetail) obj;

    if (!getItemName()
        .equals(other.getItemName())) return false;
    if (!getItemType()
        .equals(other.getItemType())) return false;
    if (!getItemUnit()
        .equals(other.getItemUnit())) return false;
    if (getItemPrice()
        != other.getItemPrice()) return false;
    if (!getItemSpec()
        .equals(other.getItemSpec())) return false;
    if (getItemNumber()
        != other.getItemNumber()) return false;
    if (getItemTotalFee()
        != other.getItemTotalFee()) return false;
    if (!getItemCode()
        .equals(other.getItemCode())) 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) + ITEMNAME_FIELD_NUMBER;
    hash = (53 * hash) + getItemName().hashCode();
    hash = (37 * hash) + ITEMTYPE_FIELD_NUMBER;
    hash = (53 * hash) + getItemType().hashCode();
    hash = (37 * hash) + ITEMUNIT_FIELD_NUMBER;
    hash = (53 * hash) + getItemUnit().hashCode();
    hash = (37 * hash) + ITEMPRICE_FIELD_NUMBER;
    hash = (53 * hash) + getItemPrice();
    hash = (37 * hash) + ITEMSPEC_FIELD_NUMBER;
    hash = (53 * hash) + getItemSpec().hashCode();
    hash = (37 * hash) + ITEMNUMBER_FIELD_NUMBER;
    hash = (53 * hash) + getItemNumber();
    hash = (37 * hash) + ITEMTOTALFEE_FIELD_NUMBER;
    hash = (53 * hash) + getItemTotalFee();
    hash = (37 * hash) + ITEMCODE_FIELD_NUMBER;
    hash = (53 * hash) + getItemCode().hashCode();
    hash = (29 * hash) + unknownFields.hashCode();
    memoizedHashCode = hash;
    return hash;
  }

  public static com.ywt.gapi.third.taihe.PaymentDetail parseFrom(
      java.nio.ByteBuffer data)
      throws com.google.protobuf.InvalidProtocolBufferException {
    return PARSER.parseFrom(data);
  }
  public static com.ywt.gapi.third.taihe.PaymentDetail 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.PaymentDetail parseFrom(
      com.google.protobuf.ByteString data)
      throws com.google.protobuf.InvalidProtocolBufferException {
    return PARSER.parseFrom(data);
  }
  public static com.ywt.gapi.third.taihe.PaymentDetail 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.PaymentDetail parseFrom(byte[] data)
      throws com.google.protobuf.InvalidProtocolBufferException {
    return PARSER.parseFrom(data);
  }
  public static com.ywt.gapi.third.taihe.PaymentDetail 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.PaymentDetail parseFrom(java.io.InputStream input)
      throws java.io.IOException {
    return com.google.protobuf.GeneratedMessageV3
        .parseWithIOException(PARSER, input);
  }
  public static com.ywt.gapi.third.taihe.PaymentDetail 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.PaymentDetail parseDelimitedFrom(java.io.InputStream input)
      throws java.io.IOException {
    return com.google.protobuf.GeneratedMessageV3
        .parseDelimitedWithIOException(PARSER, input);
  }
  public static com.ywt.gapi.third.taihe.PaymentDetail 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.PaymentDetail 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.PaymentDetail 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.PaymentDetail prototype) {
    return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
  }
  @java.lang.Override
  public Builder toBuilder() {
    return this == DEFAULT_INSTANCE
        ? new Builder() : new Builder().mergeFrom(this);
  }

  @java.lang.Override
  protected Builder newBuilderForType(
      com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
    Builder builder = new Builder(parent);
    return builder;
  }
  /**
   * <pre>
   *缴费记录明细
   * </pre>
   *
   * Protobuf type {@code com.ywt.gapi.third.taihe.PaymentDetail}
   */
  public static final class Builder extends
      com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements
      // @@protoc_insertion_point(builder_implements:com.ywt.gapi.third.taihe.PaymentDetail)
      com.ywt.gapi.third.taihe.PaymentDetailOrBuilder {
    public static final com.google.protobuf.Descriptors.Descriptor
        getDescriptor() {
      return com.ywt.gapi.third.taihe.TaiheProto.internal_static_com_ywt_gapi_third_taihe_PaymentDetail_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_PaymentDetail_fieldAccessorTable
          .ensureFieldAccessorsInitialized(
              com.ywt.gapi.third.taihe.PaymentDetail.class, com.ywt.gapi.third.taihe.PaymentDetail.Builder.class);
    }

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

      itemType_ = "";

      itemUnit_ = "";

      itemPrice_ = 0;

      itemSpec_ = "";

      itemNumber_ = 0;

      itemTotalFee_ = 0;

      itemCode_ = "";

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

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

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

    @java.lang.Override
    public com.ywt.gapi.third.taihe.PaymentDetail buildPartial() {
      com.ywt.gapi.third.taihe.PaymentDetail result = new com.ywt.gapi.third.taihe.PaymentDetail(this);
      result.itemName_ = itemName_;
      result.itemType_ = itemType_;
      result.itemUnit_ = itemUnit_;
      result.itemPrice_ = itemPrice_;
      result.itemSpec_ = itemSpec_;
      result.itemNumber_ = itemNumber_;
      result.itemTotalFee_ = itemTotalFee_;
      result.itemCode_ = itemCode_;
      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.PaymentDetail) {
        return mergeFrom((com.ywt.gapi.third.taihe.PaymentDetail)other);
      } else {
        super.mergeFrom(other);
        return this;
      }
    }

    public Builder mergeFrom(com.ywt.gapi.third.taihe.PaymentDetail other) {
      if (other == com.ywt.gapi.third.taihe.PaymentDetail.getDefaultInstance()) return this;
      if (!other.getItemName().isEmpty()) {
        itemName_ = other.itemName_;
        onChanged();
      }
      if (!other.getItemType().isEmpty()) {
        itemType_ = other.itemType_;
        onChanged();
      }
      if (!other.getItemUnit().isEmpty()) {
        itemUnit_ = other.itemUnit_;
        onChanged();
      }
      if (other.getItemPrice() != 0) {
        setItemPrice(other.getItemPrice());
      }
      if (!other.getItemSpec().isEmpty()) {
        itemSpec_ = other.itemSpec_;
        onChanged();
      }
      if (other.getItemNumber() != 0) {
        setItemNumber(other.getItemNumber());
      }
      if (other.getItemTotalFee() != 0) {
        setItemTotalFee(other.getItemTotalFee());
      }
      if (!other.getItemCode().isEmpty()) {
        itemCode_ = other.itemCode_;
        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.PaymentDetail parsedMessage = null;
      try {
        parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
      } catch (com.google.protobuf.InvalidProtocolBufferException e) {
        parsedMessage = (com.ywt.gapi.third.taihe.PaymentDetail) e.getUnfinishedMessage();
        throw e.unwrapIOException();
      } finally {
        if (parsedMessage != null) {
          mergeFrom(parsedMessage);
        }
      }
      return this;
    }

    private java.lang.Object itemName_ = "";
    /**
     * <pre>
     *项目名称
     * </pre>
     *
     * <code>string itemName = 1;</code>
     * @return The itemName.
     */
    public java.lang.String getItemName() {
      java.lang.Object ref = itemName_;
      if (!(ref instanceof java.lang.String)) {
        com.google.protobuf.ByteString bs =
            (com.google.protobuf.ByteString) ref;
        java.lang.String s = bs.toStringUtf8();
        itemName_ = s;
        return s;
      } else {
        return (java.lang.String) ref;
      }
    }
    /**
     * <pre>
     *项目名称
     * </pre>
     *
     * <code>string itemName = 1;</code>
     * @return The bytes for itemName.
     */
    public com.google.protobuf.ByteString
        getItemNameBytes() {
      java.lang.Object ref = itemName_;
      if (ref instanceof String) {
        com.google.protobuf.ByteString b = 
            com.google.protobuf.ByteString.copyFromUtf8(
                (java.lang.String) ref);
        itemName_ = b;
        return b;
      } else {
        return (com.google.protobuf.ByteString) ref;
      }
    }
    /**
     * <pre>
     *项目名称
     * </pre>
     *
     * <code>string itemName = 1;</code>
     * @param value The itemName to set.
     * @return This builder for chaining.
     */
    public Builder setItemName(
        java.lang.String value) {
      if (value == null) {
    throw new NullPointerException();
  }
  
      itemName_ = value;
      onChanged();
      return this;
    }
    /**
     * <pre>
     *项目名称
     * </pre>
     *
     * <code>string itemName = 1;</code>
     * @return This builder for chaining.
     */
    public Builder clearItemName() {
      
      itemName_ = getDefaultInstance().getItemName();
      onChanged();
      return this;
    }
    /**
     * <pre>
     *项目名称
     * </pre>
     *
     * <code>string itemName = 1;</code>
     * @param value The bytes for itemName to set.
     * @return This builder for chaining.
     */
    public Builder setItemNameBytes(
        com.google.protobuf.ByteString value) {
      if (value == null) {
    throw new NullPointerException();
  }
  checkByteStringIsUtf8(value);
      
      itemName_ = value;
      onChanged();
      return this;
    }

    private java.lang.Object itemType_ = "";
    /**
     * <pre>
     *项目类别/费别（ 如：药费、检查费、材料费）
     * </pre>
     *
     * <code>string itemType = 2;</code>
     * @return The itemType.
     */
    public java.lang.String getItemType() {
      java.lang.Object ref = itemType_;
      if (!(ref instanceof java.lang.String)) {
        com.google.protobuf.ByteString bs =
            (com.google.protobuf.ByteString) ref;
        java.lang.String s = bs.toStringUtf8();
        itemType_ = s;
        return s;
      } else {
        return (java.lang.String) ref;
      }
    }
    /**
     * <pre>
     *项目类别/费别（ 如：药费、检查费、材料费）
     * </pre>
     *
     * <code>string itemType = 2;</code>
     * @return The bytes for itemType.
     */
    public com.google.protobuf.ByteString
        getItemTypeBytes() {
      java.lang.Object ref = itemType_;
      if (ref instanceof String) {
        com.google.protobuf.ByteString b = 
            com.google.protobuf.ByteString.copyFromUtf8(
                (java.lang.String) ref);
        itemType_ = b;
        return b;
      } else {
        return (com.google.protobuf.ByteString) ref;
      }
    }
    /**
     * <pre>
     *项目类别/费别（ 如：药费、检查费、材料费）
     * </pre>
     *
     * <code>string itemType = 2;</code>
     * @param value The itemType to set.
     * @return This builder for chaining.
     */
    public Builder setItemType(
        java.lang.String value) {
      if (value == null) {
    throw new NullPointerException();
  }
  
      itemType_ = value;
      onChanged();
      return this;
    }
    /**
     * <pre>
     *项目类别/费别（ 如：药费、检查费、材料费）
     * </pre>
     *
     * <code>string itemType = 2;</code>
     * @return This builder for chaining.
     */
    public Builder clearItemType() {
      
      itemType_ = getDefaultInstance().getItemType();
      onChanged();
      return this;
    }
    /**
     * <pre>
     *项目类别/费别（ 如：药费、检查费、材料费）
     * </pre>
     *
     * <code>string itemType = 2;</code>
     * @param value The bytes for itemType to set.
     * @return This builder for chaining.
     */
    public Builder setItemTypeBytes(
        com.google.protobuf.ByteString value) {
      if (value == null) {
    throw new NullPointerException();
  }
  checkByteStringIsUtf8(value);
      
      itemType_ = value;
      onChanged();
      return this;
    }

    private java.lang.Object itemUnit_ = "";
    /**
     * <pre>
     *单位
     * </pre>
     *
     * <code>string itemUnit = 3;</code>
     * @return The itemUnit.
     */
    public java.lang.String getItemUnit() {
      java.lang.Object ref = itemUnit_;
      if (!(ref instanceof java.lang.String)) {
        com.google.protobuf.ByteString bs =
            (com.google.protobuf.ByteString) ref;
        java.lang.String s = bs.toStringUtf8();
        itemUnit_ = s;
        return s;
      } else {
        return (java.lang.String) ref;
      }
    }
    /**
     * <pre>
     *单位
     * </pre>
     *
     * <code>string itemUnit = 3;</code>
     * @return The bytes for itemUnit.
     */
    public com.google.protobuf.ByteString
        getItemUnitBytes() {
      java.lang.Object ref = itemUnit_;
      if (ref instanceof String) {
        com.google.protobuf.ByteString b = 
            com.google.protobuf.ByteString.copyFromUtf8(
                (java.lang.String) ref);
        itemUnit_ = b;
        return b;
      } else {
        return (com.google.protobuf.ByteString) ref;
      }
    }
    /**
     * <pre>
     *单位
     * </pre>
     *
     * <code>string itemUnit = 3;</code>
     * @param value The itemUnit to set.
     * @return This builder for chaining.
     */
    public Builder setItemUnit(
        java.lang.String value) {
      if (value == null) {
    throw new NullPointerException();
  }
  
      itemUnit_ = value;
      onChanged();
      return this;
    }
    /**
     * <pre>
     *单位
     * </pre>
     *
     * <code>string itemUnit = 3;</code>
     * @return This builder for chaining.
     */
    public Builder clearItemUnit() {
      
      itemUnit_ = getDefaultInstance().getItemUnit();
      onChanged();
      return this;
    }
    /**
     * <pre>
     *单位
     * </pre>
     *
     * <code>string itemUnit = 3;</code>
     * @param value The bytes for itemUnit to set.
     * @return This builder for chaining.
     */
    public Builder setItemUnitBytes(
        com.google.protobuf.ByteString value) {
      if (value == null) {
    throw new NullPointerException();
  }
  checkByteStringIsUtf8(value);
      
      itemUnit_ = value;
      onChanged();
      return this;
    }

    private int itemPrice_ ;
    /**
     * <pre>
     *单价（单位：分）
     * </pre>
     *
     * <code>int32 itemPrice = 4;</code>
     * @return The itemPrice.
     */
    @java.lang.Override
    public int getItemPrice() {
      return itemPrice_;
    }
    /**
     * <pre>
     *单价（单位：分）
     * </pre>
     *
     * <code>int32 itemPrice = 4;</code>
     * @param value The itemPrice to set.
     * @return This builder for chaining.
     */
    public Builder setItemPrice(int value) {
      
      itemPrice_ = value;
      onChanged();
      return this;
    }
    /**
     * <pre>
     *单价（单位：分）
     * </pre>
     *
     * <code>int32 itemPrice = 4;</code>
     * @return This builder for chaining.
     */
    public Builder clearItemPrice() {
      
      itemPrice_ = 0;
      onChanged();
      return this;
    }

    private java.lang.Object itemSpec_ = "";
    /**
     * <pre>
     *规格
     * </pre>
     *
     * <code>string itemSpec = 5;</code>
     * @return The itemSpec.
     */
    public java.lang.String getItemSpec() {
      java.lang.Object ref = itemSpec_;
      if (!(ref instanceof java.lang.String)) {
        com.google.protobuf.ByteString bs =
            (com.google.protobuf.ByteString) ref;
        java.lang.String s = bs.toStringUtf8();
        itemSpec_ = s;
        return s;
      } else {
        return (java.lang.String) ref;
      }
    }
    /**
     * <pre>
     *规格
     * </pre>
     *
     * <code>string itemSpec = 5;</code>
     * @return The bytes for itemSpec.
     */
    public com.google.protobuf.ByteString
        getItemSpecBytes() {
      java.lang.Object ref = itemSpec_;
      if (ref instanceof String) {
        com.google.protobuf.ByteString b = 
            com.google.protobuf.ByteString.copyFromUtf8(
                (java.lang.String) ref);
        itemSpec_ = b;
        return b;
      } else {
        return (com.google.protobuf.ByteString) ref;
      }
    }
    /**
     * <pre>
     *规格
     * </pre>
     *
     * <code>string itemSpec = 5;</code>
     * @param value The itemSpec to set.
     * @return This builder for chaining.
     */
    public Builder setItemSpec(
        java.lang.String value) {
      if (value == null) {
    throw new NullPointerException();
  }
  
      itemSpec_ = value;
      onChanged();
      return this;
    }
    /**
     * <pre>
     *规格
     * </pre>
     *
     * <code>string itemSpec = 5;</code>
     * @return This builder for chaining.
     */
    public Builder clearItemSpec() {
      
      itemSpec_ = getDefaultInstance().getItemSpec();
      onChanged();
      return this;
    }
    /**
     * <pre>
     *规格
     * </pre>
     *
     * <code>string itemSpec = 5;</code>
     * @param value The bytes for itemSpec to set.
     * @return This builder for chaining.
     */
    public Builder setItemSpecBytes(
        com.google.protobuf.ByteString value) {
      if (value == null) {
    throw new NullPointerException();
  }
  checkByteStringIsUtf8(value);
      
      itemSpec_ = value;
      onChanged();
      return this;
    }

    private int itemNumber_ ;
    /**
     * <pre>
     *数量
     * </pre>
     *
     * <code>int32 itemNumber = 6;</code>
     * @return The itemNumber.
     */
    @java.lang.Override
    public int getItemNumber() {
      return itemNumber_;
    }
    /**
     * <pre>
     *数量
     * </pre>
     *
     * <code>int32 itemNumber = 6;</code>
     * @param value The itemNumber to set.
     * @return This builder for chaining.
     */
    public Builder setItemNumber(int value) {
      
      itemNumber_ = value;
      onChanged();
      return this;
    }
    /**
     * <pre>
     *数量
     * </pre>
     *
     * <code>int32 itemNumber = 6;</code>
     * @return This builder for chaining.
     */
    public Builder clearItemNumber() {
      
      itemNumber_ = 0;
      onChanged();
      return this;
    }

    private int itemTotalFee_ ;
    /**
     * <pre>
     *项目价格合计（单位：分， 单价*数量）
     * </pre>
     *
     * <code>int32 itemTotalFee = 7;</code>
     * @return The itemTotalFee.
     */
    @java.lang.Override
    public int getItemTotalFee() {
      return itemTotalFee_;
    }
    /**
     * <pre>
     *项目价格合计（单位：分， 单价*数量）
     * </pre>
     *
     * <code>int32 itemTotalFee = 7;</code>
     * @param value The itemTotalFee to set.
     * @return This builder for chaining.
     */
    public Builder setItemTotalFee(int value) {
      
      itemTotalFee_ = value;
      onChanged();
      return this;
    }
    /**
     * <pre>
     *项目价格合计（单位：分， 单价*数量）
     * </pre>
     *
     * <code>int32 itemTotalFee = 7;</code>
     * @return This builder for chaining.
     */
    public Builder clearItemTotalFee() {
      
      itemTotalFee_ = 0;
      onChanged();
      return this;
    }

    private java.lang.Object itemCode_ = "";
    /**
     * <code>string itemCode = 8;</code>
     * @return The itemCode.
     */
    public java.lang.String getItemCode() {
      java.lang.Object ref = itemCode_;
      if (!(ref instanceof java.lang.String)) {
        com.google.protobuf.ByteString bs =
            (com.google.protobuf.ByteString) ref;
        java.lang.String s = bs.toStringUtf8();
        itemCode_ = s;
        return s;
      } else {
        return (java.lang.String) ref;
      }
    }
    /**
     * <code>string itemCode = 8;</code>
     * @return The bytes for itemCode.
     */
    public com.google.protobuf.ByteString
        getItemCodeBytes() {
      java.lang.Object ref = itemCode_;
      if (ref instanceof String) {
        com.google.protobuf.ByteString b = 
            com.google.protobuf.ByteString.copyFromUtf8(
                (java.lang.String) ref);
        itemCode_ = b;
        return b;
      } else {
        return (com.google.protobuf.ByteString) ref;
      }
    }
    /**
     * <code>string itemCode = 8;</code>
     * @param value The itemCode to set.
     * @return This builder for chaining.
     */
    public Builder setItemCode(
        java.lang.String value) {
      if (value == null) {
    throw new NullPointerException();
  }
  
      itemCode_ = value;
      onChanged();
      return this;
    }
    /**
     * <code>string itemCode = 8;</code>
     * @return This builder for chaining.
     */
    public Builder clearItemCode() {
      
      itemCode_ = getDefaultInstance().getItemCode();
      onChanged();
      return this;
    }
    /**
     * <code>string itemCode = 8;</code>
     * @param value The bytes for itemCode to set.
     * @return This builder for chaining.
     */
    public Builder setItemCodeBytes(
        com.google.protobuf.ByteString value) {
      if (value == null) {
    throw new NullPointerException();
  }
  checkByteStringIsUtf8(value);
      
      itemCode_ = 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.PaymentDetail)
  }

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

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

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

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

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

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

}

