<?php
# Generated by the protocol buffer compiler.  DO NOT EDIT!
# source: google/cloud/dialogflow/v2/conversation.proto

namespace Google\Cloud\Dialogflow\V2\SearchKnowledgeDebugInfo;

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

/**
 * Configured behaviors for SearchKnowledge.
 *
 * Generated from protobuf message <code>google.cloud.dialogflow.v2.SearchKnowledgeDebugInfo.SearchKnowledgeBehavior</code>
 */
class SearchKnowledgeBehavior extends \Google\Protobuf\Internal\Message
{
    /**
     * Whether data store agent rewriter was turned on for the request.
     *
     * Generated from protobuf field <code>bool answer_generation_rewriter_on = 1;</code>
     */
    protected $answer_generation_rewriter_on = false;
    /**
     * Whether end_user_metadata is included in the data store agent call.
     *
     * Generated from protobuf field <code>bool end_user_metadata_included = 2;</code>
     */
    protected $end_user_metadata_included = false;
    /**
     * This field indicates whether third party connectors are enabled for the
     * project. Note that this field only indicates if the project is
     * allowlisted for connectors.
     *
     * Generated from protobuf field <code>bool third_party_connector_allowed = 4;</code>
     */
    protected $third_party_connector_allowed = false;

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type bool $answer_generation_rewriter_on
     *           Whether data store agent rewriter was turned on for the request.
     *     @type bool $end_user_metadata_included
     *           Whether end_user_metadata is included in the data store agent call.
     *     @type bool $third_party_connector_allowed
     *           This field indicates whether third party connectors are enabled for the
     *           project. Note that this field only indicates if the project is
     *           allowlisted for connectors.
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\Google\Cloud\Dialogflow\V2\Conversation::initOnce();
        parent::__construct($data);
    }

    /**
     * Whether data store agent rewriter was turned on for the request.
     *
     * Generated from protobuf field <code>bool answer_generation_rewriter_on = 1;</code>
     * @return bool
     */
    public function getAnswerGenerationRewriterOn()
    {
        return $this->answer_generation_rewriter_on;
    }

    /**
     * Whether data store agent rewriter was turned on for the request.
     *
     * Generated from protobuf field <code>bool answer_generation_rewriter_on = 1;</code>
     * @param bool $var
     * @return $this
     */
    public function setAnswerGenerationRewriterOn($var)
    {
        GPBUtil::checkBool($var);
        $this->answer_generation_rewriter_on = $var;

        return $this;
    }

    /**
     * Whether end_user_metadata is included in the data store agent call.
     *
     * Generated from protobuf field <code>bool end_user_metadata_included = 2;</code>
     * @return bool
     */
    public function getEndUserMetadataIncluded()
    {
        return $this->end_user_metadata_included;
    }

    /**
     * Whether end_user_metadata is included in the data store agent call.
     *
     * Generated from protobuf field <code>bool end_user_metadata_included = 2;</code>
     * @param bool $var
     * @return $this
     */
    public function setEndUserMetadataIncluded($var)
    {
        GPBUtil::checkBool($var);
        $this->end_user_metadata_included = $var;

        return $this;
    }

    /**
     * This field indicates whether third party connectors are enabled for the
     * project. Note that this field only indicates if the project is
     * allowlisted for connectors.
     *
     * Generated from protobuf field <code>bool third_party_connector_allowed = 4;</code>
     * @return bool
     */
    public function getThirdPartyConnectorAllowed()
    {
        return $this->third_party_connector_allowed;
    }

    /**
     * This field indicates whether third party connectors are enabled for the
     * project. Note that this field only indicates if the project is
     * allowlisted for connectors.
     *
     * Generated from protobuf field <code>bool third_party_connector_allowed = 4;</code>
     * @param bool $var
     * @return $this
     */
    public function setThirdPartyConnectorAllowed($var)
    {
        GPBUtil::checkBool($var);
        $this->third_party_connector_allowed = $var;

        return $this;
    }

}

