<?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;

/**
 * Response message for the
 * [ReviewDocument][google.cloud.documentai.v1.DocumentProcessorService.ReviewDocument]
 * method.
 *
 * Generated from protobuf message <code>google.cloud.documentai.v1.ReviewDocumentResponse</code>
 */
class ReviewDocumentResponse extends \Google\Protobuf\Internal\Message
{
    /**
     * The Cloud Storage uri for the human reviewed document if the review is
     * succeeded.
     *
     * Generated from protobuf field <code>string gcs_destination = 1;</code>
     */
    protected $gcs_destination = '';
    /**
     * The state of the review operation.
     *
     * Generated from protobuf field <code>.google.cloud.documentai.v1.ReviewDocumentResponse.State state = 2;</code>
     */
    protected $state = 0;
    /**
     * The reason why the review is rejected by reviewer.
     *
     * Generated from protobuf field <code>string rejection_reason = 3;</code>
     */
    protected $rejection_reason = '';

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type string $gcs_destination
     *           The Cloud Storage uri for the human reviewed document if the review is
     *           succeeded.
     *     @type int $state
     *           The state of the review operation.
     *     @type string $rejection_reason
     *           The reason why the review is rejected by reviewer.
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\Google\Cloud\Documentai\V1\DocumentProcessorService::initOnce();
        parent::__construct($data);
    }

    /**
     * The Cloud Storage uri for the human reviewed document if the review is
     * succeeded.
     *
     * Generated from protobuf field <code>string gcs_destination = 1;</code>
     * @return string
     */
    public function getGcsDestination()
    {
        return $this->gcs_destination;
    }

    /**
     * The Cloud Storage uri for the human reviewed document if the review is
     * succeeded.
     *
     * Generated from protobuf field <code>string gcs_destination = 1;</code>
     * @param string $var
     * @return $this
     */
    public function setGcsDestination($var)
    {
        GPBUtil::checkString($var, True);
        $this->gcs_destination = $var;

        return $this;
    }

    /**
     * The state of the review operation.
     *
     * Generated from protobuf field <code>.google.cloud.documentai.v1.ReviewDocumentResponse.State state = 2;</code>
     * @return int
     */
    public function getState()
    {
        return $this->state;
    }

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

        return $this;
    }

    /**
     * The reason why the review is rejected by reviewer.
     *
     * Generated from protobuf field <code>string rejection_reason = 3;</code>
     * @return string
     */
    public function getRejectionReason()
    {
        return $this->rejection_reason;
    }

    /**
     * The reason why the review is rejected by reviewer.
     *
     * Generated from protobuf field <code>string rejection_reason = 3;</code>
     * @param string $var
     * @return $this
     */
    public function setRejectionReason($var)
    {
        GPBUtil::checkString($var, True);
        $this->rejection_reason = $var;

        return $this;
    }

}

