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

namespace Google\Cloud\BackupDR\V1;

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

/**
 * Response for the FetchBackupPlanAssociationsForResourceType method.
 *
 * Generated from protobuf message <code>google.cloud.backupdr.v1.FetchBackupPlanAssociationsForResourceTypeResponse</code>
 */
class FetchBackupPlanAssociationsForResourceTypeResponse extends \Google\Protobuf\Internal\Message
{
    /**
     * Output only. The BackupPlanAssociations from the specified parent.
     *
     * Generated from protobuf field <code>repeated .google.cloud.backupdr.v1.BackupPlanAssociation backup_plan_associations = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
     */
    private $backup_plan_associations;
    /**
     * Output only. A token, which can be sent as `page_token` to retrieve the
     * next page. If this field is omitted, there are no subsequent pages.
     *
     * Generated from protobuf field <code>string next_page_token = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
     */
    protected $next_page_token = '';

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type array<\Google\Cloud\BackupDR\V1\BackupPlanAssociation>|\Google\Protobuf\Internal\RepeatedField $backup_plan_associations
     *           Output only. The BackupPlanAssociations from the specified parent.
     *     @type string $next_page_token
     *           Output only. A token, which can be sent as `page_token` to retrieve the
     *           next page. If this field is omitted, there are no subsequent pages.
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\Google\Cloud\Backupdr\V1\Backupplanassociation::initOnce();
        parent::__construct($data);
    }

    /**
     * Output only. The BackupPlanAssociations from the specified parent.
     *
     * Generated from protobuf field <code>repeated .google.cloud.backupdr.v1.BackupPlanAssociation backup_plan_associations = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
     * @return \Google\Protobuf\Internal\RepeatedField
     */
    public function getBackupPlanAssociations()
    {
        return $this->backup_plan_associations;
    }

    /**
     * Output only. The BackupPlanAssociations from the specified parent.
     *
     * Generated from protobuf field <code>repeated .google.cloud.backupdr.v1.BackupPlanAssociation backup_plan_associations = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
     * @param array<\Google\Cloud\BackupDR\V1\BackupPlanAssociation>|\Google\Protobuf\Internal\RepeatedField $var
     * @return $this
     */
    public function setBackupPlanAssociations($var)
    {
        $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\BackupDR\V1\BackupPlanAssociation::class);
        $this->backup_plan_associations = $arr;

        return $this;
    }

    /**
     * Output only. A token, which can be sent as `page_token` to retrieve the
     * next page. If this field is omitted, there are no subsequent pages.
     *
     * Generated from protobuf field <code>string next_page_token = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
     * @return string
     */
    public function getNextPageToken()
    {
        return $this->next_page_token;
    }

    /**
     * Output only. A token, which can be sent as `page_token` to retrieve the
     * next page. If this field is omitted, there are no subsequent pages.
     *
     * Generated from protobuf field <code>string next_page_token = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
     * @param string $var
     * @return $this
     */
    public function setNextPageToken($var)
    {
        GPBUtil::checkString($var, True);
        $this->next_page_token = $var;

        return $this;
    }

}

