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

namespace Google\Cloud\AIPlatform\V1;

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

/**
 * Spec for pointwise metric.
 *
 * Generated from protobuf message <code>google.cloud.aiplatform.v1.PointwiseMetricSpec</code>
 */
class PointwiseMetricSpec extends \Google\Protobuf\Internal\Message
{
    /**
     * Required. Metric prompt template for pointwise metric.
     *
     * Generated from protobuf field <code>optional string metric_prompt_template = 1 [(.google.api.field_behavior) = REQUIRED];</code>
     */
    protected $metric_prompt_template = null;

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type string $metric_prompt_template
     *           Required. Metric prompt template for pointwise metric.
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\Google\Cloud\Aiplatform\V1\EvaluationService::initOnce();
        parent::__construct($data);
    }

    /**
     * Required. Metric prompt template for pointwise metric.
     *
     * Generated from protobuf field <code>optional string metric_prompt_template = 1 [(.google.api.field_behavior) = REQUIRED];</code>
     * @return string
     */
    public function getMetricPromptTemplate()
    {
        return isset($this->metric_prompt_template) ? $this->metric_prompt_template : '';
    }

    public function hasMetricPromptTemplate()
    {
        return isset($this->metric_prompt_template);
    }

    public function clearMetricPromptTemplate()
    {
        unset($this->metric_prompt_template);
    }

    /**
     * Required. Metric prompt template for pointwise metric.
     *
     * Generated from protobuf field <code>optional string metric_prompt_template = 1 [(.google.api.field_behavior) = REQUIRED];</code>
     * @param string $var
     * @return $this
     */
    public function setMetricPromptTemplate($var)
    {
        GPBUtil::checkString($var, True);
        $this->metric_prompt_template = $var;

        return $this;
    }

}

