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

namespace Google\Cloud\DocumentAI\V1\Document\Revision;

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

/**
 * Human Review information of the document.
 *
 * Generated from protobuf message <code>google.cloud.documentai.v1.Document.Revision.HumanReview</code>
 */
class HumanReview extends \Google\Protobuf\Internal\Message
{
    /**
     * Human review state. e.g. `requested`, `succeeded`, `rejected`.
     *
     * Generated from protobuf field <code>string state = 1;</code>
     */
    private $state = '';
    /**
     * A message providing more details about the current state of processing.
     * For example, the rejection reason when the state is `rejected`.
     *
     * Generated from protobuf field <code>string state_message = 2;</code>
     */
    private $state_message = '';

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type string $state
     *           Human review state. e.g. `requested`, `succeeded`, `rejected`.
     *     @type string $state_message
     *           A message providing more details about the current state of processing.
     *           For example, the rejection reason when the state is `rejected`.
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\Google\Cloud\Documentai\V1\Document::initOnce();
        parent::__construct($data);
    }

    /**
     * Human review state. e.g. `requested`, `succeeded`, `rejected`.
     *
     * Generated from protobuf field <code>string state = 1;</code>
     * @return string
     */
    public function getState()
    {
        return $this->state;
    }

    /**
     * Human review state. e.g. `requested`, `succeeded`, `rejected`.
     *
     * Generated from protobuf field <code>string state = 1;</code>
     * @param string $var
     * @return $this
     */
    public function setState($var)
    {
        GPBUtil::checkString($var, True);
        $this->state = $var;

        return $this;
    }

    /**
     * A message providing more details about the current state of processing.
     * For example, the rejection reason when the state is `rejected`.
     *
     * 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 current state of processing.
     * For example, the rejection reason when the state is `rejected`.
     *
     * 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;
    }

}


