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

namespace Google\Cloud\AIPlatform\V1;

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

/**
 * ModelDeploymentMonitoringObjectiveConfig contains the pair of
 * deployed_model_id to ModelMonitoringObjectiveConfig.
 *
 * Generated from protobuf message <code>google.cloud.aiplatform.v1.ModelDeploymentMonitoringObjectiveConfig</code>
 */
class ModelDeploymentMonitoringObjectiveConfig extends \Google\Protobuf\Internal\Message
{
    /**
     * The DeployedModel ID of the objective config.
     *
     * Generated from protobuf field <code>string deployed_model_id = 1;</code>
     */
    protected $deployed_model_id = '';
    /**
     * The objective config of for the modelmonitoring job of this deployed model.
     *
     * Generated from protobuf field <code>.google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig objective_config = 2;</code>
     */
    protected $objective_config = null;

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type string $deployed_model_id
     *           The DeployedModel ID of the objective config.
     *     @type \Google\Cloud\AIPlatform\V1\ModelMonitoringObjectiveConfig $objective_config
     *           The objective config of for the modelmonitoring job of this deployed model.
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\Google\Cloud\Aiplatform\V1\ModelDeploymentMonitoringJob::initOnce();
        parent::__construct($data);
    }

    /**
     * The DeployedModel ID of the objective config.
     *
     * Generated from protobuf field <code>string deployed_model_id = 1;</code>
     * @return string
     */
    public function getDeployedModelId()
    {
        return $this->deployed_model_id;
    }

    /**
     * The DeployedModel ID of the objective config.
     *
     * Generated from protobuf field <code>string deployed_model_id = 1;</code>
     * @param string $var
     * @return $this
     */
    public function setDeployedModelId($var)
    {
        GPBUtil::checkString($var, True);
        $this->deployed_model_id = $var;

        return $this;
    }

    /**
     * The objective config of for the modelmonitoring job of this deployed model.
     *
     * Generated from protobuf field <code>.google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig objective_config = 2;</code>
     * @return \Google\Cloud\AIPlatform\V1\ModelMonitoringObjectiveConfig|null
     */
    public function getObjectiveConfig()
    {
        return $this->objective_config;
    }

    public function hasObjectiveConfig()
    {
        return isset($this->objective_config);
    }

    public function clearObjectiveConfig()
    {
        unset($this->objective_config);
    }

    /**
     * The objective config of for the modelmonitoring job of this deployed model.
     *
     * Generated from protobuf field <code>.google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig objective_config = 2;</code>
     * @param \Google\Cloud\AIPlatform\V1\ModelMonitoringObjectiveConfig $var
     * @return $this
     */
    public function setObjectiveConfig($var)
    {
        GPBUtil::checkMessage($var, \Google\Cloud\AIPlatform\V1\ModelMonitoringObjectiveConfig::class);
        $this->objective_config = $var;

        return $this;
    }

}

