1<?php
2/*
3 * Copyright 2014 Google Inc.
4 *
5 * Licensed under the Apache License, Version 2.0 (the "License"); you may not
6 * use this file except in compliance with the License. You may obtain a copy of
7 * the License at
8 *
9 * http://www.apache.org/licenses/LICENSE-2.0
10 *
11 * Unless required by applicable law or agreed to in writing, software
12 * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
13 * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
14 * License for the specific language governing permissions and limitations under
15 * the License.
16 */
17
18namespace Google\Service\Compute;
19
20class PathMatcher extends \Google\Collection
21{
22  protected $collection_key = 'routeRules';
23  protected $defaultRouteActionType = HttpRouteAction::class;
24  protected $defaultRouteActionDataType = '';
25  /**
26   * @var string
27   */
28  public $defaultService;
29  protected $defaultUrlRedirectType = HttpRedirectAction::class;
30  protected $defaultUrlRedirectDataType = '';
31  /**
32   * @var string
33   */
34  public $description;
35  protected $headerActionType = HttpHeaderAction::class;
36  protected $headerActionDataType = '';
37  /**
38   * @var string
39   */
40  public $name;
41  protected $pathRulesType = PathRule::class;
42  protected $pathRulesDataType = 'array';
43  protected $routeRulesType = HttpRouteRule::class;
44  protected $routeRulesDataType = 'array';
45
46  /**
47   * @param HttpRouteAction
48   */
49  public function setDefaultRouteAction(HttpRouteAction $defaultRouteAction)
50  {
51    $this->defaultRouteAction = $defaultRouteAction;
52  }
53  /**
54   * @return HttpRouteAction
55   */
56  public function getDefaultRouteAction()
57  {
58    return $this->defaultRouteAction;
59  }
60  /**
61   * @param string
62   */
63  public function setDefaultService($defaultService)
64  {
65    $this->defaultService = $defaultService;
66  }
67  /**
68   * @return string
69   */
70  public function getDefaultService()
71  {
72    return $this->defaultService;
73  }
74  /**
75   * @param HttpRedirectAction
76   */
77  public function setDefaultUrlRedirect(HttpRedirectAction $defaultUrlRedirect)
78  {
79    $this->defaultUrlRedirect = $defaultUrlRedirect;
80  }
81  /**
82   * @return HttpRedirectAction
83   */
84  public function getDefaultUrlRedirect()
85  {
86    return $this->defaultUrlRedirect;
87  }
88  /**
89   * @param string
90   */
91  public function setDescription($description)
92  {
93    $this->description = $description;
94  }
95  /**
96   * @return string
97   */
98  public function getDescription()
99  {
100    return $this->description;
101  }
102  /**
103   * @param HttpHeaderAction
104   */
105  public function setHeaderAction(HttpHeaderAction $headerAction)
106  {
107    $this->headerAction = $headerAction;
108  }
109  /**
110   * @return HttpHeaderAction
111   */
112  public function getHeaderAction()
113  {
114    return $this->headerAction;
115  }
116  /**
117   * @param string
118   */
119  public function setName($name)
120  {
121    $this->name = $name;
122  }
123  /**
124   * @return string
125   */
126  public function getName()
127  {
128    return $this->name;
129  }
130  /**
131   * @param PathRule[]
132   */
133  public function setPathRules($pathRules)
134  {
135    $this->pathRules = $pathRules;
136  }
137  /**
138   * @return PathRule[]
139   */
140  public function getPathRules()
141  {
142    return $this->pathRules;
143  }
144  /**
145   * @param HttpRouteRule[]
146   */
147  public function setRouteRules($routeRules)
148  {
149    $this->routeRules = $routeRules;
150  }
151  /**
152   * @return HttpRouteRule[]
153   */
154  public function getRouteRules()
155  {
156    return $this->routeRules;
157  }
158}
159
160// Adding a class alias for backwards compatibility with the previous class name.
161class_alias(PathMatcher::class, 'Google_Service_Compute_PathMatcher');
162