// 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.LaboratoryDetail}
 */
public  final class LaboratoryDetail extends
    com.google.protobuf.GeneratedMessageV3 implements
    // @@protoc_insertion_point(message_implements:com.ywt.gapi.third.taihe.LaboratoryDetail)
    LaboratoryDetailOrBuilder {
  // Use LaboratoryDetail.newBuilder() to construct.
  private LaboratoryDetail(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {
    super(builder);
  }
  private LaboratoryDetail() {
    itemId_ = "";
    itemName_ = "";
    orderNo_ = 0;
    testResult_ = "";
    unit_ = "";
    itemRef_ = "";
    testDate_ = "";
    testEngName_ = "";
    specimType_ = "";
    resultFlag_ = 0;
  }

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

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

            itemName_ = s;
            break;
          }
          case 24: {

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

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

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

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

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

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

            specimType_ = s;
            break;
          }
          case 80: {

            resultFlag_ = input.readInt32();
            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_LaboratoryDetail_descriptor;
  }

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

  public static final int ITEMID_FIELD_NUMBER = 1;
  private volatile java.lang.Object itemId_;
  /**
   * <pre>
   *检验指标代码
   * </pre>
   *
   * <code>string itemId = 1;</code>
   */
  public java.lang.String getItemId() {
    java.lang.Object ref = itemId_;
    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();
      itemId_ = s;
      return s;
    }
  }
  /**
   * <pre>
   *检验指标代码
   * </pre>
   *
   * <code>string itemId = 1;</code>
   */
  public com.google.protobuf.ByteString
      getItemIdBytes() {
    java.lang.Object ref = itemId_;
    if (ref instanceof java.lang.String) {
      com.google.protobuf.ByteString b = 
          com.google.protobuf.ByteString.copyFromUtf8(
              (java.lang.String) ref);
      itemId_ = b;
      return b;
    } else {
      return (com.google.protobuf.ByteString) ref;
    }
  }

  public static final int ITEMNAME_FIELD_NUMBER = 2;
  private volatile java.lang.Object itemName_;
  /**
   * <pre>
   *检验指标中文名称
   * </pre>
   *
   * <code>string itemName = 2;</code>
   */
  public java.lang.String getItemName() {
    java.lang.Object ref = itemName_;
    if (ref instanceof java.lang.String) {
      return (java.lang.String) ref;
    } else {
      com.google.protobuf.ByteString bs = 
          (com.google.protobuf.ByteString) ref;
      java.lang.String s = bs.toStringUtf8();
      itemName_ = s;
      return s;
    }
  }
  /**
   * <pre>
   *检验指标中文名称
   * </pre>
   *
   * <code>string itemName = 2;</code>
   */
  public com.google.protobuf.ByteString
      getItemNameBytes() {
    java.lang.Object ref = itemName_;
    if (ref instanceof java.lang.String) {
      com.google.protobuf.ByteString b = 
          com.google.protobuf.ByteString.copyFromUtf8(
              (java.lang.String) ref);
      itemName_ = b;
      return b;
    } else {
      return (com.google.protobuf.ByteString) ref;
    }
  }

  public static final int ORDERNO_FIELD_NUMBER = 3;
  private int orderNo_;
  /**
   * <pre>
   *排序号，不需要排序的话可设成全部为0
   * </pre>
   *
   * <code>int32 orderNo = 3;</code>
   */
  public int getOrderNo() {
    return orderNo_;
  }

  public static final int TESTRESULT_FIELD_NUMBER = 4;
  private volatile java.lang.Object testResult_;
  /**
   * <pre>
   *检测结果
   * </pre>
   *
   * <code>string testResult = 4;</code>
   */
  public java.lang.String getTestResult() {
    java.lang.Object ref = testResult_;
    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();
      testResult_ = s;
      return s;
    }
  }
  /**
   * <pre>
   *检测结果
   * </pre>
   *
   * <code>string testResult = 4;</code>
   */
  public com.google.protobuf.ByteString
      getTestResultBytes() {
    java.lang.Object ref = testResult_;
    if (ref instanceof java.lang.String) {
      com.google.protobuf.ByteString b = 
          com.google.protobuf.ByteString.copyFromUtf8(
              (java.lang.String) ref);
      testResult_ = b;
      return b;
    } else {
      return (com.google.protobuf.ByteString) ref;
    }
  }

  public static final int UNIT_FIELD_NUMBER = 5;
  private volatile java.lang.Object unit_;
  /**
   * <pre>
   *检测结果单位
   * </pre>
   *
   * <code>string unit = 5;</code>
   */
  public java.lang.String getUnit() {
    java.lang.Object ref = unit_;
    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();
      unit_ = s;
      return s;
    }
  }
  /**
   * <pre>
   *检测结果单位
   * </pre>
   *
   * <code>string unit = 5;</code>
   */
  public com.google.protobuf.ByteString
      getUnitBytes() {
    java.lang.Object ref = unit_;
    if (ref instanceof java.lang.String) {
      com.google.protobuf.ByteString b = 
          com.google.protobuf.ByteString.copyFromUtf8(
              (java.lang.String) ref);
      unit_ = b;
      return b;
    } else {
      return (com.google.protobuf.ByteString) ref;
    }
  }

  public static final int ITEMREF_FIELD_NUMBER = 6;
  private volatile java.lang.Object itemRef_;
  /**
   * <pre>
   *参考值范围
   * </pre>
   *
   * <code>string itemRef = 6;</code>
   */
  public java.lang.String getItemRef() {
    java.lang.Object ref = itemRef_;
    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();
      itemRef_ = s;
      return s;
    }
  }
  /**
   * <pre>
   *参考值范围
   * </pre>
   *
   * <code>string itemRef = 6;</code>
   */
  public com.google.protobuf.ByteString
      getItemRefBytes() {
    java.lang.Object ref = itemRef_;
    if (ref instanceof java.lang.String) {
      com.google.protobuf.ByteString b = 
          com.google.protobuf.ByteString.copyFromUtf8(
              (java.lang.String) ref);
      itemRef_ = b;
      return b;
    } else {
      return (com.google.protobuf.ByteString) ref;
    }
  }

  public static final int TESTDATE_FIELD_NUMBER = 7;
  private volatile java.lang.Object testDate_;
  /**
   * <pre>
   *检查日期（YYYY-MM-DD HH:MM:SS）
   * </pre>
   *
   * <code>string testDate = 7;</code>
   */
  public java.lang.String getTestDate() {
    java.lang.Object ref = testDate_;
    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();
      testDate_ = s;
      return s;
    }
  }
  /**
   * <pre>
   *检查日期（YYYY-MM-DD HH:MM:SS）
   * </pre>
   *
   * <code>string testDate = 7;</code>
   */
  public com.google.protobuf.ByteString
      getTestDateBytes() {
    java.lang.Object ref = testDate_;
    if (ref instanceof java.lang.String) {
      com.google.protobuf.ByteString b = 
          com.google.protobuf.ByteString.copyFromUtf8(
              (java.lang.String) ref);
      testDate_ = b;
      return b;
    } else {
      return (com.google.protobuf.ByteString) ref;
    }
  }

  public static final int TESTENGNAME_FIELD_NUMBER = 8;
  private volatile java.lang.Object testEngName_;
  /**
   * <pre>
   *检验指标英文名称
   * </pre>
   *
   * <code>string testEngName = 8;</code>
   */
  public java.lang.String getTestEngName() {
    java.lang.Object ref = testEngName_;
    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();
      testEngName_ = s;
      return s;
    }
  }
  /**
   * <pre>
   *检验指标英文名称
   * </pre>
   *
   * <code>string testEngName = 8;</code>
   */
  public com.google.protobuf.ByteString
      getTestEngNameBytes() {
    java.lang.Object ref = testEngName_;
    if (ref instanceof java.lang.String) {
      com.google.protobuf.ByteString b = 
          com.google.protobuf.ByteString.copyFromUtf8(
              (java.lang.String) ref);
      testEngName_ = b;
      return b;
    } else {
      return (com.google.protobuf.ByteString) ref;
    }
  }

  public static final int SPECIMTYPE_FIELD_NUMBER = 9;
  private volatile java.lang.Object specimType_;
  /**
   * <pre>
   *检验标本
   * </pre>
   *
   * <code>string specimType = 9;</code>
   */
  public java.lang.String getSpecimType() {
    java.lang.Object ref = specimType_;
    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();
      specimType_ = s;
      return s;
    }
  }
  /**
   * <pre>
   *检验标本
   * </pre>
   *
   * <code>string specimType = 9;</code>
   */
  public com.google.protobuf.ByteString
      getSpecimTypeBytes() {
    java.lang.Object ref = specimType_;
    if (ref instanceof java.lang.String) {
      com.google.protobuf.ByteString b = 
          com.google.protobuf.ByteString.copyFromUtf8(
              (java.lang.String) ref);
      specimType_ = b;
      return b;
    } else {
      return (com.google.protobuf.ByteString) ref;
    }
  }

  public static final int RESULTFLAG_FIELD_NUMBER = 10;
  private int resultFlag_;
  /**
   * <pre>
   *异常标识
   * </pre>
   *
   * <code>int32 resultFlag = 10;</code>
   */
  public int getResultFlag() {
    return resultFlag_;
  }

  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 (!getItemIdBytes().isEmpty()) {
      com.google.protobuf.GeneratedMessageV3.writeString(output, 1, itemId_);
    }
    if (!getItemNameBytes().isEmpty()) {
      com.google.protobuf.GeneratedMessageV3.writeString(output, 2, itemName_);
    }
    if (orderNo_ != 0) {
      output.writeInt32(3, orderNo_);
    }
    if (!getTestResultBytes().isEmpty()) {
      com.google.protobuf.GeneratedMessageV3.writeString(output, 4, testResult_);
    }
    if (!getUnitBytes().isEmpty()) {
      com.google.protobuf.GeneratedMessageV3.writeString(output, 5, unit_);
    }
    if (!getItemRefBytes().isEmpty()) {
      com.google.protobuf.GeneratedMessageV3.writeString(output, 6, itemRef_);
    }
    if (!getTestDateBytes().isEmpty()) {
      com.google.protobuf.GeneratedMessageV3.writeString(output, 7, testDate_);
    }
    if (!getTestEngNameBytes().isEmpty()) {
      com.google.protobuf.GeneratedMessageV3.writeString(output, 8, testEngName_);
    }
    if (!getSpecimTypeBytes().isEmpty()) {
      com.google.protobuf.GeneratedMessageV3.writeString(output, 9, specimType_);
    }
    if (resultFlag_ != 0) {
      output.writeInt32(10, resultFlag_);
    }
  }

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

    size = 0;
    if (!getItemIdBytes().isEmpty()) {
      size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, itemId_);
    }
    if (!getItemNameBytes().isEmpty()) {
      size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, itemName_);
    }
    if (orderNo_ != 0) {
      size += com.google.protobuf.CodedOutputStream
        .computeInt32Size(3, orderNo_);
    }
    if (!getTestResultBytes().isEmpty()) {
      size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, testResult_);
    }
    if (!getUnitBytes().isEmpty()) {
      size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, unit_);
    }
    if (!getItemRefBytes().isEmpty()) {
      size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, itemRef_);
    }
    if (!getTestDateBytes().isEmpty()) {
      size += com.google.protobuf.GeneratedMessageV3.computeStringSize(7, testDate_);
    }
    if (!getTestEngNameBytes().isEmpty()) {
      size += com.google.protobuf.GeneratedMessageV3.computeStringSize(8, testEngName_);
    }
    if (!getSpecimTypeBytes().isEmpty()) {
      size += com.google.protobuf.GeneratedMessageV3.computeStringSize(9, specimType_);
    }
    if (resultFlag_ != 0) {
      size += com.google.protobuf.CodedOutputStream
        .computeInt32Size(10, resultFlag_);
    }
    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.LaboratoryDetail)) {
      return super.equals(obj);
    }
    com.ywt.gapi.third.taihe.LaboratoryDetail other = (com.ywt.gapi.third.taihe.LaboratoryDetail) obj;

    boolean result = true;
    result = result && getItemId()
        .equals(other.getItemId());
    result = result && getItemName()
        .equals(other.getItemName());
    result = result && (getOrderNo()
        == other.getOrderNo());
    result = result && getTestResult()
        .equals(other.getTestResult());
    result = result && getUnit()
        .equals(other.getUnit());
    result = result && getItemRef()
        .equals(other.getItemRef());
    result = result && getTestDate()
        .equals(other.getTestDate());
    result = result && getTestEngName()
        .equals(other.getTestEngName());
    result = result && getSpecimType()
        .equals(other.getSpecimType());
    result = result && (getResultFlag()
        == other.getResultFlag());
    return result;
  }

  @java.lang.Override
  public int hashCode() {
    if (memoizedHashCode != 0) {
      return memoizedHashCode;
    }
    int hash = 41;
    hash = (19 * hash) + getDescriptor().hashCode();
    hash = (37 * hash) + ITEMID_FIELD_NUMBER;
    hash = (53 * hash) + getItemId().hashCode();
    hash = (37 * hash) + ITEMNAME_FIELD_NUMBER;
    hash = (53 * hash) + getItemName().hashCode();
    hash = (37 * hash) + ORDERNO_FIELD_NUMBER;
    hash = (53 * hash) + getOrderNo();
    hash = (37 * hash) + TESTRESULT_FIELD_NUMBER;
    hash = (53 * hash) + getTestResult().hashCode();
    hash = (37 * hash) + UNIT_FIELD_NUMBER;
    hash = (53 * hash) + getUnit().hashCode();
    hash = (37 * hash) + ITEMREF_FIELD_NUMBER;
    hash = (53 * hash) + getItemRef().hashCode();
    hash = (37 * hash) + TESTDATE_FIELD_NUMBER;
    hash = (53 * hash) + getTestDate().hashCode();
    hash = (37 * hash) + TESTENGNAME_FIELD_NUMBER;
    hash = (53 * hash) + getTestEngName().hashCode();
    hash = (37 * hash) + SPECIMTYPE_FIELD_NUMBER;
    hash = (53 * hash) + getSpecimType().hashCode();
    hash = (37 * hash) + RESULTFLAG_FIELD_NUMBER;
    hash = (53 * hash) + getResultFlag();
    hash = (29 * hash) + unknownFields.hashCode();
    memoizedHashCode = hash;
    return hash;
  }

  public static com.ywt.gapi.third.taihe.LaboratoryDetail parseFrom(
      java.nio.ByteBuffer data)
      throws com.google.protobuf.InvalidProtocolBufferException {
    return PARSER.parseFrom(data);
  }
  public static com.ywt.gapi.third.taihe.LaboratoryDetail 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.LaboratoryDetail parseFrom(
      com.google.protobuf.ByteString data)
      throws com.google.protobuf.InvalidProtocolBufferException {
    return PARSER.parseFrom(data);
  }
  public static com.ywt.gapi.third.taihe.LaboratoryDetail 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.LaboratoryDetail parseFrom(byte[] data)
      throws com.google.protobuf.InvalidProtocolBufferException {
    return PARSER.parseFrom(data);
  }
  public static com.ywt.gapi.third.taihe.LaboratoryDetail 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.LaboratoryDetail parseFrom(java.io.InputStream input)
      throws java.io.IOException {
    return com.google.protobuf.GeneratedMessageV3
        .parseWithIOException(PARSER, input);
  }
  public static com.ywt.gapi.third.taihe.LaboratoryDetail 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.LaboratoryDetail parseDelimitedFrom(java.io.InputStream input)
      throws java.io.IOException {
    return com.google.protobuf.GeneratedMessageV3
        .parseDelimitedWithIOException(PARSER, input);
  }
  public static com.ywt.gapi.third.taihe.LaboratoryDetail 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.LaboratoryDetail 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.LaboratoryDetail 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.LaboratoryDetail prototype) {
    return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
  }
  public Builder toBuilder() {
    return this == DEFAULT_INSTANCE
        ? new Builder() : new Builder().mergeFrom(this);
  }

  @java.lang.Override
  protected Builder newBuilderForType(
      com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
    Builder builder = new Builder(parent);
    return builder;
  }
  /**
   * <pre>
   *化验报告详情
   * </pre>
   *
   * Protobuf type {@code com.ywt.gapi.third.taihe.LaboratoryDetail}
   */
  public static final class Builder extends
      com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements
      // @@protoc_insertion_point(builder_implements:com.ywt.gapi.third.taihe.LaboratoryDetail)
      com.ywt.gapi.third.taihe.LaboratoryDetailOrBuilder {
    public static final com.google.protobuf.Descriptors.Descriptor
        getDescriptor() {
      return com.ywt.gapi.third.taihe.Taihe.internal_static_com_ywt_gapi_third_taihe_LaboratoryDetail_descriptor;
    }

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

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

      itemName_ = "";

      orderNo_ = 0;

      testResult_ = "";

      unit_ = "";

      itemRef_ = "";

      testDate_ = "";

      testEngName_ = "";

      specimType_ = "";

      resultFlag_ = 0;

      return this;
    }

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

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

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

    public com.ywt.gapi.third.taihe.LaboratoryDetail buildPartial() {
      com.ywt.gapi.third.taihe.LaboratoryDetail result = new com.ywt.gapi.third.taihe.LaboratoryDetail(this);
      result.itemId_ = itemId_;
      result.itemName_ = itemName_;
      result.orderNo_ = orderNo_;
      result.testResult_ = testResult_;
      result.unit_ = unit_;
      result.itemRef_ = itemRef_;
      result.testDate_ = testDate_;
      result.testEngName_ = testEngName_;
      result.specimType_ = specimType_;
      result.resultFlag_ = resultFlag_;
      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.LaboratoryDetail) {
        return mergeFrom((com.ywt.gapi.third.taihe.LaboratoryDetail)other);
      } else {
        super.mergeFrom(other);
        return this;
      }
    }

    public Builder mergeFrom(com.ywt.gapi.third.taihe.LaboratoryDetail other) {
      if (other == com.ywt.gapi.third.taihe.LaboratoryDetail.getDefaultInstance()) return this;
      if (!other.getItemId().isEmpty()) {
        itemId_ = other.itemId_;
        onChanged();
      }
      if (!other.getItemName().isEmpty()) {
        itemName_ = other.itemName_;
        onChanged();
      }
      if (other.getOrderNo() != 0) {
        setOrderNo(other.getOrderNo());
      }
      if (!other.getTestResult().isEmpty()) {
        testResult_ = other.testResult_;
        onChanged();
      }
      if (!other.getUnit().isEmpty()) {
        unit_ = other.unit_;
        onChanged();
      }
      if (!other.getItemRef().isEmpty()) {
        itemRef_ = other.itemRef_;
        onChanged();
      }
      if (!other.getTestDate().isEmpty()) {
        testDate_ = other.testDate_;
        onChanged();
      }
      if (!other.getTestEngName().isEmpty()) {
        testEngName_ = other.testEngName_;
        onChanged();
      }
      if (!other.getSpecimType().isEmpty()) {
        specimType_ = other.specimType_;
        onChanged();
      }
      if (other.getResultFlag() != 0) {
        setResultFlag(other.getResultFlag());
      }
      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.LaboratoryDetail parsedMessage = null;
      try {
        parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
      } catch (com.google.protobuf.InvalidProtocolBufferException e) {
        parsedMessage = (com.ywt.gapi.third.taihe.LaboratoryDetail) e.getUnfinishedMessage();
        throw e.unwrapIOException();
      } finally {
        if (parsedMessage != null) {
          mergeFrom(parsedMessage);
        }
      }
      return this;
    }

    private java.lang.Object itemId_ = "";
    /**
     * <pre>
     *检验指标代码
     * </pre>
     *
     * <code>string itemId = 1;</code>
     */
    public java.lang.String getItemId() {
      java.lang.Object ref = itemId_;
      if (!(ref instanceof java.lang.String)) {
        com.google.protobuf.ByteString bs =
            (com.google.protobuf.ByteString) ref;
        java.lang.String s = bs.toStringUtf8();
        itemId_ = s;
        return s;
      } else {
        return (java.lang.String) ref;
      }
    }
    /**
     * <pre>
     *检验指标代码
     * </pre>
     *
     * <code>string itemId = 1;</code>
     */
    public com.google.protobuf.ByteString
        getItemIdBytes() {
      java.lang.Object ref = itemId_;
      if (ref instanceof String) {
        com.google.protobuf.ByteString b = 
            com.google.protobuf.ByteString.copyFromUtf8(
                (java.lang.String) ref);
        itemId_ = b;
        return b;
      } else {
        return (com.google.protobuf.ByteString) ref;
      }
    }
    /**
     * <pre>
     *检验指标代码
     * </pre>
     *
     * <code>string itemId = 1;</code>
     */
    public Builder setItemId(
        java.lang.String value) {
      if (value == null) {
    throw new NullPointerException();
  }
  
      itemId_ = value;
      onChanged();
      return this;
    }
    /**
     * <pre>
     *检验指标代码
     * </pre>
     *
     * <code>string itemId = 1;</code>
     */
    public Builder clearItemId() {
      
      itemId_ = getDefaultInstance().getItemId();
      onChanged();
      return this;
    }
    /**
     * <pre>
     *检验指标代码
     * </pre>
     *
     * <code>string itemId = 1;</code>
     */
    public Builder setItemIdBytes(
        com.google.protobuf.ByteString value) {
      if (value == null) {
    throw new NullPointerException();
  }
  checkByteStringIsUtf8(value);
      
      itemId_ = value;
      onChanged();
      return this;
    }

    private java.lang.Object itemName_ = "";
    /**
     * <pre>
     *检验指标中文名称
     * </pre>
     *
     * <code>string itemName = 2;</code>
     */
    public java.lang.String getItemName() {
      java.lang.Object ref = itemName_;
      if (!(ref instanceof java.lang.String)) {
        com.google.protobuf.ByteString bs =
            (com.google.protobuf.ByteString) ref;
        java.lang.String s = bs.toStringUtf8();
        itemName_ = s;
        return s;
      } else {
        return (java.lang.String) ref;
      }
    }
    /**
     * <pre>
     *检验指标中文名称
     * </pre>
     *
     * <code>string itemName = 2;</code>
     */
    public com.google.protobuf.ByteString
        getItemNameBytes() {
      java.lang.Object ref = itemName_;
      if (ref instanceof String) {
        com.google.protobuf.ByteString b = 
            com.google.protobuf.ByteString.copyFromUtf8(
                (java.lang.String) ref);
        itemName_ = b;
        return b;
      } else {
        return (com.google.protobuf.ByteString) ref;
      }
    }
    /**
     * <pre>
     *检验指标中文名称
     * </pre>
     *
     * <code>string itemName = 2;</code>
     */
    public Builder setItemName(
        java.lang.String value) {
      if (value == null) {
    throw new NullPointerException();
  }
  
      itemName_ = value;
      onChanged();
      return this;
    }
    /**
     * <pre>
     *检验指标中文名称
     * </pre>
     *
     * <code>string itemName = 2;</code>
     */
    public Builder clearItemName() {
      
      itemName_ = getDefaultInstance().getItemName();
      onChanged();
      return this;
    }
    /**
     * <pre>
     *检验指标中文名称
     * </pre>
     *
     * <code>string itemName = 2;</code>
     */
    public Builder setItemNameBytes(
        com.google.protobuf.ByteString value) {
      if (value == null) {
    throw new NullPointerException();
  }
  checkByteStringIsUtf8(value);
      
      itemName_ = value;
      onChanged();
      return this;
    }

    private int orderNo_ ;
    /**
     * <pre>
     *排序号，不需要排序的话可设成全部为0
     * </pre>
     *
     * <code>int32 orderNo = 3;</code>
     */
    public int getOrderNo() {
      return orderNo_;
    }
    /**
     * <pre>
     *排序号，不需要排序的话可设成全部为0
     * </pre>
     *
     * <code>int32 orderNo = 3;</code>
     */
    public Builder setOrderNo(int value) {
      
      orderNo_ = value;
      onChanged();
      return this;
    }
    /**
     * <pre>
     *排序号，不需要排序的话可设成全部为0
     * </pre>
     *
     * <code>int32 orderNo = 3;</code>
     */
    public Builder clearOrderNo() {
      
      orderNo_ = 0;
      onChanged();
      return this;
    }

    private java.lang.Object testResult_ = "";
    /**
     * <pre>
     *检测结果
     * </pre>
     *
     * <code>string testResult = 4;</code>
     */
    public java.lang.String getTestResult() {
      java.lang.Object ref = testResult_;
      if (!(ref instanceof java.lang.String)) {
        com.google.protobuf.ByteString bs =
            (com.google.protobuf.ByteString) ref;
        java.lang.String s = bs.toStringUtf8();
        testResult_ = s;
        return s;
      } else {
        return (java.lang.String) ref;
      }
    }
    /**
     * <pre>
     *检测结果
     * </pre>
     *
     * <code>string testResult = 4;</code>
     */
    public com.google.protobuf.ByteString
        getTestResultBytes() {
      java.lang.Object ref = testResult_;
      if (ref instanceof String) {
        com.google.protobuf.ByteString b = 
            com.google.protobuf.ByteString.copyFromUtf8(
                (java.lang.String) ref);
        testResult_ = b;
        return b;
      } else {
        return (com.google.protobuf.ByteString) ref;
      }
    }
    /**
     * <pre>
     *检测结果
     * </pre>
     *
     * <code>string testResult = 4;</code>
     */
    public Builder setTestResult(
        java.lang.String value) {
      if (value == null) {
    throw new NullPointerException();
  }
  
      testResult_ = value;
      onChanged();
      return this;
    }
    /**
     * <pre>
     *检测结果
     * </pre>
     *
     * <code>string testResult = 4;</code>
     */
    public Builder clearTestResult() {
      
      testResult_ = getDefaultInstance().getTestResult();
      onChanged();
      return this;
    }
    /**
     * <pre>
     *检测结果
     * </pre>
     *
     * <code>string testResult = 4;</code>
     */
    public Builder setTestResultBytes(
        com.google.protobuf.ByteString value) {
      if (value == null) {
    throw new NullPointerException();
  }
  checkByteStringIsUtf8(value);
      
      testResult_ = value;
      onChanged();
      return this;
    }

    private java.lang.Object unit_ = "";
    /**
     * <pre>
     *检测结果单位
     * </pre>
     *
     * <code>string unit = 5;</code>
     */
    public java.lang.String getUnit() {
      java.lang.Object ref = unit_;
      if (!(ref instanceof java.lang.String)) {
        com.google.protobuf.ByteString bs =
            (com.google.protobuf.ByteString) ref;
        java.lang.String s = bs.toStringUtf8();
        unit_ = s;
        return s;
      } else {
        return (java.lang.String) ref;
      }
    }
    /**
     * <pre>
     *检测结果单位
     * </pre>
     *
     * <code>string unit = 5;</code>
     */
    public com.google.protobuf.ByteString
        getUnitBytes() {
      java.lang.Object ref = unit_;
      if (ref instanceof String) {
        com.google.protobuf.ByteString b = 
            com.google.protobuf.ByteString.copyFromUtf8(
                (java.lang.String) ref);
        unit_ = b;
        return b;
      } else {
        return (com.google.protobuf.ByteString) ref;
      }
    }
    /**
     * <pre>
     *检测结果单位
     * </pre>
     *
     * <code>string unit = 5;</code>
     */
    public Builder setUnit(
        java.lang.String value) {
      if (value == null) {
    throw new NullPointerException();
  }
  
      unit_ = value;
      onChanged();
      return this;
    }
    /**
     * <pre>
     *检测结果单位
     * </pre>
     *
     * <code>string unit = 5;</code>
     */
    public Builder clearUnit() {
      
      unit_ = getDefaultInstance().getUnit();
      onChanged();
      return this;
    }
    /**
     * <pre>
     *检测结果单位
     * </pre>
     *
     * <code>string unit = 5;</code>
     */
    public Builder setUnitBytes(
        com.google.protobuf.ByteString value) {
      if (value == null) {
    throw new NullPointerException();
  }
  checkByteStringIsUtf8(value);
      
      unit_ = value;
      onChanged();
      return this;
    }

    private java.lang.Object itemRef_ = "";
    /**
     * <pre>
     *参考值范围
     * </pre>
     *
     * <code>string itemRef = 6;</code>
     */
    public java.lang.String getItemRef() {
      java.lang.Object ref = itemRef_;
      if (!(ref instanceof java.lang.String)) {
        com.google.protobuf.ByteString bs =
            (com.google.protobuf.ByteString) ref;
        java.lang.String s = bs.toStringUtf8();
        itemRef_ = s;
        return s;
      } else {
        return (java.lang.String) ref;
      }
    }
    /**
     * <pre>
     *参考值范围
     * </pre>
     *
     * <code>string itemRef = 6;</code>
     */
    public com.google.protobuf.ByteString
        getItemRefBytes() {
      java.lang.Object ref = itemRef_;
      if (ref instanceof String) {
        com.google.protobuf.ByteString b = 
            com.google.protobuf.ByteString.copyFromUtf8(
                (java.lang.String) ref);
        itemRef_ = b;
        return b;
      } else {
        return (com.google.protobuf.ByteString) ref;
      }
    }
    /**
     * <pre>
     *参考值范围
     * </pre>
     *
     * <code>string itemRef = 6;</code>
     */
    public Builder setItemRef(
        java.lang.String value) {
      if (value == null) {
    throw new NullPointerException();
  }
  
      itemRef_ = value;
      onChanged();
      return this;
    }
    /**
     * <pre>
     *参考值范围
     * </pre>
     *
     * <code>string itemRef = 6;</code>
     */
    public Builder clearItemRef() {
      
      itemRef_ = getDefaultInstance().getItemRef();
      onChanged();
      return this;
    }
    /**
     * <pre>
     *参考值范围
     * </pre>
     *
     * <code>string itemRef = 6;</code>
     */
    public Builder setItemRefBytes(
        com.google.protobuf.ByteString value) {
      if (value == null) {
    throw new NullPointerException();
  }
  checkByteStringIsUtf8(value);
      
      itemRef_ = value;
      onChanged();
      return this;
    }

    private java.lang.Object testDate_ = "";
    /**
     * <pre>
     *检查日期（YYYY-MM-DD HH:MM:SS）
     * </pre>
     *
     * <code>string testDate = 7;</code>
     */
    public java.lang.String getTestDate() {
      java.lang.Object ref = testDate_;
      if (!(ref instanceof java.lang.String)) {
        com.google.protobuf.ByteString bs =
            (com.google.protobuf.ByteString) ref;
        java.lang.String s = bs.toStringUtf8();
        testDate_ = s;
        return s;
      } else {
        return (java.lang.String) ref;
      }
    }
    /**
     * <pre>
     *检查日期（YYYY-MM-DD HH:MM:SS）
     * </pre>
     *
     * <code>string testDate = 7;</code>
     */
    public com.google.protobuf.ByteString
        getTestDateBytes() {
      java.lang.Object ref = testDate_;
      if (ref instanceof String) {
        com.google.protobuf.ByteString b = 
            com.google.protobuf.ByteString.copyFromUtf8(
                (java.lang.String) ref);
        testDate_ = b;
        return b;
      } else {
        return (com.google.protobuf.ByteString) ref;
      }
    }
    /**
     * <pre>
     *检查日期（YYYY-MM-DD HH:MM:SS）
     * </pre>
     *
     * <code>string testDate = 7;</code>
     */
    public Builder setTestDate(
        java.lang.String value) {
      if (value == null) {
    throw new NullPointerException();
  }
  
      testDate_ = value;
      onChanged();
      return this;
    }
    /**
     * <pre>
     *检查日期（YYYY-MM-DD HH:MM:SS）
     * </pre>
     *
     * <code>string testDate = 7;</code>
     */
    public Builder clearTestDate() {
      
      testDate_ = getDefaultInstance().getTestDate();
      onChanged();
      return this;
    }
    /**
     * <pre>
     *检查日期（YYYY-MM-DD HH:MM:SS）
     * </pre>
     *
     * <code>string testDate = 7;</code>
     */
    public Builder setTestDateBytes(
        com.google.protobuf.ByteString value) {
      if (value == null) {
    throw new NullPointerException();
  }
  checkByteStringIsUtf8(value);
      
      testDate_ = value;
      onChanged();
      return this;
    }

    private java.lang.Object testEngName_ = "";
    /**
     * <pre>
     *检验指标英文名称
     * </pre>
     *
     * <code>string testEngName = 8;</code>
     */
    public java.lang.String getTestEngName() {
      java.lang.Object ref = testEngName_;
      if (!(ref instanceof java.lang.String)) {
        com.google.protobuf.ByteString bs =
            (com.google.protobuf.ByteString) ref;
        java.lang.String s = bs.toStringUtf8();
        testEngName_ = s;
        return s;
      } else {
        return (java.lang.String) ref;
      }
    }
    /**
     * <pre>
     *检验指标英文名称
     * </pre>
     *
     * <code>string testEngName = 8;</code>
     */
    public com.google.protobuf.ByteString
        getTestEngNameBytes() {
      java.lang.Object ref = testEngName_;
      if (ref instanceof String) {
        com.google.protobuf.ByteString b = 
            com.google.protobuf.ByteString.copyFromUtf8(
                (java.lang.String) ref);
        testEngName_ = b;
        return b;
      } else {
        return (com.google.protobuf.ByteString) ref;
      }
    }
    /**
     * <pre>
     *检验指标英文名称
     * </pre>
     *
     * <code>string testEngName = 8;</code>
     */
    public Builder setTestEngName(
        java.lang.String value) {
      if (value == null) {
    throw new NullPointerException();
  }
  
      testEngName_ = value;
      onChanged();
      return this;
    }
    /**
     * <pre>
     *检验指标英文名称
     * </pre>
     *
     * <code>string testEngName = 8;</code>
     */
    public Builder clearTestEngName() {
      
      testEngName_ = getDefaultInstance().getTestEngName();
      onChanged();
      return this;
    }
    /**
     * <pre>
     *检验指标英文名称
     * </pre>
     *
     * <code>string testEngName = 8;</code>
     */
    public Builder setTestEngNameBytes(
        com.google.protobuf.ByteString value) {
      if (value == null) {
    throw new NullPointerException();
  }
  checkByteStringIsUtf8(value);
      
      testEngName_ = value;
      onChanged();
      return this;
    }

    private java.lang.Object specimType_ = "";
    /**
     * <pre>
     *检验标本
     * </pre>
     *
     * <code>string specimType = 9;</code>
     */
    public java.lang.String getSpecimType() {
      java.lang.Object ref = specimType_;
      if (!(ref instanceof java.lang.String)) {
        com.google.protobuf.ByteString bs =
            (com.google.protobuf.ByteString) ref;
        java.lang.String s = bs.toStringUtf8();
        specimType_ = s;
        return s;
      } else {
        return (java.lang.String) ref;
      }
    }
    /**
     * <pre>
     *检验标本
     * </pre>
     *
     * <code>string specimType = 9;</code>
     */
    public com.google.protobuf.ByteString
        getSpecimTypeBytes() {
      java.lang.Object ref = specimType_;
      if (ref instanceof String) {
        com.google.protobuf.ByteString b = 
            com.google.protobuf.ByteString.copyFromUtf8(
                (java.lang.String) ref);
        specimType_ = b;
        return b;
      } else {
        return (com.google.protobuf.ByteString) ref;
      }
    }
    /**
     * <pre>
     *检验标本
     * </pre>
     *
     * <code>string specimType = 9;</code>
     */
    public Builder setSpecimType(
        java.lang.String value) {
      if (value == null) {
    throw new NullPointerException();
  }
  
      specimType_ = value;
      onChanged();
      return this;
    }
    /**
     * <pre>
     *检验标本
     * </pre>
     *
     * <code>string specimType = 9;</code>
     */
    public Builder clearSpecimType() {
      
      specimType_ = getDefaultInstance().getSpecimType();
      onChanged();
      return this;
    }
    /**
     * <pre>
     *检验标本
     * </pre>
     *
     * <code>string specimType = 9;</code>
     */
    public Builder setSpecimTypeBytes(
        com.google.protobuf.ByteString value) {
      if (value == null) {
    throw new NullPointerException();
  }
  checkByteStringIsUtf8(value);
      
      specimType_ = value;
      onChanged();
      return this;
    }

    private int resultFlag_ ;
    /**
     * <pre>
     *异常标识
     * </pre>
     *
     * <code>int32 resultFlag = 10;</code>
     */
    public int getResultFlag() {
      return resultFlag_;
    }
    /**
     * <pre>
     *异常标识
     * </pre>
     *
     * <code>int32 resultFlag = 10;</code>
     */
    public Builder setResultFlag(int value) {
      
      resultFlag_ = value;
      onChanged();
      return this;
    }
    /**
     * <pre>
     *异常标识
     * </pre>
     *
     * <code>int32 resultFlag = 10;</code>
     */
    public Builder clearResultFlag() {
      
      resultFlag_ = 0;
      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.LaboratoryDetail)
  }

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

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

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

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

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

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

}

