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

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

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

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

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

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

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

            itemAddress_ = 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_TreamentGuidePreItem_descriptor;
  }

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

  public static final int ITEMNAME_FIELD_NUMBER = 1;
  private volatile java.lang.Object itemName_;
  /**
   * <code>string itemName = 1;</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 = 1;</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 ITEMNUMBER_FIELD_NUMBER = 2;
  private volatile java.lang.Object itemNumber_;
  /**
   * <code>string itemNumber = 2;</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 = 2;</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 ITEMPRICE_FIELD_NUMBER = 3;
  private volatile java.lang.Object itemPrice_;
  /**
   * <code>string itemPrice = 3;</code>
   */
  public java.lang.String getItemPrice() {
    java.lang.Object ref = itemPrice_;
    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();
      itemPrice_ = s;
      return s;
    }
  }
  /**
   * <code>string itemPrice = 3;</code>
   */
  public com.google.protobuf.ByteString
      getItemPriceBytes() {
    java.lang.Object ref = itemPrice_;
    if (ref instanceof java.lang.String) {
      com.google.protobuf.ByteString b = 
          com.google.protobuf.ByteString.copyFromUtf8(
              (java.lang.String) ref);
      itemPrice_ = b;
      return b;
    } else {
      return (com.google.protobuf.ByteString) ref;
    }
  }

  public static final int ITEMUNIT_FIELD_NUMBER = 4;
  private volatile java.lang.Object itemUnit_;
  /**
   * <code>string itemUnit = 4;</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 = 4;</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 ITEMTOTALFEE_FIELD_NUMBER = 5;
  private volatile java.lang.Object itemTotalFee_;
  /**
   * <code>string itemTotalFee = 5;</code>
   */
  public java.lang.String getItemTotalFee() {
    java.lang.Object ref = itemTotalFee_;
    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();
      itemTotalFee_ = s;
      return s;
    }
  }
  /**
   * <code>string itemTotalFee = 5;</code>
   */
  public com.google.protobuf.ByteString
      getItemTotalFeeBytes() {
    java.lang.Object ref = itemTotalFee_;
    if (ref instanceof java.lang.String) {
      com.google.protobuf.ByteString b = 
          com.google.protobuf.ByteString.copyFromUtf8(
              (java.lang.String) ref);
      itemTotalFee_ = b;
      return b;
    } else {
      return (com.google.protobuf.ByteString) ref;
    }
  }

  public static final int ITEMADDRESS_FIELD_NUMBER = 6;
  private volatile java.lang.Object itemAddress_;
  /**
   * <code>string itemAddress = 6;</code>
   */
  public java.lang.String getItemAddress() {
    java.lang.Object ref = itemAddress_;
    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();
      itemAddress_ = s;
      return s;
    }
  }
  /**
   * <code>string itemAddress = 6;</code>
   */
  public com.google.protobuf.ByteString
      getItemAddressBytes() {
    java.lang.Object ref = itemAddress_;
    if (ref instanceof java.lang.String) {
      com.google.protobuf.ByteString b = 
          com.google.protobuf.ByteString.copyFromUtf8(
              (java.lang.String) ref);
      itemAddress_ = 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 (!getItemNameBytes().isEmpty()) {
      com.google.protobuf.GeneratedMessageV3.writeString(output, 1, itemName_);
    }
    if (!getItemNumberBytes().isEmpty()) {
      com.google.protobuf.GeneratedMessageV3.writeString(output, 2, itemNumber_);
    }
    if (!getItemPriceBytes().isEmpty()) {
      com.google.protobuf.GeneratedMessageV3.writeString(output, 3, itemPrice_);
    }
    if (!getItemUnitBytes().isEmpty()) {
      com.google.protobuf.GeneratedMessageV3.writeString(output, 4, itemUnit_);
    }
    if (!getItemTotalFeeBytes().isEmpty()) {
      com.google.protobuf.GeneratedMessageV3.writeString(output, 5, itemTotalFee_);
    }
    if (!getItemAddressBytes().isEmpty()) {
      com.google.protobuf.GeneratedMessageV3.writeString(output, 6, itemAddress_);
    }
  }

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

    size = 0;
    if (!getItemNameBytes().isEmpty()) {
      size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, itemName_);
    }
    if (!getItemNumberBytes().isEmpty()) {
      size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, itemNumber_);
    }
    if (!getItemPriceBytes().isEmpty()) {
      size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, itemPrice_);
    }
    if (!getItemUnitBytes().isEmpty()) {
      size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, itemUnit_);
    }
    if (!getItemTotalFeeBytes().isEmpty()) {
      size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, itemTotalFee_);
    }
    if (!getItemAddressBytes().isEmpty()) {
      size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, itemAddress_);
    }
    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.TreamentGuidePreItem)) {
      return super.equals(obj);
    }
    com.ywt.gapi.third.taihe.TreamentGuidePreItem other = (com.ywt.gapi.third.taihe.TreamentGuidePreItem) obj;

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

  @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) + ITEMNUMBER_FIELD_NUMBER;
    hash = (53 * hash) + getItemNumber().hashCode();
    hash = (37 * hash) + ITEMPRICE_FIELD_NUMBER;
    hash = (53 * hash) + getItemPrice().hashCode();
    hash = (37 * hash) + ITEMUNIT_FIELD_NUMBER;
    hash = (53 * hash) + getItemUnit().hashCode();
    hash = (37 * hash) + ITEMTOTALFEE_FIELD_NUMBER;
    hash = (53 * hash) + getItemTotalFee().hashCode();
    hash = (37 * hash) + ITEMADDRESS_FIELD_NUMBER;
    hash = (53 * hash) + getItemAddress().hashCode();
    hash = (29 * hash) + unknownFields.hashCode();
    memoizedHashCode = hash;
    return hash;
  }

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

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

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

      itemNumber_ = "";

      itemPrice_ = "";

      itemUnit_ = "";

      itemTotalFee_ = "";

      itemAddress_ = "";

      return this;
    }

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

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

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

    public com.ywt.gapi.third.taihe.TreamentGuidePreItem buildPartial() {
      com.ywt.gapi.third.taihe.TreamentGuidePreItem result = new com.ywt.gapi.third.taihe.TreamentGuidePreItem(this);
      result.itemName_ = itemName_;
      result.itemNumber_ = itemNumber_;
      result.itemPrice_ = itemPrice_;
      result.itemUnit_ = itemUnit_;
      result.itemTotalFee_ = itemTotalFee_;
      result.itemAddress_ = itemAddress_;
      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.TreamentGuidePreItem) {
        return mergeFrom((com.ywt.gapi.third.taihe.TreamentGuidePreItem)other);
      } else {
        super.mergeFrom(other);
        return this;
      }
    }

    public Builder mergeFrom(com.ywt.gapi.third.taihe.TreamentGuidePreItem other) {
      if (other == com.ywt.gapi.third.taihe.TreamentGuidePreItem.getDefaultInstance()) return this;
      if (!other.getItemName().isEmpty()) {
        itemName_ = other.itemName_;
        onChanged();
      }
      if (!other.getItemNumber().isEmpty()) {
        itemNumber_ = other.itemNumber_;
        onChanged();
      }
      if (!other.getItemPrice().isEmpty()) {
        itemPrice_ = other.itemPrice_;
        onChanged();
      }
      if (!other.getItemUnit().isEmpty()) {
        itemUnit_ = other.itemUnit_;
        onChanged();
      }
      if (!other.getItemTotalFee().isEmpty()) {
        itemTotalFee_ = other.itemTotalFee_;
        onChanged();
      }
      if (!other.getItemAddress().isEmpty()) {
        itemAddress_ = other.itemAddress_;
        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.TreamentGuidePreItem parsedMessage = null;
      try {
        parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
      } catch (com.google.protobuf.InvalidProtocolBufferException e) {
        parsedMessage = (com.ywt.gapi.third.taihe.TreamentGuidePreItem) e.getUnfinishedMessage();
        throw e.unwrapIOException();
      } finally {
        if (parsedMessage != null) {
          mergeFrom(parsedMessage);
        }
      }
      return this;
    }

    private java.lang.Object itemName_ = "";
    /**
     * <code>string itemName = 1;</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 = 1;</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 = 1;</code>
     */
    public Builder setItemName(
        java.lang.String value) {
      if (value == null) {
    throw new NullPointerException();
  }
  
      itemName_ = value;
      onChanged();
      return this;
    }
    /**
     * <code>string itemName = 1;</code>
     */
    public Builder clearItemName() {
      
      itemName_ = getDefaultInstance().getItemName();
      onChanged();
      return this;
    }
    /**
     * <code>string itemName = 1;</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 itemNumber_ = "";
    /**
     * <code>string itemNumber = 2;</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 = 2;</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 = 2;</code>
     */
    public Builder setItemNumber(
        java.lang.String value) {
      if (value == null) {
    throw new NullPointerException();
  }
  
      itemNumber_ = value;
      onChanged();
      return this;
    }
    /**
     * <code>string itemNumber = 2;</code>
     */
    public Builder clearItemNumber() {
      
      itemNumber_ = getDefaultInstance().getItemNumber();
      onChanged();
      return this;
    }
    /**
     * <code>string itemNumber = 2;</code>
     */
    public Builder setItemNumberBytes(
        com.google.protobuf.ByteString value) {
      if (value == null) {
    throw new NullPointerException();
  }
  checkByteStringIsUtf8(value);
      
      itemNumber_ = value;
      onChanged();
      return this;
    }

    private java.lang.Object itemPrice_ = "";
    /**
     * <code>string itemPrice = 3;</code>
     */
    public java.lang.String getItemPrice() {
      java.lang.Object ref = itemPrice_;
      if (!(ref instanceof java.lang.String)) {
        com.google.protobuf.ByteString bs =
            (com.google.protobuf.ByteString) ref;
        java.lang.String s = bs.toStringUtf8();
        itemPrice_ = s;
        return s;
      } else {
        return (java.lang.String) ref;
      }
    }
    /**
     * <code>string itemPrice = 3;</code>
     */
    public com.google.protobuf.ByteString
        getItemPriceBytes() {
      java.lang.Object ref = itemPrice_;
      if (ref instanceof String) {
        com.google.protobuf.ByteString b = 
            com.google.protobuf.ByteString.copyFromUtf8(
                (java.lang.String) ref);
        itemPrice_ = b;
        return b;
      } else {
        return (com.google.protobuf.ByteString) ref;
      }
    }
    /**
     * <code>string itemPrice = 3;</code>
     */
    public Builder setItemPrice(
        java.lang.String value) {
      if (value == null) {
    throw new NullPointerException();
  }
  
      itemPrice_ = value;
      onChanged();
      return this;
    }
    /**
     * <code>string itemPrice = 3;</code>
     */
    public Builder clearItemPrice() {
      
      itemPrice_ = getDefaultInstance().getItemPrice();
      onChanged();
      return this;
    }
    /**
     * <code>string itemPrice = 3;</code>
     */
    public Builder setItemPriceBytes(
        com.google.protobuf.ByteString value) {
      if (value == null) {
    throw new NullPointerException();
  }
  checkByteStringIsUtf8(value);
      
      itemPrice_ = value;
      onChanged();
      return this;
    }

    private java.lang.Object itemUnit_ = "";
    /**
     * <code>string itemUnit = 4;</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 = 4;</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 = 4;</code>
     */
    public Builder setItemUnit(
        java.lang.String value) {
      if (value == null) {
    throw new NullPointerException();
  }
  
      itemUnit_ = value;
      onChanged();
      return this;
    }
    /**
     * <code>string itemUnit = 4;</code>
     */
    public Builder clearItemUnit() {
      
      itemUnit_ = getDefaultInstance().getItemUnit();
      onChanged();
      return this;
    }
    /**
     * <code>string itemUnit = 4;</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 itemTotalFee_ = "";
    /**
     * <code>string itemTotalFee = 5;</code>
     */
    public java.lang.String getItemTotalFee() {
      java.lang.Object ref = itemTotalFee_;
      if (!(ref instanceof java.lang.String)) {
        com.google.protobuf.ByteString bs =
            (com.google.protobuf.ByteString) ref;
        java.lang.String s = bs.toStringUtf8();
        itemTotalFee_ = s;
        return s;
      } else {
        return (java.lang.String) ref;
      }
    }
    /**
     * <code>string itemTotalFee = 5;</code>
     */
    public com.google.protobuf.ByteString
        getItemTotalFeeBytes() {
      java.lang.Object ref = itemTotalFee_;
      if (ref instanceof String) {
        com.google.protobuf.ByteString b = 
            com.google.protobuf.ByteString.copyFromUtf8(
                (java.lang.String) ref);
        itemTotalFee_ = b;
        return b;
      } else {
        return (com.google.protobuf.ByteString) ref;
      }
    }
    /**
     * <code>string itemTotalFee = 5;</code>
     */
    public Builder setItemTotalFee(
        java.lang.String value) {
      if (value == null) {
    throw new NullPointerException();
  }
  
      itemTotalFee_ = value;
      onChanged();
      return this;
    }
    /**
     * <code>string itemTotalFee = 5;</code>
     */
    public Builder clearItemTotalFee() {
      
      itemTotalFee_ = getDefaultInstance().getItemTotalFee();
      onChanged();
      return this;
    }
    /**
     * <code>string itemTotalFee = 5;</code>
     */
    public Builder setItemTotalFeeBytes(
        com.google.protobuf.ByteString value) {
      if (value == null) {
    throw new NullPointerException();
  }
  checkByteStringIsUtf8(value);
      
      itemTotalFee_ = value;
      onChanged();
      return this;
    }

    private java.lang.Object itemAddress_ = "";
    /**
     * <code>string itemAddress = 6;</code>
     */
    public java.lang.String getItemAddress() {
      java.lang.Object ref = itemAddress_;
      if (!(ref instanceof java.lang.String)) {
        com.google.protobuf.ByteString bs =
            (com.google.protobuf.ByteString) ref;
        java.lang.String s = bs.toStringUtf8();
        itemAddress_ = s;
        return s;
      } else {
        return (java.lang.String) ref;
      }
    }
    /**
     * <code>string itemAddress = 6;</code>
     */
    public com.google.protobuf.ByteString
        getItemAddressBytes() {
      java.lang.Object ref = itemAddress_;
      if (ref instanceof String) {
        com.google.protobuf.ByteString b = 
            com.google.protobuf.ByteString.copyFromUtf8(
                (java.lang.String) ref);
        itemAddress_ = b;
        return b;
      } else {
        return (com.google.protobuf.ByteString) ref;
      }
    }
    /**
     * <code>string itemAddress = 6;</code>
     */
    public Builder setItemAddress(
        java.lang.String value) {
      if (value == null) {
    throw new NullPointerException();
  }
  
      itemAddress_ = value;
      onChanged();
      return this;
    }
    /**
     * <code>string itemAddress = 6;</code>
     */
    public Builder clearItemAddress() {
      
      itemAddress_ = getDefaultInstance().getItemAddress();
      onChanged();
      return this;
    }
    /**
     * <code>string itemAddress = 6;</code>
     */
    public Builder setItemAddressBytes(
        com.google.protobuf.ByteString value) {
      if (value == null) {
    throw new NullPointerException();
  }
  checkByteStringIsUtf8(value);
      
      itemAddress_ = 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.TreamentGuidePreItem)
  }

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

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

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

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

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

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

}

