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

namespace Google\Cloud\Tpu\V2;

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

/**
 * Response for
 * [GetGuestAttributes][google.cloud.tpu.v2.Tpu.GetGuestAttributes].
 *
 * Generated from protobuf message <code>google.cloud.tpu.v2.GetGuestAttributesResponse</code>
 */
class GetGuestAttributesResponse extends \Google\Protobuf\Internal\Message
{
    /**
     * The guest attributes for the TPU workers.
     *
     * Generated from protobuf field <code>repeated .google.cloud.tpu.v2.GuestAttributes guest_attributes = 1;</code>
     */
    private $guest_attributes;

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type array<\Google\Cloud\Tpu\V2\GuestAttributes>|\Google\Protobuf\Internal\RepeatedField $guest_attributes
     *           The guest attributes for the TPU workers.
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\Google\Cloud\Tpu\V2\CloudTpu::initOnce();
        parent::__construct($data);
    }

    /**
     * The guest attributes for the TPU workers.
     *
     * Generated from protobuf field <code>repeated .google.cloud.tpu.v2.GuestAttributes guest_attributes = 1;</code>
     * @return \Google\Protobuf\Internal\RepeatedField
     */
    public function getGuestAttributes()
    {
        return $this->guest_attributes;
    }

    /**
     * The guest attributes for the TPU workers.
     *
     * Generated from protobuf field <code>repeated .google.cloud.tpu.v2.GuestAttributes guest_attributes = 1;</code>
     * @param array<\Google\Cloud\Tpu\V2\GuestAttributes>|\Google\Protobuf\Internal\RepeatedField $var
     * @return $this
     */
    public function setGuestAttributes($var)
    {
        $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Tpu\V2\GuestAttributes::class);
        $this->guest_attributes = $arr;

        return $this;
    }

}

