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

namespace Google\Cloud\DataLabeling\V1beta1;

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

/**
 * Container of information about a piece of text.
 *
 * Generated from protobuf message <code>google.cloud.datalabeling.v1beta1.TextPayload</code>
 */
class TextPayload extends \Google\Protobuf\Internal\Message
{
    /**
     * Text content.
     *
     * Generated from protobuf field <code>string text_content = 1;</code>
     */
    private $text_content = '';

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type string $text_content
     *           Text content.
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\Google\Cloud\Datalabeling\V1Beta1\DataPayloads::initOnce();
        parent::__construct($data);
    }

    /**
     * Text content.
     *
     * Generated from protobuf field <code>string text_content = 1;</code>
     * @return string
     */
    public function getTextContent()
    {
        return $this->text_content;
    }

    /**
     * Text content.
     *
     * Generated from protobuf field <code>string text_content = 1;</code>
     * @param string $var
     * @return $this
     */
    public function setTextContent($var)
    {
        GPBUtil::checkString($var, True);
        $this->text_content = $var;

        return $this;
    }

}

