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

namespace Google\Cloud\AIPlatform\V1;

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

/**
 * Metadata related to url context retrieval tool.
 *
 * Generated from protobuf message <code>google.cloud.aiplatform.v1.UrlContextMetadata</code>
 */
class UrlContextMetadata extends \Google\Protobuf\Internal\Message
{
    /**
     * Output only. List of url context.
     *
     * Generated from protobuf field <code>repeated .google.cloud.aiplatform.v1.UrlMetadata url_metadata = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
     */
    private $url_metadata;

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type \Google\Cloud\AIPlatform\V1\UrlMetadata[] $url_metadata
     *           Output only. List of url context.
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\Google\Cloud\Aiplatform\V1\Content::initOnce();
        parent::__construct($data);
    }

    /**
     * Output only. List of url context.
     *
     * Generated from protobuf field <code>repeated .google.cloud.aiplatform.v1.UrlMetadata url_metadata = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
     * @return RepeatedField<\Google\Cloud\AIPlatform\V1\UrlMetadata>
     */
    public function getUrlMetadata()
    {
        return $this->url_metadata;
    }

    /**
     * Output only. List of url context.
     *
     * Generated from protobuf field <code>repeated .google.cloud.aiplatform.v1.UrlMetadata url_metadata = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
     * @param \Google\Cloud\AIPlatform\V1\UrlMetadata[] $var
     * @return $this
     */
    public function setUrlMetadata($var)
    {
        $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\AIPlatform\V1\UrlMetadata::class);
        $this->url_metadata = $arr;

        return $this;
    }

}

