<?php
# Generated by the protocol buffer compiler.  DO NOT EDIT!
# source: google/ads/googleads/v25/resources/lift_measurement_campaign.proto

namespace Google\Ads\GoogleAds\V25\Resources;

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

/**
 * A brand lift measurement by campaign.
 *
 * Generated from protobuf message <code>google.ads.googleads.v25.resources.LiftMeasurementCampaign</code>
 */
class LiftMeasurementCampaign extends \Google\Protobuf\Internal\Message
{
    /**
     * Output only. The resource name of the lift measurement campaign.
     * Lift measurement campaign resource names have the form:
     * `customers/{customer_id}/liftMeasurementCampaigns/{lift_measurement_config_id}~{campaign_id}`
     *
     * Generated from protobuf field <code>string resource_name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = {</code>
     */
    protected $resource_name = '';
    /**
     * Output only. The lift measurement config ID.
     *
     * Generated from protobuf field <code>optional int64 lift_measurement_config_id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
     */
    protected $lift_measurement_config_id = null;
    /**
     * Output only. The campaign resource name.
     *
     * Generated from protobuf field <code>optional string campaign = 4 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = {</code>
     */
    protected $campaign = null;

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type string $resource_name
     *           Output only. The resource name of the lift measurement campaign.
     *           Lift measurement campaign resource names have the form:
     *           `customers/{customer_id}/liftMeasurementCampaigns/{lift_measurement_config_id}~{campaign_id}`
     *     @type int|string $lift_measurement_config_id
     *           Output only. The lift measurement config ID.
     *     @type string $campaign
     *           Output only. The campaign resource name.
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\Google\Ads\GoogleAds\V25\Resources\LiftMeasurementCampaign::initOnce();
        parent::__construct($data);
    }

    /**
     * Output only. The resource name of the lift measurement campaign.
     * Lift measurement campaign resource names have the form:
     * `customers/{customer_id}/liftMeasurementCampaigns/{lift_measurement_config_id}~{campaign_id}`
     *
     * Generated from protobuf field <code>string resource_name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = {</code>
     * @return string
     */
    public function getResourceName()
    {
        return $this->resource_name;
    }

    /**
     * Output only. The resource name of the lift measurement campaign.
     * Lift measurement campaign resource names have the form:
     * `customers/{customer_id}/liftMeasurementCampaigns/{lift_measurement_config_id}~{campaign_id}`
     *
     * Generated from protobuf field <code>string resource_name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = {</code>
     * @param string $var
     * @return $this
     */
    public function setResourceName($var)
    {
        GPBUtil::checkString($var, True);
        $this->resource_name = $var;

        return $this;
    }

    /**
     * Output only. The lift measurement config ID.
     *
     * Generated from protobuf field <code>optional int64 lift_measurement_config_id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
     * @return int|string
     */
    public function getLiftMeasurementConfigId()
    {
        return isset($this->lift_measurement_config_id) ? $this->lift_measurement_config_id : 0;
    }

    public function hasLiftMeasurementConfigId()
    {
        return isset($this->lift_measurement_config_id);
    }

    public function clearLiftMeasurementConfigId()
    {
        unset($this->lift_measurement_config_id);
    }

    /**
     * Output only. The lift measurement config ID.
     *
     * Generated from protobuf field <code>optional int64 lift_measurement_config_id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
     * @param int|string $var
     * @return $this
     */
    public function setLiftMeasurementConfigId($var)
    {
        GPBUtil::checkInt64($var);
        $this->lift_measurement_config_id = $var;

        return $this;
    }

    /**
     * Output only. The campaign resource name.
     *
     * Generated from protobuf field <code>optional string campaign = 4 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = {</code>
     * @return string
     */
    public function getCampaign()
    {
        return isset($this->campaign) ? $this->campaign : '';
    }

    public function hasCampaign()
    {
        return isset($this->campaign);
    }

    public function clearCampaign()
    {
        unset($this->campaign);
    }

    /**
     * Output only. The campaign resource name.
     *
     * Generated from protobuf field <code>optional string campaign = 4 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = {</code>
     * @param string $var
     * @return $this
     */
    public function setCampaign($var)
    {
        GPBUtil::checkString($var, True);
        $this->campaign = $var;

        return $this;
    }

}

