// 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.GetLaboratoryDetailResponse}
 */
public  final class GetLaboratoryDetailResponse extends
    com.google.protobuf.GeneratedMessageV3 implements
    // @@protoc_insertion_point(message_implements:com.ywt.gapi.third.taihe.GetLaboratoryDetailResponse)
    GetLaboratoryDetailResponseOrBuilder {
  // Use GetLaboratoryDetailResponse.newBuilder() to construct.
  private GetLaboratoryDetailResponse(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {
    super(builder);
  }
  private GetLaboratoryDetailResponse() {
    code_ = 0;
    msg_ = "";
    detail_ = java.util.Collections.emptyList();
    title_ = "";
    doctor_ = "";
    time_ = "";
    specimenNo_ = "";
  }

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

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

            msg_ = s;
            break;
          }
          case 26: {
            if (!((mutable_bitField0_ & 0x00000004) == 0x00000004)) {
              detail_ = new java.util.ArrayList<com.ywt.gapi.third.taihe.LaboratoryDetail>();
              mutable_bitField0_ |= 0x00000004;
            }
            detail_.add(
                input.readMessage(com.ywt.gapi.third.taihe.LaboratoryDetail.parser(), extensionRegistry));
            break;
          }
          case 34: {
            java.lang.String s = input.readStringRequireUtf8();

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

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

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

            specimenNo_ = 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 {
      if (((mutable_bitField0_ & 0x00000004) == 0x00000004)) {
        detail_ = java.util.Collections.unmodifiableList(detail_);
      }
      makeExtensionsImmutable();
    }
  }
  public static final com.google.protobuf.Descriptors.Descriptor
      getDescriptor() {
    return com.ywt.gapi.third.taihe.Taihe.internal_static_com_ywt_gapi_third_taihe_GetLaboratoryDetailResponse_descriptor;
  }

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

  private int bitField0_;
  public static final int CODE_FIELD_NUMBER = 1;
  private int code_;
  /**
   * <code>int32 code = 1;</code>
   */
  public int getCode() {
    return code_;
  }

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

  public static final int DETAIL_FIELD_NUMBER = 3;
  private java.util.List<com.ywt.gapi.third.taihe.LaboratoryDetail> detail_;
  /**
   * <pre>
   *化验报告详情
   * </pre>
   *
   * <code>repeated .com.ywt.gapi.third.taihe.LaboratoryDetail detail = 3;</code>
   */
  public java.util.List<com.ywt.gapi.third.taihe.LaboratoryDetail> getDetailList() {
    return detail_;
  }
  /**
   * <pre>
   *化验报告详情
   * </pre>
   *
   * <code>repeated .com.ywt.gapi.third.taihe.LaboratoryDetail detail = 3;</code>
   */
  public java.util.List<? extends com.ywt.gapi.third.taihe.LaboratoryDetailOrBuilder> 
      getDetailOrBuilderList() {
    return detail_;
  }
  /**
   * <pre>
   *化验报告详情
   * </pre>
   *
   * <code>repeated .com.ywt.gapi.third.taihe.LaboratoryDetail detail = 3;</code>
   */
  public int getDetailCount() {
    return detail_.size();
  }
  /**
   * <pre>
   *化验报告详情
   * </pre>
   *
   * <code>repeated .com.ywt.gapi.third.taihe.LaboratoryDetail detail = 3;</code>
   */
  public com.ywt.gapi.third.taihe.LaboratoryDetail getDetail(int index) {
    return detail_.get(index);
  }
  /**
   * <pre>
   *化验报告详情
   * </pre>
   *
   * <code>repeated .com.ywt.gapi.third.taihe.LaboratoryDetail detail = 3;</code>
   */
  public com.ywt.gapi.third.taihe.LaboratoryDetailOrBuilder getDetailOrBuilder(
      int index) {
    return detail_.get(index);
  }

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

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

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

  public static final int SPECIMENNO_FIELD_NUMBER = 7;
  private volatile java.lang.Object specimenNo_;
  /**
   * <code>string specimenNo = 7;</code>
   */
  public java.lang.String getSpecimenNo() {
    java.lang.Object ref = specimenNo_;
    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();
      specimenNo_ = s;
      return s;
    }
  }
  /**
   * <code>string specimenNo = 7;</code>
   */
  public com.google.protobuf.ByteString
      getSpecimenNoBytes() {
    java.lang.Object ref = specimenNo_;
    if (ref instanceof java.lang.String) {
      com.google.protobuf.ByteString b = 
          com.google.protobuf.ByteString.copyFromUtf8(
              (java.lang.String) ref);
      specimenNo_ = 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 (code_ != 0) {
      output.writeInt32(1, code_);
    }
    if (!getMsgBytes().isEmpty()) {
      com.google.protobuf.GeneratedMessageV3.writeString(output, 2, msg_);
    }
    for (int i = 0; i < detail_.size(); i++) {
      output.writeMessage(3, detail_.get(i));
    }
    if (!getTitleBytes().isEmpty()) {
      com.google.protobuf.GeneratedMessageV3.writeString(output, 4, title_);
    }
    if (!getDoctorBytes().isEmpty()) {
      com.google.protobuf.GeneratedMessageV3.writeString(output, 5, doctor_);
    }
    if (!getTimeBytes().isEmpty()) {
      com.google.protobuf.GeneratedMessageV3.writeString(output, 6, time_);
    }
    if (!getSpecimenNoBytes().isEmpty()) {
      com.google.protobuf.GeneratedMessageV3.writeString(output, 7, specimenNo_);
    }
  }

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

    size = 0;
    if (code_ != 0) {
      size += com.google.protobuf.CodedOutputStream
        .computeInt32Size(1, code_);
    }
    if (!getMsgBytes().isEmpty()) {
      size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, msg_);
    }
    for (int i = 0; i < detail_.size(); i++) {
      size += com.google.protobuf.CodedOutputStream
        .computeMessageSize(3, detail_.get(i));
    }
    if (!getTitleBytes().isEmpty()) {
      size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, title_);
    }
    if (!getDoctorBytes().isEmpty()) {
      size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, doctor_);
    }
    if (!getTimeBytes().isEmpty()) {
      size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, time_);
    }
    if (!getSpecimenNoBytes().isEmpty()) {
      size += com.google.protobuf.GeneratedMessageV3.computeStringSize(7, specimenNo_);
    }
    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.GetLaboratoryDetailResponse)) {
      return super.equals(obj);
    }
    com.ywt.gapi.third.taihe.GetLaboratoryDetailResponse other = (com.ywt.gapi.third.taihe.GetLaboratoryDetailResponse) obj;

    boolean result = true;
    result = result && (getCode()
        == other.getCode());
    result = result && getMsg()
        .equals(other.getMsg());
    result = result && getDetailList()
        .equals(other.getDetailList());
    result = result && getTitle()
        .equals(other.getTitle());
    result = result && getDoctor()
        .equals(other.getDoctor());
    result = result && getTime()
        .equals(other.getTime());
    result = result && getSpecimenNo()
        .equals(other.getSpecimenNo());
    return result;
  }

  @java.lang.Override
  public int hashCode() {
    if (memoizedHashCode != 0) {
      return memoizedHashCode;
    }
    int hash = 41;
    hash = (19 * hash) + getDescriptor().hashCode();
    hash = (37 * hash) + CODE_FIELD_NUMBER;
    hash = (53 * hash) + getCode();
    hash = (37 * hash) + MSG_FIELD_NUMBER;
    hash = (53 * hash) + getMsg().hashCode();
    if (getDetailCount() > 0) {
      hash = (37 * hash) + DETAIL_FIELD_NUMBER;
      hash = (53 * hash) + getDetailList().hashCode();
    }
    hash = (37 * hash) + TITLE_FIELD_NUMBER;
    hash = (53 * hash) + getTitle().hashCode();
    hash = (37 * hash) + DOCTOR_FIELD_NUMBER;
    hash = (53 * hash) + getDoctor().hashCode();
    hash = (37 * hash) + TIME_FIELD_NUMBER;
    hash = (53 * hash) + getTime().hashCode();
    hash = (37 * hash) + SPECIMENNO_FIELD_NUMBER;
    hash = (53 * hash) + getSpecimenNo().hashCode();
    hash = (29 * hash) + unknownFields.hashCode();
    memoizedHashCode = hash;
    return hash;
  }

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

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

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

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

      msg_ = "";

      if (detailBuilder_ == null) {
        detail_ = java.util.Collections.emptyList();
        bitField0_ = (bitField0_ & ~0x00000004);
      } else {
        detailBuilder_.clear();
      }
      title_ = "";

      doctor_ = "";

      time_ = "";

      specimenNo_ = "";

      return this;
    }

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

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

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

    public com.ywt.gapi.third.taihe.GetLaboratoryDetailResponse buildPartial() {
      com.ywt.gapi.third.taihe.GetLaboratoryDetailResponse result = new com.ywt.gapi.third.taihe.GetLaboratoryDetailResponse(this);
      int from_bitField0_ = bitField0_;
      int to_bitField0_ = 0;
      result.code_ = code_;
      result.msg_ = msg_;
      if (detailBuilder_ == null) {
        if (((bitField0_ & 0x00000004) == 0x00000004)) {
          detail_ = java.util.Collections.unmodifiableList(detail_);
          bitField0_ = (bitField0_ & ~0x00000004);
        }
        result.detail_ = detail_;
      } else {
        result.detail_ = detailBuilder_.build();
      }
      result.title_ = title_;
      result.doctor_ = doctor_;
      result.time_ = time_;
      result.specimenNo_ = specimenNo_;
      result.bitField0_ = to_bitField0_;
      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.GetLaboratoryDetailResponse) {
        return mergeFrom((com.ywt.gapi.third.taihe.GetLaboratoryDetailResponse)other);
      } else {
        super.mergeFrom(other);
        return this;
      }
    }

    public Builder mergeFrom(com.ywt.gapi.third.taihe.GetLaboratoryDetailResponse other) {
      if (other == com.ywt.gapi.third.taihe.GetLaboratoryDetailResponse.getDefaultInstance()) return this;
      if (other.getCode() != 0) {
        setCode(other.getCode());
      }
      if (!other.getMsg().isEmpty()) {
        msg_ = other.msg_;
        onChanged();
      }
      if (detailBuilder_ == null) {
        if (!other.detail_.isEmpty()) {
          if (detail_.isEmpty()) {
            detail_ = other.detail_;
            bitField0_ = (bitField0_ & ~0x00000004);
          } else {
            ensureDetailIsMutable();
            detail_.addAll(other.detail_);
          }
          onChanged();
        }
      } else {
        if (!other.detail_.isEmpty()) {
          if (detailBuilder_.isEmpty()) {
            detailBuilder_.dispose();
            detailBuilder_ = null;
            detail_ = other.detail_;
            bitField0_ = (bitField0_ & ~0x00000004);
            detailBuilder_ = 
              com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
                 getDetailFieldBuilder() : null;
          } else {
            detailBuilder_.addAllMessages(other.detail_);
          }
        }
      }
      if (!other.getTitle().isEmpty()) {
        title_ = other.title_;
        onChanged();
      }
      if (!other.getDoctor().isEmpty()) {
        doctor_ = other.doctor_;
        onChanged();
      }
      if (!other.getTime().isEmpty()) {
        time_ = other.time_;
        onChanged();
      }
      if (!other.getSpecimenNo().isEmpty()) {
        specimenNo_ = other.specimenNo_;
        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.GetLaboratoryDetailResponse parsedMessage = null;
      try {
        parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
      } catch (com.google.protobuf.InvalidProtocolBufferException e) {
        parsedMessage = (com.ywt.gapi.third.taihe.GetLaboratoryDetailResponse) e.getUnfinishedMessage();
        throw e.unwrapIOException();
      } finally {
        if (parsedMessage != null) {
          mergeFrom(parsedMessage);
        }
      }
      return this;
    }
    private int bitField0_;

    private int code_ ;
    /**
     * <code>int32 code = 1;</code>
     */
    public int getCode() {
      return code_;
    }
    /**
     * <code>int32 code = 1;</code>
     */
    public Builder setCode(int value) {
      
      code_ = value;
      onChanged();
      return this;
    }
    /**
     * <code>int32 code = 1;</code>
     */
    public Builder clearCode() {
      
      code_ = 0;
      onChanged();
      return this;
    }

    private java.lang.Object msg_ = "";
    /**
     * <code>string msg = 2;</code>
     */
    public java.lang.String getMsg() {
      java.lang.Object ref = msg_;
      if (!(ref instanceof java.lang.String)) {
        com.google.protobuf.ByteString bs =
            (com.google.protobuf.ByteString) ref;
        java.lang.String s = bs.toStringUtf8();
        msg_ = s;
        return s;
      } else {
        return (java.lang.String) ref;
      }
    }
    /**
     * <code>string msg = 2;</code>
     */
    public com.google.protobuf.ByteString
        getMsgBytes() {
      java.lang.Object ref = msg_;
      if (ref instanceof String) {
        com.google.protobuf.ByteString b = 
            com.google.protobuf.ByteString.copyFromUtf8(
                (java.lang.String) ref);
        msg_ = b;
        return b;
      } else {
        return (com.google.protobuf.ByteString) ref;
      }
    }
    /**
     * <code>string msg = 2;</code>
     */
    public Builder setMsg(
        java.lang.String value) {
      if (value == null) {
    throw new NullPointerException();
  }
  
      msg_ = value;
      onChanged();
      return this;
    }
    /**
     * <code>string msg = 2;</code>
     */
    public Builder clearMsg() {
      
      msg_ = getDefaultInstance().getMsg();
      onChanged();
      return this;
    }
    /**
     * <code>string msg = 2;</code>
     */
    public Builder setMsgBytes(
        com.google.protobuf.ByteString value) {
      if (value == null) {
    throw new NullPointerException();
  }
  checkByteStringIsUtf8(value);
      
      msg_ = value;
      onChanged();
      return this;
    }

    private java.util.List<com.ywt.gapi.third.taihe.LaboratoryDetail> detail_ =
      java.util.Collections.emptyList();
    private void ensureDetailIsMutable() {
      if (!((bitField0_ & 0x00000004) == 0x00000004)) {
        detail_ = new java.util.ArrayList<com.ywt.gapi.third.taihe.LaboratoryDetail>(detail_);
        bitField0_ |= 0x00000004;
       }
    }

    private com.google.protobuf.RepeatedFieldBuilderV3<
        com.ywt.gapi.third.taihe.LaboratoryDetail, com.ywt.gapi.third.taihe.LaboratoryDetail.Builder, com.ywt.gapi.third.taihe.LaboratoryDetailOrBuilder> detailBuilder_;

    /**
     * <pre>
     *化验报告详情
     * </pre>
     *
     * <code>repeated .com.ywt.gapi.third.taihe.LaboratoryDetail detail = 3;</code>
     */
    public java.util.List<com.ywt.gapi.third.taihe.LaboratoryDetail> getDetailList() {
      if (detailBuilder_ == null) {
        return java.util.Collections.unmodifiableList(detail_);
      } else {
        return detailBuilder_.getMessageList();
      }
    }
    /**
     * <pre>
     *化验报告详情
     * </pre>
     *
     * <code>repeated .com.ywt.gapi.third.taihe.LaboratoryDetail detail = 3;</code>
     */
    public int getDetailCount() {
      if (detailBuilder_ == null) {
        return detail_.size();
      } else {
        return detailBuilder_.getCount();
      }
    }
    /**
     * <pre>
     *化验报告详情
     * </pre>
     *
     * <code>repeated .com.ywt.gapi.third.taihe.LaboratoryDetail detail = 3;</code>
     */
    public com.ywt.gapi.third.taihe.LaboratoryDetail getDetail(int index) {
      if (detailBuilder_ == null) {
        return detail_.get(index);
      } else {
        return detailBuilder_.getMessage(index);
      }
    }
    /**
     * <pre>
     *化验报告详情
     * </pre>
     *
     * <code>repeated .com.ywt.gapi.third.taihe.LaboratoryDetail detail = 3;</code>
     */
    public Builder setDetail(
        int index, com.ywt.gapi.third.taihe.LaboratoryDetail value) {
      if (detailBuilder_ == null) {
        if (value == null) {
          throw new NullPointerException();
        }
        ensureDetailIsMutable();
        detail_.set(index, value);
        onChanged();
      } else {
        detailBuilder_.setMessage(index, value);
      }
      return this;
    }
    /**
     * <pre>
     *化验报告详情
     * </pre>
     *
     * <code>repeated .com.ywt.gapi.third.taihe.LaboratoryDetail detail = 3;</code>
     */
    public Builder setDetail(
        int index, com.ywt.gapi.third.taihe.LaboratoryDetail.Builder builderForValue) {
      if (detailBuilder_ == null) {
        ensureDetailIsMutable();
        detail_.set(index, builderForValue.build());
        onChanged();
      } else {
        detailBuilder_.setMessage(index, builderForValue.build());
      }
      return this;
    }
    /**
     * <pre>
     *化验报告详情
     * </pre>
     *
     * <code>repeated .com.ywt.gapi.third.taihe.LaboratoryDetail detail = 3;</code>
     */
    public Builder addDetail(com.ywt.gapi.third.taihe.LaboratoryDetail value) {
      if (detailBuilder_ == null) {
        if (value == null) {
          throw new NullPointerException();
        }
        ensureDetailIsMutable();
        detail_.add(value);
        onChanged();
      } else {
        detailBuilder_.addMessage(value);
      }
      return this;
    }
    /**
     * <pre>
     *化验报告详情
     * </pre>
     *
     * <code>repeated .com.ywt.gapi.third.taihe.LaboratoryDetail detail = 3;</code>
     */
    public Builder addDetail(
        int index, com.ywt.gapi.third.taihe.LaboratoryDetail value) {
      if (detailBuilder_ == null) {
        if (value == null) {
          throw new NullPointerException();
        }
        ensureDetailIsMutable();
        detail_.add(index, value);
        onChanged();
      } else {
        detailBuilder_.addMessage(index, value);
      }
      return this;
    }
    /**
     * <pre>
     *化验报告详情
     * </pre>
     *
     * <code>repeated .com.ywt.gapi.third.taihe.LaboratoryDetail detail = 3;</code>
     */
    public Builder addDetail(
        com.ywt.gapi.third.taihe.LaboratoryDetail.Builder builderForValue) {
      if (detailBuilder_ == null) {
        ensureDetailIsMutable();
        detail_.add(builderForValue.build());
        onChanged();
      } else {
        detailBuilder_.addMessage(builderForValue.build());
      }
      return this;
    }
    /**
     * <pre>
     *化验报告详情
     * </pre>
     *
     * <code>repeated .com.ywt.gapi.third.taihe.LaboratoryDetail detail = 3;</code>
     */
    public Builder addDetail(
        int index, com.ywt.gapi.third.taihe.LaboratoryDetail.Builder builderForValue) {
      if (detailBuilder_ == null) {
        ensureDetailIsMutable();
        detail_.add(index, builderForValue.build());
        onChanged();
      } else {
        detailBuilder_.addMessage(index, builderForValue.build());
      }
      return this;
    }
    /**
     * <pre>
     *化验报告详情
     * </pre>
     *
     * <code>repeated .com.ywt.gapi.third.taihe.LaboratoryDetail detail = 3;</code>
     */
    public Builder addAllDetail(
        java.lang.Iterable<? extends com.ywt.gapi.third.taihe.LaboratoryDetail> values) {
      if (detailBuilder_ == null) {
        ensureDetailIsMutable();
        com.google.protobuf.AbstractMessageLite.Builder.addAll(
            values, detail_);
        onChanged();
      } else {
        detailBuilder_.addAllMessages(values);
      }
      return this;
    }
    /**
     * <pre>
     *化验报告详情
     * </pre>
     *
     * <code>repeated .com.ywt.gapi.third.taihe.LaboratoryDetail detail = 3;</code>
     */
    public Builder clearDetail() {
      if (detailBuilder_ == null) {
        detail_ = java.util.Collections.emptyList();
        bitField0_ = (bitField0_ & ~0x00000004);
        onChanged();
      } else {
        detailBuilder_.clear();
      }
      return this;
    }
    /**
     * <pre>
     *化验报告详情
     * </pre>
     *
     * <code>repeated .com.ywt.gapi.third.taihe.LaboratoryDetail detail = 3;</code>
     */
    public Builder removeDetail(int index) {
      if (detailBuilder_ == null) {
        ensureDetailIsMutable();
        detail_.remove(index);
        onChanged();
      } else {
        detailBuilder_.remove(index);
      }
      return this;
    }
    /**
     * <pre>
     *化验报告详情
     * </pre>
     *
     * <code>repeated .com.ywt.gapi.third.taihe.LaboratoryDetail detail = 3;</code>
     */
    public com.ywt.gapi.third.taihe.LaboratoryDetail.Builder getDetailBuilder(
        int index) {
      return getDetailFieldBuilder().getBuilder(index);
    }
    /**
     * <pre>
     *化验报告详情
     * </pre>
     *
     * <code>repeated .com.ywt.gapi.third.taihe.LaboratoryDetail detail = 3;</code>
     */
    public com.ywt.gapi.third.taihe.LaboratoryDetailOrBuilder getDetailOrBuilder(
        int index) {
      if (detailBuilder_ == null) {
        return detail_.get(index);  } else {
        return detailBuilder_.getMessageOrBuilder(index);
      }
    }
    /**
     * <pre>
     *化验报告详情
     * </pre>
     *
     * <code>repeated .com.ywt.gapi.third.taihe.LaboratoryDetail detail = 3;</code>
     */
    public java.util.List<? extends com.ywt.gapi.third.taihe.LaboratoryDetailOrBuilder> 
         getDetailOrBuilderList() {
      if (detailBuilder_ != null) {
        return detailBuilder_.getMessageOrBuilderList();
      } else {
        return java.util.Collections.unmodifiableList(detail_);
      }
    }
    /**
     * <pre>
     *化验报告详情
     * </pre>
     *
     * <code>repeated .com.ywt.gapi.third.taihe.LaboratoryDetail detail = 3;</code>
     */
    public com.ywt.gapi.third.taihe.LaboratoryDetail.Builder addDetailBuilder() {
      return getDetailFieldBuilder().addBuilder(
          com.ywt.gapi.third.taihe.LaboratoryDetail.getDefaultInstance());
    }
    /**
     * <pre>
     *化验报告详情
     * </pre>
     *
     * <code>repeated .com.ywt.gapi.third.taihe.LaboratoryDetail detail = 3;</code>
     */
    public com.ywt.gapi.third.taihe.LaboratoryDetail.Builder addDetailBuilder(
        int index) {
      return getDetailFieldBuilder().addBuilder(
          index, com.ywt.gapi.third.taihe.LaboratoryDetail.getDefaultInstance());
    }
    /**
     * <pre>
     *化验报告详情
     * </pre>
     *
     * <code>repeated .com.ywt.gapi.third.taihe.LaboratoryDetail detail = 3;</code>
     */
    public java.util.List<com.ywt.gapi.third.taihe.LaboratoryDetail.Builder> 
         getDetailBuilderList() {
      return getDetailFieldBuilder().getBuilderList();
    }
    private com.google.protobuf.RepeatedFieldBuilderV3<
        com.ywt.gapi.third.taihe.LaboratoryDetail, com.ywt.gapi.third.taihe.LaboratoryDetail.Builder, com.ywt.gapi.third.taihe.LaboratoryDetailOrBuilder> 
        getDetailFieldBuilder() {
      if (detailBuilder_ == null) {
        detailBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
            com.ywt.gapi.third.taihe.LaboratoryDetail, com.ywt.gapi.third.taihe.LaboratoryDetail.Builder, com.ywt.gapi.third.taihe.LaboratoryDetailOrBuilder>(
                detail_,
                ((bitField0_ & 0x00000004) == 0x00000004),
                getParentForChildren(),
                isClean());
        detail_ = null;
      }
      return detailBuilder_;
    }

    private java.lang.Object title_ = "";
    /**
     * <code>string title = 4;</code>
     */
    public java.lang.String getTitle() {
      java.lang.Object ref = title_;
      if (!(ref instanceof java.lang.String)) {
        com.google.protobuf.ByteString bs =
            (com.google.protobuf.ByteString) ref;
        java.lang.String s = bs.toStringUtf8();
        title_ = s;
        return s;
      } else {
        return (java.lang.String) ref;
      }
    }
    /**
     * <code>string title = 4;</code>
     */
    public com.google.protobuf.ByteString
        getTitleBytes() {
      java.lang.Object ref = title_;
      if (ref instanceof String) {
        com.google.protobuf.ByteString b = 
            com.google.protobuf.ByteString.copyFromUtf8(
                (java.lang.String) ref);
        title_ = b;
        return b;
      } else {
        return (com.google.protobuf.ByteString) ref;
      }
    }
    /**
     * <code>string title = 4;</code>
     */
    public Builder setTitle(
        java.lang.String value) {
      if (value == null) {
    throw new NullPointerException();
  }
  
      title_ = value;
      onChanged();
      return this;
    }
    /**
     * <code>string title = 4;</code>
     */
    public Builder clearTitle() {
      
      title_ = getDefaultInstance().getTitle();
      onChanged();
      return this;
    }
    /**
     * <code>string title = 4;</code>
     */
    public Builder setTitleBytes(
        com.google.protobuf.ByteString value) {
      if (value == null) {
    throw new NullPointerException();
  }
  checkByteStringIsUtf8(value);
      
      title_ = value;
      onChanged();
      return this;
    }

    private java.lang.Object doctor_ = "";
    /**
     * <code>string doctor = 5;</code>
     */
    public java.lang.String getDoctor() {
      java.lang.Object ref = doctor_;
      if (!(ref instanceof java.lang.String)) {
        com.google.protobuf.ByteString bs =
            (com.google.protobuf.ByteString) ref;
        java.lang.String s = bs.toStringUtf8();
        doctor_ = s;
        return s;
      } else {
        return (java.lang.String) ref;
      }
    }
    /**
     * <code>string doctor = 5;</code>
     */
    public com.google.protobuf.ByteString
        getDoctorBytes() {
      java.lang.Object ref = doctor_;
      if (ref instanceof String) {
        com.google.protobuf.ByteString b = 
            com.google.protobuf.ByteString.copyFromUtf8(
                (java.lang.String) ref);
        doctor_ = b;
        return b;
      } else {
        return (com.google.protobuf.ByteString) ref;
      }
    }
    /**
     * <code>string doctor = 5;</code>
     */
    public Builder setDoctor(
        java.lang.String value) {
      if (value == null) {
    throw new NullPointerException();
  }
  
      doctor_ = value;
      onChanged();
      return this;
    }
    /**
     * <code>string doctor = 5;</code>
     */
    public Builder clearDoctor() {
      
      doctor_ = getDefaultInstance().getDoctor();
      onChanged();
      return this;
    }
    /**
     * <code>string doctor = 5;</code>
     */
    public Builder setDoctorBytes(
        com.google.protobuf.ByteString value) {
      if (value == null) {
    throw new NullPointerException();
  }
  checkByteStringIsUtf8(value);
      
      doctor_ = value;
      onChanged();
      return this;
    }

    private java.lang.Object time_ = "";
    /**
     * <code>string time = 6;</code>
     */
    public java.lang.String getTime() {
      java.lang.Object ref = time_;
      if (!(ref instanceof java.lang.String)) {
        com.google.protobuf.ByteString bs =
            (com.google.protobuf.ByteString) ref;
        java.lang.String s = bs.toStringUtf8();
        time_ = s;
        return s;
      } else {
        return (java.lang.String) ref;
      }
    }
    /**
     * <code>string time = 6;</code>
     */
    public com.google.protobuf.ByteString
        getTimeBytes() {
      java.lang.Object ref = time_;
      if (ref instanceof String) {
        com.google.protobuf.ByteString b = 
            com.google.protobuf.ByteString.copyFromUtf8(
                (java.lang.String) ref);
        time_ = b;
        return b;
      } else {
        return (com.google.protobuf.ByteString) ref;
      }
    }
    /**
     * <code>string time = 6;</code>
     */
    public Builder setTime(
        java.lang.String value) {
      if (value == null) {
    throw new NullPointerException();
  }
  
      time_ = value;
      onChanged();
      return this;
    }
    /**
     * <code>string time = 6;</code>
     */
    public Builder clearTime() {
      
      time_ = getDefaultInstance().getTime();
      onChanged();
      return this;
    }
    /**
     * <code>string time = 6;</code>
     */
    public Builder setTimeBytes(
        com.google.protobuf.ByteString value) {
      if (value == null) {
    throw new NullPointerException();
  }
  checkByteStringIsUtf8(value);
      
      time_ = value;
      onChanged();
      return this;
    }

    private java.lang.Object specimenNo_ = "";
    /**
     * <code>string specimenNo = 7;</code>
     */
    public java.lang.String getSpecimenNo() {
      java.lang.Object ref = specimenNo_;
      if (!(ref instanceof java.lang.String)) {
        com.google.protobuf.ByteString bs =
            (com.google.protobuf.ByteString) ref;
        java.lang.String s = bs.toStringUtf8();
        specimenNo_ = s;
        return s;
      } else {
        return (java.lang.String) ref;
      }
    }
    /**
     * <code>string specimenNo = 7;</code>
     */
    public com.google.protobuf.ByteString
        getSpecimenNoBytes() {
      java.lang.Object ref = specimenNo_;
      if (ref instanceof String) {
        com.google.protobuf.ByteString b = 
            com.google.protobuf.ByteString.copyFromUtf8(
                (java.lang.String) ref);
        specimenNo_ = b;
        return b;
      } else {
        return (com.google.protobuf.ByteString) ref;
      }
    }
    /**
     * <code>string specimenNo = 7;</code>
     */
    public Builder setSpecimenNo(
        java.lang.String value) {
      if (value == null) {
    throw new NullPointerException();
  }
  
      specimenNo_ = value;
      onChanged();
      return this;
    }
    /**
     * <code>string specimenNo = 7;</code>
     */
    public Builder clearSpecimenNo() {
      
      specimenNo_ = getDefaultInstance().getSpecimenNo();
      onChanged();
      return this;
    }
    /**
     * <code>string specimenNo = 7;</code>
     */
    public Builder setSpecimenNoBytes(
        com.google.protobuf.ByteString value) {
      if (value == null) {
    throw new NullPointerException();
  }
  checkByteStringIsUtf8(value);
      
      specimenNo_ = 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.GetLaboratoryDetailResponse)
  }

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

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

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

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

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

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

}

