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

package com.ywt.gapi.user;

/**
 * <pre>
 * 获取在院病历（包括检验结果、检查结果、门诊病历）响应
 * </pre>
 *
 * Protobuf type {@code com.ywt.gapi.user.GetHospMedRecordResponse}
 */
public  final class GetHospMedRecordResponse extends
    com.google.protobuf.GeneratedMessageV3 implements
    // @@protoc_insertion_point(message_implements:com.ywt.gapi.user.GetHospMedRecordResponse)
    GetHospMedRecordResponseOrBuilder {
  // Use GetHospMedRecordResponse.newBuilder() to construct.
  private GetHospMedRecordResponse(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {
    super(builder);
  }
  private GetHospMedRecordResponse() {
    code_ = 0;
    info_ = "";
    hospInspectionReport_ = java.util.Collections.emptyList();
    hospLaboratoryReport_ = java.util.Collections.emptyList();
    opMedRecord_ = java.util.Collections.emptyList();
  }

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

            info_ = s;
            break;
          }
          case 26: {
            if (!((mutable_bitField0_ & 0x00000004) == 0x00000004)) {
              hospInspectionReport_ = new java.util.ArrayList<com.ywt.gapi.user.HospInspectionReport>();
              mutable_bitField0_ |= 0x00000004;
            }
            hospInspectionReport_.add(
                input.readMessage(com.ywt.gapi.user.HospInspectionReport.parser(), extensionRegistry));
            break;
          }
          case 34: {
            if (!((mutable_bitField0_ & 0x00000008) == 0x00000008)) {
              hospLaboratoryReport_ = new java.util.ArrayList<com.ywt.gapi.user.HospLaboratoryReport>();
              mutable_bitField0_ |= 0x00000008;
            }
            hospLaboratoryReport_.add(
                input.readMessage(com.ywt.gapi.user.HospLaboratoryReport.parser(), extensionRegistry));
            break;
          }
          case 42: {
            if (!((mutable_bitField0_ & 0x00000010) == 0x00000010)) {
              opMedRecord_ = new java.util.ArrayList<com.ywt.gapi.user.OPMedRecord>();
              mutable_bitField0_ |= 0x00000010;
            }
            opMedRecord_.add(
                input.readMessage(com.ywt.gapi.user.OPMedRecord.parser(), extensionRegistry));
            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)) {
        hospInspectionReport_ = java.util.Collections.unmodifiableList(hospInspectionReport_);
      }
      if (((mutable_bitField0_ & 0x00000008) == 0x00000008)) {
        hospLaboratoryReport_ = java.util.Collections.unmodifiableList(hospLaboratoryReport_);
      }
      if (((mutable_bitField0_ & 0x00000010) == 0x00000010)) {
        opMedRecord_ = java.util.Collections.unmodifiableList(opMedRecord_);
      }
      makeExtensionsImmutable();
    }
  }
  public static final com.google.protobuf.Descriptors.Descriptor
      getDescriptor() {
    return com.ywt.gapi.user.DoctorOuterClass.internal_static_com_ywt_gapi_user_GetHospMedRecordResponse_descriptor;
  }

  protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
      internalGetFieldAccessorTable() {
    return com.ywt.gapi.user.DoctorOuterClass.internal_static_com_ywt_gapi_user_GetHospMedRecordResponse_fieldAccessorTable
        .ensureFieldAccessorsInitialized(
            com.ywt.gapi.user.GetHospMedRecordResponse.class, com.ywt.gapi.user.GetHospMedRecordResponse.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 INFO_FIELD_NUMBER = 2;
  private volatile java.lang.Object info_;
  /**
   * <code>string info = 2;</code>
   */
  public java.lang.String getInfo() {
    java.lang.Object ref = info_;
    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();
      info_ = s;
      return s;
    }
  }
  /**
   * <code>string info = 2;</code>
   */
  public com.google.protobuf.ByteString
      getInfoBytes() {
    java.lang.Object ref = info_;
    if (ref instanceof java.lang.String) {
      com.google.protobuf.ByteString b = 
          com.google.protobuf.ByteString.copyFromUtf8(
              (java.lang.String) ref);
      info_ = b;
      return b;
    } else {
      return (com.google.protobuf.ByteString) ref;
    }
  }

  public static final int HOSPINSPECTIONREPORT_FIELD_NUMBER = 3;
  private java.util.List<com.ywt.gapi.user.HospInspectionReport> hospInspectionReport_;
  /**
   * <code>repeated .com.ywt.gapi.user.HospInspectionReport hospInspectionReport = 3;</code>
   */
  public java.util.List<com.ywt.gapi.user.HospInspectionReport> getHospInspectionReportList() {
    return hospInspectionReport_;
  }
  /**
   * <code>repeated .com.ywt.gapi.user.HospInspectionReport hospInspectionReport = 3;</code>
   */
  public java.util.List<? extends com.ywt.gapi.user.HospInspectionReportOrBuilder> 
      getHospInspectionReportOrBuilderList() {
    return hospInspectionReport_;
  }
  /**
   * <code>repeated .com.ywt.gapi.user.HospInspectionReport hospInspectionReport = 3;</code>
   */
  public int getHospInspectionReportCount() {
    return hospInspectionReport_.size();
  }
  /**
   * <code>repeated .com.ywt.gapi.user.HospInspectionReport hospInspectionReport = 3;</code>
   */
  public com.ywt.gapi.user.HospInspectionReport getHospInspectionReport(int index) {
    return hospInspectionReport_.get(index);
  }
  /**
   * <code>repeated .com.ywt.gapi.user.HospInspectionReport hospInspectionReport = 3;</code>
   */
  public com.ywt.gapi.user.HospInspectionReportOrBuilder getHospInspectionReportOrBuilder(
      int index) {
    return hospInspectionReport_.get(index);
  }

  public static final int HOSPLABORATORYREPORT_FIELD_NUMBER = 4;
  private java.util.List<com.ywt.gapi.user.HospLaboratoryReport> hospLaboratoryReport_;
  /**
   * <code>repeated .com.ywt.gapi.user.HospLaboratoryReport hospLaboratoryReport = 4;</code>
   */
  public java.util.List<com.ywt.gapi.user.HospLaboratoryReport> getHospLaboratoryReportList() {
    return hospLaboratoryReport_;
  }
  /**
   * <code>repeated .com.ywt.gapi.user.HospLaboratoryReport hospLaboratoryReport = 4;</code>
   */
  public java.util.List<? extends com.ywt.gapi.user.HospLaboratoryReportOrBuilder> 
      getHospLaboratoryReportOrBuilderList() {
    return hospLaboratoryReport_;
  }
  /**
   * <code>repeated .com.ywt.gapi.user.HospLaboratoryReport hospLaboratoryReport = 4;</code>
   */
  public int getHospLaboratoryReportCount() {
    return hospLaboratoryReport_.size();
  }
  /**
   * <code>repeated .com.ywt.gapi.user.HospLaboratoryReport hospLaboratoryReport = 4;</code>
   */
  public com.ywt.gapi.user.HospLaboratoryReport getHospLaboratoryReport(int index) {
    return hospLaboratoryReport_.get(index);
  }
  /**
   * <code>repeated .com.ywt.gapi.user.HospLaboratoryReport hospLaboratoryReport = 4;</code>
   */
  public com.ywt.gapi.user.HospLaboratoryReportOrBuilder getHospLaboratoryReportOrBuilder(
      int index) {
    return hospLaboratoryReport_.get(index);
  }

  public static final int OPMEDRECORD_FIELD_NUMBER = 5;
  private java.util.List<com.ywt.gapi.user.OPMedRecord> opMedRecord_;
  /**
   * <code>repeated .com.ywt.gapi.user.OPMedRecord opMedRecord = 5;</code>
   */
  public java.util.List<com.ywt.gapi.user.OPMedRecord> getOpMedRecordList() {
    return opMedRecord_;
  }
  /**
   * <code>repeated .com.ywt.gapi.user.OPMedRecord opMedRecord = 5;</code>
   */
  public java.util.List<? extends com.ywt.gapi.user.OPMedRecordOrBuilder> 
      getOpMedRecordOrBuilderList() {
    return opMedRecord_;
  }
  /**
   * <code>repeated .com.ywt.gapi.user.OPMedRecord opMedRecord = 5;</code>
   */
  public int getOpMedRecordCount() {
    return opMedRecord_.size();
  }
  /**
   * <code>repeated .com.ywt.gapi.user.OPMedRecord opMedRecord = 5;</code>
   */
  public com.ywt.gapi.user.OPMedRecord getOpMedRecord(int index) {
    return opMedRecord_.get(index);
  }
  /**
   * <code>repeated .com.ywt.gapi.user.OPMedRecord opMedRecord = 5;</code>
   */
  public com.ywt.gapi.user.OPMedRecordOrBuilder getOpMedRecordOrBuilder(
      int index) {
    return opMedRecord_.get(index);
  }

  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 (!getInfoBytes().isEmpty()) {
      com.google.protobuf.GeneratedMessageV3.writeString(output, 2, info_);
    }
    for (int i = 0; i < hospInspectionReport_.size(); i++) {
      output.writeMessage(3, hospInspectionReport_.get(i));
    }
    for (int i = 0; i < hospLaboratoryReport_.size(); i++) {
      output.writeMessage(4, hospLaboratoryReport_.get(i));
    }
    for (int i = 0; i < opMedRecord_.size(); i++) {
      output.writeMessage(5, opMedRecord_.get(i));
    }
  }

  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 (!getInfoBytes().isEmpty()) {
      size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, info_);
    }
    for (int i = 0; i < hospInspectionReport_.size(); i++) {
      size += com.google.protobuf.CodedOutputStream
        .computeMessageSize(3, hospInspectionReport_.get(i));
    }
    for (int i = 0; i < hospLaboratoryReport_.size(); i++) {
      size += com.google.protobuf.CodedOutputStream
        .computeMessageSize(4, hospLaboratoryReport_.get(i));
    }
    for (int i = 0; i < opMedRecord_.size(); i++) {
      size += com.google.protobuf.CodedOutputStream
        .computeMessageSize(5, opMedRecord_.get(i));
    }
    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.user.GetHospMedRecordResponse)) {
      return super.equals(obj);
    }
    com.ywt.gapi.user.GetHospMedRecordResponse other = (com.ywt.gapi.user.GetHospMedRecordResponse) obj;

    boolean result = true;
    result = result && (getCode()
        == other.getCode());
    result = result && getInfo()
        .equals(other.getInfo());
    result = result && getHospInspectionReportList()
        .equals(other.getHospInspectionReportList());
    result = result && getHospLaboratoryReportList()
        .equals(other.getHospLaboratoryReportList());
    result = result && getOpMedRecordList()
        .equals(other.getOpMedRecordList());
    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) + INFO_FIELD_NUMBER;
    hash = (53 * hash) + getInfo().hashCode();
    if (getHospInspectionReportCount() > 0) {
      hash = (37 * hash) + HOSPINSPECTIONREPORT_FIELD_NUMBER;
      hash = (53 * hash) + getHospInspectionReportList().hashCode();
    }
    if (getHospLaboratoryReportCount() > 0) {
      hash = (37 * hash) + HOSPLABORATORYREPORT_FIELD_NUMBER;
      hash = (53 * hash) + getHospLaboratoryReportList().hashCode();
    }
    if (getOpMedRecordCount() > 0) {
      hash = (37 * hash) + OPMEDRECORD_FIELD_NUMBER;
      hash = (53 * hash) + getOpMedRecordList().hashCode();
    }
    hash = (29 * hash) + unknownFields.hashCode();
    memoizedHashCode = hash;
    return hash;
  }

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

    protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
        internalGetFieldAccessorTable() {
      return com.ywt.gapi.user.DoctorOuterClass.internal_static_com_ywt_gapi_user_GetHospMedRecordResponse_fieldAccessorTable
          .ensureFieldAccessorsInitialized(
              com.ywt.gapi.user.GetHospMedRecordResponse.class, com.ywt.gapi.user.GetHospMedRecordResponse.Builder.class);
    }

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

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

      info_ = "";

      if (hospInspectionReportBuilder_ == null) {
        hospInspectionReport_ = java.util.Collections.emptyList();
        bitField0_ = (bitField0_ & ~0x00000004);
      } else {
        hospInspectionReportBuilder_.clear();
      }
      if (hospLaboratoryReportBuilder_ == null) {
        hospLaboratoryReport_ = java.util.Collections.emptyList();
        bitField0_ = (bitField0_ & ~0x00000008);
      } else {
        hospLaboratoryReportBuilder_.clear();
      }
      if (opMedRecordBuilder_ == null) {
        opMedRecord_ = java.util.Collections.emptyList();
        bitField0_ = (bitField0_ & ~0x00000010);
      } else {
        opMedRecordBuilder_.clear();
      }
      return this;
    }

    public com.google.protobuf.Descriptors.Descriptor
        getDescriptorForType() {
      return com.ywt.gapi.user.DoctorOuterClass.internal_static_com_ywt_gapi_user_GetHospMedRecordResponse_descriptor;
    }

    public com.ywt.gapi.user.GetHospMedRecordResponse getDefaultInstanceForType() {
      return com.ywt.gapi.user.GetHospMedRecordResponse.getDefaultInstance();
    }

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

    public com.ywt.gapi.user.GetHospMedRecordResponse buildPartial() {
      com.ywt.gapi.user.GetHospMedRecordResponse result = new com.ywt.gapi.user.GetHospMedRecordResponse(this);
      int from_bitField0_ = bitField0_;
      int to_bitField0_ = 0;
      result.code_ = code_;
      result.info_ = info_;
      if (hospInspectionReportBuilder_ == null) {
        if (((bitField0_ & 0x00000004) == 0x00000004)) {
          hospInspectionReport_ = java.util.Collections.unmodifiableList(hospInspectionReport_);
          bitField0_ = (bitField0_ & ~0x00000004);
        }
        result.hospInspectionReport_ = hospInspectionReport_;
      } else {
        result.hospInspectionReport_ = hospInspectionReportBuilder_.build();
      }
      if (hospLaboratoryReportBuilder_ == null) {
        if (((bitField0_ & 0x00000008) == 0x00000008)) {
          hospLaboratoryReport_ = java.util.Collections.unmodifiableList(hospLaboratoryReport_);
          bitField0_ = (bitField0_ & ~0x00000008);
        }
        result.hospLaboratoryReport_ = hospLaboratoryReport_;
      } else {
        result.hospLaboratoryReport_ = hospLaboratoryReportBuilder_.build();
      }
      if (opMedRecordBuilder_ == null) {
        if (((bitField0_ & 0x00000010) == 0x00000010)) {
          opMedRecord_ = java.util.Collections.unmodifiableList(opMedRecord_);
          bitField0_ = (bitField0_ & ~0x00000010);
        }
        result.opMedRecord_ = opMedRecord_;
      } else {
        result.opMedRecord_ = opMedRecordBuilder_.build();
      }
      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.user.GetHospMedRecordResponse) {
        return mergeFrom((com.ywt.gapi.user.GetHospMedRecordResponse)other);
      } else {
        super.mergeFrom(other);
        return this;
      }
    }

    public Builder mergeFrom(com.ywt.gapi.user.GetHospMedRecordResponse other) {
      if (other == com.ywt.gapi.user.GetHospMedRecordResponse.getDefaultInstance()) return this;
      if (other.getCode() != 0) {
        setCode(other.getCode());
      }
      if (!other.getInfo().isEmpty()) {
        info_ = other.info_;
        onChanged();
      }
      if (hospInspectionReportBuilder_ == null) {
        if (!other.hospInspectionReport_.isEmpty()) {
          if (hospInspectionReport_.isEmpty()) {
            hospInspectionReport_ = other.hospInspectionReport_;
            bitField0_ = (bitField0_ & ~0x00000004);
          } else {
            ensureHospInspectionReportIsMutable();
            hospInspectionReport_.addAll(other.hospInspectionReport_);
          }
          onChanged();
        }
      } else {
        if (!other.hospInspectionReport_.isEmpty()) {
          if (hospInspectionReportBuilder_.isEmpty()) {
            hospInspectionReportBuilder_.dispose();
            hospInspectionReportBuilder_ = null;
            hospInspectionReport_ = other.hospInspectionReport_;
            bitField0_ = (bitField0_ & ~0x00000004);
            hospInspectionReportBuilder_ = 
              com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
                 getHospInspectionReportFieldBuilder() : null;
          } else {
            hospInspectionReportBuilder_.addAllMessages(other.hospInspectionReport_);
          }
        }
      }
      if (hospLaboratoryReportBuilder_ == null) {
        if (!other.hospLaboratoryReport_.isEmpty()) {
          if (hospLaboratoryReport_.isEmpty()) {
            hospLaboratoryReport_ = other.hospLaboratoryReport_;
            bitField0_ = (bitField0_ & ~0x00000008);
          } else {
            ensureHospLaboratoryReportIsMutable();
            hospLaboratoryReport_.addAll(other.hospLaboratoryReport_);
          }
          onChanged();
        }
      } else {
        if (!other.hospLaboratoryReport_.isEmpty()) {
          if (hospLaboratoryReportBuilder_.isEmpty()) {
            hospLaboratoryReportBuilder_.dispose();
            hospLaboratoryReportBuilder_ = null;
            hospLaboratoryReport_ = other.hospLaboratoryReport_;
            bitField0_ = (bitField0_ & ~0x00000008);
            hospLaboratoryReportBuilder_ = 
              com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
                 getHospLaboratoryReportFieldBuilder() : null;
          } else {
            hospLaboratoryReportBuilder_.addAllMessages(other.hospLaboratoryReport_);
          }
        }
      }
      if (opMedRecordBuilder_ == null) {
        if (!other.opMedRecord_.isEmpty()) {
          if (opMedRecord_.isEmpty()) {
            opMedRecord_ = other.opMedRecord_;
            bitField0_ = (bitField0_ & ~0x00000010);
          } else {
            ensureOpMedRecordIsMutable();
            opMedRecord_.addAll(other.opMedRecord_);
          }
          onChanged();
        }
      } else {
        if (!other.opMedRecord_.isEmpty()) {
          if (opMedRecordBuilder_.isEmpty()) {
            opMedRecordBuilder_.dispose();
            opMedRecordBuilder_ = null;
            opMedRecord_ = other.opMedRecord_;
            bitField0_ = (bitField0_ & ~0x00000010);
            opMedRecordBuilder_ = 
              com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
                 getOpMedRecordFieldBuilder() : null;
          } else {
            opMedRecordBuilder_.addAllMessages(other.opMedRecord_);
          }
        }
      }
      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.user.GetHospMedRecordResponse parsedMessage = null;
      try {
        parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
      } catch (com.google.protobuf.InvalidProtocolBufferException e) {
        parsedMessage = (com.ywt.gapi.user.GetHospMedRecordResponse) 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 info_ = "";
    /**
     * <code>string info = 2;</code>
     */
    public java.lang.String getInfo() {
      java.lang.Object ref = info_;
      if (!(ref instanceof java.lang.String)) {
        com.google.protobuf.ByteString bs =
            (com.google.protobuf.ByteString) ref;
        java.lang.String s = bs.toStringUtf8();
        info_ = s;
        return s;
      } else {
        return (java.lang.String) ref;
      }
    }
    /**
     * <code>string info = 2;</code>
     */
    public com.google.protobuf.ByteString
        getInfoBytes() {
      java.lang.Object ref = info_;
      if (ref instanceof String) {
        com.google.protobuf.ByteString b = 
            com.google.protobuf.ByteString.copyFromUtf8(
                (java.lang.String) ref);
        info_ = b;
        return b;
      } else {
        return (com.google.protobuf.ByteString) ref;
      }
    }
    /**
     * <code>string info = 2;</code>
     */
    public Builder setInfo(
        java.lang.String value) {
      if (value == null) {
    throw new NullPointerException();
  }
  
      info_ = value;
      onChanged();
      return this;
    }
    /**
     * <code>string info = 2;</code>
     */
    public Builder clearInfo() {
      
      info_ = getDefaultInstance().getInfo();
      onChanged();
      return this;
    }
    /**
     * <code>string info = 2;</code>
     */
    public Builder setInfoBytes(
        com.google.protobuf.ByteString value) {
      if (value == null) {
    throw new NullPointerException();
  }
  checkByteStringIsUtf8(value);
      
      info_ = value;
      onChanged();
      return this;
    }

    private java.util.List<com.ywt.gapi.user.HospInspectionReport> hospInspectionReport_ =
      java.util.Collections.emptyList();
    private void ensureHospInspectionReportIsMutable() {
      if (!((bitField0_ & 0x00000004) == 0x00000004)) {
        hospInspectionReport_ = new java.util.ArrayList<com.ywt.gapi.user.HospInspectionReport>(hospInspectionReport_);
        bitField0_ |= 0x00000004;
       }
    }

    private com.google.protobuf.RepeatedFieldBuilderV3<
        com.ywt.gapi.user.HospInspectionReport, com.ywt.gapi.user.HospInspectionReport.Builder, com.ywt.gapi.user.HospInspectionReportOrBuilder> hospInspectionReportBuilder_;

    /**
     * <code>repeated .com.ywt.gapi.user.HospInspectionReport hospInspectionReport = 3;</code>
     */
    public java.util.List<com.ywt.gapi.user.HospInspectionReport> getHospInspectionReportList() {
      if (hospInspectionReportBuilder_ == null) {
        return java.util.Collections.unmodifiableList(hospInspectionReport_);
      } else {
        return hospInspectionReportBuilder_.getMessageList();
      }
    }
    /**
     * <code>repeated .com.ywt.gapi.user.HospInspectionReport hospInspectionReport = 3;</code>
     */
    public int getHospInspectionReportCount() {
      if (hospInspectionReportBuilder_ == null) {
        return hospInspectionReport_.size();
      } else {
        return hospInspectionReportBuilder_.getCount();
      }
    }
    /**
     * <code>repeated .com.ywt.gapi.user.HospInspectionReport hospInspectionReport = 3;</code>
     */
    public com.ywt.gapi.user.HospInspectionReport getHospInspectionReport(int index) {
      if (hospInspectionReportBuilder_ == null) {
        return hospInspectionReport_.get(index);
      } else {
        return hospInspectionReportBuilder_.getMessage(index);
      }
    }
    /**
     * <code>repeated .com.ywt.gapi.user.HospInspectionReport hospInspectionReport = 3;</code>
     */
    public Builder setHospInspectionReport(
        int index, com.ywt.gapi.user.HospInspectionReport value) {
      if (hospInspectionReportBuilder_ == null) {
        if (value == null) {
          throw new NullPointerException();
        }
        ensureHospInspectionReportIsMutable();
        hospInspectionReport_.set(index, value);
        onChanged();
      } else {
        hospInspectionReportBuilder_.setMessage(index, value);
      }
      return this;
    }
    /**
     * <code>repeated .com.ywt.gapi.user.HospInspectionReport hospInspectionReport = 3;</code>
     */
    public Builder setHospInspectionReport(
        int index, com.ywt.gapi.user.HospInspectionReport.Builder builderForValue) {
      if (hospInspectionReportBuilder_ == null) {
        ensureHospInspectionReportIsMutable();
        hospInspectionReport_.set(index, builderForValue.build());
        onChanged();
      } else {
        hospInspectionReportBuilder_.setMessage(index, builderForValue.build());
      }
      return this;
    }
    /**
     * <code>repeated .com.ywt.gapi.user.HospInspectionReport hospInspectionReport = 3;</code>
     */
    public Builder addHospInspectionReport(com.ywt.gapi.user.HospInspectionReport value) {
      if (hospInspectionReportBuilder_ == null) {
        if (value == null) {
          throw new NullPointerException();
        }
        ensureHospInspectionReportIsMutable();
        hospInspectionReport_.add(value);
        onChanged();
      } else {
        hospInspectionReportBuilder_.addMessage(value);
      }
      return this;
    }
    /**
     * <code>repeated .com.ywt.gapi.user.HospInspectionReport hospInspectionReport = 3;</code>
     */
    public Builder addHospInspectionReport(
        int index, com.ywt.gapi.user.HospInspectionReport value) {
      if (hospInspectionReportBuilder_ == null) {
        if (value == null) {
          throw new NullPointerException();
        }
        ensureHospInspectionReportIsMutable();
        hospInspectionReport_.add(index, value);
        onChanged();
      } else {
        hospInspectionReportBuilder_.addMessage(index, value);
      }
      return this;
    }
    /**
     * <code>repeated .com.ywt.gapi.user.HospInspectionReport hospInspectionReport = 3;</code>
     */
    public Builder addHospInspectionReport(
        com.ywt.gapi.user.HospInspectionReport.Builder builderForValue) {
      if (hospInspectionReportBuilder_ == null) {
        ensureHospInspectionReportIsMutable();
        hospInspectionReport_.add(builderForValue.build());
        onChanged();
      } else {
        hospInspectionReportBuilder_.addMessage(builderForValue.build());
      }
      return this;
    }
    /**
     * <code>repeated .com.ywt.gapi.user.HospInspectionReport hospInspectionReport = 3;</code>
     */
    public Builder addHospInspectionReport(
        int index, com.ywt.gapi.user.HospInspectionReport.Builder builderForValue) {
      if (hospInspectionReportBuilder_ == null) {
        ensureHospInspectionReportIsMutable();
        hospInspectionReport_.add(index, builderForValue.build());
        onChanged();
      } else {
        hospInspectionReportBuilder_.addMessage(index, builderForValue.build());
      }
      return this;
    }
    /**
     * <code>repeated .com.ywt.gapi.user.HospInspectionReport hospInspectionReport = 3;</code>
     */
    public Builder addAllHospInspectionReport(
        java.lang.Iterable<? extends com.ywt.gapi.user.HospInspectionReport> values) {
      if (hospInspectionReportBuilder_ == null) {
        ensureHospInspectionReportIsMutable();
        com.google.protobuf.AbstractMessageLite.Builder.addAll(
            values, hospInspectionReport_);
        onChanged();
      } else {
        hospInspectionReportBuilder_.addAllMessages(values);
      }
      return this;
    }
    /**
     * <code>repeated .com.ywt.gapi.user.HospInspectionReport hospInspectionReport = 3;</code>
     */
    public Builder clearHospInspectionReport() {
      if (hospInspectionReportBuilder_ == null) {
        hospInspectionReport_ = java.util.Collections.emptyList();
        bitField0_ = (bitField0_ & ~0x00000004);
        onChanged();
      } else {
        hospInspectionReportBuilder_.clear();
      }
      return this;
    }
    /**
     * <code>repeated .com.ywt.gapi.user.HospInspectionReport hospInspectionReport = 3;</code>
     */
    public Builder removeHospInspectionReport(int index) {
      if (hospInspectionReportBuilder_ == null) {
        ensureHospInspectionReportIsMutable();
        hospInspectionReport_.remove(index);
        onChanged();
      } else {
        hospInspectionReportBuilder_.remove(index);
      }
      return this;
    }
    /**
     * <code>repeated .com.ywt.gapi.user.HospInspectionReport hospInspectionReport = 3;</code>
     */
    public com.ywt.gapi.user.HospInspectionReport.Builder getHospInspectionReportBuilder(
        int index) {
      return getHospInspectionReportFieldBuilder().getBuilder(index);
    }
    /**
     * <code>repeated .com.ywt.gapi.user.HospInspectionReport hospInspectionReport = 3;</code>
     */
    public com.ywt.gapi.user.HospInspectionReportOrBuilder getHospInspectionReportOrBuilder(
        int index) {
      if (hospInspectionReportBuilder_ == null) {
        return hospInspectionReport_.get(index);  } else {
        return hospInspectionReportBuilder_.getMessageOrBuilder(index);
      }
    }
    /**
     * <code>repeated .com.ywt.gapi.user.HospInspectionReport hospInspectionReport = 3;</code>
     */
    public java.util.List<? extends com.ywt.gapi.user.HospInspectionReportOrBuilder> 
         getHospInspectionReportOrBuilderList() {
      if (hospInspectionReportBuilder_ != null) {
        return hospInspectionReportBuilder_.getMessageOrBuilderList();
      } else {
        return java.util.Collections.unmodifiableList(hospInspectionReport_);
      }
    }
    /**
     * <code>repeated .com.ywt.gapi.user.HospInspectionReport hospInspectionReport = 3;</code>
     */
    public com.ywt.gapi.user.HospInspectionReport.Builder addHospInspectionReportBuilder() {
      return getHospInspectionReportFieldBuilder().addBuilder(
          com.ywt.gapi.user.HospInspectionReport.getDefaultInstance());
    }
    /**
     * <code>repeated .com.ywt.gapi.user.HospInspectionReport hospInspectionReport = 3;</code>
     */
    public com.ywt.gapi.user.HospInspectionReport.Builder addHospInspectionReportBuilder(
        int index) {
      return getHospInspectionReportFieldBuilder().addBuilder(
          index, com.ywt.gapi.user.HospInspectionReport.getDefaultInstance());
    }
    /**
     * <code>repeated .com.ywt.gapi.user.HospInspectionReport hospInspectionReport = 3;</code>
     */
    public java.util.List<com.ywt.gapi.user.HospInspectionReport.Builder> 
         getHospInspectionReportBuilderList() {
      return getHospInspectionReportFieldBuilder().getBuilderList();
    }
    private com.google.protobuf.RepeatedFieldBuilderV3<
        com.ywt.gapi.user.HospInspectionReport, com.ywt.gapi.user.HospInspectionReport.Builder, com.ywt.gapi.user.HospInspectionReportOrBuilder> 
        getHospInspectionReportFieldBuilder() {
      if (hospInspectionReportBuilder_ == null) {
        hospInspectionReportBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
            com.ywt.gapi.user.HospInspectionReport, com.ywt.gapi.user.HospInspectionReport.Builder, com.ywt.gapi.user.HospInspectionReportOrBuilder>(
                hospInspectionReport_,
                ((bitField0_ & 0x00000004) == 0x00000004),
                getParentForChildren(),
                isClean());
        hospInspectionReport_ = null;
      }
      return hospInspectionReportBuilder_;
    }

    private java.util.List<com.ywt.gapi.user.HospLaboratoryReport> hospLaboratoryReport_ =
      java.util.Collections.emptyList();
    private void ensureHospLaboratoryReportIsMutable() {
      if (!((bitField0_ & 0x00000008) == 0x00000008)) {
        hospLaboratoryReport_ = new java.util.ArrayList<com.ywt.gapi.user.HospLaboratoryReport>(hospLaboratoryReport_);
        bitField0_ |= 0x00000008;
       }
    }

    private com.google.protobuf.RepeatedFieldBuilderV3<
        com.ywt.gapi.user.HospLaboratoryReport, com.ywt.gapi.user.HospLaboratoryReport.Builder, com.ywt.gapi.user.HospLaboratoryReportOrBuilder> hospLaboratoryReportBuilder_;

    /**
     * <code>repeated .com.ywt.gapi.user.HospLaboratoryReport hospLaboratoryReport = 4;</code>
     */
    public java.util.List<com.ywt.gapi.user.HospLaboratoryReport> getHospLaboratoryReportList() {
      if (hospLaboratoryReportBuilder_ == null) {
        return java.util.Collections.unmodifiableList(hospLaboratoryReport_);
      } else {
        return hospLaboratoryReportBuilder_.getMessageList();
      }
    }
    /**
     * <code>repeated .com.ywt.gapi.user.HospLaboratoryReport hospLaboratoryReport = 4;</code>
     */
    public int getHospLaboratoryReportCount() {
      if (hospLaboratoryReportBuilder_ == null) {
        return hospLaboratoryReport_.size();
      } else {
        return hospLaboratoryReportBuilder_.getCount();
      }
    }
    /**
     * <code>repeated .com.ywt.gapi.user.HospLaboratoryReport hospLaboratoryReport = 4;</code>
     */
    public com.ywt.gapi.user.HospLaboratoryReport getHospLaboratoryReport(int index) {
      if (hospLaboratoryReportBuilder_ == null) {
        return hospLaboratoryReport_.get(index);
      } else {
        return hospLaboratoryReportBuilder_.getMessage(index);
      }
    }
    /**
     * <code>repeated .com.ywt.gapi.user.HospLaboratoryReport hospLaboratoryReport = 4;</code>
     */
    public Builder setHospLaboratoryReport(
        int index, com.ywt.gapi.user.HospLaboratoryReport value) {
      if (hospLaboratoryReportBuilder_ == null) {
        if (value == null) {
          throw new NullPointerException();
        }
        ensureHospLaboratoryReportIsMutable();
        hospLaboratoryReport_.set(index, value);
        onChanged();
      } else {
        hospLaboratoryReportBuilder_.setMessage(index, value);
      }
      return this;
    }
    /**
     * <code>repeated .com.ywt.gapi.user.HospLaboratoryReport hospLaboratoryReport = 4;</code>
     */
    public Builder setHospLaboratoryReport(
        int index, com.ywt.gapi.user.HospLaboratoryReport.Builder builderForValue) {
      if (hospLaboratoryReportBuilder_ == null) {
        ensureHospLaboratoryReportIsMutable();
        hospLaboratoryReport_.set(index, builderForValue.build());
        onChanged();
      } else {
        hospLaboratoryReportBuilder_.setMessage(index, builderForValue.build());
      }
      return this;
    }
    /**
     * <code>repeated .com.ywt.gapi.user.HospLaboratoryReport hospLaboratoryReport = 4;</code>
     */
    public Builder addHospLaboratoryReport(com.ywt.gapi.user.HospLaboratoryReport value) {
      if (hospLaboratoryReportBuilder_ == null) {
        if (value == null) {
          throw new NullPointerException();
        }
        ensureHospLaboratoryReportIsMutable();
        hospLaboratoryReport_.add(value);
        onChanged();
      } else {
        hospLaboratoryReportBuilder_.addMessage(value);
      }
      return this;
    }
    /**
     * <code>repeated .com.ywt.gapi.user.HospLaboratoryReport hospLaboratoryReport = 4;</code>
     */
    public Builder addHospLaboratoryReport(
        int index, com.ywt.gapi.user.HospLaboratoryReport value) {
      if (hospLaboratoryReportBuilder_ == null) {
        if (value == null) {
          throw new NullPointerException();
        }
        ensureHospLaboratoryReportIsMutable();
        hospLaboratoryReport_.add(index, value);
        onChanged();
      } else {
        hospLaboratoryReportBuilder_.addMessage(index, value);
      }
      return this;
    }
    /**
     * <code>repeated .com.ywt.gapi.user.HospLaboratoryReport hospLaboratoryReport = 4;</code>
     */
    public Builder addHospLaboratoryReport(
        com.ywt.gapi.user.HospLaboratoryReport.Builder builderForValue) {
      if (hospLaboratoryReportBuilder_ == null) {
        ensureHospLaboratoryReportIsMutable();
        hospLaboratoryReport_.add(builderForValue.build());
        onChanged();
      } else {
        hospLaboratoryReportBuilder_.addMessage(builderForValue.build());
      }
      return this;
    }
    /**
     * <code>repeated .com.ywt.gapi.user.HospLaboratoryReport hospLaboratoryReport = 4;</code>
     */
    public Builder addHospLaboratoryReport(
        int index, com.ywt.gapi.user.HospLaboratoryReport.Builder builderForValue) {
      if (hospLaboratoryReportBuilder_ == null) {
        ensureHospLaboratoryReportIsMutable();
        hospLaboratoryReport_.add(index, builderForValue.build());
        onChanged();
      } else {
        hospLaboratoryReportBuilder_.addMessage(index, builderForValue.build());
      }
      return this;
    }
    /**
     * <code>repeated .com.ywt.gapi.user.HospLaboratoryReport hospLaboratoryReport = 4;</code>
     */
    public Builder addAllHospLaboratoryReport(
        java.lang.Iterable<? extends com.ywt.gapi.user.HospLaboratoryReport> values) {
      if (hospLaboratoryReportBuilder_ == null) {
        ensureHospLaboratoryReportIsMutable();
        com.google.protobuf.AbstractMessageLite.Builder.addAll(
            values, hospLaboratoryReport_);
        onChanged();
      } else {
        hospLaboratoryReportBuilder_.addAllMessages(values);
      }
      return this;
    }
    /**
     * <code>repeated .com.ywt.gapi.user.HospLaboratoryReport hospLaboratoryReport = 4;</code>
     */
    public Builder clearHospLaboratoryReport() {
      if (hospLaboratoryReportBuilder_ == null) {
        hospLaboratoryReport_ = java.util.Collections.emptyList();
        bitField0_ = (bitField0_ & ~0x00000008);
        onChanged();
      } else {
        hospLaboratoryReportBuilder_.clear();
      }
      return this;
    }
    /**
     * <code>repeated .com.ywt.gapi.user.HospLaboratoryReport hospLaboratoryReport = 4;</code>
     */
    public Builder removeHospLaboratoryReport(int index) {
      if (hospLaboratoryReportBuilder_ == null) {
        ensureHospLaboratoryReportIsMutable();
        hospLaboratoryReport_.remove(index);
        onChanged();
      } else {
        hospLaboratoryReportBuilder_.remove(index);
      }
      return this;
    }
    /**
     * <code>repeated .com.ywt.gapi.user.HospLaboratoryReport hospLaboratoryReport = 4;</code>
     */
    public com.ywt.gapi.user.HospLaboratoryReport.Builder getHospLaboratoryReportBuilder(
        int index) {
      return getHospLaboratoryReportFieldBuilder().getBuilder(index);
    }
    /**
     * <code>repeated .com.ywt.gapi.user.HospLaboratoryReport hospLaboratoryReport = 4;</code>
     */
    public com.ywt.gapi.user.HospLaboratoryReportOrBuilder getHospLaboratoryReportOrBuilder(
        int index) {
      if (hospLaboratoryReportBuilder_ == null) {
        return hospLaboratoryReport_.get(index);  } else {
        return hospLaboratoryReportBuilder_.getMessageOrBuilder(index);
      }
    }
    /**
     * <code>repeated .com.ywt.gapi.user.HospLaboratoryReport hospLaboratoryReport = 4;</code>
     */
    public java.util.List<? extends com.ywt.gapi.user.HospLaboratoryReportOrBuilder> 
         getHospLaboratoryReportOrBuilderList() {
      if (hospLaboratoryReportBuilder_ != null) {
        return hospLaboratoryReportBuilder_.getMessageOrBuilderList();
      } else {
        return java.util.Collections.unmodifiableList(hospLaboratoryReport_);
      }
    }
    /**
     * <code>repeated .com.ywt.gapi.user.HospLaboratoryReport hospLaboratoryReport = 4;</code>
     */
    public com.ywt.gapi.user.HospLaboratoryReport.Builder addHospLaboratoryReportBuilder() {
      return getHospLaboratoryReportFieldBuilder().addBuilder(
          com.ywt.gapi.user.HospLaboratoryReport.getDefaultInstance());
    }
    /**
     * <code>repeated .com.ywt.gapi.user.HospLaboratoryReport hospLaboratoryReport = 4;</code>
     */
    public com.ywt.gapi.user.HospLaboratoryReport.Builder addHospLaboratoryReportBuilder(
        int index) {
      return getHospLaboratoryReportFieldBuilder().addBuilder(
          index, com.ywt.gapi.user.HospLaboratoryReport.getDefaultInstance());
    }
    /**
     * <code>repeated .com.ywt.gapi.user.HospLaboratoryReport hospLaboratoryReport = 4;</code>
     */
    public java.util.List<com.ywt.gapi.user.HospLaboratoryReport.Builder> 
         getHospLaboratoryReportBuilderList() {
      return getHospLaboratoryReportFieldBuilder().getBuilderList();
    }
    private com.google.protobuf.RepeatedFieldBuilderV3<
        com.ywt.gapi.user.HospLaboratoryReport, com.ywt.gapi.user.HospLaboratoryReport.Builder, com.ywt.gapi.user.HospLaboratoryReportOrBuilder> 
        getHospLaboratoryReportFieldBuilder() {
      if (hospLaboratoryReportBuilder_ == null) {
        hospLaboratoryReportBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
            com.ywt.gapi.user.HospLaboratoryReport, com.ywt.gapi.user.HospLaboratoryReport.Builder, com.ywt.gapi.user.HospLaboratoryReportOrBuilder>(
                hospLaboratoryReport_,
                ((bitField0_ & 0x00000008) == 0x00000008),
                getParentForChildren(),
                isClean());
        hospLaboratoryReport_ = null;
      }
      return hospLaboratoryReportBuilder_;
    }

    private java.util.List<com.ywt.gapi.user.OPMedRecord> opMedRecord_ =
      java.util.Collections.emptyList();
    private void ensureOpMedRecordIsMutable() {
      if (!((bitField0_ & 0x00000010) == 0x00000010)) {
        opMedRecord_ = new java.util.ArrayList<com.ywt.gapi.user.OPMedRecord>(opMedRecord_);
        bitField0_ |= 0x00000010;
       }
    }

    private com.google.protobuf.RepeatedFieldBuilderV3<
        com.ywt.gapi.user.OPMedRecord, com.ywt.gapi.user.OPMedRecord.Builder, com.ywt.gapi.user.OPMedRecordOrBuilder> opMedRecordBuilder_;

    /**
     * <code>repeated .com.ywt.gapi.user.OPMedRecord opMedRecord = 5;</code>
     */
    public java.util.List<com.ywt.gapi.user.OPMedRecord> getOpMedRecordList() {
      if (opMedRecordBuilder_ == null) {
        return java.util.Collections.unmodifiableList(opMedRecord_);
      } else {
        return opMedRecordBuilder_.getMessageList();
      }
    }
    /**
     * <code>repeated .com.ywt.gapi.user.OPMedRecord opMedRecord = 5;</code>
     */
    public int getOpMedRecordCount() {
      if (opMedRecordBuilder_ == null) {
        return opMedRecord_.size();
      } else {
        return opMedRecordBuilder_.getCount();
      }
    }
    /**
     * <code>repeated .com.ywt.gapi.user.OPMedRecord opMedRecord = 5;</code>
     */
    public com.ywt.gapi.user.OPMedRecord getOpMedRecord(int index) {
      if (opMedRecordBuilder_ == null) {
        return opMedRecord_.get(index);
      } else {
        return opMedRecordBuilder_.getMessage(index);
      }
    }
    /**
     * <code>repeated .com.ywt.gapi.user.OPMedRecord opMedRecord = 5;</code>
     */
    public Builder setOpMedRecord(
        int index, com.ywt.gapi.user.OPMedRecord value) {
      if (opMedRecordBuilder_ == null) {
        if (value == null) {
          throw new NullPointerException();
        }
        ensureOpMedRecordIsMutable();
        opMedRecord_.set(index, value);
        onChanged();
      } else {
        opMedRecordBuilder_.setMessage(index, value);
      }
      return this;
    }
    /**
     * <code>repeated .com.ywt.gapi.user.OPMedRecord opMedRecord = 5;</code>
     */
    public Builder setOpMedRecord(
        int index, com.ywt.gapi.user.OPMedRecord.Builder builderForValue) {
      if (opMedRecordBuilder_ == null) {
        ensureOpMedRecordIsMutable();
        opMedRecord_.set(index, builderForValue.build());
        onChanged();
      } else {
        opMedRecordBuilder_.setMessage(index, builderForValue.build());
      }
      return this;
    }
    /**
     * <code>repeated .com.ywt.gapi.user.OPMedRecord opMedRecord = 5;</code>
     */
    public Builder addOpMedRecord(com.ywt.gapi.user.OPMedRecord value) {
      if (opMedRecordBuilder_ == null) {
        if (value == null) {
          throw new NullPointerException();
        }
        ensureOpMedRecordIsMutable();
        opMedRecord_.add(value);
        onChanged();
      } else {
        opMedRecordBuilder_.addMessage(value);
      }
      return this;
    }
    /**
     * <code>repeated .com.ywt.gapi.user.OPMedRecord opMedRecord = 5;</code>
     */
    public Builder addOpMedRecord(
        int index, com.ywt.gapi.user.OPMedRecord value) {
      if (opMedRecordBuilder_ == null) {
        if (value == null) {
          throw new NullPointerException();
        }
        ensureOpMedRecordIsMutable();
        opMedRecord_.add(index, value);
        onChanged();
      } else {
        opMedRecordBuilder_.addMessage(index, value);
      }
      return this;
    }
    /**
     * <code>repeated .com.ywt.gapi.user.OPMedRecord opMedRecord = 5;</code>
     */
    public Builder addOpMedRecord(
        com.ywt.gapi.user.OPMedRecord.Builder builderForValue) {
      if (opMedRecordBuilder_ == null) {
        ensureOpMedRecordIsMutable();
        opMedRecord_.add(builderForValue.build());
        onChanged();
      } else {
        opMedRecordBuilder_.addMessage(builderForValue.build());
      }
      return this;
    }
    /**
     * <code>repeated .com.ywt.gapi.user.OPMedRecord opMedRecord = 5;</code>
     */
    public Builder addOpMedRecord(
        int index, com.ywt.gapi.user.OPMedRecord.Builder builderForValue) {
      if (opMedRecordBuilder_ == null) {
        ensureOpMedRecordIsMutable();
        opMedRecord_.add(index, builderForValue.build());
        onChanged();
      } else {
        opMedRecordBuilder_.addMessage(index, builderForValue.build());
      }
      return this;
    }
    /**
     * <code>repeated .com.ywt.gapi.user.OPMedRecord opMedRecord = 5;</code>
     */
    public Builder addAllOpMedRecord(
        java.lang.Iterable<? extends com.ywt.gapi.user.OPMedRecord> values) {
      if (opMedRecordBuilder_ == null) {
        ensureOpMedRecordIsMutable();
        com.google.protobuf.AbstractMessageLite.Builder.addAll(
            values, opMedRecord_);
        onChanged();
      } else {
        opMedRecordBuilder_.addAllMessages(values);
      }
      return this;
    }
    /**
     * <code>repeated .com.ywt.gapi.user.OPMedRecord opMedRecord = 5;</code>
     */
    public Builder clearOpMedRecord() {
      if (opMedRecordBuilder_ == null) {
        opMedRecord_ = java.util.Collections.emptyList();
        bitField0_ = (bitField0_ & ~0x00000010);
        onChanged();
      } else {
        opMedRecordBuilder_.clear();
      }
      return this;
    }
    /**
     * <code>repeated .com.ywt.gapi.user.OPMedRecord opMedRecord = 5;</code>
     */
    public Builder removeOpMedRecord(int index) {
      if (opMedRecordBuilder_ == null) {
        ensureOpMedRecordIsMutable();
        opMedRecord_.remove(index);
        onChanged();
      } else {
        opMedRecordBuilder_.remove(index);
      }
      return this;
    }
    /**
     * <code>repeated .com.ywt.gapi.user.OPMedRecord opMedRecord = 5;</code>
     */
    public com.ywt.gapi.user.OPMedRecord.Builder getOpMedRecordBuilder(
        int index) {
      return getOpMedRecordFieldBuilder().getBuilder(index);
    }
    /**
     * <code>repeated .com.ywt.gapi.user.OPMedRecord opMedRecord = 5;</code>
     */
    public com.ywt.gapi.user.OPMedRecordOrBuilder getOpMedRecordOrBuilder(
        int index) {
      if (opMedRecordBuilder_ == null) {
        return opMedRecord_.get(index);  } else {
        return opMedRecordBuilder_.getMessageOrBuilder(index);
      }
    }
    /**
     * <code>repeated .com.ywt.gapi.user.OPMedRecord opMedRecord = 5;</code>
     */
    public java.util.List<? extends com.ywt.gapi.user.OPMedRecordOrBuilder> 
         getOpMedRecordOrBuilderList() {
      if (opMedRecordBuilder_ != null) {
        return opMedRecordBuilder_.getMessageOrBuilderList();
      } else {
        return java.util.Collections.unmodifiableList(opMedRecord_);
      }
    }
    /**
     * <code>repeated .com.ywt.gapi.user.OPMedRecord opMedRecord = 5;</code>
     */
    public com.ywt.gapi.user.OPMedRecord.Builder addOpMedRecordBuilder() {
      return getOpMedRecordFieldBuilder().addBuilder(
          com.ywt.gapi.user.OPMedRecord.getDefaultInstance());
    }
    /**
     * <code>repeated .com.ywt.gapi.user.OPMedRecord opMedRecord = 5;</code>
     */
    public com.ywt.gapi.user.OPMedRecord.Builder addOpMedRecordBuilder(
        int index) {
      return getOpMedRecordFieldBuilder().addBuilder(
          index, com.ywt.gapi.user.OPMedRecord.getDefaultInstance());
    }
    /**
     * <code>repeated .com.ywt.gapi.user.OPMedRecord opMedRecord = 5;</code>
     */
    public java.util.List<com.ywt.gapi.user.OPMedRecord.Builder> 
         getOpMedRecordBuilderList() {
      return getOpMedRecordFieldBuilder().getBuilderList();
    }
    private com.google.protobuf.RepeatedFieldBuilderV3<
        com.ywt.gapi.user.OPMedRecord, com.ywt.gapi.user.OPMedRecord.Builder, com.ywt.gapi.user.OPMedRecordOrBuilder> 
        getOpMedRecordFieldBuilder() {
      if (opMedRecordBuilder_ == null) {
        opMedRecordBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
            com.ywt.gapi.user.OPMedRecord, com.ywt.gapi.user.OPMedRecord.Builder, com.ywt.gapi.user.OPMedRecordOrBuilder>(
                opMedRecord_,
                ((bitField0_ & 0x00000010) == 0x00000010),
                getParentForChildren(),
                isClean());
        opMedRecord_ = null;
      }
      return opMedRecordBuilder_;
    }
    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.user.GetHospMedRecordResponse)
  }

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

  public static com.ywt.gapi.user.GetHospMedRecordResponse getDefaultInstance() {
    return DEFAULT_INSTANCE;
  }

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

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

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

  public com.ywt.gapi.user.GetHospMedRecordResponse getDefaultInstanceForType() {
    return DEFAULT_INSTANCE;
  }

}

