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

/**
 * Open notebooks.
 *
 * Generated from protobuf message <code>google.cloud.aiplatform.v1.PublisherModel.CallToAction.OpenNotebooks</code>
 */
class OpenNotebooks extends \Google\Protobuf\Internal\Message
{
    /**
     * Required. Regional resource references to notebooks.
     *
     * Generated from protobuf field <code>repeated .google.cloud.aiplatform.v1.PublisherModel.CallToAction.RegionalResourceReferences notebooks = 1 [(.google.api.field_behavior) = REQUIRED];</code>
     */
    private $notebooks;

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type array<\Google\Cloud\AIPlatform\V1\PublisherModel\CallToAction\RegionalResourceReferences>|\Google\Protobuf\Internal\RepeatedField $notebooks
     *           Required. Regional resource references to notebooks.
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\Google\Cloud\Aiplatform\V1\PublisherModel::initOnce();
        parent::__construct($data);
    }

    /**
     * Required. Regional resource references to notebooks.
     *
     * Generated from protobuf field <code>repeated .google.cloud.aiplatform.v1.PublisherModel.CallToAction.RegionalResourceReferences notebooks = 1 [(.google.api.field_behavior) = REQUIRED];</code>
     * @return \Google\Protobuf\Internal\RepeatedField
     */
    public function getNotebooks()
    {
        return $this->notebooks;
    }

    /**
     * Required. Regional resource references to notebooks.
     *
     * Generated from protobuf field <code>repeated .google.cloud.aiplatform.v1.PublisherModel.CallToAction.RegionalResourceReferences notebooks = 1 [(.google.api.field_behavior) = REQUIRED];</code>
     * @param array<\Google\Cloud\AIPlatform\V1\PublisherModel\CallToAction\RegionalResourceReferences>|\Google\Protobuf\Internal\RepeatedField $var
     * @return $this
     */
    public function setNotebooks($var)
    {
        $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\AIPlatform\V1\PublisherModel\CallToAction\RegionalResourceReferences::class);
        $this->notebooks = $arr;

        return $this;
    }

}


