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

package com.ywt.gapi.checkup_booking;

/**
 * <pre>
 * 套餐明细项
 * </pre>
 *
 * Protobuf type {@code com.ywt.gapi.checkup_booking.PackageItem}
 */
public final class PackageItem extends
    com.google.protobuf.GeneratedMessageV3 implements
    // @@protoc_insertion_point(message_implements:com.ywt.gapi.checkup_booking.PackageItem)
    PackageItemOrBuilder {
private static final long serialVersionUID = 0L;
  // Use PackageItem.newBuilder() to construct.
  private PackageItem(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {
    super(builder);
  }
  private PackageItem() {
    itemCategoryId_ = "";
    itemCategoryDesc_ = "";
    hisItemId_ = "";
    itemDesc_ = "";
  }

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

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

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

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

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

            itemDesc_ = s;
            break;
          }
          case 40: {

            price_ = input.readInt32();
            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.checkup_booking.CheckupBookingProto.internal_static_com_ywt_gapi_checkup_booking_PackageItem_descriptor;
  }

  @java.lang.Override
  protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
      internalGetFieldAccessorTable() {
    return com.ywt.gapi.checkup_booking.CheckupBookingProto.internal_static_com_ywt_gapi_checkup_booking_PackageItem_fieldAccessorTable
        .ensureFieldAccessorsInitialized(
            com.ywt.gapi.checkup_booking.PackageItem.class, com.ywt.gapi.checkup_booking.PackageItem.Builder.class);
  }

  public static final int ITEMCATEGORYID_FIELD_NUMBER = 1;
  private volatile java.lang.Object itemCategoryId_;
  /**
   * <pre>
   * 医嘱项ID
   * </pre>
   *
   * <code>string itemCategoryId = 1;</code>
   * @return The itemCategoryId.
   */
  @java.lang.Override
  public java.lang.String getItemCategoryId() {
    java.lang.Object ref = itemCategoryId_;
    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();
      itemCategoryId_ = s;
      return s;
    }
  }
  /**
   * <pre>
   * 医嘱项ID
   * </pre>
   *
   * <code>string itemCategoryId = 1;</code>
   * @return The bytes for itemCategoryId.
   */
  @java.lang.Override
  public com.google.protobuf.ByteString
      getItemCategoryIdBytes() {
    java.lang.Object ref = itemCategoryId_;
    if (ref instanceof java.lang.String) {
      com.google.protobuf.ByteString b = 
          com.google.protobuf.ByteString.copyFromUtf8(
              (java.lang.String) ref);
      itemCategoryId_ = b;
      return b;
    } else {
      return (com.google.protobuf.ByteString) ref;
    }
  }

  public static final int ITEMCATEGORYDESC_FIELD_NUMBER = 2;
  private volatile java.lang.Object itemCategoryDesc_;
  /**
   * <pre>
   * 项目描述
   * </pre>
   *
   * <code>string itemCategoryDesc = 2;</code>
   * @return The itemCategoryDesc.
   */
  @java.lang.Override
  public java.lang.String getItemCategoryDesc() {
    java.lang.Object ref = itemCategoryDesc_;
    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();
      itemCategoryDesc_ = s;
      return s;
    }
  }
  /**
   * <pre>
   * 项目描述
   * </pre>
   *
   * <code>string itemCategoryDesc = 2;</code>
   * @return The bytes for itemCategoryDesc.
   */
  @java.lang.Override
  public com.google.protobuf.ByteString
      getItemCategoryDescBytes() {
    java.lang.Object ref = itemCategoryDesc_;
    if (ref instanceof java.lang.String) {
      com.google.protobuf.ByteString b = 
          com.google.protobuf.ByteString.copyFromUtf8(
              (java.lang.String) ref);
      itemCategoryDesc_ = b;
      return b;
    } else {
      return (com.google.protobuf.ByteString) ref;
    }
  }

  public static final int HISITEMID_FIELD_NUMBER = 3;
  private volatile java.lang.Object hisItemId_;
  /**
   * <pre>
   * 医嘱子分类
   * </pre>
   *
   * <code>string hisItemId = 3;</code>
   * @return The hisItemId.
   */
  @java.lang.Override
  public java.lang.String getHisItemId() {
    java.lang.Object ref = hisItemId_;
    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();
      hisItemId_ = s;
      return s;
    }
  }
  /**
   * <pre>
   * 医嘱子分类
   * </pre>
   *
   * <code>string hisItemId = 3;</code>
   * @return The bytes for hisItemId.
   */
  @java.lang.Override
  public com.google.protobuf.ByteString
      getHisItemIdBytes() {
    java.lang.Object ref = hisItemId_;
    if (ref instanceof java.lang.String) {
      com.google.protobuf.ByteString b = 
          com.google.protobuf.ByteString.copyFromUtf8(
              (java.lang.String) ref);
      hisItemId_ = b;
      return b;
    } else {
      return (com.google.protobuf.ByteString) ref;
    }
  }

  public static final int ITEMDESC_FIELD_NUMBER = 4;
  private volatile java.lang.Object itemDesc_;
  /**
   * <pre>
   * 医嘱子分类描述
   * </pre>
   *
   * <code>string itemDesc = 4;</code>
   * @return The itemDesc.
   */
  @java.lang.Override
  public java.lang.String getItemDesc() {
    java.lang.Object ref = itemDesc_;
    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();
      itemDesc_ = s;
      return s;
    }
  }
  /**
   * <pre>
   * 医嘱子分类描述
   * </pre>
   *
   * <code>string itemDesc = 4;</code>
   * @return The bytes for itemDesc.
   */
  @java.lang.Override
  public com.google.protobuf.ByteString
      getItemDescBytes() {
    java.lang.Object ref = itemDesc_;
    if (ref instanceof java.lang.String) {
      com.google.protobuf.ByteString b = 
          com.google.protobuf.ByteString.copyFromUtf8(
              (java.lang.String) ref);
      itemDesc_ = b;
      return b;
    } else {
      return (com.google.protobuf.ByteString) ref;
    }
  }

  public static final int PRICE_FIELD_NUMBER = 5;
  private int price_;
  /**
   * <pre>
   * 价格
   * </pre>
   *
   * <code>int32 price = 5;</code>
   * @return The price.
   */
  @java.lang.Override
  public int getPrice() {
    return price_;
  }

  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(itemCategoryId_)) {
      com.google.protobuf.GeneratedMessageV3.writeString(output, 1, itemCategoryId_);
    }
    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(itemCategoryDesc_)) {
      com.google.protobuf.GeneratedMessageV3.writeString(output, 2, itemCategoryDesc_);
    }
    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(hisItemId_)) {
      com.google.protobuf.GeneratedMessageV3.writeString(output, 3, hisItemId_);
    }
    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(itemDesc_)) {
      com.google.protobuf.GeneratedMessageV3.writeString(output, 4, itemDesc_);
    }
    if (price_ != 0) {
      output.writeInt32(5, price_);
    }
    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(itemCategoryId_)) {
      size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, itemCategoryId_);
    }
    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(itemCategoryDesc_)) {
      size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, itemCategoryDesc_);
    }
    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(hisItemId_)) {
      size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, hisItemId_);
    }
    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(itemDesc_)) {
      size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, itemDesc_);
    }
    if (price_ != 0) {
      size += com.google.protobuf.CodedOutputStream
        .computeInt32Size(5, price_);
    }
    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.checkup_booking.PackageItem)) {
      return super.equals(obj);
    }
    com.ywt.gapi.checkup_booking.PackageItem other = (com.ywt.gapi.checkup_booking.PackageItem) obj;

    if (!getItemCategoryId()
        .equals(other.getItemCategoryId())) return false;
    if (!getItemCategoryDesc()
        .equals(other.getItemCategoryDesc())) return false;
    if (!getHisItemId()
        .equals(other.getHisItemId())) return false;
    if (!getItemDesc()
        .equals(other.getItemDesc())) return false;
    if (getPrice()
        != other.getPrice()) 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) + ITEMCATEGORYID_FIELD_NUMBER;
    hash = (53 * hash) + getItemCategoryId().hashCode();
    hash = (37 * hash) + ITEMCATEGORYDESC_FIELD_NUMBER;
    hash = (53 * hash) + getItemCategoryDesc().hashCode();
    hash = (37 * hash) + HISITEMID_FIELD_NUMBER;
    hash = (53 * hash) + getHisItemId().hashCode();
    hash = (37 * hash) + ITEMDESC_FIELD_NUMBER;
    hash = (53 * hash) + getItemDesc().hashCode();
    hash = (37 * hash) + PRICE_FIELD_NUMBER;
    hash = (53 * hash) + getPrice();
    hash = (29 * hash) + unknownFields.hashCode();
    memoizedHashCode = hash;
    return hash;
  }

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

    @java.lang.Override
    protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
        internalGetFieldAccessorTable() {
      return com.ywt.gapi.checkup_booking.CheckupBookingProto.internal_static_com_ywt_gapi_checkup_booking_PackageItem_fieldAccessorTable
          .ensureFieldAccessorsInitialized(
              com.ywt.gapi.checkup_booking.PackageItem.class, com.ywt.gapi.checkup_booking.PackageItem.Builder.class);
    }

    // Construct using com.ywt.gapi.checkup_booking.PackageItem.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();
      itemCategoryId_ = "";

      itemCategoryDesc_ = "";

      hisItemId_ = "";

      itemDesc_ = "";

      price_ = 0;

      return this;
    }

    @java.lang.Override
    public com.google.protobuf.Descriptors.Descriptor
        getDescriptorForType() {
      return com.ywt.gapi.checkup_booking.CheckupBookingProto.internal_static_com_ywt_gapi_checkup_booking_PackageItem_descriptor;
    }

    @java.lang.Override
    public com.ywt.gapi.checkup_booking.PackageItem getDefaultInstanceForType() {
      return com.ywt.gapi.checkup_booking.PackageItem.getDefaultInstance();
    }

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

    @java.lang.Override
    public com.ywt.gapi.checkup_booking.PackageItem buildPartial() {
      com.ywt.gapi.checkup_booking.PackageItem result = new com.ywt.gapi.checkup_booking.PackageItem(this);
      result.itemCategoryId_ = itemCategoryId_;
      result.itemCategoryDesc_ = itemCategoryDesc_;
      result.hisItemId_ = hisItemId_;
      result.itemDesc_ = itemDesc_;
      result.price_ = price_;
      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.checkup_booking.PackageItem) {
        return mergeFrom((com.ywt.gapi.checkup_booking.PackageItem)other);
      } else {
        super.mergeFrom(other);
        return this;
      }
    }

    public Builder mergeFrom(com.ywt.gapi.checkup_booking.PackageItem other) {
      if (other == com.ywt.gapi.checkup_booking.PackageItem.getDefaultInstance()) return this;
      if (!other.getItemCategoryId().isEmpty()) {
        itemCategoryId_ = other.itemCategoryId_;
        onChanged();
      }
      if (!other.getItemCategoryDesc().isEmpty()) {
        itemCategoryDesc_ = other.itemCategoryDesc_;
        onChanged();
      }
      if (!other.getHisItemId().isEmpty()) {
        hisItemId_ = other.hisItemId_;
        onChanged();
      }
      if (!other.getItemDesc().isEmpty()) {
        itemDesc_ = other.itemDesc_;
        onChanged();
      }
      if (other.getPrice() != 0) {
        setPrice(other.getPrice());
      }
      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.checkup_booking.PackageItem parsedMessage = null;
      try {
        parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
      } catch (com.google.protobuf.InvalidProtocolBufferException e) {
        parsedMessage = (com.ywt.gapi.checkup_booking.PackageItem) e.getUnfinishedMessage();
        throw e.unwrapIOException();
      } finally {
        if (parsedMessage != null) {
          mergeFrom(parsedMessage);
        }
      }
      return this;
    }

    private java.lang.Object itemCategoryId_ = "";
    /**
     * <pre>
     * 医嘱项ID
     * </pre>
     *
     * <code>string itemCategoryId = 1;</code>
     * @return The itemCategoryId.
     */
    public java.lang.String getItemCategoryId() {
      java.lang.Object ref = itemCategoryId_;
      if (!(ref instanceof java.lang.String)) {
        com.google.protobuf.ByteString bs =
            (com.google.protobuf.ByteString) ref;
        java.lang.String s = bs.toStringUtf8();
        itemCategoryId_ = s;
        return s;
      } else {
        return (java.lang.String) ref;
      }
    }
    /**
     * <pre>
     * 医嘱项ID
     * </pre>
     *
     * <code>string itemCategoryId = 1;</code>
     * @return The bytes for itemCategoryId.
     */
    public com.google.protobuf.ByteString
        getItemCategoryIdBytes() {
      java.lang.Object ref = itemCategoryId_;
      if (ref instanceof String) {
        com.google.protobuf.ByteString b = 
            com.google.protobuf.ByteString.copyFromUtf8(
                (java.lang.String) ref);
        itemCategoryId_ = b;
        return b;
      } else {
        return (com.google.protobuf.ByteString) ref;
      }
    }
    /**
     * <pre>
     * 医嘱项ID
     * </pre>
     *
     * <code>string itemCategoryId = 1;</code>
     * @param value The itemCategoryId to set.
     * @return This builder for chaining.
     */
    public Builder setItemCategoryId(
        java.lang.String value) {
      if (value == null) {
    throw new NullPointerException();
  }
  
      itemCategoryId_ = value;
      onChanged();
      return this;
    }
    /**
     * <pre>
     * 医嘱项ID
     * </pre>
     *
     * <code>string itemCategoryId = 1;</code>
     * @return This builder for chaining.
     */
    public Builder clearItemCategoryId() {
      
      itemCategoryId_ = getDefaultInstance().getItemCategoryId();
      onChanged();
      return this;
    }
    /**
     * <pre>
     * 医嘱项ID
     * </pre>
     *
     * <code>string itemCategoryId = 1;</code>
     * @param value The bytes for itemCategoryId to set.
     * @return This builder for chaining.
     */
    public Builder setItemCategoryIdBytes(
        com.google.protobuf.ByteString value) {
      if (value == null) {
    throw new NullPointerException();
  }
  checkByteStringIsUtf8(value);
      
      itemCategoryId_ = value;
      onChanged();
      return this;
    }

    private java.lang.Object itemCategoryDesc_ = "";
    /**
     * <pre>
     * 项目描述
     * </pre>
     *
     * <code>string itemCategoryDesc = 2;</code>
     * @return The itemCategoryDesc.
     */
    public java.lang.String getItemCategoryDesc() {
      java.lang.Object ref = itemCategoryDesc_;
      if (!(ref instanceof java.lang.String)) {
        com.google.protobuf.ByteString bs =
            (com.google.protobuf.ByteString) ref;
        java.lang.String s = bs.toStringUtf8();
        itemCategoryDesc_ = s;
        return s;
      } else {
        return (java.lang.String) ref;
      }
    }
    /**
     * <pre>
     * 项目描述
     * </pre>
     *
     * <code>string itemCategoryDesc = 2;</code>
     * @return The bytes for itemCategoryDesc.
     */
    public com.google.protobuf.ByteString
        getItemCategoryDescBytes() {
      java.lang.Object ref = itemCategoryDesc_;
      if (ref instanceof String) {
        com.google.protobuf.ByteString b = 
            com.google.protobuf.ByteString.copyFromUtf8(
                (java.lang.String) ref);
        itemCategoryDesc_ = b;
        return b;
      } else {
        return (com.google.protobuf.ByteString) ref;
      }
    }
    /**
     * <pre>
     * 项目描述
     * </pre>
     *
     * <code>string itemCategoryDesc = 2;</code>
     * @param value The itemCategoryDesc to set.
     * @return This builder for chaining.
     */
    public Builder setItemCategoryDesc(
        java.lang.String value) {
      if (value == null) {
    throw new NullPointerException();
  }
  
      itemCategoryDesc_ = value;
      onChanged();
      return this;
    }
    /**
     * <pre>
     * 项目描述
     * </pre>
     *
     * <code>string itemCategoryDesc = 2;</code>
     * @return This builder for chaining.
     */
    public Builder clearItemCategoryDesc() {
      
      itemCategoryDesc_ = getDefaultInstance().getItemCategoryDesc();
      onChanged();
      return this;
    }
    /**
     * <pre>
     * 项目描述
     * </pre>
     *
     * <code>string itemCategoryDesc = 2;</code>
     * @param value The bytes for itemCategoryDesc to set.
     * @return This builder for chaining.
     */
    public Builder setItemCategoryDescBytes(
        com.google.protobuf.ByteString value) {
      if (value == null) {
    throw new NullPointerException();
  }
  checkByteStringIsUtf8(value);
      
      itemCategoryDesc_ = value;
      onChanged();
      return this;
    }

    private java.lang.Object hisItemId_ = "";
    /**
     * <pre>
     * 医嘱子分类
     * </pre>
     *
     * <code>string hisItemId = 3;</code>
     * @return The hisItemId.
     */
    public java.lang.String getHisItemId() {
      java.lang.Object ref = hisItemId_;
      if (!(ref instanceof java.lang.String)) {
        com.google.protobuf.ByteString bs =
            (com.google.protobuf.ByteString) ref;
        java.lang.String s = bs.toStringUtf8();
        hisItemId_ = s;
        return s;
      } else {
        return (java.lang.String) ref;
      }
    }
    /**
     * <pre>
     * 医嘱子分类
     * </pre>
     *
     * <code>string hisItemId = 3;</code>
     * @return The bytes for hisItemId.
     */
    public com.google.protobuf.ByteString
        getHisItemIdBytes() {
      java.lang.Object ref = hisItemId_;
      if (ref instanceof String) {
        com.google.protobuf.ByteString b = 
            com.google.protobuf.ByteString.copyFromUtf8(
                (java.lang.String) ref);
        hisItemId_ = b;
        return b;
      } else {
        return (com.google.protobuf.ByteString) ref;
      }
    }
    /**
     * <pre>
     * 医嘱子分类
     * </pre>
     *
     * <code>string hisItemId = 3;</code>
     * @param value The hisItemId to set.
     * @return This builder for chaining.
     */
    public Builder setHisItemId(
        java.lang.String value) {
      if (value == null) {
    throw new NullPointerException();
  }
  
      hisItemId_ = value;
      onChanged();
      return this;
    }
    /**
     * <pre>
     * 医嘱子分类
     * </pre>
     *
     * <code>string hisItemId = 3;</code>
     * @return This builder for chaining.
     */
    public Builder clearHisItemId() {
      
      hisItemId_ = getDefaultInstance().getHisItemId();
      onChanged();
      return this;
    }
    /**
     * <pre>
     * 医嘱子分类
     * </pre>
     *
     * <code>string hisItemId = 3;</code>
     * @param value The bytes for hisItemId to set.
     * @return This builder for chaining.
     */
    public Builder setHisItemIdBytes(
        com.google.protobuf.ByteString value) {
      if (value == null) {
    throw new NullPointerException();
  }
  checkByteStringIsUtf8(value);
      
      hisItemId_ = value;
      onChanged();
      return this;
    }

    private java.lang.Object itemDesc_ = "";
    /**
     * <pre>
     * 医嘱子分类描述
     * </pre>
     *
     * <code>string itemDesc = 4;</code>
     * @return The itemDesc.
     */
    public java.lang.String getItemDesc() {
      java.lang.Object ref = itemDesc_;
      if (!(ref instanceof java.lang.String)) {
        com.google.protobuf.ByteString bs =
            (com.google.protobuf.ByteString) ref;
        java.lang.String s = bs.toStringUtf8();
        itemDesc_ = s;
        return s;
      } else {
        return (java.lang.String) ref;
      }
    }
    /**
     * <pre>
     * 医嘱子分类描述
     * </pre>
     *
     * <code>string itemDesc = 4;</code>
     * @return The bytes for itemDesc.
     */
    public com.google.protobuf.ByteString
        getItemDescBytes() {
      java.lang.Object ref = itemDesc_;
      if (ref instanceof String) {
        com.google.protobuf.ByteString b = 
            com.google.protobuf.ByteString.copyFromUtf8(
                (java.lang.String) ref);
        itemDesc_ = b;
        return b;
      } else {
        return (com.google.protobuf.ByteString) ref;
      }
    }
    /**
     * <pre>
     * 医嘱子分类描述
     * </pre>
     *
     * <code>string itemDesc = 4;</code>
     * @param value The itemDesc to set.
     * @return This builder for chaining.
     */
    public Builder setItemDesc(
        java.lang.String value) {
      if (value == null) {
    throw new NullPointerException();
  }
  
      itemDesc_ = value;
      onChanged();
      return this;
    }
    /**
     * <pre>
     * 医嘱子分类描述
     * </pre>
     *
     * <code>string itemDesc = 4;</code>
     * @return This builder for chaining.
     */
    public Builder clearItemDesc() {
      
      itemDesc_ = getDefaultInstance().getItemDesc();
      onChanged();
      return this;
    }
    /**
     * <pre>
     * 医嘱子分类描述
     * </pre>
     *
     * <code>string itemDesc = 4;</code>
     * @param value The bytes for itemDesc to set.
     * @return This builder for chaining.
     */
    public Builder setItemDescBytes(
        com.google.protobuf.ByteString value) {
      if (value == null) {
    throw new NullPointerException();
  }
  checkByteStringIsUtf8(value);
      
      itemDesc_ = value;
      onChanged();
      return this;
    }

    private int price_ ;
    /**
     * <pre>
     * 价格
     * </pre>
     *
     * <code>int32 price = 5;</code>
     * @return The price.
     */
    @java.lang.Override
    public int getPrice() {
      return price_;
    }
    /**
     * <pre>
     * 价格
     * </pre>
     *
     * <code>int32 price = 5;</code>
     * @param value The price to set.
     * @return This builder for chaining.
     */
    public Builder setPrice(int value) {
      
      price_ = value;
      onChanged();
      return this;
    }
    /**
     * <pre>
     * 价格
     * </pre>
     *
     * <code>int32 price = 5;</code>
     * @return This builder for chaining.
     */
    public Builder clearPrice() {
      
      price_ = 0;
      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.checkup_booking.PackageItem)
  }

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

  public static com.ywt.gapi.checkup_booking.PackageItem getDefaultInstance() {
    return DEFAULT_INSTANCE;
  }

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

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

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

  @java.lang.Override
  public com.ywt.gapi.checkup_booking.PackageItem getDefaultInstanceForType() {
    return DEFAULT_INSTANCE;
  }

}

