<?php
# Generated by the protocol buffer compiler.  DO NOT EDIT!
# source: google/cloud/discoveryengine/v1/engine.proto

namespace Google\Cloud\DiscoveryEngine\V1\Engine\MediaRecommendationEngineConfig;

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

/**
 * Additional feature configurations for creating a `recommended-for-you`
 * engine.
 *
 * Generated from protobuf message <code>google.cloud.discoveryengine.v1.Engine.MediaRecommendationEngineConfig.RecommendedForYouFeatureConfig</code>
 */
class RecommendedForYouFeatureConfig extends \Google\Protobuf\Internal\Message
{
    /**
     * The type of event with which the engine is queried at prediction time.
     * If set to `generic`, only `view-item`, `media-play`,and
     * `media-complete` will be used as `context-event` in engine training. If
     * set to `view-home-page`, `view-home-page` will also be used as
     * `context-events` in addition to `view-item`, `media-play`, and
     * `media-complete`. Currently supported for the `recommended-for-you`
     * engine. Currently supported values: `view-home-page`, `generic`.
     *
     * Generated from protobuf field <code>string context_event_type = 1;</code>
     */
    protected $context_event_type = '';

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type string $context_event_type
     *           The type of event with which the engine is queried at prediction time.
     *           If set to `generic`, only `view-item`, `media-play`,and
     *           `media-complete` will be used as `context-event` in engine training. If
     *           set to `view-home-page`, `view-home-page` will also be used as
     *           `context-events` in addition to `view-item`, `media-play`, and
     *           `media-complete`. Currently supported for the `recommended-for-you`
     *           engine. Currently supported values: `view-home-page`, `generic`.
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\Google\Cloud\Discoveryengine\V1\Engine::initOnce();
        parent::__construct($data);
    }

    /**
     * The type of event with which the engine is queried at prediction time.
     * If set to `generic`, only `view-item`, `media-play`,and
     * `media-complete` will be used as `context-event` in engine training. If
     * set to `view-home-page`, `view-home-page` will also be used as
     * `context-events` in addition to `view-item`, `media-play`, and
     * `media-complete`. Currently supported for the `recommended-for-you`
     * engine. Currently supported values: `view-home-page`, `generic`.
     *
     * Generated from protobuf field <code>string context_event_type = 1;</code>
     * @return string
     */
    public function getContextEventType()
    {
        return $this->context_event_type;
    }

    /**
     * The type of event with which the engine is queried at prediction time.
     * If set to `generic`, only `view-item`, `media-play`,and
     * `media-complete` will be used as `context-event` in engine training. If
     * set to `view-home-page`, `view-home-page` will also be used as
     * `context-events` in addition to `view-item`, `media-play`, and
     * `media-complete`. Currently supported for the `recommended-for-you`
     * engine. Currently supported values: `view-home-page`, `generic`.
     *
     * Generated from protobuf field <code>string context_event_type = 1;</code>
     * @param string $var
     * @return $this
     */
    public function setContextEventType($var)
    {
        GPBUtil::checkString($var, True);
        $this->context_event_type = $var;

        return $this;
    }

}

