| 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 Vision (v1). |
| 18 |
* |
| 19 |
* <p> |
| 20 |
* The Google Cloud Vision API allows developers to easily integrate Google |
| 21 |
* vision features, including image labeling, face, logo, and landmark |
| 22 |
* detection, optical character recognition (OCR), and detection of explicit |
| 23 |
* content, into applications.</p> |
| 24 |
* |
| 25 |
* <p> |
| 26 |
* For more information about this service, see the API |
| 27 |
* <a href="https://cloud.google.com/vision/" target="_blank">Documentation</a> |
| 28 |
* </p> |
| 29 |
* |
| 30 |
* @author Google, Inc. |
| 31 |
*/ |
| 32 |
class Google_Service_Vision extends Google_Service |
| 33 |
{ |
| 34 |
/** View and manage your data across Google Cloud Platform services. */ |
| 35 |
const CLOUD_PLATFORM = |
| 36 |
"https://www.googleapis.com/auth/cloud-platform"; |
| 37 |
|
| 38 |
public $images; |
| 39 |
|
| 40 |
|
| 41 |
/** |
| 42 |
* Constructs the internal representation of the Vision service. |
| 43 |
* |
| 44 |
* @param Google_Client $client |
| 45 |
*/ |
| 46 |
public function __construct(Google_Client $client) |
| 47 |
{ |
| 48 |
parent::__construct($client); |
| 49 |
$this->rootUrl = 'https://vision.googleapis.com/'; |
| 50 |
$this->servicePath = ''; |
| 51 |
$this->version = 'v1'; |
| 52 |
$this->serviceName = 'vision'; |
| 53 |
|
| 54 |
$this->images = new Google_Service_Vision_Images_Resource( |
| 55 |
$this, |
| 56 |
$this->serviceName, |
| 57 |
'images', |
| 58 |
array( |
| 59 |
'methods' => array( |
| 60 |
'annotate' => array( |
| 61 |
'path' => 'v1/images:annotate', |
| 62 |
'httpMethod' => 'POST', |
| 63 |
'parameters' => array(), |
| 64 |
), |
| 65 |
) |
| 66 |
) |
| 67 |
); |
| 68 |
} |
| 69 |
} |
| 70 |
|
| 71 |
|
| 72 |
/** |
| 73 |
* The "images" collection of methods. |
| 74 |
* Typical usage is: |
| 75 |
* <code> |
| 76 |
* $visionService = new Google_Service_Vision(...); |
| 77 |
* $images = $visionService->images; |
| 78 |
* </code> |
| 79 |
*/ |
| 80 |
class Google_Service_Vision_Images_Resource extends Google_Service_Resource |
| 81 |
{ |
| 82 |
|
| 83 |
/** |
| 84 |
* Run image detection and annotation for a batch of images. (images.annotate) |
| 85 |
* |
| 86 |
* @param Google_BatchAnnotateImagesRequest $postBody |
| 87 |
* @param array $optParams Optional parameters. |
| 88 |
* @return Google_Service_Vision_BatchAnnotateImagesResponse |
| 89 |
*/ |
| 90 |
public function annotate(Google_Service_Vision_BatchAnnotateImagesRequest $postBody, $optParams = array()) |
| 91 |
{ |
| 92 |
$params = array('postBody' => $postBody); |
| 93 |
$params = array_merge($params, $optParams); |
| 94 |
return $this->call('annotate', array($params), "Google_Service_Vision_BatchAnnotateImagesResponse"); |
| 95 |
} |
| 96 |
} |
| 97 |
|
| 98 |
|
| 99 |
|
| 100 |
|
| 101 |
class Google_Service_Vision_AnnotateImageRequest extends Google_Collection |
| 102 |
{ |
| 103 |
protected $collection_key = 'features'; |
| 104 |
protected $internal_gapi_mappings = array( |
| 105 |
); |
| 106 |
protected $featuresType = 'Google_Service_Vision_Feature'; |
| 107 |
protected $featuresDataType = 'array'; |
| 108 |
protected $imageType = 'Google_Service_Vision_Image'; |
| 109 |
protected $imageDataType = ''; |
| 110 |
protected $imageContextType = 'Google_Service_Vision_ImageContext'; |
| 111 |
protected $imageContextDataType = ''; |
| 112 |
|
| 113 |
|
| 114 |
public function setFeatures($features) |
| 115 |
{ |
| 116 |
$this->features = $features; |
| 117 |
} |
| 118 |
public function getFeatures() |
| 119 |
{ |
| 120 |
return $this->features; |
| 121 |
} |
| 122 |
public function setImage(Google_Service_Vision_Image $image) |
| 123 |
{ |
| 124 |
$this->image = $image; |
| 125 |
} |
| 126 |
public function getImage() |
| 127 |
{ |
| 128 |
return $this->image; |
| 129 |
} |
| 130 |
public function setImageContext(Google_Service_Vision_ImageContext $imageContext) |
| 131 |
{ |
| 132 |
$this->imageContext = $imageContext; |
| 133 |
} |
| 134 |
public function getImageContext() |
| 135 |
{ |
| 136 |
return $this->imageContext; |
| 137 |
} |
| 138 |
} |
| 139 |
|
| 140 |
class Google_Service_Vision_AnnotateImageResponse extends Google_Collection |
| 141 |
{ |
| 142 |
protected $collection_key = 'textAnnotations'; |
| 143 |
protected $internal_gapi_mappings = array( |
| 144 |
); |
| 145 |
protected $errorType = 'Google_Service_Vision_Status'; |
| 146 |
protected $errorDataType = ''; |
| 147 |
protected $faceAnnotationsType = 'Google_Service_Vision_FaceAnnotation'; |
| 148 |
protected $faceAnnotationsDataType = 'array'; |
| 149 |
protected $imagePropertiesAnnotationType = 'Google_Service_Vision_ImageProperties'; |
| 150 |
protected $imagePropertiesAnnotationDataType = ''; |
| 151 |
protected $labelAnnotationsType = 'Google_Service_Vision_EntityAnnotation'; |
| 152 |
protected $labelAnnotationsDataType = 'array'; |
| 153 |
protected $landmarkAnnotationsType = 'Google_Service_Vision_EntityAnnotation'; |
| 154 |
protected $landmarkAnnotationsDataType = 'array'; |
| 155 |
protected $logoAnnotationsType = 'Google_Service_Vision_EntityAnnotation'; |
| 156 |
protected $logoAnnotationsDataType = 'array'; |
| 157 |
protected $safeSearchAnnotationType = 'Google_Service_Vision_SafeSearchAnnotation'; |
| 158 |
protected $safeSearchAnnotationDataType = ''; |
| 159 |
protected $textAnnotationsType = 'Google_Service_Vision_EntityAnnotation'; |
| 160 |
protected $textAnnotationsDataType = 'array'; |
| 161 |
|
| 162 |
|
| 163 |
public function setError(Google_Service_Vision_Status $error) |
| 164 |
{ |
| 165 |
$this->error = $error; |
| 166 |
} |
| 167 |
public function getError() |
| 168 |
{ |
| 169 |
return $this->error; |
| 170 |
} |
| 171 |
public function setFaceAnnotations($faceAnnotations) |
| 172 |
{ |
| 173 |
$this->faceAnnotations = $faceAnnotations; |
| 174 |
} |
| 175 |
public function getFaceAnnotations() |
| 176 |
{ |
| 177 |
return $this->faceAnnotations; |
| 178 |
} |
| 179 |
public function setImagePropertiesAnnotation(Google_Service_Vision_ImageProperties $imagePropertiesAnnotation) |
| 180 |
{ |
| 181 |
$this->imagePropertiesAnnotation = $imagePropertiesAnnotation; |
| 182 |
} |
| 183 |
public function getImagePropertiesAnnotation() |
| 184 |
{ |
| 185 |
return $this->imagePropertiesAnnotation; |
| 186 |
} |
| 187 |
public function setLabelAnnotations($labelAnnotations) |
| 188 |
{ |
| 189 |
$this->labelAnnotations = $labelAnnotations; |
| 190 |
} |
| 191 |
public function getLabelAnnotations() |
| 192 |
{ |
| 193 |
return $this->labelAnnotations; |
| 194 |
} |
| 195 |
public function setLandmarkAnnotations($landmarkAnnotations) |
| 196 |
{ |
| 197 |
$this->landmarkAnnotations = $landmarkAnnotations; |
| 198 |
} |
| 199 |
public function getLandmarkAnnotations() |
| 200 |
{ |
| 201 |
return $this->landmarkAnnotations; |
| 202 |
} |
| 203 |
public function setLogoAnnotations($logoAnnotations) |
| 204 |
{ |
| 205 |
$this->logoAnnotations = $logoAnnotations; |
| 206 |
} |
| 207 |
public function getLogoAnnotations() |
| 208 |
{ |
| 209 |
return $this->logoAnnotations; |
| 210 |
} |
| 211 |
public function setSafeSearchAnnotation(Google_Service_Vision_SafeSearchAnnotation $safeSearchAnnotation) |
| 212 |
{ |
| 213 |
$this->safeSearchAnnotation = $safeSearchAnnotation; |
| 214 |
} |
| 215 |
public function getSafeSearchAnnotation() |
| 216 |
{ |
| 217 |
return $this->safeSearchAnnotation; |
| 218 |
} |
| 219 |
public function setTextAnnotations($textAnnotations) |
| 220 |
{ |
| 221 |
$this->textAnnotations = $textAnnotations; |
| 222 |
} |
| 223 |
public function getTextAnnotations() |
| 224 |
{ |
| 225 |
return $this->textAnnotations; |
| 226 |
} |
| 227 |
} |
| 228 |
|
| 229 |
class Google_Service_Vision_BatchAnnotateImagesRequest extends Google_Collection |
| 230 |
{ |
| 231 |
protected $collection_key = 'requests'; |
| 232 |
protected $internal_gapi_mappings = array( |
| 233 |
); |
| 234 |
protected $requestsType = 'Google_Service_Vision_AnnotateImageRequest'; |
| 235 |
protected $requestsDataType = 'array'; |
| 236 |
|
| 237 |
|
| 238 |
public function setRequests($requests) |
| 239 |
{ |
| 240 |
$this->requests = $requests; |
| 241 |
} |
| 242 |
public function getRequests() |
| 243 |
{ |
| 244 |
return $this->requests; |
| 245 |
} |
| 246 |
} |
| 247 |
|
| 248 |
class Google_Service_Vision_BatchAnnotateImagesResponse extends Google_Collection |
| 249 |
{ |
| 250 |
protected $collection_key = 'responses'; |
| 251 |
protected $internal_gapi_mappings = array( |
| 252 |
); |
| 253 |
protected $responsesType = 'Google_Service_Vision_AnnotateImageResponse'; |
| 254 |
protected $responsesDataType = 'array'; |
| 255 |
|
| 256 |
|
| 257 |
public function setResponses($responses) |
| 258 |
{ |
| 259 |
$this->responses = $responses; |
| 260 |
} |
| 261 |
public function getResponses() |
| 262 |
{ |
| 263 |
return $this->responses; |
| 264 |
} |
| 265 |
} |
| 266 |
|
| 267 |
class Google_Service_Vision_BoundingPoly extends Google_Collection |
| 268 |
{ |
| 269 |
protected $collection_key = 'vertices'; |
| 270 |
protected $internal_gapi_mappings = array( |
| 271 |
); |
| 272 |
protected $verticesType = 'Google_Service_Vision_Vertex'; |
| 273 |
protected $verticesDataType = 'array'; |
| 274 |
|
| 275 |
|
| 276 |
public function setVertices($vertices) |
| 277 |
{ |
| 278 |
$this->vertices = $vertices; |
| 279 |
} |
| 280 |
public function getVertices() |
| 281 |
{ |
| 282 |
return $this->vertices; |
| 283 |
} |
| 284 |
} |
| 285 |
|
| 286 |
class Google_Service_Vision_Color extends Google_Model |
| 287 |
{ |
| 288 |
protected $internal_gapi_mappings = array( |
| 289 |
); |
| 290 |
public $alpha; |
| 291 |
public $blue; |
| 292 |
public $green; |
| 293 |
public $red; |
| 294 |
|
| 295 |
|
| 296 |
public function setAlpha($alpha) |
| 297 |
{ |
| 298 |
$this->alpha = $alpha; |
| 299 |
} |
| 300 |
public function getAlpha() |
| 301 |
{ |
| 302 |
return $this->alpha; |
| 303 |
} |
| 304 |
public function setBlue($blue) |
| 305 |
{ |
| 306 |
$this->blue = $blue; |
| 307 |
} |
| 308 |
public function getBlue() |
| 309 |
{ |
| 310 |
return $this->blue; |
| 311 |
} |
| 312 |
public function setGreen($green) |
| 313 |
{ |
| 314 |
$this->green = $green; |
| 315 |
} |
| 316 |
public function getGreen() |
| 317 |
{ |
| 318 |
return $this->green; |
| 319 |
} |
| 320 |
public function setRed($red) |
| 321 |
{ |
| 322 |
$this->red = $red; |
| 323 |
} |
| 324 |
public function getRed() |
| 325 |
{ |
| 326 |
return $this->red; |
| 327 |
} |
| 328 |
} |
| 329 |
|
| 330 |
class Google_Service_Vision_ColorInfo extends Google_Model |
| 331 |
{ |
| 332 |
protected $internal_gapi_mappings = array( |
| 333 |
); |
| 334 |
protected $colorType = 'Google_Service_Vision_Color'; |
| 335 |
protected $colorDataType = ''; |
| 336 |
public $pixelFraction; |
| 337 |
public $score; |
| 338 |
|
| 339 |
|
| 340 |
public function setColor(Google_Service_Vision_Color $color) |
| 341 |
{ |
| 342 |
$this->color = $color; |
| 343 |
} |
| 344 |
public function getColor() |
| 345 |
{ |
| 346 |
return $this->color; |
| 347 |
} |
| 348 |
public function setPixelFraction($pixelFraction) |
| 349 |
{ |
| 350 |
$this->pixelFraction = $pixelFraction; |
| 351 |
} |
| 352 |
public function getPixelFraction() |
| 353 |
{ |
| 354 |
return $this->pixelFraction; |
| 355 |
} |
| 356 |
public function setScore($score) |
| 357 |
{ |
| 358 |
$this->score = $score; |
| 359 |
} |
| 360 |
public function getScore() |
| 361 |
{ |
| 362 |
return $this->score; |
| 363 |
} |
| 364 |
} |
| 365 |
|
| 366 |
class Google_Service_Vision_DominantColorsAnnotation extends Google_Collection |
| 367 |
{ |
| 368 |
protected $collection_key = 'colors'; |
| 369 |
protected $internal_gapi_mappings = array( |
| 370 |
); |
| 371 |
protected $colorsType = 'Google_Service_Vision_ColorInfo'; |
| 372 |
protected $colorsDataType = 'array'; |
| 373 |
|
| 374 |
|
| 375 |
public function setColors($colors) |
| 376 |
{ |
| 377 |
$this->colors = $colors; |
| 378 |
} |
| 379 |
public function getColors() |
| 380 |
{ |
| 381 |
return $this->colors; |
| 382 |
} |
| 383 |
} |
| 384 |
|
| 385 |
class Google_Service_Vision_EntityAnnotation extends Google_Collection |
| 386 |
{ |
| 387 |
protected $collection_key = 'properties'; |
| 388 |
protected $internal_gapi_mappings = array( |
| 389 |
); |
| 390 |
protected $boundingPolyType = 'Google_Service_Vision_BoundingPoly'; |
| 391 |
protected $boundingPolyDataType = ''; |
| 392 |
public $confidence; |
| 393 |
public $description; |
| 394 |
public $locale; |
| 395 |
protected $locationsType = 'Google_Service_Vision_LocationInfo'; |
| 396 |
protected $locationsDataType = 'array'; |
| 397 |
public $mid; |
| 398 |
protected $propertiesType = 'Google_Service_Vision_Property'; |
| 399 |
protected $propertiesDataType = 'array'; |
| 400 |
public $score; |
| 401 |
public $topicality; |
| 402 |
|
| 403 |
|
| 404 |
public function setBoundingPoly(Google_Service_Vision_BoundingPoly $boundingPoly) |
| 405 |
{ |
| 406 |
$this->boundingPoly = $boundingPoly; |
| 407 |
} |
| 408 |
public function getBoundingPoly() |
| 409 |
{ |
| 410 |
return $this->boundingPoly; |
| 411 |
} |
| 412 |
public function setConfidence($confidence) |
| 413 |
{ |
| 414 |
$this->confidence = $confidence; |
| 415 |
} |
| 416 |
public function getConfidence() |
| 417 |
{ |
| 418 |
return $this->confidence; |
| 419 |
} |
| 420 |
public function setDescription($description) |
| 421 |
{ |
| 422 |
$this->description = $description; |
| 423 |
} |
| 424 |
public function getDescription() |
| 425 |
{ |
| 426 |
return $this->description; |
| 427 |
} |
| 428 |
public function setLocale($locale) |
| 429 |
{ |
| 430 |
$this->locale = $locale; |
| 431 |
} |
| 432 |
public function getLocale() |
| 433 |
{ |
| 434 |
return $this->locale; |
| 435 |
} |
| 436 |
public function setLocations($locations) |
| 437 |
{ |
| 438 |
$this->locations = $locations; |
| 439 |
} |
| 440 |
public function getLocations() |
| 441 |
{ |
| 442 |
return $this->locations; |
| 443 |
} |
| 444 |
public function setMid($mid) |
| 445 |
{ |
| 446 |
$this->mid = $mid; |
| 447 |
} |
| 448 |
public function getMid() |
| 449 |
{ |
| 450 |
return $this->mid; |
| 451 |
} |
| 452 |
public function setProperties($properties) |
| 453 |
{ |
| 454 |
$this->properties = $properties; |
| 455 |
} |
| 456 |
public function getProperties() |
| 457 |
{ |
| 458 |
return $this->properties; |
| 459 |
} |
| 460 |
public function setScore($score) |
| 461 |
{ |
| 462 |
$this->score = $score; |
| 463 |
} |
| 464 |
public function getScore() |
| 465 |
{ |
| 466 |
return $this->score; |
| 467 |
} |
| 468 |
public function setTopicality($topicality) |
| 469 |
{ |
| 470 |
$this->topicality = $topicality; |
| 471 |
} |
| 472 |
public function getTopicality() |
| 473 |
{ |
| 474 |
return $this->topicality; |
| 475 |
} |
| 476 |
} |
| 477 |
|
| 478 |
class Google_Service_Vision_FaceAnnotation extends Google_Collection |
| 479 |
{ |
| 480 |
protected $collection_key = 'landmarks'; |
| 481 |
protected $internal_gapi_mappings = array( |
| 482 |
); |
| 483 |
public $angerLikelihood; |
| 484 |
public $blurredLikelihood; |
| 485 |
protected $boundingPolyType = 'Google_Service_Vision_BoundingPoly'; |
| 486 |
protected $boundingPolyDataType = ''; |
| 487 |
public $detectionConfidence; |
| 488 |
protected $fdBoundingPolyType = 'Google_Service_Vision_BoundingPoly'; |
| 489 |
protected $fdBoundingPolyDataType = ''; |
| 490 |
public $headwearLikelihood; |
| 491 |
public $joyLikelihood; |
| 492 |
public $landmarkingConfidence; |
| 493 |
protected $landmarksType = 'Google_Service_Vision_Landmark'; |
| 494 |
protected $landmarksDataType = 'array'; |
| 495 |
public $panAngle; |
| 496 |
public $rollAngle; |
| 497 |
public $sorrowLikelihood; |
| 498 |
public $surpriseLikelihood; |
| 499 |
public $tiltAngle; |
| 500 |
public $underExposedLikelihood; |
| 501 |
|
| 502 |
|
| 503 |
public function setAngerLikelihood($angerLikelihood) |
| 504 |
{ |
| 505 |
$this->angerLikelihood = $angerLikelihood; |
| 506 |
} |
| 507 |
public function getAngerLikelihood() |
| 508 |
{ |
| 509 |
return $this->angerLikelihood; |
| 510 |
} |
| 511 |
public function setBlurredLikelihood($blurredLikelihood) |
| 512 |
{ |
| 513 |
$this->blurredLikelihood = $blurredLikelihood; |
| 514 |
} |
| 515 |
public function getBlurredLikelihood() |
| 516 |
{ |
| 517 |
return $this->blurredLikelihood; |
| 518 |
} |
| 519 |
public function setBoundingPoly(Google_Service_Vision_BoundingPoly $boundingPoly) |
| 520 |
{ |
| 521 |
$this->boundingPoly = $boundingPoly; |
| 522 |
} |
| 523 |
public function getBoundingPoly() |
| 524 |
{ |
| 525 |
return $this->boundingPoly; |
| 526 |
} |
| 527 |
public function setDetectionConfidence($detectionConfidence) |
| 528 |
{ |
| 529 |
$this->detectionConfidence = $detectionConfidence; |
| 530 |
} |
| 531 |
public function getDetectionConfidence() |
| 532 |
{ |
| 533 |
return $this->detectionConfidence; |
| 534 |
} |
| 535 |
public function setFdBoundingPoly(Google_Service_Vision_BoundingPoly $fdBoundingPoly) |
| 536 |
{ |
| 537 |
$this->fdBoundingPoly = $fdBoundingPoly; |
| 538 |
} |
| 539 |
public function getFdBoundingPoly() |
| 540 |
{ |
| 541 |
return $this->fdBoundingPoly; |
| 542 |
} |
| 543 |
public function setHeadwearLikelihood($headwearLikelihood) |
| 544 |
{ |
| 545 |
$this->headwearLikelihood = $headwearLikelihood; |
| 546 |
} |
| 547 |
public function getHeadwearLikelihood() |
| 548 |
{ |
| 549 |
return $this->headwearLikelihood; |
| 550 |
} |
| 551 |
public function setJoyLikelihood($joyLikelihood) |
| 552 |
{ |
| 553 |
$this->joyLikelihood = $joyLikelihood; |
| 554 |
} |
| 555 |
public function getJoyLikelihood() |
| 556 |
{ |
| 557 |
return $this->joyLikelihood; |
| 558 |
} |
| 559 |
public function setLandmarkingConfidence($landmarkingConfidence) |
| 560 |
{ |
| 561 |
$this->landmarkingConfidence = $landmarkingConfidence; |
| 562 |
} |
| 563 |
public function getLandmarkingConfidence() |
| 564 |
{ |
| 565 |
return $this->landmarkingConfidence; |
| 566 |
} |
| 567 |
public function setLandmarks($landmarks) |
| 568 |
{ |
| 569 |
$this->landmarks = $landmarks; |
| 570 |
} |
| 571 |
public function getLandmarks() |
| 572 |
{ |
| 573 |
return $this->landmarks; |
| 574 |
} |
| 575 |
public function setPanAngle($panAngle) |
| 576 |
{ |
| 577 |
$this->panAngle = $panAngle; |
| 578 |
} |
| 579 |
public function getPanAngle() |
| 580 |
{ |
| 581 |
return $this->panAngle; |
| 582 |
} |
| 583 |
public function setRollAngle($rollAngle) |
| 584 |
{ |
| 585 |
$this->rollAngle = $rollAngle; |
| 586 |
} |
| 587 |
public function getRollAngle() |
| 588 |
{ |
| 589 |
return $this->rollAngle; |
| 590 |
} |
| 591 |
public function setSorrowLikelihood($sorrowLikelihood) |
| 592 |
{ |
| 593 |
$this->sorrowLikelihood = $sorrowLikelihood; |
| 594 |
} |
| 595 |
public function getSorrowLikelihood() |
| 596 |
{ |
| 597 |
return $this->sorrowLikelihood; |
| 598 |
} |
| 599 |
public function setSurpriseLikelihood($surpriseLikelihood) |
| 600 |
{ |
| 601 |
$this->surpriseLikelihood = $surpriseLikelihood; |
| 602 |
} |
| 603 |
public function getSurpriseLikelihood() |
| 604 |
{ |
| 605 |
return $this->surpriseLikelihood; |
| 606 |
} |
| 607 |
public function setTiltAngle($tiltAngle) |
| 608 |
{ |
| 609 |
$this->tiltAngle = $tiltAngle; |
| 610 |
} |
| 611 |
public function getTiltAngle() |
| 612 |
{ |
| 613 |
return $this->tiltAngle; |
| 614 |
} |
| 615 |
public function setUnderExposedLikelihood($underExposedLikelihood) |
| 616 |
{ |
| 617 |
$this->underExposedLikelihood = $underExposedLikelihood; |
| 618 |
} |
| 619 |
public function getUnderExposedLikelihood() |
| 620 |
{ |
| 621 |
return $this->underExposedLikelihood; |
| 622 |
} |
| 623 |
} |
| 624 |
|
| 625 |
class Google_Service_Vision_Feature extends Google_Model |
| 626 |
{ |
| 627 |
protected $internal_gapi_mappings = array( |
| 628 |
); |
| 629 |
public $maxResults; |
| 630 |
public $type; |
| 631 |
|
| 632 |
|
| 633 |
public function setMaxResults($maxResults) |
| 634 |
{ |
| 635 |
$this->maxResults = $maxResults; |
| 636 |
} |
| 637 |
public function getMaxResults() |
| 638 |
{ |
| 639 |
return $this->maxResults; |
| 640 |
} |
| 641 |
public function setType($type) |
| 642 |
{ |
| 643 |
$this->type = $type; |
| 644 |
} |
| 645 |
public function getType() |
| 646 |
{ |
| 647 |
return $this->type; |
| 648 |
} |
| 649 |
} |
| 650 |
|
| 651 |
class Google_Service_Vision_Image extends Google_Model |
| 652 |
{ |
| 653 |
protected $internal_gapi_mappings = array( |
| 654 |
); |
| 655 |
public $content; |
| 656 |
protected $sourceType = 'Google_Service_Vision_ImageSource'; |
| 657 |
protected $sourceDataType = ''; |
| 658 |
|
| 659 |
|
| 660 |
public function setContent($content) |
| 661 |
{ |
| 662 |
$this->content = $content; |
| 663 |
} |
| 664 |
public function getContent() |
| 665 |
{ |
| 666 |
return $this->content; |
| 667 |
} |
| 668 |
public function setSource(Google_Service_Vision_ImageSource $source) |
| 669 |
{ |
| 670 |
$this->source = $source; |
| 671 |
} |
| 672 |
public function getSource() |
| 673 |
{ |
| 674 |
return $this->source; |
| 675 |
} |
| 676 |
} |
| 677 |
|
| 678 |
class Google_Service_Vision_ImageContext extends Google_Collection |
| 679 |
{ |
| 680 |
protected $collection_key = 'languageHints'; |
| 681 |
protected $internal_gapi_mappings = array( |
| 682 |
); |
| 683 |
public $languageHints; |
| 684 |
protected $latLongRectType = 'Google_Service_Vision_LatLongRect'; |
| 685 |
protected $latLongRectDataType = ''; |
| 686 |
|
| 687 |
|
| 688 |
public function setLanguageHints($languageHints) |
| 689 |
{ |
| 690 |
$this->languageHints = $languageHints; |
| 691 |
} |
| 692 |
public function getLanguageHints() |
| 693 |
{ |
| 694 |
return $this->languageHints; |
| 695 |
} |
| 696 |
public function setLatLongRect(Google_Service_Vision_LatLongRect $latLongRect) |
| 697 |
{ |
| 698 |
$this->latLongRect = $latLongRect; |
| 699 |
} |
| 700 |
public function getLatLongRect() |
| 701 |
{ |
| 702 |
return $this->latLongRect; |
| 703 |
} |
| 704 |
} |
| 705 |
|
| 706 |
class Google_Service_Vision_ImageProperties extends Google_Model |
| 707 |
{ |
| 708 |
protected $internal_gapi_mappings = array( |
| 709 |
); |
| 710 |
protected $dominantColorsType = 'Google_Service_Vision_DominantColorsAnnotation'; |
| 711 |
protected $dominantColorsDataType = ''; |
| 712 |
|
| 713 |
|
| 714 |
public function setDominantColors(Google_Service_Vision_DominantColorsAnnotation $dominantColors) |
| 715 |
{ |
| 716 |
$this->dominantColors = $dominantColors; |
| 717 |
} |
| 718 |
public function getDominantColors() |
| 719 |
{ |
| 720 |
return $this->dominantColors; |
| 721 |
} |
| 722 |
} |
| 723 |
|
| 724 |
class Google_Service_Vision_ImageSource extends Google_Model |
| 725 |
{ |
| 726 |
protected $internal_gapi_mappings = array( |
| 727 |
); |
| 728 |
public $gcsImageUri; |
| 729 |
|
| 730 |
|
| 731 |
public function setGcsImageUri($gcsImageUri) |
| 732 |
{ |
| 733 |
$this->gcsImageUri = $gcsImageUri; |
| 734 |
} |
| 735 |
public function getGcsImageUri() |
| 736 |
{ |
| 737 |
return $this->gcsImageUri; |
| 738 |
} |
| 739 |
} |
| 740 |
|
| 741 |
class Google_Service_Vision_Landmark extends Google_Model |
| 742 |
{ |
| 743 |
protected $internal_gapi_mappings = array( |
| 744 |
); |
| 745 |
protected $positionType = 'Google_Service_Vision_Position'; |
| 746 |
protected $positionDataType = ''; |
| 747 |
public $type; |
| 748 |
|
| 749 |
|
| 750 |
public function setPosition(Google_Service_Vision_Position $position) |
| 751 |
{ |
| 752 |
$this->position = $position; |
| 753 |
} |
| 754 |
public function getPosition() |
| 755 |
{ |
| 756 |
return $this->position; |
| 757 |
} |
| 758 |
public function setType($type) |
| 759 |
{ |
| 760 |
$this->type = $type; |
| 761 |
} |
| 762 |
public function getType() |
| 763 |
{ |
| 764 |
return $this->type; |
| 765 |
} |
| 766 |
} |
| 767 |
|
| 768 |
class Google_Service_Vision_LatLng extends Google_Model |
| 769 |
{ |
| 770 |
protected $internal_gapi_mappings = array( |
| 771 |
); |
| 772 |
public $latitude; |
| 773 |
public $longitude; |
| 774 |
|
| 775 |
|
| 776 |
public function setLatitude($latitude) |
| 777 |
{ |
| 778 |
$this->latitude = $latitude; |
| 779 |
} |
| 780 |
public function getLatitude() |
| 781 |
{ |
| 782 |
return $this->latitude; |
| 783 |
} |
| 784 |
public function setLongitude($longitude) |
| 785 |
{ |
| 786 |
$this->longitude = $longitude; |
| 787 |
} |
| 788 |
public function getLongitude() |
| 789 |
{ |
| 790 |
return $this->longitude; |
| 791 |
} |
| 792 |
} |
| 793 |
|
| 794 |
class Google_Service_Vision_LatLongRect extends Google_Model |
| 795 |
{ |
| 796 |
protected $internal_gapi_mappings = array( |
| 797 |
); |
| 798 |
protected $maxLatLngType = 'Google_Service_Vision_LatLng'; |
| 799 |
protected $maxLatLngDataType = ''; |
| 800 |
protected $minLatLngType = 'Google_Service_Vision_LatLng'; |
| 801 |
protected $minLatLngDataType = ''; |
| 802 |
|
| 803 |
|
| 804 |
public function setMaxLatLng(Google_Service_Vision_LatLng $maxLatLng) |
| 805 |
{ |
| 806 |
$this->maxLatLng = $maxLatLng; |
| 807 |
} |
| 808 |
public function getMaxLatLng() |
| 809 |
{ |
| 810 |
return $this->maxLatLng; |
| 811 |
} |
| 812 |
public function setMinLatLng(Google_Service_Vision_LatLng $minLatLng) |
| 813 |
{ |
| 814 |
$this->minLatLng = $minLatLng; |
| 815 |
} |
| 816 |
public function getMinLatLng() |
| 817 |
{ |
| 818 |
return $this->minLatLng; |
| 819 |
} |
| 820 |
} |
| 821 |
|
| 822 |
class Google_Service_Vision_LocationInfo extends Google_Model |
| 823 |
{ |
| 824 |
protected $internal_gapi_mappings = array( |
| 825 |
); |
| 826 |
protected $latLngType = 'Google_Service_Vision_LatLng'; |
| 827 |
protected $latLngDataType = ''; |
| 828 |
|
| 829 |
|
| 830 |
public function setLatLng(Google_Service_Vision_LatLng $latLng) |
| 831 |
{ |
| 832 |
$this->latLng = $latLng; |
| 833 |
} |
| 834 |
public function getLatLng() |
| 835 |
{ |
| 836 |
return $this->latLng; |
| 837 |
} |
| 838 |
} |
| 839 |
|
| 840 |
class Google_Service_Vision_Position extends Google_Model |
| 841 |
{ |
| 842 |
protected $internal_gapi_mappings = array( |
| 843 |
); |
| 844 |
public $x; |
| 845 |
public $y; |
| 846 |
public $z; |
| 847 |
|
| 848 |
|
| 849 |
public function setX($x) |
| 850 |
{ |
| 851 |
$this->x = $x; |
| 852 |
} |
| 853 |
public function getX() |
| 854 |
{ |
| 855 |
return $this->x; |
| 856 |
} |
| 857 |
public function setY($y) |
| 858 |
{ |
| 859 |
$this->y = $y; |
| 860 |
} |
| 861 |
public function getY() |
| 862 |
{ |
| 863 |
return $this->y; |
| 864 |
} |
| 865 |
public function setZ($z) |
| 866 |
{ |
| 867 |
$this->z = $z; |
| 868 |
} |
| 869 |
public function getZ() |
| 870 |
{ |
| 871 |
return $this->z; |
| 872 |
} |
| 873 |
} |
| 874 |
|
| 875 |
class Google_Service_Vision_Property extends Google_Model |
| 876 |
{ |
| 877 |
protected $internal_gapi_mappings = array( |
| 878 |
); |
| 879 |
public $name; |
| 880 |
public $value; |
| 881 |
|
| 882 |
|
| 883 |
public function setName($name) |
| 884 |
{ |
| 885 |
$this->name = $name; |
| 886 |
} |
| 887 |
public function getName() |
| 888 |
{ |
| 889 |
return $this->name; |
| 890 |
} |
| 891 |
public function setValue($value) |
| 892 |
{ |
| 893 |
$this->value = $value; |
| 894 |
} |
| 895 |
public function getValue() |
| 896 |
{ |
| 897 |
return $this->value; |
| 898 |
} |
| 899 |
} |
| 900 |
|
| 901 |
class Google_Service_Vision_SafeSearchAnnotation extends Google_Model |
| 902 |
{ |
| 903 |
protected $internal_gapi_mappings = array( |
| 904 |
); |
| 905 |
public $adult; |
| 906 |
public $medical; |
| 907 |
public $spoof; |
| 908 |
public $violence; |
| 909 |
|
| 910 |
|
| 911 |
public function setAdult($adult) |
| 912 |
{ |
| 913 |
$this->adult = $adult; |
| 914 |
} |
| 915 |
public function getAdult() |
| 916 |
{ |
| 917 |
return $this->adult; |
| 918 |
} |
| 919 |
public function setMedical($medical) |
| 920 |
{ |
| 921 |
$this->medical = $medical; |
| 922 |
} |
| 923 |
public function getMedical() |
| 924 |
{ |
| 925 |
return $this->medical; |
| 926 |
} |
| 927 |
public function setSpoof($spoof) |
| 928 |
{ |
| 929 |
$this->spoof = $spoof; |
| 930 |
} |
| 931 |
public function getSpoof() |
| 932 |
{ |
| 933 |
return $this->spoof; |
| 934 |
} |
| 935 |
public function setViolence($violence) |
| 936 |
{ |
| 937 |
$this->violence = $violence; |
| 938 |
} |
| 939 |
public function getViolence() |
| 940 |
{ |
| 941 |
return $this->violence; |
| 942 |
} |
| 943 |
} |
| 944 |
|
| 945 |
class Google_Service_Vision_Status extends Google_Collection |
| 946 |
{ |
| 947 |
protected $collection_key = 'details'; |
| 948 |
protected $internal_gapi_mappings = array( |
| 949 |
); |
| 950 |
public $code; |
| 951 |
public $details; |
| 952 |
public $message; |
| 953 |
|
| 954 |
|
| 955 |
public function setCode($code) |
| 956 |
{ |
| 957 |
$this->code = $code; |
| 958 |
} |
| 959 |
public function getCode() |
| 960 |
{ |
| 961 |
return $this->code; |
| 962 |
} |
| 963 |
public function setDetails($details) |
| 964 |
{ |
| 965 |
$this->details = $details; |
| 966 |
} |
| 967 |
public function getDetails() |
| 968 |
{ |
| 969 |
return $this->details; |
| 970 |
} |
| 971 |
public function setMessage($message) |
| 972 |
{ |
| 973 |
$this->message = $message; |
| 974 |
} |
| 975 |
public function getMessage() |
| 976 |
{ |
| 977 |
return $this->message; |
| 978 |
} |
| 979 |
} |
| 980 |
|
| 981 |
class Google_Service_Vision_Vertex extends Google_Model |
| 982 |
{ |
| 983 |
protected $internal_gapi_mappings = array( |
| 984 |
); |
| 985 |
public $x; |
| 986 |
public $y; |
| 987 |
|
| 988 |
|
| 989 |
public function setX($x) |
| 990 |
{ |
| 991 |
$this->x = $x; |
| 992 |
} |
| 993 |
public function getX() |
| 994 |
{ |
| 995 |
return $this->x; |
| 996 |
} |
| 997 |
public function setY($y) |
| 998 |
{ |
| 999 |
$this->y = $y; |
| 1000 |
} |
| 1001 |
public function getY() |
| 1002 |
{ |
| 1003 |
return $this->y; |
| 1004 |
} |
| 1005 |
} |
| 1006 |
|