<?php
# Generated by the protocol buffer compiler.  DO NOT EDIT!
# source: google/cloud/documentai/v1/evaluation.proto

namespace Google\Cloud\DocumentAI\V1\Evaluation;

use Google\Protobuf\Internal\GPBType;
use Google\Protobuf\Internal\GPBUtil;
use Google\Protobuf\RepeatedField;

/**
 * Evaluation counters for the documents that were used.
 *
 * Generated from protobuf message <code>google.cloud.documentai.v1.Evaluation.Counters</code>
 */
class Counters extends \Google\Protobuf\Internal\Message
{
    /**
     * How many documents were sent for evaluation.
     *
     * Generated from protobuf field <code>int32 input_documents_count = 1;</code>
     */
    protected $input_documents_count = 0;
    /**
     * How many documents were not included in the evaluation as they didn't
     * pass validation.
     *
     * Generated from protobuf field <code>int32 invalid_documents_count = 2;</code>
     */
    protected $invalid_documents_count = 0;
    /**
     * How many documents were not included in the evaluation as Document AI
     * failed to process them.
     *
     * Generated from protobuf field <code>int32 failed_documents_count = 3;</code>
     */
    protected $failed_documents_count = 0;
    /**
     * How many documents were used in the evaluation.
     *
     * Generated from protobuf field <code>int32 evaluated_documents_count = 4;</code>
     */
    protected $evaluated_documents_count = 0;

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type int $input_documents_count
     *           How many documents were sent for evaluation.
     *     @type int $invalid_documents_count
     *           How many documents were not included in the evaluation as they didn't
     *           pass validation.
     *     @type int $failed_documents_count
     *           How many documents were not included in the evaluation as Document AI
     *           failed to process them.
     *     @type int $evaluated_documents_count
     *           How many documents were used in the evaluation.
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\Google\Cloud\Documentai\V1\Evaluation::initOnce();
        parent::__construct($data);
    }

    /**
     * How many documents were sent for evaluation.
     *
     * Generated from protobuf field <code>int32 input_documents_count = 1;</code>
     * @return int
     */
    public function getInputDocumentsCount()
    {
        return $this->input_documents_count;
    }

    /**
     * How many documents were sent for evaluation.
     *
     * Generated from protobuf field <code>int32 input_documents_count = 1;</code>
     * @param int $var
     * @return $this
     */
    public function setInputDocumentsCount($var)
    {
        GPBUtil::checkInt32($var);
        $this->input_documents_count = $var;

        return $this;
    }

    /**
     * How many documents were not included in the evaluation as they didn't
     * pass validation.
     *
     * Generated from protobuf field <code>int32 invalid_documents_count = 2;</code>
     * @return int
     */
    public function getInvalidDocumentsCount()
    {
        return $this->invalid_documents_count;
    }

    /**
     * How many documents were not included in the evaluation as they didn't
     * pass validation.
     *
     * Generated from protobuf field <code>int32 invalid_documents_count = 2;</code>
     * @param int $var
     * @return $this
     */
    public function setInvalidDocumentsCount($var)
    {
        GPBUtil::checkInt32($var);
        $this->invalid_documents_count = $var;

        return $this;
    }

    /**
     * How many documents were not included in the evaluation as Document AI
     * failed to process them.
     *
     * Generated from protobuf field <code>int32 failed_documents_count = 3;</code>
     * @return int
     */
    public function getFailedDocumentsCount()
    {
        return $this->failed_documents_count;
    }

    /**
     * How many documents were not included in the evaluation as Document AI
     * failed to process them.
     *
     * Generated from protobuf field <code>int32 failed_documents_count = 3;</code>
     * @param int $var
     * @return $this
     */
    public function setFailedDocumentsCount($var)
    {
        GPBUtil::checkInt32($var);
        $this->failed_documents_count = $var;

        return $this;
    }

    /**
     * How many documents were used in the evaluation.
     *
     * Generated from protobuf field <code>int32 evaluated_documents_count = 4;</code>
     * @return int
     */
    public function getEvaluatedDocumentsCount()
    {
        return $this->evaluated_documents_count;
    }

    /**
     * How many documents were used in the evaluation.
     *
     * Generated from protobuf field <code>int32 evaluated_documents_count = 4;</code>
     * @param int $var
     * @return $this
     */
    public function setEvaluatedDocumentsCount($var)
    {
        GPBUtil::checkInt32($var);
        $this->evaluated_documents_count = $var;

        return $this;
    }

}

