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

namespace Google\Ads\GoogleAds\V25\Common;

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

/**
 * Defines possible answers for a single choice question, usually presented as
 * a single-choice drop-down list.
 *
 * Generated from protobuf message <code>google.ads.googleads.v25.common.LeadFormSingleChoiceAnswers</code>
 */
class LeadFormSingleChoiceAnswers extends \Google\Protobuf\Internal\Message
{
    /**
     * List of choices for a single question field. The order of entries defines
     * UI order. Minimum of 2 answers required and maximum of 12 allowed.
     *
     * Generated from protobuf field <code>repeated string answers = 1;</code>
     */
    private $answers;

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type string[] $answers
     *           List of choices for a single question field. The order of entries defines
     *           UI order. Minimum of 2 answers required and maximum of 12 allowed.
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\Google\Ads\GoogleAds\V25\Common\AssetTypes::initOnce();
        parent::__construct($data);
    }

    /**
     * List of choices for a single question field. The order of entries defines
     * UI order. Minimum of 2 answers required and maximum of 12 allowed.
     *
     * Generated from protobuf field <code>repeated string answers = 1;</code>
     * @return RepeatedField<string>
     */
    public function getAnswers()
    {
        return $this->answers;
    }

    /**
     * List of choices for a single question field. The order of entries defines
     * UI order. Minimum of 2 answers required and maximum of 12 allowed.
     *
     * Generated from protobuf field <code>repeated string answers = 1;</code>
     * @param string[] $var
     * @return $this
     */
    public function setAnswers($var)
    {
        $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING);
        $this->answers = $arr;

        return $this;
    }

}

