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

namespace Google\Cloud\Eventarc\V1;

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

/**
 * The response message for the `ListMessageBuses` method.
 *
 * Generated from protobuf message <code>google.cloud.eventarc.v1.ListMessageBusesResponse</code>
 */
class ListMessageBusesResponse extends \Google\Protobuf\Internal\Message
{
    /**
     * The requested message buses, up to the number specified in `page_size`.
     *
     * Generated from protobuf field <code>repeated .google.cloud.eventarc.v1.MessageBus message_buses = 1;</code>
     */
    private $message_buses;
    /**
     * A page token that can be sent to `ListMessageBuses` to request the next
     * page. If this is empty, then there are no more pages.
     *
     * Generated from protobuf field <code>string next_page_token = 2;</code>
     */
    protected $next_page_token = '';
    /**
     * Unreachable resources, if any.
     *
     * Generated from protobuf field <code>repeated string unreachable = 3;</code>
     */
    private $unreachable;

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type \Google\Cloud\Eventarc\V1\MessageBus[] $message_buses
     *           The requested message buses, up to the number specified in `page_size`.
     *     @type string $next_page_token
     *           A page token that can be sent to `ListMessageBuses` to request the next
     *           page. If this is empty, then there are no more pages.
     *     @type string[] $unreachable
     *           Unreachable resources, if any.
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\Google\Cloud\Eventarc\V1\Eventarc::initOnce();
        parent::__construct($data);
    }

    /**
     * The requested message buses, up to the number specified in `page_size`.
     *
     * Generated from protobuf field <code>repeated .google.cloud.eventarc.v1.MessageBus message_buses = 1;</code>
     * @return RepeatedField<\Google\Cloud\Eventarc\V1\MessageBus>
     */
    public function getMessageBuses()
    {
        return $this->message_buses;
    }

    /**
     * The requested message buses, up to the number specified in `page_size`.
     *
     * Generated from protobuf field <code>repeated .google.cloud.eventarc.v1.MessageBus message_buses = 1;</code>
     * @param \Google\Cloud\Eventarc\V1\MessageBus[] $var
     * @return $this
     */
    public function setMessageBuses($var)
    {
        $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Eventarc\V1\MessageBus::class);
        $this->message_buses = $arr;

        return $this;
    }

    /**
     * A page token that can be sent to `ListMessageBuses` to request the next
     * page. If this is empty, then there are no more pages.
     *
     * Generated from protobuf field <code>string next_page_token = 2;</code>
     * @return string
     */
    public function getNextPageToken()
    {
        return $this->next_page_token;
    }

    /**
     * A page token that can be sent to `ListMessageBuses` to request the next
     * page. If this is empty, then there are no more pages.
     *
     * 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;
    }

    /**
     * Unreachable resources, if any.
     *
     * Generated from protobuf field <code>repeated string unreachable = 3;</code>
     * @return RepeatedField<string>
     */
    public function getUnreachable()
    {
        return $this->unreachable;
    }

    /**
     * Unreachable resources, if any.
     *
     * Generated from protobuf field <code>repeated string unreachable = 3;</code>
     * @param string[] $var
     * @return $this
     */
    public function setUnreachable($var)
    {
        $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING);
        $this->unreachable = $arr;

        return $this;
    }

}

