<?php
# Generated by the protocol buffer compiler.  DO NOT EDIT!
# NO CHECKED-IN PROTOBUF GENCODE
# source: WAProto.proto

namespace PhpWA\Protocol\Proto;

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

/**
 * Generated from protobuf message <code>proto.AIRichResponseInlineImageMetadata</code>
 */
class AIRichResponseInlineImageMetadata extends \Google\Protobuf\Internal\Message
{
    /**
     * Generated from protobuf field <code>optional .proto.AIRichResponseImageURL imageUrl = 1;</code>
     */
    protected $imageUrl = null;
    /**
     * Generated from protobuf field <code>optional string imageText = 2;</code>
     */
    protected $imageText = null;
    /**
     * Generated from protobuf field <code>optional .proto.AIRichResponseInlineImageMetadata.AIRichResponseImageAlignment alignment = 3;</code>
     */
    protected $alignment = null;
    /**
     * Generated from protobuf field <code>optional string tapLinkUrl = 4;</code>
     */
    protected $tapLinkUrl = null;

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type \PhpWA\Protocol\Proto\AIRichResponseImageURL $imageUrl
     *     @type string $imageText
     *     @type int $alignment
     *     @type string $tapLinkUrl
     * }
     */
    public function __construct($data = NULL) {
        \PhpWA\Protocol\Proto\Metadata\WAProto::initOnce();
        parent::__construct($data);
    }

    /**
     * Generated from protobuf field <code>optional .proto.AIRichResponseImageURL imageUrl = 1;</code>
     * @return \PhpWA\Protocol\Proto\AIRichResponseImageURL|null
     */
    public function getImageUrl()
    {
        return $this->imageUrl;
    }

    public function hasImageUrl()
    {
        return isset($this->imageUrl);
    }

    public function clearImageUrl()
    {
        unset($this->imageUrl);
    }

    /**
     * Generated from protobuf field <code>optional .proto.AIRichResponseImageURL imageUrl = 1;</code>
     * @param \PhpWA\Protocol\Proto\AIRichResponseImageURL $var
     * @return $this
     */
    public function setImageUrl($var)
    {
        GPBUtil::checkMessage($var, \PhpWA\Protocol\Proto\AIRichResponseImageURL::class);
        $this->imageUrl = $var;

        return $this;
    }

    /**
     * Generated from protobuf field <code>optional string imageText = 2;</code>
     * @return string
     */
    public function getImageText()
    {
        return isset($this->imageText) ? $this->imageText : '';
    }

    public function hasImageText()
    {
        return isset($this->imageText);
    }

    public function clearImageText()
    {
        unset($this->imageText);
    }

    /**
     * Generated from protobuf field <code>optional string imageText = 2;</code>
     * @param string $var
     * @return $this
     */
    public function setImageText($var)
    {
        GPBUtil::checkString($var, True);
        $this->imageText = $var;

        return $this;
    }

    /**
     * Generated from protobuf field <code>optional .proto.AIRichResponseInlineImageMetadata.AIRichResponseImageAlignment alignment = 3;</code>
     * @return int
     */
    public function getAlignment()
    {
        return isset($this->alignment) ? $this->alignment : 0;
    }

    public function hasAlignment()
    {
        return isset($this->alignment);
    }

    public function clearAlignment()
    {
        unset($this->alignment);
    }

    /**
     * Generated from protobuf field <code>optional .proto.AIRichResponseInlineImageMetadata.AIRichResponseImageAlignment alignment = 3;</code>
     * @param int $var
     * @return $this
     */
    public function setAlignment($var)
    {
        GPBUtil::checkEnum($var, \PhpWA\Protocol\Proto\AIRichResponseInlineImageMetadata\AIRichResponseImageAlignment::class);
        $this->alignment = $var;

        return $this;
    }

    /**
     * Generated from protobuf field <code>optional string tapLinkUrl = 4;</code>
     * @return string
     */
    public function getTapLinkUrl()
    {
        return isset($this->tapLinkUrl) ? $this->tapLinkUrl : '';
    }

    public function hasTapLinkUrl()
    {
        return isset($this->tapLinkUrl);
    }

    public function clearTapLinkUrl()
    {
        unset($this->tapLinkUrl);
    }

    /**
     * Generated from protobuf field <code>optional string tapLinkUrl = 4;</code>
     * @param string $var
     * @return $this
     */
    public function setTapLinkUrl($var)
    {
        GPBUtil::checkString($var, True);
        $this->tapLinkUrl = $var;

        return $this;
    }

}

