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

namespace Google\Cloud\RecommendationEngine\V1beta1;

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

/**
 * Response message for the `ListPredictionApiKeyRegistrations`.
 *
 * Generated from protobuf message <code>google.cloud.recommendationengine.v1beta1.ListPredictionApiKeyRegistrationsResponse</code>
 */
class ListPredictionApiKeyRegistrationsResponse extends \Google\Protobuf\Internal\Message
{
    /**
     * The list of registered API keys.
     *
     * Generated from protobuf field <code>repeated .google.cloud.recommendationengine.v1beta1.PredictionApiKeyRegistration prediction_api_key_registrations = 1;</code>
     */
    private $prediction_api_key_registrations;
    /**
     * If empty, the list is complete. If nonempty, pass the token to the next
     * request's `ListPredictionApiKeysRegistrationsRequest.pageToken`.
     *
     * Generated from protobuf field <code>string next_page_token = 2;</code>
     */
    private $next_page_token = '';

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type array<\Google\Cloud\RecommendationEngine\V1beta1\PredictionApiKeyRegistration>|\Google\Protobuf\Internal\RepeatedField $prediction_api_key_registrations
     *           The list of registered API keys.
     *     @type string $next_page_token
     *           If empty, the list is complete. If nonempty, pass the token to the next
     *           request's `ListPredictionApiKeysRegistrationsRequest.pageToken`.
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\Google\Cloud\Recommendationengine\V1Beta1\PredictionApikeyRegistryService::initOnce();
        parent::__construct($data);
    }

    /**
     * The list of registered API keys.
     *
     * Generated from protobuf field <code>repeated .google.cloud.recommendationengine.v1beta1.PredictionApiKeyRegistration prediction_api_key_registrations = 1;</code>
     * @return \Google\Protobuf\Internal\RepeatedField
     */
    public function getPredictionApiKeyRegistrations()
    {
        return $this->prediction_api_key_registrations;
    }

    /**
     * The list of registered API keys.
     *
     * Generated from protobuf field <code>repeated .google.cloud.recommendationengine.v1beta1.PredictionApiKeyRegistration prediction_api_key_registrations = 1;</code>
     * @param array<\Google\Cloud\RecommendationEngine\V1beta1\PredictionApiKeyRegistration>|\Google\Protobuf\Internal\RepeatedField $var
     * @return $this
     */
    public function setPredictionApiKeyRegistrations($var)
    {
        $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\RecommendationEngine\V1beta1\PredictionApiKeyRegistration::class);
        $this->prediction_api_key_registrations = $arr;

        return $this;
    }

    /**
     * If empty, the list is complete. If nonempty, pass the token to the next
     * request's `ListPredictionApiKeysRegistrationsRequest.pageToken`.
     *
     * Generated from protobuf field <code>string next_page_token = 2;</code>
     * @return string
     */
    public function getNextPageToken()
    {
        return $this->next_page_token;
    }

    /**
     * If empty, the list is complete. If nonempty, pass the token to the next
     * request's `ListPredictionApiKeysRegistrationsRequest.pageToken`.
     *
     * 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;
    }

}

