| 1 |
<?php |
| 2 |
/* |
| 3 |
* Licensed under the Apache License, Version 2.0 (the "License"); you may not |
| 4 |
* use this file except in compliance with the License. You may obtain a copy of |
| 5 |
* the License at |
| 6 |
* |
| 7 |
* http://www.apache.org/licenses/LICENSE-2.0 |
| 8 |
* |
| 9 |
* Unless required by applicable law or agreed to in writing, software |
| 10 |
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT |
| 11 |
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the |
| 12 |
* License for the specific language governing permissions and limitations under |
| 13 |
* the License. |
| 14 |
*/ |
| 15 |
|
| 16 |
/** |
| 17 |
* Service definition for Customsearch (v1). |
| 18 |
* |
| 19 |
* <p> |
| 20 |
* Lets you search over a website or collection of websites</p> |
| 21 |
* |
| 22 |
* <p> |
| 23 |
* For more information about this service, see the API |
| 24 |
* <a href="https://developers.google.com/custom-search/v1/using_rest" target="_blank">Documentation</a> |
| 25 |
* </p> |
| 26 |
* |
| 27 |
* @author Google, Inc. |
| 28 |
*/ |
| 29 |
class Google_Service_Customsearch extends Google_Service |
| 30 |
{ |
| 31 |
|
| 32 |
|
| 33 |
public $cse; |
| 34 |
|
| 35 |
|
| 36 |
/** |
| 37 |
* Constructs the internal representation of the Customsearch service. |
| 38 |
* |
| 39 |
* @param Google_Client $client |
| 40 |
*/ |
| 41 |
public function __construct(Google_Client $client) |
| 42 |
{ |
| 43 |
parent::__construct($client); |
| 44 |
$this->rootUrl = 'https://www.googleapis.com/'; |
| 45 |
$this->servicePath = 'customsearch/'; |
| 46 |
$this->version = 'v1'; |
| 47 |
$this->serviceName = 'customsearch'; |
| 48 |
|
| 49 |
$this->cse = new Google_Service_Customsearch_Cse_Resource( |
| 50 |
$this, |
| 51 |
$this->serviceName, |
| 52 |
'cse', |
| 53 |
array( |
| 54 |
'methods' => array( |
| 55 |
'list' => array( |
| 56 |
'path' => 'v1', |
| 57 |
'httpMethod' => 'GET', |
| 58 |
'parameters' => array( |
| 59 |
'q' => array( |
| 60 |
'location' => 'query', |
| 61 |
'type' => 'string', |
| 62 |
'required' => true, |
| 63 |
), |
| 64 |
'c2coff' => array( |
| 65 |
'location' => 'query', |
| 66 |
'type' => 'string', |
| 67 |
), |
| 68 |
'cr' => array( |
| 69 |
'location' => 'query', |
| 70 |
'type' => 'string', |
| 71 |
), |
| 72 |
'cref' => array( |
| 73 |
'location' => 'query', |
| 74 |
'type' => 'string', |
| 75 |
), |
| 76 |
'cx' => array( |
| 77 |
'location' => 'query', |
| 78 |
'type' => 'string', |
| 79 |
), |
| 80 |
'dateRestrict' => array( |
| 81 |
'location' => 'query', |
| 82 |
'type' => 'string', |
| 83 |
), |
| 84 |
'exactTerms' => array( |
| 85 |
'location' => 'query', |
| 86 |
'type' => 'string', |
| 87 |
), |
| 88 |
'excludeTerms' => array( |
| 89 |
'location' => 'query', |
| 90 |
'type' => 'string', |
| 91 |
), |
| 92 |
'fileType' => array( |
| 93 |
'location' => 'query', |
| 94 |
'type' => 'string', |
| 95 |
), |
| 96 |
'filter' => array( |
| 97 |
'location' => 'query', |
| 98 |
'type' => 'string', |
| 99 |
), |
| 100 |
'gl' => array( |
| 101 |
'location' => 'query', |
| 102 |
'type' => 'string', |
| 103 |
), |
| 104 |
'googlehost' => array( |
| 105 |
'location' => 'query', |
| 106 |
'type' => 'string', |
| 107 |
), |
| 108 |
'highRange' => array( |
| 109 |
'location' => 'query', |
| 110 |
'type' => 'string', |
| 111 |
), |
| 112 |
'hl' => array( |
| 113 |
'location' => 'query', |
| 114 |
'type' => 'string', |
| 115 |
), |
| 116 |
'hq' => array( |
| 117 |
'location' => 'query', |
| 118 |
'type' => 'string', |
| 119 |
), |
| 120 |
'imgColorType' => array( |
| 121 |
'location' => 'query', |
| 122 |
'type' => 'string', |
| 123 |
), |
| 124 |
'imgDominantColor' => array( |
| 125 |
'location' => 'query', |
| 126 |
'type' => 'string', |
| 127 |
), |
| 128 |
'imgSize' => array( |
| 129 |
'location' => 'query', |
| 130 |
'type' => 'string', |
| 131 |
), |
| 132 |
'imgType' => array( |
| 133 |
'location' => 'query', |
| 134 |
'type' => 'string', |
| 135 |
), |
| 136 |
'linkSite' => array( |
| 137 |
'location' => 'query', |
| 138 |
'type' => 'string', |
| 139 |
), |
| 140 |
'lowRange' => array( |
| 141 |
'location' => 'query', |
| 142 |
'type' => 'string', |
| 143 |
), |
| 144 |
'lr' => array( |
| 145 |
'location' => 'query', |
| 146 |
'type' => 'string', |
| 147 |
), |
| 148 |
'num' => array( |
| 149 |
'location' => 'query', |
| 150 |
'type' => 'integer', |
| 151 |
), |
| 152 |
'orTerms' => array( |
| 153 |
'location' => 'query', |
| 154 |
'type' => 'string', |
| 155 |
), |
| 156 |
'relatedSite' => array( |
| 157 |
'location' => 'query', |
| 158 |
'type' => 'string', |
| 159 |
), |
| 160 |
'rights' => array( |
| 161 |
'location' => 'query', |
| 162 |
'type' => 'string', |
| 163 |
), |
| 164 |
'safe' => array( |
| 165 |
'location' => 'query', |
| 166 |
'type' => 'string', |
| 167 |
), |
| 168 |
'searchType' => array( |
| 169 |
'location' => 'query', |
| 170 |
'type' => 'string', |
| 171 |
), |
| 172 |
'siteSearch' => array( |
| 173 |
'location' => 'query', |
| 174 |
'type' => 'string', |
| 175 |
), |
| 176 |
'siteSearchFilter' => array( |
| 177 |
'location' => 'query', |
| 178 |
'type' => 'string', |
| 179 |
), |
| 180 |
'sort' => array( |
| 181 |
'location' => 'query', |
| 182 |
'type' => 'string', |
| 183 |
), |
| 184 |
'start' => array( |
| 185 |
'location' => 'query', |
| 186 |
'type' => 'integer', |
| 187 |
), |
| 188 |
), |
| 189 |
), |
| 190 |
) |
| 191 |
) |
| 192 |
); |
| 193 |
} |
| 194 |
} |
| 195 |
|
| 196 |
|
| 197 |
/** |
| 198 |
* The "cse" collection of methods. |
| 199 |
* Typical usage is: |
| 200 |
* <code> |
| 201 |
* $customsearchService = new Google_Service_Customsearch(...); |
| 202 |
* $cse = $customsearchService->cse; |
| 203 |
* </code> |
| 204 |
*/ |
| 205 |
class Google_Service_Customsearch_Cse_Resource extends Google_Service_Resource |
| 206 |
{ |
| 207 |
|
| 208 |
/** |
| 209 |
* Returns metadata about the search performed, metadata about the custom search |
| 210 |
* engine used for the search, and the search results. (cse.listCse) |
| 211 |
* |
| 212 |
* @param string $q Query |
| 213 |
* @param array $optParams Optional parameters. |
| 214 |
* |
| 215 |
* @opt_param string c2coff Turns off the translation between zh-CN and zh-TW. |
| 216 |
* @opt_param string cr Country restrict(s). |
| 217 |
* @opt_param string cref The URL of a linked custom search engine |
| 218 |
* @opt_param string cx The custom search engine ID to scope this search query |
| 219 |
* @opt_param string dateRestrict Specifies all search results are from a time |
| 220 |
* period |
| 221 |
* @opt_param string exactTerms Identifies a phrase that all documents in the |
| 222 |
* search results must contain |
| 223 |
* @opt_param string excludeTerms Identifies a word or phrase that should not |
| 224 |
* appear in any documents in the search results |
| 225 |
* @opt_param string fileType Returns images of a specified type. Some of the |
| 226 |
* allowed values are: bmp, gif, png, jpg, svg, pdf, ... |
| 227 |
* @opt_param string filter Controls turning on or off the duplicate content |
| 228 |
* filter. |
| 229 |
* @opt_param string gl Geolocation of end user. |
| 230 |
* @opt_param string googlehost The local Google domain to use to perform the |
| 231 |
* search. |
| 232 |
* @opt_param string highRange Creates a range in form as_nlo value..as_nhi |
| 233 |
* value and attempts to append it to query |
| 234 |
* @opt_param string hl Sets the user interface language. |
| 235 |
* @opt_param string hq Appends the extra query terms to the query. |
| 236 |
* @opt_param string imgColorType Returns black and white, grayscale, or color |
| 237 |
* images: mono, gray, and color. |
| 238 |
* @opt_param string imgDominantColor Returns images of a specific dominant |
| 239 |
* color: yellow, green, teal, blue, purple, pink, white, gray, black and brown. |
| 240 |
* @opt_param string imgSize Returns images of a specified size, where size can |
| 241 |
* be one of: icon, small, medium, large, xlarge, xxlarge, and huge. |
| 242 |
* @opt_param string imgType Returns images of a type, which can be one of: |
| 243 |
* clipart, face, lineart, news, and photo. |
| 244 |
* @opt_param string linkSite Specifies that all search results should contain a |
| 245 |
* link to a particular URL |
| 246 |
* @opt_param string lowRange Creates a range in form as_nlo value..as_nhi value |
| 247 |
* and attempts to append it to query |
| 248 |
* @opt_param string lr The language restriction for the search results |
| 249 |
* @opt_param string num Number of search results to return |
| 250 |
* @opt_param string orTerms Provides additional search terms to check for in a |
| 251 |
* document, where each document in the search results must contain at least one |
| 252 |
* of the additional search terms |
| 253 |
* @opt_param string relatedSite Specifies that all search results should be |
| 254 |
* pages that are related to the specified URL |
| 255 |
* @opt_param string rights Filters based on licensing. Supported values |
| 256 |
* include: cc_publicdomain, cc_attribute, cc_sharealike, cc_noncommercial, |
| 257 |
* cc_nonderived and combinations of these. |
| 258 |
* @opt_param string safe Search safety level |
| 259 |
* @opt_param string searchType Specifies the search type: image. |
| 260 |
* @opt_param string siteSearch Specifies all search results should be pages |
| 261 |
* from a given site |
| 262 |
* @opt_param string siteSearchFilter Controls whether to include or exclude |
| 263 |
* results from the site named in the as_sitesearch parameter |
| 264 |
* @opt_param string sort The sort expression to apply to the results |
| 265 |
* @opt_param string start The index of the first result to return |
| 266 |
* @return Google_Service_Customsearch_Search |
| 267 |
*/ |
| 268 |
public function listCse($q, $optParams = array()) |
| 269 |
{ |
| 270 |
$params = array('q' => $q); |
| 271 |
$params = array_merge($params, $optParams); |
| 272 |
return $this->call('list', array($params), "Google_Service_Customsearch_Search"); |
| 273 |
} |
| 274 |
} |
| 275 |
|
| 276 |
|
| 277 |
|
| 278 |
|
| 279 |
class Google_Service_Customsearch_Context extends Google_Collection |
| 280 |
{ |
| 281 |
protected $collection_key = 'facets'; |
| 282 |
protected $internal_gapi_mappings = array( |
| 283 |
); |
| 284 |
protected $facetsType = 'Google_Service_Customsearch_ContextFacets'; |
| 285 |
protected $facetsDataType = 'array'; |
| 286 |
public $title; |
| 287 |
|
| 288 |
|
| 289 |
public function setFacets($facets) |
| 290 |
{ |
| 291 |
$this->facets = $facets; |
| 292 |
} |
| 293 |
public function getFacets() |
| 294 |
{ |
| 295 |
return $this->facets; |
| 296 |
} |
| 297 |
public function setTitle($title) |
| 298 |
{ |
| 299 |
$this->title = $title; |
| 300 |
} |
| 301 |
public function getTitle() |
| 302 |
{ |
| 303 |
return $this->title; |
| 304 |
} |
| 305 |
} |
| 306 |
|
| 307 |
class Google_Service_Customsearch_ContextFacets extends Google_Model |
| 308 |
{ |
| 309 |
protected $internal_gapi_mappings = array( |
| 310 |
"labelWithOp" => "label_with_op", |
| 311 |
); |
| 312 |
public $anchor; |
| 313 |
public $label; |
| 314 |
public $labelWithOp; |
| 315 |
|
| 316 |
|
| 317 |
public function setAnchor($anchor) |
| 318 |
{ |
| 319 |
$this->anchor = $anchor; |
| 320 |
} |
| 321 |
public function getAnchor() |
| 322 |
{ |
| 323 |
return $this->anchor; |
| 324 |
} |
| 325 |
public function setLabel($label) |
| 326 |
{ |
| 327 |
$this->label = $label; |
| 328 |
} |
| 329 |
public function getLabel() |
| 330 |
{ |
| 331 |
return $this->label; |
| 332 |
} |
| 333 |
public function setLabelWithOp($labelWithOp) |
| 334 |
{ |
| 335 |
$this->labelWithOp = $labelWithOp; |
| 336 |
} |
| 337 |
public function getLabelWithOp() |
| 338 |
{ |
| 339 |
return $this->labelWithOp; |
| 340 |
} |
| 341 |
} |
| 342 |
|
| 343 |
class Google_Service_Customsearch_Promotion extends Google_Collection |
| 344 |
{ |
| 345 |
protected $collection_key = 'bodyLines'; |
| 346 |
protected $internal_gapi_mappings = array( |
| 347 |
); |
| 348 |
protected $bodyLinesType = 'Google_Service_Customsearch_PromotionBodyLines'; |
| 349 |
protected $bodyLinesDataType = 'array'; |
| 350 |
public $displayLink; |
| 351 |
public $htmlTitle; |
| 352 |
protected $imageType = 'Google_Service_Customsearch_PromotionImage'; |
| 353 |
protected $imageDataType = ''; |
| 354 |
public $link; |
| 355 |
public $title; |
| 356 |
|
| 357 |
|
| 358 |
public function setBodyLines($bodyLines) |
| 359 |
{ |
| 360 |
$this->bodyLines = $bodyLines; |
| 361 |
} |
| 362 |
public function getBodyLines() |
| 363 |
{ |
| 364 |
return $this->bodyLines; |
| 365 |
} |
| 366 |
public function setDisplayLink($displayLink) |
| 367 |
{ |
| 368 |
$this->displayLink = $displayLink; |
| 369 |
} |
| 370 |
public function getDisplayLink() |
| 371 |
{ |
| 372 |
return $this->displayLink; |
| 373 |
} |
| 374 |
public function setHtmlTitle($htmlTitle) |
| 375 |
{ |
| 376 |
$this->htmlTitle = $htmlTitle; |
| 377 |
} |
| 378 |
public function getHtmlTitle() |
| 379 |
{ |
| 380 |
return $this->htmlTitle; |
| 381 |
} |
| 382 |
public function setImage(Google_Service_Customsearch_PromotionImage $image) |
| 383 |
{ |
| 384 |
$this->image = $image; |
| 385 |
} |
| 386 |
public function getImage() |
| 387 |
{ |
| 388 |
return $this->image; |
| 389 |
} |
| 390 |
public function setLink($link) |
| 391 |
{ |
| 392 |
$this->link = $link; |
| 393 |
} |
| 394 |
public function getLink() |
| 395 |
{ |
| 396 |
return $this->link; |
| 397 |
} |
| 398 |
public function setTitle($title) |
| 399 |
{ |
| 400 |
$this->title = $title; |
| 401 |
} |
| 402 |
public function getTitle() |
| 403 |
{ |
| 404 |
return $this->title; |
| 405 |
} |
| 406 |
} |
| 407 |
|
| 408 |
class Google_Service_Customsearch_PromotionBodyLines extends Google_Model |
| 409 |
{ |
| 410 |
protected $internal_gapi_mappings = array( |
| 411 |
); |
| 412 |
public $htmlTitle; |
| 413 |
public $link; |
| 414 |
public $title; |
| 415 |
public $url; |
| 416 |
|
| 417 |
|
| 418 |
public function setHtmlTitle($htmlTitle) |
| 419 |
{ |
| 420 |
$this->htmlTitle = $htmlTitle; |
| 421 |
} |
| 422 |
public function getHtmlTitle() |
| 423 |
{ |
| 424 |
return $this->htmlTitle; |
| 425 |
} |
| 426 |
public function setLink($link) |
| 427 |
{ |
| 428 |
$this->link = $link; |
| 429 |
} |
| 430 |
public function getLink() |
| 431 |
{ |
| 432 |
return $this->link; |
| 433 |
} |
| 434 |
public function setTitle($title) |
| 435 |
{ |
| 436 |
$this->title = $title; |
| 437 |
} |
| 438 |
public function getTitle() |
| 439 |
{ |
| 440 |
return $this->title; |
| 441 |
} |
| 442 |
public function setUrl($url) |
| 443 |
{ |
| 444 |
$this->url = $url; |
| 445 |
} |
| 446 |
public function getUrl() |
| 447 |
{ |
| 448 |
return $this->url; |
| 449 |
} |
| 450 |
} |
| 451 |
|
| 452 |
class Google_Service_Customsearch_PromotionImage extends Google_Model |
| 453 |
{ |
| 454 |
protected $internal_gapi_mappings = array( |
| 455 |
); |
| 456 |
public $height; |
| 457 |
public $source; |
| 458 |
public $width; |
| 459 |
|
| 460 |
|
| 461 |
public function setHeight($height) |
| 462 |
{ |
| 463 |
$this->height = $height; |
| 464 |
} |
| 465 |
public function getHeight() |
| 466 |
{ |
| 467 |
return $this->height; |
| 468 |
} |
| 469 |
public function setSource($source) |
| 470 |
{ |
| 471 |
$this->source = $source; |
| 472 |
} |
| 473 |
public function getSource() |
| 474 |
{ |
| 475 |
return $this->source; |
| 476 |
} |
| 477 |
public function setWidth($width) |
| 478 |
{ |
| 479 |
$this->width = $width; |
| 480 |
} |
| 481 |
public function getWidth() |
| 482 |
{ |
| 483 |
return $this->width; |
| 484 |
} |
| 485 |
} |
| 486 |
|
| 487 |
class Google_Service_Customsearch_Query extends Google_Model |
| 488 |
{ |
| 489 |
protected $internal_gapi_mappings = array( |
| 490 |
); |
| 491 |
public $count; |
| 492 |
public $cr; |
| 493 |
public $cref; |
| 494 |
public $cx; |
| 495 |
public $dateRestrict; |
| 496 |
public $disableCnTwTranslation; |
| 497 |
public $exactTerms; |
| 498 |
public $excludeTerms; |
| 499 |
public $fileType; |
| 500 |
public $filter; |
| 501 |
public $gl; |
| 502 |
public $googleHost; |
| 503 |
public $highRange; |
| 504 |
public $hl; |
| 505 |
public $hq; |
| 506 |
public $imgColorType; |
| 507 |
public $imgDominantColor; |
| 508 |
public $imgSize; |
| 509 |
public $imgType; |
| 510 |
public $inputEncoding; |
| 511 |
public $language; |
| 512 |
public $linkSite; |
| 513 |
public $lowRange; |
| 514 |
public $orTerms; |
| 515 |
public $outputEncoding; |
| 516 |
public $relatedSite; |
| 517 |
public $rights; |
| 518 |
public $safe; |
| 519 |
public $searchTerms; |
| 520 |
public $searchType; |
| 521 |
public $siteSearch; |
| 522 |
public $siteSearchFilter; |
| 523 |
public $sort; |
| 524 |
public $startIndex; |
| 525 |
public $startPage; |
| 526 |
public $title; |
| 527 |
public $totalResults; |
| 528 |
|
| 529 |
|
| 530 |
public function setCount($count) |
| 531 |
{ |
| 532 |
$this->count = $count; |
| 533 |
} |
| 534 |
public function getCount() |
| 535 |
{ |
| 536 |
return $this->count; |
| 537 |
} |
| 538 |
public function setCr($cr) |
| 539 |
{ |
| 540 |
$this->cr = $cr; |
| 541 |
} |
| 542 |
public function getCr() |
| 543 |
{ |
| 544 |
return $this->cr; |
| 545 |
} |
| 546 |
public function setCref($cref) |
| 547 |
{ |
| 548 |
$this->cref = $cref; |
| 549 |
} |
| 550 |
public function getCref() |
| 551 |
{ |
| 552 |
return $this->cref; |
| 553 |
} |
| 554 |
public function setCx($cx) |
| 555 |
{ |
| 556 |
$this->cx = $cx; |
| 557 |
} |
| 558 |
public function getCx() |
| 559 |
{ |
| 560 |
return $this->cx; |
| 561 |
} |
| 562 |
public function setDateRestrict($dateRestrict) |
| 563 |
{ |
| 564 |
$this->dateRestrict = $dateRestrict; |
| 565 |
} |
| 566 |
public function getDateRestrict() |
| 567 |
{ |
| 568 |
return $this->dateRestrict; |
| 569 |
} |
| 570 |
public function setDisableCnTwTranslation($disableCnTwTranslation) |
| 571 |
{ |
| 572 |
$this->disableCnTwTranslation = $disableCnTwTranslation; |
| 573 |
} |
| 574 |
public function getDisableCnTwTranslation() |
| 575 |
{ |
| 576 |
return $this->disableCnTwTranslation; |
| 577 |
} |
| 578 |
public function setExactTerms($exactTerms) |
| 579 |
{ |
| 580 |
$this->exactTerms = $exactTerms; |
| 581 |
} |
| 582 |
public function getExactTerms() |
| 583 |
{ |
| 584 |
return $this->exactTerms; |
| 585 |
} |
| 586 |
public function setExcludeTerms($excludeTerms) |
| 587 |
{ |
| 588 |
$this->excludeTerms = $excludeTerms; |
| 589 |
} |
| 590 |
public function getExcludeTerms() |
| 591 |
{ |
| 592 |
return $this->excludeTerms; |
| 593 |
} |
| 594 |
public function setFileType($fileType) |
| 595 |
{ |
| 596 |
$this->fileType = $fileType; |
| 597 |
} |
| 598 |
public function getFileType() |
| 599 |
{ |
| 600 |
return $this->fileType; |
| 601 |
} |
| 602 |
public function setFilter($filter) |
| 603 |
{ |
| 604 |
$this->filter = $filter; |
| 605 |
} |
| 606 |
public function getFilter() |
| 607 |
{ |
| 608 |
return $this->filter; |
| 609 |
} |
| 610 |
public function setGl($gl) |
| 611 |
{ |
| 612 |
$this->gl = $gl; |
| 613 |
} |
| 614 |
public function getGl() |
| 615 |
{ |
| 616 |
return $this->gl; |
| 617 |
} |
| 618 |
public function setGoogleHost($googleHost) |
| 619 |
{ |
| 620 |
$this->googleHost = $googleHost; |
| 621 |
} |
| 622 |
public function getGoogleHost() |
| 623 |
{ |
| 624 |
return $this->googleHost; |
| 625 |
} |
| 626 |
public function setHighRange($highRange) |
| 627 |
{ |
| 628 |
$this->highRange = $highRange; |
| 629 |
} |
| 630 |
public function getHighRange() |
| 631 |
{ |
| 632 |
return $this->highRange; |
| 633 |
} |
| 634 |
public function setHl($hl) |
| 635 |
{ |
| 636 |
$this->hl = $hl; |
| 637 |
} |
| 638 |
public function getHl() |
| 639 |
{ |
| 640 |
return $this->hl; |
| 641 |
} |
| 642 |
public function setHq($hq) |
| 643 |
{ |
| 644 |
$this->hq = $hq; |
| 645 |
} |
| 646 |
public function getHq() |
| 647 |
{ |
| 648 |
return $this->hq; |
| 649 |
} |
| 650 |
public function setImgColorType($imgColorType) |
| 651 |
{ |
| 652 |
$this->imgColorType = $imgColorType; |
| 653 |
} |
| 654 |
public function getImgColorType() |
| 655 |
{ |
| 656 |
return $this->imgColorType; |
| 657 |
} |
| 658 |
public function setImgDominantColor($imgDominantColor) |
| 659 |
{ |
| 660 |
$this->imgDominantColor = $imgDominantColor; |
| 661 |
} |
| 662 |
public function getImgDominantColor() |
| 663 |
{ |
| 664 |
return $this->imgDominantColor; |
| 665 |
} |
| 666 |
public function setImgSize($imgSize) |
| 667 |
{ |
| 668 |
$this->imgSize = $imgSize; |
| 669 |
} |
| 670 |
public function getImgSize() |
| 671 |
{ |
| 672 |
return $this->imgSize; |
| 673 |
} |
| 674 |
public function setImgType($imgType) |
| 675 |
{ |
| 676 |
$this->imgType = $imgType; |
| 677 |
} |
| 678 |
public function getImgType() |
| 679 |
{ |
| 680 |
return $this->imgType; |
| 681 |
} |
| 682 |
public function setInputEncoding($inputEncoding) |
| 683 |
{ |
| 684 |
$this->inputEncoding = $inputEncoding; |
| 685 |
} |
| 686 |
public function getInputEncoding() |
| 687 |
{ |
| 688 |
return $this->inputEncoding; |
| 689 |
} |
| 690 |
public function setLanguage($language) |
| 691 |
{ |
| 692 |
$this->language = $language; |
| 693 |
} |
| 694 |
public function getLanguage() |
| 695 |
{ |
| 696 |
return $this->language; |
| 697 |
} |
| 698 |
public function setLinkSite($linkSite) |
| 699 |
{ |
| 700 |
$this->linkSite = $linkSite; |
| 701 |
} |
| 702 |
public function getLinkSite() |
| 703 |
{ |
| 704 |
return $this->linkSite; |
| 705 |
} |
| 706 |
public function setLowRange($lowRange) |
| 707 |
{ |
| 708 |
$this->lowRange = $lowRange; |
| 709 |
} |
| 710 |
public function getLowRange() |
| 711 |
{ |
| 712 |
return $this->lowRange; |
| 713 |
} |
| 714 |
public function setOrTerms($orTerms) |
| 715 |
{ |
| 716 |
$this->orTerms = $orTerms; |
| 717 |
} |
| 718 |
public function getOrTerms() |
| 719 |
{ |
| 720 |
return $this->orTerms; |
| 721 |
} |
| 722 |
public function setOutputEncoding($outputEncoding) |
| 723 |
{ |
| 724 |
$this->outputEncoding = $outputEncoding; |
| 725 |
} |
| 726 |
public function getOutputEncoding() |
| 727 |
{ |
| 728 |
return $this->outputEncoding; |
| 729 |
} |
| 730 |
public function setRelatedSite($relatedSite) |
| 731 |
{ |
| 732 |
$this->relatedSite = $relatedSite; |
| 733 |
} |
| 734 |
public function getRelatedSite() |
| 735 |
{ |
| 736 |
return $this->relatedSite; |
| 737 |
} |
| 738 |
public function setRights($rights) |
| 739 |
{ |
| 740 |
$this->rights = $rights; |
| 741 |
} |
| 742 |
public function getRights() |
| 743 |
{ |
| 744 |
return $this->rights; |
| 745 |
} |
| 746 |
public function setSafe($safe) |
| 747 |
{ |
| 748 |
$this->safe = $safe; |
| 749 |
} |
| 750 |
public function getSafe() |
| 751 |
{ |
| 752 |
return $this->safe; |
| 753 |
} |
| 754 |
public function setSearchTerms($searchTerms) |
| 755 |
{ |
| 756 |
$this->searchTerms = $searchTerms; |
| 757 |
} |
| 758 |
public function getSearchTerms() |
| 759 |
{ |
| 760 |
return $this->searchTerms; |
| 761 |
} |
| 762 |
public function setSearchType($searchType) |
| 763 |
{ |
| 764 |
$this->searchType = $searchType; |
| 765 |
} |
| 766 |
public function getSearchType() |
| 767 |
{ |
| 768 |
return $this->searchType; |
| 769 |
} |
| 770 |
public function setSiteSearch($siteSearch) |
| 771 |
{ |
| 772 |
$this->siteSearch = $siteSearch; |
| 773 |
} |
| 774 |
public function getSiteSearch() |
| 775 |
{ |
| 776 |
return $this->siteSearch; |
| 777 |
} |
| 778 |
public function setSiteSearchFilter($siteSearchFilter) |
| 779 |
{ |
| 780 |
$this->siteSearchFilter = $siteSearchFilter; |
| 781 |
} |
| 782 |
public function getSiteSearchFilter() |
| 783 |
{ |
| 784 |
return $this->siteSearchFilter; |
| 785 |
} |
| 786 |
public function setSort($sort) |
| 787 |
{ |
| 788 |
$this->sort = $sort; |
| 789 |
} |
| 790 |
public function getSort() |
| 791 |
{ |
| 792 |
return $this->sort; |
| 793 |
} |
| 794 |
public function setStartIndex($startIndex) |
| 795 |
{ |
| 796 |
$this->startIndex = $startIndex; |
| 797 |
} |
| 798 |
public function getStartIndex() |
| 799 |
{ |
| 800 |
return $this->startIndex; |
| 801 |
} |
| 802 |
public function setStartPage($startPage) |
| 803 |
{ |
| 804 |
$this->startPage = $startPage; |
| 805 |
} |
| 806 |
public function getStartPage() |
| 807 |
{ |
| 808 |
return $this->startPage; |
| 809 |
} |
| 810 |
public function setTitle($title) |
| 811 |
{ |
| 812 |
$this->title = $title; |
| 813 |
} |
| 814 |
public function getTitle() |
| 815 |
{ |
| 816 |
return $this->title; |
| 817 |
} |
| 818 |
public function setTotalResults($totalResults) |
| 819 |
{ |
| 820 |
$this->totalResults = $totalResults; |
| 821 |
} |
| 822 |
public function getTotalResults() |
| 823 |
{ |
| 824 |
return $this->totalResults; |
| 825 |
} |
| 826 |
} |
| 827 |
|
| 828 |
class Google_Service_Customsearch_Result extends Google_Collection |
| 829 |
{ |
| 830 |
protected $collection_key = 'labels'; |
| 831 |
protected $internal_gapi_mappings = array( |
| 832 |
); |
| 833 |
public $cacheId; |
| 834 |
public $displayLink; |
| 835 |
public $fileFormat; |
| 836 |
public $formattedUrl; |
| 837 |
public $htmlFormattedUrl; |
| 838 |
public $htmlSnippet; |
| 839 |
public $htmlTitle; |
| 840 |
protected $imageType = 'Google_Service_Customsearch_ResultImage'; |
| 841 |
protected $imageDataType = ''; |
| 842 |
public $kind; |
| 843 |
protected $labelsType = 'Google_Service_Customsearch_ResultLabels'; |
| 844 |
protected $labelsDataType = 'array'; |
| 845 |
public $link; |
| 846 |
public $mime; |
| 847 |
public $pagemap; |
| 848 |
public $snippet; |
| 849 |
public $title; |
| 850 |
|
| 851 |
|
| 852 |
public function setCacheId($cacheId) |
| 853 |
{ |
| 854 |
$this->cacheId = $cacheId; |
| 855 |
} |
| 856 |
public function getCacheId() |
| 857 |
{ |
| 858 |
return $this->cacheId; |
| 859 |
} |
| 860 |
public function setDisplayLink($displayLink) |
| 861 |
{ |
| 862 |
$this->displayLink = $displayLink; |
| 863 |
} |
| 864 |
public function getDisplayLink() |
| 865 |
{ |
| 866 |
return $this->displayLink; |
| 867 |
} |
| 868 |
public function setFileFormat($fileFormat) |
| 869 |
{ |
| 870 |
$this->fileFormat = $fileFormat; |
| 871 |
} |
| 872 |
public function getFileFormat() |
| 873 |
{ |
| 874 |
return $this->fileFormat; |
| 875 |
} |
| 876 |
public function setFormattedUrl($formattedUrl) |
| 877 |
{ |
| 878 |
$this->formattedUrl = $formattedUrl; |
| 879 |
} |
| 880 |
public function getFormattedUrl() |
| 881 |
{ |
| 882 |
return $this->formattedUrl; |
| 883 |
} |
| 884 |
public function setHtmlFormattedUrl($htmlFormattedUrl) |
| 885 |
{ |
| 886 |
$this->htmlFormattedUrl = $htmlFormattedUrl; |
| 887 |
} |
| 888 |
public function getHtmlFormattedUrl() |
| 889 |
{ |
| 890 |
return $this->htmlFormattedUrl; |
| 891 |
} |
| 892 |
public function setHtmlSnippet($htmlSnippet) |
| 893 |
{ |
| 894 |
$this->htmlSnippet = $htmlSnippet; |
| 895 |
} |
| 896 |
public function getHtmlSnippet() |
| 897 |
{ |
| 898 |
return $this->htmlSnippet; |
| 899 |
} |
| 900 |
public function setHtmlTitle($htmlTitle) |
| 901 |
{ |
| 902 |
$this->htmlTitle = $htmlTitle; |
| 903 |
} |
| 904 |
public function getHtmlTitle() |
| 905 |
{ |
| 906 |
return $this->htmlTitle; |
| 907 |
} |
| 908 |
public function setImage(Google_Service_Customsearch_ResultImage $image) |
| 909 |
{ |
| 910 |
$this->image = $image; |
| 911 |
} |
| 912 |
public function getImage() |
| 913 |
{ |
| 914 |
return $this->image; |
| 915 |
} |
| 916 |
public function setKind($kind) |
| 917 |
{ |
| 918 |
$this->kind = $kind; |
| 919 |
} |
| 920 |
public function getKind() |
| 921 |
{ |
| 922 |
return $this->kind; |
| 923 |
} |
| 924 |
public function setLabels($labels) |
| 925 |
{ |
| 926 |
$this->labels = $labels; |
| 927 |
} |
| 928 |
public function getLabels() |
| 929 |
{ |
| 930 |
return $this->labels; |
| 931 |
} |
| 932 |
public function setLink($link) |
| 933 |
{ |
| 934 |
$this->link = $link; |
| 935 |
} |
| 936 |
public function getLink() |
| 937 |
{ |
| 938 |
return $this->link; |
| 939 |
} |
| 940 |
public function setMime($mime) |
| 941 |
{ |
| 942 |
$this->mime = $mime; |
| 943 |
} |
| 944 |
public function getMime() |
| 945 |
{ |
| 946 |
return $this->mime; |
| 947 |
} |
| 948 |
public function setPagemap($pagemap) |
| 949 |
{ |
| 950 |
$this->pagemap = $pagemap; |
| 951 |
} |
| 952 |
public function getPagemap() |
| 953 |
{ |
| 954 |
return $this->pagemap; |
| 955 |
} |
| 956 |
public function setSnippet($snippet) |
| 957 |
{ |
| 958 |
$this->snippet = $snippet; |
| 959 |
} |
| 960 |
public function getSnippet() |
| 961 |
{ |
| 962 |
return $this->snippet; |
| 963 |
} |
| 964 |
public function setTitle($title) |
| 965 |
{ |
| 966 |
$this->title = $title; |
| 967 |
} |
| 968 |
public function getTitle() |
| 969 |
{ |
| 970 |
return $this->title; |
| 971 |
} |
| 972 |
} |
| 973 |
|
| 974 |
class Google_Service_Customsearch_ResultImage extends Google_Model |
| 975 |
{ |
| 976 |
protected $internal_gapi_mappings = array( |
| 977 |
); |
| 978 |
public $byteSize; |
| 979 |
public $contextLink; |
| 980 |
public $height; |
| 981 |
public $thumbnailHeight; |
| 982 |
public $thumbnailLink; |
| 983 |
public $thumbnailWidth; |
| 984 |
public $width; |
| 985 |
|
| 986 |
|
| 987 |
public function setByteSize($byteSize) |
| 988 |
{ |
| 989 |
$this->byteSize = $byteSize; |
| 990 |
} |
| 991 |
public function getByteSize() |
| 992 |
{ |
| 993 |
return $this->byteSize; |
| 994 |
} |
| 995 |
public function setContextLink($contextLink) |
| 996 |
{ |
| 997 |
$this->contextLink = $contextLink; |
| 998 |
} |
| 999 |
public function getContextLink() |
| 1000 |
{ |
| 1001 |
return $this->contextLink; |
| 1002 |
} |
| 1003 |
public function setHeight($height) |
| 1004 |
{ |
| 1005 |
$this->height = $height; |
| 1006 |
} |
| 1007 |
public function getHeight() |
| 1008 |
{ |
| 1009 |
return $this->height; |
| 1010 |
} |
| 1011 |
public function setThumbnailHeight($thumbnailHeight) |
| 1012 |
{ |
| 1013 |
$this->thumbnailHeight = $thumbnailHeight; |
| 1014 |
} |
| 1015 |
public function getThumbnailHeight() |
| 1016 |
{ |
| 1017 |
return $this->thumbnailHeight; |
| 1018 |
} |
| 1019 |
public function setThumbnailLink($thumbnailLink) |
| 1020 |
{ |
| 1021 |
$this->thumbnailLink = $thumbnailLink; |
| 1022 |
} |
| 1023 |
public function getThumbnailLink() |
| 1024 |
{ |
| 1025 |
return $this->thumbnailLink; |
| 1026 |
} |
| 1027 |
public function setThumbnailWidth($thumbnailWidth) |
| 1028 |
{ |
| 1029 |
$this->thumbnailWidth = $thumbnailWidth; |
| 1030 |
} |
| 1031 |
public function getThumbnailWidth() |
| 1032 |
{ |
| 1033 |
return $this->thumbnailWidth; |
| 1034 |
} |
| 1035 |
public function setWidth($width) |
| 1036 |
{ |
| 1037 |
$this->width = $width; |
| 1038 |
} |
| 1039 |
public function getWidth() |
| 1040 |
{ |
| 1041 |
return $this->width; |
| 1042 |
} |
| 1043 |
} |
| 1044 |
|
| 1045 |
class Google_Service_Customsearch_ResultLabels extends Google_Model |
| 1046 |
{ |
| 1047 |
protected $internal_gapi_mappings = array( |
| 1048 |
"labelWithOp" => "label_with_op", |
| 1049 |
); |
| 1050 |
public $displayName; |
| 1051 |
public $labelWithOp; |
| 1052 |
public $name; |
| 1053 |
|
| 1054 |
|
| 1055 |
public function setDisplayName($displayName) |
| 1056 |
{ |
| 1057 |
$this->displayName = $displayName; |
| 1058 |
} |
| 1059 |
public function getDisplayName() |
| 1060 |
{ |
| 1061 |
return $this->displayName; |
| 1062 |
} |
| 1063 |
public function setLabelWithOp($labelWithOp) |
| 1064 |
{ |
| 1065 |
$this->labelWithOp = $labelWithOp; |
| 1066 |
} |
| 1067 |
public function getLabelWithOp() |
| 1068 |
{ |
| 1069 |
return $this->labelWithOp; |
| 1070 |
} |
| 1071 |
public function setName($name) |
| 1072 |
{ |
| 1073 |
$this->name = $name; |
| 1074 |
} |
| 1075 |
public function getName() |
| 1076 |
{ |
| 1077 |
return $this->name; |
| 1078 |
} |
| 1079 |
} |
| 1080 |
|
| 1081 |
class Google_Service_Customsearch_Search extends Google_Collection |
| 1082 |
{ |
| 1083 |
protected $collection_key = 'promotions'; |
| 1084 |
protected $internal_gapi_mappings = array( |
| 1085 |
); |
| 1086 |
protected $contextType = 'Google_Service_Customsearch_Context'; |
| 1087 |
protected $contextDataType = ''; |
| 1088 |
protected $itemsType = 'Google_Service_Customsearch_Result'; |
| 1089 |
protected $itemsDataType = 'array'; |
| 1090 |
public $kind; |
| 1091 |
protected $promotionsType = 'Google_Service_Customsearch_Promotion'; |
| 1092 |
protected $promotionsDataType = 'array'; |
| 1093 |
protected $queriesType = 'Google_Service_Customsearch_Query'; |
| 1094 |
protected $queriesDataType = 'map'; |
| 1095 |
protected $searchInformationType = 'Google_Service_Customsearch_SearchSearchInformation'; |
| 1096 |
protected $searchInformationDataType = ''; |
| 1097 |
protected $spellingType = 'Google_Service_Customsearch_SearchSpelling'; |
| 1098 |
protected $spellingDataType = ''; |
| 1099 |
protected $urlType = 'Google_Service_Customsearch_SearchUrl'; |
| 1100 |
protected $urlDataType = ''; |
| 1101 |
|
| 1102 |
|
| 1103 |
public function setContext(Google_Service_Customsearch_Context $context) |
| 1104 |
{ |
| 1105 |
$this->context = $context; |
| 1106 |
} |
| 1107 |
public function getContext() |
| 1108 |
{ |
| 1109 |
return $this->context; |
| 1110 |
} |
| 1111 |
public function setItems($items) |
| 1112 |
{ |
| 1113 |
$this->items = $items; |
| 1114 |
} |
| 1115 |
public function getItems() |
| 1116 |
{ |
| 1117 |
return $this->items; |
| 1118 |
} |
| 1119 |
public function setKind($kind) |
| 1120 |
{ |
| 1121 |
$this->kind = $kind; |
| 1122 |
} |
| 1123 |
public function getKind() |
| 1124 |
{ |
| 1125 |
return $this->kind; |
| 1126 |
} |
| 1127 |
public function setPromotions($promotions) |
| 1128 |
{ |
| 1129 |
$this->promotions = $promotions; |
| 1130 |
} |
| 1131 |
public function getPromotions() |
| 1132 |
{ |
| 1133 |
return $this->promotions; |
| 1134 |
} |
| 1135 |
public function setQueries($queries) |
| 1136 |
{ |
| 1137 |
$this->queries = $queries; |
| 1138 |
} |
| 1139 |
public function getQueries() |
| 1140 |
{ |
| 1141 |
return $this->queries; |
| 1142 |
} |
| 1143 |
public function setSearchInformation(Google_Service_Customsearch_SearchSearchInformation $searchInformation) |
| 1144 |
{ |
| 1145 |
$this->searchInformation = $searchInformation; |
| 1146 |
} |
| 1147 |
public function getSearchInformation() |
| 1148 |
{ |
| 1149 |
return $this->searchInformation; |
| 1150 |
} |
| 1151 |
public function setSpelling(Google_Service_Customsearch_SearchSpelling $spelling) |
| 1152 |
{ |
| 1153 |
$this->spelling = $spelling; |
| 1154 |
} |
| 1155 |
public function getSpelling() |
| 1156 |
{ |
| 1157 |
return $this->spelling; |
| 1158 |
} |
| 1159 |
public function setUrl(Google_Service_Customsearch_SearchUrl $url) |
| 1160 |
{ |
| 1161 |
$this->url = $url; |
| 1162 |
} |
| 1163 |
public function getUrl() |
| 1164 |
{ |
| 1165 |
return $this->url; |
| 1166 |
} |
| 1167 |
} |
| 1168 |
|
| 1169 |
class Google_Service_Customsearch_SearchSearchInformation extends Google_Model |
| 1170 |
{ |
| 1171 |
protected $internal_gapi_mappings = array( |
| 1172 |
); |
| 1173 |
public $formattedSearchTime; |
| 1174 |
public $formattedTotalResults; |
| 1175 |
public $searchTime; |
| 1176 |
public $totalResults; |
| 1177 |
|
| 1178 |
|
| 1179 |
public function setFormattedSearchTime($formattedSearchTime) |
| 1180 |
{ |
| 1181 |
$this->formattedSearchTime = $formattedSearchTime; |
| 1182 |
} |
| 1183 |
public function getFormattedSearchTime() |
| 1184 |
{ |
| 1185 |
return $this->formattedSearchTime; |
| 1186 |
} |
| 1187 |
public function setFormattedTotalResults($formattedTotalResults) |
| 1188 |
{ |
| 1189 |
$this->formattedTotalResults = $formattedTotalResults; |
| 1190 |
} |
| 1191 |
public function getFormattedTotalResults() |
| 1192 |
{ |
| 1193 |
return $this->formattedTotalResults; |
| 1194 |
} |
| 1195 |
public function setSearchTime($searchTime) |
| 1196 |
{ |
| 1197 |
$this->searchTime = $searchTime; |
| 1198 |
} |
| 1199 |
public function getSearchTime() |
| 1200 |
{ |
| 1201 |
return $this->searchTime; |
| 1202 |
} |
| 1203 |
public function setTotalResults($totalResults) |
| 1204 |
{ |
| 1205 |
$this->totalResults = $totalResults; |
| 1206 |
} |
| 1207 |
public function getTotalResults() |
| 1208 |
{ |
| 1209 |
return $this->totalResults; |
| 1210 |
} |
| 1211 |
} |
| 1212 |
|
| 1213 |
class Google_Service_Customsearch_SearchSpelling extends Google_Model |
| 1214 |
{ |
| 1215 |
protected $internal_gapi_mappings = array( |
| 1216 |
); |
| 1217 |
public $correctedQuery; |
| 1218 |
public $htmlCorrectedQuery; |
| 1219 |
|
| 1220 |
|
| 1221 |
public function setCorrectedQuery($correctedQuery) |
| 1222 |
{ |
| 1223 |
$this->correctedQuery = $correctedQuery; |
| 1224 |
} |
| 1225 |
public function getCorrectedQuery() |
| 1226 |
{ |
| 1227 |
return $this->correctedQuery; |
| 1228 |
} |
| 1229 |
public function setHtmlCorrectedQuery($htmlCorrectedQuery) |
| 1230 |
{ |
| 1231 |
$this->htmlCorrectedQuery = $htmlCorrectedQuery; |
| 1232 |
} |
| 1233 |
public function getHtmlCorrectedQuery() |
| 1234 |
{ |
| 1235 |
return $this->htmlCorrectedQuery; |
| 1236 |
} |
| 1237 |
} |
| 1238 |
|
| 1239 |
class Google_Service_Customsearch_SearchUrl extends Google_Model |
| 1240 |
{ |
| 1241 |
protected $internal_gapi_mappings = array( |
| 1242 |
); |
| 1243 |
public $template; |
| 1244 |
public $type; |
| 1245 |
|
| 1246 |
|
| 1247 |
public function setTemplate($template) |
| 1248 |
{ |
| 1249 |
$this->template = $template; |
| 1250 |
} |
| 1251 |
public function getTemplate() |
| 1252 |
{ |
| 1253 |
return $this->template; |
| 1254 |
} |
| 1255 |
public function setType($type) |
| 1256 |
{ |
| 1257 |
$this->type = $type; |
| 1258 |
} |
| 1259 |
public function getType() |
| 1260 |
{ |
| 1261 |
return $this->type; |
| 1262 |
} |
| 1263 |
} |
| 1264 |
|