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