<?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
{
    /**
     * Required. User provided package spec of the ReasoningEngine.
     *
     * Generated from protobuf field <code>.google.cloud.aiplatform.v1.ReasoningEngineSpec.PackageSpec package_spec = 2 [(.google.api.field_behavior) = REQUIRED];</code>
     */
    protected $package_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;

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type \Google\Cloud\AIPlatform\V1\ReasoningEngineSpec\PackageSpec $package_spec
     *           Required. User provided package spec of the ReasoningEngine.
     *     @type array<\Google\Protobuf\Struct>|\Google\Protobuf\Internal\RepeatedField $class_methods
     *           Optional. Declarations for object class methods in OpenAPI specification
     *           format.
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\Google\Cloud\Aiplatform\V1\ReasoningEngine::initOnce();
        parent::__construct($data);
    }

    /**
     * Required. User provided package spec of the ReasoningEngine.
     *
     * Generated from protobuf field <code>.google.cloud.aiplatform.v1.ReasoningEngineSpec.PackageSpec package_spec = 2 [(.google.api.field_behavior) = REQUIRED];</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);
    }

    /**
     * Required. User provided package spec of the ReasoningEngine.
     *
     * Generated from protobuf field <code>.google.cloud.aiplatform.v1.ReasoningEngineSpec.PackageSpec package_spec = 2 [(.google.api.field_behavior) = REQUIRED];</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. 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;
    }

}

