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

namespace Google\Cloud\BinaryAuthorization\V1beta1;

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

/**
 * Response message for [BinauthzManagementService.ListAttestors][].
 *
 * Generated from protobuf message <code>google.cloud.binaryauthorization.v1beta1.ListAttestorsResponse</code>
 */
class ListAttestorsResponse extends \Google\Protobuf\Internal\Message
{
    /**
     * The list of [attestors][google.cloud.binaryauthorization.v1beta1.Attestor].
     *
     * Generated from protobuf field <code>repeated .google.cloud.binaryauthorization.v1beta1.Attestor attestors = 1;</code>
     */
    private $attestors;
    /**
     * A token to retrieve the next page of results. Pass this value in the
     * [ListAttestorsRequest.page_token][google.cloud.binaryauthorization.v1beta1.ListAttestorsRequest.page_token] field in the subsequent call to the
     * `ListAttestors` method to retrieve the next page of results.
     *
     * 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 \Google\Cloud\BinaryAuthorization\V1beta1\Attestor[]|\Google\Protobuf\Internal\RepeatedField $attestors
     *           The list of [attestors][google.cloud.binaryauthorization.v1beta1.Attestor].
     *     @type string $next_page_token
     *           A token to retrieve the next page of results. Pass this value in the
     *           [ListAttestorsRequest.page_token][google.cloud.binaryauthorization.v1beta1.ListAttestorsRequest.page_token] field in the subsequent call to the
     *           `ListAttestors` method to retrieve the next page of results.
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\Google\Cloud\Binaryauthorization\V1Beta1\Service::initOnce();
        parent::__construct($data);
    }

    /**
     * The list of [attestors][google.cloud.binaryauthorization.v1beta1.Attestor].
     *
     * Generated from protobuf field <code>repeated .google.cloud.binaryauthorization.v1beta1.Attestor attestors = 1;</code>
     * @return \Google\Protobuf\Internal\RepeatedField
     */
    public function getAttestors()
    {
        return $this->attestors;
    }

    /**
     * The list of [attestors][google.cloud.binaryauthorization.v1beta1.Attestor].
     *
     * Generated from protobuf field <code>repeated .google.cloud.binaryauthorization.v1beta1.Attestor attestors = 1;</code>
     * @param \Google\Cloud\BinaryAuthorization\V1beta1\Attestor[]|\Google\Protobuf\Internal\RepeatedField $var
     * @return $this
     */
    public function setAttestors($var)
    {
        $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\BinaryAuthorization\V1beta1\Attestor::class);
        $this->attestors = $arr;

        return $this;
    }

    /**
     * A token to retrieve the next page of results. Pass this value in the
     * [ListAttestorsRequest.page_token][google.cloud.binaryauthorization.v1beta1.ListAttestorsRequest.page_token] field in the subsequent call to the
     * `ListAttestors` method to retrieve the next page of results.
     *
     * Generated from protobuf field <code>string next_page_token = 2;</code>
     * @return string
     */
    public function getNextPageToken()
    {
        return $this->next_page_token;
    }

    /**
     * A token to retrieve the next page of results. Pass this value in the
     * [ListAttestorsRequest.page_token][google.cloud.binaryauthorization.v1beta1.ListAttestorsRequest.page_token] field in the subsequent call to the
     * `ListAttestors` method to retrieve the next page of results.
     *
     * 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;
    }

}

