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

namespace Google\Cloud\AIPlatform\V1\SearchModelDeploymentMonitoringStatsAnomaliesRequest;

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

/**
 * Stats requested for specific objective.
 *
 * Generated from protobuf message <code>google.cloud.aiplatform.v1.SearchModelDeploymentMonitoringStatsAnomaliesRequest.StatsAnomaliesObjective</code>
 */
class StatsAnomaliesObjective extends \Google\Protobuf\Internal\Message
{
    /**
     * Generated from protobuf field <code>.google.cloud.aiplatform.v1.ModelDeploymentMonitoringObjectiveType type = 1;</code>
     */
    private $type = 0;
    /**
     * If set, all attribution scores between
     * [SearchModelDeploymentMonitoringStatsAnomaliesRequest.start_time][google.cloud.aiplatform.v1.SearchModelDeploymentMonitoringStatsAnomaliesRequest.start_time]
     * and
     * [SearchModelDeploymentMonitoringStatsAnomaliesRequest.end_time][google.cloud.aiplatform.v1.SearchModelDeploymentMonitoringStatsAnomaliesRequest.end_time]
     * are fetched, and page token doesn't take effect in this case. Only used
     * to retrieve attribution score for the top Features which has the highest
     * attribution score in the latest monitoring run.
     *
     * Generated from protobuf field <code>int32 top_feature_count = 4;</code>
     */
    private $top_feature_count = 0;

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type int $type
     *     @type int $top_feature_count
     *           If set, all attribution scores between
     *           [SearchModelDeploymentMonitoringStatsAnomaliesRequest.start_time][google.cloud.aiplatform.v1.SearchModelDeploymentMonitoringStatsAnomaliesRequest.start_time]
     *           and
     *           [SearchModelDeploymentMonitoringStatsAnomaliesRequest.end_time][google.cloud.aiplatform.v1.SearchModelDeploymentMonitoringStatsAnomaliesRequest.end_time]
     *           are fetched, and page token doesn't take effect in this case. Only used
     *           to retrieve attribution score for the top Features which has the highest
     *           attribution score in the latest monitoring run.
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\Google\Cloud\Aiplatform\V1\JobService::initOnce();
        parent::__construct($data);
    }

    /**
     * Generated from protobuf field <code>.google.cloud.aiplatform.v1.ModelDeploymentMonitoringObjectiveType type = 1;</code>
     * @return int
     */
    public function getType()
    {
        return $this->type;
    }

    /**
     * Generated from protobuf field <code>.google.cloud.aiplatform.v1.ModelDeploymentMonitoringObjectiveType type = 1;</code>
     * @param int $var
     * @return $this
     */
    public function setType($var)
    {
        GPBUtil::checkEnum($var, \Google\Cloud\AIPlatform\V1\ModelDeploymentMonitoringObjectiveType::class);
        $this->type = $var;

        return $this;
    }

    /**
     * If set, all attribution scores between
     * [SearchModelDeploymentMonitoringStatsAnomaliesRequest.start_time][google.cloud.aiplatform.v1.SearchModelDeploymentMonitoringStatsAnomaliesRequest.start_time]
     * and
     * [SearchModelDeploymentMonitoringStatsAnomaliesRequest.end_time][google.cloud.aiplatform.v1.SearchModelDeploymentMonitoringStatsAnomaliesRequest.end_time]
     * are fetched, and page token doesn't take effect in this case. Only used
     * to retrieve attribution score for the top Features which has the highest
     * attribution score in the latest monitoring run.
     *
     * Generated from protobuf field <code>int32 top_feature_count = 4;</code>
     * @return int
     */
    public function getTopFeatureCount()
    {
        return $this->top_feature_count;
    }

    /**
     * If set, all attribution scores between
     * [SearchModelDeploymentMonitoringStatsAnomaliesRequest.start_time][google.cloud.aiplatform.v1.SearchModelDeploymentMonitoringStatsAnomaliesRequest.start_time]
     * and
     * [SearchModelDeploymentMonitoringStatsAnomaliesRequest.end_time][google.cloud.aiplatform.v1.SearchModelDeploymentMonitoringStatsAnomaliesRequest.end_time]
     * are fetched, and page token doesn't take effect in this case. Only used
     * to retrieve attribution score for the top Features which has the highest
     * attribution score in the latest monitoring run.
     *
     * Generated from protobuf field <code>int32 top_feature_count = 4;</code>
     * @param int $var
     * @return $this
     */
    public function setTopFeatureCount($var)
    {
        GPBUtil::checkInt32($var);
        $this->top_feature_count = $var;

        return $this;
    }

}


