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

namespace Google\Cloud\DocumentAI\V1;

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

/**
 * The status of human review on a processed document.
 *
 * Generated from protobuf message <code>google.cloud.documentai.v1.HumanReviewStatus</code>
 */
class HumanReviewStatus extends \Google\Protobuf\Internal\Message
{
    /**
     * The state of human review on the processing request.
     *
     * Generated from protobuf field <code>.google.cloud.documentai.v1.HumanReviewStatus.State state = 1;</code>
     */
    private $state = 0;
    /**
     * A message providing more details about the human review state.
     *
     * Generated from protobuf field <code>string state_message = 2;</code>
     */
    private $state_message = '';
    /**
     * The name of the operation triggered by the processed document. This field
     * is populated only when the [state] is [HUMAN_REVIEW_IN_PROGRESS]. It has
     * the same response type and metadata as the long running operation returned
     * by [ReviewDocument] method.
     *
     * Generated from protobuf field <code>string human_review_operation = 3;</code>
     */
    private $human_review_operation = '';

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type int $state
     *           The state of human review on the processing request.
     *     @type string $state_message
     *           A message providing more details about the human review state.
     *     @type string $human_review_operation
     *           The name of the operation triggered by the processed document. This field
     *           is populated only when the [state] is [HUMAN_REVIEW_IN_PROGRESS]. It has
     *           the same response type and metadata as the long running operation returned
     *           by [ReviewDocument] method.
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\Google\Cloud\Documentai\V1\DocumentProcessorService::initOnce();
        parent::__construct($data);
    }

    /**
     * The state of human review on the processing request.
     *
     * Generated from protobuf field <code>.google.cloud.documentai.v1.HumanReviewStatus.State state = 1;</code>
     * @return int
     */
    public function getState()
    {
        return $this->state;
    }

    /**
     * The state of human review on the processing request.
     *
     * Generated from protobuf field <code>.google.cloud.documentai.v1.HumanReviewStatus.State state = 1;</code>
     * @param int $var
     * @return $this
     */
    public function setState($var)
    {
        GPBUtil::checkEnum($var, \Google\Cloud\DocumentAI\V1\HumanReviewStatus\State::class);
        $this->state = $var;

        return $this;
    }

    /**
     * A message providing more details about the human review state.
     *
     * Generated from protobuf field <code>string state_message = 2;</code>
     * @return string
     */
    public function getStateMessage()
    {
        return $this->state_message;
    }

    /**
     * A message providing more details about the human review state.
     *
     * Generated from protobuf field <code>string state_message = 2;</code>
     * @param string $var
     * @return $this
     */
    public function setStateMessage($var)
    {
        GPBUtil::checkString($var, True);
        $this->state_message = $var;

        return $this;
    }

    /**
     * The name of the operation triggered by the processed document. This field
     * is populated only when the [state] is [HUMAN_REVIEW_IN_PROGRESS]. It has
     * the same response type and metadata as the long running operation returned
     * by [ReviewDocument] method.
     *
     * Generated from protobuf field <code>string human_review_operation = 3;</code>
     * @return string
     */
    public function getHumanReviewOperation()
    {
        return $this->human_review_operation;
    }

    /**
     * The name of the operation triggered by the processed document. This field
     * is populated only when the [state] is [HUMAN_REVIEW_IN_PROGRESS]. It has
     * the same response type and metadata as the long running operation returned
     * by [ReviewDocument] method.
     *
     * Generated from protobuf field <code>string human_review_operation = 3;</code>
     * @param string $var
     * @return $this
     */
    public function setHumanReviewOperation($var)
    {
        GPBUtil::checkString($var, True);
        $this->human_review_operation = $var;

        return $this;
    }

}

