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

namespace Google\Ads\GoogleAds\V25\Resources\LiftMeasurementConfig;

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

/**
 * A single measurement question set for a survey.
 *
 * Generated from protobuf message <code>google.ads.googleads.v25.resources.LiftMeasurementConfig.SingleMeasurementQuestionSet</code>
 */
class SingleMeasurementQuestionSet extends \Google\Protobuf\Internal\Message
{
    /**
     * Output only. The intended action for the question text.
     *
     * Generated from protobuf field <code>.google.ads.googleads.v25.enums.SurveyIntendedActionEnum.SurveyIntendedAction question_text_intended_action = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
     */
    protected $question_text_intended_action = 0;
    /**
     * Output only. The subject type for the question text.
     *
     * Generated from protobuf field <code>.google.ads.googleads.v25.enums.SurveySubjectTypeEnum.SurveySubjectType question_text_subject_type = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
     */
    protected $question_text_subject_type = 0;
    /**
     * Output only. The brand measurement types for the question.
     *
     * Generated from protobuf field <code>repeated .google.ads.googleads.v25.enums.BrandLiftMeasurementTypeEnum.BrandLiftMeasurementType question_measurements = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
     */
    private $question_measurements;
    /**
     * Output only. The advertiser preferred choice.
     *
     * Generated from protobuf field <code>string advertiser_preferred_choice = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
     */
    protected $advertiser_preferred_choice = '';
    /**
     * Output only. The competitor choices.
     *
     * Generated from protobuf field <code>repeated string competitor_choices = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
     */
    private $competitor_choices;

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type int $question_text_intended_action
     *           Output only. The intended action for the question text.
     *     @type int $question_text_subject_type
     *           Output only. The subject type for the question text.
     *     @type int[] $question_measurements
     *           Output only. The brand measurement types for the question.
     *     @type string $advertiser_preferred_choice
     *           Output only. The advertiser preferred choice.
     *     @type string[] $competitor_choices
     *           Output only. The competitor choices.
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\Google\Ads\GoogleAds\V25\Resources\LiftMeasurementConfig::initOnce();
        parent::__construct($data);
    }

    /**
     * Output only. The intended action for the question text.
     *
     * Generated from protobuf field <code>.google.ads.googleads.v25.enums.SurveyIntendedActionEnum.SurveyIntendedAction question_text_intended_action = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
     * @return int
     */
    public function getQuestionTextIntendedAction()
    {
        return $this->question_text_intended_action;
    }

    /**
     * Output only. The intended action for the question text.
     *
     * Generated from protobuf field <code>.google.ads.googleads.v25.enums.SurveyIntendedActionEnum.SurveyIntendedAction question_text_intended_action = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
     * @param int $var
     * @return $this
     */
    public function setQuestionTextIntendedAction($var)
    {
        GPBUtil::checkEnum($var, \Google\Ads\GoogleAds\V25\Enums\SurveyIntendedActionEnum\SurveyIntendedAction::class);
        $this->question_text_intended_action = $var;

        return $this;
    }

    /**
     * Output only. The subject type for the question text.
     *
     * Generated from protobuf field <code>.google.ads.googleads.v25.enums.SurveySubjectTypeEnum.SurveySubjectType question_text_subject_type = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
     * @return int
     */
    public function getQuestionTextSubjectType()
    {
        return $this->question_text_subject_type;
    }

    /**
     * Output only. The subject type for the question text.
     *
     * Generated from protobuf field <code>.google.ads.googleads.v25.enums.SurveySubjectTypeEnum.SurveySubjectType question_text_subject_type = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
     * @param int $var
     * @return $this
     */
    public function setQuestionTextSubjectType($var)
    {
        GPBUtil::checkEnum($var, \Google\Ads\GoogleAds\V25\Enums\SurveySubjectTypeEnum\SurveySubjectType::class);
        $this->question_text_subject_type = $var;

        return $this;
    }

    /**
     * Output only. The brand measurement types for the question.
     *
     * Generated from protobuf field <code>repeated .google.ads.googleads.v25.enums.BrandLiftMeasurementTypeEnum.BrandLiftMeasurementType question_measurements = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
     * @return RepeatedField<int>
     */
    public function getQuestionMeasurements()
    {
        return $this->question_measurements;
    }

    /**
     * Output only. The brand measurement types for the question.
     *
     * Generated from protobuf field <code>repeated .google.ads.googleads.v25.enums.BrandLiftMeasurementTypeEnum.BrandLiftMeasurementType question_measurements = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
     * @param int[] $var
     * @return $this
     */
    public function setQuestionMeasurements($var)
    {
        $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::ENUM, \Google\Ads\GoogleAds\V25\Enums\BrandLiftMeasurementTypeEnum\BrandLiftMeasurementType::class);
        $this->question_measurements = $arr;

        return $this;
    }

    /**
     * Output only. The advertiser preferred choice.
     *
     * Generated from protobuf field <code>string advertiser_preferred_choice = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
     * @return string
     */
    public function getAdvertiserPreferredChoice()
    {
        return $this->advertiser_preferred_choice;
    }

    /**
     * Output only. The advertiser preferred choice.
     *
     * Generated from protobuf field <code>string advertiser_preferred_choice = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
     * @param string $var
     * @return $this
     */
    public function setAdvertiserPreferredChoice($var)
    {
        GPBUtil::checkString($var, True);
        $this->advertiser_preferred_choice = $var;

        return $this;
    }

    /**
     * Output only. The competitor choices.
     *
     * Generated from protobuf field <code>repeated string competitor_choices = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
     * @return RepeatedField<string>
     */
    public function getCompetitorChoices()
    {
        return $this->competitor_choices;
    }

    /**
     * Output only. The competitor choices.
     *
     * Generated from protobuf field <code>repeated string competitor_choices = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
     * @param string[] $var
     * @return $this
     */
    public function setCompetitorChoices($var)
    {
        $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING);
        $this->competitor_choices = $arr;

        return $this;
    }

}

