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

namespace Google\Cloud\Functions\V1;

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

/**
 * Request for the `ListFunctions` method.
 *
 * Generated from protobuf message <code>google.cloud.functions.v1.ListFunctionsRequest</code>
 */
class ListFunctionsRequest extends \Google\Protobuf\Internal\Message
{
    /**
     * The project and location from which the function should be listed,
     * specified in the format `projects/&#42;&#47;locations/&#42;`
     * If you want to list functions in all locations, use "-" in place of a
     * location. When listing functions in all locations, if one or more
     * location(s) are unreachable, the response will contain functions from all
     * reachable locations along with the names of any unreachable locations.
     *
     * Generated from protobuf field <code>string parent = 1 [(.google.api.resource_reference) = {</code>
     */
    private $parent = '';
    /**
     * Maximum number of functions to return per call.
     *
     * Generated from protobuf field <code>int32 page_size = 2;</code>
     */
    private $page_size = 0;
    /**
     * The value returned by the last
     * `ListFunctionsResponse`; indicates that
     * this is a continuation of a prior `ListFunctions` call, and that the
     * system should return the next page of data.
     *
     * Generated from protobuf field <code>string page_token = 3;</code>
     */
    private $page_token = '';

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type string $parent
     *           The project and location from which the function should be listed,
     *           specified in the format `projects/&#42;&#47;locations/&#42;`
     *           If you want to list functions in all locations, use "-" in place of a
     *           location. When listing functions in all locations, if one or more
     *           location(s) are unreachable, the response will contain functions from all
     *           reachable locations along with the names of any unreachable locations.
     *     @type int $page_size
     *           Maximum number of functions to return per call.
     *     @type string $page_token
     *           The value returned by the last
     *           `ListFunctionsResponse`; indicates that
     *           this is a continuation of a prior `ListFunctions` call, and that the
     *           system should return the next page of data.
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\Google\Cloud\Functions\V1\Functions::initOnce();
        parent::__construct($data);
    }

    /**
     * The project and location from which the function should be listed,
     * specified in the format `projects/&#42;&#47;locations/&#42;`
     * If you want to list functions in all locations, use "-" in place of a
     * location. When listing functions in all locations, if one or more
     * location(s) are unreachable, the response will contain functions from all
     * reachable locations along with the names of any unreachable locations.
     *
     * Generated from protobuf field <code>string parent = 1 [(.google.api.resource_reference) = {</code>
     * @return string
     */
    public function getParent()
    {
        return $this->parent;
    }

    /**
     * The project and location from which the function should be listed,
     * specified in the format `projects/&#42;&#47;locations/&#42;`
     * If you want to list functions in all locations, use "-" in place of a
     * location. When listing functions in all locations, if one or more
     * location(s) are unreachable, the response will contain functions from all
     * reachable locations along with the names of any unreachable locations.
     *
     * Generated from protobuf field <code>string parent = 1 [(.google.api.resource_reference) = {</code>
     * @param string $var
     * @return $this
     */
    public function setParent($var)
    {
        GPBUtil::checkString($var, True);
        $this->parent = $var;

        return $this;
    }

    /**
     * Maximum number of functions to return per call.
     *
     * Generated from protobuf field <code>int32 page_size = 2;</code>
     * @return int
     */
    public function getPageSize()
    {
        return $this->page_size;
    }

    /**
     * Maximum number of functions to return per call.
     *
     * Generated from protobuf field <code>int32 page_size = 2;</code>
     * @param int $var
     * @return $this
     */
    public function setPageSize($var)
    {
        GPBUtil::checkInt32($var);
        $this->page_size = $var;

        return $this;
    }

    /**
     * The value returned by the last
     * `ListFunctionsResponse`; indicates that
     * this is a continuation of a prior `ListFunctions` call, and that the
     * system should return the next page of data.
     *
     * Generated from protobuf field <code>string page_token = 3;</code>
     * @return string
     */
    public function getPageToken()
    {
        return $this->page_token;
    }

    /**
     * The value returned by the last
     * `ListFunctionsResponse`; indicates that
     * this is a continuation of a prior `ListFunctions` call, and that the
     * system should return the next page of data.
     *
     * Generated from protobuf field <code>string page_token = 3;</code>
     * @param string $var
     * @return $this
     */
    public function setPageToken($var)
    {
        GPBUtil::checkString($var, True);
        $this->page_token = $var;

        return $this;
    }

}

