<?php
# Generated by the protocol buffer compiler.  DO NOT EDIT!
# NO CHECKED-IN PROTOBUF GENCODE
# source: temporal/api/sdk/v1/worker_config.proto

namespace Temporal\Api\Sdk\V1\WorkerConfig;

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

/**
 * Generated from protobuf message <code>temporal.api.sdk.v1.WorkerConfig.SimplePollerBehavior</code>
 */
class SimplePollerBehavior extends \Google\Protobuf\Internal\Message
{
    /**
     * Generated from protobuf field <code>int32 max_pollers = 1;</code>
     */
    protected $max_pollers = 0;

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type int $max_pollers
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\Temporal\Api\Sdk\V1\WorkerConfig::initOnce();
        parent::__construct($data);
    }

    /**
     * Generated from protobuf field <code>int32 max_pollers = 1;</code>
     * @return int
     */
    public function getMaxPollers()
    {
        return $this->max_pollers;
    }

    /**
     * Generated from protobuf field <code>int32 max_pollers = 1;</code>
     * @param int $var
     * @return $this
     */
    public function setMaxPollers($var)
    {
        GPBUtil::checkInt32($var);
        $this->max_pollers = $var;

        return $this;
    }

}

