<?php
# Generated by the protocol buffer compiler.  DO NOT EDIT!
# source: google/shopping/merchant/products/v1beta/products_common.proto

namespace Google\Shopping\Merchant\Products\V1beta;

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

/**
 * Structured description, for algorithmically (AI)-generated descriptions.
 *
 * Generated from protobuf message <code>google.shopping.merchant.products.v1beta.ProductStructuredDescription</code>
 */
class ProductStructuredDescription extends \Google\Protobuf\Internal\Message
{
    /**
     * The digital source type, for example "trained_algorithmic_media".
     * Following [IPTC](https://cv.iptc.org/newscodes/digitalsourcetype).
     * Maximum length is 40 characters.
     *
     * Generated from protobuf field <code>optional string digital_source_type = 1;</code>
     */
    protected $digital_source_type = null;
    /**
     * The description text
     * Maximum length is 5000 characters
     *
     * Generated from protobuf field <code>optional string content = 2;</code>
     */
    protected $content = null;

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type string $digital_source_type
     *           The digital source type, for example "trained_algorithmic_media".
     *           Following [IPTC](https://cv.iptc.org/newscodes/digitalsourcetype).
     *           Maximum length is 40 characters.
     *     @type string $content
     *           The description text
     *           Maximum length is 5000 characters
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\Google\Shopping\Merchant\Products\V1Beta\ProductsCommon::initOnce();
        parent::__construct($data);
    }

    /**
     * The digital source type, for example "trained_algorithmic_media".
     * Following [IPTC](https://cv.iptc.org/newscodes/digitalsourcetype).
     * Maximum length is 40 characters.
     *
     * Generated from protobuf field <code>optional string digital_source_type = 1;</code>
     * @return string
     */
    public function getDigitalSourceType()
    {
        return isset($this->digital_source_type) ? $this->digital_source_type : '';
    }

    public function hasDigitalSourceType()
    {
        return isset($this->digital_source_type);
    }

    public function clearDigitalSourceType()
    {
        unset($this->digital_source_type);
    }

    /**
     * The digital source type, for example "trained_algorithmic_media".
     * Following [IPTC](https://cv.iptc.org/newscodes/digitalsourcetype).
     * Maximum length is 40 characters.
     *
     * Generated from protobuf field <code>optional string digital_source_type = 1;</code>
     * @param string $var
     * @return $this
     */
    public function setDigitalSourceType($var)
    {
        GPBUtil::checkString($var, True);
        $this->digital_source_type = $var;

        return $this;
    }

    /**
     * The description text
     * Maximum length is 5000 characters
     *
     * Generated from protobuf field <code>optional string content = 2;</code>
     * @return string
     */
    public function getContent()
    {
        return isset($this->content) ? $this->content : '';
    }

    public function hasContent()
    {
        return isset($this->content);
    }

    public function clearContent()
    {
        unset($this->content);
    }

    /**
     * The description text
     * Maximum length is 5000 characters
     *
     * Generated from protobuf field <code>optional string content = 2;</code>
     * @param string $var
     * @return $this
     */
    public function setContent($var)
    {
        GPBUtil::checkString($var, True);
        $this->content = $var;

        return $this;
    }

}

