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

namespace Google\Cloud\AppEngine\V1;

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

/**
 * Request message for `Firewall.ListIngressRules`.
 *
 * Generated from protobuf message <code>google.appengine.v1.ListIngressRulesRequest</code>
 */
class ListIngressRulesRequest extends \Google\Protobuf\Internal\Message
{
    /**
     * Name of the Firewall collection to retrieve.
     * Example: `apps/myapp/firewall/ingressRules`.
     *
     * Generated from protobuf field <code>string parent = 1;</code>
     */
    private $parent = '';
    /**
     * Maximum results to return per page.
     *
     * Generated from protobuf field <code>int32 page_size = 2;</code>
     */
    private $page_size = 0;
    /**
     * Continuation token for fetching the next page of results.
     *
     * Generated from protobuf field <code>string page_token = 3;</code>
     */
    private $page_token = '';
    /**
     * A valid IP Address. If set, only rules matching this address will be
     * returned. The first returned rule will be the rule that fires on requests
     * from this IP.
     *
     * Generated from protobuf field <code>string matching_address = 4;</code>
     */
    private $matching_address = '';

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type string $parent
     *           Name of the Firewall collection to retrieve.
     *           Example: `apps/myapp/firewall/ingressRules`.
     *     @type int $page_size
     *           Maximum results to return per page.
     *     @type string $page_token
     *           Continuation token for fetching the next page of results.
     *     @type string $matching_address
     *           A valid IP Address. If set, only rules matching this address will be
     *           returned. The first returned rule will be the rule that fires on requests
     *           from this IP.
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\Google\Appengine\V1\Appengine::initOnce();
        parent::__construct($data);
    }

    /**
     * Name of the Firewall collection to retrieve.
     * Example: `apps/myapp/firewall/ingressRules`.
     *
     * Generated from protobuf field <code>string parent = 1;</code>
     * @return string
     */
    public function getParent()
    {
        return $this->parent;
    }

    /**
     * Name of the Firewall collection to retrieve.
     * Example: `apps/myapp/firewall/ingressRules`.
     *
     * Generated from protobuf field <code>string parent = 1;</code>
     * @param string $var
     * @return $this
     */
    public function setParent($var)
    {
        GPBUtil::checkString($var, True);
        $this->parent = $var;

        return $this;
    }

    /**
     * Maximum results to return per page.
     *
     * Generated from protobuf field <code>int32 page_size = 2;</code>
     * @return int
     */
    public function getPageSize()
    {
        return $this->page_size;
    }

    /**
     * Maximum results to return per page.
     *
     * Generated from protobuf field <code>int32 page_size = 2;</code>
     * @param int $var
     * @return $this
     */
    public function setPageSize($var)
    {
        GPBUtil::checkInt32($var);
        $this->page_size = $var;

        return $this;
    }

    /**
     * Continuation token for fetching the next page of results.
     *
     * Generated from protobuf field <code>string page_token = 3;</code>
     * @return string
     */
    public function getPageToken()
    {
        return $this->page_token;
    }

    /**
     * Continuation token for fetching the next page of results.
     *
     * Generated from protobuf field <code>string page_token = 3;</code>
     * @param string $var
     * @return $this
     */
    public function setPageToken($var)
    {
        GPBUtil::checkString($var, True);
        $this->page_token = $var;

        return $this;
    }

    /**
     * A valid IP Address. If set, only rules matching this address will be
     * returned. The first returned rule will be the rule that fires on requests
     * from this IP.
     *
     * Generated from protobuf field <code>string matching_address = 4;</code>
     * @return string
     */
    public function getMatchingAddress()
    {
        return $this->matching_address;
    }

    /**
     * A valid IP Address. If set, only rules matching this address will be
     * returned. The first returned rule will be the rule that fires on requests
     * from this IP.
     *
     * Generated from protobuf field <code>string matching_address = 4;</code>
     * @param string $var
     * @return $this
     */
    public function setMatchingAddress($var)
    {
        GPBUtil::checkString($var, True);
        $this->matching_address = $var;

        return $this;
    }

}

