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

namespace Google\Cloud\Dialogflow\Cx\V3;

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

/**
 * The playbook import strategy used for resource conflict resolution associated
 * with an
 * [ImportPlaybookRequest][google.cloud.dialogflow.cx.v3.ImportPlaybookRequest].
 *
 * Generated from protobuf message <code>google.cloud.dialogflow.cx.v3.PlaybookImportStrategy</code>
 */
class PlaybookImportStrategy extends \Google\Protobuf\Internal\Message
{
    /**
     * Optional. Specifies the import strategy used when resolving conflicts with
     * the main playbook. If not specified, 'CREATE_NEW' is assumed.
     *
     * Generated from protobuf field <code>.google.cloud.dialogflow.cx.v3.ImportStrategy main_playbook_import_strategy = 4 [(.google.api.field_behavior) = OPTIONAL];</code>
     */
    protected $main_playbook_import_strategy = 0;
    /**
     * Optional. Specifies the import strategy used when resolving referenced
     * playbook/flow conflicts. If not specified, 'CREATE_NEW' is assumed.
     *
     * Generated from protobuf field <code>.google.cloud.dialogflow.cx.v3.ImportStrategy nested_resource_import_strategy = 5 [(.google.api.field_behavior) = OPTIONAL];</code>
     */
    protected $nested_resource_import_strategy = 0;
    /**
     * Optional. Specifies the import strategy used when resolving tool conflicts.
     * If not specified, 'CREATE_NEW' is assumed. This will be applied after the
     * main playbook and nested resource import strategies, meaning if the
     * playbook that references the tool is skipped, the tool will also be
     * skipped.
     *
     * Generated from protobuf field <code>.google.cloud.dialogflow.cx.v3.ImportStrategy tool_import_strategy = 6 [(.google.api.field_behavior) = OPTIONAL];</code>
     */
    protected $tool_import_strategy = 0;

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type int $main_playbook_import_strategy
     *           Optional. Specifies the import strategy used when resolving conflicts with
     *           the main playbook. If not specified, 'CREATE_NEW' is assumed.
     *     @type int $nested_resource_import_strategy
     *           Optional. Specifies the import strategy used when resolving referenced
     *           playbook/flow conflicts. If not specified, 'CREATE_NEW' is assumed.
     *     @type int $tool_import_strategy
     *           Optional. Specifies the import strategy used when resolving tool conflicts.
     *           If not specified, 'CREATE_NEW' is assumed. This will be applied after the
     *           main playbook and nested resource import strategies, meaning if the
     *           playbook that references the tool is skipped, the tool will also be
     *           skipped.
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\Google\Cloud\Dialogflow\Cx\V3\Playbook::initOnce();
        parent::__construct($data);
    }

    /**
     * Optional. Specifies the import strategy used when resolving conflicts with
     * the main playbook. If not specified, 'CREATE_NEW' is assumed.
     *
     * Generated from protobuf field <code>.google.cloud.dialogflow.cx.v3.ImportStrategy main_playbook_import_strategy = 4 [(.google.api.field_behavior) = OPTIONAL];</code>
     * @return int
     */
    public function getMainPlaybookImportStrategy()
    {
        return $this->main_playbook_import_strategy;
    }

    /**
     * Optional. Specifies the import strategy used when resolving conflicts with
     * the main playbook. If not specified, 'CREATE_NEW' is assumed.
     *
     * Generated from protobuf field <code>.google.cloud.dialogflow.cx.v3.ImportStrategy main_playbook_import_strategy = 4 [(.google.api.field_behavior) = OPTIONAL];</code>
     * @param int $var
     * @return $this
     */
    public function setMainPlaybookImportStrategy($var)
    {
        GPBUtil::checkEnum($var, \Google\Cloud\Dialogflow\Cx\V3\ImportStrategy::class);
        $this->main_playbook_import_strategy = $var;

        return $this;
    }

    /**
     * Optional. Specifies the import strategy used when resolving referenced
     * playbook/flow conflicts. If not specified, 'CREATE_NEW' is assumed.
     *
     * Generated from protobuf field <code>.google.cloud.dialogflow.cx.v3.ImportStrategy nested_resource_import_strategy = 5 [(.google.api.field_behavior) = OPTIONAL];</code>
     * @return int
     */
    public function getNestedResourceImportStrategy()
    {
        return $this->nested_resource_import_strategy;
    }

    /**
     * Optional. Specifies the import strategy used when resolving referenced
     * playbook/flow conflicts. If not specified, 'CREATE_NEW' is assumed.
     *
     * Generated from protobuf field <code>.google.cloud.dialogflow.cx.v3.ImportStrategy nested_resource_import_strategy = 5 [(.google.api.field_behavior) = OPTIONAL];</code>
     * @param int $var
     * @return $this
     */
    public function setNestedResourceImportStrategy($var)
    {
        GPBUtil::checkEnum($var, \Google\Cloud\Dialogflow\Cx\V3\ImportStrategy::class);
        $this->nested_resource_import_strategy = $var;

        return $this;
    }

    /**
     * Optional. Specifies the import strategy used when resolving tool conflicts.
     * If not specified, 'CREATE_NEW' is assumed. This will be applied after the
     * main playbook and nested resource import strategies, meaning if the
     * playbook that references the tool is skipped, the tool will also be
     * skipped.
     *
     * Generated from protobuf field <code>.google.cloud.dialogflow.cx.v3.ImportStrategy tool_import_strategy = 6 [(.google.api.field_behavior) = OPTIONAL];</code>
     * @return int
     */
    public function getToolImportStrategy()
    {
        return $this->tool_import_strategy;
    }

    /**
     * Optional. Specifies the import strategy used when resolving tool conflicts.
     * If not specified, 'CREATE_NEW' is assumed. This will be applied after the
     * main playbook and nested resource import strategies, meaning if the
     * playbook that references the tool is skipped, the tool will also be
     * skipped.
     *
     * Generated from protobuf field <code>.google.cloud.dialogflow.cx.v3.ImportStrategy tool_import_strategy = 6 [(.google.api.field_behavior) = OPTIONAL];</code>
     * @param int $var
     * @return $this
     */
    public function setToolImportStrategy($var)
    {
        GPBUtil::checkEnum($var, \Google\Cloud\Dialogflow\Cx\V3\ImportStrategy::class);
        $this->tool_import_strategy = $var;

        return $this;
    }

}

