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

namespace Google\Cloud\Deploy\V1;

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

/**
 * Information specifying a multiTarget.
 *
 * Generated from protobuf message <code>google.cloud.deploy.v1.MultiTarget</code>
 */
class MultiTarget extends \Google\Protobuf\Internal\Message
{
    /**
     * Required. The target_ids of this multiTarget.
     *
     * Generated from protobuf field <code>repeated string target_ids = 1 [(.google.api.field_behavior) = REQUIRED];</code>
     */
    private $target_ids;

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type string[] $target_ids
     *           Required. The target_ids of this multiTarget.
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\Google\Cloud\Deploy\V1\CloudDeploy::initOnce();
        parent::__construct($data);
    }

    /**
     * Required. The target_ids of this multiTarget.
     *
     * Generated from protobuf field <code>repeated string target_ids = 1 [(.google.api.field_behavior) = REQUIRED];</code>
     * @return RepeatedField<string>
     */
    public function getTargetIds()
    {
        return $this->target_ids;
    }

    /**
     * Required. The target_ids of this multiTarget.
     *
     * Generated from protobuf field <code>repeated string target_ids = 1 [(.google.api.field_behavior) = REQUIRED];</code>
     * @param string[] $var
     * @return $this
     */
    public function setTargetIds($var)
    {
        $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING);
        $this->target_ids = $arr;

        return $this;
    }

}

