<?php
# Generated by the protocol buffer compiler.  DO NOT EDIT!
# source: google/devtools/artifactregistry/v1beta2/apt_artifact.proto

namespace Google\Cloud\ArtifactRegistry\V1beta2;

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

/**
 * The response message from importing APT artifacts.
 *
 * Generated from protobuf message <code>google.devtools.artifactregistry.v1beta2.ImportAptArtifactsResponse</code>
 */
class ImportAptArtifactsResponse extends \Google\Protobuf\Internal\Message
{
    /**
     * The Apt artifacts imported.
     *
     * Generated from protobuf field <code>repeated .google.devtools.artifactregistry.v1beta2.AptArtifact apt_artifacts = 1;</code>
     */
    private $apt_artifacts;
    /**
     * Detailed error info for artifacts that were not imported.
     *
     * Generated from protobuf field <code>repeated .google.devtools.artifactregistry.v1beta2.ImportAptArtifactsErrorInfo errors = 2;</code>
     */
    private $errors;

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type array<\Google\Cloud\ArtifactRegistry\V1beta2\AptArtifact>|\Google\Protobuf\Internal\RepeatedField $apt_artifacts
     *           The Apt artifacts imported.
     *     @type array<\Google\Cloud\ArtifactRegistry\V1beta2\ImportAptArtifactsErrorInfo>|\Google\Protobuf\Internal\RepeatedField $errors
     *           Detailed error info for artifacts that were not imported.
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\Google\Devtools\Artifactregistry\V1Beta2\AptArtifact::initOnce();
        parent::__construct($data);
    }

    /**
     * The Apt artifacts imported.
     *
     * Generated from protobuf field <code>repeated .google.devtools.artifactregistry.v1beta2.AptArtifact apt_artifacts = 1;</code>
     * @return \Google\Protobuf\Internal\RepeatedField
     */
    public function getAptArtifacts()
    {
        return $this->apt_artifacts;
    }

    /**
     * The Apt artifacts imported.
     *
     * Generated from protobuf field <code>repeated .google.devtools.artifactregistry.v1beta2.AptArtifact apt_artifacts = 1;</code>
     * @param array<\Google\Cloud\ArtifactRegistry\V1beta2\AptArtifact>|\Google\Protobuf\Internal\RepeatedField $var
     * @return $this
     */
    public function setAptArtifacts($var)
    {
        $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\ArtifactRegistry\V1beta2\AptArtifact::class);
        $this->apt_artifacts = $arr;

        return $this;
    }

    /**
     * Detailed error info for artifacts that were not imported.
     *
     * Generated from protobuf field <code>repeated .google.devtools.artifactregistry.v1beta2.ImportAptArtifactsErrorInfo errors = 2;</code>
     * @return \Google\Protobuf\Internal\RepeatedField
     */
    public function getErrors()
    {
        return $this->errors;
    }

    /**
     * Detailed error info for artifacts that were not imported.
     *
     * Generated from protobuf field <code>repeated .google.devtools.artifactregistry.v1beta2.ImportAptArtifactsErrorInfo errors = 2;</code>
     * @param array<\Google\Cloud\ArtifactRegistry\V1beta2\ImportAptArtifactsErrorInfo>|\Google\Protobuf\Internal\RepeatedField $var
     * @return $this
     */
    public function setErrors($var)
    {
        $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\ArtifactRegistry\V1beta2\ImportAptArtifactsErrorInfo::class);
        $this->errors = $arr;

        return $this;
    }

}

