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

namespace Temporal\Api\Taskqueue\V1;

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

/**
 * Generated from protobuf message <code>temporal.api.taskqueue.v1.RampByPercentage</code>
 */
class RampByPercentage extends \Google\Protobuf\Internal\Message
{
    /**
     * Acceptable range is [0,100).
     *
     * Generated from protobuf field <code>float ramp_percentage = 1;</code>
     */
    protected $ramp_percentage = 0.0;

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type float $ramp_percentage
     *           Acceptable range is [0,100).
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\Temporal\Api\Taskqueue\V1\Message::initOnce();
        parent::__construct($data);
    }

    /**
     * Acceptable range is [0,100).
     *
     * Generated from protobuf field <code>float ramp_percentage = 1;</code>
     * @return float
     */
    public function getRampPercentage()
    {
        return $this->ramp_percentage;
    }

    /**
     * Acceptable range is [0,100).
     *
     * Generated from protobuf field <code>float ramp_percentage = 1;</code>
     * @param float $var
     * @return $this
     */
    public function setRampPercentage($var)
    {
        GPBUtil::checkFloat($var);
        $this->ramp_percentage = $var;

        return $this;
    }

}

