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

package com.ywt.gapi.third.taihe;

/**
 * Protobuf type {@code com.ywt.gapi.third.taihe.ClinicItem}
 */
public  final class ClinicItem extends
    com.google.protobuf.GeneratedMessageV3 implements
    // @@protoc_insertion_point(message_implements:com.ywt.gapi.third.taihe.ClinicItem)
    ClinicItemOrBuilder {
  // Use ClinicItem.newBuilder() to construct.
  private ClinicItem(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {
    super(builder);
  }
  private ClinicItem() {
    registrationID_ = "";
    admitDate_ = "";
    admTime_ = "";
    registrationDate_ = "";
    admDept_ = "";
    admDoctor_ = "";
    admAmt_ = "";
    billFlag_ = "";
  }

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

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

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

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

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

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

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

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

            billFlag_ = s;
            break;
          }
        }
      }
    } catch (com.google.protobuf.InvalidProtocolBufferException e) {
      throw e.setUnfinishedMessage(this);
    } catch (java.io.IOException e) {
      throw new com.google.protobuf.InvalidProtocolBufferException(
          e).setUnfinishedMessage(this);
    } finally {
      makeExtensionsImmutable();
    }
  }
  public static final com.google.protobuf.Descriptors.Descriptor
      getDescriptor() {
    return com.ywt.gapi.third.taihe.Taihe.internal_static_com_ywt_gapi_third_taihe_ClinicItem_descriptor;
  }

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

  public static final int REGISTRATIONID_FIELD_NUMBER = 1;
  private volatile java.lang.Object registrationID_;
  /**
   * <code>string registrationID = 1;</code>
   */
  public java.lang.String getRegistrationID() {
    java.lang.Object ref = registrationID_;
    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();
      registrationID_ = s;
      return s;
    }
  }
  /**
   * <code>string registrationID = 1;</code>
   */
  public com.google.protobuf.ByteString
      getRegistrationIDBytes() {
    java.lang.Object ref = registrationID_;
    if (ref instanceof java.lang.String) {
      com.google.protobuf.ByteString b = 
          com.google.protobuf.ByteString.copyFromUtf8(
              (java.lang.String) ref);
      registrationID_ = b;
      return b;
    } else {
      return (com.google.protobuf.ByteString) ref;
    }
  }

  public static final int ADMITDATE_FIELD_NUMBER = 2;
  private volatile java.lang.Object admitDate_;
  /**
   * <code>string admitDate = 2;</code>
   */
  public java.lang.String getAdmitDate() {
    java.lang.Object ref = admitDate_;
    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();
      admitDate_ = s;
      return s;
    }
  }
  /**
   * <code>string admitDate = 2;</code>
   */
  public com.google.protobuf.ByteString
      getAdmitDateBytes() {
    java.lang.Object ref = admitDate_;
    if (ref instanceof java.lang.String) {
      com.google.protobuf.ByteString b = 
          com.google.protobuf.ByteString.copyFromUtf8(
              (java.lang.String) ref);
      admitDate_ = b;
      return b;
    } else {
      return (com.google.protobuf.ByteString) ref;
    }
  }

  public static final int ADMTIME_FIELD_NUMBER = 3;
  private volatile java.lang.Object admTime_;
  /**
   * <code>string admTime = 3;</code>
   */
  public java.lang.String getAdmTime() {
    java.lang.Object ref = admTime_;
    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();
      admTime_ = s;
      return s;
    }
  }
  /**
   * <code>string admTime = 3;</code>
   */
  public com.google.protobuf.ByteString
      getAdmTimeBytes() {
    java.lang.Object ref = admTime_;
    if (ref instanceof java.lang.String) {
      com.google.protobuf.ByteString b = 
          com.google.protobuf.ByteString.copyFromUtf8(
              (java.lang.String) ref);
      admTime_ = b;
      return b;
    } else {
      return (com.google.protobuf.ByteString) ref;
    }
  }

  public static final int REGISTRATIONDATE_FIELD_NUMBER = 4;
  private volatile java.lang.Object registrationDate_;
  /**
   * <code>string registrationDate = 4;</code>
   */
  public java.lang.String getRegistrationDate() {
    java.lang.Object ref = registrationDate_;
    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();
      registrationDate_ = s;
      return s;
    }
  }
  /**
   * <code>string registrationDate = 4;</code>
   */
  public com.google.protobuf.ByteString
      getRegistrationDateBytes() {
    java.lang.Object ref = registrationDate_;
    if (ref instanceof java.lang.String) {
      com.google.protobuf.ByteString b = 
          com.google.protobuf.ByteString.copyFromUtf8(
              (java.lang.String) ref);
      registrationDate_ = b;
      return b;
    } else {
      return (com.google.protobuf.ByteString) ref;
    }
  }

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

  public static final int ADMDOCTOR_FIELD_NUMBER = 6;
  private volatile java.lang.Object admDoctor_;
  /**
   * <code>string admDoctor = 6;</code>
   */
  public java.lang.String getAdmDoctor() {
    java.lang.Object ref = admDoctor_;
    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();
      admDoctor_ = s;
      return s;
    }
  }
  /**
   * <code>string admDoctor = 6;</code>
   */
  public com.google.protobuf.ByteString
      getAdmDoctorBytes() {
    java.lang.Object ref = admDoctor_;
    if (ref instanceof java.lang.String) {
      com.google.protobuf.ByteString b = 
          com.google.protobuf.ByteString.copyFromUtf8(
              (java.lang.String) ref);
      admDoctor_ = b;
      return b;
    } else {
      return (com.google.protobuf.ByteString) ref;
    }
  }

  public static final int ADMAMT_FIELD_NUMBER = 7;
  private volatile java.lang.Object admAmt_;
  /**
   * <code>string admAmt = 7;</code>
   */
  public java.lang.String getAdmAmt() {
    java.lang.Object ref = admAmt_;
    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();
      admAmt_ = s;
      return s;
    }
  }
  /**
   * <code>string admAmt = 7;</code>
   */
  public com.google.protobuf.ByteString
      getAdmAmtBytes() {
    java.lang.Object ref = admAmt_;
    if (ref instanceof java.lang.String) {
      com.google.protobuf.ByteString b = 
          com.google.protobuf.ByteString.copyFromUtf8(
              (java.lang.String) ref);
      admAmt_ = b;
      return b;
    } else {
      return (com.google.protobuf.ByteString) ref;
    }
  }

  public static final int BILLFLAG_FIELD_NUMBER = 8;
  private volatile java.lang.Object billFlag_;
  /**
   * <code>string billFlag = 8;</code>
   */
  public java.lang.String getBillFlag() {
    java.lang.Object ref = billFlag_;
    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();
      billFlag_ = s;
      return s;
    }
  }
  /**
   * <code>string billFlag = 8;</code>
   */
  public com.google.protobuf.ByteString
      getBillFlagBytes() {
    java.lang.Object ref = billFlag_;
    if (ref instanceof java.lang.String) {
      com.google.protobuf.ByteString b = 
          com.google.protobuf.ByteString.copyFromUtf8(
              (java.lang.String) ref);
      billFlag_ = b;
      return b;
    } else {
      return (com.google.protobuf.ByteString) ref;
    }
  }

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

    memoizedIsInitialized = 1;
    return true;
  }

  public void writeTo(com.google.protobuf.CodedOutputStream output)
                      throws java.io.IOException {
    if (!getRegistrationIDBytes().isEmpty()) {
      com.google.protobuf.GeneratedMessageV3.writeString(output, 1, registrationID_);
    }
    if (!getAdmitDateBytes().isEmpty()) {
      com.google.protobuf.GeneratedMessageV3.writeString(output, 2, admitDate_);
    }
    if (!getAdmTimeBytes().isEmpty()) {
      com.google.protobuf.GeneratedMessageV3.writeString(output, 3, admTime_);
    }
    if (!getRegistrationDateBytes().isEmpty()) {
      com.google.protobuf.GeneratedMessageV3.writeString(output, 4, registrationDate_);
    }
    if (!getAdmDeptBytes().isEmpty()) {
      com.google.protobuf.GeneratedMessageV3.writeString(output, 5, admDept_);
    }
    if (!getAdmDoctorBytes().isEmpty()) {
      com.google.protobuf.GeneratedMessageV3.writeString(output, 6, admDoctor_);
    }
    if (!getAdmAmtBytes().isEmpty()) {
      com.google.protobuf.GeneratedMessageV3.writeString(output, 7, admAmt_);
    }
    if (!getBillFlagBytes().isEmpty()) {
      com.google.protobuf.GeneratedMessageV3.writeString(output, 8, billFlag_);
    }
  }

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

    size = 0;
    if (!getRegistrationIDBytes().isEmpty()) {
      size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, registrationID_);
    }
    if (!getAdmitDateBytes().isEmpty()) {
      size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, admitDate_);
    }
    if (!getAdmTimeBytes().isEmpty()) {
      size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, admTime_);
    }
    if (!getRegistrationDateBytes().isEmpty()) {
      size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, registrationDate_);
    }
    if (!getAdmDeptBytes().isEmpty()) {
      size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, admDept_);
    }
    if (!getAdmDoctorBytes().isEmpty()) {
      size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, admDoctor_);
    }
    if (!getAdmAmtBytes().isEmpty()) {
      size += com.google.protobuf.GeneratedMessageV3.computeStringSize(7, admAmt_);
    }
    if (!getBillFlagBytes().isEmpty()) {
      size += com.google.protobuf.GeneratedMessageV3.computeStringSize(8, billFlag_);
    }
    memoizedSize = size;
    return size;
  }

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

    boolean result = true;
    result = result && getRegistrationID()
        .equals(other.getRegistrationID());
    result = result && getAdmitDate()
        .equals(other.getAdmitDate());
    result = result && getAdmTime()
        .equals(other.getAdmTime());
    result = result && getRegistrationDate()
        .equals(other.getRegistrationDate());
    result = result && getAdmDept()
        .equals(other.getAdmDept());
    result = result && getAdmDoctor()
        .equals(other.getAdmDoctor());
    result = result && getAdmAmt()
        .equals(other.getAdmAmt());
    result = result && getBillFlag()
        .equals(other.getBillFlag());
    return result;
  }

  @java.lang.Override
  public int hashCode() {
    if (memoizedHashCode != 0) {
      return memoizedHashCode;
    }
    int hash = 41;
    hash = (19 * hash) + getDescriptor().hashCode();
    hash = (37 * hash) + REGISTRATIONID_FIELD_NUMBER;
    hash = (53 * hash) + getRegistrationID().hashCode();
    hash = (37 * hash) + ADMITDATE_FIELD_NUMBER;
    hash = (53 * hash) + getAdmitDate().hashCode();
    hash = (37 * hash) + ADMTIME_FIELD_NUMBER;
    hash = (53 * hash) + getAdmTime().hashCode();
    hash = (37 * hash) + REGISTRATIONDATE_FIELD_NUMBER;
    hash = (53 * hash) + getRegistrationDate().hashCode();
    hash = (37 * hash) + ADMDEPT_FIELD_NUMBER;
    hash = (53 * hash) + getAdmDept().hashCode();
    hash = (37 * hash) + ADMDOCTOR_FIELD_NUMBER;
    hash = (53 * hash) + getAdmDoctor().hashCode();
    hash = (37 * hash) + ADMAMT_FIELD_NUMBER;
    hash = (53 * hash) + getAdmAmt().hashCode();
    hash = (37 * hash) + BILLFLAG_FIELD_NUMBER;
    hash = (53 * hash) + getBillFlag().hashCode();
    hash = (29 * hash) + unknownFields.hashCode();
    memoizedHashCode = hash;
    return hash;
  }

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

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

  @java.lang.Override
  protected Builder newBuilderForType(
      com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
    Builder builder = new Builder(parent);
    return builder;
  }
  /**
   * Protobuf type {@code com.ywt.gapi.third.taihe.ClinicItem}
   */
  public static final class Builder extends
      com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements
      // @@protoc_insertion_point(builder_implements:com.ywt.gapi.third.taihe.ClinicItem)
      com.ywt.gapi.third.taihe.ClinicItemOrBuilder {
    public static final com.google.protobuf.Descriptors.Descriptor
        getDescriptor() {
      return com.ywt.gapi.third.taihe.Taihe.internal_static_com_ywt_gapi_third_taihe_ClinicItem_descriptor;
    }

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

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

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

      admitDate_ = "";

      admTime_ = "";

      registrationDate_ = "";

      admDept_ = "";

      admDoctor_ = "";

      admAmt_ = "";

      billFlag_ = "";

      return this;
    }

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

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

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

    public com.ywt.gapi.third.taihe.ClinicItem buildPartial() {
      com.ywt.gapi.third.taihe.ClinicItem result = new com.ywt.gapi.third.taihe.ClinicItem(this);
      result.registrationID_ = registrationID_;
      result.admitDate_ = admitDate_;
      result.admTime_ = admTime_;
      result.registrationDate_ = registrationDate_;
      result.admDept_ = admDept_;
      result.admDoctor_ = admDoctor_;
      result.admAmt_ = admAmt_;
      result.billFlag_ = billFlag_;
      onBuilt();
      return result;
    }

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

    public Builder mergeFrom(com.ywt.gapi.third.taihe.ClinicItem other) {
      if (other == com.ywt.gapi.third.taihe.ClinicItem.getDefaultInstance()) return this;
      if (!other.getRegistrationID().isEmpty()) {
        registrationID_ = other.registrationID_;
        onChanged();
      }
      if (!other.getAdmitDate().isEmpty()) {
        admitDate_ = other.admitDate_;
        onChanged();
      }
      if (!other.getAdmTime().isEmpty()) {
        admTime_ = other.admTime_;
        onChanged();
      }
      if (!other.getRegistrationDate().isEmpty()) {
        registrationDate_ = other.registrationDate_;
        onChanged();
      }
      if (!other.getAdmDept().isEmpty()) {
        admDept_ = other.admDept_;
        onChanged();
      }
      if (!other.getAdmDoctor().isEmpty()) {
        admDoctor_ = other.admDoctor_;
        onChanged();
      }
      if (!other.getAdmAmt().isEmpty()) {
        admAmt_ = other.admAmt_;
        onChanged();
      }
      if (!other.getBillFlag().isEmpty()) {
        billFlag_ = other.billFlag_;
        onChanged();
      }
      onChanged();
      return this;
    }

    public final boolean isInitialized() {
      return true;
    }

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

    private java.lang.Object registrationID_ = "";
    /**
     * <code>string registrationID = 1;</code>
     */
    public java.lang.String getRegistrationID() {
      java.lang.Object ref = registrationID_;
      if (!(ref instanceof java.lang.String)) {
        com.google.protobuf.ByteString bs =
            (com.google.protobuf.ByteString) ref;
        java.lang.String s = bs.toStringUtf8();
        registrationID_ = s;
        return s;
      } else {
        return (java.lang.String) ref;
      }
    }
    /**
     * <code>string registrationID = 1;</code>
     */
    public com.google.protobuf.ByteString
        getRegistrationIDBytes() {
      java.lang.Object ref = registrationID_;
      if (ref instanceof String) {
        com.google.protobuf.ByteString b = 
            com.google.protobuf.ByteString.copyFromUtf8(
                (java.lang.String) ref);
        registrationID_ = b;
        return b;
      } else {
        return (com.google.protobuf.ByteString) ref;
      }
    }
    /**
     * <code>string registrationID = 1;</code>
     */
    public Builder setRegistrationID(
        java.lang.String value) {
      if (value == null) {
    throw new NullPointerException();
  }
  
      registrationID_ = value;
      onChanged();
      return this;
    }
    /**
     * <code>string registrationID = 1;</code>
     */
    public Builder clearRegistrationID() {
      
      registrationID_ = getDefaultInstance().getRegistrationID();
      onChanged();
      return this;
    }
    /**
     * <code>string registrationID = 1;</code>
     */
    public Builder setRegistrationIDBytes(
        com.google.protobuf.ByteString value) {
      if (value == null) {
    throw new NullPointerException();
  }
  checkByteStringIsUtf8(value);
      
      registrationID_ = value;
      onChanged();
      return this;
    }

    private java.lang.Object admitDate_ = "";
    /**
     * <code>string admitDate = 2;</code>
     */
    public java.lang.String getAdmitDate() {
      java.lang.Object ref = admitDate_;
      if (!(ref instanceof java.lang.String)) {
        com.google.protobuf.ByteString bs =
            (com.google.protobuf.ByteString) ref;
        java.lang.String s = bs.toStringUtf8();
        admitDate_ = s;
        return s;
      } else {
        return (java.lang.String) ref;
      }
    }
    /**
     * <code>string admitDate = 2;</code>
     */
    public com.google.protobuf.ByteString
        getAdmitDateBytes() {
      java.lang.Object ref = admitDate_;
      if (ref instanceof String) {
        com.google.protobuf.ByteString b = 
            com.google.protobuf.ByteString.copyFromUtf8(
                (java.lang.String) ref);
        admitDate_ = b;
        return b;
      } else {
        return (com.google.protobuf.ByteString) ref;
      }
    }
    /**
     * <code>string admitDate = 2;</code>
     */
    public Builder setAdmitDate(
        java.lang.String value) {
      if (value == null) {
    throw new NullPointerException();
  }
  
      admitDate_ = value;
      onChanged();
      return this;
    }
    /**
     * <code>string admitDate = 2;</code>
     */
    public Builder clearAdmitDate() {
      
      admitDate_ = getDefaultInstance().getAdmitDate();
      onChanged();
      return this;
    }
    /**
     * <code>string admitDate = 2;</code>
     */
    public Builder setAdmitDateBytes(
        com.google.protobuf.ByteString value) {
      if (value == null) {
    throw new NullPointerException();
  }
  checkByteStringIsUtf8(value);
      
      admitDate_ = value;
      onChanged();
      return this;
    }

    private java.lang.Object admTime_ = "";
    /**
     * <code>string admTime = 3;</code>
     */
    public java.lang.String getAdmTime() {
      java.lang.Object ref = admTime_;
      if (!(ref instanceof java.lang.String)) {
        com.google.protobuf.ByteString bs =
            (com.google.protobuf.ByteString) ref;
        java.lang.String s = bs.toStringUtf8();
        admTime_ = s;
        return s;
      } else {
        return (java.lang.String) ref;
      }
    }
    /**
     * <code>string admTime = 3;</code>
     */
    public com.google.protobuf.ByteString
        getAdmTimeBytes() {
      java.lang.Object ref = admTime_;
      if (ref instanceof String) {
        com.google.protobuf.ByteString b = 
            com.google.protobuf.ByteString.copyFromUtf8(
                (java.lang.String) ref);
        admTime_ = b;
        return b;
      } else {
        return (com.google.protobuf.ByteString) ref;
      }
    }
    /**
     * <code>string admTime = 3;</code>
     */
    public Builder setAdmTime(
        java.lang.String value) {
      if (value == null) {
    throw new NullPointerException();
  }
  
      admTime_ = value;
      onChanged();
      return this;
    }
    /**
     * <code>string admTime = 3;</code>
     */
    public Builder clearAdmTime() {
      
      admTime_ = getDefaultInstance().getAdmTime();
      onChanged();
      return this;
    }
    /**
     * <code>string admTime = 3;</code>
     */
    public Builder setAdmTimeBytes(
        com.google.protobuf.ByteString value) {
      if (value == null) {
    throw new NullPointerException();
  }
  checkByteStringIsUtf8(value);
      
      admTime_ = value;
      onChanged();
      return this;
    }

    private java.lang.Object registrationDate_ = "";
    /**
     * <code>string registrationDate = 4;</code>
     */
    public java.lang.String getRegistrationDate() {
      java.lang.Object ref = registrationDate_;
      if (!(ref instanceof java.lang.String)) {
        com.google.protobuf.ByteString bs =
            (com.google.protobuf.ByteString) ref;
        java.lang.String s = bs.toStringUtf8();
        registrationDate_ = s;
        return s;
      } else {
        return (java.lang.String) ref;
      }
    }
    /**
     * <code>string registrationDate = 4;</code>
     */
    public com.google.protobuf.ByteString
        getRegistrationDateBytes() {
      java.lang.Object ref = registrationDate_;
      if (ref instanceof String) {
        com.google.protobuf.ByteString b = 
            com.google.protobuf.ByteString.copyFromUtf8(
                (java.lang.String) ref);
        registrationDate_ = b;
        return b;
      } else {
        return (com.google.protobuf.ByteString) ref;
      }
    }
    /**
     * <code>string registrationDate = 4;</code>
     */
    public Builder setRegistrationDate(
        java.lang.String value) {
      if (value == null) {
    throw new NullPointerException();
  }
  
      registrationDate_ = value;
      onChanged();
      return this;
    }
    /**
     * <code>string registrationDate = 4;</code>
     */
    public Builder clearRegistrationDate() {
      
      registrationDate_ = getDefaultInstance().getRegistrationDate();
      onChanged();
      return this;
    }
    /**
     * <code>string registrationDate = 4;</code>
     */
    public Builder setRegistrationDateBytes(
        com.google.protobuf.ByteString value) {
      if (value == null) {
    throw new NullPointerException();
  }
  checkByteStringIsUtf8(value);
      
      registrationDate_ = value;
      onChanged();
      return this;
    }

    private java.lang.Object admDept_ = "";
    /**
     * <code>string admDept = 5;</code>
     */
    public java.lang.String getAdmDept() {
      java.lang.Object ref = admDept_;
      if (!(ref instanceof java.lang.String)) {
        com.google.protobuf.ByteString bs =
            (com.google.protobuf.ByteString) ref;
        java.lang.String s = bs.toStringUtf8();
        admDept_ = s;
        return s;
      } else {
        return (java.lang.String) ref;
      }
    }
    /**
     * <code>string admDept = 5;</code>
     */
    public com.google.protobuf.ByteString
        getAdmDeptBytes() {
      java.lang.Object ref = admDept_;
      if (ref instanceof String) {
        com.google.protobuf.ByteString b = 
            com.google.protobuf.ByteString.copyFromUtf8(
                (java.lang.String) ref);
        admDept_ = b;
        return b;
      } else {
        return (com.google.protobuf.ByteString) ref;
      }
    }
    /**
     * <code>string admDept = 5;</code>
     */
    public Builder setAdmDept(
        java.lang.String value) {
      if (value == null) {
    throw new NullPointerException();
  }
  
      admDept_ = value;
      onChanged();
      return this;
    }
    /**
     * <code>string admDept = 5;</code>
     */
    public Builder clearAdmDept() {
      
      admDept_ = getDefaultInstance().getAdmDept();
      onChanged();
      return this;
    }
    /**
     * <code>string admDept = 5;</code>
     */
    public Builder setAdmDeptBytes(
        com.google.protobuf.ByteString value) {
      if (value == null) {
    throw new NullPointerException();
  }
  checkByteStringIsUtf8(value);
      
      admDept_ = value;
      onChanged();
      return this;
    }

    private java.lang.Object admDoctor_ = "";
    /**
     * <code>string admDoctor = 6;</code>
     */
    public java.lang.String getAdmDoctor() {
      java.lang.Object ref = admDoctor_;
      if (!(ref instanceof java.lang.String)) {
        com.google.protobuf.ByteString bs =
            (com.google.protobuf.ByteString) ref;
        java.lang.String s = bs.toStringUtf8();
        admDoctor_ = s;
        return s;
      } else {
        return (java.lang.String) ref;
      }
    }
    /**
     * <code>string admDoctor = 6;</code>
     */
    public com.google.protobuf.ByteString
        getAdmDoctorBytes() {
      java.lang.Object ref = admDoctor_;
      if (ref instanceof String) {
        com.google.protobuf.ByteString b = 
            com.google.protobuf.ByteString.copyFromUtf8(
                (java.lang.String) ref);
        admDoctor_ = b;
        return b;
      } else {
        return (com.google.protobuf.ByteString) ref;
      }
    }
    /**
     * <code>string admDoctor = 6;</code>
     */
    public Builder setAdmDoctor(
        java.lang.String value) {
      if (value == null) {
    throw new NullPointerException();
  }
  
      admDoctor_ = value;
      onChanged();
      return this;
    }
    /**
     * <code>string admDoctor = 6;</code>
     */
    public Builder clearAdmDoctor() {
      
      admDoctor_ = getDefaultInstance().getAdmDoctor();
      onChanged();
      return this;
    }
    /**
     * <code>string admDoctor = 6;</code>
     */
    public Builder setAdmDoctorBytes(
        com.google.protobuf.ByteString value) {
      if (value == null) {
    throw new NullPointerException();
  }
  checkByteStringIsUtf8(value);
      
      admDoctor_ = value;
      onChanged();
      return this;
    }

    private java.lang.Object admAmt_ = "";
    /**
     * <code>string admAmt = 7;</code>
     */
    public java.lang.String getAdmAmt() {
      java.lang.Object ref = admAmt_;
      if (!(ref instanceof java.lang.String)) {
        com.google.protobuf.ByteString bs =
            (com.google.protobuf.ByteString) ref;
        java.lang.String s = bs.toStringUtf8();
        admAmt_ = s;
        return s;
      } else {
        return (java.lang.String) ref;
      }
    }
    /**
     * <code>string admAmt = 7;</code>
     */
    public com.google.protobuf.ByteString
        getAdmAmtBytes() {
      java.lang.Object ref = admAmt_;
      if (ref instanceof String) {
        com.google.protobuf.ByteString b = 
            com.google.protobuf.ByteString.copyFromUtf8(
                (java.lang.String) ref);
        admAmt_ = b;
        return b;
      } else {
        return (com.google.protobuf.ByteString) ref;
      }
    }
    /**
     * <code>string admAmt = 7;</code>
     */
    public Builder setAdmAmt(
        java.lang.String value) {
      if (value == null) {
    throw new NullPointerException();
  }
  
      admAmt_ = value;
      onChanged();
      return this;
    }
    /**
     * <code>string admAmt = 7;</code>
     */
    public Builder clearAdmAmt() {
      
      admAmt_ = getDefaultInstance().getAdmAmt();
      onChanged();
      return this;
    }
    /**
     * <code>string admAmt = 7;</code>
     */
    public Builder setAdmAmtBytes(
        com.google.protobuf.ByteString value) {
      if (value == null) {
    throw new NullPointerException();
  }
  checkByteStringIsUtf8(value);
      
      admAmt_ = value;
      onChanged();
      return this;
    }

    private java.lang.Object billFlag_ = "";
    /**
     * <code>string billFlag = 8;</code>
     */
    public java.lang.String getBillFlag() {
      java.lang.Object ref = billFlag_;
      if (!(ref instanceof java.lang.String)) {
        com.google.protobuf.ByteString bs =
            (com.google.protobuf.ByteString) ref;
        java.lang.String s = bs.toStringUtf8();
        billFlag_ = s;
        return s;
      } else {
        return (java.lang.String) ref;
      }
    }
    /**
     * <code>string billFlag = 8;</code>
     */
    public com.google.protobuf.ByteString
        getBillFlagBytes() {
      java.lang.Object ref = billFlag_;
      if (ref instanceof String) {
        com.google.protobuf.ByteString b = 
            com.google.protobuf.ByteString.copyFromUtf8(
                (java.lang.String) ref);
        billFlag_ = b;
        return b;
      } else {
        return (com.google.protobuf.ByteString) ref;
      }
    }
    /**
     * <code>string billFlag = 8;</code>
     */
    public Builder setBillFlag(
        java.lang.String value) {
      if (value == null) {
    throw new NullPointerException();
  }
  
      billFlag_ = value;
      onChanged();
      return this;
    }
    /**
     * <code>string billFlag = 8;</code>
     */
    public Builder clearBillFlag() {
      
      billFlag_ = getDefaultInstance().getBillFlag();
      onChanged();
      return this;
    }
    /**
     * <code>string billFlag = 8;</code>
     */
    public Builder setBillFlagBytes(
        com.google.protobuf.ByteString value) {
      if (value == null) {
    throw new NullPointerException();
  }
  checkByteStringIsUtf8(value);
      
      billFlag_ = value;
      onChanged();
      return this;
    }
    public final Builder setUnknownFields(
        final com.google.protobuf.UnknownFieldSet unknownFields) {
      return this;
    }

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


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

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

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

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

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

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

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

}

