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

namespace Google\Cloud\AIPlatform\V1;

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

/**
 * Contains model information necessary to perform batch prediction without
 * requiring a full model import.
 *
 * Generated from protobuf message <code>google.cloud.aiplatform.v1.UnmanagedContainerModel</code>
 */
class UnmanagedContainerModel extends \Google\Protobuf\Internal\Message
{
    /**
     * The path to the directory containing the Model artifact and any of its
     * supporting files.
     *
     * Generated from protobuf field <code>string artifact_uri = 1;</code>
     */
    private $artifact_uri = '';
    /**
     * Contains the schemata used in Model's predictions and explanations
     *
     * Generated from protobuf field <code>.google.cloud.aiplatform.v1.PredictSchemata predict_schemata = 2;</code>
     */
    private $predict_schemata = null;
    /**
     * Input only. The specification of the container that is to be used when
     * deploying this Model.
     *
     * Generated from protobuf field <code>.google.cloud.aiplatform.v1.ModelContainerSpec container_spec = 3 [(.google.api.field_behavior) = INPUT_ONLY];</code>
     */
    private $container_spec = null;

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type string $artifact_uri
     *           The path to the directory containing the Model artifact and any of its
     *           supporting files.
     *     @type \Google\Cloud\AIPlatform\V1\PredictSchemata $predict_schemata
     *           Contains the schemata used in Model's predictions and explanations
     *     @type \Google\Cloud\AIPlatform\V1\ModelContainerSpec $container_spec
     *           Input only. The specification of the container that is to be used when
     *           deploying this Model.
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\Google\Cloud\Aiplatform\V1\UnmanagedContainerModel::initOnce();
        parent::__construct($data);
    }

    /**
     * The path to the directory containing the Model artifact and any of its
     * supporting files.
     *
     * Generated from protobuf field <code>string artifact_uri = 1;</code>
     * @return string
     */
    public function getArtifactUri()
    {
        return $this->artifact_uri;
    }

    /**
     * The path to the directory containing the Model artifact and any of its
     * supporting files.
     *
     * Generated from protobuf field <code>string artifact_uri = 1;</code>
     * @param string $var
     * @return $this
     */
    public function setArtifactUri($var)
    {
        GPBUtil::checkString($var, True);
        $this->artifact_uri = $var;

        return $this;
    }

    /**
     * Contains the schemata used in Model's predictions and explanations
     *
     * Generated from protobuf field <code>.google.cloud.aiplatform.v1.PredictSchemata predict_schemata = 2;</code>
     * @return \Google\Cloud\AIPlatform\V1\PredictSchemata|null
     */
    public function getPredictSchemata()
    {
        return $this->predict_schemata;
    }

    public function hasPredictSchemata()
    {
        return isset($this->predict_schemata);
    }

    public function clearPredictSchemata()
    {
        unset($this->predict_schemata);
    }

    /**
     * Contains the schemata used in Model's predictions and explanations
     *
     * Generated from protobuf field <code>.google.cloud.aiplatform.v1.PredictSchemata predict_schemata = 2;</code>
     * @param \Google\Cloud\AIPlatform\V1\PredictSchemata $var
     * @return $this
     */
    public function setPredictSchemata($var)
    {
        GPBUtil::checkMessage($var, \Google\Cloud\AIPlatform\V1\PredictSchemata::class);
        $this->predict_schemata = $var;

        return $this;
    }

    /**
     * Input only. The specification of the container that is to be used when
     * deploying this Model.
     *
     * Generated from protobuf field <code>.google.cloud.aiplatform.v1.ModelContainerSpec container_spec = 3 [(.google.api.field_behavior) = INPUT_ONLY];</code>
     * @return \Google\Cloud\AIPlatform\V1\ModelContainerSpec|null
     */
    public function getContainerSpec()
    {
        return $this->container_spec;
    }

    public function hasContainerSpec()
    {
        return isset($this->container_spec);
    }

    public function clearContainerSpec()
    {
        unset($this->container_spec);
    }

    /**
     * Input only. The specification of the container that is to be used when
     * deploying this Model.
     *
     * Generated from protobuf field <code>.google.cloud.aiplatform.v1.ModelContainerSpec container_spec = 3 [(.google.api.field_behavior) = INPUT_ONLY];</code>
     * @param \Google\Cloud\AIPlatform\V1\ModelContainerSpec $var
     * @return $this
     */
    public function setContainerSpec($var)
    {
        GPBUtil::checkMessage($var, \Google\Cloud\AIPlatform\V1\ModelContainerSpec::class);
        $this->container_spec = $var;

        return $this;
    }

}

