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

namespace Google\Cloud\Dialogflow\V2\Conversation;

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

/**
 * Represents the context of a generator.
 *
 * Generated from protobuf message <code>google.cloud.dialogflow.v2.Conversation.GeneratorContext</code>
 */
class GeneratorContext extends \Google\Protobuf\Internal\Message
{
    /**
     * Output only. The type of the generator.
     *
     * Generated from protobuf field <code>.google.cloud.dialogflow.v2.Conversation.GeneratorContext.GeneratorType generator_type = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
     */
    protected $generator_type = 0;

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type int $generator_type
     *           Output only. The type of the generator.
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\Google\Cloud\Dialogflow\V2\Conversation::initOnce();
        parent::__construct($data);
    }

    /**
     * Output only. The type of the generator.
     *
     * Generated from protobuf field <code>.google.cloud.dialogflow.v2.Conversation.GeneratorContext.GeneratorType generator_type = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
     * @return int
     */
    public function getGeneratorType()
    {
        return $this->generator_type;
    }

    /**
     * Output only. The type of the generator.
     *
     * Generated from protobuf field <code>.google.cloud.dialogflow.v2.Conversation.GeneratorContext.GeneratorType generator_type = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
     * @param int $var
     * @return $this
     */
    public function setGeneratorType($var)
    {
        GPBUtil::checkEnum($var, \Google\Cloud\Dialogflow\V2\Conversation\GeneratorContext\GeneratorType::class);
        $this->generator_type = $var;

        return $this;
    }

}

