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

namespace Google\Cloud\DataCatalog\Lineage\V1;

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

/**
 * Links associated with a specific process.
 *
 * Generated from protobuf message <code>google.cloud.datacatalog.lineage.v1.ProcessLinks</code>
 */
class ProcessLinks extends \Google\Protobuf\Internal\Message
{
    /**
     * The process name in the format of
     * `projects/{project}/locations/{location}/processes/{process}`.
     *
     * Generated from protobuf field <code>string process = 1 [(.google.api.resource_reference) = {</code>
     */
    protected $process = '';
    /**
     * An array containing link details objects of the links provided in
     * the original request.
     * A single process can result in creating multiple links.
     * If any of the links you provide in the request are created by
     * the same process, they all are included in this array.
     *
     * Generated from protobuf field <code>repeated .google.cloud.datacatalog.lineage.v1.ProcessLinkInfo links = 2;</code>
     */
    private $links;

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type string $process
     *           The process name in the format of
     *           `projects/{project}/locations/{location}/processes/{process}`.
     *     @type array<\Google\Cloud\DataCatalog\Lineage\V1\ProcessLinkInfo>|\Google\Protobuf\Internal\RepeatedField $links
     *           An array containing link details objects of the links provided in
     *           the original request.
     *           A single process can result in creating multiple links.
     *           If any of the links you provide in the request are created by
     *           the same process, they all are included in this array.
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\Google\Cloud\Datacatalog\Lineage\V1\Lineage::initOnce();
        parent::__construct($data);
    }

    /**
     * The process name in the format of
     * `projects/{project}/locations/{location}/processes/{process}`.
     *
     * Generated from protobuf field <code>string process = 1 [(.google.api.resource_reference) = {</code>
     * @return string
     */
    public function getProcess()
    {
        return $this->process;
    }

    /**
     * The process name in the format of
     * `projects/{project}/locations/{location}/processes/{process}`.
     *
     * Generated from protobuf field <code>string process = 1 [(.google.api.resource_reference) = {</code>
     * @param string $var
     * @return $this
     */
    public function setProcess($var)
    {
        GPBUtil::checkString($var, True);
        $this->process = $var;

        return $this;
    }

    /**
     * An array containing link details objects of the links provided in
     * the original request.
     * A single process can result in creating multiple links.
     * If any of the links you provide in the request are created by
     * the same process, they all are included in this array.
     *
     * Generated from protobuf field <code>repeated .google.cloud.datacatalog.lineage.v1.ProcessLinkInfo links = 2;</code>
     * @return \Google\Protobuf\Internal\RepeatedField
     */
    public function getLinks()
    {
        return $this->links;
    }

    /**
     * An array containing link details objects of the links provided in
     * the original request.
     * A single process can result in creating multiple links.
     * If any of the links you provide in the request are created by
     * the same process, they all are included in this array.
     *
     * Generated from protobuf field <code>repeated .google.cloud.datacatalog.lineage.v1.ProcessLinkInfo links = 2;</code>
     * @param array<\Google\Cloud\DataCatalog\Lineage\V1\ProcessLinkInfo>|\Google\Protobuf\Internal\RepeatedField $var
     * @return $this
     */
    public function setLinks($var)
    {
        $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\DataCatalog\Lineage\V1\ProcessLinkInfo::class);
        $this->links = $arr;

        return $this;
    }

}

