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

package com.ywt.gapi.taihe.biz;

/**
 * Protobuf type {@code com.ywt.gapi.taihe.biz.ScreeningTable}
 */
public final class ScreeningTable extends
    com.google.protobuf.GeneratedMessageV3 implements
    // @@protoc_insertion_point(message_implements:com.ywt.gapi.taihe.biz.ScreeningTable)
    ScreeningTableOrBuilder {
private static final long serialVersionUID = 0L;
  // Use ScreeningTable.newBuilder() to construct.
  private ScreeningTable(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {
    super(builder);
  }
  private ScreeningTable() {
    questions_ = java.util.Collections.emptyList();
  }

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

  @java.lang.Override
  public final com.google.protobuf.UnknownFieldSet
  getUnknownFields() {
    return this.unknownFields;
  }
  private ScreeningTable(
      com.google.protobuf.CodedInputStream input,
      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
      throws com.google.protobuf.InvalidProtocolBufferException {
    this();
    if (extensionRegistry == null) {
      throw new java.lang.NullPointerException();
    }
    int mutable_bitField0_ = 0;
    com.google.protobuf.UnknownFieldSet.Builder unknownFields =
        com.google.protobuf.UnknownFieldSet.newBuilder();
    try {
      boolean done = false;
      while (!done) {
        int tag = input.readTag();
        switch (tag) {
          case 0:
            done = true;
            break;
          case 10: {
            com.ywt.gapi.taihe.biz.PatientInfo.Builder subBuilder = null;
            if (patientInfo_ != null) {
              subBuilder = patientInfo_.toBuilder();
            }
            patientInfo_ = input.readMessage(com.ywt.gapi.taihe.biz.PatientInfo.parser(), extensionRegistry);
            if (subBuilder != null) {
              subBuilder.mergeFrom(patientInfo_);
              patientInfo_ = subBuilder.buildPartial();
            }

            break;
          }
          case 18: {
            if (!((mutable_bitField0_ & 0x00000001) != 0)) {
              questions_ = new java.util.ArrayList<com.ywt.gapi.taihe.biz.Question>();
              mutable_bitField0_ |= 0x00000001;
            }
            questions_.add(
                input.readMessage(com.ywt.gapi.taihe.biz.Question.parser(), extensionRegistry));
            break;
          }
          case 24: {

            tableId_ = input.readInt32();
            break;
          }
          default: {
            if (!parseUnknownField(
                input, unknownFields, extensionRegistry, tag)) {
              done = true;
            }
            break;
          }
        }
      }
    } catch (com.google.protobuf.InvalidProtocolBufferException e) {
      throw e.setUnfinishedMessage(this);
    } catch (java.io.IOException e) {
      throw new com.google.protobuf.InvalidProtocolBufferException(
          e).setUnfinishedMessage(this);
    } finally {
      if (((mutable_bitField0_ & 0x00000001) != 0)) {
        questions_ = java.util.Collections.unmodifiableList(questions_);
      }
      this.unknownFields = unknownFields.build();
      makeExtensionsImmutable();
    }
  }
  public static final com.google.protobuf.Descriptors.Descriptor
      getDescriptor() {
    return com.ywt.gapi.taihe.biz.TaiheBizProto.internal_static_com_ywt_gapi_taihe_biz_ScreeningTable_descriptor;
  }

  @java.lang.Override
  protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
      internalGetFieldAccessorTable() {
    return com.ywt.gapi.taihe.biz.TaiheBizProto.internal_static_com_ywt_gapi_taihe_biz_ScreeningTable_fieldAccessorTable
        .ensureFieldAccessorsInitialized(
            com.ywt.gapi.taihe.biz.ScreeningTable.class, com.ywt.gapi.taihe.biz.ScreeningTable.Builder.class);
  }

  public static final int PATIENTINFO_FIELD_NUMBER = 1;
  private com.ywt.gapi.taihe.biz.PatientInfo patientInfo_;
  /**
   * <code>.com.ywt.gapi.taihe.biz.PatientInfo patientInfo = 1;</code>
   * @return Whether the patientInfo field is set.
   */
  @java.lang.Override
  public boolean hasPatientInfo() {
    return patientInfo_ != null;
  }
  /**
   * <code>.com.ywt.gapi.taihe.biz.PatientInfo patientInfo = 1;</code>
   * @return The patientInfo.
   */
  @java.lang.Override
  public com.ywt.gapi.taihe.biz.PatientInfo getPatientInfo() {
    return patientInfo_ == null ? com.ywt.gapi.taihe.biz.PatientInfo.getDefaultInstance() : patientInfo_;
  }
  /**
   * <code>.com.ywt.gapi.taihe.biz.PatientInfo patientInfo = 1;</code>
   */
  @java.lang.Override
  public com.ywt.gapi.taihe.biz.PatientInfoOrBuilder getPatientInfoOrBuilder() {
    return getPatientInfo();
  }

  public static final int QUESTIONS_FIELD_NUMBER = 2;
  private java.util.List<com.ywt.gapi.taihe.biz.Question> questions_;
  /**
   * <code>repeated .com.ywt.gapi.taihe.biz.Question questions = 2;</code>
   */
  @java.lang.Override
  public java.util.List<com.ywt.gapi.taihe.biz.Question> getQuestionsList() {
    return questions_;
  }
  /**
   * <code>repeated .com.ywt.gapi.taihe.biz.Question questions = 2;</code>
   */
  @java.lang.Override
  public java.util.List<? extends com.ywt.gapi.taihe.biz.QuestionOrBuilder> 
      getQuestionsOrBuilderList() {
    return questions_;
  }
  /**
   * <code>repeated .com.ywt.gapi.taihe.biz.Question questions = 2;</code>
   */
  @java.lang.Override
  public int getQuestionsCount() {
    return questions_.size();
  }
  /**
   * <code>repeated .com.ywt.gapi.taihe.biz.Question questions = 2;</code>
   */
  @java.lang.Override
  public com.ywt.gapi.taihe.biz.Question getQuestions(int index) {
    return questions_.get(index);
  }
  /**
   * <code>repeated .com.ywt.gapi.taihe.biz.Question questions = 2;</code>
   */
  @java.lang.Override
  public com.ywt.gapi.taihe.biz.QuestionOrBuilder getQuestionsOrBuilder(
      int index) {
    return questions_.get(index);
  }

  public static final int TABLEID_FIELD_NUMBER = 3;
  private int tableId_;
  /**
   * <pre>
   * 题目 id，大于 0 表示是修改答案
   * </pre>
   *
   * <code>int32 tableId = 3;</code>
   * @return The tableId.
   */
  @java.lang.Override
  public int getTableId() {
    return tableId_;
  }

  private byte memoizedIsInitialized = -1;
  @java.lang.Override
  public final boolean isInitialized() {
    byte isInitialized = memoizedIsInitialized;
    if (isInitialized == 1) return true;
    if (isInitialized == 0) return false;

    memoizedIsInitialized = 1;
    return true;
  }

  @java.lang.Override
  public void writeTo(com.google.protobuf.CodedOutputStream output)
                      throws java.io.IOException {
    if (patientInfo_ != null) {
      output.writeMessage(1, getPatientInfo());
    }
    for (int i = 0; i < questions_.size(); i++) {
      output.writeMessage(2, questions_.get(i));
    }
    if (tableId_ != 0) {
      output.writeInt32(3, tableId_);
    }
    unknownFields.writeTo(output);
  }

  @java.lang.Override
  public int getSerializedSize() {
    int size = memoizedSize;
    if (size != -1) return size;

    size = 0;
    if (patientInfo_ != null) {
      size += com.google.protobuf.CodedOutputStream
        .computeMessageSize(1, getPatientInfo());
    }
    for (int i = 0; i < questions_.size(); i++) {
      size += com.google.protobuf.CodedOutputStream
        .computeMessageSize(2, questions_.get(i));
    }
    if (tableId_ != 0) {
      size += com.google.protobuf.CodedOutputStream
        .computeInt32Size(3, tableId_);
    }
    size += unknownFields.getSerializedSize();
    memoizedSize = size;
    return size;
  }

  @java.lang.Override
  public boolean equals(final java.lang.Object obj) {
    if (obj == this) {
     return true;
    }
    if (!(obj instanceof com.ywt.gapi.taihe.biz.ScreeningTable)) {
      return super.equals(obj);
    }
    com.ywt.gapi.taihe.biz.ScreeningTable other = (com.ywt.gapi.taihe.biz.ScreeningTable) obj;

    if (hasPatientInfo() != other.hasPatientInfo()) return false;
    if (hasPatientInfo()) {
      if (!getPatientInfo()
          .equals(other.getPatientInfo())) return false;
    }
    if (!getQuestionsList()
        .equals(other.getQuestionsList())) return false;
    if (getTableId()
        != other.getTableId()) return false;
    if (!unknownFields.equals(other.unknownFields)) return false;
    return true;
  }

  @java.lang.Override
  public int hashCode() {
    if (memoizedHashCode != 0) {
      return memoizedHashCode;
    }
    int hash = 41;
    hash = (19 * hash) + getDescriptor().hashCode();
    if (hasPatientInfo()) {
      hash = (37 * hash) + PATIENTINFO_FIELD_NUMBER;
      hash = (53 * hash) + getPatientInfo().hashCode();
    }
    if (getQuestionsCount() > 0) {
      hash = (37 * hash) + QUESTIONS_FIELD_NUMBER;
      hash = (53 * hash) + getQuestionsList().hashCode();
    }
    hash = (37 * hash) + TABLEID_FIELD_NUMBER;
    hash = (53 * hash) + getTableId();
    hash = (29 * hash) + unknownFields.hashCode();
    memoizedHashCode = hash;
    return hash;
  }

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

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

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

    @java.lang.Override
    protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
        internalGetFieldAccessorTable() {
      return com.ywt.gapi.taihe.biz.TaiheBizProto.internal_static_com_ywt_gapi_taihe_biz_ScreeningTable_fieldAccessorTable
          .ensureFieldAccessorsInitialized(
              com.ywt.gapi.taihe.biz.ScreeningTable.class, com.ywt.gapi.taihe.biz.ScreeningTable.Builder.class);
    }

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

    private Builder(
        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
      super(parent);
      maybeForceBuilderInitialization();
    }
    private void maybeForceBuilderInitialization() {
      if (com.google.protobuf.GeneratedMessageV3
              .alwaysUseFieldBuilders) {
        getQuestionsFieldBuilder();
      }
    }
    @java.lang.Override
    public Builder clear() {
      super.clear();
      if (patientInfoBuilder_ == null) {
        patientInfo_ = null;
      } else {
        patientInfo_ = null;
        patientInfoBuilder_ = null;
      }
      if (questionsBuilder_ == null) {
        questions_ = java.util.Collections.emptyList();
        bitField0_ = (bitField0_ & ~0x00000001);
      } else {
        questionsBuilder_.clear();
      }
      tableId_ = 0;

      return this;
    }

    @java.lang.Override
    public com.google.protobuf.Descriptors.Descriptor
        getDescriptorForType() {
      return com.ywt.gapi.taihe.biz.TaiheBizProto.internal_static_com_ywt_gapi_taihe_biz_ScreeningTable_descriptor;
    }

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

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

    @java.lang.Override
    public com.ywt.gapi.taihe.biz.ScreeningTable buildPartial() {
      com.ywt.gapi.taihe.biz.ScreeningTable result = new com.ywt.gapi.taihe.biz.ScreeningTable(this);
      int from_bitField0_ = bitField0_;
      if (patientInfoBuilder_ == null) {
        result.patientInfo_ = patientInfo_;
      } else {
        result.patientInfo_ = patientInfoBuilder_.build();
      }
      if (questionsBuilder_ == null) {
        if (((bitField0_ & 0x00000001) != 0)) {
          questions_ = java.util.Collections.unmodifiableList(questions_);
          bitField0_ = (bitField0_ & ~0x00000001);
        }
        result.questions_ = questions_;
      } else {
        result.questions_ = questionsBuilder_.build();
      }
      result.tableId_ = tableId_;
      onBuilt();
      return result;
    }

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

    public Builder mergeFrom(com.ywt.gapi.taihe.biz.ScreeningTable other) {
      if (other == com.ywt.gapi.taihe.biz.ScreeningTable.getDefaultInstance()) return this;
      if (other.hasPatientInfo()) {
        mergePatientInfo(other.getPatientInfo());
      }
      if (questionsBuilder_ == null) {
        if (!other.questions_.isEmpty()) {
          if (questions_.isEmpty()) {
            questions_ = other.questions_;
            bitField0_ = (bitField0_ & ~0x00000001);
          } else {
            ensureQuestionsIsMutable();
            questions_.addAll(other.questions_);
          }
          onChanged();
        }
      } else {
        if (!other.questions_.isEmpty()) {
          if (questionsBuilder_.isEmpty()) {
            questionsBuilder_.dispose();
            questionsBuilder_ = null;
            questions_ = other.questions_;
            bitField0_ = (bitField0_ & ~0x00000001);
            questionsBuilder_ = 
              com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
                 getQuestionsFieldBuilder() : null;
          } else {
            questionsBuilder_.addAllMessages(other.questions_);
          }
        }
      }
      if (other.getTableId() != 0) {
        setTableId(other.getTableId());
      }
      this.mergeUnknownFields(other.unknownFields);
      onChanged();
      return this;
    }

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

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

    private com.ywt.gapi.taihe.biz.PatientInfo patientInfo_;
    private com.google.protobuf.SingleFieldBuilderV3<
        com.ywt.gapi.taihe.biz.PatientInfo, com.ywt.gapi.taihe.biz.PatientInfo.Builder, com.ywt.gapi.taihe.biz.PatientInfoOrBuilder> patientInfoBuilder_;
    /**
     * <code>.com.ywt.gapi.taihe.biz.PatientInfo patientInfo = 1;</code>
     * @return Whether the patientInfo field is set.
     */
    public boolean hasPatientInfo() {
      return patientInfoBuilder_ != null || patientInfo_ != null;
    }
    /**
     * <code>.com.ywt.gapi.taihe.biz.PatientInfo patientInfo = 1;</code>
     * @return The patientInfo.
     */
    public com.ywt.gapi.taihe.biz.PatientInfo getPatientInfo() {
      if (patientInfoBuilder_ == null) {
        return patientInfo_ == null ? com.ywt.gapi.taihe.biz.PatientInfo.getDefaultInstance() : patientInfo_;
      } else {
        return patientInfoBuilder_.getMessage();
      }
    }
    /**
     * <code>.com.ywt.gapi.taihe.biz.PatientInfo patientInfo = 1;</code>
     */
    public Builder setPatientInfo(com.ywt.gapi.taihe.biz.PatientInfo value) {
      if (patientInfoBuilder_ == null) {
        if (value == null) {
          throw new NullPointerException();
        }
        patientInfo_ = value;
        onChanged();
      } else {
        patientInfoBuilder_.setMessage(value);
      }

      return this;
    }
    /**
     * <code>.com.ywt.gapi.taihe.biz.PatientInfo patientInfo = 1;</code>
     */
    public Builder setPatientInfo(
        com.ywt.gapi.taihe.biz.PatientInfo.Builder builderForValue) {
      if (patientInfoBuilder_ == null) {
        patientInfo_ = builderForValue.build();
        onChanged();
      } else {
        patientInfoBuilder_.setMessage(builderForValue.build());
      }

      return this;
    }
    /**
     * <code>.com.ywt.gapi.taihe.biz.PatientInfo patientInfo = 1;</code>
     */
    public Builder mergePatientInfo(com.ywt.gapi.taihe.biz.PatientInfo value) {
      if (patientInfoBuilder_ == null) {
        if (patientInfo_ != null) {
          patientInfo_ =
            com.ywt.gapi.taihe.biz.PatientInfo.newBuilder(patientInfo_).mergeFrom(value).buildPartial();
        } else {
          patientInfo_ = value;
        }
        onChanged();
      } else {
        patientInfoBuilder_.mergeFrom(value);
      }

      return this;
    }
    /**
     * <code>.com.ywt.gapi.taihe.biz.PatientInfo patientInfo = 1;</code>
     */
    public Builder clearPatientInfo() {
      if (patientInfoBuilder_ == null) {
        patientInfo_ = null;
        onChanged();
      } else {
        patientInfo_ = null;
        patientInfoBuilder_ = null;
      }

      return this;
    }
    /**
     * <code>.com.ywt.gapi.taihe.biz.PatientInfo patientInfo = 1;</code>
     */
    public com.ywt.gapi.taihe.biz.PatientInfo.Builder getPatientInfoBuilder() {
      
      onChanged();
      return getPatientInfoFieldBuilder().getBuilder();
    }
    /**
     * <code>.com.ywt.gapi.taihe.biz.PatientInfo patientInfo = 1;</code>
     */
    public com.ywt.gapi.taihe.biz.PatientInfoOrBuilder getPatientInfoOrBuilder() {
      if (patientInfoBuilder_ != null) {
        return patientInfoBuilder_.getMessageOrBuilder();
      } else {
        return patientInfo_ == null ?
            com.ywt.gapi.taihe.biz.PatientInfo.getDefaultInstance() : patientInfo_;
      }
    }
    /**
     * <code>.com.ywt.gapi.taihe.biz.PatientInfo patientInfo = 1;</code>
     */
    private com.google.protobuf.SingleFieldBuilderV3<
        com.ywt.gapi.taihe.biz.PatientInfo, com.ywt.gapi.taihe.biz.PatientInfo.Builder, com.ywt.gapi.taihe.biz.PatientInfoOrBuilder> 
        getPatientInfoFieldBuilder() {
      if (patientInfoBuilder_ == null) {
        patientInfoBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
            com.ywt.gapi.taihe.biz.PatientInfo, com.ywt.gapi.taihe.biz.PatientInfo.Builder, com.ywt.gapi.taihe.biz.PatientInfoOrBuilder>(
                getPatientInfo(),
                getParentForChildren(),
                isClean());
        patientInfo_ = null;
      }
      return patientInfoBuilder_;
    }

    private java.util.List<com.ywt.gapi.taihe.biz.Question> questions_ =
      java.util.Collections.emptyList();
    private void ensureQuestionsIsMutable() {
      if (!((bitField0_ & 0x00000001) != 0)) {
        questions_ = new java.util.ArrayList<com.ywt.gapi.taihe.biz.Question>(questions_);
        bitField0_ |= 0x00000001;
       }
    }

    private com.google.protobuf.RepeatedFieldBuilderV3<
        com.ywt.gapi.taihe.biz.Question, com.ywt.gapi.taihe.biz.Question.Builder, com.ywt.gapi.taihe.biz.QuestionOrBuilder> questionsBuilder_;

    /**
     * <code>repeated .com.ywt.gapi.taihe.biz.Question questions = 2;</code>
     */
    public java.util.List<com.ywt.gapi.taihe.biz.Question> getQuestionsList() {
      if (questionsBuilder_ == null) {
        return java.util.Collections.unmodifiableList(questions_);
      } else {
        return questionsBuilder_.getMessageList();
      }
    }
    /**
     * <code>repeated .com.ywt.gapi.taihe.biz.Question questions = 2;</code>
     */
    public int getQuestionsCount() {
      if (questionsBuilder_ == null) {
        return questions_.size();
      } else {
        return questionsBuilder_.getCount();
      }
    }
    /**
     * <code>repeated .com.ywt.gapi.taihe.biz.Question questions = 2;</code>
     */
    public com.ywt.gapi.taihe.biz.Question getQuestions(int index) {
      if (questionsBuilder_ == null) {
        return questions_.get(index);
      } else {
        return questionsBuilder_.getMessage(index);
      }
    }
    /**
     * <code>repeated .com.ywt.gapi.taihe.biz.Question questions = 2;</code>
     */
    public Builder setQuestions(
        int index, com.ywt.gapi.taihe.biz.Question value) {
      if (questionsBuilder_ == null) {
        if (value == null) {
          throw new NullPointerException();
        }
        ensureQuestionsIsMutable();
        questions_.set(index, value);
        onChanged();
      } else {
        questionsBuilder_.setMessage(index, value);
      }
      return this;
    }
    /**
     * <code>repeated .com.ywt.gapi.taihe.biz.Question questions = 2;</code>
     */
    public Builder setQuestions(
        int index, com.ywt.gapi.taihe.biz.Question.Builder builderForValue) {
      if (questionsBuilder_ == null) {
        ensureQuestionsIsMutable();
        questions_.set(index, builderForValue.build());
        onChanged();
      } else {
        questionsBuilder_.setMessage(index, builderForValue.build());
      }
      return this;
    }
    /**
     * <code>repeated .com.ywt.gapi.taihe.biz.Question questions = 2;</code>
     */
    public Builder addQuestions(com.ywt.gapi.taihe.biz.Question value) {
      if (questionsBuilder_ == null) {
        if (value == null) {
          throw new NullPointerException();
        }
        ensureQuestionsIsMutable();
        questions_.add(value);
        onChanged();
      } else {
        questionsBuilder_.addMessage(value);
      }
      return this;
    }
    /**
     * <code>repeated .com.ywt.gapi.taihe.biz.Question questions = 2;</code>
     */
    public Builder addQuestions(
        int index, com.ywt.gapi.taihe.biz.Question value) {
      if (questionsBuilder_ == null) {
        if (value == null) {
          throw new NullPointerException();
        }
        ensureQuestionsIsMutable();
        questions_.add(index, value);
        onChanged();
      } else {
        questionsBuilder_.addMessage(index, value);
      }
      return this;
    }
    /**
     * <code>repeated .com.ywt.gapi.taihe.biz.Question questions = 2;</code>
     */
    public Builder addQuestions(
        com.ywt.gapi.taihe.biz.Question.Builder builderForValue) {
      if (questionsBuilder_ == null) {
        ensureQuestionsIsMutable();
        questions_.add(builderForValue.build());
        onChanged();
      } else {
        questionsBuilder_.addMessage(builderForValue.build());
      }
      return this;
    }
    /**
     * <code>repeated .com.ywt.gapi.taihe.biz.Question questions = 2;</code>
     */
    public Builder addQuestions(
        int index, com.ywt.gapi.taihe.biz.Question.Builder builderForValue) {
      if (questionsBuilder_ == null) {
        ensureQuestionsIsMutable();
        questions_.add(index, builderForValue.build());
        onChanged();
      } else {
        questionsBuilder_.addMessage(index, builderForValue.build());
      }
      return this;
    }
    /**
     * <code>repeated .com.ywt.gapi.taihe.biz.Question questions = 2;</code>
     */
    public Builder addAllQuestions(
        java.lang.Iterable<? extends com.ywt.gapi.taihe.biz.Question> values) {
      if (questionsBuilder_ == null) {
        ensureQuestionsIsMutable();
        com.google.protobuf.AbstractMessageLite.Builder.addAll(
            values, questions_);
        onChanged();
      } else {
        questionsBuilder_.addAllMessages(values);
      }
      return this;
    }
    /**
     * <code>repeated .com.ywt.gapi.taihe.biz.Question questions = 2;</code>
     */
    public Builder clearQuestions() {
      if (questionsBuilder_ == null) {
        questions_ = java.util.Collections.emptyList();
        bitField0_ = (bitField0_ & ~0x00000001);
        onChanged();
      } else {
        questionsBuilder_.clear();
      }
      return this;
    }
    /**
     * <code>repeated .com.ywt.gapi.taihe.biz.Question questions = 2;</code>
     */
    public Builder removeQuestions(int index) {
      if (questionsBuilder_ == null) {
        ensureQuestionsIsMutable();
        questions_.remove(index);
        onChanged();
      } else {
        questionsBuilder_.remove(index);
      }
      return this;
    }
    /**
     * <code>repeated .com.ywt.gapi.taihe.biz.Question questions = 2;</code>
     */
    public com.ywt.gapi.taihe.biz.Question.Builder getQuestionsBuilder(
        int index) {
      return getQuestionsFieldBuilder().getBuilder(index);
    }
    /**
     * <code>repeated .com.ywt.gapi.taihe.biz.Question questions = 2;</code>
     */
    public com.ywt.gapi.taihe.biz.QuestionOrBuilder getQuestionsOrBuilder(
        int index) {
      if (questionsBuilder_ == null) {
        return questions_.get(index);  } else {
        return questionsBuilder_.getMessageOrBuilder(index);
      }
    }
    /**
     * <code>repeated .com.ywt.gapi.taihe.biz.Question questions = 2;</code>
     */
    public java.util.List<? extends com.ywt.gapi.taihe.biz.QuestionOrBuilder> 
         getQuestionsOrBuilderList() {
      if (questionsBuilder_ != null) {
        return questionsBuilder_.getMessageOrBuilderList();
      } else {
        return java.util.Collections.unmodifiableList(questions_);
      }
    }
    /**
     * <code>repeated .com.ywt.gapi.taihe.biz.Question questions = 2;</code>
     */
    public com.ywt.gapi.taihe.biz.Question.Builder addQuestionsBuilder() {
      return getQuestionsFieldBuilder().addBuilder(
          com.ywt.gapi.taihe.biz.Question.getDefaultInstance());
    }
    /**
     * <code>repeated .com.ywt.gapi.taihe.biz.Question questions = 2;</code>
     */
    public com.ywt.gapi.taihe.biz.Question.Builder addQuestionsBuilder(
        int index) {
      return getQuestionsFieldBuilder().addBuilder(
          index, com.ywt.gapi.taihe.biz.Question.getDefaultInstance());
    }
    /**
     * <code>repeated .com.ywt.gapi.taihe.biz.Question questions = 2;</code>
     */
    public java.util.List<com.ywt.gapi.taihe.biz.Question.Builder> 
         getQuestionsBuilderList() {
      return getQuestionsFieldBuilder().getBuilderList();
    }
    private com.google.protobuf.RepeatedFieldBuilderV3<
        com.ywt.gapi.taihe.biz.Question, com.ywt.gapi.taihe.biz.Question.Builder, com.ywt.gapi.taihe.biz.QuestionOrBuilder> 
        getQuestionsFieldBuilder() {
      if (questionsBuilder_ == null) {
        questionsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
            com.ywt.gapi.taihe.biz.Question, com.ywt.gapi.taihe.biz.Question.Builder, com.ywt.gapi.taihe.biz.QuestionOrBuilder>(
                questions_,
                ((bitField0_ & 0x00000001) != 0),
                getParentForChildren(),
                isClean());
        questions_ = null;
      }
      return questionsBuilder_;
    }

    private int tableId_ ;
    /**
     * <pre>
     * 题目 id，大于 0 表示是修改答案
     * </pre>
     *
     * <code>int32 tableId = 3;</code>
     * @return The tableId.
     */
    @java.lang.Override
    public int getTableId() {
      return tableId_;
    }
    /**
     * <pre>
     * 题目 id，大于 0 表示是修改答案
     * </pre>
     *
     * <code>int32 tableId = 3;</code>
     * @param value The tableId to set.
     * @return This builder for chaining.
     */
    public Builder setTableId(int value) {
      
      tableId_ = value;
      onChanged();
      return this;
    }
    /**
     * <pre>
     * 题目 id，大于 0 表示是修改答案
     * </pre>
     *
     * <code>int32 tableId = 3;</code>
     * @return This builder for chaining.
     */
    public Builder clearTableId() {
      
      tableId_ = 0;
      onChanged();
      return this;
    }
    @java.lang.Override
    public final Builder setUnknownFields(
        final com.google.protobuf.UnknownFieldSet unknownFields) {
      return super.setUnknownFields(unknownFields);
    }

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


    // @@protoc_insertion_point(builder_scope:com.ywt.gapi.taihe.biz.ScreeningTable)
  }

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

  public static com.ywt.gapi.taihe.biz.ScreeningTable getDefaultInstance() {
    return DEFAULT_INSTANCE;
  }

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

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

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

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

}

