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

/**
 * Options for Process API
 *
 * Generated from protobuf message <code>google.cloud.documentai.v1.ProcessOptions</code>
 */
class ProcessOptions extends \Google\Protobuf\Internal\Message
{
    /**
     * Only applicable to `OCR_PROCESSOR`. Returns error if set on other
     * processor types.
     *
     * Generated from protobuf field <code>.google.cloud.documentai.v1.OcrConfig ocr_config = 1;</code>
     */
    private $ocr_config = null;

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type \Google\Cloud\DocumentAI\V1\OcrConfig $ocr_config
     *           Only applicable to `OCR_PROCESSOR`. Returns error if set on other
     *           processor types.
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\Google\Cloud\Documentai\V1\DocumentProcessorService::initOnce();
        parent::__construct($data);
    }

    /**
     * Only applicable to `OCR_PROCESSOR`. Returns error if set on other
     * processor types.
     *
     * Generated from protobuf field <code>.google.cloud.documentai.v1.OcrConfig ocr_config = 1;</code>
     * @return \Google\Cloud\DocumentAI\V1\OcrConfig|null
     */
    public function getOcrConfig()
    {
        return $this->ocr_config;
    }

    public function hasOcrConfig()
    {
        return isset($this->ocr_config);
    }

    public function clearOcrConfig()
    {
        unset($this->ocr_config);
    }

    /**
     * Only applicable to `OCR_PROCESSOR`. Returns error if set on other
     * processor types.
     *
     * Generated from protobuf field <code>.google.cloud.documentai.v1.OcrConfig ocr_config = 1;</code>
     * @param \Google\Cloud\DocumentAI\V1\OcrConfig $var
     * @return $this
     */
    public function setOcrConfig($var)
    {
        GPBUtil::checkMessage($var, \Google\Cloud\DocumentAI\V1\OcrConfig::class);
        $this->ocr_config = $var;

        return $this;
    }

}

