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

namespace Google\Cloud\Deploy\V1\TimedPromoteReleaseCondition;

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

/**
 * The targets involved in a single timed promotion.
 *
 * Generated from protobuf message <code>google.cloud.deploy.v1.TimedPromoteReleaseCondition.Targets</code>
 */
class Targets extends \Google\Protobuf\Internal\Message
{
    /**
     * Optional. The source target ID.
     *
     * Generated from protobuf field <code>string source_target_id = 1 [(.google.api.field_behavior) = OPTIONAL];</code>
     */
    protected $source_target_id = '';
    /**
     * Optional. The destination target ID.
     *
     * Generated from protobuf field <code>string destination_target_id = 2 [(.google.api.field_behavior) = OPTIONAL];</code>
     */
    protected $destination_target_id = '';

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type string $source_target_id
     *           Optional. The source target ID.
     *     @type string $destination_target_id
     *           Optional. The destination target ID.
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\Google\Cloud\Deploy\V1\CloudDeploy::initOnce();
        parent::__construct($data);
    }

    /**
     * Optional. The source target ID.
     *
     * Generated from protobuf field <code>string source_target_id = 1 [(.google.api.field_behavior) = OPTIONAL];</code>
     * @return string
     */
    public function getSourceTargetId()
    {
        return $this->source_target_id;
    }

    /**
     * Optional. The source target ID.
     *
     * Generated from protobuf field <code>string source_target_id = 1 [(.google.api.field_behavior) = OPTIONAL];</code>
     * @param string $var
     * @return $this
     */
    public function setSourceTargetId($var)
    {
        GPBUtil::checkString($var, True);
        $this->source_target_id = $var;

        return $this;
    }

    /**
     * Optional. The destination target ID.
     *
     * Generated from protobuf field <code>string destination_target_id = 2 [(.google.api.field_behavior) = OPTIONAL];</code>
     * @return string
     */
    public function getDestinationTargetId()
    {
        return $this->destination_target_id;
    }

    /**
     * Optional. The destination target ID.
     *
     * Generated from protobuf field <code>string destination_target_id = 2 [(.google.api.field_behavior) = OPTIONAL];</code>
     * @param string $var
     * @return $this
     */
    public function setDestinationTargetId($var)
    {
        GPBUtil::checkString($var, True);
        $this->destination_target_id = $var;

        return $this;
    }

}

