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

namespace Google\Cloud\DatabaseCenter\V1beta;

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

/**
 * QueryIssuesResponse is the response containing a list of issues.
 *
 * Generated from protobuf message <code>google.cloud.databasecenter.v1beta.QueryIssuesResponse</code>
 */
class QueryIssuesResponse extends \Google\Protobuf\Internal\Message
{
    /**
     * List of issues and resource details.
     *
     * Generated from protobuf field <code>repeated .google.cloud.databasecenter.v1beta.DatabaseResourceIssue resource_issues = 1;</code>
     */
    private $resource_issues;
    /**
     * A token that 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;</code>
     */
    protected $next_page_token = '';
    /**
     * Unordered list. List of unreachable regions from where data could not be
     * retrieved.
     *
     * Generated from protobuf field <code>repeated string unreachable = 3 [(.google.api.field_behavior) = UNORDERED_LIST];</code>
     */
    private $unreachable;

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type \Google\Cloud\DatabaseCenter\V1beta\DatabaseResourceIssue[] $resource_issues
     *           List of issues and resource details.
     *     @type string $next_page_token
     *           A token that can be sent as `page_token` to retrieve the next page.
     *           If this field is omitted, there are no subsequent pages.
     *     @type string[] $unreachable
     *           Unordered list. List of unreachable regions from where data could not be
     *           retrieved.
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\Google\Cloud\Databasecenter\V1Beta\Service::initOnce();
        parent::__construct($data);
    }

    /**
     * List of issues and resource details.
     *
     * Generated from protobuf field <code>repeated .google.cloud.databasecenter.v1beta.DatabaseResourceIssue resource_issues = 1;</code>
     * @return RepeatedField<\Google\Cloud\DatabaseCenter\V1beta\DatabaseResourceIssue>
     */
    public function getResourceIssues()
    {
        return $this->resource_issues;
    }

    /**
     * List of issues and resource details.
     *
     * Generated from protobuf field <code>repeated .google.cloud.databasecenter.v1beta.DatabaseResourceIssue resource_issues = 1;</code>
     * @param \Google\Cloud\DatabaseCenter\V1beta\DatabaseResourceIssue[] $var
     * @return $this
     */
    public function setResourceIssues($var)
    {
        $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\DatabaseCenter\V1beta\DatabaseResourceIssue::class);
        $this->resource_issues = $arr;

        return $this;
    }

    /**
     * A token that 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;</code>
     * @return string
     */
    public function getNextPageToken()
    {
        return $this->next_page_token;
    }

    /**
     * A token that 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;</code>
     * @param string $var
     * @return $this
     */
    public function setNextPageToken($var)
    {
        GPBUtil::checkString($var, True);
        $this->next_page_token = $var;

        return $this;
    }

    /**
     * Unordered list. List of unreachable regions from where data could not be
     * retrieved.
     *
     * Generated from protobuf field <code>repeated string unreachable = 3 [(.google.api.field_behavior) = UNORDERED_LIST];</code>
     * @return RepeatedField<string>
     */
    public function getUnreachable()
    {
        return $this->unreachable;
    }

    /**
     * Unordered list. List of unreachable regions from where data could not be
     * retrieved.
     *
     * Generated from protobuf field <code>repeated string unreachable = 3 [(.google.api.field_behavior) = UNORDERED_LIST];</code>
     * @param string[] $var
     * @return $this
     */
    public function setUnreachable($var)
    {
        $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING);
        $this->unreachable = $arr;

        return $this;
    }

}

