<?php
# Generated by the protocol buffer compiler.  DO NOT EDIT!
# source: google/ads/googleads/v25/resources/lift_measurement_flight.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 flight.
 *
 * Generated from protobuf message <code>google.ads.googleads.v25.resources.LiftMeasurementFlight</code>
 */
class LiftMeasurementFlight extends \Google\Protobuf\Internal\Message
{
    /**
     * Immutable. The resource name of the lift measurement flight.
     * Lift measurement flight resource names have the form:
     * `customers/{customer_id}/liftMeasurementFlights/{lift_measurement_configuration_id}~{flight_id}`
     *
     * Generated from protobuf field <code>string resource_name = 1 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = {</code>
     */
    protected $resource_name = '';
    /**
     * Output only. The lift measurement configuration 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 lift measurement flight ID.
     *
     * Generated from protobuf field <code>optional int64 lift_measurement_flight_id = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
     */
    protected $lift_measurement_flight_id = null;
    /**
     * Output only. Flight configuration specific to Survey Lift.
     *
     * Generated from protobuf field <code>optional .google.ads.googleads.v25.resources.LiftMeasurementFlightSurveyLiftInfo survey_lift_info = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
     */
    protected $survey_lift_info = null;
    /**
     * Output only. The name of the lift measurement flight.
     *
     * Generated from protobuf field <code>optional string name = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
     */
    protected $name = null;
    /**
     * Output only. The status of the lift measurement flight.
     *
     * Generated from protobuf field <code>.google.ads.googleads.v25.enums.LiftMeasurementFlightStatusEnum.LiftMeasurementFlightStatus status = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
     */
    protected $status = 0;
    /**
     * Output only. The lift type measured during this flight.
     *
     * Generated from protobuf field <code>.google.ads.googleads.v25.enums.LiftMetricTypeEnum.LiftMetricType lift_type = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
     */
    protected $lift_type = 0;
    /**
     * Output only. Data about survey lift measurement.
     *
     * Generated from protobuf field <code>optional .google.ads.googleads.v25.resources.LiftMeasurementFlightSurveyLiftMeasurement survey_lift_measurement = 12 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
     */
    protected $survey_lift_measurement = null;
    /**
     * Output only. The start date of the lift measurement flight in the
     * customer's time zone.
     * Format: YYYY-MM-DD
     *
     * Generated from protobuf field <code>optional string start_date = 14 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
     */
    protected $start_date = null;
    /**
     * Output only. The end date of the lift measurement flight in the customer's
     * time zone.
     * Format: YYYY-MM-DD
     *
     * Generated from protobuf field <code>optional string end_date = 15 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
     */
    protected $end_date = null;

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type string $resource_name
     *           Immutable. The resource name of the lift measurement flight.
     *           Lift measurement flight resource names have the form:
     *           `customers/{customer_id}/liftMeasurementFlights/{lift_measurement_configuration_id}~{flight_id}`
     *     @type int|string $lift_measurement_config_id
     *           Output only. The lift measurement configuration ID.
     *     @type int|string $lift_measurement_flight_id
     *           Output only. The lift measurement flight ID.
     *     @type \Google\Ads\GoogleAds\V25\Resources\LiftMeasurementFlightSurveyLiftInfo $survey_lift_info
     *           Output only. Flight configuration specific to Survey Lift.
     *     @type string $name
     *           Output only. The name of the lift measurement flight.
     *     @type int $status
     *           Output only. The status of the lift measurement flight.
     *     @type int $lift_type
     *           Output only. The lift type measured during this flight.
     *     @type \Google\Ads\GoogleAds\V25\Resources\LiftMeasurementFlightSurveyLiftMeasurement $survey_lift_measurement
     *           Output only. Data about survey lift measurement.
     *     @type string $start_date
     *           Output only. The start date of the lift measurement flight in the
     *           customer's time zone.
     *           Format: YYYY-MM-DD
     *     @type string $end_date
     *           Output only. The end date of the lift measurement flight in the customer's
     *           time zone.
     *           Format: YYYY-MM-DD
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\Google\Ads\GoogleAds\V25\Resources\LiftMeasurementFlight::initOnce();
        parent::__construct($data);
    }

    /**
     * Immutable. The resource name of the lift measurement flight.
     * Lift measurement flight resource names have the form:
     * `customers/{customer_id}/liftMeasurementFlights/{lift_measurement_configuration_id}~{flight_id}`
     *
     * Generated from protobuf field <code>string resource_name = 1 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = {</code>
     * @return string
     */
    public function getResourceName()
    {
        return $this->resource_name;
    }

    /**
     * Immutable. The resource name of the lift measurement flight.
     * Lift measurement flight resource names have the form:
     * `customers/{customer_id}/liftMeasurementFlights/{lift_measurement_configuration_id}~{flight_id}`
     *
     * Generated from protobuf field <code>string resource_name = 1 [(.google.api.field_behavior) = IMMUTABLE, (.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 configuration 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 configuration 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 lift measurement flight ID.
     *
     * Generated from protobuf field <code>optional int64 lift_measurement_flight_id = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
     * @return int|string
     */
    public function getLiftMeasurementFlightId()
    {
        return isset($this->lift_measurement_flight_id) ? $this->lift_measurement_flight_id : 0;
    }

    public function hasLiftMeasurementFlightId()
    {
        return isset($this->lift_measurement_flight_id);
    }

    public function clearLiftMeasurementFlightId()
    {
        unset($this->lift_measurement_flight_id);
    }

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

        return $this;
    }

    /**
     * Output only. Flight configuration specific to Survey Lift.
     *
     * Generated from protobuf field <code>optional .google.ads.googleads.v25.resources.LiftMeasurementFlightSurveyLiftInfo survey_lift_info = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
     * @return \Google\Ads\GoogleAds\V25\Resources\LiftMeasurementFlightSurveyLiftInfo|null
     */
    public function getSurveyLiftInfo()
    {
        return $this->survey_lift_info;
    }

    public function hasSurveyLiftInfo()
    {
        return isset($this->survey_lift_info);
    }

    public function clearSurveyLiftInfo()
    {
        unset($this->survey_lift_info);
    }

    /**
     * Output only. Flight configuration specific to Survey Lift.
     *
     * Generated from protobuf field <code>optional .google.ads.googleads.v25.resources.LiftMeasurementFlightSurveyLiftInfo survey_lift_info = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
     * @param \Google\Ads\GoogleAds\V25\Resources\LiftMeasurementFlightSurveyLiftInfo $var
     * @return $this
     */
    public function setSurveyLiftInfo($var)
    {
        GPBUtil::checkMessage($var, \Google\Ads\GoogleAds\V25\Resources\LiftMeasurementFlightSurveyLiftInfo::class);
        $this->survey_lift_info = $var;

        return $this;
    }

    /**
     * Output only. The name of the lift measurement flight.
     *
     * Generated from protobuf field <code>optional string name = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
     * @return string
     */
    public function getName()
    {
        return isset($this->name) ? $this->name : '';
    }

    public function hasName()
    {
        return isset($this->name);
    }

    public function clearName()
    {
        unset($this->name);
    }

    /**
     * Output only. The name of the lift measurement flight.
     *
     * Generated from protobuf field <code>optional string name = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
     * @param string $var
     * @return $this
     */
    public function setName($var)
    {
        GPBUtil::checkString($var, True);
        $this->name = $var;

        return $this;
    }

    /**
     * Output only. The status of the lift measurement flight.
     *
     * Generated from protobuf field <code>.google.ads.googleads.v25.enums.LiftMeasurementFlightStatusEnum.LiftMeasurementFlightStatus status = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
     * @return int
     */
    public function getStatus()
    {
        return $this->status;
    }

    /**
     * Output only. The status of the lift measurement flight.
     *
     * Generated from protobuf field <code>.google.ads.googleads.v25.enums.LiftMeasurementFlightStatusEnum.LiftMeasurementFlightStatus status = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
     * @param int $var
     * @return $this
     */
    public function setStatus($var)
    {
        GPBUtil::checkEnum($var, \Google\Ads\GoogleAds\V25\Enums\LiftMeasurementFlightStatusEnum\LiftMeasurementFlightStatus::class);
        $this->status = $var;

        return $this;
    }

    /**
     * Output only. The lift type measured during this flight.
     *
     * Generated from protobuf field <code>.google.ads.googleads.v25.enums.LiftMetricTypeEnum.LiftMetricType lift_type = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
     * @return int
     */
    public function getLiftType()
    {
        return $this->lift_type;
    }

    /**
     * Output only. The lift type measured during this flight.
     *
     * Generated from protobuf field <code>.google.ads.googleads.v25.enums.LiftMetricTypeEnum.LiftMetricType lift_type = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
     * @param int $var
     * @return $this
     */
    public function setLiftType($var)
    {
        GPBUtil::checkEnum($var, \Google\Ads\GoogleAds\V25\Enums\LiftMetricTypeEnum\LiftMetricType::class);
        $this->lift_type = $var;

        return $this;
    }

    /**
     * Output only. Data about survey lift measurement.
     *
     * Generated from protobuf field <code>optional .google.ads.googleads.v25.resources.LiftMeasurementFlightSurveyLiftMeasurement survey_lift_measurement = 12 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
     * @return \Google\Ads\GoogleAds\V25\Resources\LiftMeasurementFlightSurveyLiftMeasurement|null
     */
    public function getSurveyLiftMeasurement()
    {
        return $this->survey_lift_measurement;
    }

    public function hasSurveyLiftMeasurement()
    {
        return isset($this->survey_lift_measurement);
    }

    public function clearSurveyLiftMeasurement()
    {
        unset($this->survey_lift_measurement);
    }

    /**
     * Output only. Data about survey lift measurement.
     *
     * Generated from protobuf field <code>optional .google.ads.googleads.v25.resources.LiftMeasurementFlightSurveyLiftMeasurement survey_lift_measurement = 12 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
     * @param \Google\Ads\GoogleAds\V25\Resources\LiftMeasurementFlightSurveyLiftMeasurement $var
     * @return $this
     */
    public function setSurveyLiftMeasurement($var)
    {
        GPBUtil::checkMessage($var, \Google\Ads\GoogleAds\V25\Resources\LiftMeasurementFlightSurveyLiftMeasurement::class);
        $this->survey_lift_measurement = $var;

        return $this;
    }

    /**
     * Output only. The start date of the lift measurement flight in the
     * customer's time zone.
     * Format: YYYY-MM-DD
     *
     * Generated from protobuf field <code>optional string start_date = 14 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
     * @return string
     */
    public function getStartDate()
    {
        return isset($this->start_date) ? $this->start_date : '';
    }

    public function hasStartDate()
    {
        return isset($this->start_date);
    }

    public function clearStartDate()
    {
        unset($this->start_date);
    }

    /**
     * Output only. The start date of the lift measurement flight in the
     * customer's time zone.
     * Format: YYYY-MM-DD
     *
     * Generated from protobuf field <code>optional string start_date = 14 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
     * @param string $var
     * @return $this
     */
    public function setStartDate($var)
    {
        GPBUtil::checkString($var, True);
        $this->start_date = $var;

        return $this;
    }

    /**
     * Output only. The end date of the lift measurement flight in the customer's
     * time zone.
     * Format: YYYY-MM-DD
     *
     * Generated from protobuf field <code>optional string end_date = 15 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
     * @return string
     */
    public function getEndDate()
    {
        return isset($this->end_date) ? $this->end_date : '';
    }

    public function hasEndDate()
    {
        return isset($this->end_date);
    }

    public function clearEndDate()
    {
        unset($this->end_date);
    }

    /**
     * Output only. The end date of the lift measurement flight in the customer's
     * time zone.
     * Format: YYYY-MM-DD
     *
     * Generated from protobuf field <code>optional string end_date = 15 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
     * @param string $var
     * @return $this
     */
    public function setEndDate($var)
    {
        GPBUtil::checkString($var, True);
        $this->end_date = $var;

        return $this;
    }

}

