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

namespace Google\Cloud\GkeRecommender\V1;

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

/**
 * Request message for
 * [GkeInferenceQuickstart.FetchModels][google.cloud.gkerecommender.v1.GkeInferenceQuickstart.FetchModels].
 *
 * Generated from protobuf message <code>google.cloud.gkerecommender.v1.FetchModelsRequest</code>
 */
class FetchModelsRequest extends \Google\Protobuf\Internal\Message
{
    /**
     * Optional. The target number of results to return in a single response.
     * If not specified, a default value will be chosen by the service.
     * Note that the response may include a partial list and a caller should
     * only rely on the response's
     * [next_page_token][google.cloud.gkerecommender.v1.FetchModelsResponse.next_page_token]
     * to determine if there are more instances left to be queried.
     *
     * Generated from protobuf field <code>optional int32 page_size = 1 [(.google.api.field_behavior) = OPTIONAL];</code>
     */
    protected $page_size = null;
    /**
     * Optional. The value of
     * [next_page_token][google.cloud.gkerecommender.v1.FetchModelsResponse.next_page_token]
     * received from a previous `FetchModelsRequest` call.
     * Provide this to retrieve the subsequent page in a multi-page list of
     * results. When paginating, all other parameters provided to
     * `FetchModelsRequest` must match the call that provided the page token.
     *
     * Generated from protobuf field <code>optional string page_token = 2 [(.google.api.field_behavior) = OPTIONAL];</code>
     */
    protected $page_token = null;

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type int $page_size
     *           Optional. The target number of results to return in a single response.
     *           If not specified, a default value will be chosen by the service.
     *           Note that the response may include a partial list and a caller should
     *           only rely on the response's
     *           [next_page_token][google.cloud.gkerecommender.v1.FetchModelsResponse.next_page_token]
     *           to determine if there are more instances left to be queried.
     *     @type string $page_token
     *           Optional. The value of
     *           [next_page_token][google.cloud.gkerecommender.v1.FetchModelsResponse.next_page_token]
     *           received from a previous `FetchModelsRequest` call.
     *           Provide this to retrieve the subsequent page in a multi-page list of
     *           results. When paginating, all other parameters provided to
     *           `FetchModelsRequest` must match the call that provided the page token.
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\Google\Cloud\Gkerecommender\V1\Gkerecommender::initOnce();
        parent::__construct($data);
    }

    /**
     * Optional. The target number of results to return in a single response.
     * If not specified, a default value will be chosen by the service.
     * Note that the response may include a partial list and a caller should
     * only rely on the response's
     * [next_page_token][google.cloud.gkerecommender.v1.FetchModelsResponse.next_page_token]
     * to determine if there are more instances left to be queried.
     *
     * Generated from protobuf field <code>optional int32 page_size = 1 [(.google.api.field_behavior) = OPTIONAL];</code>
     * @return int
     */
    public function getPageSize()
    {
        return isset($this->page_size) ? $this->page_size : 0;
    }

    public function hasPageSize()
    {
        return isset($this->page_size);
    }

    public function clearPageSize()
    {
        unset($this->page_size);
    }

    /**
     * Optional. The target number of results to return in a single response.
     * If not specified, a default value will be chosen by the service.
     * Note that the response may include a partial list and a caller should
     * only rely on the response's
     * [next_page_token][google.cloud.gkerecommender.v1.FetchModelsResponse.next_page_token]
     * to determine if there are more instances left to be queried.
     *
     * Generated from protobuf field <code>optional int32 page_size = 1 [(.google.api.field_behavior) = OPTIONAL];</code>
     * @param int $var
     * @return $this
     */
    public function setPageSize($var)
    {
        GPBUtil::checkInt32($var);
        $this->page_size = $var;

        return $this;
    }

    /**
     * Optional. The value of
     * [next_page_token][google.cloud.gkerecommender.v1.FetchModelsResponse.next_page_token]
     * received from a previous `FetchModelsRequest` call.
     * Provide this to retrieve the subsequent page in a multi-page list of
     * results. When paginating, all other parameters provided to
     * `FetchModelsRequest` must match the call that provided the page token.
     *
     * Generated from protobuf field <code>optional string page_token = 2 [(.google.api.field_behavior) = OPTIONAL];</code>
     * @return string
     */
    public function getPageToken()
    {
        return isset($this->page_token) ? $this->page_token : '';
    }

    public function hasPageToken()
    {
        return isset($this->page_token);
    }

    public function clearPageToken()
    {
        unset($this->page_token);
    }

    /**
     * Optional. The value of
     * [next_page_token][google.cloud.gkerecommender.v1.FetchModelsResponse.next_page_token]
     * received from a previous `FetchModelsRequest` call.
     * Provide this to retrieve the subsequent page in a multi-page list of
     * results. When paginating, all other parameters provided to
     * `FetchModelsRequest` must match the call that provided the page token.
     *
     * Generated from protobuf field <code>optional string page_token = 2 [(.google.api.field_behavior) = OPTIONAL];</code>
     * @param string $var
     * @return $this
     */
    public function setPageToken($var)
    {
        GPBUtil::checkString($var, True);
        $this->page_token = $var;

        return $this;
    }

}

