<?php
# Generated by the protocol buffer compiler.  DO NOT EDIT!
# source: dy.proto

namespace Douyin;

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

/**
 * Generated from protobuf message <code>douyin.TextEffect</code>
 */
class TextEffect extends \Google\Protobuf\Internal\Message
{
    /**
     * Generated from protobuf field <code>.douyin.TextEffectDetail portrait = 1;</code>
     */
    protected $portrait = null;
    /**
     * Generated from protobuf field <code>.douyin.TextEffectDetail landscape = 2;</code>
     */
    protected $landscape = null;

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type \Douyin\TextEffectDetail $portrait
     *     @type \Douyin\TextEffectDetail $landscape
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\Dy::initOnce();
        parent::__construct($data);
    }

    /**
     * Generated from protobuf field <code>.douyin.TextEffectDetail portrait = 1;</code>
     * @return \Douyin\TextEffectDetail|null
     */
    public function getPortrait()
    {
        return $this->portrait;
    }

    public function hasPortrait()
    {
        return isset($this->portrait);
    }

    public function clearPortrait()
    {
        unset($this->portrait);
    }

    /**
     * Generated from protobuf field <code>.douyin.TextEffectDetail portrait = 1;</code>
     * @param \Douyin\TextEffectDetail $var
     * @return $this
     */
    public function setPortrait($var)
    {
        GPBUtil::checkMessage($var, \Douyin\TextEffectDetail::class);
        $this->portrait = $var;

        return $this;
    }

    /**
     * Generated from protobuf field <code>.douyin.TextEffectDetail landscape = 2;</code>
     * @return \Douyin\TextEffectDetail|null
     */
    public function getLandscape()
    {
        return $this->landscape;
    }

    public function hasLandscape()
    {
        return isset($this->landscape);
    }

    public function clearLandscape()
    {
        unset($this->landscape);
    }

    /**
     * Generated from protobuf field <code>.douyin.TextEffectDetail landscape = 2;</code>
     * @param \Douyin\TextEffectDetail $var
     * @return $this
     */
    public function setLandscape($var)
    {
        GPBUtil::checkMessage($var, \Douyin\TextEffectDetail::class);
        $this->landscape = $var;

        return $this;
    }

}

