<?php
# Generated by the protocol buffer compiler.  DO NOT EDIT!
# source: google/cloud/dialogflow/v2/intent.proto

namespace Google\Cloud\Dialogflow\V2\Intent\Message;

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

/**
 * The image response message.
 *
 * Generated from protobuf message <code>google.cloud.dialogflow.v2.Intent.Message.Image</code>
 */
class Image extends \Google\Protobuf\Internal\Message
{
    /**
     * Optional. The public URI to an image file.
     *
     * Generated from protobuf field <code>string image_uri = 1;</code>
     */
    private $image_uri = '';
    /**
     * Optional. A text description of the image to be used for accessibility,
     * e.g., screen readers.
     *
     * Generated from protobuf field <code>string accessibility_text = 2;</code>
     */
    private $accessibility_text = '';

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type string $image_uri
     *           Optional. The public URI to an image file.
     *     @type string $accessibility_text
     *           Optional. A text description of the image to be used for accessibility,
     *           e.g., screen readers.
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\Google\Cloud\Dialogflow\V2\Intent::initOnce();
        parent::__construct($data);
    }

    /**
     * Optional. The public URI to an image file.
     *
     * Generated from protobuf field <code>string image_uri = 1;</code>
     * @return string
     */
    public function getImageUri()
    {
        return $this->image_uri;
    }

    /**
     * Optional. The public URI to an image file.
     *
     * Generated from protobuf field <code>string image_uri = 1;</code>
     * @param string $var
     * @return $this
     */
    public function setImageUri($var)
    {
        GPBUtil::checkString($var, True);
        $this->image_uri = $var;

        return $this;
    }

    /**
     * Optional. A text description of the image to be used for accessibility,
     * e.g., screen readers.
     *
     * Generated from protobuf field <code>string accessibility_text = 2;</code>
     * @return string
     */
    public function getAccessibilityText()
    {
        return $this->accessibility_text;
    }

    /**
     * Optional. A text description of the image to be used for accessibility,
     * e.g., screen readers.
     *
     * Generated from protobuf field <code>string accessibility_text = 2;</code>
     * @param string $var
     * @return $this
     */
    public function setAccessibilityText($var)
    {
        GPBUtil::checkString($var, True);
        $this->accessibility_text = $var;

        return $this;
    }

}

// Adding a class alias for backwards compatibility with the previous class name.
class_alias(Image::class, \Google\Cloud\Dialogflow\V2\Intent_Message_Image::class);

