<?php
# Generated by the protocol buffer compiler.  DO NOT EDIT!
# source: temporal/api/operatorservice/v1/request_response.proto

namespace Temporal\Api\Operatorservice\V1;

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

/**
 * Generated from protobuf message <code>temporal.api.operatorservice.v1.ListNexusOutgoingServicesResponse</code>
 */
class ListNexusOutgoingServicesResponse extends \Google\Protobuf\Internal\Message
{
    /**
     * List of services in the namespace for the requested page.
     *
     * Generated from protobuf field <code>repeated .temporal.api.nexus.v1.OutgoingService services = 1;</code>
     */
    private $services;
    /**
     * Token for getting the next page.
     *
     * Generated from protobuf field <code>bytes next_page_token = 2;</code>
     */
    protected $next_page_token = '';

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type array<\Temporal\Api\Nexus\V1\OutgoingService>|\Google\Protobuf\Internal\RepeatedField $services
     *           List of services in the namespace for the requested page.
     *     @type string $next_page_token
     *           Token for getting the next page.
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\Temporal\Api\Operatorservice\V1\RequestResponse::initOnce();
        parent::__construct($data);
    }

    /**
     * List of services in the namespace for the requested page.
     *
     * Generated from protobuf field <code>repeated .temporal.api.nexus.v1.OutgoingService services = 1;</code>
     * @return \Google\Protobuf\Internal\RepeatedField
     */
    public function getServices()
    {
        return $this->services;
    }

    /**
     * List of services in the namespace for the requested page.
     *
     * Generated from protobuf field <code>repeated .temporal.api.nexus.v1.OutgoingService services = 1;</code>
     * @param array<\Temporal\Api\Nexus\V1\OutgoingService>|\Google\Protobuf\Internal\RepeatedField $var
     * @return $this
     */
    public function setServices($var)
    {
        $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Temporal\Api\Nexus\V1\OutgoingService::class);
        $this->services = $arr;

        return $this;
    }

    /**
     * Token for getting the next page.
     *
     * Generated from protobuf field <code>bytes next_page_token = 2;</code>
     * @return string
     */
    public function getNextPageToken()
    {
        return $this->next_page_token;
    }

    /**
     * Token for getting the next page.
     *
     * Generated from protobuf field <code>bytes next_page_token = 2;</code>
     * @param string $var
     * @return $this
     */
    public function setNextPageToken($var)
    {
        GPBUtil::checkString($var, False);
        $this->next_page_token = $var;

        return $this;
    }

}

