// 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.CheckupItemCategory}
 */
public final class CheckupItemCategory extends
    com.google.protobuf.GeneratedMessageV3 implements
    // @@protoc_insertion_point(message_implements:com.ywt.gapi.checkup_booking.CheckupItemCategory)
    CheckupItemCategoryOrBuilder {
private static final long serialVersionUID = 0L;
  // Use CheckupItemCategory.newBuilder() to construct.
  private CheckupItemCategory(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {
    super(builder);
  }
  private CheckupItemCategory() {
    itemCategoryId_ = "";
    itemCategoryDesc_ = "";
    checkupItem_ = java.util.Collections.emptyList();
  }

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

  @java.lang.Override
  public final com.google.protobuf.UnknownFieldSet
  getUnknownFields() {
    return this.unknownFields;
  }
  private CheckupItemCategory(
      com.google.protobuf.CodedInputStream input,
      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
      throws com.google.protobuf.InvalidProtocolBufferException {
    this();
    if (extensionRegistry == null) {
      throw new java.lang.NullPointerException();
    }
    int mutable_bitField0_ = 0;
    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: {
            if (!((mutable_bitField0_ & 0x00000001) != 0)) {
              checkupItem_ = new java.util.ArrayList<com.ywt.gapi.checkup_booking.CheckupItem>();
              mutable_bitField0_ |= 0x00000001;
            }
            checkupItem_.add(
                input.readMessage(com.ywt.gapi.checkup_booking.CheckupItem.parser(), extensionRegistry));
            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 {
      if (((mutable_bitField0_ & 0x00000001) != 0)) {
        checkupItem_ = java.util.Collections.unmodifiableList(checkupItem_);
      }
      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_CheckupItemCategory_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_CheckupItemCategory_fieldAccessorTable
        .ensureFieldAccessorsInitialized(
            com.ywt.gapi.checkup_booking.CheckupItemCategory.class, com.ywt.gapi.checkup_booking.CheckupItemCategory.Builder.class);
  }

  public static final int ITEMCATEGORYID_FIELD_NUMBER = 1;
  private volatile java.lang.Object itemCategoryId_;
  /**
   * <pre>
   *  医嘱子分类
   * </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>
   *  医嘱子分类
   * </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 CHECKUPITEM_FIELD_NUMBER = 3;
  private java.util.List<com.ywt.gapi.checkup_booking.CheckupItem> checkupItem_;
  /**
   * <code>repeated .com.ywt.gapi.checkup_booking.CheckupItem CheckupItem = 3;</code>
   */
  @java.lang.Override
  public java.util.List<com.ywt.gapi.checkup_booking.CheckupItem> getCheckupItemList() {
    return checkupItem_;
  }
  /**
   * <code>repeated .com.ywt.gapi.checkup_booking.CheckupItem CheckupItem = 3;</code>
   */
  @java.lang.Override
  public java.util.List<? extends com.ywt.gapi.checkup_booking.CheckupItemOrBuilder> 
      getCheckupItemOrBuilderList() {
    return checkupItem_;
  }
  /**
   * <code>repeated .com.ywt.gapi.checkup_booking.CheckupItem CheckupItem = 3;</code>
   */
  @java.lang.Override
  public int getCheckupItemCount() {
    return checkupItem_.size();
  }
  /**
   * <code>repeated .com.ywt.gapi.checkup_booking.CheckupItem CheckupItem = 3;</code>
   */
  @java.lang.Override
  public com.ywt.gapi.checkup_booking.CheckupItem getCheckupItem(int index) {
    return checkupItem_.get(index);
  }
  /**
   * <code>repeated .com.ywt.gapi.checkup_booking.CheckupItem CheckupItem = 3;</code>
   */
  @java.lang.Override
  public com.ywt.gapi.checkup_booking.CheckupItemOrBuilder getCheckupItemOrBuilder(
      int index) {
    return checkupItem_.get(index);
  }

  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_);
    }
    for (int i = 0; i < checkupItem_.size(); i++) {
      output.writeMessage(3, checkupItem_.get(i));
    }
    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_);
    }
    for (int i = 0; i < checkupItem_.size(); i++) {
      size += com.google.protobuf.CodedOutputStream
        .computeMessageSize(3, checkupItem_.get(i));
    }
    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.CheckupItemCategory)) {
      return super.equals(obj);
    }
    com.ywt.gapi.checkup_booking.CheckupItemCategory other = (com.ywt.gapi.checkup_booking.CheckupItemCategory) obj;

    if (!getItemCategoryId()
        .equals(other.getItemCategoryId())) return false;
    if (!getItemCategoryDesc()
        .equals(other.getItemCategoryDesc())) return false;
    if (!getCheckupItemList()
        .equals(other.getCheckupItemList())) 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();
    if (getCheckupItemCount() > 0) {
      hash = (37 * hash) + CHECKUPITEM_FIELD_NUMBER;
      hash = (53 * hash) + getCheckupItemList().hashCode();
    }
    hash = (29 * hash) + unknownFields.hashCode();
    memoizedHashCode = hash;
    return hash;
  }

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

    // Construct using com.ywt.gapi.checkup_booking.CheckupItemCategory.newBuilder()
    private Builder() {
      maybeForceBuilderInitialization();
    }

    private Builder(
        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
      super(parent);
      maybeForceBuilderInitialization();
    }
    private void maybeForceBuilderInitialization() {
      if (com.google.protobuf.GeneratedMessageV3
              .alwaysUseFieldBuilders) {
        getCheckupItemFieldBuilder();
      }
    }
    @java.lang.Override
    public Builder clear() {
      super.clear();
      itemCategoryId_ = "";

      itemCategoryDesc_ = "";

      if (checkupItemBuilder_ == null) {
        checkupItem_ = java.util.Collections.emptyList();
        bitField0_ = (bitField0_ & ~0x00000001);
      } else {
        checkupItemBuilder_.clear();
      }
      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_CheckupItemCategory_descriptor;
    }

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

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

    @java.lang.Override
    public com.ywt.gapi.checkup_booking.CheckupItemCategory buildPartial() {
      com.ywt.gapi.checkup_booking.CheckupItemCategory result = new com.ywt.gapi.checkup_booking.CheckupItemCategory(this);
      int from_bitField0_ = bitField0_;
      result.itemCategoryId_ = itemCategoryId_;
      result.itemCategoryDesc_ = itemCategoryDesc_;
      if (checkupItemBuilder_ == null) {
        if (((bitField0_ & 0x00000001) != 0)) {
          checkupItem_ = java.util.Collections.unmodifiableList(checkupItem_);
          bitField0_ = (bitField0_ & ~0x00000001);
        }
        result.checkupItem_ = checkupItem_;
      } else {
        result.checkupItem_ = checkupItemBuilder_.build();
      }
      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.CheckupItemCategory) {
        return mergeFrom((com.ywt.gapi.checkup_booking.CheckupItemCategory)other);
      } else {
        super.mergeFrom(other);
        return this;
      }
    }

    public Builder mergeFrom(com.ywt.gapi.checkup_booking.CheckupItemCategory other) {
      if (other == com.ywt.gapi.checkup_booking.CheckupItemCategory.getDefaultInstance()) return this;
      if (!other.getItemCategoryId().isEmpty()) {
        itemCategoryId_ = other.itemCategoryId_;
        onChanged();
      }
      if (!other.getItemCategoryDesc().isEmpty()) {
        itemCategoryDesc_ = other.itemCategoryDesc_;
        onChanged();
      }
      if (checkupItemBuilder_ == null) {
        if (!other.checkupItem_.isEmpty()) {
          if (checkupItem_.isEmpty()) {
            checkupItem_ = other.checkupItem_;
            bitField0_ = (bitField0_ & ~0x00000001);
          } else {
            ensureCheckupItemIsMutable();
            checkupItem_.addAll(other.checkupItem_);
          }
          onChanged();
        }
      } else {
        if (!other.checkupItem_.isEmpty()) {
          if (checkupItemBuilder_.isEmpty()) {
            checkupItemBuilder_.dispose();
            checkupItemBuilder_ = null;
            checkupItem_ = other.checkupItem_;
            bitField0_ = (bitField0_ & ~0x00000001);
            checkupItemBuilder_ = 
              com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
                 getCheckupItemFieldBuilder() : null;
          } else {
            checkupItemBuilder_.addAllMessages(other.checkupItem_);
          }
        }
      }
      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.CheckupItemCategory parsedMessage = null;
      try {
        parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
      } catch (com.google.protobuf.InvalidProtocolBufferException e) {
        parsedMessage = (com.ywt.gapi.checkup_booking.CheckupItemCategory) e.getUnfinishedMessage();
        throw e.unwrapIOException();
      } finally {
        if (parsedMessage != null) {
          mergeFrom(parsedMessage);
        }
      }
      return this;
    }
    private int bitField0_;

    private java.lang.Object itemCategoryId_ = "";
    /**
     * <pre>
     *  医嘱子分类
     * </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>
     *  医嘱子分类
     * </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>
     *  医嘱子分类
     * </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>
     *  医嘱子分类
     * </pre>
     *
     * <code>string itemCategoryId = 1;</code>
     * @return This builder for chaining.
     */
    public Builder clearItemCategoryId() {
      
      itemCategoryId_ = getDefaultInstance().getItemCategoryId();
      onChanged();
      return this;
    }
    /**
     * <pre>
     *  医嘱子分类
     * </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.util.List<com.ywt.gapi.checkup_booking.CheckupItem> checkupItem_ =
      java.util.Collections.emptyList();
    private void ensureCheckupItemIsMutable() {
      if (!((bitField0_ & 0x00000001) != 0)) {
        checkupItem_ = new java.util.ArrayList<com.ywt.gapi.checkup_booking.CheckupItem>(checkupItem_);
        bitField0_ |= 0x00000001;
       }
    }

    private com.google.protobuf.RepeatedFieldBuilderV3<
        com.ywt.gapi.checkup_booking.CheckupItem, com.ywt.gapi.checkup_booking.CheckupItem.Builder, com.ywt.gapi.checkup_booking.CheckupItemOrBuilder> checkupItemBuilder_;

    /**
     * <code>repeated .com.ywt.gapi.checkup_booking.CheckupItem CheckupItem = 3;</code>
     */
    public java.util.List<com.ywt.gapi.checkup_booking.CheckupItem> getCheckupItemList() {
      if (checkupItemBuilder_ == null) {
        return java.util.Collections.unmodifiableList(checkupItem_);
      } else {
        return checkupItemBuilder_.getMessageList();
      }
    }
    /**
     * <code>repeated .com.ywt.gapi.checkup_booking.CheckupItem CheckupItem = 3;</code>
     */
    public int getCheckupItemCount() {
      if (checkupItemBuilder_ == null) {
        return checkupItem_.size();
      } else {
        return checkupItemBuilder_.getCount();
      }
    }
    /**
     * <code>repeated .com.ywt.gapi.checkup_booking.CheckupItem CheckupItem = 3;</code>
     */
    public com.ywt.gapi.checkup_booking.CheckupItem getCheckupItem(int index) {
      if (checkupItemBuilder_ == null) {
        return checkupItem_.get(index);
      } else {
        return checkupItemBuilder_.getMessage(index);
      }
    }
    /**
     * <code>repeated .com.ywt.gapi.checkup_booking.CheckupItem CheckupItem = 3;</code>
     */
    public Builder setCheckupItem(
        int index, com.ywt.gapi.checkup_booking.CheckupItem value) {
      if (checkupItemBuilder_ == null) {
        if (value == null) {
          throw new NullPointerException();
        }
        ensureCheckupItemIsMutable();
        checkupItem_.set(index, value);
        onChanged();
      } else {
        checkupItemBuilder_.setMessage(index, value);
      }
      return this;
    }
    /**
     * <code>repeated .com.ywt.gapi.checkup_booking.CheckupItem CheckupItem = 3;</code>
     */
    public Builder setCheckupItem(
        int index, com.ywt.gapi.checkup_booking.CheckupItem.Builder builderForValue) {
      if (checkupItemBuilder_ == null) {
        ensureCheckupItemIsMutable();
        checkupItem_.set(index, builderForValue.build());
        onChanged();
      } else {
        checkupItemBuilder_.setMessage(index, builderForValue.build());
      }
      return this;
    }
    /**
     * <code>repeated .com.ywt.gapi.checkup_booking.CheckupItem CheckupItem = 3;</code>
     */
    public Builder addCheckupItem(com.ywt.gapi.checkup_booking.CheckupItem value) {
      if (checkupItemBuilder_ == null) {
        if (value == null) {
          throw new NullPointerException();
        }
        ensureCheckupItemIsMutable();
        checkupItem_.add(value);
        onChanged();
      } else {
        checkupItemBuilder_.addMessage(value);
      }
      return this;
    }
    /**
     * <code>repeated .com.ywt.gapi.checkup_booking.CheckupItem CheckupItem = 3;</code>
     */
    public Builder addCheckupItem(
        int index, com.ywt.gapi.checkup_booking.CheckupItem value) {
      if (checkupItemBuilder_ == null) {
        if (value == null) {
          throw new NullPointerException();
        }
        ensureCheckupItemIsMutable();
        checkupItem_.add(index, value);
        onChanged();
      } else {
        checkupItemBuilder_.addMessage(index, value);
      }
      return this;
    }
    /**
     * <code>repeated .com.ywt.gapi.checkup_booking.CheckupItem CheckupItem = 3;</code>
     */
    public Builder addCheckupItem(
        com.ywt.gapi.checkup_booking.CheckupItem.Builder builderForValue) {
      if (checkupItemBuilder_ == null) {
        ensureCheckupItemIsMutable();
        checkupItem_.add(builderForValue.build());
        onChanged();
      } else {
        checkupItemBuilder_.addMessage(builderForValue.build());
      }
      return this;
    }
    /**
     * <code>repeated .com.ywt.gapi.checkup_booking.CheckupItem CheckupItem = 3;</code>
     */
    public Builder addCheckupItem(
        int index, com.ywt.gapi.checkup_booking.CheckupItem.Builder builderForValue) {
      if (checkupItemBuilder_ == null) {
        ensureCheckupItemIsMutable();
        checkupItem_.add(index, builderForValue.build());
        onChanged();
      } else {
        checkupItemBuilder_.addMessage(index, builderForValue.build());
      }
      return this;
    }
    /**
     * <code>repeated .com.ywt.gapi.checkup_booking.CheckupItem CheckupItem = 3;</code>
     */
    public Builder addAllCheckupItem(
        java.lang.Iterable<? extends com.ywt.gapi.checkup_booking.CheckupItem> values) {
      if (checkupItemBuilder_ == null) {
        ensureCheckupItemIsMutable();
        com.google.protobuf.AbstractMessageLite.Builder.addAll(
            values, checkupItem_);
        onChanged();
      } else {
        checkupItemBuilder_.addAllMessages(values);
      }
      return this;
    }
    /**
     * <code>repeated .com.ywt.gapi.checkup_booking.CheckupItem CheckupItem = 3;</code>
     */
    public Builder clearCheckupItem() {
      if (checkupItemBuilder_ == null) {
        checkupItem_ = java.util.Collections.emptyList();
        bitField0_ = (bitField0_ & ~0x00000001);
        onChanged();
      } else {
        checkupItemBuilder_.clear();
      }
      return this;
    }
    /**
     * <code>repeated .com.ywt.gapi.checkup_booking.CheckupItem CheckupItem = 3;</code>
     */
    public Builder removeCheckupItem(int index) {
      if (checkupItemBuilder_ == null) {
        ensureCheckupItemIsMutable();
        checkupItem_.remove(index);
        onChanged();
      } else {
        checkupItemBuilder_.remove(index);
      }
      return this;
    }
    /**
     * <code>repeated .com.ywt.gapi.checkup_booking.CheckupItem CheckupItem = 3;</code>
     */
    public com.ywt.gapi.checkup_booking.CheckupItem.Builder getCheckupItemBuilder(
        int index) {
      return getCheckupItemFieldBuilder().getBuilder(index);
    }
    /**
     * <code>repeated .com.ywt.gapi.checkup_booking.CheckupItem CheckupItem = 3;</code>
     */
    public com.ywt.gapi.checkup_booking.CheckupItemOrBuilder getCheckupItemOrBuilder(
        int index) {
      if (checkupItemBuilder_ == null) {
        return checkupItem_.get(index);  } else {
        return checkupItemBuilder_.getMessageOrBuilder(index);
      }
    }
    /**
     * <code>repeated .com.ywt.gapi.checkup_booking.CheckupItem CheckupItem = 3;</code>
     */
    public java.util.List<? extends com.ywt.gapi.checkup_booking.CheckupItemOrBuilder> 
         getCheckupItemOrBuilderList() {
      if (checkupItemBuilder_ != null) {
        return checkupItemBuilder_.getMessageOrBuilderList();
      } else {
        return java.util.Collections.unmodifiableList(checkupItem_);
      }
    }
    /**
     * <code>repeated .com.ywt.gapi.checkup_booking.CheckupItem CheckupItem = 3;</code>
     */
    public com.ywt.gapi.checkup_booking.CheckupItem.Builder addCheckupItemBuilder() {
      return getCheckupItemFieldBuilder().addBuilder(
          com.ywt.gapi.checkup_booking.CheckupItem.getDefaultInstance());
    }
    /**
     * <code>repeated .com.ywt.gapi.checkup_booking.CheckupItem CheckupItem = 3;</code>
     */
    public com.ywt.gapi.checkup_booking.CheckupItem.Builder addCheckupItemBuilder(
        int index) {
      return getCheckupItemFieldBuilder().addBuilder(
          index, com.ywt.gapi.checkup_booking.CheckupItem.getDefaultInstance());
    }
    /**
     * <code>repeated .com.ywt.gapi.checkup_booking.CheckupItem CheckupItem = 3;</code>
     */
    public java.util.List<com.ywt.gapi.checkup_booking.CheckupItem.Builder> 
         getCheckupItemBuilderList() {
      return getCheckupItemFieldBuilder().getBuilderList();
    }
    private com.google.protobuf.RepeatedFieldBuilderV3<
        com.ywt.gapi.checkup_booking.CheckupItem, com.ywt.gapi.checkup_booking.CheckupItem.Builder, com.ywt.gapi.checkup_booking.CheckupItemOrBuilder> 
        getCheckupItemFieldBuilder() {
      if (checkupItemBuilder_ == null) {
        checkupItemBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
            com.ywt.gapi.checkup_booking.CheckupItem, com.ywt.gapi.checkup_booking.CheckupItem.Builder, com.ywt.gapi.checkup_booking.CheckupItemOrBuilder>(
                checkupItem_,
                ((bitField0_ & 0x00000001) != 0),
                getParentForChildren(),
                isClean());
        checkupItem_ = null;
      }
      return checkupItemBuilder_;
    }
    @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.CheckupItemCategory)
  }

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

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

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

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

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

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

}

