// 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.PayDetailItem}
 */
public  final class PayDetailItem extends
    com.google.protobuf.GeneratedMessageV3 implements
    // @@protoc_insertion_point(message_implements:com.ywt.gapi.third.taihe.PayDetailItem)
    PayDetailItemOrBuilder {
  // Use PayDetailItem.newBuilder() to construct.
  private PayDetailItem(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {
    super(builder);
  }
  private PayDetailItem() {
    itemCode_ = "";
    itemName_ = "";
    itemType_ = "";
    itemPrice_ = 0;
    itemNumber_ = "";
    itemTotalFee_ = 0;
    itemUnit_ = "";
    itemSpec_ = "";
  }

  @java.lang.Override
  public final com.google.protobuf.UnknownFieldSet
  getUnknownFields() {
    return com.google.protobuf.UnknownFieldSet.getDefaultInstance();
  }
  private PayDetailItem(
      com.google.protobuf.CodedInputStream input,
      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
      throws com.google.protobuf.InvalidProtocolBufferException {
    this();
    int mutable_bitField0_ = 0;
    try {
      boolean done = false;
      while (!done) {
        int tag = input.readTag();
        switch (tag) {
          case 0:
            done = true;
            break;
          default: {
            if (!input.skipField(tag)) {
              done = true;
            }
            break;
          }
          case 10: {
            java.lang.String s = input.readStringRequireUtf8();

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

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

            itemType_ = s;
            break;
          }
          case 32: {

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

            itemNumber_ = s;
            break;
          }
          case 48: {

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

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

            itemSpec_ = s;
            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 {
      makeExtensionsImmutable();
    }
  }
  public static final com.google.protobuf.Descriptors.Descriptor
      getDescriptor() {
    return com.ywt.gapi.third.taihe.Taihe.internal_static_com_ywt_gapi_third_taihe_PayDetailItem_descriptor;
  }

  protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
      internalGetFieldAccessorTable() {
    return com.ywt.gapi.third.taihe.Taihe.internal_static_com_ywt_gapi_third_taihe_PayDetailItem_fieldAccessorTable
        .ensureFieldAccessorsInitialized(
            com.ywt.gapi.third.taihe.PayDetailItem.class, com.ywt.gapi.third.taihe.PayDetailItem.Builder.class);
  }

  public static final int ITEMCODE_FIELD_NUMBER = 1;
  private volatile java.lang.Object itemCode_;
  /**
   * <code>string itemCode = 1;</code>
   */
  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 = 1;</code>
   */
  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;
    }
  }

  public static final int ITEMNAME_FIELD_NUMBER = 2;
  private volatile java.lang.Object itemName_;
  /**
   * <code>string itemName = 2;</code>
   */
  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;
    }
  }
  /**
   * <code>string itemName = 2;</code>
   */
  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 = 3;
  private volatile java.lang.Object itemType_;
  /**
   * <code>string itemType = 3;</code>
   */
  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;
    }
  }
  /**
   * <code>string itemType = 3;</code>
   */
  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 ITEMPRICE_FIELD_NUMBER = 4;
  private int itemPrice_;
  /**
   * <code>int32 itemPrice = 4;</code>
   */
  public int getItemPrice() {
    return itemPrice_;
  }

  public static final int ITEMNUMBER_FIELD_NUMBER = 5;
  private volatile java.lang.Object itemNumber_;
  /**
   * <code>string itemNumber = 5;</code>
   */
  public java.lang.String getItemNumber() {
    java.lang.Object ref = itemNumber_;
    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();
      itemNumber_ = s;
      return s;
    }
  }
  /**
   * <code>string itemNumber = 5;</code>
   */
  public com.google.protobuf.ByteString
      getItemNumberBytes() {
    java.lang.Object ref = itemNumber_;
    if (ref instanceof java.lang.String) {
      com.google.protobuf.ByteString b = 
          com.google.protobuf.ByteString.copyFromUtf8(
              (java.lang.String) ref);
      itemNumber_ = b;
      return b;
    } else {
      return (com.google.protobuf.ByteString) ref;
    }
  }

  public static final int ITEMTOTALFEE_FIELD_NUMBER = 6;
  private int itemTotalFee_;
  /**
   * <code>int32 itemTotalFee = 6;</code>
   */
  public int getItemTotalFee() {
    return itemTotalFee_;
  }

  public static final int ITEMUNIT_FIELD_NUMBER = 7;
  private volatile java.lang.Object itemUnit_;
  /**
   * <code>string itemUnit = 7;</code>
   */
  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;
    }
  }
  /**
   * <code>string itemUnit = 7;</code>
   */
  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 ITEMSPEC_FIELD_NUMBER = 8;
  private volatile java.lang.Object itemSpec_;
  /**
   * <code>string itemSpec = 8;</code>
   */
  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;
    }
  }
  /**
   * <code>string itemSpec = 8;</code>
   */
  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;
    }
  }

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

    memoizedIsInitialized = 1;
    return true;
  }

  public void writeTo(com.google.protobuf.CodedOutputStream output)
                      throws java.io.IOException {
    if (!getItemCodeBytes().isEmpty()) {
      com.google.protobuf.GeneratedMessageV3.writeString(output, 1, itemCode_);
    }
    if (!getItemNameBytes().isEmpty()) {
      com.google.protobuf.GeneratedMessageV3.writeString(output, 2, itemName_);
    }
    if (!getItemTypeBytes().isEmpty()) {
      com.google.protobuf.GeneratedMessageV3.writeString(output, 3, itemType_);
    }
    if (itemPrice_ != 0) {
      output.writeInt32(4, itemPrice_);
    }
    if (!getItemNumberBytes().isEmpty()) {
      com.google.protobuf.GeneratedMessageV3.writeString(output, 5, itemNumber_);
    }
    if (itemTotalFee_ != 0) {
      output.writeInt32(6, itemTotalFee_);
    }
    if (!getItemUnitBytes().isEmpty()) {
      com.google.protobuf.GeneratedMessageV3.writeString(output, 7, itemUnit_);
    }
    if (!getItemSpecBytes().isEmpty()) {
      com.google.protobuf.GeneratedMessageV3.writeString(output, 8, itemSpec_);
    }
  }

  public int getSerializedSize() {
    int size = memoizedSize;
    if (size != -1) return size;

    size = 0;
    if (!getItemCodeBytes().isEmpty()) {
      size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, itemCode_);
    }
    if (!getItemNameBytes().isEmpty()) {
      size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, itemName_);
    }
    if (!getItemTypeBytes().isEmpty()) {
      size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, itemType_);
    }
    if (itemPrice_ != 0) {
      size += com.google.protobuf.CodedOutputStream
        .computeInt32Size(4, itemPrice_);
    }
    if (!getItemNumberBytes().isEmpty()) {
      size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, itemNumber_);
    }
    if (itemTotalFee_ != 0) {
      size += com.google.protobuf.CodedOutputStream
        .computeInt32Size(6, itemTotalFee_);
    }
    if (!getItemUnitBytes().isEmpty()) {
      size += com.google.protobuf.GeneratedMessageV3.computeStringSize(7, itemUnit_);
    }
    if (!getItemSpecBytes().isEmpty()) {
      size += com.google.protobuf.GeneratedMessageV3.computeStringSize(8, itemSpec_);
    }
    memoizedSize = size;
    return size;
  }

  private static final long serialVersionUID = 0L;
  @java.lang.Override
  public boolean equals(final java.lang.Object obj) {
    if (obj == this) {
     return true;
    }
    if (!(obj instanceof com.ywt.gapi.third.taihe.PayDetailItem)) {
      return super.equals(obj);
    }
    com.ywt.gapi.third.taihe.PayDetailItem other = (com.ywt.gapi.third.taihe.PayDetailItem) obj;

    boolean result = true;
    result = result && getItemCode()
        .equals(other.getItemCode());
    result = result && getItemName()
        .equals(other.getItemName());
    result = result && getItemType()
        .equals(other.getItemType());
    result = result && (getItemPrice()
        == other.getItemPrice());
    result = result && getItemNumber()
        .equals(other.getItemNumber());
    result = result && (getItemTotalFee()
        == other.getItemTotalFee());
    result = result && getItemUnit()
        .equals(other.getItemUnit());
    result = result && getItemSpec()
        .equals(other.getItemSpec());
    return result;
  }

  @java.lang.Override
  public int hashCode() {
    if (memoizedHashCode != 0) {
      return memoizedHashCode;
    }
    int hash = 41;
    hash = (19 * hash) + getDescriptor().hashCode();
    hash = (37 * hash) + ITEMCODE_FIELD_NUMBER;
    hash = (53 * hash) + getItemCode().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) + ITEMPRICE_FIELD_NUMBER;
    hash = (53 * hash) + getItemPrice();
    hash = (37 * hash) + ITEMNUMBER_FIELD_NUMBER;
    hash = (53 * hash) + getItemNumber().hashCode();
    hash = (37 * hash) + ITEMTOTALFEE_FIELD_NUMBER;
    hash = (53 * hash) + getItemTotalFee();
    hash = (37 * hash) + ITEMUNIT_FIELD_NUMBER;
    hash = (53 * hash) + getItemUnit().hashCode();
    hash = (37 * hash) + ITEMSPEC_FIELD_NUMBER;
    hash = (53 * hash) + getItemSpec().hashCode();
    hash = (29 * hash) + unknownFields.hashCode();
    memoizedHashCode = hash;
    return hash;
  }

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

  public Builder newBuilderForType() { return newBuilder(); }
  public static Builder newBuilder() {
    return DEFAULT_INSTANCE.toBuilder();
  }
  public static Builder newBuilder(com.ywt.gapi.third.taihe.PayDetailItem prototype) {
    return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
  }
  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.PayDetailItem}
   */
  public static final class Builder extends
      com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements
      // @@protoc_insertion_point(builder_implements:com.ywt.gapi.third.taihe.PayDetailItem)
      com.ywt.gapi.third.taihe.PayDetailItemOrBuilder {
    public static final com.google.protobuf.Descriptors.Descriptor
        getDescriptor() {
      return com.ywt.gapi.third.taihe.Taihe.internal_static_com_ywt_gapi_third_taihe_PayDetailItem_descriptor;
    }

    protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
        internalGetFieldAccessorTable() {
      return com.ywt.gapi.third.taihe.Taihe.internal_static_com_ywt_gapi_third_taihe_PayDetailItem_fieldAccessorTable
          .ensureFieldAccessorsInitialized(
              com.ywt.gapi.third.taihe.PayDetailItem.class, com.ywt.gapi.third.taihe.PayDetailItem.Builder.class);
    }

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

    private Builder(
        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
      super(parent);
      maybeForceBuilderInitialization();
    }
    private void maybeForceBuilderInitialization() {
      if (com.google.protobuf.GeneratedMessageV3
              .alwaysUseFieldBuilders) {
      }
    }
    public Builder clear() {
      super.clear();
      itemCode_ = "";

      itemName_ = "";

      itemType_ = "";

      itemPrice_ = 0;

      itemNumber_ = "";

      itemTotalFee_ = 0;

      itemUnit_ = "";

      itemSpec_ = "";

      return this;
    }

    public com.google.protobuf.Descriptors.Descriptor
        getDescriptorForType() {
      return com.ywt.gapi.third.taihe.Taihe.internal_static_com_ywt_gapi_third_taihe_PayDetailItem_descriptor;
    }

    public com.ywt.gapi.third.taihe.PayDetailItem getDefaultInstanceForType() {
      return com.ywt.gapi.third.taihe.PayDetailItem.getDefaultInstance();
    }

    public com.ywt.gapi.third.taihe.PayDetailItem build() {
      com.ywt.gapi.third.taihe.PayDetailItem result = buildPartial();
      if (!result.isInitialized()) {
        throw newUninitializedMessageException(result);
      }
      return result;
    }

    public com.ywt.gapi.third.taihe.PayDetailItem buildPartial() {
      com.ywt.gapi.third.taihe.PayDetailItem result = new com.ywt.gapi.third.taihe.PayDetailItem(this);
      result.itemCode_ = itemCode_;
      result.itemName_ = itemName_;
      result.itemType_ = itemType_;
      result.itemPrice_ = itemPrice_;
      result.itemNumber_ = itemNumber_;
      result.itemTotalFee_ = itemTotalFee_;
      result.itemUnit_ = itemUnit_;
      result.itemSpec_ = itemSpec_;
      onBuilt();
      return result;
    }

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

    public Builder mergeFrom(com.ywt.gapi.third.taihe.PayDetailItem other) {
      if (other == com.ywt.gapi.third.taihe.PayDetailItem.getDefaultInstance()) return this;
      if (!other.getItemCode().isEmpty()) {
        itemCode_ = other.itemCode_;
        onChanged();
      }
      if (!other.getItemName().isEmpty()) {
        itemName_ = other.itemName_;
        onChanged();
      }
      if (!other.getItemType().isEmpty()) {
        itemType_ = other.itemType_;
        onChanged();
      }
      if (other.getItemPrice() != 0) {
        setItemPrice(other.getItemPrice());
      }
      if (!other.getItemNumber().isEmpty()) {
        itemNumber_ = other.itemNumber_;
        onChanged();
      }
      if (other.getItemTotalFee() != 0) {
        setItemTotalFee(other.getItemTotalFee());
      }
      if (!other.getItemUnit().isEmpty()) {
        itemUnit_ = other.itemUnit_;
        onChanged();
      }
      if (!other.getItemSpec().isEmpty()) {
        itemSpec_ = other.itemSpec_;
        onChanged();
      }
      onChanged();
      return this;
    }

    public final boolean isInitialized() {
      return true;
    }

    public Builder mergeFrom(
        com.google.protobuf.CodedInputStream input,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws java.io.IOException {
      com.ywt.gapi.third.taihe.PayDetailItem parsedMessage = null;
      try {
        parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
      } catch (com.google.protobuf.InvalidProtocolBufferException e) {
        parsedMessage = (com.ywt.gapi.third.taihe.PayDetailItem) e.getUnfinishedMessage();
        throw e.unwrapIOException();
      } finally {
        if (parsedMessage != null) {
          mergeFrom(parsedMessage);
        }
      }
      return this;
    }

    private java.lang.Object itemCode_ = "";
    /**
     * <code>string itemCode = 1;</code>
     */
    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 = 1;</code>
     */
    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 = 1;</code>
     */
    public Builder setItemCode(
        java.lang.String value) {
      if (value == null) {
    throw new NullPointerException();
  }
  
      itemCode_ = value;
      onChanged();
      return this;
    }
    /**
     * <code>string itemCode = 1;</code>
     */
    public Builder clearItemCode() {
      
      itemCode_ = getDefaultInstance().getItemCode();
      onChanged();
      return this;
    }
    /**
     * <code>string itemCode = 1;</code>
     */
    public Builder setItemCodeBytes(
        com.google.protobuf.ByteString value) {
      if (value == null) {
    throw new NullPointerException();
  }
  checkByteStringIsUtf8(value);
      
      itemCode_ = value;
      onChanged();
      return this;
    }

    private java.lang.Object itemName_ = "";
    /**
     * <code>string itemName = 2;</code>
     */
    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;
      }
    }
    /**
     * <code>string itemName = 2;</code>
     */
    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;
      }
    }
    /**
     * <code>string itemName = 2;</code>
     */
    public Builder setItemName(
        java.lang.String value) {
      if (value == null) {
    throw new NullPointerException();
  }
  
      itemName_ = value;
      onChanged();
      return this;
    }
    /**
     * <code>string itemName = 2;</code>
     */
    public Builder clearItemName() {
      
      itemName_ = getDefaultInstance().getItemName();
      onChanged();
      return this;
    }
    /**
     * <code>string itemName = 2;</code>
     */
    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_ = "";
    /**
     * <code>string itemType = 3;</code>
     */
    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;
      }
    }
    /**
     * <code>string itemType = 3;</code>
     */
    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;
      }
    }
    /**
     * <code>string itemType = 3;</code>
     */
    public Builder setItemType(
        java.lang.String value) {
      if (value == null) {
    throw new NullPointerException();
  }
  
      itemType_ = value;
      onChanged();
      return this;
    }
    /**
     * <code>string itemType = 3;</code>
     */
    public Builder clearItemType() {
      
      itemType_ = getDefaultInstance().getItemType();
      onChanged();
      return this;
    }
    /**
     * <code>string itemType = 3;</code>
     */
    public Builder setItemTypeBytes(
        com.google.protobuf.ByteString value) {
      if (value == null) {
    throw new NullPointerException();
  }
  checkByteStringIsUtf8(value);
      
      itemType_ = value;
      onChanged();
      return this;
    }

    private int itemPrice_ ;
    /**
     * <code>int32 itemPrice = 4;</code>
     */
    public int getItemPrice() {
      return itemPrice_;
    }
    /**
     * <code>int32 itemPrice = 4;</code>
     */
    public Builder setItemPrice(int value) {
      
      itemPrice_ = value;
      onChanged();
      return this;
    }
    /**
     * <code>int32 itemPrice = 4;</code>
     */
    public Builder clearItemPrice() {
      
      itemPrice_ = 0;
      onChanged();
      return this;
    }

    private java.lang.Object itemNumber_ = "";
    /**
     * <code>string itemNumber = 5;</code>
     */
    public java.lang.String getItemNumber() {
      java.lang.Object ref = itemNumber_;
      if (!(ref instanceof java.lang.String)) {
        com.google.protobuf.ByteString bs =
            (com.google.protobuf.ByteString) ref;
        java.lang.String s = bs.toStringUtf8();
        itemNumber_ = s;
        return s;
      } else {
        return (java.lang.String) ref;
      }
    }
    /**
     * <code>string itemNumber = 5;</code>
     */
    public com.google.protobuf.ByteString
        getItemNumberBytes() {
      java.lang.Object ref = itemNumber_;
      if (ref instanceof String) {
        com.google.protobuf.ByteString b = 
            com.google.protobuf.ByteString.copyFromUtf8(
                (java.lang.String) ref);
        itemNumber_ = b;
        return b;
      } else {
        return (com.google.protobuf.ByteString) ref;
      }
    }
    /**
     * <code>string itemNumber = 5;</code>
     */
    public Builder setItemNumber(
        java.lang.String value) {
      if (value == null) {
    throw new NullPointerException();
  }
  
      itemNumber_ = value;
      onChanged();
      return this;
    }
    /**
     * <code>string itemNumber = 5;</code>
     */
    public Builder clearItemNumber() {
      
      itemNumber_ = getDefaultInstance().getItemNumber();
      onChanged();
      return this;
    }
    /**
     * <code>string itemNumber = 5;</code>
     */
    public Builder setItemNumberBytes(
        com.google.protobuf.ByteString value) {
      if (value == null) {
    throw new NullPointerException();
  }
  checkByteStringIsUtf8(value);
      
      itemNumber_ = value;
      onChanged();
      return this;
    }

    private int itemTotalFee_ ;
    /**
     * <code>int32 itemTotalFee = 6;</code>
     */
    public int getItemTotalFee() {
      return itemTotalFee_;
    }
    /**
     * <code>int32 itemTotalFee = 6;</code>
     */
    public Builder setItemTotalFee(int value) {
      
      itemTotalFee_ = value;
      onChanged();
      return this;
    }
    /**
     * <code>int32 itemTotalFee = 6;</code>
     */
    public Builder clearItemTotalFee() {
      
      itemTotalFee_ = 0;
      onChanged();
      return this;
    }

    private java.lang.Object itemUnit_ = "";
    /**
     * <code>string itemUnit = 7;</code>
     */
    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;
      }
    }
    /**
     * <code>string itemUnit = 7;</code>
     */
    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;
      }
    }
    /**
     * <code>string itemUnit = 7;</code>
     */
    public Builder setItemUnit(
        java.lang.String value) {
      if (value == null) {
    throw new NullPointerException();
  }
  
      itemUnit_ = value;
      onChanged();
      return this;
    }
    /**
     * <code>string itemUnit = 7;</code>
     */
    public Builder clearItemUnit() {
      
      itemUnit_ = getDefaultInstance().getItemUnit();
      onChanged();
      return this;
    }
    /**
     * <code>string itemUnit = 7;</code>
     */
    public Builder setItemUnitBytes(
        com.google.protobuf.ByteString value) {
      if (value == null) {
    throw new NullPointerException();
  }
  checkByteStringIsUtf8(value);
      
      itemUnit_ = value;
      onChanged();
      return this;
    }

    private java.lang.Object itemSpec_ = "";
    /**
     * <code>string itemSpec = 8;</code>
     */
    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;
      }
    }
    /**
     * <code>string itemSpec = 8;</code>
     */
    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;
      }
    }
    /**
     * <code>string itemSpec = 8;</code>
     */
    public Builder setItemSpec(
        java.lang.String value) {
      if (value == null) {
    throw new NullPointerException();
  }
  
      itemSpec_ = value;
      onChanged();
      return this;
    }
    /**
     * <code>string itemSpec = 8;</code>
     */
    public Builder clearItemSpec() {
      
      itemSpec_ = getDefaultInstance().getItemSpec();
      onChanged();
      return this;
    }
    /**
     * <code>string itemSpec = 8;</code>
     */
    public Builder setItemSpecBytes(
        com.google.protobuf.ByteString value) {
      if (value == null) {
    throw new NullPointerException();
  }
  checkByteStringIsUtf8(value);
      
      itemSpec_ = value;
      onChanged();
      return this;
    }
    public final Builder setUnknownFields(
        final com.google.protobuf.UnknownFieldSet unknownFields) {
      return this;
    }

    public final Builder mergeUnknownFields(
        final com.google.protobuf.UnknownFieldSet unknownFields) {
      return this;
    }


    // @@protoc_insertion_point(builder_scope:com.ywt.gapi.third.taihe.PayDetailItem)
  }

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

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

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

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

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

  public com.ywt.gapi.third.taihe.PayDetailItem getDefaultInstanceForType() {
    return DEFAULT_INSTANCE;
  }

}

