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

namespace Google\Cloud\GkeRecommender\V1;

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

/**
 * Performance range for a model deployment.
 *
 * Generated from protobuf message <code>google.cloud.gkerecommender.v1.PerformanceRange</code>
 */
class PerformanceRange extends \Google\Protobuf\Internal\Message
{
    /**
     * Output only. The range of throughput in output tokens per second. This is
     * measured as total_output_tokens_generated_by_server /
     * elapsed_time_in_seconds.
     *
     * Generated from protobuf field <code>.google.cloud.gkerecommender.v1.TokensPerSecondRange throughput_output_range = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
     */
    protected $throughput_output_range = null;
    /**
     * Output only. The range of TTFT (Time To First Token) in milliseconds. TTFT
     * is the time it takes to generate the first token for a request.
     *
     * Generated from protobuf field <code>.google.cloud.gkerecommender.v1.MillisecondRange ttft_range = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
     */
    protected $ttft_range = null;
    /**
     * Output only. The range of NTPOT (Normalized Time Per Output Token) in
     * milliseconds. NTPOT is the request latency normalized by the number of
     * output tokens, measured as request_latency / total_output_tokens.
     *
     * Generated from protobuf field <code>.google.cloud.gkerecommender.v1.MillisecondRange ntpot_range = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
     */
    protected $ntpot_range = null;

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type \Google\Cloud\GkeRecommender\V1\TokensPerSecondRange $throughput_output_range
     *           Output only. The range of throughput in output tokens per second. This is
     *           measured as total_output_tokens_generated_by_server /
     *           elapsed_time_in_seconds.
     *     @type \Google\Cloud\GkeRecommender\V1\MillisecondRange $ttft_range
     *           Output only. The range of TTFT (Time To First Token) in milliseconds. TTFT
     *           is the time it takes to generate the first token for a request.
     *     @type \Google\Cloud\GkeRecommender\V1\MillisecondRange $ntpot_range
     *           Output only. The range of NTPOT (Normalized Time Per Output Token) in
     *           milliseconds. NTPOT is the request latency normalized by the number of
     *           output tokens, measured as request_latency / total_output_tokens.
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\Google\Cloud\Gkerecommender\V1\Gkerecommender::initOnce();
        parent::__construct($data);
    }

    /**
     * Output only. The range of throughput in output tokens per second. This is
     * measured as total_output_tokens_generated_by_server /
     * elapsed_time_in_seconds.
     *
     * Generated from protobuf field <code>.google.cloud.gkerecommender.v1.TokensPerSecondRange throughput_output_range = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
     * @return \Google\Cloud\GkeRecommender\V1\TokensPerSecondRange|null
     */
    public function getThroughputOutputRange()
    {
        return $this->throughput_output_range;
    }

    public function hasThroughputOutputRange()
    {
        return isset($this->throughput_output_range);
    }

    public function clearThroughputOutputRange()
    {
        unset($this->throughput_output_range);
    }

    /**
     * Output only. The range of throughput in output tokens per second. This is
     * measured as total_output_tokens_generated_by_server /
     * elapsed_time_in_seconds.
     *
     * Generated from protobuf field <code>.google.cloud.gkerecommender.v1.TokensPerSecondRange throughput_output_range = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
     * @param \Google\Cloud\GkeRecommender\V1\TokensPerSecondRange $var
     * @return $this
     */
    public function setThroughputOutputRange($var)
    {
        GPBUtil::checkMessage($var, \Google\Cloud\GkeRecommender\V1\TokensPerSecondRange::class);
        $this->throughput_output_range = $var;

        return $this;
    }

    /**
     * Output only. The range of TTFT (Time To First Token) in milliseconds. TTFT
     * is the time it takes to generate the first token for a request.
     *
     * Generated from protobuf field <code>.google.cloud.gkerecommender.v1.MillisecondRange ttft_range = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
     * @return \Google\Cloud\GkeRecommender\V1\MillisecondRange|null
     */
    public function getTtftRange()
    {
        return $this->ttft_range;
    }

    public function hasTtftRange()
    {
        return isset($this->ttft_range);
    }

    public function clearTtftRange()
    {
        unset($this->ttft_range);
    }

    /**
     * Output only. The range of TTFT (Time To First Token) in milliseconds. TTFT
     * is the time it takes to generate the first token for a request.
     *
     * Generated from protobuf field <code>.google.cloud.gkerecommender.v1.MillisecondRange ttft_range = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
     * @param \Google\Cloud\GkeRecommender\V1\MillisecondRange $var
     * @return $this
     */
    public function setTtftRange($var)
    {
        GPBUtil::checkMessage($var, \Google\Cloud\GkeRecommender\V1\MillisecondRange::class);
        $this->ttft_range = $var;

        return $this;
    }

    /**
     * Output only. The range of NTPOT (Normalized Time Per Output Token) in
     * milliseconds. NTPOT is the request latency normalized by the number of
     * output tokens, measured as request_latency / total_output_tokens.
     *
     * Generated from protobuf field <code>.google.cloud.gkerecommender.v1.MillisecondRange ntpot_range = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
     * @return \Google\Cloud\GkeRecommender\V1\MillisecondRange|null
     */
    public function getNtpotRange()
    {
        return $this->ntpot_range;
    }

    public function hasNtpotRange()
    {
        return isset($this->ntpot_range);
    }

    public function clearNtpotRange()
    {
        unset($this->ntpot_range);
    }

    /**
     * Output only. The range of NTPOT (Normalized Time Per Output Token) in
     * milliseconds. NTPOT is the request latency normalized by the number of
     * output tokens, measured as request_latency / total_output_tokens.
     *
     * Generated from protobuf field <code>.google.cloud.gkerecommender.v1.MillisecondRange ntpot_range = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
     * @param \Google\Cloud\GkeRecommender\V1\MillisecondRange $var
     * @return $this
     */
    public function setNtpotRange($var)
    {
        GPBUtil::checkMessage($var, \Google\Cloud\GkeRecommender\V1\MillisecondRange::class);
        $this->ntpot_range = $var;

        return $this;
    }

}

