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

namespace Google\Cloud\Dataplex\V1\Content;

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

/**
 * Configuration for Notebook content.
 *
 * Generated from protobuf message <code>google.cloud.dataplex.v1.Content.Notebook</code>
 */
class Notebook extends \Google\Protobuf\Internal\Message
{
    /**
     * Required. Kernel Type of the notebook.
     *
     * Generated from protobuf field <code>.google.cloud.dataplex.v1.Content.Notebook.KernelType kernel_type = 1 [(.google.api.field_behavior) = REQUIRED];</code>
     */
    private $kernel_type = 0;

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type int $kernel_type
     *           Required. Kernel Type of the notebook.
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\Google\Cloud\Dataplex\V1\Analyze::initOnce();
        parent::__construct($data);
    }

    /**
     * Required. Kernel Type of the notebook.
     *
     * Generated from protobuf field <code>.google.cloud.dataplex.v1.Content.Notebook.KernelType kernel_type = 1 [(.google.api.field_behavior) = REQUIRED];</code>
     * @return int
     */
    public function getKernelType()
    {
        return $this->kernel_type;
    }

    /**
     * Required. Kernel Type of the notebook.
     *
     * Generated from protobuf field <code>.google.cloud.dataplex.v1.Content.Notebook.KernelType kernel_type = 1 [(.google.api.field_behavior) = REQUIRED];</code>
     * @param int $var
     * @return $this
     */
    public function setKernelType($var)
    {
        GPBUtil::checkEnum($var, \Google\Cloud\Dataplex\V1\Content\Notebook\KernelType::class);
        $this->kernel_type = $var;

        return $this;
    }

}


