<?php
# Generated by the protocol buffer compiler.  DO NOT EDIT!
# source: google/cloud/aiplatform/v1/tool.proto

namespace Google\Cloud\AIPlatform\V1;

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

/**
 * Tool to retrieve public maps data for grounding, powered by Google.
 *
 * Generated from protobuf message <code>google.cloud.aiplatform.v1.GoogleMaps</code>
 */
class GoogleMaps extends \Google\Protobuf\Internal\Message
{
    /**
     * If true, include the widget context token in the response.
     *
     * Generated from protobuf field <code>bool enable_widget = 1 [(.google.api.field_behavior) = OPTIONAL];</code>
     */
    protected $enable_widget = false;

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type bool $enable_widget
     *           If true, include the widget context token in the response.
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\Google\Cloud\Aiplatform\V1\Tool::initOnce();
        parent::__construct($data);
    }

    /**
     * If true, include the widget context token in the response.
     *
     * Generated from protobuf field <code>bool enable_widget = 1 [(.google.api.field_behavior) = OPTIONAL];</code>
     * @return bool
     */
    public function getEnableWidget()
    {
        return $this->enable_widget;
    }

    /**
     * If true, include the widget context token in the response.
     *
     * Generated from protobuf field <code>bool enable_widget = 1 [(.google.api.field_behavior) = OPTIONAL];</code>
     * @param bool $var
     * @return $this
     */
    public function setEnableWidget($var)
    {
        GPBUtil::checkBool($var);
        $this->enable_widget = $var;

        return $this;
    }

}

