<?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\RepeatedField;
use Google\Protobuf\Internal\GPBUtil;

/**
 * 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 array<string>|\Google\Protobuf\Internal\RepeatedField $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 \Google\Protobuf\Internal\RepeatedField
     */
    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 array<string>|\Google\Protobuf\Internal\RepeatedField $var
     * @return $this
     */
    public function setTargetIds($var)
    {
        $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING);
        $this->target_ids = $arr;

        return $this;
    }

}

