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

namespace Google\Cloud\Talent\V4beta1;

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

/**
 * Candidate availability signal.
 *
 * Generated from protobuf message <code>google.cloud.talent.v4beta1.AvailabilitySignal</code>
 */
class AvailabilitySignal extends \Google\Protobuf\Internal\Message
{
    /**
     * Type of signal.
     *
     * Generated from protobuf field <code>.google.cloud.talent.v4beta1.AvailabilitySignalType type = 1;</code>
     */
    private $type = 0;
    /**
     * Timestamp of when the given availability activity last happened.
     *
     * Generated from protobuf field <code>.google.protobuf.Timestamp last_update_time = 2;</code>
     */
    private $last_update_time = null;
    /**
     * Indicates if the [last_update_time][google.cloud.talent.v4beta1.AvailabilitySignal.last_update_time] is within
     * [AvailabilityFilter.range][google.cloud.talent.v4beta1.AvailabilityFilter.range].
     * Returned only in a search response when there is an [AvailabilityFilter][google.cloud.talent.v4beta1.AvailabilityFilter]
     * in [ProfileQuery.availability_filters][google.cloud.talent.v4beta1.ProfileQuery.availability_filters] where
     * [signal_type][google.cloud.talent.v4beta1.AvailabilityFilter.signal_type] matches [type][google.cloud.talent.v4beta1.AvailabilitySignal.type].
     *
     * Generated from protobuf field <code>.google.protobuf.BoolValue filter_satisfied = 3;</code>
     */
    private $filter_satisfied = null;

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type int $type
     *           Type of signal.
     *     @type \Google\Protobuf\Timestamp $last_update_time
     *           Timestamp of when the given availability activity last happened.
     *     @type \Google\Protobuf\BoolValue $filter_satisfied
     *           Indicates if the [last_update_time][google.cloud.talent.v4beta1.AvailabilitySignal.last_update_time] is within
     *           [AvailabilityFilter.range][google.cloud.talent.v4beta1.AvailabilityFilter.range].
     *           Returned only in a search response when there is an [AvailabilityFilter][google.cloud.talent.v4beta1.AvailabilityFilter]
     *           in [ProfileQuery.availability_filters][google.cloud.talent.v4beta1.ProfileQuery.availability_filters] where
     *           [signal_type][google.cloud.talent.v4beta1.AvailabilityFilter.signal_type] matches [type][google.cloud.talent.v4beta1.AvailabilitySignal.type].
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\Google\Cloud\Talent\V4Beta1\Profile::initOnce();
        parent::__construct($data);
    }

    /**
     * Type of signal.
     *
     * Generated from protobuf field <code>.google.cloud.talent.v4beta1.AvailabilitySignalType type = 1;</code>
     * @return int
     */
    public function getType()
    {
        return $this->type;
    }

    /**
     * Type of signal.
     *
     * Generated from protobuf field <code>.google.cloud.talent.v4beta1.AvailabilitySignalType type = 1;</code>
     * @param int $var
     * @return $this
     */
    public function setType($var)
    {
        GPBUtil::checkEnum($var, \Google\Cloud\Talent\V4beta1\AvailabilitySignalType::class);
        $this->type = $var;

        return $this;
    }

    /**
     * Timestamp of when the given availability activity last happened.
     *
     * Generated from protobuf field <code>.google.protobuf.Timestamp last_update_time = 2;</code>
     * @return \Google\Protobuf\Timestamp
     */
    public function getLastUpdateTime()
    {
        return $this->last_update_time;
    }

    /**
     * Timestamp of when the given availability activity last happened.
     *
     * Generated from protobuf field <code>.google.protobuf.Timestamp last_update_time = 2;</code>
     * @param \Google\Protobuf\Timestamp $var
     * @return $this
     */
    public function setLastUpdateTime($var)
    {
        GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class);
        $this->last_update_time = $var;

        return $this;
    }

    /**
     * Indicates if the [last_update_time][google.cloud.talent.v4beta1.AvailabilitySignal.last_update_time] is within
     * [AvailabilityFilter.range][google.cloud.talent.v4beta1.AvailabilityFilter.range].
     * Returned only in a search response when there is an [AvailabilityFilter][google.cloud.talent.v4beta1.AvailabilityFilter]
     * in [ProfileQuery.availability_filters][google.cloud.talent.v4beta1.ProfileQuery.availability_filters] where
     * [signal_type][google.cloud.talent.v4beta1.AvailabilityFilter.signal_type] matches [type][google.cloud.talent.v4beta1.AvailabilitySignal.type].
     *
     * Generated from protobuf field <code>.google.protobuf.BoolValue filter_satisfied = 3;</code>
     * @return \Google\Protobuf\BoolValue
     */
    public function getFilterSatisfied()
    {
        return $this->filter_satisfied;
    }

    /**
     * Returns the unboxed value from <code>getFilterSatisfied()</code>

     * Indicates if the [last_update_time][google.cloud.talent.v4beta1.AvailabilitySignal.last_update_time] is within
     * [AvailabilityFilter.range][google.cloud.talent.v4beta1.AvailabilityFilter.range].
     * Returned only in a search response when there is an [AvailabilityFilter][google.cloud.talent.v4beta1.AvailabilityFilter]
     * in [ProfileQuery.availability_filters][google.cloud.talent.v4beta1.ProfileQuery.availability_filters] where
     * [signal_type][google.cloud.talent.v4beta1.AvailabilityFilter.signal_type] matches [type][google.cloud.talent.v4beta1.AvailabilitySignal.type].
     *
     * Generated from protobuf field <code>.google.protobuf.BoolValue filter_satisfied = 3;</code>
     * @return bool|null
     */
    public function getFilterSatisfiedValue()
    {
        return $this->readWrapperValue("filter_satisfied");
    }

    /**
     * Indicates if the [last_update_time][google.cloud.talent.v4beta1.AvailabilitySignal.last_update_time] is within
     * [AvailabilityFilter.range][google.cloud.talent.v4beta1.AvailabilityFilter.range].
     * Returned only in a search response when there is an [AvailabilityFilter][google.cloud.talent.v4beta1.AvailabilityFilter]
     * in [ProfileQuery.availability_filters][google.cloud.talent.v4beta1.ProfileQuery.availability_filters] where
     * [signal_type][google.cloud.talent.v4beta1.AvailabilityFilter.signal_type] matches [type][google.cloud.talent.v4beta1.AvailabilitySignal.type].
     *
     * Generated from protobuf field <code>.google.protobuf.BoolValue filter_satisfied = 3;</code>
     * @param \Google\Protobuf\BoolValue $var
     * @return $this
     */
    public function setFilterSatisfied($var)
    {
        GPBUtil::checkMessage($var, \Google\Protobuf\BoolValue::class);
        $this->filter_satisfied = $var;

        return $this;
    }

    /**
     * Sets the field by wrapping a primitive type in a Google\Protobuf\BoolValue object.

     * Indicates if the [last_update_time][google.cloud.talent.v4beta1.AvailabilitySignal.last_update_time] is within
     * [AvailabilityFilter.range][google.cloud.talent.v4beta1.AvailabilityFilter.range].
     * Returned only in a search response when there is an [AvailabilityFilter][google.cloud.talent.v4beta1.AvailabilityFilter]
     * in [ProfileQuery.availability_filters][google.cloud.talent.v4beta1.ProfileQuery.availability_filters] where
     * [signal_type][google.cloud.talent.v4beta1.AvailabilityFilter.signal_type] matches [type][google.cloud.talent.v4beta1.AvailabilitySignal.type].
     *
     * Generated from protobuf field <code>.google.protobuf.BoolValue filter_satisfied = 3;</code>
     * @param bool|null $var
     * @return $this
     */
    public function setFilterSatisfiedValue($var)
    {
        $this->writeWrapperValue("filter_satisfied", $var);
        return $this;}

}

