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

namespace Google\Ads\GoogleAds\V24\Services;

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

/**
 * Details about various factors for not being satisfied with the lead.
 *
 * Generated from protobuf message <code>google.ads.googleads.v24.services.SurveyDissatisfied</code>
 */
class SurveyDissatisfied extends \Google\Protobuf\Internal\Message
{
    /**
     * Required. Provider's reason for not being satisfied with the lead.
     *
     * Generated from protobuf field <code>.google.ads.googleads.v24.enums.LocalServicesLeadSurveyDissatisfiedReasonEnum.SurveyDissatisfiedReason survey_dissatisfied_reason = 1 [(.google.api.field_behavior) = REQUIRED];</code>
     */
    protected $survey_dissatisfied_reason = 0;
    /**
     * Optional. Provider's free form comments. This field is required when
     * OTHER_DISSATISFIED_REASON is selected as the reason.
     *
     * Generated from protobuf field <code>string other_reason_comment = 2 [(.google.api.field_behavior) = OPTIONAL];</code>
     */
    protected $other_reason_comment = '';

    /**
     * Constructor.
     *
     * @param array $data {
     *                    Optional. Data for populating the Message object.
     *
     * @type int $survey_dissatisfied_reason
     *           Required. Provider's reason for not being satisfied with the lead.
     * @type string $other_reason_comment
     *           Optional. Provider's free form comments. This field is required when
     *           OTHER_DISSATISFIED_REASON is selected as the reason.
     * }
     */
    public function __construct($data = null)
    {
        \GPBMetadata\Google\Ads\GoogleAds\V24\Services\LocalServicesLeadService::initOnce();
        parent::__construct($data);
    }

    /**
     * Required. Provider's reason for not being satisfied with the lead.
     *
     * Generated from protobuf field <code>.google.ads.googleads.v24.enums.LocalServicesLeadSurveyDissatisfiedReasonEnum.SurveyDissatisfiedReason survey_dissatisfied_reason = 1 [(.google.api.field_behavior) = REQUIRED];</code>
     *
     * @return int
     */
    public function getSurveyDissatisfiedReason()
    {
        return $this->survey_dissatisfied_reason;
    }

    /**
     * Required. Provider's reason for not being satisfied with the lead.
     *
     * Generated from protobuf field <code>.google.ads.googleads.v24.enums.LocalServicesLeadSurveyDissatisfiedReasonEnum.SurveyDissatisfiedReason survey_dissatisfied_reason = 1 [(.google.api.field_behavior) = REQUIRED];</code>
     *
     * @param  int $var
     * @return $this
     */
    public function setSurveyDissatisfiedReason($var)
    {
        GPBUtil::checkEnum($var, \Google\Ads\GoogleAds\V24\Enums\LocalServicesLeadSurveyDissatisfiedReasonEnum\SurveyDissatisfiedReason::class);
        $this->survey_dissatisfied_reason = $var;

        return $this;
    }

    /**
     * Optional. Provider's free form comments. This field is required when
     * OTHER_DISSATISFIED_REASON is selected as the reason.
     *
     * Generated from protobuf field <code>string other_reason_comment = 2 [(.google.api.field_behavior) = OPTIONAL];</code>
     *
     * @return string
     */
    public function getOtherReasonComment()
    {
        return $this->other_reason_comment;
    }

    /**
     * Optional. Provider's free form comments. This field is required when
     * OTHER_DISSATISFIED_REASON is selected as the reason.
     *
     * Generated from protobuf field <code>string other_reason_comment = 2 [(.google.api.field_behavior) = OPTIONAL];</code>
     *
     * @param  string $var
     * @return $this
     */
    public function setOtherReasonComment($var)
    {
        GPBUtil::checkString($var, true);
        $this->other_reason_comment = $var;

        return $this;
    }

}

