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

namespace Google\Cloud\Tpu\V1;

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

/**
 * Response for
 * [ListTensorFlowVersions][google.cloud.tpu.v1.Tpu.ListTensorFlowVersions].
 *
 * Generated from protobuf message <code>google.cloud.tpu.v1.ListTensorFlowVersionsResponse</code>
 */
class ListTensorFlowVersionsResponse extends \Google\Protobuf\Internal\Message
{
    /**
     * The listed nodes.
     *
     * Generated from protobuf field <code>repeated .google.cloud.tpu.v1.TensorFlowVersion tensorflow_versions = 1;</code>
     */
    private $tensorflow_versions;
    /**
     * The next page token or empty if none.
     *
     * Generated from protobuf field <code>string next_page_token = 2;</code>
     */
    private $next_page_token = '';
    /**
     * Locations that could not be reached.
     *
     * Generated from protobuf field <code>repeated string unreachable = 3;</code>
     */
    private $unreachable;

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type array<\Google\Cloud\Tpu\V1\TensorFlowVersion>|\Google\Protobuf\Internal\RepeatedField $tensorflow_versions
     *           The listed nodes.
     *     @type string $next_page_token
     *           The next page token or empty if none.
     *     @type array<string>|\Google\Protobuf\Internal\RepeatedField $unreachable
     *           Locations that could not be reached.
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\Google\Cloud\Tpu\V1\CloudTpu::initOnce();
        parent::__construct($data);
    }

    /**
     * The listed nodes.
     *
     * Generated from protobuf field <code>repeated .google.cloud.tpu.v1.TensorFlowVersion tensorflow_versions = 1;</code>
     * @return \Google\Protobuf\Internal\RepeatedField
     */
    public function getTensorflowVersions()
    {
        return $this->tensorflow_versions;
    }

    /**
     * The listed nodes.
     *
     * Generated from protobuf field <code>repeated .google.cloud.tpu.v1.TensorFlowVersion tensorflow_versions = 1;</code>
     * @param array<\Google\Cloud\Tpu\V1\TensorFlowVersion>|\Google\Protobuf\Internal\RepeatedField $var
     * @return $this
     */
    public function setTensorflowVersions($var)
    {
        $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Tpu\V1\TensorFlowVersion::class);
        $this->tensorflow_versions = $arr;

        return $this;
    }

    /**
     * The next page token or empty if none.
     *
     * Generated from protobuf field <code>string next_page_token = 2;</code>
     * @return string
     */
    public function getNextPageToken()
    {
        return $this->next_page_token;
    }

    /**
     * The next page token or empty if none.
     *
     * Generated from protobuf field <code>string next_page_token = 2;</code>
     * @param string $var
     * @return $this
     */
    public function setNextPageToken($var)
    {
        GPBUtil::checkString($var, True);
        $this->next_page_token = $var;

        return $this;
    }

    /**
     * Locations that could not be reached.
     *
     * Generated from protobuf field <code>repeated string unreachable = 3;</code>
     * @return \Google\Protobuf\Internal\RepeatedField
     */
    public function getUnreachable()
    {
        return $this->unreachable;
    }

    /**
     * Locations that could not be reached.
     *
     * Generated from protobuf field <code>repeated string unreachable = 3;</code>
     * @param array<string>|\Google\Protobuf\Internal\RepeatedField $var
     * @return $this
     */
    public function setUnreachable($var)
    {
        $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING);
        $this->unreachable = $arr;

        return $this;
    }

}

