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

namespace Google\Cloud\AIPlatform\V1\PublisherModel\CallToAction;

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

/**
 * The regional resource name or the URI. Key is region, e.g.,
 * us-central1, europe-west2, global, etc..
 *
 * Generated from protobuf message <code>google.cloud.aiplatform.v1.PublisherModel.CallToAction.RegionalResourceReferences</code>
 */
class RegionalResourceReferences extends \Google\Protobuf\Internal\Message
{
    /**
     * Required.
     *
     * Generated from protobuf field <code>map<string, .google.cloud.aiplatform.v1.PublisherModel.ResourceReference> references = 1 [(.google.api.field_behavior) = REQUIRED];</code>
     */
    private $references;
    /**
     * Required.
     *
     * Generated from protobuf field <code>string title = 2 [(.google.api.field_behavior) = REQUIRED];</code>
     */
    private $title = '';
    /**
     * Optional. Title of the resource.
     *
     * Generated from protobuf field <code>optional string resource_title = 3 [(.google.api.field_behavior) = OPTIONAL];</code>
     */
    private $resource_title = null;
    /**
     * Optional. Use case (CUJ) of the resource.
     *
     * Generated from protobuf field <code>optional string resource_use_case = 4 [(.google.api.field_behavior) = OPTIONAL];</code>
     */
    private $resource_use_case = null;
    /**
     * Optional. Description of the resource.
     *
     * Generated from protobuf field <code>optional string resource_description = 5 [(.google.api.field_behavior) = OPTIONAL];</code>
     */
    private $resource_description = null;

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type array|\Google\Protobuf\Internal\MapField $references
     *           Required.
     *     @type string $title
     *           Required.
     *     @type string $resource_title
     *           Optional. Title of the resource.
     *     @type string $resource_use_case
     *           Optional. Use case (CUJ) of the resource.
     *     @type string $resource_description
     *           Optional. Description of the resource.
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\Google\Cloud\Aiplatform\V1\PublisherModel::initOnce();
        parent::__construct($data);
    }

    /**
     * Required.
     *
     * Generated from protobuf field <code>map<string, .google.cloud.aiplatform.v1.PublisherModel.ResourceReference> references = 1 [(.google.api.field_behavior) = REQUIRED];</code>
     * @return \Google\Protobuf\Internal\MapField
     */
    public function getReferences()
    {
        return $this->references;
    }

    /**
     * Required.
     *
     * Generated from protobuf field <code>map<string, .google.cloud.aiplatform.v1.PublisherModel.ResourceReference> references = 1 [(.google.api.field_behavior) = REQUIRED];</code>
     * @param array|\Google\Protobuf\Internal\MapField $var
     * @return $this
     */
    public function setReferences($var)
    {
        $arr = GPBUtil::checkMapField($var, \Google\Protobuf\Internal\GPBType::STRING, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\AIPlatform\V1\PublisherModel\ResourceReference::class);
        $this->references = $arr;

        return $this;
    }

    /**
     * Required.
     *
     * Generated from protobuf field <code>string title = 2 [(.google.api.field_behavior) = REQUIRED];</code>
     * @return string
     */
    public function getTitle()
    {
        return $this->title;
    }

    /**
     * Required.
     *
     * Generated from protobuf field <code>string title = 2 [(.google.api.field_behavior) = REQUIRED];</code>
     * @param string $var
     * @return $this
     */
    public function setTitle($var)
    {
        GPBUtil::checkString($var, True);
        $this->title = $var;

        return $this;
    }

    /**
     * Optional. Title of the resource.
     *
     * Generated from protobuf field <code>optional string resource_title = 3 [(.google.api.field_behavior) = OPTIONAL];</code>
     * @return string
     */
    public function getResourceTitle()
    {
        return isset($this->resource_title) ? $this->resource_title : '';
    }

    public function hasResourceTitle()
    {
        return isset($this->resource_title);
    }

    public function clearResourceTitle()
    {
        unset($this->resource_title);
    }

    /**
     * Optional. Title of the resource.
     *
     * Generated from protobuf field <code>optional string resource_title = 3 [(.google.api.field_behavior) = OPTIONAL];</code>
     * @param string $var
     * @return $this
     */
    public function setResourceTitle($var)
    {
        GPBUtil::checkString($var, True);
        $this->resource_title = $var;

        return $this;
    }

    /**
     * Optional. Use case (CUJ) of the resource.
     *
     * Generated from protobuf field <code>optional string resource_use_case = 4 [(.google.api.field_behavior) = OPTIONAL];</code>
     * @return string
     */
    public function getResourceUseCase()
    {
        return isset($this->resource_use_case) ? $this->resource_use_case : '';
    }

    public function hasResourceUseCase()
    {
        return isset($this->resource_use_case);
    }

    public function clearResourceUseCase()
    {
        unset($this->resource_use_case);
    }

    /**
     * Optional. Use case (CUJ) of the resource.
     *
     * Generated from protobuf field <code>optional string resource_use_case = 4 [(.google.api.field_behavior) = OPTIONAL];</code>
     * @param string $var
     * @return $this
     */
    public function setResourceUseCase($var)
    {
        GPBUtil::checkString($var, True);
        $this->resource_use_case = $var;

        return $this;
    }

    /**
     * Optional. Description of the resource.
     *
     * Generated from protobuf field <code>optional string resource_description = 5 [(.google.api.field_behavior) = OPTIONAL];</code>
     * @return string
     */
    public function getResourceDescription()
    {
        return isset($this->resource_description) ? $this->resource_description : '';
    }

    public function hasResourceDescription()
    {
        return isset($this->resource_description);
    }

    public function clearResourceDescription()
    {
        unset($this->resource_description);
    }

    /**
     * Optional. Description of the resource.
     *
     * Generated from protobuf field <code>optional string resource_description = 5 [(.google.api.field_behavior) = OPTIONAL];</code>
     * @param string $var
     * @return $this
     */
    public function setResourceDescription($var)
    {
        GPBUtil::checkString($var, True);
        $this->resource_description = $var;

        return $this;
    }

}


