<?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;

/**
 * Retrieval config.
 *
 * Generated from protobuf message <code>google.cloud.aiplatform.v1.RetrievalConfig</code>
 */
class RetrievalConfig extends \Google\Protobuf\Internal\Message
{
    /**
     * The location of the user.
     *
     * Generated from protobuf field <code>optional .google.type.LatLng lat_lng = 1;</code>
     */
    protected $lat_lng = null;
    /**
     * The language code of the user.
     *
     * Generated from protobuf field <code>optional string language_code = 2;</code>
     */
    protected $language_code = null;

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type \Google\Type\LatLng $lat_lng
     *           The location of the user.
     *     @type string $language_code
     *           The language code of the user.
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\Google\Cloud\Aiplatform\V1\Tool::initOnce();
        parent::__construct($data);
    }

    /**
     * The location of the user.
     *
     * Generated from protobuf field <code>optional .google.type.LatLng lat_lng = 1;</code>
     * @return \Google\Type\LatLng|null
     */
    public function getLatLng()
    {
        return $this->lat_lng;
    }

    public function hasLatLng()
    {
        return isset($this->lat_lng);
    }

    public function clearLatLng()
    {
        unset($this->lat_lng);
    }

    /**
     * The location of the user.
     *
     * Generated from protobuf field <code>optional .google.type.LatLng lat_lng = 1;</code>
     * @param \Google\Type\LatLng $var
     * @return $this
     */
    public function setLatLng($var)
    {
        GPBUtil::checkMessage($var, \Google\Type\LatLng::class);
        $this->lat_lng = $var;

        return $this;
    }

    /**
     * The language code of the user.
     *
     * Generated from protobuf field <code>optional string language_code = 2;</code>
     * @return string
     */
    public function getLanguageCode()
    {
        return isset($this->language_code) ? $this->language_code : '';
    }

    public function hasLanguageCode()
    {
        return isset($this->language_code);
    }

    public function clearLanguageCode()
    {
        unset($this->language_code);
    }

    /**
     * The language code of the user.
     *
     * Generated from protobuf field <code>optional string language_code = 2;</code>
     * @param string $var
     * @return $this
     */
    public function setLanguageCode($var)
    {
        GPBUtil::checkString($var, True);
        $this->language_code = $var;

        return $this;
    }

}

