PluginProbe
Analytify – Google Analytics Dashboard For WordPress (GA4 analytics tracking) / 1.3.0
Analytify – Google Analytics Dashboard For WordPress (GA4 analytics tracking) v1.3.0
9.1.2 9.1.1 9.1.0 9.0.2 9.0.1 trunk 1.0.0 1.0.1 1.0.2 1.0.3 1.0.4 1.0.5 1.0.6 1.0.7 1.1.0 1.1.1 1.2.0 1.2.1 1.2.2 1.2.3 1.2.4 1.2.5 1.3.0 1.3.1 1.3.2 All 153 releases
wp-analytify / lib / Google / Service / Customsearch.php

Customsearch.php in Analytify – Google Analytics Dashboard For WordPress (GA4 analytics tracking) 1.3.0, at lib/Google/Service/Customsearch.php

1,433 lines 29.4 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
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 Analytify_Google_Service_Customsearch extends Analytify_Google_Service
33 {
34
35
36 public $cse;
37
38
39 /**
40 * Constructs the internal representation of the Customsearch service.
41 *
42 * @param Analytify_Google_Client $client
43 */
44 public function __construct(Analytify_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 Analytify_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 Analytify_Google_Service_Customsearch(...);
204 * $cse = $customsearchService->cse;
205 * </code>
206 */
207 class Analytify_Google_Service_Customsearch_Cse_Resource extends Analytify_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 Analytify_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), "Analytify_Google_Service_Customsearch_Search");
293 }
294 }
295
296
297
298
299 class Analytify_Google_Service_Customsearch_Context extends Analytify_Google_Collection
300 {
301 protected $facetsType = 'Analytify_Google_Service_Customsearch_ContextFacets';
302 protected $facetsDataType = 'array';
303 public $title;
304
305 public function setFacets($facets)
306 {
307 $this->facets = $facets;
308 }
309
310 public function getFacets()
311 {
312 return $this->facets;
313 }
314
315 public function setTitle($title)
316 {
317 $this->title = $title;
318 }
319
320 public function getTitle()
321 {
322 return $this->title;
323 }
324 }
325
326 class Analytify_Google_Service_Customsearch_ContextFacets extends Analytify_Google_Model
327 {
328 public $anchor;
329 public $label;
330 public $labelWithOp;
331
332 public function setAnchor($anchor)
333 {
334 $this->anchor = $anchor;
335 }
336
337 public function getAnchor()
338 {
339 return $this->anchor;
340 }
341
342 public function setLabel($label)
343 {
344 $this->label = $label;
345 }
346
347 public function getLabel()
348 {
349 return $this->label;
350 }
351
352 public function setLabelWithOp($labelWithOp)
353 {
354 $this->labelWithOp = $labelWithOp;
355 }
356
357 public function getLabelWithOp()
358 {
359 return $this->labelWithOp;
360 }
361 }
362
363 class Analytify_Google_Service_Customsearch_Promotion extends Analytify_Google_Collection
364 {
365 protected $bodyLinesType = 'Analytify_Google_Service_Customsearch_PromotionBodyLines';
366 protected $bodyLinesDataType = 'array';
367 public $displayLink;
368 public $htmlTitle;
369 protected $imageType = 'Analytify_Google_Service_Customsearch_PromotionImage';
370 protected $imageDataType = '';
371 public $link;
372 public $title;
373
374 public function setBodyLines($bodyLines)
375 {
376 $this->bodyLines = $bodyLines;
377 }
378
379 public function getBodyLines()
380 {
381 return $this->bodyLines;
382 }
383
384 public function setDisplayLink($displayLink)
385 {
386 $this->displayLink = $displayLink;
387 }
388
389 public function getDisplayLink()
390 {
391 return $this->displayLink;
392 }
393
394 public function setHtmlTitle($htmlTitle)
395 {
396 $this->htmlTitle = $htmlTitle;
397 }
398
399 public function getHtmlTitle()
400 {
401 return $this->htmlTitle;
402 }
403
404 public function setImage(Analytify_Google_Service_Customsearch_PromotionImage $image)
405 {
406 $this->image = $image;
407 }
408
409 public function getImage()
410 {
411 return $this->image;
412 }
413
414 public function setLink($link)
415 {
416 $this->link = $link;
417 }
418
419 public function getLink()
420 {
421 return $this->link;
422 }
423
424 public function setTitle($title)
425 {
426 $this->title = $title;
427 }
428
429 public function getTitle()
430 {
431 return $this->title;
432 }
433 }
434
435 class Analytify_Google_Service_Customsearch_PromotionBodyLines extends Analytify_Google_Model
436 {
437 public $htmlTitle;
438 public $link;
439 public $title;
440 public $url;
441
442 public function setHtmlTitle($htmlTitle)
443 {
444 $this->htmlTitle = $htmlTitle;
445 }
446
447 public function getHtmlTitle()
448 {
449 return $this->htmlTitle;
450 }
451
452 public function setLink($link)
453 {
454 $this->link = $link;
455 }
456
457 public function getLink()
458 {
459 return $this->link;
460 }
461
462 public function setTitle($title)
463 {
464 $this->title = $title;
465 }
466
467 public function getTitle()
468 {
469 return $this->title;
470 }
471
472 public function setUrl($url)
473 {
474 $this->url = $url;
475 }
476
477 public function getUrl()
478 {
479 return $this->url;
480 }
481 }
482
483 class Analytify_Google_Service_Customsearch_PromotionImage extends Analytify_Google_Model
484 {
485 public $height;
486 public $source;
487 public $width;
488
489 public function setHeight($height)
490 {
491 $this->height = $height;
492 }
493
494 public function getHeight()
495 {
496 return $this->height;
497 }
498
499 public function setSource($source)
500 {
501 $this->source = $source;
502 }
503
504 public function getSource()
505 {
506 return $this->source;
507 }
508
509 public function setWidth($width)
510 {
511 $this->width = $width;
512 }
513
514 public function getWidth()
515 {
516 return $this->width;
517 }
518 }
519
520 class Analytify_Google_Service_Customsearch_Query extends Analytify_Google_Model
521 {
522 public $count;
523 public $cr;
524 public $cref;
525 public $cx;
526 public $dateRestrict;
527 public $disableCnTwTranslation;
528 public $exactTerms;
529 public $excludeTerms;
530 public $fileType;
531 public $filter;
532 public $gl;
533 public $googleHost;
534 public $highRange;
535 public $hl;
536 public $hq;
537 public $imgColorType;
538 public $imgDominantColor;
539 public $imgSize;
540 public $imgType;
541 public $inputEncoding;
542 public $language;
543 public $linkSite;
544 public $lowRange;
545 public $orTerms;
546 public $outputEncoding;
547 public $relatedSite;
548 public $rights;
549 public $safe;
550 public $searchTerms;
551 public $searchType;
552 public $siteSearch;
553 public $siteSearchFilter;
554 public $sort;
555 public $startIndex;
556 public $startPage;
557 public $title;
558 public $totalResults;
559
560 public function setCount($count)
561 {
562 $this->count = $count;
563 }
564
565 public function getCount()
566 {
567 return $this->count;
568 }
569
570 public function setCr($cr)
571 {
572 $this->cr = $cr;
573 }
574
575 public function getCr()
576 {
577 return $this->cr;
578 }
579
580 public function setCref($cref)
581 {
582 $this->cref = $cref;
583 }
584
585 public function getCref()
586 {
587 return $this->cref;
588 }
589
590 public function setCx($cx)
591 {
592 $this->cx = $cx;
593 }
594
595 public function getCx()
596 {
597 return $this->cx;
598 }
599
600 public function setDateRestrict($dateRestrict)
601 {
602 $this->dateRestrict = $dateRestrict;
603 }
604
605 public function getDateRestrict()
606 {
607 return $this->dateRestrict;
608 }
609
610 public function setDisableCnTwTranslation($disableCnTwTranslation)
611 {
612 $this->disableCnTwTranslation = $disableCnTwTranslation;
613 }
614
615 public function getDisableCnTwTranslation()
616 {
617 return $this->disableCnTwTranslation;
618 }
619
620 public function setExactTerms($exactTerms)
621 {
622 $this->exactTerms = $exactTerms;
623 }
624
625 public function getExactTerms()
626 {
627 return $this->exactTerms;
628 }
629
630 public function setExcludeTerms($excludeTerms)
631 {
632 $this->excludeTerms = $excludeTerms;
633 }
634
635 public function getExcludeTerms()
636 {
637 return $this->excludeTerms;
638 }
639
640 public function setFileType($fileType)
641 {
642 $this->fileType = $fileType;
643 }
644
645 public function getFileType()
646 {
647 return $this->fileType;
648 }
649
650 public function setFilter($filter)
651 {
652 $this->filter = $filter;
653 }
654
655 public function getFilter()
656 {
657 return $this->filter;
658 }
659
660 public function setGl($gl)
661 {
662 $this->gl = $gl;
663 }
664
665 public function getGl()
666 {
667 return $this->gl;
668 }
669
670 public function setGoogleHost($googleHost)
671 {
672 $this->googleHost = $googleHost;
673 }
674
675 public function getGoogleHost()
676 {
677 return $this->googleHost;
678 }
679
680 public function setHighRange($highRange)
681 {
682 $this->highRange = $highRange;
683 }
684
685 public function getHighRange()
686 {
687 return $this->highRange;
688 }
689
690 public function setHl($hl)
691 {
692 $this->hl = $hl;
693 }
694
695 public function getHl()
696 {
697 return $this->hl;
698 }
699
700 public function setHq($hq)
701 {
702 $this->hq = $hq;
703 }
704
705 public function getHq()
706 {
707 return $this->hq;
708 }
709
710 public function setImgColorType($imgColorType)
711 {
712 $this->imgColorType = $imgColorType;
713 }
714
715 public function getImgColorType()
716 {
717 return $this->imgColorType;
718 }
719
720 public function setImgDominantColor($imgDominantColor)
721 {
722 $this->imgDominantColor = $imgDominantColor;
723 }
724
725 public function getImgDominantColor()
726 {
727 return $this->imgDominantColor;
728 }
729
730 public function setImgSize($imgSize)
731 {
732 $this->imgSize = $imgSize;
733 }
734
735 public function getImgSize()
736 {
737 return $this->imgSize;
738 }
739
740 public function setImgType($imgType)
741 {
742 $this->imgType = $imgType;
743 }
744
745 public function getImgType()
746 {
747 return $this->imgType;
748 }
749
750 public function setInputEncoding($inputEncoding)
751 {
752 $this->inputEncoding = $inputEncoding;
753 }
754
755 public function getInputEncoding()
756 {
757 return $this->inputEncoding;
758 }
759
760 public function setLanguage($language)
761 {
762 $this->language = $language;
763 }
764
765 public function getLanguage()
766 {
767 return $this->language;
768 }
769
770 public function setLinkSite($linkSite)
771 {
772 $this->linkSite = $linkSite;
773 }
774
775 public function getLinkSite()
776 {
777 return $this->linkSite;
778 }
779
780 public function setLowRange($lowRange)
781 {
782 $this->lowRange = $lowRange;
783 }
784
785 public function getLowRange()
786 {
787 return $this->lowRange;
788 }
789
790 public function setOrTerms($orTerms)
791 {
792 $this->orTerms = $orTerms;
793 }
794
795 public function getOrTerms()
796 {
797 return $this->orTerms;
798 }
799
800 public function setOutputEncoding($outputEncoding)
801 {
802 $this->outputEncoding = $outputEncoding;
803 }
804
805 public function getOutputEncoding()
806 {
807 return $this->outputEncoding;
808 }
809
810 public function setRelatedSite($relatedSite)
811 {
812 $this->relatedSite = $relatedSite;
813 }
814
815 public function getRelatedSite()
816 {
817 return $this->relatedSite;
818 }
819
820 public function setRights($rights)
821 {
822 $this->rights = $rights;
823 }
824
825 public function getRights()
826 {
827 return $this->rights;
828 }
829
830 public function setSafe($safe)
831 {
832 $this->safe = $safe;
833 }
834
835 public function getSafe()
836 {
837 return $this->safe;
838 }
839
840 public function setSearchTerms($searchTerms)
841 {
842 $this->searchTerms = $searchTerms;
843 }
844
845 public function getSearchTerms()
846 {
847 return $this->searchTerms;
848 }
849
850 public function setSearchType($searchType)
851 {
852 $this->searchType = $searchType;
853 }
854
855 public function getSearchType()
856 {
857 return $this->searchType;
858 }
859
860 public function setSiteSearch($siteSearch)
861 {
862 $this->siteSearch = $siteSearch;
863 }
864
865 public function getSiteSearch()
866 {
867 return $this->siteSearch;
868 }
869
870 public function setSiteSearchFilter($siteSearchFilter)
871 {
872 $this->siteSearchFilter = $siteSearchFilter;
873 }
874
875 public function getSiteSearchFilter()
876 {
877 return $this->siteSearchFilter;
878 }
879
880 public function setSort($sort)
881 {
882 $this->sort = $sort;
883 }
884
885 public function getSort()
886 {
887 return $this->sort;
888 }
889
890 public function setStartIndex($startIndex)
891 {
892 $this->startIndex = $startIndex;
893 }
894
895 public function getStartIndex()
896 {
897 return $this->startIndex;
898 }
899
900 public function setStartPage($startPage)
901 {
902 $this->startPage = $startPage;
903 }
904
905 public function getStartPage()
906 {
907 return $this->startPage;
908 }
909
910 public function setTitle($title)
911 {
912 $this->title = $title;
913 }
914
915 public function getTitle()
916 {
917 return $this->title;
918 }
919
920 public function setTotalResults($totalResults)
921 {
922 $this->totalResults = $totalResults;
923 }
924
925 public function getTotalResults()
926 {
927 return $this->totalResults;
928 }
929 }
930
931 class Analytify_Google_Service_Customsearch_Result extends Analytify_Google_Collection
932 {
933 public $cacheId;
934 public $displayLink;
935 public $fileFormat;
936 public $formattedUrl;
937 public $htmlFormattedUrl;
938 public $htmlSnippet;
939 public $htmlTitle;
940 protected $imageType = 'Analytify_Google_Service_Customsearch_ResultImage';
941 protected $imageDataType = '';
942 public $kind;
943 protected $labelsType = 'Analytify_Google_Service_Customsearch_ResultLabels';
944 protected $labelsDataType = 'array';
945 public $link;
946 public $mime;
947 public $pagemap;
948 public $snippet;
949 public $title;
950
951 public function setCacheId($cacheId)
952 {
953 $this->cacheId = $cacheId;
954 }
955
956 public function getCacheId()
957 {
958 return $this->cacheId;
959 }
960
961 public function setDisplayLink($displayLink)
962 {
963 $this->displayLink = $displayLink;
964 }
965
966 public function getDisplayLink()
967 {
968 return $this->displayLink;
969 }
970
971 public function setFileFormat($fileFormat)
972 {
973 $this->fileFormat = $fileFormat;
974 }
975
976 public function getFileFormat()
977 {
978 return $this->fileFormat;
979 }
980
981 public function setFormattedUrl($formattedUrl)
982 {
983 $this->formattedUrl = $formattedUrl;
984 }
985
986 public function getFormattedUrl()
987 {
988 return $this->formattedUrl;
989 }
990
991 public function setHtmlFormattedUrl($htmlFormattedUrl)
992 {
993 $this->htmlFormattedUrl = $htmlFormattedUrl;
994 }
995
996 public function getHtmlFormattedUrl()
997 {
998 return $this->htmlFormattedUrl;
999 }
1000
1001 public function setHtmlSnippet($htmlSnippet)
1002 {
1003 $this->htmlSnippet = $htmlSnippet;
1004 }
1005
1006 public function getHtmlSnippet()
1007 {
1008 return $this->htmlSnippet;
1009 }
1010
1011 public function setHtmlTitle($htmlTitle)
1012 {
1013 $this->htmlTitle = $htmlTitle;
1014 }
1015
1016 public function getHtmlTitle()
1017 {
1018 return $this->htmlTitle;
1019 }
1020
1021 public function setImage(Analytify_Google_Service_Customsearch_ResultImage $image)
1022 {
1023 $this->image = $image;
1024 }
1025
1026 public function getImage()
1027 {
1028 return $this->image;
1029 }
1030
1031 public function setKind($kind)
1032 {
1033 $this->kind = $kind;
1034 }
1035
1036 public function getKind()
1037 {
1038 return $this->kind;
1039 }
1040
1041 public function setLabels($labels)
1042 {
1043 $this->labels = $labels;
1044 }
1045
1046 public function getLabels()
1047 {
1048 return $this->labels;
1049 }
1050
1051 public function setLink($link)
1052 {
1053 $this->link = $link;
1054 }
1055
1056 public function getLink()
1057 {
1058 return $this->link;
1059 }
1060
1061 public function setMime($mime)
1062 {
1063 $this->mime = $mime;
1064 }
1065
1066 public function getMime()
1067 {
1068 return $this->mime;
1069 }
1070
1071 public function setPagemap($pagemap)
1072 {
1073 $this->pagemap = $pagemap;
1074 }
1075
1076 public function getPagemap()
1077 {
1078 return $this->pagemap;
1079 }
1080
1081 public function setSnippet($snippet)
1082 {
1083 $this->snippet = $snippet;
1084 }
1085
1086 public function getSnippet()
1087 {
1088 return $this->snippet;
1089 }
1090
1091 public function setTitle($title)
1092 {
1093 $this->title = $title;
1094 }
1095
1096 public function getTitle()
1097 {
1098 return $this->title;
1099 }
1100 }
1101
1102 class Analytify_Google_Service_Customsearch_ResultImage extends Analytify_Google_Model
1103 {
1104 public $byteSize;
1105 public $contextLink;
1106 public $height;
1107 public $thumbnailHeight;
1108 public $thumbnailLink;
1109 public $thumbnailWidth;
1110 public $width;
1111
1112 public function setByteSize($byteSize)
1113 {
1114 $this->byteSize = $byteSize;
1115 }
1116
1117 public function getByteSize()
1118 {
1119 return $this->byteSize;
1120 }
1121
1122 public function setContextLink($contextLink)
1123 {
1124 $this->contextLink = $contextLink;
1125 }
1126
1127 public function getContextLink()
1128 {
1129 return $this->contextLink;
1130 }
1131
1132 public function setHeight($height)
1133 {
1134 $this->height = $height;
1135 }
1136
1137 public function getHeight()
1138 {
1139 return $this->height;
1140 }
1141
1142 public function setThumbnailHeight($thumbnailHeight)
1143 {
1144 $this->thumbnailHeight = $thumbnailHeight;
1145 }
1146
1147 public function getThumbnailHeight()
1148 {
1149 return $this->thumbnailHeight;
1150 }
1151
1152 public function setThumbnailLink($thumbnailLink)
1153 {
1154 $this->thumbnailLink = $thumbnailLink;
1155 }
1156
1157 public function getThumbnailLink()
1158 {
1159 return $this->thumbnailLink;
1160 }
1161
1162 public function setThumbnailWidth($thumbnailWidth)
1163 {
1164 $this->thumbnailWidth = $thumbnailWidth;
1165 }
1166
1167 public function getThumbnailWidth()
1168 {
1169 return $this->thumbnailWidth;
1170 }
1171
1172 public function setWidth($width)
1173 {
1174 $this->width = $width;
1175 }
1176
1177 public function getWidth()
1178 {
1179 return $this->width;
1180 }
1181 }
1182
1183 class Analytify_Google_Service_Customsearch_ResultLabels extends Analytify_Google_Model
1184 {
1185 public $displayName;
1186 public $labelWithOp;
1187 public $name;
1188
1189 public function setDisplayName($displayName)
1190 {
1191 $this->displayName = $displayName;
1192 }
1193
1194 public function getDisplayName()
1195 {
1196 return $this->displayName;
1197 }
1198
1199 public function setLabelWithOp($labelWithOp)
1200 {
1201 $this->labelWithOp = $labelWithOp;
1202 }
1203
1204 public function getLabelWithOp()
1205 {
1206 return $this->labelWithOp;
1207 }
1208
1209 public function setName($name)
1210 {
1211 $this->name = $name;
1212 }
1213
1214 public function getName()
1215 {
1216 return $this->name;
1217 }
1218 }
1219
1220 class Analytify_Google_Service_Customsearch_ResultPagemap extends Analytify_Google_Model
1221 {
1222
1223 }
1224
1225 class Analytify_Google_Service_Customsearch_ResultPagemapItemElement extends Analytify_Google_Model
1226 {
1227
1228 }
1229
1230 class Analytify_Google_Service_Customsearch_Search extends Analytify_Google_Collection
1231 {
1232 protected $contextType = 'Analytify_Google_Service_Customsearch_Context';
1233 protected $contextDataType = '';
1234 protected $itemsType = 'Analytify_Google_Service_Customsearch_Result';
1235 protected $itemsDataType = 'array';
1236 public $kind;
1237 protected $promotionsType = 'Analytify_Google_Service_Customsearch_Promotion';
1238 protected $promotionsDataType = 'array';
1239 protected $queriesType = 'Analytify_Google_Service_Customsearch_Query';
1240 protected $queriesDataType = 'map';
1241 protected $searchInformationType = 'Analytify_Google_Service_Customsearch_SearchSearchInformation';
1242 protected $searchInformationDataType = '';
1243 protected $spellingType = 'Analytify_Google_Service_Customsearch_SearchSpelling';
1244 protected $spellingDataType = '';
1245 protected $urlType = 'Analytify_Google_Service_Customsearch_SearchUrl';
1246 protected $urlDataType = '';
1247
1248 public function setContext(Analytify_Google_Service_Customsearch_Context $context)
1249 {
1250 $this->context = $context;
1251 }
1252
1253 public function getContext()
1254 {
1255 return $this->context;
1256 }
1257
1258 public function setItems($items)
1259 {
1260 $this->items = $items;
1261 }
1262
1263 public function getItems()
1264 {
1265 return $this->items;
1266 }
1267
1268 public function setKind($kind)
1269 {
1270 $this->kind = $kind;
1271 }
1272
1273 public function getKind()
1274 {
1275 return $this->kind;
1276 }
1277
1278 public function setPromotions($promotions)
1279 {
1280 $this->promotions = $promotions;
1281 }
1282
1283 public function getPromotions()
1284 {
1285 return $this->promotions;
1286 }
1287
1288 public function setQueries($queries)
1289 {
1290 $this->queries = $queries;
1291 }
1292
1293 public function getQueries()
1294 {
1295 return $this->queries;
1296 }
1297
1298 public function setSearchInformation(Analytify_Google_Service_Customsearch_SearchSearchInformation $searchInformation)
1299 {
1300 $this->searchInformation = $searchInformation;
1301 }
1302
1303 public function getSearchInformation()
1304 {
1305 return $this->searchInformation;
1306 }
1307
1308 public function setSpelling(Analytify_Google_Service_Customsearch_SearchSpelling $spelling)
1309 {
1310 $this->spelling = $spelling;
1311 }
1312
1313 public function getSpelling()
1314 {
1315 return $this->spelling;
1316 }
1317
1318 public function setUrl(Analytify_Google_Service_Customsearch_SearchUrl $url)
1319 {
1320 $this->url = $url;
1321 }
1322
1323 public function getUrl()
1324 {
1325 return $this->url;
1326 }
1327 }
1328
1329 class Analytify_Google_Service_Customsearch_SearchQueries extends Analytify_Google_Model
1330 {
1331
1332 }
1333
1334 class Analytify_Google_Service_Customsearch_SearchSearchInformation extends Analytify_Google_Model
1335 {
1336 public $formattedSearchTime;
1337 public $formattedTotalResults;
1338 public $searchTime;
1339 public $totalResults;
1340
1341 public function setFormattedSearchTime($formattedSearchTime)
1342 {
1343 $this->formattedSearchTime = $formattedSearchTime;
1344 }
1345
1346 public function getFormattedSearchTime()
1347 {
1348 return $this->formattedSearchTime;
1349 }
1350
1351 public function setFormattedTotalResults($formattedTotalResults)
1352 {
1353 $this->formattedTotalResults = $formattedTotalResults;
1354 }
1355
1356 public function getFormattedTotalResults()
1357 {
1358 return $this->formattedTotalResults;
1359 }
1360
1361 public function setSearchTime($searchTime)
1362 {
1363 $this->searchTime = $searchTime;
1364 }
1365
1366 public function getSearchTime()
1367 {
1368 return $this->searchTime;
1369 }
1370
1371 public function setTotalResults($totalResults)
1372 {
1373 $this->totalResults = $totalResults;
1374 }
1375
1376 public function getTotalResults()
1377 {
1378 return $this->totalResults;
1379 }
1380 }
1381
1382 class Analytify_Google_Service_Customsearch_SearchSpelling extends Analytify_Google_Model
1383 {
1384 public $correctedQuery;
1385 public $htmlCorrectedQuery;
1386
1387 public function setCorrectedQuery($correctedQuery)
1388 {
1389 $this->correctedQuery = $correctedQuery;
1390 }
1391
1392 public function getCorrectedQuery()
1393 {
1394 return $this->correctedQuery;
1395 }
1396
1397 public function setHtmlCorrectedQuery($htmlCorrectedQuery)
1398 {
1399 $this->htmlCorrectedQuery = $htmlCorrectedQuery;
1400 }
1401
1402 public function getHtmlCorrectedQuery()
1403 {
1404 return $this->htmlCorrectedQuery;
1405 }
1406 }
1407
1408 class Analytify_Google_Service_Customsearch_SearchUrl extends Analytify_Google_Model
1409 {
1410 public $template;
1411 public $type;
1412
1413 public function setTemplate($template)
1414 {
1415 $this->template = $template;
1416 }
1417
1418 public function getTemplate()
1419 {
1420 return $this->template;
1421 }
1422
1423 public function setType($type)
1424 {
1425 $this->type = $type;
1426 }
1427
1428 public function getType()
1429 {
1430 return $this->type;
1431 }
1432 }
1433