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

package com.usoft.credit.rest.api.query.entity;

/**
 * <pre>
 * 个人查询条件
 * </pre>
 *
 * Protobuf type {@code PersonQuery}
 */
public  final class PersonQuery extends
    com.google.protobuf.GeneratedMessageV3 implements
    // @@protoc_insertion_point(message_implements:PersonQuery)
    PersonQueryOrBuilder {
private static final long serialVersionUID = 0L;
  // Use PersonQuery.newBuilder() to construct.
  private PersonQuery(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {
    super(builder);
  }
  private PersonQuery() {
    name_ = "";
    documentNo_ = "";
    subreportIDs_ = "";
    queryReasonID_ = "";
    refID_ = "";
  }

  @Override
  public final com.google.protobuf.UnknownFieldSet
  getUnknownFields() {
    return this.unknownFields;
  }
  private PersonQuery(
      com.google.protobuf.CodedInputStream input,
      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
      throws com.google.protobuf.InvalidProtocolBufferException {
    this();
    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;
          default: {
            if (!parseUnknownFieldProto3(
                input, unknownFields, extensionRegistry, tag)) {
              done = true;
            }
            break;
          }
          case 10: {
            String s = input.readStringRequireUtf8();

            name_ = s;
            break;
          }
          case 18: {
            String s = input.readStringRequireUtf8();

            documentNo_ = s;
            break;
          }
          case 26: {
            String s = input.readStringRequireUtf8();

            subreportIDs_ = s;
            break;
          }
          case 34: {
            String s = input.readStringRequireUtf8();

            queryReasonID_ = s;
            break;
          }
          case 42: {
            String s = input.readStringRequireUtf8();

            refID_ = s;
            break;
          }
        }
      }
    } catch (com.google.protobuf.InvalidProtocolBufferException e) {
      throw e.setUnfinishedMessage(this);
    } catch (java.io.IOException e) {
      throw new com.google.protobuf.InvalidProtocolBufferException(
          e).setUnfinishedMessage(this);
    } finally {
      this.unknownFields = unknownFields.build();
      makeExtensionsImmutable();
    }
  }
  public static final com.google.protobuf.Descriptors.Descriptor
      getDescriptor() {
    return com.usoft.credit.rest.api.query.entity.GrpcQueryEntity.internal_static_PersonQuery_descriptor;
  }

  protected FieldAccessorTable
      internalGetFieldAccessorTable() {
    return com.usoft.credit.rest.api.query.entity.GrpcQueryEntity.internal_static_PersonQuery_fieldAccessorTable
        .ensureFieldAccessorsInitialized(
            PersonQuery.class, Builder.class);
  }

  public static final int NAME_FIELD_NUMBER = 1;
  private volatile Object name_;
  /**
   * <pre>
   * 被查询者姓名
   * </pre>
   *
   * <code>string name = 1;</code>
   */
  public String getName() {
    Object ref = name_;
    if (ref instanceof String) {
      return (String) ref;
    } else {
      com.google.protobuf.ByteString bs = 
          (com.google.protobuf.ByteString) ref;
      String s = bs.toStringUtf8();
      name_ = s;
      return s;
    }
  }
  /**
   * <pre>
   * 被查询者姓名
   * </pre>
   *
   * <code>string name = 1;</code>
   */
  public com.google.protobuf.ByteString
      getNameBytes() {
    Object ref = name_;
    if (ref instanceof String) {
      com.google.protobuf.ByteString b = 
          com.google.protobuf.ByteString.copyFromUtf8(
              (String) ref);
      name_ = b;
      return b;
    } else {
      return (com.google.protobuf.ByteString) ref;
    }
  }

  public static final int DOCUMENTNO_FIELD_NUMBER = 2;
  private volatile Object documentNo_;
  /**
   * <pre>
   *  被查询者证件号码
   * </pre>
   *
   * <code>string documentNo = 2;</code>
   */
  public String getDocumentNo() {
    Object ref = documentNo_;
    if (ref instanceof String) {
      return (String) ref;
    } else {
      com.google.protobuf.ByteString bs = 
          (com.google.protobuf.ByteString) ref;
      String s = bs.toStringUtf8();
      documentNo_ = s;
      return s;
    }
  }
  /**
   * <pre>
   *  被查询者证件号码
   * </pre>
   *
   * <code>string documentNo = 2;</code>
   */
  public com.google.protobuf.ByteString
      getDocumentNoBytes() {
    Object ref = documentNo_;
    if (ref instanceof String) {
      com.google.protobuf.ByteString b = 
          com.google.protobuf.ByteString.copyFromUtf8(
              (String) ref);
      documentNo_ = b;
      return b;
    } else {
      return (com.google.protobuf.ByteString) ref;
    }
  }

  public static final int SUBREPORTIDS_FIELD_NUMBER = 3;
  private volatile Object subreportIDs_;
  /**
   * <pre>
   *  查询的收费子报告类型ID
   * </pre>
   *
   * <code>string subreportIDs = 3;</code>
   */
  public String getSubreportIDs() {
    Object ref = subreportIDs_;
    if (ref instanceof String) {
      return (String) ref;
    } else {
      com.google.protobuf.ByteString bs = 
          (com.google.protobuf.ByteString) ref;
      String s = bs.toStringUtf8();
      subreportIDs_ = s;
      return s;
    }
  }
  /**
   * <pre>
   *  查询的收费子报告类型ID
   * </pre>
   *
   * <code>string subreportIDs = 3;</code>
   */
  public com.google.protobuf.ByteString
      getSubreportIDsBytes() {
    Object ref = subreportIDs_;
    if (ref instanceof String) {
      com.google.protobuf.ByteString b = 
          com.google.protobuf.ByteString.copyFromUtf8(
              (String) ref);
      subreportIDs_ = b;
      return b;
    } else {
      return (com.google.protobuf.ByteString) ref;
    }
  }

  public static final int QUERYREASONID_FIELD_NUMBER = 4;
  private volatile Object queryReasonID_;
  /**
   * <pre>
   * 查询原因ID
   * </pre>
   *
   * <code>string queryReasonID = 4;</code>
   */
  public String getQueryReasonID() {
    Object ref = queryReasonID_;
    if (ref instanceof String) {
      return (String) ref;
    } else {
      com.google.protobuf.ByteString bs = 
          (com.google.protobuf.ByteString) ref;
      String s = bs.toStringUtf8();
      queryReasonID_ = s;
      return s;
    }
  }
  /**
   * <pre>
   * 查询原因ID
   * </pre>
   *
   * <code>string queryReasonID = 4;</code>
   */
  public com.google.protobuf.ByteString
      getQueryReasonIDBytes() {
    Object ref = queryReasonID_;
    if (ref instanceof String) {
      com.google.protobuf.ByteString b = 
          com.google.protobuf.ByteString.copyFromUtf8(
              (String) ref);
      queryReasonID_ = b;
      return b;
    } else {
      return (com.google.protobuf.ByteString) ref;
    }
  }

  public static final int REFID_FIELD_NUMBER = 5;
  private volatile Object refID_;
  /**
   * <pre>
   *  引用ID
   * </pre>
   *
   * <code>string refID = 5;</code>
   */
  public String getRefID() {
    Object ref = refID_;
    if (ref instanceof String) {
      return (String) ref;
    } else {
      com.google.protobuf.ByteString bs = 
          (com.google.protobuf.ByteString) ref;
      String s = bs.toStringUtf8();
      refID_ = s;
      return s;
    }
  }
  /**
   * <pre>
   *  引用ID
   * </pre>
   *
   * <code>string refID = 5;</code>
   */
  public com.google.protobuf.ByteString
      getRefIDBytes() {
    Object ref = refID_;
    if (ref instanceof String) {
      com.google.protobuf.ByteString b = 
          com.google.protobuf.ByteString.copyFromUtf8(
              (String) ref);
      refID_ = b;
      return b;
    } else {
      return (com.google.protobuf.ByteString) ref;
    }
  }

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

    memoizedIsInitialized = 1;
    return true;
  }

  public void writeTo(com.google.protobuf.CodedOutputStream output)
                      throws java.io.IOException {
    if (!getNameBytes().isEmpty()) {
      com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_);
    }
    if (!getDocumentNoBytes().isEmpty()) {
      com.google.protobuf.GeneratedMessageV3.writeString(output, 2, documentNo_);
    }
    if (!getSubreportIDsBytes().isEmpty()) {
      com.google.protobuf.GeneratedMessageV3.writeString(output, 3, subreportIDs_);
    }
    if (!getQueryReasonIDBytes().isEmpty()) {
      com.google.protobuf.GeneratedMessageV3.writeString(output, 4, queryReasonID_);
    }
    if (!getRefIDBytes().isEmpty()) {
      com.google.protobuf.GeneratedMessageV3.writeString(output, 5, refID_);
    }
    unknownFields.writeTo(output);
  }

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

    size = 0;
    if (!getNameBytes().isEmpty()) {
      size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_);
    }
    if (!getDocumentNoBytes().isEmpty()) {
      size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, documentNo_);
    }
    if (!getSubreportIDsBytes().isEmpty()) {
      size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, subreportIDs_);
    }
    if (!getQueryReasonIDBytes().isEmpty()) {
      size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, queryReasonID_);
    }
    if (!getRefIDBytes().isEmpty()) {
      size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, refID_);
    }
    size += unknownFields.getSerializedSize();
    memoizedSize = size;
    return size;
  }

  @Override
  public boolean equals(final Object obj) {
    if (obj == this) {
     return true;
    }
    if (!(obj instanceof PersonQuery)) {
      return super.equals(obj);
    }
    PersonQuery other = (PersonQuery) obj;

    boolean result = true;
    result = result && getName()
        .equals(other.getName());
    result = result && getDocumentNo()
        .equals(other.getDocumentNo());
    result = result && getSubreportIDs()
        .equals(other.getSubreportIDs());
    result = result && getQueryReasonID()
        .equals(other.getQueryReasonID());
    result = result && getRefID()
        .equals(other.getRefID());
    result = result && unknownFields.equals(other.unknownFields);
    return result;
  }

  @Override
  public int hashCode() {
    if (memoizedHashCode != 0) {
      return memoizedHashCode;
    }
    int hash = 41;
    hash = (19 * hash) + getDescriptor().hashCode();
    hash = (37 * hash) + NAME_FIELD_NUMBER;
    hash = (53 * hash) + getName().hashCode();
    hash = (37 * hash) + DOCUMENTNO_FIELD_NUMBER;
    hash = (53 * hash) + getDocumentNo().hashCode();
    hash = (37 * hash) + SUBREPORTIDS_FIELD_NUMBER;
    hash = (53 * hash) + getSubreportIDs().hashCode();
    hash = (37 * hash) + QUERYREASONID_FIELD_NUMBER;
    hash = (53 * hash) + getQueryReasonID().hashCode();
    hash = (37 * hash) + REFID_FIELD_NUMBER;
    hash = (53 * hash) + getRefID().hashCode();
    hash = (29 * hash) + unknownFields.hashCode();
    memoizedHashCode = hash;
    return hash;
  }

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

  @Override
  protected Builder newBuilderForType(
      BuilderParent parent) {
    Builder builder = new Builder(parent);
    return builder;
  }
  /**
   * <pre>
   * 个人查询条件
   * </pre>
   *
   * Protobuf type {@code PersonQuery}
   */
  public static final class Builder extends
      com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements
      // @@protoc_insertion_point(builder_implements:PersonQuery)
      com.usoft.credit.rest.api.query.entity.PersonQueryOrBuilder {
    public static final com.google.protobuf.Descriptors.Descriptor
        getDescriptor() {
      return com.usoft.credit.rest.api.query.entity.GrpcQueryEntity.internal_static_PersonQuery_descriptor;
    }

    protected FieldAccessorTable
        internalGetFieldAccessorTable() {
      return com.usoft.credit.rest.api.query.entity.GrpcQueryEntity.internal_static_PersonQuery_fieldAccessorTable
          .ensureFieldAccessorsInitialized(
              PersonQuery.class, Builder.class);
    }

    // Construct using com.usoft.credit.rest.api.query.entity.PersonQuery.newBuilder()
    private Builder() {
      maybeForceBuilderInitialization();
    }

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

      documentNo_ = "";

      subreportIDs_ = "";

      queryReasonID_ = "";

      refID_ = "";

      return this;
    }

    public com.google.protobuf.Descriptors.Descriptor
        getDescriptorForType() {
      return com.usoft.credit.rest.api.query.entity.GrpcQueryEntity.internal_static_PersonQuery_descriptor;
    }

    public PersonQuery getDefaultInstanceForType() {
      return PersonQuery.getDefaultInstance();
    }

    public PersonQuery build() {
      PersonQuery result = buildPartial();
      if (!result.isInitialized()) {
        throw newUninitializedMessageException(result);
      }
      return result;
    }

    public PersonQuery buildPartial() {
      PersonQuery result = new PersonQuery(this);
      result.name_ = name_;
      result.documentNo_ = documentNo_;
      result.subreportIDs_ = subreportIDs_;
      result.queryReasonID_ = queryReasonID_;
      result.refID_ = refID_;
      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 PersonQuery) {
        return mergeFrom((PersonQuery)other);
      } else {
        super.mergeFrom(other);
        return this;
      }
    }

    public Builder mergeFrom(PersonQuery other) {
      if (other == PersonQuery.getDefaultInstance()) return this;
      if (!other.getName().isEmpty()) {
        name_ = other.name_;
        onChanged();
      }
      if (!other.getDocumentNo().isEmpty()) {
        documentNo_ = other.documentNo_;
        onChanged();
      }
      if (!other.getSubreportIDs().isEmpty()) {
        subreportIDs_ = other.subreportIDs_;
        onChanged();
      }
      if (!other.getQueryReasonID().isEmpty()) {
        queryReasonID_ = other.queryReasonID_;
        onChanged();
      }
      if (!other.getRefID().isEmpty()) {
        refID_ = other.refID_;
        onChanged();
      }
      this.mergeUnknownFields(other.unknownFields);
      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 {
      PersonQuery parsedMessage = null;
      try {
        parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
      } catch (com.google.protobuf.InvalidProtocolBufferException e) {
        parsedMessage = (PersonQuery) e.getUnfinishedMessage();
        throw e.unwrapIOException();
      } finally {
        if (parsedMessage != null) {
          mergeFrom(parsedMessage);
        }
      }
      return this;
    }

    private Object name_ = "";
    /**
     * <pre>
     * 被查询者姓名
     * </pre>
     *
     * <code>string name = 1;</code>
     */
    public String getName() {
      Object ref = name_;
      if (!(ref instanceof String)) {
        com.google.protobuf.ByteString bs =
            (com.google.protobuf.ByteString) ref;
        String s = bs.toStringUtf8();
        name_ = s;
        return s;
      } else {
        return (String) ref;
      }
    }
    /**
     * <pre>
     * 被查询者姓名
     * </pre>
     *
     * <code>string name = 1;</code>
     */
    public com.google.protobuf.ByteString
        getNameBytes() {
      Object ref = name_;
      if (ref instanceof String) {
        com.google.protobuf.ByteString b = 
            com.google.protobuf.ByteString.copyFromUtf8(
                (String) ref);
        name_ = b;
        return b;
      } else {
        return (com.google.protobuf.ByteString) ref;
      }
    }
    /**
     * <pre>
     * 被查询者姓名
     * </pre>
     *
     * <code>string name = 1;</code>
     */
    public Builder setName(
        String value) {
      if (value == null) {
    throw new NullPointerException();
  }
  
      name_ = value;
      onChanged();
      return this;
    }
    /**
     * <pre>
     * 被查询者姓名
     * </pre>
     *
     * <code>string name = 1;</code>
     */
    public Builder clearName() {
      
      name_ = getDefaultInstance().getName();
      onChanged();
      return this;
    }
    /**
     * <pre>
     * 被查询者姓名
     * </pre>
     *
     * <code>string name = 1;</code>
     */
    public Builder setNameBytes(
        com.google.protobuf.ByteString value) {
      if (value == null) {
    throw new NullPointerException();
  }
  checkByteStringIsUtf8(value);
      
      name_ = value;
      onChanged();
      return this;
    }

    private Object documentNo_ = "";
    /**
     * <pre>
     *  被查询者证件号码
     * </pre>
     *
     * <code>string documentNo = 2;</code>
     */
    public String getDocumentNo() {
      Object ref = documentNo_;
      if (!(ref instanceof String)) {
        com.google.protobuf.ByteString bs =
            (com.google.protobuf.ByteString) ref;
        String s = bs.toStringUtf8();
        documentNo_ = s;
        return s;
      } else {
        return (String) ref;
      }
    }
    /**
     * <pre>
     *  被查询者证件号码
     * </pre>
     *
     * <code>string documentNo = 2;</code>
     */
    public com.google.protobuf.ByteString
        getDocumentNoBytes() {
      Object ref = documentNo_;
      if (ref instanceof String) {
        com.google.protobuf.ByteString b = 
            com.google.protobuf.ByteString.copyFromUtf8(
                (String) ref);
        documentNo_ = b;
        return b;
      } else {
        return (com.google.protobuf.ByteString) ref;
      }
    }
    /**
     * <pre>
     *  被查询者证件号码
     * </pre>
     *
     * <code>string documentNo = 2;</code>
     */
    public Builder setDocumentNo(
        String value) {
      if (value == null) {
    throw new NullPointerException();
  }
  
      documentNo_ = value;
      onChanged();
      return this;
    }
    /**
     * <pre>
     *  被查询者证件号码
     * </pre>
     *
     * <code>string documentNo = 2;</code>
     */
    public Builder clearDocumentNo() {
      
      documentNo_ = getDefaultInstance().getDocumentNo();
      onChanged();
      return this;
    }
    /**
     * <pre>
     *  被查询者证件号码
     * </pre>
     *
     * <code>string documentNo = 2;</code>
     */
    public Builder setDocumentNoBytes(
        com.google.protobuf.ByteString value) {
      if (value == null) {
    throw new NullPointerException();
  }
  checkByteStringIsUtf8(value);
      
      documentNo_ = value;
      onChanged();
      return this;
    }

    private Object subreportIDs_ = "";
    /**
     * <pre>
     *  查询的收费子报告类型ID
     * </pre>
     *
     * <code>string subreportIDs = 3;</code>
     */
    public String getSubreportIDs() {
      Object ref = subreportIDs_;
      if (!(ref instanceof String)) {
        com.google.protobuf.ByteString bs =
            (com.google.protobuf.ByteString) ref;
        String s = bs.toStringUtf8();
        subreportIDs_ = s;
        return s;
      } else {
        return (String) ref;
      }
    }
    /**
     * <pre>
     *  查询的收费子报告类型ID
     * </pre>
     *
     * <code>string subreportIDs = 3;</code>
     */
    public com.google.protobuf.ByteString
        getSubreportIDsBytes() {
      Object ref = subreportIDs_;
      if (ref instanceof String) {
        com.google.protobuf.ByteString b = 
            com.google.protobuf.ByteString.copyFromUtf8(
                (String) ref);
        subreportIDs_ = b;
        return b;
      } else {
        return (com.google.protobuf.ByteString) ref;
      }
    }
    /**
     * <pre>
     *  查询的收费子报告类型ID
     * </pre>
     *
     * <code>string subreportIDs = 3;</code>
     */
    public Builder setSubreportIDs(
        String value) {
      if (value == null) {
    throw new NullPointerException();
  }
  
      subreportIDs_ = value;
      onChanged();
      return this;
    }
    /**
     * <pre>
     *  查询的收费子报告类型ID
     * </pre>
     *
     * <code>string subreportIDs = 3;</code>
     */
    public Builder clearSubreportIDs() {
      
      subreportIDs_ = getDefaultInstance().getSubreportIDs();
      onChanged();
      return this;
    }
    /**
     * <pre>
     *  查询的收费子报告类型ID
     * </pre>
     *
     * <code>string subreportIDs = 3;</code>
     */
    public Builder setSubreportIDsBytes(
        com.google.protobuf.ByteString value) {
      if (value == null) {
    throw new NullPointerException();
  }
  checkByteStringIsUtf8(value);
      
      subreportIDs_ = value;
      onChanged();
      return this;
    }

    private Object queryReasonID_ = "";
    /**
     * <pre>
     * 查询原因ID
     * </pre>
     *
     * <code>string queryReasonID = 4;</code>
     */
    public String getQueryReasonID() {
      Object ref = queryReasonID_;
      if (!(ref instanceof String)) {
        com.google.protobuf.ByteString bs =
            (com.google.protobuf.ByteString) ref;
        String s = bs.toStringUtf8();
        queryReasonID_ = s;
        return s;
      } else {
        return (String) ref;
      }
    }
    /**
     * <pre>
     * 查询原因ID
     * </pre>
     *
     * <code>string queryReasonID = 4;</code>
     */
    public com.google.protobuf.ByteString
        getQueryReasonIDBytes() {
      Object ref = queryReasonID_;
      if (ref instanceof String) {
        com.google.protobuf.ByteString b = 
            com.google.protobuf.ByteString.copyFromUtf8(
                (String) ref);
        queryReasonID_ = b;
        return b;
      } else {
        return (com.google.protobuf.ByteString) ref;
      }
    }
    /**
     * <pre>
     * 查询原因ID
     * </pre>
     *
     * <code>string queryReasonID = 4;</code>
     */
    public Builder setQueryReasonID(
        String value) {
      if (value == null) {
    throw new NullPointerException();
  }
  
      queryReasonID_ = value;
      onChanged();
      return this;
    }
    /**
     * <pre>
     * 查询原因ID
     * </pre>
     *
     * <code>string queryReasonID = 4;</code>
     */
    public Builder clearQueryReasonID() {
      
      queryReasonID_ = getDefaultInstance().getQueryReasonID();
      onChanged();
      return this;
    }
    /**
     * <pre>
     * 查询原因ID
     * </pre>
     *
     * <code>string queryReasonID = 4;</code>
     */
    public Builder setQueryReasonIDBytes(
        com.google.protobuf.ByteString value) {
      if (value == null) {
    throw new NullPointerException();
  }
  checkByteStringIsUtf8(value);
      
      queryReasonID_ = value;
      onChanged();
      return this;
    }

    private Object refID_ = "";
    /**
     * <pre>
     *  引用ID
     * </pre>
     *
     * <code>string refID = 5;</code>
     */
    public String getRefID() {
      Object ref = refID_;
      if (!(ref instanceof String)) {
        com.google.protobuf.ByteString bs =
            (com.google.protobuf.ByteString) ref;
        String s = bs.toStringUtf8();
        refID_ = s;
        return s;
      } else {
        return (String) ref;
      }
    }
    /**
     * <pre>
     *  引用ID
     * </pre>
     *
     * <code>string refID = 5;</code>
     */
    public com.google.protobuf.ByteString
        getRefIDBytes() {
      Object ref = refID_;
      if (ref instanceof String) {
        com.google.protobuf.ByteString b = 
            com.google.protobuf.ByteString.copyFromUtf8(
                (String) ref);
        refID_ = b;
        return b;
      } else {
        return (com.google.protobuf.ByteString) ref;
      }
    }
    /**
     * <pre>
     *  引用ID
     * </pre>
     *
     * <code>string refID = 5;</code>
     */
    public Builder setRefID(
        String value) {
      if (value == null) {
    throw new NullPointerException();
  }
  
      refID_ = value;
      onChanged();
      return this;
    }
    /**
     * <pre>
     *  引用ID
     * </pre>
     *
     * <code>string refID = 5;</code>
     */
    public Builder clearRefID() {
      
      refID_ = getDefaultInstance().getRefID();
      onChanged();
      return this;
    }
    /**
     * <pre>
     *  引用ID
     * </pre>
     *
     * <code>string refID = 5;</code>
     */
    public Builder setRefIDBytes(
        com.google.protobuf.ByteString value) {
      if (value == null) {
    throw new NullPointerException();
  }
  checkByteStringIsUtf8(value);
      
      refID_ = value;
      onChanged();
      return this;
    }
    public final Builder setUnknownFields(
        final com.google.protobuf.UnknownFieldSet unknownFields) {
      return super.setUnknownFieldsProto3(unknownFields);
    }

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


    // @@protoc_insertion_point(builder_scope:PersonQuery)
  }

  // @@protoc_insertion_point(class_scope:PersonQuery)
  private static final PersonQuery DEFAULT_INSTANCE;
  static {
    DEFAULT_INSTANCE = new PersonQuery();
  }

  public static PersonQuery getDefaultInstance() {
    return DEFAULT_INSTANCE;
  }

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

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

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

  public PersonQuery getDefaultInstanceForType() {
    return DEFAULT_INSTANCE;
  }

}

