<?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\RepeatedField;
use Google\Protobuf\Internal\GPBUtil;

/**
 * Input for question answering helpfulness metric.
 *
 * Generated from protobuf message <code>google.cloud.aiplatform.v1.QuestionAnsweringHelpfulnessInput</code>
 */
class QuestionAnsweringHelpfulnessInput extends \Google\Protobuf\Internal\Message
{
    /**
     * Required. Spec for question answering helpfulness score metric.
     *
     * Generated from protobuf field <code>.google.cloud.aiplatform.v1.QuestionAnsweringHelpfulnessSpec metric_spec = 1 [(.google.api.field_behavior) = REQUIRED];</code>
     */
    protected $metric_spec = null;
    /**
     * Required. Question answering helpfulness instance.
     *
     * Generated from protobuf field <code>.google.cloud.aiplatform.v1.QuestionAnsweringHelpfulnessInstance instance = 2 [(.google.api.field_behavior) = REQUIRED];</code>
     */
    protected $instance = null;

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type \Google\Cloud\AIPlatform\V1\QuestionAnsweringHelpfulnessSpec $metric_spec
     *           Required. Spec for question answering helpfulness score metric.
     *     @type \Google\Cloud\AIPlatform\V1\QuestionAnsweringHelpfulnessInstance $instance
     *           Required. Question answering helpfulness instance.
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\Google\Cloud\Aiplatform\V1\EvaluationService::initOnce();
        parent::__construct($data);
    }

    /**
     * Required. Spec for question answering helpfulness score metric.
     *
     * Generated from protobuf field <code>.google.cloud.aiplatform.v1.QuestionAnsweringHelpfulnessSpec metric_spec = 1 [(.google.api.field_behavior) = REQUIRED];</code>
     * @return \Google\Cloud\AIPlatform\V1\QuestionAnsweringHelpfulnessSpec|null
     */
    public function getMetricSpec()
    {
        return $this->metric_spec;
    }

    public function hasMetricSpec()
    {
        return isset($this->metric_spec);
    }

    public function clearMetricSpec()
    {
        unset($this->metric_spec);
    }

    /**
     * Required. Spec for question answering helpfulness score metric.
     *
     * Generated from protobuf field <code>.google.cloud.aiplatform.v1.QuestionAnsweringHelpfulnessSpec metric_spec = 1 [(.google.api.field_behavior) = REQUIRED];</code>
     * @param \Google\Cloud\AIPlatform\V1\QuestionAnsweringHelpfulnessSpec $var
     * @return $this
     */
    public function setMetricSpec($var)
    {
        GPBUtil::checkMessage($var, \Google\Cloud\AIPlatform\V1\QuestionAnsweringHelpfulnessSpec::class);
        $this->metric_spec = $var;

        return $this;
    }

    /**
     * Required. Question answering helpfulness instance.
     *
     * Generated from protobuf field <code>.google.cloud.aiplatform.v1.QuestionAnsweringHelpfulnessInstance instance = 2 [(.google.api.field_behavior) = REQUIRED];</code>
     * @return \Google\Cloud\AIPlatform\V1\QuestionAnsweringHelpfulnessInstance|null
     */
    public function getInstance()
    {
        return $this->instance;
    }

    public function hasInstance()
    {
        return isset($this->instance);
    }

    public function clearInstance()
    {
        unset($this->instance);
    }

    /**
     * Required. Question answering helpfulness instance.
     *
     * Generated from protobuf field <code>.google.cloud.aiplatform.v1.QuestionAnsweringHelpfulnessInstance instance = 2 [(.google.api.field_behavior) = REQUIRED];</code>
     * @param \Google\Cloud\AIPlatform\V1\QuestionAnsweringHelpfulnessInstance $var
     * @return $this
     */
    public function setInstance($var)
    {
        GPBUtil::checkMessage($var, \Google\Cloud\AIPlatform\V1\QuestionAnsweringHelpfulnessInstance::class);
        $this->instance = $var;

        return $this;
    }

}

