<?php
# Generated by the protocol buffer compiler.  DO NOT EDIT!
# source: google/cloud/automl/v1beta1/data_items.proto

namespace Google\Cloud\AutoMl\V1beta1;

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

/**
 * A structured text document e.g. a PDF.
 *
 * Generated from protobuf message <code>google.cloud.automl.v1beta1.Document</code>
 */
class Document extends \Google\Protobuf\Internal\Message
{
    /**
     * An input config specifying the content of the document.
     *
     * Generated from protobuf field <code>.google.cloud.automl.v1beta1.DocumentInputConfig input_config = 1;</code>
     */
    private $input_config = null;

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type \Google\Cloud\AutoMl\V1beta1\DocumentInputConfig $input_config
     *           An input config specifying the content of the document.
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\Google\Cloud\Automl\V1Beta1\DataItems::initOnce();
        parent::__construct($data);
    }

    /**
     * An input config specifying the content of the document.
     *
     * Generated from protobuf field <code>.google.cloud.automl.v1beta1.DocumentInputConfig input_config = 1;</code>
     * @return \Google\Cloud\AutoMl\V1beta1\DocumentInputConfig
     */
    public function getInputConfig()
    {
        return $this->input_config;
    }

    /**
     * An input config specifying the content of the document.
     *
     * Generated from protobuf field <code>.google.cloud.automl.v1beta1.DocumentInputConfig input_config = 1;</code>
     * @param \Google\Cloud\AutoMl\V1beta1\DocumentInputConfig $var
     * @return $this
     */
    public function setInputConfig($var)
    {
        GPBUtil::checkMessage($var, \Google\Cloud\AutoMl\V1beta1\DocumentInputConfig::class);
        $this->input_config = $var;

        return $this;
    }

}

