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

namespace Google\Ads\GoogleAds\V23\Services;

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

/**
 * Details about various factors for being satisfied with the lead.
 *
 * Generated from protobuf message <code>google.ads.googleads.v23.services.SurveySatisfied</code>
 */
class SurveySatisfied extends \Google\Protobuf\Internal\Message
{
    /**
     * Required. Provider's reason for being satisfied with the lead.
     *
     * Generated from protobuf field <code>.google.ads.googleads.v23.enums.LocalServicesLeadSurveySatisfiedReasonEnum.SurveySatisfiedReason survey_satisfied_reason = 1 [(.google.api.field_behavior) = REQUIRED];</code>
     */
    protected $survey_satisfied_reason = 0;
    /**
     * Optional. Provider's free form comments. This field is required when
     * OTHER_SATISFIED_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_satisfied_reason
     *           Required. Provider's reason for being satisfied with the lead.
     *     @type string $other_reason_comment
     *           Optional. Provider's free form comments. This field is required when
     *           OTHER_SATISFIED_REASON is selected as the reason.
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\Google\Ads\GoogleAds\V23\Services\LocalServicesLeadService::initOnce();
        parent::__construct($data);
    }

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

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

        return $this;
    }

    /**
     * Optional. Provider's free form comments. This field is required when
     * OTHER_SATISFIED_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_SATISFIED_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;
    }

}

