source: vendor/google/apiclient-services/src/Vision/ImageContext.php@ e3d4e0a

Last change on this file since e3d4e0a was e3d4e0a, checked in by Vlado 222039 <vlado.popovski@…>, 7 days ago

Upload project files

  • Property mode set to 100644
File size: 3.2 KB
Line 
1<?php
2/*
3 * Copyright 2014 Google Inc.
4 *
5 * Licensed under the Apache License, Version 2.0 (the "License"); you may not
6 * use this file except in compliance with the License. You may obtain a copy of
7 * the License at
8 *
9 * http://www.apache.org/licenses/LICENSE-2.0
10 *
11 * Unless required by applicable law or agreed to in writing, software
12 * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
13 * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
14 * License for the specific language governing permissions and limitations under
15 * the License.
16 */
17
18namespace Google\Service\Vision;
19
20class ImageContext extends \Google\Collection
21{
22 protected $collection_key = 'languageHints';
23 protected $cropHintsParamsType = CropHintsParams::class;
24 protected $cropHintsParamsDataType = '';
25 /**
26 * @var string[]
27 */
28 public $languageHints;
29 protected $latLongRectType = LatLongRect::class;
30 protected $latLongRectDataType = '';
31 protected $productSearchParamsType = ProductSearchParams::class;
32 protected $productSearchParamsDataType = '';
33 protected $textDetectionParamsType = TextDetectionParams::class;
34 protected $textDetectionParamsDataType = '';
35 protected $webDetectionParamsType = WebDetectionParams::class;
36 protected $webDetectionParamsDataType = '';
37
38 /**
39 * @param CropHintsParams
40 */
41 public function setCropHintsParams(CropHintsParams $cropHintsParams)
42 {
43 $this->cropHintsParams = $cropHintsParams;
44 }
45 /**
46 * @return CropHintsParams
47 */
48 public function getCropHintsParams()
49 {
50 return $this->cropHintsParams;
51 }
52 /**
53 * @param string[]
54 */
55 public function setLanguageHints($languageHints)
56 {
57 $this->languageHints = $languageHints;
58 }
59 /**
60 * @return string[]
61 */
62 public function getLanguageHints()
63 {
64 return $this->languageHints;
65 }
66 /**
67 * @param LatLongRect
68 */
69 public function setLatLongRect(LatLongRect $latLongRect)
70 {
71 $this->latLongRect = $latLongRect;
72 }
73 /**
74 * @return LatLongRect
75 */
76 public function getLatLongRect()
77 {
78 return $this->latLongRect;
79 }
80 /**
81 * @param ProductSearchParams
82 */
83 public function setProductSearchParams(ProductSearchParams $productSearchParams)
84 {
85 $this->productSearchParams = $productSearchParams;
86 }
87 /**
88 * @return ProductSearchParams
89 */
90 public function getProductSearchParams()
91 {
92 return $this->productSearchParams;
93 }
94 /**
95 * @param TextDetectionParams
96 */
97 public function setTextDetectionParams(TextDetectionParams $textDetectionParams)
98 {
99 $this->textDetectionParams = $textDetectionParams;
100 }
101 /**
102 * @return TextDetectionParams
103 */
104 public function getTextDetectionParams()
105 {
106 return $this->textDetectionParams;
107 }
108 /**
109 * @param WebDetectionParams
110 */
111 public function setWebDetectionParams(WebDetectionParams $webDetectionParams)
112 {
113 $this->webDetectionParams = $webDetectionParams;
114 }
115 /**
116 * @return WebDetectionParams
117 */
118 public function getWebDetectionParams()
119 {
120 return $this->webDetectionParams;
121 }
122}
123
124// Adding a class alias for backwards compatibility with the previous class name.
125class_alias(ImageContext::class, 'Google_Service_Vision_ImageContext');
Note: See TracBrowser for help on using the repository browser.