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

namespace Google\Cloud\AIPlatform\V1;

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

/**
 * ReasoningEngine configurations
 *
 * Generated from protobuf message <code>google.cloud.aiplatform.v1.ReasoningEngineSpec</code>
 */
class ReasoningEngineSpec extends \Google\Protobuf\Internal\Message
{
    /**
     * Optional. User provided package spec of the ReasoningEngine.
     * Ignored when users directly specify a deployment image through
     * `deployment_spec.first_party_image_override`, but keeping the
     * field_behavior to avoid introducing breaking changes.
     *
     * Generated from protobuf field <code>.google.cloud.aiplatform.v1.ReasoningEngineSpec.PackageSpec package_spec = 2 [(.google.api.field_behavior) = OPTIONAL];</code>
     */
    protected $package_spec = null;
    /**
     * Optional. The specification of a Reasoning Engine deployment.
     *
     * Generated from protobuf field <code>.google.cloud.aiplatform.v1.ReasoningEngineSpec.DeploymentSpec deployment_spec = 4 [(.google.api.field_behavior) = OPTIONAL];</code>
     */
    protected $deployment_spec = null;
    /**
     * Optional. Declarations for object class methods in OpenAPI specification
     * format.
     *
     * Generated from protobuf field <code>repeated .google.protobuf.Struct class_methods = 3 [(.google.api.field_behavior) = OPTIONAL];</code>
     */
    private $class_methods;
    /**
     * Optional. The OSS agent framework used to develop the agent.
     * Currently supported values: "langchain", "langgraph", "ag2", "custom".
     *
     * Generated from protobuf field <code>string agent_framework = 5 [(.google.api.field_behavior) = OPTIONAL];</code>
     */
    protected $agent_framework = '';

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type \Google\Cloud\AIPlatform\V1\ReasoningEngineSpec\PackageSpec $package_spec
     *           Optional. User provided package spec of the ReasoningEngine.
     *           Ignored when users directly specify a deployment image through
     *           `deployment_spec.first_party_image_override`, but keeping the
     *           field_behavior to avoid introducing breaking changes.
     *     @type \Google\Cloud\AIPlatform\V1\ReasoningEngineSpec\DeploymentSpec $deployment_spec
     *           Optional. The specification of a Reasoning Engine deployment.
     *     @type array<\Google\Protobuf\Struct>|\Google\Protobuf\Internal\RepeatedField $class_methods
     *           Optional. Declarations for object class methods in OpenAPI specification
     *           format.
     *     @type string $agent_framework
     *           Optional. The OSS agent framework used to develop the agent.
     *           Currently supported values: "langchain", "langgraph", "ag2", "custom".
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\Google\Cloud\Aiplatform\V1\ReasoningEngine::initOnce();
        parent::__construct($data);
    }

    /**
     * Optional. User provided package spec of the ReasoningEngine.
     * Ignored when users directly specify a deployment image through
     * `deployment_spec.first_party_image_override`, but keeping the
     * field_behavior to avoid introducing breaking changes.
     *
     * Generated from protobuf field <code>.google.cloud.aiplatform.v1.ReasoningEngineSpec.PackageSpec package_spec = 2 [(.google.api.field_behavior) = OPTIONAL];</code>
     * @return \Google\Cloud\AIPlatform\V1\ReasoningEngineSpec\PackageSpec|null
     */
    public function getPackageSpec()
    {
        return $this->package_spec;
    }

    public function hasPackageSpec()
    {
        return isset($this->package_spec);
    }

    public function clearPackageSpec()
    {
        unset($this->package_spec);
    }

    /**
     * Optional. User provided package spec of the ReasoningEngine.
     * Ignored when users directly specify a deployment image through
     * `deployment_spec.first_party_image_override`, but keeping the
     * field_behavior to avoid introducing breaking changes.
     *
     * Generated from protobuf field <code>.google.cloud.aiplatform.v1.ReasoningEngineSpec.PackageSpec package_spec = 2 [(.google.api.field_behavior) = OPTIONAL];</code>
     * @param \Google\Cloud\AIPlatform\V1\ReasoningEngineSpec\PackageSpec $var
     * @return $this
     */
    public function setPackageSpec($var)
    {
        GPBUtil::checkMessage($var, \Google\Cloud\AIPlatform\V1\ReasoningEngineSpec\PackageSpec::class);
        $this->package_spec = $var;

        return $this;
    }

    /**
     * Optional. The specification of a Reasoning Engine deployment.
     *
     * Generated from protobuf field <code>.google.cloud.aiplatform.v1.ReasoningEngineSpec.DeploymentSpec deployment_spec = 4 [(.google.api.field_behavior) = OPTIONAL];</code>
     * @return \Google\Cloud\AIPlatform\V1\ReasoningEngineSpec\DeploymentSpec|null
     */
    public function getDeploymentSpec()
    {
        return $this->deployment_spec;
    }

    public function hasDeploymentSpec()
    {
        return isset($this->deployment_spec);
    }

    public function clearDeploymentSpec()
    {
        unset($this->deployment_spec);
    }

    /**
     * Optional. The specification of a Reasoning Engine deployment.
     *
     * Generated from protobuf field <code>.google.cloud.aiplatform.v1.ReasoningEngineSpec.DeploymentSpec deployment_spec = 4 [(.google.api.field_behavior) = OPTIONAL];</code>
     * @param \Google\Cloud\AIPlatform\V1\ReasoningEngineSpec\DeploymentSpec $var
     * @return $this
     */
    public function setDeploymentSpec($var)
    {
        GPBUtil::checkMessage($var, \Google\Cloud\AIPlatform\V1\ReasoningEngineSpec\DeploymentSpec::class);
        $this->deployment_spec = $var;

        return $this;
    }

    /**
     * Optional. Declarations for object class methods in OpenAPI specification
     * format.
     *
     * Generated from protobuf field <code>repeated .google.protobuf.Struct class_methods = 3 [(.google.api.field_behavior) = OPTIONAL];</code>
     * @return \Google\Protobuf\Internal\RepeatedField
     */
    public function getClassMethods()
    {
        return $this->class_methods;
    }

    /**
     * Optional. Declarations for object class methods in OpenAPI specification
     * format.
     *
     * Generated from protobuf field <code>repeated .google.protobuf.Struct class_methods = 3 [(.google.api.field_behavior) = OPTIONAL];</code>
     * @param array<\Google\Protobuf\Struct>|\Google\Protobuf\Internal\RepeatedField $var
     * @return $this
     */
    public function setClassMethods($var)
    {
        $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Protobuf\Struct::class);
        $this->class_methods = $arr;

        return $this;
    }

    /**
     * Optional. The OSS agent framework used to develop the agent.
     * Currently supported values: "langchain", "langgraph", "ag2", "custom".
     *
     * Generated from protobuf field <code>string agent_framework = 5 [(.google.api.field_behavior) = OPTIONAL];</code>
     * @return string
     */
    public function getAgentFramework()
    {
        return $this->agent_framework;
    }

    /**
     * Optional. The OSS agent framework used to develop the agent.
     * Currently supported values: "langchain", "langgraph", "ag2", "custom".
     *
     * Generated from protobuf field <code>string agent_framework = 5 [(.google.api.field_behavior) = OPTIONAL];</code>
     * @param string $var
     * @return $this
     */
    public function setAgentFramework($var)
    {
        GPBUtil::checkString($var, True);
        $this->agent_framework = $var;

        return $this;
    }

}

