<?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\RepeatedField;
use Google\Protobuf\Internal\GPBUtil;

/**
 * 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 array<\Google\Cloud\AIPlatform\V1\UrlMetadata>|\Google\Protobuf\Internal\RepeatedField $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 \Google\Protobuf\Internal\RepeatedField
     */
    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 array<\Google\Cloud\AIPlatform\V1\UrlMetadata>|\Google\Protobuf\Internal\RepeatedField $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;
    }

}

