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

namespace Google\Cloud\AIPlatform\V1\ModelEvaluation;

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

/**
 * Generated from protobuf message <code>google.cloud.aiplatform.v1.ModelEvaluation.ModelEvaluationExplanationSpec</code>
 */
class ModelEvaluationExplanationSpec extends \Google\Protobuf\Internal\Message
{
    /**
     * Explanation type.
     * For AutoML Image Classification models, possible values are:
     *   * `image-integrated-gradients`
     *   * `image-xrai`
     *
     * Generated from protobuf field <code>string explanation_type = 1;</code>
     */
    protected $explanation_type = '';
    /**
     * Explanation spec details.
     *
     * Generated from protobuf field <code>.google.cloud.aiplatform.v1.ExplanationSpec explanation_spec = 2;</code>
     */
    protected $explanation_spec = null;

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type string $explanation_type
     *           Explanation type.
     *           For AutoML Image Classification models, possible values are:
     *             * `image-integrated-gradients`
     *             * `image-xrai`
     *     @type \Google\Cloud\AIPlatform\V1\ExplanationSpec $explanation_spec
     *           Explanation spec details.
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\Google\Cloud\Aiplatform\V1\ModelEvaluation::initOnce();
        parent::__construct($data);
    }

    /**
     * Explanation type.
     * For AutoML Image Classification models, possible values are:
     *   * `image-integrated-gradients`
     *   * `image-xrai`
     *
     * Generated from protobuf field <code>string explanation_type = 1;</code>
     * @return string
     */
    public function getExplanationType()
    {
        return $this->explanation_type;
    }

    /**
     * Explanation type.
     * For AutoML Image Classification models, possible values are:
     *   * `image-integrated-gradients`
     *   * `image-xrai`
     *
     * Generated from protobuf field <code>string explanation_type = 1;</code>
     * @param string $var
     * @return $this
     */
    public function setExplanationType($var)
    {
        GPBUtil::checkString($var, True);
        $this->explanation_type = $var;

        return $this;
    }

    /**
     * Explanation spec details.
     *
     * Generated from protobuf field <code>.google.cloud.aiplatform.v1.ExplanationSpec explanation_spec = 2;</code>
     * @return \Google\Cloud\AIPlatform\V1\ExplanationSpec|null
     */
    public function getExplanationSpec()
    {
        return $this->explanation_spec;
    }

    public function hasExplanationSpec()
    {
        return isset($this->explanation_spec);
    }

    public function clearExplanationSpec()
    {
        unset($this->explanation_spec);
    }

    /**
     * Explanation spec details.
     *
     * Generated from protobuf field <code>.google.cloud.aiplatform.v1.ExplanationSpec explanation_spec = 2;</code>
     * @param \Google\Cloud\AIPlatform\V1\ExplanationSpec $var
     * @return $this
     */
    public function setExplanationSpec($var)
    {
        GPBUtil::checkMessage($var, \Google\Cloud\AIPlatform\V1\ExplanationSpec::class);
        $this->explanation_spec = $var;

        return $this;
    }

}

