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

namespace Google\Ads\GoogleAds\V24\Resources;

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

/**
 * Qualifying Questions for Lead Form.
 *
 * Generated from protobuf message <code>google.ads.googleads.v24.resources.QualifyingQuestion</code>
 */
class QualifyingQuestion extends \Google\Protobuf\Internal\Message
{
    /**
     * Output only. The resource name of the qualifying question.
     * 'qualifyingQuestions/{qualifyingQuestionId}'
     *
     * 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 id of the qualifying question.
     *
     * Generated from protobuf field <code>int64 qualifying_question_id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
     */
    protected $qualifying_question_id = 0;
    /**
     * Output only. The locale of the qualifying question.
     *
     * Generated from protobuf field <code>string locale = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
     */
    protected $locale = '';
    /**
     * Output only. The qualifying question.
     *
     * Generated from protobuf field <code>string text = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
     */
    protected $text = '';

    /**
     * Constructor.
     *
     * @param array $data {
     *                    Optional. Data for populating the Message object.
     *
     * @type string $resource_name
     *           Output only. The resource name of the qualifying question.
     *           'qualifyingQuestions/{qualifyingQuestionId}'
     * @type int|string $qualifying_question_id
     *           Output only. The id of the qualifying question.
     * @type string $locale
     *           Output only. The locale of the qualifying question.
     * @type string $text
     *           Output only. The qualifying question.
     * }
     */
    public function __construct($data = null)
    {
        \GPBMetadata\Google\Ads\GoogleAds\V24\Resources\QualifyingQuestion::initOnce();
        parent::__construct($data);
    }

    /**
     * Output only. The resource name of the qualifying question.
     * 'qualifyingQuestions/{qualifyingQuestionId}'
     *
     * 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 qualifying question.
     * 'qualifyingQuestions/{qualifyingQuestionId}'
     *
     * 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 id of the qualifying question.
     *
     * Generated from protobuf field <code>int64 qualifying_question_id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
     *
     * @return int|string
     */
    public function getQualifyingQuestionId()
    {
        return $this->qualifying_question_id;
    }

    /**
     * Output only. The id of the qualifying question.
     *
     * Generated from protobuf field <code>int64 qualifying_question_id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
     *
     * @param  int|string $var
     * @return $this
     */
    public function setQualifyingQuestionId($var)
    {
        GPBUtil::checkInt64($var);
        $this->qualifying_question_id = $var;

        return $this;
    }

    /**
     * Output only. The locale of the qualifying question.
     *
     * Generated from protobuf field <code>string locale = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
     *
     * @return string
     */
    public function getLocale()
    {
        return $this->locale;
    }

    /**
     * Output only. The locale of the qualifying question.
     *
     * Generated from protobuf field <code>string locale = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
     *
     * @param  string $var
     * @return $this
     */
    public function setLocale($var)
    {
        GPBUtil::checkString($var, true);
        $this->locale = $var;

        return $this;
    }

    /**
     * Output only. The qualifying question.
     *
     * Generated from protobuf field <code>string text = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
     *
     * @return string
     */
    public function getText()
    {
        return $this->text;
    }

    /**
     * Output only. The qualifying question.
     *
     * Generated from protobuf field <code>string text = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
     *
     * @param  string $var
     * @return $this
     */
    public function setText($var)
    {
        GPBUtil::checkString($var, true);
        $this->text = $var;

        return $this;
    }

}

