// 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.TreamentGuideItem}
 */
public final class TreamentGuideItem extends
    com.google.protobuf.GeneratedMessageV3 implements
    // @@protoc_insertion_point(message_implements:com.ywt.gapi.third.taihe.TreamentGuideItem)
    TreamentGuideItemOrBuilder {
private static final long serialVersionUID = 0L;
  // Use TreamentGuideItem.newBuilder() to construct.
  private TreamentGuideItem(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {
    super(builder);
  }
  private TreamentGuideItem() {
    preName_ = "";
    deptName_ = "";
    address_ = "";
    windowName_ = "";
    remark_ = "";
    preItem_ = java.util.Collections.emptyList();
  }

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

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

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

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

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

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

            remark_ = s;
            break;
          }
          case 50: {
            if (!((mutable_bitField0_ & 0x00000001) != 0)) {
              preItem_ = new java.util.ArrayList<com.ywt.gapi.third.taihe.TreamentGuidePreItem>();
              mutable_bitField0_ |= 0x00000001;
            }
            preItem_.add(
                input.readMessage(com.ywt.gapi.third.taihe.TreamentGuidePreItem.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)) {
        preItem_ = java.util.Collections.unmodifiableList(preItem_);
      }
      this.unknownFields = unknownFields.build();
      makeExtensionsImmutable();
    }
  }
  public static final com.google.protobuf.Descriptors.Descriptor
      getDescriptor() {
    return com.ywt.gapi.third.taihe.TaiheProto.internal_static_com_ywt_gapi_third_taihe_TreamentGuideItem_descriptor;
  }

  @java.lang.Override
  protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
      internalGetFieldAccessorTable() {
    return com.ywt.gapi.third.taihe.TaiheProto.internal_static_com_ywt_gapi_third_taihe_TreamentGuideItem_fieldAccessorTable
        .ensureFieldAccessorsInitialized(
            com.ywt.gapi.third.taihe.TreamentGuideItem.class, com.ywt.gapi.third.taihe.TreamentGuideItem.Builder.class);
  }

  public static final int PRENAME_FIELD_NUMBER = 1;
  private volatile java.lang.Object preName_;
  /**
   * <code>string preName = 1;</code>
   * @return The preName.
   */
  @java.lang.Override
  public java.lang.String getPreName() {
    java.lang.Object ref = preName_;
    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();
      preName_ = s;
      return s;
    }
  }
  /**
   * <code>string preName = 1;</code>
   * @return The bytes for preName.
   */
  @java.lang.Override
  public com.google.protobuf.ByteString
      getPreNameBytes() {
    java.lang.Object ref = preName_;
    if (ref instanceof java.lang.String) {
      com.google.protobuf.ByteString b = 
          com.google.protobuf.ByteString.copyFromUtf8(
              (java.lang.String) ref);
      preName_ = b;
      return b;
    } else {
      return (com.google.protobuf.ByteString) ref;
    }
  }

  public static final int DEPTNAME_FIELD_NUMBER = 2;
  private volatile java.lang.Object deptName_;
  /**
   * <code>string deptName = 2;</code>
   * @return The deptName.
   */
  @java.lang.Override
  public java.lang.String getDeptName() {
    java.lang.Object ref = deptName_;
    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();
      deptName_ = s;
      return s;
    }
  }
  /**
   * <code>string deptName = 2;</code>
   * @return The bytes for deptName.
   */
  @java.lang.Override
  public com.google.protobuf.ByteString
      getDeptNameBytes() {
    java.lang.Object ref = deptName_;
    if (ref instanceof java.lang.String) {
      com.google.protobuf.ByteString b = 
          com.google.protobuf.ByteString.copyFromUtf8(
              (java.lang.String) ref);
      deptName_ = b;
      return b;
    } else {
      return (com.google.protobuf.ByteString) ref;
    }
  }

  public static final int ADDRESS_FIELD_NUMBER = 3;
  private volatile java.lang.Object address_;
  /**
   * <code>string address = 3;</code>
   * @return The address.
   */
  @java.lang.Override
  public java.lang.String getAddress() {
    java.lang.Object ref = address_;
    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();
      address_ = s;
      return s;
    }
  }
  /**
   * <code>string address = 3;</code>
   * @return The bytes for address.
   */
  @java.lang.Override
  public com.google.protobuf.ByteString
      getAddressBytes() {
    java.lang.Object ref = address_;
    if (ref instanceof java.lang.String) {
      com.google.protobuf.ByteString b = 
          com.google.protobuf.ByteString.copyFromUtf8(
              (java.lang.String) ref);
      address_ = b;
      return b;
    } else {
      return (com.google.protobuf.ByteString) ref;
    }
  }

  public static final int WINDOWNAME_FIELD_NUMBER = 4;
  private volatile java.lang.Object windowName_;
  /**
   * <code>string windowName = 4;</code>
   * @return The windowName.
   */
  @java.lang.Override
  public java.lang.String getWindowName() {
    java.lang.Object ref = windowName_;
    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();
      windowName_ = s;
      return s;
    }
  }
  /**
   * <code>string windowName = 4;</code>
   * @return The bytes for windowName.
   */
  @java.lang.Override
  public com.google.protobuf.ByteString
      getWindowNameBytes() {
    java.lang.Object ref = windowName_;
    if (ref instanceof java.lang.String) {
      com.google.protobuf.ByteString b = 
          com.google.protobuf.ByteString.copyFromUtf8(
              (java.lang.String) ref);
      windowName_ = b;
      return b;
    } else {
      return (com.google.protobuf.ByteString) ref;
    }
  }

  public static final int REMARK_FIELD_NUMBER = 5;
  private volatile java.lang.Object remark_;
  /**
   * <code>string remark = 5;</code>
   * @return The remark.
   */
  @java.lang.Override
  public java.lang.String getRemark() {
    java.lang.Object ref = remark_;
    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();
      remark_ = s;
      return s;
    }
  }
  /**
   * <code>string remark = 5;</code>
   * @return The bytes for remark.
   */
  @java.lang.Override
  public com.google.protobuf.ByteString
      getRemarkBytes() {
    java.lang.Object ref = remark_;
    if (ref instanceof java.lang.String) {
      com.google.protobuf.ByteString b = 
          com.google.protobuf.ByteString.copyFromUtf8(
              (java.lang.String) ref);
      remark_ = b;
      return b;
    } else {
      return (com.google.protobuf.ByteString) ref;
    }
  }

  public static final int PREITEM_FIELD_NUMBER = 6;
  private java.util.List<com.ywt.gapi.third.taihe.TreamentGuidePreItem> preItem_;
  /**
   * <code>repeated .com.ywt.gapi.third.taihe.TreamentGuidePreItem preItem = 6;</code>
   */
  @java.lang.Override
  public java.util.List<com.ywt.gapi.third.taihe.TreamentGuidePreItem> getPreItemList() {
    return preItem_;
  }
  /**
   * <code>repeated .com.ywt.gapi.third.taihe.TreamentGuidePreItem preItem = 6;</code>
   */
  @java.lang.Override
  public java.util.List<? extends com.ywt.gapi.third.taihe.TreamentGuidePreItemOrBuilder> 
      getPreItemOrBuilderList() {
    return preItem_;
  }
  /**
   * <code>repeated .com.ywt.gapi.third.taihe.TreamentGuidePreItem preItem = 6;</code>
   */
  @java.lang.Override
  public int getPreItemCount() {
    return preItem_.size();
  }
  /**
   * <code>repeated .com.ywt.gapi.third.taihe.TreamentGuidePreItem preItem = 6;</code>
   */
  @java.lang.Override
  public com.ywt.gapi.third.taihe.TreamentGuidePreItem getPreItem(int index) {
    return preItem_.get(index);
  }
  /**
   * <code>repeated .com.ywt.gapi.third.taihe.TreamentGuidePreItem preItem = 6;</code>
   */
  @java.lang.Override
  public com.ywt.gapi.third.taihe.TreamentGuidePreItemOrBuilder getPreItemOrBuilder(
      int index) {
    return preItem_.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(preName_)) {
      com.google.protobuf.GeneratedMessageV3.writeString(output, 1, preName_);
    }
    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(deptName_)) {
      com.google.protobuf.GeneratedMessageV3.writeString(output, 2, deptName_);
    }
    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(address_)) {
      com.google.protobuf.GeneratedMessageV3.writeString(output, 3, address_);
    }
    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(windowName_)) {
      com.google.protobuf.GeneratedMessageV3.writeString(output, 4, windowName_);
    }
    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(remark_)) {
      com.google.protobuf.GeneratedMessageV3.writeString(output, 5, remark_);
    }
    for (int i = 0; i < preItem_.size(); i++) {
      output.writeMessage(6, preItem_.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(preName_)) {
      size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, preName_);
    }
    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(deptName_)) {
      size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, deptName_);
    }
    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(address_)) {
      size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, address_);
    }
    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(windowName_)) {
      size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, windowName_);
    }
    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(remark_)) {
      size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, remark_);
    }
    for (int i = 0; i < preItem_.size(); i++) {
      size += com.google.protobuf.CodedOutputStream
        .computeMessageSize(6, preItem_.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.third.taihe.TreamentGuideItem)) {
      return super.equals(obj);
    }
    com.ywt.gapi.third.taihe.TreamentGuideItem other = (com.ywt.gapi.third.taihe.TreamentGuideItem) obj;

    if (!getPreName()
        .equals(other.getPreName())) return false;
    if (!getDeptName()
        .equals(other.getDeptName())) return false;
    if (!getAddress()
        .equals(other.getAddress())) return false;
    if (!getWindowName()
        .equals(other.getWindowName())) return false;
    if (!getRemark()
        .equals(other.getRemark())) return false;
    if (!getPreItemList()
        .equals(other.getPreItemList())) 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) + PRENAME_FIELD_NUMBER;
    hash = (53 * hash) + getPreName().hashCode();
    hash = (37 * hash) + DEPTNAME_FIELD_NUMBER;
    hash = (53 * hash) + getDeptName().hashCode();
    hash = (37 * hash) + ADDRESS_FIELD_NUMBER;
    hash = (53 * hash) + getAddress().hashCode();
    hash = (37 * hash) + WINDOWNAME_FIELD_NUMBER;
    hash = (53 * hash) + getWindowName().hashCode();
    hash = (37 * hash) + REMARK_FIELD_NUMBER;
    hash = (53 * hash) + getRemark().hashCode();
    if (getPreItemCount() > 0) {
      hash = (37 * hash) + PREITEM_FIELD_NUMBER;
      hash = (53 * hash) + getPreItemList().hashCode();
    }
    hash = (29 * hash) + unknownFields.hashCode();
    memoizedHashCode = hash;
    return hash;
  }

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

  @java.lang.Override
  public Builder newBuilderForType() { return newBuilder(); }
  public static Builder newBuilder() {
    return DEFAULT_INSTANCE.toBuilder();
  }
  public static Builder newBuilder(com.ywt.gapi.third.taihe.TreamentGuideItem prototype) {
    return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
  }
  @java.lang.Override
  public Builder toBuilder() {
    return this == DEFAULT_INSTANCE
        ? new Builder() : new Builder().mergeFrom(this);
  }

  @java.lang.Override
  protected Builder newBuilderForType(
      com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
    Builder builder = new Builder(parent);
    return builder;
  }
  /**
   * <pre>
   * 指引项
   * </pre>
   *
   * Protobuf type {@code com.ywt.gapi.third.taihe.TreamentGuideItem}
   */
  public static final class Builder extends
      com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements
      // @@protoc_insertion_point(builder_implements:com.ywt.gapi.third.taihe.TreamentGuideItem)
      com.ywt.gapi.third.taihe.TreamentGuideItemOrBuilder {
    public static final com.google.protobuf.Descriptors.Descriptor
        getDescriptor() {
      return com.ywt.gapi.third.taihe.TaiheProto.internal_static_com_ywt_gapi_third_taihe_TreamentGuideItem_descriptor;
    }

    @java.lang.Override
    protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
        internalGetFieldAccessorTable() {
      return com.ywt.gapi.third.taihe.TaiheProto.internal_static_com_ywt_gapi_third_taihe_TreamentGuideItem_fieldAccessorTable
          .ensureFieldAccessorsInitialized(
              com.ywt.gapi.third.taihe.TreamentGuideItem.class, com.ywt.gapi.third.taihe.TreamentGuideItem.Builder.class);
    }

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

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

      deptName_ = "";

      address_ = "";

      windowName_ = "";

      remark_ = "";

      if (preItemBuilder_ == null) {
        preItem_ = java.util.Collections.emptyList();
        bitField0_ = (bitField0_ & ~0x00000001);
      } else {
        preItemBuilder_.clear();
      }
      return this;
    }

    @java.lang.Override
    public com.google.protobuf.Descriptors.Descriptor
        getDescriptorForType() {
      return com.ywt.gapi.third.taihe.TaiheProto.internal_static_com_ywt_gapi_third_taihe_TreamentGuideItem_descriptor;
    }

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

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

    @java.lang.Override
    public com.ywt.gapi.third.taihe.TreamentGuideItem buildPartial() {
      com.ywt.gapi.third.taihe.TreamentGuideItem result = new com.ywt.gapi.third.taihe.TreamentGuideItem(this);
      int from_bitField0_ = bitField0_;
      result.preName_ = preName_;
      result.deptName_ = deptName_;
      result.address_ = address_;
      result.windowName_ = windowName_;
      result.remark_ = remark_;
      if (preItemBuilder_ == null) {
        if (((bitField0_ & 0x00000001) != 0)) {
          preItem_ = java.util.Collections.unmodifiableList(preItem_);
          bitField0_ = (bitField0_ & ~0x00000001);
        }
        result.preItem_ = preItem_;
      } else {
        result.preItem_ = preItemBuilder_.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.third.taihe.TreamentGuideItem) {
        return mergeFrom((com.ywt.gapi.third.taihe.TreamentGuideItem)other);
      } else {
        super.mergeFrom(other);
        return this;
      }
    }

    public Builder mergeFrom(com.ywt.gapi.third.taihe.TreamentGuideItem other) {
      if (other == com.ywt.gapi.third.taihe.TreamentGuideItem.getDefaultInstance()) return this;
      if (!other.getPreName().isEmpty()) {
        preName_ = other.preName_;
        onChanged();
      }
      if (!other.getDeptName().isEmpty()) {
        deptName_ = other.deptName_;
        onChanged();
      }
      if (!other.getAddress().isEmpty()) {
        address_ = other.address_;
        onChanged();
      }
      if (!other.getWindowName().isEmpty()) {
        windowName_ = other.windowName_;
        onChanged();
      }
      if (!other.getRemark().isEmpty()) {
        remark_ = other.remark_;
        onChanged();
      }
      if (preItemBuilder_ == null) {
        if (!other.preItem_.isEmpty()) {
          if (preItem_.isEmpty()) {
            preItem_ = other.preItem_;
            bitField0_ = (bitField0_ & ~0x00000001);
          } else {
            ensurePreItemIsMutable();
            preItem_.addAll(other.preItem_);
          }
          onChanged();
        }
      } else {
        if (!other.preItem_.isEmpty()) {
          if (preItemBuilder_.isEmpty()) {
            preItemBuilder_.dispose();
            preItemBuilder_ = null;
            preItem_ = other.preItem_;
            bitField0_ = (bitField0_ & ~0x00000001);
            preItemBuilder_ = 
              com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
                 getPreItemFieldBuilder() : null;
          } else {
            preItemBuilder_.addAllMessages(other.preItem_);
          }
        }
      }
      this.mergeUnknownFields(other.unknownFields);
      onChanged();
      return this;
    }

    @java.lang.Override
    public final boolean isInitialized() {
      return true;
    }

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

    private java.lang.Object preName_ = "";
    /**
     * <code>string preName = 1;</code>
     * @return The preName.
     */
    public java.lang.String getPreName() {
      java.lang.Object ref = preName_;
      if (!(ref instanceof java.lang.String)) {
        com.google.protobuf.ByteString bs =
            (com.google.protobuf.ByteString) ref;
        java.lang.String s = bs.toStringUtf8();
        preName_ = s;
        return s;
      } else {
        return (java.lang.String) ref;
      }
    }
    /**
     * <code>string preName = 1;</code>
     * @return The bytes for preName.
     */
    public com.google.protobuf.ByteString
        getPreNameBytes() {
      java.lang.Object ref = preName_;
      if (ref instanceof String) {
        com.google.protobuf.ByteString b = 
            com.google.protobuf.ByteString.copyFromUtf8(
                (java.lang.String) ref);
        preName_ = b;
        return b;
      } else {
        return (com.google.protobuf.ByteString) ref;
      }
    }
    /**
     * <code>string preName = 1;</code>
     * @param value The preName to set.
     * @return This builder for chaining.
     */
    public Builder setPreName(
        java.lang.String value) {
      if (value == null) {
    throw new NullPointerException();
  }
  
      preName_ = value;
      onChanged();
      return this;
    }
    /**
     * <code>string preName = 1;</code>
     * @return This builder for chaining.
     */
    public Builder clearPreName() {
      
      preName_ = getDefaultInstance().getPreName();
      onChanged();
      return this;
    }
    /**
     * <code>string preName = 1;</code>
     * @param value The bytes for preName to set.
     * @return This builder for chaining.
     */
    public Builder setPreNameBytes(
        com.google.protobuf.ByteString value) {
      if (value == null) {
    throw new NullPointerException();
  }
  checkByteStringIsUtf8(value);
      
      preName_ = value;
      onChanged();
      return this;
    }

    private java.lang.Object deptName_ = "";
    /**
     * <code>string deptName = 2;</code>
     * @return The deptName.
     */
    public java.lang.String getDeptName() {
      java.lang.Object ref = deptName_;
      if (!(ref instanceof java.lang.String)) {
        com.google.protobuf.ByteString bs =
            (com.google.protobuf.ByteString) ref;
        java.lang.String s = bs.toStringUtf8();
        deptName_ = s;
        return s;
      } else {
        return (java.lang.String) ref;
      }
    }
    /**
     * <code>string deptName = 2;</code>
     * @return The bytes for deptName.
     */
    public com.google.protobuf.ByteString
        getDeptNameBytes() {
      java.lang.Object ref = deptName_;
      if (ref instanceof String) {
        com.google.protobuf.ByteString b = 
            com.google.protobuf.ByteString.copyFromUtf8(
                (java.lang.String) ref);
        deptName_ = b;
        return b;
      } else {
        return (com.google.protobuf.ByteString) ref;
      }
    }
    /**
     * <code>string deptName = 2;</code>
     * @param value The deptName to set.
     * @return This builder for chaining.
     */
    public Builder setDeptName(
        java.lang.String value) {
      if (value == null) {
    throw new NullPointerException();
  }
  
      deptName_ = value;
      onChanged();
      return this;
    }
    /**
     * <code>string deptName = 2;</code>
     * @return This builder for chaining.
     */
    public Builder clearDeptName() {
      
      deptName_ = getDefaultInstance().getDeptName();
      onChanged();
      return this;
    }
    /**
     * <code>string deptName = 2;</code>
     * @param value The bytes for deptName to set.
     * @return This builder for chaining.
     */
    public Builder setDeptNameBytes(
        com.google.protobuf.ByteString value) {
      if (value == null) {
    throw new NullPointerException();
  }
  checkByteStringIsUtf8(value);
      
      deptName_ = value;
      onChanged();
      return this;
    }

    private java.lang.Object address_ = "";
    /**
     * <code>string address = 3;</code>
     * @return The address.
     */
    public java.lang.String getAddress() {
      java.lang.Object ref = address_;
      if (!(ref instanceof java.lang.String)) {
        com.google.protobuf.ByteString bs =
            (com.google.protobuf.ByteString) ref;
        java.lang.String s = bs.toStringUtf8();
        address_ = s;
        return s;
      } else {
        return (java.lang.String) ref;
      }
    }
    /**
     * <code>string address = 3;</code>
     * @return The bytes for address.
     */
    public com.google.protobuf.ByteString
        getAddressBytes() {
      java.lang.Object ref = address_;
      if (ref instanceof String) {
        com.google.protobuf.ByteString b = 
            com.google.protobuf.ByteString.copyFromUtf8(
                (java.lang.String) ref);
        address_ = b;
        return b;
      } else {
        return (com.google.protobuf.ByteString) ref;
      }
    }
    /**
     * <code>string address = 3;</code>
     * @param value The address to set.
     * @return This builder for chaining.
     */
    public Builder setAddress(
        java.lang.String value) {
      if (value == null) {
    throw new NullPointerException();
  }
  
      address_ = value;
      onChanged();
      return this;
    }
    /**
     * <code>string address = 3;</code>
     * @return This builder for chaining.
     */
    public Builder clearAddress() {
      
      address_ = getDefaultInstance().getAddress();
      onChanged();
      return this;
    }
    /**
     * <code>string address = 3;</code>
     * @param value The bytes for address to set.
     * @return This builder for chaining.
     */
    public Builder setAddressBytes(
        com.google.protobuf.ByteString value) {
      if (value == null) {
    throw new NullPointerException();
  }
  checkByteStringIsUtf8(value);
      
      address_ = value;
      onChanged();
      return this;
    }

    private java.lang.Object windowName_ = "";
    /**
     * <code>string windowName = 4;</code>
     * @return The windowName.
     */
    public java.lang.String getWindowName() {
      java.lang.Object ref = windowName_;
      if (!(ref instanceof java.lang.String)) {
        com.google.protobuf.ByteString bs =
            (com.google.protobuf.ByteString) ref;
        java.lang.String s = bs.toStringUtf8();
        windowName_ = s;
        return s;
      } else {
        return (java.lang.String) ref;
      }
    }
    /**
     * <code>string windowName = 4;</code>
     * @return The bytes for windowName.
     */
    public com.google.protobuf.ByteString
        getWindowNameBytes() {
      java.lang.Object ref = windowName_;
      if (ref instanceof String) {
        com.google.protobuf.ByteString b = 
            com.google.protobuf.ByteString.copyFromUtf8(
                (java.lang.String) ref);
        windowName_ = b;
        return b;
      } else {
        return (com.google.protobuf.ByteString) ref;
      }
    }
    /**
     * <code>string windowName = 4;</code>
     * @param value The windowName to set.
     * @return This builder for chaining.
     */
    public Builder setWindowName(
        java.lang.String value) {
      if (value == null) {
    throw new NullPointerException();
  }
  
      windowName_ = value;
      onChanged();
      return this;
    }
    /**
     * <code>string windowName = 4;</code>
     * @return This builder for chaining.
     */
    public Builder clearWindowName() {
      
      windowName_ = getDefaultInstance().getWindowName();
      onChanged();
      return this;
    }
    /**
     * <code>string windowName = 4;</code>
     * @param value The bytes for windowName to set.
     * @return This builder for chaining.
     */
    public Builder setWindowNameBytes(
        com.google.protobuf.ByteString value) {
      if (value == null) {
    throw new NullPointerException();
  }
  checkByteStringIsUtf8(value);
      
      windowName_ = value;
      onChanged();
      return this;
    }

    private java.lang.Object remark_ = "";
    /**
     * <code>string remark = 5;</code>
     * @return The remark.
     */
    public java.lang.String getRemark() {
      java.lang.Object ref = remark_;
      if (!(ref instanceof java.lang.String)) {
        com.google.protobuf.ByteString bs =
            (com.google.protobuf.ByteString) ref;
        java.lang.String s = bs.toStringUtf8();
        remark_ = s;
        return s;
      } else {
        return (java.lang.String) ref;
      }
    }
    /**
     * <code>string remark = 5;</code>
     * @return The bytes for remark.
     */
    public com.google.protobuf.ByteString
        getRemarkBytes() {
      java.lang.Object ref = remark_;
      if (ref instanceof String) {
        com.google.protobuf.ByteString b = 
            com.google.protobuf.ByteString.copyFromUtf8(
                (java.lang.String) ref);
        remark_ = b;
        return b;
      } else {
        return (com.google.protobuf.ByteString) ref;
      }
    }
    /**
     * <code>string remark = 5;</code>
     * @param value The remark to set.
     * @return This builder for chaining.
     */
    public Builder setRemark(
        java.lang.String value) {
      if (value == null) {
    throw new NullPointerException();
  }
  
      remark_ = value;
      onChanged();
      return this;
    }
    /**
     * <code>string remark = 5;</code>
     * @return This builder for chaining.
     */
    public Builder clearRemark() {
      
      remark_ = getDefaultInstance().getRemark();
      onChanged();
      return this;
    }
    /**
     * <code>string remark = 5;</code>
     * @param value The bytes for remark to set.
     * @return This builder for chaining.
     */
    public Builder setRemarkBytes(
        com.google.protobuf.ByteString value) {
      if (value == null) {
    throw new NullPointerException();
  }
  checkByteStringIsUtf8(value);
      
      remark_ = value;
      onChanged();
      return this;
    }

    private java.util.List<com.ywt.gapi.third.taihe.TreamentGuidePreItem> preItem_ =
      java.util.Collections.emptyList();
    private void ensurePreItemIsMutable() {
      if (!((bitField0_ & 0x00000001) != 0)) {
        preItem_ = new java.util.ArrayList<com.ywt.gapi.third.taihe.TreamentGuidePreItem>(preItem_);
        bitField0_ |= 0x00000001;
       }
    }

    private com.google.protobuf.RepeatedFieldBuilderV3<
        com.ywt.gapi.third.taihe.TreamentGuidePreItem, com.ywt.gapi.third.taihe.TreamentGuidePreItem.Builder, com.ywt.gapi.third.taihe.TreamentGuidePreItemOrBuilder> preItemBuilder_;

    /**
     * <code>repeated .com.ywt.gapi.third.taihe.TreamentGuidePreItem preItem = 6;</code>
     */
    public java.util.List<com.ywt.gapi.third.taihe.TreamentGuidePreItem> getPreItemList() {
      if (preItemBuilder_ == null) {
        return java.util.Collections.unmodifiableList(preItem_);
      } else {
        return preItemBuilder_.getMessageList();
      }
    }
    /**
     * <code>repeated .com.ywt.gapi.third.taihe.TreamentGuidePreItem preItem = 6;</code>
     */
    public int getPreItemCount() {
      if (preItemBuilder_ == null) {
        return preItem_.size();
      } else {
        return preItemBuilder_.getCount();
      }
    }
    /**
     * <code>repeated .com.ywt.gapi.third.taihe.TreamentGuidePreItem preItem = 6;</code>
     */
    public com.ywt.gapi.third.taihe.TreamentGuidePreItem getPreItem(int index) {
      if (preItemBuilder_ == null) {
        return preItem_.get(index);
      } else {
        return preItemBuilder_.getMessage(index);
      }
    }
    /**
     * <code>repeated .com.ywt.gapi.third.taihe.TreamentGuidePreItem preItem = 6;</code>
     */
    public Builder setPreItem(
        int index, com.ywt.gapi.third.taihe.TreamentGuidePreItem value) {
      if (preItemBuilder_ == null) {
        if (value == null) {
          throw new NullPointerException();
        }
        ensurePreItemIsMutable();
        preItem_.set(index, value);
        onChanged();
      } else {
        preItemBuilder_.setMessage(index, value);
      }
      return this;
    }
    /**
     * <code>repeated .com.ywt.gapi.third.taihe.TreamentGuidePreItem preItem = 6;</code>
     */
    public Builder setPreItem(
        int index, com.ywt.gapi.third.taihe.TreamentGuidePreItem.Builder builderForValue) {
      if (preItemBuilder_ == null) {
        ensurePreItemIsMutable();
        preItem_.set(index, builderForValue.build());
        onChanged();
      } else {
        preItemBuilder_.setMessage(index, builderForValue.build());
      }
      return this;
    }
    /**
     * <code>repeated .com.ywt.gapi.third.taihe.TreamentGuidePreItem preItem = 6;</code>
     */
    public Builder addPreItem(com.ywt.gapi.third.taihe.TreamentGuidePreItem value) {
      if (preItemBuilder_ == null) {
        if (value == null) {
          throw new NullPointerException();
        }
        ensurePreItemIsMutable();
        preItem_.add(value);
        onChanged();
      } else {
        preItemBuilder_.addMessage(value);
      }
      return this;
    }
    /**
     * <code>repeated .com.ywt.gapi.third.taihe.TreamentGuidePreItem preItem = 6;</code>
     */
    public Builder addPreItem(
        int index, com.ywt.gapi.third.taihe.TreamentGuidePreItem value) {
      if (preItemBuilder_ == null) {
        if (value == null) {
          throw new NullPointerException();
        }
        ensurePreItemIsMutable();
        preItem_.add(index, value);
        onChanged();
      } else {
        preItemBuilder_.addMessage(index, value);
      }
      return this;
    }
    /**
     * <code>repeated .com.ywt.gapi.third.taihe.TreamentGuidePreItem preItem = 6;</code>
     */
    public Builder addPreItem(
        com.ywt.gapi.third.taihe.TreamentGuidePreItem.Builder builderForValue) {
      if (preItemBuilder_ == null) {
        ensurePreItemIsMutable();
        preItem_.add(builderForValue.build());
        onChanged();
      } else {
        preItemBuilder_.addMessage(builderForValue.build());
      }
      return this;
    }
    /**
     * <code>repeated .com.ywt.gapi.third.taihe.TreamentGuidePreItem preItem = 6;</code>
     */
    public Builder addPreItem(
        int index, com.ywt.gapi.third.taihe.TreamentGuidePreItem.Builder builderForValue) {
      if (preItemBuilder_ == null) {
        ensurePreItemIsMutable();
        preItem_.add(index, builderForValue.build());
        onChanged();
      } else {
        preItemBuilder_.addMessage(index, builderForValue.build());
      }
      return this;
    }
    /**
     * <code>repeated .com.ywt.gapi.third.taihe.TreamentGuidePreItem preItem = 6;</code>
     */
    public Builder addAllPreItem(
        java.lang.Iterable<? extends com.ywt.gapi.third.taihe.TreamentGuidePreItem> values) {
      if (preItemBuilder_ == null) {
        ensurePreItemIsMutable();
        com.google.protobuf.AbstractMessageLite.Builder.addAll(
            values, preItem_);
        onChanged();
      } else {
        preItemBuilder_.addAllMessages(values);
      }
      return this;
    }
    /**
     * <code>repeated .com.ywt.gapi.third.taihe.TreamentGuidePreItem preItem = 6;</code>
     */
    public Builder clearPreItem() {
      if (preItemBuilder_ == null) {
        preItem_ = java.util.Collections.emptyList();
        bitField0_ = (bitField0_ & ~0x00000001);
        onChanged();
      } else {
        preItemBuilder_.clear();
      }
      return this;
    }
    /**
     * <code>repeated .com.ywt.gapi.third.taihe.TreamentGuidePreItem preItem = 6;</code>
     */
    public Builder removePreItem(int index) {
      if (preItemBuilder_ == null) {
        ensurePreItemIsMutable();
        preItem_.remove(index);
        onChanged();
      } else {
        preItemBuilder_.remove(index);
      }
      return this;
    }
    /**
     * <code>repeated .com.ywt.gapi.third.taihe.TreamentGuidePreItem preItem = 6;</code>
     */
    public com.ywt.gapi.third.taihe.TreamentGuidePreItem.Builder getPreItemBuilder(
        int index) {
      return getPreItemFieldBuilder().getBuilder(index);
    }
    /**
     * <code>repeated .com.ywt.gapi.third.taihe.TreamentGuidePreItem preItem = 6;</code>
     */
    public com.ywt.gapi.third.taihe.TreamentGuidePreItemOrBuilder getPreItemOrBuilder(
        int index) {
      if (preItemBuilder_ == null) {
        return preItem_.get(index);  } else {
        return preItemBuilder_.getMessageOrBuilder(index);
      }
    }
    /**
     * <code>repeated .com.ywt.gapi.third.taihe.TreamentGuidePreItem preItem = 6;</code>
     */
    public java.util.List<? extends com.ywt.gapi.third.taihe.TreamentGuidePreItemOrBuilder> 
         getPreItemOrBuilderList() {
      if (preItemBuilder_ != null) {
        return preItemBuilder_.getMessageOrBuilderList();
      } else {
        return java.util.Collections.unmodifiableList(preItem_);
      }
    }
    /**
     * <code>repeated .com.ywt.gapi.third.taihe.TreamentGuidePreItem preItem = 6;</code>
     */
    public com.ywt.gapi.third.taihe.TreamentGuidePreItem.Builder addPreItemBuilder() {
      return getPreItemFieldBuilder().addBuilder(
          com.ywt.gapi.third.taihe.TreamentGuidePreItem.getDefaultInstance());
    }
    /**
     * <code>repeated .com.ywt.gapi.third.taihe.TreamentGuidePreItem preItem = 6;</code>
     */
    public com.ywt.gapi.third.taihe.TreamentGuidePreItem.Builder addPreItemBuilder(
        int index) {
      return getPreItemFieldBuilder().addBuilder(
          index, com.ywt.gapi.third.taihe.TreamentGuidePreItem.getDefaultInstance());
    }
    /**
     * <code>repeated .com.ywt.gapi.third.taihe.TreamentGuidePreItem preItem = 6;</code>
     */
    public java.util.List<com.ywt.gapi.third.taihe.TreamentGuidePreItem.Builder> 
         getPreItemBuilderList() {
      return getPreItemFieldBuilder().getBuilderList();
    }
    private com.google.protobuf.RepeatedFieldBuilderV3<
        com.ywt.gapi.third.taihe.TreamentGuidePreItem, com.ywt.gapi.third.taihe.TreamentGuidePreItem.Builder, com.ywt.gapi.third.taihe.TreamentGuidePreItemOrBuilder> 
        getPreItemFieldBuilder() {
      if (preItemBuilder_ == null) {
        preItemBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
            com.ywt.gapi.third.taihe.TreamentGuidePreItem, com.ywt.gapi.third.taihe.TreamentGuidePreItem.Builder, com.ywt.gapi.third.taihe.TreamentGuidePreItemOrBuilder>(
                preItem_,
                ((bitField0_ & 0x00000001) != 0),
                getParentForChildren(),
                isClean());
        preItem_ = null;
      }
      return preItemBuilder_;
    }
    @java.lang.Override
    public final Builder setUnknownFields(
        final com.google.protobuf.UnknownFieldSet unknownFields) {
      return super.setUnknownFields(unknownFields);
    }

    @java.lang.Override
    public final Builder mergeUnknownFields(
        final com.google.protobuf.UnknownFieldSet unknownFields) {
      return super.mergeUnknownFields(unknownFields);
    }


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

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

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

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

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

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

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

}

