<?php
# Generated by the protocol buffer compiler.  DO NOT EDIT!
# source: google/cloud/talent/v4beta1/filters.proto

namespace Google\Cloud\Talent\V4beta1;

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

/**
 * Input only.
 * Outcome Reason Filter.
 *
 * Generated from protobuf message <code>google.cloud.talent.v4beta1.ApplicationOutcomeReasonFilter</code>
 */
class ApplicationOutcomeReasonFilter extends \Google\Protobuf\Internal\Message
{
    /**
     * Required.
     * User entered or selected outcome reason. The API does an exact match on the
     * [JobApplication.outcome_reason][google.cloud.talent.v4beta1.JobApplication.outcome_reason] in profiles.
     *
     * Generated from protobuf field <code>string outcome_reason = 1;</code>
     */
    private $outcome_reason = '';
    /**
     * Optional.
     * If true, The API excludes all candidates with any
     * [JobApplication.outcome_reason][google.cloud.talent.v4beta1.JobApplication.outcome_reason] matching the outcome reason specified in
     * the filter.
     *
     * Generated from protobuf field <code>bool negated = 2;</code>
     */
    private $negated = false;

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type string $outcome_reason
     *           Required.
     *           User entered or selected outcome reason. The API does an exact match on the
     *           [JobApplication.outcome_reason][google.cloud.talent.v4beta1.JobApplication.outcome_reason] in profiles.
     *     @type bool $negated
     *           Optional.
     *           If true, The API excludes all candidates with any
     *           [JobApplication.outcome_reason][google.cloud.talent.v4beta1.JobApplication.outcome_reason] matching the outcome reason specified in
     *           the filter.
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\Google\Cloud\Talent\V4Beta1\Filters::initOnce();
        parent::__construct($data);
    }

    /**
     * Required.
     * User entered or selected outcome reason. The API does an exact match on the
     * [JobApplication.outcome_reason][google.cloud.talent.v4beta1.JobApplication.outcome_reason] in profiles.
     *
     * Generated from protobuf field <code>string outcome_reason = 1;</code>
     * @return string
     */
    public function getOutcomeReason()
    {
        return $this->outcome_reason;
    }

    /**
     * Required.
     * User entered or selected outcome reason. The API does an exact match on the
     * [JobApplication.outcome_reason][google.cloud.talent.v4beta1.JobApplication.outcome_reason] in profiles.
     *
     * Generated from protobuf field <code>string outcome_reason = 1;</code>
     * @param string $var
     * @return $this
     */
    public function setOutcomeReason($var)
    {
        GPBUtil::checkString($var, True);
        $this->outcome_reason = $var;

        return $this;
    }

    /**
     * Optional.
     * If true, The API excludes all candidates with any
     * [JobApplication.outcome_reason][google.cloud.talent.v4beta1.JobApplication.outcome_reason] matching the outcome reason specified in
     * the filter.
     *
     * Generated from protobuf field <code>bool negated = 2;</code>
     * @return bool
     */
    public function getNegated()
    {
        return $this->negated;
    }

    /**
     * Optional.
     * If true, The API excludes all candidates with any
     * [JobApplication.outcome_reason][google.cloud.talent.v4beta1.JobApplication.outcome_reason] matching the outcome reason specified in
     * the filter.
     *
     * Generated from protobuf field <code>bool negated = 2;</code>
     * @param bool $var
     * @return $this
     */
    public function setNegated($var)
    {
        GPBUtil::checkBool($var);
        $this->negated = $var;

        return $this;
    }

}

