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

namespace Google\Ads\GoogleAds\V23\Common;

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

/**
 * Represents a life event criterion.
 *
 * Generated from protobuf message <code>google.ads.googleads.v23.common.LifeEventInfo</code>
 */
class LifeEventInfo extends \Google\Protobuf\Internal\Message
{
    /**
     * Taxonomy id of the life event.
     *
     * Generated from protobuf field <code>optional int64 life_event_id = 1;</code>
     */
    protected $life_event_id = null;

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type int|string $life_event_id
     *           Taxonomy id of the life event.
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\Google\Ads\GoogleAds\V23\Common\Criteria::initOnce();
        parent::__construct($data);
    }

    /**
     * Taxonomy id of the life event.
     *
     * Generated from protobuf field <code>optional int64 life_event_id = 1;</code>
     * @return int|string
     */
    public function getLifeEventId()
    {
        return isset($this->life_event_id) ? $this->life_event_id : 0;
    }

    public function hasLifeEventId()
    {
        return isset($this->life_event_id);
    }

    public function clearLifeEventId()
    {
        unset($this->life_event_id);
    }

    /**
     * Taxonomy id of the life event.
     *
     * Generated from protobuf field <code>optional int64 life_event_id = 1;</code>
     * @param int|string $var
     * @return $this
     */
    public function setLifeEventId($var)
    {
        GPBUtil::checkInt64($var);
        $this->life_event_id = $var;

        return $this;
    }

}

