<?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.ListNexusIncomingServicesRequest</code>
 */
class ListNexusIncomingServicesRequest extends \Google\Protobuf\Internal\Message
{
    /**
     * Generated from protobuf field <code>int32 page_size = 1;</code>
     */
    protected $page_size = 0;
    /**
     * To get the next page, pass in `ListNexusIncomingServicesResponse.next_page_token` from the previous page's
     * response, the token will be empty if there's no other page.
     * Note: the last page may be empty if the total number of services registered is a multiple of the page size.
     *
     * Generated from protobuf field <code>bytes next_page_token = 2;</code>
     */
    protected $next_page_token = '';
    /**
     * Name of the incoming service to filter on - optional. Specifying this will result in zero or one results.
     * (-- api-linter: core::203::field-behavior-required=disabled
     *     aip.dev/not-precedent: Not following linter rules. --)
     *
     * Generated from protobuf field <code>string name = 3;</code>
     */
    protected $name = '';

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type int $page_size
     *     @type string $next_page_token
     *           To get the next page, pass in `ListNexusIncomingServicesResponse.next_page_token` from the previous page's
     *           response, the token will be empty if there's no other page.
     *           Note: the last page may be empty if the total number of services registered is a multiple of the page size.
     *     @type string $name
     *           Name of the incoming service to filter on - optional. Specifying this will result in zero or one results.
     *           (-- api-linter: core::203::field-behavior-required=disabled
     *               aip.dev/not-precedent: Not following linter rules. --)
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\Temporal\Api\Operatorservice\V1\RequestResponse::initOnce();
        parent::__construct($data);
    }

    /**
     * Generated from protobuf field <code>int32 page_size = 1;</code>
     * @return int
     */
    public function getPageSize()
    {
        return $this->page_size;
    }

    /**
     * Generated from protobuf field <code>int32 page_size = 1;</code>
     * @param int $var
     * @return $this
     */
    public function setPageSize($var)
    {
        GPBUtil::checkInt32($var);
        $this->page_size = $var;

        return $this;
    }

    /**
     * To get the next page, pass in `ListNexusIncomingServicesResponse.next_page_token` from the previous page's
     * response, the token will be empty if there's no other page.
     * Note: the last page may be empty if the total number of services registered is a multiple of the page size.
     *
     * Generated from protobuf field <code>bytes next_page_token = 2;</code>
     * @return string
     */
    public function getNextPageToken()
    {
        return $this->next_page_token;
    }

    /**
     * To get the next page, pass in `ListNexusIncomingServicesResponse.next_page_token` from the previous page's
     * response, the token will be empty if there's no other page.
     * Note: the last page may be empty if the total number of services registered is a multiple of the page size.
     *
     * 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;
    }

    /**
     * Name of the incoming service to filter on - optional. Specifying this will result in zero or one results.
     * (-- api-linter: core::203::field-behavior-required=disabled
     *     aip.dev/not-precedent: Not following linter rules. --)
     *
     * Generated from protobuf field <code>string name = 3;</code>
     * @return string
     */
    public function getName()
    {
        return $this->name;
    }

    /**
     * Name of the incoming service to filter on - optional. Specifying this will result in zero or one results.
     * (-- api-linter: core::203::field-behavior-required=disabled
     *     aip.dev/not-precedent: Not following linter rules. --)
     *
     * Generated from protobuf field <code>string name = 3;</code>
     * @param string $var
     * @return $this
     */
    public function setName($var)
    {
        GPBUtil::checkString($var, True);
        $this->name = $var;

        return $this;
    }

}

