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

namespace Google\Cloud\AIPlatform\V1;

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

/**
 * Request message for [ReasoningEngineExecutionService.StreamQuery][].
 *
 * Generated from protobuf message <code>google.cloud.aiplatform.v1.StreamQueryReasoningEngineRequest</code>
 */
class StreamQueryReasoningEngineRequest extends \Google\Protobuf\Internal\Message
{
    /**
     * Required. The name of the ReasoningEngine resource to use.
     * Format:
     * `projects/{project}/locations/{location}/reasoningEngines/{reasoning_engine}`
     *
     * Generated from protobuf field <code>string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = {</code>
     */
    protected $name = '';
    /**
     * Optional. Input content provided by users in JSON object format. Examples
     * include text query, function calling parameters, media bytes, etc.
     *
     * Generated from protobuf field <code>.google.protobuf.Struct input = 2 [(.google.api.field_behavior) = OPTIONAL];</code>
     */
    protected $input = null;
    /**
     * Optional. Class method to be used for the stream query.
     * It is optional and defaults to "stream_query" if unspecified.
     *
     * Generated from protobuf field <code>string class_method = 3 [(.google.api.field_behavior) = OPTIONAL];</code>
     */
    protected $class_method = '';

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type string $name
     *           Required. The name of the ReasoningEngine resource to use.
     *           Format:
     *           `projects/{project}/locations/{location}/reasoningEngines/{reasoning_engine}`
     *     @type \Google\Protobuf\Struct $input
     *           Optional. Input content provided by users in JSON object format. Examples
     *           include text query, function calling parameters, media bytes, etc.
     *     @type string $class_method
     *           Optional. Class method to be used for the stream query.
     *           It is optional and defaults to "stream_query" if unspecified.
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\Google\Cloud\Aiplatform\V1\ReasoningEngineExecutionService::initOnce();
        parent::__construct($data);
    }

    /**
     * Required. The name of the ReasoningEngine resource to use.
     * Format:
     * `projects/{project}/locations/{location}/reasoningEngines/{reasoning_engine}`
     *
     * Generated from protobuf field <code>string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = {</code>
     * @return string
     */
    public function getName()
    {
        return $this->name;
    }

    /**
     * Required. The name of the ReasoningEngine resource to use.
     * Format:
     * `projects/{project}/locations/{location}/reasoningEngines/{reasoning_engine}`
     *
     * Generated from protobuf field <code>string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = {</code>
     * @param string $var
     * @return $this
     */
    public function setName($var)
    {
        GPBUtil::checkString($var, True);
        $this->name = $var;

        return $this;
    }

    /**
     * Optional. Input content provided by users in JSON object format. Examples
     * include text query, function calling parameters, media bytes, etc.
     *
     * Generated from protobuf field <code>.google.protobuf.Struct input = 2 [(.google.api.field_behavior) = OPTIONAL];</code>
     * @return \Google\Protobuf\Struct|null
     */
    public function getInput()
    {
        return $this->input;
    }

    public function hasInput()
    {
        return isset($this->input);
    }

    public function clearInput()
    {
        unset($this->input);
    }

    /**
     * Optional. Input content provided by users in JSON object format. Examples
     * include text query, function calling parameters, media bytes, etc.
     *
     * Generated from protobuf field <code>.google.protobuf.Struct input = 2 [(.google.api.field_behavior) = OPTIONAL];</code>
     * @param \Google\Protobuf\Struct $var
     * @return $this
     */
    public function setInput($var)
    {
        GPBUtil::checkMessage($var, \Google\Protobuf\Struct::class);
        $this->input = $var;

        return $this;
    }

    /**
     * Optional. Class method to be used for the stream query.
     * It is optional and defaults to "stream_query" if unspecified.
     *
     * Generated from protobuf field <code>string class_method = 3 [(.google.api.field_behavior) = OPTIONAL];</code>
     * @return string
     */
    public function getClassMethod()
    {
        return $this->class_method;
    }

    /**
     * Optional. Class method to be used for the stream query.
     * It is optional and defaults to "stream_query" if unspecified.
     *
     * Generated from protobuf field <code>string class_method = 3 [(.google.api.field_behavior) = OPTIONAL];</code>
     * @param string $var
     * @return $this
     */
    public function setClassMethod($var)
    {
        GPBUtil::checkString($var, True);
        $this->class_method = $var;

        return $this;
    }

}

