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

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

/**
 * <pre>
 * 企业查询信息
 * </pre>
 *
 * Protobuf type {@code EnterpriseQuery}
 */
public  final class EnterpriseQuery extends
    com.google.protobuf.GeneratedMessageV3 implements
    // @@protoc_insertion_point(message_implements:EnterpriseQuery)
        EnterpriseQueryOrBuilder {
private static final long serialVersionUID = 0L;
  // Use EnterpriseQuery.newBuilder() to construct.
  private EnterpriseQuery(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {
    super(builder);
  }
  private EnterpriseQuery() {
    enname_ = "";
    registerNo_ = "";
    creditCode_ = "";
    subreportIDs_ = "";
    queryReasonID_ = 0;
    refID_ = "";
  }

  @Override
  public final com.google.protobuf.UnknownFieldSet
  getUnknownFields() {
    return this.unknownFields;
  }
  private EnterpriseQuery(
      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();

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

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

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

            subreportIDs_ = s;
            break;
          }
          case 40: {

            queryReasonID_ = input.readInt32();
            break;
          }
          case 50: {
            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 GrpcQueryEntity.internal_static_EnterpriseQuery_descriptor;
  }

  protected FieldAccessorTable
      internalGetFieldAccessorTable() {
    return GrpcQueryEntity.internal_static_EnterpriseQuery_fieldAccessorTable
        .ensureFieldAccessorsInitialized(
            EnterpriseQuery.class, EnterpriseQuery.Builder.class);
  }

  public static final int ENNAME_FIELD_NUMBER = 1;
  private volatile Object enname_;
  /**
   * <pre>
   * 企业名称
   * </pre>
   *
   * <code>string enname = 1;</code>
   */
  public String getEnname() {
    Object ref = enname_;
    if (ref instanceof String) {
      return (String) ref;
    } else {
      com.google.protobuf.ByteString bs =
          (com.google.protobuf.ByteString) ref;
      String s = bs.toStringUtf8();
      enname_ = s;
      return s;
    }
  }
  /**
   * <pre>
   * 企业名称
   * </pre>
   *
   * <code>string enname = 1;</code>
   */
  public com.google.protobuf.ByteString
      getEnnameBytes() {
    Object ref = enname_;
    if (ref instanceof String) {
      com.google.protobuf.ByteString b =
          com.google.protobuf.ByteString.copyFromUtf8(
              (String) ref);
      enname_ = b;
      return b;
    } else {
      return (com.google.protobuf.ByteString) ref;
    }
  }

  public static final int REGISTERNO_FIELD_NUMBER = 2;
  private volatile Object registerNo_;
  /**
   * <pre>
   *  企业工商注册号
   * </pre>
   *
   * <code>string registerNo = 2;</code>
   */
  public String getRegisterNo() {
    Object ref = registerNo_;
    if (ref instanceof String) {
      return (String) ref;
    } else {
      com.google.protobuf.ByteString bs =
          (com.google.protobuf.ByteString) ref;
      String s = bs.toStringUtf8();
      registerNo_ = s;
      return s;
    }
  }
  /**
   * <pre>
   *  企业工商注册号
   * </pre>
   *
   * <code>string registerNo = 2;</code>
   */
  public com.google.protobuf.ByteString
      getRegisterNoBytes() {
    Object ref = registerNo_;
    if (ref instanceof String) {
      com.google.protobuf.ByteString b =
          com.google.protobuf.ByteString.copyFromUtf8(
              (String) ref);
      registerNo_ = b;
      return b;
    } else {
      return (com.google.protobuf.ByteString) ref;
    }
  }

  public static final int CREDITCODE_FIELD_NUMBER = 3;
  private volatile Object creditCode_;
  /**
   * <pre>
   *  企业社会信用代码/组织机构代码
   * </pre>
   *
   * <code>string creditCode = 3;</code>
   */
  public String getCreditCode() {
    Object ref = creditCode_;
    if (ref instanceof String) {
      return (String) ref;
    } else {
      com.google.protobuf.ByteString bs =
          (com.google.protobuf.ByteString) ref;
      String s = bs.toStringUtf8();
      creditCode_ = s;
      return s;
    }
  }
  /**
   * <pre>
   *  企业社会信用代码/组织机构代码
   * </pre>
   *
   * <code>string creditCode = 3;</code>
   */
  public com.google.protobuf.ByteString
      getCreditCodeBytes() {
    Object ref = creditCode_;
    if (ref instanceof String) {
      com.google.protobuf.ByteString b =
          com.google.protobuf.ByteString.copyFromUtf8(
              (String) ref);
      creditCode_ = b;
      return b;
    } else {
      return (com.google.protobuf.ByteString) ref;
    }
  }

  public static final int SUBREPORTIDS_FIELD_NUMBER = 4;
  private volatile Object subreportIDs_;
  /**
   * <pre>
   * 查询的收费子报告类型ID
   * </pre>
   *
   * <code>string subreportIDs = 4;</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 = 4;</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 = 5;
  private int queryReasonID_;
  /**
   * <pre>
   *  查询原因ID
   * </pre>
   *
   * <code>int32 queryReasonID = 5;</code>
   */
  public int getQueryReasonID() {
    return queryReasonID_;
  }

  public static final int REFID_FIELD_NUMBER = 6;
  private volatile Object refID_;
  /**
   * <pre>
   *  引用ID
   * </pre>
   *
   * <code>string refID = 6;</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 = 6;</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 (!getEnnameBytes().isEmpty()) {
      com.google.protobuf.GeneratedMessageV3.writeString(output, 1, enname_);
    }
    if (!getRegisterNoBytes().isEmpty()) {
      com.google.protobuf.GeneratedMessageV3.writeString(output, 2, registerNo_);
    }
    if (!getCreditCodeBytes().isEmpty()) {
      com.google.protobuf.GeneratedMessageV3.writeString(output, 3, creditCode_);
    }
    if (!getSubreportIDsBytes().isEmpty()) {
      com.google.protobuf.GeneratedMessageV3.writeString(output, 4, subreportIDs_);
    }
    if (queryReasonID_ != 0) {
      output.writeInt32(5, queryReasonID_);
    }
    if (!getRefIDBytes().isEmpty()) {
      com.google.protobuf.GeneratedMessageV3.writeString(output, 6, refID_);
    }
    unknownFields.writeTo(output);
  }

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

    size = 0;
    if (!getEnnameBytes().isEmpty()) {
      size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, enname_);
    }
    if (!getRegisterNoBytes().isEmpty()) {
      size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, registerNo_);
    }
    if (!getCreditCodeBytes().isEmpty()) {
      size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, creditCode_);
    }
    if (!getSubreportIDsBytes().isEmpty()) {
      size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, subreportIDs_);
    }
    if (queryReasonID_ != 0) {
      size += com.google.protobuf.CodedOutputStream
        .computeInt32Size(5, queryReasonID_);
    }
    if (!getRefIDBytes().isEmpty()) {
      size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, refID_);
    }
    size += unknownFields.getSerializedSize();
    memoizedSize = size;
    return size;
  }

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

    boolean result = true;
    result = result && getEnname()
        .equals(other.getEnname());
    result = result && getRegisterNo()
        .equals(other.getRegisterNo());
    result = result && getCreditCode()
        .equals(other.getCreditCode());
    result = result && getSubreportIDs()
        .equals(other.getSubreportIDs());
    result = result && (getQueryReasonID()
        == 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) + ENNAME_FIELD_NUMBER;
    hash = (53 * hash) + getEnname().hashCode();
    hash = (37 * hash) + REGISTERNO_FIELD_NUMBER;
    hash = (53 * hash) + getRegisterNo().hashCode();
    hash = (37 * hash) + CREDITCODE_FIELD_NUMBER;
    hash = (53 * hash) + getCreditCode().hashCode();
    hash = (37 * hash) + SUBREPORTIDS_FIELD_NUMBER;
    hash = (53 * hash) + getSubreportIDs().hashCode();
    hash = (37 * hash) + QUERYREASONID_FIELD_NUMBER;
    hash = (53 * hash) + getQueryReasonID();
    hash = (37 * hash) + REFID_FIELD_NUMBER;
    hash = (53 * hash) + getRefID().hashCode();
    hash = (29 * hash) + unknownFields.hashCode();
    memoizedHashCode = hash;
    return hash;
  }

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

    protected FieldAccessorTable
        internalGetFieldAccessorTable() {
      return GrpcQueryEntity.internal_static_EnterpriseQuery_fieldAccessorTable
          .ensureFieldAccessorsInitialized(
              EnterpriseQuery.class, EnterpriseQuery.Builder.class);
    }

    // Construct using com.usoft.credit.grpc.EnterpriseQuery.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();
      enname_ = "";

      registerNo_ = "";

      creditCode_ = "";

      subreportIDs_ = "";

      queryReasonID_ = 0;

      refID_ = "";

      return this;
    }

    public com.google.protobuf.Descriptors.Descriptor
        getDescriptorForType() {
      return GrpcQueryEntity.internal_static_EnterpriseQuery_descriptor;
    }

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

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

    public EnterpriseQuery buildPartial() {
      EnterpriseQuery result = new EnterpriseQuery(this);
      result.enname_ = enname_;
      result.registerNo_ = registerNo_;
      result.creditCode_ = creditCode_;
      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 EnterpriseQuery) {
        return mergeFrom((EnterpriseQuery)other);
      } else {
        super.mergeFrom(other);
        return this;
      }
    }

    public Builder mergeFrom(EnterpriseQuery other) {
      if (other == EnterpriseQuery.getDefaultInstance()) return this;
      if (!other.getEnname().isEmpty()) {
        enname_ = other.enname_;
        onChanged();
      }
      if (!other.getRegisterNo().isEmpty()) {
        registerNo_ = other.registerNo_;
        onChanged();
      }
      if (!other.getCreditCode().isEmpty()) {
        creditCode_ = other.creditCode_;
        onChanged();
      }
      if (!other.getSubreportIDs().isEmpty()) {
        subreportIDs_ = other.subreportIDs_;
        onChanged();
      }
      if (other.getQueryReasonID() != 0) {
        setQueryReasonID(other.getQueryReasonID());
      }
      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 {
      EnterpriseQuery parsedMessage = null;
      try {
        parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
      } catch (com.google.protobuf.InvalidProtocolBufferException e) {
        parsedMessage = (EnterpriseQuery) e.getUnfinishedMessage();
        throw e.unwrapIOException();
      } finally {
        if (parsedMessage != null) {
          mergeFrom(parsedMessage);
        }
      }
      return this;
    }

    private Object enname_ = "";
    /**
     * <pre>
     * 企业名称
     * </pre>
     *
     * <code>string enname = 1;</code>
     */
    public String getEnname() {
      Object ref = enname_;
      if (!(ref instanceof String)) {
        com.google.protobuf.ByteString bs =
            (com.google.protobuf.ByteString) ref;
        String s = bs.toStringUtf8();
        enname_ = s;
        return s;
      } else {
        return (String) ref;
      }
    }
    /**
     * <pre>
     * 企业名称
     * </pre>
     *
     * <code>string enname = 1;</code>
     */
    public com.google.protobuf.ByteString
        getEnnameBytes() {
      Object ref = enname_;
      if (ref instanceof String) {
        com.google.protobuf.ByteString b =
            com.google.protobuf.ByteString.copyFromUtf8(
                (String) ref);
        enname_ = b;
        return b;
      } else {
        return (com.google.protobuf.ByteString) ref;
      }
    }
    /**
     * <pre>
     * 企业名称
     * </pre>
     *
     * <code>string enname = 1;</code>
     */
    public Builder setEnname(
        String value) {
      if (value == null) {
    throw new NullPointerException();
  }

      enname_ = value;
      onChanged();
      return this;
    }
    /**
     * <pre>
     * 企业名称
     * </pre>
     *
     * <code>string enname = 1;</code>
     */
    public Builder clearEnname() {

      enname_ = getDefaultInstance().getEnname();
      onChanged();
      return this;
    }
    /**
     * <pre>
     * 企业名称
     * </pre>
     *
     * <code>string enname = 1;</code>
     */
    public Builder setEnnameBytes(
        com.google.protobuf.ByteString value) {
      if (value == null) {
    throw new NullPointerException();
  }
  checkByteStringIsUtf8(value);

      enname_ = value;
      onChanged();
      return this;
    }

    private Object registerNo_ = "";
    /**
     * <pre>
     *  企业工商注册号
     * </pre>
     *
     * <code>string registerNo = 2;</code>
     */
    public String getRegisterNo() {
      Object ref = registerNo_;
      if (!(ref instanceof String)) {
        com.google.protobuf.ByteString bs =
            (com.google.protobuf.ByteString) ref;
        String s = bs.toStringUtf8();
        registerNo_ = s;
        return s;
      } else {
        return (String) ref;
      }
    }
    /**
     * <pre>
     *  企业工商注册号
     * </pre>
     *
     * <code>string registerNo = 2;</code>
     */
    public com.google.protobuf.ByteString
        getRegisterNoBytes() {
      Object ref = registerNo_;
      if (ref instanceof String) {
        com.google.protobuf.ByteString b =
            com.google.protobuf.ByteString.copyFromUtf8(
                (String) ref);
        registerNo_ = b;
        return b;
      } else {
        return (com.google.protobuf.ByteString) ref;
      }
    }
    /**
     * <pre>
     *  企业工商注册号
     * </pre>
     *
     * <code>string registerNo = 2;</code>
     */
    public Builder setRegisterNo(
        String value) {
      if (value == null) {
    throw new NullPointerException();
  }

      registerNo_ = value;
      onChanged();
      return this;
    }
    /**
     * <pre>
     *  企业工商注册号
     * </pre>
     *
     * <code>string registerNo = 2;</code>
     */
    public Builder clearRegisterNo() {

      registerNo_ = getDefaultInstance().getRegisterNo();
      onChanged();
      return this;
    }
    /**
     * <pre>
     *  企业工商注册号
     * </pre>
     *
     * <code>string registerNo = 2;</code>
     */
    public Builder setRegisterNoBytes(
        com.google.protobuf.ByteString value) {
      if (value == null) {
    throw new NullPointerException();
  }
  checkByteStringIsUtf8(value);

      registerNo_ = value;
      onChanged();
      return this;
    }

    private Object creditCode_ = "";
    /**
     * <pre>
     *  企业社会信用代码/组织机构代码
     * </pre>
     *
     * <code>string creditCode = 3;</code>
     */
    public String getCreditCode() {
      Object ref = creditCode_;
      if (!(ref instanceof String)) {
        com.google.protobuf.ByteString bs =
            (com.google.protobuf.ByteString) ref;
        String s = bs.toStringUtf8();
        creditCode_ = s;
        return s;
      } else {
        return (String) ref;
      }
    }
    /**
     * <pre>
     *  企业社会信用代码/组织机构代码
     * </pre>
     *
     * <code>string creditCode = 3;</code>
     */
    public com.google.protobuf.ByteString
        getCreditCodeBytes() {
      Object ref = creditCode_;
      if (ref instanceof String) {
        com.google.protobuf.ByteString b =
            com.google.protobuf.ByteString.copyFromUtf8(
                (String) ref);
        creditCode_ = b;
        return b;
      } else {
        return (com.google.protobuf.ByteString) ref;
      }
    }
    /**
     * <pre>
     *  企业社会信用代码/组织机构代码
     * </pre>
     *
     * <code>string creditCode = 3;</code>
     */
    public Builder setCreditCode(
        String value) {
      if (value == null) {
    throw new NullPointerException();
  }

      creditCode_ = value;
      onChanged();
      return this;
    }
    /**
     * <pre>
     *  企业社会信用代码/组织机构代码
     * </pre>
     *
     * <code>string creditCode = 3;</code>
     */
    public Builder clearCreditCode() {

      creditCode_ = getDefaultInstance().getCreditCode();
      onChanged();
      return this;
    }
    /**
     * <pre>
     *  企业社会信用代码/组织机构代码
     * </pre>
     *
     * <code>string creditCode = 3;</code>
     */
    public Builder setCreditCodeBytes(
        com.google.protobuf.ByteString value) {
      if (value == null) {
    throw new NullPointerException();
  }
  checkByteStringIsUtf8(value);

      creditCode_ = value;
      onChanged();
      return this;
    }

    private Object subreportIDs_ = "";
    /**
     * <pre>
     * 查询的收费子报告类型ID
     * </pre>
     *
     * <code>string subreportIDs = 4;</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 = 4;</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 = 4;</code>
     */
    public Builder setSubreportIDs(
        String value) {
      if (value == null) {
    throw new NullPointerException();
  }

      subreportIDs_ = value;
      onChanged();
      return this;
    }
    /**
     * <pre>
     * 查询的收费子报告类型ID
     * </pre>
     *
     * <code>string subreportIDs = 4;</code>
     */
    public Builder clearSubreportIDs() {

      subreportIDs_ = getDefaultInstance().getSubreportIDs();
      onChanged();
      return this;
    }
    /**
     * <pre>
     * 查询的收费子报告类型ID
     * </pre>
     *
     * <code>string subreportIDs = 4;</code>
     */
    public Builder setSubreportIDsBytes(
        com.google.protobuf.ByteString value) {
      if (value == null) {
    throw new NullPointerException();
  }
  checkByteStringIsUtf8(value);

      subreportIDs_ = value;
      onChanged();
      return this;
    }

    private int queryReasonID_ ;
    /**
     * <pre>
     *  查询原因ID
     * </pre>
     *
     * <code>int32 queryReasonID = 5;</code>
     */
    public int getQueryReasonID() {
      return queryReasonID_;
    }
    /**
     * <pre>
     *  查询原因ID
     * </pre>
     *
     * <code>int32 queryReasonID = 5;</code>
     */
    public Builder setQueryReasonID(int value) {

      queryReasonID_ = value;
      onChanged();
      return this;
    }
    /**
     * <pre>
     *  查询原因ID
     * </pre>
     *
     * <code>int32 queryReasonID = 5;</code>
     */
    public Builder clearQueryReasonID() {

      queryReasonID_ = 0;
      onChanged();
      return this;
    }

    private Object refID_ = "";
    /**
     * <pre>
     *  引用ID
     * </pre>
     *
     * <code>string refID = 6;</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 = 6;</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 = 6;</code>
     */
    public Builder setRefID(
        String value) {
      if (value == null) {
    throw new NullPointerException();
  }

      refID_ = value;
      onChanged();
      return this;
    }
    /**
     * <pre>
     *  引用ID
     * </pre>
     *
     * <code>string refID = 6;</code>
     */
    public Builder clearRefID() {

      refID_ = getDefaultInstance().getRefID();
      onChanged();
      return this;
    }
    /**
     * <pre>
     *  引用ID
     * </pre>
     *
     * <code>string refID = 6;</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:EnterpriseQuery)
  }

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

  public static EnterpriseQuery getDefaultInstance() {
    return DEFAULT_INSTANCE;
  }

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

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

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

  public EnterpriseQuery getDefaultInstanceForType() {
    return DEFAULT_INSTANCE;
  }

}

