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

namespace Google\Cloud\ArtifactRegistry\V1;

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

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

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

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

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

        return $this;
    }

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

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

        return $this;
    }

}

