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 |
|
---|
18 | namespace Google\Service\Networkconnectivity;
|
---|
19 |
|
---|
20 | class HttpRequest extends \Google\Model
|
---|
21 | {
|
---|
22 | public $cacheFillBytes;
|
---|
23 | public $cacheHit;
|
---|
24 | public $cacheLookup;
|
---|
25 | public $cacheValidatedWithOriginServer;
|
---|
26 | public $latency;
|
---|
27 | public $protocol;
|
---|
28 | public $referer;
|
---|
29 | public $remoteIp;
|
---|
30 | public $requestMethod;
|
---|
31 | public $requestSize;
|
---|
32 | public $requestUrl;
|
---|
33 | public $responseSize;
|
---|
34 | public $serverIp;
|
---|
35 | public $status;
|
---|
36 | public $userAgent;
|
---|
37 |
|
---|
38 | public function setCacheFillBytes($cacheFillBytes)
|
---|
39 | {
|
---|
40 | $this->cacheFillBytes = $cacheFillBytes;
|
---|
41 | }
|
---|
42 | public function getCacheFillBytes()
|
---|
43 | {
|
---|
44 | return $this->cacheFillBytes;
|
---|
45 | }
|
---|
46 | public function setCacheHit($cacheHit)
|
---|
47 | {
|
---|
48 | $this->cacheHit = $cacheHit;
|
---|
49 | }
|
---|
50 | public function getCacheHit()
|
---|
51 | {
|
---|
52 | return $this->cacheHit;
|
---|
53 | }
|
---|
54 | public function setCacheLookup($cacheLookup)
|
---|
55 | {
|
---|
56 | $this->cacheLookup = $cacheLookup;
|
---|
57 | }
|
---|
58 | public function getCacheLookup()
|
---|
59 | {
|
---|
60 | return $this->cacheLookup;
|
---|
61 | }
|
---|
62 | public function setCacheValidatedWithOriginServer($cacheValidatedWithOriginServer)
|
---|
63 | {
|
---|
64 | $this->cacheValidatedWithOriginServer = $cacheValidatedWithOriginServer;
|
---|
65 | }
|
---|
66 | public function getCacheValidatedWithOriginServer()
|
---|
67 | {
|
---|
68 | return $this->cacheValidatedWithOriginServer;
|
---|
69 | }
|
---|
70 | public function setLatency($latency)
|
---|
71 | {
|
---|
72 | $this->latency = $latency;
|
---|
73 | }
|
---|
74 | public function getLatency()
|
---|
75 | {
|
---|
76 | return $this->latency;
|
---|
77 | }
|
---|
78 | public function setProtocol($protocol)
|
---|
79 | {
|
---|
80 | $this->protocol = $protocol;
|
---|
81 | }
|
---|
82 | public function getProtocol()
|
---|
83 | {
|
---|
84 | return $this->protocol;
|
---|
85 | }
|
---|
86 | public function setReferer($referer)
|
---|
87 | {
|
---|
88 | $this->referer = $referer;
|
---|
89 | }
|
---|
90 | public function getReferer()
|
---|
91 | {
|
---|
92 | return $this->referer;
|
---|
93 | }
|
---|
94 | public function setRemoteIp($remoteIp)
|
---|
95 | {
|
---|
96 | $this->remoteIp = $remoteIp;
|
---|
97 | }
|
---|
98 | public function getRemoteIp()
|
---|
99 | {
|
---|
100 | return $this->remoteIp;
|
---|
101 | }
|
---|
102 | public function setRequestMethod($requestMethod)
|
---|
103 | {
|
---|
104 | $this->requestMethod = $requestMethod;
|
---|
105 | }
|
---|
106 | public function getRequestMethod()
|
---|
107 | {
|
---|
108 | return $this->requestMethod;
|
---|
109 | }
|
---|
110 | public function setRequestSize($requestSize)
|
---|
111 | {
|
---|
112 | $this->requestSize = $requestSize;
|
---|
113 | }
|
---|
114 | public function getRequestSize()
|
---|
115 | {
|
---|
116 | return $this->requestSize;
|
---|
117 | }
|
---|
118 | public function setRequestUrl($requestUrl)
|
---|
119 | {
|
---|
120 | $this->requestUrl = $requestUrl;
|
---|
121 | }
|
---|
122 | public function getRequestUrl()
|
---|
123 | {
|
---|
124 | return $this->requestUrl;
|
---|
125 | }
|
---|
126 | public function setResponseSize($responseSize)
|
---|
127 | {
|
---|
128 | $this->responseSize = $responseSize;
|
---|
129 | }
|
---|
130 | public function getResponseSize()
|
---|
131 | {
|
---|
132 | return $this->responseSize;
|
---|
133 | }
|
---|
134 | public function setServerIp($serverIp)
|
---|
135 | {
|
---|
136 | $this->serverIp = $serverIp;
|
---|
137 | }
|
---|
138 | public function getServerIp()
|
---|
139 | {
|
---|
140 | return $this->serverIp;
|
---|
141 | }
|
---|
142 | public function setStatus($status)
|
---|
143 | {
|
---|
144 | $this->status = $status;
|
---|
145 | }
|
---|
146 | public function getStatus()
|
---|
147 | {
|
---|
148 | return $this->status;
|
---|
149 | }
|
---|
150 | public function setUserAgent($userAgent)
|
---|
151 | {
|
---|
152 | $this->userAgent = $userAgent;
|
---|
153 | }
|
---|
154 | public function getUserAgent()
|
---|
155 | {
|
---|
156 | return $this->userAgent;
|
---|
157 | }
|
---|
158 | }
|
---|
159 |
|
---|
160 | // Adding a class alias for backwards compatibility with the previous class name.
|
---|
161 | class_alias(HttpRequest::class, 'Google_Service_Networkconnectivity_HttpRequest');
|
---|