<?php
# Generated by the protocol buffer compiler.  DO NOT EDIT!
# source: google/dataflow/v1beta3/streaming.proto

namespace Google\Cloud\Dataflow\V1beta3;

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

/**
 * Data disk assignment information for a specific key-range of a sharded
 * computation.
 * Currently we only support UTF-8 character splits to simplify encoding into
 * JSON.
 *
 * Generated from protobuf message <code>google.dataflow.v1beta3.KeyRangeDataDiskAssignment</code>
 */
class KeyRangeDataDiskAssignment extends \Google\Protobuf\Internal\Message
{
    /**
     * The start (inclusive) of the key range.
     *
     * Generated from protobuf field <code>string start = 1;</code>
     */
    protected $start = '';
    /**
     * The end (exclusive) of the key range.
     *
     * Generated from protobuf field <code>string end = 2;</code>
     */
    protected $end = '';
    /**
     * The name of the data disk where data for this range is stored.
     * This name is local to the Google Cloud Platform project and uniquely
     * identifies the disk within that project, for example
     * "myproject-1014-104817-4c2-harness-0-disk-1".
     *
     * Generated from protobuf field <code>string data_disk = 3;</code>
     */
    protected $data_disk = '';

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type string $start
     *           The start (inclusive) of the key range.
     *     @type string $end
     *           The end (exclusive) of the key range.
     *     @type string $data_disk
     *           The name of the data disk where data for this range is stored.
     *           This name is local to the Google Cloud Platform project and uniquely
     *           identifies the disk within that project, for example
     *           "myproject-1014-104817-4c2-harness-0-disk-1".
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\Google\Dataflow\V1Beta3\Streaming::initOnce();
        parent::__construct($data);
    }

    /**
     * The start (inclusive) of the key range.
     *
     * Generated from protobuf field <code>string start = 1;</code>
     * @return string
     */
    public function getStart()
    {
        return $this->start;
    }

    /**
     * The start (inclusive) of the key range.
     *
     * Generated from protobuf field <code>string start = 1;</code>
     * @param string $var
     * @return $this
     */
    public function setStart($var)
    {
        GPBUtil::checkString($var, True);
        $this->start = $var;

        return $this;
    }

    /**
     * The end (exclusive) of the key range.
     *
     * Generated from protobuf field <code>string end = 2;</code>
     * @return string
     */
    public function getEnd()
    {
        return $this->end;
    }

    /**
     * The end (exclusive) of the key range.
     *
     * Generated from protobuf field <code>string end = 2;</code>
     * @param string $var
     * @return $this
     */
    public function setEnd($var)
    {
        GPBUtil::checkString($var, True);
        $this->end = $var;

        return $this;
    }

    /**
     * The name of the data disk where data for this range is stored.
     * This name is local to the Google Cloud Platform project and uniquely
     * identifies the disk within that project, for example
     * "myproject-1014-104817-4c2-harness-0-disk-1".
     *
     * Generated from protobuf field <code>string data_disk = 3;</code>
     * @return string
     */
    public function getDataDisk()
    {
        return $this->data_disk;
    }

    /**
     * The name of the data disk where data for this range is stored.
     * This name is local to the Google Cloud Platform project and uniquely
     * identifies the disk within that project, for example
     * "myproject-1014-104817-4c2-harness-0-disk-1".
     *
     * Generated from protobuf field <code>string data_disk = 3;</code>
     * @param string $var
     * @return $this
     */
    public function setDataDisk($var)
    {
        GPBUtil::checkString($var, True);
        $this->data_disk = $var;

        return $this;
    }

}

