<?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.AIRichResponseImageURL</code>
 */
class AIRichResponseImageURL extends \Google\Protobuf\Internal\Message
{
    /**
     * Generated from protobuf field <code>optional string imagePreviewUrl = 1;</code>
     */
    protected $imagePreviewUrl = null;
    /**
     * Generated from protobuf field <code>optional string imageHighResUrl = 2;</code>
     */
    protected $imageHighResUrl = null;
    /**
     * Generated from protobuf field <code>optional string sourceUrl = 3;</code>
     */
    protected $sourceUrl = null;

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

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

    public function hasImagePreviewUrl()
    {
        return isset($this->imagePreviewUrl);
    }

    public function clearImagePreviewUrl()
    {
        unset($this->imagePreviewUrl);
    }

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

        return $this;
    }

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

    public function hasImageHighResUrl()
    {
        return isset($this->imageHighResUrl);
    }

    public function clearImageHighResUrl()
    {
        unset($this->imageHighResUrl);
    }

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

        return $this;
    }

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

    public function hasSourceUrl()
    {
        return isset($this->sourceUrl);
    }

    public function clearSourceUrl()
    {
        unset($this->sourceUrl);
    }

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

        return $this;
    }

}

