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

namespace Google\Cloud\Kms\V1;

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

/**
 * Response message for
 * [HsmManagement.ListSingleTenantHsmInstanceProposals][google.cloud.kms.v1.HsmManagement.ListSingleTenantHsmInstanceProposals].
 *
 * Generated from protobuf message <code>google.cloud.kms.v1.ListSingleTenantHsmInstanceProposalsResponse</code>
 */
class ListSingleTenantHsmInstanceProposalsResponse extends \Google\Protobuf\Internal\Message
{
    /**
     * The list of
     * [SingleTenantHsmInstanceProposals][google.cloud.kms.v1.SingleTenantHsmInstanceProposal].
     *
     * Generated from protobuf field <code>repeated .google.cloud.kms.v1.SingleTenantHsmInstanceProposal single_tenant_hsm_instance_proposals = 1;</code>
     */
    private $single_tenant_hsm_instance_proposals;
    /**
     * A token to retrieve next page of results. Pass this value in
     * [ListSingleTenantHsmInstanceProposalsRequest.page_token][google.cloud.kms.v1.ListSingleTenantHsmInstanceProposalsRequest.page_token]
     * to retrieve the next page of results.
     *
     * Generated from protobuf field <code>string next_page_token = 2;</code>
     */
    protected $next_page_token = '';
    /**
     * The total number of
     * [SingleTenantHsmInstanceProposals][google.cloud.kms.v1.SingleTenantHsmInstanceProposal]
     * that matched the query.
     * This field is not populated if
     * [ListSingleTenantHsmInstanceProposalsRequest.filter][google.cloud.kms.v1.ListSingleTenantHsmInstanceProposalsRequest.filter]
     * is applied.
     *
     * Generated from protobuf field <code>int32 total_size = 3;</code>
     */
    protected $total_size = 0;

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type \Google\Cloud\Kms\V1\SingleTenantHsmInstanceProposal[] $single_tenant_hsm_instance_proposals
     *           The list of
     *           [SingleTenantHsmInstanceProposals][google.cloud.kms.v1.SingleTenantHsmInstanceProposal].
     *     @type string $next_page_token
     *           A token to retrieve next page of results. Pass this value in
     *           [ListSingleTenantHsmInstanceProposalsRequest.page_token][google.cloud.kms.v1.ListSingleTenantHsmInstanceProposalsRequest.page_token]
     *           to retrieve the next page of results.
     *     @type int $total_size
     *           The total number of
     *           [SingleTenantHsmInstanceProposals][google.cloud.kms.v1.SingleTenantHsmInstanceProposal]
     *           that matched the query.
     *           This field is not populated if
     *           [ListSingleTenantHsmInstanceProposalsRequest.filter][google.cloud.kms.v1.ListSingleTenantHsmInstanceProposalsRequest.filter]
     *           is applied.
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\Google\Cloud\Kms\V1\HsmManagement::initOnce();
        parent::__construct($data);
    }

    /**
     * The list of
     * [SingleTenantHsmInstanceProposals][google.cloud.kms.v1.SingleTenantHsmInstanceProposal].
     *
     * Generated from protobuf field <code>repeated .google.cloud.kms.v1.SingleTenantHsmInstanceProposal single_tenant_hsm_instance_proposals = 1;</code>
     * @return RepeatedField<\Google\Cloud\Kms\V1\SingleTenantHsmInstanceProposal>
     */
    public function getSingleTenantHsmInstanceProposals()
    {
        return $this->single_tenant_hsm_instance_proposals;
    }

    /**
     * The list of
     * [SingleTenantHsmInstanceProposals][google.cloud.kms.v1.SingleTenantHsmInstanceProposal].
     *
     * Generated from protobuf field <code>repeated .google.cloud.kms.v1.SingleTenantHsmInstanceProposal single_tenant_hsm_instance_proposals = 1;</code>
     * @param \Google\Cloud\Kms\V1\SingleTenantHsmInstanceProposal[] $var
     * @return $this
     */
    public function setSingleTenantHsmInstanceProposals($var)
    {
        $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Kms\V1\SingleTenantHsmInstanceProposal::class);
        $this->single_tenant_hsm_instance_proposals = $arr;

        return $this;
    }

    /**
     * A token to retrieve next page of results. Pass this value in
     * [ListSingleTenantHsmInstanceProposalsRequest.page_token][google.cloud.kms.v1.ListSingleTenantHsmInstanceProposalsRequest.page_token]
     * 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 next page of results. Pass this value in
     * [ListSingleTenantHsmInstanceProposalsRequest.page_token][google.cloud.kms.v1.ListSingleTenantHsmInstanceProposalsRequest.page_token]
     * 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;
    }

    /**
     * The total number of
     * [SingleTenantHsmInstanceProposals][google.cloud.kms.v1.SingleTenantHsmInstanceProposal]
     * that matched the query.
     * This field is not populated if
     * [ListSingleTenantHsmInstanceProposalsRequest.filter][google.cloud.kms.v1.ListSingleTenantHsmInstanceProposalsRequest.filter]
     * is applied.
     *
     * Generated from protobuf field <code>int32 total_size = 3;</code>
     * @return int
     */
    public function getTotalSize()
    {
        return $this->total_size;
    }

    /**
     * The total number of
     * [SingleTenantHsmInstanceProposals][google.cloud.kms.v1.SingleTenantHsmInstanceProposal]
     * that matched the query.
     * This field is not populated if
     * [ListSingleTenantHsmInstanceProposalsRequest.filter][google.cloud.kms.v1.ListSingleTenantHsmInstanceProposalsRequest.filter]
     * is applied.
     *
     * Generated from protobuf field <code>int32 total_size = 3;</code>
     * @param int $var
     * @return $this
     */
    public function setTotalSize($var)
    {
        GPBUtil::checkInt32($var);
        $this->total_size = $var;

        return $this;
    }

}

