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

namespace Google\Cloud\AIPlatform\V1\PipelineTaskDetail;

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

/**
 * A list of artifact metadata.
 *
 * Generated from protobuf message <code>google.cloud.aiplatform.v1.PipelineTaskDetail.ArtifactList</code>
 */
class ArtifactList extends \Google\Protobuf\Internal\Message
{
    /**
     * Output only. A list of artifact metadata.
     *
     * Generated from protobuf field <code>repeated .google.cloud.aiplatform.v1.Artifact artifacts = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
     */
    private $artifacts;

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type array<\Google\Cloud\AIPlatform\V1\Artifact>|\Google\Protobuf\Internal\RepeatedField $artifacts
     *           Output only. A list of artifact metadata.
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\Google\Cloud\Aiplatform\V1\PipelineJob::initOnce();
        parent::__construct($data);
    }

    /**
     * Output only. A list of artifact metadata.
     *
     * Generated from protobuf field <code>repeated .google.cloud.aiplatform.v1.Artifact artifacts = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
     * @return \Google\Protobuf\Internal\RepeatedField
     */
    public function getArtifacts()
    {
        return $this->artifacts;
    }

    /**
     * Output only. A list of artifact metadata.
     *
     * Generated from protobuf field <code>repeated .google.cloud.aiplatform.v1.Artifact artifacts = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
     * @param array<\Google\Cloud\AIPlatform\V1\Artifact>|\Google\Protobuf\Internal\RepeatedField $var
     * @return $this
     */
    public function setArtifacts($var)
    {
        $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\AIPlatform\V1\Artifact::class);
        $this->artifacts = $arr;

        return $this;
    }

}


