<?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 long running operation metadata for review document method.
 *
 * Generated from protobuf message <code>google.cloud.documentai.v1.ReviewDocumentOperationMetadata</code>
 */
class ReviewDocumentOperationMetadata extends \Google\Protobuf\Internal\Message
{
    /**
     * The basic metadata of the long running operation.
     *
     * Generated from protobuf field <code>.google.cloud.documentai.v1.CommonOperationMetadata common_metadata = 5;</code>
     */
    private $common_metadata = null;
    /**
     * The Crowd Compute question ID.
     *
     * Generated from protobuf field <code>string question_id = 6;</code>
     */
    private $question_id = '';

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type \Google\Cloud\DocumentAI\V1\CommonOperationMetadata $common_metadata
     *           The basic metadata of the long running operation.
     *     @type string $question_id
     *           The Crowd Compute question ID.
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\Google\Cloud\Documentai\V1\DocumentProcessorService::initOnce();
        parent::__construct($data);
    }

    /**
     * The basic metadata of the long running operation.
     *
     * Generated from protobuf field <code>.google.cloud.documentai.v1.CommonOperationMetadata common_metadata = 5;</code>
     * @return \Google\Cloud\DocumentAI\V1\CommonOperationMetadata|null
     */
    public function getCommonMetadata()
    {
        return $this->common_metadata;
    }

    public function hasCommonMetadata()
    {
        return isset($this->common_metadata);
    }

    public function clearCommonMetadata()
    {
        unset($this->common_metadata);
    }

    /**
     * The basic metadata of the long running operation.
     *
     * Generated from protobuf field <code>.google.cloud.documentai.v1.CommonOperationMetadata common_metadata = 5;</code>
     * @param \Google\Cloud\DocumentAI\V1\CommonOperationMetadata $var
     * @return $this
     */
    public function setCommonMetadata($var)
    {
        GPBUtil::checkMessage($var, \Google\Cloud\DocumentAI\V1\CommonOperationMetadata::class);
        $this->common_metadata = $var;

        return $this;
    }

    /**
     * The Crowd Compute question ID.
     *
     * Generated from protobuf field <code>string question_id = 6;</code>
     * @return string
     */
    public function getQuestionId()
    {
        return $this->question_id;
    }

    /**
     * The Crowd Compute question ID.
     *
     * Generated from protobuf field <code>string question_id = 6;</code>
     * @param string $var
     * @return $this
     */
    public function setQuestionId($var)
    {
        GPBUtil::checkString($var, True);
        $this->question_id = $var;

        return $this;
    }

}

